diff --git a/examples/.gitignore b/examples/.gitignore index 5b58822..f035116 100644 --- a/examples/.gitignore +++ b/examples/.gitignore @@ -1,3 +1,4 @@ .ipynb_checkpoints out/* +/__marimo__/session/* diff --git a/examples/marimo-example.py b/examples/marimo-example.py new file mode 100644 index 0000000..2070035 --- /dev/null +++ b/examples/marimo-example.py @@ -0,0 +1,118 @@ +# type: ignore + +import marimo + +__generated_with = "0.20.2" +app = marimo.App(width="full", app_title="Neo4jVizExample") + + +@app.cell +def _(): + import marimo as mo + + return (mo,) + + +@app.cell(hide_code=True) +def _(mo): + mo.md(r""" + # Neo4j Graph Visualization with Marimo + + This example demonstrates how to use `neo4j-viz` to visualize graphs in Marimo notebooks. + We'll create a simple graph representing a social network with people and their relationships. + """) + return + + +@app.cell +def _(): + from neo4j_viz import Node, Relationship, VisualizationGraph + + return Node, Relationship, VisualizationGraph + + +@app.cell(hide_code=True) +def _(mo): + mo.md(r""" + ## Create Nodes and Relationships + """) + return + + +@app.cell +def _(Node, Relationship): + # Create nodes representing people + nodes = [ + Node(id=0, size=10, caption="Person", properties={"age": 25}), + Node(id=1, size=10, caption="Product", properties={"price": 100}), + Node(id=2, size=20, caption="Product", properties={"price": 200}), + Node(id=3, size=10, caption="Person", properties={"age": 30}), + Node(id=4, size=10, caption="Product"), + ] + relationships = [ + Relationship(source=0, target=1, caption="BUYS"), + Relationship(source=0, target=2, caption="BUYS"), + Relationship(source=3, target=2, caption="BUYS"), + ] + return nodes, relationships + + +@app.cell(hide_code=True) +def _(mo): + mo.md(r""" + ## Visualize the Graph as a Widget + """) + return + + +@app.cell +def _(VisualizationGraph, nodes, relationships): + # Create and render the visualization + VG = VisualizationGraph(nodes=nodes, relationships=relationships) + widget = VG.render_widget(theme="light", renderer="canvas") + # TODO figure out why the rendering in Marimo is off + widget + return VG, widget + + +@app.cell +def _(widget): + print(widget.theme) + print(widget.options) + return + + +@app.cell +def _(Node, Relationship, widget): + # Run this cell multiple times - each run adds a new node to the widget above + import random + + new_id = len(widget.nodes) + target_id = random.choice([n["id"] for n in widget.nodes]) + + new_node = Node(id=new_id, size=10, caption="Person") + new_rel = Relationship(source=new_id, target=target_id, caption="KNOWS") + + widget.add_data(nodes=[new_node], relationships=[new_rel]) + return + + +@app.cell(hide_code=True) +def _(mo): + mo.md(r""" + ## Standalone Visualization the Graph + """) + return + + +@app.cell +def _(VG): + # Save the visualization to a file + with open("out/marimo_output.html", "w") as f: + print(f"{f}") + f.write(VG.render(renderer="canvas").data) + return + + +if __name__ == "__main__": + app.run() diff --git a/js-applet/src/graph-widget.tsx b/js-applet/src/graph-widget.tsx index 2cc2bce..bbe7097 100644 --- a/js-applet/src/graph-widget.tsx +++ b/js-applet/src/graph-widget.tsx @@ -123,16 +123,22 @@ function GraphWidget() { sidePanelWidth, children: , }} - bottomRightIsland={ + topRightIsland={ + + + + } + bottomRightIsland={ + - + {showLayoutButton && ( <> - + )} diff --git a/justfile b/justfile index b0c33a4..ea83288 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,6 @@ +root_dir := justfile_directory() +py_dir := root_dir / 'python-wrapper' + py-sync: cd python-wrapper && uv sync --group dev --group docs --group notebook --extra pandas --extra neo4j --extra gds --extra snowflake @@ -46,6 +49,16 @@ js-build: streamlit: ./scripts/run_streamlit_example.sh +marimo: + #!/usr/bin/env bash + set -e + cd {{py_dir}} && uv run --group notebook marimo run {{root_dir}}/examples/marimo-example.py + +marimo-edit: + #!/usr/bin/env bash + set -e + cd {{py_dir}} && uv run --group notebook marimo edit {{root_dir}}/examples/marimo-example.py + ref-docs: ./scripts/render_antora_docs.sh diff --git a/python-wrapper/pyproject.toml b/python-wrapper/pyproject.toml index e931177..d11343d 100644 --- a/python-wrapper/pyproject.toml +++ b/python-wrapper/pyproject.toml @@ -78,6 +78,7 @@ notebook = [ "snowflake-snowpark-python==1.42.0", "dotenv", "requests", + "marimo", ] [project.urls] @@ -173,3 +174,9 @@ exclude = [ ] plugins = ['pydantic.mypy'] untyped_calls_exclude=["nbconvert"] + +[tool.marimo.runtime] +output_max_bytes = 20_000_000 +# +#[tool.marimo.server] +#follow_symlink = true diff --git a/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/index.html b/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/index.html index 71bf90a..60809f7 100644 --- a/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/index.html +++ b/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/index.html @@ -23,7 +23,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ek;function tV(){if(ek)return U0;ek=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var s in i)s!=="key"&&(a[s]=i[s])}else a=i;return i=a.ref,{$$typeof:r,type:n,key:o,ref:i!==void 0?i:null,props:a}}return U0.Fragment=e,U0.jsx=t,U0.jsxs=t,U0}var tk;function rV(){return tk||(tk=1,WE.exports=tV()),WE.exports}var Te=rV(),YE={exports:{}},fn={};/** + */var tk;function tV(){if(tk)return U0;tk=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var s in i)s!=="key"&&(a[s]=i[s])}else a=i;return i=a.ref,{$$typeof:r,type:n,key:o,ref:i!==void 0?i:null,props:a}}return U0.Fragment=e,U0.jsx=t,U0.jsxs=t,U0}var rk;function rV(){return rk||(rk=1,WE.exports=tV()),WE.exports}var Te=rV(),YE={exports:{}},fn={};/** * @license React * react.production.js * @@ -31,7 +31,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var rk;function nV(){if(rk)return fn;rk=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),d=Symbol.iterator;function h(X){return X===null||typeof X!="object"?null:(X=d&&X[d]||X["@@iterator"],typeof X=="function"?X:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(X,Z,ue){this.props=X,this.context=Z,this.refs=y,this.updater=ue||p}b.prototype.isReactComponent={},b.prototype.setState=function(X,Z){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,Z,"setState")},b.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function _(){}_.prototype=b.prototype;function m(X,Z,ue){this.props=X,this.context=Z,this.refs=y,this.updater=ue||p}var x=m.prototype=new _;x.constructor=m,g(x,b.prototype),x.isPureReactComponent=!0;var E=Array.isArray;function O(){}var S={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function P(X,Z,ue){var re=ue.ref;return{$$typeof:r,type:X,key:Z,ref:re!==void 0?re:null,props:ue}}function I(X,Z){return P(X.type,Z,X.props)}function k(X){return typeof X=="object"&&X!==null&&X.$$typeof===r}function L(X){var Z={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(ue){return Z[ue]})}var B=/\/+/g;function j(X,Z){return typeof X=="object"&&X!==null&&X.key!=null?L(""+X.key):Z.toString(36)}function z(X){switch(X.status){case"fulfilled":return X.value;case"rejected":throw X.reason;default:switch(typeof X.status=="string"?X.then(O,O):(X.status="pending",X.then(function(Z){X.status==="pending"&&(X.status="fulfilled",X.value=Z)},function(Z){X.status==="pending"&&(X.status="rejected",X.reason=Z)})),X.status){case"fulfilled":return X.value;case"rejected":throw X.reason}}throw X}function H(X,Z,ue,re,ne){var le=typeof X;(le==="undefined"||le==="boolean")&&(X=null);var ce=!1;if(X===null)ce=!0;else switch(le){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(X.$$typeof){case r:case e:ce=!0;break;case c:return ce=X._init,H(ce(X._payload),Z,ue,re,ne)}}if(ce)return ne=ne(X),ce=re===""?"."+j(X,0):re,E(ne)?(ue="",ce!=null&&(ue=ce.replace(B,"$&/")+"/"),H(ne,Z,ue,"",function(se){return se})):ne!=null&&(k(ne)&&(ne=I(ne,ue+(ne.key==null||X&&X.key===ne.key?"":(""+ne.key).replace(B,"$&/")+"/")+ce)),Z.push(ne)),1;ce=0;var pe=re===""?".":re+":";if(E(X))for(var fe=0;fe>>1,J=H[$];if(0>>1;$i(ue,W))rei(ne,ue)?(H[$]=ne,H[re]=W,$=re):(H[$]=ue,H[Z]=W,$=Z);else if(rei(ne,W))H[$]=ne,H[re]=W,$=re;else break e}}return q}function i(H,q){var W=H.sortIndex-q.sortIndex;return W!==0?W:H.id-q.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;r.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();r.unstable_now=function(){return o.now()-s}}var u=[],l=[],c=1,f=null,d=3,h=!1,p=!1,g=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function x(H){for(var q=t(l);q!==null;){if(q.callback===null)n(l);else if(q.startTime<=H)n(l),q.sortIndex=q.expirationTime,e(u,q);else break;q=t(l)}}function E(H){if(g=!1,x(H),!p)if(t(u)!==null)p=!0,O||(O=!0,L());else{var q=t(l);q!==null&&z(E,q.startTime-H)}}var O=!1,S=-1,T=5,P=-1;function I(){return y?!0:!(r.unstable_now()-PH&&I());){var $=f.callback;if(typeof $=="function"){f.callback=null,d=f.priorityLevel;var J=$(f.expirationTime<=H);if(H=r.unstable_now(),typeof J=="function"){f.callback=J,x(H),q=!0;break t}f===t(u)&&n(u),x(H)}else n(u);f=t(u)}if(f!==null)q=!0;else{var X=t(l);X!==null&&z(E,X.startTime-H),q=!1}}break e}finally{f=null,d=W,h=!1}q=void 0}}finally{q?L():O=!1}}}var L;if(typeof m=="function")L=function(){m(k)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,j=B.port2;B.port1.onmessage=k,L=function(){j.postMessage(null)}}else L=function(){b(k,0)};function z(H,q){S=b(function(){H(r.unstable_now())},q)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_forceFrameRate=function(H){0>H||125$?(H.sortIndex=W,e(l,H),t(u)===null&&H===t(l)&&(g?(_(S),S=-1):g=!0,z(E,W-$))):(H.sortIndex=J,e(u,H),p||h||(p=!0,O||(O=!0,L()))),H},r.unstable_shouldYield=I,r.unstable_wrapCallback=function(H){var q=d;return function(){var W=d;d=q;try{return H.apply(this,arguments)}finally{d=W}}}})(KE)),KE}var ak;function aV(){return ak||(ak=1,$E.exports=iV()),$E.exports}var ZE={exports:{}},Hu={};/** + */var ak;function iV(){return ak||(ak=1,(function(r){function e(H,q){var W=H.length;H.push(q);e:for(;0>>1,J=H[$];if(0>>1;$i(ue,W))rei(ne,ue)?(H[$]=ne,H[re]=W,$=re):(H[$]=ue,H[Z]=W,$=Z);else if(rei(ne,W))H[$]=ne,H[re]=W,$=re;else break e}}return q}function i(H,q){var W=H.sortIndex-q.sortIndex;return W!==0?W:H.id-q.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;r.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();r.unstable_now=function(){return o.now()-s}}var u=[],l=[],c=1,f=null,d=3,h=!1,p=!1,g=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function x(H){for(var q=t(l);q!==null;){if(q.callback===null)n(l);else if(q.startTime<=H)n(l),q.sortIndex=q.expirationTime,e(u,q);else break;q=t(l)}}function E(H){if(g=!1,x(H),!p)if(t(u)!==null)p=!0,O||(O=!0,L());else{var q=t(l);q!==null&&z(E,q.startTime-H)}}var O=!1,S=-1,T=5,P=-1;function I(){return y?!0:!(r.unstable_now()-PH&&I());){var $=f.callback;if(typeof $=="function"){f.callback=null,d=f.priorityLevel;var J=$(f.expirationTime<=H);if(H=r.unstable_now(),typeof J=="function"){f.callback=J,x(H),q=!0;break t}f===t(u)&&n(u),x(H)}else n(u);f=t(u)}if(f!==null)q=!0;else{var X=t(l);X!==null&&z(E,X.startTime-H),q=!1}}break e}finally{f=null,d=W,h=!1}q=void 0}}finally{q?L():O=!1}}}var L;if(typeof m=="function")L=function(){m(k)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,j=B.port2;B.port1.onmessage=k,L=function(){j.postMessage(null)}}else L=function(){b(k,0)};function z(H,q){S=b(function(){H(r.unstable_now())},q)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_forceFrameRate=function(H){0>H||125$?(H.sortIndex=W,e(l,H),t(u)===null&&H===t(l)&&(g?(_(S),S=-1):g=!0,z(E,W-$))):(H.sortIndex=J,e(u,H),p||h||(p=!0,O||(O=!0,L()))),H},r.unstable_shouldYield=I,r.unstable_wrapCallback=function(H){var q=d;return function(){var W=d;d=q;try{return H.apply(this,arguments)}finally{d=W}}}})(KE)),KE}var ok;function aV(){return ok||(ok=1,$E.exports=iV()),$E.exports}var ZE={exports:{}},Hu={};/** * @license React * react-dom.production.js * @@ -47,7 +47,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ok;function oV(){if(ok)return Hu;ok=1;var r=S5();function e(u){var l="https://react.dev/errors/"+u;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),ZE.exports=oV(),ZE.exports}/** + */var sk;function oV(){if(sk)return Hu;sk=1;var r=O5();function e(u){var l="https://react.dev/errors/"+u;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),ZE.exports=oV(),ZE.exports}/** * @license React * react-dom-client.production.js * @@ -55,38 +55,38 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var uk;function sV(){if(uk)return z0;uk=1;var r=aV(),e=S5(),t=q9();function n(v){var w="https://react.dev/errors/"+v;if(1J||(v.current=$[J],$[J]=null,J--)}function ue(v,w){J++,$[J]=v.current,v.current=w}var re=X(null),ne=X(null),le=X(null),ce=X(null);function pe(v,w){switch(ue(le,w),ue(ne,v),ue(re,null),w.nodeType){case 9:case 11:v=(v=w.documentElement)&&(v=v.namespaceURI)?yg(v):0;break;default:if(v=w.tagName,w=w.namespaceURI)w=yg(w),v=Gu(w,v);else switch(v){case"svg":v=1;break;case"math":v=2;break;default:v=0}}Z(re),ue(re,v)}function fe(){Z(re),Z(ne),Z(le)}function se(v){v.memoizedState!==null&&ue(ce,v);var w=re.current,C=Gu(w,v.type);w!==C&&(ue(ne,v),ue(re,C))}function de(v){ne.current===v&&(Z(re),Z(ne)),ce.current===v&&(Z(ce),Zv._currentValue=W)}var ge,Oe;function ke(v){if(ge===void 0)try{throw Error()}catch(C){var w=C.stack.trim().match(/\n( *(at )?)/);ge=w&&w[1]||"",Oe=-1J||(v.current=$[J],$[J]=null,J--)}function ue(v,w){J++,$[J]=v.current,v.current=w}var re=X(null),ne=X(null),le=X(null),ce=X(null);function pe(v,w){switch(ue(le,w),ue(ne,v),ue(re,null),w.nodeType){case 9:case 11:v=(v=w.documentElement)&&(v=v.namespaceURI)?yg(v):0;break;default:if(v=w.tagName,w=w.namespaceURI)w=yg(w),v=Gu(w,v);else switch(v){case"svg":v=1;break;case"math":v=2;break;default:v=0}}Z(re),ue(re,v)}function fe(){Z(re),Z(ne),Z(le)}function se(v){v.memoizedState!==null&&ue(ce,v);var w=re.current,C=Gu(w,v.type);w!==C&&(ue(ne,v),ue(re,C))}function de(v){ne.current===v&&(Z(re),Z(ne)),ce.current===v&&(Z(ce),Zv._currentValue=W)}var ge,Oe;function ke(v){if(ge===void 0)try{throw Error()}catch(C){var w=C.stack.trim().match(/\n( *(at )?)/);ge=w&&w[1]||"",Oe=-1)":-1F||Fe[M]!==it[F]){var ht=` `+Fe[M].replace(" at new "," at ");return v.displayName&&ht.includes("")&&(ht=ht.replace("",v.displayName)),ht}while(1<=M&&0<=F);break}}}finally{De=!1,Error.prepareStackTrace=C}return(C=v?v.displayName||v.name:"")?ke(C):""}function Ce(v,w){switch(v.tag){case 26:case 27:case 5:return ke(v.type);case 16:return ke("Lazy");case 13:return v.child!==w&&w!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return Ne(v.type,!1);case 11:return Ne(v.type.render,!1);case 1:return Ne(v.type,!0);case 31:return ke("Activity");default:return""}}function Y(v){try{var w="",C=null;do w+=Ce(v,C),C=v,v=v.return;while(v);return w}catch(M){return` Error generating stack: `+M.message+` -`+M.stack}}var Q=Object.prototype.hasOwnProperty,ie=r.unstable_scheduleCallback,we=r.unstable_cancelCallback,Ee=r.unstable_shouldYield,Me=r.unstable_requestPaint,Ie=r.unstable_now,Ye=r.unstable_getCurrentPriorityLevel,ot=r.unstable_ImmediatePriority,mt=r.unstable_UserBlockingPriority,wt=r.unstable_NormalPriority,Mt=r.unstable_LowPriority,Dt=r.unstable_IdlePriority,vt=r.log,tt=r.unstable_setDisableYieldValue,_e=null,Ue=null;function Qe(v){if(typeof vt=="function"&&tt(v),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(_e,v)}catch{}}var Ze=Math.clz32?Math.clz32:ct,nt=Math.log,It=Math.LN2;function ct(v){return v>>>=0,v===0?32:31-(nt(v)/It|0)|0}var Lt=256,Rt=262144,jt=4194304;function Yt(v){var w=v&42;if(w!==0)return w;switch(v&-v){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return v&261888;case 262144:case 524288:case 1048576:case 2097152:return v&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return v&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return v}}function sr(v,w,C){var M=v.pendingLanes;if(M===0)return 0;var F=0,V=v.suspendedLanes,ae=v.pingedLanes;v=v.warmLanes;var Se=M&134217727;return Se!==0?(M=Se&~V,M!==0?F=Yt(M):(ae&=Se,ae!==0?F=Yt(ae):C||(C=Se&~v,C!==0&&(F=Yt(C))))):(Se=M&~V,Se!==0?F=Yt(Se):ae!==0?F=Yt(ae):C||(C=M&~v,C!==0&&(F=Yt(C)))),F===0?0:w!==0&&w!==F&&(w&V)===0&&(V=F&-F,C=w&-w,V>=C||V===32&&(C&4194048)!==0)?w:F}function Ut(v,w){return(v.pendingLanes&~(v.suspendedLanes&~v.pingedLanes)&w)===0}function Rr(v,w){switch(v){case 1:case 2:case 4:case 8:case 64:return w+250;case 16:case 32: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 w+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xt(){var v=jt;return jt<<=1,(jt&62914560)===0&&(jt=4194304),v}function Vr(v){for(var w=[],C=0;31>C;C++)w.push(v);return w}function Br(v,w){v.pendingLanes|=w,w!==268435456&&(v.suspendedLanes=0,v.pingedLanes=0,v.warmLanes=0)}function mr(v,w,C,M,F,V){var ae=v.pendingLanes;v.pendingLanes=C,v.suspendedLanes=0,v.pingedLanes=0,v.warmLanes=0,v.expiredLanes&=C,v.entangledLanes&=C,v.errorRecoveryDisabledLanes&=C,v.shellSuspendCounter=0;var Se=v.entanglements,Fe=v.expirationTimes,it=v.hiddenUpdates;for(C=ae&~C;0"u")return null;try{return v.activeElement||v.body}catch{return v.body}}var Md=/[\n"\\]/g;function Xa(v){return v.replace(Md,function(w){return"\\"+w.charCodeAt(0).toString(16)+" "})}function Wl(v,w,C,M,F,V,ae,Se){v.name="",ae!=null&&typeof ae!="function"&&typeof ae!="symbol"&&typeof ae!="boolean"?v.type=ae:v.removeAttribute("type"),w!=null?ae==="number"?(w===0&&v.value===""||v.value!=w)&&(v.value=""+Ii(w)):v.value!==""+Ii(w)&&(v.value=""+Ii(w)):ae!=="submit"&&ae!=="reset"||v.removeAttribute("value"),w!=null?nf(v,ae,Ii(w)):C!=null?nf(v,ae,Ii(C)):M!=null&&v.removeAttribute("value"),F==null&&V!=null&&(v.defaultChecked=!!V),F!=null&&(v.checked=F&&typeof F!="function"&&typeof F!="symbol"),Se!=null&&typeof Se!="function"&&typeof Se!="symbol"&&typeof Se!="boolean"?v.name=""+Ii(Se):v.removeAttribute("name")}function Yl(v,w,C,M,F,V,ae,Se){if(V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(v.type=V),w!=null||C!=null){if(!(V!=="submit"&&V!=="reset"||w!=null)){pu(v);return}C=C!=null?""+Ii(C):"",w=w!=null?""+Ii(w):C,Se||w===v.value||(v.value=w),v.defaultValue=w}M=M??F,M=typeof M!="function"&&typeof M!="symbol"&&!!M,v.checked=Se?v.checked:!!M,v.defaultChecked=!!M,ae!=null&&typeof ae!="function"&&typeof ae!="symbol"&&typeof ae!="boolean"&&(v.name=ae),pu(v)}function nf(v,w,C){w==="number"&&Hl(v.ownerDocument)===v||v.defaultValue===""+C||(v.defaultValue=""+C)}function Wi(v,w,C,M){if(v=v.options,w){w={};for(var F=0;F"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),el=!1;if(so)try{var Kl={};Object.defineProperty(Kl,"passive",{get:function(){el=!0}}),window.addEventListener("test",Kl,Kl),window.removeEventListener("test",Kl,Kl)}catch{el=!1}var Vo=null,vs=null,jn=null;function Zr(){if(jn)return jn;var v,w=vs,C=w.length,M,F="value"in Vo?Vo.value:Vo.textContent,V=F.length;for(v=0;v=Vs),Ah=" ",tc=!1;function Yf(v,w){switch(v){case"keyup":return Wf.indexOf(w.keyCode)!==-1;case"keydown":return w.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ic(v){return v=v.detail,typeof v=="object"&&"data"in v?v.data:null}var wu=!1;function xo(v,w){switch(v){case"compositionend":return Ic(w);case"keypress":return w.which!==32?null:(tc=!0,Ah);case"textInput":return v=w.data,v===Ah&&tc?null:v;default:return null}}function Nc(v,w){if(wu)return v==="compositionend"||!ff&&Yf(v,w)?(v=Zr(),jn=vs=Vo=null,wu=!1,v):null;switch(v){case"paste":return null;case"keypress":if(!(w.ctrlKey||w.altKey||w.metaKey)||w.ctrlKey&&w.altKey){if(w.char&&1=w)return{node:C,offset:w-v};v=M}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=jc(C)}}function pf(v,w){return v&&w?v===w?!0:v&&v.nodeType===3?!1:w&&w.nodeType===3?pf(v,w.parentNode):"contains"in v?v.contains(w):v.compareDocumentPosition?!!(v.compareDocumentPosition(w)&16):!1:!1}function Bc(v){v=v!=null&&v.ownerDocument!=null&&v.ownerDocument.defaultView!=null?v.ownerDocument.defaultView:window;for(var w=Hl(v.document);w instanceof v.HTMLIFrameElement;){try{var C=typeof w.contentWindow.location.href=="string"}catch{C=!1}if(C)v=w.contentWindow;else break;w=Hl(v.document)}return w}function Ws(v){var w=v&&v.nodeName&&v.nodeName.toLowerCase();return w&&(w==="input"&&(v.type==="text"||v.type==="search"||v.type==="tel"||v.type==="url"||v.type==="password")||w==="textarea"||v.contentEditable==="true")}var ic=so&&"documentMode"in document&&11>=document.documentMode,We=null,ft=null,ut=null,Kt=!1;function Pr(v,w,C){var M=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;Kt||We==null||We!==Hl(M)||(M=We,"selectionStart"in M&&Ws(M)?M={start:M.selectionStart,end:M.selectionEnd}:(M=(M.ownerDocument&&M.ownerDocument.defaultView||window).getSelection(),M={anchorNode:M.anchorNode,anchorOffset:M.anchorOffset,focusNode:M.focusNode,focusOffset:M.focusOffset}),ut&&nc(ut,M)||(ut=M,M=hg(ft,"onSelect"),0>=ae,F-=ae,Xo=1<<32-Ze(w)+F|C<pn?(kn=or,or=null):kn=or.sibling;var Qn=at(Xe,or,rt[pn],bt);if(Qn===null){or===null&&(or=kn);break}v&&or&&Qn.alternate===null&&w(Xe,or),Ve=V(Qn,Ve,pn),Zn===null?wr=Qn:Zn.sibling=Qn,Zn=Qn,or=kn}if(pn===rt.length)return C(Xe,or),hn&&Ua(Xe,pn),wr;if(or===null){for(;pnpn?(kn=or,or=null):kn=or.sibling;var oh=at(Xe,or,Qn.value,bt);if(oh===null){or===null&&(or=kn);break}v&&or&&oh.alternate===null&&w(Xe,or),Ve=V(oh,Ve,pn),Zn===null?wr=oh:Zn.sibling=oh,Zn=oh,or=kn}if(Qn.done)return C(Xe,or),hn&&Ua(Xe,pn),wr;if(or===null){for(;!Qn.done;pn++,Qn=rt.next())Qn=_t(Xe,Qn.value,bt),Qn!==null&&(Ve=V(Qn,Ve,pn),Zn===null?wr=Qn:Zn.sibling=Qn,Zn=Qn);return hn&&Ua(Xe,pn),wr}for(or=M(or);!Qn.done;pn++,Qn=rt.next())Qn=lt(or,Xe,pn,Qn.value,bt),Qn!==null&&(v&&Qn.alternate!==null&&or.delete(Qn.key===null?pn:Qn.key),Ve=V(Qn,Ve,pn),Zn===null?wr=Qn:Zn.sibling=Qn,Zn=Qn);return v&&or.forEach(function(HE){return w(Xe,HE)}),hn&&Ua(Xe,pn),wr}function Ti(Xe,Ve,rt,bt){if(typeof rt=="object"&&rt!==null&&rt.type===g&&rt.key===null&&(rt=rt.props.children),typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case h:e:{for(var wr=rt.key;Ve!==null;){if(Ve.key===wr){if(wr=rt.type,wr===g){if(Ve.tag===7){C(Xe,Ve.sibling),bt=F(Ve,rt.props.children),bt.return=Xe,Xe=bt;break e}}else if(Ve.elementType===wr||typeof wr=="object"&&wr!==null&&wr.$$typeof===T&&Ao(wr)===Ve.type){C(Xe,Ve.sibling),bt=F(Ve,rt.props),Po(bt,rt),bt.return=Xe,Xe=bt;break e}C(Xe,Ve);break}else w(Xe,Ve);Ve=Ve.sibling}rt.type===g?(bt=sc(rt.props.children,Xe.mode,bt,rt.key),bt.return=Xe,Xe=bt):(bt=oc(rt.type,rt.key,rt.props,null,Xe.mode,bt),Po(bt,rt),bt.return=Xe,Xe=bt)}return ae(Xe);case p:e:{for(wr=rt.key;Ve!==null;){if(Ve.key===wr)if(Ve.tag===4&&Ve.stateNode.containerInfo===rt.containerInfo&&Ve.stateNode.implementation===rt.implementation){C(Xe,Ve.sibling),bt=F(Ve,rt.children||[]),bt.return=Xe,Xe=bt;break e}else{C(Xe,Ve);break}else w(Xe,Ve);Ve=Ve.sibling}bt=yf(rt,Xe.mode,bt),bt.return=Xe,Xe=bt}return ae(Xe);case T:return rt=Ao(rt),Ti(Xe,Ve,rt,bt)}if(z(rt))return rr(Xe,Ve,rt,bt);if(L(rt)){if(wr=L(rt),typeof wr!="function")throw Error(n(150));return rt=wr.call(rt),Dr(Xe,Ve,rt,bt)}if(typeof rt.then=="function")return Ti(Xe,Ve,Uc(rt),bt);if(rt.$$typeof===m)return Ti(Xe,Ve,Ko(Xe,rt),bt);Qa(Xe,rt)}return typeof rt=="string"&&rt!==""||typeof rt=="number"||typeof rt=="bigint"?(rt=""+rt,Ve!==null&&Ve.tag===6?(C(Xe,Ve.sibling),bt=F(Ve,rt),bt.return=Xe,Xe=bt):(C(Xe,Ve),bt=ji(rt,Xe.mode,bt),bt.return=Xe,Xe=bt),ae(Xe)):C(Xe,Ve)}return function(Xe,Ve,rt,bt){try{Ro=0;var wr=Ti(Xe,Ve,rt,bt);return ku=null,wr}catch(or){if(or===Fc||or===Ca)throw or;var Zn=Yi(29,or,null,Xe.mode);return Zn.lanes=bt,Zn.return=Xe,Zn}finally{}}}var Iu=rd(!0),wf=rd(!1),es=!1;function fo(v){v.updateQueue={baseState:v.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nd(v,w){v=v.updateQueue,w.updateQueue===v&&(w.updateQueue={baseState:v.baseState,firstBaseUpdate:v.firstBaseUpdate,lastBaseUpdate:v.lastBaseUpdate,shared:v.shared,callbacks:null})}function Nu(v){return{lane:v,tag:0,payload:null,callback:null,next:null}}function Zs(v,w,C){var M=v.updateQueue;if(M===null)return null;if(M=M.shared,(zt&2)!==0){var F=M.pending;return F===null?w.next=w:(w.next=F.next,F.next=w),M.pending=w,w=Ka(v),ll(v,null,C),w}return ac(v,M,w,C),Ka(v)}function xf(v,w,C){if(w=w.updateQueue,w!==null&&(w=w.shared,(C&4194048)!==0)){var M=w.lanes;M&=v.pendingLanes,C|=M,w.lanes=C,sn(v,C)}}function xs(v,w){var C=v.updateQueue,M=v.alternate;if(M!==null&&(M=M.updateQueue,C===M)){var F=null,V=null;if(C=C.firstBaseUpdate,C!==null){do{var ae={lane:C.lane,tag:C.tag,payload:C.payload,callback:null,next:null};V===null?F=V=ae:V=V.next=ae,C=C.next}while(C!==null);V===null?F=V=w:V=V.next=w}else F=V=w;C={baseState:M.baseState,firstBaseUpdate:F,lastBaseUpdate:V,shared:M.shared,callbacks:M.callbacks},v.updateQueue=C;return}v=C.lastBaseUpdate,v===null?C.firstBaseUpdate=w:v.next=w,C.lastBaseUpdate=w}var Zi=!1;function hc(){if(Zi){var v=gl;if(v!==null)throw v}}function Ef(v,w,C,M){Zi=!1;var F=v.updateQueue;es=!1;var V=F.firstBaseUpdate,ae=F.lastBaseUpdate,Se=F.shared.pending;if(Se!==null){F.shared.pending=null;var Fe=Se,it=Fe.next;Fe.next=null,ae===null?V=it:ae.next=it,ae=Fe;var ht=v.alternate;ht!==null&&(ht=ht.updateQueue,Se=ht.lastBaseUpdate,Se!==ae&&(Se===null?ht.firstBaseUpdate=it:Se.next=it,ht.lastBaseUpdate=Fe))}if(V!==null){var _t=F.baseState;ae=0,ht=it=Fe=null,Se=V;do{var at=Se.lane&-536870913,lt=at!==Se.lane;if(lt?(Mr&at)===at:(M&at)===at){at!==0&&at===Pu&&(Zi=!0),ht!==null&&(ht=ht.next={lane:0,tag:Se.tag,payload:Se.payload,callback:null,next:null});e:{var rr=v,Dr=Se;at=w;var Ti=C;switch(Dr.tag){case 1:if(rr=Dr.payload,typeof rr=="function"){_t=rr.call(Ti,_t,at);break e}_t=rr;break e;case 3:rr.flags=rr.flags&-65537|128;case 0:if(rr=Dr.payload,at=typeof rr=="function"?rr.call(Ti,_t,at):rr,at==null)break e;_t=f({},_t,at);break e;case 2:es=!0}}at=Se.callback,at!==null&&(v.flags|=64,lt&&(v.flags|=8192),lt=F.callbacks,lt===null?F.callbacks=[at]:lt.push(at))}else lt={lane:at,tag:Se.tag,payload:Se.payload,callback:Se.callback,next:null},ht===null?(it=ht=lt,Fe=_t):ht=ht.next=lt,ae|=at;if(Se=Se.next,Se===null){if(Se=F.shared.pending,Se===null)break;lt=Se,Se=lt.next,lt.next=null,F.lastBaseUpdate=lt,F.shared.pending=null}}while(!0);ht===null&&(Fe=_t),F.baseState=Fe,F.firstBaseUpdate=it,F.lastBaseUpdate=ht,V===null&&(F.shared.lanes=0),Xc|=ae,v.lanes=ae,v.memoizedState=_t}}function Es(v,w){if(typeof v!="function")throw Error(n(191,v));v.call(w)}function Ss(v,w){var C=v.callbacks;if(C!==null)for(v.callbacks=null,v=0;vV?V:8;var ae=H.T,Se={};H.T=Se,zd(v,!1,w,C);try{var Fe=F(),it=H.S;if(it!==null&&it(Se,Fe),Fe!==null&&typeof Fe=="object"&&typeof Fe.then=="function"){var ht=dc(Fe,M);Do(v,w,ht,Al(v))}else Do(v,w,M,Al(v))}catch(_t){Do(v,w,{then:function(){},status:"rejected",reason:_t},Al())}finally{q.p=V,ae!==null&&Se.types!==null&&(ae.types=Se.types),H.T=ae}}function Lh(){}function Vc(v,w,C,M){if(v.tag!==5)throw Error(n(476));var F=Xp(v).queue;Tf(v,F,w,W,C===null?Lh:function(){return $p(v),C(M)})}function Xp(v){var w=v.memoizedState;if(w!==null)return w;w={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ye,lastRenderedState:W},next:null};var C={};return w.next={memoizedState:C,baseState:C,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ye,lastRenderedState:C},next:null},v.memoizedState=w,v=v.alternate,v!==null&&(v.memoizedState=w),w}function $p(v){var w=Xp(v);w.next===null&&(w=v.alternate.memoizedState),Do(v,w.next.queue,{},Al())}function Fd(){return _a(Zv)}function Ud(){return Un().memoizedState}function ud(){return Un().memoizedState}function ld(v){for(var w=v.return;w!==null;){switch(w.tag){case 24:case 3:var C=Al();v=Nu(C);var M=Zs(w,v,C);M!==null&&(zu(M,w,C),xf(M,w,C)),w={cache:Za()},v.payload=w;return}w=w.return}}function fy(v,w,C){var M=Al();C={lane:M,revertLane:0,gesture:null,action:C,hasEagerState:!1,eagerState:null,next:null},jh(v)?El(w,C):(C=ys(v,w,C,M),C!==null&&(zu(C,v,M),Ur(C,w,M)))}function Kp(v,w,C){var M=Al();Do(v,w,C,M)}function Do(v,w,C,M){var F={lane:M,revertLane:0,gesture:null,action:C,hasEagerState:!1,eagerState:null,next:null};if(jh(v))El(w,F);else{var V=v.alternate;if(v.lanes===0&&(V===null||V.lanes===0)&&(V=w.lastRenderedReducer,V!==null))try{var ae=w.lastRenderedState,Se=V(ae,C);if(F.hasEagerState=!0,F.eagerState=Se,ri(Se,ae))return ac(v,w,F,0),Hr===null&&Ys(),!1}catch{}finally{}if(C=ys(v,w,F,M),C!==null)return zu(C,v,M),Ur(C,w,M),!0}return!1}function zd(v,w,C,M){if(M={lane:2,revertLane:Rl(),gesture:null,action:M,hasEagerState:!1,eagerState:null,next:null},jh(v)){if(w)throw Error(n(479))}else w=ys(v,C,M,2),w!==null&&zu(w,v,2)}function jh(v){var w=v.alternate;return v===Sr||w!==null&&w===Sr}function El(v,w){bl=vc=!0;var C=v.pending;C===null?w.next=w:(w.next=C.next,C.next=w),v.pending=w}function Ur(v,w,C){if((C&4194048)!==0){var M=w.lanes;M&=v.pendingLanes,C|=M,w.lanes=C,sn(v,C)}}var Cf={readContext:_a,use:K,useCallback:si,useContext:si,useEffect:si,useImperativeHandle:si,useLayoutEffect:si,useInsertionEffect:si,useMemo:si,useReducer:si,useRef:si,useState:si,useDebugValue:si,useDeferredValue:si,useTransition:si,useSyncExternalStore:si,useId:si,useHostTransitionStatus:si,useFormState:si,useActionState:si,useOptimistic:si,useMemoCache:si,useCacheRefresh:si};Cf.useEffectEvent=si;var ns={readContext:_a,use:K,useCallback:function(v,w){return Aa().memoizedState=[v,w===void 0?null:w],v},useContext:_a,useEffect:Mn,useImperativeHandle:function(v,w,C){C=C!=null?C.concat([v]):null,mn(4194308,4,mc.bind(null,w,v),C)},useLayoutEffect:function(v,w){return mn(4194308,4,v,w)},useInsertionEffect:function(v,w){mn(4,2,v,w)},useMemo:function(v,w){var C=Aa();w=w===void 0?null:w;var M=v();if(Cs){Qe(!0);try{v()}finally{Qe(!1)}}return C.memoizedState=[M,w],M},useReducer:function(v,w,C){var M=Aa();if(C!==void 0){var F=C(w);if(Cs){Qe(!0);try{C(w)}finally{Qe(!1)}}}else F=w;return M.memoizedState=M.baseState=F,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:v,lastRenderedState:F},M.queue=v,v=v.dispatch=fy.bind(null,Sr,v),[M.memoizedState,v]},useRef:function(v){var w=Aa();return v={current:v},w.memoizedState=v},useState:function(v){v=Ct(v);var w=v.queue,C=Kp.bind(null,Sr,w);return w.dispatch=C,[v.memoizedState,C]},useDebugValue:As,useDeferredValue:function(v,w){var C=Aa();return wa(C,v,w)},useTransition:function(){var v=Ct(!1);return v=Tf.bind(null,Sr,v.queue,!0,!1),Aa().memoizedState=v,[!1,v]},useSyncExternalStore:function(v,w,C){var M=Sr,F=Aa();if(hn){if(C===void 0)throw Error(n(407));C=C()}else{if(C=w(),Hr===null)throw Error(n(349));(Mr&127)!==0||Ke(M,w,C)}F.memoizedState=C;var V={value:C,getSnapshot:w};return F.queue=V,Mn(gt.bind(null,M,V,v),[v]),M.flags|=2048,yr(9,{destroy:void 0},Je.bind(null,M,V,C,w),null),C},useId:function(){var v=Aa(),w=Hr.identifierPrefix;if(hn){var C=Fa,M=Xo;C=(M&~(1<<32-Ze(M)-1)).toString(32)+C,w="_"+w+"R_"+C,C=ad++,0<\/script>",V=V.removeChild(V.firstChild);break;case"select":V=typeof M.is=="string"?ae.createElement("select",{is:M.is}):ae.createElement("select"),M.multiple?V.multiple=!0:M.size&&(V.size=M.size);break;default:V=typeof M.is=="string"?ae.createElement(F,{is:M.is}):ae.createElement(F)}}V[on]=w,V[Nn]=M;e:for(ae=w.child;ae!==null;){if(ae.tag===5||ae.tag===6)V.appendChild(ae.stateNode);else if(ae.tag!==4&&ae.tag!==27&&ae.child!==null){ae.child.return=ae,ae=ae.child;continue}if(ae===w)break e;for(;ae.sibling===null;){if(ae.return===null||ae.return===w)break e;ae=ae.return}ae.sibling.return=ae.return,ae=ae.sibling}w.stateNode=V;e:switch(os(V,F,M),F){case"button":case"input":case"select":case"textarea":M=!!M.autoFocus;break e;case"img":M=!0;break e;default:M=!1}M&&Rs(w)}}return pi(w),eg(w,w.type,v===null?null:v.memoizedProps,w.pendingProps,C),null;case 6:if(v&&w.stateNode!=null)v.memoizedProps!==M&&Rs(w);else{if(typeof M!="string"&&w.stateNode===null)throw Error(n(166));if(v=le.current,hl(w)){if(v=w.stateNode,C=w.memoizedProps,M=null,F=Si,F!==null)switch(F.tag){case 27:case 5:M=F.memoizedProps}v[on]=w,v=!!(v.nodeValue===C||M!==null&&M.suppressHydrationWarning===!0||C_(v.nodeValue,C)),v||dl(w,!0)}else v=gg(v).createTextNode(M),v[on]=w,w.stateNode=v}return pi(w),null;case 31:if(C=w.memoizedState,v===null||v.memoizedState!==null){if(M=hl(w),C!==null){if(v===null){if(!M)throw Error(n(318));if(v=w.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(n(557));v[on]=w}else xe(),(w.flags&128)===0&&(w.memoizedState=null),w.flags|=4;pi(w),v=!1}else C=Tu(),v!==null&&v.memoizedState!==null&&(v.memoizedState.hydrationErrors=C),v=!0;if(!v)return w.flags&256?(Wn(w),w):(Wn(w),null);if((w.flags&128)!==0)throw Error(n(558))}return pi(w),null;case 13:if(M=w.memoizedState,v===null||v.memoizedState!==null&&v.memoizedState.dehydrated!==null){if(F=hl(w),M!==null&&M.dehydrated!==null){if(v===null){if(!F)throw Error(n(318));if(F=w.memoizedState,F=F!==null?F.dehydrated:null,!F)throw Error(n(317));F[on]=w}else xe(),(w.flags&128)===0&&(w.memoizedState=null),w.flags|=4;pi(w),F=!1}else F=Tu(),v!==null&&v.memoizedState!==null&&(v.memoizedState.hydrationErrors=F),F=!0;if(!F)return w.flags&256?(Wn(w),w):(Wn(w),null)}return Wn(w),(w.flags&128)!==0?(w.lanes=C,w):(C=M!==null,v=v!==null&&v.memoizedState!==null,C&&(M=w.child,F=null,M.alternate!==null&&M.alternate.memoizedState!==null&&M.alternate.memoizedState.cachePool!==null&&(F=M.alternate.memoizedState.cachePool.pool),V=null,M.memoizedState!==null&&M.memoizedState.cachePool!==null&&(V=M.memoizedState.cachePool.pool),V!==F&&(M.flags|=2048)),C!==v&&C&&(w.child.flags|=8192),Hd(w,w.updateQueue),pi(w),null);case 4:return fe(),v===null&&E0(w.stateNode.containerInfo),pi(w),null;case 10:return Au(w.type),pi(w),null;case 19:if(Z(Pi),M=w.memoizedState,M===null)return pi(w),null;if(F=(w.flags&128)!==0,V=M.rendering,V===null)if(F)Vh(M,!1);else{if(qi!==0||v!==null&&(v.flags&128)!==0)for(v=w.child;v!==null;){if(V=ts(v),V!==null){for(w.flags|=128,Vh(M,!1),v=V.updateQueue,w.updateQueue=v,Hd(w,v),w.subtreeFlags=0,v=C,C=w.child;C!==null;)Cv(C,v),C=C.sibling;return ue(Pi,Pi.current&1|2),hn&&Ua(w,M.treeForkCount),w.child}v=v.sibling}M.tail!==null&&Ie()>$h&&(w.flags|=128,F=!0,Vh(M,!1),w.lanes=4194304)}else{if(!F)if(v=ts(V),v!==null){if(w.flags|=128,F=!0,v=v.updateQueue,w.updateQueue=v,Hd(w,v),Vh(M,!0),M.tail===null&&M.tailMode==="hidden"&&!V.alternate&&!hn)return pi(w),null}else 2*Ie()-M.renderingStartTime>$h&&C!==536870912&&(w.flags|=128,F=!0,Vh(M,!1),w.lanes=4194304);M.isBackwards?(V.sibling=w.child,w.child=V):(v=M.last,v!==null?v.sibling=V:w.child=V,M.last=V)}return M.tail!==null?(v=M.tail,M.rendering=v,M.tail=v.sibling,M.renderingStartTime=Ie(),v.sibling=null,C=Pi.current,ue(Pi,F?C&1|2:C&1),hn&&Ua(w,M.treeForkCount),v):(pi(w),null);case 22:case 23:return Wn(w),Lu(),M=w.memoizedState!==null,v!==null?v.memoizedState!==null!==M&&(w.flags|=8192):M&&(w.flags|=8192),M?(C&536870912)!==0&&(w.flags&128)===0&&(pi(w),w.subtreeFlags&6&&(w.flags|=8192)):pi(w),C=w.updateQueue,C!==null&&Hd(w,C.retryQueue),C=null,v!==null&&v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(C=v.memoizedState.cachePool.pool),M=null,w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(M=w.memoizedState.cachePool.pool),M!==C&&(w.flags|=2048),v!==null&&Z(Ta),null;case 24:return C=null,v!==null&&(C=v.memoizedState.cache),w.memoizedState.cache!==C&&(w.flags|=2048),Au($i),pi(w),null;case 25:return null;case 30:return null}throw Error(n(156,w.tag))}function Hh(v,w){switch(uc(w),w.tag){case 1:return v=w.flags,v&65536?(w.flags=v&-65537|128,w):null;case 3:return Au($i),fe(),v=w.flags,(v&65536)!==0&&(v&128)===0?(w.flags=v&-65537|128,w):null;case 26:case 27:case 5:return de(w),null;case 31:if(w.memoizedState!==null){if(Wn(w),w.alternate===null)throw Error(n(340));xe()}return v=w.flags,v&65536?(w.flags=v&-65537|128,w):null;case 13:if(Wn(w),v=w.memoizedState,v!==null&&v.dehydrated!==null){if(w.alternate===null)throw Error(n(340));xe()}return v=w.flags,v&65536?(w.flags=v&-65537|128,w):null;case 19:return Z(Pi),null;case 4:return fe(),null;case 10:return Au(w.type),null;case 22:case 23:return Wn(w),Lu(),v!==null&&Z(Ta),v=w.flags,v&65536?(w.flags=v&-65537|128,w):null;case 24:return Au($i),null;case 25:return null;default:return null}}function Nv(v,w){switch(uc(w),w.tag){case 3:Au($i),fe();break;case 26:case 27:case 5:de(w);break;case 4:fe();break;case 31:w.memoizedState!==null&&Wn(w);break;case 13:Wn(w);break;case 19:Z(Pi);break;case 10:Au(w.type);break;case 22:case 23:Wn(w),Lu(),v!==null&&Z(Ta);break;case 24:Au($i)}}function Wd(v,w){try{var C=w.updateQueue,M=C!==null?C.lastEffect:null;if(M!==null){var F=M.next;C=F;do{if((C.tag&v)===v){M=void 0;var V=C.create,ae=C.inst;M=V(),ae.destroy=M}C=C.next}while(C!==F)}}catch(Se){yi(w,w.return,Se)}}function Tl(v,w,C){try{var M=w.updateQueue,F=M!==null?M.lastEffect:null;if(F!==null){var V=F.next;M=V;do{if((M.tag&v)===v){var ae=M.inst,Se=ae.destroy;if(Se!==void 0){ae.destroy=void 0,F=w;var Fe=C,it=Se;try{it()}catch(ht){yi(F,Fe,ht)}}}M=M.next}while(M!==V)}}catch(ht){yi(w,w.return,ht)}}function Yd(v){var w=v.updateQueue;if(w!==null){var C=v.stateNode;try{Ss(w,C)}catch(M){yi(v,v.return,M)}}}function Lv(v,w,C){C.props=eo(v.type,v.memoizedProps),C.state=v.memoizedState;try{C.componentWillUnmount()}catch(M){yi(v,w,M)}}function Ps(v,w){try{var C=v.ref;if(C!==null){switch(v.tag){case 26:case 27:case 5:var M=v.stateNode;break;case 30:M=v.stateNode;break;default:M=v.stateNode}typeof C=="function"?v.refCleanup=C(M):C.current=M}}catch(F){yi(v,w,F)}}function ro(v,w){var C=v.ref,M=v.refCleanup;if(C!==null)if(typeof M=="function")try{M()}catch(F){yi(v,w,F)}finally{v.refCleanup=null,v=v.alternate,v!=null&&(v.refCleanup=null)}else if(typeof C=="function")try{C(null)}catch(F){yi(v,w,F)}else C.current=null}function my(v){var w=v.type,C=v.memoizedProps,M=v.stateNode;try{e:switch(w){case"button":case"input":case"select":case"textarea":C.autoFocus&&M.focus();break e;case"img":C.src?M.src=C.src:C.srcSet&&(M.srcset=C.srcSet)}}catch(F){yi(v,v.return,F)}}function jv(v,w,C){try{var M=v.stateNode;OE(M,v.type,C,w),M[Nn]=w}catch(F){yi(v,v.return,F)}}function as(v){return v.tag===5||v.tag===3||v.tag===26||v.tag===27&&zr(v.type)||v.tag===4}function Wh(v){e:for(;;){for(;v.sibling===null;){if(v.return===null||as(v.return))return null;v=v.return}for(v.sibling.return=v.return,v=v.sibling;v.tag!==5&&v.tag!==6&&v.tag!==18;){if(v.tag===27&&zr(v.type)||v.flags&2||v.child===null||v.tag===4)continue e;v.child.return=v,v=v.child}if(!(v.flags&2))return v.stateNode}}function tg(v,w,C){var M=v.tag;if(M===5||M===6)v=v.stateNode,w?(C.nodeType===9?C.body:C.nodeName==="HTML"?C.ownerDocument.body:C).insertBefore(v,w):(w=C.nodeType===9?C.body:C.nodeName==="HTML"?C.ownerDocument.body:C,w.appendChild(v),C=C._reactRootContainer,C!=null||w.onclick!==null||(w.onclick=Gs));else if(M!==4&&(M===27&&zr(v.type)&&(C=v.stateNode,w=null),v=v.child,v!==null))for(tg(v,w,C),v=v.sibling;v!==null;)tg(v,w,C),v=v.sibling}function Bv(v,w,C){var M=v.tag;if(M===5||M===6)v=v.stateNode,w?C.insertBefore(v,w):C.appendChild(v);else if(M!==4&&(M===27&&zr(v.type)&&(C=v.stateNode),v=v.child,v!==null))for(Bv(v,w,C),v=v.sibling;v!==null;)Bv(v,w,C),v=v.sibling}function Fv(v){var w=v.stateNode,C=v.memoizedProps;try{for(var M=v.type,F=w.attributes;F.length;)w.removeAttributeNode(F[0]);os(w,M,C),w[on]=v,w[Nn]=C}catch(V){yi(v,v.return,V)}}var Cl=!1,Ra=!1,rg=!1,by=typeof WeakSet=="function"?WeakSet:Set,qa=null;function o0(v,w){if(v=v.containerInfo,pg=Uy,v=Bc(v),Ws(v)){if("selectionStart"in v)var C={start:v.selectionStart,end:v.selectionEnd};else e:{C=(C=v.ownerDocument)&&C.defaultView||window;var M=C.getSelection&&C.getSelection();if(M&&M.rangeCount!==0){C=M.anchorNode;var F=M.anchorOffset,V=M.focusNode;M=M.focusOffset;try{C.nodeType,V.nodeType}catch{C=null;break e}var ae=0,Se=-1,Fe=-1,it=0,ht=0,_t=v,at=null;t:for(;;){for(var lt;_t!==C||F!==0&&_t.nodeType!==3||(Se=ae+F),_t!==V||M!==0&&_t.nodeType!==3||(Fe=ae+M),_t.nodeType===3&&(ae+=_t.nodeValue.length),(lt=_t.firstChild)!==null;)at=_t,_t=lt;for(;;){if(_t===v)break t;if(at===C&&++it===F&&(Se=ae),at===V&&++ht===M&&(Fe=ae),(lt=_t.nextSibling)!==null)break;_t=at,at=_t.parentNode}_t=lt}C=Se===-1||Fe===-1?null:{start:Se,end:Fe}}else C=null}C=C||{start:0,end:0}}else C=null;for(C0={focusedElem:v,selectionRange:C},Uy=!1,qa=w;qa!==null;)if(w=qa,v=w.child,(w.subtreeFlags&1028)!==0&&v!==null)v.return=w,qa=v;else for(;qa!==null;){switch(w=qa,V=w.alternate,v=w.flags,w.tag){case 0:if((v&4)!==0&&(v=w.updateQueue,v=v!==null?v.events:null,v!==null))for(C=0;C title"))),os(V,M,C),V[on]=v,Hn(V),M=V;break e;case"link":var ae=U_("link","href",F).get(M+(C.href||""));if(ae){for(var Se=0;SeTi&&(ae=Ti,Ti=Dr,Dr=ae);var Xe=vf(Se,Dr),Ve=vf(Se,Ti);if(Xe&&Ve&&(lt.rangeCount!==1||lt.anchorNode!==Xe.node||lt.anchorOffset!==Xe.offset||lt.focusNode!==Ve.node||lt.focusOffset!==Ve.offset)){var rt=_t.createRange();rt.setStart(Xe.node,Xe.offset),lt.removeAllRanges(),Dr>Ti?(lt.addRange(rt),lt.extend(Ve.node,Ve.offset)):(rt.setEnd(Ve.node,Ve.offset),lt.addRange(rt))}}}}for(_t=[],lt=Se;lt=lt.parentNode;)lt.nodeType===1&&_t.push({element:lt,left:lt.scrollLeft,top:lt.scrollTop});for(typeof Se.focus=="function"&&Se.focus(),Se=0;Se<_t.length;Se++){var bt=_t[Se];bt.element.scrollLeft=bt.left,bt.element.scrollTop=bt.top}}Uy=!!pg,C0=pg=null}finally{zt=F,q.p=M,H.T=C}}v.current=w,yo=2}}function v0(){if(yo===2){yo=0;var v=Zd,w=zv,C=(w.flags&8772)!==0;if((w.subtreeFlags&8772)!==0||C){C=H.T,H.T=null;var M=q.p;q.p=2;var F=zt;zt|=4;try{ng(v,w.alternate,w)}finally{zt=F,q.p=M,H.T=C}}yo=3}}function Ty(){if(yo===4||yo===3){yo=0,Me();var v=Zd,w=zv,C=hd,M=s_;(w.subtreeFlags&10256)!==0||(w.flags&10256)!==0?yo=5:(yo=0,zv=Zd=null,p0(v,v.pendingLanes));var F=v.pendingLanes;if(F===0&&(Kd=null),bn(C),w=w.stateNode,Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(_e,w,void 0,(w.current.flags&128)===128)}catch{}if(M!==null){w=H.T,F=q.p,q.p=2,H.T=null;try{for(var V=v.onRecoverableError,ae=0;aeC?32:C,H.T=null,C=l0,l0=null;var V=Zd,ae=hd;if(yo=0,zv=Zd=null,hd=0,(zt&6)!==0)throw Error(n(331));var Se=zt;if(zt|=4,Gt(V.current),Et(V,V.current,ae,C),zt=Se,fg(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(_e,V)}catch{}return!0}finally{q.p=F,H.T=M,p0(v,w)}}function y0(v,w,C){w=sa(C,w),w=Bh(v.stateNode,w,2),v=Zs(v,w,2),v!==null&&(Br(v,2),Af(v))}function yi(v,w,C){if(v.tag===3)y0(v,v,C);else for(;w!==null;){if(w.tag===3){y0(w,v,C);break}else if(w.tag===1){var M=w.stateNode;if(typeof w.type.getDerivedStateFromError=="function"||typeof M.componentDidCatch=="function"&&(Kd===null||!Kd.has(M))){v=sa(C,v),C=Sl(2),M=Zs(w,C,2),M!==null&&(fd(C,M,w,v),Br(M,2),Af(M));break}}w=w.return}}function m0(v,w,C){var M=v.pingCache;if(M===null){M=v.pingCache=new vr;var F=new Set;M.set(w,F)}else F=M.get(w),F===void 0&&(F=new Set,M.set(w,F));F.has(C)||(Yc=!0,F.add(C),v=_E.bind(null,v,w,C),w.then(v,v))}function _E(v,w,C){var M=v.pingCache;M!==null&&M.delete(w),v.pingedLanes|=v.suspendedLanes&C,v.warmLanes&=~C,Hr===v&&(Mr&C)===C&&(qi===4||qi===3&&(Mr&62914560)===Mr&&300>Ie()-ag?(zt&2)===0&&qv(v,0):Xh|=C,$c===Mr&&($c=0)),Af(v)}function cg(v,w){w===0&&(w=Xt()),v=ms(v,w),v!==null&&(Br(v,w),Af(v))}function Cy(v){var w=v.memoizedState,C=0;w!==null&&(C=w.retryLane),cg(v,C)}function wE(v,w){var C=0;switch(v.tag){case 31:case 13:var M=v.stateNode,F=v.memoizedState;F!==null&&(C=F.retryLane);break;case 19:M=v.stateNode;break;case 22:M=v.stateNode._retryCache;break;default:throw Error(n(314))}M!==null&&M.delete(w),cg(v,C)}function xE(v,w){return ie(v,w)}var Vv=null,Kh=null,b0=!1,Ay=!1,_0=!1,Qd=0;function Af(v){v!==Kh&&v.next===null&&(Kh===null?Vv=Kh=v:Kh=Kh.next=v),Ay=!0,b0||(b0=!0,SE())}function fg(v,w){if(!_0&&Ay){_0=!0;do for(var C=!1,M=Vv;M!==null;){if(v!==0){var F=M.pendingLanes;if(F===0)var V=0;else{var ae=M.suspendedLanes,Se=M.pingedLanes;V=(1<<31-Ze(42|v)+1)-1,V&=F&~(ae&~Se),V=V&201326741?V&201326741|1:V?V|2:0}V!==0&&(C=!0,w_(M,V))}else V=Mr,V=sr(M,M===Hr?V:0,M.cancelPendingCommit!==null||M.timeoutHandle!==-1),(V&3)===0||Ut(M,V)||(C=!0,w_(M,V));M=M.next}while(C);_0=!1}}function EE(){m_()}function m_(){Ay=b0=!1;var v=0;Qd!==0&&TE()&&(v=Qd);for(var w=Ie(),C=null,M=Vv;M!==null;){var F=M.next,V=b_(M,w);V===0?(M.next=null,C===null?Vv=F:C.next=F,F===null&&(Kh=C)):(C=M,(v!==0||(V&3)!==0)&&(Ay=!0)),M=F}yo!==0&&yo!==5||fg(v),Qd!==0&&(Qd=0)}function b_(v,w){for(var C=v.suspendedLanes,M=v.pingedLanes,F=v.expirationTimes,V=v.pendingLanes&-62914561;0Se)break;var ht=Fe.transferSize,_t=Fe.initiatorType;ht&&T0(_t)&&(Fe=Fe.responseEnd,ae+=ht*(Fe"u"?null:document;function L_(v,w,C){var M=th;if(M&&typeof w=="string"&&w){var F=Xa(w);F='link[rel="'+v+'"][href="'+F+'"]',typeof C=="string"&&(F+='[crossorigin="'+C+'"]'),N_.has(F)||(N_.add(F),v={rel:v,crossOrigin:C,href:w},M.querySelector(F)===null&&(w=M.createElement("link"),os(w,"link",v),Hn(w),M.head.appendChild(w)))}}function M0(v){gd.D(v),L_("dns-prefetch",v,null)}function DE(v,w){gd.C(v,w),L_("preconnect",v,w)}function kE(v,w,C){gd.L(v,w,C);var M=th;if(M&&v&&w){var F='link[rel="preload"][as="'+Xa(w)+'"]';w==="image"&&C&&C.imageSrcSet?(F+='[imagesrcset="'+Xa(C.imageSrcSet)+'"]',typeof C.imageSizes=="string"&&(F+='[imagesizes="'+Xa(C.imageSizes)+'"]')):F+='[href="'+Xa(v)+'"]';var V=F;switch(w){case"style":V=Wv(v);break;case"script":V=Xv(v)}Sc.has(V)||(v=f({rel:"preload",href:w==="image"&&C&&C.imageSrcSet?void 0:v,as:w},C),Sc.set(V,v),M.querySelector(F)!==null||w==="style"&&M.querySelector(Yv(V))||w==="script"&&M.querySelector($v(V))||(w=M.createElement("link"),os(w,"link",v),Hn(w),M.head.appendChild(w)))}}function IE(v,w){gd.m(v,w);var C=th;if(C&&v){var M=w&&typeof w.as=="string"?w.as:"script",F='link[rel="modulepreload"][as="'+Xa(M)+'"][href="'+Xa(v)+'"]',V=F;switch(M){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":V=Xv(v)}if(!Sc.has(V)&&(v=f({rel:"modulepreload",href:v},w),Sc.set(V,v),C.querySelector(F)===null)){switch(M){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(C.querySelector($v(V)))return}M=C.createElement("link"),os(M,"link",v),Hn(M),C.head.appendChild(M)}}}function jo(v,w,C){gd.S(v,w,C);var M=th;if(M&&v){var F=ei(M).hoistableStyles,V=Wv(v);w=w||"default";var ae=F.get(V);if(!ae){var Se={loading:0,preload:null};if(ae=M.querySelector(Yv(V)))Se.loading=5;else{v=f({rel:"stylesheet",href:v,"data-precedence":w},C),(C=Sc.get(V))&&D0(v,C);var Fe=ae=M.createElement("link");Hn(Fe),os(Fe,"link",v),Fe._p=new Promise(function(it,ht){Fe.onload=it,Fe.onerror=ht}),Fe.addEventListener("load",function(){Se.loading|=1}),Fe.addEventListener("error",function(){Se.loading|=2}),Se.loading|=4,Ny(ae,w,M)}ae={type:"stylesheet",instance:ae,count:1,state:Se},F.set(V,ae)}}}function Vu(v,w){gd.X(v,w);var C=th;if(C&&v){var M=ei(C).hoistableScripts,F=Xv(v),V=M.get(F);V||(V=C.querySelector($v(F)),V||(v=f({src:v,async:!0},w),(w=Sc.get(F))&&Ly(v,w),V=C.createElement("script"),Hn(V),os(V,"link",v),C.head.appendChild(V)),V={type:"script",instance:V,count:1,state:null},M.set(F,V))}}function NE(v,w){gd.M(v,w);var C=th;if(C&&v){var M=ei(C).hoistableScripts,F=Xv(v),V=M.get(F);V||(V=C.querySelector($v(F)),V||(v=f({src:v,async:!0,type:"module"},w),(w=Sc.get(F))&&Ly(v,w),V=C.createElement("script"),Hn(V),os(V,"link",v),C.head.appendChild(V)),V={type:"script",instance:V,count:1,state:null},M.set(F,V))}}function j_(v,w,C,M){var F=(F=le.current)?Iy(F):null;if(!F)throw Error(n(446));switch(v){case"meta":case"title":return null;case"style":return typeof C.precedence=="string"&&typeof C.href=="string"?(w=Wv(C.href),C=ei(F).hoistableStyles,M=C.get(w),M||(M={type:"style",instance:null,count:0,state:null},C.set(w,M)),M):{type:"void",instance:null,count:0,state:null};case"link":if(C.rel==="stylesheet"&&typeof C.href=="string"&&typeof C.precedence=="string"){v=Wv(C.href);var V=ei(F).hoistableStyles,ae=V.get(v);if(ae||(F=F.ownerDocument||F,ae={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},V.set(v,ae),(V=F.querySelector(Yv(v)))&&!V._p&&(ae.instance=V,ae.state.loading=5),Sc.has(v)||(C={rel:"preload",as:"style",href:C.href,crossOrigin:C.crossOrigin,integrity:C.integrity,media:C.media,hrefLang:C.hrefLang,referrerPolicy:C.referrerPolicy},Sc.set(v,C),V||LE(F,v,C,ae.state))),w&&M===null)throw Error(n(528,""));return ae}if(w&&M!==null)throw Error(n(529,""));return null;case"script":return w=C.async,C=C.src,typeof C=="string"&&w&&typeof w!="function"&&typeof w!="symbol"?(w=Xv(C),C=ei(F).hoistableScripts,M=C.get(w),M||(M={type:"script",instance:null,count:0,state:null},C.set(w,M)),M):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,v))}}function Wv(v){return'href="'+Xa(v)+'"'}function Yv(v){return'link[rel="stylesheet"]['+v+"]"}function B_(v){return f({},v,{"data-precedence":v.precedence,precedence:null})}function LE(v,w,C,M){v.querySelector('link[rel="preload"][as="style"]['+w+"]")?M.loading=1:(w=v.createElement("link"),M.preload=w,w.addEventListener("load",function(){return M.loading|=1}),w.addEventListener("error",function(){return M.loading|=2}),os(w,"link",C),Hn(w),v.head.appendChild(w))}function Xv(v){return'[src="'+Xa(v)+'"]'}function $v(v){return"script[async]"+v}function F_(v,w,C){if(w.count++,w.instance===null)switch(w.type){case"style":var M=v.querySelector('style[data-href~="'+Xa(C.href)+'"]');if(M)return w.instance=M,Hn(M),M;var F=f({},C,{"data-href":C.href,"data-precedence":C.precedence,href:null,precedence:null});return M=(v.ownerDocument||v).createElement("style"),Hn(M),os(M,"style",F),Ny(M,C.precedence,v),w.instance=M;case"stylesheet":F=Wv(C.href);var V=v.querySelector(Yv(F));if(V)return w.state.loading|=4,w.instance=V,Hn(V),V;M=B_(C),(F=Sc.get(F))&&D0(M,F),V=(v.ownerDocument||v).createElement("link"),Hn(V);var ae=V;return ae._p=new Promise(function(Se,Fe){ae.onload=Se,ae.onerror=Fe}),os(V,"link",M),w.state.loading|=4,Ny(V,C.precedence,v),w.instance=V;case"script":return V=Xv(C.src),(F=v.querySelector($v(V)))?(w.instance=F,Hn(F),F):(M=C,(F=Sc.get(V))&&(M=f({},C),Ly(M,F)),v=v.ownerDocument||v,F=v.createElement("script"),Hn(F),os(F,"link",M),v.head.appendChild(F),w.instance=F);case"void":return null;default:throw Error(n(443,w.type))}else w.type==="stylesheet"&&(w.state.loading&4)===0&&(M=w.instance,w.state.loading|=4,Ny(M,C.precedence,v));return w.instance}function Ny(v,w,C){for(var M=C.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),F=M.length?M[M.length-1]:null,V=F,ae=0;ae title"):null)}function jE(v,w,C){if(C===1||w.itemProp!=null)return!1;switch(v){case"meta":case"title":return!0;case"style":if(typeof w.precedence!="string"||typeof w.href!="string"||w.href==="")break;return!0;case"link":if(typeof w.rel!="string"||typeof w.href!="string"||w.href===""||w.onLoad||w.onError)break;switch(w.rel){case"stylesheet":return v=w.disabled,typeof w.precedence=="string"&&v==null;default:return!0}case"script":if(w.async&&typeof w.async!="function"&&typeof w.async!="symbol"&&!w.onLoad&&!w.onError&&w.src&&typeof w.src=="string")return!0}return!1}function q_(v){return!(v.type==="stylesheet"&&(v.state.loading&3)===0)}function Kv(v,w,C,M){if(C.type==="stylesheet"&&(typeof M.media!="string"||matchMedia(M.media).matches!==!1)&&(C.state.loading&4)===0){if(C.instance===null){var F=Wv(M.href),V=w.querySelector(Yv(F));if(V){w=V._p,w!==null&&typeof w=="object"&&typeof w.then=="function"&&(v.count++,v=jy.bind(v),w.then(v,v)),C.state.loading|=4,C.instance=V,Hn(V);return}V=w.ownerDocument||w,M=B_(M),(F=Sc.get(F))&&D0(M,F),V=V.createElement("link"),Hn(V);var ae=V;ae._p=new Promise(function(Se,Fe){ae.onload=Se,ae.onerror=Fe}),os(V,"link",M),C.instance=V}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(C,w),(w=C.state.preload)&&(C.state.loading&3)===0&&(v.count++,C=jy.bind(v),w.addEventListener("load",C),w.addEventListener("error",C))}}var k0=0;function BE(v,w){return v.stylesheets&&v.count===0&&Fy(v,v.stylesheets),0k0?50:800)+w);return v.unsuspend=C,function(){v.unsuspend=null,clearTimeout(M),clearTimeout(F)}}:null}function jy(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fy(this,this.stylesheets);else if(this.unsuspend){var v=this.unsuspend;this.unsuspend=null,v()}}}var By=null;function Fy(v,w){v.stylesheets=null,v.unsuspend!==null&&(v.count++,By=new Map,w.forEach(G_,v),By=null,jy.call(v))}function G_(v,w){if(!(w.state.loading&4)){var C=By.get(v);if(C)var M=C.get(null);else{C=new Map,By.set(v,C);for(var F=v.querySelectorAll("link[data-precedence],style[data-precedence]"),V=0;V"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),XE.exports=sV(),XE.exports}var lV=uV();let G9=me.createContext(null);function cV(){let r=me.useContext(G9);if(!r)throw new Error("RenderContext not found");return r}function fV(){return cV().model}function Wy(r){let e=fV(),t=me.useSyncExternalStore(i=>(e.on(`change:${r}`,i),()=>e.off(`change:${r}`,i)),()=>e.get(r)),n=me.useCallback(i=>{e.set(r,typeof i=="function"?i(e.get(r)):i),e.save_changes()},[e,r]);return[t,n]}function dV(r){return({el:e,model:t,experimental:n})=>{let i=lV.createRoot(e);return i.render(me.createElement(me.StrictMode,null,me.createElement(G9.Provider,{value:{model:t,experimental:n}},me.createElement(r)))),()=>i.unmount()}}const Xu={graph:{1:"#ffdf81ff"},motion:{duration:{quick:"100ms"}},palette:{lemon:{40:"#d7aa0aff"},neutral:{40:"#959aa1ff"}},theme:{dark:{boxShadow:{raised:"0px 1px 2px 0px rgb(from #09090aff r g b / 0.50)",overlay:"0px 8px 20px 0px rgb(from #09090aff r g b / 0.50)"},color:{neutral:{text:{weakest:"#818790ff",weaker:"#a8acb2ff",weak:"#cfd1d4ff",default:"#f5f6f6ff",inverse:"#1a1b1dff"},icon:"#cfd1d4ff",bg:{weak:"#212325ff",default:"#1a1b1dff",strong:"#3c3f44ff",stronger:"#6f757eff",strongest:"#f5f6f6ff",status:"#a8acb2ff","on-bg-weak":"#81879014"},border:{weak:"#3c3f44ff",strong:"#5e636aff",strongest:"#bbbec3ff"},hover:"#959aa11a",pressed:"#959aa133"},primary:{text:"#8fe3e8ff",icon:"#8fe3e8ff",bg:{weak:"#262f31ff",strong:"#8fe3e8ff",status:"#5db3bfff",selected:"#262f31ff"},border:{strong:"#8fe3e8ff",weak:"#02507bff"},focus:"#5db3bfff",hover:{weak:"#8fe3e814",strong:"#5db3bfff"},pressed:{weak:"#8fe3e81f",strong:"#4c99a4ff"}},danger:{text:"#ffaa97ff",icon:"#ffaa97ff",bg:{strong:"#ffaa97ff",weak:"#432520ff",status:"#f96746ff"},border:{strong:"#ffaa97ff",weak:"#730e00ff"},hover:{weak:"#ffaa9714",strong:"#f96746ff"},pressed:{weak:"#ffaa971f"},strong:"#e84e2cff"},warning:{text:"#ffd600ff",icon:"#ffd600ff",bg:{strong:"#ffd600ff",weak:"#312e1aff",status:"#d7aa0aff"},border:{strong:"#ffd600ff",weak:"#765500ff"}},success:{text:"#90cb62ff",icon:"#90cb62ff",bg:{strong:"#90cb62ff",weak:"#262d24ff",status:"#6fa646ff"},border:{strong:"#90cb62ff",weak:"#296127ff"}},discovery:{text:"#ccb4ffff",icon:"#ccb4ffff",bg:{strong:"#ccb4ffff",weak:"#2c2a34ff",status:"#a07becff"},border:{strong:"#ccb4ffff",weak:"#4b2894ff"}}}},light:{boxShadow:{raised:"0px 1px 2px 0px rgb(from #1a1b1dff r g b / 0.18)",overlay:"0px 4px 8px 0px rgb(from #1a1b1dff r g b / 0.12)"},color:{neutral:{text:{weakest:"#a8acb2ff",weaker:"#5e636aff",weak:"#4d5157ff",default:"#1a1b1dff",inverse:"#ffffffff"},icon:"#4d5157ff",bg:{weak:"#ffffffff",default:"#f5f6f6ff","on-bg-weak":"#f5f6f6ff",strong:"#e2e3e5ff",stronger:"#a8acb2ff",strongest:"#3c3f44ff",status:"#a8acb2ff"},border:{weak:"#e2e3e5ff",strong:"#bbbec3ff",strongest:"#6f757eff"},hover:"#6f757e1a",pressed:"#6f757e33"},primary:{text:"#0a6190ff",icon:"#0a6190ff",bg:{weak:"#e7fafbff",strong:"#0a6190ff",status:"#4c99a4ff",selected:"#e7fafbff"},border:{strong:"#0a6190ff",weak:"#8fe3e8ff"},focus:"#30839dff",hover:{weak:"#30839d1a",strong:"#02507bff"},pressed:{weak:"#30839d1f",strong:"#014063ff"}},danger:{text:"#bb2d00ff",icon:"#bb2d00ff",bg:{strong:"#bb2d00ff",weak:"#ffe9e7ff",status:"#e84e2cff"},border:{strong:"#bb2d00ff",weak:"#ffaa97ff"},hover:{weak:"#d4330014",strong:"#961200ff"},pressed:{weak:"#d433001f",strong:"#730e00ff"}},warning:{text:"#765500ff",icon:"#765500ff",bg:{strong:"#765500ff",weak:"#fffad1ff",status:"#d7aa0aff"},border:{strong:"#996e00ff",weak:"#ffd600ff"}},success:{text:"#3f7824ff",icon:"#3f7824ff",bg:{strong:"#3f7824ff",weak:"#e7fcd7ff",status:"#5b992bff"},border:{strong:"#3f7824ff",weak:"#90cb62ff"}},discovery:{text:"#5a34aaff",icon:"#5a34aaff",bg:{strong:"#5a34aaff",weak:"#e9deffff",status:"#754ec8ff"},border:{strong:"#5a34aaff",weak:"#b38effff"}}}}}},ks={breakpoint:{"5xs":"320px","4xs":"360px","3xs":"375px","2xs":"512px",xs:"768px",sm:"864px",md:"1024px",lg:"1280px",xl:"1440px","2xl":"1680px","3xl":"1920px"},categorical:{1:"#55bdc5ff",2:"#4d49cbff",3:"#dc8b39ff",4:"#c9458dff",5:"#8e8cf3ff",6:"#78de7cff",7:"#3f80e3ff",8:"#673fabff",9:"#dbbf40ff",10:"#bf732dff",11:"#478a6eff",12:"#ade86bff"},graph:{1:"#ffdf81ff",2:"#c990c0ff",3:"#f79767ff",4:"#56c7e4ff",5:"#f16767ff",6:"#d8c7aeff",7:"#8dcc93ff",8:"#ecb4c9ff",9:"#4d8ddaff",10:"#ffc354ff",11:"#da7294ff",12:"#579380ff"},motion:{duration:{quick:"100ms",slow:"250ms"},easing:{standard:"cubic-bezier(0.42, 0, 0.58, 1)"}},palette:{baltic:{10:"#e7fafbff",15:"#c3f8fbff",20:"#8fe3e8ff",25:"#5cc3c9ff",30:"#5db3bfff",35:"#51a6b1ff",40:"#4c99a4ff",45:"#30839dff",50:"#0a6190ff",55:"#02507bff",60:"#014063ff",65:"#262f31ff",70:"#081e2bff",75:"#041823ff",80:"#01121cff"},hibiscus:{10:"#ffe9e7ff",15:"#ffd7d2ff",20:"#ffaa97ff",25:"#ff8e6aff",30:"#f96746ff",35:"#e84e2cff",40:"#d43300ff",45:"#bb2d00ff",50:"#961200ff",55:"#730e00ff",60:"#432520ff",65:"#4e0900ff",70:"#3f0800ff",75:"#360700ff",80:"#280500ff"},forest:{10:"#e7fcd7ff",15:"#bcf194ff",20:"#90cb62ff",25:"#80bb53ff",30:"#6fa646ff",35:"#5b992bff",40:"#4d8622ff",45:"#3f7824ff",50:"#296127ff",55:"#145439ff",60:"#0c4d31ff",65:"#0a4324ff",70:"#262d24ff",75:"#052618ff",80:"#021d11ff"},lemon:{10:"#fffad1ff",15:"#fff8bdff",20:"#fff178ff",25:"#ffe500ff",30:"#ffd600ff",35:"#f4c318ff",40:"#d7aa0aff",45:"#b48409ff",50:"#996e00ff",55:"#765500ff",60:"#614600ff",65:"#4d3700ff",70:"#312e1aff",75:"#2e2100ff",80:"#251b00ff"},lavender:{10:"#f7f3ffff",15:"#e9deffff",20:"#ccb4ffff",25:"#b38effff",30:"#a07becff",35:"#8c68d9ff",40:"#754ec8ff",45:"#5a34aaff",50:"#4b2894ff",55:"#3b1982ff",60:"#2c2a34ff",65:"#220954ff",70:"#170146ff",75:"#0e002dff",80:"#09001cff"},marigold:{10:"#fff0d2ff",15:"#ffde9dff",20:"#ffcf72ff",25:"#ffc450ff",30:"#ffb422ff",35:"#ffa901ff",40:"#ec9c00ff",45:"#da9105ff",50:"#ba7a00ff",55:"#986400ff",60:"#795000ff",65:"#624100ff",70:"#543800ff",75:"#422c00ff",80:"#251900ff"},earth:{10:"#fff7f0ff",15:"#fdeddaff",20:"#ffe1c5ff",25:"#f8d1aeff",30:"#ecbf96ff",35:"#e0ae7fff",40:"#d19660ff",45:"#af7c4dff",50:"#8d5d31ff",55:"#763f18ff",60:"#66310bff",65:"#5b2b09ff",70:"#481f01ff",75:"#361700ff",80:"#220e00ff"},neutral:{10:"#ffffffff",15:"#f5f6f6ff",20:"#e2e3e5ff",25:"#cfd1d4ff",30:"#bbbec3ff",35:"#a8acb2ff",40:"#959aa1ff",45:"#818790ff",50:"#6f757eff",55:"#5e636aff",60:"#4d5157ff",65:"#3c3f44ff",70:"#212325ff",75:"#1a1b1dff",80:"#09090aff"},beige:{10:"#fffcf4ff",20:"#fff7e3ff",30:"#f2ead4ff",40:"#c1b9a0ff",50:"#999384ff",60:"#666050ff",70:"#3f3824ff"},highlights:{yellow:"#faff00ff",periwinkle:"#6a82ffff"}},borderRadius:{none:"0px",sm:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px",full:"9999px"},space:{2:"2px",4:"4px",6:"6px",8:"8px",12:"12px",16:"16px",20:"20px",24:"24px",32:"32px",48:"48px",64:"64px"},theme:{dark:{boxShadow:{raised:"0px 1px 2px 0px rgb(from #09090aff r g b / 0.50)",overlay:"0px 8px 20px 0px rgb(from #09090aff r g b / 0.50)"},color:{neutral:{text:{weakest:"#818790ff",weaker:"#a8acb2ff",weak:"#cfd1d4ff",default:"#f5f6f6ff",inverse:"#1a1b1dff"},icon:"#cfd1d4ff",bg:{weak:"#212325ff",default:"#1a1b1dff",strong:"#3c3f44ff",stronger:"#6f757eff",strongest:"#f5f6f6ff",status:"#a8acb2ff","on-bg-weak":"#81879014"},border:{weak:"#3c3f44ff",strong:"#5e636aff",strongest:"#bbbec3ff"},hover:"#959aa11a",pressed:"#959aa133"},primary:{text:"#8fe3e8ff",icon:"#8fe3e8ff",bg:{weak:"#262f31ff",strong:"#8fe3e8ff",status:"#5db3bfff",selected:"#262f31ff"},border:{strong:"#8fe3e8ff",weak:"#02507bff"},focus:"#5db3bfff",hover:{weak:"#8fe3e814",strong:"#5db3bfff"},pressed:{weak:"#8fe3e81f",strong:"#4c99a4ff"}},danger:{text:"#ffaa97ff",icon:"#ffaa97ff",bg:{strong:"#ffaa97ff",weak:"#432520ff",status:"#f96746ff"},border:{strong:"#ffaa97ff",weak:"#730e00ff"},hover:{weak:"#ffaa9714",strong:"#f96746ff"},pressed:{weak:"#ffaa971f"},strong:"#e84e2cff"},warning:{text:"#ffd600ff",icon:"#ffd600ff",bg:{strong:"#ffd600ff",weak:"#312e1aff",status:"#d7aa0aff"},border:{strong:"#ffd600ff",weak:"#765500ff"}},success:{text:"#90cb62ff",icon:"#90cb62ff",bg:{strong:"#90cb62ff",weak:"#262d24ff",status:"#6fa646ff"},border:{strong:"#90cb62ff",weak:"#296127ff"}},discovery:{text:"#ccb4ffff",icon:"#ccb4ffff",bg:{strong:"#ccb4ffff",weak:"#2c2a34ff",status:"#a07becff"},border:{strong:"#ccb4ffff",weak:"#4b2894ff"}}}},light:{boxShadow:{raised:"0px 1px 2px 0px rgb(from #1a1b1dff r g b / 0.18)",overlay:"0px 4px 8px 0px rgb(from #1a1b1dff r g b / 0.12)"},color:{neutral:{text:{weakest:"#a8acb2ff",weaker:"#5e636aff",weak:"#4d5157ff",default:"#1a1b1dff",inverse:"#ffffffff"},icon:"#4d5157ff",bg:{weak:"#ffffffff",default:"#f5f6f6ff","on-bg-weak":"#f5f6f6ff",strong:"#e2e3e5ff",stronger:"#a8acb2ff",strongest:"#3c3f44ff",status:"#a8acb2ff"},border:{weak:"#e2e3e5ff",strong:"#bbbec3ff",strongest:"#6f757eff"},hover:"#6f757e1a",pressed:"#6f757e33"},primary:{text:"#0a6190ff",icon:"#0a6190ff",bg:{weak:"#e7fafbff",strong:"#0a6190ff",status:"#4c99a4ff",selected:"#e7fafbff"},border:{strong:"#0a6190ff",weak:"#8fe3e8ff"},focus:"#30839dff",hover:{weak:"#30839d1a",strong:"#02507bff"},pressed:{weak:"#30839d1f",strong:"#014063ff"}},danger:{text:"#bb2d00ff",icon:"#bb2d00ff",bg:{strong:"#bb2d00ff",weak:"#ffe9e7ff",status:"#e84e2cff"},border:{strong:"#bb2d00ff",weak:"#ffaa97ff"},hover:{weak:"#d4330014",strong:"#961200ff"},pressed:{weak:"#d433001f",strong:"#730e00ff"}},warning:{text:"#765500ff",icon:"#765500ff",bg:{strong:"#765500ff",weak:"#fffad1ff",status:"#d7aa0aff"},border:{strong:"#996e00ff",weak:"#ffd600ff"}},success:{text:"#3f7824ff",icon:"#3f7824ff",bg:{strong:"#3f7824ff",weak:"#e7fcd7ff",status:"#5b992bff"},border:{strong:"#3f7824ff",weak:"#90cb62ff"}},discovery:{text:"#5a34aaff",icon:"#5a34aaff",bg:{strong:"#5a34aaff",weak:"#e9deffff",status:"#754ec8ff"},border:{strong:"#5a34aaff",weak:"#b38effff"}}}}},zIndex:{deep:-999999,base:0,overlay:10,banner:20,blanket:30,popover:40,tooltip:50,modal:60}},hV=()=>{const e={},t=(n,i="")=>{typeof n=="object"&&Object.keys(n).forEach(a=>{i===""?t(n[a],`${a}`):t(n[a],`${i}-${a}`)}),typeof n=="string"&&(i=i.replace("light-",""),e[i]=`var(--theme-color-${i})`)};return t(ks.theme.light.color,""),e},vV=()=>{const r={},e=(t,n="")=>{if(typeof t=="object"&&Object.keys(t).forEach(i=>{e(t[i],`${n}-${i}`)}),typeof t=="string"){n=n.replace("light-","");const i=n.replace("shadow-","");r[i]=`var(--theme-${n})`}};return e(ks.theme.light.boxShadow,"shadow"),r},ck=(r,e)=>Object.keys(r).reduce((t,n)=>(t[`${e}-${n}`]=r[n],t),{}),pV={colors:Object.assign(Object.assign(Object.assign({},ks.palette),{graph:ks.graph,categorical:ks.categorical,dark:Object.assign({},ks.theme.dark.color),light:Object.assign({},ks.theme.light.color)}),hV()),borderRadius:ks.borderRadius,boxShadow:Object.assign(Object.assign(Object.assign({},ck(ks.theme.dark.boxShadow,"dark")),ck(ks.theme.light.boxShadow,"light")),vV()),boxShadowColor:{},fontFamily:{sans:['"Public Sans"'],mono:['"Fira Code"'],syne:['"Syne Neo"']},screens:Object.assign({},ks.breakpoint),transitionTimingFunction:{DEFAULT:ks.motion.easing.standard},transitionDuration:{DEFAULT:ks.motion.duration.quick,quick:ks.motion.duration.quick,slow:ks.motion.duration.slow},transitionDelay:{DEFAULT:"0ms",none:"0ms",delayed:"100ms"},transitionProperty:{all:"all"}};Object.assign(Object.assign({},pV),{extend:{colors:{transparent:"transparent",current:"currentColor",inherit:"inherit"},zIndex:Object.assign({},ks.zIndex),spacing:Object.assign(Object.assign({},Object.keys(ks.space).reduce((r,e)=>Object.assign(Object.assign({},r),{[`token-${e}`]:ks.space[e]}),{})),{0:"0px",px:"1px",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"20px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"})}});var QE={exports:{}};/*! +`+M.stack}}var Q=Object.prototype.hasOwnProperty,ie=r.unstable_scheduleCallback,we=r.unstable_cancelCallback,Ee=r.unstable_shouldYield,Me=r.unstable_requestPaint,Ie=r.unstable_now,Ye=r.unstable_getCurrentPriorityLevel,ot=r.unstable_ImmediatePriority,mt=r.unstable_UserBlockingPriority,wt=r.unstable_NormalPriority,Mt=r.unstable_LowPriority,Dt=r.unstable_IdlePriority,vt=r.log,tt=r.unstable_setDisableYieldValue,_e=null,Ue=null;function Qe(v){if(typeof vt=="function"&&tt(v),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(_e,v)}catch{}}var Ze=Math.clz32?Math.clz32:ct,nt=Math.log,It=Math.LN2;function ct(v){return v>>>=0,v===0?32:31-(nt(v)/It|0)|0}var Lt=256,Rt=262144,jt=4194304;function Yt(v){var w=v&42;if(w!==0)return w;switch(v&-v){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return v&261888;case 262144:case 524288:case 1048576:case 2097152:return v&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return v&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return v}}function sr(v,w,C){var M=v.pendingLanes;if(M===0)return 0;var F=0,V=v.suspendedLanes,ae=v.pingedLanes;v=v.warmLanes;var Se=M&134217727;return Se!==0?(M=Se&~V,M!==0?F=Yt(M):(ae&=Se,ae!==0?F=Yt(ae):C||(C=Se&~v,C!==0&&(F=Yt(C))))):(Se=M&~V,Se!==0?F=Yt(Se):ae!==0?F=Yt(ae):C||(C=M&~v,C!==0&&(F=Yt(C)))),F===0?0:w!==0&&w!==F&&(w&V)===0&&(V=F&-F,C=w&-w,V>=C||V===32&&(C&4194048)!==0)?w:F}function Ut(v,w){return(v.pendingLanes&~(v.suspendedLanes&~v.pingedLanes)&w)===0}function Rr(v,w){switch(v){case 1:case 2:case 4:case 8:case 64:return w+250;case 16:case 32: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 w+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xt(){var v=jt;return jt<<=1,(jt&62914560)===0&&(jt=4194304),v}function Vr(v){for(var w=[],C=0;31>C;C++)w.push(v);return w}function Br(v,w){v.pendingLanes|=w,w!==268435456&&(v.suspendedLanes=0,v.pingedLanes=0,v.warmLanes=0)}function mr(v,w,C,M,F,V){var ae=v.pendingLanes;v.pendingLanes=C,v.suspendedLanes=0,v.pingedLanes=0,v.warmLanes=0,v.expiredLanes&=C,v.entangledLanes&=C,v.errorRecoveryDisabledLanes&=C,v.shellSuspendCounter=0;var Se=v.entanglements,Fe=v.expirationTimes,it=v.hiddenUpdates;for(C=ae&~C;0"u")return null;try{return v.activeElement||v.body}catch{return v.body}}var Md=/[\n"\\]/g;function Xa(v){return v.replace(Md,function(w){return"\\"+w.charCodeAt(0).toString(16)+" "})}function Wl(v,w,C,M,F,V,ae,Se){v.name="",ae!=null&&typeof ae!="function"&&typeof ae!="symbol"&&typeof ae!="boolean"?v.type=ae:v.removeAttribute("type"),w!=null?ae==="number"?(w===0&&v.value===""||v.value!=w)&&(v.value=""+Ii(w)):v.value!==""+Ii(w)&&(v.value=""+Ii(w)):ae!=="submit"&&ae!=="reset"||v.removeAttribute("value"),w!=null?nf(v,ae,Ii(w)):C!=null?nf(v,ae,Ii(C)):M!=null&&v.removeAttribute("value"),F==null&&V!=null&&(v.defaultChecked=!!V),F!=null&&(v.checked=F&&typeof F!="function"&&typeof F!="symbol"),Se!=null&&typeof Se!="function"&&typeof Se!="symbol"&&typeof Se!="boolean"?v.name=""+Ii(Se):v.removeAttribute("name")}function Yl(v,w,C,M,F,V,ae,Se){if(V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(v.type=V),w!=null||C!=null){if(!(V!=="submit"&&V!=="reset"||w!=null)){pu(v);return}C=C!=null?""+Ii(C):"",w=w!=null?""+Ii(w):C,Se||w===v.value||(v.value=w),v.defaultValue=w}M=M??F,M=typeof M!="function"&&typeof M!="symbol"&&!!M,v.checked=Se?v.checked:!!M,v.defaultChecked=!!M,ae!=null&&typeof ae!="function"&&typeof ae!="symbol"&&typeof ae!="boolean"&&(v.name=ae),pu(v)}function nf(v,w,C){w==="number"&&Hl(v.ownerDocument)===v||v.defaultValue===""+C||(v.defaultValue=""+C)}function Wi(v,w,C,M){if(v=v.options,w){w={};for(var F=0;F"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),el=!1;if(uo)try{var Kl={};Object.defineProperty(Kl,"passive",{get:function(){el=!0}}),window.addEventListener("test",Kl,Kl),window.removeEventListener("test",Kl,Kl)}catch{el=!1}var Vo=null,vs=null,jn=null;function Zr(){if(jn)return jn;var v,w=vs,C=w.length,M,F="value"in Vo?Vo.value:Vo.textContent,V=F.length;for(v=0;v=Vs),Ah=" ",tc=!1;function Yf(v,w){switch(v){case"keyup":return Wf.indexOf(w.keyCode)!==-1;case"keydown":return w.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ic(v){return v=v.detail,typeof v=="object"&&"data"in v?v.data:null}var wu=!1;function Eo(v,w){switch(v){case"compositionend":return Ic(w);case"keypress":return w.which!==32?null:(tc=!0,Ah);case"textInput":return v=w.data,v===Ah&&tc?null:v;default:return null}}function Nc(v,w){if(wu)return v==="compositionend"||!ff&&Yf(v,w)?(v=Zr(),jn=vs=Vo=null,wu=!1,v):null;switch(v){case"paste":return null;case"keypress":if(!(w.ctrlKey||w.altKey||w.metaKey)||w.ctrlKey&&w.altKey){if(w.char&&1=w)return{node:C,offset:w-v};v=M}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=jc(C)}}function pf(v,w){return v&&w?v===w?!0:v&&v.nodeType===3?!1:w&&w.nodeType===3?pf(v,w.parentNode):"contains"in v?v.contains(w):v.compareDocumentPosition?!!(v.compareDocumentPosition(w)&16):!1:!1}function Bc(v){v=v!=null&&v.ownerDocument!=null&&v.ownerDocument.defaultView!=null?v.ownerDocument.defaultView:window;for(var w=Hl(v.document);w instanceof v.HTMLIFrameElement;){try{var C=typeof w.contentWindow.location.href=="string"}catch{C=!1}if(C)v=w.contentWindow;else break;w=Hl(v.document)}return w}function Ws(v){var w=v&&v.nodeName&&v.nodeName.toLowerCase();return w&&(w==="input"&&(v.type==="text"||v.type==="search"||v.type==="tel"||v.type==="url"||v.type==="password")||w==="textarea"||v.contentEditable==="true")}var ic=uo&&"documentMode"in document&&11>=document.documentMode,We=null,ft=null,ut=null,Kt=!1;function Pr(v,w,C){var M=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;Kt||We==null||We!==Hl(M)||(M=We,"selectionStart"in M&&Ws(M)?M={start:M.selectionStart,end:M.selectionEnd}:(M=(M.ownerDocument&&M.ownerDocument.defaultView||window).getSelection(),M={anchorNode:M.anchorNode,anchorOffset:M.anchorOffset,focusNode:M.focusNode,focusOffset:M.focusOffset}),ut&&nc(ut,M)||(ut=M,M=hg(ft,"onSelect"),0>=ae,F-=ae,Xo=1<<32-Ze(w)+F|C<pn?(kn=or,or=null):kn=or.sibling;var Qn=at(Xe,or,rt[pn],bt);if(Qn===null){or===null&&(or=kn);break}v&&or&&Qn.alternate===null&&w(Xe,or),Ve=V(Qn,Ve,pn),Zn===null?wr=Qn:Zn.sibling=Qn,Zn=Qn,or=kn}if(pn===rt.length)return C(Xe,or),hn&&Ua(Xe,pn),wr;if(or===null){for(;pnpn?(kn=or,or=null):kn=or.sibling;var oh=at(Xe,or,Qn.value,bt);if(oh===null){or===null&&(or=kn);break}v&&or&&oh.alternate===null&&w(Xe,or),Ve=V(oh,Ve,pn),Zn===null?wr=oh:Zn.sibling=oh,Zn=oh,or=kn}if(Qn.done)return C(Xe,or),hn&&Ua(Xe,pn),wr;if(or===null){for(;!Qn.done;pn++,Qn=rt.next())Qn=_t(Xe,Qn.value,bt),Qn!==null&&(Ve=V(Qn,Ve,pn),Zn===null?wr=Qn:Zn.sibling=Qn,Zn=Qn);return hn&&Ua(Xe,pn),wr}for(or=M(or);!Qn.done;pn++,Qn=rt.next())Qn=lt(or,Xe,pn,Qn.value,bt),Qn!==null&&(v&&Qn.alternate!==null&&or.delete(Qn.key===null?pn:Qn.key),Ve=V(Qn,Ve,pn),Zn===null?wr=Qn:Zn.sibling=Qn,Zn=Qn);return v&&or.forEach(function(HE){return w(Xe,HE)}),hn&&Ua(Xe,pn),wr}function Ti(Xe,Ve,rt,bt){if(typeof rt=="object"&&rt!==null&&rt.type===g&&rt.key===null&&(rt=rt.props.children),typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case h:e:{for(var wr=rt.key;Ve!==null;){if(Ve.key===wr){if(wr=rt.type,wr===g){if(Ve.tag===7){C(Xe,Ve.sibling),bt=F(Ve,rt.props.children),bt.return=Xe,Xe=bt;break e}}else if(Ve.elementType===wr||typeof wr=="object"&&wr!==null&&wr.$$typeof===T&&Ro(wr)===Ve.type){C(Xe,Ve.sibling),bt=F(Ve,rt.props),Mo(bt,rt),bt.return=Xe,Xe=bt;break e}C(Xe,Ve);break}else w(Xe,Ve);Ve=Ve.sibling}rt.type===g?(bt=sc(rt.props.children,Xe.mode,bt,rt.key),bt.return=Xe,Xe=bt):(bt=oc(rt.type,rt.key,rt.props,null,Xe.mode,bt),Mo(bt,rt),bt.return=Xe,Xe=bt)}return ae(Xe);case p:e:{for(wr=rt.key;Ve!==null;){if(Ve.key===wr)if(Ve.tag===4&&Ve.stateNode.containerInfo===rt.containerInfo&&Ve.stateNode.implementation===rt.implementation){C(Xe,Ve.sibling),bt=F(Ve,rt.children||[]),bt.return=Xe,Xe=bt;break e}else{C(Xe,Ve);break}else w(Xe,Ve);Ve=Ve.sibling}bt=yf(rt,Xe.mode,bt),bt.return=Xe,Xe=bt}return ae(Xe);case T:return rt=Ro(rt),Ti(Xe,Ve,rt,bt)}if(z(rt))return rr(Xe,Ve,rt,bt);if(L(rt)){if(wr=L(rt),typeof wr!="function")throw Error(n(150));return rt=wr.call(rt),Dr(Xe,Ve,rt,bt)}if(typeof rt.then=="function")return Ti(Xe,Ve,Uc(rt),bt);if(rt.$$typeof===m)return Ti(Xe,Ve,Ko(Xe,rt),bt);Qa(Xe,rt)}return typeof rt=="string"&&rt!==""||typeof rt=="number"||typeof rt=="bigint"?(rt=""+rt,Ve!==null&&Ve.tag===6?(C(Xe,Ve.sibling),bt=F(Ve,rt),bt.return=Xe,Xe=bt):(C(Xe,Ve),bt=ji(rt,Xe.mode,bt),bt.return=Xe,Xe=bt),ae(Xe)):C(Xe,Ve)}return function(Xe,Ve,rt,bt){try{Po=0;var wr=Ti(Xe,Ve,rt,bt);return ku=null,wr}catch(or){if(or===Fc||or===Ca)throw or;var Zn=Yi(29,or,null,Xe.mode);return Zn.lanes=bt,Zn.return=Xe,Zn}finally{}}}var Iu=rd(!0),wf=rd(!1),es=!1;function ho(v){v.updateQueue={baseState:v.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nd(v,w){v=v.updateQueue,w.updateQueue===v&&(w.updateQueue={baseState:v.baseState,firstBaseUpdate:v.firstBaseUpdate,lastBaseUpdate:v.lastBaseUpdate,shared:v.shared,callbacks:null})}function Nu(v){return{lane:v,tag:0,payload:null,callback:null,next:null}}function Zs(v,w,C){var M=v.updateQueue;if(M===null)return null;if(M=M.shared,(zt&2)!==0){var F=M.pending;return F===null?w.next=w:(w.next=F.next,F.next=w),M.pending=w,w=Ka(v),ll(v,null,C),w}return ac(v,M,w,C),Ka(v)}function xf(v,w,C){if(w=w.updateQueue,w!==null&&(w=w.shared,(C&4194048)!==0)){var M=w.lanes;M&=v.pendingLanes,C|=M,w.lanes=C,sn(v,C)}}function xs(v,w){var C=v.updateQueue,M=v.alternate;if(M!==null&&(M=M.updateQueue,C===M)){var F=null,V=null;if(C=C.firstBaseUpdate,C!==null){do{var ae={lane:C.lane,tag:C.tag,payload:C.payload,callback:null,next:null};V===null?F=V=ae:V=V.next=ae,C=C.next}while(C!==null);V===null?F=V=w:V=V.next=w}else F=V=w;C={baseState:M.baseState,firstBaseUpdate:F,lastBaseUpdate:V,shared:M.shared,callbacks:M.callbacks},v.updateQueue=C;return}v=C.lastBaseUpdate,v===null?C.firstBaseUpdate=w:v.next=w,C.lastBaseUpdate=w}var Zi=!1;function hc(){if(Zi){var v=gl;if(v!==null)throw v}}function Ef(v,w,C,M){Zi=!1;var F=v.updateQueue;es=!1;var V=F.firstBaseUpdate,ae=F.lastBaseUpdate,Se=F.shared.pending;if(Se!==null){F.shared.pending=null;var Fe=Se,it=Fe.next;Fe.next=null,ae===null?V=it:ae.next=it,ae=Fe;var ht=v.alternate;ht!==null&&(ht=ht.updateQueue,Se=ht.lastBaseUpdate,Se!==ae&&(Se===null?ht.firstBaseUpdate=it:Se.next=it,ht.lastBaseUpdate=Fe))}if(V!==null){var _t=F.baseState;ae=0,ht=it=Fe=null,Se=V;do{var at=Se.lane&-536870913,lt=at!==Se.lane;if(lt?(Mr&at)===at:(M&at)===at){at!==0&&at===Pu&&(Zi=!0),ht!==null&&(ht=ht.next={lane:0,tag:Se.tag,payload:Se.payload,callback:null,next:null});e:{var rr=v,Dr=Se;at=w;var Ti=C;switch(Dr.tag){case 1:if(rr=Dr.payload,typeof rr=="function"){_t=rr.call(Ti,_t,at);break e}_t=rr;break e;case 3:rr.flags=rr.flags&-65537|128;case 0:if(rr=Dr.payload,at=typeof rr=="function"?rr.call(Ti,_t,at):rr,at==null)break e;_t=f({},_t,at);break e;case 2:es=!0}}at=Se.callback,at!==null&&(v.flags|=64,lt&&(v.flags|=8192),lt=F.callbacks,lt===null?F.callbacks=[at]:lt.push(at))}else lt={lane:at,tag:Se.tag,payload:Se.payload,callback:Se.callback,next:null},ht===null?(it=ht=lt,Fe=_t):ht=ht.next=lt,ae|=at;if(Se=Se.next,Se===null){if(Se=F.shared.pending,Se===null)break;lt=Se,Se=lt.next,lt.next=null,F.lastBaseUpdate=lt,F.shared.pending=null}}while(!0);ht===null&&(Fe=_t),F.baseState=Fe,F.firstBaseUpdate=it,F.lastBaseUpdate=ht,V===null&&(F.shared.lanes=0),Xc|=ae,v.lanes=ae,v.memoizedState=_t}}function Es(v,w){if(typeof v!="function")throw Error(n(191,v));v.call(w)}function Ss(v,w){var C=v.callbacks;if(C!==null)for(v.callbacks=null,v=0;vV?V:8;var ae=H.T,Se={};H.T=Se,zd(v,!1,w,C);try{var Fe=F(),it=H.S;if(it!==null&&it(Se,Fe),Fe!==null&&typeof Fe=="object"&&typeof Fe.then=="function"){var ht=dc(Fe,M);ko(v,w,ht,Al(v))}else ko(v,w,M,Al(v))}catch(_t){ko(v,w,{then:function(){},status:"rejected",reason:_t},Al())}finally{q.p=V,ae!==null&&Se.types!==null&&(ae.types=Se.types),H.T=ae}}function Lh(){}function Vc(v,w,C,M){if(v.tag!==5)throw Error(n(476));var F=Xp(v).queue;Tf(v,F,w,W,C===null?Lh:function(){return $p(v),C(M)})}function Xp(v){var w=v.memoizedState;if(w!==null)return w;w={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ye,lastRenderedState:W},next:null};var C={};return w.next={memoizedState:C,baseState:C,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ye,lastRenderedState:C},next:null},v.memoizedState=w,v=v.alternate,v!==null&&(v.memoizedState=w),w}function $p(v){var w=Xp(v);w.next===null&&(w=v.alternate.memoizedState),ko(v,w.next.queue,{},Al())}function Fd(){return _a(Zv)}function Ud(){return Un().memoizedState}function ud(){return Un().memoizedState}function ld(v){for(var w=v.return;w!==null;){switch(w.tag){case 24:case 3:var C=Al();v=Nu(C);var M=Zs(w,v,C);M!==null&&(zu(M,w,C),xf(M,w,C)),w={cache:Za()},v.payload=w;return}w=w.return}}function fy(v,w,C){var M=Al();C={lane:M,revertLane:0,gesture:null,action:C,hasEagerState:!1,eagerState:null,next:null},jh(v)?El(w,C):(C=ys(v,w,C,M),C!==null&&(zu(C,v,M),Ur(C,w,M)))}function Kp(v,w,C){var M=Al();ko(v,w,C,M)}function ko(v,w,C,M){var F={lane:M,revertLane:0,gesture:null,action:C,hasEagerState:!1,eagerState:null,next:null};if(jh(v))El(w,F);else{var V=v.alternate;if(v.lanes===0&&(V===null||V.lanes===0)&&(V=w.lastRenderedReducer,V!==null))try{var ae=w.lastRenderedState,Se=V(ae,C);if(F.hasEagerState=!0,F.eagerState=Se,ri(Se,ae))return ac(v,w,F,0),Hr===null&&Ys(),!1}catch{}finally{}if(C=ys(v,w,F,M),C!==null)return zu(C,v,M),Ur(C,w,M),!0}return!1}function zd(v,w,C,M){if(M={lane:2,revertLane:Rl(),gesture:null,action:M,hasEagerState:!1,eagerState:null,next:null},jh(v)){if(w)throw Error(n(479))}else w=ys(v,C,M,2),w!==null&&zu(w,v,2)}function jh(v){var w=v.alternate;return v===Sr||w!==null&&w===Sr}function El(v,w){bl=vc=!0;var C=v.pending;C===null?w.next=w:(w.next=C.next,C.next=w),v.pending=w}function Ur(v,w,C){if((C&4194048)!==0){var M=w.lanes;M&=v.pendingLanes,C|=M,w.lanes=C,sn(v,C)}}var Cf={readContext:_a,use:K,useCallback:si,useContext:si,useEffect:si,useImperativeHandle:si,useLayoutEffect:si,useInsertionEffect:si,useMemo:si,useReducer:si,useRef:si,useState:si,useDebugValue:si,useDeferredValue:si,useTransition:si,useSyncExternalStore:si,useId:si,useHostTransitionStatus:si,useFormState:si,useActionState:si,useOptimistic:si,useMemoCache:si,useCacheRefresh:si};Cf.useEffectEvent=si;var ns={readContext:_a,use:K,useCallback:function(v,w){return Aa().memoizedState=[v,w===void 0?null:w],v},useContext:_a,useEffect:Mn,useImperativeHandle:function(v,w,C){C=C!=null?C.concat([v]):null,mn(4194308,4,mc.bind(null,w,v),C)},useLayoutEffect:function(v,w){return mn(4194308,4,v,w)},useInsertionEffect:function(v,w){mn(4,2,v,w)},useMemo:function(v,w){var C=Aa();w=w===void 0?null:w;var M=v();if(Cs){Qe(!0);try{v()}finally{Qe(!1)}}return C.memoizedState=[M,w],M},useReducer:function(v,w,C){var M=Aa();if(C!==void 0){var F=C(w);if(Cs){Qe(!0);try{C(w)}finally{Qe(!1)}}}else F=w;return M.memoizedState=M.baseState=F,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:v,lastRenderedState:F},M.queue=v,v=v.dispatch=fy.bind(null,Sr,v),[M.memoizedState,v]},useRef:function(v){var w=Aa();return v={current:v},w.memoizedState=v},useState:function(v){v=Ct(v);var w=v.queue,C=Kp.bind(null,Sr,w);return w.dispatch=C,[v.memoizedState,C]},useDebugValue:As,useDeferredValue:function(v,w){var C=Aa();return wa(C,v,w)},useTransition:function(){var v=Ct(!1);return v=Tf.bind(null,Sr,v.queue,!0,!1),Aa().memoizedState=v,[!1,v]},useSyncExternalStore:function(v,w,C){var M=Sr,F=Aa();if(hn){if(C===void 0)throw Error(n(407));C=C()}else{if(C=w(),Hr===null)throw Error(n(349));(Mr&127)!==0||Ke(M,w,C)}F.memoizedState=C;var V={value:C,getSnapshot:w};return F.queue=V,Mn(gt.bind(null,M,V,v),[v]),M.flags|=2048,yr(9,{destroy:void 0},Je.bind(null,M,V,C,w),null),C},useId:function(){var v=Aa(),w=Hr.identifierPrefix;if(hn){var C=Fa,M=Xo;C=(M&~(1<<32-Ze(M)-1)).toString(32)+C,w="_"+w+"R_"+C,C=ad++,0<\/script>",V=V.removeChild(V.firstChild);break;case"select":V=typeof M.is=="string"?ae.createElement("select",{is:M.is}):ae.createElement("select"),M.multiple?V.multiple=!0:M.size&&(V.size=M.size);break;default:V=typeof M.is=="string"?ae.createElement(F,{is:M.is}):ae.createElement(F)}}V[on]=w,V[Nn]=M;e:for(ae=w.child;ae!==null;){if(ae.tag===5||ae.tag===6)V.appendChild(ae.stateNode);else if(ae.tag!==4&&ae.tag!==27&&ae.child!==null){ae.child.return=ae,ae=ae.child;continue}if(ae===w)break e;for(;ae.sibling===null;){if(ae.return===null||ae.return===w)break e;ae=ae.return}ae.sibling.return=ae.return,ae=ae.sibling}w.stateNode=V;e:switch(os(V,F,M),F){case"button":case"input":case"select":case"textarea":M=!!M.autoFocus;break e;case"img":M=!0;break e;default:M=!1}M&&Rs(w)}}return pi(w),eg(w,w.type,v===null?null:v.memoizedProps,w.pendingProps,C),null;case 6:if(v&&w.stateNode!=null)v.memoizedProps!==M&&Rs(w);else{if(typeof M!="string"&&w.stateNode===null)throw Error(n(166));if(v=le.current,hl(w)){if(v=w.stateNode,C=w.memoizedProps,M=null,F=Si,F!==null)switch(F.tag){case 27:case 5:M=F.memoizedProps}v[on]=w,v=!!(v.nodeValue===C||M!==null&&M.suppressHydrationWarning===!0||C_(v.nodeValue,C)),v||dl(w,!0)}else v=gg(v).createTextNode(M),v[on]=w,w.stateNode=v}return pi(w),null;case 31:if(C=w.memoizedState,v===null||v.memoizedState!==null){if(M=hl(w),C!==null){if(v===null){if(!M)throw Error(n(318));if(v=w.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(n(557));v[on]=w}else xe(),(w.flags&128)===0&&(w.memoizedState=null),w.flags|=4;pi(w),v=!1}else C=Tu(),v!==null&&v.memoizedState!==null&&(v.memoizedState.hydrationErrors=C),v=!0;if(!v)return w.flags&256?(Wn(w),w):(Wn(w),null);if((w.flags&128)!==0)throw Error(n(558))}return pi(w),null;case 13:if(M=w.memoizedState,v===null||v.memoizedState!==null&&v.memoizedState.dehydrated!==null){if(F=hl(w),M!==null&&M.dehydrated!==null){if(v===null){if(!F)throw Error(n(318));if(F=w.memoizedState,F=F!==null?F.dehydrated:null,!F)throw Error(n(317));F[on]=w}else xe(),(w.flags&128)===0&&(w.memoizedState=null),w.flags|=4;pi(w),F=!1}else F=Tu(),v!==null&&v.memoizedState!==null&&(v.memoizedState.hydrationErrors=F),F=!0;if(!F)return w.flags&256?(Wn(w),w):(Wn(w),null)}return Wn(w),(w.flags&128)!==0?(w.lanes=C,w):(C=M!==null,v=v!==null&&v.memoizedState!==null,C&&(M=w.child,F=null,M.alternate!==null&&M.alternate.memoizedState!==null&&M.alternate.memoizedState.cachePool!==null&&(F=M.alternate.memoizedState.cachePool.pool),V=null,M.memoizedState!==null&&M.memoizedState.cachePool!==null&&(V=M.memoizedState.cachePool.pool),V!==F&&(M.flags|=2048)),C!==v&&C&&(w.child.flags|=8192),Hd(w,w.updateQueue),pi(w),null);case 4:return fe(),v===null&&E0(w.stateNode.containerInfo),pi(w),null;case 10:return Au(w.type),pi(w),null;case 19:if(Z(Pi),M=w.memoizedState,M===null)return pi(w),null;if(F=(w.flags&128)!==0,V=M.rendering,V===null)if(F)Vh(M,!1);else{if(qi!==0||v!==null&&(v.flags&128)!==0)for(v=w.child;v!==null;){if(V=ts(v),V!==null){for(w.flags|=128,Vh(M,!1),v=V.updateQueue,w.updateQueue=v,Hd(w,v),w.subtreeFlags=0,v=C,C=w.child;C!==null;)Cv(C,v),C=C.sibling;return ue(Pi,Pi.current&1|2),hn&&Ua(w,M.treeForkCount),w.child}v=v.sibling}M.tail!==null&&Ie()>$h&&(w.flags|=128,F=!0,Vh(M,!1),w.lanes=4194304)}else{if(!F)if(v=ts(V),v!==null){if(w.flags|=128,F=!0,v=v.updateQueue,w.updateQueue=v,Hd(w,v),Vh(M,!0),M.tail===null&&M.tailMode==="hidden"&&!V.alternate&&!hn)return pi(w),null}else 2*Ie()-M.renderingStartTime>$h&&C!==536870912&&(w.flags|=128,F=!0,Vh(M,!1),w.lanes=4194304);M.isBackwards?(V.sibling=w.child,w.child=V):(v=M.last,v!==null?v.sibling=V:w.child=V,M.last=V)}return M.tail!==null?(v=M.tail,M.rendering=v,M.tail=v.sibling,M.renderingStartTime=Ie(),v.sibling=null,C=Pi.current,ue(Pi,F?C&1|2:C&1),hn&&Ua(w,M.treeForkCount),v):(pi(w),null);case 22:case 23:return Wn(w),Lu(),M=w.memoizedState!==null,v!==null?v.memoizedState!==null!==M&&(w.flags|=8192):M&&(w.flags|=8192),M?(C&536870912)!==0&&(w.flags&128)===0&&(pi(w),w.subtreeFlags&6&&(w.flags|=8192)):pi(w),C=w.updateQueue,C!==null&&Hd(w,C.retryQueue),C=null,v!==null&&v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(C=v.memoizedState.cachePool.pool),M=null,w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(M=w.memoizedState.cachePool.pool),M!==C&&(w.flags|=2048),v!==null&&Z(Ta),null;case 24:return C=null,v!==null&&(C=v.memoizedState.cache),w.memoizedState.cache!==C&&(w.flags|=2048),Au($i),pi(w),null;case 25:return null;case 30:return null}throw Error(n(156,w.tag))}function Hh(v,w){switch(uc(w),w.tag){case 1:return v=w.flags,v&65536?(w.flags=v&-65537|128,w):null;case 3:return Au($i),fe(),v=w.flags,(v&65536)!==0&&(v&128)===0?(w.flags=v&-65537|128,w):null;case 26:case 27:case 5:return de(w),null;case 31:if(w.memoizedState!==null){if(Wn(w),w.alternate===null)throw Error(n(340));xe()}return v=w.flags,v&65536?(w.flags=v&-65537|128,w):null;case 13:if(Wn(w),v=w.memoizedState,v!==null&&v.dehydrated!==null){if(w.alternate===null)throw Error(n(340));xe()}return v=w.flags,v&65536?(w.flags=v&-65537|128,w):null;case 19:return Z(Pi),null;case 4:return fe(),null;case 10:return Au(w.type),null;case 22:case 23:return Wn(w),Lu(),v!==null&&Z(Ta),v=w.flags,v&65536?(w.flags=v&-65537|128,w):null;case 24:return Au($i),null;case 25:return null;default:return null}}function Nv(v,w){switch(uc(w),w.tag){case 3:Au($i),fe();break;case 26:case 27:case 5:de(w);break;case 4:fe();break;case 31:w.memoizedState!==null&&Wn(w);break;case 13:Wn(w);break;case 19:Z(Pi);break;case 10:Au(w.type);break;case 22:case 23:Wn(w),Lu(),v!==null&&Z(Ta);break;case 24:Au($i)}}function Wd(v,w){try{var C=w.updateQueue,M=C!==null?C.lastEffect:null;if(M!==null){var F=M.next;C=F;do{if((C.tag&v)===v){M=void 0;var V=C.create,ae=C.inst;M=V(),ae.destroy=M}C=C.next}while(C!==F)}}catch(Se){yi(w,w.return,Se)}}function Tl(v,w,C){try{var M=w.updateQueue,F=M!==null?M.lastEffect:null;if(F!==null){var V=F.next;M=V;do{if((M.tag&v)===v){var ae=M.inst,Se=ae.destroy;if(Se!==void 0){ae.destroy=void 0,F=w;var Fe=C,it=Se;try{it()}catch(ht){yi(F,Fe,ht)}}}M=M.next}while(M!==V)}}catch(ht){yi(w,w.return,ht)}}function Yd(v){var w=v.updateQueue;if(w!==null){var C=v.stateNode;try{Ss(w,C)}catch(M){yi(v,v.return,M)}}}function Lv(v,w,C){C.props=eo(v.type,v.memoizedProps),C.state=v.memoizedState;try{C.componentWillUnmount()}catch(M){yi(v,w,M)}}function Ps(v,w){try{var C=v.ref;if(C!==null){switch(v.tag){case 26:case 27:case 5:var M=v.stateNode;break;case 30:M=v.stateNode;break;default:M=v.stateNode}typeof C=="function"?v.refCleanup=C(M):C.current=M}}catch(F){yi(v,w,F)}}function ro(v,w){var C=v.ref,M=v.refCleanup;if(C!==null)if(typeof M=="function")try{M()}catch(F){yi(v,w,F)}finally{v.refCleanup=null,v=v.alternate,v!=null&&(v.refCleanup=null)}else if(typeof C=="function")try{C(null)}catch(F){yi(v,w,F)}else C.current=null}function my(v){var w=v.type,C=v.memoizedProps,M=v.stateNode;try{e:switch(w){case"button":case"input":case"select":case"textarea":C.autoFocus&&M.focus();break e;case"img":C.src?M.src=C.src:C.srcSet&&(M.srcset=C.srcSet)}}catch(F){yi(v,v.return,F)}}function jv(v,w,C){try{var M=v.stateNode;OE(M,v.type,C,w),M[Nn]=w}catch(F){yi(v,v.return,F)}}function as(v){return v.tag===5||v.tag===3||v.tag===26||v.tag===27&&zr(v.type)||v.tag===4}function Wh(v){e:for(;;){for(;v.sibling===null;){if(v.return===null||as(v.return))return null;v=v.return}for(v.sibling.return=v.return,v=v.sibling;v.tag!==5&&v.tag!==6&&v.tag!==18;){if(v.tag===27&&zr(v.type)||v.flags&2||v.child===null||v.tag===4)continue e;v.child.return=v,v=v.child}if(!(v.flags&2))return v.stateNode}}function tg(v,w,C){var M=v.tag;if(M===5||M===6)v=v.stateNode,w?(C.nodeType===9?C.body:C.nodeName==="HTML"?C.ownerDocument.body:C).insertBefore(v,w):(w=C.nodeType===9?C.body:C.nodeName==="HTML"?C.ownerDocument.body:C,w.appendChild(v),C=C._reactRootContainer,C!=null||w.onclick!==null||(w.onclick=Gs));else if(M!==4&&(M===27&&zr(v.type)&&(C=v.stateNode,w=null),v=v.child,v!==null))for(tg(v,w,C),v=v.sibling;v!==null;)tg(v,w,C),v=v.sibling}function Bv(v,w,C){var M=v.tag;if(M===5||M===6)v=v.stateNode,w?C.insertBefore(v,w):C.appendChild(v);else if(M!==4&&(M===27&&zr(v.type)&&(C=v.stateNode),v=v.child,v!==null))for(Bv(v,w,C),v=v.sibling;v!==null;)Bv(v,w,C),v=v.sibling}function Fv(v){var w=v.stateNode,C=v.memoizedProps;try{for(var M=v.type,F=w.attributes;F.length;)w.removeAttributeNode(F[0]);os(w,M,C),w[on]=v,w[Nn]=C}catch(V){yi(v,v.return,V)}}var Cl=!1,Ra=!1,rg=!1,by=typeof WeakSet=="function"?WeakSet:Set,qa=null;function o0(v,w){if(v=v.containerInfo,pg=Uy,v=Bc(v),Ws(v)){if("selectionStart"in v)var C={start:v.selectionStart,end:v.selectionEnd};else e:{C=(C=v.ownerDocument)&&C.defaultView||window;var M=C.getSelection&&C.getSelection();if(M&&M.rangeCount!==0){C=M.anchorNode;var F=M.anchorOffset,V=M.focusNode;M=M.focusOffset;try{C.nodeType,V.nodeType}catch{C=null;break e}var ae=0,Se=-1,Fe=-1,it=0,ht=0,_t=v,at=null;t:for(;;){for(var lt;_t!==C||F!==0&&_t.nodeType!==3||(Se=ae+F),_t!==V||M!==0&&_t.nodeType!==3||(Fe=ae+M),_t.nodeType===3&&(ae+=_t.nodeValue.length),(lt=_t.firstChild)!==null;)at=_t,_t=lt;for(;;){if(_t===v)break t;if(at===C&&++it===F&&(Se=ae),at===V&&++ht===M&&(Fe=ae),(lt=_t.nextSibling)!==null)break;_t=at,at=_t.parentNode}_t=lt}C=Se===-1||Fe===-1?null:{start:Se,end:Fe}}else C=null}C=C||{start:0,end:0}}else C=null;for(C0={focusedElem:v,selectionRange:C},Uy=!1,qa=w;qa!==null;)if(w=qa,v=w.child,(w.subtreeFlags&1028)!==0&&v!==null)v.return=w,qa=v;else for(;qa!==null;){switch(w=qa,V=w.alternate,v=w.flags,w.tag){case 0:if((v&4)!==0&&(v=w.updateQueue,v=v!==null?v.events:null,v!==null))for(C=0;C title"))),os(V,M,C),V[on]=v,Hn(V),M=V;break e;case"link":var ae=U_("link","href",F).get(M+(C.href||""));if(ae){for(var Se=0;SeTi&&(ae=Ti,Ti=Dr,Dr=ae);var Xe=vf(Se,Dr),Ve=vf(Se,Ti);if(Xe&&Ve&&(lt.rangeCount!==1||lt.anchorNode!==Xe.node||lt.anchorOffset!==Xe.offset||lt.focusNode!==Ve.node||lt.focusOffset!==Ve.offset)){var rt=_t.createRange();rt.setStart(Xe.node,Xe.offset),lt.removeAllRanges(),Dr>Ti?(lt.addRange(rt),lt.extend(Ve.node,Ve.offset)):(rt.setEnd(Ve.node,Ve.offset),lt.addRange(rt))}}}}for(_t=[],lt=Se;lt=lt.parentNode;)lt.nodeType===1&&_t.push({element:lt,left:lt.scrollLeft,top:lt.scrollTop});for(typeof Se.focus=="function"&&Se.focus(),Se=0;Se<_t.length;Se++){var bt=_t[Se];bt.element.scrollLeft=bt.left,bt.element.scrollTop=bt.top}}Uy=!!pg,C0=pg=null}finally{zt=F,q.p=M,H.T=C}}v.current=w,mo=2}}function v0(){if(mo===2){mo=0;var v=Zd,w=zv,C=(w.flags&8772)!==0;if((w.subtreeFlags&8772)!==0||C){C=H.T,H.T=null;var M=q.p;q.p=2;var F=zt;zt|=4;try{ng(v,w.alternate,w)}finally{zt=F,q.p=M,H.T=C}}mo=3}}function Ty(){if(mo===4||mo===3){mo=0,Me();var v=Zd,w=zv,C=hd,M=s_;(w.subtreeFlags&10256)!==0||(w.flags&10256)!==0?mo=5:(mo=0,zv=Zd=null,p0(v,v.pendingLanes));var F=v.pendingLanes;if(F===0&&(Kd=null),bn(C),w=w.stateNode,Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(_e,w,void 0,(w.current.flags&128)===128)}catch{}if(M!==null){w=H.T,F=q.p,q.p=2,H.T=null;try{for(var V=v.onRecoverableError,ae=0;aeC?32:C,H.T=null,C=l0,l0=null;var V=Zd,ae=hd;if(mo=0,zv=Zd=null,hd=0,(zt&6)!==0)throw Error(n(331));var Se=zt;if(zt|=4,Gt(V.current),Et(V,V.current,ae,C),zt=Se,fg(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(_e,V)}catch{}return!0}finally{q.p=F,H.T=M,p0(v,w)}}function y0(v,w,C){w=sa(C,w),w=Bh(v.stateNode,w,2),v=Zs(v,w,2),v!==null&&(Br(v,2),Af(v))}function yi(v,w,C){if(v.tag===3)y0(v,v,C);else for(;w!==null;){if(w.tag===3){y0(w,v,C);break}else if(w.tag===1){var M=w.stateNode;if(typeof w.type.getDerivedStateFromError=="function"||typeof M.componentDidCatch=="function"&&(Kd===null||!Kd.has(M))){v=sa(C,v),C=Sl(2),M=Zs(w,C,2),M!==null&&(fd(C,M,w,v),Br(M,2),Af(M));break}}w=w.return}}function m0(v,w,C){var M=v.pingCache;if(M===null){M=v.pingCache=new vr;var F=new Set;M.set(w,F)}else F=M.get(w),F===void 0&&(F=new Set,M.set(w,F));F.has(C)||(Yc=!0,F.add(C),v=_E.bind(null,v,w,C),w.then(v,v))}function _E(v,w,C){var M=v.pingCache;M!==null&&M.delete(w),v.pingedLanes|=v.suspendedLanes&C,v.warmLanes&=~C,Hr===v&&(Mr&C)===C&&(qi===4||qi===3&&(Mr&62914560)===Mr&&300>Ie()-ag?(zt&2)===0&&qv(v,0):Xh|=C,$c===Mr&&($c=0)),Af(v)}function cg(v,w){w===0&&(w=Xt()),v=ms(v,w),v!==null&&(Br(v,w),Af(v))}function Cy(v){var w=v.memoizedState,C=0;w!==null&&(C=w.retryLane),cg(v,C)}function wE(v,w){var C=0;switch(v.tag){case 31:case 13:var M=v.stateNode,F=v.memoizedState;F!==null&&(C=F.retryLane);break;case 19:M=v.stateNode;break;case 22:M=v.stateNode._retryCache;break;default:throw Error(n(314))}M!==null&&M.delete(w),cg(v,C)}function xE(v,w){return ie(v,w)}var Vv=null,Kh=null,b0=!1,Ay=!1,_0=!1,Qd=0;function Af(v){v!==Kh&&v.next===null&&(Kh===null?Vv=Kh=v:Kh=Kh.next=v),Ay=!0,b0||(b0=!0,SE())}function fg(v,w){if(!_0&&Ay){_0=!0;do for(var C=!1,M=Vv;M!==null;){if(v!==0){var F=M.pendingLanes;if(F===0)var V=0;else{var ae=M.suspendedLanes,Se=M.pingedLanes;V=(1<<31-Ze(42|v)+1)-1,V&=F&~(ae&~Se),V=V&201326741?V&201326741|1:V?V|2:0}V!==0&&(C=!0,w_(M,V))}else V=Mr,V=sr(M,M===Hr?V:0,M.cancelPendingCommit!==null||M.timeoutHandle!==-1),(V&3)===0||Ut(M,V)||(C=!0,w_(M,V));M=M.next}while(C);_0=!1}}function EE(){m_()}function m_(){Ay=b0=!1;var v=0;Qd!==0&&TE()&&(v=Qd);for(var w=Ie(),C=null,M=Vv;M!==null;){var F=M.next,V=b_(M,w);V===0?(M.next=null,C===null?Vv=F:C.next=F,F===null&&(Kh=C)):(C=M,(v!==0||(V&3)!==0)&&(Ay=!0)),M=F}mo!==0&&mo!==5||fg(v),Qd!==0&&(Qd=0)}function b_(v,w){for(var C=v.suspendedLanes,M=v.pingedLanes,F=v.expirationTimes,V=v.pendingLanes&-62914561;0Se)break;var ht=Fe.transferSize,_t=Fe.initiatorType;ht&&T0(_t)&&(Fe=Fe.responseEnd,ae+=ht*(Fe"u"?null:document;function L_(v,w,C){var M=th;if(M&&typeof w=="string"&&w){var F=Xa(w);F='link[rel="'+v+'"][href="'+F+'"]',typeof C=="string"&&(F+='[crossorigin="'+C+'"]'),N_.has(F)||(N_.add(F),v={rel:v,crossOrigin:C,href:w},M.querySelector(F)===null&&(w=M.createElement("link"),os(w,"link",v),Hn(w),M.head.appendChild(w)))}}function M0(v){gd.D(v),L_("dns-prefetch",v,null)}function DE(v,w){gd.C(v,w),L_("preconnect",v,w)}function kE(v,w,C){gd.L(v,w,C);var M=th;if(M&&v&&w){var F='link[rel="preload"][as="'+Xa(w)+'"]';w==="image"&&C&&C.imageSrcSet?(F+='[imagesrcset="'+Xa(C.imageSrcSet)+'"]',typeof C.imageSizes=="string"&&(F+='[imagesizes="'+Xa(C.imageSizes)+'"]')):F+='[href="'+Xa(v)+'"]';var V=F;switch(w){case"style":V=Wv(v);break;case"script":V=Xv(v)}Sc.has(V)||(v=f({rel:"preload",href:w==="image"&&C&&C.imageSrcSet?void 0:v,as:w},C),Sc.set(V,v),M.querySelector(F)!==null||w==="style"&&M.querySelector(Yv(V))||w==="script"&&M.querySelector($v(V))||(w=M.createElement("link"),os(w,"link",v),Hn(w),M.head.appendChild(w)))}}function IE(v,w){gd.m(v,w);var C=th;if(C&&v){var M=w&&typeof w.as=="string"?w.as:"script",F='link[rel="modulepreload"][as="'+Xa(M)+'"][href="'+Xa(v)+'"]',V=F;switch(M){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":V=Xv(v)}if(!Sc.has(V)&&(v=f({rel:"modulepreload",href:v},w),Sc.set(V,v),C.querySelector(F)===null)){switch(M){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(C.querySelector($v(V)))return}M=C.createElement("link"),os(M,"link",v),Hn(M),C.head.appendChild(M)}}}function Bo(v,w,C){gd.S(v,w,C);var M=th;if(M&&v){var F=ei(M).hoistableStyles,V=Wv(v);w=w||"default";var ae=F.get(V);if(!ae){var Se={loading:0,preload:null};if(ae=M.querySelector(Yv(V)))Se.loading=5;else{v=f({rel:"stylesheet",href:v,"data-precedence":w},C),(C=Sc.get(V))&&D0(v,C);var Fe=ae=M.createElement("link");Hn(Fe),os(Fe,"link",v),Fe._p=new Promise(function(it,ht){Fe.onload=it,Fe.onerror=ht}),Fe.addEventListener("load",function(){Se.loading|=1}),Fe.addEventListener("error",function(){Se.loading|=2}),Se.loading|=4,Ny(ae,w,M)}ae={type:"stylesheet",instance:ae,count:1,state:Se},F.set(V,ae)}}}function Vu(v,w){gd.X(v,w);var C=th;if(C&&v){var M=ei(C).hoistableScripts,F=Xv(v),V=M.get(F);V||(V=C.querySelector($v(F)),V||(v=f({src:v,async:!0},w),(w=Sc.get(F))&&Ly(v,w),V=C.createElement("script"),Hn(V),os(V,"link",v),C.head.appendChild(V)),V={type:"script",instance:V,count:1,state:null},M.set(F,V))}}function NE(v,w){gd.M(v,w);var C=th;if(C&&v){var M=ei(C).hoistableScripts,F=Xv(v),V=M.get(F);V||(V=C.querySelector($v(F)),V||(v=f({src:v,async:!0,type:"module"},w),(w=Sc.get(F))&&Ly(v,w),V=C.createElement("script"),Hn(V),os(V,"link",v),C.head.appendChild(V)),V={type:"script",instance:V,count:1,state:null},M.set(F,V))}}function j_(v,w,C,M){var F=(F=le.current)?Iy(F):null;if(!F)throw Error(n(446));switch(v){case"meta":case"title":return null;case"style":return typeof C.precedence=="string"&&typeof C.href=="string"?(w=Wv(C.href),C=ei(F).hoistableStyles,M=C.get(w),M||(M={type:"style",instance:null,count:0,state:null},C.set(w,M)),M):{type:"void",instance:null,count:0,state:null};case"link":if(C.rel==="stylesheet"&&typeof C.href=="string"&&typeof C.precedence=="string"){v=Wv(C.href);var V=ei(F).hoistableStyles,ae=V.get(v);if(ae||(F=F.ownerDocument||F,ae={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},V.set(v,ae),(V=F.querySelector(Yv(v)))&&!V._p&&(ae.instance=V,ae.state.loading=5),Sc.has(v)||(C={rel:"preload",as:"style",href:C.href,crossOrigin:C.crossOrigin,integrity:C.integrity,media:C.media,hrefLang:C.hrefLang,referrerPolicy:C.referrerPolicy},Sc.set(v,C),V||LE(F,v,C,ae.state))),w&&M===null)throw Error(n(528,""));return ae}if(w&&M!==null)throw Error(n(529,""));return null;case"script":return w=C.async,C=C.src,typeof C=="string"&&w&&typeof w!="function"&&typeof w!="symbol"?(w=Xv(C),C=ei(F).hoistableScripts,M=C.get(w),M||(M={type:"script",instance:null,count:0,state:null},C.set(w,M)),M):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,v))}}function Wv(v){return'href="'+Xa(v)+'"'}function Yv(v){return'link[rel="stylesheet"]['+v+"]"}function B_(v){return f({},v,{"data-precedence":v.precedence,precedence:null})}function LE(v,w,C,M){v.querySelector('link[rel="preload"][as="style"]['+w+"]")?M.loading=1:(w=v.createElement("link"),M.preload=w,w.addEventListener("load",function(){return M.loading|=1}),w.addEventListener("error",function(){return M.loading|=2}),os(w,"link",C),Hn(w),v.head.appendChild(w))}function Xv(v){return'[src="'+Xa(v)+'"]'}function $v(v){return"script[async]"+v}function F_(v,w,C){if(w.count++,w.instance===null)switch(w.type){case"style":var M=v.querySelector('style[data-href~="'+Xa(C.href)+'"]');if(M)return w.instance=M,Hn(M),M;var F=f({},C,{"data-href":C.href,"data-precedence":C.precedence,href:null,precedence:null});return M=(v.ownerDocument||v).createElement("style"),Hn(M),os(M,"style",F),Ny(M,C.precedence,v),w.instance=M;case"stylesheet":F=Wv(C.href);var V=v.querySelector(Yv(F));if(V)return w.state.loading|=4,w.instance=V,Hn(V),V;M=B_(C),(F=Sc.get(F))&&D0(M,F),V=(v.ownerDocument||v).createElement("link"),Hn(V);var ae=V;return ae._p=new Promise(function(Se,Fe){ae.onload=Se,ae.onerror=Fe}),os(V,"link",M),w.state.loading|=4,Ny(V,C.precedence,v),w.instance=V;case"script":return V=Xv(C.src),(F=v.querySelector($v(V)))?(w.instance=F,Hn(F),F):(M=C,(F=Sc.get(V))&&(M=f({},C),Ly(M,F)),v=v.ownerDocument||v,F=v.createElement("script"),Hn(F),os(F,"link",M),v.head.appendChild(F),w.instance=F);case"void":return null;default:throw Error(n(443,w.type))}else w.type==="stylesheet"&&(w.state.loading&4)===0&&(M=w.instance,w.state.loading|=4,Ny(M,C.precedence,v));return w.instance}function Ny(v,w,C){for(var M=C.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),F=M.length?M[M.length-1]:null,V=F,ae=0;ae title"):null)}function jE(v,w,C){if(C===1||w.itemProp!=null)return!1;switch(v){case"meta":case"title":return!0;case"style":if(typeof w.precedence!="string"||typeof w.href!="string"||w.href==="")break;return!0;case"link":if(typeof w.rel!="string"||typeof w.href!="string"||w.href===""||w.onLoad||w.onError)break;switch(w.rel){case"stylesheet":return v=w.disabled,typeof w.precedence=="string"&&v==null;default:return!0}case"script":if(w.async&&typeof w.async!="function"&&typeof w.async!="symbol"&&!w.onLoad&&!w.onError&&w.src&&typeof w.src=="string")return!0}return!1}function q_(v){return!(v.type==="stylesheet"&&(v.state.loading&3)===0)}function Kv(v,w,C,M){if(C.type==="stylesheet"&&(typeof M.media!="string"||matchMedia(M.media).matches!==!1)&&(C.state.loading&4)===0){if(C.instance===null){var F=Wv(M.href),V=w.querySelector(Yv(F));if(V){w=V._p,w!==null&&typeof w=="object"&&typeof w.then=="function"&&(v.count++,v=jy.bind(v),w.then(v,v)),C.state.loading|=4,C.instance=V,Hn(V);return}V=w.ownerDocument||w,M=B_(M),(F=Sc.get(F))&&D0(M,F),V=V.createElement("link"),Hn(V);var ae=V;ae._p=new Promise(function(Se,Fe){ae.onload=Se,ae.onerror=Fe}),os(V,"link",M),C.instance=V}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(C,w),(w=C.state.preload)&&(C.state.loading&3)===0&&(v.count++,C=jy.bind(v),w.addEventListener("load",C),w.addEventListener("error",C))}}var k0=0;function BE(v,w){return v.stylesheets&&v.count===0&&Fy(v,v.stylesheets),0k0?50:800)+w);return v.unsuspend=C,function(){v.unsuspend=null,clearTimeout(M),clearTimeout(F)}}:null}function jy(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fy(this,this.stylesheets);else if(this.unsuspend){var v=this.unsuspend;this.unsuspend=null,v()}}}var By=null;function Fy(v,w){v.stylesheets=null,v.unsuspend!==null&&(v.count++,By=new Map,w.forEach(G_,v),By=null,jy.call(v))}function G_(v,w){if(!(w.state.loading&4)){var C=By.get(v);if(C)var M=C.get(null);else{C=new Map,By.set(v,C);for(var F=v.querySelectorAll("link[data-precedence],style[data-precedence]"),V=0;V"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),XE.exports=sV(),XE.exports}var lV=uV();let V9=me.createContext(null);function cV(){let r=me.useContext(V9);if(!r)throw new Error("RenderContext not found");return r}function fV(){return cV().model}function Wy(r){let e=fV(),t=me.useSyncExternalStore(i=>(e.on(`change:${r}`,i),()=>e.off(`change:${r}`,i)),()=>e.get(r)),n=me.useCallback(i=>{e.set(r,typeof i=="function"?i(e.get(r)):i),e.save_changes()},[e,r]);return[t,n]}function dV(r){return({el:e,model:t,experimental:n})=>{let i=lV.createRoot(e);return i.render(me.createElement(me.StrictMode,null,me.createElement(V9.Provider,{value:{model:t,experimental:n}},me.createElement(r)))),()=>i.unmount()}}const Xu={graph:{1:"#ffdf81ff"},motion:{duration:{quick:"100ms"}},palette:{lemon:{40:"#d7aa0aff"},neutral:{40:"#959aa1ff"}},theme:{dark:{boxShadow:{raised:"0px 1px 2px 0px rgb(from #09090aff r g b / 0.50)",overlay:"0px 8px 20px 0px rgb(from #09090aff r g b / 0.50)"},color:{neutral:{text:{weakest:"#818790ff",weaker:"#a8acb2ff",weak:"#cfd1d4ff",default:"#f5f6f6ff",inverse:"#1a1b1dff"},icon:"#cfd1d4ff",bg:{weak:"#212325ff",default:"#1a1b1dff",strong:"#3c3f44ff",stronger:"#6f757eff",strongest:"#f5f6f6ff",status:"#a8acb2ff","on-bg-weak":"#81879014"},border:{weak:"#3c3f44ff",strong:"#5e636aff",strongest:"#bbbec3ff"},hover:"#959aa11a",pressed:"#959aa133"},primary:{text:"#8fe3e8ff",icon:"#8fe3e8ff",bg:{weak:"#262f31ff",strong:"#8fe3e8ff",status:"#5db3bfff",selected:"#262f31ff"},border:{strong:"#8fe3e8ff",weak:"#02507bff"},focus:"#5db3bfff",hover:{weak:"#8fe3e814",strong:"#5db3bfff"},pressed:{weak:"#8fe3e81f",strong:"#4c99a4ff"}},danger:{text:"#ffaa97ff",icon:"#ffaa97ff",bg:{strong:"#ffaa97ff",weak:"#432520ff",status:"#f96746ff"},border:{strong:"#ffaa97ff",weak:"#730e00ff"},hover:{weak:"#ffaa9714",strong:"#f96746ff"},pressed:{weak:"#ffaa971f"},strong:"#e84e2cff"},warning:{text:"#ffd600ff",icon:"#ffd600ff",bg:{strong:"#ffd600ff",weak:"#312e1aff",status:"#d7aa0aff"},border:{strong:"#ffd600ff",weak:"#765500ff"}},success:{text:"#90cb62ff",icon:"#90cb62ff",bg:{strong:"#90cb62ff",weak:"#262d24ff",status:"#6fa646ff"},border:{strong:"#90cb62ff",weak:"#296127ff"}},discovery:{text:"#ccb4ffff",icon:"#ccb4ffff",bg:{strong:"#ccb4ffff",weak:"#2c2a34ff",status:"#a07becff"},border:{strong:"#ccb4ffff",weak:"#4b2894ff"}}}},light:{boxShadow:{raised:"0px 1px 2px 0px rgb(from #1a1b1dff r g b / 0.18)",overlay:"0px 4px 8px 0px rgb(from #1a1b1dff r g b / 0.12)"},color:{neutral:{text:{weakest:"#a8acb2ff",weaker:"#5e636aff",weak:"#4d5157ff",default:"#1a1b1dff",inverse:"#ffffffff"},icon:"#4d5157ff",bg:{weak:"#ffffffff",default:"#f5f6f6ff","on-bg-weak":"#f5f6f6ff",strong:"#e2e3e5ff",stronger:"#a8acb2ff",strongest:"#3c3f44ff",status:"#a8acb2ff"},border:{weak:"#e2e3e5ff",strong:"#bbbec3ff",strongest:"#6f757eff"},hover:"#6f757e1a",pressed:"#6f757e33"},primary:{text:"#0a6190ff",icon:"#0a6190ff",bg:{weak:"#e7fafbff",strong:"#0a6190ff",status:"#4c99a4ff",selected:"#e7fafbff"},border:{strong:"#0a6190ff",weak:"#8fe3e8ff"},focus:"#30839dff",hover:{weak:"#30839d1a",strong:"#02507bff"},pressed:{weak:"#30839d1f",strong:"#014063ff"}},danger:{text:"#bb2d00ff",icon:"#bb2d00ff",bg:{strong:"#bb2d00ff",weak:"#ffe9e7ff",status:"#e84e2cff"},border:{strong:"#bb2d00ff",weak:"#ffaa97ff"},hover:{weak:"#d4330014",strong:"#961200ff"},pressed:{weak:"#d433001f",strong:"#730e00ff"}},warning:{text:"#765500ff",icon:"#765500ff",bg:{strong:"#765500ff",weak:"#fffad1ff",status:"#d7aa0aff"},border:{strong:"#996e00ff",weak:"#ffd600ff"}},success:{text:"#3f7824ff",icon:"#3f7824ff",bg:{strong:"#3f7824ff",weak:"#e7fcd7ff",status:"#5b992bff"},border:{strong:"#3f7824ff",weak:"#90cb62ff"}},discovery:{text:"#5a34aaff",icon:"#5a34aaff",bg:{strong:"#5a34aaff",weak:"#e9deffff",status:"#754ec8ff"},border:{strong:"#5a34aaff",weak:"#b38effff"}}}}}},ks={breakpoint:{"5xs":"320px","4xs":"360px","3xs":"375px","2xs":"512px",xs:"768px",sm:"864px",md:"1024px",lg:"1280px",xl:"1440px","2xl":"1680px","3xl":"1920px"},categorical:{1:"#55bdc5ff",2:"#4d49cbff",3:"#dc8b39ff",4:"#c9458dff",5:"#8e8cf3ff",6:"#78de7cff",7:"#3f80e3ff",8:"#673fabff",9:"#dbbf40ff",10:"#bf732dff",11:"#478a6eff",12:"#ade86bff"},graph:{1:"#ffdf81ff",2:"#c990c0ff",3:"#f79767ff",4:"#56c7e4ff",5:"#f16767ff",6:"#d8c7aeff",7:"#8dcc93ff",8:"#ecb4c9ff",9:"#4d8ddaff",10:"#ffc354ff",11:"#da7294ff",12:"#579380ff"},motion:{duration:{quick:"100ms",slow:"250ms"},easing:{standard:"cubic-bezier(0.42, 0, 0.58, 1)"}},palette:{baltic:{10:"#e7fafbff",15:"#c3f8fbff",20:"#8fe3e8ff",25:"#5cc3c9ff",30:"#5db3bfff",35:"#51a6b1ff",40:"#4c99a4ff",45:"#30839dff",50:"#0a6190ff",55:"#02507bff",60:"#014063ff",65:"#262f31ff",70:"#081e2bff",75:"#041823ff",80:"#01121cff"},hibiscus:{10:"#ffe9e7ff",15:"#ffd7d2ff",20:"#ffaa97ff",25:"#ff8e6aff",30:"#f96746ff",35:"#e84e2cff",40:"#d43300ff",45:"#bb2d00ff",50:"#961200ff",55:"#730e00ff",60:"#432520ff",65:"#4e0900ff",70:"#3f0800ff",75:"#360700ff",80:"#280500ff"},forest:{10:"#e7fcd7ff",15:"#bcf194ff",20:"#90cb62ff",25:"#80bb53ff",30:"#6fa646ff",35:"#5b992bff",40:"#4d8622ff",45:"#3f7824ff",50:"#296127ff",55:"#145439ff",60:"#0c4d31ff",65:"#0a4324ff",70:"#262d24ff",75:"#052618ff",80:"#021d11ff"},lemon:{10:"#fffad1ff",15:"#fff8bdff",20:"#fff178ff",25:"#ffe500ff",30:"#ffd600ff",35:"#f4c318ff",40:"#d7aa0aff",45:"#b48409ff",50:"#996e00ff",55:"#765500ff",60:"#614600ff",65:"#4d3700ff",70:"#312e1aff",75:"#2e2100ff",80:"#251b00ff"},lavender:{10:"#f7f3ffff",15:"#e9deffff",20:"#ccb4ffff",25:"#b38effff",30:"#a07becff",35:"#8c68d9ff",40:"#754ec8ff",45:"#5a34aaff",50:"#4b2894ff",55:"#3b1982ff",60:"#2c2a34ff",65:"#220954ff",70:"#170146ff",75:"#0e002dff",80:"#09001cff"},marigold:{10:"#fff0d2ff",15:"#ffde9dff",20:"#ffcf72ff",25:"#ffc450ff",30:"#ffb422ff",35:"#ffa901ff",40:"#ec9c00ff",45:"#da9105ff",50:"#ba7a00ff",55:"#986400ff",60:"#795000ff",65:"#624100ff",70:"#543800ff",75:"#422c00ff",80:"#251900ff"},earth:{10:"#fff7f0ff",15:"#fdeddaff",20:"#ffe1c5ff",25:"#f8d1aeff",30:"#ecbf96ff",35:"#e0ae7fff",40:"#d19660ff",45:"#af7c4dff",50:"#8d5d31ff",55:"#763f18ff",60:"#66310bff",65:"#5b2b09ff",70:"#481f01ff",75:"#361700ff",80:"#220e00ff"},neutral:{10:"#ffffffff",15:"#f5f6f6ff",20:"#e2e3e5ff",25:"#cfd1d4ff",30:"#bbbec3ff",35:"#a8acb2ff",40:"#959aa1ff",45:"#818790ff",50:"#6f757eff",55:"#5e636aff",60:"#4d5157ff",65:"#3c3f44ff",70:"#212325ff",75:"#1a1b1dff",80:"#09090aff"},beige:{10:"#fffcf4ff",20:"#fff7e3ff",30:"#f2ead4ff",40:"#c1b9a0ff",50:"#999384ff",60:"#666050ff",70:"#3f3824ff"},highlights:{yellow:"#faff00ff",periwinkle:"#6a82ffff"}},borderRadius:{none:"0px",sm:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px",full:"9999px"},space:{2:"2px",4:"4px",6:"6px",8:"8px",12:"12px",16:"16px",20:"20px",24:"24px",32:"32px",48:"48px",64:"64px"},theme:{dark:{boxShadow:{raised:"0px 1px 2px 0px rgb(from #09090aff r g b / 0.50)",overlay:"0px 8px 20px 0px rgb(from #09090aff r g b / 0.50)"},color:{neutral:{text:{weakest:"#818790ff",weaker:"#a8acb2ff",weak:"#cfd1d4ff",default:"#f5f6f6ff",inverse:"#1a1b1dff"},icon:"#cfd1d4ff",bg:{weak:"#212325ff",default:"#1a1b1dff",strong:"#3c3f44ff",stronger:"#6f757eff",strongest:"#f5f6f6ff",status:"#a8acb2ff","on-bg-weak":"#81879014"},border:{weak:"#3c3f44ff",strong:"#5e636aff",strongest:"#bbbec3ff"},hover:"#959aa11a",pressed:"#959aa133"},primary:{text:"#8fe3e8ff",icon:"#8fe3e8ff",bg:{weak:"#262f31ff",strong:"#8fe3e8ff",status:"#5db3bfff",selected:"#262f31ff"},border:{strong:"#8fe3e8ff",weak:"#02507bff"},focus:"#5db3bfff",hover:{weak:"#8fe3e814",strong:"#5db3bfff"},pressed:{weak:"#8fe3e81f",strong:"#4c99a4ff"}},danger:{text:"#ffaa97ff",icon:"#ffaa97ff",bg:{strong:"#ffaa97ff",weak:"#432520ff",status:"#f96746ff"},border:{strong:"#ffaa97ff",weak:"#730e00ff"},hover:{weak:"#ffaa9714",strong:"#f96746ff"},pressed:{weak:"#ffaa971f"},strong:"#e84e2cff"},warning:{text:"#ffd600ff",icon:"#ffd600ff",bg:{strong:"#ffd600ff",weak:"#312e1aff",status:"#d7aa0aff"},border:{strong:"#ffd600ff",weak:"#765500ff"}},success:{text:"#90cb62ff",icon:"#90cb62ff",bg:{strong:"#90cb62ff",weak:"#262d24ff",status:"#6fa646ff"},border:{strong:"#90cb62ff",weak:"#296127ff"}},discovery:{text:"#ccb4ffff",icon:"#ccb4ffff",bg:{strong:"#ccb4ffff",weak:"#2c2a34ff",status:"#a07becff"},border:{strong:"#ccb4ffff",weak:"#4b2894ff"}}}},light:{boxShadow:{raised:"0px 1px 2px 0px rgb(from #1a1b1dff r g b / 0.18)",overlay:"0px 4px 8px 0px rgb(from #1a1b1dff r g b / 0.12)"},color:{neutral:{text:{weakest:"#a8acb2ff",weaker:"#5e636aff",weak:"#4d5157ff",default:"#1a1b1dff",inverse:"#ffffffff"},icon:"#4d5157ff",bg:{weak:"#ffffffff",default:"#f5f6f6ff","on-bg-weak":"#f5f6f6ff",strong:"#e2e3e5ff",stronger:"#a8acb2ff",strongest:"#3c3f44ff",status:"#a8acb2ff"},border:{weak:"#e2e3e5ff",strong:"#bbbec3ff",strongest:"#6f757eff"},hover:"#6f757e1a",pressed:"#6f757e33"},primary:{text:"#0a6190ff",icon:"#0a6190ff",bg:{weak:"#e7fafbff",strong:"#0a6190ff",status:"#4c99a4ff",selected:"#e7fafbff"},border:{strong:"#0a6190ff",weak:"#8fe3e8ff"},focus:"#30839dff",hover:{weak:"#30839d1a",strong:"#02507bff"},pressed:{weak:"#30839d1f",strong:"#014063ff"}},danger:{text:"#bb2d00ff",icon:"#bb2d00ff",bg:{strong:"#bb2d00ff",weak:"#ffe9e7ff",status:"#e84e2cff"},border:{strong:"#bb2d00ff",weak:"#ffaa97ff"},hover:{weak:"#d4330014",strong:"#961200ff"},pressed:{weak:"#d433001f",strong:"#730e00ff"}},warning:{text:"#765500ff",icon:"#765500ff",bg:{strong:"#765500ff",weak:"#fffad1ff",status:"#d7aa0aff"},border:{strong:"#996e00ff",weak:"#ffd600ff"}},success:{text:"#3f7824ff",icon:"#3f7824ff",bg:{strong:"#3f7824ff",weak:"#e7fcd7ff",status:"#5b992bff"},border:{strong:"#3f7824ff",weak:"#90cb62ff"}},discovery:{text:"#5a34aaff",icon:"#5a34aaff",bg:{strong:"#5a34aaff",weak:"#e9deffff",status:"#754ec8ff"},border:{strong:"#5a34aaff",weak:"#b38effff"}}}}},zIndex:{deep:-999999,base:0,overlay:10,banner:20,blanket:30,popover:40,tooltip:50,modal:60}},hV=()=>{const e={},t=(n,i="")=>{typeof n=="object"&&Object.keys(n).forEach(a=>{i===""?t(n[a],`${a}`):t(n[a],`${i}-${a}`)}),typeof n=="string"&&(i=i.replace("light-",""),e[i]=`var(--theme-color-${i})`)};return t(ks.theme.light.color,""),e},vV=()=>{const r={},e=(t,n="")=>{if(typeof t=="object"&&Object.keys(t).forEach(i=>{e(t[i],`${n}-${i}`)}),typeof t=="string"){n=n.replace("light-","");const i=n.replace("shadow-","");r[i]=`var(--theme-${n})`}};return e(ks.theme.light.boxShadow,"shadow"),r},fk=(r,e)=>Object.keys(r).reduce((t,n)=>(t[`${e}-${n}`]=r[n],t),{}),pV={colors:Object.assign(Object.assign(Object.assign({},ks.palette),{graph:ks.graph,categorical:ks.categorical,dark:Object.assign({},ks.theme.dark.color),light:Object.assign({},ks.theme.light.color)}),hV()),borderRadius:ks.borderRadius,boxShadow:Object.assign(Object.assign(Object.assign({},fk(ks.theme.dark.boxShadow,"dark")),fk(ks.theme.light.boxShadow,"light")),vV()),boxShadowColor:{},fontFamily:{sans:['"Public Sans"'],mono:['"Fira Code"'],syne:['"Syne Neo"']},screens:Object.assign({},ks.breakpoint),transitionTimingFunction:{DEFAULT:ks.motion.easing.standard},transitionDuration:{DEFAULT:ks.motion.duration.quick,quick:ks.motion.duration.quick,slow:ks.motion.duration.slow},transitionDelay:{DEFAULT:"0ms",none:"0ms",delayed:"100ms"},transitionProperty:{all:"all"}};Object.assign(Object.assign({},pV),{extend:{colors:{transparent:"transparent",current:"currentColor",inherit:"inherit"},zIndex:Object.assign({},ks.zIndex),spacing:Object.assign(Object.assign({},Object.keys(ks.space).reduce((r,e)=>Object.assign(Object.assign({},r),{[`token-${e}`]:ks.space[e]}),{})),{0:"0px",px:"1px",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"20px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"})}});var QE={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/var fk;function gV(){return fk||(fk=1,(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var a="",o=0;oconsole.warn(`[🪡 Needle]: ${r}`);var mV=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{orientation:e="horizontal",as:t,style:n,className:i,htmlAttributes:a,ref:o}=r,s=mV(r,["orientation","as","style","className","htmlAttributes","ref"]);const u=Vn("ndl-divider",i,{"ndl-divider-horizontal":e==="horizontal","ndl-divider-vertical":e==="vertical"}),l=t||"div";return Te.jsx(l,Object.assign({className:u,style:n,role:"separator","aria-orientation":e,ref:o},s,a))};var bV=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{className:n="",style:i,ref:a,htmlAttributes:o}=t,s=bV(t,["className","style","ref","htmlAttributes"]);return Te.jsx(r,Object.assign({strokeWidth:1.5,style:i,className:`${_V} ${n}`.trim(),"aria-hidden":"true"},s,o,{ref:a}))};return ao.memo(e)}const wV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M13.0312 13.5625C12.6824 13.5625 12.337 13.4938 12.0147 13.3603C11.6925 13.2268 11.3997 13.0312 11.153 12.7845C10.9063 12.5378 10.7107 12.245 10.5772 11.9228C10.4437 11.6005 10.375 11.2551 10.375 10.9062C10.375 10.5574 10.4437 10.212 10.5772 9.88975C10.7107 9.56748 10.9063 9.27465 11.153 9.028C11.3997 8.78134 11.6925 8.58568 12.0147 8.45219C12.337 8.31871 12.6824 8.25 13.0312 8.25C13.3801 8.25 13.7255 8.31871 14.0478 8.45219C14.37 8.58568 14.6628 8.78134 14.9095 9.028C15.1562 9.27465 15.3518 9.56748 15.4853 9.88975C15.6188 10.212 15.6875 10.5574 15.6875 10.9062C15.6875 11.2551 15.6188 11.6005 15.4853 11.9228C15.3518 12.245 15.1562 12.5378 14.9095 12.7845C14.6628 13.0312 14.37 13.2268 14.0478 13.3603C13.7255 13.4938 13.3801 13.5625 13.0312 13.5625ZM13.0312 13.5625V16.75M13.0312 16.75C13.4539 16.75 13.8593 16.9179 14.1582 17.2168C14.4571 17.5157 14.625 17.9211 14.625 18.3438C14.625 18.7664 14.4571 19.1718 14.1582 19.4707C13.8593 19.7696 13.4539 19.9375 13.0312 19.9375C12.6086 19.9375 12.2032 19.7696 11.9043 19.4707C11.6054 19.1718 11.4375 18.7664 11.4375 18.3438C11.4375 17.9211 11.6054 17.5157 11.9043 17.2168C12.2032 16.9179 12.6086 16.75 13.0312 16.75ZM14.9091 9.02926L17.2182 6.72009M15.3645 12.177L16.983 13.7955M11.1548 12.7827L6.71997 17.2176M10.5528 9.95081L7.4425 8.08435M16.75 5.59375C16.75 6.01644 16.9179 6.42182 17.2168 6.7207C17.5157 7.01959 17.9211 7.1875 18.3438 7.1875C18.7664 7.1875 19.1718 7.01959 19.4707 6.7207C19.7696 6.42182 19.9375 6.01644 19.9375 5.59375C19.9375 5.17106 19.7696 4.76568 19.4707 4.4668C19.1718 4.16791 18.7664 4 18.3438 4C17.9211 4 17.5157 4.16791 17.2168 4.4668C16.9179 4.76568 16.75 5.17106 16.75 5.59375ZM16.75 14.625C16.75 15.0477 16.9179 15.4531 17.2168 15.752C17.5157 16.0508 17.9211 16.2187 18.3438 16.2187C18.7664 16.2187 19.1718 16.0508 19.4707 15.752C19.7696 15.4531 19.9375 15.0477 19.9375 14.625C19.9375 14.2023 19.7696 13.7969 19.4707 13.498C19.1718 13.1992 18.7664 13.0312 18.3438 13.0312C17.9211 13.0312 17.5157 13.1992 17.2168 13.498C16.9179 13.7969 16.75 14.2023 16.75 14.625ZM4 18.3438C4 18.553 4.04122 18.7603 4.12132 18.9537C4.20141 19.147 4.31881 19.3227 4.4668 19.4707C4.61479 19.6187 4.79049 19.7361 4.98385 19.8162C5.17721 19.8963 5.38446 19.9375 5.59375 19.9375C5.80304 19.9375 6.01029 19.8963 6.20365 19.8162C6.39701 19.7361 6.57271 19.6187 6.7207 19.4707C6.86869 19.3227 6.98609 19.147 7.06618 18.9537C7.14628 18.7603 7.1875 18.553 7.1875 18.3438C7.1875 18.1345 7.14628 17.9272 7.06618 17.7338C6.98609 17.5405 6.86869 17.3648 6.7207 17.2168C6.57271 17.0688 6.39701 16.9514 6.20365 16.8713C6.01029 16.7912 5.80304 16.75 5.59375 16.75C5.38446 16.75 5.17721 16.7912 4.98385 16.8713C4.79049 16.9514 4.61479 17.0688 4.4668 17.2168C4.31881 17.3648 4.20141 17.5405 4.12132 17.7338C4.04122 17.9272 4 18.1345 4 18.3438ZM4.53125 7.1875C4.53125 7.61019 4.69916 8.01557 4.99805 8.31445C5.29693 8.61334 5.70231 8.78125 6.125 8.78125C6.54769 8.78125 6.95307 8.61334 7.25195 8.31445C7.55084 8.01557 7.71875 7.61019 7.71875 7.1875C7.71875 6.76481 7.55084 6.35943 7.25195 6.06055C6.95307 5.76166 6.54769 5.59375 6.125 5.59375C5.70231 5.59375 5.29693 5.76166 4.99805 6.06055C4.69916 6.35943 4.53125 6.76481 4.53125 7.1875Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),xV=qo(wV),EV=r=>Te.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:[Te.jsx("rect",{x:5.94,y:5.94,width:12.12,height:12.12,rx:1.5,stroke:"currentColor",strokeWidth:1.5}),Te.jsx("path",{d:"M3 9.75V5.25C3 4.01 4.01 3 5.25 3H9.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),Te.jsx("path",{d:"M14.25 3H18.75C19.99 3 21 4.01 21 5.25V9.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),Te.jsx("path",{d:"M3 14.25V18.75C3 19.99 4.01 21 5.25 21H9.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),Te.jsx("path",{d:"M21 14.25V18.75C21 19.99 19.99 21 18.75 21H14.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})]})),SV=qo(EV),OV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M11.9992 6.60001C11.5218 6.60001 11.064 6.41036 10.7264 6.0728C10.3889 5.73523 10.1992 5.27739 10.1992 4.8C10.1992 4.32261 10.3889 3.86477 10.7264 3.52721C11.064 3.18964 11.5218 3 11.9992 3C12.4766 3 12.9344 3.18964 13.272 3.52721C13.6096 3.86477 13.7992 4.32261 13.7992 4.8C13.7992 5.27739 13.6096 5.73523 13.272 6.0728C12.9344 6.41036 12.4766 6.60001 11.9992 6.60001ZM11.9992 6.60001V17.4M11.9992 17.4C12.4766 17.4 12.9344 17.5897 13.272 17.9272C13.6096 18.2648 13.7992 18.7226 13.7992 19.2C13.7992 19.6774 13.6096 20.1353 13.272 20.4728C12.9344 20.8104 12.4766 21 11.9992 21C11.5218 21 11.064 20.8104 10.7264 20.4728C10.3889 20.1353 10.1992 19.6774 10.1992 19.2C10.1992 18.7226 10.3889 18.2648 10.7264 17.9272C11.064 17.5897 11.5218 17.4 11.9992 17.4ZM5.39844 17.4C5.39844 16.1269 5.90415 14.906 6.80433 14.0059C7.7045 13.1057 8.9254 12.6 10.1984 12.6H13.7984C15.0715 12.6 16.2924 13.1057 17.1926 14.0059C18.0927 14.906 18.5985 16.1269 18.5985 17.4M3.59961 19.2C3.59961 19.6774 3.78925 20.1353 4.12682 20.4728C4.46438 20.8104 4.92222 21 5.39961 21C5.877 21 6.33484 20.8104 6.67241 20.4728C7.00997 20.1353 7.19961 19.6774 7.19961 19.2C7.19961 18.7226 7.00997 18.2648 6.67241 17.9272C6.33484 17.5897 5.877 17.4 5.39961 17.4C4.92222 17.4 4.46438 17.5897 4.12682 17.9272C3.78925 18.2648 3.59961 18.7226 3.59961 19.2ZM16.8008 19.2C16.8008 19.6774 16.9904 20.1353 17.328 20.4728C17.6656 20.8104 18.1234 21 18.6008 21C19.0782 21 19.536 20.8104 19.8736 20.4728C20.2111 20.1353 20.4008 19.6774 20.4008 19.2C20.4008 18.7226 20.2111 18.2648 19.8736 17.9272C19.536 17.5897 19.0782 17.4 18.6008 17.4C18.1234 17.4 17.6656 17.5897 17.328 17.9272C16.9904 18.2648 16.8008 18.7226 16.8008 19.2Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),TV=qo(OV),CV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M9.95398 16.3762C11.4106 18.0304 12.3812 19.1337 12.3768 21.2003M7.8431 20.2339C10.0323 20.2339 10.5789 18.6865 10.5789 17.912C10.5789 17.1405 10.0309 15.593 7.8431 15.593C5.65388 15.593 5.1073 17.1405 5.1073 17.9135C5.1073 18.6865 5.65532 20.2339 7.8431 20.2339ZM11.9941 16.0464C4.49482 16.0464 2.62 11.6305 2.62 9.4225C2.62 7.21598 4.49482 2.80005 11.9941 2.80005C19.4934 2.80005 21.3682 7.21598 21.3682 9.4225C21.3682 11.6305 19.4934 16.0464 11.9941 16.0464Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),V9=qo(CV),AV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M14.0601 5.25V18.75M20.4351 18C20.4351 18.45 20.1351 18.75 19.6851 18.75H4.31006C3.86006 18.75 3.56006 18.45 3.56006 18V6C3.56006 5.55 3.86006 5.25 4.31006 5.25H19.6851C20.1351 5.25 20.4351 5.55 20.4351 6V18Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),RV=qo(AV),PV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M16.3229 22.0811L11.9385 14.4876M11.9385 14.4876L8.6037 19.5387L5.09035 2.62536L17.9807 14.1249L11.9385 14.4876Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),l2=qo(PV),MV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M20.9998 19.0001C20.9998 20.1046 20.1046 20.9998 19.0001 20.9998M3 4.99969C3 3.8953 3.8953 3 4.99969 3M19.0001 3C20.1046 3 20.9998 3.8953 20.9998 4.99969M3 19.0001C3 20.1046 3.8953 20.9998 4.99969 20.9998M20.9972 10.0067V14.0061M3 14.0061V10.0067M9.99854 3H13.9979M9.99854 20.9972H13.9979",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),H9=qo(MV);function DV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const kV=me.forwardRef(DV),IV=qo(kV);function NV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const LV=me.forwardRef(NV),jV=qo(LV);function BV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const FV=me.forwardRef(BV),W9=qo(FV);function UV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const zV=me.forwardRef(UV),qV=qo(zV);function GV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const VV=me.forwardRef(GV),Y9=qo(VV);function HV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const WV=me.forwardRef(HV),YV=qo(WV);function XV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const $V=me.forwardRef(XV),KV=qo($V);function ZV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const QV=me.forwardRef(ZV),JV=qo(QV);function eH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const tH=me.forwardRef(eH),rH=qo(tH);function nH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const iH=me.forwardRef(nH),dk=qo(iH);function aH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))}const oH=me.forwardRef(aH),sH=qo(oH);function uH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const lH=me.forwardRef(uH),X9=qo(lH);function cH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const fH=me.forwardRef(cH),dH=qo(fH);var hH=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{const{as:e,className:t="",children:n,variant:i,htmlAttributes:a,ref:o}=r,s=hH(r,["as","className","children","variant","htmlAttributes","ref"]),u=Vn(`n-${i}`,t),l=e??"span";return Te.jsx(l,Object.assign({className:u,ref:o},s,a,{children:n}))};var vH=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{as:e,size:t="small",className:n,htmlAttributes:i,ref:a}=r,o=vH(r,["as","size","className","htmlAttributes","ref"]);const s=e||"div",u=Vn("ndl-spin-wrapper",n,{"ndl-large":t==="large","ndl-medium":t==="medium","ndl-small":t==="small"});return Te.jsx(s,Object.assign({className:u,role:"status","aria-label":"Loading content","aria-live":"polite",ref:a},o,i,{children:Te.jsx("div",{className:"ndl-spin"})}))};function c2(){return typeof window<"u"}function Fp(r){return O5(r)?(r.nodeName||"").toLowerCase():"#document"}function Ul(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Sh(r){var e;return(e=(O5(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function O5(r){return c2()?r instanceof Node||r instanceof Ul(r).Node:!1}function da(r){return c2()?r instanceof Element||r instanceof Ul(r).Element:!1}function bo(r){return c2()?r instanceof HTMLElement||r instanceof Ul(r).HTMLElement:!1}function vx(r){return!c2()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Ul(r).ShadowRoot}const pH=new Set(["inline","contents"]);function B1(r){const{overflow:e,overflowX:t,overflowY:n,display:i}=Ff(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!pH.has(i)}const gH=new Set(["table","td","th"]);function yH(r){return gH.has(Fp(r))}const mH=[":popover-open",":modal"];function f2(r){return mH.some(e=>{try{return r.matches(e)}catch{return!1}})}const bH=["transform","translate","scale","rotate","perspective"],_H=["transform","translate","scale","rotate","perspective","filter"],wH=["paint","layout","strict","content"];function T5(r){const e=d2(),t=da(r)?Ff(r):r;return bH.some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||_H.some(n=>(t.willChange||"").includes(n))||wH.some(n=>(t.contain||"").includes(n))}function xH(r){let e=hv(r);for(;bo(e)&&!cv(e);){if(T5(e))return e;if(f2(e))return null;e=hv(e)}return null}function d2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const EH=new Set(["html","body","#document"]);function cv(r){return EH.has(Fp(r))}function Ff(r){return Ul(r).getComputedStyle(r)}function h2(r){return da(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function hv(r){if(Fp(r)==="html")return r;const e=r.assignedSlot||r.parentNode||vx(r)&&r.host||Sh(r);return vx(e)?e.host:e}function $9(r){const e=hv(r);return cv(e)?r.ownerDocument?r.ownerDocument.body:r.body:bo(e)&&B1(e)?e:$9(e)}function wp(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const i=$9(r),a=i===((n=r.ownerDocument)==null?void 0:n.body),o=Ul(i);if(a){const s=rM(o);return e.concat(o,o.visualViewport||[],B1(i)?i:[],s&&t?wp(s):[])}return e.concat(i,wp(i,[],t))}function rM(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}const px=Math.min,Bg=Math.max,gx=Math.round,hm=Math.floor,_h=r=>({x:r,y:r}),SH={left:"right",right:"left",bottom:"top",top:"bottom"},OH={start:"end",end:"start"};function hk(r,e,t){return Bg(r,px(e,t))}function v2(r,e){return typeof r=="function"?r(e):r}function qg(r){return r.split("-")[0]}function p2(r){return r.split("-")[1]}function K9(r){return r==="x"?"y":"x"}function Z9(r){return r==="y"?"height":"width"}const TH=new Set(["top","bottom"]);function dp(r){return TH.has(qg(r))?"y":"x"}function Q9(r){return K9(dp(r))}function CH(r,e,t){t===void 0&&(t=!1);const n=p2(r),i=Q9(r),a=Z9(i);let o=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=yx(o)),[o,yx(o)]}function AH(r){const e=yx(r);return[nM(r),e,nM(e)]}function nM(r){return r.replace(/start|end/g,e=>OH[e])}const vk=["left","right"],pk=["right","left"],RH=["top","bottom"],PH=["bottom","top"];function MH(r,e,t){switch(r){case"top":case"bottom":return t?e?pk:vk:e?vk:pk;case"left":case"right":return e?RH:PH;default:return[]}}function DH(r,e,t,n){const i=p2(r);let a=MH(qg(r),t==="start",n);return i&&(a=a.map(o=>o+"-"+i),e&&(a=a.concat(a.map(nM)))),a}function yx(r){return r.replace(/left|right|bottom|top/g,e=>SH[e])}function kH(r){return{top:0,right:0,bottom:0,left:0,...r}}function IH(r){return typeof r!="number"?kH(r):{top:r,right:r,bottom:r,left:r}}function mx(r){const{x:e,y:t,width:n,height:i}=r;return{width:n,height:i,top:t,left:e,right:e+n,bottom:t+i,x:e,y:t}}/*! +*/var dk;function gV(){return dk||(dk=1,(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var a="",o=0;oconsole.warn(`[🪡 Needle]: ${r}`);var mV=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{orientation:e="horizontal",as:t,style:n,className:i,htmlAttributes:a,ref:o}=r,s=mV(r,["orientation","as","style","className","htmlAttributes","ref"]);const u=Vn("ndl-divider",i,{"ndl-divider-horizontal":e==="horizontal","ndl-divider-vertical":e==="vertical"}),l=t||"div";return Te.jsx(l,Object.assign({className:u,style:n,role:"separator","aria-orientation":e,ref:o},s,a))};var bV=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{className:n="",style:i,ref:a,htmlAttributes:o}=t,s=bV(t,["className","style","ref","htmlAttributes"]);return Te.jsx(r,Object.assign({strokeWidth:1.5,style:i,className:`${_V} ${n}`.trim(),"aria-hidden":"true"},s,o,{ref:a}))};return oo.memo(e)}const wV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M13.0312 13.5625C12.6824 13.5625 12.337 13.4938 12.0147 13.3603C11.6925 13.2268 11.3997 13.0312 11.153 12.7845C10.9063 12.5378 10.7107 12.245 10.5772 11.9228C10.4437 11.6005 10.375 11.2551 10.375 10.9062C10.375 10.5574 10.4437 10.212 10.5772 9.88975C10.7107 9.56748 10.9063 9.27465 11.153 9.028C11.3997 8.78134 11.6925 8.58568 12.0147 8.45219C12.337 8.31871 12.6824 8.25 13.0312 8.25C13.3801 8.25 13.7255 8.31871 14.0478 8.45219C14.37 8.58568 14.6628 8.78134 14.9095 9.028C15.1562 9.27465 15.3518 9.56748 15.4853 9.88975C15.6188 10.212 15.6875 10.5574 15.6875 10.9062C15.6875 11.2551 15.6188 11.6005 15.4853 11.9228C15.3518 12.245 15.1562 12.5378 14.9095 12.7845C14.6628 13.0312 14.37 13.2268 14.0478 13.3603C13.7255 13.4938 13.3801 13.5625 13.0312 13.5625ZM13.0312 13.5625V16.75M13.0312 16.75C13.4539 16.75 13.8593 16.9179 14.1582 17.2168C14.4571 17.5157 14.625 17.9211 14.625 18.3438C14.625 18.7664 14.4571 19.1718 14.1582 19.4707C13.8593 19.7696 13.4539 19.9375 13.0312 19.9375C12.6086 19.9375 12.2032 19.7696 11.9043 19.4707C11.6054 19.1718 11.4375 18.7664 11.4375 18.3438C11.4375 17.9211 11.6054 17.5157 11.9043 17.2168C12.2032 16.9179 12.6086 16.75 13.0312 16.75ZM14.9091 9.02926L17.2182 6.72009M15.3645 12.177L16.983 13.7955M11.1548 12.7827L6.71997 17.2176M10.5528 9.95081L7.4425 8.08435M16.75 5.59375C16.75 6.01644 16.9179 6.42182 17.2168 6.7207C17.5157 7.01959 17.9211 7.1875 18.3438 7.1875C18.7664 7.1875 19.1718 7.01959 19.4707 6.7207C19.7696 6.42182 19.9375 6.01644 19.9375 5.59375C19.9375 5.17106 19.7696 4.76568 19.4707 4.4668C19.1718 4.16791 18.7664 4 18.3438 4C17.9211 4 17.5157 4.16791 17.2168 4.4668C16.9179 4.76568 16.75 5.17106 16.75 5.59375ZM16.75 14.625C16.75 15.0477 16.9179 15.4531 17.2168 15.752C17.5157 16.0508 17.9211 16.2187 18.3438 16.2187C18.7664 16.2187 19.1718 16.0508 19.4707 15.752C19.7696 15.4531 19.9375 15.0477 19.9375 14.625C19.9375 14.2023 19.7696 13.7969 19.4707 13.498C19.1718 13.1992 18.7664 13.0312 18.3438 13.0312C17.9211 13.0312 17.5157 13.1992 17.2168 13.498C16.9179 13.7969 16.75 14.2023 16.75 14.625ZM4 18.3438C4 18.553 4.04122 18.7603 4.12132 18.9537C4.20141 19.147 4.31881 19.3227 4.4668 19.4707C4.61479 19.6187 4.79049 19.7361 4.98385 19.8162C5.17721 19.8963 5.38446 19.9375 5.59375 19.9375C5.80304 19.9375 6.01029 19.8963 6.20365 19.8162C6.39701 19.7361 6.57271 19.6187 6.7207 19.4707C6.86869 19.3227 6.98609 19.147 7.06618 18.9537C7.14628 18.7603 7.1875 18.553 7.1875 18.3438C7.1875 18.1345 7.14628 17.9272 7.06618 17.7338C6.98609 17.5405 6.86869 17.3648 6.7207 17.2168C6.57271 17.0688 6.39701 16.9514 6.20365 16.8713C6.01029 16.7912 5.80304 16.75 5.59375 16.75C5.38446 16.75 5.17721 16.7912 4.98385 16.8713C4.79049 16.9514 4.61479 17.0688 4.4668 17.2168C4.31881 17.3648 4.20141 17.5405 4.12132 17.7338C4.04122 17.9272 4 18.1345 4 18.3438ZM4.53125 7.1875C4.53125 7.61019 4.69916 8.01557 4.99805 8.31445C5.29693 8.61334 5.70231 8.78125 6.125 8.78125C6.54769 8.78125 6.95307 8.61334 7.25195 8.31445C7.55084 8.01557 7.71875 7.61019 7.71875 7.1875C7.71875 6.76481 7.55084 6.35943 7.25195 6.06055C6.95307 5.76166 6.54769 5.59375 6.125 5.59375C5.70231 5.59375 5.29693 5.76166 4.99805 6.06055C4.69916 6.35943 4.53125 6.76481 4.53125 7.1875Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),xV=qo(wV),EV=r=>Te.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:[Te.jsx("rect",{x:5.94,y:5.94,width:12.12,height:12.12,rx:1.5,stroke:"currentColor",strokeWidth:1.5}),Te.jsx("path",{d:"M3 9.75V5.25C3 4.01 4.01 3 5.25 3H9.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),Te.jsx("path",{d:"M14.25 3H18.75C19.99 3 21 4.01 21 5.25V9.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),Te.jsx("path",{d:"M3 14.25V18.75C3 19.99 4.01 21 5.25 21H9.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),Te.jsx("path",{d:"M21 14.25V18.75C21 19.99 19.99 21 18.75 21H14.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})]})),SV=qo(EV),OV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M11.9992 6.60001C11.5218 6.60001 11.064 6.41036 10.7264 6.0728C10.3889 5.73523 10.1992 5.27739 10.1992 4.8C10.1992 4.32261 10.3889 3.86477 10.7264 3.52721C11.064 3.18964 11.5218 3 11.9992 3C12.4766 3 12.9344 3.18964 13.272 3.52721C13.6096 3.86477 13.7992 4.32261 13.7992 4.8C13.7992 5.27739 13.6096 5.73523 13.272 6.0728C12.9344 6.41036 12.4766 6.60001 11.9992 6.60001ZM11.9992 6.60001V17.4M11.9992 17.4C12.4766 17.4 12.9344 17.5897 13.272 17.9272C13.6096 18.2648 13.7992 18.7226 13.7992 19.2C13.7992 19.6774 13.6096 20.1353 13.272 20.4728C12.9344 20.8104 12.4766 21 11.9992 21C11.5218 21 11.064 20.8104 10.7264 20.4728C10.3889 20.1353 10.1992 19.6774 10.1992 19.2C10.1992 18.7226 10.3889 18.2648 10.7264 17.9272C11.064 17.5897 11.5218 17.4 11.9992 17.4ZM5.39844 17.4C5.39844 16.1269 5.90415 14.906 6.80433 14.0059C7.7045 13.1057 8.9254 12.6 10.1984 12.6H13.7984C15.0715 12.6 16.2924 13.1057 17.1926 14.0059C18.0927 14.906 18.5985 16.1269 18.5985 17.4M3.59961 19.2C3.59961 19.6774 3.78925 20.1353 4.12682 20.4728C4.46438 20.8104 4.92222 21 5.39961 21C5.877 21 6.33484 20.8104 6.67241 20.4728C7.00997 20.1353 7.19961 19.6774 7.19961 19.2C7.19961 18.7226 7.00997 18.2648 6.67241 17.9272C6.33484 17.5897 5.877 17.4 5.39961 17.4C4.92222 17.4 4.46438 17.5897 4.12682 17.9272C3.78925 18.2648 3.59961 18.7226 3.59961 19.2ZM16.8008 19.2C16.8008 19.6774 16.9904 20.1353 17.328 20.4728C17.6656 20.8104 18.1234 21 18.6008 21C19.0782 21 19.536 20.8104 19.8736 20.4728C20.2111 20.1353 20.4008 19.6774 20.4008 19.2C20.4008 18.7226 20.2111 18.2648 19.8736 17.9272C19.536 17.5897 19.0782 17.4 18.6008 17.4C18.1234 17.4 17.6656 17.5897 17.328 17.9272C16.9904 18.2648 16.8008 18.7226 16.8008 19.2Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),TV=qo(OV),CV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M9.95398 16.3762C11.4106 18.0304 12.3812 19.1337 12.3768 21.2003M7.8431 20.2339C10.0323 20.2339 10.5789 18.6865 10.5789 17.912C10.5789 17.1405 10.0309 15.593 7.8431 15.593C5.65388 15.593 5.1073 17.1405 5.1073 17.9135C5.1073 18.6865 5.65532 20.2339 7.8431 20.2339ZM11.9941 16.0464C4.49482 16.0464 2.62 11.6305 2.62 9.4225C2.62 7.21598 4.49482 2.80005 11.9941 2.80005C19.4934 2.80005 21.3682 7.21598 21.3682 9.4225C21.3682 11.6305 19.4934 16.0464 11.9941 16.0464Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),H9=qo(CV),AV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M14.0601 5.25V18.75M20.4351 18C20.4351 18.45 20.1351 18.75 19.6851 18.75H4.31006C3.86006 18.75 3.56006 18.45 3.56006 18V6C3.56006 5.55 3.86006 5.25 4.31006 5.25H19.6851C20.1351 5.25 20.4351 5.55 20.4351 6V18Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),RV=qo(AV),PV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M16.3229 22.0811L11.9385 14.4876M11.9385 14.4876L8.6037 19.5387L5.09035 2.62536L17.9807 14.1249L11.9385 14.4876Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),l2=qo(PV),MV=r=>Te.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:Te.jsx("path",{d:"M20.9998 19.0001C20.9998 20.1046 20.1046 20.9998 19.0001 20.9998M3 4.99969C3 3.8953 3.8953 3 4.99969 3M19.0001 3C20.1046 3 20.9998 3.8953 20.9998 4.99969M3 19.0001C3 20.1046 3.8953 20.9998 4.99969 20.9998M20.9972 10.0067V14.0061M3 14.0061V10.0067M9.99854 3H13.9979M9.99854 20.9972H13.9979",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})),W9=qo(MV);function DV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const kV=me.forwardRef(DV),IV=qo(kV);function NV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const LV=me.forwardRef(NV),jV=qo(LV);function BV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const FV=me.forwardRef(BV),Y9=qo(FV);function UV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const zV=me.forwardRef(UV),qV=qo(zV);function GV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const VV=me.forwardRef(GV),X9=qo(VV);function HV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const WV=me.forwardRef(HV),YV=qo(WV);function XV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const $V=me.forwardRef(XV),KV=qo($V);function ZV({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const QV=me.forwardRef(ZV),JV=qo(QV);function eH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const tH=me.forwardRef(eH),rH=qo(tH);function nH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const iH=me.forwardRef(nH),hk=qo(iH);function aH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))}const oH=me.forwardRef(aH),sH=qo(oH);function uH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const lH=me.forwardRef(uH),$9=qo(lH);function cH({title:r,titleId:e,...t},n){return me.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},t),r?me.createElement("title",{id:e},r):null,me.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const fH=me.forwardRef(cH),dH=qo(fH);var hH=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{const{as:e,className:t="",children:n,variant:i,htmlAttributes:a,ref:o}=r,s=hH(r,["as","className","children","variant","htmlAttributes","ref"]),u=Vn(`n-${i}`,t),l=e??"span";return Te.jsx(l,Object.assign({className:u,ref:o},s,a,{children:n}))};var vH=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{as:e,size:t="small",className:n,htmlAttributes:i,ref:a}=r,o=vH(r,["as","size","className","htmlAttributes","ref"]);const s=e||"div",u=Vn("ndl-spin-wrapper",n,{"ndl-large":t==="large","ndl-medium":t==="medium","ndl-small":t==="small"});return Te.jsx(s,Object.assign({className:u,role:"status","aria-label":"Loading content","aria-live":"polite",ref:a},o,i,{children:Te.jsx("div",{className:"ndl-spin"})}))};function c2(){return typeof window<"u"}function Fp(r){return T5(r)?(r.nodeName||"").toLowerCase():"#document"}function Ul(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Sh(r){var e;return(e=(T5(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function T5(r){return c2()?r instanceof Node||r instanceof Ul(r).Node:!1}function da(r){return c2()?r instanceof Element||r instanceof Ul(r).Element:!1}function _o(r){return c2()?r instanceof HTMLElement||r instanceof Ul(r).HTMLElement:!1}function vx(r){return!c2()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Ul(r).ShadowRoot}const pH=new Set(["inline","contents"]);function B1(r){const{overflow:e,overflowX:t,overflowY:n,display:i}=Ff(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!pH.has(i)}const gH=new Set(["table","td","th"]);function yH(r){return gH.has(Fp(r))}const mH=[":popover-open",":modal"];function f2(r){return mH.some(e=>{try{return r.matches(e)}catch{return!1}})}const bH=["transform","translate","scale","rotate","perspective"],_H=["transform","translate","scale","rotate","perspective","filter"],wH=["paint","layout","strict","content"];function C5(r){const e=d2(),t=da(r)?Ff(r):r;return bH.some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||_H.some(n=>(t.willChange||"").includes(n))||wH.some(n=>(t.contain||"").includes(n))}function xH(r){let e=hv(r);for(;_o(e)&&!cv(e);){if(C5(e))return e;if(f2(e))return null;e=hv(e)}return null}function d2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const EH=new Set(["html","body","#document"]);function cv(r){return EH.has(Fp(r))}function Ff(r){return Ul(r).getComputedStyle(r)}function h2(r){return da(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function hv(r){if(Fp(r)==="html")return r;const e=r.assignedSlot||r.parentNode||vx(r)&&r.host||Sh(r);return vx(e)?e.host:e}function K9(r){const e=hv(r);return cv(e)?r.ownerDocument?r.ownerDocument.body:r.body:_o(e)&&B1(e)?e:K9(e)}function wp(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const i=K9(r),a=i===((n=r.ownerDocument)==null?void 0:n.body),o=Ul(i);if(a){const s=rM(o);return e.concat(o,o.visualViewport||[],B1(i)?i:[],s&&t?wp(s):[])}return e.concat(i,wp(i,[],t))}function rM(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}const px=Math.min,Bg=Math.max,gx=Math.round,hm=Math.floor,_h=r=>({x:r,y:r}),SH={left:"right",right:"left",bottom:"top",top:"bottom"},OH={start:"end",end:"start"};function vk(r,e,t){return Bg(r,px(e,t))}function v2(r,e){return typeof r=="function"?r(e):r}function qg(r){return r.split("-")[0]}function p2(r){return r.split("-")[1]}function Z9(r){return r==="x"?"y":"x"}function Q9(r){return r==="y"?"height":"width"}const TH=new Set(["top","bottom"]);function dp(r){return TH.has(qg(r))?"y":"x"}function J9(r){return Z9(dp(r))}function CH(r,e,t){t===void 0&&(t=!1);const n=p2(r),i=J9(r),a=Q9(i);let o=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=yx(o)),[o,yx(o)]}function AH(r){const e=yx(r);return[nM(r),e,nM(e)]}function nM(r){return r.replace(/start|end/g,e=>OH[e])}const pk=["left","right"],gk=["right","left"],RH=["top","bottom"],PH=["bottom","top"];function MH(r,e,t){switch(r){case"top":case"bottom":return t?e?gk:pk:e?pk:gk;case"left":case"right":return e?RH:PH;default:return[]}}function DH(r,e,t,n){const i=p2(r);let a=MH(qg(r),t==="start",n);return i&&(a=a.map(o=>o+"-"+i),e&&(a=a.concat(a.map(nM)))),a}function yx(r){return r.replace(/left|right|bottom|top/g,e=>SH[e])}function kH(r){return{top:0,right:0,bottom:0,left:0,...r}}function IH(r){return typeof r!="number"?kH(r):{top:r,right:r,bottom:r,left:r}}function mx(r){const{x:e,y:t,width:n,height:i}=r;return{width:n,height:i,top:t,left:e,right:e+n,bottom:t+i,x:e,y:t}}/*! * tabbable 6.4.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var NH=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],bx=NH.join(","),J9=typeof Element>"u",Im=J9?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_x=!J9&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r==null?void 0:r.ownerDocument},wx=function(e,t){var n;t===void 0&&(t=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),a=i===""||i==="true",o=a||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):wx(e.parentNode));return o},LH=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},e7=function(e,t,n){if(wx(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(bx));return t&&Im.call(e,bx)&&i.unshift(e),i=i.filter(n),i},xx=function(e,t,n){for(var i=[],a=Array.from(e);a.length;){var o=a.shift();if(!wx(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),u=s.length?s:o.children,l=xx(u,!0,n);n.flatten?i.push.apply(i,l):i.push({scopeParent:o,candidates:l})}else{var c=Im.call(o,bx);c&&n.filter(o)&&(t||!e.includes(o))&&i.push(o);var f=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),d=!wx(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(f&&d){var h=xx(f===!0?o.children:f.children,!0,n);n.flatten?i.push.apply(i,h):i.push({scopeParent:o,candidates:h})}else a.unshift.apply(a,o.children)}}return i},t7=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},r7=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||LH(e))&&!t7(e)?0:e.tabIndex},jH=function(e,t){var n=r7(e);return n<0&&t&&!t7(e)?0:n},BH=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},n7=function(e){return e.tagName==="INPUT"},FH=function(e){return n7(e)&&e.type==="hidden"},UH=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},zH=function(e,t){for(var n=0;nsummary:first-of-type"),s=o?e.parentElement:e;if(Im.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var u=e;e;){var l=e.parentElement,c=_x(e);if(l&&!l.shadowRoot&&i(l)===!0)return gk(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=u}if(HH(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return gk(e);return!1},YH=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},i7=function(e){var t=[],n=[];return e.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,u=jH(s,o),l=o?i7(i.candidates):s;u===0?o?t.push.apply(t,l):t.push(s):n.push({documentOrder:a,tabIndex:u,item:i,isScope:o,content:l})}),n.sort(BH).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(t)},g2=function(e,t){t=t||{};var n;return t.getShadowRoot?n=xx([e],t.includeContainer,{filter:aM.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:XH}):n=e7(e,t.includeContainer,aM.bind(null,t)),i7(n)},$H=function(e,t){t=t||{};var n;return t.getShadowRoot?n=xx([e],t.includeContainer,{filter:iM.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=e7(e,t.includeContainer,iM.bind(null,t)),n},a7=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Im.call(e,bx)===!1?!1:aM(t,e)};function o7(){const r=navigator.userAgentData;return r!=null&&r.platform?r.platform:navigator.platform}function s7(){const r=navigator.userAgentData;return r&&Array.isArray(r.brands)?r.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function u7(){return/apple/i.test(navigator.vendor)}function oM(){const r=/android/i;return r.test(o7())||r.test(s7())}function KH(){return o7().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function l7(){return s7().includes("jsdom/")}const yk="data-floating-ui-focusable",ZH="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",JE="ArrowLeft",eS="ArrowRight",QH="ArrowUp",JH="ArrowDown";function yh(r){let e=r.activeElement;for(;((t=e)==null||(t=t.shadowRoot)==null?void 0:t.activeElement)!=null;){var t;e=e.shadowRoot.activeElement}return e}function Ns(r,e){if(!r||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(r.contains(e))return!0;if(t&&vx(t)){let n=e;for(;n;){if(r===n)return!0;n=n.parentNode||n.host}}return!1}function mh(r){return"composedPath"in r?r.composedPath()[0]:r.target}function tS(r,e){if(e==null)return!1;if("composedPath"in r)return r.composedPath().includes(e);const t=r;return t.target!=null&&e.contains(t.target)}function eW(r){return r.matches("html,body")}function su(r){return(r==null?void 0:r.ownerDocument)||document}function C5(r){return bo(r)&&r.matches(ZH)}function sM(r){return r?r.getAttribute("role")==="combobox"&&C5(r):!1}function tW(r){if(!r||l7())return!0;try{return r.matches(":focus-visible")}catch{return!0}}function Ex(r){return r?r.hasAttribute(yk)?r:r.querySelector("["+yk+"]")||r:null}function Fg(r,e,t){return t===void 0&&(t=!0),r.filter(i=>{var a;return i.parentId===e&&(!t||((a=i.context)==null?void 0:a.open))}).flatMap(i=>[i,...Fg(r,i.id,t)])}function rW(r,e){let t,n=-1;function i(a,o){o>n&&(t=a,n=o),Fg(r,a).forEach(u=>{i(u.id,o+1)})}return i(e,0),r.find(a=>a.id===t)}function mk(r,e){var t;let n=[],i=(t=r.find(a=>a.id===e))==null?void 0:t.parentId;for(;i;){const a=r.find(o=>o.id===i);i=a==null?void 0:a.parentId,a&&(n=n.concat(a))}return n}function ou(r){r.preventDefault(),r.stopPropagation()}function nW(r){return"nativeEvent"in r}function c7(r){return r.mozInputSource===0&&r.isTrusted?!0:oM()&&r.pointerType?r.type==="click"&&r.buttons===1:r.detail===0&&!r.pointerType}function f7(r){return l7()?!1:!oM()&&r.width===0&&r.height===0||oM()&&r.width===1&&r.height===1&&r.pressure===0&&r.detail===0&&r.pointerType==="mouse"||r.width<1&&r.height<1&&r.pressure===0&&r.detail===0&&r.pointerType==="touch"}function Nm(r,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(r)}var iW=typeof document<"u",aW=function(){},Di=iW?me.useLayoutEffect:aW;const oW={...z9};function Ls(r){const e=me.useRef(r);return Di(()=>{e.current=r}),e}const sW=oW.useInsertionEffect,uW=sW||(r=>r());function Wa(r){const e=me.useRef(()=>{});return uW(()=>{e.current=r}),me.useCallback(function(){for(var t=arguments.length,n=new Array(t),i=0;i=r.current.length}function rS(r,e){return Yu(r,{disabledIndices:e})}function bk(r,e){return Yu(r,{decrement:!0,startingIndex:r.current.length,disabledIndices:e})}function Yu(r,e){let{startingIndex:t=-1,decrement:n=!1,disabledIndices:i,amount:a=1}=e===void 0?{}:e,o=t;do o+=n?-a:a;while(o>=0&&o<=r.current.length-1&&Ww(r,o,i));return o}function lW(r,e){let{event:t,orientation:n,loop:i,rtl:a,cols:o,disabledIndices:s,minIndex:u,maxIndex:l,prevIndex:c,stopEvent:f=!1}=e,d=c;if(t.key===QH){if(f&&ou(t),c===-1)d=l;else if(d=Yu(r,{startingIndex:d,amount:o,decrement:!0,disabledIndices:s}),i&&(c-oh?g:g-o}Rb(r,d)&&(d=c)}if(t.key===JH&&(f&&ou(t),c===-1?d=u:(d=Yu(r,{startingIndex:c,amount:o,disabledIndices:s}),i&&c+o>l&&(d=Yu(r,{startingIndex:c%o-o,amount:o,disabledIndices:s}))),Rb(r,d)&&(d=c)),n==="both"){const h=hm(c/o);t.key===(a?JE:eS)&&(f&&ou(t),c%o!==o-1?(d=Yu(r,{startingIndex:c,disabledIndices:s}),i&&rw(d,o,h)&&(d=Yu(r,{startingIndex:c-c%o-1,disabledIndices:s}))):i&&(d=Yu(r,{startingIndex:c-c%o-1,disabledIndices:s})),rw(d,o,h)&&(d=c)),t.key===(a?eS:JE)&&(f&&ou(t),c%o!==0?(d=Yu(r,{startingIndex:c,decrement:!0,disabledIndices:s}),i&&rw(d,o,h)&&(d=Yu(r,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:s}))):i&&(d=Yu(r,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:s})),rw(d,o,h)&&(d=c));const p=hm(l/o)===h;Rb(r,d)&&(i&&p?d=t.key===(a?eS:JE)?l:Yu(r,{startingIndex:c-c%o-1,disabledIndices:s}):d=c)}return d}function cW(r,e,t){const n=[];let i=0;return r.forEach((a,o)=>{let{width:s,height:u}=a,l=!1;for(t&&(i=0);!l;){const c=[];for(let f=0;fn[f]==null)?(c.forEach(f=>{n[f]=o}),l=!0):i++}}),[...n]}function fW(r,e,t,n,i){if(r===-1)return-1;const a=t.indexOf(r),o=e[r];switch(i){case"tl":return a;case"tr":return o?a+o.width-1:a;case"bl":return o?a+(o.height-1)*n:a;case"br":return t.lastIndexOf(r)}}function dW(r,e){return e.flatMap((t,n)=>r.includes(t)?[n]:[])}function Ww(r,e,t){if(typeof t=="function")return t(e);if(t)return t.includes(e);const n=r.current[e];return n==null||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}const F1=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function d7(r,e){const t=g2(r,F1()),n=t.length;if(n===0)return;const i=yh(su(r)),a=t.indexOf(i),o=a===-1?e===1?0:n-1:a+e;return t[o]}function h7(r){return d7(su(r).body,1)||r}function v7(r){return d7(su(r).body,-1)||r}function Pb(r,e){const t=e||r.currentTarget,n=r.relatedTarget;return!n||!Ns(t,n)}function hW(r){g2(r,F1()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function _k(r){r.querySelectorAll("[data-tabindex]").forEach(t=>{const n=t.dataset.tabindex;delete t.dataset.tabindex,n?t.setAttribute("tabindex",n):t.removeAttribute("tabindex")})}var y2=q9();function wk(r,e,t){let{reference:n,floating:i}=r;const a=dp(e),o=Q9(e),s=Z9(o),u=qg(e),l=a==="y",c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(u){case"top":h={x:c,y:n.y-i.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(p2(e)){case"start":h[o]-=d*(t&&l?-1:1);break;case"end":h[o]+=d*(t&&l?-1:1);break}return h}async function vW(r,e){var t;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:u}=r,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=v2(e,r),p=IH(h),y=s[d?f==="floating"?"reference":"floating":f],b=mx(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(y)))==null||t?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),_=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,m=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),x=await(a.isElement==null?void 0:a.isElement(m))?await(a.getScale==null?void 0:a.getScale(m))||{x:1,y:1}:{x:1,y:1},E=mx(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:m,strategy:u}):_);return{top:(b.top-E.top+p.top)/x.y,bottom:(E.bottom-b.bottom+p.bottom)/x.y,left:(b.left-E.left+p.left)/x.x,right:(E.right-b.right+p.right)/x.x}}const pW=async(r,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=t,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:r,floating:e,strategy:i}),{x:c,y:f}=wk(l,n,u),d=n,h={},p=0;for(let y=0;yj<=0)){var k,L;const j=(((k=a.flip)==null?void 0:k.index)||0)+1,z=S[j];if(z&&(!(f==="alignment"?_!==dp(z):!1)||I.every(W=>dp(W.placement)===_?W.overflows[0]>0:!0)))return{data:{index:j,overflows:I},reset:{placement:z}};let H=(L=I.filter(q=>q.overflows[0]<=0).sort((q,W)=>q.overflows[1]-W.overflows[1])[0])==null?void 0:L.placement;if(!H)switch(h){case"bestFit":{var B;const q=(B=I.filter(W=>{if(O){const $=dp(W.placement);return $===_||$==="y"}return!0}).map(W=>[W.placement,W.overflows.filter($=>$>0).reduce(($,J)=>$+J,0)]).sort((W,$)=>W[1]-$[1])[0])==null?void 0:B[0];q&&(H=q);break}case"initialPlacement":H=s;break}if(i!==H)return{reset:{placement:H}}}return{}}}},yW=new Set(["left","top"]);async function mW(r,e){const{placement:t,platform:n,elements:i}=r,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=qg(t),s=p2(t),u=dp(t)==="y",l=yW.has(o)?-1:1,c=a&&u?-1:1,f=v2(e,r);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),u?{x:h*c,y:d*l}:{x:d*l,y:h*c}}const bW=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,n;const{x:i,y:a,placement:o,middlewareData:s}=e,u=await mW(e,r);return o===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:o}}}}},_W=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:t,y:n,placement:i,platform:a}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:u={fn:b=>{let{x:_,y:m}=b;return{x:_,y:m}}},...l}=v2(r,e),c={x:t,y:n},f=await a.detectOverflow(e,l),d=dp(qg(i)),h=K9(d);let p=c[h],g=c[d];if(o){const b=h==="y"?"top":"left",_=h==="y"?"bottom":"right",m=p+f[b],x=p-f[_];p=hk(m,p,x)}if(s){const b=d==="y"?"top":"left",_=d==="y"?"bottom":"right",m=g+f[b],x=g-f[_];g=hk(m,g,x)}const y=u.fn({...e,[h]:p,[d]:g});return{...y,data:{x:y.x-t,y:y.y-n,enabled:{[h]:o,[d]:s}}}}}};function p7(r){const e=Ff(r);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=bo(r),a=i?r.offsetWidth:t,o=i?r.offsetHeight:n,s=gx(t)!==a||gx(n)!==o;return s&&(t=a,n=o),{width:t,height:n,$:s}}function A5(r){return da(r)?r:r.contextElement}function bm(r){const e=A5(r);if(!bo(e))return _h(1);const t=e.getBoundingClientRect(),{width:n,height:i,$:a}=p7(e);let o=(a?gx(t.width):t.width)/n,s=(a?gx(t.height):t.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const wW=_h(0);function g7(r){const e=Ul(r);return!d2()||!e.visualViewport?wW:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xW(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Ul(r)?!1:e}function Gg(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=r.getBoundingClientRect(),a=A5(r);let o=_h(1);e&&(n?da(n)&&(o=bm(n)):o=bm(r));const s=xW(a,t,n)?g7(a):_h(0);let u=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a){const d=Ul(a),h=n&&da(n)?Ul(n):n;let p=d,g=rM(p);for(;g&&n&&h!==p;){const y=bm(g),b=g.getBoundingClientRect(),_=Ff(g),m=b.left+(g.clientLeft+parseFloat(_.paddingLeft))*y.x,x=b.top+(g.clientTop+parseFloat(_.paddingTop))*y.y;u*=y.x,l*=y.y,c*=y.x,f*=y.y,u+=m,l+=x,p=Ul(g),g=rM(p)}}return mx({width:c,height:f,x:u,y:l})}function m2(r,e){const t=h2(r).scrollLeft;return e?e.left+t:Gg(Sh(r)).left+t}function y7(r,e){const t=r.getBoundingClientRect(),n=t.left+e.scrollLeft-m2(r,t),i=t.top+e.scrollTop;return{x:n,y:i}}function EW(r){let{elements:e,rect:t,offsetParent:n,strategy:i}=r;const a=i==="fixed",o=Sh(n),s=e?f2(e.floating):!1;if(n===o||s&&a)return t;let u={scrollLeft:0,scrollTop:0},l=_h(1);const c=_h(0),f=bo(n);if((f||!f&&!a)&&((Fp(n)!=="body"||B1(o))&&(u=h2(n)),bo(n))){const h=Gg(n);l=bm(n),c.x=h.x+n.clientLeft,c.y=h.y+n.clientTop}const d=o&&!f&&!a?y7(o,u):_h(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-u.scrollLeft*l.x+c.x+d.x,y:t.y*l.y-u.scrollTop*l.y+c.y+d.y}}function SW(r){return Array.from(r.getClientRects())}function OW(r){const e=Sh(r),t=h2(r),n=r.ownerDocument.body,i=Bg(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Bg(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+m2(r);const s=-t.scrollTop;return Ff(n).direction==="rtl"&&(o+=Bg(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}const xk=25;function TW(r,e){const t=Ul(r),n=Sh(r),i=t.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=d2();(!c||c&&e==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}const l=m2(n);if(l<=0){const c=n.ownerDocument,f=c.body,d=getComputedStyle(f),h=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,p=Math.abs(n.clientWidth-f.clientWidth-h);p<=xk&&(a-=p)}else l<=xk&&(a+=l);return{width:a,height:o,x:s,y:u}}const CW=new Set(["absolute","fixed"]);function AW(r,e){const t=Gg(r,!0,e==="fixed"),n=t.top+r.clientTop,i=t.left+r.clientLeft,a=bo(r)?bm(r):_h(1),o=r.clientWidth*a.x,s=r.clientHeight*a.y,u=i*a.x,l=n*a.y;return{width:o,height:s,x:u,y:l}}function Ek(r,e,t){let n;if(e==="viewport")n=TW(r,t);else if(e==="document")n=OW(Sh(r));else if(da(e))n=AW(e,t);else{const i=g7(r);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return mx(n)}function m7(r,e){const t=hv(r);return t===e||!da(t)||cv(t)?!1:Ff(t).position==="fixed"||m7(t,e)}function RW(r,e){const t=e.get(r);if(t)return t;let n=wp(r,[],!1).filter(s=>da(s)&&Fp(s)!=="body"),i=null;const a=Ff(r).position==="fixed";let o=a?hv(r):r;for(;da(o)&&!cv(o);){const s=Ff(o),u=T5(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&CW.has(i.position)||B1(o)&&!u&&m7(r,o))?n=n.filter(c=>c!==o):i=s,o=hv(o)}return e.set(r,n),n}function PW(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r;const o=[...t==="clippingAncestors"?f2(e)?[]:RW(e,this._c):[].concat(t),n],s=o[0],u=o.reduce((l,c)=>{const f=Ek(e,c,i);return l.top=Bg(f.top,l.top),l.right=px(f.right,l.right),l.bottom=px(f.bottom,l.bottom),l.left=Bg(f.left,l.left),l},Ek(e,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function MW(r){const{width:e,height:t}=p7(r);return{width:e,height:t}}function DW(r,e,t){const n=bo(e),i=Sh(e),a=t==="fixed",o=Gg(r,!0,a,e);let s={scrollLeft:0,scrollTop:0};const u=_h(0);function l(){u.x=m2(i)}if(n||!n&&!a)if((Fp(e)!=="body"||B1(i))&&(s=h2(e)),n){const h=Gg(e,!0,a,e);u.x=h.x+e.clientLeft,u.y=h.y+e.clientTop}else i&&l();a&&!n&&i&&l();const c=i&&!n&&!a?y7(i,s):_h(0),f=o.left+s.scrollLeft-u.x-c.x,d=o.top+s.scrollTop-u.y-c.y;return{x:f,y:d,width:o.width,height:o.height}}function nS(r){return Ff(r).position==="static"}function Sk(r,e){if(!bo(r)||Ff(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return Sh(r)===t&&(t=t.ownerDocument.body),t}function b7(r,e){const t=Ul(r);if(f2(r))return t;if(!bo(r)){let i=hv(r);for(;i&&!cv(i);){if(da(i)&&!nS(i))return i;i=hv(i)}return t}let n=Sk(r,e);for(;n&&yH(n)&&nS(n);)n=Sk(n,e);return n&&cv(n)&&nS(n)&&!T5(n)?t:n||xH(r)||t}const kW=async function(r){const e=this.getOffsetParent||b7,t=this.getDimensions,n=await t(r.floating);return{reference:DW(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function IW(r){return Ff(r).direction==="rtl"}const NW={convertOffsetParentRelativeRectToViewportRelativeRect:EW,getDocumentElement:Sh,getClippingRect:PW,getOffsetParent:b7,getElementRects:kW,getClientRects:SW,getDimensions:MW,getScale:bm,isElement:da,isRTL:IW};function _7(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function LW(r,e){let t=null,n;const i=Sh(r);function a(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=r.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=l;if(s||e(),!d||!h)return;const p=hm(f),g=hm(i.clientWidth-(c+d)),y=hm(i.clientHeight-(f+h)),b=hm(c),m={rootMargin:-p+"px "+-g+"px "+-y+"px "+-b+"px",threshold:Bg(0,px(1,u))||1};let x=!0;function E(O){const S=O[0].intersectionRatio;if(S!==u){if(!x)return o();S?o(!1,S):n=setTimeout(()=>{o(!1,1e-7)},1e3)}S===1&&!_7(l,r.getBoundingClientRect())&&o(),x=!1}try{t=new IntersectionObserver(E,{...m,root:i.ownerDocument})}catch{t=new IntersectionObserver(E,m)}t.observe(r)}return o(!0),a}function R5(r,e,t,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=A5(r),c=i||a?[...l?wp(l):[],...wp(e)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",t,{passive:!0}),a&&b.addEventListener("resize",t)});const f=l&&s?LW(l,t):null;let d=-1,h=null;o&&(h=new ResizeObserver(b=>{let[_]=b;_&&_.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(e)})),t()}),l&&!u&&h.observe(l),h.observe(e));let p,g=u?Gg(r):null;u&&y();function y(){const b=Gg(r);g&&!_7(g,b)&&t(),g=b,p=requestAnimationFrame(y)}return t(),()=>{var b;c.forEach(_=>{i&&_.removeEventListener("scroll",t),a&&_.removeEventListener("resize",t)}),f==null||f(),(b=h)==null||b.disconnect(),h=null,u&&cancelAnimationFrame(p)}}const jW=bW,BW=_W,FW=gW,UW=(r,e,t)=>{const n=new Map,i={platform:NW,...t},a={...i.platform,_c:n};return pW(r,e,{...i,platform:a})};var zW=typeof document<"u",qW=function(){},Yw=zW?me.useLayoutEffect:qW;function Sx(r,e){if(r===e)return!0;if(typeof r!=typeof e)return!1;if(typeof r=="function"&&r.toString()===e.toString())return!0;let t,n,i;if(r&&e&&typeof r=="object"){if(Array.isArray(r)){if(t=r.length,t!==e.length)return!1;for(n=t;n--!==0;)if(!Sx(r[n],e[n]))return!1;return!0}if(i=Object.keys(r),t=i.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=t;n--!==0;){const a=i[n];if(!(a==="_owner"&&r.$$typeof)&&!Sx(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function w7(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function Ok(r,e){const t=w7(r);return Math.round(e*t)/t}function iS(r){const e=me.useRef(r);return Yw(()=>{e.current=r}),e}function GW(r){r===void 0&&(r={});const{placement:e="bottom",strategy:t="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:u,open:l}=r,[c,f]=me.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,h]=me.useState(n);Sx(d,n)||h(n);const[p,g]=me.useState(null),[y,b]=me.useState(null),_=me.useCallback(W=>{W!==O.current&&(O.current=W,g(W))},[]),m=me.useCallback(W=>{W!==S.current&&(S.current=W,b(W))},[]),x=a||p,E=o||y,O=me.useRef(null),S=me.useRef(null),T=me.useRef(c),P=u!=null,I=iS(u),k=iS(i),L=iS(l),B=me.useCallback(()=>{if(!O.current||!S.current)return;const W={placement:e,strategy:t,middleware:d};k.current&&(W.platform=k.current),UW(O.current,S.current,W).then($=>{const J={...$,isPositioned:L.current!==!1};j.current&&!Sx(T.current,J)&&(T.current=J,y2.flushSync(()=>{f(J)}))})},[d,e,t,k,L]);Yw(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(W=>({...W,isPositioned:!1})))},[l]);const j=me.useRef(!1);Yw(()=>(j.current=!0,()=>{j.current=!1}),[]),Yw(()=>{if(x&&(O.current=x),E&&(S.current=E),x&&E){if(I.current)return I.current(x,E,B);B()}},[x,E,B,I,P]);const z=me.useMemo(()=>({reference:O,floating:S,setReference:_,setFloating:m}),[_,m]),H=me.useMemo(()=>({reference:x,floating:E}),[x,E]),q=me.useMemo(()=>{const W={position:t,left:0,top:0};if(!H.floating)return W;const $=Ok(H.floating,c.x),J=Ok(H.floating,c.y);return s?{...W,transform:"translate("+$+"px, "+J+"px)",...w7(H.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:$,top:J}},[t,s,H.floating,c.x,c.y]);return me.useMemo(()=>({...c,update:B,refs:z,elements:H,floatingStyles:q}),[c,B,z,H,q])}const P5=(r,e)=>({...jW(r),options:[r,e]}),M5=(r,e)=>({...BW(r),options:[r,e]}),D5=(r,e)=>({...FW(r),options:[r,e]});function mv(r){const e=me.useRef(void 0),t=me.useCallback(n=>{const i=r.map(a=>{if(a!=null){if(typeof a=="function"){const o=a,s=o(n);return typeof s=="function"?s:()=>{o(null)}}return a.current=n,()=>{a.current=null}}});return()=>{i.forEach(a=>a==null?void 0:a())}},r);return me.useMemo(()=>r.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=t(n))},r)}function VW(r,e){const t=r.compareDocumentPosition(e);return t&Node.DOCUMENT_POSITION_FOLLOWING||t&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:t&Node.DOCUMENT_POSITION_PRECEDING||t&Node.DOCUMENT_POSITION_CONTAINS?1:0}const x7=me.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function HW(r){const{children:e,elementsRef:t,labelsRef:n}=r,[i,a]=me.useState(()=>new Set),o=me.useCallback(l=>{a(c=>new Set(c).add(l))},[]),s=me.useCallback(l=>{a(c=>{const f=new Set(c);return f.delete(l),f})},[]),u=me.useMemo(()=>{const l=new Map;return Array.from(i.keys()).sort(VW).forEach((f,d)=>{l.set(f,d)}),l},[i]);return Te.jsx(x7.Provider,{value:me.useMemo(()=>({register:o,unregister:s,map:u,elementsRef:t,labelsRef:n}),[o,s,u,t,n]),children:e})}function b2(r){r===void 0&&(r={});const{label:e}=r,{register:t,unregister:n,map:i,elementsRef:a,labelsRef:o}=me.useContext(x7),[s,u]=me.useState(null),l=me.useRef(null),c=me.useCallback(f=>{if(l.current=f,s!==null&&(a.current[s]=f,o)){var d;const h=e!==void 0;o.current[s]=h?e:(d=f==null?void 0:f.textContent)!=null?d:null}},[s,a,o,e]);return Di(()=>{const f=l.current;if(f)return t(f),()=>{n(f)}},[t,n]),Di(()=>{const f=l.current?i.get(l.current):null;f!=null&&u(f)},[i]),me.useMemo(()=>({ref:c,index:s??-1}),[s,c])}const WW="data-floating-ui-focusable",Tk="active",Ck="selected",U1="ArrowLeft",z1="ArrowRight",E7="ArrowUp",_2="ArrowDown",YW={...z9};let Ak=!1,XW=0;const Rk=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+XW++;function $W(){const[r,e]=me.useState(()=>Ak?Rk():void 0);return Di(()=>{r==null&&e(Rk())},[]),me.useEffect(()=>{Ak=!0},[]),r}const KW=YW.useId,w2=KW||$W;function S7(){const r=new Map;return{emit(e,t){var n;(n=r.get(e))==null||n.forEach(i=>i(t))},on(e,t){r.has(e)||r.set(e,new Set),r.get(e).add(t)},off(e,t){var n;(n=r.get(e))==null||n.delete(t)}}}const O7=me.createContext(null),T7=me.createContext(null),Up=()=>{var r;return((r=me.useContext(O7))==null?void 0:r.id)||null},bv=()=>me.useContext(T7);function ZW(r){const e=w2(),t=bv(),i=Up();return Di(()=>{if(!e)return;const a={id:e,parentId:i};return t==null||t.addNode(a),()=>{t==null||t.removeNode(a)}},[t,e,i]),e}function QW(r){const{children:e,id:t}=r,n=Up();return Te.jsx(O7.Provider,{value:me.useMemo(()=>({id:t,parentId:n}),[t,n]),children:e})}function JW(r){const{children:e}=r,t=me.useRef([]),n=me.useCallback(o=>{t.current=[...t.current,o]},[]),i=me.useCallback(o=>{t.current=t.current.filter(s=>s!==o)},[]),[a]=me.useState(()=>S7());return Te.jsx(T7.Provider,{value:me.useMemo(()=>({nodesRef:t,addNode:n,removeNode:i,events:a}),[n,i,a]),children:e})}function Vg(r){return"data-floating-ui-"+r}function au(r){r.current!==-1&&(clearTimeout(r.current),r.current=-1)}const Pk=Vg("safe-polygon");function aS(r,e,t){if(t&&!Nm(t))return 0;if(typeof r=="number")return r;if(typeof r=="function"){const n=r();return typeof n=="number"?n:n==null?void 0:n[e]}return r==null?void 0:r[e]}function oS(r){return typeof r=="function"?r():r}function C7(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,dataRef:i,events:a,elements:o}=r,{enabled:s=!0,delay:u=0,handleClose:l=null,mouseOnly:c=!1,restMs:f=0,move:d=!0}=e,h=bv(),p=Up(),g=Ls(l),y=Ls(u),b=Ls(t),_=Ls(f),m=me.useRef(),x=me.useRef(-1),E=me.useRef(),O=me.useRef(-1),S=me.useRef(!0),T=me.useRef(!1),P=me.useRef(()=>{}),I=me.useRef(!1),k=Wa(()=>{var q;const W=(q=i.current.openEvent)==null?void 0:q.type;return(W==null?void 0:W.includes("mouse"))&&W!=="mousedown"});me.useEffect(()=>{if(!s)return;function q(W){let{open:$}=W;$||(au(x),au(O),S.current=!0,I.current=!1)}return a.on("openchange",q),()=>{a.off("openchange",q)}},[s,a]),me.useEffect(()=>{if(!s||!g.current||!t)return;function q($){k()&&n(!1,$,"hover")}const W=su(o.floating).documentElement;return W.addEventListener("mouseleave",q),()=>{W.removeEventListener("mouseleave",q)}},[o.floating,t,n,s,g,k]);const L=me.useCallback(function(q,W,$){W===void 0&&(W=!0),$===void 0&&($="hover");const J=aS(y.current,"close",m.current);J&&!E.current?(au(x),x.current=window.setTimeout(()=>n(!1,q,$),J)):W&&(au(x),n(!1,q,$))},[y,n]),B=Wa(()=>{P.current(),E.current=void 0}),j=Wa(()=>{if(T.current){const q=su(o.floating).body;q.style.pointerEvents="",q.removeAttribute(Pk),T.current=!1}}),z=Wa(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);me.useEffect(()=>{if(!s)return;function q(Z){if(au(x),S.current=!1,c&&!Nm(m.current)||oS(_.current)>0&&!aS(y.current,"open"))return;const ue=aS(y.current,"open",m.current);ue?x.current=window.setTimeout(()=>{b.current||n(!0,Z,"hover")},ue):t||n(!0,Z,"hover")}function W(Z){if(z()){j();return}P.current();const ue=su(o.floating);if(au(O),I.current=!1,g.current&&i.current.floatingContext){t||au(x),E.current=g.current({...i.current.floatingContext,tree:h,x:Z.clientX,y:Z.clientY,onClose(){j(),B(),z()||L(Z,!0,"safe-polygon")}});const ne=E.current;ue.addEventListener("mousemove",ne),P.current=()=>{ue.removeEventListener("mousemove",ne)};return}(m.current==="touch"?!Ns(o.floating,Z.relatedTarget):!0)&&L(Z)}function $(Z){z()||i.current.floatingContext&&(g.current==null||g.current({...i.current.floatingContext,tree:h,x:Z.clientX,y:Z.clientY,onClose(){j(),B(),z()||L(Z)}})(Z))}function J(){au(x)}function X(Z){z()||L(Z,!1)}if(da(o.domReference)){const Z=o.domReference,ue=o.floating;return t&&Z.addEventListener("mouseleave",$),d&&Z.addEventListener("mousemove",q,{once:!0}),Z.addEventListener("mouseenter",q),Z.addEventListener("mouseleave",W),ue&&(ue.addEventListener("mouseleave",$),ue.addEventListener("mouseenter",J),ue.addEventListener("mouseleave",X)),()=>{t&&Z.removeEventListener("mouseleave",$),d&&Z.removeEventListener("mousemove",q),Z.removeEventListener("mouseenter",q),Z.removeEventListener("mouseleave",W),ue&&(ue.removeEventListener("mouseleave",$),ue.removeEventListener("mouseenter",J),ue.removeEventListener("mouseleave",X))}}},[o,s,r,c,d,L,B,j,n,t,b,h,y,g,i,z,_]),Di(()=>{var q;if(s&&t&&(q=g.current)!=null&&(q=q.__options)!=null&&q.blockPointerEvents&&k()){T.current=!0;const $=o.floating;if(da(o.domReference)&&$){var W;const J=su(o.floating).body;J.setAttribute(Pk,"");const X=o.domReference,Z=h==null||(W=h.nodesRef.current.find(ue=>ue.id===p))==null||(W=W.context)==null?void 0:W.elements.floating;return Z&&(Z.style.pointerEvents=""),J.style.pointerEvents="none",X.style.pointerEvents="auto",$.style.pointerEvents="auto",()=>{J.style.pointerEvents="",X.style.pointerEvents="",$.style.pointerEvents=""}}}},[s,t,p,o,h,g,k]),Di(()=>{t||(m.current=void 0,I.current=!1,B(),j())},[t,B,j]),me.useEffect(()=>()=>{B(),au(x),au(O),j()},[s,o.domReference,B,j]);const H=me.useMemo(()=>{function q(W){m.current=W.pointerType}return{onPointerDown:q,onPointerEnter:q,onMouseMove(W){const{nativeEvent:$}=W;function J(){!S.current&&!b.current&&n(!0,$,"hover")}c&&!Nm(m.current)||t||oS(_.current)===0||I.current&&W.movementX**2+W.movementY**2<2||(au(O),m.current==="touch"?J():(I.current=!0,O.current=window.setTimeout(J,oS(_.current))))}}},[c,n,t,b,_]);return me.useMemo(()=>s?{reference:H}:{},[s,H])}let Mk=0;function Tg(r,e){e===void 0&&(e={});const{preventScroll:t=!1,cancelPrevious:n=!0,sync:i=!1}=e;n&&cancelAnimationFrame(Mk);const a=()=>r==null?void 0:r.focus({preventScroll:t});i?a():Mk=requestAnimationFrame(a)}function sS(r,e){if(!r||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(r.contains(e))return!0;if(t&&vx(t)){let n=e;for(;n;){if(r===n)return!0;n=n.parentNode||n.host}}return!1}function eY(r){return"composedPath"in r?r.composedPath()[0]:r.target}function tY(r){return(r==null?void 0:r.ownerDocument)||document}const _m={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Dk(r){return r==="inert"?_m.inert:r==="aria-hidden"?_m["aria-hidden"]:_m.none}let nw=new WeakSet,iw={},uS=0;const rY=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,A7=r=>r&&(r.host||A7(r.parentNode)),nY=(r,e)=>e.map(t=>{if(r.contains(t))return t;const n=A7(t);return r.contains(n)?n:null}).filter(t=>t!=null);function iY(r,e,t,n){const i="data-floating-ui-inert",a=n?"inert":t?"aria-hidden":null,o=nY(e,r),s=new Set,u=new Set(o),l=[];iw[i]||(iw[i]=new WeakMap);const c=iw[i];o.forEach(f),d(e),s.clear();function f(h){!h||s.has(h)||(s.add(h),h.parentNode&&f(h.parentNode))}function d(h){!h||u.has(h)||[].forEach.call(h.children,p=>{if(Fp(p)!=="script")if(s.has(p))d(p);else{const g=a?p.getAttribute(a):null,y=g!==null&&g!=="false",b=Dk(a),_=(b.get(p)||0)+1,m=(c.get(p)||0)+1;b.set(p,_),c.set(p,m),l.push(p),_===1&&y&&nw.add(p),m===1&&p.setAttribute(i,""),!y&&a&&p.setAttribute(a,a==="inert"?"":"true")}})}return uS++,()=>{l.forEach(h=>{const p=Dk(a),y=(p.get(h)||0)-1,b=(c.get(h)||0)-1;p.set(h,y),c.set(h,b),y||(!nw.has(h)&&a&&h.removeAttribute(a),nw.delete(h)),b||h.removeAttribute(i)}),uS--,uS||(_m.inert=new WeakMap,_m["aria-hidden"]=new WeakMap,_m.none=new WeakMap,nw=new WeakSet,iw={})}}function kk(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);const n=tY(r[0]).body;return iY(r.concat(Array.from(n.querySelectorAll('[aria-live],[role="status"],output'))),n,e,t)}const k5={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Ox=me.forwardRef(function(e,t){const[n,i]=me.useState();Di(()=>{u7()&&i("button")},[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Vg("focus-guard")]:"",style:k5};return Te.jsx("span",{...e,...a})}),aY={clipPath:"inset(50%)",position:"fixed",top:0,left:0},R7=me.createContext(null),Ik=Vg("portal");function oY(r){r===void 0&&(r={});const{id:e,root:t}=r,n=w2(),i=P7(),[a,o]=me.useState(null),s=me.useRef(null);return Di(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),Di(()=>{if(!n||s.current)return;const u=e?document.getElementById(e):null;if(!u)return;const l=document.createElement("div");l.id=n,l.setAttribute(Ik,""),u.appendChild(l),s.current=l,o(l)},[e,n]),Di(()=>{if(t===null||!n||s.current)return;let u=t||(i==null?void 0:i.portalNode);u&&!O5(u)&&(u=u.current),u=u||document.body;let l=null;e&&(l=document.createElement("div"),l.id=e,u.appendChild(l));const c=document.createElement("div");c.id=n,c.setAttribute(Ik,""),u=l||u,u.appendChild(c),s.current=c,o(c)},[e,t,n,i]),a}function Tx(r){const{children:e,id:t,root:n,preserveTabOrder:i=!0}=r,a=oY({id:t,root:n}),[o,s]=me.useState(null),u=me.useRef(null),l=me.useRef(null),c=me.useRef(null),f=me.useRef(null),d=o==null?void 0:o.modal,h=o==null?void 0:o.open,p=!!o&&!o.modal&&o.open&&i&&!!(n||a);return me.useEffect(()=>{if(!a||!i||d)return;function g(y){a&&Pb(y)&&(y.type==="focusin"?_k:hW)(a)}return a.addEventListener("focusin",g,!0),a.addEventListener("focusout",g,!0),()=>{a.removeEventListener("focusin",g,!0),a.removeEventListener("focusout",g,!0)}},[a,i,d]),me.useEffect(()=>{a&&(h||_k(a))},[h,a]),Te.jsxs(R7.Provider,{value:me.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:l,beforeInsideRef:c,afterInsideRef:f,portalNode:a,setFocusManagerState:s}),[i,a]),children:[p&&a&&Te.jsx(Ox,{"data-type":"outside",ref:u,onFocus:g=>{if(Pb(g,a)){var y;(y=c.current)==null||y.focus()}else{const b=o?o.domReference:null,_=v7(b);_==null||_.focus()}}}),p&&a&&Te.jsx("span",{"aria-owns":a.id,style:aY}),a&&y2.createPortal(e,a),p&&a&&Te.jsx(Ox,{"data-type":"outside",ref:l,onFocus:g=>{if(Pb(g,a)){var y;(y=f.current)==null||y.focus()}else{const b=o?o.domReference:null,_=h7(b);_==null||_.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,g.nativeEvent,"focus-out"))}}})]})}const P7=()=>me.useContext(R7);function Nk(r){return me.useMemo(()=>e=>{r.forEach(t=>{t&&(t.current=e)})},r)}const sY=20;let hp=[];function I5(){hp=hp.filter(r=>r.isConnected)}function uY(r){I5(),r&&Fp(r)!=="body"&&(hp.push(r),hp.length>sY&&(hp=hp.slice(-20)))}function Lk(){return I5(),hp[hp.length-1]}function lY(r){const e=F1();return a7(r,e)?r:g2(r,e)[0]||r}function jk(r,e){var t;if(!e.current.includes("floating")&&!((t=r.getAttribute("role"))!=null&&t.includes("dialog")))return;const n=F1(),a=$H(r,n).filter(s=>{const u=s.getAttribute("data-tabindex")||"";return a7(s,n)||s.hasAttribute("data-tabindex")&&!u.startsWith("-")}),o=r.getAttribute("tabindex");e.current.includes("floating")||a.length===0?o!=="0"&&r.setAttribute("tabindex","0"):(o!=="-1"||r.hasAttribute("data-tabindex")&&r.getAttribute("data-tabindex")!=="-1")&&(r.setAttribute("tabindex","-1"),r.setAttribute("data-tabindex","-1"))}const cY=me.forwardRef(function(e,t){return Te.jsx("button",{...e,type:"button",ref:t,tabIndex:-1,style:k5})});function N5(r){const{context:e,children:t,disabled:n=!1,order:i=["content"],guards:a=!0,initialFocus:o=0,returnFocus:s=!0,restoreFocus:u=!1,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:f=!0,outsideElementsInert:d=!1,getInsideElements:h=()=>[]}=r,{open:p,onOpenChange:g,events:y,dataRef:b,elements:{domReference:_,floating:m}}=e,x=Wa(()=>{var ge;return(ge=b.current.floatingContext)==null?void 0:ge.nodeId}),E=Wa(h),O=typeof o=="number"&&o<0,S=sM(_)&&O,T=rY(),P=T?a:!0,I=!P||T&&d,k=Ls(i),L=Ls(o),B=Ls(s),j=bv(),z=P7(),H=me.useRef(null),q=me.useRef(null),W=me.useRef(!1),$=me.useRef(!1),J=me.useRef(-1),X=me.useRef(-1),Z=z!=null,ue=Ex(m),re=Wa(function(ge){return ge===void 0&&(ge=ue),ge?g2(ge,F1()):[]}),ne=Wa(ge=>{const Oe=re(ge);return k.current.map(ke=>_&&ke==="reference"?_:ue&&ke==="floating"?ue:Oe).filter(Boolean).flat()});me.useEffect(()=>{if(n||!l)return;function ge(ke){if(ke.key==="Tab"){Ns(ue,yh(su(ue)))&&re().length===0&&!S&&ou(ke);const De=ne(),Ne=mh(ke);k.current[0]==="reference"&&Ne===_&&(ou(ke),ke.shiftKey?Tg(De[De.length-1]):Tg(De[1])),k.current[1]==="floating"&&Ne===ue&&ke.shiftKey&&(ou(ke),Tg(De[0]))}}const Oe=su(ue);return Oe.addEventListener("keydown",ge),()=>{Oe.removeEventListener("keydown",ge)}},[n,_,ue,l,k,S,re,ne]),me.useEffect(()=>{if(n||!m)return;function ge(Oe){const ke=mh(Oe),Ne=re().indexOf(ke);Ne!==-1&&(J.current=Ne)}return m.addEventListener("focusin",ge),()=>{m.removeEventListener("focusin",ge)}},[n,m,re]),me.useEffect(()=>{if(n||!f)return;function ge(){$.current=!0,setTimeout(()=>{$.current=!1})}function Oe(Ne){const Ce=Ne.relatedTarget,Y=Ne.currentTarget,Q=mh(Ne);queueMicrotask(()=>{const ie=x(),we=!(Ns(_,Ce)||Ns(m,Ce)||Ns(Ce,m)||Ns(z==null?void 0:z.portalNode,Ce)||Ce!=null&&Ce.hasAttribute(Vg("focus-guard"))||j&&(Fg(j.nodesRef.current,ie).find(Ee=>{var Me,Ie;return Ns((Me=Ee.context)==null?void 0:Me.elements.floating,Ce)||Ns((Ie=Ee.context)==null?void 0:Ie.elements.domReference,Ce)})||mk(j.nodesRef.current,ie).find(Ee=>{var Me,Ie,Ye;return[(Me=Ee.context)==null?void 0:Me.elements.floating,Ex((Ie=Ee.context)==null?void 0:Ie.elements.floating)].includes(Ce)||((Ye=Ee.context)==null?void 0:Ye.elements.domReference)===Ce})));if(Y===_&&ue&&jk(ue,k),u&&Y!==_&&!(Q!=null&&Q.isConnected)&&yh(su(ue))===su(ue).body){bo(ue)&&ue.focus();const Ee=J.current,Me=re(),Ie=Me[Ee]||Me[Me.length-1]||ue;bo(Ie)&&Ie.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(S||!l)&&Ce&&we&&!$.current&&Ce!==Lk()&&(W.current=!0,g(!1,Ne,"focus-out"))})}const ke=!!(!j&&z);function De(){au(X),b.current.insideReactTree=!0,X.current=window.setTimeout(()=>{b.current.insideReactTree=!1})}if(m&&bo(_))return _.addEventListener("focusout",Oe),_.addEventListener("pointerdown",ge),m.addEventListener("focusout",Oe),ke&&m.addEventListener("focusout",De,!0),()=>{_.removeEventListener("focusout",Oe),_.removeEventListener("pointerdown",ge),m.removeEventListener("focusout",Oe),ke&&m.removeEventListener("focusout",De,!0)}},[n,_,m,ue,l,j,z,g,f,u,re,S,x,k,b]);const le=me.useRef(null),ce=me.useRef(null),pe=Nk([le,z==null?void 0:z.beforeInsideRef]),fe=Nk([ce,z==null?void 0:z.afterInsideRef]);me.useEffect(()=>{var ge,Oe;if(n||!m)return;const ke=Array.from((z==null||(ge=z.portalNode)==null?void 0:ge.querySelectorAll("["+Vg("portal")+"]"))||[]),Ne=(Oe=(j?mk(j.nodesRef.current,x()):[]).find(Q=>{var ie;return sM(((ie=Q.context)==null?void 0:ie.elements.domReference)||null)}))==null||(Oe=Oe.context)==null?void 0:Oe.elements.domReference,Ce=[m,Ne,...ke,...E(),H.current,q.current,le.current,ce.current,z==null?void 0:z.beforeOutsideRef.current,z==null?void 0:z.afterOutsideRef.current,k.current.includes("reference")||S?_:null].filter(Q=>Q!=null),Y=l||S?kk(Ce,!I,I):kk(Ce);return()=>{Y()}},[n,_,m,l,k,z,S,P,I,j,x,E]),Di(()=>{if(n||!bo(ue))return;const ge=su(ue),Oe=yh(ge);queueMicrotask(()=>{const ke=ne(ue),De=L.current,Ne=(typeof De=="number"?ke[De]:De.current)||ue,Ce=Ns(ue,Oe);!O&&!Ce&&p&&Tg(Ne,{preventScroll:Ne===ue})})},[n,p,ue,O,ne,L]),Di(()=>{if(n||!ue)return;const ge=su(ue),Oe=yh(ge);uY(Oe);function ke(Ce){let{reason:Y,event:Q,nested:ie}=Ce;if(["hover","safe-polygon"].includes(Y)&&Q.type==="mouseleave"&&(W.current=!0),Y==="outside-press")if(ie)W.current=!1;else if(c7(Q)||f7(Q))W.current=!1;else{let we=!1;document.createElement("div").focus({get preventScroll(){return we=!0,!1}}),we?W.current=!1:W.current=!0}}y.on("openchange",ke);const De=ge.createElement("span");De.setAttribute("tabindex","-1"),De.setAttribute("aria-hidden","true"),Object.assign(De.style,k5),Z&&_&&_.insertAdjacentElement("afterend",De);function Ne(){if(typeof B.current=="boolean"){const Ce=_||Lk();return Ce&&Ce.isConnected?Ce:De}return B.current.current||De}return()=>{y.off("openchange",ke);const Ce=yh(ge),Y=Ns(m,Ce)||j&&Fg(j.nodesRef.current,x(),!1).some(ie=>{var we;return Ns((we=ie.context)==null?void 0:we.elements.floating,Ce)}),Q=Ne();queueMicrotask(()=>{const ie=lY(Q);B.current&&!W.current&&bo(ie)&&(!(ie!==Ce&&Ce!==ge.body)||Y)&&ie.focus({preventScroll:!0}),De.remove()})}},[n,m,ue,B,b,y,j,Z,_,x]),me.useEffect(()=>(queueMicrotask(()=>{W.current=!1}),()=>{queueMicrotask(I5)}),[n]),Di(()=>{if(!n&&z)return z.setFocusManagerState({modal:l,closeOnFocusOut:f,open:p,onOpenChange:g,domReference:_}),()=>{z.setFocusManagerState(null)}},[n,z,l,p,g,f,_]),Di(()=>{n||ue&&jk(ue,k)},[n,ue,k]);function se(ge){return n||!c||!l?null:Te.jsx(cY,{ref:ge==="start"?H:q,onClick:Oe=>g(!1,Oe.nativeEvent),children:typeof c=="string"?c:"Dismiss"})}const de=!n&&P&&(l?!S:!0)&&(Z||l);return Te.jsxs(Te.Fragment,{children:[de&&Te.jsx(Ox,{"data-type":"inside",ref:pe,onFocus:ge=>{if(l){const ke=ne();Tg(i[0]==="reference"?ke[0]:ke[ke.length-1])}else if(z!=null&&z.preserveTabOrder&&z.portalNode)if(W.current=!1,Pb(ge,z.portalNode)){const ke=h7(_);ke==null||ke.focus()}else{var Oe;(Oe=z.beforeOutsideRef.current)==null||Oe.focus()}}}),!S&&se("start"),t,se("end"),de&&Te.jsx(Ox,{"data-type":"inside",ref:fe,onFocus:ge=>{if(l)Tg(ne()[0]);else if(z!=null&&z.preserveTabOrder&&z.portalNode)if(f&&(W.current=!0),Pb(ge,z.portalNode)){const ke=v7(_);ke==null||ke.focus()}else{var Oe;(Oe=z.afterOutsideRef.current)==null||Oe.focus()}}})]})}function Bk(r){return bo(r.target)&&r.target.tagName==="BUTTON"}function fY(r){return bo(r.target)&&r.target.tagName==="A"}function Fk(r){return C5(r)}function L5(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,dataRef:i,elements:{domReference:a}}=r,{enabled:o=!0,event:s="click",toggle:u=!0,ignoreMouse:l=!1,keyboardHandlers:c=!0,stickIfOpen:f=!0}=e,d=me.useRef(),h=me.useRef(!1),p=me.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const y=d.current;g.button===0&&s!=="click"&&(Nm(y,!0)&&l||(t&&u&&(!(i.current.openEvent&&f)||i.current.openEvent.type==="mousedown")?n(!1,g.nativeEvent,"click"):(g.preventDefault(),n(!0,g.nativeEvent,"click"))))},onClick(g){const y=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Nm(y,!0)&&l||(t&&u&&(!(i.current.openEvent&&f)||i.current.openEvent.type==="click")?n(!1,g.nativeEvent,"click"):n(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!c||Bk(g))&&(g.key===" "&&!Fk(a)&&(g.preventDefault(),h.current=!0),!fY(g)&&g.key==="Enter"&&n(!(t&&u),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||Bk(g)||Fk(a)||g.key===" "&&h.current&&(h.current=!1,n(!(t&&u),g.nativeEvent,"click"))}}),[i,a,s,l,c,n,t,f,u]);return me.useMemo(()=>o?{reference:p}:{},[o,p])}function dY(r,e){let t=null,n=null,i=!1;return{contextElement:r||void 0,getBoundingClientRect(){var a;const o=(r==null?void 0:r.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s=e.axis==="x"||e.axis==="both",u=e.axis==="y"||e.axis==="both",l=["mouseenter","mousemove"].includes(((a=e.dataRef.current.openEvent)==null?void 0:a.type)||"")&&e.pointerType!=="touch";let c=o.width,f=o.height,d=o.x,h=o.y;return t==null&&e.x&&s&&(t=o.x-e.x),n==null&&e.y&&u&&(n=o.y-e.y),d-=t||0,h-=n||0,c=0,f=0,!i||l?(c=e.axis==="y"?o.width:0,f=e.axis==="x"?o.height:0,d=s&&e.x!=null?e.x:d,h=u&&e.y!=null?e.y:h):i&&!l&&(f=e.axis==="x"?o.height:f,c=e.axis==="y"?o.width:c),i=!0,{width:c,height:f,x:d,y:h,top:h,right:d+c,bottom:h+f,left:d}}}}function Uk(r){return r!=null&&r.clientX!=null}function hY(r,e){e===void 0&&(e={});const{open:t,dataRef:n,elements:{floating:i,domReference:a},refs:o}=r,{enabled:s=!0,axis:u="both",x:l=null,y:c=null}=e,f=me.useRef(!1),d=me.useRef(null),[h,p]=me.useState(),[g,y]=me.useState([]),b=Wa((O,S)=>{f.current||n.current.openEvent&&!Uk(n.current.openEvent)||o.setPositionReference(dY(a,{x:O,y:S,axis:u,dataRef:n,pointerType:h}))}),_=Wa(O=>{l!=null||c!=null||(t?d.current||y([]):b(O.clientX,O.clientY))}),m=Nm(h)?i:t,x=me.useCallback(()=>{if(!m||!s||l!=null||c!=null)return;const O=Ul(i);function S(T){const P=mh(T);Ns(i,P)?(O.removeEventListener("mousemove",S),d.current=null):b(T.clientX,T.clientY)}if(!n.current.openEvent||Uk(n.current.openEvent)){O.addEventListener("mousemove",S);const T=()=>{O.removeEventListener("mousemove",S),d.current=null};return d.current=T,T}o.setPositionReference(a)},[m,s,l,c,i,n,o,a,b]);me.useEffect(()=>x(),[x,g]),me.useEffect(()=>{s&&!i&&(f.current=!1)},[s,i]),me.useEffect(()=>{!s&&t&&(f.current=!0)},[s,t]),Di(()=>{s&&(l!=null||c!=null)&&(f.current=!1,b(l,c))},[s,l,c,b]);const E=me.useMemo(()=>{function O(S){let{pointerType:T}=S;p(T)}return{onPointerDown:O,onPointerEnter:O,onMouseMove:_,onMouseEnter:_}},[_]);return me.useMemo(()=>s?{reference:E}:{},[s,E])}const vY={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},pY={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},zk=r=>{var e,t;return{escapeKey:typeof r=="boolean"?r:(e=r==null?void 0:r.escapeKey)!=null?e:!1,outsidePress:typeof r=="boolean"?r:(t=r==null?void 0:r.outsidePress)!=null?t:!0}};function j5(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,elements:i,dataRef:a}=r,{enabled:o=!0,escapeKey:s=!0,outsidePress:u=!0,outsidePressEvent:l="pointerdown",referencePress:c=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:h,capture:p}=e,g=bv(),y=Wa(typeof u=="function"?u:()=>!1),b=typeof u=="function"?y:u,_=me.useRef(!1),{escapeKey:m,outsidePress:x}=zk(h),{escapeKey:E,outsidePress:O}=zk(p),S=me.useRef(!1),T=Wa(j=>{var z;if(!t||!o||!s||j.key!=="Escape"||S.current)return;const H=(z=a.current.floatingContext)==null?void 0:z.nodeId,q=g?Fg(g.nodesRef.current,H):[];if(!m&&(j.stopPropagation(),q.length>0)){let W=!0;if(q.forEach($=>{var J;if((J=$.context)!=null&&J.open&&!$.context.dataRef.current.__escapeKeyBubbles){W=!1;return}}),!W)return}n(!1,nW(j)?j.nativeEvent:j,"escape-key")}),P=Wa(j=>{var z;const H=()=>{var q;T(j),(q=mh(j))==null||q.removeEventListener("keydown",H)};(z=mh(j))==null||z.addEventListener("keydown",H)}),I=Wa(j=>{var z;const H=a.current.insideReactTree;a.current.insideReactTree=!1;const q=_.current;if(_.current=!1,l==="click"&&q||H||typeof b=="function"&&!b(j))return;const W=mh(j),$="["+Vg("inert")+"]",J=su(i.floating).querySelectorAll($);let X=da(W)?W:null;for(;X&&!cv(X);){const ne=hv(X);if(cv(ne)||!da(ne))break;X=ne}if(J.length&&da(W)&&!eW(W)&&!Ns(W,i.floating)&&Array.from(J).every(ne=>!Ns(X,ne)))return;if(bo(W)&&B){const ne=cv(W),le=Ff(W),ce=/auto|scroll/,pe=ne||ce.test(le.overflowX),fe=ne||ce.test(le.overflowY),se=pe&&W.clientWidth>0&&W.scrollWidth>W.clientWidth,de=fe&&W.clientHeight>0&&W.scrollHeight>W.clientHeight,ge=le.direction==="rtl",Oe=de&&(ge?j.offsetX<=W.offsetWidth-W.clientWidth:j.offsetX>W.clientWidth),ke=se&&j.offsetY>W.clientHeight;if(Oe||ke)return}const Z=(z=a.current.floatingContext)==null?void 0:z.nodeId,ue=g&&Fg(g.nodesRef.current,Z).some(ne=>{var le;return tS(j,(le=ne.context)==null?void 0:le.elements.floating)});if(tS(j,i.floating)||tS(j,i.domReference)||ue)return;const re=g?Fg(g.nodesRef.current,Z):[];if(re.length>0){let ne=!0;if(re.forEach(le=>{var ce;if((ce=le.context)!=null&&ce.open&&!le.context.dataRef.current.__outsidePressBubbles){ne=!1;return}}),!ne)return}n(!1,j,"outside-press")}),k=Wa(j=>{var z;const H=()=>{var q;I(j),(q=mh(j))==null||q.removeEventListener(l,H)};(z=mh(j))==null||z.addEventListener(l,H)});me.useEffect(()=>{if(!t||!o)return;a.current.__escapeKeyBubbles=m,a.current.__outsidePressBubbles=x;let j=-1;function z(J){n(!1,J,"ancestor-scroll")}function H(){window.clearTimeout(j),S.current=!0}function q(){j=window.setTimeout(()=>{S.current=!1},d2()?5:0)}const W=su(i.floating);s&&(W.addEventListener("keydown",E?P:T,E),W.addEventListener("compositionstart",H),W.addEventListener("compositionend",q)),b&&W.addEventListener(l,O?k:I,O);let $=[];return d&&(da(i.domReference)&&($=wp(i.domReference)),da(i.floating)&&($=$.concat(wp(i.floating))),!da(i.reference)&&i.reference&&i.reference.contextElement&&($=$.concat(wp(i.reference.contextElement)))),$=$.filter(J=>{var X;return J!==((X=W.defaultView)==null?void 0:X.visualViewport)}),$.forEach(J=>{J.addEventListener("scroll",z,{passive:!0})}),()=>{s&&(W.removeEventListener("keydown",E?P:T,E),W.removeEventListener("compositionstart",H),W.removeEventListener("compositionend",q)),b&&W.removeEventListener(l,O?k:I,O),$.forEach(J=>{J.removeEventListener("scroll",z)}),window.clearTimeout(j)}},[a,i,s,b,l,t,n,d,o,m,x,T,E,P,I,O,k]),me.useEffect(()=>{a.current.insideReactTree=!1},[a,b,l]);const L=me.useMemo(()=>({onKeyDown:T,...c&&{[vY[f]]:j=>{n(!1,j.nativeEvent,"reference-press")},...f!=="click"&&{onClick(j){n(!1,j.nativeEvent,"reference-press")}}}}),[T,n,c,f]),B=me.useMemo(()=>({onKeyDown:T,onMouseDown(){_.current=!0},onMouseUp(){_.current=!0},[pY[l]]:()=>{a.current.insideReactTree=!0}}),[T,l,a]);return me.useMemo(()=>o?{reference:L,floating:B}:{},[o,L,B])}function gY(r){const{open:e=!1,onOpenChange:t,elements:n}=r,i=w2(),a=me.useRef({}),[o]=me.useState(()=>S7()),s=Up()!=null,[u,l]=me.useState(n.reference),c=Wa((h,p,g)=>{a.current.openEvent=h?p:void 0,o.emit("openchange",{open:h,event:p,reason:g,nested:s}),t==null||t(h,p,g)}),f=me.useMemo(()=>({setPositionReference:l}),[]),d=me.useMemo(()=>({reference:u||n.reference||null,floating:n.floating||null,domReference:n.reference}),[u,n.reference,n.floating]);return me.useMemo(()=>({dataRef:a,open:e,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[e,c,d,o,i,f])}function B5(r){r===void 0&&(r={});const{nodeId:e}=r,t=gY({...r,elements:{reference:null,floating:null,...r.elements}}),n=r.rootContext||t,i=n.elements,[a,o]=me.useState(null),[s,u]=me.useState(null),c=(i==null?void 0:i.domReference)||a,f=me.useRef(null),d=bv();Di(()=>{c&&(f.current=c)},[c]);const h=GW({...r,elements:{...i,...s&&{reference:s}}}),p=me.useCallback(m=>{const x=da(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),getClientRects:()=>m.getClientRects(),contextElement:m}:m;u(x),h.refs.setReference(x)},[h.refs]),g=me.useCallback(m=>{(da(m)||m===null)&&(f.current=m,o(m)),(da(h.refs.reference.current)||h.refs.reference.current===null||m!==null&&!da(m))&&h.refs.setReference(m)},[h.refs]),y=me.useMemo(()=>({...h.refs,setReference:g,setPositionReference:p,domReference:f}),[h.refs,g,p]),b=me.useMemo(()=>({...h.elements,domReference:c}),[h.elements,c]),_=me.useMemo(()=>({...h,...n,refs:y,elements:b,nodeId:e}),[h,y,b,e,n]);return Di(()=>{n.dataRef.current.floatingContext=_;const m=d==null?void 0:d.nodesRef.current.find(x=>x.id===e);m&&(m.context=_)}),me.useMemo(()=>({...h,context:_,refs:y,elements:b}),[h,y,b,_])}function lS(){return KH()&&u7()}function yY(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,events:i,dataRef:a,elements:o}=r,{enabled:s=!0,visibleOnly:u=!0}=e,l=me.useRef(!1),c=me.useRef(-1),f=me.useRef(!0);me.useEffect(()=>{if(!s)return;const h=Ul(o.domReference);function p(){!t&&bo(o.domReference)&&o.domReference===yh(su(o.domReference))&&(l.current=!0)}function g(){f.current=!0}function y(){f.current=!1}return h.addEventListener("blur",p),lS()&&(h.addEventListener("keydown",g,!0),h.addEventListener("pointerdown",y,!0)),()=>{h.removeEventListener("blur",p),lS()&&(h.removeEventListener("keydown",g,!0),h.removeEventListener("pointerdown",y,!0))}},[o.domReference,t,s]),me.useEffect(()=>{if(!s)return;function h(p){let{reason:g}=p;(g==="reference-press"||g==="escape-key")&&(l.current=!0)}return i.on("openchange",h),()=>{i.off("openchange",h)}},[i,s]),me.useEffect(()=>()=>{au(c)},[]);const d=me.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(h){if(l.current)return;const p=mh(h.nativeEvent);if(u&&da(p)){if(lS()&&!h.relatedTarget){if(!f.current&&!C5(p))return}else if(!tW(p))return}n(!0,h.nativeEvent,"focus")},onBlur(h){l.current=!1;const p=h.relatedTarget,g=h.nativeEvent,y=da(p)&&p.hasAttribute(Vg("focus-guard"))&&p.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var b;const _=yh(o.domReference?o.domReference.ownerDocument:document);!p&&_===o.domReference||Ns((b=a.current.floatingContext)==null?void 0:b.refs.floating.current,_)||Ns(o.domReference,_)||y||n(!1,g,"focus")})}}),[a,o.domReference,n,u]);return me.useMemo(()=>s?{reference:d}:{},[s,d])}function cS(r,e,t){const n=new Map,i=t==="item";let a=r;if(i&&r){const{[Tk]:o,[Ck]:s,...u}=r;a=u}return{...t==="floating"&&{tabIndex:-1,[WW]:""},...a,...e.map(o=>{const s=o?o[t]:null;return typeof s=="function"?r?s(r):null:s}).concat(r).reduce((o,s)=>(s&&Object.entries(s).forEach(u=>{let[l,c]=u;if(!(i&&[Tk,Ck].includes(l)))if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof c=="function"){var f;(f=n.get(l))==null||f.push(c),o[l]=function(){for(var d,h=arguments.length,p=new Array(h),g=0;gy(...p)).find(y=>y!==void 0)}}}else o[l]=c}),o),{})}}function F5(r){r===void 0&&(r=[]);const e=r.map(s=>s==null?void 0:s.reference),t=r.map(s=>s==null?void 0:s.floating),n=r.map(s=>s==null?void 0:s.item),i=me.useCallback(s=>cS(s,r,"reference"),e),a=me.useCallback(s=>cS(s,r,"floating"),t),o=me.useCallback(s=>cS(s,r,"item"),n);return me.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const mY="Escape";function x2(r,e,t){switch(r){case"vertical":return e;case"horizontal":return t;default:return e||t}}function aw(r,e){return x2(e,r===E7||r===_2,r===U1||r===z1)}function fS(r,e,t){return x2(e,r===_2,t?r===U1:r===z1)||r==="Enter"||r===" "||r===""}function qk(r,e,t){return x2(e,t?r===U1:r===z1,r===_2)}function Gk(r,e,t,n){const i=t?r===z1:r===U1,a=r===E7;return e==="both"||e==="horizontal"&&n&&n>1?r===mY:x2(e,i,a)}function bY(r,e){const{open:t,onOpenChange:n,elements:i,floatingId:a}=r,{listRef:o,activeIndex:s,onNavigate:u=()=>{},enabled:l=!0,selectedIndex:c=null,allowEscape:f=!1,loop:d=!1,nested:h=!1,rtl:p=!1,virtual:g=!1,focusItemOnOpen:y="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:_=!0,disabledIndices:m=void 0,orientation:x="vertical",parentOrientation:E,cols:O=1,scrollItemIntoView:S=!0,virtualItemRef:T,itemSizes:P,dense:I=!1}=e,k=Ex(i.floating),L=Ls(k),B=Up(),j=bv();Di(()=>{r.dataRef.current.orientation=x},[r,x]);const z=Wa(()=>{u(W.current===-1?null:W.current)}),H=sM(i.domReference),q=me.useRef(y),W=me.useRef(c??-1),$=me.useRef(null),J=me.useRef(!0),X=me.useRef(z),Z=me.useRef(!!i.floating),ue=me.useRef(t),re=me.useRef(!1),ne=me.useRef(!1),le=Ls(m),ce=Ls(t),pe=Ls(S),fe=Ls(c),[se,de]=me.useState(),[ge,Oe]=me.useState(),ke=Wa(()=>{function Ee(ot){if(g){var mt;(mt=ot.id)!=null&&mt.endsWith("-fui-option")&&(ot.id=a+"-"+Math.random().toString(16).slice(2,10)),de(ot.id),j==null||j.events.emit("virtualfocus",ot),T&&(T.current=ot)}else Tg(ot,{sync:re.current,preventScroll:!0})}const Me=o.current[W.current],Ie=ne.current;Me&&Ee(Me),(re.current?ot=>ot():requestAnimationFrame)(()=>{const ot=o.current[W.current]||Me;if(!ot)return;Me||Ee(ot);const mt=pe.current;mt&&Ne&&(Ie||!J.current)&&(ot.scrollIntoView==null||ot.scrollIntoView(typeof mt=="boolean"?{block:"nearest",inline:"nearest"}:mt))})});Di(()=>{l&&(t&&i.floating?q.current&&c!=null&&(ne.current=!0,W.current=c,z()):Z.current&&(W.current=-1,X.current()))},[l,t,i.floating,c,z]),Di(()=>{if(l&&t&&i.floating)if(s==null){if(re.current=!1,fe.current!=null)return;if(Z.current&&(W.current=-1,ke()),(!ue.current||!Z.current)&&q.current&&($.current!=null||q.current===!0&&$.current==null)){let Ee=0;const Me=()=>{o.current[0]==null?(Ee<2&&(Ee?requestAnimationFrame:queueMicrotask)(Me),Ee++):(W.current=$.current==null||fS($.current,x,p)||h?rS(o,le.current):bk(o,le.current),$.current=null,z())};Me()}}else Rb(o,s)||(W.current=s,ke(),ne.current=!1)},[l,t,i.floating,s,fe,h,o,x,p,z,ke,le]),Di(()=>{var Ee;if(!l||i.floating||!j||g||!Z.current)return;const Me=j.nodesRef.current,Ie=(Ee=Me.find(mt=>mt.id===B))==null||(Ee=Ee.context)==null?void 0:Ee.elements.floating,Ye=yh(su(i.floating)),ot=Me.some(mt=>mt.context&&Ns(mt.context.elements.floating,Ye));Ie&&!ot&&J.current&&Ie.focus({preventScroll:!0})},[l,i.floating,j,B,g]),Di(()=>{if(!l||!j||!g||B)return;function Ee(Me){Oe(Me.id),T&&(T.current=Me)}return j.events.on("virtualfocus",Ee),()=>{j.events.off("virtualfocus",Ee)}},[l,j,g,B,T]),Di(()=>{X.current=z,ue.current=t,Z.current=!!i.floating}),Di(()=>{t||($.current=null,q.current=y)},[t,y]);const De=s!=null,Ne=me.useMemo(()=>{function Ee(Ie){if(!ce.current)return;const Ye=o.current.indexOf(Ie);Ye!==-1&&W.current!==Ye&&(W.current=Ye,z())}return{onFocus(Ie){let{currentTarget:Ye}=Ie;re.current=!0,Ee(Ye)},onClick:Ie=>{let{currentTarget:Ye}=Ie;return Ye.focus({preventScroll:!0})},onMouseMove(Ie){let{currentTarget:Ye}=Ie;re.current=!0,ne.current=!1,b&&Ee(Ye)},onPointerLeave(Ie){let{pointerType:Ye}=Ie;if(!(!J.current||Ye==="touch")&&(re.current=!0,!!b&&(W.current=-1,z(),!g))){var ot;(ot=L.current)==null||ot.focus({preventScroll:!0})}}}},[ce,L,b,o,z,g]),Ce=me.useCallback(()=>{var Ee;return E??(j==null||(Ee=j.nodesRef.current.find(Me=>Me.id===B))==null||(Ee=Ee.context)==null||(Ee=Ee.dataRef)==null?void 0:Ee.current.orientation)},[B,j,E]),Y=Wa(Ee=>{if(J.current=!1,re.current=!0,Ee.which===229||!ce.current&&Ee.currentTarget===L.current)return;if(h&&Gk(Ee.key,x,p,O)){aw(Ee.key,Ce())||ou(Ee),n(!1,Ee.nativeEvent,"list-navigation"),bo(i.domReference)&&(g?j==null||j.events.emit("virtualfocus",i.domReference):i.domReference.focus());return}const Me=W.current,Ie=rS(o,m),Ye=bk(o,m);if(H||(Ee.key==="Home"&&(ou(Ee),W.current=Ie,z()),Ee.key==="End"&&(ou(Ee),W.current=Ye,z())),O>1){const ot=P||Array.from({length:o.current.length},()=>({width:1,height:1})),mt=cW(ot,O,I),wt=mt.findIndex(vt=>vt!=null&&!Ww(o,vt,m)),Mt=mt.reduce((vt,tt,_e)=>tt!=null&&!Ww(o,tt,m)?_e:vt,-1),Dt=mt[lW({current:mt.map(vt=>vt!=null?o.current[vt]:null)},{event:Ee,orientation:x,loop:d,rtl:p,cols:O,disabledIndices:dW([...(typeof m!="function"?m:null)||o.current.map((vt,tt)=>Ww(o,tt,m)?tt:void 0),void 0],mt),minIndex:wt,maxIndex:Mt,prevIndex:fW(W.current>Ye?Ie:W.current,ot,mt,O,Ee.key===_2?"bl":Ee.key===(p?U1:z1)?"tr":"tl"),stopEvent:!0})];if(Dt!=null&&(W.current=Dt,z()),x==="both")return}if(aw(Ee.key,x)){if(ou(Ee),t&&!g&&yh(Ee.currentTarget.ownerDocument)===Ee.currentTarget){W.current=fS(Ee.key,x,p)?Ie:Ye,z();return}fS(Ee.key,x,p)?d?W.current=Me>=Ye?f&&Me!==o.current.length?-1:Ie:Yu(o,{startingIndex:Me,disabledIndices:m}):W.current=Math.min(Ye,Yu(o,{startingIndex:Me,disabledIndices:m})):d?W.current=Me<=Ie?f&&Me!==-1?o.current.length:Ye:Yu(o,{startingIndex:Me,decrement:!0,disabledIndices:m}):W.current=Math.max(Ie,Yu(o,{startingIndex:Me,decrement:!0,disabledIndices:m})),Rb(o,W.current)&&(W.current=-1),z()}}),Q=me.useMemo(()=>g&&t&&De&&{"aria-activedescendant":ge||se},[g,t,De,ge,se]),ie=me.useMemo(()=>({"aria-orientation":x==="both"?void 0:x,...H?{}:Q,onKeyDown:Y,onPointerMove(){J.current=!0}}),[Q,Y,x,H]),we=me.useMemo(()=>{function Ee(Ie){y==="auto"&&c7(Ie.nativeEvent)&&(q.current=!0)}function Me(Ie){q.current=y,y==="auto"&&f7(Ie.nativeEvent)&&(q.current=!0)}return{...Q,onKeyDown(Ie){J.current=!1;const Ye=Ie.key.startsWith("Arrow"),ot=["Home","End"].includes(Ie.key),mt=Ye||ot,wt=qk(Ie.key,x,p),Mt=Gk(Ie.key,x,p,O),Dt=qk(Ie.key,Ce(),p),vt=aw(Ie.key,x),tt=(h?Dt:vt)||Ie.key==="Enter"||Ie.key.trim()==="";if(g&&t){const Ze=j==null?void 0:j.nodesRef.current.find(It=>It.parentId==null),nt=j&&Ze?rW(j.nodesRef.current,Ze.id):null;if(mt&&nt&&T){const It=new KeyboardEvent("keydown",{key:Ie.key,bubbles:!0});if(wt||Mt){var _e,Ue;const ct=((_e=nt.context)==null?void 0:_e.elements.domReference)===Ie.currentTarget,Lt=Mt&&!ct?(Ue=nt.context)==null?void 0:Ue.elements.domReference:wt?o.current.find(Rt=>(Rt==null?void 0:Rt.id)===se):null;Lt&&(ou(Ie),Lt.dispatchEvent(It),Oe(void 0))}if((vt||ot)&&nt.context&&nt.context.open&&nt.parentId&&Ie.currentTarget!==nt.context.elements.domReference){var Qe;ou(Ie),(Qe=nt.context.elements.domReference)==null||Qe.dispatchEvent(It);return}}return Y(Ie)}if(!(!t&&!_&&Ye)){if(tt){const Ze=aw(Ie.key,Ce());$.current=h&&Ze?null:Ie.key}if(h){Dt&&(ou(Ie),t?(W.current=rS(o,le.current),z()):n(!0,Ie.nativeEvent,"list-navigation"));return}vt&&(c!=null&&(W.current=c),ou(Ie),!t&&_?n(!0,Ie.nativeEvent,"list-navigation"):Y(Ie),t&&z())}},onFocus(){t&&!g&&(W.current=-1,z())},onPointerDown:Me,onPointerEnter:Me,onMouseDown:Ee,onClick:Ee}},[se,Q,O,Y,le,y,o,h,z,n,t,_,x,Ce,p,c,j,g,T]);return me.useMemo(()=>l?{reference:we,floating:ie,item:Ne}:{},[l,we,ie,Ne])}const _Y=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function U5(r,e){var t,n;e===void 0&&(e={});const{open:i,elements:a,floatingId:o}=r,{enabled:s=!0,role:u="dialog"}=e,l=w2(),c=((t=a.domReference)==null?void 0:t.id)||l,f=me.useMemo(()=>{var _;return((_=Ex(a.floating))==null?void 0:_.id)||o},[a.floating,o]),d=(n=_Y.get(u))!=null?n:u,p=Up()!=null,g=me.useMemo(()=>d==="tooltip"||u==="label"?{["aria-"+(u==="label"?"labelledby":"describedby")]:i?f:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":d==="alertdialog"?"dialog":d,"aria-controls":i?f:void 0,...d==="listbox"&&{role:"combobox"},...d==="menu"&&{id:c},...d==="menu"&&p&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[d,f,p,i,c,u]),y=me.useMemo(()=>{const _={id:f,...d&&{role:d}};return d==="tooltip"||u==="label"?_:{..._,...d==="menu"&&{"aria-labelledby":c}}},[d,f,c,u]),b=me.useCallback(_=>{let{active:m,selected:x}=_;const E={role:"option",...m&&{id:f+"-fui-option"}};switch(u){case"select":case"combobox":return{...E,"aria-selected":x}}return{}},[f,u]);return me.useMemo(()=>s?{reference:g,floating:y,item:b}:{},[s,g,y,b])}const Vk=r=>r.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Yy(r,e){return typeof r=="function"?r(e):r}function wY(r,e){const[t,n]=me.useState(r);return r&&!t&&n(!0),me.useEffect(()=>{if(!r&&t){const i=setTimeout(()=>n(!1),e);return()=>clearTimeout(i)}},[r,t,e]),t}function xY(r,e){e===void 0&&(e={});const{open:t,elements:{floating:n}}=r,{duration:i=250}=e,o=(typeof i=="number"?i:i.close)||0,[s,u]=me.useState("unmounted"),l=wY(t,o);return!l&&s==="close"&&u("unmounted"),Di(()=>{if(n){if(t){u("initial");const c=requestAnimationFrame(()=>{y2.flushSync(()=>{u("open")})});return()=>{cancelAnimationFrame(c)}}u("close")}},[t,n]),{isMounted:l,status:s}}function EY(r,e){e===void 0&&(e={});const{initial:t={opacity:0},open:n,close:i,common:a,duration:o=250}=e,s=r.placement,u=s.split("-")[0],l=me.useMemo(()=>({side:u,placement:s}),[u,s]),c=typeof o=="number",f=(c?o:o.open)||0,d=(c?o:o.close)||0,[h,p]=me.useState(()=>({...Yy(a,l),...Yy(t,l)})),{isMounted:g,status:y}=xY(r,{duration:o}),b=Ls(t),_=Ls(n),m=Ls(i),x=Ls(a);return Di(()=>{const E=Yy(b.current,l),O=Yy(m.current,l),S=Yy(x.current,l),T=Yy(_.current,l)||Object.keys(E).reduce((P,I)=>(P[I]="",P),{});if(y==="initial"&&p(P=>({transitionProperty:P.transitionProperty,...S,...E})),y==="open"&&p({transitionProperty:Object.keys(T).map(Vk).join(","),transitionDuration:f+"ms",...S,...T}),y==="close"){const P=O||E;p({transitionProperty:Object.keys(P).map(Vk).join(","),transitionDuration:d+"ms",...S,...P})}},[d,m,b,_,x,f,y,l]),{isMounted:g,styles:h}}function SY(r,e){var t;const{open:n,dataRef:i}=r,{listRef:a,activeIndex:o,onMatch:s,onTypingChange:u,enabled:l=!0,findMatch:c=null,resetMs:f=750,ignoreKeys:d=[],selectedIndex:h=null}=e,p=me.useRef(-1),g=me.useRef(""),y=me.useRef((t=h??o)!=null?t:-1),b=me.useRef(null),_=Wa(s),m=Wa(u),x=Ls(c),E=Ls(d);Di(()=>{n&&(au(p),b.current=null,g.current="")},[n]),Di(()=>{if(n&&g.current===""){var I;y.current=(I=h??o)!=null?I:-1}},[n,h,o]);const O=Wa(I=>{I?i.current.typing||(i.current.typing=I,m(I)):i.current.typing&&(i.current.typing=I,m(I))}),S=Wa(I=>{function k(H,q,W){const $=x.current?x.current(q,W):q.find(J=>(J==null?void 0:J.toLocaleLowerCase().indexOf(W.toLocaleLowerCase()))===0);return $?H.indexOf($):-1}const L=a.current;if(g.current.length>0&&g.current[0]!==" "&&(k(L,L,g.current)===-1?O(!1):I.key===" "&&ou(I)),L==null||E.current.includes(I.key)||I.key.length!==1||I.ctrlKey||I.metaKey||I.altKey)return;n&&I.key!==" "&&(ou(I),O(!0)),L.every(H=>{var q,W;return H?((q=H[0])==null?void 0:q.toLocaleLowerCase())!==((W=H[1])==null?void 0:W.toLocaleLowerCase()):!0})&&g.current===I.key&&(g.current="",y.current=b.current),g.current+=I.key,au(p),p.current=window.setTimeout(()=>{g.current="",y.current=b.current,O(!1)},f);const j=y.current,z=k(L,[...L.slice((j||0)+1),...L.slice(0,(j||0)+1)],g.current);z!==-1?(_(z),b.current=z):I.key!==" "&&(g.current="",O(!1))}),T=me.useMemo(()=>({onKeyDown:S}),[S]),P=me.useMemo(()=>({onKeyDown:S,onKeyUp(I){I.key===" "&&O(!1)}}),[S,O]);return me.useMemo(()=>l?{reference:T,floating:P}:{},[l,T,P])}function M7(r,e,t){return t===void 0&&(t=!0),r.filter(i=>{var a;return i.parentId===e&&(!t||((a=i.context)==null?void 0:a.open))}).flatMap(i=>[i,...M7(r,i.id,t)])}function Hk(r,e){const[t,n]=r;let i=!1;const a=e.length;for(let o=0,s=a-1;o=n!=f>=n&&t<=(c-u)*(n-l)/(f-l)+u&&(i=!i)}return i}function OY(r,e){return r[0]>=e.x&&r[0]<=e.x+e.width&&r[1]>=e.y&&r[1]<=e.y+e.height}function D7(r){r===void 0&&(r={});const{buffer:e=.5,blockPointerEvents:t=!1,requireIntent:n=!0}=r,i={current:-1};let a=!1,o=null,s=null,u=typeof performance<"u"?performance.now():0;function l(f,d){const h=performance.now(),p=h-u;if(o===null||s===null||p===0)return o=f,s=d,u=h,null;const g=f-o,y=d-s,_=Math.sqrt(g*g+y*y)/p;return o=f,s=d,u=h,_}const c=f=>{let{x:d,y:h,placement:p,elements:g,onClose:y,nodeId:b,tree:_}=f;return function(x){function E(){au(i),y()}if(au(i),!g.domReference||!g.floating||p==null||d==null||h==null)return;const{clientX:O,clientY:S}=x,T=[O,S],P=eY(x),I=x.type==="mouseleave",k=sS(g.floating,P),L=sS(g.domReference,P),B=g.domReference.getBoundingClientRect(),j=g.floating.getBoundingClientRect(),z=p.split("-")[0],H=d>j.right-j.width/2,q=h>j.bottom-j.height/2,W=OY(T,B),$=j.width>B.width,J=j.height>B.height,X=($?B:j).left,Z=($?B:j).right,ue=(J?B:j).top,re=(J?B:j).bottom;if(k&&(a=!0,!I))return;if(L&&(a=!1),L&&!I){a=!0;return}if(I&&da(x.relatedTarget)&&sS(g.floating,x.relatedTarget)||_&&M7(_.nodesRef.current,b).length)return;if(z==="top"&&h>=B.bottom-1||z==="bottom"&&h<=B.top+1||z==="left"&&d>=B.right-1||z==="right"&&d<=B.left+1)return E();let ne=[];switch(z){case"top":ne=[[X,B.top+1],[X,j.bottom-1],[Z,j.bottom-1],[Z,B.top+1]];break;case"bottom":ne=[[X,j.top+1],[X,B.bottom-1],[Z,B.bottom-1],[Z,j.top+1]];break;case"left":ne=[[j.right-1,re],[j.right-1,ue],[B.left+1,ue],[B.left+1,re]];break;case"right":ne=[[B.right-1,re],[B.right-1,ue],[j.left+1,ue],[j.left+1,re]];break}function le(ce){let[pe,fe]=ce;switch(z){case"top":{const se=[$?pe+e/2:H?pe+e*4:pe-e*4,fe+e+1],de=[$?pe-e/2:H?pe+e*4:pe-e*4,fe+e+1],ge=[[j.left,H||$?j.bottom-e:j.top],[j.right,H?$?j.bottom-e:j.top:j.bottom-e]];return[se,de,...ge]}case"bottom":{const se=[$?pe+e/2:H?pe+e*4:pe-e*4,fe-e],de=[$?pe-e/2:H?pe+e*4:pe-e*4,fe-e],ge=[[j.left,H||$?j.top+e:j.bottom],[j.right,H?$?j.top+e:j.bottom:j.top+e]];return[se,de,...ge]}case"left":{const se=[pe+e+1,J?fe+e/2:q?fe+e*4:fe-e*4],de=[pe+e+1,J?fe-e/2:q?fe+e*4:fe-e*4];return[...[[q||J?j.right-e:j.left,j.top],[q?J?j.right-e:j.left:j.right-e,j.bottom]],se,de]}case"right":{const se=[pe-e,J?fe+e/2:q?fe+e*4:fe-e*4],de=[pe-e,J?fe-e/2:q?fe+e*4:fe-e*4],ge=[[q||J?j.left+e:j.right,j.top],[q?J?j.left+e:j.right:j.left+e,j.bottom]];return[se,de,...ge]}}}if(!Hk([O,S],ne)){if(a&&!W)return E();if(!I&&n){const ce=l(x.clientX,x.clientY);if(ce!==null&&ce<.1)return E()}Hk([O,S],le([d,h]))?!a&&n&&(i.current=window.setTimeout(E,40)):E()}}};return c.__options={blockPointerEvents:t},c}const v1=({shouldWrap:r,wrap:e,children:t})=>r?e(t):t,TY=ao.createContext(null),z5=()=>!!me.useContext(TY),CY=me.createContext(void 0),AY=me.createContext(void 0),E2=()=>{let r=me.useContext(CY);r===void 0&&(r="light");const e=me.useContext(AY);return{theme:r,themeClassName:`ndl-theme-${r}`,tokens:e}};function RY({isInitialOpen:r=!1,placement:e="top",isOpen:t,onOpenChange:n,type:i="simple",isPortaled:a=!0,strategy:o="absolute",hoverDelay:s=void 0,shouldCloseOnReferenceClick:u=!1,autoUpdateOptions:l,isDisabled:c=!1}={}){const[f,d]=me.useState(r),h=t??f,p=n??d,g=B5({middleware:[P5(5),D5({crossAxis:e.includes("-"),fallbackAxisSideDirection:"start",padding:5}),M5({padding:5})],onOpenChange:p,open:h,placement:e,strategy:o,whileElementsMounted(S,T,P){return R5(S,T,P,Object.assign({},l))}}),y=g.context,b=C7(y,{delay:s,enabled:i==="simple"&&!c,handleClose:D7(),move:!1}),_=L5(y,{enabled:i==="rich"&&!c}),m=yY(y,{enabled:i==="simple"&&!c,visibleOnly:!0}),x=j5(y,{escapeKey:!0,outsidePress:!0,referencePress:u}),E=U5(y,{role:i==="simple"?"tooltip":"dialog"}),O=F5([b,m,x,E,_]);return me.useMemo(()=>Object.assign(Object.assign({isOpen:h,isPortaled:a,setOpen:p,type:i},O),g),[h,p,i,a,O,g])}const k7=me.createContext(null),q1=()=>{const r=me.useContext(k7);if(r===null)throw new Error("Tooltip components must be wrapped in ");return r};var G1=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{const d=z5(),g=RY({autoUpdateOptions:f,hoverDelay:l,isDisabled:e,isInitialOpen:n,isOpen:e===!0?!1:a,isPortaled:s??!d,onOpenChange:o,placement:i,shouldCloseOnReferenceClick:c,strategy:u??(d?"fixed":"absolute"),type:t});return Te.jsx(k7.Provider,{value:g,children:r})};I7.displayName="Tooltip";const PY=r=>{var{children:e,hasButtonWrapper:t=!1,htmlAttributes:n,className:i,style:a,ref:o}=r,s=G1(r,["children","hasButtonWrapper","htmlAttributes","className","style","ref"]);const u=q1(),l=e.props,c=mv([u.refs.setReference,o,l==null?void 0:l.ref]),f=Vn({"ndl-closed":!u.isOpen,"ndl-open":u.isOpen},"ndl-tooltip-trigger",i);if(t&&me.isValidElement(e)){const d=Object.assign(Object.assign(Object.assign({className:f},n),l),{ref:c});return me.cloneElement(e,u.getReferenceProps(d))}return Te.jsx("button",Object.assign({type:"button",className:f,style:a,ref:c},u.getReferenceProps(n),s,{children:e}))},MY=r=>{var{children:e,style:t,htmlAttributes:n,className:i,ref:a}=r,o=G1(r,["children","style","htmlAttributes","className","ref"]);const s=q1(),u=mv([s.refs.setFloating,a]),{themeClassName:l}=E2();if(!s.isOpen)return null;const c=Vn("ndl-tooltip-content",l,i,{"ndl-tooltip-content-rich":s.type==="rich","ndl-tooltip-content-simple":s.type==="simple"});return s.type==="simple"?Te.jsx(v1,{shouldWrap:s.isPortaled,wrap:f=>Te.jsx(Tx,{children:f}),children:Te.jsx("div",Object.assign({ref:u,className:c,style:Object.assign(Object.assign({},s.floatingStyles),t)},o,s.getFloatingProps(n),{children:Te.jsx(Ed,{variant:"body-medium",children:e})}))}):Te.jsx(v1,{shouldWrap:s.isPortaled,wrap:f=>Te.jsx(Tx,{children:f}),children:Te.jsx(N5,{context:s.context,returnFocus:!0,modal:!1,initialFocus:-1,closeOnFocusOut:!0,children:Te.jsx("div",Object.assign({ref:u,className:c,style:Object.assign(Object.assign({},s.floatingStyles),t)},o,s.getFloatingProps(n),{children:e}))})})},DY=r=>{var{children:e,passThroughProps:t,typographyVariant:n="subheading-medium",className:i,style:a,htmlAttributes:o,ref:s}=r,u=G1(r,["children","passThroughProps","typographyVariant","className","style","htmlAttributes","ref"]);const l=q1(),c=Vn("ndl-tooltip-header",i);return l.isOpen?Te.jsx(Ed,Object.assign({ref:s,variant:n,className:c,style:a,htmlAttributes:o},t,u,{children:e})):null},kY=r=>{var{children:e,className:t,style:n,htmlAttributes:i,passThroughProps:a,ref:o}=r,s=G1(r,["children","className","style","htmlAttributes","passThroughProps","ref"]);const u=q1(),l=Vn("ndl-tooltip-body",t);return u.isOpen?Te.jsx(Ed,Object.assign({ref:o,variant:"body-medium",className:l,style:n,htmlAttributes:i},a,s,{children:e})):null},IY=r=>{var{children:e,className:t,style:n,htmlAttributes:i,ref:a}=r,o=G1(r,["children","className","style","htmlAttributes","ref"]);const s=q1(),u=mv([s.refs.setFloating,a]);if(!s.isOpen)return null;const l=Vn("ndl-tooltip-actions",t);return Te.jsx("div",Object.assign({className:l,ref:u,style:n},o,i,{children:e}))},Bf=Object.assign(I7,{Actions:IY,Body:kY,Content:MY,Header:DY,Trigger:PY});var NY=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var e,{children:t,as:n,iconButtonVariant:i="default",isLoading:a=!1,isDisabled:o=!1,size:s="medium",isFloating:u=!1,isActive:l=void 0,description:c,tooltipProps:f,className:d,style:h,variant:p="neutral",htmlAttributes:g,onClick:y,ref:b}=r,_=NY(r,["children","as","iconButtonVariant","isLoading","isDisabled","size","isFloating","isActive","description","tooltipProps","className","style","variant","htmlAttributes","onClick","ref"]);const m=n??"button",x=!o&&!a,E=i==="clean",S=Vn("ndl-icon-btn",d,{"ndl-active":!!l,"ndl-clean":E,"ndl-danger":p==="danger","ndl-disabled":o,"ndl-floating":u,"ndl-large":s==="large","ndl-loading":a,"ndl-medium":s==="medium","ndl-small":s==="small"});if(E&&u)throw new Error('BaseIconButton: Cannot use isFloating and iconButtonVariant="clean" at the same time.');!c&&!(g!=null&&g["aria-label"])&&eM("Icon buttons do not have text, be sure to include a description or an aria-label for screen readers link: https://dequeuniversity.com/rules/axe/4.4/button-name?application=axeAPI");const T=P=>{if(!x){P.preventDefault(),P.stopPropagation();return}y&&y(P)};return Te.jsxs(Bf,Object.assign({hoverDelay:{close:0,open:500},isDisabled:c===null||o,type:"simple"},f==null?void 0:f.root,{children:[Te.jsx(Bf.Trigger,Object.assign({},f==null?void 0:f.trigger,{hasButtonWrapper:!0,children:Te.jsx(m,Object.assign({type:"button",onClick:T,disabled:o,"aria-disabled":!x,"aria-label":c,"aria-pressed":l,className:S,style:h,ref:b},_,g,{children:Te.jsx("div",{className:"ndl-icon-btn-inner",children:a?Te.jsx(h1,{size:"small"}):Te.jsx("div",{className:"ndl-icon",children:t})})}))})),Te.jsx(Bf.Content,Object.assign({},f==null?void 0:f.content,{children:c??((e=f==null?void 0:f.content)===null||e===void 0?void 0:e.children)}))]}))};var LY=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,as:t,isLoading:n=!1,isDisabled:i=!1,size:a="medium",isActive:o,variant:s="neutral",description:u,tooltipProps:l,className:c,style:f,htmlAttributes:d,onClick:h,ref:p}=r,g=LY(r,["children","as","isLoading","isDisabled","size","isActive","variant","description","tooltipProps","className","style","htmlAttributes","onClick","ref"]);return Te.jsx(N7,Object.assign({as:t,iconButtonVariant:"clean",isDisabled:i,size:a,isLoading:n,isActive:o,variant:s,description:u,tooltipProps:l,className:c,style:f,htmlAttributes:d,onClick:h,ref:p},g,{children:e}))};function jY({state:r,onChange:e,isControlled:t,inputType:n="text"}){const[i,a]=me.useState(r),o=me.useMemo(()=>t===!0?r:i,[t,r,i]),s=me.useCallback(u=>{let l;["checkbox","radio","switch"].includes(n)?l=u.target.checked:l=u.target.value,t!==!0&&a(l),e==null||e(u)},[t,e,n]);return[o,s]}function BY({isInitialOpen:r=!1,placement:e="bottom",isOpen:t,onOpenChange:n,offsetOption:i=10,anchorElement:a,anchorPosition:o,anchorElementAsPortalAnchor:s,shouldCaptureFocus:u,initialFocus:l,role:c,closeOnClickOutside:f,strategy:d="absolute",isPortaled:h=!0}={}){var p;const[g,y]=me.useState(r),[b,_]=me.useState(),[m,x]=me.useState(),E=t??g,O=n??y,S=B5({elements:{reference:a},middleware:[P5(i),D5({crossAxis:e.includes("-"),fallbackAxisSideDirection:"end",padding:5}),M5()],onOpenChange:(z,H)=>{O(z),n==null||n(z,H)},open:E,placement:e,strategy:d,whileElementsMounted:R5}),T=S.context,P=L5(T,{enabled:t===void 0}),I=j5(T,{outsidePress:f}),k=U5(T,{role:c}),L=hY(T,{enabled:o!==void 0,x:o==null?void 0:o.x,y:o==null?void 0:o.y}),B=F5([P,I,k,L]),{styles:j}=EY(T,{duration:(p=Number.parseInt(Xu.motion.duration.quick))!==null&&p!==void 0?p:0});return me.useMemo(()=>Object.assign(Object.assign(Object.assign({isOpen:E,setIsOpen:O},B),S),{transitionStyles:j,labelId:b,descriptionId:m,setLabelId:_,setDescriptionId:x,anchorElementAsPortalAnchor:s,shouldCaptureFocus:u,initialFocus:l,isPortaled:h}),[E,O,B,S,j,b,m,s,u,l,h])}function FY(){me.useEffect(()=>{const r=()=>{document.querySelectorAll("[data-floating-ui-focus-guard]").forEach(n=>{n.setAttribute("aria-hidden","true"),n.removeAttribute("role")})};r();const e=new MutationObserver(()=>{r()});return e.observe(document.body,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[])}var uM=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{const r=ao.useContext(j7);if(r===null)throw new Error("Popover components must be wrapped in ");return r},UY=({children:r,anchorElement:e,placement:t,isOpen:n,offset:i,anchorPosition:a,hasAnchorPortal:o,shouldCaptureFocus:s=!1,initialFocus:u,onOpenChange:l,role:c,closeOnClickOutside:f=!0,isPortaled:d,strategy:h})=>{const p=z5(),g=p?"fixed":"absolute",_=BY({anchorElement:e,anchorElementAsPortalAnchor:o??p,anchorPosition:a,closeOnClickOutside:f,initialFocus:u,isOpen:n,isPortaled:d??!p,offsetOption:i,onOpenChange:l,placement:t?L7[t]:void 0,role:c,shouldCaptureFocus:s,strategy:h??g});return Te.jsx(j7.Provider,{value:_,children:r})},zY=r=>{var{children:e,hasButtonWrapper:t=!1,ref:n}=r,i=uM(r,["children","hasButtonWrapper","ref"]);const a=B7(),o=e.props,s=mv([a.refs.setReference,n,o==null?void 0:o.ref]);return t&&ao.isValidElement(e)?ao.cloneElement(e,a.getReferenceProps(Object.assign(Object.assign(Object.assign({},i),o),{"data-state":a.isOpen?"open":"closed",ref:s}))):Te.jsx("button",Object.assign({ref:a.refs.setReference,type:"button","data-state":a.isOpen?"open":"closed"},a.getReferenceProps(i),{children:e}))},qY=r=>{var{as:e,className:t,style:n,children:i,htmlAttributes:a,ref:o}=r,s=uM(r,["as","className","style","children","htmlAttributes","ref"]);const u=B7(),{context:l}=u,c=uM(u,["context"]),f=mv([c.refs.setFloating,o]),{themeClassName:d}=E2(),h=Vn("ndl-popover",d,t),p=e??"div";return FY(),l.open?Te.jsx(v1,{shouldWrap:c.isPortaled,wrap:g=>{var y;return Te.jsx(Tx,{root:(y=c.anchorElementAsPortalAnchor)!==null&&y!==void 0&&y?c.refs.reference.current:void 0,children:g})},children:Te.jsx(N5,{context:l,modal:c.shouldCaptureFocus,initialFocus:c.initialFocus,children:Te.jsx(p,Object.assign({className:h,"aria-labelledby":c.labelId,"aria-describedby":c.descriptionId,style:Object.assign(Object.assign(Object.assign({},c.floatingStyles),c.transitionStyles),n),ref:f},c.getFloatingProps(Object.assign({},a)),s,{children:i}))})}):null};Object.assign(UY,{Content:qY,Trigger:zY});var Xm=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i({}),isOpen:!1,setActiveIndex:()=>{},setHasFocusInside:()=>{}}),GY=r=>Up()===null?Te.jsx(JW,{children:Te.jsx(Wk,Object.assign({},r,{isRoot:!0}))}):Te.jsx(Wk,Object.assign({},r)),Wk=({children:r,isOpen:e,onClose:t,isRoot:n,anchorRef:i,as:a,className:o,placement:s,minWidth:u,title:l,isDisabled:c,description:f,icon:d,isPortaled:h=!0,portalTarget:p,htmlAttributes:g,strategy:y,ref:b,style:_})=>{const[m,x]=me.useState(!1),[E,O]=me.useState(!1),[S,T]=me.useState(null),P=me.useRef([]),I=me.useRef([]),k=me.useContext(p1),L=z5(),B=bv(),j=ZW(),z=Up(),H=b2(),{themeClassName:q}=E2();me.useEffect(()=>{e!==void 0&&x(e)},[e]),me.useEffect(()=>{m&&T(0)},[m]);const W=a??"div",$=z!==null,J=$?"right-start":"bottom-start",{floatingStyles:X,refs:Z,context:ue}=B5({elements:{reference:i==null?void 0:i.current},middleware:[P5({alignmentAxis:$?-4:0,mainAxis:$?0:4}),D5({fallbackPlacements:["left-start","right-start"]}),M5()],nodeId:j,onOpenChange:(Ne,Ce)=>{e===void 0&&x(Ne),Ne||(Ce instanceof PointerEvent?t==null||t(Ce,{type:"backdropClick"}):Ce instanceof KeyboardEvent?t==null||t(Ce,{type:"escapeKeyDown"}):Ce instanceof FocusEvent&&(t==null||t(Ce,{type:"focusOut"})))},open:m,placement:s?L7[s]:J,strategy:y??(L?"fixed":"absolute"),whileElementsMounted:R5}),re=C7(ue,{delay:{open:75},enabled:$,handleClose:D7({blockPointerEvents:!0})}),ne=L5(ue,{event:"mousedown",ignoreMouse:$,toggle:!$}),le=U5(ue,{role:"menu"}),ce=j5(ue,{bubbles:!0}),pe=bY(ue,{activeIndex:S,listRef:P,nested:$,onNavigate:T}),fe=SY(ue,{activeIndex:S,listRef:I,onMatch:m?T:void 0}),{getReferenceProps:se,getFloatingProps:de,getItemProps:ge}=F5([re,ne,le,ce,pe,fe]);me.useEffect(()=>{if(!B)return;function Ne(Y){e===void 0&&x(!1),t==null||t(void 0,{id:Y==null?void 0:Y.id,type:"itemClick"})}function Ce(Y){Y.nodeId!==j&&Y.parentId===z&&(e===void 0&&x(!1),t==null||t(void 0,{type:"itemClick"}))}return B.events.on("click",Ne),B.events.on("menuopen",Ce),()=>{B.events.off("click",Ne),B.events.off("menuopen",Ce)}},[B,j,z,t,e]),me.useEffect(()=>{m&&B&&B.events.emit("menuopen",{nodeId:j,parentId:z})},[B,m,j,z]);const Oe=me.useCallback(Ne=>{Ne.key==="Tab"&&Ne.shiftKey&&requestAnimationFrame(()=>{const Ce=Z.floating.current;Ce&&!Ce.contains(document.activeElement)&&(e===void 0&&x(!1),t==null||t(void 0,{type:"focusOut"}))})},[e,t,Z]),ke=Vn("ndl-menu",q,o),De=mv([Z.setReference,H.ref,b]);return Te.jsxs(QW,{id:j,children:[n!==!0&&Te.jsx(HY,{ref:De,className:$?"MenuItem":"RootMenu",isDisabled:c,style:_,htmlAttributes:Object.assign(Object.assign({"data-focus-inside":E?"":void 0,"data-nested":$?"":void 0,"data-open":m?"":void 0,role:$?"menuitem":void 0,tabIndex:$?k.activeIndex===H.index?0:-1:void 0},g),se(k.getItemProps({onFocus(Ne){var Ce;(Ce=g==null?void 0:g.onFocus)===null||Ce===void 0||Ce.call(g,Ne),O(!1),k.setHasFocusInside(!0)}}))),title:l,description:f,leadingVisual:d}),Te.jsx(p1.Provider,{value:{activeIndex:S,getItemProps:ge,isOpen:c===!0?!1:m,setActiveIndex:T,setHasFocusInside:O},children:Te.jsx(HW,{elementsRef:P,labelsRef:I,children:m&&Te.jsx(v1,{shouldWrap:h,wrap:Ne=>Te.jsx(Tx,{root:p,children:Ne}),children:Te.jsx(N5,{context:ue,modal:!1,initialFocus:0,returnFocus:!$,closeOnFocusOut:!0,guards:!0,children:Te.jsx(W,Object.assign({ref:Z.setFloating,className:ke,style:Object.assign(Object.assign({minWidth:u!==void 0?`${u}px`:void 0},X),_)},de({onKeyDown:Oe}),{children:r}))})})})})]})},q5=r=>{var{title:e,leadingContent:t,trailingContent:n,preLeadingContent:i,description:a,isDisabled:o,as:s,className:u,style:l,htmlAttributes:c,ref:f}=r,d=Xm(r,["title","leadingContent","trailingContent","preLeadingContent","description","isDisabled","as","className","style","htmlAttributes","ref"]);const h=Vn("ndl-menu-item",u,{"ndl-disabled":o}),p=s??"button";return Te.jsx(p,Object.assign({className:h,ref:f,type:"button",role:"menuitem",disabled:o,style:l},d,c,{children:Te.jsxs("div",{className:"ndl-menu-item-inner",children:[!!i&&Te.jsx("div",{className:"ndl-menu-item-pre-leading-content",children:i}),!!t&&Te.jsx("div",{className:"ndl-menu-item-leading-content",children:t}),Te.jsxs("div",{className:"ndl-menu-item-title-wrapper",children:[Te.jsx("div",{className:"ndl-menu-item-title",children:e}),!!a&&Te.jsx("div",{className:"ndl-menu-item-description",children:a})]}),!!n&&Te.jsx("div",{className:"ndl-menu-item-trailing-content",children:n})]})}))},VY=r=>{var{title:e,className:t,style:n,leadingVisual:i,trailingContent:a,description:o,isDisabled:s,as:u,onClick:l,onFocus:c,htmlAttributes:f,id:d,ref:h}=r,p=Xm(r,["title","className","style","leadingVisual","trailingContent","description","isDisabled","as","onClick","onFocus","htmlAttributes","id","ref"]);const g=me.useContext(p1),b=b2({label:s===!0?null:typeof e=="string"?e:void 0}),_=bv(),m=b.index===g.activeIndex,x=mv([b.ref,h]);return Te.jsx(q5,Object.assign({as:u??"button",style:n,className:t,ref:x,title:e,description:o,leadingContent:i,trailingContent:a,isDisabled:s,htmlAttributes:Object.assign(Object.assign(Object.assign({},f),{tabIndex:m?0:-1}),g.getItemProps({id:d,onClick(E){l==null||l(E),_==null||_.events.emit("click",{id:d})},onFocus(E){c==null||c(E),g.setHasFocusInside(!0)}}))},p))},HY=({title:r,isDisabled:e,description:t,leadingVisual:n,as:i,onFocus:a,onClick:o,className:s,style:u,htmlAttributes:l,id:c,ref:f})=>{const d=me.useContext(p1),p=b2({label:e===!0?null:typeof r=="string"?r:void 0}),g=p.index===d.activeIndex,y=mv([p.ref,f]);return Te.jsx(q5,{as:i??"button",style:u,className:s,ref:y,title:r,description:t,leadingContent:n,trailingContent:Te.jsx(Y9,{className:"ndl-menu-item-chevron"}),isDisabled:e,htmlAttributes:Object.assign(Object.assign(Object.assign(Object.assign({},l),{tabIndex:g?0:-1}),d.getItemProps({onClick(b){o==null||o(b)},onFocus(b){a==null||a(b),d.setHasFocusInside(!0)},onTouchStart(){d.setHasFocusInside(!0)}})),{id:c})})},WY=r=>{var{children:e,className:t,style:n,as:i,htmlAttributes:a,ref:o}=r,s=Xm(r,["children","className","style","as","htmlAttributes","ref"]);const u=Vn("ndl-menu-category-item",t),l=i??"div";return Te.jsx(l,Object.assign({className:u,style:n,ref:o},s,a,{children:e}))},YY=r=>{var{title:e,leadingVisual:t,trailingContent:n,description:i,isDisabled:a,isChecked:o=!1,onClick:s,onFocus:u,className:l,style:c,as:f,id:d,htmlAttributes:h,ref:p}=r,g=Xm(r,["title","leadingVisual","trailingContent","description","isDisabled","isChecked","onClick","onFocus","className","style","as","id","htmlAttributes","ref"]);const y=me.useContext(p1),_=b2({label:a===!0?null:typeof e=="string"?e:void 0}),m=bv(),x=_.index===y.activeIndex,E=mv([_.ref,p]),O=Vn("ndl-menu-radio-item",l,{"ndl-checked":o});return Te.jsx(q5,Object.assign({as:f??"button",style:c,className:O,ref:E,title:e,description:i,preLeadingContent:o?Te.jsx(jV,{className:"n-size-5 n-shrink-0 n-self-center"}):null,leadingContent:t,trailingContent:n,isDisabled:a,htmlAttributes:Object.assign(Object.assign(Object.assign({},h),{"aria-checked":o,role:"menuitemradio",tabIndex:x?0:-1}),y.getItemProps({id:d,onClick(S){s==null||s(S),m==null||m.events.emit("click",{id:d})},onFocus(S){u==null||u(S),y.setHasFocusInside(!0)}}))},g))},XY=r=>{var{as:e,children:t,className:n,htmlAttributes:i,style:a,ref:o}=r,s=Xm(r,["as","children","className","htmlAttributes","style","ref"]);const u=Vn("ndl-menu-items",n),l=e??"div";return Te.jsx(l,Object.assign({className:u,style:a,ref:o},s,i,{children:t}))},$Y=r=>{var{children:e,className:t,htmlAttributes:n,style:i,ref:a}=r,o=Xm(r,["children","className","htmlAttributes","style","ref"]);const s=Vn("ndl-menu-group",t);return Te.jsx("div",Object.assign({className:s,style:i,ref:a,role:"group"},o,n,{children:e}))},Lm=Object.assign(GY,{CategoryItem:WY,Divider:tM,Group:$Y,Item:VY,Items:XY,RadioItem:YY}),KY="aria label not detected when using a custom label, be sure to include an aria label for screen readers link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI";var ZY=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{as:e,shape:t="rectangular",className:n,style:i,height:a,width:o,isLoading:s=!0,children:u,htmlAttributes:l,onBackground:c="default",ref:f}=r,d=ZY(r,["as","shape","className","style","height","width","isLoading","children","htmlAttributes","onBackground","ref"]);const h=e??"div",p=Vn(`ndl-skeleton ndl-skeleton-${t}`,c&&`ndl-skeleton-${c}`,n);return Te.jsx(v1,{shouldWrap:s,wrap:g=>Te.jsx(h,Object.assign({ref:f,className:p,style:Object.assign(Object.assign({},i),{height:a,width:o}),"aria-busy":!0,tabIndex:-1},d,l,{children:Te.jsx("div",{"aria-hidden":s,className:"ndl-skeleton-content",tabIndex:-1,children:g})})),children:u})};cb.displayName="Skeleton";var QY=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{label:e,isFluid:t,errorText:n,helpText:i,leadingElement:a,trailingElement:o,showRequiredOrOptionalLabel:s=!1,moreInformationText:u,size:l="medium",placeholder:c,value:f,tooltipProps:d,htmlAttributes:h,isDisabled:p,isReadOnly:g,isRequired:y,onChange:b,isClearable:_=!1,className:m,style:x,isSkeletonLoading:E=!1,isLoading:O=!1,skeletonProps:S,ref:T}=r,P=QY(r,["label","isFluid","errorText","helpText","leadingElement","trailingElement","showRequiredOrOptionalLabel","moreInformationText","size","placeholder","value","tooltipProps","htmlAttributes","isDisabled","isReadOnly","isRequired","onChange","isClearable","className","style","isSkeletonLoading","isLoading","skeletonProps","ref"]);const[I,k]=jY({inputType:"text",isControlled:f!==void 0,onChange:b,state:f??""}),L=me.useId(),B=me.useId(),j=me.useId(),z=Vn("ndl-text-input",m,{"ndl-disabled":p,"ndl-has-error":n,"ndl-has-icon":a||o||n,"ndl-has-leading-icon":a,"ndl-has-trailing-icon":o||n,"ndl-large":l==="large","ndl-medium":l==="medium","ndl-read-only":g,"ndl-small":l==="small"}),H=e==null||e==="",q=Vn("ndl-form-item-label",{"ndl-fluid":t,"ndl-form-item-no-label":H}),W=Object.assign(Object.assign({},h),{className:Vn("ndl-input",h==null?void 0:h.className)}),$=W["aria-label"],X=!!e&&typeof e!="string"&&($===void 0||$===""),Z=_||O,ue=le=>{var ce;_&&le.key==="Escape"&&I&&(le.preventDefault(),le.stopPropagation(),k==null||k({target:{value:""}})),(ce=h==null?void 0:h.onKeyDown)===null||ce===void 0||ce.call(h,le)};me.useMemo(()=>{!e&&!$&&eM("A TextInput without a label does not have an aria label, be sure to include an aria label for screen readers. Link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI"),X&&eM(KY)},[e,$,X]);const re=Vn({"ndl-information-icon-large":l==="large","ndl-information-icon-small":l==="small"||l==="medium"}),ne=me.useMemo(()=>{const le=[L];return i&&!n?le.push(B):n&&le.push(j),le.join(" ")},[L,i,n,B,j]);return Te.jsxs("div",{className:z,style:x,children:[Te.jsxs("label",{className:q,children:[!H&&Te.jsx(cb,Object.assign({onBackground:"weak",shape:"rectangular"},S,{isLoading:E,children:Te.jsxs("div",{className:"ndl-label-text-wrapper",children:[Te.jsx(Ed,{variant:l==="large"?"body-large":"body-medium",className:"ndl-label-text",children:e}),!!u&&Te.jsxs(Bf,Object.assign({},d==null?void 0:d.root,{type:"simple",children:[Te.jsx(Bf.Trigger,Object.assign({},d==null?void 0:d.trigger,{className:re,hasButtonWrapper:!0,children:Te.jsx("div",{tabIndex:0,role:"button","aria-label":"Information icon",children:Te.jsx(KV,{})})})),Te.jsx(Bf.Content,Object.assign({},d==null?void 0:d.content,{children:u}))]})),s&&Te.jsx(Ed,{variant:l==="large"?"body-large":"body-medium",className:"ndl-form-item-optional",children:y===!0?"Required":"Optional"})]})})),Te.jsx(cb,Object.assign({onBackground:"weak",shape:"rectangular"},S,{isLoading:E,children:Te.jsxs("div",{className:"ndl-input-wrapper",children:[(a||O&&!o)&&Te.jsx("div",{className:"ndl-element-leading ndl-element",children:O?Te.jsx(h1,{size:l==="large"?"medium":"small",className:l==="large"?"ndl-medium-spinner":"ndl-small-spinner"}):a}),Te.jsxs("div",{className:Vn("ndl-input-container",{"ndl-clearable":_}),children:[Te.jsx("input",Object.assign({ref:T,readOnly:g,disabled:p,required:y,value:I,placeholder:c,type:"text",onChange:k,"aria-describedby":ne},W,{onKeyDown:ue},P)),Z&&Te.jsxs("span",{id:L,className:"ndl-text-input-hint","aria-hidden":!0,children:[O&&"Loading ",_&&"Press Escape to clear input."]}),_&&!!I&&Te.jsx("div",{className:"ndl-element-clear ndl-element",children:Te.jsx("button",{tabIndex:-1,"aria-hidden":!0,type:"button",title:"Clear input (Esc)",onClick:()=>{k==null||k({target:{value:""}})},children:Te.jsx(X9,{className:"n-size-4"})})})]}),o&&Te.jsx("div",{className:"ndl-element-trailing ndl-element",children:O&&!a?Te.jsx(h1,{size:l==="large"?"medium":"small",className:l==="large"?"ndl-medium-spinner":"ndl-small-spinner"}):o})]})}))]}),!!i&&!n&&Te.jsx(cb,{onBackground:"weak",shape:"rectangular",isLoading:E,children:Te.jsx(Ed,{variant:l==="large"?"body-medium":"body-small",className:"ndl-form-message",htmlAttributes:{"aria-live":"polite",id:B},children:i})}),!!n&&Te.jsx(cb,Object.assign({onBackground:"weak",shape:"rectangular",width:"fit-content"},S,{isLoading:E,children:Te.jsxs("div",{className:"ndl-form-message",children:[Te.jsx("div",{className:"ndl-error-icon",children:Te.jsx(dH,{})}),Te.jsx(Ed,{className:"ndl-error-text",variant:l==="large"?"body-medium":"body-small",htmlAttributes:{"aria-live":"polite",id:j},children:n})]})}))]})};var eX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{as:e,buttonFill:t="filled",children:n,className:i,variant:a="primary",htmlAttributes:o,isDisabled:s=!1,isFloating:u=!1,isFluid:l=!1,isLoading:c=!1,leadingVisual:f,onClick:d,ref:h,size:p="medium",style:g,type:y="button"}=r,b=eX(r,["as","buttonFill","children","className","variant","htmlAttributes","isDisabled","isFloating","isFluid","isLoading","leadingVisual","onClick","ref","size","style","type"]);const _=e??"button",m=!s&&!c,x=Vn(i,"ndl-btn",{"ndl-disabled":s,"ndl-floating":u,"ndl-fluid":l,"ndl-loading":c,[`ndl-${p}`]:p,[`ndl-${t}-button`]:t,[`ndl-${a}`]:a}),E=O=>{if(!m){O.preventDefault(),O.stopPropagation();return}d&&d(O)};return Te.jsx(_,Object.assign({type:y,onClick:E,disabled:s,"aria-disabled":!m,className:x,style:g,ref:h},b,o,{children:Te.jsxs("div",{className:"ndl-btn-inner",children:[c&&Te.jsx("span",{className:"ndl-btn-spinner-wrapper",children:Te.jsx(h1,{size:p})}),!!f&&Te.jsx("div",{className:"ndl-btn-leading-element",children:f}),!!n&&Te.jsx("span",{className:"ndl-btn-content",children:n})]})}))};var tX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,as:t,type:n="button",isLoading:i=!1,variant:a="primary",isDisabled:o=!1,size:s="medium",onClick:u,isFloating:l=!1,className:c,style:f,htmlAttributes:d,ref:h}=r,p=tX(r,["children","as","type","isLoading","variant","isDisabled","size","onClick","isFloating","className","style","htmlAttributes","ref"]);return Te.jsx(F7,Object.assign({as:t,buttonFill:"outlined",variant:a,className:c,isDisabled:o,isFloating:l,isLoading:i,onClick:u,size:s,style:f,type:n,htmlAttributes:d,ref:h},p,{children:e}))};var nX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,as:t,type:n="button",isLoading:i=!1,variant:a="primary",isDisabled:o=!1,size:s="medium",onClick:u,className:l,style:c,htmlAttributes:f,ref:d}=r,h=nX(r,["children","as","type","isLoading","variant","isDisabled","size","onClick","className","style","htmlAttributes","ref"]);return Te.jsx(F7,Object.assign({as:t,buttonFill:"text",variant:a,className:l,isDisabled:o,isLoading:i,onClick:u,size:s,style:c,type:n,htmlAttributes:f,ref:d},h,{children:e}))};var dS,Yk;function aX(){if(Yk)return dS;Yk=1;var r="Expected a function",e=NaN,t="[object Symbol]",n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,u=typeof Lf=="object"&&Lf&&Lf.Object===Object&&Lf,l=typeof self=="object"&&self&&self.Object===Object&&self,c=u||l||Function("return this")(),f=Object.prototype,d=f.toString,h=Math.max,p=Math.min,g=function(){return c.Date.now()};function y(E,O,S){var T,P,I,k,L,B,j=0,z=!1,H=!1,q=!0;if(typeof E!="function")throw new TypeError(r);O=x(O)||0,b(S)&&(z=!!S.leading,H="maxWait"in S,I=H?h(x(S.maxWait)||0,O):I,q="trailing"in S?!!S.trailing:q);function W(ce){var pe=T,fe=P;return T=P=void 0,j=ce,k=E.apply(fe,pe),k}function $(ce){return j=ce,L=setTimeout(Z,O),z?W(ce):k}function J(ce){var pe=ce-B,fe=ce-j,se=O-pe;return H?p(se,I-fe):se}function X(ce){var pe=ce-B,fe=ce-j;return B===void 0||pe>=O||pe<0||H&&fe>=I}function Z(){var ce=g();if(X(ce))return ue(ce);L=setTimeout(Z,J(ce))}function ue(ce){return L=void 0,q&&T?W(ce):(T=P=void 0,k)}function re(){L!==void 0&&clearTimeout(L),j=0,T=B=P=L=void 0}function ne(){return L===void 0?k:ue(g())}function le(){var ce=g(),pe=X(ce);if(T=arguments,P=this,B=ce,pe){if(L===void 0)return $(B);if(H)return L=setTimeout(Z,O),W(B)}return L===void 0&&(L=setTimeout(Z,O)),k}return le.cancel=re,le.flush=ne,le}function b(E){var O=typeof E;return!!E&&(O=="object"||O=="function")}function _(E){return!!E&&typeof E=="object"}function m(E){return typeof E=="symbol"||_(E)&&d.call(E)==t}function x(E){if(typeof E=="number")return E;if(m(E))return e;if(b(E)){var O=typeof E.valueOf=="function"?E.valueOf():E;E=b(O)?O+"":O}if(typeof E!="string")return E===0?E:+E;E=E.replace(n,"");var S=a.test(E);return S||o.test(E)?s(E.slice(2),S?2:8):i.test(E)?e:+E}return dS=y,dS}aX();function oX(){const[r,e]=me.useState(null),t=me.useCallback(async n=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(n),e(n),!0}catch(i){return console.warn("Copy failed",i),e(null),!1}},[]);return[r,t]}function Cx(r){"@babel/helpers - typeof";return Cx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cx(r)}var sX=/^\s+/,uX=/\s+$/;function dr(r,e){if(r=r||"",e=e||{},r instanceof dr)return r;if(!(this instanceof dr))return new dr(r,e);var t=lX(r);this._originalInput=r,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}dr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,n,i,a,o,s;return t=e.r/255,n=e.g/255,i=e.b/255,t<=.03928?a=t/12.92:a=Math.pow((t+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(e){return this._a=U7(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=$k(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=$k(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=Xk(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Xk(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return Kk(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return hX(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ma(this._r,255)*100)+"%",g:Math.round(Ma(this._g,255)*100)+"%",b:Math.round(Ma(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ma(this._r,255)*100)+"%, "+Math.round(Ma(this._g,255)*100)+"%, "+Math.round(Ma(this._b,255)*100)+"%)":"rgba("+Math.round(Ma(this._r,255)*100)+"%, "+Math.round(Ma(this._g,255)*100)+"%, "+Math.round(Ma(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:OX[Kk(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+Zk(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=dr(e);n="#"+Zk(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0,a=!t&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return dr(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(yX,arguments)},brighten:function(){return this._applyModification(mX,arguments)},darken:function(){return this._applyModification(bX,arguments)},desaturate:function(){return this._applyModification(vX,arguments)},saturate:function(){return this._applyModification(pX,arguments)},greyscale:function(){return this._applyModification(gX,arguments)},spin:function(){return this._applyModification(_X,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(EX,arguments)},complement:function(){return this._applyCombination(wX,arguments)},monochromatic:function(){return this._applyCombination(SX,arguments)},splitcomplement:function(){return this._applyCombination(xX,arguments)},triad:function(){return this._applyCombination(Qk,[3])},tetrad:function(){return this._applyCombination(Qk,[4])}};dr.fromRatio=function(r,e){if(Cx(r)=="object"){var t={};for(var n in r)r.hasOwnProperty(n)&&(n==="a"?t[n]=r[n]:t[n]=fb(r[n]));r=t}return dr(r,e)};function lX(r){var e={r:0,g:0,b:0},t=1,n=null,i=null,a=null,o=!1,s=!1;return typeof r=="string"&&(r=RX(r)),Cx(r)=="object"&&(ev(r.r)&&ev(r.g)&&ev(r.b)?(e=cX(r.r,r.g,r.b),o=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):ev(r.h)&&ev(r.s)&&ev(r.v)?(n=fb(r.s),i=fb(r.v),e=dX(r.h,n,i),o=!0,s="hsv"):ev(r.h)&&ev(r.s)&&ev(r.l)&&(n=fb(r.s),a=fb(r.l),e=fX(r.h,n,a),o=!0,s="hsl"),r.hasOwnProperty("a")&&(t=r.a)),t=U7(t),{ok:o,format:r.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}function cX(r,e,t){return{r:Ma(r,255)*255,g:Ma(e,255)*255,b:Ma(t,255)*255}}function Xk(r,e,t){r=Ma(r,255),e=Ma(e,255),t=Ma(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),a,o,s=(n+i)/2;if(n==i)a=o=0;else{var u=n-i;switch(o=s>.5?u/(2-n-i):u/(n+i),n){case r:a=(e-t)/u+(e1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(e===0)n=i=a=t;else{var s=t<.5?t*(1+e):t+e-t*e,u=2*t-s;n=o(u,s,r+1/3),i=o(u,s,r),a=o(u,s,r-1/3)}return{r:n*255,g:i*255,b:a*255}}function $k(r,e,t){r=Ma(r,255),e=Ma(e,255),t=Ma(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),a,o,s=n,u=n-i;if(o=n===0?0:u/n,n==i)a=0;else{switch(n){case r:a=(e-t)/u+(e>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(dr(n));return a}function SX(r,e){e=e||6;for(var t=dr(r).toHsv(),n=t.h,i=t.s,a=t.v,o=[],s=1/e;e--;)o.push(dr({h:n,s:i,v:a})),a=(a+s)%1;return o}dr.mix=function(r,e,t){t=t===0?0:t||50;var n=dr(r).toRgb(),i=dr(e).toRgb(),a=t/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return dr(o)};dr.readability=function(r,e){var t=dr(r),n=dr(e);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)};dr.isReadable=function(r,e,t){var n=dr.readability(r,e),i,a;switch(a=!1,i=PX(t),i.level+i.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};dr.mostReadable=function(r,e,t){var n=null,i=0,a,o,s,u;t=t||{},o=t.includeFallbackColors,s=t.level,u=t.size;for(var l=0;li&&(i=a,n=dr(e[l]));return dr.isReadable(r,n,{level:s,size:u})||!o?n:(t.includeFallbackColors=!1,dr.mostReadable(r,["#fff","#000"],t))};var lM=dr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},OX=dr.hexNames=TX(lM);function TX(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e}function U7(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Ma(r,e){CX(r)&&(r="100%");var t=AX(r);return r=Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),Math.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function O2(r){return Math.min(1,Math.max(0,r))}function Jc(r){return parseInt(r,16)}function CX(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1}function AX(r){return typeof r=="string"&&r.indexOf("%")!=-1}function Sd(r){return r.length==1?"0"+r:""+r}function fb(r){return r<=1&&(r=r*100+"%"),r}function z7(r){return Math.round(parseFloat(r)*255).toString(16)}function Jk(r){return Jc(r)/255}var md=(function(){var r="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",t="(?:"+e+")|(?:"+r+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",i="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function ev(r){return!!md.CSS_UNIT.exec(r)}function RX(r){r=r.replace(sX,"").replace(uX,"").toLowerCase();var e=!1;if(lM[r])r=lM[r],e=!0;else if(r=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=md.rgb.exec(r))?{r:t[1],g:t[2],b:t[3]}:(t=md.rgba.exec(r))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=md.hsl.exec(r))?{h:t[1],s:t[2],l:t[3]}:(t=md.hsla.exec(r))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=md.hsv.exec(r))?{h:t[1],s:t[2],v:t[3]}:(t=md.hsva.exec(r))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=md.hex8.exec(r))?{r:Jc(t[1]),g:Jc(t[2]),b:Jc(t[3]),a:Jk(t[4]),format:e?"name":"hex8"}:(t=md.hex6.exec(r))?{r:Jc(t[1]),g:Jc(t[2]),b:Jc(t[3]),format:e?"name":"hex"}:(t=md.hex4.exec(r))?{r:Jc(t[1]+""+t[1]),g:Jc(t[2]+""+t[2]),b:Jc(t[3]+""+t[3]),a:Jk(t[4]+""+t[4]),format:e?"name":"hex8"}:(t=md.hex3.exec(r))?{r:Jc(t[1]+""+t[1]),g:Jc(t[2]+""+t[2]),b:Jc(t[3]+""+t[3]),format:e?"name":"hex"}:!1}function PX(r){var e,t;return r=r||{level:"AA",size:"small"},e=(r.level||"AA").toUpperCase(),t=(r.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:e,size:t}}const MX=r=>dr.mostReadable(r,[Xu.theme.light.color.neutral.text.default,Xu.theme.light.color.neutral.text.inverse],{includeFallbackColors:!0}).toString(),DX=r=>dr(r).toHsl().l<.5?dr(r).lighten(10).toString():dr(r).darken(10).toString(),kX=r=>dr.mostReadable(r,[Xu.theme.light.color.neutral.text.weakest,Xu.theme.light.color.neutral.text.weaker,Xu.theme.light.color.neutral.text.weak,Xu.theme.light.color.neutral.text.inverse]).toString();var IX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{const i=Vn("ndl-hexagon-end",{"ndl-left":r==="left","ndl-right":r==="right"});return Te.jsxs("div",Object.assign({className:i},t,{children:[Te.jsx("svg",{"aria-hidden":!0,className:"ndl-hexagon-end-inner",fill:"none",height:n,preserveAspectRatio:"none",viewBox:"0 0 9 24",width:"9",xmlns:"http://www.w3.org/2000/svg",children:Te.jsx("path",{style:{fill:e},fillRule:"evenodd",clipRule:"evenodd",d:"M5.73024 1.03676C6.08165 0.397331 6.75338 0 7.48301 0H9V24H7.483C6.75338 24 6.08165 23.6027 5.73024 22.9632L0.315027 13.1094C-0.105009 12.4376 -0.105009 11.5624 0.315026 10.8906L5.73024 1.03676Z"})}),Te.jsx("svg",{"aria-hidden":!0,className:"ndl-hexagon-end-active",fill:"none",height:n+6,preserveAspectRatio:"none",viewBox:"0 0 13 30",width:"13",xmlns:"http://www.w3.org/2000/svg",children:Te.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.075 2C9.12474 2 8.24318 2.54521 7.74867 3.43873L2.21419 13.4387C1.68353 14.3976 1.68353 15.6024 2.21419 16.5613L7.74867 26.5613C8.24318 27.4548 9.12474 28 10.075 28H13V30H10.075C8.49126 30 7.022 29.0913 6.1978 27.6021L0.663324 17.6021C-0.221109 16.0041 -0.221108 13.9959 0.663325 12.3979L6.1978 2.39789C7.022 0.90869 8.49126 0 10.075 0H13V2H10.075Z"})})]}))},tI=({direction:r="left",color:e,height:t=24,htmlAttributes:n})=>{const i=Vn("ndl-square-end",{"ndl-left":r==="left","ndl-right":r==="right"});return Te.jsxs("div",Object.assign({className:i},n,{children:[Te.jsx("div",{className:"ndl-square-end-inner",style:{backgroundColor:e}}),Te.jsx("svg",{className:"ndl-square-end-active",width:"7",height:t+6,preserveAspectRatio:"none",viewBox:"0 0 7 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Te.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 3.8774 2 C 3.2697 2 2.7917 2.248 2.3967 2.6605 C 1.928 3.1498 1.7993 3.8555 1.7993 4.5331 V 13.8775 V 25.4669 C 1.7993 26.1445 1.928 26.8502 2.3967 27.3395 C 2.7917 27.752 3.2697 28 3.8774 28 H 7 V 30 H 3.8774 C 2.6211 30 1.4369 29.4282 0.5895 28.4485 C 0.1462 27.936 0.0002 27.2467 0.0002 26.5691 L -0.0002 13.8775 L 0.0002 3.4309 C 0.0002 2.7533 0.1462 2.064 0.5895 1.5515 C 1.4368 0.5718 2.6211 0 3.8774 0 H 7 V 2 H 3.8774 Z"})})]}))},NX=({height:r=24})=>Te.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r+6,preserveAspectRatio:"none",viewBox:"0 0 37 30",fill:"none",className:"ndl-relationship-label-lines",children:[Te.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 37 2 H 0 V 0 H 37 V 2 Z"}),Te.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 37 30 H 0 V 28 H 37 V 30 Z"})]}),hS=200,Ax=r=>{var{type:e="node",color:t,isDisabled:n=!1,isSelected:i=!1,as:a,onClick:o,className:s,style:u,children:l,htmlAttributes:c,isFluid:f=!1,size:d="large",ref:h}=r,p=IX(r,["type","color","isDisabled","isSelected","as","onClick","className","style","children","htmlAttributes","isFluid","size","ref"]);const[g,y]=me.useState(!1),b=k=>{y(!0),c&&c.onMouseEnter!==void 0&&c.onMouseEnter(k)},_=k=>{var L;y(!1),(L=c==null?void 0:c.onMouseLeave)===null||L===void 0||L.call(c,k)},m=a??"button",x=m==="button",E=k=>{if(n){k.preventDefault(),k.stopPropagation();return}o&&o(k)};let O=me.useMemo(()=>{if(t===void 0)switch(e){case"node":return Xu.graph[1];case"relationship":case"relationshipLeft":case"relationshipRight":return Xu.theme.light.color.neutral.bg.strong;default:return Xu.theme.light.color.neutral.bg.strongest}return t},[t,e]);const S=me.useMemo(()=>DX(O||Xu.palette.lemon[40]),[O]),T=me.useMemo(()=>MX(O||Xu.palette.lemon[40]),[O]),P=me.useMemo(()=>kX(O||Xu.palette.lemon[40]),[O]);g&&!n&&(O=S);const I=Vn("ndl-graph-label",s,{"ndl-disabled":n,"ndl-interactable":x,"ndl-selected":i,"ndl-small":d==="small"});if(e==="node"){const k=Vn("ndl-node-label",I);return Te.jsx(m,Object.assign({className:k,ref:h,style:Object.assign({backgroundColor:O,color:n?P:T,maxWidth:f?"100%":hS},u)},x&&{disabled:n,onClick:E,onMouseEnter:b,onMouseLeave:_,type:"button"},c,{children:Te.jsx("div",{className:"ndl-node-label-content",children:l})}))}else if(e==="relationship"||e==="relationshipLeft"||e==="relationshipRight"){const k=Vn("ndl-relationship-label",I),L=d==="small"?20:24;return Te.jsxs(m,Object.assign({style:Object.assign(Object.assign({maxWidth:f?"100%":hS},u),{color:n?P:T}),className:k},x&&{disabled:n,onClick:E,onMouseEnter:b,onMouseLeave:_,type:"button"},{ref:h},p,c,{children:[e==="relationshipLeft"||e==="relationship"?Te.jsx(eI,{direction:"left",color:O,height:L}):Te.jsx(tI,{direction:"left",color:O,height:L}),Te.jsxs("div",{className:"ndl-relationship-label-container",style:{backgroundColor:O},children:[Te.jsx("div",{className:"ndl-relationship-label-content",children:l}),Te.jsx(NX,{height:L})]}),e==="relationshipRight"||e==="relationship"?Te.jsx(eI,{direction:"right",color:O,height:L}):Te.jsx(tI,{direction:"right",color:O,height:L})]}))}else{const k=Vn("ndl-property-key-label",I);return Te.jsx(m,Object.assign({},x&&{type:"button"},{style:Object.assign({backgroundColor:O,color:n?P:T,maxWidth:f?"100%":hS},u),className:k,onClick:E,onMouseEnter:b,onMouseLeave:_,ref:h},c,{children:Te.jsx("div",{className:"ndl-property-key-label-content",children:l})}))}};var Bo=function(){return Bo=Object.assign||function(r){for(var e,t=1,n=arguments.length;t"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof o>"u"?void 0:Number(o)}},qX=function(r){return Array.isArray(r)?r:[r,r]},GX=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],oI="__resizable_base__",VX=(function(r){BX(e,r);function e(t){var n,i,a,o,s=r.call(this,t)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var u=s.parentNode;if(!u)return null;var l=s.window.document.createElement("div");return l.style.width="100%",l.style.height="100%",l.style.position="absolute",l.style.transform="scale(0, 0)",l.style.left="0",l.style.flex="0 0 100%",l.classList?l.classList.add(oI):l.className+=oI,u.appendChild(l),l},s.removeBase=function(u){var l=s.parentNode;l&&l.removeChild(u)},s.state={isResizing:!1,width:(i=(n=s.propsSize)===null||n===void 0?void 0:n.width)!==null&&i!==void 0?i:"auto",height:(o=(a=s.propsSize)===null||a===void 0?void 0:a.height)!==null&&o!==void 0?o:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||FX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var t=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,a=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),t=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=o}return{width:t,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var t=this,n=this.props.size,i=function(s){var u;if(typeof t.state[s]>"u"||t.state[s]==="auto")return"auto";if(t.propsSize&&t.propsSize[s]&&(!((u=t.propsSize[s])===null||u===void 0)&&u.toString().endsWith("%"))){if(t.state[s].toString().endsWith("%"))return t.state[s].toString();var l=t.getParentSize(),c=Number(t.state[s].toString().replace("px","")),f=c/l[s]*100;return"".concat(f,"%")}return vS(t.state[s])},a=n&&typeof n.width<"u"&&!this.state.isResizing?vS(n.width):i("width"),o=n&&typeof n.height<"u"&&!this.state.isResizing?vS(n.height):i("height");return{width:a,height:o}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%",t.style.minHeight="100%";var a={width:t.offsetWidth,height:t.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(t),a},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:t.flexBasis!=="auto"?t.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(t,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===t&&(typeof i>"u"||i==="auto")?"auto":t},e.prototype.calculateNewMaxFromBoundary=function(t,n){var i=this.props.boundsByDirection,a=this.state.direction,o=i&&Xy("left",a),s=i&&Xy("top",a),u,l;if(this.props.bounds==="parent"){var c=this.parentNode;c&&(u=o?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),l=s?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,l=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),l=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(t=t&&t"u"?10:a.width,f=typeof i.width>"u"||i.width<0?t:i.width,d=typeof a.height>"u"?10:a.height,h=typeof i.height>"u"||i.height<0?n:i.height,p=u||0,g=l||0;if(s){var y=(d-p)*this.ratio+g,b=(h-p)*this.ratio+g,_=(c-g)/this.ratio+p,m=(f-g)/this.ratio+p,x=Math.max(c,y),E=Math.min(f,b),O=Math.max(d,_),S=Math.min(h,m);t=sw(t,x,E),n=sw(n,O,S)}else t=sw(t,c,f),n=sw(n,d,h);return{newWidth:t,newHeight:n}},e.prototype.setBoundingClientRect=function(){var t=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left*t,this.parentTop=i.top*t}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*t,this.targetTop=a.top*t}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,u=o.top,l=o.right,c=o.bottom;this.resizableLeft=s*t,this.resizableRight=l*t,this.resizableTop=u*t,this.resizableBottom=c*t}},e.prototype.onResizeStart=function(t,n){if(!(!this.resizable||!this.window)){var i=0,a=0;if(t.nativeEvent&&UX(t.nativeEvent)?(i=t.nativeEvent.clientX,a=t.nativeEvent.clientY):t.nativeEvent&&uw(t.nativeEvent)&&(i=t.nativeEvent.touches[0].clientX,a=t.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(t,n,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var l=this.parentNode;if(l){var c=this.window.getComputedStyle(l).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",s=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var f={original:{x:i,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:gh(gh({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(f)}},e.prototype.onMouseMove=function(t){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&uw(t))try{t.preventDefault(),t.stopPropagation()}catch{}var i=this.props,a=i.maxWidth,o=i.maxHeight,s=i.minWidth,u=i.minHeight,l=uw(t)?t.touches[0].clientX:t.clientX,c=uw(t)?t.touches[0].clientY:t.clientY,f=this.state,d=f.direction,h=f.original,p=f.width,g=f.height,y=this.getParentSize(),b=zX(y,this.window.innerWidth,this.window.innerHeight,a,o,s,u);a=b.maxWidth,o=b.maxHeight,s=b.minWidth,u=b.minHeight;var _=this.calculateNewSizeFromDirection(l,c),m=_.newHeight,x=_.newWidth,E=this.calculateNewMaxFromBoundary(a,o);this.props.snap&&this.props.snap.x&&(x=aI(x,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(m=aI(m,this.props.snap.y,this.props.snapGap));var O=this.calculateNewSizeFromAspectRatio(x,m,{width:E.maxWidth,height:E.maxHeight},{width:s,height:u});if(x=O.newWidth,m=O.newHeight,this.props.grid){var S=iI(x,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),T=iI(m,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),P=this.props.snapGap||0,I=P===0||Math.abs(S-x)<=P?S:x,k=P===0||Math.abs(T-m)<=P?T:m;x=I,m=k}var L={width:x-h.width,height:m-h.height};if(this.delta=L,p&&typeof p=="string"){if(p.endsWith("%")){var B=x/y.width*100;x="".concat(B,"%")}else if(p.endsWith("vw")){var j=x/this.window.innerWidth*100;x="".concat(j,"vw")}else if(p.endsWith("vh")){var z=x/this.window.innerHeight*100;x="".concat(z,"vh")}}if(g&&typeof g=="string"){if(g.endsWith("%")){var B=m/y.height*100;m="".concat(B,"%")}else if(g.endsWith("vw")){var j=m/this.window.innerWidth*100;m="".concat(j,"vw")}else if(g.endsWith("vh")){var z=m/this.window.innerHeight*100;m="".concat(z,"vh")}}var H={width:this.createSizeForCssProperty(x,"width"),height:this.createSizeForCssProperty(m,"height")};this.flexDir==="row"?H.flexBasis=H.width:this.flexDir==="column"&&(H.flexBasis=H.height);var q=this.state.width!==H.width,W=this.state.height!==H.height,$=this.state.flexBasis!==H.flexBasis,J=q||W||$;J&&y2.flushSync(function(){n.setState(H)}),this.props.onResize&&J&&this.props.onResize(t,d,this.resizable,L)}},e.prototype.onMouseUp=function(t){var n,i,a=this.state,o=a.isResizing,s=a.direction;a.original,!(!o||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(t,s,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:gh(gh({},this.state.backgroundStyle),{cursor:"auto"})}))},e.prototype.updateSize=function(t){var n,i;this.setState({width:(n=t.width)!==null&&n!==void 0?n:"auto",height:(i=t.height)!==null&&i!==void 0?i:"auto"})},e.prototype.renderResizer=function(){var t=this,n=this.props,i=n.enable,a=n.handleStyles,o=n.handleClasses,s=n.handleWrapperStyle,u=n.handleWrapperClass,l=n.handleComponent;if(!i)return null;var c=Object.keys(i).map(function(f){return i[f]!==!1?Te.jsx(jX,{direction:f,onResizeStart:t.onResizeStart,replaceStyles:a&&a[f],className:o&&o[f],children:l&&l[f]?l[f]:null},f):null});return Te.jsx("div",{className:u,style:s,children:c})},e.prototype.render=function(){var t=this,n=Object.keys(this.props).reduce(function(o,s){return GX.indexOf(s)!==-1||(o[s]=t.props[s]),o},{}),i=gh(gh(gh({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return Te.jsxs(a,gh({style:i,className:this.props.className},n,{ref:function(o){o&&(t.resizable=o)},children:[this.state.isResizing&&Te.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e})(me.PureComponent),HX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,as:t,isLoading:n=!1,isDisabled:i=!1,size:a="medium",isFloating:o=!1,isActive:s,variant:u="neutral",description:l,tooltipProps:c,className:f,style:d,htmlAttributes:h,onClick:p,ref:g}=r,y=HX(r,["children","as","isLoading","isDisabled","size","isFloating","isActive","variant","description","tooltipProps","className","style","htmlAttributes","onClick","ref"]);return Te.jsx(N7,Object.assign({as:t,iconButtonVariant:"default",isDisabled:i,size:a,isLoading:n,isActive:s,isFloating:o,description:l,tooltipProps:c,className:f,style:d,variant:u,htmlAttributes:h,onClick:p,ref:g},y,{children:e}))};var WX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{description:e,actionFeedbackText:t,icon:n,children:i,onClick:a,htmlAttributes:o,tooltipProps:s,type:u="clean-icon-button"}=r,l=WX(r,["description","actionFeedbackText","icon","children","onClick","htmlAttributes","tooltipProps","type"]);const[c,f]=ao.useState(null),[d,h]=ao.useState(!1),p=()=>{c!==null&&clearTimeout(c);const _=window.setTimeout(()=>{f(null)},2e3);f(_)},g=()=>{h(!1)},y=()=>{h(!0)},b=c===null?e:t;if(u==="clean-icon-button")return Te.jsx(S2,Object.assign({},l.cleanIconButtonProps,{description:b,tooltipProps:{root:Object.assign(Object.assign({},s),{isOpen:d||c!==null}),trigger:{htmlAttributes:{onBlur:g,onFocus:y,onMouseEnter:y,onMouseLeave:g}}},onClick:_=>{a&&a(_),p()},className:l.className,htmlAttributes:o,children:n}));if(u==="icon-button")return Te.jsx(T2,Object.assign({},l.iconButtonProps,{description:b,tooltipProps:{root:Object.assign(Object.assign({},s),{isOpen:d||c!==null}),trigger:{htmlAttributes:{onBlur:g,onFocus:y,onMouseEnter:y,onMouseLeave:g}}},onClick:_=>{a&&a(_),p()},className:l.className,htmlAttributes:o,children:n}));if(u==="outlined-button")return Te.jsxs(Bf,Object.assign({type:"simple",isOpen:d||c!==null},s,{onOpenChange:_=>{var m;_?y():g(),(m=s==null?void 0:s.onOpenChange)===null||m===void 0||m.call(s,_)},children:[Te.jsx(Bf.Trigger,{hasButtonWrapper:!0,htmlAttributes:{"aria-label":b,onBlur:g,onFocus:y,onMouseEnter:y,onMouseLeave:g},children:Te.jsx(rX,Object.assign({variant:"neutral"},l.buttonProps,{onClick:_=>{a&&a(_),p()},leadingVisual:n,className:l.className,htmlAttributes:o,children:i}))}),Te.jsx(Bf.Content,{children:b})]}))},q7=({textToCopy:r,isDisabled:e,size:t,tooltipProps:n,htmlAttributes:i,type:a})=>{const[,o]=oX(),l=a==="outlined-button"?{outlinedButtonProps:{isDisabled:e,size:t},type:"outlined-button"}:a==="icon-button"?{iconButtonProps:{description:"Copy to clipboard",isDisabled:e,size:t},type:"icon-button"}:{cleanIconButtonProps:{description:"Copy to clipboard",isDisabled:e,size:t},type:"clean-icon-button"};return Te.jsx(YX,Object.assign({onClick:()=>o(r),description:"Copy to clipboard",actionFeedbackText:"Copied"},l,{tooltipProps:n,className:"n-gap-token-8",icon:Te.jsx(sH,{className:"ndl-icon-svg"}),htmlAttributes:Object.assign({"aria-live":"polite"},i),children:a==="outlined-button"&&"Copy"}))};var XX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);iTe.jsx(Te.Fragment,{children:r});G7.displayName="CollapsibleButtonWrapper";const $X=r=>{var{children:e,as:t,isFloating:n=!1,orientation:i="horizontal",size:a="medium",className:o,style:s,htmlAttributes:u,ref:l}=r,c=XX(r,["children","as","isFloating","orientation","size","className","style","htmlAttributes","ref"]);const[f,d]=ao.useState(!0),h=Vn("ndl-icon-btn-array",o,{"ndl-array-floating":n,"ndl-col":i==="vertical","ndl-row":i==="horizontal",[`ndl-${a}`]:a}),p=t||"div",g=ao.Children.toArray(e),y=g.filter(x=>!ao.isValidElement(x)||x.type.displayName!=="CollapsibleButtonWrapper"),b=g.find(x=>ao.isValidElement(x)&&x.type.displayName==="CollapsibleButtonWrapper"),_=b?b.props.children:null,m=()=>i==="horizontal"?f?Te.jsx(Y9,{}):Te.jsx(qV,{}):f?Te.jsx(W9,{}):Te.jsx(YV,{});return Te.jsxs(p,Object.assign({role:"group",className:h,ref:l,style:s},c,u,{children:[y,_&&Te.jsxs(Te.Fragment,{children:[!f&&_,Te.jsx(S2,{onClick:()=>{d(x=>!x)},size:a,description:f?"Show more":"Show less",tooltipProps:{root:{shouldCloseOnReferenceClick:!0}},htmlAttributes:{"aria-expanded":!f},children:m()})]})]}))},V7=Object.assign($X,{CollapsibleButtonWrapper:G7});function H7(){if(typeof window>"u")return"linux";const r=window.navigator.userAgent.toLowerCase();return r.includes("mac")?"mac":r.includes("win")?"windows":"linux"}function KX(r=H7()){return{alt:r==="mac"?"⌥":"alt",capslock:"⇪",ctrl:r==="mac"?"⌃":"ctrl",delete:r==="mac"?"⌫":"delete",down:"↓",end:"end",enter:"↵",escape:"⎋",fn:"Fn",home:"home",left:"←",meta:r==="mac"?"⌘":r==="windows"?"⊞":"meta",pagedown:"⇟",pageup:"⇞",right:"→",shift:"⇧",space:"␣",tab:"⇥",up:"↑"}}function ZX(r=H7()){return{alt:"Alt",capslock:"Caps Lock",ctrl:"Control",delete:"Delete",down:"Down",end:"End",enter:"Enter",escape:"Escape",fn:"Fn",home:"Home",left:"Left",meta:r==="mac"?"Command":r==="windows"?"Windows":"Meta",pagedown:"Page Down",pageup:"Page Up",right:"Right",shift:"Shift",space:"Space",tab:"Tab",up:"Up"}}var QX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{modifierKeys:e,keys:t,os:n,as:i,className:a,style:o,htmlAttributes:s,ref:u}=r,l=QX(r,["modifierKeys","keys","os","as","className","style","htmlAttributes","ref"]);const c=i??"span",f=me.useMemo(()=>{if(e===void 0)return null;const p=KX(n),g=ZX(n);return e==null?void 0:e.map(y=>Te.jsx("abbr",{className:"ndl-kbd-key",title:g[y],children:p[y]},y))},[e,n]),d=me.useMemo(()=>t===void 0?null:t==null?void 0:t.map((p,g)=>g===0?Te.jsx("span",{className:"ndl-kbd-key",children:p},p==null?void 0:p.toString()):Te.jsxs(Te.Fragment,{children:[Te.jsx("span",{className:"ndl-kbd-then",children:"Then"}),Te.jsx("span",{className:"ndl-kbd-key",children:p},p==null?void 0:p.toString())]})),[t]),h=Vn("ndl-kbd",a);return Te.jsxs(c,Object.assign({className:h,style:o,ref:u},l,s,{children:[f,d]}))};var e$=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,size:t="medium",isDisabled:n=!1,isLoading:i=!1,isOpen:a=!1,className:o,description:s,tooltipProps:u,onClick:l,style:c,htmlAttributes:f,ref:d}=r,h=e$(r,["children","size","isDisabled","isLoading","isOpen","className","description","tooltipProps","onClick","style","htmlAttributes","ref"]);const p=Vn("ndl-select-icon-btn",o,{"ndl-active":a,"ndl-disabled":n,"ndl-large":t==="large","ndl-loading":i,"ndl-medium":t==="medium","ndl-small":t==="small"}),g=!n&&!i;return Te.jsxs(Bf,Object.assign({hoverDelay:{close:0,open:500}},u==null?void 0:u.root,{type:"simple",isDisabled:s===null||n||a===!0,children:[Te.jsx(Bf.Trigger,Object.assign({},u==null?void 0:u.trigger,{hasButtonWrapper:!0,children:Te.jsxs("button",Object.assign({type:"button",ref:d,className:p,style:c,disabled:!g,"aria-disabled":!g,"aria-label":s??void 0,"aria-expanded":a,onClick:l},h,f,{children:[Te.jsx("div",{className:"ndl-select-icon-btn-inner",children:i?Te.jsx(h1,{size:"small"}):Te.jsx("div",{className:"ndl-icon",children:e})}),Te.jsx(W9,{className:Vn("ndl-select-icon-btn-icon",{"ndl-select-icon-btn-icon-open":a===!0})})]}))})),Te.jsx(Bf.Content,Object.assign({},u==null?void 0:u.content,{children:s}))]}))};function cM(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +*/var NH=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],bx=NH.join(","),e7=typeof Element>"u",Im=e7?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_x=!e7&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r==null?void 0:r.ownerDocument},wx=function(e,t){var n;t===void 0&&(t=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),a=i===""||i==="true",o=a||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):wx(e.parentNode));return o},LH=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},t7=function(e,t,n){if(wx(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(bx));return t&&Im.call(e,bx)&&i.unshift(e),i=i.filter(n),i},xx=function(e,t,n){for(var i=[],a=Array.from(e);a.length;){var o=a.shift();if(!wx(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),u=s.length?s:o.children,l=xx(u,!0,n);n.flatten?i.push.apply(i,l):i.push({scopeParent:o,candidates:l})}else{var c=Im.call(o,bx);c&&n.filter(o)&&(t||!e.includes(o))&&i.push(o);var f=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),d=!wx(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(f&&d){var h=xx(f===!0?o.children:f.children,!0,n);n.flatten?i.push.apply(i,h):i.push({scopeParent:o,candidates:h})}else a.unshift.apply(a,o.children)}}return i},r7=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},n7=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||LH(e))&&!r7(e)?0:e.tabIndex},jH=function(e,t){var n=n7(e);return n<0&&t&&!r7(e)?0:n},BH=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},i7=function(e){return e.tagName==="INPUT"},FH=function(e){return i7(e)&&e.type==="hidden"},UH=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},zH=function(e,t){for(var n=0;nsummary:first-of-type"),s=o?e.parentElement:e;if(Im.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var u=e;e;){var l=e.parentElement,c=_x(e);if(l&&!l.shadowRoot&&i(l)===!0)return yk(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=u}if(HH(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return yk(e);return!1},YH=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},a7=function(e){var t=[],n=[];return e.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,u=jH(s,o),l=o?a7(i.candidates):s;u===0?o?t.push.apply(t,l):t.push(s):n.push({documentOrder:a,tabIndex:u,item:i,isScope:o,content:l})}),n.sort(BH).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(t)},g2=function(e,t){t=t||{};var n;return t.getShadowRoot?n=xx([e],t.includeContainer,{filter:aM.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:XH}):n=t7(e,t.includeContainer,aM.bind(null,t)),a7(n)},$H=function(e,t){t=t||{};var n;return t.getShadowRoot?n=xx([e],t.includeContainer,{filter:iM.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=t7(e,t.includeContainer,iM.bind(null,t)),n},o7=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Im.call(e,bx)===!1?!1:aM(t,e)};function s7(){const r=navigator.userAgentData;return r!=null&&r.platform?r.platform:navigator.platform}function u7(){const r=navigator.userAgentData;return r&&Array.isArray(r.brands)?r.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function l7(){return/apple/i.test(navigator.vendor)}function oM(){const r=/android/i;return r.test(s7())||r.test(u7())}function KH(){return s7().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function c7(){return u7().includes("jsdom/")}const mk="data-floating-ui-focusable",ZH="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",JE="ArrowLeft",eS="ArrowRight",QH="ArrowUp",JH="ArrowDown";function yh(r){let e=r.activeElement;for(;((t=e)==null||(t=t.shadowRoot)==null?void 0:t.activeElement)!=null;){var t;e=e.shadowRoot.activeElement}return e}function Ns(r,e){if(!r||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(r.contains(e))return!0;if(t&&vx(t)){let n=e;for(;n;){if(r===n)return!0;n=n.parentNode||n.host}}return!1}function mh(r){return"composedPath"in r?r.composedPath()[0]:r.target}function tS(r,e){if(e==null)return!1;if("composedPath"in r)return r.composedPath().includes(e);const t=r;return t.target!=null&&e.contains(t.target)}function eW(r){return r.matches("html,body")}function su(r){return(r==null?void 0:r.ownerDocument)||document}function A5(r){return _o(r)&&r.matches(ZH)}function sM(r){return r?r.getAttribute("role")==="combobox"&&A5(r):!1}function tW(r){if(!r||c7())return!0;try{return r.matches(":focus-visible")}catch{return!0}}function Ex(r){return r?r.hasAttribute(mk)?r:r.querySelector("["+mk+"]")||r:null}function Fg(r,e,t){return t===void 0&&(t=!0),r.filter(i=>{var a;return i.parentId===e&&(!t||((a=i.context)==null?void 0:a.open))}).flatMap(i=>[i,...Fg(r,i.id,t)])}function rW(r,e){let t,n=-1;function i(a,o){o>n&&(t=a,n=o),Fg(r,a).forEach(u=>{i(u.id,o+1)})}return i(e,0),r.find(a=>a.id===t)}function bk(r,e){var t;let n=[],i=(t=r.find(a=>a.id===e))==null?void 0:t.parentId;for(;i;){const a=r.find(o=>o.id===i);i=a==null?void 0:a.parentId,a&&(n=n.concat(a))}return n}function ou(r){r.preventDefault(),r.stopPropagation()}function nW(r){return"nativeEvent"in r}function f7(r){return r.mozInputSource===0&&r.isTrusted?!0:oM()&&r.pointerType?r.type==="click"&&r.buttons===1:r.detail===0&&!r.pointerType}function d7(r){return c7()?!1:!oM()&&r.width===0&&r.height===0||oM()&&r.width===1&&r.height===1&&r.pressure===0&&r.detail===0&&r.pointerType==="mouse"||r.width<1&&r.height<1&&r.pressure===0&&r.detail===0&&r.pointerType==="touch"}function Nm(r,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(r)}var iW=typeof document<"u",aW=function(){},Di=iW?me.useLayoutEffect:aW;const oW={...q9};function Ls(r){const e=me.useRef(r);return Di(()=>{e.current=r}),e}const sW=oW.useInsertionEffect,uW=sW||(r=>r());function Wa(r){const e=me.useRef(()=>{});return uW(()=>{e.current=r}),me.useCallback(function(){for(var t=arguments.length,n=new Array(t),i=0;i=r.current.length}function rS(r,e){return Yu(r,{disabledIndices:e})}function _k(r,e){return Yu(r,{decrement:!0,startingIndex:r.current.length,disabledIndices:e})}function Yu(r,e){let{startingIndex:t=-1,decrement:n=!1,disabledIndices:i,amount:a=1}=e===void 0?{}:e,o=t;do o+=n?-a:a;while(o>=0&&o<=r.current.length-1&&Ww(r,o,i));return o}function lW(r,e){let{event:t,orientation:n,loop:i,rtl:a,cols:o,disabledIndices:s,minIndex:u,maxIndex:l,prevIndex:c,stopEvent:f=!1}=e,d=c;if(t.key===QH){if(f&&ou(t),c===-1)d=l;else if(d=Yu(r,{startingIndex:d,amount:o,decrement:!0,disabledIndices:s}),i&&(c-oh?g:g-o}Rb(r,d)&&(d=c)}if(t.key===JH&&(f&&ou(t),c===-1?d=u:(d=Yu(r,{startingIndex:c,amount:o,disabledIndices:s}),i&&c+o>l&&(d=Yu(r,{startingIndex:c%o-o,amount:o,disabledIndices:s}))),Rb(r,d)&&(d=c)),n==="both"){const h=hm(c/o);t.key===(a?JE:eS)&&(f&&ou(t),c%o!==o-1?(d=Yu(r,{startingIndex:c,disabledIndices:s}),i&&rw(d,o,h)&&(d=Yu(r,{startingIndex:c-c%o-1,disabledIndices:s}))):i&&(d=Yu(r,{startingIndex:c-c%o-1,disabledIndices:s})),rw(d,o,h)&&(d=c)),t.key===(a?eS:JE)&&(f&&ou(t),c%o!==0?(d=Yu(r,{startingIndex:c,decrement:!0,disabledIndices:s}),i&&rw(d,o,h)&&(d=Yu(r,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:s}))):i&&(d=Yu(r,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:s})),rw(d,o,h)&&(d=c));const p=hm(l/o)===h;Rb(r,d)&&(i&&p?d=t.key===(a?eS:JE)?l:Yu(r,{startingIndex:c-c%o-1,disabledIndices:s}):d=c)}return d}function cW(r,e,t){const n=[];let i=0;return r.forEach((a,o)=>{let{width:s,height:u}=a,l=!1;for(t&&(i=0);!l;){const c=[];for(let f=0;fn[f]==null)?(c.forEach(f=>{n[f]=o}),l=!0):i++}}),[...n]}function fW(r,e,t,n,i){if(r===-1)return-1;const a=t.indexOf(r),o=e[r];switch(i){case"tl":return a;case"tr":return o?a+o.width-1:a;case"bl":return o?a+(o.height-1)*n:a;case"br":return t.lastIndexOf(r)}}function dW(r,e){return e.flatMap((t,n)=>r.includes(t)?[n]:[])}function Ww(r,e,t){if(typeof t=="function")return t(e);if(t)return t.includes(e);const n=r.current[e];return n==null||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}const F1=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function h7(r,e){const t=g2(r,F1()),n=t.length;if(n===0)return;const i=yh(su(r)),a=t.indexOf(i),o=a===-1?e===1?0:n-1:a+e;return t[o]}function v7(r){return h7(su(r).body,1)||r}function p7(r){return h7(su(r).body,-1)||r}function Pb(r,e){const t=e||r.currentTarget,n=r.relatedTarget;return!n||!Ns(t,n)}function hW(r){g2(r,F1()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function wk(r){r.querySelectorAll("[data-tabindex]").forEach(t=>{const n=t.dataset.tabindex;delete t.dataset.tabindex,n?t.setAttribute("tabindex",n):t.removeAttribute("tabindex")})}var y2=G9();function xk(r,e,t){let{reference:n,floating:i}=r;const a=dp(e),o=J9(e),s=Q9(o),u=qg(e),l=a==="y",c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(u){case"top":h={x:c,y:n.y-i.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(p2(e)){case"start":h[o]-=d*(t&&l?-1:1);break;case"end":h[o]+=d*(t&&l?-1:1);break}return h}async function vW(r,e){var t;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:u}=r,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=v2(e,r),p=IH(h),y=s[d?f==="floating"?"reference":"floating":f],b=mx(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(y)))==null||t?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),_=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,m=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),x=await(a.isElement==null?void 0:a.isElement(m))?await(a.getScale==null?void 0:a.getScale(m))||{x:1,y:1}:{x:1,y:1},E=mx(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:m,strategy:u}):_);return{top:(b.top-E.top+p.top)/x.y,bottom:(E.bottom-b.bottom+p.bottom)/x.y,left:(b.left-E.left+p.left)/x.x,right:(E.right-b.right+p.right)/x.x}}const pW=async(r,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=t,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:r,floating:e,strategy:i}),{x:c,y:f}=xk(l,n,u),d=n,h={},p=0;for(let y=0;yj<=0)){var k,L;const j=(((k=a.flip)==null?void 0:k.index)||0)+1,z=S[j];if(z&&(!(f==="alignment"?_!==dp(z):!1)||I.every(W=>dp(W.placement)===_?W.overflows[0]>0:!0)))return{data:{index:j,overflows:I},reset:{placement:z}};let H=(L=I.filter(q=>q.overflows[0]<=0).sort((q,W)=>q.overflows[1]-W.overflows[1])[0])==null?void 0:L.placement;if(!H)switch(h){case"bestFit":{var B;const q=(B=I.filter(W=>{if(O){const $=dp(W.placement);return $===_||$==="y"}return!0}).map(W=>[W.placement,W.overflows.filter($=>$>0).reduce(($,J)=>$+J,0)]).sort((W,$)=>W[1]-$[1])[0])==null?void 0:B[0];q&&(H=q);break}case"initialPlacement":H=s;break}if(i!==H)return{reset:{placement:H}}}return{}}}},yW=new Set(["left","top"]);async function mW(r,e){const{placement:t,platform:n,elements:i}=r,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=qg(t),s=p2(t),u=dp(t)==="y",l=yW.has(o)?-1:1,c=a&&u?-1:1,f=v2(e,r);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),u?{x:h*c,y:d*l}:{x:d*l,y:h*c}}const bW=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,n;const{x:i,y:a,placement:o,middlewareData:s}=e,u=await mW(e,r);return o===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:o}}}}},_W=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:t,y:n,placement:i,platform:a}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:u={fn:b=>{let{x:_,y:m}=b;return{x:_,y:m}}},...l}=v2(r,e),c={x:t,y:n},f=await a.detectOverflow(e,l),d=dp(qg(i)),h=Z9(d);let p=c[h],g=c[d];if(o){const b=h==="y"?"top":"left",_=h==="y"?"bottom":"right",m=p+f[b],x=p-f[_];p=vk(m,p,x)}if(s){const b=d==="y"?"top":"left",_=d==="y"?"bottom":"right",m=g+f[b],x=g-f[_];g=vk(m,g,x)}const y=u.fn({...e,[h]:p,[d]:g});return{...y,data:{x:y.x-t,y:y.y-n,enabled:{[h]:o,[d]:s}}}}}};function g7(r){const e=Ff(r);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=_o(r),a=i?r.offsetWidth:t,o=i?r.offsetHeight:n,s=gx(t)!==a||gx(n)!==o;return s&&(t=a,n=o),{width:t,height:n,$:s}}function R5(r){return da(r)?r:r.contextElement}function bm(r){const e=R5(r);if(!_o(e))return _h(1);const t=e.getBoundingClientRect(),{width:n,height:i,$:a}=g7(e);let o=(a?gx(t.width):t.width)/n,s=(a?gx(t.height):t.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const wW=_h(0);function y7(r){const e=Ul(r);return!d2()||!e.visualViewport?wW:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xW(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Ul(r)?!1:e}function Gg(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=r.getBoundingClientRect(),a=R5(r);let o=_h(1);e&&(n?da(n)&&(o=bm(n)):o=bm(r));const s=xW(a,t,n)?y7(a):_h(0);let u=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a){const d=Ul(a),h=n&&da(n)?Ul(n):n;let p=d,g=rM(p);for(;g&&n&&h!==p;){const y=bm(g),b=g.getBoundingClientRect(),_=Ff(g),m=b.left+(g.clientLeft+parseFloat(_.paddingLeft))*y.x,x=b.top+(g.clientTop+parseFloat(_.paddingTop))*y.y;u*=y.x,l*=y.y,c*=y.x,f*=y.y,u+=m,l+=x,p=Ul(g),g=rM(p)}}return mx({width:c,height:f,x:u,y:l})}function m2(r,e){const t=h2(r).scrollLeft;return e?e.left+t:Gg(Sh(r)).left+t}function m7(r,e){const t=r.getBoundingClientRect(),n=t.left+e.scrollLeft-m2(r,t),i=t.top+e.scrollTop;return{x:n,y:i}}function EW(r){let{elements:e,rect:t,offsetParent:n,strategy:i}=r;const a=i==="fixed",o=Sh(n),s=e?f2(e.floating):!1;if(n===o||s&&a)return t;let u={scrollLeft:0,scrollTop:0},l=_h(1);const c=_h(0),f=_o(n);if((f||!f&&!a)&&((Fp(n)!=="body"||B1(o))&&(u=h2(n)),_o(n))){const h=Gg(n);l=bm(n),c.x=h.x+n.clientLeft,c.y=h.y+n.clientTop}const d=o&&!f&&!a?m7(o,u):_h(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-u.scrollLeft*l.x+c.x+d.x,y:t.y*l.y-u.scrollTop*l.y+c.y+d.y}}function SW(r){return Array.from(r.getClientRects())}function OW(r){const e=Sh(r),t=h2(r),n=r.ownerDocument.body,i=Bg(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Bg(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+m2(r);const s=-t.scrollTop;return Ff(n).direction==="rtl"&&(o+=Bg(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}const Ek=25;function TW(r,e){const t=Ul(r),n=Sh(r),i=t.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=d2();(!c||c&&e==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}const l=m2(n);if(l<=0){const c=n.ownerDocument,f=c.body,d=getComputedStyle(f),h=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,p=Math.abs(n.clientWidth-f.clientWidth-h);p<=Ek&&(a-=p)}else l<=Ek&&(a+=l);return{width:a,height:o,x:s,y:u}}const CW=new Set(["absolute","fixed"]);function AW(r,e){const t=Gg(r,!0,e==="fixed"),n=t.top+r.clientTop,i=t.left+r.clientLeft,a=_o(r)?bm(r):_h(1),o=r.clientWidth*a.x,s=r.clientHeight*a.y,u=i*a.x,l=n*a.y;return{width:o,height:s,x:u,y:l}}function Sk(r,e,t){let n;if(e==="viewport")n=TW(r,t);else if(e==="document")n=OW(Sh(r));else if(da(e))n=AW(e,t);else{const i=y7(r);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return mx(n)}function b7(r,e){const t=hv(r);return t===e||!da(t)||cv(t)?!1:Ff(t).position==="fixed"||b7(t,e)}function RW(r,e){const t=e.get(r);if(t)return t;let n=wp(r,[],!1).filter(s=>da(s)&&Fp(s)!=="body"),i=null;const a=Ff(r).position==="fixed";let o=a?hv(r):r;for(;da(o)&&!cv(o);){const s=Ff(o),u=C5(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&CW.has(i.position)||B1(o)&&!u&&b7(r,o))?n=n.filter(c=>c!==o):i=s,o=hv(o)}return e.set(r,n),n}function PW(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r;const o=[...t==="clippingAncestors"?f2(e)?[]:RW(e,this._c):[].concat(t),n],s=o[0],u=o.reduce((l,c)=>{const f=Sk(e,c,i);return l.top=Bg(f.top,l.top),l.right=px(f.right,l.right),l.bottom=px(f.bottom,l.bottom),l.left=Bg(f.left,l.left),l},Sk(e,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function MW(r){const{width:e,height:t}=g7(r);return{width:e,height:t}}function DW(r,e,t){const n=_o(e),i=Sh(e),a=t==="fixed",o=Gg(r,!0,a,e);let s={scrollLeft:0,scrollTop:0};const u=_h(0);function l(){u.x=m2(i)}if(n||!n&&!a)if((Fp(e)!=="body"||B1(i))&&(s=h2(e)),n){const h=Gg(e,!0,a,e);u.x=h.x+e.clientLeft,u.y=h.y+e.clientTop}else i&&l();a&&!n&&i&&l();const c=i&&!n&&!a?m7(i,s):_h(0),f=o.left+s.scrollLeft-u.x-c.x,d=o.top+s.scrollTop-u.y-c.y;return{x:f,y:d,width:o.width,height:o.height}}function nS(r){return Ff(r).position==="static"}function Ok(r,e){if(!_o(r)||Ff(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return Sh(r)===t&&(t=t.ownerDocument.body),t}function _7(r,e){const t=Ul(r);if(f2(r))return t;if(!_o(r)){let i=hv(r);for(;i&&!cv(i);){if(da(i)&&!nS(i))return i;i=hv(i)}return t}let n=Ok(r,e);for(;n&&yH(n)&&nS(n);)n=Ok(n,e);return n&&cv(n)&&nS(n)&&!C5(n)?t:n||xH(r)||t}const kW=async function(r){const e=this.getOffsetParent||_7,t=this.getDimensions,n=await t(r.floating);return{reference:DW(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function IW(r){return Ff(r).direction==="rtl"}const NW={convertOffsetParentRelativeRectToViewportRelativeRect:EW,getDocumentElement:Sh,getClippingRect:PW,getOffsetParent:_7,getElementRects:kW,getClientRects:SW,getDimensions:MW,getScale:bm,isElement:da,isRTL:IW};function w7(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function LW(r,e){let t=null,n;const i=Sh(r);function a(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=r.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=l;if(s||e(),!d||!h)return;const p=hm(f),g=hm(i.clientWidth-(c+d)),y=hm(i.clientHeight-(f+h)),b=hm(c),m={rootMargin:-p+"px "+-g+"px "+-y+"px "+-b+"px",threshold:Bg(0,px(1,u))||1};let x=!0;function E(O){const S=O[0].intersectionRatio;if(S!==u){if(!x)return o();S?o(!1,S):n=setTimeout(()=>{o(!1,1e-7)},1e3)}S===1&&!w7(l,r.getBoundingClientRect())&&o(),x=!1}try{t=new IntersectionObserver(E,{...m,root:i.ownerDocument})}catch{t=new IntersectionObserver(E,m)}t.observe(r)}return o(!0),a}function P5(r,e,t,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=R5(r),c=i||a?[...l?wp(l):[],...wp(e)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",t,{passive:!0}),a&&b.addEventListener("resize",t)});const f=l&&s?LW(l,t):null;let d=-1,h=null;o&&(h=new ResizeObserver(b=>{let[_]=b;_&&_.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(e)})),t()}),l&&!u&&h.observe(l),h.observe(e));let p,g=u?Gg(r):null;u&&y();function y(){const b=Gg(r);g&&!w7(g,b)&&t(),g=b,p=requestAnimationFrame(y)}return t(),()=>{var b;c.forEach(_=>{i&&_.removeEventListener("scroll",t),a&&_.removeEventListener("resize",t)}),f==null||f(),(b=h)==null||b.disconnect(),h=null,u&&cancelAnimationFrame(p)}}const jW=bW,BW=_W,FW=gW,UW=(r,e,t)=>{const n=new Map,i={platform:NW,...t},a={...i.platform,_c:n};return pW(r,e,{...i,platform:a})};var zW=typeof document<"u",qW=function(){},Yw=zW?me.useLayoutEffect:qW;function Sx(r,e){if(r===e)return!0;if(typeof r!=typeof e)return!1;if(typeof r=="function"&&r.toString()===e.toString())return!0;let t,n,i;if(r&&e&&typeof r=="object"){if(Array.isArray(r)){if(t=r.length,t!==e.length)return!1;for(n=t;n--!==0;)if(!Sx(r[n],e[n]))return!1;return!0}if(i=Object.keys(r),t=i.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=t;n--!==0;){const a=i[n];if(!(a==="_owner"&&r.$$typeof)&&!Sx(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function x7(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function Tk(r,e){const t=x7(r);return Math.round(e*t)/t}function iS(r){const e=me.useRef(r);return Yw(()=>{e.current=r}),e}function GW(r){r===void 0&&(r={});const{placement:e="bottom",strategy:t="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:u,open:l}=r,[c,f]=me.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,h]=me.useState(n);Sx(d,n)||h(n);const[p,g]=me.useState(null),[y,b]=me.useState(null),_=me.useCallback(W=>{W!==O.current&&(O.current=W,g(W))},[]),m=me.useCallback(W=>{W!==S.current&&(S.current=W,b(W))},[]),x=a||p,E=o||y,O=me.useRef(null),S=me.useRef(null),T=me.useRef(c),P=u!=null,I=iS(u),k=iS(i),L=iS(l),B=me.useCallback(()=>{if(!O.current||!S.current)return;const W={placement:e,strategy:t,middleware:d};k.current&&(W.platform=k.current),UW(O.current,S.current,W).then($=>{const J={...$,isPositioned:L.current!==!1};j.current&&!Sx(T.current,J)&&(T.current=J,y2.flushSync(()=>{f(J)}))})},[d,e,t,k,L]);Yw(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(W=>({...W,isPositioned:!1})))},[l]);const j=me.useRef(!1);Yw(()=>(j.current=!0,()=>{j.current=!1}),[]),Yw(()=>{if(x&&(O.current=x),E&&(S.current=E),x&&E){if(I.current)return I.current(x,E,B);B()}},[x,E,B,I,P]);const z=me.useMemo(()=>({reference:O,floating:S,setReference:_,setFloating:m}),[_,m]),H=me.useMemo(()=>({reference:x,floating:E}),[x,E]),q=me.useMemo(()=>{const W={position:t,left:0,top:0};if(!H.floating)return W;const $=Tk(H.floating,c.x),J=Tk(H.floating,c.y);return s?{...W,transform:"translate("+$+"px, "+J+"px)",...x7(H.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:$,top:J}},[t,s,H.floating,c.x,c.y]);return me.useMemo(()=>({...c,update:B,refs:z,elements:H,floatingStyles:q}),[c,B,z,H,q])}const M5=(r,e)=>({...jW(r),options:[r,e]}),D5=(r,e)=>({...BW(r),options:[r,e]}),k5=(r,e)=>({...FW(r),options:[r,e]});function mv(r){const e=me.useRef(void 0),t=me.useCallback(n=>{const i=r.map(a=>{if(a!=null){if(typeof a=="function"){const o=a,s=o(n);return typeof s=="function"?s:()=>{o(null)}}return a.current=n,()=>{a.current=null}}});return()=>{i.forEach(a=>a==null?void 0:a())}},r);return me.useMemo(()=>r.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=t(n))},r)}function VW(r,e){const t=r.compareDocumentPosition(e);return t&Node.DOCUMENT_POSITION_FOLLOWING||t&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:t&Node.DOCUMENT_POSITION_PRECEDING||t&Node.DOCUMENT_POSITION_CONTAINS?1:0}const E7=me.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function HW(r){const{children:e,elementsRef:t,labelsRef:n}=r,[i,a]=me.useState(()=>new Set),o=me.useCallback(l=>{a(c=>new Set(c).add(l))},[]),s=me.useCallback(l=>{a(c=>{const f=new Set(c);return f.delete(l),f})},[]),u=me.useMemo(()=>{const l=new Map;return Array.from(i.keys()).sort(VW).forEach((f,d)=>{l.set(f,d)}),l},[i]);return Te.jsx(E7.Provider,{value:me.useMemo(()=>({register:o,unregister:s,map:u,elementsRef:t,labelsRef:n}),[o,s,u,t,n]),children:e})}function b2(r){r===void 0&&(r={});const{label:e}=r,{register:t,unregister:n,map:i,elementsRef:a,labelsRef:o}=me.useContext(E7),[s,u]=me.useState(null),l=me.useRef(null),c=me.useCallback(f=>{if(l.current=f,s!==null&&(a.current[s]=f,o)){var d;const h=e!==void 0;o.current[s]=h?e:(d=f==null?void 0:f.textContent)!=null?d:null}},[s,a,o,e]);return Di(()=>{const f=l.current;if(f)return t(f),()=>{n(f)}},[t,n]),Di(()=>{const f=l.current?i.get(l.current):null;f!=null&&u(f)},[i]),me.useMemo(()=>({ref:c,index:s??-1}),[s,c])}const WW="data-floating-ui-focusable",Ck="active",Ak="selected",U1="ArrowLeft",z1="ArrowRight",S7="ArrowUp",_2="ArrowDown",YW={...q9};let Rk=!1,XW=0;const Pk=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+XW++;function $W(){const[r,e]=me.useState(()=>Rk?Pk():void 0);return Di(()=>{r==null&&e(Pk())},[]),me.useEffect(()=>{Rk=!0},[]),r}const KW=YW.useId,w2=KW||$W;function O7(){const r=new Map;return{emit(e,t){var n;(n=r.get(e))==null||n.forEach(i=>i(t))},on(e,t){r.has(e)||r.set(e,new Set),r.get(e).add(t)},off(e,t){var n;(n=r.get(e))==null||n.delete(t)}}}const T7=me.createContext(null),C7=me.createContext(null),Up=()=>{var r;return((r=me.useContext(T7))==null?void 0:r.id)||null},bv=()=>me.useContext(C7);function ZW(r){const e=w2(),t=bv(),i=Up();return Di(()=>{if(!e)return;const a={id:e,parentId:i};return t==null||t.addNode(a),()=>{t==null||t.removeNode(a)}},[t,e,i]),e}function QW(r){const{children:e,id:t}=r,n=Up();return Te.jsx(T7.Provider,{value:me.useMemo(()=>({id:t,parentId:n}),[t,n]),children:e})}function JW(r){const{children:e}=r,t=me.useRef([]),n=me.useCallback(o=>{t.current=[...t.current,o]},[]),i=me.useCallback(o=>{t.current=t.current.filter(s=>s!==o)},[]),[a]=me.useState(()=>O7());return Te.jsx(C7.Provider,{value:me.useMemo(()=>({nodesRef:t,addNode:n,removeNode:i,events:a}),[n,i,a]),children:e})}function Vg(r){return"data-floating-ui-"+r}function au(r){r.current!==-1&&(clearTimeout(r.current),r.current=-1)}const Mk=Vg("safe-polygon");function aS(r,e,t){if(t&&!Nm(t))return 0;if(typeof r=="number")return r;if(typeof r=="function"){const n=r();return typeof n=="number"?n:n==null?void 0:n[e]}return r==null?void 0:r[e]}function oS(r){return typeof r=="function"?r():r}function A7(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,dataRef:i,events:a,elements:o}=r,{enabled:s=!0,delay:u=0,handleClose:l=null,mouseOnly:c=!1,restMs:f=0,move:d=!0}=e,h=bv(),p=Up(),g=Ls(l),y=Ls(u),b=Ls(t),_=Ls(f),m=me.useRef(),x=me.useRef(-1),E=me.useRef(),O=me.useRef(-1),S=me.useRef(!0),T=me.useRef(!1),P=me.useRef(()=>{}),I=me.useRef(!1),k=Wa(()=>{var q;const W=(q=i.current.openEvent)==null?void 0:q.type;return(W==null?void 0:W.includes("mouse"))&&W!=="mousedown"});me.useEffect(()=>{if(!s)return;function q(W){let{open:$}=W;$||(au(x),au(O),S.current=!0,I.current=!1)}return a.on("openchange",q),()=>{a.off("openchange",q)}},[s,a]),me.useEffect(()=>{if(!s||!g.current||!t)return;function q($){k()&&n(!1,$,"hover")}const W=su(o.floating).documentElement;return W.addEventListener("mouseleave",q),()=>{W.removeEventListener("mouseleave",q)}},[o.floating,t,n,s,g,k]);const L=me.useCallback(function(q,W,$){W===void 0&&(W=!0),$===void 0&&($="hover");const J=aS(y.current,"close",m.current);J&&!E.current?(au(x),x.current=window.setTimeout(()=>n(!1,q,$),J)):W&&(au(x),n(!1,q,$))},[y,n]),B=Wa(()=>{P.current(),E.current=void 0}),j=Wa(()=>{if(T.current){const q=su(o.floating).body;q.style.pointerEvents="",q.removeAttribute(Mk),T.current=!1}}),z=Wa(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);me.useEffect(()=>{if(!s)return;function q(Z){if(au(x),S.current=!1,c&&!Nm(m.current)||oS(_.current)>0&&!aS(y.current,"open"))return;const ue=aS(y.current,"open",m.current);ue?x.current=window.setTimeout(()=>{b.current||n(!0,Z,"hover")},ue):t||n(!0,Z,"hover")}function W(Z){if(z()){j();return}P.current();const ue=su(o.floating);if(au(O),I.current=!1,g.current&&i.current.floatingContext){t||au(x),E.current=g.current({...i.current.floatingContext,tree:h,x:Z.clientX,y:Z.clientY,onClose(){j(),B(),z()||L(Z,!0,"safe-polygon")}});const ne=E.current;ue.addEventListener("mousemove",ne),P.current=()=>{ue.removeEventListener("mousemove",ne)};return}(m.current==="touch"?!Ns(o.floating,Z.relatedTarget):!0)&&L(Z)}function $(Z){z()||i.current.floatingContext&&(g.current==null||g.current({...i.current.floatingContext,tree:h,x:Z.clientX,y:Z.clientY,onClose(){j(),B(),z()||L(Z)}})(Z))}function J(){au(x)}function X(Z){z()||L(Z,!1)}if(da(o.domReference)){const Z=o.domReference,ue=o.floating;return t&&Z.addEventListener("mouseleave",$),d&&Z.addEventListener("mousemove",q,{once:!0}),Z.addEventListener("mouseenter",q),Z.addEventListener("mouseleave",W),ue&&(ue.addEventListener("mouseleave",$),ue.addEventListener("mouseenter",J),ue.addEventListener("mouseleave",X)),()=>{t&&Z.removeEventListener("mouseleave",$),d&&Z.removeEventListener("mousemove",q),Z.removeEventListener("mouseenter",q),Z.removeEventListener("mouseleave",W),ue&&(ue.removeEventListener("mouseleave",$),ue.removeEventListener("mouseenter",J),ue.removeEventListener("mouseleave",X))}}},[o,s,r,c,d,L,B,j,n,t,b,h,y,g,i,z,_]),Di(()=>{var q;if(s&&t&&(q=g.current)!=null&&(q=q.__options)!=null&&q.blockPointerEvents&&k()){T.current=!0;const $=o.floating;if(da(o.domReference)&&$){var W;const J=su(o.floating).body;J.setAttribute(Mk,"");const X=o.domReference,Z=h==null||(W=h.nodesRef.current.find(ue=>ue.id===p))==null||(W=W.context)==null?void 0:W.elements.floating;return Z&&(Z.style.pointerEvents=""),J.style.pointerEvents="none",X.style.pointerEvents="auto",$.style.pointerEvents="auto",()=>{J.style.pointerEvents="",X.style.pointerEvents="",$.style.pointerEvents=""}}}},[s,t,p,o,h,g,k]),Di(()=>{t||(m.current=void 0,I.current=!1,B(),j())},[t,B,j]),me.useEffect(()=>()=>{B(),au(x),au(O),j()},[s,o.domReference,B,j]);const H=me.useMemo(()=>{function q(W){m.current=W.pointerType}return{onPointerDown:q,onPointerEnter:q,onMouseMove(W){const{nativeEvent:$}=W;function J(){!S.current&&!b.current&&n(!0,$,"hover")}c&&!Nm(m.current)||t||oS(_.current)===0||I.current&&W.movementX**2+W.movementY**2<2||(au(O),m.current==="touch"?J():(I.current=!0,O.current=window.setTimeout(J,oS(_.current))))}}},[c,n,t,b,_]);return me.useMemo(()=>s?{reference:H}:{},[s,H])}let Dk=0;function Tg(r,e){e===void 0&&(e={});const{preventScroll:t=!1,cancelPrevious:n=!0,sync:i=!1}=e;n&&cancelAnimationFrame(Dk);const a=()=>r==null?void 0:r.focus({preventScroll:t});i?a():Dk=requestAnimationFrame(a)}function sS(r,e){if(!r||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(r.contains(e))return!0;if(t&&vx(t)){let n=e;for(;n;){if(r===n)return!0;n=n.parentNode||n.host}}return!1}function eY(r){return"composedPath"in r?r.composedPath()[0]:r.target}function tY(r){return(r==null?void 0:r.ownerDocument)||document}const _m={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function kk(r){return r==="inert"?_m.inert:r==="aria-hidden"?_m["aria-hidden"]:_m.none}let nw=new WeakSet,iw={},uS=0;const rY=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,R7=r=>r&&(r.host||R7(r.parentNode)),nY=(r,e)=>e.map(t=>{if(r.contains(t))return t;const n=R7(t);return r.contains(n)?n:null}).filter(t=>t!=null);function iY(r,e,t,n){const i="data-floating-ui-inert",a=n?"inert":t?"aria-hidden":null,o=nY(e,r),s=new Set,u=new Set(o),l=[];iw[i]||(iw[i]=new WeakMap);const c=iw[i];o.forEach(f),d(e),s.clear();function f(h){!h||s.has(h)||(s.add(h),h.parentNode&&f(h.parentNode))}function d(h){!h||u.has(h)||[].forEach.call(h.children,p=>{if(Fp(p)!=="script")if(s.has(p))d(p);else{const g=a?p.getAttribute(a):null,y=g!==null&&g!=="false",b=kk(a),_=(b.get(p)||0)+1,m=(c.get(p)||0)+1;b.set(p,_),c.set(p,m),l.push(p),_===1&&y&&nw.add(p),m===1&&p.setAttribute(i,""),!y&&a&&p.setAttribute(a,a==="inert"?"":"true")}})}return uS++,()=>{l.forEach(h=>{const p=kk(a),y=(p.get(h)||0)-1,b=(c.get(h)||0)-1;p.set(h,y),c.set(h,b),y||(!nw.has(h)&&a&&h.removeAttribute(a),nw.delete(h)),b||h.removeAttribute(i)}),uS--,uS||(_m.inert=new WeakMap,_m["aria-hidden"]=new WeakMap,_m.none=new WeakMap,nw=new WeakSet,iw={})}}function Ik(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);const n=tY(r[0]).body;return iY(r.concat(Array.from(n.querySelectorAll('[aria-live],[role="status"],output'))),n,e,t)}const I5={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Ox=me.forwardRef(function(e,t){const[n,i]=me.useState();Di(()=>{l7()&&i("button")},[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Vg("focus-guard")]:"",style:I5};return Te.jsx("span",{...e,...a})}),aY={clipPath:"inset(50%)",position:"fixed",top:0,left:0},P7=me.createContext(null),Nk=Vg("portal");function oY(r){r===void 0&&(r={});const{id:e,root:t}=r,n=w2(),i=M7(),[a,o]=me.useState(null),s=me.useRef(null);return Di(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),Di(()=>{if(!n||s.current)return;const u=e?document.getElementById(e):null;if(!u)return;const l=document.createElement("div");l.id=n,l.setAttribute(Nk,""),u.appendChild(l),s.current=l,o(l)},[e,n]),Di(()=>{if(t===null||!n||s.current)return;let u=t||(i==null?void 0:i.portalNode);u&&!T5(u)&&(u=u.current),u=u||document.body;let l=null;e&&(l=document.createElement("div"),l.id=e,u.appendChild(l));const c=document.createElement("div");c.id=n,c.setAttribute(Nk,""),u=l||u,u.appendChild(c),s.current=c,o(c)},[e,t,n,i]),a}function Tx(r){const{children:e,id:t,root:n,preserveTabOrder:i=!0}=r,a=oY({id:t,root:n}),[o,s]=me.useState(null),u=me.useRef(null),l=me.useRef(null),c=me.useRef(null),f=me.useRef(null),d=o==null?void 0:o.modal,h=o==null?void 0:o.open,p=!!o&&!o.modal&&o.open&&i&&!!(n||a);return me.useEffect(()=>{if(!a||!i||d)return;function g(y){a&&Pb(y)&&(y.type==="focusin"?wk:hW)(a)}return a.addEventListener("focusin",g,!0),a.addEventListener("focusout",g,!0),()=>{a.removeEventListener("focusin",g,!0),a.removeEventListener("focusout",g,!0)}},[a,i,d]),me.useEffect(()=>{a&&(h||wk(a))},[h,a]),Te.jsxs(P7.Provider,{value:me.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:l,beforeInsideRef:c,afterInsideRef:f,portalNode:a,setFocusManagerState:s}),[i,a]),children:[p&&a&&Te.jsx(Ox,{"data-type":"outside",ref:u,onFocus:g=>{if(Pb(g,a)){var y;(y=c.current)==null||y.focus()}else{const b=o?o.domReference:null,_=p7(b);_==null||_.focus()}}}),p&&a&&Te.jsx("span",{"aria-owns":a.id,style:aY}),a&&y2.createPortal(e,a),p&&a&&Te.jsx(Ox,{"data-type":"outside",ref:l,onFocus:g=>{if(Pb(g,a)){var y;(y=f.current)==null||y.focus()}else{const b=o?o.domReference:null,_=v7(b);_==null||_.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,g.nativeEvent,"focus-out"))}}})]})}const M7=()=>me.useContext(P7);function Lk(r){return me.useMemo(()=>e=>{r.forEach(t=>{t&&(t.current=e)})},r)}const sY=20;let hp=[];function N5(){hp=hp.filter(r=>r.isConnected)}function uY(r){N5(),r&&Fp(r)!=="body"&&(hp.push(r),hp.length>sY&&(hp=hp.slice(-20)))}function jk(){return N5(),hp[hp.length-1]}function lY(r){const e=F1();return o7(r,e)?r:g2(r,e)[0]||r}function Bk(r,e){var t;if(!e.current.includes("floating")&&!((t=r.getAttribute("role"))!=null&&t.includes("dialog")))return;const n=F1(),a=$H(r,n).filter(s=>{const u=s.getAttribute("data-tabindex")||"";return o7(s,n)||s.hasAttribute("data-tabindex")&&!u.startsWith("-")}),o=r.getAttribute("tabindex");e.current.includes("floating")||a.length===0?o!=="0"&&r.setAttribute("tabindex","0"):(o!=="-1"||r.hasAttribute("data-tabindex")&&r.getAttribute("data-tabindex")!=="-1")&&(r.setAttribute("tabindex","-1"),r.setAttribute("data-tabindex","-1"))}const cY=me.forwardRef(function(e,t){return Te.jsx("button",{...e,type:"button",ref:t,tabIndex:-1,style:I5})});function L5(r){const{context:e,children:t,disabled:n=!1,order:i=["content"],guards:a=!0,initialFocus:o=0,returnFocus:s=!0,restoreFocus:u=!1,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:f=!0,outsideElementsInert:d=!1,getInsideElements:h=()=>[]}=r,{open:p,onOpenChange:g,events:y,dataRef:b,elements:{domReference:_,floating:m}}=e,x=Wa(()=>{var ge;return(ge=b.current.floatingContext)==null?void 0:ge.nodeId}),E=Wa(h),O=typeof o=="number"&&o<0,S=sM(_)&&O,T=rY(),P=T?a:!0,I=!P||T&&d,k=Ls(i),L=Ls(o),B=Ls(s),j=bv(),z=M7(),H=me.useRef(null),q=me.useRef(null),W=me.useRef(!1),$=me.useRef(!1),J=me.useRef(-1),X=me.useRef(-1),Z=z!=null,ue=Ex(m),re=Wa(function(ge){return ge===void 0&&(ge=ue),ge?g2(ge,F1()):[]}),ne=Wa(ge=>{const Oe=re(ge);return k.current.map(ke=>_&&ke==="reference"?_:ue&&ke==="floating"?ue:Oe).filter(Boolean).flat()});me.useEffect(()=>{if(n||!l)return;function ge(ke){if(ke.key==="Tab"){Ns(ue,yh(su(ue)))&&re().length===0&&!S&&ou(ke);const De=ne(),Ne=mh(ke);k.current[0]==="reference"&&Ne===_&&(ou(ke),ke.shiftKey?Tg(De[De.length-1]):Tg(De[1])),k.current[1]==="floating"&&Ne===ue&&ke.shiftKey&&(ou(ke),Tg(De[0]))}}const Oe=su(ue);return Oe.addEventListener("keydown",ge),()=>{Oe.removeEventListener("keydown",ge)}},[n,_,ue,l,k,S,re,ne]),me.useEffect(()=>{if(n||!m)return;function ge(Oe){const ke=mh(Oe),Ne=re().indexOf(ke);Ne!==-1&&(J.current=Ne)}return m.addEventListener("focusin",ge),()=>{m.removeEventListener("focusin",ge)}},[n,m,re]),me.useEffect(()=>{if(n||!f)return;function ge(){$.current=!0,setTimeout(()=>{$.current=!1})}function Oe(Ne){const Ce=Ne.relatedTarget,Y=Ne.currentTarget,Q=mh(Ne);queueMicrotask(()=>{const ie=x(),we=!(Ns(_,Ce)||Ns(m,Ce)||Ns(Ce,m)||Ns(z==null?void 0:z.portalNode,Ce)||Ce!=null&&Ce.hasAttribute(Vg("focus-guard"))||j&&(Fg(j.nodesRef.current,ie).find(Ee=>{var Me,Ie;return Ns((Me=Ee.context)==null?void 0:Me.elements.floating,Ce)||Ns((Ie=Ee.context)==null?void 0:Ie.elements.domReference,Ce)})||bk(j.nodesRef.current,ie).find(Ee=>{var Me,Ie,Ye;return[(Me=Ee.context)==null?void 0:Me.elements.floating,Ex((Ie=Ee.context)==null?void 0:Ie.elements.floating)].includes(Ce)||((Ye=Ee.context)==null?void 0:Ye.elements.domReference)===Ce})));if(Y===_&&ue&&Bk(ue,k),u&&Y!==_&&!(Q!=null&&Q.isConnected)&&yh(su(ue))===su(ue).body){_o(ue)&&ue.focus();const Ee=J.current,Me=re(),Ie=Me[Ee]||Me[Me.length-1]||ue;_o(Ie)&&Ie.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(S||!l)&&Ce&&we&&!$.current&&Ce!==jk()&&(W.current=!0,g(!1,Ne,"focus-out"))})}const ke=!!(!j&&z);function De(){au(X),b.current.insideReactTree=!0,X.current=window.setTimeout(()=>{b.current.insideReactTree=!1})}if(m&&_o(_))return _.addEventListener("focusout",Oe),_.addEventListener("pointerdown",ge),m.addEventListener("focusout",Oe),ke&&m.addEventListener("focusout",De,!0),()=>{_.removeEventListener("focusout",Oe),_.removeEventListener("pointerdown",ge),m.removeEventListener("focusout",Oe),ke&&m.removeEventListener("focusout",De,!0)}},[n,_,m,ue,l,j,z,g,f,u,re,S,x,k,b]);const le=me.useRef(null),ce=me.useRef(null),pe=Lk([le,z==null?void 0:z.beforeInsideRef]),fe=Lk([ce,z==null?void 0:z.afterInsideRef]);me.useEffect(()=>{var ge,Oe;if(n||!m)return;const ke=Array.from((z==null||(ge=z.portalNode)==null?void 0:ge.querySelectorAll("["+Vg("portal")+"]"))||[]),Ne=(Oe=(j?bk(j.nodesRef.current,x()):[]).find(Q=>{var ie;return sM(((ie=Q.context)==null?void 0:ie.elements.domReference)||null)}))==null||(Oe=Oe.context)==null?void 0:Oe.elements.domReference,Ce=[m,Ne,...ke,...E(),H.current,q.current,le.current,ce.current,z==null?void 0:z.beforeOutsideRef.current,z==null?void 0:z.afterOutsideRef.current,k.current.includes("reference")||S?_:null].filter(Q=>Q!=null),Y=l||S?Ik(Ce,!I,I):Ik(Ce);return()=>{Y()}},[n,_,m,l,k,z,S,P,I,j,x,E]),Di(()=>{if(n||!_o(ue))return;const ge=su(ue),Oe=yh(ge);queueMicrotask(()=>{const ke=ne(ue),De=L.current,Ne=(typeof De=="number"?ke[De]:De.current)||ue,Ce=Ns(ue,Oe);!O&&!Ce&&p&&Tg(Ne,{preventScroll:Ne===ue})})},[n,p,ue,O,ne,L]),Di(()=>{if(n||!ue)return;const ge=su(ue),Oe=yh(ge);uY(Oe);function ke(Ce){let{reason:Y,event:Q,nested:ie}=Ce;if(["hover","safe-polygon"].includes(Y)&&Q.type==="mouseleave"&&(W.current=!0),Y==="outside-press")if(ie)W.current=!1;else if(f7(Q)||d7(Q))W.current=!1;else{let we=!1;document.createElement("div").focus({get preventScroll(){return we=!0,!1}}),we?W.current=!1:W.current=!0}}y.on("openchange",ke);const De=ge.createElement("span");De.setAttribute("tabindex","-1"),De.setAttribute("aria-hidden","true"),Object.assign(De.style,I5),Z&&_&&_.insertAdjacentElement("afterend",De);function Ne(){if(typeof B.current=="boolean"){const Ce=_||jk();return Ce&&Ce.isConnected?Ce:De}return B.current.current||De}return()=>{y.off("openchange",ke);const Ce=yh(ge),Y=Ns(m,Ce)||j&&Fg(j.nodesRef.current,x(),!1).some(ie=>{var we;return Ns((we=ie.context)==null?void 0:we.elements.floating,Ce)}),Q=Ne();queueMicrotask(()=>{const ie=lY(Q);B.current&&!W.current&&_o(ie)&&(!(ie!==Ce&&Ce!==ge.body)||Y)&&ie.focus({preventScroll:!0}),De.remove()})}},[n,m,ue,B,b,y,j,Z,_,x]),me.useEffect(()=>(queueMicrotask(()=>{W.current=!1}),()=>{queueMicrotask(N5)}),[n]),Di(()=>{if(!n&&z)return z.setFocusManagerState({modal:l,closeOnFocusOut:f,open:p,onOpenChange:g,domReference:_}),()=>{z.setFocusManagerState(null)}},[n,z,l,p,g,f,_]),Di(()=>{n||ue&&Bk(ue,k)},[n,ue,k]);function se(ge){return n||!c||!l?null:Te.jsx(cY,{ref:ge==="start"?H:q,onClick:Oe=>g(!1,Oe.nativeEvent),children:typeof c=="string"?c:"Dismiss"})}const de=!n&&P&&(l?!S:!0)&&(Z||l);return Te.jsxs(Te.Fragment,{children:[de&&Te.jsx(Ox,{"data-type":"inside",ref:pe,onFocus:ge=>{if(l){const ke=ne();Tg(i[0]==="reference"?ke[0]:ke[ke.length-1])}else if(z!=null&&z.preserveTabOrder&&z.portalNode)if(W.current=!1,Pb(ge,z.portalNode)){const ke=v7(_);ke==null||ke.focus()}else{var Oe;(Oe=z.beforeOutsideRef.current)==null||Oe.focus()}}}),!S&&se("start"),t,se("end"),de&&Te.jsx(Ox,{"data-type":"inside",ref:fe,onFocus:ge=>{if(l)Tg(ne()[0]);else if(z!=null&&z.preserveTabOrder&&z.portalNode)if(f&&(W.current=!0),Pb(ge,z.portalNode)){const ke=p7(_);ke==null||ke.focus()}else{var Oe;(Oe=z.afterOutsideRef.current)==null||Oe.focus()}}})]})}function Fk(r){return _o(r.target)&&r.target.tagName==="BUTTON"}function fY(r){return _o(r.target)&&r.target.tagName==="A"}function Uk(r){return A5(r)}function j5(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,dataRef:i,elements:{domReference:a}}=r,{enabled:o=!0,event:s="click",toggle:u=!0,ignoreMouse:l=!1,keyboardHandlers:c=!0,stickIfOpen:f=!0}=e,d=me.useRef(),h=me.useRef(!1),p=me.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const y=d.current;g.button===0&&s!=="click"&&(Nm(y,!0)&&l||(t&&u&&(!(i.current.openEvent&&f)||i.current.openEvent.type==="mousedown")?n(!1,g.nativeEvent,"click"):(g.preventDefault(),n(!0,g.nativeEvent,"click"))))},onClick(g){const y=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Nm(y,!0)&&l||(t&&u&&(!(i.current.openEvent&&f)||i.current.openEvent.type==="click")?n(!1,g.nativeEvent,"click"):n(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!c||Fk(g))&&(g.key===" "&&!Uk(a)&&(g.preventDefault(),h.current=!0),!fY(g)&&g.key==="Enter"&&n(!(t&&u),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||Fk(g)||Uk(a)||g.key===" "&&h.current&&(h.current=!1,n(!(t&&u),g.nativeEvent,"click"))}}),[i,a,s,l,c,n,t,f,u]);return me.useMemo(()=>o?{reference:p}:{},[o,p])}function dY(r,e){let t=null,n=null,i=!1;return{contextElement:r||void 0,getBoundingClientRect(){var a;const o=(r==null?void 0:r.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s=e.axis==="x"||e.axis==="both",u=e.axis==="y"||e.axis==="both",l=["mouseenter","mousemove"].includes(((a=e.dataRef.current.openEvent)==null?void 0:a.type)||"")&&e.pointerType!=="touch";let c=o.width,f=o.height,d=o.x,h=o.y;return t==null&&e.x&&s&&(t=o.x-e.x),n==null&&e.y&&u&&(n=o.y-e.y),d-=t||0,h-=n||0,c=0,f=0,!i||l?(c=e.axis==="y"?o.width:0,f=e.axis==="x"?o.height:0,d=s&&e.x!=null?e.x:d,h=u&&e.y!=null?e.y:h):i&&!l&&(f=e.axis==="x"?o.height:f,c=e.axis==="y"?o.width:c),i=!0,{width:c,height:f,x:d,y:h,top:h,right:d+c,bottom:h+f,left:d}}}}function zk(r){return r!=null&&r.clientX!=null}function hY(r,e){e===void 0&&(e={});const{open:t,dataRef:n,elements:{floating:i,domReference:a},refs:o}=r,{enabled:s=!0,axis:u="both",x:l=null,y:c=null}=e,f=me.useRef(!1),d=me.useRef(null),[h,p]=me.useState(),[g,y]=me.useState([]),b=Wa((O,S)=>{f.current||n.current.openEvent&&!zk(n.current.openEvent)||o.setPositionReference(dY(a,{x:O,y:S,axis:u,dataRef:n,pointerType:h}))}),_=Wa(O=>{l!=null||c!=null||(t?d.current||y([]):b(O.clientX,O.clientY))}),m=Nm(h)?i:t,x=me.useCallback(()=>{if(!m||!s||l!=null||c!=null)return;const O=Ul(i);function S(T){const P=mh(T);Ns(i,P)?(O.removeEventListener("mousemove",S),d.current=null):b(T.clientX,T.clientY)}if(!n.current.openEvent||zk(n.current.openEvent)){O.addEventListener("mousemove",S);const T=()=>{O.removeEventListener("mousemove",S),d.current=null};return d.current=T,T}o.setPositionReference(a)},[m,s,l,c,i,n,o,a,b]);me.useEffect(()=>x(),[x,g]),me.useEffect(()=>{s&&!i&&(f.current=!1)},[s,i]),me.useEffect(()=>{!s&&t&&(f.current=!0)},[s,t]),Di(()=>{s&&(l!=null||c!=null)&&(f.current=!1,b(l,c))},[s,l,c,b]);const E=me.useMemo(()=>{function O(S){let{pointerType:T}=S;p(T)}return{onPointerDown:O,onPointerEnter:O,onMouseMove:_,onMouseEnter:_}},[_]);return me.useMemo(()=>s?{reference:E}:{},[s,E])}const vY={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},pY={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},qk=r=>{var e,t;return{escapeKey:typeof r=="boolean"?r:(e=r==null?void 0:r.escapeKey)!=null?e:!1,outsidePress:typeof r=="boolean"?r:(t=r==null?void 0:r.outsidePress)!=null?t:!0}};function B5(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,elements:i,dataRef:a}=r,{enabled:o=!0,escapeKey:s=!0,outsidePress:u=!0,outsidePressEvent:l="pointerdown",referencePress:c=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:h,capture:p}=e,g=bv(),y=Wa(typeof u=="function"?u:()=>!1),b=typeof u=="function"?y:u,_=me.useRef(!1),{escapeKey:m,outsidePress:x}=qk(h),{escapeKey:E,outsidePress:O}=qk(p),S=me.useRef(!1),T=Wa(j=>{var z;if(!t||!o||!s||j.key!=="Escape"||S.current)return;const H=(z=a.current.floatingContext)==null?void 0:z.nodeId,q=g?Fg(g.nodesRef.current,H):[];if(!m&&(j.stopPropagation(),q.length>0)){let W=!0;if(q.forEach($=>{var J;if((J=$.context)!=null&&J.open&&!$.context.dataRef.current.__escapeKeyBubbles){W=!1;return}}),!W)return}n(!1,nW(j)?j.nativeEvent:j,"escape-key")}),P=Wa(j=>{var z;const H=()=>{var q;T(j),(q=mh(j))==null||q.removeEventListener("keydown",H)};(z=mh(j))==null||z.addEventListener("keydown",H)}),I=Wa(j=>{var z;const H=a.current.insideReactTree;a.current.insideReactTree=!1;const q=_.current;if(_.current=!1,l==="click"&&q||H||typeof b=="function"&&!b(j))return;const W=mh(j),$="["+Vg("inert")+"]",J=su(i.floating).querySelectorAll($);let X=da(W)?W:null;for(;X&&!cv(X);){const ne=hv(X);if(cv(ne)||!da(ne))break;X=ne}if(J.length&&da(W)&&!eW(W)&&!Ns(W,i.floating)&&Array.from(J).every(ne=>!Ns(X,ne)))return;if(_o(W)&&B){const ne=cv(W),le=Ff(W),ce=/auto|scroll/,pe=ne||ce.test(le.overflowX),fe=ne||ce.test(le.overflowY),se=pe&&W.clientWidth>0&&W.scrollWidth>W.clientWidth,de=fe&&W.clientHeight>0&&W.scrollHeight>W.clientHeight,ge=le.direction==="rtl",Oe=de&&(ge?j.offsetX<=W.offsetWidth-W.clientWidth:j.offsetX>W.clientWidth),ke=se&&j.offsetY>W.clientHeight;if(Oe||ke)return}const Z=(z=a.current.floatingContext)==null?void 0:z.nodeId,ue=g&&Fg(g.nodesRef.current,Z).some(ne=>{var le;return tS(j,(le=ne.context)==null?void 0:le.elements.floating)});if(tS(j,i.floating)||tS(j,i.domReference)||ue)return;const re=g?Fg(g.nodesRef.current,Z):[];if(re.length>0){let ne=!0;if(re.forEach(le=>{var ce;if((ce=le.context)!=null&&ce.open&&!le.context.dataRef.current.__outsidePressBubbles){ne=!1;return}}),!ne)return}n(!1,j,"outside-press")}),k=Wa(j=>{var z;const H=()=>{var q;I(j),(q=mh(j))==null||q.removeEventListener(l,H)};(z=mh(j))==null||z.addEventListener(l,H)});me.useEffect(()=>{if(!t||!o)return;a.current.__escapeKeyBubbles=m,a.current.__outsidePressBubbles=x;let j=-1;function z(J){n(!1,J,"ancestor-scroll")}function H(){window.clearTimeout(j),S.current=!0}function q(){j=window.setTimeout(()=>{S.current=!1},d2()?5:0)}const W=su(i.floating);s&&(W.addEventListener("keydown",E?P:T,E),W.addEventListener("compositionstart",H),W.addEventListener("compositionend",q)),b&&W.addEventListener(l,O?k:I,O);let $=[];return d&&(da(i.domReference)&&($=wp(i.domReference)),da(i.floating)&&($=$.concat(wp(i.floating))),!da(i.reference)&&i.reference&&i.reference.contextElement&&($=$.concat(wp(i.reference.contextElement)))),$=$.filter(J=>{var X;return J!==((X=W.defaultView)==null?void 0:X.visualViewport)}),$.forEach(J=>{J.addEventListener("scroll",z,{passive:!0})}),()=>{s&&(W.removeEventListener("keydown",E?P:T,E),W.removeEventListener("compositionstart",H),W.removeEventListener("compositionend",q)),b&&W.removeEventListener(l,O?k:I,O),$.forEach(J=>{J.removeEventListener("scroll",z)}),window.clearTimeout(j)}},[a,i,s,b,l,t,n,d,o,m,x,T,E,P,I,O,k]),me.useEffect(()=>{a.current.insideReactTree=!1},[a,b,l]);const L=me.useMemo(()=>({onKeyDown:T,...c&&{[vY[f]]:j=>{n(!1,j.nativeEvent,"reference-press")},...f!=="click"&&{onClick(j){n(!1,j.nativeEvent,"reference-press")}}}}),[T,n,c,f]),B=me.useMemo(()=>({onKeyDown:T,onMouseDown(){_.current=!0},onMouseUp(){_.current=!0},[pY[l]]:()=>{a.current.insideReactTree=!0}}),[T,l,a]);return me.useMemo(()=>o?{reference:L,floating:B}:{},[o,L,B])}function gY(r){const{open:e=!1,onOpenChange:t,elements:n}=r,i=w2(),a=me.useRef({}),[o]=me.useState(()=>O7()),s=Up()!=null,[u,l]=me.useState(n.reference),c=Wa((h,p,g)=>{a.current.openEvent=h?p:void 0,o.emit("openchange",{open:h,event:p,reason:g,nested:s}),t==null||t(h,p,g)}),f=me.useMemo(()=>({setPositionReference:l}),[]),d=me.useMemo(()=>({reference:u||n.reference||null,floating:n.floating||null,domReference:n.reference}),[u,n.reference,n.floating]);return me.useMemo(()=>({dataRef:a,open:e,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[e,c,d,o,i,f])}function F5(r){r===void 0&&(r={});const{nodeId:e}=r,t=gY({...r,elements:{reference:null,floating:null,...r.elements}}),n=r.rootContext||t,i=n.elements,[a,o]=me.useState(null),[s,u]=me.useState(null),c=(i==null?void 0:i.domReference)||a,f=me.useRef(null),d=bv();Di(()=>{c&&(f.current=c)},[c]);const h=GW({...r,elements:{...i,...s&&{reference:s}}}),p=me.useCallback(m=>{const x=da(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),getClientRects:()=>m.getClientRects(),contextElement:m}:m;u(x),h.refs.setReference(x)},[h.refs]),g=me.useCallback(m=>{(da(m)||m===null)&&(f.current=m,o(m)),(da(h.refs.reference.current)||h.refs.reference.current===null||m!==null&&!da(m))&&h.refs.setReference(m)},[h.refs]),y=me.useMemo(()=>({...h.refs,setReference:g,setPositionReference:p,domReference:f}),[h.refs,g,p]),b=me.useMemo(()=>({...h.elements,domReference:c}),[h.elements,c]),_=me.useMemo(()=>({...h,...n,refs:y,elements:b,nodeId:e}),[h,y,b,e,n]);return Di(()=>{n.dataRef.current.floatingContext=_;const m=d==null?void 0:d.nodesRef.current.find(x=>x.id===e);m&&(m.context=_)}),me.useMemo(()=>({...h,context:_,refs:y,elements:b}),[h,y,b,_])}function lS(){return KH()&&l7()}function yY(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,events:i,dataRef:a,elements:o}=r,{enabled:s=!0,visibleOnly:u=!0}=e,l=me.useRef(!1),c=me.useRef(-1),f=me.useRef(!0);me.useEffect(()=>{if(!s)return;const h=Ul(o.domReference);function p(){!t&&_o(o.domReference)&&o.domReference===yh(su(o.domReference))&&(l.current=!0)}function g(){f.current=!0}function y(){f.current=!1}return h.addEventListener("blur",p),lS()&&(h.addEventListener("keydown",g,!0),h.addEventListener("pointerdown",y,!0)),()=>{h.removeEventListener("blur",p),lS()&&(h.removeEventListener("keydown",g,!0),h.removeEventListener("pointerdown",y,!0))}},[o.domReference,t,s]),me.useEffect(()=>{if(!s)return;function h(p){let{reason:g}=p;(g==="reference-press"||g==="escape-key")&&(l.current=!0)}return i.on("openchange",h),()=>{i.off("openchange",h)}},[i,s]),me.useEffect(()=>()=>{au(c)},[]);const d=me.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(h){if(l.current)return;const p=mh(h.nativeEvent);if(u&&da(p)){if(lS()&&!h.relatedTarget){if(!f.current&&!A5(p))return}else if(!tW(p))return}n(!0,h.nativeEvent,"focus")},onBlur(h){l.current=!1;const p=h.relatedTarget,g=h.nativeEvent,y=da(p)&&p.hasAttribute(Vg("focus-guard"))&&p.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var b;const _=yh(o.domReference?o.domReference.ownerDocument:document);!p&&_===o.domReference||Ns((b=a.current.floatingContext)==null?void 0:b.refs.floating.current,_)||Ns(o.domReference,_)||y||n(!1,g,"focus")})}}),[a,o.domReference,n,u]);return me.useMemo(()=>s?{reference:d}:{},[s,d])}function cS(r,e,t){const n=new Map,i=t==="item";let a=r;if(i&&r){const{[Ck]:o,[Ak]:s,...u}=r;a=u}return{...t==="floating"&&{tabIndex:-1,[WW]:""},...a,...e.map(o=>{const s=o?o[t]:null;return typeof s=="function"?r?s(r):null:s}).concat(r).reduce((o,s)=>(s&&Object.entries(s).forEach(u=>{let[l,c]=u;if(!(i&&[Ck,Ak].includes(l)))if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof c=="function"){var f;(f=n.get(l))==null||f.push(c),o[l]=function(){for(var d,h=arguments.length,p=new Array(h),g=0;gy(...p)).find(y=>y!==void 0)}}}else o[l]=c}),o),{})}}function U5(r){r===void 0&&(r=[]);const e=r.map(s=>s==null?void 0:s.reference),t=r.map(s=>s==null?void 0:s.floating),n=r.map(s=>s==null?void 0:s.item),i=me.useCallback(s=>cS(s,r,"reference"),e),a=me.useCallback(s=>cS(s,r,"floating"),t),o=me.useCallback(s=>cS(s,r,"item"),n);return me.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const mY="Escape";function x2(r,e,t){switch(r){case"vertical":return e;case"horizontal":return t;default:return e||t}}function aw(r,e){return x2(e,r===S7||r===_2,r===U1||r===z1)}function fS(r,e,t){return x2(e,r===_2,t?r===U1:r===z1)||r==="Enter"||r===" "||r===""}function Gk(r,e,t){return x2(e,t?r===U1:r===z1,r===_2)}function Vk(r,e,t,n){const i=t?r===z1:r===U1,a=r===S7;return e==="both"||e==="horizontal"&&n&&n>1?r===mY:x2(e,i,a)}function bY(r,e){const{open:t,onOpenChange:n,elements:i,floatingId:a}=r,{listRef:o,activeIndex:s,onNavigate:u=()=>{},enabled:l=!0,selectedIndex:c=null,allowEscape:f=!1,loop:d=!1,nested:h=!1,rtl:p=!1,virtual:g=!1,focusItemOnOpen:y="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:_=!0,disabledIndices:m=void 0,orientation:x="vertical",parentOrientation:E,cols:O=1,scrollItemIntoView:S=!0,virtualItemRef:T,itemSizes:P,dense:I=!1}=e,k=Ex(i.floating),L=Ls(k),B=Up(),j=bv();Di(()=>{r.dataRef.current.orientation=x},[r,x]);const z=Wa(()=>{u(W.current===-1?null:W.current)}),H=sM(i.domReference),q=me.useRef(y),W=me.useRef(c??-1),$=me.useRef(null),J=me.useRef(!0),X=me.useRef(z),Z=me.useRef(!!i.floating),ue=me.useRef(t),re=me.useRef(!1),ne=me.useRef(!1),le=Ls(m),ce=Ls(t),pe=Ls(S),fe=Ls(c),[se,de]=me.useState(),[ge,Oe]=me.useState(),ke=Wa(()=>{function Ee(ot){if(g){var mt;(mt=ot.id)!=null&&mt.endsWith("-fui-option")&&(ot.id=a+"-"+Math.random().toString(16).slice(2,10)),de(ot.id),j==null||j.events.emit("virtualfocus",ot),T&&(T.current=ot)}else Tg(ot,{sync:re.current,preventScroll:!0})}const Me=o.current[W.current],Ie=ne.current;Me&&Ee(Me),(re.current?ot=>ot():requestAnimationFrame)(()=>{const ot=o.current[W.current]||Me;if(!ot)return;Me||Ee(ot);const mt=pe.current;mt&&Ne&&(Ie||!J.current)&&(ot.scrollIntoView==null||ot.scrollIntoView(typeof mt=="boolean"?{block:"nearest",inline:"nearest"}:mt))})});Di(()=>{l&&(t&&i.floating?q.current&&c!=null&&(ne.current=!0,W.current=c,z()):Z.current&&(W.current=-1,X.current()))},[l,t,i.floating,c,z]),Di(()=>{if(l&&t&&i.floating)if(s==null){if(re.current=!1,fe.current!=null)return;if(Z.current&&(W.current=-1,ke()),(!ue.current||!Z.current)&&q.current&&($.current!=null||q.current===!0&&$.current==null)){let Ee=0;const Me=()=>{o.current[0]==null?(Ee<2&&(Ee?requestAnimationFrame:queueMicrotask)(Me),Ee++):(W.current=$.current==null||fS($.current,x,p)||h?rS(o,le.current):_k(o,le.current),$.current=null,z())};Me()}}else Rb(o,s)||(W.current=s,ke(),ne.current=!1)},[l,t,i.floating,s,fe,h,o,x,p,z,ke,le]),Di(()=>{var Ee;if(!l||i.floating||!j||g||!Z.current)return;const Me=j.nodesRef.current,Ie=(Ee=Me.find(mt=>mt.id===B))==null||(Ee=Ee.context)==null?void 0:Ee.elements.floating,Ye=yh(su(i.floating)),ot=Me.some(mt=>mt.context&&Ns(mt.context.elements.floating,Ye));Ie&&!ot&&J.current&&Ie.focus({preventScroll:!0})},[l,i.floating,j,B,g]),Di(()=>{if(!l||!j||!g||B)return;function Ee(Me){Oe(Me.id),T&&(T.current=Me)}return j.events.on("virtualfocus",Ee),()=>{j.events.off("virtualfocus",Ee)}},[l,j,g,B,T]),Di(()=>{X.current=z,ue.current=t,Z.current=!!i.floating}),Di(()=>{t||($.current=null,q.current=y)},[t,y]);const De=s!=null,Ne=me.useMemo(()=>{function Ee(Ie){if(!ce.current)return;const Ye=o.current.indexOf(Ie);Ye!==-1&&W.current!==Ye&&(W.current=Ye,z())}return{onFocus(Ie){let{currentTarget:Ye}=Ie;re.current=!0,Ee(Ye)},onClick:Ie=>{let{currentTarget:Ye}=Ie;return Ye.focus({preventScroll:!0})},onMouseMove(Ie){let{currentTarget:Ye}=Ie;re.current=!0,ne.current=!1,b&&Ee(Ye)},onPointerLeave(Ie){let{pointerType:Ye}=Ie;if(!(!J.current||Ye==="touch")&&(re.current=!0,!!b&&(W.current=-1,z(),!g))){var ot;(ot=L.current)==null||ot.focus({preventScroll:!0})}}}},[ce,L,b,o,z,g]),Ce=me.useCallback(()=>{var Ee;return E??(j==null||(Ee=j.nodesRef.current.find(Me=>Me.id===B))==null||(Ee=Ee.context)==null||(Ee=Ee.dataRef)==null?void 0:Ee.current.orientation)},[B,j,E]),Y=Wa(Ee=>{if(J.current=!1,re.current=!0,Ee.which===229||!ce.current&&Ee.currentTarget===L.current)return;if(h&&Vk(Ee.key,x,p,O)){aw(Ee.key,Ce())||ou(Ee),n(!1,Ee.nativeEvent,"list-navigation"),_o(i.domReference)&&(g?j==null||j.events.emit("virtualfocus",i.domReference):i.domReference.focus());return}const Me=W.current,Ie=rS(o,m),Ye=_k(o,m);if(H||(Ee.key==="Home"&&(ou(Ee),W.current=Ie,z()),Ee.key==="End"&&(ou(Ee),W.current=Ye,z())),O>1){const ot=P||Array.from({length:o.current.length},()=>({width:1,height:1})),mt=cW(ot,O,I),wt=mt.findIndex(vt=>vt!=null&&!Ww(o,vt,m)),Mt=mt.reduce((vt,tt,_e)=>tt!=null&&!Ww(o,tt,m)?_e:vt,-1),Dt=mt[lW({current:mt.map(vt=>vt!=null?o.current[vt]:null)},{event:Ee,orientation:x,loop:d,rtl:p,cols:O,disabledIndices:dW([...(typeof m!="function"?m:null)||o.current.map((vt,tt)=>Ww(o,tt,m)?tt:void 0),void 0],mt),minIndex:wt,maxIndex:Mt,prevIndex:fW(W.current>Ye?Ie:W.current,ot,mt,O,Ee.key===_2?"bl":Ee.key===(p?U1:z1)?"tr":"tl"),stopEvent:!0})];if(Dt!=null&&(W.current=Dt,z()),x==="both")return}if(aw(Ee.key,x)){if(ou(Ee),t&&!g&&yh(Ee.currentTarget.ownerDocument)===Ee.currentTarget){W.current=fS(Ee.key,x,p)?Ie:Ye,z();return}fS(Ee.key,x,p)?d?W.current=Me>=Ye?f&&Me!==o.current.length?-1:Ie:Yu(o,{startingIndex:Me,disabledIndices:m}):W.current=Math.min(Ye,Yu(o,{startingIndex:Me,disabledIndices:m})):d?W.current=Me<=Ie?f&&Me!==-1?o.current.length:Ye:Yu(o,{startingIndex:Me,decrement:!0,disabledIndices:m}):W.current=Math.max(Ie,Yu(o,{startingIndex:Me,decrement:!0,disabledIndices:m})),Rb(o,W.current)&&(W.current=-1),z()}}),Q=me.useMemo(()=>g&&t&&De&&{"aria-activedescendant":ge||se},[g,t,De,ge,se]),ie=me.useMemo(()=>({"aria-orientation":x==="both"?void 0:x,...H?{}:Q,onKeyDown:Y,onPointerMove(){J.current=!0}}),[Q,Y,x,H]),we=me.useMemo(()=>{function Ee(Ie){y==="auto"&&f7(Ie.nativeEvent)&&(q.current=!0)}function Me(Ie){q.current=y,y==="auto"&&d7(Ie.nativeEvent)&&(q.current=!0)}return{...Q,onKeyDown(Ie){J.current=!1;const Ye=Ie.key.startsWith("Arrow"),ot=["Home","End"].includes(Ie.key),mt=Ye||ot,wt=Gk(Ie.key,x,p),Mt=Vk(Ie.key,x,p,O),Dt=Gk(Ie.key,Ce(),p),vt=aw(Ie.key,x),tt=(h?Dt:vt)||Ie.key==="Enter"||Ie.key.trim()==="";if(g&&t){const Ze=j==null?void 0:j.nodesRef.current.find(It=>It.parentId==null),nt=j&&Ze?rW(j.nodesRef.current,Ze.id):null;if(mt&&nt&&T){const It=new KeyboardEvent("keydown",{key:Ie.key,bubbles:!0});if(wt||Mt){var _e,Ue;const ct=((_e=nt.context)==null?void 0:_e.elements.domReference)===Ie.currentTarget,Lt=Mt&&!ct?(Ue=nt.context)==null?void 0:Ue.elements.domReference:wt?o.current.find(Rt=>(Rt==null?void 0:Rt.id)===se):null;Lt&&(ou(Ie),Lt.dispatchEvent(It),Oe(void 0))}if((vt||ot)&&nt.context&&nt.context.open&&nt.parentId&&Ie.currentTarget!==nt.context.elements.domReference){var Qe;ou(Ie),(Qe=nt.context.elements.domReference)==null||Qe.dispatchEvent(It);return}}return Y(Ie)}if(!(!t&&!_&&Ye)){if(tt){const Ze=aw(Ie.key,Ce());$.current=h&&Ze?null:Ie.key}if(h){Dt&&(ou(Ie),t?(W.current=rS(o,le.current),z()):n(!0,Ie.nativeEvent,"list-navigation"));return}vt&&(c!=null&&(W.current=c),ou(Ie),!t&&_?n(!0,Ie.nativeEvent,"list-navigation"):Y(Ie),t&&z())}},onFocus(){t&&!g&&(W.current=-1,z())},onPointerDown:Me,onPointerEnter:Me,onMouseDown:Ee,onClick:Ee}},[se,Q,O,Y,le,y,o,h,z,n,t,_,x,Ce,p,c,j,g,T]);return me.useMemo(()=>l?{reference:we,floating:ie,item:Ne}:{},[l,we,ie,Ne])}const _Y=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function z5(r,e){var t,n;e===void 0&&(e={});const{open:i,elements:a,floatingId:o}=r,{enabled:s=!0,role:u="dialog"}=e,l=w2(),c=((t=a.domReference)==null?void 0:t.id)||l,f=me.useMemo(()=>{var _;return((_=Ex(a.floating))==null?void 0:_.id)||o},[a.floating,o]),d=(n=_Y.get(u))!=null?n:u,p=Up()!=null,g=me.useMemo(()=>d==="tooltip"||u==="label"?{["aria-"+(u==="label"?"labelledby":"describedby")]:i?f:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":d==="alertdialog"?"dialog":d,"aria-controls":i?f:void 0,...d==="listbox"&&{role:"combobox"},...d==="menu"&&{id:c},...d==="menu"&&p&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[d,f,p,i,c,u]),y=me.useMemo(()=>{const _={id:f,...d&&{role:d}};return d==="tooltip"||u==="label"?_:{..._,...d==="menu"&&{"aria-labelledby":c}}},[d,f,c,u]),b=me.useCallback(_=>{let{active:m,selected:x}=_;const E={role:"option",...m&&{id:f+"-fui-option"}};switch(u){case"select":case"combobox":return{...E,"aria-selected":x}}return{}},[f,u]);return me.useMemo(()=>s?{reference:g,floating:y,item:b}:{},[s,g,y,b])}const Hk=r=>r.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Yy(r,e){return typeof r=="function"?r(e):r}function wY(r,e){const[t,n]=me.useState(r);return r&&!t&&n(!0),me.useEffect(()=>{if(!r&&t){const i=setTimeout(()=>n(!1),e);return()=>clearTimeout(i)}},[r,t,e]),t}function xY(r,e){e===void 0&&(e={});const{open:t,elements:{floating:n}}=r,{duration:i=250}=e,o=(typeof i=="number"?i:i.close)||0,[s,u]=me.useState("unmounted"),l=wY(t,o);return!l&&s==="close"&&u("unmounted"),Di(()=>{if(n){if(t){u("initial");const c=requestAnimationFrame(()=>{y2.flushSync(()=>{u("open")})});return()=>{cancelAnimationFrame(c)}}u("close")}},[t,n]),{isMounted:l,status:s}}function EY(r,e){e===void 0&&(e={});const{initial:t={opacity:0},open:n,close:i,common:a,duration:o=250}=e,s=r.placement,u=s.split("-")[0],l=me.useMemo(()=>({side:u,placement:s}),[u,s]),c=typeof o=="number",f=(c?o:o.open)||0,d=(c?o:o.close)||0,[h,p]=me.useState(()=>({...Yy(a,l),...Yy(t,l)})),{isMounted:g,status:y}=xY(r,{duration:o}),b=Ls(t),_=Ls(n),m=Ls(i),x=Ls(a);return Di(()=>{const E=Yy(b.current,l),O=Yy(m.current,l),S=Yy(x.current,l),T=Yy(_.current,l)||Object.keys(E).reduce((P,I)=>(P[I]="",P),{});if(y==="initial"&&p(P=>({transitionProperty:P.transitionProperty,...S,...E})),y==="open"&&p({transitionProperty:Object.keys(T).map(Hk).join(","),transitionDuration:f+"ms",...S,...T}),y==="close"){const P=O||E;p({transitionProperty:Object.keys(P).map(Hk).join(","),transitionDuration:d+"ms",...S,...P})}},[d,m,b,_,x,f,y,l]),{isMounted:g,styles:h}}function SY(r,e){var t;const{open:n,dataRef:i}=r,{listRef:a,activeIndex:o,onMatch:s,onTypingChange:u,enabled:l=!0,findMatch:c=null,resetMs:f=750,ignoreKeys:d=[],selectedIndex:h=null}=e,p=me.useRef(-1),g=me.useRef(""),y=me.useRef((t=h??o)!=null?t:-1),b=me.useRef(null),_=Wa(s),m=Wa(u),x=Ls(c),E=Ls(d);Di(()=>{n&&(au(p),b.current=null,g.current="")},[n]),Di(()=>{if(n&&g.current===""){var I;y.current=(I=h??o)!=null?I:-1}},[n,h,o]);const O=Wa(I=>{I?i.current.typing||(i.current.typing=I,m(I)):i.current.typing&&(i.current.typing=I,m(I))}),S=Wa(I=>{function k(H,q,W){const $=x.current?x.current(q,W):q.find(J=>(J==null?void 0:J.toLocaleLowerCase().indexOf(W.toLocaleLowerCase()))===0);return $?H.indexOf($):-1}const L=a.current;if(g.current.length>0&&g.current[0]!==" "&&(k(L,L,g.current)===-1?O(!1):I.key===" "&&ou(I)),L==null||E.current.includes(I.key)||I.key.length!==1||I.ctrlKey||I.metaKey||I.altKey)return;n&&I.key!==" "&&(ou(I),O(!0)),L.every(H=>{var q,W;return H?((q=H[0])==null?void 0:q.toLocaleLowerCase())!==((W=H[1])==null?void 0:W.toLocaleLowerCase()):!0})&&g.current===I.key&&(g.current="",y.current=b.current),g.current+=I.key,au(p),p.current=window.setTimeout(()=>{g.current="",y.current=b.current,O(!1)},f);const j=y.current,z=k(L,[...L.slice((j||0)+1),...L.slice(0,(j||0)+1)],g.current);z!==-1?(_(z),b.current=z):I.key!==" "&&(g.current="",O(!1))}),T=me.useMemo(()=>({onKeyDown:S}),[S]),P=me.useMemo(()=>({onKeyDown:S,onKeyUp(I){I.key===" "&&O(!1)}}),[S,O]);return me.useMemo(()=>l?{reference:T,floating:P}:{},[l,T,P])}function D7(r,e,t){return t===void 0&&(t=!0),r.filter(i=>{var a;return i.parentId===e&&(!t||((a=i.context)==null?void 0:a.open))}).flatMap(i=>[i,...D7(r,i.id,t)])}function Wk(r,e){const[t,n]=r;let i=!1;const a=e.length;for(let o=0,s=a-1;o=n!=f>=n&&t<=(c-u)*(n-l)/(f-l)+u&&(i=!i)}return i}function OY(r,e){return r[0]>=e.x&&r[0]<=e.x+e.width&&r[1]>=e.y&&r[1]<=e.y+e.height}function k7(r){r===void 0&&(r={});const{buffer:e=.5,blockPointerEvents:t=!1,requireIntent:n=!0}=r,i={current:-1};let a=!1,o=null,s=null,u=typeof performance<"u"?performance.now():0;function l(f,d){const h=performance.now(),p=h-u;if(o===null||s===null||p===0)return o=f,s=d,u=h,null;const g=f-o,y=d-s,_=Math.sqrt(g*g+y*y)/p;return o=f,s=d,u=h,_}const c=f=>{let{x:d,y:h,placement:p,elements:g,onClose:y,nodeId:b,tree:_}=f;return function(x){function E(){au(i),y()}if(au(i),!g.domReference||!g.floating||p==null||d==null||h==null)return;const{clientX:O,clientY:S}=x,T=[O,S],P=eY(x),I=x.type==="mouseleave",k=sS(g.floating,P),L=sS(g.domReference,P),B=g.domReference.getBoundingClientRect(),j=g.floating.getBoundingClientRect(),z=p.split("-")[0],H=d>j.right-j.width/2,q=h>j.bottom-j.height/2,W=OY(T,B),$=j.width>B.width,J=j.height>B.height,X=($?B:j).left,Z=($?B:j).right,ue=(J?B:j).top,re=(J?B:j).bottom;if(k&&(a=!0,!I))return;if(L&&(a=!1),L&&!I){a=!0;return}if(I&&da(x.relatedTarget)&&sS(g.floating,x.relatedTarget)||_&&D7(_.nodesRef.current,b).length)return;if(z==="top"&&h>=B.bottom-1||z==="bottom"&&h<=B.top+1||z==="left"&&d>=B.right-1||z==="right"&&d<=B.left+1)return E();let ne=[];switch(z){case"top":ne=[[X,B.top+1],[X,j.bottom-1],[Z,j.bottom-1],[Z,B.top+1]];break;case"bottom":ne=[[X,j.top+1],[X,B.bottom-1],[Z,B.bottom-1],[Z,j.top+1]];break;case"left":ne=[[j.right-1,re],[j.right-1,ue],[B.left+1,ue],[B.left+1,re]];break;case"right":ne=[[B.right-1,re],[B.right-1,ue],[j.left+1,ue],[j.left+1,re]];break}function le(ce){let[pe,fe]=ce;switch(z){case"top":{const se=[$?pe+e/2:H?pe+e*4:pe-e*4,fe+e+1],de=[$?pe-e/2:H?pe+e*4:pe-e*4,fe+e+1],ge=[[j.left,H||$?j.bottom-e:j.top],[j.right,H?$?j.bottom-e:j.top:j.bottom-e]];return[se,de,...ge]}case"bottom":{const se=[$?pe+e/2:H?pe+e*4:pe-e*4,fe-e],de=[$?pe-e/2:H?pe+e*4:pe-e*4,fe-e],ge=[[j.left,H||$?j.top+e:j.bottom],[j.right,H?$?j.top+e:j.bottom:j.top+e]];return[se,de,...ge]}case"left":{const se=[pe+e+1,J?fe+e/2:q?fe+e*4:fe-e*4],de=[pe+e+1,J?fe-e/2:q?fe+e*4:fe-e*4];return[...[[q||J?j.right-e:j.left,j.top],[q?J?j.right-e:j.left:j.right-e,j.bottom]],se,de]}case"right":{const se=[pe-e,J?fe+e/2:q?fe+e*4:fe-e*4],de=[pe-e,J?fe-e/2:q?fe+e*4:fe-e*4],ge=[[q||J?j.left+e:j.right,j.top],[q?J?j.left+e:j.right:j.left+e,j.bottom]];return[se,de,...ge]}}}if(!Wk([O,S],ne)){if(a&&!W)return E();if(!I&&n){const ce=l(x.clientX,x.clientY);if(ce!==null&&ce<.1)return E()}Wk([O,S],le([d,h]))?!a&&n&&(i.current=window.setTimeout(E,40)):E()}}};return c.__options={blockPointerEvents:t},c}const v1=({shouldWrap:r,wrap:e,children:t})=>r?e(t):t,TY=oo.createContext(null),q5=()=>!!me.useContext(TY),CY=me.createContext(void 0),AY=me.createContext(void 0),E2=()=>{let r=me.useContext(CY);r===void 0&&(r="light");const e=me.useContext(AY);return{theme:r,themeClassName:`ndl-theme-${r}`,tokens:e}};function RY({isInitialOpen:r=!1,placement:e="top",isOpen:t,onOpenChange:n,type:i="simple",isPortaled:a=!0,strategy:o="absolute",hoverDelay:s=void 0,shouldCloseOnReferenceClick:u=!1,autoUpdateOptions:l,isDisabled:c=!1}={}){const[f,d]=me.useState(r),h=t??f,p=n??d,g=F5({middleware:[M5(5),k5({crossAxis:e.includes("-"),fallbackAxisSideDirection:"start",padding:5}),D5({padding:5})],onOpenChange:p,open:h,placement:e,strategy:o,whileElementsMounted(S,T,P){return P5(S,T,P,Object.assign({},l))}}),y=g.context,b=A7(y,{delay:s,enabled:i==="simple"&&!c,handleClose:k7(),move:!1}),_=j5(y,{enabled:i==="rich"&&!c}),m=yY(y,{enabled:i==="simple"&&!c,visibleOnly:!0}),x=B5(y,{escapeKey:!0,outsidePress:!0,referencePress:u}),E=z5(y,{role:i==="simple"?"tooltip":"dialog"}),O=U5([b,m,x,E,_]);return me.useMemo(()=>Object.assign(Object.assign({isOpen:h,isPortaled:a,setOpen:p,type:i},O),g),[h,p,i,a,O,g])}const I7=me.createContext(null),q1=()=>{const r=me.useContext(I7);if(r===null)throw new Error("Tooltip components must be wrapped in ");return r};var G1=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{const d=q5(),g=RY({autoUpdateOptions:f,hoverDelay:l,isDisabled:e,isInitialOpen:n,isOpen:e===!0?!1:a,isPortaled:s??!d,onOpenChange:o,placement:i,shouldCloseOnReferenceClick:c,strategy:u??(d?"fixed":"absolute"),type:t});return Te.jsx(I7.Provider,{value:g,children:r})};N7.displayName="Tooltip";const PY=r=>{var{children:e,hasButtonWrapper:t=!1,htmlAttributes:n,className:i,style:a,ref:o}=r,s=G1(r,["children","hasButtonWrapper","htmlAttributes","className","style","ref"]);const u=q1(),l=e.props,c=mv([u.refs.setReference,o,l==null?void 0:l.ref]),f=Vn({"ndl-closed":!u.isOpen,"ndl-open":u.isOpen},"ndl-tooltip-trigger",i);if(t&&me.isValidElement(e)){const d=Object.assign(Object.assign(Object.assign({className:f},n),l),{ref:c});return me.cloneElement(e,u.getReferenceProps(d))}return Te.jsx("button",Object.assign({type:"button",className:f,style:a,ref:c},u.getReferenceProps(n),s,{children:e}))},MY=r=>{var{children:e,style:t,htmlAttributes:n,className:i,ref:a}=r,o=G1(r,["children","style","htmlAttributes","className","ref"]);const s=q1(),u=mv([s.refs.setFloating,a]),{themeClassName:l}=E2();if(!s.isOpen)return null;const c=Vn("ndl-tooltip-content",l,i,{"ndl-tooltip-content-rich":s.type==="rich","ndl-tooltip-content-simple":s.type==="simple"});return s.type==="simple"?Te.jsx(v1,{shouldWrap:s.isPortaled,wrap:f=>Te.jsx(Tx,{children:f}),children:Te.jsx("div",Object.assign({ref:u,className:c,style:Object.assign(Object.assign({},s.floatingStyles),t)},o,s.getFloatingProps(n),{children:Te.jsx(Ed,{variant:"body-medium",children:e})}))}):Te.jsx(v1,{shouldWrap:s.isPortaled,wrap:f=>Te.jsx(Tx,{children:f}),children:Te.jsx(L5,{context:s.context,returnFocus:!0,modal:!1,initialFocus:-1,closeOnFocusOut:!0,children:Te.jsx("div",Object.assign({ref:u,className:c,style:Object.assign(Object.assign({},s.floatingStyles),t)},o,s.getFloatingProps(n),{children:e}))})})},DY=r=>{var{children:e,passThroughProps:t,typographyVariant:n="subheading-medium",className:i,style:a,htmlAttributes:o,ref:s}=r,u=G1(r,["children","passThroughProps","typographyVariant","className","style","htmlAttributes","ref"]);const l=q1(),c=Vn("ndl-tooltip-header",i);return l.isOpen?Te.jsx(Ed,Object.assign({ref:s,variant:n,className:c,style:a,htmlAttributes:o},t,u,{children:e})):null},kY=r=>{var{children:e,className:t,style:n,htmlAttributes:i,passThroughProps:a,ref:o}=r,s=G1(r,["children","className","style","htmlAttributes","passThroughProps","ref"]);const u=q1(),l=Vn("ndl-tooltip-body",t);return u.isOpen?Te.jsx(Ed,Object.assign({ref:o,variant:"body-medium",className:l,style:n,htmlAttributes:i},a,s,{children:e})):null},IY=r=>{var{children:e,className:t,style:n,htmlAttributes:i,ref:a}=r,o=G1(r,["children","className","style","htmlAttributes","ref"]);const s=q1(),u=mv([s.refs.setFloating,a]);if(!s.isOpen)return null;const l=Vn("ndl-tooltip-actions",t);return Te.jsx("div",Object.assign({className:l,ref:u,style:n},o,i,{children:e}))},Bf=Object.assign(N7,{Actions:IY,Body:kY,Content:MY,Header:DY,Trigger:PY});var NY=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var e,{children:t,as:n,iconButtonVariant:i="default",isLoading:a=!1,isDisabled:o=!1,size:s="medium",isFloating:u=!1,isActive:l=void 0,description:c,tooltipProps:f,className:d,style:h,variant:p="neutral",htmlAttributes:g,onClick:y,ref:b}=r,_=NY(r,["children","as","iconButtonVariant","isLoading","isDisabled","size","isFloating","isActive","description","tooltipProps","className","style","variant","htmlAttributes","onClick","ref"]);const m=n??"button",x=!o&&!a,E=i==="clean",S=Vn("ndl-icon-btn",d,{"ndl-active":!!l,"ndl-clean":E,"ndl-danger":p==="danger","ndl-disabled":o,"ndl-floating":u,"ndl-large":s==="large","ndl-loading":a,"ndl-medium":s==="medium","ndl-small":s==="small"});if(E&&u)throw new Error('BaseIconButton: Cannot use isFloating and iconButtonVariant="clean" at the same time.');!c&&!(g!=null&&g["aria-label"])&&eM("Icon buttons do not have text, be sure to include a description or an aria-label for screen readers link: https://dequeuniversity.com/rules/axe/4.4/button-name?application=axeAPI");const T=P=>{if(!x){P.preventDefault(),P.stopPropagation();return}y&&y(P)};return Te.jsxs(Bf,Object.assign({hoverDelay:{close:0,open:500},isDisabled:c===null||o,type:"simple"},f==null?void 0:f.root,{children:[Te.jsx(Bf.Trigger,Object.assign({},f==null?void 0:f.trigger,{hasButtonWrapper:!0,children:Te.jsx(m,Object.assign({type:"button",onClick:T,disabled:o,"aria-disabled":!x,"aria-label":c,"aria-pressed":l,className:S,style:h,ref:b},_,g,{children:Te.jsx("div",{className:"ndl-icon-btn-inner",children:a?Te.jsx(h1,{size:"small"}):Te.jsx("div",{className:"ndl-icon",children:t})})}))})),Te.jsx(Bf.Content,Object.assign({},f==null?void 0:f.content,{children:c??((e=f==null?void 0:f.content)===null||e===void 0?void 0:e.children)}))]}))};var LY=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,as:t,isLoading:n=!1,isDisabled:i=!1,size:a="medium",isActive:o,variant:s="neutral",description:u,tooltipProps:l,className:c,style:f,htmlAttributes:d,onClick:h,ref:p}=r,g=LY(r,["children","as","isLoading","isDisabled","size","isActive","variant","description","tooltipProps","className","style","htmlAttributes","onClick","ref"]);return Te.jsx(L7,Object.assign({as:t,iconButtonVariant:"clean",isDisabled:i,size:a,isLoading:n,isActive:o,variant:s,description:u,tooltipProps:l,className:c,style:f,htmlAttributes:d,onClick:h,ref:p},g,{children:e}))};function jY({state:r,onChange:e,isControlled:t,inputType:n="text"}){const[i,a]=me.useState(r),o=me.useMemo(()=>t===!0?r:i,[t,r,i]),s=me.useCallback(u=>{let l;["checkbox","radio","switch"].includes(n)?l=u.target.checked:l=u.target.value,t!==!0&&a(l),e==null||e(u)},[t,e,n]);return[o,s]}function BY({isInitialOpen:r=!1,placement:e="bottom",isOpen:t,onOpenChange:n,offsetOption:i=10,anchorElement:a,anchorPosition:o,anchorElementAsPortalAnchor:s,shouldCaptureFocus:u,initialFocus:l,role:c,closeOnClickOutside:f,strategy:d="absolute",isPortaled:h=!0}={}){var p;const[g,y]=me.useState(r),[b,_]=me.useState(),[m,x]=me.useState(),E=t??g,O=n??y,S=F5({elements:{reference:a},middleware:[M5(i),k5({crossAxis:e.includes("-"),fallbackAxisSideDirection:"end",padding:5}),D5()],onOpenChange:(z,H)=>{O(z),n==null||n(z,H)},open:E,placement:e,strategy:d,whileElementsMounted:P5}),T=S.context,P=j5(T,{enabled:t===void 0}),I=B5(T,{outsidePress:f}),k=z5(T,{role:c}),L=hY(T,{enabled:o!==void 0,x:o==null?void 0:o.x,y:o==null?void 0:o.y}),B=U5([P,I,k,L]),{styles:j}=EY(T,{duration:(p=Number.parseInt(Xu.motion.duration.quick))!==null&&p!==void 0?p:0});return me.useMemo(()=>Object.assign(Object.assign(Object.assign({isOpen:E,setIsOpen:O},B),S),{transitionStyles:j,labelId:b,descriptionId:m,setLabelId:_,setDescriptionId:x,anchorElementAsPortalAnchor:s,shouldCaptureFocus:u,initialFocus:l,isPortaled:h}),[E,O,B,S,j,b,m,s,u,l,h])}function FY(){me.useEffect(()=>{const r=()=>{document.querySelectorAll("[data-floating-ui-focus-guard]").forEach(n=>{n.setAttribute("aria-hidden","true"),n.removeAttribute("role")})};r();const e=new MutationObserver(()=>{r()});return e.observe(document.body,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[])}var uM=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{const r=oo.useContext(B7);if(r===null)throw new Error("Popover components must be wrapped in ");return r},UY=({children:r,anchorElement:e,placement:t,isOpen:n,offset:i,anchorPosition:a,hasAnchorPortal:o,shouldCaptureFocus:s=!1,initialFocus:u,onOpenChange:l,role:c,closeOnClickOutside:f=!0,isPortaled:d,strategy:h})=>{const p=q5(),g=p?"fixed":"absolute",_=BY({anchorElement:e,anchorElementAsPortalAnchor:o??p,anchorPosition:a,closeOnClickOutside:f,initialFocus:u,isOpen:n,isPortaled:d??!p,offsetOption:i,onOpenChange:l,placement:t?j7[t]:void 0,role:c,shouldCaptureFocus:s,strategy:h??g});return Te.jsx(B7.Provider,{value:_,children:r})},zY=r=>{var{children:e,hasButtonWrapper:t=!1,ref:n}=r,i=uM(r,["children","hasButtonWrapper","ref"]);const a=F7(),o=e.props,s=mv([a.refs.setReference,n,o==null?void 0:o.ref]);return t&&oo.isValidElement(e)?oo.cloneElement(e,a.getReferenceProps(Object.assign(Object.assign(Object.assign({},i),o),{"data-state":a.isOpen?"open":"closed",ref:s}))):Te.jsx("button",Object.assign({ref:a.refs.setReference,type:"button","data-state":a.isOpen?"open":"closed"},a.getReferenceProps(i),{children:e}))},qY=r=>{var{as:e,className:t,style:n,children:i,htmlAttributes:a,ref:o}=r,s=uM(r,["as","className","style","children","htmlAttributes","ref"]);const u=F7(),{context:l}=u,c=uM(u,["context"]),f=mv([c.refs.setFloating,o]),{themeClassName:d}=E2(),h=Vn("ndl-popover",d,t),p=e??"div";return FY(),l.open?Te.jsx(v1,{shouldWrap:c.isPortaled,wrap:g=>{var y;return Te.jsx(Tx,{root:(y=c.anchorElementAsPortalAnchor)!==null&&y!==void 0&&y?c.refs.reference.current:void 0,children:g})},children:Te.jsx(L5,{context:l,modal:c.shouldCaptureFocus,initialFocus:c.initialFocus,children:Te.jsx(p,Object.assign({className:h,"aria-labelledby":c.labelId,"aria-describedby":c.descriptionId,style:Object.assign(Object.assign(Object.assign({},c.floatingStyles),c.transitionStyles),n),ref:f},c.getFloatingProps(Object.assign({},a)),s,{children:i}))})}):null};Object.assign(UY,{Content:qY,Trigger:zY});var Xm=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i({}),isOpen:!1,setActiveIndex:()=>{},setHasFocusInside:()=>{}}),GY=r=>Up()===null?Te.jsx(JW,{children:Te.jsx(Yk,Object.assign({},r,{isRoot:!0}))}):Te.jsx(Yk,Object.assign({},r)),Yk=({children:r,isOpen:e,onClose:t,isRoot:n,anchorRef:i,as:a,className:o,placement:s,minWidth:u,title:l,isDisabled:c,description:f,icon:d,isPortaled:h=!0,portalTarget:p,htmlAttributes:g,strategy:y,ref:b,style:_})=>{const[m,x]=me.useState(!1),[E,O]=me.useState(!1),[S,T]=me.useState(null),P=me.useRef([]),I=me.useRef([]),k=me.useContext(p1),L=q5(),B=bv(),j=ZW(),z=Up(),H=b2(),{themeClassName:q}=E2();me.useEffect(()=>{e!==void 0&&x(e)},[e]),me.useEffect(()=>{m&&T(0)},[m]);const W=a??"div",$=z!==null,J=$?"right-start":"bottom-start",{floatingStyles:X,refs:Z,context:ue}=F5({elements:{reference:i==null?void 0:i.current},middleware:[M5({alignmentAxis:$?-4:0,mainAxis:$?0:4}),k5({fallbackPlacements:["left-start","right-start"]}),D5()],nodeId:j,onOpenChange:(Ne,Ce)=>{e===void 0&&x(Ne),Ne||(Ce instanceof PointerEvent?t==null||t(Ce,{type:"backdropClick"}):Ce instanceof KeyboardEvent?t==null||t(Ce,{type:"escapeKeyDown"}):Ce instanceof FocusEvent&&(t==null||t(Ce,{type:"focusOut"})))},open:m,placement:s?j7[s]:J,strategy:y??(L?"fixed":"absolute"),whileElementsMounted:P5}),re=A7(ue,{delay:{open:75},enabled:$,handleClose:k7({blockPointerEvents:!0})}),ne=j5(ue,{event:"mousedown",ignoreMouse:$,toggle:!$}),le=z5(ue,{role:"menu"}),ce=B5(ue,{bubbles:!0}),pe=bY(ue,{activeIndex:S,listRef:P,nested:$,onNavigate:T}),fe=SY(ue,{activeIndex:S,listRef:I,onMatch:m?T:void 0}),{getReferenceProps:se,getFloatingProps:de,getItemProps:ge}=U5([re,ne,le,ce,pe,fe]);me.useEffect(()=>{if(!B)return;function Ne(Y){e===void 0&&x(!1),t==null||t(void 0,{id:Y==null?void 0:Y.id,type:"itemClick"})}function Ce(Y){Y.nodeId!==j&&Y.parentId===z&&(e===void 0&&x(!1),t==null||t(void 0,{type:"itemClick"}))}return B.events.on("click",Ne),B.events.on("menuopen",Ce),()=>{B.events.off("click",Ne),B.events.off("menuopen",Ce)}},[B,j,z,t,e]),me.useEffect(()=>{m&&B&&B.events.emit("menuopen",{nodeId:j,parentId:z})},[B,m,j,z]);const Oe=me.useCallback(Ne=>{Ne.key==="Tab"&&Ne.shiftKey&&requestAnimationFrame(()=>{const Ce=Z.floating.current;Ce&&!Ce.contains(document.activeElement)&&(e===void 0&&x(!1),t==null||t(void 0,{type:"focusOut"}))})},[e,t,Z]),ke=Vn("ndl-menu",q,o),De=mv([Z.setReference,H.ref,b]);return Te.jsxs(QW,{id:j,children:[n!==!0&&Te.jsx(HY,{ref:De,className:$?"MenuItem":"RootMenu",isDisabled:c,style:_,htmlAttributes:Object.assign(Object.assign({"data-focus-inside":E?"":void 0,"data-nested":$?"":void 0,"data-open":m?"":void 0,role:$?"menuitem":void 0,tabIndex:$?k.activeIndex===H.index?0:-1:void 0},g),se(k.getItemProps({onFocus(Ne){var Ce;(Ce=g==null?void 0:g.onFocus)===null||Ce===void 0||Ce.call(g,Ne),O(!1),k.setHasFocusInside(!0)}}))),title:l,description:f,leadingVisual:d}),Te.jsx(p1.Provider,{value:{activeIndex:S,getItemProps:ge,isOpen:c===!0?!1:m,setActiveIndex:T,setHasFocusInside:O},children:Te.jsx(HW,{elementsRef:P,labelsRef:I,children:m&&Te.jsx(v1,{shouldWrap:h,wrap:Ne=>Te.jsx(Tx,{root:p,children:Ne}),children:Te.jsx(L5,{context:ue,modal:!1,initialFocus:0,returnFocus:!$,closeOnFocusOut:!0,guards:!0,children:Te.jsx(W,Object.assign({ref:Z.setFloating,className:ke,style:Object.assign(Object.assign({minWidth:u!==void 0?`${u}px`:void 0},X),_)},de({onKeyDown:Oe}),{children:r}))})})})})]})},G5=r=>{var{title:e,leadingContent:t,trailingContent:n,preLeadingContent:i,description:a,isDisabled:o,as:s,className:u,style:l,htmlAttributes:c,ref:f}=r,d=Xm(r,["title","leadingContent","trailingContent","preLeadingContent","description","isDisabled","as","className","style","htmlAttributes","ref"]);const h=Vn("ndl-menu-item",u,{"ndl-disabled":o}),p=s??"button";return Te.jsx(p,Object.assign({className:h,ref:f,type:"button",role:"menuitem",disabled:o,style:l},d,c,{children:Te.jsxs("div",{className:"ndl-menu-item-inner",children:[!!i&&Te.jsx("div",{className:"ndl-menu-item-pre-leading-content",children:i}),!!t&&Te.jsx("div",{className:"ndl-menu-item-leading-content",children:t}),Te.jsxs("div",{className:"ndl-menu-item-title-wrapper",children:[Te.jsx("div",{className:"ndl-menu-item-title",children:e}),!!a&&Te.jsx("div",{className:"ndl-menu-item-description",children:a})]}),!!n&&Te.jsx("div",{className:"ndl-menu-item-trailing-content",children:n})]})}))},VY=r=>{var{title:e,className:t,style:n,leadingVisual:i,trailingContent:a,description:o,isDisabled:s,as:u,onClick:l,onFocus:c,htmlAttributes:f,id:d,ref:h}=r,p=Xm(r,["title","className","style","leadingVisual","trailingContent","description","isDisabled","as","onClick","onFocus","htmlAttributes","id","ref"]);const g=me.useContext(p1),b=b2({label:s===!0?null:typeof e=="string"?e:void 0}),_=bv(),m=b.index===g.activeIndex,x=mv([b.ref,h]);return Te.jsx(G5,Object.assign({as:u??"button",style:n,className:t,ref:x,title:e,description:o,leadingContent:i,trailingContent:a,isDisabled:s,htmlAttributes:Object.assign(Object.assign(Object.assign({},f),{tabIndex:m?0:-1}),g.getItemProps({id:d,onClick(E){l==null||l(E),_==null||_.events.emit("click",{id:d})},onFocus(E){c==null||c(E),g.setHasFocusInside(!0)}}))},p))},HY=({title:r,isDisabled:e,description:t,leadingVisual:n,as:i,onFocus:a,onClick:o,className:s,style:u,htmlAttributes:l,id:c,ref:f})=>{const d=me.useContext(p1),p=b2({label:e===!0?null:typeof r=="string"?r:void 0}),g=p.index===d.activeIndex,y=mv([p.ref,f]);return Te.jsx(G5,{as:i??"button",style:u,className:s,ref:y,title:r,description:t,leadingContent:n,trailingContent:Te.jsx(X9,{className:"ndl-menu-item-chevron"}),isDisabled:e,htmlAttributes:Object.assign(Object.assign(Object.assign(Object.assign({},l),{tabIndex:g?0:-1}),d.getItemProps({onClick(b){o==null||o(b)},onFocus(b){a==null||a(b),d.setHasFocusInside(!0)},onTouchStart(){d.setHasFocusInside(!0)}})),{id:c})})},WY=r=>{var{children:e,className:t,style:n,as:i,htmlAttributes:a,ref:o}=r,s=Xm(r,["children","className","style","as","htmlAttributes","ref"]);const u=Vn("ndl-menu-category-item",t),l=i??"div";return Te.jsx(l,Object.assign({className:u,style:n,ref:o},s,a,{children:e}))},YY=r=>{var{title:e,leadingVisual:t,trailingContent:n,description:i,isDisabled:a,isChecked:o=!1,onClick:s,onFocus:u,className:l,style:c,as:f,id:d,htmlAttributes:h,ref:p}=r,g=Xm(r,["title","leadingVisual","trailingContent","description","isDisabled","isChecked","onClick","onFocus","className","style","as","id","htmlAttributes","ref"]);const y=me.useContext(p1),_=b2({label:a===!0?null:typeof e=="string"?e:void 0}),m=bv(),x=_.index===y.activeIndex,E=mv([_.ref,p]),O=Vn("ndl-menu-radio-item",l,{"ndl-checked":o});return Te.jsx(G5,Object.assign({as:f??"button",style:c,className:O,ref:E,title:e,description:i,preLeadingContent:o?Te.jsx(jV,{className:"n-size-5 n-shrink-0 n-self-center"}):null,leadingContent:t,trailingContent:n,isDisabled:a,htmlAttributes:Object.assign(Object.assign(Object.assign({},h),{"aria-checked":o,role:"menuitemradio",tabIndex:x?0:-1}),y.getItemProps({id:d,onClick(S){s==null||s(S),m==null||m.events.emit("click",{id:d})},onFocus(S){u==null||u(S),y.setHasFocusInside(!0)}}))},g))},XY=r=>{var{as:e,children:t,className:n,htmlAttributes:i,style:a,ref:o}=r,s=Xm(r,["as","children","className","htmlAttributes","style","ref"]);const u=Vn("ndl-menu-items",n),l=e??"div";return Te.jsx(l,Object.assign({className:u,style:a,ref:o},s,i,{children:t}))},$Y=r=>{var{children:e,className:t,htmlAttributes:n,style:i,ref:a}=r,o=Xm(r,["children","className","htmlAttributes","style","ref"]);const s=Vn("ndl-menu-group",t);return Te.jsx("div",Object.assign({className:s,style:i,ref:a,role:"group"},o,n,{children:e}))},Lm=Object.assign(GY,{CategoryItem:WY,Divider:tM,Group:$Y,Item:VY,Items:XY,RadioItem:YY}),KY="aria label not detected when using a custom label, be sure to include an aria label for screen readers link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI";var ZY=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{as:e,shape:t="rectangular",className:n,style:i,height:a,width:o,isLoading:s=!0,children:u,htmlAttributes:l,onBackground:c="default",ref:f}=r,d=ZY(r,["as","shape","className","style","height","width","isLoading","children","htmlAttributes","onBackground","ref"]);const h=e??"div",p=Vn(`ndl-skeleton ndl-skeleton-${t}`,c&&`ndl-skeleton-${c}`,n);return Te.jsx(v1,{shouldWrap:s,wrap:g=>Te.jsx(h,Object.assign({ref:f,className:p,style:Object.assign(Object.assign({},i),{height:a,width:o}),"aria-busy":!0,tabIndex:-1},d,l,{children:Te.jsx("div",{"aria-hidden":s,className:"ndl-skeleton-content",tabIndex:-1,children:g})})),children:u})};cb.displayName="Skeleton";var QY=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{label:e,isFluid:t,errorText:n,helpText:i,leadingElement:a,trailingElement:o,showRequiredOrOptionalLabel:s=!1,moreInformationText:u,size:l="medium",placeholder:c,value:f,tooltipProps:d,htmlAttributes:h,isDisabled:p,isReadOnly:g,isRequired:y,onChange:b,isClearable:_=!1,className:m,style:x,isSkeletonLoading:E=!1,isLoading:O=!1,skeletonProps:S,ref:T}=r,P=QY(r,["label","isFluid","errorText","helpText","leadingElement","trailingElement","showRequiredOrOptionalLabel","moreInformationText","size","placeholder","value","tooltipProps","htmlAttributes","isDisabled","isReadOnly","isRequired","onChange","isClearable","className","style","isSkeletonLoading","isLoading","skeletonProps","ref"]);const[I,k]=jY({inputType:"text",isControlled:f!==void 0,onChange:b,state:f??""}),L=me.useId(),B=me.useId(),j=me.useId(),z=Vn("ndl-text-input",m,{"ndl-disabled":p,"ndl-has-error":n,"ndl-has-icon":a||o||n,"ndl-has-leading-icon":a,"ndl-has-trailing-icon":o||n,"ndl-large":l==="large","ndl-medium":l==="medium","ndl-read-only":g,"ndl-small":l==="small"}),H=e==null||e==="",q=Vn("ndl-form-item-label",{"ndl-fluid":t,"ndl-form-item-no-label":H}),W=Object.assign(Object.assign({},h),{className:Vn("ndl-input",h==null?void 0:h.className)}),$=W["aria-label"],X=!!e&&typeof e!="string"&&($===void 0||$===""),Z=_||O,ue=le=>{var ce;_&&le.key==="Escape"&&I&&(le.preventDefault(),le.stopPropagation(),k==null||k({target:{value:""}})),(ce=h==null?void 0:h.onKeyDown)===null||ce===void 0||ce.call(h,le)};me.useMemo(()=>{!e&&!$&&eM("A TextInput without a label does not have an aria label, be sure to include an aria label for screen readers. Link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI"),X&&eM(KY)},[e,$,X]);const re=Vn({"ndl-information-icon-large":l==="large","ndl-information-icon-small":l==="small"||l==="medium"}),ne=me.useMemo(()=>{const le=[L];return i&&!n?le.push(B):n&&le.push(j),le.join(" ")},[L,i,n,B,j]);return Te.jsxs("div",{className:z,style:x,children:[Te.jsxs("label",{className:q,children:[!H&&Te.jsx(cb,Object.assign({onBackground:"weak",shape:"rectangular"},S,{isLoading:E,children:Te.jsxs("div",{className:"ndl-label-text-wrapper",children:[Te.jsx(Ed,{variant:l==="large"?"body-large":"body-medium",className:"ndl-label-text",children:e}),!!u&&Te.jsxs(Bf,Object.assign({},d==null?void 0:d.root,{type:"simple",children:[Te.jsx(Bf.Trigger,Object.assign({},d==null?void 0:d.trigger,{className:re,hasButtonWrapper:!0,children:Te.jsx("div",{tabIndex:0,role:"button","aria-label":"Information icon",children:Te.jsx(KV,{})})})),Te.jsx(Bf.Content,Object.assign({},d==null?void 0:d.content,{children:u}))]})),s&&Te.jsx(Ed,{variant:l==="large"?"body-large":"body-medium",className:"ndl-form-item-optional",children:y===!0?"Required":"Optional"})]})})),Te.jsx(cb,Object.assign({onBackground:"weak",shape:"rectangular"},S,{isLoading:E,children:Te.jsxs("div",{className:"ndl-input-wrapper",children:[(a||O&&!o)&&Te.jsx("div",{className:"ndl-element-leading ndl-element",children:O?Te.jsx(h1,{size:l==="large"?"medium":"small",className:l==="large"?"ndl-medium-spinner":"ndl-small-spinner"}):a}),Te.jsxs("div",{className:Vn("ndl-input-container",{"ndl-clearable":_}),children:[Te.jsx("input",Object.assign({ref:T,readOnly:g,disabled:p,required:y,value:I,placeholder:c,type:"text",onChange:k,"aria-describedby":ne},W,{onKeyDown:ue},P)),Z&&Te.jsxs("span",{id:L,className:"ndl-text-input-hint","aria-hidden":!0,children:[O&&"Loading ",_&&"Press Escape to clear input."]}),_&&!!I&&Te.jsx("div",{className:"ndl-element-clear ndl-element",children:Te.jsx("button",{tabIndex:-1,"aria-hidden":!0,type:"button",title:"Clear input (Esc)",onClick:()=>{k==null||k({target:{value:""}})},children:Te.jsx($9,{className:"n-size-4"})})})]}),o&&Te.jsx("div",{className:"ndl-element-trailing ndl-element",children:O&&!a?Te.jsx(h1,{size:l==="large"?"medium":"small",className:l==="large"?"ndl-medium-spinner":"ndl-small-spinner"}):o})]})}))]}),!!i&&!n&&Te.jsx(cb,{onBackground:"weak",shape:"rectangular",isLoading:E,children:Te.jsx(Ed,{variant:l==="large"?"body-medium":"body-small",className:"ndl-form-message",htmlAttributes:{"aria-live":"polite",id:B},children:i})}),!!n&&Te.jsx(cb,Object.assign({onBackground:"weak",shape:"rectangular",width:"fit-content"},S,{isLoading:E,children:Te.jsxs("div",{className:"ndl-form-message",children:[Te.jsx("div",{className:"ndl-error-icon",children:Te.jsx(dH,{})}),Te.jsx(Ed,{className:"ndl-error-text",variant:l==="large"?"body-medium":"body-small",htmlAttributes:{"aria-live":"polite",id:j},children:n})]})}))]})};var eX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{as:e,buttonFill:t="filled",children:n,className:i,variant:a="primary",htmlAttributes:o,isDisabled:s=!1,isFloating:u=!1,isFluid:l=!1,isLoading:c=!1,leadingVisual:f,onClick:d,ref:h,size:p="medium",style:g,type:y="button"}=r,b=eX(r,["as","buttonFill","children","className","variant","htmlAttributes","isDisabled","isFloating","isFluid","isLoading","leadingVisual","onClick","ref","size","style","type"]);const _=e??"button",m=!s&&!c,x=Vn(i,"ndl-btn",{"ndl-disabled":s,"ndl-floating":u,"ndl-fluid":l,"ndl-loading":c,[`ndl-${p}`]:p,[`ndl-${t}-button`]:t,[`ndl-${a}`]:a}),E=O=>{if(!m){O.preventDefault(),O.stopPropagation();return}d&&d(O)};return Te.jsx(_,Object.assign({type:y,onClick:E,disabled:s,"aria-disabled":!m,className:x,style:g,ref:h},b,o,{children:Te.jsxs("div",{className:"ndl-btn-inner",children:[c&&Te.jsx("span",{className:"ndl-btn-spinner-wrapper",children:Te.jsx(h1,{size:p})}),!!f&&Te.jsx("div",{className:"ndl-btn-leading-element",children:f}),!!n&&Te.jsx("span",{className:"ndl-btn-content",children:n})]})}))};var tX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,as:t,type:n="button",isLoading:i=!1,variant:a="primary",isDisabled:o=!1,size:s="medium",onClick:u,isFloating:l=!1,className:c,style:f,htmlAttributes:d,ref:h}=r,p=tX(r,["children","as","type","isLoading","variant","isDisabled","size","onClick","isFloating","className","style","htmlAttributes","ref"]);return Te.jsx(U7,Object.assign({as:t,buttonFill:"outlined",variant:a,className:c,isDisabled:o,isFloating:l,isLoading:i,onClick:u,size:s,style:f,type:n,htmlAttributes:d,ref:h},p,{children:e}))};var nX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,as:t,type:n="button",isLoading:i=!1,variant:a="primary",isDisabled:o=!1,size:s="medium",onClick:u,className:l,style:c,htmlAttributes:f,ref:d}=r,h=nX(r,["children","as","type","isLoading","variant","isDisabled","size","onClick","className","style","htmlAttributes","ref"]);return Te.jsx(U7,Object.assign({as:t,buttonFill:"text",variant:a,className:l,isDisabled:o,isLoading:i,onClick:u,size:s,style:c,type:n,htmlAttributes:f,ref:d},h,{children:e}))};var dS,Xk;function aX(){if(Xk)return dS;Xk=1;var r="Expected a function",e=NaN,t="[object Symbol]",n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,u=typeof Lf=="object"&&Lf&&Lf.Object===Object&&Lf,l=typeof self=="object"&&self&&self.Object===Object&&self,c=u||l||Function("return this")(),f=Object.prototype,d=f.toString,h=Math.max,p=Math.min,g=function(){return c.Date.now()};function y(E,O,S){var T,P,I,k,L,B,j=0,z=!1,H=!1,q=!0;if(typeof E!="function")throw new TypeError(r);O=x(O)||0,b(S)&&(z=!!S.leading,H="maxWait"in S,I=H?h(x(S.maxWait)||0,O):I,q="trailing"in S?!!S.trailing:q);function W(ce){var pe=T,fe=P;return T=P=void 0,j=ce,k=E.apply(fe,pe),k}function $(ce){return j=ce,L=setTimeout(Z,O),z?W(ce):k}function J(ce){var pe=ce-B,fe=ce-j,se=O-pe;return H?p(se,I-fe):se}function X(ce){var pe=ce-B,fe=ce-j;return B===void 0||pe>=O||pe<0||H&&fe>=I}function Z(){var ce=g();if(X(ce))return ue(ce);L=setTimeout(Z,J(ce))}function ue(ce){return L=void 0,q&&T?W(ce):(T=P=void 0,k)}function re(){L!==void 0&&clearTimeout(L),j=0,T=B=P=L=void 0}function ne(){return L===void 0?k:ue(g())}function le(){var ce=g(),pe=X(ce);if(T=arguments,P=this,B=ce,pe){if(L===void 0)return $(B);if(H)return L=setTimeout(Z,O),W(B)}return L===void 0&&(L=setTimeout(Z,O)),k}return le.cancel=re,le.flush=ne,le}function b(E){var O=typeof E;return!!E&&(O=="object"||O=="function")}function _(E){return!!E&&typeof E=="object"}function m(E){return typeof E=="symbol"||_(E)&&d.call(E)==t}function x(E){if(typeof E=="number")return E;if(m(E))return e;if(b(E)){var O=typeof E.valueOf=="function"?E.valueOf():E;E=b(O)?O+"":O}if(typeof E!="string")return E===0?E:+E;E=E.replace(n,"");var S=a.test(E);return S||o.test(E)?s(E.slice(2),S?2:8):i.test(E)?e:+E}return dS=y,dS}aX();function oX(){const[r,e]=me.useState(null),t=me.useCallback(async n=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(n),e(n),!0}catch(i){return console.warn("Copy failed",i),e(null),!1}},[]);return[r,t]}function Cx(r){"@babel/helpers - typeof";return Cx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cx(r)}var sX=/^\s+/,uX=/\s+$/;function dr(r,e){if(r=r||"",e=e||{},r instanceof dr)return r;if(!(this instanceof dr))return new dr(r,e);var t=lX(r);this._originalInput=r,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}dr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,n,i,a,o,s;return t=e.r/255,n=e.g/255,i=e.b/255,t<=.03928?a=t/12.92:a=Math.pow((t+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(e){return this._a=z7(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Kk(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Kk(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=$k(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=$k(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return Zk(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return hX(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ma(this._r,255)*100)+"%",g:Math.round(Ma(this._g,255)*100)+"%",b:Math.round(Ma(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ma(this._r,255)*100)+"%, "+Math.round(Ma(this._g,255)*100)+"%, "+Math.round(Ma(this._b,255)*100)+"%)":"rgba("+Math.round(Ma(this._r,255)*100)+"%, "+Math.round(Ma(this._g,255)*100)+"%, "+Math.round(Ma(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:OX[Zk(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+Qk(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=dr(e);n="#"+Qk(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0,a=!t&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return dr(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(yX,arguments)},brighten:function(){return this._applyModification(mX,arguments)},darken:function(){return this._applyModification(bX,arguments)},desaturate:function(){return this._applyModification(vX,arguments)},saturate:function(){return this._applyModification(pX,arguments)},greyscale:function(){return this._applyModification(gX,arguments)},spin:function(){return this._applyModification(_X,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(EX,arguments)},complement:function(){return this._applyCombination(wX,arguments)},monochromatic:function(){return this._applyCombination(SX,arguments)},splitcomplement:function(){return this._applyCombination(xX,arguments)},triad:function(){return this._applyCombination(Jk,[3])},tetrad:function(){return this._applyCombination(Jk,[4])}};dr.fromRatio=function(r,e){if(Cx(r)=="object"){var t={};for(var n in r)r.hasOwnProperty(n)&&(n==="a"?t[n]=r[n]:t[n]=fb(r[n]));r=t}return dr(r,e)};function lX(r){var e={r:0,g:0,b:0},t=1,n=null,i=null,a=null,o=!1,s=!1;return typeof r=="string"&&(r=RX(r)),Cx(r)=="object"&&(ev(r.r)&&ev(r.g)&&ev(r.b)?(e=cX(r.r,r.g,r.b),o=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):ev(r.h)&&ev(r.s)&&ev(r.v)?(n=fb(r.s),i=fb(r.v),e=dX(r.h,n,i),o=!0,s="hsv"):ev(r.h)&&ev(r.s)&&ev(r.l)&&(n=fb(r.s),a=fb(r.l),e=fX(r.h,n,a),o=!0,s="hsl"),r.hasOwnProperty("a")&&(t=r.a)),t=z7(t),{ok:o,format:r.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}function cX(r,e,t){return{r:Ma(r,255)*255,g:Ma(e,255)*255,b:Ma(t,255)*255}}function $k(r,e,t){r=Ma(r,255),e=Ma(e,255),t=Ma(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),a,o,s=(n+i)/2;if(n==i)a=o=0;else{var u=n-i;switch(o=s>.5?u/(2-n-i):u/(n+i),n){case r:a=(e-t)/u+(e1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(e===0)n=i=a=t;else{var s=t<.5?t*(1+e):t+e-t*e,u=2*t-s;n=o(u,s,r+1/3),i=o(u,s,r),a=o(u,s,r-1/3)}return{r:n*255,g:i*255,b:a*255}}function Kk(r,e,t){r=Ma(r,255),e=Ma(e,255),t=Ma(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),a,o,s=n,u=n-i;if(o=n===0?0:u/n,n==i)a=0;else{switch(n){case r:a=(e-t)/u+(e>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(dr(n));return a}function SX(r,e){e=e||6;for(var t=dr(r).toHsv(),n=t.h,i=t.s,a=t.v,o=[],s=1/e;e--;)o.push(dr({h:n,s:i,v:a})),a=(a+s)%1;return o}dr.mix=function(r,e,t){t=t===0?0:t||50;var n=dr(r).toRgb(),i=dr(e).toRgb(),a=t/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return dr(o)};dr.readability=function(r,e){var t=dr(r),n=dr(e);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)};dr.isReadable=function(r,e,t){var n=dr.readability(r,e),i,a;switch(a=!1,i=PX(t),i.level+i.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};dr.mostReadable=function(r,e,t){var n=null,i=0,a,o,s,u;t=t||{},o=t.includeFallbackColors,s=t.level,u=t.size;for(var l=0;li&&(i=a,n=dr(e[l]));return dr.isReadable(r,n,{level:s,size:u})||!o?n:(t.includeFallbackColors=!1,dr.mostReadable(r,["#fff","#000"],t))};var lM=dr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},OX=dr.hexNames=TX(lM);function TX(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e}function z7(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Ma(r,e){CX(r)&&(r="100%");var t=AX(r);return r=Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),Math.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function O2(r){return Math.min(1,Math.max(0,r))}function Jc(r){return parseInt(r,16)}function CX(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1}function AX(r){return typeof r=="string"&&r.indexOf("%")!=-1}function Sd(r){return r.length==1?"0"+r:""+r}function fb(r){return r<=1&&(r=r*100+"%"),r}function q7(r){return Math.round(parseFloat(r)*255).toString(16)}function eI(r){return Jc(r)/255}var md=(function(){var r="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",t="(?:"+e+")|(?:"+r+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",i="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function ev(r){return!!md.CSS_UNIT.exec(r)}function RX(r){r=r.replace(sX,"").replace(uX,"").toLowerCase();var e=!1;if(lM[r])r=lM[r],e=!0;else if(r=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=md.rgb.exec(r))?{r:t[1],g:t[2],b:t[3]}:(t=md.rgba.exec(r))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=md.hsl.exec(r))?{h:t[1],s:t[2],l:t[3]}:(t=md.hsla.exec(r))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=md.hsv.exec(r))?{h:t[1],s:t[2],v:t[3]}:(t=md.hsva.exec(r))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=md.hex8.exec(r))?{r:Jc(t[1]),g:Jc(t[2]),b:Jc(t[3]),a:eI(t[4]),format:e?"name":"hex8"}:(t=md.hex6.exec(r))?{r:Jc(t[1]),g:Jc(t[2]),b:Jc(t[3]),format:e?"name":"hex"}:(t=md.hex4.exec(r))?{r:Jc(t[1]+""+t[1]),g:Jc(t[2]+""+t[2]),b:Jc(t[3]+""+t[3]),a:eI(t[4]+""+t[4]),format:e?"name":"hex8"}:(t=md.hex3.exec(r))?{r:Jc(t[1]+""+t[1]),g:Jc(t[2]+""+t[2]),b:Jc(t[3]+""+t[3]),format:e?"name":"hex"}:!1}function PX(r){var e,t;return r=r||{level:"AA",size:"small"},e=(r.level||"AA").toUpperCase(),t=(r.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:e,size:t}}const MX=r=>dr.mostReadable(r,[Xu.theme.light.color.neutral.text.default,Xu.theme.light.color.neutral.text.inverse],{includeFallbackColors:!0}).toString(),DX=r=>dr(r).toHsl().l<.5?dr(r).lighten(10).toString():dr(r).darken(10).toString(),kX=r=>dr.mostReadable(r,[Xu.theme.light.color.neutral.text.weakest,Xu.theme.light.color.neutral.text.weaker,Xu.theme.light.color.neutral.text.weak,Xu.theme.light.color.neutral.text.inverse]).toString();var IX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{const i=Vn("ndl-hexagon-end",{"ndl-left":r==="left","ndl-right":r==="right"});return Te.jsxs("div",Object.assign({className:i},t,{children:[Te.jsx("svg",{"aria-hidden":!0,className:"ndl-hexagon-end-inner",fill:"none",height:n,preserveAspectRatio:"none",viewBox:"0 0 9 24",width:"9",xmlns:"http://www.w3.org/2000/svg",children:Te.jsx("path",{style:{fill:e},fillRule:"evenodd",clipRule:"evenodd",d:"M5.73024 1.03676C6.08165 0.397331 6.75338 0 7.48301 0H9V24H7.483C6.75338 24 6.08165 23.6027 5.73024 22.9632L0.315027 13.1094C-0.105009 12.4376 -0.105009 11.5624 0.315026 10.8906L5.73024 1.03676Z"})}),Te.jsx("svg",{"aria-hidden":!0,className:"ndl-hexagon-end-active",fill:"none",height:n+6,preserveAspectRatio:"none",viewBox:"0 0 13 30",width:"13",xmlns:"http://www.w3.org/2000/svg",children:Te.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.075 2C9.12474 2 8.24318 2.54521 7.74867 3.43873L2.21419 13.4387C1.68353 14.3976 1.68353 15.6024 2.21419 16.5613L7.74867 26.5613C8.24318 27.4548 9.12474 28 10.075 28H13V30H10.075C8.49126 30 7.022 29.0913 6.1978 27.6021L0.663324 17.6021C-0.221109 16.0041 -0.221108 13.9959 0.663325 12.3979L6.1978 2.39789C7.022 0.90869 8.49126 0 10.075 0H13V2H10.075Z"})})]}))},rI=({direction:r="left",color:e,height:t=24,htmlAttributes:n})=>{const i=Vn("ndl-square-end",{"ndl-left":r==="left","ndl-right":r==="right"});return Te.jsxs("div",Object.assign({className:i},n,{children:[Te.jsx("div",{className:"ndl-square-end-inner",style:{backgroundColor:e}}),Te.jsx("svg",{className:"ndl-square-end-active",width:"7",height:t+6,preserveAspectRatio:"none",viewBox:"0 0 7 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Te.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 3.8774 2 C 3.2697 2 2.7917 2.248 2.3967 2.6605 C 1.928 3.1498 1.7993 3.8555 1.7993 4.5331 V 13.8775 V 25.4669 C 1.7993 26.1445 1.928 26.8502 2.3967 27.3395 C 2.7917 27.752 3.2697 28 3.8774 28 H 7 V 30 H 3.8774 C 2.6211 30 1.4369 29.4282 0.5895 28.4485 C 0.1462 27.936 0.0002 27.2467 0.0002 26.5691 L -0.0002 13.8775 L 0.0002 3.4309 C 0.0002 2.7533 0.1462 2.064 0.5895 1.5515 C 1.4368 0.5718 2.6211 0 3.8774 0 H 7 V 2 H 3.8774 Z"})})]}))},NX=({height:r=24})=>Te.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r+6,preserveAspectRatio:"none",viewBox:"0 0 37 30",fill:"none",className:"ndl-relationship-label-lines",children:[Te.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 37 2 H 0 V 0 H 37 V 2 Z"}),Te.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 37 30 H 0 V 28 H 37 V 30 Z"})]}),hS=200,Ax=r=>{var{type:e="node",color:t,isDisabled:n=!1,isSelected:i=!1,as:a,onClick:o,className:s,style:u,children:l,htmlAttributes:c,isFluid:f=!1,size:d="large",ref:h}=r,p=IX(r,["type","color","isDisabled","isSelected","as","onClick","className","style","children","htmlAttributes","isFluid","size","ref"]);const[g,y]=me.useState(!1),b=k=>{y(!0),c&&c.onMouseEnter!==void 0&&c.onMouseEnter(k)},_=k=>{var L;y(!1),(L=c==null?void 0:c.onMouseLeave)===null||L===void 0||L.call(c,k)},m=a??"button",x=m==="button",E=k=>{if(n){k.preventDefault(),k.stopPropagation();return}o&&o(k)};let O=me.useMemo(()=>{if(t===void 0)switch(e){case"node":return Xu.graph[1];case"relationship":case"relationshipLeft":case"relationshipRight":return Xu.theme.light.color.neutral.bg.strong;default:return Xu.theme.light.color.neutral.bg.strongest}return t},[t,e]);const S=me.useMemo(()=>DX(O||Xu.palette.lemon[40]),[O]),T=me.useMemo(()=>MX(O||Xu.palette.lemon[40]),[O]),P=me.useMemo(()=>kX(O||Xu.palette.lemon[40]),[O]);g&&!n&&(O=S);const I=Vn("ndl-graph-label",s,{"ndl-disabled":n,"ndl-interactable":x,"ndl-selected":i,"ndl-small":d==="small"});if(e==="node"){const k=Vn("ndl-node-label",I);return Te.jsx(m,Object.assign({className:k,ref:h,style:Object.assign({backgroundColor:O,color:n?P:T,maxWidth:f?"100%":hS},u)},x&&{disabled:n,onClick:E,onMouseEnter:b,onMouseLeave:_,type:"button"},c,{children:Te.jsx("div",{className:"ndl-node-label-content",children:l})}))}else if(e==="relationship"||e==="relationshipLeft"||e==="relationshipRight"){const k=Vn("ndl-relationship-label",I),L=d==="small"?20:24;return Te.jsxs(m,Object.assign({style:Object.assign(Object.assign({maxWidth:f?"100%":hS},u),{color:n?P:T}),className:k},x&&{disabled:n,onClick:E,onMouseEnter:b,onMouseLeave:_,type:"button"},{ref:h},p,c,{children:[e==="relationshipLeft"||e==="relationship"?Te.jsx(tI,{direction:"left",color:O,height:L}):Te.jsx(rI,{direction:"left",color:O,height:L}),Te.jsxs("div",{className:"ndl-relationship-label-container",style:{backgroundColor:O},children:[Te.jsx("div",{className:"ndl-relationship-label-content",children:l}),Te.jsx(NX,{height:L})]}),e==="relationshipRight"||e==="relationship"?Te.jsx(tI,{direction:"right",color:O,height:L}):Te.jsx(rI,{direction:"right",color:O,height:L})]}))}else{const k=Vn("ndl-property-key-label",I);return Te.jsx(m,Object.assign({},x&&{type:"button"},{style:Object.assign({backgroundColor:O,color:n?P:T,maxWidth:f?"100%":hS},u),className:k,onClick:E,onMouseEnter:b,onMouseLeave:_,ref:h},c,{children:Te.jsx("div",{className:"ndl-property-key-label-content",children:l})}))}};var Fo=function(){return Fo=Object.assign||function(r){for(var e,t=1,n=arguments.length;t"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof o>"u"?void 0:Number(o)}},qX=function(r){return Array.isArray(r)?r:[r,r]},GX=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],sI="__resizable_base__",VX=(function(r){BX(e,r);function e(t){var n,i,a,o,s=r.call(this,t)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var u=s.parentNode;if(!u)return null;var l=s.window.document.createElement("div");return l.style.width="100%",l.style.height="100%",l.style.position="absolute",l.style.transform="scale(0, 0)",l.style.left="0",l.style.flex="0 0 100%",l.classList?l.classList.add(sI):l.className+=sI,u.appendChild(l),l},s.removeBase=function(u){var l=s.parentNode;l&&l.removeChild(u)},s.state={isResizing:!1,width:(i=(n=s.propsSize)===null||n===void 0?void 0:n.width)!==null&&i!==void 0?i:"auto",height:(o=(a=s.propsSize)===null||a===void 0?void 0:a.height)!==null&&o!==void 0?o:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||FX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var t=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,a=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),t=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=o}return{width:t,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var t=this,n=this.props.size,i=function(s){var u;if(typeof t.state[s]>"u"||t.state[s]==="auto")return"auto";if(t.propsSize&&t.propsSize[s]&&(!((u=t.propsSize[s])===null||u===void 0)&&u.toString().endsWith("%"))){if(t.state[s].toString().endsWith("%"))return t.state[s].toString();var l=t.getParentSize(),c=Number(t.state[s].toString().replace("px","")),f=c/l[s]*100;return"".concat(f,"%")}return vS(t.state[s])},a=n&&typeof n.width<"u"&&!this.state.isResizing?vS(n.width):i("width"),o=n&&typeof n.height<"u"&&!this.state.isResizing?vS(n.height):i("height");return{width:a,height:o}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%",t.style.minHeight="100%";var a={width:t.offsetWidth,height:t.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(t),a},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:t.flexBasis!=="auto"?t.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(t,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===t&&(typeof i>"u"||i==="auto")?"auto":t},e.prototype.calculateNewMaxFromBoundary=function(t,n){var i=this.props.boundsByDirection,a=this.state.direction,o=i&&Xy("left",a),s=i&&Xy("top",a),u,l;if(this.props.bounds==="parent"){var c=this.parentNode;c&&(u=o?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),l=s?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,l=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),l=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(t=t&&t"u"?10:a.width,f=typeof i.width>"u"||i.width<0?t:i.width,d=typeof a.height>"u"?10:a.height,h=typeof i.height>"u"||i.height<0?n:i.height,p=u||0,g=l||0;if(s){var y=(d-p)*this.ratio+g,b=(h-p)*this.ratio+g,_=(c-g)/this.ratio+p,m=(f-g)/this.ratio+p,x=Math.max(c,y),E=Math.min(f,b),O=Math.max(d,_),S=Math.min(h,m);t=sw(t,x,E),n=sw(n,O,S)}else t=sw(t,c,f),n=sw(n,d,h);return{newWidth:t,newHeight:n}},e.prototype.setBoundingClientRect=function(){var t=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left*t,this.parentTop=i.top*t}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*t,this.targetTop=a.top*t}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,u=o.top,l=o.right,c=o.bottom;this.resizableLeft=s*t,this.resizableRight=l*t,this.resizableTop=u*t,this.resizableBottom=c*t}},e.prototype.onResizeStart=function(t,n){if(!(!this.resizable||!this.window)){var i=0,a=0;if(t.nativeEvent&&UX(t.nativeEvent)?(i=t.nativeEvent.clientX,a=t.nativeEvent.clientY):t.nativeEvent&&uw(t.nativeEvent)&&(i=t.nativeEvent.touches[0].clientX,a=t.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(t,n,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var l=this.parentNode;if(l){var c=this.window.getComputedStyle(l).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",s=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var f={original:{x:i,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:gh(gh({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(f)}},e.prototype.onMouseMove=function(t){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&uw(t))try{t.preventDefault(),t.stopPropagation()}catch{}var i=this.props,a=i.maxWidth,o=i.maxHeight,s=i.minWidth,u=i.minHeight,l=uw(t)?t.touches[0].clientX:t.clientX,c=uw(t)?t.touches[0].clientY:t.clientY,f=this.state,d=f.direction,h=f.original,p=f.width,g=f.height,y=this.getParentSize(),b=zX(y,this.window.innerWidth,this.window.innerHeight,a,o,s,u);a=b.maxWidth,o=b.maxHeight,s=b.minWidth,u=b.minHeight;var _=this.calculateNewSizeFromDirection(l,c),m=_.newHeight,x=_.newWidth,E=this.calculateNewMaxFromBoundary(a,o);this.props.snap&&this.props.snap.x&&(x=oI(x,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(m=oI(m,this.props.snap.y,this.props.snapGap));var O=this.calculateNewSizeFromAspectRatio(x,m,{width:E.maxWidth,height:E.maxHeight},{width:s,height:u});if(x=O.newWidth,m=O.newHeight,this.props.grid){var S=aI(x,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),T=aI(m,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),P=this.props.snapGap||0,I=P===0||Math.abs(S-x)<=P?S:x,k=P===0||Math.abs(T-m)<=P?T:m;x=I,m=k}var L={width:x-h.width,height:m-h.height};if(this.delta=L,p&&typeof p=="string"){if(p.endsWith("%")){var B=x/y.width*100;x="".concat(B,"%")}else if(p.endsWith("vw")){var j=x/this.window.innerWidth*100;x="".concat(j,"vw")}else if(p.endsWith("vh")){var z=x/this.window.innerHeight*100;x="".concat(z,"vh")}}if(g&&typeof g=="string"){if(g.endsWith("%")){var B=m/y.height*100;m="".concat(B,"%")}else if(g.endsWith("vw")){var j=m/this.window.innerWidth*100;m="".concat(j,"vw")}else if(g.endsWith("vh")){var z=m/this.window.innerHeight*100;m="".concat(z,"vh")}}var H={width:this.createSizeForCssProperty(x,"width"),height:this.createSizeForCssProperty(m,"height")};this.flexDir==="row"?H.flexBasis=H.width:this.flexDir==="column"&&(H.flexBasis=H.height);var q=this.state.width!==H.width,W=this.state.height!==H.height,$=this.state.flexBasis!==H.flexBasis,J=q||W||$;J&&y2.flushSync(function(){n.setState(H)}),this.props.onResize&&J&&this.props.onResize(t,d,this.resizable,L)}},e.prototype.onMouseUp=function(t){var n,i,a=this.state,o=a.isResizing,s=a.direction;a.original,!(!o||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(t,s,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:gh(gh({},this.state.backgroundStyle),{cursor:"auto"})}))},e.prototype.updateSize=function(t){var n,i;this.setState({width:(n=t.width)!==null&&n!==void 0?n:"auto",height:(i=t.height)!==null&&i!==void 0?i:"auto"})},e.prototype.renderResizer=function(){var t=this,n=this.props,i=n.enable,a=n.handleStyles,o=n.handleClasses,s=n.handleWrapperStyle,u=n.handleWrapperClass,l=n.handleComponent;if(!i)return null;var c=Object.keys(i).map(function(f){return i[f]!==!1?Te.jsx(jX,{direction:f,onResizeStart:t.onResizeStart,replaceStyles:a&&a[f],className:o&&o[f],children:l&&l[f]?l[f]:null},f):null});return Te.jsx("div",{className:u,style:s,children:c})},e.prototype.render=function(){var t=this,n=Object.keys(this.props).reduce(function(o,s){return GX.indexOf(s)!==-1||(o[s]=t.props[s]),o},{}),i=gh(gh(gh({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return Te.jsxs(a,gh({style:i,className:this.props.className},n,{ref:function(o){o&&(t.resizable=o)},children:[this.state.isResizing&&Te.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e})(me.PureComponent),HX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,as:t,isLoading:n=!1,isDisabled:i=!1,size:a="medium",isFloating:o=!1,isActive:s,variant:u="neutral",description:l,tooltipProps:c,className:f,style:d,htmlAttributes:h,onClick:p,ref:g}=r,y=HX(r,["children","as","isLoading","isDisabled","size","isFloating","isActive","variant","description","tooltipProps","className","style","htmlAttributes","onClick","ref"]);return Te.jsx(L7,Object.assign({as:t,iconButtonVariant:"default",isDisabled:i,size:a,isLoading:n,isActive:s,isFloating:o,description:l,tooltipProps:c,className:f,style:d,variant:u,htmlAttributes:h,onClick:p,ref:g},y,{children:e}))};var WX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{description:e,actionFeedbackText:t,icon:n,children:i,onClick:a,htmlAttributes:o,tooltipProps:s,type:u="clean-icon-button"}=r,l=WX(r,["description","actionFeedbackText","icon","children","onClick","htmlAttributes","tooltipProps","type"]);const[c,f]=oo.useState(null),[d,h]=oo.useState(!1),p=()=>{c!==null&&clearTimeout(c);const _=window.setTimeout(()=>{f(null)},2e3);f(_)},g=()=>{h(!1)},y=()=>{h(!0)},b=c===null?e:t;if(u==="clean-icon-button")return Te.jsx(S2,Object.assign({},l.cleanIconButtonProps,{description:b,tooltipProps:{root:Object.assign(Object.assign({},s),{isOpen:d||c!==null}),trigger:{htmlAttributes:{onBlur:g,onFocus:y,onMouseEnter:y,onMouseLeave:g}}},onClick:_=>{a&&a(_),p()},className:l.className,htmlAttributes:o,children:n}));if(u==="icon-button")return Te.jsx(T2,Object.assign({},l.iconButtonProps,{description:b,tooltipProps:{root:Object.assign(Object.assign({},s),{isOpen:d||c!==null}),trigger:{htmlAttributes:{onBlur:g,onFocus:y,onMouseEnter:y,onMouseLeave:g}}},onClick:_=>{a&&a(_),p()},className:l.className,htmlAttributes:o,children:n}));if(u==="outlined-button")return Te.jsxs(Bf,Object.assign({type:"simple",isOpen:d||c!==null},s,{onOpenChange:_=>{var m;_?y():g(),(m=s==null?void 0:s.onOpenChange)===null||m===void 0||m.call(s,_)},children:[Te.jsx(Bf.Trigger,{hasButtonWrapper:!0,htmlAttributes:{"aria-label":b,onBlur:g,onFocus:y,onMouseEnter:y,onMouseLeave:g},children:Te.jsx(rX,Object.assign({variant:"neutral"},l.buttonProps,{onClick:_=>{a&&a(_),p()},leadingVisual:n,className:l.className,htmlAttributes:o,children:i}))}),Te.jsx(Bf.Content,{children:b})]}))},G7=({textToCopy:r,isDisabled:e,size:t,tooltipProps:n,htmlAttributes:i,type:a})=>{const[,o]=oX(),l=a==="outlined-button"?{outlinedButtonProps:{isDisabled:e,size:t},type:"outlined-button"}:a==="icon-button"?{iconButtonProps:{description:"Copy to clipboard",isDisabled:e,size:t},type:"icon-button"}:{cleanIconButtonProps:{description:"Copy to clipboard",isDisabled:e,size:t},type:"clean-icon-button"};return Te.jsx(YX,Object.assign({onClick:()=>o(r),description:"Copy to clipboard",actionFeedbackText:"Copied"},l,{tooltipProps:n,className:"n-gap-token-8",icon:Te.jsx(sH,{className:"ndl-icon-svg"}),htmlAttributes:Object.assign({"aria-live":"polite"},i),children:a==="outlined-button"&&"Copy"}))};var XX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);iTe.jsx(Te.Fragment,{children:r});V7.displayName="CollapsibleButtonWrapper";const $X=r=>{var{children:e,as:t,isFloating:n=!1,orientation:i="horizontal",size:a="medium",className:o,style:s,htmlAttributes:u,ref:l}=r,c=XX(r,["children","as","isFloating","orientation","size","className","style","htmlAttributes","ref"]);const[f,d]=oo.useState(!0),h=Vn("ndl-icon-btn-array",o,{"ndl-array-floating":n,"ndl-col":i==="vertical","ndl-row":i==="horizontal",[`ndl-${a}`]:a}),p=t||"div",g=oo.Children.toArray(e),y=g.filter(x=>!oo.isValidElement(x)||x.type.displayName!=="CollapsibleButtonWrapper"),b=g.find(x=>oo.isValidElement(x)&&x.type.displayName==="CollapsibleButtonWrapper"),_=b?b.props.children:null,m=()=>i==="horizontal"?f?Te.jsx(X9,{}):Te.jsx(qV,{}):f?Te.jsx(Y9,{}):Te.jsx(YV,{});return Te.jsxs(p,Object.assign({role:"group",className:h,ref:l,style:s},c,u,{children:[y,_&&Te.jsxs(Te.Fragment,{children:[!f&&_,Te.jsx(S2,{onClick:()=>{d(x=>!x)},size:a,description:f?"Show more":"Show less",tooltipProps:{root:{shouldCloseOnReferenceClick:!0}},htmlAttributes:{"aria-expanded":!f},children:m()})]})]}))},cM=Object.assign($X,{CollapsibleButtonWrapper:V7});function H7(){if(typeof window>"u")return"linux";const r=window.navigator.userAgent.toLowerCase();return r.includes("mac")?"mac":r.includes("win")?"windows":"linux"}function KX(r=H7()){return{alt:r==="mac"?"⌥":"alt",capslock:"⇪",ctrl:r==="mac"?"⌃":"ctrl",delete:r==="mac"?"⌫":"delete",down:"↓",end:"end",enter:"↵",escape:"⎋",fn:"Fn",home:"home",left:"←",meta:r==="mac"?"⌘":r==="windows"?"⊞":"meta",pagedown:"⇟",pageup:"⇞",right:"→",shift:"⇧",space:"␣",tab:"⇥",up:"↑"}}function ZX(r=H7()){return{alt:"Alt",capslock:"Caps Lock",ctrl:"Control",delete:"Delete",down:"Down",end:"End",enter:"Enter",escape:"Escape",fn:"Fn",home:"Home",left:"Left",meta:r==="mac"?"Command":r==="windows"?"Windows":"Meta",pagedown:"Page Down",pageup:"Page Up",right:"Right",shift:"Shift",space:"Space",tab:"Tab",up:"Up"}}var QX=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{modifierKeys:e,keys:t,os:n,as:i,className:a,style:o,htmlAttributes:s,ref:u}=r,l=QX(r,["modifierKeys","keys","os","as","className","style","htmlAttributes","ref"]);const c=i??"span",f=me.useMemo(()=>{if(e===void 0)return null;const p=KX(n),g=ZX(n);return e==null?void 0:e.map(y=>Te.jsx("abbr",{className:"ndl-kbd-key",title:g[y],children:p[y]},y))},[e,n]),d=me.useMemo(()=>t===void 0?null:t==null?void 0:t.map((p,g)=>g===0?Te.jsx("span",{className:"ndl-kbd-key",children:p},p==null?void 0:p.toString()):Te.jsxs(Te.Fragment,{children:[Te.jsx("span",{className:"ndl-kbd-then",children:"Then"}),Te.jsx("span",{className:"ndl-kbd-key",children:p},p==null?void 0:p.toString())]})),[t]),h=Vn("ndl-kbd",a);return Te.jsxs(c,Object.assign({className:h,style:o,ref:u},l,s,{children:[f,d]}))};var e$=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i{var{children:e,size:t="medium",isDisabled:n=!1,isLoading:i=!1,isOpen:a=!1,className:o,description:s,tooltipProps:u,onClick:l,style:c,htmlAttributes:f,ref:d}=r,h=e$(r,["children","size","isDisabled","isLoading","isOpen","className","description","tooltipProps","onClick","style","htmlAttributes","ref"]);const p=Vn("ndl-select-icon-btn",o,{"ndl-active":a,"ndl-disabled":n,"ndl-large":t==="large","ndl-loading":i,"ndl-medium":t==="medium","ndl-small":t==="small"}),g=!n&&!i;return Te.jsxs(Bf,Object.assign({hoverDelay:{close:0,open:500}},u==null?void 0:u.root,{type:"simple",isDisabled:s===null||n||a===!0,children:[Te.jsx(Bf.Trigger,Object.assign({},u==null?void 0:u.trigger,{hasButtonWrapper:!0,children:Te.jsxs("button",Object.assign({type:"button",ref:d,className:p,style:c,disabled:!g,"aria-disabled":!g,"aria-label":s??void 0,"aria-expanded":a,onClick:l},h,f,{children:[Te.jsx("div",{className:"ndl-select-icon-btn-inner",children:i?Te.jsx(h1,{size:"small"}):Te.jsx("div",{className:"ndl-icon",children:e})}),Te.jsx(Y9,{className:Vn("ndl-select-icon-btn-icon",{"ndl-select-icon-btn-icon-open":a===!0})})]}))})),Te.jsx(Bf.Content,Object.assign({},u==null?void 0:u.content,{children:s}))]}))};function fM(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function Y7(r,e,t){return(e=X7(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function i$(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function a$(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function o$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uo(r,e){return t$(r)||a$(r,e)||G5(r,e)||o$()}function Rx(r){return r$(r)||i$(r)||G5(r)||s$()}function u$(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function X7(r){var e=u$(r,"string");return typeof e=="symbol"?e:e+""}function cs(r){"@babel/helpers - typeof";return cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cs(r)}function G5(r,e){if(r){if(typeof r=="string")return cM(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?cM(r,e):void 0}}var us=typeof window>"u"?null:window,sI=us?us.navigator:null;us&&us.document;var l$=cs(""),$7=cs({}),c$=cs(function(){}),f$=typeof HTMLElement>"u"?"undefined":cs(HTMLElement),V1=function(e){return e&&e.instanceString&&Ya(e.instanceString)?e.instanceString():null},Ar=function(e){return e!=null&&cs(e)==l$},Ya=function(e){return e!=null&&cs(e)===c$},ra=function(e){return!rf(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},ai=function(e){return e!=null&&cs(e)===$7&&!ra(e)&&e.constructor===Object},d$=function(e){return e!=null&&cs(e)===$7},Ht=function(e){return e!=null&&cs(e)===cs(1)&&!isNaN(e)},h$=function(e){return Ht(e)&&Math.floor(e)===e},Px=function(e){if(f$!=="undefined")return e!=null&&e instanceof HTMLElement},rf=function(e){return H1(e)||K7(e)},H1=function(e){return V1(e)==="collection"&&e._private.single},K7=function(e){return V1(e)==="collection"&&!e._private.single},V5=function(e){return V1(e)==="core"},Z7=function(e){return V1(e)==="stylesheet"},v$=function(e){return V1(e)==="event"},Rp=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},p$=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},g$=function(e){return ai(e)&&Ht(e.x1)&&Ht(e.x2)&&Ht(e.y1)&&Ht(e.y2)},y$=function(e){return d$(e)&&Ya(e.then)},m$=function(){return sI&&sI.userAgent.match(/msie|trident|edge/i)},jm=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var a=[],o=0;ot?1:0},O$=function(e,t){return-1*J7(e,t)},kr=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments,t=1;t1&&(y-=1),y<1/6?p+(g-p)*6*y:y<1/2?g:y<2/3?p+(g-p)*(2/3-y)*6:p}var f=new RegExp("^"+w$+"$").exec(e);if(f){if(n=parseInt(f[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,i=parseFloat(f[2]),i<0||i>100||(i=i/100,a=parseFloat(f[3]),a<0||a>100)||(a=a/100,o=f[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(i===0)s=u=l=Math.round(a*255);else{var d=a<.5?a*(1+i):a+i-a*i,h=2*a-d;s=Math.round(255*c(h,d,n+1/3)),u=Math.round(255*c(h,d,n)),l=Math.round(255*c(h,d,n-1/3))}t=[s,u,l,o]}return t},A$=function(e){var t,n=new RegExp("^"+b$+"$").exec(e);if(n){t=[];for(var i=[],a=1;a<=3;a++){var o=n[a];if(o[o.length-1]==="%"&&(i[a]=!0),o=parseFloat(o),i[a]&&(o=o/100*255),o<0||o>255)return;t.push(Math.floor(o))}var s=i[1]||i[2]||i[3],u=i[1]&&i[2]&&i[3];if(s&&!u)return;var l=n[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;t.push(l)}}return t},R$=function(e){return P$[e.toLowerCase()]},eF=function(e){return(ra(e)?e:null)||R$(e)||T$(e)||A$(e)||C$(e)},P$={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},tF=function(e){for(var t=e.map,n=e.keys,i=n.length,a=0;a=u||j<0||_&&z>=d}function T(){var B=e();if(S(B))return P(B);p=setTimeout(T,O(B))}function P(B){return p=void 0,m&&c?x(B):(c=f=void 0,h)}function I(){p!==void 0&&clearTimeout(p),y=0,c=g=f=p=void 0}function k(){return p===void 0?h:P(e())}function L(){var B=e(),j=S(B);if(c=arguments,f=this,g=B,j){if(p===void 0)return E(g);if(_)return clearTimeout(p),p=setTimeout(T,u),x(g)}return p===void 0&&(p=setTimeout(T,u)),h}return L.cancel=I,L.flush=k,L}return AS=o,AS}var U$=F$(),$1=W1(U$),RS=us?us.performance:null,iF=RS&&RS.now?function(){return RS.now()}:function(){return Date.now()},z$=(function(){if(us){if(us.requestAnimationFrame)return function(r){us.requestAnimationFrame(r)};if(us.mozRequestAnimationFrame)return function(r){us.mozRequestAnimationFrame(r)};if(us.webkitRequestAnimationFrame)return function(r){us.webkitRequestAnimationFrame(r)};if(us.msRequestAnimationFrame)return function(r){us.msRequestAnimationFrame(r)}}return function(r){r&&setTimeout(function(){r(iF())},1e3/60)}})(),Mx=function(e){return z$(e)},vv=iF,Ig=9261,aF=65599,lm=5381,oF=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ig,n=t,i;i=e.next(),!i.done;)n=n*aF+i.value|0;return n},g1=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ig;return t*aF+e|0},y1=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lm;return(t<<5)+t+e|0},q$=function(e,t){return e*2097152+t},ep=function(e){return e[0]*2097152+e[1]},fw=function(e,t){return[g1(e[0],t[0]),y1(e[1],t[1])]},EI=function(e,t){var n={value:0,done:!1},i=0,a=e.length,o={next:function(){return i=0;i--)e[i]===t&&e.splice(i,1)},$5=function(e){e.splice(0,e.length)},Q$=function(e,t){for(var n=0;n"u"?"undefined":cs(Set))!==eK?Set:tK,R2=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!V5(e)){Ia("An element must have a core reference and parameters set");return}var i=t.group;if(i==null&&(t.data&&t.data.source!=null&&t.data.target!=null?i="edges":i="nodes"),i!=="nodes"&&i!=="edges"){Ia("An element must be of type `nodes` or `edges`; you specified `"+i+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:i,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?i==="edges":!!t.pannable,active:!1,classes:new $m,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),t.renderedPosition){var o=t.renderedPosition,s=e.pan(),u=e.zoom();a.position={x:(o.x-s.x)/u,y:(o.y-s.y)/u}}var l=[];ra(t.classes)?l=t.classes:Ar(t.classes)&&(l=t.classes.split(/\s+/));for(var c=0,f=l.length;c_?1:0},c=function(b,_,m,x,E){var O;if(m==null&&(m=0),E==null&&(E=n),m<0)throw new Error("lo must be non-negative");for(x==null&&(x=b.length);mI;0<=I?P++:P--)T.push(P);return T}).apply(this).reverse(),S=[],x=0,E=O.length;xk;0<=k?++T:--T)L.push(o(b,m));return L},g=function(b,_,m,x){var E,O,S;for(x==null&&(x=n),E=b[m];m>_;){if(S=m-1>>1,O=b[S],x(E,O)<0){b[m]=O,m=S;continue}break}return b[m]=E},y=function(b,_,m){var x,E,O,S,T;for(m==null&&(m=n),E=b.length,T=_,O=b[_],x=2*_+1;x0;){var O=_.pop(),S=y(O),T=O.id();if(d[T]=S,S!==1/0)for(var P=O.neighborhood().intersect(p),I=0;I0)for(W.unshift(q);f[J];){var X=f[J];W.unshift(X.edge),W.unshift(X.node),$=X.node,J=$.id()}return s.spawn(W)}}}},uK={kruskal:function(e){e=e||function(m){return 1};for(var t=this.byGroup(),n=t.nodes,i=t.edges,a=n.length,o=new Array(a),s=n,u=function(x){for(var E=0;E0;){if(E(),S++,x===c){for(var T=[],P=a,I=c,k=b[I];T.unshift(P),k!=null&&T.unshift(k),P=y[I],P!=null;)I=P.id(),k=b[I];return{found:!0,distance:f[x],path:this.spawn(T),steps:S}}h[x]=!0;for(var L=m._private.edges,B=0;Bk&&(p[I]=k,_[I]=P,m[I]=E),!a){var L=P*c+T;!a&&p[L]>k&&(p[L]=k,_[L]=T,m[L]=E)}}}for(var B=0;B1&&arguments[1]!==void 0?arguments[1]:o,ie=m(Y),we=[],Ee=ie;;){if(Ee==null)return t.spawn();var Me=_(Ee),Ie=Me.edge,Ye=Me.pred;if(we.unshift(Ee[0]),Ee.same(Q)&&we.length>0)break;Ie!=null&&we.unshift(Ie),Ee=Ye}return u.spawn(we)},O=0;O=0;c--){var f=l[c],d=f[1],h=f[2];(t[d]===s&&t[h]===u||t[d]===u&&t[h]===s)&&l.splice(c,1)}for(var p=0;pi;){var a=Math.floor(Math.random()*t.length);t=gK(a,e,t),n--}return t},yK={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,i=t.edges;i.unmergeBy(function(W){return W.isLoop()});var a=n.length,o=i.length,s=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),u=Math.floor(a/pK);if(a<2){Ia("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],c=0;c1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=1/0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=-1/0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=0,a=0,o=t;o1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;i?e=e.slice(t,n):(n0&&e.splice(0,t));for(var s=0,u=e.length-1;u>=0;u--){var l=e[u];o?isFinite(l)||(e[u]=-1/0,s++):e.splice(u,1)}a&&e.sort(function(d,h){return d-h});var c=e.length,f=Math.floor(c/2);return c%2!==0?e[f+1+s]:(e[f-1+s]+e[f+s])/2},EK=function(e){return Math.PI*e/180},dw=function(e,t){return Math.atan2(t,e)-Math.PI/2},K5=Math.log2||function(r){return Math.log(r)/Math.log(2)},Z5=function(e){return e>0?1:e<0?-1:0},Wg=function(e,t){return Math.sqrt(Cg(e,t))},Cg=function(e,t){var n=t.x-e.x,i=t.y-e.y;return n*n+i*i},SK=function(e){for(var t=e.length,n=0,i=0;i=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},TK=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},CK=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},AK=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},hF=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},$w=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Kw=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,i,a,o;if(t.length===1)n=i=a=o=t[0];else if(t.length===2)n=a=t[0],o=i=t[1];else if(t.length===4){var s=Uo(t,4);n=s[0],i=s[1],a=s[2],o=s[3]}return e.x1-=o,e.x2+=i,e.y1-=n,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},RI=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Q5=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},pp=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},PI=function(e,t){return pp(e,t.x,t.y)},vF=function(e,t){return pp(e,t.x1,t.y1)&&pp(e,t.x2,t.y2)},RK=(DS=Math.hypot)!==null&&DS!==void 0?DS:function(r,e){return Math.sqrt(r*r+e*e)};function PK(r,e){if(r.length<3)throw new Error("Need at least 3 vertices");var t=function(T,P){return{x:T.x+P.x,y:T.y+P.y}},n=function(T,P){return{x:T.x-P.x,y:T.y-P.y}},i=function(T,P){return{x:T.x*P,y:T.y*P}},a=function(T,P){return T.x*P.y-T.y*P.x},o=function(T){var P=RK(T.x,T.y);return P===0?{x:0,y:0}:{x:T.x/P,y:T.y/P}},s=function(T){for(var P=0,I=0;I7&&arguments[7]!==void 0?arguments[7]:"auto",l=u==="auto"?Mp(a,o):u,c=a/2,f=o/2;l=Math.min(l,c,f);var d=l!==c,h=l!==f,p;if(d){var g=n-c+l-s,y=i-f-s,b=n+c-l+s,_=y;if(p=gp(e,t,n,i,g,y,b,_,!1),p.length>0)return p}if(h){var m=n+c+s,x=i-f+l-s,E=m,O=i+f-l+s;if(p=gp(e,t,n,i,m,x,E,O,!1),p.length>0)return p}if(d){var S=n-c+l-s,T=i+f+s,P=n+c-l+s,I=T;if(p=gp(e,t,n,i,S,T,P,I,!1),p.length>0)return p}if(h){var k=n-c-s,L=i-f+l-s,B=k,j=i+f-l+s;if(p=gp(e,t,n,i,k,L,B,j,!1),p.length>0)return p}var z;{var H=n-c+l,q=i-f+l;if(z=db(e,t,n,i,H,q,l+s),z.length>0&&z[0]<=H&&z[1]<=q)return[z[0],z[1]]}{var W=n+c-l,$=i-f+l;if(z=db(e,t,n,i,W,$,l+s),z.length>0&&z[0]>=W&&z[1]<=$)return[z[0],z[1]]}{var J=n+c-l,X=i+f-l;if(z=db(e,t,n,i,J,X,l+s),z.length>0&&z[0]>=J&&z[1]>=X)return[z[0],z[1]]}{var Z=n-c+l,ue=i+f-l;if(z=db(e,t,n,i,Z,ue,l+s),z.length>0&&z[0]<=Z&&z[1]>=ue)return[z[0],z[1]]}return[]},DK=function(e,t,n,i,a,o,s){var u=s,l=Math.min(n,a),c=Math.max(n,a),f=Math.min(i,o),d=Math.max(i,o);return l-u<=e&&e<=c+u&&f-u<=t&&t<=d+u},kK=function(e,t,n,i,a,o,s,u,l){var c={x1:Math.min(n,s,a)-l,x2:Math.max(n,s,a)+l,y1:Math.min(i,u,o)-l,y2:Math.max(i,u,o)+l};return!(ec.x2||tc.y2)},IK=function(e,t,n,i){n-=i;var a=t*t-4*e*n;if(a<0)return[];var o=Math.sqrt(a),s=2*e,u=(-t+o)/s,l=(-t-o)/s;return[u,l]},NK=function(e,t,n,i,a){var o=1e-5;e===0&&(e=o),t/=e,n/=e,i/=e;var s,u,l,c,f,d,h,p;if(u=(3*n-t*t)/9,l=-(27*i)+t*(9*n-2*(t*t)),l/=54,s=u*u*u+l*l,a[1]=0,h=t/3,s>0){f=l+Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),d=l-Math.sqrt(s),d=d<0?-Math.pow(-d,1/3):Math.pow(d,1/3),a[0]=-h+f+d,h+=(f+d)/2,a[4]=a[2]=-h,h=Math.sqrt(3)*(-d+f)/2,a[3]=h,a[5]=-h;return}if(a[5]=a[3]=0,s===0){p=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),a[0]=-h+2*p,a[4]=a[2]=-(p+h);return}u=-u,c=u*u*u,c=Math.acos(l/Math.sqrt(c)),p=2*Math.sqrt(u),a[0]=-h+p*Math.cos(c/3),a[2]=-h+p*Math.cos((c+2*Math.PI)/3),a[4]=-h+p*Math.cos((c+4*Math.PI)/3)},LK=function(e,t,n,i,a,o,s,u){var l=1*n*n-4*n*a+2*n*s+4*a*a-4*a*s+s*s+i*i-4*i*o+2*i*u+4*o*o-4*o*u+u*u,c=9*n*a-3*n*n-3*n*s-6*a*a+3*a*s+9*i*o-3*i*i-3*i*u-6*o*o+3*o*u,f=3*n*n-6*n*a+n*s-n*e+2*a*a+2*a*e-s*e+3*i*i-6*i*o+i*u-i*t+2*o*o+2*o*t-u*t,d=1*n*a-n*n+n*e-a*e+i*o-i*i+i*t-o*t,h=[];NK(l,c,f,d,h);for(var p=1e-7,g=[],y=0;y<6;y+=2)Math.abs(h[y+1])=0&&h[y]<=1&&g.push(h[y]);g.push(1),g.push(0);for(var b=-1,_,m,x,E=0;E=0?xl?(e-a)*(e-a)+(t-o)*(t-o):c-d},Cc=function(e,t,n){for(var i,a,o,s,u,l=0,c=0;c=e&&e>=o||i<=e&&e<=o)u=(e-i)/(o-i)*(s-a)+a,u>t&&l++;else continue;return l%2!==0},pv=function(e,t,n,i,a,o,s,u,l){var c=new Array(n.length),f;u[0]!=null?(f=Math.atan(u[1]/u[0]),u[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=u;for(var d=Math.cos(-f),h=Math.sin(-f),p=0;p0){var y=Ix(c,-l);g=kx(y)}else g=c;return Cc(e,t,g)},BK=function(e,t,n,i,a,o,s,u){for(var l=new Array(n.length*2),c=0;c=0&&y<=1&&_.push(y),b>=0&&b<=1&&_.push(b),_.length===0)return[];var m=_[0]*u[0]+e,x=_[0]*u[1]+t;if(_.length>1){if(_[0]==_[1])return[m,x];var E=_[1]*u[0]+e,O=_[1]*u[1]+t;return[m,x,E,O]}else return[m,x]},kS=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},gp=function(e,t,n,i,a,o,s,u,l){var c=e-a,f=n-e,d=s-a,h=t-o,p=i-t,g=u-o,y=d*h-g*c,b=f*h-p*c,_=g*f-d*p;if(_!==0){var m=y/_,x=b/_,E=.001,O=0-E,S=1+E;return O<=m&&m<=S&&O<=x&&x<=S?[e+m*f,t+m*p]:l?[e+m*f,t+m*p]:[]}else return y===0||b===0?kS(e,n,s)===s?[s,u]:kS(e,n,a)===a?[a,o]:kS(a,s,n)===n?[n,i]:[]:[]},UK=function(e,t,n,i,a){var o=[],s=i/2,u=a/2,l=t,c=n;o.push({x:l+s*e[0],y:c+u*e[1]});for(var f=1;f0){var g=Ix(f,-u);h=kx(g)}else h=f}else h=n;for(var y,b,_,m,x=0;x2){for(var p=[c[0],c[1]],g=Math.pow(p[0]-e,2)+Math.pow(p[1]-t,2),y=1;yc&&(c=x)},get:function(m){return l[m]}},d=0;d0?z=j.edgesTo(B)[0]:z=B.edgesTo(j)[0];var H=i(z);B=B.id(),S[B]>S[k]+H&&(S[B]=S[k]+H,T.nodes.indexOf(B)<0?T.push(B):T.updateItem(B),O[B]=0,E[B]=[]),S[B]==S[k]+H&&(O[B]=O[B]+O[k],E[B].push(k))}else for(var q=0;q0;){for(var X=x.pop(),Z=0;Z0&&s.push(n[u]);s.length!==0&&a.push(i.collection(s))}return a},tZ=function(e,t){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:iZ,s=i,u,l,c=0;c=2?q0(e,t,n,0,NI,aZ):q0(e,t,n,0,II)},squaredEuclidean:function(e,t,n){return q0(e,t,n,0,NI)},manhattan:function(e,t,n){return q0(e,t,n,0,II)},max:function(e,t,n){return q0(e,t,n,-1/0,oZ)}};Bm["squared-euclidean"]=Bm.squaredEuclidean;Bm.squaredeuclidean=Bm.squaredEuclidean;function M2(r,e,t,n,i,a){var o;return Ya(r)?o=r:o=Bm[r]||Bm.euclidean,e===0&&Ya(r)?o(i,a):o(e,t,n,i,a)}var sZ=du({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),eD=function(e){return sZ(e)},Nx=function(e,t,n,i,a){var o=a!=="kMedoids",s=o?function(f){return n[f]}:function(f){return i[f](n)},u=function(d){return i[d](t)},l=n,c=t;return M2(e,i.length,s,u,l,c)},NS=function(e,t,n){for(var i=n.length,a=new Array(i),o=new Array(i),s=new Array(t),u=null,l=0;ln)return!1}return!0},cZ=function(e,t,n){for(var i=0;is&&(s=t[l][c],u=c);a[u].push(e[l])}for(var f=0;f=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var p=t[o],g=t[i[o]],y;a.mode==="dendrogram"?y={left:p,right:g,key:p.key}:y={value:p.value.concat(g.value),key:p.key},e[p.index]=y,e.splice(g.index,1),t[p.key]=y;for(var b=0;bn[g.key][_.key]&&(u=n[g.key][_.key])):a.linkage==="max"?(u=n[p.key][_.key],n[p.key][_.key]0&&i.push(a);return i},zI=function(e,t,n){for(var i=[],a=0;as&&(o=l,s=t[a*e+l])}o>0&&i.push(o)}for(var c=0;cl&&(u=c,l=f)}n[a]=o[u]}return i=zI(e,t,n),i},qI=function(e){for(var t=this.cy(),n=this.nodes(),i=xZ(e),a={},o=0;o=k?(L=k,k=j,B=z):j>L&&(L=j);for(var H=0;H0?1:0;S[P%i.minIterations*s+Z]=ue,X+=ue}if(X>0&&(P>=i.minIterations-1||P==i.maxIterations-1)){for(var re=0,ne=0;ne1||O>1)&&(s=!0),f[m]=[],_.outgoers().forEach(function(T){T.isEdge()&&f[m].push(T.id())})}else d[m]=[void 0,_.target().id()]}):o.forEach(function(_){var m=_.id();if(_.isNode()){var x=_.degree(!0);x%2&&(u?l?s=!0:l=m:u=m),f[m]=[],_.connectedEdges().forEach(function(E){return f[m].push(E.id())})}else d[m]=[_.source().id(),_.target().id()]});var h={found:!1,trail:void 0};if(s)return h;if(l&&u)if(a){if(c&&l!=c)return h;c=l}else{if(c&&l!=c&&u!=c)return h;c||(c=l)}else c||(c=o[0].id());var p=function(m){for(var x=m,E=[m],O,S,T;f[x].length;)O=f[x].shift(),S=d[O][0],T=d[O][1],x!=T?(f[T]=f[T].filter(function(P){return P!=O}),x=T):!a&&x!=S&&(f[S]=f[S].filter(function(P){return P!=O}),x=S),E.unshift(O),E.unshift(x);return E},g=[],y=[];for(y=p(c);y.length!=1;)f[y[0]].length==0?(g.unshift(o.getElementById(y.shift())),g.unshift(o.getElementById(y.shift()))):y=p(y.shift()).concat(y);g.unshift(o.getElementById(y.shift()));for(var b in f)if(f[b].length)return h;return h.found=!0,h.trail=this.spawn(g,!0),h}},vw=function(){var e=this,t={},n=0,i=0,a=[],o=[],s={},u=function(d,h){for(var p=o.length-1,g=[],y=e.spawn();o[p].x!=d||o[p].y!=h;)g.push(o.pop().edge),p--;g.push(o.pop().edge),g.forEach(function(b){var _=b.connectedNodes().intersection(e);y.merge(b),_.forEach(function(m){var x=m.id(),E=m.connectedEdges().intersection(e);y.merge(m),t[x].cutVertex?y.merge(E.filter(function(O){return O.isLoop()})):y.merge(E)})}),a.push(y)},l=function(d,h,p){d===p&&(i+=1),t[h]={id:n,low:n++,cutVertex:!1};var g=e.getElementById(h).connectedEdges().intersection(e);if(g.size()===0)a.push(e.spawn(e.getElementById(h)));else{var y,b,_,m;g.forEach(function(x){y=x.source().id(),b=x.target().id(),_=y===h?b:y,_!==p&&(m=x.id(),s[m]||(s[m]=!0,o.push({x:h,y:_,edge:x})),_ in t?t[h].low=Math.min(t[h].low,t[_].id):(l(d,_,h),t[h].low=Math.min(t[h].low,t[_].low),t[h].id<=t[_].low&&(t[h].cutVertex=!0,u(h,_))))})}};e.forEach(function(f){if(f.isNode()){var d=f.id();d in t||(i=0,l(d,d),t[d].cutVertex=i>1)}});var c=Object.keys(t).filter(function(f){return t[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(c),components:a}},PZ={hopcroftTarjanBiconnected:vw,htbc:vw,htb:vw,hopcroftTarjanBiconnectedComponents:vw},pw=function(){var e=this,t={},n=0,i=[],a=[],o=e.spawn(e),s=function(l){a.push(l),t[l]={index:n,low:n++,explored:!1};var c=e.getElementById(l).connectedEdges().intersection(e);if(c.forEach(function(g){var y=g.target().id();y!==l&&(y in t||s(y),t[y].explored||(t[l].low=Math.min(t[l].low,t[y].low)))}),t[l].index===t[l].low){for(var f=e.spawn();;){var d=a.pop();if(f.merge(e.getElementById(d)),t[d].low=t[l].index,t[d].explored=!0,d===l)break}var h=f.edgesWith(f),p=f.merge(h);i.push(p),o=o.difference(p)}};return e.forEach(function(u){if(u.isNode()){var l=u.id();l in t||s(l)}}),{cut:o,components:i}},MZ={tarjanStronglyConnected:pw,tsc:pw,tscc:pw,tarjanStronglyConnectedComponents:pw},xF={};[m1,sK,uK,cK,dK,vK,yK,VK,xm,Em,hM,nZ,gZ,_Z,CZ,RZ,PZ,MZ].forEach(function(r){kr(xF,r)});/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zo(r,e){return t$(r)||a$(r,e)||V5(r,e)||o$()}function Rx(r){return r$(r)||i$(r)||V5(r)||s$()}function u$(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function X7(r){var e=u$(r,"string");return typeof e=="symbol"?e:e+""}function cs(r){"@babel/helpers - typeof";return cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cs(r)}function V5(r,e){if(r){if(typeof r=="string")return fM(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?fM(r,e):void 0}}var us=typeof window>"u"?null:window,uI=us?us.navigator:null;us&&us.document;var l$=cs(""),$7=cs({}),c$=cs(function(){}),f$=typeof HTMLElement>"u"?"undefined":cs(HTMLElement),V1=function(e){return e&&e.instanceString&&Ya(e.instanceString)?e.instanceString():null},Ar=function(e){return e!=null&&cs(e)==l$},Ya=function(e){return e!=null&&cs(e)===c$},ra=function(e){return!rf(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},ai=function(e){return e!=null&&cs(e)===$7&&!ra(e)&&e.constructor===Object},d$=function(e){return e!=null&&cs(e)===$7},Ht=function(e){return e!=null&&cs(e)===cs(1)&&!isNaN(e)},h$=function(e){return Ht(e)&&Math.floor(e)===e},Px=function(e){if(f$!=="undefined")return e!=null&&e instanceof HTMLElement},rf=function(e){return H1(e)||K7(e)},H1=function(e){return V1(e)==="collection"&&e._private.single},K7=function(e){return V1(e)==="collection"&&!e._private.single},H5=function(e){return V1(e)==="core"},Z7=function(e){return V1(e)==="stylesheet"},v$=function(e){return V1(e)==="event"},Rp=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},p$=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},g$=function(e){return ai(e)&&Ht(e.x1)&&Ht(e.x2)&&Ht(e.y1)&&Ht(e.y2)},y$=function(e){return d$(e)&&Ya(e.then)},m$=function(){return uI&&uI.userAgent.match(/msie|trident|edge/i)},jm=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var a=[],o=0;ot?1:0},O$=function(e,t){return-1*J7(e,t)},kr=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments,t=1;t1&&(y-=1),y<1/6?p+(g-p)*6*y:y<1/2?g:y<2/3?p+(g-p)*(2/3-y)*6:p}var f=new RegExp("^"+w$+"$").exec(e);if(f){if(n=parseInt(f[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,i=parseFloat(f[2]),i<0||i>100||(i=i/100,a=parseFloat(f[3]),a<0||a>100)||(a=a/100,o=f[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(i===0)s=u=l=Math.round(a*255);else{var d=a<.5?a*(1+i):a+i-a*i,h=2*a-d;s=Math.round(255*c(h,d,n+1/3)),u=Math.round(255*c(h,d,n)),l=Math.round(255*c(h,d,n-1/3))}t=[s,u,l,o]}return t},A$=function(e){var t,n=new RegExp("^"+b$+"$").exec(e);if(n){t=[];for(var i=[],a=1;a<=3;a++){var o=n[a];if(o[o.length-1]==="%"&&(i[a]=!0),o=parseFloat(o),i[a]&&(o=o/100*255),o<0||o>255)return;t.push(Math.floor(o))}var s=i[1]||i[2]||i[3],u=i[1]&&i[2]&&i[3];if(s&&!u)return;var l=n[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;t.push(l)}}return t},R$=function(e){return P$[e.toLowerCase()]},eF=function(e){return(ra(e)?e:null)||R$(e)||T$(e)||A$(e)||C$(e)},P$={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},tF=function(e){for(var t=e.map,n=e.keys,i=n.length,a=0;a=u||j<0||_&&z>=d}function T(){var B=e();if(S(B))return P(B);p=setTimeout(T,O(B))}function P(B){return p=void 0,m&&c?x(B):(c=f=void 0,h)}function I(){p!==void 0&&clearTimeout(p),y=0,c=g=f=p=void 0}function k(){return p===void 0?h:P(e())}function L(){var B=e(),j=S(B);if(c=arguments,f=this,g=B,j){if(p===void 0)return E(g);if(_)return clearTimeout(p),p=setTimeout(T,u),x(g)}return p===void 0&&(p=setTimeout(T,u)),h}return L.cancel=I,L.flush=k,L}return AS=o,AS}var U$=F$(),$1=W1(U$),RS=us?us.performance:null,iF=RS&&RS.now?function(){return RS.now()}:function(){return Date.now()},z$=(function(){if(us){if(us.requestAnimationFrame)return function(r){us.requestAnimationFrame(r)};if(us.mozRequestAnimationFrame)return function(r){us.mozRequestAnimationFrame(r)};if(us.webkitRequestAnimationFrame)return function(r){us.webkitRequestAnimationFrame(r)};if(us.msRequestAnimationFrame)return function(r){us.msRequestAnimationFrame(r)}}return function(r){r&&setTimeout(function(){r(iF())},1e3/60)}})(),Mx=function(e){return z$(e)},vv=iF,Ig=9261,aF=65599,lm=5381,oF=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ig,n=t,i;i=e.next(),!i.done;)n=n*aF+i.value|0;return n},g1=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ig;return t*aF+e|0},y1=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lm;return(t<<5)+t+e|0},q$=function(e,t){return e*2097152+t},ep=function(e){return e[0]*2097152+e[1]},fw=function(e,t){return[g1(e[0],t[0]),y1(e[1],t[1])]},SI=function(e,t){var n={value:0,done:!1},i=0,a=e.length,o={next:function(){return i=0;i--)e[i]===t&&e.splice(i,1)},K5=function(e){e.splice(0,e.length)},Q$=function(e,t){for(var n=0;n"u"?"undefined":cs(Set))!==eK?Set:tK,R2=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!H5(e)){Ia("An element must have a core reference and parameters set");return}var i=t.group;if(i==null&&(t.data&&t.data.source!=null&&t.data.target!=null?i="edges":i="nodes"),i!=="nodes"&&i!=="edges"){Ia("An element must be of type `nodes` or `edges`; you specified `"+i+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:i,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?i==="edges":!!t.pannable,active:!1,classes:new $m,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),t.renderedPosition){var o=t.renderedPosition,s=e.pan(),u=e.zoom();a.position={x:(o.x-s.x)/u,y:(o.y-s.y)/u}}var l=[];ra(t.classes)?l=t.classes:Ar(t.classes)&&(l=t.classes.split(/\s+/));for(var c=0,f=l.length;c_?1:0},c=function(b,_,m,x,E){var O;if(m==null&&(m=0),E==null&&(E=n),m<0)throw new Error("lo must be non-negative");for(x==null&&(x=b.length);mI;0<=I?P++:P--)T.push(P);return T}).apply(this).reverse(),S=[],x=0,E=O.length;xk;0<=k?++T:--T)L.push(o(b,m));return L},g=function(b,_,m,x){var E,O,S;for(x==null&&(x=n),E=b[m];m>_;){if(S=m-1>>1,O=b[S],x(E,O)<0){b[m]=O,m=S;continue}break}return b[m]=E},y=function(b,_,m){var x,E,O,S,T;for(m==null&&(m=n),E=b.length,T=_,O=b[_],x=2*_+1;x0;){var O=_.pop(),S=y(O),T=O.id();if(d[T]=S,S!==1/0)for(var P=O.neighborhood().intersect(p),I=0;I0)for(W.unshift(q);f[J];){var X=f[J];W.unshift(X.edge),W.unshift(X.node),$=X.node,J=$.id()}return s.spawn(W)}}}},uK={kruskal:function(e){e=e||function(m){return 1};for(var t=this.byGroup(),n=t.nodes,i=t.edges,a=n.length,o=new Array(a),s=n,u=function(x){for(var E=0;E0;){if(E(),S++,x===c){for(var T=[],P=a,I=c,k=b[I];T.unshift(P),k!=null&&T.unshift(k),P=y[I],P!=null;)I=P.id(),k=b[I];return{found:!0,distance:f[x],path:this.spawn(T),steps:S}}h[x]=!0;for(var L=m._private.edges,B=0;Bk&&(p[I]=k,_[I]=P,m[I]=E),!a){var L=P*c+T;!a&&p[L]>k&&(p[L]=k,_[L]=T,m[L]=E)}}}for(var B=0;B1&&arguments[1]!==void 0?arguments[1]:o,ie=m(Y),we=[],Ee=ie;;){if(Ee==null)return t.spawn();var Me=_(Ee),Ie=Me.edge,Ye=Me.pred;if(we.unshift(Ee[0]),Ee.same(Q)&&we.length>0)break;Ie!=null&&we.unshift(Ie),Ee=Ye}return u.spawn(we)},O=0;O=0;c--){var f=l[c],d=f[1],h=f[2];(t[d]===s&&t[h]===u||t[d]===u&&t[h]===s)&&l.splice(c,1)}for(var p=0;pi;){var a=Math.floor(Math.random()*t.length);t=gK(a,e,t),n--}return t},yK={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,i=t.edges;i.unmergeBy(function(W){return W.isLoop()});var a=n.length,o=i.length,s=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),u=Math.floor(a/pK);if(a<2){Ia("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],c=0;c1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=1/0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=-1/0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=0,a=0,o=t;o1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;i?e=e.slice(t,n):(n0&&e.splice(0,t));for(var s=0,u=e.length-1;u>=0;u--){var l=e[u];o?isFinite(l)||(e[u]=-1/0,s++):e.splice(u,1)}a&&e.sort(function(d,h){return d-h});var c=e.length,f=Math.floor(c/2);return c%2!==0?e[f+1+s]:(e[f-1+s]+e[f+s])/2},EK=function(e){return Math.PI*e/180},dw=function(e,t){return Math.atan2(t,e)-Math.PI/2},Z5=Math.log2||function(r){return Math.log(r)/Math.log(2)},Q5=function(e){return e>0?1:e<0?-1:0},Wg=function(e,t){return Math.sqrt(Cg(e,t))},Cg=function(e,t){var n=t.x-e.x,i=t.y-e.y;return n*n+i*i},SK=function(e){for(var t=e.length,n=0,i=0;i=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},TK=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},CK=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},AK=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},hF=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},$w=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Kw=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,i,a,o;if(t.length===1)n=i=a=o=t[0];else if(t.length===2)n=a=t[0],o=i=t[1];else if(t.length===4){var s=zo(t,4);n=s[0],i=s[1],a=s[2],o=s[3]}return e.x1-=o,e.x2+=i,e.y1-=n,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},PI=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},J5=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},pp=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},MI=function(e,t){return pp(e,t.x,t.y)},vF=function(e,t){return pp(e,t.x1,t.y1)&&pp(e,t.x2,t.y2)},RK=(DS=Math.hypot)!==null&&DS!==void 0?DS:function(r,e){return Math.sqrt(r*r+e*e)};function PK(r,e){if(r.length<3)throw new Error("Need at least 3 vertices");var t=function(T,P){return{x:T.x+P.x,y:T.y+P.y}},n=function(T,P){return{x:T.x-P.x,y:T.y-P.y}},i=function(T,P){return{x:T.x*P,y:T.y*P}},a=function(T,P){return T.x*P.y-T.y*P.x},o=function(T){var P=RK(T.x,T.y);return P===0?{x:0,y:0}:{x:T.x/P,y:T.y/P}},s=function(T){for(var P=0,I=0;I7&&arguments[7]!==void 0?arguments[7]:"auto",l=u==="auto"?Mp(a,o):u,c=a/2,f=o/2;l=Math.min(l,c,f);var d=l!==c,h=l!==f,p;if(d){var g=n-c+l-s,y=i-f-s,b=n+c-l+s,_=y;if(p=gp(e,t,n,i,g,y,b,_,!1),p.length>0)return p}if(h){var m=n+c+s,x=i-f+l-s,E=m,O=i+f-l+s;if(p=gp(e,t,n,i,m,x,E,O,!1),p.length>0)return p}if(d){var S=n-c+l-s,T=i+f+s,P=n+c-l+s,I=T;if(p=gp(e,t,n,i,S,T,P,I,!1),p.length>0)return p}if(h){var k=n-c-s,L=i-f+l-s,B=k,j=i+f-l+s;if(p=gp(e,t,n,i,k,L,B,j,!1),p.length>0)return p}var z;{var H=n-c+l,q=i-f+l;if(z=db(e,t,n,i,H,q,l+s),z.length>0&&z[0]<=H&&z[1]<=q)return[z[0],z[1]]}{var W=n+c-l,$=i-f+l;if(z=db(e,t,n,i,W,$,l+s),z.length>0&&z[0]>=W&&z[1]<=$)return[z[0],z[1]]}{var J=n+c-l,X=i+f-l;if(z=db(e,t,n,i,J,X,l+s),z.length>0&&z[0]>=J&&z[1]>=X)return[z[0],z[1]]}{var Z=n-c+l,ue=i+f-l;if(z=db(e,t,n,i,Z,ue,l+s),z.length>0&&z[0]<=Z&&z[1]>=ue)return[z[0],z[1]]}return[]},DK=function(e,t,n,i,a,o,s){var u=s,l=Math.min(n,a),c=Math.max(n,a),f=Math.min(i,o),d=Math.max(i,o);return l-u<=e&&e<=c+u&&f-u<=t&&t<=d+u},kK=function(e,t,n,i,a,o,s,u,l){var c={x1:Math.min(n,s,a)-l,x2:Math.max(n,s,a)+l,y1:Math.min(i,u,o)-l,y2:Math.max(i,u,o)+l};return!(ec.x2||tc.y2)},IK=function(e,t,n,i){n-=i;var a=t*t-4*e*n;if(a<0)return[];var o=Math.sqrt(a),s=2*e,u=(-t+o)/s,l=(-t-o)/s;return[u,l]},NK=function(e,t,n,i,a){var o=1e-5;e===0&&(e=o),t/=e,n/=e,i/=e;var s,u,l,c,f,d,h,p;if(u=(3*n-t*t)/9,l=-(27*i)+t*(9*n-2*(t*t)),l/=54,s=u*u*u+l*l,a[1]=0,h=t/3,s>0){f=l+Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),d=l-Math.sqrt(s),d=d<0?-Math.pow(-d,1/3):Math.pow(d,1/3),a[0]=-h+f+d,h+=(f+d)/2,a[4]=a[2]=-h,h=Math.sqrt(3)*(-d+f)/2,a[3]=h,a[5]=-h;return}if(a[5]=a[3]=0,s===0){p=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),a[0]=-h+2*p,a[4]=a[2]=-(p+h);return}u=-u,c=u*u*u,c=Math.acos(l/Math.sqrt(c)),p=2*Math.sqrt(u),a[0]=-h+p*Math.cos(c/3),a[2]=-h+p*Math.cos((c+2*Math.PI)/3),a[4]=-h+p*Math.cos((c+4*Math.PI)/3)},LK=function(e,t,n,i,a,o,s,u){var l=1*n*n-4*n*a+2*n*s+4*a*a-4*a*s+s*s+i*i-4*i*o+2*i*u+4*o*o-4*o*u+u*u,c=9*n*a-3*n*n-3*n*s-6*a*a+3*a*s+9*i*o-3*i*i-3*i*u-6*o*o+3*o*u,f=3*n*n-6*n*a+n*s-n*e+2*a*a+2*a*e-s*e+3*i*i-6*i*o+i*u-i*t+2*o*o+2*o*t-u*t,d=1*n*a-n*n+n*e-a*e+i*o-i*i+i*t-o*t,h=[];NK(l,c,f,d,h);for(var p=1e-7,g=[],y=0;y<6;y+=2)Math.abs(h[y+1])=0&&h[y]<=1&&g.push(h[y]);g.push(1),g.push(0);for(var b=-1,_,m,x,E=0;E=0?xl?(e-a)*(e-a)+(t-o)*(t-o):c-d},Cc=function(e,t,n){for(var i,a,o,s,u,l=0,c=0;c=e&&e>=o||i<=e&&e<=o)u=(e-i)/(o-i)*(s-a)+a,u>t&&l++;else continue;return l%2!==0},pv=function(e,t,n,i,a,o,s,u,l){var c=new Array(n.length),f;u[0]!=null?(f=Math.atan(u[1]/u[0]),u[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=u;for(var d=Math.cos(-f),h=Math.sin(-f),p=0;p0){var y=Ix(c,-l);g=kx(y)}else g=c;return Cc(e,t,g)},BK=function(e,t,n,i,a,o,s,u){for(var l=new Array(n.length*2),c=0;c=0&&y<=1&&_.push(y),b>=0&&b<=1&&_.push(b),_.length===0)return[];var m=_[0]*u[0]+e,x=_[0]*u[1]+t;if(_.length>1){if(_[0]==_[1])return[m,x];var E=_[1]*u[0]+e,O=_[1]*u[1]+t;return[m,x,E,O]}else return[m,x]},kS=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},gp=function(e,t,n,i,a,o,s,u,l){var c=e-a,f=n-e,d=s-a,h=t-o,p=i-t,g=u-o,y=d*h-g*c,b=f*h-p*c,_=g*f-d*p;if(_!==0){var m=y/_,x=b/_,E=.001,O=0-E,S=1+E;return O<=m&&m<=S&&O<=x&&x<=S?[e+m*f,t+m*p]:l?[e+m*f,t+m*p]:[]}else return y===0||b===0?kS(e,n,s)===s?[s,u]:kS(e,n,a)===a?[a,o]:kS(a,s,n)===n?[n,i]:[]:[]},UK=function(e,t,n,i,a){var o=[],s=i/2,u=a/2,l=t,c=n;o.push({x:l+s*e[0],y:c+u*e[1]});for(var f=1;f0){var g=Ix(f,-u);h=kx(g)}else h=f}else h=n;for(var y,b,_,m,x=0;x2){for(var p=[c[0],c[1]],g=Math.pow(p[0]-e,2)+Math.pow(p[1]-t,2),y=1;yc&&(c=x)},get:function(m){return l[m]}},d=0;d0?z=j.edgesTo(B)[0]:z=B.edgesTo(j)[0];var H=i(z);B=B.id(),S[B]>S[k]+H&&(S[B]=S[k]+H,T.nodes.indexOf(B)<0?T.push(B):T.updateItem(B),O[B]=0,E[B]=[]),S[B]==S[k]+H&&(O[B]=O[B]+O[k],E[B].push(k))}else for(var q=0;q0;){for(var X=x.pop(),Z=0;Z0&&s.push(n[u]);s.length!==0&&a.push(i.collection(s))}return a},tZ=function(e,t){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:iZ,s=i,u,l,c=0;c=2?q0(e,t,n,0,LI,aZ):q0(e,t,n,0,NI)},squaredEuclidean:function(e,t,n){return q0(e,t,n,0,LI)},manhattan:function(e,t,n){return q0(e,t,n,0,NI)},max:function(e,t,n){return q0(e,t,n,-1/0,oZ)}};Bm["squared-euclidean"]=Bm.squaredEuclidean;Bm.squaredeuclidean=Bm.squaredEuclidean;function M2(r,e,t,n,i,a){var o;return Ya(r)?o=r:o=Bm[r]||Bm.euclidean,e===0&&Ya(r)?o(i,a):o(e,t,n,i,a)}var sZ=du({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),tD=function(e){return sZ(e)},Nx=function(e,t,n,i,a){var o=a!=="kMedoids",s=o?function(f){return n[f]}:function(f){return i[f](n)},u=function(d){return i[d](t)},l=n,c=t;return M2(e,i.length,s,u,l,c)},NS=function(e,t,n){for(var i=n.length,a=new Array(i),o=new Array(i),s=new Array(t),u=null,l=0;ln)return!1}return!0},cZ=function(e,t,n){for(var i=0;is&&(s=t[l][c],u=c);a[u].push(e[l])}for(var f=0;f=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var p=t[o],g=t[i[o]],y;a.mode==="dendrogram"?y={left:p,right:g,key:p.key}:y={value:p.value.concat(g.value),key:p.key},e[p.index]=y,e.splice(g.index,1),t[p.key]=y;for(var b=0;bn[g.key][_.key]&&(u=n[g.key][_.key])):a.linkage==="max"?(u=n[p.key][_.key],n[p.key][_.key]0&&i.push(a);return i},qI=function(e,t,n){for(var i=[],a=0;as&&(o=l,s=t[a*e+l])}o>0&&i.push(o)}for(var c=0;cl&&(u=c,l=f)}n[a]=o[u]}return i=qI(e,t,n),i},GI=function(e){for(var t=this.cy(),n=this.nodes(),i=xZ(e),a={},o=0;o=k?(L=k,k=j,B=z):j>L&&(L=j);for(var H=0;H0?1:0;S[P%i.minIterations*s+Z]=ue,X+=ue}if(X>0&&(P>=i.minIterations-1||P==i.maxIterations-1)){for(var re=0,ne=0;ne1||O>1)&&(s=!0),f[m]=[],_.outgoers().forEach(function(T){T.isEdge()&&f[m].push(T.id())})}else d[m]=[void 0,_.target().id()]}):o.forEach(function(_){var m=_.id();if(_.isNode()){var x=_.degree(!0);x%2&&(u?l?s=!0:l=m:u=m),f[m]=[],_.connectedEdges().forEach(function(E){return f[m].push(E.id())})}else d[m]=[_.source().id(),_.target().id()]});var h={found:!1,trail:void 0};if(s)return h;if(l&&u)if(a){if(c&&l!=c)return h;c=l}else{if(c&&l!=c&&u!=c)return h;c||(c=l)}else c||(c=o[0].id());var p=function(m){for(var x=m,E=[m],O,S,T;f[x].length;)O=f[x].shift(),S=d[O][0],T=d[O][1],x!=T?(f[T]=f[T].filter(function(P){return P!=O}),x=T):!a&&x!=S&&(f[S]=f[S].filter(function(P){return P!=O}),x=S),E.unshift(O),E.unshift(x);return E},g=[],y=[];for(y=p(c);y.length!=1;)f[y[0]].length==0?(g.unshift(o.getElementById(y.shift())),g.unshift(o.getElementById(y.shift()))):y=p(y.shift()).concat(y);g.unshift(o.getElementById(y.shift()));for(var b in f)if(f[b].length)return h;return h.found=!0,h.trail=this.spawn(g,!0),h}},vw=function(){var e=this,t={},n=0,i=0,a=[],o=[],s={},u=function(d,h){for(var p=o.length-1,g=[],y=e.spawn();o[p].x!=d||o[p].y!=h;)g.push(o.pop().edge),p--;g.push(o.pop().edge),g.forEach(function(b){var _=b.connectedNodes().intersection(e);y.merge(b),_.forEach(function(m){var x=m.id(),E=m.connectedEdges().intersection(e);y.merge(m),t[x].cutVertex?y.merge(E.filter(function(O){return O.isLoop()})):y.merge(E)})}),a.push(y)},l=function(d,h,p){d===p&&(i+=1),t[h]={id:n,low:n++,cutVertex:!1};var g=e.getElementById(h).connectedEdges().intersection(e);if(g.size()===0)a.push(e.spawn(e.getElementById(h)));else{var y,b,_,m;g.forEach(function(x){y=x.source().id(),b=x.target().id(),_=y===h?b:y,_!==p&&(m=x.id(),s[m]||(s[m]=!0,o.push({x:h,y:_,edge:x})),_ in t?t[h].low=Math.min(t[h].low,t[_].id):(l(d,_,h),t[h].low=Math.min(t[h].low,t[_].low),t[h].id<=t[_].low&&(t[h].cutVertex=!0,u(h,_))))})}};e.forEach(function(f){if(f.isNode()){var d=f.id();d in t||(i=0,l(d,d),t[d].cutVertex=i>1)}});var c=Object.keys(t).filter(function(f){return t[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(c),components:a}},PZ={hopcroftTarjanBiconnected:vw,htbc:vw,htb:vw,hopcroftTarjanBiconnectedComponents:vw},pw=function(){var e=this,t={},n=0,i=[],a=[],o=e.spawn(e),s=function(l){a.push(l),t[l]={index:n,low:n++,explored:!1};var c=e.getElementById(l).connectedEdges().intersection(e);if(c.forEach(function(g){var y=g.target().id();y!==l&&(y in t||s(y),t[y].explored||(t[l].low=Math.min(t[l].low,t[y].low)))}),t[l].index===t[l].low){for(var f=e.spawn();;){var d=a.pop();if(f.merge(e.getElementById(d)),t[d].low=t[l].index,t[d].explored=!0,d===l)break}var h=f.edgesWith(f),p=f.merge(h);i.push(p),o=o.difference(p)}};return e.forEach(function(u){if(u.isNode()){var l=u.id();l in t||s(l)}}),{cut:o,components:i}},MZ={tarjanStronglyConnected:pw,tsc:pw,tscc:pw,tarjanStronglyConnectedComponents:pw},xF={};[m1,sK,uK,cK,dK,vK,yK,VK,xm,Em,vM,nZ,gZ,_Z,CZ,RZ,PZ,MZ].forEach(function(r){kr(xF,r)});/*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) Licensed under The MIT License (http://opensource.org/licenses/MIT) -*/var EF=0,SF=1,OF=2,Pd=function(e){if(!(this instanceof Pd))return new Pd(e);this.id="Thenable/1.0.7",this.state=EF,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Pd.prototype={fulfill:function(e){return GI(this,SF,"fulfillValue",e)},reject:function(e){return GI(this,OF,"rejectReason",e)},then:function(e,t){var n=this,i=new Pd;return n.onFulfilled.push(HI(e,i,"fulfill")),n.onRejected.push(HI(t,i,"reject")),TF(n),i.proxy}};var GI=function(e,t,n,i){return e.state===EF&&(e.state=t,e[n]=i,TF(e)),e},TF=function(e){e.state===SF?VI(e,"onFulfilled",e.fulfillValue):e.state===OF&&VI(e,"onRejected",e.rejectReason)},VI=function(e,t,n){if(e[t].length!==0){var i=e[t];e[t]=[];var a=function(){for(var s=0;s0}},clearQueue:function(){return function(){var t=this,n=t.length!==void 0,i=n?t:[t],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var o=0;o-1}return nO=e,nO}var iO,vN;function KZ(){if(vN)return iO;vN=1;var r=I2();function e(t,n){var i=this.__data__,a=r(i,t);return a<0?(++this.size,i.push([t,n])):i[a][1]=n,this}return iO=e,iO}var aO,pN;function ZZ(){if(pN)return aO;pN=1;var r=WZ(),e=YZ(),t=XZ(),n=$Z(),i=KZ();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s-1&&n%1==0&&n0&&this.spawn(i).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){ra(e)||(e=e.match(/\S+/g)||[]);for(var n=this,i=t===void 0,a=[],o=0,s=n.length;o0&&this.spawn(a).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(t==null)t=250;else if(t===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}};Zw.className=Zw.classNames=Zw.classes;var ni={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:ls,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};ni.variable="(?:[\\w-.]|(?:\\\\"+ni.metaChar+"))+";ni.className="(?:[\\w-]|(?:\\\\"+ni.metaChar+"))+";ni.value=ni.string+"|"+ni.number;ni.id=ni.variable;(function(){var r,e,t;for(r=ni.comparatorOp.split("|"),t=0;t=0)&&e!=="="&&(ni.comparatorOp+="|\\!"+e)})();var Vi=function(){return{checks:[]}},nr={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},yM=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(r,e){return O$(r.selector,e.selector)}),AQ=(function(){for(var r={},e,t=0;t0&&c.edgeCount>0)return Ai("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(c.edgeCount>1)return Ai("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;c.edgeCount===1&&Ai("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},IQ=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(c){return c??""},t=function(c){return Ar(c)?'"'+c+'"':e(c)},n=function(c){return" "+c+" "},i=function(c,f){var d=c.type,h=c.value;switch(d){case nr.GROUP:{var p=e(h);return p.substring(0,p.length-1)}case nr.DATA_COMPARE:{var g=c.field,y=c.operator;return"["+g+n(e(y))+t(h)+"]"}case nr.DATA_BOOL:{var b=c.operator,_=c.field;return"["+e(b)+_+"]"}case nr.DATA_EXIST:{var m=c.field;return"["+m+"]"}case nr.META_COMPARE:{var x=c.operator,E=c.field;return"[["+E+n(e(x))+t(h)+"]]"}case nr.STATE:return h;case nr.ID:return"#"+h;case nr.CLASS:return"."+h;case nr.PARENT:case nr.CHILD:return a(c.parent,f)+n(">")+a(c.child,f);case nr.ANCESTOR:case nr.DESCENDANT:return a(c.ancestor,f)+" "+a(c.descendant,f);case nr.COMPOUND_SPLIT:{var O=a(c.left,f),S=a(c.subject,f),T=a(c.right,f);return O+(O.length>0?" ":"")+S+T}case nr.TRUE:return""}},a=function(c,f){return c.checks.reduce(function(d,h,p){return d+(f===c&&p===0?"$":"")+i(h,f)},"")},o="",s=0;s1&&s=0&&(t=t.replace("!",""),f=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),c=!0),(a||s||c)&&(u=!a&&!o?"":""+e,l=""+n),c&&(e=u=u.toLowerCase(),n=l=l.toLowerCase()),t){case"*=":i=u.indexOf(l)>=0;break;case"$=":i=u.indexOf(l,u.length-l.length)>=0;break;case"^=":i=u.indexOf(l)===0;break;case"=":i=e===n;break;case">":d=!0,i=e>n;break;case">=":d=!0,i=e>=n;break;case"<":d=!0,i=e0;){var c=i.shift();e(c),a.add(c.id()),s&&n(i,a,c)}return r}function IF(r,e,t){if(t.isParent())for(var n=t._private.children,i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;return iD(this,r,e,IF)};function NF(r,e,t){if(t.isChild()){var n=t._private.parent;e.has(n.id())||r.push(n)}}Fm.forEachUp=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return iD(this,r,e,NF)};function qQ(r,e,t){NF(r,e,t),IF(r,e,t)}Fm.forEachUpAndDown=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return iD(this,r,e,qQ)};Fm.ancestors=Fm.parents;var w1,LF;w1=LF={data:Ci.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Ci.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Ci.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Ci.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Ci.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Ci.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};w1.attr=w1.data;w1.removeAttr=w1.removeData;var GQ=LF,L2={};function kO(r){return function(e){var t=this;if(e===void 0&&(e=!0),t.length!==0)if(t.isNode()&&!t.removed()){for(var n=0,i=t[0],a=i._private.edges,o=0;oe}),minIndegree:Ky("indegree",function(r,e){return re}),minOutdegree:Ky("outdegree",function(r,e){return re})});kr(L2,{totalDegree:function(e){for(var t=0,n=this.nodes(),i=0;i0,d=f;f&&(c=c[0]);var h=d?c.position():{x:0,y:0};t!==void 0?l.position(e,t+h[e]):a!==void 0&&l.position({x:a.x+h.x,y:a.y+h.y})}else{var p=n.position(),g=s?n.parent():null,y=g&&g.length>0,b=y;y&&(g=g[0]);var _=b?g.position():{x:0,y:0};return a={x:p.x-_.x,y:p.y-_.y},e===void 0?a:a[e]}else if(!o)return;return this}};Cd.modelPosition=Cd.point=Cd.position;Cd.modelPositions=Cd.points=Cd.positions;Cd.renderedPoint=Cd.renderedPosition;Cd.relativePoint=Cd.relativePosition;var VQ=jF,Sm,Gp;Sm=Gp={};Gp.renderedBoundingBox=function(r){var e=this.boundingBox(r),t=this.cy(),n=t.zoom(),i=t.pan(),a=e.x1*n+i.x,o=e.x2*n+i.x,s=e.y1*n+i.y,u=e.y2*n+i.y;return{x1:a,x2:o,y1:s,y2:u,w:o-a,h:u-s}};Gp.dirtyCompoundBoundsCache=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,r||t.emitAndNotify("bounds")}}),this)};Gp.updateCompoundBounds=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!r&&e.batching())return this;function t(o){if(!o.isParent())return;var s=o._private,u=o.children(),l=o.pstyle("compound-sizing-wrt-labels").value==="include",c={width:{val:o.pstyle("min-width").pfValue,left:o.pstyle("min-width-bias-left"),right:o.pstyle("min-width-bias-right")},height:{val:o.pstyle("min-height").pfValue,top:o.pstyle("min-height-bias-top"),bottom:o.pstyle("min-height-bias-bottom")}},f=u.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),d=s.position;(f.w===0||f.h===0)&&(f={w:o.pstyle("width").pfValue,h:o.pstyle("height").pfValue},f.x1=d.x-f.w/2,f.x2=d.x+f.w/2,f.y1=d.y-f.h/2,f.y2=d.y+f.h/2);function h(P,I,k){var L=0,B=0,j=I+k;return P>0&&j>0&&(L=I/j*P,B=k/j*P),{biasDiff:L,biasComplementDiff:B}}function p(P,I,k,L){if(k.units==="%")switch(L){case"width":return P>0?k.pfValue*P:0;case"height":return I>0?k.pfValue*I:0;case"average":return P>0&&I>0?k.pfValue*(P+I)/2:0;case"min":return P>0&&I>0?P>I?k.pfValue*I:k.pfValue*P:0;case"max":return P>0&&I>0?P>I?k.pfValue*P:k.pfValue*I:0;default:return 0}else return k.units==="px"?k.pfValue:0}var g=c.width.left.value;c.width.left.units==="px"&&c.width.val>0&&(g=g*100/c.width.val);var y=c.width.right.value;c.width.right.units==="px"&&c.width.val>0&&(y=y*100/c.width.val);var b=c.height.top.value;c.height.top.units==="px"&&c.height.val>0&&(b=b*100/c.height.val);var _=c.height.bottom.value;c.height.bottom.units==="px"&&c.height.val>0&&(_=_*100/c.height.val);var m=h(c.width.val-f.w,g,y),x=m.biasDiff,E=m.biasComplementDiff,O=h(c.height.val-f.h,b,_),S=O.biasDiff,T=O.biasComplementDiff;s.autoPadding=p(f.w,f.h,o.pstyle("padding"),o.pstyle("padding-relative-to").value),s.autoWidth=Math.max(f.w,c.width.val),d.x=(-x+f.x1+f.x2+E)/2,s.autoHeight=Math.max(f.h,c.height.val),d.y=(-S+f.y1+f.y2+T)/2}for(var n=0;ne.x2?i:e.x2,e.y1=ne.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},cp=function(e,t){return t==null?e:xd(e,t.x1,t.y1,t.x2,t.y2)},G0=function(e,t,n){return Tc(e,t,n)},gw=function(e,t,n){if(!t.cy().headless()){var i=t._private,a=i.rstyle,o=a.arrowWidth/2,s=t.pstyle(n+"-arrow-shape").value,u,l;if(s!=="none"){n==="source"?(u=a.srcX,l=a.srcY):n==="target"?(u=a.tgtX,l=a.tgtY):(u=a.midX,l=a.midY);var c=i.arrowBounds=i.arrowBounds||{},f=c[n]=c[n]||{};f.x1=u-o,f.y1=l-o,f.x2=u+o,f.y2=l+o,f.w=f.x2-f.x1,f.h=f.y2-f.y1,$w(f,1),xd(e,f.x1,f.y1,f.x2,f.y2)}}},IO=function(e,t,n){if(!t.cy().headless()){var i;n?i=n+"-":i="";var a=t._private,o=a.rstyle,s=t.pstyle(i+"label").strValue;if(s){var u=t.pstyle("text-halign"),l=t.pstyle("text-valign"),c=G0(o,"labelWidth",n),f=G0(o,"labelHeight",n),d=G0(o,"labelX",n),h=G0(o,"labelY",n),p=t.pstyle(i+"text-margin-x").pfValue,g=t.pstyle(i+"text-margin-y").pfValue,y=t.isEdge(),b=t.pstyle(i+"text-rotation"),_=t.pstyle("text-outline-width").pfValue,m=t.pstyle("text-border-width").pfValue,x=m/2,E=t.pstyle("text-background-padding").pfValue,O=2,S=f,T=c,P=T/2,I=S/2,k,L,B,j;if(y)k=d-P,L=d+P,B=h-I,j=h+I;else{switch(u.value){case"left":k=d-T,L=d;break;case"center":k=d-P,L=d+P;break;case"right":k=d,L=d+T;break}switch(l.value){case"top":B=h-S,j=h;break;case"center":B=h-I,j=h+I;break;case"bottom":B=h,j=h+S;break}}var z=p-Math.max(_,x)-E-O,H=p+Math.max(_,x)+E+O,q=g-Math.max(_,x)-E-O,W=g+Math.max(_,x)+E+O;k+=z,L+=H,B+=q,j+=W;var $=n||"main",J=a.labelBounds,X=J[$]=J[$]||{};X.x1=k,X.y1=B,X.x2=L,X.y2=j,X.w=L-k,X.h=j-B,X.leftPad=z,X.rightPad=H,X.topPad=q,X.botPad=W;var Z=y&&b.strValue==="autorotate",ue=b.pfValue!=null&&b.pfValue!==0;if(Z||ue){var re=Z?G0(a.rstyle,"labelAngle",n):b.pfValue,ne=Math.cos(re),le=Math.sin(re),ce=(k+L)/2,pe=(B+j)/2;if(!y){switch(u.value){case"left":ce=L;break;case"right":ce=k;break}switch(l.value){case"top":pe=j;break;case"bottom":pe=B;break}}var fe=function(Ce,Y){return Ce=Ce-ce,Y=Y-pe,{x:Ce*ne-Y*le+ce,y:Ce*le+Y*ne+pe}},se=fe(k,B),de=fe(k,j),ge=fe(L,B),Oe=fe(L,j);k=Math.min(se.x,de.x,ge.x,Oe.x),L=Math.max(se.x,de.x,ge.x,Oe.x),B=Math.min(se.y,de.y,ge.y,Oe.y),j=Math.max(se.y,de.y,ge.y,Oe.y)}var ke=$+"Rot",De=J[ke]=J[ke]||{};De.x1=k,De.y1=B,De.x2=L,De.y2=j,De.w=L-k,De.h=j-B,xd(e,k,B,L,j),xd(a.labelBounds.all,k,B,L,j)}return e}},VN=function(e,t){if(!t.cy().headless()){var n=t.pstyle("outline-opacity").value,i=t.pstyle("outline-width").value,a=t.pstyle("outline-offset").value,o=i+a;FF(e,t,n,o,"outside",o/2)}},FF=function(e,t,n,i,a,o){if(!(n===0||i<=0||a==="inside")){var s=t.cy(),u=t.pstyle("shape").value,l=s.renderer().nodeShapes[u],c=t.position(),f=c.x,d=c.y,h=t.width(),p=t.height();if(l.hasMiterBounds){a==="center"&&(i/=2);var g=l.miterBounds(f,d,h,p,i);cp(e,g)}else o!=null&&o>0&&Kw(e,[o,o,o,o])}},HQ=function(e,t){if(!t.cy().headless()){var n=t.pstyle("border-opacity").value,i=t.pstyle("border-width").pfValue,a=t.pstyle("border-position").value;FF(e,t,n,i,a)}},WQ=function(e,t){var n=e._private.cy,i=n.styleEnabled(),a=n.headless(),o=ql(),s=e._private,u=e.isNode(),l=e.isEdge(),c,f,d,h,p,g,y=s.rstyle,b=u&&i?e.pstyle("bounds-expansion").pfValue:[0],_=function(Ne){return Ne.pstyle("display").value!=="none"},m=!i||_(e)&&(!l||_(e.source())&&_(e.target()));if(m){var x=0,E=0;i&&t.includeOverlays&&(x=e.pstyle("overlay-opacity").value,x!==0&&(E=e.pstyle("overlay-padding").value));var O=0,S=0;i&&t.includeUnderlays&&(O=e.pstyle("underlay-opacity").value,O!==0&&(S=e.pstyle("underlay-padding").value));var T=Math.max(E,S),P=0,I=0;if(i&&(P=e.pstyle("width").pfValue,I=P/2),u&&t.includeNodes){var k=e.position();p=k.x,g=k.y;var L=e.outerWidth(),B=L/2,j=e.outerHeight(),z=j/2;c=p-B,f=p+B,d=g-z,h=g+z,xd(o,c,d,f,h),i&&VN(o,e),i&&t.includeOutlines&&!a&&VN(o,e),i&&HQ(o,e)}else if(l&&t.includeEdges)if(i&&!a){var H=e.pstyle("curve-style").strValue;if(c=Math.min(y.srcX,y.midX,y.tgtX),f=Math.max(y.srcX,y.midX,y.tgtX),d=Math.min(y.srcY,y.midY,y.tgtY),h=Math.max(y.srcY,y.midY,y.tgtY),c-=I,f+=I,d-=I,h+=I,xd(o,c,d,f,h),H==="haystack"){var q=y.haystackPts;if(q&&q.length===2){if(c=q[0].x,d=q[0].y,f=q[1].x,h=q[1].y,c>f){var W=c;c=f,f=W}if(d>h){var $=d;d=h,h=$}xd(o,c-I,d-I,f+I,h+I)}}else if(H==="bezier"||H==="unbundled-bezier"||vp(H,"segments")||vp(H,"taxi")){var J;switch(H){case"bezier":case"unbundled-bezier":J=y.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":J=y.linePts;break}if(J!=null)for(var X=0;Xf){var ce=c;c=f,f=ce}if(d>h){var pe=d;d=h,h=pe}c-=I,f+=I,d-=I,h+=I,xd(o,c,d,f,h)}if(i&&t.includeEdges&&l&&(gw(o,e,"mid-source"),gw(o,e,"mid-target"),gw(o,e,"source"),gw(o,e,"target")),i){var fe=e.pstyle("ghost").value==="yes";if(fe){var se=e.pstyle("ghost-offset-x").pfValue,de=e.pstyle("ghost-offset-y").pfValue;xd(o,o.x1+se,o.y1+de,o.x2+se,o.y2+de)}}var ge=s.bodyBounds=s.bodyBounds||{};RI(ge,o),Kw(ge,b),$w(ge,1),i&&(c=o.x1,f=o.x2,d=o.y1,h=o.y2,xd(o,c-T,d-T,f+T,h+T));var Oe=s.overlayBounds=s.overlayBounds||{};RI(Oe,o),Kw(Oe,b),$w(Oe,1);var ke=s.labelBounds=s.labelBounds||{};ke.all!=null?CK(ke.all):ke.all=ql(),i&&t.includeLabels&&(t.includeMainLabels&&IO(o,e,null),l&&(t.includeSourceLabels&&IO(o,e,"source"),t.includeTargetLabels&&IO(o,e,"target")))}return o.x1=If(o.x1),o.y1=If(o.y1),o.x2=If(o.x2),o.y2=If(o.y2),o.w=If(o.x2-o.x1),o.h=If(o.y2-o.y1),o.w>0&&o.h>0&&m&&(Kw(o,b),$w(o,1)),o},UF=function(e){var t=0,n=function(o){return(o?1:0)<0}},clearQueue:function(){return function(){var t=this,n=t.length!==void 0,i=n?t:[t],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var o=0;o-1}return nO=e,nO}var iO,pN;function KZ(){if(pN)return iO;pN=1;var r=I2();function e(t,n){var i=this.__data__,a=r(i,t);return a<0?(++this.size,i.push([t,n])):i[a][1]=n,this}return iO=e,iO}var aO,gN;function ZZ(){if(gN)return aO;gN=1;var r=WZ(),e=YZ(),t=XZ(),n=$Z(),i=KZ();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s-1&&n%1==0&&n0&&this.spawn(i).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){ra(e)||(e=e.match(/\S+/g)||[]);for(var n=this,i=t===void 0,a=[],o=0,s=n.length;o0&&this.spawn(a).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(t==null)t=250;else if(t===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}};Zw.className=Zw.classNames=Zw.classes;var ni={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:ls,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};ni.variable="(?:[\\w-.]|(?:\\\\"+ni.metaChar+"))+";ni.className="(?:[\\w-]|(?:\\\\"+ni.metaChar+"))+";ni.value=ni.string+"|"+ni.number;ni.id=ni.variable;(function(){var r,e,t;for(r=ni.comparatorOp.split("|"),t=0;t=0)&&e!=="="&&(ni.comparatorOp+="|\\!"+e)})();var Vi=function(){return{checks:[]}},nr={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},mM=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(r,e){return O$(r.selector,e.selector)}),AQ=(function(){for(var r={},e,t=0;t0&&c.edgeCount>0)return Ai("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(c.edgeCount>1)return Ai("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;c.edgeCount===1&&Ai("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},IQ=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(c){return c??""},t=function(c){return Ar(c)?'"'+c+'"':e(c)},n=function(c){return" "+c+" "},i=function(c,f){var d=c.type,h=c.value;switch(d){case nr.GROUP:{var p=e(h);return p.substring(0,p.length-1)}case nr.DATA_COMPARE:{var g=c.field,y=c.operator;return"["+g+n(e(y))+t(h)+"]"}case nr.DATA_BOOL:{var b=c.operator,_=c.field;return"["+e(b)+_+"]"}case nr.DATA_EXIST:{var m=c.field;return"["+m+"]"}case nr.META_COMPARE:{var x=c.operator,E=c.field;return"[["+E+n(e(x))+t(h)+"]]"}case nr.STATE:return h;case nr.ID:return"#"+h;case nr.CLASS:return"."+h;case nr.PARENT:case nr.CHILD:return a(c.parent,f)+n(">")+a(c.child,f);case nr.ANCESTOR:case nr.DESCENDANT:return a(c.ancestor,f)+" "+a(c.descendant,f);case nr.COMPOUND_SPLIT:{var O=a(c.left,f),S=a(c.subject,f),T=a(c.right,f);return O+(O.length>0?" ":"")+S+T}case nr.TRUE:return""}},a=function(c,f){return c.checks.reduce(function(d,h,p){return d+(f===c&&p===0?"$":"")+i(h,f)},"")},o="",s=0;s1&&s=0&&(t=t.replace("!",""),f=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),c=!0),(a||s||c)&&(u=!a&&!o?"":""+e,l=""+n),c&&(e=u=u.toLowerCase(),n=l=l.toLowerCase()),t){case"*=":i=u.indexOf(l)>=0;break;case"$=":i=u.indexOf(l,u.length-l.length)>=0;break;case"^=":i=u.indexOf(l)===0;break;case"=":i=e===n;break;case">":d=!0,i=e>n;break;case">=":d=!0,i=e>=n;break;case"<":d=!0,i=e0;){var c=i.shift();e(c),a.add(c.id()),s&&n(i,a,c)}return r}function IF(r,e,t){if(t.isParent())for(var n=t._private.children,i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;return aD(this,r,e,IF)};function NF(r,e,t){if(t.isChild()){var n=t._private.parent;e.has(n.id())||r.push(n)}}Fm.forEachUp=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return aD(this,r,e,NF)};function qQ(r,e,t){NF(r,e,t),IF(r,e,t)}Fm.forEachUpAndDown=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return aD(this,r,e,qQ)};Fm.ancestors=Fm.parents;var w1,LF;w1=LF={data:Ci.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Ci.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Ci.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Ci.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Ci.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Ci.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};w1.attr=w1.data;w1.removeAttr=w1.removeData;var GQ=LF,L2={};function kO(r){return function(e){var t=this;if(e===void 0&&(e=!0),t.length!==0)if(t.isNode()&&!t.removed()){for(var n=0,i=t[0],a=i._private.edges,o=0;oe}),minIndegree:Ky("indegree",function(r,e){return re}),minOutdegree:Ky("outdegree",function(r,e){return re})});kr(L2,{totalDegree:function(e){for(var t=0,n=this.nodes(),i=0;i0,d=f;f&&(c=c[0]);var h=d?c.position():{x:0,y:0};t!==void 0?l.position(e,t+h[e]):a!==void 0&&l.position({x:a.x+h.x,y:a.y+h.y})}else{var p=n.position(),g=s?n.parent():null,y=g&&g.length>0,b=y;y&&(g=g[0]);var _=b?g.position():{x:0,y:0};return a={x:p.x-_.x,y:p.y-_.y},e===void 0?a:a[e]}else if(!o)return;return this}};Cd.modelPosition=Cd.point=Cd.position;Cd.modelPositions=Cd.points=Cd.positions;Cd.renderedPoint=Cd.renderedPosition;Cd.relativePoint=Cd.relativePosition;var VQ=jF,Sm,Gp;Sm=Gp={};Gp.renderedBoundingBox=function(r){var e=this.boundingBox(r),t=this.cy(),n=t.zoom(),i=t.pan(),a=e.x1*n+i.x,o=e.x2*n+i.x,s=e.y1*n+i.y,u=e.y2*n+i.y;return{x1:a,x2:o,y1:s,y2:u,w:o-a,h:u-s}};Gp.dirtyCompoundBoundsCache=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,r||t.emitAndNotify("bounds")}}),this)};Gp.updateCompoundBounds=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!r&&e.batching())return this;function t(o){if(!o.isParent())return;var s=o._private,u=o.children(),l=o.pstyle("compound-sizing-wrt-labels").value==="include",c={width:{val:o.pstyle("min-width").pfValue,left:o.pstyle("min-width-bias-left"),right:o.pstyle("min-width-bias-right")},height:{val:o.pstyle("min-height").pfValue,top:o.pstyle("min-height-bias-top"),bottom:o.pstyle("min-height-bias-bottom")}},f=u.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),d=s.position;(f.w===0||f.h===0)&&(f={w:o.pstyle("width").pfValue,h:o.pstyle("height").pfValue},f.x1=d.x-f.w/2,f.x2=d.x+f.w/2,f.y1=d.y-f.h/2,f.y2=d.y+f.h/2);function h(P,I,k){var L=0,B=0,j=I+k;return P>0&&j>0&&(L=I/j*P,B=k/j*P),{biasDiff:L,biasComplementDiff:B}}function p(P,I,k,L){if(k.units==="%")switch(L){case"width":return P>0?k.pfValue*P:0;case"height":return I>0?k.pfValue*I:0;case"average":return P>0&&I>0?k.pfValue*(P+I)/2:0;case"min":return P>0&&I>0?P>I?k.pfValue*I:k.pfValue*P:0;case"max":return P>0&&I>0?P>I?k.pfValue*P:k.pfValue*I:0;default:return 0}else return k.units==="px"?k.pfValue:0}var g=c.width.left.value;c.width.left.units==="px"&&c.width.val>0&&(g=g*100/c.width.val);var y=c.width.right.value;c.width.right.units==="px"&&c.width.val>0&&(y=y*100/c.width.val);var b=c.height.top.value;c.height.top.units==="px"&&c.height.val>0&&(b=b*100/c.height.val);var _=c.height.bottom.value;c.height.bottom.units==="px"&&c.height.val>0&&(_=_*100/c.height.val);var m=h(c.width.val-f.w,g,y),x=m.biasDiff,E=m.biasComplementDiff,O=h(c.height.val-f.h,b,_),S=O.biasDiff,T=O.biasComplementDiff;s.autoPadding=p(f.w,f.h,o.pstyle("padding"),o.pstyle("padding-relative-to").value),s.autoWidth=Math.max(f.w,c.width.val),d.x=(-x+f.x1+f.x2+E)/2,s.autoHeight=Math.max(f.h,c.height.val),d.y=(-S+f.y1+f.y2+T)/2}for(var n=0;ne.x2?i:e.x2,e.y1=ne.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},cp=function(e,t){return t==null?e:xd(e,t.x1,t.y1,t.x2,t.y2)},G0=function(e,t,n){return Tc(e,t,n)},gw=function(e,t,n){if(!t.cy().headless()){var i=t._private,a=i.rstyle,o=a.arrowWidth/2,s=t.pstyle(n+"-arrow-shape").value,u,l;if(s!=="none"){n==="source"?(u=a.srcX,l=a.srcY):n==="target"?(u=a.tgtX,l=a.tgtY):(u=a.midX,l=a.midY);var c=i.arrowBounds=i.arrowBounds||{},f=c[n]=c[n]||{};f.x1=u-o,f.y1=l-o,f.x2=u+o,f.y2=l+o,f.w=f.x2-f.x1,f.h=f.y2-f.y1,$w(f,1),xd(e,f.x1,f.y1,f.x2,f.y2)}}},IO=function(e,t,n){if(!t.cy().headless()){var i;n?i=n+"-":i="";var a=t._private,o=a.rstyle,s=t.pstyle(i+"label").strValue;if(s){var u=t.pstyle("text-halign"),l=t.pstyle("text-valign"),c=G0(o,"labelWidth",n),f=G0(o,"labelHeight",n),d=G0(o,"labelX",n),h=G0(o,"labelY",n),p=t.pstyle(i+"text-margin-x").pfValue,g=t.pstyle(i+"text-margin-y").pfValue,y=t.isEdge(),b=t.pstyle(i+"text-rotation"),_=t.pstyle("text-outline-width").pfValue,m=t.pstyle("text-border-width").pfValue,x=m/2,E=t.pstyle("text-background-padding").pfValue,O=2,S=f,T=c,P=T/2,I=S/2,k,L,B,j;if(y)k=d-P,L=d+P,B=h-I,j=h+I;else{switch(u.value){case"left":k=d-T,L=d;break;case"center":k=d-P,L=d+P;break;case"right":k=d,L=d+T;break}switch(l.value){case"top":B=h-S,j=h;break;case"center":B=h-I,j=h+I;break;case"bottom":B=h,j=h+S;break}}var z=p-Math.max(_,x)-E-O,H=p+Math.max(_,x)+E+O,q=g-Math.max(_,x)-E-O,W=g+Math.max(_,x)+E+O;k+=z,L+=H,B+=q,j+=W;var $=n||"main",J=a.labelBounds,X=J[$]=J[$]||{};X.x1=k,X.y1=B,X.x2=L,X.y2=j,X.w=L-k,X.h=j-B,X.leftPad=z,X.rightPad=H,X.topPad=q,X.botPad=W;var Z=y&&b.strValue==="autorotate",ue=b.pfValue!=null&&b.pfValue!==0;if(Z||ue){var re=Z?G0(a.rstyle,"labelAngle",n):b.pfValue,ne=Math.cos(re),le=Math.sin(re),ce=(k+L)/2,pe=(B+j)/2;if(!y){switch(u.value){case"left":ce=L;break;case"right":ce=k;break}switch(l.value){case"top":pe=j;break;case"bottom":pe=B;break}}var fe=function(Ce,Y){return Ce=Ce-ce,Y=Y-pe,{x:Ce*ne-Y*le+ce,y:Ce*le+Y*ne+pe}},se=fe(k,B),de=fe(k,j),ge=fe(L,B),Oe=fe(L,j);k=Math.min(se.x,de.x,ge.x,Oe.x),L=Math.max(se.x,de.x,ge.x,Oe.x),B=Math.min(se.y,de.y,ge.y,Oe.y),j=Math.max(se.y,de.y,ge.y,Oe.y)}var ke=$+"Rot",De=J[ke]=J[ke]||{};De.x1=k,De.y1=B,De.x2=L,De.y2=j,De.w=L-k,De.h=j-B,xd(e,k,B,L,j),xd(a.labelBounds.all,k,B,L,j)}return e}},HN=function(e,t){if(!t.cy().headless()){var n=t.pstyle("outline-opacity").value,i=t.pstyle("outline-width").value,a=t.pstyle("outline-offset").value,o=i+a;FF(e,t,n,o,"outside",o/2)}},FF=function(e,t,n,i,a,o){if(!(n===0||i<=0||a==="inside")){var s=t.cy(),u=t.pstyle("shape").value,l=s.renderer().nodeShapes[u],c=t.position(),f=c.x,d=c.y,h=t.width(),p=t.height();if(l.hasMiterBounds){a==="center"&&(i/=2);var g=l.miterBounds(f,d,h,p,i);cp(e,g)}else o!=null&&o>0&&Kw(e,[o,o,o,o])}},HQ=function(e,t){if(!t.cy().headless()){var n=t.pstyle("border-opacity").value,i=t.pstyle("border-width").pfValue,a=t.pstyle("border-position").value;FF(e,t,n,i,a)}},WQ=function(e,t){var n=e._private.cy,i=n.styleEnabled(),a=n.headless(),o=ql(),s=e._private,u=e.isNode(),l=e.isEdge(),c,f,d,h,p,g,y=s.rstyle,b=u&&i?e.pstyle("bounds-expansion").pfValue:[0],_=function(Ne){return Ne.pstyle("display").value!=="none"},m=!i||_(e)&&(!l||_(e.source())&&_(e.target()));if(m){var x=0,E=0;i&&t.includeOverlays&&(x=e.pstyle("overlay-opacity").value,x!==0&&(E=e.pstyle("overlay-padding").value));var O=0,S=0;i&&t.includeUnderlays&&(O=e.pstyle("underlay-opacity").value,O!==0&&(S=e.pstyle("underlay-padding").value));var T=Math.max(E,S),P=0,I=0;if(i&&(P=e.pstyle("width").pfValue,I=P/2),u&&t.includeNodes){var k=e.position();p=k.x,g=k.y;var L=e.outerWidth(),B=L/2,j=e.outerHeight(),z=j/2;c=p-B,f=p+B,d=g-z,h=g+z,xd(o,c,d,f,h),i&&HN(o,e),i&&t.includeOutlines&&!a&&HN(o,e),i&&HQ(o,e)}else if(l&&t.includeEdges)if(i&&!a){var H=e.pstyle("curve-style").strValue;if(c=Math.min(y.srcX,y.midX,y.tgtX),f=Math.max(y.srcX,y.midX,y.tgtX),d=Math.min(y.srcY,y.midY,y.tgtY),h=Math.max(y.srcY,y.midY,y.tgtY),c-=I,f+=I,d-=I,h+=I,xd(o,c,d,f,h),H==="haystack"){var q=y.haystackPts;if(q&&q.length===2){if(c=q[0].x,d=q[0].y,f=q[1].x,h=q[1].y,c>f){var W=c;c=f,f=W}if(d>h){var $=d;d=h,h=$}xd(o,c-I,d-I,f+I,h+I)}}else if(H==="bezier"||H==="unbundled-bezier"||vp(H,"segments")||vp(H,"taxi")){var J;switch(H){case"bezier":case"unbundled-bezier":J=y.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":J=y.linePts;break}if(J!=null)for(var X=0;Xf){var ce=c;c=f,f=ce}if(d>h){var pe=d;d=h,h=pe}c-=I,f+=I,d-=I,h+=I,xd(o,c,d,f,h)}if(i&&t.includeEdges&&l&&(gw(o,e,"mid-source"),gw(o,e,"mid-target"),gw(o,e,"source"),gw(o,e,"target")),i){var fe=e.pstyle("ghost").value==="yes";if(fe){var se=e.pstyle("ghost-offset-x").pfValue,de=e.pstyle("ghost-offset-y").pfValue;xd(o,o.x1+se,o.y1+de,o.x2+se,o.y2+de)}}var ge=s.bodyBounds=s.bodyBounds||{};PI(ge,o),Kw(ge,b),$w(ge,1),i&&(c=o.x1,f=o.x2,d=o.y1,h=o.y2,xd(o,c-T,d-T,f+T,h+T));var Oe=s.overlayBounds=s.overlayBounds||{};PI(Oe,o),Kw(Oe,b),$w(Oe,1);var ke=s.labelBounds=s.labelBounds||{};ke.all!=null?CK(ke.all):ke.all=ql(),i&&t.includeLabels&&(t.includeMainLabels&&IO(o,e,null),l&&(t.includeSourceLabels&&IO(o,e,"source"),t.includeTargetLabels&&IO(o,e,"target")))}return o.x1=If(o.x1),o.y1=If(o.y1),o.x2=If(o.x2),o.y2=If(o.y2),o.w=If(o.x2-o.x1),o.h=If(o.y2-o.y1),o.w>0&&o.h>0&&m&&(Kw(o,b),$w(o,1)),o},UF=function(e){var t=0,n=function(o){return(o?1:0)<0&&arguments[0]!==void 0?arguments[0]:sJ,e=arguments.length>1?arguments[1]:void 0,t=0;t<$N.length;t++){var n=$N[t];this[n]=r[n]||HF[n]}this.context=e||this.context,this.listeners=[],this.emitting=0}var Ip=j2.prototype,WF=function(e,t,n,i,a,o,s){Ya(i)&&(a=i,i=null),s&&(o==null?o=s:o=kr({},o,s));for(var u=ra(n)?n:n.split(/\s+/),l=0;l=0;s--)o(s);return this};Ip.removeAllListeners=function(){return this.removeListener("*")};Ip.emit=Ip.trigger=function(r,e,t){var n=this.listeners,i=n.length;return this.emitting++,ra(e)||(e=[e]),uJ(this,function(a,o){t!=null&&(n=[{event:o.event,type:o.type,namespace:o.namespace,callback:t}],i=n.length);for(var s=function(){var c=n[u];if(c.type===o.type&&(!c.namespace||c.namespace===o.namespace||c.namespace===oJ)&&a.eventMatches(a.context,c,o)){var f=[o];e!=null&&Q$(f,e),a.beforeEmit(a.context,c,o),c.conf&&c.conf.one&&(a.listeners=a.listeners.filter(function(p){return p!==c}));var d=a.callbackContext(a.context,c,o),h=c.callback.apply(d,f);a.afterEmit(a.context,c,o),h===!1&&(o.stopPropagation(),o.preventDefault())}},u=0;u1&&!o){var s=this.length-1,u=this[s],l=u._private.data.id;this[s]=void 0,this[e]=u,a.set(l,{ele:u,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,i=t.map,a=i.get(n);if(!a)return this;var o=a.index;return this.unmergeAt(o),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&Ar(e)){var n=e;e=t.mutableElements().filter(n)}for(var i=0;i=0;t--){var n=this[t];e(n)&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],i=this,a=0;an&&(n=u,i=s)}return{value:n,ele:i}},min:function(e,t){for(var n=1/0,i,a=this,o=0;o=0&&a"u"?"undefined":cs(Symbol))!=e&&cs(Symbol.iterator)!=e;t&&(Lx[Symbol.iterator]=function(){var n=this,i={value:void 0,done:!1},a=0,o=this.length;return Y7({next:function(){return a1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],i=n.cy();if(i.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,i.style().apply(n));var a=n._private.style[e];return a??(t?i.style().getDefaultProperty(e):null)}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return n.pfValue!==void 0?n.pfValue:n.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var i=!1,a=n.style();if(ai(e)){var o=e;a.applyBypass(this,o,i),this.emitAndNotify("style")}else if(Ar(e))if(t===void 0){var s=this[0];return s?a.getStylePropertyValue(s,e):void 0}else a.applyBypass(this,e,t,i),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?a.getRawStyle(u):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,i=t.style(),a=this;if(e===void 0)for(var o=0;o0&&e.push(c[0]),e.push(s[0])}return this.spawn(e,!0).filter(r)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});Ku.neighbourhood=Ku.neighborhood;Ku.closedNeighbourhood=Ku.closedNeighborhood;Ku.openNeighbourhood=Ku.openNeighborhood;kr(Ku,{source:jf(function(e){var t=this[0],n;return t&&(n=t._private.source||t.cy().collection()),n&&e?n.filter(e):n},"source"),target:jf(function(e){var t=this[0],n;return t&&(n=t._private.target||t.cy().collection()),n&&e?n.filter(e):n},"target"),sources:t3({attr:"source"}),targets:t3({attr:"target"})});function t3(r){return function(t){for(var n=[],i=0;i0);return o},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});Ku.componentsOf=Ku.components;var lu=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){Ia("A collection must have a reference to the core");return}var a=new sv,o=!1;if(!t)t=[];else if(t.length>0&&ai(t[0])&&!H1(t[0])){o=!0;for(var s=[],u=new $m,l=0,c=t.length;l0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,n=t.cy(),i=n._private,a=[],o=[],s,u=0,l=t.length;u0){for(var $=s.length===t.length?t:new lu(n,s),J=0;J<$.length;J++){var X=$[J];X.isNode()||(X.parallelEdges().clearTraversalCache(),X.source().clearTraversalCache(),X.target().clearTraversalCache())}var Z;i.hasCompoundNodes?Z=n.collection().merge($).merge($.connectedNodes()).merge($.parent()):Z=$,Z.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(r),r?$.emitAndNotify("add"):e&&$.emit("add")}return t};va.removed=function(){var r=this[0];return r&&r._private.removed};va.inside=function(){var r=this[0];return r&&!r._private.removed};va.remove=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,n=[],i={},a=t._private.cy;function o(j){for(var z=j._private.edges,H=0;H0&&(r?k.emitAndNotify("remove"):e&&k.emit("remove"));for(var L=0;L0?L=j:k=j;while(Math.abs(B)>o&&++z=a?_(I,z):H===0?z:x(I,k,k+l)}var O=!1;function S(){O=!0,(r!==e||t!==n)&&m()}var T=function(k){return O||S(),r===e&&t===n?k:k===0?0:k===1?1:y(E(k),e,n)};T.getControlPoints=function(){return[{x:r,y:e},{x:t,y:n}]};var P="generateBezier("+[r,e,t,n]+")";return T.toString=function(){return P},T}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var bJ=(function(){function r(n){return-n.tension*n.x-n.friction*n.v}function e(n,i,a){var o={x:n.x+a.dx*i,v:n.v+a.dv*i,tension:n.tension,friction:n.friction};return{dx:o.v,dv:r(o)}}function t(n,i){var a={dx:n.v,dv:r(n)},o=e(n,i*.5,a),s=e(n,i*.5,o),u=e(n,i,s),l=1/6*(a.dx+2*(o.dx+s.dx)+u.dx),c=1/6*(a.dv+2*(o.dv+s.dv)+u.dv);return n.x=n.x+l*i,n.v=n.v+c*i,n}return function n(i,a,o){var s={x:-1,v:0,tension:null,friction:null},u=[0],l=0,c=1/1e4,f=16/1e3,d,h,p;for(i=parseFloat(i)||500,a=parseFloat(a)||20,o=o||null,s.tension=i,s.friction=a,d=o!==null,d?(l=n(i,a),h=l/o*f):h=f;p=t(p||s,h),u.push(1+p.x),l+=16,Math.abs(p.x)>c&&Math.abs(p.v)>c;);return d?function(g){return u[g*(u.length-1)|0]}:l}})(),fa=function(e,t,n,i){var a=mJ(e,t,n,i);return function(o,s,u){return o+(s-o)*a(u)}},Jw={linear:function(e,t,n){return e+(t-e)*n},ease:fa(.25,.1,.25,1),"ease-in":fa(.42,0,1,1),"ease-out":fa(0,0,.58,1),"ease-in-out":fa(.42,0,.58,1),"ease-in-sine":fa(.47,0,.745,.715),"ease-out-sine":fa(.39,.575,.565,1),"ease-in-out-sine":fa(.445,.05,.55,.95),"ease-in-quad":fa(.55,.085,.68,.53),"ease-out-quad":fa(.25,.46,.45,.94),"ease-in-out-quad":fa(.455,.03,.515,.955),"ease-in-cubic":fa(.55,.055,.675,.19),"ease-out-cubic":fa(.215,.61,.355,1),"ease-in-out-cubic":fa(.645,.045,.355,1),"ease-in-quart":fa(.895,.03,.685,.22),"ease-out-quart":fa(.165,.84,.44,1),"ease-in-out-quart":fa(.77,0,.175,1),"ease-in-quint":fa(.755,.05,.855,.06),"ease-out-quint":fa(.23,1,.32,1),"ease-in-out-quint":fa(.86,0,.07,1),"ease-in-expo":fa(.95,.05,.795,.035),"ease-out-expo":fa(.19,1,.22,1),"ease-in-out-expo":fa(1,0,0,1),"ease-in-circ":fa(.6,.04,.98,.335),"ease-out-circ":fa(.075,.82,.165,1),"ease-in-out-circ":fa(.785,.135,.15,.86),spring:function(e,t,n){if(n===0)return Jw.linear;var i=bJ(e,t,n);return function(a,o,s){return a+(o-a)*i(s)}},"cubic-bezier":fa};function i3(r,e,t,n,i){if(n===1||e===t)return t;var a=i(e,t,n);return r==null||((r.roundValue||r.color)&&(a=Math.round(a)),r.min!==void 0&&(a=Math.max(a,r.min)),r.max!==void 0&&(a=Math.min(a,r.max))),a}function a3(r,e){return r.pfValue!=null||r.value!=null?r.pfValue!=null&&(e==null||e.type.units!=="%")?r.pfValue:r.value:r}function Zy(r,e,t,n,i){var a=i!=null?i.type:null;t<0?t=0:t>1&&(t=1);var o=a3(r,i),s=a3(e,i);if(Ht(o)&&Ht(s))return i3(a,o,s,t,n);if(ra(o)&&ra(s)){for(var u=[],l=0;l0?(h==="spring"&&p.push(o.duration),o.easingImpl=Jw[h].apply(null,p)):o.easingImpl=Jw[h]}var g=o.easingImpl,y;if(o.duration===0?y=1:y=(t-u)/o.duration,o.applying&&(y=o.progress),y<0?y=0:y>1&&(y=1),o.delay==null){var b=o.startPosition,_=o.position;if(_&&i&&!r.locked()){var m={};H0(b.x,_.x)&&(m.x=Zy(b.x,_.x,y,g)),H0(b.y,_.y)&&(m.y=Zy(b.y,_.y,y,g)),r.position(m)}var x=o.startPan,E=o.pan,O=a.pan,S=E!=null&&n;S&&(H0(x.x,E.x)&&(O.x=Zy(x.x,E.x,y,g)),H0(x.y,E.y)&&(O.y=Zy(x.y,E.y,y,g)),r.emit("pan"));var T=o.startZoom,P=o.zoom,I=P!=null&&n;I&&(H0(T,P)&&(a.zoom=b1(a.minZoom,Zy(T,P,y,g),a.maxZoom)),r.emit("zoom")),(S||I)&&r.emit("viewport");var k=o.style;if(k&&k.length>0&&i){for(var L=0;L=0;S--){var T=O[S];T()}O.splice(0,O.length)},_=h.length-1;_>=0;_--){var m=h[_],x=m._private;if(x.stopped){h.splice(_,1),x.hooked=!1,x.playing=!1,x.started=!1,b(x.frames);continue}!x.playing&&!x.applying||(x.playing&&x.applying&&(x.applying=!1),x.started||wJ(c,m,r),_J(c,m,r,f),x.applying&&(x.applying=!1),b(x.frames),x.step!=null&&x.step(r),m.completed()&&(h.splice(_,1),x.hooked=!1,x.playing=!1,x.started=!1,b(x.completes)),g=!0)}return!f&&h.length===0&&p.length===0&&n.push(c),g}for(var a=!1,o=0;o0?e.notify("draw",t):e.notify("draw")),t.unmerge(n),e.emit("step")}var xJ={animate:Ci.animate(),animation:Ci.animation(),animated:Ci.animated(),clearQueue:Ci.clearQueue(),delay:Ci.delay(),delayAnimation:Ci.delayAnimation(),stop:Ci.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&Mx(function(a){o3(a,e),t()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(a,o){o3(o,e)},n.beforeRenderPriorities.animations):t()}},EJ={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,n){var i=t.qualifier;return i!=null?e!==n.target&&H1(n.target)&&i.matches(n.target):!0},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return t.qualifier!=null?n.target:e}},bw=function(e){return Ar(e)?new Dp(e):e},ZF={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new j2(EJ,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,bw(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,bw(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,bw(t),n),this},once:function(e,t,n){return this.emitter().one(e,bw(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};Ci.eventAliasesOn(ZF);var bM={png:function(e){var t=this._private.renderer;return e=e||{},t.png(e)},jpg:function(e){var t=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",t.jpg(e)}};bM.jpeg=bM.jpg;var ex={layout:function(e){var t=this;if(e==null){Ia("Layout options must be specified to make a layout");return}if(e.name==null){Ia("A `name` must be specified to make a layout");return}var n=e.name,i=t.extension("layout",n);if(i==null){Ia("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var a;Ar(e.eles)?a=t.$(e.eles):a=e.eles!=null?e.eles:t.$();var o=new i(kr({},e,{cy:t,eles:a}));return o}};ex.createLayout=ex.makeLayout=ex.layout;var SJ={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();t!=null&&i.merge(t);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var i=e.batchNotifications[n];i.empty()?t.notify(n):t.notify(n,i)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),i=0;i0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var i=n._private;i.rscratch={},i.rstyle={},i.animation.current=[],i.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};_M.invalidateDimensions=_M.resize;var tx={collection:function(e,t){return Ar(e)?this.$(e):rf(e)?e.collection():ra(e)?(t||(t={}),new lu(this,e,t.unique,t.removed)):new lu(this)},nodes:function(e){var t=this.$(function(n){return n.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(n){return n.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};tx.elements=tx.filter=tx.$;var Bs={},Mb="t",TJ="f";Bs.apply=function(r){for(var e=this,t=e._private,n=t.cy,i=n.collection(),a=0;a0;if(d||f&&h){var p=void 0;d&&h||d?p=l.properties:h&&(p=l.mappedProperties);for(var g=0;g1&&(x=1),s.color){var O=n.valueMin[0],S=n.valueMax[0],T=n.valueMin[1],P=n.valueMax[1],I=n.valueMin[2],k=n.valueMax[2],L=n.valueMin[3]==null?1:n.valueMin[3],B=n.valueMax[3]==null?1:n.valueMax[3],j=[Math.round(O+(S-O)*x),Math.round(T+(P-T)*x),Math.round(I+(k-I)*x),Math.round(L+(B-L)*x)];a={bypass:n.bypass,name:n.name,value:j,strValue:"rgb("+j[0]+", "+j[1]+", "+j[2]+")"}}else if(s.number){var z=n.valueMin+(n.valueMax-n.valueMin)*x;a=this.parse(n.name,z,n.bypass,d)}else return!1;if(!a)return g(),!1;a.mapping=n,n=a;break}case o.data:{for(var H=n.field.split("."),q=f.data,W=0;W0&&a>0){for(var s={},u=!1,l=0;l0?r.delayAnimation(o).play().promise().then(m):m()}).then(function(){return r.animation({style:s,duration:a,easing:r.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){t.removeBypasses(r,i),r.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(r,i),r.emitAndNotify("style"),n.transitioning=!1)};Bs.checkTrigger=function(r,e,t,n,i,a){var o=this.properties[e],s=i(o);r.removed()||s!=null&&s(t,n,r)&&a(o)};Bs.checkZOrderTrigger=function(r,e,t,n){var i=this;this.checkTrigger(r,e,t,n,function(a){return a.triggersZOrder},function(){i._private.cy.notify("zorder",r)})};Bs.checkBoundsTrigger=function(r,e,t,n){this.checkTrigger(r,e,t,n,function(i){return i.triggersBounds},function(i){r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache()})};Bs.checkConnectedEdgesBoundsTrigger=function(r,e,t,n){this.checkTrigger(r,e,t,n,function(i){return i.triggersBoundsOfConnectedEdges},function(i){r.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};Bs.checkParallelEdgesBoundsTrigger=function(r,e,t,n){this.checkTrigger(r,e,t,n,function(i){return i.triggersBoundsOfParallelEdges},function(i){r.parallelEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};Bs.checkTriggers=function(r,e,t,n){r.dirtyStyleCache(),this.checkZOrderTrigger(r,e,t,n),this.checkBoundsTrigger(r,e,t,n),this.checkConnectedEdgesBoundsTrigger(r,e,t,n),this.checkParallelEdgesBoundsTrigger(r,e,t,n)};var Q1={};Q1.applyBypass=function(r,e,t,n){var i=this,a=[],o=!0;if(e==="*"||e==="**"){if(t!==void 0)for(var s=0;si.length?n=n.substr(i.length):n=""}function u(){a.length>o.length?a=a.substr(o.length):a=""}for(;;){var l=n.match(/^\s*$/);if(l)break;var c=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!c){Ai("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}i=c[0];var f=c[1];if(f!=="core"){var d=new Dp(f);if(d.invalid){Ai("Skipping parsing of block: Invalid selector found in string stylesheet: "+f),s();continue}}var h=c[2],p=!1;a=h;for(var g=[];;){var y=a.match(/^\s*$/);if(y)break;var b=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!b){Ai("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+h),p=!0;break}o=b[0];var _=b[1],m=b[2],x=e.properties[_];if(!x){Ai("Skipping property: Invalid property name in: "+o),u();continue}var E=t.parse(_,m);if(!E){Ai("Skipping property: Invalid property definition in: "+o),u();continue}g.push({name:_,val:m}),u()}if(p){s();break}t.selector(f);for(var O=0;O=7&&e[0]==="d"&&(c=new RegExp(s.data.regex).exec(e))){if(t)return!1;var d=s.data;return{name:r,value:c,strValue:""+e,mapped:d,field:c[1],bypass:t}}else if(e.length>=10&&e[0]==="m"&&(f=new RegExp(s.mapData.regex).exec(e))){if(t||l.multiple)return!1;var h=s.mapData;if(!(l.color||l.number))return!1;var p=this.parse(r,f[4]);if(!p||p.mapped)return!1;var g=this.parse(r,f[5]);if(!g||g.mapped)return!1;if(p.pfValue===g.pfValue||p.strValue===g.strValue)return Ai("`"+r+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+r+": "+p.strValue+"`"),this.parse(r,p.strValue);if(l.color){var y=p.value,b=g.value,_=y[0]===b[0]&&y[1]===b[1]&&y[2]===b[2]&&(y[3]===b[3]||(y[3]==null||y[3]===1)&&(b[3]==null||b[3]===1));if(_)return!1}return{name:r,value:f,strValue:""+e,mapped:h,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:p.value,valueMax:g.value,bypass:t}}}if(l.multiple&&n!=="multiple"){var m;if(u?m=e.split(/\s+/):ra(e)?m=e:m=[e],l.evenMultiple&&m.length%2!==0)return null;for(var x=[],E=[],O=[],S="",T=!1,P=0;P0?" ":"")+I.strValue}return l.validate&&!l.validate(x,E)?null:l.singleEnum&&T?x.length===1&&Ar(x[0])?{name:r,value:x[0],strValue:x[0],bypass:t}:null:{name:r,value:x,pfValue:O,strValue:S,bypass:t,units:E}}var k=function(){for(var fe=0;fel.max||l.strictMax&&e===l.max))return null;var H={name:r,value:e,strValue:""+e+(L||""),units:L,bypass:t};return l.unitless||L!=="px"&&L!=="em"?H.pfValue=e:H.pfValue=L==="px"||!L?e:this.getEmSizeInPixels()*e,(L==="ms"||L==="s")&&(H.pfValue=L==="ms"?e:1e3*e),(L==="deg"||L==="rad")&&(H.pfValue=L==="rad"?e:EK(e)),L==="%"&&(H.pfValue=e/100),H}else if(l.propList){var q=[],W=""+e;if(W!=="none"){for(var $=W.split(/\s*,\s*|\s+/),J=0;J<$.length;J++){var X=$[J].trim();i.properties[X]?q.push(X):Ai("`"+X+"` is not a valid property name")}if(q.length===0)return null}return{name:r,value:q,strValue:q.length===0?"none":q.join(" "),bypass:t}}else if(l.color){var Z=eF(e);return Z?{name:r,value:Z,pfValue:Z,strValue:"rgb("+Z[0]+","+Z[1]+","+Z[2]+")",bypass:t}:null}else if(l.regex||l.regexes){if(l.enums){var ue=k();if(ue)return ue}for(var re=l.regexes?l.regexes:[l.regex],ne=0;ne0&&s>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){u=Math.min((o-2*t)/n.w,(s-2*t)/n.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,n=t.pan,i=t.zoom,a,o,s=!1;if(t.zoomingEnabled||(s=!0),Ht(e)?o=e:ai(e)&&(o=e.level,e.position!=null?a=P2(e.position,i,n):e.renderedPosition!=null&&(a=e.renderedPosition),a!=null&&!t.panningEnabled&&(s=!0)),o=o>t.maxZoom?t.maxZoom:o,o=ot.maxZoom||!t.zoomingEnabled?o=!0:(t.zoom=u,a.push("zoom"))}if(i&&(!o||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;Ht(l.x)&&(t.pan.x=l.x,s=!1),Ht(l.y)&&(t.pan.y=l.y,s=!1),s||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(Ar(e)){var n=e;e=this.mutableElements().filter(n)}else rf(e)||(e=this.mutableElements());if(e.length!==0){var i=e.boundingBox(),a=this.width(),o=this.height();t=t===void 0?this._private.zoom:t;var s={x:(a-t*(i.x1+i.x2))/2,y:(o-t*(i.y1+i.y2))/2};return s}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,n=this;return e.sizeCache=e.sizeCache||(t?(function(){var i=n.window().getComputedStyle(t),a=function(s){return parseFloat(i.getPropertyValue(s))};return{width:t.clientWidth-a("padding-left")-a("padding-right"),height:t.clientHeight-a("padding-top")-a("padding-bottom")}})():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};Xg.centre=Xg.center;Xg.autolockNodes=Xg.autolock;Xg.autoungrabifyNodes=Xg.autoungrabify;var E1={data:Ci.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Ci.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Ci.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Ci.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};E1.attr=E1.data;E1.removeAttr=E1.removeData;var S1=function(e){var t=this;e=kr({},e);var n=e.container;n&&!Px(n)&&Px(n[0])&&(n=n[0]);var i=n?n._cyreg:null;i=i||{},i&&i.cy&&(i.cy.destroy(),i={});var a=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=t;var o=us!==void 0&&n!==void 0&&!e.headless,s=e;s.layout=kr({name:o?"grid":"null"},s.layout),s.renderer=kr({name:o?"canvas":"null"},s.renderer);var u=function(p,g,y){return g!==void 0?g:y!==void 0?y:p},l=this._private={container:n,ready:!1,options:s,elements:new lu(this),listeners:[],aniEles:new lu(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,s.zoomingEnabled),userZoomingEnabled:u(!0,s.userZoomingEnabled),panningEnabled:u(!0,s.panningEnabled),userPanningEnabled:u(!0,s.userPanningEnabled),boxSelectionEnabled:u(!0,s.boxSelectionEnabled),autolock:u(!1,s.autolock,s.autolockNodes),autoungrabify:u(!1,s.autoungrabify,s.autoungrabifyNodes),autounselectify:u(!1,s.autounselectify),styleEnabled:s.styleEnabled===void 0?o:s.styleEnabled,zoom:Ht(s.zoom)?s.zoom:1,pan:{x:ai(s.pan)&&Ht(s.pan.x)?s.pan.x:0,y:ai(s.pan)&&Ht(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,s.multiClickDebounceTime)};this.createEmitter(),this.selectionType(s.selectionType),this.zoomRange({min:s.minZoom,max:s.maxZoom});var c=function(p,g){var y=p.some(y$);if(y)return Km.all(p).then(g);g(p)};l.styleEnabled&&t.setStyle([]);var f=kr({},s,s.renderer);t.initRenderer(f);var d=function(p,g,y){t.notifications(!1);var b=t.mutableElements();b.length>0&&b.remove(),p!=null&&(ai(p)||ra(p))&&t.add(p),t.one("layoutready",function(m){t.notifications(!0),t.emit(m),t.one("load",g),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",y),t.emit("done")});var _=kr({},t._private.options.layout);_.eles=t.elements(),t.layout(_).run()};c([s.style,s.elements],function(h){var p=h[0],g=h[1];l.styleEnabled&&t.style().append(p),d(g,function(){t.startAnimationLoop(),l.ready=!0,Ya(s.ready)&&t.on("ready",s.ready);for(var y=0;y0,s=!!r.boundingBox,u=ql(s?r.boundingBox:structuredClone(e.extent())),l;if(rf(r.roots))l=r.roots;else if(ra(r.roots)){for(var c=[],f=0;f0;){var j=B(),z=P(j,k);if(z)j.outgoers().filter(function(Q){return Q.isNode()&&t.has(Q)}).forEach(L);else if(z===null){Ai("Detected double maximal shift for node `"+j.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var H=0;if(r.avoidOverlap)for(var q=0;q0&&b[0].length<=3?Ie/2:0),ot=2*Math.PI/b[Ee].length*Me;return Ee===0&&b[0].length===1&&(Ye=1),{x:ge.x+Ye*Math.cos(ot),y:ge.y+Ye*Math.sin(ot)}}else{var mt=b[Ee].length,wt=Math.max(mt===1?0:s?(u.w-r.padding*2-Oe.w)/((r.grid?De:mt)-1):(u.w-r.padding*2-Oe.w)/((r.grid?De:mt)+1),H),Mt={x:ge.x+(Me+1-(mt+1)/2)*wt,y:ge.y+(Ee+1-(ne+1)/2)*ke};return Mt}},Ce={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(Ce).indexOf(r.direction)===-1&&Ia("Invalid direction '".concat(r.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Ce).join(", ")));var Y=function(ie){return W$(Ne(ie),u,Ce[r.direction])};return t.nodes().layoutPositions(this,r,Y),this};var MJ={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function JF(r){this.options=kr({},MJ,r)}JF.prototype.run=function(){var r=this.options,e=r,t=r.cy,n=e.eles,i=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var o=ql(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=e.sweep===void 0?2*Math.PI-2*Math.PI/a.length:e.sweep,l=u/Math.max(1,a.length-1),c,f=0,d=0;d1&&e.avoidOverlap){f*=1.75;var b=Math.cos(l)-Math.cos(0),_=Math.sin(l)-Math.sin(0),m=Math.sqrt(f*f/(b*b+_*_));c=Math.max(m,c)}var x=function(O,S){var T=e.startAngle+S*l*(i?1:-1),P=c*Math.cos(T),I=c*Math.sin(T),k={x:s.x+P,y:s.y+I};return k};return n.nodes().layoutPositions(this,e,x),this};var DJ={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function eU(r){this.options=kr({},DJ,r)}eU.prototype.run=function(){for(var r=this.options,e=r,t=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=r.cy,i=e.eles,a=i.nodes().not(":parent"),o=ql(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=[],l=0,c=0;c0){var E=Math.abs(_[0].value-x.value);E>=y&&(_=[],b.push(_))}_.push(x)}var O=l+e.minNodeSpacing;if(!e.avoidOverlap){var S=b.length>0&&b[0].length>1,T=Math.min(o.w,o.h)/2-O,P=T/(b.length+S?1:0);O=Math.min(O,P)}for(var I=0,k=0;k1&&e.avoidOverlap){var z=Math.cos(j)-Math.cos(0),H=Math.sin(j)-Math.sin(0),q=Math.sqrt(O*O/(z*z+H*H));I=Math.max(q,I)}L.r=I,I+=O}if(e.equidistant){for(var W=0,$=0,J=0;J=r.numIter||(FJ(n,r),n.temperature=n.temperature*r.coolingFactor,n.temperature=r.animationThreshold&&a(),Mx(c)}};c()}else{for(;l;)l=o(u),u++;l3(n,r),s()}return this};q2.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};q2.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var IJ=function(e,t,n){for(var i=n.eles.edges(),a=n.eles.nodes(),o=ql(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),s={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:o.w,clientHeight:o.h,boundingBox:o},u=n.eles.components(),l={},c=0;c0){s.graphSet.push(T);for(var c=0;ci.count?0:i.graph},tU=function(e,t,n,i){var a=i.graphSet[n];if(-10)var f=i.nodeOverlap*c,d=Math.sqrt(s*s+u*u),h=f*s/d,p=f*u/d;else var g=Bx(e,s,u),y=Bx(t,-1*s,-1*u),b=y.x-g.x,_=y.y-g.y,m=b*b+_*_,d=Math.sqrt(m),f=(e.nodeRepulsion+t.nodeRepulsion)/m,h=f*b/d,p=f*_/d;e.isLocked||(e.offsetX-=h,e.offsetY-=p),t.isLocked||(t.offsetX+=h,t.offsetY+=p)}},qJ=function(e,t,n,i){if(n>0)var a=e.maxX-t.minX;else var a=t.maxX-e.minX;if(i>0)var o=e.maxY-t.minY;else var o=t.maxY-e.minY;return a>=0&&o>=0?Math.sqrt(a*a+o*o):0},Bx=function(e,t,n){var i=e.positionX,a=e.positionY,o=e.height||1,s=e.width||1,u=n/t,l=o/s,c={};return t===0&&0n?(c.x=i,c.y=a+o/2,c):0t&&-1*l<=u&&u<=l?(c.x=i-s/2,c.y=a-s*n/2/t,c):0=l)?(c.x=i+o*t/2/n,c.y=a+o/2,c):(0>n&&(u<=-1*l||u>=l)&&(c.x=i-o*t/2/n,c.y=a-o/2),c)},GJ=function(e,t){for(var n=0;nn){var y=t.gravity*h/g,b=t.gravity*p/g;d.offsetX+=y,d.offsetY+=b}}}}},HJ=function(e,t){var n=[],i=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;i<=a;){var o=n[i++],s=e.idToIndex[o],u=e.layoutNodes[s],l=u.children;if(0n)var a={x:n*e/i,y:n*t/i};else var a={x:e,y:t};return a},nU=function(e,t){var n=e.parentId;if(n!=null){var i=t.layoutNodes[t.idToIndex[n]],a=!1;if((i.maxX==null||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,a=!0),(i.minX==null||e.minX-i.padLefti.maxY)&&(i.maxY=e.maxY+i.padBottom,a=!0),(i.minY==null||e.minY-i.padTopb&&(p+=y+t.componentSpacing,h=0,g=0,y=0)}}},XJ={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function iU(r){this.options=kr({},XJ,r)}iU.prototype.run=function(){var r=this.options,e=r,t=r.cy,n=e.eles,i=n.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));var a=ql(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()});if(a.h===0||a.w===0)n.nodes().layoutPositions(this,e,function(ue){return{x:a.x1,y:a.y1}});else{var o=i.size(),s=Math.sqrt(o*a.h/a.w),u=Math.round(s),l=Math.round(a.w/a.h*s),c=function(re){if(re==null)return Math.min(u,l);var ne=Math.min(u,l);ne==u?u=re:l=re},f=function(re){if(re==null)return Math.max(u,l);var ne=Math.max(u,l);ne==u?u=re:l=re},d=e.rows,h=e.cols!=null?e.cols:e.columns;if(d!=null&&h!=null)u=d,l=h;else if(d!=null&&h==null)u=d,l=Math.ceil(o/u);else if(d==null&&h!=null)l=h,u=Math.ceil(o/l);else if(l*u>o){var p=c(),g=f();(p-1)*g>=o?c(p-1):(g-1)*p>=o&&f(g-1)}else for(;l*u=o?f(b+1):c(y+1)}var _=a.w/l,m=a.h/u;if(e.condense&&(_=0,m=0),e.avoidOverlap)for(var x=0;x=l&&(z=0,j++)},q={},W=0;W(z=jK(r,e,H[q],H[q+1],H[q+2],H[q+3])))return y(S,z),!0}else if(P.edgeType==="bezier"||P.edgeType==="multibezier"||P.edgeType==="self"||P.edgeType==="compound"){for(var H=P.allpts,q=0;q+5(z=LK(r,e,H[q],H[q+1],H[q+2],H[q+3],H[q+4],H[q+5])))return y(S,z),!0}for(var W=W||T.source,$=$||T.target,J=i.getArrowWidth(I,k),X=[{name:"source",x:P.arrowStartX,y:P.arrowStartY,angle:P.srcArrowAngle},{name:"target",x:P.arrowEndX,y:P.arrowEndY,angle:P.tgtArrowAngle},{name:"mid-source",x:P.midX,y:P.midY,angle:P.midsrcArrowAngle},{name:"mid-target",x:P.midX,y:P.midY,angle:P.midtgtArrowAngle}],q=0;q0&&(b(W),b($))}function m(S,T,P){return Tc(S,T,P)}function x(S,T){var P=S._private,I=d,k;T?k=T+"-":k="",S.boundingBox();var L=P.labelBounds[T||"main"],B=S.pstyle(k+"label").value,j=S.pstyle("text-events").strValue==="yes";if(!(!j||!B)){var z=m(P.rscratch,"labelX",T),H=m(P.rscratch,"labelY",T),q=m(P.rscratch,"labelAngle",T),W=S.pstyle(k+"text-margin-x").pfValue,$=S.pstyle(k+"text-margin-y").pfValue,J=L.x1-I-W,X=L.x2+I-W,Z=L.y1-I-$,ue=L.y2+I-$;if(q){var re=Math.cos(q),ne=Math.sin(q),le=function(Oe,ke){return Oe=Oe-z,ke=ke-H,{x:Oe*re-ke*ne+z,y:Oe*ne+ke*re+H}},ce=le(J,Z),pe=le(J,ue),fe=le(X,Z),se=le(X,ue),de=[ce.x+W,ce.y+$,fe.x+W,fe.y+$,se.x+W,se.y+$,pe.x+W,pe.y+$];if(Cc(r,e,de))return y(S),!0}else if(pp(L,r,e))return y(S),!0}}for(var E=o.length-1;E>=0;E--){var O=o[E];O.isNode()?b(O)||x(O):_(O)||x(O)||x(O,"source")||x(O,"target")}return s};ry.getAllInBox=function(r,e,t,n){var i=this.getCachedZSortedEles().interactive,a=this.cy.zoom(),o=2/a,s=[],u=Math.min(r,t),l=Math.max(r,t),c=Math.min(e,n),f=Math.max(e,n);r=u,t=l,e=c,n=f;var d=ql({x1:r,y1:e,x2:t,y2:n}),h=[{x:d.x1,y:d.y1},{x:d.x2,y:d.y1},{x:d.x2,y:d.y2},{x:d.x1,y:d.y2}],p=[[h[0],h[1]],[h[1],h[2]],[h[2],h[3]],[h[3],h[0]]];function g(Oe,ke,De){return Tc(Oe,ke,De)}function y(Oe,ke){var De=Oe._private,Ne=o,Ce="";Oe.boundingBox();var Y=De.labelBounds.main;if(!Y)return null;var Q=g(De.rscratch,"labelX",ke),ie=g(De.rscratch,"labelY",ke),we=g(De.rscratch,"labelAngle",ke),Ee=Oe.pstyle(Ce+"text-margin-x").pfValue,Me=Oe.pstyle(Ce+"text-margin-y").pfValue,Ie=Y.x1-Ne-Ee,Ye=Y.x2+Ne-Ee,ot=Y.y1-Ne-Me,mt=Y.y2+Ne-Me;if(we){var wt=Math.cos(we),Mt=Math.sin(we),Dt=function(tt,_e){return tt=tt-Q,_e=_e-ie,{x:tt*wt-_e*Mt+Q,y:tt*Mt+_e*wt+ie}};return[Dt(Ie,ot),Dt(Ye,ot),Dt(Ye,mt),Dt(Ie,mt)]}else return[{x:Ie,y:ot},{x:Ye,y:ot},{x:Ye,y:mt},{x:Ie,y:mt}]}function b(Oe,ke,De,Ne){function Ce(Y,Q,ie){return(ie.y-Y.y)*(Q.x-Y.x)>(Q.y-Y.y)*(ie.x-Y.x)}return Ce(Oe,De,Ne)!==Ce(ke,De,Ne)&&Ce(Oe,ke,De)!==Ce(Oe,ke,Ne)}for(var _=0;_0?-(Math.PI-e.ang):Math.PI+e.ang},eee=function(e,t,n,i,a){if(e!==v3?p3(t,e,ph):JJ(Df,ph),p3(t,n,Df),d3=ph.nx*Df.ny-ph.ny*Df.nx,h3=ph.nx*Df.nx-ph.ny*-Df.ny,tv=Math.asin(Math.max(-1,Math.min(1,d3))),Math.abs(tv)<1e-6){wM=t.x,xM=t.y,Ag=Jy=0;return}Ng=1,rx=!1,h3<0?tv<0?tv=Math.PI+tv:(tv=Math.PI-tv,Ng=-1,rx=!0):tv>0&&(Ng=-1,rx=!0),t.radius!==void 0?Jy=t.radius:Jy=i,Eg=tv/2,_w=Math.min(ph.len/2,Df.len/2),a?(sh=Math.abs(Math.cos(Eg)*Jy/Math.sin(Eg)),sh>_w?(sh=_w,Ag=Math.abs(sh*Math.sin(Eg)/Math.cos(Eg))):Ag=Jy):(sh=Math.min(_w,Jy),Ag=Math.abs(sh*Math.sin(Eg)/Math.cos(Eg))),EM=t.x+Df.nx*sh,SM=t.y+Df.ny*sh,wM=EM-Df.ny*Ag*Ng,xM=SM+Df.nx*Ag*Ng,uU=t.x+ph.nx*sh,lU=t.y+ph.ny*sh,v3=t};function cU(r,e){e.radius===0?r.lineTo(e.cx,e.cy):r.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function cD(r,e,t,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(eee(r,e,t,n,i),{cx:wM,cy:xM,radius:Ag,startX:uU,startY:lU,stopX:EM,stopY:SM,startAngle:ph.ang+Math.PI/2*Ng,endAngle:Df.ang-Math.PI/2*Ng,counterClockwise:rx})}var O1=.01,tee=Math.sqrt(2*O1),Qu={};Qu.findMidptPtsEtc=function(r,e){var t=e.posPts,n=e.intersectionPts,i=e.vectorNormInverse,a,o=r.pstyle("source-endpoint"),s=r.pstyle("target-endpoint"),u=o.units!=null&&s.units!=null,l=function(E,O,S,T){var P=T-O,I=S-E,k=Math.sqrt(I*I+P*P);return{x:-P/k,y:I/k}},c=r.pstyle("edge-distances").value;switch(c){case"node-position":a=t;break;case"intersection":a=n;break;case"endpoints":{if(u){var f=this.manualEndptToPx(r.source()[0],o),d=Uo(f,2),h=d[0],p=d[1],g=this.manualEndptToPx(r.target()[0],s),y=Uo(g,2),b=y[0],_=y[1],m={x1:h,y1:p,x2:b,y2:_};i=l(h,p,b,_),a=m}else Ai("Edge ".concat(r.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),a=n;break}}return{midptPts:a,vectorNormInverse:i}};Qu.findHaystackPoints=function(r){for(var e=0;e0?Math.max(_e-Ue,0):Math.min(_e+Ue,0)},B=L(I,T),j=L(k,P),z=!1;_===l?b=Math.abs(B)>Math.abs(j)?i:n:_===u||_===s?(b=n,z=!0):(_===a||_===o)&&(b=i,z=!0);var H=b===n,q=H?j:B,W=H?k:I,$=Z5(W),J=!1;!(z&&(x||O))&&(_===s&&W<0||_===u&&W>0||_===a&&W>0||_===o&&W<0)&&($*=-1,q=$*Math.abs(q),J=!0);var X;if(x){var Z=E<0?1+E:E;X=Z*q}else{var ue=E<0?q:0;X=ue+E*$}var re=function(_e){return Math.abs(_e)=Math.abs(q)},ne=re(X),le=re(Math.abs(q)-Math.abs(X)),ce=ne||le;if(ce&&!J)if(H){var pe=Math.abs(W)<=d/2,fe=Math.abs(I)<=h/2;if(pe){var se=(c.x1+c.x2)/2,de=c.y1,ge=c.y2;t.segpts=[se,de,se,ge]}else if(fe){var Oe=(c.y1+c.y2)/2,ke=c.x1,De=c.x2;t.segpts=[ke,Oe,De,Oe]}else t.segpts=[c.x1,c.y2]}else{var Ne=Math.abs(W)<=f/2,Ce=Math.abs(k)<=p/2;if(Ne){var Y=(c.y1+c.y2)/2,Q=c.x1,ie=c.x2;t.segpts=[Q,Y,ie,Y]}else if(Ce){var we=(c.x1+c.x2)/2,Ee=c.y1,Me=c.y2;t.segpts=[we,Ee,we,Me]}else t.segpts=[c.x2,c.y1]}else if(H){var Ie=c.y1+X+(y?d/2*$:0),Ye=c.x1,ot=c.x2;t.segpts=[Ye,Ie,ot,Ie]}else{var mt=c.x1+X+(y?f/2*$:0),wt=c.y1,Mt=c.y2;t.segpts=[mt,wt,mt,Mt]}if(t.isRound){var Dt=r.pstyle("taxi-radius").value,vt=r.pstyle("radius-type").value[0]==="arc-radius";t.radii=new Array(t.segpts.length/2).fill(Dt),t.isArcRadius=new Array(t.segpts.length/2).fill(vt)}};Qu.tryToCorrectInvalidPoints=function(r,e){var t=r._private.rscratch;if(t.edgeType==="bezier"){var n=e.srcPos,i=e.tgtPos,a=e.srcW,o=e.srcH,s=e.tgtW,u=e.tgtH,l=e.srcShape,c=e.tgtShape,f=e.srcCornerRadius,d=e.tgtCornerRadius,h=e.srcRs,p=e.tgtRs,g=!Ht(t.startX)||!Ht(t.startY),y=!Ht(t.arrowStartX)||!Ht(t.arrowStartY),b=!Ht(t.endX)||!Ht(t.endY),_=!Ht(t.arrowEndX)||!Ht(t.arrowEndY),m=3,x=this.getArrowWidth(r.pstyle("width").pfValue,r.pstyle("arrow-scale").value)*this.arrowShapeWidth,E=m*x,O=Wg({x:t.ctrlpts[0],y:t.ctrlpts[1]},{x:t.startX,y:t.startY}),S=OW.poolIndex()){var $=q;q=W,W=$}var J=B.srcPos=q.position(),X=B.tgtPos=W.position(),Z=B.srcW=q.outerWidth(),ue=B.srcH=q.outerHeight(),re=B.tgtW=W.outerWidth(),ne=B.tgtH=W.outerHeight(),le=B.srcShape=t.nodeShapes[e.getNodeShape(q)],ce=B.tgtShape=t.nodeShapes[e.getNodeShape(W)],pe=B.srcCornerRadius=q.pstyle("corner-radius").value==="auto"?"auto":q.pstyle("corner-radius").pfValue,fe=B.tgtCornerRadius=W.pstyle("corner-radius").value==="auto"?"auto":W.pstyle("corner-radius").pfValue,se=B.tgtRs=W._private.rscratch,de=B.srcRs=q._private.rscratch;B.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var ge=0;ge=tee||(ot=Math.sqrt(Math.max(Ye*Ye,O1)+Math.max(Ie*Ie,O1)));var mt=B.vector={x:Ye,y:Ie},wt=B.vectorNorm={x:mt.x/ot,y:mt.y/ot},Mt={x:-wt.y,y:wt.x};B.nodesOverlap=!Ht(ot)||ce.checkPoint(Y[0],Y[1],0,re,ne,X.x,X.y,fe,se)||le.checkPoint(ie[0],ie[1],0,Z,ue,J.x,J.y,pe,de),B.vectorNormInverse=Mt,j={nodesOverlap:B.nodesOverlap,dirCounts:B.dirCounts,calculatedIntersection:!0,hasBezier:B.hasBezier,hasUnbundled:B.hasUnbundled,eles:B.eles,srcPos:X,srcRs:se,tgtPos:J,tgtRs:de,srcW:re,srcH:ne,tgtW:Z,tgtH:ue,srcIntn:we,tgtIntn:Q,srcShape:ce,tgtShape:le,posPts:{x1:Me.x2,y1:Me.y2,x2:Me.x1,y2:Me.y1},intersectionPts:{x1:Ee.x2,y1:Ee.y2,x2:Ee.x1,y2:Ee.y1},vector:{x:-mt.x,y:-mt.y},vectorNorm:{x:-wt.x,y:-wt.y},vectorNormInverse:{x:-Mt.x,y:-Mt.y}}}var Dt=Ce?j:B;ke.nodesOverlap=Dt.nodesOverlap,ke.srcIntn=Dt.srcIntn,ke.tgtIntn=Dt.tgtIntn,ke.isRound=De.startsWith("round"),i&&(q.isParent()||q.isChild()||W.isParent()||W.isChild())&&(q.parents().anySame(W)||W.parents().anySame(q)||q.same(W)&&q.isParent())?e.findCompoundLoopPoints(Oe,Dt,ge,Ne):q===W?e.findLoopPoints(Oe,Dt,ge,Ne):De.endsWith("segments")?e.findSegmentsPoints(Oe,Dt):De.endsWith("taxi")?e.findTaxiPoints(Oe,Dt):De==="straight"||!Ne&&B.eles.length%2===1&&ge===Math.floor(B.eles.length/2)?e.findStraightEdgePoints(Oe):e.findBezierPoints(Oe,Dt,ge,Ne,Ce),e.findEndpoints(Oe),e.tryToCorrectInvalidPoints(Oe,Dt),e.checkForInvalidEdgeWarning(Oe),e.storeAllpts(Oe),e.storeEdgeProjections(Oe),e.calculateArrowAngles(Oe),e.recalculateEdgeLabelProjections(Oe),e.calculateLabelAngles(Oe)}},S=0;S0){var Y=l,Q=Cg(Y,vm(o)),ie=Cg(Y,vm(Ce)),we=Q;if(ie2){var Ee=Cg(Y,{x:Ce[2],y:Ce[3]});Ee0){var Qe=c,Ze=Cg(Qe,vm(o)),nt=Cg(Qe,vm(Ue)),It=Ze;if(nt2){var ct=Cg(Qe,{x:Ue[2],y:Ue[3]});ct=p||S){y={cp:x,segment:O};break}}if(y)break}var T=y.cp,P=y.segment,I=(p-b)/P.length,k=P.t1-P.t0,L=h?P.t0+k*I:P.t1-k*I;L=b1(0,L,1),e=wm(T.p0,T.p1,T.p2,L),d=nee(T.p0,T.p1,T.p2,L);break}case"straight":case"segments":case"haystack":{for(var B=0,j,z,H,q,W=n.allpts.length,$=0;$+3=p));$+=2);var J=p-z,X=J/j;X=b1(0,X,1),e=OK(H,q,X),d=hU(H,q);break}}o("labelX",f,e.x),o("labelY",f,e.y),o("labelAutoAngle",f,d)}};l("source"),l("target"),this.applyLabelDimensions(r)}};Oh.applyLabelDimensions=function(r){this.applyPrefixedLabelDimensions(r),r.isEdge()&&(this.applyPrefixedLabelDimensions(r,"source"),this.applyPrefixedLabelDimensions(r,"target"))};Oh.applyPrefixedLabelDimensions=function(r,e){var t=r._private,n=this.getLabelText(r,e),i=Hg(n,r._private.labelDimsKey);if(Tc(t.rscratch,"prefixedLabelDimsKey",e)!==i){ov(t.rscratch,"prefixedLabelDimsKey",e,i);var a=this.calculateLabelDimensions(r,n),o=r.pstyle("line-height").pfValue,s=r.pstyle("text-wrap").strValue,u=Tc(t.rscratch,"labelWrapCachedLines",e)||[],l=s!=="wrap"?1:Math.max(u.length,1),c=a.height/l,f=c*o,d=a.width,h=a.height+(l-1)*(o-1)*c;ov(t.rstyle,"labelWidth",e,d),ov(t.rscratch,"labelWidth",e,d),ov(t.rstyle,"labelHeight",e,h),ov(t.rscratch,"labelHeight",e,h),ov(t.rscratch,"labelLineHeight",e,f)}};Oh.getLabelText=function(r,e){var t=r._private,n=e?e+"-":"",i=r.pstyle(n+"label").strValue,a=r.pstyle("text-transform").value,o=function(ue,re){return re?(ov(t.rscratch,ue,e,re),re):Tc(t.rscratch,ue,e)};if(!i)return"";a=="none"||(a=="uppercase"?i=i.toUpperCase():a=="lowercase"&&(i=i.toLowerCase()));var s=r.pstyle("text-wrap").value;if(s==="wrap"){var u=o("labelKey");if(u!=null&&o("labelWrapKey")===u)return o("labelWrapCachedText");for(var l="​",c=i.split(` +*/var GF=function(e,t){this.recycle(e,t)};function V0(){return!1}function yw(){return!0}GF.prototype={instanceString:function(){return"event"},recycle:function(e,t){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=V0,e!=null&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?yw:V0):e!=null&&e.type?t=e:this.type=e,t!=null&&(this.originalEvent=t.originalEvent,this.type=t.type!=null?t.type:this.type,this.cy=t.cy,this.target=t.target,this.position=t.position,this.renderedPosition=t.renderedPosition,this.namespace=t.namespace,this.layout=t.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var n=this.position,i=this.cy.zoom(),a=this.cy.pan();this.renderedPosition={x:n.x*i+a.x,y:n.y*i+a.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=yw;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=yw;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=yw,this.stopPropagation()},isDefaultPrevented:V0,isPropagationStopped:V0,isImmediatePropagationStopped:V0};var VF=/^([^.]+)(\.(?:[^.]+))?$/,oJ=".*",HF={qualifierCompare:function(e,t){return e===t},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},KN=Object.keys(HF),sJ={};function j2(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sJ,e=arguments.length>1?arguments[1]:void 0,t=0;t=0;s--)o(s);return this};Ip.removeAllListeners=function(){return this.removeListener("*")};Ip.emit=Ip.trigger=function(r,e,t){var n=this.listeners,i=n.length;return this.emitting++,ra(e)||(e=[e]),uJ(this,function(a,o){t!=null&&(n=[{event:o.event,type:o.type,namespace:o.namespace,callback:t}],i=n.length);for(var s=function(){var c=n[u];if(c.type===o.type&&(!c.namespace||c.namespace===o.namespace||c.namespace===oJ)&&a.eventMatches(a.context,c,o)){var f=[o];e!=null&&Q$(f,e),a.beforeEmit(a.context,c,o),c.conf&&c.conf.one&&(a.listeners=a.listeners.filter(function(p){return p!==c}));var d=a.callbackContext(a.context,c,o),h=c.callback.apply(d,f);a.afterEmit(a.context,c,o),h===!1&&(o.stopPropagation(),o.preventDefault())}},u=0;u1&&!o){var s=this.length-1,u=this[s],l=u._private.data.id;this[s]=void 0,this[e]=u,a.set(l,{ele:u,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,i=t.map,a=i.get(n);if(!a)return this;var o=a.index;return this.unmergeAt(o),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&Ar(e)){var n=e;e=t.mutableElements().filter(n)}for(var i=0;i=0;t--){var n=this[t];e(n)&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],i=this,a=0;an&&(n=u,i=s)}return{value:n,ele:i}},min:function(e,t){for(var n=1/0,i,a=this,o=0;o=0&&a"u"?"undefined":cs(Symbol))!=e&&cs(Symbol.iterator)!=e;t&&(Lx[Symbol.iterator]=function(){var n=this,i={value:void 0,done:!1},a=0,o=this.length;return Y7({next:function(){return a1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],i=n.cy();if(i.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,i.style().apply(n));var a=n._private.style[e];return a??(t?i.style().getDefaultProperty(e):null)}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return n.pfValue!==void 0?n.pfValue:n.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var i=!1,a=n.style();if(ai(e)){var o=e;a.applyBypass(this,o,i),this.emitAndNotify("style")}else if(Ar(e))if(t===void 0){var s=this[0];return s?a.getStylePropertyValue(s,e):void 0}else a.applyBypass(this,e,t,i),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?a.getRawStyle(u):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,i=t.style(),a=this;if(e===void 0)for(var o=0;o0&&e.push(c[0]),e.push(s[0])}return this.spawn(e,!0).filter(r)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});Ku.neighbourhood=Ku.neighborhood;Ku.closedNeighbourhood=Ku.closedNeighborhood;Ku.openNeighbourhood=Ku.openNeighborhood;kr(Ku,{source:jf(function(e){var t=this[0],n;return t&&(n=t._private.source||t.cy().collection()),n&&e?n.filter(e):n},"source"),target:jf(function(e){var t=this[0],n;return t&&(n=t._private.target||t.cy().collection()),n&&e?n.filter(e):n},"target"),sources:r3({attr:"source"}),targets:r3({attr:"target"})});function r3(r){return function(t){for(var n=[],i=0;i0);return o},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});Ku.componentsOf=Ku.components;var lu=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){Ia("A collection must have a reference to the core");return}var a=new sv,o=!1;if(!t)t=[];else if(t.length>0&&ai(t[0])&&!H1(t[0])){o=!0;for(var s=[],u=new $m,l=0,c=t.length;l0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,n=t.cy(),i=n._private,a=[],o=[],s,u=0,l=t.length;u0){for(var $=s.length===t.length?t:new lu(n,s),J=0;J<$.length;J++){var X=$[J];X.isNode()||(X.parallelEdges().clearTraversalCache(),X.source().clearTraversalCache(),X.target().clearTraversalCache())}var Z;i.hasCompoundNodes?Z=n.collection().merge($).merge($.connectedNodes()).merge($.parent()):Z=$,Z.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(r),r?$.emitAndNotify("add"):e&&$.emit("add")}return t};va.removed=function(){var r=this[0];return r&&r._private.removed};va.inside=function(){var r=this[0];return r&&!r._private.removed};va.remove=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,n=[],i={},a=t._private.cy;function o(j){for(var z=j._private.edges,H=0;H0&&(r?k.emitAndNotify("remove"):e&&k.emit("remove"));for(var L=0;L0?L=j:k=j;while(Math.abs(B)>o&&++z=a?_(I,z):H===0?z:x(I,k,k+l)}var O=!1;function S(){O=!0,(r!==e||t!==n)&&m()}var T=function(k){return O||S(),r===e&&t===n?k:k===0?0:k===1?1:y(E(k),e,n)};T.getControlPoints=function(){return[{x:r,y:e},{x:t,y:n}]};var P="generateBezier("+[r,e,t,n]+")";return T.toString=function(){return P},T}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var bJ=(function(){function r(n){return-n.tension*n.x-n.friction*n.v}function e(n,i,a){var o={x:n.x+a.dx*i,v:n.v+a.dv*i,tension:n.tension,friction:n.friction};return{dx:o.v,dv:r(o)}}function t(n,i){var a={dx:n.v,dv:r(n)},o=e(n,i*.5,a),s=e(n,i*.5,o),u=e(n,i,s),l=1/6*(a.dx+2*(o.dx+s.dx)+u.dx),c=1/6*(a.dv+2*(o.dv+s.dv)+u.dv);return n.x=n.x+l*i,n.v=n.v+c*i,n}return function n(i,a,o){var s={x:-1,v:0,tension:null,friction:null},u=[0],l=0,c=1/1e4,f=16/1e3,d,h,p;for(i=parseFloat(i)||500,a=parseFloat(a)||20,o=o||null,s.tension=i,s.friction=a,d=o!==null,d?(l=n(i,a),h=l/o*f):h=f;p=t(p||s,h),u.push(1+p.x),l+=16,Math.abs(p.x)>c&&Math.abs(p.v)>c;);return d?function(g){return u[g*(u.length-1)|0]}:l}})(),fa=function(e,t,n,i){var a=mJ(e,t,n,i);return function(o,s,u){return o+(s-o)*a(u)}},Jw={linear:function(e,t,n){return e+(t-e)*n},ease:fa(.25,.1,.25,1),"ease-in":fa(.42,0,1,1),"ease-out":fa(0,0,.58,1),"ease-in-out":fa(.42,0,.58,1),"ease-in-sine":fa(.47,0,.745,.715),"ease-out-sine":fa(.39,.575,.565,1),"ease-in-out-sine":fa(.445,.05,.55,.95),"ease-in-quad":fa(.55,.085,.68,.53),"ease-out-quad":fa(.25,.46,.45,.94),"ease-in-out-quad":fa(.455,.03,.515,.955),"ease-in-cubic":fa(.55,.055,.675,.19),"ease-out-cubic":fa(.215,.61,.355,1),"ease-in-out-cubic":fa(.645,.045,.355,1),"ease-in-quart":fa(.895,.03,.685,.22),"ease-out-quart":fa(.165,.84,.44,1),"ease-in-out-quart":fa(.77,0,.175,1),"ease-in-quint":fa(.755,.05,.855,.06),"ease-out-quint":fa(.23,1,.32,1),"ease-in-out-quint":fa(.86,0,.07,1),"ease-in-expo":fa(.95,.05,.795,.035),"ease-out-expo":fa(.19,1,.22,1),"ease-in-out-expo":fa(1,0,0,1),"ease-in-circ":fa(.6,.04,.98,.335),"ease-out-circ":fa(.075,.82,.165,1),"ease-in-out-circ":fa(.785,.135,.15,.86),spring:function(e,t,n){if(n===0)return Jw.linear;var i=bJ(e,t,n);return function(a,o,s){return a+(o-a)*i(s)}},"cubic-bezier":fa};function a3(r,e,t,n,i){if(n===1||e===t)return t;var a=i(e,t,n);return r==null||((r.roundValue||r.color)&&(a=Math.round(a)),r.min!==void 0&&(a=Math.max(a,r.min)),r.max!==void 0&&(a=Math.min(a,r.max))),a}function o3(r,e){return r.pfValue!=null||r.value!=null?r.pfValue!=null&&(e==null||e.type.units!=="%")?r.pfValue:r.value:r}function Zy(r,e,t,n,i){var a=i!=null?i.type:null;t<0?t=0:t>1&&(t=1);var o=o3(r,i),s=o3(e,i);if(Ht(o)&&Ht(s))return a3(a,o,s,t,n);if(ra(o)&&ra(s)){for(var u=[],l=0;l0?(h==="spring"&&p.push(o.duration),o.easingImpl=Jw[h].apply(null,p)):o.easingImpl=Jw[h]}var g=o.easingImpl,y;if(o.duration===0?y=1:y=(t-u)/o.duration,o.applying&&(y=o.progress),y<0?y=0:y>1&&(y=1),o.delay==null){var b=o.startPosition,_=o.position;if(_&&i&&!r.locked()){var m={};H0(b.x,_.x)&&(m.x=Zy(b.x,_.x,y,g)),H0(b.y,_.y)&&(m.y=Zy(b.y,_.y,y,g)),r.position(m)}var x=o.startPan,E=o.pan,O=a.pan,S=E!=null&&n;S&&(H0(x.x,E.x)&&(O.x=Zy(x.x,E.x,y,g)),H0(x.y,E.y)&&(O.y=Zy(x.y,E.y,y,g)),r.emit("pan"));var T=o.startZoom,P=o.zoom,I=P!=null&&n;I&&(H0(T,P)&&(a.zoom=b1(a.minZoom,Zy(T,P,y,g),a.maxZoom)),r.emit("zoom")),(S||I)&&r.emit("viewport");var k=o.style;if(k&&k.length>0&&i){for(var L=0;L=0;S--){var T=O[S];T()}O.splice(0,O.length)},_=h.length-1;_>=0;_--){var m=h[_],x=m._private;if(x.stopped){h.splice(_,1),x.hooked=!1,x.playing=!1,x.started=!1,b(x.frames);continue}!x.playing&&!x.applying||(x.playing&&x.applying&&(x.applying=!1),x.started||wJ(c,m,r),_J(c,m,r,f),x.applying&&(x.applying=!1),b(x.frames),x.step!=null&&x.step(r),m.completed()&&(h.splice(_,1),x.hooked=!1,x.playing=!1,x.started=!1,b(x.completes)),g=!0)}return!f&&h.length===0&&p.length===0&&n.push(c),g}for(var a=!1,o=0;o0?e.notify("draw",t):e.notify("draw")),t.unmerge(n),e.emit("step")}var xJ={animate:Ci.animate(),animation:Ci.animation(),animated:Ci.animated(),clearQueue:Ci.clearQueue(),delay:Ci.delay(),delayAnimation:Ci.delayAnimation(),stop:Ci.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&Mx(function(a){s3(a,e),t()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(a,o){s3(o,e)},n.beforeRenderPriorities.animations):t()}},EJ={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,n){var i=t.qualifier;return i!=null?e!==n.target&&H1(n.target)&&i.matches(n.target):!0},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return t.qualifier!=null?n.target:e}},bw=function(e){return Ar(e)?new Dp(e):e},ZF={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new j2(EJ,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,bw(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,bw(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,bw(t),n),this},once:function(e,t,n){return this.emitter().one(e,bw(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};Ci.eventAliasesOn(ZF);var _M={png:function(e){var t=this._private.renderer;return e=e||{},t.png(e)},jpg:function(e){var t=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",t.jpg(e)}};_M.jpeg=_M.jpg;var ex={layout:function(e){var t=this;if(e==null){Ia("Layout options must be specified to make a layout");return}if(e.name==null){Ia("A `name` must be specified to make a layout");return}var n=e.name,i=t.extension("layout",n);if(i==null){Ia("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var a;Ar(e.eles)?a=t.$(e.eles):a=e.eles!=null?e.eles:t.$();var o=new i(kr({},e,{cy:t,eles:a}));return o}};ex.createLayout=ex.makeLayout=ex.layout;var SJ={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();t!=null&&i.merge(t);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var i=e.batchNotifications[n];i.empty()?t.notify(n):t.notify(n,i)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),i=0;i0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var i=n._private;i.rscratch={},i.rstyle={},i.animation.current=[],i.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};wM.invalidateDimensions=wM.resize;var tx={collection:function(e,t){return Ar(e)?this.$(e):rf(e)?e.collection():ra(e)?(t||(t={}),new lu(this,e,t.unique,t.removed)):new lu(this)},nodes:function(e){var t=this.$(function(n){return n.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(n){return n.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};tx.elements=tx.filter=tx.$;var Bs={},Mb="t",TJ="f";Bs.apply=function(r){for(var e=this,t=e._private,n=t.cy,i=n.collection(),a=0;a0;if(d||f&&h){var p=void 0;d&&h||d?p=l.properties:h&&(p=l.mappedProperties);for(var g=0;g1&&(x=1),s.color){var O=n.valueMin[0],S=n.valueMax[0],T=n.valueMin[1],P=n.valueMax[1],I=n.valueMin[2],k=n.valueMax[2],L=n.valueMin[3]==null?1:n.valueMin[3],B=n.valueMax[3]==null?1:n.valueMax[3],j=[Math.round(O+(S-O)*x),Math.round(T+(P-T)*x),Math.round(I+(k-I)*x),Math.round(L+(B-L)*x)];a={bypass:n.bypass,name:n.name,value:j,strValue:"rgb("+j[0]+", "+j[1]+", "+j[2]+")"}}else if(s.number){var z=n.valueMin+(n.valueMax-n.valueMin)*x;a=this.parse(n.name,z,n.bypass,d)}else return!1;if(!a)return g(),!1;a.mapping=n,n=a;break}case o.data:{for(var H=n.field.split("."),q=f.data,W=0;W0&&a>0){for(var s={},u=!1,l=0;l0?r.delayAnimation(o).play().promise().then(m):m()}).then(function(){return r.animation({style:s,duration:a,easing:r.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){t.removeBypasses(r,i),r.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(r,i),r.emitAndNotify("style"),n.transitioning=!1)};Bs.checkTrigger=function(r,e,t,n,i,a){var o=this.properties[e],s=i(o);r.removed()||s!=null&&s(t,n,r)&&a(o)};Bs.checkZOrderTrigger=function(r,e,t,n){var i=this;this.checkTrigger(r,e,t,n,function(a){return a.triggersZOrder},function(){i._private.cy.notify("zorder",r)})};Bs.checkBoundsTrigger=function(r,e,t,n){this.checkTrigger(r,e,t,n,function(i){return i.triggersBounds},function(i){r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache()})};Bs.checkConnectedEdgesBoundsTrigger=function(r,e,t,n){this.checkTrigger(r,e,t,n,function(i){return i.triggersBoundsOfConnectedEdges},function(i){r.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};Bs.checkParallelEdgesBoundsTrigger=function(r,e,t,n){this.checkTrigger(r,e,t,n,function(i){return i.triggersBoundsOfParallelEdges},function(i){r.parallelEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};Bs.checkTriggers=function(r,e,t,n){r.dirtyStyleCache(),this.checkZOrderTrigger(r,e,t,n),this.checkBoundsTrigger(r,e,t,n),this.checkConnectedEdgesBoundsTrigger(r,e,t,n),this.checkParallelEdgesBoundsTrigger(r,e,t,n)};var Q1={};Q1.applyBypass=function(r,e,t,n){var i=this,a=[],o=!0;if(e==="*"||e==="**"){if(t!==void 0)for(var s=0;si.length?n=n.substr(i.length):n=""}function u(){a.length>o.length?a=a.substr(o.length):a=""}for(;;){var l=n.match(/^\s*$/);if(l)break;var c=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!c){Ai("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}i=c[0];var f=c[1];if(f!=="core"){var d=new Dp(f);if(d.invalid){Ai("Skipping parsing of block: Invalid selector found in string stylesheet: "+f),s();continue}}var h=c[2],p=!1;a=h;for(var g=[];;){var y=a.match(/^\s*$/);if(y)break;var b=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!b){Ai("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+h),p=!0;break}o=b[0];var _=b[1],m=b[2],x=e.properties[_];if(!x){Ai("Skipping property: Invalid property name in: "+o),u();continue}var E=t.parse(_,m);if(!E){Ai("Skipping property: Invalid property definition in: "+o),u();continue}g.push({name:_,val:m}),u()}if(p){s();break}t.selector(f);for(var O=0;O=7&&e[0]==="d"&&(c=new RegExp(s.data.regex).exec(e))){if(t)return!1;var d=s.data;return{name:r,value:c,strValue:""+e,mapped:d,field:c[1],bypass:t}}else if(e.length>=10&&e[0]==="m"&&(f=new RegExp(s.mapData.regex).exec(e))){if(t||l.multiple)return!1;var h=s.mapData;if(!(l.color||l.number))return!1;var p=this.parse(r,f[4]);if(!p||p.mapped)return!1;var g=this.parse(r,f[5]);if(!g||g.mapped)return!1;if(p.pfValue===g.pfValue||p.strValue===g.strValue)return Ai("`"+r+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+r+": "+p.strValue+"`"),this.parse(r,p.strValue);if(l.color){var y=p.value,b=g.value,_=y[0]===b[0]&&y[1]===b[1]&&y[2]===b[2]&&(y[3]===b[3]||(y[3]==null||y[3]===1)&&(b[3]==null||b[3]===1));if(_)return!1}return{name:r,value:f,strValue:""+e,mapped:h,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:p.value,valueMax:g.value,bypass:t}}}if(l.multiple&&n!=="multiple"){var m;if(u?m=e.split(/\s+/):ra(e)?m=e:m=[e],l.evenMultiple&&m.length%2!==0)return null;for(var x=[],E=[],O=[],S="",T=!1,P=0;P0?" ":"")+I.strValue}return l.validate&&!l.validate(x,E)?null:l.singleEnum&&T?x.length===1&&Ar(x[0])?{name:r,value:x[0],strValue:x[0],bypass:t}:null:{name:r,value:x,pfValue:O,strValue:S,bypass:t,units:E}}var k=function(){for(var fe=0;fel.max||l.strictMax&&e===l.max))return null;var H={name:r,value:e,strValue:""+e+(L||""),units:L,bypass:t};return l.unitless||L!=="px"&&L!=="em"?H.pfValue=e:H.pfValue=L==="px"||!L?e:this.getEmSizeInPixels()*e,(L==="ms"||L==="s")&&(H.pfValue=L==="ms"?e:1e3*e),(L==="deg"||L==="rad")&&(H.pfValue=L==="rad"?e:EK(e)),L==="%"&&(H.pfValue=e/100),H}else if(l.propList){var q=[],W=""+e;if(W!=="none"){for(var $=W.split(/\s*,\s*|\s+/),J=0;J<$.length;J++){var X=$[J].trim();i.properties[X]?q.push(X):Ai("`"+X+"` is not a valid property name")}if(q.length===0)return null}return{name:r,value:q,strValue:q.length===0?"none":q.join(" "),bypass:t}}else if(l.color){var Z=eF(e);return Z?{name:r,value:Z,pfValue:Z,strValue:"rgb("+Z[0]+","+Z[1]+","+Z[2]+")",bypass:t}:null}else if(l.regex||l.regexes){if(l.enums){var ue=k();if(ue)return ue}for(var re=l.regexes?l.regexes:[l.regex],ne=0;ne0&&s>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){u=Math.min((o-2*t)/n.w,(s-2*t)/n.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,n=t.pan,i=t.zoom,a,o,s=!1;if(t.zoomingEnabled||(s=!0),Ht(e)?o=e:ai(e)&&(o=e.level,e.position!=null?a=P2(e.position,i,n):e.renderedPosition!=null&&(a=e.renderedPosition),a!=null&&!t.panningEnabled&&(s=!0)),o=o>t.maxZoom?t.maxZoom:o,o=ot.maxZoom||!t.zoomingEnabled?o=!0:(t.zoom=u,a.push("zoom"))}if(i&&(!o||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;Ht(l.x)&&(t.pan.x=l.x,s=!1),Ht(l.y)&&(t.pan.y=l.y,s=!1),s||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(Ar(e)){var n=e;e=this.mutableElements().filter(n)}else rf(e)||(e=this.mutableElements());if(e.length!==0){var i=e.boundingBox(),a=this.width(),o=this.height();t=t===void 0?this._private.zoom:t;var s={x:(a-t*(i.x1+i.x2))/2,y:(o-t*(i.y1+i.y2))/2};return s}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,n=this;return e.sizeCache=e.sizeCache||(t?(function(){var i=n.window().getComputedStyle(t),a=function(s){return parseFloat(i.getPropertyValue(s))};return{width:t.clientWidth-a("padding-left")-a("padding-right"),height:t.clientHeight-a("padding-top")-a("padding-bottom")}})():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};Xg.centre=Xg.center;Xg.autolockNodes=Xg.autolock;Xg.autoungrabifyNodes=Xg.autoungrabify;var E1={data:Ci.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Ci.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Ci.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Ci.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};E1.attr=E1.data;E1.removeAttr=E1.removeData;var S1=function(e){var t=this;e=kr({},e);var n=e.container;n&&!Px(n)&&Px(n[0])&&(n=n[0]);var i=n?n._cyreg:null;i=i||{},i&&i.cy&&(i.cy.destroy(),i={});var a=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=t;var o=us!==void 0&&n!==void 0&&!e.headless,s=e;s.layout=kr({name:o?"grid":"null"},s.layout),s.renderer=kr({name:o?"canvas":"null"},s.renderer);var u=function(p,g,y){return g!==void 0?g:y!==void 0?y:p},l=this._private={container:n,ready:!1,options:s,elements:new lu(this),listeners:[],aniEles:new lu(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,s.zoomingEnabled),userZoomingEnabled:u(!0,s.userZoomingEnabled),panningEnabled:u(!0,s.panningEnabled),userPanningEnabled:u(!0,s.userPanningEnabled),boxSelectionEnabled:u(!0,s.boxSelectionEnabled),autolock:u(!1,s.autolock,s.autolockNodes),autoungrabify:u(!1,s.autoungrabify,s.autoungrabifyNodes),autounselectify:u(!1,s.autounselectify),styleEnabled:s.styleEnabled===void 0?o:s.styleEnabled,zoom:Ht(s.zoom)?s.zoom:1,pan:{x:ai(s.pan)&&Ht(s.pan.x)?s.pan.x:0,y:ai(s.pan)&&Ht(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,s.multiClickDebounceTime)};this.createEmitter(),this.selectionType(s.selectionType),this.zoomRange({min:s.minZoom,max:s.maxZoom});var c=function(p,g){var y=p.some(y$);if(y)return Km.all(p).then(g);g(p)};l.styleEnabled&&t.setStyle([]);var f=kr({},s,s.renderer);t.initRenderer(f);var d=function(p,g,y){t.notifications(!1);var b=t.mutableElements();b.length>0&&b.remove(),p!=null&&(ai(p)||ra(p))&&t.add(p),t.one("layoutready",function(m){t.notifications(!0),t.emit(m),t.one("load",g),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",y),t.emit("done")});var _=kr({},t._private.options.layout);_.eles=t.elements(),t.layout(_).run()};c([s.style,s.elements],function(h){var p=h[0],g=h[1];l.styleEnabled&&t.style().append(p),d(g,function(){t.startAnimationLoop(),l.ready=!0,Ya(s.ready)&&t.on("ready",s.ready);for(var y=0;y0,s=!!r.boundingBox,u=ql(s?r.boundingBox:structuredClone(e.extent())),l;if(rf(r.roots))l=r.roots;else if(ra(r.roots)){for(var c=[],f=0;f0;){var j=B(),z=P(j,k);if(z)j.outgoers().filter(function(Q){return Q.isNode()&&t.has(Q)}).forEach(L);else if(z===null){Ai("Detected double maximal shift for node `"+j.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var H=0;if(r.avoidOverlap)for(var q=0;q0&&b[0].length<=3?Ie/2:0),ot=2*Math.PI/b[Ee].length*Me;return Ee===0&&b[0].length===1&&(Ye=1),{x:ge.x+Ye*Math.cos(ot),y:ge.y+Ye*Math.sin(ot)}}else{var mt=b[Ee].length,wt=Math.max(mt===1?0:s?(u.w-r.padding*2-Oe.w)/((r.grid?De:mt)-1):(u.w-r.padding*2-Oe.w)/((r.grid?De:mt)+1),H),Mt={x:ge.x+(Me+1-(mt+1)/2)*wt,y:ge.y+(Ee+1-(ne+1)/2)*ke};return Mt}},Ce={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(Ce).indexOf(r.direction)===-1&&Ia("Invalid direction '".concat(r.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Ce).join(", ")));var Y=function(ie){return W$(Ne(ie),u,Ce[r.direction])};return t.nodes().layoutPositions(this,r,Y),this};var MJ={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function JF(r){this.options=kr({},MJ,r)}JF.prototype.run=function(){var r=this.options,e=r,t=r.cy,n=e.eles,i=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var o=ql(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=e.sweep===void 0?2*Math.PI-2*Math.PI/a.length:e.sweep,l=u/Math.max(1,a.length-1),c,f=0,d=0;d1&&e.avoidOverlap){f*=1.75;var b=Math.cos(l)-Math.cos(0),_=Math.sin(l)-Math.sin(0),m=Math.sqrt(f*f/(b*b+_*_));c=Math.max(m,c)}var x=function(O,S){var T=e.startAngle+S*l*(i?1:-1),P=c*Math.cos(T),I=c*Math.sin(T),k={x:s.x+P,y:s.y+I};return k};return n.nodes().layoutPositions(this,e,x),this};var DJ={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function eU(r){this.options=kr({},DJ,r)}eU.prototype.run=function(){for(var r=this.options,e=r,t=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=r.cy,i=e.eles,a=i.nodes().not(":parent"),o=ql(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=[],l=0,c=0;c0){var E=Math.abs(_[0].value-x.value);E>=y&&(_=[],b.push(_))}_.push(x)}var O=l+e.minNodeSpacing;if(!e.avoidOverlap){var S=b.length>0&&b[0].length>1,T=Math.min(o.w,o.h)/2-O,P=T/(b.length+S?1:0);O=Math.min(O,P)}for(var I=0,k=0;k1&&e.avoidOverlap){var z=Math.cos(j)-Math.cos(0),H=Math.sin(j)-Math.sin(0),q=Math.sqrt(O*O/(z*z+H*H));I=Math.max(q,I)}L.r=I,I+=O}if(e.equidistant){for(var W=0,$=0,J=0;J=r.numIter||(FJ(n,r),n.temperature=n.temperature*r.coolingFactor,n.temperature=r.animationThreshold&&a(),Mx(c)}};c()}else{for(;l;)l=o(u),u++;c3(n,r),s()}return this};q2.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};q2.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var IJ=function(e,t,n){for(var i=n.eles.edges(),a=n.eles.nodes(),o=ql(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),s={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:o.w,clientHeight:o.h,boundingBox:o},u=n.eles.components(),l={},c=0;c0){s.graphSet.push(T);for(var c=0;ci.count?0:i.graph},tU=function(e,t,n,i){var a=i.graphSet[n];if(-10)var f=i.nodeOverlap*c,d=Math.sqrt(s*s+u*u),h=f*s/d,p=f*u/d;else var g=Bx(e,s,u),y=Bx(t,-1*s,-1*u),b=y.x-g.x,_=y.y-g.y,m=b*b+_*_,d=Math.sqrt(m),f=(e.nodeRepulsion+t.nodeRepulsion)/m,h=f*b/d,p=f*_/d;e.isLocked||(e.offsetX-=h,e.offsetY-=p),t.isLocked||(t.offsetX+=h,t.offsetY+=p)}},qJ=function(e,t,n,i){if(n>0)var a=e.maxX-t.minX;else var a=t.maxX-e.minX;if(i>0)var o=e.maxY-t.minY;else var o=t.maxY-e.minY;return a>=0&&o>=0?Math.sqrt(a*a+o*o):0},Bx=function(e,t,n){var i=e.positionX,a=e.positionY,o=e.height||1,s=e.width||1,u=n/t,l=o/s,c={};return t===0&&0n?(c.x=i,c.y=a+o/2,c):0t&&-1*l<=u&&u<=l?(c.x=i-s/2,c.y=a-s*n/2/t,c):0=l)?(c.x=i+o*t/2/n,c.y=a+o/2,c):(0>n&&(u<=-1*l||u>=l)&&(c.x=i-o*t/2/n,c.y=a-o/2),c)},GJ=function(e,t){for(var n=0;nn){var y=t.gravity*h/g,b=t.gravity*p/g;d.offsetX+=y,d.offsetY+=b}}}}},HJ=function(e,t){var n=[],i=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;i<=a;){var o=n[i++],s=e.idToIndex[o],u=e.layoutNodes[s],l=u.children;if(0n)var a={x:n*e/i,y:n*t/i};else var a={x:e,y:t};return a},nU=function(e,t){var n=e.parentId;if(n!=null){var i=t.layoutNodes[t.idToIndex[n]],a=!1;if((i.maxX==null||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,a=!0),(i.minX==null||e.minX-i.padLefti.maxY)&&(i.maxY=e.maxY+i.padBottom,a=!0),(i.minY==null||e.minY-i.padTopb&&(p+=y+t.componentSpacing,h=0,g=0,y=0)}}},XJ={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function iU(r){this.options=kr({},XJ,r)}iU.prototype.run=function(){var r=this.options,e=r,t=r.cy,n=e.eles,i=n.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));var a=ql(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()});if(a.h===0||a.w===0)n.nodes().layoutPositions(this,e,function(ue){return{x:a.x1,y:a.y1}});else{var o=i.size(),s=Math.sqrt(o*a.h/a.w),u=Math.round(s),l=Math.round(a.w/a.h*s),c=function(re){if(re==null)return Math.min(u,l);var ne=Math.min(u,l);ne==u?u=re:l=re},f=function(re){if(re==null)return Math.max(u,l);var ne=Math.max(u,l);ne==u?u=re:l=re},d=e.rows,h=e.cols!=null?e.cols:e.columns;if(d!=null&&h!=null)u=d,l=h;else if(d!=null&&h==null)u=d,l=Math.ceil(o/u);else if(d==null&&h!=null)l=h,u=Math.ceil(o/l);else if(l*u>o){var p=c(),g=f();(p-1)*g>=o?c(p-1):(g-1)*p>=o&&f(g-1)}else for(;l*u=o?f(b+1):c(y+1)}var _=a.w/l,m=a.h/u;if(e.condense&&(_=0,m=0),e.avoidOverlap)for(var x=0;x=l&&(z=0,j++)},q={},W=0;W(z=jK(r,e,H[q],H[q+1],H[q+2],H[q+3])))return y(S,z),!0}else if(P.edgeType==="bezier"||P.edgeType==="multibezier"||P.edgeType==="self"||P.edgeType==="compound"){for(var H=P.allpts,q=0;q+5(z=LK(r,e,H[q],H[q+1],H[q+2],H[q+3],H[q+4],H[q+5])))return y(S,z),!0}for(var W=W||T.source,$=$||T.target,J=i.getArrowWidth(I,k),X=[{name:"source",x:P.arrowStartX,y:P.arrowStartY,angle:P.srcArrowAngle},{name:"target",x:P.arrowEndX,y:P.arrowEndY,angle:P.tgtArrowAngle},{name:"mid-source",x:P.midX,y:P.midY,angle:P.midsrcArrowAngle},{name:"mid-target",x:P.midX,y:P.midY,angle:P.midtgtArrowAngle}],q=0;q0&&(b(W),b($))}function m(S,T,P){return Tc(S,T,P)}function x(S,T){var P=S._private,I=d,k;T?k=T+"-":k="",S.boundingBox();var L=P.labelBounds[T||"main"],B=S.pstyle(k+"label").value,j=S.pstyle("text-events").strValue==="yes";if(!(!j||!B)){var z=m(P.rscratch,"labelX",T),H=m(P.rscratch,"labelY",T),q=m(P.rscratch,"labelAngle",T),W=S.pstyle(k+"text-margin-x").pfValue,$=S.pstyle(k+"text-margin-y").pfValue,J=L.x1-I-W,X=L.x2+I-W,Z=L.y1-I-$,ue=L.y2+I-$;if(q){var re=Math.cos(q),ne=Math.sin(q),le=function(Oe,ke){return Oe=Oe-z,ke=ke-H,{x:Oe*re-ke*ne+z,y:Oe*ne+ke*re+H}},ce=le(J,Z),pe=le(J,ue),fe=le(X,Z),se=le(X,ue),de=[ce.x+W,ce.y+$,fe.x+W,fe.y+$,se.x+W,se.y+$,pe.x+W,pe.y+$];if(Cc(r,e,de))return y(S),!0}else if(pp(L,r,e))return y(S),!0}}for(var E=o.length-1;E>=0;E--){var O=o[E];O.isNode()?b(O)||x(O):_(O)||x(O)||x(O,"source")||x(O,"target")}return s};ry.getAllInBox=function(r,e,t,n){var i=this.getCachedZSortedEles().interactive,a=this.cy.zoom(),o=2/a,s=[],u=Math.min(r,t),l=Math.max(r,t),c=Math.min(e,n),f=Math.max(e,n);r=u,t=l,e=c,n=f;var d=ql({x1:r,y1:e,x2:t,y2:n}),h=[{x:d.x1,y:d.y1},{x:d.x2,y:d.y1},{x:d.x2,y:d.y2},{x:d.x1,y:d.y2}],p=[[h[0],h[1]],[h[1],h[2]],[h[2],h[3]],[h[3],h[0]]];function g(Oe,ke,De){return Tc(Oe,ke,De)}function y(Oe,ke){var De=Oe._private,Ne=o,Ce="";Oe.boundingBox();var Y=De.labelBounds.main;if(!Y)return null;var Q=g(De.rscratch,"labelX",ke),ie=g(De.rscratch,"labelY",ke),we=g(De.rscratch,"labelAngle",ke),Ee=Oe.pstyle(Ce+"text-margin-x").pfValue,Me=Oe.pstyle(Ce+"text-margin-y").pfValue,Ie=Y.x1-Ne-Ee,Ye=Y.x2+Ne-Ee,ot=Y.y1-Ne-Me,mt=Y.y2+Ne-Me;if(we){var wt=Math.cos(we),Mt=Math.sin(we),Dt=function(tt,_e){return tt=tt-Q,_e=_e-ie,{x:tt*wt-_e*Mt+Q,y:tt*Mt+_e*wt+ie}};return[Dt(Ie,ot),Dt(Ye,ot),Dt(Ye,mt),Dt(Ie,mt)]}else return[{x:Ie,y:ot},{x:Ye,y:ot},{x:Ye,y:mt},{x:Ie,y:mt}]}function b(Oe,ke,De,Ne){function Ce(Y,Q,ie){return(ie.y-Y.y)*(Q.x-Y.x)>(Q.y-Y.y)*(ie.x-Y.x)}return Ce(Oe,De,Ne)!==Ce(ke,De,Ne)&&Ce(Oe,ke,De)!==Ce(Oe,ke,Ne)}for(var _=0;_0?-(Math.PI-e.ang):Math.PI+e.ang},eee=function(e,t,n,i,a){if(e!==p3?g3(t,e,ph):JJ(Df,ph),g3(t,n,Df),h3=ph.nx*Df.ny-ph.ny*Df.nx,v3=ph.nx*Df.nx-ph.ny*-Df.ny,tv=Math.asin(Math.max(-1,Math.min(1,h3))),Math.abs(tv)<1e-6){xM=t.x,EM=t.y,Ag=Jy=0;return}Ng=1,rx=!1,v3<0?tv<0?tv=Math.PI+tv:(tv=Math.PI-tv,Ng=-1,rx=!0):tv>0&&(Ng=-1,rx=!0),t.radius!==void 0?Jy=t.radius:Jy=i,Eg=tv/2,_w=Math.min(ph.len/2,Df.len/2),a?(sh=Math.abs(Math.cos(Eg)*Jy/Math.sin(Eg)),sh>_w?(sh=_w,Ag=Math.abs(sh*Math.sin(Eg)/Math.cos(Eg))):Ag=Jy):(sh=Math.min(_w,Jy),Ag=Math.abs(sh*Math.sin(Eg)/Math.cos(Eg))),SM=t.x+Df.nx*sh,OM=t.y+Df.ny*sh,xM=SM-Df.ny*Ag*Ng,EM=OM+Df.nx*Ag*Ng,uU=t.x+ph.nx*sh,lU=t.y+ph.ny*sh,p3=t};function cU(r,e){e.radius===0?r.lineTo(e.cx,e.cy):r.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function fD(r,e,t,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(eee(r,e,t,n,i),{cx:xM,cy:EM,radius:Ag,startX:uU,startY:lU,stopX:SM,stopY:OM,startAngle:ph.ang+Math.PI/2*Ng,endAngle:Df.ang-Math.PI/2*Ng,counterClockwise:rx})}var O1=.01,tee=Math.sqrt(2*O1),Qu={};Qu.findMidptPtsEtc=function(r,e){var t=e.posPts,n=e.intersectionPts,i=e.vectorNormInverse,a,o=r.pstyle("source-endpoint"),s=r.pstyle("target-endpoint"),u=o.units!=null&&s.units!=null,l=function(E,O,S,T){var P=T-O,I=S-E,k=Math.sqrt(I*I+P*P);return{x:-P/k,y:I/k}},c=r.pstyle("edge-distances").value;switch(c){case"node-position":a=t;break;case"intersection":a=n;break;case"endpoints":{if(u){var f=this.manualEndptToPx(r.source()[0],o),d=zo(f,2),h=d[0],p=d[1],g=this.manualEndptToPx(r.target()[0],s),y=zo(g,2),b=y[0],_=y[1],m={x1:h,y1:p,x2:b,y2:_};i=l(h,p,b,_),a=m}else Ai("Edge ".concat(r.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),a=n;break}}return{midptPts:a,vectorNormInverse:i}};Qu.findHaystackPoints=function(r){for(var e=0;e0?Math.max(_e-Ue,0):Math.min(_e+Ue,0)},B=L(I,T),j=L(k,P),z=!1;_===l?b=Math.abs(B)>Math.abs(j)?i:n:_===u||_===s?(b=n,z=!0):(_===a||_===o)&&(b=i,z=!0);var H=b===n,q=H?j:B,W=H?k:I,$=Q5(W),J=!1;!(z&&(x||O))&&(_===s&&W<0||_===u&&W>0||_===a&&W>0||_===o&&W<0)&&($*=-1,q=$*Math.abs(q),J=!0);var X;if(x){var Z=E<0?1+E:E;X=Z*q}else{var ue=E<0?q:0;X=ue+E*$}var re=function(_e){return Math.abs(_e)=Math.abs(q)},ne=re(X),le=re(Math.abs(q)-Math.abs(X)),ce=ne||le;if(ce&&!J)if(H){var pe=Math.abs(W)<=d/2,fe=Math.abs(I)<=h/2;if(pe){var se=(c.x1+c.x2)/2,de=c.y1,ge=c.y2;t.segpts=[se,de,se,ge]}else if(fe){var Oe=(c.y1+c.y2)/2,ke=c.x1,De=c.x2;t.segpts=[ke,Oe,De,Oe]}else t.segpts=[c.x1,c.y2]}else{var Ne=Math.abs(W)<=f/2,Ce=Math.abs(k)<=p/2;if(Ne){var Y=(c.y1+c.y2)/2,Q=c.x1,ie=c.x2;t.segpts=[Q,Y,ie,Y]}else if(Ce){var we=(c.x1+c.x2)/2,Ee=c.y1,Me=c.y2;t.segpts=[we,Ee,we,Me]}else t.segpts=[c.x2,c.y1]}else if(H){var Ie=c.y1+X+(y?d/2*$:0),Ye=c.x1,ot=c.x2;t.segpts=[Ye,Ie,ot,Ie]}else{var mt=c.x1+X+(y?f/2*$:0),wt=c.y1,Mt=c.y2;t.segpts=[mt,wt,mt,Mt]}if(t.isRound){var Dt=r.pstyle("taxi-radius").value,vt=r.pstyle("radius-type").value[0]==="arc-radius";t.radii=new Array(t.segpts.length/2).fill(Dt),t.isArcRadius=new Array(t.segpts.length/2).fill(vt)}};Qu.tryToCorrectInvalidPoints=function(r,e){var t=r._private.rscratch;if(t.edgeType==="bezier"){var n=e.srcPos,i=e.tgtPos,a=e.srcW,o=e.srcH,s=e.tgtW,u=e.tgtH,l=e.srcShape,c=e.tgtShape,f=e.srcCornerRadius,d=e.tgtCornerRadius,h=e.srcRs,p=e.tgtRs,g=!Ht(t.startX)||!Ht(t.startY),y=!Ht(t.arrowStartX)||!Ht(t.arrowStartY),b=!Ht(t.endX)||!Ht(t.endY),_=!Ht(t.arrowEndX)||!Ht(t.arrowEndY),m=3,x=this.getArrowWidth(r.pstyle("width").pfValue,r.pstyle("arrow-scale").value)*this.arrowShapeWidth,E=m*x,O=Wg({x:t.ctrlpts[0],y:t.ctrlpts[1]},{x:t.startX,y:t.startY}),S=OW.poolIndex()){var $=q;q=W,W=$}var J=B.srcPos=q.position(),X=B.tgtPos=W.position(),Z=B.srcW=q.outerWidth(),ue=B.srcH=q.outerHeight(),re=B.tgtW=W.outerWidth(),ne=B.tgtH=W.outerHeight(),le=B.srcShape=t.nodeShapes[e.getNodeShape(q)],ce=B.tgtShape=t.nodeShapes[e.getNodeShape(W)],pe=B.srcCornerRadius=q.pstyle("corner-radius").value==="auto"?"auto":q.pstyle("corner-radius").pfValue,fe=B.tgtCornerRadius=W.pstyle("corner-radius").value==="auto"?"auto":W.pstyle("corner-radius").pfValue,se=B.tgtRs=W._private.rscratch,de=B.srcRs=q._private.rscratch;B.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var ge=0;ge=tee||(ot=Math.sqrt(Math.max(Ye*Ye,O1)+Math.max(Ie*Ie,O1)));var mt=B.vector={x:Ye,y:Ie},wt=B.vectorNorm={x:mt.x/ot,y:mt.y/ot},Mt={x:-wt.y,y:wt.x};B.nodesOverlap=!Ht(ot)||ce.checkPoint(Y[0],Y[1],0,re,ne,X.x,X.y,fe,se)||le.checkPoint(ie[0],ie[1],0,Z,ue,J.x,J.y,pe,de),B.vectorNormInverse=Mt,j={nodesOverlap:B.nodesOverlap,dirCounts:B.dirCounts,calculatedIntersection:!0,hasBezier:B.hasBezier,hasUnbundled:B.hasUnbundled,eles:B.eles,srcPos:X,srcRs:se,tgtPos:J,tgtRs:de,srcW:re,srcH:ne,tgtW:Z,tgtH:ue,srcIntn:we,tgtIntn:Q,srcShape:ce,tgtShape:le,posPts:{x1:Me.x2,y1:Me.y2,x2:Me.x1,y2:Me.y1},intersectionPts:{x1:Ee.x2,y1:Ee.y2,x2:Ee.x1,y2:Ee.y1},vector:{x:-mt.x,y:-mt.y},vectorNorm:{x:-wt.x,y:-wt.y},vectorNormInverse:{x:-Mt.x,y:-Mt.y}}}var Dt=Ce?j:B;ke.nodesOverlap=Dt.nodesOverlap,ke.srcIntn=Dt.srcIntn,ke.tgtIntn=Dt.tgtIntn,ke.isRound=De.startsWith("round"),i&&(q.isParent()||q.isChild()||W.isParent()||W.isChild())&&(q.parents().anySame(W)||W.parents().anySame(q)||q.same(W)&&q.isParent())?e.findCompoundLoopPoints(Oe,Dt,ge,Ne):q===W?e.findLoopPoints(Oe,Dt,ge,Ne):De.endsWith("segments")?e.findSegmentsPoints(Oe,Dt):De.endsWith("taxi")?e.findTaxiPoints(Oe,Dt):De==="straight"||!Ne&&B.eles.length%2===1&&ge===Math.floor(B.eles.length/2)?e.findStraightEdgePoints(Oe):e.findBezierPoints(Oe,Dt,ge,Ne,Ce),e.findEndpoints(Oe),e.tryToCorrectInvalidPoints(Oe,Dt),e.checkForInvalidEdgeWarning(Oe),e.storeAllpts(Oe),e.storeEdgeProjections(Oe),e.calculateArrowAngles(Oe),e.recalculateEdgeLabelProjections(Oe),e.calculateLabelAngles(Oe)}},S=0;S0){var Y=l,Q=Cg(Y,vm(o)),ie=Cg(Y,vm(Ce)),we=Q;if(ie2){var Ee=Cg(Y,{x:Ce[2],y:Ce[3]});Ee0){var Qe=c,Ze=Cg(Qe,vm(o)),nt=Cg(Qe,vm(Ue)),It=Ze;if(nt2){var ct=Cg(Qe,{x:Ue[2],y:Ue[3]});ct=p||S){y={cp:x,segment:O};break}}if(y)break}var T=y.cp,P=y.segment,I=(p-b)/P.length,k=P.t1-P.t0,L=h?P.t0+k*I:P.t1-k*I;L=b1(0,L,1),e=wm(T.p0,T.p1,T.p2,L),d=nee(T.p0,T.p1,T.p2,L);break}case"straight":case"segments":case"haystack":{for(var B=0,j,z,H,q,W=n.allpts.length,$=0;$+3=p));$+=2);var J=p-z,X=J/j;X=b1(0,X,1),e=OK(H,q,X),d=hU(H,q);break}}o("labelX",f,e.x),o("labelY",f,e.y),o("labelAutoAngle",f,d)}};l("source"),l("target"),this.applyLabelDimensions(r)}};Oh.applyLabelDimensions=function(r){this.applyPrefixedLabelDimensions(r),r.isEdge()&&(this.applyPrefixedLabelDimensions(r,"source"),this.applyPrefixedLabelDimensions(r,"target"))};Oh.applyPrefixedLabelDimensions=function(r,e){var t=r._private,n=this.getLabelText(r,e),i=Hg(n,r._private.labelDimsKey);if(Tc(t.rscratch,"prefixedLabelDimsKey",e)!==i){ov(t.rscratch,"prefixedLabelDimsKey",e,i);var a=this.calculateLabelDimensions(r,n),o=r.pstyle("line-height").pfValue,s=r.pstyle("text-wrap").strValue,u=Tc(t.rscratch,"labelWrapCachedLines",e)||[],l=s!=="wrap"?1:Math.max(u.length,1),c=a.height/l,f=c*o,d=a.width,h=a.height+(l-1)*(o-1)*c;ov(t.rstyle,"labelWidth",e,d),ov(t.rscratch,"labelWidth",e,d),ov(t.rstyle,"labelHeight",e,h),ov(t.rscratch,"labelHeight",e,h),ov(t.rscratch,"labelLineHeight",e,f)}};Oh.getLabelText=function(r,e){var t=r._private,n=e?e+"-":"",i=r.pstyle(n+"label").strValue,a=r.pstyle("text-transform").value,o=function(ue,re){return re?(ov(t.rscratch,ue,e,re),re):Tc(t.rscratch,ue,e)};if(!i)return"";a=="none"||(a=="uppercase"?i=i.toUpperCase():a=="lowercase"&&(i=i.toLowerCase()));var s=r.pstyle("text-wrap").value;if(s==="wrap"){var u=o("labelKey");if(u!=null&&o("labelWrapKey")===u)return o("labelWrapCachedText");for(var l="​",c=i.split(` `),f=r.pstyle("text-max-width").pfValue,d=r.pstyle("text-overflow-wrap").value,h=d==="anywhere",p=[],g=/[\s\u200b]+|$/g,y=0;yf){var E=b.matchAll(g),O="",S=0,T=Ac(E),P;try{for(T.s();!(P=T.n()).done;){var I=P.value,k=I[0],L=b.substring(S,I.index);S=I.index+k.length;var B=O.length===0?L:O+L+k,j=this.calculateLabelDimensions(r,B),z=j.width;z<=f?O+=L+k:(O&&p.push(O),O=L+k)}}catch(Z){T.e(Z)}finally{T.f()}O.match(/^[\s\u200b]+$/)||p.push(O)}else p.push(b)}o("labelWrapCachedLines",p),i=o("labelWrapCachedText",p.join(` `)),o("labelWrapKey",u)}else if(s==="ellipsis"){var H=r.pstyle("text-max-width").pfValue,q="",W="…",$=!1;if(this.calculateLabelDimensions(r,i).widthH)break;q+=i[J],J===i.length-1&&($=!0)}return $||(q+=W),q}return i};Oh.getLabelJustification=function(r){var e=r.pstyle("text-justification").strValue,t=r.pstyle("text-halign").strValue;if(e==="auto")if(r.isNode())switch(t){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};Oh.calculateLabelDimensions=function(r,e){var t=this,n=t.cy.window(),i=n.document,a=0,o=r.pstyle("font-style").strValue,s=r.pstyle("font-size").pfValue,u=r.pstyle("font-family").strValue,l=r.pstyle("font-weight").strValue,c=this.labelCalcCanvas,f=this.labelCalcCanvasContext;if(!c){c=this.labelCalcCanvas=i.createElement("canvas"),f=this.labelCalcCanvasContext=c.getContext("2d");var d=c.style;d.position="absolute",d.left="-9999px",d.top="-9999px",d.zIndex="-1",d.visibility="hidden",d.pointerEvents="none"}f.font="".concat(o," ").concat(l," ").concat(s,"px ").concat(u);for(var h=0,p=0,g=e.split(` -`),y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(o),s)for(var u=0;u=r.desktopTapThreshold2}var un=a(_e);Vr&&(r.hoverData.tapholdCancelled=!0);var bn=function(){var Ir=r.hoverData.dragDelta=r.hoverData.dragDelta||[];Ir.length===0?(Ir.push(Rr[0]),Ir.push(Rr[1])):(Ir[0]+=Rr[0],Ir[1]+=Rr[1])};Qe=!0,i(Yt,["mousemove","vmousemove","tapdrag"],_e,{x:ct[0],y:ct[1]});var wn=function(Ir){return{originalEvent:_e,type:Ir,position:{x:ct[0],y:ct[1]}}},_n=function(){r.data.bgActivePosistion=void 0,r.hoverData.selecting||Ze.emit(wn("boxstart")),jt[4]=1,r.hoverData.selecting=!0,r.redrawHint("select",!0),r.redraw()};if(r.hoverData.which===3){if(Vr){var xn=wn("cxtdrag");Ut?Ut.emit(xn):Ze.emit(xn),r.hoverData.cxtDragged=!0,(!r.hoverData.cxtOver||Yt!==r.hoverData.cxtOver)&&(r.hoverData.cxtOver&&r.hoverData.cxtOver.emit(wn("cxtdragout")),r.hoverData.cxtOver=Yt,Yt&&Yt.emit(wn("cxtdragover")))}}else if(r.hoverData.dragging){if(Qe=!0,Ze.panningEnabled()&&Ze.userPanningEnabled()){var on;if(r.hoverData.justStartedPan){var Nn=r.hoverData.mdownPos;on={x:(ct[0]-Nn[0])*nt,y:(ct[1]-Nn[1])*nt},r.hoverData.justStartedPan=!1}else on={x:Rr[0]*nt,y:Rr[1]*nt};Ze.panBy(on),Ze.emit(wn("dragpan")),r.hoverData.dragged=!0}ct=r.projectIntoViewport(_e.clientX,_e.clientY)}else if(jt[4]==1&&(Ut==null||Ut.pannable())){if(Vr){if(!r.hoverData.dragging&&Ze.boxSelectionEnabled()&&(un||!Ze.panningEnabled()||!Ze.userPanningEnabled()))_n();else if(!r.hoverData.selecting&&Ze.panningEnabled()&&Ze.userPanningEnabled()){var fi=o(Ut,r.hoverData.downs);fi&&(r.hoverData.dragging=!0,r.hoverData.justStartedPan=!0,jt[4]=0,r.data.bgActivePosistion=vm(Lt),r.redrawHint("select",!0),r.redraw())}Ut&&Ut.pannable()&&Ut.active()&&Ut.unactivate()}}else{if(Ut&&Ut.pannable()&&Ut.active()&&Ut.unactivate(),(!Ut||!Ut.grabbed())&&Yt!=sr&&(sr&&i(sr,["mouseout","tapdragout"],_e,{x:ct[0],y:ct[1]}),Yt&&i(Yt,["mouseover","tapdragover"],_e,{x:ct[0],y:ct[1]}),r.hoverData.last=Yt),Ut)if(Vr){if(Ze.boxSelectionEnabled()&&un)Ut&&Ut.grabbed()&&(b(Xt),Ut.emit(wn("freeon")),Xt.emit(wn("free")),r.dragData.didDrag&&(Ut.emit(wn("dragfreeon")),Xt.emit(wn("dragfree")))),_n();else if(Ut&&Ut.grabbed()&&r.nodeIsDraggable(Ut)){var gn=!r.dragData.didDrag;gn&&r.redrawHint("eles",!0),r.dragData.didDrag=!0,r.hoverData.draggingEles||g(Xt,{inDragLayer:!0});var yn={x:0,y:0};if(Ht(Rr[0])&&Ht(Rr[1])&&(yn.x+=Rr[0],yn.y+=Rr[1],gn)){var Jn=r.hoverData.dragDelta;Jn&&Ht(Jn[0])&&Ht(Jn[1])&&(yn.x+=Jn[0],yn.y+=Jn[1])}r.hoverData.draggingEles=!0,Xt.silentShift(yn).emit(wn("position")).emit(wn("drag")),r.redrawHint("drag",!0),r.redraw()}}else bn();Qe=!0}if(jt[2]=ct[0],jt[3]=ct[1],Qe)return _e.stopPropagation&&_e.stopPropagation(),_e.preventDefault&&_e.preventDefault(),!1}},!1);var L,B,j;r.registerBinding(e,"mouseup",function(_e){if(!(r.hoverData.which===1&&_e.which!==1&&r.hoverData.capture)){var Ue=r.hoverData.capture;if(Ue){r.hoverData.capture=!1;var Qe=r.cy,Ze=r.projectIntoViewport(_e.clientX,_e.clientY),nt=r.selection,It=r.findNearestElement(Ze[0],Ze[1],!0,!1),ct=r.dragData.possibleDragElements,Lt=r.hoverData.down,Rt=a(_e);r.data.bgActivePosistion&&(r.redrawHint("select",!0),r.redraw()),r.hoverData.tapholdCancelled=!0,r.data.bgActivePosistion=void 0,Lt&&Lt.unactivate();var jt=function(Br){return{originalEvent:_e,type:Br,position:{x:Ze[0],y:Ze[1]}}};if(r.hoverData.which===3){var Yt=jt("cxttapend");if(Lt?Lt.emit(Yt):Qe.emit(Yt),!r.hoverData.cxtDragged){var sr=jt("cxttap");Lt?Lt.emit(sr):Qe.emit(sr)}r.hoverData.cxtDragged=!1,r.hoverData.which=null}else if(r.hoverData.which===1){if(i(It,["mouseup","tapend","vmouseup"],_e,{x:Ze[0],y:Ze[1]}),!r.dragData.didDrag&&!r.hoverData.dragged&&!r.hoverData.selecting&&!r.hoverData.isOverThresholdDrag&&(i(Lt,["click","tap","vclick"],_e,{x:Ze[0],y:Ze[1]}),B=!1,_e.timeStamp-j<=Qe.multiClickDebounceTime()?(L&&clearTimeout(L),B=!0,j=null,i(Lt,["dblclick","dbltap","vdblclick"],_e,{x:Ze[0],y:Ze[1]})):(L=setTimeout(function(){B||i(Lt,["oneclick","onetap","voneclick"],_e,{x:Ze[0],y:Ze[1]})},Qe.multiClickDebounceTime()),j=_e.timeStamp)),Lt==null&&!r.dragData.didDrag&&!r.hoverData.selecting&&!r.hoverData.dragged&&!a(_e)&&(Qe.$(t).unselect(["tapunselect"]),ct.length>0&&r.redrawHint("eles",!0),r.dragData.possibleDragElements=ct=Qe.collection()),It==Lt&&!r.dragData.didDrag&&!r.hoverData.selecting&&It!=null&&It._private.selectable&&(r.hoverData.dragging||(Qe.selectionType()==="additive"||Rt?It.selected()?It.unselect(["tapunselect"]):It.select(["tapselect"]):Rt||(Qe.$(t).unmerge(It).unselect(["tapunselect"]),It.select(["tapselect"]))),r.redrawHint("eles",!0)),r.hoverData.selecting){var Ut=Qe.collection(r.getAllInBox(nt[0],nt[1],nt[2],nt[3]));r.redrawHint("select",!0),Ut.length>0&&r.redrawHint("eles",!0),Qe.emit(jt("boxend"));var Rr=function(Br){return Br.selectable()&&!Br.selected()};Qe.selectionType()==="additive"||Rt||Qe.$(t).unmerge(Ut).unselect(),Ut.emit(jt("box")).stdFilter(Rr).select().emit(jt("boxselect")),r.redraw()}if(r.hoverData.dragging&&(r.hoverData.dragging=!1,r.redrawHint("select",!0),r.redrawHint("eles",!0),r.redraw()),!nt[4]){r.redrawHint("drag",!0),r.redrawHint("eles",!0);var Xt=Lt&&Lt.grabbed();b(ct),Xt&&(Lt.emit(jt("freeon")),ct.emit(jt("free")),r.dragData.didDrag&&(Lt.emit(jt("dragfreeon")),ct.emit(jt("dragfree"))))}}nt[4]=0,r.hoverData.down=null,r.hoverData.cxtStarted=!1,r.hoverData.draggingEles=!1,r.hoverData.selecting=!1,r.hoverData.isOverThresholdDrag=!1,r.dragData.didDrag=!1,r.hoverData.dragged=!1,r.hoverData.dragDelta=[],r.hoverData.mdownPos=null,r.hoverData.mdownGPos=null,r.hoverData.which=null}}},!1);var z=[],H=4,q,W=1e5,$=function(_e,Ue){for(var Qe=0;Qe<_e.length;Qe++)if(_e[Qe]%Ue!==0)return!1;return!0},J=function(_e){for(var Ue=Math.abs(_e[0]),Qe=1;Qe<_e.length;Qe++)if(Math.abs(_e[Qe])!==Ue)return!1;return!0},X=function(_e){var Ue=!1,Qe=_e.deltaY;if(Qe==null&&(_e.wheelDeltaY!=null?Qe=_e.wheelDeltaY/4:_e.wheelDelta!=null&&(Qe=_e.wheelDelta/4)),Qe!==0){if(q==null)if(z.length>=H){var Ze=z;if(q=$(Ze,5),!q){var nt=Math.abs(Ze[0]);q=J(Ze)&&nt>5}if(q)for(var It=0;It5&&(Qe=Z5(Qe)*5),sr=Qe/-250,q&&(sr/=W,sr*=3),sr=sr*r.wheelSensitivity;var Ut=_e.deltaMode===1;Ut&&(sr*=33);var Rr=ct.zoom()*Math.pow(10,sr);_e.type==="gesturechange"&&(Rr=r.gestureStartZoom*_e.scale),ct.zoom({level:Rr,renderedPosition:{x:Yt[0],y:Yt[1]}}),ct.emit({type:_e.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:_e,position:{x:jt[0],y:jt[1]}})}}}};r.registerBinding(r.container,"wheel",X,!0),r.registerBinding(e,"scroll",function(_e){r.scrollingPage=!0,clearTimeout(r.scrollingPageTimeout),r.scrollingPageTimeout=setTimeout(function(){r.scrollingPage=!1},250)},!0),r.registerBinding(r.container,"gesturestart",function(_e){r.gestureStartZoom=r.cy.zoom(),r.hasTouchStarted||_e.preventDefault()},!0),r.registerBinding(r.container,"gesturechange",function(tt){r.hasTouchStarted||X(tt)},!0),r.registerBinding(r.container,"mouseout",function(_e){var Ue=r.projectIntoViewport(_e.clientX,_e.clientY);r.cy.emit({originalEvent:_e,type:"mouseout",position:{x:Ue[0],y:Ue[1]}})},!1),r.registerBinding(r.container,"mouseover",function(_e){var Ue=r.projectIntoViewport(_e.clientX,_e.clientY);r.cy.emit({originalEvent:_e,type:"mouseover",position:{x:Ue[0],y:Ue[1]}})},!1);var Z,ue,re,ne,le,ce,pe,fe,se,de,ge,Oe,ke,De=function(_e,Ue,Qe,Ze){return Math.sqrt((Qe-_e)*(Qe-_e)+(Ze-Ue)*(Ze-Ue))},Ne=function(_e,Ue,Qe,Ze){return(Qe-_e)*(Qe-_e)+(Ze-Ue)*(Ze-Ue)},Ce;r.registerBinding(r.container,"touchstart",Ce=function(_e){if(r.hasTouchStarted=!0,!!I(_e)){m(),r.touchData.capture=!0,r.data.bgActivePosistion=void 0;var Ue=r.cy,Qe=r.touchData.now,Ze=r.touchData.earlier;if(_e.touches[0]){var nt=r.projectIntoViewport(_e.touches[0].clientX,_e.touches[0].clientY);Qe[0]=nt[0],Qe[1]=nt[1]}if(_e.touches[1]){var nt=r.projectIntoViewport(_e.touches[1].clientX,_e.touches[1].clientY);Qe[2]=nt[0],Qe[3]=nt[1]}if(_e.touches[2]){var nt=r.projectIntoViewport(_e.touches[2].clientX,_e.touches[2].clientY);Qe[4]=nt[0],Qe[5]=nt[1]}var It=function(un){return{originalEvent:_e,type:un,position:{x:Qe[0],y:Qe[1]}}};if(_e.touches[1]){r.touchData.singleTouchMoved=!0,b(r.dragData.touchDragEles);var ct=r.findContainerClientCoords();se=ct[0],de=ct[1],ge=ct[2],Oe=ct[3],Z=_e.touches[0].clientX-se,ue=_e.touches[0].clientY-de,re=_e.touches[1].clientX-se,ne=_e.touches[1].clientY-de,ke=0<=Z&&Z<=ge&&0<=re&&re<=ge&&0<=ue&&ue<=Oe&&0<=ne&&ne<=Oe;var Lt=Ue.pan(),Rt=Ue.zoom();le=De(Z,ue,re,ne),ce=Ne(Z,ue,re,ne),pe=[(Z+re)/2,(ue+ne)/2],fe=[(pe[0]-Lt.x)/Rt,(pe[1]-Lt.y)/Rt];var jt=200,Yt=jt*jt;if(ce=1){for(var mr=r.touchData.startPosition=[null,null,null,null,null,null],ur=0;ur=r.touchTapThreshold2}if(Ue&&r.touchData.cxt){_e.preventDefault();var ur=_e.touches[0].clientX-se,sn=_e.touches[0].clientY-de,Fr=_e.touches[1].clientX-se,un=_e.touches[1].clientY-de,bn=Ne(ur,sn,Fr,un),wn=bn/ce,_n=150,xn=_n*_n,on=1.5,Nn=on*on;if(wn>=Nn||bn>=xn){r.touchData.cxt=!1,r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var fi=Rt("cxttapend");r.touchData.start?(r.touchData.start.unactivate().emit(fi),r.touchData.start=null):Ze.emit(fi)}}if(Ue&&r.touchData.cxt){var fi=Rt("cxtdrag");r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.touchData.start?r.touchData.start.emit(fi):Ze.emit(fi),r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxtDragged=!0;var gn=r.findNearestElement(nt[0],nt[1],!0,!0);(!r.touchData.cxtOver||gn!==r.touchData.cxtOver)&&(r.touchData.cxtOver&&r.touchData.cxtOver.emit(Rt("cxtdragout")),r.touchData.cxtOver=gn,gn&&gn.emit(Rt("cxtdragover")))}else if(Ue&&_e.touches[2]&&Ze.boxSelectionEnabled())_e.preventDefault(),r.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,r.touchData.selecting||Ze.emit(Rt("boxstart")),r.touchData.selecting=!0,r.touchData.didSelect=!0,Qe[4]=1,!Qe||Qe.length===0||Qe[0]===void 0?(Qe[0]=(nt[0]+nt[2]+nt[4])/3,Qe[1]=(nt[1]+nt[3]+nt[5])/3,Qe[2]=(nt[0]+nt[2]+nt[4])/3+1,Qe[3]=(nt[1]+nt[3]+nt[5])/3+1):(Qe[2]=(nt[0]+nt[2]+nt[4])/3,Qe[3]=(nt[1]+nt[3]+nt[5])/3),r.redrawHint("select",!0),r.redraw();else if(Ue&&_e.touches[1]&&!r.touchData.didSelect&&Ze.zoomingEnabled()&&Ze.panningEnabled()&&Ze.userZoomingEnabled()&&Ze.userPanningEnabled()){_e.preventDefault(),r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var yn=r.dragData.touchDragEles;if(yn){r.redrawHint("drag",!0);for(var Jn=0;Jn0&&!r.hoverData.draggingEles&&!r.swipePanning&&r.data.bgActivePosistion!=null&&(r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.redraw())}},!1);var Q;r.registerBinding(e,"touchcancel",Q=function(_e){var Ue=r.touchData.start;r.touchData.capture=!1,Ue&&Ue.unactivate()});var ie,we,Ee,Me;if(r.registerBinding(e,"touchend",ie=function(_e){var Ue=r.touchData.start,Qe=r.touchData.capture;if(Qe)_e.touches.length===0&&(r.touchData.capture=!1),_e.preventDefault();else return;var Ze=r.selection;r.swipePanning=!1,r.hoverData.draggingEles=!1;var nt=r.cy,It=nt.zoom(),ct=r.touchData.now,Lt=r.touchData.earlier;if(_e.touches[0]){var Rt=r.projectIntoViewport(_e.touches[0].clientX,_e.touches[0].clientY);ct[0]=Rt[0],ct[1]=Rt[1]}if(_e.touches[1]){var Rt=r.projectIntoViewport(_e.touches[1].clientX,_e.touches[1].clientY);ct[2]=Rt[0],ct[3]=Rt[1]}if(_e.touches[2]){var Rt=r.projectIntoViewport(_e.touches[2].clientX,_e.touches[2].clientY);ct[4]=Rt[0],ct[5]=Rt[1]}var jt=function(xn){return{originalEvent:_e,type:xn,position:{x:ct[0],y:ct[1]}}};Ue&&Ue.unactivate();var Yt;if(r.touchData.cxt){if(Yt=jt("cxttapend"),Ue?Ue.emit(Yt):nt.emit(Yt),!r.touchData.cxtDragged){var sr=jt("cxttap");Ue?Ue.emit(sr):nt.emit(sr)}r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxt=!1,r.touchData.start=null,r.redraw();return}if(!_e.touches[2]&&nt.boxSelectionEnabled()&&r.touchData.selecting){r.touchData.selecting=!1;var Ut=nt.collection(r.getAllInBox(Ze[0],Ze[1],Ze[2],Ze[3]));Ze[0]=void 0,Ze[1]=void 0,Ze[2]=void 0,Ze[3]=void 0,Ze[4]=0,r.redrawHint("select",!0),nt.emit(jt("boxend"));var Rr=function(xn){return xn.selectable()&&!xn.selected()};Ut.emit(jt("box")).stdFilter(Rr).select().emit(jt("boxselect")),Ut.nonempty()&&r.redrawHint("eles",!0),r.redraw()}if(Ue!=null&&Ue.unactivate(),_e.touches[2])r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);else if(!_e.touches[1]){if(!_e.touches[0]){if(!_e.touches[0]){r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var Xt=r.dragData.touchDragEles;if(Ue!=null){var Vr=Ue._private.grabbed;b(Xt),r.redrawHint("drag",!0),r.redrawHint("eles",!0),Vr&&(Ue.emit(jt("freeon")),Xt.emit(jt("free")),r.dragData.didDrag&&(Ue.emit(jt("dragfreeon")),Xt.emit(jt("dragfree")))),i(Ue,["touchend","tapend","vmouseup","tapdragout"],_e,{x:ct[0],y:ct[1]}),Ue.unactivate(),r.touchData.start=null}else{var Br=r.findNearestElement(ct[0],ct[1],!0,!0);i(Br,["touchend","tapend","vmouseup","tapdragout"],_e,{x:ct[0],y:ct[1]})}var mr=r.touchData.startPosition[0]-ct[0],ur=mr*mr,sn=r.touchData.startPosition[1]-ct[1],Fr=sn*sn,un=ur+Fr,bn=un*It*It;r.touchData.singleTouchMoved||(Ue||nt.$(":selected").unselect(["tapunselect"]),i(Ue,["tap","vclick"],_e,{x:ct[0],y:ct[1]}),we=!1,_e.timeStamp-Me<=nt.multiClickDebounceTime()?(Ee&&clearTimeout(Ee),we=!0,Me=null,i(Ue,["dbltap","vdblclick"],_e,{x:ct[0],y:ct[1]})):(Ee=setTimeout(function(){we||i(Ue,["onetap","voneclick"],_e,{x:ct[0],y:ct[1]})},nt.multiClickDebounceTime()),Me=_e.timeStamp)),Ue!=null&&!r.dragData.didDrag&&Ue._private.selectable&&bn"u"){var Ie=[],Ye=function(_e){return{clientX:_e.clientX,clientY:_e.clientY,force:1,identifier:_e.pointerId,pageX:_e.pageX,pageY:_e.pageY,radiusX:_e.width/2,radiusY:_e.height/2,screenX:_e.screenX,screenY:_e.screenY,target:_e.target}},ot=function(_e){return{event:_e,touch:Ye(_e)}},mt=function(_e){Ie.push(ot(_e))},wt=function(_e){for(var Ue=0;Ue0)return Z[0]}return null},p=Object.keys(d),g=0;g0?h:pF(a,o,e,t,n,i,s,u)},checkPoint:function(e,t,n,i,a,o,s,u){u=u==="auto"?Mp(i,a):u;var l=2*u;if(pv(e,t,this.points,o,s,i,a-l,[0,-1],n)||pv(e,t,this.points,o,s,i-l,a,[0,-1],n))return!0;var c=i/2+2*n,f=a/2+2*n,d=[o-c,s-f,o-c,s,o+c,s,o+c,s-f];return!!(Cc(e,t,d)||jg(e,t,l,l,o+i/2-u,s+a/2-u,n)||jg(e,t,l,l,o-i/2+u,s+a/2-u,n))}}};_v.registerNodeShapes=function(){var r=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",Fl(3,0)),this.generateRoundPolygon("round-triangle",Fl(3,0)),this.generatePolygon("rectangle",Fl(4,0)),r.square=r.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var t=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",t),this.generateRoundPolygon("round-diamond",t)}this.generatePolygon("pentagon",Fl(5,0)),this.generateRoundPolygon("round-pentagon",Fl(5,0)),this.generatePolygon("hexagon",Fl(6,0)),this.generateRoundPolygon("round-hexagon",Fl(6,0)),this.generatePolygon("heptagon",Fl(7,0)),this.generateRoundPolygon("round-heptagon",Fl(7,0)),this.generatePolygon("octagon",Fl(8,0)),this.generateRoundPolygon("round-octagon",Fl(8,0));var n=new Array(20);{var i=fM(5,0),a=fM(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=e.deqFastCost*x)break}else if(l){if(_>=e.deqCost*h||_>=e.deqAvgCost*d)break}else if(m>=e.deqNoDrawCost*jO)break;var E=e.deq(n,y,g);if(E.length>0)for(var O=0;O0&&(e.onDeqd(n,p),!l&&e.shouldRedraw(n,p,y,g)&&a())},s=e.priority||X5;i.beforeRender(o,s(n))}}}},aee=(function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dx;zp(this,r),this.idsByKey=new sv,this.keyForId=new sv,this.cachesByLvl=new sv,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=t}return qp(r,[{key:"getIdsFor",value:function(t){t==null&&Ia("Can not get id list for null key");var n=this.idsByKey,i=this.idsByKey.get(t);return i||(i=new $m,n.set(t,i)),i}},{key:"addIdForKey",value:function(t,n){t!=null&&this.getIdsFor(t).add(n)}},{key:"deleteIdForKey",value:function(t,n){t!=null&&this.getIdsFor(t).delete(n)}},{key:"getNumberOfIdsForKey",value:function(t){return t==null?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var n=t.id(),i=this.keyForId.get(n),a=this.getKey(t);this.deleteIdForKey(i,n),this.addIdForKey(a,n),this.keyForId.set(n,a)}},{key:"deleteKeyMappingFor",value:function(t){var n=t.id(),i=this.keyForId.get(n);this.deleteIdForKey(i,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(t){var n=t.id(),i=this.keyForId.get(n),a=this.getKey(t);return i!==a}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var n=this.cachesByLvl,i=this.lvls,a=n.get(t);return a||(a=new sv,n.set(t,a),i.push(t)),a}},{key:"getCache",value:function(t,n){return this.getCachesAt(n).get(t)}},{key:"get",value:function(t,n){var i=this.getKey(t),a=this.getCache(i,n);return a!=null&&this.updateKeyMappingFor(t),a}},{key:"getForCachedKey",value:function(t,n){var i=this.keyForId.get(t.id()),a=this.getCache(i,n);return a}},{key:"hasCache",value:function(t,n){return this.getCachesAt(n).has(t)}},{key:"has",value:function(t,n){var i=this.getKey(t);return this.hasCache(i,n)}},{key:"setCache",value:function(t,n,i){i.key=t,this.getCachesAt(n).set(t,i)}},{key:"set",value:function(t,n,i){var a=this.getKey(t);this.setCache(a,n,i),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,n){this.getCachesAt(n).delete(t)}},{key:"delete",value:function(t,n){var i=this.getKey(t);this.deleteCache(i,n)}},{key:"invalidateKey",value:function(t){var n=this;this.lvls.forEach(function(i){return n.deleteCache(t,i)})}},{key:"invalidate",value:function(t){var n=t.id(),i=this.keyForId.get(n);this.deleteKeyMappingFor(t);var a=this.doesEleInvalidateKey(t);return a&&this.invalidateKey(i),a||this.getNumberOfIdsForKey(i)===0}}])})(),b3=25,ww=50,nx=-4,OM=3,bU=7.99,oee=8,see=1024,uee=1024,lee=1024,cee=.2,fee=.8,dee=10,hee=.15,vee=.1,pee=.9,gee=.9,yee=100,mee=1,gm={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},bee=du({getKey:null,doesEleInvalidateKey:Dx,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:uF,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),vb=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var i=bee(t);kr(n,i),n.lookup=new aee(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},fs=vb.prototype;fs.reasons=gm;fs.getTextureQueue=function(r){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[r]=e.eleImgCaches[r]||[]};fs.getRetiredTextureQueue=function(r){var e=this,t=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=t[r]=t[r]||[];return n};fs.getElementQueue=function(){var r=this,e=r.eleCacheQueue=r.eleCacheQueue||new K1(function(t,n){return n.reqs-t.reqs});return e};fs.getElementKeyToQueue=function(){var r=this,e=r.eleKeyToCacheQueue=r.eleKeyToCacheQueue||{};return e};fs.getElement=function(r,e,t,n,i){var a=this,o=this.renderer,s=o.cy.zoom(),u=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!r.visible()||r.removed()||!a.allowEdgeTxrCaching&&r.isEdge()||!a.allowParentTxrCaching&&r.isParent())return null;if(n==null&&(n=Math.ceil(K5(s*t))),n=bU||n>OM)return null;var l=Math.pow(2,n),c=e.h*l,f=e.w*l,d=o.eleTextBiggerThanMin(r,l);if(!this.isVisible(r,d))return null;var h=u.get(r,n);if(h&&h.invalidated&&(h.invalidated=!1,h.texture.invalidatedWidth-=h.width),h)return h;var p;if(c<=b3?p=b3:c<=ww?p=ww:p=Math.ceil(c/ww)*ww,c>lee||f>uee)return null;var g=a.getTextureQueue(p),y=g[g.length-2],b=function(){return a.recycleTexture(p,f)||a.addTexture(p,f)};y||(y=g[g.length-1]),y||(y=b()),y.width-y.usedWidthn;k--)P=a.getElement(r,e,t,k,gm.downscale);I()}else return a.queueElement(r,O.level-1),O;else{var L;if(!m&&!x&&!E)for(var B=n-1;B>=nx;B--){var j=u.get(r,B);if(j){L=j;break}}if(_(L))return a.queueElement(r,n),L;y.context.translate(y.usedWidth,0),y.context.scale(l,l),this.drawElement(y.context,r,e,d,!1),y.context.scale(1/l,1/l),y.context.translate(-y.usedWidth,0)}return h={x:y.usedWidth,texture:y,level:n,scale:l,width:f,height:c,scaledLabelShown:d},y.usedWidth+=Math.ceil(f+oee),y.eleCaches.push(h),u.set(r,n,h),a.checkTextureFullness(y),h};fs.invalidateElements=function(r){for(var e=0;e=cee*r.width&&this.retireTexture(r)};fs.checkTextureFullness=function(r){var e=this,t=e.getTextureQueue(r.height);r.usedWidth/r.width>fee&&r.fullnessChecks>=dee?Pp(t,r):r.fullnessChecks++};fs.retireTexture=function(r){var e=this,t=r.height,n=e.getTextureQueue(t),i=this.lookup;Pp(n,r),r.retired=!0;for(var a=r.eleCaches,o=0;o=e)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,$5(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),Pp(i,o),n.push(o),o}};fs.queueElement=function(r,e){var t=this,n=t.getElementQueue(),i=t.getElementKeyToQueue(),a=this.getKey(r),o=i[a];if(o)o.level=Math.max(o.level,e),o.eles.merge(r),o.reqs++,n.updateItem(o);else{var s={eles:r.spawn().merge(r),level:e,reqs:1,key:a};n.push(s),i[a]=s}};fs.dequeue=function(r){for(var e=this,t=e.getElementQueue(),n=e.getElementKeyToQueue(),i=[],a=e.lookup,o=0;o0;o++){var s=t.pop(),u=s.key,l=s.eles[0],c=a.hasCache(l,s.level);if(n[u]=null,c)continue;i.push(s);var f=e.getBoundingBox(l);e.getElement(l,f,r,s.level,gm.dequeue)}return i};fs.removeFromQueue=function(r){var e=this,t=e.getElementQueue(),n=e.getElementKeyToQueue(),i=this.getKey(r),a=n[i];a!=null&&(a.eles.length===1?(a.reqs=Y5,t.updateItem(a),t.pop(),n[i]=null):a.eles.unmerge(r))};fs.onDequeue=function(r){this.onDequeues.push(r)};fs.offDequeue=function(r){Pp(this.onDequeues,r)};fs.setupDequeueing=mU.setupDequeueing({deqRedrawThreshold:yee,deqCost:hee,deqAvgCost:vee,deqNoDrawCost:pee,deqFastCost:gee,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=wee||t>Ux)return null}n.validateLayersElesOrdering(t,r);var u=n.layersByLevel,l=Math.pow(2,t),c=u[t]=u[t]||[],f,d=n.levelIsComplete(t,r),h,p=function(){var I=function(z){if(n.validateLayersElesOrdering(z,r),n.levelIsComplete(z,r))return h=u[z],!0},k=function(z){if(!h)for(var H=t+z;Db<=H&&H<=Ux&&!I(H);H+=z);};k(1),k(-1);for(var L=c.length-1;L>=0;L--){var B=c[L];B.invalid&&Pp(c,B)}};if(!d)p();else return c;var g=function(){if(!f){f=ql();for(var I=0;Iw3||B>w3)return null;var j=L*B;if(j>Ree)return null;var z=n.makeLayer(f,t);if(k!=null){var H=c.indexOf(k)+1;c.splice(H,0,z)}else(I.insert===void 0||I.insert)&&c.unshift(z);return z};if(n.skipping&&!s)return null;for(var b=null,_=r.length/_ee,m=!s,x=0;x=_||!vF(b.bb,E.boundingBox()))&&(b=y({insert:!0,after:b}),!b))return null;h||m?n.queueLayer(b,E):n.drawEleInLayer(b,E,t,e),b.eles.push(E),S[t]=b}return h||(m?null:c)};hu.getEleLevelForLayerLevel=function(r,e){return r};hu.drawEleInLayer=function(r,e,t,n){var i=this,a=this.renderer,o=r.context,s=e.boundingBox();s.w===0||s.h===0||!e.visible()||(t=i.getEleLevelForLayerLevel(t,n),a.setImgSmoothing(o,!1),a.drawCachedElement(o,e,null,null,t,Pee),a.setImgSmoothing(o,!0))};hu.levelIsComplete=function(r,e){var t=this,n=t.layersByLevel[r];if(!n||n.length===0)return!1;for(var i=0,a=0;a0||o.invalid)return!1;i+=o.eles.length}return i===e.length};hu.validateLayersElesOrdering=function(r,e){var t=this.layersByLevel[r];if(t)for(var n=0;n0){e=!0;break}}return e};hu.invalidateElements=function(r){var e=this;r.length!==0&&(e.lastInvalidationTime=vv(),!(r.length===0||!e.haveLayers())&&e.updateElementsInLayers(r,function(n,i,a){e.invalidateLayer(n)}))};hu.invalidateLayer=function(r){if(this.lastInvalidationTime=vv(),!r.invalid){var e=r.level,t=r.eles,n=this.layersByLevel[e];Pp(n,r),r.elesQueue=[],r.invalid=!0,r.replacement&&(r.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=e._private.rscratch;if(!(a&&!e.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var u;t&&(u=t,r.translate(-u.x1,-u.y1));var l=a?e.pstyle("opacity").value:1,c=a?e.pstyle("line-opacity").value:1,f=e.pstyle("curve-style").value,d=e.pstyle("line-style").value,h=e.pstyle("width").pfValue,p=e.pstyle("line-cap").value,g=e.pstyle("line-outline-width").value,y=e.pstyle("line-outline-color").value,b=l*c,_=l*c,m=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;f==="straight-triangle"?(o.eleStrokeStyle(r,e,z),o.drawEdgeTrianglePath(e,r,s.allpts)):(r.lineWidth=h,r.lineCap=p,o.eleStrokeStyle(r,e,z),o.drawEdgePath(e,r,s.allpts,d),r.lineCap="butt")},x=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;if(r.lineWidth=h+g,r.lineCap=p,g>0)o.colorStrokeStyle(r,y[0],y[1],y[2],z);else{r.lineCap="butt";return}f==="straight-triangle"?o.drawEdgeTrianglePath(e,r,s.allpts):(o.drawEdgePath(e,r,s.allpts,d),r.lineCap="butt")},E=function(){i&&o.drawEdgeOverlay(r,e)},O=function(){i&&o.drawEdgeUnderlay(r,e)},S=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_;o.drawArrowheads(r,e,z)},T=function(){o.drawElementText(r,e,null,n)};r.lineJoin="round";var P=e.pstyle("ghost").value==="yes";if(P){var I=e.pstyle("ghost-offset-x").pfValue,k=e.pstyle("ghost-offset-y").pfValue,L=e.pstyle("ghost-opacity").value,B=b*L;r.translate(I,k),m(B),S(B),r.translate(-I,-k)}else x();O(),m(),S(),E(),T(),t&&r.translate(u.x1,u.y1)}};var xU=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n){if(n.visible()){var i=n.pstyle("".concat(e,"-opacity")).value;if(i!==0){var a=this,o=a.usePaths(),s=n._private.rscratch,u=n.pstyle("".concat(e,"-padding")).pfValue,l=2*u,c=n.pstyle("".concat(e,"-color")).value;t.lineWidth=l,s.edgeType==="self"&&!o?t.lineCap="butt":t.lineCap="round",a.colorStrokeStyle(t,c[0],c[1],c[2],i),a.drawEdgePath(n,t,s.allpts,"solid")}}}};wv.drawEdgeOverlay=xU("overlay");wv.drawEdgeUnderlay=xU("underlay");wv.drawEdgePath=function(r,e,t,n){var i=r._private.rscratch,a=e,o,s=!1,u=this.usePaths(),l=r.pstyle("line-dash-pattern").pfValue,c=r.pstyle("line-dash-offset").pfValue;if(u){var f=t.join("$"),d=i.pathCacheKey&&i.pathCacheKey===f;d?(o=e=i.pathCache,s=!0):(o=e=new Path2D,i.pathCacheKey=f,i.pathCache=o)}if(a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(l),a.lineDashOffset=c;break;case"solid":a.setLineDash([]);break}if(!s&&!i.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(t[0],t[1]),i.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(n==null){if(a&&!o.eleTextBiggerThanMin(e))return}else if(n===!1)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var u=o.getLabelJustification(e);r.textAlign=u,r.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,c=e.pstyle("label"),f=e.pstyle("source-label"),d=e.pstyle("target-label");if(l||(!c||!c.value)&&(!f||!f.value)&&(!d||!d.value))return;r.textAlign="center",r.textBaseline="bottom"}var h=!t,p;t&&(p=t,r.translate(-p.x1,-p.y1)),i==null?(o.drawText(r,e,null,h,a),e.isEdge()&&(o.drawText(r,e,"source",h,a),o.drawText(r,e,"target",h,a))):o.drawText(r,e,i,h,a),t&&r.translate(p.x1,p.y1)};ny.getFontCache=function(r){var e;this.fontCaches=this.fontCaches||[];for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:!0,n=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=t?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*s,l=e.pstyle("color").value,c=e.pstyle("text-outline-color").value;r.font=n+" "+o+" "+i+" "+a,r.lineJoin="round",this.colorFillStyle(r,l[0],l[1],l[2],s),this.colorStrokeStyle(r,c[0],c[1],c[2],u)};function zee(r,e,t,n,i){var a=Math.min(n,i),o=a/2,s=e+n/2,u=t+i/2;r.beginPath(),r.arc(s,u,o,0,Math.PI*2),r.closePath()}function O3(r,e,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(a,n/2,i/2);r.beginPath(),r.moveTo(e+o,t),r.lineTo(e+n-o,t),r.quadraticCurveTo(e+n,t,e+n,t+o),r.lineTo(e+n,t+i-o),r.quadraticCurveTo(e+n,t+i,e+n-o,t+i),r.lineTo(e+o,t+i),r.quadraticCurveTo(e,t+i,e,t+i-o),r.lineTo(e,t+o),r.quadraticCurveTo(e,t,e+o,t),r.closePath()}ny.getTextAngle=function(r,e){var t,n=r._private,i=n.rscratch,a=e?e+"-":"",o=r.pstyle(a+"text-rotation");if(o.strValue==="autorotate"){var s=Tc(i,"labelAngle",e);t=r.isEdge()?s:0}else o.strValue==="none"?t=0:t=o.pfValue;return t};ny.drawText=function(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=e._private,o=a.rscratch,s=i?e.effectiveOpacity():1;if(!(i&&(s===0||e.pstyle("text-opacity").value===0))){t==="main"&&(t=null);var u=Tc(o,"labelX",t),l=Tc(o,"labelY",t),c,f,d=this.getLabelText(e,t);if(d!=null&&d!==""&&!isNaN(u)&&!isNaN(l)){this.setupTextStyle(r,e,i);var h=t?t+"-":"",p=Tc(o,"labelWidth",t),g=Tc(o,"labelHeight",t),y=e.pstyle(h+"text-margin-x").pfValue,b=e.pstyle(h+"text-margin-y").pfValue,_=e.isEdge(),m=e.pstyle("text-halign").value,x=e.pstyle("text-valign").value;_&&(m="center",x="center"),u+=y,l+=b;var E;switch(n?E=this.getTextAngle(e,t):E=0,E!==0&&(c=u,f=l,r.translate(c,f),r.rotate(E),u=0,l=0),x){case"top":break;case"center":l+=g/2;break;case"bottom":l+=g;break}var O=e.pstyle("text-background-opacity").value,S=e.pstyle("text-border-opacity").value,T=e.pstyle("text-border-width").pfValue,P=e.pstyle("text-background-padding").pfValue,I=e.pstyle("text-background-shape").strValue,k=I==="round-rectangle"||I==="roundrectangle",L=I==="circle",B=2;if(O>0||T>0&&S>0){var j=r.fillStyle,z=r.strokeStyle,H=r.lineWidth,q=e.pstyle("text-background-color").value,W=e.pstyle("text-border-color").value,$=e.pstyle("text-border-style").value,J=O>0,X=T>0&&S>0,Z=u-P;switch(m){case"left":Z-=p;break;case"center":Z-=p/2;break}var ue=l-g-P,re=p+2*P,ne=g+2*P;if(J&&(r.fillStyle="rgba(".concat(q[0],",").concat(q[1],",").concat(q[2],",").concat(O*s,")")),X&&(r.strokeStyle="rgba(".concat(W[0],",").concat(W[1],",").concat(W[2],",").concat(S*s,")"),r.lineWidth=T,r.setLineDash))switch($){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"double":r.lineWidth=T/4,r.setLineDash([]);break;case"solid":default:r.setLineDash([]);break}if(k?(r.beginPath(),O3(r,Z,ue,re,ne,B)):L?(r.beginPath(),zee(r,Z,ue,re,ne)):(r.beginPath(),r.rect(Z,ue,re,ne)),J&&r.fill(),X&&r.stroke(),X&&$==="double"){var le=T/2;r.beginPath(),k?O3(r,Z+le,ue+le,re-2*le,ne-2*le,B):r.rect(Z+le,ue+le,re-2*le,ne-2*le),r.stroke()}r.fillStyle=j,r.strokeStyle=z,r.lineWidth=H,r.setLineDash&&r.setLineDash([])}var ce=2*e.pstyle("text-outline-width").pfValue;if(ce>0&&(r.lineWidth=ce),e.pstyle("text-wrap").value==="wrap"){var pe=Tc(o,"labelWrapCachedLines",t),fe=Tc(o,"labelLineHeight",t),se=p/2,de=this.getLabelJustification(e);switch(de==="auto"||(m==="left"?de==="left"?u+=-p:de==="center"&&(u+=-se):m==="center"?de==="left"?u+=-se:de==="right"&&(u+=se):m==="right"&&(de==="center"?u+=se:de==="right"&&(u+=p))),x){case"top":l-=(pe.length-1)*fe;break;case"center":case"bottom":l-=(pe.length-1)*fe;break}for(var ge=0;ge0&&r.strokeText(pe[ge],u,l),r.fillText(pe[ge],u,l),l+=fe}else ce>0&&r.strokeText(d,u,l),r.fillText(d,u,l);E!==0&&(r.rotate(-E),r.translate(-c,-f))}}};var Vp={};Vp.drawNode=function(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,u,l=e._private,c=l.rscratch,f=e.position();if(!(!Ht(f.x)||!Ht(f.y))&&!(a&&!e.visible())){var d=a?e.effectiveOpacity():1,h=o.usePaths(),p,g=!1,y=e.padding();s=e.width()+2*y,u=e.height()+2*y;var b;t&&(b=t,r.translate(-b.x1,-b.y1));for(var _=e.pstyle("background-image"),m=_.value,x=new Array(m.length),E=new Array(m.length),O=0,S=0;S0&&arguments[0]!==void 0?arguments[0]:B;o.eleFillStyle(r,e,vt)},fe=function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X;o.colorStrokeStyle(r,j[0],j[1],j[2],vt)},se=function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne;o.colorStrokeStyle(r,ue[0],ue[1],ue[2],vt)},de=function(vt,tt,_e,Ue){var Qe=o.nodePathCache=o.nodePathCache||[],Ze=sF(_e==="polygon"?_e+","+Ue.join(","):_e,""+tt,""+vt,""+ce),nt=Qe[Ze],It,ct=!1;return nt!=null?(It=nt,ct=!0,c.pathCache=It):(It=new Path2D,Qe[Ze]=c.pathCache=It),{path:It,cacheHit:ct}},ge=e.pstyle("shape").strValue,Oe=e.pstyle("shape-polygon-points").pfValue;if(h){r.translate(f.x,f.y);var ke=de(s,u,ge,Oe);p=ke.path,g=ke.cacheHit}var De=function(){if(!g){var vt=f;h&&(vt={x:0,y:0}),o.nodeShapes[o.getNodeShape(e)].draw(p||r,vt.x,vt.y,s,u,ce,c)}h?r.fill(p):r.fill()},Ne=function(){for(var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_e=l.backgrounding,Ue=0,Qe=0;Qe0&&arguments[0]!==void 0?arguments[0]:!1,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d;o.hasPie(e)&&(o.drawPie(r,e,tt),vt&&(h||o.nodeShapes[o.getNodeShape(e)].draw(r,f.x,f.y,s,u,ce,c)))},Y=function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d;o.hasStripe(e)&&(r.save(),h?r.clip(c.pathCache):(o.nodeShapes[o.getNodeShape(e)].draw(r,f.x,f.y,s,u,ce,c),r.clip()),o.drawStripe(r,e,tt),r.restore(),vt&&(h||o.nodeShapes[o.getNodeShape(e)].draw(r,f.x,f.y,s,u,ce,c)))},Q=function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,tt=(k>0?k:-k)*vt,_e=k>0?0:255;k!==0&&(o.colorFillStyle(r,_e,_e,_e,tt),h?r.fill(p):r.fill())},ie=function(){if(L>0){if(r.lineWidth=L,r.lineCap=q,r.lineJoin=H,r.setLineDash)switch(z){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash($),r.lineDashOffset=J;break;case"solid":case"double":r.setLineDash([]);break}if(W!=="center"){if(r.save(),r.lineWidth*=2,W==="inside")h?r.clip(p):r.clip();else{var vt=new Path2D;vt.rect(-s/2-L,-u/2-L,s+2*L,u+2*L),vt.addPath(p),r.clip(vt,"evenodd")}h?r.stroke(p):r.stroke(),r.restore()}else h?r.stroke(p):r.stroke();if(z==="double"){r.lineWidth=L/3;var tt=r.globalCompositeOperation;r.globalCompositeOperation="destination-out",h?r.stroke(p):r.stroke(),r.globalCompositeOperation=tt}r.setLineDash&&r.setLineDash([])}},we=function(){if(Z>0){if(r.lineWidth=Z,r.lineCap="butt",r.setLineDash)switch(re){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"solid":case"double":r.setLineDash([]);break}var vt=f;h&&(vt={x:0,y:0});var tt=o.getNodeShape(e),_e=L;W==="inside"&&(_e=0),W==="outside"&&(_e*=2);var Ue=(s+_e+(Z+le))/s,Qe=(u+_e+(Z+le))/u,Ze=s*Ue,nt=u*Qe,It=o.nodeShapes[tt].points,ct;if(h){var Lt=de(Ze,nt,tt,It);ct=Lt.path}if(tt==="ellipse")o.drawEllipsePath(ct||r,vt.x,vt.y,Ze,nt);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(tt)){var Rt=0,jt=0,Yt=0;tt==="round-diamond"?Rt=(_e+le+Z)*1.4:tt==="round-heptagon"?(Rt=(_e+le+Z)*1.075,Yt=-(_e/2+le+Z)/35):tt==="round-hexagon"?Rt=(_e+le+Z)*1.12:tt==="round-pentagon"?(Rt=(_e+le+Z)*1.13,Yt=-(_e/2+le+Z)/15):tt==="round-tag"?(Rt=(_e+le+Z)*1.12,jt=(_e/2+Z+le)*.07):tt==="round-triangle"&&(Rt=(_e+le+Z)*(Math.PI/2),Yt=-(_e+le/2+Z)/Math.PI),Rt!==0&&(Ue=(s+Rt)/s,Ze=s*Ue,["round-hexagon","round-tag"].includes(tt)||(Qe=(u+Rt)/u,nt=u*Qe)),ce=ce==="auto"?yF(Ze,nt):ce;for(var sr=Ze/2,Ut=nt/2,Rr=ce+(_e+Z+le)/2,Xt=new Array(It.length/2),Vr=new Array(It.length/2),Br=0;Br0){if(i=i||n.position(),a==null||o==null){var h=n.padding();a=n.width()+2*h,o=n.height()+2*h}s.colorFillStyle(t,c[0],c[1],c[2],l),s.nodeShapes[f].draw(t,i.x,i.y,a+u*2,o+u*2,d),t.fill()}}}};Vp.drawNodeOverlay=EU("overlay");Vp.drawNodeUnderlay=EU("underlay");Vp.hasPie=function(r){return r=r[0],r._private.hasPie};Vp.hasStripe=function(r){return r=r[0],r._private.hasStripe};Vp.drawPie=function(r,e,t,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=e.pstyle("pie-size"),o=e.pstyle("pie-hole"),s=e.pstyle("pie-start-angle").pfValue,u=n.x,l=n.y,c=e.width(),f=e.height(),d=Math.min(c,f)/2,h,p=0,g=this.usePaths();if(g&&(u=0,l=0),a.units==="%"?d=d*a.pfValue:a.pfValue!==void 0&&(d=a.pfValue/2),o.units==="%"?h=d*o.pfValue:o.pfValue!==void 0&&(h=o.pfValue/2),!(h>=d))for(var y=1;y<=i.pieBackgroundN;y++){var b=e.pstyle("pie-"+y+"-background-size").value,_=e.pstyle("pie-"+y+"-background-color").value,m=e.pstyle("pie-"+y+"-background-opacity").value*t,x=b/100;x+p>1&&(x=1-p);var E=1.5*Math.PI+2*Math.PI*p;E+=s;var O=2*Math.PI*x,S=E+O;b===0||p>=1||p+x>1||(h===0?(r.beginPath(),r.moveTo(u,l),r.arc(u,l,d,E,S),r.closePath()):(r.beginPath(),r.arc(u,l,d,E,S),r.arc(u,l,h,S,E,!0),r.closePath()),this.colorFillStyle(r,_[0],_[1],_[2],m),r.fill(),p+=x)}};Vp.drawStripe=function(r,e,t,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=n.x,o=n.y,s=e.width(),u=e.height(),l=0,c=this.usePaths();r.save();var f=e.pstyle("stripe-direction").value,d=e.pstyle("stripe-size");switch(f){case"vertical":break;case"righward":r.rotate(-Math.PI/2);break}var h=s,p=u;d.units==="%"?(h=h*d.pfValue,p=p*d.pfValue):d.pfValue!==void 0&&(h=d.pfValue,p=d.pfValue),c&&(a=0,o=0),o-=h/2,a-=p/2;for(var g=1;g<=i.stripeBackgroundN;g++){var y=e.pstyle("stripe-"+g+"-background-size").value,b=e.pstyle("stripe-"+g+"-background-color").value,_=e.pstyle("stripe-"+g+"-background-opacity").value*t,m=y/100;m+l>1&&(m=1-l),!(y===0||l>=1||l+m>1)&&(r.beginPath(),r.rect(a,o+p*l,h,p*m),r.closePath(),this.colorFillStyle(r,b[0],b[1],b[2],_),r.fill(),l+=m)}r.restore()};var Gl={},qee=100;Gl.getPixelRatio=function(){var r=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),t=r.backingStorePixelRatio||r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/t};Gl.paintCache=function(r){for(var e=this.paintCaches=this.paintCaches||[],t=!0,n,i=0;ie.minMbLowQualFrames&&(e.motionBlurPxRatio=e.mbPxRBlurry)),e.clearingMotionBlur&&(e.motionBlurPxRatio=1),e.textureDrawLastFrame&&!f&&(c[e.NODE]=!0,c[e.SELECT_BOX]=!0);var _=t.style(),m=t.zoom(),x=o!==void 0?o:m,E=t.pan(),O={x:E.x,y:E.y},S={zoom:m,pan:{x:E.x,y:E.y}},T=e.prevViewport,P=T===void 0||S.zoom!==T.zoom||S.pan.x!==T.pan.x||S.pan.y!==T.pan.y;!P&&!(g&&!p)&&(e.motionBlurPxRatio=1),s&&(O=s),x*=u,O.x*=u,O.y*=u;var I=e.getCachedZSortedEles();function k(fe,se,de,ge,Oe){var ke=fe.globalCompositeOperation;fe.globalCompositeOperation="destination-out",e.colorFillStyle(fe,255,255,255,e.motionBlurTransparency),fe.fillRect(se,de,ge,Oe),fe.globalCompositeOperation=ke}function L(fe,se){var de,ge,Oe,ke;!e.clearingMotionBlur&&(fe===l.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]||fe===l.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG])?(de={x:E.x*h,y:E.y*h},ge=m*h,Oe=e.canvasWidth*h,ke=e.canvasHeight*h):(de=O,ge=x,Oe=e.canvasWidth,ke=e.canvasHeight),fe.setTransform(1,0,0,1,0,0),se==="motionBlur"?k(fe,0,0,Oe,ke):!n&&(se===void 0||se)&&fe.clearRect(0,0,Oe,ke),i||(fe.translate(de.x,de.y),fe.scale(ge,ge)),s&&fe.translate(s.x,s.y),o&&fe.scale(o,o)}if(f||(e.textureDrawLastFrame=!1),f){if(e.textureDrawLastFrame=!0,!e.textureCache){e.textureCache={},e.textureCache.bb=t.mutableElements().boundingBox(),e.textureCache.texture=e.data.bufferCanvases[e.TEXTURE_BUFFER];var B=e.data.bufferContexts[e.TEXTURE_BUFFER];B.setTransform(1,0,0,1,0,0),B.clearRect(0,0,e.canvasWidth*e.textureMult,e.canvasHeight*e.textureMult),e.render({forcedContext:B,drawOnlyNodeLayer:!0,forcedPxRatio:u*e.textureMult});var S=e.textureCache.viewport={zoom:t.zoom(),pan:t.pan(),width:e.canvasWidth,height:e.canvasHeight};S.mpan={x:(0-S.pan.x)/S.zoom,y:(0-S.pan.y)/S.zoom}}c[e.DRAG]=!1,c[e.NODE]=!1;var j=l.contexts[e.NODE],z=e.textureCache.texture,S=e.textureCache.viewport;j.setTransform(1,0,0,1,0,0),d?k(j,0,0,S.width,S.height):j.clearRect(0,0,S.width,S.height);var H=_.core("outside-texture-bg-color").value,q=_.core("outside-texture-bg-opacity").value;e.colorFillStyle(j,H[0],H[1],H[2],q),j.fillRect(0,0,S.width,S.height);var m=t.zoom();L(j,!1),j.clearRect(S.mpan.x,S.mpan.y,S.width/S.zoom/u,S.height/S.zoom/u),j.drawImage(z,S.mpan.x,S.mpan.y,S.width/S.zoom/u,S.height/S.zoom/u)}else e.textureOnViewport&&!n&&(e.textureCache=null);var W=t.extent(),$=e.pinching||e.hoverData.dragging||e.swipePanning||e.data.wheelZooming||e.hoverData.draggingEles||e.cy.animated(),J=e.hideEdgesOnViewport&&$,X=[];if(X[e.NODE]=!c[e.NODE]&&d&&!e.clearedForMotionBlur[e.NODE]||e.clearingMotionBlur,X[e.NODE]&&(e.clearedForMotionBlur[e.NODE]=!0),X[e.DRAG]=!c[e.DRAG]&&d&&!e.clearedForMotionBlur[e.DRAG]||e.clearingMotionBlur,X[e.DRAG]&&(e.clearedForMotionBlur[e.DRAG]=!0),c[e.NODE]||i||a||X[e.NODE]){var Z=d&&!X[e.NODE]&&h!==1,j=n||(Z?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]:l.contexts[e.NODE]),ue=d&&!Z?"motionBlur":void 0;L(j,ue),J?e.drawCachedNodes(j,I.nondrag,u,W):e.drawLayeredElements(j,I.nondrag,u,W),e.debug&&e.drawDebugPoints(j,I.nondrag),!i&&!d&&(c[e.NODE]=!1)}if(!a&&(c[e.DRAG]||i||X[e.DRAG])){var Z=d&&!X[e.DRAG]&&h!==1,j=n||(Z?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]:l.contexts[e.DRAG]);L(j,d&&!Z?"motionBlur":void 0),J?e.drawCachedNodes(j,I.drag,u,W):e.drawCachedElements(j,I.drag,u,W),e.debug&&e.drawDebugPoints(j,I.drag),!i&&!d&&(c[e.DRAG]=!1)}if(this.drawSelectionRectangle(r,L),d&&h!==1){var re=l.contexts[e.NODE],ne=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE],le=l.contexts[e.DRAG],ce=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG],pe=function(se,de,ge){se.setTransform(1,0,0,1,0,0),ge||!b?se.clearRect(0,0,e.canvasWidth,e.canvasHeight):k(se,0,0,e.canvasWidth,e.canvasHeight);var Oe=h;se.drawImage(de,0,0,e.canvasWidth*Oe,e.canvasHeight*Oe,0,0,e.canvasWidth,e.canvasHeight)};(c[e.NODE]||X[e.NODE])&&(pe(re,ne,X[e.NODE]),c[e.NODE]=!1),(c[e.DRAG]||X[e.DRAG])&&(pe(le,ce,X[e.DRAG]),c[e.DRAG]=!1)}e.prevViewport=S,e.clearingMotionBlur&&(e.clearingMotionBlur=!1,e.motionBlurCleared=!0,e.motionBlur=!0),d&&(e.motionBlurTimeout=setTimeout(function(){e.motionBlurTimeout=null,e.clearedForMotionBlur[e.NODE]=!1,e.clearedForMotionBlur[e.DRAG]=!1,e.motionBlur=!1,e.clearingMotionBlur=!f,e.mbFrames=0,c[e.NODE]=!0,c[e.DRAG]=!0,e.redraw()},qee)),n||t.emit("render")};var W0;Gl.drawSelectionRectangle=function(r,e){var t=this,n=t.cy,i=t.data,a=n.style(),o=r.drawOnlyNodeLayer,s=r.drawAllLayers,u=i.canvasNeedsRedraw,l=r.forcedContext;if(t.showFps||!o&&u[t.SELECT_BOX]&&!s){var c=l||i.contexts[t.SELECT_BOX];if(e(c),t.selection[4]==1&&(t.hoverData.selecting||t.touchData.selecting)){var f=t.cy.zoom(),d=a.core("selection-box-border-width").value/f;c.lineWidth=d,c.fillStyle="rgba("+a.core("selection-box-color").value[0]+","+a.core("selection-box-color").value[1]+","+a.core("selection-box-color").value[2]+","+a.core("selection-box-opacity").value+")",c.fillRect(t.selection[0],t.selection[1],t.selection[2]-t.selection[0],t.selection[3]-t.selection[1]),d>0&&(c.strokeStyle="rgba("+a.core("selection-box-border-color").value[0]+","+a.core("selection-box-border-color").value[1]+","+a.core("selection-box-border-color").value[2]+","+a.core("selection-box-opacity").value+")",c.strokeRect(t.selection[0],t.selection[1],t.selection[2]-t.selection[0],t.selection[3]-t.selection[1]))}if(i.bgActivePosistion&&!t.hoverData.selecting){var f=t.cy.zoom(),h=i.bgActivePosistion;c.fillStyle="rgba("+a.core("active-bg-color").value[0]+","+a.core("active-bg-color").value[1]+","+a.core("active-bg-color").value[2]+","+a.core("active-bg-opacity").value+")",c.beginPath(),c.arc(h.x,h.y,a.core("active-bg-size").pfValue/f,0,2*Math.PI),c.fill()}var p=t.lastRedrawTime;if(t.showFps&&p){p=Math.round(p);var g=Math.round(1e3/p),y="1 frame = "+p+" ms = "+g+" fps";if(c.setTransform(1,0,0,1,0,0),c.fillStyle="rgba(255, 0, 0, 0.75)",c.strokeStyle="rgba(255, 0, 0, 0.75)",c.font="30px Arial",!W0){var b=c.measureText(y);W0=b.actualBoundingBoxAscent}c.fillText(y,0,W0);var _=60;c.strokeRect(0,W0+10,250,20),c.fillRect(0,W0+10,250*Math.min(g/_,1),20)}s||(u[t.SELECT_BOX]=!1)}};function T3(r,e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error(r.getShaderInfoLog(n));return n}function Gee(r,e,t){var n=T3(r,r.VERTEX_SHADER,e),i=T3(r,r.FRAGMENT_SHADER,t),a=r.createProgram();if(r.attachShader(a,n),r.attachShader(a,i),r.linkProgram(a),!r.getProgramParameter(a,r.LINK_STATUS))throw new Error("Could not initialize shaders");return a}function Vee(r,e,t){t===void 0&&(t=e);var n=r.makeOffscreenCanvas(e,t),i=n.context=n.getContext("2d");return n.clear=function(){return i.clearRect(0,0,n.width,n.height)},n.clear(),n}function hD(r){var e=r.pixelRatio,t=r.cy.zoom(),n=r.cy.pan();return{zoom:t*e,pan:{x:n.x*e,y:n.y*e}}}function Hee(r){var e=r.pixelRatio,t=r.cy.zoom();return t*e}function Wee(r,e,t,n,i){var a=n*t+e.x,o=i*t+e.y;return o=Math.round(r.canvasHeight-o),[a,o]}function Yee(r){return r.pstyle("background-fill").value!=="solid"||r.pstyle("background-image").strValue!=="none"?!1:r.pstyle("border-width").value===0||r.pstyle("border-opacity").value===0?!0:r.pstyle("border-style").value==="solid"}function Xee(r,e){if(r.length!==e.length)return!1;for(var t=0;t>0&255)/255,t[1]=(r>>8&255)/255,t[2]=(r>>16&255)/255,t[3]=(r>>24&255)/255,t}function $ee(r){return r[0]+(r[1]<<8)+(r[2]<<16)+(r[3]<<24)}function Kee(r,e){var t=r.createTexture();return t.buffer=function(n){r.bindTexture(r.TEXTURE_2D,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR_MIPMAP_NEAREST),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n),r.generateMipmap(r.TEXTURE_2D),r.bindTexture(r.TEXTURE_2D,null)},t.deleteTexture=function(){r.deleteTexture(t)},t}function SU(r,e){switch(e){case"float":return[1,r.FLOAT,4];case"vec2":return[2,r.FLOAT,4];case"vec3":return[3,r.FLOAT,4];case"vec4":return[4,r.FLOAT,4];case"int":return[1,r.INT,4];case"ivec2":return[2,r.INT,4]}}function OU(r,e,t){switch(e){case r.FLOAT:return new Float32Array(t);case r.INT:return new Int32Array(t)}}function Zee(r,e,t,n,i,a){switch(e){case r.FLOAT:return new Float32Array(t.buffer,a*n,i);case r.INT:return new Int32Array(t.buffer,a*n,i)}}function Qee(r,e,t,n){var i=SU(r,e),a=Uo(i,2),o=a[0],s=a[1],u=OU(r,s,n),l=r.createBuffer();return r.bindBuffer(r.ARRAY_BUFFER,l),r.bufferData(r.ARRAY_BUFFER,u,r.STATIC_DRAW),s===r.FLOAT?r.vertexAttribPointer(t,o,s,!1,0,0):s===r.INT&&r.vertexAttribIPointer(t,o,s,0,0),r.enableVertexAttribArray(t),r.bindBuffer(r.ARRAY_BUFFER,null),l}function uh(r,e,t,n){var i=SU(r,t),a=Uo(i,3),o=a[0],s=a[1],u=a[2],l=OU(r,s,e*o),c=o*u,f=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,f),r.bufferData(r.ARRAY_BUFFER,e*c,r.DYNAMIC_DRAW),r.enableVertexAttribArray(n),s===r.FLOAT?r.vertexAttribPointer(n,o,s,!1,c,0):s===r.INT&&r.vertexAttribIPointer(n,o,s,c,0),r.vertexAttribDivisor(n,1),r.bindBuffer(r.ARRAY_BUFFER,null);for(var d=new Array(e),h=0;ho&&(s=o/n,u=n*s,l=i*s),{scale:s,texW:u,texH:l}}},{key:"draw",value:function(t,n,i){var a=this;if(this.locked)throw new Error("can't draw, atlas is locked");var o=this.texSize,s=this.texRows,u=this.texHeight,l=this.getScale(n),c=l.scale,f=l.texW,d=l.texH,h=function(m,x){if(i&&x){var E=x.context,O=m.x,S=m.row,T=O,P=u*S;E.save(),E.translate(T,P),E.scale(c,c),i(E,n),E.restore()}},p=[null,null],g=function(){h(a.freePointer,a.canvas),p[0]={x:a.freePointer.x,y:a.freePointer.row*u,w:f,h:d},p[1]={x:a.freePointer.x+f,y:a.freePointer.row*u,w:0,h:d},a.freePointer.x+=f,a.freePointer.x==o&&(a.freePointer.x=0,a.freePointer.row++)},y=function(){var m=a.scratch,x=a.canvas;m.clear(),h({x:0,row:0},m);var E=o-a.freePointer.x,O=f-E,S=u;{var T=a.freePointer.x,P=a.freePointer.row*u,I=E;x.context.drawImage(m,0,0,I,S,T,P,I,S),p[0]={x:T,y:P,w:I,h:d}}{var k=E,L=(a.freePointer.row+1)*u,B=O;x&&x.context.drawImage(m,k,0,B,S,0,L,B,S),p[1]={x:0,y:L,w:B,h:d}}a.freePointer.x=O,a.freePointer.row++},b=function(){a.freePointer.x=0,a.freePointer.row++};if(this.freePointer.x+f<=o)g();else{if(this.freePointer.row>=s-1)return!1;this.freePointer.x===o?(b(),g()):this.enableWrapping?y():(b(),g())}return this.keyToLocation.set(t,p),this.needsBuffer=!0,p}},{key:"getOffsets",value:function(t){return this.keyToLocation.get(t)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(t){if(this.locked)return!1;var n=this.texSize,i=this.texRows,a=this.getScale(t),o=a.texW;return this.freePointer.x+o>n?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},a=i.forceRedraw,o=a===void 0?!1:a,s=i.filterEle,u=s===void 0?function(){return!0}:s,l=i.filterType,c=l===void 0?function(){return!0}:l,f=!1,d=!1,h=Ac(t),p;try{for(h.s();!(p=h.n()).done;){var g=p.value;if(u(g)){var y=Ac(this.renderTypes.values()),b;try{var _=function(){var x=b.value,E=x.type;if(c(E)){var O=n.collections.get(x.collection),S=x.getKey(g),T=Array.isArray(S)?S:[S];if(o)T.forEach(function(L){return O.markKeyForGC(L)}),d=!0;else{var P=x.getID?x.getID(g):g.id(),I=n._key(E,P),k=n.typeAndIdToKey.get(I);k!==void 0&&!Xee(T,k)&&(f=!0,n.typeAndIdToKey.delete(I),k.forEach(function(L){return O.markKeyForGC(L)}))}}};for(y.s();!(b=y.n()).done;)_()}catch(m){y.e(m)}finally{y.f()}}}}catch(m){h.e(m)}finally{h.f()}return d&&(this.gc(),f=!1),f}},{key:"gc",value:function(){var t=Ac(this.collections.values()),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;i.gc()}}catch(a){t.e(a)}finally{t.f()}}},{key:"getOrCreateAtlas",value:function(t,n,i,a){var o=this.renderTypes.get(n),s=this.collections.get(o.collection),u=!1,l=s.draw(a,i,function(d){o.drawClipped?(d.save(),d.beginPath(),d.rect(0,0,i.w,i.h),d.clip(),o.drawElement(d,t,i,!0,!0),d.restore()):o.drawElement(d,t,i,!0,!0),u=!0});if(u){var c=o.getID?o.getID(t):t.id(),f=this._key(n,c);this.typeAndIdToKey.has(f)?this.typeAndIdToKey.get(f).push(a):this.typeAndIdToKey.set(f,[a])}return l}},{key:"getAtlasInfo",value:function(t,n){var i=this,a=this.renderTypes.get(n),o=a.getKey(t),s=Array.isArray(o)?o:[o];return s.map(function(u){var l=a.getBoundingBox(t,u),c=i.getOrCreateAtlas(t,n,l,u),f=c.getOffsets(u),d=Uo(f,2),h=d[0],p=d[1];return{atlas:c,tex:h,tex1:h,tex2:p,bb:l}})}},{key:"getDebugInfo",value:function(){var t=[],n=Ac(this.collections),i;try{for(n.s();!(i=n.n()).done;){var a=Uo(i.value,2),o=a[0],s=a[1],u=s.getCounts(),l=u.keyCount,c=u.atlasCount;t.push({type:o,keyCount:l,atlasCount:c})}}catch(f){n.e(f)}finally{n.f()}return t}}])})(),ste=(function(){function r(e){zp(this,r),this.globalOptions=e,this.atlasSize=e.webglTexSize,this.maxAtlasesPerBatch=e.webglTexPerBatch,this.batchAtlases=[]}return qp(r,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(t,n){return n})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(t){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(t):!0}},{key:"getAtlasIndexForBatch",value:function(t){var n=this.batchAtlases.indexOf(t);if(n<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(t),n=this.batchAtlases.length-1}return n}}])})(),ute=` +`),y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(o),s)for(var u=0;u=r.desktopTapThreshold2}var un=a(_e);Vr&&(r.hoverData.tapholdCancelled=!0);var bn=function(){var Ir=r.hoverData.dragDelta=r.hoverData.dragDelta||[];Ir.length===0?(Ir.push(Rr[0]),Ir.push(Rr[1])):(Ir[0]+=Rr[0],Ir[1]+=Rr[1])};Qe=!0,i(Yt,["mousemove","vmousemove","tapdrag"],_e,{x:ct[0],y:ct[1]});var wn=function(Ir){return{originalEvent:_e,type:Ir,position:{x:ct[0],y:ct[1]}}},_n=function(){r.data.bgActivePosistion=void 0,r.hoverData.selecting||Ze.emit(wn("boxstart")),jt[4]=1,r.hoverData.selecting=!0,r.redrawHint("select",!0),r.redraw()};if(r.hoverData.which===3){if(Vr){var xn=wn("cxtdrag");Ut?Ut.emit(xn):Ze.emit(xn),r.hoverData.cxtDragged=!0,(!r.hoverData.cxtOver||Yt!==r.hoverData.cxtOver)&&(r.hoverData.cxtOver&&r.hoverData.cxtOver.emit(wn("cxtdragout")),r.hoverData.cxtOver=Yt,Yt&&Yt.emit(wn("cxtdragover")))}}else if(r.hoverData.dragging){if(Qe=!0,Ze.panningEnabled()&&Ze.userPanningEnabled()){var on;if(r.hoverData.justStartedPan){var Nn=r.hoverData.mdownPos;on={x:(ct[0]-Nn[0])*nt,y:(ct[1]-Nn[1])*nt},r.hoverData.justStartedPan=!1}else on={x:Rr[0]*nt,y:Rr[1]*nt};Ze.panBy(on),Ze.emit(wn("dragpan")),r.hoverData.dragged=!0}ct=r.projectIntoViewport(_e.clientX,_e.clientY)}else if(jt[4]==1&&(Ut==null||Ut.pannable())){if(Vr){if(!r.hoverData.dragging&&Ze.boxSelectionEnabled()&&(un||!Ze.panningEnabled()||!Ze.userPanningEnabled()))_n();else if(!r.hoverData.selecting&&Ze.panningEnabled()&&Ze.userPanningEnabled()){var fi=o(Ut,r.hoverData.downs);fi&&(r.hoverData.dragging=!0,r.hoverData.justStartedPan=!0,jt[4]=0,r.data.bgActivePosistion=vm(Lt),r.redrawHint("select",!0),r.redraw())}Ut&&Ut.pannable()&&Ut.active()&&Ut.unactivate()}}else{if(Ut&&Ut.pannable()&&Ut.active()&&Ut.unactivate(),(!Ut||!Ut.grabbed())&&Yt!=sr&&(sr&&i(sr,["mouseout","tapdragout"],_e,{x:ct[0],y:ct[1]}),Yt&&i(Yt,["mouseover","tapdragover"],_e,{x:ct[0],y:ct[1]}),r.hoverData.last=Yt),Ut)if(Vr){if(Ze.boxSelectionEnabled()&&un)Ut&&Ut.grabbed()&&(b(Xt),Ut.emit(wn("freeon")),Xt.emit(wn("free")),r.dragData.didDrag&&(Ut.emit(wn("dragfreeon")),Xt.emit(wn("dragfree")))),_n();else if(Ut&&Ut.grabbed()&&r.nodeIsDraggable(Ut)){var gn=!r.dragData.didDrag;gn&&r.redrawHint("eles",!0),r.dragData.didDrag=!0,r.hoverData.draggingEles||g(Xt,{inDragLayer:!0});var yn={x:0,y:0};if(Ht(Rr[0])&&Ht(Rr[1])&&(yn.x+=Rr[0],yn.y+=Rr[1],gn)){var Jn=r.hoverData.dragDelta;Jn&&Ht(Jn[0])&&Ht(Jn[1])&&(yn.x+=Jn[0],yn.y+=Jn[1])}r.hoverData.draggingEles=!0,Xt.silentShift(yn).emit(wn("position")).emit(wn("drag")),r.redrawHint("drag",!0),r.redraw()}}else bn();Qe=!0}if(jt[2]=ct[0],jt[3]=ct[1],Qe)return _e.stopPropagation&&_e.stopPropagation(),_e.preventDefault&&_e.preventDefault(),!1}},!1);var L,B,j;r.registerBinding(e,"mouseup",function(_e){if(!(r.hoverData.which===1&&_e.which!==1&&r.hoverData.capture)){var Ue=r.hoverData.capture;if(Ue){r.hoverData.capture=!1;var Qe=r.cy,Ze=r.projectIntoViewport(_e.clientX,_e.clientY),nt=r.selection,It=r.findNearestElement(Ze[0],Ze[1],!0,!1),ct=r.dragData.possibleDragElements,Lt=r.hoverData.down,Rt=a(_e);r.data.bgActivePosistion&&(r.redrawHint("select",!0),r.redraw()),r.hoverData.tapholdCancelled=!0,r.data.bgActivePosistion=void 0,Lt&&Lt.unactivate();var jt=function(Br){return{originalEvent:_e,type:Br,position:{x:Ze[0],y:Ze[1]}}};if(r.hoverData.which===3){var Yt=jt("cxttapend");if(Lt?Lt.emit(Yt):Qe.emit(Yt),!r.hoverData.cxtDragged){var sr=jt("cxttap");Lt?Lt.emit(sr):Qe.emit(sr)}r.hoverData.cxtDragged=!1,r.hoverData.which=null}else if(r.hoverData.which===1){if(i(It,["mouseup","tapend","vmouseup"],_e,{x:Ze[0],y:Ze[1]}),!r.dragData.didDrag&&!r.hoverData.dragged&&!r.hoverData.selecting&&!r.hoverData.isOverThresholdDrag&&(i(Lt,["click","tap","vclick"],_e,{x:Ze[0],y:Ze[1]}),B=!1,_e.timeStamp-j<=Qe.multiClickDebounceTime()?(L&&clearTimeout(L),B=!0,j=null,i(Lt,["dblclick","dbltap","vdblclick"],_e,{x:Ze[0],y:Ze[1]})):(L=setTimeout(function(){B||i(Lt,["oneclick","onetap","voneclick"],_e,{x:Ze[0],y:Ze[1]})},Qe.multiClickDebounceTime()),j=_e.timeStamp)),Lt==null&&!r.dragData.didDrag&&!r.hoverData.selecting&&!r.hoverData.dragged&&!a(_e)&&(Qe.$(t).unselect(["tapunselect"]),ct.length>0&&r.redrawHint("eles",!0),r.dragData.possibleDragElements=ct=Qe.collection()),It==Lt&&!r.dragData.didDrag&&!r.hoverData.selecting&&It!=null&&It._private.selectable&&(r.hoverData.dragging||(Qe.selectionType()==="additive"||Rt?It.selected()?It.unselect(["tapunselect"]):It.select(["tapselect"]):Rt||(Qe.$(t).unmerge(It).unselect(["tapunselect"]),It.select(["tapselect"]))),r.redrawHint("eles",!0)),r.hoverData.selecting){var Ut=Qe.collection(r.getAllInBox(nt[0],nt[1],nt[2],nt[3]));r.redrawHint("select",!0),Ut.length>0&&r.redrawHint("eles",!0),Qe.emit(jt("boxend"));var Rr=function(Br){return Br.selectable()&&!Br.selected()};Qe.selectionType()==="additive"||Rt||Qe.$(t).unmerge(Ut).unselect(),Ut.emit(jt("box")).stdFilter(Rr).select().emit(jt("boxselect")),r.redraw()}if(r.hoverData.dragging&&(r.hoverData.dragging=!1,r.redrawHint("select",!0),r.redrawHint("eles",!0),r.redraw()),!nt[4]){r.redrawHint("drag",!0),r.redrawHint("eles",!0);var Xt=Lt&&Lt.grabbed();b(ct),Xt&&(Lt.emit(jt("freeon")),ct.emit(jt("free")),r.dragData.didDrag&&(Lt.emit(jt("dragfreeon")),ct.emit(jt("dragfree"))))}}nt[4]=0,r.hoverData.down=null,r.hoverData.cxtStarted=!1,r.hoverData.draggingEles=!1,r.hoverData.selecting=!1,r.hoverData.isOverThresholdDrag=!1,r.dragData.didDrag=!1,r.hoverData.dragged=!1,r.hoverData.dragDelta=[],r.hoverData.mdownPos=null,r.hoverData.mdownGPos=null,r.hoverData.which=null}}},!1);var z=[],H=4,q,W=1e5,$=function(_e,Ue){for(var Qe=0;Qe<_e.length;Qe++)if(_e[Qe]%Ue!==0)return!1;return!0},J=function(_e){for(var Ue=Math.abs(_e[0]),Qe=1;Qe<_e.length;Qe++)if(Math.abs(_e[Qe])!==Ue)return!1;return!0},X=function(_e){var Ue=!1,Qe=_e.deltaY;if(Qe==null&&(_e.wheelDeltaY!=null?Qe=_e.wheelDeltaY/4:_e.wheelDelta!=null&&(Qe=_e.wheelDelta/4)),Qe!==0){if(q==null)if(z.length>=H){var Ze=z;if(q=$(Ze,5),!q){var nt=Math.abs(Ze[0]);q=J(Ze)&&nt>5}if(q)for(var It=0;It5&&(Qe=Q5(Qe)*5),sr=Qe/-250,q&&(sr/=W,sr*=3),sr=sr*r.wheelSensitivity;var Ut=_e.deltaMode===1;Ut&&(sr*=33);var Rr=ct.zoom()*Math.pow(10,sr);_e.type==="gesturechange"&&(Rr=r.gestureStartZoom*_e.scale),ct.zoom({level:Rr,renderedPosition:{x:Yt[0],y:Yt[1]}}),ct.emit({type:_e.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:_e,position:{x:jt[0],y:jt[1]}})}}}};r.registerBinding(r.container,"wheel",X,!0),r.registerBinding(e,"scroll",function(_e){r.scrollingPage=!0,clearTimeout(r.scrollingPageTimeout),r.scrollingPageTimeout=setTimeout(function(){r.scrollingPage=!1},250)},!0),r.registerBinding(r.container,"gesturestart",function(_e){r.gestureStartZoom=r.cy.zoom(),r.hasTouchStarted||_e.preventDefault()},!0),r.registerBinding(r.container,"gesturechange",function(tt){r.hasTouchStarted||X(tt)},!0),r.registerBinding(r.container,"mouseout",function(_e){var Ue=r.projectIntoViewport(_e.clientX,_e.clientY);r.cy.emit({originalEvent:_e,type:"mouseout",position:{x:Ue[0],y:Ue[1]}})},!1),r.registerBinding(r.container,"mouseover",function(_e){var Ue=r.projectIntoViewport(_e.clientX,_e.clientY);r.cy.emit({originalEvent:_e,type:"mouseover",position:{x:Ue[0],y:Ue[1]}})},!1);var Z,ue,re,ne,le,ce,pe,fe,se,de,ge,Oe,ke,De=function(_e,Ue,Qe,Ze){return Math.sqrt((Qe-_e)*(Qe-_e)+(Ze-Ue)*(Ze-Ue))},Ne=function(_e,Ue,Qe,Ze){return(Qe-_e)*(Qe-_e)+(Ze-Ue)*(Ze-Ue)},Ce;r.registerBinding(r.container,"touchstart",Ce=function(_e){if(r.hasTouchStarted=!0,!!I(_e)){m(),r.touchData.capture=!0,r.data.bgActivePosistion=void 0;var Ue=r.cy,Qe=r.touchData.now,Ze=r.touchData.earlier;if(_e.touches[0]){var nt=r.projectIntoViewport(_e.touches[0].clientX,_e.touches[0].clientY);Qe[0]=nt[0],Qe[1]=nt[1]}if(_e.touches[1]){var nt=r.projectIntoViewport(_e.touches[1].clientX,_e.touches[1].clientY);Qe[2]=nt[0],Qe[3]=nt[1]}if(_e.touches[2]){var nt=r.projectIntoViewport(_e.touches[2].clientX,_e.touches[2].clientY);Qe[4]=nt[0],Qe[5]=nt[1]}var It=function(un){return{originalEvent:_e,type:un,position:{x:Qe[0],y:Qe[1]}}};if(_e.touches[1]){r.touchData.singleTouchMoved=!0,b(r.dragData.touchDragEles);var ct=r.findContainerClientCoords();se=ct[0],de=ct[1],ge=ct[2],Oe=ct[3],Z=_e.touches[0].clientX-se,ue=_e.touches[0].clientY-de,re=_e.touches[1].clientX-se,ne=_e.touches[1].clientY-de,ke=0<=Z&&Z<=ge&&0<=re&&re<=ge&&0<=ue&&ue<=Oe&&0<=ne&&ne<=Oe;var Lt=Ue.pan(),Rt=Ue.zoom();le=De(Z,ue,re,ne),ce=Ne(Z,ue,re,ne),pe=[(Z+re)/2,(ue+ne)/2],fe=[(pe[0]-Lt.x)/Rt,(pe[1]-Lt.y)/Rt];var jt=200,Yt=jt*jt;if(ce=1){for(var mr=r.touchData.startPosition=[null,null,null,null,null,null],ur=0;ur=r.touchTapThreshold2}if(Ue&&r.touchData.cxt){_e.preventDefault();var ur=_e.touches[0].clientX-se,sn=_e.touches[0].clientY-de,Fr=_e.touches[1].clientX-se,un=_e.touches[1].clientY-de,bn=Ne(ur,sn,Fr,un),wn=bn/ce,_n=150,xn=_n*_n,on=1.5,Nn=on*on;if(wn>=Nn||bn>=xn){r.touchData.cxt=!1,r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var fi=Rt("cxttapend");r.touchData.start?(r.touchData.start.unactivate().emit(fi),r.touchData.start=null):Ze.emit(fi)}}if(Ue&&r.touchData.cxt){var fi=Rt("cxtdrag");r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.touchData.start?r.touchData.start.emit(fi):Ze.emit(fi),r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxtDragged=!0;var gn=r.findNearestElement(nt[0],nt[1],!0,!0);(!r.touchData.cxtOver||gn!==r.touchData.cxtOver)&&(r.touchData.cxtOver&&r.touchData.cxtOver.emit(Rt("cxtdragout")),r.touchData.cxtOver=gn,gn&&gn.emit(Rt("cxtdragover")))}else if(Ue&&_e.touches[2]&&Ze.boxSelectionEnabled())_e.preventDefault(),r.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,r.touchData.selecting||Ze.emit(Rt("boxstart")),r.touchData.selecting=!0,r.touchData.didSelect=!0,Qe[4]=1,!Qe||Qe.length===0||Qe[0]===void 0?(Qe[0]=(nt[0]+nt[2]+nt[4])/3,Qe[1]=(nt[1]+nt[3]+nt[5])/3,Qe[2]=(nt[0]+nt[2]+nt[4])/3+1,Qe[3]=(nt[1]+nt[3]+nt[5])/3+1):(Qe[2]=(nt[0]+nt[2]+nt[4])/3,Qe[3]=(nt[1]+nt[3]+nt[5])/3),r.redrawHint("select",!0),r.redraw();else if(Ue&&_e.touches[1]&&!r.touchData.didSelect&&Ze.zoomingEnabled()&&Ze.panningEnabled()&&Ze.userZoomingEnabled()&&Ze.userPanningEnabled()){_e.preventDefault(),r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var yn=r.dragData.touchDragEles;if(yn){r.redrawHint("drag",!0);for(var Jn=0;Jn0&&!r.hoverData.draggingEles&&!r.swipePanning&&r.data.bgActivePosistion!=null&&(r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.redraw())}},!1);var Q;r.registerBinding(e,"touchcancel",Q=function(_e){var Ue=r.touchData.start;r.touchData.capture=!1,Ue&&Ue.unactivate()});var ie,we,Ee,Me;if(r.registerBinding(e,"touchend",ie=function(_e){var Ue=r.touchData.start,Qe=r.touchData.capture;if(Qe)_e.touches.length===0&&(r.touchData.capture=!1),_e.preventDefault();else return;var Ze=r.selection;r.swipePanning=!1,r.hoverData.draggingEles=!1;var nt=r.cy,It=nt.zoom(),ct=r.touchData.now,Lt=r.touchData.earlier;if(_e.touches[0]){var Rt=r.projectIntoViewport(_e.touches[0].clientX,_e.touches[0].clientY);ct[0]=Rt[0],ct[1]=Rt[1]}if(_e.touches[1]){var Rt=r.projectIntoViewport(_e.touches[1].clientX,_e.touches[1].clientY);ct[2]=Rt[0],ct[3]=Rt[1]}if(_e.touches[2]){var Rt=r.projectIntoViewport(_e.touches[2].clientX,_e.touches[2].clientY);ct[4]=Rt[0],ct[5]=Rt[1]}var jt=function(xn){return{originalEvent:_e,type:xn,position:{x:ct[0],y:ct[1]}}};Ue&&Ue.unactivate();var Yt;if(r.touchData.cxt){if(Yt=jt("cxttapend"),Ue?Ue.emit(Yt):nt.emit(Yt),!r.touchData.cxtDragged){var sr=jt("cxttap");Ue?Ue.emit(sr):nt.emit(sr)}r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxt=!1,r.touchData.start=null,r.redraw();return}if(!_e.touches[2]&&nt.boxSelectionEnabled()&&r.touchData.selecting){r.touchData.selecting=!1;var Ut=nt.collection(r.getAllInBox(Ze[0],Ze[1],Ze[2],Ze[3]));Ze[0]=void 0,Ze[1]=void 0,Ze[2]=void 0,Ze[3]=void 0,Ze[4]=0,r.redrawHint("select",!0),nt.emit(jt("boxend"));var Rr=function(xn){return xn.selectable()&&!xn.selected()};Ut.emit(jt("box")).stdFilter(Rr).select().emit(jt("boxselect")),Ut.nonempty()&&r.redrawHint("eles",!0),r.redraw()}if(Ue!=null&&Ue.unactivate(),_e.touches[2])r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);else if(!_e.touches[1]){if(!_e.touches[0]){if(!_e.touches[0]){r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var Xt=r.dragData.touchDragEles;if(Ue!=null){var Vr=Ue._private.grabbed;b(Xt),r.redrawHint("drag",!0),r.redrawHint("eles",!0),Vr&&(Ue.emit(jt("freeon")),Xt.emit(jt("free")),r.dragData.didDrag&&(Ue.emit(jt("dragfreeon")),Xt.emit(jt("dragfree")))),i(Ue,["touchend","tapend","vmouseup","tapdragout"],_e,{x:ct[0],y:ct[1]}),Ue.unactivate(),r.touchData.start=null}else{var Br=r.findNearestElement(ct[0],ct[1],!0,!0);i(Br,["touchend","tapend","vmouseup","tapdragout"],_e,{x:ct[0],y:ct[1]})}var mr=r.touchData.startPosition[0]-ct[0],ur=mr*mr,sn=r.touchData.startPosition[1]-ct[1],Fr=sn*sn,un=ur+Fr,bn=un*It*It;r.touchData.singleTouchMoved||(Ue||nt.$(":selected").unselect(["tapunselect"]),i(Ue,["tap","vclick"],_e,{x:ct[0],y:ct[1]}),we=!1,_e.timeStamp-Me<=nt.multiClickDebounceTime()?(Ee&&clearTimeout(Ee),we=!0,Me=null,i(Ue,["dbltap","vdblclick"],_e,{x:ct[0],y:ct[1]})):(Ee=setTimeout(function(){we||i(Ue,["onetap","voneclick"],_e,{x:ct[0],y:ct[1]})},nt.multiClickDebounceTime()),Me=_e.timeStamp)),Ue!=null&&!r.dragData.didDrag&&Ue._private.selectable&&bn"u"){var Ie=[],Ye=function(_e){return{clientX:_e.clientX,clientY:_e.clientY,force:1,identifier:_e.pointerId,pageX:_e.pageX,pageY:_e.pageY,radiusX:_e.width/2,radiusY:_e.height/2,screenX:_e.screenX,screenY:_e.screenY,target:_e.target}},ot=function(_e){return{event:_e,touch:Ye(_e)}},mt=function(_e){Ie.push(ot(_e))},wt=function(_e){for(var Ue=0;Ue0)return Z[0]}return null},p=Object.keys(d),g=0;g0?h:pF(a,o,e,t,n,i,s,u)},checkPoint:function(e,t,n,i,a,o,s,u){u=u==="auto"?Mp(i,a):u;var l=2*u;if(pv(e,t,this.points,o,s,i,a-l,[0,-1],n)||pv(e,t,this.points,o,s,i-l,a,[0,-1],n))return!0;var c=i/2+2*n,f=a/2+2*n,d=[o-c,s-f,o-c,s,o+c,s,o+c,s-f];return!!(Cc(e,t,d)||jg(e,t,l,l,o+i/2-u,s+a/2-u,n)||jg(e,t,l,l,o-i/2+u,s+a/2-u,n))}}};_v.registerNodeShapes=function(){var r=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",Fl(3,0)),this.generateRoundPolygon("round-triangle",Fl(3,0)),this.generatePolygon("rectangle",Fl(4,0)),r.square=r.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var t=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",t),this.generateRoundPolygon("round-diamond",t)}this.generatePolygon("pentagon",Fl(5,0)),this.generateRoundPolygon("round-pentagon",Fl(5,0)),this.generatePolygon("hexagon",Fl(6,0)),this.generateRoundPolygon("round-hexagon",Fl(6,0)),this.generatePolygon("heptagon",Fl(7,0)),this.generateRoundPolygon("round-heptagon",Fl(7,0)),this.generatePolygon("octagon",Fl(8,0)),this.generateRoundPolygon("round-octagon",Fl(8,0));var n=new Array(20);{var i=dM(5,0),a=dM(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=e.deqFastCost*x)break}else if(l){if(_>=e.deqCost*h||_>=e.deqAvgCost*d)break}else if(m>=e.deqNoDrawCost*jO)break;var E=e.deq(n,y,g);if(E.length>0)for(var O=0;O0&&(e.onDeqd(n,p),!l&&e.shouldRedraw(n,p,y,g)&&a())},s=e.priority||$5;i.beforeRender(o,s(n))}}}},aee=(function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dx;zp(this,r),this.idsByKey=new sv,this.keyForId=new sv,this.cachesByLvl=new sv,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=t}return qp(r,[{key:"getIdsFor",value:function(t){t==null&&Ia("Can not get id list for null key");var n=this.idsByKey,i=this.idsByKey.get(t);return i||(i=new $m,n.set(t,i)),i}},{key:"addIdForKey",value:function(t,n){t!=null&&this.getIdsFor(t).add(n)}},{key:"deleteIdForKey",value:function(t,n){t!=null&&this.getIdsFor(t).delete(n)}},{key:"getNumberOfIdsForKey",value:function(t){return t==null?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var n=t.id(),i=this.keyForId.get(n),a=this.getKey(t);this.deleteIdForKey(i,n),this.addIdForKey(a,n),this.keyForId.set(n,a)}},{key:"deleteKeyMappingFor",value:function(t){var n=t.id(),i=this.keyForId.get(n);this.deleteIdForKey(i,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(t){var n=t.id(),i=this.keyForId.get(n),a=this.getKey(t);return i!==a}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var n=this.cachesByLvl,i=this.lvls,a=n.get(t);return a||(a=new sv,n.set(t,a),i.push(t)),a}},{key:"getCache",value:function(t,n){return this.getCachesAt(n).get(t)}},{key:"get",value:function(t,n){var i=this.getKey(t),a=this.getCache(i,n);return a!=null&&this.updateKeyMappingFor(t),a}},{key:"getForCachedKey",value:function(t,n){var i=this.keyForId.get(t.id()),a=this.getCache(i,n);return a}},{key:"hasCache",value:function(t,n){return this.getCachesAt(n).has(t)}},{key:"has",value:function(t,n){var i=this.getKey(t);return this.hasCache(i,n)}},{key:"setCache",value:function(t,n,i){i.key=t,this.getCachesAt(n).set(t,i)}},{key:"set",value:function(t,n,i){var a=this.getKey(t);this.setCache(a,n,i),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,n){this.getCachesAt(n).delete(t)}},{key:"delete",value:function(t,n){var i=this.getKey(t);this.deleteCache(i,n)}},{key:"invalidateKey",value:function(t){var n=this;this.lvls.forEach(function(i){return n.deleteCache(t,i)})}},{key:"invalidate",value:function(t){var n=t.id(),i=this.keyForId.get(n);this.deleteKeyMappingFor(t);var a=this.doesEleInvalidateKey(t);return a&&this.invalidateKey(i),a||this.getNumberOfIdsForKey(i)===0}}])})(),_3=25,ww=50,nx=-4,TM=3,bU=7.99,oee=8,see=1024,uee=1024,lee=1024,cee=.2,fee=.8,dee=10,hee=.15,vee=.1,pee=.9,gee=.9,yee=100,mee=1,gm={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},bee=du({getKey:null,doesEleInvalidateKey:Dx,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:uF,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),vb=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var i=bee(t);kr(n,i),n.lookup=new aee(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},fs=vb.prototype;fs.reasons=gm;fs.getTextureQueue=function(r){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[r]=e.eleImgCaches[r]||[]};fs.getRetiredTextureQueue=function(r){var e=this,t=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=t[r]=t[r]||[];return n};fs.getElementQueue=function(){var r=this,e=r.eleCacheQueue=r.eleCacheQueue||new K1(function(t,n){return n.reqs-t.reqs});return e};fs.getElementKeyToQueue=function(){var r=this,e=r.eleKeyToCacheQueue=r.eleKeyToCacheQueue||{};return e};fs.getElement=function(r,e,t,n,i){var a=this,o=this.renderer,s=o.cy.zoom(),u=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!r.visible()||r.removed()||!a.allowEdgeTxrCaching&&r.isEdge()||!a.allowParentTxrCaching&&r.isParent())return null;if(n==null&&(n=Math.ceil(Z5(s*t))),n=bU||n>TM)return null;var l=Math.pow(2,n),c=e.h*l,f=e.w*l,d=o.eleTextBiggerThanMin(r,l);if(!this.isVisible(r,d))return null;var h=u.get(r,n);if(h&&h.invalidated&&(h.invalidated=!1,h.texture.invalidatedWidth-=h.width),h)return h;var p;if(c<=_3?p=_3:c<=ww?p=ww:p=Math.ceil(c/ww)*ww,c>lee||f>uee)return null;var g=a.getTextureQueue(p),y=g[g.length-2],b=function(){return a.recycleTexture(p,f)||a.addTexture(p,f)};y||(y=g[g.length-1]),y||(y=b()),y.width-y.usedWidthn;k--)P=a.getElement(r,e,t,k,gm.downscale);I()}else return a.queueElement(r,O.level-1),O;else{var L;if(!m&&!x&&!E)for(var B=n-1;B>=nx;B--){var j=u.get(r,B);if(j){L=j;break}}if(_(L))return a.queueElement(r,n),L;y.context.translate(y.usedWidth,0),y.context.scale(l,l),this.drawElement(y.context,r,e,d,!1),y.context.scale(1/l,1/l),y.context.translate(-y.usedWidth,0)}return h={x:y.usedWidth,texture:y,level:n,scale:l,width:f,height:c,scaledLabelShown:d},y.usedWidth+=Math.ceil(f+oee),y.eleCaches.push(h),u.set(r,n,h),a.checkTextureFullness(y),h};fs.invalidateElements=function(r){for(var e=0;e=cee*r.width&&this.retireTexture(r)};fs.checkTextureFullness=function(r){var e=this,t=e.getTextureQueue(r.height);r.usedWidth/r.width>fee&&r.fullnessChecks>=dee?Pp(t,r):r.fullnessChecks++};fs.retireTexture=function(r){var e=this,t=r.height,n=e.getTextureQueue(t),i=this.lookup;Pp(n,r),r.retired=!0;for(var a=r.eleCaches,o=0;o=e)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,K5(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),Pp(i,o),n.push(o),o}};fs.queueElement=function(r,e){var t=this,n=t.getElementQueue(),i=t.getElementKeyToQueue(),a=this.getKey(r),o=i[a];if(o)o.level=Math.max(o.level,e),o.eles.merge(r),o.reqs++,n.updateItem(o);else{var s={eles:r.spawn().merge(r),level:e,reqs:1,key:a};n.push(s),i[a]=s}};fs.dequeue=function(r){for(var e=this,t=e.getElementQueue(),n=e.getElementKeyToQueue(),i=[],a=e.lookup,o=0;o0;o++){var s=t.pop(),u=s.key,l=s.eles[0],c=a.hasCache(l,s.level);if(n[u]=null,c)continue;i.push(s);var f=e.getBoundingBox(l);e.getElement(l,f,r,s.level,gm.dequeue)}return i};fs.removeFromQueue=function(r){var e=this,t=e.getElementQueue(),n=e.getElementKeyToQueue(),i=this.getKey(r),a=n[i];a!=null&&(a.eles.length===1?(a.reqs=X5,t.updateItem(a),t.pop(),n[i]=null):a.eles.unmerge(r))};fs.onDequeue=function(r){this.onDequeues.push(r)};fs.offDequeue=function(r){Pp(this.onDequeues,r)};fs.setupDequeueing=mU.setupDequeueing({deqRedrawThreshold:yee,deqCost:hee,deqAvgCost:vee,deqNoDrawCost:pee,deqFastCost:gee,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=wee||t>Ux)return null}n.validateLayersElesOrdering(t,r);var u=n.layersByLevel,l=Math.pow(2,t),c=u[t]=u[t]||[],f,d=n.levelIsComplete(t,r),h,p=function(){var I=function(z){if(n.validateLayersElesOrdering(z,r),n.levelIsComplete(z,r))return h=u[z],!0},k=function(z){if(!h)for(var H=t+z;Db<=H&&H<=Ux&&!I(H);H+=z);};k(1),k(-1);for(var L=c.length-1;L>=0;L--){var B=c[L];B.invalid&&Pp(c,B)}};if(!d)p();else return c;var g=function(){if(!f){f=ql();for(var I=0;Ix3||B>x3)return null;var j=L*B;if(j>Ree)return null;var z=n.makeLayer(f,t);if(k!=null){var H=c.indexOf(k)+1;c.splice(H,0,z)}else(I.insert===void 0||I.insert)&&c.unshift(z);return z};if(n.skipping&&!s)return null;for(var b=null,_=r.length/_ee,m=!s,x=0;x=_||!vF(b.bb,E.boundingBox()))&&(b=y({insert:!0,after:b}),!b))return null;h||m?n.queueLayer(b,E):n.drawEleInLayer(b,E,t,e),b.eles.push(E),S[t]=b}return h||(m?null:c)};hu.getEleLevelForLayerLevel=function(r,e){return r};hu.drawEleInLayer=function(r,e,t,n){var i=this,a=this.renderer,o=r.context,s=e.boundingBox();s.w===0||s.h===0||!e.visible()||(t=i.getEleLevelForLayerLevel(t,n),a.setImgSmoothing(o,!1),a.drawCachedElement(o,e,null,null,t,Pee),a.setImgSmoothing(o,!0))};hu.levelIsComplete=function(r,e){var t=this,n=t.layersByLevel[r];if(!n||n.length===0)return!1;for(var i=0,a=0;a0||o.invalid)return!1;i+=o.eles.length}return i===e.length};hu.validateLayersElesOrdering=function(r,e){var t=this.layersByLevel[r];if(t)for(var n=0;n0){e=!0;break}}return e};hu.invalidateElements=function(r){var e=this;r.length!==0&&(e.lastInvalidationTime=vv(),!(r.length===0||!e.haveLayers())&&e.updateElementsInLayers(r,function(n,i,a){e.invalidateLayer(n)}))};hu.invalidateLayer=function(r){if(this.lastInvalidationTime=vv(),!r.invalid){var e=r.level,t=r.eles,n=this.layersByLevel[e];Pp(n,r),r.elesQueue=[],r.invalid=!0,r.replacement&&(r.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=e._private.rscratch;if(!(a&&!e.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var u;t&&(u=t,r.translate(-u.x1,-u.y1));var l=a?e.pstyle("opacity").value:1,c=a?e.pstyle("line-opacity").value:1,f=e.pstyle("curve-style").value,d=e.pstyle("line-style").value,h=e.pstyle("width").pfValue,p=e.pstyle("line-cap").value,g=e.pstyle("line-outline-width").value,y=e.pstyle("line-outline-color").value,b=l*c,_=l*c,m=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;f==="straight-triangle"?(o.eleStrokeStyle(r,e,z),o.drawEdgeTrianglePath(e,r,s.allpts)):(r.lineWidth=h,r.lineCap=p,o.eleStrokeStyle(r,e,z),o.drawEdgePath(e,r,s.allpts,d),r.lineCap="butt")},x=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;if(r.lineWidth=h+g,r.lineCap=p,g>0)o.colorStrokeStyle(r,y[0],y[1],y[2],z);else{r.lineCap="butt";return}f==="straight-triangle"?o.drawEdgeTrianglePath(e,r,s.allpts):(o.drawEdgePath(e,r,s.allpts,d),r.lineCap="butt")},E=function(){i&&o.drawEdgeOverlay(r,e)},O=function(){i&&o.drawEdgeUnderlay(r,e)},S=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_;o.drawArrowheads(r,e,z)},T=function(){o.drawElementText(r,e,null,n)};r.lineJoin="round";var P=e.pstyle("ghost").value==="yes";if(P){var I=e.pstyle("ghost-offset-x").pfValue,k=e.pstyle("ghost-offset-y").pfValue,L=e.pstyle("ghost-opacity").value,B=b*L;r.translate(I,k),m(B),S(B),r.translate(-I,-k)}else x();O(),m(),S(),E(),T(),t&&r.translate(u.x1,u.y1)}};var xU=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n){if(n.visible()){var i=n.pstyle("".concat(e,"-opacity")).value;if(i!==0){var a=this,o=a.usePaths(),s=n._private.rscratch,u=n.pstyle("".concat(e,"-padding")).pfValue,l=2*u,c=n.pstyle("".concat(e,"-color")).value;t.lineWidth=l,s.edgeType==="self"&&!o?t.lineCap="butt":t.lineCap="round",a.colorStrokeStyle(t,c[0],c[1],c[2],i),a.drawEdgePath(n,t,s.allpts,"solid")}}}};wv.drawEdgeOverlay=xU("overlay");wv.drawEdgeUnderlay=xU("underlay");wv.drawEdgePath=function(r,e,t,n){var i=r._private.rscratch,a=e,o,s=!1,u=this.usePaths(),l=r.pstyle("line-dash-pattern").pfValue,c=r.pstyle("line-dash-offset").pfValue;if(u){var f=t.join("$"),d=i.pathCacheKey&&i.pathCacheKey===f;d?(o=e=i.pathCache,s=!0):(o=e=new Path2D,i.pathCacheKey=f,i.pathCache=o)}if(a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(l),a.lineDashOffset=c;break;case"solid":a.setLineDash([]);break}if(!s&&!i.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(t[0],t[1]),i.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(n==null){if(a&&!o.eleTextBiggerThanMin(e))return}else if(n===!1)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var u=o.getLabelJustification(e);r.textAlign=u,r.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,c=e.pstyle("label"),f=e.pstyle("source-label"),d=e.pstyle("target-label");if(l||(!c||!c.value)&&(!f||!f.value)&&(!d||!d.value))return;r.textAlign="center",r.textBaseline="bottom"}var h=!t,p;t&&(p=t,r.translate(-p.x1,-p.y1)),i==null?(o.drawText(r,e,null,h,a),e.isEdge()&&(o.drawText(r,e,"source",h,a),o.drawText(r,e,"target",h,a))):o.drawText(r,e,i,h,a),t&&r.translate(p.x1,p.y1)};ny.getFontCache=function(r){var e;this.fontCaches=this.fontCaches||[];for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:!0,n=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=t?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*s,l=e.pstyle("color").value,c=e.pstyle("text-outline-color").value;r.font=n+" "+o+" "+i+" "+a,r.lineJoin="round",this.colorFillStyle(r,l[0],l[1],l[2],s),this.colorStrokeStyle(r,c[0],c[1],c[2],u)};function zee(r,e,t,n,i){var a=Math.min(n,i),o=a/2,s=e+n/2,u=t+i/2;r.beginPath(),r.arc(s,u,o,0,Math.PI*2),r.closePath()}function T3(r,e,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(a,n/2,i/2);r.beginPath(),r.moveTo(e+o,t),r.lineTo(e+n-o,t),r.quadraticCurveTo(e+n,t,e+n,t+o),r.lineTo(e+n,t+i-o),r.quadraticCurveTo(e+n,t+i,e+n-o,t+i),r.lineTo(e+o,t+i),r.quadraticCurveTo(e,t+i,e,t+i-o),r.lineTo(e,t+o),r.quadraticCurveTo(e,t,e+o,t),r.closePath()}ny.getTextAngle=function(r,e){var t,n=r._private,i=n.rscratch,a=e?e+"-":"",o=r.pstyle(a+"text-rotation");if(o.strValue==="autorotate"){var s=Tc(i,"labelAngle",e);t=r.isEdge()?s:0}else o.strValue==="none"?t=0:t=o.pfValue;return t};ny.drawText=function(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=e._private,o=a.rscratch,s=i?e.effectiveOpacity():1;if(!(i&&(s===0||e.pstyle("text-opacity").value===0))){t==="main"&&(t=null);var u=Tc(o,"labelX",t),l=Tc(o,"labelY",t),c,f,d=this.getLabelText(e,t);if(d!=null&&d!==""&&!isNaN(u)&&!isNaN(l)){this.setupTextStyle(r,e,i);var h=t?t+"-":"",p=Tc(o,"labelWidth",t),g=Tc(o,"labelHeight",t),y=e.pstyle(h+"text-margin-x").pfValue,b=e.pstyle(h+"text-margin-y").pfValue,_=e.isEdge(),m=e.pstyle("text-halign").value,x=e.pstyle("text-valign").value;_&&(m="center",x="center"),u+=y,l+=b;var E;switch(n?E=this.getTextAngle(e,t):E=0,E!==0&&(c=u,f=l,r.translate(c,f),r.rotate(E),u=0,l=0),x){case"top":break;case"center":l+=g/2;break;case"bottom":l+=g;break}var O=e.pstyle("text-background-opacity").value,S=e.pstyle("text-border-opacity").value,T=e.pstyle("text-border-width").pfValue,P=e.pstyle("text-background-padding").pfValue,I=e.pstyle("text-background-shape").strValue,k=I==="round-rectangle"||I==="roundrectangle",L=I==="circle",B=2;if(O>0||T>0&&S>0){var j=r.fillStyle,z=r.strokeStyle,H=r.lineWidth,q=e.pstyle("text-background-color").value,W=e.pstyle("text-border-color").value,$=e.pstyle("text-border-style").value,J=O>0,X=T>0&&S>0,Z=u-P;switch(m){case"left":Z-=p;break;case"center":Z-=p/2;break}var ue=l-g-P,re=p+2*P,ne=g+2*P;if(J&&(r.fillStyle="rgba(".concat(q[0],",").concat(q[1],",").concat(q[2],",").concat(O*s,")")),X&&(r.strokeStyle="rgba(".concat(W[0],",").concat(W[1],",").concat(W[2],",").concat(S*s,")"),r.lineWidth=T,r.setLineDash))switch($){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"double":r.lineWidth=T/4,r.setLineDash([]);break;case"solid":default:r.setLineDash([]);break}if(k?(r.beginPath(),T3(r,Z,ue,re,ne,B)):L?(r.beginPath(),zee(r,Z,ue,re,ne)):(r.beginPath(),r.rect(Z,ue,re,ne)),J&&r.fill(),X&&r.stroke(),X&&$==="double"){var le=T/2;r.beginPath(),k?T3(r,Z+le,ue+le,re-2*le,ne-2*le,B):r.rect(Z+le,ue+le,re-2*le,ne-2*le),r.stroke()}r.fillStyle=j,r.strokeStyle=z,r.lineWidth=H,r.setLineDash&&r.setLineDash([])}var ce=2*e.pstyle("text-outline-width").pfValue;if(ce>0&&(r.lineWidth=ce),e.pstyle("text-wrap").value==="wrap"){var pe=Tc(o,"labelWrapCachedLines",t),fe=Tc(o,"labelLineHeight",t),se=p/2,de=this.getLabelJustification(e);switch(de==="auto"||(m==="left"?de==="left"?u+=-p:de==="center"&&(u+=-se):m==="center"?de==="left"?u+=-se:de==="right"&&(u+=se):m==="right"&&(de==="center"?u+=se:de==="right"&&(u+=p))),x){case"top":l-=(pe.length-1)*fe;break;case"center":case"bottom":l-=(pe.length-1)*fe;break}for(var ge=0;ge0&&r.strokeText(pe[ge],u,l),r.fillText(pe[ge],u,l),l+=fe}else ce>0&&r.strokeText(d,u,l),r.fillText(d,u,l);E!==0&&(r.rotate(-E),r.translate(-c,-f))}}};var Vp={};Vp.drawNode=function(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,u,l=e._private,c=l.rscratch,f=e.position();if(!(!Ht(f.x)||!Ht(f.y))&&!(a&&!e.visible())){var d=a?e.effectiveOpacity():1,h=o.usePaths(),p,g=!1,y=e.padding();s=e.width()+2*y,u=e.height()+2*y;var b;t&&(b=t,r.translate(-b.x1,-b.y1));for(var _=e.pstyle("background-image"),m=_.value,x=new Array(m.length),E=new Array(m.length),O=0,S=0;S0&&arguments[0]!==void 0?arguments[0]:B;o.eleFillStyle(r,e,vt)},fe=function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X;o.colorStrokeStyle(r,j[0],j[1],j[2],vt)},se=function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne;o.colorStrokeStyle(r,ue[0],ue[1],ue[2],vt)},de=function(vt,tt,_e,Ue){var Qe=o.nodePathCache=o.nodePathCache||[],Ze=sF(_e==="polygon"?_e+","+Ue.join(","):_e,""+tt,""+vt,""+ce),nt=Qe[Ze],It,ct=!1;return nt!=null?(It=nt,ct=!0,c.pathCache=It):(It=new Path2D,Qe[Ze]=c.pathCache=It),{path:It,cacheHit:ct}},ge=e.pstyle("shape").strValue,Oe=e.pstyle("shape-polygon-points").pfValue;if(h){r.translate(f.x,f.y);var ke=de(s,u,ge,Oe);p=ke.path,g=ke.cacheHit}var De=function(){if(!g){var vt=f;h&&(vt={x:0,y:0}),o.nodeShapes[o.getNodeShape(e)].draw(p||r,vt.x,vt.y,s,u,ce,c)}h?r.fill(p):r.fill()},Ne=function(){for(var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_e=l.backgrounding,Ue=0,Qe=0;Qe0&&arguments[0]!==void 0?arguments[0]:!1,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d;o.hasPie(e)&&(o.drawPie(r,e,tt),vt&&(h||o.nodeShapes[o.getNodeShape(e)].draw(r,f.x,f.y,s,u,ce,c)))},Y=function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d;o.hasStripe(e)&&(r.save(),h?r.clip(c.pathCache):(o.nodeShapes[o.getNodeShape(e)].draw(r,f.x,f.y,s,u,ce,c),r.clip()),o.drawStripe(r,e,tt),r.restore(),vt&&(h||o.nodeShapes[o.getNodeShape(e)].draw(r,f.x,f.y,s,u,ce,c)))},Q=function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,tt=(k>0?k:-k)*vt,_e=k>0?0:255;k!==0&&(o.colorFillStyle(r,_e,_e,_e,tt),h?r.fill(p):r.fill())},ie=function(){if(L>0){if(r.lineWidth=L,r.lineCap=q,r.lineJoin=H,r.setLineDash)switch(z){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash($),r.lineDashOffset=J;break;case"solid":case"double":r.setLineDash([]);break}if(W!=="center"){if(r.save(),r.lineWidth*=2,W==="inside")h?r.clip(p):r.clip();else{var vt=new Path2D;vt.rect(-s/2-L,-u/2-L,s+2*L,u+2*L),vt.addPath(p),r.clip(vt,"evenodd")}h?r.stroke(p):r.stroke(),r.restore()}else h?r.stroke(p):r.stroke();if(z==="double"){r.lineWidth=L/3;var tt=r.globalCompositeOperation;r.globalCompositeOperation="destination-out",h?r.stroke(p):r.stroke(),r.globalCompositeOperation=tt}r.setLineDash&&r.setLineDash([])}},we=function(){if(Z>0){if(r.lineWidth=Z,r.lineCap="butt",r.setLineDash)switch(re){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"solid":case"double":r.setLineDash([]);break}var vt=f;h&&(vt={x:0,y:0});var tt=o.getNodeShape(e),_e=L;W==="inside"&&(_e=0),W==="outside"&&(_e*=2);var Ue=(s+_e+(Z+le))/s,Qe=(u+_e+(Z+le))/u,Ze=s*Ue,nt=u*Qe,It=o.nodeShapes[tt].points,ct;if(h){var Lt=de(Ze,nt,tt,It);ct=Lt.path}if(tt==="ellipse")o.drawEllipsePath(ct||r,vt.x,vt.y,Ze,nt);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(tt)){var Rt=0,jt=0,Yt=0;tt==="round-diamond"?Rt=(_e+le+Z)*1.4:tt==="round-heptagon"?(Rt=(_e+le+Z)*1.075,Yt=-(_e/2+le+Z)/35):tt==="round-hexagon"?Rt=(_e+le+Z)*1.12:tt==="round-pentagon"?(Rt=(_e+le+Z)*1.13,Yt=-(_e/2+le+Z)/15):tt==="round-tag"?(Rt=(_e+le+Z)*1.12,jt=(_e/2+Z+le)*.07):tt==="round-triangle"&&(Rt=(_e+le+Z)*(Math.PI/2),Yt=-(_e+le/2+Z)/Math.PI),Rt!==0&&(Ue=(s+Rt)/s,Ze=s*Ue,["round-hexagon","round-tag"].includes(tt)||(Qe=(u+Rt)/u,nt=u*Qe)),ce=ce==="auto"?yF(Ze,nt):ce;for(var sr=Ze/2,Ut=nt/2,Rr=ce+(_e+Z+le)/2,Xt=new Array(It.length/2),Vr=new Array(It.length/2),Br=0;Br0){if(i=i||n.position(),a==null||o==null){var h=n.padding();a=n.width()+2*h,o=n.height()+2*h}s.colorFillStyle(t,c[0],c[1],c[2],l),s.nodeShapes[f].draw(t,i.x,i.y,a+u*2,o+u*2,d),t.fill()}}}};Vp.drawNodeOverlay=EU("overlay");Vp.drawNodeUnderlay=EU("underlay");Vp.hasPie=function(r){return r=r[0],r._private.hasPie};Vp.hasStripe=function(r){return r=r[0],r._private.hasStripe};Vp.drawPie=function(r,e,t,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=e.pstyle("pie-size"),o=e.pstyle("pie-hole"),s=e.pstyle("pie-start-angle").pfValue,u=n.x,l=n.y,c=e.width(),f=e.height(),d=Math.min(c,f)/2,h,p=0,g=this.usePaths();if(g&&(u=0,l=0),a.units==="%"?d=d*a.pfValue:a.pfValue!==void 0&&(d=a.pfValue/2),o.units==="%"?h=d*o.pfValue:o.pfValue!==void 0&&(h=o.pfValue/2),!(h>=d))for(var y=1;y<=i.pieBackgroundN;y++){var b=e.pstyle("pie-"+y+"-background-size").value,_=e.pstyle("pie-"+y+"-background-color").value,m=e.pstyle("pie-"+y+"-background-opacity").value*t,x=b/100;x+p>1&&(x=1-p);var E=1.5*Math.PI+2*Math.PI*p;E+=s;var O=2*Math.PI*x,S=E+O;b===0||p>=1||p+x>1||(h===0?(r.beginPath(),r.moveTo(u,l),r.arc(u,l,d,E,S),r.closePath()):(r.beginPath(),r.arc(u,l,d,E,S),r.arc(u,l,h,S,E,!0),r.closePath()),this.colorFillStyle(r,_[0],_[1],_[2],m),r.fill(),p+=x)}};Vp.drawStripe=function(r,e,t,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=n.x,o=n.y,s=e.width(),u=e.height(),l=0,c=this.usePaths();r.save();var f=e.pstyle("stripe-direction").value,d=e.pstyle("stripe-size");switch(f){case"vertical":break;case"righward":r.rotate(-Math.PI/2);break}var h=s,p=u;d.units==="%"?(h=h*d.pfValue,p=p*d.pfValue):d.pfValue!==void 0&&(h=d.pfValue,p=d.pfValue),c&&(a=0,o=0),o-=h/2,a-=p/2;for(var g=1;g<=i.stripeBackgroundN;g++){var y=e.pstyle("stripe-"+g+"-background-size").value,b=e.pstyle("stripe-"+g+"-background-color").value,_=e.pstyle("stripe-"+g+"-background-opacity").value*t,m=y/100;m+l>1&&(m=1-l),!(y===0||l>=1||l+m>1)&&(r.beginPath(),r.rect(a,o+p*l,h,p*m),r.closePath(),this.colorFillStyle(r,b[0],b[1],b[2],_),r.fill(),l+=m)}r.restore()};var Gl={},qee=100;Gl.getPixelRatio=function(){var r=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),t=r.backingStorePixelRatio||r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/t};Gl.paintCache=function(r){for(var e=this.paintCaches=this.paintCaches||[],t=!0,n,i=0;ie.minMbLowQualFrames&&(e.motionBlurPxRatio=e.mbPxRBlurry)),e.clearingMotionBlur&&(e.motionBlurPxRatio=1),e.textureDrawLastFrame&&!f&&(c[e.NODE]=!0,c[e.SELECT_BOX]=!0);var _=t.style(),m=t.zoom(),x=o!==void 0?o:m,E=t.pan(),O={x:E.x,y:E.y},S={zoom:m,pan:{x:E.x,y:E.y}},T=e.prevViewport,P=T===void 0||S.zoom!==T.zoom||S.pan.x!==T.pan.x||S.pan.y!==T.pan.y;!P&&!(g&&!p)&&(e.motionBlurPxRatio=1),s&&(O=s),x*=u,O.x*=u,O.y*=u;var I=e.getCachedZSortedEles();function k(fe,se,de,ge,Oe){var ke=fe.globalCompositeOperation;fe.globalCompositeOperation="destination-out",e.colorFillStyle(fe,255,255,255,e.motionBlurTransparency),fe.fillRect(se,de,ge,Oe),fe.globalCompositeOperation=ke}function L(fe,se){var de,ge,Oe,ke;!e.clearingMotionBlur&&(fe===l.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]||fe===l.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG])?(de={x:E.x*h,y:E.y*h},ge=m*h,Oe=e.canvasWidth*h,ke=e.canvasHeight*h):(de=O,ge=x,Oe=e.canvasWidth,ke=e.canvasHeight),fe.setTransform(1,0,0,1,0,0),se==="motionBlur"?k(fe,0,0,Oe,ke):!n&&(se===void 0||se)&&fe.clearRect(0,0,Oe,ke),i||(fe.translate(de.x,de.y),fe.scale(ge,ge)),s&&fe.translate(s.x,s.y),o&&fe.scale(o,o)}if(f||(e.textureDrawLastFrame=!1),f){if(e.textureDrawLastFrame=!0,!e.textureCache){e.textureCache={},e.textureCache.bb=t.mutableElements().boundingBox(),e.textureCache.texture=e.data.bufferCanvases[e.TEXTURE_BUFFER];var B=e.data.bufferContexts[e.TEXTURE_BUFFER];B.setTransform(1,0,0,1,0,0),B.clearRect(0,0,e.canvasWidth*e.textureMult,e.canvasHeight*e.textureMult),e.render({forcedContext:B,drawOnlyNodeLayer:!0,forcedPxRatio:u*e.textureMult});var S=e.textureCache.viewport={zoom:t.zoom(),pan:t.pan(),width:e.canvasWidth,height:e.canvasHeight};S.mpan={x:(0-S.pan.x)/S.zoom,y:(0-S.pan.y)/S.zoom}}c[e.DRAG]=!1,c[e.NODE]=!1;var j=l.contexts[e.NODE],z=e.textureCache.texture,S=e.textureCache.viewport;j.setTransform(1,0,0,1,0,0),d?k(j,0,0,S.width,S.height):j.clearRect(0,0,S.width,S.height);var H=_.core("outside-texture-bg-color").value,q=_.core("outside-texture-bg-opacity").value;e.colorFillStyle(j,H[0],H[1],H[2],q),j.fillRect(0,0,S.width,S.height);var m=t.zoom();L(j,!1),j.clearRect(S.mpan.x,S.mpan.y,S.width/S.zoom/u,S.height/S.zoom/u),j.drawImage(z,S.mpan.x,S.mpan.y,S.width/S.zoom/u,S.height/S.zoom/u)}else e.textureOnViewport&&!n&&(e.textureCache=null);var W=t.extent(),$=e.pinching||e.hoverData.dragging||e.swipePanning||e.data.wheelZooming||e.hoverData.draggingEles||e.cy.animated(),J=e.hideEdgesOnViewport&&$,X=[];if(X[e.NODE]=!c[e.NODE]&&d&&!e.clearedForMotionBlur[e.NODE]||e.clearingMotionBlur,X[e.NODE]&&(e.clearedForMotionBlur[e.NODE]=!0),X[e.DRAG]=!c[e.DRAG]&&d&&!e.clearedForMotionBlur[e.DRAG]||e.clearingMotionBlur,X[e.DRAG]&&(e.clearedForMotionBlur[e.DRAG]=!0),c[e.NODE]||i||a||X[e.NODE]){var Z=d&&!X[e.NODE]&&h!==1,j=n||(Z?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]:l.contexts[e.NODE]),ue=d&&!Z?"motionBlur":void 0;L(j,ue),J?e.drawCachedNodes(j,I.nondrag,u,W):e.drawLayeredElements(j,I.nondrag,u,W),e.debug&&e.drawDebugPoints(j,I.nondrag),!i&&!d&&(c[e.NODE]=!1)}if(!a&&(c[e.DRAG]||i||X[e.DRAG])){var Z=d&&!X[e.DRAG]&&h!==1,j=n||(Z?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]:l.contexts[e.DRAG]);L(j,d&&!Z?"motionBlur":void 0),J?e.drawCachedNodes(j,I.drag,u,W):e.drawCachedElements(j,I.drag,u,W),e.debug&&e.drawDebugPoints(j,I.drag),!i&&!d&&(c[e.DRAG]=!1)}if(this.drawSelectionRectangle(r,L),d&&h!==1){var re=l.contexts[e.NODE],ne=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE],le=l.contexts[e.DRAG],ce=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG],pe=function(se,de,ge){se.setTransform(1,0,0,1,0,0),ge||!b?se.clearRect(0,0,e.canvasWidth,e.canvasHeight):k(se,0,0,e.canvasWidth,e.canvasHeight);var Oe=h;se.drawImage(de,0,0,e.canvasWidth*Oe,e.canvasHeight*Oe,0,0,e.canvasWidth,e.canvasHeight)};(c[e.NODE]||X[e.NODE])&&(pe(re,ne,X[e.NODE]),c[e.NODE]=!1),(c[e.DRAG]||X[e.DRAG])&&(pe(le,ce,X[e.DRAG]),c[e.DRAG]=!1)}e.prevViewport=S,e.clearingMotionBlur&&(e.clearingMotionBlur=!1,e.motionBlurCleared=!0,e.motionBlur=!0),d&&(e.motionBlurTimeout=setTimeout(function(){e.motionBlurTimeout=null,e.clearedForMotionBlur[e.NODE]=!1,e.clearedForMotionBlur[e.DRAG]=!1,e.motionBlur=!1,e.clearingMotionBlur=!f,e.mbFrames=0,c[e.NODE]=!0,c[e.DRAG]=!0,e.redraw()},qee)),n||t.emit("render")};var W0;Gl.drawSelectionRectangle=function(r,e){var t=this,n=t.cy,i=t.data,a=n.style(),o=r.drawOnlyNodeLayer,s=r.drawAllLayers,u=i.canvasNeedsRedraw,l=r.forcedContext;if(t.showFps||!o&&u[t.SELECT_BOX]&&!s){var c=l||i.contexts[t.SELECT_BOX];if(e(c),t.selection[4]==1&&(t.hoverData.selecting||t.touchData.selecting)){var f=t.cy.zoom(),d=a.core("selection-box-border-width").value/f;c.lineWidth=d,c.fillStyle="rgba("+a.core("selection-box-color").value[0]+","+a.core("selection-box-color").value[1]+","+a.core("selection-box-color").value[2]+","+a.core("selection-box-opacity").value+")",c.fillRect(t.selection[0],t.selection[1],t.selection[2]-t.selection[0],t.selection[3]-t.selection[1]),d>0&&(c.strokeStyle="rgba("+a.core("selection-box-border-color").value[0]+","+a.core("selection-box-border-color").value[1]+","+a.core("selection-box-border-color").value[2]+","+a.core("selection-box-opacity").value+")",c.strokeRect(t.selection[0],t.selection[1],t.selection[2]-t.selection[0],t.selection[3]-t.selection[1]))}if(i.bgActivePosistion&&!t.hoverData.selecting){var f=t.cy.zoom(),h=i.bgActivePosistion;c.fillStyle="rgba("+a.core("active-bg-color").value[0]+","+a.core("active-bg-color").value[1]+","+a.core("active-bg-color").value[2]+","+a.core("active-bg-opacity").value+")",c.beginPath(),c.arc(h.x,h.y,a.core("active-bg-size").pfValue/f,0,2*Math.PI),c.fill()}var p=t.lastRedrawTime;if(t.showFps&&p){p=Math.round(p);var g=Math.round(1e3/p),y="1 frame = "+p+" ms = "+g+" fps";if(c.setTransform(1,0,0,1,0,0),c.fillStyle="rgba(255, 0, 0, 0.75)",c.strokeStyle="rgba(255, 0, 0, 0.75)",c.font="30px Arial",!W0){var b=c.measureText(y);W0=b.actualBoundingBoxAscent}c.fillText(y,0,W0);var _=60;c.strokeRect(0,W0+10,250,20),c.fillRect(0,W0+10,250*Math.min(g/_,1),20)}s||(u[t.SELECT_BOX]=!1)}};function C3(r,e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error(r.getShaderInfoLog(n));return n}function Gee(r,e,t){var n=C3(r,r.VERTEX_SHADER,e),i=C3(r,r.FRAGMENT_SHADER,t),a=r.createProgram();if(r.attachShader(a,n),r.attachShader(a,i),r.linkProgram(a),!r.getProgramParameter(a,r.LINK_STATUS))throw new Error("Could not initialize shaders");return a}function Vee(r,e,t){t===void 0&&(t=e);var n=r.makeOffscreenCanvas(e,t),i=n.context=n.getContext("2d");return n.clear=function(){return i.clearRect(0,0,n.width,n.height)},n.clear(),n}function vD(r){var e=r.pixelRatio,t=r.cy.zoom(),n=r.cy.pan();return{zoom:t*e,pan:{x:n.x*e,y:n.y*e}}}function Hee(r){var e=r.pixelRatio,t=r.cy.zoom();return t*e}function Wee(r,e,t,n,i){var a=n*t+e.x,o=i*t+e.y;return o=Math.round(r.canvasHeight-o),[a,o]}function Yee(r){return r.pstyle("background-fill").value!=="solid"||r.pstyle("background-image").strValue!=="none"?!1:r.pstyle("border-width").value===0||r.pstyle("border-opacity").value===0?!0:r.pstyle("border-style").value==="solid"}function Xee(r,e){if(r.length!==e.length)return!1;for(var t=0;t>0&255)/255,t[1]=(r>>8&255)/255,t[2]=(r>>16&255)/255,t[3]=(r>>24&255)/255,t}function $ee(r){return r[0]+(r[1]<<8)+(r[2]<<16)+(r[3]<<24)}function Kee(r,e){var t=r.createTexture();return t.buffer=function(n){r.bindTexture(r.TEXTURE_2D,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR_MIPMAP_NEAREST),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n),r.generateMipmap(r.TEXTURE_2D),r.bindTexture(r.TEXTURE_2D,null)},t.deleteTexture=function(){r.deleteTexture(t)},t}function SU(r,e){switch(e){case"float":return[1,r.FLOAT,4];case"vec2":return[2,r.FLOAT,4];case"vec3":return[3,r.FLOAT,4];case"vec4":return[4,r.FLOAT,4];case"int":return[1,r.INT,4];case"ivec2":return[2,r.INT,4]}}function OU(r,e,t){switch(e){case r.FLOAT:return new Float32Array(t);case r.INT:return new Int32Array(t)}}function Zee(r,e,t,n,i,a){switch(e){case r.FLOAT:return new Float32Array(t.buffer,a*n,i);case r.INT:return new Int32Array(t.buffer,a*n,i)}}function Qee(r,e,t,n){var i=SU(r,e),a=zo(i,2),o=a[0],s=a[1],u=OU(r,s,n),l=r.createBuffer();return r.bindBuffer(r.ARRAY_BUFFER,l),r.bufferData(r.ARRAY_BUFFER,u,r.STATIC_DRAW),s===r.FLOAT?r.vertexAttribPointer(t,o,s,!1,0,0):s===r.INT&&r.vertexAttribIPointer(t,o,s,0,0),r.enableVertexAttribArray(t),r.bindBuffer(r.ARRAY_BUFFER,null),l}function uh(r,e,t,n){var i=SU(r,t),a=zo(i,3),o=a[0],s=a[1],u=a[2],l=OU(r,s,e*o),c=o*u,f=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,f),r.bufferData(r.ARRAY_BUFFER,e*c,r.DYNAMIC_DRAW),r.enableVertexAttribArray(n),s===r.FLOAT?r.vertexAttribPointer(n,o,s,!1,c,0):s===r.INT&&r.vertexAttribIPointer(n,o,s,c,0),r.vertexAttribDivisor(n,1),r.bindBuffer(r.ARRAY_BUFFER,null);for(var d=new Array(e),h=0;ho&&(s=o/n,u=n*s,l=i*s),{scale:s,texW:u,texH:l}}},{key:"draw",value:function(t,n,i){var a=this;if(this.locked)throw new Error("can't draw, atlas is locked");var o=this.texSize,s=this.texRows,u=this.texHeight,l=this.getScale(n),c=l.scale,f=l.texW,d=l.texH,h=function(m,x){if(i&&x){var E=x.context,O=m.x,S=m.row,T=O,P=u*S;E.save(),E.translate(T,P),E.scale(c,c),i(E,n),E.restore()}},p=[null,null],g=function(){h(a.freePointer,a.canvas),p[0]={x:a.freePointer.x,y:a.freePointer.row*u,w:f,h:d},p[1]={x:a.freePointer.x+f,y:a.freePointer.row*u,w:0,h:d},a.freePointer.x+=f,a.freePointer.x==o&&(a.freePointer.x=0,a.freePointer.row++)},y=function(){var m=a.scratch,x=a.canvas;m.clear(),h({x:0,row:0},m);var E=o-a.freePointer.x,O=f-E,S=u;{var T=a.freePointer.x,P=a.freePointer.row*u,I=E;x.context.drawImage(m,0,0,I,S,T,P,I,S),p[0]={x:T,y:P,w:I,h:d}}{var k=E,L=(a.freePointer.row+1)*u,B=O;x&&x.context.drawImage(m,k,0,B,S,0,L,B,S),p[1]={x:0,y:L,w:B,h:d}}a.freePointer.x=O,a.freePointer.row++},b=function(){a.freePointer.x=0,a.freePointer.row++};if(this.freePointer.x+f<=o)g();else{if(this.freePointer.row>=s-1)return!1;this.freePointer.x===o?(b(),g()):this.enableWrapping?y():(b(),g())}return this.keyToLocation.set(t,p),this.needsBuffer=!0,p}},{key:"getOffsets",value:function(t){return this.keyToLocation.get(t)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(t){if(this.locked)return!1;var n=this.texSize,i=this.texRows,a=this.getScale(t),o=a.texW;return this.freePointer.x+o>n?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},a=i.forceRedraw,o=a===void 0?!1:a,s=i.filterEle,u=s===void 0?function(){return!0}:s,l=i.filterType,c=l===void 0?function(){return!0}:l,f=!1,d=!1,h=Ac(t),p;try{for(h.s();!(p=h.n()).done;){var g=p.value;if(u(g)){var y=Ac(this.renderTypes.values()),b;try{var _=function(){var x=b.value,E=x.type;if(c(E)){var O=n.collections.get(x.collection),S=x.getKey(g),T=Array.isArray(S)?S:[S];if(o)T.forEach(function(L){return O.markKeyForGC(L)}),d=!0;else{var P=x.getID?x.getID(g):g.id(),I=n._key(E,P),k=n.typeAndIdToKey.get(I);k!==void 0&&!Xee(T,k)&&(f=!0,n.typeAndIdToKey.delete(I),k.forEach(function(L){return O.markKeyForGC(L)}))}}};for(y.s();!(b=y.n()).done;)_()}catch(m){y.e(m)}finally{y.f()}}}}catch(m){h.e(m)}finally{h.f()}return d&&(this.gc(),f=!1),f}},{key:"gc",value:function(){var t=Ac(this.collections.values()),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;i.gc()}}catch(a){t.e(a)}finally{t.f()}}},{key:"getOrCreateAtlas",value:function(t,n,i,a){var o=this.renderTypes.get(n),s=this.collections.get(o.collection),u=!1,l=s.draw(a,i,function(d){o.drawClipped?(d.save(),d.beginPath(),d.rect(0,0,i.w,i.h),d.clip(),o.drawElement(d,t,i,!0,!0),d.restore()):o.drawElement(d,t,i,!0,!0),u=!0});if(u){var c=o.getID?o.getID(t):t.id(),f=this._key(n,c);this.typeAndIdToKey.has(f)?this.typeAndIdToKey.get(f).push(a):this.typeAndIdToKey.set(f,[a])}return l}},{key:"getAtlasInfo",value:function(t,n){var i=this,a=this.renderTypes.get(n),o=a.getKey(t),s=Array.isArray(o)?o:[o];return s.map(function(u){var l=a.getBoundingBox(t,u),c=i.getOrCreateAtlas(t,n,l,u),f=c.getOffsets(u),d=zo(f,2),h=d[0],p=d[1];return{atlas:c,tex:h,tex1:h,tex2:p,bb:l}})}},{key:"getDebugInfo",value:function(){var t=[],n=Ac(this.collections),i;try{for(n.s();!(i=n.n()).done;){var a=zo(i.value,2),o=a[0],s=a[1],u=s.getCounts(),l=u.keyCount,c=u.atlasCount;t.push({type:o,keyCount:l,atlasCount:c})}}catch(f){n.e(f)}finally{n.f()}return t}}])})(),ste=(function(){function r(e){zp(this,r),this.globalOptions=e,this.atlasSize=e.webglTexSize,this.maxAtlasesPerBatch=e.webglTexPerBatch,this.batchAtlases=[]}return qp(r,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(t,n){return n})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(t){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(t):!0}},{key:"getAtlasIndexForBatch",value:function(t){var n=this.batchAtlases.indexOf(t);if(n<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(t),n=this.batchAtlases.length-1}return n}}])})(),ute=` float circleSD(vec2 p, float r) { return distance(vec2(0), p) - r; // signed distance } @@ -122,7 +122,7 @@ // return signed distance return (dot(p/ab,p/ab)>1.0) ? d : -d; } -`,kb={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},zx={IGNORE:1,USE_BB:2},UO=0,P3=1,M3=2,zO=3,tm=4,xw=5,Y0=6,X0=7,dte=(function(){function r(e,t,n){zp(this,r),this.r=e,this.gl=t,this.maxInstances=n.webglBatchSize,this.atlasSize=n.webglTexSize,this.bgColor=n.bgColor,this.debug=n.webglDebug,this.batchDebugInfo=[],n.enableWrapping=!0,n.createTextureCanvas=Vee,this.atlasManager=new ote(e,n),this.batchManager=new ste(n),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(kb.SCREEN),this.pickingProgram=this._createShaderProgram(kb.PICKING),this.vao=this._createVAO()}return qp(r,[{key:"addAtlasCollection",value:function(t,n){this.atlasManager.addAtlasCollection(t,n)}},{key:"addTextureAtlasRenderType",value:function(t,n){this.atlasManager.addRenderType(t,n)}},{key:"addSimpleShapeRenderType",value:function(t,n){this.simpleShapeOptions.set(t,n)}},{key:"invalidate",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.type,a=this.atlasManager;return i?a.invalidate(t,{filterType:function(s){return s===i},forceRedraw:!0}):a.invalidate(t)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(t){var n=this.gl,i=`#version 300 es +`,kb={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},zx={IGNORE:1,USE_BB:2},UO=0,M3=1,D3=2,zO=3,tm=4,xw=5,Y0=6,X0=7,dte=(function(){function r(e,t,n){zp(this,r),this.r=e,this.gl=t,this.maxInstances=n.webglBatchSize,this.atlasSize=n.webglTexSize,this.bgColor=n.bgColor,this.debug=n.webglDebug,this.batchDebugInfo=[],n.enableWrapping=!0,n.createTextureCanvas=Vee,this.atlasManager=new ote(e,n),this.batchManager=new ste(n),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(kb.SCREEN),this.pickingProgram=this._createShaderProgram(kb.PICKING),this.vao=this._createVAO()}return qp(r,[{key:"addAtlasCollection",value:function(t,n){this.atlasManager.addAtlasCollection(t,n)}},{key:"addTextureAtlasRenderType",value:function(t,n){this.atlasManager.addRenderType(t,n)}},{key:"addSimpleShapeRenderType",value:function(t,n){this.simpleShapeOptions.set(t,n)}},{key:"invalidate",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.type,a=this.atlasManager;return i?a.invalidate(t,{filterType:function(s){return s===i},forceRedraw:!0}):a.invalidate(t)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(t){var n=this.gl,i=`#version 300 es precision highp float; uniform mat3 uPanZoomMatrix; @@ -203,7 +203,7 @@ gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); } - else if(aVertType == `).concat(P3,`) { + else if(aVertType == `).concat(M3,`) { vec2 source = aPointAPointB.xy; vec2 target = aPointAPointB.zw; @@ -218,7 +218,7 @@ gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); vColor = aColor; } - else if(aVertType == `).concat(M3,`) { + else if(aVertType == `).concat(D3,`) { vec2 pointA = aPointAPointB.xy; vec2 pointB = aPointAPointB.zw; vec2 pointC = aPointCPointD.xy; @@ -400,16 +400,16 @@ `).concat(t.picking?`if(outColor.a == 0.0) discard; else outColor = vIndex;`:"",` } - `),s=Gee(n,i,o);s.aPosition=n.getAttribLocation(s,"aPosition"),s.aIndex=n.getAttribLocation(s,"aIndex"),s.aVertType=n.getAttribLocation(s,"aVertType"),s.aTransform=n.getAttribLocation(s,"aTransform"),s.aAtlasId=n.getAttribLocation(s,"aAtlasId"),s.aTex=n.getAttribLocation(s,"aTex"),s.aPointAPointB=n.getAttribLocation(s,"aPointAPointB"),s.aPointCPointD=n.getAttribLocation(s,"aPointCPointD"),s.aLineWidth=n.getAttribLocation(s,"aLineWidth"),s.aColor=n.getAttribLocation(s,"aColor"),s.aCornerRadius=n.getAttribLocation(s,"aCornerRadius"),s.aBorderColor=n.getAttribLocation(s,"aBorderColor"),s.uPanZoomMatrix=n.getUniformLocation(s,"uPanZoomMatrix"),s.uAtlasSize=n.getUniformLocation(s,"uAtlasSize"),s.uBGColor=n.getUniformLocation(s,"uBGColor"),s.uZoom=n.getUniformLocation(s,"uZoom"),s.uTextures=[];for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:kb.SCREEN;this.panZoomMatrix=t,this.renderTarget=n,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(t,n){return t.visible()?n&&n.isVisible?n.isVisible(t):!0:!1}},{key:"drawTexture",value:function(t,n,i){var a=this.atlasManager,o=this.batchManager,s=a.getRenderTypeOpts(i);if(this._isVisible(t,s)&&!(t.isEdge()&&!this._isValidEdge(t))){if(this.renderTarget.picking&&s.getTexPickingMode){var u=s.getTexPickingMode(t);if(u===zx.IGNORE)return;if(u==zx.USE_BB){this.drawPickingRectangle(t,n,i);return}}var l=a.getAtlasInfo(t,i),c=Ac(l),f;try{for(c.s();!(f=c.n()).done;){var d=f.value,h=d.atlas,p=d.tex1,g=d.tex2;o.canAddToCurrentBatch(h)||this.endBatch();for(var y=o.getAtlasIndexForBatch(h),b=0,_=[[p,!0],[g,!1]];b<_.length;b++){var m=Uo(_[b],2),x=m[0],E=m[1];if(x.w!=0){var O=this.instanceCount;this.vertTypeBuffer.getView(O)[0]=UO;var S=this.indexBuffer.getView(O);em(n,S);var T=this.atlasIdBuffer.getView(O);T[0]=y;var P=this.texBuffer.getView(O);P[0]=x.x,P[1]=x.y,P[2]=x.w,P[3]=x.h;var I=this.transformBuffer.getMatrixView(O);this.setTransformMatrix(t,I,s,d,E),this.instanceCount++,E||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(k){c.e(k)}finally{c.f()}}}},{key:"setTransformMatrix",value:function(t,n,i,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=0;if(i.shapeProps&&i.shapeProps.padding&&(s=t.pstyle(i.shapeProps.padding).pfValue),a){var u=a.bb,l=a.tex1,c=a.tex2,f=l.w/(l.w+c.w);o||(f=1-f);var d=this._getAdjustedBB(u,s,o,f);this._applyTransformMatrix(n,d,i,t)}else{var h=i.getBoundingBox(t),p=this._getAdjustedBB(h,s,!0,1);this._applyTransformMatrix(n,p,i,t)}}},{key:"_applyTransformMatrix",value:function(t,n,i,a){var o,s;A3(t);var u=i.getRotation?i.getRotation(a):0;if(u!==0){var l=i.getRotationPoint(a),c=l.x,f=l.y;ix(t,t,[c,f]),R3(t,t,u);var d=i.getRotationOffset(a);o=d.x+(n.xOffset||0),s=d.y+(n.yOffset||0)}else o=n.x1,s=n.y1;ix(t,t,[o,s]),TM(t,t,[n.w,n.h])}},{key:"_getAdjustedBB",value:function(t,n,i,a){var o=t.x1,s=t.y1,u=t.w,l=t.h,c=t.yOffset;n&&(o-=n,s-=n,u+=2*n,l+=2*n);var f=0,d=u*a;return i&&a<1?u=d:!i&&a<1&&(f=u-d,o+=f,u=d),{x1:o,y1:s,w:u,h:l,xOffset:f,yOffset:c}}},{key:"drawPickingRectangle",value:function(t,n,i){var a=this.atlasManager.getRenderTypeOpts(i),o=this.instanceCount;this.vertTypeBuffer.getView(o)[0]=tm;var s=this.indexBuffer.getView(o);em(n,s);var u=this.colorBuffer.getView(o);Sg([0,0,0],1,u);var l=this.transformBuffer.getMatrixView(o);this.setTransformMatrix(t,l,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(t,n,i){var a=this.simpleShapeOptions.get(i);if(this._isVisible(t,a)){var o=a.shapeProps,s=this._getVertTypeForShape(t,o.shape);if(s===void 0||a.isSimple&&!a.isSimple(t)){this.drawTexture(t,n,i);return}var u=this.instanceCount;if(this.vertTypeBuffer.getView(u)[0]=s,s===xw||s===Y0){var l=a.getBoundingBox(t),c=this._getCornerRadius(t,o.radius,l),f=this.cornerRadiusBuffer.getView(u);f[0]=c,f[1]=c,f[2]=c,f[3]=c,s===Y0&&(f[0]=0,f[2]=0)}var d=this.indexBuffer.getView(u);em(n,d);var h=t.pstyle(o.color).value,p=t.pstyle(o.opacity).value,g=this.colorBuffer.getView(u);Sg(h,p,g);var y=this.lineWidthBuffer.getView(u);if(y[0]=0,y[1]=0,o.border){var b=t.pstyle("border-width").value;if(b>0){var _=t.pstyle("border-color").value,m=t.pstyle("border-opacity").value,x=this.borderColorBuffer.getView(u);Sg(_,m,x);var E=t.pstyle("border-position").value;if(E==="inside")y[0]=0,y[1]=-b;else if(E==="outside")y[0]=b,y[1]=0;else{var O=b/2;y[0]=O,y[1]=-O}}}var S=this.transformBuffer.getMatrixView(u);this.setTransformMatrix(t,S,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(t,n){var i=t.pstyle(n).value;switch(i){case"rectangle":return tm;case"ellipse":return X0;case"roundrectangle":case"round-rectangle":return xw;case"bottom-round-rectangle":return Y0;default:return}}},{key:"_getCornerRadius",value:function(t,n,i){var a=i.w,o=i.h;if(t.pstyle(n).value==="auto")return Mp(a,o);var s=t.pstyle(n).pfValue,u=a/2,l=o/2;return Math.min(s,l,u)}},{key:"drawEdgeArrow",value:function(t,n,i){if(t.visible()){var a=t._private.rscratch,o,s,u;if(i==="source"?(o=a.arrowStartX,s=a.arrowStartY,u=a.srcArrowAngle):(o=a.arrowEndX,s=a.arrowEndY,u=a.tgtArrowAngle),!(isNaN(o)||o==null||isNaN(s)||s==null||isNaN(u)||u==null)){var l=t.pstyle(i+"-arrow-shape").value;if(l!=="none"){var c=t.pstyle(i+"-arrow-color").value,f=t.pstyle("opacity").value,d=t.pstyle("line-opacity").value,h=f*d,p=t.pstyle("width").pfValue,g=t.pstyle("arrow-scale").value,y=this.r.getArrowWidth(p,g),b=this.instanceCount,_=this.transformBuffer.getMatrixView(b);A3(_),ix(_,_,[o,s]),TM(_,_,[y,y]),R3(_,_,u),this.vertTypeBuffer.getView(b)[0]=zO;var m=this.indexBuffer.getView(b);em(n,m);var x=this.colorBuffer.getView(b);Sg(c,h,x),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(t,n){if(t.visible()){var i=this._getEdgePoints(t);if(i){var a=t.pstyle("opacity").value,o=t.pstyle("line-opacity").value,s=t.pstyle("width").pfValue,u=t.pstyle("line-color").value,l=a*o;if(i.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),i.length==4){var c=this.instanceCount;this.vertTypeBuffer.getView(c)[0]=P3;var f=this.indexBuffer.getView(c);em(n,f);var d=this.colorBuffer.getView(c);Sg(u,l,d);var h=this.lineWidthBuffer.getView(c);h[0]=s;var p=this.pointAPointBBuffer.getView(c);p[0]=i[0],p[1]=i[1],p[2]=i[2],p[3]=i[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var g=0;g=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(t){var n=t._private.rscratch;return!(n.badLine||n.allpts==null||isNaN(n.allpts[0]))}},{key:"_getEdgePoints",value:function(t){var n=t._private.rscratch;if(this._isValidEdge(t)){var i=n.allpts;if(i.length==4)return i;var a=this._getNumSegments(t);return this._getCurveSegmentPoints(i,a)}}},{key:"_getNumSegments",value:function(t){var n=15;return Math.min(Math.max(n,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(t,n){if(t.length==4)return t;for(var i=Array((n+1)*2),a=0;a<=n;a++)if(a==0)i[0]=t[0],i[1]=t[1];else if(a==n)i[a*2]=t[t.length-2],i[a*2+1]=t[t.length-1];else{var o=a/n;this._setCurvePoint(t,o,i,a*2)}return i}},{key:"_setCurvePoint",value:function(t,n,i,a){if(t.length<=2)i[a]=t[0],i[a+1]=t[1];else{for(var o=Array(t.length-2),s=0;s0}},s=function(f){var d=f.pstyle("text-events").strValue==="yes";return d?zx.USE_BB:zx.IGNORE},u=function(f){var d=f.position(),h=d.x,p=d.y,g=f.outerWidth(),y=f.outerHeight();return{w:g,h:y,x1:h-g/2,y1:p-y/2}};t.drawing.addAtlasCollection("node",{texRows:r.webglTexRowsNodes}),t.drawing.addAtlasCollection("label",{texRows:r.webglTexRows}),t.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:e.getStyleKey,getBoundingBox:e.getElementBox,drawElement:e.drawElement}),t.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:u,isSimple:Yee,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),t.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:u,isVisible:o("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),t.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:u,isVisible:o("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),t.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:s,getKey:qO(e.getLabelKey,null),getBoundingBox:GO(e.getLabelBox,null),drawClipped:!0,drawElement:e.drawLabel,getRotation:i(null),getRotationPoint:e.getLabelRotationPoint,getRotationOffset:e.getLabelRotationOffset,isVisible:a("label")}),t.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:s,getKey:qO(e.getSourceLabelKey,"source"),getBoundingBox:GO(e.getSourceLabelBox,"source"),drawClipped:!0,drawElement:e.drawSourceLabel,getRotation:i("source"),getRotationPoint:e.getSourceLabelRotationPoint,getRotationOffset:e.getSourceLabelRotationOffset,isVisible:a("source-label")}),t.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:s,getKey:qO(e.getTargetLabelKey,"target"),getBoundingBox:GO(e.getTargetLabelBox,"target"),drawClipped:!0,drawElement:e.drawTargetLabel,getRotation:i("target"),getRotationPoint:e.getTargetLabelRotationPoint,getRotationOffset:e.getTargetLabelRotationOffset,isVisible:a("target-label")});var l=$1(function(){console.log("garbage collect flag set"),t.data.gc=!0},1e4);t.onUpdateEleCalcs(function(c,f){var d=!1;f&&f.length>0&&(d|=t.drawing.invalidate(f)),d&&l()}),vte(t)};function hte(r){var e=r.cy.container(),t=e&&e.style&&e.style.backgroundColor||"white";return eF(t)}function CU(r,e){var t=r._private.rscratch;return Tc(t,"labelWrapCachedLines",e)||[]}var qO=function(e,t){return function(n){var i=e(n),a=CU(n,t);return a.length>1?a.map(function(o,s){return"".concat(i,"_").concat(s)}):i}},GO=function(e,t){return function(n,i){var a=e(n);if(typeof i=="string"){var o=i.indexOf("_");if(o>0){var s=Number(i.substring(o+1)),u=CU(n,t),l=a.h/u.length,c=l*s,f=a.y1+c;return{x1:a.x1,w:a.w,y1:f,h:l,yOffset:c}}}return a}};function vte(r){{var e=r.render;r.render=function(a){a=a||{};var o=r.cy;r.webgl&&(o.zoom()>bU?(pte(r),e.call(r,a)):(gte(r),RU(r,a,kb.SCREEN)))}}{var t=r.matchCanvasSize;r.matchCanvasSize=function(a){t.call(r,a),r.pickingFrameBuffer.setFramebufferAttachmentSizes(r.canvasWidth,r.canvasHeight),r.pickingFrameBuffer.needsDraw=!0}}r.findNearestElements=function(a,o,s,u){return xte(r,a,o)};{var n=r.invalidateCachedZSortedEles;r.invalidateCachedZSortedEles=function(){n.call(r),r.pickingFrameBuffer.needsDraw=!0}}{var i=r.notify;r.notify=function(a,o){i.call(r,a,o),a==="viewport"||a==="bounds"?r.pickingFrameBuffer.needsDraw=!0:a==="background"&&r.drawing.invalidate(o,{type:"node-body"})}}}function pte(r){var e=r.data.contexts[r.WEBGL];e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function gte(r){var e=function(n){n.save(),n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,r.canvasWidth,r.canvasHeight),n.restore()};e(r.data.contexts[r.NODE]),e(r.data.contexts[r.DRAG])}function yte(r){var e=r.canvasWidth,t=r.canvasHeight,n=hD(r),i=n.pan,a=n.zoom,o=FO();ix(o,o,[i.x,i.y]),TM(o,o,[a,a]);var s=FO();rte(s,e,t);var u=FO();return tte(u,s,o),u}function AU(r,e){var t=r.canvasWidth,n=r.canvasHeight,i=hD(r),a=i.pan,o=i.zoom;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t,n),e.translate(a.x,a.y),e.scale(o,o)}function mte(r,e){r.drawSelectionRectangle(e,function(t){return AU(r,t)})}function bte(r){var e=r.data.contexts[r.NODE];e.save(),AU(r,e),e.strokeStyle="rgba(0, 0, 0, 0.3)",e.beginPath(),e.moveTo(-1e3,0),e.lineTo(1e3,0),e.stroke(),e.beginPath(),e.moveTo(0,-1e3),e.lineTo(0,1e3),e.stroke(),e.restore()}function _te(r){var e=function(i,a,o){for(var s=i.atlasManager.getAtlasCollection(a),u=r.data.contexts[r.NODE],l=s.atlases,c=0;c=0&&x.add(S)}return x}function xte(r,e,t){var n=wte(r,e,t),i=r.getCachedZSortedEles(),a,o,s=Ac(n),u;try{for(s.s();!(u=s.n()).done;){var l=u.value,c=i[l];if(!a&&c.isNode()&&(a=c),!o&&c.isEdge()&&(o=c),a&&o)break}}catch(f){s.e(f)}finally{s.f()}return[a,o].filter(Boolean)}function VO(r,e,t){var n=r.drawing;e+=1,t.isNode()?(n.drawNode(t,e,"node-underlay"),n.drawNode(t,e,"node-body"),n.drawTexture(t,e,"label"),n.drawNode(t,e,"node-overlay")):(n.drawEdgeLine(t,e),n.drawEdgeArrow(t,e,"source"),n.drawEdgeArrow(t,e,"target"),n.drawTexture(t,e,"label"),n.drawTexture(t,e,"edge-source-label"),n.drawTexture(t,e,"edge-target-label"))}function RU(r,e,t){var n;r.webglDebug&&(n=performance.now());var i=r.drawing,a=0;if(t.screen&&r.data.canvasNeedsRedraw[r.SELECT_BOX]&&mte(r,e),r.data.canvasNeedsRedraw[r.NODE]||t.picking){var o=r.data.contexts[r.WEBGL];t.screen?(o.clearColor(0,0,0,0),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)):o.disable(o.BLEND),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.viewport(0,0,o.canvas.width,o.canvas.height);var s=yte(r),u=r.getCachedZSortedEles();if(a=u.length,i.startFrame(s,t),t.screen){for(var l=0;l0&&o>0){h.clearRect(0,0,a,o),h.globalCompositeOperation="source-over";var p=this.getCachedZSortedEles();if(r.full)h.translate(-n.x1*l,-n.y1*l),h.scale(l,l),this.drawElements(h,p),h.scale(1/l,1/l),h.translate(n.x1*l,n.y1*l);else{var g=e.pan(),y={x:g.x*l,y:g.y*l};l*=e.zoom(),h.translate(y.x,y.y),h.scale(l,l),this.drawElements(h,p),h.scale(1/l,1/l),h.translate(-y.x,-y.y)}r.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=r.bg,h.rect(0,0,a,o),h.fill())}return d};function Ete(r,e){for(var t=atob(r),n=new ArrayBuffer(t.length),i=new Uint8Array(n),a=0;a"u"?"undefined":cs(OffscreenCanvas))!=="undefined")t=new OffscreenCanvas(r,e);else{var n=this.cy.window(),i=n.document;t=i.createElement("canvas"),t.width=r,t.height=e}return t};[wU,Th,wv,dD,ny,Vp,Gl,TU,Hp,t_,DU].forEach(function(r){kr(An,r)});var Tte=[{name:"null",impl:sU},{name:"base",impl:yU},{name:"canvas",impl:Ste}],Cte=[{type:"layout",extensions:QJ},{type:"renderer",extensions:Tte}],IU={},NU={};function LU(r,e,t){var n=t,i=function(T){Ai("Can not register `"+e+"` for `"+r+"` since `"+T+"` already exists in the prototype and can not be overridden")};if(r==="core"){if(S1.prototype[e])return i(e);S1.prototype[e]=t}else if(r==="collection"){if(lu.prototype[e])return i(e);lu.prototype[e]=t}else if(r==="layout"){for(var a=function(T){this.options=T,t.call(this,T),ai(this._private)||(this._private={}),this._private.cy=T.cy,this._private.listeners=[],this.createEmitter()},o=a.prototype=Object.create(t.prototype),s=[],u=0;up&&(this.rect.x-=(this.labelWidth-p)/2,this.setWidth(this.labelWidth)),this.labelHeight>g&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-g)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-g),this.setHeight(this.labelHeight))}}},f.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},f.prototype.transform=function(h){var p=this.rect.x;p>u.WORLD_BOUNDARY?p=u.WORLD_BOUNDARY:p<-u.WORLD_BOUNDARY&&(p=-u.WORLD_BOUNDARY);var g=this.rect.y;g>u.WORLD_BOUNDARY?g=u.WORLD_BOUNDARY:g<-u.WORLD_BOUNDARY&&(g=-u.WORLD_BOUNDARY);var y=new c(p,g),b=h.inverseTransformPoint(y);this.setLocation(b.x,b.y)},f.prototype.getLeft=function(){return this.rect.x},f.prototype.getRight=function(){return this.rect.x+this.rect.width},f.prototype.getTop=function(){return this.rect.y},f.prototype.getBottom=function(){return this.rect.y+this.rect.height},f.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},t.exports=f}),(function(t,n,i){function a(o,s){o==null&&s==null?(this.x=0,this.y=0):(this.x=o,this.y=s)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(o){this.x=o},a.prototype.setY=function(o){this.y=o},a.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},t.exports=a}),(function(t,n,i){var a=i(2),o=i(10),s=i(0),u=i(6),l=i(3),c=i(1),f=i(13),d=i(12),h=i(11);function p(y,b,_){a.call(this,_),this.estimatedSize=o.MIN_VALUE,this.margin=s.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=y,b!=null&&b instanceof u?this.graphManager=b:b!=null&&b instanceof Layout&&(this.graphManager=b.graphManager)}p.prototype=Object.create(a.prototype);for(var g in a)p[g]=a[g];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(y,b,_){if(b==null&&_==null){var m=y;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(m)>-1)throw"Node already in graph!";return m.owner=this,this.getNodes().push(m),m}else{var x=y;if(!(this.getNodes().indexOf(b)>-1&&this.getNodes().indexOf(_)>-1))throw"Source or target not in graph!";if(!(b.owner==_.owner&&b.owner==this))throw"Both owners must be this graph!";return b.owner!=_.owner?null:(x.source=b,x.target=_,x.isInterGraph=!1,this.getEdges().push(x),b.edges.push(x),_!=b&&_.edges.push(x),x)}},p.prototype.remove=function(y){var b=y;if(y instanceof l){if(b==null)throw"Node is null!";if(!(b.owner!=null&&b.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var _=b.edges.slice(),m,x=_.length,E=0;E-1&&T>-1))throw"Source and/or target doesn't know this edge!";m.source.edges.splice(S,1),m.target!=m.source&&m.target.edges.splice(T,1);var O=m.source.owner.getEdges().indexOf(m);if(O==-1)throw"Not in owner's edge list!";m.source.owner.getEdges().splice(O,1)}},p.prototype.updateLeftTop=function(){for(var y=o.MAX_VALUE,b=o.MAX_VALUE,_,m,x,E=this.getNodes(),O=E.length,S=0;S_&&(y=_),b>m&&(b=m)}return y==o.MAX_VALUE?null:(E[0].getParent().paddingLeft!=null?x=E[0].getParent().paddingLeft:x=this.margin,this.left=b-x,this.top=y-x,new d(this.left,this.top))},p.prototype.updateBounds=function(y){for(var b=o.MAX_VALUE,_=-o.MAX_VALUE,m=o.MAX_VALUE,x=-o.MAX_VALUE,E,O,S,T,P,I=this.nodes,k=I.length,L=0;LE&&(b=E),_S&&(m=S),xE&&(b=E),_S&&(m=S),x=this.nodes.length){var k=0;_.forEach(function(L){L.owner==y&&k++}),k==this.nodes.length&&(this.isConnected=!0)}},t.exports=p}),(function(t,n,i){var a,o=i(1);function s(u){a=i(5),this.layout=u,this.graphs=[],this.edges=[]}s.prototype.addRoot=function(){var u=this.layout.newGraph(),l=this.layout.newNode(null),c=this.add(u,l);return this.setRootGraph(c),this.rootGraph},s.prototype.add=function(u,l,c,f,d){if(c==null&&f==null&&d==null){if(u==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(u)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(u),u.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return u.parent=l,l.child=u,u}else{d=c,f=l,c=u;var h=f.getOwner(),p=d.getOwner();if(!(h!=null&&h.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(p!=null&&p.getGraphManager()==this))throw"Target not in this graph mgr!";if(h==p)return c.isInterGraph=!1,h.add(c,f,d);if(c.isInterGraph=!0,c.source=f,c.target=d,this.edges.indexOf(c)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(c),!(c.source!=null&&c.target!=null))throw"Edge source and/or target is null!";if(!(c.source.edges.indexOf(c)==-1&&c.target.edges.indexOf(c)==-1))throw"Edge already in source and/or target incidency list!";return c.source.edges.push(c),c.target.edges.push(c),c}},s.prototype.remove=function(u){if(u instanceof a){var l=u;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var c=[];c=c.concat(l.getEdges());for(var f,d=c.length,h=0;h=u.getRight()?l[0]+=Math.min(u.getX()-s.getX(),s.getRight()-u.getRight()):u.getX()<=s.getX()&&u.getRight()>=s.getRight()&&(l[0]+=Math.min(s.getX()-u.getX(),u.getRight()-s.getRight())),s.getY()<=u.getY()&&s.getBottom()>=u.getBottom()?l[1]+=Math.min(u.getY()-s.getY(),s.getBottom()-u.getBottom()):u.getY()<=s.getY()&&u.getBottom()>=s.getBottom()&&(l[1]+=Math.min(s.getY()-u.getY(),u.getBottom()-s.getBottom()));var d=Math.abs((u.getCenterY()-s.getCenterY())/(u.getCenterX()-s.getCenterX()));u.getCenterY()===s.getCenterY()&&u.getCenterX()===s.getCenterX()&&(d=1);var h=d*l[0],p=l[1]/d;l[0]h)return l[0]=c,l[1]=g,l[2]=d,l[3]=I,!1;if(fd)return l[0]=p,l[1]=f,l[2]=T,l[3]=h,!1;if(cd?(l[0]=b,l[1]=_,j=!0):(l[0]=y,l[1]=g,j=!0):H===W&&(c>d?(l[0]=p,l[1]=g,j=!0):(l[0]=m,l[1]=_,j=!0)),-q===W?d>c?(l[2]=P,l[3]=I,z=!0):(l[2]=T,l[3]=S,z=!0):q===W&&(d>c?(l[2]=O,l[3]=S,z=!0):(l[2]=k,l[3]=I,z=!0)),j&&z)return!1;if(c>d?f>h?($=this.getCardinalDirection(H,W,4),J=this.getCardinalDirection(q,W,2)):($=this.getCardinalDirection(-H,W,3),J=this.getCardinalDirection(-q,W,1)):f>h?($=this.getCardinalDirection(-H,W,1),J=this.getCardinalDirection(-q,W,3)):($=this.getCardinalDirection(H,W,2),J=this.getCardinalDirection(q,W,4)),!j)switch($){case 1:Z=g,X=c+-E/W,l[0]=X,l[1]=Z;break;case 2:X=m,Z=f+x*W,l[0]=X,l[1]=Z;break;case 3:Z=_,X=c+E/W,l[0]=X,l[1]=Z;break;case 4:X=b,Z=f+-x*W,l[0]=X,l[1]=Z;break}if(!z)switch(J){case 1:re=S,ue=d+-B/W,l[2]=ue,l[3]=re;break;case 2:ue=k,re=h+L*W,l[2]=ue,l[3]=re;break;case 3:re=I,ue=d+B/W,l[2]=ue,l[3]=re;break;case 4:ue=P,re=h+-L*W,l[2]=ue,l[3]=re;break}}return!1},o.getCardinalDirection=function(s,u,l){return s>u?l:1+l%4},o.getIntersection=function(s,u,l,c){if(c==null)return this.getIntersection2(s,u,l);var f=s.x,d=s.y,h=u.x,p=u.y,g=l.x,y=l.y,b=c.x,_=c.y,m=void 0,x=void 0,E=void 0,O=void 0,S=void 0,T=void 0,P=void 0,I=void 0,k=void 0;return E=p-d,S=f-h,P=h*d-f*p,O=_-y,T=g-b,I=b*y-g*_,k=E*T-O*S,k===0?null:(m=(S*I-T*P)/k,x=(O*P-E*I)/k,new a(m,x))},o.angleOfVector=function(s,u,l,c){var f=void 0;return s!==l?(f=Math.atan((c-u)/(l-s)),l0?1:o<0?-1:0},a.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},a.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},t.exports=a}),(function(t,n,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,t.exports=a}),(function(t,n,i){var a=(function(){function f(d,h){for(var p=0;p"u"?"undefined":a(s);return s==null||u!="object"&&u!="function"},t.exports=o}),(function(t,n,i){function a(g){if(Array.isArray(g)){for(var y=0,b=Array(g.length);y0&&y;){for(E.push(S[0]);E.length>0&&y;){var T=E[0];E.splice(0,1),x.add(T);for(var P=T.getEdges(),m=0;m-1&&S.splice(B,1)}x=new Set,O=new Map}}return g},p.prototype.createDummyNodesForBendpoints=function(g){for(var y=[],b=g.source,_=this.graphManager.calcLowestCommonAncestor(g.source,g.target),m=0;m0){for(var _=this.edgeToDummyNodes.get(b),m=0;m<_.length;m++){var x=_[m],E=new f(x.getCenterX(),x.getCenterY()),O=b.bendpoints.get(m);O.x=E.x,O.y=E.y,x.getOwner().remove(x)}this.graphManager.add(b,b.source,b.target)}}},p.transform=function(g,y,b,_){if(b!=null&&_!=null){var m=y;if(g<=50){var x=y/b;m-=(y-x)/50*(50-g)}else{var E=y*_;m+=(E-y)/50*(g-50)}return m}else{var O,S;return g<=50?(O=9*y/500,S=y/10):(O=9*y/50,S=-8*y),O*g+S}},p.findCenterOfTree=function(g){var y=[];y=y.concat(g);var b=[],_=new Map,m=!1,x=null;(y.length==1||y.length==2)&&(m=!0,x=y[0]);for(var E=0;E=0&&y.splice(I,1);var k=O.getNeighborsList();k.forEach(function(j){if(b.indexOf(j)<0){var z=_.get(j),H=z-1;H==1&&T.push(j),_.set(j,H)}})}b=b.concat(T),(y.length==1||y.length==2)&&(m=!0,x=y[0])}return x},p.prototype.setGraphManager=function(g){this.graphManager=g},t.exports=p}),(function(t,n,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},t.exports=a}),(function(t,n,i){var a=i(4);function o(s,u){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(s){this.lworldOrgX=s},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(s){this.lworldOrgY=s},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(s){this.lworldExtX=s},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(s){this.lworldExtY=s},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(s){this.ldeviceOrgX=s},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(s){this.ldeviceOrgY=s},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(s){this.ldeviceExtX=s},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(s){this.ldeviceExtY=s},o.prototype.transformX=function(s){var u=0,l=this.lworldExtX;return l!=0&&(u=this.ldeviceOrgX+(s-this.lworldOrgX)*this.ldeviceExtX/l),u},o.prototype.transformY=function(s){var u=0,l=this.lworldExtY;return l!=0&&(u=this.ldeviceOrgY+(s-this.lworldOrgY)*this.ldeviceExtY/l),u},o.prototype.inverseTransformX=function(s){var u=0,l=this.ldeviceExtX;return l!=0&&(u=this.lworldOrgX+(s-this.ldeviceOrgX)*this.lworldExtX/l),u},o.prototype.inverseTransformY=function(s){var u=0,l=this.ldeviceExtY;return l!=0&&(u=this.lworldOrgY+(s-this.ldeviceOrgY)*this.lworldExtY/l),u},o.prototype.inverseTransformPoint=function(s){var u=new a(this.inverseTransformX(s.x),this.inverseTransformY(s.y));return u},t.exports=o}),(function(t,n,i){function a(h){if(Array.isArray(h)){for(var p=0,g=Array(h.length);ps.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*s.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(h-s.ADAPTATION_LOWER_NODE_LIMIT)/(s.ADAPTATION_UPPER_NODE_LIMIT-s.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-s.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=s.MAX_NODE_DISPLACEMENT_INCREMENTAL):(h>s.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(s.COOLING_ADAPTATION_FACTOR,1-(h-s.ADAPTATION_LOWER_NODE_LIMIT)/(s.ADAPTATION_UPPER_NODE_LIMIT-s.ADAPTATION_LOWER_NODE_LIMIT)*(1-s.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=s.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},f.prototype.calcSpringForces=function(){for(var h=this.getAllEdges(),p,g=0;g0&&arguments[0]!==void 0?arguments[0]:!0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g,y,b,_,m=this.getAllNodes(),x;if(this.useFRGridVariant)for(this.totalIterations%s.GRID_CALCULATION_CHECK_PERIOD==1&&h&&this.updateGrid(),x=new Set,g=0;gE||x>E)&&(h.gravitationForceX=-this.gravityConstant*b,h.gravitationForceY=-this.gravityConstant*_)):(E=p.getEstimatedSize()*this.compoundGravityRangeFactor,(m>E||x>E)&&(h.gravitationForceX=-this.gravityConstant*b*this.compoundGravityConstant,h.gravitationForceY=-this.gravityConstant*_*this.compoundGravityConstant))},f.prototype.isConverged=function(){var h,p=!1;return this.totalIterations>this.maxIterations/3&&(p=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),h=this.totalDisplacement=m.length||E>=m[0].length)){for(var O=0;Of}}]),l})();t.exports=u}),(function(t,n,i){var a=(function(){function u(l,c){for(var f=0;f2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,u),this.sequence1=l,this.sequence2=c,this.match_score=f,this.mismatch_penalty=d,this.gap_penalty=h,this.iMax=l.length+1,this.jMax=c.length+1,this.grid=new Array(this.iMax);for(var p=0;p=0;l--){var c=this.listeners[l];c.event===s&&c.callback===u&&this.listeners.splice(l,1)}},o.emit=function(s,u){for(var l=0;lc.coolingFactor*c.maxNodeDisplacement&&(this.displacementX=c.coolingFactor*c.maxNodeDisplacement*s.sign(this.displacementX)),Math.abs(this.displacementY)>c.coolingFactor*c.maxNodeDisplacement&&(this.displacementY=c.coolingFactor*c.maxNodeDisplacement*s.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),c.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},u.prototype.propogateDisplacementToChildren=function(c,f){for(var d=this.getChild().getNodes(),h,p=0;p0)this.positionNodesRadially(S);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var T=new Set(this.getAllNodes()),P=this.nodesWithGravity.filter(function(I){return T.has(I)});this.graphManager.setAllNodesToApplyGravitation(P),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var S=new Set(this.getAllNodes()),T=this.nodesWithGravity.filter(function(k){return S.has(k)});this.graphManager.setAllNodesToApplyGravitation(T),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var P=!this.isTreeGrowing&&!this.isGrowthFinished,I=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(P,I),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var S=this.graphManager.getAllNodes(),T={},P=0;P1){var j;for(j=0;jI&&(I=Math.floor(B.y)),L=Math.floor(B.x+f.DEFAULT_COMPONENT_SEPERATION)}this.transform(new g(h.WORLD_CENTER_X-B.x/2,h.WORLD_CENTER_Y-B.y/2))},E.radialLayout=function(S,T,P){var I=Math.max(this.maxDiagonalInTree(S),f.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(T,null,0,359,0,I);var k=m.calculateBounds(S),L=new x;L.setDeviceOrgX(k.getMinX()),L.setDeviceOrgY(k.getMinY()),L.setWorldOrgX(P.x),L.setWorldOrgY(P.y);for(var B=0;B1;){var re=ue[0];ue.splice(0,1);var ne=W.indexOf(re);ne>=0&&W.splice(ne,1),X--,$--}T!=null?Z=(W.indexOf(ue[0])+1)%X:Z=0;for(var le=Math.abs(I-P)/$,ce=Z;J!=$;ce=++ce%X){var pe=W[ce].getOtherEnd(S);if(pe!=T){var fe=(P+J*le)%360,se=(fe+le)%360;E.branchRadialLayout(pe,S,fe,se,k+L,L),J++}}},E.maxDiagonalInTree=function(S){for(var T=b.MIN_VALUE,P=0;PT&&(T=k)}return T},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var S=this,T={};this.memberGroups={},this.idToDummyNode={};for(var P=[],I=this.graphManager.getAllNodes(),k=0;k"u"&&(T[j]=[]),T[j]=T[j].concat(L)}Object.keys(T).forEach(function(z){if(T[z].length>1){var H="DummyCompound_"+z;S.memberGroups[H]=T[z];var q=T[z][0].getParent(),W=new l(S.graphManager);W.id=H,W.paddingLeft=q.paddingLeft||0,W.paddingRight=q.paddingRight||0,W.paddingBottom=q.paddingBottom||0,W.paddingTop=q.paddingTop||0,S.idToDummyNode[H]=W;var $=S.getGraphManager().add(S.newGraph(),W),J=q.getChild();J.add(W);for(var X=0;X=0;S--){var T=this.compoundOrder[S],P=T.id,I=T.paddingLeft,k=T.paddingTop;this.adjustLocations(this.tiledMemberPack[P],T.rect.x,T.rect.y,I,k)}},E.prototype.repopulateZeroDegreeMembers=function(){var S=this,T=this.tiledZeroDegreePack;Object.keys(T).forEach(function(P){var I=S.idToDummyNode[P],k=I.paddingLeft,L=I.paddingTop;S.adjustLocations(T[P],I.rect.x,I.rect.y,k,L)})},E.prototype.getToBeTiled=function(S){var T=S.id;if(this.toBeTiled[T]!=null)return this.toBeTiled[T];var P=S.getChild();if(P==null)return this.toBeTiled[T]=!1,!1;for(var I=P.getNodes(),k=0;k0)return this.toBeTiled[T]=!1,!1;if(L.getChild()==null){this.toBeTiled[L.id]=!1;continue}if(!this.getToBeTiled(L))return this.toBeTiled[T]=!1,!1}return this.toBeTiled[T]=!0,!0},E.prototype.getNodeDegree=function(S){S.id;for(var T=S.getEdges(),P=0,I=0;Iz&&(z=q.rect.height)}P+=z+S.verticalPadding}},E.prototype.tileCompoundMembers=function(S,T){var P=this;this.tiledMemberPack=[],Object.keys(S).forEach(function(I){var k=T[I];P.tiledMemberPack[I]=P.tileNodes(S[I],k.paddingLeft+k.paddingRight),k.rect.width=P.tiledMemberPack[I].width,k.rect.height=P.tiledMemberPack[I].height})},E.prototype.tileNodes=function(S,T){var P=f.TILING_PADDING_VERTICAL,I=f.TILING_PADDING_HORIZONTAL,k={rows:[],rowWidth:[],rowHeight:[],width:0,height:T,verticalPadding:P,horizontalPadding:I};S.sort(function(j,z){return j.rect.width*j.rect.height>z.rect.width*z.rect.height?-1:j.rect.width*j.rect.height0&&(B+=S.horizontalPadding),S.rowWidth[P]=B,S.width0&&(j+=S.verticalPadding);var z=0;j>S.rowHeight[P]&&(z=S.rowHeight[P],S.rowHeight[P]=j,z=S.rowHeight[P]-z),S.height+=z,S.rows[P].push(T)},E.prototype.getShortestRowIndex=function(S){for(var T=-1,P=Number.MAX_VALUE,I=0;IP&&(T=I,P=S.rowWidth[I]);return T},E.prototype.canAddHorizontal=function(S,T,P){var I=this.getShortestRowIndex(S);if(I<0)return!0;var k=S.rowWidth[I];if(k+S.horizontalPadding+T<=S.width)return!0;var L=0;S.rowHeight[I]0&&(L=P+S.verticalPadding-S.rowHeight[I]);var B;S.width-k>=T+S.horizontalPadding?B=(S.height+L)/(k+T+S.horizontalPadding):B=(S.height+L)/S.width,L=P+S.verticalPadding;var j;return S.widthL&&T!=P){I.splice(-1,1),S.rows[P].push(k),S.rowWidth[T]=S.rowWidth[T]-L,S.rowWidth[P]=S.rowWidth[P]+L,S.width=S.rowWidth[instance.getLongestRowIndex(S)];for(var B=Number.MIN_VALUE,j=0;jB&&(B=I[j].height);T>0&&(B+=S.verticalPadding);var z=S.rowHeight[T]+S.rowHeight[P];S.rowHeight[T]=B,S.rowHeight[P]0)for(var J=k;J<=L;J++)$[0]+=this.grid[J][B-1].length+this.grid[J][B].length-1;if(L0)for(var J=B;J<=j;J++)$[3]+=this.grid[k-1][J].length+this.grid[k][J].length-1;for(var X=b.MAX_VALUE,Z,ue,re=0;re<$.length;re++)$[re]0){var j;j=x.getGraphManager().add(x.newGraph(),P),this.processChildrenList(j,T,x)}}},g.prototype.stop=function(){return this.stopped=!0,this};var b=function(m){m("layout","cose-bilkent",g)};typeof cytoscape<"u"&&b(cytoscape),n.exports=b})])})})(ax)),ax.exports}var jte=Lte();const Bte=Bp(jte);Np.use(Bte);const Fte="cose-bilkent",Ute=(r,e)=>{const t=Np({headless:!0,styleEnabled:!1});t.add(r);const n={};return t.layout({name:Fte,animate:!1,spacingFactor:e,quality:"default",tile:!1,randomize:!0,stop:()=>{t.nodes().forEach(a=>{n[a.id()]={...a.position()}})}}).run(),{positions:n}};class zte{start(){}postMessage(e){const{elements:t,spacingFactor:n}=e,i=Ute(t,n);this.onmessage({data:i})}onmessage(){}close(){}}const qte={port:new zte},Gte=()=>new SharedWorker(new URL(""+new URL("CoseBilkentLayout.worker-DQV9PnDH.js",import.meta.url).href,import.meta.url),{type:"module",name:"CoseBilkentLayout"});function Vte(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var HO,B3;function Hte(){if(B3)return HO;B3=1;function r(){this.__data__=[],this.size=0}return HO=r,HO}var WO,F3;function vD(){if(F3)return WO;F3=1;function r(e,t){return e===t||e!==e&&t!==t}return WO=r,WO}var YO,U3;function H2(){if(U3)return YO;U3=1;var r=vD();function e(t,n){for(var i=t.length;i--;)if(r(t[i][0],n))return i;return-1}return YO=e,YO}var XO,z3;function Wte(){if(z3)return XO;z3=1;var r=H2(),e=Array.prototype,t=e.splice;function n(i){var a=this.__data__,o=r(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():t.call(a,o,1),--this.size,!0}return XO=n,XO}var $O,q3;function Yte(){if(q3)return $O;q3=1;var r=H2();function e(t){var n=this.__data__,i=r(n,t);return i<0?void 0:n[i][1]}return $O=e,$O}var KO,G3;function Xte(){if(G3)return KO;G3=1;var r=H2();function e(t){return r(this.__data__,t)>-1}return KO=e,KO}var ZO,V3;function $te(){if(V3)return ZO;V3=1;var r=H2();function e(t,n){var i=this.__data__,a=r(i,t);return a<0?(++this.size,i.push([t,n])):i[a][1]=n,this}return ZO=e,ZO}var QO,H3;function W2(){if(H3)return QO;H3=1;var r=Hte(),e=Wte(),t=Yte(),n=Xte(),i=$te();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s-1&&n%1==0&&n-1&&t%1==0&&t<=r}return YT=e,YT}var XT,qL;function xre(){if(qL)return XT;qL=1;var r=r0(),e=bD(),t=xv(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",p="[object String]",g="[object WeakMap]",y="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",m="[object Float64Array]",x="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",S="[object Uint8Array]",T="[object Uint8ClampedArray]",P="[object Uint16Array]",I="[object Uint32Array]",k={};k[_]=k[m]=k[x]=k[E]=k[O]=k[S]=k[T]=k[P]=k[I]=!0,k[n]=k[i]=k[y]=k[a]=k[b]=k[o]=k[s]=k[u]=k[l]=k[c]=k[f]=k[d]=k[h]=k[p]=k[g]=!1;function L(B){return t(B)&&e(B.length)&&!!k[r(B)]}return XT=L,XT}var $T,GL;function _D(){if(GL)return $T;GL=1;function r(e){return function(t){return e(t)}}return $T=r,$T}var gb={exports:{}};gb.exports;var VL;function wD(){return VL||(VL=1,(function(r,e){var t=BU(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,a=i&&i.exports===n,o=a&&t.process,s=(function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();r.exports=s})(gb,gb.exports)),gb.exports}var KT,HL;function Q2(){if(HL)return KT;HL=1;var r=xre(),e=_D(),t=wD(),n=t&&t.isTypedArray,i=n?e(n):r;return KT=i,KT}var ZT,WL;function VU(){if(WL)return ZT;WL=1;var r=bre(),e=Z2(),t=Fs(),n=r_(),i=GU(),a=Q2(),o=Object.prototype,s=o.hasOwnProperty;function u(l,c){var f=t(l),d=!f&&e(l),h=!f&&!d&&n(l),p=!f&&!d&&!h&&a(l),g=f||d||h||p,y=g?r(l.length,String):[],b=y.length;for(var _ in l)(c||s.call(l,_))&&!(g&&(_=="length"||h&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,b)))&&y.push(_);return y}return ZT=u,ZT}var QT,YL;function J2(){if(YL)return QT;YL=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||r;return t===i}return QT=e,QT}var JT,XL;function HU(){if(XL)return JT;XL=1;function r(e,t){return function(n){return e(t(n))}}return JT=r,JT}var eC,$L;function Ere(){if($L)return eC;$L=1;var r=HU(),e=r(Object.keys,Object);return eC=e,eC}var tC,KL;function xD(){if(KL)return tC;KL=1;var r=J2(),e=Ere(),t=Object.prototype,n=t.hasOwnProperty;function i(a){if(!r(a))return e(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return tC=i,tC}var rC,ZL;function oy(){if(ZL)return rC;ZL=1;var r=Y2(),e=bD();function t(n){return n!=null&&e(n.length)&&!r(n)}return rC=t,rC}var nC,QL;function sy(){if(QL)return nC;QL=1;var r=VU(),e=xD(),t=oy();function n(i){return t(i)?r(i):e(i)}return nC=n,nC}var iC,JL;function Sre(){if(JL)return iC;JL=1;var r=K2(),e=sy();function t(n,i){return n&&r(i,e(i),n)}return iC=t,iC}var aC,e4;function Ore(){if(e4)return aC;e4=1;function r(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}return aC=r,aC}var oC,t4;function Tre(){if(t4)return oC;t4=1;var r=iy(),e=J2(),t=Ore(),n=Object.prototype,i=n.hasOwnProperty;function a(o){if(!r(o))return t(o);var s=e(o),u=[];for(var l in o)l=="constructor"&&(s||!i.call(o,l))||u.push(l);return u}return oC=a,oC}var sC,r4;function ED(){if(r4)return sC;r4=1;var r=VU(),e=Tre(),t=oy();function n(i){return t(i)?r(i,!0):e(i)}return sC=n,sC}var uC,n4;function Cre(){if(n4)return uC;n4=1;var r=K2(),e=ED();function t(n,i){return n&&r(i,e(i),n)}return uC=t,uC}var yb={exports:{}};yb.exports;var i4;function Are(){return i4||(i4=1,(function(r,e){var t=Ch(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,a=i&&i.exports===n,o=a?t.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}r.exports=u})(yb,yb.exports)),yb.exports}var lC,a4;function Rre(){if(a4)return lC;a4=1;function r(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++nh))return!1;var g=f.get(o),y=f.get(s);if(g&&y)return g==s&&y==o;var b=-1,_=!0,m=u&i?new r:void 0;for(f.set(o,s),f.set(s,o);++b0&&a(c)?i>1?t(c,i-1,a,o,s):r(s,c):o||(s[s.length]=c)}return s}return eR=t,eR}var tR,Zj;function qne(){if(Zj)return tR;Zj=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return tR=r,tR}var rR,Qj;function Gne(){if(Qj)return rR;Qj=1;var r=qne(),e=Math.max;function t(n,i,a){return i=e(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,u=e(o.length-i,0),l=Array(u);++s0){if(++a>=r)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return iR=n,iR}var aR,t6;function Wne(){if(t6)return aR;t6=1;var r=Vne(),e=Hne(),t=e(r);return aR=t,aR}var oR,r6;function Yne(){if(r6)return oR;r6=1;var r=tE(),e=Gne(),t=Wne();function n(i,a){return t(e(i,a,r),i+"")}return oR=n,oR}var sR,n6;function Xne(){if(n6)return sR;n6=1;function r(e,t,n,i){for(var a=e.length,o=n+(i?1:-1);i?o--:++o-1}return fR=e,fR}var dR,u6;function Jne(){if(u6)return dR;u6=1;function r(e,t,n){for(var i=-1,a=e==null?0:e.length;++i=o){var b=l?null:i(u);if(b)return a(b);p=!1,d=n,y=new r}else y=l?[]:g;e:for(;++f1?h.setNode(p,f):h.setNode(p)}),this},i.prototype.setNode=function(c,f){return r.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=f),this):(this._nodes[c]=arguments.length>1?f:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=t,this._children[c]={},this._children[t][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},i.prototype.node=function(c){return this._nodes[c]},i.prototype.hasNode=function(c){return r.has(this._nodes,c)},i.prototype.removeNode=function(c){var f=this;if(r.has(this._nodes,c)){var d=function(h){f.removeEdge(f._edgeObjs[h])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],r.each(this.children(c),function(h){f.setParent(h)}),delete this._children[c]),r.each(r.keys(this._in[c]),d),delete this._in[c],delete this._preds[c],r.each(r.keys(this._out[c]),d),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},i.prototype.setParent=function(c,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(f))f=t;else{f+="";for(var d=f;!r.isUndefined(d);d=this.parent(d))if(d===c)throw new Error("Setting "+f+" as parent of "+c+" would create a cycle");this.setNode(f)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=f,this._children[f][c]=!0,this},i.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},i.prototype.parent=function(c){if(this._isCompound){var f=this._parent[c];if(f!==t)return f}},i.prototype.children=function(c){if(r.isUndefined(c)&&(c=t),this._isCompound){var f=this._children[c];if(f)return r.keys(f)}else{if(c===t)return this.nodes();if(this.hasNode(c))return[]}},i.prototype.predecessors=function(c){var f=this._preds[c];if(f)return r.keys(f)},i.prototype.successors=function(c){var f=this._sucs[c];if(f)return r.keys(f)},i.prototype.neighbors=function(c){var f=this.predecessors(c);if(f)return r.union(f,this.successors(c))},i.prototype.isLeaf=function(c){var f;return this.isDirected()?f=this.successors(c):f=this.neighbors(c),f.length===0},i.prototype.filterNodes=function(c){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var d=this;r.each(this._nodes,function(g,y){c(y)&&f.setNode(y,g)}),r.each(this._edgeObjs,function(g){f.hasNode(g.v)&&f.hasNode(g.w)&&f.setEdge(g,d.edge(g))});var h={};function p(g){var y=d.parent(g);return y===void 0||f.hasNode(y)?(h[g]=y,y):y in h?h[y]:p(y)}return this._isCompound&&r.each(f.nodes(),function(g){f.setParent(g,p(g))}),f},i.prototype.setDefaultEdgeLabel=function(c){return r.isFunction(c)||(c=r.constant(c)),this._defaultEdgeLabelFn=c,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(c,f){var d=this,h=arguments;return r.reduce(c,function(p,g){return h.length>1?d.setEdge(p,g,f):d.setEdge(p,g),g}),this},i.prototype.setEdge=function(){var c,f,d,h,p=!1,g=arguments[0];typeof g=="object"&&g!==null&&"v"in g?(c=g.v,f=g.w,d=g.name,arguments.length===2&&(h=arguments[1],p=!0)):(c=g,f=arguments[1],d=arguments[3],arguments.length>2&&(h=arguments[2],p=!0)),c=""+c,f=""+f,r.isUndefined(d)||(d=""+d);var y=s(this._isDirected,c,f,d);if(r.has(this._edgeLabels,y))return p&&(this._edgeLabels[y]=h),this;if(!r.isUndefined(d)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(f),this._edgeLabels[y]=p?h:this._defaultEdgeLabelFn(c,f,d);var b=u(this._isDirected,c,f,d);return c=b.v,f=b.w,Object.freeze(b),this._edgeObjs[y]=b,a(this._preds[f],c),a(this._sucs[c],f),this._in[f][y]=b,this._out[c][y]=b,this._edgeCount++,this},i.prototype.edge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,c,f,d);return this._edgeLabels[h]},i.prototype.hasEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,c,f,d);return r.has(this._edgeLabels,h)},i.prototype.removeEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,c,f,d),p=this._edgeObjs[h];return p&&(c=p.v,f=p.w,delete this._edgeLabels[h],delete this._edgeObjs[h],o(this._preds[f],c),o(this._sucs[c],f),delete this._in[f][h],delete this._out[c][h],this._edgeCount--),this},i.prototype.inEdges=function(c,f){var d=this._in[c];if(d){var h=r.values(d);return f?r.filter(h,function(p){return p.v===f}):h}},i.prototype.outEdges=function(c,f){var d=this._out[c];if(d){var h=r.values(d);return f?r.filter(h,function(p){return p.w===f}):h}},i.prototype.nodeEdges=function(c,f){var d=this.inEdges(c,f);if(d)return d.concat(this.outEdges(c,f))};function a(c,f){c[f]?c[f]++:c[f]=1}function o(c,f){--c[f]||delete c[f]}function s(c,f,d,h){var p=""+f,g=""+d;if(!c&&p>g){var y=p;p=g,g=y}return p+n+g+n+(r.isUndefined(h)?e:h)}function u(c,f,d,h){var p=""+f,g=""+d;if(!c&&p>g){var y=p;p=g,g=y}var b={v:p,w:g};return h&&(b.name=h),b}function l(c,f){return s(c,f.v,f.w,f.name)}return wR}var xR,m6;function sie(){return m6||(m6=1,xR="2.1.8"),xR}var ER,b6;function uie(){return b6||(b6=1,ER={Graph:DD(),version:sie()}),ER}var SR,_6;function lie(){if(_6)return SR;_6=1;var r=qf(),e=DD();SR={write:t,read:a};function t(o){var s={options:{directed:o.isDirected(),multigraph:o.isMultigraph(),compound:o.isCompound()},nodes:n(o),edges:i(o)};return r.isUndefined(o.graph())||(s.value=r.clone(o.graph())),s}function n(o){return r.map(o.nodes(),function(s){var u=o.node(s),l=o.parent(s),c={v:s};return r.isUndefined(u)||(c.value=u),r.isUndefined(l)||(c.parent=l),c})}function i(o){return r.map(o.edges(),function(s){var u=o.edge(s),l={v:s.v,w:s.w};return r.isUndefined(s.name)||(l.name=s.name),r.isUndefined(u)||(l.value=u),l})}function a(o){var s=new e(o.options).setGraph(o.value);return r.each(o.nodes,function(u){s.setNode(u.v,u.value),u.parent&&s.setParent(u.v,u.parent)}),r.each(o.edges,function(u){s.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),s}return SR}var OR,w6;function cie(){if(w6)return OR;w6=1;var r=qf();OR=e;function e(t){var n={},i=[],a;function o(s){r.has(n,s)||(n[s]=!0,a.push(s),r.each(t.successors(s),o),r.each(t.predecessors(s),o))}return r.each(t.nodes(),function(s){a=[],o(s),a.length&&i.push(a)}),i}return OR}var TR,x6;function dz(){if(x6)return TR;x6=1;var r=qf();TR=e;function e(){this._arr=[],this._keyIndices={}}return e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(t){return r.has(this._keyIndices,t)},e.prototype.priority=function(t){var n=this._keyIndices[t];if(n!==void 0)return this._arr[n].priority},e.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(t,n){var i=this._keyIndices;if(t=String(t),!r.has(i,t)){var a=this._arr,o=a.length;return i[t]=o,a.push({key:t,priority:n}),this._decrease(o),!0}return!1},e.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},e.prototype.decrease=function(t,n){var i=this._keyIndices[t];if(n>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[i].priority+" New: "+n);this._arr[i].priority=n,this._decrease(i)},e.prototype._heapify=function(t){var n=this._arr,i=2*t,a=i+1,o=t;i>1,!(n[a].priority0&&(f=c.removeMin(),d=l[f],d.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(h);return l}return CR}var AR,S6;function fie(){if(S6)return AR;S6=1;var r=hz(),e=qf();AR=t;function t(n,i,a){return e.transform(n.nodes(),function(o,s){o[s]=r(n,s,i,a)},{})}return AR}var RR,O6;function vz(){if(O6)return RR;O6=1;var r=qf();RR=e;function e(t){var n=0,i=[],a={},o=[];function s(u){var l=a[u]={onStack:!0,lowlink:n,index:n++};if(i.push(u),t.successors(u).forEach(function(d){r.has(a,d)?a[d].onStack&&(l.lowlink=Math.min(l.lowlink,a[d].index)):(s(d),l.lowlink=Math.min(l.lowlink,a[d].lowlink))}),l.lowlink===l.index){var c=[],f;do f=i.pop(),a[f].onStack=!1,c.push(f);while(u!==f);o.push(c)}}return t.nodes().forEach(function(u){r.has(a,u)||s(u)}),o}return RR}var PR,T6;function die(){if(T6)return PR;T6=1;var r=qf(),e=vz();PR=t;function t(n){return r.filter(e(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}return PR}var MR,C6;function hie(){if(C6)return MR;C6=1;var r=qf();MR=t;var e=r.constant(1);function t(i,a,o){return n(i,a||e,o||function(s){return i.outEdges(s)})}function n(i,a,o){var s={},u=i.nodes();return u.forEach(function(l){s[l]={},s[l][l]={distance:0},u.forEach(function(c){l!==c&&(s[l][c]={distance:Number.POSITIVE_INFINITY})}),o(l).forEach(function(c){var f=c.v===l?c.w:c.v,d=a(c);s[l][f]={distance:d,predecessor:l}})}),u.forEach(function(l){var c=s[l];u.forEach(function(f){var d=s[f];u.forEach(function(h){var p=d[l],g=c[h],y=d[h],b=p.distance+g.distance;b0;){if(l=u.removeMin(),r.has(s,l))o.setEdge(l,s[l]);else{if(f)throw new Error("Input graph is not connected: "+i);f=!0}i.nodeEdges(l).forEach(c)}return o}return jR}var BR,I6;function mie(){return I6||(I6=1,BR={components:cie(),dijkstra:hz(),dijkstraAll:fie(),findCycles:die(),floydWarshall:hie(),isAcyclic:vie(),postorder:pie(),preorder:gie(),prim:yie(),tarjan:vz(),topsort:pz()}),BR}var FR,N6;function Uf(){if(N6)return FR;N6=1;var r=uie();return FR={Graph:r.Graph,json:lie(),alg:mie(),version:r.version},FR}var mb={exports:{}};/** + `),s=Gee(n,i,o);s.aPosition=n.getAttribLocation(s,"aPosition"),s.aIndex=n.getAttribLocation(s,"aIndex"),s.aVertType=n.getAttribLocation(s,"aVertType"),s.aTransform=n.getAttribLocation(s,"aTransform"),s.aAtlasId=n.getAttribLocation(s,"aAtlasId"),s.aTex=n.getAttribLocation(s,"aTex"),s.aPointAPointB=n.getAttribLocation(s,"aPointAPointB"),s.aPointCPointD=n.getAttribLocation(s,"aPointCPointD"),s.aLineWidth=n.getAttribLocation(s,"aLineWidth"),s.aColor=n.getAttribLocation(s,"aColor"),s.aCornerRadius=n.getAttribLocation(s,"aCornerRadius"),s.aBorderColor=n.getAttribLocation(s,"aBorderColor"),s.uPanZoomMatrix=n.getUniformLocation(s,"uPanZoomMatrix"),s.uAtlasSize=n.getUniformLocation(s,"uAtlasSize"),s.uBGColor=n.getUniformLocation(s,"uBGColor"),s.uZoom=n.getUniformLocation(s,"uZoom"),s.uTextures=[];for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:kb.SCREEN;this.panZoomMatrix=t,this.renderTarget=n,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(t,n){return t.visible()?n&&n.isVisible?n.isVisible(t):!0:!1}},{key:"drawTexture",value:function(t,n,i){var a=this.atlasManager,o=this.batchManager,s=a.getRenderTypeOpts(i);if(this._isVisible(t,s)&&!(t.isEdge()&&!this._isValidEdge(t))){if(this.renderTarget.picking&&s.getTexPickingMode){var u=s.getTexPickingMode(t);if(u===zx.IGNORE)return;if(u==zx.USE_BB){this.drawPickingRectangle(t,n,i);return}}var l=a.getAtlasInfo(t,i),c=Ac(l),f;try{for(c.s();!(f=c.n()).done;){var d=f.value,h=d.atlas,p=d.tex1,g=d.tex2;o.canAddToCurrentBatch(h)||this.endBatch();for(var y=o.getAtlasIndexForBatch(h),b=0,_=[[p,!0],[g,!1]];b<_.length;b++){var m=zo(_[b],2),x=m[0],E=m[1];if(x.w!=0){var O=this.instanceCount;this.vertTypeBuffer.getView(O)[0]=UO;var S=this.indexBuffer.getView(O);em(n,S);var T=this.atlasIdBuffer.getView(O);T[0]=y;var P=this.texBuffer.getView(O);P[0]=x.x,P[1]=x.y,P[2]=x.w,P[3]=x.h;var I=this.transformBuffer.getMatrixView(O);this.setTransformMatrix(t,I,s,d,E),this.instanceCount++,E||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(k){c.e(k)}finally{c.f()}}}},{key:"setTransformMatrix",value:function(t,n,i,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=0;if(i.shapeProps&&i.shapeProps.padding&&(s=t.pstyle(i.shapeProps.padding).pfValue),a){var u=a.bb,l=a.tex1,c=a.tex2,f=l.w/(l.w+c.w);o||(f=1-f);var d=this._getAdjustedBB(u,s,o,f);this._applyTransformMatrix(n,d,i,t)}else{var h=i.getBoundingBox(t),p=this._getAdjustedBB(h,s,!0,1);this._applyTransformMatrix(n,p,i,t)}}},{key:"_applyTransformMatrix",value:function(t,n,i,a){var o,s;R3(t);var u=i.getRotation?i.getRotation(a):0;if(u!==0){var l=i.getRotationPoint(a),c=l.x,f=l.y;ix(t,t,[c,f]),P3(t,t,u);var d=i.getRotationOffset(a);o=d.x+(n.xOffset||0),s=d.y+(n.yOffset||0)}else o=n.x1,s=n.y1;ix(t,t,[o,s]),CM(t,t,[n.w,n.h])}},{key:"_getAdjustedBB",value:function(t,n,i,a){var o=t.x1,s=t.y1,u=t.w,l=t.h,c=t.yOffset;n&&(o-=n,s-=n,u+=2*n,l+=2*n);var f=0,d=u*a;return i&&a<1?u=d:!i&&a<1&&(f=u-d,o+=f,u=d),{x1:o,y1:s,w:u,h:l,xOffset:f,yOffset:c}}},{key:"drawPickingRectangle",value:function(t,n,i){var a=this.atlasManager.getRenderTypeOpts(i),o=this.instanceCount;this.vertTypeBuffer.getView(o)[0]=tm;var s=this.indexBuffer.getView(o);em(n,s);var u=this.colorBuffer.getView(o);Sg([0,0,0],1,u);var l=this.transformBuffer.getMatrixView(o);this.setTransformMatrix(t,l,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(t,n,i){var a=this.simpleShapeOptions.get(i);if(this._isVisible(t,a)){var o=a.shapeProps,s=this._getVertTypeForShape(t,o.shape);if(s===void 0||a.isSimple&&!a.isSimple(t)){this.drawTexture(t,n,i);return}var u=this.instanceCount;if(this.vertTypeBuffer.getView(u)[0]=s,s===xw||s===Y0){var l=a.getBoundingBox(t),c=this._getCornerRadius(t,o.radius,l),f=this.cornerRadiusBuffer.getView(u);f[0]=c,f[1]=c,f[2]=c,f[3]=c,s===Y0&&(f[0]=0,f[2]=0)}var d=this.indexBuffer.getView(u);em(n,d);var h=t.pstyle(o.color).value,p=t.pstyle(o.opacity).value,g=this.colorBuffer.getView(u);Sg(h,p,g);var y=this.lineWidthBuffer.getView(u);if(y[0]=0,y[1]=0,o.border){var b=t.pstyle("border-width").value;if(b>0){var _=t.pstyle("border-color").value,m=t.pstyle("border-opacity").value,x=this.borderColorBuffer.getView(u);Sg(_,m,x);var E=t.pstyle("border-position").value;if(E==="inside")y[0]=0,y[1]=-b;else if(E==="outside")y[0]=b,y[1]=0;else{var O=b/2;y[0]=O,y[1]=-O}}}var S=this.transformBuffer.getMatrixView(u);this.setTransformMatrix(t,S,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(t,n){var i=t.pstyle(n).value;switch(i){case"rectangle":return tm;case"ellipse":return X0;case"roundrectangle":case"round-rectangle":return xw;case"bottom-round-rectangle":return Y0;default:return}}},{key:"_getCornerRadius",value:function(t,n,i){var a=i.w,o=i.h;if(t.pstyle(n).value==="auto")return Mp(a,o);var s=t.pstyle(n).pfValue,u=a/2,l=o/2;return Math.min(s,l,u)}},{key:"drawEdgeArrow",value:function(t,n,i){if(t.visible()){var a=t._private.rscratch,o,s,u;if(i==="source"?(o=a.arrowStartX,s=a.arrowStartY,u=a.srcArrowAngle):(o=a.arrowEndX,s=a.arrowEndY,u=a.tgtArrowAngle),!(isNaN(o)||o==null||isNaN(s)||s==null||isNaN(u)||u==null)){var l=t.pstyle(i+"-arrow-shape").value;if(l!=="none"){var c=t.pstyle(i+"-arrow-color").value,f=t.pstyle("opacity").value,d=t.pstyle("line-opacity").value,h=f*d,p=t.pstyle("width").pfValue,g=t.pstyle("arrow-scale").value,y=this.r.getArrowWidth(p,g),b=this.instanceCount,_=this.transformBuffer.getMatrixView(b);R3(_),ix(_,_,[o,s]),CM(_,_,[y,y]),P3(_,_,u),this.vertTypeBuffer.getView(b)[0]=zO;var m=this.indexBuffer.getView(b);em(n,m);var x=this.colorBuffer.getView(b);Sg(c,h,x),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(t,n){if(t.visible()){var i=this._getEdgePoints(t);if(i){var a=t.pstyle("opacity").value,o=t.pstyle("line-opacity").value,s=t.pstyle("width").pfValue,u=t.pstyle("line-color").value,l=a*o;if(i.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),i.length==4){var c=this.instanceCount;this.vertTypeBuffer.getView(c)[0]=M3;var f=this.indexBuffer.getView(c);em(n,f);var d=this.colorBuffer.getView(c);Sg(u,l,d);var h=this.lineWidthBuffer.getView(c);h[0]=s;var p=this.pointAPointBBuffer.getView(c);p[0]=i[0],p[1]=i[1],p[2]=i[2],p[3]=i[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var g=0;g=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(t){var n=t._private.rscratch;return!(n.badLine||n.allpts==null||isNaN(n.allpts[0]))}},{key:"_getEdgePoints",value:function(t){var n=t._private.rscratch;if(this._isValidEdge(t)){var i=n.allpts;if(i.length==4)return i;var a=this._getNumSegments(t);return this._getCurveSegmentPoints(i,a)}}},{key:"_getNumSegments",value:function(t){var n=15;return Math.min(Math.max(n,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(t,n){if(t.length==4)return t;for(var i=Array((n+1)*2),a=0;a<=n;a++)if(a==0)i[0]=t[0],i[1]=t[1];else if(a==n)i[a*2]=t[t.length-2],i[a*2+1]=t[t.length-1];else{var o=a/n;this._setCurvePoint(t,o,i,a*2)}return i}},{key:"_setCurvePoint",value:function(t,n,i,a){if(t.length<=2)i[a]=t[0],i[a+1]=t[1];else{for(var o=Array(t.length-2),s=0;s0}},s=function(f){var d=f.pstyle("text-events").strValue==="yes";return d?zx.USE_BB:zx.IGNORE},u=function(f){var d=f.position(),h=d.x,p=d.y,g=f.outerWidth(),y=f.outerHeight();return{w:g,h:y,x1:h-g/2,y1:p-y/2}};t.drawing.addAtlasCollection("node",{texRows:r.webglTexRowsNodes}),t.drawing.addAtlasCollection("label",{texRows:r.webglTexRows}),t.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:e.getStyleKey,getBoundingBox:e.getElementBox,drawElement:e.drawElement}),t.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:u,isSimple:Yee,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),t.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:u,isVisible:o("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),t.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:u,isVisible:o("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),t.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:s,getKey:qO(e.getLabelKey,null),getBoundingBox:GO(e.getLabelBox,null),drawClipped:!0,drawElement:e.drawLabel,getRotation:i(null),getRotationPoint:e.getLabelRotationPoint,getRotationOffset:e.getLabelRotationOffset,isVisible:a("label")}),t.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:s,getKey:qO(e.getSourceLabelKey,"source"),getBoundingBox:GO(e.getSourceLabelBox,"source"),drawClipped:!0,drawElement:e.drawSourceLabel,getRotation:i("source"),getRotationPoint:e.getSourceLabelRotationPoint,getRotationOffset:e.getSourceLabelRotationOffset,isVisible:a("source-label")}),t.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:s,getKey:qO(e.getTargetLabelKey,"target"),getBoundingBox:GO(e.getTargetLabelBox,"target"),drawClipped:!0,drawElement:e.drawTargetLabel,getRotation:i("target"),getRotationPoint:e.getTargetLabelRotationPoint,getRotationOffset:e.getTargetLabelRotationOffset,isVisible:a("target-label")});var l=$1(function(){console.log("garbage collect flag set"),t.data.gc=!0},1e4);t.onUpdateEleCalcs(function(c,f){var d=!1;f&&f.length>0&&(d|=t.drawing.invalidate(f)),d&&l()}),vte(t)};function hte(r){var e=r.cy.container(),t=e&&e.style&&e.style.backgroundColor||"white";return eF(t)}function CU(r,e){var t=r._private.rscratch;return Tc(t,"labelWrapCachedLines",e)||[]}var qO=function(e,t){return function(n){var i=e(n),a=CU(n,t);return a.length>1?a.map(function(o,s){return"".concat(i,"_").concat(s)}):i}},GO=function(e,t){return function(n,i){var a=e(n);if(typeof i=="string"){var o=i.indexOf("_");if(o>0){var s=Number(i.substring(o+1)),u=CU(n,t),l=a.h/u.length,c=l*s,f=a.y1+c;return{x1:a.x1,w:a.w,y1:f,h:l,yOffset:c}}}return a}};function vte(r){{var e=r.render;r.render=function(a){a=a||{};var o=r.cy;r.webgl&&(o.zoom()>bU?(pte(r),e.call(r,a)):(gte(r),RU(r,a,kb.SCREEN)))}}{var t=r.matchCanvasSize;r.matchCanvasSize=function(a){t.call(r,a),r.pickingFrameBuffer.setFramebufferAttachmentSizes(r.canvasWidth,r.canvasHeight),r.pickingFrameBuffer.needsDraw=!0}}r.findNearestElements=function(a,o,s,u){return xte(r,a,o)};{var n=r.invalidateCachedZSortedEles;r.invalidateCachedZSortedEles=function(){n.call(r),r.pickingFrameBuffer.needsDraw=!0}}{var i=r.notify;r.notify=function(a,o){i.call(r,a,o),a==="viewport"||a==="bounds"?r.pickingFrameBuffer.needsDraw=!0:a==="background"&&r.drawing.invalidate(o,{type:"node-body"})}}}function pte(r){var e=r.data.contexts[r.WEBGL];e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function gte(r){var e=function(n){n.save(),n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,r.canvasWidth,r.canvasHeight),n.restore()};e(r.data.contexts[r.NODE]),e(r.data.contexts[r.DRAG])}function yte(r){var e=r.canvasWidth,t=r.canvasHeight,n=vD(r),i=n.pan,a=n.zoom,o=FO();ix(o,o,[i.x,i.y]),CM(o,o,[a,a]);var s=FO();rte(s,e,t);var u=FO();return tte(u,s,o),u}function AU(r,e){var t=r.canvasWidth,n=r.canvasHeight,i=vD(r),a=i.pan,o=i.zoom;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t,n),e.translate(a.x,a.y),e.scale(o,o)}function mte(r,e){r.drawSelectionRectangle(e,function(t){return AU(r,t)})}function bte(r){var e=r.data.contexts[r.NODE];e.save(),AU(r,e),e.strokeStyle="rgba(0, 0, 0, 0.3)",e.beginPath(),e.moveTo(-1e3,0),e.lineTo(1e3,0),e.stroke(),e.beginPath(),e.moveTo(0,-1e3),e.lineTo(0,1e3),e.stroke(),e.restore()}function _te(r){var e=function(i,a,o){for(var s=i.atlasManager.getAtlasCollection(a),u=r.data.contexts[r.NODE],l=s.atlases,c=0;c=0&&x.add(S)}return x}function xte(r,e,t){var n=wte(r,e,t),i=r.getCachedZSortedEles(),a,o,s=Ac(n),u;try{for(s.s();!(u=s.n()).done;){var l=u.value,c=i[l];if(!a&&c.isNode()&&(a=c),!o&&c.isEdge()&&(o=c),a&&o)break}}catch(f){s.e(f)}finally{s.f()}return[a,o].filter(Boolean)}function VO(r,e,t){var n=r.drawing;e+=1,t.isNode()?(n.drawNode(t,e,"node-underlay"),n.drawNode(t,e,"node-body"),n.drawTexture(t,e,"label"),n.drawNode(t,e,"node-overlay")):(n.drawEdgeLine(t,e),n.drawEdgeArrow(t,e,"source"),n.drawEdgeArrow(t,e,"target"),n.drawTexture(t,e,"label"),n.drawTexture(t,e,"edge-source-label"),n.drawTexture(t,e,"edge-target-label"))}function RU(r,e,t){var n;r.webglDebug&&(n=performance.now());var i=r.drawing,a=0;if(t.screen&&r.data.canvasNeedsRedraw[r.SELECT_BOX]&&mte(r,e),r.data.canvasNeedsRedraw[r.NODE]||t.picking){var o=r.data.contexts[r.WEBGL];t.screen?(o.clearColor(0,0,0,0),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)):o.disable(o.BLEND),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.viewport(0,0,o.canvas.width,o.canvas.height);var s=yte(r),u=r.getCachedZSortedEles();if(a=u.length,i.startFrame(s,t),t.screen){for(var l=0;l0&&o>0){h.clearRect(0,0,a,o),h.globalCompositeOperation="source-over";var p=this.getCachedZSortedEles();if(r.full)h.translate(-n.x1*l,-n.y1*l),h.scale(l,l),this.drawElements(h,p),h.scale(1/l,1/l),h.translate(n.x1*l,n.y1*l);else{var g=e.pan(),y={x:g.x*l,y:g.y*l};l*=e.zoom(),h.translate(y.x,y.y),h.scale(l,l),this.drawElements(h,p),h.scale(1/l,1/l),h.translate(-y.x,-y.y)}r.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=r.bg,h.rect(0,0,a,o),h.fill())}return d};function Ete(r,e){for(var t=atob(r),n=new ArrayBuffer(t.length),i=new Uint8Array(n),a=0;a"u"?"undefined":cs(OffscreenCanvas))!=="undefined")t=new OffscreenCanvas(r,e);else{var n=this.cy.window(),i=n.document;t=i.createElement("canvas"),t.width=r,t.height=e}return t};[wU,Th,wv,hD,ny,Vp,Gl,TU,Hp,t_,DU].forEach(function(r){kr(An,r)});var Tte=[{name:"null",impl:sU},{name:"base",impl:yU},{name:"canvas",impl:Ste}],Cte=[{type:"layout",extensions:QJ},{type:"renderer",extensions:Tte}],IU={},NU={};function LU(r,e,t){var n=t,i=function(T){Ai("Can not register `"+e+"` for `"+r+"` since `"+T+"` already exists in the prototype and can not be overridden")};if(r==="core"){if(S1.prototype[e])return i(e);S1.prototype[e]=t}else if(r==="collection"){if(lu.prototype[e])return i(e);lu.prototype[e]=t}else if(r==="layout"){for(var a=function(T){this.options=T,t.call(this,T),ai(this._private)||(this._private={}),this._private.cy=T.cy,this._private.listeners=[],this.createEmitter()},o=a.prototype=Object.create(t.prototype),s=[],u=0;up&&(this.rect.x-=(this.labelWidth-p)/2,this.setWidth(this.labelWidth)),this.labelHeight>g&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-g)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-g),this.setHeight(this.labelHeight))}}},f.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},f.prototype.transform=function(h){var p=this.rect.x;p>u.WORLD_BOUNDARY?p=u.WORLD_BOUNDARY:p<-u.WORLD_BOUNDARY&&(p=-u.WORLD_BOUNDARY);var g=this.rect.y;g>u.WORLD_BOUNDARY?g=u.WORLD_BOUNDARY:g<-u.WORLD_BOUNDARY&&(g=-u.WORLD_BOUNDARY);var y=new c(p,g),b=h.inverseTransformPoint(y);this.setLocation(b.x,b.y)},f.prototype.getLeft=function(){return this.rect.x},f.prototype.getRight=function(){return this.rect.x+this.rect.width},f.prototype.getTop=function(){return this.rect.y},f.prototype.getBottom=function(){return this.rect.y+this.rect.height},f.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},t.exports=f}),(function(t,n,i){function a(o,s){o==null&&s==null?(this.x=0,this.y=0):(this.x=o,this.y=s)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(o){this.x=o},a.prototype.setY=function(o){this.y=o},a.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},t.exports=a}),(function(t,n,i){var a=i(2),o=i(10),s=i(0),u=i(6),l=i(3),c=i(1),f=i(13),d=i(12),h=i(11);function p(y,b,_){a.call(this,_),this.estimatedSize=o.MIN_VALUE,this.margin=s.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=y,b!=null&&b instanceof u?this.graphManager=b:b!=null&&b instanceof Layout&&(this.graphManager=b.graphManager)}p.prototype=Object.create(a.prototype);for(var g in a)p[g]=a[g];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(y,b,_){if(b==null&&_==null){var m=y;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(m)>-1)throw"Node already in graph!";return m.owner=this,this.getNodes().push(m),m}else{var x=y;if(!(this.getNodes().indexOf(b)>-1&&this.getNodes().indexOf(_)>-1))throw"Source or target not in graph!";if(!(b.owner==_.owner&&b.owner==this))throw"Both owners must be this graph!";return b.owner!=_.owner?null:(x.source=b,x.target=_,x.isInterGraph=!1,this.getEdges().push(x),b.edges.push(x),_!=b&&_.edges.push(x),x)}},p.prototype.remove=function(y){var b=y;if(y instanceof l){if(b==null)throw"Node is null!";if(!(b.owner!=null&&b.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var _=b.edges.slice(),m,x=_.length,E=0;E-1&&T>-1))throw"Source and/or target doesn't know this edge!";m.source.edges.splice(S,1),m.target!=m.source&&m.target.edges.splice(T,1);var O=m.source.owner.getEdges().indexOf(m);if(O==-1)throw"Not in owner's edge list!";m.source.owner.getEdges().splice(O,1)}},p.prototype.updateLeftTop=function(){for(var y=o.MAX_VALUE,b=o.MAX_VALUE,_,m,x,E=this.getNodes(),O=E.length,S=0;S_&&(y=_),b>m&&(b=m)}return y==o.MAX_VALUE?null:(E[0].getParent().paddingLeft!=null?x=E[0].getParent().paddingLeft:x=this.margin,this.left=b-x,this.top=y-x,new d(this.left,this.top))},p.prototype.updateBounds=function(y){for(var b=o.MAX_VALUE,_=-o.MAX_VALUE,m=o.MAX_VALUE,x=-o.MAX_VALUE,E,O,S,T,P,I=this.nodes,k=I.length,L=0;LE&&(b=E),_S&&(m=S),xE&&(b=E),_S&&(m=S),x=this.nodes.length){var k=0;_.forEach(function(L){L.owner==y&&k++}),k==this.nodes.length&&(this.isConnected=!0)}},t.exports=p}),(function(t,n,i){var a,o=i(1);function s(u){a=i(5),this.layout=u,this.graphs=[],this.edges=[]}s.prototype.addRoot=function(){var u=this.layout.newGraph(),l=this.layout.newNode(null),c=this.add(u,l);return this.setRootGraph(c),this.rootGraph},s.prototype.add=function(u,l,c,f,d){if(c==null&&f==null&&d==null){if(u==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(u)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(u),u.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return u.parent=l,l.child=u,u}else{d=c,f=l,c=u;var h=f.getOwner(),p=d.getOwner();if(!(h!=null&&h.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(p!=null&&p.getGraphManager()==this))throw"Target not in this graph mgr!";if(h==p)return c.isInterGraph=!1,h.add(c,f,d);if(c.isInterGraph=!0,c.source=f,c.target=d,this.edges.indexOf(c)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(c),!(c.source!=null&&c.target!=null))throw"Edge source and/or target is null!";if(!(c.source.edges.indexOf(c)==-1&&c.target.edges.indexOf(c)==-1))throw"Edge already in source and/or target incidency list!";return c.source.edges.push(c),c.target.edges.push(c),c}},s.prototype.remove=function(u){if(u instanceof a){var l=u;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var c=[];c=c.concat(l.getEdges());for(var f,d=c.length,h=0;h=u.getRight()?l[0]+=Math.min(u.getX()-s.getX(),s.getRight()-u.getRight()):u.getX()<=s.getX()&&u.getRight()>=s.getRight()&&(l[0]+=Math.min(s.getX()-u.getX(),u.getRight()-s.getRight())),s.getY()<=u.getY()&&s.getBottom()>=u.getBottom()?l[1]+=Math.min(u.getY()-s.getY(),s.getBottom()-u.getBottom()):u.getY()<=s.getY()&&u.getBottom()>=s.getBottom()&&(l[1]+=Math.min(s.getY()-u.getY(),u.getBottom()-s.getBottom()));var d=Math.abs((u.getCenterY()-s.getCenterY())/(u.getCenterX()-s.getCenterX()));u.getCenterY()===s.getCenterY()&&u.getCenterX()===s.getCenterX()&&(d=1);var h=d*l[0],p=l[1]/d;l[0]h)return l[0]=c,l[1]=g,l[2]=d,l[3]=I,!1;if(fd)return l[0]=p,l[1]=f,l[2]=T,l[3]=h,!1;if(cd?(l[0]=b,l[1]=_,j=!0):(l[0]=y,l[1]=g,j=!0):H===W&&(c>d?(l[0]=p,l[1]=g,j=!0):(l[0]=m,l[1]=_,j=!0)),-q===W?d>c?(l[2]=P,l[3]=I,z=!0):(l[2]=T,l[3]=S,z=!0):q===W&&(d>c?(l[2]=O,l[3]=S,z=!0):(l[2]=k,l[3]=I,z=!0)),j&&z)return!1;if(c>d?f>h?($=this.getCardinalDirection(H,W,4),J=this.getCardinalDirection(q,W,2)):($=this.getCardinalDirection(-H,W,3),J=this.getCardinalDirection(-q,W,1)):f>h?($=this.getCardinalDirection(-H,W,1),J=this.getCardinalDirection(-q,W,3)):($=this.getCardinalDirection(H,W,2),J=this.getCardinalDirection(q,W,4)),!j)switch($){case 1:Z=g,X=c+-E/W,l[0]=X,l[1]=Z;break;case 2:X=m,Z=f+x*W,l[0]=X,l[1]=Z;break;case 3:Z=_,X=c+E/W,l[0]=X,l[1]=Z;break;case 4:X=b,Z=f+-x*W,l[0]=X,l[1]=Z;break}if(!z)switch(J){case 1:re=S,ue=d+-B/W,l[2]=ue,l[3]=re;break;case 2:ue=k,re=h+L*W,l[2]=ue,l[3]=re;break;case 3:re=I,ue=d+B/W,l[2]=ue,l[3]=re;break;case 4:ue=P,re=h+-L*W,l[2]=ue,l[3]=re;break}}return!1},o.getCardinalDirection=function(s,u,l){return s>u?l:1+l%4},o.getIntersection=function(s,u,l,c){if(c==null)return this.getIntersection2(s,u,l);var f=s.x,d=s.y,h=u.x,p=u.y,g=l.x,y=l.y,b=c.x,_=c.y,m=void 0,x=void 0,E=void 0,O=void 0,S=void 0,T=void 0,P=void 0,I=void 0,k=void 0;return E=p-d,S=f-h,P=h*d-f*p,O=_-y,T=g-b,I=b*y-g*_,k=E*T-O*S,k===0?null:(m=(S*I-T*P)/k,x=(O*P-E*I)/k,new a(m,x))},o.angleOfVector=function(s,u,l,c){var f=void 0;return s!==l?(f=Math.atan((c-u)/(l-s)),l0?1:o<0?-1:0},a.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},a.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},t.exports=a}),(function(t,n,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,t.exports=a}),(function(t,n,i){var a=(function(){function f(d,h){for(var p=0;p"u"?"undefined":a(s);return s==null||u!="object"&&u!="function"},t.exports=o}),(function(t,n,i){function a(g){if(Array.isArray(g)){for(var y=0,b=Array(g.length);y0&&y;){for(E.push(S[0]);E.length>0&&y;){var T=E[0];E.splice(0,1),x.add(T);for(var P=T.getEdges(),m=0;m-1&&S.splice(B,1)}x=new Set,O=new Map}}return g},p.prototype.createDummyNodesForBendpoints=function(g){for(var y=[],b=g.source,_=this.graphManager.calcLowestCommonAncestor(g.source,g.target),m=0;m0){for(var _=this.edgeToDummyNodes.get(b),m=0;m<_.length;m++){var x=_[m],E=new f(x.getCenterX(),x.getCenterY()),O=b.bendpoints.get(m);O.x=E.x,O.y=E.y,x.getOwner().remove(x)}this.graphManager.add(b,b.source,b.target)}}},p.transform=function(g,y,b,_){if(b!=null&&_!=null){var m=y;if(g<=50){var x=y/b;m-=(y-x)/50*(50-g)}else{var E=y*_;m+=(E-y)/50*(g-50)}return m}else{var O,S;return g<=50?(O=9*y/500,S=y/10):(O=9*y/50,S=-8*y),O*g+S}},p.findCenterOfTree=function(g){var y=[];y=y.concat(g);var b=[],_=new Map,m=!1,x=null;(y.length==1||y.length==2)&&(m=!0,x=y[0]);for(var E=0;E=0&&y.splice(I,1);var k=O.getNeighborsList();k.forEach(function(j){if(b.indexOf(j)<0){var z=_.get(j),H=z-1;H==1&&T.push(j),_.set(j,H)}})}b=b.concat(T),(y.length==1||y.length==2)&&(m=!0,x=y[0])}return x},p.prototype.setGraphManager=function(g){this.graphManager=g},t.exports=p}),(function(t,n,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},t.exports=a}),(function(t,n,i){var a=i(4);function o(s,u){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(s){this.lworldOrgX=s},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(s){this.lworldOrgY=s},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(s){this.lworldExtX=s},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(s){this.lworldExtY=s},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(s){this.ldeviceOrgX=s},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(s){this.ldeviceOrgY=s},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(s){this.ldeviceExtX=s},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(s){this.ldeviceExtY=s},o.prototype.transformX=function(s){var u=0,l=this.lworldExtX;return l!=0&&(u=this.ldeviceOrgX+(s-this.lworldOrgX)*this.ldeviceExtX/l),u},o.prototype.transformY=function(s){var u=0,l=this.lworldExtY;return l!=0&&(u=this.ldeviceOrgY+(s-this.lworldOrgY)*this.ldeviceExtY/l),u},o.prototype.inverseTransformX=function(s){var u=0,l=this.ldeviceExtX;return l!=0&&(u=this.lworldOrgX+(s-this.ldeviceOrgX)*this.lworldExtX/l),u},o.prototype.inverseTransformY=function(s){var u=0,l=this.ldeviceExtY;return l!=0&&(u=this.lworldOrgY+(s-this.ldeviceOrgY)*this.lworldExtY/l),u},o.prototype.inverseTransformPoint=function(s){var u=new a(this.inverseTransformX(s.x),this.inverseTransformY(s.y));return u},t.exports=o}),(function(t,n,i){function a(h){if(Array.isArray(h)){for(var p=0,g=Array(h.length);ps.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*s.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(h-s.ADAPTATION_LOWER_NODE_LIMIT)/(s.ADAPTATION_UPPER_NODE_LIMIT-s.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-s.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=s.MAX_NODE_DISPLACEMENT_INCREMENTAL):(h>s.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(s.COOLING_ADAPTATION_FACTOR,1-(h-s.ADAPTATION_LOWER_NODE_LIMIT)/(s.ADAPTATION_UPPER_NODE_LIMIT-s.ADAPTATION_LOWER_NODE_LIMIT)*(1-s.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=s.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},f.prototype.calcSpringForces=function(){for(var h=this.getAllEdges(),p,g=0;g0&&arguments[0]!==void 0?arguments[0]:!0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g,y,b,_,m=this.getAllNodes(),x;if(this.useFRGridVariant)for(this.totalIterations%s.GRID_CALCULATION_CHECK_PERIOD==1&&h&&this.updateGrid(),x=new Set,g=0;gE||x>E)&&(h.gravitationForceX=-this.gravityConstant*b,h.gravitationForceY=-this.gravityConstant*_)):(E=p.getEstimatedSize()*this.compoundGravityRangeFactor,(m>E||x>E)&&(h.gravitationForceX=-this.gravityConstant*b*this.compoundGravityConstant,h.gravitationForceY=-this.gravityConstant*_*this.compoundGravityConstant))},f.prototype.isConverged=function(){var h,p=!1;return this.totalIterations>this.maxIterations/3&&(p=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),h=this.totalDisplacement=m.length||E>=m[0].length)){for(var O=0;Of}}]),l})();t.exports=u}),(function(t,n,i){var a=(function(){function u(l,c){for(var f=0;f2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,u),this.sequence1=l,this.sequence2=c,this.match_score=f,this.mismatch_penalty=d,this.gap_penalty=h,this.iMax=l.length+1,this.jMax=c.length+1,this.grid=new Array(this.iMax);for(var p=0;p=0;l--){var c=this.listeners[l];c.event===s&&c.callback===u&&this.listeners.splice(l,1)}},o.emit=function(s,u){for(var l=0;lc.coolingFactor*c.maxNodeDisplacement&&(this.displacementX=c.coolingFactor*c.maxNodeDisplacement*s.sign(this.displacementX)),Math.abs(this.displacementY)>c.coolingFactor*c.maxNodeDisplacement&&(this.displacementY=c.coolingFactor*c.maxNodeDisplacement*s.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),c.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},u.prototype.propogateDisplacementToChildren=function(c,f){for(var d=this.getChild().getNodes(),h,p=0;p0)this.positionNodesRadially(S);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var T=new Set(this.getAllNodes()),P=this.nodesWithGravity.filter(function(I){return T.has(I)});this.graphManager.setAllNodesToApplyGravitation(P),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var S=new Set(this.getAllNodes()),T=this.nodesWithGravity.filter(function(k){return S.has(k)});this.graphManager.setAllNodesToApplyGravitation(T),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var P=!this.isTreeGrowing&&!this.isGrowthFinished,I=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(P,I),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var S=this.graphManager.getAllNodes(),T={},P=0;P1){var j;for(j=0;jI&&(I=Math.floor(B.y)),L=Math.floor(B.x+f.DEFAULT_COMPONENT_SEPERATION)}this.transform(new g(h.WORLD_CENTER_X-B.x/2,h.WORLD_CENTER_Y-B.y/2))},E.radialLayout=function(S,T,P){var I=Math.max(this.maxDiagonalInTree(S),f.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(T,null,0,359,0,I);var k=m.calculateBounds(S),L=new x;L.setDeviceOrgX(k.getMinX()),L.setDeviceOrgY(k.getMinY()),L.setWorldOrgX(P.x),L.setWorldOrgY(P.y);for(var B=0;B1;){var re=ue[0];ue.splice(0,1);var ne=W.indexOf(re);ne>=0&&W.splice(ne,1),X--,$--}T!=null?Z=(W.indexOf(ue[0])+1)%X:Z=0;for(var le=Math.abs(I-P)/$,ce=Z;J!=$;ce=++ce%X){var pe=W[ce].getOtherEnd(S);if(pe!=T){var fe=(P+J*le)%360,se=(fe+le)%360;E.branchRadialLayout(pe,S,fe,se,k+L,L),J++}}},E.maxDiagonalInTree=function(S){for(var T=b.MIN_VALUE,P=0;PT&&(T=k)}return T},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var S=this,T={};this.memberGroups={},this.idToDummyNode={};for(var P=[],I=this.graphManager.getAllNodes(),k=0;k"u"&&(T[j]=[]),T[j]=T[j].concat(L)}Object.keys(T).forEach(function(z){if(T[z].length>1){var H="DummyCompound_"+z;S.memberGroups[H]=T[z];var q=T[z][0].getParent(),W=new l(S.graphManager);W.id=H,W.paddingLeft=q.paddingLeft||0,W.paddingRight=q.paddingRight||0,W.paddingBottom=q.paddingBottom||0,W.paddingTop=q.paddingTop||0,S.idToDummyNode[H]=W;var $=S.getGraphManager().add(S.newGraph(),W),J=q.getChild();J.add(W);for(var X=0;X=0;S--){var T=this.compoundOrder[S],P=T.id,I=T.paddingLeft,k=T.paddingTop;this.adjustLocations(this.tiledMemberPack[P],T.rect.x,T.rect.y,I,k)}},E.prototype.repopulateZeroDegreeMembers=function(){var S=this,T=this.tiledZeroDegreePack;Object.keys(T).forEach(function(P){var I=S.idToDummyNode[P],k=I.paddingLeft,L=I.paddingTop;S.adjustLocations(T[P],I.rect.x,I.rect.y,k,L)})},E.prototype.getToBeTiled=function(S){var T=S.id;if(this.toBeTiled[T]!=null)return this.toBeTiled[T];var P=S.getChild();if(P==null)return this.toBeTiled[T]=!1,!1;for(var I=P.getNodes(),k=0;k0)return this.toBeTiled[T]=!1,!1;if(L.getChild()==null){this.toBeTiled[L.id]=!1;continue}if(!this.getToBeTiled(L))return this.toBeTiled[T]=!1,!1}return this.toBeTiled[T]=!0,!0},E.prototype.getNodeDegree=function(S){S.id;for(var T=S.getEdges(),P=0,I=0;Iz&&(z=q.rect.height)}P+=z+S.verticalPadding}},E.prototype.tileCompoundMembers=function(S,T){var P=this;this.tiledMemberPack=[],Object.keys(S).forEach(function(I){var k=T[I];P.tiledMemberPack[I]=P.tileNodes(S[I],k.paddingLeft+k.paddingRight),k.rect.width=P.tiledMemberPack[I].width,k.rect.height=P.tiledMemberPack[I].height})},E.prototype.tileNodes=function(S,T){var P=f.TILING_PADDING_VERTICAL,I=f.TILING_PADDING_HORIZONTAL,k={rows:[],rowWidth:[],rowHeight:[],width:0,height:T,verticalPadding:P,horizontalPadding:I};S.sort(function(j,z){return j.rect.width*j.rect.height>z.rect.width*z.rect.height?-1:j.rect.width*j.rect.height0&&(B+=S.horizontalPadding),S.rowWidth[P]=B,S.width0&&(j+=S.verticalPadding);var z=0;j>S.rowHeight[P]&&(z=S.rowHeight[P],S.rowHeight[P]=j,z=S.rowHeight[P]-z),S.height+=z,S.rows[P].push(T)},E.prototype.getShortestRowIndex=function(S){for(var T=-1,P=Number.MAX_VALUE,I=0;IP&&(T=I,P=S.rowWidth[I]);return T},E.prototype.canAddHorizontal=function(S,T,P){var I=this.getShortestRowIndex(S);if(I<0)return!0;var k=S.rowWidth[I];if(k+S.horizontalPadding+T<=S.width)return!0;var L=0;S.rowHeight[I]0&&(L=P+S.verticalPadding-S.rowHeight[I]);var B;S.width-k>=T+S.horizontalPadding?B=(S.height+L)/(k+T+S.horizontalPadding):B=(S.height+L)/S.width,L=P+S.verticalPadding;var j;return S.widthL&&T!=P){I.splice(-1,1),S.rows[P].push(k),S.rowWidth[T]=S.rowWidth[T]-L,S.rowWidth[P]=S.rowWidth[P]+L,S.width=S.rowWidth[instance.getLongestRowIndex(S)];for(var B=Number.MIN_VALUE,j=0;jB&&(B=I[j].height);T>0&&(B+=S.verticalPadding);var z=S.rowHeight[T]+S.rowHeight[P];S.rowHeight[T]=B,S.rowHeight[P]0)for(var J=k;J<=L;J++)$[0]+=this.grid[J][B-1].length+this.grid[J][B].length-1;if(L0)for(var J=B;J<=j;J++)$[3]+=this.grid[k-1][J].length+this.grid[k][J].length-1;for(var X=b.MAX_VALUE,Z,ue,re=0;re<$.length;re++)$[re]0){var j;j=x.getGraphManager().add(x.newGraph(),P),this.processChildrenList(j,T,x)}}},g.prototype.stop=function(){return this.stopped=!0,this};var b=function(m){m("layout","cose-bilkent",g)};typeof cytoscape<"u"&&b(cytoscape),n.exports=b})])})})(ax)),ax.exports}var jte=Lte();const Bte=Bp(jte);Np.use(Bte);const Fte="cose-bilkent",Ute=(r,e)=>{const t=Np({headless:!0,styleEnabled:!1});t.add(r);const n={};return t.layout({name:Fte,animate:!1,spacingFactor:e,quality:"default",tile:!1,randomize:!0,stop:()=>{t.nodes().forEach(a=>{n[a.id()]={...a.position()}})}}).run(),{positions:n}};class zte{start(){}postMessage(e){const{elements:t,spacingFactor:n}=e,i=Ute(t,n);this.onmessage({data:i})}onmessage(){}close(){}}const qte={port:new zte},Gte=()=>new SharedWorker(new URL(""+new URL("CoseBilkentLayout.worker-DQV9PnDH.js",import.meta.url).href,import.meta.url),{type:"module",name:"CoseBilkentLayout"});function Vte(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var HO,F3;function Hte(){if(F3)return HO;F3=1;function r(){this.__data__=[],this.size=0}return HO=r,HO}var WO,U3;function pD(){if(U3)return WO;U3=1;function r(e,t){return e===t||e!==e&&t!==t}return WO=r,WO}var YO,z3;function H2(){if(z3)return YO;z3=1;var r=pD();function e(t,n){for(var i=t.length;i--;)if(r(t[i][0],n))return i;return-1}return YO=e,YO}var XO,q3;function Wte(){if(q3)return XO;q3=1;var r=H2(),e=Array.prototype,t=e.splice;function n(i){var a=this.__data__,o=r(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():t.call(a,o,1),--this.size,!0}return XO=n,XO}var $O,G3;function Yte(){if(G3)return $O;G3=1;var r=H2();function e(t){var n=this.__data__,i=r(n,t);return i<0?void 0:n[i][1]}return $O=e,$O}var KO,V3;function Xte(){if(V3)return KO;V3=1;var r=H2();function e(t){return r(this.__data__,t)>-1}return KO=e,KO}var ZO,H3;function $te(){if(H3)return ZO;H3=1;var r=H2();function e(t,n){var i=this.__data__,a=r(i,t);return a<0?(++this.size,i.push([t,n])):i[a][1]=n,this}return ZO=e,ZO}var QO,W3;function W2(){if(W3)return QO;W3=1;var r=Hte(),e=Wte(),t=Yte(),n=Xte(),i=$te();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s-1&&n%1==0&&n-1&&t%1==0&&t<=r}return YT=e,YT}var XT,GL;function xre(){if(GL)return XT;GL=1;var r=r0(),e=_D(),t=xv(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",p="[object String]",g="[object WeakMap]",y="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",m="[object Float64Array]",x="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",S="[object Uint8Array]",T="[object Uint8ClampedArray]",P="[object Uint16Array]",I="[object Uint32Array]",k={};k[_]=k[m]=k[x]=k[E]=k[O]=k[S]=k[T]=k[P]=k[I]=!0,k[n]=k[i]=k[y]=k[a]=k[b]=k[o]=k[s]=k[u]=k[l]=k[c]=k[f]=k[d]=k[h]=k[p]=k[g]=!1;function L(B){return t(B)&&e(B.length)&&!!k[r(B)]}return XT=L,XT}var $T,VL;function wD(){if(VL)return $T;VL=1;function r(e){return function(t){return e(t)}}return $T=r,$T}var gb={exports:{}};gb.exports;var HL;function xD(){return HL||(HL=1,(function(r,e){var t=BU(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,a=i&&i.exports===n,o=a&&t.process,s=(function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();r.exports=s})(gb,gb.exports)),gb.exports}var KT,WL;function Q2(){if(WL)return KT;WL=1;var r=xre(),e=wD(),t=xD(),n=t&&t.isTypedArray,i=n?e(n):r;return KT=i,KT}var ZT,YL;function VU(){if(YL)return ZT;YL=1;var r=bre(),e=Z2(),t=Fs(),n=r_(),i=GU(),a=Q2(),o=Object.prototype,s=o.hasOwnProperty;function u(l,c){var f=t(l),d=!f&&e(l),h=!f&&!d&&n(l),p=!f&&!d&&!h&&a(l),g=f||d||h||p,y=g?r(l.length,String):[],b=y.length;for(var _ in l)(c||s.call(l,_))&&!(g&&(_=="length"||h&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,b)))&&y.push(_);return y}return ZT=u,ZT}var QT,XL;function J2(){if(XL)return QT;XL=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||r;return t===i}return QT=e,QT}var JT,$L;function HU(){if($L)return JT;$L=1;function r(e,t){return function(n){return e(t(n))}}return JT=r,JT}var eC,KL;function Ere(){if(KL)return eC;KL=1;var r=HU(),e=r(Object.keys,Object);return eC=e,eC}var tC,ZL;function ED(){if(ZL)return tC;ZL=1;var r=J2(),e=Ere(),t=Object.prototype,n=t.hasOwnProperty;function i(a){if(!r(a))return e(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return tC=i,tC}var rC,QL;function oy(){if(QL)return rC;QL=1;var r=Y2(),e=_D();function t(n){return n!=null&&e(n.length)&&!r(n)}return rC=t,rC}var nC,JL;function sy(){if(JL)return nC;JL=1;var r=VU(),e=ED(),t=oy();function n(i){return t(i)?r(i):e(i)}return nC=n,nC}var iC,e4;function Sre(){if(e4)return iC;e4=1;var r=K2(),e=sy();function t(n,i){return n&&r(i,e(i),n)}return iC=t,iC}var aC,t4;function Ore(){if(t4)return aC;t4=1;function r(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}return aC=r,aC}var oC,r4;function Tre(){if(r4)return oC;r4=1;var r=iy(),e=J2(),t=Ore(),n=Object.prototype,i=n.hasOwnProperty;function a(o){if(!r(o))return t(o);var s=e(o),u=[];for(var l in o)l=="constructor"&&(s||!i.call(o,l))||u.push(l);return u}return oC=a,oC}var sC,n4;function SD(){if(n4)return sC;n4=1;var r=VU(),e=Tre(),t=oy();function n(i){return t(i)?r(i,!0):e(i)}return sC=n,sC}var uC,i4;function Cre(){if(i4)return uC;i4=1;var r=K2(),e=SD();function t(n,i){return n&&r(i,e(i),n)}return uC=t,uC}var yb={exports:{}};yb.exports;var a4;function Are(){return a4||(a4=1,(function(r,e){var t=Ch(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,a=i&&i.exports===n,o=a?t.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}r.exports=u})(yb,yb.exports)),yb.exports}var lC,o4;function Rre(){if(o4)return lC;o4=1;function r(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++nh))return!1;var g=f.get(o),y=f.get(s);if(g&&y)return g==s&&y==o;var b=-1,_=!0,m=u&i?new r:void 0;for(f.set(o,s),f.set(s,o);++b0&&a(c)?i>1?t(c,i-1,a,o,s):r(s,c):o||(s[s.length]=c)}return s}return eR=t,eR}var tR,Qj;function qne(){if(Qj)return tR;Qj=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return tR=r,tR}var rR,Jj;function Gne(){if(Jj)return rR;Jj=1;var r=qne(),e=Math.max;function t(n,i,a){return i=e(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,u=e(o.length-i,0),l=Array(u);++s0){if(++a>=r)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return iR=n,iR}var aR,r6;function Wne(){if(r6)return aR;r6=1;var r=Vne(),e=Hne(),t=e(r);return aR=t,aR}var oR,n6;function Yne(){if(n6)return oR;n6=1;var r=tE(),e=Gne(),t=Wne();function n(i,a){return t(e(i,a,r),i+"")}return oR=n,oR}var sR,i6;function Xne(){if(i6)return sR;i6=1;function r(e,t,n,i){for(var a=e.length,o=n+(i?1:-1);i?o--:++o-1}return fR=e,fR}var dR,l6;function Jne(){if(l6)return dR;l6=1;function r(e,t,n){for(var i=-1,a=e==null?0:e.length;++i=o){var b=l?null:i(u);if(b)return a(b);p=!1,d=n,y=new r}else y=l?[]:g;e:for(;++f1?h.setNode(p,f):h.setNode(p)}),this},i.prototype.setNode=function(c,f){return r.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=f),this):(this._nodes[c]=arguments.length>1?f:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=t,this._children[c]={},this._children[t][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},i.prototype.node=function(c){return this._nodes[c]},i.prototype.hasNode=function(c){return r.has(this._nodes,c)},i.prototype.removeNode=function(c){var f=this;if(r.has(this._nodes,c)){var d=function(h){f.removeEdge(f._edgeObjs[h])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],r.each(this.children(c),function(h){f.setParent(h)}),delete this._children[c]),r.each(r.keys(this._in[c]),d),delete this._in[c],delete this._preds[c],r.each(r.keys(this._out[c]),d),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},i.prototype.setParent=function(c,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(f))f=t;else{f+="";for(var d=f;!r.isUndefined(d);d=this.parent(d))if(d===c)throw new Error("Setting "+f+" as parent of "+c+" would create a cycle");this.setNode(f)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=f,this._children[f][c]=!0,this},i.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},i.prototype.parent=function(c){if(this._isCompound){var f=this._parent[c];if(f!==t)return f}},i.prototype.children=function(c){if(r.isUndefined(c)&&(c=t),this._isCompound){var f=this._children[c];if(f)return r.keys(f)}else{if(c===t)return this.nodes();if(this.hasNode(c))return[]}},i.prototype.predecessors=function(c){var f=this._preds[c];if(f)return r.keys(f)},i.prototype.successors=function(c){var f=this._sucs[c];if(f)return r.keys(f)},i.prototype.neighbors=function(c){var f=this.predecessors(c);if(f)return r.union(f,this.successors(c))},i.prototype.isLeaf=function(c){var f;return this.isDirected()?f=this.successors(c):f=this.neighbors(c),f.length===0},i.prototype.filterNodes=function(c){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var d=this;r.each(this._nodes,function(g,y){c(y)&&f.setNode(y,g)}),r.each(this._edgeObjs,function(g){f.hasNode(g.v)&&f.hasNode(g.w)&&f.setEdge(g,d.edge(g))});var h={};function p(g){var y=d.parent(g);return y===void 0||f.hasNode(y)?(h[g]=y,y):y in h?h[y]:p(y)}return this._isCompound&&r.each(f.nodes(),function(g){f.setParent(g,p(g))}),f},i.prototype.setDefaultEdgeLabel=function(c){return r.isFunction(c)||(c=r.constant(c)),this._defaultEdgeLabelFn=c,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(c,f){var d=this,h=arguments;return r.reduce(c,function(p,g){return h.length>1?d.setEdge(p,g,f):d.setEdge(p,g),g}),this},i.prototype.setEdge=function(){var c,f,d,h,p=!1,g=arguments[0];typeof g=="object"&&g!==null&&"v"in g?(c=g.v,f=g.w,d=g.name,arguments.length===2&&(h=arguments[1],p=!0)):(c=g,f=arguments[1],d=arguments[3],arguments.length>2&&(h=arguments[2],p=!0)),c=""+c,f=""+f,r.isUndefined(d)||(d=""+d);var y=s(this._isDirected,c,f,d);if(r.has(this._edgeLabels,y))return p&&(this._edgeLabels[y]=h),this;if(!r.isUndefined(d)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(f),this._edgeLabels[y]=p?h:this._defaultEdgeLabelFn(c,f,d);var b=u(this._isDirected,c,f,d);return c=b.v,f=b.w,Object.freeze(b),this._edgeObjs[y]=b,a(this._preds[f],c),a(this._sucs[c],f),this._in[f][y]=b,this._out[c][y]=b,this._edgeCount++,this},i.prototype.edge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,c,f,d);return this._edgeLabels[h]},i.prototype.hasEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,c,f,d);return r.has(this._edgeLabels,h)},i.prototype.removeEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,c,f,d),p=this._edgeObjs[h];return p&&(c=p.v,f=p.w,delete this._edgeLabels[h],delete this._edgeObjs[h],o(this._preds[f],c),o(this._sucs[c],f),delete this._in[f][h],delete this._out[c][h],this._edgeCount--),this},i.prototype.inEdges=function(c,f){var d=this._in[c];if(d){var h=r.values(d);return f?r.filter(h,function(p){return p.v===f}):h}},i.prototype.outEdges=function(c,f){var d=this._out[c];if(d){var h=r.values(d);return f?r.filter(h,function(p){return p.w===f}):h}},i.prototype.nodeEdges=function(c,f){var d=this.inEdges(c,f);if(d)return d.concat(this.outEdges(c,f))};function a(c,f){c[f]?c[f]++:c[f]=1}function o(c,f){--c[f]||delete c[f]}function s(c,f,d,h){var p=""+f,g=""+d;if(!c&&p>g){var y=p;p=g,g=y}return p+n+g+n+(r.isUndefined(h)?e:h)}function u(c,f,d,h){var p=""+f,g=""+d;if(!c&&p>g){var y=p;p=g,g=y}var b={v:p,w:g};return h&&(b.name=h),b}function l(c,f){return s(c,f.v,f.w,f.name)}return wR}var xR,b6;function sie(){return b6||(b6=1,xR="2.1.8"),xR}var ER,_6;function uie(){return _6||(_6=1,ER={Graph:kD(),version:sie()}),ER}var SR,w6;function lie(){if(w6)return SR;w6=1;var r=qf(),e=kD();SR={write:t,read:a};function t(o){var s={options:{directed:o.isDirected(),multigraph:o.isMultigraph(),compound:o.isCompound()},nodes:n(o),edges:i(o)};return r.isUndefined(o.graph())||(s.value=r.clone(o.graph())),s}function n(o){return r.map(o.nodes(),function(s){var u=o.node(s),l=o.parent(s),c={v:s};return r.isUndefined(u)||(c.value=u),r.isUndefined(l)||(c.parent=l),c})}function i(o){return r.map(o.edges(),function(s){var u=o.edge(s),l={v:s.v,w:s.w};return r.isUndefined(s.name)||(l.name=s.name),r.isUndefined(u)||(l.value=u),l})}function a(o){var s=new e(o.options).setGraph(o.value);return r.each(o.nodes,function(u){s.setNode(u.v,u.value),u.parent&&s.setParent(u.v,u.parent)}),r.each(o.edges,function(u){s.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),s}return SR}var OR,x6;function cie(){if(x6)return OR;x6=1;var r=qf();OR=e;function e(t){var n={},i=[],a;function o(s){r.has(n,s)||(n[s]=!0,a.push(s),r.each(t.successors(s),o),r.each(t.predecessors(s),o))}return r.each(t.nodes(),function(s){a=[],o(s),a.length&&i.push(a)}),i}return OR}var TR,E6;function dz(){if(E6)return TR;E6=1;var r=qf();TR=e;function e(){this._arr=[],this._keyIndices={}}return e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(t){return r.has(this._keyIndices,t)},e.prototype.priority=function(t){var n=this._keyIndices[t];if(n!==void 0)return this._arr[n].priority},e.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(t,n){var i=this._keyIndices;if(t=String(t),!r.has(i,t)){var a=this._arr,o=a.length;return i[t]=o,a.push({key:t,priority:n}),this._decrease(o),!0}return!1},e.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},e.prototype.decrease=function(t,n){var i=this._keyIndices[t];if(n>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[i].priority+" New: "+n);this._arr[i].priority=n,this._decrease(i)},e.prototype._heapify=function(t){var n=this._arr,i=2*t,a=i+1,o=t;i>1,!(n[a].priority0&&(f=c.removeMin(),d=l[f],d.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(h);return l}return CR}var AR,O6;function fie(){if(O6)return AR;O6=1;var r=hz(),e=qf();AR=t;function t(n,i,a){return e.transform(n.nodes(),function(o,s){o[s]=r(n,s,i,a)},{})}return AR}var RR,T6;function vz(){if(T6)return RR;T6=1;var r=qf();RR=e;function e(t){var n=0,i=[],a={},o=[];function s(u){var l=a[u]={onStack:!0,lowlink:n,index:n++};if(i.push(u),t.successors(u).forEach(function(d){r.has(a,d)?a[d].onStack&&(l.lowlink=Math.min(l.lowlink,a[d].index)):(s(d),l.lowlink=Math.min(l.lowlink,a[d].lowlink))}),l.lowlink===l.index){var c=[],f;do f=i.pop(),a[f].onStack=!1,c.push(f);while(u!==f);o.push(c)}}return t.nodes().forEach(function(u){r.has(a,u)||s(u)}),o}return RR}var PR,C6;function die(){if(C6)return PR;C6=1;var r=qf(),e=vz();PR=t;function t(n){return r.filter(e(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}return PR}var MR,A6;function hie(){if(A6)return MR;A6=1;var r=qf();MR=t;var e=r.constant(1);function t(i,a,o){return n(i,a||e,o||function(s){return i.outEdges(s)})}function n(i,a,o){var s={},u=i.nodes();return u.forEach(function(l){s[l]={},s[l][l]={distance:0},u.forEach(function(c){l!==c&&(s[l][c]={distance:Number.POSITIVE_INFINITY})}),o(l).forEach(function(c){var f=c.v===l?c.w:c.v,d=a(c);s[l][f]={distance:d,predecessor:l}})}),u.forEach(function(l){var c=s[l];u.forEach(function(f){var d=s[f];u.forEach(function(h){var p=d[l],g=c[h],y=d[h],b=p.distance+g.distance;b0;){if(l=u.removeMin(),r.has(s,l))o.setEdge(l,s[l]);else{if(f)throw new Error("Input graph is not connected: "+i);f=!0}i.nodeEdges(l).forEach(c)}return o}return jR}var BR,N6;function mie(){return N6||(N6=1,BR={components:cie(),dijkstra:hz(),dijkstraAll:fie(),findCycles:die(),floydWarshall:hie(),isAcyclic:vie(),postorder:pie(),preorder:gie(),prim:yie(),tarjan:vz(),topsort:pz()}),BR}var FR,L6;function Uf(){if(L6)return FR;L6=1;var r=uie();return FR={Graph:r.Graph,json:lie(),alg:mie(),version:r.version},FR}var mb={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */var bie=mb.exports,L6;function Sa(){return L6||(L6=1,(function(r,e){(function(){var t,n="4.17.23",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,c="__lodash_placeholder__",f=1,d=2,h=4,p=1,g=2,y=1,b=2,_=4,m=8,x=16,E=32,O=64,S=128,T=256,P=512,I=30,k="...",L=800,B=16,j=1,z=2,H=3,q=1/0,W=9007199254740991,$=17976931348623157e292,J=NaN,X=4294967295,Z=X-1,ue=X>>>1,re=[["ary",S],["bind",y],["bindKey",b],["curry",m],["curryRight",x],["flip",P],["partial",E],["partialRight",O],["rearg",T]],ne="[object Arguments]",le="[object Array]",ce="[object AsyncFunction]",pe="[object Boolean]",fe="[object Date]",se="[object DOMException]",de="[object Error]",ge="[object Function]",Oe="[object GeneratorFunction]",ke="[object Map]",De="[object Number]",Ne="[object Null]",Ce="[object Object]",Y="[object Promise]",Q="[object Proxy]",ie="[object RegExp]",we="[object Set]",Ee="[object String]",Me="[object Symbol]",Ie="[object Undefined]",Ye="[object WeakMap]",ot="[object WeakSet]",mt="[object ArrayBuffer]",wt="[object DataView]",Mt="[object Float32Array]",Dt="[object Float64Array]",vt="[object Int8Array]",tt="[object Int16Array]",_e="[object Int32Array]",Ue="[object Uint8Array]",Qe="[object Uint8ClampedArray]",Ze="[object Uint16Array]",nt="[object Uint32Array]",It=/\b__p \+= '';/g,ct=/\b(__p \+=) '' \+/g,Lt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Rt=/&(?:amp|lt|gt|quot|#39);/g,jt=/[&<>"']/g,Yt=RegExp(Rt.source),sr=RegExp(jt.source),Ut=/<%-([\s\S]+?)%>/g,Rr=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Vr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Br=/^\w*$/,mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ur=/[\\^$.*+?()[\]{}|]/g,sn=RegExp(ur.source),Fr=/^\s+/,un=/\s/,bn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wn=/\{\n\/\* \[wrapped with (.+)\] \*/,_n=/,? & /,xn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,on=/[()=,{}\[\]\/\s]/,Nn=/\\(\\)?/g,fi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,Jn=/^0b[01]+$/i,_i=/^\[object .+?Constructor\]$/,Ir=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,di=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,hr=/['\n\r\u2028\u2029\\]/g,ei="\\ud800-\\udfff",Hn="\\u0300-\\u036f",ds="\\ufe20-\\ufe2f",Na="\\u20d0-\\u20ff",ki=Hn+ds+Na,Wr="\\u2700-\\u27bf",Nr="a-z\\xdf-\\xf6\\xf8-\\xff",na="\\xac\\xb1\\xd7\\xf7",Us="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vu="\\u2000-\\u206f",ga=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ln="\\ufe0e\\ufe0f",Ii=na+Us+vu+ga,Ni="['’]",Pc="["+ei+"]",pu="["+Ii+"]",ia="["+ki+"]",Hl="\\d+",Md="["+Wr+"]",Xa="["+Nr+"]",Wl="[^"+ei+Ii+Hl+Wr+Nr+zs+"]",Yl="\\ud83c[\\udffb-\\udfff]",nf="(?:"+ia+"|"+Yl+")",Wi="[^"+ei+"]",af="(?:\\ud83c[\\udde6-\\uddff]){2}",La="[\\ud800-\\udbff][\\udc00-\\udfff]",Go="["+zs+"]",Gf="\\u200d",hs="(?:"+Xa+"|"+Wl+")",Mc="(?:"+Go+"|"+Wl+")",Xl="(?:"+Ni+"(?:d|ll|m|re|s|t|ve))?",ti="(?:"+Ni+"(?:D|LL|M|RE|S|T|VE))?",qs=nf+"?",Ju="["+Ln+"]?",Gs="(?:"+Gf+"(?:"+[Wi,af,La].join("|")+")"+Ju+qs+")*",$l="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",of="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gu=Ju+qs+Gs,_o="(?:"+[Md,af,La].join("|")+")"+gu,wo="(?:"+[Wi+ia+"?",ia,af,La,Pc].join("|")+")",Vf=RegExp(Ni,"g"),sf=RegExp(ia,"g"),yu=RegExp(Yl+"(?="+Yl+")|"+wo+gu,"g"),so=RegExp([Go+"?"+Xa+"+"+Xl+"(?="+[pu,Go,"$"].join("|")+")",Mc+"+"+ti+"(?="+[pu,Go+hs,"$"].join("|")+")",Go+"?"+hs+"+"+Xl,Go+"+"+ti,of,$l,Hl,_o].join("|"),"g"),el=RegExp("["+Gf+ei+ki+Ln+"]"),Kl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],vs=-1,jn={};jn[Mt]=jn[Dt]=jn[vt]=jn[tt]=jn[_e]=jn[Ue]=jn[Qe]=jn[Ze]=jn[nt]=!0,jn[ne]=jn[le]=jn[mt]=jn[pe]=jn[wt]=jn[fe]=jn[de]=jn[ge]=jn[ke]=jn[De]=jn[Ce]=jn[ie]=jn[we]=jn[Ee]=jn[Ye]=!1;var Zr={};Zr[ne]=Zr[le]=Zr[mt]=Zr[wt]=Zr[pe]=Zr[fe]=Zr[Mt]=Zr[Dt]=Zr[vt]=Zr[tt]=Zr[_e]=Zr[ke]=Zr[De]=Zr[Ce]=Zr[ie]=Zr[we]=Zr[Ee]=Zr[Me]=Zr[Ue]=Zr[Qe]=Zr[Ze]=Zr[nt]=!0,Zr[de]=Zr[ge]=Zr[Ye]=!1;var Zl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ps={"&":"&","<":"<",">":">",'"':""","'":"'"},Dc={"&":"&","<":"<",">":">",""":'"',"'":"'"},Oa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tl=parseFloat,uf=parseInt,Ql=typeof Lf=="object"&&Lf&&Lf.Object===Object&&Lf,rl=typeof self=="object"&&self&&self.Object===Object&&self,wi=Ql||rl||Function("return this")(),Jl=e&&!e.nodeType&&e,aa=Jl&&!0&&r&&!r.nodeType&&r,mu=aa&&aa.exports===Jl,lf=mu&&Ql.process,ya=(function(){try{var We=aa&&aa.require&&aa.require("util").types;return We||lf&&lf.binding&&lf.binding("util")}catch{}})(),ma=ya&&ya.isArrayBuffer,bu=ya&&ya.isDate,uo=ya&&ya.isMap,Ho=ya&&ya.isRegExp,st=ya&&ya.isSet,xt=ya&&ya.isTypedArray;function pt(We,ft,ut){switch(ut.length){case 0:return We.call(ft);case 1:return We.call(ft,ut[0]);case 2:return We.call(ft,ut[0],ut[1]);case 3:return We.call(ft,ut[0],ut[1],ut[2])}return We.apply(ft,ut)}function Wt(We,ft,ut,Kt){for(var Pr=-1,Qr=We==null?0:We.length;++Pr-1}function ec(We,ft,ut){for(var Kt=-1,Pr=We==null?0:We.length;++Kt-1;);return ut}function Rh(We,ft){for(var ut=We.length;ut--&&il(ft,We[ut],0)>-1;);return ut}function Xf(We,ft){for(var ut=We.length,Kt=0;ut--;)We[ut]===ft&&++Kt;return Kt}var $f=_u(Zl),Id=_u(ps);function rc(We){return"\\"+Oa[We]}function Kf(We,ft){return We==null?t:We[ft]}function Lc(We){return el.test(We)}function Nd(We){return Kl.test(We)}function Ph(We){for(var ft,ut=[];!(ft=We.next()).done;)ut.push(ft.value);return ut}function hf(We){var ft=-1,ut=Array(We.size);return We.forEach(function(Kt,Pr){ut[++ft]=[Pr,Kt]}),ut}function Li(We,ft){return function(ut){return We(ft(ut))}}function hi(We,ft){for(var ut=-1,Kt=We.length,Pr=0,Qr=[];++ut-1}function $i(A,D){var U=this.__data__,ee=Ki(U,A);return ee<0?(++this.size,U.push([A,D])):U[ee][1]=D,this}Ko.prototype.clear=kh,Ko.prototype.delete=Zo,Ko.prototype.get=fc,Ko.prototype.has=Ih,Ko.prototype.set=$i;function Za(A){var D=-1,U=A==null?0:A.length;for(this.clear();++D=D?A:D)),A}function Qa(A,D,U,ee,ve,Ae){var Le,qe=D&f,$e=D&d,Ot=D&h;if(U&&(Le=ve?U(A,ee,ve,Ae):U(A)),Le!==t)return Le;if(!ca(A))return A;var Tt=rn(A);if(Tt){if(Le=hy(A),!qe)return Fi(A,Le)}else{var Pt=vo(A),Qt=Pt==ge||Pt==Oe;if(Jd(A))return Mn(A,qe);if(Pt==Ce||Pt==ne||Qt&&!ve){if(Le=$e||Qt?{}:Qp(A),!qe)return $e?Tf(A,ku(Le,A)):sd(A,co(Le,A))}else{if(!Zr[Pt])return ve?A:{};Le=vy(A,Pt,qe)}}Ae||(Ae=new Qo);var pr=Ae.get(A);if(pr)return pr;Ae.set(A,Le),gg(A)?A.forEach(function(Gr){Le.add(Qa(Gr,D,U,Gr,A,Ae))}):O_(A)&&A.forEach(function(Gr,Bn){Le.set(Bn,Qa(Gr,D,U,Bn,A,Ae))});var qr=Ot?$e?is:fd:$e?Vu:jo,Tn=Tt?t:qr(A);return ir(Tn||A,function(Gr,Bn){Tn&&(Bn=Gr,Gr=A[Bn]),Ao(Le,Bn,Qa(Gr,D,U,Bn,A,Ae))}),Le}function rd(A){var D=jo(A);return function(U){return Iu(U,A,D)}}function Iu(A,D,U){var ee=U.length;if(A==null)return!ee;for(A=be(A);ee--;){var ve=U[ee],Ae=D[ve],Le=A[ve];if(Le===t&&!(ve in A)||!Ae(Le))return!1}return!0}function wf(A,D,U){if(typeof A!="function")throw new Ei(o);return Hh(function(){A.apply(t,U)},D)}function es(A,D,U,ee){var ve=-1,Ae=Kn,Le=!0,qe=A.length,$e=[],Ot=D.length;if(!qe)return $e;U&&(D=xi(D,xo(U))),ee?(Ae=ec,Le=!1):D.length>=i&&(Ae=Hs,Le=!1,D=new lo(D));e:for(;++veve?0:ve+U),ee=ee===t||ee>ve?ve:zr(ee),ee<0&&(ee+=ve),ee=U>ee?0:R0(ee);U0&&U(qe)?D>1?Zi(qe,D-1,U,ee,ve):ba(ve,qe):ee||(ve[ve.length]=qe)}return ve}var hc=$p(),Ef=$p(!0);function Es(A,D){return A&&hc(A,D,jo)}function Ss(A,D){return A&&Ef(A,D,jo)}function Qs(A,D){return ja(D,function(U){return Pl(A[U])})}function Os(A,D){D=yr(D,A);for(var U=0,ee=D.length;A!=null&&UD}function er(A,D){return A!=null&&Jr.call(A,D)}function ho(A,D){return A!=null&&D in be(A)}function Js(A,D,U){return A>=Sn(D,U)&&A=120&&Tt.length>=120)?new lo(Le&&Tt):t}Tt=A[0];var Pt=-1,Qt=qe[0];e:for(;++Pt-1;)qe!==A&&Su.call(qe,$e,1),Su.call(A,$e,1);return A}function Gc(A,D){for(var U=A?D.length:0,ee=U-1;U--;){var ve=D[U];if(U==ee||ve!==Ae){var Ae=ve;Ol(ve)?Su.call(A,ve,1):vn(A,ve)}}return A}function K(A,D){return A+Yo(Xi()*(D-A+1))}function oe(A,D,U,ee){for(var ve=-1,Ae=Ri(ji((D-A)/(U||1)),0),Le=ut(Ae);Ae--;)Le[ee?Ae:++ve]=A,A+=U;return Le}function ye(A,D){var U="";if(!A||D<1||D>W)return U;do D%2&&(U+=A),D=Yo(D/2),D&&(A+=A);while(D);return U}function Pe(A,D){return Nv(Iv(A,D,ru),A+"")}function ze(A){return Ca(Kv(A))}function Ge(A,D){var U=Kv(A);return Yd(U,Po(D,0,U.length))}function Be(A,D,U,ee){if(!ca(A))return A;D=yr(D,A);for(var ve=-1,Ae=D.length,Le=Ae-1,qe=A;qe!=null&&++veve?0:ve+D),U=U>ve?ve:U,U<0&&(U+=ve),ve=D>U?0:U-D>>>0,D>>>=0;for(var Ae=ut(ve);++ee>>1,Le=A[Ae];Le!==null&&!Gu(Le)&&(U?Le<=D:Le=i){var Ot=D?null:bc(A);if(Ot)return Zf(Ot);Le=!1,ve=Hs,$e=new lo}else $e=D?[]:qe;e:for(;++ee=ee?A:dt(A,D,U)}var cn=Cv||function(A){return wi.clearTimeout(A)};function Mn(A,D){if(D)return A.slice();var U=A.length,ee=ys?ys(U):new A.constructor(U);return A.copy(ee),ee}function On(A){var D=new A.constructor(A.byteLength);return new ac(D).set(new ac(A)),D}function zn(A,D){var U=D?On(A.buffer):A.buffer;return new A.constructor(U,A.byteOffset,A.byteLength)}function rs(A){var D=new A.constructor(A.source,gn.exec(A));return D.lastIndex=A.lastIndex,D}function wl(A){return _s?be(_s.call(A)):{}}function Bu(A,D){var U=D?On(A.buffer):A.buffer;return new A.constructor(U,A.byteOffset,A.length)}function mc(A,D){if(A!==D){var U=A!==t,ee=A===null,ve=A===A,Ae=Gu(A),Le=D!==t,qe=D===null,$e=D===D,Ot=Gu(D);if(!qe&&!Ot&&!Ae&&A>D||Ae&&Le&&$e&&!qe&&!Ot||ee&&Le&&$e||!U&&$e||!ve)return 1;if(!ee&&!Ae&&!Ot&&A=qe)return $e;var Ot=U[ee];return $e*(Ot=="desc"?-1:1)}}return A.index-D.index}function As(A,D,U,ee){for(var ve=-1,Ae=A.length,Le=U.length,qe=-1,$e=D.length,Ot=Ri(Ae-Le,0),Tt=ut($e+Ot),Pt=!ee;++qe<$e;)Tt[qe]=D[qe];for(;++ve1?U[ve-1]:t,Le=ve>2?U[2]:t;for(Ae=A.length>3&&typeof Ae=="function"?(ve--,Ae):t,Le&&Io(U[0],U[1],Le)&&(Ae=ve<3?t:Ae,ve=1),D=be(D);++ee-1?ve[Ae?D[Le]:Le]:t}}function Do(A){return Sl(function(D){var U=D.length,ee=U,ve=ar.prototype.thru;for(A&&D.reverse();ee--;){var Ae=D[ee];if(typeof Ae!="function")throw new Ei(o);if(ve&&!Le&&ea(Ae)=="wrapper")var Le=new ar([],!0)}for(ee=Le?ee:U;++ee1&&Xn.reverse(),Tt&&$eqe))return!1;var Ot=Ae.get(A),Tt=Ae.get(D);if(Ot&&Tt)return Ot==D&&Tt==A;var Pt=-1,Qt=!0,pr=U&g?new lo:t;for(Ae.set(A,D),Ae.set(D,A);++Pt1?"& ":"")+D[ee],D=D.join(U>2?", ":" "),A.replace(bn,`{ + */var bie=mb.exports,j6;function Sa(){return j6||(j6=1,(function(r,e){(function(){var t,n="4.17.23",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,c="__lodash_placeholder__",f=1,d=2,h=4,p=1,g=2,y=1,b=2,_=4,m=8,x=16,E=32,O=64,S=128,T=256,P=512,I=30,k="...",L=800,B=16,j=1,z=2,H=3,q=1/0,W=9007199254740991,$=17976931348623157e292,J=NaN,X=4294967295,Z=X-1,ue=X>>>1,re=[["ary",S],["bind",y],["bindKey",b],["curry",m],["curryRight",x],["flip",P],["partial",E],["partialRight",O],["rearg",T]],ne="[object Arguments]",le="[object Array]",ce="[object AsyncFunction]",pe="[object Boolean]",fe="[object Date]",se="[object DOMException]",de="[object Error]",ge="[object Function]",Oe="[object GeneratorFunction]",ke="[object Map]",De="[object Number]",Ne="[object Null]",Ce="[object Object]",Y="[object Promise]",Q="[object Proxy]",ie="[object RegExp]",we="[object Set]",Ee="[object String]",Me="[object Symbol]",Ie="[object Undefined]",Ye="[object WeakMap]",ot="[object WeakSet]",mt="[object ArrayBuffer]",wt="[object DataView]",Mt="[object Float32Array]",Dt="[object Float64Array]",vt="[object Int8Array]",tt="[object Int16Array]",_e="[object Int32Array]",Ue="[object Uint8Array]",Qe="[object Uint8ClampedArray]",Ze="[object Uint16Array]",nt="[object Uint32Array]",It=/\b__p \+= '';/g,ct=/\b(__p \+=) '' \+/g,Lt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Rt=/&(?:amp|lt|gt|quot|#39);/g,jt=/[&<>"']/g,Yt=RegExp(Rt.source),sr=RegExp(jt.source),Ut=/<%-([\s\S]+?)%>/g,Rr=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Vr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Br=/^\w*$/,mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ur=/[\\^$.*+?()[\]{}|]/g,sn=RegExp(ur.source),Fr=/^\s+/,un=/\s/,bn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wn=/\{\n\/\* \[wrapped with (.+)\] \*/,_n=/,? & /,xn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,on=/[()=,{}\[\]\/\s]/,Nn=/\\(\\)?/g,fi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,Jn=/^0b[01]+$/i,_i=/^\[object .+?Constructor\]$/,Ir=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,di=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,hr=/['\n\r\u2028\u2029\\]/g,ei="\\ud800-\\udfff",Hn="\\u0300-\\u036f",ds="\\ufe20-\\ufe2f",Na="\\u20d0-\\u20ff",ki=Hn+ds+Na,Wr="\\u2700-\\u27bf",Nr="a-z\\xdf-\\xf6\\xf8-\\xff",na="\\xac\\xb1\\xd7\\xf7",Us="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vu="\\u2000-\\u206f",ga=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ln="\\ufe0e\\ufe0f",Ii=na+Us+vu+ga,Ni="['’]",Pc="["+ei+"]",pu="["+Ii+"]",ia="["+ki+"]",Hl="\\d+",Md="["+Wr+"]",Xa="["+Nr+"]",Wl="[^"+ei+Ii+Hl+Wr+Nr+zs+"]",Yl="\\ud83c[\\udffb-\\udfff]",nf="(?:"+ia+"|"+Yl+")",Wi="[^"+ei+"]",af="(?:\\ud83c[\\udde6-\\uddff]){2}",La="[\\ud800-\\udbff][\\udc00-\\udfff]",Go="["+zs+"]",Gf="\\u200d",hs="(?:"+Xa+"|"+Wl+")",Mc="(?:"+Go+"|"+Wl+")",Xl="(?:"+Ni+"(?:d|ll|m|re|s|t|ve))?",ti="(?:"+Ni+"(?:D|LL|M|RE|S|T|VE))?",qs=nf+"?",Ju="["+Ln+"]?",Gs="(?:"+Gf+"(?:"+[Wi,af,La].join("|")+")"+Ju+qs+")*",$l="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",of="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gu=Ju+qs+Gs,wo="(?:"+[Md,af,La].join("|")+")"+gu,xo="(?:"+[Wi+ia+"?",ia,af,La,Pc].join("|")+")",Vf=RegExp(Ni,"g"),sf=RegExp(ia,"g"),yu=RegExp(Yl+"(?="+Yl+")|"+xo+gu,"g"),uo=RegExp([Go+"?"+Xa+"+"+Xl+"(?="+[pu,Go,"$"].join("|")+")",Mc+"+"+ti+"(?="+[pu,Go+hs,"$"].join("|")+")",Go+"?"+hs+"+"+Xl,Go+"+"+ti,of,$l,Hl,wo].join("|"),"g"),el=RegExp("["+Gf+ei+ki+Ln+"]"),Kl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],vs=-1,jn={};jn[Mt]=jn[Dt]=jn[vt]=jn[tt]=jn[_e]=jn[Ue]=jn[Qe]=jn[Ze]=jn[nt]=!0,jn[ne]=jn[le]=jn[mt]=jn[pe]=jn[wt]=jn[fe]=jn[de]=jn[ge]=jn[ke]=jn[De]=jn[Ce]=jn[ie]=jn[we]=jn[Ee]=jn[Ye]=!1;var Zr={};Zr[ne]=Zr[le]=Zr[mt]=Zr[wt]=Zr[pe]=Zr[fe]=Zr[Mt]=Zr[Dt]=Zr[vt]=Zr[tt]=Zr[_e]=Zr[ke]=Zr[De]=Zr[Ce]=Zr[ie]=Zr[we]=Zr[Ee]=Zr[Me]=Zr[Ue]=Zr[Qe]=Zr[Ze]=Zr[nt]=!0,Zr[de]=Zr[ge]=Zr[Ye]=!1;var Zl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ps={"&":"&","<":"<",">":">",'"':""","'":"'"},Dc={"&":"&","<":"<",">":">",""":'"',"'":"'"},Oa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tl=parseFloat,uf=parseInt,Ql=typeof Lf=="object"&&Lf&&Lf.Object===Object&&Lf,rl=typeof self=="object"&&self&&self.Object===Object&&self,wi=Ql||rl||Function("return this")(),Jl=e&&!e.nodeType&&e,aa=Jl&&!0&&r&&!r.nodeType&&r,mu=aa&&aa.exports===Jl,lf=mu&&Ql.process,ya=(function(){try{var We=aa&&aa.require&&aa.require("util").types;return We||lf&&lf.binding&&lf.binding("util")}catch{}})(),ma=ya&&ya.isArrayBuffer,bu=ya&&ya.isDate,lo=ya&&ya.isMap,Ho=ya&&ya.isRegExp,st=ya&&ya.isSet,xt=ya&&ya.isTypedArray;function pt(We,ft,ut){switch(ut.length){case 0:return We.call(ft);case 1:return We.call(ft,ut[0]);case 2:return We.call(ft,ut[0],ut[1]);case 3:return We.call(ft,ut[0],ut[1],ut[2])}return We.apply(ft,ut)}function Wt(We,ft,ut,Kt){for(var Pr=-1,Qr=We==null?0:We.length;++Pr-1}function ec(We,ft,ut){for(var Kt=-1,Pr=We==null?0:We.length;++Kt-1;);return ut}function Rh(We,ft){for(var ut=We.length;ut--&&il(ft,We[ut],0)>-1;);return ut}function Xf(We,ft){for(var ut=We.length,Kt=0;ut--;)We[ut]===ft&&++Kt;return Kt}var $f=_u(Zl),Id=_u(ps);function rc(We){return"\\"+Oa[We]}function Kf(We,ft){return We==null?t:We[ft]}function Lc(We){return el.test(We)}function Nd(We){return Kl.test(We)}function Ph(We){for(var ft,ut=[];!(ft=We.next()).done;)ut.push(ft.value);return ut}function hf(We){var ft=-1,ut=Array(We.size);return We.forEach(function(Kt,Pr){ut[++ft]=[Pr,Kt]}),ut}function Li(We,ft){return function(ut){return We(ft(ut))}}function hi(We,ft){for(var ut=-1,Kt=We.length,Pr=0,Qr=[];++ut-1}function $i(A,D){var U=this.__data__,ee=Ki(U,A);return ee<0?(++this.size,U.push([A,D])):U[ee][1]=D,this}Ko.prototype.clear=kh,Ko.prototype.delete=Zo,Ko.prototype.get=fc,Ko.prototype.has=Ih,Ko.prototype.set=$i;function Za(A){var D=-1,U=A==null?0:A.length;for(this.clear();++D=D?A:D)),A}function Qa(A,D,U,ee,ve,Ae){var Le,qe=D&f,$e=D&d,Ot=D&h;if(U&&(Le=ve?U(A,ee,ve,Ae):U(A)),Le!==t)return Le;if(!ca(A))return A;var Tt=rn(A);if(Tt){if(Le=hy(A),!qe)return Fi(A,Le)}else{var Pt=po(A),Qt=Pt==ge||Pt==Oe;if(Jd(A))return Mn(A,qe);if(Pt==Ce||Pt==ne||Qt&&!ve){if(Le=$e||Qt?{}:Qp(A),!qe)return $e?Tf(A,ku(Le,A)):sd(A,fo(Le,A))}else{if(!Zr[Pt])return ve?A:{};Le=vy(A,Pt,qe)}}Ae||(Ae=new Qo);var pr=Ae.get(A);if(pr)return pr;Ae.set(A,Le),gg(A)?A.forEach(function(Gr){Le.add(Qa(Gr,D,U,Gr,A,Ae))}):O_(A)&&A.forEach(function(Gr,Bn){Le.set(Bn,Qa(Gr,D,U,Bn,A,Ae))});var qr=Ot?$e?is:fd:$e?Vu:Bo,Tn=Tt?t:qr(A);return ir(Tn||A,function(Gr,Bn){Tn&&(Bn=Gr,Gr=A[Bn]),Ro(Le,Bn,Qa(Gr,D,U,Bn,A,Ae))}),Le}function rd(A){var D=Bo(A);return function(U){return Iu(U,A,D)}}function Iu(A,D,U){var ee=U.length;if(A==null)return!ee;for(A=be(A);ee--;){var ve=U[ee],Ae=D[ve],Le=A[ve];if(Le===t&&!(ve in A)||!Ae(Le))return!1}return!0}function wf(A,D,U){if(typeof A!="function")throw new Ei(o);return Hh(function(){A.apply(t,U)},D)}function es(A,D,U,ee){var ve=-1,Ae=Kn,Le=!0,qe=A.length,$e=[],Ot=D.length;if(!qe)return $e;U&&(D=xi(D,Eo(U))),ee?(Ae=ec,Le=!1):D.length>=i&&(Ae=Hs,Le=!1,D=new co(D));e:for(;++veve?0:ve+U),ee=ee===t||ee>ve?ve:zr(ee),ee<0&&(ee+=ve),ee=U>ee?0:R0(ee);U0&&U(qe)?D>1?Zi(qe,D-1,U,ee,ve):ba(ve,qe):ee||(ve[ve.length]=qe)}return ve}var hc=$p(),Ef=$p(!0);function Es(A,D){return A&&hc(A,D,Bo)}function Ss(A,D){return A&&Ef(A,D,Bo)}function Qs(A,D){return ja(D,function(U){return Pl(A[U])})}function Os(A,D){D=yr(D,A);for(var U=0,ee=D.length;A!=null&&UD}function er(A,D){return A!=null&&Jr.call(A,D)}function vo(A,D){return A!=null&&D in be(A)}function Js(A,D,U){return A>=Sn(D,U)&&A=120&&Tt.length>=120)?new co(Le&&Tt):t}Tt=A[0];var Pt=-1,Qt=qe[0];e:for(;++Pt-1;)qe!==A&&Su.call(qe,$e,1),Su.call(A,$e,1);return A}function Gc(A,D){for(var U=A?D.length:0,ee=U-1;U--;){var ve=D[U];if(U==ee||ve!==Ae){var Ae=ve;Ol(ve)?Su.call(A,ve,1):vn(A,ve)}}return A}function K(A,D){return A+Yo(Xi()*(D-A+1))}function oe(A,D,U,ee){for(var ve=-1,Ae=Ri(ji((D-A)/(U||1)),0),Le=ut(Ae);Ae--;)Le[ee?Ae:++ve]=A,A+=U;return Le}function ye(A,D){var U="";if(!A||D<1||D>W)return U;do D%2&&(U+=A),D=Yo(D/2),D&&(A+=A);while(D);return U}function Pe(A,D){return Nv(Iv(A,D,ru),A+"")}function ze(A){return Ca(Kv(A))}function Ge(A,D){var U=Kv(A);return Yd(U,Mo(D,0,U.length))}function Be(A,D,U,ee){if(!ca(A))return A;D=yr(D,A);for(var ve=-1,Ae=D.length,Le=Ae-1,qe=A;qe!=null&&++veve?0:ve+D),U=U>ve?ve:U,U<0&&(U+=ve),ve=D>U?0:U-D>>>0,D>>>=0;for(var Ae=ut(ve);++ee>>1,Le=A[Ae];Le!==null&&!Gu(Le)&&(U?Le<=D:Le=i){var Ot=D?null:bc(A);if(Ot)return Zf(Ot);Le=!1,ve=Hs,$e=new co}else $e=D?[]:qe;e:for(;++ee=ee?A:dt(A,D,U)}var cn=Cv||function(A){return wi.clearTimeout(A)};function Mn(A,D){if(D)return A.slice();var U=A.length,ee=ys?ys(U):new A.constructor(U);return A.copy(ee),ee}function On(A){var D=new A.constructor(A.byteLength);return new ac(D).set(new ac(A)),D}function zn(A,D){var U=D?On(A.buffer):A.buffer;return new A.constructor(U,A.byteOffset,A.byteLength)}function rs(A){var D=new A.constructor(A.source,gn.exec(A));return D.lastIndex=A.lastIndex,D}function wl(A){return _s?be(_s.call(A)):{}}function Bu(A,D){var U=D?On(A.buffer):A.buffer;return new A.constructor(U,A.byteOffset,A.length)}function mc(A,D){if(A!==D){var U=A!==t,ee=A===null,ve=A===A,Ae=Gu(A),Le=D!==t,qe=D===null,$e=D===D,Ot=Gu(D);if(!qe&&!Ot&&!Ae&&A>D||Ae&&Le&&$e&&!qe&&!Ot||ee&&Le&&$e||!U&&$e||!ve)return 1;if(!ee&&!Ae&&!Ot&&A=qe)return $e;var Ot=U[ee];return $e*(Ot=="desc"?-1:1)}}return A.index-D.index}function As(A,D,U,ee){for(var ve=-1,Ae=A.length,Le=U.length,qe=-1,$e=D.length,Ot=Ri(Ae-Le,0),Tt=ut($e+Ot),Pt=!ee;++qe<$e;)Tt[qe]=D[qe];for(;++ve1?U[ve-1]:t,Le=ve>2?U[2]:t;for(Ae=A.length>3&&typeof Ae=="function"?(ve--,Ae):t,Le&&No(U[0],U[1],Le)&&(Ae=ve<3?t:Ae,ve=1),D=be(D);++ee-1?ve[Ae?D[Le]:Le]:t}}function ko(A){return Sl(function(D){var U=D.length,ee=U,ve=ar.prototype.thru;for(A&&D.reverse();ee--;){var Ae=D[ee];if(typeof Ae!="function")throw new Ei(o);if(ve&&!Le&&ea(Ae)=="wrapper")var Le=new ar([],!0)}for(ee=Le?ee:U;++ee1&&Xn.reverse(),Tt&&$eqe))return!1;var Ot=Ae.get(A),Tt=Ae.get(D);if(Ot&&Tt)return Ot==D&&Tt==A;var Pt=-1,Qt=!0,pr=U&g?new co:t;for(Ae.set(A,D),Ae.set(D,A);++Pt1?"& ":"")+D[ee],D=D.join(U>2?", ":" "),A.replace(bn,`{ /* [wrapped with `+D+`] */ -`)}function zh(A){return rn(A)||Zh(A)||!!(Mh&&A&&A[Mh])}function Ol(A,D){var U=typeof A;return D=D??W,!!D&&(U=="number"||U!="symbol"&&pa.test(A))&&A>-1&&A%1==0&&A0){if(++D>=L)return arguments[0]}else D=0;return A.apply(t,arguments)}}function Yd(A,D){var U=-1,ee=A.length,ve=ee-1;for(D=D===t?ee:D;++U1?A[D-1]:t;return U=typeof U=="function"?(A.pop(),U):t,qi(A,U)});function ag(A){var D=xe(A);return D.__chain__=!0,D}function o_(A,D){return D(A),A}function $h(A,D){return D(A)}var xy=Sl(function(A){var D=A.length,U=D?A[0]:0,ee=this.__wrapped__,ve=function(Ae){return Uc(Ae,A)};return D>1||this.__actions__.length||!(ee instanceof Yr)||!Ol(U)?this.thru(ve):(ee=ee.slice(U,+U+(D?1:0)),ee.__actions__.push({func:$h,args:[ve],thisArg:t}),new ar(ee,this.__chain__).thru(function(Ae){return D&&!Ae.length&&Ae.push(t),Ae}))});function Kd(){return ag(this)}function yo(){return new ar(this.value(),this.__chain__)}function Zd(){this.__values__===t&&(this.__values__=P_(this.value()));var A=this.__index__>=this.__values__.length,D=A?t:this.__values__[this.__index__++];return{done:A,value:D}}function zv(){return this}function hd(A){for(var D,U=this;U instanceof Ks;){var ee=jv(U);ee.__index__=0,ee.__values__=t,D?ve.__wrapped__=ee:D=ee;var ve=ee;U=U.__wrapped__}return ve.__wrapped__=A,D}function u0(){var A=this.__wrapped__;if(A instanceof Yr){var D=A;return this.__actions__.length&&(D=new Yr(this)),D=D.reverse(),D.__actions__.push({func:$h,args:[At],thisArg:t}),new ar(D,this.__chain__)}return this.thru(At)}function l0(){return Ja(this.__wrapped__,this.__actions__)}var s_=Lh(function(A,D,U){Jr.call(A,U)?++A[U]:Ro(A,U,1)});function og(A,D,U){var ee=rn(A)?oa:Nu;return U&&Io(A,D,U)&&(D=t),ee(A,br(D,3))}function c0(A,D){var U=rn(A)?ja:xs;return U(A,br(D,3))}var Al=Kp(ng),u_=Kp(Yh);function zu(A,D){return Zi(sg(A,D),1)}function l_(A,D){return Zi(sg(A,D),q)}function c_(A,D,U){return U=U===t?1:zr(U),Zi(sg(A,D),U)}function f_(A,D){var U=rn(A)?ir:fo;return U(A,br(D,3))}function vd(A,D){var U=rn(A)?En:nd;return U(A,br(D,3))}var Ey=Lh(function(A,D,U){Jr.call(A,U)?A[U].push(D):Ro(A,U,[D])});function f0(A,D,U,ee){A=qu(A)?A:Kv(A),U=U&&!ee?zr(U):0;var ve=A.length;return U<0&&(U=Ri(ve+U,0)),yg(A)?U<=ve&&A.indexOf(D,U)>-1:!!ve&&il(A,D,U)>-1}var qv=Pe(function(A,D,U){var ee=-1,ve=typeof D=="function",Ae=qu(A)?ut(A.length):[];return fo(A,function(Le){Ae[++ee]=ve?pt(D,Le,U):Mo(Le,D,U)}),Ae}),d_=Lh(function(A,D,U){Ro(A,U,D)});function sg(A,D){var U=rn(A)?xi:od;return U(A,br(D,3))}function h_(A,D,U,ee){return A==null?[]:(rn(D)||(D=D==null?[]:[D]),U=ee?t:U,rn(U)||(U=U==null?[]:[U]),yc(A,D,U))}var v_=Lh(function(A,D,U){A[U?0:1].push(D)},function(){return[[],[]]});function Sy(A,D,U){var ee=rn(A)?cf:kc,ve=arguments.length<3;return ee(A,br(D,4),U,ve,fo)}function d0(A,D,U){var ee=rn(A)?Ev:kc,ve=arguments.length<3;return ee(A,br(D,4),U,ve,nd)}function yE(A,D){var U=rn(A)?ja:xs;return U(A,Cy(br(D,3)))}function mE(A){var D=rn(A)?Ca:ze;return D(A)}function bE(A,D,U){(U?Io(A,D,U):D===t)?D=1:D=zr(D);var ee=rn(A)?Jo:Ge;return ee(A,D)}function p_(A){var D=rn(A)?td:gt;return D(A)}function g_(A){if(A==null)return 0;if(qu(A))return yg(A)?al(A):A.length;var D=vo(A);return D==ke||D==we?A.size:_l(A).length}function Gv(A,D,U){var ee=rn(A)?nl:qt;return U&&Io(A,D,U)&&(D=t),ee(A,br(D,3))}var Oy=Pe(function(A,D){if(A==null)return[];var U=D.length;return U>1&&Io(A,D[0],D[1])?D=[]:U>2&&Io(D[0],D[1],D[2])&&(D=[D[0]]),yc(A,Zi(D,1),[])}),ug=oc||function(){return wi.Date.now()};function y_(A,D){if(typeof D!="function")throw new Ei(o);return A=zr(A),function(){if(--A<1)return D.apply(this,arguments)}}function h0(A,D,U){return D=U?t:D,D=A&&D==null?A.length:D,eo(A,S,t,t,t,t,D)}function v0(A,D){var U;if(typeof D!="function")throw new Ei(o);return A=zr(A),function(){return--A>0&&(U=D.apply(this,arguments)),A<=1&&(D=t),U}}var Ty=Pe(function(A,D,U){var ee=y;if(U.length){var ve=hi(U,la(Ty));ee|=E}return eo(A,ee,D,U,ve)}),p0=Pe(function(A,D,U){var ee=y|b;if(U.length){var ve=hi(U,la(p0));ee|=E}return eo(D,ee,A,U,ve)});function lg(A,D,U){D=U?t:D;var ee=eo(A,m,t,t,t,t,t,D);return ee.placeholder=lg.placeholder,ee}function g0(A,D,U){D=U?t:D;var ee=eo(A,x,t,t,t,t,t,D);return ee.placeholder=g0.placeholder,ee}function y0(A,D,U){var ee,ve,Ae,Le,qe,$e,Ot=0,Tt=!1,Pt=!1,Qt=!0;if(typeof A!="function")throw new Ei(o);D=Ml(D)||0,ca(U)&&(Tt=!!U.leading,Pt="maxWait"in U,Ae=Pt?Ri(Ml(U.maxWait)||0,D):Ae,Qt="trailing"in U?!!U.trailing:Qt);function pr(mo){var yd=ee,Jh=ve;return ee=ve=t,Ot=mo,Le=A.apply(Jh,yd),Le}function qr(mo){return Ot=mo,qe=Hh(Bn,D),Tt?pr(mo):Le}function Tn(mo){var yd=mo-$e,Jh=mo-Ot,JD=D-yd;return Pt?Sn(JD,Ae-Jh):JD}function Gr(mo){var yd=mo-$e,Jh=mo-Ot;return $e===t||yd>=D||yd<0||Pt&&Jh>=Ae}function Bn(){var mo=ug();if(Gr(mo))return Xn(mo);qe=Hh(Bn,Tn(mo))}function Xn(mo){return qe=t,Qt&&ee?pr(mo):(ee=ve=t,Le)}function Kc(){qe!==t&&cn(qe),Ot=0,ee=$e=ve=qe=t}function Dl(){return qe===t?Le:Xn(ug())}function Zc(){var mo=ug(),yd=Gr(mo);if(ee=arguments,ve=this,$e=mo,yd){if(qe===t)return qr($e);if(Pt)return cn(qe),qe=Hh(Bn,D),pr($e)}return qe===t&&(qe=Hh(Bn,D)),Le}return Zc.cancel=Kc,Zc.flush=Dl,Zc}var yi=Pe(function(A,D){return wf(A,1,D)}),m0=Pe(function(A,D,U){return wf(A,Ml(D)||0,U)});function _E(A){return eo(A,P)}function cg(A,D){if(typeof A!="function"||D!=null&&typeof D!="function")throw new Ei(o);var U=function(){var ee=arguments,ve=D?D.apply(this,ee):ee[0],Ae=U.cache;if(Ae.has(ve))return Ae.get(ve);var Le=A.apply(this,ee);return U.cache=Ae.set(ve,Le)||Ae,Le};return U.cache=new(cg.Cache||Za),U}cg.Cache=Za;function Cy(A){if(typeof A!="function")throw new Ei(o);return function(){var D=arguments;switch(D.length){case 0:return!A.call(this);case 1:return!A.call(this,D[0]);case 2:return!A.call(this,D[0],D[1]);case 3:return!A.call(this,D[0],D[1],D[2])}return!A.apply(this,D)}}function wE(A){return v0(2,A)}var xE=Ji(function(A,D){D=D.length==1&&rn(D[0])?xi(D[0],xo(br())):xi(Zi(D,1),xo(br()));var U=D.length;return Pe(function(ee){for(var ve=-1,Ae=Sn(ee.length,U);++ve=D}),Zh=Wn((function(){return arguments})())?Wn:function(A){return Pa(A)&&Jr.call(A,"callee")&&!Ka.call(A,"callee")},rn=ut.isArray,w0=ma?xo(ma):Pi;function qu(A){return A!=null&&My(A.length)&&!Pl(A)}function Va(A){return Pa(A)&&qu(A)}function dg(A){return A===!0||A===!1||Pa(A)&&Qi(A)==pe}var Jd=Xs||at,S_=bu?xo(bu):ts;function Cn(A){return Pa(A)&&A.nodeType===1&&!vg(A)}function x0(A){if(A==null)return!0;if(qu(A)&&(rn(A)||typeof A=="string"||typeof A.splice=="function"||Jd(A)||eh(A)||Zh(A)))return!A.length;var D=vo(A);if(D==ke||D==we)return!A.size;if(Vd(A))return!_l(A).length;for(var U in A)if(Jr.call(A,U))return!1;return!0}function Ry(A,D){return Pn(A,D)}function E0(A,D,U){U=typeof U=="function"?U:t;var ee=U?U(A,D):t;return ee===t?Pn(A,D,t,U):!!ee}function Py(A){if(!Pa(A))return!1;var D=Qi(A);return D==de||D==se||typeof A.message=="string"&&typeof A.name=="string"&&!vg(A)}function S0(A){return typeof A=="number"&&sa(A)}function Pl(A){if(!ca(A))return!1;var D=Qi(A);return D==ge||D==Oe||D==ce||D==Q}function hg(A){return typeof A=="number"&&A==zr(A)}function My(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=W}function ca(A){var D=typeof A;return A!=null&&(D=="object"||D=="function")}function Pa(A){return A!=null&&typeof A=="object"}var O_=uo?xo(uo):Xr;function T_(A,D){return A===D||vi(A,D,Kr(D))}function C_(A,D,U){return U=typeof U=="function"?U:t,vi(A,D,Kr(D),U)}function Oi(A){return T0(A)&&A!=+A}function O0(A){if(kv(A))throw new Pr(a);return vc(A)}function os(A){return A===null}function OE(A){return A==null}function T0(A){return typeof A=="number"||Pa(A)&&Qi(A)==De}function vg(A){if(!Pa(A)||Qi(A)!=Ce)return!1;var D=ms(A);if(D===null)return!0;var U=Jr.call(D,"constructor")&&D.constructor;return typeof U=="function"&&U instanceof U&&xu.call(U)==jd}var pg=Ho?xo(Ho):bl;function C0(A){return hg(A)&&A>=-W&&A<=W}var gg=st?xo(st):Cs;function yg(A){return typeof A=="string"||!rn(A)&&Pa(A)&&Qi(A)==Ee}function Gu(A){return typeof A=="symbol"||Pa(A)&&Qi(A)==Me}var eh=xt?xo(xt):ad;function A0(A){return A===t}function TE(A){return Pa(A)&&vo(A)==Ye}function A_(A){return Pa(A)&&Qi(A)==ot}var CE=Uu(si),R_=Uu(function(A,D){return A<=D});function P_(A){if(!A)return[];if(qu(A))return yg(A)?ri(A):Fi(A);if(Yi&&A[Yi])return Ph(A[Yi]());var D=vo(A),U=D==ke?hf:D==we?Zf:Kv;return U(A)}function pd(A){if(!A)return A===0?A:0;if(A=Ml(A),A===q||A===-q){var D=A<0?-1:1;return D*$}return A===A?A:0}function zr(A){var D=pd(A),U=D%1;return D===D?U?D-U:D:0}function R0(A){return A?Po(zr(A),0,X):0}function Ml(A){if(typeof A=="number")return A;if(Gu(A))return J;if(ca(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=ca(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=wu(A);var U=Jn.test(A);return U||Ir.test(A)?uf(A.slice(2),U?2:8):yn.test(A)?J:+A}function Dy(A){return wa(A,Vu(A))}function AE(A){return A?Po(zr(A),-W,W):A===0?A:0}function li(A){return A==null?"":Or(A)}var M_=Vc(function(A,D){if(Vd(D)||qu(D)){wa(D,jo(D),A);return}for(var U in D)Jr.call(D,U)&&Ao(A,U,D[U])}),ky=Vc(function(A,D){wa(D,Vu(D),A)}),Hv=Vc(function(A,D,U,ee){wa(D,Vu(D),A,ee)}),RE=Vc(function(A,D,U,ee){wa(D,jo(D),A,ee)}),Ec=Sl(Uc);function P0(A,D){var U=Tu(A);return D==null?U:co(U,D)}var D_=Pe(function(A,D){A=be(A);var U=-1,ee=D.length,ve=ee>2?D[2]:t;for(ve&&Io(D[0],D[1],ve)&&(ee=1);++U1),Ae}),wa(A,is(A),U),ee&&(U=Qa(U,f|d|h,Zp));for(var ve=D.length;ve--;)vn(U,D[ve]);return U});function LE(A,D){return $v(A,Cy(br(D)))}var Xv=Sl(function(A,D){return A==null?{}:Of(A,D)});function $v(A,D){if(A==null)return{};var U=xi(is(A),function(ee){return[ee]});return D=br(D),Aa(A,U,function(ee,ve){return D(ee,ve[0])})}function F_(A,D,U){D=yr(D,A);var ee=-1,ve=D.length;for(ve||(ve=1,A=t);++eeD){var ee=A;A=D,D=ee}if(U||A%1||D%1){var ve=Xi();return Sn(A+ve*(D-A+tl("1e-"+((ve+"").length-1))),D)}return K(A,D)}var Fy=ud(function(A,D,U){return D=D.toLowerCase(),A+(U?G_(D):D)});function G_(A){return Qh(li(A).toLowerCase())}function Zv(A){return A=li(A),A&&A.replace(di,$f).replace(sf,"")}function FE(A,D,U){A=li(A),D=Or(D);var ee=A.length;U=U===t?ee:Po(zr(U),0,ee);var ve=U;return U-=D.length,U>=0&&A.slice(U,ve)==D}function V_(A){return A=li(A),A&&sr.test(A)?A.replace(jt,Id):A}function H_(A){return A=li(A),A&&sn.test(A)?A.replace(ur,"\\$&"):A}var W_=ud(function(A,D,U){return A+(U?"-":"")+D.toLowerCase()}),Y_=ud(function(A,D,U){return A+(U?" ":"")+D.toLowerCase()}),I0=Ud("toLowerCase");function X_(A,D,U){A=li(A),D=zr(D);var ee=D?al(A):0;if(!D||ee>=D)return A;var ve=(D-ee)/2;return Cf(Yo(ve),U)+A+Cf(ji(ve),U)}function $_(A,D,U){A=li(A),D=zr(D);var ee=D?al(A):0;return D&&ee>>0,U?(A=li(A),A&&(typeof D=="string"||D!=null&&!pg(D))&&(D=Or(D),!D&&Lc(A))?mn(ri(A),0,U):A.split(D,U)):[]}var j0=ud(function(A,D,U){return A+(U?" ":"")+Qh(D)});function K_(A,D,U){return A=li(A),U=U==null?0:Po(zr(U),0,A.length),D=Or(D),A.slice(U,U+D.length)==D}function B0(A,D,U){var ee=xe.templateSettings;U&&Io(A,D,U)&&(D=t),A=li(A),D=Hv({},D,ee,Mi);var ve=Hv({},D.imports,ee.imports,Mi),Ae=jo(ve),Le=Nc(ve,Ae),qe,$e,Ot=0,Tt=D.interpolate||Bt,Pt="__p += '",Qt=ol((D.escape||Bt).source+"|"+Tt.source+"|"+(Tt===Xt?fi:Bt).source+"|"+(D.evaluate||Bt).source+"|$","g"),pr="//# sourceURL="+(Jr.call(D,"sourceURL")?(D.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vs+"]")+` +`)}function zh(A){return rn(A)||Zh(A)||!!(Mh&&A&&A[Mh])}function Ol(A,D){var U=typeof A;return D=D??W,!!D&&(U=="number"||U!="symbol"&&pa.test(A))&&A>-1&&A%1==0&&A0){if(++D>=L)return arguments[0]}else D=0;return A.apply(t,arguments)}}function Yd(A,D){var U=-1,ee=A.length,ve=ee-1;for(D=D===t?ee:D;++U1?A[D-1]:t;return U=typeof U=="function"?(A.pop(),U):t,qi(A,U)});function ag(A){var D=xe(A);return D.__chain__=!0,D}function o_(A,D){return D(A),A}function $h(A,D){return D(A)}var xy=Sl(function(A){var D=A.length,U=D?A[0]:0,ee=this.__wrapped__,ve=function(Ae){return Uc(Ae,A)};return D>1||this.__actions__.length||!(ee instanceof Yr)||!Ol(U)?this.thru(ve):(ee=ee.slice(U,+U+(D?1:0)),ee.__actions__.push({func:$h,args:[ve],thisArg:t}),new ar(ee,this.__chain__).thru(function(Ae){return D&&!Ae.length&&Ae.push(t),Ae}))});function Kd(){return ag(this)}function mo(){return new ar(this.value(),this.__chain__)}function Zd(){this.__values__===t&&(this.__values__=P_(this.value()));var A=this.__index__>=this.__values__.length,D=A?t:this.__values__[this.__index__++];return{done:A,value:D}}function zv(){return this}function hd(A){for(var D,U=this;U instanceof Ks;){var ee=jv(U);ee.__index__=0,ee.__values__=t,D?ve.__wrapped__=ee:D=ee;var ve=ee;U=U.__wrapped__}return ve.__wrapped__=A,D}function u0(){var A=this.__wrapped__;if(A instanceof Yr){var D=A;return this.__actions__.length&&(D=new Yr(this)),D=D.reverse(),D.__actions__.push({func:$h,args:[At],thisArg:t}),new ar(D,this.__chain__)}return this.thru(At)}function l0(){return Ja(this.__wrapped__,this.__actions__)}var s_=Lh(function(A,D,U){Jr.call(A,U)?++A[U]:Po(A,U,1)});function og(A,D,U){var ee=rn(A)?oa:Nu;return U&&No(A,D,U)&&(D=t),ee(A,br(D,3))}function c0(A,D){var U=rn(A)?ja:xs;return U(A,br(D,3))}var Al=Kp(ng),u_=Kp(Yh);function zu(A,D){return Zi(sg(A,D),1)}function l_(A,D){return Zi(sg(A,D),q)}function c_(A,D,U){return U=U===t?1:zr(U),Zi(sg(A,D),U)}function f_(A,D){var U=rn(A)?ir:ho;return U(A,br(D,3))}function vd(A,D){var U=rn(A)?En:nd;return U(A,br(D,3))}var Ey=Lh(function(A,D,U){Jr.call(A,U)?A[U].push(D):Po(A,U,[D])});function f0(A,D,U,ee){A=qu(A)?A:Kv(A),U=U&&!ee?zr(U):0;var ve=A.length;return U<0&&(U=Ri(ve+U,0)),yg(A)?U<=ve&&A.indexOf(D,U)>-1:!!ve&&il(A,D,U)>-1}var qv=Pe(function(A,D,U){var ee=-1,ve=typeof D=="function",Ae=qu(A)?ut(A.length):[];return ho(A,function(Le){Ae[++ee]=ve?pt(D,Le,U):Do(Le,D,U)}),Ae}),d_=Lh(function(A,D,U){Po(A,U,D)});function sg(A,D){var U=rn(A)?xi:od;return U(A,br(D,3))}function h_(A,D,U,ee){return A==null?[]:(rn(D)||(D=D==null?[]:[D]),U=ee?t:U,rn(U)||(U=U==null?[]:[U]),yc(A,D,U))}var v_=Lh(function(A,D,U){A[U?0:1].push(D)},function(){return[[],[]]});function Sy(A,D,U){var ee=rn(A)?cf:kc,ve=arguments.length<3;return ee(A,br(D,4),U,ve,ho)}function d0(A,D,U){var ee=rn(A)?Ev:kc,ve=arguments.length<3;return ee(A,br(D,4),U,ve,nd)}function yE(A,D){var U=rn(A)?ja:xs;return U(A,Cy(br(D,3)))}function mE(A){var D=rn(A)?Ca:ze;return D(A)}function bE(A,D,U){(U?No(A,D,U):D===t)?D=1:D=zr(D);var ee=rn(A)?Jo:Ge;return ee(A,D)}function p_(A){var D=rn(A)?td:gt;return D(A)}function g_(A){if(A==null)return 0;if(qu(A))return yg(A)?al(A):A.length;var D=po(A);return D==ke||D==we?A.size:_l(A).length}function Gv(A,D,U){var ee=rn(A)?nl:qt;return U&&No(A,D,U)&&(D=t),ee(A,br(D,3))}var Oy=Pe(function(A,D){if(A==null)return[];var U=D.length;return U>1&&No(A,D[0],D[1])?D=[]:U>2&&No(D[0],D[1],D[2])&&(D=[D[0]]),yc(A,Zi(D,1),[])}),ug=oc||function(){return wi.Date.now()};function y_(A,D){if(typeof D!="function")throw new Ei(o);return A=zr(A),function(){if(--A<1)return D.apply(this,arguments)}}function h0(A,D,U){return D=U?t:D,D=A&&D==null?A.length:D,eo(A,S,t,t,t,t,D)}function v0(A,D){var U;if(typeof D!="function")throw new Ei(o);return A=zr(A),function(){return--A>0&&(U=D.apply(this,arguments)),A<=1&&(D=t),U}}var Ty=Pe(function(A,D,U){var ee=y;if(U.length){var ve=hi(U,la(Ty));ee|=E}return eo(A,ee,D,U,ve)}),p0=Pe(function(A,D,U){var ee=y|b;if(U.length){var ve=hi(U,la(p0));ee|=E}return eo(D,ee,A,U,ve)});function lg(A,D,U){D=U?t:D;var ee=eo(A,m,t,t,t,t,t,D);return ee.placeholder=lg.placeholder,ee}function g0(A,D,U){D=U?t:D;var ee=eo(A,x,t,t,t,t,t,D);return ee.placeholder=g0.placeholder,ee}function y0(A,D,U){var ee,ve,Ae,Le,qe,$e,Ot=0,Tt=!1,Pt=!1,Qt=!0;if(typeof A!="function")throw new Ei(o);D=Ml(D)||0,ca(U)&&(Tt=!!U.leading,Pt="maxWait"in U,Ae=Pt?Ri(Ml(U.maxWait)||0,D):Ae,Qt="trailing"in U?!!U.trailing:Qt);function pr(bo){var yd=ee,Jh=ve;return ee=ve=t,Ot=bo,Le=A.apply(Jh,yd),Le}function qr(bo){return Ot=bo,qe=Hh(Bn,D),Tt?pr(bo):Le}function Tn(bo){var yd=bo-$e,Jh=bo-Ot,ek=D-yd;return Pt?Sn(ek,Ae-Jh):ek}function Gr(bo){var yd=bo-$e,Jh=bo-Ot;return $e===t||yd>=D||yd<0||Pt&&Jh>=Ae}function Bn(){var bo=ug();if(Gr(bo))return Xn(bo);qe=Hh(Bn,Tn(bo))}function Xn(bo){return qe=t,Qt&&ee?pr(bo):(ee=ve=t,Le)}function Kc(){qe!==t&&cn(qe),Ot=0,ee=$e=ve=qe=t}function Dl(){return qe===t?Le:Xn(ug())}function Zc(){var bo=ug(),yd=Gr(bo);if(ee=arguments,ve=this,$e=bo,yd){if(qe===t)return qr($e);if(Pt)return cn(qe),qe=Hh(Bn,D),pr($e)}return qe===t&&(qe=Hh(Bn,D)),Le}return Zc.cancel=Kc,Zc.flush=Dl,Zc}var yi=Pe(function(A,D){return wf(A,1,D)}),m0=Pe(function(A,D,U){return wf(A,Ml(D)||0,U)});function _E(A){return eo(A,P)}function cg(A,D){if(typeof A!="function"||D!=null&&typeof D!="function")throw new Ei(o);var U=function(){var ee=arguments,ve=D?D.apply(this,ee):ee[0],Ae=U.cache;if(Ae.has(ve))return Ae.get(ve);var Le=A.apply(this,ee);return U.cache=Ae.set(ve,Le)||Ae,Le};return U.cache=new(cg.Cache||Za),U}cg.Cache=Za;function Cy(A){if(typeof A!="function")throw new Ei(o);return function(){var D=arguments;switch(D.length){case 0:return!A.call(this);case 1:return!A.call(this,D[0]);case 2:return!A.call(this,D[0],D[1]);case 3:return!A.call(this,D[0],D[1],D[2])}return!A.apply(this,D)}}function wE(A){return v0(2,A)}var xE=Ji(function(A,D){D=D.length==1&&rn(D[0])?xi(D[0],Eo(br())):xi(Zi(D,1),Eo(br()));var U=D.length;return Pe(function(ee){for(var ve=-1,Ae=Sn(ee.length,U);++ve=D}),Zh=Wn((function(){return arguments})())?Wn:function(A){return Pa(A)&&Jr.call(A,"callee")&&!Ka.call(A,"callee")},rn=ut.isArray,w0=ma?Eo(ma):Pi;function qu(A){return A!=null&&My(A.length)&&!Pl(A)}function Va(A){return Pa(A)&&qu(A)}function dg(A){return A===!0||A===!1||Pa(A)&&Qi(A)==pe}var Jd=Xs||at,S_=bu?Eo(bu):ts;function Cn(A){return Pa(A)&&A.nodeType===1&&!vg(A)}function x0(A){if(A==null)return!0;if(qu(A)&&(rn(A)||typeof A=="string"||typeof A.splice=="function"||Jd(A)||eh(A)||Zh(A)))return!A.length;var D=po(A);if(D==ke||D==we)return!A.size;if(Vd(A))return!_l(A).length;for(var U in A)if(Jr.call(A,U))return!1;return!0}function Ry(A,D){return Pn(A,D)}function E0(A,D,U){U=typeof U=="function"?U:t;var ee=U?U(A,D):t;return ee===t?Pn(A,D,t,U):!!ee}function Py(A){if(!Pa(A))return!1;var D=Qi(A);return D==de||D==se||typeof A.message=="string"&&typeof A.name=="string"&&!vg(A)}function S0(A){return typeof A=="number"&&sa(A)}function Pl(A){if(!ca(A))return!1;var D=Qi(A);return D==ge||D==Oe||D==ce||D==Q}function hg(A){return typeof A=="number"&&A==zr(A)}function My(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=W}function ca(A){var D=typeof A;return A!=null&&(D=="object"||D=="function")}function Pa(A){return A!=null&&typeof A=="object"}var O_=lo?Eo(lo):Xr;function T_(A,D){return A===D||vi(A,D,Kr(D))}function C_(A,D,U){return U=typeof U=="function"?U:t,vi(A,D,Kr(D),U)}function Oi(A){return T0(A)&&A!=+A}function O0(A){if(kv(A))throw new Pr(a);return vc(A)}function os(A){return A===null}function OE(A){return A==null}function T0(A){return typeof A=="number"||Pa(A)&&Qi(A)==De}function vg(A){if(!Pa(A)||Qi(A)!=Ce)return!1;var D=ms(A);if(D===null)return!0;var U=Jr.call(D,"constructor")&&D.constructor;return typeof U=="function"&&U instanceof U&&xu.call(U)==jd}var pg=Ho?Eo(Ho):bl;function C0(A){return hg(A)&&A>=-W&&A<=W}var gg=st?Eo(st):Cs;function yg(A){return typeof A=="string"||!rn(A)&&Pa(A)&&Qi(A)==Ee}function Gu(A){return typeof A=="symbol"||Pa(A)&&Qi(A)==Me}var eh=xt?Eo(xt):ad;function A0(A){return A===t}function TE(A){return Pa(A)&&po(A)==Ye}function A_(A){return Pa(A)&&Qi(A)==ot}var CE=Uu(si),R_=Uu(function(A,D){return A<=D});function P_(A){if(!A)return[];if(qu(A))return yg(A)?ri(A):Fi(A);if(Yi&&A[Yi])return Ph(A[Yi]());var D=po(A),U=D==ke?hf:D==we?Zf:Kv;return U(A)}function pd(A){if(!A)return A===0?A:0;if(A=Ml(A),A===q||A===-q){var D=A<0?-1:1;return D*$}return A===A?A:0}function zr(A){var D=pd(A),U=D%1;return D===D?U?D-U:D:0}function R0(A){return A?Mo(zr(A),0,X):0}function Ml(A){if(typeof A=="number")return A;if(Gu(A))return J;if(ca(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=ca(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=wu(A);var U=Jn.test(A);return U||Ir.test(A)?uf(A.slice(2),U?2:8):yn.test(A)?J:+A}function Dy(A){return wa(A,Vu(A))}function AE(A){return A?Mo(zr(A),-W,W):A===0?A:0}function li(A){return A==null?"":Or(A)}var M_=Vc(function(A,D){if(Vd(D)||qu(D)){wa(D,Bo(D),A);return}for(var U in D)Jr.call(D,U)&&Ro(A,U,D[U])}),ky=Vc(function(A,D){wa(D,Vu(D),A)}),Hv=Vc(function(A,D,U,ee){wa(D,Vu(D),A,ee)}),RE=Vc(function(A,D,U,ee){wa(D,Bo(D),A,ee)}),Ec=Sl(Uc);function P0(A,D){var U=Tu(A);return D==null?U:fo(U,D)}var D_=Pe(function(A,D){A=be(A);var U=-1,ee=D.length,ve=ee>2?D[2]:t;for(ve&&No(D[0],D[1],ve)&&(ee=1);++U1),Ae}),wa(A,is(A),U),ee&&(U=Qa(U,f|d|h,Zp));for(var ve=D.length;ve--;)vn(U,D[ve]);return U});function LE(A,D){return $v(A,Cy(br(D)))}var Xv=Sl(function(A,D){return A==null?{}:Of(A,D)});function $v(A,D){if(A==null)return{};var U=xi(is(A),function(ee){return[ee]});return D=br(D),Aa(A,U,function(ee,ve){return D(ee,ve[0])})}function F_(A,D,U){D=yr(D,A);var ee=-1,ve=D.length;for(ve||(ve=1,A=t);++eeD){var ee=A;A=D,D=ee}if(U||A%1||D%1){var ve=Xi();return Sn(A+ve*(D-A+tl("1e-"+((ve+"").length-1))),D)}return K(A,D)}var Fy=ud(function(A,D,U){return D=D.toLowerCase(),A+(U?G_(D):D)});function G_(A){return Qh(li(A).toLowerCase())}function Zv(A){return A=li(A),A&&A.replace(di,$f).replace(sf,"")}function FE(A,D,U){A=li(A),D=Or(D);var ee=A.length;U=U===t?ee:Mo(zr(U),0,ee);var ve=U;return U-=D.length,U>=0&&A.slice(U,ve)==D}function V_(A){return A=li(A),A&&sr.test(A)?A.replace(jt,Id):A}function H_(A){return A=li(A),A&&sn.test(A)?A.replace(ur,"\\$&"):A}var W_=ud(function(A,D,U){return A+(U?"-":"")+D.toLowerCase()}),Y_=ud(function(A,D,U){return A+(U?" ":"")+D.toLowerCase()}),I0=Ud("toLowerCase");function X_(A,D,U){A=li(A),D=zr(D);var ee=D?al(A):0;if(!D||ee>=D)return A;var ve=(D-ee)/2;return Cf(Yo(ve),U)+A+Cf(ji(ve),U)}function $_(A,D,U){A=li(A),D=zr(D);var ee=D?al(A):0;return D&&ee>>0,U?(A=li(A),A&&(typeof D=="string"||D!=null&&!pg(D))&&(D=Or(D),!D&&Lc(A))?mn(ri(A),0,U):A.split(D,U)):[]}var j0=ud(function(A,D,U){return A+(U?" ":"")+Qh(D)});function K_(A,D,U){return A=li(A),U=U==null?0:Mo(zr(U),0,A.length),D=Or(D),A.slice(U,U+D.length)==D}function B0(A,D,U){var ee=xe.templateSettings;U&&No(A,D,U)&&(D=t),A=li(A),D=Hv({},D,ee,Mi);var ve=Hv({},D.imports,ee.imports,Mi),Ae=Bo(ve),Le=Nc(ve,Ae),qe,$e,Ot=0,Tt=D.interpolate||Bt,Pt="__p += '",Qt=ol((D.escape||Bt).source+"|"+Tt.source+"|"+(Tt===Xt?fi:Bt).source+"|"+(D.evaluate||Bt).source+"|$","g"),pr="//# sourceURL="+(Jr.call(D,"sourceURL")?(D.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vs+"]")+` `;A.replace(Qt,function(Gr,Bn,Xn,Kc,Dl,Zc){return Xn||(Xn=Kc),Pt+=A.slice(Ot,Zc).replace(hr,rc),Bn&&(qe=!0,Pt+=`' + __e(`+Bn+`) + '`),Dl&&($e=!0,Pt+=`'; @@ -426,13 +426,13 @@ function print() { __p += __j.call(arguments, '') } `:`; `)+Pt+`return __p -}`;var Tn=F0(function(){return Qr(Ae,pr+"return "+Pt).apply(t,Le)});if(Tn.source=Pt,Py(Tn))throw Tn;return Tn}function rh(A){return li(A).toLowerCase()}function nh(A){return li(A).toUpperCase()}function ih(A,D,U){if(A=li(A),A&&(U||D===t))return wu(A);if(!A||!(D=Or(D)))return A;var ee=ri(A),ve=ri(D),Ae=df(ee,ve),Le=Rh(ee,ve)+1;return mn(ee,Ae,Le).join("")}function _g(A,D,U){if(A=li(A),A&&(U||D===t))return A.slice(0,nc(A)+1);if(!A||!(D=Or(D)))return A;var ee=ri(A),ve=Rh(ee,ri(D))+1;return mn(ee,0,ve).join("")}function wg(A,D,U){if(A=li(A),A&&(U||D===t))return A.replace(Fr,"");if(!A||!(D=Or(D)))return A;var ee=ri(A),ve=df(ee,ri(D));return mn(ee,ve).join("")}function ah(A,D){var U=I,ee=k;if(ca(D)){var ve="separator"in D?D.separator:ve;U="length"in D?zr(D.length):U,ee="omission"in D?Or(D.omission):ee}A=li(A);var Ae=A.length;if(Lc(A)){var Le=ri(A);Ae=Le.length}if(U>=Ae)return A;var qe=U-al(ee);if(qe<1)return ee;var $e=Le?mn(Le,0,qe).join(""):A.slice(0,qe);if(ve===t)return $e+ee;if(Le&&(qe+=$e.length-qe),pg(ve)){if(A.slice(qe).search(ve)){var Ot,Tt=$e;for(ve.global||(ve=ol(ve.source,li(gn.exec(ve))+"g")),ve.lastIndex=0;Ot=ve.exec(Tt);)var Pt=Ot.index;$e=$e.slice(0,Pt===t?qe:Pt)}}else if(A.indexOf(Or(ve),qe)!=qe){var Qt=$e.lastIndexOf(ve);Qt>-1&&($e=$e.slice(0,Qt))}return $e+ee}function qE(A){return A=li(A),A&&Yt.test(A)?A.replace(Rt,jc):A}var Z_=ud(function(A,D,U){return A+(U?" ":"")+D.toUpperCase()}),Qh=Ud("toUpperCase");function Q_(A,D,U){return A=li(A),D=U?t:D,D===t?Nd(A)?Bc(A):Fn(A):A.match(D)||[]}var F0=Pe(function(A,D){try{return pt(A,t,D)}catch(U){return Py(U)?U:new Pr(U)}}),qy=Sl(function(A,D){return ir(D,function(U){U=Ps(U),Ro(A,U,Ty(A[U],A))}),A});function J_(A){var D=A==null?0:A.length,U=br();return A=D?xi(A,function(ee){if(typeof ee[1]!="function")throw new Ei(o);return[U(ee[0]),ee[1]]}):[],Pe(function(ee){for(var ve=-1;++veW)return[];var U=X,ee=Sn(A,X);D=br(D),A-=X;for(var ve=Yf(ee,D);++U0||D<0)?new Yr(U):(A<0?U=U.takeRight(-A):A&&(U=U.drop(A)),D!==t&&(D=zr(D),U=D<0?U.dropRight(-D):U.take(D-A)),U)},Yr.prototype.takeRightWhile=function(A){return this.reverse().takeWhile(A).reverse()},Yr.prototype.toArray=function(){return this.take(X)},Es(Yr.prototype,function(A,D){var U=/^(?:filter|find|map|reject)|While$/.test(D),ee=/^(?:head|last)$/.test(D),ve=xe[ee?"take"+(D=="last"?"Right":""):D],Ae=ee||/^find/.test(D);ve&&(xe.prototype[D]=function(){var Le=this.__wrapped__,qe=ee?[1]:arguments,$e=Le instanceof Yr,Ot=qe[0],Tt=$e||rn(Le),Pt=function(Bn){var Xn=ve.apply(xe,ba([Bn],qe));return ee&&Qt?Xn[0]:Xn};Tt&&U&&typeof Ot=="function"&&Ot.length!=1&&($e=Tt=!1);var Qt=this.__chain__,pr=!!this.__actions__.length,qr=Ae&&!Qt,Tn=$e&&!pr;if(!Ae&&Tt){Le=Tn?Le:new Yr(this);var Gr=A.apply(Le,qe);return Gr.__actions__.push({func:$h,args:[Pt],thisArg:t}),new ar(Gr,Qt)}return qr&&Tn?A.apply(this,qe):(Gr=this.thru(Pt),qr?ee?Gr.value()[0]:Gr.value():Gr)})}),ir(["pop","push","shift","sort","splice","unshift"],function(A){var D=nn[A],U=/^(?:push|sort|unshift)$/.test(A)?"tap":"thru",ee=/^(?:pop|shift)$/.test(A);xe.prototype[A]=function(){var ve=arguments;if(ee&&!this.__chain__){var Ae=this.value();return D.apply(rn(Ae)?Ae:[],ve)}return this[U](function(Le){return D.apply(rn(Le)?Le:[],ve)})}}),Es(Yr.prototype,function(A,D){var U=xe[D];if(U){var ee=U.name+"";Jr.call(Rn,ee)||(Rn[ee]=[]),Rn[ee].push({name:D,func:U})}}),Rn[zd(t,b).name]=[{name:"wrapper",func:t}],Yr.prototype.clone=Cu,Yr.prototype.reverse=ws,Yr.prototype.value=Au,xe.prototype.at=xy,xe.prototype.chain=Kd,xe.prototype.commit=yo,xe.prototype.next=Zd,xe.prototype.plant=hd,xe.prototype.reverse=u0,xe.prototype.toJSON=xe.prototype.valueOf=xe.prototype.value=l0,xe.prototype.first=xe.prototype.head,Yi&&(xe.prototype[Yi]=zv),xe}),ic=Ws();aa?((aa.exports=ic)._=ic,Jl._=ic):wi._=ic}).call(bie)})(mb,mb.exports)),mb.exports}var UR,j6;function _ie(){if(j6)return UR;j6=1,UR=r;function r(){var n={};n._next=n._prev=n,this._sentinel=n}r.prototype.dequeue=function(){var n=this._sentinel,i=n._prev;if(i!==n)return e(i),i},r.prototype.enqueue=function(n){var i=this._sentinel;n._prev&&n._next&&e(n),n._next=i._next,i._next._prev=n,i._next=n,n._prev=i},r.prototype.toString=function(){for(var n=[],i=this._sentinel,a=i._prev;a!==i;)n.push(JSON.stringify(a,t)),a=a._prev;return"["+n.join(", ")+"]"};function e(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function t(n,i){if(n!=="_next"&&n!=="_prev")return i}return UR}var zR,B6;function wie(){if(B6)return zR;B6=1;var r=Sa(),e=Uf().Graph,t=_ie();zR=i;var n=r.constant(1);function i(l,c){if(l.nodeCount()<=1)return[];var f=s(l,c||n),d=a(f.graph,f.buckets,f.zeroIdx);return r.flatten(r.map(d,function(h){return l.outEdges(h.v,h.w)}),!0)}function a(l,c,f){for(var d=[],h=c[c.length-1],p=c[0],g;l.nodeCount();){for(;g=p.dequeue();)o(l,c,f,g);for(;g=h.dequeue();)o(l,c,f,g);if(l.nodeCount()){for(var y=c.length-2;y>0;--y)if(g=c[y].dequeue(),g){d=d.concat(o(l,c,f,g,!0));break}}}return d}function o(l,c,f,d,h){var p=h?[]:void 0;return r.forEach(l.inEdges(d.v),function(g){var y=l.edge(g),b=l.node(g.v);h&&p.push({v:g.v,w:g.w}),b.out-=y,u(c,f,b)}),r.forEach(l.outEdges(d.v),function(g){var y=l.edge(g),b=g.w,_=l.node(b);_.in-=y,u(c,f,_)}),l.removeNode(d.v),p}function s(l,c){var f=new e,d=0,h=0;r.forEach(l.nodes(),function(y){f.setNode(y,{v:y,in:0,out:0})}),r.forEach(l.edges(),function(y){var b=f.edge(y.v,y.w)||0,_=c(y),m=b+_;f.setEdge(y.v,y.w,m),h=Math.max(h,f.node(y.v).out+=_),d=Math.max(d,f.node(y.w).in+=_)});var p=r.range(h+d+3).map(function(){return new t}),g=d+1;return r.forEach(f.nodes(),function(y){u(p,g,f.node(y))}),{graph:f,buckets:p,zeroIdx:g}}function u(l,c,f){f.out?f.in?l[f.out-f.in+c].enqueue(f):l[l.length-1].enqueue(f):l[0].enqueue(f)}return zR}var qR,F6;function xie(){if(F6)return qR;F6=1;var r=Sa(),e=wie();qR={run:t,undo:i};function t(a){var o=a.graph().acyclicer==="greedy"?e(a,s(a)):n(a);r.forEach(o,function(u){var l=a.edge(u);a.removeEdge(u),l.forwardName=u.name,l.reversed=!0,a.setEdge(u.w,u.v,l,r.uniqueId("rev"))});function s(u){return function(l){return u.edge(l).weight}}}function n(a){var o=[],s={},u={};function l(c){r.has(u,c)||(u[c]=!0,s[c]=!0,r.forEach(a.outEdges(c),function(f){r.has(s,f.w)?o.push(f):l(f.w)}),delete s[c])}return r.forEach(a.nodes(),l),o}function i(a){r.forEach(a.edges(),function(o){var s=a.edge(o);if(s.reversed){a.removeEdge(o);var u=s.forwardName;delete s.reversed,delete s.forwardName,a.setEdge(o.w,o.v,s,u)}})}return qR}var GR,U6;function Rc(){if(U6)return GR;U6=1;var r=Sa(),e=Uf().Graph;GR={addDummyNode:t,simplify:n,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:o,intersectRect:s,buildLayerMatrix:u,normalizeRanks:l,removeEmptyRanks:c,addBorderNode:f,maxRank:d,partition:h,time:p,notime:g};function t(y,b,_,m){var x;do x=r.uniqueId(m);while(y.hasNode(x));return _.dummy=b,y.setNode(x,_),x}function n(y){var b=new e().setGraph(y.graph());return r.forEach(y.nodes(),function(_){b.setNode(_,y.node(_))}),r.forEach(y.edges(),function(_){var m=b.edge(_.v,_.w)||{weight:0,minlen:1},x=y.edge(_);b.setEdge(_.v,_.w,{weight:m.weight+x.weight,minlen:Math.max(m.minlen,x.minlen)})}),b}function i(y){var b=new e({multigraph:y.isMultigraph()}).setGraph(y.graph());return r.forEach(y.nodes(),function(_){y.children(_).length||b.setNode(_,y.node(_))}),r.forEach(y.edges(),function(_){b.setEdge(_,y.edge(_))}),b}function a(y){var b=r.map(y.nodes(),function(_){var m={};return r.forEach(y.outEdges(_),function(x){m[x.w]=(m[x.w]||0)+y.edge(x).weight}),m});return r.zipObject(y.nodes(),b)}function o(y){var b=r.map(y.nodes(),function(_){var m={};return r.forEach(y.inEdges(_),function(x){m[x.v]=(m[x.v]||0)+y.edge(x).weight}),m});return r.zipObject(y.nodes(),b)}function s(y,b){var _=y.x,m=y.y,x=b.x-_,E=b.y-m,O=y.width/2,S=y.height/2;if(!x&&!E)throw new Error("Not possible to find intersection inside of the rectangle");var T,P;return Math.abs(E)*O>Math.abs(x)*S?(E<0&&(S=-S),T=S*x/E,P=S):(x<0&&(O=-O),T=O,P=O*E/x),{x:_+T,y:m+P}}function u(y){var b=r.map(r.range(d(y)+1),function(){return[]});return r.forEach(y.nodes(),function(_){var m=y.node(_),x=m.rank;r.isUndefined(x)||(b[x][m.order]=_)}),b}function l(y){var b=r.min(r.map(y.nodes(),function(_){return y.node(_).rank}));r.forEach(y.nodes(),function(_){var m=y.node(_);r.has(m,"rank")&&(m.rank-=b)})}function c(y){var b=r.min(r.map(y.nodes(),function(E){return y.node(E).rank})),_=[];r.forEach(y.nodes(),function(E){var O=y.node(E).rank-b;_[O]||(_[O]=[]),_[O].push(E)});var m=0,x=y.graph().nodeRankFactor;r.forEach(_,function(E,O){r.isUndefined(E)&&O%x!==0?--m:m&&r.forEach(E,function(S){y.node(S).rank+=m})})}function f(y,b,_,m){var x={width:0,height:0};return arguments.length>=4&&(x.rank=_,x.order=m),t(y,"border",x,b)}function d(y){return r.max(r.map(y.nodes(),function(b){var _=y.node(b).rank;if(!r.isUndefined(_))return _}))}function h(y,b){var _={lhs:[],rhs:[]};return r.forEach(y,function(m){b(m)?_.lhs.push(m):_.rhs.push(m)}),_}function p(y,b){var _=r.now();try{return b()}finally{console.log(y+" time: "+(r.now()-_)+"ms")}}function g(y,b){return b()}return GR}var VR,z6;function Eie(){if(z6)return VR;z6=1;var r=Sa(),e=Rc();VR={run:t,undo:i};function t(a){a.graph().dummyChains=[],r.forEach(a.edges(),function(o){n(a,o)})}function n(a,o){var s=o.v,u=a.node(s).rank,l=o.w,c=a.node(l).rank,f=o.name,d=a.edge(o),h=d.labelRank;if(c!==u+1){a.removeEdge(o);var p,g,y;for(y=0,++u;uP.lim&&(I=P,k=!0);var L=r.filter(x.edges(),function(B){return k===_(m,m.node(B.v),I)&&k!==_(m,m.node(B.w),I)});return r.minBy(L,function(B){return t(x,B)})}function g(m,x,E,O){var S=E.v,T=E.w;m.removeEdge(S,T),m.setEdge(O.v,O.w,{}),f(m),u(m,x),y(m,x)}function y(m,x){var E=r.find(m.nodes(),function(S){return!x.node(S).parent}),O=i(m,E);O=O.slice(1),r.forEach(O,function(S){var T=m.node(S).parent,P=x.edge(S,T),I=!1;P||(P=x.edge(T,S),I=!0),x.node(S).rank=x.node(T).rank+(I?P.minlen:-P.minlen)})}function b(m,x,E){return m.hasEdge(x,E)}function _(m,x,E){return E.low<=x.lim&&x.lim<=E.lim}return YR}var XR,H6;function Oie(){if(H6)return XR;H6=1;var r=Gx(),e=r.longestPath,t=yz(),n=Sie();XR=i;function i(u){switch(u.graph().ranker){case"network-simplex":s(u);break;case"tight-tree":o(u);break;case"longest-path":a(u);break;default:s(u)}}var a=e;function o(u){e(u),t(u)}function s(u){n(u)}return XR}var $R,W6;function Tie(){if(W6)return $R;W6=1;var r=Sa();$R=e;function e(i){var a=n(i);r.forEach(i.graph().dummyChains,function(o){for(var s=i.node(o),u=s.edgeObj,l=t(i,a,u.v,u.w),c=l.path,f=l.lca,d=0,h=c[d],p=!0;o!==u.w;){if(s=i.node(o),p){for(;(h=c[d])!==f&&i.node(h).maxRankc||f>a[d].lim));for(h=d,d=s;(d=i.parent(d))!==h;)l.push(d);return{path:u.concat(l.reverse()),lca:h}}function n(i){var a={},o=0;function s(u){var l=o;r.forEach(i.children(u),s),a[u]={low:l,lim:o++}}return r.forEach(i.children(),s),a}return $R}var KR,Y6;function Cie(){if(Y6)return KR;Y6=1;var r=Sa(),e=Rc();KR={run:t,cleanup:o};function t(s){var u=e.addDummyNode(s,"root",{},"_root"),l=i(s),c=r.max(r.values(l))-1,f=2*c+1;s.graph().nestingRoot=u,r.forEach(s.edges(),function(h){s.edge(h).minlen*=f});var d=a(s)+1;r.forEach(s.children(),function(h){n(s,u,f,d,c,l,h)}),s.graph().nodeRankFactor=f}function n(s,u,l,c,f,d,h){var p=s.children(h);if(!p.length){h!==u&&s.setEdge(u,h,{weight:0,minlen:l});return}var g=e.addBorderNode(s,"_bt"),y=e.addBorderNode(s,"_bb"),b=s.node(h);s.setParent(g,h),b.borderTop=g,s.setParent(y,h),b.borderBottom=y,r.forEach(p,function(_){n(s,u,l,c,f,d,_);var m=s.node(_),x=m.borderTop?m.borderTop:_,E=m.borderBottom?m.borderBottom:_,O=m.borderTop?c:2*c,S=x!==E?1:f-d[h]+1;s.setEdge(g,x,{weight:O,minlen:S,nestingEdge:!0}),s.setEdge(E,y,{weight:O,minlen:S,nestingEdge:!0})}),s.parent(h)||s.setEdge(u,g,{weight:0,minlen:f+d[h]})}function i(s){var u={};function l(c,f){var d=s.children(c);d&&d.length&&r.forEach(d,function(h){l(h,f+1)}),u[c]=f}return r.forEach(s.children(),function(c){l(c,1)}),u}function a(s){return r.reduce(s.edges(),function(u,l){return u+s.edge(l).weight},0)}function o(s){var u=s.graph();s.removeNode(u.nestingRoot),delete u.nestingRoot,r.forEach(s.edges(),function(l){var c=s.edge(l);c.nestingEdge&&s.removeEdge(l)})}return KR}var ZR,X6;function Aie(){if(X6)return ZR;X6=1;var r=Sa(),e=Rc();ZR=t;function t(i){function a(o){var s=i.children(o),u=i.node(o);if(s.length&&r.forEach(s,a),r.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var l=u.minRank,c=u.maxRank+1;l0;)h%2&&(p+=c[h+1]),h=h-1>>1,c[h]+=d.weight;f+=d.weight*p})),f}return eP}var tP,Q6;function Die(){if(Q6)return tP;Q6=1;var r=Sa();tP=e;function e(t,n){return r.map(n,function(i){var a=t.inEdges(i);if(a.length){var o=r.reduce(a,function(s,u){var l=t.edge(u),c=t.node(u.v);return{sum:s.sum+l.weight*c.order,weight:s.weight+l.weight}},{sum:0,weight:0});return{v:i,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:i}})}return tP}var rP,J6;function kie(){if(J6)return rP;J6=1;var r=Sa();rP=e;function e(i,a){var o={};r.forEach(i,function(u,l){var c=o[u.v]={indegree:0,in:[],out:[],vs:[u.v],i:l};r.isUndefined(u.barycenter)||(c.barycenter=u.barycenter,c.weight=u.weight)}),r.forEach(a.edges(),function(u){var l=o[u.v],c=o[u.w];!r.isUndefined(l)&&!r.isUndefined(c)&&(c.indegree++,l.out.push(o[u.w]))});var s=r.filter(o,function(u){return!u.indegree});return t(s)}function t(i){var a=[];function o(l){return function(c){c.merged||(r.isUndefined(c.barycenter)||r.isUndefined(l.barycenter)||c.barycenter>=l.barycenter)&&n(l,c)}}function s(l){return function(c){c.in.push(l),--c.indegree===0&&i.push(c)}}for(;i.length;){var u=i.pop();a.push(u),r.forEach(u.in.reverse(),o(u)),r.forEach(u.out,s(u))}return r.map(r.filter(a,function(l){return!l.merged}),function(l){return r.pick(l,["vs","i","barycenter","weight"])})}function n(i,a){var o=0,s=0;i.weight&&(o+=i.barycenter*i.weight,s+=i.weight),a.weight&&(o+=a.barycenter*a.weight,s+=a.weight),i.vs=a.vs.concat(i.vs),i.barycenter=o/s,i.weight=s,i.i=Math.min(a.i,i.i),a.merged=!0}return rP}var nP,e8;function Iie(){if(e8)return nP;e8=1;var r=Sa(),e=Rc();nP=t;function t(a,o){var s=e.partition(a,function(g){return r.has(g,"barycenter")}),u=s.lhs,l=r.sortBy(s.rhs,function(g){return-g.i}),c=[],f=0,d=0,h=0;u.sort(i(!!o)),h=n(c,l,h),r.forEach(u,function(g){h+=g.vs.length,c.push(g.vs),f+=g.barycenter*g.weight,d+=g.weight,h=n(c,l,h)});var p={vs:r.flatten(c,!0)};return d&&(p.barycenter=f/d,p.weight=d),p}function n(a,o,s){for(var u;o.length&&(u=r.last(o)).i<=s;)o.pop(),a.push(u.vs),s++;return s}function i(a){return function(o,s){return o.barycenters.barycenter?1:a?s.i-o.i:o.i-s.i}}return nP}var iP,t8;function Nie(){if(t8)return iP;t8=1;var r=Sa(),e=Die(),t=kie(),n=Iie();iP=i;function i(s,u,l,c){var f=s.children(u),d=s.node(u),h=d?d.borderLeft:void 0,p=d?d.borderRight:void 0,g={};h&&(f=r.filter(f,function(E){return E!==h&&E!==p}));var y=e(s,f);r.forEach(y,function(E){if(s.children(E.v).length){var O=i(s,E.v,l,c);g[E.v]=O,r.has(O,"barycenter")&&o(E,O)}});var b=t(y,l);a(b,g);var _=n(b,c);if(h&&(_.vs=r.flatten([h,_.vs,p],!0),s.predecessors(h).length)){var m=s.node(s.predecessors(h)[0]),x=s.node(s.predecessors(p)[0]);r.has(_,"barycenter")||(_.barycenter=0,_.weight=0),_.barycenter=(_.barycenter*_.weight+m.order+x.order)/(_.weight+2),_.weight+=2}return _}function a(s,u){r.forEach(s,function(l){l.vs=r.flatten(l.vs.map(function(c){return u[c]?u[c].vs:c}),!0)})}function o(s,u){r.isUndefined(s.barycenter)?(s.barycenter=u.barycenter,s.weight=u.weight):(s.barycenter=(s.barycenter*s.weight+u.barycenter*u.weight)/(s.weight+u.weight),s.weight+=u.weight)}return iP}var aP,r8;function Lie(){if(r8)return aP;r8=1;var r=Sa(),e=Uf().Graph;aP=t;function t(i,a,o){var s=n(i),u=new e({compound:!0}).setGraph({root:s}).setDefaultNodeLabel(function(l){return i.node(l)});return r.forEach(i.nodes(),function(l){var c=i.node(l),f=i.parent(l);(c.rank===a||c.minRank<=a&&a<=c.maxRank)&&(u.setNode(l),u.setParent(l,f||s),r.forEach(i[o](l),function(d){var h=d.v===l?d.w:d.v,p=u.edge(h,l),g=r.isUndefined(p)?0:p.weight;u.setEdge(h,l,{weight:i.edge(d).weight+g})}),r.has(c,"minRank")&&u.setNode(l,{borderLeft:c.borderLeft[a],borderRight:c.borderRight[a]}))}),u}function n(i){for(var a;i.hasNode(a=r.uniqueId("_root")););return a}return aP}var oP,n8;function jie(){if(n8)return oP;n8=1;var r=Sa();oP=e;function e(t,n,i){var a={},o;r.forEach(i,function(s){for(var u=t.parent(s),l,c;u;){if(l=t.parent(u),l?(c=a[l],a[l]=u):(c=o,o=u),c&&c!==u){n.setEdge(c,u);return}u=l}})}return oP}var sP,i8;function Bie(){if(i8)return sP;i8=1;var r=Sa(),e=Pie(),t=Mie(),n=Nie(),i=Lie(),a=jie(),o=Uf().Graph,s=Rc();sP=u;function u(d){var h=s.maxRank(d),p=l(d,r.range(1,h+1),"inEdges"),g=l(d,r.range(h-1,-1,-1),"outEdges"),y=e(d);f(d,y);for(var b=Number.POSITIVE_INFINITY,_,m=0,x=0;x<4;++m,++x){c(m%2?p:g,m%4>=2),y=s.buildLayerMatrix(d);var E=t(d,y);E1e3)return m;function x(O,S,T,P,I){var k;r.forEach(r.range(S,T),function(L){k=O[L],b.node(k).dummy&&r.forEach(b.predecessors(k),function(B){var j=b.node(B);j.dummy&&(j.orderI)&&o(m,B,k)})})}function E(O,S){var T=-1,P,I=0;return r.forEach(S,function(k,L){if(b.node(k).dummy==="border"){var B=b.predecessors(k);B.length&&(P=b.node(B[0]).order,x(S,I,L,T,P),I=L,T=P)}x(S,I,S.length,P,O.length)}),S}return r.reduce(_,E),m}function a(b,_){if(b.node(_).dummy)return r.find(b.predecessors(_),function(m){return b.node(m).dummy})}function o(b,_,m){if(_>m){var x=_;_=m,m=x}var E=b[_];E||(b[_]=E={}),E[m]=!0}function s(b,_,m){if(_>m){var x=_;_=m,m=x}return r.has(b[_],m)}function u(b,_,m,x){var E={},O={},S={};return r.forEach(_,function(T){r.forEach(T,function(P,I){E[P]=P,O[P]=P,S[P]=I})}),r.forEach(_,function(T){var P=-1;r.forEach(T,function(I){var k=x(I);if(k.length){k=r.sortBy(k,function(H){return S[H]});for(var L=(k.length-1)/2,B=Math.floor(L),j=Math.ceil(L);B<=j;++B){var z=k[B];O[I]===I&&P0?e[0].width:0,u=a>0?e[0].height:0;for(this.root={x:0,y:0,width:s,height:u},t=0;t=this.root.width+e,o=n&&this.root.width>=this.root.height+t;return a?this.growRight(e,t):o?this.growDown(e,t):i?this.growRight(e,t):n?this.growDown(e,t):null},growRight:function(e,t){this.root={used:!0,x:0,y:0,width:this.root.width+e,height:this.root.height,down:this.root,right:{x:this.root.width,y:0,width:e,height:this.root.height}};var n;return(n=this.findNode(this.root,e,t))?this.splitNode(n,e,t):null},growDown:function(e,t){this.root={used:!0,x:0,y:0,width:this.root.width,height:this.root.height+t,down:{x:0,y:this.root.height,width:this.root.width,height:t},right:this.root};var n;return(n=this.findNode(this.root,e,t))?this.splitNode(n,e,t):null}},vP=r,vP}var pP,d8;function Yie(){if(d8)return pP;d8=1;var r=Wie();return pP=function(e,t){t=t||{};var n=new r,i=t.inPlace||!1,a=e.map(function(l){return i?l:{width:l.width,height:l.height,item:l}});a=a.sort(function(l,c){return c.width*c.height-l.width*l.height}),n.fit(a);var o=a.reduce(function(l,c){return Math.max(l,c.x+c.width)},0),s=a.reduce(function(l,c){return Math.max(l,c.y+c.height)},0),u={width:o,height:s};return i||(u.items=a),u},pP}var Xie=Yie();const $ie=Bp(Xie);var Kie=Uf();const Zie=Bp(Kie),Qie="tight-tree",rv=100,bz="up",kD="down",Jie="left",_z="right",eae={[bz]:"BT",[kD]:"TB",[Jie]:"RL",[_z]:"LR"},tae="bin",rae=25,nae=1/.38,iae=r=>r===bz||r===kD,aae=r=>r===kD||r===_z,gP=r=>{let e=null,t=null,n=null,i=null,a=null,o=null,s=null,u=null;for(const l of r.nodes()){const c=r.node(l);(a===null||c.xs)&&(s=c.x),(u===null||c.y>u)&&(u=c.y);const f=Math.ceil(c.width/2);(e===null||c.x-fn)&&(n=c.x+f),(i===null||c.y+f>i)&&(i=c.y+f)}return{minX:e,minY:t,maxX:n,maxY:i,minCenterX:a,minCenterY:o,maxCenterX:s,maxCenterY:u,width:n-e,height:i-t,xOffset:a-e,yOffset:o-t}},wz=r=>{const e=new mz.graphlib.Graph;return e.setGraph({}),e.setDefaultEdgeLabel(()=>({})),e.graph().nodesep=75*r,e.graph().ranksep=75*r,e},h8=(r,e,t)=>{const{rank:n}=t.node(r);let i=null,a=null;for(const o of e){const{rank:s}=t.node(o);if(!(o===r||s>=n))if(s===n-1){i=s,a=o;break}else(i===null&&a===null||s>i)&&(i=s,a=o)}return a},oae=(r,e)=>{let t=h8(r,e.predecessors(r),e);return t===null&&(t=h8(r,e.successors(r),e)),t},sae=(r,e)=>{const t=[],n=Zie.alg.components(r);if(n.length>1)for(const i of n){const a=wz(e);for(const o of i){const s=r.node(o);a.setNode(o,{width:s.width,height:s.height});const u=r.outEdges(o);if(u)for(const l of u)a.setEdge(l.v,l.w)}t.push(a)}else t.push(r);return t},v8=(r,e,t)=>{r.graph().ranker=Qie,r.graph().rankdir=eae[e];const n=mz.layout(r);for(const i of n.nodes()){const a=oae(i,n);a!==null&&(t[i]=a)}},yP=(r,e)=>Math.sqrt((r.x-e.x)*(r.x-e.x)+(r.y-e.y)*(r.y-e.y)),uae=r=>{const e=[r[0]];let t={p1:r[0],p2:r[1]},n=yP(t.p1,t.p2);for(let i=2;i{const s=wz(o),u={},l={x:0,y:0},c=r.length;for(const m of r){const x=t[m.id];l.x+=(x==null?void 0:x.x)||0,l.y+=(x==null?void 0:x.y)||0;const E=(m.size||rae)*nae*o;s.setNode(m.id,{width:E,height:E})}const f=c?[l.x/c,l.y/c]:[0,0],d={};for(const m of n)if(e[m.from]&&e[m.to]&&m.from!==m.to){const x=m.from1){h.forEach(S=>v8(S,i,u));const m=iae(i),x=aae(i),E=h.filter(S=>S.nodeCount()===1),O=h.filter(S=>S.nodeCount()!==1);if(a===tae){O.sort((q,W)=>W.nodeCount()-q.nodeCount());const P=m?({width:q,height:W,...$})=>({...$,width:q+rv,height:W+rv}):({width:q,height:W,...$})=>({...$,width:W+rv,height:q+rv}),I=O.map(gP).map(P),k=E.map(gP).map(P),L=I.concat(k);$ie(L,{inPlace:!0});const B=Math.floor(rv/2),j=m?"x":"y",z=m?"y":"x";if(!x){const q=m?"y":"x",W=m?"height":"width",$=L.reduce((X,Z)=>X===null?Z[q]:Math.min(Z[q],X[W]||0),null),J=L.reduce((X,Z)=>X===null?Z[q]+Z[W]:Math.max(Z[q]+Z[W],X[W]||0),null);L.forEach(X=>{X[q]=$+(J-(X[q]+X[W]))})}const H=(q,W)=>{for(const $ of q.nodes()){const J=q.node($),X=s.node($);X.x=J.x-W.xOffset+W[j]+B,X.y=J.y-W.yOffset+W[z]+B}};for(let q=0;q$.nodeCount()-W.nodeCount():(W,$)=>W.nodeCount()-$.nodeCount());const S=O.map(gP),T=E.reduce((W,$)=>W+s.node($.nodes()[0]).width,0),P=E.reduce((W,$)=>Math.max(W,s.node($.nodes()[0]).width),0),I=E.length>0?T+(E.length-1)*rv:0,k=S.reduce((W,{width:$})=>Math.max(W,$),0),L=Math.max(k,I),B=S.reduce((W,{height:$})=>Math.max(W,$),0),j=Math.max(B,I);let z=0;const H=()=>{for(let W=0;W3&&(re.points=ue.points.map(({x:ne,y:le})=>({x:ne-J.minX+(m?X:z),y:le-J.minY+(m?z:X)})))}z+=(m?J.height:J.width)+rv}},q=()=>{const W=Math.floor(((m?L:j)-I)/2);z+=Math.floor(P/2);let $=W;for(const J of E){const X=J.nodes()[0],Z=s.node(X);m?(Z.x=$+Math.floor(Z.width/2),Z.y=z):(Z.x=z,Z.y=$+Math.floor(Z.width/2)),$+=rv+Z.width}z=P+rv};x?(H(),q()):(q(),H())}}else v8(s,i,u);l.x=0,l.y=0;const p={};for(const m of s.nodes()){const x=s.node(m);l.x+=x.x||0,l.y+=x.y||0,p[m]={x:x.x,y:x.y}}const g=c?[l.x/c,l.y/c]:[0,0],y=f[0]-g[0],b=f[1]-g[1];for(const m in p)p[m].x+=y,p[m].y+=b;const _={};for(const m of s.edges()){const x=s.edge(m);if(x.points&&x.points.length>3){const E=uae(x.points);for(const O of E)O.x+=y,O.y+=b;_[`${m.v}-${m.w}`]={points:[...E],from:{x:p[m.v].x,y:p[m.v].y},to:{x:p[m.w].x,y:p[m.w].y}},_[`${m.w}-${m.v}`]={points:E.reverse(),from:{x:p[m.w].x,y:p[m.w].y},to:{x:p[m.v].x,y:p[m.v].y}}}}return{positions:p,parents:u,waypoints:_}};class cae{start(){}postMessage(e){const{nodes:t,nodeIds:n,idToPosition:i,rels:a,direction:o,packing:s,pixelRatio:u,forcedDelay:l=0}=e,c=lae(t,n,i,a,o,s,u);l?setTimeout(()=>{this.onmessage({data:c})},l):this.onmessage({data:c})}onmessage(){}close(){}}const fae={port:new cae},dae=()=>new SharedWorker(new URL(""+new URL("HierarchicalLayout.worker-DFULhk2a.js",import.meta.url).href,import.meta.url),{type:"module",name:"HierarchicalLayout"}),hae=Object.freeze(Object.defineProperty({__proto__:null,coseBilkentLayoutFallbackWorker:qte,createCoseBilkentLayoutWorker:Gte,createHierarchicalLayoutWorker:dae,hierarchicalLayoutFallbackWorker:fae},Symbol.toStringTag,{value:"Module"}));/*! For license information please see base.mjs.LICENSE.txt */var vae={5:function(r,e,t){var n=this&&this.__extends||(function(){var m=function(x,E){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&(O[T]=S[T])},m(x,E)};return function(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function O(){this.constructor=x}m(x,E),x.prototype=E===null?Object.create(E):(O.prototype=E.prototype,new O)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var i=t(1018),a=t(8014),o=t(3413),s=t(7315),u=t(1342),l=t(9052),c=t(9155),f=t(9223),d=(function(m){function x(E){var O=m.call(this)||this;return O.isStopped=!1,E?(O.destination=E,a.isSubscription(E)&&E.add(O)):O.destination=e.EMPTY_OBSERVER,O}return n(x,m),x.create=function(E,O,S){return new y(E,O,S)},x.prototype.next=function(E){this.isStopped?_(l.nextNotification(E),this):this._next(E)},x.prototype.error=function(E){this.isStopped?_(l.errorNotification(E),this):(this.isStopped=!0,this._error(E))},x.prototype.complete=function(){this.isStopped?_(l.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},x.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,m.prototype.unsubscribe.call(this),this.destination=null)},x.prototype._next=function(E){this.destination.next(E)},x.prototype._error=function(E){try{this.destination.error(E)}finally{this.unsubscribe()}},x.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},x})(a.Subscription);e.Subscriber=d;var h=Function.prototype.bind;function p(m,x){return h.call(m,x)}var g=(function(){function m(x){this.partialObserver=x}return m.prototype.next=function(x){var E=this.partialObserver;if(E.next)try{E.next(x)}catch(O){b(O)}},m.prototype.error=function(x){var E=this.partialObserver;if(E.error)try{E.error(x)}catch(O){b(O)}else b(x)},m.prototype.complete=function(){var x=this.partialObserver;if(x.complete)try{x.complete()}catch(E){b(E)}},m})(),y=(function(m){function x(E,O,S){var T,P,I=m.call(this)||this;return i.isFunction(E)||!E?T={next:E??void 0,error:O??void 0,complete:S??void 0}:I&&o.config.useDeprecatedNextContext?((P=Object.create(E)).unsubscribe=function(){return I.unsubscribe()},T={next:E.next&&p(E.next,P),error:E.error&&p(E.error,P),complete:E.complete&&p(E.complete,P)}):T=E,I.destination=new g(T),I}return n(x,m),x})(d);function b(m){o.config.useDeprecatedSynchronousErrorHandling?f.captureError(m):s.reportUnhandledError(m)}function _(m,x){var E=o.config.onStoppedNotification;E&&c.timeoutProvider.setTimeout(function(){return E(m,x)})}e.SafeSubscriber=y,e.EMPTY_OBSERVER={closed:!0,next:u.noop,error:function(m){throw m},complete:u.noop}},45:function(r,e){var t=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0});var n=(function(){function a(o){this.position=0,this.length=o}return a.prototype.getUInt8=function(o){throw new Error("Not implemented")},a.prototype.getInt8=function(o){throw new Error("Not implemented")},a.prototype.getFloat64=function(o){throw new Error("Not implemented")},a.prototype.getVarInt=function(o){throw new Error("Not implemented")},a.prototype.putUInt8=function(o,s){throw new Error("Not implemented")},a.prototype.putInt8=function(o,s){throw new Error("Not implemented")},a.prototype.putFloat64=function(o,s){throw new Error("Not implemented")},a.prototype.getInt16=function(o){return this.getInt8(o)<<8|this.getUInt8(o+1)},a.prototype.getUInt16=function(o){return this.getUInt8(o)<<8|this.getUInt8(o+1)},a.prototype.getInt32=function(o){return this.getInt8(o)<<24|this.getUInt8(o+1)<<16|this.getUInt8(o+2)<<8|this.getUInt8(o+3)},a.prototype.getUInt32=function(o){return this.getUInt8(o)<<24|this.getUInt8(o+1)<<16|this.getUInt8(o+2)<<8|this.getUInt8(o+3)},a.prototype.getInt64=function(o){return this.getInt8(o)<<56|this.getUInt8(o+1)<<48|this.getUInt8(o+2)<<40|this.getUInt8(o+3)<<32|this.getUInt8(o+4)<<24|this.getUInt8(o+5)<<16|this.getUInt8(o+6)<<8|this.getUInt8(o+7)},a.prototype.getSlice=function(o,s){return new i(o,s,this)},a.prototype.putInt16=function(o,s){this.putInt8(o,s>>8),this.putUInt8(o+1,255&s)},a.prototype.putUInt16=function(o,s){this.putUInt8(o,s>>8&255),this.putUInt8(o+1,255&s)},a.prototype.putInt32=function(o,s){this.putInt8(o,s>>24),this.putUInt8(o+1,s>>16&255),this.putUInt8(o+2,s>>8&255),this.putUInt8(o+3,255&s)},a.prototype.putUInt32=function(o,s){this.putUInt8(o,s>>24&255),this.putUInt8(o+1,s>>16&255),this.putUInt8(o+2,s>>8&255),this.putUInt8(o+3,255&s)},a.prototype.putInt64=function(o,s){this.putInt8(o,s>>48),this.putUInt8(o+1,s>>42&255),this.putUInt8(o+2,s>>36&255),this.putUInt8(o+3,s>>30&255),this.putUInt8(o+4,s>>24&255),this.putUInt8(o+5,s>>16&255),this.putUInt8(o+6,s>>8&255),this.putUInt8(o+7,255&s)},a.prototype.putVarInt=function(o,s){for(var u=0;s>1;){var l=s%128;s>=128&&(l+=128),s/=128,this.putUInt8(o+u,l),u+=1}return u},a.prototype.putBytes=function(o,s){for(var u=0,l=s.remaining();u0},a.prototype.reset=function(){this.position=0},a.prototype.toString=function(){return this.constructor.name+"( position="+this.position+` ) +}`;var Tn=F0(function(){return Qr(Ae,pr+"return "+Pt).apply(t,Le)});if(Tn.source=Pt,Py(Tn))throw Tn;return Tn}function rh(A){return li(A).toLowerCase()}function nh(A){return li(A).toUpperCase()}function ih(A,D,U){if(A=li(A),A&&(U||D===t))return wu(A);if(!A||!(D=Or(D)))return A;var ee=ri(A),ve=ri(D),Ae=df(ee,ve),Le=Rh(ee,ve)+1;return mn(ee,Ae,Le).join("")}function _g(A,D,U){if(A=li(A),A&&(U||D===t))return A.slice(0,nc(A)+1);if(!A||!(D=Or(D)))return A;var ee=ri(A),ve=Rh(ee,ri(D))+1;return mn(ee,0,ve).join("")}function wg(A,D,U){if(A=li(A),A&&(U||D===t))return A.replace(Fr,"");if(!A||!(D=Or(D)))return A;var ee=ri(A),ve=df(ee,ri(D));return mn(ee,ve).join("")}function ah(A,D){var U=I,ee=k;if(ca(D)){var ve="separator"in D?D.separator:ve;U="length"in D?zr(D.length):U,ee="omission"in D?Or(D.omission):ee}A=li(A);var Ae=A.length;if(Lc(A)){var Le=ri(A);Ae=Le.length}if(U>=Ae)return A;var qe=U-al(ee);if(qe<1)return ee;var $e=Le?mn(Le,0,qe).join(""):A.slice(0,qe);if(ve===t)return $e+ee;if(Le&&(qe+=$e.length-qe),pg(ve)){if(A.slice(qe).search(ve)){var Ot,Tt=$e;for(ve.global||(ve=ol(ve.source,li(gn.exec(ve))+"g")),ve.lastIndex=0;Ot=ve.exec(Tt);)var Pt=Ot.index;$e=$e.slice(0,Pt===t?qe:Pt)}}else if(A.indexOf(Or(ve),qe)!=qe){var Qt=$e.lastIndexOf(ve);Qt>-1&&($e=$e.slice(0,Qt))}return $e+ee}function qE(A){return A=li(A),A&&Yt.test(A)?A.replace(Rt,jc):A}var Z_=ud(function(A,D,U){return A+(U?" ":"")+D.toUpperCase()}),Qh=Ud("toUpperCase");function Q_(A,D,U){return A=li(A),D=U?t:D,D===t?Nd(A)?Bc(A):Fn(A):A.match(D)||[]}var F0=Pe(function(A,D){try{return pt(A,t,D)}catch(U){return Py(U)?U:new Pr(U)}}),qy=Sl(function(A,D){return ir(D,function(U){U=Ps(U),Po(A,U,Ty(A[U],A))}),A});function J_(A){var D=A==null?0:A.length,U=br();return A=D?xi(A,function(ee){if(typeof ee[1]!="function")throw new Ei(o);return[U(ee[0]),ee[1]]}):[],Pe(function(ee){for(var ve=-1;++veW)return[];var U=X,ee=Sn(A,X);D=br(D),A-=X;for(var ve=Yf(ee,D);++U0||D<0)?new Yr(U):(A<0?U=U.takeRight(-A):A&&(U=U.drop(A)),D!==t&&(D=zr(D),U=D<0?U.dropRight(-D):U.take(D-A)),U)},Yr.prototype.takeRightWhile=function(A){return this.reverse().takeWhile(A).reverse()},Yr.prototype.toArray=function(){return this.take(X)},Es(Yr.prototype,function(A,D){var U=/^(?:filter|find|map|reject)|While$/.test(D),ee=/^(?:head|last)$/.test(D),ve=xe[ee?"take"+(D=="last"?"Right":""):D],Ae=ee||/^find/.test(D);ve&&(xe.prototype[D]=function(){var Le=this.__wrapped__,qe=ee?[1]:arguments,$e=Le instanceof Yr,Ot=qe[0],Tt=$e||rn(Le),Pt=function(Bn){var Xn=ve.apply(xe,ba([Bn],qe));return ee&&Qt?Xn[0]:Xn};Tt&&U&&typeof Ot=="function"&&Ot.length!=1&&($e=Tt=!1);var Qt=this.__chain__,pr=!!this.__actions__.length,qr=Ae&&!Qt,Tn=$e&&!pr;if(!Ae&&Tt){Le=Tn?Le:new Yr(this);var Gr=A.apply(Le,qe);return Gr.__actions__.push({func:$h,args:[Pt],thisArg:t}),new ar(Gr,Qt)}return qr&&Tn?A.apply(this,qe):(Gr=this.thru(Pt),qr?ee?Gr.value()[0]:Gr.value():Gr)})}),ir(["pop","push","shift","sort","splice","unshift"],function(A){var D=nn[A],U=/^(?:push|sort|unshift)$/.test(A)?"tap":"thru",ee=/^(?:pop|shift)$/.test(A);xe.prototype[A]=function(){var ve=arguments;if(ee&&!this.__chain__){var Ae=this.value();return D.apply(rn(Ae)?Ae:[],ve)}return this[U](function(Le){return D.apply(rn(Le)?Le:[],ve)})}}),Es(Yr.prototype,function(A,D){var U=xe[D];if(U){var ee=U.name+"";Jr.call(Rn,ee)||(Rn[ee]=[]),Rn[ee].push({name:D,func:U})}}),Rn[zd(t,b).name]=[{name:"wrapper",func:t}],Yr.prototype.clone=Cu,Yr.prototype.reverse=ws,Yr.prototype.value=Au,xe.prototype.at=xy,xe.prototype.chain=Kd,xe.prototype.commit=mo,xe.prototype.next=Zd,xe.prototype.plant=hd,xe.prototype.reverse=u0,xe.prototype.toJSON=xe.prototype.valueOf=xe.prototype.value=l0,xe.prototype.first=xe.prototype.head,Yi&&(xe.prototype[Yi]=zv),xe}),ic=Ws();aa?((aa.exports=ic)._=ic,Jl._=ic):wi._=ic}).call(bie)})(mb,mb.exports)),mb.exports}var UR,B6;function _ie(){if(B6)return UR;B6=1,UR=r;function r(){var n={};n._next=n._prev=n,this._sentinel=n}r.prototype.dequeue=function(){var n=this._sentinel,i=n._prev;if(i!==n)return e(i),i},r.prototype.enqueue=function(n){var i=this._sentinel;n._prev&&n._next&&e(n),n._next=i._next,i._next._prev=n,i._next=n,n._prev=i},r.prototype.toString=function(){for(var n=[],i=this._sentinel,a=i._prev;a!==i;)n.push(JSON.stringify(a,t)),a=a._prev;return"["+n.join(", ")+"]"};function e(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function t(n,i){if(n!=="_next"&&n!=="_prev")return i}return UR}var zR,F6;function wie(){if(F6)return zR;F6=1;var r=Sa(),e=Uf().Graph,t=_ie();zR=i;var n=r.constant(1);function i(l,c){if(l.nodeCount()<=1)return[];var f=s(l,c||n),d=a(f.graph,f.buckets,f.zeroIdx);return r.flatten(r.map(d,function(h){return l.outEdges(h.v,h.w)}),!0)}function a(l,c,f){for(var d=[],h=c[c.length-1],p=c[0],g;l.nodeCount();){for(;g=p.dequeue();)o(l,c,f,g);for(;g=h.dequeue();)o(l,c,f,g);if(l.nodeCount()){for(var y=c.length-2;y>0;--y)if(g=c[y].dequeue(),g){d=d.concat(o(l,c,f,g,!0));break}}}return d}function o(l,c,f,d,h){var p=h?[]:void 0;return r.forEach(l.inEdges(d.v),function(g){var y=l.edge(g),b=l.node(g.v);h&&p.push({v:g.v,w:g.w}),b.out-=y,u(c,f,b)}),r.forEach(l.outEdges(d.v),function(g){var y=l.edge(g),b=g.w,_=l.node(b);_.in-=y,u(c,f,_)}),l.removeNode(d.v),p}function s(l,c){var f=new e,d=0,h=0;r.forEach(l.nodes(),function(y){f.setNode(y,{v:y,in:0,out:0})}),r.forEach(l.edges(),function(y){var b=f.edge(y.v,y.w)||0,_=c(y),m=b+_;f.setEdge(y.v,y.w,m),h=Math.max(h,f.node(y.v).out+=_),d=Math.max(d,f.node(y.w).in+=_)});var p=r.range(h+d+3).map(function(){return new t}),g=d+1;return r.forEach(f.nodes(),function(y){u(p,g,f.node(y))}),{graph:f,buckets:p,zeroIdx:g}}function u(l,c,f){f.out?f.in?l[f.out-f.in+c].enqueue(f):l[l.length-1].enqueue(f):l[0].enqueue(f)}return zR}var qR,U6;function xie(){if(U6)return qR;U6=1;var r=Sa(),e=wie();qR={run:t,undo:i};function t(a){var o=a.graph().acyclicer==="greedy"?e(a,s(a)):n(a);r.forEach(o,function(u){var l=a.edge(u);a.removeEdge(u),l.forwardName=u.name,l.reversed=!0,a.setEdge(u.w,u.v,l,r.uniqueId("rev"))});function s(u){return function(l){return u.edge(l).weight}}}function n(a){var o=[],s={},u={};function l(c){r.has(u,c)||(u[c]=!0,s[c]=!0,r.forEach(a.outEdges(c),function(f){r.has(s,f.w)?o.push(f):l(f.w)}),delete s[c])}return r.forEach(a.nodes(),l),o}function i(a){r.forEach(a.edges(),function(o){var s=a.edge(o);if(s.reversed){a.removeEdge(o);var u=s.forwardName;delete s.reversed,delete s.forwardName,a.setEdge(o.w,o.v,s,u)}})}return qR}var GR,z6;function Rc(){if(z6)return GR;z6=1;var r=Sa(),e=Uf().Graph;GR={addDummyNode:t,simplify:n,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:o,intersectRect:s,buildLayerMatrix:u,normalizeRanks:l,removeEmptyRanks:c,addBorderNode:f,maxRank:d,partition:h,time:p,notime:g};function t(y,b,_,m){var x;do x=r.uniqueId(m);while(y.hasNode(x));return _.dummy=b,y.setNode(x,_),x}function n(y){var b=new e().setGraph(y.graph());return r.forEach(y.nodes(),function(_){b.setNode(_,y.node(_))}),r.forEach(y.edges(),function(_){var m=b.edge(_.v,_.w)||{weight:0,minlen:1},x=y.edge(_);b.setEdge(_.v,_.w,{weight:m.weight+x.weight,minlen:Math.max(m.minlen,x.minlen)})}),b}function i(y){var b=new e({multigraph:y.isMultigraph()}).setGraph(y.graph());return r.forEach(y.nodes(),function(_){y.children(_).length||b.setNode(_,y.node(_))}),r.forEach(y.edges(),function(_){b.setEdge(_,y.edge(_))}),b}function a(y){var b=r.map(y.nodes(),function(_){var m={};return r.forEach(y.outEdges(_),function(x){m[x.w]=(m[x.w]||0)+y.edge(x).weight}),m});return r.zipObject(y.nodes(),b)}function o(y){var b=r.map(y.nodes(),function(_){var m={};return r.forEach(y.inEdges(_),function(x){m[x.v]=(m[x.v]||0)+y.edge(x).weight}),m});return r.zipObject(y.nodes(),b)}function s(y,b){var _=y.x,m=y.y,x=b.x-_,E=b.y-m,O=y.width/2,S=y.height/2;if(!x&&!E)throw new Error("Not possible to find intersection inside of the rectangle");var T,P;return Math.abs(E)*O>Math.abs(x)*S?(E<0&&(S=-S),T=S*x/E,P=S):(x<0&&(O=-O),T=O,P=O*E/x),{x:_+T,y:m+P}}function u(y){var b=r.map(r.range(d(y)+1),function(){return[]});return r.forEach(y.nodes(),function(_){var m=y.node(_),x=m.rank;r.isUndefined(x)||(b[x][m.order]=_)}),b}function l(y){var b=r.min(r.map(y.nodes(),function(_){return y.node(_).rank}));r.forEach(y.nodes(),function(_){var m=y.node(_);r.has(m,"rank")&&(m.rank-=b)})}function c(y){var b=r.min(r.map(y.nodes(),function(E){return y.node(E).rank})),_=[];r.forEach(y.nodes(),function(E){var O=y.node(E).rank-b;_[O]||(_[O]=[]),_[O].push(E)});var m=0,x=y.graph().nodeRankFactor;r.forEach(_,function(E,O){r.isUndefined(E)&&O%x!==0?--m:m&&r.forEach(E,function(S){y.node(S).rank+=m})})}function f(y,b,_,m){var x={width:0,height:0};return arguments.length>=4&&(x.rank=_,x.order=m),t(y,"border",x,b)}function d(y){return r.max(r.map(y.nodes(),function(b){var _=y.node(b).rank;if(!r.isUndefined(_))return _}))}function h(y,b){var _={lhs:[],rhs:[]};return r.forEach(y,function(m){b(m)?_.lhs.push(m):_.rhs.push(m)}),_}function p(y,b){var _=r.now();try{return b()}finally{console.log(y+" time: "+(r.now()-_)+"ms")}}function g(y,b){return b()}return GR}var VR,q6;function Eie(){if(q6)return VR;q6=1;var r=Sa(),e=Rc();VR={run:t,undo:i};function t(a){a.graph().dummyChains=[],r.forEach(a.edges(),function(o){n(a,o)})}function n(a,o){var s=o.v,u=a.node(s).rank,l=o.w,c=a.node(l).rank,f=o.name,d=a.edge(o),h=d.labelRank;if(c!==u+1){a.removeEdge(o);var p,g,y;for(y=0,++u;uP.lim&&(I=P,k=!0);var L=r.filter(x.edges(),function(B){return k===_(m,m.node(B.v),I)&&k!==_(m,m.node(B.w),I)});return r.minBy(L,function(B){return t(x,B)})}function g(m,x,E,O){var S=E.v,T=E.w;m.removeEdge(S,T),m.setEdge(O.v,O.w,{}),f(m),u(m,x),y(m,x)}function y(m,x){var E=r.find(m.nodes(),function(S){return!x.node(S).parent}),O=i(m,E);O=O.slice(1),r.forEach(O,function(S){var T=m.node(S).parent,P=x.edge(S,T),I=!1;P||(P=x.edge(T,S),I=!0),x.node(S).rank=x.node(T).rank+(I?P.minlen:-P.minlen)})}function b(m,x,E){return m.hasEdge(x,E)}function _(m,x,E){return E.low<=x.lim&&x.lim<=E.lim}return YR}var XR,W6;function Oie(){if(W6)return XR;W6=1;var r=Gx(),e=r.longestPath,t=yz(),n=Sie();XR=i;function i(u){switch(u.graph().ranker){case"network-simplex":s(u);break;case"tight-tree":o(u);break;case"longest-path":a(u);break;default:s(u)}}var a=e;function o(u){e(u),t(u)}function s(u){n(u)}return XR}var $R,Y6;function Tie(){if(Y6)return $R;Y6=1;var r=Sa();$R=e;function e(i){var a=n(i);r.forEach(i.graph().dummyChains,function(o){for(var s=i.node(o),u=s.edgeObj,l=t(i,a,u.v,u.w),c=l.path,f=l.lca,d=0,h=c[d],p=!0;o!==u.w;){if(s=i.node(o),p){for(;(h=c[d])!==f&&i.node(h).maxRankc||f>a[d].lim));for(h=d,d=s;(d=i.parent(d))!==h;)l.push(d);return{path:u.concat(l.reverse()),lca:h}}function n(i){var a={},o=0;function s(u){var l=o;r.forEach(i.children(u),s),a[u]={low:l,lim:o++}}return r.forEach(i.children(),s),a}return $R}var KR,X6;function Cie(){if(X6)return KR;X6=1;var r=Sa(),e=Rc();KR={run:t,cleanup:o};function t(s){var u=e.addDummyNode(s,"root",{},"_root"),l=i(s),c=r.max(r.values(l))-1,f=2*c+1;s.graph().nestingRoot=u,r.forEach(s.edges(),function(h){s.edge(h).minlen*=f});var d=a(s)+1;r.forEach(s.children(),function(h){n(s,u,f,d,c,l,h)}),s.graph().nodeRankFactor=f}function n(s,u,l,c,f,d,h){var p=s.children(h);if(!p.length){h!==u&&s.setEdge(u,h,{weight:0,minlen:l});return}var g=e.addBorderNode(s,"_bt"),y=e.addBorderNode(s,"_bb"),b=s.node(h);s.setParent(g,h),b.borderTop=g,s.setParent(y,h),b.borderBottom=y,r.forEach(p,function(_){n(s,u,l,c,f,d,_);var m=s.node(_),x=m.borderTop?m.borderTop:_,E=m.borderBottom?m.borderBottom:_,O=m.borderTop?c:2*c,S=x!==E?1:f-d[h]+1;s.setEdge(g,x,{weight:O,minlen:S,nestingEdge:!0}),s.setEdge(E,y,{weight:O,minlen:S,nestingEdge:!0})}),s.parent(h)||s.setEdge(u,g,{weight:0,minlen:f+d[h]})}function i(s){var u={};function l(c,f){var d=s.children(c);d&&d.length&&r.forEach(d,function(h){l(h,f+1)}),u[c]=f}return r.forEach(s.children(),function(c){l(c,1)}),u}function a(s){return r.reduce(s.edges(),function(u,l){return u+s.edge(l).weight},0)}function o(s){var u=s.graph();s.removeNode(u.nestingRoot),delete u.nestingRoot,r.forEach(s.edges(),function(l){var c=s.edge(l);c.nestingEdge&&s.removeEdge(l)})}return KR}var ZR,$6;function Aie(){if($6)return ZR;$6=1;var r=Sa(),e=Rc();ZR=t;function t(i){function a(o){var s=i.children(o),u=i.node(o);if(s.length&&r.forEach(s,a),r.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var l=u.minRank,c=u.maxRank+1;l0;)h%2&&(p+=c[h+1]),h=h-1>>1,c[h]+=d.weight;f+=d.weight*p})),f}return eP}var tP,J6;function Die(){if(J6)return tP;J6=1;var r=Sa();tP=e;function e(t,n){return r.map(n,function(i){var a=t.inEdges(i);if(a.length){var o=r.reduce(a,function(s,u){var l=t.edge(u),c=t.node(u.v);return{sum:s.sum+l.weight*c.order,weight:s.weight+l.weight}},{sum:0,weight:0});return{v:i,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:i}})}return tP}var rP,e8;function kie(){if(e8)return rP;e8=1;var r=Sa();rP=e;function e(i,a){var o={};r.forEach(i,function(u,l){var c=o[u.v]={indegree:0,in:[],out:[],vs:[u.v],i:l};r.isUndefined(u.barycenter)||(c.barycenter=u.barycenter,c.weight=u.weight)}),r.forEach(a.edges(),function(u){var l=o[u.v],c=o[u.w];!r.isUndefined(l)&&!r.isUndefined(c)&&(c.indegree++,l.out.push(o[u.w]))});var s=r.filter(o,function(u){return!u.indegree});return t(s)}function t(i){var a=[];function o(l){return function(c){c.merged||(r.isUndefined(c.barycenter)||r.isUndefined(l.barycenter)||c.barycenter>=l.barycenter)&&n(l,c)}}function s(l){return function(c){c.in.push(l),--c.indegree===0&&i.push(c)}}for(;i.length;){var u=i.pop();a.push(u),r.forEach(u.in.reverse(),o(u)),r.forEach(u.out,s(u))}return r.map(r.filter(a,function(l){return!l.merged}),function(l){return r.pick(l,["vs","i","barycenter","weight"])})}function n(i,a){var o=0,s=0;i.weight&&(o+=i.barycenter*i.weight,s+=i.weight),a.weight&&(o+=a.barycenter*a.weight,s+=a.weight),i.vs=a.vs.concat(i.vs),i.barycenter=o/s,i.weight=s,i.i=Math.min(a.i,i.i),a.merged=!0}return rP}var nP,t8;function Iie(){if(t8)return nP;t8=1;var r=Sa(),e=Rc();nP=t;function t(a,o){var s=e.partition(a,function(g){return r.has(g,"barycenter")}),u=s.lhs,l=r.sortBy(s.rhs,function(g){return-g.i}),c=[],f=0,d=0,h=0;u.sort(i(!!o)),h=n(c,l,h),r.forEach(u,function(g){h+=g.vs.length,c.push(g.vs),f+=g.barycenter*g.weight,d+=g.weight,h=n(c,l,h)});var p={vs:r.flatten(c,!0)};return d&&(p.barycenter=f/d,p.weight=d),p}function n(a,o,s){for(var u;o.length&&(u=r.last(o)).i<=s;)o.pop(),a.push(u.vs),s++;return s}function i(a){return function(o,s){return o.barycenters.barycenter?1:a?s.i-o.i:o.i-s.i}}return nP}var iP,r8;function Nie(){if(r8)return iP;r8=1;var r=Sa(),e=Die(),t=kie(),n=Iie();iP=i;function i(s,u,l,c){var f=s.children(u),d=s.node(u),h=d?d.borderLeft:void 0,p=d?d.borderRight:void 0,g={};h&&(f=r.filter(f,function(E){return E!==h&&E!==p}));var y=e(s,f);r.forEach(y,function(E){if(s.children(E.v).length){var O=i(s,E.v,l,c);g[E.v]=O,r.has(O,"barycenter")&&o(E,O)}});var b=t(y,l);a(b,g);var _=n(b,c);if(h&&(_.vs=r.flatten([h,_.vs,p],!0),s.predecessors(h).length)){var m=s.node(s.predecessors(h)[0]),x=s.node(s.predecessors(p)[0]);r.has(_,"barycenter")||(_.barycenter=0,_.weight=0),_.barycenter=(_.barycenter*_.weight+m.order+x.order)/(_.weight+2),_.weight+=2}return _}function a(s,u){r.forEach(s,function(l){l.vs=r.flatten(l.vs.map(function(c){return u[c]?u[c].vs:c}),!0)})}function o(s,u){r.isUndefined(s.barycenter)?(s.barycenter=u.barycenter,s.weight=u.weight):(s.barycenter=(s.barycenter*s.weight+u.barycenter*u.weight)/(s.weight+u.weight),s.weight+=u.weight)}return iP}var aP,n8;function Lie(){if(n8)return aP;n8=1;var r=Sa(),e=Uf().Graph;aP=t;function t(i,a,o){var s=n(i),u=new e({compound:!0}).setGraph({root:s}).setDefaultNodeLabel(function(l){return i.node(l)});return r.forEach(i.nodes(),function(l){var c=i.node(l),f=i.parent(l);(c.rank===a||c.minRank<=a&&a<=c.maxRank)&&(u.setNode(l),u.setParent(l,f||s),r.forEach(i[o](l),function(d){var h=d.v===l?d.w:d.v,p=u.edge(h,l),g=r.isUndefined(p)?0:p.weight;u.setEdge(h,l,{weight:i.edge(d).weight+g})}),r.has(c,"minRank")&&u.setNode(l,{borderLeft:c.borderLeft[a],borderRight:c.borderRight[a]}))}),u}function n(i){for(var a;i.hasNode(a=r.uniqueId("_root")););return a}return aP}var oP,i8;function jie(){if(i8)return oP;i8=1;var r=Sa();oP=e;function e(t,n,i){var a={},o;r.forEach(i,function(s){for(var u=t.parent(s),l,c;u;){if(l=t.parent(u),l?(c=a[l],a[l]=u):(c=o,o=u),c&&c!==u){n.setEdge(c,u);return}u=l}})}return oP}var sP,a8;function Bie(){if(a8)return sP;a8=1;var r=Sa(),e=Pie(),t=Mie(),n=Nie(),i=Lie(),a=jie(),o=Uf().Graph,s=Rc();sP=u;function u(d){var h=s.maxRank(d),p=l(d,r.range(1,h+1),"inEdges"),g=l(d,r.range(h-1,-1,-1),"outEdges"),y=e(d);f(d,y);for(var b=Number.POSITIVE_INFINITY,_,m=0,x=0;x<4;++m,++x){c(m%2?p:g,m%4>=2),y=s.buildLayerMatrix(d);var E=t(d,y);E1e3)return m;function x(O,S,T,P,I){var k;r.forEach(r.range(S,T),function(L){k=O[L],b.node(k).dummy&&r.forEach(b.predecessors(k),function(B){var j=b.node(B);j.dummy&&(j.orderI)&&o(m,B,k)})})}function E(O,S){var T=-1,P,I=0;return r.forEach(S,function(k,L){if(b.node(k).dummy==="border"){var B=b.predecessors(k);B.length&&(P=b.node(B[0]).order,x(S,I,L,T,P),I=L,T=P)}x(S,I,S.length,P,O.length)}),S}return r.reduce(_,E),m}function a(b,_){if(b.node(_).dummy)return r.find(b.predecessors(_),function(m){return b.node(m).dummy})}function o(b,_,m){if(_>m){var x=_;_=m,m=x}var E=b[_];E||(b[_]=E={}),E[m]=!0}function s(b,_,m){if(_>m){var x=_;_=m,m=x}return r.has(b[_],m)}function u(b,_,m,x){var E={},O={},S={};return r.forEach(_,function(T){r.forEach(T,function(P,I){E[P]=P,O[P]=P,S[P]=I})}),r.forEach(_,function(T){var P=-1;r.forEach(T,function(I){var k=x(I);if(k.length){k=r.sortBy(k,function(H){return S[H]});for(var L=(k.length-1)/2,B=Math.floor(L),j=Math.ceil(L);B<=j;++B){var z=k[B];O[I]===I&&P0?e[0].width:0,u=a>0?e[0].height:0;for(this.root={x:0,y:0,width:s,height:u},t=0;t=this.root.width+e,o=n&&this.root.width>=this.root.height+t;return a?this.growRight(e,t):o?this.growDown(e,t):i?this.growRight(e,t):n?this.growDown(e,t):null},growRight:function(e,t){this.root={used:!0,x:0,y:0,width:this.root.width+e,height:this.root.height,down:this.root,right:{x:this.root.width,y:0,width:e,height:this.root.height}};var n;return(n=this.findNode(this.root,e,t))?this.splitNode(n,e,t):null},growDown:function(e,t){this.root={used:!0,x:0,y:0,width:this.root.width,height:this.root.height+t,down:{x:0,y:this.root.height,width:this.root.width,height:t},right:this.root};var n;return(n=this.findNode(this.root,e,t))?this.splitNode(n,e,t):null}},vP=r,vP}var pP,h8;function Yie(){if(h8)return pP;h8=1;var r=Wie();return pP=function(e,t){t=t||{};var n=new r,i=t.inPlace||!1,a=e.map(function(l){return i?l:{width:l.width,height:l.height,item:l}});a=a.sort(function(l,c){return c.width*c.height-l.width*l.height}),n.fit(a);var o=a.reduce(function(l,c){return Math.max(l,c.x+c.width)},0),s=a.reduce(function(l,c){return Math.max(l,c.y+c.height)},0),u={width:o,height:s};return i||(u.items=a),u},pP}var Xie=Yie();const $ie=Bp(Xie);var Kie=Uf();const Zie=Bp(Kie),Qie="tight-tree",rv=100,bz="up",ID="down",Jie="left",_z="right",eae={[bz]:"BT",[ID]:"TB",[Jie]:"RL",[_z]:"LR"},tae="bin",rae=25,nae=1/.38,iae=r=>r===bz||r===ID,aae=r=>r===ID||r===_z,gP=r=>{let e=null,t=null,n=null,i=null,a=null,o=null,s=null,u=null;for(const l of r.nodes()){const c=r.node(l);(a===null||c.xs)&&(s=c.x),(u===null||c.y>u)&&(u=c.y);const f=Math.ceil(c.width/2);(e===null||c.x-fn)&&(n=c.x+f),(i===null||c.y+f>i)&&(i=c.y+f)}return{minX:e,minY:t,maxX:n,maxY:i,minCenterX:a,minCenterY:o,maxCenterX:s,maxCenterY:u,width:n-e,height:i-t,xOffset:a-e,yOffset:o-t}},wz=r=>{const e=new mz.graphlib.Graph;return e.setGraph({}),e.setDefaultEdgeLabel(()=>({})),e.graph().nodesep=75*r,e.graph().ranksep=75*r,e},v8=(r,e,t)=>{const{rank:n}=t.node(r);let i=null,a=null;for(const o of e){const{rank:s}=t.node(o);if(!(o===r||s>=n))if(s===n-1){i=s,a=o;break}else(i===null&&a===null||s>i)&&(i=s,a=o)}return a},oae=(r,e)=>{let t=v8(r,e.predecessors(r),e);return t===null&&(t=v8(r,e.successors(r),e)),t},sae=(r,e)=>{const t=[],n=Zie.alg.components(r);if(n.length>1)for(const i of n){const a=wz(e);for(const o of i){const s=r.node(o);a.setNode(o,{width:s.width,height:s.height});const u=r.outEdges(o);if(u)for(const l of u)a.setEdge(l.v,l.w)}t.push(a)}else t.push(r);return t},p8=(r,e,t)=>{r.graph().ranker=Qie,r.graph().rankdir=eae[e];const n=mz.layout(r);for(const i of n.nodes()){const a=oae(i,n);a!==null&&(t[i]=a)}},yP=(r,e)=>Math.sqrt((r.x-e.x)*(r.x-e.x)+(r.y-e.y)*(r.y-e.y)),uae=r=>{const e=[r[0]];let t={p1:r[0],p2:r[1]},n=yP(t.p1,t.p2);for(let i=2;i{const s=wz(o),u={},l={x:0,y:0},c=r.length;for(const m of r){const x=t[m.id];l.x+=(x==null?void 0:x.x)||0,l.y+=(x==null?void 0:x.y)||0;const E=(m.size||rae)*nae*o;s.setNode(m.id,{width:E,height:E})}const f=c?[l.x/c,l.y/c]:[0,0],d={};for(const m of n)if(e[m.from]&&e[m.to]&&m.from!==m.to){const x=m.from1){h.forEach(S=>p8(S,i,u));const m=iae(i),x=aae(i),E=h.filter(S=>S.nodeCount()===1),O=h.filter(S=>S.nodeCount()!==1);if(a===tae){O.sort((q,W)=>W.nodeCount()-q.nodeCount());const P=m?({width:q,height:W,...$})=>({...$,width:q+rv,height:W+rv}):({width:q,height:W,...$})=>({...$,width:W+rv,height:q+rv}),I=O.map(gP).map(P),k=E.map(gP).map(P),L=I.concat(k);$ie(L,{inPlace:!0});const B=Math.floor(rv/2),j=m?"x":"y",z=m?"y":"x";if(!x){const q=m?"y":"x",W=m?"height":"width",$=L.reduce((X,Z)=>X===null?Z[q]:Math.min(Z[q],X[W]||0),null),J=L.reduce((X,Z)=>X===null?Z[q]+Z[W]:Math.max(Z[q]+Z[W],X[W]||0),null);L.forEach(X=>{X[q]=$+(J-(X[q]+X[W]))})}const H=(q,W)=>{for(const $ of q.nodes()){const J=q.node($),X=s.node($);X.x=J.x-W.xOffset+W[j]+B,X.y=J.y-W.yOffset+W[z]+B}};for(let q=0;q$.nodeCount()-W.nodeCount():(W,$)=>W.nodeCount()-$.nodeCount());const S=O.map(gP),T=E.reduce((W,$)=>W+s.node($.nodes()[0]).width,0),P=E.reduce((W,$)=>Math.max(W,s.node($.nodes()[0]).width),0),I=E.length>0?T+(E.length-1)*rv:0,k=S.reduce((W,{width:$})=>Math.max(W,$),0),L=Math.max(k,I),B=S.reduce((W,{height:$})=>Math.max(W,$),0),j=Math.max(B,I);let z=0;const H=()=>{for(let W=0;W3&&(re.points=ue.points.map(({x:ne,y:le})=>({x:ne-J.minX+(m?X:z),y:le-J.minY+(m?z:X)})))}z+=(m?J.height:J.width)+rv}},q=()=>{const W=Math.floor(((m?L:j)-I)/2);z+=Math.floor(P/2);let $=W;for(const J of E){const X=J.nodes()[0],Z=s.node(X);m?(Z.x=$+Math.floor(Z.width/2),Z.y=z):(Z.x=z,Z.y=$+Math.floor(Z.width/2)),$+=rv+Z.width}z=P+rv};x?(H(),q()):(q(),H())}}else p8(s,i,u);l.x=0,l.y=0;const p={};for(const m of s.nodes()){const x=s.node(m);l.x+=x.x||0,l.y+=x.y||0,p[m]={x:x.x,y:x.y}}const g=c?[l.x/c,l.y/c]:[0,0],y=f[0]-g[0],b=f[1]-g[1];for(const m in p)p[m].x+=y,p[m].y+=b;const _={};for(const m of s.edges()){const x=s.edge(m);if(x.points&&x.points.length>3){const E=uae(x.points);for(const O of E)O.x+=y,O.y+=b;_[`${m.v}-${m.w}`]={points:[...E],from:{x:p[m.v].x,y:p[m.v].y},to:{x:p[m.w].x,y:p[m.w].y}},_[`${m.w}-${m.v}`]={points:E.reverse(),from:{x:p[m.w].x,y:p[m.w].y},to:{x:p[m.v].x,y:p[m.v].y}}}}return{positions:p,parents:u,waypoints:_}};class cae{start(){}postMessage(e){const{nodes:t,nodeIds:n,idToPosition:i,rels:a,direction:o,packing:s,pixelRatio:u,forcedDelay:l=0}=e,c=lae(t,n,i,a,o,s,u);l?setTimeout(()=>{this.onmessage({data:c})},l):this.onmessage({data:c})}onmessage(){}close(){}}const fae={port:new cae},dae=()=>new SharedWorker(new URL(""+new URL("HierarchicalLayout.worker-DFULhk2a.js",import.meta.url).href,import.meta.url),{type:"module",name:"HierarchicalLayout"}),hae=Object.freeze(Object.defineProperty({__proto__:null,coseBilkentLayoutFallbackWorker:qte,createCoseBilkentLayoutWorker:Gte,createHierarchicalLayoutWorker:dae,hierarchicalLayoutFallbackWorker:fae},Symbol.toStringTag,{value:"Module"}));/*! For license information please see base.mjs.LICENSE.txt */var vae={5:function(r,e,t){var n=this&&this.__extends||(function(){var m=function(x,E){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&(O[T]=S[T])},m(x,E)};return function(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function O(){this.constructor=x}m(x,E),x.prototype=E===null?Object.create(E):(O.prototype=E.prototype,new O)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var i=t(1018),a=t(8014),o=t(3413),s=t(7315),u=t(1342),l=t(9052),c=t(9155),f=t(9223),d=(function(m){function x(E){var O=m.call(this)||this;return O.isStopped=!1,E?(O.destination=E,a.isSubscription(E)&&E.add(O)):O.destination=e.EMPTY_OBSERVER,O}return n(x,m),x.create=function(E,O,S){return new y(E,O,S)},x.prototype.next=function(E){this.isStopped?_(l.nextNotification(E),this):this._next(E)},x.prototype.error=function(E){this.isStopped?_(l.errorNotification(E),this):(this.isStopped=!0,this._error(E))},x.prototype.complete=function(){this.isStopped?_(l.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},x.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,m.prototype.unsubscribe.call(this),this.destination=null)},x.prototype._next=function(E){this.destination.next(E)},x.prototype._error=function(E){try{this.destination.error(E)}finally{this.unsubscribe()}},x.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},x})(a.Subscription);e.Subscriber=d;var h=Function.prototype.bind;function p(m,x){return h.call(m,x)}var g=(function(){function m(x){this.partialObserver=x}return m.prototype.next=function(x){var E=this.partialObserver;if(E.next)try{E.next(x)}catch(O){b(O)}},m.prototype.error=function(x){var E=this.partialObserver;if(E.error)try{E.error(x)}catch(O){b(O)}else b(x)},m.prototype.complete=function(){var x=this.partialObserver;if(x.complete)try{x.complete()}catch(E){b(E)}},m})(),y=(function(m){function x(E,O,S){var T,P,I=m.call(this)||this;return i.isFunction(E)||!E?T={next:E??void 0,error:O??void 0,complete:S??void 0}:I&&o.config.useDeprecatedNextContext?((P=Object.create(E)).unsubscribe=function(){return I.unsubscribe()},T={next:E.next&&p(E.next,P),error:E.error&&p(E.error,P),complete:E.complete&&p(E.complete,P)}):T=E,I.destination=new g(T),I}return n(x,m),x})(d);function b(m){o.config.useDeprecatedSynchronousErrorHandling?f.captureError(m):s.reportUnhandledError(m)}function _(m,x){var E=o.config.onStoppedNotification;E&&c.timeoutProvider.setTimeout(function(){return E(m,x)})}e.SafeSubscriber=y,e.EMPTY_OBSERVER={closed:!0,next:u.noop,error:function(m){throw m},complete:u.noop}},45:function(r,e){var t=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0});var n=(function(){function a(o){this.position=0,this.length=o}return a.prototype.getUInt8=function(o){throw new Error("Not implemented")},a.prototype.getInt8=function(o){throw new Error("Not implemented")},a.prototype.getFloat64=function(o){throw new Error("Not implemented")},a.prototype.getVarInt=function(o){throw new Error("Not implemented")},a.prototype.putUInt8=function(o,s){throw new Error("Not implemented")},a.prototype.putInt8=function(o,s){throw new Error("Not implemented")},a.prototype.putFloat64=function(o,s){throw new Error("Not implemented")},a.prototype.getInt16=function(o){return this.getInt8(o)<<8|this.getUInt8(o+1)},a.prototype.getUInt16=function(o){return this.getUInt8(o)<<8|this.getUInt8(o+1)},a.prototype.getInt32=function(o){return this.getInt8(o)<<24|this.getUInt8(o+1)<<16|this.getUInt8(o+2)<<8|this.getUInt8(o+3)},a.prototype.getUInt32=function(o){return this.getUInt8(o)<<24|this.getUInt8(o+1)<<16|this.getUInt8(o+2)<<8|this.getUInt8(o+3)},a.prototype.getInt64=function(o){return this.getInt8(o)<<56|this.getUInt8(o+1)<<48|this.getUInt8(o+2)<<40|this.getUInt8(o+3)<<32|this.getUInt8(o+4)<<24|this.getUInt8(o+5)<<16|this.getUInt8(o+6)<<8|this.getUInt8(o+7)},a.prototype.getSlice=function(o,s){return new i(o,s,this)},a.prototype.putInt16=function(o,s){this.putInt8(o,s>>8),this.putUInt8(o+1,255&s)},a.prototype.putUInt16=function(o,s){this.putUInt8(o,s>>8&255),this.putUInt8(o+1,255&s)},a.prototype.putInt32=function(o,s){this.putInt8(o,s>>24),this.putUInt8(o+1,s>>16&255),this.putUInt8(o+2,s>>8&255),this.putUInt8(o+3,255&s)},a.prototype.putUInt32=function(o,s){this.putUInt8(o,s>>24&255),this.putUInt8(o+1,s>>16&255),this.putUInt8(o+2,s>>8&255),this.putUInt8(o+3,255&s)},a.prototype.putInt64=function(o,s){this.putInt8(o,s>>48),this.putUInt8(o+1,s>>42&255),this.putUInt8(o+2,s>>36&255),this.putUInt8(o+3,s>>30&255),this.putUInt8(o+4,s>>24&255),this.putUInt8(o+5,s>>16&255),this.putUInt8(o+6,s>>8&255),this.putUInt8(o+7,255&s)},a.prototype.putVarInt=function(o,s){for(var u=0;s>1;){var l=s%128;s>=128&&(l+=128),s/=128,this.putUInt8(o+u,l),u+=1}return u},a.prototype.putBytes=function(o,s){for(var u=0,l=s.remaining();u0},a.prototype.reset=function(){this.position=0},a.prototype.toString=function(){return this.constructor.name+"( position="+this.position+` ) `+this.toHex()},a.prototype.toHex=function(){for(var o="",s=0;s{Object.defineProperty(e,"__esModule",{value:!0}),e.getBrokenObjectReason=e.isBrokenObject=e.createBrokenObject=void 0;var t="__isBrokenObject__",n="__reason__";e.createBrokenObject=function(i,a){a===void 0&&(a={});var o=function(){throw i};return new Proxy(a,{get:function(s,u){return u===t||(u===n?i:void(u!=="toJSON"&&o()))},set:o,apply:o,construct:o,defineProperty:o,deleteProperty:o,getOwnPropertyDescriptor:o,getPrototypeOf:o,has:o,isExtensible:o,ownKeys:o,preventExtensions:o,setPrototypeOf:o})},e.isBrokenObject=function(i){return i!==null&&typeof i=="object"&&i[t]===!0},e.getBrokenObjectReason=function(i){return i[n]}},95:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncSubject=void 0;var i=(function(a){function o(){var s=a!==null&&a.apply(this,arguments)||this;return s._value=null,s._hasValue=!1,s._isComplete=!1,s}return n(o,a),o.prototype._checkFinalizedStatuses=function(s){var u=this,l=u.hasError,c=u._hasValue,f=u._value,d=u.thrownError,h=u.isStopped,p=u._isComplete;l?s.error(d):(h||p)&&(c&&s.next(f),s.complete())},o.prototype.next=function(s){this.isStopped||(this._value=s,this._hasValue=!0)},o.prototype.complete=function(){var s=this,u=s._hasValue,l=s._value;s._isComplete||(this._isComplete=!0,u&&a.prototype.next.call(this,l),a.prototype.complete.call(this))},o})(t(2483).Subject);e.AsyncSubject=i},137:r=>{r.exports=class{constructor(e,t,n,i){let a;if(typeof e=="object"){let o=e;e=o.k_p,t=o.k_i,n=o.k_d,i=o.dt,a=o.i_max}this.k_p=typeof e=="number"?e:1,this.k_i=t||0,this.k_d=n||0,this.dt=i||0,this.i_max=a||0,this.sumError=0,this.lastError=0,this.lastTime=0,this.target=0}setTarget(e){this.target=e}update(e){this.currentValue=e;let t=this.dt;if(!t){let a=Date.now();t=this.lastTime===0?0:(a-this.lastTime)/1e3,this.lastTime=a}typeof t=="number"&&t!==0||(t=1);let n=this.target-this.currentValue;if(this.sumError=this.sumError+n*t,this.i_max>0&&Math.abs(this.sumError)>this.i_max){let a=this.sumError>0?1:-1;this.sumError=a*this.i_max}let i=(n-this.lastError)/t;return this.lastError=n,this.k_p*n+this.k_i*this.sumError+this.k_d*i}reset(){this.sumError=0,this.lastError=0,this.lastTime=0}}},182:function(r,e,t){var n=this&&this.__extends||(function(){var u=function(l,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(f[h]=d[h])},u(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=l}u(l,c),l.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualAction=e.VirtualTimeScheduler=void 0;var i=t(5267),a=t(8014),o=(function(u){function l(c,f){c===void 0&&(c=s),f===void 0&&(f=1/0);var d=u.call(this,c,function(){return d.frame})||this;return d.maxFrames=f,d.frame=0,d.index=-1,d}return n(l,u),l.prototype.flush=function(){for(var c,f,d=this.actions,h=this.maxFrames;(f=d[0])&&f.delay<=h&&(d.shift(),this.frame=f.delay,!(c=f.execute(f.state,f.delay))););if(c){for(;f=d.shift();)f.unsubscribe();throw c}},l.frameTimeFactor=10,l})(t(5648).AsyncScheduler);e.VirtualTimeScheduler=o;var s=(function(u){function l(c,f,d){d===void 0&&(d=c.index+=1);var h=u.call(this,c,f)||this;return h.scheduler=c,h.work=f,h.index=d,h.active=!0,h.index=c.index=d,h}return n(l,u),l.prototype.schedule=function(c,f){if(f===void 0&&(f=0),Number.isFinite(f)){if(!this.id)return u.prototype.schedule.call(this,c,f);this.active=!1;var d=new l(this.scheduler,this.work);return this.add(d),d.schedule(c,f)}return a.Subscription.EMPTY},l.prototype.requestAsyncId=function(c,f,d){d===void 0&&(d=0),this.delay=c.frame+d;var h=c.actions;return h.push(this),h.sort(l.sortActions),1},l.prototype.recycleAsyncId=function(c,f,d){},l.prototype._execute=function(c,f){if(this.active===!0)return u.prototype._execute.call(this,c,f)},l.sortActions=function(c,f){return c.delay===f.delay?c.index===f.index?0:c.index>f.index?1:-1:c.delay>f.delay?1:-1},l})(i.AsyncAction);e.VirtualAction=s},187:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.zipAll=void 0;var n=t(7286),i=t(3638);e.zipAll=function(a){return i.joinAllInternals(n.zip,a)}},206:function(r,e,t){var n=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingTable=e.Rediscovery=void 0;var i=n(t(4151));e.Rediscovery=i.default;var a=n(t(9018));e.RoutingTable=a.default,e.default=i.default},245:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.not=void 0,e.not=function(t,n){return function(i,a){return!t.call(n,i,a)}}},269:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.startWith=void 0;var n=t(3865),i=t(1107),a=t(7843);e.startWith=function(){for(var o=[],s=0;s{Object.defineProperty(e,"__esModule",{value:!0}),e.TELEMETRY_APIS=e.BOLT_PROTOCOL_V5_8=e.BOLT_PROTOCOL_V5_7=e.BOLT_PROTOCOL_V5_6=e.BOLT_PROTOCOL_V5_5=e.BOLT_PROTOCOL_V5_4=e.BOLT_PROTOCOL_V5_3=e.BOLT_PROTOCOL_V5_2=e.BOLT_PROTOCOL_V5_1=e.BOLT_PROTOCOL_V5_0=e.BOLT_PROTOCOL_V4_4=e.BOLT_PROTOCOL_V4_3=e.BOLT_PROTOCOL_V4_2=e.BOLT_PROTOCOL_V4_1=e.BOLT_PROTOCOL_V4_0=e.BOLT_PROTOCOL_V3=e.BOLT_PROTOCOL_V2=e.BOLT_PROTOCOL_V1=e.DEFAULT_POOL_MAX_SIZE=e.DEFAULT_POOL_ACQUISITION_TIMEOUT=e.DEFAULT_CONNECTION_TIMEOUT_MILLIS=e.ACCESS_MODE_WRITE=e.ACCESS_MODE_READ=e.FETCH_ALL=void 0,e.FETCH_ALL=-1,e.DEFAULT_POOL_ACQUISITION_TIMEOUT=6e4,e.DEFAULT_POOL_MAX_SIZE=100,e.DEFAULT_CONNECTION_TIMEOUT_MILLIS=3e4,e.ACCESS_MODE_READ="READ",e.ACCESS_MODE_WRITE="WRITE",e.BOLT_PROTOCOL_V1=1,e.BOLT_PROTOCOL_V2=2,e.BOLT_PROTOCOL_V3=3,e.BOLT_PROTOCOL_V4_0=4,e.BOLT_PROTOCOL_V4_1=4.1,e.BOLT_PROTOCOL_V4_2=4.2,e.BOLT_PROTOCOL_V4_3=4.3,e.BOLT_PROTOCOL_V4_4=4.4,e.BOLT_PROTOCOL_V5_0=5,e.BOLT_PROTOCOL_V5_1=5.1,e.BOLT_PROTOCOL_V5_2=5.2,e.BOLT_PROTOCOL_V5_3=5.3,e.BOLT_PROTOCOL_V5_4=5.4,e.BOLT_PROTOCOL_V5_5=5.5,e.BOLT_PROTOCOL_V5_6=5.6,e.BOLT_PROTOCOL_V5_7=5.7,e.BOLT_PROTOCOL_V5_8=5.8,e.TELEMETRY_APIS={MANAGED_TRANSACTION:0,UNMANAGED_TRANSACTION:1,AUTO_COMMIT_TRANSACTION:2,EXECUTE_QUERY:3}},347:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromEventPattern=void 0;var n=t(4662),i=t(1018),a=t(1251);e.fromEventPattern=function o(s,u,l){return l?o(s,u).pipe(a.mapOneOrManyArgs(l)):new n.Observable(function(c){var f=function(){for(var h=[],p=0;p0)&&!(d=p.next()).done;)g.push(d.value)}catch(y){h={error:y}}finally{try{d&&!d.done&&(f=p.return)&&f.call(p)}finally{if(h)throw h.error}}return g},i=this&&this.__spreadArray||function(l,c){for(var f=0,d=c.length,h=l.length;f0;)this._ensure(1),this._buffer.remaining()>h.remaining()?this._buffer.writeBytes(h):this._buffer.writeBytes(h.readSlice(this._buffer.remaining()));return this},f.prototype.flush=function(){if(this._buffer.position>0){this._closeChunkIfOpen();var d=this._buffer;this._buffer=null,this._ch.write(d.getSlice(0,d.position)),this._buffer=(0,o.alloc)(this._bufferSize),this._chunkOpen=!1}return this},f.prototype.messageBoundary=function(){this._closeChunkIfOpen(),this._buffer.remaining()<2&&this.flush(),this._buffer.writeInt16(0)},f.prototype._ensure=function(d){var h=this._chunkOpen?d:d+2;this._buffer.remaining()=2?this._onHeader(f.readUInt16()):(this._partialChunkHeader=f.readUInt8()<<8,this.IN_HEADER)},c.prototype.IN_HEADER=function(f){return this._onHeader(65535&(this._partialChunkHeader|f.readUInt8()))},c.prototype.IN_CHUNK=function(f){return this._chunkSize<=f.remaining()?(this._currentMessage.push(f.readSlice(this._chunkSize)),this.AWAITING_CHUNK):(this._chunkSize-=f.remaining(),this._currentMessage.push(f.readSlice(f.remaining())),this.IN_CHUNK)},c.prototype.CLOSED=function(f){},c.prototype._onHeader=function(f){if(f===0){var d=void 0;switch(this._currentMessage.length){case 0:return this.AWAITING_CHUNK;case 1:d=this._currentMessage[0];break;default:d=new s.default(this._currentMessage)}return this._currentMessage=[],this.onmessage(d),this.AWAITING_CHUNK}return this._chunkSize=f,this.IN_CHUNK},c.prototype.write=function(f){for(;f.hasRemaining();)this._state=this._state(f)},c})();e.Dechunker=l},378:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultIfEmpty=void 0;var n=t(7843),i=t(3111);e.defaultIfEmpty=function(a){return n.operate(function(o,s){var u=!1;o.subscribe(i.createOperatorSubscriber(s,function(l){u=!0,s.next(l)},function(){u||s.next(a),s.complete()}))})}},397:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assertNotificationFilterIsEmpty=e.assertImpersonatedUserIsEmpty=e.assertTxConfigIsEmpty=e.assertDatabaseIsEmpty=void 0;var n=t(9305);t(9014),e.assertTxConfigIsEmpty=function(i,a,o){if(a===void 0&&(a=function(){}),i&&!i.isEmpty()){var s=(0,n.newError)("Driver is connected to the database that does not support transaction configuration. Please upgrade to neo4j 3.5.0 or later in order to use this functionality");throw a(s.message),o.onError(s),s}},e.assertDatabaseIsEmpty=function(i,a,o){if(a===void 0&&(a=function(){}),i){var s=(0,n.newError)("Driver is connected to the database that does not support multiple databases. Please upgrade to neo4j 4.0.0 or later in order to use this functionality");throw a(s.message),o.onError(s),s}},e.assertImpersonatedUserIsEmpty=function(i,a,o){if(a===void 0&&(a=function(){}),i){var s=(0,n.newError)("Driver is connected to the database that does not support user impersonation. Please upgrade to neo4j 4.4.0 or later in order to use this functionality. "+"Trying to impersonate ".concat(i,"."));throw a(s.message),o.onError(s),s}},e.assertNotificationFilterIsEmpty=function(i,a,o){if(a===void 0&&(a=function(){}),i!==void 0){var s=(0,n.newError)("Driver is connected to a database that does not support user notification filters. Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. "+"Trying to set notifications to ".concat(n.json.stringify(i),"."));throw a(s.message),o.onError(s),s}}},407:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(c){for(var f,d=1,h=arguments.length;d0)&&!(h=g.next()).done;)y.push(h.value)}catch(b){p={error:b}}finally{try{h&&!h.done&&(d=g.return)&&d.call(g)}finally{if(p)throw p.error}}return y};Object.defineProperty(e,"__esModule",{value:!0}),e.Url=e.formatIPv6Address=e.formatIPv4Address=e.defaultPortForScheme=e.parseDatabaseUrl=void 0;var a=t(6587),o=function(c,f,d,h,p){this.scheme=c,this.host=f,this.port=d,this.hostAndPort=h,this.query=p};function s(c,f,d){if((c=(c??"").trim())==="")throw new Error("Illegal empty ".concat(f," in URL query '").concat(d,"'"));return c}function u(c){var f=c.charAt(0)==="[",d=c.charAt(c.length-1)==="]";if(f||d){if(f&&d)return c;throw new Error("Illegal IPv6 address ".concat(c))}return"[".concat(c,"]")}function l(c){return c==="http"?7474:c==="https"?7473:7687}e.Url=o,e.parseDatabaseUrl=function(c){var f;(0,a.assertString)(c,"URL");var d,h=(function(E){return(E=E.trim()).includes("://")?{schemeMissing:!1,url:E}:{schemeMissing:!0,url:"none://".concat(E)}})(c),p=(function(E){function O(P,I){var k=P.indexOf(I);return k>=0?[P.substring(0,k),P[k],P.substring(k+1)]:[P,"",""]}var S,T={};return(S=O(E,":"))[1]===":"&&(T.scheme=decodeURIComponent(S[0]),E=S[2]),(S=O(E,"#"))[1]==="#"&&(T.fragment=decodeURIComponent(S[2]),E=S[0]),(S=O(E,"?"))[1]==="?"&&(T.query=S[2],E=S[0]),E.startsWith("//")?(S=O(E.substr(2),"/"),(T=n(n({},T),(function(P){var I,k,L,B,j={};(k=P,L="@",B=k.lastIndexOf(L),I=B>=0?[k.substring(0,B),k[B],k.substring(B+1)]:["","",k])[1]==="@"&&(j.userInfo=decodeURIComponent(I[0]),P=I[2]);var z=i((function(W,$,J){var X=O(W,$),Z=O(X[2],J);return[Z[0],Z[2]]})(P,"[","]"),2),H=z[0],q=z[1];return H!==""?(j.host=H,I=O(q,":")):(I=O(P,":"),j.host=I[0]),I[1]===":"&&(j.port=I[2]),j})(S[0]))).path=S[1]+S[2]):T.path=E,T})(h.url),g=h.schemeMissing?null:(function(E){return E!=null?((E=E.trim()).charAt(E.length-1)===":"&&(E=E.substring(0,E.length-1)),E):null})(p.scheme),y=(function(E){if(E==null)throw new Error("Unable to extract host from null or undefined URL");return E.trim()})(p.host),b=(function(E){if(E===""||E==null)throw new Error("Illegal host ".concat(E));return E.includes(":")?u(E):E})(y),_=(function(E,O){var S=typeof E=="string"?parseInt(E,10):E;return S==null||isNaN(S)?l(O):S})(p.port,g),m="".concat(b,":").concat(_),x=(function(E,O){var S=E!=null?(function(P){return((P=(P??"").trim())==null?void 0:P.charAt(0))==="?"&&(P=P.substring(1,P.length)),P})(E):null,T={};return S!=null&&S.split("&").forEach(function(P){var I=P.split("=");if(I.length!==2)throw new Error("Invalid parameters: '".concat(I.toString(),"' in URL '").concat(O,"'."));var k=s(I[0],"key",O),L=s(I[1],"value",O);if(T[k]!==void 0)throw new Error("Duplicated query parameters with key '".concat(k,"' in URL '").concat(O,"'"));T[k]=L}),T})((f=p.query)!==null&&f!==void 0?f:typeof(d=p.resourceName)!="string"?null:i(d.split("?"),2)[1],c);return new o(g,y,_,m,x)},e.formatIPv4Address=function(c,f){return"".concat(c,":").concat(f)},e.formatIPv6Address=function(c,f){var d=u(c);return"".concat(d,":").concat(f)},e.defaultPortForScheme=l},481:(r,e,t)=>{r.exports=t(137)},489:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TimeInterval=e.timeInterval=void 0;var n=t(7961),i=t(7843),a=t(3111);e.timeInterval=function(s){return s===void 0&&(s=n.asyncScheduler),i.operate(function(u,l){var c=s.now();u.subscribe(a.createOperatorSubscriber(l,function(f){var d=s.now(),h=d-c;c=d,l.next(new o(f,h))}))})};var o=function(s,u){this.value=s,this.interval=u};e.TimeInterval=o},490:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ignoreElements=void 0;var n=t(7843),i=t(3111),a=t(1342);e.ignoreElements=function(){return n.operate(function(o,s){o.subscribe(i.createOperatorSubscriber(s,a.noop))})}},582:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sequenceEqual=void 0;var n=t(7843),i=t(3111),a=t(9445);e.sequenceEqual=function(o,s){return s===void 0&&(s=function(u,l){return u===l}),n.operate(function(u,l){var c={buffer:[],complete:!1},f={buffer:[],complete:!1},d=function(p){l.next(p),l.complete()},h=function(p,g){var y=i.createOperatorSubscriber(l,function(b){var _=g.buffer,m=g.complete;_.length===0?m?d(!1):p.buffer.push(b):!s(b,_.shift())&&d(!1)},function(){p.complete=!0;var b=g.complete,_=g.buffer;b&&d(_.length===0),y==null||y.unsubscribe()});return y};u.subscribe(h(c,f)),a.innerFrom(o).subscribe(h(f,c))})}},614:function(r,e){var t=this&&this.__awaiter||function(i,a,o,s){return new(o||(o=Promise))(function(u,l){function c(h){try{d(s.next(h))}catch(p){l(p)}}function f(h){try{d(s.throw(h))}catch(p){l(p)}}function d(h){var p;h.done?u(h.value):(p=h.value,p instanceof o?p:new o(function(g){g(p)})).then(c,f)}d((s=s.apply(i,a||[])).next())})},n=this&&this.__generator||function(i,a){var o,s,u,l,c={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(d){return function(h){return(function(p){if(o)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(c=0)),c;)try{if(o=1,s&&(u=2&p[0]?s.return:p[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,p[1])).done)return u;switch(s=0,u&&(p=[2&p[0],u.value]),p[0]){case 0:case 1:u=p;break;case 4:return c.label++,{value:p[1],done:!1};case 5:c.label++,s=p[1],p=[0];continue;case 7:p=c.ops.pop(),c.trys.pop();continue;default:if(!((u=(u=c.trys).length>0&&u[u.length-1])||p[0]!==6&&p[0]!==2)){c=0;continue}if(p[0]===3&&(!u||p[1]>u[0]&&p[1]{Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function n(i){this._offset=i||0}return n.prototype.next=function(i){if(i===0)return-1;var a=this._offset;return this._offset+=1,this._offset===Number.MAX_SAFE_INTEGER&&(this._offset=0),a%i},n})();e.default=t},754:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(f,d,h,p){p===void 0&&(p=h);var g=Object.getOwnPropertyDescriptor(d,h);g&&!("get"in g?!d.__esModule:g.writable||g.configurable)||(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,p,g)}:function(f,d,h,p){p===void 0&&(p=h),f[p]=d[h]}),i=this&&this.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),a=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var h in f)h!=="default"&&Object.prototype.hasOwnProperty.call(f,h)&&n(d,f,h);return i(d,f),d};Object.defineProperty(e,"__esModule",{value:!0}),e.TxConfig=void 0;var o=a(t(6587)),s=t(9691),u=t(3371),l=(function(){function f(d,h){(function(p){p!=null&&o.assertObject(p,"Transaction config")})(d),this.timeout=(function(p,g){if(o.isObject(p)&&p.timeout!=null){o.assertNumberOrInteger(p.timeout,"Transaction timeout"),(function(b){return typeof b.timeout=="number"&&!Number.isInteger(b.timeout)})(p)&&(g==null?void 0:g.isInfoEnabled())===!0&&(g==null||g.info("Transaction timeout expected to be an integer, got: ".concat(p.timeout,". The value will be rounded up.")));var y=(0,u.int)(p.timeout,{ceilFloat:!0});if(y.isNegative())throw(0,s.newError)("Transaction timeout should not be negative");return y}return null})(d,h),this.metadata=(function(p){if(o.isObject(p)&&p.metadata!=null){var g=p.metadata;if(o.assertObject(g,"config.metadata"),Object.keys(g).length!==0)return g}return null})(d)}return f.empty=function(){return c},f.prototype.isEmpty=function(){return Object.values(this).every(function(d){return d==null})},f})();e.TxConfig=l;var c=new l({})},766:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.publish=void 0;var n=t(2483),i=t(9247),a=t(1483);e.publish=function(o){return o?function(s){return a.connect(o)(s)}:function(s){return i.multicast(new n.Subject)(s)}}},783:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.filter=void 0;var n=t(7843),i=t(3111);e.filter=function(a,o){return n.operate(function(s,u){var l=0;s.subscribe(i.createOperatorSubscriber(u,function(c){return a.call(o,c,l++)&&u.next(c)}))})}},827:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AsapScheduler=void 0;var i=(function(a){function o(){return a!==null&&a.apply(this,arguments)||this}return n(o,a),o.prototype.flush=function(s){this._active=!0;var u=this._scheduled;this._scheduled=void 0;var l,c=this.actions;s=s||c.shift();do if(l=s.execute(s.state,s.delay))break;while((s=c[0])&&s.id===u&&c.shift());if(this._active=!1,l){for(;(s=c[0])&&s.id===u&&c.shift();)s.unsubscribe();throw l}},o})(t(5648).AsyncScheduler);e.AsapScheduler=i},844:function(r,e,t){var n=this&&this.__extends||(function(){var h=function(p,g){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(y[_]=b[_])},h(p,g)};return function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function y(){this.constructor=p}h(p,g),p.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)}})(),i=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(t(1711)),o=t(397),s=i(t(7449)),u=i(t(3321)),l=i(t(7021)),c=t(9014),f=t(9305).internal.constants.BOLT_PROTOCOL_V5_0,d=(function(h){function p(){return h!==null&&h.apply(this,arguments)||this}return n(p,h),Object.defineProperty(p.prototype,"version",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"transformer",{get:function(){var g=this;return this._transformer===void 0&&(this._transformer=new u.default(Object.values(s.default).map(function(y){return y(g._config,g._log)}))),this._transformer},enumerable:!1,configurable:!0}),p.prototype.initialize=function(g){var y=this,b=g===void 0?{}:g,_=b.userAgent,m=(b.boltAgent,b.authToken),x=b.notificationFilter,E=b.onError,O=b.onComplete,S=new c.LoginObserver({onError:function(T){return y._onLoginError(T,E)},onCompleted:function(T){return y._onLoginCompleted(T,m,O)}});return(0,o.assertNotificationFilterIsEmpty)(x,this._onProtocolError,S),this.write(l.default.hello(_,m,this._serversideRouting),S,!0),S},p})(a.default);e.default=d},846:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.take=void 0;var n=t(8616),i=t(7843),a=t(3111);e.take=function(o){return o<=0?function(){return n.EMPTY}:i.operate(function(s,u){var l=0;s.subscribe(a.createOperatorSubscriber(u,function(c){++l<=o&&(u.next(c),o<=l&&u.complete())}))})}},854:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleAsyncIterable=void 0;var n=t(4662),i=t(7110);e.scheduleAsyncIterable=function(a,o){if(!a)throw new Error("Iterable cannot be null");return new n.Observable(function(s){i.executeSchedule(s,o,function(){var u=a[Symbol.asyncIterator]();i.executeSchedule(s,o,function(){u.next().then(function(l){l.done?s.complete():s.next(l.value)})},0,!0)})})}},914:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.delay=void 0;var n=t(7961),i=t(8766),a=t(4092);e.delay=function(o,s){s===void 0&&(s=n.asyncScheduler);var u=a.timer(o,s);return i.delayWhen(function(){return u})}},934:function(r,e,t){var n=this&&this.__extends||(function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(_[x]=m[x])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function _(){this.constructor=y}g(y,b),y.prototype=b===null?Object.create(b):(_.prototype=b.prototype,new _)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(g){for(var y,b=1,_=arguments.length;b<_;b++)for(var m in y=arguments[b])Object.prototype.hasOwnProperty.call(y,m)&&(g[m]=y[m]);return g},i.apply(this,arguments)},a=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0});var o=a(t(6345)),s=a(t(3019)),u=a(t(3321)),l=a(t(7021)),c=t(9014),f=t(9305).internal.constants,d=f.BOLT_PROTOCOL_V5_2,h=f.FETCH_ALL,p=(function(g){function y(){return g!==null&&g.apply(this,arguments)||this}return n(y,g),Object.defineProperty(y.prototype,"version",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"transformer",{get:function(){var b=this;return this._transformer===void 0&&(this._transformer=new u.default(Object.values(s.default).map(function(_){return _(b._config,b._log)}))),this._transformer},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"supportsReAuth",{get:function(){return!0},enumerable:!1,configurable:!0}),y.prototype.initialize=function(b){var _=this,m=b===void 0?{}:b,x=m.userAgent,E=(m.boltAgent,m.authToken),O=m.notificationFilter,S=m.onError,T=m.onComplete,P={},I=new c.LoginObserver({onError:function(k){return _._onLoginError(k,S)},onCompleted:function(k){return P.metadata=k,_._onLoginCompleted(k)}});return this.write(l.default.hello5x2(x,O,this._serversideRouting),I,!1),this.logon({authToken:E,onComplete:function(k){return T(i(i({},k),P.metadata))},onError:S,flush:!0})},y.prototype.beginTransaction=function(b){var _=b===void 0?{}:b,m=_.bookmarks,x=_.txConfig,E=_.database,O=_.mode,S=_.impersonatedUser,T=_.notificationFilter,P=_.beforeError,I=_.afterError,k=_.beforeComplete,L=_.afterComplete,B=new c.ResultStreamObserver({server:this._server,beforeError:P,afterError:I,beforeComplete:k,afterComplete:L});return B.prepareToHandleSingleResponse(),this.write(l.default.begin({bookmarks:m,txConfig:x,database:E,mode:O,impersonatedUser:S,notificationFilter:T}),B,!0),B},y.prototype.run=function(b,_,m){var x=m===void 0?{}:m,E=x.bookmarks,O=x.txConfig,S=x.database,T=x.mode,P=x.impersonatedUser,I=x.notificationFilter,k=x.beforeKeys,L=x.afterKeys,B=x.beforeError,j=x.afterError,z=x.beforeComplete,H=x.afterComplete,q=x.flush,W=q===void 0||q,$=x.reactive,J=$!==void 0&&$,X=x.fetchSize,Z=X===void 0?h:X,ue=x.highRecordWatermark,re=ue===void 0?Number.MAX_VALUE:ue,ne=x.lowRecordWatermark,le=ne===void 0?Number.MAX_VALUE:ne,ce=new c.ResultStreamObserver({server:this._server,reactive:J,fetchSize:Z,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:k,afterKeys:L,beforeError:B,afterError:j,beforeComplete:z,afterComplete:H,highRecordWatermark:re,lowRecordWatermark:le}),pe=J;return this.write(l.default.runWithMetadata(b,_,{bookmarks:E,txConfig:O,database:S,mode:T,impersonatedUser:P,notificationFilter:I}),ce,pe&&W),J||this.write(l.default.pull({n:Z}),ce,W),ce},y})(o.default);e.default=p},983:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMap=void 0;var n=t(5471),i=t(9445),a=t(7843),o=t(1983),s=t(1018);e.mergeMap=function u(l,c,f){return f===void 0&&(f=1/0),s.isFunction(c)?u(function(d,h){return n.map(function(p,g){return c(d,p,h,g)})(i.innerFrom(l(d,h)))},f):(typeof c=="number"&&(f=c),a.operate(function(d,h){return o.mergeInternals(d,h,l,f)}))}},1004:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.of=void 0;var n=t(1107),i=t(4917);e.of=function(){for(var a=[],o=0;o{Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=void 0,e.isFunction=function(t){return typeof t=="function"}},1038:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.count=void 0;var n=t(9139);e.count=function(i){return n.reduce(function(a,o,s){return!i||i(o,s)?a+1:a},0)}},1048:(r,e,t)=>{const n=t(7991),i=t(9318),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(Y){return+Y!=Y&&(Y=0),u.alloc(+Y)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function s(Y){if(Y>o)throw new RangeError('The value "'+Y+'" is invalid for option "size"');const Q=new Uint8Array(Y);return Object.setPrototypeOf(Q,u.prototype),Q}function u(Y,Q,ie){if(typeof Y=="number"){if(typeof Q=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(Y)}return l(Y,Q,ie)}function l(Y,Q,ie){if(typeof Y=="string")return(function(Me,Ie){if(typeof Ie=="string"&&Ie!==""||(Ie="utf8"),!u.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie);const Ye=0|g(Me,Ie);let ot=s(Ye);const mt=ot.write(Me,Ie);return mt!==Ye&&(ot=ot.slice(0,mt)),ot})(Y,Q);if(ArrayBuffer.isView(Y))return(function(Me){if(Oe(Me,Uint8Array)){const Ie=new Uint8Array(Me);return h(Ie.buffer,Ie.byteOffset,Ie.byteLength)}return d(Me)})(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(Oe(Y,ArrayBuffer)||Y&&Oe(Y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(Y,SharedArrayBuffer)||Y&&Oe(Y.buffer,SharedArrayBuffer)))return h(Y,Q,ie);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const we=Y.valueOf&&Y.valueOf();if(we!=null&&we!==Y)return u.from(we,Q,ie);const Ee=(function(Me){if(u.isBuffer(Me)){const Ie=0|p(Me.length),Ye=s(Ie);return Ye.length===0||Me.copy(Ye,0,0,Ie),Ye}return Me.length!==void 0?typeof Me.length!="number"||ke(Me.length)?s(0):d(Me):Me.type==="Buffer"&&Array.isArray(Me.data)?d(Me.data):void 0})(Y);if(Ee)return Ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return u.from(Y[Symbol.toPrimitive]("string"),Q,ie);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}function c(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function f(Y){return c(Y),s(Y<0?0:0|p(Y))}function d(Y){const Q=Y.length<0?0:0|p(Y.length),ie=s(Q);for(let we=0;we=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|Y}function g(Y,Q){if(u.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||Oe(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);const ie=Y.length,we=arguments.length>2&&arguments[2]===!0;if(!we&&ie===0)return 0;let Ee=!1;for(;;)switch(Q){case"ascii":case"latin1":case"binary":return ie;case"utf8":case"utf-8":return se(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ie;case"hex":return ie>>>1;case"base64":return de(Y).length;default:if(Ee)return we?-1:se(Y).length;Q=(""+Q).toLowerCase(),Ee=!0}}function y(Y,Q,ie){let we=!1;if((Q===void 0||Q<0)&&(Q=0),Q>this.length||((ie===void 0||ie>this.length)&&(ie=this.length),ie<=0)||(ie>>>=0)<=(Q>>>=0))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return j(this,Q,ie);case"utf8":case"utf-8":return I(this,Q,ie);case"ascii":return L(this,Q,ie);case"latin1":case"binary":return B(this,Q,ie);case"base64":return P(this,Q,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,Q,ie);default:if(we)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),we=!0}}function b(Y,Q,ie){const we=Y[Q];Y[Q]=Y[ie],Y[ie]=we}function _(Y,Q,ie,we,Ee){if(Y.length===0)return-1;if(typeof ie=="string"?(we=ie,ie=0):ie>2147483647?ie=2147483647:ie<-2147483648&&(ie=-2147483648),ke(ie=+ie)&&(ie=Ee?0:Y.length-1),ie<0&&(ie=Y.length+ie),ie>=Y.length){if(Ee)return-1;ie=Y.length-1}else if(ie<0){if(!Ee)return-1;ie=0}if(typeof Q=="string"&&(Q=u.from(Q,we)),u.isBuffer(Q))return Q.length===0?-1:m(Y,Q,ie,we,Ee);if(typeof Q=="number")return Q&=255,typeof Uint8Array.prototype.indexOf=="function"?Ee?Uint8Array.prototype.indexOf.call(Y,Q,ie):Uint8Array.prototype.lastIndexOf.call(Y,Q,ie):m(Y,[Q],ie,we,Ee);throw new TypeError("val must be string, number or Buffer")}function m(Y,Q,ie,we,Ee){let Me,Ie=1,Ye=Y.length,ot=Q.length;if(we!==void 0&&((we=String(we).toLowerCase())==="ucs2"||we==="ucs-2"||we==="utf16le"||we==="utf-16le")){if(Y.length<2||Q.length<2)return-1;Ie=2,Ye/=2,ot/=2,ie/=2}function mt(wt,Mt){return Ie===1?wt[Mt]:wt.readUInt16BE(Mt*Ie)}if(Ee){let wt=-1;for(Me=ie;MeYe&&(ie=Ye-ot),Me=ie;Me>=0;Me--){let wt=!0;for(let Mt=0;MtEe&&(we=Ee):we=Ee;const Me=Q.length;let Ie;for(we>Me/2&&(we=Me/2),Ie=0;Ie>8,ot=Ie%256,mt.push(ot),mt.push(Ye);return mt})(Q,Y.length-ie),Y,ie,we)}function P(Y,Q,ie){return Q===0&&ie===Y.length?n.fromByteArray(Y):n.fromByteArray(Y.slice(Q,ie))}function I(Y,Q,ie){ie=Math.min(Y.length,ie);const we=[];let Ee=Q;for(;Ee239?4:Me>223?3:Me>191?2:1;if(Ee+Ye<=ie){let ot,mt,wt,Mt;switch(Ye){case 1:Me<128&&(Ie=Me);break;case 2:ot=Y[Ee+1],(192&ot)==128&&(Mt=(31&Me)<<6|63&ot,Mt>127&&(Ie=Mt));break;case 3:ot=Y[Ee+1],mt=Y[Ee+2],(192&ot)==128&&(192&mt)==128&&(Mt=(15&Me)<<12|(63&ot)<<6|63&mt,Mt>2047&&(Mt<55296||Mt>57343)&&(Ie=Mt));break;case 4:ot=Y[Ee+1],mt=Y[Ee+2],wt=Y[Ee+3],(192&ot)==128&&(192&mt)==128&&(192&wt)==128&&(Mt=(15&Me)<<18|(63&ot)<<12|(63&mt)<<6|63&wt,Mt>65535&&Mt<1114112&&(Ie=Mt))}}Ie===null?(Ie=65533,Ye=1):Ie>65535&&(Ie-=65536,we.push(Ie>>>10&1023|55296),Ie=56320|1023&Ie),we.push(Ie),Ee+=Ye}return(function(Me){const Ie=Me.length;if(Ie<=k)return String.fromCharCode.apply(String,Me);let Ye="",ot=0;for(;ot"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(Y,Q,ie){return l(Y,Q,ie)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(Y,Q,ie){return(function(we,Ee,Me){return c(we),we<=0?s(we):Ee!==void 0?typeof Me=="string"?s(we).fill(Ee,Me):s(we).fill(Ee):s(we)})(Y,Q,ie)},u.allocUnsafe=function(Y){return f(Y)},u.allocUnsafeSlow=function(Y){return f(Y)},u.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==u.prototype},u.compare=function(Y,Q){if(Oe(Y,Uint8Array)&&(Y=u.from(Y,Y.offset,Y.byteLength)),Oe(Q,Uint8Array)&&(Q=u.from(Q,Q.offset,Q.byteLength)),!u.isBuffer(Y)||!u.isBuffer(Q))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===Q)return 0;let ie=Y.length,we=Q.length;for(let Ee=0,Me=Math.min(ie,we);Eewe.length?(u.isBuffer(Me)||(Me=u.from(Me)),Me.copy(we,Ee)):Uint8Array.prototype.set.call(we,Me,Ee);else{if(!u.isBuffer(Me))throw new TypeError('"list" argument must be an Array of Buffers');Me.copy(we,Ee)}Ee+=Me.length}return we},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const Y=this.length;if(Y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Q=0;QQ&&(Y+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(Y,Q,ie,we,Ee){if(Oe(Y,Uint8Array)&&(Y=u.from(Y,Y.offset,Y.byteLength)),!u.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(Q===void 0&&(Q=0),ie===void 0&&(ie=Y?Y.length:0),we===void 0&&(we=0),Ee===void 0&&(Ee=this.length),Q<0||ie>Y.length||we<0||Ee>this.length)throw new RangeError("out of range index");if(we>=Ee&&Q>=ie)return 0;if(we>=Ee)return-1;if(Q>=ie)return 1;if(this===Y)return 0;let Me=(Ee>>>=0)-(we>>>=0),Ie=(ie>>>=0)-(Q>>>=0);const Ye=Math.min(Me,Ie),ot=this.slice(we,Ee),mt=Y.slice(Q,ie);for(let wt=0;wt>>=0,isFinite(ie)?(ie>>>=0,we===void 0&&(we="utf8")):(we=ie,ie=void 0)}const Ee=this.length-Q;if((ie===void 0||ie>Ee)&&(ie=Ee),Y.length>0&&(ie<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");we||(we="utf8");let Me=!1;for(;;)switch(we){case"hex":return x(this,Y,Q,ie);case"utf8":case"utf-8":return E(this,Y,Q,ie);case"ascii":case"latin1":case"binary":return O(this,Y,Q,ie);case"base64":return S(this,Y,Q,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,Y,Q,ie);default:if(Me)throw new TypeError("Unknown encoding: "+we);we=(""+we).toLowerCase(),Me=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const k=4096;function L(Y,Q,ie){let we="";ie=Math.min(Y.length,ie);for(let Ee=Q;Eewe)&&(ie=we);let Ee="";for(let Me=Q;Meie)throw new RangeError("Trying to access beyond buffer length")}function q(Y,Q,ie,we,Ee,Me){if(!u.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(Q>Ee||QY.length)throw new RangeError("Index out of range")}function W(Y,Q,ie,we,Ee){le(Q,we,Ee,Y,ie,7);let Me=Number(Q&BigInt(4294967295));Y[ie++]=Me,Me>>=8,Y[ie++]=Me,Me>>=8,Y[ie++]=Me,Me>>=8,Y[ie++]=Me;let Ie=Number(Q>>BigInt(32)&BigInt(4294967295));return Y[ie++]=Ie,Ie>>=8,Y[ie++]=Ie,Ie>>=8,Y[ie++]=Ie,Ie>>=8,Y[ie++]=Ie,ie}function $(Y,Q,ie,we,Ee){le(Q,we,Ee,Y,ie,7);let Me=Number(Q&BigInt(4294967295));Y[ie+7]=Me,Me>>=8,Y[ie+6]=Me,Me>>=8,Y[ie+5]=Me,Me>>=8,Y[ie+4]=Me;let Ie=Number(Q>>BigInt(32)&BigInt(4294967295));return Y[ie+3]=Ie,Ie>>=8,Y[ie+2]=Ie,Ie>>=8,Y[ie+1]=Ie,Ie>>=8,Y[ie]=Ie,ie+8}function J(Y,Q,ie,we,Ee,Me){if(ie+we>Y.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("Index out of range")}function X(Y,Q,ie,we,Ee){return Q=+Q,ie>>>=0,Ee||J(Y,0,ie,4),i.write(Y,Q,ie,we,23,4),ie+4}function Z(Y,Q,ie,we,Ee){return Q=+Q,ie>>>=0,Ee||J(Y,0,ie,8),i.write(Y,Q,ie,we,52,8),ie+8}u.prototype.slice=function(Y,Q){const ie=this.length;(Y=~~Y)<0?(Y+=ie)<0&&(Y=0):Y>ie&&(Y=ie),(Q=Q===void 0?ie:~~Q)<0?(Q+=ie)<0&&(Q=0):Q>ie&&(Q=ie),Q>>=0,Q>>>=0,ie||H(Y,Q,this.length);let we=this[Y],Ee=1,Me=0;for(;++Me>>=0,Q>>>=0,ie||H(Y,Q,this.length);let we=this[Y+--Q],Ee=1;for(;Q>0&&(Ee*=256);)we+=this[Y+--Q]*Ee;return we},u.prototype.readUint8=u.prototype.readUInt8=function(Y,Q){return Y>>>=0,Q||H(Y,1,this.length),this[Y]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(Y,Q){return Y>>>=0,Q||H(Y,2,this.length),this[Y]|this[Y+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(Y,Q){return Y>>>=0,Q||H(Y,2,this.length),this[Y]<<8|this[Y+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(Y,Q){return Y>>>=0,Q||H(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+16777216*this[Y+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(Y,Q){return Y>>>=0,Q||H(Y,4,this.length),16777216*this[Y]+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},u.prototype.readBigUInt64LE=Ne(function(Y){ce(Y>>>=0,"offset");const Q=this[Y],ie=this[Y+7];Q!==void 0&&ie!==void 0||pe(Y,this.length-8);const we=Q+256*this[++Y]+65536*this[++Y]+this[++Y]*2**24,Ee=this[++Y]+256*this[++Y]+65536*this[++Y]+ie*2**24;return BigInt(we)+(BigInt(Ee)<>>=0,"offset");const Q=this[Y],ie=this[Y+7];Q!==void 0&&ie!==void 0||pe(Y,this.length-8);const we=Q*2**24+65536*this[++Y]+256*this[++Y]+this[++Y],Ee=this[++Y]*2**24+65536*this[++Y]+256*this[++Y]+ie;return(BigInt(we)<>>=0,Q>>>=0,ie||H(Y,Q,this.length);let we=this[Y],Ee=1,Me=0;for(;++Me=Ee&&(we-=Math.pow(2,8*Q)),we},u.prototype.readIntBE=function(Y,Q,ie){Y>>>=0,Q>>>=0,ie||H(Y,Q,this.length);let we=Q,Ee=1,Me=this[Y+--we];for(;we>0&&(Ee*=256);)Me+=this[Y+--we]*Ee;return Ee*=128,Me>=Ee&&(Me-=Math.pow(2,8*Q)),Me},u.prototype.readInt8=function(Y,Q){return Y>>>=0,Q||H(Y,1,this.length),128&this[Y]?-1*(255-this[Y]+1):this[Y]},u.prototype.readInt16LE=function(Y,Q){Y>>>=0,Q||H(Y,2,this.length);const ie=this[Y]|this[Y+1]<<8;return 32768&ie?4294901760|ie:ie},u.prototype.readInt16BE=function(Y,Q){Y>>>=0,Q||H(Y,2,this.length);const ie=this[Y+1]|this[Y]<<8;return 32768&ie?4294901760|ie:ie},u.prototype.readInt32LE=function(Y,Q){return Y>>>=0,Q||H(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},u.prototype.readInt32BE=function(Y,Q){return Y>>>=0,Q||H(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},u.prototype.readBigInt64LE=Ne(function(Y){ce(Y>>>=0,"offset");const Q=this[Y],ie=this[Y+7];Q!==void 0&&ie!==void 0||pe(Y,this.length-8);const we=this[Y+4]+256*this[Y+5]+65536*this[Y+6]+(ie<<24);return(BigInt(we)<>>=0,"offset");const Q=this[Y],ie=this[Y+7];Q!==void 0&&ie!==void 0||pe(Y,this.length-8);const we=(Q<<24)+65536*this[++Y]+256*this[++Y]+this[++Y];return(BigInt(we)<>>=0,Q||H(Y,4,this.length),i.read(this,Y,!0,23,4)},u.prototype.readFloatBE=function(Y,Q){return Y>>>=0,Q||H(Y,4,this.length),i.read(this,Y,!1,23,4)},u.prototype.readDoubleLE=function(Y,Q){return Y>>>=0,Q||H(Y,8,this.length),i.read(this,Y,!0,52,8)},u.prototype.readDoubleBE=function(Y,Q){return Y>>>=0,Q||H(Y,8,this.length),i.read(this,Y,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(Y,Q,ie,we){Y=+Y,Q>>>=0,ie>>>=0,we||q(this,Y,Q,ie,Math.pow(2,8*ie)-1,0);let Ee=1,Me=0;for(this[Q]=255&Y;++Me>>=0,ie>>>=0,we||q(this,Y,Q,ie,Math.pow(2,8*ie)-1,0);let Ee=ie-1,Me=1;for(this[Q+Ee]=255&Y;--Ee>=0&&(Me*=256);)this[Q+Ee]=Y/Me&255;return Q+ie},u.prototype.writeUint8=u.prototype.writeUInt8=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,1,255,0),this[Q]=255&Y,Q+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,2,65535,0),this[Q]=255&Y,this[Q+1]=Y>>>8,Q+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,2,65535,0),this[Q]=Y>>>8,this[Q+1]=255&Y,Q+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,4,4294967295,0),this[Q+3]=Y>>>24,this[Q+2]=Y>>>16,this[Q+1]=Y>>>8,this[Q]=255&Y,Q+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,4,4294967295,0),this[Q]=Y>>>24,this[Q+1]=Y>>>16,this[Q+2]=Y>>>8,this[Q+3]=255&Y,Q+4},u.prototype.writeBigUInt64LE=Ne(function(Y,Q=0){return W(this,Y,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ne(function(Y,Q=0){return $(this,Y,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(Y,Q,ie,we){if(Y=+Y,Q>>>=0,!we){const Ye=Math.pow(2,8*ie-1);q(this,Y,Q,ie,Ye-1,-Ye)}let Ee=0,Me=1,Ie=0;for(this[Q]=255&Y;++Ee>>=0,!we){const Ye=Math.pow(2,8*ie-1);q(this,Y,Q,ie,Ye-1,-Ye)}let Ee=ie-1,Me=1,Ie=0;for(this[Q+Ee]=255&Y;--Ee>=0&&(Me*=256);)Y<0&&Ie===0&&this[Q+Ee+1]!==0&&(Ie=1),this[Q+Ee]=(Y/Me|0)-Ie&255;return Q+ie},u.prototype.writeInt8=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,1,127,-128),Y<0&&(Y=255+Y+1),this[Q]=255&Y,Q+1},u.prototype.writeInt16LE=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,2,32767,-32768),this[Q]=255&Y,this[Q+1]=Y>>>8,Q+2},u.prototype.writeInt16BE=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,2,32767,-32768),this[Q]=Y>>>8,this[Q+1]=255&Y,Q+2},u.prototype.writeInt32LE=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,4,2147483647,-2147483648),this[Q]=255&Y,this[Q+1]=Y>>>8,this[Q+2]=Y>>>16,this[Q+3]=Y>>>24,Q+4},u.prototype.writeInt32BE=function(Y,Q,ie){return Y=+Y,Q>>>=0,ie||q(this,Y,Q,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[Q]=Y>>>24,this[Q+1]=Y>>>16,this[Q+2]=Y>>>8,this[Q+3]=255&Y,Q+4},u.prototype.writeBigInt64LE=Ne(function(Y,Q=0){return W(this,Y,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ne(function(Y,Q=0){return $(this,Y,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(Y,Q,ie){return X(this,Y,Q,!0,ie)},u.prototype.writeFloatBE=function(Y,Q,ie){return X(this,Y,Q,!1,ie)},u.prototype.writeDoubleLE=function(Y,Q,ie){return Z(this,Y,Q,!0,ie)},u.prototype.writeDoubleBE=function(Y,Q,ie){return Z(this,Y,Q,!1,ie)},u.prototype.copy=function(Y,Q,ie,we){if(!u.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(ie||(ie=0),we||we===0||(we=this.length),Q>=Y.length&&(Q=Y.length),Q||(Q=0),we>0&&we=this.length)throw new RangeError("Index out of range");if(we<0)throw new RangeError("sourceEnd out of bounds");we>this.length&&(we=this.length),Y.length-Q>>=0,ie=ie===void 0?this.length:ie>>>0,Y||(Y=0),typeof Y=="number")for(Ee=Q;Ee=we+4;ie-=3)Q=`_${Y.slice(ie-3,ie)}${Q}`;return`${Y.slice(0,ie)}${Q}`}function le(Y,Q,ie,we,Ee,Me){if(Y>ie||Y= 0${Ie} and < 2${Ie} ** ${8*(Me+1)}${Ie}`:`>= -(2${Ie} ** ${8*(Me+1)-1}${Ie}) and < 2 ** ${8*(Me+1)-1}${Ie}`,new ue.ERR_OUT_OF_RANGE("value",Ye,Y)}(function(Ie,Ye,ot){ce(Ye,"offset"),Ie[Ye]!==void 0&&Ie[Ye+ot]!==void 0||pe(Ye,Ie.length-(ot+1))})(we,Ee,Me)}function ce(Y,Q){if(typeof Y!="number")throw new ue.ERR_INVALID_ARG_TYPE(Q,"number",Y)}function pe(Y,Q,ie){throw Math.floor(Y)!==Y?(ce(Y,ie),new ue.ERR_OUT_OF_RANGE("offset","an integer",Y)):Q<0?new ue.ERR_BUFFER_OUT_OF_BOUNDS:new ue.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Q}`,Y)}re("ERR_BUFFER_OUT_OF_BOUNDS",function(Y){return Y?`${Y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),re("ERR_INVALID_ARG_TYPE",function(Y,Q){return`The "${Y}" argument must be of type number. Received type ${typeof Q}`},TypeError),re("ERR_OUT_OF_RANGE",function(Y,Q,ie){let we=`The value of "${Y}" is out of range.`,Ee=ie;return Number.isInteger(ie)&&Math.abs(ie)>2**32?Ee=ne(String(ie)):typeof ie=="bigint"&&(Ee=String(ie),(ie>BigInt(2)**BigInt(32)||ie<-(BigInt(2)**BigInt(32)))&&(Ee=ne(Ee)),Ee+="n"),we+=` It must be ${Q}. Received ${Ee}`,we},RangeError);const fe=/[^+/0-9A-Za-z-_]/g;function se(Y,Q){let ie;Q=Q||1/0;const we=Y.length;let Ee=null;const Me=[];for(let Ie=0;Ie55295&&ie<57344){if(!Ee){if(ie>56319){(Q-=3)>-1&&Me.push(239,191,189);continue}if(Ie+1===we){(Q-=3)>-1&&Me.push(239,191,189);continue}Ee=ie;continue}if(ie<56320){(Q-=3)>-1&&Me.push(239,191,189),Ee=ie;continue}ie=65536+(Ee-55296<<10|ie-56320)}else Ee&&(Q-=3)>-1&&Me.push(239,191,189);if(Ee=null,ie<128){if((Q-=1)<0)break;Me.push(ie)}else if(ie<2048){if((Q-=2)<0)break;Me.push(ie>>6|192,63&ie|128)}else if(ie<65536){if((Q-=3)<0)break;Me.push(ie>>12|224,ie>>6&63|128,63&ie|128)}else{if(!(ie<1114112))throw new Error("Invalid code point");if((Q-=4)<0)break;Me.push(ie>>18|240,ie>>12&63|128,ie>>6&63|128,63&ie|128)}}return Me}function de(Y){return n.toByteArray((function(Q){if((Q=(Q=Q.split("=")[0]).trim().replace(fe,"")).length<2)return"";for(;Q.length%4!=0;)Q+="=";return Q})(Y))}function ge(Y,Q,ie,we){let Ee;for(Ee=0;Ee=Q.length||Ee>=Y.length);++Ee)Q[Ee+ie]=Y[Ee];return Ee}function Oe(Y,Q){return Y instanceof Q||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===Q.name}function ke(Y){return Y!=Y}const De=(function(){const Y="0123456789abcdef",Q=new Array(256);for(let ie=0;ie<16;++ie){const we=16*ie;for(let Ee=0;Ee<16;++Ee)Q[we+Ee]=Y[ie]+Y[Ee]}return Q})();function Ne(Y){return typeof BigInt>"u"?Ce:Y}function Ce(){throw new Error("BigInt not supported")}},1053:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.rawPolyfilledDiagnosticRecord=void 0,e.rawPolyfilledDiagnosticRecord={OPERATION:"",OPERATION_CODE:"0",CURRENT_SCHEMA:"/"},Object.freeze(e.rawPolyfilledDiagnosticRecord)},1074:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isValidDate=void 0,e.isValidDate=function(t){return t instanceof Date&&!isNaN(t)}},1092:function(r,e,t){var n=this&&this.__extends||(function(){var p=function(g,y){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,_){b.__proto__=_}||function(b,_){for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&(b[m]=_[m])},p(g,y)};return function(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=g}p(g,y),g.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}})(),i=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(t(6377)),o=i(t(6161)),s=i(t(3321)),u=i(t(7021)),l=t(9014),c=t(9305).internal.constants,f=c.BOLT_PROTOCOL_V5_8,d=c.FETCH_ALL,h=(function(p){function g(){return p!==null&&p.apply(this,arguments)||this}return n(g,p),Object.defineProperty(g.prototype,"version",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"transformer",{get:function(){var y=this;return this._transformer===void 0&&(this._transformer=new s.default(Object.values(o.default).map(function(b){return b(y._config,y._log)}))),this._transformer},enumerable:!1,configurable:!0}),g.prototype.run=function(y,b,_){var m=_===void 0?{}:_,x=m.bookmarks,E=m.txConfig,O=m.database,S=m.mode,T=m.impersonatedUser,P=m.notificationFilter,I=m.beforeKeys,k=m.afterKeys,L=m.beforeError,B=m.afterError,j=m.beforeComplete,z=m.afterComplete,H=m.flush,q=H===void 0||H,W=m.reactive,$=W!==void 0&&W,J=m.fetchSize,X=J===void 0?d:J,Z=m.highRecordWatermark,ue=Z===void 0?Number.MAX_VALUE:Z,re=m.lowRecordWatermark,ne=re===void 0?Number.MAX_VALUE:re,le=m.onDb,ce=new l.ResultStreamObserver({server:this._server,reactive:$,fetchSize:X,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:I,afterKeys:k,beforeError:L,afterError:B,beforeComplete:j,afterComplete:z,highRecordWatermark:ue,lowRecordWatermark:ne,enrichMetadata:this._enrichMetadata,onDb:le}),pe=$;return this.write(u.default.runWithMetadata5x5(y,b,{bookmarks:x,txConfig:E,database:O,mode:S,impersonatedUser:T,notificationFilter:P}),ce,pe&&q),$||this.write(u.default.pull({n:X}),ce,q),ce},g})(a.default);e.default=h},1103:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throwError=void 0;var n=t(4662),i=t(1018);e.throwError=function(a,o){var s=i.isFunction(a)?a:function(){return a},u=function(l){return l.error(s())};return new n.Observable(o?function(l){return o.schedule(u,0,l)}:u)}},1107:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.popNumber=e.popScheduler=e.popResultSelector=void 0;var n=t(1018),i=t(8613);function a(o){return o[o.length-1]}e.popResultSelector=function(o){return n.isFunction(a(o))?o.pop():void 0},e.popScheduler=function(o){return i.isScheduler(a(o))?o.pop():void 0},e.popNumber=function(o,s){return typeof a(o)=="number"?o.pop():s}},1116:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isInteropObservable=void 0;var n=t(3327),i=t(1018);e.isInteropObservable=function(a){return i.isFunction(a[n.observable])}},1141:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.windowWhen=void 0;var n=t(2483),i=t(7843),a=t(3111),o=t(9445);e.windowWhen=function(s){return i.operate(function(u,l){var c,f,d=function(p){c.error(p),l.error(p)},h=function(){var p;f==null||f.unsubscribe(),c==null||c.complete(),c=new n.Subject,l.next(c.asObservable());try{p=o.innerFrom(s())}catch(g){return void d(g)}p.subscribe(f=a.createOperatorSubscriber(l,h,h,d))};h(),u.subscribe(a.createOperatorSubscriber(l,function(p){return c.next(p)},function(){c.complete(),l.complete()},d,function(){f==null||f.unsubscribe(),c=null}))})}},1175:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u0&&$[$.length-1])||ne[0]!==6&&ne[0]!==2)){X=0;continue}if(ne[0]===3&&(!$||ne[1]>$[0]&&ne[1]<$[3])){X.label=ne[1];break}if(ne[0]===6&&X.label<$[1]){X.label=$[1],$=ne;break}if($&&X.label<$[2]){X.label=$[2],X.ops.push(ne);break}$[2]&&X.ops.pop(),X.trys.pop();continue}ne=H.call(z,X)}catch(le){ne=[6,le],W=0}finally{q=$=0}if(5&ne[0])throw ne[1];return{value:ne[0]?ne[1]:void 0,done:!0}})([ue,re])}}},a=this&&this.__importDefault||function(z){return z&&z.__esModule?z:{default:z}};Object.defineProperty(e,"__esModule",{value:!0}),e.UnboundRelationship=e.Relationship=e.Node=e.Record=e.ServerInfo=e.GqlStatusObject=e.Notification=e.QueryStatistics=e.ProfiledPlan=e.Plan=e.ResultSummary=e.RxResult=e.RxManagedTransaction=e.RxTransaction=e.RxSession=e.EagerResult=e.Result=e.ManagedTransaction=e.Transaction=e.Session=e.Driver=e.temporal=e.spatial=e.graph=e.error=e.routing=e.session=e.types=e.logging=e.auth=e.isRetriableError=e.Neo4jError=e.integer=e.isUnboundRelationship=e.isRelationship=e.isPathSegment=e.isPath=e.isNode=e.isDateTime=e.isLocalDateTime=e.isDate=e.isTime=e.isLocalTime=e.isDuration=e.isPoint=e.isInt=e.int=e.hasReachableServer=e.driver=e.authTokenManagers=void 0,e.clientCertificateProviders=e.notificationFilterMinimumSeverityLevel=e.notificationFilterDisabledClassification=e.notificationFilterDisabledCategory=e.notificationSeverityLevel=e.notificationClassification=e.notificationCategory=e.resultTransformers=e.bookmarkManager=e.DateTime=e.LocalDateTime=e.Date=e.Time=e.LocalTime=e.Duration=e.Integer=e.Point=e.PathSegment=e.Path=void 0;var o=t(7857);Object.defineProperty(e,"Driver",{enumerable:!0,get:function(){return o.Driver}});var s=a(t(3659)),u=t(9305);Object.defineProperty(e,"authTokenManagers",{enumerable:!0,get:function(){return u.authTokenManagers}}),Object.defineProperty(e,"Neo4jError",{enumerable:!0,get:function(){return u.Neo4jError}}),Object.defineProperty(e,"isRetriableError",{enumerable:!0,get:function(){return u.isRetriableError}}),Object.defineProperty(e,"error",{enumerable:!0,get:function(){return u.error}}),Object.defineProperty(e,"Integer",{enumerable:!0,get:function(){return u.Integer}}),Object.defineProperty(e,"int",{enumerable:!0,get:function(){return u.int}}),Object.defineProperty(e,"isInt",{enumerable:!0,get:function(){return u.isInt}}),Object.defineProperty(e,"isPoint",{enumerable:!0,get:function(){return u.isPoint}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return u.Point}}),Object.defineProperty(e,"Date",{enumerable:!0,get:function(){return u.Date}}),Object.defineProperty(e,"DateTime",{enumerable:!0,get:function(){return u.DateTime}}),Object.defineProperty(e,"Duration",{enumerable:!0,get:function(){return u.Duration}}),Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return u.isDate}}),Object.defineProperty(e,"isDateTime",{enumerable:!0,get:function(){return u.isDateTime}}),Object.defineProperty(e,"isDuration",{enumerable:!0,get:function(){return u.isDuration}}),Object.defineProperty(e,"isLocalDateTime",{enumerable:!0,get:function(){return u.isLocalDateTime}}),Object.defineProperty(e,"isLocalTime",{enumerable:!0,get:function(){return u.isLocalTime}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return u.isNode}}),Object.defineProperty(e,"isPath",{enumerable:!0,get:function(){return u.isPath}}),Object.defineProperty(e,"isPathSegment",{enumerable:!0,get:function(){return u.isPathSegment}}),Object.defineProperty(e,"isRelationship",{enumerable:!0,get:function(){return u.isRelationship}}),Object.defineProperty(e,"isTime",{enumerable:!0,get:function(){return u.isTime}}),Object.defineProperty(e,"isUnboundRelationship",{enumerable:!0,get:function(){return u.isUnboundRelationship}}),Object.defineProperty(e,"LocalDateTime",{enumerable:!0,get:function(){return u.LocalDateTime}}),Object.defineProperty(e,"LocalTime",{enumerable:!0,get:function(){return u.LocalTime}}),Object.defineProperty(e,"Time",{enumerable:!0,get:function(){return u.Time}}),Object.defineProperty(e,"Node",{enumerable:!0,get:function(){return u.Node}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return u.Path}}),Object.defineProperty(e,"PathSegment",{enumerable:!0,get:function(){return u.PathSegment}}),Object.defineProperty(e,"Relationship",{enumerable:!0,get:function(){return u.Relationship}}),Object.defineProperty(e,"UnboundRelationship",{enumerable:!0,get:function(){return u.UnboundRelationship}}),Object.defineProperty(e,"Record",{enumerable:!0,get:function(){return u.Record}}),Object.defineProperty(e,"ResultSummary",{enumerable:!0,get:function(){return u.ResultSummary}}),Object.defineProperty(e,"Plan",{enumerable:!0,get:function(){return u.Plan}}),Object.defineProperty(e,"ProfiledPlan",{enumerable:!0,get:function(){return u.ProfiledPlan}}),Object.defineProperty(e,"QueryStatistics",{enumerable:!0,get:function(){return u.QueryStatistics}}),Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return u.Notification}}),Object.defineProperty(e,"GqlStatusObject",{enumerable:!0,get:function(){return u.GqlStatusObject}}),Object.defineProperty(e,"ServerInfo",{enumerable:!0,get:function(){return u.ServerInfo}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return u.Result}}),Object.defineProperty(e,"EagerResult",{enumerable:!0,get:function(){return u.EagerResult}}),Object.defineProperty(e,"auth",{enumerable:!0,get:function(){return u.auth}}),Object.defineProperty(e,"Session",{enumerable:!0,get:function(){return u.Session}}),Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return u.Transaction}}),Object.defineProperty(e,"ManagedTransaction",{enumerable:!0,get:function(){return u.ManagedTransaction}}),Object.defineProperty(e,"bookmarkManager",{enumerable:!0,get:function(){return u.bookmarkManager}}),Object.defineProperty(e,"routing",{enumerable:!0,get:function(){return u.routing}}),Object.defineProperty(e,"resultTransformers",{enumerable:!0,get:function(){return u.resultTransformers}}),Object.defineProperty(e,"notificationCategory",{enumerable:!0,get:function(){return u.notificationCategory}}),Object.defineProperty(e,"notificationClassification",{enumerable:!0,get:function(){return u.notificationClassification}}),Object.defineProperty(e,"notificationSeverityLevel",{enumerable:!0,get:function(){return u.notificationSeverityLevel}}),Object.defineProperty(e,"notificationFilterDisabledCategory",{enumerable:!0,get:function(){return u.notificationFilterDisabledCategory}}),Object.defineProperty(e,"notificationFilterDisabledClassification",{enumerable:!0,get:function(){return u.notificationFilterDisabledClassification}}),Object.defineProperty(e,"notificationFilterMinimumSeverityLevel",{enumerable:!0,get:function(){return u.notificationFilterMinimumSeverityLevel}}),Object.defineProperty(e,"clientCertificateProviders",{enumerable:!0,get:function(){return u.clientCertificateProviders}});var l=t(6672),c=a(t(3466));e.RxSession=c.default;var f=a(t(5742));e.RxTransaction=f.default;var d=a(t(1530));e.RxManagedTransaction=d.default;var h=a(t(3057));e.RxResult=h.default;var p=u.internal.util,g=p.ENCRYPTION_ON,y=p.assertString,b=p.isEmptyObjectOrNull,_=u.internal.serverAddress.ServerAddress,m=u.internal.urlUtil,x="neo4j-javascript/"+s.default;function E(z,H,q){q===void 0&&(q={}),y(z,"Bolt URL");var W,$=m.parseDatabaseUrl(z),J=!1,X=!1;switch($.scheme){case"bolt":break;case"bolt+s":X=!0,W="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES";break;case"bolt+ssc":X=!0,W="TRUST_ALL_CERTIFICATES";break;case"neo4j":J=!0;break;case"neo4j+s":X=!0,W="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",J=!0;break;case"neo4j+ssc":X=!0,W="TRUST_ALL_CERTIFICATES",J=!0;break;default:throw new Error("Unknown scheme: ".concat($.scheme))}if(X){if("encrypted"in q||"trust"in q)throw new Error("Encryption/trust can only be configured either through URL or config, not both");q.encrypted=g,q.trust=W,q.clientCertificate=(0,u.resolveCertificateProvider)(q.clientCertificate)}var Z=(function(ne){if(typeof(le=ne)=="object"&&le!=null&&"getToken"in le&&"handleSecurityException"in le&&typeof le.getToken=="function"&&typeof le.handleSecurityException=="function")return ne;var le,ce=ne;return(ce=ce||{}).scheme=ce.scheme||"none",(0,u.staticAuthTokenManager)({authToken:ce})})(H);q.userAgent=q.userAgent||x,q.boltAgent=u.internal.boltAgent.fromVersion(s.default);var ue=_.fromUrl($.hostAndPort),re={address:ue,typename:J?"Routing":"Direct",routing:J};return new o.Driver(re,q,(function(){if(J)return function(ne,le,ce,pe){return new l.RoutingConnectionProvider({id:ne,config:le,log:ce,hostNameResolver:pe,authTokenManager:Z,address:ue,userAgent:le.userAgent,boltAgent:le.boltAgent,routingContext:$.query})};if(!b($.query))throw new Error("Parameters are not supported with none routed scheme. Given URL: '".concat(z,"'"));return function(ne,le,ce){return new l.DirectConnectionProvider({id:ne,config:le,log:ce,authTokenManager:Z,address:ue,userAgent:le.userAgent,boltAgent:le.boltAgent})}})())}function O(z,H){return n(this,void 0,void 0,function(){var q;return i(this,function(W){switch(W.label){case 0:q=E(z,{scheme:"none",principal:"",credentials:""},H),W.label=1;case 1:return W.trys.push([1,,3,5]),[4,q.getNegotiatedProtocolVersion()];case 2:return W.sent(),[2,!0];case 3:return[4,q.close()];case 4:return W.sent(),[7];case 5:return[2]}})})}e.driver=E,e.hasReachableServer=O;var S={console:function(z){return{level:z,logger:function(H,q){return console.log("".concat(t.g.Date.now()," ").concat(H.toUpperCase()," ").concat(q))}}}};e.logging=S;var T={Node:u.Node,Relationship:u.Relationship,UnboundRelationship:u.UnboundRelationship,PathSegment:u.PathSegment,Path:u.Path,Result:u.Result,EagerResult:u.EagerResult,ResultSummary:u.ResultSummary,Record:u.Record,Point:u.Point,Date:u.Date,DateTime:u.DateTime,Duration:u.Duration,LocalDateTime:u.LocalDateTime,LocalTime:u.LocalTime,Time:u.Time,Integer:u.Integer};e.types=T;var P={READ:o.READ,WRITE:o.WRITE};e.session=P;var I={toNumber:u.toNumber,toString:u.toString,inSafeRange:u.inSafeRange};e.integer=I;var k={isPoint:u.isPoint};e.spatial=k;var L={isDuration:u.isDuration,isLocalTime:u.isLocalTime,isTime:u.isTime,isDate:u.isDate,isLocalDateTime:u.isLocalDateTime,isDateTime:u.isDateTime};e.temporal=L;var B={isNode:u.isNode,isPath:u.isPath,isPathSegment:u.isPathSegment,isRelationship:u.isRelationship,isUnboundRelationship:u.isUnboundRelationship};e.graph=B;var j={authTokenManagers:u.authTokenManagers,driver:E,hasReachableServer:O,int:u.int,isInt:u.isInt,isPoint:u.isPoint,isDuration:u.isDuration,isLocalTime:u.isLocalTime,isTime:u.isTime,isDate:u.isDate,isLocalDateTime:u.isLocalDateTime,isDateTime:u.isDateTime,isNode:u.isNode,isPath:u.isPath,isPathSegment:u.isPathSegment,isRelationship:u.isRelationship,isUnboundRelationship:u.isUnboundRelationship,integer:I,Neo4jError:u.Neo4jError,isRetriableError:u.isRetriableError,auth:u.auth,logging:S,types:T,session:P,routing:u.routing,error:u.error,graph:B,spatial:k,temporal:L,Driver:o.Driver,Session:u.Session,Transaction:u.Transaction,ManagedTransaction:u.ManagedTransaction,Result:u.Result,EagerResult:u.EagerResult,RxSession:c.default,RxTransaction:f.default,RxManagedTransaction:d.default,RxResult:h.default,ResultSummary:u.ResultSummary,Plan:u.Plan,ProfiledPlan:u.ProfiledPlan,QueryStatistics:u.QueryStatistics,Notification:u.Notification,GqlStatusObject:u.GqlStatusObject,ServerInfo:u.ServerInfo,Record:u.Record,Node:u.Node,Relationship:u.Relationship,UnboundRelationship:u.UnboundRelationship,Path:u.Path,PathSegment:u.PathSegment,Point:u.Point,Integer:u.Integer,Duration:u.Duration,LocalTime:u.LocalTime,Time:u.Time,Date:u.Date,LocalDateTime:u.LocalDateTime,DateTime:u.DateTime,bookmarkManager:u.bookmarkManager,resultTransformers:u.resultTransformers,notificationCategory:u.notificationCategory,notificationSeverityLevel:u.notificationSeverityLevel,notificationFilterDisabledCategory:u.notificationFilterDisabledCategory,notificationFilterMinimumSeverityLevel:u.notificationFilterMinimumSeverityLevel,clientCertificateProviders:u.clientCertificateProviders};e.default=j},1226:function(r,e,t){var n=this&&this.__read||function(u,l){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var f,d,h=c.call(u),p=[];try{for(;(l===void 0||l-- >0)&&!(f=h.next()).done;)p.push(f.value)}catch(g){d={error:g}}finally{try{f&&!f.done&&(c=h.return)&&c.call(h)}finally{if(d)throw d.error}}return p},i=this&&this.__spreadArray||function(u,l){for(var c=0,f=l.length,d=u.length;c0)&&!(c=d.next()).done;)h.push(c.value)}catch(p){f={error:p}}finally{try{c&&!c.done&&(l=d.return)&&l.call(d)}finally{if(f)throw f.error}}return h},i=this&&this.__spreadArray||function(s,u){for(var l=0,c=u.length,f=s.length;l{Object.defineProperty(e,"__esModule",{value:!0}),e.noop=void 0,e.noop=function(){}},1358:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isAsyncIterable=void 0;var n=t(1018);e.isAsyncIterable=function(i){return Symbol.asyncIterator&&n.isFunction(i==null?void 0:i[Symbol.asyncIterator])}},1409:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function n(){}return n.prototype.beginTransaction=function(i){throw new Error("Not implemented")},n.prototype.run=function(i,a,o){throw new Error("Not implemented")},n.prototype.commitTransaction=function(i){throw new Error("Not implemented")},n.prototype.rollbackTransaction=function(i){throw new Error("Not implemented")},n.prototype.resetAndFlush=function(){throw new Error("Not implemented")},n.prototype.isOpen=function(){throw new Error("Not implemented")},n.prototype.getProtocolVersion=function(){throw new Error("Not implemented")},n.prototype.hasOngoingObservableRequests=function(){throw new Error("Not implemented")},n})();e.default=t},1415:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.max=void 0;var n=t(9139),i=t(1018);e.max=function(a){return n.reduce(i.isFunction(a)?function(o,s){return a(o,s)>0?o:s}:function(o,s){return o>s?o:s})}},1439:function(r,e,t){var n=this&&this.__read||function(f,d){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var p,g,y=h.call(f),b=[];try{for(;(d===void 0||d-- >0)&&!(p=y.next()).done;)b.push(p.value)}catch(_){g={error:_}}finally{try{p&&!p.done&&(h=y.return)&&h.call(y)}finally{if(g)throw g.error}}return b},i=this&&this.__spreadArray||function(f,d){for(var h=0,p=d.length,g=f.length;h{Object.defineProperty(e,"__esModule",{value:!0}),e.connect=void 0;var n=t(2483),i=t(9445),a=t(7843),o=t(6824),s={connector:function(){return new n.Subject}};e.connect=function(u,l){l===void 0&&(l=s);var c=l.connector;return a.operate(function(f,d){var h=c();i.innerFrom(u(o.fromSubscribable(h))).subscribe(d),d.add(f.subscribe(h))})}},1505:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SequenceError=void 0;var n=t(5568);e.SequenceError=n.createErrorClass(function(i){return function(a){i(this),this.name="SequenceError",this.message=a}})},1517:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isPathSegment=e.PathSegment=e.isPath=e.Path=e.isUnboundRelationship=e.UnboundRelationship=e.isRelationship=e.Relationship=e.isNode=e.Node=void 0;var n=t(4027),i={value:!0,enumerable:!1,configurable:!1,writable:!1},a="__isNode__",o="__isRelationship__",s="__isUnboundRelationship__",u="__isPath__",l="__isPathSegment__";function c(b,_){return b!=null&&b[_]===!0}var f=(function(){function b(_,m,x,E){this.identity=_,this.labels=m,this.properties=x,this.elementId=y(E,function(){return _.toString()})}return b.prototype.toString=function(){for(var _="("+this.elementId,m=0;m0){for(_+=" {",m=0;m0&&(_+=","),_+=x[m]+":"+(0,n.stringify)(this.properties[x[m]]);_+="}"}return _+")"},b})();e.Node=f,Object.defineProperty(f.prototype,a,i),e.isNode=function(b){return c(b,a)};var d=(function(){function b(_,m,x,E,O,S,T,P){this.identity=_,this.start=m,this.end=x,this.type=E,this.properties=O,this.elementId=y(S,function(){return _.toString()}),this.startNodeElementId=y(T,function(){return m.toString()}),this.endNodeElementId=y(P,function(){return x.toString()})}return b.prototype.toString=function(){var _="("+this.startNodeElementId+")-[:"+this.type,m=Object.keys(this.properties);if(m.length>0){_+=" {";for(var x=0;x0&&(_+=","),_+=m[x]+":"+(0,n.stringify)(this.properties[m[x]]);_+="}"}return _+"]->("+this.endNodeElementId+")"},b})();e.Relationship=d,Object.defineProperty(d.prototype,o,i),e.isRelationship=function(b){return c(b,o)};var h=(function(){function b(_,m,x,E){this.identity=_,this.type=m,this.properties=x,this.elementId=y(E,function(){return _.toString()})}return b.prototype.bind=function(_,m){return new d(this.identity,_,m,this.type,this.properties,this.elementId)},b.prototype.bindTo=function(_,m){return new d(this.identity,_.identity,m.identity,this.type,this.properties,this.elementId,_.elementId,m.elementId)},b.prototype.toString=function(){var _="-[:"+this.type,m=Object.keys(this.properties);if(m.length>0){_+=" {";for(var x=0;x0&&(_+=","),_+=m[x]+":"+(0,n.stringify)(this.properties[m[x]]);_+="}"}return _+"]->"},b})();e.UnboundRelationship=h,Object.defineProperty(h.prototype,s,i),e.isUnboundRelationship=function(b){return c(b,s)};var p=function(b,_,m){this.start=b,this.relationship=_,this.end=m};e.PathSegment=p,Object.defineProperty(p.prototype,l,i),e.isPathSegment=function(b){return c(b,l)};var g=function(b,_,m){this.start=b,this.end=_,this.segments=m,this.length=m.length};function y(b,_){return b??_()}e.Path=g,Object.defineProperty(g.prototype,u,i),e.isPath=function(b){return c(b,u)}},1518:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pairwise=void 0;var n=t(7843),i=t(3111);e.pairwise=function(){return n.operate(function(a,o){var s,u=!1;a.subscribe(i.createOperatorSubscriber(o,function(l){var c=s;s=l,u&&o.next([c,l]),u=!0}))})}},1530:function(r,e,t){var n=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),n(t(3057)),n(t(5742));var i=(function(){function a(o){var s=o.run;this._run=s}return a.fromTransaction=function(o){return new a({run:o.run.bind(o)})},a.prototype.run=function(o,s){return this._run(o,s)},a})();e.default=i},1551:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.exhaust=void 0;var n=t(2752);e.exhaust=n.exhaustAll},1554:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0;var n=t(7961),i=t(1074),a=t(7843),o=t(9445),s=t(5568),u=t(3111),l=t(7110);function c(f){throw new e.TimeoutError(f)}e.TimeoutError=s.createErrorClass(function(f){return function(d){d===void 0&&(d=null),f(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=d}}),e.timeout=function(f,d){var h=i.isValidDate(f)?{first:f}:typeof f=="number"?{each:f}:f,p=h.first,g=h.each,y=h.with,b=y===void 0?c:y,_=h.scheduler,m=_===void 0?d??n.asyncScheduler:_,x=h.meta,E=x===void 0?null:x;if(p==null&&g==null)throw new TypeError("No timeout provided.");return a.operate(function(O,S){var T,P,I=null,k=0,L=function(B){P=l.executeSchedule(S,m,function(){try{T.unsubscribe(),o.innerFrom(b({meta:E,lastValue:I,seen:k})).subscribe(S)}catch(j){S.error(j)}},B)};T=O.subscribe(u.createOperatorSubscriber(S,function(B){P==null||P.unsubscribe(),k++,S.next(I=B),g>0&&L(g)},void 0,void 0,function(){P!=null&&P.closed||P==null||P.unsubscribe(),I=null})),!k&&L(p!=null?typeof p=="number"?p:+p-m.now():g)})}},1573:function(r,e,t){var n=this&&this.__awaiter||function(h,p,g,y){return new(g||(g=Promise))(function(b,_){function m(O){try{E(y.next(O))}catch(S){_(S)}}function x(O){try{E(y.throw(O))}catch(S){_(S)}}function E(O){var S;O.done?b(O.value):(S=O.value,S instanceof g?S:new g(function(T){T(S)})).then(m,x)}E((y=y.apply(h,p||[])).next())})},i=this&&this.__generator||function(h,p){var g,y,b,_,m={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return _={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function x(E){return function(O){return(function(S){if(g)throw new TypeError("Generator is already executing.");for(;_&&(_=0,S[0]&&(m=0)),m;)try{if(g=1,y&&(b=2&S[0]?y.return:S[0]?y.throw||((b=y.return)&&b.call(y),0):y.next)&&!(b=b.call(y,S[1])).done)return b;switch(y=0,b&&(S=[2&S[0],b.value]),S[0]){case 0:case 1:b=S;break;case 4:return m.label++,{value:S[1],done:!1};case 5:m.label++,y=S[1],S=[0];continue;case 7:S=m.ops.pop(),m.trys.pop();continue;default:if(!((b=(b=m.trys).length>0&&b[b.length-1])||S[0]!==6&&S[0]!==2)){m=0;continue}if(S[0]===3&&(!b||S[1]>b[0]&&S[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduled=void 0;var n=t(9567),i=t(9589),a=t(6985),o=t(8808),s=t(854),u=t(1116),l=t(7629),c=t(8046),f=t(6368),d=t(1358),h=t(7614),p=t(9137),g=t(4953);e.scheduled=function(y,b){if(y!=null){if(u.isInteropObservable(y))return n.scheduleObservable(y,b);if(c.isArrayLike(y))return a.scheduleArray(y,b);if(l.isPromise(y))return i.schedulePromise(y,b);if(d.isAsyncIterable(y))return s.scheduleAsyncIterable(y,b);if(f.isIterable(y))return o.scheduleIterable(y,b);if(p.isReadableStreamLike(y))return g.scheduleReadableStreamLike(y,b)}throw h.createInvalidObservableTypeError(y)}},1699:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.partition=void 0;var n=t(245),i=t(783),a=t(9445);e.partition=function(o,s,u){return[i.filter(s,u)(a.innerFrom(o)),i.filter(n.not(s,u))(a.innerFrom(o))]}},1711:function(r,e,t){var n=this&&this.__extends||(function(){var m=function(x,E){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&(O[T]=S[T])},m(x,E)};return function(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function O(){this.constructor=x}m(x,E),x.prototype=E===null?Object.create(E):(O.prototype=E.prototype,new O)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(m){for(var x,E=1,O=arguments.length;E{Object.defineProperty(e,"__esModule",{value:!0}),e.sample=void 0;var n=t(9445),i=t(7843),a=t(1342),o=t(3111);e.sample=function(s){return i.operate(function(u,l){var c=!1,f=null;u.subscribe(o.createOperatorSubscriber(l,function(d){c=!0,f=d})),n.innerFrom(s).subscribe(o.createOperatorSubscriber(l,function(){if(c){c=!1;var d=f;f=null,l.next(d)}},a.noop))})}},1751:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isObservable=void 0;var n=t(4662),i=t(1018);e.isObservable=function(a){return!!a&&(a instanceof n.Observable||i.isFunction(a.lift)&&i.isFunction(a.subscribe))}},1759:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NotFoundError=void 0;var n=t(5568);e.NotFoundError=n.createErrorClass(function(i){return function(a){i(this),this.name="NotFoundError",this.message=a}})},1776:function(r,e,t){var n=this&&this.__read||function(s,u){var l=typeof Symbol=="function"&&s[Symbol.iterator];if(!l)return s;var c,f,d=l.call(s),h=[];try{for(;(u===void 0||u-- >0)&&!(c=d.next()).done;)h.push(c.value)}catch(p){f={error:p}}finally{try{c&&!c.done&&(l=d.return)&&l.call(d)}finally{if(f)throw f.error}}return h},i=this&&this.__spreadArray||function(s,u){for(var l=0,c=u.length,f=s.length;l{var e,t,n=document.attachEvent,i=!1;function a(m){var x=m.__resizeTriggers__,E=x.firstElementChild,O=x.lastElementChild,S=E.firstElementChild;O.scrollLeft=O.scrollWidth,O.scrollTop=O.scrollHeight,S.style.width=E.offsetWidth+1+"px",S.style.height=E.offsetHeight+1+"px",E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight}function o(m){var x=this;a(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=s(function(){(function(E){return E.offsetWidth!=E.__resizeLast__.width||E.offsetHeight!=E.__resizeLast__.height})(x)&&(x.__resizeLast__.width=x.offsetWidth,x.__resizeLast__.height=x.offsetHeight,x.__resizeListeners__.forEach(function(E){E.call(x,m)}))})}if(!n){var s=(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(m){return window.setTimeout(m,20)},function(m){return t(m)}),u=(e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(m){return e(m)}),l=!1,c="",f="animationstart",d="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=document.createElement("fakeelement");if(p.style.animationName!==void 0&&(l=!0),l===!1){for(var g=0;g div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',O=document.head||document.getElementsByTagName("head")[0],S=document.createElement("style");S.type="text/css",S.styleSheet?S.styleSheet.cssText=E:S.appendChild(document.createTextNode(E)),O.appendChild(S),i=!0}})(),m.__resizeLast__={},m.__resizeListeners__=[],(m.__resizeTriggers__=document.createElement("div")).className="resize-triggers",m.__resizeTriggers__.innerHTML='
',m.appendChild(m.__resizeTriggers__),a(m),m.addEventListener("scroll",o,!0),f&&m.__resizeTriggers__.addEventListener(f,function(E){E.animationName==y&&a(m)})),m.__resizeListeners__.push(x)),function(){n?m.detachEvent("onresize",x):(m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(x),1),m.__resizeListeners__.length||(m.removeEventListener("scroll",o),m.__resizeTriggers__=!m.removeChild(m.__resizeTriggers__)))}}},1839:function(r,e,t){var n=this&&this.__awaiter||function(u,l,c,f){return new(c||(c=Promise))(function(d,h){function p(b){try{y(f.next(b))}catch(_){h(_)}}function g(b){try{y(f.throw(b))}catch(_){h(_)}}function y(b){var _;b.done?d(b.value):(_=b.value,_ instanceof c?_:new c(function(m){m(_)})).then(p,g)}y((f=f.apply(u,l||[])).next())})},i=this&&this.__generator||function(u,l){var c,f,d,h,p={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(y){return function(b){return(function(_){if(c)throw new TypeError("Generator is already executing.");for(;h&&(h=0,_[0]&&(p=0)),p;)try{if(c=1,f&&(d=2&_[0]?f.return:_[0]?f.throw||((d=f.return)&&d.call(f),0):f.next)&&!(d=d.call(f,_[1])).done)return d;switch(f=0,d&&(_=[2&_[0],d.value]),_[0]){case 0:case 1:d=_;break;case 4:return p.label++,{value:_[1],done:!1};case 5:p.label++,f=_[1],_=[0];continue;case 7:_=p.ops.pop(),p.trys.pop();continue;default:if(!((d=(d=p.trys).length>0&&d[d.length-1])||_[0]!==6&&_[0]!==2)){p=0;continue}if(_[0]===3&&(!d||_[1]>d[0]&&_[1]0)&&!(z=q.next()).done;)W.push(z.value)}catch($){H={error:$}}finally{try{z&&!z.done&&(j=q.return)&&j.call(q)}finally{if(H)throw H.error}}return W},u=this&&this.__spreadArray||function(L,B,j){if(j||arguments.length===2)for(var z,H=0,q=B.length;H{function t(){return typeof Symbol=="function"&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(e,"__esModule",{value:!0}),e.iterator=e.getSymbolIterator=void 0,e.getSymbolIterator=t,e.iterator=t()},1967:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=t(9691),i=t(4027),a={basic:function(s,u,l){return l!=null?{scheme:"basic",principal:s,credentials:u,realm:l}:{scheme:"basic",principal:s,credentials:u}},kerberos:function(s){return{scheme:"kerberos",principal:"",credentials:s}},bearer:function(s){return{scheme:"bearer",credentials:s}},none:function(){return{scheme:"none"}},custom:function(s,u,l,c,f){var d={scheme:c,principal:s};if(o(u)&&(d.credentials=u),o(l)&&(d.realm=l),o(f)){try{(0,i.stringify)(f)}catch(h){throw(0,n.newError)("Circular references in custom auth token parameters",void 0,h)}d.parameters=f}return d}};function o(s){return!(s==null||s===""||Object.getPrototypeOf(s)===Object.prototype&&Object.keys(s).length===0)}e.default=a},1983:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeInternals=void 0;var n=t(9445),i=t(7110),a=t(3111);e.mergeInternals=function(o,s,u,l,c,f,d,h){var p=[],g=0,y=0,b=!1,_=function(){!b||p.length||g||s.complete()},m=function(E){return g{Object.defineProperty(e,"__esModule",{value:!0}),e.notificationFilterDisabledClassification=e.notificationFilterDisabledCategory=e.notificationFilterMinimumSeverityLevel=void 0;var t={OFF:"OFF",WARNING:"WARNING",INFORMATION:"INFORMATION"};e.notificationFilterMinimumSeverityLevel=t,Object.freeze(t);var n={HINT:"HINT",UNRECOGNIZED:"UNRECOGNIZED",UNSUPPORTED:"UNSUPPORTED",PERFORMANCE:"PERFORMANCE",TOPOLOGY:"TOPOLOGY",SECURITY:"SECURITY",DEPRECATION:"DEPRECATION",GENERIC:"GENERIC",SCHEMA:"SCHEMA"};e.notificationFilterDisabledCategory=n,Object.freeze(n);var i=n;e.notificationFilterDisabledClassification=i,e.default=function(){throw this.minimumSeverityLevel=void 0,this.disabledCategories=void 0,this.disabledClassifications=void 0,new Error("Not implemented")}},2007:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Releasable=void 0;var t=(function(){function i(){}return i.prototype.release=function(){throw new Error("Not implemented")},i})();e.Releasable=t;var n=(function(){function i(){}return i.prototype.acquireConnection=function(a){throw Error("Not implemented")},i.prototype.supportsMultiDb=function(){throw Error("Not implemented")},i.prototype.supportsTransactionConfig=function(){throw Error("Not implemented")},i.prototype.supportsUserImpersonation=function(){throw Error("Not implemented")},i.prototype.supportsSessionAuth=function(){throw Error("Not implemented")},i.prototype.SSREnabled=function(){return!1},i.prototype.verifyConnectivityAndGetServerInfo=function(a){throw Error("Not implemented")},i.prototype.verifyAuthentication=function(a){throw Error("Not implemented")},i.prototype.getNegotiatedProtocolVersion=function(){throw Error("Not Implemented")},i.prototype.close=function(){throw Error("Not implemented")},i})();e.default=n},2063:r=>{r.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},2066:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u0&&b[b.length-1])||S[0]!==6&&S[0]!==2)){m=0;continue}if(S[0]===3&&(!b||S[1]>b[0]&&S[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.takeWhile=void 0;var n=t(7843),i=t(3111);e.takeWhile=function(a,o){return o===void 0&&(o=!1),n.operate(function(s,u){var l=0;s.subscribe(i.createOperatorSubscriber(u,function(c){var f=a(c,l++);(f||o)&&u.next(c),!f&&u.complete()}))})}},2171:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.partition=void 0;var n=t(245),i=t(783);e.partition=function(a,o){return function(s){return[i.filter(a,o)(s),i.filter(n.not(a,o))(s)]}}},2199:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0});var i=(function(a){function o(){return a!==null&&a.apply(this,arguments)||this}return n(o,a),o.prototype.resolve=function(s){return this._resolveToItself(s)},o})(t(9305).internal.resolver.BaseHostNameResolver);e.default=i},2204:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.toArray=void 0;var n=t(9139),i=t(7843),a=function(o,s){return o.push(s),o};e.toArray=function(){return i.operate(function(o,s){n.reduce(a,[])(o).subscribe(s)})}},2360:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.materialize=void 0;var n=t(7800),i=t(7843),a=t(3111);e.materialize=function(){return i.operate(function(o,s){o.subscribe(a.createOperatorSubscriber(s,function(u){s.next(n.Notification.createNext(u))},function(){s.next(n.Notification.createComplete()),s.complete()},function(u){s.next(n.Notification.createError(u)),s.complete()}))})}},2363:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=t(9305),i=n.error.SERVICE_UNAVAILABLE,a=n.error.SESSION_EXPIRED,o=(function(){function u(l,c,f,d){this._errorCode=l,this._handleUnavailability=c||s,this._handleWriteFailure=f||s,this._handleSecurityError=d||s}return u.create=function(l){return new u(l.errorCode,l.handleUnavailability,l.handleWriteFailure,l.handleSecurityError)},u.prototype.errorCode=function(){return this._errorCode},u.prototype.handleAndTransformError=function(l,c,f){return(function(d){return d!=null&&d.code!=null&&d.code.startsWith("Neo.ClientError.Security.")})(l)?this._handleSecurityError(l,c,f):(function(d){return!!d&&(d.code===a||d.code===i||d.code==="Neo.TransientError.General.DatabaseUnavailable")})(l)?this._handleUnavailability(l,c,f):(function(d){return!!d&&(d.code==="Neo.ClientError.Cluster.NotALeader"||d.code==="Neo.ClientError.General.ForbiddenOnReadOnlyDatabase")})(l)?this._handleWriteFailure(l,c,f):l},u})();function s(u){return u}e.default=o},2481:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=t(9305),i=n.internal.util,a=i.ENCRYPTION_OFF,o=i.ENCRYPTION_ON,s=n.error.SERVICE_UNAVAILABLE,u=[null,void 0,!0,!1,o,a],l=[null,void 0,"TRUST_ALL_CERTIFICATES","TRUST_CUSTOM_CA_SIGNED_CERTIFICATES","TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"];e.default=function(c,f,d,h){this.address=c,this.encrypted=(function(p){var g=p.encrypted;if(u.indexOf(g)===-1)throw(0,n.newError)("Illegal value of the encrypted setting ".concat(g,". Expected one of ").concat(u));return g})(f),this.trust=(function(p){var g=p.trust;if(l.indexOf(g)===-1)throw(0,n.newError)("Illegal value of the trust setting ".concat(g,". Expected one of ").concat(l));return g})(f),this.trustedCertificates=(function(p){return p.trustedCertificates||[]})(f),this.knownHostsPath=(function(p){return p.knownHosts||null})(f),this.connectionErrorCode=d||s,this.connectionTimeout=f.connectionTimeout,this.clientCertificate=h}},2483:function(r,e,t){var n=this&&this.__extends||(function(){var d=function(h,p){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])},d(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function g(){this.constructor=h}d(h,p),h.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),i=this&&this.__values||function(d){var h=typeof Symbol=="function"&&Symbol.iterator,p=h&&d[h],g=0;if(p)return p.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&g>=d.length&&(d=void 0),{value:d&&d[g++],done:!d}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AnonymousSubject=e.Subject=void 0;var a=t(4662),o=t(8014),s=t(9686),u=t(7479),l=t(9223),c=(function(d){function h(){var p=d.call(this)||this;return p.closed=!1,p.currentObservers=null,p.observers=[],p.isStopped=!1,p.hasError=!1,p.thrownError=null,p}return n(h,d),h.prototype.lift=function(p){var g=new f(this,this);return g.operator=p,g},h.prototype._throwIfClosed=function(){if(this.closed)throw new s.ObjectUnsubscribedError},h.prototype.next=function(p){var g=this;l.errorContext(function(){var y,b;if(g._throwIfClosed(),!g.isStopped){g.currentObservers||(g.currentObservers=Array.from(g.observers));try{for(var _=i(g.currentObservers),m=_.next();!m.done;m=_.next())m.value.next(p)}catch(x){y={error:x}}finally{try{m&&!m.done&&(b=_.return)&&b.call(_)}finally{if(y)throw y.error}}}})},h.prototype.error=function(p){var g=this;l.errorContext(function(){if(g._throwIfClosed(),!g.isStopped){g.hasError=g.isStopped=!0,g.thrownError=p;for(var y=g.observers;y.length;)y.shift().error(p)}})},h.prototype.complete=function(){var p=this;l.errorContext(function(){if(p._throwIfClosed(),!p.isStopped){p.isStopped=!0;for(var g=p.observers;g.length;)g.shift().complete()}})},h.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(h.prototype,"observed",{get:function(){var p;return((p=this.observers)===null||p===void 0?void 0:p.length)>0},enumerable:!1,configurable:!0}),h.prototype._trySubscribe=function(p){return this._throwIfClosed(),d.prototype._trySubscribe.call(this,p)},h.prototype._subscribe=function(p){return this._throwIfClosed(),this._checkFinalizedStatuses(p),this._innerSubscribe(p)},h.prototype._innerSubscribe=function(p){var g=this,y=this,b=y.hasError,_=y.isStopped,m=y.observers;return b||_?o.EMPTY_SUBSCRIPTION:(this.currentObservers=null,m.push(p),new o.Subscription(function(){g.currentObservers=null,u.arrRemove(m,p)}))},h.prototype._checkFinalizedStatuses=function(p){var g=this,y=g.hasError,b=g.thrownError,_=g.isStopped;y?p.error(b):_&&p.complete()},h.prototype.asObservable=function(){var p=new a.Observable;return p.source=this,p},h.create=function(p,g){return new f(p,g)},h})(a.Observable);e.Subject=c;var f=(function(d){function h(p,g){var y=d.call(this)||this;return y.destination=p,y.source=g,y}return n(h,d),h.prototype.next=function(p){var g,y;(y=(g=this.destination)===null||g===void 0?void 0:g.next)===null||y===void 0||y.call(g,p)},h.prototype.error=function(p){var g,y;(y=(g=this.destination)===null||g===void 0?void 0:g.error)===null||y===void 0||y.call(g,p)},h.prototype.complete=function(){var p,g;(g=(p=this.destination)===null||p===void 0?void 0:p.complete)===null||g===void 0||g.call(p)},h.prototype._subscribe=function(p){var g,y;return(y=(g=this.source)===null||g===void 0?void 0:g.subscribe(p))!==null&&y!==void 0?y:o.EMPTY_SUBSCRIPTION},h})(c);e.AnonymousSubject=f},2533:function(r,e,t){var n=this&&this.__extends||(function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function c(){this.constructor=u}s(u,l),u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})(),i=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(t(715)),o=(function(s){function u(l){var c=s.call(this)||this;return c._readersIndex=new a.default,c._writersIndex=new a.default,c._connectionPool=l,c}return n(u,s),u.prototype.selectReader=function(l){return this._select(l,this._readersIndex)},u.prototype.selectWriter=function(l){return this._select(l,this._writersIndex)},u.prototype._select=function(l,c){var f=l.length;if(f===0)return null;var d=c.next(f),h=d,p=null,g=Number.MAX_SAFE_INTEGER;do{var y=l[h],b=this._connectionPool.activeResourceCount(y);b0)&&!(p=y.next()).done;)b.push(p.value)}catch(_){g={error:_}}finally{try{p&&!p.done&&(h=y.return)&&h.call(y)}finally{if(g)throw g.error}}return b},i=this&&this.__spreadArray||function(f,d){for(var h=0,p=d.length,g=f.length;h{Object.defineProperty(e,"__esModule",{value:!0});var n=t(9305);function i(){}function a(u){return u}var o={onNext:i,onCompleted:i,onError:i},s=(function(){function u(l){var c=l===void 0?{}:l,f=c.transformMetadata,d=c.enrichErrorMetadata,h=c.log,p=c.observer;this._pendingObservers=[],this._log=h,this._transformMetadata=f||a,this._enrichErrorMetadata=d||a,this._observer=Object.assign({onObserversCountChange:i,onError:i,onFailure:i,onErrorApplyTransformation:a},p)}return Object.defineProperty(u.prototype,"currentFailure",{get:function(){return this._currentFailure},enumerable:!1,configurable:!0}),u.prototype.handleResponse=function(l){var c=l.fields[0];switch(l.signature){case 113:this._log.isDebugEnabled()&&this._log.debug("S: RECORD ".concat(n.json.stringify(l))),this._currentObserver.onNext(c);break;case 112:this._log.isDebugEnabled()&&this._log.debug("S: SUCCESS ".concat(n.json.stringify(l)));try{var f=this._transformMetadata(c);this._currentObserver.onCompleted(f)}finally{this._updateCurrentObserver()}break;case 127:this._log.isDebugEnabled()&&this._log.debug("S: FAILURE ".concat(n.json.stringify(l)));try{this._currentFailure=this._handleErrorPayload(this._enrichErrorMetadata(c)),this._currentObserver.onError(this._currentFailure)}finally{this._updateCurrentObserver(),this._observer.onFailure(this._currentFailure)}break;case 126:this._log.isDebugEnabled()&&this._log.debug("S: IGNORED ".concat(n.json.stringify(l)));try{this._currentFailure&&this._currentObserver.onError?this._currentObserver.onError(this._currentFailure):this._currentObserver.onError&&this._currentObserver.onError((0,n.newError)("Ignored either because of an error or RESET"))}finally{this._updateCurrentObserver()}break;default:this._observer.onError((0,n.newError)("Unknown Bolt protocol message: "+l))}},u.prototype._updateCurrentObserver=function(){this._currentObserver=this._pendingObservers.shift(),this._observer.onObserversCountChange(this._observersCount)},Object.defineProperty(u.prototype,"_observersCount",{get:function(){return this._currentObserver==null?this._pendingObservers.length:this._pendingObservers.length+1},enumerable:!1,configurable:!0}),u.prototype._queueObserver=function(l){return(l=l||o).onCompleted=l.onCompleted||i,l.onError=l.onError||i,l.onNext=l.onNext||i,this._currentObserver===void 0?this._currentObserver=l:this._pendingObservers.push(l),this._observer.onObserversCountChange(this._observersCount),!0},u.prototype._notifyErrorToObservers=function(l){for(this._currentObserver&&this._currentObserver.onError&&this._currentObserver.onError(l);this._pendingObservers.length>0;){var c=this._pendingObservers.shift();c&&c.onError&&c.onError(l)}},u.prototype.hasOngoingObservableRequests=function(){return this._currentObserver!=null||this._pendingObservers.length>0},u.prototype._resetFailure=function(){this._currentFailure=null},u.prototype._handleErrorPayload=function(l){var c,f=(c=l.code)==="Neo.TransientError.Transaction.Terminated"?"Neo.ClientError.Transaction.Terminated":c==="Neo.TransientError.Transaction.LockClientStopped"?"Neo.ClientError.Transaction.LockClientStopped":c,d=l.cause!=null?this._handleErrorCause(l.cause):void 0,h=(0,n.newError)(l.message,f,d,l.gql_status,l.description,l.diagnostic_record);return this._observer.onErrorApplyTransformation(h)},u.prototype._handleErrorCause=function(l){var c=l.cause!=null?this._handleErrorCause(l.cause):void 0,f=(0,n.newGQLError)(l.message,c,l.gql_status,l.description,l.diagnostic_record);return this._observer.onErrorApplyTransformation(f)},u})();e.default=s},2628:function(r,e,t){var n=this&&this.__extends||(function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function c(){this.constructor=u}s(u,l),u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameAction=void 0;var i=t(5267),a=t(9507),o=(function(s){function u(l,c){var f=s.call(this,l,c)||this;return f.scheduler=l,f.work=c,f}return n(u,s),u.prototype.requestAsyncId=function(l,c,f){return f===void 0&&(f=0),f!==null&&f>0?s.prototype.requestAsyncId.call(this,l,c,f):(l.actions.push(this),l._scheduled||(l._scheduled=a.animationFrameProvider.requestAnimationFrame(function(){return l.flush(void 0)})))},u.prototype.recycleAsyncId=function(l,c,f){var d;if(f===void 0&&(f=0),f!=null?f>0:this.delay>0)return s.prototype.recycleAsyncId.call(this,l,c,f);var h=l.actions;c!=null&&c===l._scheduled&&((d=h[h.length-1])===null||d===void 0?void 0:d.id)!==c&&(a.animationFrameProvider.cancelAnimationFrame(c),l._scheduled=void 0)},u})(i.AsyncAction);e.AnimationFrameAction=o},2669:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.min=void 0;var n=t(9139),i=t(1018);e.min=function(a){return n.reduce(i.isFunction(a)?function(o,s){return a(o,s)<0?o:s}:function(o,s){return o{Object.defineProperty(e,"__esModule",{value:!0}),e.FailedObserver=e.CompletedObserver=void 0;var t=(function(){function a(){}return a.prototype.subscribe=function(o){i(o,o.onKeys,[]),i(o,o.onCompleted,{})},a.prototype.cancel=function(){},a.prototype.pause=function(){},a.prototype.resume=function(){},a.prototype.prepareToHandleSingleResponse=function(){},a.prototype.markCompleted=function(){},a.prototype.onError=function(o){throw new Error("CompletedObserver not supposed to call onError",{cause:o})},a})();e.CompletedObserver=t;var n=(function(){function a(o){var s=o.error,u=o.onError;this._error=s,this._beforeError=u,this._observers=[],this.onError(s)}return a.prototype.subscribe=function(o){i(o,o.onError,this._error),this._observers.push(o)},a.prototype.onError=function(o){i(this,this._beforeError,o),this._observers.forEach(function(s){return i(s,s.onError,o)})},a.prototype.cancel=function(){},a.prototype.pause=function(){},a.prototype.resume=function(){},a.prototype.markCompleted=function(){},a.prototype.prepareToHandleSingleResponse=function(){},a})();function i(a,o,s){o!=null&&o.bind(a)(s)}e.FailedObserver=n},2706:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pipeFromArray=e.pipe=void 0;var n=t(6640);function i(a){return a.length===0?n.identity:a.length===1?a[0]:function(o){return a.reduce(function(s,u){return u(s)},o)}}e.pipe=function(){for(var a=[],o=0;o{Object.defineProperty(e,"__esModule",{value:!0}),e.bindCallback=void 0;var n=t(1439);e.bindCallback=function(i,a,o){return n.bindCallbackInternals(!1,i,a,o)}},2752:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.exhaustAll=void 0;var n=t(4753),i=t(6640);e.exhaustAll=function(){return n.exhaustMap(i.identity)}},2823:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyError=void 0;var n=t(5568);e.EmptyError=n.createErrorClass(function(i){return function(){i(this),this.name="EmptyError",this.message="no elements in sequence"}})},2833:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var n=t(7302),i=t(9445),a=t(8616),o=t(1107),s=t(4917);e.merge=function(){for(var u=[],l=0;l{Object.defineProperty(e,"__esModule",{value:!0}),e.queue=e.queueScheduler=void 0;var n=t(4212),i=t(1293);e.queueScheduler=new i.QueueScheduler(n.QueueAction),e.queue=e.queueScheduler},2906:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(l,c,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(c,f);h&&!("get"in h?!c.__esModule:h.writable||h.configurable)||(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,d,h)}:function(l,c,f,d){d===void 0&&(d=f),l[d]=c[f]}),i=this&&this.__setModuleDefault||(Object.create?function(l,c){Object.defineProperty(l,"default",{enumerable:!0,value:c})}:function(l,c){l.default=c}),a=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)&&n(c,l,f);return i(c,l),c},o=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_MAX_SIZE=e.DEFAULT_ACQUISITION_TIMEOUT=e.PoolConfig=e.Pool=void 0;var s=a(t(7589));e.PoolConfig=s.default,Object.defineProperty(e,"DEFAULT_ACQUISITION_TIMEOUT",{enumerable:!0,get:function(){return s.DEFAULT_ACQUISITION_TIMEOUT}}),Object.defineProperty(e,"DEFAULT_MAX_SIZE",{enumerable:!0,get:function(){return s.DEFAULT_MAX_SIZE}});var u=o(t(6842));e.Pool=u.default,e.default=u.default},3001:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function n(i){this.maxSize=i,this.pruneCount=Math.max(Math.round(.01*i*Math.log(i)),1),this.map=new Map}return n.prototype.set=function(i,a){this.map.set(i,{database:a,lastUsed:Date.now()}),this._pruneCache()},n.prototype.get=function(i){var a=this.map.get(i);if(a!==void 0)return a.lastUsed=Date.now(),a.database},n.prototype.delete=function(i){this.map.delete(i)},n.prototype._pruneCache=function(){if(this.map.size>this.maxSize)for(var i=Array.from(this.map.entries()).sort(function(o,s){return o[1].lastUsed-s[1].lastUsed}),a=0;a0&&p[p.length-1])||x[0]!==6&&x[0]!==2)){y=0;continue}if(x[0]===3&&(!p||x[1]>p[0]&&x[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrames=void 0;var n=t(4662),i=t(4746),a=t(9507);function o(u){return new n.Observable(function(l){var c=u||i.performanceTimestampProvider,f=c.now(),d=0,h=function(){l.closed||(d=a.animationFrameProvider.requestAnimationFrame(function(p){d=0;var g=c.now();l.next({timestamp:u?g:p,elapsed:g-f}),h()}))};return h(),function(){d&&a.animationFrameProvider.cancelAnimationFrame(d)}})}e.animationFrames=function(u){return u?o(u):s};var s=o()},3111:function(r,e,t){var n=this&&this.__extends||(function(){var o=function(s,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},o(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function l(){this.constructor=s}o(s,u),s.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.OperatorSubscriber=e.createOperatorSubscriber=void 0;var i=t(5);e.createOperatorSubscriber=function(o,s,u,l,c){return new a(o,s,u,l,c)};var a=(function(o){function s(u,l,c,f,d,h){var p=o.call(this,u)||this;return p.onFinalize=d,p.shouldUnsubscribe=h,p._next=l?function(g){try{l(g)}catch(y){u.error(y)}}:o.prototype._next,p._error=f?function(g){try{f(g)}catch(y){u.error(y)}finally{this.unsubscribe()}}:o.prototype._error,p._complete=c?function(){try{c()}catch(g){u.error(g)}finally{this.unsubscribe()}}:o.prototype._complete,p}return n(s,o),s.prototype.unsubscribe=function(){var u;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var l=this.closed;o.prototype.unsubscribe.call(this),!l&&((u=this.onFinalize)===null||u===void 0||u.call(this))}},s})(i.Subscriber);e.OperatorSubscriber=a},3133:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shareReplay=void 0;var n=t(1242),i=t(8977);e.shareReplay=function(a,o,s){var u,l,c,f,d=!1;return a&&typeof a=="object"?(u=a.bufferSize,f=u===void 0?1/0:u,l=a.windowTime,o=l===void 0?1/0:l,d=(c=a.refCount)!==void 0&&c,s=a.scheduler):f=a??1/0,i.share({connector:function(){return new n.ReplaySubject(f,o,s)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:d})}},3146:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.audit=void 0;var n=t(7843),i=t(9445),a=t(3111);e.audit=function(o){return n.operate(function(s,u){var l=!1,c=null,f=null,d=!1,h=function(){if(f==null||f.unsubscribe(),f=null,l){l=!1;var g=c;c=null,u.next(g)}d&&u.complete()},p=function(){f=null,d&&u.complete()};s.subscribe(a.createOperatorSubscriber(u,function(g){l=!0,c=g,f||i.innerFrom(o(g)).subscribe(f=a.createOperatorSubscriber(u,h,p))},function(){d=!0,(!l||!f||f.closed)&&u.complete()}))})}},3206:(r,e,t)=>{r.exports=function(S){var T,P,I,k=0,L=0,B=u,j=[],z=[],H=1,q=0,W=0,$=!1,J=!1,X="",Z=a,ue=n;(S=S||{}).version==="300 es"&&(Z=s,ue=o);var re={},ne={};for(k=0;k0)continue;ie=Y.slice(0,1).join("")}return le(ie),W+=ie.length,(j=j.slice(ie.length)).length}}function ke(){return/[^a-fA-F0-9]/.test(T)?(le(j.join("")),B=u,k):(j.push(T),P=T,k+1)}function De(){return T==="."||/[eE]/.test(T)?(j.push(T),B=g,P=T,k+1):T==="x"&&j.length===1&&j[0]==="0"?(B=E,j.push(T),P=T,k+1):/[^\d]/.test(T)?(le(j.join("")),B=u,k):(j.push(T),P=T,k+1)}function Ne(){return T==="f"&&(j.push(T),P=T,k+=1),/[eE]/.test(T)?(j.push(T),P=T,k+1):(T!=="-"&&T!=="+"||!/[eE]/.test(P))&&/[^\d]/.test(T)?(le(j.join("")),B=u,k):(j.push(T),P=T,k+1)}function Ce(){if(/[^\d\w_]/.test(T)){var Y=j.join("");return B=ne[Y]?_:re[Y]?b:y,le(j.join("")),B=u,k}return j.push(T),P=T,k+1}};var n=t(4704),i=t(2063),a=t(7192),o=t(8784),s=t(5592),u=999,l=9999,c=0,f=1,d=2,h=3,p=4,g=5,y=6,b=7,_=8,m=9,x=10,E=11,O=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},3218:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mapTo=void 0;var n=t(5471);e.mapTo=function(i){return n.map(function(){return i})}},3229:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameScheduler=void 0;var i=(function(a){function o(){return a!==null&&a.apply(this,arguments)||this}return n(o,a),o.prototype.flush=function(s){var u;this._active=!0,s?u=s.id:(u=this._scheduled,this._scheduled=void 0);var l,c=this.actions;s=s||c.shift();do if(l=s.execute(s.state,s.delay))break;while((s=c[0])&&s.id===u&&c.shift());if(this._active=!1,l){for(;(s=c[0])&&s.id===u&&c.shift();)s.unsubscribe();throw l}},o})(t(5648).AsyncScheduler);e.AnimationFrameScheduler=i},3231:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.auditTime=void 0;var n=t(7961),i=t(3146),a=t(4092);e.auditTime=function(o,s){return s===void 0&&(s=n.asyncScheduler),i.audit(function(){return a.timer(o,s)})}},3247:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestInit=e.combineLatest=void 0;var n=t(4662),i=t(7360),a=t(4917),o=t(6640),s=t(1251),u=t(1107),l=t(6013),c=t(3111),f=t(7110);function d(p,g,y){return y===void 0&&(y=o.identity),function(b){h(g,function(){for(var _=p.length,m=new Array(_),x=_,E=_,O=function(T){h(g,function(){var P=a.from(p[T],g),I=!1;P.subscribe(c.createOperatorSubscriber(b,function(k){m[T]=k,I||(I=!0,E--),E||b.next(y(m.slice()))},function(){--x||b.complete()}))},b)},S=0;S<_;S++)O(S)},b)}}function h(p,g,y){p?f.executeSchedule(y,p,g):g()}e.combineLatest=function(){for(var p=[],g=0;g{var n=t(6931),i=t(9975),a=Object.hasOwnProperty,o=Object.create(null);for(var s in n)a.call(n,s)&&(o[n[s]]=s);var u=r.exports={to:{},get:{}};function l(f,d,h){return Math.min(Math.max(d,f),h)}function c(f){var d=Math.round(f).toString(16).toUpperCase();return d.length<2?"0"+d:d}u.get=function(f){var d,h;switch(f.substring(0,3).toLowerCase()){case"hsl":d=u.get.hsl(f),h="hsl";break;case"hwb":d=u.get.hwb(f),h="hwb";break;default:d=u.get.rgb(f),h="rgb"}return d?{model:h,value:d}:null},u.get.rgb=function(f){if(!f)return null;var d,h,p,g=[0,0,0,1];if(d=f.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(p=d[2],d=d[1],h=0;h<3;h++){var y=2*h;g[h]=parseInt(d.slice(y,y+2),16)}p&&(g[3]=parseInt(p,16)/255)}else if(d=f.match(/^#([a-f0-9]{3,4})$/i)){for(p=(d=d[1])[3],h=0;h<3;h++)g[h]=parseInt(d[h]+d[h],16);p&&(g[3]=parseInt(p+p,16)/255)}else if(d=f.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(h=0;h<3;h++)g[h]=parseInt(d[h+1],0);d[4]&&(d[5]?g[3]=.01*parseFloat(d[4]):g[3]=parseFloat(d[4]))}else{if(!(d=f.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(d=f.match(/^(\w+)$/))?d[1]==="transparent"?[0,0,0,0]:a.call(n,d[1])?((g=n[d[1]])[3]=1,g):null:null;for(h=0;h<3;h++)g[h]=Math.round(2.55*parseFloat(d[h+1]));d[4]&&(d[5]?g[3]=.01*parseFloat(d[4]):g[3]=parseFloat(d[4]))}for(h=0;h<3;h++)g[h]=l(g[h],0,255);return g[3]=l(g[3],0,1),g},u.get.hsl=function(f){if(!f)return null;var d=f.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(d){var h=parseFloat(d[4]);return[(parseFloat(d[1])%360+360)%360,l(parseFloat(d[2]),0,100),l(parseFloat(d[3]),0,100),l(isNaN(h)?1:h,0,1)]}return null},u.get.hwb=function(f){if(!f)return null;var d=f.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(d){var h=parseFloat(d[4]);return[(parseFloat(d[1])%360+360)%360,l(parseFloat(d[2]),0,100),l(parseFloat(d[3]),0,100),l(isNaN(h)?1:h,0,1)]}return null},u.to.hex=function(){var f=i(arguments);return"#"+c(f[0])+c(f[1])+c(f[2])+(f[3]<1?c(Math.round(255*f[3])):"")},u.to.rgb=function(){var f=i(arguments);return f.length<4||f[3]===1?"rgb("+Math.round(f[0])+", "+Math.round(f[1])+", "+Math.round(f[2])+")":"rgba("+Math.round(f[0])+", "+Math.round(f[1])+", "+Math.round(f[2])+", "+f[3]+")"},u.to.rgb.percent=function(){var f=i(arguments),d=Math.round(f[0]/255*100),h=Math.round(f[1]/255*100),p=Math.round(f[2]/255*100);return f.length<4||f[3]===1?"rgb("+d+"%, "+h+"%, "+p+"%)":"rgba("+d+"%, "+h+"%, "+p+"%, "+f[3]+")"},u.to.hsl=function(){var f=i(arguments);return f.length<4||f[3]===1?"hsl("+f[0]+", "+f[1]+"%, "+f[2]+"%)":"hsla("+f[0]+", "+f[1]+"%, "+f[2]+"%, "+f[3]+")"},u.to.hwb=function(){var f=i(arguments),d="";return f.length>=4&&f[3]!==1&&(d=", "+f[3]),"hwb("+f[0]+", "+f[1]+"%, "+f[2]+"%"+d+")"},u.to.keyword=function(f){return o[f.slice(0,3)]}},3274:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.switchMapTo=void 0;var n=t(3879),i=t(1018);e.switchMapTo=function(a,o){return i.isFunction(o)?n.switchMap(function(){return a},o):n.switchMap(function(){return a})}},3321:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeTransformer=void 0;var n=t(7168),i=t(9305).internal.objectUtil,a=(function(){function s(u){this._transformers=u,this._transformersPerSignature=new Map(u.map(function(l){return[l.signature,l]})),this.fromStructure=this.fromStructure.bind(this),this.toStructure=this.toStructure.bind(this),Object.freeze(this)}return s.prototype.fromStructure=function(u){try{return u instanceof n.structure.Structure&&this._transformersPerSignature.has(u.signature)?(0,this._transformersPerSignature.get(u.signature).fromStructure)(u):u}catch(l){return i.createBrokenObject(l)}},s.prototype.toStructure=function(u){var l=this._transformers.find(function(c){return(0,c.isTypeInstance)(u)});return l!==void 0?l.toStructure(u):u},s})();e.default=a;var o=(function(){function s(u){var l=u.signature,c=u.fromStructure,f=u.toStructure,d=u.isTypeInstance;this.signature=l,this.isTypeInstance=d,this.fromStructure=c,this.toStructure=f,Object.freeze(this)}return s.prototype.extendsWith=function(u){var l=u.signature,c=u.fromStructure,f=u.toStructure,d=u.isTypeInstance;return new s({signature:l||this.signature,fromStructure:c||this.fromStructure,toStructure:f||this.toStructure,isTypeInstance:d||this.isTypeInstance})},s})();e.TypeTransformer=o},3327:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observable=void 0,e.observable=typeof Symbol=="function"&&Symbol.observable||"@@observable"},3371:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toString=e.toNumber=e.inSafeRange=e.isInt=e.int=void 0;var n=t(9691),i=new Map,a=(function(){function g(y,b){this.low=y??0,this.high=b??0}return g.prototype.inSafeRange=function(){return this.greaterThanOrEqual(g.MIN_SAFE_VALUE)&&this.lessThanOrEqual(g.MAX_SAFE_VALUE)},g.prototype.toInt=function(){return this.low},g.prototype.toNumber=function(){return this.high*s+(this.low>>>0)},g.prototype.toBigInt=function(){if(this.isZero())return BigInt(0);if(this.isPositive())return BigInt(this.high>>>0)*BigInt(s)+BigInt(this.low>>>0);var y=this.negate();return BigInt(-1)*(BigInt(y.high>>>0)*BigInt(s)+BigInt(y.low>>>0))},g.prototype.toNumberOrInfinity=function(){return this.lessThan(g.MIN_SAFE_VALUE)?Number.NEGATIVE_INFINITY:this.greaterThan(g.MAX_SAFE_VALUE)?Number.POSITIVE_INFINITY:this.toNumber()},g.prototype.toString=function(y){if((y=y??10)<2||y>36)throw RangeError("radix out of range: "+y.toString());if(this.isZero())return"0";var b;if(this.isNegative()){if(this.equals(g.MIN_VALUE)){var _=g.fromNumber(y),m=this.div(_);return b=m.multiply(_).subtract(this),m.toString(y)+b.toInt().toString(y)}return"-"+this.negate().toString(y)}var x=g.fromNumber(Math.pow(y,6));b=this;for(var E="";;){var O=b.div(x),S=(b.subtract(O.multiply(x)).toInt()>>>0).toString(y);if((b=O).isZero())return S+E;for(;S.length<6;)S="0"+S;E=""+S+E}},g.prototype.valueOf=function(){return this.toBigInt()},g.prototype.getHighBits=function(){return this.high},g.prototype.getLowBits=function(){return this.low},g.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(g.MIN_VALUE)?64:this.negate().getNumBitsAbs();var y=this.high!==0?this.high:this.low,b=0;for(b=31;b>0&&!(y&1<=0},g.prototype.isOdd=function(){return!(1&~this.low)},g.prototype.isEven=function(){return!(1&this.low)},g.prototype.equals=function(y){var b=g.fromValue(y);return this.high===b.high&&this.low===b.low},g.prototype.notEquals=function(y){return!this.equals(y)},g.prototype.lessThan=function(y){return this.compare(y)<0},g.prototype.lessThanOrEqual=function(y){return this.compare(y)<=0},g.prototype.greaterThan=function(y){return this.compare(y)>0},g.prototype.greaterThanOrEqual=function(y){return this.compare(y)>=0},g.prototype.compare=function(y){var b=g.fromValue(y);if(this.equals(b))return 0;var _=this.isNegative(),m=b.isNegative();return _&&!m?-1:!_&&m?1:this.subtract(b).isNegative()?-1:1},g.prototype.negate=function(){return this.equals(g.MIN_VALUE)?g.MIN_VALUE:this.not().add(g.ONE)},g.prototype.add=function(y){var b=g.fromValue(y),_=this.high>>>16,m=65535&this.high,x=this.low>>>16,E=65535&this.low,O=b.high>>>16,S=65535&b.high,T=b.low>>>16,P=0,I=0,k=0,L=0;return k+=(L+=E+(65535&b.low))>>>16,L&=65535,I+=(k+=x+T)>>>16,k&=65535,P+=(I+=m+S)>>>16,I&=65535,P+=_+O,P&=65535,g.fromBits(k<<16|L,P<<16|I)},g.prototype.subtract=function(y){var b=g.fromValue(y);return this.add(b.negate())},g.prototype.multiply=function(y){if(this.isZero())return g.ZERO;var b=g.fromValue(y);if(b.isZero())return g.ZERO;if(this.equals(g.MIN_VALUE))return b.isOdd()?g.MIN_VALUE:g.ZERO;if(b.equals(g.MIN_VALUE))return this.isOdd()?g.MIN_VALUE:g.ZERO;if(this.isNegative())return b.isNegative()?this.negate().multiply(b.negate()):this.negate().multiply(b).negate();if(b.isNegative())return this.multiply(b.negate()).negate();if(this.lessThan(l)&&b.lessThan(l))return g.fromNumber(this.toNumber()*b.toNumber());var _=this.high>>>16,m=65535&this.high,x=this.low>>>16,E=65535&this.low,O=b.high>>>16,S=65535&b.high,T=b.low>>>16,P=65535&b.low,I=0,k=0,L=0,B=0;return L+=(B+=E*P)>>>16,B&=65535,k+=(L+=x*P)>>>16,L&=65535,k+=(L+=E*T)>>>16,L&=65535,I+=(k+=m*P)>>>16,k&=65535,I+=(k+=x*T)>>>16,k&=65535,I+=(k+=E*S)>>>16,k&=65535,I+=_*P+m*T+x*S+E*O,I&=65535,g.fromBits(L<<16|B,I<<16|k)},g.prototype.div=function(y){var b,_,m,x=g.fromValue(y);if(x.isZero())throw(0,n.newError)("division by zero");if(this.isZero())return g.ZERO;if(this.equals(g.MIN_VALUE))return x.equals(g.ONE)||x.equals(g.NEG_ONE)?g.MIN_VALUE:x.equals(g.MIN_VALUE)?g.ONE:(b=this.shiftRight(1).div(x).shiftLeft(1)).equals(g.ZERO)?x.isNegative()?g.ONE:g.NEG_ONE:(_=this.subtract(x.multiply(b)),m=b.add(_.div(x)));if(x.equals(g.MIN_VALUE))return g.ZERO;if(this.isNegative())return x.isNegative()?this.negate().div(x.negate()):this.negate().div(x).negate();if(x.isNegative())return this.div(x.negate()).negate();for(m=g.ZERO,_=this;_.greaterThanOrEqual(x);){b=Math.max(1,Math.floor(_.toNumber()/x.toNumber()));for(var E=Math.ceil(Math.log(b)/Math.LN2),O=E<=48?1:Math.pow(2,E-48),S=g.fromNumber(b),T=S.multiply(x);T.isNegative()||T.greaterThan(_);)b-=O,T=(S=g.fromNumber(b)).multiply(x);S.isZero()&&(S=g.ONE),m=m.add(S),_=_.subtract(T)}return m},g.prototype.modulo=function(y){var b=g.fromValue(y);return this.subtract(this.div(b).multiply(b))},g.prototype.not=function(){return g.fromBits(~this.low,~this.high)},g.prototype.and=function(y){var b=g.fromValue(y);return g.fromBits(this.low&b.low,this.high&b.high)},g.prototype.or=function(y){var b=g.fromValue(y);return g.fromBits(this.low|b.low,this.high|b.high)},g.prototype.xor=function(y){var b=g.fromValue(y);return g.fromBits(this.low^b.low,this.high^b.high)},g.prototype.shiftLeft=function(y){var b=g.toNumber(y);return(b&=63)==0?g.ZERO:b<32?g.fromBits(this.low<>>32-b):g.fromBits(0,this.low<>>b|this.high<<32-b,this.high>>b):g.fromBits(this.high>>b-32,this.high>=0?0:-1)},g.isInteger=function(y){return(y==null?void 0:y.__isInteger__)===!0},g.fromInt=function(y){var b;if((y|=0)>=-128&&y<128&&(b=i.get(y))!=null)return b;var _=new g(y,y<0?-1:0);return y>=-128&&y<128&&i.set(y,_),_},g.fromBits=function(y,b){return new g(y,b)},g.fromNumber=function(y){return isNaN(y)||!isFinite(y)?g.ZERO:y<=-u?g.MIN_VALUE:y+1>=u?g.MAX_VALUE:y<0?g.fromNumber(-y).negate():new g(y%s|0,y/s|0)},g.fromString=function(y,b,_){var m,x=(_===void 0?{}:_).strictStringValidation;if(y.length===0)throw(0,n.newError)("number format error: empty string");if(y==="NaN"||y==="Infinity"||y==="+Infinity"||y==="-Infinity")return g.ZERO;if((b=b??10)<2||b>36)throw(0,n.newError)("radix out of range: "+b.toString());if((m=y.indexOf("-"))>0)throw(0,n.newError)('number format error: interior "-" character: '+y);if(m===0)return g.fromString(y.substring(1),b).negate();for(var E=g.fromNumber(Math.pow(b,8)),O=g.ZERO,S=0;S{Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function n(){}return n.prototype.resolve=function(){throw new Error("Abstract function")},n.prototype._resolveToItself=function(i){return Promise.resolve([i])},n})();e.default=t},3399:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.config=void 0,e.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3448:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(y){for(var b,_=1,m=arguments.length;_0)&&!(m=E.next()).done;)O.push(m.value)}catch(S){x={error:S}}finally{try{m&&!m.done&&(_=E.return)&&_.call(E)}finally{if(x)throw x.error}}return O},a=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0});var o=t(9305),s=t(7168),u=t(3321),l=t(5973),c=a(t(6661)),f=o.internal.temporalUtil,d=f.dateToEpochDay,h=f.localDateTimeToEpochSecond,p=f.localTimeToNanoOfDay;function g(y,b,_){if(!b&&!_)return y;var m=function(S){return _?S.toBigInt():S.toNumberOrInfinity()},x=Object.create(Object.getPrototypeOf(y));for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)===!0){var O=y[E];x[E]=(0,o.isInt)(O)?m(O):O}return Object.freeze(x),x}e.default=n(n({},c.default),{createPoint2DTransformer:function(){return new u.TypeTransformer({signature:88,isTypeInstance:function(y){return(0,o.isPoint)(y)&&(y.z===null||y.z===void 0)},toStructure:function(y){return new s.structure.Structure(88,[(0,o.int)(y.srid),y.x,y.y])},fromStructure:function(y){s.structure.verifyStructSize("Point2D",3,y.size);var b=i(y.fields,3),_=b[0],m=b[1],x=b[2];return new o.Point(_,m,x,void 0)}})},createPoint3DTransformer:function(){return new u.TypeTransformer({signature:89,isTypeInstance:function(y){return(0,o.isPoint)(y)&&y.z!==null&&y.z!==void 0},toStructure:function(y){return new s.structure.Structure(89,[(0,o.int)(y.srid),y.x,y.y,y.z])},fromStructure:function(y){s.structure.verifyStructSize("Point3D",4,y.size);var b=i(y.fields,4),_=b[0],m=b[1],x=b[2],E=b[3];return new o.Point(_,m,x,E)}})},createDurationTransformer:function(){return new u.TypeTransformer({signature:69,isTypeInstance:o.isDuration,toStructure:function(y){var b=(0,o.int)(y.months),_=(0,o.int)(y.days),m=(0,o.int)(y.seconds),x=(0,o.int)(y.nanoseconds);return new s.structure.Structure(69,[b,_,m,x])},fromStructure:function(y){s.structure.verifyStructSize("Duration",4,y.size);var b=i(y.fields,4),_=b[0],m=b[1],x=b[2],E=b[3];return new o.Duration(_,m,x,E)}})},createLocalTimeTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:116,isTypeInstance:o.isLocalTime,toStructure:function(m){var x=p(m.hour,m.minute,m.second,m.nanosecond);return new s.structure.Structure(116,[x])},fromStructure:function(m){s.structure.verifyStructSize("LocalTime",1,m.size);var x=i(m.fields,1)[0];return g((0,l.nanoOfDayToLocalTime)(x),b,_)}})},createTimeTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:84,isTypeInstance:o.isTime,toStructure:function(m){var x=p(m.hour,m.minute,m.second,m.nanosecond),E=(0,o.int)(m.timeZoneOffsetSeconds);return new s.structure.Structure(84,[x,E])},fromStructure:function(m){s.structure.verifyStructSize("Time",2,m.size);var x=i(m.fields,2),E=x[0],O=x[1],S=(0,l.nanoOfDayToLocalTime)(E);return g(new o.Time(S.hour,S.minute,S.second,S.nanosecond,O),b,_)}})},createDateTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:68,isTypeInstance:o.isDate,toStructure:function(m){var x=d(m.year,m.month,m.day);return new s.structure.Structure(68,[x])},fromStructure:function(m){s.structure.verifyStructSize("Date",1,m.size);var x=i(m.fields,1)[0];return g((0,l.epochDayToDate)(x),b,_)}})},createLocalDateTimeTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:100,isTypeInstance:o.isLocalDateTime,toStructure:function(m){var x=h(m.year,m.month,m.day,m.hour,m.minute,m.second,m.nanosecond),E=(0,o.int)(m.nanosecond);return new s.structure.Structure(100,[x,E])},fromStructure:function(m){s.structure.verifyStructSize("LocalDateTime",2,m.size);var x=i(m.fields,2),E=x[0],O=x[1];return g((0,l.epochSecondAndNanoToLocalDateTime)(E,O),b,_)}})},createDateTimeWithZoneIdTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:102,isTypeInstance:function(m){return(0,o.isDateTime)(m)&&m.timeZoneId!=null},toStructure:function(m){var x=h(m.year,m.month,m.day,m.hour,m.minute,m.second,m.nanosecond),E=(0,o.int)(m.nanosecond),O=m.timeZoneId;return new s.structure.Structure(102,[x,E,O])},fromStructure:function(m){s.structure.verifyStructSize("DateTimeWithZoneId",3,m.size);var x=i(m.fields,3),E=x[0],O=x[1],S=x[2],T=(0,l.epochSecondAndNanoToLocalDateTime)(E,O);return g(new o.DateTime(T.year,T.month,T.day,T.hour,T.minute,T.second,T.nanosecond,null,S),b,_)}})},createDateTimeWithOffsetTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:70,isTypeInstance:function(m){return(0,o.isDateTime)(m)&&m.timeZoneId==null},toStructure:function(m){var x=h(m.year,m.month,m.day,m.hour,m.minute,m.second,m.nanosecond),E=(0,o.int)(m.nanosecond),O=(0,o.int)(m.timeZoneOffsetSeconds);return new s.structure.Structure(70,[x,E,O])},fromStructure:function(m){s.structure.verifyStructSize("DateTimeWithZoneOffset",3,m.size);var x=i(m.fields,3),E=x[0],O=x[1],S=x[2],T=(0,l.epochSecondAndNanoToLocalDateTime)(E,O);return g(new o.DateTime(T.year,T.month,T.day,T.hour,T.minute,T.second,T.nanosecond,S,null),b,_)}})}})},3466:function(r,e,t){var n=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(8813),a=t(9419),o=n(t(3057)),s=t(9305),u=n(t(5742)),l=n(t(1530)),c=n(t(9823)),f=s.internal.constants,d=f.ACCESS_MODE_READ,h=f.ACCESS_MODE_WRITE,p=f.TELEMETRY_APIS,g=s.internal.txConfig.TxConfig,y=(function(){function b(_){var m=_===void 0?{}:_,x=m.session,E=m.config,O=m.log;this._session=x,this._retryLogic=(function(S){var T=S&&S.maxTransactionRetryTime?S.maxTransactionRetryTime:null;return new c.default({maxRetryTimeout:T})})(E),this._log=O}return b.prototype.run=function(_,m,x){var E=this;return new o.default(new i.Observable(function(O){try{O.next(E._session.run(_,m,x)),O.complete()}catch(S){O.error(S)}return function(){}}))},b.prototype.beginTransaction=function(_){return this._beginTransaction(this._session._mode,_,{api:p.UNMANAGED_TRANSACTION})},b.prototype.readTransaction=function(_,m){return this._runTransaction(d,_,m)},b.prototype.writeTransaction=function(_,m){return this._runTransaction(h,_,m)},b.prototype.executeRead=function(_,m){return this._executeInTransaction(d,_,m)},b.prototype.executeWrite=function(_,m){return this._executeInTransaction(h,_,m)},b.prototype._executeInTransaction=function(_,m,x){return this._runTransaction(_,m,x,function(E){return new l.default({run:E.run.bind(E)})})},b.prototype.close=function(){var _=this;return new i.Observable(function(m){_._session.close().then(function(){m.complete()}).catch(function(x){return m.error(x)})})},b.prototype[Symbol.asyncDispose]=function(){return this.close()},b.prototype.lastBookmark=function(){return this.lastBookmarks()},b.prototype.lastBookmarks=function(){return this._session.lastBookmarks()},b.prototype._beginTransaction=function(_,m,x){var E=this,O=g.empty();return m&&(O=new g(m,this._log)),new i.Observable(function(S){try{E._session._beginTransaction(_,O,x).then(function(T){S.next(new u.default(T)),S.complete()}).catch(function(T){return S.error(T)})}catch(T){S.error(T)}return function(){}})},b.prototype._runTransaction=function(_,m,x,E){var O=this;E===void 0&&(E=function(P){return P});var S=g.empty();x&&(S=new g(x));var T={apiTelemetryConfig:{api:p.MANAGED_TRANSACTION,onTelemetrySuccess:function(){T.apiTelemetryConfig=void 0}}};return this._retryLogic.retry((0,i.of)(1).pipe((0,a.mergeMap)(function(){return O._beginTransaction(_,S,T.apiTelemetryConfig)}),(0,a.mergeMap)(function(P){return(0,i.defer)(function(){try{return m(E(P))}catch(I){return(0,i.throwError)(function(){return I})}}).pipe((0,a.catchError)(function(I){return P.rollback().pipe((0,a.concatWith)((0,i.throwError)(function(){return I})))}),(0,a.concatWith)(P.commit()))})))},b})();e.default=y},3473:function(r,e,t){var n=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(t(5319)),a=t(9305),o=n(t(1048)),s=new(t(8888)).StringDecoder("utf8");e.default={encode:function(u){return new i.default((function(l){return typeof o.default.Buffer.from=="function"?o.default.Buffer.from(l,"utf8"):new o.default.Buffer(l,"utf8")})(u))},decode:function(u,l){if(Object.prototype.hasOwnProperty.call(u,"_buffer"))return(function(c,f){var d=c.position,h=d+f;return c.position=Math.min(h,c.length),c._buffer.toString("utf8",d,h)})(u,l);if(Object.prototype.hasOwnProperty.call(u,"_buffers"))return(function(c,f){return(function(d,h){var p=h,g=d.position;return d._updatePos(Math.min(h,d.length-g)),d._buffers.reduce(function(y,b){if(p<=0)return y;if(g>=b.length)return g-=b.length,"";b._updatePos(g-b.position);var _=Math.min(b.length-g,p),m=b.readSlice(_);return b._updatePos(_),p=Math.max(p-m.length,0),g=0,y+(function(x){return s.write(x._buffer)})(m)},"")+s.end()})(c,f)})(u,l);throw(0,a.newError)("Don't know how to decode strings from '".concat(u,"'"))}}},3488:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(a,o,s,u){u===void 0&&(u=s);var l=Object.getOwnPropertyDescriptor(o,s);l&&!("get"in l?!o.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(a,u,l)}:function(a,o,s,u){u===void 0&&(u=s),a[u]=o[s]}),i=this&&this.__exportStar||function(a,o){for(var s in a)s==="default"||Object.prototype.hasOwnProperty.call(o,s)||n(o,a,s)};Object.defineProperty(e,"__esModule",{value:!0}),i(t(5837),e)},3545:function(r,e,t){var n=this&&this.__extends||(function(){var b=function(_,m){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var O in E)Object.prototype.hasOwnProperty.call(E,O)&&(x[O]=E[O])},b(_,m)};return function(_,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function x(){this.constructor=_}b(_,m),_.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}})(),i=this&&this.__awaiter||function(b,_,m,x){return new(m||(m=Promise))(function(E,O){function S(I){try{P(x.next(I))}catch(k){O(k)}}function T(I){try{P(x.throw(I))}catch(k){O(k)}}function P(I){var k;I.done?E(I.value):(k=I.value,k instanceof m?k:new m(function(L){L(k)})).then(S,T)}P((x=x.apply(b,_||[])).next())})},a=this&&this.__generator||function(b,_){var m,x,E,O,S={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return O={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function T(P){return function(I){return(function(k){if(m)throw new TypeError("Generator is already executing.");for(;O&&(O=0,k[0]&&(S=0)),S;)try{if(m=1,x&&(E=2&k[0]?x.return:k[0]?x.throw||((E=x.return)&&E.call(x),0):x.next)&&!(E=E.call(x,k[1])).done)return E;switch(x=0,E&&(k=[2&k[0],E.value]),k[0]){case 0:case 1:E=k;break;case 4:return S.label++,{value:k[1],done:!1};case 5:S.label++,x=k[1],k=[0];continue;case 7:k=S.ops.pop(),S.trys.pop();continue;default:if(!((E=(E=S.trys).length>0&&E[E.length-1])||k[0]!==6&&k[0]!==2)){S=0;continue}if(k[0]===3&&(!E||k[1]>E[0]&&k[1]=d})];case 1:return[2,m.sent()]}})})},_.prototype.getNegotiatedProtocolVersion=function(){var m=this;return new Promise(function(x,E){m._hasProtocolVersion(x).catch(E)})},_.prototype.supportsTransactionConfig=function(){return i(this,void 0,void 0,function(){return a(this,function(m){switch(m.label){case 0:return[4,this._hasProtocolVersion(function(x){return x>=f})];case 1:return[2,m.sent()]}})})},_.prototype.supportsUserImpersonation=function(){return i(this,void 0,void 0,function(){return a(this,function(m){switch(m.label){case 0:return[4,this._hasProtocolVersion(function(x){return x>=h})];case 1:return[2,m.sent()]}})})},_.prototype.supportsSessionAuth=function(){return i(this,void 0,void 0,function(){return a(this,function(m){switch(m.label){case 0:return[4,this._hasProtocolVersion(function(x){return x>=p})];case 1:return[2,m.sent()]}})})},_.prototype.verifyAuthentication=function(m){var x=m.auth;return i(this,void 0,void 0,function(){var E=this;return a(this,function(O){return[2,this._verifyAuthentication({auth:x,getAddress:function(){return E._address}})]})})},_.prototype.verifyConnectivityAndGetServerInfo=function(){return i(this,void 0,void 0,function(){return a(this,function(m){switch(m.label){case 0:return[4,this._verifyConnectivityAndGetServerVersion({address:this._address})];case 1:return[2,m.sent()]}})})},_})(s.default);e.default=y},3555:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.finalize=void 0;var n=t(7843);e.finalize=function(i){return n.operate(function(a,o){try{a.subscribe(o)}finally{o.add(i)}})}},3618:function(r,e,t){var n=this&&this.__extends||(function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(_[x]=m[x])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function _(){this.constructor=y}g(y,b),y.prototype=b===null?Object.create(b):(_.prototype=b.prototype,new _)}})(),i=this&&this.__awaiter||function(g,y,b,_){return new(b||(b=Promise))(function(m,x){function E(T){try{S(_.next(T))}catch(P){x(P)}}function O(T){try{S(_.throw(T))}catch(P){x(P)}}function S(T){var P;T.done?m(T.value):(P=T.value,P instanceof b?P:new b(function(I){I(P)})).then(E,O)}S((_=_.apply(g,y||[])).next())})},a=this&&this.__generator||function(g,y){var b,_,m,x,E={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return x={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(x[Symbol.iterator]=function(){return this}),x;function O(S){return function(T){return(function(P){if(b)throw new TypeError("Generator is already executing.");for(;x&&(x=0,P[0]&&(E=0)),E;)try{if(b=1,_&&(m=2&P[0]?_.return:P[0]?_.throw||((m=_.return)&&m.call(_),0):_.next)&&!(m=m.call(_,P[1])).done)return m;switch(_=0,m&&(P=[2&P[0],m.value]),P[0]){case 0:case 1:m=P;break;case 4:return E.label++,{value:P[1],done:!1};case 5:E.label++,_=P[1],P=[0];continue;case 7:P=E.ops.pop(),E.trys.pop();continue;default:if(!((m=(m=E.trys).length>0&&m[m.length-1])||P[0]!==6&&P[0]!==2)){E=0;continue}if(P[0]===3&&(!m||P[1]>m[0]&&P[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.joinAllInternals=void 0;var n=t(6640),i=t(1251),a=t(2706),o=t(983),s=t(2343);e.joinAllInternals=function(u,l){return a.pipe(s.toArray(),o.mergeMap(function(c){return u(c)}),l?i.mapOneOrManyArgs(l):n.identity)}},3659:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default="5.28.2"},3692:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var n=t(5006),i=t(827);e.asapScheduler=new i.AsapScheduler(n.AsapAction),e.asap=e.asapScheduler},3862:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var n=t(2628),i=t(3229);e.animationFrameScheduler=new i.AnimationFrameScheduler(n.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler},3865:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.concat=void 0;var n=t(8158),i=t(1107),a=t(4917);e.concat=function(){for(var o=[],s=0;s{Object.defineProperty(e,"__esModule",{value:!0}),e.switchMap=void 0;var n=t(9445),i=t(7843),a=t(3111);e.switchMap=function(o,s){return i.operate(function(u,l){var c=null,f=0,d=!1,h=function(){return d&&!c&&l.complete()};u.subscribe(a.createOperatorSubscriber(l,function(p){c==null||c.unsubscribe();var g=0,y=f++;n.innerFrom(o(p,y)).subscribe(c=a.createOperatorSubscriber(l,function(b){return l.next(s?s(p,b,y,g++):b)},function(){c=null,h()}))},function(){d=!0,h()}))})}},3951:function(r,e,t){var n=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.ClientCertificatesLoader=e.HostNameResolver=e.Channel=void 0;var i=n(t(6245)),a=n(t(2199)),o=n(t(614));e.Channel=i.default,e.HostNameResolver=a.default,e.ClientCertificatesLoader=o.default},3964:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.tap=void 0;var n=t(1018),i=t(7843),a=t(3111),o=t(6640);e.tap=function(s,u,l){var c=n.isFunction(s)||u||l?{next:s,error:u,complete:l}:s;return c?i.operate(function(f,d){var h;(h=c.subscribe)===null||h===void 0||h.call(c);var p=!0;f.subscribe(a.createOperatorSubscriber(d,function(g){var y;(y=c.next)===null||y===void 0||y.call(c,g),d.next(g)},function(){var g;p=!1,(g=c.complete)===null||g===void 0||g.call(c),d.complete()},function(g){var y;p=!1,(y=c.error)===null||y===void 0||y.call(c,g),d.error(g)},function(){var g,y;p&&((g=c.unsubscribe)===null||g===void 0||g.call(c)),(y=c.finalize)===null||y===void 0||y.call(c)}))}):o.identity}},3982:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.skip=void 0;var n=t(783);e.skip=function(i){return n.filter(function(a,o){return i<=o})}},4027:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=void 0;var n=t(93);e.stringify=function(i,a){return JSON.stringify(i,function(o,s){return(0,n.isBrokenObject)(s)?{__isBrokenObject__:!0,__reason__:(0,n.getBrokenObjectReason)(s)}:typeof s=="bigint"?"".concat(s,"n"):(a==null?void 0:a.sortedElements)!==!0||typeof s!="object"||Array.isArray(s)?(a==null?void 0:a.useCustomToString)!==!0||typeof s!="object"||Array.isArray(s)||typeof s.toString!="function"||s.toString===Object.prototype.toString?s:s==null?void 0:s.toString():Object.keys(s).sort().reduce(function(u,l){return u[l]=s[l],u},{})})}},4092:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.timer=void 0;var n=t(4662),i=t(7961),a=t(8613),o=t(1074);e.timer=function(s,u,l){s===void 0&&(s=0),l===void 0&&(l=i.async);var c=-1;return u!=null&&(a.isScheduler(u)?l=u:c=u),new n.Observable(function(f){var d=o.isValidDate(s)?+s-l.now():s;d<0&&(d=0);var h=0;return l.schedule(function(){f.closed||(f.next(h++),0<=c?this.schedule(void 0,c):f.complete())},d)})}},4132:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0});var i=(function(a){function o(s){var u=a.call(this)||this;return u._connection=s,u}return n(o,a),o.prototype.acquireConnection=function(s){var u=s===void 0?{}:s,l=(u.accessMode,u.database,u.bookmarks,this._connection);return this._connection=null,Promise.resolve(l)},o})(t(9305).ConnectionProvider);e.default=i},4151:function(r,e,t){var n=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(t(9018)),a=(t(9305),(function(){function o(s){this._routingContext=s}return o.prototype.lookupRoutingTableOnRouter=function(s,u,l,c){var f=this;return s._acquireConnection(function(d){return f._requestRawRoutingTable(d,s,u,l,c).then(function(h){return h.isNull?null:i.default.fromRawRoutingTable(u,l,h)})})},o.prototype._requestRawRoutingTable=function(s,u,l,c,f){var d=this;return new Promise(function(h,p){s.protocol().requestRoutingInformation({routingContext:d._routingContext,databaseName:l,impersonatedUser:f,sessionContext:{bookmarks:u._lastBookmarks,mode:u._mode,database:u._database,afterComplete:u._onComplete},onCompleted:h,onError:p})})},o})());e.default=a},4209:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.iif=void 0;var n=t(9353);e.iif=function(i,a,o){return n.defer(function(){return i()?a:o})}},4212:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.QueueAction=void 0;var i=(function(a){function o(s,u){var l=a.call(this,s,u)||this;return l.scheduler=s,l.work=u,l}return n(o,a),o.prototype.schedule=function(s,u){return u===void 0&&(u=0),u>0?a.prototype.schedule.call(this,s,u):(this.delay=u,this.state=s,this.scheduler.flush(this),this)},o.prototype.execute=function(s,u){return u>0||this.closed?a.prototype.execute.call(this,s,u):this._execute(s,u)},o.prototype.requestAsyncId=function(s,u,l){return l===void 0&&(l=0),l!=null&&l>0||l==null&&this.delay>0?a.prototype.requestAsyncId.call(this,s,u,l):(s.flush(this),0)},o})(t(5267).AsyncAction);e.QueueAction=i},4271:function(r,e,t){var n=this&&this.__awaiter||function(s,u,l,c){return new(l||(l=Promise))(function(f,d){function h(y){try{g(c.next(y))}catch(b){d(b)}}function p(y){try{g(c.throw(y))}catch(b){d(b)}}function g(y){var b;y.done?f(y.value):(b=y.value,b instanceof l?b:new l(function(_){_(b)})).then(h,p)}g((c=c.apply(s,u||[])).next())})},i=this&&this.__generator||function(s,u){var l,c,f,d,h={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return d={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(g){return function(y){return(function(b){if(l)throw new TypeError("Generator is already executing.");for(;d&&(d=0,b[0]&&(h=0)),h;)try{if(l=1,c&&(f=2&b[0]?c.return:b[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,b[1])).done)return f;switch(c=0,f&&(b=[2&b[0],f.value]),b[0]){case 0:case 1:f=b;break;case 4:return h.label++,{value:b[1],done:!1};case 5:h.label++,c=b[1],b=[0];continue;case 7:b=h.ops.pop(),h.trys.pop();continue;default:if(!((f=(f=h.trys).length>0&&f[f.length-1])||b[0]!==6&&b[0]!==2)){h=0;continue}if(b[0]===3&&(!f||b[1]>f[0]&&b[1]{Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function n(){}return n.prototype.selectReader=function(i){throw new Error("Abstract function")},n.prototype.selectWriter=function(i){throw new Error("Abstract function")},n})();e.default=t},4325:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{r.exports=function(e){for(var t=[],n=0;n{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeScan=void 0;var n=t(7843),i=t(1983);e.mergeScan=function(a,o,s){return s===void 0&&(s=1/0),n.operate(function(u,l){var c=o;return i.mergeInternals(u,l,function(f,d){return a(c,f,d)},s,function(f){c=f},!1,void 0,function(){return c=null})})}},4440:function(r,e,t){var n=this&&this.__read||function(s,u){var l=typeof Symbol=="function"&&s[Symbol.iterator];if(!l)return s;var c,f,d=l.call(s),h=[];try{for(;(u===void 0||u-- >0)&&!(c=d.next()).done;)h.push(c.value)}catch(p){f={error:p}}finally{try{c&&!c.done&&(l=d.return)&&l.call(d)}finally{if(f)throw f.error}}return h},i=this&&this.__spreadArray||function(s,u){for(var l=0,c=u.length,f=s.length;l{Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0;var n=t(7843),i=t(1342),a=t(3111),o=t(9445);e.debounce=function(s){return n.operate(function(u,l){var c=!1,f=null,d=null,h=function(){if(d==null||d.unsubscribe(),d=null,c){c=!1;var p=f;f=null,l.next(p)}};u.subscribe(a.createOperatorSubscriber(l,function(p){d==null||d.unsubscribe(),c=!0,f=p,d=a.createOperatorSubscriber(l,h,i.noop),o.innerFrom(s(p)).subscribe(d)},function(){h(),l.complete()},void 0,function(){f=d=null}))})}},4520:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.elementAt=void 0;var n=t(7057),i=t(783),a=t(4869),o=t(378),s=t(846);e.elementAt=function(u,l){if(u<0)throw new n.ArgumentOutOfRangeError;var c=arguments.length>=2;return function(f){return f.pipe(i.filter(function(d,h){return h===u}),s.take(1),c?o.defaultIfEmpty(l):a.throwIfEmpty(function(){return new n.ArgumentOutOfRangeError}))}}},4531:function(r,e){var t=this&&this.__awaiter||function(a,o,s,u){return new(s||(s=Promise))(function(l,c){function f(p){try{h(u.next(p))}catch(g){c(g)}}function d(p){try{h(u.throw(p))}catch(g){c(g)}}function h(p){var g;p.done?l(p.value):(g=p.value,g instanceof s?g:new s(function(y){y(g)})).then(f,d)}h((u=u.apply(a,o||[])).next())})},n=this&&this.__generator||function(a,o){var s,u,l,c,f={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(h){return function(p){return(function(g){if(s)throw new TypeError("Generator is already executing.");for(;c&&(c=0,g[0]&&(f=0)),f;)try{if(s=1,u&&(l=2&g[0]?u.return:g[0]?u.throw||((l=u.return)&&l.call(u),0):u.next)&&!(l=l.call(u,g[1])).done)return l;switch(u=0,l&&(g=[2&g[0],l.value]),g[0]){case 0:case 1:l=g;break;case 4:return f.label++,{value:g[1],done:!1};case 5:f.label++,u=g[1],g=[0];continue;case 7:g=f.ops.pop(),f.trys.pop();continue;default:if(!((l=(l=f.trys).length>0&&l[l.length-1])||g[0]!==6&&g[0]!==2)){f=0;continue}if(g[0]===3&&(!l||g[1]>l[0]&&g[1]this._connectionLivenessCheckTimeout?[4,o.resetAndFlush().then(function(){return!0})]:[3,2]);case 1:return[2,u.sent()];case 2:return[2,!0]}})})},Object.defineProperty(a.prototype,"_isCheckDisabled",{get:function(){return this._connectionLivenessCheckTimeout==null||this._connectionLivenessCheckTimeout<0},enumerable:!1,configurable:!0}),a.prototype._isNewlyCreatedConnection=function(o){return o.authToken==null},a})();e.default=i},4569:function(r,e,t){var n,i=this&&this.__extends||(function(){var u=function(l,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(f[h]=d[h])},u(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=l}u(l,c),l.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})(),a=this&&this.__assign||function(){return a=Object.assign||function(u){for(var l,c=1,f=arguments.length;c{Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var n=t(5),i=t(8014),a=t(3327),o=t(2706),s=t(3413),u=t(1018),l=t(9223),c=(function(){function d(h){h&&(this._subscribe=h)}return d.prototype.lift=function(h){var p=new d;return p.source=this,p.operator=h,p},d.prototype.subscribe=function(h,p,g){var y,b=this,_=(y=h)&&y instanceof n.Subscriber||(function(m){return m&&u.isFunction(m.next)&&u.isFunction(m.error)&&u.isFunction(m.complete)})(y)&&i.isSubscription(y)?h:new n.SafeSubscriber(h,p,g);return l.errorContext(function(){var m=b,x=m.operator,E=m.source;_.add(x?x.call(_,E):E?b._subscribe(_):b._trySubscribe(_))}),_},d.prototype._trySubscribe=function(h){try{return this._subscribe(h)}catch(p){h.error(p)}},d.prototype.forEach=function(h,p){var g=this;return new(p=f(p))(function(y,b){var _=new n.SafeSubscriber({next:function(m){try{h(m)}catch(x){b(x),_.unsubscribe()}},error:b,complete:y});g.subscribe(_)})},d.prototype._subscribe=function(h){var p;return(p=this.source)===null||p===void 0?void 0:p.subscribe(h)},d.prototype[a.observable]=function(){return this},d.prototype.pipe=function(){for(var h=[],p=0;p{r.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},4721:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.skipWhile=void 0;var n=t(7843),i=t(3111);e.skipWhile=function(a){return n.operate(function(o,s){var u=!1,l=0;o.subscribe(i.createOperatorSubscriber(s,function(c){return(u||(u=!a(c,l++)))&&s.next(c)}))})}},4746:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},4753:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.exhaustMap=void 0;var n=t(5471),i=t(9445),a=t(7843),o=t(3111);e.exhaustMap=function s(u,l){return l?function(c){return c.pipe(s(function(f,d){return i.innerFrom(u(f,d)).pipe(n.map(function(h,p){return l(f,h,d,p)}))}))}:a.operate(function(c,f){var d=0,h=null,p=!1;c.subscribe(o.createOperatorSubscriber(f,function(g){h||(h=o.createOperatorSubscriber(f,void 0,function(){h=null,p&&f.complete()}),i.innerFrom(u(g,d++)).subscribe(h))},function(){p=!0,!h&&f.complete()}))})}},4780:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.takeUntil=void 0;var n=t(7843),i=t(3111),a=t(9445),o=t(1342);e.takeUntil=function(s){return n.operate(function(u,l){a.innerFrom(s).subscribe(i.createOperatorSubscriber(l,function(){return l.complete()},o.noop)),!l.closed&&u.subscribe(l)})}},4820:function(r,e,t){var n=this&&this.__generator||function(u,l){var c,f,d,h,p={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(y){return function(b){return(function(_){if(c)throw new TypeError("Generator is already executing.");for(;h&&(h=0,_[0]&&(p=0)),p;)try{if(c=1,f&&(d=2&_[0]?f.return:_[0]?f.throw||((d=f.return)&&d.call(f),0):f.next)&&!(d=d.call(f,_[1])).done)return d;switch(f=0,d&&(_=[2&_[0],d.value]),_[0]){case 0:case 1:d=_;break;case 4:return p.label++,{value:_[1],done:!1};case 5:p.label++,f=_[1],_=[0];continue;case 7:_=p.ops.pop(),p.trys.pop();continue;default:if(!((d=(d=p.trys).length>0&&d[d.length-1])||_[0]!==6&&_[0]!==2)){p=0;continue}if(_[0]===3&&(!d||_[1]>d[0]&&_[1]=u.length&&(u=void 0),{value:u&&u[f++],done:!u}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(u,l){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var f,d,h=c.call(u),p=[];try{for(;(l===void 0||l-- >0)&&!(f=h.next()).done;)p.push(f.value)}catch(g){d={error:g}}finally{try{f&&!f.done&&(c=h.return)&&c.call(h)}finally{if(d)throw d.error}}return p};Object.defineProperty(e,"__esModule",{value:!0});var o=t(9691),s=(function(){function u(l,c,f){this.keys=l,this.length=l.length,this._fields=c,this._fieldLookup=f??(function(d){var h={};return d.forEach(function(p,g){h[p]=g}),h})(l)}return u.prototype.forEach=function(l){var c,f;try{for(var d=i(this.entries()),h=d.next();!h.done;h=d.next()){var p=a(h.value,2),g=p[0];l(p[1],g,this)}}catch(y){c={error:y}}finally{try{h&&!h.done&&(f=d.return)&&f.call(d)}finally{if(c)throw c.error}}},u.prototype.map=function(l){var c,f,d=[];try{for(var h=i(this.entries()),p=h.next();!p.done;p=h.next()){var g=a(p.value,2),y=g[0],b=g[1];d.push(l(b,y,this))}}catch(_){c={error:_}}finally{try{p&&!p.done&&(f=h.return)&&f.call(h)}finally{if(c)throw c.error}}return d},u.prototype.entries=function(){var l;return n(this,function(c){switch(c.label){case 0:l=0,c.label=1;case 1:return lthis._fields.length-1||c<0)throw(0,o.newError)("This record has no field with index '"+c.toString()+"'. Remember that indexes start at `0`, and make sure your query returns records in the shape you meant it to.");return this._fields[c]},u.prototype.has=function(l){return typeof l=="number"?l>=0&&l{Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutWith=void 0;var n=t(7961),i=t(1074),a=t(1554);e.timeoutWith=function(o,s,u){var l,c,f;if(u=u??n.async,i.isValidDate(o)?l=o:typeof o=="number"&&(c=o),!s)throw new TypeError("No observable provided to switch to");if(f=function(){return s},l==null&&c==null)throw new TypeError("No timeout provided.");return a.timeout({first:l,each:c,scheduler:u,with:f})}},4869:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throwIfEmpty=void 0;var n=t(2823),i=t(7843),a=t(3111);function o(){return new n.EmptyError}e.throwIfEmpty=function(s){return s===void 0&&(s=o),i.operate(function(u,l){var c=!1;u.subscribe(a.createOperatorSubscriber(l,function(f){c=!0,l.next(f)},function(){return c?l.complete():l.error(s())}))})}},4883:function(r,e,t){var n,i=this&&this.__extends||(function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(_[x]=m[x])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function _(){this.constructor=y}g(y,b),y.prototype=b===null?Object.create(b):(_.prototype=b.prototype,new _)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=void 0;var a=t(9691),o="error",s="warn",u="info",l="debug",c=u,f=((n={})[o]=0,n[s]=1,n[u]=2,n[l]=3,n),d=(function(){function g(y,b){this._level=y,this._loggerFunction=b}return g.create=function(y){if((y==null?void 0:y.logging)!=null){var b=y.logging,_=(function(x){if((x==null?void 0:x.level)!=null){var E=x.level,O=f[E];if(O==null&&O!==0)throw(0,a.newError)("Illegal logging level: ".concat(E,". Supported levels are: ").concat(Object.keys(f).toString()));return E}return c})(b),m=(function(x){var E,O;if((x==null?void 0:x.logger)!=null){var S=x.logger;if(S!=null&&typeof S=="function")return S}throw(0,a.newError)("Illegal logger function: ".concat((O=(E=x==null?void 0:x.logger)===null||E===void 0?void 0:E.toString())!==null&&O!==void 0?O:"undefined"))})(b);return new g(_,m)}return this.noOp()},g.noOp=function(){return h},g.prototype.isErrorEnabled=function(){return p(this._level,o)},g.prototype.error=function(y){this.isErrorEnabled()&&this._loggerFunction(o,y)},g.prototype.isWarnEnabled=function(){return p(this._level,s)},g.prototype.warn=function(y){this.isWarnEnabled()&&this._loggerFunction(s,y)},g.prototype.isInfoEnabled=function(){return p(this._level,u)},g.prototype.info=function(y){this.isInfoEnabled()&&this._loggerFunction(u,y)},g.prototype.isDebugEnabled=function(){return p(this._level,l)},g.prototype.debug=function(y){this.isDebugEnabled()&&this._loggerFunction(l,y)},g})();e.Logger=d;var h=new((function(g){function y(){return g.call(this,u,function(b,_){})||this}return i(y,g),y.prototype.isErrorEnabled=function(){return!1},y.prototype.error=function(b){},y.prototype.isWarnEnabled=function(){return!1},y.prototype.warn=function(b){},y.prototype.isInfoEnabled=function(){return!1},y.prototype.info=function(b){},y.prototype.isDebugEnabled=function(){return!1},y.prototype.debug=function(b){},y})(d));function p(g,y){return f[g]>=f[y]}},4912:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pluck=void 0;var n=t(5471);e.pluck=function(){for(var i=[],a=0;a{Object.defineProperty(e,"__esModule",{value:!0}),e.from=void 0;var n=t(1656),i=t(9445);e.from=function(a,o){return o?n.scheduled(a,o):i.innerFrom(a)}},4953:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleReadableStreamLike=void 0;var n=t(854),i=t(9137);e.scheduleReadableStreamLike=function(a,o){return n.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(a),o)}},5006:function(r,e,t){var n=this&&this.__extends||(function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function c(){this.constructor=u}s(u,l),u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AsapAction=void 0;var i=t(5267),a=t(6293),o=(function(s){function u(l,c){var f=s.call(this,l,c)||this;return f.scheduler=l,f.work=c,f}return n(u,s),u.prototype.requestAsyncId=function(l,c,f){return f===void 0&&(f=0),f!==null&&f>0?s.prototype.requestAsyncId.call(this,l,c,f):(l.actions.push(this),l._scheduled||(l._scheduled=a.immediateProvider.setImmediate(l.flush.bind(l,void 0))))},u.prototype.recycleAsyncId=function(l,c,f){var d;if(f===void 0&&(f=0),f!=null?f>0:this.delay>0)return s.prototype.recycleAsyncId.call(this,l,c,f);var h=l.actions;c!=null&&((d=h[h.length-1])===null||d===void 0?void 0:d.id)!==c&&(a.immediateProvider.clearImmediate(c),l._scheduled===c&&(l._scheduled=void 0))},u})(i.AsyncAction);e.AsapAction=o},5022:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(m,x,E,O){O===void 0&&(O=E);var S=Object.getOwnPropertyDescriptor(x,E);S&&!("get"in S?!x.__esModule:S.writable||S.configurable)||(S={enumerable:!0,get:function(){return x[E]}}),Object.defineProperty(m,O,S)}:function(m,x,E,O){O===void 0&&(O=E),m[O]=x[E]}),i=this&&this.__setModuleDefault||(Object.create?function(m,x){Object.defineProperty(m,"default",{enumerable:!0,value:x})}:function(m,x){m.default=x}),a=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var x={};if(m!=null)for(var E in m)E!=="default"&&Object.prototype.hasOwnProperty.call(m,E)&&n(x,m,E);return i(x,m),x};Object.defineProperty(e,"__esModule",{value:!0}),e.floorMod=e.floorDiv=e.assertValidZoneId=e.assertValidNanosecond=e.assertValidSecond=e.assertValidMinute=e.assertValidHour=e.assertValidDay=e.assertValidMonth=e.assertValidYear=e.timeZoneOffsetInSeconds=e.totalNanoseconds=e.newDate=e.toStandardDate=e.isoStringToStandardDate=e.dateToIsoString=e.timeZoneOffsetToIsoString=e.timeToIsoString=e.durationToIsoString=e.dateToEpochDay=e.localDateTimeToEpochSecond=e.localTimeToNanoOfDay=e.normalizeNanosecondsForDuration=e.normalizeSecondsForDuration=e.SECONDS_PER_DAY=e.DAYS_PER_400_YEAR_CYCLE=e.DAYS_0000_TO_1970=e.NANOS_PER_HOUR=e.NANOS_PER_MINUTE=e.NANOS_PER_MILLISECOND=e.NANOS_PER_SECOND=e.SECONDS_PER_HOUR=e.SECONDS_PER_MINUTE=e.MINUTES_PER_HOUR=e.NANOSECOND_OF_SECOND_RANGE=e.SECOND_OF_MINUTE_RANGE=e.MINUTE_OF_HOUR_RANGE=e.HOUR_OF_DAY_RANGE=e.DAY_OF_MONTH_RANGE=e.MONTH_OF_YEAR_RANGE=e.YEAR_RANGE=void 0;var o=a(t(3371)),s=t(9691),u=t(6587),l=(function(){function m(x,E){this._minNumber=x,this._maxNumber=E,this._minInteger=(0,o.int)(x),this._maxInteger=(0,o.int)(E)}return m.prototype.contains=function(x){if((0,o.isInt)(x)&&x instanceof o.default)return x.greaterThanOrEqual(this._minInteger)&&x.lessThanOrEqual(this._maxInteger);if(typeof x=="bigint"){var E=(0,o.int)(x);return E.greaterThanOrEqual(this._minInteger)&&E.lessThanOrEqual(this._maxInteger)}return x>=this._minNumber&&x<=this._maxNumber},m.prototype.toString=function(){return"[".concat(this._minNumber,", ").concat(this._maxNumber,"]")},m})();function c(m,x,E){m=(0,o.int)(m),x=(0,o.int)(x),E=(0,o.int)(E);var O=m.multiply(365);return O=(O=(O=m.greaterThanOrEqual(0)?O.add(m.add(3).div(4).subtract(m.add(99).div(100)).add(m.add(399).div(400))):O.subtract(m.div(-4).subtract(m.div(-100)).add(m.div(-400)))).add(x.multiply(367).subtract(362).div(12))).add(E.subtract(1)),x.greaterThan(2)&&(O=O.subtract(1),(function(S){return!(!(S=(0,o.int)(S)).modulo(4).equals(0)||S.modulo(100).equals(0)&&!S.modulo(400).equals(0))})(m)||(O=O.subtract(1))),O.subtract(e.DAYS_0000_TO_1970)}function f(m,x){return m===1?x%400==0||x%4==0&&x%100!=0?29:28:[0,2,4,6,7,9,11].includes(m)?31:30}e.YEAR_RANGE=new l(-999999999,999999999),e.MONTH_OF_YEAR_RANGE=new l(1,12),e.DAY_OF_MONTH_RANGE=new l(1,31),e.HOUR_OF_DAY_RANGE=new l(0,23),e.MINUTE_OF_HOUR_RANGE=new l(0,59),e.SECOND_OF_MINUTE_RANGE=new l(0,59),e.NANOSECOND_OF_SECOND_RANGE=new l(0,999999999),e.MINUTES_PER_HOUR=60,e.SECONDS_PER_MINUTE=60,e.SECONDS_PER_HOUR=e.SECONDS_PER_MINUTE*e.MINUTES_PER_HOUR,e.NANOS_PER_SECOND=1e9,e.NANOS_PER_MILLISECOND=1e6,e.NANOS_PER_MINUTE=e.NANOS_PER_SECOND*e.SECONDS_PER_MINUTE,e.NANOS_PER_HOUR=e.NANOS_PER_MINUTE*e.MINUTES_PER_HOUR,e.DAYS_0000_TO_1970=719528,e.DAYS_PER_400_YEAR_CYCLE=146097,e.SECONDS_PER_DAY=86400,e.normalizeSecondsForDuration=function(m,x){return(0,o.int)(m).add(g(x,e.NANOS_PER_SECOND))},e.normalizeNanosecondsForDuration=function(m){return y(m,e.NANOS_PER_SECOND)},e.localTimeToNanoOfDay=function(m,x,E,O){m=(0,o.int)(m),x=(0,o.int)(x),E=(0,o.int)(E),O=(0,o.int)(O);var S=m.multiply(e.NANOS_PER_HOUR);return(S=(S=S.add(x.multiply(e.NANOS_PER_MINUTE))).add(E.multiply(e.NANOS_PER_SECOND))).add(O)},e.localDateTimeToEpochSecond=function(m,x,E,O,S,T,P){var I=c(m,x,E),k=(function(L,B,j){L=(0,o.int)(L),B=(0,o.int)(B),j=(0,o.int)(j);var z=L.multiply(e.SECONDS_PER_HOUR);return(z=z.add(B.multiply(e.SECONDS_PER_MINUTE))).add(j)})(O,S,T);return I.multiply(e.SECONDS_PER_DAY).add(k)},e.dateToEpochDay=c,e.durationToIsoString=function(m,x,E,O){var S=_(m),T=_(x),P=(function(I,k){var L,B;I=(0,o.int)(I),k=(0,o.int)(k);var j=I.isNegative(),z=k.greaterThan(0);return L=j&&z?I.equals(-1)?"-0":I.add(1).toString():I.toString(),z&&(B=b(j?k.negate().add(2*e.NANOS_PER_SECOND).modulo(e.NANOS_PER_SECOND):k.add(e.NANOS_PER_SECOND).modulo(e.NANOS_PER_SECOND))),B!=null?L+B:L})(E,O);return"P".concat(S,"M").concat(T,"DT").concat(P,"S")},e.timeToIsoString=function(m,x,E,O){var S=_(m,2),T=_(x,2),P=_(E,2),I=b(O);return"".concat(S,":").concat(T,":").concat(P).concat(I)},e.timeZoneOffsetToIsoString=function(m){if((m=(0,o.int)(m)).equals(0))return"Z";var x=m.isNegative();x&&(m=m.multiply(-1));var E=x?"-":"+",O=_(m.div(e.SECONDS_PER_HOUR),2),S=_(m.div(e.SECONDS_PER_MINUTE).modulo(e.MINUTES_PER_HOUR),2),T=m.modulo(e.SECONDS_PER_MINUTE),P=T.equals(0)?null:_(T,2);return P!=null?"".concat(E).concat(O,":").concat(S,":").concat(P):"".concat(E).concat(O,":").concat(S)},e.dateToIsoString=function(m,x,E){var O=(function(P){var I=(0,o.int)(P);return I.isNegative()||I.greaterThan(9999)?_(I,6,{usePositiveSign:!0}):_(I,4)})(m),S=_(x,2),T=_(E,2);return"".concat(O,"-").concat(S,"-").concat(T)},e.isoStringToStandardDate=function(m){return new Date(m)},e.toStandardDate=function(m){return new Date(m)},e.newDate=function(m){return new Date(m)},e.totalNanoseconds=function(m,x){return(function(E,O){return E instanceof o.default?E.add(O):typeof E=="bigint"?E+BigInt(O):E+O})(x=x??0,m.getMilliseconds()*e.NANOS_PER_MILLISECOND)},e.timeZoneOffsetInSeconds=function(m){var x=m.getSeconds()-m.getUTCSeconds(),E=m.getMinutes()-m.getUTCMinutes(),O=m.getHours()-m.getUTCHours(),S=(function(T){return T.getMonth()===T.getUTCMonth()?T.getDate()-T.getUTCDate():T.getFullYear()>T.getUTCFullYear()||T.getMonth()>T.getUTCMonth()&&T.getFullYear()===T.getUTCFullYear()?T.getDate()+f(T.getUTCMonth(),T.getUTCFullYear())-T.getUTCDate():T.getDate()-(T.getUTCDate()+f(T.getMonth(),T.getFullYear()))})(m);return O*e.SECONDS_PER_HOUR+E*e.SECONDS_PER_MINUTE+x+S*e.SECONDS_PER_DAY},e.assertValidYear=function(m){return p(m,e.YEAR_RANGE,"Year")},e.assertValidMonth=function(m){return p(m,e.MONTH_OF_YEAR_RANGE,"Month")},e.assertValidDay=function(m){return p(m,e.DAY_OF_MONTH_RANGE,"Day")},e.assertValidHour=function(m){return p(m,e.HOUR_OF_DAY_RANGE,"Hour")},e.assertValidMinute=function(m){return p(m,e.MINUTE_OF_HOUR_RANGE,"Minute")},e.assertValidSecond=function(m){return p(m,e.SECOND_OF_MINUTE_RANGE,"Second")},e.assertValidNanosecond=function(m){return p(m,e.NANOSECOND_OF_SECOND_RANGE,"Nanosecond")};var d=new Map,h=function(m,x){return(0,s.newError)("".concat(x,' is expected to be a valid ZoneId but was: "').concat(m,'"'))};function p(m,x,E){if((0,u.assertNumberOrInteger)(m,E),!x.contains(m))throw(0,s.newError)("".concat(E," is expected to be in range ").concat(x.toString()," but was: ").concat(m.toString()));return m}function g(m,x){m=(0,o.int)(m),x=(0,o.int)(x);var E=m.div(x);return m.isPositive()!==x.isPositive()&&E.multiply(x).notEquals(m)&&(E=E.subtract(1)),E}function y(m,x){return m=(0,o.int)(m),x=(0,o.int)(x),m.subtract(g(m,x).multiply(x))}function b(m){return(m=(0,o.int)(m)).equals(0)?"":"."+_(m,9)}function _(m,x,E){var O=(m=(0,o.int)(m)).isNegative();O&&(m=m.negate());var S=m.toString();if(x!=null)for(;S.length0)&&!(b=m.next()).done;)x.push(b.value)}catch(E){_={error:E}}finally{try{b&&!b.done&&(y=m.return)&&y.call(m)}finally{if(_)throw _.error}}return x},i=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0});var a=t(7168),o=t(9305),s=i(t(7518)),u=t(5973),l=t(6492),c=o.internal.temporalUtil.localDateTimeToEpochSecond,f=new Map;function d(p,g,y){var b=(function(E){if(!f.has(E)){var O=new Intl.DateTimeFormat("en-US",{timeZone:E,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1,era:"narrow"});f.set(E,O)}return f.get(E)})(p),_=(0,o.int)(g).multiply(1e3).add((0,o.int)(y).div(1e6)).toNumber(),m=b.formatToParts(_).reduce(function(E,O){return O.type==="era"?E.adjustEra=O.value.toUpperCase()==="B"?function(S){return S.subtract(1).negate()}:l.identity:O.type==="hour"?E.hour=(0,o.int)(O.value).modulo(24):O.type!=="literal"&&(E[O.type]=(0,o.int)(O.value)),E},{});m.year=m.adjustEra(m.year);var x=c(m.year,m.month,m.day,m.hour,m.minute,m.second,m.nanosecond);return m.timeZoneOffsetSeconds=x.subtract(g),m.hour=m.hour.modulo(24),m}function h(p,g,y){if(!g&&!y)return p;var b=function(E){return y?E.toBigInt():E.toNumberOrInfinity()},_=Object.create(Object.getPrototypeOf(p));for(var m in p)if(Object.prototype.hasOwnProperty.call(p,m)===!0){var x=p[m];_[m]=(0,o.isInt)(x)?b(x):x}return Object.freeze(_),_}e.default={createDateTimeWithZoneIdTransformer:function(p,g){var y=p.disableLosslessIntegers,b=p.useBigInt;return s.default.createDateTimeWithZoneIdTransformer(p).extendsWith({signature:105,fromStructure:function(_){a.structure.verifyStructSize("DateTimeWithZoneId",3,_.size);var m=n(_.fields,3),x=m[0],E=m[1],O=m[2],S=d(O,x,E);return h(new o.DateTime(S.year,S.month,S.day,S.hour,S.minute,S.second,(0,o.int)(E),S.timeZoneOffsetSeconds,O),y,b)},toStructure:function(_){var m=c(_.year,_.month,_.day,_.hour,_.minute,_.second,_.nanosecond),x=_.timeZoneOffsetSeconds!=null?_.timeZoneOffsetSeconds:(function(T,P,I){var k=d(T,P,I),L=c(k.year,k.month,k.day,k.hour,k.minute,k.second,I).subtract(P),B=P.subtract(L),j=d(T,B,I);return c(j.year,j.month,j.day,j.hour,j.minute,j.second,I).subtract(B)})(_.timeZoneId,m,_.nanosecond);_.timeZoneOffsetSeconds==null&&g.warn('DateTime objects without "timeZoneOffsetSeconds" property are prune to bugs related to ambiguous times. For instance, 2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');var E=m.subtract(x),O=(0,o.int)(_.nanosecond),S=_.timeZoneId;return new a.structure.Structure(105,[E,O,S])}})},createDateTimeWithOffsetTransformer:function(p){var g=p.disableLosslessIntegers,y=p.useBigInt;return s.default.createDateTimeWithOffsetTransformer(p).extendsWith({signature:73,toStructure:function(b){var _=c(b.year,b.month,b.day,b.hour,b.minute,b.second,b.nanosecond),m=(0,o.int)(b.nanosecond),x=(0,o.int)(b.timeZoneOffsetSeconds),E=_.subtract(x);return new a.structure.Structure(73,[E,m,x])},fromStructure:function(b){a.structure.verifyStructSize("DateTimeWithZoneOffset",3,b.size);var _=n(b.fields,3),m=_[0],x=_[1],E=_[2],O=(0,o.int)(m).add(E),S=(0,u.epochSecondAndNanoToLocalDateTime)(O,x);return h(new o.DateTime(S.year,S.month,S.day,S.hour,S.minute,S.second,S.nanosecond,E,null),g,y)}})}}},5184:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observeOn=void 0;var n=t(7110),i=t(7843),a=t(3111);e.observeOn=function(o,s){return s===void 0&&(s=0),i.operate(function(u,l){u.subscribe(a.createOperatorSubscriber(l,function(c){return n.executeSchedule(l,o,function(){return l.next(c)},s)},function(){return n.executeSchedule(l,o,function(){return l.complete()},s)},function(c){return n.executeSchedule(l,o,function(){return l.error(c)},s)}))})}},5250:function(r,e,t){var n;r=t.nmd(r),(function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,l=128,c=1/0,f=9007199254740991,d=NaN,h=4294967295,p=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",_="[object Date]",m="[object Error]",x="[object Function]",E="[object GeneratorFunction]",O="[object Map]",S="[object Number]",T="[object Object]",P="[object Promise]",I="[object RegExp]",k="[object Set]",L="[object String]",B="[object Symbol]",j="[object WeakMap]",z="[object ArrayBuffer]",H="[object DataView]",q="[object Float32Array]",W="[object Float64Array]",$="[object Int8Array]",J="[object Int16Array]",X="[object Int32Array]",Z="[object Uint8Array]",ue="[object Uint8ClampedArray]",re="[object Uint16Array]",ne="[object Uint32Array]",le=/\b__p \+= '';/g,ce=/\b(__p \+=) '' \+/g,pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fe=/&(?:amp|lt|gt|quot|#39);/g,se=/[&<>"']/g,de=RegExp(fe.source),ge=RegExp(se.source),Oe=/<%-([\s\S]+?)%>/g,ke=/<%([\s\S]+?)%>/g,De=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(Q.source),we=/^\s+/,Ee=/\s/,Me=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ie=/\{\n\/\* \[wrapped with (.+)\] \*/,Ye=/,? & /,ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mt=/[()=,{}\[\]\/\s]/,wt=/\\(\\)?/g,Mt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,vt=/^[-+]0x[0-9a-f]+$/i,tt=/^0b[01]+$/i,_e=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nt=/($^)/,It=/['\n\r\u2028\u2029\\]/g,ct="\\ud800-\\udfff",Lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rt="\\u2700-\\u27bf",jt="a-z\\xdf-\\xf6\\xf8-\\xff",Yt="A-Z\\xc0-\\xd6\\xd8-\\xde",sr="\\ufe0e\\ufe0f",Ut="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rr="["+ct+"]",Xt="["+Ut+"]",Vr="["+Lt+"]",Br="\\d+",mr="["+Rt+"]",ur="["+jt+"]",sn="[^"+ct+Ut+Br+Rt+jt+Yt+"]",Fr="\\ud83c[\\udffb-\\udfff]",un="[^"+ct+"]",bn="(?:\\ud83c[\\udde6-\\uddff]){2}",wn="[\\ud800-\\udbff][\\udc00-\\udfff]",_n="["+Yt+"]",xn="\\u200d",on="(?:"+ur+"|"+sn+")",Nn="(?:"+_n+"|"+sn+")",fi="(?:['’](?:d|ll|m|re|s|t|ve))?",gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",yn="(?:"+Vr+"|"+Fr+")?",Jn="["+sr+"]?",_i=Jn+yn+"(?:"+xn+"(?:"+[un,bn,wn].join("|")+")"+Jn+yn+")*",Ir="(?:"+[mr,bn,wn].join("|")+")"+_i,pa="(?:"+[un+Vr+"?",Vr,bn,wn,Rr].join("|")+")",di=RegExp("['’]","g"),Bt=RegExp(Vr,"g"),hr=RegExp(Fr+"(?="+Fr+")|"+pa+_i,"g"),ei=RegExp([_n+"?"+ur+"+"+fi+"(?="+[Xt,_n,"$"].join("|")+")",Nn+"+"+gn+"(?="+[Xt,_n+on,"$"].join("|")+")",_n+"?"+on+"+"+fi,_n+"+"+gn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Br,Ir].join("|"),"g"),Hn=RegExp("["+xn+ct+Lt+sr+"]"),ds=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Na=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ki=-1,Wr={};Wr[q]=Wr[W]=Wr[$]=Wr[J]=Wr[X]=Wr[Z]=Wr[ue]=Wr[re]=Wr[ne]=!0,Wr[g]=Wr[y]=Wr[z]=Wr[b]=Wr[H]=Wr[_]=Wr[m]=Wr[x]=Wr[O]=Wr[S]=Wr[T]=Wr[I]=Wr[k]=Wr[L]=Wr[j]=!1;var Nr={};Nr[g]=Nr[y]=Nr[z]=Nr[H]=Nr[b]=Nr[_]=Nr[q]=Nr[W]=Nr[$]=Nr[J]=Nr[X]=Nr[O]=Nr[S]=Nr[T]=Nr[I]=Nr[k]=Nr[L]=Nr[B]=Nr[Z]=Nr[ue]=Nr[re]=Nr[ne]=!0,Nr[m]=Nr[x]=Nr[j]=!1;var na={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Us=parseFloat,vu=parseInt,ga=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,zs=typeof self=="object"&&self&&self.Object===Object&&self,Ln=ga||zs||Function("return this")(),Ii=e&&!e.nodeType&&e,Ni=Ii&&r&&!r.nodeType&&r,Pc=Ni&&Ni.exports===Ii,pu=Pc&&ga.process,ia=(function(){try{return Ni&&Ni.require&&Ni.require("util").types||pu&&pu.binding&&pu.binding("util")}catch{}})(),Hl=ia&&ia.isArrayBuffer,Md=ia&&ia.isDate,Xa=ia&&ia.isMap,Wl=ia&&ia.isRegExp,Yl=ia&&ia.isSet,nf=ia&&ia.isTypedArray;function Wi(st,xt,pt){switch(pt.length){case 0:return st.call(xt);case 1:return st.call(xt,pt[0]);case 2:return st.call(xt,pt[0],pt[1]);case 3:return st.call(xt,pt[0],pt[1],pt[2])}return st.apply(xt,pt)}function af(st,xt,pt,Wt){for(var ir=-1,En=st==null?0:st.length;++ir-1}function Xl(st,xt,pt){for(var Wt=-1,ir=st==null?0:st.length;++Wt-1;);return pt}function Oa(st,xt){for(var pt=st.length;pt--&&wo(xt,st[pt],0)>-1;);return pt}var tl=el({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),uf=el({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ql(st){return"\\"+na[st]}function rl(st){return Hn.test(st)}function wi(st){var xt=-1,pt=Array(st.size);return st.forEach(function(Wt,ir){pt[++xt]=[ir,Wt]}),pt}function Jl(st,xt){return function(pt){return st(xt(pt))}}function aa(st,xt){for(var pt=-1,Wt=st.length,ir=0,En=[];++pt",""":'"',"'":"'"}),Ho=(function st(xt){var pt,Wt=(xt=xt==null?Ln:Ho.defaults(Ln.Object(),xt,Ho.pick(Ln,Na))).Array,ir=xt.Date,En=xt.Error,oa=xt.Function,ja=xt.Math,Kn=xt.Object,ec=xt.RegExp,xi=xt.String,ba=xt.TypeError,cf=Wt.prototype,Ev=oa.prototype,nl=Kn.prototype,Dd=xt["__core-js_shared__"],kd=Ev.toString,Fn=nl.hasOwnProperty,Sv=0,Hf=(pt=/[^.]+$/.exec(Dd&&Dd.keys&&Dd.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"",il=nl.toString,Ov=kd.call(Kn),Wf=Ln._,ff=ec("^"+kd.call(Fn).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vs=Pc?xt.Buffer:i,_u=xt.Symbol,kc=xt.Uint8Array,Ah=Vs?Vs.allocUnsafe:i,tc=Jl(Kn.getPrototypeOf,Kn),Yf=Kn.create,Ic=nl.propertyIsEnumerable,wu=cf.splice,xo=_u?_u.isConcatSpreadable:i,Nc=_u?_u.iterator:i,Hs=_u?_u.toStringTag:i,df=(function(){try{var R=Ts(Kn,"defineProperty");return R({},"",{}),R}catch{}})(),Rh=xt.clearTimeout!==Ln.clearTimeout&&xt.clearTimeout,Xf=ir&&ir.now!==Ln.Date.now&&ir.now,$f=xt.setTimeout!==Ln.setTimeout&&xt.setTimeout,Id=ja.ceil,rc=ja.floor,Kf=Kn.getOwnPropertySymbols,Lc=Vs?Vs.isBuffer:i,Nd=xt.isFinite,Ph=cf.join,hf=Jl(Kn.keys,Kn),Li=ja.max,hi=ja.min,Zf=ir.now,Tv=xt.parseInt,Qf=ja.random,Yp=cf.reverse,al=Ts(xt,"DataView"),ri=Ts(xt,"Map"),nc=Ts(xt,"Promise"),jc=Ts(xt,"Set"),vf=Ts(xt,"WeakMap"),pf=Ts(Kn,"create"),Bc=vf&&new vf,Ws={},ic=Yn(al),We=Yn(ri),ft=Yn(nc),ut=Yn(jc),Kt=Yn(vf),Pr=_u?_u.prototype:i,Qr=Pr?Pr.valueOf:i,oi=Pr?Pr.toString:i;function be(R){if(zi(R)&&!Ur(R)&&!(R instanceof nn)){if(R instanceof Ei)return R;if(Fn.call(R,"__wrapped__"))return Gc(R)}return new Ei(R)}var ol=(function(){function R(){}return function(N){if(!Mi(N))return{};if(Yf)return Yf(N);R.prototype=N;var G=new R;return R.prototype=i,G}})();function Wo(){}function Ei(R,N){this.__wrapped__=R,this.__actions__=[],this.__chain__=!!N,this.__index__=0,this.__values__=i}function nn(R){this.__wrapped__=R,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function sl(R){var N=-1,G=R==null?0:R.length;for(this.clear();++N=N?R:N)),R}function Ka(R,N,G,te,he,Re){var je,He=1&N,et=2&N,yt=4&N;if(G&&(je=he?G(R,te,he,Re):G(R)),je!==i)return je;if(!Mi(R))return R;var Et=Ur(R);if(Et){if(je=(function(St){var Nt=St.length,lr=new St.constructor(Nt);return Nt&&typeof St[0]=="string"&&Fn.call(St,"index")&&(lr.index=St.index,lr.input=St.input),lr})(R),!He)return Ca(R,je)}else{var At=Wn(R),$t=At==x||At==E;if(Uu(R))return Ta(R,He);if(At==T||At==g||$t&&!he){if(je=et||$t?{}:ts(R),!He)return et?(function(St,Nt){return Jo(St,Mo(St),Nt)})(R,(function(St,Nt){return St&&Jo(Nt,to(Nt),St)})(je,R)):(function(St,Nt){return Jo(St,id(St),Nt)})(R,ac(je,R))}else{if(!Nr[At])return he?R:{};je=(function(St,Nt,lr){var Gt,Lr=St.constructor;switch(Nt){case z:return Mu(St);case b:case _:return new Lr(+St);case H:return(function(jr,qn){var vr=qn?Mu(jr.buffer):jr.buffer;return new jr.constructor(vr,jr.byteOffset,jr.byteLength)})(St,lr);case q:case W:case $:case J:case X:case Z:case ue:case re:case ne:return Jf(St,lr);case O:return new Lr;case S:case L:return new Lr(St);case I:return(function(jr){var qn=new jr.constructor(jr.source,Dt.exec(jr));return qn.lastIndex=jr.lastIndex,qn})(St);case k:return new Lr;case B:return Gt=St,Qr?Kn(Qr.call(Gt)):{}}})(R,At,He)}}Re||(Re=new Jr);var tr=Re.get(R);if(tr)return tr;Re.set(R,je),Sl(R)?R.forEach(function(St){je.add(Ka(St,N,G,St,R,Re))}):Zp(R)&&R.forEach(function(St,Nt){je.set(Nt,Ka(St,N,G,Nt,R,Re))});var cr=Et?i:(yt?et?Os:Qs:et?to:xa)(R);return La(cr||R,function(St,Nt){cr&&(St=R[Nt=St]),Eu(je,Nt,Ka(St,N,G,Nt,R,Re))}),je}function Su(R,N,G){var te=G.length;if(R==null)return!te;for(R=Kn(R);te--;){var he=G[te],Re=N[he],je=R[he];if(je===i&&!(he in R)||!Re(je))return!1}return!0}function Mh(R,N,G){if(typeof R!="function")throw new ba(a);return gc(function(){R.apply(i,G)},N)}function Yi(R,N,G,te){var he=-1,Re=Mc,je=!0,He=R.length,et=[],yt=N.length;if(!He)return et;G&&(N=ti(N,Zr(G))),te?(Re=Xl,je=!1):N.length>=200&&(Re=ps,je=!1,N=new xu(N));e:for(;++he-1},$a.prototype.set=function(R,N){var G=this.__data__,te=ul(G,R);return te<0?(++this.size,G.push([R,N])):G[te][1]=N,this},gs.prototype.clear=function(){this.size=0,this.__data__={hash:new sl,map:new(ri||$a),string:new sl}},gs.prototype.delete=function(R){var N=ho(this,R).delete(R);return this.size-=N?1:0,N},gs.prototype.get=function(R){return ho(this,R).get(R)},gs.prototype.has=function(R){return ho(this,R).has(R)},gs.prototype.set=function(R,N){var G=ho(this,R),te=G.size;return G.set(R,N),this.size+=G.size==te?0:1,this},xu.prototype.add=xu.prototype.push=function(R){return this.__data__.set(R,o),this},xu.prototype.has=function(R){return this.__data__.has(R)},Jr.prototype.clear=function(){this.__data__=new $a,this.size=0},Jr.prototype.delete=function(R){var N=this.__data__,G=N.delete(R);return this.size=N.size,G},Jr.prototype.get=function(R){return this.__data__.get(R)},Jr.prototype.has=function(R){return this.__data__.has(R)},Jr.prototype.set=function(R,N){var G=this.__data__;if(G instanceof $a){var te=G.__data__;if(!ri||te.length<199)return te.push([R,N]),this.size=++G.size,this;G=this.__data__=new gs(te)}return G.set(R,N),this.size=G.size,this};var Ba=Ao(Xs),Oo=Ao(sa,!0);function Cv(R,N){var G=!0;return Ba(R,function(te,he,Re){return G=!!N(te,he,Re)}),G}function oc(R,N,G){for(var te=-1,he=R.length;++te0&&G(He)?N>1?ji(He,N-1,G,te,he):qs(he,He):te||(he[he.length]=He)}return he}var Yo=Ki(),yf=Ki(!0);function Xs(R,N){return R&&Yo(R,N,xa)}function sa(R,N){return R&&yf(R,N,xa)}function cl(R,N){return hs(N,function(G){return bc(R[G])})}function bs(R,N){for(var G=0,te=(N=lo(N,R)).length;R!=null&&GN}function Co(R,N){return R!=null&&Fn.call(R,N)}function Xi(R,N){return R!=null&&N in Kn(R)}function Xo(R,N,G){for(var te=G?Xl:Mc,he=R[0].length,Re=R.length,je=Re,He=Wt(Re),et=1/0,yt=[];je--;){var Et=R[je];je&&N&&(Et=ti(Et,Zr(N))),et=hi(Et.length,et),He[je]=!G&&(N||he>=120&&Et.length>=120)?new xu(je&&Et):i}Et=R[0];var At=-1,$t=He[0];e:for(;++At=Nt?lr:lr*(At[$t]=="desc"?-1:1)}return yt.index-Et.index})(He,et,G)});je--;)Re[je]=Re[je].value;return Re})(he)}function _s(R,N,G){for(var te=-1,he=N.length,Re={};++te-1;)He!==R&&wu.call(He,et,1),wu.call(R,et,1);return R}function xe(R,N){for(var G=R?N.length:0,te=G-1;G--;){var he=N[G];if(G==te||he!==Re){var Re=he;Sr(he)?wu.call(R,he,1):Ih(R,he)}}return R}function Tu(R,N){return R+rc(Qf()*(N-R+1))}function Ks(R,N){var G="";if(!R||N<1||N>f)return G;do N%2&&(G+=R),(N=rc(N/2))&&(R+=R);while(N);return G}function ar(R,N){return Sf(_l(R,N,as),R+"")}function Yr(R){return gf(Rs(R))}function Cu(R,N){var G=Rs(R);return ju(G,ll(N,0,G.length))}function ws(R,N,G,te){if(!Mi(R))return R;for(var he=-1,Re=(N=lo(N,R)).length,je=Re-1,He=R;He!=null&&++hehe?0:he+N),(G=G>he?he:G)<0&&(G+=he),he=N>G?0:G-N>>>0,N>>>=0;for(var Re=Wt(he);++te>>1,je=R[Re];je!==null&&!is(je)&&(G?je<=N:je=200){var yt=N?null:Zs(R);if(yt)return mu(yt);je=!1,he=ps,et=new xu}else et=N?[]:He;e:for(;++te=te?R:za(R,N,G)}var Qo=Rh||function(R){return Ln.clearTimeout(R)};function Ta(R,N){if(N)return R.slice();var G=R.length,te=Ah?Ah(G):new R.constructor(G);return R.copy(te),te}function Mu(R){var N=new R.constructor(R.byteLength);return new kc(N).set(new kc(R)),N}function Jf(R,N){var G=N?Mu(R.buffer):R.buffer;return new R.constructor(G,R.byteOffset,R.length)}function ed(R,N){if(R!==N){var G=R!==i,te=R===null,he=R==R,Re=is(R),je=N!==i,He=N===null,et=N==N,yt=is(N);if(!He&&!yt&&!Re&&R>N||Re&&je&&et&&!He&&!yt||te&&je&&et||!G&&et||!he)return 1;if(!te&&!Re&&!yt&&R1?G[he-1]:i,je=he>2?G[2]:i;for(Re=R.length>3&&typeof Re=="function"?(he--,Re):i,je&&Xr(G[0],G[1],je)&&(Re=he<3?i:Re,he=1),N=Kn(N);++te-1?he[Re?N[je]:je]:i}}function Uc(R){return Ss(function(N){var G=N.length,te=G,he=Ei.prototype.thru;for(R&&N.reverse();te--;){var Re=N[te];if(typeof Re!="function")throw new ba(a);if(he&&!je&&Qi(Re)=="wrapper")var je=new Ei([],!0)}for(te=je?te:G;++te1&&Gt.reverse(),Et&&etHe))return!1;var yt=Re.get(R),Et=Re.get(N);if(yt&&Et)return yt==N&&Et==R;var At=-1,$t=!0,tr=2&G?new xu:i;for(Re.set(R,N),Re.set(N,R);++At-1&&R%1==0&&R1?"& ":"")+Re[He],Re=Re.join(je>2?", ":" "),he.replace(Me,`{ +`||P==="\\"?(j.push(T),P=T,k+1):(le(j.join("")),B=u,k)}function se(){return fe()}function de(){return T==="/"&&P==="*"?(j.push(T),le(j.join("")),B=u,k+1):(j.push(T),P=T,k+1)}function ge(){if(P==="."&&/\d/.test(T))return B=g,k;if(P==="/"&&T==="*")return B=c,k;if(P==="/"&&T==="/")return B=f,k;if(T==="."&&j.length){for(;Oe(j););return B=g,k}if(T===";"||T===")"||T==="("){if(j.length)for(;Oe(j););return le(T),B=u,k+1}var Y=j.length===2&&T!=="=";if(/[\w_\d\s]/.test(T)||Y){for(;Oe(j););return B=u,k}return j.push(T),P=T,k+1}function Oe(Y){for(var Q,ie,we=0;;){if(Q=i.indexOf(Y.slice(0,Y.length+we).join("")),ie=i[Q],Q===-1){if(we--+Y.length>0)continue;ie=Y.slice(0,1).join("")}return le(ie),W+=ie.length,(j=j.slice(ie.length)).length}}function ke(){return/[^a-fA-F0-9]/.test(T)?(le(j.join("")),B=u,k):(j.push(T),P=T,k+1)}function De(){return T==="."||/[eE]/.test(T)?(j.push(T),B=g,P=T,k+1):T==="x"&&j.length===1&&j[0]==="0"?(B=E,j.push(T),P=T,k+1):/[^\d]/.test(T)?(le(j.join("")),B=u,k):(j.push(T),P=T,k+1)}function Ne(){return T==="f"&&(j.push(T),P=T,k+=1),/[eE]/.test(T)?(j.push(T),P=T,k+1):(T!=="-"&&T!=="+"||!/[eE]/.test(P))&&/[^\d]/.test(T)?(le(j.join("")),B=u,k):(j.push(T),P=T,k+1)}function Ce(){if(/[^\d\w_]/.test(T)){var Y=j.join("");return B=ne[Y]?_:re[Y]?b:y,le(j.join("")),B=u,k}return j.push(T),P=T,k+1}};var n=t(4704),i=t(2063),a=t(7192),o=t(8784),s=t(5592),u=999,l=9999,c=0,f=1,d=2,h=3,p=4,g=5,y=6,b=7,_=8,m=9,x=10,E=11,O=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},3218:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mapTo=void 0;var n=t(5471);e.mapTo=function(i){return n.map(function(){return i})}},3229:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameScheduler=void 0;var i=(function(a){function o(){return a!==null&&a.apply(this,arguments)||this}return n(o,a),o.prototype.flush=function(s){var u;this._active=!0,s?u=s.id:(u=this._scheduled,this._scheduled=void 0);var l,c=this.actions;s=s||c.shift();do if(l=s.execute(s.state,s.delay))break;while((s=c[0])&&s.id===u&&c.shift());if(this._active=!1,l){for(;(s=c[0])&&s.id===u&&c.shift();)s.unsubscribe();throw l}},o})(t(5648).AsyncScheduler);e.AnimationFrameScheduler=i},3231:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.auditTime=void 0;var n=t(7961),i=t(3146),a=t(4092);e.auditTime=function(o,s){return s===void 0&&(s=n.asyncScheduler),i.audit(function(){return a.timer(o,s)})}},3247:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestInit=e.combineLatest=void 0;var n=t(4662),i=t(7360),a=t(4917),o=t(6640),s=t(1251),u=t(1107),l=t(6013),c=t(3111),f=t(7110);function d(p,g,y){return y===void 0&&(y=o.identity),function(b){h(g,function(){for(var _=p.length,m=new Array(_),x=_,E=_,O=function(T){h(g,function(){var P=a.from(p[T],g),I=!1;P.subscribe(c.createOperatorSubscriber(b,function(k){m[T]=k,I||(I=!0,E--),E||b.next(y(m.slice()))},function(){--x||b.complete()}))},b)},S=0;S<_;S++)O(S)},b)}}function h(p,g,y){p?f.executeSchedule(y,p,g):g()}e.combineLatest=function(){for(var p=[],g=0;g{var n=t(6931),i=t(9975),a=Object.hasOwnProperty,o=Object.create(null);for(var s in n)a.call(n,s)&&(o[n[s]]=s);var u=r.exports={to:{},get:{}};function l(f,d,h){return Math.min(Math.max(d,f),h)}function c(f){var d=Math.round(f).toString(16).toUpperCase();return d.length<2?"0"+d:d}u.get=function(f){var d,h;switch(f.substring(0,3).toLowerCase()){case"hsl":d=u.get.hsl(f),h="hsl";break;case"hwb":d=u.get.hwb(f),h="hwb";break;default:d=u.get.rgb(f),h="rgb"}return d?{model:h,value:d}:null},u.get.rgb=function(f){if(!f)return null;var d,h,p,g=[0,0,0,1];if(d=f.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(p=d[2],d=d[1],h=0;h<3;h++){var y=2*h;g[h]=parseInt(d.slice(y,y+2),16)}p&&(g[3]=parseInt(p,16)/255)}else if(d=f.match(/^#([a-f0-9]{3,4})$/i)){for(p=(d=d[1])[3],h=0;h<3;h++)g[h]=parseInt(d[h]+d[h],16);p&&(g[3]=parseInt(p+p,16)/255)}else if(d=f.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(h=0;h<3;h++)g[h]=parseInt(d[h+1],0);d[4]&&(d[5]?g[3]=.01*parseFloat(d[4]):g[3]=parseFloat(d[4]))}else{if(!(d=f.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(d=f.match(/^(\w+)$/))?d[1]==="transparent"?[0,0,0,0]:a.call(n,d[1])?((g=n[d[1]])[3]=1,g):null:null;for(h=0;h<3;h++)g[h]=Math.round(2.55*parseFloat(d[h+1]));d[4]&&(d[5]?g[3]=.01*parseFloat(d[4]):g[3]=parseFloat(d[4]))}for(h=0;h<3;h++)g[h]=l(g[h],0,255);return g[3]=l(g[3],0,1),g},u.get.hsl=function(f){if(!f)return null;var d=f.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(d){var h=parseFloat(d[4]);return[(parseFloat(d[1])%360+360)%360,l(parseFloat(d[2]),0,100),l(parseFloat(d[3]),0,100),l(isNaN(h)?1:h,0,1)]}return null},u.get.hwb=function(f){if(!f)return null;var d=f.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(d){var h=parseFloat(d[4]);return[(parseFloat(d[1])%360+360)%360,l(parseFloat(d[2]),0,100),l(parseFloat(d[3]),0,100),l(isNaN(h)?1:h,0,1)]}return null},u.to.hex=function(){var f=i(arguments);return"#"+c(f[0])+c(f[1])+c(f[2])+(f[3]<1?c(Math.round(255*f[3])):"")},u.to.rgb=function(){var f=i(arguments);return f.length<4||f[3]===1?"rgb("+Math.round(f[0])+", "+Math.round(f[1])+", "+Math.round(f[2])+")":"rgba("+Math.round(f[0])+", "+Math.round(f[1])+", "+Math.round(f[2])+", "+f[3]+")"},u.to.rgb.percent=function(){var f=i(arguments),d=Math.round(f[0]/255*100),h=Math.round(f[1]/255*100),p=Math.round(f[2]/255*100);return f.length<4||f[3]===1?"rgb("+d+"%, "+h+"%, "+p+"%)":"rgba("+d+"%, "+h+"%, "+p+"%, "+f[3]+")"},u.to.hsl=function(){var f=i(arguments);return f.length<4||f[3]===1?"hsl("+f[0]+", "+f[1]+"%, "+f[2]+"%)":"hsla("+f[0]+", "+f[1]+"%, "+f[2]+"%, "+f[3]+")"},u.to.hwb=function(){var f=i(arguments),d="";return f.length>=4&&f[3]!==1&&(d=", "+f[3]),"hwb("+f[0]+", "+f[1]+"%, "+f[2]+"%"+d+")"},u.to.keyword=function(f){return o[f.slice(0,3)]}},3274:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.switchMapTo=void 0;var n=t(3879),i=t(1018);e.switchMapTo=function(a,o){return i.isFunction(o)?n.switchMap(function(){return a},o):n.switchMap(function(){return a})}},3321:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeTransformer=void 0;var n=t(7168),i=t(9305).internal.objectUtil,a=(function(){function s(u){this._transformers=u,this._transformersPerSignature=new Map(u.map(function(l){return[l.signature,l]})),this.fromStructure=this.fromStructure.bind(this),this.toStructure=this.toStructure.bind(this),Object.freeze(this)}return s.prototype.fromStructure=function(u){try{return u instanceof n.structure.Structure&&this._transformersPerSignature.has(u.signature)?(0,this._transformersPerSignature.get(u.signature).fromStructure)(u):u}catch(l){return i.createBrokenObject(l)}},s.prototype.toStructure=function(u){var l=this._transformers.find(function(c){return(0,c.isTypeInstance)(u)});return l!==void 0?l.toStructure(u):u},s})();e.default=a;var o=(function(){function s(u){var l=u.signature,c=u.fromStructure,f=u.toStructure,d=u.isTypeInstance;this.signature=l,this.isTypeInstance=d,this.fromStructure=c,this.toStructure=f,Object.freeze(this)}return s.prototype.extendsWith=function(u){var l=u.signature,c=u.fromStructure,f=u.toStructure,d=u.isTypeInstance;return new s({signature:l||this.signature,fromStructure:c||this.fromStructure,toStructure:f||this.toStructure,isTypeInstance:d||this.isTypeInstance})},s})();e.TypeTransformer=o},3327:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observable=void 0,e.observable=typeof Symbol=="function"&&Symbol.observable||"@@observable"},3371:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toString=e.toNumber=e.inSafeRange=e.isInt=e.int=void 0;var n=t(9691),i=new Map,a=(function(){function g(y,b){this.low=y??0,this.high=b??0}return g.prototype.inSafeRange=function(){return this.greaterThanOrEqual(g.MIN_SAFE_VALUE)&&this.lessThanOrEqual(g.MAX_SAFE_VALUE)},g.prototype.toInt=function(){return this.low},g.prototype.toNumber=function(){return this.high*s+(this.low>>>0)},g.prototype.toBigInt=function(){if(this.isZero())return BigInt(0);if(this.isPositive())return BigInt(this.high>>>0)*BigInt(s)+BigInt(this.low>>>0);var y=this.negate();return BigInt(-1)*(BigInt(y.high>>>0)*BigInt(s)+BigInt(y.low>>>0))},g.prototype.toNumberOrInfinity=function(){return this.lessThan(g.MIN_SAFE_VALUE)?Number.NEGATIVE_INFINITY:this.greaterThan(g.MAX_SAFE_VALUE)?Number.POSITIVE_INFINITY:this.toNumber()},g.prototype.toString=function(y){if((y=y??10)<2||y>36)throw RangeError("radix out of range: "+y.toString());if(this.isZero())return"0";var b;if(this.isNegative()){if(this.equals(g.MIN_VALUE)){var _=g.fromNumber(y),m=this.div(_);return b=m.multiply(_).subtract(this),m.toString(y)+b.toInt().toString(y)}return"-"+this.negate().toString(y)}var x=g.fromNumber(Math.pow(y,6));b=this;for(var E="";;){var O=b.div(x),S=(b.subtract(O.multiply(x)).toInt()>>>0).toString(y);if((b=O).isZero())return S+E;for(;S.length<6;)S="0"+S;E=""+S+E}},g.prototype.valueOf=function(){return this.toBigInt()},g.prototype.getHighBits=function(){return this.high},g.prototype.getLowBits=function(){return this.low},g.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(g.MIN_VALUE)?64:this.negate().getNumBitsAbs();var y=this.high!==0?this.high:this.low,b=0;for(b=31;b>0&&!(y&1<=0},g.prototype.isOdd=function(){return!(1&~this.low)},g.prototype.isEven=function(){return!(1&this.low)},g.prototype.equals=function(y){var b=g.fromValue(y);return this.high===b.high&&this.low===b.low},g.prototype.notEquals=function(y){return!this.equals(y)},g.prototype.lessThan=function(y){return this.compare(y)<0},g.prototype.lessThanOrEqual=function(y){return this.compare(y)<=0},g.prototype.greaterThan=function(y){return this.compare(y)>0},g.prototype.greaterThanOrEqual=function(y){return this.compare(y)>=0},g.prototype.compare=function(y){var b=g.fromValue(y);if(this.equals(b))return 0;var _=this.isNegative(),m=b.isNegative();return _&&!m?-1:!_&&m?1:this.subtract(b).isNegative()?-1:1},g.prototype.negate=function(){return this.equals(g.MIN_VALUE)?g.MIN_VALUE:this.not().add(g.ONE)},g.prototype.add=function(y){var b=g.fromValue(y),_=this.high>>>16,m=65535&this.high,x=this.low>>>16,E=65535&this.low,O=b.high>>>16,S=65535&b.high,T=b.low>>>16,P=0,I=0,k=0,L=0;return k+=(L+=E+(65535&b.low))>>>16,L&=65535,I+=(k+=x+T)>>>16,k&=65535,P+=(I+=m+S)>>>16,I&=65535,P+=_+O,P&=65535,g.fromBits(k<<16|L,P<<16|I)},g.prototype.subtract=function(y){var b=g.fromValue(y);return this.add(b.negate())},g.prototype.multiply=function(y){if(this.isZero())return g.ZERO;var b=g.fromValue(y);if(b.isZero())return g.ZERO;if(this.equals(g.MIN_VALUE))return b.isOdd()?g.MIN_VALUE:g.ZERO;if(b.equals(g.MIN_VALUE))return this.isOdd()?g.MIN_VALUE:g.ZERO;if(this.isNegative())return b.isNegative()?this.negate().multiply(b.negate()):this.negate().multiply(b).negate();if(b.isNegative())return this.multiply(b.negate()).negate();if(this.lessThan(l)&&b.lessThan(l))return g.fromNumber(this.toNumber()*b.toNumber());var _=this.high>>>16,m=65535&this.high,x=this.low>>>16,E=65535&this.low,O=b.high>>>16,S=65535&b.high,T=b.low>>>16,P=65535&b.low,I=0,k=0,L=0,B=0;return L+=(B+=E*P)>>>16,B&=65535,k+=(L+=x*P)>>>16,L&=65535,k+=(L+=E*T)>>>16,L&=65535,I+=(k+=m*P)>>>16,k&=65535,I+=(k+=x*T)>>>16,k&=65535,I+=(k+=E*S)>>>16,k&=65535,I+=_*P+m*T+x*S+E*O,I&=65535,g.fromBits(L<<16|B,I<<16|k)},g.prototype.div=function(y){var b,_,m,x=g.fromValue(y);if(x.isZero())throw(0,n.newError)("division by zero");if(this.isZero())return g.ZERO;if(this.equals(g.MIN_VALUE))return x.equals(g.ONE)||x.equals(g.NEG_ONE)?g.MIN_VALUE:x.equals(g.MIN_VALUE)?g.ONE:(b=this.shiftRight(1).div(x).shiftLeft(1)).equals(g.ZERO)?x.isNegative()?g.ONE:g.NEG_ONE:(_=this.subtract(x.multiply(b)),m=b.add(_.div(x)));if(x.equals(g.MIN_VALUE))return g.ZERO;if(this.isNegative())return x.isNegative()?this.negate().div(x.negate()):this.negate().div(x).negate();if(x.isNegative())return this.div(x.negate()).negate();for(m=g.ZERO,_=this;_.greaterThanOrEqual(x);){b=Math.max(1,Math.floor(_.toNumber()/x.toNumber()));for(var E=Math.ceil(Math.log(b)/Math.LN2),O=E<=48?1:Math.pow(2,E-48),S=g.fromNumber(b),T=S.multiply(x);T.isNegative()||T.greaterThan(_);)b-=O,T=(S=g.fromNumber(b)).multiply(x);S.isZero()&&(S=g.ONE),m=m.add(S),_=_.subtract(T)}return m},g.prototype.modulo=function(y){var b=g.fromValue(y);return this.subtract(this.div(b).multiply(b))},g.prototype.not=function(){return g.fromBits(~this.low,~this.high)},g.prototype.and=function(y){var b=g.fromValue(y);return g.fromBits(this.low&b.low,this.high&b.high)},g.prototype.or=function(y){var b=g.fromValue(y);return g.fromBits(this.low|b.low,this.high|b.high)},g.prototype.xor=function(y){var b=g.fromValue(y);return g.fromBits(this.low^b.low,this.high^b.high)},g.prototype.shiftLeft=function(y){var b=g.toNumber(y);return(b&=63)==0?g.ZERO:b<32?g.fromBits(this.low<>>32-b):g.fromBits(0,this.low<>>b|this.high<<32-b,this.high>>b):g.fromBits(this.high>>b-32,this.high>=0?0:-1)},g.isInteger=function(y){return(y==null?void 0:y.__isInteger__)===!0},g.fromInt=function(y){var b;if((y|=0)>=-128&&y<128&&(b=i.get(y))!=null)return b;var _=new g(y,y<0?-1:0);return y>=-128&&y<128&&i.set(y,_),_},g.fromBits=function(y,b){return new g(y,b)},g.fromNumber=function(y){return isNaN(y)||!isFinite(y)?g.ZERO:y<=-u?g.MIN_VALUE:y+1>=u?g.MAX_VALUE:y<0?g.fromNumber(-y).negate():new g(y%s|0,y/s|0)},g.fromString=function(y,b,_){var m,x=(_===void 0?{}:_).strictStringValidation;if(y.length===0)throw(0,n.newError)("number format error: empty string");if(y==="NaN"||y==="Infinity"||y==="+Infinity"||y==="-Infinity")return g.ZERO;if((b=b??10)<2||b>36)throw(0,n.newError)("radix out of range: "+b.toString());if((m=y.indexOf("-"))>0)throw(0,n.newError)('number format error: interior "-" character: '+y);if(m===0)return g.fromString(y.substring(1),b).negate();for(var E=g.fromNumber(Math.pow(b,8)),O=g.ZERO,S=0;S{Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function n(){}return n.prototype.resolve=function(){throw new Error("Abstract function")},n.prototype._resolveToItself=function(i){return Promise.resolve([i])},n})();e.default=t},3399:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.config=void 0,e.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3448:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(y){for(var b,_=1,m=arguments.length;_0)&&!(m=E.next()).done;)O.push(m.value)}catch(S){x={error:S}}finally{try{m&&!m.done&&(_=E.return)&&_.call(E)}finally{if(x)throw x.error}}return O},a=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0});var o=t(9305),s=t(7168),u=t(3321),l=t(5973),c=a(t(6661)),f=o.internal.temporalUtil,d=f.dateToEpochDay,h=f.localDateTimeToEpochSecond,p=f.localTimeToNanoOfDay;function g(y,b,_){if(!b&&!_)return y;var m=function(S){return _?S.toBigInt():S.toNumberOrInfinity()},x=Object.create(Object.getPrototypeOf(y));for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)===!0){var O=y[E];x[E]=(0,o.isInt)(O)?m(O):O}return Object.freeze(x),x}e.default=n(n({},c.default),{createPoint2DTransformer:function(){return new u.TypeTransformer({signature:88,isTypeInstance:function(y){return(0,o.isPoint)(y)&&(y.z===null||y.z===void 0)},toStructure:function(y){return new s.structure.Structure(88,[(0,o.int)(y.srid),y.x,y.y])},fromStructure:function(y){s.structure.verifyStructSize("Point2D",3,y.size);var b=i(y.fields,3),_=b[0],m=b[1],x=b[2];return new o.Point(_,m,x,void 0)}})},createPoint3DTransformer:function(){return new u.TypeTransformer({signature:89,isTypeInstance:function(y){return(0,o.isPoint)(y)&&y.z!==null&&y.z!==void 0},toStructure:function(y){return new s.structure.Structure(89,[(0,o.int)(y.srid),y.x,y.y,y.z])},fromStructure:function(y){s.structure.verifyStructSize("Point3D",4,y.size);var b=i(y.fields,4),_=b[0],m=b[1],x=b[2],E=b[3];return new o.Point(_,m,x,E)}})},createDurationTransformer:function(){return new u.TypeTransformer({signature:69,isTypeInstance:o.isDuration,toStructure:function(y){var b=(0,o.int)(y.months),_=(0,o.int)(y.days),m=(0,o.int)(y.seconds),x=(0,o.int)(y.nanoseconds);return new s.structure.Structure(69,[b,_,m,x])},fromStructure:function(y){s.structure.verifyStructSize("Duration",4,y.size);var b=i(y.fields,4),_=b[0],m=b[1],x=b[2],E=b[3];return new o.Duration(_,m,x,E)}})},createLocalTimeTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:116,isTypeInstance:o.isLocalTime,toStructure:function(m){var x=p(m.hour,m.minute,m.second,m.nanosecond);return new s.structure.Structure(116,[x])},fromStructure:function(m){s.structure.verifyStructSize("LocalTime",1,m.size);var x=i(m.fields,1)[0];return g((0,l.nanoOfDayToLocalTime)(x),b,_)}})},createTimeTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:84,isTypeInstance:o.isTime,toStructure:function(m){var x=p(m.hour,m.minute,m.second,m.nanosecond),E=(0,o.int)(m.timeZoneOffsetSeconds);return new s.structure.Structure(84,[x,E])},fromStructure:function(m){s.structure.verifyStructSize("Time",2,m.size);var x=i(m.fields,2),E=x[0],O=x[1],S=(0,l.nanoOfDayToLocalTime)(E);return g(new o.Time(S.hour,S.minute,S.second,S.nanosecond,O),b,_)}})},createDateTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:68,isTypeInstance:o.isDate,toStructure:function(m){var x=d(m.year,m.month,m.day);return new s.structure.Structure(68,[x])},fromStructure:function(m){s.structure.verifyStructSize("Date",1,m.size);var x=i(m.fields,1)[0];return g((0,l.epochDayToDate)(x),b,_)}})},createLocalDateTimeTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:100,isTypeInstance:o.isLocalDateTime,toStructure:function(m){var x=h(m.year,m.month,m.day,m.hour,m.minute,m.second,m.nanosecond),E=(0,o.int)(m.nanosecond);return new s.structure.Structure(100,[x,E])},fromStructure:function(m){s.structure.verifyStructSize("LocalDateTime",2,m.size);var x=i(m.fields,2),E=x[0],O=x[1];return g((0,l.epochSecondAndNanoToLocalDateTime)(E,O),b,_)}})},createDateTimeWithZoneIdTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:102,isTypeInstance:function(m){return(0,o.isDateTime)(m)&&m.timeZoneId!=null},toStructure:function(m){var x=h(m.year,m.month,m.day,m.hour,m.minute,m.second,m.nanosecond),E=(0,o.int)(m.nanosecond),O=m.timeZoneId;return new s.structure.Structure(102,[x,E,O])},fromStructure:function(m){s.structure.verifyStructSize("DateTimeWithZoneId",3,m.size);var x=i(m.fields,3),E=x[0],O=x[1],S=x[2],T=(0,l.epochSecondAndNanoToLocalDateTime)(E,O);return g(new o.DateTime(T.year,T.month,T.day,T.hour,T.minute,T.second,T.nanosecond,null,S),b,_)}})},createDateTimeWithOffsetTransformer:function(y){var b=y.disableLosslessIntegers,_=y.useBigInt;return new u.TypeTransformer({signature:70,isTypeInstance:function(m){return(0,o.isDateTime)(m)&&m.timeZoneId==null},toStructure:function(m){var x=h(m.year,m.month,m.day,m.hour,m.minute,m.second,m.nanosecond),E=(0,o.int)(m.nanosecond),O=(0,o.int)(m.timeZoneOffsetSeconds);return new s.structure.Structure(70,[x,E,O])},fromStructure:function(m){s.structure.verifyStructSize("DateTimeWithZoneOffset",3,m.size);var x=i(m.fields,3),E=x[0],O=x[1],S=x[2],T=(0,l.epochSecondAndNanoToLocalDateTime)(E,O);return g(new o.DateTime(T.year,T.month,T.day,T.hour,T.minute,T.second,T.nanosecond,S,null),b,_)}})}})},3466:function(r,e,t){var n=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(8813),a=t(9419),o=n(t(3057)),s=t(9305),u=n(t(5742)),l=n(t(1530)),c=n(t(9823)),f=s.internal.constants,d=f.ACCESS_MODE_READ,h=f.ACCESS_MODE_WRITE,p=f.TELEMETRY_APIS,g=s.internal.txConfig.TxConfig,y=(function(){function b(_){var m=_===void 0?{}:_,x=m.session,E=m.config,O=m.log;this._session=x,this._retryLogic=(function(S){var T=S&&S.maxTransactionRetryTime?S.maxTransactionRetryTime:null;return new c.default({maxRetryTimeout:T})})(E),this._log=O}return b.prototype.run=function(_,m,x){var E=this;return new o.default(new i.Observable(function(O){try{O.next(E._session.run(_,m,x)),O.complete()}catch(S){O.error(S)}return function(){}}))},b.prototype.beginTransaction=function(_){return this._beginTransaction(this._session._mode,_,{api:p.UNMANAGED_TRANSACTION})},b.prototype.readTransaction=function(_,m){return this._runTransaction(d,_,m)},b.prototype.writeTransaction=function(_,m){return this._runTransaction(h,_,m)},b.prototype.executeRead=function(_,m){return this._executeInTransaction(d,_,m)},b.prototype.executeWrite=function(_,m){return this._executeInTransaction(h,_,m)},b.prototype._executeInTransaction=function(_,m,x){return this._runTransaction(_,m,x,function(E){return new l.default({run:E.run.bind(E)})})},b.prototype.close=function(){var _=this;return new i.Observable(function(m){_._session.close().then(function(){m.complete()}).catch(function(x){return m.error(x)})})},b.prototype[Symbol.asyncDispose]=function(){return this.close()},b.prototype.lastBookmark=function(){return this.lastBookmarks()},b.prototype.lastBookmarks=function(){return this._session.lastBookmarks()},b.prototype._beginTransaction=function(_,m,x){var E=this,O=g.empty();return m&&(O=new g(m,this._log)),new i.Observable(function(S){try{E._session._beginTransaction(_,O,x).then(function(T){S.next(new u.default(T)),S.complete()}).catch(function(T){return S.error(T)})}catch(T){S.error(T)}return function(){}})},b.prototype._runTransaction=function(_,m,x,E){var O=this;E===void 0&&(E=function(P){return P});var S=g.empty();x&&(S=new g(x));var T={apiTelemetryConfig:{api:p.MANAGED_TRANSACTION,onTelemetrySuccess:function(){T.apiTelemetryConfig=void 0}}};return this._retryLogic.retry((0,i.of)(1).pipe((0,a.mergeMap)(function(){return O._beginTransaction(_,S,T.apiTelemetryConfig)}),(0,a.mergeMap)(function(P){return(0,i.defer)(function(){try{return m(E(P))}catch(I){return(0,i.throwError)(function(){return I})}}).pipe((0,a.catchError)(function(I){return P.rollback().pipe((0,a.concatWith)((0,i.throwError)(function(){return I})))}),(0,a.concatWith)(P.commit()))})))},b})();e.default=y},3473:function(r,e,t){var n=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(t(5319)),a=t(9305),o=n(t(1048)),s=new(t(8888)).StringDecoder("utf8");e.default={encode:function(u){return new i.default((function(l){return typeof o.default.Buffer.from=="function"?o.default.Buffer.from(l,"utf8"):new o.default.Buffer(l,"utf8")})(u))},decode:function(u,l){if(Object.prototype.hasOwnProperty.call(u,"_buffer"))return(function(c,f){var d=c.position,h=d+f;return c.position=Math.min(h,c.length),c._buffer.toString("utf8",d,h)})(u,l);if(Object.prototype.hasOwnProperty.call(u,"_buffers"))return(function(c,f){return(function(d,h){var p=h,g=d.position;return d._updatePos(Math.min(h,d.length-g)),d._buffers.reduce(function(y,b){if(p<=0)return y;if(g>=b.length)return g-=b.length,"";b._updatePos(g-b.position);var _=Math.min(b.length-g,p),m=b.readSlice(_);return b._updatePos(_),p=Math.max(p-m.length,0),g=0,y+(function(x){return s.write(x._buffer)})(m)},"")+s.end()})(c,f)})(u,l);throw(0,a.newError)("Don't know how to decode strings from '".concat(u,"'"))}}},3488:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(a,o,s,u){u===void 0&&(u=s);var l=Object.getOwnPropertyDescriptor(o,s);l&&!("get"in l?!o.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(a,u,l)}:function(a,o,s,u){u===void 0&&(u=s),a[u]=o[s]}),i=this&&this.__exportStar||function(a,o){for(var s in a)s==="default"||Object.prototype.hasOwnProperty.call(o,s)||n(o,a,s)};Object.defineProperty(e,"__esModule",{value:!0}),i(t(5837),e)},3545:function(r,e,t){var n=this&&this.__extends||(function(){var b=function(_,m){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var O in E)Object.prototype.hasOwnProperty.call(E,O)&&(x[O]=E[O])},b(_,m)};return function(_,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function x(){this.constructor=_}b(_,m),_.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}})(),i=this&&this.__awaiter||function(b,_,m,x){return new(m||(m=Promise))(function(E,O){function S(I){try{P(x.next(I))}catch(k){O(k)}}function T(I){try{P(x.throw(I))}catch(k){O(k)}}function P(I){var k;I.done?E(I.value):(k=I.value,k instanceof m?k:new m(function(L){L(k)})).then(S,T)}P((x=x.apply(b,_||[])).next())})},a=this&&this.__generator||function(b,_){var m,x,E,O,S={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return O={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function T(P){return function(I){return(function(k){if(m)throw new TypeError("Generator is already executing.");for(;O&&(O=0,k[0]&&(S=0)),S;)try{if(m=1,x&&(E=2&k[0]?x.return:k[0]?x.throw||((E=x.return)&&E.call(x),0):x.next)&&!(E=E.call(x,k[1])).done)return E;switch(x=0,E&&(k=[2&k[0],E.value]),k[0]){case 0:case 1:E=k;break;case 4:return S.label++,{value:k[1],done:!1};case 5:S.label++,x=k[1],k=[0];continue;case 7:k=S.ops.pop(),S.trys.pop();continue;default:if(!((E=(E=S.trys).length>0&&E[E.length-1])||k[0]!==6&&k[0]!==2)){S=0;continue}if(k[0]===3&&(!E||k[1]>E[0]&&k[1]=d})];case 1:return[2,m.sent()]}})})},_.prototype.getNegotiatedProtocolVersion=function(){var m=this;return new Promise(function(x,E){m._hasProtocolVersion(x).catch(E)})},_.prototype.supportsTransactionConfig=function(){return i(this,void 0,void 0,function(){return a(this,function(m){switch(m.label){case 0:return[4,this._hasProtocolVersion(function(x){return x>=f})];case 1:return[2,m.sent()]}})})},_.prototype.supportsUserImpersonation=function(){return i(this,void 0,void 0,function(){return a(this,function(m){switch(m.label){case 0:return[4,this._hasProtocolVersion(function(x){return x>=h})];case 1:return[2,m.sent()]}})})},_.prototype.supportsSessionAuth=function(){return i(this,void 0,void 0,function(){return a(this,function(m){switch(m.label){case 0:return[4,this._hasProtocolVersion(function(x){return x>=p})];case 1:return[2,m.sent()]}})})},_.prototype.verifyAuthentication=function(m){var x=m.auth;return i(this,void 0,void 0,function(){var E=this;return a(this,function(O){return[2,this._verifyAuthentication({auth:x,getAddress:function(){return E._address}})]})})},_.prototype.verifyConnectivityAndGetServerInfo=function(){return i(this,void 0,void 0,function(){return a(this,function(m){switch(m.label){case 0:return[4,this._verifyConnectivityAndGetServerVersion({address:this._address})];case 1:return[2,m.sent()]}})})},_})(s.default);e.default=y},3555:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.finalize=void 0;var n=t(7843);e.finalize=function(i){return n.operate(function(a,o){try{a.subscribe(o)}finally{o.add(i)}})}},3618:function(r,e,t){var n=this&&this.__extends||(function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(_[x]=m[x])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function _(){this.constructor=y}g(y,b),y.prototype=b===null?Object.create(b):(_.prototype=b.prototype,new _)}})(),i=this&&this.__awaiter||function(g,y,b,_){return new(b||(b=Promise))(function(m,x){function E(T){try{S(_.next(T))}catch(P){x(P)}}function O(T){try{S(_.throw(T))}catch(P){x(P)}}function S(T){var P;T.done?m(T.value):(P=T.value,P instanceof b?P:new b(function(I){I(P)})).then(E,O)}S((_=_.apply(g,y||[])).next())})},a=this&&this.__generator||function(g,y){var b,_,m,x,E={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return x={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(x[Symbol.iterator]=function(){return this}),x;function O(S){return function(T){return(function(P){if(b)throw new TypeError("Generator is already executing.");for(;x&&(x=0,P[0]&&(E=0)),E;)try{if(b=1,_&&(m=2&P[0]?_.return:P[0]?_.throw||((m=_.return)&&m.call(_),0):_.next)&&!(m=m.call(_,P[1])).done)return m;switch(_=0,m&&(P=[2&P[0],m.value]),P[0]){case 0:case 1:m=P;break;case 4:return E.label++,{value:P[1],done:!1};case 5:E.label++,_=P[1],P=[0];continue;case 7:P=E.ops.pop(),E.trys.pop();continue;default:if(!((m=(m=E.trys).length>0&&m[m.length-1])||P[0]!==6&&P[0]!==2)){E=0;continue}if(P[0]===3&&(!m||P[1]>m[0]&&P[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.joinAllInternals=void 0;var n=t(6640),i=t(1251),a=t(2706),o=t(983),s=t(2343);e.joinAllInternals=function(u,l){return a.pipe(s.toArray(),o.mergeMap(function(c){return u(c)}),l?i.mapOneOrManyArgs(l):n.identity)}},3659:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default="5.28.2"},3692:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var n=t(5006),i=t(827);e.asapScheduler=new i.AsapScheduler(n.AsapAction),e.asap=e.asapScheduler},3862:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var n=t(2628),i=t(3229);e.animationFrameScheduler=new i.AnimationFrameScheduler(n.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler},3865:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.concat=void 0;var n=t(8158),i=t(1107),a=t(4917);e.concat=function(){for(var o=[],s=0;s{Object.defineProperty(e,"__esModule",{value:!0}),e.switchMap=void 0;var n=t(9445),i=t(7843),a=t(3111);e.switchMap=function(o,s){return i.operate(function(u,l){var c=null,f=0,d=!1,h=function(){return d&&!c&&l.complete()};u.subscribe(a.createOperatorSubscriber(l,function(p){c==null||c.unsubscribe();var g=0,y=f++;n.innerFrom(o(p,y)).subscribe(c=a.createOperatorSubscriber(l,function(b){return l.next(s?s(p,b,y,g++):b)},function(){c=null,h()}))},function(){d=!0,h()}))})}},3951:function(r,e,t){var n=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.ClientCertificatesLoader=e.HostNameResolver=e.Channel=void 0;var i=n(t(6245)),a=n(t(2199)),o=n(t(614));e.Channel=i.default,e.HostNameResolver=a.default,e.ClientCertificatesLoader=o.default},3964:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.tap=void 0;var n=t(1018),i=t(7843),a=t(3111),o=t(6640);e.tap=function(s,u,l){var c=n.isFunction(s)||u||l?{next:s,error:u,complete:l}:s;return c?i.operate(function(f,d){var h;(h=c.subscribe)===null||h===void 0||h.call(c);var p=!0;f.subscribe(a.createOperatorSubscriber(d,function(g){var y;(y=c.next)===null||y===void 0||y.call(c,g),d.next(g)},function(){var g;p=!1,(g=c.complete)===null||g===void 0||g.call(c),d.complete()},function(g){var y;p=!1,(y=c.error)===null||y===void 0||y.call(c,g),d.error(g)},function(){var g,y;p&&((g=c.unsubscribe)===null||g===void 0||g.call(c)),(y=c.finalize)===null||y===void 0||y.call(c)}))}):o.identity}},3982:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.skip=void 0;var n=t(783);e.skip=function(i){return n.filter(function(a,o){return i<=o})}},4027:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=void 0;var n=t(93);e.stringify=function(i,a){return JSON.stringify(i,function(o,s){return(0,n.isBrokenObject)(s)?{__isBrokenObject__:!0,__reason__:(0,n.getBrokenObjectReason)(s)}:typeof s=="bigint"?"".concat(s,"n"):(a==null?void 0:a.sortedElements)!==!0||typeof s!="object"||Array.isArray(s)?(a==null?void 0:a.useCustomToString)!==!0||typeof s!="object"||Array.isArray(s)||typeof s.toString!="function"||s.toString===Object.prototype.toString?s:s==null?void 0:s.toString():Object.keys(s).sort().reduce(function(u,l){return u[l]=s[l],u},{})})}},4092:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.timer=void 0;var n=t(4662),i=t(7961),a=t(8613),o=t(1074);e.timer=function(s,u,l){s===void 0&&(s=0),l===void 0&&(l=i.async);var c=-1;return u!=null&&(a.isScheduler(u)?l=u:c=u),new n.Observable(function(f){var d=o.isValidDate(s)?+s-l.now():s;d<0&&(d=0);var h=0;return l.schedule(function(){f.closed||(f.next(h++),0<=c?this.schedule(void 0,c):f.complete())},d)})}},4132:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0});var i=(function(a){function o(s){var u=a.call(this)||this;return u._connection=s,u}return n(o,a),o.prototype.acquireConnection=function(s){var u=s===void 0?{}:s,l=(u.accessMode,u.database,u.bookmarks,this._connection);return this._connection=null,Promise.resolve(l)},o})(t(9305).ConnectionProvider);e.default=i},4151:function(r,e,t){var n=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(t(9018)),a=(t(9305),(function(){function o(s){this._routingContext=s}return o.prototype.lookupRoutingTableOnRouter=function(s,u,l,c){var f=this;return s._acquireConnection(function(d){return f._requestRawRoutingTable(d,s,u,l,c).then(function(h){return h.isNull?null:i.default.fromRawRoutingTable(u,l,h)})})},o.prototype._requestRawRoutingTable=function(s,u,l,c,f){var d=this;return new Promise(function(h,p){s.protocol().requestRoutingInformation({routingContext:d._routingContext,databaseName:l,impersonatedUser:f,sessionContext:{bookmarks:u._lastBookmarks,mode:u._mode,database:u._database,afterComplete:u._onComplete},onCompleted:h,onError:p})})},o})());e.default=a},4209:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.iif=void 0;var n=t(9353);e.iif=function(i,a,o){return n.defer(function(){return i()?a:o})}},4212:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.QueueAction=void 0;var i=(function(a){function o(s,u){var l=a.call(this,s,u)||this;return l.scheduler=s,l.work=u,l}return n(o,a),o.prototype.schedule=function(s,u){return u===void 0&&(u=0),u>0?a.prototype.schedule.call(this,s,u):(this.delay=u,this.state=s,this.scheduler.flush(this),this)},o.prototype.execute=function(s,u){return u>0||this.closed?a.prototype.execute.call(this,s,u):this._execute(s,u)},o.prototype.requestAsyncId=function(s,u,l){return l===void 0&&(l=0),l!=null&&l>0||l==null&&this.delay>0?a.prototype.requestAsyncId.call(this,s,u,l):(s.flush(this),0)},o})(t(5267).AsyncAction);e.QueueAction=i},4271:function(r,e,t){var n=this&&this.__awaiter||function(s,u,l,c){return new(l||(l=Promise))(function(f,d){function h(y){try{g(c.next(y))}catch(b){d(b)}}function p(y){try{g(c.throw(y))}catch(b){d(b)}}function g(y){var b;y.done?f(y.value):(b=y.value,b instanceof l?b:new l(function(_){_(b)})).then(h,p)}g((c=c.apply(s,u||[])).next())})},i=this&&this.__generator||function(s,u){var l,c,f,d,h={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return d={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(g){return function(y){return(function(b){if(l)throw new TypeError("Generator is already executing.");for(;d&&(d=0,b[0]&&(h=0)),h;)try{if(l=1,c&&(f=2&b[0]?c.return:b[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,b[1])).done)return f;switch(c=0,f&&(b=[2&b[0],f.value]),b[0]){case 0:case 1:f=b;break;case 4:return h.label++,{value:b[1],done:!1};case 5:h.label++,c=b[1],b=[0];continue;case 7:b=h.ops.pop(),h.trys.pop();continue;default:if(!((f=(f=h.trys).length>0&&f[f.length-1])||b[0]!==6&&b[0]!==2)){h=0;continue}if(b[0]===3&&(!f||b[1]>f[0]&&b[1]{Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function n(){}return n.prototype.selectReader=function(i){throw new Error("Abstract function")},n.prototype.selectWriter=function(i){throw new Error("Abstract function")},n})();e.default=t},4325:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{r.exports=function(e){for(var t=[],n=0;n{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeScan=void 0;var n=t(7843),i=t(1983);e.mergeScan=function(a,o,s){return s===void 0&&(s=1/0),n.operate(function(u,l){var c=o;return i.mergeInternals(u,l,function(f,d){return a(c,f,d)},s,function(f){c=f},!1,void 0,function(){return c=null})})}},4440:function(r,e,t){var n=this&&this.__read||function(s,u){var l=typeof Symbol=="function"&&s[Symbol.iterator];if(!l)return s;var c,f,d=l.call(s),h=[];try{for(;(u===void 0||u-- >0)&&!(c=d.next()).done;)h.push(c.value)}catch(p){f={error:p}}finally{try{c&&!c.done&&(l=d.return)&&l.call(d)}finally{if(f)throw f.error}}return h},i=this&&this.__spreadArray||function(s,u){for(var l=0,c=u.length,f=s.length;l{Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0;var n=t(7843),i=t(1342),a=t(3111),o=t(9445);e.debounce=function(s){return n.operate(function(u,l){var c=!1,f=null,d=null,h=function(){if(d==null||d.unsubscribe(),d=null,c){c=!1;var p=f;f=null,l.next(p)}};u.subscribe(a.createOperatorSubscriber(l,function(p){d==null||d.unsubscribe(),c=!0,f=p,d=a.createOperatorSubscriber(l,h,i.noop),o.innerFrom(s(p)).subscribe(d)},function(){h(),l.complete()},void 0,function(){f=d=null}))})}},4520:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.elementAt=void 0;var n=t(7057),i=t(783),a=t(4869),o=t(378),s=t(846);e.elementAt=function(u,l){if(u<0)throw new n.ArgumentOutOfRangeError;var c=arguments.length>=2;return function(f){return f.pipe(i.filter(function(d,h){return h===u}),s.take(1),c?o.defaultIfEmpty(l):a.throwIfEmpty(function(){return new n.ArgumentOutOfRangeError}))}}},4531:function(r,e){var t=this&&this.__awaiter||function(a,o,s,u){return new(s||(s=Promise))(function(l,c){function f(p){try{h(u.next(p))}catch(g){c(g)}}function d(p){try{h(u.throw(p))}catch(g){c(g)}}function h(p){var g;p.done?l(p.value):(g=p.value,g instanceof s?g:new s(function(y){y(g)})).then(f,d)}h((u=u.apply(a,o||[])).next())})},n=this&&this.__generator||function(a,o){var s,u,l,c,f={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(h){return function(p){return(function(g){if(s)throw new TypeError("Generator is already executing.");for(;c&&(c=0,g[0]&&(f=0)),f;)try{if(s=1,u&&(l=2&g[0]?u.return:g[0]?u.throw||((l=u.return)&&l.call(u),0):u.next)&&!(l=l.call(u,g[1])).done)return l;switch(u=0,l&&(g=[2&g[0],l.value]),g[0]){case 0:case 1:l=g;break;case 4:return f.label++,{value:g[1],done:!1};case 5:f.label++,u=g[1],g=[0];continue;case 7:g=f.ops.pop(),f.trys.pop();continue;default:if(!((l=(l=f.trys).length>0&&l[l.length-1])||g[0]!==6&&g[0]!==2)){f=0;continue}if(g[0]===3&&(!l||g[1]>l[0]&&g[1]this._connectionLivenessCheckTimeout?[4,o.resetAndFlush().then(function(){return!0})]:[3,2]);case 1:return[2,u.sent()];case 2:return[2,!0]}})})},Object.defineProperty(a.prototype,"_isCheckDisabled",{get:function(){return this._connectionLivenessCheckTimeout==null||this._connectionLivenessCheckTimeout<0},enumerable:!1,configurable:!0}),a.prototype._isNewlyCreatedConnection=function(o){return o.authToken==null},a})();e.default=i},4569:function(r,e,t){var n,i=this&&this.__extends||(function(){var u=function(l,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(f[h]=d[h])},u(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=l}u(l,c),l.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})(),a=this&&this.__assign||function(){return a=Object.assign||function(u){for(var l,c=1,f=arguments.length;c{Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var n=t(5),i=t(8014),a=t(3327),o=t(2706),s=t(3413),u=t(1018),l=t(9223),c=(function(){function d(h){h&&(this._subscribe=h)}return d.prototype.lift=function(h){var p=new d;return p.source=this,p.operator=h,p},d.prototype.subscribe=function(h,p,g){var y,b=this,_=(y=h)&&y instanceof n.Subscriber||(function(m){return m&&u.isFunction(m.next)&&u.isFunction(m.error)&&u.isFunction(m.complete)})(y)&&i.isSubscription(y)?h:new n.SafeSubscriber(h,p,g);return l.errorContext(function(){var m=b,x=m.operator,E=m.source;_.add(x?x.call(_,E):E?b._subscribe(_):b._trySubscribe(_))}),_},d.prototype._trySubscribe=function(h){try{return this._subscribe(h)}catch(p){h.error(p)}},d.prototype.forEach=function(h,p){var g=this;return new(p=f(p))(function(y,b){var _=new n.SafeSubscriber({next:function(m){try{h(m)}catch(x){b(x),_.unsubscribe()}},error:b,complete:y});g.subscribe(_)})},d.prototype._subscribe=function(h){var p;return(p=this.source)===null||p===void 0?void 0:p.subscribe(h)},d.prototype[a.observable]=function(){return this},d.prototype.pipe=function(){for(var h=[],p=0;p{r.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},4721:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.skipWhile=void 0;var n=t(7843),i=t(3111);e.skipWhile=function(a){return n.operate(function(o,s){var u=!1,l=0;o.subscribe(i.createOperatorSubscriber(s,function(c){return(u||(u=!a(c,l++)))&&s.next(c)}))})}},4746:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},4753:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.exhaustMap=void 0;var n=t(5471),i=t(9445),a=t(7843),o=t(3111);e.exhaustMap=function s(u,l){return l?function(c){return c.pipe(s(function(f,d){return i.innerFrom(u(f,d)).pipe(n.map(function(h,p){return l(f,h,d,p)}))}))}:a.operate(function(c,f){var d=0,h=null,p=!1;c.subscribe(o.createOperatorSubscriber(f,function(g){h||(h=o.createOperatorSubscriber(f,void 0,function(){h=null,p&&f.complete()}),i.innerFrom(u(g,d++)).subscribe(h))},function(){p=!0,!h&&f.complete()}))})}},4780:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.takeUntil=void 0;var n=t(7843),i=t(3111),a=t(9445),o=t(1342);e.takeUntil=function(s){return n.operate(function(u,l){a.innerFrom(s).subscribe(i.createOperatorSubscriber(l,function(){return l.complete()},o.noop)),!l.closed&&u.subscribe(l)})}},4820:function(r,e,t){var n=this&&this.__generator||function(u,l){var c,f,d,h,p={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(y){return function(b){return(function(_){if(c)throw new TypeError("Generator is already executing.");for(;h&&(h=0,_[0]&&(p=0)),p;)try{if(c=1,f&&(d=2&_[0]?f.return:_[0]?f.throw||((d=f.return)&&d.call(f),0):f.next)&&!(d=d.call(f,_[1])).done)return d;switch(f=0,d&&(_=[2&_[0],d.value]),_[0]){case 0:case 1:d=_;break;case 4:return p.label++,{value:_[1],done:!1};case 5:p.label++,f=_[1],_=[0];continue;case 7:_=p.ops.pop(),p.trys.pop();continue;default:if(!((d=(d=p.trys).length>0&&d[d.length-1])||_[0]!==6&&_[0]!==2)){p=0;continue}if(_[0]===3&&(!d||_[1]>d[0]&&_[1]=u.length&&(u=void 0),{value:u&&u[f++],done:!u}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(u,l){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var f,d,h=c.call(u),p=[];try{for(;(l===void 0||l-- >0)&&!(f=h.next()).done;)p.push(f.value)}catch(g){d={error:g}}finally{try{f&&!f.done&&(c=h.return)&&c.call(h)}finally{if(d)throw d.error}}return p};Object.defineProperty(e,"__esModule",{value:!0});var o=t(9691),s=(function(){function u(l,c,f){this.keys=l,this.length=l.length,this._fields=c,this._fieldLookup=f??(function(d){var h={};return d.forEach(function(p,g){h[p]=g}),h})(l)}return u.prototype.forEach=function(l){var c,f;try{for(var d=i(this.entries()),h=d.next();!h.done;h=d.next()){var p=a(h.value,2),g=p[0];l(p[1],g,this)}}catch(y){c={error:y}}finally{try{h&&!h.done&&(f=d.return)&&f.call(d)}finally{if(c)throw c.error}}},u.prototype.map=function(l){var c,f,d=[];try{for(var h=i(this.entries()),p=h.next();!p.done;p=h.next()){var g=a(p.value,2),y=g[0],b=g[1];d.push(l(b,y,this))}}catch(_){c={error:_}}finally{try{p&&!p.done&&(f=h.return)&&f.call(h)}finally{if(c)throw c.error}}return d},u.prototype.entries=function(){var l;return n(this,function(c){switch(c.label){case 0:l=0,c.label=1;case 1:return lthis._fields.length-1||c<0)throw(0,o.newError)("This record has no field with index '"+c.toString()+"'. Remember that indexes start at `0`, and make sure your query returns records in the shape you meant it to.");return this._fields[c]},u.prototype.has=function(l){return typeof l=="number"?l>=0&&l{Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutWith=void 0;var n=t(7961),i=t(1074),a=t(1554);e.timeoutWith=function(o,s,u){var l,c,f;if(u=u??n.async,i.isValidDate(o)?l=o:typeof o=="number"&&(c=o),!s)throw new TypeError("No observable provided to switch to");if(f=function(){return s},l==null&&c==null)throw new TypeError("No timeout provided.");return a.timeout({first:l,each:c,scheduler:u,with:f})}},4869:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throwIfEmpty=void 0;var n=t(2823),i=t(7843),a=t(3111);function o(){return new n.EmptyError}e.throwIfEmpty=function(s){return s===void 0&&(s=o),i.operate(function(u,l){var c=!1;u.subscribe(a.createOperatorSubscriber(l,function(f){c=!0,l.next(f)},function(){return c?l.complete():l.error(s())}))})}},4883:function(r,e,t){var n,i=this&&this.__extends||(function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(_[x]=m[x])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function _(){this.constructor=y}g(y,b),y.prototype=b===null?Object.create(b):(_.prototype=b.prototype,new _)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=void 0;var a=t(9691),o="error",s="warn",u="info",l="debug",c=u,f=((n={})[o]=0,n[s]=1,n[u]=2,n[l]=3,n),d=(function(){function g(y,b){this._level=y,this._loggerFunction=b}return g.create=function(y){if((y==null?void 0:y.logging)!=null){var b=y.logging,_=(function(x){if((x==null?void 0:x.level)!=null){var E=x.level,O=f[E];if(O==null&&O!==0)throw(0,a.newError)("Illegal logging level: ".concat(E,". Supported levels are: ").concat(Object.keys(f).toString()));return E}return c})(b),m=(function(x){var E,O;if((x==null?void 0:x.logger)!=null){var S=x.logger;if(S!=null&&typeof S=="function")return S}throw(0,a.newError)("Illegal logger function: ".concat((O=(E=x==null?void 0:x.logger)===null||E===void 0?void 0:E.toString())!==null&&O!==void 0?O:"undefined"))})(b);return new g(_,m)}return this.noOp()},g.noOp=function(){return h},g.prototype.isErrorEnabled=function(){return p(this._level,o)},g.prototype.error=function(y){this.isErrorEnabled()&&this._loggerFunction(o,y)},g.prototype.isWarnEnabled=function(){return p(this._level,s)},g.prototype.warn=function(y){this.isWarnEnabled()&&this._loggerFunction(s,y)},g.prototype.isInfoEnabled=function(){return p(this._level,u)},g.prototype.info=function(y){this.isInfoEnabled()&&this._loggerFunction(u,y)},g.prototype.isDebugEnabled=function(){return p(this._level,l)},g.prototype.debug=function(y){this.isDebugEnabled()&&this._loggerFunction(l,y)},g})();e.Logger=d;var h=new((function(g){function y(){return g.call(this,u,function(b,_){})||this}return i(y,g),y.prototype.isErrorEnabled=function(){return!1},y.prototype.error=function(b){},y.prototype.isWarnEnabled=function(){return!1},y.prototype.warn=function(b){},y.prototype.isInfoEnabled=function(){return!1},y.prototype.info=function(b){},y.prototype.isDebugEnabled=function(){return!1},y.prototype.debug=function(b){},y})(d));function p(g,y){return f[g]>=f[y]}},4912:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pluck=void 0;var n=t(5471);e.pluck=function(){for(var i=[],a=0;a{Object.defineProperty(e,"__esModule",{value:!0}),e.from=void 0;var n=t(1656),i=t(9445);e.from=function(a,o){return o?n.scheduled(a,o):i.innerFrom(a)}},4953:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleReadableStreamLike=void 0;var n=t(854),i=t(9137);e.scheduleReadableStreamLike=function(a,o){return n.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(a),o)}},5006:function(r,e,t){var n=this&&this.__extends||(function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function c(){this.constructor=u}s(u,l),u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AsapAction=void 0;var i=t(5267),a=t(6293),o=(function(s){function u(l,c){var f=s.call(this,l,c)||this;return f.scheduler=l,f.work=c,f}return n(u,s),u.prototype.requestAsyncId=function(l,c,f){return f===void 0&&(f=0),f!==null&&f>0?s.prototype.requestAsyncId.call(this,l,c,f):(l.actions.push(this),l._scheduled||(l._scheduled=a.immediateProvider.setImmediate(l.flush.bind(l,void 0))))},u.prototype.recycleAsyncId=function(l,c,f){var d;if(f===void 0&&(f=0),f!=null?f>0:this.delay>0)return s.prototype.recycleAsyncId.call(this,l,c,f);var h=l.actions;c!=null&&((d=h[h.length-1])===null||d===void 0?void 0:d.id)!==c&&(a.immediateProvider.clearImmediate(c),l._scheduled===c&&(l._scheduled=void 0))},u})(i.AsyncAction);e.AsapAction=o},5022:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(m,x,E,O){O===void 0&&(O=E);var S=Object.getOwnPropertyDescriptor(x,E);S&&!("get"in S?!x.__esModule:S.writable||S.configurable)||(S={enumerable:!0,get:function(){return x[E]}}),Object.defineProperty(m,O,S)}:function(m,x,E,O){O===void 0&&(O=E),m[O]=x[E]}),i=this&&this.__setModuleDefault||(Object.create?function(m,x){Object.defineProperty(m,"default",{enumerable:!0,value:x})}:function(m,x){m.default=x}),a=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var x={};if(m!=null)for(var E in m)E!=="default"&&Object.prototype.hasOwnProperty.call(m,E)&&n(x,m,E);return i(x,m),x};Object.defineProperty(e,"__esModule",{value:!0}),e.floorMod=e.floorDiv=e.assertValidZoneId=e.assertValidNanosecond=e.assertValidSecond=e.assertValidMinute=e.assertValidHour=e.assertValidDay=e.assertValidMonth=e.assertValidYear=e.timeZoneOffsetInSeconds=e.totalNanoseconds=e.newDate=e.toStandardDate=e.isoStringToStandardDate=e.dateToIsoString=e.timeZoneOffsetToIsoString=e.timeToIsoString=e.durationToIsoString=e.dateToEpochDay=e.localDateTimeToEpochSecond=e.localTimeToNanoOfDay=e.normalizeNanosecondsForDuration=e.normalizeSecondsForDuration=e.SECONDS_PER_DAY=e.DAYS_PER_400_YEAR_CYCLE=e.DAYS_0000_TO_1970=e.NANOS_PER_HOUR=e.NANOS_PER_MINUTE=e.NANOS_PER_MILLISECOND=e.NANOS_PER_SECOND=e.SECONDS_PER_HOUR=e.SECONDS_PER_MINUTE=e.MINUTES_PER_HOUR=e.NANOSECOND_OF_SECOND_RANGE=e.SECOND_OF_MINUTE_RANGE=e.MINUTE_OF_HOUR_RANGE=e.HOUR_OF_DAY_RANGE=e.DAY_OF_MONTH_RANGE=e.MONTH_OF_YEAR_RANGE=e.YEAR_RANGE=void 0;var o=a(t(3371)),s=t(9691),u=t(6587),l=(function(){function m(x,E){this._minNumber=x,this._maxNumber=E,this._minInteger=(0,o.int)(x),this._maxInteger=(0,o.int)(E)}return m.prototype.contains=function(x){if((0,o.isInt)(x)&&x instanceof o.default)return x.greaterThanOrEqual(this._minInteger)&&x.lessThanOrEqual(this._maxInteger);if(typeof x=="bigint"){var E=(0,o.int)(x);return E.greaterThanOrEqual(this._minInteger)&&E.lessThanOrEqual(this._maxInteger)}return x>=this._minNumber&&x<=this._maxNumber},m.prototype.toString=function(){return"[".concat(this._minNumber,", ").concat(this._maxNumber,"]")},m})();function c(m,x,E){m=(0,o.int)(m),x=(0,o.int)(x),E=(0,o.int)(E);var O=m.multiply(365);return O=(O=(O=m.greaterThanOrEqual(0)?O.add(m.add(3).div(4).subtract(m.add(99).div(100)).add(m.add(399).div(400))):O.subtract(m.div(-4).subtract(m.div(-100)).add(m.div(-400)))).add(x.multiply(367).subtract(362).div(12))).add(E.subtract(1)),x.greaterThan(2)&&(O=O.subtract(1),(function(S){return!(!(S=(0,o.int)(S)).modulo(4).equals(0)||S.modulo(100).equals(0)&&!S.modulo(400).equals(0))})(m)||(O=O.subtract(1))),O.subtract(e.DAYS_0000_TO_1970)}function f(m,x){return m===1?x%400==0||x%4==0&&x%100!=0?29:28:[0,2,4,6,7,9,11].includes(m)?31:30}e.YEAR_RANGE=new l(-999999999,999999999),e.MONTH_OF_YEAR_RANGE=new l(1,12),e.DAY_OF_MONTH_RANGE=new l(1,31),e.HOUR_OF_DAY_RANGE=new l(0,23),e.MINUTE_OF_HOUR_RANGE=new l(0,59),e.SECOND_OF_MINUTE_RANGE=new l(0,59),e.NANOSECOND_OF_SECOND_RANGE=new l(0,999999999),e.MINUTES_PER_HOUR=60,e.SECONDS_PER_MINUTE=60,e.SECONDS_PER_HOUR=e.SECONDS_PER_MINUTE*e.MINUTES_PER_HOUR,e.NANOS_PER_SECOND=1e9,e.NANOS_PER_MILLISECOND=1e6,e.NANOS_PER_MINUTE=e.NANOS_PER_SECOND*e.SECONDS_PER_MINUTE,e.NANOS_PER_HOUR=e.NANOS_PER_MINUTE*e.MINUTES_PER_HOUR,e.DAYS_0000_TO_1970=719528,e.DAYS_PER_400_YEAR_CYCLE=146097,e.SECONDS_PER_DAY=86400,e.normalizeSecondsForDuration=function(m,x){return(0,o.int)(m).add(g(x,e.NANOS_PER_SECOND))},e.normalizeNanosecondsForDuration=function(m){return y(m,e.NANOS_PER_SECOND)},e.localTimeToNanoOfDay=function(m,x,E,O){m=(0,o.int)(m),x=(0,o.int)(x),E=(0,o.int)(E),O=(0,o.int)(O);var S=m.multiply(e.NANOS_PER_HOUR);return(S=(S=S.add(x.multiply(e.NANOS_PER_MINUTE))).add(E.multiply(e.NANOS_PER_SECOND))).add(O)},e.localDateTimeToEpochSecond=function(m,x,E,O,S,T,P){var I=c(m,x,E),k=(function(L,B,j){L=(0,o.int)(L),B=(0,o.int)(B),j=(0,o.int)(j);var z=L.multiply(e.SECONDS_PER_HOUR);return(z=z.add(B.multiply(e.SECONDS_PER_MINUTE))).add(j)})(O,S,T);return I.multiply(e.SECONDS_PER_DAY).add(k)},e.dateToEpochDay=c,e.durationToIsoString=function(m,x,E,O){var S=_(m),T=_(x),P=(function(I,k){var L,B;I=(0,o.int)(I),k=(0,o.int)(k);var j=I.isNegative(),z=k.greaterThan(0);return L=j&&z?I.equals(-1)?"-0":I.add(1).toString():I.toString(),z&&(B=b(j?k.negate().add(2*e.NANOS_PER_SECOND).modulo(e.NANOS_PER_SECOND):k.add(e.NANOS_PER_SECOND).modulo(e.NANOS_PER_SECOND))),B!=null?L+B:L})(E,O);return"P".concat(S,"M").concat(T,"DT").concat(P,"S")},e.timeToIsoString=function(m,x,E,O){var S=_(m,2),T=_(x,2),P=_(E,2),I=b(O);return"".concat(S,":").concat(T,":").concat(P).concat(I)},e.timeZoneOffsetToIsoString=function(m){if((m=(0,o.int)(m)).equals(0))return"Z";var x=m.isNegative();x&&(m=m.multiply(-1));var E=x?"-":"+",O=_(m.div(e.SECONDS_PER_HOUR),2),S=_(m.div(e.SECONDS_PER_MINUTE).modulo(e.MINUTES_PER_HOUR),2),T=m.modulo(e.SECONDS_PER_MINUTE),P=T.equals(0)?null:_(T,2);return P!=null?"".concat(E).concat(O,":").concat(S,":").concat(P):"".concat(E).concat(O,":").concat(S)},e.dateToIsoString=function(m,x,E){var O=(function(P){var I=(0,o.int)(P);return I.isNegative()||I.greaterThan(9999)?_(I,6,{usePositiveSign:!0}):_(I,4)})(m),S=_(x,2),T=_(E,2);return"".concat(O,"-").concat(S,"-").concat(T)},e.isoStringToStandardDate=function(m){return new Date(m)},e.toStandardDate=function(m){return new Date(m)},e.newDate=function(m){return new Date(m)},e.totalNanoseconds=function(m,x){return(function(E,O){return E instanceof o.default?E.add(O):typeof E=="bigint"?E+BigInt(O):E+O})(x=x??0,m.getMilliseconds()*e.NANOS_PER_MILLISECOND)},e.timeZoneOffsetInSeconds=function(m){var x=m.getSeconds()-m.getUTCSeconds(),E=m.getMinutes()-m.getUTCMinutes(),O=m.getHours()-m.getUTCHours(),S=(function(T){return T.getMonth()===T.getUTCMonth()?T.getDate()-T.getUTCDate():T.getFullYear()>T.getUTCFullYear()||T.getMonth()>T.getUTCMonth()&&T.getFullYear()===T.getUTCFullYear()?T.getDate()+f(T.getUTCMonth(),T.getUTCFullYear())-T.getUTCDate():T.getDate()-(T.getUTCDate()+f(T.getMonth(),T.getFullYear()))})(m);return O*e.SECONDS_PER_HOUR+E*e.SECONDS_PER_MINUTE+x+S*e.SECONDS_PER_DAY},e.assertValidYear=function(m){return p(m,e.YEAR_RANGE,"Year")},e.assertValidMonth=function(m){return p(m,e.MONTH_OF_YEAR_RANGE,"Month")},e.assertValidDay=function(m){return p(m,e.DAY_OF_MONTH_RANGE,"Day")},e.assertValidHour=function(m){return p(m,e.HOUR_OF_DAY_RANGE,"Hour")},e.assertValidMinute=function(m){return p(m,e.MINUTE_OF_HOUR_RANGE,"Minute")},e.assertValidSecond=function(m){return p(m,e.SECOND_OF_MINUTE_RANGE,"Second")},e.assertValidNanosecond=function(m){return p(m,e.NANOSECOND_OF_SECOND_RANGE,"Nanosecond")};var d=new Map,h=function(m,x){return(0,s.newError)("".concat(x,' is expected to be a valid ZoneId but was: "').concat(m,'"'))};function p(m,x,E){if((0,u.assertNumberOrInteger)(m,E),!x.contains(m))throw(0,s.newError)("".concat(E," is expected to be in range ").concat(x.toString()," but was: ").concat(m.toString()));return m}function g(m,x){m=(0,o.int)(m),x=(0,o.int)(x);var E=m.div(x);return m.isPositive()!==x.isPositive()&&E.multiply(x).notEquals(m)&&(E=E.subtract(1)),E}function y(m,x){return m=(0,o.int)(m),x=(0,o.int)(x),m.subtract(g(m,x).multiply(x))}function b(m){return(m=(0,o.int)(m)).equals(0)?"":"."+_(m,9)}function _(m,x,E){var O=(m=(0,o.int)(m)).isNegative();O&&(m=m.negate());var S=m.toString();if(x!=null)for(;S.length0)&&!(b=m.next()).done;)x.push(b.value)}catch(E){_={error:E}}finally{try{b&&!b.done&&(y=m.return)&&y.call(m)}finally{if(_)throw _.error}}return x},i=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0});var a=t(7168),o=t(9305),s=i(t(7518)),u=t(5973),l=t(6492),c=o.internal.temporalUtil.localDateTimeToEpochSecond,f=new Map;function d(p,g,y){var b=(function(E){if(!f.has(E)){var O=new Intl.DateTimeFormat("en-US",{timeZone:E,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1,era:"narrow"});f.set(E,O)}return f.get(E)})(p),_=(0,o.int)(g).multiply(1e3).add((0,o.int)(y).div(1e6)).toNumber(),m=b.formatToParts(_).reduce(function(E,O){return O.type==="era"?E.adjustEra=O.value.toUpperCase()==="B"?function(S){return S.subtract(1).negate()}:l.identity:O.type==="hour"?E.hour=(0,o.int)(O.value).modulo(24):O.type!=="literal"&&(E[O.type]=(0,o.int)(O.value)),E},{});m.year=m.adjustEra(m.year);var x=c(m.year,m.month,m.day,m.hour,m.minute,m.second,m.nanosecond);return m.timeZoneOffsetSeconds=x.subtract(g),m.hour=m.hour.modulo(24),m}function h(p,g,y){if(!g&&!y)return p;var b=function(E){return y?E.toBigInt():E.toNumberOrInfinity()},_=Object.create(Object.getPrototypeOf(p));for(var m in p)if(Object.prototype.hasOwnProperty.call(p,m)===!0){var x=p[m];_[m]=(0,o.isInt)(x)?b(x):x}return Object.freeze(_),_}e.default={createDateTimeWithZoneIdTransformer:function(p,g){var y=p.disableLosslessIntegers,b=p.useBigInt;return s.default.createDateTimeWithZoneIdTransformer(p).extendsWith({signature:105,fromStructure:function(_){a.structure.verifyStructSize("DateTimeWithZoneId",3,_.size);var m=n(_.fields,3),x=m[0],E=m[1],O=m[2],S=d(O,x,E);return h(new o.DateTime(S.year,S.month,S.day,S.hour,S.minute,S.second,(0,o.int)(E),S.timeZoneOffsetSeconds,O),y,b)},toStructure:function(_){var m=c(_.year,_.month,_.day,_.hour,_.minute,_.second,_.nanosecond),x=_.timeZoneOffsetSeconds!=null?_.timeZoneOffsetSeconds:(function(T,P,I){var k=d(T,P,I),L=c(k.year,k.month,k.day,k.hour,k.minute,k.second,I).subtract(P),B=P.subtract(L),j=d(T,B,I);return c(j.year,j.month,j.day,j.hour,j.minute,j.second,I).subtract(B)})(_.timeZoneId,m,_.nanosecond);_.timeZoneOffsetSeconds==null&&g.warn('DateTime objects without "timeZoneOffsetSeconds" property are prune to bugs related to ambiguous times. For instance, 2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');var E=m.subtract(x),O=(0,o.int)(_.nanosecond),S=_.timeZoneId;return new a.structure.Structure(105,[E,O,S])}})},createDateTimeWithOffsetTransformer:function(p){var g=p.disableLosslessIntegers,y=p.useBigInt;return s.default.createDateTimeWithOffsetTransformer(p).extendsWith({signature:73,toStructure:function(b){var _=c(b.year,b.month,b.day,b.hour,b.minute,b.second,b.nanosecond),m=(0,o.int)(b.nanosecond),x=(0,o.int)(b.timeZoneOffsetSeconds),E=_.subtract(x);return new a.structure.Structure(73,[E,m,x])},fromStructure:function(b){a.structure.verifyStructSize("DateTimeWithZoneOffset",3,b.size);var _=n(b.fields,3),m=_[0],x=_[1],E=_[2],O=(0,o.int)(m).add(E),S=(0,u.epochSecondAndNanoToLocalDateTime)(O,x);return h(new o.DateTime(S.year,S.month,S.day,S.hour,S.minute,S.second,S.nanosecond,E,null),g,y)}})}}},5184:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observeOn=void 0;var n=t(7110),i=t(7843),a=t(3111);e.observeOn=function(o,s){return s===void 0&&(s=0),i.operate(function(u,l){u.subscribe(a.createOperatorSubscriber(l,function(c){return n.executeSchedule(l,o,function(){return l.next(c)},s)},function(){return n.executeSchedule(l,o,function(){return l.complete()},s)},function(c){return n.executeSchedule(l,o,function(){return l.error(c)},s)}))})}},5250:function(r,e,t){var n;r=t.nmd(r),(function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,l=128,c=1/0,f=9007199254740991,d=NaN,h=4294967295,p=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",_="[object Date]",m="[object Error]",x="[object Function]",E="[object GeneratorFunction]",O="[object Map]",S="[object Number]",T="[object Object]",P="[object Promise]",I="[object RegExp]",k="[object Set]",L="[object String]",B="[object Symbol]",j="[object WeakMap]",z="[object ArrayBuffer]",H="[object DataView]",q="[object Float32Array]",W="[object Float64Array]",$="[object Int8Array]",J="[object Int16Array]",X="[object Int32Array]",Z="[object Uint8Array]",ue="[object Uint8ClampedArray]",re="[object Uint16Array]",ne="[object Uint32Array]",le=/\b__p \+= '';/g,ce=/\b(__p \+=) '' \+/g,pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fe=/&(?:amp|lt|gt|quot|#39);/g,se=/[&<>"']/g,de=RegExp(fe.source),ge=RegExp(se.source),Oe=/<%-([\s\S]+?)%>/g,ke=/<%([\s\S]+?)%>/g,De=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(Q.source),we=/^\s+/,Ee=/\s/,Me=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ie=/\{\n\/\* \[wrapped with (.+)\] \*/,Ye=/,? & /,ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mt=/[()=,{}\[\]\/\s]/,wt=/\\(\\)?/g,Mt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,vt=/^[-+]0x[0-9a-f]+$/i,tt=/^0b[01]+$/i,_e=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nt=/($^)/,It=/['\n\r\u2028\u2029\\]/g,ct="\\ud800-\\udfff",Lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rt="\\u2700-\\u27bf",jt="a-z\\xdf-\\xf6\\xf8-\\xff",Yt="A-Z\\xc0-\\xd6\\xd8-\\xde",sr="\\ufe0e\\ufe0f",Ut="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rr="["+ct+"]",Xt="["+Ut+"]",Vr="["+Lt+"]",Br="\\d+",mr="["+Rt+"]",ur="["+jt+"]",sn="[^"+ct+Ut+Br+Rt+jt+Yt+"]",Fr="\\ud83c[\\udffb-\\udfff]",un="[^"+ct+"]",bn="(?:\\ud83c[\\udde6-\\uddff]){2}",wn="[\\ud800-\\udbff][\\udc00-\\udfff]",_n="["+Yt+"]",xn="\\u200d",on="(?:"+ur+"|"+sn+")",Nn="(?:"+_n+"|"+sn+")",fi="(?:['’](?:d|ll|m|re|s|t|ve))?",gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",yn="(?:"+Vr+"|"+Fr+")?",Jn="["+sr+"]?",_i=Jn+yn+"(?:"+xn+"(?:"+[un,bn,wn].join("|")+")"+Jn+yn+")*",Ir="(?:"+[mr,bn,wn].join("|")+")"+_i,pa="(?:"+[un+Vr+"?",Vr,bn,wn,Rr].join("|")+")",di=RegExp("['’]","g"),Bt=RegExp(Vr,"g"),hr=RegExp(Fr+"(?="+Fr+")|"+pa+_i,"g"),ei=RegExp([_n+"?"+ur+"+"+fi+"(?="+[Xt,_n,"$"].join("|")+")",Nn+"+"+gn+"(?="+[Xt,_n+on,"$"].join("|")+")",_n+"?"+on+"+"+fi,_n+"+"+gn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Br,Ir].join("|"),"g"),Hn=RegExp("["+xn+ct+Lt+sr+"]"),ds=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Na=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ki=-1,Wr={};Wr[q]=Wr[W]=Wr[$]=Wr[J]=Wr[X]=Wr[Z]=Wr[ue]=Wr[re]=Wr[ne]=!0,Wr[g]=Wr[y]=Wr[z]=Wr[b]=Wr[H]=Wr[_]=Wr[m]=Wr[x]=Wr[O]=Wr[S]=Wr[T]=Wr[I]=Wr[k]=Wr[L]=Wr[j]=!1;var Nr={};Nr[g]=Nr[y]=Nr[z]=Nr[H]=Nr[b]=Nr[_]=Nr[q]=Nr[W]=Nr[$]=Nr[J]=Nr[X]=Nr[O]=Nr[S]=Nr[T]=Nr[I]=Nr[k]=Nr[L]=Nr[B]=Nr[Z]=Nr[ue]=Nr[re]=Nr[ne]=!0,Nr[m]=Nr[x]=Nr[j]=!1;var na={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Us=parseFloat,vu=parseInt,ga=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,zs=typeof self=="object"&&self&&self.Object===Object&&self,Ln=ga||zs||Function("return this")(),Ii=e&&!e.nodeType&&e,Ni=Ii&&r&&!r.nodeType&&r,Pc=Ni&&Ni.exports===Ii,pu=Pc&&ga.process,ia=(function(){try{return Ni&&Ni.require&&Ni.require("util").types||pu&&pu.binding&&pu.binding("util")}catch{}})(),Hl=ia&&ia.isArrayBuffer,Md=ia&&ia.isDate,Xa=ia&&ia.isMap,Wl=ia&&ia.isRegExp,Yl=ia&&ia.isSet,nf=ia&&ia.isTypedArray;function Wi(st,xt,pt){switch(pt.length){case 0:return st.call(xt);case 1:return st.call(xt,pt[0]);case 2:return st.call(xt,pt[0],pt[1]);case 3:return st.call(xt,pt[0],pt[1],pt[2])}return st.apply(xt,pt)}function af(st,xt,pt,Wt){for(var ir=-1,En=st==null?0:st.length;++ir-1}function Xl(st,xt,pt){for(var Wt=-1,ir=st==null?0:st.length;++Wt-1;);return pt}function Oa(st,xt){for(var pt=st.length;pt--&&xo(xt,st[pt],0)>-1;);return pt}var tl=el({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),uf=el({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ql(st){return"\\"+na[st]}function rl(st){return Hn.test(st)}function wi(st){var xt=-1,pt=Array(st.size);return st.forEach(function(Wt,ir){pt[++xt]=[ir,Wt]}),pt}function Jl(st,xt){return function(pt){return st(xt(pt))}}function aa(st,xt){for(var pt=-1,Wt=st.length,ir=0,En=[];++pt",""":'"',"'":"'"}),Ho=(function st(xt){var pt,Wt=(xt=xt==null?Ln:Ho.defaults(Ln.Object(),xt,Ho.pick(Ln,Na))).Array,ir=xt.Date,En=xt.Error,oa=xt.Function,ja=xt.Math,Kn=xt.Object,ec=xt.RegExp,xi=xt.String,ba=xt.TypeError,cf=Wt.prototype,Ev=oa.prototype,nl=Kn.prototype,Dd=xt["__core-js_shared__"],kd=Ev.toString,Fn=nl.hasOwnProperty,Sv=0,Hf=(pt=/[^.]+$/.exec(Dd&&Dd.keys&&Dd.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"",il=nl.toString,Ov=kd.call(Kn),Wf=Ln._,ff=ec("^"+kd.call(Fn).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vs=Pc?xt.Buffer:i,_u=xt.Symbol,kc=xt.Uint8Array,Ah=Vs?Vs.allocUnsafe:i,tc=Jl(Kn.getPrototypeOf,Kn),Yf=Kn.create,Ic=nl.propertyIsEnumerable,wu=cf.splice,Eo=_u?_u.isConcatSpreadable:i,Nc=_u?_u.iterator:i,Hs=_u?_u.toStringTag:i,df=(function(){try{var R=Ts(Kn,"defineProperty");return R({},"",{}),R}catch{}})(),Rh=xt.clearTimeout!==Ln.clearTimeout&&xt.clearTimeout,Xf=ir&&ir.now!==Ln.Date.now&&ir.now,$f=xt.setTimeout!==Ln.setTimeout&&xt.setTimeout,Id=ja.ceil,rc=ja.floor,Kf=Kn.getOwnPropertySymbols,Lc=Vs?Vs.isBuffer:i,Nd=xt.isFinite,Ph=cf.join,hf=Jl(Kn.keys,Kn),Li=ja.max,hi=ja.min,Zf=ir.now,Tv=xt.parseInt,Qf=ja.random,Yp=cf.reverse,al=Ts(xt,"DataView"),ri=Ts(xt,"Map"),nc=Ts(xt,"Promise"),jc=Ts(xt,"Set"),vf=Ts(xt,"WeakMap"),pf=Ts(Kn,"create"),Bc=vf&&new vf,Ws={},ic=Yn(al),We=Yn(ri),ft=Yn(nc),ut=Yn(jc),Kt=Yn(vf),Pr=_u?_u.prototype:i,Qr=Pr?Pr.valueOf:i,oi=Pr?Pr.toString:i;function be(R){if(zi(R)&&!Ur(R)&&!(R instanceof nn)){if(R instanceof Ei)return R;if(Fn.call(R,"__wrapped__"))return Gc(R)}return new Ei(R)}var ol=(function(){function R(){}return function(N){if(!Mi(N))return{};if(Yf)return Yf(N);R.prototype=N;var G=new R;return R.prototype=i,G}})();function Wo(){}function Ei(R,N){this.__wrapped__=R,this.__actions__=[],this.__chain__=!!N,this.__index__=0,this.__values__=i}function nn(R){this.__wrapped__=R,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function sl(R){var N=-1,G=R==null?0:R.length;for(this.clear();++N=N?R:N)),R}function Ka(R,N,G,te,he,Re){var je,He=1&N,et=2&N,yt=4&N;if(G&&(je=he?G(R,te,he,Re):G(R)),je!==i)return je;if(!Mi(R))return R;var Et=Ur(R);if(Et){if(je=(function(St){var Nt=St.length,lr=new St.constructor(Nt);return Nt&&typeof St[0]=="string"&&Fn.call(St,"index")&&(lr.index=St.index,lr.input=St.input),lr})(R),!He)return Ca(R,je)}else{var At=Wn(R),$t=At==x||At==E;if(Uu(R))return Ta(R,He);if(At==T||At==g||$t&&!he){if(je=et||$t?{}:ts(R),!He)return et?(function(St,Nt){return Jo(St,Do(St),Nt)})(R,(function(St,Nt){return St&&Jo(Nt,to(Nt),St)})(je,R)):(function(St,Nt){return Jo(St,id(St),Nt)})(R,ac(je,R))}else{if(!Nr[At])return he?R:{};je=(function(St,Nt,lr){var Gt,Lr=St.constructor;switch(Nt){case z:return Mu(St);case b:case _:return new Lr(+St);case H:return(function(jr,qn){var vr=qn?Mu(jr.buffer):jr.buffer;return new jr.constructor(vr,jr.byteOffset,jr.byteLength)})(St,lr);case q:case W:case $:case J:case X:case Z:case ue:case re:case ne:return Jf(St,lr);case O:return new Lr;case S:case L:return new Lr(St);case I:return(function(jr){var qn=new jr.constructor(jr.source,Dt.exec(jr));return qn.lastIndex=jr.lastIndex,qn})(St);case k:return new Lr;case B:return Gt=St,Qr?Kn(Qr.call(Gt)):{}}})(R,At,He)}}Re||(Re=new Jr);var tr=Re.get(R);if(tr)return tr;Re.set(R,je),Sl(R)?R.forEach(function(St){je.add(Ka(St,N,G,St,R,Re))}):Zp(R)&&R.forEach(function(St,Nt){je.set(Nt,Ka(St,N,G,Nt,R,Re))});var cr=Et?i:(yt?et?Os:Qs:et?to:xa)(R);return La(cr||R,function(St,Nt){cr&&(St=R[Nt=St]),Eu(je,Nt,Ka(St,N,G,Nt,R,Re))}),je}function Su(R,N,G){var te=G.length;if(R==null)return!te;for(R=Kn(R);te--;){var he=G[te],Re=N[he],je=R[he];if(je===i&&!(he in R)||!Re(je))return!1}return!0}function Mh(R,N,G){if(typeof R!="function")throw new ba(a);return gc(function(){R.apply(i,G)},N)}function Yi(R,N,G,te){var he=-1,Re=Mc,je=!0,He=R.length,et=[],yt=N.length;if(!He)return et;G&&(N=ti(N,Zr(G))),te?(Re=Xl,je=!1):N.length>=200&&(Re=ps,je=!1,N=new xu(N));e:for(;++he-1},$a.prototype.set=function(R,N){var G=this.__data__,te=ul(G,R);return te<0?(++this.size,G.push([R,N])):G[te][1]=N,this},gs.prototype.clear=function(){this.size=0,this.__data__={hash:new sl,map:new(ri||$a),string:new sl}},gs.prototype.delete=function(R){var N=vo(this,R).delete(R);return this.size-=N?1:0,N},gs.prototype.get=function(R){return vo(this,R).get(R)},gs.prototype.has=function(R){return vo(this,R).has(R)},gs.prototype.set=function(R,N){var G=vo(this,R),te=G.size;return G.set(R,N),this.size+=G.size==te?0:1,this},xu.prototype.add=xu.prototype.push=function(R){return this.__data__.set(R,o),this},xu.prototype.has=function(R){return this.__data__.has(R)},Jr.prototype.clear=function(){this.__data__=new $a,this.size=0},Jr.prototype.delete=function(R){var N=this.__data__,G=N.delete(R);return this.size=N.size,G},Jr.prototype.get=function(R){return this.__data__.get(R)},Jr.prototype.has=function(R){return this.__data__.has(R)},Jr.prototype.set=function(R,N){var G=this.__data__;if(G instanceof $a){var te=G.__data__;if(!ri||te.length<199)return te.push([R,N]),this.size=++G.size,this;G=this.__data__=new gs(te)}return G.set(R,N),this.size=G.size,this};var Ba=Ro(Xs),To=Ro(sa,!0);function Cv(R,N){var G=!0;return Ba(R,function(te,he,Re){return G=!!N(te,he,Re)}),G}function oc(R,N,G){for(var te=-1,he=R.length;++te0&&G(He)?N>1?ji(He,N-1,G,te,he):qs(he,He):te||(he[he.length]=He)}return he}var Yo=Ki(),yf=Ki(!0);function Xs(R,N){return R&&Yo(R,N,xa)}function sa(R,N){return R&&yf(R,N,xa)}function cl(R,N){return hs(N,function(G){return bc(R[G])})}function bs(R,N){for(var G=0,te=(N=co(N,R)).length;R!=null&&GN}function Ao(R,N){return R!=null&&Fn.call(R,N)}function Xi(R,N){return R!=null&&N in Kn(R)}function Xo(R,N,G){for(var te=G?Xl:Mc,he=R[0].length,Re=R.length,je=Re,He=Wt(Re),et=1/0,yt=[];je--;){var Et=R[je];je&&N&&(Et=ti(Et,Zr(N))),et=hi(Et.length,et),He[je]=!G&&(N||he>=120&&Et.length>=120)?new xu(je&&Et):i}Et=R[0];var At=-1,$t=He[0];e:for(;++At=Nt?lr:lr*(At[$t]=="desc"?-1:1)}return yt.index-Et.index})(He,et,G)});je--;)Re[je]=Re[je].value;return Re})(he)}function _s(R,N,G){for(var te=-1,he=N.length,Re={};++te-1;)He!==R&&wu.call(He,et,1),wu.call(R,et,1);return R}function xe(R,N){for(var G=R?N.length:0,te=G-1;G--;){var he=N[G];if(G==te||he!==Re){var Re=he;Sr(he)?wu.call(R,he,1):Ih(R,he)}}return R}function Tu(R,N){return R+rc(Qf()*(N-R+1))}function Ks(R,N){var G="";if(!R||N<1||N>f)return G;do N%2&&(G+=R),(N=rc(N/2))&&(R+=R);while(N);return G}function ar(R,N){return Sf(_l(R,N,as),R+"")}function Yr(R){return gf(Rs(R))}function Cu(R,N){var G=Rs(R);return ju(G,ll(N,0,G.length))}function ws(R,N,G,te){if(!Mi(R))return R;for(var he=-1,Re=(N=co(N,R)).length,je=Re-1,He=R;He!=null&&++hehe?0:he+N),(G=G>he?he:G)<0&&(G+=he),he=N>G?0:G-N>>>0,N>>>=0;for(var Re=Wt(he);++te>>1,je=R[Re];je!==null&&!is(je)&&(G?je<=N:je=200){var yt=N?null:Zs(R);if(yt)return mu(yt);je=!1,he=ps,et=new xu}else et=N?[]:He;e:for(;++te=te?R:za(R,N,G)}var Qo=Rh||function(R){return Ln.clearTimeout(R)};function Ta(R,N){if(N)return R.slice();var G=R.length,te=Ah?Ah(G):new R.constructor(G);return R.copy(te),te}function Mu(R){var N=new R.constructor(R.byteLength);return new kc(N).set(new kc(R)),N}function Jf(R,N){var G=N?Mu(R.buffer):R.buffer;return new R.constructor(G,R.byteOffset,R.length)}function ed(R,N){if(R!==N){var G=R!==i,te=R===null,he=R==R,Re=is(R),je=N!==i,He=N===null,et=N==N,yt=is(N);if(!He&&!yt&&!Re&&R>N||Re&&je&&et&&!He&&!yt||te&&je&&et||!G&&et||!he)return 1;if(!te&&!Re&&!yt&&R1?G[he-1]:i,je=he>2?G[2]:i;for(Re=R.length>3&&typeof Re=="function"?(he--,Re):i,je&&Xr(G[0],G[1],je)&&(Re=he<3?i:Re,he=1),N=Kn(N);++te-1?he[Re?N[je]:je]:i}}function Uc(R){return Ss(function(N){var G=N.length,te=G,he=Ei.prototype.thru;for(R&&N.reverse();te--;){var Re=N[te];if(typeof Re!="function")throw new ba(a);if(he&&!je&&Qi(Re)=="wrapper")var je=new Ei([],!0)}for(te=je?te:G;++te1&&Gt.reverse(),Et&&etHe))return!1;var yt=Re.get(R),Et=Re.get(N);if(yt&&Et)return yt==N&&Et==R;var At=-1,$t=!0,tr=2&G?new xu:i;for(Re.set(R,N),Re.set(N,R);++At-1&&R%1==0&&R1?"& ":"")+Re[He],Re=Re.join(je>2?", ":" "),he.replace(Me,`{ /* [wrapped with `+Re+`] */ -`)})(te,(function(he,Re){return La(p,function(je){var He="_."+je[0];Re&je[1]&&!Mc(he,He)&&he.push(He)}),he.sort()})((function(he){var Re=he.match(Ie);return Re?Re[1].split(Ye):[]})(te),G)))}function Rv(R){var N=0,G=0;return function(){var te=Zf(),he=16-(te-G);if(G=te,he>0){if(++N>=800)return arguments[0]}else N=0;return R.apply(i,arguments)}}function ju(R,N){var G=-1,te=R.length,he=te-1;for(N=N===i?te:N;++G1?R[N-1]:i;return G=typeof G=="function"?(R.pop(),G):i,ua(R,G)});function yr(R){var N=be(R);return N.__chain__=!0,N}function Ji(R,N){return N(R)}var mn=Ss(function(R){var N=R.length,G=N?R[0]:0,te=this.__wrapped__,he=function(Re){return ms(Re,R)};return!(N>1||this.__actions__.length)&&te instanceof nn&&Sr(G)?((te=te.slice(G,+G+(N?1:0))).__actions__.push({func:Ji,args:[he],thisArg:i}),new Ei(te,this.__chain__).thru(function(Re){return N&&!Re.length&&Re.push(i),Re})):this.thru(he)}),cn=td(function(R,N,G){Fn.call(R,G)?++R[G]:ys(R,G,1)}),Mn=Ro(Pe),On=Ro(ze);function zn(R,N){return(Ur(R)?La:Ba)(R,er(N,3))}function rs(R,N){return(Ur(R)?Go:Oo)(R,er(N,3))}var wl=td(function(R,N,G){Fn.call(R,G)?R[G].push(N):ys(R,G,[N])}),Bu=ar(function(R,N,G){var te=-1,he=typeof N=="function",Re=ns(R)?Wt(R.length):[];return Ba(R,function(je){Re[++te]=he?Wi(N,je,G):Fa(je,N,G)}),Re}),mc=td(function(R,N,G){ys(R,G,N)});function Fu(R,N){return(Ur(R)?ti:hn)(R,er(N,3))}var As=td(function(R,N,G){R[G?0:1].push(N)},function(){return[[],[]]}),xl=ar(function(R,N){if(R==null)return[];var G=N.length;return G>1&&Xr(R,N[0],N[1])?N=[]:G>2&&Xr(N[0],N[1],N[2])&&(N=[N[0]]),cc(R,ji(N,1),[])}),Fi=Xf||function(){return Ln.Date.now()};function wa(R,N,G){return N=G?i:N,N=R&&N==null?R.length:N,xs(R,l,i,i,i,i,N)}function sd(R,N){var G;if(typeof N!="function")throw new ba(a);return R=Kr(R),function(){return--R>0&&(G=N.apply(this,arguments)),R<=1&&(N=i),G}}var Tf=ar(function(R,N,G){var te=1;if(G.length){var he=aa(G,Lu(Tf));te|=u}return xs(R,te,N,G,he)}),Lh=ar(function(R,N,G){var te=3;if(G.length){var he=aa(G,Lu(Lh));te|=u}return xs(N,te,R,G,he)});function Vc(R,N,G){var te,he,Re,je,He,et,yt=0,Et=!1,At=!1,$t=!0;if(typeof R!="function")throw new ba(a);function tr(Gt){var Lr=te,jr=he;return te=he=i,yt=Gt,je=R.apply(jr,Lr)}function cr(Gt){var Lr=Gt-et;return et===i||Lr>=N||Lr<0||At&&Gt-yt>=Re}function St(){var Gt=Fi();if(cr(Gt))return Nt(Gt);He=gc(St,(function(Lr){var jr=N-(Lr-et);return At?hi(jr,Re-(Lr-yt)):jr})(Gt))}function Nt(Gt){return He=i,$t&&te?tr(Gt):(te=he=i,je)}function lr(){var Gt=Fi(),Lr=cr(Gt);if(te=arguments,he=this,et=Gt,Lr){if(He===i)return(function(jr){return yt=jr,He=gc(St,N),Et?tr(jr):je})(et);if(At)return Qo(He),He=gc(St,N),tr(et)}return He===i&&(He=gc(St,N)),je}return N=ko(N)||0,Mi(G)&&(Et=!!G.leading,Re=(At="maxWait"in G)?Li(ko(G.maxWait)||0,N):Re,$t="trailing"in G?!!G.trailing:$t),lr.cancel=function(){He!==i&&Qo(He),yt=0,te=et=he=He=i},lr.flush=function(){return He===i?je:Nt(Fi())},lr}var Xp=ar(function(R,N){return Mh(R,1,N)}),$p=ar(function(R,N,G){return Mh(R,ko(N)||0,G)});function Fd(R,N){if(typeof R!="function"||N!=null&&typeof N!="function")throw new ba(a);var G=function(){var te=arguments,he=N?N.apply(this,te):te[0],Re=G.cache;if(Re.has(he))return Re.get(he);var je=R.apply(this,te);return G.cache=Re.set(he,je)||Re,je};return G.cache=new(Fd.Cache||gs),G}function Ud(R){if(typeof R!="function")throw new ba(a);return function(){var N=arguments;switch(N.length){case 0:return!R.call(this);case 1:return!R.call(this,N[0]);case 2:return!R.call(this,N[0],N[1]);case 3:return!R.call(this,N[0],N[1],N[2])}return!R.apply(this,N)}}Fd.Cache=gs;var ud=Av(function(R,N){var G=(N=N.length==1&&Ur(N[0])?ti(N[0],Zr(er())):ti(ji(N,1),Zr(er()))).length;return ar(function(te){for(var he=-1,Re=hi(te.length,G);++he=N}),El=Ua((function(){return arguments})())?Ua:function(R){return zi(R)&&Fn.call(R,"callee")&&!Ic.call(R,"callee")},Ur=Wt.isArray,Cf=Hl?Zr(Hl):function(R){return zi(R)&&Sn(R)==z};function ns(R){return R!=null&&eo(R.length)&&!bc(R)}function Ui(R){return zi(R)&&ns(R)}var Uu=Lc||gi,Pv=Md?Zr(Md):function(R){return zi(R)&&Sn(R)==_};function cd(R){if(!zi(R))return!1;var N=Sn(R);return N==m||N=="[object DOMException]"||typeof R.message=="string"&&typeof R.name=="string"&&!Gd(R)}function bc(R){if(!Mi(R))return!1;var N=Sn(R);return N==x||N==E||N=="[object AsyncFunction]"||N=="[object Proxy]"}function Mv(R){return typeof R=="number"&&R==Kr(R)}function eo(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=f}function Mi(R){var N=typeof R;return R!=null&&(N=="object"||N=="function")}function zi(R){return R!=null&&typeof R=="object"}var Zp=Xa?Zr(Xa):function(R){return zi(R)&&Wn(R)==O};function qd(R){return typeof R=="number"||zi(R)&&Sn(R)==S}function Gd(R){if(!zi(R)||Sn(R)!=T)return!1;var N=tc(R);if(N===null)return!0;var G=Fn.call(N,"constructor")&&N.constructor;return typeof G=="function"&&G instanceof G&&kd.call(G)==Ov}var Bh=Wl?Zr(Wl):function(R){return zi(R)&&Sn(R)==I},Sl=Yl?Zr(Yl):function(R){return zi(R)&&Wn(R)==k};function fd(R){return typeof R=="string"||!Ur(R)&&zi(R)&&Sn(R)==L}function is(R){return typeof R=="symbol"||zi(R)&&Sn(R)==B}var _c=nf?Zr(nf):function(R){return zi(R)&&eo(R.length)&&!!Wr[Sn(R)]},ea=fo(Rn),la=fo(function(R,N){return R<=N});function br(R){if(!R)return[];if(ns(R))return fd(R)?ma(R):Ca(R);if(Nc&&R[Nc])return(function(G){for(var te,he=[];!(te=G.next()).done;)he.push(te.value);return he})(R[Nc]());var N=Wn(R);return(N==O?wi:N==k?mu:Rs)(R)}function eu(R){return R?(R=ko(R))===c||R===-1/0?17976931348623157e292*(R<0?-1:1):R==R?R:0:R===0?R:0}function Kr(R){var N=eu(R),G=N%1;return N==N?G?N-G:N:0}function Hc(R){return R?ll(Kr(R),0,h):0}function ko(R){if(typeof R=="number")return R;if(is(R))return d;if(Mi(R)){var N=typeof R.valueOf=="function"?R.valueOf():R;R=Mi(N)?N+"":N}if(typeof R!="string")return R===0?R:+R;R=jn(R);var G=tt.test(R);return G||Ue.test(R)?vu(R.slice(2),G?2:8):vt.test(R)?d:+R}function Fh(R){return Jo(R,to(R))}function Dn(R){return R==null?"":Zo(R)}var vo=ml(function(R,N){if(Cs(N)||ns(N))Jo(N,xa(N),R);else for(var G in N)Fn.call(N,G)&&Eu(R,G,N[G])}),dy=ml(function(R,N){Jo(N,to(N),R)}),dd=ml(function(R,N,G,te){Jo(N,to(N),R,te)}),Dv=ml(function(R,N,G,te){Jo(N,xa(N),R,te)}),hy=Ss(ms),Qp=ar(function(R,N){R=Kn(R);var G=-1,te=N.length,he=te>2?N[2]:i;for(he&&Xr(N[0],N[1],he)&&(te=1);++G1),Re}),Jo(R,Os(R),G),te&&(G=Ka(G,7,Ef));for(var he=N.length;he--;)Ih(G,N[he]);return G}),wc=Ss(function(R,N){return R==null?{}:(function(G,te){return _s(G,te,function(he,Re){return zh(G,Re)})})(R,N)});function Gh(R,N){if(R==null)return{};var G=ti(Os(R),function(te){return[te]});return N=er(N),_s(R,G,function(te,he){return N(te,he[0])})}var gy=xf(xa),Jp=xf(to);function Rs(R){return R==null?[]:Zl(R,xa(R))}var eg=co(function(R,N,G){return N=N.toLowerCase(),R+(G?Iv(N):N)});function Iv(R){return Tl(Dn(R).toLowerCase())}function Hd(R){return(R=Dn(R))&&R.replace(Ze,tl).replace(Bt,"")}var Vh=co(function(R,N,G){return R+(G?"-":"")+N.toLowerCase()}),pi=co(function(R,N,G){return R+(G?" ":"")+N.toLowerCase()}),yy=Du("toLowerCase"),Hh=co(function(R,N,G){return R+(G?"_":"")+N.toLowerCase()}),Nv=co(function(R,N,G){return R+(G?" ":"")+Tl(N)}),Wd=co(function(R,N,G){return R+(G?" ":"")+N.toUpperCase()}),Tl=Du("toUpperCase");function Yd(R,N,G){return R=Dn(R),(N=G?i:N)===i?(function(te){return ds.test(te)})(R)?(function(te){return te.match(ei)||[]})(R):(function(te){return te.match(ot)||[]})(R):R.match(N)||[]}var Lv=ar(function(R,N){try{return Wi(R,i,N)}catch(G){return cd(G)?G:new En(G)}}),Ps=Ss(function(R,N){return La(N,function(G){G=Un(G),ys(R,G,Tf(R[G],R))}),R});function ro(R){return function(){return R}}var my=Uc(),jv=Uc(!0);function as(R){return R}function Wh(R){return lc(typeof R=="function"?R:Ka(R,1))}var tg=ar(function(R,N){return function(G){return Fa(G,R,N)}}),Bv=ar(function(R,N){return function(G){return Fa(R,G,N)}});function Fv(R,N,G){var te=xa(N),he=cl(N,te);G!=null||Mi(N)&&(he.length||!te.length)||(G=N,N=R,R=this,he=cl(N,xa(N)));var Re=!(Mi(G)&&"chain"in G&&!G.chain),je=bc(R);return La(he,function(He){var et=N[He];R[He]=et,je&&(R.prototype[He]=function(){var yt=this.__chain__;if(Re||yt){var Et=R(this.__wrapped__);return(Et.__actions__=Ca(this.__actions__)).push({func:et,args:arguments,thisArg:R}),Et.__chain__=yt,Et}return et.apply(R,qs([this.value()],arguments))})}),R}function Cl(){}var Ra=Iu(ti),rg=Iu(Gf),by=Iu($l);function qa(R){return vi(R)?so(Un(R)):(function(N){return function(G){return bs(G,N)}})(R)}var o0=es(),ng=es(!0);function Yh(){return[]}function gi(){return!1}var No,Wc=rd(function(R,N){return R+N},0),_y=Nu("ceil"),ig=rd(function(R,N){return R/N},1),wy=Nu("floor"),s0=rd(function(R,N){return R*N},1),Uv=Nu("round"),Ms=rd(function(R,N){return R-N},0);return be.after=function(R,N){if(typeof N!="function")throw new ba(a);return R=Kr(R),function(){if(--R<1)return N.apply(this,arguments)}},be.ary=wa,be.assign=vo,be.assignIn=dy,be.assignInWith=dd,be.assignWith=Dv,be.at=hy,be.before=sd,be.bind=Tf,be.bindAll=Ps,be.bindKey=Lh,be.castArray=function(){if(!arguments.length)return[];var R=arguments[0];return Ur(R)?R:[R]},be.chain=yr,be.chunk=function(R,N,G){N=(G?Xr(R,N,G):N===i)?1:Li(Kr(N),0);var te=R==null?0:R.length;if(!te||N<1)return[];for(var he=0,Re=0,je=Wt(Id(te/N));heyt?0:yt+He),(et=et===i||et>yt?yt:Kr(et))<0&&(et+=yt),et=He>et?0:Hc(et);He>>0)?(R=Dn(R))&&(typeof N=="string"||N!=null&&!Bh(N))&&!(N=Zo(N))&&rl(R)?dc(ma(R),0,G):R.split(N,G):[]},be.spread=function(R,N){if(typeof R!="function")throw new ba(a);return N=N==null?0:Li(Kr(N),0),ar(function(G){var te=G[N],he=dc(G,0,N);return te&&qs(he,te),Wi(R,this,he)})},be.tail=function(R){var N=R==null?0:R.length;return N?za(R,1,N):[]},be.take=function(R,N,G){return R&&R.length?za(R,0,(N=G||N===i?1:Kr(N))<0?0:N):[]},be.takeRight=function(R,N,G){var te=R==null?0:R.length;return te?za(R,(N=te-(N=G||N===i?1:Kr(N)))<0?0:N,te):[]},be.takeRightWhile=function(R,N){return R&&R.length?Za(R,er(N,3),!1,!0):[]},be.takeWhile=function(R,N){return R&&R.length?Za(R,er(N,3)):[]},be.tap=function(R,N){return N(R),R},be.throttle=function(R,N,G){var te=!0,he=!0;if(typeof R!="function")throw new ba(a);return Mi(G)&&(te="leading"in G?!!G.leading:te,he="trailing"in G?!!G.trailing:he),Vc(R,N,{leading:te,maxWait:N,trailing:he})},be.thru=Ji,be.toArray=br,be.toPairs=gy,be.toPairsIn=Jp,be.toPath=function(R){return Ur(R)?ti(R,Un):is(R)?[R]:Ca(Aa(Dn(R)))},be.toPlainObject=Fh,be.transform=function(R,N,G){var te=Ur(R),he=te||Uu(R)||_c(R);if(N=er(N,4),G==null){var Re=R&&R.constructor;G=he?te?new Re:[]:Mi(R)&&bc(Re)?ol(tc(R)):{}}return(he?La:Xs)(R,function(je,He,et){return N(G,je,He,et)}),G},be.unary=function(R){return wa(R,1)},be.union=en,be.unionBy=Or,be.unionWith=$r,be.uniq=function(R){return R&&R.length?fc(R):[]},be.uniqBy=function(R,N){return R&&R.length?fc(R,er(N,2)):[]},be.uniqWith=function(R,N){return N=typeof N=="function"?N:i,R&&R.length?fc(R,i,N):[]},be.unset=function(R,N){return R==null||Ih(R,N)},be.unzip=vn,be.unzipWith=ua,be.update=function(R,N,G){return R==null?R:$i(R,N,gl(G))},be.updateWith=function(R,N,G,te){return te=typeof te=="function"?te:i,R==null?R:$i(R,N,gl(G),te)},be.values=Rs,be.valuesIn=function(R){return R==null?[]:Zl(R,to(R))},be.without=Bi,be.words=Yd,be.wrap=function(R,N){return ld(gl(N),R)},be.xor=Ja,be.xorBy=ln,be.xorWith=kt,be.zip=gr,be.zipObject=function(R,N){return _f(R||[],N||[],Eu)},be.zipObjectDeep=function(R,N){return _f(R||[],N||[],ws)},be.zipWith=tn,be.entries=gy,be.entriesIn=Jp,be.extend=dy,be.extendWith=dd,Fv(be,be),be.add=Wc,be.attempt=Lv,be.camelCase=eg,be.capitalize=Iv,be.ceil=_y,be.clamp=function(R,N,G){return G===i&&(G=N,N=i),G!==i&&(G=(G=ko(G))==G?G:0),N!==i&&(N=(N=ko(N))==N?N:0),ll(ko(R),N,G)},be.clone=function(R){return Ka(R,4)},be.cloneDeep=function(R){return Ka(R,5)},be.cloneDeepWith=function(R,N){return Ka(R,5,N=typeof N=="function"?N:i)},be.cloneWith=function(R,N){return Ka(R,4,N=typeof N=="function"?N:i)},be.conformsTo=function(R,N){return N==null||Su(R,N,xa(N))},be.deburr=Hd,be.defaultTo=function(R,N){return R==null||R!=R?N:R},be.divide=ig,be.endsWith=function(R,N,G){R=Dn(R),N=Zo(N);var te=R.length,he=G=G===i?te:ll(Kr(G),0,te);return(G-=N.length)>=0&&R.slice(G,he)==N},be.eq=Do,be.escape=function(R){return(R=Dn(R))&&ge.test(R)?R.replace(se,uf):R},be.escapeRegExp=function(R){return(R=Dn(R))&&ie.test(R)?R.replace(Q,"\\$&"):R},be.every=function(R,N,G){var te=Ur(R)?Gf:Cv;return G&&Xr(R,N,G)&&(N=i),te(R,er(N,3))},be.find=Mn,be.findIndex=Pe,be.findKey=function(R,N){return gu(R,er(N,3),Xs)},be.findLast=On,be.findLastIndex=ze,be.findLastKey=function(R,N){return gu(R,er(N,3),sa)},be.floor=wy,be.forEach=zn,be.forEachRight=rs,be.forIn=function(R,N){return R==null?R:Yo(R,er(N,3),to)},be.forInRight=function(R,N){return R==null?R:yf(R,er(N,3),to)},be.forOwn=function(R,N){return R&&Xs(R,er(N,3))},be.forOwnRight=function(R,N){return R&&sa(R,er(N,3))},be.get=Uh,be.gt=zd,be.gte=jh,be.has=function(R,N){return R!=null&&Pi(R,N,Co)},be.hasIn=zh,be.head=Be,be.identity=as,be.includes=function(R,N,G,te){R=ns(R)?R:Rs(R),G=G&&!te?Kr(G):0;var he=R.length;return G<0&&(G=Li(he+G,0)),fd(R)?G<=he&&R.indexOf(N,G)>-1:!!he&&wo(R,N,G)>-1},be.indexOf=function(R,N,G){var te=R==null?0:R.length;if(!te)return-1;var he=G==null?0:Kr(G);return he<0&&(he=Li(te+he,0)),wo(R,N,he)},be.inRange=function(R,N,G){return N=eu(N),G===i?(G=N,N=0):G=eu(G),(function(te,he,Re){return te>=hi(he,Re)&&te=-9007199254740991&&R<=f},be.isSet=Sl,be.isString=fd,be.isSymbol=is,be.isTypedArray=_c,be.isUndefined=function(R){return R===i},be.isWeakMap=function(R){return zi(R)&&Wn(R)==j},be.isWeakSet=function(R){return zi(R)&&Sn(R)=="[object WeakSet]"},be.join=function(R,N){return R==null?"":Ph.call(R,N)},be.kebabCase=Vh,be.last=dt,be.lastIndexOf=function(R,N,G){var te=R==null?0:R.length;if(!te)return-1;var he=te;return G!==i&&(he=(he=Kr(G))<0?Li(te+he,0):hi(he,te-1)),N==N?(function(Re,je,He){for(var et=He+1;et--;)if(Re[et]===je)return et;return et})(R,N,he):_o(R,sf,he,!0)},be.lowerCase=pi,be.lowerFirst=yy,be.lt=ea,be.lte=la,be.max=function(R){return R&&R.length?oc(R,as,To):i},be.maxBy=function(R,N){return R&&R.length?oc(R,er(N,2),To):i},be.mean=function(R){return yu(R,as)},be.meanBy=function(R,N){return yu(R,er(N,2))},be.min=function(R){return R&&R.length?oc(R,as,Rn):i},be.minBy=function(R,N){return R&&R.length?oc(R,er(N,2),Rn):i},be.stubArray=Yh,be.stubFalse=gi,be.stubObject=function(){return{}},be.stubString=function(){return""},be.stubTrue=function(){return!0},be.multiply=s0,be.nth=function(R,N){return R&&R.length?dl(R,Kr(N)):i},be.noConflict=function(){return Ln._===this&&(Ln._=Wf),this},be.noop=Cl,be.now=Fi,be.pad=function(R,N,G){R=Dn(R);var te=(N=Kr(N))?ya(R):0;if(!N||te>=N)return R;var he=(N-te)/2;return wf(rc(he),G)+R+wf(Id(he),G)},be.padEnd=function(R,N,G){R=Dn(R);var te=(N=Kr(N))?ya(R):0;return N&&teN){var te=R;R=N,N=te}if(G||R%1||N%1){var he=Qf();return hi(R+he*(N-R+Us("1e-"+((he+"").length-1))),N)}return Tu(R,N)},be.reduce=function(R,N,G){var te=Ur(R)?Ju:Kl,he=arguments.length<3;return te(R,er(N,4),G,he,Ba)},be.reduceRight=function(R,N,G){var te=Ur(R)?Gs:Kl,he=arguments.length<3;return te(R,er(N,4),G,he,Oo)},be.repeat=function(R,N,G){return N=(G?Xr(R,N,G):N===i)?1:Kr(N),Ks(Dn(R),N)},be.replace=function(){var R=arguments,N=Dn(R[0]);return R.length<3?N:N.replace(R[1],R[2])},be.result=function(R,N,G){var te=-1,he=(N=lo(N,R)).length;for(he||(he=1,R=i);++tef)return[];var G=h,te=hi(R,h);N=er(N),R-=h;for(var he=vs(te,N);++G=Re)return R;var He=G-ya(te);if(He<1)return te;var et=je?dc(je,0,He).join(""):R.slice(0,He);if(he===i)return et+te;if(je&&(He+=et.length-He),Bh(he)){if(R.slice(He).search(he)){var yt,Et=et;for(he.global||(he=ec(he.source,Dn(Dt.exec(he))+"g")),he.lastIndex=0;yt=he.exec(Et);)var At=yt.index;et=et.slice(0,At===i?He:At)}}else if(R.indexOf(Zo(he),He)!=He){var $t=et.lastIndexOf(he);$t>-1&&(et=et.slice(0,$t))}return et+te},be.unescape=function(R){return(R=Dn(R))&&de.test(R)?R.replace(fe,uo):R},be.uniqueId=function(R){var N=++Sv;return Dn(R)+N},be.upperCase=Wd,be.upperFirst=Tl,be.each=zn,be.eachRight=rs,be.first=Be,Fv(be,(No={},Xs(be,function(R,N){Fn.call(be.prototype,N)||(No[N]=R)}),No),{chain:!1}),be.VERSION="4.17.23",La(["bind","bindKey","curry","curryRight","partial","partialRight"],function(R){be[R].placeholder=be}),La(["drop","take"],function(R,N){nn.prototype[R]=function(G){G=G===i?1:Li(Kr(G),0);var te=this.__filtered__&&!N?new nn(this):this.clone();return te.__filtered__?te.__takeCount__=hi(G,te.__takeCount__):te.__views__.push({size:hi(G,h),type:R+(te.__dir__<0?"Right":"")}),te},nn.prototype[R+"Right"]=function(G){return this.reverse()[R](G).reverse()}}),La(["filter","map","takeWhile"],function(R,N){var G=N+1,te=G==1||G==3;nn.prototype[R]=function(he){var Re=this.clone();return Re.__iteratees__.push({iteratee:er(he,3),type:G}),Re.__filtered__=Re.__filtered__||te,Re}}),La(["head","last"],function(R,N){var G="take"+(N?"Right":"");nn.prototype[R]=function(){return this[G](1).value()[0]}}),La(["initial","tail"],function(R,N){var G="drop"+(N?"":"Right");nn.prototype[R]=function(){return this.__filtered__?new nn(this):this[G](1)}}),nn.prototype.compact=function(){return this.filter(as)},nn.prototype.find=function(R){return this.filter(R).head()},nn.prototype.findLast=function(R){return this.reverse().find(R)},nn.prototype.invokeMap=ar(function(R,N){return typeof R=="function"?new nn(this):this.map(function(G){return Fa(G,R,N)})}),nn.prototype.reject=function(R){return this.filter(Ud(er(R)))},nn.prototype.slice=function(R,N){R=Kr(R);var G=this;return G.__filtered__&&(R>0||N<0)?new nn(G):(R<0?G=G.takeRight(-R):R&&(G=G.drop(R)),N!==i&&(G=(N=Kr(N))<0?G.dropRight(-N):G.take(N-R)),G)},nn.prototype.takeRightWhile=function(R){return this.reverse().takeWhile(R).reverse()},nn.prototype.toArray=function(){return this.take(h)},Xs(nn.prototype,function(R,N){var G=/^(?:filter|find|map|reject)|While$/.test(N),te=/^(?:head|last)$/.test(N),he=be[te?"take"+(N=="last"?"Right":""):N],Re=te||/^find/.test(N);he&&(be.prototype[N]=function(){var je=this.__wrapped__,He=te?[1]:arguments,et=je instanceof nn,yt=He[0],Et=et||Ur(je),At=function(lr){var Gt=he.apply(be,qs([lr],He));return te&&$t?Gt[0]:Gt};Et&&G&&typeof yt=="function"&&yt.length!=1&&(et=Et=!1);var $t=this.__chain__,tr=!!this.__actions__.length,cr=Re&&!$t,St=et&&!tr;if(!Re&&Et){je=St?je:new nn(this);var Nt=R.apply(je,He);return Nt.__actions__.push({func:Ji,args:[At],thisArg:i}),new Ei(Nt,$t)}return cr&&St?R.apply(this,He):(Nt=this.thru(At),cr?te?Nt.value()[0]:Nt.value():Nt)})}),La(["pop","push","shift","sort","splice","unshift"],function(R){var N=cf[R],G=/^(?:push|sort|unshift)$/.test(R)?"tap":"thru",te=/^(?:pop|shift)$/.test(R);be.prototype[R]=function(){var he=arguments;if(te&&!this.__chain__){var Re=this.value();return N.apply(Ur(Re)?Re:[],he)}return this[G](function(je){return N.apply(Ur(je)?je:[],he)})}}),Xs(nn.prototype,function(R,N){var G=be[N];if(G){var te=G.name+"";Fn.call(Ws,te)||(Ws[te]=[]),Ws[te].push({name:N,func:G})}}),Ws[Po(i,2).name]=[{name:"wrapper",func:i}],nn.prototype.clone=function(){var R=new nn(this.__wrapped__);return R.__actions__=Ca(this.__actions__),R.__dir__=this.__dir__,R.__filtered__=this.__filtered__,R.__iteratees__=Ca(this.__iteratees__),R.__takeCount__=this.__takeCount__,R.__views__=Ca(this.__views__),R},nn.prototype.reverse=function(){if(this.__filtered__){var R=new nn(this);R.__dir__=-1,R.__filtered__=!0}else(R=this.clone()).__dir__*=-1;return R},nn.prototype.value=function(){var R=this.__wrapped__.value(),N=this.__dir__,G=Ur(R),te=N<0,he=G?R.length:0,Re=(function(qn,vr,zt){for(var Hr=-1,fr=zt.length;++Hr=this.__values__.length;return{done:R,value:R?i:this.__values__[this.__index__++]}},be.prototype.plant=function(R){for(var N,G=this;G instanceof Wo;){var te=Gc(G);te.__index__=0,te.__values__=i,N?he.__wrapped__=te:N=te;var he=te;G=G.__wrapped__}return he.__wrapped__=R,N},be.prototype.reverse=function(){var R=this.__wrapped__;if(R instanceof nn){var N=R;return this.__actions__.length&&(N=new nn(this)),(N=N.reverse()).__actions__.push({func:Ji,args:[Zt],thisArg:i}),new Ei(N,this.__chain__)}return this.thru(Zt)},be.prototype.toJSON=be.prototype.valueOf=be.prototype.value=function(){return bf(this.__wrapped__,this.__actions__)},be.prototype.first=be.prototype.head,Nc&&(be.prototype[Nc]=function(){return this}),be})();Ln._=Ho,(n=(function(){return Ho}).call(e,t,e,r))===i||(r.exports=n)}).call(this)},5267:function(r,e,t){var n=this&&this.__extends||(function(){var u=function(l,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(f[h]=d[h])},u(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=l}u(l,c),l.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncAction=void 0;var i=t(4671),a=t(5649),o=t(7479),s=(function(u){function l(c,f){var d=u.call(this,c,f)||this;return d.scheduler=c,d.work=f,d.pending=!1,d}return n(l,u),l.prototype.schedule=function(c,f){var d;if(f===void 0&&(f=0),this.closed)return this;this.state=c;var h=this.id,p=this.scheduler;return h!=null&&(this.id=this.recycleAsyncId(p,h,f)),this.pending=!0,this.delay=f,this.id=(d=this.id)!==null&&d!==void 0?d:this.requestAsyncId(p,this.id,f),this},l.prototype.requestAsyncId=function(c,f,d){return d===void 0&&(d=0),a.intervalProvider.setInterval(c.flush.bind(c,this),d)},l.prototype.recycleAsyncId=function(c,f,d){if(d===void 0&&(d=0),d!=null&&this.delay===d&&this.pending===!1)return f;f!=null&&a.intervalProvider.clearInterval(f)},l.prototype.execute=function(c,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var d=this._execute(c,f);if(d)return d;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},l.prototype._execute=function(c,f){var d,h=!1;try{this.work(c)}catch(p){h=!0,d=p||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),d},l.prototype.unsubscribe=function(){if(!this.closed){var c=this.id,f=this.scheduler,d=f.actions;this.work=this.state=this.scheduler=null,this.pending=!1,o.arrRemove(d,this),c!=null&&(this.id=this.recycleAsyncId(f,c,null)),this.delay=null,u.prototype.unsubscribe.call(this)}},l})(i.Action);e.AsyncAction=s},5319:function(r,e,t){var n=this&&this.__extends||(function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function c(){this.constructor=u}s(u,l),u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})(),i=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.alloc=void 0;var a=i(t(1048)),o=(function(s){function u(l){var c=this,f=(function(d){return d instanceof a.default.Buffer?d:typeof d=="number"&&typeof a.default.Buffer.alloc=="function"?a.default.Buffer.alloc(d):new a.default.Buffer(d)})(l);return(c=s.call(this,f.length)||this)._buffer=f,c}return n(u,s),u.prototype.getUInt8=function(l){return this._buffer.readUInt8(l)},u.prototype.getInt8=function(l){return this._buffer.readInt8(l)},u.prototype.getFloat64=function(l){return this._buffer.readDoubleBE(l)},u.prototype.getVarInt=function(l){for(var c=0,f=this._buffer.readInt8(l+c),d=f%128;f/128>=1;)c+=1,d+=(f=this._buffer.readInt8(l+c))%128;return{length:c+1,value:d}},u.prototype.putUInt8=function(l,c){this._buffer.writeUInt8(c,l)},u.prototype.putInt8=function(l,c){this._buffer.writeInt8(c,l)},u.prototype.putFloat64=function(l,c){this._buffer.writeDoubleBE(c,l)},u.prototype.putBytes=function(l,c){if(c instanceof u){var f=Math.min(c.length-c.position,this.length-l);c._buffer.copy(this._buffer,l,c.position,c.position+f),c.position+=f}else s.prototype.putBytes.call(this,l,c)},u.prototype.getSlice=function(l,c){return new u(this._buffer.slice(l,l+c))},u})(i(t(7174)).default);e.default=o,e.alloc=function(s){return new o(s)}},5337:function(r,e,t){var n=this&&this.__read||function(p,g){var y=typeof Symbol=="function"&&p[Symbol.iterator];if(!y)return p;var b,_,m=y.call(p),x=[];try{for(;(g===void 0||g-- >0)&&!(b=m.next()).done;)x.push(b.value)}catch(E){_={error:E}}finally{try{b&&!b.done&&(y=m.return)&&y.call(m)}finally{if(_)throw _.error}}return x};Object.defineProperty(e,"__esModule",{value:!0}),e.fromEvent=void 0;var i=t(9445),a=t(4662),o=t(983),s=t(8046),u=t(1018),l=t(1251),c=["addListener","removeListener"],f=["addEventListener","removeEventListener"],d=["on","off"];function h(p,g){return function(y){return function(b){return p[y](g,b)}}}e.fromEvent=function p(g,y,b,_){if(u.isFunction(b)&&(_=b,b=void 0),_)return p(g,y,b).pipe(l.mapOneOrManyArgs(_));var m=n((function(O){return u.isFunction(O.addEventListener)&&u.isFunction(O.removeEventListener)})(g)?f.map(function(O){return function(S){return g[O](y,S,b)}}):(function(O){return u.isFunction(O.addListener)&&u.isFunction(O.removeListener)})(g)?c.map(h(g,y)):(function(O){return u.isFunction(O.on)&&u.isFunction(O.off)})(g)?d.map(h(g,y)):[],2),x=m[0],E=m[1];if(!x&&s.isArrayLike(g))return o.mergeMap(function(O){return p(O,y,b)})(i.innerFrom(g));if(!x)throw new TypeError("Invalid event target");return new a.Observable(function(O){var S=function(){for(var T=[],P=0;P{Object.defineProperty(e,"__esModule",{value:!0}),e.Unpacker=e.Packer=void 0;var n=t(7452),i=t(6781),a=t(7665),o=t(9305),s=o.error.PROTOCOL_ERROR,u=(function(){function c(f){this._ch=f,this._byteArraysSupported=!0}return c.prototype.packable=function(f,d){var h,p=this;d===void 0&&(d=i.functional.identity);try{f=d(f)}catch(b){return function(){throw b}}if(f===null)return function(){return p._ch.writeUInt8(192)};if(f===!0)return function(){return p._ch.writeUInt8(195)};if(f===!1)return function(){return p._ch.writeUInt8(194)};if(typeof f=="number")return function(){return p.packFloat(f)};if(typeof f=="string")return function(){return p.packString(f)};if(typeof f=="bigint")return function(){return p.packInteger((0,o.int)(f))};if((0,o.isInt)(f))return function(){return p.packInteger(f)};if(f instanceof Int8Array)return function(){return p.packBytes(f)};if(f instanceof Array)return function(){p.packListHeader(f.length);for(var b=0;b=0&&f<128)return(0,o.int)(f);if(f>=240&&f<256)return(0,o.int)(f-256);if(f===200)return(0,o.int)(d.readInt8());if(f===201)return(0,o.int)(d.readInt16());if(f===202){var h=d.readInt32();return(0,o.int)(h)}if(f===203){var p=d.readInt32(),g=d.readInt32();return new o.Integer(g,p)}return null},c.prototype._unpackString=function(f,d,h,p){return d===128?n.utf8.decode(p,h):f===208?n.utf8.decode(p,p.readUInt8()):f===209?n.utf8.decode(p,p.readUInt16()):f===210?n.utf8.decode(p,p.readUInt32()):null},c.prototype._unpackList=function(f,d,h,p,g){return d===144?this._unpackListWithSize(h,p,g):f===212?this._unpackListWithSize(p.readUInt8(),p,g):f===213?this._unpackListWithSize(p.readUInt16(),p,g):f===214?this._unpackListWithSize(p.readUInt32(),p,g):null},c.prototype._unpackListWithSize=function(f,d,h){for(var p=[],g=0;g{Object.defineProperty(e,"__esModule",{value:!0}),e.distinct=void 0;var n=t(7843),i=t(3111),a=t(1342),o=t(9445);e.distinct=function(s,u){return n.operate(function(l,c){var f=new Set;l.subscribe(i.createOperatorSubscriber(c,function(d){var h=s?s(d):d;f.has(h)||(f.add(h),c.next(d))})),u&&o.innerFrom(u).subscribe(i.createOperatorSubscriber(c,function(){return f.clear()},a.noop))})}},5382:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.single=void 0;var n=t(2823),i=t(1505),a=t(1759),o=t(7843),s=t(3111);e.single=function(u){return o.operate(function(l,c){var f,d=!1,h=!1,p=0;l.subscribe(s.createOperatorSubscriber(c,function(g){h=!0,u&&!u(g,p++,l)||(d&&c.error(new i.SequenceError("Too many matching values")),d=!0,f=g)},function(){d?(c.next(f),c.complete()):c.error(h?new a.NotFoundError("No matching values"):new n.EmptyError)}))})}},5442:function(r,e,t){var n=this&&this.__read||function(f,d){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var p,g,y=h.call(f),b=[];try{for(;(d===void 0||d-- >0)&&!(p=y.next()).done;)b.push(p.value)}catch(_){g={error:_}}finally{try{p&&!p.done&&(h=y.return)&&h.call(y)}finally{if(g)throw g.error}}return b},i=this&&this.__spreadArray||function(f,d){for(var h=0,p=d.length,g=f.length;h0)&&!(j=H.next()).done;)q.push(j.value)}catch(W){z={error:W}}finally{try{j&&!j.done&&(B=H.return)&&B.call(H)}finally{if(z)throw z.error}}return q};Object.defineProperty(e,"__esModule",{value:!0}),e.isDateTime=e.DateTime=e.isLocalDateTime=e.LocalDateTime=e.isDate=e.Date=e.isTime=e.Time=e.isLocalTime=e.LocalTime=e.isDuration=e.Duration=void 0;var s=a(t(5022)),u=t(6587),l=t(9691),c=a(t(3371)),f={value:!0,enumerable:!1,configurable:!1,writable:!1},d="__isDuration__",h="__isLocalTime__",p="__isTime__",g="__isDate__",y="__isLocalDateTime__",b="__isDateTime__",_=(function(){function k(L,B,j,z){this.months=(0,u.assertNumberOrInteger)(L,"Months"),this.days=(0,u.assertNumberOrInteger)(B,"Days"),(0,u.assertNumberOrInteger)(j,"Seconds"),(0,u.assertNumberOrInteger)(z,"Nanoseconds"),this.seconds=s.normalizeSecondsForDuration(j,z),this.nanoseconds=s.normalizeNanosecondsForDuration(z),Object.freeze(this)}return k.prototype.toString=function(){return s.durationToIsoString(this.months,this.days,this.seconds,this.nanoseconds)},k})();e.Duration=_,Object.defineProperty(_.prototype,d,f),e.isDuration=function(k){return T(k,d)};var m=(function(){function k(L,B,j,z){this.hour=s.assertValidHour(L),this.minute=s.assertValidMinute(B),this.second=s.assertValidSecond(j),this.nanosecond=s.assertValidNanosecond(z),Object.freeze(this)}return k.fromStandardDate=function(L,B){I(L,B);var j=s.totalNanoseconds(L,B);return new k(L.getHours(),L.getMinutes(),L.getSeconds(),j instanceof c.default?j.toInt():typeof j=="bigint"?(0,c.int)(j).toInt():j)},k.prototype.toString=function(){return s.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)},k})();e.LocalTime=m,Object.defineProperty(m.prototype,h,f),e.isLocalTime=function(k){return T(k,h)};var x=(function(){function k(L,B,j,z,H){this.hour=s.assertValidHour(L),this.minute=s.assertValidMinute(B),this.second=s.assertValidSecond(j),this.nanosecond=s.assertValidNanosecond(z),this.timeZoneOffsetSeconds=(0,u.assertNumberOrInteger)(H,"Time zone offset in seconds"),Object.freeze(this)}return k.fromStandardDate=function(L,B){return I(L,B),new k(L.getHours(),L.getMinutes(),L.getSeconds(),(0,c.toNumber)(s.totalNanoseconds(L,B)),s.timeZoneOffsetInSeconds(L))},k.prototype.toString=function(){return s.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)+s.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds)},k})();e.Time=x,Object.defineProperty(x.prototype,p,f),e.isTime=function(k){return T(k,p)};var E=(function(){function k(L,B,j){this.year=s.assertValidYear(L),this.month=s.assertValidMonth(B),this.day=s.assertValidDay(j),Object.freeze(this)}return k.fromStandardDate=function(L){return I(L),new k(L.getFullYear(),L.getMonth()+1,L.getDate())},k.prototype.toStandardDate=function(){return s.isoStringToStandardDate(this.toString())},k.prototype.toString=function(){return s.dateToIsoString(this.year,this.month,this.day)},k})();e.Date=E,Object.defineProperty(E.prototype,g,f),e.isDate=function(k){return T(k,g)};var O=(function(){function k(L,B,j,z,H,q,W){this.year=s.assertValidYear(L),this.month=s.assertValidMonth(B),this.day=s.assertValidDay(j),this.hour=s.assertValidHour(z),this.minute=s.assertValidMinute(H),this.second=s.assertValidSecond(q),this.nanosecond=s.assertValidNanosecond(W),Object.freeze(this)}return k.fromStandardDate=function(L,B){return I(L,B),new k(L.getFullYear(),L.getMonth()+1,L.getDate(),L.getHours(),L.getMinutes(),L.getSeconds(),(0,c.toNumber)(s.totalNanoseconds(L,B)))},k.prototype.toStandardDate=function(){return s.isoStringToStandardDate(this.toString())},k.prototype.toString=function(){return P(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)},k})();e.LocalDateTime=O,Object.defineProperty(O.prototype,y,f),e.isLocalDateTime=function(k){return T(k,y)};var S=(function(){function k(L,B,j,z,H,q,W,$,J){this.year=s.assertValidYear(L),this.month=s.assertValidMonth(B),this.day=s.assertValidDay(j),this.hour=s.assertValidHour(z),this.minute=s.assertValidMinute(H),this.second=s.assertValidSecond(q),this.nanosecond=s.assertValidNanosecond(W);var X=o((function(re,ne){var le=re!=null,ce=ne!=null&&ne!=="";if(!le&&!ce)throw(0,l.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: ".concat(re," and id: ").concat(ne));var pe=[void 0,void 0];return le&&((0,u.assertNumberOrInteger)(re,"Time zone offset in seconds"),pe[0]=re),ce&&((0,u.assertString)(ne,"Time zone ID"),s.assertValidZoneId("Time zone ID",ne),pe[1]=ne),pe})($,J),2),Z=X[0],ue=X[1];this.timeZoneOffsetSeconds=Z,this.timeZoneId=ue??void 0,Object.freeze(this)}return k.fromStandardDate=function(L,B){return I(L,B),new k(L.getFullYear(),L.getMonth()+1,L.getDate(),L.getHours(),L.getMinutes(),L.getSeconds(),(0,c.toNumber)(s.totalNanoseconds(L,B)),s.timeZoneOffsetInSeconds(L),null)},k.prototype.toStandardDate=function(){return s.toStandardDate(this._toUTC())},k.prototype.toString=function(){var L;return P(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)+(this.timeZoneOffsetSeconds!=null?s.timeZoneOffsetToIsoString((L=this.timeZoneOffsetSeconds)!==null&&L!==void 0?L:0):"")+(this.timeZoneId!=null?"[".concat(this.timeZoneId,"]"):"")},k.prototype._toUTC=function(){var L;if(this.timeZoneOffsetSeconds===void 0)throw new Error("Requires DateTime created with time zone offset");var B=s.localDateTimeToEpochSecond(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond).subtract((L=this.timeZoneOffsetSeconds)!==null&&L!==void 0?L:0);return(0,c.int)(B).multiply(1e3).add((0,c.int)(this.nanosecond).div(1e6)).toNumber()},k})();function T(k,L){return k!=null&&k[L]===!0}function P(k,L,B,j,z,H,q){return s.dateToIsoString(k,L,B)+"T"+s.timeToIsoString(j,z,H,q)}function I(k,L){(0,u.assertValidDate)(k,"Standard date"),L!=null&&(0,u.assertNumberOrInteger)(L,"Nanosecond")}e.DateTime=S,Object.defineProperty(S.prototype,b,f),e.isDateTime=function(k){return T(k,b)}},5471:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.map=void 0;var n=t(7843),i=t(3111);e.map=function(a,o){return n.operate(function(s,u){var l=0;s.subscribe(i.createOperatorSubscriber(u,function(c){u.next(a.call(o,c,l++))}))})}},5477:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.window=void 0;var n=t(2483),i=t(7843),a=t(3111),o=t(1342),s=t(9445);e.window=function(u){return i.operate(function(l,c){var f=new n.Subject;c.next(f.asObservable());var d=function(h){f.error(h),c.error(h)};return l.subscribe(a.createOperatorSubscriber(c,function(h){return f==null?void 0:f.next(h)},function(){f.complete(),c.complete()},d)),s.innerFrom(u).subscribe(a.createOperatorSubscriber(c,function(){f.complete(),c.next(f=new n.Subject)},o.noop,d)),function(){f==null||f.unsubscribe(),f=null}})}},5481:function(r,e,t){var n=this&&this.__awaiter||function(E,O,S,T){return new(S||(S=Promise))(function(P,I){function k(j){try{B(T.next(j))}catch(z){I(z)}}function L(j){try{B(T.throw(j))}catch(z){I(z)}}function B(j){var z;j.done?P(j.value):(z=j.value,z instanceof S?z:new S(function(H){H(z)})).then(k,L)}B((T=T.apply(E,O||[])).next())})},i=this&&this.__generator||function(E,O){var S,T,P,I,k={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return I={next:L(0),throw:L(1),return:L(2)},typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function L(B){return function(j){return(function(z){if(S)throw new TypeError("Generator is already executing.");for(;I&&(I=0,z[0]&&(k=0)),k;)try{if(S=1,T&&(P=2&z[0]?T.return:z[0]?T.throw||((P=T.return)&&P.call(T),0):T.next)&&!(P=P.call(T,z[1])).done)return P;switch(T=0,P&&(z=[2&z[0],P.value]),z[0]){case 0:case 1:P=z;break;case 4:return k.label++,{value:z[1],done:!1};case 5:k.label++,T=z[1],z=[0];continue;case 7:z=k.ops.pop(),k.trys.pop();continue;default:if(!((P=(P=k.trys).length>0&&P[P.length-1])||z[0]!==6&&z[0]!==2)){k=0;continue}if(z[0]===3&&(!P||z[1]>P[0]&&z[1]0)&&!(T=I.next()).done;)k.push(T.value)}catch(L){P={error:L}}finally{try{T&&!T.done&&(S=I.return)&&S.call(I)}finally{if(P)throw P.error}}return k},o=this&&this.__spreadArray||function(E,O,S){if(S||arguments.length===2)for(var T,P=0,I=O.length;P{Object.defineProperty(e,"__esModule",{value:!0}),e.every=void 0;var n=t(7843),i=t(3111);e.every=function(a,o){return n.operate(function(s,u){var l=0;s.subscribe(i.createOperatorSubscriber(u,function(c){a.call(o,c,l++,s)||(u.next(!1),u.complete())},function(){u.next(!0),u.complete()}))})}},5553:function(r,e,t){var n=this&&this.__extends||(function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function c(){this.constructor=u}s(u,l),u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})();Object.defineProperty(e,"__esModule",{value:!0});var i=t(7174),a=t(5319),o=(function(s){function u(l){for(var c=this,f=0,d=0;d=f.length))return f.getUInt8(l);l-=f.length}},u.prototype.getInt8=function(l){for(var c=0;c=f.length))return f.getInt8(l);l-=f.length}},u.prototype.getFloat64=function(l){for(var c=(0,a.alloc)(8),f=0;f<8;f++)c.putUInt8(f,this.getUInt8(l+f));return c.getFloat64(0)},u})(i.BaseBuffer);e.default=o},5568:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorClass=void 0,e.createErrorClass=function(t){var n=t(function(i){Error.call(i),i.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}},5572:function(r,e,t){var n=this&&this.__values||function(s){var u=typeof Symbol=="function"&&Symbol.iterator,l=u&&s[u],c=0;if(l)return l.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&c>=s.length&&(s=void 0),{value:s&&s[c++],done:!s}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferCount=void 0;var i=t(7843),a=t(3111),o=t(7479);e.bufferCount=function(s,u){return u===void 0&&(u=null),u=u??s,i.operate(function(l,c){var f=[],d=0;l.subscribe(a.createOperatorSubscriber(c,function(h){var p,g,y,b,_=null;d++%u===0&&f.push([]);try{for(var m=n(f),x=m.next();!x.done;x=m.next())(S=x.value).push(h),s<=S.length&&(_=_??[]).push(S)}catch(T){p={error:T}}finally{try{x&&!x.done&&(g=m.return)&&g.call(m)}finally{if(p)throw p.error}}if(_)try{for(var E=n(_),O=E.next();!O.done;O=E.next()){var S=O.value;o.arrRemove(f,S),c.next(S)}}catch(T){y={error:T}}finally{try{O&&!O.done&&(b=E.return)&&b.call(E)}finally{if(y)throw y.error}}},function(){var h,p;try{for(var g=n(f),y=g.next();!y.done;y=g.next()){var b=y.value;c.next(b)}}catch(_){h={error:_}}finally{try{y&&!y.done&&(p=g.return)&&p.call(g)}finally{if(h)throw h.error}}c.complete()},void 0,function(){f=null}))})}},5584:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.raceInit=e.race=void 0;var n=t(4662),i=t(9445),a=t(8535),o=t(3111);function s(u){return function(l){for(var c=[],f=function(h){c.push(i.innerFrom(u[h]).subscribe(o.createOperatorSubscriber(l,function(p){if(c){for(var g=0;g{var n=t(7192);n=n.slice().filter(function(i){return!/^(gl\_|texture)/.test(i)}),r.exports=n.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},5600:function(r,e,t){var n=this&&this.__read||function(u,l){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var f,d,h=c.call(u),p=[];try{for(;(l===void 0||l-- >0)&&!(f=h.next()).done;)p.push(f.value)}catch(g){d={error:g}}finally{try{f&&!f.done&&(c=h.return)&&c.call(h)}finally{if(d)throw d.error}}return p},i=this&&this.__spreadArray||function(u,l){for(var c=0,f=l.length,d=u.length;c{var n=t(1048),i=n.Buffer;function a(s,u){for(var l in s)u[l]=s[l]}function o(s,u,l){return i(s,u,l)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=n:(a(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(s,u,l){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,u,l)},o.alloc=function(s,u,l){if(typeof s!="number")throw new TypeError("Argument must be a number");var c=i(s);return u!==void 0?typeof l=="string"?c.fill(u,l):c.fill(u):c.fill(0),c},o.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},o.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}},5642:function(r,e,t){var n=this&&this.__extends||(function(){var m=function(x,E){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&(O[T]=S[T])},m(x,E)};return function(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function O(){this.constructor=x}m(x,E),x.prototype=E===null?Object.create(E):(O.prototype=E.prototype,new O)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(m){for(var x,E=1,O=arguments.length;E0)&&!(s=l.next()).done;)c.push(s.value)}catch(f){u={error:f}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(u)throw u.error}}return c},n=this&&this.__spreadArray||function(i,a){for(var o=0,s=a.length,u=i.length;o{Object.defineProperty(e,"__esModule",{value:!0}),e.UnsubscriptionError=void 0;var n=t(5568);e.UnsubscriptionError=n.createErrorClass(function(i){return function(a){i(this),this.message=a?a.length+` errors occurred during unsubscription: +}`;var St=Lv(function(){return oa(He,tr+"return "+At).apply(i,et)});if(St.source=At,cd(St))throw St;return St},be.times=function(R,N){if((R=Kr(R))<1||R>f)return[];var G=h,te=hi(R,h);N=er(N),R-=h;for(var he=vs(te,N);++G=Re)return R;var He=G-ya(te);if(He<1)return te;var et=je?dc(je,0,He).join(""):R.slice(0,He);if(he===i)return et+te;if(je&&(He+=et.length-He),Bh(he)){if(R.slice(He).search(he)){var yt,Et=et;for(he.global||(he=ec(he.source,Dn(Dt.exec(he))+"g")),he.lastIndex=0;yt=he.exec(Et);)var At=yt.index;et=et.slice(0,At===i?He:At)}}else if(R.indexOf(Zo(he),He)!=He){var $t=et.lastIndexOf(he);$t>-1&&(et=et.slice(0,$t))}return et+te},be.unescape=function(R){return(R=Dn(R))&&de.test(R)?R.replace(fe,lo):R},be.uniqueId=function(R){var N=++Sv;return Dn(R)+N},be.upperCase=Wd,be.upperFirst=Tl,be.each=zn,be.eachRight=rs,be.first=Be,Fv(be,(Lo={},Xs(be,function(R,N){Fn.call(be.prototype,N)||(Lo[N]=R)}),Lo),{chain:!1}),be.VERSION="4.17.23",La(["bind","bindKey","curry","curryRight","partial","partialRight"],function(R){be[R].placeholder=be}),La(["drop","take"],function(R,N){nn.prototype[R]=function(G){G=G===i?1:Li(Kr(G),0);var te=this.__filtered__&&!N?new nn(this):this.clone();return te.__filtered__?te.__takeCount__=hi(G,te.__takeCount__):te.__views__.push({size:hi(G,h),type:R+(te.__dir__<0?"Right":"")}),te},nn.prototype[R+"Right"]=function(G){return this.reverse()[R](G).reverse()}}),La(["filter","map","takeWhile"],function(R,N){var G=N+1,te=G==1||G==3;nn.prototype[R]=function(he){var Re=this.clone();return Re.__iteratees__.push({iteratee:er(he,3),type:G}),Re.__filtered__=Re.__filtered__||te,Re}}),La(["head","last"],function(R,N){var G="take"+(N?"Right":"");nn.prototype[R]=function(){return this[G](1).value()[0]}}),La(["initial","tail"],function(R,N){var G="drop"+(N?"":"Right");nn.prototype[R]=function(){return this.__filtered__?new nn(this):this[G](1)}}),nn.prototype.compact=function(){return this.filter(as)},nn.prototype.find=function(R){return this.filter(R).head()},nn.prototype.findLast=function(R){return this.reverse().find(R)},nn.prototype.invokeMap=ar(function(R,N){return typeof R=="function"?new nn(this):this.map(function(G){return Fa(G,R,N)})}),nn.prototype.reject=function(R){return this.filter(Ud(er(R)))},nn.prototype.slice=function(R,N){R=Kr(R);var G=this;return G.__filtered__&&(R>0||N<0)?new nn(G):(R<0?G=G.takeRight(-R):R&&(G=G.drop(R)),N!==i&&(G=(N=Kr(N))<0?G.dropRight(-N):G.take(N-R)),G)},nn.prototype.takeRightWhile=function(R){return this.reverse().takeWhile(R).reverse()},nn.prototype.toArray=function(){return this.take(h)},Xs(nn.prototype,function(R,N){var G=/^(?:filter|find|map|reject)|While$/.test(N),te=/^(?:head|last)$/.test(N),he=be[te?"take"+(N=="last"?"Right":""):N],Re=te||/^find/.test(N);he&&(be.prototype[N]=function(){var je=this.__wrapped__,He=te?[1]:arguments,et=je instanceof nn,yt=He[0],Et=et||Ur(je),At=function(lr){var Gt=he.apply(be,qs([lr],He));return te&&$t?Gt[0]:Gt};Et&&G&&typeof yt=="function"&&yt.length!=1&&(et=Et=!1);var $t=this.__chain__,tr=!!this.__actions__.length,cr=Re&&!$t,St=et&&!tr;if(!Re&&Et){je=St?je:new nn(this);var Nt=R.apply(je,He);return Nt.__actions__.push({func:Ji,args:[At],thisArg:i}),new Ei(Nt,$t)}return cr&&St?R.apply(this,He):(Nt=this.thru(At),cr?te?Nt.value()[0]:Nt.value():Nt)})}),La(["pop","push","shift","sort","splice","unshift"],function(R){var N=cf[R],G=/^(?:push|sort|unshift)$/.test(R)?"tap":"thru",te=/^(?:pop|shift)$/.test(R);be.prototype[R]=function(){var he=arguments;if(te&&!this.__chain__){var Re=this.value();return N.apply(Ur(Re)?Re:[],he)}return this[G](function(je){return N.apply(Ur(je)?je:[],he)})}}),Xs(nn.prototype,function(R,N){var G=be[N];if(G){var te=G.name+"";Fn.call(Ws,te)||(Ws[te]=[]),Ws[te].push({name:N,func:G})}}),Ws[Mo(i,2).name]=[{name:"wrapper",func:i}],nn.prototype.clone=function(){var R=new nn(this.__wrapped__);return R.__actions__=Ca(this.__actions__),R.__dir__=this.__dir__,R.__filtered__=this.__filtered__,R.__iteratees__=Ca(this.__iteratees__),R.__takeCount__=this.__takeCount__,R.__views__=Ca(this.__views__),R},nn.prototype.reverse=function(){if(this.__filtered__){var R=new nn(this);R.__dir__=-1,R.__filtered__=!0}else(R=this.clone()).__dir__*=-1;return R},nn.prototype.value=function(){var R=this.__wrapped__.value(),N=this.__dir__,G=Ur(R),te=N<0,he=G?R.length:0,Re=(function(qn,vr,zt){for(var Hr=-1,fr=zt.length;++Hr=this.__values__.length;return{done:R,value:R?i:this.__values__[this.__index__++]}},be.prototype.plant=function(R){for(var N,G=this;G instanceof Wo;){var te=Gc(G);te.__index__=0,te.__values__=i,N?he.__wrapped__=te:N=te;var he=te;G=G.__wrapped__}return he.__wrapped__=R,N},be.prototype.reverse=function(){var R=this.__wrapped__;if(R instanceof nn){var N=R;return this.__actions__.length&&(N=new nn(this)),(N=N.reverse()).__actions__.push({func:Ji,args:[Zt],thisArg:i}),new Ei(N,this.__chain__)}return this.thru(Zt)},be.prototype.toJSON=be.prototype.valueOf=be.prototype.value=function(){return bf(this.__wrapped__,this.__actions__)},be.prototype.first=be.prototype.head,Nc&&(be.prototype[Nc]=function(){return this}),be})();Ln._=Ho,(n=(function(){return Ho}).call(e,t,e,r))===i||(r.exports=n)}).call(this)},5267:function(r,e,t){var n=this&&this.__extends||(function(){var u=function(l,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(f[h]=d[h])},u(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=l}u(l,c),l.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncAction=void 0;var i=t(4671),a=t(5649),o=t(7479),s=(function(u){function l(c,f){var d=u.call(this,c,f)||this;return d.scheduler=c,d.work=f,d.pending=!1,d}return n(l,u),l.prototype.schedule=function(c,f){var d;if(f===void 0&&(f=0),this.closed)return this;this.state=c;var h=this.id,p=this.scheduler;return h!=null&&(this.id=this.recycleAsyncId(p,h,f)),this.pending=!0,this.delay=f,this.id=(d=this.id)!==null&&d!==void 0?d:this.requestAsyncId(p,this.id,f),this},l.prototype.requestAsyncId=function(c,f,d){return d===void 0&&(d=0),a.intervalProvider.setInterval(c.flush.bind(c,this),d)},l.prototype.recycleAsyncId=function(c,f,d){if(d===void 0&&(d=0),d!=null&&this.delay===d&&this.pending===!1)return f;f!=null&&a.intervalProvider.clearInterval(f)},l.prototype.execute=function(c,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var d=this._execute(c,f);if(d)return d;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},l.prototype._execute=function(c,f){var d,h=!1;try{this.work(c)}catch(p){h=!0,d=p||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),d},l.prototype.unsubscribe=function(){if(!this.closed){var c=this.id,f=this.scheduler,d=f.actions;this.work=this.state=this.scheduler=null,this.pending=!1,o.arrRemove(d,this),c!=null&&(this.id=this.recycleAsyncId(f,c,null)),this.delay=null,u.prototype.unsubscribe.call(this)}},l})(i.Action);e.AsyncAction=s},5319:function(r,e,t){var n=this&&this.__extends||(function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function c(){this.constructor=u}s(u,l),u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})(),i=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.alloc=void 0;var a=i(t(1048)),o=(function(s){function u(l){var c=this,f=(function(d){return d instanceof a.default.Buffer?d:typeof d=="number"&&typeof a.default.Buffer.alloc=="function"?a.default.Buffer.alloc(d):new a.default.Buffer(d)})(l);return(c=s.call(this,f.length)||this)._buffer=f,c}return n(u,s),u.prototype.getUInt8=function(l){return this._buffer.readUInt8(l)},u.prototype.getInt8=function(l){return this._buffer.readInt8(l)},u.prototype.getFloat64=function(l){return this._buffer.readDoubleBE(l)},u.prototype.getVarInt=function(l){for(var c=0,f=this._buffer.readInt8(l+c),d=f%128;f/128>=1;)c+=1,d+=(f=this._buffer.readInt8(l+c))%128;return{length:c+1,value:d}},u.prototype.putUInt8=function(l,c){this._buffer.writeUInt8(c,l)},u.prototype.putInt8=function(l,c){this._buffer.writeInt8(c,l)},u.prototype.putFloat64=function(l,c){this._buffer.writeDoubleBE(c,l)},u.prototype.putBytes=function(l,c){if(c instanceof u){var f=Math.min(c.length-c.position,this.length-l);c._buffer.copy(this._buffer,l,c.position,c.position+f),c.position+=f}else s.prototype.putBytes.call(this,l,c)},u.prototype.getSlice=function(l,c){return new u(this._buffer.slice(l,l+c))},u})(i(t(7174)).default);e.default=o,e.alloc=function(s){return new o(s)}},5337:function(r,e,t){var n=this&&this.__read||function(p,g){var y=typeof Symbol=="function"&&p[Symbol.iterator];if(!y)return p;var b,_,m=y.call(p),x=[];try{for(;(g===void 0||g-- >0)&&!(b=m.next()).done;)x.push(b.value)}catch(E){_={error:E}}finally{try{b&&!b.done&&(y=m.return)&&y.call(m)}finally{if(_)throw _.error}}return x};Object.defineProperty(e,"__esModule",{value:!0}),e.fromEvent=void 0;var i=t(9445),a=t(4662),o=t(983),s=t(8046),u=t(1018),l=t(1251),c=["addListener","removeListener"],f=["addEventListener","removeEventListener"],d=["on","off"];function h(p,g){return function(y){return function(b){return p[y](g,b)}}}e.fromEvent=function p(g,y,b,_){if(u.isFunction(b)&&(_=b,b=void 0),_)return p(g,y,b).pipe(l.mapOneOrManyArgs(_));var m=n((function(O){return u.isFunction(O.addEventListener)&&u.isFunction(O.removeEventListener)})(g)?f.map(function(O){return function(S){return g[O](y,S,b)}}):(function(O){return u.isFunction(O.addListener)&&u.isFunction(O.removeListener)})(g)?c.map(h(g,y)):(function(O){return u.isFunction(O.on)&&u.isFunction(O.off)})(g)?d.map(h(g,y)):[],2),x=m[0],E=m[1];if(!x&&s.isArrayLike(g))return o.mergeMap(function(O){return p(O,y,b)})(i.innerFrom(g));if(!x)throw new TypeError("Invalid event target");return new a.Observable(function(O){var S=function(){for(var T=[],P=0;P{Object.defineProperty(e,"__esModule",{value:!0}),e.Unpacker=e.Packer=void 0;var n=t(7452),i=t(6781),a=t(7665),o=t(9305),s=o.error.PROTOCOL_ERROR,u=(function(){function c(f){this._ch=f,this._byteArraysSupported=!0}return c.prototype.packable=function(f,d){var h,p=this;d===void 0&&(d=i.functional.identity);try{f=d(f)}catch(b){return function(){throw b}}if(f===null)return function(){return p._ch.writeUInt8(192)};if(f===!0)return function(){return p._ch.writeUInt8(195)};if(f===!1)return function(){return p._ch.writeUInt8(194)};if(typeof f=="number")return function(){return p.packFloat(f)};if(typeof f=="string")return function(){return p.packString(f)};if(typeof f=="bigint")return function(){return p.packInteger((0,o.int)(f))};if((0,o.isInt)(f))return function(){return p.packInteger(f)};if(f instanceof Int8Array)return function(){return p.packBytes(f)};if(f instanceof Array)return function(){p.packListHeader(f.length);for(var b=0;b=0&&f<128)return(0,o.int)(f);if(f>=240&&f<256)return(0,o.int)(f-256);if(f===200)return(0,o.int)(d.readInt8());if(f===201)return(0,o.int)(d.readInt16());if(f===202){var h=d.readInt32();return(0,o.int)(h)}if(f===203){var p=d.readInt32(),g=d.readInt32();return new o.Integer(g,p)}return null},c.prototype._unpackString=function(f,d,h,p){return d===128?n.utf8.decode(p,h):f===208?n.utf8.decode(p,p.readUInt8()):f===209?n.utf8.decode(p,p.readUInt16()):f===210?n.utf8.decode(p,p.readUInt32()):null},c.prototype._unpackList=function(f,d,h,p,g){return d===144?this._unpackListWithSize(h,p,g):f===212?this._unpackListWithSize(p.readUInt8(),p,g):f===213?this._unpackListWithSize(p.readUInt16(),p,g):f===214?this._unpackListWithSize(p.readUInt32(),p,g):null},c.prototype._unpackListWithSize=function(f,d,h){for(var p=[],g=0;g{Object.defineProperty(e,"__esModule",{value:!0}),e.distinct=void 0;var n=t(7843),i=t(3111),a=t(1342),o=t(9445);e.distinct=function(s,u){return n.operate(function(l,c){var f=new Set;l.subscribe(i.createOperatorSubscriber(c,function(d){var h=s?s(d):d;f.has(h)||(f.add(h),c.next(d))})),u&&o.innerFrom(u).subscribe(i.createOperatorSubscriber(c,function(){return f.clear()},a.noop))})}},5382:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.single=void 0;var n=t(2823),i=t(1505),a=t(1759),o=t(7843),s=t(3111);e.single=function(u){return o.operate(function(l,c){var f,d=!1,h=!1,p=0;l.subscribe(s.createOperatorSubscriber(c,function(g){h=!0,u&&!u(g,p++,l)||(d&&c.error(new i.SequenceError("Too many matching values")),d=!0,f=g)},function(){d?(c.next(f),c.complete()):c.error(h?new a.NotFoundError("No matching values"):new n.EmptyError)}))})}},5442:function(r,e,t){var n=this&&this.__read||function(f,d){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var p,g,y=h.call(f),b=[];try{for(;(d===void 0||d-- >0)&&!(p=y.next()).done;)b.push(p.value)}catch(_){g={error:_}}finally{try{p&&!p.done&&(h=y.return)&&h.call(y)}finally{if(g)throw g.error}}return b},i=this&&this.__spreadArray||function(f,d){for(var h=0,p=d.length,g=f.length;h0)&&!(j=H.next()).done;)q.push(j.value)}catch(W){z={error:W}}finally{try{j&&!j.done&&(B=H.return)&&B.call(H)}finally{if(z)throw z.error}}return q};Object.defineProperty(e,"__esModule",{value:!0}),e.isDateTime=e.DateTime=e.isLocalDateTime=e.LocalDateTime=e.isDate=e.Date=e.isTime=e.Time=e.isLocalTime=e.LocalTime=e.isDuration=e.Duration=void 0;var s=a(t(5022)),u=t(6587),l=t(9691),c=a(t(3371)),f={value:!0,enumerable:!1,configurable:!1,writable:!1},d="__isDuration__",h="__isLocalTime__",p="__isTime__",g="__isDate__",y="__isLocalDateTime__",b="__isDateTime__",_=(function(){function k(L,B,j,z){this.months=(0,u.assertNumberOrInteger)(L,"Months"),this.days=(0,u.assertNumberOrInteger)(B,"Days"),(0,u.assertNumberOrInteger)(j,"Seconds"),(0,u.assertNumberOrInteger)(z,"Nanoseconds"),this.seconds=s.normalizeSecondsForDuration(j,z),this.nanoseconds=s.normalizeNanosecondsForDuration(z),Object.freeze(this)}return k.prototype.toString=function(){return s.durationToIsoString(this.months,this.days,this.seconds,this.nanoseconds)},k})();e.Duration=_,Object.defineProperty(_.prototype,d,f),e.isDuration=function(k){return T(k,d)};var m=(function(){function k(L,B,j,z){this.hour=s.assertValidHour(L),this.minute=s.assertValidMinute(B),this.second=s.assertValidSecond(j),this.nanosecond=s.assertValidNanosecond(z),Object.freeze(this)}return k.fromStandardDate=function(L,B){I(L,B);var j=s.totalNanoseconds(L,B);return new k(L.getHours(),L.getMinutes(),L.getSeconds(),j instanceof c.default?j.toInt():typeof j=="bigint"?(0,c.int)(j).toInt():j)},k.prototype.toString=function(){return s.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)},k})();e.LocalTime=m,Object.defineProperty(m.prototype,h,f),e.isLocalTime=function(k){return T(k,h)};var x=(function(){function k(L,B,j,z,H){this.hour=s.assertValidHour(L),this.minute=s.assertValidMinute(B),this.second=s.assertValidSecond(j),this.nanosecond=s.assertValidNanosecond(z),this.timeZoneOffsetSeconds=(0,u.assertNumberOrInteger)(H,"Time zone offset in seconds"),Object.freeze(this)}return k.fromStandardDate=function(L,B){return I(L,B),new k(L.getHours(),L.getMinutes(),L.getSeconds(),(0,c.toNumber)(s.totalNanoseconds(L,B)),s.timeZoneOffsetInSeconds(L))},k.prototype.toString=function(){return s.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)+s.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds)},k})();e.Time=x,Object.defineProperty(x.prototype,p,f),e.isTime=function(k){return T(k,p)};var E=(function(){function k(L,B,j){this.year=s.assertValidYear(L),this.month=s.assertValidMonth(B),this.day=s.assertValidDay(j),Object.freeze(this)}return k.fromStandardDate=function(L){return I(L),new k(L.getFullYear(),L.getMonth()+1,L.getDate())},k.prototype.toStandardDate=function(){return s.isoStringToStandardDate(this.toString())},k.prototype.toString=function(){return s.dateToIsoString(this.year,this.month,this.day)},k})();e.Date=E,Object.defineProperty(E.prototype,g,f),e.isDate=function(k){return T(k,g)};var O=(function(){function k(L,B,j,z,H,q,W){this.year=s.assertValidYear(L),this.month=s.assertValidMonth(B),this.day=s.assertValidDay(j),this.hour=s.assertValidHour(z),this.minute=s.assertValidMinute(H),this.second=s.assertValidSecond(q),this.nanosecond=s.assertValidNanosecond(W),Object.freeze(this)}return k.fromStandardDate=function(L,B){return I(L,B),new k(L.getFullYear(),L.getMonth()+1,L.getDate(),L.getHours(),L.getMinutes(),L.getSeconds(),(0,c.toNumber)(s.totalNanoseconds(L,B)))},k.prototype.toStandardDate=function(){return s.isoStringToStandardDate(this.toString())},k.prototype.toString=function(){return P(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)},k})();e.LocalDateTime=O,Object.defineProperty(O.prototype,y,f),e.isLocalDateTime=function(k){return T(k,y)};var S=(function(){function k(L,B,j,z,H,q,W,$,J){this.year=s.assertValidYear(L),this.month=s.assertValidMonth(B),this.day=s.assertValidDay(j),this.hour=s.assertValidHour(z),this.minute=s.assertValidMinute(H),this.second=s.assertValidSecond(q),this.nanosecond=s.assertValidNanosecond(W);var X=o((function(re,ne){var le=re!=null,ce=ne!=null&&ne!=="";if(!le&&!ce)throw(0,l.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: ".concat(re," and id: ").concat(ne));var pe=[void 0,void 0];return le&&((0,u.assertNumberOrInteger)(re,"Time zone offset in seconds"),pe[0]=re),ce&&((0,u.assertString)(ne,"Time zone ID"),s.assertValidZoneId("Time zone ID",ne),pe[1]=ne),pe})($,J),2),Z=X[0],ue=X[1];this.timeZoneOffsetSeconds=Z,this.timeZoneId=ue??void 0,Object.freeze(this)}return k.fromStandardDate=function(L,B){return I(L,B),new k(L.getFullYear(),L.getMonth()+1,L.getDate(),L.getHours(),L.getMinutes(),L.getSeconds(),(0,c.toNumber)(s.totalNanoseconds(L,B)),s.timeZoneOffsetInSeconds(L),null)},k.prototype.toStandardDate=function(){return s.toStandardDate(this._toUTC())},k.prototype.toString=function(){var L;return P(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)+(this.timeZoneOffsetSeconds!=null?s.timeZoneOffsetToIsoString((L=this.timeZoneOffsetSeconds)!==null&&L!==void 0?L:0):"")+(this.timeZoneId!=null?"[".concat(this.timeZoneId,"]"):"")},k.prototype._toUTC=function(){var L;if(this.timeZoneOffsetSeconds===void 0)throw new Error("Requires DateTime created with time zone offset");var B=s.localDateTimeToEpochSecond(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond).subtract((L=this.timeZoneOffsetSeconds)!==null&&L!==void 0?L:0);return(0,c.int)(B).multiply(1e3).add((0,c.int)(this.nanosecond).div(1e6)).toNumber()},k})();function T(k,L){return k!=null&&k[L]===!0}function P(k,L,B,j,z,H,q){return s.dateToIsoString(k,L,B)+"T"+s.timeToIsoString(j,z,H,q)}function I(k,L){(0,u.assertValidDate)(k,"Standard date"),L!=null&&(0,u.assertNumberOrInteger)(L,"Nanosecond")}e.DateTime=S,Object.defineProperty(S.prototype,b,f),e.isDateTime=function(k){return T(k,b)}},5471:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.map=void 0;var n=t(7843),i=t(3111);e.map=function(a,o){return n.operate(function(s,u){var l=0;s.subscribe(i.createOperatorSubscriber(u,function(c){u.next(a.call(o,c,l++))}))})}},5477:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.window=void 0;var n=t(2483),i=t(7843),a=t(3111),o=t(1342),s=t(9445);e.window=function(u){return i.operate(function(l,c){var f=new n.Subject;c.next(f.asObservable());var d=function(h){f.error(h),c.error(h)};return l.subscribe(a.createOperatorSubscriber(c,function(h){return f==null?void 0:f.next(h)},function(){f.complete(),c.complete()},d)),s.innerFrom(u).subscribe(a.createOperatorSubscriber(c,function(){f.complete(),c.next(f=new n.Subject)},o.noop,d)),function(){f==null||f.unsubscribe(),f=null}})}},5481:function(r,e,t){var n=this&&this.__awaiter||function(E,O,S,T){return new(S||(S=Promise))(function(P,I){function k(j){try{B(T.next(j))}catch(z){I(z)}}function L(j){try{B(T.throw(j))}catch(z){I(z)}}function B(j){var z;j.done?P(j.value):(z=j.value,z instanceof S?z:new S(function(H){H(z)})).then(k,L)}B((T=T.apply(E,O||[])).next())})},i=this&&this.__generator||function(E,O){var S,T,P,I,k={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return I={next:L(0),throw:L(1),return:L(2)},typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function L(B){return function(j){return(function(z){if(S)throw new TypeError("Generator is already executing.");for(;I&&(I=0,z[0]&&(k=0)),k;)try{if(S=1,T&&(P=2&z[0]?T.return:z[0]?T.throw||((P=T.return)&&P.call(T),0):T.next)&&!(P=P.call(T,z[1])).done)return P;switch(T=0,P&&(z=[2&z[0],P.value]),z[0]){case 0:case 1:P=z;break;case 4:return k.label++,{value:z[1],done:!1};case 5:k.label++,T=z[1],z=[0];continue;case 7:z=k.ops.pop(),k.trys.pop();continue;default:if(!((P=(P=k.trys).length>0&&P[P.length-1])||z[0]!==6&&z[0]!==2)){k=0;continue}if(z[0]===3&&(!P||z[1]>P[0]&&z[1]0)&&!(T=I.next()).done;)k.push(T.value)}catch(L){P={error:L}}finally{try{T&&!T.done&&(S=I.return)&&S.call(I)}finally{if(P)throw P.error}}return k},o=this&&this.__spreadArray||function(E,O,S){if(S||arguments.length===2)for(var T,P=0,I=O.length;P{Object.defineProperty(e,"__esModule",{value:!0}),e.every=void 0;var n=t(7843),i=t(3111);e.every=function(a,o){return n.operate(function(s,u){var l=0;s.subscribe(i.createOperatorSubscriber(u,function(c){a.call(o,c,l++,s)||(u.next(!1),u.complete())},function(){u.next(!0),u.complete()}))})}},5553:function(r,e,t){var n=this&&this.__extends||(function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function c(){this.constructor=u}s(u,l),u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})();Object.defineProperty(e,"__esModule",{value:!0});var i=t(7174),a=t(5319),o=(function(s){function u(l){for(var c=this,f=0,d=0;d=f.length))return f.getUInt8(l);l-=f.length}},u.prototype.getInt8=function(l){for(var c=0;c=f.length))return f.getInt8(l);l-=f.length}},u.prototype.getFloat64=function(l){for(var c=(0,a.alloc)(8),f=0;f<8;f++)c.putUInt8(f,this.getUInt8(l+f));return c.getFloat64(0)},u})(i.BaseBuffer);e.default=o},5568:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorClass=void 0,e.createErrorClass=function(t){var n=t(function(i){Error.call(i),i.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}},5572:function(r,e,t){var n=this&&this.__values||function(s){var u=typeof Symbol=="function"&&Symbol.iterator,l=u&&s[u],c=0;if(l)return l.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&c>=s.length&&(s=void 0),{value:s&&s[c++],done:!s}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferCount=void 0;var i=t(7843),a=t(3111),o=t(7479);e.bufferCount=function(s,u){return u===void 0&&(u=null),u=u??s,i.operate(function(l,c){var f=[],d=0;l.subscribe(a.createOperatorSubscriber(c,function(h){var p,g,y,b,_=null;d++%u===0&&f.push([]);try{for(var m=n(f),x=m.next();!x.done;x=m.next())(S=x.value).push(h),s<=S.length&&(_=_??[]).push(S)}catch(T){p={error:T}}finally{try{x&&!x.done&&(g=m.return)&&g.call(m)}finally{if(p)throw p.error}}if(_)try{for(var E=n(_),O=E.next();!O.done;O=E.next()){var S=O.value;o.arrRemove(f,S),c.next(S)}}catch(T){y={error:T}}finally{try{O&&!O.done&&(b=E.return)&&b.call(E)}finally{if(y)throw y.error}}},function(){var h,p;try{for(var g=n(f),y=g.next();!y.done;y=g.next()){var b=y.value;c.next(b)}}catch(_){h={error:_}}finally{try{y&&!y.done&&(p=g.return)&&p.call(g)}finally{if(h)throw h.error}}c.complete()},void 0,function(){f=null}))})}},5584:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.raceInit=e.race=void 0;var n=t(4662),i=t(9445),a=t(8535),o=t(3111);function s(u){return function(l){for(var c=[],f=function(h){c.push(i.innerFrom(u[h]).subscribe(o.createOperatorSubscriber(l,function(p){if(c){for(var g=0;g{var n=t(7192);n=n.slice().filter(function(i){return!/^(gl\_|texture)/.test(i)}),r.exports=n.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},5600:function(r,e,t){var n=this&&this.__read||function(u,l){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var f,d,h=c.call(u),p=[];try{for(;(l===void 0||l-- >0)&&!(f=h.next()).done;)p.push(f.value)}catch(g){d={error:g}}finally{try{f&&!f.done&&(c=h.return)&&c.call(h)}finally{if(d)throw d.error}}return p},i=this&&this.__spreadArray||function(u,l){for(var c=0,f=l.length,d=u.length;c{var n=t(1048),i=n.Buffer;function a(s,u){for(var l in s)u[l]=s[l]}function o(s,u,l){return i(s,u,l)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=n:(a(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(s,u,l){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,u,l)},o.alloc=function(s,u,l){if(typeof s!="number")throw new TypeError("Argument must be a number");var c=i(s);return u!==void 0?typeof l=="string"?c.fill(u,l):c.fill(u):c.fill(0),c},o.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},o.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}},5642:function(r,e,t){var n=this&&this.__extends||(function(){var m=function(x,E){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&(O[T]=S[T])},m(x,E)};return function(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function O(){this.constructor=x}m(x,E),x.prototype=E===null?Object.create(E):(O.prototype=E.prototype,new O)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(m){for(var x,E=1,O=arguments.length;E0)&&!(s=l.next()).done;)c.push(s.value)}catch(f){u={error:f}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(u)throw u.error}}return c},n=this&&this.__spreadArray||function(i,a){for(var o=0,s=a.length,u=i.length;o{Object.defineProperty(e,"__esModule",{value:!0}),e.UnsubscriptionError=void 0;var n=t(5568);e.UnsubscriptionError=n.createErrorClass(function(i){return function(a){i(this),this.message=a?a.length+` errors occurred during unsubscription: `+a.map(function(o,s){return s+1+") "+o.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=a}})},5815:function(r,e,t){var n=this&&this.__extends||(function(){var y=function(b,_){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,x){m.__proto__=x}||function(m,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(m[E]=x[E])},y(b,_)};return function(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=b}y(b,_),b.prototype=_===null?Object.create(_):(m.prototype=_.prototype,new m)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(y){for(var b,_=1,m=arguments.length;_{Object.defineProperty(e,"__esModule",{value:!0}),e.fromVersion=void 0,e.fromVersion=function(t,n){n===void 0&&(n=function(){return{get userAgent(){}}});var i=n(),a=i.userAgent!=null?i.userAgent.split("(")[1].split(")")[0]:void 0,o=i.userAgent||void 0;return{product:"neo4j-javascript/".concat(t),platform:a,languageDetails:o}}},5880:function(r,e,t){var n,i;n=function(){var a=function(){},o="undefined",s=typeof window!==o&&typeof window.navigator!==o&&/Trident\/|MSIE /.test(window.navigator.userAgent),u=["trace","debug","info","warn","error"],l={},c=null;function f(_,m){var x=_[m];if(typeof x.bind=="function")return x.bind(_);try{return Function.prototype.bind.call(x,_)}catch{return function(){return Function.prototype.apply.apply(x,[_,arguments])}}}function d(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function h(){for(var _=this.getLevel(),m=0;m=0&&B<=S.levels.SILENT)return B;throw new TypeError("log.setLevel() called with invalid level: "+L)}typeof _=="string"?T+=":"+_:typeof _=="symbol"&&(T=void 0),S.name=_,S.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},S.methodFactory=m||g,S.getLevel=function(){return O??E??x},S.setLevel=function(L,B){return O=I(L),B!==!1&&(function(j){var z=(u[j]||"silent").toUpperCase();if(typeof window!==o&&T){try{return void(window.localStorage[T]=z)}catch{}try{window.document.cookie=encodeURIComponent(T)+"="+z+";"}catch{}}})(O),h.call(S)},S.setDefaultLevel=function(L){E=I(L),P()||S.setLevel(L,!1)},S.resetLevel=function(){O=null,(function(){if(typeof window!==o&&T){try{window.localStorage.removeItem(T)}catch{}try{window.document.cookie=encodeURIComponent(T)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}})(),h.call(S)},S.enableAll=function(L){S.setLevel(S.levels.TRACE,L)},S.disableAll=function(L){S.setLevel(S.levels.SILENT,L)},S.rebuild=function(){if(c!==S&&(x=I(c.getLevel())),h.call(S),c===S)for(var L in l)l[L].rebuild()},x=I(c?c.getLevel():"WARN");var k=P();k!=null&&(O=I(k)),h.call(S)}(c=new y).getLogger=function(_){if(typeof _!="symbol"&&typeof _!="string"||_==="")throw new TypeError("You must supply a name when creating a logger.");var m=l[_];return m||(m=l[_]=new y(_,c.methodFactory)),m};var b=typeof window!==o?window.log:void 0;return c.noConflict=function(){return typeof window!==o&&window.log===c&&(window.log=b),c},c.getLoggers=function(){return l},c.default=c,c},(i=n.call(e,t,e,r))===void 0||(r.exports=i)},5909:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function n(i){var a=i.run;this._run=a}return n.fromTransaction=function(i){return new n({run:i.run.bind(i)})},n.prototype.run=function(i,a){return this._run(i,a)},n})();e.default=t},5918:function(r,e,t){var n=this&&this.__read||function(s,u){var l=typeof Symbol=="function"&&s[Symbol.iterator];if(!l)return s;var c,f,d=l.call(s),h=[];try{for(;(u===void 0||u-- >0)&&!(c=d.next()).done;)h.push(c.value)}catch(p){f={error:p}}finally{try{c&&!c.done&&(l=d.return)&&l.call(d)}finally{if(f)throw f.error}}return h},i=this&&this.__spreadArray||function(s,u){for(var l=0,c=u.length,f=s.length;l{Object.defineProperty(e,"__esModule",{value:!0}),e.epochSecondAndNanoToLocalDateTime=e.nanoOfDayToLocalTime=e.epochDayToDate=void 0;var n=t(9305),i=n.internal.temporalUtil,a=i.DAYS_0000_TO_1970,o=i.DAYS_PER_400_YEAR_CYCLE,s=i.NANOS_PER_HOUR,u=i.NANOS_PER_MINUTE,l=i.NANOS_PER_SECOND,c=i.SECONDS_PER_DAY,f=i.floorDiv,d=i.floorMod;function h(g){var y=(g=(0,n.int)(g)).add(a).subtract(60),b=(0,n.int)(0);if(y.lessThan(0)){var _=y.add(1).div(o).subtract(1);b=_.multiply(400),y=y.add(_.multiply(-o))}var m=y.multiply(400).add(591).div(o),x=y.subtract(m.multiply(365).add(m.div(4)).subtract(m.div(100)).add(m.div(400)));x.lessThan(0)&&(m=m.subtract(1),x=y.subtract(m.multiply(365).add(m.div(4)).subtract(m.div(100)).add(m.div(400)))),m=m.add(b);var E=x,O=E.multiply(5).add(2).div(153),S=O.add(2).modulo(12).add(1),T=E.subtract(O.multiply(306).add(5).div(10)).add(1);return m=m.add(O.div(10)),new n.Date(m,S,T)}function p(g){var y=(g=(0,n.int)(g)).div(s),b=(g=g.subtract(y.multiply(s))).div(u),_=(g=g.subtract(b.multiply(u))).div(l),m=g.subtract(_.multiply(l));return new n.LocalTime(y,b,_,m)}e.epochDayToDate=h,e.nanoOfDayToLocalTime=p,e.epochSecondAndNanoToLocalDateTime=function(g,y){var b=f(g,c),_=d(g,c).multiply(l).add(y),m=h(b),x=p(_);return new n.LocalDateTime(m.year,m.month,m.day,x.hour,x.minute,x.second,x.nanosecond)}},6013:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createObject=void 0,e.createObject=function(t,n){return t.reduce(function(i,a,o){return i[a]=n[o],i},{})}},6030:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cacheKey=void 0;var n=t(4027);e.cacheKey=function(i,a){var o;return a!=null?"basic:"+a:i===void 0?"DEFAULT":i.scheme==="basic"?"basic:"+((o=i.principal)!==null&&o!==void 0?o:""):i.scheme==="kerberos"?"kerberos:"+i.credentials:i.scheme==="bearer"?"bearer:"+i.credentials:i.scheme==="none"?"none":(0,n.stringify)(i,{sortedElements:!0})}},6033:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Stats=e.QueryStatistics=e.ProfiledPlan=e.Plan=e.ServerInfo=e.queryType=void 0;var n=t(6995),i=t(1866),a=(function(){function f(d,h,p,g){var y,b,_;this.query={text:d,parameters:h},this.queryType=p.type,this.counters=new u((y=p.stats)!==null&&y!==void 0?y:{}),this.updateStatistics=this.counters,this.plan=(p.plan!=null||p.profile!=null)&&new o((b=p.plan)!==null&&b!==void 0?b:p.profile),this.profile=p.profile!=null&&new s(p.profile),this.notifications=(0,i.buildNotificationsFromMetadata)(p),this.gqlStatusObjects=(0,i.buildGqlStatusObjectFromMetadata)(p),this.server=new l(p.server,g),this.resultConsumedAfter=p.result_consumed_after,this.resultAvailableAfter=p.result_available_after,this.database={name:(_=p.db)!==null&&_!==void 0?_:null}}return f.prototype.hasPlan=function(){return this.plan instanceof o},f.prototype.hasProfile=function(){return this.profile instanceof s},f})(),o=function f(d){this.operatorType=d.operatorType,this.identifiers=d.identifiers,this.arguments=d.args,this.children=d.children!=null?d.children.map(function(h){return new f(h)}):[]};e.Plan=o;var s=(function(){function f(d){this.operatorType=d.operatorType,this.identifiers=d.identifiers,this.arguments=d.args,this.dbHits=c("dbHits",d),this.rows=c("rows",d),this.pageCacheMisses=c("pageCacheMisses",d),this.pageCacheHits=c("pageCacheHits",d),this.pageCacheHitRatio=c("pageCacheHitRatio",d),this.time=c("time",d),this.children=d.children!=null?d.children.map(function(h){return new f(h)}):[]}return f.prototype.hasPageCacheStats=function(){return this.pageCacheMisses>0||this.pageCacheHits>0||this.pageCacheHitRatio>0},f})();e.ProfiledPlan=s,e.Stats=function(){this.nodesCreated=0,this.nodesDeleted=0,this.relationshipsCreated=0,this.relationshipsDeleted=0,this.propertiesSet=0,this.labelsAdded=0,this.labelsRemoved=0,this.indexesAdded=0,this.indexesRemoved=0,this.constraintsAdded=0,this.constraintsRemoved=0};var u=(function(){function f(d){var h=this;this._stats={nodesCreated:0,nodesDeleted:0,relationshipsCreated:0,relationshipsDeleted:0,propertiesSet:0,labelsAdded:0,labelsRemoved:0,indexesAdded:0,indexesRemoved:0,constraintsAdded:0,constraintsRemoved:0},this._systemUpdates=0,Object.keys(d).forEach(function(p){var g=p.replace(/(-\w)/g,function(y){return y[1].toUpperCase()});g in h._stats?h._stats[g]=n.util.toNumber(d[p]):g==="systemUpdates"?h._systemUpdates=n.util.toNumber(d[p]):g==="containsSystemUpdates"?h._containsSystemUpdates=d[p]:g==="containsUpdates"&&(h._containsUpdates=d[p])}),this._stats=Object.freeze(this._stats)}return f.prototype.containsUpdates=function(){var d=this;return this._containsUpdates!==void 0?this._containsUpdates:Object.keys(this._stats).reduce(function(h,p){return h+d._stats[p]},0)>0},f.prototype.updates=function(){return this._stats},f.prototype.containsSystemUpdates=function(){return this._containsSystemUpdates!==void 0?this._containsSystemUpdates:this._systemUpdates>0},f.prototype.systemUpdates=function(){return this._systemUpdates},f})();e.QueryStatistics=u;var l=function(f,d){f!=null&&(this.address=f.address,this.agent=f.version),this.protocolVersion=d};function c(f,d,h){if(h===void 0&&(h=0),d!==!1&&f in d){var p=d[f];return n.util.toNumber(p)}return h}e.ServerInfo=l,e.queryType={READ_ONLY:"r",READ_WRITE:"rw",WRITE_ONLY:"w",SCHEMA_WRITE:"s"},e.default=a},6038:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6086:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sampleTime=void 0;var n=t(7961),i=t(1731),a=t(6472);e.sampleTime=function(o,s){return s===void 0&&(s=n.asyncScheduler),i.sample(a.interval(o,s))}},6102:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.onErrorResumeNext=void 0;var n=t(4662),i=t(8535),a=t(3111),o=t(1342),s=t(9445);e.onErrorResumeNext=function(){for(var u=[],l=0;l{Object.defineProperty(e,"__esModule",{value:!0}),e.publishLast=void 0;var n=t(95),i=t(8918);e.publishLast=function(){return function(a){var o=new n.AsyncSubject;return new i.ConnectableObservable(a,function(){return o})}}},6161:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u0&&_[_.length-1])||T[0]!==6&&T[0]!==2)){x=0;continue}if(T[0]===3&&(!_||T[1]>_[0]&&T[1]<_[3])){x.label=T[1];break}if(T[0]===6&&x.label<_[1]){x.label=_[1],_=T;break}if(_&&x.label<_[2]){x.label=_[2],x.ops.push(T);break}_[2]&&x.ops.pop(),x.trys.pop();continue}T=g.call(p,x)}catch(P){T=[6,P],b=0}finally{y=_=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}})([O,S])}}},o=this&&this.__read||function(p,g){var y=typeof Symbol=="function"&&p[Symbol.iterator];if(!y)return p;var b,_,m=y.call(p),x=[];try{for(;(g===void 0||g-- >0)&&!(b=m.next()).done;)x.push(b.value)}catch(E){_={error:E}}finally{try{b&&!b.done&&(y=m.return)&&y.call(m)}finally{if(_)throw _.error}}return x},s=this&&this.__spreadArray||function(p,g,y){if(y||arguments.length===2)for(var b,_=0,m=g.length;_this._maxRetryTimeMs||!(0,u.isRetriableError)(b)?Promise.reject(b):new Promise(function(S,T){var P=O._computeDelayWithJitter(m),I=O._setTimeout(function(){O._inFlightTimeoutIds=O._inFlightTimeoutIds.filter(function(k){return k!==I}),O._executeTransactionInsidePromise(g,y,S,T,x,E).catch(T)},P);O._inFlightTimeoutIds.push(I)}).catch(function(S){var T=m*O._multiplier;return O._retryTransactionPromise(g,y,S,_,T,x,E)})},p.prototype._executeTransactionInsidePromise=function(g,y,b,_,m,x){return i(this,void 0,void 0,function(){var E,O,S,T,P,I,k=this;return a(this,function(L){switch(L.label){case 0:return L.trys.push([0,4,,5]),O=g((x==null?void 0:x.apiTransactionConfig)!=null?n({},x==null?void 0:x.apiTransactionConfig):void 0),this.pipelineBegin?(S=O,[3,3]):[3,1];case 1:return[4,O];case 2:S=L.sent(),L.label=3;case 3:return E=S,[3,5];case 4:return T=L.sent(),_(T),[2];case 5:return P=m??function(B){return B},I=P(E),this._safeExecuteTransactionWork(I,y).then(function(B){return k._handleTransactionWorkSuccess(B,E,b,_)}).catch(function(B){return k._handleTransactionWorkFailure(B,E,_)}),[2]}})})},p.prototype._safeExecuteTransactionWork=function(g,y){try{var b=y(g);return Promise.resolve(b)}catch(_){return Promise.reject(_)}},p.prototype._handleTransactionWorkSuccess=function(g,y,b,_){y.isOpen()?y.commit().then(function(){b(g)}).catch(function(m){_(m)}):b(g)},p.prototype._handleTransactionWorkFailure=function(g,y,b){y.isOpen()?y.rollback().catch(function(_){}).then(function(){return b(g)}).catch(b):b(g)},p.prototype._computeDelayWithJitter=function(g){var y=g*this._jitterFactor,b=g-y,_=g+y;return Math.random()*(_-b)+b},p.prototype._verifyAfterConstruction=function(){if(this._maxRetryTimeMs<0)throw(0,u.newError)("Max retry time should be >= 0: "+this._maxRetryTimeMs.toString());if(this._initialRetryDelayMs<0)throw(0,u.newError)("Initial retry delay should >= 0: "+this._initialRetryDelayMs.toString());if(this._multiplier<1)throw(0,u.newError)("Multiplier should be >= 1.0: "+this._multiplier.toString());if(this._jitterFactor<0||this._jitterFactor>1)throw(0,u.newError)("Jitter factor should be in [0.0, 1.0]: "+this._jitterFactor.toFixed())},p})();function h(p,g){return p??g}e.TransactionExecutor=d},6245:function(r,e,t){var n=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(t(5319)),a=t(9305),o=a.internal.util,s=o.ENCRYPTION_OFF,u=o.ENCRYPTION_ON,l=(function(){function f(d,h,p){h===void 0&&(h=c),p===void 0&&(p=function(x){return new WebSocket(x)});var g=this;this._open=!0,this._pending=[],this._error=null,this._handleConnectionError=this._handleConnectionError.bind(this),this._config=d,this._receiveTimeout=null,this._receiveTimeoutStarted=!1,this._receiveTimeoutId=null,this._closingPromise=null;var y=(function(x,E){var O=(function(I){return I.encrypted===!0||I.encrypted===u})(x),S=(function(I){return I.encrypted===!1||I.encrypted===s})(x),T=x.trust,P=(function(I){var k=typeof I=="function"?I():"";return k&&k.toLowerCase().indexOf("https")>=0})(E);return(function(I,k,L){L===null||(I&&!L?console.warn("Neo4j driver is configured to use secure WebSocket on a HTTP web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to not use encryption."):k&&L&&console.warn("Neo4j driver is configured to use insecure WebSocket on a HTTPS web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to use encryption."))})(O,S,P),S?{scheme:"ws",error:null}:P?{scheme:"wss",error:null}:O?T&&T!=="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"?{scheme:null,error:(0,a.newError)("The browser version of this driver only supports one trust strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. "+T+' is not supported. Please either use TRUST_SYSTEM_CA_SIGNED_CERTIFICATES or disable encryption by setting `encrypted:"'+s+'"` in the driver configuration.')}:{scheme:"wss",error:null}:{scheme:"ws",error:null}})(d,h),b=y.scheme,_=y.error;if(_)this._error=_;else{this._ws=(function(x,E,O){var S=x+"://"+E.asHostPort();try{return O(S)}catch(P){if((function(I,k){return I.name==="SyntaxError"&&(L=k.asHostPort()).charAt(0)==="["&&L.indexOf("]")!==-1;var L})(P,E)){var T=(function(I,k){var L=k.host().replace(/:/g,"-").replace("%","s")+".ipv6-literal.net";return"".concat(I,"://").concat(L,":").concat(k.port())})(x,E);return O(T)}throw P}})(b,d.address,p),this._ws.binaryType="arraybuffer";var m=this;this._ws.onclose=function(x){x&&!x.wasClean&&m._handleConnectionError(),m._open=!1},this._ws.onopen=function(){m._clearConnectionTimeout();var x=m._pending;m._pending=null;for(var E=0;E0)&&!(f=h.next()).done;)p.push(f.value)}catch(g){d={error:g}}finally{try{f&&!f.done&&(c=h.return)&&c.call(h)}finally{if(d)throw d.error}}return p},i=this&&this.__spreadArray||function(u,l){for(var c=0,f=l.length,d=u.length;c{Object.defineProperty(e,"__esModule",{value:!0}),e.isIterable=void 0;var n=t(1964),i=t(1018);e.isIterable=function(a){return i.isFunction(a==null?void 0:a[n.iterator])}},6377:function(r,e,t){var n=this&&this.__extends||(function(){var d=function(h,p){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])},d(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function g(){this.constructor=h}d(h,p),h.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(d){for(var h,p=1,g=arguments.length;p{Object.defineProperty(e,"__esModule",{value:!0}),e.scanInternals=void 0;var n=t(3111);e.scanInternals=function(i,a,o,s,u){return function(l,c){var f=o,d=a,h=0;l.subscribe(n.createOperatorSubscriber(c,function(p){var g=h++;d=f?i(d,p,g):(f=!0,p),s&&c.next(d)},u&&function(){f&&c.next(d),c.complete()}))}}},6385:function(r,e,t){var n=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0}),t(7666);var i=(function(a){function o(s){var u=a.call(this)||this;return u._errorHandler=s,u}return n(o,a),Object.defineProperty(o.prototype,"id",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"databaseId",{get:function(){throw new Error("not implemented")},set:function(s){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"authToken",{get:function(){throw new Error("not implemented")},set:function(s){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"supportsReAuth",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"creationTimestamp",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"idleTimestamp",{get:function(){throw new Error("not implemented")},set:function(s){throw new Error("not implemented")},enumerable:!1,configurable:!0}),o.prototype.protocol=function(){throw new Error("not implemented")},Object.defineProperty(o.prototype,"address",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"version",{get:function(){throw new Error("not implemented")},set:function(s){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"server",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),o.prototype.connect=function(s,u,l,c){throw new Error("not implemented")},o.prototype.write=function(s,u,l){throw new Error("not implemented")},o.prototype.close=function(){throw new Error("not implemented")},o.prototype.handleAndTransformError=function(s,u){return this._errorHandler?this._errorHandler.handleAndTransformError(s,u,this):s},o})(t(9305).Connection);e.default=i},6445:function(r,e,t){var n=this&&this.__extends||(function(){var f=function(d,h){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(p[y]=g[y])},f(d,h)};return function(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function p(){this.constructor=d}f(d,h),d.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})(),i=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(t(4596)),o=t(9305),s=i(t(5348)),u=i(t(3321)),l=o.internal.constants.BOLT_PROTOCOL_V4_2,c=(function(f){function d(){return f!==null&&f.apply(this,arguments)||this}return n(d,f),Object.defineProperty(d.prototype,"version",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"transformer",{get:function(){var h=this;return this._transformer===void 0&&(this._transformer=new u.default(Object.values(s.default).map(function(p){return p(h._config,h._log)}))),this._transformer},enumerable:!1,configurable:!0}),d})(a.default);e.default=c},6472:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.interval=void 0;var n=t(7961),i=t(4092);e.interval=function(a,o){return a===void 0&&(a=0),o===void 0&&(o=n.asyncScheduler),a<0&&(a=0),i.timer(a,a,o)}},6492:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reuseOngoingRequest=e.identity=void 0;var n=t(9305);e.identity=function(i){return i},e.reuseOngoingRequest=function(i,a){a===void 0&&(a=null);var o=new Map;return function(){for(var s=[],u=0;u{Object.defineProperty(e,"__esModule",{value:!0}),e.timestamp=void 0;var n=t(9568),i=t(5471);e.timestamp=function(a){return a===void 0&&(a=n.dateTimestampProvider),i.map(function(o){return{value:o,timestamp:a.now()}})}},6544:function(r,e,t){var n=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(e,"__esModule",{value:!0});var i=t(9305),a=n(t(8320)),o=n(t(2857)),s=n(t(5642)),u=n(t(2539)),l=n(t(4596)),c=n(t(6445)),f=n(t(9054)),d=n(t(1711)),h=n(t(844)),p=n(t(6345)),g=n(t(934)),y=n(t(9125)),b=n(t(9744)),_=n(t(5815)),m=n(t(6890)),x=n(t(6377)),E=n(t(1092)),O=(t(7452),n(t(2578)));e.default=function(S){var T=S===void 0?{}:S,P=T.version,I=T.chunker,k=T.dechunker,L=T.channel,B=T.disableLosslessIntegers,j=T.useBigInt,z=T.serversideRouting,H=T.server,q=T.log,W=T.observer;return(function($,J,X,Z,ue,re,ne,le){switch($){case 1:return new a.default(J,X,Z,re,le,ne);case 2:return new o.default(J,X,Z,re,le,ne);case 3:return new s.default(J,X,Z,re,le,ne);case 4:return new u.default(J,X,Z,re,le,ne);case 4.1:return new l.default(J,X,Z,re,le,ne,ue);case 4.2:return new c.default(J,X,Z,re,le,ne,ue);case 4.3:return new f.default(J,X,Z,re,le,ne,ue);case 4.4:return new d.default(J,X,Z,re,le,ne,ue);case 5:return new h.default(J,X,Z,re,le,ne,ue);case 5.1:return new p.default(J,X,Z,re,le,ne,ue);case 5.2:return new g.default(J,X,Z,re,le,ne,ue);case 5.3:return new y.default(J,X,Z,re,le,ne,ue);case 5.4:return new b.default(J,X,Z,re,le,ne,ue);case 5.5:return new _.default(J,X,Z,re,le,ne,ue);case 5.6:return new m.default(J,X,Z,re,le,ne,ue);case 5.7:return new x.default(J,X,Z,re,le,ne,ue);case 5.8:return new E.default(J,X,Z,re,le,ne,ue);default:throw(0,i.newError)("Unknown Bolt protocol version: "+$)}})(P,H,I,{disableLosslessIntegers:B,useBigInt:j},z,function($){var J=new O.default({transformMetadata:$.transformMetadata.bind($),enrichErrorMetadata:$.enrichErrorMetadata.bind($),log:q,observer:W});return L.onerror=W.onError.bind(W),L.onmessage=function(X){return k.write(X)},k.onmessage=function(X){try{J.handleResponse($.unpack(X))}catch(Z){return W.onError(Z)}},J},W.onProtocolError.bind(W),q)}},6566:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.repeatWhen=void 0;var n=t(9445),i=t(2483),a=t(7843),o=t(3111);e.repeatWhen=function(s){return a.operate(function(u,l){var c,f,d=!1,h=!1,p=!1,g=function(){return p&&h&&(l.complete(),!0)},y=function(){p=!1,c=u.subscribe(o.createOperatorSubscriber(l,void 0,function(){p=!0,!g()&&(f||(f=new i.Subject,n.innerFrom(s(f)).subscribe(o.createOperatorSubscriber(l,function(){c?y():d=!0},function(){h=!0,g()}))),f).next()})),d&&(c.unsubscribe(),c=null,d=!1,y())};y()})}},6586:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMapTo=void 0;var n=t(983),i=t(1018);e.mergeMapTo=function(a,o,s){return s===void 0&&(s=1/0),i.isFunction(o)?n.mergeMap(function(){return a},o,s):(typeof o=="number"&&(s=o),n.mergeMap(function(){return a},s))}},6587:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(d,h,p,g){g===void 0&&(g=p);var y=Object.getOwnPropertyDescriptor(h,p);y&&!("get"in y?!h.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return h[p]}}),Object.defineProperty(d,g,y)}:function(d,h,p,g){g===void 0&&(g=p),d[g]=h[p]}),i=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),a=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var p in d)p!=="default"&&Object.prototype.hasOwnProperty.call(d,p)&&n(h,d,p);return i(h,d),h},o=this&&this.__values||function(d){var h=typeof Symbol=="function"&&Symbol.iterator,p=h&&d[h],g=0;if(p)return p.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&g>=d.length&&(d=void 0),{value:d&&d[g++],done:!d}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ENCRYPTION_OFF=e.ENCRYPTION_ON=e.equals=e.validateQueryAndParameters=e.toNumber=e.assertValidDate=e.assertNumberOrInteger=e.assertNumber=e.assertString=e.assertObject=e.isString=e.isObject=e.isEmptyObjectOrNull=void 0;var s=a(t(3371)),u=t(4027);function l(d){return typeof d=="object"&&!Array.isArray(d)&&d!==null}function c(d,h){if(!f(d))throw new TypeError((0,u.stringify)(h)+" expected to be string but was: "+(0,u.stringify)(d));return d}function f(d){return Object.prototype.toString.call(d)==="[object String]"}e.ENCRYPTION_ON="ENCRYPTION_ON",e.ENCRYPTION_OFF="ENCRYPTION_OFF",e.isEmptyObjectOrNull=function(d){if(d===null)return!0;if(!l(d))return!1;for(var h in d)if(d[h]!==void 0)return!1;return!0},e.isObject=l,e.validateQueryAndParameters=function(d,h,p){var g,y,b="",_=h??{},m=(g=p==null?void 0:p.skipAsserts)!==null&&g!==void 0&&g;return typeof d=="string"?b=d:d instanceof String?b=d.toString():typeof d=="object"&&d.text!=null&&(b=d.text,_=(y=d.parameters)!==null&&y!==void 0?y:{}),m||((function(x){if(c(x,"Cypher query"),x.trim().length===0)throw new TypeError("Cypher query is expected to be a non-empty string.")})(b),(function(x){if(!l(x)){var E=x.constructor!=null?" "+x.constructor.name:"";throw new TypeError("Query parameters are expected to either be undefined/null or an object, given:".concat(E," ").concat(JSON.stringify(x)))}})(_)),{validatedQuery:b,params:_}},e.assertObject=function(d,h){if(!l(d))throw new TypeError(h+" expected to be an object but was: "+(0,u.stringify)(d));return d},e.assertString=c,e.assertNumber=function(d,h){if(typeof d!="number")throw new TypeError(h+" expected to be a number but was: "+(0,u.stringify)(d));return d},e.assertNumberOrInteger=function(d,h){if(typeof d!="number"&&typeof d!="bigint"&&!(0,s.isInt)(d))throw new TypeError(h+" expected to be either a number or an Integer object but was: "+(0,u.stringify)(d));return d},e.assertValidDate=function(d,h){if(Object.prototype.toString.call(d)!=="[object Date]")throw new TypeError(h+" expected to be a standard JavaScript Date but was: "+(0,u.stringify)(d));if(Number.isNaN(d.getTime()))throw new TypeError(h+" expected to be valid JavaScript Date but its time was NaN: "+(0,u.stringify)(d));return d},e.isString=f,e.equals=function d(h,p){var g,y;if(h===p)return!0;if(h===null||p===null)return!1;if(typeof h=="object"&&typeof p=="object"){var b=Object.keys(h),_=Object.keys(p);if(b.length!==_.length)return!1;try{for(var m=o(b),x=m.next();!x.done;x=m.next()){var E=x.value;if(!d(h[E],p[E]))return!1}}catch(O){g={error:O}}finally{try{x&&!x.done&&(y=m.return)&&y.call(m)}finally{if(g)throw g.error}}return!0}return!1},e.toNumber=function(d){return d instanceof s.default?d.toNumber():typeof d=="bigint"?(0,s.int)(d).toNumber():d}},6625:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.combineAll=void 0;var n=t(6728);e.combineAll=n.combineLatestAll},6637:function(r,e,t){var n=this&&this.__values||function(f){var d=typeof Symbol=="function"&&Symbol.iterator,h=d&&f[d],p=0;if(h)return h.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&p>=f.length&&(f=void 0),{value:f&&f[p++],done:!f}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowToggle=void 0;var i=t(2483),a=t(8014),o=t(7843),s=t(9445),u=t(3111),l=t(1342),c=t(7479);e.windowToggle=function(f,d){return o.operate(function(h,p){var g=[],y=function(b){for(;0{Object.defineProperty(e,"__esModule",{value:!0}),e.identity=void 0,e.identity=function(t){return t}},6661:function(r,e,t){var n=this&&this.__read||function(u,l){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var f,d,h=c.call(u),p=[];try{for(;(l===void 0||l-- >0)&&!(f=h.next()).done;)p.push(f.value)}catch(g){d={error:g}}finally{try{f&&!f.done&&(c=h.return)&&c.call(h)}finally{if(d)throw d.error}}return p};Object.defineProperty(e,"__esModule",{value:!0});var i=t(9305),a=t(7168),o=t(3321),s=i.error.PROTOCOL_ERROR;e.default={createNodeTransformer:function(){return new o.TypeTransformer({signature:78,isTypeInstance:function(u){return u instanceof i.Node},toStructure:function(u){throw(0,i.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(u),s)},fromStructure:function(u){a.structure.verifyStructSize("Node",3,u.size);var l=n(u.fields,3),c=l[0],f=l[1],d=l[2];return new i.Node(c,f,d)}})},createRelationshipTransformer:function(){return new o.TypeTransformer({signature:82,isTypeInstance:function(u){return u instanceof i.Relationship},toStructure:function(u){throw(0,i.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(u),s)},fromStructure:function(u){a.structure.verifyStructSize("Relationship",5,u.size);var l=n(u.fields,5),c=l[0],f=l[1],d=l[2],h=l[3],p=l[4];return new i.Relationship(c,f,d,h,p)}})},createUnboundRelationshipTransformer:function(){return new o.TypeTransformer({signature:114,isTypeInstance:function(u){return u instanceof i.UnboundRelationship},toStructure:function(u){throw(0,i.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(u),s)},fromStructure:function(u){a.structure.verifyStructSize("UnboundRelationship",3,u.size);var l=n(u.fields,3),c=l[0],f=l[1],d=l[2];return new i.UnboundRelationship(c,f,d)}})},createPathTransformer:function(){return new o.TypeTransformer({signature:80,isTypeInstance:function(u){return u instanceof i.Path},toStructure:function(u){throw(0,i.newError)("It is not allowed to pass paths in query parameters, given: ".concat(u),s)},fromStructure:function(u){a.structure.verifyStructSize("Path",3,u.size);for(var l=n(u.fields,3),c=l[0],f=l[1],d=l[2],h=[],p=c[0],g=0;g0?(_=f[b-1])instanceof i.UnboundRelationship&&(f[b-1]=_=_.bindTo(p,y)):(_=f[-b-1])instanceof i.UnboundRelationship&&(f[-b-1]=_=_.bindTo(y,p)),h.push(new i.PathSegment(p,_,y)),p=y}return new i.Path(c[0],c[c.length-1],h)}})}}},6672:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(s,u,l,c){c===void 0&&(c=l);var f=Object.getOwnPropertyDescriptor(u,l);f&&!("get"in f?!u.__esModule:f.writable||f.configurable)||(f={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(s,c,f)}:function(s,u,l,c){c===void 0&&(c=l),s[c]=u[l]}),i=this&&this.__setModuleDefault||(Object.create?function(s,u){Object.defineProperty(s,"default",{enumerable:!0,value:u})}:function(s,u){s.default=u}),a=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var u={};if(s!=null)for(var l in s)l!=="default"&&Object.prototype.hasOwnProperty.call(s,l)&&n(u,s,l);return i(u,s),u},o=this&&this.__exportStar||function(s,u){for(var l in s)l==="default"||Object.prototype.hasOwnProperty.call(u,l)||n(u,s,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.packstream=e.channel=e.buf=e.bolt=e.loadBalancing=void 0,e.loadBalancing=a(t(4455)),e.bolt=a(t(7666)),e.buf=a(t(7174)),e.channel=a(t(7452)),e.packstream=a(t(7168)),o(t(9689),e)},6702:function(r,e){var t=this&&this.__values||function(n){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&n[i],o=0;if(a)return a.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.equals=void 0,e.equals=function(n,i){var a,o;if(n===i)return!0;if(n===null||i===null)return!1;if(typeof n=="object"&&typeof i=="object"){var s=Object.keys(n),u=Object.keys(i);if(s.length!==u.length)return!1;try{for(var l=t(s),c=l.next();!c.done;c=l.next()){var f=c.value;if(n[f]!==i[f])return!1}}catch(d){a={error:d}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(a)throw a.error}}return!0}return!1}},6728:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestAll=void 0;var n=t(3247),i=t(3638);e.combineLatestAll=function(a){return i.joinAllInternals(n.combineLatest,a)}},6746:function(r,e,t){var n=this&&this.__values||function(s){var u=typeof Symbol=="function"&&Symbol.iterator,l=u&&s[u],c=0;if(l)return l.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&c>=s.length&&(s=void 0),{value:s&&s[c++],done:!s}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowCount=void 0;var i=t(2483),a=t(7843),o=t(3111);e.windowCount=function(s,u){u===void 0&&(u=0);var l=u>0?u:s;return a.operate(function(c,f){var d=[new i.Subject],h=0;f.next(d[0].asObservable()),c.subscribe(o.createOperatorSubscriber(f,function(p){var g,y;try{for(var b=n(d),_=b.next();!_.done;_=b.next())_.value.next(p)}catch(E){g={error:E}}finally{try{_&&!_.done&&(y=b.return)&&y.call(b)}finally{if(g)throw g.error}}var m=h-s+1;if(m>=0&&m%l===0&&d.shift().complete(),++h%l===0){var x=new i.Subject;d.push(x),f.next(x.asObservable())}},function(){for(;d.length>0;)d.shift().complete();f.complete()},function(p){for(;d.length>0;)d.shift().error(p);f.error(p)},function(){d=null}))})}},6755:function(r,e){var t=this&&this.__awaiter||function(l,c,f,d){return new(f||(f=Promise))(function(h,p){function g(_){try{b(d.next(_))}catch(m){p(m)}}function y(_){try{b(d.throw(_))}catch(m){p(m)}}function b(_){var m;_.done?h(_.value):(m=_.value,m instanceof f?m:new f(function(x){x(m)})).then(g,y)}b((d=d.apply(l,c||[])).next())})},n=this&&this.__generator||function(l,c){var f,d,h,p,g={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return p={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function y(b){return function(_){return(function(m){if(f)throw new TypeError("Generator is already executing.");for(;p&&(p=0,m[0]&&(g=0)),g;)try{if(f=1,d&&(h=2&m[0]?d.return:m[0]?d.throw||((h=d.return)&&h.call(d),0):d.next)&&!(h=h.call(d,m[1])).done)return h;switch(d=0,h&&(m=[2&m[0],h.value]),m[0]){case 0:case 1:h=m;break;case 4:return g.label++,{value:m[1],done:!1};case 5:g.label++,d=m[1],m=[0];continue;case 7:m=g.ops.pop(),g.trys.pop();continue;default:if(!((h=(h=g.trys).length>0&&h[h.length-1])||m[0]!==6&&m[0]!==2)){g=0;continue}if(m[0]===3&&(!h||m[1]>h[0]&&m[1]=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var d,h,p=f.call(l),g=[];try{for(;(c===void 0||c-- >0)&&!(d=p.next()).done;)g.push(d.value)}catch(y){h={error:y}}finally{try{d&&!d.done&&(f=p.return)&&f.call(p)}finally{if(h)throw h.error}}return g},o=this&&this.__spreadArray||function(l,c,f){if(f||arguments.length===2)for(var d,h=0,p=c.length;h{r.exports=function(i,a){Array.isArray(a)||(a=[a]);var o=(function(l){for(var c=-1,f=0;f0?i[o-1]:null;s&&t.test(s.data)&&i.splice(o++,0,e),i.splice.apply(i,[o,0].concat(a));var u=o+a.length;return i[u]&&/[^\r\n]$/.test(i[u].data)&&i.splice(u,0,e),i};var e={data:` -`,type:"whitespace"},t=/[^\r\n]$/;function n(i,a){for(var o=a;o{Object.defineProperty(e,"__esModule",{value:!0}),e.fromSubscribable=void 0;var n=t(4662);e.fromSubscribable=function(i){return new n.Observable(function(a){return i.subscribe(a)})}},6842:function(r,e,t){var n=this&&this.__awaiter||function(p,g,y,b){return new(y||(y=Promise))(function(_,m){function x(S){try{O(b.next(S))}catch(T){m(T)}}function E(S){try{O(b.throw(S))}catch(T){m(T)}}function O(S){var T;S.done?_(S.value):(T=S.value,T instanceof y?T:new y(function(P){P(T)})).then(x,E)}O((b=b.apply(p,g||[])).next())})},i=this&&this.__generator||function(p,g){var y,b,_,m,x={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return m={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function E(O){return function(S){return(function(T){if(y)throw new TypeError("Generator is already executing.");for(;m&&(m=0,T[0]&&(x=0)),x;)try{if(y=1,b&&(_=2&T[0]?b.return:T[0]?b.throw||((_=b.return)&&_.call(b),0):b.next)&&!(_=_.call(b,T[1])).done)return _;switch(b=0,_&&(T=[2&T[0],_.value]),T[0]){case 0:case 1:_=T;break;case 4:return x.label++,{value:T[1],done:!1};case 5:x.label++,b=T[1],T=[0];continue;case 7:T=x.ops.pop(),x.trys.pop();continue;default:if(!((_=(_=x.trys).length>0&&_[_.length-1])||T[0]!==6&&T[0]!==2)){x=0;continue}if(T[0]===3&&(!_||T[1]>_[0]&&T[1]<_[3])){x.label=T[1];break}if(T[0]===6&&x.label<_[1]){x.label=_[1],_=T;break}if(_&&x.label<_[2]){x.label=_[2],x.ops.push(T);break}_[2]&&x.ops.pop(),x.trys.pop();continue}T=g.call(p,x)}catch(P){T=[6,P],b=0}finally{y=_=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}})([O,S])}}},a=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0});var o=a(t(7589)),s=t(9691),u=t(4883),l=(function(){function p(g){var y=g.create,b=y===void 0?function(q,W,$){return n(H,void 0,void 0,function(){return i(this,function(J){switch(J.label){case 0:return[4,Promise.reject(new Error("Not implemented"))];case 1:return[2,J.sent()]}})})}:y,_=g.destroy,m=_===void 0?function(q){return n(H,void 0,void 0,function(){return i(this,function(W){switch(W.label){case 0:return[4,Promise.resolve()];case 1:return[2,W.sent()]}})})}:_,x=g.validateOnAcquire,E=x===void 0?function(q,W){return!0}:x,O=g.validateOnRelease,S=O===void 0?function(q){return!0}:O,T=g.installIdleObserver,P=T===void 0?function(q,W){}:T,I=g.removeIdleObserver,k=I===void 0?function(q){}:I,L=g.config,B=L===void 0?o.default.defaultConfig():L,j=g.log,z=j===void 0?u.Logger.noOp():j,H=this;this._create=b,this._destroy=m,this._validateOnAcquire=E,this._validateOnRelease=S,this._installIdleObserver=P,this._removeIdleObserver=k,this._maxSize=B.maxSize,this._acquisitionTimeout=B.acquisitionTimeout,this._pools={},this._pendingCreates={},this._acquireRequests={},this._activeResourceCounts={},this._release=this._release.bind(this),this._log=z,this._closed=!1}return p.prototype.acquire=function(g,y,b){return n(this,void 0,void 0,function(){var _,m,x=this;return i(this,function(E){switch(E.label){case 0:return _=y.asKey(),(m=this._acquireRequests)[_]==null&&(m[_]=[]),[4,new Promise(function(O,S){var T=setTimeout(function(){var I=m[_];if(I!=null&&(m[_]=I.filter(function(B){return B!==P})),!P.isCompleted()){var k=x.activeResourceCount(y),L=x.has(y)?x._pools[_].length:0;P.reject((0,s.newError)("Connection acquisition timed out in ".concat(x._acquisitionTimeout," ms. Pool status: Active conn count = ").concat(k,", Idle conn count = ").concat(L,".")))}},x._acquisitionTimeout);typeof T=="object"&&T.unref();var P=new d(_,g,b,O,S,T,x._log);m[_].push(P),x._processPendingAcquireRequests(y)})];case 1:return[2,E.sent()]}})})},p.prototype.purge=function(g){return n(this,void 0,void 0,function(){return i(this,function(y){switch(y.label){case 0:return[4,this._purgeKey(g.asKey())];case 1:return[2,y.sent()]}})})},p.prototype.apply=function(g,y){var b=g.asKey();b in this._pools&&this._pools[b].apply(y)},p.prototype.close=function(){return n(this,void 0,void 0,function(){var g=this;return i(this,function(y){switch(y.label){case 0:return this._closed=!0,[4,Promise.all(Object.keys(this._pools).map(function(b){return n(g,void 0,void 0,function(){return i(this,function(_){switch(_.label){case 0:return[4,this._purgeKey(b)];case 1:return[2,_.sent()]}})})})).then()];case 1:return[2,y.sent()]}})})},p.prototype.keepAll=function(g){return n(this,void 0,void 0,function(){var y,b,_,m=this;return i(this,function(x){switch(x.label){case 0:return y=g.map(function(E){return E.asKey()}),b=Object.keys(this._pools),_=b.filter(function(E){return!y.includes(E)}),[4,Promise.all(_.map(function(E){return n(m,void 0,void 0,function(){return i(this,function(O){switch(O.label){case 0:return[4,this._purgeKey(E)];case 1:return[2,O.sent()]}})})})).then()];case 1:return[2,x.sent()]}})})},p.prototype.has=function(g){return g.asKey()in this._pools},p.prototype.activeResourceCount=function(g){var y;return(y=this._activeResourceCounts[g.asKey()])!==null&&y!==void 0?y:0},p.prototype._getOrInitializePoolFor=function(g){var y=this._pools[g];return y==null&&(y=new h,this._pools[g]=y,this._pendingCreates[g]=0),y},p.prototype._acquire=function(g,y,b){return n(this,void 0,void 0,function(){var _,m,x,E,O,S,T,P=this;return i(this,function(I){switch(I.label){case 0:if(this._closed)throw(0,s.newError)("Pool is closed, it is no more able to serve requests.");if(_=y.asKey(),m=this._getOrInitializePoolFor(_),b)return[3,10];I.label=1;case 1:if(!(m.length>0))return[3,10];if((x=m.pop())==null)return[3,1];c(_,this._activeResourceCounts),this._removeIdleObserver!=null&&this._removeIdleObserver(x),E=!1,I.label=2;case 2:return I.trys.push([2,4,,6]),[4,this._validateOnAcquire(g,x)];case 3:return E=I.sent(),[3,6];case 4:return O=I.sent(),f(_,this._activeResourceCounts),m.removeInUse(x),[4,this._destroy(x)];case 5:throw I.sent(),O;case 6:return E?(this._log.isDebugEnabled()&&this._log.debug("".concat(x," acquired from the pool ").concat(_)),[2,{resource:x,pool:m}]):[3,7];case 7:return f(_,this._activeResourceCounts),m.removeInUse(x),[4,this._destroy(x)];case 8:I.sent(),I.label=9;case 9:return[3,1];case 10:if(this._maxSize>0&&this.activeResourceCount(y)+this._pendingCreates[_]>=this._maxSize)return[2,{resource:null,pool:m}];this._pendingCreates[_]=this._pendingCreates[_]+1,I.label=11;case 11:return I.trys.push([11,,15,16]),this.activeResourceCount(y)+m.length>=this._maxSize&&b?(T=m.pop())==null?[3,13]:(this._removeIdleObserver!=null&&this._removeIdleObserver(T),m.removeInUse(T),[4,this._destroy(T)]):[3,13];case 12:I.sent(),I.label=13;case 13:return[4,this._create(g,y,function(k,L){return n(P,void 0,void 0,function(){return i(this,function(B){switch(B.label){case 0:return[4,this._release(k,L,m)];case 1:return[2,B.sent()]}})})})];case 14:return S=I.sent(),m.pushInUse(S),c(_,this._activeResourceCounts),this._log.isDebugEnabled()&&this._log.debug("".concat(S," created for the pool ").concat(_)),[3,16];case 15:return this._pendingCreates[_]=this._pendingCreates[_]-1,[7];case 16:return[2,{resource:S,pool:m}]}})})},p.prototype._release=function(g,y,b){return n(this,void 0,void 0,function(){var _,m=this;return i(this,function(x){switch(x.label){case 0:_=g.asKey(),x.label=1;case 1:return x.trys.push([1,,9,10]),b.isActive()?[4,this._validateOnRelease(y)]:[3,6];case 2:return x.sent()?[3,4]:(this._log.isDebugEnabled()&&this._log.debug("".concat(y," destroyed and can't be released to the pool ").concat(_," because it is not functional")),b.removeInUse(y),[4,this._destroy(y)]);case 3:return x.sent(),[3,5];case 4:this._installIdleObserver!=null&&this._installIdleObserver(y,{onError:function(E){m._log.debug("Idle connection ".concat(y," destroyed because of error: ").concat(E));var O=m._pools[_];O!=null&&(m._pools[_]=O.filter(function(S){return S!==y}),O.removeInUse(y)),m._destroy(y).catch(function(){})}}),b.push(y),this._log.isDebugEnabled()&&this._log.debug("".concat(y," released to the pool ").concat(_)),x.label=5;case 5:return[3,8];case 6:return this._log.isDebugEnabled()&&this._log.debug("".concat(y," destroyed and can't be released to the pool ").concat(_," because pool has been purged")),b.removeInUse(y),[4,this._destroy(y)];case 7:x.sent(),x.label=8;case 8:return[3,10];case 9:return f(_,this._activeResourceCounts),this._processPendingAcquireRequests(g),[7];case 10:return[2]}})})},p.prototype._purgeKey=function(g){return n(this,void 0,void 0,function(){var y,b,_;return i(this,function(m){switch(m.label){case 0:if(y=this._pools[g],b=[],y==null)return[3,2];for(;y.length>0;)(_=y.pop())!=null&&(this._removeIdleObserver!=null&&this._removeIdleObserver(_),b.push(this._destroy(_)));return y.close(),delete this._pools[g],[4,Promise.all(b)];case 1:m.sent(),m.label=2;case 2:return[2]}})})},p.prototype._processPendingAcquireRequests=function(g){var y=this,b=g.asKey(),_=this._acquireRequests[b];if(_!=null){var m=_.shift();m!=null?this._acquire(m.context,g,m.requireNew).catch(function(x){return m.reject(x),{resource:null,pool:null}}).then(function(x){var E=x.resource,O=x.pool;E!=null&&O!=null?m.isCompleted()?y._release(g,E,O).catch(function(S){y._log.isDebugEnabled()&&y._log.debug("".concat(E," could not be release back to the pool. Cause: ").concat(S))}):m.resolve(E):m.isCompleted()||(y._acquireRequests[b]==null&&(y._acquireRequests[b]=[]),y._acquireRequests[b].unshift(m))}).catch(function(x){return m.reject(x)}):delete this._acquireRequests[b]}},p})();function c(p,g){var y,b=(y=g[p])!==null&&y!==void 0?y:0;g[p]=b+1}function f(p,g){var y,b=((y=g[p])!==null&&y!==void 0?y:0)-1;b>0?g[p]=b:delete g[p]}var d=(function(){function p(g,y,b,_,m,x,E){this._key=g,this._context=y,this._resolve=_,this._reject=m,this._timeoutId=x,this._log=E,this._completed=!1,this._config=b??{}}return Object.defineProperty(p.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"requireNew",{get:function(){var g;return(g=this._config.requireNew)!==null&&g!==void 0&&g},enumerable:!1,configurable:!0}),p.prototype.isCompleted=function(){return this._completed},p.prototype.resolve=function(g){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._log.isDebugEnabled()&&this._log.debug("".concat(g," acquired from the pool ").concat(this._key)),this._resolve(g))},p.prototype.reject=function(g){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._reject(g))},p})(),h=(function(){function p(){this._active=!0,this._elements=[],this._elementsInUse=new Set}return p.prototype.isActive=function(){return this._active},p.prototype.close=function(){this._active=!1,this._elements=[],this._elementsInUse=new Set},p.prototype.filter=function(g){return this._elements=this._elements.filter(g),this},p.prototype.apply=function(g){this._elements.forEach(g),this._elementsInUse.forEach(g)},Object.defineProperty(p.prototype,"length",{get:function(){return this._elements.length},enumerable:!1,configurable:!0}),p.prototype.pop=function(){var g=this._elements.pop();return g!=null&&this._elementsInUse.add(g),g},p.prototype.push=function(g){return this._elementsInUse.delete(g),this._elements.push(g)},p.prototype.pushInUse=function(g){this._elementsInUse.add(g)},p.prototype.removeInUse=function(g){this._elementsInUse.delete(g)},p})();e.default=l},6872:function(r,e){var t=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.InternalConfig=e.Config=void 0;var n=function(){this.encrypted=void 0,this.trust=void 0,this.trustedCertificates=[],this.maxConnectionPoolSize=100,this.maxConnectionLifetime=36e5,this.connectionAcquisitionTimeout=6e4,this.maxTransactionRetryTime=3e4,this.connectionLivenessCheckTimeout=void 0,this.connectionTimeout=3e4,this.disableLosslessIntegers=!1,this.useBigInt=!1,this.logging=void 0,this.resolver=void 0,this.notificationFilter=void 0,this.userAgent=void 0,this.telemetryDisabled=!1,this.clientCertificate=void 0};e.Config=n;var i=(function(a){function o(){return a!==null&&a.apply(this,arguments)||this}return t(o,a),o})(n);e.InternalConfig=i},6890:function(r,e,t){var n=this&&this.__extends||(function(){var d=function(h,p){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])},d(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function g(){this.constructor=h}d(h,p),h.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(d){for(var h,p=1,g=arguments.length;p{Object.defineProperty(e,"__esModule",{value:!0}),e.lastValueFrom=void 0;var n=t(2823);e.lastValueFrom=function(i,a){var o=typeof a=="object";return new Promise(function(s,u){var l,c=!1;i.subscribe({next:function(f){l=f,c=!0},error:u,complete:function(){c?s(l):o?s(a.defaultValue):u(new n.EmptyError)}})})}},6902:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.flatMap=void 0;var n=t(983);e.flatMap=n.mergeMap},6931:r=>{r.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]}},6985:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleArray=void 0;var n=t(4662);e.scheduleArray=function(i,a){return new n.Observable(function(o){var s=0;return a.schedule(function(){s===i.length?o.complete():(o.next(i[s++]),o.closed||this.schedule())})})}},6995:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(E,O,S,T){T===void 0&&(T=S);var P=Object.getOwnPropertyDescriptor(O,S);P&&!("get"in P?!O.__esModule:P.writable||P.configurable)||(P={enumerable:!0,get:function(){return O[S]}}),Object.defineProperty(E,T,P)}:function(E,O,S,T){T===void 0&&(T=S),E[T]=O[S]}),i=this&&this.__setModuleDefault||(Object.create?function(E,O){Object.defineProperty(E,"default",{enumerable:!0,value:O})}:function(E,O){E.default=O}),a=this&&this.__importStar||function(E){if(E&&E.__esModule)return E;var O={};if(E!=null)for(var S in E)S!=="default"&&Object.prototype.hasOwnProperty.call(E,S)&&n(O,E,S);return i(O,E),O};Object.defineProperty(e,"__esModule",{value:!0}),e.pool=e.boltAgent=e.objectUtil=e.resolver=e.serverAddress=e.urlUtil=e.logger=e.transactionExecutor=e.txConfig=e.connectionHolder=e.constants=e.bookmarks=e.observer=e.temporalUtil=e.util=void 0;var o=a(t(6587));e.util=o;var s=a(t(5022));e.temporalUtil=s;var u=a(t(2696));e.observer=u;var l=a(t(9730));e.bookmarks=l;var c=a(t(326));e.constants=c;var f=a(t(3618));e.connectionHolder=f;var d=a(t(754));e.txConfig=d;var h=a(t(6189));e.transactionExecutor=h;var p=a(t(4883));e.logger=p;var g=a(t(407));e.urlUtil=g;var y=a(t(7509));e.serverAddress=y;var b=a(t(9470));e.resolver=b;var _=a(t(93));e.objectUtil=_;var m=a(t(3488));e.boltAgent=m;var x=a(t(2906));e.pool=x},7021:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNATURES=void 0;var n=t(9305),i=n.internal.constants,a=i.ACCESS_MODE_READ,o=i.FETCH_ALL,s=n.internal.util.assertString,u=Object.freeze({INIT:1,RESET:15,RUN:16,PULL_ALL:63,HELLO:1,GOODBYE:2,BEGIN:17,COMMIT:18,ROLLBACK:19,TELEMETRY:84,ROUTE:102,LOGON:106,LOGOFF:107,DISCARD:47,PULL:63});e.SIGNATURES=u;var l=(function(){function m(x,E,O){this.signature=x,this.fields=E,this.toString=O}return m.init=function(x,E){return new m(1,[x,E],function(){return"INIT ".concat(x," {...}")})},m.run=function(x,E){return new m(16,[x,E],function(){return"RUN ".concat(x," ").concat(n.json.stringify(E))})},m.pullAll=function(){return p},m.reset=function(){return g},m.hello=function(x,E,O,S){O===void 0&&(O=null),S===void 0&&(S=null);var T=Object.assign({user_agent:x},E);return O&&(T.routing=O),S&&(T.patch_bolt=S),new m(1,[T],function(){return"HELLO {user_agent: '".concat(x,"', ...}")})},m.hello5x1=function(x,E){E===void 0&&(E=null);var O={user_agent:x};return E&&(O.routing=E),new m(1,[O],function(){return"HELLO {user_agent: '".concat(x,"', ...}")})},m.hello5x2=function(x,E,O){E===void 0&&(E=null),O===void 0&&(O=null);var S={user_agent:x};return d(S,E),O&&(S.routing=O),new m(1,[S],function(){return"HELLO ".concat(n.json.stringify(S))})},m.hello5x3=function(x,E,O,S){O===void 0&&(O=null),S===void 0&&(S=null);var T={};return x&&(T.user_agent=x),E&&(T.bolt_agent={product:E.product,platform:E.platform,language:E.language,language_details:E.languageDetails}),d(T,O),S&&(T.routing=S),new m(1,[T],function(){return"HELLO ".concat(n.json.stringify(T))})},m.hello5x5=function(x,E,O,S){O===void 0&&(O=null),S===void 0&&(S=null);var T={};return x&&(T.user_agent=x),E&&(T.bolt_agent={product:E.product,platform:E.platform,language:E.language,language_details:E.languageDetails}),h(T,O),S&&(T.routing=S),new m(1,[T],function(){return"HELLO ".concat(n.json.stringify(T))})},m.logon=function(x){return new m(106,[x],function(){return"LOGON { ... }"})},m.logoff=function(){return new m(107,[],function(){return"LOGOFF"})},m.begin=function(x){var E=x===void 0?{}:x,O=c(E.bookmarks,E.txConfig,E.database,E.mode,E.impersonatedUser,E.notificationFilter);return new m(17,[O],function(){return"BEGIN ".concat(n.json.stringify(O))})},m.begin5x5=function(x){var E=x===void 0?{}:x,O=c(E.bookmarks,E.txConfig,E.database,E.mode,E.impersonatedUser,E.notificationFilter,{appendNotificationFilter:h});return new m(17,[O],function(){return"BEGIN ".concat(n.json.stringify(O))})},m.commit=function(){return y},m.rollback=function(){return b},m.runWithMetadata=function(x,E,O){var S=O===void 0?{}:O,T=c(S.bookmarks,S.txConfig,S.database,S.mode,S.impersonatedUser,S.notificationFilter);return new m(16,[x,E,T],function(){return"RUN ".concat(x," ").concat(n.json.stringify(E)," ").concat(n.json.stringify(T))})},m.runWithMetadata5x5=function(x,E,O){var S=O===void 0?{}:O,T=c(S.bookmarks,S.txConfig,S.database,S.mode,S.impersonatedUser,S.notificationFilter,{appendNotificationFilter:h});return new m(16,[x,E,T],function(){return"RUN ".concat(x," ").concat(n.json.stringify(E)," ").concat(n.json.stringify(T))})},m.goodbye=function(){return _},m.pull=function(x){var E=x===void 0?{}:x,O=E.stmtId,S=O===void 0?-1:O,T=E.n,P=f(S??-1,(T===void 0?o:T)||o);return new m(63,[P],function(){return"PULL ".concat(n.json.stringify(P))})},m.discard=function(x){var E=x===void 0?{}:x,O=E.stmtId,S=O===void 0?-1:O,T=E.n,P=f(S??-1,(T===void 0?o:T)||o);return new m(47,[P],function(){return"DISCARD ".concat(n.json.stringify(P))})},m.telemetry=function(x){var E=x.api,O=(0,n.int)(E);return new m(84,[O],function(){return"TELEMETRY ".concat(O.toString())})},m.route=function(x,E,O){return x===void 0&&(x={}),E===void 0&&(E=[]),O===void 0&&(O=null),new m(102,[x,E,O],function(){return"ROUTE ".concat(n.json.stringify(x)," ").concat(n.json.stringify(E)," ").concat(O)})},m.routeV4x4=function(x,E,O){x===void 0&&(x={}),E===void 0&&(E=[]),O===void 0&&(O={});var S={};return O.databaseName&&(S.db=O.databaseName),O.impersonatedUser&&(S.imp_user=O.impersonatedUser),new m(102,[x,E,S],function(){return"ROUTE ".concat(n.json.stringify(x)," ").concat(n.json.stringify(E)," ").concat(n.json.stringify(S))})},m})();function c(m,x,E,O,S,T,P){var I;P===void 0&&(P={});var k={};return m.isEmpty()||(k.bookmarks=m.values()),x.timeout!==null&&(k.tx_timeout=x.timeout),x.metadata&&(k.tx_metadata=x.metadata),E&&(k.db=s(E,"database")),S&&(k.imp_user=s(S,"impersonatedUser")),O===a&&(k.mode="r"),((I=P.appendNotificationFilter)!==null&&I!==void 0?I:d)(k,T),k}function f(m,x){var E={n:(0,n.int)(x)};return m!==-1&&(E.qid=(0,n.int)(m)),E}function d(m,x){x&&(x.minimumSeverityLevel&&(m.notifications_minimum_severity=x.minimumSeverityLevel),x.disabledCategories&&(m.notifications_disabled_categories=x.disabledCategories),x.disabledClassifications&&(m.notifications_disabled_categories=x.disabledClassifications))}function h(m,x){x&&(x.minimumSeverityLevel&&(m.notifications_minimum_severity=x.minimumSeverityLevel),x.disabledCategories&&(m.notifications_disabled_classifications=x.disabledCategories),x.disabledClassifications&&(m.notifications_disabled_classifications=x.disabledClassifications))}e.default=l;var p=new l(63,[],function(){return"PULL_ALL"}),g=new l(15,[],function(){return"RESET"}),y=new l(18,[],function(){return"COMMIT"}),b=new l(19,[],function(){return"ROLLBACK"}),_=new l(2,[],function(){return"GOODBYE"})},7041:function(r,e,t){var n=this&&this.__awaiter||function(s,u,l,c){return new(l||(l=Promise))(function(f,d){function h(y){try{g(c.next(y))}catch(b){d(b)}}function p(y){try{g(c.throw(y))}catch(b){d(b)}}function g(y){var b;y.done?f(y.value):(b=y.value,b instanceof l?b:new l(function(_){_(b)})).then(h,p)}g((c=c.apply(s,u||[])).next())})},i=this&&this.__generator||function(s,u){var l,c,f,d,h={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return d={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(g){return function(y){return(function(b){if(l)throw new TypeError("Generator is already executing.");for(;d&&(d=0,b[0]&&(h=0)),h;)try{if(l=1,c&&(f=2&b[0]?c.return:b[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,b[1])).done)return f;switch(c=0,f&&(b=[2&b[0],f.value]),b[0]){case 0:case 1:f=b;break;case 4:return h.label++,{value:b[1],done:!1};case 5:h.label++,c=b[1],b=[0];continue;case 7:b=h.ops.pop(),h.trys.pop();continue;default:if(!((f=(f=h.trys).length>0&&f[f.length-1])||b[0]!==6&&b[0]!==2)){h=0;continue}if(b[0]===3&&(!f||b[1]>f[0]&&b[1]{var n=t(3206);r.exports=function(i,a){var o=n(a),s=[];return(s=s.concat(o(i))).concat(o(null))}},7057:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ArgumentOutOfRangeError=void 0;var n=t(5568);e.ArgumentOutOfRangeError=n.createErrorClass(function(i){return function(){i(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},7093:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isPoint=e.Point=void 0;var n=t(6587),i="__isPoint__",a=(function(){function s(u,l,c,f){this.srid=(0,n.assertNumberOrInteger)(u,"SRID"),this.x=(0,n.assertNumber)(l,"X coordinate"),this.y=(0,n.assertNumber)(c,"Y coordinate"),this.z=f==null?f:(0,n.assertNumber)(f,"Z coordinate"),Object.freeze(this)}return s.prototype.toString=function(){return this.z==null||isNaN(this.z)?"Point{srid=".concat(o(this.srid),", x=").concat(o(this.x),", y=").concat(o(this.y),"}"):"Point{srid=".concat(o(this.srid),", x=").concat(o(this.x),", y=").concat(o(this.y),", z=").concat(o(this.z),"}")},s})();function o(s){return Number.isInteger(s)?s.toString()+".0":s.toString()}e.Point=a,Object.defineProperty(a.prototype,i,{value:!0,enumerable:!1,configurable:!1,writable:!1}),e.isPoint=function(s){return s!=null&&s[i]===!0}},7101:r=>{r.exports=function(e){return!(!e||typeof e=="string")&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String"))}},7110:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.executeSchedule=void 0,e.executeSchedule=function(t,n,i,a,o){a===void 0&&(a=0),o===void 0&&(o=!1);var s=n.schedule(function(){i(),o?t.add(this.schedule(null,a)):this.unsubscribe()},a);if(t.add(s),!o)return s}},7168:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(l,c,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(c,f);h&&!("get"in h?!c.__esModule:h.writable||h.configurable)||(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,d,h)}:function(l,c,f,d){d===void 0&&(d=f),l[d]=c[f]}),i=this&&this.__setModuleDefault||(Object.create?function(l,c){Object.defineProperty(l,"default",{enumerable:!0,value:c})}:function(l,c){l.default=c}),a=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)&&n(c,l,f);return i(c,l),c};Object.defineProperty(e,"__esModule",{value:!0}),e.structure=e.v2=e.v1=void 0;var o=a(t(5361));e.v1=o;var s=a(t(2072));e.v2=s;var u=a(t(7665));e.structure=u,e.default=s},7174:function(r,e,t){var n=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseBuffer=void 0;var i=n(t(45));e.BaseBuffer=i.default,e.default=i.default},7192:r=>{r.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7210:function(r,e,t){var n=this&&this.__values||function(f){var d=typeof Symbol=="function"&&Symbol.iterator,h=d&&f[d],p=0;if(h)return h.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&p>=f.length&&(f=void 0),{value:f&&f[p++],done:!f}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferTime=void 0;var i=t(8014),a=t(7843),o=t(3111),s=t(7479),u=t(7961),l=t(1107),c=t(7110);e.bufferTime=function(f){for(var d,h,p=[],g=1;g=0?c.executeSchedule(x,y,T,b,!0):O=!0,T();var P=o.createOperatorSubscriber(x,function(I){var k,L,B=E.slice();try{for(var j=n(B),z=j.next();!z.done;z=j.next()){var H=z.value,q=H.buffer;q.push(I),_<=q.length&&S(H)}}catch(W){k={error:W}}finally{try{z&&!z.done&&(L=j.return)&&L.call(j)}finally{if(k)throw k.error}}},function(){for(;E!=null&&E.length;)x.next(E.shift().buffer);P==null||P.unsubscribe(),x.complete(),x.unsubscribe()},void 0,function(){return E=null});m.subscribe(P)})}},7220:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.publishBehavior=void 0;var n=t(1637),i=t(8918);e.publishBehavior=function(a){return function(o){var s=new n.BehaviorSubject(a);return new i.ConnectableObservable(o,function(){return s})}}},7245:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TestTools=e.Immediate=void 0;var t,n=1,i={};function a(o){return o in i&&(delete i[o],!0)}e.Immediate={setImmediate:function(o){var s=n++;return i[s]=!0,t||(t=Promise.resolve()),t.then(function(){return a(s)&&o()}),s},clearImmediate:function(o){a(o)}},e.TestTools={pending:function(){return Object.keys(i).length}}},7264:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(I){for(var k,L=1,B=arguments.length;L0&&j[j.length-1])||J[0]!==6&&J[0]!==2)){H=0;continue}if(J[0]===3&&(!j||J[1]>j[0]&&J[1]0||L===0?L:L<0?Number.MAX_SAFE_INTEGER:k}function P(I,k){var L=parseInt(I,10);if(L>0||L===l.FETCH_ALL)return L;if(L===0||L<0)throw new Error("The fetch size can only be a positive value or ".concat(l.FETCH_ALL," for ALL. However fetchSize = ").concat(L));return k}e.Driver=S,e.default=S},7286:function(r,e,t){var n=this&&this.__read||function(f,d){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var p,g,y=h.call(f),b=[];try{for(;(d===void 0||d-- >0)&&!(p=y.next()).done;)b.push(p.value)}catch(_){g={error:_}}finally{try{p&&!p.done&&(h=y.return)&&h.call(y)}finally{if(g)throw g.error}}return b},i=this&&this.__spreadArray||function(f,d){for(var h=0,p=d.length,g=f.length;h{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAll=void 0;var n=t(983),i=t(6640);e.mergeAll=function(a){return a===void 0&&(a=1/0),n.mergeMap(i.identity,a)}},7315:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reportUnhandledError=void 0;var n=t(3413),i=t(9155);e.reportUnhandledError=function(a){i.timeoutProvider.setTimeout(function(){var o=n.config.onUnhandledError;if(!o)throw a;o(a)})}},7331:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.argsArgArrayOrObject=void 0;var t=Array.isArray,n=Object.getPrototypeOf,i=Object.prototype,a=Object.keys;e.argsArgArrayOrObject=function(o){if(o.length===1){var s=o[0];if(t(s))return{args:s,keys:null};if((l=s)&&typeof l=="object"&&n(l)===i){var u=a(s);return{args:u.map(function(c){return s[c]}),keys:u}}}var l;return{args:o,keys:null}}},7372:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.skipUntil=void 0;var n=t(7843),i=t(3111),a=t(9445),o=t(1342);e.skipUntil=function(s){return n.operate(function(u,l){var c=!1,f=i.createOperatorSubscriber(l,function(){f==null||f.unsubscribe(),c=!0},o.noop);a.innerFrom(s).subscribe(f),u.subscribe(i.createOperatorSubscriber(l,function(d){return c&&l.next(d)}))})}},7428:function(r,e,t){var n=this&&this.__extends||(function(){var ce=function(pe,fe){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,de){se.__proto__=de}||function(se,de){for(var ge in de)Object.prototype.hasOwnProperty.call(de,ge)&&(se[ge]=de[ge])},ce(pe,fe)};return function(pe,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");function se(){this.constructor=pe}ce(pe,fe),pe.prototype=fe===null?Object.create(fe):(se.prototype=fe.prototype,new se)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(ce){for(var pe,fe=1,se=arguments.length;fe0&&de[de.length-1])||Ce[0]!==6&&Ce[0]!==2)){Oe=0;continue}if(Ce[0]===3&&(!de||Ce[1]>de[0]&&Ce[1]=ce.length&&(ce=void 0),{value:ce&&ce[se++],done:!ce}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(ce,pe){var fe=typeof Symbol=="function"&&ce[Symbol.iterator];if(!fe)return ce;var se,de,ge=fe.call(ce),Oe=[];try{for(;(pe===void 0||pe-- >0)&&!(se=ge.next()).done;)Oe.push(se.value)}catch(ke){de={error:ke}}finally{try{se&&!se.done&&(fe=ge.return)&&fe.call(ge)}finally{if(de)throw de.error}}return Oe},d=this&&this.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(e,"__esModule",{value:!0});var h=t(9305),p=s(t(206)),g=t(7452),y=d(t(4132)),b=d(t(8987)),_=t(4455),m=t(7721),x=t(6781),E=h.error.SERVICE_UNAVAILABLE,O=h.error.SESSION_EXPIRED,S=h.internal.bookmarks.Bookmarks,T=h.internal.constants,P=T.ACCESS_MODE_READ,I=T.ACCESS_MODE_WRITE,k=T.BOLT_PROTOCOL_V3,L=T.BOLT_PROTOCOL_V4_0,B=T.BOLT_PROTOCOL_V4_4,j=T.BOLT_PROTOCOL_V5_1,z="Neo.ClientError.Database.DatabaseNotFound",H="Neo.ClientError.Transaction.InvalidBookmark",q="Neo.ClientError.Transaction.InvalidBookmarkMixture",W="Neo.ClientError.Security.AuthorizationExpired",$="Neo.ClientError.Statement.ArgumentError",J="Neo.ClientError.Request.Invalid",X="Neo.ClientError.Statement.TypeError",Z="N/A",ue=null,re=(0,h.int)(3e4),ne=(function(ce){function pe(fe){var se=fe.id,de=fe.address,ge=fe.routingContext,Oe=fe.hostNameResolver,ke=fe.config,De=fe.log,Ne=fe.userAgent,Ce=fe.boltAgent,Y=fe.authTokenManager,Q=fe.routingTablePurgeDelay,ie=fe.newPool,we=ce.call(this,{id:se,config:ke,log:De,userAgent:Ne,boltAgent:Ce,authTokenManager:Y,newPool:ie},function(Ee){return u(we,void 0,void 0,function(){var Me,Ie;return l(this,function(Ye){switch(Ye.label){case 0:return Me=m.createChannelConnection,Ie=[Ee,this._config,this._createConnectionErrorHandler(),this._log],[4,this._clientCertificateHolder.getClientCertificate()];case 1:return[2,Me.apply(void 0,Ie.concat([Ye.sent(),this._routingContext,this._channelSsrCallback.bind(this)]))]}})})})||this;return we._routingContext=i(i({},ge),{address:de.toString()}),we._seedRouter=de,we._rediscovery=new p.default(we._routingContext),we._loadBalancingStrategy=new _.LeastConnectedLoadBalancingStrategy(we._connectionPool),we._hostNameResolver=Oe,we._dnsResolver=new g.HostNameResolver,we._log=De,we._useSeedRouter=!0,we._routingTableRegistry=new le(Q?(0,h.int)(Q):re),we._refreshRoutingTable=x.functional.reuseOngoingRequest(we._refreshRoutingTable,we),we._withSSR=0,we._withoutSSR=0,we}return n(pe,ce),pe.prototype._createConnectionErrorHandler=function(){return new m.ConnectionErrorHandler(O)},pe.prototype._handleUnavailability=function(fe,se,de){return this._log.warn("Routing driver ".concat(this._id," will forget ").concat(se," for database '").concat(de,"' because of an error ").concat(fe.code," '").concat(fe.message,"'")),this.forget(se,de||ue),fe},pe.prototype._handleSecurityError=function(fe,se,de,ge){return this._log.warn("Routing driver ".concat(this._id," will close connections to ").concat(se," for database '").concat(ge,"' because of an error ").concat(fe.code," '").concat(fe.message,"'")),ce.prototype._handleSecurityError.call(this,fe,se,de,ge)},pe.prototype._handleWriteFailure=function(fe,se,de){return this._log.warn("Routing driver ".concat(this._id," will forget writer ").concat(se," for database '").concat(de,"' because of an error ").concat(fe.code," '").concat(fe.message,"'")),this.forgetWriter(se,de||ue),(0,h.newError)("No longer possible to write to server at "+se,O,fe)},pe.prototype.acquireConnection=function(fe){var se=fe===void 0?{}:fe,de=se.accessMode,ge=se.database,Oe=se.bookmarks,ke=se.impersonatedUser,De=se.onDatabaseNameResolved,Ne=se.auth,Ce=se.homeDb;return u(this,void 0,void 0,function(){var Y,Q,ie,we,Ee,Me=this;return l(this,function(Ie){switch(Ie.label){case 0:return Y={database:ge||ue},Q=new m.ConnectionErrorHandler(O,function(Ye,ot){return Me._handleUnavailability(Ye,ot,Y.database)},function(Ye,ot){return Me._handleWriteFailure(Ye,ot,Ce??Y.database)},function(Ye,ot,mt){return Me._handleSecurityError(Ye,ot,mt,Y.database)}),this.SSREnabled()&&Ce!==void 0&&ge===""?!(we=this._routingTableRegistry.get(Ce,function(){return new p.RoutingTable({database:Ce})}))||we.isStaleFor(de)?[3,2]:[4,this.getConnectionFromRoutingTable(we,Ne,de,Q)]:[3,2];case 1:if(ie=Ie.sent(),this.SSREnabled())return[2,ie];ie.release(),Ie.label=2;case 2:return[4,this._freshRoutingTable({accessMode:de,database:Y.database,bookmarks:Oe,impersonatedUser:ke,auth:Ne,onDatabaseNameResolved:function(Ye){Y.database=Y.database||Ye,De&&De(Ye)}})];case 3:return Ee=Ie.sent(),[2,this.getConnectionFromRoutingTable(Ee,Ne,de,Q)]}})})},pe.prototype.getConnectionFromRoutingTable=function(fe,se,de,ge){return u(this,void 0,void 0,function(){var Oe,ke,De,Ne;return l(this,function(Ce){switch(Ce.label){case 0:if(de===P)ke=this._loadBalancingStrategy.selectReader(fe.readers),Oe="read";else{if(de!==I)throw(0,h.newError)("Illegal mode "+de);ke=this._loadBalancingStrategy.selectWriter(fe.writers),Oe="write"}if(!ke)throw(0,h.newError)("Failed to obtain connection towards ".concat(Oe," server. Known routing table is: ").concat(fe),O);Ce.label=1;case 1:return Ce.trys.push([1,5,,6]),[4,this._connectionPool.acquire({auth:se},ke)];case 2:return De=Ce.sent(),se?[4,this._verifyStickyConnection({auth:se,connection:De,address:ke})]:[3,4];case 3:return Ce.sent(),[2,De];case 4:return[2,new m.DelegateConnection(De,ge)];case 5:throw Ne=Ce.sent(),ge.handleAndTransformError(Ne,ke);case 6:return[2]}})})},pe.prototype._hasProtocolVersion=function(fe){return u(this,void 0,void 0,function(){var se,de,ge,Oe,ke,De;return l(this,function(Ne){switch(Ne.label){case 0:return[4,this._resolveSeedRouter(this._seedRouter)];case 1:se=Ne.sent(),ge=0,Ne.label=2;case 2:if(!(ge=L})];case 1:return[2,fe.sent()]}})})},pe.prototype.supportsTransactionConfig=function(){return u(this,void 0,void 0,function(){return l(this,function(fe){switch(fe.label){case 0:return[4,this._hasProtocolVersion(function(se){return se>=k})];case 1:return[2,fe.sent()]}})})},pe.prototype.supportsUserImpersonation=function(){return u(this,void 0,void 0,function(){return l(this,function(fe){switch(fe.label){case 0:return[4,this._hasProtocolVersion(function(se){return se>=B})];case 1:return[2,fe.sent()]}})})},pe.prototype.supportsSessionAuth=function(){return u(this,void 0,void 0,function(){return l(this,function(fe){switch(fe.label){case 0:return[4,this._hasProtocolVersion(function(se){return se>=j})];case 1:return[2,fe.sent()]}})})},pe.prototype.getNegotiatedProtocolVersion=function(){var fe=this;return new Promise(function(se,de){fe._hasProtocolVersion(se).catch(de)})},pe.prototype.verifyAuthentication=function(fe){var se=fe.database,de=fe.accessMode,ge=fe.auth;return u(this,void 0,void 0,function(){var Oe=this;return l(this,function(ke){return[2,this._verifyAuthentication({auth:ge,getAddress:function(){return u(Oe,void 0,void 0,function(){var De,Ne,Ce;return l(this,function(Y){switch(Y.label){case 0:return De={database:se||ue},[4,this._freshRoutingTable({accessMode:de,database:De.database,auth:ge,onDatabaseNameResolved:function(Q){De.database=De.database||Q}})];case 1:if(Ne=Y.sent(),(Ce=de===I?Ne.writers:Ne.readers).length===0)throw(0,h.newError)("No servers available for database '".concat(De.database,"' with access mode '").concat(de,"'"),E);return[2,Ce[0]]}})})}})]})})},pe.prototype.verifyConnectivityAndGetServerInfo=function(fe){var se=fe.database,de=fe.accessMode;return u(this,void 0,void 0,function(){var ge,Oe,ke,De,Ne,Ce,Y,Q,ie,we,Ee;return l(this,function(Me){switch(Me.label){case 0:return ge={database:se||ue},[4,this._freshRoutingTable({accessMode:de,database:ge.database,onDatabaseNameResolved:function(Ie){ge.database=ge.database||Ie}})];case 1:Oe=Me.sent(),ke=de===I?Oe.writers:Oe.readers,De=(0,h.newError)("No servers available for database '".concat(ge.database,"' with access mode '").concat(de,"'"),E),Me.label=2;case 2:Me.trys.push([2,9,10,11]),Ne=c(ke),Ce=Ne.next(),Me.label=3;case 3:if(Ce.done)return[3,8];Y=Ce.value,Me.label=4;case 4:return Me.trys.push([4,6,,7]),[4,this._verifyConnectivityAndGetServerVersion({address:Y})];case 5:return[2,Me.sent()];case 6:return Q=Me.sent(),De=Q,[3,7];case 7:return Ce=Ne.next(),[3,3];case 8:return[3,11];case 9:return ie=Me.sent(),we={error:ie},[3,11];case 10:try{Ce&&!Ce.done&&(Ee=Ne.return)&&Ee.call(Ne)}finally{if(we)throw we.error}return[7];case 11:throw De}})})},pe.prototype.forget=function(fe,se){this._routingTableRegistry.apply(se,{applyWhenExists:function(de){return de.forget(fe)}}),this._connectionPool.purge(fe).catch(function(){})},pe.prototype.forgetWriter=function(fe,se){this._routingTableRegistry.apply(se,{applyWhenExists:function(de){return de.forgetWriter(fe)}})},pe.prototype._freshRoutingTable=function(fe){var se=fe===void 0?{}:fe,de=se.accessMode,ge=se.database,Oe=se.bookmarks,ke=se.impersonatedUser,De=se.onDatabaseNameResolved,Ne=se.auth,Ce=this._routingTableRegistry.get(ge,function(){return new p.RoutingTable({database:ge})});return Ce.isStaleFor(de)?(this._log.info('Routing table is stale for database: "'.concat(ge,'" and access mode: "').concat(de,'": ').concat(Ce)),this._refreshRoutingTable(Ce,Oe,ke,Ne).then(function(Y){return De(Y.database),Y})):Ce},pe.prototype._refreshRoutingTable=function(fe,se,de,ge){var Oe=fe.routers;return this._useSeedRouter?this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(Oe,fe,se,de,ge):this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(Oe,fe,se,de,ge)},pe.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters=function(fe,se,de,ge,Oe){return u(this,void 0,void 0,function(){var ke,De,Ne,Ce,Y,Q,ie;return l(this,function(we){switch(we.label){case 0:return ke=[],[4,this._fetchRoutingTableUsingSeedRouter(ke,this._seedRouter,se,de,ge,Oe)];case 1:return De=f.apply(void 0,[we.sent(),2]),Ne=De[0],Ce=De[1],Ne?(this._useSeedRouter=!1,[3,4]):[3,2];case 2:return[4,this._fetchRoutingTableUsingKnownRouters(fe,se,de,ge,Oe)];case 3:Y=f.apply(void 0,[we.sent(),2]),Q=Y[0],ie=Y[1],Ne=Q,Ce=ie||Ce,we.label=4;case 4:return[4,this._applyRoutingTableIfPossible(se,Ne,Ce)];case 5:return[2,we.sent()]}})})},pe.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter=function(fe,se,de,ge,Oe){return u(this,void 0,void 0,function(){var ke,De,Ne,Ce;return l(this,function(Y){switch(Y.label){case 0:return[4,this._fetchRoutingTableUsingKnownRouters(fe,se,de,ge,Oe)];case 1:return ke=f.apply(void 0,[Y.sent(),2]),De=ke[0],Ne=ke[1],De?[3,3]:[4,this._fetchRoutingTableUsingSeedRouter(fe,this._seedRouter,se,de,ge,Oe)];case 2:Ce=f.apply(void 0,[Y.sent(),2]),De=Ce[0],Ne=Ce[1],Y.label=3;case 3:return[4,this._applyRoutingTableIfPossible(se,De,Ne)];case 4:return[2,Y.sent()]}})})},pe.prototype._fetchRoutingTableUsingKnownRouters=function(fe,se,de,ge,Oe){return u(this,void 0,void 0,function(){var ke,De,Ne,Ce;return l(this,function(Y){switch(Y.label){case 0:return[4,this._fetchRoutingTable(fe,se,de,ge,Oe)];case 1:return ke=f.apply(void 0,[Y.sent(),2]),De=ke[0],Ne=ke[1],De?[2,[De,null]]:(Ce=fe.length-1,pe._forgetRouter(se,fe,Ce),[2,[null,Ne]])}})})},pe.prototype._fetchRoutingTableUsingSeedRouter=function(fe,se,de,ge,Oe,ke){return u(this,void 0,void 0,function(){var De,Ne;return l(this,function(Ce){switch(Ce.label){case 0:return[4,this._resolveSeedRouter(se)];case 1:return De=Ce.sent(),Ne=De.filter(function(Y){return fe.indexOf(Y)<0}),[4,this._fetchRoutingTable(Ne,de,ge,Oe,ke)];case 2:return[2,Ce.sent()]}})})},pe.prototype._resolveSeedRouter=function(fe){return u(this,void 0,void 0,function(){var se,de,ge=this;return l(this,function(Oe){switch(Oe.label){case 0:return[4,this._hostNameResolver.resolve(fe)];case 1:return se=Oe.sent(),[4,Promise.all(se.map(function(ke){return ge._dnsResolver.resolve(ke)}))];case 2:return de=Oe.sent(),[2,[].concat.apply([],de)]}})})},pe.prototype._fetchRoutingTable=function(fe,se,de,ge,Oe){return u(this,void 0,void 0,function(){var ke=this;return l(this,function(De){return[2,fe.reduce(function(Ne,Ce,Y){return u(ke,void 0,void 0,function(){var Q,ie,we,Ee,Me,Ie,Ye;return l(this,function(ot){switch(ot.label){case 0:return[4,Ne];case 1:return Q=f.apply(void 0,[ot.sent(),1]),(ie=Q[0])?[2,[ie,null]]:(we=Y-1,pe._forgetRouter(se,fe,we),[4,this._createSessionForRediscovery(Ce,de,ge,Oe)]);case 2:if(Ee=f.apply(void 0,[ot.sent(),2]),Me=Ee[0],Ie=Ee[1],!Me)return[3,8];ot.label=3;case 3:return ot.trys.push([3,5,6,7]),[4,this._rediscovery.lookupRoutingTableOnRouter(Me,se.database,Ce,ge)];case 4:return[2,[ot.sent(),null]];case 5:return Ye=ot.sent(),[2,this._handleRediscoveryError(Ye,Ce)];case 6:return Me.close(),[7];case 7:return[3,9];case 8:return[2,[null,Ie]];case 9:return[2]}})})},Promise.resolve([null,null]))]})})},pe.prototype._createSessionForRediscovery=function(fe,se,de,ge){return u(this,void 0,void 0,function(){var Oe,ke,De,Ne,Ce,Y=this;return l(this,function(Q){switch(Q.label){case 0:return Q.trys.push([0,4,,5]),[4,this._connectionPool.acquire({auth:ge},fe)];case 1:return Oe=Q.sent(),ge?[4,this._verifyStickyConnection({auth:ge,connection:Oe,address:fe})]:[3,3];case 2:Q.sent(),Q.label=3;case 3:return ke=m.ConnectionErrorHandler.create({errorCode:O,handleSecurityError:function(ie,we,Ee){return Y._handleSecurityError(ie,we,Ee)}}),De=Oe._sticky?new m.DelegateConnection(Oe):new m.DelegateConnection(Oe,ke),Ne=new y.default(De),Oe.protocol().version<4?[2,[new h.Session({mode:I,bookmarks:S.empty(),connectionProvider:Ne}),null]]:[2,[new h.Session({mode:P,database:"system",bookmarks:se,connectionProvider:Ne,impersonatedUser:de}),null]];case 4:return Ce=Q.sent(),[2,this._handleRediscoveryError(Ce,fe)];case 5:return[2]}})})},pe.prototype._handleRediscoveryError=function(fe,se){if((function(de){return[z,H,q,$,J,X,Z].includes(de.code)})(fe)||(function(de){var ge;return((ge=de.code)===null||ge===void 0?void 0:ge.startsWith("Neo.ClientError.Security."))&&![W].includes(de.code)})(fe))throw fe;if(fe.code==="Neo.ClientError.Procedure.ProcedureNotFound")throw(0,h.newError)("Server at ".concat(se.asHostPort()," can't perform routing. Make sure you are connecting to a causal cluster"),E,fe);return this._log.warn("unable to fetch routing table because of an error ".concat(fe)),[null,fe]},pe.prototype._applyRoutingTableIfPossible=function(fe,se,de){return u(this,void 0,void 0,function(){return l(this,function(ge){switch(ge.label){case 0:if(!se)throw(0,h.newError)("Could not perform discovery. No routing servers available. Known routing table: ".concat(fe),E,de);return se.writers.length===0&&(this._useSeedRouter=!0),[4,this._updateRoutingTable(se)];case 1:return ge.sent(),[2,se]}})})},pe.prototype._updateRoutingTable=function(fe){return u(this,void 0,void 0,function(){return l(this,function(se){switch(se.label){case 0:return[4,this._connectionPool.keepAll(fe.allServers())];case 1:return se.sent(),this._routingTableRegistry.removeExpired(),this._routingTableRegistry.register(fe),this._log.info("Updated routing table ".concat(fe)),[2]}})})},pe._forgetRouter=function(fe,se,de){var ge=se[de];fe&&ge&&fe.forgetRouter(ge)},pe.prototype._channelSsrCallback=function(fe,se){if(se==="OPEN")fe===!0?this._withSSR=this._withSSR+1:this._withoutSSR=this._withoutSSR+1;else{if(se!=="CLOSE")throw(0,h.newError)("Channel SSR Callback invoked with action other than 'OPEN' or 'CLOSE'");fe===!0?this._withSSR=this._withSSR-1:this._withoutSSR=this._withoutSSR-1}},pe.prototype.SSREnabled=function(){return this._withSSR>0&&this._withoutSSR===0},pe})(b.default);e.default=ne;var le=(function(){function ce(pe){this._tables=new Map,this._routingTablePurgeDelay=pe}return ce.prototype.register=function(pe){return this._tables.set(pe.database,pe),this},ce.prototype.apply=function(pe,fe){var se=fe===void 0?{}:fe,de=se.applyWhenExists,ge=se.applyWhenDontExists,Oe=ge===void 0?function(){}:ge;return this._tables.has(pe)?de(this._tables.get(pe)):typeof pe=="string"||pe===null?Oe():this._forEach(de),this},ce.prototype.get=function(pe,fe){return this._tables.has(pe)?this._tables.get(pe):typeof fe=="function"?fe():fe},ce.prototype.removeExpired=function(){var pe=this;return this._removeIf(function(fe){return fe.isExpiredFor(pe._routingTablePurgeDelay)})},ce.prototype._forEach=function(pe){var fe,se;try{for(var de=c(this._tables),ge=de.next();!ge.done;ge=de.next())pe(f(ge.value,2)[1])}catch(Oe){fe={error:Oe}}finally{try{ge&&!ge.done&&(se=de.return)&&se.call(de)}finally{if(fe)throw fe.error}}return this},ce.prototype._remove=function(pe){return this._tables.delete(pe),this},ce.prototype._removeIf=function(pe){var fe,se;try{for(var de=c(this._tables),ge=de.next();!ge.done;ge=de.next()){var Oe=f(ge.value,2),ke=Oe[0];pe(Oe[1])&&this._remove(ke)}}catch(De){fe={error:De}}finally{try{ge&&!ge.done&&(se=de.return)&&se.call(de)}finally{if(fe)throw fe.error}}return this},ce})()},7441:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dematerialize=void 0;var n=t(7800),i=t(7843),a=t(3111);e.dematerialize=function(){return i.operate(function(o,s){o.subscribe(a.createOperatorSubscriber(s,function(u){return n.observeNotification(u,s)}))})}},7449:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(c){for(var f,d=1,h=arguments.length;d0)&&!(h=g.next()).done;)y.push(h.value)}catch(b){p={error:b}}finally{try{h&&!h.done&&(d=g.return)&&d.call(g)}finally{if(p)throw p.error}}return y},a=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0});var o=t(7168),s=t(9305),u=a(t(7518)),l=a(t(5045));e.default=n(n(n({},u.default),l.default),{createNodeTransformer:function(c){return u.default.createNodeTransformer(c).extendsWith({fromStructure:function(f){o.structure.verifyStructSize("Node",4,f.size);var d=i(f.fields,4),h=d[0],p=d[1],g=d[2],y=d[3];return new s.Node(h,p,g,y)}})},createRelationshipTransformer:function(c){return u.default.createRelationshipTransformer(c).extendsWith({fromStructure:function(f){o.structure.verifyStructSize("Relationship",8,f.size);var d=i(f.fields,8),h=d[0],p=d[1],g=d[2],y=d[3],b=d[4],_=d[5],m=d[6],x=d[7];return new s.Relationship(h,p,g,y,b,_,m,x)}})},createUnboundRelationshipTransformer:function(c){return u.default.createUnboundRelationshipTransformer(c).extendsWith({fromStructure:function(f){o.structure.verifyStructSize("UnboundRelationship",4,f.size);var d=i(f.fields,4),h=d[0],p=d[1],g=d[2],y=d[3];return new s.UnboundRelationship(h,p,g,y)}})}})},7452:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(l,c,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(c,f);h&&!("get"in h?!c.__esModule:h.writable||h.configurable)||(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,d,h)}:function(l,c,f,d){d===void 0&&(d=f),l[d]=c[f]}),i=this&&this.__exportStar||function(l,c){for(var f in l)f==="default"||Object.prototype.hasOwnProperty.call(c,f)||n(c,l,f)},a=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.utf8=e.alloc=e.ChannelConfig=void 0,i(t(3951),e),i(t(373),e);var o=t(2481);Object.defineProperty(e,"ChannelConfig",{enumerable:!0,get:function(){return a(o).default}});var s=t(5319);Object.defineProperty(e,"alloc",{enumerable:!0,get:function(){return s.alloc}});var u=t(3473);Object.defineProperty(e,"utf8",{enumerable:!0,get:function(){return a(u).default}})},7479:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.arrRemove=void 0,e.arrRemove=function(t,n){if(t){var i=t.indexOf(n);0<=i&&t.splice(i,1)}}},7509:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(l,c,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(c,f);h&&!("get"in h?!c.__esModule:h.writable||h.configurable)||(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,d,h)}:function(l,c,f,d){d===void 0&&(d=f),l[d]=c[f]}),i=this&&this.__setModuleDefault||(Object.create?function(l,c){Object.defineProperty(l,"default",{enumerable:!0,value:c})}:function(l,c){l.default=c}),a=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)&&n(c,l,f);return i(c,l),c};Object.defineProperty(e,"__esModule",{value:!0}),e.ServerAddress=void 0;var o=t(6587),s=a(t(407)),u=(function(){function l(c,f,d,h){this._host=(0,o.assertString)(c,"host"),this._resolved=f!=null?(0,o.assertString)(f,"resolved"):null,this._port=(0,o.assertNumber)(d,"port"),this._hostPort=h,this._stringValue=f!=null?"".concat(h,"(").concat(f,")"):"".concat(h)}return l.prototype.host=function(){return this._host},l.prototype.resolvedHost=function(){return this._resolved!=null?this._resolved:this._host},l.prototype.port=function(){return this._port},l.prototype.resolveWith=function(c){return new l(this._host,c,this._port,this._hostPort)},l.prototype.asHostPort=function(){return this._hostPort},l.prototype.asKey=function(){return this._hostPort},l.prototype.toString=function(){return this._stringValue},l.fromUrl=function(c){var f=s.parseDatabaseUrl(c);return new l(f.host,null,f.port,f.hostAndPort)},l})();e.ServerAddress=u},7518:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.refCount=void 0;var n=t(7843),i=t(3111);e.refCount=function(){return n.operate(function(a,o){var s=null;a._refCount++;var u=i.createOperatorSubscriber(o,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount)s=null;else{var l=a._connection,c=s;s=null,!l||c&&l!==c||l.unsubscribe(),o.unsubscribe()}});a.subscribe(u),u.closed||(s=a.connect())})}},7579:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.connectable=void 0;var n=t(2483),i=t(4662),a=t(9353),o={connector:function(){return new n.Subject},resetOnDisconnect:!0};e.connectable=function(s,u){u===void 0&&(u=o);var l=null,c=u.connector,f=u.resetOnDisconnect,d=f===void 0||f,h=c(),p=new i.Observable(function(g){return h.subscribe(g)});return p.connect=function(){return l&&!l.closed||(l=a.defer(function(){return s}).subscribe(h),d&&l.add(function(){return h=c()})),l},p}},7589:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_ACQUISITION_TIMEOUT=e.DEFAULT_MAX_SIZE=void 0;var t=100;e.DEFAULT_MAX_SIZE=t;var n=6e4;e.DEFAULT_ACQUISITION_TIMEOUT=n;var i=(function(){function s(u,l){this.maxSize=a(u,t),this.acquisitionTimeout=a(l,n)}return s.defaultConfig=function(){return new s(t,n)},s.fromDriverConfig=function(u){return new s(o(u.maxConnectionPoolSize)?u.maxConnectionPoolSize:t,o(u.connectionAcquisitionTimeout)?u.connectionAcquisitionTimeout:n)},s})();function a(s,u){return o(s)?s:u}function o(s){return s===0||s!=null}e.default=i},7601:function(r,e,t){var n=this&&this.__read||function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var d,h,p=f.call(l),g=[];try{for(;(c===void 0||c-- >0)&&!(d=p.next()).done;)g.push(d.value)}catch(y){h={error:y}}finally{try{d&&!d.done&&(f=p.return)&&f.call(p)}finally{if(h)throw h.error}}return g},i=this&&this.__spreadArray||function(l,c){for(var f=0,d=c.length,h=l.length;f0&&d[d.length-1])||_[0]!==6&&_[0]!==2)){p=0;continue}if(_[0]===3&&(!d||_[1]>d[0]&&_[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.createInvalidObservableTypeError=void 0,e.createInvalidObservableTypeError=function(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},7629:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isPromise=void 0;var n=t(1018);e.isPromise=function(i){return n.isFunction(i==null?void 0:i.then)}},7640:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throttleTime=void 0;var n=t(7961),i=t(8941),a=t(4092);e.throttleTime=function(o,s,u){s===void 0&&(s=n.asyncScheduler);var l=a.timer(o,s);return i.throttle(function(){return l},u)}},7661:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.expand=void 0;var n=t(7843),i=t(1983);e.expand=function(a,o,s){return o===void 0&&(o=1/0),o=(o||0)<1?1/0:o,n.operate(function(u,l){return i.mergeInternals(u,l,a,o,void 0,!0,s)})}},7665:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.verifyStructSize=e.Structure=void 0;var n=t(9305),i=n.error.PROTOCOL_ERROR,a=(function(){function o(s,u){this.signature=s,this.fields=u}return Object.defineProperty(o.prototype,"size",{get:function(){return this.fields.length},enumerable:!1,configurable:!0}),o.prototype.toString=function(){for(var s="",u=0;u0&&(s+=", "),s+=this.fields[u];return"Structure("+this.signature+", ["+s+"])"},o})();e.Structure=a,e.verifyStructSize=function(o,s,u){if(s!==u)throw(0,n.newError)("Wrong struct size for ".concat(o,", expected ").concat(s," but was ").concat(u),i)},e.default=a},7666:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(c,f,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(f,d);p&&!("get"in p?!f.__esModule:p.writable||p.configurable)||(p={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(c,h,p)}:function(c,f,d,h){h===void 0&&(h=d),c[h]=f[d]}),i=this&&this.__exportStar||function(c,f){for(var d in c)d==="default"||Object.prototype.hasOwnProperty.call(f,d)||n(f,c,d)},a=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.RawRoutingTable=e.BoltProtocol=void 0;var o=a(t(8731)),s=a(t(6544)),u=a(t(9054)),l=a(t(7790));i(t(9014),e),e.BoltProtocol=u.default,e.RawRoutingTable=l.default,e.default={handshake:o.default,create:s.default}},7714:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createFind=e.find=void 0;var n=t(7843),i=t(3111);function a(o,s,u){var l=u==="index";return function(c,f){var d=0;c.subscribe(i.createOperatorSubscriber(f,function(h){var p=d++;o.call(s,h,p,c)&&(f.next(l?p:h),f.complete())},function(){f.next(l?-1:void 0),f.complete()}))}}e.find=function(o,s){return n.operate(a(o,s,"value"))},e.createFind=a},7721:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(f,d,h,p){p===void 0&&(p=h);var g=Object.getOwnPropertyDescriptor(d,h);g&&!("get"in g?!d.__esModule:g.writable||g.configurable)||(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,p,g)}:function(f,d,h,p){p===void 0&&(p=h),f[p]=d[h]}),i=this&&this.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),a=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var h in f)h!=="default"&&Object.prototype.hasOwnProperty.call(f,h)&&n(d,f,h);return i(d,f),d},o=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.createChannelConnection=e.ConnectionErrorHandler=e.DelegateConnection=e.ChannelConnection=e.Connection=void 0;var s=o(t(6385));e.Connection=s.default;var u=a(t(8031));e.ChannelConnection=u.default,Object.defineProperty(e,"createChannelConnection",{enumerable:!0,get:function(){return u.createChannelConnection}});var l=o(t(9857));e.DelegateConnection=l.default;var c=o(t(2363));e.ConnectionErrorHandler=c.default,e.default=s.default},7740:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pairs=void 0;var n=t(4917);e.pairs=function(i,a){return n.from(Object.entries(i),a)}},7790:function(r,e,t){var n=this&&this.__extends||(function(){var l=function(c,f){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(d[p]=h[p])},l(c,f)};return function(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function d(){this.constructor=c}l(c,f),c.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})(),i=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),i(t(9305));var a=(function(){function l(){}return l.ofRecord=function(c){return c===null?l.ofNull():new u(c)},l.ofMessageResponse=function(c){return c===null?l.ofNull():new o(c)},l.ofNull=function(){return new s},Object.defineProperty(l.prototype,"ttl",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"db",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"servers",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isNull",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),l})();e.default=a;var o=(function(l){function c(f){var d=l.call(this)||this;return d._response=f,d}return n(c,l),Object.defineProperty(c.prototype,"ttl",{get:function(){return this._response.rt.ttl},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"servers",{get:function(){return this._response.rt.servers},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"db",{get:function(){return this._response.rt.db},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isNull",{get:function(){return this._response===null},enumerable:!1,configurable:!0}),c})(a),s=(function(l){function c(){return l!==null&&l.apply(this,arguments)||this}return n(c,l),Object.defineProperty(c.prototype,"isNull",{get:function(){return!0},enumerable:!1,configurable:!0}),c})(a),u=(function(l){function c(f){var d=l.call(this)||this;return d._record=f,d}return n(c,l),Object.defineProperty(c.prototype,"ttl",{get:function(){return this._record.get("ttl")},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"servers",{get:function(){return this._record.get("servers")},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"db",{get:function(){return this._record.has("db")?this._record.get("db"):null},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isNull",{get:function(){return this._record===null},enumerable:!1,configurable:!0}),c})(a)},7800:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var n,i=t(8616),a=t(1004),o=t(1103),s=t(1018);(n=e.NotificationKind||(e.NotificationKind={})).NEXT="N",n.ERROR="E",n.COMPLETE="C";var u=(function(){function c(f,d,h){this.kind=f,this.value=d,this.error=h,this.hasValue=f==="N"}return c.prototype.observe=function(f){return l(this,f)},c.prototype.do=function(f,d,h){var p=this,g=p.kind,y=p.value,b=p.error;return g==="N"?f==null?void 0:f(y):g==="E"?d==null?void 0:d(b):h==null?void 0:h()},c.prototype.accept=function(f,d,h){var p;return s.isFunction((p=f)===null||p===void 0?void 0:p.next)?this.observe(f):this.do(f,d,h)},c.prototype.toObservable=function(){var f=this,d=f.kind,h=f.value,p=f.error,g=d==="N"?a.of(h):d==="E"?o.throwError(function(){return p}):d==="C"?i.EMPTY:0;if(!g)throw new TypeError("Unexpected notification kind "+d);return g},c.createNext=function(f){return new c("N",f)},c.createError=function(f){return new c("E",void 0,f)},c.createComplete=function(){return c.completeNotification},c.completeNotification=new c("C"),c})();function l(c,f){var d,h,p,g=c,y=g.kind,b=g.value,_=g.error;if(typeof y!="string")throw new TypeError('Invalid notification, missing "kind"');y==="N"?(d=f.next)===null||d===void 0||d.call(f,b):y==="E"?(h=f.error)===null||h===void 0||h.call(f,_):(p=f.complete)===null||p===void 0||p.call(f)}e.Notification=u,e.observeNotification=l},7815:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.groupBy=void 0;var n=t(4662),i=t(9445),a=t(2483),o=t(7843),s=t(3111);e.groupBy=function(u,l,c,f){return o.operate(function(d,h){var p;l&&typeof l!="function"?(c=l.duration,p=l.element,f=l.connector):p=l;var g=new Map,y=function(E){g.forEach(E),E(h)},b=function(E){return y(function(O){return O.error(E)})},_=0,m=!1,x=new s.OperatorSubscriber(h,function(E){try{var O=u(E),S=g.get(O);if(!S){g.set(O,S=f?f():new a.Subject);var T=(I=O,k=S,(L=new n.Observable(function(B){_++;var j=k.subscribe(B);return function(){j.unsubscribe(),--_===0&&m&&x.unsubscribe()}})).key=I,L);if(h.next(T),c){var P=s.createOperatorSubscriber(S,function(){S.complete(),P==null||P.unsubscribe()},void 0,void 0,function(){return g.delete(O)});x.add(i.innerFrom(c(T)).subscribe(P))}}S.next(p?p(E):E)}catch(B){b(B)}var I,k,L},function(){return y(function(E){return E.complete()})},b,function(){return g.clear()},function(){return m=!0,_===0});d.subscribe(x)})}},7835:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retry=void 0;var n=t(7843),i=t(3111),a=t(6640),o=t(4092),s=t(9445);e.retry=function(u){var l;u===void 0&&(u=1/0);var c=(l=u&&typeof u=="object"?u:{count:u}).count,f=c===void 0?1/0:c,d=l.delay,h=l.resetOnSuccess,p=h!==void 0&&h;return f<=0?a.identity:n.operate(function(g,y){var b,_=0,m=function(){var x=!1;b=g.subscribe(i.createOperatorSubscriber(y,function(E){p&&(_=0),y.next(E)},void 0,function(E){if(_++{Object.defineProperty(e,"__esModule",{value:!0}),e.operate=e.hasLift=void 0;var n=t(1018);function i(a){return n.isFunction(a==null?void 0:a.lift)}e.hasLift=i,e.operate=function(a){return function(o){if(i(o))return o.lift(function(s){try{return a(s,this)}catch(u){this.error(u)}});throw new TypeError("Unable to lift unknown Observable type")}}},7853:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.using=void 0;var n=t(4662),i=t(9445),a=t(8616);e.using=function(o,s){return new n.Observable(function(u){var l=o(),c=s(l);return(c?i.innerFrom(c):a.EMPTY).subscribe(u),function(){l&&l.unsubscribe()}})}},7857:function(r,e,t){var n=this&&this.__extends||(function(){var d=function(h,p){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])},d(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function g(){this.constructor=h}d(h,p),h.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),i=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.WRITE=e.READ=e.Driver=void 0;var a=t(9305),o=i(t(3466)),s=a.internal.constants.FETCH_ALL,u=a.driver.READ,l=a.driver.WRITE;e.READ=u,e.WRITE=l;var c=(function(d){function h(){return d!==null&&d.apply(this,arguments)||this}return n(h,d),h.prototype.rxSession=function(p){var g=p===void 0?{}:p,y=g.defaultAccessMode,b=y===void 0?l:y,_=g.bookmarks,m=g.database,x=m===void 0?"":m,E=g.fetchSize,O=g.impersonatedUser,S=g.bookmarkManager,T=g.notificationFilter,P=g.auth;return new o.default({session:this._newSession({defaultAccessMode:b,bookmarkOrBookmarks:_,database:x,impersonatedUser:O,auth:P,reactive:!1,fetchSize:f(E,this._config.fetchSize),bookmarkManager:S,notificationFilter:T,log:this._log}),config:this._config,log:this._log})},h})(a.Driver);function f(d,h){var p=parseInt(d,10);if(p>0||p===s)return p;if(p===0||p<0)throw new Error("The fetch size can only be a positive value or ".concat(s," for ALL. However fetchSize = ").concat(p));return h}e.Driver=c,e.default=c},7961:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var n=t(5267),i=t(5648);e.asyncScheduler=new i.AsyncScheduler(n.AsyncAction),e.async=e.asyncScheduler},7991:(r,e)=>{e.byteLength=function(c){var f=s(c),d=f[0],h=f[1];return 3*(d+h)/4-h},e.toByteArray=function(c){var f,d,h=s(c),p=h[0],g=h[1],y=new i((function(m,x,E){return 3*(x+E)/4-E})(0,p,g)),b=0,_=g>0?p-4:p;for(d=0;d<_;d+=4)f=n[c.charCodeAt(d)]<<18|n[c.charCodeAt(d+1)]<<12|n[c.charCodeAt(d+2)]<<6|n[c.charCodeAt(d+3)],y[b++]=f>>16&255,y[b++]=f>>8&255,y[b++]=255&f;return g===2&&(f=n[c.charCodeAt(d)]<<2|n[c.charCodeAt(d+1)]>>4,y[b++]=255&f),g===1&&(f=n[c.charCodeAt(d)]<<10|n[c.charCodeAt(d+1)]<<4|n[c.charCodeAt(d+2)]>>2,y[b++]=f>>8&255,y[b++]=255&f),y},e.fromByteArray=function(c){for(var f,d=c.length,h=d%3,p=[],g=16383,y=0,b=d-h;yb?b:y+g));return h===1?(f=c[d-1],p.push(t[f>>2]+t[f<<4&63]+"==")):h===2&&(f=(c[d-2]<<8)+c[d-1],p.push(t[f>>10]+t[f>>4&63]+t[f<<2&63]+"=")),p.join("")};for(var t=[],n=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)t[o]=a[o],n[a.charCodeAt(o)]=o;function s(c){var f=c.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var d=c.indexOf("=");return d===-1&&(d=f),[d,d===f?0:4-d%4]}function u(c){return t[c>>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]}function l(c,f,d){for(var h,p=[],g=f;g=f.length&&(f=void 0),{value:f&&f[p++],done:!f}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(f,d){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var p,g,y=h.call(f),b=[];try{for(;(d===void 0||d-- >0)&&!(p=y.next()).done;)b.push(p.value)}catch(_){g={error:_}}finally{try{p&&!p.done&&(h=y.return)&&h.call(y)}finally{if(g)throw g.error}}return b},a=this&&this.__spreadArray||function(f,d){for(var h=0,p=d.length,g=f.length;h{Object.defineProperty(e,"__esModule",{value:!0}),e.buffer=void 0;var n=t(7843),i=t(1342),a=t(3111),o=t(9445);e.buffer=function(s){return n.operate(function(u,l){var c=[];return u.subscribe(a.createOperatorSubscriber(l,function(f){return c.push(f)},function(){l.next(c),l.complete()})),o.innerFrom(s).subscribe(a.createOperatorSubscriber(l,function(){var f=c;c=[],l.next(f)},i.noop)),function(){c=null}})}},8031:function(r,e,t){var n=this&&this.__extends||(function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(_[x]=m[x])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function _(){this.constructor=y}g(y,b),y.prototype=b===null?Object.create(b):(_.prototype=b.prototype,new _)}})(),i=this&&this.__awaiter||function(g,y,b,_){return new(b||(b=Promise))(function(m,x){function E(T){try{S(_.next(T))}catch(P){x(P)}}function O(T){try{S(_.throw(T))}catch(P){x(P)}}function S(T){var P;T.done?m(T.value):(P=T.value,P instanceof b?P:new b(function(I){I(P)})).then(E,O)}S((_=_.apply(g,y||[])).next())})},a=this&&this.__generator||function(g,y){var b,_,m,x,E={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return x={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(x[Symbol.iterator]=function(){return this}),x;function O(S){return function(T){return(function(P){if(b)throw new TypeError("Generator is already executing.");for(;x&&(x=0,P[0]&&(E=0)),E;)try{if(b=1,_&&(m=2&P[0]?_.return:P[0]?_.throw||((m=_.return)&&m.call(_),0):_.next)&&!(m=m.call(_,P[1])).done)return m;switch(_=0,m&&(P=[2&P[0],m.value]),P[0]){case 0:case 1:m=P;break;case 4:return E.label++,{value:P[1],done:!1};case 5:E.label++,_=P[1],P=[0];continue;case 7:P=E.ops.pop(),E.trys.pop();continue;default:if(!((m=(m=E.trys).length>0&&m[m.length-1])||P[0]!==6&&P[0]!==2)){E=0;continue}if(P[0]===3&&(!m||P[1]>m[0]&&P[1]0?x._ch.setupReceiveTimeout(1e3*B):x._log.info("Server located at ".concat(x._address," supplied an invalid connection receive timeout value (").concat(B,"). ")+"Please, verify the server configuration and status because this can be the symptom of a bigger issue.")}T.hints["telemetry.enabled"]===!0&&(x._telemetryDisabledConnection=!1),x.SSREnabledHint=T.hints["ssr.enabled"]}x._ssrCallback((P=x.SSREnabledHint)!==null&&P!==void 0&&P,"OPEN")}O(E)}})})},y.prototype.protocol=function(){return this._protocol},Object.defineProperty(y.prototype,"address",{get:function(){return this._address},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"version",{get:function(){return this._server.version},set:function(b){this._server.version=b},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"server",{get:function(){return this._server},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"logger",{get:function(){return this._log},enumerable:!1,configurable:!0}),y.prototype._handleFatalError=function(b){this._isBroken=!0,this._error=this.handleAndTransformError(this._protocol.currentFailure||b,this._address),this._log.isErrorEnabled()&&this._log.error("experienced a fatal error caused by ".concat(this._error," (").concat(u.json.stringify(this._error),")")),this._protocol.notifyFatalError(this._error)},y.prototype._setIdle=function(b){this._idle=!0,this._ch.stopReceiveTimeout(),this._protocol.queueObserverIfProtocolIsNotBroken(b)},y.prototype._unsetIdle=function(){this._idle=!1,this._updateCurrentObserver()},y.prototype._queueObserver=function(b){return this._protocol.queueObserverIfProtocolIsNotBroken(b)},y.prototype.hasOngoingObservableRequests=function(){return!this._idle&&this._protocol.hasOngoingObservableRequests()},y.prototype.resetAndFlush=function(){var b=this;return new Promise(function(_,m){b._reset({onError:function(x){if(b._isBroken)m(x);else{var E=b._handleProtocolError("Received FAILURE as a response for RESET: ".concat(x));m(E)}},onComplete:function(){_()}})})},y.prototype._resetOnFailure=function(){var b=this;this.isOpen()&&this._reset({onError:function(){b._protocol.resetFailure()},onComplete:function(){b._protocol.resetFailure()}})},y.prototype._reset=function(b){var _=this;if(this._reseting)this._protocol.isLastMessageReset()?this._resetObservers.push(b):this._protocol.reset({onError:function(x){b.onError(x)},onComplete:function(){b.onComplete()}});else{this._resetObservers.push(b),this._reseting=!0;var m=function(x){_._reseting=!1;var E=_._resetObservers;_._resetObservers=[],E.forEach(x)};this._protocol.reset({onError:function(x){m(function(E){return E.onError(x)})},onComplete:function(){m(function(x){return x.onComplete()})}})}},y.prototype._updateCurrentObserver=function(){this._protocol.updateCurrentObserver()},y.prototype.isOpen=function(){return!this._isBroken&&this._ch._open},y.prototype._handleOngoingRequestsNumberChange=function(b){this._idle||(b===0?this._ch.stopReceiveTimeout():this._ch.startReceiveTimeout())},y.prototype.close=function(){var b;return i(this,void 0,void 0,function(){return a(this,function(_){switch(_.label){case 0:return this._ssrCallback((b=this.SSREnabledHint)!==null&&b!==void 0&&b,"CLOSE"),this._log.isDebugEnabled()&&this._log.debug("closing"),this._protocol&&this.isOpen()&&this._protocol.prepareToClose(),[4,this._ch.close()];case 1:return _.sent(),this._log.isDebugEnabled()&&this._log.debug("closed"),[2]}})})},y.prototype.toString=function(){return"Connection [".concat(this.id,"][").concat(this.databaseId||"","]")},y.prototype._handleProtocolError=function(b){this._protocol.resetFailure(),this._updateCurrentObserver();var _=(0,u.newError)(b,f);return this._handleFatalError(_),_},y})(l.default);e.default=p},8046:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isArrayLike=void 0,e.isArrayLike=function(t){return t&&typeof t.length=="number"&&typeof t!="function"}},8079:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.debounceTime=void 0;var n=t(7961),i=t(7843),a=t(3111);e.debounceTime=function(o,s){return s===void 0&&(s=n.asyncScheduler),i.operate(function(u,l){var c=null,f=null,d=null,h=function(){if(c){c.unsubscribe(),c=null;var g=f;f=null,l.next(g)}};function p(){var g=d+o,y=s.now();if(y{Object.defineProperty(e,"__esModule",{value:!0}),e.catchError=void 0;var n=t(9445),i=t(3111),a=t(7843);e.catchError=function o(s){return a.operate(function(u,l){var c,f=null,d=!1;f=u.subscribe(i.createOperatorSubscriber(l,void 0,void 0,function(h){c=n.innerFrom(s(h,o(s)(u))),f?(f.unsubscribe(),f=null,c.subscribe(l)):d=!0})),d&&(f.unsubscribe(),f=null,c.subscribe(l))})}},8157:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.publishReplay=void 0;var n=t(1242),i=t(9247),a=t(1018);e.publishReplay=function(o,s,u,l){u&&!a.isFunction(u)&&(l=u);var c=a.isFunction(u)?u:void 0;return function(f){return i.multicast(new n.ReplaySubject(o,s,l),c)(f)}}},8158:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.concatAll=void 0;var n=t(7302);e.concatAll=function(){return n.mergeAll(1)}},8208:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.windowTime=void 0;var n=t(2483),i=t(7961),a=t(8014),o=t(7843),s=t(3111),u=t(7479),l=t(1107),c=t(7110);e.windowTime=function(f){for(var d,h,p=[],g=1;g=0?c.executeSchedule(x,y,T,b,!0):O=!0,T();var P=function(k){return E.slice().forEach(k)},I=function(k){P(function(L){var B=L.window;return k(B)}),k(x),x.unsubscribe()};return m.subscribe(s.createOperatorSubscriber(x,function(k){P(function(L){L.window.next(k),_<=++L.seen&&S(L)})},function(){return I(function(k){return k.complete()})},function(k){return I(function(L){return L.error(k)})})),function(){E=null}})}},8239:function(r,e,t){var n=this&&this.__read||function(o,s){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var l,c,f=u.call(o),d=[];try{for(;(s===void 0||s-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d},i=this&&this.__spreadArray||function(o,s){for(var u=0,l=s.length,c=o.length;u0)&&!(l=f.next()).done;)d.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d},i=this&&this.__spreadArray||function(o,s){for(var u=0,l=s.length,c=o.length;u0)&&b.filter(_).length===b.length}function g(b,_){return!(b in _)||_[b]==null||typeof _[b]=="string"}e.clientCertificateProviders=f,Object.freeze(f),e.resolveCertificateProvider=function(b){if(b!=null){if(typeof b=="object"&&"hasUpdate"in b&&"getClientCertificate"in b&&typeof b.getClientCertificate=="function"&&typeof b.hasUpdate=="function")return b;if(d(b)){var _=i({},b);return{getClientCertificate:function(){return _},hasUpdate:function(){return!1}}}throw new TypeError("clientCertificate should be configured with ClientCertificate or ClientCertificateProvider, but got ".concat(u.stringify(b)))}};var y=(function(){function b(_,m){m===void 0&&(m=!1),this._certificate=_,this._updated=m}return b.prototype.hasUpdate=function(){try{return this._updated}finally{this._updated=!1}},b.prototype.getClientCertificate=function(){return this._certificate},b.prototype.updateCertificate=function(_){if(!d(_))throw new TypeError("certificate should be ClientCertificate, but got ".concat(u.stringify(_)));this._certificate=i({},_),this._updated=!0},b})()},8275:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.first=void 0;var n=t(2823),i=t(783),a=t(846),o=t(378),s=t(4869),u=t(6640);e.first=function(l,c){var f=arguments.length>=2;return function(d){return d.pipe(l?i.filter(function(h,p){return l(h,p,d)}):u.identity,a.take(1),f?o.defaultIfEmpty(c):s.throwIfEmpty(function(){return new n.EmptyError}))}}},8320:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(O){for(var S,T=1,P=arguments.length;T=s.length&&(s=void 0),{value:s&&s[c++],done:!s}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.takeLast=void 0;var i=t(8616),a=t(7843),o=t(3111);e.takeLast=function(s){return s<=0?function(){return i.EMPTY}:a.operate(function(u,l){var c=[];u.subscribe(o.createOperatorSubscriber(l,function(f){c.push(f),s{Object.defineProperty(e,"__esModule",{value:!0});var n=t(7509);function i(o){return Promise.resolve([o])}var a=(function(){function o(s){this._resolverFunction=s??i}return o.prototype.resolve=function(s){var u=this;return new Promise(function(l){return l(u._resolverFunction(s.asHostPort()))}).then(function(l){if(!Array.isArray(l))throw new TypeError("Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses."+"Each address is ':'. Got: ".concat(l));return l.map(function(c){return n.ServerAddress.fromUrl(c)})})},o})();e.default=a},8522:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.repeat=void 0;var n=t(8616),i=t(7843),a=t(3111),o=t(9445),s=t(4092);e.repeat=function(u){var l,c,f=1/0;return u!=null&&(typeof u=="object"?(l=u.count,f=l===void 0?1/0:l,c=u.delay):f=u),f<=0?function(){return n.EMPTY}:i.operate(function(d,h){var p,g=0,y=function(){if(p==null||p.unsubscribe(),p=null,c!=null){var _=typeof c=="number"?s.timer(c):o.innerFrom(c(g)),m=a.createOperatorSubscriber(h,function(){m.unsubscribe(),b()});_.subscribe(m)}else b()},b=function(){var _=!1;p=d.subscribe(a.createOperatorSubscriber(h,void 0,function(){++g{Object.defineProperty(e,"__esModule",{value:!0}),e.argsOrArgArray=void 0;var t=Array.isArray;e.argsOrArgArray=function(n){return n.length===1&&t(n[0])?n[0]:n}},8538:function(r,e,t){var n=this&&this.__read||function(o,s){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var l,c,f=u.call(o),d=[];try{for(;(s===void 0||s-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d},i=this&&this.__spreadArray||function(o,s){for(var u=0,l=s.length,c=o.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.bindNodeCallback=void 0;var n=t(1439);e.bindNodeCallback=function(i,a,o){return n.bindCallbackInternals(!0,i,a,o)}},8613:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isScheduler=void 0;var n=t(1018);e.isScheduler=function(i){return i&&n.isFunction(i.schedule)}},8616:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var n=t(4662);e.EMPTY=new n.Observable(function(i){return i.complete()}),e.empty=function(i){return i?(function(a){return new n.Observable(function(o){return a.schedule(function(){return o.complete()})})})(i):e.EMPTY}},8624:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scan=void 0;var n=t(7843),i=t(6384);e.scan=function(a,o){return n.operate(i.scanInternals(a,o,arguments.length>=2,!0))}},8655:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.never=e.NEVER=void 0;var n=t(4662),i=t(1342);e.NEVER=new n.Observable(i.noop),e.never=function(){return e.NEVER}},8669:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.last=void 0;var n=t(2823),i=t(783),a=t(8330),o=t(4869),s=t(378),u=t(6640);e.last=function(l,c){var f=arguments.length>=2;return function(d){return d.pipe(l?i.filter(function(h,p){return l(h,p,d)}):u.identity,a.takeLast(1),f?s.defaultIfEmpty(c):o.throwIfEmpty(function(){return new n.EmptyError}))}}},8712:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.switchScan=void 0;var n=t(3879),i=t(7843);e.switchScan=function(a,o){return i.operate(function(s,u){var l=o;return n.switchMap(function(c,f){return a(l,c,f)},function(c,f){return l=f,f})(s).subscribe(u),function(){l=null}})}},8731:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=t(7452),i=t(9305),a=["5.8","5.7","5.6","5.4","5.3","5.2","5.1","5.0","4.4","4.3","4.2","3.0"];function o(u,l){return{major:u,minor:l}}function s(u){for(var l=[],c=u[3],f=u[2],d=0;d<=u[1];d++)l.push({major:c,minor:f-d});return l}e.default=function(u,l){return(function(c,f){var d=this;return new Promise(function(h,p){var g=function(y){p(y)};c.onerror=g.bind(d),c._error&&g(c._error),c.onmessage=function(y){try{var b=(function(_,m){var x=[_.readUInt8(),_.readUInt8(),_.readUInt8(),_.readUInt8()];if(x[0]===72&&x[1]===84&&x[2]===84&&x[3]===80)throw m.error("Handshake failed since server responded with HTTP."),(0,i.newError)("Server responded HTTP. Make sure you are not trying to connect to the http endpoint (HTTP defaults to port 7474 whereas BOLT defaults to port 7687)");return+(x[3]+"."+x[2])})(y,f);h({protocolVersion:b,capabilites:0,buffer:y,consumeRemainingBuffer:function(_){y.hasRemaining()&&_(y.readSlice(y.remaining()))}})}catch(_){p(_)}},c.write((function(y){if(y.length>4)throw(0,i.newError)("It should not have more than 4 versions of the protocol");var b=(0,n.alloc)(20);return b.writeInt32(1616949271),y.forEach(function(_){if(_ instanceof Array){var m=_[0],x=m.major,E=(O=m.minor)-_[1].minor;b.writeInt32(E<<16|O<<8|x)}else{x=_.major;var O=_.minor;b.writeInt32(O<<8|x)}}),b.reset(),b})([o(255,1),[o(5,8),o(5,0)],[o(4,4),o(4,2)],o(3,0)]))})})(u,l).then(function(c){return c.protocolVersion===255.1?(function(f,d){for(var h=d.readVarInt(),p=[],g=0;g{Object.defineProperty(e,"__esModule",{value:!0}),e.delayWhen=void 0;var n=t(3865),i=t(846),a=t(490),o=t(3218),s=t(983),u=t(9445);e.delayWhen=function l(c,f){return f?function(d){return n.concat(f.pipe(i.take(1),a.ignoreElements()),d.pipe(l(c)))}:s.mergeMap(function(d,h){return u.innerFrom(c(d,h)).pipe(i.take(1),o.mapTo(d))})}},8774:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.switchAll=void 0;var n=t(3879),i=t(6640);e.switchAll=function(){return n.switchMap(i.identity)}},8784:(r,e,t)=>{var n=t(4704);r.exports=n.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},8808:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleIterable=void 0;var n=t(4662),i=t(1964),a=t(1018),o=t(7110);e.scheduleIterable=function(s,u){return new n.Observable(function(l){var c;return o.executeSchedule(l,u,function(){c=s[i.iterator](),o.executeSchedule(l,u,function(){var f,d,h;try{d=(f=c.next()).value,h=f.done}catch(p){return void l.error(p)}h?l.complete():l.next(d)},0,!0)}),function(){return a.isFunction(c==null?void 0:c.return)&&c.return()}})}},8813:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(ma,bu,uo,Ho){Ho===void 0&&(Ho=uo),Object.defineProperty(ma,Ho,{enumerable:!0,get:function(){return bu[uo]}})}:function(ma,bu,uo,Ho){Ho===void 0&&(Ho=uo),ma[Ho]=bu[uo]}),i=this&&this.__exportStar||function(ma,bu){for(var uo in ma)uo==="default"||Object.prototype.hasOwnProperty.call(bu,uo)||n(bu,ma,uo)};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.onErrorResumeNextWith=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=void 0;var a=t(4662);Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return a.Observable}});var o=t(8918);Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return o.ConnectableObservable}});var s=t(3327);Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return s.observable}});var u=t(3110);Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var l=t(2483);Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return l.Subject}});var c=t(1637);Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return c.BehaviorSubject}});var f=t(1242);Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return f.ReplaySubject}});var d=t(95);Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return d.AsyncSubject}});var h=t(3692);Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return h.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return h.asapScheduler}});var p=t(7961);Object.defineProperty(e,"async",{enumerable:!0,get:function(){return p.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return p.asyncScheduler}});var g=t(2886);Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return g.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return g.queueScheduler}});var y=t(3862);Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return y.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return y.animationFrameScheduler}});var b=t(182);Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return b.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return b.VirtualAction}});var _=t(8986);Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return _.Scheduler}});var m=t(8014);Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return m.Subscription}});var x=t(5);Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return x.Subscriber}});var E=t(7800);Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return E.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return E.NotificationKind}});var O=t(2706);Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return O.pipe}});var S=t(1342);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return S.noop}});var T=t(6640);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return T.identity}});var P=t(1751);Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return P.isObservable}});var I=t(6894);Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return I.lastValueFrom}});var k=t(9060);Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return k.firstValueFrom}});var L=t(7057);Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return L.ArgumentOutOfRangeError}});var B=t(2823);Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return B.EmptyError}});var j=t(1759);Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return j.NotFoundError}});var z=t(9686);Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return z.ObjectUnsubscribedError}});var H=t(1505);Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return H.SequenceError}});var q=t(1554);Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return q.TimeoutError}});var W=t(5788);Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return W.UnsubscriptionError}});var $=t(2713);Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return $.bindCallback}});var J=t(8561);Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return J.bindNodeCallback}});var X=t(3247);Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return X.combineLatest}});var Z=t(3865);Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return Z.concat}});var ue=t(7579);Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return ue.connectable}});var re=t(9353);Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return re.defer}});var ne=t(8616);Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return ne.empty}});var le=t(9105);Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return le.forkJoin}});var ce=t(4917);Object.defineProperty(e,"from",{enumerable:!0,get:function(){return ce.from}});var pe=t(5337);Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return pe.fromEvent}});var fe=t(347);Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return fe.fromEventPattern}});var se=t(7610);Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return se.generate}});var de=t(4209);Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return de.iif}});var ge=t(6472);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return ge.interval}});var Oe=t(2833);Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return Oe.merge}});var ke=t(8655);Object.defineProperty(e,"never",{enumerable:!0,get:function(){return ke.never}});var De=t(1004);Object.defineProperty(e,"of",{enumerable:!0,get:function(){return De.of}});var Ne=t(6102);Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Ne.onErrorResumeNext}});var Ce=t(7740);Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return Ce.pairs}});var Y=t(1699);Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Y.partition}});var Q=t(5584);Object.defineProperty(e,"race",{enumerable:!0,get:function(){return Q.race}});var ie=t(9376);Object.defineProperty(e,"range",{enumerable:!0,get:function(){return ie.range}});var we=t(1103);Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return we.throwError}});var Ee=t(4092);Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return Ee.timer}});var Me=t(7853);Object.defineProperty(e,"using",{enumerable:!0,get:function(){return Me.using}});var Ie=t(7286);Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return Ie.zip}});var Ye=t(1656);Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return Ye.scheduled}});var ot=t(8616);Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return ot.EMPTY}});var mt=t(8655);Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return mt.NEVER}}),i(t(6038),e);var wt=t(3413);Object.defineProperty(e,"config",{enumerable:!0,get:function(){return wt.config}});var Mt=t(3146);Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return Mt.audit}});var Dt=t(3231);Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return Dt.auditTime}});var vt=t(8015);Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return vt.buffer}});var tt=t(5572);Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return tt.bufferCount}});var _e=t(7210);Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return _e.bufferTime}});var Ue=t(8995);Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return Ue.bufferToggle}});var Qe=t(8831);Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return Qe.bufferWhen}});var Ze=t(8118);Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return Ze.catchError}});var nt=t(6625);Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return nt.combineAll}});var It=t(6728);Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return It.combineLatestAll}});var ct=t(8239);Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return ct.combineLatestWith}});var Lt=t(8158);Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Lt.concatAll}});var Rt=t(9135);Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Rt.concatMap}});var jt=t(9938);Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return jt.concatMapTo}});var Yt=t(9669);Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return Yt.concatWith}});var sr=t(1483);Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return sr.connect}});var Ut=t(1038);Object.defineProperty(e,"count",{enumerable:!0,get:function(){return Ut.count}});var Rr=t(4461);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Rr.debounce}});var Xt=t(8079);Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Xt.debounceTime}});var Vr=t(378);Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return Vr.defaultIfEmpty}});var Br=t(914);Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return Br.delay}});var mr=t(8766);Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return mr.delayWhen}});var ur=t(7441);Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return ur.dematerialize}});var sn=t(5365);Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return sn.distinct}});var Fr=t(8937);Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Fr.distinctUntilChanged}});var un=t(9612);Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return un.distinctUntilKeyChanged}});var bn=t(4520);Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return bn.elementAt}});var wn=t(1776);Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return wn.endWith}});var _n=t(5510);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return _n.every}});var xn=t(1551);Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return xn.exhaust}});var on=t(2752);Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return on.exhaustAll}});var Nn=t(4753);Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return Nn.exhaustMap}});var fi=t(7661);Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return fi.expand}});var gn=t(783);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return gn.filter}});var yn=t(3555);Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return yn.finalize}});var Jn=t(7714);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return Jn.find}});var _i=t(9756);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return _i.findIndex}});var Ir=t(8275);Object.defineProperty(e,"first",{enumerable:!0,get:function(){return Ir.first}});var pa=t(7815);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return pa.groupBy}});var di=t(490);Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return di.ignoreElements}});var Bt=t(9356);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Bt.isEmpty}});var hr=t(8669);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return hr.last}});var ei=t(5471);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return ei.map}});var Hn=t(3218);Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return Hn.mapTo}});var ds=t(2360);Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return ds.materialize}});var Na=t(1415);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return Na.max}});var ki=t(7302);Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return ki.mergeAll}});var Wr=t(6902);Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return Wr.flatMap}});var Nr=t(983);Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return Nr.mergeMap}});var na=t(6586);Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return na.mergeMapTo}});var Us=t(4408);Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return Us.mergeScan}});var vu=t(8253);Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return vu.mergeWith}});var ga=t(2669);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return ga.min}});var zs=t(9247);Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return zs.multicast}});var Ln=t(5184);Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return Ln.observeOn}});var Ii=t(1226);Object.defineProperty(e,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Ii.onErrorResumeNextWith}});var Ni=t(1518);Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return Ni.pairwise}});var Pc=t(4912);Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return Pc.pluck}});var pu=t(766);Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return pu.publish}});var ia=t(7220);Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return ia.publishBehavior}});var Hl=t(6106);Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return Hl.publishLast}});var Md=t(8157);Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return Md.publishReplay}});var Xa=t(5600);Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return Xa.raceWith}});var Wl=t(9139);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return Wl.reduce}});var Yl=t(8522);Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return Yl.repeat}});var nf=t(6566);Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return nf.repeatWhen}});var Wi=t(7835);Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return Wi.retry}});var af=t(9843);Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return af.retryWhen}});var La=t(7561);Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return La.refCount}});var Go=t(1731);Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return Go.sample}});var Gf=t(6086);Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return Gf.sampleTime}});var hs=t(8624);Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return hs.scan}});var Mc=t(582);Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return Mc.sequenceEqual}});var Xl=t(8977);Object.defineProperty(e,"share",{enumerable:!0,get:function(){return Xl.share}});var ti=t(3133);Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return ti.shareReplay}});var qs=t(5382);Object.defineProperty(e,"single",{enumerable:!0,get:function(){return qs.single}});var Ju=t(3982);Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return Ju.skip}});var Gs=t(9098);Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return Gs.skipLast}});var $l=t(7372);Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return $l.skipUntil}});var of=t(4721);Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return of.skipWhile}});var gu=t(269);Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return gu.startWith}});var _o=t(8960);Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return _o.subscribeOn}});var wo=t(8774);Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return wo.switchAll}});var Vf=t(3879);Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Vf.switchMap}});var sf=t(3274);Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return sf.switchMapTo}});var yu=t(8712);Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return yu.switchScan}});var so=t(846);Object.defineProperty(e,"take",{enumerable:!0,get:function(){return so.take}});var el=t(8330);Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return el.takeLast}});var Kl=t(4780);Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return Kl.takeUntil}});var Vo=t(2129);Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return Vo.takeWhile}});var vs=t(3964);Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return vs.tap}});var jn=t(8941);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return jn.throttle}});var Zr=t(7640);Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Zr.throttleTime}});var Zl=t(4869);Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return Zl.throwIfEmpty}});var ps=t(489);Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return ps.timeInterval}});var Dc=t(1554);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return Dc.timeout}});var Oa=t(4862);Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Oa.timeoutWith}});var tl=t(6505);Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return tl.timestamp}});var uf=t(2343);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return uf.toArray}});var Ql=t(5477);Object.defineProperty(e,"window",{enumerable:!0,get:function(){return Ql.window}});var rl=t(6746);Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return rl.windowCount}});var wi=t(8208);Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return wi.windowTime}});var Jl=t(6637);Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return Jl.windowToggle}});var aa=t(1141);Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return aa.windowWhen}});var mu=t(5442);Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return mu.withLatestFrom}});var lf=t(187);Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return lf.zipAll}});var ya=t(8538);Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return ya.zipWith}})},8831:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bufferWhen=void 0;var n=t(7843),i=t(1342),a=t(3111),o=t(9445);e.bufferWhen=function(s){return n.operate(function(u,l){var c=null,f=null,d=function(){f==null||f.unsubscribe();var h=c;c=[],h&&l.next(h),o.innerFrom(s()).subscribe(f=a.createOperatorSubscriber(l,d,i.noop))};d(),u.subscribe(a.createOperatorSubscriber(l,function(h){return c==null?void 0:c.push(h)},function(){c&&l.next(c),l.complete()},void 0,function(){return c=f=null}))})}},8888:(r,e,t)=>{var n=t(5636).Buffer,i=n.isEncoding||function(p){switch((p=""+p)&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(p){var g;switch(this.encoding=(function(y){var b=(function(_){if(!_)return"utf8";for(var m;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(m)return;_=(""+_).toLowerCase(),m=!0}})(y);if(typeof b!="string"&&(n.isEncoding===i||!i(y)))throw new Error("Unknown encoding: "+y);return b||y})(p),this.encoding){case"utf16le":this.text=u,this.end=l,g=4;break;case"utf8":this.fillLast=s,g=4;break;case"base64":this.text=c,this.end=f,g=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(g)}function o(p){return p<=127?0:p>>5==6?2:p>>4==14?3:p>>3==30?4:p>>6==2?-1:-2}function s(p){var g=this.lastTotal-this.lastNeed,y=(function(b,_){if((192&_[0])!=128)return b.lastNeed=0,"�";if(b.lastNeed>1&&_.length>1){if((192&_[1])!=128)return b.lastNeed=1,"�";if(b.lastNeed>2&&_.length>2&&(192&_[2])!=128)return b.lastNeed=2,"�"}})(this,p);return y!==void 0?y:this.lastNeed<=p.length?(p.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(p.copy(this.lastChar,g,0,p.length),void(this.lastNeed-=p.length))}function u(p,g){if((p.length-g)%2==0){var y=p.toString("utf16le",g);if(y){var b=y.charCodeAt(y.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",g,p.length-1)}function l(p){var g=p&&p.length?this.write(p):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,y)}return g}function c(p,g){var y=(p.length-g)%3;return y===0?p.toString("base64",g):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",g,p.length-y))}function f(p){var g=p&&p.length?this.write(p):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function d(p){return p.toString(this.encoding)}function h(p){return p&&p.length?this.write(p):""}e.StringDecoder=a,a.prototype.write=function(p){if(p.length===0)return"";var g,y;if(this.lastNeed){if((g=this.fillLast(p))===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y=0?(O>0&&(_.lastNeed=O-1),O):--E=0?(O>0&&(_.lastNeed=O-2),O):--E=0?(O>0&&(O===2?O=0:_.lastNeed=O-3),O):0})(this,p,g);if(!this.lastNeed)return p.toString("utf8",g);this.lastTotal=y;var b=p.length-(y-this.lastNeed);return p.copy(this.lastChar,0,b),p.toString("utf8",g,b)},a.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length}},8917:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,i){this.keys=t,this.records=n,this.summary=i}},8918:function(r,e,t){var n=this&&this.__extends||(function(){var c=function(f,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(h[g]=p[g])},c(f,d)};return function(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function h(){this.constructor=f}c(f,d),f.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectableObservable=void 0;var i=t(4662),a=t(8014),o=t(7561),s=t(3111),u=t(7843),l=(function(c){function f(d,h){var p=c.call(this)||this;return p.source=d,p.subjectFactory=h,p._subject=null,p._refCount=0,p._connection=null,u.hasLift(d)&&(p.lift=d.lift),p}return n(f,c),f.prototype._subscribe=function(d){return this.getSubject().subscribe(d)},f.prototype.getSubject=function(){var d=this._subject;return d&&!d.isStopped||(this._subject=this.subjectFactory()),this._subject},f.prototype._teardown=function(){this._refCount=0;var d=this._connection;this._subject=this._connection=null,d==null||d.unsubscribe()},f.prototype.connect=function(){var d=this,h=this._connection;if(!h){h=this._connection=new a.Subscription;var p=this.getSubject();h.add(this.source.subscribe(s.createOperatorSubscriber(p,void 0,function(){d._teardown(),p.complete()},function(g){d._teardown(),p.error(g)},function(){return d._teardown()}))),h.closed&&(this._connection=null,h=a.Subscription.EMPTY)}return h},f.prototype.refCount=function(){return o.refCount()(this)},f})(i.Observable);e.ConnectableObservable=l},8937:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.distinctUntilChanged=void 0;var n=t(6640),i=t(7843),a=t(3111);function o(s,u){return s===u}e.distinctUntilChanged=function(s,u){return u===void 0&&(u=n.identity),s=s??o,i.operate(function(l,c){var f,d=!0;l.subscribe(a.createOperatorSubscriber(c,function(h){var p=u(h);!d&&s(f,p)||(d=!1,f=p,c.next(h))}))})}},8941:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=void 0;var n=t(7843),i=t(3111),a=t(9445);e.throttle=function(o,s){return n.operate(function(u,l){var c=s??{},f=c.leading,d=f===void 0||f,h=c.trailing,p=h!==void 0&&h,g=!1,y=null,b=null,_=!1,m=function(){b==null||b.unsubscribe(),b=null,p&&(O(),_&&l.complete())},x=function(){b=null,_&&l.complete()},E=function(S){return b=a.innerFrom(o(S)).subscribe(i.createOperatorSubscriber(l,m,x))},O=function(){if(g){g=!1;var S=y;y=null,l.next(S),!_&&E(S)}};u.subscribe(i.createOperatorSubscriber(l,function(S){g=!0,y=S,(!b||b.closed)&&(d?O():E(S))},function(){_=!0,(!(p&&g&&b)||b.closed)&&l.complete()}))})}},8960:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.subscribeOn=void 0;var n=t(7843);e.subscribeOn=function(i,a){return a===void 0&&(a=0),n.operate(function(o,s){s.add(i.schedule(function(){return o.subscribe(s)},a))})}},8977:function(r,e,t){var n=this&&this.__read||function(c,f){var d=typeof Symbol=="function"&&c[Symbol.iterator];if(!d)return c;var h,p,g=d.call(c),y=[];try{for(;(f===void 0||f-- >0)&&!(h=g.next()).done;)y.push(h.value)}catch(b){p={error:b}}finally{try{h&&!h.done&&(d=g.return)&&d.call(g)}finally{if(p)throw p.error}}return y},i=this&&this.__spreadArray||function(c,f){for(var d=0,h=f.length,p=c.length;d0&&(x=new s.SafeSubscriber({next:function(H){return z.next(H)},error:function(H){P=!0,I(),E=l(k,p,H),z.error(H)},complete:function(){T=!0,I(),E=l(k,y),z.complete()}}),a.innerFrom(B).subscribe(x))})(m)}}},8986:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Scheduler=void 0;var n=t(9568),i=(function(){function a(o,s){s===void 0&&(s=a.now),this.schedulerActionCtor=o,this.now=s}return a.prototype.schedule=function(o,s,u){return s===void 0&&(s=0),new this.schedulerActionCtor(this,o).schedule(u,s)},a.now=n.dateTimestampProvider.now,a})();e.Scheduler=i},8987:function(r,e,t){var n=this&&this.__extends||(function(){var E=function(O,S){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,P){T.__proto__=P}||function(T,P){for(var I in P)Object.prototype.hasOwnProperty.call(P,I)&&(T[I]=P[I])},E(O,S)};return function(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function T(){this.constructor=O}E(O,S),O.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}})(),i=this&&this.__awaiter||function(E,O,S,T){return new(S||(S=Promise))(function(P,I){function k(j){try{B(T.next(j))}catch(z){I(z)}}function L(j){try{B(T.throw(j))}catch(z){I(z)}}function B(j){var z;j.done?P(j.value):(z=j.value,z instanceof S?z:new S(function(H){H(z)})).then(k,L)}B((T=T.apply(E,O||[])).next())})},a=this&&this.__generator||function(E,O){var S,T,P,I,k={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return I={next:L(0),throw:L(1),return:L(2)},typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function L(B){return function(j){return(function(z){if(S)throw new TypeError("Generator is already executing.");for(;I&&(I=0,z[0]&&(k=0)),k;)try{if(S=1,T&&(P=2&z[0]?T.return:z[0]?T.throw||((P=T.return)&&P.call(T),0):T.next)&&!(P=P.call(T,z[1])).done)return P;switch(T=0,P&&(z=[2&z[0],P.value]),z[0]){case 0:case 1:P=z;break;case 4:return k.label++,{value:z[1],done:!1};case 5:k.label++,T=z[1],z=[0];continue;case 7:z=k.ops.pop(),k.trys.pop();continue;default:if(!((P=(P=k.trys).length>0&&P[P.length-1])||z[0]!==6&&z[0]!==2)){k=0;continue}if(z[0]===3&&(!P||z[1]>P[0]&&z[1]0)&&!(T=I.next()).done;)k.push(T.value)}catch(L){P={error:L}}finally{try{T&&!T.done&&(S=I.return)&&S.call(I)}finally{if(P)throw P.error}}return k},s=this&&this.__spreadArray||function(E,O,S){if(S||arguments.length===2)for(var T,P=0,I=O.length;PT)},O.prototype._destroyConnection=function(S){return delete this._openConnections[S.id],S.close()},O.prototype._verifyConnectivityAndGetServerVersion=function(S){var T=S.address;return i(this,void 0,void 0,function(){var P,I;return a(this,function(k){switch(k.label){case 0:return[4,this._connectionPool.acquire({},T)];case 1:P=k.sent(),I=new c.ServerInfo(P.server,P.protocol().version),k.label=2;case 2:return k.trys.push([2,,5,7]),P.protocol().isLastMessageLogon()?[3,4]:[4,P.resetAndFlush()];case 3:k.sent(),k.label=4;case 4:return[3,7];case 5:return[4,P.release()];case 6:return k.sent(),[7];case 7:return[2,I]}})})},O.prototype._verifyAuthentication=function(S){var T=S.getAddress,P=S.auth;return i(this,void 0,void 0,function(){var I,k,L,B,j,z;return a(this,function(H){switch(H.label){case 0:I=[],H.label=1;case 1:return H.trys.push([1,8,9,11]),[4,T()];case 2:return k=H.sent(),[4,this._connectionPool.acquire({auth:P,skipReAuth:!0},k)];case 3:if(L=H.sent(),I.push(L),B=!L.protocol().isLastMessageLogon(),!L.supportsReAuth)throw(0,c.newError)("Driver is connected to a database that does not support user switch.");return B&&L.supportsReAuth?[4,this._authenticationProvider.authenticate({connection:L,auth:P,waitReAuth:!0,forceReAuth:!0})]:[3,5];case 4:return H.sent(),[3,7];case 5:return!B||L.supportsReAuth?[3,7]:[4,this._connectionPool.acquire({auth:P},k,{requireNew:!0})];case 6:(j=H.sent())._sticky=!0,I.push(j),H.label=7;case 7:return[2,!0];case 8:if(z=H.sent(),y.includes(z.code))return[2,!1];throw z;case 9:return[4,Promise.all(I.map(function(q){return q.release()}))];case 10:return H.sent(),[7];case 11:return[2]}})})},O.prototype._verifyStickyConnection=function(S){var T=S.auth,P=S.connection;return S.address,i(this,void 0,void 0,function(){var I,k;return a(this,function(L){switch(L.label){case 0:return I=d.object.equals(T,P.authToken),k=!I,P._sticky=I&&!P.supportsReAuth,k||P._sticky?[4,P.release()]:[3,2];case 1:throw L.sent(),(0,c.newError)("Driver is connected to a database that does not support user switch.");case 2:return[2]}})})},O.prototype.close=function(){return i(this,void 0,void 0,function(){return a(this,function(S){switch(S.label){case 0:return[4,this._connectionPool.close()];case 1:return S.sent(),[4,Promise.all(Object.values(this._openConnections).map(function(T){return T.close()}))];case 2:return S.sent(),[2]}})})},O._installIdleObserverOnConnection=function(S,T){S._setIdle(T)},O._removeIdleObserverOnConnection=function(S){S._unsetIdle()},O.prototype._handleSecurityError=function(S,T,P){return this._authenticationProvider.handleError({connection:P,code:S.code})&&(S.retriable=!0),S.code==="Neo.ClientError.Security.AuthorizationExpired"&&this._connectionPool.apply(T,function(I){I.authToken=null}),P&&P.close().catch(function(){}),S},O})(c.ConnectionProvider);e.default=x},8995:function(r,e,t){var n=this&&this.__values||function(c){var f=typeof Symbol=="function"&&Symbol.iterator,d=f&&c[f],h=0;if(d)return d.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&h>=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferToggle=void 0;var i=t(8014),a=t(7843),o=t(9445),s=t(3111),u=t(1342),l=t(7479);e.bufferToggle=function(c,f){return a.operate(function(d,h){var p=[];o.innerFrom(c).subscribe(s.createOperatorSubscriber(h,function(g){var y=[];p.push(y);var b=new i.Subscription;b.add(o.innerFrom(f(g)).subscribe(s.createOperatorSubscriber(h,function(){l.arrRemove(p,y),h.next(y),b.unsubscribe()},u.noop)))},u.noop)),d.subscribe(s.createOperatorSubscriber(h,function(g){var y,b;try{for(var _=n(p),m=_.next();!m.done;m=_.next())m.value.push(g)}catch(x){y={error:x}}finally{try{m&&!m.done&&(b=_.return)&&b.call(_)}finally{if(y)throw y.error}}},function(){for(;p.length>0;)h.next(p.shift());h.complete()}))})}},9014:function(r,e,t){var n=this&&this.__extends||(function(){var E=function(O,S){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,P){T.__proto__=P}||function(T,P){for(var I in P)Object.prototype.hasOwnProperty.call(P,I)&&(T[I]=P[I])},E(O,S)};return function(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function T(){this.constructor=O}E(O,S),O.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}})(),i=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryObserver=e.ProcedureRouteObserver=e.RouteObserver=e.CompletedObserver=e.FailedObserver=e.ResetObserver=e.LogoffObserver=e.LoginObserver=e.ResultStreamObserver=e.StreamObserver=void 0;var a=t(9305),o=i(t(7790)),s=t(6781),u=a.internal.constants.FETCH_ALL,l=a.error.PROTOCOL_ERROR,c=(function(){function E(){}return E.prototype.onNext=function(O){},E.prototype.onError=function(O){},E.prototype.onCompleted=function(O){},E})();e.StreamObserver=c;var f=(function(E){function O(S){var T=S===void 0?{}:S,P=T.reactive,I=P!==void 0&&P,k=T.moreFunction,L=T.discardFunction,B=T.fetchSize,j=B===void 0?u:B,z=T.beforeError,H=T.afterError,q=T.beforeKeys,W=T.afterKeys,$=T.beforeComplete,J=T.afterComplete,X=T.server,Z=T.highRecordWatermark,ue=Z===void 0?Number.MAX_VALUE:Z,re=T.lowRecordWatermark,ne=re===void 0?Number.MAX_VALUE:re,le=T.enrichMetadata,ce=T.onDb,pe=E.call(this)||this;return pe._fieldKeys=null,pe._fieldLookup=null,pe._head=null,pe._queuedRecords=[],pe._tail=null,pe._error=null,pe._observers=[],pe._meta={},pe._server=X,pe._beforeError=z,pe._afterError=H,pe._beforeKeys=q,pe._afterKeys=W,pe._beforeComplete=$,pe._afterComplete=J,pe._enrichMetadata=le||s.functional.identity,pe._queryId=null,pe._moreFunction=k,pe._discardFunction=L,pe._discard=!1,pe._fetchSize=j,pe._lowRecordWatermark=ne,pe._highRecordWatermark=ue,pe._setState(I?x.READY:x.READY_STREAMING),pe._setupAutoPull(),pe._paused=!1,pe._pulled=!I,pe._haveRecordStreamed=!1,pe._onDb=ce,pe}return n(O,E),O.prototype.pause=function(){this._paused=!0},O.prototype.resume=function(){this._paused=!1,this._setupAutoPull(!0),this._state.pull(this)},O.prototype.onNext=function(S){this._haveRecordStreamed=!0;var T=new a.Record(this._fieldKeys,S,this._fieldLookup);this._observers.some(function(P){return P.onNext})?this._observers.forEach(function(P){P.onNext&&P.onNext(T)}):(this._queuedRecords.push(T),this._queuedRecords.length>this._highRecordWatermark&&(this._autoPull=!1))},O.prototype.onCompleted=function(S){this._state.onSuccess(this,S)},O.prototype.onError=function(S){this._state.onError(this,S)},O.prototype.cancel=function(){this._discard=!0},O.prototype.prepareToHandleSingleResponse=function(){this._head=[],this._fieldKeys=[],this._setState(x.STREAMING)},O.prototype.markCompleted=function(){this._head=[],this._fieldKeys=[],this._tail={},this._setState(x.SUCCEEDED)},O.prototype.subscribe=function(S){if(this._head&&S.onKeys&&S.onKeys(this._head),this._queuedRecords.length>0&&S.onNext)for(var T=0;T0}},S));if([void 0,null,"r","w","rw","s"].includes(P.type)){this._setState(x.SUCCEEDED);var I=null;this._beforeComplete&&(I=this._beforeComplete(P));var k=function(){T._tail=P,T._observers.some(function(L){return L.onCompleted})&&T._observers.forEach(function(L){L.onCompleted&&L.onCompleted(P)}),T._afterComplete&&T._afterComplete(P)};I?Promise.resolve(I).then(function(){return k()}):k()}else this.onError((0,a.newError)(`Server returned invalid query type. Expected one of [undefined, null, "r", "w", "rw", "s"] but got '`.concat(P.type,"'"),l))},O.prototype._handleRunSuccess=function(S,T){var P=this;if(this._fieldKeys===null){if(this._fieldKeys=[],this._fieldLookup={},S.fields&&S.fields.length>0){this._fieldKeys=S.fields;for(var I=0;I{Object.defineProperty(e,"__esModule",{value:!0}),e.fromSubscribable=void 0;var n=t(4662);e.fromSubscribable=function(i){return new n.Observable(function(a){return i.subscribe(a)})}},6842:function(r,e,t){var n=this&&this.__awaiter||function(p,g,y,b){return new(y||(y=Promise))(function(_,m){function x(S){try{O(b.next(S))}catch(T){m(T)}}function E(S){try{O(b.throw(S))}catch(T){m(T)}}function O(S){var T;S.done?_(S.value):(T=S.value,T instanceof y?T:new y(function(P){P(T)})).then(x,E)}O((b=b.apply(p,g||[])).next())})},i=this&&this.__generator||function(p,g){var y,b,_,m,x={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return m={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function E(O){return function(S){return(function(T){if(y)throw new TypeError("Generator is already executing.");for(;m&&(m=0,T[0]&&(x=0)),x;)try{if(y=1,b&&(_=2&T[0]?b.return:T[0]?b.throw||((_=b.return)&&_.call(b),0):b.next)&&!(_=_.call(b,T[1])).done)return _;switch(b=0,_&&(T=[2&T[0],_.value]),T[0]){case 0:case 1:_=T;break;case 4:return x.label++,{value:T[1],done:!1};case 5:x.label++,b=T[1],T=[0];continue;case 7:T=x.ops.pop(),x.trys.pop();continue;default:if(!((_=(_=x.trys).length>0&&_[_.length-1])||T[0]!==6&&T[0]!==2)){x=0;continue}if(T[0]===3&&(!_||T[1]>_[0]&&T[1]<_[3])){x.label=T[1];break}if(T[0]===6&&x.label<_[1]){x.label=_[1],_=T;break}if(_&&x.label<_[2]){x.label=_[2],x.ops.push(T);break}_[2]&&x.ops.pop(),x.trys.pop();continue}T=g.call(p,x)}catch(P){T=[6,P],b=0}finally{y=_=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}})([O,S])}}},a=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0});var o=a(t(7589)),s=t(9691),u=t(4883),l=(function(){function p(g){var y=g.create,b=y===void 0?function(q,W,$){return n(H,void 0,void 0,function(){return i(this,function(J){switch(J.label){case 0:return[4,Promise.reject(new Error("Not implemented"))];case 1:return[2,J.sent()]}})})}:y,_=g.destroy,m=_===void 0?function(q){return n(H,void 0,void 0,function(){return i(this,function(W){switch(W.label){case 0:return[4,Promise.resolve()];case 1:return[2,W.sent()]}})})}:_,x=g.validateOnAcquire,E=x===void 0?function(q,W){return!0}:x,O=g.validateOnRelease,S=O===void 0?function(q){return!0}:O,T=g.installIdleObserver,P=T===void 0?function(q,W){}:T,I=g.removeIdleObserver,k=I===void 0?function(q){}:I,L=g.config,B=L===void 0?o.default.defaultConfig():L,j=g.log,z=j===void 0?u.Logger.noOp():j,H=this;this._create=b,this._destroy=m,this._validateOnAcquire=E,this._validateOnRelease=S,this._installIdleObserver=P,this._removeIdleObserver=k,this._maxSize=B.maxSize,this._acquisitionTimeout=B.acquisitionTimeout,this._pools={},this._pendingCreates={},this._acquireRequests={},this._activeResourceCounts={},this._release=this._release.bind(this),this._log=z,this._closed=!1}return p.prototype.acquire=function(g,y,b){return n(this,void 0,void 0,function(){var _,m,x=this;return i(this,function(E){switch(E.label){case 0:return _=y.asKey(),(m=this._acquireRequests)[_]==null&&(m[_]=[]),[4,new Promise(function(O,S){var T=setTimeout(function(){var I=m[_];if(I!=null&&(m[_]=I.filter(function(B){return B!==P})),!P.isCompleted()){var k=x.activeResourceCount(y),L=x.has(y)?x._pools[_].length:0;P.reject((0,s.newError)("Connection acquisition timed out in ".concat(x._acquisitionTimeout," ms. Pool status: Active conn count = ").concat(k,", Idle conn count = ").concat(L,".")))}},x._acquisitionTimeout);typeof T=="object"&&T.unref();var P=new d(_,g,b,O,S,T,x._log);m[_].push(P),x._processPendingAcquireRequests(y)})];case 1:return[2,E.sent()]}})})},p.prototype.purge=function(g){return n(this,void 0,void 0,function(){return i(this,function(y){switch(y.label){case 0:return[4,this._purgeKey(g.asKey())];case 1:return[2,y.sent()]}})})},p.prototype.apply=function(g,y){var b=g.asKey();b in this._pools&&this._pools[b].apply(y)},p.prototype.close=function(){return n(this,void 0,void 0,function(){var g=this;return i(this,function(y){switch(y.label){case 0:return this._closed=!0,[4,Promise.all(Object.keys(this._pools).map(function(b){return n(g,void 0,void 0,function(){return i(this,function(_){switch(_.label){case 0:return[4,this._purgeKey(b)];case 1:return[2,_.sent()]}})})})).then()];case 1:return[2,y.sent()]}})})},p.prototype.keepAll=function(g){return n(this,void 0,void 0,function(){var y,b,_,m=this;return i(this,function(x){switch(x.label){case 0:return y=g.map(function(E){return E.asKey()}),b=Object.keys(this._pools),_=b.filter(function(E){return!y.includes(E)}),[4,Promise.all(_.map(function(E){return n(m,void 0,void 0,function(){return i(this,function(O){switch(O.label){case 0:return[4,this._purgeKey(E)];case 1:return[2,O.sent()]}})})})).then()];case 1:return[2,x.sent()]}})})},p.prototype.has=function(g){return g.asKey()in this._pools},p.prototype.activeResourceCount=function(g){var y;return(y=this._activeResourceCounts[g.asKey()])!==null&&y!==void 0?y:0},p.prototype._getOrInitializePoolFor=function(g){var y=this._pools[g];return y==null&&(y=new h,this._pools[g]=y,this._pendingCreates[g]=0),y},p.prototype._acquire=function(g,y,b){return n(this,void 0,void 0,function(){var _,m,x,E,O,S,T,P=this;return i(this,function(I){switch(I.label){case 0:if(this._closed)throw(0,s.newError)("Pool is closed, it is no more able to serve requests.");if(_=y.asKey(),m=this._getOrInitializePoolFor(_),b)return[3,10];I.label=1;case 1:if(!(m.length>0))return[3,10];if((x=m.pop())==null)return[3,1];c(_,this._activeResourceCounts),this._removeIdleObserver!=null&&this._removeIdleObserver(x),E=!1,I.label=2;case 2:return I.trys.push([2,4,,6]),[4,this._validateOnAcquire(g,x)];case 3:return E=I.sent(),[3,6];case 4:return O=I.sent(),f(_,this._activeResourceCounts),m.removeInUse(x),[4,this._destroy(x)];case 5:throw I.sent(),O;case 6:return E?(this._log.isDebugEnabled()&&this._log.debug("".concat(x," acquired from the pool ").concat(_)),[2,{resource:x,pool:m}]):[3,7];case 7:return f(_,this._activeResourceCounts),m.removeInUse(x),[4,this._destroy(x)];case 8:I.sent(),I.label=9;case 9:return[3,1];case 10:if(this._maxSize>0&&this.activeResourceCount(y)+this._pendingCreates[_]>=this._maxSize)return[2,{resource:null,pool:m}];this._pendingCreates[_]=this._pendingCreates[_]+1,I.label=11;case 11:return I.trys.push([11,,15,16]),this.activeResourceCount(y)+m.length>=this._maxSize&&b?(T=m.pop())==null?[3,13]:(this._removeIdleObserver!=null&&this._removeIdleObserver(T),m.removeInUse(T),[4,this._destroy(T)]):[3,13];case 12:I.sent(),I.label=13;case 13:return[4,this._create(g,y,function(k,L){return n(P,void 0,void 0,function(){return i(this,function(B){switch(B.label){case 0:return[4,this._release(k,L,m)];case 1:return[2,B.sent()]}})})})];case 14:return S=I.sent(),m.pushInUse(S),c(_,this._activeResourceCounts),this._log.isDebugEnabled()&&this._log.debug("".concat(S," created for the pool ").concat(_)),[3,16];case 15:return this._pendingCreates[_]=this._pendingCreates[_]-1,[7];case 16:return[2,{resource:S,pool:m}]}})})},p.prototype._release=function(g,y,b){return n(this,void 0,void 0,function(){var _,m=this;return i(this,function(x){switch(x.label){case 0:_=g.asKey(),x.label=1;case 1:return x.trys.push([1,,9,10]),b.isActive()?[4,this._validateOnRelease(y)]:[3,6];case 2:return x.sent()?[3,4]:(this._log.isDebugEnabled()&&this._log.debug("".concat(y," destroyed and can't be released to the pool ").concat(_," because it is not functional")),b.removeInUse(y),[4,this._destroy(y)]);case 3:return x.sent(),[3,5];case 4:this._installIdleObserver!=null&&this._installIdleObserver(y,{onError:function(E){m._log.debug("Idle connection ".concat(y," destroyed because of error: ").concat(E));var O=m._pools[_];O!=null&&(m._pools[_]=O.filter(function(S){return S!==y}),O.removeInUse(y)),m._destroy(y).catch(function(){})}}),b.push(y),this._log.isDebugEnabled()&&this._log.debug("".concat(y," released to the pool ").concat(_)),x.label=5;case 5:return[3,8];case 6:return this._log.isDebugEnabled()&&this._log.debug("".concat(y," destroyed and can't be released to the pool ").concat(_," because pool has been purged")),b.removeInUse(y),[4,this._destroy(y)];case 7:x.sent(),x.label=8;case 8:return[3,10];case 9:return f(_,this._activeResourceCounts),this._processPendingAcquireRequests(g),[7];case 10:return[2]}})})},p.prototype._purgeKey=function(g){return n(this,void 0,void 0,function(){var y,b,_;return i(this,function(m){switch(m.label){case 0:if(y=this._pools[g],b=[],y==null)return[3,2];for(;y.length>0;)(_=y.pop())!=null&&(this._removeIdleObserver!=null&&this._removeIdleObserver(_),b.push(this._destroy(_)));return y.close(),delete this._pools[g],[4,Promise.all(b)];case 1:m.sent(),m.label=2;case 2:return[2]}})})},p.prototype._processPendingAcquireRequests=function(g){var y=this,b=g.asKey(),_=this._acquireRequests[b];if(_!=null){var m=_.shift();m!=null?this._acquire(m.context,g,m.requireNew).catch(function(x){return m.reject(x),{resource:null,pool:null}}).then(function(x){var E=x.resource,O=x.pool;E!=null&&O!=null?m.isCompleted()?y._release(g,E,O).catch(function(S){y._log.isDebugEnabled()&&y._log.debug("".concat(E," could not be release back to the pool. Cause: ").concat(S))}):m.resolve(E):m.isCompleted()||(y._acquireRequests[b]==null&&(y._acquireRequests[b]=[]),y._acquireRequests[b].unshift(m))}).catch(function(x){return m.reject(x)}):delete this._acquireRequests[b]}},p})();function c(p,g){var y,b=(y=g[p])!==null&&y!==void 0?y:0;g[p]=b+1}function f(p,g){var y,b=((y=g[p])!==null&&y!==void 0?y:0)-1;b>0?g[p]=b:delete g[p]}var d=(function(){function p(g,y,b,_,m,x,E){this._key=g,this._context=y,this._resolve=_,this._reject=m,this._timeoutId=x,this._log=E,this._completed=!1,this._config=b??{}}return Object.defineProperty(p.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"requireNew",{get:function(){var g;return(g=this._config.requireNew)!==null&&g!==void 0&&g},enumerable:!1,configurable:!0}),p.prototype.isCompleted=function(){return this._completed},p.prototype.resolve=function(g){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._log.isDebugEnabled()&&this._log.debug("".concat(g," acquired from the pool ").concat(this._key)),this._resolve(g))},p.prototype.reject=function(g){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._reject(g))},p})(),h=(function(){function p(){this._active=!0,this._elements=[],this._elementsInUse=new Set}return p.prototype.isActive=function(){return this._active},p.prototype.close=function(){this._active=!1,this._elements=[],this._elementsInUse=new Set},p.prototype.filter=function(g){return this._elements=this._elements.filter(g),this},p.prototype.apply=function(g){this._elements.forEach(g),this._elementsInUse.forEach(g)},Object.defineProperty(p.prototype,"length",{get:function(){return this._elements.length},enumerable:!1,configurable:!0}),p.prototype.pop=function(){var g=this._elements.pop();return g!=null&&this._elementsInUse.add(g),g},p.prototype.push=function(g){return this._elementsInUse.delete(g),this._elements.push(g)},p.prototype.pushInUse=function(g){this._elementsInUse.add(g)},p.prototype.removeInUse=function(g){this._elementsInUse.delete(g)},p})();e.default=l},6872:function(r,e){var t=this&&this.__extends||(function(){var a=function(o,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c])},a(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function u(){this.constructor=o}a(o,s),o.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.InternalConfig=e.Config=void 0;var n=function(){this.encrypted=void 0,this.trust=void 0,this.trustedCertificates=[],this.maxConnectionPoolSize=100,this.maxConnectionLifetime=36e5,this.connectionAcquisitionTimeout=6e4,this.maxTransactionRetryTime=3e4,this.connectionLivenessCheckTimeout=void 0,this.connectionTimeout=3e4,this.disableLosslessIntegers=!1,this.useBigInt=!1,this.logging=void 0,this.resolver=void 0,this.notificationFilter=void 0,this.userAgent=void 0,this.telemetryDisabled=!1,this.clientCertificate=void 0};e.Config=n;var i=(function(a){function o(){return a!==null&&a.apply(this,arguments)||this}return t(o,a),o})(n);e.InternalConfig=i},6890:function(r,e,t){var n=this&&this.__extends||(function(){var d=function(h,p){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])},d(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function g(){this.constructor=h}d(h,p),h.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(d){for(var h,p=1,g=arguments.length;p{Object.defineProperty(e,"__esModule",{value:!0}),e.lastValueFrom=void 0;var n=t(2823);e.lastValueFrom=function(i,a){var o=typeof a=="object";return new Promise(function(s,u){var l,c=!1;i.subscribe({next:function(f){l=f,c=!0},error:u,complete:function(){c?s(l):o?s(a.defaultValue):u(new n.EmptyError)}})})}},6902:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.flatMap=void 0;var n=t(983);e.flatMap=n.mergeMap},6931:r=>{r.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]}},6985:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleArray=void 0;var n=t(4662);e.scheduleArray=function(i,a){return new n.Observable(function(o){var s=0;return a.schedule(function(){s===i.length?o.complete():(o.next(i[s++]),o.closed||this.schedule())})})}},6995:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(E,O,S,T){T===void 0&&(T=S);var P=Object.getOwnPropertyDescriptor(O,S);P&&!("get"in P?!O.__esModule:P.writable||P.configurable)||(P={enumerable:!0,get:function(){return O[S]}}),Object.defineProperty(E,T,P)}:function(E,O,S,T){T===void 0&&(T=S),E[T]=O[S]}),i=this&&this.__setModuleDefault||(Object.create?function(E,O){Object.defineProperty(E,"default",{enumerable:!0,value:O})}:function(E,O){E.default=O}),a=this&&this.__importStar||function(E){if(E&&E.__esModule)return E;var O={};if(E!=null)for(var S in E)S!=="default"&&Object.prototype.hasOwnProperty.call(E,S)&&n(O,E,S);return i(O,E),O};Object.defineProperty(e,"__esModule",{value:!0}),e.pool=e.boltAgent=e.objectUtil=e.resolver=e.serverAddress=e.urlUtil=e.logger=e.transactionExecutor=e.txConfig=e.connectionHolder=e.constants=e.bookmarks=e.observer=e.temporalUtil=e.util=void 0;var o=a(t(6587));e.util=o;var s=a(t(5022));e.temporalUtil=s;var u=a(t(2696));e.observer=u;var l=a(t(9730));e.bookmarks=l;var c=a(t(326));e.constants=c;var f=a(t(3618));e.connectionHolder=f;var d=a(t(754));e.txConfig=d;var h=a(t(6189));e.transactionExecutor=h;var p=a(t(4883));e.logger=p;var g=a(t(407));e.urlUtil=g;var y=a(t(7509));e.serverAddress=y;var b=a(t(9470));e.resolver=b;var _=a(t(93));e.objectUtil=_;var m=a(t(3488));e.boltAgent=m;var x=a(t(2906));e.pool=x},7021:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNATURES=void 0;var n=t(9305),i=n.internal.constants,a=i.ACCESS_MODE_READ,o=i.FETCH_ALL,s=n.internal.util.assertString,u=Object.freeze({INIT:1,RESET:15,RUN:16,PULL_ALL:63,HELLO:1,GOODBYE:2,BEGIN:17,COMMIT:18,ROLLBACK:19,TELEMETRY:84,ROUTE:102,LOGON:106,LOGOFF:107,DISCARD:47,PULL:63});e.SIGNATURES=u;var l=(function(){function m(x,E,O){this.signature=x,this.fields=E,this.toString=O}return m.init=function(x,E){return new m(1,[x,E],function(){return"INIT ".concat(x," {...}")})},m.run=function(x,E){return new m(16,[x,E],function(){return"RUN ".concat(x," ").concat(n.json.stringify(E))})},m.pullAll=function(){return p},m.reset=function(){return g},m.hello=function(x,E,O,S){O===void 0&&(O=null),S===void 0&&(S=null);var T=Object.assign({user_agent:x},E);return O&&(T.routing=O),S&&(T.patch_bolt=S),new m(1,[T],function(){return"HELLO {user_agent: '".concat(x,"', ...}")})},m.hello5x1=function(x,E){E===void 0&&(E=null);var O={user_agent:x};return E&&(O.routing=E),new m(1,[O],function(){return"HELLO {user_agent: '".concat(x,"', ...}")})},m.hello5x2=function(x,E,O){E===void 0&&(E=null),O===void 0&&(O=null);var S={user_agent:x};return d(S,E),O&&(S.routing=O),new m(1,[S],function(){return"HELLO ".concat(n.json.stringify(S))})},m.hello5x3=function(x,E,O,S){O===void 0&&(O=null),S===void 0&&(S=null);var T={};return x&&(T.user_agent=x),E&&(T.bolt_agent={product:E.product,platform:E.platform,language:E.language,language_details:E.languageDetails}),d(T,O),S&&(T.routing=S),new m(1,[T],function(){return"HELLO ".concat(n.json.stringify(T))})},m.hello5x5=function(x,E,O,S){O===void 0&&(O=null),S===void 0&&(S=null);var T={};return x&&(T.user_agent=x),E&&(T.bolt_agent={product:E.product,platform:E.platform,language:E.language,language_details:E.languageDetails}),h(T,O),S&&(T.routing=S),new m(1,[T],function(){return"HELLO ".concat(n.json.stringify(T))})},m.logon=function(x){return new m(106,[x],function(){return"LOGON { ... }"})},m.logoff=function(){return new m(107,[],function(){return"LOGOFF"})},m.begin=function(x){var E=x===void 0?{}:x,O=c(E.bookmarks,E.txConfig,E.database,E.mode,E.impersonatedUser,E.notificationFilter);return new m(17,[O],function(){return"BEGIN ".concat(n.json.stringify(O))})},m.begin5x5=function(x){var E=x===void 0?{}:x,O=c(E.bookmarks,E.txConfig,E.database,E.mode,E.impersonatedUser,E.notificationFilter,{appendNotificationFilter:h});return new m(17,[O],function(){return"BEGIN ".concat(n.json.stringify(O))})},m.commit=function(){return y},m.rollback=function(){return b},m.runWithMetadata=function(x,E,O){var S=O===void 0?{}:O,T=c(S.bookmarks,S.txConfig,S.database,S.mode,S.impersonatedUser,S.notificationFilter);return new m(16,[x,E,T],function(){return"RUN ".concat(x," ").concat(n.json.stringify(E)," ").concat(n.json.stringify(T))})},m.runWithMetadata5x5=function(x,E,O){var S=O===void 0?{}:O,T=c(S.bookmarks,S.txConfig,S.database,S.mode,S.impersonatedUser,S.notificationFilter,{appendNotificationFilter:h});return new m(16,[x,E,T],function(){return"RUN ".concat(x," ").concat(n.json.stringify(E)," ").concat(n.json.stringify(T))})},m.goodbye=function(){return _},m.pull=function(x){var E=x===void 0?{}:x,O=E.stmtId,S=O===void 0?-1:O,T=E.n,P=f(S??-1,(T===void 0?o:T)||o);return new m(63,[P],function(){return"PULL ".concat(n.json.stringify(P))})},m.discard=function(x){var E=x===void 0?{}:x,O=E.stmtId,S=O===void 0?-1:O,T=E.n,P=f(S??-1,(T===void 0?o:T)||o);return new m(47,[P],function(){return"DISCARD ".concat(n.json.stringify(P))})},m.telemetry=function(x){var E=x.api,O=(0,n.int)(E);return new m(84,[O],function(){return"TELEMETRY ".concat(O.toString())})},m.route=function(x,E,O){return x===void 0&&(x={}),E===void 0&&(E=[]),O===void 0&&(O=null),new m(102,[x,E,O],function(){return"ROUTE ".concat(n.json.stringify(x)," ").concat(n.json.stringify(E)," ").concat(O)})},m.routeV4x4=function(x,E,O){x===void 0&&(x={}),E===void 0&&(E=[]),O===void 0&&(O={});var S={};return O.databaseName&&(S.db=O.databaseName),O.impersonatedUser&&(S.imp_user=O.impersonatedUser),new m(102,[x,E,S],function(){return"ROUTE ".concat(n.json.stringify(x)," ").concat(n.json.stringify(E)," ").concat(n.json.stringify(S))})},m})();function c(m,x,E,O,S,T,P){var I;P===void 0&&(P={});var k={};return m.isEmpty()||(k.bookmarks=m.values()),x.timeout!==null&&(k.tx_timeout=x.timeout),x.metadata&&(k.tx_metadata=x.metadata),E&&(k.db=s(E,"database")),S&&(k.imp_user=s(S,"impersonatedUser")),O===a&&(k.mode="r"),((I=P.appendNotificationFilter)!==null&&I!==void 0?I:d)(k,T),k}function f(m,x){var E={n:(0,n.int)(x)};return m!==-1&&(E.qid=(0,n.int)(m)),E}function d(m,x){x&&(x.minimumSeverityLevel&&(m.notifications_minimum_severity=x.minimumSeverityLevel),x.disabledCategories&&(m.notifications_disabled_categories=x.disabledCategories),x.disabledClassifications&&(m.notifications_disabled_categories=x.disabledClassifications))}function h(m,x){x&&(x.minimumSeverityLevel&&(m.notifications_minimum_severity=x.minimumSeverityLevel),x.disabledCategories&&(m.notifications_disabled_classifications=x.disabledCategories),x.disabledClassifications&&(m.notifications_disabled_classifications=x.disabledClassifications))}e.default=l;var p=new l(63,[],function(){return"PULL_ALL"}),g=new l(15,[],function(){return"RESET"}),y=new l(18,[],function(){return"COMMIT"}),b=new l(19,[],function(){return"ROLLBACK"}),_=new l(2,[],function(){return"GOODBYE"})},7041:function(r,e,t){var n=this&&this.__awaiter||function(s,u,l,c){return new(l||(l=Promise))(function(f,d){function h(y){try{g(c.next(y))}catch(b){d(b)}}function p(y){try{g(c.throw(y))}catch(b){d(b)}}function g(y){var b;y.done?f(y.value):(b=y.value,b instanceof l?b:new l(function(_){_(b)})).then(h,p)}g((c=c.apply(s,u||[])).next())})},i=this&&this.__generator||function(s,u){var l,c,f,d,h={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return d={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(g){return function(y){return(function(b){if(l)throw new TypeError("Generator is already executing.");for(;d&&(d=0,b[0]&&(h=0)),h;)try{if(l=1,c&&(f=2&b[0]?c.return:b[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,b[1])).done)return f;switch(c=0,f&&(b=[2&b[0],f.value]),b[0]){case 0:case 1:f=b;break;case 4:return h.label++,{value:b[1],done:!1};case 5:h.label++,c=b[1],b=[0];continue;case 7:b=h.ops.pop(),h.trys.pop();continue;default:if(!((f=(f=h.trys).length>0&&f[f.length-1])||b[0]!==6&&b[0]!==2)){h=0;continue}if(b[0]===3&&(!f||b[1]>f[0]&&b[1]{var n=t(3206);r.exports=function(i,a){var o=n(a),s=[];return(s=s.concat(o(i))).concat(o(null))}},7057:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ArgumentOutOfRangeError=void 0;var n=t(5568);e.ArgumentOutOfRangeError=n.createErrorClass(function(i){return function(){i(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},7093:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isPoint=e.Point=void 0;var n=t(6587),i="__isPoint__",a=(function(){function s(u,l,c,f){this.srid=(0,n.assertNumberOrInteger)(u,"SRID"),this.x=(0,n.assertNumber)(l,"X coordinate"),this.y=(0,n.assertNumber)(c,"Y coordinate"),this.z=f==null?f:(0,n.assertNumber)(f,"Z coordinate"),Object.freeze(this)}return s.prototype.toString=function(){return this.z==null||isNaN(this.z)?"Point{srid=".concat(o(this.srid),", x=").concat(o(this.x),", y=").concat(o(this.y),"}"):"Point{srid=".concat(o(this.srid),", x=").concat(o(this.x),", y=").concat(o(this.y),", z=").concat(o(this.z),"}")},s})();function o(s){return Number.isInteger(s)?s.toString()+".0":s.toString()}e.Point=a,Object.defineProperty(a.prototype,i,{value:!0,enumerable:!1,configurable:!1,writable:!1}),e.isPoint=function(s){return s!=null&&s[i]===!0}},7101:r=>{r.exports=function(e){return!(!e||typeof e=="string")&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String"))}},7110:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.executeSchedule=void 0,e.executeSchedule=function(t,n,i,a,o){a===void 0&&(a=0),o===void 0&&(o=!1);var s=n.schedule(function(){i(),o?t.add(this.schedule(null,a)):this.unsubscribe()},a);if(t.add(s),!o)return s}},7168:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(l,c,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(c,f);h&&!("get"in h?!c.__esModule:h.writable||h.configurable)||(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,d,h)}:function(l,c,f,d){d===void 0&&(d=f),l[d]=c[f]}),i=this&&this.__setModuleDefault||(Object.create?function(l,c){Object.defineProperty(l,"default",{enumerable:!0,value:c})}:function(l,c){l.default=c}),a=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)&&n(c,l,f);return i(c,l),c};Object.defineProperty(e,"__esModule",{value:!0}),e.structure=e.v2=e.v1=void 0;var o=a(t(5361));e.v1=o;var s=a(t(2072));e.v2=s;var u=a(t(7665));e.structure=u,e.default=s},7174:function(r,e,t){var n=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseBuffer=void 0;var i=n(t(45));e.BaseBuffer=i.default,e.default=i.default},7192:r=>{r.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7210:function(r,e,t){var n=this&&this.__values||function(f){var d=typeof Symbol=="function"&&Symbol.iterator,h=d&&f[d],p=0;if(h)return h.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&p>=f.length&&(f=void 0),{value:f&&f[p++],done:!f}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferTime=void 0;var i=t(8014),a=t(7843),o=t(3111),s=t(7479),u=t(7961),l=t(1107),c=t(7110);e.bufferTime=function(f){for(var d,h,p=[],g=1;g=0?c.executeSchedule(x,y,T,b,!0):O=!0,T();var P=o.createOperatorSubscriber(x,function(I){var k,L,B=E.slice();try{for(var j=n(B),z=j.next();!z.done;z=j.next()){var H=z.value,q=H.buffer;q.push(I),_<=q.length&&S(H)}}catch(W){k={error:W}}finally{try{z&&!z.done&&(L=j.return)&&L.call(j)}finally{if(k)throw k.error}}},function(){for(;E!=null&&E.length;)x.next(E.shift().buffer);P==null||P.unsubscribe(),x.complete(),x.unsubscribe()},void 0,function(){return E=null});m.subscribe(P)})}},7220:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.publishBehavior=void 0;var n=t(1637),i=t(8918);e.publishBehavior=function(a){return function(o){var s=new n.BehaviorSubject(a);return new i.ConnectableObservable(o,function(){return s})}}},7245:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TestTools=e.Immediate=void 0;var t,n=1,i={};function a(o){return o in i&&(delete i[o],!0)}e.Immediate={setImmediate:function(o){var s=n++;return i[s]=!0,t||(t=Promise.resolve()),t.then(function(){return a(s)&&o()}),s},clearImmediate:function(o){a(o)}},e.TestTools={pending:function(){return Object.keys(i).length}}},7264:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(I){for(var k,L=1,B=arguments.length;L0&&j[j.length-1])||J[0]!==6&&J[0]!==2)){H=0;continue}if(J[0]===3&&(!j||J[1]>j[0]&&J[1]0||L===0?L:L<0?Number.MAX_SAFE_INTEGER:k}function P(I,k){var L=parseInt(I,10);if(L>0||L===l.FETCH_ALL)return L;if(L===0||L<0)throw new Error("The fetch size can only be a positive value or ".concat(l.FETCH_ALL," for ALL. However fetchSize = ").concat(L));return k}e.Driver=S,e.default=S},7286:function(r,e,t){var n=this&&this.__read||function(f,d){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var p,g,y=h.call(f),b=[];try{for(;(d===void 0||d-- >0)&&!(p=y.next()).done;)b.push(p.value)}catch(_){g={error:_}}finally{try{p&&!p.done&&(h=y.return)&&h.call(y)}finally{if(g)throw g.error}}return b},i=this&&this.__spreadArray||function(f,d){for(var h=0,p=d.length,g=f.length;h{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAll=void 0;var n=t(983),i=t(6640);e.mergeAll=function(a){return a===void 0&&(a=1/0),n.mergeMap(i.identity,a)}},7315:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reportUnhandledError=void 0;var n=t(3413),i=t(9155);e.reportUnhandledError=function(a){i.timeoutProvider.setTimeout(function(){var o=n.config.onUnhandledError;if(!o)throw a;o(a)})}},7331:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.argsArgArrayOrObject=void 0;var t=Array.isArray,n=Object.getPrototypeOf,i=Object.prototype,a=Object.keys;e.argsArgArrayOrObject=function(o){if(o.length===1){var s=o[0];if(t(s))return{args:s,keys:null};if((l=s)&&typeof l=="object"&&n(l)===i){var u=a(s);return{args:u.map(function(c){return s[c]}),keys:u}}}var l;return{args:o,keys:null}}},7372:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.skipUntil=void 0;var n=t(7843),i=t(3111),a=t(9445),o=t(1342);e.skipUntil=function(s){return n.operate(function(u,l){var c=!1,f=i.createOperatorSubscriber(l,function(){f==null||f.unsubscribe(),c=!0},o.noop);a.innerFrom(s).subscribe(f),u.subscribe(i.createOperatorSubscriber(l,function(d){return c&&l.next(d)}))})}},7428:function(r,e,t){var n=this&&this.__extends||(function(){var ce=function(pe,fe){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,de){se.__proto__=de}||function(se,de){for(var ge in de)Object.prototype.hasOwnProperty.call(de,ge)&&(se[ge]=de[ge])},ce(pe,fe)};return function(pe,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");function se(){this.constructor=pe}ce(pe,fe),pe.prototype=fe===null?Object.create(fe):(se.prototype=fe.prototype,new se)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(ce){for(var pe,fe=1,se=arguments.length;fe0&&de[de.length-1])||Ce[0]!==6&&Ce[0]!==2)){Oe=0;continue}if(Ce[0]===3&&(!de||Ce[1]>de[0]&&Ce[1]=ce.length&&(ce=void 0),{value:ce&&ce[se++],done:!ce}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(ce,pe){var fe=typeof Symbol=="function"&&ce[Symbol.iterator];if(!fe)return ce;var se,de,ge=fe.call(ce),Oe=[];try{for(;(pe===void 0||pe-- >0)&&!(se=ge.next()).done;)Oe.push(se.value)}catch(ke){de={error:ke}}finally{try{se&&!se.done&&(fe=ge.return)&&fe.call(ge)}finally{if(de)throw de.error}}return Oe},d=this&&this.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(e,"__esModule",{value:!0});var h=t(9305),p=s(t(206)),g=t(7452),y=d(t(4132)),b=d(t(8987)),_=t(4455),m=t(7721),x=t(6781),E=h.error.SERVICE_UNAVAILABLE,O=h.error.SESSION_EXPIRED,S=h.internal.bookmarks.Bookmarks,T=h.internal.constants,P=T.ACCESS_MODE_READ,I=T.ACCESS_MODE_WRITE,k=T.BOLT_PROTOCOL_V3,L=T.BOLT_PROTOCOL_V4_0,B=T.BOLT_PROTOCOL_V4_4,j=T.BOLT_PROTOCOL_V5_1,z="Neo.ClientError.Database.DatabaseNotFound",H="Neo.ClientError.Transaction.InvalidBookmark",q="Neo.ClientError.Transaction.InvalidBookmarkMixture",W="Neo.ClientError.Security.AuthorizationExpired",$="Neo.ClientError.Statement.ArgumentError",J="Neo.ClientError.Request.Invalid",X="Neo.ClientError.Statement.TypeError",Z="N/A",ue=null,re=(0,h.int)(3e4),ne=(function(ce){function pe(fe){var se=fe.id,de=fe.address,ge=fe.routingContext,Oe=fe.hostNameResolver,ke=fe.config,De=fe.log,Ne=fe.userAgent,Ce=fe.boltAgent,Y=fe.authTokenManager,Q=fe.routingTablePurgeDelay,ie=fe.newPool,we=ce.call(this,{id:se,config:ke,log:De,userAgent:Ne,boltAgent:Ce,authTokenManager:Y,newPool:ie},function(Ee){return u(we,void 0,void 0,function(){var Me,Ie;return l(this,function(Ye){switch(Ye.label){case 0:return Me=m.createChannelConnection,Ie=[Ee,this._config,this._createConnectionErrorHandler(),this._log],[4,this._clientCertificateHolder.getClientCertificate()];case 1:return[2,Me.apply(void 0,Ie.concat([Ye.sent(),this._routingContext,this._channelSsrCallback.bind(this)]))]}})})})||this;return we._routingContext=i(i({},ge),{address:de.toString()}),we._seedRouter=de,we._rediscovery=new p.default(we._routingContext),we._loadBalancingStrategy=new _.LeastConnectedLoadBalancingStrategy(we._connectionPool),we._hostNameResolver=Oe,we._dnsResolver=new g.HostNameResolver,we._log=De,we._useSeedRouter=!0,we._routingTableRegistry=new le(Q?(0,h.int)(Q):re),we._refreshRoutingTable=x.functional.reuseOngoingRequest(we._refreshRoutingTable,we),we._withSSR=0,we._withoutSSR=0,we}return n(pe,ce),pe.prototype._createConnectionErrorHandler=function(){return new m.ConnectionErrorHandler(O)},pe.prototype._handleUnavailability=function(fe,se,de){return this._log.warn("Routing driver ".concat(this._id," will forget ").concat(se," for database '").concat(de,"' because of an error ").concat(fe.code," '").concat(fe.message,"'")),this.forget(se,de||ue),fe},pe.prototype._handleSecurityError=function(fe,se,de,ge){return this._log.warn("Routing driver ".concat(this._id," will close connections to ").concat(se," for database '").concat(ge,"' because of an error ").concat(fe.code," '").concat(fe.message,"'")),ce.prototype._handleSecurityError.call(this,fe,se,de,ge)},pe.prototype._handleWriteFailure=function(fe,se,de){return this._log.warn("Routing driver ".concat(this._id," will forget writer ").concat(se," for database '").concat(de,"' because of an error ").concat(fe.code," '").concat(fe.message,"'")),this.forgetWriter(se,de||ue),(0,h.newError)("No longer possible to write to server at "+se,O,fe)},pe.prototype.acquireConnection=function(fe){var se=fe===void 0?{}:fe,de=se.accessMode,ge=se.database,Oe=se.bookmarks,ke=se.impersonatedUser,De=se.onDatabaseNameResolved,Ne=se.auth,Ce=se.homeDb;return u(this,void 0,void 0,function(){var Y,Q,ie,we,Ee,Me=this;return l(this,function(Ie){switch(Ie.label){case 0:return Y={database:ge||ue},Q=new m.ConnectionErrorHandler(O,function(Ye,ot){return Me._handleUnavailability(Ye,ot,Y.database)},function(Ye,ot){return Me._handleWriteFailure(Ye,ot,Ce??Y.database)},function(Ye,ot,mt){return Me._handleSecurityError(Ye,ot,mt,Y.database)}),this.SSREnabled()&&Ce!==void 0&&ge===""?!(we=this._routingTableRegistry.get(Ce,function(){return new p.RoutingTable({database:Ce})}))||we.isStaleFor(de)?[3,2]:[4,this.getConnectionFromRoutingTable(we,Ne,de,Q)]:[3,2];case 1:if(ie=Ie.sent(),this.SSREnabled())return[2,ie];ie.release(),Ie.label=2;case 2:return[4,this._freshRoutingTable({accessMode:de,database:Y.database,bookmarks:Oe,impersonatedUser:ke,auth:Ne,onDatabaseNameResolved:function(Ye){Y.database=Y.database||Ye,De&&De(Ye)}})];case 3:return Ee=Ie.sent(),[2,this.getConnectionFromRoutingTable(Ee,Ne,de,Q)]}})})},pe.prototype.getConnectionFromRoutingTable=function(fe,se,de,ge){return u(this,void 0,void 0,function(){var Oe,ke,De,Ne;return l(this,function(Ce){switch(Ce.label){case 0:if(de===P)ke=this._loadBalancingStrategy.selectReader(fe.readers),Oe="read";else{if(de!==I)throw(0,h.newError)("Illegal mode "+de);ke=this._loadBalancingStrategy.selectWriter(fe.writers),Oe="write"}if(!ke)throw(0,h.newError)("Failed to obtain connection towards ".concat(Oe," server. Known routing table is: ").concat(fe),O);Ce.label=1;case 1:return Ce.trys.push([1,5,,6]),[4,this._connectionPool.acquire({auth:se},ke)];case 2:return De=Ce.sent(),se?[4,this._verifyStickyConnection({auth:se,connection:De,address:ke})]:[3,4];case 3:return Ce.sent(),[2,De];case 4:return[2,new m.DelegateConnection(De,ge)];case 5:throw Ne=Ce.sent(),ge.handleAndTransformError(Ne,ke);case 6:return[2]}})})},pe.prototype._hasProtocolVersion=function(fe){return u(this,void 0,void 0,function(){var se,de,ge,Oe,ke,De;return l(this,function(Ne){switch(Ne.label){case 0:return[4,this._resolveSeedRouter(this._seedRouter)];case 1:se=Ne.sent(),ge=0,Ne.label=2;case 2:if(!(ge=L})];case 1:return[2,fe.sent()]}})})},pe.prototype.supportsTransactionConfig=function(){return u(this,void 0,void 0,function(){return l(this,function(fe){switch(fe.label){case 0:return[4,this._hasProtocolVersion(function(se){return se>=k})];case 1:return[2,fe.sent()]}})})},pe.prototype.supportsUserImpersonation=function(){return u(this,void 0,void 0,function(){return l(this,function(fe){switch(fe.label){case 0:return[4,this._hasProtocolVersion(function(se){return se>=B})];case 1:return[2,fe.sent()]}})})},pe.prototype.supportsSessionAuth=function(){return u(this,void 0,void 0,function(){return l(this,function(fe){switch(fe.label){case 0:return[4,this._hasProtocolVersion(function(se){return se>=j})];case 1:return[2,fe.sent()]}})})},pe.prototype.getNegotiatedProtocolVersion=function(){var fe=this;return new Promise(function(se,de){fe._hasProtocolVersion(se).catch(de)})},pe.prototype.verifyAuthentication=function(fe){var se=fe.database,de=fe.accessMode,ge=fe.auth;return u(this,void 0,void 0,function(){var Oe=this;return l(this,function(ke){return[2,this._verifyAuthentication({auth:ge,getAddress:function(){return u(Oe,void 0,void 0,function(){var De,Ne,Ce;return l(this,function(Y){switch(Y.label){case 0:return De={database:se||ue},[4,this._freshRoutingTable({accessMode:de,database:De.database,auth:ge,onDatabaseNameResolved:function(Q){De.database=De.database||Q}})];case 1:if(Ne=Y.sent(),(Ce=de===I?Ne.writers:Ne.readers).length===0)throw(0,h.newError)("No servers available for database '".concat(De.database,"' with access mode '").concat(de,"'"),E);return[2,Ce[0]]}})})}})]})})},pe.prototype.verifyConnectivityAndGetServerInfo=function(fe){var se=fe.database,de=fe.accessMode;return u(this,void 0,void 0,function(){var ge,Oe,ke,De,Ne,Ce,Y,Q,ie,we,Ee;return l(this,function(Me){switch(Me.label){case 0:return ge={database:se||ue},[4,this._freshRoutingTable({accessMode:de,database:ge.database,onDatabaseNameResolved:function(Ie){ge.database=ge.database||Ie}})];case 1:Oe=Me.sent(),ke=de===I?Oe.writers:Oe.readers,De=(0,h.newError)("No servers available for database '".concat(ge.database,"' with access mode '").concat(de,"'"),E),Me.label=2;case 2:Me.trys.push([2,9,10,11]),Ne=c(ke),Ce=Ne.next(),Me.label=3;case 3:if(Ce.done)return[3,8];Y=Ce.value,Me.label=4;case 4:return Me.trys.push([4,6,,7]),[4,this._verifyConnectivityAndGetServerVersion({address:Y})];case 5:return[2,Me.sent()];case 6:return Q=Me.sent(),De=Q,[3,7];case 7:return Ce=Ne.next(),[3,3];case 8:return[3,11];case 9:return ie=Me.sent(),we={error:ie},[3,11];case 10:try{Ce&&!Ce.done&&(Ee=Ne.return)&&Ee.call(Ne)}finally{if(we)throw we.error}return[7];case 11:throw De}})})},pe.prototype.forget=function(fe,se){this._routingTableRegistry.apply(se,{applyWhenExists:function(de){return de.forget(fe)}}),this._connectionPool.purge(fe).catch(function(){})},pe.prototype.forgetWriter=function(fe,se){this._routingTableRegistry.apply(se,{applyWhenExists:function(de){return de.forgetWriter(fe)}})},pe.prototype._freshRoutingTable=function(fe){var se=fe===void 0?{}:fe,de=se.accessMode,ge=se.database,Oe=se.bookmarks,ke=se.impersonatedUser,De=se.onDatabaseNameResolved,Ne=se.auth,Ce=this._routingTableRegistry.get(ge,function(){return new p.RoutingTable({database:ge})});return Ce.isStaleFor(de)?(this._log.info('Routing table is stale for database: "'.concat(ge,'" and access mode: "').concat(de,'": ').concat(Ce)),this._refreshRoutingTable(Ce,Oe,ke,Ne).then(function(Y){return De(Y.database),Y})):Ce},pe.prototype._refreshRoutingTable=function(fe,se,de,ge){var Oe=fe.routers;return this._useSeedRouter?this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(Oe,fe,se,de,ge):this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(Oe,fe,se,de,ge)},pe.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters=function(fe,se,de,ge,Oe){return u(this,void 0,void 0,function(){var ke,De,Ne,Ce,Y,Q,ie;return l(this,function(we){switch(we.label){case 0:return ke=[],[4,this._fetchRoutingTableUsingSeedRouter(ke,this._seedRouter,se,de,ge,Oe)];case 1:return De=f.apply(void 0,[we.sent(),2]),Ne=De[0],Ce=De[1],Ne?(this._useSeedRouter=!1,[3,4]):[3,2];case 2:return[4,this._fetchRoutingTableUsingKnownRouters(fe,se,de,ge,Oe)];case 3:Y=f.apply(void 0,[we.sent(),2]),Q=Y[0],ie=Y[1],Ne=Q,Ce=ie||Ce,we.label=4;case 4:return[4,this._applyRoutingTableIfPossible(se,Ne,Ce)];case 5:return[2,we.sent()]}})})},pe.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter=function(fe,se,de,ge,Oe){return u(this,void 0,void 0,function(){var ke,De,Ne,Ce;return l(this,function(Y){switch(Y.label){case 0:return[4,this._fetchRoutingTableUsingKnownRouters(fe,se,de,ge,Oe)];case 1:return ke=f.apply(void 0,[Y.sent(),2]),De=ke[0],Ne=ke[1],De?[3,3]:[4,this._fetchRoutingTableUsingSeedRouter(fe,this._seedRouter,se,de,ge,Oe)];case 2:Ce=f.apply(void 0,[Y.sent(),2]),De=Ce[0],Ne=Ce[1],Y.label=3;case 3:return[4,this._applyRoutingTableIfPossible(se,De,Ne)];case 4:return[2,Y.sent()]}})})},pe.prototype._fetchRoutingTableUsingKnownRouters=function(fe,se,de,ge,Oe){return u(this,void 0,void 0,function(){var ke,De,Ne,Ce;return l(this,function(Y){switch(Y.label){case 0:return[4,this._fetchRoutingTable(fe,se,de,ge,Oe)];case 1:return ke=f.apply(void 0,[Y.sent(),2]),De=ke[0],Ne=ke[1],De?[2,[De,null]]:(Ce=fe.length-1,pe._forgetRouter(se,fe,Ce),[2,[null,Ne]])}})})},pe.prototype._fetchRoutingTableUsingSeedRouter=function(fe,se,de,ge,Oe,ke){return u(this,void 0,void 0,function(){var De,Ne;return l(this,function(Ce){switch(Ce.label){case 0:return[4,this._resolveSeedRouter(se)];case 1:return De=Ce.sent(),Ne=De.filter(function(Y){return fe.indexOf(Y)<0}),[4,this._fetchRoutingTable(Ne,de,ge,Oe,ke)];case 2:return[2,Ce.sent()]}})})},pe.prototype._resolveSeedRouter=function(fe){return u(this,void 0,void 0,function(){var se,de,ge=this;return l(this,function(Oe){switch(Oe.label){case 0:return[4,this._hostNameResolver.resolve(fe)];case 1:return se=Oe.sent(),[4,Promise.all(se.map(function(ke){return ge._dnsResolver.resolve(ke)}))];case 2:return de=Oe.sent(),[2,[].concat.apply([],de)]}})})},pe.prototype._fetchRoutingTable=function(fe,se,de,ge,Oe){return u(this,void 0,void 0,function(){var ke=this;return l(this,function(De){return[2,fe.reduce(function(Ne,Ce,Y){return u(ke,void 0,void 0,function(){var Q,ie,we,Ee,Me,Ie,Ye;return l(this,function(ot){switch(ot.label){case 0:return[4,Ne];case 1:return Q=f.apply(void 0,[ot.sent(),1]),(ie=Q[0])?[2,[ie,null]]:(we=Y-1,pe._forgetRouter(se,fe,we),[4,this._createSessionForRediscovery(Ce,de,ge,Oe)]);case 2:if(Ee=f.apply(void 0,[ot.sent(),2]),Me=Ee[0],Ie=Ee[1],!Me)return[3,8];ot.label=3;case 3:return ot.trys.push([3,5,6,7]),[4,this._rediscovery.lookupRoutingTableOnRouter(Me,se.database,Ce,ge)];case 4:return[2,[ot.sent(),null]];case 5:return Ye=ot.sent(),[2,this._handleRediscoveryError(Ye,Ce)];case 6:return Me.close(),[7];case 7:return[3,9];case 8:return[2,[null,Ie]];case 9:return[2]}})})},Promise.resolve([null,null]))]})})},pe.prototype._createSessionForRediscovery=function(fe,se,de,ge){return u(this,void 0,void 0,function(){var Oe,ke,De,Ne,Ce,Y=this;return l(this,function(Q){switch(Q.label){case 0:return Q.trys.push([0,4,,5]),[4,this._connectionPool.acquire({auth:ge},fe)];case 1:return Oe=Q.sent(),ge?[4,this._verifyStickyConnection({auth:ge,connection:Oe,address:fe})]:[3,3];case 2:Q.sent(),Q.label=3;case 3:return ke=m.ConnectionErrorHandler.create({errorCode:O,handleSecurityError:function(ie,we,Ee){return Y._handleSecurityError(ie,we,Ee)}}),De=Oe._sticky?new m.DelegateConnection(Oe):new m.DelegateConnection(Oe,ke),Ne=new y.default(De),Oe.protocol().version<4?[2,[new h.Session({mode:I,bookmarks:S.empty(),connectionProvider:Ne}),null]]:[2,[new h.Session({mode:P,database:"system",bookmarks:se,connectionProvider:Ne,impersonatedUser:de}),null]];case 4:return Ce=Q.sent(),[2,this._handleRediscoveryError(Ce,fe)];case 5:return[2]}})})},pe.prototype._handleRediscoveryError=function(fe,se){if((function(de){return[z,H,q,$,J,X,Z].includes(de.code)})(fe)||(function(de){var ge;return((ge=de.code)===null||ge===void 0?void 0:ge.startsWith("Neo.ClientError.Security."))&&![W].includes(de.code)})(fe))throw fe;if(fe.code==="Neo.ClientError.Procedure.ProcedureNotFound")throw(0,h.newError)("Server at ".concat(se.asHostPort()," can't perform routing. Make sure you are connecting to a causal cluster"),E,fe);return this._log.warn("unable to fetch routing table because of an error ".concat(fe)),[null,fe]},pe.prototype._applyRoutingTableIfPossible=function(fe,se,de){return u(this,void 0,void 0,function(){return l(this,function(ge){switch(ge.label){case 0:if(!se)throw(0,h.newError)("Could not perform discovery. No routing servers available. Known routing table: ".concat(fe),E,de);return se.writers.length===0&&(this._useSeedRouter=!0),[4,this._updateRoutingTable(se)];case 1:return ge.sent(),[2,se]}})})},pe.prototype._updateRoutingTable=function(fe){return u(this,void 0,void 0,function(){return l(this,function(se){switch(se.label){case 0:return[4,this._connectionPool.keepAll(fe.allServers())];case 1:return se.sent(),this._routingTableRegistry.removeExpired(),this._routingTableRegistry.register(fe),this._log.info("Updated routing table ".concat(fe)),[2]}})})},pe._forgetRouter=function(fe,se,de){var ge=se[de];fe&&ge&&fe.forgetRouter(ge)},pe.prototype._channelSsrCallback=function(fe,se){if(se==="OPEN")fe===!0?this._withSSR=this._withSSR+1:this._withoutSSR=this._withoutSSR+1;else{if(se!=="CLOSE")throw(0,h.newError)("Channel SSR Callback invoked with action other than 'OPEN' or 'CLOSE'");fe===!0?this._withSSR=this._withSSR-1:this._withoutSSR=this._withoutSSR-1}},pe.prototype.SSREnabled=function(){return this._withSSR>0&&this._withoutSSR===0},pe})(b.default);e.default=ne;var le=(function(){function ce(pe){this._tables=new Map,this._routingTablePurgeDelay=pe}return ce.prototype.register=function(pe){return this._tables.set(pe.database,pe),this},ce.prototype.apply=function(pe,fe){var se=fe===void 0?{}:fe,de=se.applyWhenExists,ge=se.applyWhenDontExists,Oe=ge===void 0?function(){}:ge;return this._tables.has(pe)?de(this._tables.get(pe)):typeof pe=="string"||pe===null?Oe():this._forEach(de),this},ce.prototype.get=function(pe,fe){return this._tables.has(pe)?this._tables.get(pe):typeof fe=="function"?fe():fe},ce.prototype.removeExpired=function(){var pe=this;return this._removeIf(function(fe){return fe.isExpiredFor(pe._routingTablePurgeDelay)})},ce.prototype._forEach=function(pe){var fe,se;try{for(var de=c(this._tables),ge=de.next();!ge.done;ge=de.next())pe(f(ge.value,2)[1])}catch(Oe){fe={error:Oe}}finally{try{ge&&!ge.done&&(se=de.return)&&se.call(de)}finally{if(fe)throw fe.error}}return this},ce.prototype._remove=function(pe){return this._tables.delete(pe),this},ce.prototype._removeIf=function(pe){var fe,se;try{for(var de=c(this._tables),ge=de.next();!ge.done;ge=de.next()){var Oe=f(ge.value,2),ke=Oe[0];pe(Oe[1])&&this._remove(ke)}}catch(De){fe={error:De}}finally{try{ge&&!ge.done&&(se=de.return)&&se.call(de)}finally{if(fe)throw fe.error}}return this},ce})()},7441:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dematerialize=void 0;var n=t(7800),i=t(7843),a=t(3111);e.dematerialize=function(){return i.operate(function(o,s){o.subscribe(a.createOperatorSubscriber(s,function(u){return n.observeNotification(u,s)}))})}},7449:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(c){for(var f,d=1,h=arguments.length;d0)&&!(h=g.next()).done;)y.push(h.value)}catch(b){p={error:b}}finally{try{h&&!h.done&&(d=g.return)&&d.call(g)}finally{if(p)throw p.error}}return y},a=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0});var o=t(7168),s=t(9305),u=a(t(7518)),l=a(t(5045));e.default=n(n(n({},u.default),l.default),{createNodeTransformer:function(c){return u.default.createNodeTransformer(c).extendsWith({fromStructure:function(f){o.structure.verifyStructSize("Node",4,f.size);var d=i(f.fields,4),h=d[0],p=d[1],g=d[2],y=d[3];return new s.Node(h,p,g,y)}})},createRelationshipTransformer:function(c){return u.default.createRelationshipTransformer(c).extendsWith({fromStructure:function(f){o.structure.verifyStructSize("Relationship",8,f.size);var d=i(f.fields,8),h=d[0],p=d[1],g=d[2],y=d[3],b=d[4],_=d[5],m=d[6],x=d[7];return new s.Relationship(h,p,g,y,b,_,m,x)}})},createUnboundRelationshipTransformer:function(c){return u.default.createUnboundRelationshipTransformer(c).extendsWith({fromStructure:function(f){o.structure.verifyStructSize("UnboundRelationship",4,f.size);var d=i(f.fields,4),h=d[0],p=d[1],g=d[2],y=d[3];return new s.UnboundRelationship(h,p,g,y)}})}})},7452:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(l,c,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(c,f);h&&!("get"in h?!c.__esModule:h.writable||h.configurable)||(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,d,h)}:function(l,c,f,d){d===void 0&&(d=f),l[d]=c[f]}),i=this&&this.__exportStar||function(l,c){for(var f in l)f==="default"||Object.prototype.hasOwnProperty.call(c,f)||n(c,l,f)},a=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.utf8=e.alloc=e.ChannelConfig=void 0,i(t(3951),e),i(t(373),e);var o=t(2481);Object.defineProperty(e,"ChannelConfig",{enumerable:!0,get:function(){return a(o).default}});var s=t(5319);Object.defineProperty(e,"alloc",{enumerable:!0,get:function(){return s.alloc}});var u=t(3473);Object.defineProperty(e,"utf8",{enumerable:!0,get:function(){return a(u).default}})},7479:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.arrRemove=void 0,e.arrRemove=function(t,n){if(t){var i=t.indexOf(n);0<=i&&t.splice(i,1)}}},7509:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(l,c,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(c,f);h&&!("get"in h?!c.__esModule:h.writable||h.configurable)||(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,d,h)}:function(l,c,f,d){d===void 0&&(d=f),l[d]=c[f]}),i=this&&this.__setModuleDefault||(Object.create?function(l,c){Object.defineProperty(l,"default",{enumerable:!0,value:c})}:function(l,c){l.default=c}),a=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)&&n(c,l,f);return i(c,l),c};Object.defineProperty(e,"__esModule",{value:!0}),e.ServerAddress=void 0;var o=t(6587),s=a(t(407)),u=(function(){function l(c,f,d,h){this._host=(0,o.assertString)(c,"host"),this._resolved=f!=null?(0,o.assertString)(f,"resolved"):null,this._port=(0,o.assertNumber)(d,"port"),this._hostPort=h,this._stringValue=f!=null?"".concat(h,"(").concat(f,")"):"".concat(h)}return l.prototype.host=function(){return this._host},l.prototype.resolvedHost=function(){return this._resolved!=null?this._resolved:this._host},l.prototype.port=function(){return this._port},l.prototype.resolveWith=function(c){return new l(this._host,c,this._port,this._hostPort)},l.prototype.asHostPort=function(){return this._hostPort},l.prototype.asKey=function(){return this._hostPort},l.prototype.toString=function(){return this._stringValue},l.fromUrl=function(c){var f=s.parseDatabaseUrl(c);return new l(f.host,null,f.port,f.hostAndPort)},l})();e.ServerAddress=u},7518:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.refCount=void 0;var n=t(7843),i=t(3111);e.refCount=function(){return n.operate(function(a,o){var s=null;a._refCount++;var u=i.createOperatorSubscriber(o,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount)s=null;else{var l=a._connection,c=s;s=null,!l||c&&l!==c||l.unsubscribe(),o.unsubscribe()}});a.subscribe(u),u.closed||(s=a.connect())})}},7579:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.connectable=void 0;var n=t(2483),i=t(4662),a=t(9353),o={connector:function(){return new n.Subject},resetOnDisconnect:!0};e.connectable=function(s,u){u===void 0&&(u=o);var l=null,c=u.connector,f=u.resetOnDisconnect,d=f===void 0||f,h=c(),p=new i.Observable(function(g){return h.subscribe(g)});return p.connect=function(){return l&&!l.closed||(l=a.defer(function(){return s}).subscribe(h),d&&l.add(function(){return h=c()})),l},p}},7589:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_ACQUISITION_TIMEOUT=e.DEFAULT_MAX_SIZE=void 0;var t=100;e.DEFAULT_MAX_SIZE=t;var n=6e4;e.DEFAULT_ACQUISITION_TIMEOUT=n;var i=(function(){function s(u,l){this.maxSize=a(u,t),this.acquisitionTimeout=a(l,n)}return s.defaultConfig=function(){return new s(t,n)},s.fromDriverConfig=function(u){return new s(o(u.maxConnectionPoolSize)?u.maxConnectionPoolSize:t,o(u.connectionAcquisitionTimeout)?u.connectionAcquisitionTimeout:n)},s})();function a(s,u){return o(s)?s:u}function o(s){return s===0||s!=null}e.default=i},7601:function(r,e,t){var n=this&&this.__read||function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var d,h,p=f.call(l),g=[];try{for(;(c===void 0||c-- >0)&&!(d=p.next()).done;)g.push(d.value)}catch(y){h={error:y}}finally{try{d&&!d.done&&(f=p.return)&&f.call(p)}finally{if(h)throw h.error}}return g},i=this&&this.__spreadArray||function(l,c){for(var f=0,d=c.length,h=l.length;f0&&d[d.length-1])||_[0]!==6&&_[0]!==2)){p=0;continue}if(_[0]===3&&(!d||_[1]>d[0]&&_[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.createInvalidObservableTypeError=void 0,e.createInvalidObservableTypeError=function(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},7629:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isPromise=void 0;var n=t(1018);e.isPromise=function(i){return n.isFunction(i==null?void 0:i.then)}},7640:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throttleTime=void 0;var n=t(7961),i=t(8941),a=t(4092);e.throttleTime=function(o,s,u){s===void 0&&(s=n.asyncScheduler);var l=a.timer(o,s);return i.throttle(function(){return l},u)}},7661:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.expand=void 0;var n=t(7843),i=t(1983);e.expand=function(a,o,s){return o===void 0&&(o=1/0),o=(o||0)<1?1/0:o,n.operate(function(u,l){return i.mergeInternals(u,l,a,o,void 0,!0,s)})}},7665:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.verifyStructSize=e.Structure=void 0;var n=t(9305),i=n.error.PROTOCOL_ERROR,a=(function(){function o(s,u){this.signature=s,this.fields=u}return Object.defineProperty(o.prototype,"size",{get:function(){return this.fields.length},enumerable:!1,configurable:!0}),o.prototype.toString=function(){for(var s="",u=0;u0&&(s+=", "),s+=this.fields[u];return"Structure("+this.signature+", ["+s+"])"},o})();e.Structure=a,e.verifyStructSize=function(o,s,u){if(s!==u)throw(0,n.newError)("Wrong struct size for ".concat(o,", expected ").concat(s," but was ").concat(u),i)},e.default=a},7666:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(c,f,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(f,d);p&&!("get"in p?!f.__esModule:p.writable||p.configurable)||(p={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(c,h,p)}:function(c,f,d,h){h===void 0&&(h=d),c[h]=f[d]}),i=this&&this.__exportStar||function(c,f){for(var d in c)d==="default"||Object.prototype.hasOwnProperty.call(f,d)||n(f,c,d)},a=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.RawRoutingTable=e.BoltProtocol=void 0;var o=a(t(8731)),s=a(t(6544)),u=a(t(9054)),l=a(t(7790));i(t(9014),e),e.BoltProtocol=u.default,e.RawRoutingTable=l.default,e.default={handshake:o.default,create:s.default}},7714:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createFind=e.find=void 0;var n=t(7843),i=t(3111);function a(o,s,u){var l=u==="index";return function(c,f){var d=0;c.subscribe(i.createOperatorSubscriber(f,function(h){var p=d++;o.call(s,h,p,c)&&(f.next(l?p:h),f.complete())},function(){f.next(l?-1:void 0),f.complete()}))}}e.find=function(o,s){return n.operate(a(o,s,"value"))},e.createFind=a},7721:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(f,d,h,p){p===void 0&&(p=h);var g=Object.getOwnPropertyDescriptor(d,h);g&&!("get"in g?!d.__esModule:g.writable||g.configurable)||(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,p,g)}:function(f,d,h,p){p===void 0&&(p=h),f[p]=d[h]}),i=this&&this.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),a=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var h in f)h!=="default"&&Object.prototype.hasOwnProperty.call(f,h)&&n(d,f,h);return i(d,f),d},o=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.createChannelConnection=e.ConnectionErrorHandler=e.DelegateConnection=e.ChannelConnection=e.Connection=void 0;var s=o(t(6385));e.Connection=s.default;var u=a(t(8031));e.ChannelConnection=u.default,Object.defineProperty(e,"createChannelConnection",{enumerable:!0,get:function(){return u.createChannelConnection}});var l=o(t(9857));e.DelegateConnection=l.default;var c=o(t(2363));e.ConnectionErrorHandler=c.default,e.default=s.default},7740:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pairs=void 0;var n=t(4917);e.pairs=function(i,a){return n.from(Object.entries(i),a)}},7790:function(r,e,t){var n=this&&this.__extends||(function(){var l=function(c,f){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(d[p]=h[p])},l(c,f)};return function(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function d(){this.constructor=c}l(c,f),c.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})(),i=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),i(t(9305));var a=(function(){function l(){}return l.ofRecord=function(c){return c===null?l.ofNull():new u(c)},l.ofMessageResponse=function(c){return c===null?l.ofNull():new o(c)},l.ofNull=function(){return new s},Object.defineProperty(l.prototype,"ttl",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"db",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"servers",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isNull",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),l})();e.default=a;var o=(function(l){function c(f){var d=l.call(this)||this;return d._response=f,d}return n(c,l),Object.defineProperty(c.prototype,"ttl",{get:function(){return this._response.rt.ttl},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"servers",{get:function(){return this._response.rt.servers},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"db",{get:function(){return this._response.rt.db},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isNull",{get:function(){return this._response===null},enumerable:!1,configurable:!0}),c})(a),s=(function(l){function c(){return l!==null&&l.apply(this,arguments)||this}return n(c,l),Object.defineProperty(c.prototype,"isNull",{get:function(){return!0},enumerable:!1,configurable:!0}),c})(a),u=(function(l){function c(f){var d=l.call(this)||this;return d._record=f,d}return n(c,l),Object.defineProperty(c.prototype,"ttl",{get:function(){return this._record.get("ttl")},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"servers",{get:function(){return this._record.get("servers")},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"db",{get:function(){return this._record.has("db")?this._record.get("db"):null},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isNull",{get:function(){return this._record===null},enumerable:!1,configurable:!0}),c})(a)},7800:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var n,i=t(8616),a=t(1004),o=t(1103),s=t(1018);(n=e.NotificationKind||(e.NotificationKind={})).NEXT="N",n.ERROR="E",n.COMPLETE="C";var u=(function(){function c(f,d,h){this.kind=f,this.value=d,this.error=h,this.hasValue=f==="N"}return c.prototype.observe=function(f){return l(this,f)},c.prototype.do=function(f,d,h){var p=this,g=p.kind,y=p.value,b=p.error;return g==="N"?f==null?void 0:f(y):g==="E"?d==null?void 0:d(b):h==null?void 0:h()},c.prototype.accept=function(f,d,h){var p;return s.isFunction((p=f)===null||p===void 0?void 0:p.next)?this.observe(f):this.do(f,d,h)},c.prototype.toObservable=function(){var f=this,d=f.kind,h=f.value,p=f.error,g=d==="N"?a.of(h):d==="E"?o.throwError(function(){return p}):d==="C"?i.EMPTY:0;if(!g)throw new TypeError("Unexpected notification kind "+d);return g},c.createNext=function(f){return new c("N",f)},c.createError=function(f){return new c("E",void 0,f)},c.createComplete=function(){return c.completeNotification},c.completeNotification=new c("C"),c})();function l(c,f){var d,h,p,g=c,y=g.kind,b=g.value,_=g.error;if(typeof y!="string")throw new TypeError('Invalid notification, missing "kind"');y==="N"?(d=f.next)===null||d===void 0||d.call(f,b):y==="E"?(h=f.error)===null||h===void 0||h.call(f,_):(p=f.complete)===null||p===void 0||p.call(f)}e.Notification=u,e.observeNotification=l},7815:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.groupBy=void 0;var n=t(4662),i=t(9445),a=t(2483),o=t(7843),s=t(3111);e.groupBy=function(u,l,c,f){return o.operate(function(d,h){var p;l&&typeof l!="function"?(c=l.duration,p=l.element,f=l.connector):p=l;var g=new Map,y=function(E){g.forEach(E),E(h)},b=function(E){return y(function(O){return O.error(E)})},_=0,m=!1,x=new s.OperatorSubscriber(h,function(E){try{var O=u(E),S=g.get(O);if(!S){g.set(O,S=f?f():new a.Subject);var T=(I=O,k=S,(L=new n.Observable(function(B){_++;var j=k.subscribe(B);return function(){j.unsubscribe(),--_===0&&m&&x.unsubscribe()}})).key=I,L);if(h.next(T),c){var P=s.createOperatorSubscriber(S,function(){S.complete(),P==null||P.unsubscribe()},void 0,void 0,function(){return g.delete(O)});x.add(i.innerFrom(c(T)).subscribe(P))}}S.next(p?p(E):E)}catch(B){b(B)}var I,k,L},function(){return y(function(E){return E.complete()})},b,function(){return g.clear()},function(){return m=!0,_===0});d.subscribe(x)})}},7835:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retry=void 0;var n=t(7843),i=t(3111),a=t(6640),o=t(4092),s=t(9445);e.retry=function(u){var l;u===void 0&&(u=1/0);var c=(l=u&&typeof u=="object"?u:{count:u}).count,f=c===void 0?1/0:c,d=l.delay,h=l.resetOnSuccess,p=h!==void 0&&h;return f<=0?a.identity:n.operate(function(g,y){var b,_=0,m=function(){var x=!1;b=g.subscribe(i.createOperatorSubscriber(y,function(E){p&&(_=0),y.next(E)},void 0,function(E){if(_++{Object.defineProperty(e,"__esModule",{value:!0}),e.operate=e.hasLift=void 0;var n=t(1018);function i(a){return n.isFunction(a==null?void 0:a.lift)}e.hasLift=i,e.operate=function(a){return function(o){if(i(o))return o.lift(function(s){try{return a(s,this)}catch(u){this.error(u)}});throw new TypeError("Unable to lift unknown Observable type")}}},7853:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.using=void 0;var n=t(4662),i=t(9445),a=t(8616);e.using=function(o,s){return new n.Observable(function(u){var l=o(),c=s(l);return(c?i.innerFrom(c):a.EMPTY).subscribe(u),function(){l&&l.unsubscribe()}})}},7857:function(r,e,t){var n=this&&this.__extends||(function(){var d=function(h,p){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])},d(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function g(){this.constructor=h}d(h,p),h.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),i=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.WRITE=e.READ=e.Driver=void 0;var a=t(9305),o=i(t(3466)),s=a.internal.constants.FETCH_ALL,u=a.driver.READ,l=a.driver.WRITE;e.READ=u,e.WRITE=l;var c=(function(d){function h(){return d!==null&&d.apply(this,arguments)||this}return n(h,d),h.prototype.rxSession=function(p){var g=p===void 0?{}:p,y=g.defaultAccessMode,b=y===void 0?l:y,_=g.bookmarks,m=g.database,x=m===void 0?"":m,E=g.fetchSize,O=g.impersonatedUser,S=g.bookmarkManager,T=g.notificationFilter,P=g.auth;return new o.default({session:this._newSession({defaultAccessMode:b,bookmarkOrBookmarks:_,database:x,impersonatedUser:O,auth:P,reactive:!1,fetchSize:f(E,this._config.fetchSize),bookmarkManager:S,notificationFilter:T,log:this._log}),config:this._config,log:this._log})},h})(a.Driver);function f(d,h){var p=parseInt(d,10);if(p>0||p===s)return p;if(p===0||p<0)throw new Error("The fetch size can only be a positive value or ".concat(s," for ALL. However fetchSize = ").concat(p));return h}e.Driver=c,e.default=c},7961:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var n=t(5267),i=t(5648);e.asyncScheduler=new i.AsyncScheduler(n.AsyncAction),e.async=e.asyncScheduler},7991:(r,e)=>{e.byteLength=function(c){var f=s(c),d=f[0],h=f[1];return 3*(d+h)/4-h},e.toByteArray=function(c){var f,d,h=s(c),p=h[0],g=h[1],y=new i((function(m,x,E){return 3*(x+E)/4-E})(0,p,g)),b=0,_=g>0?p-4:p;for(d=0;d<_;d+=4)f=n[c.charCodeAt(d)]<<18|n[c.charCodeAt(d+1)]<<12|n[c.charCodeAt(d+2)]<<6|n[c.charCodeAt(d+3)],y[b++]=f>>16&255,y[b++]=f>>8&255,y[b++]=255&f;return g===2&&(f=n[c.charCodeAt(d)]<<2|n[c.charCodeAt(d+1)]>>4,y[b++]=255&f),g===1&&(f=n[c.charCodeAt(d)]<<10|n[c.charCodeAt(d+1)]<<4|n[c.charCodeAt(d+2)]>>2,y[b++]=f>>8&255,y[b++]=255&f),y},e.fromByteArray=function(c){for(var f,d=c.length,h=d%3,p=[],g=16383,y=0,b=d-h;yb?b:y+g));return h===1?(f=c[d-1],p.push(t[f>>2]+t[f<<4&63]+"==")):h===2&&(f=(c[d-2]<<8)+c[d-1],p.push(t[f>>10]+t[f>>4&63]+t[f<<2&63]+"=")),p.join("")};for(var t=[],n=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)t[o]=a[o],n[a.charCodeAt(o)]=o;function s(c){var f=c.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var d=c.indexOf("=");return d===-1&&(d=f),[d,d===f?0:4-d%4]}function u(c){return t[c>>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]}function l(c,f,d){for(var h,p=[],g=f;g=f.length&&(f=void 0),{value:f&&f[p++],done:!f}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(f,d){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var p,g,y=h.call(f),b=[];try{for(;(d===void 0||d-- >0)&&!(p=y.next()).done;)b.push(p.value)}catch(_){g={error:_}}finally{try{p&&!p.done&&(h=y.return)&&h.call(y)}finally{if(g)throw g.error}}return b},a=this&&this.__spreadArray||function(f,d){for(var h=0,p=d.length,g=f.length;h{Object.defineProperty(e,"__esModule",{value:!0}),e.buffer=void 0;var n=t(7843),i=t(1342),a=t(3111),o=t(9445);e.buffer=function(s){return n.operate(function(u,l){var c=[];return u.subscribe(a.createOperatorSubscriber(l,function(f){return c.push(f)},function(){l.next(c),l.complete()})),o.innerFrom(s).subscribe(a.createOperatorSubscriber(l,function(){var f=c;c=[],l.next(f)},i.noop)),function(){c=null}})}},8031:function(r,e,t){var n=this&&this.__extends||(function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(_[x]=m[x])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function _(){this.constructor=y}g(y,b),y.prototype=b===null?Object.create(b):(_.prototype=b.prototype,new _)}})(),i=this&&this.__awaiter||function(g,y,b,_){return new(b||(b=Promise))(function(m,x){function E(T){try{S(_.next(T))}catch(P){x(P)}}function O(T){try{S(_.throw(T))}catch(P){x(P)}}function S(T){var P;T.done?m(T.value):(P=T.value,P instanceof b?P:new b(function(I){I(P)})).then(E,O)}S((_=_.apply(g,y||[])).next())})},a=this&&this.__generator||function(g,y){var b,_,m,x,E={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return x={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(x[Symbol.iterator]=function(){return this}),x;function O(S){return function(T){return(function(P){if(b)throw new TypeError("Generator is already executing.");for(;x&&(x=0,P[0]&&(E=0)),E;)try{if(b=1,_&&(m=2&P[0]?_.return:P[0]?_.throw||((m=_.return)&&m.call(_),0):_.next)&&!(m=m.call(_,P[1])).done)return m;switch(_=0,m&&(P=[2&P[0],m.value]),P[0]){case 0:case 1:m=P;break;case 4:return E.label++,{value:P[1],done:!1};case 5:E.label++,_=P[1],P=[0];continue;case 7:P=E.ops.pop(),E.trys.pop();continue;default:if(!((m=(m=E.trys).length>0&&m[m.length-1])||P[0]!==6&&P[0]!==2)){E=0;continue}if(P[0]===3&&(!m||P[1]>m[0]&&P[1]0?x._ch.setupReceiveTimeout(1e3*B):x._log.info("Server located at ".concat(x._address," supplied an invalid connection receive timeout value (").concat(B,"). ")+"Please, verify the server configuration and status because this can be the symptom of a bigger issue.")}T.hints["telemetry.enabled"]===!0&&(x._telemetryDisabledConnection=!1),x.SSREnabledHint=T.hints["ssr.enabled"]}x._ssrCallback((P=x.SSREnabledHint)!==null&&P!==void 0&&P,"OPEN")}O(E)}})})},y.prototype.protocol=function(){return this._protocol},Object.defineProperty(y.prototype,"address",{get:function(){return this._address},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"version",{get:function(){return this._server.version},set:function(b){this._server.version=b},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"server",{get:function(){return this._server},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"logger",{get:function(){return this._log},enumerable:!1,configurable:!0}),y.prototype._handleFatalError=function(b){this._isBroken=!0,this._error=this.handleAndTransformError(this._protocol.currentFailure||b,this._address),this._log.isErrorEnabled()&&this._log.error("experienced a fatal error caused by ".concat(this._error," (").concat(u.json.stringify(this._error),")")),this._protocol.notifyFatalError(this._error)},y.prototype._setIdle=function(b){this._idle=!0,this._ch.stopReceiveTimeout(),this._protocol.queueObserverIfProtocolIsNotBroken(b)},y.prototype._unsetIdle=function(){this._idle=!1,this._updateCurrentObserver()},y.prototype._queueObserver=function(b){return this._protocol.queueObserverIfProtocolIsNotBroken(b)},y.prototype.hasOngoingObservableRequests=function(){return!this._idle&&this._protocol.hasOngoingObservableRequests()},y.prototype.resetAndFlush=function(){var b=this;return new Promise(function(_,m){b._reset({onError:function(x){if(b._isBroken)m(x);else{var E=b._handleProtocolError("Received FAILURE as a response for RESET: ".concat(x));m(E)}},onComplete:function(){_()}})})},y.prototype._resetOnFailure=function(){var b=this;this.isOpen()&&this._reset({onError:function(){b._protocol.resetFailure()},onComplete:function(){b._protocol.resetFailure()}})},y.prototype._reset=function(b){var _=this;if(this._reseting)this._protocol.isLastMessageReset()?this._resetObservers.push(b):this._protocol.reset({onError:function(x){b.onError(x)},onComplete:function(){b.onComplete()}});else{this._resetObservers.push(b),this._reseting=!0;var m=function(x){_._reseting=!1;var E=_._resetObservers;_._resetObservers=[],E.forEach(x)};this._protocol.reset({onError:function(x){m(function(E){return E.onError(x)})},onComplete:function(){m(function(x){return x.onComplete()})}})}},y.prototype._updateCurrentObserver=function(){this._protocol.updateCurrentObserver()},y.prototype.isOpen=function(){return!this._isBroken&&this._ch._open},y.prototype._handleOngoingRequestsNumberChange=function(b){this._idle||(b===0?this._ch.stopReceiveTimeout():this._ch.startReceiveTimeout())},y.prototype.close=function(){var b;return i(this,void 0,void 0,function(){return a(this,function(_){switch(_.label){case 0:return this._ssrCallback((b=this.SSREnabledHint)!==null&&b!==void 0&&b,"CLOSE"),this._log.isDebugEnabled()&&this._log.debug("closing"),this._protocol&&this.isOpen()&&this._protocol.prepareToClose(),[4,this._ch.close()];case 1:return _.sent(),this._log.isDebugEnabled()&&this._log.debug("closed"),[2]}})})},y.prototype.toString=function(){return"Connection [".concat(this.id,"][").concat(this.databaseId||"","]")},y.prototype._handleProtocolError=function(b){this._protocol.resetFailure(),this._updateCurrentObserver();var _=(0,u.newError)(b,f);return this._handleFatalError(_),_},y})(l.default);e.default=p},8046:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isArrayLike=void 0,e.isArrayLike=function(t){return t&&typeof t.length=="number"&&typeof t!="function"}},8079:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.debounceTime=void 0;var n=t(7961),i=t(7843),a=t(3111);e.debounceTime=function(o,s){return s===void 0&&(s=n.asyncScheduler),i.operate(function(u,l){var c=null,f=null,d=null,h=function(){if(c){c.unsubscribe(),c=null;var g=f;f=null,l.next(g)}};function p(){var g=d+o,y=s.now();if(y{Object.defineProperty(e,"__esModule",{value:!0}),e.catchError=void 0;var n=t(9445),i=t(3111),a=t(7843);e.catchError=function o(s){return a.operate(function(u,l){var c,f=null,d=!1;f=u.subscribe(i.createOperatorSubscriber(l,void 0,void 0,function(h){c=n.innerFrom(s(h,o(s)(u))),f?(f.unsubscribe(),f=null,c.subscribe(l)):d=!0})),d&&(f.unsubscribe(),f=null,c.subscribe(l))})}},8157:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.publishReplay=void 0;var n=t(1242),i=t(9247),a=t(1018);e.publishReplay=function(o,s,u,l){u&&!a.isFunction(u)&&(l=u);var c=a.isFunction(u)?u:void 0;return function(f){return i.multicast(new n.ReplaySubject(o,s,l),c)(f)}}},8158:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.concatAll=void 0;var n=t(7302);e.concatAll=function(){return n.mergeAll(1)}},8208:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.windowTime=void 0;var n=t(2483),i=t(7961),a=t(8014),o=t(7843),s=t(3111),u=t(7479),l=t(1107),c=t(7110);e.windowTime=function(f){for(var d,h,p=[],g=1;g=0?c.executeSchedule(x,y,T,b,!0):O=!0,T();var P=function(k){return E.slice().forEach(k)},I=function(k){P(function(L){var B=L.window;return k(B)}),k(x),x.unsubscribe()};return m.subscribe(s.createOperatorSubscriber(x,function(k){P(function(L){L.window.next(k),_<=++L.seen&&S(L)})},function(){return I(function(k){return k.complete()})},function(k){return I(function(L){return L.error(k)})})),function(){E=null}})}},8239:function(r,e,t){var n=this&&this.__read||function(o,s){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var l,c,f=u.call(o),d=[];try{for(;(s===void 0||s-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d},i=this&&this.__spreadArray||function(o,s){for(var u=0,l=s.length,c=o.length;u0)&&!(l=f.next()).done;)d.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d},i=this&&this.__spreadArray||function(o,s){for(var u=0,l=s.length,c=o.length;u0)&&b.filter(_).length===b.length}function g(b,_){return!(b in _)||_[b]==null||typeof _[b]=="string"}e.clientCertificateProviders=f,Object.freeze(f),e.resolveCertificateProvider=function(b){if(b!=null){if(typeof b=="object"&&"hasUpdate"in b&&"getClientCertificate"in b&&typeof b.getClientCertificate=="function"&&typeof b.hasUpdate=="function")return b;if(d(b)){var _=i({},b);return{getClientCertificate:function(){return _},hasUpdate:function(){return!1}}}throw new TypeError("clientCertificate should be configured with ClientCertificate or ClientCertificateProvider, but got ".concat(u.stringify(b)))}};var y=(function(){function b(_,m){m===void 0&&(m=!1),this._certificate=_,this._updated=m}return b.prototype.hasUpdate=function(){try{return this._updated}finally{this._updated=!1}},b.prototype.getClientCertificate=function(){return this._certificate},b.prototype.updateCertificate=function(_){if(!d(_))throw new TypeError("certificate should be ClientCertificate, but got ".concat(u.stringify(_)));this._certificate=i({},_),this._updated=!0},b})()},8275:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.first=void 0;var n=t(2823),i=t(783),a=t(846),o=t(378),s=t(4869),u=t(6640);e.first=function(l,c){var f=arguments.length>=2;return function(d){return d.pipe(l?i.filter(function(h,p){return l(h,p,d)}):u.identity,a.take(1),f?o.defaultIfEmpty(c):s.throwIfEmpty(function(){return new n.EmptyError}))}}},8320:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(O){for(var S,T=1,P=arguments.length;T=s.length&&(s=void 0),{value:s&&s[c++],done:!s}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.takeLast=void 0;var i=t(8616),a=t(7843),o=t(3111);e.takeLast=function(s){return s<=0?function(){return i.EMPTY}:a.operate(function(u,l){var c=[];u.subscribe(o.createOperatorSubscriber(l,function(f){c.push(f),s{Object.defineProperty(e,"__esModule",{value:!0});var n=t(7509);function i(o){return Promise.resolve([o])}var a=(function(){function o(s){this._resolverFunction=s??i}return o.prototype.resolve=function(s){var u=this;return new Promise(function(l){return l(u._resolverFunction(s.asHostPort()))}).then(function(l){if(!Array.isArray(l))throw new TypeError("Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses."+"Each address is ':'. Got: ".concat(l));return l.map(function(c){return n.ServerAddress.fromUrl(c)})})},o})();e.default=a},8522:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.repeat=void 0;var n=t(8616),i=t(7843),a=t(3111),o=t(9445),s=t(4092);e.repeat=function(u){var l,c,f=1/0;return u!=null&&(typeof u=="object"?(l=u.count,f=l===void 0?1/0:l,c=u.delay):f=u),f<=0?function(){return n.EMPTY}:i.operate(function(d,h){var p,g=0,y=function(){if(p==null||p.unsubscribe(),p=null,c!=null){var _=typeof c=="number"?s.timer(c):o.innerFrom(c(g)),m=a.createOperatorSubscriber(h,function(){m.unsubscribe(),b()});_.subscribe(m)}else b()},b=function(){var _=!1;p=d.subscribe(a.createOperatorSubscriber(h,void 0,function(){++g{Object.defineProperty(e,"__esModule",{value:!0}),e.argsOrArgArray=void 0;var t=Array.isArray;e.argsOrArgArray=function(n){return n.length===1&&t(n[0])?n[0]:n}},8538:function(r,e,t){var n=this&&this.__read||function(o,s){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var l,c,f=u.call(o),d=[];try{for(;(s===void 0||s-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d},i=this&&this.__spreadArray||function(o,s){for(var u=0,l=s.length,c=o.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.bindNodeCallback=void 0;var n=t(1439);e.bindNodeCallback=function(i,a,o){return n.bindCallbackInternals(!0,i,a,o)}},8613:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isScheduler=void 0;var n=t(1018);e.isScheduler=function(i){return i&&n.isFunction(i.schedule)}},8616:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var n=t(4662);e.EMPTY=new n.Observable(function(i){return i.complete()}),e.empty=function(i){return i?(function(a){return new n.Observable(function(o){return a.schedule(function(){return o.complete()})})})(i):e.EMPTY}},8624:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scan=void 0;var n=t(7843),i=t(6384);e.scan=function(a,o){return n.operate(i.scanInternals(a,o,arguments.length>=2,!0))}},8655:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.never=e.NEVER=void 0;var n=t(4662),i=t(1342);e.NEVER=new n.Observable(i.noop),e.never=function(){return e.NEVER}},8669:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.last=void 0;var n=t(2823),i=t(783),a=t(8330),o=t(4869),s=t(378),u=t(6640);e.last=function(l,c){var f=arguments.length>=2;return function(d){return d.pipe(l?i.filter(function(h,p){return l(h,p,d)}):u.identity,a.takeLast(1),f?s.defaultIfEmpty(c):o.throwIfEmpty(function(){return new n.EmptyError}))}}},8712:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.switchScan=void 0;var n=t(3879),i=t(7843);e.switchScan=function(a,o){return i.operate(function(s,u){var l=o;return n.switchMap(function(c,f){return a(l,c,f)},function(c,f){return l=f,f})(s).subscribe(u),function(){l=null}})}},8731:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=t(7452),i=t(9305),a=["5.8","5.7","5.6","5.4","5.3","5.2","5.1","5.0","4.4","4.3","4.2","3.0"];function o(u,l){return{major:u,minor:l}}function s(u){for(var l=[],c=u[3],f=u[2],d=0;d<=u[1];d++)l.push({major:c,minor:f-d});return l}e.default=function(u,l){return(function(c,f){var d=this;return new Promise(function(h,p){var g=function(y){p(y)};c.onerror=g.bind(d),c._error&&g(c._error),c.onmessage=function(y){try{var b=(function(_,m){var x=[_.readUInt8(),_.readUInt8(),_.readUInt8(),_.readUInt8()];if(x[0]===72&&x[1]===84&&x[2]===84&&x[3]===80)throw m.error("Handshake failed since server responded with HTTP."),(0,i.newError)("Server responded HTTP. Make sure you are not trying to connect to the http endpoint (HTTP defaults to port 7474 whereas BOLT defaults to port 7687)");return+(x[3]+"."+x[2])})(y,f);h({protocolVersion:b,capabilites:0,buffer:y,consumeRemainingBuffer:function(_){y.hasRemaining()&&_(y.readSlice(y.remaining()))}})}catch(_){p(_)}},c.write((function(y){if(y.length>4)throw(0,i.newError)("It should not have more than 4 versions of the protocol");var b=(0,n.alloc)(20);return b.writeInt32(1616949271),y.forEach(function(_){if(_ instanceof Array){var m=_[0],x=m.major,E=(O=m.minor)-_[1].minor;b.writeInt32(E<<16|O<<8|x)}else{x=_.major;var O=_.minor;b.writeInt32(O<<8|x)}}),b.reset(),b})([o(255,1),[o(5,8),o(5,0)],[o(4,4),o(4,2)],o(3,0)]))})})(u,l).then(function(c){return c.protocolVersion===255.1?(function(f,d){for(var h=d.readVarInt(),p=[],g=0;g{Object.defineProperty(e,"__esModule",{value:!0}),e.delayWhen=void 0;var n=t(3865),i=t(846),a=t(490),o=t(3218),s=t(983),u=t(9445);e.delayWhen=function l(c,f){return f?function(d){return n.concat(f.pipe(i.take(1),a.ignoreElements()),d.pipe(l(c)))}:s.mergeMap(function(d,h){return u.innerFrom(c(d,h)).pipe(i.take(1),o.mapTo(d))})}},8774:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.switchAll=void 0;var n=t(3879),i=t(6640);e.switchAll=function(){return n.switchMap(i.identity)}},8784:(r,e,t)=>{var n=t(4704);r.exports=n.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},8808:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleIterable=void 0;var n=t(4662),i=t(1964),a=t(1018),o=t(7110);e.scheduleIterable=function(s,u){return new n.Observable(function(l){var c;return o.executeSchedule(l,u,function(){c=s[i.iterator](),o.executeSchedule(l,u,function(){var f,d,h;try{d=(f=c.next()).value,h=f.done}catch(p){return void l.error(p)}h?l.complete():l.next(d)},0,!0)}),function(){return a.isFunction(c==null?void 0:c.return)&&c.return()}})}},8813:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(ma,bu,lo,Ho){Ho===void 0&&(Ho=lo),Object.defineProperty(ma,Ho,{enumerable:!0,get:function(){return bu[lo]}})}:function(ma,bu,lo,Ho){Ho===void 0&&(Ho=lo),ma[Ho]=bu[lo]}),i=this&&this.__exportStar||function(ma,bu){for(var lo in ma)lo==="default"||Object.prototype.hasOwnProperty.call(bu,lo)||n(bu,ma,lo)};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.onErrorResumeNextWith=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=void 0;var a=t(4662);Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return a.Observable}});var o=t(8918);Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return o.ConnectableObservable}});var s=t(3327);Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return s.observable}});var u=t(3110);Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var l=t(2483);Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return l.Subject}});var c=t(1637);Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return c.BehaviorSubject}});var f=t(1242);Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return f.ReplaySubject}});var d=t(95);Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return d.AsyncSubject}});var h=t(3692);Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return h.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return h.asapScheduler}});var p=t(7961);Object.defineProperty(e,"async",{enumerable:!0,get:function(){return p.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return p.asyncScheduler}});var g=t(2886);Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return g.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return g.queueScheduler}});var y=t(3862);Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return y.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return y.animationFrameScheduler}});var b=t(182);Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return b.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return b.VirtualAction}});var _=t(8986);Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return _.Scheduler}});var m=t(8014);Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return m.Subscription}});var x=t(5);Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return x.Subscriber}});var E=t(7800);Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return E.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return E.NotificationKind}});var O=t(2706);Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return O.pipe}});var S=t(1342);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return S.noop}});var T=t(6640);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return T.identity}});var P=t(1751);Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return P.isObservable}});var I=t(6894);Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return I.lastValueFrom}});var k=t(9060);Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return k.firstValueFrom}});var L=t(7057);Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return L.ArgumentOutOfRangeError}});var B=t(2823);Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return B.EmptyError}});var j=t(1759);Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return j.NotFoundError}});var z=t(9686);Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return z.ObjectUnsubscribedError}});var H=t(1505);Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return H.SequenceError}});var q=t(1554);Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return q.TimeoutError}});var W=t(5788);Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return W.UnsubscriptionError}});var $=t(2713);Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return $.bindCallback}});var J=t(8561);Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return J.bindNodeCallback}});var X=t(3247);Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return X.combineLatest}});var Z=t(3865);Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return Z.concat}});var ue=t(7579);Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return ue.connectable}});var re=t(9353);Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return re.defer}});var ne=t(8616);Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return ne.empty}});var le=t(9105);Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return le.forkJoin}});var ce=t(4917);Object.defineProperty(e,"from",{enumerable:!0,get:function(){return ce.from}});var pe=t(5337);Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return pe.fromEvent}});var fe=t(347);Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return fe.fromEventPattern}});var se=t(7610);Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return se.generate}});var de=t(4209);Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return de.iif}});var ge=t(6472);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return ge.interval}});var Oe=t(2833);Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return Oe.merge}});var ke=t(8655);Object.defineProperty(e,"never",{enumerable:!0,get:function(){return ke.never}});var De=t(1004);Object.defineProperty(e,"of",{enumerable:!0,get:function(){return De.of}});var Ne=t(6102);Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Ne.onErrorResumeNext}});var Ce=t(7740);Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return Ce.pairs}});var Y=t(1699);Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Y.partition}});var Q=t(5584);Object.defineProperty(e,"race",{enumerable:!0,get:function(){return Q.race}});var ie=t(9376);Object.defineProperty(e,"range",{enumerable:!0,get:function(){return ie.range}});var we=t(1103);Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return we.throwError}});var Ee=t(4092);Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return Ee.timer}});var Me=t(7853);Object.defineProperty(e,"using",{enumerable:!0,get:function(){return Me.using}});var Ie=t(7286);Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return Ie.zip}});var Ye=t(1656);Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return Ye.scheduled}});var ot=t(8616);Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return ot.EMPTY}});var mt=t(8655);Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return mt.NEVER}}),i(t(6038),e);var wt=t(3413);Object.defineProperty(e,"config",{enumerable:!0,get:function(){return wt.config}});var Mt=t(3146);Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return Mt.audit}});var Dt=t(3231);Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return Dt.auditTime}});var vt=t(8015);Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return vt.buffer}});var tt=t(5572);Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return tt.bufferCount}});var _e=t(7210);Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return _e.bufferTime}});var Ue=t(8995);Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return Ue.bufferToggle}});var Qe=t(8831);Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return Qe.bufferWhen}});var Ze=t(8118);Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return Ze.catchError}});var nt=t(6625);Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return nt.combineAll}});var It=t(6728);Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return It.combineLatestAll}});var ct=t(8239);Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return ct.combineLatestWith}});var Lt=t(8158);Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Lt.concatAll}});var Rt=t(9135);Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Rt.concatMap}});var jt=t(9938);Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return jt.concatMapTo}});var Yt=t(9669);Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return Yt.concatWith}});var sr=t(1483);Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return sr.connect}});var Ut=t(1038);Object.defineProperty(e,"count",{enumerable:!0,get:function(){return Ut.count}});var Rr=t(4461);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Rr.debounce}});var Xt=t(8079);Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Xt.debounceTime}});var Vr=t(378);Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return Vr.defaultIfEmpty}});var Br=t(914);Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return Br.delay}});var mr=t(8766);Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return mr.delayWhen}});var ur=t(7441);Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return ur.dematerialize}});var sn=t(5365);Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return sn.distinct}});var Fr=t(8937);Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Fr.distinctUntilChanged}});var un=t(9612);Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return un.distinctUntilKeyChanged}});var bn=t(4520);Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return bn.elementAt}});var wn=t(1776);Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return wn.endWith}});var _n=t(5510);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return _n.every}});var xn=t(1551);Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return xn.exhaust}});var on=t(2752);Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return on.exhaustAll}});var Nn=t(4753);Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return Nn.exhaustMap}});var fi=t(7661);Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return fi.expand}});var gn=t(783);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return gn.filter}});var yn=t(3555);Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return yn.finalize}});var Jn=t(7714);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return Jn.find}});var _i=t(9756);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return _i.findIndex}});var Ir=t(8275);Object.defineProperty(e,"first",{enumerable:!0,get:function(){return Ir.first}});var pa=t(7815);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return pa.groupBy}});var di=t(490);Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return di.ignoreElements}});var Bt=t(9356);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Bt.isEmpty}});var hr=t(8669);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return hr.last}});var ei=t(5471);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return ei.map}});var Hn=t(3218);Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return Hn.mapTo}});var ds=t(2360);Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return ds.materialize}});var Na=t(1415);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return Na.max}});var ki=t(7302);Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return ki.mergeAll}});var Wr=t(6902);Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return Wr.flatMap}});var Nr=t(983);Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return Nr.mergeMap}});var na=t(6586);Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return na.mergeMapTo}});var Us=t(4408);Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return Us.mergeScan}});var vu=t(8253);Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return vu.mergeWith}});var ga=t(2669);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return ga.min}});var zs=t(9247);Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return zs.multicast}});var Ln=t(5184);Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return Ln.observeOn}});var Ii=t(1226);Object.defineProperty(e,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Ii.onErrorResumeNextWith}});var Ni=t(1518);Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return Ni.pairwise}});var Pc=t(4912);Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return Pc.pluck}});var pu=t(766);Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return pu.publish}});var ia=t(7220);Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return ia.publishBehavior}});var Hl=t(6106);Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return Hl.publishLast}});var Md=t(8157);Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return Md.publishReplay}});var Xa=t(5600);Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return Xa.raceWith}});var Wl=t(9139);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return Wl.reduce}});var Yl=t(8522);Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return Yl.repeat}});var nf=t(6566);Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return nf.repeatWhen}});var Wi=t(7835);Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return Wi.retry}});var af=t(9843);Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return af.retryWhen}});var La=t(7561);Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return La.refCount}});var Go=t(1731);Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return Go.sample}});var Gf=t(6086);Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return Gf.sampleTime}});var hs=t(8624);Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return hs.scan}});var Mc=t(582);Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return Mc.sequenceEqual}});var Xl=t(8977);Object.defineProperty(e,"share",{enumerable:!0,get:function(){return Xl.share}});var ti=t(3133);Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return ti.shareReplay}});var qs=t(5382);Object.defineProperty(e,"single",{enumerable:!0,get:function(){return qs.single}});var Ju=t(3982);Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return Ju.skip}});var Gs=t(9098);Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return Gs.skipLast}});var $l=t(7372);Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return $l.skipUntil}});var of=t(4721);Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return of.skipWhile}});var gu=t(269);Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return gu.startWith}});var wo=t(8960);Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return wo.subscribeOn}});var xo=t(8774);Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return xo.switchAll}});var Vf=t(3879);Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Vf.switchMap}});var sf=t(3274);Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return sf.switchMapTo}});var yu=t(8712);Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return yu.switchScan}});var uo=t(846);Object.defineProperty(e,"take",{enumerable:!0,get:function(){return uo.take}});var el=t(8330);Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return el.takeLast}});var Kl=t(4780);Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return Kl.takeUntil}});var Vo=t(2129);Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return Vo.takeWhile}});var vs=t(3964);Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return vs.tap}});var jn=t(8941);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return jn.throttle}});var Zr=t(7640);Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Zr.throttleTime}});var Zl=t(4869);Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return Zl.throwIfEmpty}});var ps=t(489);Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return ps.timeInterval}});var Dc=t(1554);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return Dc.timeout}});var Oa=t(4862);Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Oa.timeoutWith}});var tl=t(6505);Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return tl.timestamp}});var uf=t(2343);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return uf.toArray}});var Ql=t(5477);Object.defineProperty(e,"window",{enumerable:!0,get:function(){return Ql.window}});var rl=t(6746);Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return rl.windowCount}});var wi=t(8208);Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return wi.windowTime}});var Jl=t(6637);Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return Jl.windowToggle}});var aa=t(1141);Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return aa.windowWhen}});var mu=t(5442);Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return mu.withLatestFrom}});var lf=t(187);Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return lf.zipAll}});var ya=t(8538);Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return ya.zipWith}})},8831:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bufferWhen=void 0;var n=t(7843),i=t(1342),a=t(3111),o=t(9445);e.bufferWhen=function(s){return n.operate(function(u,l){var c=null,f=null,d=function(){f==null||f.unsubscribe();var h=c;c=[],h&&l.next(h),o.innerFrom(s()).subscribe(f=a.createOperatorSubscriber(l,d,i.noop))};d(),u.subscribe(a.createOperatorSubscriber(l,function(h){return c==null?void 0:c.push(h)},function(){c&&l.next(c),l.complete()},void 0,function(){return c=f=null}))})}},8888:(r,e,t)=>{var n=t(5636).Buffer,i=n.isEncoding||function(p){switch((p=""+p)&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(p){var g;switch(this.encoding=(function(y){var b=(function(_){if(!_)return"utf8";for(var m;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(m)return;_=(""+_).toLowerCase(),m=!0}})(y);if(typeof b!="string"&&(n.isEncoding===i||!i(y)))throw new Error("Unknown encoding: "+y);return b||y})(p),this.encoding){case"utf16le":this.text=u,this.end=l,g=4;break;case"utf8":this.fillLast=s,g=4;break;case"base64":this.text=c,this.end=f,g=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(g)}function o(p){return p<=127?0:p>>5==6?2:p>>4==14?3:p>>3==30?4:p>>6==2?-1:-2}function s(p){var g=this.lastTotal-this.lastNeed,y=(function(b,_){if((192&_[0])!=128)return b.lastNeed=0,"�";if(b.lastNeed>1&&_.length>1){if((192&_[1])!=128)return b.lastNeed=1,"�";if(b.lastNeed>2&&_.length>2&&(192&_[2])!=128)return b.lastNeed=2,"�"}})(this,p);return y!==void 0?y:this.lastNeed<=p.length?(p.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(p.copy(this.lastChar,g,0,p.length),void(this.lastNeed-=p.length))}function u(p,g){if((p.length-g)%2==0){var y=p.toString("utf16le",g);if(y){var b=y.charCodeAt(y.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",g,p.length-1)}function l(p){var g=p&&p.length?this.write(p):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,y)}return g}function c(p,g){var y=(p.length-g)%3;return y===0?p.toString("base64",g):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",g,p.length-y))}function f(p){var g=p&&p.length?this.write(p):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function d(p){return p.toString(this.encoding)}function h(p){return p&&p.length?this.write(p):""}e.StringDecoder=a,a.prototype.write=function(p){if(p.length===0)return"";var g,y;if(this.lastNeed){if((g=this.fillLast(p))===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y=0?(O>0&&(_.lastNeed=O-1),O):--E=0?(O>0&&(_.lastNeed=O-2),O):--E=0?(O>0&&(O===2?O=0:_.lastNeed=O-3),O):0})(this,p,g);if(!this.lastNeed)return p.toString("utf8",g);this.lastTotal=y;var b=p.length-(y-this.lastNeed);return p.copy(this.lastChar,0,b),p.toString("utf8",g,b)},a.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length}},8917:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,i){this.keys=t,this.records=n,this.summary=i}},8918:function(r,e,t){var n=this&&this.__extends||(function(){var c=function(f,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(h[g]=p[g])},c(f,d)};return function(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function h(){this.constructor=f}c(f,d),f.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectableObservable=void 0;var i=t(4662),a=t(8014),o=t(7561),s=t(3111),u=t(7843),l=(function(c){function f(d,h){var p=c.call(this)||this;return p.source=d,p.subjectFactory=h,p._subject=null,p._refCount=0,p._connection=null,u.hasLift(d)&&(p.lift=d.lift),p}return n(f,c),f.prototype._subscribe=function(d){return this.getSubject().subscribe(d)},f.prototype.getSubject=function(){var d=this._subject;return d&&!d.isStopped||(this._subject=this.subjectFactory()),this._subject},f.prototype._teardown=function(){this._refCount=0;var d=this._connection;this._subject=this._connection=null,d==null||d.unsubscribe()},f.prototype.connect=function(){var d=this,h=this._connection;if(!h){h=this._connection=new a.Subscription;var p=this.getSubject();h.add(this.source.subscribe(s.createOperatorSubscriber(p,void 0,function(){d._teardown(),p.complete()},function(g){d._teardown(),p.error(g)},function(){return d._teardown()}))),h.closed&&(this._connection=null,h=a.Subscription.EMPTY)}return h},f.prototype.refCount=function(){return o.refCount()(this)},f})(i.Observable);e.ConnectableObservable=l},8937:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.distinctUntilChanged=void 0;var n=t(6640),i=t(7843),a=t(3111);function o(s,u){return s===u}e.distinctUntilChanged=function(s,u){return u===void 0&&(u=n.identity),s=s??o,i.operate(function(l,c){var f,d=!0;l.subscribe(a.createOperatorSubscriber(c,function(h){var p=u(h);!d&&s(f,p)||(d=!1,f=p,c.next(h))}))})}},8941:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=void 0;var n=t(7843),i=t(3111),a=t(9445);e.throttle=function(o,s){return n.operate(function(u,l){var c=s??{},f=c.leading,d=f===void 0||f,h=c.trailing,p=h!==void 0&&h,g=!1,y=null,b=null,_=!1,m=function(){b==null||b.unsubscribe(),b=null,p&&(O(),_&&l.complete())},x=function(){b=null,_&&l.complete()},E=function(S){return b=a.innerFrom(o(S)).subscribe(i.createOperatorSubscriber(l,m,x))},O=function(){if(g){g=!1;var S=y;y=null,l.next(S),!_&&E(S)}};u.subscribe(i.createOperatorSubscriber(l,function(S){g=!0,y=S,(!b||b.closed)&&(d?O():E(S))},function(){_=!0,(!(p&&g&&b)||b.closed)&&l.complete()}))})}},8960:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.subscribeOn=void 0;var n=t(7843);e.subscribeOn=function(i,a){return a===void 0&&(a=0),n.operate(function(o,s){s.add(i.schedule(function(){return o.subscribe(s)},a))})}},8977:function(r,e,t){var n=this&&this.__read||function(c,f){var d=typeof Symbol=="function"&&c[Symbol.iterator];if(!d)return c;var h,p,g=d.call(c),y=[];try{for(;(f===void 0||f-- >0)&&!(h=g.next()).done;)y.push(h.value)}catch(b){p={error:b}}finally{try{h&&!h.done&&(d=g.return)&&d.call(g)}finally{if(p)throw p.error}}return y},i=this&&this.__spreadArray||function(c,f){for(var d=0,h=f.length,p=c.length;d0&&(x=new s.SafeSubscriber({next:function(H){return z.next(H)},error:function(H){P=!0,I(),E=l(k,p,H),z.error(H)},complete:function(){T=!0,I(),E=l(k,y),z.complete()}}),a.innerFrom(B).subscribe(x))})(m)}}},8986:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Scheduler=void 0;var n=t(9568),i=(function(){function a(o,s){s===void 0&&(s=a.now),this.schedulerActionCtor=o,this.now=s}return a.prototype.schedule=function(o,s,u){return s===void 0&&(s=0),new this.schedulerActionCtor(this,o).schedule(u,s)},a.now=n.dateTimestampProvider.now,a})();e.Scheduler=i},8987:function(r,e,t){var n=this&&this.__extends||(function(){var E=function(O,S){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,P){T.__proto__=P}||function(T,P){for(var I in P)Object.prototype.hasOwnProperty.call(P,I)&&(T[I]=P[I])},E(O,S)};return function(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function T(){this.constructor=O}E(O,S),O.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}})(),i=this&&this.__awaiter||function(E,O,S,T){return new(S||(S=Promise))(function(P,I){function k(j){try{B(T.next(j))}catch(z){I(z)}}function L(j){try{B(T.throw(j))}catch(z){I(z)}}function B(j){var z;j.done?P(j.value):(z=j.value,z instanceof S?z:new S(function(H){H(z)})).then(k,L)}B((T=T.apply(E,O||[])).next())})},a=this&&this.__generator||function(E,O){var S,T,P,I,k={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return I={next:L(0),throw:L(1),return:L(2)},typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function L(B){return function(j){return(function(z){if(S)throw new TypeError("Generator is already executing.");for(;I&&(I=0,z[0]&&(k=0)),k;)try{if(S=1,T&&(P=2&z[0]?T.return:z[0]?T.throw||((P=T.return)&&P.call(T),0):T.next)&&!(P=P.call(T,z[1])).done)return P;switch(T=0,P&&(z=[2&z[0],P.value]),z[0]){case 0:case 1:P=z;break;case 4:return k.label++,{value:z[1],done:!1};case 5:k.label++,T=z[1],z=[0];continue;case 7:z=k.ops.pop(),k.trys.pop();continue;default:if(!((P=(P=k.trys).length>0&&P[P.length-1])||z[0]!==6&&z[0]!==2)){k=0;continue}if(z[0]===3&&(!P||z[1]>P[0]&&z[1]0)&&!(T=I.next()).done;)k.push(T.value)}catch(L){P={error:L}}finally{try{T&&!T.done&&(S=I.return)&&S.call(I)}finally{if(P)throw P.error}}return k},s=this&&this.__spreadArray||function(E,O,S){if(S||arguments.length===2)for(var T,P=0,I=O.length;PT)},O.prototype._destroyConnection=function(S){return delete this._openConnections[S.id],S.close()},O.prototype._verifyConnectivityAndGetServerVersion=function(S){var T=S.address;return i(this,void 0,void 0,function(){var P,I;return a(this,function(k){switch(k.label){case 0:return[4,this._connectionPool.acquire({},T)];case 1:P=k.sent(),I=new c.ServerInfo(P.server,P.protocol().version),k.label=2;case 2:return k.trys.push([2,,5,7]),P.protocol().isLastMessageLogon()?[3,4]:[4,P.resetAndFlush()];case 3:k.sent(),k.label=4;case 4:return[3,7];case 5:return[4,P.release()];case 6:return k.sent(),[7];case 7:return[2,I]}})})},O.prototype._verifyAuthentication=function(S){var T=S.getAddress,P=S.auth;return i(this,void 0,void 0,function(){var I,k,L,B,j,z;return a(this,function(H){switch(H.label){case 0:I=[],H.label=1;case 1:return H.trys.push([1,8,9,11]),[4,T()];case 2:return k=H.sent(),[4,this._connectionPool.acquire({auth:P,skipReAuth:!0},k)];case 3:if(L=H.sent(),I.push(L),B=!L.protocol().isLastMessageLogon(),!L.supportsReAuth)throw(0,c.newError)("Driver is connected to a database that does not support user switch.");return B&&L.supportsReAuth?[4,this._authenticationProvider.authenticate({connection:L,auth:P,waitReAuth:!0,forceReAuth:!0})]:[3,5];case 4:return H.sent(),[3,7];case 5:return!B||L.supportsReAuth?[3,7]:[4,this._connectionPool.acquire({auth:P},k,{requireNew:!0})];case 6:(j=H.sent())._sticky=!0,I.push(j),H.label=7;case 7:return[2,!0];case 8:if(z=H.sent(),y.includes(z.code))return[2,!1];throw z;case 9:return[4,Promise.all(I.map(function(q){return q.release()}))];case 10:return H.sent(),[7];case 11:return[2]}})})},O.prototype._verifyStickyConnection=function(S){var T=S.auth,P=S.connection;return S.address,i(this,void 0,void 0,function(){var I,k;return a(this,function(L){switch(L.label){case 0:return I=d.object.equals(T,P.authToken),k=!I,P._sticky=I&&!P.supportsReAuth,k||P._sticky?[4,P.release()]:[3,2];case 1:throw L.sent(),(0,c.newError)("Driver is connected to a database that does not support user switch.");case 2:return[2]}})})},O.prototype.close=function(){return i(this,void 0,void 0,function(){return a(this,function(S){switch(S.label){case 0:return[4,this._connectionPool.close()];case 1:return S.sent(),[4,Promise.all(Object.values(this._openConnections).map(function(T){return T.close()}))];case 2:return S.sent(),[2]}})})},O._installIdleObserverOnConnection=function(S,T){S._setIdle(T)},O._removeIdleObserverOnConnection=function(S){S._unsetIdle()},O.prototype._handleSecurityError=function(S,T,P){return this._authenticationProvider.handleError({connection:P,code:S.code})&&(S.retriable=!0),S.code==="Neo.ClientError.Security.AuthorizationExpired"&&this._connectionPool.apply(T,function(I){I.authToken=null}),P&&P.close().catch(function(){}),S},O})(c.ConnectionProvider);e.default=x},8995:function(r,e,t){var n=this&&this.__values||function(c){var f=typeof Symbol=="function"&&Symbol.iterator,d=f&&c[f],h=0;if(d)return d.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&h>=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferToggle=void 0;var i=t(8014),a=t(7843),o=t(9445),s=t(3111),u=t(1342),l=t(7479);e.bufferToggle=function(c,f){return a.operate(function(d,h){var p=[];o.innerFrom(c).subscribe(s.createOperatorSubscriber(h,function(g){var y=[];p.push(y);var b=new i.Subscription;b.add(o.innerFrom(f(g)).subscribe(s.createOperatorSubscriber(h,function(){l.arrRemove(p,y),h.next(y),b.unsubscribe()},u.noop)))},u.noop)),d.subscribe(s.createOperatorSubscriber(h,function(g){var y,b;try{for(var _=n(p),m=_.next();!m.done;m=_.next())m.value.push(g)}catch(x){y={error:x}}finally{try{m&&!m.done&&(b=_.return)&&b.call(_)}finally{if(y)throw y.error}}},function(){for(;p.length>0;)h.next(p.shift());h.complete()}))})}},9014:function(r,e,t){var n=this&&this.__extends||(function(){var E=function(O,S){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,P){T.__proto__=P}||function(T,P){for(var I in P)Object.prototype.hasOwnProperty.call(P,I)&&(T[I]=P[I])},E(O,S)};return function(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function T(){this.constructor=O}E(O,S),O.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}})(),i=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryObserver=e.ProcedureRouteObserver=e.RouteObserver=e.CompletedObserver=e.FailedObserver=e.ResetObserver=e.LogoffObserver=e.LoginObserver=e.ResultStreamObserver=e.StreamObserver=void 0;var a=t(9305),o=i(t(7790)),s=t(6781),u=a.internal.constants.FETCH_ALL,l=a.error.PROTOCOL_ERROR,c=(function(){function E(){}return E.prototype.onNext=function(O){},E.prototype.onError=function(O){},E.prototype.onCompleted=function(O){},E})();e.StreamObserver=c;var f=(function(E){function O(S){var T=S===void 0?{}:S,P=T.reactive,I=P!==void 0&&P,k=T.moreFunction,L=T.discardFunction,B=T.fetchSize,j=B===void 0?u:B,z=T.beforeError,H=T.afterError,q=T.beforeKeys,W=T.afterKeys,$=T.beforeComplete,J=T.afterComplete,X=T.server,Z=T.highRecordWatermark,ue=Z===void 0?Number.MAX_VALUE:Z,re=T.lowRecordWatermark,ne=re===void 0?Number.MAX_VALUE:re,le=T.enrichMetadata,ce=T.onDb,pe=E.call(this)||this;return pe._fieldKeys=null,pe._fieldLookup=null,pe._head=null,pe._queuedRecords=[],pe._tail=null,pe._error=null,pe._observers=[],pe._meta={},pe._server=X,pe._beforeError=z,pe._afterError=H,pe._beforeKeys=q,pe._afterKeys=W,pe._beforeComplete=$,pe._afterComplete=J,pe._enrichMetadata=le||s.functional.identity,pe._queryId=null,pe._moreFunction=k,pe._discardFunction=L,pe._discard=!1,pe._fetchSize=j,pe._lowRecordWatermark=ne,pe._highRecordWatermark=ue,pe._setState(I?x.READY:x.READY_STREAMING),pe._setupAutoPull(),pe._paused=!1,pe._pulled=!I,pe._haveRecordStreamed=!1,pe._onDb=ce,pe}return n(O,E),O.prototype.pause=function(){this._paused=!0},O.prototype.resume=function(){this._paused=!1,this._setupAutoPull(!0),this._state.pull(this)},O.prototype.onNext=function(S){this._haveRecordStreamed=!0;var T=new a.Record(this._fieldKeys,S,this._fieldLookup);this._observers.some(function(P){return P.onNext})?this._observers.forEach(function(P){P.onNext&&P.onNext(T)}):(this._queuedRecords.push(T),this._queuedRecords.length>this._highRecordWatermark&&(this._autoPull=!1))},O.prototype.onCompleted=function(S){this._state.onSuccess(this,S)},O.prototype.onError=function(S){this._state.onError(this,S)},O.prototype.cancel=function(){this._discard=!0},O.prototype.prepareToHandleSingleResponse=function(){this._head=[],this._fieldKeys=[],this._setState(x.STREAMING)},O.prototype.markCompleted=function(){this._head=[],this._fieldKeys=[],this._tail={},this._setState(x.SUCCEEDED)},O.prototype.subscribe=function(S){if(this._head&&S.onKeys&&S.onKeys(this._head),this._queuedRecords.length>0&&S.onNext)for(var T=0;T0}},S));if([void 0,null,"r","w","rw","s"].includes(P.type)){this._setState(x.SUCCEEDED);var I=null;this._beforeComplete&&(I=this._beforeComplete(P));var k=function(){T._tail=P,T._observers.some(function(L){return L.onCompleted})&&T._observers.forEach(function(L){L.onCompleted&&L.onCompleted(P)}),T._afterComplete&&T._afterComplete(P)};I?Promise.resolve(I).then(function(){return k()}):k()}else this.onError((0,a.newError)(`Server returned invalid query type. Expected one of [undefined, null, "r", "w", "rw", "s"] but got '`.concat(P.type,"'"),l))},O.prototype._handleRunSuccess=function(S,T){var P=this;if(this._fieldKeys===null){if(this._fieldKeys=[],this._fieldLookup={},S.fields&&S.fields.length>0){this._fieldKeys=S.fields;for(var I=0;I0)&&!(m=E.next()).done;)O.push(m.value)}catch(S){x={error:S}}finally{try{m&&!m.done&&(_=E.return)&&_.call(E)}finally{if(x)throw x.error}}return O},i=this&&this.__spreadArray||function(y,b,_){if(_||arguments.length===2)for(var m,x=0,E=b.length;x{function t(n,i,a){return{kind:n,value:i,error:a}}Object.defineProperty(e,"__esModule",{value:!0}),e.createNotification=e.nextNotification=e.errorNotification=e.COMPLETE_NOTIFICATION=void 0,e.COMPLETE_NOTIFICATION=t("C",void 0,void 0),e.errorNotification=function(n){return t("E",void 0,n)},e.nextNotification=function(n){return t("N",n,void 0)},e.createNotification=t},9054:function(r,e,t){var n=this&&this.__extends||(function(){var b=function(_,m){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var O in E)Object.prototype.hasOwnProperty.call(E,O)&&(x[O]=E[O])},b(_,m)};return function(_,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function x(){this.constructor=_}b(_,m),_.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}})(),i=this&&this.__assign||function(){return i=Object.assign||function(b){for(var _,m=1,x=arguments.length;m{Object.defineProperty(e,"__esModule",{value:!0}),e.firstValueFrom=void 0;var n=t(2823),i=t(5);e.firstValueFrom=function(a,o){var s=typeof o=="object";return new Promise(function(u,l){var c=new i.SafeSubscriber({next:function(f){u(f),c.unsubscribe()},error:l,complete:function(){s?u(o.defaultValue):l(new n.EmptyError)}});a.subscribe(c)})}},9098:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.skipLast=void 0;var n=t(6640),i=t(7843),a=t(3111);e.skipLast=function(o){return o<=0?n.identity:i.operate(function(s,u){var l=new Array(o),c=0;return s.subscribe(a.createOperatorSubscriber(u,function(f){var d=c++;if(d{Object.defineProperty(e,"__esModule",{value:!0}),e.forkJoin=void 0;var n=t(4662),i=t(7360),a=t(9445),o=t(1107),s=t(3111),u=t(1251),l=t(6013);e.forkJoin=function(){for(var c=[],f=0;f{Object.defineProperty(e,"__esModule",{value:!0}),e.concatMap=void 0;var n=t(983),i=t(1018);e.concatMap=function(a,o){return i.isFunction(o)?n.mergeMap(a,o,1):n.mergeMap(a,1)}},9137:function(r,e,t){var n=this&&this.__generator||function(s,u){var l,c,f,d,h={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return d={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(g){return function(y){return(function(b){if(l)throw new TypeError("Generator is already executing.");for(;h;)try{if(l=1,c&&(f=2&b[0]?c.return:b[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,b[1])).done)return f;switch(c=0,f&&(b=[2&b[0],f.value]),b[0]){case 0:case 1:f=b;break;case 4:return h.label++,{value:b[1],done:!1};case 5:h.label++,c=b[1],b=[0];continue;case 7:b=h.ops.pop(),h.trys.pop();continue;default:if(!((f=(f=h.trys).length>0&&f[f.length-1])||b[0]!==6&&b[0]!==2)){h=0;continue}if(b[0]===3&&(!f||b[1]>f[0]&&b[1]1||p(_,m)})})}function p(_,m){try{(x=f[_](m)).value instanceof i?Promise.resolve(x.value.v).then(g,y):b(d[0][2],x)}catch(E){b(d[0][3],E)}var x}function g(_){p("next",_)}function y(_){p("throw",_)}function b(_,m){_(m),d.shift(),d.length&&p(d[0][0],d[0][1])}};Object.defineProperty(e,"__esModule",{value:!0}),e.isReadableStreamLike=e.readableStreamLikeToAsyncGenerator=void 0;var o=t(1018);e.readableStreamLikeToAsyncGenerator=function(s){return a(this,arguments,function(){var u,l,c;return n(this,function(f){switch(f.label){case 0:u=s.getReader(),f.label=1;case 1:f.trys.push([1,,9,10]),f.label=2;case 2:return[4,i(u.read())];case 3:return l=f.sent(),c=l.value,l.done?[4,i(void 0)]:[3,5];case 4:return[2,f.sent()];case 5:return[4,i(c)];case 6:return[4,f.sent()];case 7:return f.sent(),[3,2];case 8:return[3,10];case 9:return u.releaseLock(),[7];case 10:return[2]}})})},e.isReadableStreamLike=function(s){return o.isFunction(s==null?void 0:s.getReader)}},9139:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reduce=void 0;var n=t(6384),i=t(7843);e.reduce=function(a,o){return i.operate(n.scanInternals(a,o,arguments.length>=2,!1,!0))}},9155:function(r,e){var t=this&&this.__read||function(i,a){var o=typeof Symbol=="function"&&i[Symbol.iterator];if(!o)return i;var s,u,l=o.call(i),c=[];try{for(;(a===void 0||a-- >0)&&!(s=l.next()).done;)c.push(s.value)}catch(f){u={error:f}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(u)throw u.error}}return c},n=this&&this.__spreadArray||function(i,a){for(var o=0,s=a.length,u=i.length;o{Object.defineProperty(e,"__esModule",{value:!0}),e.captureError=e.errorContext=void 0;var n=t(3413),i=null;e.errorContext=function(a){if(n.config.useDeprecatedSynchronousErrorHandling){var o=!i;if(o&&(i={errorThrown:!1,error:null}),a(),o){var s=i,u=s.errorThrown,l=s.error;if(i=null,u)throw l}}else a()},e.captureError=function(a){n.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=a)}},9238:function(r,e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(o){for(var s,u=1,l=arguments.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.multicast=void 0;var n=t(8918),i=t(1018),a=t(1483);e.multicast=function(o,s){var u=i.isFunction(o)?o:function(){return o};return i.isFunction(s)?a.connect(s,{connector:u}):function(l){return new n.ConnectableObservable(l,u)}}},9305:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(X,Z,ue,re){re===void 0&&(re=ue);var ne=Object.getOwnPropertyDescriptor(Z,ue);ne&&!("get"in ne?!Z.__esModule:ne.writable||ne.configurable)||(ne={enumerable:!0,get:function(){return Z[ue]}}),Object.defineProperty(X,re,ne)}:function(X,Z,ue,re){re===void 0&&(re=ue),X[re]=Z[ue]}),i=this&&this.__setModuleDefault||(Object.create?function(X,Z){Object.defineProperty(X,"default",{enumerable:!0,value:Z})}:function(X,Z){X.default=Z}),a=this&&this.__importStar||function(X){if(X&&X.__esModule)return X;var Z={};if(X!=null)for(var ue in X)ue!=="default"&&Object.prototype.hasOwnProperty.call(X,ue)&&n(Z,X,ue);return i(Z,X),Z},o=this&&this.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(e,"__esModule",{value:!0}),e.EagerResult=e.Result=e.Stats=e.QueryStatistics=e.ProfiledPlan=e.Plan=e.GqlStatusObject=e.Notification=e.ServerInfo=e.queryType=e.ResultSummary=e.Record=e.isPathSegment=e.PathSegment=e.isPath=e.Path=e.isUnboundRelationship=e.UnboundRelationship=e.isRelationship=e.Relationship=e.isNode=e.Node=e.Time=e.LocalTime=e.LocalDateTime=e.isTime=e.isLocalTime=e.isLocalDateTime=e.isDuration=e.isDateTime=e.isDate=e.Duration=e.DateTime=e.Date=e.Point=e.isPoint=e.internal=e.toString=e.toNumber=e.inSafeRange=e.isInt=e.int=e.Integer=e.error=e.isRetriableError=e.GQLError=e.newGQLError=e.Neo4jError=e.newError=e.authTokenManagers=void 0,e.resolveCertificateProvider=e.clientCertificateProviders=e.notificationFilterMinimumSeverityLevel=e.notificationFilterDisabledClassification=e.notificationFilterDisabledCategory=e.notificationSeverityLevel=e.notificationClassification=e.notificationCategory=e.resultTransformers=e.routing=e.staticAuthTokenManager=e.bookmarkManager=e.auth=e.json=e.driver=e.types=e.Driver=e.Session=e.TransactionPromise=e.ManagedTransaction=e.Transaction=e.Connection=e.Releasable=e.ConnectionProvider=void 0;var s=t(9691);Object.defineProperty(e,"newError",{enumerable:!0,get:function(){return s.newError}}),Object.defineProperty(e,"Neo4jError",{enumerable:!0,get:function(){return s.Neo4jError}}),Object.defineProperty(e,"newGQLError",{enumerable:!0,get:function(){return s.newGQLError}}),Object.defineProperty(e,"GQLError",{enumerable:!0,get:function(){return s.GQLError}}),Object.defineProperty(e,"isRetriableError",{enumerable:!0,get:function(){return s.isRetriableError}});var u=a(t(3371));e.Integer=u.default,Object.defineProperty(e,"int",{enumerable:!0,get:function(){return u.int}}),Object.defineProperty(e,"isInt",{enumerable:!0,get:function(){return u.isInt}}),Object.defineProperty(e,"inSafeRange",{enumerable:!0,get:function(){return u.inSafeRange}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return u.toNumber}}),Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return u.toString}});var l=t(5459);Object.defineProperty(e,"Date",{enumerable:!0,get:function(){return l.Date}}),Object.defineProperty(e,"DateTime",{enumerable:!0,get:function(){return l.DateTime}}),Object.defineProperty(e,"Duration",{enumerable:!0,get:function(){return l.Duration}}),Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return l.isDate}}),Object.defineProperty(e,"isDateTime",{enumerable:!0,get:function(){return l.isDateTime}}),Object.defineProperty(e,"isDuration",{enumerable:!0,get:function(){return l.isDuration}}),Object.defineProperty(e,"isLocalDateTime",{enumerable:!0,get:function(){return l.isLocalDateTime}}),Object.defineProperty(e,"isLocalTime",{enumerable:!0,get:function(){return l.isLocalTime}}),Object.defineProperty(e,"isTime",{enumerable:!0,get:function(){return l.isTime}}),Object.defineProperty(e,"LocalDateTime",{enumerable:!0,get:function(){return l.LocalDateTime}}),Object.defineProperty(e,"LocalTime",{enumerable:!0,get:function(){return l.LocalTime}}),Object.defineProperty(e,"Time",{enumerable:!0,get:function(){return l.Time}});var c=t(1517);Object.defineProperty(e,"Node",{enumerable:!0,get:function(){return c.Node}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return c.isNode}}),Object.defineProperty(e,"Relationship",{enumerable:!0,get:function(){return c.Relationship}}),Object.defineProperty(e,"isRelationship",{enumerable:!0,get:function(){return c.isRelationship}}),Object.defineProperty(e,"UnboundRelationship",{enumerable:!0,get:function(){return c.UnboundRelationship}}),Object.defineProperty(e,"isUnboundRelationship",{enumerable:!0,get:function(){return c.isUnboundRelationship}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.Path}}),Object.defineProperty(e,"isPath",{enumerable:!0,get:function(){return c.isPath}}),Object.defineProperty(e,"PathSegment",{enumerable:!0,get:function(){return c.PathSegment}}),Object.defineProperty(e,"isPathSegment",{enumerable:!0,get:function(){return c.isPathSegment}});var f=o(t(4820));e.Record=f.default;var d=t(7093);Object.defineProperty(e,"isPoint",{enumerable:!0,get:function(){return d.isPoint}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return d.Point}});var h=a(t(6033));e.ResultSummary=h.default,Object.defineProperty(e,"queryType",{enumerable:!0,get:function(){return h.queryType}}),Object.defineProperty(e,"ServerInfo",{enumerable:!0,get:function(){return h.ServerInfo}}),Object.defineProperty(e,"Plan",{enumerable:!0,get:function(){return h.Plan}}),Object.defineProperty(e,"ProfiledPlan",{enumerable:!0,get:function(){return h.ProfiledPlan}}),Object.defineProperty(e,"QueryStatistics",{enumerable:!0,get:function(){return h.QueryStatistics}}),Object.defineProperty(e,"Stats",{enumerable:!0,get:function(){return h.Stats}});var p=a(t(1866));e.Notification=p.default,Object.defineProperty(e,"GqlStatusObject",{enumerable:!0,get:function(){return p.GqlStatusObject}}),Object.defineProperty(e,"notificationCategory",{enumerable:!0,get:function(){return p.notificationCategory}}),Object.defineProperty(e,"notificationClassification",{enumerable:!0,get:function(){return p.notificationClassification}}),Object.defineProperty(e,"notificationSeverityLevel",{enumerable:!0,get:function(){return p.notificationSeverityLevel}});var g=t(1985);Object.defineProperty(e,"notificationFilterDisabledCategory",{enumerable:!0,get:function(){return g.notificationFilterDisabledCategory}}),Object.defineProperty(e,"notificationFilterDisabledClassification",{enumerable:!0,get:function(){return g.notificationFilterDisabledClassification}}),Object.defineProperty(e,"notificationFilterMinimumSeverityLevel",{enumerable:!0,get:function(){return g.notificationFilterMinimumSeverityLevel}});var y=o(t(9512));e.Result=y.default;var b=o(t(8917));e.EagerResult=b.default;var _=a(t(2007));e.ConnectionProvider=_.default,Object.defineProperty(e,"Releasable",{enumerable:!0,get:function(){return _.Releasable}});var m=o(t(1409));e.Connection=m.default;var x=o(t(9473));e.Transaction=x.default;var E=o(t(5909));e.ManagedTransaction=E.default;var O=o(t(4569));e.TransactionPromise=O.default;var S=o(t(5481));e.Session=S.default;var T=a(t(7264)),P=T;e.Driver=T.default,e.driver=P;var I=o(t(1967));e.auth=I.default;var k=t(6755);Object.defineProperty(e,"bookmarkManager",{enumerable:!0,get:function(){return k.bookmarkManager}});var L=t(2069);Object.defineProperty(e,"authTokenManagers",{enumerable:!0,get:function(){return L.authTokenManagers}}),Object.defineProperty(e,"staticAuthTokenManager",{enumerable:!0,get:function(){return L.staticAuthTokenManager}});var B=t(7264);Object.defineProperty(e,"routing",{enumerable:!0,get:function(){return B.routing}});var j=a(t(6872));e.types=j;var z=a(t(4027));e.json=z;var H=o(t(1573));e.resultTransformers=H.default;var q=t(8264);Object.defineProperty(e,"clientCertificateProviders",{enumerable:!0,get:function(){return q.clientCertificateProviders}}),Object.defineProperty(e,"resolveCertificateProvider",{enumerable:!0,get:function(){return q.resolveCertificateProvider}});var W=a(t(6995));e.internal=W;var $={SERVICE_UNAVAILABLE:s.SERVICE_UNAVAILABLE,SESSION_EXPIRED:s.SESSION_EXPIRED,PROTOCOL_ERROR:s.PROTOCOL_ERROR};e.error=$;var J={authTokenManagers:L.authTokenManagers,newError:s.newError,Neo4jError:s.Neo4jError,newGQLError:s.newGQLError,GQLError:s.GQLError,isRetriableError:s.isRetriableError,error:$,Integer:u.default,int:u.int,isInt:u.isInt,inSafeRange:u.inSafeRange,toNumber:u.toNumber,toString:u.toString,internal:W,isPoint:d.isPoint,Point:d.Point,Date:l.Date,DateTime:l.DateTime,Duration:l.Duration,isDate:l.isDate,isDateTime:l.isDateTime,isDuration:l.isDuration,isLocalDateTime:l.isLocalDateTime,isLocalTime:l.isLocalTime,isTime:l.isTime,LocalDateTime:l.LocalDateTime,LocalTime:l.LocalTime,Time:l.Time,Node:c.Node,isNode:c.isNode,Relationship:c.Relationship,isRelationship:c.isRelationship,UnboundRelationship:c.UnboundRelationship,isUnboundRelationship:c.isUnboundRelationship,Path:c.Path,isPath:c.isPath,PathSegment:c.PathSegment,isPathSegment:c.isPathSegment,Record:f.default,ResultSummary:h.default,queryType:h.queryType,ServerInfo:h.ServerInfo,Notification:p.default,GqlStatusObject:p.GqlStatusObject,Plan:h.Plan,ProfiledPlan:h.ProfiledPlan,QueryStatistics:h.QueryStatistics,Stats:h.Stats,Result:y.default,EagerResult:b.default,Transaction:x.default,ManagedTransaction:E.default,TransactionPromise:O.default,Session:S.default,Driver:T.default,Connection:m.default,Releasable:_.Releasable,types:j,driver:P,json:z,auth:I.default,bookmarkManager:k.bookmarkManager,routing:B.routing,resultTransformers:H.default,notificationCategory:p.notificationCategory,notificationClassification:p.notificationClassification,notificationSeverityLevel:p.notificationSeverityLevel,notificationFilterDisabledCategory:g.notificationFilterDisabledCategory,notificationFilterDisabledClassification:g.notificationFilterDisabledClassification,notificationFilterMinimumSeverityLevel:g.notificationFilterMinimumSeverityLevel,clientCertificateProviders:q.clientCertificateProviders,resolveCertificateProvider:q.resolveCertificateProvider};e.default=J},9318:(r,e)=>{e.read=function(t,n,i,a,o){var s,u,l=8*o-a-1,c=(1<>1,d=-7,h=i?o-1:0,p=i?-1:1,g=t[n+h];for(h+=p,s=g&(1<<-d)-1,g>>=-d,d+=l;d>0;s=256*s+t[n+h],h+=p,d-=8);for(u=s&(1<<-d)-1,s>>=-d,d+=a;d>0;u=256*u+t[n+h],h+=p,d-=8);if(s===0)s=1-f;else{if(s===c)return u?NaN:1/0*(g?-1:1);u+=Math.pow(2,a),s-=f}return(g?-1:1)*u*Math.pow(2,s-a)},e.write=function(t,n,i,a,o,s){var u,l,c,f=8*s-o-1,d=(1<>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=a?0:s-1,y=a?1:-1,b=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(l=isNaN(n)?1:0,u=d):(u=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-u))<1&&(u--,c*=2),(n+=u+h>=1?p/c:p*Math.pow(2,1-h))*c>=2&&(u++,c/=2),u+h>=d?(l=0,u=d):u+h>=1?(l=(n*c-1)*Math.pow(2,o),u+=h):(l=n*Math.pow(2,h-1)*Math.pow(2,o),u=0));o>=8;t[i+g]=255&l,g+=y,l/=256,o-=8);for(u=u<0;t[i+g]=255&u,g+=y,u/=256,f-=8);t[i+g-y]|=128*b}},9353:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defer=void 0;var n=t(4662),i=t(9445);e.defer=function(a){return new n.Observable(function(o){i.innerFrom(a()).subscribe(o)})}},9356:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=void 0;var n=t(7843),i=t(3111);e.isEmpty=function(){return n.operate(function(a,o){a.subscribe(i.createOperatorSubscriber(o,function(){o.next(!1),o.complete()},function(){o.next(!0),o.complete()}))})}},9376:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.range=void 0;var n=t(4662),i=t(8616);e.range=function(a,o,s){if(o==null&&(o=a,a=0),o<=0)return i.EMPTY;var u=o+a;return new n.Observable(s?function(l){var c=a;return s.schedule(function(){c{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAll=e.merge=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.concat=e.combineLatestWith=e.combineLatest=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=void 0,e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.race=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.partition=e.pairwise=e.onErrorResumeNext=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=void 0,e.zipWith=e.zipAll=e.zip=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=void 0;var n=t(3146);Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return n.audit}});var i=t(3231);Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return i.auditTime}});var a=t(8015);Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return a.buffer}});var o=t(5572);Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return o.bufferCount}});var s=t(7210);Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return s.bufferTime}});var u=t(8995);Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return u.bufferToggle}});var l=t(8831);Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return l.bufferWhen}});var c=t(8118);Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return c.catchError}});var f=t(6625);Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return f.combineAll}});var d=t(6728);Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return d.combineLatestAll}});var h=t(2551);Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return h.combineLatest}});var p=t(8239);Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return p.combineLatestWith}});var g=t(7601);Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return g.concat}});var y=t(8158);Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return y.concatAll}});var b=t(9135);Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return b.concatMap}});var _=t(9938);Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return _.concatMapTo}});var m=t(9669);Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return m.concatWith}});var x=t(1483);Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return x.connect}});var E=t(1038);Object.defineProperty(e,"count",{enumerable:!0,get:function(){return E.count}});var O=t(4461);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return O.debounce}});var S=t(8079);Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return S.debounceTime}});var T=t(378);Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return T.defaultIfEmpty}});var P=t(914);Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return P.delay}});var I=t(8766);Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return I.delayWhen}});var k=t(7441);Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return k.dematerialize}});var L=t(5365);Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return L.distinct}});var B=t(8937);Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return B.distinctUntilChanged}});var j=t(9612);Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return j.distinctUntilKeyChanged}});var z=t(4520);Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return z.elementAt}});var H=t(1776);Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return H.endWith}});var q=t(5510);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return q.every}});var W=t(1551);Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return W.exhaust}});var $=t(2752);Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return $.exhaustAll}});var J=t(4753);Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return J.exhaustMap}});var X=t(7661);Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return X.expand}});var Z=t(783);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return Z.filter}});var ue=t(3555);Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return ue.finalize}});var re=t(7714);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return re.find}});var ne=t(9756);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return ne.findIndex}});var le=t(8275);Object.defineProperty(e,"first",{enumerable:!0,get:function(){return le.first}});var ce=t(7815);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return ce.groupBy}});var pe=t(490);Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return pe.ignoreElements}});var fe=t(9356);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return fe.isEmpty}});var se=t(8669);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return se.last}});var de=t(5471);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return de.map}});var ge=t(3218);Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return ge.mapTo}});var Oe=t(2360);Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return Oe.materialize}});var ke=t(1415);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return ke.max}});var De=t(361);Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return De.merge}});var Ne=t(7302);Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return Ne.mergeAll}});var Ce=t(6902);Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return Ce.flatMap}});var Y=t(983);Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return Y.mergeMap}});var Q=t(6586);Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return Q.mergeMapTo}});var ie=t(4408);Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return ie.mergeScan}});var we=t(8253);Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return we.mergeWith}});var Ee=t(2669);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return Ee.min}});var Me=t(9247);Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return Me.multicast}});var Ie=t(5184);Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return Ie.observeOn}});var Ye=t(1226);Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Ye.onErrorResumeNext}});var ot=t(1518);Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return ot.pairwise}});var mt=t(2171);Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return mt.partition}});var wt=t(4912);Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return wt.pluck}});var Mt=t(766);Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return Mt.publish}});var Dt=t(7220);Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return Dt.publishBehavior}});var vt=t(6106);Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return vt.publishLast}});var tt=t(8157);Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return tt.publishReplay}});var _e=t(4440);Object.defineProperty(e,"race",{enumerable:!0,get:function(){return _e.race}});var Ue=t(5600);Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return Ue.raceWith}});var Qe=t(9139);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return Qe.reduce}});var Ze=t(8522);Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return Ze.repeat}});var nt=t(6566);Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return nt.repeatWhen}});var It=t(7835);Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return It.retry}});var ct=t(9843);Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return ct.retryWhen}});var Lt=t(7561);Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return Lt.refCount}});var Rt=t(1731);Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return Rt.sample}});var jt=t(6086);Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return jt.sampleTime}});var Yt=t(8624);Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return Yt.scan}});var sr=t(582);Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return sr.sequenceEqual}});var Ut=t(8977);Object.defineProperty(e,"share",{enumerable:!0,get:function(){return Ut.share}});var Rr=t(3133);Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Rr.shareReplay}});var Xt=t(5382);Object.defineProperty(e,"single",{enumerable:!0,get:function(){return Xt.single}});var Vr=t(3982);Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return Vr.skip}});var Br=t(9098);Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return Br.skipLast}});var mr=t(7372);Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return mr.skipUntil}});var ur=t(4721);Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return ur.skipWhile}});var sn=t(269);Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return sn.startWith}});var Fr=t(8960);Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return Fr.subscribeOn}});var un=t(8774);Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return un.switchAll}});var bn=t(3879);Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return bn.switchMap}});var wn=t(3274);Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return wn.switchMapTo}});var _n=t(8712);Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return _n.switchScan}});var xn=t(846);Object.defineProperty(e,"take",{enumerable:!0,get:function(){return xn.take}});var on=t(8330);Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return on.takeLast}});var Nn=t(4780);Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return Nn.takeUntil}});var fi=t(2129);Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return fi.takeWhile}});var gn=t(3964);Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return gn.tap}});var yn=t(8941);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return yn.throttle}});var Jn=t(7640);Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Jn.throttleTime}});var _i=t(4869);Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return _i.throwIfEmpty}});var Ir=t(489);Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return Ir.timeInterval}});var pa=t(1554);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return pa.timeout}});var di=t(4862);Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return di.timeoutWith}});var Bt=t(6505);Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Bt.timestamp}});var hr=t(2343);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return hr.toArray}});var ei=t(5477);Object.defineProperty(e,"window",{enumerable:!0,get:function(){return ei.window}});var Hn=t(6746);Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return Hn.windowCount}});var ds=t(8208);Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return ds.windowTime}});var Na=t(6637);Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return Na.windowToggle}});var ki=t(1141);Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return ki.windowWhen}});var Wr=t(5442);Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return Wr.withLatestFrom}});var Nr=t(5918);Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return Nr.zip}});var na=t(187);Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return na.zipAll}});var Us=t(8538);Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return Us.zipWith}})},9445:function(r,e,t){var n=this&&this.__awaiter||function(T,P,I,k){return new(I||(I=Promise))(function(L,B){function j(q){try{H(k.next(q))}catch(W){B(W)}}function z(q){try{H(k.throw(q))}catch(W){B(W)}}function H(q){var W;q.done?L(q.value):(W=q.value,W instanceof I?W:new I(function($){$(W)})).then(j,z)}H((k=k.apply(T,P||[])).next())})},i=this&&this.__generator||function(T,P){var I,k,L,B,j={label:0,sent:function(){if(1&L[0])throw L[1];return L[1]},trys:[],ops:[]};return B={next:z(0),throw:z(1),return:z(2)},typeof Symbol=="function"&&(B[Symbol.iterator]=function(){return this}),B;function z(H){return function(q){return(function(W){if(I)throw new TypeError("Generator is already executing.");for(;j;)try{if(I=1,k&&(L=2&W[0]?k.return:W[0]?k.throw||((L=k.return)&&L.call(k),0):k.next)&&!(L=L.call(k,W[1])).done)return L;switch(k=0,L&&(W=[2&W[0],L.value]),W[0]){case 0:case 1:L=W;break;case 4:return j.label++,{value:W[1],done:!1};case 5:j.label++,k=W[1],W=[0];continue;case 7:W=j.ops.pop(),j.trys.pop();continue;default:if(!((L=(L=j.trys).length>0&&L[L.length-1])||W[0]!==6&&W[0]!==2)){j=0;continue}if(W[0]===3&&(!L||W[1]>L[0]&&W[1]=T.length&&(T=void 0),{value:T&&T[k++],done:!T}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.fromReadableStreamLike=e.fromAsyncIterable=e.fromIterable=e.fromPromise=e.fromArrayLike=e.fromInteropObservable=e.innerFrom=void 0;var s=t(8046),u=t(7629),l=t(4662),c=t(1116),f=t(1358),d=t(7614),h=t(6368),p=t(9137),g=t(1018),y=t(7315),b=t(3327);function _(T){return new l.Observable(function(P){var I=T[b.observable]();if(g.isFunction(I.subscribe))return I.subscribe(P);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function m(T){return new l.Observable(function(P){for(var I=0;I0&&E[E.length-1])||k[0]!==6&&k[0]!==2)){S=0;continue}if(k[0]===3&&(!E||k[1]>E[0]&&k[1]0)&&!(l=f.next()).done;)d.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d},i=this&&this.__spreadArray||function(o,s){for(var u=0,l=s.length,c=o.length;u0&&m[m.length-1])||P[0]!==6&&P[0]!==2)){E=0;continue}if(P[0]===3&&(!m||P[1]>m[0]&&P[1]=y._watermarks.high,I=T<=y._watermarks.low;P&&!_.paused?(_.paused=!0,_.streaming.pause()):(I&&_.paused||_.firstRun&&!P)&&(_.firstRun=!1,_.paused=!1,_.streaming.resume())}},x=function(){return i(y,void 0,void 0,function(){var O;return a(this,function(S){switch(S.label){case 0:return _.queuedObserver!==void 0?[3,2]:(_.queuedObserver=this._createQueuedResultObserver(m),O=_,[4,this._subscribe(_.queuedObserver,!0).catch(function(){})]);case 1:O.streaming=S.sent(),m(),S.label=2;case 2:return[2,_.queuedObserver]}})})},E=function(O){if(O===void 0)throw(0,l.newError)("InvalidState: Result stream finished without Summary",l.PROTOCOL_ERROR);return!0};return{next:function(){return i(y,void 0,void 0,function(){var O;return a(this,function(S){switch(S.label){case 0:return _.finished&&E(_.summary)?[2,{done:!0,value:_.summary}]:[4,x()];case 1:return[4,S.sent().dequeue()];case 2:return(O=S.sent()).done===!0&&(_.finished=O.done,_.summary=O.value),[2,O]}})})},return:function(O){return i(y,void 0,void 0,function(){var S,T;return a(this,function(P){switch(P.label){case 0:return _.finished&&E(_.summary)?[2,{done:!0,value:O??_.summary}]:((T=_.streaming)===null||T===void 0||T.cancel(),[4,x()]);case 1:return[4,P.sent().dequeueUntilDone()];case 2:return S=P.sent(),_.finished=!0,S.value=O??S.value,_.summary=S.value,[2,S]}})})},peek:function(){return i(y,void 0,void 0,function(){return a(this,function(O){switch(O.label){case 0:return _.finished&&E(_.summary)?[2,{done:!0,value:_.summary}]:[4,x()];case 1:return[4,O.sent().head()];case 2:return[2,O.sent()]}})})}}},g.prototype.then=function(y,b){return this._getOrCreatePromise().then(y,b)},g.prototype.catch=function(y){return this._getOrCreatePromise().catch(y)},g.prototype.finally=function(y){return this._getOrCreatePromise().finally(y)},g.prototype.subscribe=function(y){this._subscribe(y).catch(function(){})},g.prototype.isOpen=function(){return this._summary===null&&this._error===null},g.prototype._subscribe=function(y,b){b===void 0&&(b=!1);var _=this._decorateObserver(y);return this._streamObserverPromise.then(function(m){return b&&m.pause(),m.subscribe(_),m}).catch(function(m){return _.onError!=null&&_.onError(m),Promise.reject(m)})},g.prototype._decorateObserver=function(y){var b,_,m,x=this,E=(b=y.onCompleted)!==null&&b!==void 0?b:d,O=(_=y.onError)!==null&&_!==void 0?_:f,S=(m=y.onKeys)!==null&&m!==void 0?m:h;return{onNext:y.onNext!=null?y.onNext.bind(y):void 0,onKeys:function(T){return x._keys=T,S.call(y,T)},onCompleted:function(T){x._releaseConnectionAndGetSummary(T).then(function(P){return x._summary!==null?E.call(y,x._summary):(x._summary=P,E.call(y,P))}).catch(O)},onError:function(T){x._connectionHolder.releaseConnection().then(function(){(function(P,I){I!=null&&(P.stack=P.toString()+` -`+I)})(T,x._stack),x._error=T,O.call(y,T)}).catch(O)}}},g.prototype._cancel=function(){this._summary===null&&this._error===null&&this._streamObserverPromise.then(function(y){return y.cancel()}).catch(function(){})},g.prototype._releaseConnectionAndGetSummary=function(y){var b=u.util.validateQueryAndParameters(this._query,this._parameters,{skipAsserts:!0}),_=b.validatedQuery,m=b.params,x=this._connectionHolder;return x.getConnection().then(function(E){return x.releaseConnection().then(function(){return E==null?void 0:E.getProtocolVersion()})},function(E){}).then(function(E){return new s.default(_,m,y,E)})},g.prototype._createQueuedResultObserver=function(y){var b=this;function _(){var T={};return T.promise=new Promise(function(P,I){T.resolve=P,T.reject=I}),T}function m(T){return T instanceof Error}function x(){var T;return i(this,void 0,void 0,function(){var P;return a(this,function(I){switch(I.label){case 0:if(E.length>0){if(P=(T=E.shift())!==null&&T!==void 0?T:(0,l.newError)("Unexpected empty buffer",l.PROTOCOL_ERROR),y(),m(P))throw P;return[2,P]}return O.resolvable=_(),[4,O.resolvable.promise];case 1:return[2,I.sent()]}})})}var E=[],O={resolvable:null},S={onNext:function(T){S._push({done:!1,value:T})},onCompleted:function(T){S._push({done:!0,value:T})},onError:function(T){S._push(T)},_push:function(T){if(O.resolvable!==null){var P=O.resolvable;O.resolvable=null,m(T)?P.reject(T):P.resolve(T)}else E.push(T),y()},dequeue:x,dequeueUntilDone:function(){return i(b,void 0,void 0,function(){var T;return a(this,function(P){switch(P.label){case 0:return[4,x()];case 1:return(T=P.sent()).done===!0?[2,T]:[3,0];case 2:return[2]}})})},head:function(){return i(b,void 0,void 0,function(){var T,P;return a(this,function(I){switch(I.label){case 0:if(E.length>0){if(m(T=E[0]))throw T;return[2,T]}O.resolvable=_(),I.label=1;case 1:return I.trys.push([1,3,4,5]),[4,O.resolvable.promise];case 2:return T=I.sent(),E.unshift(T),[2,T];case 3:throw P=I.sent(),E.unshift(P),P;case 4:return y(),[7];case 5:return[2]}})})},get size(){return E.length}};return S},g})();n=Symbol.toStringTag,e.default=p},9567:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleObservable=void 0;var n=t(9445),i=t(5184),a=t(8960);e.scheduleObservable=function(o,s){return n.innerFrom(o).pipe(a.subscribeOn(s),i.observeOn(s))}},9568:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},9589:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.schedulePromise=void 0;var n=t(9445),i=t(5184),a=t(8960);e.schedulePromise=function(o,s){return n.innerFrom(o).pipe(a.subscribeOn(s),i.observeOn(s))}},9612:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.distinctUntilKeyChanged=void 0;var n=t(8937);e.distinctUntilKeyChanged=function(i,a){return n.distinctUntilChanged(function(o,s){return a?a(o[i],s[i]):o[i]===s[i]})}},9669:function(r,e,t){var n=this&&this.__read||function(o,s){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var l,c,f=u.call(o),d=[];try{for(;(s===void 0||s-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d},i=this&&this.__spreadArray||function(o,s){for(var u=0,l=s.length,c=o.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectUnsubscribedError=void 0;var n=t(5568);e.ObjectUnsubscribedError=n.createErrorClass(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},9689:function(r,e,t){var n=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingConnectionProvider=e.DirectConnectionProvider=e.PooledConnectionProvider=e.SingleConnectionProvider=void 0;var i=t(4132);Object.defineProperty(e,"SingleConnectionProvider",{enumerable:!0,get:function(){return n(i).default}});var a=t(8987);Object.defineProperty(e,"PooledConnectionProvider",{enumerable:!0,get:function(){return n(a).default}});var o=t(3545);Object.defineProperty(e,"DirectConnectionProvider",{enumerable:!0,get:function(){return n(o).default}});var s=t(7428);Object.defineProperty(e,"RoutingConnectionProvider",{enumerable:!0,get:function(){return n(s).default}})},9691:function(r,e,t){var n=this&&this.__extends||(function(){var y=function(b,_){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,x){m.__proto__=x}||function(m,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(m[E]=x[E])},y(b,_)};return function(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=b}y(b,_),b.prototype=_===null?Object.create(_):(m.prototype=_.prototype,new m)}})(),i=this&&this.__createBinding||(Object.create?function(y,b,_,m){m===void 0&&(m=_);var x=Object.getOwnPropertyDescriptor(b,_);x&&!("get"in x?!b.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function(){return b[_]}}),Object.defineProperty(y,m,x)}:function(y,b,_,m){m===void 0&&(m=_),y[m]=b[_]}),a=this&&this.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),o=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var _ in y)_!=="default"&&Object.prototype.hasOwnProperty.call(y,_)&&i(b,y,_);return a(b,y),b};Object.defineProperty(e,"__esModule",{value:!0}),e.PROTOCOL_ERROR=e.SESSION_EXPIRED=e.SERVICE_UNAVAILABLE=e.GQLError=e.Neo4jError=e.isRetriableError=e.newGQLError=e.newError=void 0;var s=o(t(4027)),u=t(1053),l={DATABASE_ERROR:"DATABASE_ERROR",CLIENT_ERROR:"CLIENT_ERROR",TRANSIENT_ERROR:"TRANSIENT_ERROR",UNKNOWN:"UNKNOWN"};Object.freeze(l);var c=Object.values(l),f="ServiceUnavailable";e.SERVICE_UNAVAILABLE=f;var d="SessionExpired";e.SESSION_EXPIRED=d,e.PROTOCOL_ERROR="ProtocolError";var h=(function(y){function b(_,m,x,E,O){var S,T=this;return(T=y.call(this,_,O!=null?{cause:O}:void 0)||this).constructor=b,T.__proto__=b.prototype,T.cause=O??void 0,T.gqlStatus=m,T.gqlStatusDescription=x,T.diagnosticRecord=E,T.classification=(function(P){return P===void 0||P._classification===void 0?"UNKNOWN":c.includes(P._classification)?P==null?void 0:P._classification:"UNKNOWN"})(T.diagnosticRecord),T.rawClassification=(S=E==null?void 0:E._classification)!==null&&S!==void 0?S:void 0,T.name="GQLError",T}return n(b,y),Object.defineProperty(b.prototype,"diagnosticRecordAsJsonString",{get:function(){return s.stringify(this.diagnosticRecord,{useCustomToString:!0})},enumerable:!1,configurable:!0}),b})(Error);e.GQLError=h;var p=(function(y){function b(_,m,x,E,O,S){var T=y.call(this,_,x,E,O,S)||this;return T.constructor=b,T.__proto__=b.prototype,T.code=m,T.name="Neo4jError",T.retriable=(function(P){return P===f||P===d||(function(I){return I==="Neo.ClientError.Security.AuthorizationExpired"})(P)||(function(I){return(I==null?void 0:I.includes("TransientError"))===!0})(P)})(m),T}return n(b,y),b.isRetriable=function(_){return _!=null&&_ instanceof b&&_.retriable},b})(h);e.Neo4jError=p,e.newError=function(y,b,_,m,x,E){return new p(y,b??"N/A",m??"50N42",x??"error: general processing exception - unexpected error. "+y,E??u.rawPolyfilledDiagnosticRecord,_)},e.newGQLError=function(y,b,_,m,x){return new h(y,_??"50N42",m??"error: general processing exception - unexpected error. "+y,x??u.rawPolyfilledDiagnosticRecord,b)};var g=p.isRetriable;e.isRetriableError=g},9730:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(d,h,p,g){g===void 0&&(g=p);var y=Object.getOwnPropertyDescriptor(h,p);y&&!("get"in y?!h.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return h[p]}}),Object.defineProperty(d,g,y)}:function(d,h,p,g){g===void 0&&(g=p),d[g]=h[p]}),i=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),a=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var p in d)p!=="default"&&Object.prototype.hasOwnProperty.call(d,p)&&n(h,d,p);return i(h,d),h},o=this&&this.__read||function(d,h){var p=typeof Symbol=="function"&&d[Symbol.iterator];if(!p)return d;var g,y,b=p.call(d),_=[];try{for(;(h===void 0||h-- >0)&&!(g=b.next()).done;)_.push(g.value)}catch(m){y={error:m}}finally{try{g&&!g.done&&(p=b.return)&&p.call(b)}finally{if(y)throw y.error}}return _},s=this&&this.__spreadArray||function(d,h,p){if(p||arguments.length===2)for(var g,y=0,b=h.length;y{Object.defineProperty(e,"__esModule",{value:!0}),e.findIndex=void 0;var n=t(7843),i=t(7714);e.findIndex=function(a,o){return n.operate(i.createFind(a,o,"index"))}},9792:(r,e,t)=>{var n=t(7045),i=t(4360),a=t(6804);r.exports=function(o,s){if(!s)return o;var u=Object.keys(s);if(u.length===0)return o;for(var l=n(o),c=u.length-1;c>=0;c--){var f=u[c],d=String(s[f]);d&&(d=" "+d),a(l,{type:"preprocessor",data:"#define "+f+d})}return i(l)}},9823:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=t(9305),i=t(8813),a=t(9419),o=(n.internal.logger.Logger,n.error.SERVICE_UNAVAILABLE),s=(function(){function l(c){var f=c===void 0?{}:c,d=f.maxRetryTimeout,h=d===void 0?3e4:d,p=f.initialDelay,g=p===void 0?1e3:p,y=f.delayMultiplier,b=y===void 0?2:y,_=f.delayJitter,m=_===void 0?.2:_,x=f.logger,E=x===void 0?null:x;this._maxRetryTimeout=u(h,3e4),this._initialDelay=u(g,1e3),this._delayMultiplier=u(b,2),this._delayJitter=u(m,.2),this._logger=E}return l.prototype.retry=function(c){var f=this;return c.pipe((0,a.retryWhen)(function(d){var h=[],p=Date.now(),g=1,y=f._initialDelay;return d.pipe((0,a.mergeMap)(function(b){if(!(0,n.isRetriableError)(b))return(0,i.throwError)(function(){return b});if(h.push(b),g>=2&&Date.now()-p>=f._maxRetryTimeout){var _=(0,n.newError)("Failed after retried for ".concat(g," times in ").concat(f._maxRetryTimeout," ms. Make sure that your database is online and retry again."),o);return _.seenErrors=h,(0,i.throwError)(function(){return _})}var m=f._computeNextDelay(y);return y*=f._delayMultiplier,g++,f._logger&&f._logger.warn("Transaction failed and will be retried in ".concat(m)),(0,i.of)(1).pipe((0,a.delay)(m))}))}))},l.prototype._computeNextDelay=function(c){var f=c*this._delayJitter;return c-f+2*f*Math.random()},l})();function u(l,c){return l||l===0?l:c}e.default=s},9843:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retryWhen=void 0;var n=t(9445),i=t(2483),a=t(7843),o=t(3111);e.retryWhen=function(s){return a.operate(function(u,l){var c,f,d=!1,h=function(){c=u.subscribe(o.createOperatorSubscriber(l,void 0,void 0,function(p){f||(f=new i.Subject,n.innerFrom(s(f)).subscribe(o.createOperatorSubscriber(l,function(){return c?h():d=!0}))),f&&f.next(p)})),d&&(c.unsubscribe(),c=null,d=!1,h())};h()})}},9857:function(r,e,t){var n=this&&this.__extends||(function(){var o=function(s,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},o(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function l(){this.constructor=s}o(s,u),s.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}})(),i=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var a=(function(o){function s(u,l){var c=o.call(this,l)||this;return l&&(c._originalErrorHandler=u._errorHandler,u._errorHandler=c._errorHandler),c._delegate=u,c}return n(s,o),s.prototype.beginTransaction=function(u){return this._delegate.beginTransaction(u)},s.prototype.run=function(u,l,c){return this._delegate.run(u,l,c)},s.prototype.commitTransaction=function(u){return this._delegate.commitTransaction(u)},s.prototype.rollbackTransaction=function(u){return this._delegate.rollbackTransaction(u)},s.prototype.getProtocolVersion=function(){return this._delegate.getProtocolVersion()},Object.defineProperty(s.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"databaseId",{get:function(){return this._delegate.databaseId},set:function(u){this._delegate.databaseId=u},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"server",{get:function(){return this._delegate.server},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"authToken",{get:function(){return this._delegate.authToken},set:function(u){this._delegate.authToken=u},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"supportsReAuth",{get:function(){return this._delegate.supportsReAuth},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"address",{get:function(){return this._delegate.address},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"version",{get:function(){return this._delegate.version},set:function(u){this._delegate.version=u},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"creationTimestamp",{get:function(){return this._delegate.creationTimestamp},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"idleTimestamp",{get:function(){return this._delegate.idleTimestamp},set:function(u){this._delegate.idleTimestamp=u},enumerable:!1,configurable:!0}),s.prototype.isOpen=function(){return this._delegate.isOpen()},s.prototype.protocol=function(){return this._delegate.protocol()},s.prototype.connect=function(u,l,c,f){return this._delegate.connect(u,l,c,f)},s.prototype.write=function(u,l,c){return this._delegate.write(u,l,c)},s.prototype.resetAndFlush=function(){return this._delegate.resetAndFlush()},s.prototype.hasOngoingObservableRequests=function(){return this._delegate.hasOngoingObservableRequests()},s.prototype.close=function(){return this._delegate.close()},s.prototype.release=function(){return this._originalErrorHandler&&(this._delegate._errorHandler=this._originalErrorHandler),this._delegate.release()},s})(i(t(6385)).default);e.default=a},9938:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.concatMapTo=void 0;var n=t(9135),i=t(1018);e.concatMapTo=function(a,o){return i.isFunction(o)?n.concatMap(function(){return a},o):n.concatMap(function(){return a})}},9975:(r,e,t)=>{var n=t(7101),i=Array.prototype.concat,a=Array.prototype.slice,o=r.exports=function(s){for(var u=[],l=0,c=s.length;l{var e=r&&r.__esModule?()=>r.default:()=>r;return io.d(e,{a:e}),e},io.d=(r,e)=>{for(var t in e)io.o(e,t)&&!io.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},io.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),io.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),io.nmd=r=>(r.paths=[],r.children||(r.children=[]),r);var Hi=io(5250),pae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};function iE(r,e){function t(){this.constructor=r}pae(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var n_=(function(){function r(e){e===void 0&&(e="Atom@"+cu()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=ii.NOT_TRACKING}return r.prototype.onBecomeUnobserved=function(){},r.prototype.reportObserved=function(){eq(this)},r.prototype.reportChanged=function(){Tp(),(function(e){if(e.lowestObserverState!==ii.STALE){e.lowestObserverState=ii.STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===ii.UP_TO_DATE&&(i.isTracing!==Od.NONE&&tq(i,e),i.onBecomeStale()),i.dependenciesState=ii.STALE}}})(this),Cp()},r.prototype.toString=function(){return this.name},r})(),gae=(function(r){function e(t,n,i){t===void 0&&(t="Atom@"+cu()),n===void 0&&(n=A8),i===void 0&&(i=A8);var a=r.call(this,t)||this;return a.name=t,a.onBecomeObservedHandler=n,a.onBecomeUnobservedHandler=i,a.isPendingUnobservation=!1,a.isBeingTracked=!1,a}return iE(e,r),e.prototype.reportObserved=function(){return Tp(),r.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),Cp(),!!Er.trackingDerivation},e.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},e})(n_),ID=ly("Atom",n_);function Kg(r){return r.interceptors&&r.interceptors.length>0}function aE(r,e){var t=r.interceptors||(r.interceptors=[]);return t.push(e),FD(function(){var n=t.indexOf(e);n!==-1&&t.splice(n,1)})}function Zg(r,e){var t=cy();try{var n=r.interceptors;if(n)for(var i=0,a=n.length;i0}function oE(r,e){var t=r.changeListeners||(r.changeListeners=[]);return t.push(e),FD(function(){var n=t.indexOf(e);n!==-1&&t.splice(n,1)})}function Op(r,e){var t=cy(),n=r.changeListeners;if(n){for(var i=0,a=(n=n.slice()).length;i=this.length,value:et){for(var n=new Array(e-t),i=0;i0&&e+t+1>PM&&ND(e+t+1)},r.prototype.spliceWithArray=function(e,t,n){var i=this;qD(this.atom);var a=this.values.length;if(e===void 0?e=0:e>a?e=a:e<0&&(e=Math.max(0,a+e)),t=arguments.length===1?a-e:t==null?0:Math.max(0,Math.min(t,a-e)),n===void 0&&(n=[]),Kg(this)){var o=Zg(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return Uz;t=o.removedCount,n=o.added}var s=(n=n.map(function(l){return i.enhancer(l,void 0)})).length-t;this.updateArrayLength(a,s);var u=this.spliceItemsIntoValues(e,t,n);return t===0&&n.length===0||this.notifyArraySplice(e,n,u),this.dehanceValues(u)},r.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(i=this.values).splice.apply(i,[e,t].concat(n));var i,a=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),a},r.prototype.notifyArrayChildUpdate=function(e,t,n){var i=!this.owned&&zl(),a=Sp(this),o=a||i?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;i&&Ad(o),this.atom.reportChanged(),a&&Op(this,o),i&&Rd()},r.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&zl(),a=Sp(this),o=a||i?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&Ad(o),this.atom.reportChanged(),a&&Op(this,o),i&&Rd()},r})(),uv=(function(r){function e(t,n,i,a){i===void 0&&(i="ObservableArray@"+cu()),a===void 0&&(a=!1);var o=r.call(this)||this,s=new Sz(i,n,o,a);return R1(o,"$mobx",s),t&&t.length&&o.spliceWithArray(0,0,t),yae&&Object.defineProperty(s.array,"0",mae),o}return iE(e,r),e.prototype.intercept=function(t){return this.$mobx.intercept(t)},e.prototype.observe=function(t,n){return n===void 0&&(n=!1),this.$mobx.observe(t,n)},e.prototype.clear=function(){return this.splice(0)},e.prototype.concat=function(){for(var t=[],n=0;n-1&&(this.splice(n,1),!0)},e.prototype.move=function(t,n){function i(s){if(s<0)throw new Error("[mobx.array] Index out of bounds: "+s+" is negative");var u=this.$mobx.values.length;if(s>=u)throw new Error("[mobx.array] Index out of bounds: "+s+" is not smaller than "+u)}if(i.call(this,t),i.call(this,n),t!==n){var a,o=this.$mobx.values;a=t0){if(P=(T=E.shift())!==null&&T!==void 0?T:(0,l.newError)("Unexpected empty buffer",l.PROTOCOL_ERROR),y(),m(P))throw P;return[2,P]}return O.resolvable=_(),[4,O.resolvable.promise];case 1:return[2,I.sent()]}})})}var E=[],O={resolvable:null},S={onNext:function(T){S._push({done:!1,value:T})},onCompleted:function(T){S._push({done:!0,value:T})},onError:function(T){S._push(T)},_push:function(T){if(O.resolvable!==null){var P=O.resolvable;O.resolvable=null,m(T)?P.reject(T):P.resolve(T)}else E.push(T),y()},dequeue:x,dequeueUntilDone:function(){return i(b,void 0,void 0,function(){var T;return a(this,function(P){switch(P.label){case 0:return[4,x()];case 1:return(T=P.sent()).done===!0?[2,T]:[3,0];case 2:return[2]}})})},head:function(){return i(b,void 0,void 0,function(){var T,P;return a(this,function(I){switch(I.label){case 0:if(E.length>0){if(m(T=E[0]))throw T;return[2,T]}O.resolvable=_(),I.label=1;case 1:return I.trys.push([1,3,4,5]),[4,O.resolvable.promise];case 2:return T=I.sent(),E.unshift(T),[2,T];case 3:throw P=I.sent(),E.unshift(P),P;case 4:return y(),[7];case 5:return[2]}})})},get size(){return E.length}};return S},g})();n=Symbol.toStringTag,e.default=p},9567:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleObservable=void 0;var n=t(9445),i=t(5184),a=t(8960);e.scheduleObservable=function(o,s){return n.innerFrom(o).pipe(a.subscribeOn(s),i.observeOn(s))}},9568:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},9589:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.schedulePromise=void 0;var n=t(9445),i=t(5184),a=t(8960);e.schedulePromise=function(o,s){return n.innerFrom(o).pipe(a.subscribeOn(s),i.observeOn(s))}},9612:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.distinctUntilKeyChanged=void 0;var n=t(8937);e.distinctUntilKeyChanged=function(i,a){return n.distinctUntilChanged(function(o,s){return a?a(o[i],s[i]):o[i]===s[i]})}},9669:function(r,e,t){var n=this&&this.__read||function(o,s){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var l,c,f=u.call(o),d=[];try{for(;(s===void 0||s-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d},i=this&&this.__spreadArray||function(o,s){for(var u=0,l=s.length,c=o.length;u{Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectUnsubscribedError=void 0;var n=t(5568);e.ObjectUnsubscribedError=n.createErrorClass(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},9689:function(r,e,t){var n=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingConnectionProvider=e.DirectConnectionProvider=e.PooledConnectionProvider=e.SingleConnectionProvider=void 0;var i=t(4132);Object.defineProperty(e,"SingleConnectionProvider",{enumerable:!0,get:function(){return n(i).default}});var a=t(8987);Object.defineProperty(e,"PooledConnectionProvider",{enumerable:!0,get:function(){return n(a).default}});var o=t(3545);Object.defineProperty(e,"DirectConnectionProvider",{enumerable:!0,get:function(){return n(o).default}});var s=t(7428);Object.defineProperty(e,"RoutingConnectionProvider",{enumerable:!0,get:function(){return n(s).default}})},9691:function(r,e,t){var n=this&&this.__extends||(function(){var y=function(b,_){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,x){m.__proto__=x}||function(m,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(m[E]=x[E])},y(b,_)};return function(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=b}y(b,_),b.prototype=_===null?Object.create(_):(m.prototype=_.prototype,new m)}})(),i=this&&this.__createBinding||(Object.create?function(y,b,_,m){m===void 0&&(m=_);var x=Object.getOwnPropertyDescriptor(b,_);x&&!("get"in x?!b.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function(){return b[_]}}),Object.defineProperty(y,m,x)}:function(y,b,_,m){m===void 0&&(m=_),y[m]=b[_]}),a=this&&this.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),o=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var _ in y)_!=="default"&&Object.prototype.hasOwnProperty.call(y,_)&&i(b,y,_);return a(b,y),b};Object.defineProperty(e,"__esModule",{value:!0}),e.PROTOCOL_ERROR=e.SESSION_EXPIRED=e.SERVICE_UNAVAILABLE=e.GQLError=e.Neo4jError=e.isRetriableError=e.newGQLError=e.newError=void 0;var s=o(t(4027)),u=t(1053),l={DATABASE_ERROR:"DATABASE_ERROR",CLIENT_ERROR:"CLIENT_ERROR",TRANSIENT_ERROR:"TRANSIENT_ERROR",UNKNOWN:"UNKNOWN"};Object.freeze(l);var c=Object.values(l),f="ServiceUnavailable";e.SERVICE_UNAVAILABLE=f;var d="SessionExpired";e.SESSION_EXPIRED=d,e.PROTOCOL_ERROR="ProtocolError";var h=(function(y){function b(_,m,x,E,O){var S,T=this;return(T=y.call(this,_,O!=null?{cause:O}:void 0)||this).constructor=b,T.__proto__=b.prototype,T.cause=O??void 0,T.gqlStatus=m,T.gqlStatusDescription=x,T.diagnosticRecord=E,T.classification=(function(P){return P===void 0||P._classification===void 0?"UNKNOWN":c.includes(P._classification)?P==null?void 0:P._classification:"UNKNOWN"})(T.diagnosticRecord),T.rawClassification=(S=E==null?void 0:E._classification)!==null&&S!==void 0?S:void 0,T.name="GQLError",T}return n(b,y),Object.defineProperty(b.prototype,"diagnosticRecordAsJsonString",{get:function(){return s.stringify(this.diagnosticRecord,{useCustomToString:!0})},enumerable:!1,configurable:!0}),b})(Error);e.GQLError=h;var p=(function(y){function b(_,m,x,E,O,S){var T=y.call(this,_,x,E,O,S)||this;return T.constructor=b,T.__proto__=b.prototype,T.code=m,T.name="Neo4jError",T.retriable=(function(P){return P===f||P===d||(function(I){return I==="Neo.ClientError.Security.AuthorizationExpired"})(P)||(function(I){return(I==null?void 0:I.includes("TransientError"))===!0})(P)})(m),T}return n(b,y),b.isRetriable=function(_){return _!=null&&_ instanceof b&&_.retriable},b})(h);e.Neo4jError=p,e.newError=function(y,b,_,m,x,E){return new p(y,b??"N/A",m??"50N42",x??"error: general processing exception - unexpected error. "+y,E??u.rawPolyfilledDiagnosticRecord,_)},e.newGQLError=function(y,b,_,m,x){return new h(y,_??"50N42",m??"error: general processing exception - unexpected error. "+y,x??u.rawPolyfilledDiagnosticRecord,b)};var g=p.isRetriable;e.isRetriableError=g},9730:function(r,e,t){var n=this&&this.__createBinding||(Object.create?function(d,h,p,g){g===void 0&&(g=p);var y=Object.getOwnPropertyDescriptor(h,p);y&&!("get"in y?!h.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return h[p]}}),Object.defineProperty(d,g,y)}:function(d,h,p,g){g===void 0&&(g=p),d[g]=h[p]}),i=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),a=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var p in d)p!=="default"&&Object.prototype.hasOwnProperty.call(d,p)&&n(h,d,p);return i(h,d),h},o=this&&this.__read||function(d,h){var p=typeof Symbol=="function"&&d[Symbol.iterator];if(!p)return d;var g,y,b=p.call(d),_=[];try{for(;(h===void 0||h-- >0)&&!(g=b.next()).done;)_.push(g.value)}catch(m){y={error:m}}finally{try{g&&!g.done&&(p=b.return)&&p.call(b)}finally{if(y)throw y.error}}return _},s=this&&this.__spreadArray||function(d,h,p){if(p||arguments.length===2)for(var g,y=0,b=h.length;y{Object.defineProperty(e,"__esModule",{value:!0}),e.findIndex=void 0;var n=t(7843),i=t(7714);e.findIndex=function(a,o){return n.operate(i.createFind(a,o,"index"))}},9792:(r,e,t)=>{var n=t(7045),i=t(4360),a=t(6804);r.exports=function(o,s){if(!s)return o;var u=Object.keys(s);if(u.length===0)return o;for(var l=n(o),c=u.length-1;c>=0;c--){var f=u[c],d=String(s[f]);d&&(d=" "+d),a(l,{type:"preprocessor",data:"#define "+f+d})}return i(l)}},9823:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=t(9305),i=t(8813),a=t(9419),o=(n.internal.logger.Logger,n.error.SERVICE_UNAVAILABLE),s=(function(){function l(c){var f=c===void 0?{}:c,d=f.maxRetryTimeout,h=d===void 0?3e4:d,p=f.initialDelay,g=p===void 0?1e3:p,y=f.delayMultiplier,b=y===void 0?2:y,_=f.delayJitter,m=_===void 0?.2:_,x=f.logger,E=x===void 0?null:x;this._maxRetryTimeout=u(h,3e4),this._initialDelay=u(g,1e3),this._delayMultiplier=u(b,2),this._delayJitter=u(m,.2),this._logger=E}return l.prototype.retry=function(c){var f=this;return c.pipe((0,a.retryWhen)(function(d){var h=[],p=Date.now(),g=1,y=f._initialDelay;return d.pipe((0,a.mergeMap)(function(b){if(!(0,n.isRetriableError)(b))return(0,i.throwError)(function(){return b});if(h.push(b),g>=2&&Date.now()-p>=f._maxRetryTimeout){var _=(0,n.newError)("Failed after retried for ".concat(g," times in ").concat(f._maxRetryTimeout," ms. Make sure that your database is online and retry again."),o);return _.seenErrors=h,(0,i.throwError)(function(){return _})}var m=f._computeNextDelay(y);return y*=f._delayMultiplier,g++,f._logger&&f._logger.warn("Transaction failed and will be retried in ".concat(m)),(0,i.of)(1).pipe((0,a.delay)(m))}))}))},l.prototype._computeNextDelay=function(c){var f=c*this._delayJitter;return c-f+2*f*Math.random()},l})();function u(l,c){return l||l===0?l:c}e.default=s},9843:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retryWhen=void 0;var n=t(9445),i=t(2483),a=t(7843),o=t(3111);e.retryWhen=function(s){return a.operate(function(u,l){var c,f,d=!1,h=function(){c=u.subscribe(o.createOperatorSubscriber(l,void 0,void 0,function(p){f||(f=new i.Subject,n.innerFrom(s(f)).subscribe(o.createOperatorSubscriber(l,function(){return c?h():d=!0}))),f&&f.next(p)})),d&&(c.unsubscribe(),c=null,d=!1,h())};h()})}},9857:function(r,e,t){var n=this&&this.__extends||(function(){var o=function(s,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},o(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function l(){this.constructor=s}o(s,u),s.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}})(),i=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var a=(function(o){function s(u,l){var c=o.call(this,l)||this;return l&&(c._originalErrorHandler=u._errorHandler,u._errorHandler=c._errorHandler),c._delegate=u,c}return n(s,o),s.prototype.beginTransaction=function(u){return this._delegate.beginTransaction(u)},s.prototype.run=function(u,l,c){return this._delegate.run(u,l,c)},s.prototype.commitTransaction=function(u){return this._delegate.commitTransaction(u)},s.prototype.rollbackTransaction=function(u){return this._delegate.rollbackTransaction(u)},s.prototype.getProtocolVersion=function(){return this._delegate.getProtocolVersion()},Object.defineProperty(s.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"databaseId",{get:function(){return this._delegate.databaseId},set:function(u){this._delegate.databaseId=u},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"server",{get:function(){return this._delegate.server},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"authToken",{get:function(){return this._delegate.authToken},set:function(u){this._delegate.authToken=u},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"supportsReAuth",{get:function(){return this._delegate.supportsReAuth},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"address",{get:function(){return this._delegate.address},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"version",{get:function(){return this._delegate.version},set:function(u){this._delegate.version=u},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"creationTimestamp",{get:function(){return this._delegate.creationTimestamp},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"idleTimestamp",{get:function(){return this._delegate.idleTimestamp},set:function(u){this._delegate.idleTimestamp=u},enumerable:!1,configurable:!0}),s.prototype.isOpen=function(){return this._delegate.isOpen()},s.prototype.protocol=function(){return this._delegate.protocol()},s.prototype.connect=function(u,l,c,f){return this._delegate.connect(u,l,c,f)},s.prototype.write=function(u,l,c){return this._delegate.write(u,l,c)},s.prototype.resetAndFlush=function(){return this._delegate.resetAndFlush()},s.prototype.hasOngoingObservableRequests=function(){return this._delegate.hasOngoingObservableRequests()},s.prototype.close=function(){return this._delegate.close()},s.prototype.release=function(){return this._originalErrorHandler&&(this._delegate._errorHandler=this._originalErrorHandler),this._delegate.release()},s})(i(t(6385)).default);e.default=a},9938:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.concatMapTo=void 0;var n=t(9135),i=t(1018);e.concatMapTo=function(a,o){return i.isFunction(o)?n.concatMap(function(){return a},o):n.concatMap(function(){return a})}},9975:(r,e,t)=>{var n=t(7101),i=Array.prototype.concat,a=Array.prototype.slice,o=r.exports=function(s){for(var u=[],l=0,c=s.length;l{var e=r&&r.__esModule?()=>r.default:()=>r;return ao.d(e,{a:e}),e},ao.d=(r,e)=>{for(var t in e)ao.o(e,t)&&!ao.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},ao.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),ao.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),ao.nmd=r=>(r.paths=[],r.children||(r.children=[]),r);var Hi=ao(5250),pae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};function iE(r,e){function t(){this.constructor=r}pae(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var n_=(function(){function r(e){e===void 0&&(e="Atom@"+cu()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=ii.NOT_TRACKING}return r.prototype.onBecomeUnobserved=function(){},r.prototype.reportObserved=function(){eq(this)},r.prototype.reportChanged=function(){Tp(),(function(e){if(e.lowestObserverState!==ii.STALE){e.lowestObserverState=ii.STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===ii.UP_TO_DATE&&(i.isTracing!==Od.NONE&&tq(i,e),i.onBecomeStale()),i.dependenciesState=ii.STALE}}})(this),Cp()},r.prototype.toString=function(){return this.name},r})(),gae=(function(r){function e(t,n,i){t===void 0&&(t="Atom@"+cu()),n===void 0&&(n=R8),i===void 0&&(i=R8);var a=r.call(this,t)||this;return a.name=t,a.onBecomeObservedHandler=n,a.onBecomeUnobservedHandler=i,a.isPendingUnobservation=!1,a.isBeingTracked=!1,a}return iE(e,r),e.prototype.reportObserved=function(){return Tp(),r.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),Cp(),!!Er.trackingDerivation},e.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},e})(n_),ND=ly("Atom",n_);function Kg(r){return r.interceptors&&r.interceptors.length>0}function aE(r,e){var t=r.interceptors||(r.interceptors=[]);return t.push(e),UD(function(){var n=t.indexOf(e);n!==-1&&t.splice(n,1)})}function Zg(r,e){var t=cy();try{var n=r.interceptors;if(n)for(var i=0,a=n.length;i0}function oE(r,e){var t=r.changeListeners||(r.changeListeners=[]);return t.push(e),UD(function(){var n=t.indexOf(e);n!==-1&&t.splice(n,1)})}function Op(r,e){var t=cy(),n=r.changeListeners;if(n){for(var i=0,a=(n=n.slice()).length;i=this.length,value:et){for(var n=new Array(e-t),i=0;i0&&e+t+1>MM&&LD(e+t+1)},r.prototype.spliceWithArray=function(e,t,n){var i=this;GD(this.atom);var a=this.values.length;if(e===void 0?e=0:e>a?e=a:e<0&&(e=Math.max(0,a+e)),t=arguments.length===1?a-e:t==null?0:Math.max(0,Math.min(t,a-e)),n===void 0&&(n=[]),Kg(this)){var o=Zg(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return Uz;t=o.removedCount,n=o.added}var s=(n=n.map(function(l){return i.enhancer(l,void 0)})).length-t;this.updateArrayLength(a,s);var u=this.spliceItemsIntoValues(e,t,n);return t===0&&n.length===0||this.notifyArraySplice(e,n,u),this.dehanceValues(u)},r.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(i=this.values).splice.apply(i,[e,t].concat(n));var i,a=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),a},r.prototype.notifyArrayChildUpdate=function(e,t,n){var i=!this.owned&&zl(),a=Sp(this),o=a||i?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;i&&Ad(o),this.atom.reportChanged(),a&&Op(this,o),i&&Rd()},r.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&zl(),a=Sp(this),o=a||i?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&Ad(o),this.atom.reportChanged(),a&&Op(this,o),i&&Rd()},r})(),uv=(function(r){function e(t,n,i,a){i===void 0&&(i="ObservableArray@"+cu()),a===void 0&&(a=!1);var o=r.call(this)||this,s=new Sz(i,n,o,a);return R1(o,"$mobx",s),t&&t.length&&o.spliceWithArray(0,0,t),yae&&Object.defineProperty(s.array,"0",mae),o}return iE(e,r),e.prototype.intercept=function(t){return this.$mobx.intercept(t)},e.prototype.observe=function(t,n){return n===void 0&&(n=!1),this.$mobx.observe(t,n)},e.prototype.clear=function(){return this.splice(0)},e.prototype.concat=function(){for(var t=[],n=0;n-1&&(this.splice(n,1),!0)},e.prototype.move=function(t,n){function i(s){if(s<0)throw new Error("[mobx.array] Index out of bounds: "+s+" is negative");var u=this.$mobx.values.length;if(s>=u)throw new Error("[mobx.array] Index out of bounds: "+s+" is not smaller than "+u)}if(i.call(this,t),i.call(this,n),t!==n){var a,o=this.$mobx.values;a=t0,"actions should have valid names, got: '"+r+"'");var t=function(){return jD(r,e,this,arguments)};return t.originalFn=e,t.isMobxAction=!0,t}function jD(r,e,t,n){var i=(function(a,o,s,u){var l=zl()&&!!a,c=0;if(l){c=Date.now();var f=u&&u.length||0,d=new Array(f);if(f>0)for(var h=0;h";jp(r,e,ta(a,t))},function(r){return this[r]},function(){an(!1,Gn("m001"))},!1,!0),Eae=sE(function(r,e,t){Rz(r,e,t)},function(r){return this[r]},function(){an(!1,Gn("m001"))},!1,!1),ta=function(r,e,t,n){return arguments.length===1&&typeof r=="function"?T1(r.name||"",r):arguments.length===2&&typeof e=="function"?T1(r,e):arguments.length===1&&typeof r=="string"?_8(r):_8(e).apply(null,arguments)};function _8(r){return function(e,t,n){if(n&&typeof n.value=="function")return n.value=T1(r,n.value),n.enumerable=!1,n.configurable=!0,n;if(n!==void 0&&n.get!==void 0)throw new Error("[mobx] action is not expected to be used with getters");return xae(r).apply(this,arguments)}}function Vx(r){return typeof r=="function"&&r.isMobxAction===!0}function Rz(r,e,t){var n=function(){return jD(e,t,r,arguments)};n.isMobxAction=!0,jp(r,e,n)}ta.bound=function(r,e,t){if(typeof r=="function"){var n=T1("",r);return n.autoBind=!0,n}return Eae.apply(null,arguments)};var w8=Object.prototype.toString;function uE(r,e){return DM(r,e)}function DM(r,e,t,n){if(r===e)return r!==0||1/r==1/e;if(r==null||e==null)return!1;if(r!=r)return e!=e;var i=typeof r;return(i==="function"||i==="object"||typeof e=="object")&&(function(a,o,s,u){a=x8(a),o=x8(o);var l=w8.call(a);if(l!==w8.call(o))return!1;switch(l){case"[object RegExp]":case"[object String]":return""+a==""+o;case"[object Number]":return+a!=+a?+o!=+o:+a==0?1/+a==1/o:+a==+o;case"[object Date]":case"[object Boolean]":return+a==+o;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(a)===Symbol.valueOf.call(o)}var c=l==="[object Array]";if(!c){if(typeof a!="object"||typeof o!="object")return!1;var f=a.constructor,d=o.constructor;if(f!==d&&!(typeof f=="function"&&f instanceof f&&typeof d=="function"&&d instanceof d)&&"constructor"in a&&"constructor"in o)return!1}u=u||[];for(var h=(s=s||[]).length;h--;)if(s[h]===a)return u[h]===o;if(s.push(a),u.push(o),c){if((h=a.length)!==o.length)return!1;for(;h--;)if(!DM(a[h],o[h],s,u))return!1}else{var p,g=Object.keys(a);if(h=g.length,Object.keys(o).length!==h)return!1;for(;h--;)if(!Sae(o,p=g[h])||!DM(a[p],o[p],s,u))return!1}return s.pop(),u.pop(),!0})(r,e,t,n)}function x8(r){return gv(r)?r.peek():zf(r)?r.entries():Gm(r)?(function(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t})(r.entries()):r}function Sae(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function E8(r,e){return r===e}var yv={identity:E8,structural:function(r,e){return uE(r,e)},default:function(r,e){return(function(t,n){return typeof t=="number"&&typeof n=="number"&&isNaN(t)&&isNaN(n)})(r,e)||E8(r,e)}};function Hx(r,e,t){var n,i,a;typeof r=="string"?(n=r,i=e,a=t):(n=r.name||"Autorun@"+cu(),i=r,a=e),an(typeof i=="function",Gn("m004")),an(Vx(i)===!1,Gn("m005")),a&&(i=i.bind(a));var o=new P1(n,function(){this.track(s)});function s(){i(o)}return o.schedule(),o.getDisposer()}function Pz(r,e,t){var n;arguments.length>3&&fu(Gn("m007")),uy(r)&&fu(Gn("m008")),(n=typeof t=="object"?t:{}).name=n.name||r.name||e.name||"Reaction@"+cu(),n.fireImmediately=t===!0||n.fireImmediately===!0,n.delay=n.delay||0,n.compareStructural=n.compareStructural||n.struct||!1,e=ta(n.name,n.context?e.bind(n.context):e),n.context&&(r=r.bind(n.context));var i,a=!0,o=!1,s=n.equals?n.equals:n.compareStructural||n.struct?yv.structural:yv.default,u=new P1(n.name,function(){a||n.delay<1?l():o||(o=!0,setTimeout(function(){o=!1,l()},n.delay))});function l(){if(!u.isDisposed){var c=!1;u.track(function(){var f=r(u);c=a||!s(i,f),i=f}),a&&n.fireImmediately&&e(i,u),a||c!==!0||e(i,u),a&&(a=!1)}}return u.schedule(),u.getDisposer()}var Jg=(function(){function r(e,t,n,i,a){this.derivation=e,this.scope=t,this.equals=n,this.dependenciesState=ii.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=ii.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+cu(),this.value=new Yx(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Od.NONE,this.name=i||"ComputedValue@"+cu(),a&&(this.setter=T1(i+"-setter",a))}return r.prototype.onBecomeStale=function(){(function(e){if(e.lowestObserverState===ii.UP_TO_DATE){e.lowestObserverState=ii.POSSIBLY_STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===ii.UP_TO_DATE&&(i.dependenciesState=ii.POSSIBLY_STALE,i.isTracing!==Od.NONE&&tq(i,e),i.onBecomeStale())}}})(this)},r.prototype.onBecomeUnobserved=function(){jM(this),this.value=void 0},r.prototype.get=function(){an(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),Er.inBatch===0?(Tp(),LM(this)&&(this.isTracing!==Od.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),Cp()):(eq(this),LM(this)&&this.trackAndCompute()&&(function(t){if(t.lowestObserverState!==ii.STALE){t.lowestObserverState=ii.STALE;for(var n=t.observers,i=n.length;i--;){var a=n[i];a.dependenciesState===ii.POSSIBLY_STALE?a.dependenciesState=ii.STALE:a.dependenciesState===ii.UP_TO_DATE&&(t.lowestObserverState=ii.UP_TO_DATE)}}})(this));var e=this.value;if(_b(e))throw e.cause;return e},r.prototype.peek=function(){var e=this.computeValue(!1);if(_b(e))throw e.cause;return e},r.prototype.set=function(e){if(this.setter){an(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else an(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},r.prototype.trackAndCompute=function(){zl()&&Qg({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.dependenciesState===ii.NOT_TRACKING,n=this.value=this.computeValue(!0);return t||_b(e)||_b(n)||!this.equals(e,n)},r.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Er.computationDepth++,e)t=iq(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new Yx(n)}return Er.computationDepth--,this.isComputing=!1,t},r.prototype.observe=function(e,t){var n=this,i=!0,a=void 0;return Hx(function(){var o=n.get();if(!i||t){var s=cy();e({type:"update",object:n,newValue:o,oldValue:a}),dv(s)}i=!1,a=o})},r.prototype.toJSON=function(){return this.get()},r.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},r.prototype.valueOf=function(){return Vz(this.get())},r.prototype.whyRun=function(){var e=!!Er.trackingDerivation,t=Wx(this.isComputing?this.newObserving:this.observing).map(function(i){return i.name}),n=Wx(Zz(this).map(function(i){return i.name}));return` +`};function Gn(r){return wae[r]}function T1(r,e){an(typeof e=="function",Gn("m026")),an(typeof r=="string"&&r.length>0,"actions should have valid names, got: '"+r+"'");var t=function(){return BD(r,e,this,arguments)};return t.originalFn=e,t.isMobxAction=!0,t}function BD(r,e,t,n){var i=(function(a,o,s,u){var l=zl()&&!!a,c=0;if(l){c=Date.now();var f=u&&u.length||0,d=new Array(f);if(f>0)for(var h=0;h";jp(r,e,ta(a,t))},function(r){return this[r]},function(){an(!1,Gn("m001"))},!1,!0),Eae=sE(function(r,e,t){Rz(r,e,t)},function(r){return this[r]},function(){an(!1,Gn("m001"))},!1,!1),ta=function(r,e,t,n){return arguments.length===1&&typeof r=="function"?T1(r.name||"",r):arguments.length===2&&typeof e=="function"?T1(r,e):arguments.length===1&&typeof r=="string"?w8(r):w8(e).apply(null,arguments)};function w8(r){return function(e,t,n){if(n&&typeof n.value=="function")return n.value=T1(r,n.value),n.enumerable=!1,n.configurable=!0,n;if(n!==void 0&&n.get!==void 0)throw new Error("[mobx] action is not expected to be used with getters");return xae(r).apply(this,arguments)}}function Vx(r){return typeof r=="function"&&r.isMobxAction===!0}function Rz(r,e,t){var n=function(){return BD(e,t,r,arguments)};n.isMobxAction=!0,jp(r,e,n)}ta.bound=function(r,e,t){if(typeof r=="function"){var n=T1("",r);return n.autoBind=!0,n}return Eae.apply(null,arguments)};var x8=Object.prototype.toString;function uE(r,e){return kM(r,e)}function kM(r,e,t,n){if(r===e)return r!==0||1/r==1/e;if(r==null||e==null)return!1;if(r!=r)return e!=e;var i=typeof r;return(i==="function"||i==="object"||typeof e=="object")&&(function(a,o,s,u){a=E8(a),o=E8(o);var l=x8.call(a);if(l!==x8.call(o))return!1;switch(l){case"[object RegExp]":case"[object String]":return""+a==""+o;case"[object Number]":return+a!=+a?+o!=+o:+a==0?1/+a==1/o:+a==+o;case"[object Date]":case"[object Boolean]":return+a==+o;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(a)===Symbol.valueOf.call(o)}var c=l==="[object Array]";if(!c){if(typeof a!="object"||typeof o!="object")return!1;var f=a.constructor,d=o.constructor;if(f!==d&&!(typeof f=="function"&&f instanceof f&&typeof d=="function"&&d instanceof d)&&"constructor"in a&&"constructor"in o)return!1}u=u||[];for(var h=(s=s||[]).length;h--;)if(s[h]===a)return u[h]===o;if(s.push(a),u.push(o),c){if((h=a.length)!==o.length)return!1;for(;h--;)if(!kM(a[h],o[h],s,u))return!1}else{var p,g=Object.keys(a);if(h=g.length,Object.keys(o).length!==h)return!1;for(;h--;)if(!Sae(o,p=g[h])||!kM(a[p],o[p],s,u))return!1}return s.pop(),u.pop(),!0})(r,e,t,n)}function E8(r){return gv(r)?r.peek():zf(r)?r.entries():Gm(r)?(function(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t})(r.entries()):r}function Sae(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function S8(r,e){return r===e}var yv={identity:S8,structural:function(r,e){return uE(r,e)},default:function(r,e){return(function(t,n){return typeof t=="number"&&typeof n=="number"&&isNaN(t)&&isNaN(n)})(r,e)||S8(r,e)}};function Hx(r,e,t){var n,i,a;typeof r=="string"?(n=r,i=e,a=t):(n=r.name||"Autorun@"+cu(),i=r,a=e),an(typeof i=="function",Gn("m004")),an(Vx(i)===!1,Gn("m005")),a&&(i=i.bind(a));var o=new P1(n,function(){this.track(s)});function s(){i(o)}return o.schedule(),o.getDisposer()}function Pz(r,e,t){var n;arguments.length>3&&fu(Gn("m007")),uy(r)&&fu(Gn("m008")),(n=typeof t=="object"?t:{}).name=n.name||r.name||e.name||"Reaction@"+cu(),n.fireImmediately=t===!0||n.fireImmediately===!0,n.delay=n.delay||0,n.compareStructural=n.compareStructural||n.struct||!1,e=ta(n.name,n.context?e.bind(n.context):e),n.context&&(r=r.bind(n.context));var i,a=!0,o=!1,s=n.equals?n.equals:n.compareStructural||n.struct?yv.structural:yv.default,u=new P1(n.name,function(){a||n.delay<1?l():o||(o=!0,setTimeout(function(){o=!1,l()},n.delay))});function l(){if(!u.isDisposed){var c=!1;u.track(function(){var f=r(u);c=a||!s(i,f),i=f}),a&&n.fireImmediately&&e(i,u),a||c!==!0||e(i,u),a&&(a=!1)}}return u.schedule(),u.getDisposer()}var Jg=(function(){function r(e,t,n,i,a){this.derivation=e,this.scope=t,this.equals=n,this.dependenciesState=ii.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=ii.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+cu(),this.value=new Yx(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Od.NONE,this.name=i||"ComputedValue@"+cu(),a&&(this.setter=T1(i+"-setter",a))}return r.prototype.onBecomeStale=function(){(function(e){if(e.lowestObserverState===ii.UP_TO_DATE){e.lowestObserverState=ii.POSSIBLY_STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===ii.UP_TO_DATE&&(i.dependenciesState=ii.POSSIBLY_STALE,i.isTracing!==Od.NONE&&tq(i,e),i.onBecomeStale())}}})(this)},r.prototype.onBecomeUnobserved=function(){BM(this),this.value=void 0},r.prototype.get=function(){an(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),Er.inBatch===0?(Tp(),jM(this)&&(this.isTracing!==Od.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),Cp()):(eq(this),jM(this)&&this.trackAndCompute()&&(function(t){if(t.lowestObserverState!==ii.STALE){t.lowestObserverState=ii.STALE;for(var n=t.observers,i=n.length;i--;){var a=n[i];a.dependenciesState===ii.POSSIBLY_STALE?a.dependenciesState=ii.STALE:a.dependenciesState===ii.UP_TO_DATE&&(t.lowestObserverState=ii.UP_TO_DATE)}}})(this));var e=this.value;if(_b(e))throw e.cause;return e},r.prototype.peek=function(){var e=this.computeValue(!1);if(_b(e))throw e.cause;return e},r.prototype.set=function(e){if(this.setter){an(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else an(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},r.prototype.trackAndCompute=function(){zl()&&Qg({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.dependenciesState===ii.NOT_TRACKING,n=this.value=this.computeValue(!0);return t||_b(e)||_b(n)||!this.equals(e,n)},r.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Er.computationDepth++,e)t=iq(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new Yx(n)}return Er.computationDepth--,this.isComputing=!1,t},r.prototype.observe=function(e,t){var n=this,i=!0,a=void 0;return Hx(function(){var o=n.get();if(!i||t){var s=cy();e({type:"update",object:n,newValue:o,oldValue:a}),dv(s)}i=!1,a=o})},r.prototype.toJSON=function(){return this.get()},r.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},r.prototype.valueOf=function(){return Vz(this.get())},r.prototype.whyRun=function(){var e=!!Er.trackingDerivation,t=Wx(this.isComputing?this.newObserving:this.observing).map(function(i){return i.name}),n=Wx(Zz(this).map(function(i){return i.name}));return` WhyRun? computation '`+this.name+`': * Running because: `+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+` `+(this.dependenciesState===ii.NOT_TRACKING?Gn("m032"):` * This computation will re-run if any of the following observables changes: - `+IM(t)+` + `+NM(t)+` `+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+` `+Gn("m038")+` * If the outcome of this computation changes, the following observers will be re-run: - `+IM(n)+` -`)},r})();Jg.prototype[Gz()]=Jg.prototype.valueOf;var fv=ly("ComputedValue",Jg),Mz=(function(){function r(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return r.prototype.observe=function(e,t){return an(t!==!0,"`observe` doesn't support the fire immediately property for observable objects."),oE(this,e)},r.prototype.intercept=function(e){return aE(this,e)},r})();function Um(r,e){if(xh(r)&&r.hasOwnProperty("$mobx"))return r.$mobx;an(Object.isExtensible(r),Gn("m035")),qm(r)||(e=(r.constructor.name||"ObservableObject")+"@"+cu()),e||(e="ObservableObject@"+cu());var t=new Mz(r,e);return R1(r,"$mobx",t),t}function Oae(r,e,t,n){if(r.values[e]&&!fv(r.values[e]))return an("value"in t,"The property "+e+" in "+r.name+" is already observable, cannot redefine it as computed property"),void(r.target[e]=t.value);if("value"in t)if(uy(t.value)){var i=t.value;kM(r,e,i.initialValue,i.enhancer)}else Vx(t.value)&&t.value.autoBind===!0?Rz(r.target,e,t.value.originalFn):fv(t.value)?(function(a,o,s){var u=a.name+"."+o;s.name=u,s.scope||(s.scope=a.target),a.values[o]=s,Object.defineProperty(a.target,o,kz(o))})(r,e,t.value):kM(r,e,t.value,n);else Dz(r,e,t.get,t.set,yv.default,!0)}function kM(r,e,t,n){if(zD(r.target,e),Kg(r)){var i=Zg(r,{object:r.target,name:e,type:"add",newValue:t});if(!i)return;t=i.newValue}t=(r.values[e]=new Lp(t,n,r.name+"."+e,!1)).value,Object.defineProperty(r.target,e,(function(a){return S8[a]||(S8[a]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[a].get()},set:function(o){Iz(this,a,o)}})})(e)),(function(a,o,s,u){var l=Sp(a),c=zl(),f=l||c?{type:"add",object:o,name:s,newValue:u}:null;c&&Ad(f),l&&Op(a,f),c&&Rd()})(r,r.target,e,t)}function Dz(r,e,t,n,i,a){a&&zD(r.target,e),r.values[e]=new Jg(t,r.target,i,r.name+"."+e,n),a&&Object.defineProperty(r.target,e,kz(e))}var S8={},O8={};function kz(r){return O8[r]||(O8[r]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[r].get()},set:function(e){return this.$mobx.values[r].set(e)}})}function Iz(r,e,t){var n=r.$mobx,i=n.values[e];if(Kg(n)){if(!(s=Zg(n,{type:"update",object:r,name:e,newValue:t})))return;t=s.newValue}if((t=i.prepareNewValue(t))!==Ib){var a=Sp(n),o=zl(),s=a||o?{type:"update",object:r,oldValue:i.value,name:e,newValue:t}:null;o&&Ad(s),i.setNewValue(t),a&&Op(n,s),o&&Rd()}}var Tae=ly("ObservableObjectAdministration",Mz);function xh(r){return!!UD(r)&&(C1(r),Tae(r.$mobx))}function i0(r,e){if(r==null)return!1;if(e!==void 0){if(gv(r)||zf(r))throw new Error(Gn("m019"));if(xh(r)){var t=r.$mobx;return t.values&&!!t.values[e]}return!1}return xh(r)||!!r.$mobx||ID(r)||Vm(r)||fv(r)}function i_(r){return an(!!r,":("),sE(function(e,t,n,i,a){zD(e,t),an(!a||!a.get,Gn("m022")),kM(Um(e,void 0),t,n,r)},function(e){var t=this.$mobx.values[e];if(t!==void 0)return t.get()},function(e,t){Iz(this,e,t)},!0,!1)}function Nz(r){for(var e=[],t=1;t=2,Gn("m014")),an(typeof r=="object",Gn("m015")),an(!zf(r),Gn("m016")),t.forEach(function(u){an(typeof u=="object",Gn("m017")),an(!i0(u),Gn("m018"))});for(var n=Um(r),i={},a=t.length-1;a>=0;a--){var o=t[a];for(var s in o)if(i[s]!==!0&&lE(o,s)){if(i[s]=!0,r===o&&!qz(r,s))continue;Oae(n,s,Object.getOwnPropertyDescriptor(o,s),e)}}return r}var jz=i_(yp),Cae=i_(Bz),Aae=i_(mp),Rae=i_(Nb),Pae=i_(Fz),T8={box:function(r,e){return arguments.length>2&&rp("box"),new Lp(r,yp,e)},shallowBox:function(r,e){return arguments.length>2&&rp("shallowBox"),new Lp(r,mp,e)},array:function(r,e){return arguments.length>2&&rp("array"),new uv(r,yp,e)},shallowArray:function(r,e){return arguments.length>2&&rp("shallowArray"),new uv(r,mp,e)},map:function(r,e){return arguments.length>2&&rp("map"),new zm(r,yp,e)},shallowMap:function(r,e){return arguments.length>2&&rp("shallowMap"),new zm(r,mp,e)},object:function(r,e){arguments.length>2&&rp("object");var t={};return Um(t,e),Nz(t,r),t},shallowObject:function(r,e){arguments.length>2&&rp("shallowObject");var t={};return Um(t,e),Lz(t,r),t},ref:function(){return arguments.length<2?bb(mp,arguments[0]):Aae.apply(null,arguments)},shallow:function(){return arguments.length<2?bb(Bz,arguments[0]):Cae.apply(null,arguments)},deep:function(){return arguments.length<2?bb(yp,arguments[0]):jz.apply(null,arguments)},struct:function(){return arguments.length<2?bb(Nb,arguments[0]):Rae.apply(null,arguments)}},ka=function(r){if(r===void 0&&(r=void 0),typeof arguments[1]=="string")return jz.apply(null,arguments);if(an(arguments.length<=1,Gn("m021")),an(!uy(r),Gn("m020")),i0(r))return r;var e=yp(r,0,void 0);return e!==r?e:ka.box(r)};function rp(r){fu("Expected one or two arguments to observable."+r+". Did you accidentally try to use observable."+r+" as decorator?")}function uy(r){return typeof r=="object"&&r!==null&&r.isMobxModifierDescriptor===!0}function bb(r,e){return an(!uy(e),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:e,enhancer:r}}function yp(r,e,t){return uy(r)&&fu("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),i0(r)?r:Array.isArray(r)?ka.array(r,t):qm(r)?ka.object(r,t):Gm(r)?ka.map(r,t):r}function Bz(r,e,t){return uy(r)&&fu("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),r==null||xh(r)||gv(r)||zf(r)?r:Array.isArray(r)?ka.shallowArray(r,t):qm(r)?ka.shallowObject(r,t):Gm(r)?ka.shallowMap(r,t):fu("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function mp(r){return r}function Nb(r,e,t){if(uE(r,e))return e;if(i0(r))return r;if(Array.isArray(r))return new uv(r,Nb,t);if(Gm(r))return new zm(r,Nb,t);if(qm(r)){var n={};return Um(n,t),BD(n,Nb,[r]),n}return r}function Fz(r,e,t){return uE(r,e)?e:r}function cm(r,e){e===void 0&&(e=void 0),Tp();try{return r.apply(e)}finally{Cp()}}Object.keys(T8).forEach(function(r){return ka[r]=T8[r]}),ka.deep.struct=ka.struct,ka.ref.struct=function(){return arguments.length<2?bb(Fz,arguments[0]):Pae.apply(null,arguments)};var Mae={},zm=(function(){function r(e,t,n){t===void 0&&(t=yp),n===void 0&&(n="ObservableMap@"+cu()),this.enhancer=t,this.name=n,this.$mobx=Mae,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new uv(void 0,mp,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return r.prototype._has=function(e){return this._data[e]!==void 0},r.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},r.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(Kg(this)){var i=Zg(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},r.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,Kg(this)&&!(a=Zg(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=zl(),i=Sp(this),a=i||n?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return n&&Ad(a),cm(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0}),i&&Op(this,a),n&&Rd(),!0}return!1},r.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new Lp(t,mp,this.name+"."+e+"?",!1),n},r.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==Ib){var i=zl(),a=Sp(this),o=a||i?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&Ad(o),n.setNewValue(t),a&&Op(this,o),i&&Rd()}},r.prototype._addValue=function(e,t){var n=this;cm(function(){var s=n._data[e]=new Lp(t,n.enhancer,n.name+"."+e,!1);t=s.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var i=zl(),a=Sp(this),o=a||i?{type:"add",object:this,name:e,newValue:t}:null;i&&Ad(o),a&&Op(this,o),i&&Rd()},r.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},r.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},r.prototype.keys=function(){return ux(this._keys.slice())},r.prototype.values=function(){return ux(this._keys.map(this.get,this))},r.prototype.entries=function(){var e=this;return ux(this._keys.map(function(t){return[t,e.get(t)]}))},r.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(i){return e.call(t,n.get(i),i,n)})},r.prototype.merge=function(e){var t=this;return zf(e)&&(e=e.toJS()),cm(function(){qm(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(n){var i=n[0],a=n[1];return t.set(i,a)}):Gm(e)?e.forEach(function(n,i){return t.set(i,n)}):e!=null&&fu("Cannot initialize map from "+e)}),this},r.prototype.clear=function(){var e=this;cm(function(){aq(function(){e.keys().forEach(e.delete,e)})})},r.prototype.replace=function(e){var t=this;return cm(function(){var n,i=qm(n=e)?Object.keys(n):Array.isArray(n)?n.map(function(a){return a[0]}):Gm(n)?Array.from(n.keys()):zf(n)?n.keys():fu("Cannot get keys from "+n);t.keys().filter(function(a){return i.indexOf(a)===-1}).forEach(function(a){return t.delete(a)}),t.merge(e)}),this},Object.defineProperty(r.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),r.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},r.prototype.toJSON=function(){return this.toJS()},r.prototype.isValidKey=function(e){return e!=null&&(typeof e=="string"||typeof e=="number"||typeof e=="boolean")},r.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},r.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},r.prototype.observe=function(e,t){return an(t!==!0,Gn("m033")),oE(this,e)},r.prototype.intercept=function(e){return aE(this,e)},r})();Ez(zm.prototype,function(){return this.entries()});var zf=ly("ObservableMap",zm),Uz=[];function A1(){return typeof window<"u"?window:io.g}function cu(){return++Er.mobxGuid}function fu(r,e){throw an(!1,r,e),"X"}function an(r,e,t){if(!r)throw new Error("[mobx] Invariant failed: "+e+(t?" in '"+t+"'":""))}Object.freeze(Uz);var C8=[];function Rg(r){return C8.indexOf(r)===-1&&(C8.push(r),console.error("[mobx] Deprecated: "+r),!0)}function FD(r){var e=!1;return function(){if(!e)return e=!0,r.apply(this,arguments)}}var A8=function(){};function Wx(r){var e=[];return r.forEach(function(t){e.indexOf(t)===-1&&e.push(t)}),e}function IM(r,e,t){return e===void 0&&(e=100),t===void 0&&(t=" - "),r?r.slice(0,e).join(t)+(r.length>e?" (... and "+(r.length-e)+"more)":""):""}function UD(r){return r!==null&&typeof r=="object"}function qm(r){if(r===null||typeof r!="object")return!1;var e=Object.getPrototypeOf(r);return e===Object.prototype||e===null}function zz(){for(var r=arguments[0],e=1,t=arguments.length;e0&&(e.dependencies=Wx(r.observing).map($z)),e}function Kz(r){var e={name:r.name};return(function(t){return t.observers&&t.observers.length>0})(r)&&(e.observers=Zz(r).map(Kz)),e}function Zz(r){return r.observers}function Iae(r,e){var t=r.observers.length;t&&(r.observersIndexes[e.__mapid]=t),r.observers[t]=e,r.lowestObserverState>e.dependenciesState&&(r.lowestObserverState=e.dependenciesState)}function Qz(r,e){if(r.observers.length===1)r.observers.length=0,Jz(r);else{var t=r.observers,n=r.observersIndexes,i=t.pop();if(i!==e){var a=n[e.__mapid]||0;a?n[i.__mapid]=a:delete n[i.__mapid],t[a]=i}delete n[e.__mapid]}}function Jz(r){r.isPendingUnobservation||(r.isPendingUnobservation=!0,Er.pendingUnobservations.push(r))}function Tp(){Er.inBatch++}function Cp(){if(--Er.inBatch===0){uq();for(var r=Er.pendingUnobservations,e=0;e=2,Gn("m014")),an(typeof r=="object",Gn("m015")),an(!zf(r),Gn("m016")),t.forEach(function(u){an(typeof u=="object",Gn("m017")),an(!i0(u),Gn("m018"))});for(var n=Um(r),i={},a=t.length-1;a>=0;a--){var o=t[a];for(var s in o)if(i[s]!==!0&&lE(o,s)){if(i[s]=!0,r===o&&!qz(r,s))continue;Oae(n,s,Object.getOwnPropertyDescriptor(o,s),e)}}return r}var jz=i_(yp),Cae=i_(Bz),Aae=i_(mp),Rae=i_(Nb),Pae=i_(Fz),C8={box:function(r,e){return arguments.length>2&&rp("box"),new Lp(r,yp,e)},shallowBox:function(r,e){return arguments.length>2&&rp("shallowBox"),new Lp(r,mp,e)},array:function(r,e){return arguments.length>2&&rp("array"),new uv(r,yp,e)},shallowArray:function(r,e){return arguments.length>2&&rp("shallowArray"),new uv(r,mp,e)},map:function(r,e){return arguments.length>2&&rp("map"),new zm(r,yp,e)},shallowMap:function(r,e){return arguments.length>2&&rp("shallowMap"),new zm(r,mp,e)},object:function(r,e){arguments.length>2&&rp("object");var t={};return Um(t,e),Nz(t,r),t},shallowObject:function(r,e){arguments.length>2&&rp("shallowObject");var t={};return Um(t,e),Lz(t,r),t},ref:function(){return arguments.length<2?bb(mp,arguments[0]):Aae.apply(null,arguments)},shallow:function(){return arguments.length<2?bb(Bz,arguments[0]):Cae.apply(null,arguments)},deep:function(){return arguments.length<2?bb(yp,arguments[0]):jz.apply(null,arguments)},struct:function(){return arguments.length<2?bb(Nb,arguments[0]):Rae.apply(null,arguments)}},ka=function(r){if(r===void 0&&(r=void 0),typeof arguments[1]=="string")return jz.apply(null,arguments);if(an(arguments.length<=1,Gn("m021")),an(!uy(r),Gn("m020")),i0(r))return r;var e=yp(r,0,void 0);return e!==r?e:ka.box(r)};function rp(r){fu("Expected one or two arguments to observable."+r+". Did you accidentally try to use observable."+r+" as decorator?")}function uy(r){return typeof r=="object"&&r!==null&&r.isMobxModifierDescriptor===!0}function bb(r,e){return an(!uy(e),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:e,enhancer:r}}function yp(r,e,t){return uy(r)&&fu("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),i0(r)?r:Array.isArray(r)?ka.array(r,t):qm(r)?ka.object(r,t):Gm(r)?ka.map(r,t):r}function Bz(r,e,t){return uy(r)&&fu("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),r==null||xh(r)||gv(r)||zf(r)?r:Array.isArray(r)?ka.shallowArray(r,t):qm(r)?ka.shallowObject(r,t):Gm(r)?ka.shallowMap(r,t):fu("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function mp(r){return r}function Nb(r,e,t){if(uE(r,e))return e;if(i0(r))return r;if(Array.isArray(r))return new uv(r,Nb,t);if(Gm(r))return new zm(r,Nb,t);if(qm(r)){var n={};return Um(n,t),FD(n,Nb,[r]),n}return r}function Fz(r,e,t){return uE(r,e)?e:r}function cm(r,e){e===void 0&&(e=void 0),Tp();try{return r.apply(e)}finally{Cp()}}Object.keys(C8).forEach(function(r){return ka[r]=C8[r]}),ka.deep.struct=ka.struct,ka.ref.struct=function(){return arguments.length<2?bb(Fz,arguments[0]):Pae.apply(null,arguments)};var Mae={},zm=(function(){function r(e,t,n){t===void 0&&(t=yp),n===void 0&&(n="ObservableMap@"+cu()),this.enhancer=t,this.name=n,this.$mobx=Mae,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new uv(void 0,mp,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return r.prototype._has=function(e){return this._data[e]!==void 0},r.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},r.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(Kg(this)){var i=Zg(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},r.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,Kg(this)&&!(a=Zg(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=zl(),i=Sp(this),a=i||n?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return n&&Ad(a),cm(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0}),i&&Op(this,a),n&&Rd(),!0}return!1},r.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new Lp(t,mp,this.name+"."+e+"?",!1),n},r.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==Ib){var i=zl(),a=Sp(this),o=a||i?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&Ad(o),n.setNewValue(t),a&&Op(this,o),i&&Rd()}},r.prototype._addValue=function(e,t){var n=this;cm(function(){var s=n._data[e]=new Lp(t,n.enhancer,n.name+"."+e,!1);t=s.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var i=zl(),a=Sp(this),o=a||i?{type:"add",object:this,name:e,newValue:t}:null;i&&Ad(o),a&&Op(this,o),i&&Rd()},r.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},r.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},r.prototype.keys=function(){return ux(this._keys.slice())},r.prototype.values=function(){return ux(this._keys.map(this.get,this))},r.prototype.entries=function(){var e=this;return ux(this._keys.map(function(t){return[t,e.get(t)]}))},r.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(i){return e.call(t,n.get(i),i,n)})},r.prototype.merge=function(e){var t=this;return zf(e)&&(e=e.toJS()),cm(function(){qm(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(n){var i=n[0],a=n[1];return t.set(i,a)}):Gm(e)?e.forEach(function(n,i){return t.set(i,n)}):e!=null&&fu("Cannot initialize map from "+e)}),this},r.prototype.clear=function(){var e=this;cm(function(){aq(function(){e.keys().forEach(e.delete,e)})})},r.prototype.replace=function(e){var t=this;return cm(function(){var n,i=qm(n=e)?Object.keys(n):Array.isArray(n)?n.map(function(a){return a[0]}):Gm(n)?Array.from(n.keys()):zf(n)?n.keys():fu("Cannot get keys from "+n);t.keys().filter(function(a){return i.indexOf(a)===-1}).forEach(function(a){return t.delete(a)}),t.merge(e)}),this},Object.defineProperty(r.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),r.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},r.prototype.toJSON=function(){return this.toJS()},r.prototype.isValidKey=function(e){return e!=null&&(typeof e=="string"||typeof e=="number"||typeof e=="boolean")},r.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},r.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},r.prototype.observe=function(e,t){return an(t!==!0,Gn("m033")),oE(this,e)},r.prototype.intercept=function(e){return aE(this,e)},r})();Ez(zm.prototype,function(){return this.entries()});var zf=ly("ObservableMap",zm),Uz=[];function A1(){return typeof window<"u"?window:ao.g}function cu(){return++Er.mobxGuid}function fu(r,e){throw an(!1,r,e),"X"}function an(r,e,t){if(!r)throw new Error("[mobx] Invariant failed: "+e+(t?" in '"+t+"'":""))}Object.freeze(Uz);var A8=[];function Rg(r){return A8.indexOf(r)===-1&&(A8.push(r),console.error("[mobx] Deprecated: "+r),!0)}function UD(r){var e=!1;return function(){if(!e)return e=!0,r.apply(this,arguments)}}var R8=function(){};function Wx(r){var e=[];return r.forEach(function(t){e.indexOf(t)===-1&&e.push(t)}),e}function NM(r,e,t){return e===void 0&&(e=100),t===void 0&&(t=" - "),r?r.slice(0,e).join(t)+(r.length>e?" (... and "+(r.length-e)+"more)":""):""}function zD(r){return r!==null&&typeof r=="object"}function qm(r){if(r===null||typeof r!="object")return!1;var e=Object.getPrototypeOf(r);return e===Object.prototype||e===null}function zz(){for(var r=arguments[0],e=1,t=arguments.length;e0&&(e.dependencies=Wx(r.observing).map($z)),e}function Kz(r){var e={name:r.name};return(function(t){return t.observers&&t.observers.length>0})(r)&&(e.observers=Zz(r).map(Kz)),e}function Zz(r){return r.observers}function Iae(r,e){var t=r.observers.length;t&&(r.observersIndexes[e.__mapid]=t),r.observers[t]=e,r.lowestObserverState>e.dependenciesState&&(r.lowestObserverState=e.dependenciesState)}function Qz(r,e){if(r.observers.length===1)r.observers.length=0,Jz(r);else{var t=r.observers,n=r.observersIndexes,i=t.pop();if(i!==e){var a=n[e.__mapid]||0;a?n[i.__mapid]=a:delete n[i.__mapid],t[a]=i}delete n[e.__mapid]}}function Jz(r){r.isPendingUnobservation||(r.isPendingUnobservation=!0,Er.pendingUnobservations.push(r))}function Tp(){Er.inBatch++}function Cp(){if(--Er.inBatch===0){uq();for(var r=Er.pendingUnobservations,e=0;e=1e3?e.push("(and many more)"):(e.push(""+new Array(t).join(" ")+r.name),r.dependencies&&r.dependencies.forEach(function(n){return rq(n,e,t+1)}))}mP.__mobxInstanceCount?(mP.__mobxInstanceCount++,setTimeout(function(){Wz||Yz||R8||(R8=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))},1)):mP.__mobxInstanceCount=1,(function(r){r[r.NOT_TRACKING=-1]="NOT_TRACKING",r[r.UP_TO_DATE=0]="UP_TO_DATE",r[r.POSSIBLY_STALE=1]="POSSIBLY_STALE",r[r.STALE=2]="STALE"})(ii||(ii={})),(function(r){r[r.NONE=0]="NONE",r[r.LOG=1]="LOG",r[r.BREAK=2]="BREAK"})(Od||(Od={}));var Yx=function(r){this.cause=r};function _b(r){return r instanceof Yx}function LM(r){switch(r.dependenciesState){case ii.UP_TO_DATE:return!1;case ii.NOT_TRACKING:case ii.STALE:return!0;case ii.POSSIBLY_STALE:for(var e=cy(),t=r.observing,n=t.length,i=0;i0;Er.computationDepth>0&&e&&fu(Gn("m031")+r.name),!Er.allowStateChanges&&e&&fu(Gn(Er.strictMode?"m030a":"m030b")+r.name)}function iq(r,e,t){oq(r),r.newObserving=new Array(r.observing.length+100),r.unboundDepsCount=0,r.runId=++Er.runId;var n,i=Er.trackingDerivation;Er.trackingDerivation=r;try{n=e.call(t)}catch(a){n=new Yx(a)}return Er.trackingDerivation=i,(function(a){for(var o=a.observing,s=a.observing=a.newObserving,u=ii.UP_TO_DATE,l=0,c=a.unboundDepsCount,f=0;fu&&(u=d.dependenciesState);for(s.length=l,a.newObserving=null,c=o.length;c--;)(d=o[c]).diffValue===0&&Qz(d,a),d.diffValue=0;for(;l--;){var d;(d=s[l]).diffValue===1&&(d.diffValue=0,Iae(d,a))}u!==ii.UP_TO_DATE&&(a.dependenciesState=u,a.onBecomeStale())})(r),n}function jM(r){var e=r.observing;r.observing=[];for(var t=e.length;t--;)Qz(e[t],r);r.dependenciesState=ii.NOT_TRACKING}function aq(r){var e=cy(),t=r();return dv(e),t}function cy(){var r=Er.trackingDerivation;return Er.trackingDerivation=null,r}function dv(r){Er.trackingDerivation=r}function oq(r){if(r.dependenciesState!==ii.UP_TO_DATE){r.dependenciesState=ii.UP_TO_DATE;for(var e=r.observing,t=e.length;t--;)e[t].lowestObserverState=ii.UP_TO_DATE}}function P8(r){return console.log(r),r}function sq(r){switch(r.length){case 0:return Er.trackingDerivation;case 1:return Eh(r[0]);case 2:return Eh(r[0],r[1])}}var P1=(function(){function r(e,t){e===void 0&&(e="Reaction@"+cu()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=ii.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+cu(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Od.NONE}return r.prototype.onBecomeStale=function(){this.schedule()},r.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Er.pendingReactions.push(this),uq())},r.prototype.isScheduled=function(){return this._isScheduled},r.prototype.runReaction=function(){this.isDisposed||(Tp(),this._isScheduled=!1,LM(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&zl()&&Qg({object:this,type:"scheduled-reaction"})),Cp())},r.prototype.track=function(e){Tp();var t,n=zl();n&&(t=Date.now(),Ad({object:this,type:"reaction",fn:e})),this._isRunning=!0;var i=iq(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&jM(this),_b(i)&&this.reportExceptionInDerivation(i.cause),n&&Rd({time:Date.now()-t}),Cp()},r.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,i=Gn("m037");console.error(n||i,e),zl()&&Qg({type:"error",message:n,error:e,object:this}),Er.globalReactionErrorHandlers.forEach(function(a){return a(e,t)})}},r.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Tp(),jM(this),Cp()))},r.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=Nae,e},r.prototype.toString=function(){return"Reaction["+this.name+"]"},r.prototype.whyRun=function(){var e=Wx(this._isRunning?this.newObserving:this.observing).map(function(t){return t.name});return` + `)()}}function rq(r,e,t){e.length>=1e3?e.push("(and many more)"):(e.push(""+new Array(t).join(" ")+r.name),r.dependencies&&r.dependencies.forEach(function(n){return rq(n,e,t+1)}))}mP.__mobxInstanceCount?(mP.__mobxInstanceCount++,setTimeout(function(){Wz||Yz||P8||(P8=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))},1)):mP.__mobxInstanceCount=1,(function(r){r[r.NOT_TRACKING=-1]="NOT_TRACKING",r[r.UP_TO_DATE=0]="UP_TO_DATE",r[r.POSSIBLY_STALE=1]="POSSIBLY_STALE",r[r.STALE=2]="STALE"})(ii||(ii={})),(function(r){r[r.NONE=0]="NONE",r[r.LOG=1]="LOG",r[r.BREAK=2]="BREAK"})(Od||(Od={}));var Yx=function(r){this.cause=r};function _b(r){return r instanceof Yx}function jM(r){switch(r.dependenciesState){case ii.UP_TO_DATE:return!1;case ii.NOT_TRACKING:case ii.STALE:return!0;case ii.POSSIBLY_STALE:for(var e=cy(),t=r.observing,n=t.length,i=0;i0;Er.computationDepth>0&&e&&fu(Gn("m031")+r.name),!Er.allowStateChanges&&e&&fu(Gn(Er.strictMode?"m030a":"m030b")+r.name)}function iq(r,e,t){oq(r),r.newObserving=new Array(r.observing.length+100),r.unboundDepsCount=0,r.runId=++Er.runId;var n,i=Er.trackingDerivation;Er.trackingDerivation=r;try{n=e.call(t)}catch(a){n=new Yx(a)}return Er.trackingDerivation=i,(function(a){for(var o=a.observing,s=a.observing=a.newObserving,u=ii.UP_TO_DATE,l=0,c=a.unboundDepsCount,f=0;fu&&(u=d.dependenciesState);for(s.length=l,a.newObserving=null,c=o.length;c--;)(d=o[c]).diffValue===0&&Qz(d,a),d.diffValue=0;for(;l--;){var d;(d=s[l]).diffValue===1&&(d.diffValue=0,Iae(d,a))}u!==ii.UP_TO_DATE&&(a.dependenciesState=u,a.onBecomeStale())})(r),n}function BM(r){var e=r.observing;r.observing=[];for(var t=e.length;t--;)Qz(e[t],r);r.dependenciesState=ii.NOT_TRACKING}function aq(r){var e=cy(),t=r();return dv(e),t}function cy(){var r=Er.trackingDerivation;return Er.trackingDerivation=null,r}function dv(r){Er.trackingDerivation=r}function oq(r){if(r.dependenciesState!==ii.UP_TO_DATE){r.dependenciesState=ii.UP_TO_DATE;for(var e=r.observing,t=e.length;t--;)e[t].lowestObserverState=ii.UP_TO_DATE}}function M8(r){return console.log(r),r}function sq(r){switch(r.length){case 0:return Er.trackingDerivation;case 1:return Eh(r[0]);case 2:return Eh(r[0],r[1])}}var P1=(function(){function r(e,t){e===void 0&&(e="Reaction@"+cu()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=ii.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+cu(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Od.NONE}return r.prototype.onBecomeStale=function(){this.schedule()},r.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Er.pendingReactions.push(this),uq())},r.prototype.isScheduled=function(){return this._isScheduled},r.prototype.runReaction=function(){this.isDisposed||(Tp(),this._isScheduled=!1,jM(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&zl()&&Qg({object:this,type:"scheduled-reaction"})),Cp())},r.prototype.track=function(e){Tp();var t,n=zl();n&&(t=Date.now(),Ad({object:this,type:"reaction",fn:e})),this._isRunning=!0;var i=iq(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&BM(this),_b(i)&&this.reportExceptionInDerivation(i.cause),n&&Rd({time:Date.now()-t}),Cp()},r.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,i=Gn("m037");console.error(n||i,e),zl()&&Qg({type:"error",message:n,error:e,object:this}),Er.globalReactionErrorHandlers.forEach(function(a){return a(e,t)})}},r.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Tp(),BM(this),Cp()))},r.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=Nae,e},r.prototype.toString=function(){return"Reaction["+this.name+"]"},r.prototype.whyRun=function(){var e=Wx(this._isRunning?this.newObserving:this.observing).map(function(t){return t.name});return` WhyRun? reaction '`+this.name+`': * Status: [`+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+`] * This reaction will re-run if any of the following observables changes: - `+IM(e)+` + `+NM(e)+` `+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+` `+Gn("m038")+` -`},r.prototype.trace=function(e){e===void 0&&(e=!1),(function(){for(var t=[],n=0;n0||Er.isRunningReactions||BM(Lae)}function Lae(){Er.isRunningReactions=!0;for(var r=Er.pendingReactions,e=0;r.length>0;){++e===M8&&(console.error("Reaction doesn't converge to a stable state after "+M8+" iterations. Probably there is a cycle in the reactive function: "+r[0]),r.splice(0));for(var t=r.splice(0),n=0,i=t.length;n=0&&Er.globalReactionErrorHandlers.splice(e,1)}},reserveArrayBuffer:ND,resetGlobalState:function(){Er.resetId++;var r=new Hz;for(var e in r)kae.indexOf(e)===-1&&(Er[e]=r[e]);Er.allowStateChanges=!Er.strictMode},isolateGlobalState:function(){Yz=!0,A1().__mobxInstanceCount--},shareGlobalState:function(){Rg("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),Wz=!0;var r=A1(),e=Er;if(r.__mobservableTrackingStack||r.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(r.__mobxGlobal&&r.__mobxGlobal.version!==e.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");r.__mobxGlobal?Er=r.__mobxGlobal:r.__mobxGlobal=e},spyReport:Qg,spyReportEnd:Rd,spyReportStart:Ad,setReactionScheduler:function(r){var e=BM;BM=function(t){return r(function(){return e(t)})}}},FM={Reaction:P1,untracked:aq,Atom:gae,BaseAtom:n_,useStrict:Tz,isStrictModeEnabled:function(){return Er.strictMode},spy:xz,comparer:yv,asReference:function(r){return Rg("asReference is deprecated, use observable.ref instead"),ka.ref(r)},asFlat:function(r){return Rg("asFlat is deprecated, use observable.shallow instead"),ka.shallow(r)},asStructure:function(r){return Rg("asStructure is deprecated. Use observable.struct, computed.struct or reaction options instead."),ka.struct(r)},asMap:function(r){return Rg("asMap is deprecated, use observable.map or observable.shallowMap instead"),ka.map(r||{})},isModifierDescriptor:uy,isObservableObject:xh,isBoxedObservable:LD,isObservableArray:gv,ObservableMap:zm,isObservableMap:zf,map:function(r){return Rg("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),ka.map(r)},transaction:cm,observable:ka,computed:Xx,isObservable:i0,isComputed:function(r,e){if(r==null)return!1;if(e!==void 0){if(xh(r)===!1||!r.$mobx.values[e])return!1;var t=Eh(r,e);return fv(t)}return fv(r)},extendObservable:Nz,extendShallowObservable:Lz,observe:function(r,e,t,n){return typeof t=="function"?(function(i,a,o,s){return lv(i,a).observe(o,s)})(r,e,t,n):(function(i,a,o){return lv(i).observe(a,o)})(r,e,t)},intercept:function(r,e,t){return typeof t=="function"?(function(n,i,a){return lv(n,i).intercept(a)})(r,e,t):(function(n,i){return lv(n).intercept(i)})(r,e)},autorun:Hx,autorunAsync:function(r,e,t,n){var i,a,o,s;typeof r=="string"?(i=r,a=e,o=t,s=n):(i=r.name||"AutorunAsync@"+cu(),a=r,o=e,s=t),an(Vx(a)===!1,Gn("m006")),o===void 0&&(o=1),s&&(a=a.bind(s));var u=!1,l=new P1(i,function(){u||(u=!0,setTimeout(function(){u=!1,l.isDisposed||l.track(c)},o))});function c(){a(l)}return l.schedule(),l.getDisposer()},when:function(r,e,t,n){var i,a,o,s;return typeof r=="string"?(i=r,a=e,o=t,s=n):(i="When@"+cu(),a=r,o=e,s=t),Hx(i,function(u){if(a.call(s)){u.dispose();var l=cy();o.call(s),dv(l)}})},reaction:Pz,action:ta,isAction:Vx,runInAction:function(r,e,t){var n=typeof r=="string"?r:r.name||"",i=typeof r=="function"?r:e,a=typeof r=="function"?e:t;return an(typeof i=="function",Gn("m002")),an(i.length===0,Gn("m003")),an(typeof n=="string"&&n.length>0,"actions should have valid names, got: '"+n+"'"),jD(n,i,a,void 0)},expr:function(r,e){return nq()||console.warn(Gn("m013")),Xx(r,{context:e}).get()},toJS:$u,createTransformer:function(r,e){an(typeof r=="function"&&r.length<2,"createTransformer expects a function that accepts one argument");var t={},n=Er.resetId,i=(function(a){function o(s,u){var l=a.call(this,function(){return r(u)},void 0,yv.default,"Transformer-"+r.name+"-"+s,void 0)||this;return l.sourceIdentifier=s,l.sourceObject=u,l}return iE(o,a),o.prototype.onBecomeUnobserved=function(){var s=this.value;a.prototype.onBecomeUnobserved.call(this),delete t[this.sourceIdentifier],e&&e(s,this.sourceObject)},o})(Jg);return function(a){n!==Er.resetId&&(t={},n=Er.resetId);var o=(function(u){if(typeof u=="string"||typeof u=="number")return u;if(u===null||typeof u!="object")throw new Error("[mobx] transform expected some kind of object or primitive value, got: "+u);var l=u.$transformId;return l===void 0&&jp(u,"$transformId",l=cu()),l})(a),s=t[o];return s?s.get():(s=t[o]=new i(o,a)).get()}},whyRun:function(r,e){return Rg("`whyRun` is deprecated in favor of `trace`"),(r=sq(arguments))?fv(r)||Vm(r)?P8(r.whyRun()):fu(Gn("m025")):P8(Gn("m024"))},isArrayLike:function(r){return Array.isArray(r)||gv(r)},extras:VD},D8=!1,Fae=function(r){var e=FM[r];Object.defineProperty(FM,r,{get:function(){return D8||(D8=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),e}})};for(var Uae in FM)Fae(Uae);function Lb(r){return Lb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lb(r)}function zae(r,e){for(var t=0;t0&&arguments[0]!==void 0?arguments[0]:{};(function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")})(this,t),n=this,a=void 0,(i=lq(i="callbacks"))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,this.callbacks=o},e=[{key:"onInitialization",value:function(){this.isValidFunction(this.callbacks.onInitialization)&&this.callbacks.onInitialization()}},{key:"onZoomTransitionDone",value:function(){this.isValidFunction(this.callbacks.onZoomTransitionDone)&&this.callbacks.onZoomTransitionDone()}},{key:"onLayoutDone",value:function(){this.isValidFunction(this.callbacks.onLayoutDone)&&this.callbacks.onLayoutDone()}},{key:"onLayoutStep",value:function(t){this.isValidFunction(this.callbacks.onLayoutStep)&&this.callbacks.onLayoutStep(t)}},{key:"onLayoutComputing",value:function(t){this.isValidFunction(this.callbacks.onLayoutComputing)&&this.callbacks.onLayoutComputing(t)}},{key:"onError",value:function(t){this.isValidFunction(this.callbacks.onError)&&this.callbacks.onError(t)}},{key:"onWebGLContextLost",value:function(t){this.isValidFunction(this.callbacks.onWebGLContextLost)&&this.callbacks.onWebGLContextLost(t)}},{key:"isValidFunction",value:function(t){return t!==void 0&&typeof t=="function"}}],e&&zae(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})(),Vae=io(1803),k8=io.n(Vae),Cr=256,K0=4096,ha=25,cq="#818790",fq="#EDEDED",dq="#CFD1D4",hq="#F5F6F6",vq="#8FE3E8",HD="#1A1B1D",wb='"Open Sans", sans-serif',UM={position:"absolute",top:0,bottom:0,left:0,right:0},Hae=1/.38,$n=function(){return window.devicePixelRatio||1};function Wae(r,e){return(function(t){if(Array.isArray(t))return t})(r)||(function(t,n){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var a,o,s,u,l=[],c=!0,f=!1;try{if(s=(i=i.call(t)).next,n!==0)for(;!(c=(a=s.call(i)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(d){f=!0,o=d}finally{try{if(!c&&i.return!=null&&(u=i.return(),Object(u)!==u))return}finally{if(f)throw o}}return l}})(r,e)||pq(r,e)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function I8(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=pq(r))||e){t&&(r=t);var n=0,i=function(){};return{s:i,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function pq(r,e){if(r){if(typeof r=="string")return N8(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?N8(r,e):void 0}}function N8(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function L8(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t1&&arguments[1]!==void 0?arguments[1]:fq,t=new Map;return r.forEach(function(n){var i=n.id,a=n.from,o=n.to,s=n.color,u=n.width,l=n.disabled,c=gq(a,o),f=t.get(c);f?f.bundledRels.push({id:i,color:s??void 0,disabled:l!=null&&l,width:u??1}):t.set(c,{bundledRels:[{id:i,color:s??void 0,disabled:l!=null&&l,width:u??1}],key:c,from:a,to:o,color:s??void 0,disabled:l!=null&&l,width:0})}),t.forEach(function(n){var i=(0,Hi.uniqBy)(n.bundledRels,"disabled"),a=i.length===1&&i[0].disabled===!0,o=i.length===1&&i[0].disabled!==!0;if(a)n.color=e,n.width=1;else{var s=n.bundledRels.filter(function(l){return l.disabled!==!0}),u=(0,Hi.uniqBy)(s,"color");o?(n.color=u.length>1?void 0:n.bundledRels[0].color,n.bundledRels.forEach(function(l){n.width+=l.width})):(n.color=u.length===1?u[0].color:void 0,n.disabled=!1,n.bundledRels.forEach(function(l){n.width+=l.disabled!==!0?l.width:0}))}n.width=Math.min(n.width,20)}),Array.from(t.values())},ey=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).find(function(r){return"size"in r})!==void 0};function jb(r){return jb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jb(r)}function j8(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Xae(r){for(var e=1;e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function B8(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0?[E.x/S,E.y/S]:[0,0]})(t,a),s={x:o[0],y:o[1]},u=[],l=bP(t);try{for(l.s();!(n=l.n()).done;){var c=n.value,f=this.positions[c.id],d=a[c.id],h={id:c.id};if(f!==void 0){for(var p,g,y,b=c.id,_=(p=this.oldPositions[c.id])!==null&&p!==void 0?p:Xae({},s);_===void 0&&i[b]!==void 0;)b=i[b],_=this.oldPositions[b];_.x=(g=_.x)!==null&&g!==void 0?g:s.x,_.y=(y=_.y)!==null&&y!==void 0?y:s.y,h.x=F8(_.x,f.x,this.t),h.y=F8(_.y,f.y,this.t)}else d!==void 0&&(h.x=d.x||s.x,h.y=d.y||s.y);u.push(h)}}catch(m){l.e(m)}finally{l.f()}return this.currentT=this.t,u}}],e&&$ae(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function Om(r){return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Om(r)}function Kae(r,e){for(var t=0;t0,c=Object.values(u.removes).length>0,f=Object.values(u.updates),d=ey(f);i.shouldUpdate=i.shouldUpdate||l||c||d}if(s.version!==void 0){var h=s.channels[kl],p=Object.values(h.adds).length>0,g=Object.values(h.removes).length>0;i.shouldUpdate=i.shouldUpdate||p||g}})],i.shouldUpdate=!0,i.setOptions(n),i.layout(o.items),i}return(function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&GM(n,i)})(r,WD),e=r,t=[{key:"setOptions",value:function(n){n&&"sortFunction"in n&&(this.sortFunction=n.sortFunction)}},{key:"update",value:function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||n){var i=this.state,a=i.nodes,o=i.rels,s=Object.values(a.channels[kl].adds).length>0,u=Object.values(o.channels[kl].adds).length>0,l=Object.values(a.channels[kl].removes).length>0,c=Object.values(o.channels[kl].removes).length>0,f=Object.values(a.channels[kl].updates),d=ey(f);(n||s||u||l||c||d)&&this.layout(a.items),a.clearChannel(kl),o.clearChannel(kl)}(function(h,p,g){var y=qM(Tm(h.prototype),"update",g);return typeof y=="function"?function(b){return y.apply(g,b)}:y})(r,0,this)([]),this.shouldUpdate=!1}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate||this.shouldUpdateAnimator}},{key:"getComputing",value:function(){return!1}},{key:"layout",value:function(n){var i,a,o,s=(o=n)!==void 0?$u(o):o,u=(i=(a=this.sortFunction)===null||a===void 0?void 0:a.call(this,s))!==null&&i!==void 0?i:s;this.positions=(function(l){var c,f=0,d=[],h=$n(),p=I8(l);try{for(p.s();!(c=p.n()).done;){var g,y=(2*((g=c.value.size)!==null&&g!==void 0?g:ha)+12.5)*h;f+=y,d.push(y)}}catch(j){p.e(j)}finally{p.f()}var b=f/(2*Math.PI);if(b<250){var _=250/b;d.forEach(function(j,z){return d[z]=j*_}),b=250}var m,x=Yae,E={},O=I8(l.entries());try{for(O.s();!(m=O.n()).done;){var S=Wae(m.value,2),T=S[0],P=S[1],I=d[T]/b,k=x+I/2;x=k+I/2;var L=Math.cos(k)*b,B=Math.sin(k)*b;E[P.id]={id:P.id,x:L,y:B}}}catch(j){O.e(j)}finally{O.f()}return E})(u),this.shouldUpdate=!0,this.startAnimation()}},{key:"terminateUpdate",value:function(){var n,i;this.shouldUpdate=!1,(n=this.state.nodes)===null||n===void 0||n.clearChannel(kl),(i=this.state.rels)===null||i===void 0||i.clearChannel(kl)}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(n){n()}),this.state.nodes.removeChannel(kl),this.state.rels.removeChannel(kl)}}],t&&Kae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})(),Qae={value:()=>{}};function _q(){for(var r,e=0,t=arguments.length,n={};e=0&&(l=u.slice(c+1),u=u.slice(0,c)),u&&!n.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:l}})),o=-1,s=a.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o0)for(var t,n,i=new Array(t),a=0;a=0&&e._call.call(void 0,r),e=e._next;--ym})()}finally{ym=0,(function(){for(var r,e,t=cx,n=1/0;t;)t._call?(n>t._time&&(n=t._time),r=t,t=t._next):(e=t._next,t._next=null,t=r?r._next=e:cx=e);xb=r,HM(n)})(),Ug=0}}function roe(){var r=M1.now(),e=r-$x;e>1e3&&(cE-=e,$x=r)}function HM(r){ym||(Eb&&(Eb=clearTimeout(Eb)),r-Ug>24?(r<1/0&&(Eb=setTimeout(q8,r-M1.now()-cE)),Q0&&(Q0=clearInterval(Q0))):(Q0||($x=M1.now(),Q0=setInterval(roe,1e3)),ym=1,wq(q8)))}VM.prototype=Eq.prototype={constructor:VM,restart:function(r,e,t){if(typeof r!="function")throw new TypeError("callback is not a function");t=(t==null?xq():+t)+(e==null?0:+e),this._next||xb===this||(xb?xb._next=this:cx=this,xb=this),this._call=r,this._time=t,HM()},stop:function(){this._call&&(this._call=null,this._time=1/0,HM())}};const G8=4294967296;function noe(r){return r.x}function ioe(r){return r.y}var aoe=Math.PI*(3-Math.sqrt(5));function V8(r,e,t,n){if(isNaN(e)||isNaN(t))return r;var i,a,o,s,u,l,c,f,d,h=r._root,p={data:n},g=r._x0,y=r._y0,b=r._x1,_=r._y1;if(!h)return r._root=p,r;for(;h.length;)if((l=e>=(a=(g+b)/2))?g=a:b=a,(c=t>=(o=(y+_)/2))?y=o:_=o,i=h,!(h=h[f=c<<1|l]))return i[f]=p,r;if(s=+r._x.call(null,h.data),u=+r._y.call(null,h.data),e===s&&t===u)return p.next=h,i?i[f]=p:r._root=p,r;do i=i?i[f]=new Array(4):r._root=new Array(4),(l=e>=(a=(g+b)/2))?g=a:b=a,(c=t>=(o=(y+_)/2))?y=o:_=o;while((f=c<<1|l)==(d=(u>=o)<<1|s>=a));return i[d]=h,i[f]=p,r}function Il(r,e,t,n,i){this.node=r,this.x0=e,this.y0=t,this.x1=n,this.y1=i}function ooe(r){return r[0]}function soe(r){return r[1]}function YD(r,e,t){var n=new XD(e??ooe,t??soe,NaN,NaN,NaN,NaN);return r==null?n:n.addAll(r)}function XD(r,e,t,n,i,a){this._x=r,this._y=e,this._x0=t,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function H8(r){for(var e={data:r.data},t=e;r=r.next;)t=t.next={data:r.data};return e}var Nl=YD.prototype=XD.prototype;function Bl(r){return function(){return r}}function bp(r){return 1e-6*(r()-.5)}function _P(){var r,e,t,n,i,a=Bl(-30),o=1,s=1/0,u=.81;function l(h){var p,g=r.length,y=YD(r,noe,ioe).visitAfter(f);for(n=h,p=0;p=s)){(h.data!==e||h.next)&&(b===0&&(x+=(b=bp(t))*b),_===0&&(x+=(_=bp(t))*_),xc&&(c=n),if&&(f=i));if(u>c||l>f)return this;for(this.cover(u,l).cover(c,f),t=0;tr||r>=i||n>e||e>=a;)switch(s=(ed||(a=u.y0)>h||(o=u.x1)=b)<<1|r>=y)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=u)}else{var _=r-+this._x.call(null,g.data),m=e-+this._y.call(null,g.data),x=_*_+m*m;if(x=(s=(p+y)/2))?p=s:y=s,(c=o>=(u=(g+b)/2))?g=u:b=u,e=h,!(h=h[f=c<<1|l]))return this;if(!h.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(t=e,d=f)}for(;h.data!==r;)if(n=h,!(h=h.next))return this;return(i=h.next)&&delete h.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(h=e[0]||e[1]||e[2]||e[3])&&h===(e[3]||e[2]||e[1]||e[0])&&!h.length&&(t?t[d]=h:this._root=h),this):(this._root=i,this)},Nl.removeAll=function(r){for(var e=0,t=r.length;er.length)&&(e=r.length);for(var t=0,n=Array(e);t(T=(1664525*T+1013904223)%G8)/G8})();function x(){E(),_.call("tick",c),f1?(P==null?y.delete(T):y.set(T,S(P)),c):y.get(T)},find:function(T,P,I){var k,L,B,j,z,H=0,q=l.length;for(I==null?I=1/0:I*=I,H=0;H1?(_.on(T,P),c):_.on(T)}}})().velocityDecay(.4).force("charge",_P().strength(YM)).force("centerX",(function(l){var c,f,d,h=Bl(.1);function p(y){for(var b,_=0,m=c.length;_0,f=Object.values(l.removes).length>0,d=Object.values(l.updates),h=ey(d);c||f||h?(i.shouldUpdate=!0,i.shouldReheatNodes=!0,i.shouldCountNodeRels=!0):i.shouldReheatNodes=!1}var p=u.channels[lh];if(u.version!==void 0&&p){var g=Object.values(p.adds).length>0,y=Object.values(p.removes).length>0;(g||y)&&(i.shouldUpdate=!0,i.shouldReheatNodes=!0,i.shouldCountNodeRels=!0)}}))},e=[{key:"setOptions",value:function(t){}},{key:"updateNodes",value:function(t){var n=this;t.forEach(function(i){n.d3Nodes[i.id]===void 0&&(n.d3Nodes[i.id]={id:i.id}),i!=null&&i.pinned?(n.d3Nodes[i.id].fx=i.x,n.d3Nodes[i.id].fy=i.y):(n.d3Nodes[i.id].x=i.x,n.d3Nodes[i.id].y=i.y),n.d3Nodes[i.id].vy=0,n.d3Nodes[i.id].vx=0}),this.shouldUpdate=!0,this.simulation.tick().alpha(.2)}},{key:"update",value:function(){var t,n=this,i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||i){var a=this.state,o=a.nodes,s=a.rels,u=o.channels[lh],l=s.channels[lh],c=Object.values(u.adds).length>0,f=Object.values(l.adds).length>0,d=Object.values(u.removes).length>0,h=Object.values(l.removes).length>0,p=Object.values(u.updates).length>0;if(c||f||d||h||p){var g=c&&Object.keys(this.d3Nodes).length===0,y=wP(u.removes);Object.keys(y).forEach(function(m){delete n.d3Nodes[m]});var b=wP(u.adds);if(Object.keys(b).forEach(function(m){n.d3Nodes[m]=(function(x){for(var E=1;Ethis.simulation.alphaMin()&&(this.shouldUpdate=!0,this.simulationStopped&&(this.simulation.restart(),this.simulationStopped=!1))}}},{key:"layout",value:function(t,n,i){var a=this;if(!(0,Hi.isEmpty)(this.d3Nodes)){if(bi.info("d3ForceLayout: start layout with ".concat(Object.keys(this.d3Nodes).length," nodes and ").concat(this.d3RelList.length," rels")),this.simulation.stop(),this.simulation.nodes(Object.values(this.d3Nodes)).force("collide",(function(l){var c,f,d,h=1,p=1;function g(){for(var _,m,x,E,O,S,T,P=c.length,I=0;IE+$||zO+$||Hx.index){var J=E-q.x-q.vx,X=O-q.y-q.vy,Z=J*J+X*X;Z<$*$&&(J===0&&(Z+=(J=bp(d))*J),X===0&&(Z+=(X=bp(d))*X),Z=($-(Z=Math.sqrt(Z)))/Z*h,x.vx+=(J*=Z)*($=(W*=W)/(T+W)),x.vy+=(X*=Z)*$,q.vx-=J*($=1-$),q.vy-=X*$)}}}function y(_){if(_.data)return _.r=f[_.data.index];for(var m=_.r=0;m<4;++m)_[m]&&_[m].r>_.r&&(_.r=_[m].r)}function b(){if(c){var _,m,x=c.length;for(f=new Array(x),_=0;_[y(B,j,d),B]));for(T=0,h=new Array(I);T=this.simulation.alphaMin();)this.simulation.tick(1);return requestAnimationFrame(function(){a.computing=!1}),void this.simulation.restart()}this.shouldReheatNodes?this.simulation.alpha(1).restart():this.simulation.restart()}}},{key:"getNodePositions",value:function(t){var n,i=[],a=(function(l,c){var f=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!f){if(Array.isArray(l)||(f=(function(b,_){if(b){if(typeof b=="string")return X8(b,_);var m={}.toString.call(b).slice(8,-1);return m==="Object"&&b.constructor&&(m=b.constructor.name),m==="Map"||m==="Set"?Array.from(b):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?X8(b,_):void 0}})(l))||c){f&&(l=f);var d=0,h=function(){};return{s:h,n:function(){return d>=l.length?{done:!0}:{done:!1,value:l[d++]}},e:function(b){throw b},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,g=!0,y=!1;return{s:function(){f=f.call(l)},n:function(){var b=f.next();return g=b.done,b},e:function(b){y=!0,p=b},f:function(){try{g||f.return==null||f.return()}finally{if(y)throw p}}}})(t);try{for(a.s();!(n=a.n()).done;){var o=n.value,s=this.d3Nodes[o.id];if(s!==void 0){var u={id:s.id,x:s.x,y:s.y};i.push(u)}}}catch(l){a.e(l)}finally{a.f()}return i}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate}},{key:"getComputing",value:function(){return this.computing}},{key:"terminateUpdate",value:function(){this.simulation.alpha(this.simulation.alphaMin()).stop(),this.simulationStopped=!0}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(t){t()}),this.state.nodes.removeChannel(lh),this.state.rels.removeChannel(lh),this.simulation.stop()}},{key:"setAlpha",value:function(t){this.simulation.alpha(t),this.simulation.restart(),this.simulation.shouldUpdate=!0}},{key:"countNodeRels",value:function(){for(var t=new Map(Object.entries(this.d3Nodes)),n=Object.values(this.d3RelList),i=new Array(t.length),a=0;a1&&arguments[1]!==void 0&&arguments[1],n=moe[r],i=n.standard,a=n.fallback;if(t)e=xP[a];else try{e=xP[i]()}catch(o){console.warn("Failed to initialise ".concat(r,' worker: "').concat(JSON.stringify(o),'". Falling back to syncronous code.')),e=xP[a]}if(e===void 0)throw new Error("".concat(r," code could not be initialized."));return e.port.start(),e};function Cm(r){return Cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cm(r)}function K8(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function boe(r){for(var e=1;er.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0&&arguments[0],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(this.shouldUpdate||n){var o=Q8(i),s=Q8(a);(o.length>0||s.length>0)&&(this.updatePositionsFromState(),this.layout(o,s))}(function(u,l,c){var f=$M(Am(u.prototype),"update",c);return typeof f=="function"?function(d){return f.apply(c,d)}:f})(r,0,this)([]),this.shouldUpdate=!1}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate||this.shouldUpdateAnimator}},{key:"getComputing",value:function(){return this.computing}},{key:"layout",value:function(n,i){var a=this;if(this.worker){if(n.length){var o=n.map(function(l){return{group:"nodes",data:{id:l.id}}}),s=i.map(function(l){return{group:"edges",data:{id:"rel".concat(l.id),source:l.from,target:l.to}}}),u={elements:[].concat(Z8(o),Z8(s)),spacingFactor:n.reduce(function(l,c){var f;return l+((f=c.size)!==null&&f!==void 0?f:ha)},0)/n.length*4.5/50*$n()};this.computing?this.pendingLayoutData=u:(this.computing=!0,this.worker.port.onmessage=function(l){var c=l.data.positions;if(a.computing){for(var f=0,d=Object.entries(c);f3&&arguments[3]!==void 0?arguments[3]:{};(function(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),J0(this,"shaderProgram",void 0),J0(this,"gl",void 0),J0(this,"curTexture",void 0),J0(this,"attributeInfo",void 0),J0(this,"uniformInfo",void 0);var s=n.createShader(n.FRAGMENT_SHADER);if(!n.isShader(s))throw new Error("Could not create shader object");var u=eB()(a,o);n.shaderSource(s,u),n.compileShader(s),(0,Hi.isNil)(n.getShaderParameter(s,n.COMPILE_STATUS))&&bi.info(n.getShaderInfoLog(s));var l=n.createShader(n.VERTEX_SHADER);if(!n.isShader(l))throw new Error("Could not create shader object");var c=eB()(i,o);if(n.shaderSource(l,c),n.compileShader(l),(0,Hi.isNil)(n.getShaderParameter(l,n.COMPILE_STATUS))&&bi.info(n.getShaderInfoLog(l)),this.shaderProgram=n.createProgram(),n.attachShader(this.shaderProgram,s),n.attachShader(this.shaderProgram,l),n.linkProgram(this.shaderProgram),(0,Hi.isNil)(n.getProgramParameter(this.shaderProgram,n.LINK_STATUS)))throw new Error("Could not initialise shader");this.gl=n,this.curTexture=0,this.scanUniforms(),this.scanAttributes()},(e=[{key:"setUniform",value:function(t,n){var i=this.gl,a=this.uniformInfo[t];if(a===void 0)throw new Error("Shader.setUniform - Uniform ".concat(t," not found in shader"));switch(a.type){case i.INT:i.uniform1i(a.location,n);break;case i.INT_VEC2:i.uniform2iv(a.location,n);break;case i.INT_VEC3:i.uniform3iv(a.location,n);break;case i.INT_VEC4:i.uniform4iv(a.location,n);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+a.texture),i.bindTexture(i.TEXTURE_2D,n),i.uniform1i(a.location,a.texture);break;case i.SAMPLER_CUBE:case i.FLOAT:i.uniform1f(a.location,n);break;case i.FLOAT_VEC2:i.uniform2fv(a.location,n);break;case i.FLOAT_VEC3:i.uniform3fv(a.location,n);break;case i.FLOAT_VEC4:i.uniform4fv(a.location,n);break;case i.FLOAT_MAT2:i.uniformMatrix2fv(a.location,!1,n);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(a.location,!1,n);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(a.location,!1,n)}}},{key:"setAttributePointer",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t],u=i*Float32Array.BYTES_PER_ELEMENT,l=a*Float32Array.BYTES_PER_ELEMENT;o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.FLOAT,!1,l,u)}},{key:"setAttributePointerFloat",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t];o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.FLOAT,!1,a,i)}},{key:"setAttributePointerUShort",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t];o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.UNSIGNED_SHORT,!1,a,i)}},{key:"setAttributePointerByteNorm",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t];o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.UNSIGNED_BYTE,!0,a,i)}},{key:"setAttributePointerByte",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t];o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.UNSIGNED_BYTE,!1,a,i)}},{key:"use",value:function(){this.gl.useProgram(this.shaderProgram)}},{key:"remove",value:function(){this.gl.deleteProgram(this.shaderProgram)}},{key:"scanAttributes",value:function(){var t=this.gl;this.attributeInfo={};for(var n,i,a=t.getProgramParameter(this.shaderProgram,t.ACTIVE_ATTRIBUTES),o=0;o0||Er.isRunningReactions||FM(Lae)}function Lae(){Er.isRunningReactions=!0;for(var r=Er.pendingReactions,e=0;r.length>0;){++e===D8&&(console.error("Reaction doesn't converge to a stable state after "+D8+" iterations. Probably there is a cycle in the reactive function: "+r[0]),r.splice(0));for(var t=r.splice(0),n=0,i=t.length;n=0&&Er.globalReactionErrorHandlers.splice(e,1)}},reserveArrayBuffer:LD,resetGlobalState:function(){Er.resetId++;var r=new Hz;for(var e in r)kae.indexOf(e)===-1&&(Er[e]=r[e]);Er.allowStateChanges=!Er.strictMode},isolateGlobalState:function(){Yz=!0,A1().__mobxInstanceCount--},shareGlobalState:function(){Rg("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),Wz=!0;var r=A1(),e=Er;if(r.__mobservableTrackingStack||r.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(r.__mobxGlobal&&r.__mobxGlobal.version!==e.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");r.__mobxGlobal?Er=r.__mobxGlobal:r.__mobxGlobal=e},spyReport:Qg,spyReportEnd:Rd,spyReportStart:Ad,setReactionScheduler:function(r){var e=FM;FM=function(t){return r(function(){return e(t)})}}},UM={Reaction:P1,untracked:aq,Atom:gae,BaseAtom:n_,useStrict:Tz,isStrictModeEnabled:function(){return Er.strictMode},spy:xz,comparer:yv,asReference:function(r){return Rg("asReference is deprecated, use observable.ref instead"),ka.ref(r)},asFlat:function(r){return Rg("asFlat is deprecated, use observable.shallow instead"),ka.shallow(r)},asStructure:function(r){return Rg("asStructure is deprecated. Use observable.struct, computed.struct or reaction options instead."),ka.struct(r)},asMap:function(r){return Rg("asMap is deprecated, use observable.map or observable.shallowMap instead"),ka.map(r||{})},isModifierDescriptor:uy,isObservableObject:xh,isBoxedObservable:jD,isObservableArray:gv,ObservableMap:zm,isObservableMap:zf,map:function(r){return Rg("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),ka.map(r)},transaction:cm,observable:ka,computed:Xx,isObservable:i0,isComputed:function(r,e){if(r==null)return!1;if(e!==void 0){if(xh(r)===!1||!r.$mobx.values[e])return!1;var t=Eh(r,e);return fv(t)}return fv(r)},extendObservable:Nz,extendShallowObservable:Lz,observe:function(r,e,t,n){return typeof t=="function"?(function(i,a,o,s){return lv(i,a).observe(o,s)})(r,e,t,n):(function(i,a,o){return lv(i).observe(a,o)})(r,e,t)},intercept:function(r,e,t){return typeof t=="function"?(function(n,i,a){return lv(n,i).intercept(a)})(r,e,t):(function(n,i){return lv(n).intercept(i)})(r,e)},autorun:Hx,autorunAsync:function(r,e,t,n){var i,a,o,s;typeof r=="string"?(i=r,a=e,o=t,s=n):(i=r.name||"AutorunAsync@"+cu(),a=r,o=e,s=t),an(Vx(a)===!1,Gn("m006")),o===void 0&&(o=1),s&&(a=a.bind(s));var u=!1,l=new P1(i,function(){u||(u=!0,setTimeout(function(){u=!1,l.isDisposed||l.track(c)},o))});function c(){a(l)}return l.schedule(),l.getDisposer()},when:function(r,e,t,n){var i,a,o,s;return typeof r=="string"?(i=r,a=e,o=t,s=n):(i="When@"+cu(),a=r,o=e,s=t),Hx(i,function(u){if(a.call(s)){u.dispose();var l=cy();o.call(s),dv(l)}})},reaction:Pz,action:ta,isAction:Vx,runInAction:function(r,e,t){var n=typeof r=="string"?r:r.name||"",i=typeof r=="function"?r:e,a=typeof r=="function"?e:t;return an(typeof i=="function",Gn("m002")),an(i.length===0,Gn("m003")),an(typeof n=="string"&&n.length>0,"actions should have valid names, got: '"+n+"'"),BD(n,i,a,void 0)},expr:function(r,e){return nq()||console.warn(Gn("m013")),Xx(r,{context:e}).get()},toJS:$u,createTransformer:function(r,e){an(typeof r=="function"&&r.length<2,"createTransformer expects a function that accepts one argument");var t={},n=Er.resetId,i=(function(a){function o(s,u){var l=a.call(this,function(){return r(u)},void 0,yv.default,"Transformer-"+r.name+"-"+s,void 0)||this;return l.sourceIdentifier=s,l.sourceObject=u,l}return iE(o,a),o.prototype.onBecomeUnobserved=function(){var s=this.value;a.prototype.onBecomeUnobserved.call(this),delete t[this.sourceIdentifier],e&&e(s,this.sourceObject)},o})(Jg);return function(a){n!==Er.resetId&&(t={},n=Er.resetId);var o=(function(u){if(typeof u=="string"||typeof u=="number")return u;if(u===null||typeof u!="object")throw new Error("[mobx] transform expected some kind of object or primitive value, got: "+u);var l=u.$transformId;return l===void 0&&jp(u,"$transformId",l=cu()),l})(a),s=t[o];return s?s.get():(s=t[o]=new i(o,a)).get()}},whyRun:function(r,e){return Rg("`whyRun` is deprecated in favor of `trace`"),(r=sq(arguments))?fv(r)||Vm(r)?M8(r.whyRun()):fu(Gn("m025")):M8(Gn("m024"))},isArrayLike:function(r){return Array.isArray(r)||gv(r)},extras:HD},k8=!1,Fae=function(r){var e=UM[r];Object.defineProperty(UM,r,{get:function(){return k8||(k8=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),e}})};for(var Uae in UM)Fae(Uae);function Lb(r){return Lb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lb(r)}function zae(r,e){for(var t=0;t0&&arguments[0]!==void 0?arguments[0]:{};(function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")})(this,t),n=this,a=void 0,(i=lq(i="callbacks"))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,this.callbacks=o},e=[{key:"onInitialization",value:function(){this.isValidFunction(this.callbacks.onInitialization)&&this.callbacks.onInitialization()}},{key:"onZoomTransitionDone",value:function(){this.isValidFunction(this.callbacks.onZoomTransitionDone)&&this.callbacks.onZoomTransitionDone()}},{key:"onLayoutDone",value:function(){this.isValidFunction(this.callbacks.onLayoutDone)&&this.callbacks.onLayoutDone()}},{key:"onLayoutStep",value:function(t){this.isValidFunction(this.callbacks.onLayoutStep)&&this.callbacks.onLayoutStep(t)}},{key:"onLayoutComputing",value:function(t){this.isValidFunction(this.callbacks.onLayoutComputing)&&this.callbacks.onLayoutComputing(t)}},{key:"onError",value:function(t){this.isValidFunction(this.callbacks.onError)&&this.callbacks.onError(t)}},{key:"onWebGLContextLost",value:function(t){this.isValidFunction(this.callbacks.onWebGLContextLost)&&this.callbacks.onWebGLContextLost(t)}},{key:"isValidFunction",value:function(t){return t!==void 0&&typeof t=="function"}}],e&&zae(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})(),Vae=ao(1803),I8=ao.n(Vae),Cr=256,K0=4096,ha=25,cq="#818790",fq="#EDEDED",dq="#CFD1D4",hq="#F5F6F6",vq="#8FE3E8",WD="#1A1B1D",wb='"Open Sans", sans-serif',zM={position:"absolute",top:0,bottom:0,left:0,right:0},Hae=1/.38,$n=function(){return window.devicePixelRatio||1};function Wae(r,e){return(function(t){if(Array.isArray(t))return t})(r)||(function(t,n){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var a,o,s,u,l=[],c=!0,f=!1;try{if(s=(i=i.call(t)).next,n!==0)for(;!(c=(a=s.call(i)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(d){f=!0,o=d}finally{try{if(!c&&i.return!=null&&(u=i.return(),Object(u)!==u))return}finally{if(f)throw o}}return l}})(r,e)||pq(r,e)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function N8(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=pq(r))||e){t&&(r=t);var n=0,i=function(){};return{s:i,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function pq(r,e){if(r){if(typeof r=="string")return L8(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?L8(r,e):void 0}}function L8(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function j8(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t1&&arguments[1]!==void 0?arguments[1]:fq,t=new Map;return r.forEach(function(n){var i=n.id,a=n.from,o=n.to,s=n.color,u=n.width,l=n.disabled,c=gq(a,o),f=t.get(c);f?f.bundledRels.push({id:i,color:s??void 0,disabled:l!=null&&l,width:u??1}):t.set(c,{bundledRels:[{id:i,color:s??void 0,disabled:l!=null&&l,width:u??1}],key:c,from:a,to:o,color:s??void 0,disabled:l!=null&&l,width:0})}),t.forEach(function(n){var i=(0,Hi.uniqBy)(n.bundledRels,"disabled"),a=i.length===1&&i[0].disabled===!0,o=i.length===1&&i[0].disabled!==!0;if(a)n.color=e,n.width=1;else{var s=n.bundledRels.filter(function(l){return l.disabled!==!0}),u=(0,Hi.uniqBy)(s,"color");o?(n.color=u.length>1?void 0:n.bundledRels[0].color,n.bundledRels.forEach(function(l){n.width+=l.width})):(n.color=u.length===1?u[0].color:void 0,n.disabled=!1,n.bundledRels.forEach(function(l){n.width+=l.disabled!==!0?l.width:0}))}n.width=Math.min(n.width,20)}),Array.from(t.values())},ey=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).find(function(r){return"size"in r})!==void 0};function jb(r){return jb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jb(r)}function B8(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Xae(r){for(var e=1;e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function F8(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0?[E.x/S,E.y/S]:[0,0]})(t,a),s={x:o[0],y:o[1]},u=[],l=bP(t);try{for(l.s();!(n=l.n()).done;){var c=n.value,f=this.positions[c.id],d=a[c.id],h={id:c.id};if(f!==void 0){for(var p,g,y,b=c.id,_=(p=this.oldPositions[c.id])!==null&&p!==void 0?p:Xae({},s);_===void 0&&i[b]!==void 0;)b=i[b],_=this.oldPositions[b];_.x=(g=_.x)!==null&&g!==void 0?g:s.x,_.y=(y=_.y)!==null&&y!==void 0?y:s.y,h.x=U8(_.x,f.x,this.t),h.y=U8(_.y,f.y,this.t)}else d!==void 0&&(h.x=d.x||s.x,h.y=d.y||s.y);u.push(h)}}catch(m){l.e(m)}finally{l.f()}return this.currentT=this.t,u}}],e&&$ae(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function Om(r){return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Om(r)}function Kae(r,e){for(var t=0;t0,c=Object.values(u.removes).length>0,f=Object.values(u.updates),d=ey(f);i.shouldUpdate=i.shouldUpdate||l||c||d}if(s.version!==void 0){var h=s.channels[kl],p=Object.values(h.adds).length>0,g=Object.values(h.removes).length>0;i.shouldUpdate=i.shouldUpdate||p||g}})],i.shouldUpdate=!0,i.setOptions(n),i.layout(o.items),i}return(function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&VM(n,i)})(r,YD),e=r,t=[{key:"setOptions",value:function(n){n&&"sortFunction"in n&&(this.sortFunction=n.sortFunction)}},{key:"update",value:function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||n){var i=this.state,a=i.nodes,o=i.rels,s=Object.values(a.channels[kl].adds).length>0,u=Object.values(o.channels[kl].adds).length>0,l=Object.values(a.channels[kl].removes).length>0,c=Object.values(o.channels[kl].removes).length>0,f=Object.values(a.channels[kl].updates),d=ey(f);(n||s||u||l||c||d)&&this.layout(a.items),a.clearChannel(kl),o.clearChannel(kl)}(function(h,p,g){var y=GM(Tm(h.prototype),"update",g);return typeof y=="function"?function(b){return y.apply(g,b)}:y})(r,0,this)([]),this.shouldUpdate=!1}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate||this.shouldUpdateAnimator}},{key:"getComputing",value:function(){return!1}},{key:"layout",value:function(n){var i,a,o,s=(o=n)!==void 0?$u(o):o,u=(i=(a=this.sortFunction)===null||a===void 0?void 0:a.call(this,s))!==null&&i!==void 0?i:s;this.positions=(function(l){var c,f=0,d=[],h=$n(),p=N8(l);try{for(p.s();!(c=p.n()).done;){var g,y=(2*((g=c.value.size)!==null&&g!==void 0?g:ha)+12.5)*h;f+=y,d.push(y)}}catch(j){p.e(j)}finally{p.f()}var b=f/(2*Math.PI);if(b<250){var _=250/b;d.forEach(function(j,z){return d[z]=j*_}),b=250}var m,x=Yae,E={},O=N8(l.entries());try{for(O.s();!(m=O.n()).done;){var S=Wae(m.value,2),T=S[0],P=S[1],I=d[T]/b,k=x+I/2;x=k+I/2;var L=Math.cos(k)*b,B=Math.sin(k)*b;E[P.id]={id:P.id,x:L,y:B}}}catch(j){O.e(j)}finally{O.f()}return E})(u),this.shouldUpdate=!0,this.startAnimation()}},{key:"terminateUpdate",value:function(){var n,i;this.shouldUpdate=!1,(n=this.state.nodes)===null||n===void 0||n.clearChannel(kl),(i=this.state.rels)===null||i===void 0||i.clearChannel(kl)}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(n){n()}),this.state.nodes.removeChannel(kl),this.state.rels.removeChannel(kl)}}],t&&Kae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})(),Qae={value:()=>{}};function _q(){for(var r,e=0,t=arguments.length,n={};e=0&&(l=u.slice(c+1),u=u.slice(0,c)),u&&!n.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:l}})),o=-1,s=a.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o0)for(var t,n,i=new Array(t),a=0;a=0&&e._call.call(void 0,r),e=e._next;--ym})()}finally{ym=0,(function(){for(var r,e,t=cx,n=1/0;t;)t._call?(n>t._time&&(n=t._time),r=t,t=t._next):(e=t._next,t._next=null,t=r?r._next=e:cx=e);xb=r,WM(n)})(),Ug=0}}function roe(){var r=M1.now(),e=r-$x;e>1e3&&(cE-=e,$x=r)}function WM(r){ym||(Eb&&(Eb=clearTimeout(Eb)),r-Ug>24?(r<1/0&&(Eb=setTimeout(G8,r-M1.now()-cE)),Q0&&(Q0=clearInterval(Q0))):(Q0||($x=M1.now(),Q0=setInterval(roe,1e3)),ym=1,wq(G8)))}HM.prototype=Eq.prototype={constructor:HM,restart:function(r,e,t){if(typeof r!="function")throw new TypeError("callback is not a function");t=(t==null?xq():+t)+(e==null?0:+e),this._next||xb===this||(xb?xb._next=this:cx=this,xb=this),this._call=r,this._time=t,WM()},stop:function(){this._call&&(this._call=null,this._time=1/0,WM())}};const V8=4294967296;function noe(r){return r.x}function ioe(r){return r.y}var aoe=Math.PI*(3-Math.sqrt(5));function H8(r,e,t,n){if(isNaN(e)||isNaN(t))return r;var i,a,o,s,u,l,c,f,d,h=r._root,p={data:n},g=r._x0,y=r._y0,b=r._x1,_=r._y1;if(!h)return r._root=p,r;for(;h.length;)if((l=e>=(a=(g+b)/2))?g=a:b=a,(c=t>=(o=(y+_)/2))?y=o:_=o,i=h,!(h=h[f=c<<1|l]))return i[f]=p,r;if(s=+r._x.call(null,h.data),u=+r._y.call(null,h.data),e===s&&t===u)return p.next=h,i?i[f]=p:r._root=p,r;do i=i?i[f]=new Array(4):r._root=new Array(4),(l=e>=(a=(g+b)/2))?g=a:b=a,(c=t>=(o=(y+_)/2))?y=o:_=o;while((f=c<<1|l)==(d=(u>=o)<<1|s>=a));return i[d]=h,i[f]=p,r}function Il(r,e,t,n,i){this.node=r,this.x0=e,this.y0=t,this.x1=n,this.y1=i}function ooe(r){return r[0]}function soe(r){return r[1]}function XD(r,e,t){var n=new $D(e??ooe,t??soe,NaN,NaN,NaN,NaN);return r==null?n:n.addAll(r)}function $D(r,e,t,n,i,a){this._x=r,this._y=e,this._x0=t,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function W8(r){for(var e={data:r.data},t=e;r=r.next;)t=t.next={data:r.data};return e}var Nl=XD.prototype=$D.prototype;function Bl(r){return function(){return r}}function bp(r){return 1e-6*(r()-.5)}function _P(){var r,e,t,n,i,a=Bl(-30),o=1,s=1/0,u=.81;function l(h){var p,g=r.length,y=XD(r,noe,ioe).visitAfter(f);for(n=h,p=0;p=s)){(h.data!==e||h.next)&&(b===0&&(x+=(b=bp(t))*b),_===0&&(x+=(_=bp(t))*_),xc&&(c=n),if&&(f=i));if(u>c||l>f)return this;for(this.cover(u,l).cover(c,f),t=0;tr||r>=i||n>e||e>=a;)switch(s=(ed||(a=u.y0)>h||(o=u.x1)=b)<<1|r>=y)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=u)}else{var _=r-+this._x.call(null,g.data),m=e-+this._y.call(null,g.data),x=_*_+m*m;if(x=(s=(p+y)/2))?p=s:y=s,(c=o>=(u=(g+b)/2))?g=u:b=u,e=h,!(h=h[f=c<<1|l]))return this;if(!h.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(t=e,d=f)}for(;h.data!==r;)if(n=h,!(h=h.next))return this;return(i=h.next)&&delete h.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(h=e[0]||e[1]||e[2]||e[3])&&h===(e[3]||e[2]||e[1]||e[0])&&!h.length&&(t?t[d]=h:this._root=h),this):(this._root=i,this)},Nl.removeAll=function(r){for(var e=0,t=r.length;er.length)&&(e=r.length);for(var t=0,n=Array(e);t(T=(1664525*T+1013904223)%V8)/V8})();function x(){E(),_.call("tick",c),f1?(P==null?y.delete(T):y.set(T,S(P)),c):y.get(T)},find:function(T,P,I){var k,L,B,j,z,H=0,q=l.length;for(I==null?I=1/0:I*=I,H=0;H1?(_.on(T,P),c):_.on(T)}}})().velocityDecay(.4).force("charge",_P().strength(XM)).force("centerX",(function(l){var c,f,d,h=Bl(.1);function p(y){for(var b,_=0,m=c.length;_0,f=Object.values(l.removes).length>0,d=Object.values(l.updates),h=ey(d);c||f||h?(i.shouldUpdate=!0,i.shouldReheatNodes=!0,i.shouldCountNodeRels=!0):i.shouldReheatNodes=!1}var p=u.channels[lh];if(u.version!==void 0&&p){var g=Object.values(p.adds).length>0,y=Object.values(p.removes).length>0;(g||y)&&(i.shouldUpdate=!0,i.shouldReheatNodes=!0,i.shouldCountNodeRels=!0)}}))},e=[{key:"setOptions",value:function(t){}},{key:"updateNodes",value:function(t){var n=this;t.forEach(function(i){n.d3Nodes[i.id]===void 0&&(n.d3Nodes[i.id]={id:i.id}),i!=null&&i.pinned?(n.d3Nodes[i.id].fx=i.x,n.d3Nodes[i.id].fy=i.y):(n.d3Nodes[i.id].x=i.x,n.d3Nodes[i.id].y=i.y),n.d3Nodes[i.id].vy=0,n.d3Nodes[i.id].vx=0}),this.shouldUpdate=!0,this.simulation.tick().alpha(.2)}},{key:"update",value:function(){var t,n=this,i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||i){var a=this.state,o=a.nodes,s=a.rels,u=o.channels[lh],l=s.channels[lh],c=Object.values(u.adds).length>0,f=Object.values(l.adds).length>0,d=Object.values(u.removes).length>0,h=Object.values(l.removes).length>0,p=Object.values(u.updates).length>0;if(c||f||d||h||p){var g=c&&Object.keys(this.d3Nodes).length===0,y=wP(u.removes);Object.keys(y).forEach(function(m){delete n.d3Nodes[m]});var b=wP(u.adds);if(Object.keys(b).forEach(function(m){n.d3Nodes[m]=(function(x){for(var E=1;Ethis.simulation.alphaMin()&&(this.shouldUpdate=!0,this.simulationStopped&&(this.simulation.restart(),this.simulationStopped=!1))}}},{key:"layout",value:function(t,n,i){var a=this;if(!(0,Hi.isEmpty)(this.d3Nodes)){if(bi.info("d3ForceLayout: start layout with ".concat(Object.keys(this.d3Nodes).length," nodes and ").concat(this.d3RelList.length," rels")),this.simulation.stop(),this.simulation.nodes(Object.values(this.d3Nodes)).force("collide",(function(l){var c,f,d,h=1,p=1;function g(){for(var _,m,x,E,O,S,T,P=c.length,I=0;IE+$||zO+$||Hx.index){var J=E-q.x-q.vx,X=O-q.y-q.vy,Z=J*J+X*X;Z<$*$&&(J===0&&(Z+=(J=bp(d))*J),X===0&&(Z+=(X=bp(d))*X),Z=($-(Z=Math.sqrt(Z)))/Z*h,x.vx+=(J*=Z)*($=(W*=W)/(T+W)),x.vy+=(X*=Z)*$,q.vx-=J*($=1-$),q.vy-=X*$)}}}function y(_){if(_.data)return _.r=f[_.data.index];for(var m=_.r=0;m<4;++m)_[m]&&_[m].r>_.r&&(_.r=_[m].r)}function b(){if(c){var _,m,x=c.length;for(f=new Array(x),_=0;_[y(B,j,d),B]));for(T=0,h=new Array(I);T=this.simulation.alphaMin();)this.simulation.tick(1);return requestAnimationFrame(function(){a.computing=!1}),void this.simulation.restart()}this.shouldReheatNodes?this.simulation.alpha(1).restart():this.simulation.restart()}}},{key:"getNodePositions",value:function(t){var n,i=[],a=(function(l,c){var f=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!f){if(Array.isArray(l)||(f=(function(b,_){if(b){if(typeof b=="string")return $8(b,_);var m={}.toString.call(b).slice(8,-1);return m==="Object"&&b.constructor&&(m=b.constructor.name),m==="Map"||m==="Set"?Array.from(b):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?$8(b,_):void 0}})(l))||c){f&&(l=f);var d=0,h=function(){};return{s:h,n:function(){return d>=l.length?{done:!0}:{done:!1,value:l[d++]}},e:function(b){throw b},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,g=!0,y=!1;return{s:function(){f=f.call(l)},n:function(){var b=f.next();return g=b.done,b},e:function(b){y=!0,p=b},f:function(){try{g||f.return==null||f.return()}finally{if(y)throw p}}}})(t);try{for(a.s();!(n=a.n()).done;){var o=n.value,s=this.d3Nodes[o.id];if(s!==void 0){var u={id:s.id,x:s.x,y:s.y};i.push(u)}}}catch(l){a.e(l)}finally{a.f()}return i}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate}},{key:"getComputing",value:function(){return this.computing}},{key:"terminateUpdate",value:function(){this.simulation.alpha(this.simulation.alphaMin()).stop(),this.simulationStopped=!0}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(t){t()}),this.state.nodes.removeChannel(lh),this.state.rels.removeChannel(lh),this.simulation.stop()}},{key:"setAlpha",value:function(t){this.simulation.alpha(t),this.simulation.restart(),this.simulation.shouldUpdate=!0}},{key:"countNodeRels",value:function(){for(var t=new Map(Object.entries(this.d3Nodes)),n=Object.values(this.d3RelList),i=new Array(t.length),a=0;a1&&arguments[1]!==void 0&&arguments[1],n=moe[r],i=n.standard,a=n.fallback;if(t)e=xP[a];else try{e=xP[i]()}catch(o){console.warn("Failed to initialise ".concat(r,' worker: "').concat(JSON.stringify(o),'". Falling back to syncronous code.')),e=xP[a]}if(e===void 0)throw new Error("".concat(r," code could not be initialized."));return e.port.start(),e};function Cm(r){return Cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cm(r)}function Z8(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function boe(r){for(var e=1;er.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0&&arguments[0],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(this.shouldUpdate||n){var o=J8(i),s=J8(a);(o.length>0||s.length>0)&&(this.updatePositionsFromState(),this.layout(o,s))}(function(u,l,c){var f=KM(Am(u.prototype),"update",c);return typeof f=="function"?function(d){return f.apply(c,d)}:f})(r,0,this)([]),this.shouldUpdate=!1}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate||this.shouldUpdateAnimator}},{key:"getComputing",value:function(){return this.computing}},{key:"layout",value:function(n,i){var a=this;if(this.worker){if(n.length){var o=n.map(function(l){return{group:"nodes",data:{id:l.id}}}),s=i.map(function(l){return{group:"edges",data:{id:"rel".concat(l.id),source:l.from,target:l.to}}}),u={elements:[].concat(Q8(o),Q8(s)),spacingFactor:n.reduce(function(l,c){var f;return l+((f=c.size)!==null&&f!==void 0?f:ha)},0)/n.length*4.5/50*$n()};this.computing?this.pendingLayoutData=u:(this.computing=!0,this.worker.port.onmessage=function(l){var c=l.data.positions;if(a.computing){for(var f=0,d=Object.entries(c);f3&&arguments[3]!==void 0?arguments[3]:{};(function(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),J0(this,"shaderProgram",void 0),J0(this,"gl",void 0),J0(this,"curTexture",void 0),J0(this,"attributeInfo",void 0),J0(this,"uniformInfo",void 0);var s=n.createShader(n.FRAGMENT_SHADER);if(!n.isShader(s))throw new Error("Could not create shader object");var u=tB()(a,o);n.shaderSource(s,u),n.compileShader(s),(0,Hi.isNil)(n.getShaderParameter(s,n.COMPILE_STATUS))&&bi.info(n.getShaderInfoLog(s));var l=n.createShader(n.VERTEX_SHADER);if(!n.isShader(l))throw new Error("Could not create shader object");var c=tB()(i,o);if(n.shaderSource(l,c),n.compileShader(l),(0,Hi.isNil)(n.getShaderParameter(l,n.COMPILE_STATUS))&&bi.info(n.getShaderInfoLog(l)),this.shaderProgram=n.createProgram(),n.attachShader(this.shaderProgram,s),n.attachShader(this.shaderProgram,l),n.linkProgram(this.shaderProgram),(0,Hi.isNil)(n.getProgramParameter(this.shaderProgram,n.LINK_STATUS)))throw new Error("Could not initialise shader");this.gl=n,this.curTexture=0,this.scanUniforms(),this.scanAttributes()},(e=[{key:"setUniform",value:function(t,n){var i=this.gl,a=this.uniformInfo[t];if(a===void 0)throw new Error("Shader.setUniform - Uniform ".concat(t," not found in shader"));switch(a.type){case i.INT:i.uniform1i(a.location,n);break;case i.INT_VEC2:i.uniform2iv(a.location,n);break;case i.INT_VEC3:i.uniform3iv(a.location,n);break;case i.INT_VEC4:i.uniform4iv(a.location,n);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+a.texture),i.bindTexture(i.TEXTURE_2D,n),i.uniform1i(a.location,a.texture);break;case i.SAMPLER_CUBE:case i.FLOAT:i.uniform1f(a.location,n);break;case i.FLOAT_VEC2:i.uniform2fv(a.location,n);break;case i.FLOAT_VEC3:i.uniform3fv(a.location,n);break;case i.FLOAT_VEC4:i.uniform4fv(a.location,n);break;case i.FLOAT_MAT2:i.uniformMatrix2fv(a.location,!1,n);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(a.location,!1,n);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(a.location,!1,n)}}},{key:"setAttributePointer",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t],u=i*Float32Array.BYTES_PER_ELEMENT,l=a*Float32Array.BYTES_PER_ELEMENT;o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.FLOAT,!1,l,u)}},{key:"setAttributePointerFloat",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t];o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.FLOAT,!1,a,i)}},{key:"setAttributePointerUShort",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t];o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.UNSIGNED_SHORT,!1,a,i)}},{key:"setAttributePointerByteNorm",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t];o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.UNSIGNED_BYTE,!0,a,i)}},{key:"setAttributePointerByte",value:function(t,n,i,a){var o=this.gl,s=this.attributeInfo[t];o.enableVertexAttribArray(s.position),o.vertexAttribPointer(s.position,n,o.UNSIGNED_BYTE,!1,a,i)}},{key:"use",value:function(){this.gl.useProgram(this.shaderProgram)}},{key:"remove",value:function(){this.gl.deleteProgram(this.shaderProgram)}},{key:"scanAttributes",value:function(){var t=this.gl;this.attributeInfo={};for(var n,i,a=t.getProgramParameter(this.shaderProgram,t.ACTIVE_ATTRIBUTES),o=0;ot&&n.relationships.some(function(s){return s.length>0});){var o=this.coarsen(n,a===0);if(a===0&&(this.nodeSortMap=o.nodeSortMap),this.subGraphs.push(o.sortedInput),(n=o.output).relationships.length===0||n.relationships.every(function(s){return s.length===0})||i===n.nodes.length)break;i=n.nodes.length,a+=1}return this.subGraphs.push(n),n}},{key:"coarsenBy",value:function(t){for(var n=t,i=this.graph,a=i.nodes.length,o=n;n>0;){var s=this.coarsen(i,n===o);if(this.subGraphs.push(s.sortedInput),(i=s.output).relationships.length===0||i.relationships.every(function(u){return u.length===0})||a===i.nodes.length)break;a=i.nodes.length,n-=1}return this.subGraphs.push(i),i}},{key:"coarsen",value:function(t,n){var i=this,a=t.nodes,o=t.relationships,s=n?a.map(function(O,S){return rB(rB({},O),{},{originalId:O.id,id:S})}):a,u=s.map(function(O,S){return S}),l={},c={};s.forEach(function(O,S){l[S]=O,c[O.originalId]=S});for(var f=o.map(function(O){return O.slice()}),d={suns:{},planets:{},moons:{}},h=[],p=[],g=function(){var O=u[0];u.splice(u.indexOf(O),1),o[O].forEach(function(P){var I=u.indexOf(P);I>=0&&u.splice(I,1);var k=-1,L=f[P];L.forEach(function(B,j){var z=u.indexOf(B);z>=0?u.splice(z,1):B===O&&(k=j)}),k>-1&&L.splice(k,1)});var S={id:O};if(n)S.originalId=l[O].originalId;else{var T=l[O];S.finestIndex=T.finestIndex,S.originalId=T.originalId}h.push(S),d.suns[O]=S};u.length>0;)g();h.forEach(function(O,S){p[S]=[]}),h.forEach(function(O,S){var T,P={},I=[];o[O.id].forEach(function(k){if(k!==O.id&&!P[k]){var L=l[k],B={id:k,parent:O,sunId:S,moons:[],weight:L.weight||1,children:function(){return B.moons},size:function(){return B.moons.length+1}};n||(B.finestIndex=L.finestIndex),B.originalId=L.originalId,I.push(B),P[k]=!0}}),I.forEach(function(k){d.planets[k.id]=k}),O.planets=I,O.children=function(){return O.planets},O.weight=O.planets.reduce(function(k,L){var B;return k+((B=L.weight)!==null&&B!==void 0?B:1)},0)+((T=l[O.id].weight)!==null&&T!==void 0?T:1),O.size=function(){return O.planets.reduce(function(k,L){return k+L.size()},0)+1}});var y=s.filter(function(O,S){return!h.find(function(T){return T.id===S})&&!d.planets[S]});y.forEach(function(O){for(var S,T=c[O.originalId],P=f[T],I=-1,k=0;k-1&&P.splice(I,1),S!==void 0){var B,j={id:T,parent:S,sunId:S.sunId,weight:O.weight||1,size:function(){return 0}};n||(j.finestIndex=O.finestIndex),j.originalId=O.originalId,d.moons[T]=j,S.moons.push(j),S.weight+=j.weight,S.parent.weight+=j.weight;var z=(B=f[S.id])!==null&&B!==void 0?B:[],H=z.indexOf(T);H>-1&&z.splice(H,1)}}),f.forEach(function(O,S){if(!d.suns[S]){var T=d.planets[S]||d.moons[S];T&&f[S].forEach(function(P){var I=d.planets[P]||d.moons[P];if(I&&T.sunId!==I.sunId){var k=p[T.sunId];k.includes(I.sunId)||k.push(I.sunId)}})}});var b=[],_=0,m={};h.forEach(function(O,S){var T=O.id,P=s[T];m[T]=_,O.previousIndex=S,O.id=_,_+=1,n&&(a[T].finestIndex=O.id,P.finestIndex=O.id,O.finestIndex=O.id),b.push(P),O.planets.forEach(function(I){var k=I.id,L=s[k];m[k]=_,I.id=_,_+=1,I.sunId=O.id,n&&(a[k].finestIndex=I.id,L.finestIndex=I.id),i.sunMap[I.originalId]=O.originalId,b.push(L),I.moons.forEach(function(B){var j=B.id,z=s[j];m[j]=_,B.id=_,_+=1,B.sunId=O.id,n&&(a[j].finestIndex=B.id,z.finestIndex=B.id),i.sunMap[B.originalId]=O.originalId,b.push(z)})})});var x=[],E=[];return o.forEach(function(O,S){var T=m[S];T!==void 0&&(x[T]=O.map(function(P){return m[P]}),n&&(E[T]=O.map(function(P,I){return i.relIdMap[S][I]})))}),E!==void 0&&E.length>0&&(this.relIdMap=E),{output:{nodes:h,relationships:p,idToRel:this.graph.idToRel},sortedInput:{nodes:b,relationships:x,idToRel:this.graph.idToRel},nodeSortMap:m}}}],e&&Coe(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})(),iB=function(r,e,t){for(var n=2*Math.PI/t,i=[],a=0;a=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function aB(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0,p=Object.values(d.removes).length>0,g=Object.values(d.updates),y=ey(g);(h||p||y)&&(i.shouldUpdate=!0,i.checkForUpdates())}var b=f.channels[nu];if(f.version!==void 0&&b){var _=Object.values(b.adds).length>0,m=Object.values(b.removes).length>0;(_||m)&&(i.shouldUpdate=!0,i.checkForUpdates())}})),this.setData({nodes:c.items,rels:f.items}),this.state=a,this.dpr=window.devicePixelRatio||1},e=[{key:"setOptions",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(t){var i=t.intelWorkaround,a=t.enableVerlet,o=a===void 0||a;n&&(this.intelWorkaround=i,this.enableVerlet=o);var s=this.enableVerlet?.25:100;this.simulationStopVelocitySquared=s*s,this.gravity=25,this.force=0}}},{key:"setData",value:function(t){var n=EP(t.nodes),i=n.nodeIdToIndex,a=n.nodeIndexToId;return this.nodeIdToIndex=i,this.nodeIndexToId=a,this.numNodes=t.nodes.length,this.flatRelationshipKeys=Sw(t.rels),this.solarMerger=new nB(t,i),this.solarMerger.coarsenTo(1),this.subGraphs=this.solarMerger.subGraphs,this.nodeSortMap=this.solarMerger.nodeSortMap,this.setupSprings(this.subGraphs[0]),this.setupSize(this.subGraphs[0]),this.setupPhysics(),this.firstUpdate=!0,this.curPhysData=0,this.shouldUpdate=!0,this.iterationCount=0,this.subGraphs[0]}},{key:"update",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=this.gl;if(this.checkForUpdates(t),!this.shouldUpdate)return n.bindFramebuffer(n.FRAMEBUFFER,this.getPhysData(0).frameBuffer),n.readPixels(0,0,Cr,Cr,n.RGBA,n.FLOAT,this.physPositions),!1;n.disable(n.BLEND);for(var i=this.nodeVariation/(this.numNodes||1)>.3,a=this.getScaleNumber(this.iterationCount),o=this.subGraphs?this.subGraphs.length:0,s=this.getPhysData(0).texture,u=o-1;u>0;u--){var l=this.subGraphs[u].nodes.length,c=u===o-1;this.apprxRepForceShader.use(),this.apprxRepForceShader.setUniform("u_physData",s),this.apprxRepForceShader.setUniform("u_clusterData",this.levelsClusterTexture[u]),this.apprxRepForceShader.setUniform("u_finestIndexes",this.levelsFinestIndexTexture[u]),this.apprxRepForceShader.setUniform("u_prevForce",c?this.initalLevelTexture:this.levelsData[u+1].texture),this.apprxRepForceShader.setUniform("u_numNodes",l),this.apprxRepForceShader.setUniform("u_iterationMultiplier",a),this.apprxRepForceShader.setUniform("u_baseLength",this.getBaseLength(l)),this.apprxRepForceShader.setUniform("u_isTopLevel",c?1:0),this.vaoExt.bindVertexArrayOES(this.physSmallVao),n.bindFramebuffer(n.FRAMEBUFFER,this.levelsData[u].frameBuffer),n.viewport(0,0,Rf,Rf),n.drawArrays(n.TRIANGLE_STRIP,0,4),this.vaoExt.bindVertexArrayOES(null)}if(this.collisionDetectionMultiplier=0,this.collisionDetectionMultiplier=i?Math.min(this.iterationCount/Math.min(this.numNodes,300),1):1,this.force=o<=1?this.initalLevelTexture:this.levelsData[1].texture,this.physShader.use(),this.physShader.setUniform("u_prevForce",o<=1?this.initalLevelTexture:this.levelsData[1].texture),this.physShader.setUniform("u_connections",this.springTexture),this.physShader.setUniform("u_sizeTexture",this.sizeTexture),this.physShader.setUniform("u_connectionOffsets",this.offsetTexture),this.physShader.setUniform("u_physData",s),this.physShader.setUniform("u_pinnedNodes",this.pinTexture),this.physShader.setUniform("u_iterationMultiplier",a),this.physShader.setUniform("u_curIteration",this.iterationCount),this.physShader.setUniform("u_numNodes",this.numNodes),this.physShader.setUniform("u_clusterData",this.levelsClusterTexture[0]),this.physShader.setUniform("u_collisionMultiplier",this.collisionDetectionMultiplier),this.physShader.setUniform("u_baseLength",this.getBaseLength()),this.firstUpdate=!1,this.vaoExt.bindVertexArrayOES(this.physVao),n.bindFramebuffer(n.FRAMEBUFFER,this.getPhysData(1).frameBuffer),n.viewport(0,0,Cr,Cr),n.drawArrays(n.TRIANGLE_STRIP,0,4),this.vaoExt.bindVertexArrayOES(null),this.useReadpixelWorkaround?this.doReadpixelWorkaround():(n.bindFramebuffer(n.FRAMEBUFFER,this.getPhysData(0).frameBuffer),n.readPixels(0,0,Cr,Cr,n.RGBA,n.FLOAT,this.physPositions)),this.curPhysData=(this.curPhysData+1)%this.physData.length,this.iterationCount+=1,this.numNodes<2)this.shouldUpdate=!1,this.iterationCount=0;else if(this.iterationCount%5==0){var f=this.iterationCount<300,d=f?this.getMaxSpeedSquared():this.getMedianSpeedSquared(this.addedNodes);this.lastSpeedValues.push(d),this.rollingAvgGraphSpeed=this.lastSpeedValues.reduce(function(g,y){return g+y},0)/this.lastSpeedValues.length;var h=f&&d>=this.rollingAvgGraphSpeed,p=this.simulationStopVelocitySquared&&this.rollingAvgGraphSpeed20&&this.lastSpeedValues.shift(),!h&&p===!0&&this.iterationCount>2&&this.terminateUpdate()}return this.shouldUpdate}},{key:"terminateUpdate",value:function(){bi.info("Cooling down after ".concat(this.iterationCount," iterations at graph speed of ").concat(Math.sqrt(this.rollingAvgGraphSpeed))),this.shouldUpdate=!1,this.iterationCount=0,this.rollingAvgGraphSpeed=0,this.lastSpeedValues=[],this.addedNodes=null,this.nodeVariation=0}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate}},{key:"getComputing",value:function(){return!1}},{key:"getNodePositions",value:function(t){var n=[];if(this.useReadpixelWorkaround){var i,a=eb(t);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=this.nodeIdToIndex[o.id],u=o.id,l=void 0,c=void 0;s!==void 0&&(l=this.workaroundData[0].dataFloat[s],c=this.workaroundData[1].dataFloat[s]),n.push({id:u,x:l,y:c})}}catch(_){a.e(_)}finally{a.f()}}else{var f,d=eb(t);try{for(d.s();!(f=d.n()).done;){var h=f.value,p=this.nodeIdToIndex[h.id],g=h.id,y=void 0,b=void 0;p!==void 0&&(y=this.physPositions[4*p+0],b=this.physPositions[4*p+1]),n.push({id:g,x:y,y:b})}}catch(_){d.e(_)}finally{d.f()}}return n}},{key:"reheat",value:function(t){this.setupSize(this.subGraphs[0]),this.shouldUpdate=!0,this.iterationCount=0,this.nodeVariation=t.nodes.length}},{key:"updateNodes",value:function(t){var n=this.gl,i=new Set;n.bindTexture(n.TEXTURE_2D,this.getPhysData().texture);var a,o=eb(t);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=this.nodeIdToIndex[s.id];if(s.x!==void 0&&s.y!==void 0){tb[0]=s.x,tb[1]=s.y,tb[2]=0,tb[3]=0;var l=u%Cr,c=(u-l)/Cr;n.texSubImage2D(n.TEXTURE_2D,0,l,c,1,1,n.RGBA,n.FLOAT,tb),this.useReadpixelWorkaround?(this.workaroundData[0].dataFloat[u]=s.x,this.workaroundData[1].dataFloat[u]=s.y):(this.physPositions[4*u+0]=s.x,this.physPositions[4*u+1]=s.y)}s.pinned!==void 0&&(this.pinData[u]=s.pinned?255:0),Object.keys(s).forEach(function(f){return i.add(f)})}}catch(f){o.e(f)}finally{o.f()}i.has("pinned")&&(n.bindTexture(n.TEXTURE_2D,this.pinTexture),n.texSubImage2D(n.TEXTURE_2D,0,0,0,Cr,Cr,n.ALPHA,n.UNSIGNED_BYTE,this.pinData)),(i.has("x")||i.has("y")||i.has("size"))&&(this.shouldUpdate=!0,this.iterationCount=0)}},{key:"addRemoveData",value:function(t,n,i){var a=this.gl;this.numNodes=t.nodes.length,this.physShader.use(),this.physShader.setUniform("u_numNodes",this.numNodes),this.physShader.setUniform("u_baseLength",this.getBaseLength());var o=EP(t.nodes).nodeIdToIndex,s=new nB(t,o);s.coarsenTo(1);var u=s.subGraphs[0],l=this.subGraphs[0],c=function(W){return l.nodes.findIndex(function($){return $.originalId===W})},f=Object.values(n.adds),d=Object.values(n.removes);this.addedNodes=f.length>0?{}:null,this.nodeVariation=f.length+d.length;for(var h=function(W){return!!n.adds[W]},p=3*Math.sqrt(t.nodes.length),g={x:0,y:0},y=u.nodes.length,b=new Uint8Array(65536),_=0;_0||d.length>0)&&(a.bindTexture(a.TEXTURE_2D,this.pinTexture),a.texSubImage2D(a.TEXTURE_2D,0,0,0,Cr,Cr,a.ALPHA,a.UNSIGNED_BYTE,this.pinData));var H=Sw(t.rels),q=this.hasRelationshipFlatMapChanged(H,i);return this.shouldUpdate=this.nodeVariation>0||q,this.iterationCount=0,this.flatRelationshipKeys=H,this.setupPhysicsForCoarse(),this.subGraphs[0]}},{key:"destroy",value:function(){var t=this;this.gl.deleteBuffer(this.physVbo),this.gl.deleteBuffer(this.physSmallVbo),this.vaoExt.deleteVertexArrayOES(this.physVao),this.vaoExt.deleteVertexArrayOES(this.physSmallVao),this.vaoExt.deleteVertexArrayOES(this.updateVao),this.vaoExt.deleteVertexArrayOES(this.workaroundVao),this.physData.forEach(function(n){t.gl.deleteFramebuffer(n.frameBuffer),t.gl.deleteTexture(n.texture)}),this.levelsData.forEach(function(n){t.gl.deleteFramebuffer(n.frameBuffer),t.gl.deleteTexture(n.texture)}),this.levelsClusterTexture.forEach(function(n){t.gl.deleteTexture(n)}),this.levelsFinestIndexTexture.forEach(function(n){t.gl.deleteTexture(n)}),this.gl.deleteTexture(this.initalLevelTexture),this.gl.deleteTexture(this.sizeTexture),this.gl.deleteTexture(this.offsetTexture),this.gl.deleteTexture(this.springTexture),this.gl.deleteTexture(this.pinTexture),this.gl.deleteTexture(this.updateTexture),this.apprxRepForceShader!==void 0&&this.apprxRepForceShader.remove(),this.updateShader!==void 0&&this.updateShader.remove(),this.physShader!==void 0&&this.physShader.remove(),this.physPositions=null,this.gl=null,this.stateDisposers.forEach(function(n){n()}),this.state.nodes.removeChannel(nu),this.state.rels.removeChannel(nu)}},{key:"hasRelationshipFlatMapChanged",value:function(t,n){if(t.size!==this.flatRelationshipKeys.size)return!0;var i=!1,a=Object.values(n.adds),o=Object.values(n.removes);if(a.length>0||o.length>0){var s,u=eb(Sw(a));try{for(u.s();!(s=u.n()).done;){var l=s.value;if(!this.flatRelationshipKeys.has(l)){i=!0;break}}}catch(h){u.e(h)}finally{u.f()}if(!i){var c,f=eb(Sw(o));try{for(f.s();!(c=f.n()).done;){var d=c.value;if(!t.has(d)){i=!0;break}}}catch(h){f.e(h)}finally{f.f()}}}return i}},{key:"dumpTexture",value:function(t,n,i){var a=this.gl;bi.info("--- Dumping texture ",i),a.bindFramebuffer(a.FRAMEBUFFER,t),a.readPixels(0,0,Cr,Cr,a.RGBA,a.FLOAT,this.physPositions);for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:function(i,a,o){return o+Math.pow(10,6)*Math.pow(i-120,-1.7)};return t===0?0:t<300?200+-1/Math.pow(10,5)*3*Math.pow(Math.abs(t-200+12),3):n(t,200,10)}},{key:"getBaseLength",value:function(t){if(t===void 0||t===this.numNodes)return 100*this.dpr;var n=Math.pow(this.averageNodeSize/2,2)*Math.PI,i=this.numNodes/t*n;return(100+Math.sqrt(i/Math.PI)/2/t)*this.dpr}},{key:"checkForUpdates",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=this.state,i=n.nodes,a=n.rels,o={nodes:i.items,rels:a.items},s=Object.values(i.channels[nu].adds).length>0,u=Object.values(a.channels[nu].adds).length>0,l=Object.values(i.channels[nu].removes).length>0,c=Object.values(a.channels[nu].removes).length>0,f=Object.values(i.channels[nu].updates),d=s||u||l||c;d&&this.addRemoveData(o,{adds:i.channels[nu].adds,removes:i.channels[nu].removes},{adds:a.channels[nu].adds,removes:a.channels[nu].removes}),t&&d?(this.updateNodes(o.nodes),this.reheat(o)):f.length>0&&(this.updateNodes(f),ey(f)&&this.reheat(o)),i.clearChannel(nu),a.clearChannel(nu)}},{key:"getNodePosition",value:function(t){return this.useReadpixelWorkaround?{x:this.workaroundData[0].dataFloat[t],y:this.workaroundData[1].dataFloat[t]}:{x:this.physPositions[4*t+0],y:this.physPositions[4*t+1]}}},{key:"getMaxSpeedSquared",value:function(){var t=0;if(this.useReadpixelWorkaround)for(var n=0;nt&&(t=o)}else for(var s=0;st&&(t=c)}return t}},{key:"getMedianSpeedSquared",value:function(t){var n=[];if(this.useReadpixelWorkaround)for(var i=0;i0&&arguments[0]!==void 0?arguments[0]:0;return this.physData[(this.curPhysData+t)%this.physData.length]}},{key:"newTexture",value:function(t,n,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.FLOAT,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:t.RGBA,s=t.createTexture();return t.bindTexture(t.TEXTURE_2D,s),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,o,i,i,0,o,a,n),s}},{key:"newFramebuffer",value:function(t,n){var i=t.createFramebuffer();return t.bindFramebuffer(t.FRAMEBUFFER,i),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,0),i}},{key:"checkCompatibility",value:function(t){function n(l){throw new Mq(l)}t||n("Could not initialize WebGL"),t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS)===0&&n("Vertex shader texture access not available"),t.getExtension("OES_texture_float")||n("OES_texture_float extension not available"),t.getExtension("WEBGL_color_buffer_float")||(bi.info("gl.readPixels doesnt work for float texture, activating workaround"),this.useReadpixelWorkaround=!0);var i=t.getParameter(t.MAX_TEXTURE_SIZE),a=Math.max(Cr,K0);if(i0&&s.forEach(function(u){return bi.trace(u)})}},{key:"adjustToGlSize",value:function(t){return t*this.dpr*2.5}},{key:"setupSize",value:function(t){for(var n=new Float32Array(65536),i=t.nodes,a=i.length,o=0,s=0;s=0;c--){var f=c===n-1?[]:this.subGraphs[c+1].nodes;f.length===0?this.subGraphs[c].nodes.forEach(function(y,b){var _=y.placement?y.placement.x:a*(Math.random()-.5),m=y.placement?y.placement.y:a*(Math.random()-.5);l(y.finestIndex===void 0?b:y.finestIndex,_,m,o)}):f.forEach(function(y){var b=y.finestIndex,_=o[4*y.finestIndex],m=o[4*y.finestIndex+1],x=iB({x:_,y:m},10,y.planets.length+1);b+=1,y.planets.forEach(function(E,O){var S=x[O];l(b+=1,S.x,S.y,o);var T=iB({x:S.x,y:S.y},10,E.moons.length+1);E.moons.forEach(function(P,I){var k=T[I];l(b+=1,k.x,k.y,o)})})})}this.physData=[];for(var d=0;d<2;d++){var h=this.newTexture(t,d===0?o:s,Cr),p=this.newFramebuffer(t,h);this.physData.push({texture:h,frameBuffer:p})}var g=this.enableVerlet?`precision mediump float; +}`;function Fb(r){return Fb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fb(r)}function rB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function nB(r){for(var e=1;et&&n.relationships.some(function(s){return s.length>0});){var o=this.coarsen(n,a===0);if(a===0&&(this.nodeSortMap=o.nodeSortMap),this.subGraphs.push(o.sortedInput),(n=o.output).relationships.length===0||n.relationships.every(function(s){return s.length===0})||i===n.nodes.length)break;i=n.nodes.length,a+=1}return this.subGraphs.push(n),n}},{key:"coarsenBy",value:function(t){for(var n=t,i=this.graph,a=i.nodes.length,o=n;n>0;){var s=this.coarsen(i,n===o);if(this.subGraphs.push(s.sortedInput),(i=s.output).relationships.length===0||i.relationships.every(function(u){return u.length===0})||a===i.nodes.length)break;a=i.nodes.length,n-=1}return this.subGraphs.push(i),i}},{key:"coarsen",value:function(t,n){var i=this,a=t.nodes,o=t.relationships,s=n?a.map(function(O,S){return nB(nB({},O),{},{originalId:O.id,id:S})}):a,u=s.map(function(O,S){return S}),l={},c={};s.forEach(function(O,S){l[S]=O,c[O.originalId]=S});for(var f=o.map(function(O){return O.slice()}),d={suns:{},planets:{},moons:{}},h=[],p=[],g=function(){var O=u[0];u.splice(u.indexOf(O),1),o[O].forEach(function(P){var I=u.indexOf(P);I>=0&&u.splice(I,1);var k=-1,L=f[P];L.forEach(function(B,j){var z=u.indexOf(B);z>=0?u.splice(z,1):B===O&&(k=j)}),k>-1&&L.splice(k,1)});var S={id:O};if(n)S.originalId=l[O].originalId;else{var T=l[O];S.finestIndex=T.finestIndex,S.originalId=T.originalId}h.push(S),d.suns[O]=S};u.length>0;)g();h.forEach(function(O,S){p[S]=[]}),h.forEach(function(O,S){var T,P={},I=[];o[O.id].forEach(function(k){if(k!==O.id&&!P[k]){var L=l[k],B={id:k,parent:O,sunId:S,moons:[],weight:L.weight||1,children:function(){return B.moons},size:function(){return B.moons.length+1}};n||(B.finestIndex=L.finestIndex),B.originalId=L.originalId,I.push(B),P[k]=!0}}),I.forEach(function(k){d.planets[k.id]=k}),O.planets=I,O.children=function(){return O.planets},O.weight=O.planets.reduce(function(k,L){var B;return k+((B=L.weight)!==null&&B!==void 0?B:1)},0)+((T=l[O.id].weight)!==null&&T!==void 0?T:1),O.size=function(){return O.planets.reduce(function(k,L){return k+L.size()},0)+1}});var y=s.filter(function(O,S){return!h.find(function(T){return T.id===S})&&!d.planets[S]});y.forEach(function(O){for(var S,T=c[O.originalId],P=f[T],I=-1,k=0;k-1&&P.splice(I,1),S!==void 0){var B,j={id:T,parent:S,sunId:S.sunId,weight:O.weight||1,size:function(){return 0}};n||(j.finestIndex=O.finestIndex),j.originalId=O.originalId,d.moons[T]=j,S.moons.push(j),S.weight+=j.weight,S.parent.weight+=j.weight;var z=(B=f[S.id])!==null&&B!==void 0?B:[],H=z.indexOf(T);H>-1&&z.splice(H,1)}}),f.forEach(function(O,S){if(!d.suns[S]){var T=d.planets[S]||d.moons[S];T&&f[S].forEach(function(P){var I=d.planets[P]||d.moons[P];if(I&&T.sunId!==I.sunId){var k=p[T.sunId];k.includes(I.sunId)||k.push(I.sunId)}})}});var b=[],_=0,m={};h.forEach(function(O,S){var T=O.id,P=s[T];m[T]=_,O.previousIndex=S,O.id=_,_+=1,n&&(a[T].finestIndex=O.id,P.finestIndex=O.id,O.finestIndex=O.id),b.push(P),O.planets.forEach(function(I){var k=I.id,L=s[k];m[k]=_,I.id=_,_+=1,I.sunId=O.id,n&&(a[k].finestIndex=I.id,L.finestIndex=I.id),i.sunMap[I.originalId]=O.originalId,b.push(L),I.moons.forEach(function(B){var j=B.id,z=s[j];m[j]=_,B.id=_,_+=1,B.sunId=O.id,n&&(a[j].finestIndex=B.id,z.finestIndex=B.id),i.sunMap[B.originalId]=O.originalId,b.push(z)})})});var x=[],E=[];return o.forEach(function(O,S){var T=m[S];T!==void 0&&(x[T]=O.map(function(P){return m[P]}),n&&(E[T]=O.map(function(P,I){return i.relIdMap[S][I]})))}),E!==void 0&&E.length>0&&(this.relIdMap=E),{output:{nodes:h,relationships:p,idToRel:this.graph.idToRel},sortedInput:{nodes:b,relationships:x,idToRel:this.graph.idToRel},nodeSortMap:m}}}],e&&Coe(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})(),aB=function(r,e,t){for(var n=2*Math.PI/t,i=[],a=0;a=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function oB(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0,p=Object.values(d.removes).length>0,g=Object.values(d.updates),y=ey(g);(h||p||y)&&(i.shouldUpdate=!0,i.checkForUpdates())}var b=f.channels[nu];if(f.version!==void 0&&b){var _=Object.values(b.adds).length>0,m=Object.values(b.removes).length>0;(_||m)&&(i.shouldUpdate=!0,i.checkForUpdates())}})),this.setData({nodes:c.items,rels:f.items}),this.state=a,this.dpr=window.devicePixelRatio||1},e=[{key:"setOptions",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(t){var i=t.intelWorkaround,a=t.enableVerlet,o=a===void 0||a;n&&(this.intelWorkaround=i,this.enableVerlet=o);var s=this.enableVerlet?.25:100;this.simulationStopVelocitySquared=s*s,this.gravity=25,this.force=0}}},{key:"setData",value:function(t){var n=EP(t.nodes),i=n.nodeIdToIndex,a=n.nodeIndexToId;return this.nodeIdToIndex=i,this.nodeIndexToId=a,this.numNodes=t.nodes.length,this.flatRelationshipKeys=Sw(t.rels),this.solarMerger=new iB(t,i),this.solarMerger.coarsenTo(1),this.subGraphs=this.solarMerger.subGraphs,this.nodeSortMap=this.solarMerger.nodeSortMap,this.setupSprings(this.subGraphs[0]),this.setupSize(this.subGraphs[0]),this.setupPhysics(),this.firstUpdate=!0,this.curPhysData=0,this.shouldUpdate=!0,this.iterationCount=0,this.subGraphs[0]}},{key:"update",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=this.gl;if(this.checkForUpdates(t),!this.shouldUpdate)return n.bindFramebuffer(n.FRAMEBUFFER,this.getPhysData(0).frameBuffer),n.readPixels(0,0,Cr,Cr,n.RGBA,n.FLOAT,this.physPositions),!1;n.disable(n.BLEND);for(var i=this.nodeVariation/(this.numNodes||1)>.3,a=this.getScaleNumber(this.iterationCount),o=this.subGraphs?this.subGraphs.length:0,s=this.getPhysData(0).texture,u=o-1;u>0;u--){var l=this.subGraphs[u].nodes.length,c=u===o-1;this.apprxRepForceShader.use(),this.apprxRepForceShader.setUniform("u_physData",s),this.apprxRepForceShader.setUniform("u_clusterData",this.levelsClusterTexture[u]),this.apprxRepForceShader.setUniform("u_finestIndexes",this.levelsFinestIndexTexture[u]),this.apprxRepForceShader.setUniform("u_prevForce",c?this.initalLevelTexture:this.levelsData[u+1].texture),this.apprxRepForceShader.setUniform("u_numNodes",l),this.apprxRepForceShader.setUniform("u_iterationMultiplier",a),this.apprxRepForceShader.setUniform("u_baseLength",this.getBaseLength(l)),this.apprxRepForceShader.setUniform("u_isTopLevel",c?1:0),this.vaoExt.bindVertexArrayOES(this.physSmallVao),n.bindFramebuffer(n.FRAMEBUFFER,this.levelsData[u].frameBuffer),n.viewport(0,0,Rf,Rf),n.drawArrays(n.TRIANGLE_STRIP,0,4),this.vaoExt.bindVertexArrayOES(null)}if(this.collisionDetectionMultiplier=0,this.collisionDetectionMultiplier=i?Math.min(this.iterationCount/Math.min(this.numNodes,300),1):1,this.force=o<=1?this.initalLevelTexture:this.levelsData[1].texture,this.physShader.use(),this.physShader.setUniform("u_prevForce",o<=1?this.initalLevelTexture:this.levelsData[1].texture),this.physShader.setUniform("u_connections",this.springTexture),this.physShader.setUniform("u_sizeTexture",this.sizeTexture),this.physShader.setUniform("u_connectionOffsets",this.offsetTexture),this.physShader.setUniform("u_physData",s),this.physShader.setUniform("u_pinnedNodes",this.pinTexture),this.physShader.setUniform("u_iterationMultiplier",a),this.physShader.setUniform("u_curIteration",this.iterationCount),this.physShader.setUniform("u_numNodes",this.numNodes),this.physShader.setUniform("u_clusterData",this.levelsClusterTexture[0]),this.physShader.setUniform("u_collisionMultiplier",this.collisionDetectionMultiplier),this.physShader.setUniform("u_baseLength",this.getBaseLength()),this.firstUpdate=!1,this.vaoExt.bindVertexArrayOES(this.physVao),n.bindFramebuffer(n.FRAMEBUFFER,this.getPhysData(1).frameBuffer),n.viewport(0,0,Cr,Cr),n.drawArrays(n.TRIANGLE_STRIP,0,4),this.vaoExt.bindVertexArrayOES(null),this.useReadpixelWorkaround?this.doReadpixelWorkaround():(n.bindFramebuffer(n.FRAMEBUFFER,this.getPhysData(0).frameBuffer),n.readPixels(0,0,Cr,Cr,n.RGBA,n.FLOAT,this.physPositions)),this.curPhysData=(this.curPhysData+1)%this.physData.length,this.iterationCount+=1,this.numNodes<2)this.shouldUpdate=!1,this.iterationCount=0;else if(this.iterationCount%5==0){var f=this.iterationCount<300,d=f?this.getMaxSpeedSquared():this.getMedianSpeedSquared(this.addedNodes);this.lastSpeedValues.push(d),this.rollingAvgGraphSpeed=this.lastSpeedValues.reduce(function(g,y){return g+y},0)/this.lastSpeedValues.length;var h=f&&d>=this.rollingAvgGraphSpeed,p=this.simulationStopVelocitySquared&&this.rollingAvgGraphSpeed20&&this.lastSpeedValues.shift(),!h&&p===!0&&this.iterationCount>2&&this.terminateUpdate()}return this.shouldUpdate}},{key:"terminateUpdate",value:function(){bi.info("Cooling down after ".concat(this.iterationCount," iterations at graph speed of ").concat(Math.sqrt(this.rollingAvgGraphSpeed))),this.shouldUpdate=!1,this.iterationCount=0,this.rollingAvgGraphSpeed=0,this.lastSpeedValues=[],this.addedNodes=null,this.nodeVariation=0}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate}},{key:"getComputing",value:function(){return!1}},{key:"getNodePositions",value:function(t){var n=[];if(this.useReadpixelWorkaround){var i,a=eb(t);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=this.nodeIdToIndex[o.id],u=o.id,l=void 0,c=void 0;s!==void 0&&(l=this.workaroundData[0].dataFloat[s],c=this.workaroundData[1].dataFloat[s]),n.push({id:u,x:l,y:c})}}catch(_){a.e(_)}finally{a.f()}}else{var f,d=eb(t);try{for(d.s();!(f=d.n()).done;){var h=f.value,p=this.nodeIdToIndex[h.id],g=h.id,y=void 0,b=void 0;p!==void 0&&(y=this.physPositions[4*p+0],b=this.physPositions[4*p+1]),n.push({id:g,x:y,y:b})}}catch(_){d.e(_)}finally{d.f()}}return n}},{key:"reheat",value:function(t){this.setupSize(this.subGraphs[0]),this.shouldUpdate=!0,this.iterationCount=0,this.nodeVariation=t.nodes.length}},{key:"updateNodes",value:function(t){var n=this.gl,i=new Set;n.bindTexture(n.TEXTURE_2D,this.getPhysData().texture);var a,o=eb(t);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=this.nodeIdToIndex[s.id];if(s.x!==void 0&&s.y!==void 0){tb[0]=s.x,tb[1]=s.y,tb[2]=0,tb[3]=0;var l=u%Cr,c=(u-l)/Cr;n.texSubImage2D(n.TEXTURE_2D,0,l,c,1,1,n.RGBA,n.FLOAT,tb),this.useReadpixelWorkaround?(this.workaroundData[0].dataFloat[u]=s.x,this.workaroundData[1].dataFloat[u]=s.y):(this.physPositions[4*u+0]=s.x,this.physPositions[4*u+1]=s.y)}s.pinned!==void 0&&(this.pinData[u]=s.pinned?255:0),Object.keys(s).forEach(function(f){return i.add(f)})}}catch(f){o.e(f)}finally{o.f()}i.has("pinned")&&(n.bindTexture(n.TEXTURE_2D,this.pinTexture),n.texSubImage2D(n.TEXTURE_2D,0,0,0,Cr,Cr,n.ALPHA,n.UNSIGNED_BYTE,this.pinData)),(i.has("x")||i.has("y")||i.has("size"))&&(this.shouldUpdate=!0,this.iterationCount=0)}},{key:"addRemoveData",value:function(t,n,i){var a=this.gl;this.numNodes=t.nodes.length,this.physShader.use(),this.physShader.setUniform("u_numNodes",this.numNodes),this.physShader.setUniform("u_baseLength",this.getBaseLength());var o=EP(t.nodes).nodeIdToIndex,s=new iB(t,o);s.coarsenTo(1);var u=s.subGraphs[0],l=this.subGraphs[0],c=function(W){return l.nodes.findIndex(function($){return $.originalId===W})},f=Object.values(n.adds),d=Object.values(n.removes);this.addedNodes=f.length>0?{}:null,this.nodeVariation=f.length+d.length;for(var h=function(W){return!!n.adds[W]},p=3*Math.sqrt(t.nodes.length),g={x:0,y:0},y=u.nodes.length,b=new Uint8Array(65536),_=0;_0||d.length>0)&&(a.bindTexture(a.TEXTURE_2D,this.pinTexture),a.texSubImage2D(a.TEXTURE_2D,0,0,0,Cr,Cr,a.ALPHA,a.UNSIGNED_BYTE,this.pinData));var H=Sw(t.rels),q=this.hasRelationshipFlatMapChanged(H,i);return this.shouldUpdate=this.nodeVariation>0||q,this.iterationCount=0,this.flatRelationshipKeys=H,this.setupPhysicsForCoarse(),this.subGraphs[0]}},{key:"destroy",value:function(){var t=this;this.gl.deleteBuffer(this.physVbo),this.gl.deleteBuffer(this.physSmallVbo),this.vaoExt.deleteVertexArrayOES(this.physVao),this.vaoExt.deleteVertexArrayOES(this.physSmallVao),this.vaoExt.deleteVertexArrayOES(this.updateVao),this.vaoExt.deleteVertexArrayOES(this.workaroundVao),this.physData.forEach(function(n){t.gl.deleteFramebuffer(n.frameBuffer),t.gl.deleteTexture(n.texture)}),this.levelsData.forEach(function(n){t.gl.deleteFramebuffer(n.frameBuffer),t.gl.deleteTexture(n.texture)}),this.levelsClusterTexture.forEach(function(n){t.gl.deleteTexture(n)}),this.levelsFinestIndexTexture.forEach(function(n){t.gl.deleteTexture(n)}),this.gl.deleteTexture(this.initalLevelTexture),this.gl.deleteTexture(this.sizeTexture),this.gl.deleteTexture(this.offsetTexture),this.gl.deleteTexture(this.springTexture),this.gl.deleteTexture(this.pinTexture),this.gl.deleteTexture(this.updateTexture),this.apprxRepForceShader!==void 0&&this.apprxRepForceShader.remove(),this.updateShader!==void 0&&this.updateShader.remove(),this.physShader!==void 0&&this.physShader.remove(),this.physPositions=null,this.gl=null,this.stateDisposers.forEach(function(n){n()}),this.state.nodes.removeChannel(nu),this.state.rels.removeChannel(nu)}},{key:"hasRelationshipFlatMapChanged",value:function(t,n){if(t.size!==this.flatRelationshipKeys.size)return!0;var i=!1,a=Object.values(n.adds),o=Object.values(n.removes);if(a.length>0||o.length>0){var s,u=eb(Sw(a));try{for(u.s();!(s=u.n()).done;){var l=s.value;if(!this.flatRelationshipKeys.has(l)){i=!0;break}}}catch(h){u.e(h)}finally{u.f()}if(!i){var c,f=eb(Sw(o));try{for(f.s();!(c=f.n()).done;){var d=c.value;if(!t.has(d)){i=!0;break}}}catch(h){f.e(h)}finally{f.f()}}}return i}},{key:"dumpTexture",value:function(t,n,i){var a=this.gl;bi.info("--- Dumping texture ",i),a.bindFramebuffer(a.FRAMEBUFFER,t),a.readPixels(0,0,Cr,Cr,a.RGBA,a.FLOAT,this.physPositions);for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:function(i,a,o){return o+Math.pow(10,6)*Math.pow(i-120,-1.7)};return t===0?0:t<300?200+-1/Math.pow(10,5)*3*Math.pow(Math.abs(t-200+12),3):n(t,200,10)}},{key:"getBaseLength",value:function(t){if(t===void 0||t===this.numNodes)return 100*this.dpr;var n=Math.pow(this.averageNodeSize/2,2)*Math.PI,i=this.numNodes/t*n;return(100+Math.sqrt(i/Math.PI)/2/t)*this.dpr}},{key:"checkForUpdates",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=this.state,i=n.nodes,a=n.rels,o={nodes:i.items,rels:a.items},s=Object.values(i.channels[nu].adds).length>0,u=Object.values(a.channels[nu].adds).length>0,l=Object.values(i.channels[nu].removes).length>0,c=Object.values(a.channels[nu].removes).length>0,f=Object.values(i.channels[nu].updates),d=s||u||l||c;d&&this.addRemoveData(o,{adds:i.channels[nu].adds,removes:i.channels[nu].removes},{adds:a.channels[nu].adds,removes:a.channels[nu].removes}),t&&d?(this.updateNodes(o.nodes),this.reheat(o)):f.length>0&&(this.updateNodes(f),ey(f)&&this.reheat(o)),i.clearChannel(nu),a.clearChannel(nu)}},{key:"getNodePosition",value:function(t){return this.useReadpixelWorkaround?{x:this.workaroundData[0].dataFloat[t],y:this.workaroundData[1].dataFloat[t]}:{x:this.physPositions[4*t+0],y:this.physPositions[4*t+1]}}},{key:"getMaxSpeedSquared",value:function(){var t=0;if(this.useReadpixelWorkaround)for(var n=0;nt&&(t=o)}else for(var s=0;st&&(t=c)}return t}},{key:"getMedianSpeedSquared",value:function(t){var n=[];if(this.useReadpixelWorkaround)for(var i=0;i0&&arguments[0]!==void 0?arguments[0]:0;return this.physData[(this.curPhysData+t)%this.physData.length]}},{key:"newTexture",value:function(t,n,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.FLOAT,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:t.RGBA,s=t.createTexture();return t.bindTexture(t.TEXTURE_2D,s),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,o,i,i,0,o,a,n),s}},{key:"newFramebuffer",value:function(t,n){var i=t.createFramebuffer();return t.bindFramebuffer(t.FRAMEBUFFER,i),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,0),i}},{key:"checkCompatibility",value:function(t){function n(l){throw new Mq(l)}t||n("Could not initialize WebGL"),t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS)===0&&n("Vertex shader texture access not available"),t.getExtension("OES_texture_float")||n("OES_texture_float extension not available"),t.getExtension("WEBGL_color_buffer_float")||(bi.info("gl.readPixels doesnt work for float texture, activating workaround"),this.useReadpixelWorkaround=!0);var i=t.getParameter(t.MAX_TEXTURE_SIZE),a=Math.max(Cr,K0);if(i0&&s.forEach(function(u){return bi.trace(u)})}},{key:"adjustToGlSize",value:function(t){return t*this.dpr*2.5}},{key:"setupSize",value:function(t){for(var n=new Float32Array(65536),i=t.nodes,a=i.length,o=0,s=0;s=0;c--){var f=c===n-1?[]:this.subGraphs[c+1].nodes;f.length===0?this.subGraphs[c].nodes.forEach(function(y,b){var _=y.placement?y.placement.x:a*(Math.random()-.5),m=y.placement?y.placement.y:a*(Math.random()-.5);l(y.finestIndex===void 0?b:y.finestIndex,_,m,o)}):f.forEach(function(y){var b=y.finestIndex,_=o[4*y.finestIndex],m=o[4*y.finestIndex+1],x=aB({x:_,y:m},10,y.planets.length+1);b+=1,y.planets.forEach(function(E,O){var S=x[O];l(b+=1,S.x,S.y,o);var T=aB({x:S.x,y:S.y},10,E.moons.length+1);E.moons.forEach(function(P,I){var k=T[I];l(b+=1,k.x,k.y,o)})})})}this.physData=[];for(var d=0;d<2;d++){var h=this.newTexture(t,d===0?o:s,Cr),p=this.newFramebuffer(t,h);this.physData.push({texture:h,frameBuffer:p})}var g=this.enableVerlet?`precision mediump float; uniform sampler2D u_physData; uniform sampler2D u_connections; @@ -1235,27 +1235,27 @@ gl_FragColor = encode_float(data); } `),this.workaroundShader.use(),this.workaroundShader.setUniform("u_projection",this.physProjection),this.workaroundVao=this.vaoExt.createVertexArrayOES(),this.vaoExt.bindVertexArrayOES(this.workaroundVao),t.bindBuffer(t.ARRAY_BUFFER,this.physVbo),this.workaroundShader.setAttributePointer("a_position",2,0,2),this.vaoExt.bindVertexArrayOES(null),this.workaroundData=[];for(var n=0;n<4;n++){var i=new Uint8Array(262144),a=this.newTexture(t,null,Cr,t.UNSIGNED_BYTE),o=this.newFramebuffer(t,a);this.workaroundData.push({dataByte:i,dataFloat:new Float32Array(i.buffer),texture:a,frameBuffer:o})}}},{key:"doReadpixelWorkaround",value:function(){for(var t=this.gl,n=0;n<4;n++){var i=this.workaroundData[n];t.bindFramebuffer(t.FRAMEBUFFER,i.frameBuffer),t.viewport(0,0,Cr,Cr),this.workaroundShader.use(),this.workaroundShader.setUniform("u_index",n),this.workaroundShader.setUniform("u_physData",this.getPhysData(0).texture),this.vaoExt.bindVertexArrayOES(this.workaroundVao),t.drawArrays(t.TRIANGLE_STRIP,0,4),this.vaoExt.bindVertexArrayOES(null),t.readPixels(0,0,Cr,Cr,t.RGBA,t.UNSIGNED_BYTE,i.dataByte)}}},{key:"definePhysicsArrays",value:function(){this.physData=[],this.levelsData=[],this.levelsClusterTexture=[],this.levelsFinestIndexTexture=[]}}],e&&Aoe(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function zb(r){return zb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zb(r)}function Tw(r){return(function(e){if(Array.isArray(e))return SP(e)})(r)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(r)||(function(e,t){if(e){if(typeof e=="string")return SP(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SP(e,t):void 0}})(r)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function SP(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0&&arguments[0],n=this.state,i=n.nodes,a=n.rels,o=i.channels[im],s=a.channels[im],u=Object.values(o.adds).length,l=Object.values(s.adds).length,c=Object.values(o.adds).map(function(P){return P.id}),f=Object.values(s.adds).map(function(P){return P.id}),d=new Set(Object.keys(o.adds)),h=new Set(Object.keys(s.adds));if(i.clearChannel(im),a.clearChannel(im),this.currentLayoutType===Cw&&this.enableCytoscape&&i.items.length<=100&&u<100&&u>0&&l>0){var p=i.items.map(function(P){return P.id}),g=new Set([].concat(Tw(p),Tw(c))),y=a.items.map(function(P){return P.id}),b=new Set([].concat(Tw(y),Tw(f)));if(g.size<=100&&b.size<=300){var _=(function(P,I,k,L){var B,j=new Set(P),z=Z0(new Set(I));try{for(z.s();!(B=z.n()).done;){var H=B.value,q=L.idToItem[H];if(q){var W=q.from,$=q.to;j.add(W),j.add($)}}}catch(pe){z.e(pe)}finally{z.f()}var J,X=(function(pe){var fe,se={},de={},ge=Z0(pe);try{for(ge.s();!(fe=ge.n()).done;){for(var Oe=fe.value,ke=Oe.from,De=Oe.to,Ne="".concat(ke,"-").concat(De),Ce="".concat(De,"-").concat(ke),Y=0,Q=[Ne,Ce];Y0;){var se=fe.shift();if(re[se]=k.idToItem[se],Z[se]!==void 0){var de,ge=Z0(Z[se]);try{for(ge.s();!(de=ge.n()).done;){var Oe=de.value;if(!re[Oe]){fe.push(Oe);var ke=ue["".concat(se,"-").concat(Oe)];if(ke){var De,Ne=Z0(ke);try{for(Ne.s();!(De=Ne.n()).done;){var Ce=De.value;ne[Ce.id]||(ne[Ce.id]=Ce)}}catch(Y){Ne.e(Y)}finally{Ne.f()}}}}}catch(Y){ge.e(Y)}finally{ge.f()}}}},ce=Z0(j);try{for(ce.s();!(J=ce.n()).done;)le(J.value)}catch(pe){ce.e(pe)}finally{ce.f()}return{connectedNodes:re,connectedRels:ne}})(d,h,i,a),m=_.connectedNodes,x=_.connectedRels,E=Object.values(m),O=Object.values(x),S=E.length,T=O.length;S===d.size&&T===h.size&&(h.size>0||d.size>0)?(this.setLayout(Aw),this.coseBilkentLayout.update(!0,i.items,a.items)):T>0&&h.size/T>.25&&(this.setLayout(Aw),this.coseBilkentLayout.update(!0,E,O))}}this.physLayout.update(t),this.coseBilkentLayout.update(t)}},{key:"getShouldUpdate",value:function(){return this.currentLayout.getShouldUpdate()}},{key:"getComputing",value:function(){return this.currentLayout.getComputing()}},{key:"updateNodes",value:function(t){this.setLayout(Cw),this.physLayout.updateNodes(t)}},{key:"getNodePositions",value:function(t){return this.currentLayout.getNodePositions(t)}},{key:"terminateUpdate",value:function(){this.physLayout.terminateUpdate(),this.coseBilkentLayout.terminateUpdate()}},{key:"destroy",value:function(){this.physLayout.destroy(),this.coseBilkentLayout.destroy()}}],e&&Poe(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function qb(r){return qb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qb(r)}function oB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Doe(r){for(var e=1;e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function uB(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||t){var n=this.state,i=n.nodes,a=n.rels,o=Object.values(i.channels[ch].adds).length>0,s=Object.values(a.channels[ch].adds).length>0,u=Object.values(i.channels[ch].removes).length>0,l=Object.values(a.channels[ch].removes).length>0;(o||s||u||l)&&this.layout(i.items,i.idToItem,i.idToPosition),i.clearChannel(ch),a.clearChannel(ch)}this.shouldUpdate=!1}},{key:"layout",value:function(t,n,i){var a,o=(a=t)!==void 0?$u(a):a;if(!(0,Hi.isEmpty)(o)){for(var s={},u=0;u=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function dB(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||t){var n=this.state,i=n.nodes,a=n.rels,o=Object.values(i.channels[fh].adds).length>0,s=Object.values(a.channels[fh].adds).length>0,u=Object.values(i.channels[fh].removes).length>0,l=Object.values(a.channels[fh].removes).length>0;(o||s||u||l)&&(this.layout(i.items,i.idToItem,i.idToPosition,a.items),i.idToPosition=this.positions),i.clearChannel(fh),a.clearChannel(fh)}this.shouldUpdate=!1}},{key:"layout",value:function(t,n,i,a){var o,s=(o=t)?$u(o):o;if(!(0,Hi.isEmpty)(s)){for(var u=s.length,l=Math.ceil(Math.sqrt(u)),c=new Array(u),f=0,d=0;d0,c=Object.values(u.removes).length>0,f=Object.values(u.updates),d=ey(f);i.shouldUpdate=i.shouldUpdate||l||c||d}if(s.version!==void 0){var h=s.channels[Ll],p=Object.values(h.adds).length>0,g=Object.values(h.removes).length>0;i.shouldUpdate=i.shouldUpdate||p||g}})],i.shouldUpdate=!0,i.oldComputing=!1,i.computing=!1,i.workersDisabled=n.state.disableWebWorkers,i.setOptions(n),i.worker=Tq("HierarchicalLayout",i.workersDisabled),i.pendingLayoutData=null,i.layout(o.items,o.idToItem,o.idToPosition,s.items),i}return(function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&r5(n,i)})(r,WD),e=r,t=[{key:"setOptions",value:function(n){if(n!==void 0&&(function(u){return Object.keys(u).every(function(l){return Boe.has(l)})})(n)){var i=n.direction,a=i===void 0?JM:i,o=n.packing,s=o===void 0?e5:o;Object.keys(Voe).includes(a)&&(this.directionChanged=this.direction&&this.direction!==a,this.direction=a),Hoe.includes(s)&&(this.packingChanged=this.packing&&this.packing!==s,this.packing=s),this.shouldUpdate=this.shouldUpdate||this.directionChanged||this.packingChanged}}},{key:"update",value:function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||n){var i=this.state,a=i.nodes,o=i.rels,s=this.directionChanged,u=this.packingChanged,l=Object.values(a.channels[Ll].adds).length>0,c=Object.values(o.channels[Ll].adds).length>0,f=Object.values(a.channels[Ll].removes).length>0,d=Object.values(o.channels[Ll].removes).length>0,h=Object.values(a.channels[Ll].updates),p=ey(h);(n||l||c||f||d||s||u||p)&&this.layout(a.items,a.idToItem,a.idToPosition,o.items),a.clearChannel(Ll),o.clearChannel(Ll),this.directionChanged=!1,this.packingChanged=!1}(function(g,y,b){var _=t5(Mm(g.prototype),"update",b);return typeof _=="function"?function(m){return _.apply(b,m)}:_})(r,0,this)([]),this.shouldUpdate=!1,this.oldComputing=this.computing}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate||this.shouldUpdateAnimator}},{key:"getComputing",value:function(){return this.computing}},{key:"layout",value:function(n,i,a,o){var s=this;if(this.worker){var u=Pw(n).map(function(b){return b.html,OP(b,Woe)}),l=Pw(i),c={};Object.keys(l).forEach(function(b){var _=l[b],m=(_.html,OP(_,Yoe));c[b]=m});var f=Pw(o).map(function(b){return b.captionHtml,OP(b,Xoe)}),d=Pw(a),h=this.direction,p=this.packing,g=window.devicePixelRatio,y={nodes:u,nodeIds:c,idToPosition:d,rels:f,direction:h,packing:p,pixelRatio:g,forcedDelay:0};this.computing?this.pendingLayoutData=y:(this.worker.port.onmessage=function(b){var _=b.data,m=_.positions,x=_.parents,E=_.waypoints;s.computing&&(s.positions=m),s.parents=x,s.state.setWaypoints(E),s.pendingLayoutData!==null?(s.worker.port.postMessage(s.pendingLayoutData),s.pendingLayoutData=null):s.computing=!1,s.shouldUpdate=!0,s.startAnimation()},this.computing=!0,this.worker.port.postMessage(y))}else bi.info("Hierarchical layout code not yet initialised.")}},{key:"terminateUpdate",value:function(){var n,i;this.computing=!1,this.shouldUpdate=!1,(n=this.state.nodes)===null||n===void 0||n.clearChannel(Ll),(i=this.state.rels)===null||i===void 0||i.clearChannel(Ll)}},{key:"destroy",value:function(){var n;this.stateDisposers.forEach(function(i){i()}),this.state.nodes.removeChannel(Ll),this.state.rels.removeChannel(Ll),(n=this.worker)===null||n===void 0||n.port.close()}}],t&&$oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})(),Zoe=io(3269),Uq=io.n(Zoe);function Qx(r){return Qx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qx(r)}var Qoe=/^\s+/,Joe=/\s+$/;function xr(r,e){if(e=e||{},(r=r||"")instanceof xr)return r;if(!(this instanceof xr))return new xr(r,e);var t=(function(n){var i,a,o,s={r:0,g:0,b:0},u=1,l=null,c=null,f=null,d=!1,h=!1;return typeof n=="string"&&(n=(function(p){p=p.replace(Qoe,"").replace(Joe,"").toLowerCase();var g,y=!1;if(n5[p])p=n5[p],y=!0;else if(p=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(g=_d.rgb.exec(p))?{r:g[1],g:g[2],b:g[3]}:(g=_d.rgba.exec(p))?{r:g[1],g:g[2],b:g[3],a:g[4]}:(g=_d.hsl.exec(p))?{h:g[1],s:g[2],l:g[3]}:(g=_d.hsla.exec(p))?{h:g[1],s:g[2],l:g[3],a:g[4]}:(g=_d.hsv.exec(p))?{h:g[1],s:g[2],v:g[3]}:(g=_d.hsva.exec(p))?{h:g[1],s:g[2],v:g[3],a:g[4]}:(g=_d.hex8.exec(p))?{r:ef(g[1]),g:ef(g[2]),b:ef(g[3]),a:mB(g[4]),format:y?"name":"hex8"}:(g=_d.hex6.exec(p))?{r:ef(g[1]),g:ef(g[2]),b:ef(g[3]),format:y?"name":"hex"}:(g=_d.hex4.exec(p))?{r:ef(g[1]+""+g[1]),g:ef(g[2]+""+g[2]),b:ef(g[3]+""+g[3]),a:mB(g[4]+""+g[4]),format:y?"name":"hex8"}:!!(g=_d.hex3.exec(p))&&{r:ef(g[1]+""+g[1]),g:ef(g[2]+""+g[2]),b:ef(g[3]+""+g[3]),format:y?"name":"hex"}})(n)),Qx(n)=="object"&&(nv(n.r)&&nv(n.g)&&nv(n.b)?(i=n.r,a=n.g,o=n.b,s={r:255*Da(i,255),g:255*Da(a,255),b:255*Da(o,255)},d=!0,h=String(n.r).substr(-1)==="%"?"prgb":"rgb"):nv(n.h)&&nv(n.s)&&nv(n.v)?(l=Ob(n.s),c=Ob(n.v),s=(function(p,g,y){p=6*Da(p,360),g=Da(g,100),y=Da(y,100);var b=Math.floor(p),_=p-b,m=y*(1-g),x=y*(1-_*g),E=y*(1-(1-_)*g),O=b%6;return{r:255*[y,x,m,m,E,y][O],g:255*[E,y,y,x,m,m][O],b:255*[m,m,E,y,y,x][O]}})(n.h,l,c),d=!0,h="hsv"):nv(n.h)&&nv(n.s)&&nv(n.l)&&(l=Ob(n.s),f=Ob(n.l),s=(function(p,g,y){var b,_,m;function x(S,T,P){return P<0&&(P+=1),P>1&&(P-=1),P<1/6?S+6*(T-S)*P:P<.5?T:P<2/3?S+(T-S)*(2/3-P)*6:S}if(p=Da(p,360),g=Da(g,100),y=Da(y,100),g===0)b=_=m=y;else{var E=y<.5?y*(1+g):y+g-y*g,O=2*y-E;b=x(O,E,p+1/3),_=x(O,E,p),m=x(O,E,p-1/3)}return{r:255*b,g:255*_,b:255*m}})(n.h,l,f),d=!0,h="hsl"),n.hasOwnProperty("a")&&(u=n.a)),u=zq(u),{ok:d,format:n.format||h,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u}})(r);this._originalInput=r,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}function hB(r,e,t){r=Da(r,255),e=Da(e,255),t=Da(t,255);var n,i,a=Math.max(r,e,t),o=Math.min(r,e,t),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){case r:n=(e-t)/u+(e>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(xr(n));return a}function cse(r,e){e=e||6;for(var t=xr(r).toHsv(),n=t.h,i=t.s,a=t.v,o=[],s=1/e;e--;)o.push(xr({h:n,s:i,v:a})),a=(a+s)%1;return o}xr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(299*r.r+587*r.g+114*r.b)/1e3},getLuminance:function(){var r,e,t,n=this.toRgb();return r=n.r/255,e=n.g/255,t=n.b/255,.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},setAlpha:function(r){return this._a=zq(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=vB(this._r,this._g,this._b);return{h:360*r.h,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=vB(this._r,this._g,this._b),e=Math.round(360*r.h),t=Math.round(100*r.s),n=Math.round(100*r.v);return this._a==1?"hsv("+e+", "+t+"%, "+n+"%)":"hsva("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var r=hB(this._r,this._g,this._b);return{h:360*r.h,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=hB(this._r,this._g,this._b),e=Math.round(360*r.h),t=Math.round(100*r.s),n=Math.round(100*r.l);return this._a==1?"hsl("+e+", "+t+"%, "+n+"%)":"hsla("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(r){return pB(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return(function(e,t,n,i,a){var o=[Td(Math.round(e).toString(16)),Td(Math.round(t).toString(16)),Td(Math.round(n).toString(16)),Td(qq(i))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")})(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Da(this._r,255))+"%",g:Math.round(100*Da(this._g,255))+"%",b:Math.round(100*Da(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*Da(this._r,255))+"%, "+Math.round(100*Da(this._g,255))+"%, "+Math.round(100*Da(this._b,255))+"%)":"rgba("+Math.round(100*Da(this._r,255))+"%, "+Math.round(100*Da(this._g,255))+"%, "+Math.round(100*Da(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(fse[pB(this._r,this._g,this._b,!0)]||!1)},toFilter:function(r){var e="#"+gB(this._r,this._g,this._b,this._a),t=e,n=this._gradientType?"GradientType = 1, ":"";if(r){var i=xr(r);t="#"+gB(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+t+")"},toString:function(r){var e=!!r;r=r||this._format;var t=!1,n=this._a<1&&this._a>=0;return e||!n||r!=="hex"&&r!=="hex6"&&r!=="hex3"&&r!=="hex4"&&r!=="hex8"&&r!=="name"?(r==="rgb"&&(t=this.toRgbString()),r==="prgb"&&(t=this.toPercentageRgbString()),r!=="hex"&&r!=="hex6"||(t=this.toHexString()),r==="hex3"&&(t=this.toHexString(!0)),r==="hex4"&&(t=this.toHex8String(!0)),r==="hex8"&&(t=this.toHex8String()),r==="name"&&(t=this.toName()),r==="hsl"&&(t=this.toHslString()),r==="hsv"&&(t=this.toHsvString()),t||this.toHexString()):r==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return xr(this.toString())},_applyModification:function(r,e){var t=r.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(nse,arguments)},brighten:function(){return this._applyModification(ise,arguments)},darken:function(){return this._applyModification(ase,arguments)},desaturate:function(){return this._applyModification(ese,arguments)},saturate:function(){return this._applyModification(tse,arguments)},greyscale:function(){return this._applyModification(rse,arguments)},spin:function(){return this._applyModification(ose,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(lse,arguments)},complement:function(){return this._applyCombination(sse,arguments)},monochromatic:function(){return this._applyCombination(cse,arguments)},splitcomplement:function(){return this._applyCombination(use,arguments)},triad:function(){return this._applyCombination(yB,[3])},tetrad:function(){return this._applyCombination(yB,[4])}},xr.fromRatio=function(r,e){if(Qx(r)=="object"){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[n]=n==="a"?r[n]:Ob(r[n]));r=t}return xr(r,e)},xr.equals=function(r,e){return!(!r||!e)&&xr(r).toRgbString()==xr(e).toRgbString()},xr.random=function(){return xr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},xr.mix=function(r,e,t){t=t===0?0:t||50;var n=xr(r).toRgb(),i=xr(e).toRgb(),a=t/100;return xr({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},xr.readability=function(r,e){var t=xr(r),n=xr(e);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},xr.isReadable=function(r,e,t){var n,i,a,o,s,u=xr.readability(r,e);switch(i=!1,(o=((a=(a=t)||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&o!=="AAA"&&(o="AA"),(s=(a.size||"small").toLowerCase())!=="small"&&s!=="large"&&(s="small"),(n={level:o,size:s}).level+n.size){case"AAsmall":case"AAAlarge":i=u>=4.5;break;case"AAlarge":i=u>=3;break;case"AAAsmall":i=u>=7}return i},xr.mostReadable=function(r,e,t){var n,i,a,o,s=null,u=0;i=(t=t||{}).includeFallbackColors,a=t.level,o=t.size;for(var l=0;lu&&(u=n,s=xr(e[l]));return xr.isReadable(r,s,{level:a,size:o})||!i?s:(t.includeFallbackColors=!1,xr.mostReadable(r,["#fff","#000"],t))};var n5=xr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},fse=xr.hexNames=(function(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e})(n5);function zq(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Da(r,e){(function(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1})(r)&&(r="100%");var t=(function(n){return typeof n=="string"&&n.indexOf("%")!=-1})(r);return r=Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),Math.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function fE(r){return Math.min(1,Math.max(0,r))}function ef(r){return parseInt(r,16)}function Td(r){return r.length==1?"0"+r:""+r}function Ob(r){return r<=1&&(r=100*r+"%"),r}function qq(r){return Math.round(255*parseFloat(r)).toString(16)}function mB(r){return ef(r)/255}var np,Mw,Dw,_d=(Mw="[\\s|\\(]+("+(np="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+np+")[,|\\s]+("+np+")\\s*\\)?",Dw="[\\s|\\(]+("+np+")[,|\\s]+("+np+")[,|\\s]+("+np+")[,|\\s]+("+np+")\\s*\\)?",{CSS_UNIT:new RegExp(np),rgb:new RegExp("rgb"+Mw),rgba:new RegExp("rgba"+Dw),hsl:new RegExp("hsl"+Mw),hsla:new RegExp("hsla"+Dw),hsv:new RegExp("hsv"+Mw),hsva:new RegExp("hsva"+Dw),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function nv(r){return!!_d.CSS_UNIT.exec(r)}var i5=function(r){return xr.mostReadable(r,[HD,"#FFFFFF"]).toString()},I1=function(r){return Uq().get.rgb(r)},kw=function(r){var e=new ArrayBuffer(4),t=new Uint32Array(e),n=new Uint8Array(e),i=I1(r);return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=255*i[3],t[0]},Iw=function(r){return[(e=I1(r))[0]/255,e[1]/255,e[2]/255];var e},bB={selected:{rings:[{widthFactor:.05,color:hq},{widthFactor:.1,color:vq}],shadow:{width:10,opacity:1,color:dq}},default:{rings:[]}},_B={selected:{rings:[{color:hq,width:2},{color:vq,width:4}],shadow:{width:18,opacity:1,color:dq}},default:{rings:[]}},TP=.75,CP={noPan:!1,outOnly:!1,animated:!0};function Hb(r){return Hb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hb(r)}function AP(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0?r.captions:r.caption&&r.caption.length>0?[{value:r.caption}]:[]},ip=function(r,e,t){(0,Hi.isNil)(r)||((function(n){return typeof n=="string"&&I1(n)!==null})(r)?e(r):Sq().warn("Invalid color string for ".concat(t,":"),r))},Gq=function(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$n();r.width=e*n,r.height=t*n,r.style.width="".concat(e,"px"),r.style.height="".concat(t,"px")},Vq=function(r){bi.warn("Error: WebGL context lost - visualization will stop working!",r),a5!==void 0&&a5(r)},fx=function(r){var e=r.parentElement,t=e.getBoundingClientRect(),n=t.width,i=t.height;n!==0||i!==0||e.isConnected||(n=parseInt(e.style.width,10)||0,i=parseInt(e.style.height,10)||0),Gq(r,n,i)},PP=function(r,e){var t=document.createElement("canvas");return Object.assign(t.style,UM),r!==void 0&&(r.appendChild(t),fx(t)),(function(n,i){a5=i,n.addEventListener("webglcontextlost",Vq)})(t,e),t},om=function(r){r.width=0,r.height=0,r.remove()},xB=function(r){var e={antialias:!0},t=r.getContext("webgl",e);return t===null&&(t=r.getContext("experimental-webgl",e)),(function(n){return n instanceof WebGLRenderingContext})(t)?t:null},EB=function(r){r.canvas.removeEventListener("webglcontextlost",Vq);var e=r.getExtension("WEBGL_lose_context");e==null||e.loseContext()},o5=new Map,Tb=function(r,e){var t=r.font,n=o5.get(t);n===void 0&&(n=new Map,o5.set(t,n));var i=n.get(e);return i===void 0&&(i=r.measureText(e).width,n.set(e,i)),i};function Wb(r){return Wb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wb(r)}function SB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function hse(r,e){for(var t=0;t0&&(s=(i=KD(u,l,n))1&&arguments[1]!==void 0&&arguments[1],i=this.getOrCreateEntry(t),a=n?"inverted":"image",o=i[a];return o===void 0&&(o=this.loadImage(t),i[a]=o),this.drawIfNeeded(o,n),o.canvas}},{key:"getOrCreateEntry",value:function(t){return this.cache[t]===void 0&&(this.cache[t]={}),this.cache[t]}},{key:"invertCanvas",value:function(t){for(var n=t.getImageData(0,0,Pf,Pf),i=n.data,a=0;a<4096;a++){var o=4*a;i[o]^=255,i[o+1]^=255,i[o+2]^=255}t.putImageData(n,0,0)}},{key:"loadImage",value:function(t){var n=document.createElement("canvas");n.width=Pf,n.height=Pf;var i=new Image;return i.src=t,i.crossOrigin="anonymous",{canvas:n,image:i,drawn:!1}}},{key:"drawIfNeeded",value:function(t,n){var i=t.image,a=t.canvas;if(!t.drawn&&i.complete){var o=a.getContext("2d");try{o.drawImage(i,0,0,Pf,Pf)}catch(s){bi.error("Failed to draw image",i.src,s),o.beginPath(),o.strokeStyle="black",o.rect(0,0,Pf,Pf),o.moveTo(0,0),o.lineTo(Pf,Pf),o.moveTo(0,Pf),o.lineTo(Pf,0),o.stroke(),o.closePath()}n&&this.invertCanvas(o),t.drawn=!0}}},{key:"waitForImages",value:function(){for(var t=[],n=0,i=Object.values(this.cache);n0?Promise.all(t).then(function(){}):Promise.resolve()}}],e&&pse(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();const yse=gse;function Xb(r){return Xb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xb(r)}function OB(r,e){if(r){if(typeof r=="string")return u5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u5(r,e):void 0}}function u5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0)){var i=(function(a,o){return(function(s){if(Array.isArray(s))return s})(a)||(function(s,u){var l=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(l!=null){var c,f,d,h,p=[],g=!0,y=!1;try{if(d=(l=l.call(s)).next,u!==0)for(;!(g=(c=d.call(l)).done)&&(p.push(c.value),p.length!==u);g=!0);}catch(b){y=!0,f=b}finally{try{if(!g&&l.return!=null&&(h=l.return(),Object(h)!==h))return}finally{if(y)throw f}}return p}})(a,o)||OB(a,o)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(this.relArray(),1)[0];this.fromId=i.from,this.toId=i.to}}},{key:"size",value:function(){return this.rels.size}},{key:"relArray",value:function(){return Array.from(this.rels.values())}},{key:"maxFontSize",value:function(){if(this.size()===0)return 1;var t=this.relArray().map(function(n){return(0,Hi.isNumber)(n.captionSize)?n.captionSize:1});return Math.max.apply(Math,(function(n){return(function(i){if(Array.isArray(i))return u5(i)})(n)||(function(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)})(n)||OB(n)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(t))}},{key:"relIsOppositeDirection",value:function(t){var n=t.from,i=t.to,a=this.fromId,o=this.toId;return n!==a&&i!==o||n===o&&i===a}},{key:"indexOf",value:function(t){var n=t.id,i=Array.from(this.rels.keys());return this.rels.has(n)?i.indexOf(n):-1}},{key:"getRel",value:function(t){var n=this.relArray();return t<0||t>=n.length?null:n[t]}},{key:"setWaypoints",value:function(t){this.waypointPath=t}},{key:"setAngles",value:function(t){this.angles=t}}],e&&mse(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})(),TB=cq,CB=2*Math.PI/50,AB=.1*Math.PI,dE=1.5,l5=wb;function $b(r){return $b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$b(r)}function RB(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Xq(r))||e){t&&(r=t);var n=0,i=function(){};return{s:i,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function PB(r){return(function(e){if(Array.isArray(e))return c5(e)})(r)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(r)||Xq(r)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Xq(r,e){if(r){if(typeof r=="string")return c5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c5(r,e):void 0}}function c5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t=0;t--){var n=void 0,i=void 0;t===0?(i=r[r.length-1],n=r[t]-r[r.length-1]+2*Math.PI):(i=r[t-1],n=r[t]-r[t-1]),e.push({size:n,start:i})}e.sort(function(a,o){return o.size-a.size})}return e},xse=function(r,e){for(;e>r.length||r[0].size>2*r[e-1].size;)r.push({size:r[0].size/2,start:r[0].start}),r.push({size:r[0].size/2,start:r[0].start+r[0].size/2}),r.shift(),r.sort(function(t,n){return n.size-t.size});return r},Ese=(function(){return r=function t(n,i){(function(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),MB(this,"bundles",void 0),MB(this,"nodeToBundles",void 0),this.bundles={},this.nodeToBundles={};var a=n.reduce(function(o,s){return o[s.id]=s,o},{});this.updateData(a,{},{},i)},e=[{key:"getBundle",value:function(t){var n=this.bundles,i=this.nodeToBundles,a=this.generatePairId(t.from,t.to),o=n[a];return o===void 0&&(o=new bse(a,t.from,t.to),n[a]=o,i[t.from]===void 0&&(i[t.from]=[]),i[t.to]===void 0&&(i[t.to]=[]),i[t.from].push(o),i[t.to].push(o)),o}},{key:"updateData",value:function(t,n,i,a){var o,s=this.bundles,u=this.nodeToBundles,l=function(E,O){var S=u[O].findIndex(function(T){return T===E});S!==-1&&u[O].splice(S,1),u[O].length===0&&delete u[O]},c=[].concat(PB(Object.values(t)),PB(Object.values(i))),f=Object.values(n),d=RB(c);try{for(d.s();!(o=d.n()).done;){var h=o.value;this.getBundle(h).insert(h)}}catch(E){d.e(E)}finally{d.f()}for(var p=0,g=f;pr.length)&&(e=r.length);for(var t=0,n=Array(e);t0?((s=a[0].width)!==null&&s!==void 0?s:0)*c:0,h=o&&o>1?o*c/2:1,p=9*h,g=7*h,y=i?d*Math.sqrt(1+2*p/g*(2*p/g)):0;return{x:r.x-Math.cos(f)*(y/4),y:r.y-Math.sin(f)*(y/4),angle:(e+u)%l,flip:(e+l)%l0&&arguments[0]!==void 0?arguments[0]:[])[0])===null||e===void 0?void 0:e.width)!==null&&r!==void 0?r:0)*$n()*dE},Qq=function(r,e,t,n,i,a){var o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"top";if(r.length===0)return{x:0,y:0,angle:0};if(r.length===1)return{x:r[0].x,y:r[0].y,angle:0};var s,u,l,c,f,d=Math.PI/2,h=Math.floor(r.length/2),p=e.x>t.x,g=r[h];if(1&~r.length?(s=r[p?h:h-1],u=r[p?h-1:h],l=(s.x+u.x)/2,c=(s.y+u.y)/2,f=Math.atan2(u.y-s.y,u.x-s.x)):(s=r[p?h+1:h-1],u=r[p?h-1:h+1],n?(l=(g.x+(s.x+u.x)/2)/2,c=(g.y+(s.y+u.y)/2)/2,f=p?Math.atan2(e.y-t.y,e.x-t.x):Math.atan2(t.y-e.y,t.x-e.x)):(e2(g,s)>e2(g,u)?u=g:s=g,l=(s.x+u.x)/2,c=(s.y+u.y)/2,f=Math.atan2(u.y-s.y,u.x-s.x))),i){var y=r2(a),b=o==="bottom"?1:-1;l+=Math.cos(f+d)*y*b,c+=Math.sin(f+d)*y*b}return{x:l,y:c,angle:f}},kB=function(r,e,t,n,i,a){var o={x:(r.x+e.x)/2,y:(r.y+e.y)/2},s={x:r.x,y:r.y},u={x:e.x,y:e.y},l=new Wu(u,s),c=(function(d,h){var p=0;return d&&(p+=d),h&&(p-=h),p})(n,t);o.x+=c/2*l.unit.x,o.y+=c/2*l.unit.y;var f=a.size()/2-a.indexOf(i);return o.x+=f*l.unit.x,o.y+=f*l.unit.y,o},IB=function(r){var e=$n(),t=r.size,n=r.selected;return((t??ha)+4+(n===!0?4:0))*e},n2=function(r,e,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(t.x===n.x&&t.y===n.y)return[{x:t.x,y:t.y}];var o=function(z){var H=arguments.length>1&&arguments[1]!==void 0&&arguments[1],q=z.norm.x,W=z.norm.y;return H?{x:-q,y:-W}:z.norm},s=$n(),u=e.indexOf(r),l=(e.size()-1)/2,c=u>l,f=Math.abs(u-l),d=i?17*e.maxFontSize():8,h=(e.size()-1)*d*s,p=(function(z,H,q,W,$,J,X){var Z,ue=arguments.length>7&&arguments[7]!==void 0&&arguments[7],re=$n(),ne=z.size(),le=ne>1,ce=z.relIsOppositeDirection(J),pe=ce?q:H,fe=ce?H:q,se=z.waypointPath,de=se==null?void 0:se.points,ge=se==null?void 0:se.from,Oe=se==null?void 0:se.to,ke=Nw(pe,ge)&&Nw(fe,Oe)||Nw(fe,ge)&&Nw(pe,Oe),De=ke?de[1]:null,Ne=ke?de[de.length-2]:null,Ce=IB(pe),Y=IB(fe),Q=function(mr,ur){return Math.atan2(mr.y-ur.y,mr.x-ur.x)},ie=Math.max(Math.PI,Ose/(ne/2)),we=le?W*ie*(X?1:-1)/((Z=pe.size)!==null&&Z!==void 0?Z:ha):0,Ee=Q(ke?De:fe,pe),Me=ke?Q(fe,Ne):Ee,Ie=function(mr,ur,sn,Fr){return{x:mr.x+Math.cos(ur)*sn*(Fr?-1:1),y:mr.y+Math.sin(ur)*sn*(Fr?-1:1)}},Ye=function(mr,ur){return Ie(pe,Ee+mr,ur,!1)},ot=function(mr,ur){return Ie(fe,Me-mr,ur,!0)},mt=function(mr,ur){return{x:mr.x+(ur.x-mr.x)/2,y:mr.y+(ur.y-mr.y)/2}},wt=function(mr,ur){return Math.sqrt((mr.x-ur.x)*(mr.x-ur.x)+(mr.y-ur.y)*(mr.y-ur.y))*re},Mt=Ye(we,Ce),Dt=ot(we,Y),vt=le?Ye(0,Ce):null,tt=le?ot(0,Y):null,_e=200*re,Ue=[];if(ke){var Qe=wt(Mt,De)<_e;if(le&&!Qe){var Ze=mt(vt,De);Ue.push(new Wu(Mt,Ze)),Ue.push(new Wu(Ze,De))}else Ue.push(new Wu(Mt,De));for(var nt=2;nt2*(30*re+Math.min(Ce,Y)))if(ue){var Rt=kB(pe,fe,Ce,Y,J,z);Ue.push(new Wu(Mt,Rt)),Ue.push(new Wu(Rt,Dt))}else{var jt=W*$,Yt=30+Ce,sr=Math.sqrt(Yt*Yt+jt*jt),Ut=30+Y,Rr=Math.sqrt(Ut*Ut+jt*jt),Xt=Ye(0,sr),Vr=ot(0,Rr);Ue.push(new Wu(Mt,Xt)),Ue.push(new Wu(Xt,Vr)),Ue.push(new Wu(Vr,Dt))}else if(Lt>(Ce+Y)/2){var Br=kB(pe,fe,Ce,Y,J,z);Ue.push(new Wu(Mt,Br)),Ue.push(new Wu(Br,Dt))}else Ue.push(new Wu(Mt,Dt))}return Ue})(e,t,n,f,d,r,c,a),g=[],y=p[0],b=o(y,c);g.push({x:y.p1.x+b.x,y:y.p1.y+b.y});for(var _=1;_4&&arguments[4]!==void 0&&arguments[4],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5];return N1(t,n)?t.id===n.id?(function(o,s,u){for(var l=t2(o,s,u),c={left:1/0,top:1/0,right:-1/0,bottom:-1/0},f=["startPoint","endPoint","apexPoint","control1Point","control2Point"],d=0;dc.right&&(c.right=p),gc.bottom&&(c.bottom=g)}return c})(r,t,e):(function(o,s,u,l,c,f){var d,h={left:1/0,top:1/0,right:-1/0,bottom:-1/0},p=(function(_,m){var x=typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(!x){if(Array.isArray(_)||(x=(function(I,k){if(I){if(typeof I=="string")return DB(I,k);var L={}.toString.call(I).slice(8,-1);return L==="Object"&&I.constructor&&(L=I.constructor.name),L==="Map"||L==="Set"?Array.from(I):L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?DB(I,k):void 0}})(_))||m){x&&(_=x);var E=0,O=function(){};return{s:O,n:function(){return E>=_.length?{done:!0}:{done:!1,value:_[E++]}},e:function(I){throw I},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S,T=!0,P=!1;return{s:function(){x=x.call(_)},n:function(){var I=x.next();return T=I.done,I},e:function(I){P=!0,S=I},f:function(){try{T||x.return==null||x.return()}finally{if(P)throw S}}}})(n2(o,s,u,l,c,f));try{for(p.s();!(d=p.n()).done;){var g=d.value,y=g.x,b=g.y;yh.right&&(h.right=y),bh.bottom&&(h.bottom=b)}}catch(_){p.e(_)}finally{p.f()}return h})(r,e,t,n,i,a):null},Jq=function(r,e){var t,n=r.selected?dE:1;return((t=r.width)!==null&&t!==void 0?t:e)*n*$n()},eG=function(r,e,t,n,i){if(r.length<2)return{tailOffset:null};var a=r[r.length-2],o=r[r.length-1],s=Math.atan2(o.y-a.y,o.x-a.x),u=t/2+n;r[r.length-1]={x:o.x-Math.cos(s)*u,y:o.y-Math.sin(s)*u};var l=null;if(e){var c=r[0],f=r[1],d=Math.atan2(f.y-c.y,f.x-c.x),h=r2(i);l={x:Math.cos(d)*h,y:Math.sin(d)*h},r[0]={x:c.x+l.x,y:c.y+l.y}}return{tailOffset:l}},tG=function(r,e,t){var n=$n(),i=n*(r>1?r/2:1),a=9*i,o=2*i,s=7*i,u=t.length>0?t[0].width*n:0,l=2*a,c=e?u*Math.sqrt(1+l/s*(l/s)):0;return{headFactor:i,headHeight:a,headChinHeight:o,headWidth:s,headSelectedAdjustment:c,headPositionOffset:2-c}},NB=function(r){return 6*r*$n()},LB=function(r,e,t){return{widthAlign:e/2*r[0],heightAlign:t/2*r[1]}},Cse=function(r){var e=r.x,t=e===void 0?0:e,n=r.y,i=n===void 0?0:n,a=r.size,o=a===void 0?ha:a;return{top:i-o,left:t-o,right:t+o,bottom:i+o}},rG=function(r,e,t,n){return(n<2||!e?1*r:.75*r)/t},nG=function(r,e,t,n,i){var a=i<2||!e;return{iconXPos:r/2,iconYPos:a?.5*r:r*(n===1?t==="center"?1.3:t==="bottom"||a?1.1:0:t==="center"?1.35:t==="bottom"||a?1.1:0)}},iG=function(r,e){return r*e},aG=function(r,e,t){var n=r/2-e*t[1];return{iconXPos:r/2-e*t[0],iconYPos:n}};function Kb(r){return Kb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kb(r)}function jB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function jl(r){for(var e=1;e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function FB(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t2&&arguments[2]!==void 0?arguments[2]:{};(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,t),kf(this,"arrowBundler",void 0),kf(this,"state",void 0),kf(this,"relationshipThreshold",void 0),kf(this,"stateDisposers",void 0),kf(this,"needsRun",void 0),kf(this,"imageCache",void 0),kf(this,"nodeVersion",void 0),kf(this,"relVersion",void 0),kf(this,"waypointVersion",void 0),kf(this,"channelId",void 0),kf(this,"activeNodes",void 0),this.state=n,this.relationshipThreshold=(a=s.relationshipThreshold)!==null&&a!==void 0?a:0,this.channelId=i,this.arrowBundler=new Ese(n.rels.items,n.waypoints.data),this.stateDisposers=[],this.needsRun=!0,this.imageCache=new yse,this.nodeVersion=n.nodes.version,this.relVersion=n.rels.version,this.waypointVersion=n.waypoints.counter,this.activeNodes=new Set,this.stateDisposers.push(this.state.autorun(function(){o.state.zoom!==void 0&&(o.needsRun=!0),o.state.panX!==void 0&&(o.needsRun=!0),o.state.panY!==void 0&&(o.needsRun=!0),o.state.nodes.version!==void 0&&(o.needsRun=!0),o.state.rels.version!==void 0&&(o.needsRun=!0),o.state.waypoints.counter>0&&(o.needsRun=!0),o.state.layout!==void 0&&(o.needsRun=!0)}))},(e=[{key:"getRelationshipsToRender",value:function(t,n,i,a){var o,s=[],u=[],l=[],c=this.arrowBundler,f=this.state,d=this.relationshipThreshold,h=f.layout,p=f.rels,g=f.nodes,y=g.idToItem,b=g.idToPosition,_=h!=="hierarchical",m=BB(p.items);try{for(m.s();!(o=m.n()).done;){var x=o.value,E=c.getBundle(x),O=jl(jl({},y[x.from]),b[x.from]),S=jl(jl({},y[x.to]),b[x.to]),T=n!==void 0?t||n>d||x.captionHtml!==void 0:t,P=!0;if(i!==void 0&&a!==void 0){var I=Tse(x,E,O,S,T,_);if(I!==null){var k,L,B,j,z,H,q=this.isBoundingBoxOffScreen(I,i,a),W=e2({x:(k=O.x)!==null&&k!==void 0?k:0,y:(L=O.y)!==null&&L!==void 0?L:0},{x:(B=S.x)!==null&&B!==void 0?B:0,y:(j=S.y)!==null&&j!==void 0?j:0}),$=$n(),J=(((z=O.size)!==null&&z!==void 0?z:ha)+((H=S.size)!==null&&H!==void 0?H:ha))*$,X=O.id!==S.id&&J>W;P=!(q||X)}else P=!1}P&&(x.disabled?u.push(jl(jl({},x),{},{fromNode:O,toNode:S,showLabel:T})):x.selected?s.push(jl(jl({},x),{},{fromNode:O,toNode:S,showLabel:T})):l.push(jl(jl({},x),{},{fromNode:O,toNode:S,showLabel:T})))}}catch(Z){m.e(Z)}finally{m.f()}return[].concat(u,l,s)}},{key:"getNodesToRender",value:function(t,n,i){var a,o=[],s=[],u=[],l=this.state.nodes.idToItem,c=BB(t);try{for(c.s();!(a=c.n()).done;){var f=a.value,d=!0;if(n!==void 0&&i!==void 0){var h=Cse(f);d=!this.isBoundingBoxOffScreen(h,n,i)}d&&(l[f.id].disabled?o.push(jl({},f)):l[f.id].selected?s.push(jl({},f)):u.push(jl({},f)))}}catch(p){c.e(p)}finally{c.f()}return[].concat(o,u,s)}},{key:"processUpdates",value:function(){var t=this.state,n=!1,i=t.nodes.channels[this.channelId],a=t.rels.channels[this.channelId],o=a.adds,s=a.removes,u=a.updates;if(this.nodeVersion0||Object.keys(s).length>0||Object.keys(u).length>0,t.rels.clearChannel(this.channelId),this.relVersion=t.rels.version),n||this.waypointVersionl+s,p=t.top>c+u;return f||h||d||p}},{key:"needsToRun",value:function(){return this.needsRun}},{key:"waitForImages",value:function(){return this.imageCache.waitForImages()}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(t){t()}),this.state.nodes.removeChannel(this.channelId),this.state.rels.removeChannel(this.channelId)}}])&&Ase(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})(),Rse=[[.04,1],[100,2]],i2=[[.8,1.1],[3,1.6],[8,2.5]],Pse=[[i2[0][0],1],[100,1.25]],Og=function(r,e){if(r.includes("rgba"))return r;if(r.includes("rgb")){var t=r.substr(r.indexOf("(")+1).replace(")","").split(",");return"rgba(".concat(t[0],",").concat(t[1],",").concat(t[2],",").concat(e,")")}var n=Uq().get.rgb(r);return n===null?r:"rgba(".concat(n[0],",").concat(n[1],",").concat(n[2],",").concat(e,")")};function DP(r,e){var t=e.find(function(i){return rr.length)&&(e=r.length);for(var t=0,n=Array(e);tr.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0&&arguments[0],n=this.state,i=n.nodes,a=n.rels,o=i.channels[im],s=a.channels[im],u=Object.values(o.adds).length,l=Object.values(s.adds).length,c=Object.values(o.adds).map(function(P){return P.id}),f=Object.values(s.adds).map(function(P){return P.id}),d=new Set(Object.keys(o.adds)),h=new Set(Object.keys(s.adds));if(i.clearChannel(im),a.clearChannel(im),this.currentLayoutType===Cw&&this.enableCytoscape&&i.items.length<=100&&u<100&&u>0&&l>0){var p=i.items.map(function(P){return P.id}),g=new Set([].concat(Tw(p),Tw(c))),y=a.items.map(function(P){return P.id}),b=new Set([].concat(Tw(y),Tw(f)));if(g.size<=100&&b.size<=300){var _=(function(P,I,k,L){var B,j=new Set(P),z=Z0(new Set(I));try{for(z.s();!(B=z.n()).done;){var H=B.value,q=L.idToItem[H];if(q){var W=q.from,$=q.to;j.add(W),j.add($)}}}catch(pe){z.e(pe)}finally{z.f()}var J,X=(function(pe){var fe,se={},de={},ge=Z0(pe);try{for(ge.s();!(fe=ge.n()).done;){for(var Oe=fe.value,ke=Oe.from,De=Oe.to,Ne="".concat(ke,"-").concat(De),Ce="".concat(De,"-").concat(ke),Y=0,Q=[Ne,Ce];Y0;){var se=fe.shift();if(re[se]=k.idToItem[se],Z[se]!==void 0){var de,ge=Z0(Z[se]);try{for(ge.s();!(de=ge.n()).done;){var Oe=de.value;if(!re[Oe]){fe.push(Oe);var ke=ue["".concat(se,"-").concat(Oe)];if(ke){var De,Ne=Z0(ke);try{for(Ne.s();!(De=Ne.n()).done;){var Ce=De.value;ne[Ce.id]||(ne[Ce.id]=Ce)}}catch(Y){Ne.e(Y)}finally{Ne.f()}}}}}catch(Y){ge.e(Y)}finally{ge.f()}}}},ce=Z0(j);try{for(ce.s();!(J=ce.n()).done;)le(J.value)}catch(pe){ce.e(pe)}finally{ce.f()}return{connectedNodes:re,connectedRels:ne}})(d,h,i,a),m=_.connectedNodes,x=_.connectedRels,E=Object.values(m),O=Object.values(x),S=E.length,T=O.length;S===d.size&&T===h.size&&(h.size>0||d.size>0)?(this.setLayout(Aw),this.coseBilkentLayout.update(!0,i.items,a.items)):T>0&&h.size/T>.25&&(this.setLayout(Aw),this.coseBilkentLayout.update(!0,E,O))}}this.physLayout.update(t),this.coseBilkentLayout.update(t)}},{key:"getShouldUpdate",value:function(){return this.currentLayout.getShouldUpdate()}},{key:"getComputing",value:function(){return this.currentLayout.getComputing()}},{key:"updateNodes",value:function(t){this.setLayout(Cw),this.physLayout.updateNodes(t)}},{key:"getNodePositions",value:function(t){return this.currentLayout.getNodePositions(t)}},{key:"terminateUpdate",value:function(){this.physLayout.terminateUpdate(),this.coseBilkentLayout.terminateUpdate()}},{key:"destroy",value:function(){this.physLayout.destroy(),this.coseBilkentLayout.destroy()}}],e&&Poe(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function qb(r){return qb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qb(r)}function sB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Doe(r){for(var e=1;e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function lB(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||t){var n=this.state,i=n.nodes,a=n.rels,o=Object.values(i.channels[ch].adds).length>0,s=Object.values(a.channels[ch].adds).length>0,u=Object.values(i.channels[ch].removes).length>0,l=Object.values(a.channels[ch].removes).length>0;(o||s||u||l)&&this.layout(i.items,i.idToItem,i.idToPosition),i.clearChannel(ch),a.clearChannel(ch)}this.shouldUpdate=!1}},{key:"layout",value:function(t,n,i){var a,o=(a=t)!==void 0?$u(a):a;if(!(0,Hi.isEmpty)(o)){for(var s={},u=0;u=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function hB(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||t){var n=this.state,i=n.nodes,a=n.rels,o=Object.values(i.channels[fh].adds).length>0,s=Object.values(a.channels[fh].adds).length>0,u=Object.values(i.channels[fh].removes).length>0,l=Object.values(a.channels[fh].removes).length>0;(o||s||u||l)&&(this.layout(i.items,i.idToItem,i.idToPosition,a.items),i.idToPosition=this.positions),i.clearChannel(fh),a.clearChannel(fh)}this.shouldUpdate=!1}},{key:"layout",value:function(t,n,i,a){var o,s=(o=t)?$u(o):o;if(!(0,Hi.isEmpty)(s)){for(var u=s.length,l=Math.ceil(Math.sqrt(u)),c=new Array(u),f=0,d=0;d0,c=Object.values(u.removes).length>0,f=Object.values(u.updates),d=ey(f);i.shouldUpdate=i.shouldUpdate||l||c||d}if(s.version!==void 0){var h=s.channels[Ll],p=Object.values(h.adds).length>0,g=Object.values(h.removes).length>0;i.shouldUpdate=i.shouldUpdate||p||g}})],i.shouldUpdate=!0,i.oldComputing=!1,i.computing=!1,i.workersDisabled=n.state.disableWebWorkers,i.setOptions(n),i.worker=Tq("HierarchicalLayout",i.workersDisabled),i.pendingLayoutData=null,i.layout(o.items,o.idToItem,o.idToPosition,s.items),i}return(function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&n5(n,i)})(r,YD),e=r,t=[{key:"setOptions",value:function(n){if(n!==void 0&&(function(u){return Object.keys(u).every(function(l){return Boe.has(l)})})(n)){var i=n.direction,a=i===void 0?e5:i,o=n.packing,s=o===void 0?t5:o;Object.keys(Voe).includes(a)&&(this.directionChanged=this.direction&&this.direction!==a,this.direction=a),Hoe.includes(s)&&(this.packingChanged=this.packing&&this.packing!==s,this.packing=s),this.shouldUpdate=this.shouldUpdate||this.directionChanged||this.packingChanged}}},{key:"update",value:function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.shouldUpdate||n){var i=this.state,a=i.nodes,o=i.rels,s=this.directionChanged,u=this.packingChanged,l=Object.values(a.channels[Ll].adds).length>0,c=Object.values(o.channels[Ll].adds).length>0,f=Object.values(a.channels[Ll].removes).length>0,d=Object.values(o.channels[Ll].removes).length>0,h=Object.values(a.channels[Ll].updates),p=ey(h);(n||l||c||f||d||s||u||p)&&this.layout(a.items,a.idToItem,a.idToPosition,o.items),a.clearChannel(Ll),o.clearChannel(Ll),this.directionChanged=!1,this.packingChanged=!1}(function(g,y,b){var _=r5(Mm(g.prototype),"update",b);return typeof _=="function"?function(m){return _.apply(b,m)}:_})(r,0,this)([]),this.shouldUpdate=!1,this.oldComputing=this.computing}},{key:"getShouldUpdate",value:function(){return this.shouldUpdate||this.shouldUpdateAnimator}},{key:"getComputing",value:function(){return this.computing}},{key:"layout",value:function(n,i,a,o){var s=this;if(this.worker){var u=Pw(n).map(function(b){return b.html,OP(b,Woe)}),l=Pw(i),c={};Object.keys(l).forEach(function(b){var _=l[b],m=(_.html,OP(_,Yoe));c[b]=m});var f=Pw(o).map(function(b){return b.captionHtml,OP(b,Xoe)}),d=Pw(a),h=this.direction,p=this.packing,g=window.devicePixelRatio,y={nodes:u,nodeIds:c,idToPosition:d,rels:f,direction:h,packing:p,pixelRatio:g,forcedDelay:0};this.computing?this.pendingLayoutData=y:(this.worker.port.onmessage=function(b){var _=b.data,m=_.positions,x=_.parents,E=_.waypoints;s.computing&&(s.positions=m),s.parents=x,s.state.setWaypoints(E),s.pendingLayoutData!==null?(s.worker.port.postMessage(s.pendingLayoutData),s.pendingLayoutData=null):s.computing=!1,s.shouldUpdate=!0,s.startAnimation()},this.computing=!0,this.worker.port.postMessage(y))}else bi.info("Hierarchical layout code not yet initialised.")}},{key:"terminateUpdate",value:function(){var n,i;this.computing=!1,this.shouldUpdate=!1,(n=this.state.nodes)===null||n===void 0||n.clearChannel(Ll),(i=this.state.rels)===null||i===void 0||i.clearChannel(Ll)}},{key:"destroy",value:function(){var n;this.stateDisposers.forEach(function(i){i()}),this.state.nodes.removeChannel(Ll),this.state.rels.removeChannel(Ll),(n=this.worker)===null||n===void 0||n.port.close()}}],t&&$oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})(),Zoe=ao(3269),Uq=ao.n(Zoe);function Qx(r){return Qx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qx(r)}var Qoe=/^\s+/,Joe=/\s+$/;function xr(r,e){if(e=e||{},(r=r||"")instanceof xr)return r;if(!(this instanceof xr))return new xr(r,e);var t=(function(n){var i,a,o,s={r:0,g:0,b:0},u=1,l=null,c=null,f=null,d=!1,h=!1;return typeof n=="string"&&(n=(function(p){p=p.replace(Qoe,"").replace(Joe,"").toLowerCase();var g,y=!1;if(i5[p])p=i5[p],y=!0;else if(p=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(g=_d.rgb.exec(p))?{r:g[1],g:g[2],b:g[3]}:(g=_d.rgba.exec(p))?{r:g[1],g:g[2],b:g[3],a:g[4]}:(g=_d.hsl.exec(p))?{h:g[1],s:g[2],l:g[3]}:(g=_d.hsla.exec(p))?{h:g[1],s:g[2],l:g[3],a:g[4]}:(g=_d.hsv.exec(p))?{h:g[1],s:g[2],v:g[3]}:(g=_d.hsva.exec(p))?{h:g[1],s:g[2],v:g[3],a:g[4]}:(g=_d.hex8.exec(p))?{r:ef(g[1]),g:ef(g[2]),b:ef(g[3]),a:bB(g[4]),format:y?"name":"hex8"}:(g=_d.hex6.exec(p))?{r:ef(g[1]),g:ef(g[2]),b:ef(g[3]),format:y?"name":"hex"}:(g=_d.hex4.exec(p))?{r:ef(g[1]+""+g[1]),g:ef(g[2]+""+g[2]),b:ef(g[3]+""+g[3]),a:bB(g[4]+""+g[4]),format:y?"name":"hex8"}:!!(g=_d.hex3.exec(p))&&{r:ef(g[1]+""+g[1]),g:ef(g[2]+""+g[2]),b:ef(g[3]+""+g[3]),format:y?"name":"hex"}})(n)),Qx(n)=="object"&&(nv(n.r)&&nv(n.g)&&nv(n.b)?(i=n.r,a=n.g,o=n.b,s={r:255*Da(i,255),g:255*Da(a,255),b:255*Da(o,255)},d=!0,h=String(n.r).substr(-1)==="%"?"prgb":"rgb"):nv(n.h)&&nv(n.s)&&nv(n.v)?(l=Ob(n.s),c=Ob(n.v),s=(function(p,g,y){p=6*Da(p,360),g=Da(g,100),y=Da(y,100);var b=Math.floor(p),_=p-b,m=y*(1-g),x=y*(1-_*g),E=y*(1-(1-_)*g),O=b%6;return{r:255*[y,x,m,m,E,y][O],g:255*[E,y,y,x,m,m][O],b:255*[m,m,E,y,y,x][O]}})(n.h,l,c),d=!0,h="hsv"):nv(n.h)&&nv(n.s)&&nv(n.l)&&(l=Ob(n.s),f=Ob(n.l),s=(function(p,g,y){var b,_,m;function x(S,T,P){return P<0&&(P+=1),P>1&&(P-=1),P<1/6?S+6*(T-S)*P:P<.5?T:P<2/3?S+(T-S)*(2/3-P)*6:S}if(p=Da(p,360),g=Da(g,100),y=Da(y,100),g===0)b=_=m=y;else{var E=y<.5?y*(1+g):y+g-y*g,O=2*y-E;b=x(O,E,p+1/3),_=x(O,E,p),m=x(O,E,p-1/3)}return{r:255*b,g:255*_,b:255*m}})(n.h,l,f),d=!0,h="hsl"),n.hasOwnProperty("a")&&(u=n.a)),u=zq(u),{ok:d,format:n.format||h,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u}})(r);this._originalInput=r,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}function vB(r,e,t){r=Da(r,255),e=Da(e,255),t=Da(t,255);var n,i,a=Math.max(r,e,t),o=Math.min(r,e,t),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){case r:n=(e-t)/u+(e>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(xr(n));return a}function cse(r,e){e=e||6;for(var t=xr(r).toHsv(),n=t.h,i=t.s,a=t.v,o=[],s=1/e;e--;)o.push(xr({h:n,s:i,v:a})),a=(a+s)%1;return o}xr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(299*r.r+587*r.g+114*r.b)/1e3},getLuminance:function(){var r,e,t,n=this.toRgb();return r=n.r/255,e=n.g/255,t=n.b/255,.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},setAlpha:function(r){return this._a=zq(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=pB(this._r,this._g,this._b);return{h:360*r.h,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=pB(this._r,this._g,this._b),e=Math.round(360*r.h),t=Math.round(100*r.s),n=Math.round(100*r.v);return this._a==1?"hsv("+e+", "+t+"%, "+n+"%)":"hsva("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var r=vB(this._r,this._g,this._b);return{h:360*r.h,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=vB(this._r,this._g,this._b),e=Math.round(360*r.h),t=Math.round(100*r.s),n=Math.round(100*r.l);return this._a==1?"hsl("+e+", "+t+"%, "+n+"%)":"hsla("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(r){return gB(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return(function(e,t,n,i,a){var o=[Td(Math.round(e).toString(16)),Td(Math.round(t).toString(16)),Td(Math.round(n).toString(16)),Td(qq(i))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")})(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Da(this._r,255))+"%",g:Math.round(100*Da(this._g,255))+"%",b:Math.round(100*Da(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*Da(this._r,255))+"%, "+Math.round(100*Da(this._g,255))+"%, "+Math.round(100*Da(this._b,255))+"%)":"rgba("+Math.round(100*Da(this._r,255))+"%, "+Math.round(100*Da(this._g,255))+"%, "+Math.round(100*Da(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(fse[gB(this._r,this._g,this._b,!0)]||!1)},toFilter:function(r){var e="#"+yB(this._r,this._g,this._b,this._a),t=e,n=this._gradientType?"GradientType = 1, ":"";if(r){var i=xr(r);t="#"+yB(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+t+")"},toString:function(r){var e=!!r;r=r||this._format;var t=!1,n=this._a<1&&this._a>=0;return e||!n||r!=="hex"&&r!=="hex6"&&r!=="hex3"&&r!=="hex4"&&r!=="hex8"&&r!=="name"?(r==="rgb"&&(t=this.toRgbString()),r==="prgb"&&(t=this.toPercentageRgbString()),r!=="hex"&&r!=="hex6"||(t=this.toHexString()),r==="hex3"&&(t=this.toHexString(!0)),r==="hex4"&&(t=this.toHex8String(!0)),r==="hex8"&&(t=this.toHex8String()),r==="name"&&(t=this.toName()),r==="hsl"&&(t=this.toHslString()),r==="hsv"&&(t=this.toHsvString()),t||this.toHexString()):r==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return xr(this.toString())},_applyModification:function(r,e){var t=r.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(nse,arguments)},brighten:function(){return this._applyModification(ise,arguments)},darken:function(){return this._applyModification(ase,arguments)},desaturate:function(){return this._applyModification(ese,arguments)},saturate:function(){return this._applyModification(tse,arguments)},greyscale:function(){return this._applyModification(rse,arguments)},spin:function(){return this._applyModification(ose,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(lse,arguments)},complement:function(){return this._applyCombination(sse,arguments)},monochromatic:function(){return this._applyCombination(cse,arguments)},splitcomplement:function(){return this._applyCombination(use,arguments)},triad:function(){return this._applyCombination(mB,[3])},tetrad:function(){return this._applyCombination(mB,[4])}},xr.fromRatio=function(r,e){if(Qx(r)=="object"){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[n]=n==="a"?r[n]:Ob(r[n]));r=t}return xr(r,e)},xr.equals=function(r,e){return!(!r||!e)&&xr(r).toRgbString()==xr(e).toRgbString()},xr.random=function(){return xr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},xr.mix=function(r,e,t){t=t===0?0:t||50;var n=xr(r).toRgb(),i=xr(e).toRgb(),a=t/100;return xr({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},xr.readability=function(r,e){var t=xr(r),n=xr(e);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},xr.isReadable=function(r,e,t){var n,i,a,o,s,u=xr.readability(r,e);switch(i=!1,(o=((a=(a=t)||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&o!=="AAA"&&(o="AA"),(s=(a.size||"small").toLowerCase())!=="small"&&s!=="large"&&(s="small"),(n={level:o,size:s}).level+n.size){case"AAsmall":case"AAAlarge":i=u>=4.5;break;case"AAlarge":i=u>=3;break;case"AAAsmall":i=u>=7}return i},xr.mostReadable=function(r,e,t){var n,i,a,o,s=null,u=0;i=(t=t||{}).includeFallbackColors,a=t.level,o=t.size;for(var l=0;lu&&(u=n,s=xr(e[l]));return xr.isReadable(r,s,{level:a,size:o})||!i?s:(t.includeFallbackColors=!1,xr.mostReadable(r,["#fff","#000"],t))};var i5=xr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},fse=xr.hexNames=(function(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e})(i5);function zq(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Da(r,e){(function(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1})(r)&&(r="100%");var t=(function(n){return typeof n=="string"&&n.indexOf("%")!=-1})(r);return r=Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),Math.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function fE(r){return Math.min(1,Math.max(0,r))}function ef(r){return parseInt(r,16)}function Td(r){return r.length==1?"0"+r:""+r}function Ob(r){return r<=1&&(r=100*r+"%"),r}function qq(r){return Math.round(255*parseFloat(r)).toString(16)}function bB(r){return ef(r)/255}var np,Mw,Dw,_d=(Mw="[\\s|\\(]+("+(np="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+np+")[,|\\s]+("+np+")\\s*\\)?",Dw="[\\s|\\(]+("+np+")[,|\\s]+("+np+")[,|\\s]+("+np+")[,|\\s]+("+np+")\\s*\\)?",{CSS_UNIT:new RegExp(np),rgb:new RegExp("rgb"+Mw),rgba:new RegExp("rgba"+Dw),hsl:new RegExp("hsl"+Mw),hsla:new RegExp("hsla"+Dw),hsv:new RegExp("hsv"+Mw),hsva:new RegExp("hsva"+Dw),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function nv(r){return!!_d.CSS_UNIT.exec(r)}var a5=function(r){return xr.mostReadable(r,[WD,"#FFFFFF"]).toString()},I1=function(r){return Uq().get.rgb(r)},kw=function(r){var e=new ArrayBuffer(4),t=new Uint32Array(e),n=new Uint8Array(e),i=I1(r);return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=255*i[3],t[0]},Iw=function(r){return[(e=I1(r))[0]/255,e[1]/255,e[2]/255];var e},_B={selected:{rings:[{widthFactor:.05,color:hq},{widthFactor:.1,color:vq}],shadow:{width:10,opacity:1,color:dq}},default:{rings:[]}},wB={selected:{rings:[{color:hq,width:2},{color:vq,width:4}],shadow:{width:18,opacity:1,color:dq}},default:{rings:[]}},TP=.75,CP={noPan:!1,outOnly:!1,animated:!0};function Hb(r){return Hb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hb(r)}function AP(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0?r.captions:r.caption&&r.caption.length>0?[{value:r.caption}]:[]},ip=function(r,e,t){(0,Hi.isNil)(r)||((function(n){return typeof n=="string"&&I1(n)!==null})(r)?e(r):Sq().warn("Invalid color string for ".concat(t,":"),r))},Gq=function(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$n();r.width=e*n,r.height=t*n,r.style.width="".concat(e,"px"),r.style.height="".concat(t,"px")},Vq=function(r){bi.warn("Error: WebGL context lost - visualization will stop working!",r),o5!==void 0&&o5(r)},fx=function(r){var e=r.parentElement,t=e.getBoundingClientRect(),n=t.width,i=t.height;n!==0||i!==0||e.isConnected||(n=parseInt(e.style.width,10)||0,i=parseInt(e.style.height,10)||0),Gq(r,n,i)},PP=function(r,e){var t=document.createElement("canvas");return Object.assign(t.style,zM),r!==void 0&&(r.appendChild(t),fx(t)),(function(n,i){o5=i,n.addEventListener("webglcontextlost",Vq)})(t,e),t},om=function(r){r.width=0,r.height=0,r.remove()},EB=function(r){var e={antialias:!0},t=r.getContext("webgl",e);return t===null&&(t=r.getContext("experimental-webgl",e)),(function(n){return n instanceof WebGLRenderingContext})(t)?t:null},SB=function(r){r.canvas.removeEventListener("webglcontextlost",Vq);var e=r.getExtension("WEBGL_lose_context");e==null||e.loseContext()},s5=new Map,Tb=function(r,e){var t=r.font,n=s5.get(t);n===void 0&&(n=new Map,s5.set(t,n));var i=n.get(e);return i===void 0&&(i=r.measureText(e).width,n.set(e,i)),i};function Wb(r){return Wb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wb(r)}function OB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function hse(r,e){for(var t=0;t0&&(s=(i=ZD(u,l,n))1&&arguments[1]!==void 0&&arguments[1],i=this.getOrCreateEntry(t),a=n?"inverted":"image",o=i[a];return o===void 0&&(o=this.loadImage(t),i[a]=o),this.drawIfNeeded(o,n),o.canvas}},{key:"getOrCreateEntry",value:function(t){return this.cache[t]===void 0&&(this.cache[t]={}),this.cache[t]}},{key:"invertCanvas",value:function(t){for(var n=t.getImageData(0,0,Pf,Pf),i=n.data,a=0;a<4096;a++){var o=4*a;i[o]^=255,i[o+1]^=255,i[o+2]^=255}t.putImageData(n,0,0)}},{key:"loadImage",value:function(t){var n=document.createElement("canvas");n.width=Pf,n.height=Pf;var i=new Image;return i.src=t,i.crossOrigin="anonymous",{canvas:n,image:i,drawn:!1}}},{key:"drawIfNeeded",value:function(t,n){var i=t.image,a=t.canvas;if(!t.drawn&&i.complete){var o=a.getContext("2d");try{o.drawImage(i,0,0,Pf,Pf)}catch(s){bi.error("Failed to draw image",i.src,s),o.beginPath(),o.strokeStyle="black",o.rect(0,0,Pf,Pf),o.moveTo(0,0),o.lineTo(Pf,Pf),o.moveTo(0,Pf),o.lineTo(Pf,0),o.stroke(),o.closePath()}n&&this.invertCanvas(o),t.drawn=!0}}},{key:"waitForImages",value:function(){for(var t=[],n=0,i=Object.values(this.cache);n0?Promise.all(t).then(function(){}):Promise.resolve()}}],e&&pse(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();const yse=gse;function Xb(r){return Xb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xb(r)}function TB(r,e){if(r){if(typeof r=="string")return l5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l5(r,e):void 0}}function l5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0)){var i=(function(a,o){return(function(s){if(Array.isArray(s))return s})(a)||(function(s,u){var l=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(l!=null){var c,f,d,h,p=[],g=!0,y=!1;try{if(d=(l=l.call(s)).next,u!==0)for(;!(g=(c=d.call(l)).done)&&(p.push(c.value),p.length!==u);g=!0);}catch(b){y=!0,f=b}finally{try{if(!g&&l.return!=null&&(h=l.return(),Object(h)!==h))return}finally{if(y)throw f}}return p}})(a,o)||TB(a,o)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(this.relArray(),1)[0];this.fromId=i.from,this.toId=i.to}}},{key:"size",value:function(){return this.rels.size}},{key:"relArray",value:function(){return Array.from(this.rels.values())}},{key:"maxFontSize",value:function(){if(this.size()===0)return 1;var t=this.relArray().map(function(n){return(0,Hi.isNumber)(n.captionSize)?n.captionSize:1});return Math.max.apply(Math,(function(n){return(function(i){if(Array.isArray(i))return l5(i)})(n)||(function(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)})(n)||TB(n)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(t))}},{key:"relIsOppositeDirection",value:function(t){var n=t.from,i=t.to,a=this.fromId,o=this.toId;return n!==a&&i!==o||n===o&&i===a}},{key:"indexOf",value:function(t){var n=t.id,i=Array.from(this.rels.keys());return this.rels.has(n)?i.indexOf(n):-1}},{key:"getRel",value:function(t){var n=this.relArray();return t<0||t>=n.length?null:n[t]}},{key:"setWaypoints",value:function(t){this.waypointPath=t}},{key:"setAngles",value:function(t){this.angles=t}}],e&&mse(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})(),CB=cq,AB=2*Math.PI/50,RB=.1*Math.PI,dE=1.5,c5=wb;function $b(r){return $b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$b(r)}function PB(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Xq(r))||e){t&&(r=t);var n=0,i=function(){};return{s:i,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function MB(r){return(function(e){if(Array.isArray(e))return f5(e)})(r)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(r)||Xq(r)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Xq(r,e){if(r){if(typeof r=="string")return f5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f5(r,e):void 0}}function f5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t=0;t--){var n=void 0,i=void 0;t===0?(i=r[r.length-1],n=r[t]-r[r.length-1]+2*Math.PI):(i=r[t-1],n=r[t]-r[t-1]),e.push({size:n,start:i})}e.sort(function(a,o){return o.size-a.size})}return e},xse=function(r,e){for(;e>r.length||r[0].size>2*r[e-1].size;)r.push({size:r[0].size/2,start:r[0].start}),r.push({size:r[0].size/2,start:r[0].start+r[0].size/2}),r.shift(),r.sort(function(t,n){return n.size-t.size});return r},Ese=(function(){return r=function t(n,i){(function(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),DB(this,"bundles",void 0),DB(this,"nodeToBundles",void 0),this.bundles={},this.nodeToBundles={};var a=n.reduce(function(o,s){return o[s.id]=s,o},{});this.updateData(a,{},{},i)},e=[{key:"getBundle",value:function(t){var n=this.bundles,i=this.nodeToBundles,a=this.generatePairId(t.from,t.to),o=n[a];return o===void 0&&(o=new bse(a,t.from,t.to),n[a]=o,i[t.from]===void 0&&(i[t.from]=[]),i[t.to]===void 0&&(i[t.to]=[]),i[t.from].push(o),i[t.to].push(o)),o}},{key:"updateData",value:function(t,n,i,a){var o,s=this.bundles,u=this.nodeToBundles,l=function(E,O){var S=u[O].findIndex(function(T){return T===E});S!==-1&&u[O].splice(S,1),u[O].length===0&&delete u[O]},c=[].concat(MB(Object.values(t)),MB(Object.values(i))),f=Object.values(n),d=PB(c);try{for(d.s();!(o=d.n()).done;){var h=o.value;this.getBundle(h).insert(h)}}catch(E){d.e(E)}finally{d.f()}for(var p=0,g=f;pr.length)&&(e=r.length);for(var t=0,n=Array(e);t0?((s=a[0].width)!==null&&s!==void 0?s:0)*c:0,h=o&&o>1?o*c/2:1,p=9*h,g=7*h,y=i?d*Math.sqrt(1+2*p/g*(2*p/g)):0;return{x:r.x-Math.cos(f)*(y/4),y:r.y-Math.sin(f)*(y/4),angle:(e+u)%l,flip:(e+l)%l0&&arguments[0]!==void 0?arguments[0]:[])[0])===null||e===void 0?void 0:e.width)!==null&&r!==void 0?r:0)*$n()*dE},Qq=function(r,e,t,n,i,a){var o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"top";if(r.length===0)return{x:0,y:0,angle:0};if(r.length===1)return{x:r[0].x,y:r[0].y,angle:0};var s,u,l,c,f,d=Math.PI/2,h=Math.floor(r.length/2),p=e.x>t.x,g=r[h];if(1&~r.length?(s=r[p?h:h-1],u=r[p?h-1:h],l=(s.x+u.x)/2,c=(s.y+u.y)/2,f=Math.atan2(u.y-s.y,u.x-s.x)):(s=r[p?h+1:h-1],u=r[p?h-1:h+1],n?(l=(g.x+(s.x+u.x)/2)/2,c=(g.y+(s.y+u.y)/2)/2,f=p?Math.atan2(e.y-t.y,e.x-t.x):Math.atan2(t.y-e.y,t.x-e.x)):(e2(g,s)>e2(g,u)?u=g:s=g,l=(s.x+u.x)/2,c=(s.y+u.y)/2,f=Math.atan2(u.y-s.y,u.x-s.x))),i){var y=r2(a),b=o==="bottom"?1:-1;l+=Math.cos(f+d)*y*b,c+=Math.sin(f+d)*y*b}return{x:l,y:c,angle:f}},IB=function(r,e,t,n,i,a){var o={x:(r.x+e.x)/2,y:(r.y+e.y)/2},s={x:r.x,y:r.y},u={x:e.x,y:e.y},l=new Wu(u,s),c=(function(d,h){var p=0;return d&&(p+=d),h&&(p-=h),p})(n,t);o.x+=c/2*l.unit.x,o.y+=c/2*l.unit.y;var f=a.size()/2-a.indexOf(i);return o.x+=f*l.unit.x,o.y+=f*l.unit.y,o},NB=function(r){var e=$n(),t=r.size,n=r.selected;return((t??ha)+4+(n===!0?4:0))*e},n2=function(r,e,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(t.x===n.x&&t.y===n.y)return[{x:t.x,y:t.y}];var o=function(z){var H=arguments.length>1&&arguments[1]!==void 0&&arguments[1],q=z.norm.x,W=z.norm.y;return H?{x:-q,y:-W}:z.norm},s=$n(),u=e.indexOf(r),l=(e.size()-1)/2,c=u>l,f=Math.abs(u-l),d=i?17*e.maxFontSize():8,h=(e.size()-1)*d*s,p=(function(z,H,q,W,$,J,X){var Z,ue=arguments.length>7&&arguments[7]!==void 0&&arguments[7],re=$n(),ne=z.size(),le=ne>1,ce=z.relIsOppositeDirection(J),pe=ce?q:H,fe=ce?H:q,se=z.waypointPath,de=se==null?void 0:se.points,ge=se==null?void 0:se.from,Oe=se==null?void 0:se.to,ke=Nw(pe,ge)&&Nw(fe,Oe)||Nw(fe,ge)&&Nw(pe,Oe),De=ke?de[1]:null,Ne=ke?de[de.length-2]:null,Ce=NB(pe),Y=NB(fe),Q=function(mr,ur){return Math.atan2(mr.y-ur.y,mr.x-ur.x)},ie=Math.max(Math.PI,Ose/(ne/2)),we=le?W*ie*(X?1:-1)/((Z=pe.size)!==null&&Z!==void 0?Z:ha):0,Ee=Q(ke?De:fe,pe),Me=ke?Q(fe,Ne):Ee,Ie=function(mr,ur,sn,Fr){return{x:mr.x+Math.cos(ur)*sn*(Fr?-1:1),y:mr.y+Math.sin(ur)*sn*(Fr?-1:1)}},Ye=function(mr,ur){return Ie(pe,Ee+mr,ur,!1)},ot=function(mr,ur){return Ie(fe,Me-mr,ur,!0)},mt=function(mr,ur){return{x:mr.x+(ur.x-mr.x)/2,y:mr.y+(ur.y-mr.y)/2}},wt=function(mr,ur){return Math.sqrt((mr.x-ur.x)*(mr.x-ur.x)+(mr.y-ur.y)*(mr.y-ur.y))*re},Mt=Ye(we,Ce),Dt=ot(we,Y),vt=le?Ye(0,Ce):null,tt=le?ot(0,Y):null,_e=200*re,Ue=[];if(ke){var Qe=wt(Mt,De)<_e;if(le&&!Qe){var Ze=mt(vt,De);Ue.push(new Wu(Mt,Ze)),Ue.push(new Wu(Ze,De))}else Ue.push(new Wu(Mt,De));for(var nt=2;nt2*(30*re+Math.min(Ce,Y)))if(ue){var Rt=IB(pe,fe,Ce,Y,J,z);Ue.push(new Wu(Mt,Rt)),Ue.push(new Wu(Rt,Dt))}else{var jt=W*$,Yt=30+Ce,sr=Math.sqrt(Yt*Yt+jt*jt),Ut=30+Y,Rr=Math.sqrt(Ut*Ut+jt*jt),Xt=Ye(0,sr),Vr=ot(0,Rr);Ue.push(new Wu(Mt,Xt)),Ue.push(new Wu(Xt,Vr)),Ue.push(new Wu(Vr,Dt))}else if(Lt>(Ce+Y)/2){var Br=IB(pe,fe,Ce,Y,J,z);Ue.push(new Wu(Mt,Br)),Ue.push(new Wu(Br,Dt))}else Ue.push(new Wu(Mt,Dt))}return Ue})(e,t,n,f,d,r,c,a),g=[],y=p[0],b=o(y,c);g.push({x:y.p1.x+b.x,y:y.p1.y+b.y});for(var _=1;_4&&arguments[4]!==void 0&&arguments[4],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5];return N1(t,n)?t.id===n.id?(function(o,s,u){for(var l=t2(o,s,u),c={left:1/0,top:1/0,right:-1/0,bottom:-1/0},f=["startPoint","endPoint","apexPoint","control1Point","control2Point"],d=0;dc.right&&(c.right=p),gc.bottom&&(c.bottom=g)}return c})(r,t,e):(function(o,s,u,l,c,f){var d,h={left:1/0,top:1/0,right:-1/0,bottom:-1/0},p=(function(_,m){var x=typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(!x){if(Array.isArray(_)||(x=(function(I,k){if(I){if(typeof I=="string")return kB(I,k);var L={}.toString.call(I).slice(8,-1);return L==="Object"&&I.constructor&&(L=I.constructor.name),L==="Map"||L==="Set"?Array.from(I):L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?kB(I,k):void 0}})(_))||m){x&&(_=x);var E=0,O=function(){};return{s:O,n:function(){return E>=_.length?{done:!0}:{done:!1,value:_[E++]}},e:function(I){throw I},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S,T=!0,P=!1;return{s:function(){x=x.call(_)},n:function(){var I=x.next();return T=I.done,I},e:function(I){P=!0,S=I},f:function(){try{T||x.return==null||x.return()}finally{if(P)throw S}}}})(n2(o,s,u,l,c,f));try{for(p.s();!(d=p.n()).done;){var g=d.value,y=g.x,b=g.y;yh.right&&(h.right=y),bh.bottom&&(h.bottom=b)}}catch(_){p.e(_)}finally{p.f()}return h})(r,e,t,n,i,a):null},Jq=function(r,e){var t,n=r.selected?dE:1;return((t=r.width)!==null&&t!==void 0?t:e)*n*$n()},eG=function(r,e,t,n,i){if(r.length<2)return{tailOffset:null};var a=r[r.length-2],o=r[r.length-1],s=Math.atan2(o.y-a.y,o.x-a.x),u=t/2+n;r[r.length-1]={x:o.x-Math.cos(s)*u,y:o.y-Math.sin(s)*u};var l=null;if(e){var c=r[0],f=r[1],d=Math.atan2(f.y-c.y,f.x-c.x),h=r2(i);l={x:Math.cos(d)*h,y:Math.sin(d)*h},r[0]={x:c.x+l.x,y:c.y+l.y}}return{tailOffset:l}},tG=function(r,e,t){var n=$n(),i=n*(r>1?r/2:1),a=9*i,o=2*i,s=7*i,u=t.length>0?t[0].width*n:0,l=2*a,c=e?u*Math.sqrt(1+l/s*(l/s)):0;return{headFactor:i,headHeight:a,headChinHeight:o,headWidth:s,headSelectedAdjustment:c,headPositionOffset:2-c}},LB=function(r){return 6*r*$n()},jB=function(r,e,t){return{widthAlign:e/2*r[0],heightAlign:t/2*r[1]}},Cse=function(r){var e=r.x,t=e===void 0?0:e,n=r.y,i=n===void 0?0:n,a=r.size,o=a===void 0?ha:a;return{top:i-o,left:t-o,right:t+o,bottom:i+o}},rG=function(r,e,t,n){return(n<2||!e?1*r:.75*r)/t},nG=function(r,e,t,n,i){var a=i<2||!e;return{iconXPos:r/2,iconYPos:a?.5*r:r*(n===1?t==="center"?1.3:t==="bottom"||a?1.1:0:t==="center"?1.35:t==="bottom"||a?1.1:0)}},iG=function(r,e){return r*e},aG=function(r,e,t){var n=r/2-e*t[1];return{iconXPos:r/2-e*t[0],iconYPos:n}};function Kb(r){return Kb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kb(r)}function BB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function jl(r){for(var e=1;e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function UB(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t2&&arguments[2]!==void 0?arguments[2]:{};(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,t),kf(this,"arrowBundler",void 0),kf(this,"state",void 0),kf(this,"relationshipThreshold",void 0),kf(this,"stateDisposers",void 0),kf(this,"needsRun",void 0),kf(this,"imageCache",void 0),kf(this,"nodeVersion",void 0),kf(this,"relVersion",void 0),kf(this,"waypointVersion",void 0),kf(this,"channelId",void 0),kf(this,"activeNodes",void 0),this.state=n,this.relationshipThreshold=(a=s.relationshipThreshold)!==null&&a!==void 0?a:0,this.channelId=i,this.arrowBundler=new Ese(n.rels.items,n.waypoints.data),this.stateDisposers=[],this.needsRun=!0,this.imageCache=new yse,this.nodeVersion=n.nodes.version,this.relVersion=n.rels.version,this.waypointVersion=n.waypoints.counter,this.activeNodes=new Set,this.stateDisposers.push(this.state.autorun(function(){o.state.zoom!==void 0&&(o.needsRun=!0),o.state.panX!==void 0&&(o.needsRun=!0),o.state.panY!==void 0&&(o.needsRun=!0),o.state.nodes.version!==void 0&&(o.needsRun=!0),o.state.rels.version!==void 0&&(o.needsRun=!0),o.state.waypoints.counter>0&&(o.needsRun=!0),o.state.layout!==void 0&&(o.needsRun=!0)}))},(e=[{key:"getRelationshipsToRender",value:function(t,n,i,a){var o,s=[],u=[],l=[],c=this.arrowBundler,f=this.state,d=this.relationshipThreshold,h=f.layout,p=f.rels,g=f.nodes,y=g.idToItem,b=g.idToPosition,_=h!=="hierarchical",m=FB(p.items);try{for(m.s();!(o=m.n()).done;){var x=o.value,E=c.getBundle(x),O=jl(jl({},y[x.from]),b[x.from]),S=jl(jl({},y[x.to]),b[x.to]),T=n!==void 0?t||n>d||x.captionHtml!==void 0:t,P=!0;if(i!==void 0&&a!==void 0){var I=Tse(x,E,O,S,T,_);if(I!==null){var k,L,B,j,z,H,q=this.isBoundingBoxOffScreen(I,i,a),W=e2({x:(k=O.x)!==null&&k!==void 0?k:0,y:(L=O.y)!==null&&L!==void 0?L:0},{x:(B=S.x)!==null&&B!==void 0?B:0,y:(j=S.y)!==null&&j!==void 0?j:0}),$=$n(),J=(((z=O.size)!==null&&z!==void 0?z:ha)+((H=S.size)!==null&&H!==void 0?H:ha))*$,X=O.id!==S.id&&J>W;P=!(q||X)}else P=!1}P&&(x.disabled?u.push(jl(jl({},x),{},{fromNode:O,toNode:S,showLabel:T})):x.selected?s.push(jl(jl({},x),{},{fromNode:O,toNode:S,showLabel:T})):l.push(jl(jl({},x),{},{fromNode:O,toNode:S,showLabel:T})))}}catch(Z){m.e(Z)}finally{m.f()}return[].concat(u,l,s)}},{key:"getNodesToRender",value:function(t,n,i){var a,o=[],s=[],u=[],l=this.state.nodes.idToItem,c=FB(t);try{for(c.s();!(a=c.n()).done;){var f=a.value,d=!0;if(n!==void 0&&i!==void 0){var h=Cse(f);d=!this.isBoundingBoxOffScreen(h,n,i)}d&&(l[f.id].disabled?o.push(jl({},f)):l[f.id].selected?s.push(jl({},f)):u.push(jl({},f)))}}catch(p){c.e(p)}finally{c.f()}return[].concat(o,u,s)}},{key:"processUpdates",value:function(){var t=this.state,n=!1,i=t.nodes.channels[this.channelId],a=t.rels.channels[this.channelId],o=a.adds,s=a.removes,u=a.updates;if(this.nodeVersion0||Object.keys(s).length>0||Object.keys(u).length>0,t.rels.clearChannel(this.channelId),this.relVersion=t.rels.version),n||this.waypointVersionl+s,p=t.top>c+u;return f||h||d||p}},{key:"needsToRun",value:function(){return this.needsRun}},{key:"waitForImages",value:function(){return this.imageCache.waitForImages()}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(t){t()}),this.state.nodes.removeChannel(this.channelId),this.state.rels.removeChannel(this.channelId)}}])&&Ase(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})(),Rse=[[.04,1],[100,2]],i2=[[.8,1.1],[3,1.6],[8,2.5]],Pse=[[i2[0][0],1],[100,1.25]],Og=function(r,e){if(r.includes("rgba"))return r;if(r.includes("rgb")){var t=r.substr(r.indexOf("(")+1).replace(")","").split(",");return"rgba(".concat(t[0],",").concat(t[1],",").concat(t[2],",").concat(e,")")}var n=Uq().get.rgb(r);return n===null?r:"rgba(".concat(n[0],",").concat(n[1],",").concat(n[2],",").concat(e,")")};function DP(r,e){var t=e.find(function(i){return rr.length)&&(e=r.length);for(var t=0,n=Array(e);t4&&arguments[4]!==void 0&&arguments[4],o=[],s=[],u=0,l=0,c=!1,f=!1,d=0;d_||(y=r[g-1],` -\r\v`.includes(y))){if(!(l_;){for(m-=1;kse(x());)m-=1;if(!(m-u>1)){i="",f=!0,c=!1;break}i=r.slice(u,m),b=e(i),f=!0,c=!1}return s[l]={text:i,hasEllipsisChar:f,hasHyphenChar:c},{v:s}}c=!1,f=!1;var E=(function(S){var T=S.length,P=Math.min(T-1,3);if(T===1)return{hyphen:!1,cnt:0};for(var I=0;I_;){if(!(O-u>1)){i=r[u],O=u+1,b=e(i),c=!1;break}O-=1,i=r.slice(u,O),b=e(i),c=!0}else i=(i=r.slice(u,O)).trim();s[l]={text:i,hasEllipsisChar:f,hasHyphenChar:c},u=O,l+=1}},g=1;g<=r.length;g++)if(h=p())return h.v;return i=r.slice(u,r.length),s[l]={text:i,hasEllipsisChar:f,hasHyphenChar:!1},s},Qb=function(){var r=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).reduce(function(e,t,n){var i=t.value;if(i){var a="".concat(n>0&&e.length?", ":"").concat(i);return[].concat(nb(e),[a2(a2({},t),{},{value:a,chars:a.split("").map(function(o,s){var u,l;return n!==0&&e.length?s<2?null:nb((u=t.styles)!==null&&u!==void 0?u:[]):nb((l=t.styles)!==null&&l!==void 0?l:[])})})])}return e},[]);return{stylesPerChar:r.reduce(function(e,t){return[].concat(nb(e),nb(t.chars))},[]),fullCaption:r.map(function(e){return e.value}).join("")}};function cG(r,e,t){var n,i,a,o=r.size,s=o===void 0?ha:o,u=r.caption,l=u===void 0?"":u,c=r.captions,f=c===void 0?[]:c,d=r.captionAlign,h=d===void 0?"center":d,p=r.captionSize,g=p===void 0?1:p,y=r.icon,b=s*$n(),_=2*b,m=ZD(b,e).fontInfoLevel,x=(function(z){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:ha)/({1:3.5,2:2.75,3:2}[arguments.length>2&&arguments[2]!==void 0?arguments[2]:1]+(arguments.length>3&&arguments[3]!==void 0&&arguments[3]?1:0))/z})(m,b,g,!!y),E=f.length>0,O=l.length>0,S=[],T="";if(!E&&!O)return{lines:[],stylesPerChar:[],fullCaption:"",fontSize:x,fontFace:wb,fontColor:"",yPos:0,maxNoLines:2,hasContent:!1};if(E){var P=Qb(f);S=P.stylesPerChar,T=P.fullCaption}else O&&(T=l,S=l.split("").map(function(){return[]}));var I=2;m===((n=i2[1])===null||n===void 0?void 0:n[1])?I=3:m===((i=i2[2])===null||i===void 0?void 0:i[1])&&(I=4);var k=h==="center"?.7*_:2*Math.sqrt(Math.pow(_/2,2)-Math.pow(_/3,2)),L=t;L||(L=document.createElement("canvas").getContext("2d")),L.font="bold ".concat(x,"px ").concat(wb),a=(function(z,H,q,W,$,J,X){var Z=(function(fe){return/[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(fe)})(H)?H.split("").reverse().join(""):H;z.font="bold ".concat(W,"px ").concat(q).replace(/"/g,"");for(var ue=function(fe){return Tb(z,fe)},re=J?(X<4?["",""]:[""]).length:0,ne=function(fe,se){return(function(de,ge,Oe){var ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"top",De=.98*Oe,Ne=.89*Oe,Ce=.95*Oe;return ge===1?De:ge===2?Ce:ge===3&&ke==="top"?de===0||de===2?Ne:De:ge===4&&ke==="top"?de===0||de===3?.78*Oe:Ce:ge===5&&ke==="top"?de===0||de===4?.65*Oe:de===1||de===3?Ne:Ce:De})(fe+re,se+re,$)},le=1,ce=[],pe=function(){if((ce=(function(se,de,ge,Oe){var ke,De=se.split(/\s/g).filter(function(Ie){return Ie.length>0}),Ne=[],Ce=null,Y=function(Ie){return de(Ie)>ge(Ne.length,Oe)},Q=(function(Ie){var Ye=typeof Symbol<"u"&&Ie[Symbol.iterator]||Ie["@@iterator"];if(!Ye){if(Array.isArray(Ie)||(Ye=uG(Ie))){Ye&&(Ie=Ye);var ot=0,mt=function(){};return{s:mt,n:function(){return ot>=Ie.length?{done:!0}:{done:!1,value:Ie[ot++]}},e:function(vt){throw vt},f:mt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wt,Mt=!0,Dt=!1;return{s:function(){Ye=Ye.call(Ie)},n:function(){var vt=Ye.next();return Mt=vt.done,vt},e:function(vt){Dt=!0,wt=vt},f:function(){try{Mt||Ye.return==null||Ye.return()}finally{if(Dt)throw wt}}}})(De);try{for(Q.s();!(ke=Q.n()).done;){var ie=ke.value,we=Ce?"".concat(Ce," ").concat(ie):ie;if(de(we)Oe)return[]}}}catch(Ie){Q.e(Ie)}finally{Q.f()}if(Ce){var Me=Y(Ce);Ne.push({text:Ce,overflowed:Me})}return Ne.length<=Oe?Ne:[]})(Z,ue,ne,le)).length===0)ce=L1(Z,ue,ne,le,X>le);else if(ce.some(function(se){return se.overflowed})){var fe=le;ce=ce.reduce(function(se,de){var ge=X-se.length;if(ge===0){var Oe=se[se.length-1];return Oe.text.endsWith(o2)||(ue(Oe.text)+ue(o2)>ne(se.length,fe)?(se[se.length-1].text=Oe.text.slice(0,-2),se[se.length-1].hasEllipsisChar=!0):(se[se.length-1].text=Oe.text,se[se.length-1].hasEllipsisChar=!0)),se}if(de.overflowed){var ke=L1(de.text,ue,ne,ge);se=se.concat(ke)}else se.push({text:de.text,hasEllipsisChar:!1,hasHyphenChar:!1});return se},[])}else ce=ce.map(function(se){return a2(a2({},se),{},{hasEllipsisChar:!1,hasHyphenChar:!1})});le+=1};ce.length===0;)pe();return Array.from(ce)})(L,T,wb,x,k,!!y,I);var B,j=-(a.length-2)*x/2;return B=h&&h!=="center"?h==="bottom"?j+b/Math.PI:j-b/Math.PI:j,{lines:a,stylesPerChar:S,fullCaption:T,fontSize:x,fontFace:wb,fontColor:"",yPos:B,maxNoLines:I,hasContent:!0}}function Jb(r){return Jb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jb(r)}function Ise(r,e){for(var t=0;t0?(this.currentTime-this.startTime)/n:1)>=1?(this.currentValue=this.endValue,this.status=2):(this.currentValue=this.startValue+t*(this.endValue-this.startValue),this.hasNextAnimation=!0),this.hasNextAnimation}},{key:"setEndValue",value:function(t){this.endValue!==t&&(t-this.currentValue!==0?(this.currentTime=new Date().getTime(),this.status=1,this.startValue=this.currentValue,this.endValue=t,this.startTime=this.currentTime,this.setEndTime(this.startTime+this.duration)):this.endValue=t)}},{key:"setEndTime",value:function(t){this.endTime=Math.max(t,this.startTime)}}])&&Ise(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function e1(r){return e1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e1(r)}function qB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function GB(r){for(var e=1;e3&&arguments[3]!==void 0?arguments[3]:1;if(this.ignoreAnimationsFlag)return i;var u=(a=this.getById(t))!==null&&a!==void 0?a:{};if(u[n]===void 0){var l=s===1?this.createSizeAnimation(0,t,n):this.createFadeAnimation(0,t,n);l.setEndValue(i),o=l.currentValue}else{var c=u[n];if(c.currentValue===i)return i;c.setEndValue(i),o=c.currentValue}return this.hasNextAnimation=!0,o}},{key:"createAnimation",value:function(t,n,i){var a,o=new Nse(n,t),s=(a=this.animations.get(n))!==null&&a!==void 0?a:{};return this.animations.set(n,GB(GB({},s),{},kg({},i,o))),o}},{key:"getById",value:function(t){return this.animations.get(t)}},{key:"createFadeAnimation",value:function(t,n,i){var a,o=this.createAnimation(t,n,i);return o.setDuration((a=this.durations[0])!==null&&a!==void 0?a:this.defaultDuration),o}},{key:"createSizeAnimation",value:function(t,n,i){var a,o=this.createAnimation(t,n,i);return o.setDuration((a=this.durations[1])!==null&&a!==void 0?a:this.defaultDuration),o}}],e&&Lse(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function kP(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t4&&arguments[4]!==void 0)||arguments[4],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],o=n.headPosition,s=n.headAngle,u=n.headHeight,l=n.headChinHeight,c=n.headWidth,f=Math.cos(s),d=Math.sin(s),h=function(y,b){return{x:o.x+y*f-b*d,y:o.y+y*d+b*f}},p=[h(l-u,0),h(-u,c/2),h(0,0),h(-u,-c/2)],g={lineWidth:r.lineWidth,strokeStyle:r.strokeStyle,fillStyle:r.fillStyle};r.lineWidth=e,r.strokeStyle=t,r.fillStyle=t,(function(y,b,_,m){if(y.beginPath(),b.length>0){var x=b[0];y.moveTo(x.x,x.y)}for(var E=1;E=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function d5(r,e){if(r){if(typeof r=="string")return h5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h5(r,e):void 0}}function h5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t3&&arguments[3]!==void 0?arguments[3]:{};return(function(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")})(this,r),s=this,l=[a,IP,c],u=Hm(u=r),dm(o=YB(s,vG()?Reflect.construct(u,l||[],Hm(s).constructor):u.apply(s,l)),"canvas",void 0),dm(o,"context",void 0),dm(o,"animationHandler",void 0),dm(o,"ellipsisWidth",void 0),dm(o,"disableArrowShadow",!1),i===null?YB(o):(o.canvas=n,o.context=i,a.nodes.addChannel(IP),a.rels.addChannel(IP),o.animationHandler=new jse,o.animationHandler.setOptions({fadeDuration:150,sizeDuration:150}),o.ellipsisWidth=Tb(i,o2),o)}return(function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&p5(n,i)})(r,sG),e=r,t=[{key:"needsToRun",value:function(){return Lw(r,"needsToRun",this,3)([])||this.animationHandler.needsToRun()||this.activeNodes.size>0}},{key:"processUpdates",value:function(){Lw(r,"processUpdates",this,3)([]);var n=this.state.rels.items.filter(function(i){return i.selected||i.hovered});this.disableArrowShadow=n.length>500}},{key:"drawNode",value:function(n,i,a,o,s,u,l,c,f){var d=i.x,h=d===void 0?0:d,p=i.y,g=p===void 0?0:p,y=i.size,b=y===void 0?ha:y,_=i.captionAlign,m=_===void 0?"center":_,x=i.disabled,E=i.activated,O=i.selected,S=i.hovered,T=i.id,P=i.icon,I=i.overlayIcon,k=Jx(i),L=$n(),B=this.getRingStyles(i,o,s),j=B.reduce(function(Xt,Vr){return Xt+Vr.width},0),z=b*L,H=2*z,q=ZD(z,f),W=q.nodeInfoLevel,$=q.iconInfoLevel,J=i.color||l,X=i5(J),Z=z;if(j>0&&(Z=z+j),x)J=u.color,X=u.fontColor;else{var ue;if(E){var re=Date.now()%1e3/1e3,ne=re<.7?re/.7:0,le=Og(J,.4-.4*ne);VB(n,h,g,le,z+.88*z*ne)}var ce=(ue=s.selected.shadow)!==null&&ue!==void 0?ue:{width:0,opacity:0,color:""},pe=ce.width*L,fe=ce.opacity,se=ce.color,de=O||S?pe:0,ge=o.getValueForAnimationName(T,"shadowWidth",de);ge>0&&(function(Xt,Vr,Br,mr,ur,sn){var Fr=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,un=ur+sn,bn=Xt.createRadialGradient(Vr,Br,ur,Vr,Br,un);bn.addColorStop(0,"transparent"),bn.addColorStop(.01,Og(mr,.5*Fr)),bn.addColorStop(.05,Og(mr,.5*Fr)),bn.addColorStop(.5,Og(mr,.12*Fr)),bn.addColorStop(.75,Og(mr,.03*Fr)),bn.addColorStop(1,Og(mr,0)),Xt.fillStyle=bn,hG(Xt,Vr,Br,un),Xt.fill()})(n,h,g,se,Z,ge,fe)}VB(n,h,g,J,z),j>0&&Bse(n,h,g,z,B);var Oe=!!k.length;if(P){var ke=rG(z,Oe,$,W),De=W>0?1:0,Ne=nG(ke,Oe,m,$,W),Ce=Ne.iconXPos,Y=Ne.iconYPos,Q=o.getValueForAnimationName(T,"iconSize",ke),ie=o.getValueForAnimationName(T,"iconXPos",Ce),we=o.getValueForAnimationName(T,"iconYPos",Y),Ee=n.globalAlpha,Me=x?.1:De;n.globalAlpha=o.getValueForAnimationName(T,"iconOpacity",Me);var Ie=X==="#ffffff",Ye=a.getImage(P,Ie);n.drawImage(Ye,h-ie,g-we,Math.floor(Q),Math.floor(Q)),n.globalAlpha=Ee}if(I!==void 0){var ot,mt,wt,Mt,Dt=iG(H,(ot=I.size)!==null&&ot!==void 0?ot:1),vt=(mt=I.position)!==null&&mt!==void 0?mt:[0,0],tt=[(wt=vt[0])!==null&&wt!==void 0?wt:0,(Mt=vt[1])!==null&&Mt!==void 0?Mt:0],_e=aG(Dt,z,tt),Ue=_e.iconXPos,Qe=_e.iconYPos,Ze=n.globalAlpha,nt=x?.1:1;n.globalAlpha=o.getValueForAnimationName(T,"iconOpacity",nt);var It=a.getImage(I.url);n.drawImage(It,h-Ue,g-Qe,Dt,Dt),n.globalAlpha=Ze}var ct=cG(i,f,n);if(ct.hasContent){var Lt=W<2?0:1,Rt=o.getValueForAnimationName(T,"textOpacity",Lt,0);if(Rt>0){var jt=ct.lines,Yt=ct.stylesPerChar,sr=ct.yPos,Ut=ct.fontSize,Rr=ct.fontFace;n.fillStyle=Og(X,Rt),(function(Xt,Vr,Br,mr,ur,sn,Fr,un,bn,wn){var _n=mr,xn=0,on=0,Nn="".concat(ur,"px ").concat(sn),fi="normal ".concat(Nn);Vr.forEach(function(gn){Xt.font=fi;var yn=-Tb(Xt,gn.text)/2,Jn=gn.text?(function(_i){return(function(Ir){if(Array.isArray(Ir))return kP(Ir)})(_i)||(function(Ir){if(typeof Symbol<"u"&&Ir[Symbol.iterator]!=null||Ir["@@iterator"]!=null)return Array.from(Ir)})(_i)||(function(Ir,pa){if(Ir){if(typeof Ir=="string")return kP(Ir,pa);var di={}.toString.call(Ir).slice(8,-1);return di==="Object"&&Ir.constructor&&(di=Ir.constructor.name),di==="Map"||di==="Set"?Array.from(Ir):di==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(di)?kP(Ir,pa):void 0}})(_i)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(gn.text):[];gn.hasHyphenChar||gn.hasEllipsisChar||Jn.push(" "),Jn.forEach(function(_i){var Ir,pa=Tb(Xt,_i),di=(Ir=Br[on])!==null&&Ir!==void 0?Ir:[],Bt=di.includes("bold"),hr=di.includes("italic");Xt.font=Bt&&hr?"italic 600 ".concat(Nn):hr?"italic 400 ".concat(Nn):Bt?"bold ".concat(Nn):fi,di.includes("underline")&&Xt.fillRect(un+yn+xn,bn+_n+.2,pa,.2),gn.hasEllipsisChar?Xt.fillText(_i,un+yn+xn-wn/2,bn+_n):Xt.fillText(_i,un+yn+xn,bn+_n),xn+=pa,on+=1}),Xt.font=fi,gn.hasHyphenChar&&Xt.fillText("‐",un+yn+xn,bn+_n),gn.hasEllipsisChar&&Xt.fillText(o2,un+yn+xn-wn/2,bn+_n),xn=0,_n+=Fr})})(n,jt,Yt,sr,Ut,Rr,Ut,h,g,c)}}}},{key:"enableShadow",value:function(n,i){var a=$n();n.shadowColor=i.color,n.shadowBlur=i.width*a,n.shadowOffsetX=0,n.shadowOffsetY=0}},{key:"disableShadow",value:function(n){n.shadowColor="rgba(0,0,0,0)",n.shadowBlur=0,n.shadowOffsetX=0,n.shadowOffsetY=0}},{key:"drawSegments",value:function(n,i,a,o,s){if(n.beginPath(),n.moveTo(i[0].x,i[0].y),s&&i.length>2){for(var u=1;u8&&arguments[8]!==void 0&&arguments[8],h=Math.PI/2,p=$n(),g=s.selected,y=s.width,b=s.disabled,_=s.captionAlign,m=_===void 0?"top":_,x=s.captionSize,E=x===void 0?1:x,O=Jx(s),S=O.length>0?(f=Qb(O))===null||f===void 0?void 0:f.fullCaption:"";if(S!==void 0){var T=6*E*p,P=l5,I=g===!0?"bold":"normal",k=S;n.fillStyle=b===!0?l.fontColor:c,n.font="".concat(I," ").concat(T,"px ").concat(P);var L=function(ce){return Tb(n,ce)},B=(y??1)*(g===!0?dE:1),j=L(k);if(j>o){var z=L1(k,L,function(){return o},1,!1)[0];k=z.hasEllipsisChar===!0?"".concat(z.text,"..."):k,j=o}var H=Math.cos(a),q=Math.sin(a),W={x:i.x,y:i.y},$=W.x,J=W.y,X=a;d&&(X=a-h,$+=2*T*H,J+=2*T*q,X-=h);var Z=(1+E)*p,ue=m==="bottom"?T/2+B+Z:-(B+Z);n.translate($,J),n.rotate(X),n.fillText(k,-j/2,ue),n.rotate(-X),n.translate(-$,-J);var re=2*ue*Math.sin(a),ne=2*ue*Math.cos(a),le={position:{x:i.x-re,y:i.y+ne},rotation:d?a-Math.PI:a,width:o/p,height:(T+Z)/p};u.setLabelInfo(s.id,le)}}},{key:"renderWaypointArrow",value:function(n,i,a,o,s,u,l,c,f,d){var h=arguments.length>10&&arguments[10]!==void 0?arguments[10]:TB,p=Math.PI/2,g=i.overlayIcon,y=i.color,b=i.disabled,_=i.selected,m=i.width,x=i.hovered,E=i.captionAlign,O=_===!0,S=b===!0,T=g!==void 0,P=f.rings,I=f.shadow,k=n2(i,s,a,o,l,c),L=$n(),B=Jq(i,1),j=!this.disableArrowShadow&&l,z=S?d.color:y??h,H=P[0].width*L,q=P[1].width*L,W=tG(m,O,P),$=W.headHeight,J=W.headChinHeight,X=W.headWidth,Z=W.headSelectedAdjustment,ue=W.headPositionOffset,re=e2(k[k.length-2],k[k.length-1]),ne=ue,le=Z;Math.floor(k.length/2),k.length>2&&O&&re<$+Z-J&&(ne+=re,le-=re/2+J,k.pop(),Math.floor(k.length/2));var ce,pe,fe=k[k.length-2],se=k[k.length-1],de=(ce=fe,pe=se,Math.atan2(pe.y-ce.y,pe.x-ce.x)),ge={headPosition:{x:se.x+Math.cos(de)*ne,y:se.y+Math.sin(de)*ne},headAngle:de,headHeight:$,headChinHeight:J,headWidth:X};eG(k,O,$,le,P);var Oe,ke=ib(k);try{for(ke.s();!(Oe=ke.n()).done;){var De=Oe.value;De.x=Math.round(De.x),De.y=Math.round(De.y)}}catch(jt){ke.e(jt)}finally{ke.f()}var Ne,Ce,Y=l||T?(function(jt){return(function(Yt){if(Array.isArray(Yt))return h5(Yt)})(jt)||(function(Yt){if(typeof Symbol<"u"&&Yt[Symbol.iterator]!=null||Yt["@@iterator"]!=null)return Array.from(Yt)})(jt)||d5(jt)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(k):null;if(n.save(),O){var Q=P[0].color,ie=P[1].color;j&&this.enableShadow(n,I),this.drawSegments(n,k,B+q,ie,c),op(n,q,ie,ge,!1,!0),j&&this.disableShadow(n),this.drawSegments(n,k,B+H,Q,c),op(n,H,Q,ge,!1,!0)}if(x===!0&&!O&&!S){var we=I.color;j&&this.enableShadow(n,I),this.drawSegments(n,k,B,we,c),op(n,B,we,ge),j&&this.disableShadow(n)}if(this.drawSegments(n,k,B,z,c),op(n,B,z,ge),l||T){var Ee=Qq(Y,a,o,c,O,P,E==="bottom"?"bottom":"top"),Me=lG(Y);if(l&&this.drawLabel(n,{x:Ee.x,y:Ee.y},Ee.angle,Me,i,s,d,h),T){var Ie,Ye,ot=g.position,mt=ot===void 0?[0,0]:ot,wt=g.url,Mt=g.size,Dt=NB(Mt===void 0?1:Mt),vt=[(Ie=mt[0])!==null&&Ie!==void 0?Ie:0,(Ye=mt[1])!==null&&Ye!==void 0?Ye:0],tt=LB(vt,Me,Dt),_e=tt.widthAlign,Ue=tt.heightAlign,Qe=O?(Ne=Ee.angle+p,Ce=r2(f.rings),{x:Math.cos(Ne)*Ce,y:Math.sin(Ne)*Ce}):{x:0,y:0},Ze=mt[1]<0?-1:1,nt=Qe.x*Ze,It=Qe.y*Ze,ct=Dt/2;n.translate(Ee.x,Ee.y),n.rotate(Ee.angle);var Lt=-ct+nt+_e,Rt=-ct+It+Ue;n.drawImage(u.getImage(wt),Lt,Rt,Dt,Dt),n.rotate(-Ee.angle),n.translate(-Ee.x,-Ee.y)}}n.restore()}},{key:"renderSelfArrow",value:function(n,i,a,o,s,u,l,c){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:TB,d=i.overlayIcon,h=i.selected,p=i.width,g=i.hovered,y=i.disabled,b=i.color,_=t2(i,a,o),m=_.startPoint,x=_.endPoint,E=_.apexPoint,O=_.control1Point,S=_.control2Point,T=l.rings,P=l.shadow,I=$n(),k=T[0].color,L=T[1].color,B=T[0].width*I,j=T[1].width*I,z=40*I,H=(p??1)*I,q=!this.disableArrowShadow&&u,W=H>1?H/2:1,$=9*W,J=2*W,X=7*W,Z=h===!0,ue=y===!0,re=d!==void 0,ne=Math.atan2(x.y-S.y,x.x-S.x),le=Z?B*Math.sqrt(1+2*$/X*(2*$/X)):0,ce={x:x.x-Math.cos(ne)*(.5*$-J+le),y:x.y-Math.sin(ne)*(.5*$-J+le)},pe={headPosition:{x:x.x+Math.cos(ne)*(.5*$-J-le),y:x.y+Math.sin(ne)*(.5*$-J-le)},headAngle:ne,headHeight:$,headChinHeight:J,headWidth:X};if(n.save(),n.lineCap="round",Z&&(q&&this.enableShadow(n,P),n.lineWidth=H+j,n.strokeStyle=L,this.drawLoop(n,m,ce,E,O,S),op(n,j,L,pe,!1,!0),q&&this.disableShadow(n),n.lineWidth=H+B,n.strokeStyle=k,this.drawLoop(n,m,ce,E,O,S),op(n,B,k,pe,!1,!0)),n.lineWidth=H,g===!0&&!Z&&!ue){var fe=P.color;q&&this.enableShadow(n,P),n.strokeStyle=fe,n.fillStyle=fe,this.drawLoop(n,m,ce,E,O,S),op(n,H,fe,pe),q&&this.disableShadow(n)}var se=ue?c.color:b??f;if(n.fillStyle=se,n.strokeStyle=se,this.drawLoop(n,m,ce,E,O,S),op(n,H,se,pe),u||re){var de,ge=o.indexOf(i),Oe=(de=o.angles[ge])!==null&&de!==void 0?de:0,ke=Zq(E,Oe,x,S,Z,T,p),De=ke.x,Ne=ke.y,Ce=ke.angle,Y=ke.flip;if(u&&this.drawLabel(n,{x:De,y:Ne},Ce,z,i,o,c,f,Y),re){var Q,ie,we=d.position,Ee=we===void 0?[0,0]:we,Me=d.url,Ie=d.size,Ye=NB(Ie===void 0?1:Ie),ot=[(Q=Ee[0])!==null&&Q!==void 0?Q:0,(ie=Ee[1])!==null&&ie!==void 0?ie:0],mt=LB(ot,z,Ye),wt=mt.widthAlign,Mt=mt.heightAlign+(Z?r2(l.rings):0)*(Ee[1]<0?-1:1);n.save(),n.translate(De,Ne),Y?(n.rotate(Ce-Math.PI),n.translate(2*-wt,2*-Mt)):n.rotate(Ce);var Dt=Ye/2,vt=-Dt+wt,tt=-Dt+Mt;n.drawImage(s.getImage(Me),vt,tt,Ye,Ye),n.restore()}}n.restore()}},{key:"renderArrow",value:function(n,i,a,o,s,u,l,c,f,d){var h=!(arguments.length>10&&arguments[10]!==void 0)||arguments[10];N1(a,o)&&(a.id===o.id?this.renderSelfArrow(n,i,a,s,u,l,c,f,d):this.renderWaypointArrow(n,i,a,o,s,u,l,h,c,f,d))}},{key:"render",value:function(n){var i,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.state,u=this.animationHandler,l=this.arrowBundler,c=s.zoom,f=s.layout,d=s.nodes.idToPosition,h=(i=o.canvas)!==null&&i!==void 0?i:this.canvas,p=(a=o.context)!==null&&a!==void 0?a:this.context,g=$n(),y=h.clientWidth*g,b=h.clientHeight*g;p.save(),o.backgroundColor!==void 0?(p.fillStyle=o.backgroundColor,p.fillRect(0,0,y,b)):p.clearRect(0,0,y,b),this.zoomAndPan(p,h),u.ignoreAnimations(!!o.ignoreAnimations),o.ignoreAnimations||u.advance(),l.updatePositions(d);var _=Lw(r,"getRelationshipsToRender",this,3)([o.showCaptions,c,y,b]);this.renderRelationships(_,p,f!==Zx);var m=Lw(r,"getNodesToRender",this,3)([n,y,b]);this.renderNodes(m,p,c),p.restore(),this.needsRun=!1}},{key:"renderNodes",value:function(n,i,a){var o,s=this.imageCache,u=this.animationHandler,l=this.state,c=this.ellipsisWidth,f=l.nodes.idToItem,d=l.nodeBorderStyles,h=l.disabledItemStyles,p=l.defaultNodeColor,g=ib(n);try{for(g.s();!(o=g.n()).done;){var y=o.value;this.drawNode(i,WB(WB({},f[y.id]),y),s,u,d,h,p,c,a)}}catch(b){g.e(b)}finally{g.f()}}},{key:"renderRelationships",value:function(n,i,a){var o,s=this.state.relationshipBorderStyles.selected,u=this.arrowBundler,l=this.imageCache,c=this.state,f=c.disabledItemStyles,d=c.defaultRelationshipColor,h=ib(n);try{for(h.s();!(o=h.n()).done;){var p=o.value,g=u.getBundle(p),y=p.fromNode,b=p.toNode,_=p.showLabel;this.renderArrow(i,p,y,b,g,l,_,s,f,d,a)}}catch(m){h.e(m)}finally{h.f()}}},{key:"getNodesAt",value:function(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=this.state.nodes,u=s.items,l=s.idToPosition,c=$n(),f=ib(u);try{var d=function(){var h=i.value,p=h.id,g=h.size,y=g===void 0?ha:g,b=l[p],_=b.x,m=b.y,x=Math.sqrt(Math.pow(n.x-_,2)+Math.pow(n.y-m,2));if(x<=(y+a)*c){var E=o.findIndex(function(O){return O.distance>x});o.splice(E!==-1?E:o.length,0,{data:h,targetCoordinates:{x:_,y:m},pointerCoordinates:n,distanceVector:{x:n.x-_,y:n.y-m},insideNode:x<=y*c,distance:x})}};for(f.s();!(i=f.n()).done;)d()}catch(h){f.e(h)}finally{f.f()}return o}},{key:"getRelsAt",value:function(n){var i,a=[],o=this.state,s=this.arrowBundler,u=this.relationshipThreshold,l=o.zoom,c=o.rels.items,f=o.nodes.idToPosition,d=o.layout,h=l>u,p=ib(c);try{var g=function(){var y=i.value,b=s.getBundle(y),_=f[y.from],m=f[y.to];if(_!==void 0&&m!==void 0&&b.has(y)){var x=(function(O,S,T,P,I,k){var L=arguments.length>6&&arguments[6]!==void 0&&arguments[6];if(!N1(T,P))return 1/0;var B=T===P?(function(j,z,H,q){var W=t2(z,H,q),$=W.startPoint,J=W.endPoint,X=W.apexPoint,Z=W.control1Point,ue=W.control2Point,re=MP($,X,Z,j),ne=MP(X,J,ue,j);return Math.min(re,ne)})(O,S,T,I):(function(j,z,H,q,W,$,J){var X=n2(z,H,q,W,$,J),Z=1/0;if(J&&X.length===3)Z=MP(X[0],X[2],X[1],j);else for(var ue=1;uex});a.splice(E!==-1?E:a.length,0,{data:y,fromTargetCoordinates:_,toTargetCoordinates:m,pointerCoordinates:n,distance:x})}}};for(p.s();!(i=p.n()).done;)g()}catch(y){p.e(y)}finally{p.f()}return a}},{key:"getRingStyles",value:function(n,i,a){var o=n.selected?a.selected.rings:a.default.rings;if(!o.length){var s=i.getById(n.id);return s!==void 0&&Object.entries(s).forEach(function(u){var l=(function(d,h){return(function(p){if(Array.isArray(p))return p})(d)||(function(p,g){var y=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(y!=null){var b,_,m,x,E=[],O=!0,S=!1;try{if(m=(y=y.call(p)).next,g!==0)for(;!(O=(b=m.call(y)).done)&&(E.push(b.value),E.length!==g);O=!0);}catch(T){S=!0,_=T}finally{try{if(!O&&y.return!=null&&(x=y.return(),Object(x)!==x))return}finally{if(S)throw _}}return E}})(d,h)||d5(d,h)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(u,2),c=l[0],f=l[1];c.startsWith("ring-")&&f.setEndValue(0)}),[{width:0,color:""}]}return o.map(function(u,l){var c=u.widthFactor,f=u.color,d=(n.size||ha)*c*$n();return{width:i.getValueForAnimationName(n.id,"ring-".concat(l),d),color:f}})}},{key:"zoomAndPan",value:function(n,i){var a=i.width,o=i.height,s=this.state,u=s.zoom,l=s.panX,c=s.panY;n.translate(-a/2*u,-o/2*u),n.translate(-l*u,-c*u),n.scale(u,u),n.translate(a/2/u,o/2/u),n.translate(a/2,o/2)}}],t&&Fse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})();function XB(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t=0;o--){var s=t[o],u=document.createElementNS("http://www.w3.org/2000/svg","polygon");u.setAttribute("points",a),u.setAttribute("fill","none"),u.setAttribute("stroke",s.color),u.setAttribute("stroke-width",String(s.width*n)),u.setAttribute("stroke-linecap","round"),u.setAttribute("stroke-linejoin","round"),i.push(u)}var l=document.createElementNS("http://www.w3.org/2000/svg","polygon");return l.setAttribute("points",a),l.setAttribute("fill",e),i.push(l),i},NP=function(r){var e=r.x,t=r.y,n=r.fontSize,i=r.fontFace,a=r.fontColor,o=r.textAnchor,s=r.dominantBaseline,u=r.lineSpans,l=r.transform,c=r.fontWeight,f=document.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("x",String(e)),f.setAttribute("y",String(t)),f.setAttribute("text-anchor",o),f.setAttribute("dominant-baseline",s),f.setAttribute("font-size",String(n)),f.setAttribute("font-family",i),f.setAttribute("fill",a),l&&f.setAttribute("transform",l),c&&f.setAttribute("font-weight",c);var d,h=(function(y,b){var _=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(!_){if(Array.isArray(y)||(_=(function(T,P){if(T){if(typeof T=="string")return XB(T,P);var I={}.toString.call(T).slice(8,-1);return I==="Object"&&T.constructor&&(I=T.constructor.name),I==="Map"||I==="Set"?Array.from(T):I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?XB(T,P):void 0}})(y))||b){_&&(y=_);var m=0,x=function(){};return{s:x,n:function(){return m>=y.length?{done:!0}:{done:!1,value:y[m++]}},e:function(T){throw T},f:x}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E,O=!0,S=!1;return{s:function(){_=_.call(y)},n:function(){var T=_.next();return O=T.done,T},e:function(T){S=!0,E=T},f:function(){try{O||_.return==null||_.return()}finally{if(S)throw E}}}})(u);try{for(h.s();!(d=h.n()).done;){var p=d.value,g=document.createElementNS("http://www.w3.org/2000/svg","tspan");g.textContent=p.text,zse(g,p.style),f.appendChild(g)}}catch(y){h.e(y)}finally{h.f()}return f},KB=function(r,e,t,n,i){for(var a=[],o=n.length-1;o>=0;o--){var s=n[o],u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("d",r),u.setAttribute("stroke",s.color),u.setAttribute("stroke-width",String(t+s.width*i)),u.setAttribute("stroke-linecap","round"),u.setAttribute("fill","none"),a.push(u)}var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttribute("d",r),l.setAttribute("stroke",e),l.setAttribute("stroke-width",String(t)),l.setAttribute("fill","none"),a.push(l),a},ZB=function(r,e,t,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.3333333333333333,a=Math.atan2(e.y-r.y,e.x-r.x),o={x:e.x+Math.cos(a)*(t*i),y:e.y+Math.sin(a)*(t*i)};return{tip:o,base1:{x:o.x-t*Math.cos(a)+n/2*Math.sin(a),y:o.y-t*Math.sin(a)-n/2*Math.cos(a)},base2:{x:o.x-t*Math.cos(a)-n/2*Math.sin(a),y:o.y-t*Math.sin(a)+n/2*Math.cos(a)},angle:a}},LP=function(r,e,t){for(var n=[],i="",a="",o="",s=t,u=0;u0&&n.push({text:a,style:o}),a=c,o=f,i=f):a+=c,s+=1}return a.length>0&&n.push({text:a,style:o}),n},QB=function(r){var e=r.nodeX,t=e===void 0?0:e,n=r.nodeY,i=n===void 0?0:n,a=r.iconXPos,o=r.iconYPos,s=r.iconSize,u=r.image,l=r.isDisabled,c=document.createElementNS("http://www.w3.org/2000/svg","image");c.setAttribute("x",String(t-a)),c.setAttribute("y",String(i-o));var f=String(Math.floor(s));return c.setAttribute("width",f),c.setAttribute("height",f),c.setAttribute("href",u.toDataURL()),l&&c.setAttribute("opacity","0.1"),c};function km(r){return km=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},km(r)}function JB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function jw(r){for(var e=1;e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function gG(r,e){if(r){if(typeof r=="string")return g5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g5(r,e):void 0}}function g5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t2&&arguments[2]!==void 0?arguments[2]:{};(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,r),b5(a=(function(u,l,c){return l=Wm(l),(function(f,d){if(d&&(km(d)=="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h})(f)})(u,yG()?Reflect.construct(l,c||[],Wm(u).constructor):l.apply(u,c))})(this,r,[i,BP,o]),"svg",void 0),b5(a,"measurementContext",void 0),a.svg=n;var s=document.createElement("canvas");return a.measurementContext=s.getContext("2d"),i.nodes.addChannel(BP),i.rels.addChannel(BP),a}return(function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&m5(n,i)})(r,sG),e=r,t=[{key:"render",value:function(n,i){var a,o,s,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=this.state,c=this.arrowBundler,f=l.layout,d=l.zoom,h=l.panX,p=l.panY,g=l.nodes.idToPosition,y=(a=u.svg)!==null&&a!==void 0?a:this.svg,b=y.clientWidth||((o=y.width)===null||o===void 0||(o=o.baseVal)===null||o===void 0?void 0:o.value)||parseInt(y.getAttribute("width"),10)||500,_=y.clientHeight||((s=y.height)===null||s===void 0||(s=s.baseVal)===null||s===void 0?void 0:s.value)||parseInt(y.getAttribute("height"),10)||500,m=d,x=h,E=p;for(i&&(m=1,x=i.centerX,E=i.centerY);y.firstChild;)y.removeChild(y.firstChild);if(u.backgroundColor){var O=document.createElementNS("http://www.w3.org/2000/svg","rect");O.setAttribute("width","100%"),O.setAttribute("height","100%"),O.setAttribute("fill",u.backgroundColor),y.appendChild(O)}c.updatePositions(g);var S=document.createElementNS("http://www.w3.org/2000/svg","g");S.setAttribute("transform",this.getSvgTransform(b,_,m,x,E));var T=e9(r,"getRelationshipsToRender",this)([u.showCaptions,this.state.zoom]);this.renderRelationships(T,S,f!==Zx);var P=e9(r,"getNodesToRender",this)([n]);this.renderNodes(P,S,m),y.appendChild(S),this.needsRun=!1}},{key:"renderNodes",value:function(n,i,a){var o,s=this,u=this.state,l=u.nodes.idToItem,c=u.disabledItemStyles,f=u.defaultNodeColor,d=u.nodeBorderStyles,h=jP(n);try{var p=function(){var g,y,b,_,m=o.value,x=jw(jw({},l[m.id]),m);if(!s5(x))return 1;var E=document.createElementNS("http://www.w3.org/2000/svg","g");E.setAttribute("class","node"),E.setAttribute("data-id",x.id);var O=$n(),S=(x.selected?d.selected.rings:d.default.rings).map(function(Rt){var jt=Rt.widthFactor,Yt=Rt.color;return{width:(x.size||ha)*(jt??0)*O,color:Yt}}).filter(function(Rt){return Rt.width>0}),T=(function(Rt,jt){var Yt;return((Yt=Rt.size)!==null&&Yt!==void 0?Yt:25)*jt})(x,O),P=document.createElementNS("http://www.w3.org/2000/svg","circle");P.setAttribute("cx",String((g=x.x)!==null&&g!==void 0?g:0)),P.setAttribute("cy",String((y=x.y)!==null&&y!==void 0?y:0)),P.setAttribute("r",String(T));var I=x.disabled?c.color:x.color||f;if(P.setAttribute("fill",I),E.appendChild(P),S.length>0){var k,L=T,B=jP(S);try{for(B.s();!(k=B.n()).done;){var j=k.value;if(j.width>0){var z,H;L+=j.width/2;var q=document.createElementNS("http://www.w3.org/2000/svg","circle");q.setAttribute("cx",String((z=x.x)!==null&&z!==void 0?z:0)),q.setAttribute("cy",String((H=x.y)!==null&&H!==void 0?H:0)),q.setAttribute("r",String(L)),q.setAttribute("fill","none"),q.setAttribute("stroke",j.color),q.setAttribute("stroke-width",String(j.width)),E.appendChild(q),L+=j.width/2}}}catch(Rt){B.e(Rt)}finally{B.f()}}var W=x.icon,$=x.overlayIcon,J=T,X=2*J,Z=ZD(J,a),ue=Z.nodeInfoLevel,re=Z.iconInfoLevel,ne=!!(!((b=x.captions)===null||b===void 0)&&b.length||!((_=x.caption)===null||_===void 0)&&_.length);if(W){var le,ce=rG(J,ne,re,ue),pe=nG(ce,ne,(le=x.captionAlign)!==null&&le!==void 0?le:"center",re,ue),fe=pe.iconXPos,se=pe.iconYPos,de=i5(I)==="#ffffff",ge=s.imageCache.getImage(W,de),Oe=QB({nodeX:x.x,nodeY:x.y,iconXPos:fe,iconYPos:se,iconSize:ce,image:ge,isDisabled:x.disabled===!0});E.appendChild(Oe)}if($!==void 0){var ke,De,Ne,Ce,Y=iG(X,(ke=$.size)!==null&&ke!==void 0?ke:1),Q=(De=$.position)!==null&&De!==void 0?De:[0,0],ie=[(Ne=Q[0])!==null&&Ne!==void 0?Ne:0,(Ce=Q[1])!==null&&Ce!==void 0?Ce:0],we=aG(Y,J,ie),Ee=we.iconXPos,Me=we.iconYPos,Ie=s.imageCache.getImage($.url),Ye=QB({nodeX:x.x,nodeY:x.y,iconXPos:Ee,iconYPos:Me,iconSize:Y,image:Ie,isDisabled:x.disabled===!0});E.appendChild(Ye)}var ot=cG(x,a);if(ot.hasContent){var mt=ot.lines,wt=ot.stylesPerChar,Mt=ot.fontSize,Dt=ot.fontFace,vt=ot.yPos,tt=i5(x.color||f);x.disabled&&(tt=c.fontColor);for(var _e=0,Ue=0;Ue0}):[];KB(j,z,k,H,h).forEach(function(Bt){return i.appendChild(Bt)});var q=ZB(B.control2Point,B.endPoint,9,7,2/9),W=y.disabled?c.color:y.color||f;if($B(q,W,H,h).forEach(function(Bt){return i.appendChild(Bt)}),P&&(y.captions&&y.captions.length>0||y.caption&&y.caption.length>0)){var $,J=$n(),X=y.selected===!0,Z=X?d.selected.rings:d.default.rings,ue=Zq(B.apexPoint,B.angle,B.endPoint,B.control2Point,X,Z,y.width),re=ue.x,ne=ue.y,le=ue.angle,ce=(ue.flip,Jx(y)),pe=ce.length>0?($=Qb(ce))===null||$===void 0?void 0:$.fullCaption:"";if(pe){var fe,se,de,ge,Oe=40*J,ke=(fe=y.captionSize)!==null&&fe!==void 0?fe:1,De=6*ke*J,Ne=l5,Ce=y.selected?"bold":"normal";s.measurementContext.font="".concat(Ce," ").concat(De,"px ").concat(Ne);var Y=function(Bt){return s.measurementContext.measureText(Bt).width},Q=pe;if(Y(Q)>Oe){var ie=L1(Q,Y,function(){return Oe},1,!1)[0];Q=ie.hasEllipsisChar?"".concat(ie.text,"..."):Q}var we=y.selected?dE:1,Ee=((se=y.width)!==null&&se!==void 0?se:1)*we,Me=(1+ke)*J,Ie=((de=y.captionAlign)!==null&&de!==void 0?de:"top")==="bottom"?De/2+Ee+Me:-(Ee+Me),Ye=((ge=Qb(ce))!==null&&ge!==void 0?ge:{stylesPerChar:[]}).stylesPerChar,ot=LP(Q,Ye,0),mt=NP({x:re,y:ne+Ie,fontSize:De,fontFace:Ne,fontColor:L,textAnchor:"middle",dominantBaseline:"alphabetic",lineSpans:ot,transform:"rotate(".concat(180*le/Math.PI,",").concat(re,",").concat(ne,")"),fontWeight:Ce});i.appendChild(mt)}}}else{var wt,Mt,Dt,vt=n2(y,O,S,T,P,a),tt=tG((wt=y.width)!==null&&wt!==void 0?wt:1,y.selected===!0,y.selected?d.selected.rings:d.default.rings),_e=tt.headHeight,Ue=tt.headWidth,Qe=tt.headSelectedAdjustment,Ze=tt.headPositionOffset,nt=vt.length>1?jw({},vt[vt.length-2]):null,It=vt.length>1?jw({},vt[vt.length-1]):null;if(vt.length>1){var ct=y.selected===!0,Lt=ct?d.selected.rings:d.default.rings;eG(vt,ct,_e,Qe,Lt)}var Rt=(function(Bt){return(function(hr){if(Array.isArray(hr))return g5(hr)})(Bt)||(function(hr){if(typeof Symbol<"u"&&hr[Symbol.iterator]!=null||hr["@@iterator"]!=null)return Array.from(hr)})(Bt)||gG(Bt)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(vt);if(a&&vt.length>2){var jt=(function(Bt){if(Bt.length<2)return"";var hr="M".concat(Bt[0].x,",").concat(Bt[0].y);if(Bt.length===2)return hr+" L".concat(Bt[1].x,",").concat(Bt[1].y);for(var ei=1;ei0}):[];KB(jt,Yt,k,sr,h).forEach(function(Bt){return i.appendChild(Bt)})}else{var Ut=(function(Bt){return Bt.map(function(hr){return"".concat(hr.x,",").concat(hr.y)}).join(" ")})(vt),Rr=(function(Bt,hr,ei,Hn,ds){for(var Na=[],ki=Hn.length-1;ki>=0;ki--){var Wr=Hn[ki],Nr=document.createElementNS("http://www.w3.org/2000/svg","polyline");Nr.setAttribute("points",Bt),Nr.setAttribute("stroke",Wr.color),Nr.setAttribute("stroke-width",String(ei+Wr.width*ds)),Nr.setAttribute("stroke-linecap","round"),Nr.setAttribute("fill","none"),Na.push(Nr)}var na=document.createElementNS("http://www.w3.org/2000/svg","polyline");return na.setAttribute("points",Bt),na.setAttribute("stroke",hr),na.setAttribute("stroke-width",String(ei)),na.setAttribute("fill","none"),Na.push(na),Na})(Ut,y.disabled?c.color:y.color||f,k,y.selected?I.map(function(Bt){var hr;return{color:Bt.color,width:(hr=Bt.width)!==null&&hr!==void 0?hr:0}}).filter(function(Bt){return Bt.width>0}):[],h);Rr.forEach(function(Bt){return i.appendChild(Bt)})}if(vt.length>1){var Xt=ZB(nt,It,_e,Ue,Ze/_e),Vr=y.disabled?c.color:y.color||f,Br=y.selected?I.map(function(Bt){var hr;return{color:Bt.color,width:(hr=Bt.width)!==null&&hr!==void 0?hr:0}}).filter(function(Bt){return Bt.width>0}):[];$B(Xt,Vr,Br,h).forEach(function(Bt){return i.appendChild(Bt)})}var mr=Jx(y),ur=(Mt=y.captionSize)!==null&&Mt!==void 0?Mt:1,sn=6*ur*h,Fr=l5,un=(Dt=Qb(mr))!==null&&Dt!==void 0?Dt:{fullCaption:"",stylesPerChar:[]},bn=un.fullCaption,wn=un.stylesPerChar;if(P&&bn.length>0){var _n;s.measurementContext.font="bold ".concat(sn,"px ").concat(Fr);var xn=(_n=y.captionAlign)!==null&&_n!==void 0?_n:"top",on=Qq(Rt,S,T,!0,y.selected===!0,I,xn),Nn=lG(Rt),fi=(function(Bt){var hr=180*Bt/Math.PI;return(hr>90||hr<-90)&&(hr+=180),hr})(on.angle),gn=function(Bt){return s.measurementContext.measureText(Bt).width},yn=bn;if(gn(yn)>Nn){var Jn=L1(yn,gn,function(){return Nn},1,!1)[0];yn=Jn.hasEllipsisChar?"".concat(Jn.text,"..."):yn}var _i=LP(yn,wn,0),Ir=(1+ur)*h,pa=xn==="bottom"?sn/2+k+Ir:-(k+Ir),di=NP({x:on.x,y:on.y+pa,fontSize:sn,fontFace:Fr,fontColor:L,textAnchor:"middle",dominantBaseline:"alphabetic",lineSpans:_i,transform:"rotate(".concat(fi,",").concat(on.x,",").concat(on.y,")"),fontWeight:y.selected?"bold":void 0});i.appendChild(di)}}};for(p.s();!(o=p.n()).done;)g()}catch(y){p.e(y)}finally{p.f()}}},{key:"getSvgTransform",value:function(n,i,a,o,s){var u=i/2;return"translate(".concat(n/2,",").concat(u,") scale(").concat(a,") translate(").concat(-o,",").concat(-s,")")}}],t&&qse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})(),bG=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=(function(o,s){if((0,Hi.isNil)(o)||(0,Hi.isNil)(s))return{offsetX:0,offsetY:0};var u=s.getBoundingClientRect(),l=window.devicePixelRatio||1;return{offsetX:l*(o.clientX-u.left-.5*u.width),offsetY:l*(o.clientY-u.top-.5*u.height)}})(r,e);return{x:n+a.offsetX/t,y:i+a.offsetY/t}};function t1(r){return t1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t1(r)}function _G(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Vse(r,e){for(var t=0;t0}},{key:"renderMainScene",value:function(r){var e=this.state,t=e.nodes,n=e.rels;this.checkForUpdates(t,n),this.mainSceneRenderer.render(r),this.needsRun=!1}},{key:"renderMinimap",value:function(r){var e=this.state,t=e.nodes,n=e.rels;this.checkForUpdates(t,n),this.minimapRenderer.render(r),this.minimapRenderer.renderViewbox(),this.needsRun=!1}},{key:"checkForUpdates",value:function(r,e){var t=Object.values(r.channels[Mf].adds).length>0,n=Object.values(e.channels[Mf].adds).length>0,i=Object.values(r.channels[Mf].removes).length>0,a=Object.values(e.channels[Mf].removes).length>0,o=Object.values(r.channels[Mf].updates),s=Object.values(e.channels[Mf].updates);t||n||i||a?(this.mainSceneRenderer.setData({nodes:r.items,rels:e.items}),this.minimapRenderer.setData({nodes:r.items,rels:e.items})):(o.length>0&&(this.mainSceneRenderer.updateNodes(o),this.minimapRenderer.updateNodes(o)),s.length>0&&(this.mainSceneRenderer.updateRelationships(e.items),this.minimapRenderer.updateRelationships(e.items))),r.clearChannel(Mf),e.clearChannel(Mf)}},{key:"onResize",value:function(){var r=this.state,e=r.zoom,t=r.panX,n=r.panY,i=r.minimapZoom,a=r.minimapPanX,o=r.minimapPanY;this.updateMainViewport(e,t,n),this.updateMinimapViewport(i,a,o)}},{key:"updateMainViewport",value:function(r,e,t){this.mainSceneRenderer.updateViewport(r,e,t);var n=this.mainSceneRenderer.canvas.clientWidth,i=this.mainSceneRenderer.canvas.clientHeight;this.minimapRenderer.updateViewportBox(r,e,t,n,i),this.needsRun=!0}},{key:"updateMinimapViewport",value:function(r,e,t){this.minimapRenderer.updateViewport(r,e,t),this.needsRun=!0}},{key:"handleMinimapDrag",value:function(r){var e=this.state,t=this.minimapRenderer,n=bG(r,t.canvas,e.minimapZoom,e.minimapPanX,e.minimapPanY),i=n.x,a=n.y;e.setPan(i,a)}},{key:"handleMinimapWheel",value:function(r){var e=this.state,t=this.mainSceneRenderer;e.setZoom((function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return(0,Hi.isNil)(n)||isNaN(n.deltaY)?i:i-n.deltaY/500*Math.min(1,i)})(r,e.zoom),t.canvas),r.preventDefault()}},{key:"setupMinimapInteractions",value:function(){var r=this,e=this.minimapRenderer.canvas;e.addEventListener("mousedown",function(t){r.handleMinimapDrag(t),r.minimapMouseDown=!0}),e.addEventListener("mousemove",function(t){r.minimapMouseDown&&r.handleMinimapDrag(t)}),e.addEventListener("mouseup",function(){r.minimapMouseDown=!1}),e.addEventListener("mouseleave",function(){r.minimapMouseDown=!1}),e.addEventListener("wheel",function(t){r.handleMinimapWheel(t)})}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(r){r()}),this.state.nodes.removeChannel(Mf),this.state.rels.removeChannel(Mf),this.mainSceneRenderer.destroy(),this.minimapRenderer.destroy()}}])})(),Wse=(function(){return wG(function r(){_G(this,r),Nf(this,"mainSceneRenderer",void 0),Nf(this,"minimapRenderer",void 0),Nf(this,"needsRun",void 0),Nf(this,"minimapMouseDown",void 0),Nf(this,"stateDisposers",void 0),Nf(this,"state",void 0)},[{key:"renderMainScene",value:function(r){}},{key:"renderMinimap",value:function(r){}},{key:"checkForUpdates",value:function(r,e){}},{key:"onResize",value:function(){}},{key:"updateMainViewport",value:function(r,e,t){}},{key:"updateMinimapViewport",value:function(r,e,t){}},{key:"handleMinimapDrag",value:function(r){}},{key:"handleMinimapWheel",value:function(r){}},{key:"setupMinimapInteractions",value:function(){}},{key:"destroy",value:function(){}},{key:"needsToRun",value:function(){return!1}}])})();function r1(r){return r1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r1(r)}function FP(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=(function(u,l){if(u){if(typeof u=="string")return t9(u,l);var c={}.toString.call(u).slice(8,-1);return c==="Object"&&u.constructor&&(c=u.constructor.name),c==="Map"||c==="Set"?Array.from(u):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?t9(u,l):void 0}})(r))||e){t&&(r=t);var n=0,i=function(){};return{s:i,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function t9(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t_;){for(m-=1;kse(x());)m-=1;if(!(m-u>1)){i="",f=!0,c=!1;break}i=r.slice(u,m),b=e(i),f=!0,c=!1}return s[l]={text:i,hasEllipsisChar:f,hasHyphenChar:c},{v:s}}c=!1,f=!1;var E=(function(S){var T=S.length,P=Math.min(T-1,3);if(T===1)return{hyphen:!1,cnt:0};for(var I=0;I_;){if(!(O-u>1)){i=r[u],O=u+1,b=e(i),c=!1;break}O-=1,i=r.slice(u,O),b=e(i),c=!0}else i=(i=r.slice(u,O)).trim();s[l]={text:i,hasEllipsisChar:f,hasHyphenChar:c},u=O,l+=1}},g=1;g<=r.length;g++)if(h=p())return h.v;return i=r.slice(u,r.length),s[l]={text:i,hasEllipsisChar:f,hasHyphenChar:!1},s},Qb=function(){var r=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).reduce(function(e,t,n){var i=t.value;if(i){var a="".concat(n>0&&e.length?", ":"").concat(i);return[].concat(nb(e),[a2(a2({},t),{},{value:a,chars:a.split("").map(function(o,s){var u,l;return n!==0&&e.length?s<2?null:nb((u=t.styles)!==null&&u!==void 0?u:[]):nb((l=t.styles)!==null&&l!==void 0?l:[])})})])}return e},[]);return{stylesPerChar:r.reduce(function(e,t){return[].concat(nb(e),nb(t.chars))},[]),fullCaption:r.map(function(e){return e.value}).join("")}};function cG(r,e,t){var n,i,a,o=r.size,s=o===void 0?ha:o,u=r.caption,l=u===void 0?"":u,c=r.captions,f=c===void 0?[]:c,d=r.captionAlign,h=d===void 0?"center":d,p=r.captionSize,g=p===void 0?1:p,y=r.icon,b=s*$n(),_=2*b,m=QD(b,e).fontInfoLevel,x=(function(z){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:ha)/({1:3.5,2:2.75,3:2}[arguments.length>2&&arguments[2]!==void 0?arguments[2]:1]+(arguments.length>3&&arguments[3]!==void 0&&arguments[3]?1:0))/z})(m,b,g,!!y),E=f.length>0,O=l.length>0,S=[],T="";if(!E&&!O)return{lines:[],stylesPerChar:[],fullCaption:"",fontSize:x,fontFace:wb,fontColor:"",yPos:0,maxNoLines:2,hasContent:!1};if(E){var P=Qb(f);S=P.stylesPerChar,T=P.fullCaption}else O&&(T=l,S=l.split("").map(function(){return[]}));var I=2;m===((n=i2[1])===null||n===void 0?void 0:n[1])?I=3:m===((i=i2[2])===null||i===void 0?void 0:i[1])&&(I=4);var k=h==="center"?.7*_:2*Math.sqrt(Math.pow(_/2,2)-Math.pow(_/3,2)),L=t;L||(L=document.createElement("canvas").getContext("2d")),L.font="bold ".concat(x,"px ").concat(wb),a=(function(z,H,q,W,$,J,X){var Z=(function(fe){return/[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(fe)})(H)?H.split("").reverse().join(""):H;z.font="bold ".concat(W,"px ").concat(q).replace(/"/g,"");for(var ue=function(fe){return Tb(z,fe)},re=J?(X<4?["",""]:[""]).length:0,ne=function(fe,se){return(function(de,ge,Oe){var ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"top",De=.98*Oe,Ne=.89*Oe,Ce=.95*Oe;return ge===1?De:ge===2?Ce:ge===3&&ke==="top"?de===0||de===2?Ne:De:ge===4&&ke==="top"?de===0||de===3?.78*Oe:Ce:ge===5&&ke==="top"?de===0||de===4?.65*Oe:de===1||de===3?Ne:Ce:De})(fe+re,se+re,$)},le=1,ce=[],pe=function(){if((ce=(function(se,de,ge,Oe){var ke,De=se.split(/\s/g).filter(function(Ie){return Ie.length>0}),Ne=[],Ce=null,Y=function(Ie){return de(Ie)>ge(Ne.length,Oe)},Q=(function(Ie){var Ye=typeof Symbol<"u"&&Ie[Symbol.iterator]||Ie["@@iterator"];if(!Ye){if(Array.isArray(Ie)||(Ye=uG(Ie))){Ye&&(Ie=Ye);var ot=0,mt=function(){};return{s:mt,n:function(){return ot>=Ie.length?{done:!0}:{done:!1,value:Ie[ot++]}},e:function(vt){throw vt},f:mt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wt,Mt=!0,Dt=!1;return{s:function(){Ye=Ye.call(Ie)},n:function(){var vt=Ye.next();return Mt=vt.done,vt},e:function(vt){Dt=!0,wt=vt},f:function(){try{Mt||Ye.return==null||Ye.return()}finally{if(Dt)throw wt}}}})(De);try{for(Q.s();!(ke=Q.n()).done;){var ie=ke.value,we=Ce?"".concat(Ce," ").concat(ie):ie;if(de(we)Oe)return[]}}}catch(Ie){Q.e(Ie)}finally{Q.f()}if(Ce){var Me=Y(Ce);Ne.push({text:Ce,overflowed:Me})}return Ne.length<=Oe?Ne:[]})(Z,ue,ne,le)).length===0)ce=L1(Z,ue,ne,le,X>le);else if(ce.some(function(se){return se.overflowed})){var fe=le;ce=ce.reduce(function(se,de){var ge=X-se.length;if(ge===0){var Oe=se[se.length-1];return Oe.text.endsWith(o2)||(ue(Oe.text)+ue(o2)>ne(se.length,fe)?(se[se.length-1].text=Oe.text.slice(0,-2),se[se.length-1].hasEllipsisChar=!0):(se[se.length-1].text=Oe.text,se[se.length-1].hasEllipsisChar=!0)),se}if(de.overflowed){var ke=L1(de.text,ue,ne,ge);se=se.concat(ke)}else se.push({text:de.text,hasEllipsisChar:!1,hasHyphenChar:!1});return se},[])}else ce=ce.map(function(se){return a2(a2({},se),{},{hasEllipsisChar:!1,hasHyphenChar:!1})});le+=1};ce.length===0;)pe();return Array.from(ce)})(L,T,wb,x,k,!!y,I);var B,j=-(a.length-2)*x/2;return B=h&&h!=="center"?h==="bottom"?j+b/Math.PI:j-b/Math.PI:j,{lines:a,stylesPerChar:S,fullCaption:T,fontSize:x,fontFace:wb,fontColor:"",yPos:B,maxNoLines:I,hasContent:!0}}function Jb(r){return Jb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jb(r)}function Ise(r,e){for(var t=0;t0?(this.currentTime-this.startTime)/n:1)>=1?(this.currentValue=this.endValue,this.status=2):(this.currentValue=this.startValue+t*(this.endValue-this.startValue),this.hasNextAnimation=!0),this.hasNextAnimation}},{key:"setEndValue",value:function(t){this.endValue!==t&&(t-this.currentValue!==0?(this.currentTime=new Date().getTime(),this.status=1,this.startValue=this.currentValue,this.endValue=t,this.startTime=this.currentTime,this.setEndTime(this.startTime+this.duration)):this.endValue=t)}},{key:"setEndTime",value:function(t){this.endTime=Math.max(t,this.startTime)}}])&&Ise(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function e1(r){return e1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e1(r)}function GB(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function VB(r){for(var e=1;e3&&arguments[3]!==void 0?arguments[3]:1;if(this.ignoreAnimationsFlag)return i;var u=(a=this.getById(t))!==null&&a!==void 0?a:{};if(u[n]===void 0){var l=s===1?this.createSizeAnimation(0,t,n):this.createFadeAnimation(0,t,n);l.setEndValue(i),o=l.currentValue}else{var c=u[n];if(c.currentValue===i)return i;c.setEndValue(i),o=c.currentValue}return this.hasNextAnimation=!0,o}},{key:"createAnimation",value:function(t,n,i){var a,o=new Nse(n,t),s=(a=this.animations.get(n))!==null&&a!==void 0?a:{};return this.animations.set(n,VB(VB({},s),{},kg({},i,o))),o}},{key:"getById",value:function(t){return this.animations.get(t)}},{key:"createFadeAnimation",value:function(t,n,i){var a,o=this.createAnimation(t,n,i);return o.setDuration((a=this.durations[0])!==null&&a!==void 0?a:this.defaultDuration),o}},{key:"createSizeAnimation",value:function(t,n,i){var a,o=this.createAnimation(t,n,i);return o.setDuration((a=this.durations[1])!==null&&a!==void 0?a:this.defaultDuration),o}}],e&&Lse(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function kP(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t4&&arguments[4]!==void 0)||arguments[4],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],o=n.headPosition,s=n.headAngle,u=n.headHeight,l=n.headChinHeight,c=n.headWidth,f=Math.cos(s),d=Math.sin(s),h=function(y,b){return{x:o.x+y*f-b*d,y:o.y+y*d+b*f}},p=[h(l-u,0),h(-u,c/2),h(0,0),h(-u,-c/2)],g={lineWidth:r.lineWidth,strokeStyle:r.strokeStyle,fillStyle:r.fillStyle};r.lineWidth=e,r.strokeStyle=t,r.fillStyle=t,(function(y,b,_,m){if(y.beginPath(),b.length>0){var x=b[0];y.moveTo(x.x,x.y)}for(var E=1;E=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function h5(r,e){if(r){if(typeof r=="string")return v5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v5(r,e):void 0}}function v5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t3&&arguments[3]!==void 0?arguments[3]:{};return(function(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")})(this,r),s=this,l=[a,IP,c],u=Hm(u=r),dm(o=XB(s,vG()?Reflect.construct(u,l||[],Hm(s).constructor):u.apply(s,l)),"canvas",void 0),dm(o,"context",void 0),dm(o,"animationHandler",void 0),dm(o,"ellipsisWidth",void 0),dm(o,"disableArrowShadow",!1),i===null?XB(o):(o.canvas=n,o.context=i,a.nodes.addChannel(IP),a.rels.addChannel(IP),o.animationHandler=new jse,o.animationHandler.setOptions({fadeDuration:150,sizeDuration:150}),o.ellipsisWidth=Tb(i,o2),o)}return(function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&g5(n,i)})(r,sG),e=r,t=[{key:"needsToRun",value:function(){return Lw(r,"needsToRun",this,3)([])||this.animationHandler.needsToRun()||this.activeNodes.size>0}},{key:"processUpdates",value:function(){Lw(r,"processUpdates",this,3)([]);var n=this.state.rels.items.filter(function(i){return i.selected||i.hovered});this.disableArrowShadow=n.length>500}},{key:"drawNode",value:function(n,i,a,o,s,u,l,c,f){var d=i.x,h=d===void 0?0:d,p=i.y,g=p===void 0?0:p,y=i.size,b=y===void 0?ha:y,_=i.captionAlign,m=_===void 0?"center":_,x=i.disabled,E=i.activated,O=i.selected,S=i.hovered,T=i.id,P=i.icon,I=i.overlayIcon,k=Jx(i),L=$n(),B=this.getRingStyles(i,o,s),j=B.reduce(function(Xt,Vr){return Xt+Vr.width},0),z=b*L,H=2*z,q=QD(z,f),W=q.nodeInfoLevel,$=q.iconInfoLevel,J=i.color||l,X=a5(J),Z=z;if(j>0&&(Z=z+j),x)J=u.color,X=u.fontColor;else{var ue;if(E){var re=Date.now()%1e3/1e3,ne=re<.7?re/.7:0,le=Og(J,.4-.4*ne);HB(n,h,g,le,z+.88*z*ne)}var ce=(ue=s.selected.shadow)!==null&&ue!==void 0?ue:{width:0,opacity:0,color:""},pe=ce.width*L,fe=ce.opacity,se=ce.color,de=O||S?pe:0,ge=o.getValueForAnimationName(T,"shadowWidth",de);ge>0&&(function(Xt,Vr,Br,mr,ur,sn){var Fr=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,un=ur+sn,bn=Xt.createRadialGradient(Vr,Br,ur,Vr,Br,un);bn.addColorStop(0,"transparent"),bn.addColorStop(.01,Og(mr,.5*Fr)),bn.addColorStop(.05,Og(mr,.5*Fr)),bn.addColorStop(.5,Og(mr,.12*Fr)),bn.addColorStop(.75,Og(mr,.03*Fr)),bn.addColorStop(1,Og(mr,0)),Xt.fillStyle=bn,hG(Xt,Vr,Br,un),Xt.fill()})(n,h,g,se,Z,ge,fe)}HB(n,h,g,J,z),j>0&&Bse(n,h,g,z,B);var Oe=!!k.length;if(P){var ke=rG(z,Oe,$,W),De=W>0?1:0,Ne=nG(ke,Oe,m,$,W),Ce=Ne.iconXPos,Y=Ne.iconYPos,Q=o.getValueForAnimationName(T,"iconSize",ke),ie=o.getValueForAnimationName(T,"iconXPos",Ce),we=o.getValueForAnimationName(T,"iconYPos",Y),Ee=n.globalAlpha,Me=x?.1:De;n.globalAlpha=o.getValueForAnimationName(T,"iconOpacity",Me);var Ie=X==="#ffffff",Ye=a.getImage(P,Ie);n.drawImage(Ye,h-ie,g-we,Math.floor(Q),Math.floor(Q)),n.globalAlpha=Ee}if(I!==void 0){var ot,mt,wt,Mt,Dt=iG(H,(ot=I.size)!==null&&ot!==void 0?ot:1),vt=(mt=I.position)!==null&&mt!==void 0?mt:[0,0],tt=[(wt=vt[0])!==null&&wt!==void 0?wt:0,(Mt=vt[1])!==null&&Mt!==void 0?Mt:0],_e=aG(Dt,z,tt),Ue=_e.iconXPos,Qe=_e.iconYPos,Ze=n.globalAlpha,nt=x?.1:1;n.globalAlpha=o.getValueForAnimationName(T,"iconOpacity",nt);var It=a.getImage(I.url);n.drawImage(It,h-Ue,g-Qe,Dt,Dt),n.globalAlpha=Ze}var ct=cG(i,f,n);if(ct.hasContent){var Lt=W<2?0:1,Rt=o.getValueForAnimationName(T,"textOpacity",Lt,0);if(Rt>0){var jt=ct.lines,Yt=ct.stylesPerChar,sr=ct.yPos,Ut=ct.fontSize,Rr=ct.fontFace;n.fillStyle=Og(X,Rt),(function(Xt,Vr,Br,mr,ur,sn,Fr,un,bn,wn){var _n=mr,xn=0,on=0,Nn="".concat(ur,"px ").concat(sn),fi="normal ".concat(Nn);Vr.forEach(function(gn){Xt.font=fi;var yn=-Tb(Xt,gn.text)/2,Jn=gn.text?(function(_i){return(function(Ir){if(Array.isArray(Ir))return kP(Ir)})(_i)||(function(Ir){if(typeof Symbol<"u"&&Ir[Symbol.iterator]!=null||Ir["@@iterator"]!=null)return Array.from(Ir)})(_i)||(function(Ir,pa){if(Ir){if(typeof Ir=="string")return kP(Ir,pa);var di={}.toString.call(Ir).slice(8,-1);return di==="Object"&&Ir.constructor&&(di=Ir.constructor.name),di==="Map"||di==="Set"?Array.from(Ir):di==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(di)?kP(Ir,pa):void 0}})(_i)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(gn.text):[];gn.hasHyphenChar||gn.hasEllipsisChar||Jn.push(" "),Jn.forEach(function(_i){var Ir,pa=Tb(Xt,_i),di=(Ir=Br[on])!==null&&Ir!==void 0?Ir:[],Bt=di.includes("bold"),hr=di.includes("italic");Xt.font=Bt&&hr?"italic 600 ".concat(Nn):hr?"italic 400 ".concat(Nn):Bt?"bold ".concat(Nn):fi,di.includes("underline")&&Xt.fillRect(un+yn+xn,bn+_n+.2,pa,.2),gn.hasEllipsisChar?Xt.fillText(_i,un+yn+xn-wn/2,bn+_n):Xt.fillText(_i,un+yn+xn,bn+_n),xn+=pa,on+=1}),Xt.font=fi,gn.hasHyphenChar&&Xt.fillText("‐",un+yn+xn,bn+_n),gn.hasEllipsisChar&&Xt.fillText(o2,un+yn+xn-wn/2,bn+_n),xn=0,_n+=Fr})})(n,jt,Yt,sr,Ut,Rr,Ut,h,g,c)}}}},{key:"enableShadow",value:function(n,i){var a=$n();n.shadowColor=i.color,n.shadowBlur=i.width*a,n.shadowOffsetX=0,n.shadowOffsetY=0}},{key:"disableShadow",value:function(n){n.shadowColor="rgba(0,0,0,0)",n.shadowBlur=0,n.shadowOffsetX=0,n.shadowOffsetY=0}},{key:"drawSegments",value:function(n,i,a,o,s){if(n.beginPath(),n.moveTo(i[0].x,i[0].y),s&&i.length>2){for(var u=1;u8&&arguments[8]!==void 0&&arguments[8],h=Math.PI/2,p=$n(),g=s.selected,y=s.width,b=s.disabled,_=s.captionAlign,m=_===void 0?"top":_,x=s.captionSize,E=x===void 0?1:x,O=Jx(s),S=O.length>0?(f=Qb(O))===null||f===void 0?void 0:f.fullCaption:"";if(S!==void 0){var T=6*E*p,P=c5,I=g===!0?"bold":"normal",k=S;n.fillStyle=b===!0?l.fontColor:c,n.font="".concat(I," ").concat(T,"px ").concat(P);var L=function(ce){return Tb(n,ce)},B=(y??1)*(g===!0?dE:1),j=L(k);if(j>o){var z=L1(k,L,function(){return o},1,!1)[0];k=z.hasEllipsisChar===!0?"".concat(z.text,"..."):k,j=o}var H=Math.cos(a),q=Math.sin(a),W={x:i.x,y:i.y},$=W.x,J=W.y,X=a;d&&(X=a-h,$+=2*T*H,J+=2*T*q,X-=h);var Z=(1+E)*p,ue=m==="bottom"?T/2+B+Z:-(B+Z);n.translate($,J),n.rotate(X),n.fillText(k,-j/2,ue),n.rotate(-X),n.translate(-$,-J);var re=2*ue*Math.sin(a),ne=2*ue*Math.cos(a),le={position:{x:i.x-re,y:i.y+ne},rotation:d?a-Math.PI:a,width:o/p,height:(T+Z)/p};u.setLabelInfo(s.id,le)}}},{key:"renderWaypointArrow",value:function(n,i,a,o,s,u,l,c,f,d){var h=arguments.length>10&&arguments[10]!==void 0?arguments[10]:CB,p=Math.PI/2,g=i.overlayIcon,y=i.color,b=i.disabled,_=i.selected,m=i.width,x=i.hovered,E=i.captionAlign,O=_===!0,S=b===!0,T=g!==void 0,P=f.rings,I=f.shadow,k=n2(i,s,a,o,l,c),L=$n(),B=Jq(i,1),j=!this.disableArrowShadow&&l,z=S?d.color:y??h,H=P[0].width*L,q=P[1].width*L,W=tG(m,O,P),$=W.headHeight,J=W.headChinHeight,X=W.headWidth,Z=W.headSelectedAdjustment,ue=W.headPositionOffset,re=e2(k[k.length-2],k[k.length-1]),ne=ue,le=Z;Math.floor(k.length/2),k.length>2&&O&&re<$+Z-J&&(ne+=re,le-=re/2+J,k.pop(),Math.floor(k.length/2));var ce,pe,fe=k[k.length-2],se=k[k.length-1],de=(ce=fe,pe=se,Math.atan2(pe.y-ce.y,pe.x-ce.x)),ge={headPosition:{x:se.x+Math.cos(de)*ne,y:se.y+Math.sin(de)*ne},headAngle:de,headHeight:$,headChinHeight:J,headWidth:X};eG(k,O,$,le,P);var Oe,ke=ib(k);try{for(ke.s();!(Oe=ke.n()).done;){var De=Oe.value;De.x=Math.round(De.x),De.y=Math.round(De.y)}}catch(jt){ke.e(jt)}finally{ke.f()}var Ne,Ce,Y=l||T?(function(jt){return(function(Yt){if(Array.isArray(Yt))return v5(Yt)})(jt)||(function(Yt){if(typeof Symbol<"u"&&Yt[Symbol.iterator]!=null||Yt["@@iterator"]!=null)return Array.from(Yt)})(jt)||h5(jt)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(k):null;if(n.save(),O){var Q=P[0].color,ie=P[1].color;j&&this.enableShadow(n,I),this.drawSegments(n,k,B+q,ie,c),op(n,q,ie,ge,!1,!0),j&&this.disableShadow(n),this.drawSegments(n,k,B+H,Q,c),op(n,H,Q,ge,!1,!0)}if(x===!0&&!O&&!S){var we=I.color;j&&this.enableShadow(n,I),this.drawSegments(n,k,B,we,c),op(n,B,we,ge),j&&this.disableShadow(n)}if(this.drawSegments(n,k,B,z,c),op(n,B,z,ge),l||T){var Ee=Qq(Y,a,o,c,O,P,E==="bottom"?"bottom":"top"),Me=lG(Y);if(l&&this.drawLabel(n,{x:Ee.x,y:Ee.y},Ee.angle,Me,i,s,d,h),T){var Ie,Ye,ot=g.position,mt=ot===void 0?[0,0]:ot,wt=g.url,Mt=g.size,Dt=LB(Mt===void 0?1:Mt),vt=[(Ie=mt[0])!==null&&Ie!==void 0?Ie:0,(Ye=mt[1])!==null&&Ye!==void 0?Ye:0],tt=jB(vt,Me,Dt),_e=tt.widthAlign,Ue=tt.heightAlign,Qe=O?(Ne=Ee.angle+p,Ce=r2(f.rings),{x:Math.cos(Ne)*Ce,y:Math.sin(Ne)*Ce}):{x:0,y:0},Ze=mt[1]<0?-1:1,nt=Qe.x*Ze,It=Qe.y*Ze,ct=Dt/2;n.translate(Ee.x,Ee.y),n.rotate(Ee.angle);var Lt=-ct+nt+_e,Rt=-ct+It+Ue;n.drawImage(u.getImage(wt),Lt,Rt,Dt,Dt),n.rotate(-Ee.angle),n.translate(-Ee.x,-Ee.y)}}n.restore()}},{key:"renderSelfArrow",value:function(n,i,a,o,s,u,l,c){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:CB,d=i.overlayIcon,h=i.selected,p=i.width,g=i.hovered,y=i.disabled,b=i.color,_=t2(i,a,o),m=_.startPoint,x=_.endPoint,E=_.apexPoint,O=_.control1Point,S=_.control2Point,T=l.rings,P=l.shadow,I=$n(),k=T[0].color,L=T[1].color,B=T[0].width*I,j=T[1].width*I,z=40*I,H=(p??1)*I,q=!this.disableArrowShadow&&u,W=H>1?H/2:1,$=9*W,J=2*W,X=7*W,Z=h===!0,ue=y===!0,re=d!==void 0,ne=Math.atan2(x.y-S.y,x.x-S.x),le=Z?B*Math.sqrt(1+2*$/X*(2*$/X)):0,ce={x:x.x-Math.cos(ne)*(.5*$-J+le),y:x.y-Math.sin(ne)*(.5*$-J+le)},pe={headPosition:{x:x.x+Math.cos(ne)*(.5*$-J-le),y:x.y+Math.sin(ne)*(.5*$-J-le)},headAngle:ne,headHeight:$,headChinHeight:J,headWidth:X};if(n.save(),n.lineCap="round",Z&&(q&&this.enableShadow(n,P),n.lineWidth=H+j,n.strokeStyle=L,this.drawLoop(n,m,ce,E,O,S),op(n,j,L,pe,!1,!0),q&&this.disableShadow(n),n.lineWidth=H+B,n.strokeStyle=k,this.drawLoop(n,m,ce,E,O,S),op(n,B,k,pe,!1,!0)),n.lineWidth=H,g===!0&&!Z&&!ue){var fe=P.color;q&&this.enableShadow(n,P),n.strokeStyle=fe,n.fillStyle=fe,this.drawLoop(n,m,ce,E,O,S),op(n,H,fe,pe),q&&this.disableShadow(n)}var se=ue?c.color:b??f;if(n.fillStyle=se,n.strokeStyle=se,this.drawLoop(n,m,ce,E,O,S),op(n,H,se,pe),u||re){var de,ge=o.indexOf(i),Oe=(de=o.angles[ge])!==null&&de!==void 0?de:0,ke=Zq(E,Oe,x,S,Z,T,p),De=ke.x,Ne=ke.y,Ce=ke.angle,Y=ke.flip;if(u&&this.drawLabel(n,{x:De,y:Ne},Ce,z,i,o,c,f,Y),re){var Q,ie,we=d.position,Ee=we===void 0?[0,0]:we,Me=d.url,Ie=d.size,Ye=LB(Ie===void 0?1:Ie),ot=[(Q=Ee[0])!==null&&Q!==void 0?Q:0,(ie=Ee[1])!==null&&ie!==void 0?ie:0],mt=jB(ot,z,Ye),wt=mt.widthAlign,Mt=mt.heightAlign+(Z?r2(l.rings):0)*(Ee[1]<0?-1:1);n.save(),n.translate(De,Ne),Y?(n.rotate(Ce-Math.PI),n.translate(2*-wt,2*-Mt)):n.rotate(Ce);var Dt=Ye/2,vt=-Dt+wt,tt=-Dt+Mt;n.drawImage(s.getImage(Me),vt,tt,Ye,Ye),n.restore()}}n.restore()}},{key:"renderArrow",value:function(n,i,a,o,s,u,l,c,f,d){var h=!(arguments.length>10&&arguments[10]!==void 0)||arguments[10];N1(a,o)&&(a.id===o.id?this.renderSelfArrow(n,i,a,s,u,l,c,f,d):this.renderWaypointArrow(n,i,a,o,s,u,l,h,c,f,d))}},{key:"render",value:function(n){var i,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.state,u=this.animationHandler,l=this.arrowBundler,c=s.zoom,f=s.layout,d=s.nodes.idToPosition,h=(i=o.canvas)!==null&&i!==void 0?i:this.canvas,p=(a=o.context)!==null&&a!==void 0?a:this.context,g=$n(),y=h.clientWidth*g,b=h.clientHeight*g;p.save(),o.backgroundColor!==void 0?(p.fillStyle=o.backgroundColor,p.fillRect(0,0,y,b)):p.clearRect(0,0,y,b),this.zoomAndPan(p,h),u.ignoreAnimations(!!o.ignoreAnimations),o.ignoreAnimations||u.advance(),l.updatePositions(d);var _=Lw(r,"getRelationshipsToRender",this,3)([o.showCaptions,c,y,b]);this.renderRelationships(_,p,f!==Zx);var m=Lw(r,"getNodesToRender",this,3)([n,y,b]);this.renderNodes(m,p,c),p.restore(),this.needsRun=!1}},{key:"renderNodes",value:function(n,i,a){var o,s=this.imageCache,u=this.animationHandler,l=this.state,c=this.ellipsisWidth,f=l.nodes.idToItem,d=l.nodeBorderStyles,h=l.disabledItemStyles,p=l.defaultNodeColor,g=ib(n);try{for(g.s();!(o=g.n()).done;){var y=o.value;this.drawNode(i,YB(YB({},f[y.id]),y),s,u,d,h,p,c,a)}}catch(b){g.e(b)}finally{g.f()}}},{key:"renderRelationships",value:function(n,i,a){var o,s=this.state.relationshipBorderStyles.selected,u=this.arrowBundler,l=this.imageCache,c=this.state,f=c.disabledItemStyles,d=c.defaultRelationshipColor,h=ib(n);try{for(h.s();!(o=h.n()).done;){var p=o.value,g=u.getBundle(p),y=p.fromNode,b=p.toNode,_=p.showLabel;this.renderArrow(i,p,y,b,g,l,_,s,f,d,a)}}catch(m){h.e(m)}finally{h.f()}}},{key:"getNodesAt",value:function(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=this.state.nodes,u=s.items,l=s.idToPosition,c=$n(),f=ib(u);try{var d=function(){var h=i.value,p=h.id,g=h.size,y=g===void 0?ha:g,b=l[p],_=b.x,m=b.y,x=Math.sqrt(Math.pow(n.x-_,2)+Math.pow(n.y-m,2));if(x<=(y+a)*c){var E=o.findIndex(function(O){return O.distance>x});o.splice(E!==-1?E:o.length,0,{data:h,targetCoordinates:{x:_,y:m},pointerCoordinates:n,distanceVector:{x:n.x-_,y:n.y-m},insideNode:x<=y*c,distance:x})}};for(f.s();!(i=f.n()).done;)d()}catch(h){f.e(h)}finally{f.f()}return o}},{key:"getRelsAt",value:function(n){var i,a=[],o=this.state,s=this.arrowBundler,u=this.relationshipThreshold,l=o.zoom,c=o.rels.items,f=o.nodes.idToPosition,d=o.layout,h=l>u,p=ib(c);try{var g=function(){var y=i.value,b=s.getBundle(y),_=f[y.from],m=f[y.to];if(_!==void 0&&m!==void 0&&b.has(y)){var x=(function(O,S,T,P,I,k){var L=arguments.length>6&&arguments[6]!==void 0&&arguments[6];if(!N1(T,P))return 1/0;var B=T===P?(function(j,z,H,q){var W=t2(z,H,q),$=W.startPoint,J=W.endPoint,X=W.apexPoint,Z=W.control1Point,ue=W.control2Point,re=MP($,X,Z,j),ne=MP(X,J,ue,j);return Math.min(re,ne)})(O,S,T,I):(function(j,z,H,q,W,$,J){var X=n2(z,H,q,W,$,J),Z=1/0;if(J&&X.length===3)Z=MP(X[0],X[2],X[1],j);else for(var ue=1;uex});a.splice(E!==-1?E:a.length,0,{data:y,fromTargetCoordinates:_,toTargetCoordinates:m,pointerCoordinates:n,distance:x})}}};for(p.s();!(i=p.n()).done;)g()}catch(y){p.e(y)}finally{p.f()}return a}},{key:"getRingStyles",value:function(n,i,a){var o=n.selected?a.selected.rings:a.default.rings;if(!o.length){var s=i.getById(n.id);return s!==void 0&&Object.entries(s).forEach(function(u){var l=(function(d,h){return(function(p){if(Array.isArray(p))return p})(d)||(function(p,g){var y=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(y!=null){var b,_,m,x,E=[],O=!0,S=!1;try{if(m=(y=y.call(p)).next,g!==0)for(;!(O=(b=m.call(y)).done)&&(E.push(b.value),E.length!==g);O=!0);}catch(T){S=!0,_=T}finally{try{if(!O&&y.return!=null&&(x=y.return(),Object(x)!==x))return}finally{if(S)throw _}}return E}})(d,h)||h5(d,h)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(u,2),c=l[0],f=l[1];c.startsWith("ring-")&&f.setEndValue(0)}),[{width:0,color:""}]}return o.map(function(u,l){var c=u.widthFactor,f=u.color,d=(n.size||ha)*c*$n();return{width:i.getValueForAnimationName(n.id,"ring-".concat(l),d),color:f}})}},{key:"zoomAndPan",value:function(n,i){var a=i.width,o=i.height,s=this.state,u=s.zoom,l=s.panX,c=s.panY;n.translate(-a/2*u,-o/2*u),n.translate(-l*u,-c*u),n.scale(u,u),n.translate(a/2/u,o/2/u),n.translate(a/2,o/2)}}],t&&Fse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})();function $B(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t=0;o--){var s=t[o],u=document.createElementNS("http://www.w3.org/2000/svg","polygon");u.setAttribute("points",a),u.setAttribute("fill","none"),u.setAttribute("stroke",s.color),u.setAttribute("stroke-width",String(s.width*n)),u.setAttribute("stroke-linecap","round"),u.setAttribute("stroke-linejoin","round"),i.push(u)}var l=document.createElementNS("http://www.w3.org/2000/svg","polygon");return l.setAttribute("points",a),l.setAttribute("fill",e),i.push(l),i},NP=function(r){var e=r.x,t=r.y,n=r.fontSize,i=r.fontFace,a=r.fontColor,o=r.textAnchor,s=r.dominantBaseline,u=r.lineSpans,l=r.transform,c=r.fontWeight,f=document.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("x",String(e)),f.setAttribute("y",String(t)),f.setAttribute("text-anchor",o),f.setAttribute("dominant-baseline",s),f.setAttribute("font-size",String(n)),f.setAttribute("font-family",i),f.setAttribute("fill",a),l&&f.setAttribute("transform",l),c&&f.setAttribute("font-weight",c);var d,h=(function(y,b){var _=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(!_){if(Array.isArray(y)||(_=(function(T,P){if(T){if(typeof T=="string")return $B(T,P);var I={}.toString.call(T).slice(8,-1);return I==="Object"&&T.constructor&&(I=T.constructor.name),I==="Map"||I==="Set"?Array.from(T):I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?$B(T,P):void 0}})(y))||b){_&&(y=_);var m=0,x=function(){};return{s:x,n:function(){return m>=y.length?{done:!0}:{done:!1,value:y[m++]}},e:function(T){throw T},f:x}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E,O=!0,S=!1;return{s:function(){_=_.call(y)},n:function(){var T=_.next();return O=T.done,T},e:function(T){S=!0,E=T},f:function(){try{O||_.return==null||_.return()}finally{if(S)throw E}}}})(u);try{for(h.s();!(d=h.n()).done;){var p=d.value,g=document.createElementNS("http://www.w3.org/2000/svg","tspan");g.textContent=p.text,zse(g,p.style),f.appendChild(g)}}catch(y){h.e(y)}finally{h.f()}return f},ZB=function(r,e,t,n,i){for(var a=[],o=n.length-1;o>=0;o--){var s=n[o],u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("d",r),u.setAttribute("stroke",s.color),u.setAttribute("stroke-width",String(t+s.width*i)),u.setAttribute("stroke-linecap","round"),u.setAttribute("fill","none"),a.push(u)}var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttribute("d",r),l.setAttribute("stroke",e),l.setAttribute("stroke-width",String(t)),l.setAttribute("fill","none"),a.push(l),a},QB=function(r,e,t,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.3333333333333333,a=Math.atan2(e.y-r.y,e.x-r.x),o={x:e.x+Math.cos(a)*(t*i),y:e.y+Math.sin(a)*(t*i)};return{tip:o,base1:{x:o.x-t*Math.cos(a)+n/2*Math.sin(a),y:o.y-t*Math.sin(a)-n/2*Math.cos(a)},base2:{x:o.x-t*Math.cos(a)-n/2*Math.sin(a),y:o.y-t*Math.sin(a)+n/2*Math.cos(a)},angle:a}},LP=function(r,e,t){for(var n=[],i="",a="",o="",s=t,u=0;u0&&n.push({text:a,style:o}),a=c,o=f,i=f):a+=c,s+=1}return a.length>0&&n.push({text:a,style:o}),n},JB=function(r){var e=r.nodeX,t=e===void 0?0:e,n=r.nodeY,i=n===void 0?0:n,a=r.iconXPos,o=r.iconYPos,s=r.iconSize,u=r.image,l=r.isDisabled,c=document.createElementNS("http://www.w3.org/2000/svg","image");c.setAttribute("x",String(t-a)),c.setAttribute("y",String(i-o));var f=String(Math.floor(s));return c.setAttribute("width",f),c.setAttribute("height",f),c.setAttribute("href",u.toDataURL()),l&&c.setAttribute("opacity","0.1"),c};function km(r){return km=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},km(r)}function e9(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function jw(r){for(var e=1;e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function gG(r,e){if(r){if(typeof r=="string")return y5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y5(r,e):void 0}}function y5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t2&&arguments[2]!==void 0?arguments[2]:{};(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,r),_5(a=(function(u,l,c){return l=Wm(l),(function(f,d){if(d&&(km(d)=="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h})(f)})(u,yG()?Reflect.construct(l,c||[],Wm(u).constructor):l.apply(u,c))})(this,r,[i,BP,o]),"svg",void 0),_5(a,"measurementContext",void 0),a.svg=n;var s=document.createElement("canvas");return a.measurementContext=s.getContext("2d"),i.nodes.addChannel(BP),i.rels.addChannel(BP),a}return(function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&b5(n,i)})(r,sG),e=r,t=[{key:"render",value:function(n,i){var a,o,s,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=this.state,c=this.arrowBundler,f=l.layout,d=l.zoom,h=l.panX,p=l.panY,g=l.nodes.idToPosition,y=(a=u.svg)!==null&&a!==void 0?a:this.svg,b=y.clientWidth||((o=y.width)===null||o===void 0||(o=o.baseVal)===null||o===void 0?void 0:o.value)||parseInt(y.getAttribute("width"),10)||500,_=y.clientHeight||((s=y.height)===null||s===void 0||(s=s.baseVal)===null||s===void 0?void 0:s.value)||parseInt(y.getAttribute("height"),10)||500,m=d,x=h,E=p;for(i&&(m=1,x=i.centerX,E=i.centerY);y.firstChild;)y.removeChild(y.firstChild);if(u.backgroundColor){var O=document.createElementNS("http://www.w3.org/2000/svg","rect");O.setAttribute("width","100%"),O.setAttribute("height","100%"),O.setAttribute("fill",u.backgroundColor),y.appendChild(O)}c.updatePositions(g);var S=document.createElementNS("http://www.w3.org/2000/svg","g");S.setAttribute("transform",this.getSvgTransform(b,_,m,x,E));var T=t9(r,"getRelationshipsToRender",this)([u.showCaptions,this.state.zoom]);this.renderRelationships(T,S,f!==Zx);var P=t9(r,"getNodesToRender",this)([n]);this.renderNodes(P,S,m),y.appendChild(S),this.needsRun=!1}},{key:"renderNodes",value:function(n,i,a){var o,s=this,u=this.state,l=u.nodes.idToItem,c=u.disabledItemStyles,f=u.defaultNodeColor,d=u.nodeBorderStyles,h=jP(n);try{var p=function(){var g,y,b,_,m=o.value,x=jw(jw({},l[m.id]),m);if(!u5(x))return 1;var E=document.createElementNS("http://www.w3.org/2000/svg","g");E.setAttribute("class","node"),E.setAttribute("data-id",x.id);var O=$n(),S=(x.selected?d.selected.rings:d.default.rings).map(function(Rt){var jt=Rt.widthFactor,Yt=Rt.color;return{width:(x.size||ha)*(jt??0)*O,color:Yt}}).filter(function(Rt){return Rt.width>0}),T=(function(Rt,jt){var Yt;return((Yt=Rt.size)!==null&&Yt!==void 0?Yt:25)*jt})(x,O),P=document.createElementNS("http://www.w3.org/2000/svg","circle");P.setAttribute("cx",String((g=x.x)!==null&&g!==void 0?g:0)),P.setAttribute("cy",String((y=x.y)!==null&&y!==void 0?y:0)),P.setAttribute("r",String(T));var I=x.disabled?c.color:x.color||f;if(P.setAttribute("fill",I),E.appendChild(P),S.length>0){var k,L=T,B=jP(S);try{for(B.s();!(k=B.n()).done;){var j=k.value;if(j.width>0){var z,H;L+=j.width/2;var q=document.createElementNS("http://www.w3.org/2000/svg","circle");q.setAttribute("cx",String((z=x.x)!==null&&z!==void 0?z:0)),q.setAttribute("cy",String((H=x.y)!==null&&H!==void 0?H:0)),q.setAttribute("r",String(L)),q.setAttribute("fill","none"),q.setAttribute("stroke",j.color),q.setAttribute("stroke-width",String(j.width)),E.appendChild(q),L+=j.width/2}}}catch(Rt){B.e(Rt)}finally{B.f()}}var W=x.icon,$=x.overlayIcon,J=T,X=2*J,Z=QD(J,a),ue=Z.nodeInfoLevel,re=Z.iconInfoLevel,ne=!!(!((b=x.captions)===null||b===void 0)&&b.length||!((_=x.caption)===null||_===void 0)&&_.length);if(W){var le,ce=rG(J,ne,re,ue),pe=nG(ce,ne,(le=x.captionAlign)!==null&&le!==void 0?le:"center",re,ue),fe=pe.iconXPos,se=pe.iconYPos,de=a5(I)==="#ffffff",ge=s.imageCache.getImage(W,de),Oe=JB({nodeX:x.x,nodeY:x.y,iconXPos:fe,iconYPos:se,iconSize:ce,image:ge,isDisabled:x.disabled===!0});E.appendChild(Oe)}if($!==void 0){var ke,De,Ne,Ce,Y=iG(X,(ke=$.size)!==null&&ke!==void 0?ke:1),Q=(De=$.position)!==null&&De!==void 0?De:[0,0],ie=[(Ne=Q[0])!==null&&Ne!==void 0?Ne:0,(Ce=Q[1])!==null&&Ce!==void 0?Ce:0],we=aG(Y,J,ie),Ee=we.iconXPos,Me=we.iconYPos,Ie=s.imageCache.getImage($.url),Ye=JB({nodeX:x.x,nodeY:x.y,iconXPos:Ee,iconYPos:Me,iconSize:Y,image:Ie,isDisabled:x.disabled===!0});E.appendChild(Ye)}var ot=cG(x,a);if(ot.hasContent){var mt=ot.lines,wt=ot.stylesPerChar,Mt=ot.fontSize,Dt=ot.fontFace,vt=ot.yPos,tt=a5(x.color||f);x.disabled&&(tt=c.fontColor);for(var _e=0,Ue=0;Ue0}):[];ZB(j,z,k,H,h).forEach(function(Bt){return i.appendChild(Bt)});var q=QB(B.control2Point,B.endPoint,9,7,2/9),W=y.disabled?c.color:y.color||f;if(KB(q,W,H,h).forEach(function(Bt){return i.appendChild(Bt)}),P&&(y.captions&&y.captions.length>0||y.caption&&y.caption.length>0)){var $,J=$n(),X=y.selected===!0,Z=X?d.selected.rings:d.default.rings,ue=Zq(B.apexPoint,B.angle,B.endPoint,B.control2Point,X,Z,y.width),re=ue.x,ne=ue.y,le=ue.angle,ce=(ue.flip,Jx(y)),pe=ce.length>0?($=Qb(ce))===null||$===void 0?void 0:$.fullCaption:"";if(pe){var fe,se,de,ge,Oe=40*J,ke=(fe=y.captionSize)!==null&&fe!==void 0?fe:1,De=6*ke*J,Ne=c5,Ce=y.selected?"bold":"normal";s.measurementContext.font="".concat(Ce," ").concat(De,"px ").concat(Ne);var Y=function(Bt){return s.measurementContext.measureText(Bt).width},Q=pe;if(Y(Q)>Oe){var ie=L1(Q,Y,function(){return Oe},1,!1)[0];Q=ie.hasEllipsisChar?"".concat(ie.text,"..."):Q}var we=y.selected?dE:1,Ee=((se=y.width)!==null&&se!==void 0?se:1)*we,Me=(1+ke)*J,Ie=((de=y.captionAlign)!==null&&de!==void 0?de:"top")==="bottom"?De/2+Ee+Me:-(Ee+Me),Ye=((ge=Qb(ce))!==null&&ge!==void 0?ge:{stylesPerChar:[]}).stylesPerChar,ot=LP(Q,Ye,0),mt=NP({x:re,y:ne+Ie,fontSize:De,fontFace:Ne,fontColor:L,textAnchor:"middle",dominantBaseline:"alphabetic",lineSpans:ot,transform:"rotate(".concat(180*le/Math.PI,",").concat(re,",").concat(ne,")"),fontWeight:Ce});i.appendChild(mt)}}}else{var wt,Mt,Dt,vt=n2(y,O,S,T,P,a),tt=tG((wt=y.width)!==null&&wt!==void 0?wt:1,y.selected===!0,y.selected?d.selected.rings:d.default.rings),_e=tt.headHeight,Ue=tt.headWidth,Qe=tt.headSelectedAdjustment,Ze=tt.headPositionOffset,nt=vt.length>1?jw({},vt[vt.length-2]):null,It=vt.length>1?jw({},vt[vt.length-1]):null;if(vt.length>1){var ct=y.selected===!0,Lt=ct?d.selected.rings:d.default.rings;eG(vt,ct,_e,Qe,Lt)}var Rt=(function(Bt){return(function(hr){if(Array.isArray(hr))return y5(hr)})(Bt)||(function(hr){if(typeof Symbol<"u"&&hr[Symbol.iterator]!=null||hr["@@iterator"]!=null)return Array.from(hr)})(Bt)||gG(Bt)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(vt);if(a&&vt.length>2){var jt=(function(Bt){if(Bt.length<2)return"";var hr="M".concat(Bt[0].x,",").concat(Bt[0].y);if(Bt.length===2)return hr+" L".concat(Bt[1].x,",").concat(Bt[1].y);for(var ei=1;ei0}):[];ZB(jt,Yt,k,sr,h).forEach(function(Bt){return i.appendChild(Bt)})}else{var Ut=(function(Bt){return Bt.map(function(hr){return"".concat(hr.x,",").concat(hr.y)}).join(" ")})(vt),Rr=(function(Bt,hr,ei,Hn,ds){for(var Na=[],ki=Hn.length-1;ki>=0;ki--){var Wr=Hn[ki],Nr=document.createElementNS("http://www.w3.org/2000/svg","polyline");Nr.setAttribute("points",Bt),Nr.setAttribute("stroke",Wr.color),Nr.setAttribute("stroke-width",String(ei+Wr.width*ds)),Nr.setAttribute("stroke-linecap","round"),Nr.setAttribute("fill","none"),Na.push(Nr)}var na=document.createElementNS("http://www.w3.org/2000/svg","polyline");return na.setAttribute("points",Bt),na.setAttribute("stroke",hr),na.setAttribute("stroke-width",String(ei)),na.setAttribute("fill","none"),Na.push(na),Na})(Ut,y.disabled?c.color:y.color||f,k,y.selected?I.map(function(Bt){var hr;return{color:Bt.color,width:(hr=Bt.width)!==null&&hr!==void 0?hr:0}}).filter(function(Bt){return Bt.width>0}):[],h);Rr.forEach(function(Bt){return i.appendChild(Bt)})}if(vt.length>1){var Xt=QB(nt,It,_e,Ue,Ze/_e),Vr=y.disabled?c.color:y.color||f,Br=y.selected?I.map(function(Bt){var hr;return{color:Bt.color,width:(hr=Bt.width)!==null&&hr!==void 0?hr:0}}).filter(function(Bt){return Bt.width>0}):[];KB(Xt,Vr,Br,h).forEach(function(Bt){return i.appendChild(Bt)})}var mr=Jx(y),ur=(Mt=y.captionSize)!==null&&Mt!==void 0?Mt:1,sn=6*ur*h,Fr=c5,un=(Dt=Qb(mr))!==null&&Dt!==void 0?Dt:{fullCaption:"",stylesPerChar:[]},bn=un.fullCaption,wn=un.stylesPerChar;if(P&&bn.length>0){var _n;s.measurementContext.font="bold ".concat(sn,"px ").concat(Fr);var xn=(_n=y.captionAlign)!==null&&_n!==void 0?_n:"top",on=Qq(Rt,S,T,!0,y.selected===!0,I,xn),Nn=lG(Rt),fi=(function(Bt){var hr=180*Bt/Math.PI;return(hr>90||hr<-90)&&(hr+=180),hr})(on.angle),gn=function(Bt){return s.measurementContext.measureText(Bt).width},yn=bn;if(gn(yn)>Nn){var Jn=L1(yn,gn,function(){return Nn},1,!1)[0];yn=Jn.hasEllipsisChar?"".concat(Jn.text,"..."):yn}var _i=LP(yn,wn,0),Ir=(1+ur)*h,pa=xn==="bottom"?sn/2+k+Ir:-(k+Ir),di=NP({x:on.x,y:on.y+pa,fontSize:sn,fontFace:Fr,fontColor:L,textAnchor:"middle",dominantBaseline:"alphabetic",lineSpans:_i,transform:"rotate(".concat(fi,",").concat(on.x,",").concat(on.y,")"),fontWeight:y.selected?"bold":void 0});i.appendChild(di)}}};for(p.s();!(o=p.n()).done;)g()}catch(y){p.e(y)}finally{p.f()}}},{key:"getSvgTransform",value:function(n,i,a,o,s){var u=i/2;return"translate(".concat(n/2,",").concat(u,") scale(").concat(a,") translate(").concat(-o,",").concat(-s,")")}}],t&&qse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})(),bG=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=(function(o,s){if((0,Hi.isNil)(o)||(0,Hi.isNil)(s))return{offsetX:0,offsetY:0};var u=s.getBoundingClientRect(),l=window.devicePixelRatio||1;return{offsetX:l*(o.clientX-u.left-.5*u.width),offsetY:l*(o.clientY-u.top-.5*u.height)}})(r,e);return{x:n+a.offsetX/t,y:i+a.offsetY/t}};function t1(r){return t1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t1(r)}function _G(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Vse(r,e){for(var t=0;t0}},{key:"renderMainScene",value:function(r){var e=this.state,t=e.nodes,n=e.rels;this.checkForUpdates(t,n),this.mainSceneRenderer.render(r),this.needsRun=!1}},{key:"renderMinimap",value:function(r){var e=this.state,t=e.nodes,n=e.rels;this.checkForUpdates(t,n),this.minimapRenderer.render(r),this.minimapRenderer.renderViewbox(),this.needsRun=!1}},{key:"checkForUpdates",value:function(r,e){var t=Object.values(r.channels[Mf].adds).length>0,n=Object.values(e.channels[Mf].adds).length>0,i=Object.values(r.channels[Mf].removes).length>0,a=Object.values(e.channels[Mf].removes).length>0,o=Object.values(r.channels[Mf].updates),s=Object.values(e.channels[Mf].updates);t||n||i||a?(this.mainSceneRenderer.setData({nodes:r.items,rels:e.items}),this.minimapRenderer.setData({nodes:r.items,rels:e.items})):(o.length>0&&(this.mainSceneRenderer.updateNodes(o),this.minimapRenderer.updateNodes(o)),s.length>0&&(this.mainSceneRenderer.updateRelationships(e.items),this.minimapRenderer.updateRelationships(e.items))),r.clearChannel(Mf),e.clearChannel(Mf)}},{key:"onResize",value:function(){var r=this.state,e=r.zoom,t=r.panX,n=r.panY,i=r.minimapZoom,a=r.minimapPanX,o=r.minimapPanY;this.updateMainViewport(e,t,n),this.updateMinimapViewport(i,a,o)}},{key:"updateMainViewport",value:function(r,e,t){this.mainSceneRenderer.updateViewport(r,e,t);var n=this.mainSceneRenderer.canvas.clientWidth,i=this.mainSceneRenderer.canvas.clientHeight;this.minimapRenderer.updateViewportBox(r,e,t,n,i),this.needsRun=!0}},{key:"updateMinimapViewport",value:function(r,e,t){this.minimapRenderer.updateViewport(r,e,t),this.needsRun=!0}},{key:"handleMinimapDrag",value:function(r){var e=this.state,t=this.minimapRenderer,n=bG(r,t.canvas,e.minimapZoom,e.minimapPanX,e.minimapPanY),i=n.x,a=n.y;e.setPan(i,a)}},{key:"handleMinimapWheel",value:function(r){var e=this.state,t=this.mainSceneRenderer;e.setZoom((function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return(0,Hi.isNil)(n)||isNaN(n.deltaY)?i:i-n.deltaY/500*Math.min(1,i)})(r,e.zoom),t.canvas),r.preventDefault()}},{key:"setupMinimapInteractions",value:function(){var r=this,e=this.minimapRenderer.canvas;e.addEventListener("mousedown",function(t){r.handleMinimapDrag(t),r.minimapMouseDown=!0}),e.addEventListener("mousemove",function(t){r.minimapMouseDown&&r.handleMinimapDrag(t)}),e.addEventListener("mouseup",function(){r.minimapMouseDown=!1}),e.addEventListener("mouseleave",function(){r.minimapMouseDown=!1}),e.addEventListener("wheel",function(t){r.handleMinimapWheel(t)})}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(r){r()}),this.state.nodes.removeChannel(Mf),this.state.rels.removeChannel(Mf),this.mainSceneRenderer.destroy(),this.minimapRenderer.destroy()}}])})(),Wse=(function(){return wG(function r(){_G(this,r),Nf(this,"mainSceneRenderer",void 0),Nf(this,"minimapRenderer",void 0),Nf(this,"needsRun",void 0),Nf(this,"minimapMouseDown",void 0),Nf(this,"stateDisposers",void 0),Nf(this,"state",void 0)},[{key:"renderMainScene",value:function(r){}},{key:"renderMinimap",value:function(r){}},{key:"checkForUpdates",value:function(r,e){}},{key:"onResize",value:function(){}},{key:"updateMainViewport",value:function(r,e,t){}},{key:"updateMinimapViewport",value:function(r,e,t){}},{key:"handleMinimapDrag",value:function(r){}},{key:"handleMinimapWheel",value:function(r){}},{key:"setupMinimapInteractions",value:function(){}},{key:"destroy",value:function(){}},{key:"needsToRun",value:function(){return!1}}])})();function r1(r){return r1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r1(r)}function FP(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=(function(u,l){if(u){if(typeof u=="string")return r9(u,l);var c={}.toString.call(u).slice(8,-1);return c==="Object"&&u.constructor&&(c=u.constructor.name),c==="Map"||c==="Set"?Array.from(u):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?r9(u,l):void 0}})(r))||e){t&&(r=t);var n=0,i=function(){};return{s:i,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function r9(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&(l=(s=u.default.rings[0])===null||s===void 0?void 0:s.color);var c,f,d=null,h=null,p=(i=(a=u.selected)===null||a===void 0?void 0:a.rings)!==null&&i!==void 0?i:[],g=p.length;g>1&&(h=(c=p[g-2])===null||c===void 0?void 0:c.color,d=(f=p[g-1])===null||f===void 0?void 0:f.color);var y=null;(o=u.selected)!==null&&o!==void 0&&o.shadow&&(y=u.selected.shadow.color),this.nodeShader.use(),(0,Hi.isNil)(l)?this.nodeShader.setUniform("u_drawDefaultBorder",0):(this.nodeShader.setUniform("u_nodeBorderColor",Iw(l)),this.nodeShader.setUniform("u_drawDefaultBorder",1));var b=Iw(d),_=Iw(h),m=Iw(y);this.nodeShader.setUniform("u_selectedBorderColor",b),this.nodeShader.setUniform("u_selectedInnerBorderColor",_),this.nodeShader.setUniform("u_shadowColor",m)}},{key:"setData",value:function(t){var n=zM(t.rels,this.disableRelColor);this.setupNodeRendering(t.nodes),this.setupRelationshipRendering(n)}},{key:"render",value:function(t){var n=this.gl,i=this.idToIndex,a=this.posBuffer,o=this.posTexture;if(this.numNodes!==0||this.numRels!==0){var s,u=FP(t);try{for(u.s();!(s=u.n()).done;){var l=s.value,c=i[l.id];c!==void 0&&(a[4*c]=l.x,a[4*c+1]=l.y)}}catch(f){u.e(f)}finally{u.f()}n.bindTexture(n.TEXTURE_2D,o),n.texSubImage2D(n.TEXTURE_2D,0,0,0,Cr,Cr,n.RGBA,n.FLOAT,a),n.enable(n.BLEND),n.bindFramebuffer(n.FRAMEBUFFER,null),n.clear(n.COLOR_BUFFER_BIT),n.viewport(0,0,n.drawingBufferWidth,n.drawingBufferHeight),this.renderAnimations(o),this.numRels>0&&(this.relShader.use(),this.relShader.setUniform("u_positions",o),this.vaoExt.bindVertexArrayOES(this.relVao),n.drawArrays(n.TRIANGLES,0,6*this.numRels),this.vaoExt.bindVertexArrayOES(null)),this.numNodes>0&&(this.nodeShader.use(),this.nodeShader.setUniform("u_positions",o),this.vaoExt.bindVertexArrayOES(this.nodeVao),n.drawArrays(n.POINTS,0,this.numNodes),this.vaoExt.bindVertexArrayOES(null))}}},{key:"renderViewbox",value:function(){var t=this.gl,n=this.projection,i=this.viewportBoxBuffer;this.viewportBoxShader.use(),this.viewportBoxShader.setUniform("u_projection",n),t.bindBuffer(t.ARRAY_BUFFER,i),this.viewportBoxShader.setAttributePointerFloat("coordinates",2,0,0),t.drawArrays(t.LINES,0,8)}},{key:"updateNodes",value:function(t){var n,i=this.gl,a=this.idToIndex,o=this.disableNodeColor,s=this.nodeBuffer,u=this.nodeDataByte,l=!1,c=FP(t);try{for(c.s();!(n=c.n()).done;){var f=n.value,d=a[f.id];if(!(0,Hi.isNil)(f.color)||f.disabled===!0){var h=I1(f.disabled===!0?o:f.color);this.nodeDataByte[3*d*4+0]=h[0],this.nodeDataByte[3*d*4+1]=h[1],this.nodeDataByte[3*d*4+2]=h[2],this.nodeDataByte[3*d*4+3]=255*h[3],l=!0}if(f.selected!==void 0){var p=f.selected;this.nodeDataByte[3*d*4+4]=p?255:0,l=!0}if(f.activated!==void 0&&(this.nodeDataByte[3*d*4+7]=f.activated?255:0,l=!0,f.activated?this.activeNodes[f.id]=!0:delete this.activeNodes[f.id]),f.hovered!==void 0){var g=f.disabled!==!0&&f.hovered;this.nodeDataByte[3*d*4+9]=g?255:0,l=!0}if(f.size!==void 0){var y=f.size;this.nodeDataByte[3*d*4+8]=y||ha,l=!0}}}catch(b){c.e(b)}finally{c.f()}l&&(i.bindBuffer(i.ARRAY_BUFFER,s),i.bufferData(i.ARRAY_BUFFER,u,i.DYNAMIC_DRAW))}},{key:"updateRelationships",value:function(t){var n,i=zM(t,this.disableRelColor),a=this.gl,o=!1,s=FP(i);try{for(s.s();!(n=s.n()).done;){var u=n.value,l=u.key,c=u.width,f=u.color,d=u.disabled,h=this.relIdToIndex[l],p=(0,Hi.isNil)(f)?this.defaultRelColor:f,g=kw(d?this.disableRelColor:p);this.relData.positionsAndColors[h*iu+0]=g,this.relData.positionsAndColors[h*iu+4]=g,this.relData.positionsAndColors[h*iu+8]=g,this.relData.positionsAndColors[h*iu+12]=g,this.relData.positionsAndColors[h*iu+16]=g,this.relData.positionsAndColors[h*iu+20]=g,o=!0,c!==void 0&&(this.relData.widths[h*iu+3]=c,this.relData.widths[h*iu+7]=c,this.relData.widths[h*iu+11]=c,this.relData.widths[h*iu+15]=c,this.relData.widths[h*iu+19]=c,this.relData.widths[h*iu+23]=c,o=!0)}}catch(y){s.e(y)}finally{s.f()}o&&(a.bindBuffer(a.ARRAY_BUFFER,this.relBuffer),a.bufferData(a.ARRAY_BUFFER,this.relDataBuffer,a.DYNAMIC_DRAW))}},{key:"createPositionTexture",value:function(){var t=this.gl,n=t.createTexture(),i=new Float32Array(262144);t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,Cr,Cr,0,t.RGBA,t.FLOAT,i),this.posTexture=n,this.posBuffer=i}},{key:"updateViewportBox",value:function(t,n,i,a,o){var s=this.gl,u=$n(),l=a*u,c=o*u,f=(.5*l+n*t)/t,d=(.5*c+i*t)/t,h=(.5*-l+n*t)/t,p=(.5*-c+i*t)/t,g=[f,d,h,d,h,d,h,p,h,p,f,p,f,p,f,d];s.bindBuffer(s.ARRAY_BUFFER,this.viewportBoxBuffer),s.bufferData(s.ARRAY_BUFFER,new Float32Array(g),s.DYNAMIC_DRAW)}},{key:"updateViewport",value:function(t,n,i){var a=this.gl,o=1/t,s=n-a.drawingBufferWidth*o*.5,u=i-a.drawingBufferHeight*o*.5,l=a.drawingBufferWidth*o,c=a.drawingBufferHeight*o,f=Kx(),d=Hae*$n();ZM(f,s,s+l,u+c,u,0,1e6),this.nodeShader.use(),this.nodeShader.setUniform("u_zoom",t),this.nodeShader.setUniform("u_glAdjust",d),this.nodeShader.setUniform("u_projection",f),this.nodeAnimShader.use(),this.nodeAnimShader.setUniform("u_zoom",t),this.nodeAnimShader.setUniform("u_glAdjust",d),this.nodeAnimShader.setUniform("u_projection",f),this.relShader.use(),this.relShader.setUniform("u_glAdjust",d),this.relShader.setUniform("u_projection",f),this.projection=f}},{key:"setupViewportRendering",value:function(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:HD;this.viewportBoxBuffer=this.gl.createBuffer(),this.viewportBoxShader.use(),this.viewportBoxShader.setUniform("u_minimapViewportBoxColor",[(t=I1(n))[0]/255,t[1]/255,t[2]/255,t[3]])}},{key:"setupNodeRendering",value:function(t){var n=this.gl,i=new ArrayBuffer(8),a=new Uint32Array(i),o=new Uint8Array(i);this.nodeBuffer===void 0&&(this.nodeBuffer=n.createBuffer()),this.numNodes=t.length;var s=new ArrayBuffer(3*t.length*8),u=new Uint32Array(s),l={};this.activeNodes={};for(var c=0;c=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function SG(r,e){if(r){if(typeof r=="string")return w5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w5(r,e):void 0}}function w5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:50,t={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0},n=0;nr[n].x&&(t.minX=r[n].x),t.minY>r[n].y&&(t.minY=r[n].y),t.maxX1&&(i=t/r),e>1&&(a=n/e),{zoomX:i,zoomY:a}},OG=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0,i=Math.min(r,e);return Math.min(n,Math.max(t,i))},a1=function(r,e,t,n){return Math.max(Math.min(e,t),Math.min(r,n))},UP=function(r,e,t,n,i,a){var o=e;return(function(s,u,l){return s1?(o=(function(s,u,l){var c=(function(g){var y=new Array(4).fill(g[0]);return g.forEach(function(b){y[0]=b.x0&&arguments[0]!==void 0?arguments[0]:[],y=0,b=0,_=0;_p?.9*p/f:.9*f/p})(r,n,25),a1(i,a,Math.min(e,o),t)):a1(i,a,e,t)};function o1(r){return o1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o1(r)}function Kse(r,e){for(var t=0;t0||i}},{key:"update",value:function(t,n){var i=this.state,a=i.fitNodeIds,o=i.resetZoom;a.length>0?this.fitNodes(a,t,n):o&&this.reset(t,n)}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(t){return t()})}},{key:"recalculateTarget",value:function(t,n,i,a){for(var o=this.xCtrl,s=this.yCtrl,u=this.zoomCtrl,l=this.state,c=[],f=0;f3?(H=$===z)&&(T=q[(S=q[4])?5:(S=3,3)],q[4]=q[5]=r):q[0]<=W&&((H=j<2&&Wz||z>$)&&(q[4]=j,q[5]=z,L.n=$,S=0))}if(H||j>1)return o;throw k=!0,z}return function(j,z,H){if(P>1)throw TypeError("Generator is already running");for(k&&z===1&&B(z,H),S=z,T=H;(e=S<2?r:T)||!k;){O||(S?S<3?(S>1&&(L.n=-1),B(S,T)):L.n=T:L.v=T);try{if(P=2,O){if(S||(j="next"),e=O[j]){if(!(e=e.call(O,T)))throw TypeError("iterator result is not an object");if(!e.done)return e;T=e.value,S<2&&(S=0)}else S===1&&(e=O.return)&&e.call(O),S<2&&(T=TypeError("The iterator does not provide a '"+j+"' method"),S=1);O=r}else if((e=(k=L.n<0)?T:m.call(x,L))!==o)break}catch(q){O=r,S=1,T=q}finally{P=1}}return{value:e,done:k}}})(h,g,y),!0),_}var o={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(tf(e={},n,function(){return this}),e),f=l.prototype=s.prototype=Object.create(c);function d(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,l):(h.__proto__=l,tf(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return u.prototype=l,tf(f,"constructor",l),tf(l,"constructor",u),u.displayName="GeneratorFunction",tf(l,i,"GeneratorFunction"),tf(f),tf(f,i,"Generator"),tf(f,n,function(){return this}),tf(f,"toString",function(){return"[object Generator]"}),(Cb=function(){return{w:a,m:d}})()}function tf(r,e,t,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}tf=function(a,o,s,u){function l(c,f){tf(a,c,function(d){return this._invoke(c,f,d)})}o?i?i(a,o,{value:s,enumerable:!u,configurable:!u,writable:!u}):a[o]=s:(l("next",0),l("throw",1),l("return",2))},tf(r,e,t,n)}function a9(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(n,i)}function o9(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){a9(a,n,i,o,s,"next",u)}function s(u){a9(a,n,i,o,s,"throw",u)}o(void 0)})}}function s9(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0?arguments[0]:"default"])!==null&&r!==void 0?r:Object.values(s2).pop()},rue=(function(){return r=function i(a,o,s){var u,l,c,f=this;(function(q,W){if(!(q instanceof W))throw new TypeError("Cannot call a class as a function")})(this,i),dn(this,"destroyed",void 0),dn(this,"state",void 0),dn(this,"callbacks",void 0),dn(this,"instanceId",void 0),dn(this,"glController",void 0),dn(this,"webGLContext",void 0),dn(this,"webGLMinimapContext",void 0),dn(this,"htmlOverlay",void 0),dn(this,"hasResized",void 0),dn(this,"hierarchicalLayout",void 0),dn(this,"gridLayout",void 0),dn(this,"freeLayout",void 0),dn(this,"d3ForceLayout",void 0),dn(this,"circularLayout",void 0),dn(this,"forceLayout",void 0),dn(this,"canvasRenderer",void 0),dn(this,"svgRenderer",void 0),dn(this,"glCanvas",void 0),dn(this,"canvasRect",void 0),dn(this,"glMinimapCanvas",void 0),dn(this,"c2dCanvas",void 0),dn(this,"svg",void 0),dn(this,"isInRenderSwitchAnimation",void 0),dn(this,"justSwitchedRenderer",void 0),dn(this,"justSwitchedLayout",void 0),dn(this,"layoutUpdating",void 0),dn(this,"layoutComputing",void 0),dn(this,"isRenderingDisabled",void 0),dn(this,"setRenderSwitchAnimation",void 0),dn(this,"stateDisposers",void 0),dn(this,"zoomTransitionHandler",void 0),dn(this,"currentLayout",void 0),dn(this,"layoutTimeLimit",void 0),dn(this,"pixelRatio",void 0),dn(this,"removeResizeListener",void 0),dn(this,"removeMinimapResizeListener",void 0),dn(this,"pendingZoomOperation",void 0),dn(this,"layoutRunner",void 0),dn(this,"animationRequestId",void 0),dn(this,"layoutDoneCallback",void 0),dn(this,"layoutComputingCallback",void 0),dn(this,"currentLayoutType",void 0),dn(this,"descriptionElement",void 0),this.destroyed=!1;var d=s.minimapContainer,h=d===void 0?document.createElement("span"):d,p=s.layoutOptions,g=s.layout,y=s.instanceId,b=y===void 0?"default":y,_=s.disableAria,m=_!==void 0&&_,x=a.nodes,E=a.rels,O=a.disableWebGL;this.state=a,this.callbacks=new Zse,this.instanceId=b;var S=o;S.setAttribute("instanceId",b),S.setAttribute("data-testid","nvl-parent"),(u=S.style.height)!==null&&u!==void 0&&u.length||Object.assign(S.style,{height:"100%"}),(l=S.style.outline)!==null&&l!==void 0&&l.length||Object.assign(S.style,{outline:"none"}),this.descriptionElement=m?document.createElement("div"):(function(q,W){var $;q.setAttribute("role","img"),q.setAttribute("aria-label","Graph visualization");var J="nvl-".concat(W,"-description"),X=($=document.getElementById(J))!==null&&$!==void 0?$:document.createElement("div");return X.textContent="",X.id="nvl-".concat(W,"-description"),X.setAttribute("role","status"),X.setAttribute("aria-live","polite"),X.setAttribute("aria-atomic","false"),X.style.display="none",q.appendChild(X),q.setAttribute("aria-describedby",X.id),X})(S,b);var T=PP(S,this.onWebGLContextLost.bind(this)),P=PP(h,this.onWebGLContextLost.bind(this));if(T.setAttribute("data-testid","nvl-gl-canvas"),O)this.glController=new Wse;else{var I=xB(T),k=xB(P);this.glController=new Hse({mainSceneRenderer:new r9(I,x,E,this.state),minimapRenderer:new r9(k,x,E,this.state),state:a}),this.webGLContext=I,this.webGLMinimapContext=k}var L=PP(S,this.onWebGLContextLost.bind(this));L.setAttribute("data-testid","nvl-c2d-canvas");var B=L.getContext("2d"),j=document.createElementNS("http://www.w3.org/2000/svg","svg");Object.assign(j.style,no(no({},UM),{},{overflow:"hidden",width:"100%",height:"100%"})),S.appendChild(j);var z=document.createElement("div");Object.assign(z.style,no(no({},UM),{},{overflow:"hidden"})),S.appendChild(z),this.htmlOverlay=z,this.hasResized=!0,this.hierarchicalLayout=new Koe(no(no({},p),{},{state:this.state})),this.gridLayout=new joe({state:this.state}),this.freeLayout=new Ioe({state:this.state}),this.d3ForceLayout=new yoe({state:this.state}),this.circularLayout=new Zae(no(no({},p),{},{state:this.state})),this.forceLayout=O?this.d3ForceLayout:new Moe(no(no({},p),{},{webGLContext:this.webGLContext,state:this.state})),this.state.setLayout(g),this.state.setLayoutOptions(p),this.canvasRenderer=new Use(L,B,a,s),this.svgRenderer=new Gse(j,a,s),this.glCanvas=T,this.canvasRect=T.getBoundingClientRect(),this.glMinimapCanvas=P,this.c2dCanvas=L,this.svg=j;var H=a.renderer;this.glCanvas.style.opacity=H===Mg?"1":"0",this.c2dCanvas.style.opacity=H===fp?"1":"0",this.svg.style.opacity=H===am?"1":"0",this.isInRenderSwitchAnimation=!1,this.justSwitchedRenderer=!1,this.justSwitchedLayout=!1,this.hasResized=!1,this.layoutUpdating=!1,this.layoutComputing=!1,this.isRenderingDisabled=!1,x.addChannel(Uw),E.addChannel(Uw),this.setRenderSwitchAnimation=function(){f.isInRenderSwitchAnimation=!1},this.stateDisposers=[],this.stateDisposers.push(a.autorun(function(){f.callIfRegistered("zoom",a.zoom)})),this.stateDisposers.push(a.autorun(function(){f.callIfRegistered("pan",{panX:a.panX,panY:a.panY})})),this.stateDisposers.push(a.autorun(function(){f.setLayout(a.layout)})),this.stateDisposers.push(a.autorun(function(){f.setLayoutOptions(a.layoutOptions)})),m||this.stateDisposers.push(a.autorun(function(){(function(q,W){var $=q.nodes,J=q.rels,X=q.layout,Z=$.items.length,ue=J.items.length;if(Z!==0||ue!==0){var re="".concat(Z," node").concat(Z!==1?"s":""),ne="".concat(ue," relationship").concat(ue!==1?"s":""),le="displayed using a ".concat(X??"forceDirected"," layout");W.textContent="A graph visualization with ".concat(re," and ").concat(ne,", ").concat(le,".")}else W.textContent="An empty graph visualization."})(a,f.descriptionElement)})),this.stateDisposers.push(a.autorun(function(){var q=a.renderer;q!==(f.glCanvas.style.opacity==="1"?Mg:f.c2dCanvas.style.opacity==="1"?fp:f.svg.style.opacity==="1"?am:fp)&&(f.justSwitchedRenderer=!0,f.glCanvas.style.opacity=q===Mg?"1":"0",f.c2dCanvas.style.opacity=q===fp?"1":"0",f.svg.style.opacity=q===am?"1":"0")})),this.startMainLoop(),this.zoomTransitionHandler=new eue({state:a,getNodePositions:function(q){return f.currentLayout.getNodePositions(q)},canvas:T}),this.layoutTimeLimit=(c=s.layoutTimeLimit)!==null&&c!==void 0?c:16,this.pixelRatio=$n(),this.removeResizeListener=k8()(S,function(){fx(T),fx(L),f.canvasRect=T.getBoundingClientRect(),f.hasResized=!0}),this.removeMinimapResizeListener=k8()(h,function(){fx(P)}),s2[b]=this,window.__Nvl_dumpNodes=function(q){var W;return(W=ob(q))===null||W===void 0?void 0:W.dumpNodes()},window.__Nvl_dumpRelationships=function(q){var W;return(W=ob(q))===null||W===void 0?void 0:W.dumpRelationships()},window.__Nvl_registerDoneCallback=function(q,W){var $;return($=ob(W))===null||$===void 0?void 0:$.on(l9,q)},window.__Nvl_getNodesOnScreen=function(q){var W;return(W=ob(q))===null||W===void 0?void 0:W.getNodesOnScreen()},window.__Nvl_getZoomLevel=function(q){var W;return(W=ob(q))===null||W===void 0?void 0:W.getScale()},this.pendingZoomOperation=null},e=[{key:"onWebGLContextLost",value:function(i){this.callIfRegistered("onWebGLContextLost",i)}},{key:"updateMinimapZoom",value:function(){var i=this.state,a=i.nodes,o=i.maxNodeRadius,s=i.maxMinimapZoom,u=i.minMinimapZoom,l=i1(Object.values(a.idToPosition),o),c=l.centerX,f=l.centerY,d=l.nodesWidth,h=l.nodesHeight,p=x5(d,h,this.glMinimapCanvas.width,this.glMinimapCanvas.height),g=p.zoomX,y=p.zoomY,b=OG(g,y,u,s);this.state.updateMinimapZoomToFit(b,c,f)}},{key:"startMainLoop",value:function(){var i=this,a=this.state,o=a.nodes,s=a.rels;this.currentLayout.update();var u=this.currentLayout.getNodePositions(o.items);o.updatePositions(u),this.isRenderingDisabled||(this.glController.renderMainScene(u),this.glController.renderMinimap(u),this.canvasRenderer.processUpdates(),this.canvasRenderer.render(u)),this.layoutRunner=setInterval(function(){try{(function(){var c=i.currentLayout.getShouldUpdate(),f=c||i.justSwitchedLayout,d=f&&!i.layoutUpdating&&!i.justSwitchedLayout;if(f)for(var h=window.performance.now(),p=d?0:50,g=0;gi.layoutTimeLimit)break}})()}catch(c){if(!i.callbacks.isCallbackRegistered(up))throw c;i.callIfRegistered(up,c)}},13);var l=function(){try{(function(c){if(i.destroyed)bi.info("STEP IN A DESTROYED STRIP");else{var f=$n();if(f!==i.pixelRatio)return i.pixelRatio=f,void i.callIfRegistered("restart");var d=i.currentLayout.getShouldUpdate(),h=d||i.justSwitchedLayout,p=i.currentLayout.getComputing(),g=i.zoomTransitionHandler.needsToRun(),y=h&&!i.layoutUpdating&&!i.justSwitchedLayout,b=i.layoutComputing&&!p,_=i.state.renderer,m=_===Mg&&i.glController.needsToRun(),x=_===fp&&i.canvasRenderer.needsToRun(),E=_===am&&i.svgRenderer.needsToRun(),O=i.isInRenderSwitchAnimation||i.justSwitchedRenderer,S=i.hasResized,T=i.pendingZoomOperation!==null,P=i.glController.minimapMouseDown;if(o.clearChannel(Uw),s.clearChannel(Uw),g||h||b||O||m||x||E||P||S||T){!T||y||i.currentLayout.getComputing()||(i.pendingZoomOperation(),i.pendingZoomOperation=null);var I=d||p||b;i.zoomTransitionHandler.update(I,function(){return i.callIfRegistered("onZoomTransitionDone")}),S&&i.glController.onResize();var k=i.currentLayout.getNodePositions(o.items);if(o.updatePositions(k),i.callbacks.isCallbackRegistered(c9)&&i.callIfRegistered(c9,i.dumpNodes()),i.updateMinimapZoom(),i.glController.renderMinimap(k),!i.isRenderingDisabled){var L=i.state.renderer;if((L===Mg||O)&&i.glController.renderMainScene(k),L===fp||L===am||O){i.canvasRenderer.processUpdates(),i.canvasRenderer.render(k);for(var B=0;B5&&L!==Mg;Object.assign(H.style,{top:"".concat(re,"px"),left:"".concat(ue,"px"),width:"".concat(J,"px"),height:"".concat(X,"px"),display:ne?"block":"none",transform:"translate(-50%, -50%) scale(".concat(Number(i.state.zoom),") rotate(").concat(W,"rad")})}}}(L===am||O)&&(i.svgRenderer.processUpdates(),i.svgRenderer.render(k));for(var le=0;le=d.length?{done:!0}:{done:!1,value:d[g++]}},e:function(x){throw x},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b,_=!0,m=!1;return{s:function(){p=p.call(d)},n:function(){var x=p.next();return _=x.done,x},e:function(x){m=!0,b=x},f:function(){try{_||p.return==null||p.return()}finally{if(m)throw b}}}})(a);try{for(u.s();!(i=u.n()).done;){var l=i.value,c=o[l.id],f=this.mapCanvasSpaceToRelativePosition(c.x,c.y);s.push(no(no({},l),{},{x:f.x,y:f.y}))}}catch(d){u.e(d)}finally{u.f()}return s}},{key:"dumpRelationships",value:function(){return $u(this.state.rels.items)}},{key:"mapCanvasSpaceToRelativePosition",value:function(i,a){var o=this.canvasRect,s=window.devicePixelRatio||1,u=(i-this.state.panX)*this.state.zoom/s,l=(a-this.state.panY)*this.state.zoom/s;return{x:u+.5*o.width,y:l+.5*o.height}}},{key:"mapRelativePositionToCanvasSpace",value:function(i,a){var o=this.glCanvas.getBoundingClientRect(),s=window.devicePixelRatio||1,u=s*(i-.5*o.width),l=s*(a-.5*o.height);return{x:this.state.panX+u/this.state.zoom,y:this.state.panY+l/this.state.zoom}}},{key:"getNodePositions",value:function(){return Object.values($u(this.state.nodes.idToPosition))}},{key:"setNodePositions",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0&&arguments[1],s=[],u=i.filter(function(l){var c=l.id,f=a.state.nodes.idToItem[c]!==void 0;return f||s.push(c),f});s.length>0&&bi.warn("Failed to set positions for following nodes: ".concat(s.join(", "),". They do not exist in the graph.")),this.state.nodes.updatePositions(u),this.currentLayout.updateNodes(u),o||this.currentLayout.terminateUpdate(),this.hasResized=!0,this.getNodesOnScreen().nodes.length===0&&this.state.setPan(0,0),this.state.clearFit()}},{key:"isLayoutMoving",value:function(){return this.layoutUpdating}},{key:"getNodesOnScreen",value:function(){var i=this.glCanvas.getBoundingClientRect(),a=this.mapRelativePositionToCanvasSpace(0,0),o=a.x,s=a.y,u=this.mapRelativePositionToCanvasSpace(i.width,i.height);return(function(l,c,f,d,h){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:["node"],g=h.nodes,y=h.rels,b=Math.min(l,f),_=Math.max(l,f),m=Math.min(c,d),x=Math.max(c,d),E=[],O=[];if(p.includes("node"))for(var S=0,T=Object.values(g.idToPosition);Sb&&I<_&&k>m&&kb&&q.x<_&&q.y>m&&q.yb&&W.x<_&&W.y>m&&W.y1&&arguments[1]!==void 0?arguments[1]:0;return this.canvasRenderer.getNodesAt(i,a)}},{key:"getLayout",value:function(i){return i===Zx?this.hierarchicalLayout:i===Foe?this.forceLayout:i===Uoe?this.gridLayout:i===zoe?this.freeLayout:i===qoe?this.d3ForceLayout:i===Goe?this.circularLayout:this.forceLayout}},{key:"setLayout",value:function(i){bi.info("Switching to layout: ".concat(i));var a=this.currentLayoutType,o=this.getLayout(i);i==="free"&&o.setNodePositions(this.state.nodes.idToPosition),this.currentLayout=o,this.currentLayoutType=i,a&&a!==this.currentLayoutType&&(this.justSwitchedLayout=!0)}},{key:"setLayoutOptions",value:function(i){this.getLayout(this.state.layout).setOptions(i)}},{key:"getDataUrlForCanvas",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1],o=i.toDataURL("image/png");return a?o.replace(/^data:image\/png/,"data:application/octet-stream"):o}},{key:"initiateFileDownload",value:function(i,a){var o=document.createElement("a");o.style.display="none",o.setAttribute("download",i);var s=this.getDataUrlForCanvas(a,!0);o.setAttribute("href",s),o.click()}},{key:"updateLayoutAndPositions",value:function(){var i=this.state.nodes,a=i.items;this.currentLayout.update(this.justSwitchedLayout),this.justSwitchedLayout=!1;var o=this.currentLayout.getNodePositions(a);return i.updatePositions(o),o}},{key:"saveToFile",value:function(i){var a=no(no({},ab),i),o=this.createCanvasAndRenderImage(this.c2dCanvas.width,this.c2dCanvas.height,a.backgroundColor);this.initiateFileDownload(a.filename,o),om(o),o=null}},{key:"saveToSvg",value:(n=o9(Cb().m(function i(){var a,o,s,u,l,c,f,d,h,p,g,y,b,_=arguments;return Cb().w(function(m){for(;;)switch(m.p=m.n){case 0:return o=_.length>0&&_[0]!==void 0?_[0]:{},s=no(no({},ab),o),u=((a=s.filename)===null||a===void 0?void 0:a.replace(/\.[^.]+$/,".svg"))||"visualisation.svg",l=null,m.p=1,c=this.updateLayoutAndPositions(),f=i1(c,100),(l=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("width",String(f.nodesWidth)),l.setAttribute("height",String(f.nodesHeight)),l.style.background=s.backgroundColor||"rgba(0,0,0,0)",this.svgRenderer.processUpdates(),this.svgRenderer.render(c,f,{svg:l,backgroundColor:s.backgroundColor,showCaptions:!0}),m.n=2,this.svgRenderer.waitForImages();case 2:this.svgRenderer.render(c,f,{svg:l,backgroundColor:s.backgroundColor,showCaptions:!0}),d=new XMLSerializer,h=d.serializeToString(l),p=new Blob([h],{type:"image/svg+xml"}),g=URL.createObjectURL(p),(y=document.createElement("a")).style.display="none",y.setAttribute("download",u),y.setAttribute("href",g),document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(g),m.n=5;break;case 3:if(m.p=3,b=m.v,bi.error("An error occurred while exporting to SVG",b),!this.callbacks.isCallbackRegistered(up)){m.n=4;break}this.callIfRegistered(up,b),m.n=5;break;case 4:throw b;case 5:return m.p=5,l&&l.remove(),l=null,m.f(5);case 6:return m.a(2)}},i,this,[[1,3,5,6]])})),function(){return n.apply(this,arguments)})},{key:"getImageDataURL",value:function(i){var a=no(no({},ab),i),o=this.createCanvasAndRenderImage(this.c2dCanvas.width,this.c2dCanvas.height,a.backgroundColor),s=this.getDataUrlForCanvas(o);return om(o),o=null,s}},{key:"prepareLargeFileForDownload",value:function(i){var a=this,o=no(no({},ab),i),s=this.currentLayout.getNodePositions(this.state.nodes.items),u=i1(s,100),l=u.nodesWidth,c=u.nodesHeight,f=u.centerX,d=u.centerY,h=Math.max(Math.min(l+100,15e3),5e3),p=Math.max(Math.min(c+100,15e3),5e3);return this.isRenderingDisabled=!0,new Promise(function(g,y){try{a.setPanCoordinates(f,d);var b=Math.max(h/l-.02,a.state.minZoom),_=Math.max(p/c-.02,a.state.minZoom);a.setZoomLevel(Math.min(b,_))}catch(m){return bi.error("An error occurred while downloading the file"),void y(new Error("An error occurred while downloading the file",{cause:m}))}setTimeout(function(){try{var m=a.createCanvasAndRenderImage(h,p,o.backgroundColor);a.initiateFileDownload(o.filename,m),om(m),m=null,g(!0)}catch(x){y(new Error("An error occurred while downloading the file",{cause:x}))}},500)})}},{key:"createCanvasAndRenderImage",value:function(i,a,o){var s=(function(c,f){var d=document.createElement("canvas");return document.body.appendChild(d),Gq(d,c,f,1),d})(i,a),u=(function(c){return c.getContext("2d")})(s),l=this.updateLayoutAndPositions();return this.canvasRenderer.processUpdates(),this.canvasRenderer.render(l,{canvas:s,context:u,backgroundColor:o,ignoreAnimations:!0,showCaptions:!0}),s}},{key:"saveFullGraphToLargeFile",value:(t=o9(Cb().m(function i(a){var o,s,u,l,c;return Cb().w(function(f){for(;;)switch(f.p=f.n){case 0:return o=no(no({},ab),a),s=this.state.zoom,u=this.state.panX,l=this.state.panY,f.p=1,f.n=2,this.prepareLargeFileForDownload(o);case 2:f.n=5;break;case 3:if(f.p=3,c=f.v,bi.error("An error occurred while downloading the image"),!this.callbacks.isCallbackRegistered(up)){f.n=4;break}this.callIfRegistered(up,c),f.n=5;break;case 4:throw c;case 5:return f.p=5,this.isRenderingDisabled=!1,this.setZoomLevel(s),this.setPanCoordinates(u,l),f.f(5);case 6:return f.a(2)}},i,this,[[1,3,5,6]])})),function(i){return t.apply(this,arguments)})}],e&&tue(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e,t,n})();function hE(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=(function(u,l){if(u){if(typeof u=="string")return f9(u,l);var c={}.toString.call(u).slice(8,-1);return c==="Object"&&u.constructor&&(c=u.constructor.name),c==="Map"||c==="Set"?Array.from(u):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?f9(u,l):void 0}})(r))||e){t&&(r=t);var n=0,i=function(){};return{s:i,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function f9(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t1&&arguments[1]!==void 0?arguments[1]:{};this.fitNodeIds=(0,Hi.intersection)(j,(0,Hi.map)(this.nodes.items,"id")),this.zoomOptions=v9(v9({},CP),z)}),setZoomReset:ta(function(){this.resetZoom=!0}),clearFit:ta(function(){this.fitNodeIds=[],this.forceWebGL=!1,this.fitMovement=0,this.zoomOptions=CP}),clearReset:ta(function(){this.resetZoom=!1,this.fitMovement=0}),updateZoomToFit:ta(function(j,z,H,q){var W;if(this.fitMovement=Math.abs(j-this.zoom)+Math.abs(z-this.panX)+Math.abs(H-this.panY),i){var $=Object.values(this.nodes.idToPosition);(W=UP($,this.minZoom,this.maxZoom,q,j,this.zoom))0},zw=io(1187);function c1(r){return c1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c1(r)}function p9(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function g9(r){for(var e=1;er.length)&&(e=r.length);for(var t=0,n=Array(e);t=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function PG(r,e){if(r){if(typeof r=="string")return b9(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b9(r,e):void 0}}function b9(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,t),(function(u,l){DG(u,l),l.add(u)})(this,Qc),um(this,u2,void 0),um(this,In,void 0),um(this,mi,void 0),um(this,wd,void 0),um(this,mm,void 0),um(this,mue,void 0),o.disableTelemetry,Oc(Qc,this,_ue).call(this,o),d1(u2,this,new Gae(s)),d1(wd,this,o),d1(mm,this,n),this.checkWebGLCompatibility(),Oc(Qc,this,w9).call(this,i,a,o)},e=[{key:"restart",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=this.getNodePositions(),a=Vt(In,this),o=a.zoom,s=a.layout,u=a.layoutOptions,l=a.nodes,c=a.rels;Vt(mi,this).destroy(),Object.assign(Vt(wd,this),t),Oc(Qc,this,w9).call(this,l.items,c.items,Vt(wd,this)),this.setZoom(o),this.setLayout(s),this.setLayoutOptions(u),this.addAndUpdateElementsInGraph(l.items,c.items),n&&this.setNodePositions(i)}},{key:"addAndUpdateElementsInGraph",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];Oc(Qc,this,VP).call(this,t),Oc(Qc,this,HP).call(this,n,t);var i={added:!1,updated:!1};Vt(In,this).nodes.update(t,Ds({},i)),Vt(In,this).rels.update(n,Ds({},i)),Vt(In,this).nodes.add(t,Ds({},i)),Vt(In,this).rels.add(n,Ds({},i)),Vt(In,this).setGraphUpdated(),Vt(mi,this).updateHtmlOverlay()}},{key:"getSelectedNodes",value:function(){var t=this;return $u(Vt(In,this).nodes.items).filter(function(n){return n.selected}).map(function(n){return Ds(Ds({},n),Vt(In,t).nodes.idToPosition[n.id])})}},{key:"getSelectedRelationships",value:function(){return $u(Vt(In,this).rels.items).filter(function(t){return t.selected})}},{key:"updateElementsInGraph",value:function(t,n){var i=this,a={added:!1,updated:!1},o=t.filter(function(u){return Vt(In,i).nodes.idToItem[u.id]!==void 0}),s=n.filter(function(u){return Vt(In,i).rels.idToItem[u.id]!==void 0});Oc(Qc,this,VP).call(this,o),Oc(Qc,this,HP).call(this,s,t),Vt(In,this).nodes.update(o,Ds({},a)),Vt(In,this).rels.update(s,Ds({},a)),Vt(mi,this).updateHtmlOverlay()}},{key:"addElementsToGraph",value:function(t,n){Oc(Qc,this,VP).call(this,t),Oc(Qc,this,HP).call(this,n,t);var i={added:!1,updated:!1};Vt(In,this).nodes.add(t,Ds({},i)),Vt(In,this).rels.add(n,Ds({},i)),Vt(mi,this).updateHtmlOverlay()}},{key:"removeNodesWithIds",value:function(t){if(Array.isArray(t)&&!(0,Hi.isEmpty)(t)){var n,i={},a=E5(t);try{for(a.s();!(n=a.n()).done;)i[n.value]=!0}catch(c){a.e(c)}finally{a.f()}var o,s=[],u=E5(Vt(In,this).rels.items);try{for(u.s();!(o=u.n()).done;){var l=o.value;i[l.from]!==!0&&i[l.to]!==!0||s.push(l.id)}}catch(c){u.e(c)}finally{u.f()}s.length>0&&Oc(Qc,this,x9).call(this,s),Oc(Qc,this,wue).call(this,t),Vt(In,this).setGraphUpdated(),Vt(mi,this).updateHtmlOverlay()}}},{key:"removeRelationshipsWithIds",value:function(t){Array.isArray(t)&&!(0,Hi.isEmpty)(t)&&(Oc(Qc,this,x9).call(this,t),Vt(In,this).setGraphUpdated(),Vt(mi,this).updateHtmlOverlay())}},{key:"getNodes",value:function(){return Vt(mi,this).dumpNodes()}},{key:"getRelationships",value:function(){return Vt(mi,this).dumpRelationships()}},{key:"getNodeById",value:function(t){return Vt(In,this).nodes.idToItem[t]}},{key:"getRelationshipById",value:function(t){return Vt(In,this).rels.idToItem[t]}},{key:"getPositionById",value:function(t){return Vt(In,this).nodes.idToPosition[t]}},{key:"getCurrentOptions",value:function(){return Vt(wd,this)}},{key:"destroy",value:function(){Vt(mi,this).destroy()}},{key:"deselectAll",value:function(){this.updateElementsInGraph(Vt(In,this).nodes.items.map(function(t){return Ds(Ds({},t),{},{selected:!1})}),Vt(In,this).rels.items.map(function(t){return Ds(Ds({},t),{},{selected:!1})}))}},{key:"fit",value:function(t,n){Vt(mi,this).fit(t,n)}},{key:"resetZoom",value:function(){Vt(mi,this).resetZoom()}},{key:"setRenderer",value:function(t){Vt(mi,this).setRenderer(t)}},{key:"setDisableWebGL",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];Vt(wd,this).disableWebGL!==t&&(Vt(wd,this).disableWebGL=t,this.restart())}},{key:"pinNode",value:function(t){Vt(In,this).nodes.update([{id:t,pinned:!0}],{})}},{key:"unPinNode",value:function(t){Vt(In,this).nodes.update(t.map(function(n){return{id:n,pinned:!1}}),{})}},{key:"setLayout",value:function(t){Vt(In,this).setLayout(t)}},{key:"setLayoutOptions",value:function(t){Vt(In,this).setLayoutOptions(t)}},{key:"getNodesOnScreen",value:function(){return Vt(mi,this).getNodesOnScreen()}},{key:"getNodePositions",value:function(){return Vt(mi,this).getNodePositions()}},{key:"setNodePositions",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];Vt(mi,this).setNodePositions(t,n)}},{key:"isLayoutMoving",value:function(){return Vt(mi,this).isLayoutMoving()}},{key:"saveToFile",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vt(mi,this).saveToFile(t)}},{key:"saveToSvg",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vt(mi,this).saveToSvg(t)}},{key:"getImageDataUrl",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Vt(mi,this).getImageDataURL(t)}},{key:"saveFullGraphToLargeFile",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vt(mi,this).saveFullGraphToLargeFile(t)}},{key:"getZoomLimits",value:function(){return{minZoom:Vt(In,this).minZoom,maxZoom:Vt(In,this).maxZoom}}},{key:"setZoom",value:function(t){Vt(mi,this).setZoomLevel(t)}},{key:"setPan",value:function(t,n){Vt(mi,this).setPanCoordinates(t,n)}},{key:"setZoomAndPan",value:function(t,n,i){Vt(mi,this).setZoomAndPan(t,n,i)}},{key:"getScale",value:function(){return Vt(mi,this).getScale()}},{key:"getPan",value:function(){return Vt(mi,this).getPan()}},{key:"getHits",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["node","relationship"],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{hitNodeMarginWidth:0},a=Vt(In,this),o=a.zoom,s=a.panX,u=a.panY,l=a.renderer,c=bG(t,Vt(mm,this),o,s,u),f=c.x,d=c.y,h=l===Mg?(function(p,g,y){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["node","relationship"],_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},m=[],x=[],E=y.nodes,O=y.rels;return b.includes("node")&&m.push.apply(m,Bw((function(S,T){var P,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,L=[],B=_5(arguments.length>2&&arguments[2]!==void 0?arguments[2]:[]);try{var j=function(){var z,H=P.value,q=I[H.id];if((q==null?void 0:q.x)===void 0||q.y===void 0)return 1;var W=((z=H.size)!==null&&z!==void 0?z:ha)*$n(),$={x:q.x-S,y:q.y-T},J=Math.pow(W,2),X=Math.pow(W+k,2),Z=Math.pow($.x,2)+Math.pow($.y,2),ue=Math.sqrt(Z);if(Zue});L.splice(re!==-1?re:L.length,0,{data:H,targetCoordinates:{x:q.x,y:q.y},pointerCoordinates:{x:S,y:T},distanceVector:$,distance:ue,insideNode:Z3&&arguments[3]!==void 0?arguments[3]:{},k=[],L={},B=_5(arguments.length>2&&arguments[2]!==void 0?arguments[2]:[]);try{var j=function(){var z=P.value,H=z.from,q=z.to;if(L["".concat(H,".").concat(q)]===void 0){var W=I[H],$=I[q];if((W==null?void 0:W.x)===void 0||W.y===void 0||($==null?void 0:$.x)===void 0||$.y===void 0)return 0;var J=KD({x:W.x,y:W.y},{x:$.x,y:$.y},{x:S,y:T});if(J<=Xse){var X=k.findIndex(function(Z){return Z.distance>J});k.splice(X!==-1?X:k.length,0,{data:z,fromTargetCoordinates:{x:W.x,y:W.y},toTargetCoordinates:{x:$.x,y:$.y},pointerCoordinates:{x:S,y:T},distance:J})}L["".concat(H,".").concat(q)]=1,L["".concat(q,".").concat(H)]=1}};for(B.s();!(P=B.n()).done;)j()}catch(z){B.e(z)}finally{B.f()}return k})(p,g,O.items,E.idToPosition))),{nodes:m,relationships:x}})(f,d,Vt(In,this),n,i):(function(p,g,y){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["node","relationship"],_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},m=[],x=[];return b.includes("node")&&m.push.apply(m,Bw(y.getCanvasNodesAt({x:p,y:g},_.hitNodeMarginWidth))),b.includes("relationship")&&x.push.apply(x,Bw(y.getCanvasRelsAt({x:p,y:g}))),{nodes:m,relationships:x}})(f,d,Vt(mi,this),n,i);return Ds(Ds({},t),{},{nvlTargets:h})}},{key:"getContainer",value:function(){return Vt(mm,this)}},{key:"checkWebGLCompatibility",value:function(){var t=Vt(wd,this).disableWebGL;if(t===void 0||!t){var n=(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.createElement("canvas");try{return window.WebGLRenderingContext!==void 0&&(i.getContext("webgl")!==null||i.getContext("experimental-webgl")!==null)}catch{return!1}})();if(!n){if(t!==void 0)throw new Mq("Could not initialize WebGL");Vt(wd,this).renderer=fp,bi.warn("GPU acceleration is not available on your browser. Falling back to CPU layout and rendering. You can disable this warning by setting the disableWebGL option to true.")}t===void 0&&(Vt(wd,this).disableWebGL=!n)}}}],e&&yue(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function w9(){var r,e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};d1(In,this,hue(i)),i.minimapContainer instanceof HTMLElement||delete i.minimapContainer,d1(mi,this,new rue(Vt(In,this),Vt(mm,this),i)),this.addAndUpdateElementsInGraph(t,n),Vt(mi,this).on("restart",this.restart.bind(this));var a,o,s=E5((a=Vt(u2,this).callbacks,Object.entries(a)));try{var u=function(){var l,c,f=(l=o.value,c=2,(function(p){if(Array.isArray(p))return p})(l)||(function(p,g){var y=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(y!=null){var b,_,m,x,E=[],O=!0,S=!1;try{if(m=(y=y.call(p)).next,g===0){if(Object(y)!==y)return;O=!1}else for(;!(O=(b=m.call(y)).done)&&(E.push(b.value),E.length!==g);O=!0);}catch(T){S=!0,_=T}finally{try{if(!O&&y.return!=null&&(x=y.return(),Object(x)!==x))return}finally{if(S)throw _}}return E}})(l,c)||PG(l,c)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()),d=f[0],h=f[1];h!==void 0&&Vt(mi,e).on(d,function(){for(var p=arguments.length,g=new Array(p),y=0;y0})(n)});if(e){var t="";throw/^\d+$/.test(e.id)||(t=" Node ids need to be numeric strings. Strings that contain anything other than numbers are not yet supported."),new TypeError("Invalid node provided: ".concat(JSON.stringify(e),".").concat(t))}}function HP(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t="",n=null,i=Vt(In,this),a=i.nodes,o=i.rels,s={},u=0;u{const t=ss.keyBy(r,"id"),n=ss.keyBy(e,"id"),i=ss.sortBy(ss.keys(t)),a=ss.sortBy(ss.keys(n)),o=[],s=[],u=[];let l=0,c=0;for(;ln[f]).filter(f=>!ss.isNil(f)),removed:s.map(f=>t[f]).filter(f=>!ss.isNil(f)),updated:u.map(f=>n[f]).filter(f=>!ss.isNil(f))}},Sue=(r,e)=>{const t=ss.keyBy(r,"id");return e.map(n=>{const i=t[n.id];return i===void 0?null:ss.transform(n,(a,o,s)=>{(s==="id"||o!==i[s])&&Object.assign(a,{[s]:o})})}).filter(n=>n!==null&&Object.keys(n).length>1)},Oue=(r,e)=>ss.isEqual(r,e),Tue=r=>{const e=me.useRef();return Oue(r,e.current)||(e.current=r),e.current},Cue=(r,e)=>{me.useEffect(r,e.map(Tue))},Aue=me.memo(me.forwardRef(({nodes:r,rels:e,layout:t,layoutOptions:n,nvlCallbacks:i={},nvlOptions:a={},positions:o=[],zoom:s,pan:u,onInitializationError:l,...c},f)=>{const d=me.useRef(null),h=me.useRef(void 0),p=me.useRef(void 0);me.useImperativeHandle(f,()=>Object.getOwnPropertyNames(E9.prototype).reduce((E,O)=>({...E,[O]:(...S)=>d.current===null?null:d.current[O](...S)}),{}));const g=me.useRef(null),[y,b]=me.useState(r),[_,m]=me.useState(e);return me.useEffect(()=>()=>{var x;(x=d.current)==null||x.destroy(),d.current=null},[]),me.useEffect(()=>{let x=null;const O="minimapContainer"in a?a.minimapContainer!==null:!0;if(g.current!==null&&O&&d.current===null){const T={...a,layoutOptions:n};t!==void 0&&(T.layout=t);try{x=new E9(g.current,y,_,T,i),d.current=x,m(e),b(r)}catch(P){if(typeof l=="function")l(P);else throw P}}},[g.current,a.minimapContainer]),me.useEffect(()=>{if(d.current===null)return;const x=S9(y,r),E=Sue(y,r),O=S9(_,e);if(x.added.length===0&&x.removed.length===0&&E.length===0&&O.added.length===0&&O.removed.length===0&&O.updated.length===0)return;m(e),b(r);const T=[...x.added,...E],P=[...O.added,...O.updated];d.current.addAndUpdateElementsInGraph(T,P);const I=O.removed.map(L=>L.id),k=x.removed.map(L=>L.id);d.current.removeRelationshipsWithIds(I),d.current.removeNodesWithIds(k)},[y,_,r,e]),me.useEffect(()=>{const x=t??a.layout;d.current===null||x===void 0||d.current.setLayout(x)},[t,a.layout]),Cue(()=>{const x=n??(a==null?void 0:a.layoutOptions);d.current===null||x===void 0||d.current.setLayoutOptions(x)},[n,a.layoutOptions]),me.useEffect(()=>{d.current===null||a.renderer===void 0||d.current.setRenderer(a.renderer)},[a.renderer]),me.useEffect(()=>{d.current===null||a.disableWebGL===void 0||d.current.setDisableWebGL(a.disableWebGL)},[a.disableWebGL]),me.useEffect(()=>{d.current===null||o.length===0||d.current.setNodePositions(o)},[o]),me.useEffect(()=>{if(d.current===null)return;const x=h.current,E=p.current,O=s!==void 0&&s!==x,S=u!==void 0&&(u.x!==(E==null?void 0:E.x)||u.y!==E.y);O&&S?d.current.setZoomAndPan(s,u.x,u.y):O?d.current.setZoom(s):S&&d.current.setPan(u.x,u.y),h.current=s,p.current=u},[s,u]),Te.jsx("div",{id:xue,ref:g,style:{height:"100%",outline:"0"},...c})})),Ym=10,WP=10,vh={frameWidth:3,frameColor:"#a9a9a9",color:"#e0e0e0",lineDash:[10,15],opacity:.5};class kG{constructor(e){Ft(this,"ctx");Ft(this,"canvas");Ft(this,"removeResizeListener");const t=document.createElement("canvas");t.style.position="absolute",t.style.top="0",t.style.bottom="0",t.style.left="0",t.style.right="0",t.style.touchAction="none",e==null||e.appendChild(t);const n=t.getContext("2d");this.ctx=n,this.canvas=t;const i=()=>{this.fixCanvasSize(t)};e==null||e.addEventListener("resize",i),this.removeResizeListener=()=>e==null?void 0:e.removeEventListener("resize",i),this.fixCanvasSize(t)}fixCanvasSize(e){const t=e.parentElement;if(!t)return;const n=t.getBoundingClientRect(),{width:i}=n,{height:a}=n,o=window.devicePixelRatio||1;e.width=i*o,e.height=a*o,e.style.width=`${i}px`,e.style.height=`${a}px`}drawBox(e,t,n,i){const{ctx:a}=this;if(a===null)return;this.clear(),a.save(),a.beginPath(),a.rect(e,t,n-e,i-t),a.closePath(),a.strokeStyle=vh.frameColor;const o=window.devicePixelRatio||1;a.lineWidth=vh.frameWidth*o,a.fillStyle=vh.color,a.globalAlpha=vh.opacity,a.setLineDash(vh.lineDash),a.stroke(),a.fill(),a.restore()}drawLasso(e,t,n){const{ctx:i}=this;if(i===null)return;i.save(),this.clear(),i.beginPath();let a=0;for(const s of e){const{x:u,y:l}=s;a===0?i.moveTo(u,l):i.lineTo(u,l),a+=1}const o=window.devicePixelRatio||1;i.strokeStyle=vh.frameColor,i.setLineDash(vh.lineDash),i.lineWidth=vh.frameWidth*o,i.fillStyle=vh.color,i.globalAlpha=vh.opacity,t&&i.stroke(),n&&i.fill(),i.restore()}clear(){const{ctx:e,canvas:t}=this;if(e===null)return;const n=t.getBoundingClientRect(),i=window.devicePixelRatio||1;e.clearRect(0,0,n.width*i,n.height*i)}destroy(){const{canvas:e}=this;this.removeResizeListener(),e.remove()}}class Wp{constructor(e,t){Ft(this,"nvl");Ft(this,"options");Ft(this,"container");Ft(this,"callbackMap");Ft(this,"addEventListener",(e,t,n)=>{var i;(i=this.container)==null||i.addEventListener(e,t,n)});Ft(this,"removeEventListener",(e,t,n)=>{var i;(i=this.container)==null||i.removeEventListener(e,t,n)});Ft(this,"callCallbackIfRegistered",(e,...t)=>{const n=this.callbackMap.get(e);typeof n=="function"&&n(...t)});Ft(this,"updateCallback",(e,t)=>{this.callbackMap.set(e,t)});Ft(this,"removeCallback",e=>{this.callbackMap.delete(e)});Ft(this,"toggleGlobalTextSelection",(e,t)=>{e?(document.body.style.removeProperty("user-select"),t&&document.body.removeEventListener("mouseup",t)):(document.body.style.setProperty("user-select","none","important"),t&&document.body.addEventListener("mouseup",t))});this.nvl=e,this.options=t,this.container=this.nvl.getContainer(),this.callbackMap=new Map}get nvlInstance(){return this.nvl}get currentOptions(){return this.options}get containerInstance(){return this.container}}const sb=r=>Math.floor(Math.random()*Math.pow(10,r)).toString(),IG=(r,e)=>{const t=Math.abs(r.clientX-e.x),n=Math.abs(r.clientY-e.y);return t>WP||n>WP?!0:Math.pow(t,2)+Math.pow(n,2)>WP},Ap=(r,e)=>{const t=r.getBoundingClientRect(),n=window.devicePixelRatio||1;return{x:(e.clientX-t.left)*n,y:(e.clientY-t.top)*n}},Rue=(r,e)=>{const t=r.getBoundingClientRect(),n=window.devicePixelRatio||1;return{x:(e.clientX-t.left-t.width*.5)*n,y:(e.clientY-t.top-t.height*.5)*n}},j1=(r,e)=>{const t=r.getScale(),n=r.getPan(),i=r.getContainer(),{width:a,height:o}=i.getBoundingClientRect(),s=window.devicePixelRatio||1,u=e.x-a*.5*s,l=e.y-o*.5*s;return{x:n.x+u/t,y:n.y+l/t}};class O9 extends Wp{constructor(t,n={selectOnRelease:!1}){super(t,n);Ft(this,"mousePosition",{x:0,y:0});Ft(this,"startWorldPosition",{x:0,y:0});Ft(this,"overlayRenderer");Ft(this,"isBoxSelecting",!1);Ft(this,"handleMouseDown",t=>{if(t.button!==0){this.isBoxSelecting=!1;return}this.turnOnBoxSelect(t)});Ft(this,"handleDrag",t=>{if(this.isBoxSelecting){const n=Ap(this.containerInstance,t);this.overlayRenderer.drawBox(this.mousePosition.x,this.mousePosition.y,n.x,n.y)}else t.buttons===1&&this.turnOnBoxSelect(t)});Ft(this,"getHitsInBox",(t,n)=>{const i=(c,f,d)=>{const h=Math.min(f.x,d.x),p=Math.max(f.x,d.x),g=Math.min(f.y,d.y),y=Math.max(f.y,d.y);return c.x>=h&&c.x<=p&&c.y>=g&&c.y<=y},a=this.nvlInstance.getNodePositions(),o=new Set;for(const c of a)i(c,t,n)&&o.add(c.id);const s=this.nvlInstance.getRelationships(),u=[];for(const c of s)o.has(c.from)&&o.has(c.to)&&u.push(c);return{nodes:Array.from(o).map(c=>this.nvlInstance.getNodeById(c)),rels:u}});Ft(this,"endBoxSelect",t=>{if(!this.isBoxSelecting)return;this.isBoxSelecting=!1,this.overlayRenderer.clear();const n=Ap(this.containerInstance,t),i=j1(this.nvlInstance,n),{nodes:a,rels:o}=this.getHitsInBox(this.startWorldPosition,i);this.currentOptions.selectOnRelease===!0&&this.nvlInstance.updateElementsInGraph(a.map(s=>({id:s.id,selected:!0})),o.map(s=>({id:s.id,selected:!0}))),this.callCallbackIfRegistered("onBoxSelect",{nodes:a,rels:o},t),this.toggleGlobalTextSelection(!0,this.endBoxSelect)});this.overlayRenderer=new kG(this.containerInstance),this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("mousemove",this.handleDrag,!0),this.addEventListener("mouseup",this.endBoxSelect,!0)}destroy(){this.toggleGlobalTextSelection(!0,this.endBoxSelect),this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("mousemove",this.handleDrag,!0),this.removeEventListener("mouseup",this.endBoxSelect,!0),this.overlayRenderer.destroy()}turnOnBoxSelect(t){this.mousePosition=Ap(this.containerInstance,t),this.startWorldPosition=j1(this.nvlInstance,this.mousePosition),this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}).nvlTargets.nodes.length>0?this.isBoxSelecting=!1:(this.isBoxSelecting=!0,this.toggleGlobalTextSelection(!1,this.endBoxSelect),this.callCallbackIfRegistered("onBoxStarted",t),this.currentOptions.selectOnRelease===!0&&this.nvlInstance.deselectAll())}}class iv extends Wp{constructor(t,n={selectOnClick:!1}){super(t,n);Ft(this,"moved",!1);Ft(this,"mousePosition",{x:0,y:0});Ft(this,"handleMouseDown",t=>{this.mousePosition={x:t.clientX,y:t.clientY}});Ft(this,"handleRightClick",t=>{var o,s;t.preventDefault();const{nvlTargets:n}=this.nvlInstance.getHits(t),{nodes:i=[],relationships:a=[]}=n;if(i.length===0&&a.length===0){this.callCallbackIfRegistered("onCanvasRightClick",t);return}i.length>0?this.callCallbackIfRegistered("onNodeRightClick",(o=i[0])==null?void 0:o.data,n,t):a.length>0&&this.callCallbackIfRegistered("onRelationshipRightClick",(s=a[0])==null?void 0:s.data,n,t)});Ft(this,"handleDoubleClick",t=>{var o,s;const{nvlTargets:n}=this.nvlInstance.getHits(t),{nodes:i=[],relationships:a=[]}=n;if(i.length===0&&a.length===0){this.callCallbackIfRegistered("onCanvasDoubleClick",t);return}i.length>0?this.callCallbackIfRegistered("onNodeDoubleClick",(o=i[0])==null?void 0:o.data,n,t):a.length>0&&this.callCallbackIfRegistered("onRelationshipDoubleClick",(s=a[0])==null?void 0:s.data,n,t)});Ft(this,"handleClick",t=>{var o,s;if(IG(t,this.mousePosition)||t.button!==0)return;const{nvlTargets:n}=this.nvlInstance.getHits(t),{nodes:i=[],relationships:a=[]}=n;if(i.length===0&&a.length===0){this.currentOptions.selectOnClick===!0&&this.nvlInstance.deselectAll(),this.callCallbackIfRegistered("onCanvasClick",t);return}if(i.length>0){const u=i.map(l=>l.data);if(this.currentOptions.selectOnClick===!0){const l=this.nvlInstance.getSelectedNodes(),c=this.nvlInstance.getSelectedRelationships(),d=[...u[0]?[{id:u[0].id,selected:!0}]:[],...l.map(p=>({id:p.id,selected:!1}))],h=c.map(p=>({...p,selected:!1}));this.nvlInstance.updateElementsInGraph(d,h)}this.callCallbackIfRegistered("onNodeClick",(o=i[0])==null?void 0:o.data,n,t)}else if(a.length>0){const u=a.map(l=>l.data);if(this.currentOptions.selectOnClick===!0){const l=this.nvlInstance.getSelectedNodes(),c=this.nvlInstance.getSelectedRelationships(),f=l.map(p=>({id:p.id,selected:!1})),h=[...u[0]?[{id:u[0].id,selected:!0}]:[],...c.map(p=>({...p,selected:!1}))];this.nvlInstance.updateElementsInGraph(f,h)}this.callCallbackIfRegistered("onRelationshipClick",(s=a[0])==null?void 0:s.data,n,t)}});Ft(this,"destroy",()=>{this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("click",this.handleClick,!0),this.removeEventListener("dblclick",this.handleDoubleClick,!0),this.removeEventListener("contextmenu",this.handleRightClick,!0)});this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("click",this.handleClick,!0),this.addEventListener("dblclick",this.handleDoubleClick,!0),this.addEventListener("contextmenu",this.handleRightClick,!0)}}class YP extends Wp{constructor(t,n={}){super(t,n);Ft(this,"mousePosition",{x:0,y:0});Ft(this,"mouseDownNode",null);Ft(this,"isDragging",!1);Ft(this,"isDrawing",!1);Ft(this,"selectedNodes",[]);Ft(this,"moveSelectedNodes",!1);Ft(this,"handleMouseDown",t=>{this.mousePosition={x:t.clientX,y:t.clientY},this.mouseDownNode=null;const n=this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}),i=n.nvlTargets.nodes.filter(o=>o.insideNode);n.nvlTargets.nodes.filter(o=>!o.insideNode).length>0?(this.isDrawing=!0,this.addEventListener("mouseup",this.resetState,{once:!0})):i.length>0&&(this.mouseDownNode=n.nvlTargets.nodes[0]??null,this.toggleGlobalTextSelection(!1,this.handleBodyMouseUp)),this.selectedNodes=this.nvlInstance.getSelectedNodes(),this.mouseDownNode!==null&&this.selectedNodes.map(o=>o.id).includes(this.mouseDownNode.data.id)?this.moveSelectedNodes=!0:this.moveSelectedNodes=!1});Ft(this,"handleMouseMove",t=>{if(this.mouseDownNode===null||t.buttons!==1||this.isDrawing||!IG(t,this.mousePosition))return;this.isDragging||(this.moveSelectedNodes?this.callCallbackIfRegistered("onDragStart",this.selectedNodes,t):this.callCallbackIfRegistered("onDragStart",[this.mouseDownNode.data],t),this.isDragging=!0);const n=this.nvlInstance.getScale(),i=(t.clientX-this.mousePosition.x)/n*window.devicePixelRatio,a=(t.clientY-this.mousePosition.y)/n*window.devicePixelRatio;this.moveSelectedNodes?(this.nvlInstance.setNodePositions(this.selectedNodes.map(o=>({id:o.id,x:o.x+i,y:o.y+a,pinned:!0})),!0),this.callCallbackIfRegistered("onDrag",this.selectedNodes,t)):(this.nvlInstance.setNodePositions([{id:this.mouseDownNode.data.id,x:this.mouseDownNode.targetCoordinates.x+i,y:this.mouseDownNode.targetCoordinates.y+a,pinned:!0}],!0),this.callCallbackIfRegistered("onDrag",[this.mouseDownNode.data],t))});Ft(this,"handleBodyMouseUp",t=>{this.toggleGlobalTextSelection(!0,this.handleBodyMouseUp),this.isDragging&&this.mouseDownNode!==null&&(this.moveSelectedNodes?this.callCallbackIfRegistered("onDragEnd",this.selectedNodes,t):this.callCallbackIfRegistered("onDragEnd",[this.mouseDownNode.data],t)),this.resetState()});Ft(this,"resetState",()=>{this.isDragging=!1,this.mouseDownNode=null,this.isDrawing=!1,this.selectedNodes=[],this.moveSelectedNodes=!1});Ft(this,"destroy",()=>{this.toggleGlobalTextSelection(!0,this.handleBodyMouseUp),this.removeEventListener("mousedown",this.handleMouseDown),this.removeEventListener("mousemove",this.handleMouseMove)});this.addEventListener("mousedown",this.handleMouseDown),this.addEventListener("mousemove",this.handleMouseMove)}}const lp={node:{color:"black",size:25},relationship:{color:"red",width:1}};class XP extends Wp{constructor(t,n={}){var i,a;super(t,n);Ft(this,"isMoved",!1);Ft(this,"isDrawing",!1);Ft(this,"isDraggingNode",!1);Ft(this,"mouseDownNode");Ft(this,"newTempTargetNode",null);Ft(this,"newTempRegularRelationshipToNewTempTargetNode",null);Ft(this,"newTempRegularRelationshipToExistingNode",null);Ft(this,"newTempSelfReferredRelationship",null);Ft(this,"newTargetNodeToAdd",null);Ft(this,"newRelationshipToAdd",null);Ft(this,"mouseOutsideOfNvlArea",!1);Ft(this,"cancelDrawing",()=>{var t,n,i,a,o;this.nvlInstance.removeRelationshipsWithIds([(t=this.newTempRegularRelationshipToNewTempTargetNode)==null?void 0:t.id,(n=this.newTempRegularRelationshipToExistingNode)==null?void 0:n.id,(i=this.newTempSelfReferredRelationship)==null?void 0:i.id].filter(s=>!!s)),this.nvlInstance.removeNodesWithIds((a=this.newTempTargetNode)!=null&&a.id?[(o=this.newTempTargetNode)==null?void 0:o.id]:[]),this.newTempTargetNode=null,this.newTempRegularRelationshipToNewTempTargetNode=null,this.newTempRegularRelationshipToExistingNode=null,this.newTempSelfReferredRelationship=null,this.isMoved=!1,this.isDrawing=!1,this.isDraggingNode=!1});Ft(this,"handleMouseUpGlobal",t=>{this.isDrawing&&this.mouseOutsideOfNvlArea&&this.cancelDrawing()});Ft(this,"handleMouseLeaveNvl",()=>{this.mouseOutsideOfNvlArea=!0});Ft(this,"handleMouseEnterNvl",()=>{this.mouseOutsideOfNvlArea=!1});Ft(this,"handleMouseMove",t=>{var n,i,a,o,s,u,l,c,f,d,h,p,g;if(this.isMoved=!0,this.isDrawing){const y=Ap(this.containerInstance,t),b=j1(this.nvlInstance,y),_=this.nvlInstance.getHits(t,["node"]),[m]=_.nvlTargets.nodes.filter(L=>{var B;return L.data.id!==((B=this.newTempTargetNode)==null?void 0:B.id)}),x=m?{id:m.data.id,x:m.targetCoordinates.x,y:m.targetCoordinates.y,size:m.data.size}:void 0,E=sb(13),O=x?null:{id:E,size:((i=(n=this.currentOptions.ghostGraphStyling)==null?void 0:n.node)==null?void 0:i.size)??lp.node.size,selected:!1,x:b.x,y:b.y},S=sb(13),T=(a=this.mouseDownNode)!=null&&a.data?{id:S,from:this.mouseDownNode.data.id,to:x?x.id:E}:null;let{x:P,y:I}=b,k=((s=(o=this.currentOptions.ghostGraphStyling)==null?void 0:o.node)==null?void 0:s.size)??lp.node.size;m?(P=m.targetCoordinates.x,I=m.targetCoordinates.y,k=m.data.size??k,m.data.id===((u=this.mouseDownNode)==null?void 0:u.data.id)&&!this.newTempSelfReferredRelationship?(this.nvlInstance.removeRelationshipsWithIds([(l=this.newTempRegularRelationshipToNewTempTargetNode)==null?void 0:l.id,(c=this.newTempRegularRelationshipToExistingNode)==null?void 0:c.id].filter(L=>!!L)),this.newTempRegularRelationshipToNewTempTargetNode=null,this.newTempRegularRelationshipToExistingNode=null,this.setNewSelfReferredRelationship(),this.newTempSelfReferredRelationship&&this.nvlInstance.addElementsToGraph([],[this.newTempSelfReferredRelationship])):m.data.id!==((f=this.mouseDownNode)==null?void 0:f.data.id)&&!this.newTempRegularRelationshipToExistingNode&&(this.nvlInstance.removeRelationshipsWithIds([(d=this.newTempSelfReferredRelationship)==null?void 0:d.id,(h=this.newTempRegularRelationshipToNewTempTargetNode)==null?void 0:h.id].filter(L=>!!L)),this.newTempSelfReferredRelationship=null,this.newTempRegularRelationshipToNewTempTargetNode=null,this.setNewRegularRelationshipToExistingNode(m.data.id),this.newTempRegularRelationshipToExistingNode&&this.nvlInstance.addElementsToGraph([],[this.newTempRegularRelationshipToExistingNode]))):this.newTempRegularRelationshipToNewTempTargetNode||(this.nvlInstance.removeRelationshipsWithIds([(p=this.newTempSelfReferredRelationship)==null?void 0:p.id,(g=this.newTempRegularRelationshipToExistingNode)==null?void 0:g.id].filter(L=>!!L)),this.newTempSelfReferredRelationship=null,this.newTempRegularRelationshipToExistingNode=null,this.setNewRegularRelationshipToNewTempTargetNode(),this.nvlInstance.addElementsToGraph([],this.newTempRegularRelationshipToNewTempTargetNode?[this.newTempRegularRelationshipToNewTempTargetNode]:[])),this.newTempTargetNode&&(this.nvlInstance.setNodePositions([{id:this.newTempTargetNode.id,x:P,y:I}]),this.nvlInstance.updateElementsInGraph([{id:this.newTempTargetNode.id,x:P,y:I,size:k}],[])),this.newRelationshipToAdd=T,this.newTargetNodeToAdd=O}else if(!this.isDraggingNode){this.newRelationshipToAdd=null,this.newTargetNodeToAdd=null;const b=this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}).nvlTargets.nodes.filter(_=>!_.insideNode);if(b.length>0){const[_]=b;this.callCallbackIfRegistered("onHoverNodeMargin",_==null?void 0:_.data)}else this.callCallbackIfRegistered("onHoverNodeMargin",null)}});Ft(this,"handleMouseDown",t=>{var u,l,c,f,d;this.callCallbackIfRegistered("onHoverNodeMargin",null),this.isMoved=!1,this.newRelationshipToAdd=null,this.newTargetNodeToAdd=null;const n=this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}),i=n.nvlTargets.nodes.filter(h=>h.insideNode),a=n.nvlTargets.nodes.filter(h=>!h.insideNode),o=i.length>0,s=a.length>0;if((o||s)&&(t.preventDefault(),(u=this.containerInstance)==null||u.focus()),o)this.isDraggingNode=!0,this.isDrawing=!1;else if(s){this.isDrawing=!0,this.isDraggingNode=!1,this.mouseDownNode=a[0];const h=Ap(this.containerInstance,t),p=j1(this.nvlInstance,h),g=((c=(l=this.currentOptions.ghostGraphStyling)==null?void 0:l.node)==null?void 0:c.color)??lp.node.color,y=document.createElement("div");y.style.width="110%",y.style.height="110%",y.style.position="absolute",y.style.left="-5%",y.style.top="-5%",y.style.borderRadius="50%",y.style.backgroundColor=g,this.newTempTargetNode={id:sb(13),size:((d=(f=this.currentOptions.ghostGraphStyling)==null?void 0:f.node)==null?void 0:d.size)??lp.node.size,selected:!1,x:p.x,y:p.y,html:y},this.setNewRegularRelationshipToNewTempTargetNode(),this.nvlInstance.addAndUpdateElementsInGraph([this.newTempTargetNode],this.newTempRegularRelationshipToNewTempTargetNode?[this.newTempRegularRelationshipToNewTempTargetNode]:[]),this.callCallbackIfRegistered("onDrawStarted",t)}else this.mouseDownNode=void 0,this.isDrawing=!1,this.isDraggingNode=!1});Ft(this,"handleMouseUp",t=>{var n,i,a,o,s;this.nvlInstance.removeRelationshipsWithIds([(n=this.newTempRegularRelationshipToNewTempTargetNode)==null?void 0:n.id,(i=this.newTempRegularRelationshipToExistingNode)==null?void 0:i.id,(a=this.newTempSelfReferredRelationship)==null?void 0:a.id].filter(u=>!!u)),this.nvlInstance.removeNodesWithIds((o=this.newTempTargetNode)!=null&&o.id?[(s=this.newTempTargetNode)==null?void 0:s.id]:[]),this.isDrawing&&this.isMoved&&(this.newTargetNodeToAdd&&this.nvlInstance.setNodePositions([this.newTargetNodeToAdd]),this.nvlInstance.addAndUpdateElementsInGraph(this.newTargetNodeToAdd?[{id:this.newTargetNodeToAdd.id}]:[],this.newRelationshipToAdd?[this.newRelationshipToAdd]:[]),this.callCallbackIfRegistered("onDrawEnded",this.newRelationshipToAdd,this.newTargetNodeToAdd,t)),this.newTempTargetNode=null,this.newTempRegularRelationshipToNewTempTargetNode=null,this.newTempRegularRelationshipToExistingNode=null,this.newTempSelfReferredRelationship=null,this.isMoved=!1,this.isDrawing=!1,this.isDraggingNode=!1});Ft(this,"destroy",()=>{var t,n;this.removeEventListener("mousemove",this.handleMouseMove,!0),this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("mouseup",this.handleMouseUp,!0),(t=this.containerInstance)==null||t.removeEventListener("mouseleave",this.handleMouseLeaveNvl),(n=this.containerInstance)==null||n.removeEventListener("mouseenter",this.handleMouseEnterNvl),document.removeEventListener("mouseup",this.handleMouseUpGlobal,!0)});this.nvlInstance.setLayout("free"),this.addEventListener("mousemove",this.handleMouseMove,!0),this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("mouseup",this.handleMouseUp,!0),(i=this.containerInstance)==null||i.addEventListener("mouseleave",this.handleMouseLeaveNvl),(a=this.containerInstance)==null||a.addEventListener("mouseenter",this.handleMouseEnterNvl),document.addEventListener("mouseup",this.handleMouseUpGlobal,!0)}setNewRegularRelationship(t){var n,i,a,o;return this.mouseDownNode?{id:sb(13),from:this.mouseDownNode.data.id,to:t,color:((i=(n=this.currentOptions.ghostGraphStyling)==null?void 0:n.relationship)==null?void 0:i.color)??lp.relationship.color,width:((o=(a=this.currentOptions.ghostGraphStyling)==null?void 0:a.relationship)==null?void 0:o.width)??lp.relationship.width}:null}setNewRegularRelationshipToNewTempTargetNode(){!this.mouseDownNode||!this.newTempTargetNode||(this.newTempRegularRelationshipToNewTempTargetNode=this.setNewRegularRelationship(this.newTempTargetNode.id))}setNewRegularRelationshipToExistingNode(t){this.mouseDownNode&&(this.newTempRegularRelationshipToExistingNode=this.setNewRegularRelationship(t))}setNewSelfReferredRelationship(){var t,n,i,a;this.mouseDownNode&&(this.newTempSelfReferredRelationship={id:sb(13),from:this.mouseDownNode.data.id,to:this.mouseDownNode.data.id,color:((n=(t=this.currentOptions.ghostGraphStyling)==null?void 0:t.relationship)==null?void 0:n.color)??lp.relationship.color,width:((a=(i=this.currentOptions.ghostGraphStyling)==null?void 0:i.relationship)==null?void 0:a.width)??lp.relationship.width})}}class Pue extends Wp{constructor(t,n={drawShadowOnHover:!1}){super(t,n);Ft(this,"currentHoveredElementId");Ft(this,"currentHoveredElementIsNode");Ft(this,"updates",{nodes:[],relationships:[]});Ft(this,"handleHover",t=>{const{nvlTargets:n}=this.nvlInstance.getHits(t),{nodes:i=[],relationships:a=[]}=n,o=i[0]??a[0],s=o==null?void 0:o.data,u=s!==void 0&&i[0]!==void 0,l=this.currentHoveredElementId===void 0&&s===void 0,c=(s==null?void 0:s.id)!==void 0&&this.currentHoveredElementId===s.id&&u===this.currentHoveredElementIsNode;if(l||c){this.callCallbackIfRegistered("onHover",s,n,t);return}if(this.currentHoveredElementId!==void 0&&this.currentHoveredElementId!==(s==null?void 0:s.id)&&this.unHoverCurrentElement(),u)this.updates.nodes.push({id:s.id,hovered:!0}),this.currentHoveredElementId=s.id,this.currentHoveredElementIsNode=!0;else if(s!==void 0){const{id:d}=s;this.updates.relationships.push({id:d,hovered:!0}),this.currentHoveredElementId=s.id,this.currentHoveredElementIsNode=!1}else this.currentHoveredElementId=void 0,this.currentHoveredElementIsNode=void 0;this.callCallbackIfRegistered("onHover",s,n,t),this.updateElementsInNVL(),this.clearUpdates()});this.addEventListener("mousemove",this.handleHover,!0)}updateElementsInNVL(){this.currentOptions.drawShadowOnHover===!0&&this.nvlInstance.getNodes().length>0&&this.nvlInstance.updateElementsInGraph(this.updates.nodes,this.updates.relationships)}clearUpdates(){this.updates.nodes=[],this.updates.relationships=[]}unHoverCurrentElement(){if(this.currentHoveredElementId===void 0)return;const t={id:this.currentHoveredElementId,hovered:!1};this.currentHoveredElementIsNode===!0?this.updates.nodes.push(t):this.updates.relationships.push({...t})}destroy(){this.removeEventListener("mousemove",this.handleHover,!0)}}var qw={exports:{}},dx={exports:{}},Mue=dx.exports,T9;function Due(){return T9||(T9=1,(function(r,e){(function(t,n){r.exports=n()})(Mue,function(){function t(_,m,x,E,O){(function S(T,P,I,k,L){for(;k>I;){if(k-I>600){var B=k-I+1,j=P-I+1,z=Math.log(B),H=.5*Math.exp(2*z/3),q=.5*Math.sqrt(z*H*(B-H)/B)*(j-B/2<0?-1:1),W=Math.max(I,Math.floor(P-j*H/B+q)),$=Math.min(k,Math.floor(P+(B-j)*H/B+q));S(T,P,W,$,L)}var J=T[P],X=I,Z=k;for(n(T,I,P),L(T[k],J)>0&&n(T,I,k);X0;)Z--}L(T[I],J)===0?n(T,I,Z):n(T,++Z,k),Z<=P&&(I=Z+1),P<=Z&&(k=Z-1)}})(_,m,x||0,E||_.length-1,O||i)}function n(_,m,x){var E=_[m];_[m]=_[x],_[x]=E}function i(_,m){return _m?1:0}var a=function(_){_===void 0&&(_=9),this._maxEntries=Math.max(4,_),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(_,m,x){if(!x)return m.indexOf(_);for(var E=0;E=_.minX&&m.maxY>=_.minY}function y(_){return{children:_,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function b(_,m,x,E,O){for(var S=[m,x];S.length;)if(!((x=S.pop())-(m=S.pop())<=E)){var T=m+Math.ceil((x-m)/E/2)*E;t(_,T,m,x,O),S.push(m,T,T,x)}}return a.prototype.all=function(){return this._all(this.data,[])},a.prototype.search=function(_){var m=this.data,x=[];if(!g(_,m))return x;for(var E=this.toBBox,O=[];m;){for(var S=0;S=0&&O[m].children.length>this._maxEntries;)this._split(O,m),m--;this._adjustParentBBoxes(E,O,m)},a.prototype._split=function(_,m){var x=_[m],E=x.children.length,O=this._minEntries;this._chooseSplitAxis(x,O,E);var S=this._chooseSplitIndex(x,O,E),T=y(x.children.splice(S,x.children.length-S));T.height=x.height,T.leaf=x.leaf,s(x,this.toBBox),s(T,this.toBBox),m?_[m-1].children.push(T):this._splitRoot(x,T)},a.prototype._splitRoot=function(_,m){this.data=y([_,m]),this.data.height=_.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},a.prototype._chooseSplitIndex=function(_,m,x){for(var E,O,S,T,P,I,k,L=1/0,B=1/0,j=m;j<=x-m;j++){var z=u(_,0,j,this.toBBox),H=u(_,j,x,this.toBBox),q=(O=z,S=H,T=void 0,P=void 0,I=void 0,k=void 0,T=Math.max(O.minX,S.minX),P=Math.max(O.minY,S.minY),I=Math.min(O.maxX,S.maxX),k=Math.min(O.maxY,S.maxY),Math.max(0,I-T)*Math.max(0,k-P)),W=d(z)+d(H);q=m;L--){var B=_.children[L];l(T,_.leaf?O(B):B),P+=h(T)}return P},a.prototype._adjustParentBBoxes=function(_,m,x){for(var E=x;E>=0;E--)l(m[E],_)},a.prototype._condense=function(_){for(var m=_.length-1,x=void 0;m>=0;m--)_[m].children.length===0?m>0?(x=_[m-1].children).splice(x.indexOf(_[m]),1):this.clear():s(_[m],this.toBBox)},a})})(dx)),dx.exports}class kue{constructor(e=[],t=Iue){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,i=t[e];for(;e>0;){const a=e-1>>1,o=t[a];if(n(i,o)>=0)break;t[e]=o,e=a}t[e]=i}_down(e){const{data:t,compare:n}=this,i=this.length>>1,a=t[e];for(;e=0)break;t[e]=s,e=o}t[e]=a}}function Iue(r,e){return re?1:0}const Nue=Object.freeze(Object.defineProperty({__proto__:null,default:kue},Symbol.toStringTag,{value:"Module"})),Lue=eV(Nue);var ub={exports:{}},$P,C9;function jue(){return C9||(C9=1,$P=function(e,t,n,i){var a=e[0],o=e[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=t.length);for(var u=(i-n)/2,l=0,c=u-1;lo!=p>o&&a<(h-f)*(o-d)/(p-d)+f;g&&(s=!s)}return s}),$P}var KP,A9;function Bue(){return A9||(A9=1,KP=function(e,t,n,i){var a=e[0],o=e[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=t.length);for(var u=i-n,l=0,c=u-1;lo!=p>o&&a<(h-f)*(o-d)/(p-d)+f;g&&(s=!s)}return s}),KP}var R9;function Fue(){if(R9)return ub.exports;R9=1;var r=jue(),e=Bue();return ub.exports=function(n,i,a,o){return i.length>0&&Array.isArray(i[0])?e(n,i,a,o):r(n,i,a,o)},ub.exports.nested=e,ub.exports.flat=r,ub.exports}var Ab={exports:{}},Uue=Ab.exports,P9;function zue(){return P9||(P9=1,(function(r,e){(function(t,n){n(e)})(Uue,function(t){const i=33306690738754706e-32;function a(g,y,b,_,m){let x,E,O,S,T=y[0],P=_[0],I=0,k=0;P>T==P>-T?(x=T,T=y[++I]):(x=P,P=_[++k]);let L=0;if(IT==P>-T?(O=x-((E=T+x)-T),T=y[++I]):(O=x-((E=P+x)-P),P=_[++k]),x=E,O!==0&&(m[L++]=O);IT==P>-T?(O=x-((E=x+T)-(S=E-x))+(T-S),T=y[++I]):(O=x-((E=x+P)-(S=E-x))+(P-S),P=_[++k]),x=E,O!==0&&(m[L++]=O);for(;I0!=O>0)return S;const T=Math.abs(E+O);return Math.abs(S)>=s*T?S:-(function(P,I,k,L,B,j,z){let H,q,W,$,J,X,Z,ue,re,ne,le,ce,pe,fe,se,de,ge,Oe;const ke=P-B,De=k-B,Ne=I-j,Ce=L-j;J=(se=(ue=ke-(Z=(X=134217729*ke)-(X-ke)))*(ne=Ce-(re=(X=134217729*Ce)-(X-Ce)))-((fe=ke*Ce)-Z*re-ue*re-Z*ne))-(le=se-(ge=(ue=Ne-(Z=(X=134217729*Ne)-(X-Ne)))*(ne=De-(re=(X=134217729*De)-(X-De)))-((de=Ne*De)-Z*re-ue*re-Z*ne))),c[0]=se-(le+J)+(J-ge),J=(pe=fe-((ce=fe+le)-(J=ce-fe))+(le-J))-(le=pe-de),c[1]=pe-(le+J)+(J-de),J=(Oe=ce+le)-ce,c[2]=ce-(Oe-J)+(le-J),c[3]=Oe;let Y=(function(Me,Ie){let Ye=Ie[0];for(let ot=1;ot=Q||-Y>=Q||(H=P-(ke+(J=P-ke))+(J-B),W=k-(De+(J=k-De))+(J-B),q=I-(Ne+(J=I-Ne))+(J-j),$=L-(Ce+(J=L-Ce))+(J-j),H===0&&q===0&&W===0&&$===0)||(Q=l*z+i*Math.abs(Y),(Y+=ke*$+Ce*H-(Ne*W+De*q))>=Q||-Y>=Q))return Y;J=(se=(ue=H-(Z=(X=134217729*H)-(X-H)))*(ne=Ce-(re=(X=134217729*Ce)-(X-Ce)))-((fe=H*Ce)-Z*re-ue*re-Z*ne))-(le=se-(ge=(ue=q-(Z=(X=134217729*q)-(X-q)))*(ne=De-(re=(X=134217729*De)-(X-De)))-((de=q*De)-Z*re-ue*re-Z*ne))),p[0]=se-(le+J)+(J-ge),J=(pe=fe-((ce=fe+le)-(J=ce-fe))+(le-J))-(le=pe-de),p[1]=pe-(le+J)+(J-de),J=(Oe=ce+le)-ce,p[2]=ce-(Oe-J)+(le-J),p[3]=Oe;const ie=a(4,c,4,p,f);J=(se=(ue=ke-(Z=(X=134217729*ke)-(X-ke)))*(ne=$-(re=(X=134217729*$)-(X-$)))-((fe=ke*$)-Z*re-ue*re-Z*ne))-(le=se-(ge=(ue=Ne-(Z=(X=134217729*Ne)-(X-Ne)))*(ne=W-(re=(X=134217729*W)-(X-W)))-((de=Ne*W)-Z*re-ue*re-Z*ne))),p[0]=se-(le+J)+(J-ge),J=(pe=fe-((ce=fe+le)-(J=ce-fe))+(le-J))-(le=pe-de),p[1]=pe-(le+J)+(J-de),J=(Oe=ce+le)-ce,p[2]=ce-(Oe-J)+(le-J),p[3]=Oe;const we=a(ie,f,4,p,d);J=(se=(ue=H-(Z=(X=134217729*H)-(X-H)))*(ne=$-(re=(X=134217729*$)-(X-$)))-((fe=H*$)-Z*re-ue*re-Z*ne))-(le=se-(ge=(ue=q-(Z=(X=134217729*q)-(X-q)))*(ne=W-(re=(X=134217729*W)-(X-W)))-((de=q*W)-Z*re-ue*re-Z*ne))),p[0]=se-(le+J)+(J-ge),J=(pe=fe-((ce=fe+le)-(J=ce-fe))+(le-J))-(le=pe-de),p[1]=pe-(le+J)+(J-de),J=(Oe=ce+le)-ce,p[2]=ce-(Oe-J)+(le-J),p[3]=Oe;const Ee=a(we,d,4,p,h);return h[Ee-1]})(g,y,b,_,m,x,T)},t.orient2dfast=function(g,y,b,_,m,x){return(y-x)*(b-m)-(g-m)*(_-x)},Object.defineProperty(t,"__esModule",{value:!0})})})(Ab,Ab.exports)),Ab.exports}var M9;function que(){if(M9)return qw.exports;M9=1;var r=Due(),e=Lue,t=Fue(),n=zue().orient2d;e.default&&(e=e.default),qw.exports=i,qw.exports.default=i;function i(x,E,O){E=Math.max(0,E===void 0?2:E),O=O||0;var S=h(x),T=new r(16);T.toBBox=function(Z){return{minX:Z[0],minY:Z[1],maxX:Z[0],maxY:Z[1]}},T.compareMinX=function(Z,ue){return Z[0]-ue[0]},T.compareMinY=function(Z,ue){return Z[1]-ue[1]},T.load(x);for(var P=[],I=0,k;IP||k.push({node:j,dist:z})}for(;k.length&&!k.peek().node.children;){var H=k.pop(),q=H.node,W=y(q,E,O),$=y(q,S,T);if(H.dist=E.minX&&x[0]<=E.maxX&&x[1]>=E.minY&&x[1]<=E.maxY}function l(x,E,O){for(var S=Math.min(x[0],E[0]),T=Math.min(x[1],E[1]),P=Math.max(x[0],E[0]),I=Math.max(x[1],E[1]),k=O.search({minX:S,minY:T,maxX:P,maxY:I}),L=0;L0!=c(x,E,S)>0&&c(O,S,x)>0!=c(O,S,E)>0}function d(x){var E=x.p,O=x.next.p;return x.minX=Math.min(E[0],O[0]),x.minY=Math.min(E[1],O[1]),x.maxX=Math.max(E[0],O[0]),x.maxY=Math.max(E[1],O[1]),x}function h(x){for(var E=x[0],O=x[0],S=x[0],T=x[0],P=0;PS[0]&&(S=I),I[1]T[1]&&(T=I)}var k=[E,O,S,T],L=k.slice();for(P=0;P1?(S=O[0],T=O[1]):k>0&&(S+=P*k,T+=I*k)}return P=x[0]-S,I=x[1]-T,P*P+I*I}function b(x,E,O,S,T,P,I,k){var L=O-x,B=S-E,j=I-T,z=k-P,H=x-T,q=E-P,W=L*L+B*B,$=L*j+B*z,J=j*j+z*z,X=L*H+B*q,Z=j*H+z*q,ue=W*J-$*$,re,ne,le,ce,pe=ue,fe=ue;ue===0?(ne=0,pe=1,ce=Z,fe=J):(ne=$*Z-J*X,ce=W*Z-$*X,ne<0?(ne=0,ce=Z,fe=J):ne>pe&&(ne=pe,ce=Z+$,fe=J)),ce<0?(ce=0,-X<0?ne=0:-X>W?ne=pe:(ne=-X,pe=W)):ce>fe&&(ce=fe,-X+$<0?ne=0:-X+$>W?ne=pe:(ne=-X+$,pe=W)),re=ne===0?0:ne/pe,le=ce===0?0:ce/fe;var se=(1-re)*x+re*O,de=(1-re)*E+re*S,ge=(1-le)*T+le*I,Oe=(1-le)*P+le*k,ke=ge-se,De=Oe-de;return ke*ke+De*De}function _(x,E){return x[0]===E[0]?x[1]-E[1]:x[0]-E[0]}function m(x){x.sort(_);for(var E=[],O=0;O=2&&c(E[E.length-2],E[E.length-1],x[O])<=0;)E.pop();E.push(x[O])}for(var S=[],T=x.length-1;T>=0;T--){for(;S.length>=2&&c(S[S.length-2],S[S.length-1],x[T])<=0;)S.pop();S.push(x[T])}return S.pop(),E.pop(),E.concat(S)}return qw.exports}var Gue=que();const Vue=Bp(Gue),D9=10,Hue=500,Wue=(r,e,t,n)=>{const i=(n[1]-t[1])*(e[0]-r[0])-(n[0]-t[0])*(e[1]-r[1]);if(i===0)return!1;const a=((r[1]-t[1])*(n[0]-t[0])-(r[0]-t[0])*(n[1]-t[1]))/i,o=((t[0]-r[0])*(e[1]-r[1])-(t[1]-r[1])*(e[0]-r[0]))/i;return a>0&&a<1&&o>0&&o<1},Yue=r=>{for(let e=0;e{let n=!1;for(let i=0,a=t.length-1;ie!=f>e&&r<(c-u)*(e-l)/(f-l)+u&&(n=!n)}return n};class k9 extends Wp{constructor(t,n={selectOnRelease:!1}){super(t,n);Ft(this,"active",!1);Ft(this,"points",[]);Ft(this,"overlayRenderer");Ft(this,"startLasso",t=>{this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}).nvlTargets.nodes.length>0?this.active=!1:(this.active=!0,this.points=[Ap(this.containerInstance,t)],this.toggleGlobalTextSelection(!1,this.endLasso),this.callCallbackIfRegistered("onLassoStarted",t),this.currentOptions.selectOnRelease===!0&&this.nvlInstance.deselectAll())});Ft(this,"handleMouseDown",t=>{t.button===0&&!this.active&&this.startLasso(t)});Ft(this,"handleDrag",t=>{if(this.active){const n=this.points[this.points.length-1];if(n===void 0)return;const i=Ap(this.containerInstance,t),a=Math.abs(n.x-i.x),o=Math.abs(n.y-i.y);(a>D9||o>D9)&&(this.points.push(i),this.overlayRenderer.drawLasso(this.points,!0,!1))}});Ft(this,"handleMouseUp",t=>{this.points.push(Ap(this.containerInstance,t)),this.endLasso(t)});Ft(this,"getLassoItems",t=>{const n=t.map(l=>j1(this.nvlInstance,l)),i=this.nvlInstance.getNodePositions(),a=new Set;for(const l of i)l.x===void 0||l.y===void 0||l.id===void 0||Xue(l.x,l.y,n)&&a.add(l.id);const o=this.nvlInstance.getRelationships(),s=[];for(const l of o)a.has(l.from)&&a.has(l.to)&&s.push(l);return{nodes:Array.from(a).map(l=>this.nvlInstance.getNodeById(l)),rels:s}});Ft(this,"endLasso",t=>{if(!this.active)return;this.active=!1,this.toggleGlobalTextSelection(!0,this.endLasso);const n=this.points.map(s=>[s.x,s.y]),a=(Yue(n)?Vue(n,2):n).map(s=>({x:s[0],y:s[1]})).filter(s=>s.x!==void 0&&s.y!==void 0);this.overlayRenderer.drawLasso(a,!1,!0),setTimeout(()=>this.overlayRenderer.clear(),Hue);const o=this.getLassoItems(a);this.currentOptions.selectOnRelease===!0&&this.nvlInstance.updateElementsInGraph(o.nodes.map(s=>({id:s.id,selected:!0})),o.rels.map(s=>({id:s.id,selected:!0}))),this.callCallbackIfRegistered("onLassoSelect",o,t)});this.overlayRenderer=new kG(this.containerInstance),this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("mousemove",this.handleDrag,!0),this.addEventListener("mouseup",this.handleMouseUp,!0)}destroy(){this.toggleGlobalTextSelection(!0,this.endLasso),this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("mousemove",this.handleDrag,!0),this.removeEventListener("mouseup",this.handleMouseUp,!0),this.overlayRenderer.destroy()}}class $ue extends Wp{constructor(t,n={excludeNodeMargin:!1}){super(t,n);Ft(this,"initialMousePosition",{x:0,y:0});Ft(this,"initialPan",{x:0,y:0});Ft(this,"targets",[]);Ft(this,"shouldPan",!1);Ft(this,"isPanning",!1);Ft(this,"updateTargets",(t,n)=>{this.targets=t,this.currentOptions.excludeNodeMargin=n});Ft(this,"handleMouseDown",t=>{const n=this.nvlInstance.getHits(t,ss.difference(["node","relationship"],this.targets),{hitNodeMarginWidth:this.currentOptions.excludeNodeMargin===!0?Ym:0});n.nvlTargets.nodes.length>0||n.nvlTargets.relationships.length>0?this.shouldPan=!1:(this.initialMousePosition={x:t.clientX,y:t.clientY},this.initialPan=this.nvlInstance.getPan(),this.shouldPan=!0)});Ft(this,"handleMouseMove",t=>{if(!this.shouldPan||t.buttons!==1)return;this.isPanning||(this.toggleGlobalTextSelection(!1,this.handleMouseUp),this.isPanning=!0);const n=this.nvlInstance.getScale(),{x:i,y:a}=this.initialPan,o=(t.clientX-this.initialMousePosition.x)/n*window.devicePixelRatio,s=(t.clientY-this.initialMousePosition.y)/n*window.devicePixelRatio,u=i-o,l=a-s;this.currentOptions.controlledPan!==!0&&this.nvlInstance.setPan(u,l),this.callCallbackIfRegistered("onPan",{x:u,y:l},t)});Ft(this,"handleMouseUp",()=>{this.isPanning&&this.toggleGlobalTextSelection(!0,this.handleMouseUp),this.resetPanState()});Ft(this,"resetPanState",()=>{this.isPanning=!1,this.shouldPan=!1,this.initialMousePosition={x:0,y:0},this.initialPan={x:0,y:0},this.targets=[]});this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("mousemove",this.handleMouseMove,!0),this.addEventListener("mouseup",this.handleMouseUp,!0)}destroy(){this.toggleGlobalTextSelection(!0,this.handleMouseUp),this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("mousemove",this.handleMouseMove,!0),this.removeEventListener("mouseup",this.handleMouseUp,!0)}}class I9 extends Wp{constructor(t,n={}){super(t,n);Ft(this,"zoomLimits");Ft(this,"handleWheel",t=>{t.preventDefault(),this.throttledZoom(t)});Ft(this,"throttledZoom",ss.throttle(t=>{const n=this.nvlInstance.getScale(),{x:i,y:a}=this.nvlInstance.getPan();this.zoomLimits=this.nvlInstance.getZoomLimits();const s=t.ctrlKey||t.metaKey?75:500,u=t.deltaY/s,l=n>=1?u*n:u,c=n-l*Math.min(1,n),f=c>this.zoomLimits.maxZoom||c{this.removeEventListener("wheel",this.handleWheel)});this.zoomLimits=t.getZoomLimits(),this.addEventListener("wheel",this.handleWheel)}}const av=r=>{var e;(e=r.current)==null||e.destroy(),r.current=null},Ha=(r,e,t,n,i,a)=>{me.useEffect(()=>{const o=i.current;ss.isNil(o)||ss.isNil(o.getContainer())||(t===!0||typeof t=="function"?(ss.isNil(e.current)&&(e.current=new r(o,a)),typeof t=="function"?e.current.updateCallback(n,t):ss.isNil(e.current.callbackMap[n])||e.current.removeCallback(n)):t===!1&&av(e))},[r,t,n,a,e,i])},Kue=({nvlRef:r,mouseEventCallbacks:e,interactionOptions:t})=>{const n=me.useRef(null),i=me.useRef(null),a=me.useRef(null),o=me.useRef(null),s=me.useRef(null),u=me.useRef(null),l=me.useRef(null),c=me.useRef(null);return Ha(Pue,n,e.onHover,"onHover",r,t),Ha(iv,i,e.onNodeClick,"onNodeClick",r,t),Ha(iv,i,e.onNodeDoubleClick,"onNodeDoubleClick",r,t),Ha(iv,i,e.onNodeRightClick,"onNodeRightClick",r,t),Ha(iv,i,e.onRelationshipClick,"onRelationshipClick",r,t),Ha(iv,i,e.onRelationshipDoubleClick,"onRelationshipDoubleClick",r,t),Ha(iv,i,e.onRelationshipRightClick,"onRelationshipRightClick",r,t),Ha(iv,i,e.onCanvasClick,"onCanvasClick",r,t),Ha(iv,i,e.onCanvasDoubleClick,"onCanvasDoubleClick",r,t),Ha(iv,i,e.onCanvasRightClick,"onCanvasRightClick",r,t),Ha($ue,a,e.onPan,"onPan",r,t),Ha(I9,o,e.onZoom,"onZoom",r,t),Ha(I9,o,e.onZoomAndPan,"onZoomAndPan",r,t),Ha(YP,s,e.onDrag,"onDrag",r,t),Ha(YP,s,e.onDragStart,"onDragStart",r,t),Ha(YP,s,e.onDragEnd,"onDragEnd",r,t),Ha(XP,u,e.onHoverNodeMargin,"onHoverNodeMargin",r,t),Ha(XP,u,e.onDrawStarted,"onDrawStarted",r,t),Ha(XP,u,e.onDrawEnded,"onDrawEnded",r,t),Ha(O9,l,e.onBoxStarted,"onBoxStarted",r,t),Ha(O9,l,e.onBoxSelect,"onBoxSelect",r,t),Ha(k9,c,e.onLassoStarted,"onLassoStarted",r,t),Ha(k9,c,e.onLassoSelect,"onLassoSelect",r,t),me.useEffect(()=>()=>{av(n),av(i),av(a),av(o),av(s),av(u),av(l),av(c)},[]),null},Zue={selectOnClick:!1,drawShadowOnHover:!0,selectOnRelease:!1,excludeNodeMargin:!0},Que=me.memo(me.forwardRef(({nodes:r,rels:e,layout:t,layoutOptions:n,onInitializationError:i,mouseEventCallbacks:a={},nvlCallbacks:o={},nvlOptions:s={},interactionOptions:u=Zue,...l},c)=>{const f=me.useRef(null),d=c??f,[h,p]=me.useState(!1),g=me.useCallback(()=>{p(!0)},[]),y=me.useCallback(_=>{p(!1),i&&i(_)},[i]),b=h&&d.current!==null;return Te.jsxs(Te.Fragment,{children:[Te.jsx(Aue,{ref:d,nodes:r,id:Eue,rels:e,nvlOptions:s,nvlCallbacks:{...o,onInitialization:()=>{o.onInitialization!==void 0&&o.onInitialization(),g()}},layout:t,layoutOptions:n,onInitializationError:y,...l}),b&&Te.jsx(Kue,{nvlRef:d,mouseEventCallbacks:a,interactionOptions:u})]})})),NG=me.createContext(void 0),Vl=()=>{const r=me.useContext(NG);if(!r)throw new Error("useGraphVisualizationContext must be used within a GraphVisualizationContext");return r};function Lg({state:r,onChange:e,isControlled:t}){const[n,i]=me.useState(r),a=me.useMemo(()=>t===!0?r:n,[t,r,n]),o=me.useCallback(s=>{const u=typeof s=="function"?s(a):s;t!==!0&&i(u),e==null||e(u)},[t,a,e]);return[a,o]}const N9=navigator.userAgent.includes("Mac"),LG=(r,e)=>{var t;for(const[n,i]of Object.entries(r)){const a=n.toLowerCase().includes(e),s=((t=i==null?void 0:i.stringified)!==null&&t!==void 0?t:"").toLowerCase().includes(e);if(a||s)return!0}return!1},Jue=(r,e)=>{const t=e.toLowerCase();return r.filter(n=>{var i;return!((i=n.labelsSorted)===null||i===void 0)&&i.some(a=>a.toLowerCase().includes(t))?!0:LG(n.properties,t)}).map(n=>n.id)},ele=(r,e)=>{const t=e.toLowerCase();return r.filter(n=>n.type.toLowerCase().includes(t)?!0:LG(n.properties,t)).map(n=>n.id)},a0=r=>{const{isActive:e,ariaLabel:t,isDisabled:n,description:i,onClick:a,onMouseDown:o,tooltipPlacement:s,className:u,style:l,htmlAttributes:c,children:f}=r;return Te.jsx(S2,{description:i??t,tooltipProps:{content:{style:{whiteSpace:"nowrap"}},root:{isPortaled:!1,placement:s}},size:"small",className:u,style:l,isActive:e,isDisabled:n,onClick:a,htmlAttributes:Object.assign({onMouseDown:o},c),children:f})},tle=r=>r instanceof HTMLElement?r.isContentEditable||["INPUT","TEXTAREA"].includes(r.tagName):!1,rle=r=>tle(r.target),a_={box:"B",lasso:"L",single:"S"},vE=r=>{const{setGesture:e}=Vl(),t=me.useCallback(n=>{if(!rle(n)&&e!==void 0){const i=n.key.toUpperCase();for(const a of r)i===a_[a]&&e(a)}},[r,e]);me.useEffect(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}),[t])},QD=" ",nle=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{gesture:i,setGesture:a,interactionMode:o}=Vl();return vE(["single"]),Te.jsx(a0,{isActive:i==="single",isDisabled:o!=="select",ariaLabel:"Individual Select Button",description:`Individual Select ${QD} ${a_.single}`,onClick:()=>{a==null||a("single")},tooltipPlacement:n??"right",htmlAttributes:Object.assign({"data-testid":"gesture-individual-select"},t),className:r,style:e,children:Te.jsx(l2,{"aria-label":"Individual Select"})})},ile=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{gesture:i,setGesture:a,interactionMode:o}=Vl();return vE(["box"]),Te.jsx(a0,{isDisabled:o!=="select"||a===void 0,isActive:i==="box",ariaLabel:"Box Select Button",description:`Box Select ${QD} ${a_.box}`,onClick:()=>{a==null||a("box")},tooltipPlacement:n??"right",htmlAttributes:Object.assign({"data-testid":"gesture-box-select"},t),className:r,style:e,children:Te.jsx(H9,{"aria-label":"Box select"})})},ale=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{gesture:i,setGesture:a,interactionMode:o}=Vl();return vE(["lasso"]),Te.jsx(a0,{isDisabled:o!=="select"||a===void 0,isActive:i==="lasso",ariaLabel:"Lasso Select Button",description:`Lasso Select ${QD} ${a_.lasso}`,onClick:()=>{a==null||a("lasso")},tooltipPlacement:n??"right",htmlAttributes:Object.assign({"data-testid":"gesture-lasso-select"},t),className:r,style:e,children:Te.jsx(V9,{"aria-label":"Lasso select"})})},jG=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{nvlInstance:i}=Vl(),a=me.useCallback(()=>{var o,s;(o=i.current)===null||o===void 0||o.setZoom(((s=i.current)===null||s===void 0?void 0:s.getScale())*1.3)},[i]);return Te.jsx(a0,{onClick:a,description:"Zoom in",className:r,style:e,htmlAttributes:t,tooltipPlacement:n??"left",children:Te.jsx(rH,{})})},BG=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{nvlInstance:i}=Vl(),a=me.useCallback(()=>{var o,s;(o=i.current)===null||o===void 0||o.setZoom(((s=i.current)===null||s===void 0?void 0:s.getScale())*.7)},[i]);return Te.jsx(a0,{onClick:a,description:"Zoom out",className:r,style:e,htmlAttributes:t,tooltipPlacement:n??"left",children:Te.jsx(JV,{})})},FG=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{nvlInstance:i}=Vl(),a=me.useCallback(()=>{const s=i.current;if(!s)return[];const u=s.getSelectedNodes(),l=s.getSelectedRelationships(),c=new Set;if(u.length||l.length)return u.forEach(h=>c.add(h.id)),l.forEach(h=>c.add(h.from).add(h.to)),[...c];const f=s.getNodes(),d=s.getRelationships();return f.forEach(h=>h.disabled!==!0&&c.add(h.id)),d.forEach(h=>h.disabled!==!0&&c.add(h.from).add(h.to)),c.size>0?[...c]:f.map(h=>h.id)},[i]),o=me.useCallback(()=>{var s;(s=i.current)===null||s===void 0||s.fit(a())},[a,i]);return Te.jsx(a0,{onClick:o,description:"Zoom to fit",className:r,style:e,htmlAttributes:t,tooltipPlacement:n??"left",children:Te.jsx(SV,{})})},UG=({className:r,htmlAttributes:e,style:t,tooltipPlacement:n})=>{const{sidepanel:i}=Vl();if(!i)throw new Error("Using the ToggleSidePanelButton requires having a sidepanel");const{isSidePanelOpen:a,setIsSidePanelOpen:o}=i;return Te.jsx(T2,{size:"small",onClick:()=>o==null?void 0:o(!a),isFloating:!0,description:a?"Close":"Open",isActive:a,tooltipProps:{content:{style:{whiteSpace:"nowrap"}},root:{isPortaled:!1,placement:n??"bottom",shouldCloseOnReferenceClick:!0}},className:Vn("ndl-graph-visualization-toggle-sidepanel",r),style:t,htmlAttributes:Object.assign({"aria-label":"Toggle node properties panel"},e),children:Te.jsx(RV,{className:"ndl-graph-visualization-toggle-icon"})})},ole=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n,open:i,setOpen:a,searchTerm:o,setSearchTerm:s,onSearch:u=()=>{}})=>{const l=me.useRef(null),[c,f]=Lg({isControlled:i!==void 0,onChange:a,state:i??!1}),[d,h]=Lg({isControlled:o!==void 0,onChange:s,state:o??""}),{nvlGraph:p}=Vl(),g=y=>{if(h(y),y===""){u(void 0,void 0);return}const b=Object.values(p.dataLookupTable.nodes),_=Object.values(p.dataLookupTable.relationships);u(Jue(b,y),ele(_,y))};return Te.jsx(Te.Fragment,{children:c?Te.jsx(JY,{ref:l,size:"small",leadingElement:Te.jsx(dk,{}),trailingElement:Te.jsx(S2,{onClick:()=>{var y;g(""),(y=l.current)===null||y===void 0||y.focus()},description:"Clear search",children:Te.jsx(X9,{})}),placeholder:"Search...",value:d,onChange:y=>g(y.target.value),htmlAttributes:{autoFocus:!0,onBlur:()=>{d===""&&f(!1)}}}):Te.jsx(T2,{size:"small",isFloating:!0,onClick:()=>f(y=>!y),description:"Search",className:r,style:e,htmlAttributes:t,tooltipProps:{root:{placement:n??"bottom"}},children:Te.jsx(dk,{})})})},zG=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{nvlInstance:i}=Vl(),[a,o]=me.useState(!1),s=()=>o(!1),u=me.useRef(null);return Te.jsxs(Te.Fragment,{children:[Te.jsx(T2,{ref:u,size:"small",isFloating:!0,onClick:()=>o(l=>!l),description:"Download",tooltipProps:{root:{placement:n??"bottom"}},className:r,style:e,htmlAttributes:t,children:Te.jsx(IV,{})}),Te.jsx(Lm,{isOpen:a,onClose:s,anchorRef:u,children:Te.jsx(Lm.Item,{title:"Download as PNG",onClick:()=>{var l;(l=i.current)===null||l===void 0||l.saveToFile({}),s()}})})]})},sle={d3Force:{icon:Te.jsx(xV,{}),title:"Force-based layout"},hierarchical:{icon:Te.jsx(TV,{}),title:"Hierarchical layout"}},ule=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n,menuPlacement:i,layoutOptions:a=sle})=>{var o,s;const u=me.useRef(null),[l,c]=me.useState(!1),{layout:f,setLayout:d}=Vl();return Te.jsxs(Te.Fragment,{children:[Te.jsx(W7,{description:"Select layout",isOpen:l,onClick:()=>c(h=>!h),ref:u,className:r,style:e,htmlAttributes:t,size:"small",tooltipProps:{root:{placement:n??"bottom"}},children:(s=(o=a[f])===null||o===void 0?void 0:o.icon)!==null&&s!==void 0?s:Te.jsx(l2,{})}),Te.jsx(Lm,{isOpen:l,anchorRef:u,onClose:()=>c(!1),placement:i,children:Object.entries(a).map(([h,p])=>Te.jsx(Lm.RadioItem,{title:p.title,leadingVisual:p.icon,isChecked:h===f,onClick:()=>d==null?void 0:d(h)},h))})]})},lle={single:{icon:Te.jsx(l2,{}),title:"Individual"},box:{icon:Te.jsx(H9,{}),title:"Box"},lasso:{icon:Te.jsx(V9,{}),title:"Lasso"}},cle=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n,menuPlacement:i,gestureOptions:a=lle})=>{var o,s;const u=me.useRef(null),[l,c]=me.useState(!1),{gesture:f,setGesture:d}=Vl();return vE(Object.keys(a)),Te.jsxs(Te.Fragment,{children:[Te.jsx(W7,{description:"Select gesture",isOpen:l,onClick:()=>c(h=>!h),ref:u,className:r,style:e,htmlAttributes:t,size:"small",tooltipProps:{root:{placement:n??"bottom"}},children:(s=(o=a[f])===null||o===void 0?void 0:o.icon)!==null&&s!==void 0?s:Te.jsx(l2,{})}),Te.jsx(Lm,{isOpen:l,anchorRef:u,onClose:()=>c(!1),placement:i,children:Object.entries(a).map(([h,p])=>Te.jsx(Lm.RadioItem,{title:p.title,leadingVisual:p.icon,trailingContent:Te.jsx(JX,{keys:[a_[h]]}),isChecked:h===f,onClick:()=>d==null?void 0:d(h)},h))})]})},ty=({sidepanel:r})=>{const{children:e,isSidePanelOpen:t,sidePanelWidth:n,onSidePanelResize:i,minWidth:a=230}=r;return t?Te.jsx(VX,{defaultSize:{height:"100%",width:n??400},className:"ndl-graph-resizable",minWidth:a,maxWidth:"66%",enable:{bottom:!1,bottomLeft:!1,bottomRight:!1,left:!0,right:!1,top:!1,topLeft:!1,topRight:!1},handleClasses:{left:"ndl-sidepanel-handle"},onResizeStop:(o,s,u)=>{i(u.getBoundingClientRect().width)},children:Te.jsx("div",{className:"ndl-graph-visualization-sidepanel-content",tabIndex:0,children:e})}):null},fle=({children:r})=>Te.jsx("div",{className:"ndl-graph-visualization-sidepanel-title ndl-grid-area-title",children:r});ty.Title=fle;const dle=({children:r})=>Te.jsx("section",{className:"ndl-grid-area-content",children:r});ty.Content=dle;var hx={exports:{}};/** +`),this.setShaderUniforms(o),n.clearColor(0,0,0,0),n.disable(n.DEPTH_TEST),this.defaultRelColor=o.defaultRelationshipColor,this.defaultNodeColor=o.defaultNodeColor,this.disableRelColor=o.disabledItemStyles.color,this.disableNodeColor=o.disabledItemStyles.color,n.blendFunc(n.ONE,n.ONE_MINUS_SRC_ALPHA),this.activeNodes={},this.canvas=n.canvas,this.projection=Kx(),this.setData({nodes:i.items,rels:a.items}),this.createPositionTexture(),this.setupViewportRendering(o.minimapViewportBoxColor)},e=[{key:"setShaderUniforms",value:function(t){var n,i,a,o,s,u=t.nodeBorderStyles,l=null;((n=u.default)===null||n===void 0?void 0:n.rings.length)>0&&(l=(s=u.default.rings[0])===null||s===void 0?void 0:s.color);var c,f,d=null,h=null,p=(i=(a=u.selected)===null||a===void 0?void 0:a.rings)!==null&&i!==void 0?i:[],g=p.length;g>1&&(h=(c=p[g-2])===null||c===void 0?void 0:c.color,d=(f=p[g-1])===null||f===void 0?void 0:f.color);var y=null;(o=u.selected)!==null&&o!==void 0&&o.shadow&&(y=u.selected.shadow.color),this.nodeShader.use(),(0,Hi.isNil)(l)?this.nodeShader.setUniform("u_drawDefaultBorder",0):(this.nodeShader.setUniform("u_nodeBorderColor",Iw(l)),this.nodeShader.setUniform("u_drawDefaultBorder",1));var b=Iw(d),_=Iw(h),m=Iw(y);this.nodeShader.setUniform("u_selectedBorderColor",b),this.nodeShader.setUniform("u_selectedInnerBorderColor",_),this.nodeShader.setUniform("u_shadowColor",m)}},{key:"setData",value:function(t){var n=qM(t.rels,this.disableRelColor);this.setupNodeRendering(t.nodes),this.setupRelationshipRendering(n)}},{key:"render",value:function(t){var n=this.gl,i=this.idToIndex,a=this.posBuffer,o=this.posTexture;if(this.numNodes!==0||this.numRels!==0){var s,u=FP(t);try{for(u.s();!(s=u.n()).done;){var l=s.value,c=i[l.id];c!==void 0&&(a[4*c]=l.x,a[4*c+1]=l.y)}}catch(f){u.e(f)}finally{u.f()}n.bindTexture(n.TEXTURE_2D,o),n.texSubImage2D(n.TEXTURE_2D,0,0,0,Cr,Cr,n.RGBA,n.FLOAT,a),n.enable(n.BLEND),n.bindFramebuffer(n.FRAMEBUFFER,null),n.clear(n.COLOR_BUFFER_BIT),n.viewport(0,0,n.drawingBufferWidth,n.drawingBufferHeight),this.renderAnimations(o),this.numRels>0&&(this.relShader.use(),this.relShader.setUniform("u_positions",o),this.vaoExt.bindVertexArrayOES(this.relVao),n.drawArrays(n.TRIANGLES,0,6*this.numRels),this.vaoExt.bindVertexArrayOES(null)),this.numNodes>0&&(this.nodeShader.use(),this.nodeShader.setUniform("u_positions",o),this.vaoExt.bindVertexArrayOES(this.nodeVao),n.drawArrays(n.POINTS,0,this.numNodes),this.vaoExt.bindVertexArrayOES(null))}}},{key:"renderViewbox",value:function(){var t=this.gl,n=this.projection,i=this.viewportBoxBuffer;this.viewportBoxShader.use(),this.viewportBoxShader.setUniform("u_projection",n),t.bindBuffer(t.ARRAY_BUFFER,i),this.viewportBoxShader.setAttributePointerFloat("coordinates",2,0,0),t.drawArrays(t.LINES,0,8)}},{key:"updateNodes",value:function(t){var n,i=this.gl,a=this.idToIndex,o=this.disableNodeColor,s=this.nodeBuffer,u=this.nodeDataByte,l=!1,c=FP(t);try{for(c.s();!(n=c.n()).done;){var f=n.value,d=a[f.id];if(!(0,Hi.isNil)(f.color)||f.disabled===!0){var h=I1(f.disabled===!0?o:f.color);this.nodeDataByte[3*d*4+0]=h[0],this.nodeDataByte[3*d*4+1]=h[1],this.nodeDataByte[3*d*4+2]=h[2],this.nodeDataByte[3*d*4+3]=255*h[3],l=!0}if(f.selected!==void 0){var p=f.selected;this.nodeDataByte[3*d*4+4]=p?255:0,l=!0}if(f.activated!==void 0&&(this.nodeDataByte[3*d*4+7]=f.activated?255:0,l=!0,f.activated?this.activeNodes[f.id]=!0:delete this.activeNodes[f.id]),f.hovered!==void 0){var g=f.disabled!==!0&&f.hovered;this.nodeDataByte[3*d*4+9]=g?255:0,l=!0}if(f.size!==void 0){var y=f.size;this.nodeDataByte[3*d*4+8]=y||ha,l=!0}}}catch(b){c.e(b)}finally{c.f()}l&&(i.bindBuffer(i.ARRAY_BUFFER,s),i.bufferData(i.ARRAY_BUFFER,u,i.DYNAMIC_DRAW))}},{key:"updateRelationships",value:function(t){var n,i=qM(t,this.disableRelColor),a=this.gl,o=!1,s=FP(i);try{for(s.s();!(n=s.n()).done;){var u=n.value,l=u.key,c=u.width,f=u.color,d=u.disabled,h=this.relIdToIndex[l],p=(0,Hi.isNil)(f)?this.defaultRelColor:f,g=kw(d?this.disableRelColor:p);this.relData.positionsAndColors[h*iu+0]=g,this.relData.positionsAndColors[h*iu+4]=g,this.relData.positionsAndColors[h*iu+8]=g,this.relData.positionsAndColors[h*iu+12]=g,this.relData.positionsAndColors[h*iu+16]=g,this.relData.positionsAndColors[h*iu+20]=g,o=!0,c!==void 0&&(this.relData.widths[h*iu+3]=c,this.relData.widths[h*iu+7]=c,this.relData.widths[h*iu+11]=c,this.relData.widths[h*iu+15]=c,this.relData.widths[h*iu+19]=c,this.relData.widths[h*iu+23]=c,o=!0)}}catch(y){s.e(y)}finally{s.f()}o&&(a.bindBuffer(a.ARRAY_BUFFER,this.relBuffer),a.bufferData(a.ARRAY_BUFFER,this.relDataBuffer,a.DYNAMIC_DRAW))}},{key:"createPositionTexture",value:function(){var t=this.gl,n=t.createTexture(),i=new Float32Array(262144);t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,Cr,Cr,0,t.RGBA,t.FLOAT,i),this.posTexture=n,this.posBuffer=i}},{key:"updateViewportBox",value:function(t,n,i,a,o){var s=this.gl,u=$n(),l=a*u,c=o*u,f=(.5*l+n*t)/t,d=(.5*c+i*t)/t,h=(.5*-l+n*t)/t,p=(.5*-c+i*t)/t,g=[f,d,h,d,h,d,h,p,h,p,f,p,f,p,f,d];s.bindBuffer(s.ARRAY_BUFFER,this.viewportBoxBuffer),s.bufferData(s.ARRAY_BUFFER,new Float32Array(g),s.DYNAMIC_DRAW)}},{key:"updateViewport",value:function(t,n,i){var a=this.gl,o=1/t,s=n-a.drawingBufferWidth*o*.5,u=i-a.drawingBufferHeight*o*.5,l=a.drawingBufferWidth*o,c=a.drawingBufferHeight*o,f=Kx(),d=Hae*$n();QM(f,s,s+l,u+c,u,0,1e6),this.nodeShader.use(),this.nodeShader.setUniform("u_zoom",t),this.nodeShader.setUniform("u_glAdjust",d),this.nodeShader.setUniform("u_projection",f),this.nodeAnimShader.use(),this.nodeAnimShader.setUniform("u_zoom",t),this.nodeAnimShader.setUniform("u_glAdjust",d),this.nodeAnimShader.setUniform("u_projection",f),this.relShader.use(),this.relShader.setUniform("u_glAdjust",d),this.relShader.setUniform("u_projection",f),this.projection=f}},{key:"setupViewportRendering",value:function(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:WD;this.viewportBoxBuffer=this.gl.createBuffer(),this.viewportBoxShader.use(),this.viewportBoxShader.setUniform("u_minimapViewportBoxColor",[(t=I1(n))[0]/255,t[1]/255,t[2]/255,t[3]])}},{key:"setupNodeRendering",value:function(t){var n=this.gl,i=new ArrayBuffer(8),a=new Uint32Array(i),o=new Uint8Array(i);this.nodeBuffer===void 0&&(this.nodeBuffer=n.createBuffer()),this.numNodes=t.length;var s=new ArrayBuffer(3*t.length*8),u=new Uint32Array(s),l={};this.activeNodes={};for(var c=0;c=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function SG(r,e){if(r){if(typeof r=="string")return x5(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x5(r,e):void 0}}function x5(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:50,t={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0},n=0;nr[n].x&&(t.minX=r[n].x),t.minY>r[n].y&&(t.minY=r[n].y),t.maxX1&&(i=t/r),e>1&&(a=n/e),{zoomX:i,zoomY:a}},OG=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0,i=Math.min(r,e);return Math.min(n,Math.max(t,i))},a1=function(r,e,t,n){return Math.max(Math.min(e,t),Math.min(r,n))},UP=function(r,e,t,n,i,a){var o=e;return(function(s,u,l){return s1?(o=(function(s,u,l){var c=(function(g){var y=new Array(4).fill(g[0]);return g.forEach(function(b){y[0]=b.x0&&arguments[0]!==void 0?arguments[0]:[],y=0,b=0,_=0;_p?.9*p/f:.9*f/p})(r,n,25),a1(i,a,Math.min(e,o),t)):a1(i,a,e,t)};function o1(r){return o1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o1(r)}function Kse(r,e){for(var t=0;t0||i}},{key:"update",value:function(t,n){var i=this.state,a=i.fitNodeIds,o=i.resetZoom;a.length>0?this.fitNodes(a,t,n):o&&this.reset(t,n)}},{key:"destroy",value:function(){this.stateDisposers.forEach(function(t){return t()})}},{key:"recalculateTarget",value:function(t,n,i,a){for(var o=this.xCtrl,s=this.yCtrl,u=this.zoomCtrl,l=this.state,c=[],f=0;f3?(H=$===z)&&(T=q[(S=q[4])?5:(S=3,3)],q[4]=q[5]=r):q[0]<=W&&((H=j<2&&Wz||z>$)&&(q[4]=j,q[5]=z,L.n=$,S=0))}if(H||j>1)return o;throw k=!0,z}return function(j,z,H){if(P>1)throw TypeError("Generator is already running");for(k&&z===1&&B(z,H),S=z,T=H;(e=S<2?r:T)||!k;){O||(S?S<3?(S>1&&(L.n=-1),B(S,T)):L.n=T:L.v=T);try{if(P=2,O){if(S||(j="next"),e=O[j]){if(!(e=e.call(O,T)))throw TypeError("iterator result is not an object");if(!e.done)return e;T=e.value,S<2&&(S=0)}else S===1&&(e=O.return)&&e.call(O),S<2&&(T=TypeError("The iterator does not provide a '"+j+"' method"),S=1);O=r}else if((e=(k=L.n<0)?T:m.call(x,L))!==o)break}catch(q){O=r,S=1,T=q}finally{P=1}}return{value:e,done:k}}})(h,g,y),!0),_}var o={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(tf(e={},n,function(){return this}),e),f=l.prototype=s.prototype=Object.create(c);function d(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,l):(h.__proto__=l,tf(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return u.prototype=l,tf(f,"constructor",l),tf(l,"constructor",u),u.displayName="GeneratorFunction",tf(l,i,"GeneratorFunction"),tf(f),tf(f,i,"Generator"),tf(f,n,function(){return this}),tf(f,"toString",function(){return"[object Generator]"}),(Cb=function(){return{w:a,m:d}})()}function tf(r,e,t,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}tf=function(a,o,s,u){function l(c,f){tf(a,c,function(d){return this._invoke(c,f,d)})}o?i?i(a,o,{value:s,enumerable:!u,configurable:!u,writable:!u}):a[o]=s:(l("next",0),l("throw",1),l("return",2))},tf(r,e,t,n)}function o9(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(n,i)}function s9(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){o9(a,n,i,o,s,"next",u)}function s(u){o9(a,n,i,o,s,"throw",u)}o(void 0)})}}function u9(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t0&&arguments[0]!==void 0?arguments[0]:"default"])!==null&&r!==void 0?r:Object.values(s2).pop()},rue=(function(){return r=function i(a,o,s){var u,l,c,f=this;(function(q,W){if(!(q instanceof W))throw new TypeError("Cannot call a class as a function")})(this,i),dn(this,"destroyed",void 0),dn(this,"state",void 0),dn(this,"callbacks",void 0),dn(this,"instanceId",void 0),dn(this,"glController",void 0),dn(this,"webGLContext",void 0),dn(this,"webGLMinimapContext",void 0),dn(this,"htmlOverlay",void 0),dn(this,"hasResized",void 0),dn(this,"hierarchicalLayout",void 0),dn(this,"gridLayout",void 0),dn(this,"freeLayout",void 0),dn(this,"d3ForceLayout",void 0),dn(this,"circularLayout",void 0),dn(this,"forceLayout",void 0),dn(this,"canvasRenderer",void 0),dn(this,"svgRenderer",void 0),dn(this,"glCanvas",void 0),dn(this,"canvasRect",void 0),dn(this,"glMinimapCanvas",void 0),dn(this,"c2dCanvas",void 0),dn(this,"svg",void 0),dn(this,"isInRenderSwitchAnimation",void 0),dn(this,"justSwitchedRenderer",void 0),dn(this,"justSwitchedLayout",void 0),dn(this,"layoutUpdating",void 0),dn(this,"layoutComputing",void 0),dn(this,"isRenderingDisabled",void 0),dn(this,"setRenderSwitchAnimation",void 0),dn(this,"stateDisposers",void 0),dn(this,"zoomTransitionHandler",void 0),dn(this,"currentLayout",void 0),dn(this,"layoutTimeLimit",void 0),dn(this,"pixelRatio",void 0),dn(this,"removeResizeListener",void 0),dn(this,"removeMinimapResizeListener",void 0),dn(this,"pendingZoomOperation",void 0),dn(this,"layoutRunner",void 0),dn(this,"animationRequestId",void 0),dn(this,"layoutDoneCallback",void 0),dn(this,"layoutComputingCallback",void 0),dn(this,"currentLayoutType",void 0),dn(this,"descriptionElement",void 0),this.destroyed=!1;var d=s.minimapContainer,h=d===void 0?document.createElement("span"):d,p=s.layoutOptions,g=s.layout,y=s.instanceId,b=y===void 0?"default":y,_=s.disableAria,m=_!==void 0&&_,x=a.nodes,E=a.rels,O=a.disableWebGL;this.state=a,this.callbacks=new Zse,this.instanceId=b;var S=o;S.setAttribute("instanceId",b),S.setAttribute("data-testid","nvl-parent"),(u=S.style.height)!==null&&u!==void 0&&u.length||Object.assign(S.style,{height:"100%"}),(l=S.style.outline)!==null&&l!==void 0&&l.length||Object.assign(S.style,{outline:"none"}),this.descriptionElement=m?document.createElement("div"):(function(q,W){var $;q.setAttribute("role","img"),q.setAttribute("aria-label","Graph visualization");var J="nvl-".concat(W,"-description"),X=($=document.getElementById(J))!==null&&$!==void 0?$:document.createElement("div");return X.textContent="",X.id="nvl-".concat(W,"-description"),X.setAttribute("role","status"),X.setAttribute("aria-live","polite"),X.setAttribute("aria-atomic","false"),X.style.display="none",q.appendChild(X),q.setAttribute("aria-describedby",X.id),X})(S,b);var T=PP(S,this.onWebGLContextLost.bind(this)),P=PP(h,this.onWebGLContextLost.bind(this));if(T.setAttribute("data-testid","nvl-gl-canvas"),O)this.glController=new Wse;else{var I=EB(T),k=EB(P);this.glController=new Hse({mainSceneRenderer:new n9(I,x,E,this.state),minimapRenderer:new n9(k,x,E,this.state),state:a}),this.webGLContext=I,this.webGLMinimapContext=k}var L=PP(S,this.onWebGLContextLost.bind(this));L.setAttribute("data-testid","nvl-c2d-canvas");var B=L.getContext("2d"),j=document.createElementNS("http://www.w3.org/2000/svg","svg");Object.assign(j.style,no(no({},zM),{},{overflow:"hidden",width:"100%",height:"100%"})),S.appendChild(j);var z=document.createElement("div");Object.assign(z.style,no(no({},zM),{},{overflow:"hidden"})),S.appendChild(z),this.htmlOverlay=z,this.hasResized=!0,this.hierarchicalLayout=new Koe(no(no({},p),{},{state:this.state})),this.gridLayout=new joe({state:this.state}),this.freeLayout=new Ioe({state:this.state}),this.d3ForceLayout=new yoe({state:this.state}),this.circularLayout=new Zae(no(no({},p),{},{state:this.state})),this.forceLayout=O?this.d3ForceLayout:new Moe(no(no({},p),{},{webGLContext:this.webGLContext,state:this.state})),this.state.setLayout(g),this.state.setLayoutOptions(p),this.canvasRenderer=new Use(L,B,a,s),this.svgRenderer=new Gse(j,a,s),this.glCanvas=T,this.canvasRect=T.getBoundingClientRect(),this.glMinimapCanvas=P,this.c2dCanvas=L,this.svg=j;var H=a.renderer;this.glCanvas.style.opacity=H===Mg?"1":"0",this.c2dCanvas.style.opacity=H===fp?"1":"0",this.svg.style.opacity=H===am?"1":"0",this.isInRenderSwitchAnimation=!1,this.justSwitchedRenderer=!1,this.justSwitchedLayout=!1,this.hasResized=!1,this.layoutUpdating=!1,this.layoutComputing=!1,this.isRenderingDisabled=!1,x.addChannel(Uw),E.addChannel(Uw),this.setRenderSwitchAnimation=function(){f.isInRenderSwitchAnimation=!1},this.stateDisposers=[],this.stateDisposers.push(a.autorun(function(){f.callIfRegistered("zoom",a.zoom)})),this.stateDisposers.push(a.autorun(function(){f.callIfRegistered("pan",{panX:a.panX,panY:a.panY})})),this.stateDisposers.push(a.autorun(function(){f.setLayout(a.layout)})),this.stateDisposers.push(a.autorun(function(){f.setLayoutOptions(a.layoutOptions)})),m||this.stateDisposers.push(a.autorun(function(){(function(q,W){var $=q.nodes,J=q.rels,X=q.layout,Z=$.items.length,ue=J.items.length;if(Z!==0||ue!==0){var re="".concat(Z," node").concat(Z!==1?"s":""),ne="".concat(ue," relationship").concat(ue!==1?"s":""),le="displayed using a ".concat(X??"forceDirected"," layout");W.textContent="A graph visualization with ".concat(re," and ").concat(ne,", ").concat(le,".")}else W.textContent="An empty graph visualization."})(a,f.descriptionElement)})),this.stateDisposers.push(a.autorun(function(){var q=a.renderer;q!==(f.glCanvas.style.opacity==="1"?Mg:f.c2dCanvas.style.opacity==="1"?fp:f.svg.style.opacity==="1"?am:fp)&&(f.justSwitchedRenderer=!0,f.glCanvas.style.opacity=q===Mg?"1":"0",f.c2dCanvas.style.opacity=q===fp?"1":"0",f.svg.style.opacity=q===am?"1":"0")})),this.startMainLoop(),this.zoomTransitionHandler=new eue({state:a,getNodePositions:function(q){return f.currentLayout.getNodePositions(q)},canvas:T}),this.layoutTimeLimit=(c=s.layoutTimeLimit)!==null&&c!==void 0?c:16,this.pixelRatio=$n(),this.removeResizeListener=I8()(S,function(){fx(T),fx(L),f.canvasRect=T.getBoundingClientRect(),f.hasResized=!0}),this.removeMinimapResizeListener=I8()(h,function(){fx(P)}),s2[b]=this,window.__Nvl_dumpNodes=function(q){var W;return(W=ob(q))===null||W===void 0?void 0:W.dumpNodes()},window.__Nvl_dumpRelationships=function(q){var W;return(W=ob(q))===null||W===void 0?void 0:W.dumpRelationships()},window.__Nvl_registerDoneCallback=function(q,W){var $;return($=ob(W))===null||$===void 0?void 0:$.on(c9,q)},window.__Nvl_getNodesOnScreen=function(q){var W;return(W=ob(q))===null||W===void 0?void 0:W.getNodesOnScreen()},window.__Nvl_getZoomLevel=function(q){var W;return(W=ob(q))===null||W===void 0?void 0:W.getScale()},this.pendingZoomOperation=null},e=[{key:"onWebGLContextLost",value:function(i){this.callIfRegistered("onWebGLContextLost",i)}},{key:"updateMinimapZoom",value:function(){var i=this.state,a=i.nodes,o=i.maxNodeRadius,s=i.maxMinimapZoom,u=i.minMinimapZoom,l=i1(Object.values(a.idToPosition),o),c=l.centerX,f=l.centerY,d=l.nodesWidth,h=l.nodesHeight,p=E5(d,h,this.glMinimapCanvas.width,this.glMinimapCanvas.height),g=p.zoomX,y=p.zoomY,b=OG(g,y,u,s);this.state.updateMinimapZoomToFit(b,c,f)}},{key:"startMainLoop",value:function(){var i=this,a=this.state,o=a.nodes,s=a.rels;this.currentLayout.update();var u=this.currentLayout.getNodePositions(o.items);o.updatePositions(u),this.isRenderingDisabled||(this.glController.renderMainScene(u),this.glController.renderMinimap(u),this.canvasRenderer.processUpdates(),this.canvasRenderer.render(u)),this.layoutRunner=setInterval(function(){try{(function(){var c=i.currentLayout.getShouldUpdate(),f=c||i.justSwitchedLayout,d=f&&!i.layoutUpdating&&!i.justSwitchedLayout;if(f)for(var h=window.performance.now(),p=d?0:50,g=0;gi.layoutTimeLimit)break}})()}catch(c){if(!i.callbacks.isCallbackRegistered(up))throw c;i.callIfRegistered(up,c)}},13);var l=function(){try{(function(c){if(i.destroyed)bi.info("STEP IN A DESTROYED STRIP");else{var f=$n();if(f!==i.pixelRatio)return i.pixelRatio=f,void i.callIfRegistered("restart");var d=i.currentLayout.getShouldUpdate(),h=d||i.justSwitchedLayout,p=i.currentLayout.getComputing(),g=i.zoomTransitionHandler.needsToRun(),y=h&&!i.layoutUpdating&&!i.justSwitchedLayout,b=i.layoutComputing&&!p,_=i.state.renderer,m=_===Mg&&i.glController.needsToRun(),x=_===fp&&i.canvasRenderer.needsToRun(),E=_===am&&i.svgRenderer.needsToRun(),O=i.isInRenderSwitchAnimation||i.justSwitchedRenderer,S=i.hasResized,T=i.pendingZoomOperation!==null,P=i.glController.minimapMouseDown;if(o.clearChannel(Uw),s.clearChannel(Uw),g||h||b||O||m||x||E||P||S||T){!T||y||i.currentLayout.getComputing()||(i.pendingZoomOperation(),i.pendingZoomOperation=null);var I=d||p||b;i.zoomTransitionHandler.update(I,function(){return i.callIfRegistered("onZoomTransitionDone")}),S&&i.glController.onResize();var k=i.currentLayout.getNodePositions(o.items);if(o.updatePositions(k),i.callbacks.isCallbackRegistered(f9)&&i.callIfRegistered(f9,i.dumpNodes()),i.updateMinimapZoom(),i.glController.renderMinimap(k),!i.isRenderingDisabled){var L=i.state.renderer;if((L===Mg||O)&&i.glController.renderMainScene(k),L===fp||L===am||O){i.canvasRenderer.processUpdates(),i.canvasRenderer.render(k);for(var B=0;B5&&L!==Mg;Object.assign(H.style,{top:"".concat(re,"px"),left:"".concat(ue,"px"),width:"".concat(J,"px"),height:"".concat(X,"px"),display:ne?"block":"none",transform:"translate(-50%, -50%) scale(".concat(Number(i.state.zoom),") rotate(").concat(W,"rad")})}}}(L===am||O)&&(i.svgRenderer.processUpdates(),i.svgRenderer.render(k));for(var le=0;le=d.length?{done:!0}:{done:!1,value:d[g++]}},e:function(x){throw x},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b,_=!0,m=!1;return{s:function(){p=p.call(d)},n:function(){var x=p.next();return _=x.done,x},e:function(x){m=!0,b=x},f:function(){try{_||p.return==null||p.return()}finally{if(m)throw b}}}})(a);try{for(u.s();!(i=u.n()).done;){var l=i.value,c=o[l.id],f=this.mapCanvasSpaceToRelativePosition(c.x,c.y);s.push(no(no({},l),{},{x:f.x,y:f.y}))}}catch(d){u.e(d)}finally{u.f()}return s}},{key:"dumpRelationships",value:function(){return $u(this.state.rels.items)}},{key:"mapCanvasSpaceToRelativePosition",value:function(i,a){var o=this.canvasRect,s=window.devicePixelRatio||1,u=(i-this.state.panX)*this.state.zoom/s,l=(a-this.state.panY)*this.state.zoom/s;return{x:u+.5*o.width,y:l+.5*o.height}}},{key:"mapRelativePositionToCanvasSpace",value:function(i,a){var o=this.glCanvas.getBoundingClientRect(),s=window.devicePixelRatio||1,u=s*(i-.5*o.width),l=s*(a-.5*o.height);return{x:this.state.panX+u/this.state.zoom,y:this.state.panY+l/this.state.zoom}}},{key:"getNodePositions",value:function(){return Object.values($u(this.state.nodes.idToPosition))}},{key:"setNodePositions",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0&&arguments[1],s=[],u=i.filter(function(l){var c=l.id,f=a.state.nodes.idToItem[c]!==void 0;return f||s.push(c),f});s.length>0&&bi.warn("Failed to set positions for following nodes: ".concat(s.join(", "),". They do not exist in the graph.")),this.state.nodes.updatePositions(u),this.currentLayout.updateNodes(u),o||this.currentLayout.terminateUpdate(),this.hasResized=!0,this.getNodesOnScreen().nodes.length===0&&this.state.setPan(0,0),this.state.clearFit()}},{key:"isLayoutMoving",value:function(){return this.layoutUpdating}},{key:"getNodesOnScreen",value:function(){var i=this.glCanvas.getBoundingClientRect(),a=this.mapRelativePositionToCanvasSpace(0,0),o=a.x,s=a.y,u=this.mapRelativePositionToCanvasSpace(i.width,i.height);return(function(l,c,f,d,h){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:["node"],g=h.nodes,y=h.rels,b=Math.min(l,f),_=Math.max(l,f),m=Math.min(c,d),x=Math.max(c,d),E=[],O=[];if(p.includes("node"))for(var S=0,T=Object.values(g.idToPosition);Sb&&I<_&&k>m&&kb&&q.x<_&&q.y>m&&q.yb&&W.x<_&&W.y>m&&W.y1&&arguments[1]!==void 0?arguments[1]:0;return this.canvasRenderer.getNodesAt(i,a)}},{key:"getLayout",value:function(i){return i===Zx?this.hierarchicalLayout:i===Foe?this.forceLayout:i===Uoe?this.gridLayout:i===zoe?this.freeLayout:i===qoe?this.d3ForceLayout:i===Goe?this.circularLayout:this.forceLayout}},{key:"setLayout",value:function(i){bi.info("Switching to layout: ".concat(i));var a=this.currentLayoutType,o=this.getLayout(i);i==="free"&&o.setNodePositions(this.state.nodes.idToPosition),this.currentLayout=o,this.currentLayoutType=i,a&&a!==this.currentLayoutType&&(this.justSwitchedLayout=!0)}},{key:"setLayoutOptions",value:function(i){this.getLayout(this.state.layout).setOptions(i)}},{key:"getDataUrlForCanvas",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1],o=i.toDataURL("image/png");return a?o.replace(/^data:image\/png/,"data:application/octet-stream"):o}},{key:"initiateFileDownload",value:function(i,a){var o=document.createElement("a");o.style.display="none",o.setAttribute("download",i);var s=this.getDataUrlForCanvas(a,!0);o.setAttribute("href",s),o.click()}},{key:"updateLayoutAndPositions",value:function(){var i=this.state.nodes,a=i.items;this.currentLayout.update(this.justSwitchedLayout),this.justSwitchedLayout=!1;var o=this.currentLayout.getNodePositions(a);return i.updatePositions(o),o}},{key:"saveToFile",value:function(i){var a=no(no({},ab),i),o=this.createCanvasAndRenderImage(this.c2dCanvas.width,this.c2dCanvas.height,a.backgroundColor);this.initiateFileDownload(a.filename,o),om(o),o=null}},{key:"saveToSvg",value:(n=s9(Cb().m(function i(){var a,o,s,u,l,c,f,d,h,p,g,y,b,_=arguments;return Cb().w(function(m){for(;;)switch(m.p=m.n){case 0:return o=_.length>0&&_[0]!==void 0?_[0]:{},s=no(no({},ab),o),u=((a=s.filename)===null||a===void 0?void 0:a.replace(/\.[^.]+$/,".svg"))||"visualisation.svg",l=null,m.p=1,c=this.updateLayoutAndPositions(),f=i1(c,100),(l=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("width",String(f.nodesWidth)),l.setAttribute("height",String(f.nodesHeight)),l.style.background=s.backgroundColor||"rgba(0,0,0,0)",this.svgRenderer.processUpdates(),this.svgRenderer.render(c,f,{svg:l,backgroundColor:s.backgroundColor,showCaptions:!0}),m.n=2,this.svgRenderer.waitForImages();case 2:this.svgRenderer.render(c,f,{svg:l,backgroundColor:s.backgroundColor,showCaptions:!0}),d=new XMLSerializer,h=d.serializeToString(l),p=new Blob([h],{type:"image/svg+xml"}),g=URL.createObjectURL(p),(y=document.createElement("a")).style.display="none",y.setAttribute("download",u),y.setAttribute("href",g),document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(g),m.n=5;break;case 3:if(m.p=3,b=m.v,bi.error("An error occurred while exporting to SVG",b),!this.callbacks.isCallbackRegistered(up)){m.n=4;break}this.callIfRegistered(up,b),m.n=5;break;case 4:throw b;case 5:return m.p=5,l&&l.remove(),l=null,m.f(5);case 6:return m.a(2)}},i,this,[[1,3,5,6]])})),function(){return n.apply(this,arguments)})},{key:"getImageDataURL",value:function(i){var a=no(no({},ab),i),o=this.createCanvasAndRenderImage(this.c2dCanvas.width,this.c2dCanvas.height,a.backgroundColor),s=this.getDataUrlForCanvas(o);return om(o),o=null,s}},{key:"prepareLargeFileForDownload",value:function(i){var a=this,o=no(no({},ab),i),s=this.currentLayout.getNodePositions(this.state.nodes.items),u=i1(s,100),l=u.nodesWidth,c=u.nodesHeight,f=u.centerX,d=u.centerY,h=Math.max(Math.min(l+100,15e3),5e3),p=Math.max(Math.min(c+100,15e3),5e3);return this.isRenderingDisabled=!0,new Promise(function(g,y){try{a.setPanCoordinates(f,d);var b=Math.max(h/l-.02,a.state.minZoom),_=Math.max(p/c-.02,a.state.minZoom);a.setZoomLevel(Math.min(b,_))}catch(m){return bi.error("An error occurred while downloading the file"),void y(new Error("An error occurred while downloading the file",{cause:m}))}setTimeout(function(){try{var m=a.createCanvasAndRenderImage(h,p,o.backgroundColor);a.initiateFileDownload(o.filename,m),om(m),m=null,g(!0)}catch(x){y(new Error("An error occurred while downloading the file",{cause:x}))}},500)})}},{key:"createCanvasAndRenderImage",value:function(i,a,o){var s=(function(c,f){var d=document.createElement("canvas");return document.body.appendChild(d),Gq(d,c,f,1),d})(i,a),u=(function(c){return c.getContext("2d")})(s),l=this.updateLayoutAndPositions();return this.canvasRenderer.processUpdates(),this.canvasRenderer.render(l,{canvas:s,context:u,backgroundColor:o,ignoreAnimations:!0,showCaptions:!0}),s}},{key:"saveFullGraphToLargeFile",value:(t=s9(Cb().m(function i(a){var o,s,u,l,c;return Cb().w(function(f){for(;;)switch(f.p=f.n){case 0:return o=no(no({},ab),a),s=this.state.zoom,u=this.state.panX,l=this.state.panY,f.p=1,f.n=2,this.prepareLargeFileForDownload(o);case 2:f.n=5;break;case 3:if(f.p=3,c=f.v,bi.error("An error occurred while downloading the image"),!this.callbacks.isCallbackRegistered(up)){f.n=4;break}this.callIfRegistered(up,c),f.n=5;break;case 4:throw c;case 5:return f.p=5,this.isRenderingDisabled=!1,this.setZoomLevel(s),this.setPanCoordinates(u,l),f.f(5);case 6:return f.a(2)}},i,this,[[1,3,5,6]])})),function(i){return t.apply(this,arguments)})}],e&&tue(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e,t,n})();function hE(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=(function(u,l){if(u){if(typeof u=="string")return d9(u,l);var c={}.toString.call(u).slice(8,-1);return c==="Object"&&u.constructor&&(c=u.constructor.name),c==="Map"||c==="Set"?Array.from(u):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?d9(u,l):void 0}})(r))||e){t&&(r=t);var n=0,i=function(){};return{s:i,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function d9(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t1&&arguments[1]!==void 0?arguments[1]:{};this.fitNodeIds=(0,Hi.intersection)(j,(0,Hi.map)(this.nodes.items,"id")),this.zoomOptions=p9(p9({},CP),z)}),setZoomReset:ta(function(){this.resetZoom=!0}),clearFit:ta(function(){this.fitNodeIds=[],this.forceWebGL=!1,this.fitMovement=0,this.zoomOptions=CP}),clearReset:ta(function(){this.resetZoom=!1,this.fitMovement=0}),updateZoomToFit:ta(function(j,z,H,q){var W;if(this.fitMovement=Math.abs(j-this.zoom)+Math.abs(z-this.panX)+Math.abs(H-this.panY),i){var $=Object.values(this.nodes.idToPosition);(W=UP($,this.minZoom,this.maxZoom,q,j,this.zoom))0},zw=ao(1187);function c1(r){return c1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c1(r)}function g9(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function y9(r){for(var e=1;er.length)&&(e=r.length);for(var t=0,n=Array(e);t=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function PG(r,e){if(r){if(typeof r=="string")return _9(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_9(r,e):void 0}}function _9(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,t),(function(u,l){DG(u,l),l.add(u)})(this,Qc),um(this,u2,void 0),um(this,In,void 0),um(this,mi,void 0),um(this,wd,void 0),um(this,mm,void 0),um(this,mue,void 0),o.disableTelemetry,Oc(Qc,this,_ue).call(this,o),d1(u2,this,new Gae(s)),d1(wd,this,o),d1(mm,this,n),this.checkWebGLCompatibility(),Oc(Qc,this,x9).call(this,i,a,o)},e=[{key:"restart",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=this.getNodePositions(),a=Vt(In,this),o=a.zoom,s=a.layout,u=a.layoutOptions,l=a.nodes,c=a.rels;Vt(mi,this).destroy(),Object.assign(Vt(wd,this),t),Oc(Qc,this,x9).call(this,l.items,c.items,Vt(wd,this)),this.setZoom(o),this.setLayout(s),this.setLayoutOptions(u),this.addAndUpdateElementsInGraph(l.items,c.items),n&&this.setNodePositions(i)}},{key:"addAndUpdateElementsInGraph",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];Oc(Qc,this,VP).call(this,t),Oc(Qc,this,HP).call(this,n,t);var i={added:!1,updated:!1};Vt(In,this).nodes.update(t,Ds({},i)),Vt(In,this).rels.update(n,Ds({},i)),Vt(In,this).nodes.add(t,Ds({},i)),Vt(In,this).rels.add(n,Ds({},i)),Vt(In,this).setGraphUpdated(),Vt(mi,this).updateHtmlOverlay()}},{key:"getSelectedNodes",value:function(){var t=this;return $u(Vt(In,this).nodes.items).filter(function(n){return n.selected}).map(function(n){return Ds(Ds({},n),Vt(In,t).nodes.idToPosition[n.id])})}},{key:"getSelectedRelationships",value:function(){return $u(Vt(In,this).rels.items).filter(function(t){return t.selected})}},{key:"updateElementsInGraph",value:function(t,n){var i=this,a={added:!1,updated:!1},o=t.filter(function(u){return Vt(In,i).nodes.idToItem[u.id]!==void 0}),s=n.filter(function(u){return Vt(In,i).rels.idToItem[u.id]!==void 0});Oc(Qc,this,VP).call(this,o),Oc(Qc,this,HP).call(this,s,t),Vt(In,this).nodes.update(o,Ds({},a)),Vt(In,this).rels.update(s,Ds({},a)),Vt(mi,this).updateHtmlOverlay()}},{key:"addElementsToGraph",value:function(t,n){Oc(Qc,this,VP).call(this,t),Oc(Qc,this,HP).call(this,n,t);var i={added:!1,updated:!1};Vt(In,this).nodes.add(t,Ds({},i)),Vt(In,this).rels.add(n,Ds({},i)),Vt(mi,this).updateHtmlOverlay()}},{key:"removeNodesWithIds",value:function(t){if(Array.isArray(t)&&!(0,Hi.isEmpty)(t)){var n,i={},a=S5(t);try{for(a.s();!(n=a.n()).done;)i[n.value]=!0}catch(c){a.e(c)}finally{a.f()}var o,s=[],u=S5(Vt(In,this).rels.items);try{for(u.s();!(o=u.n()).done;){var l=o.value;i[l.from]!==!0&&i[l.to]!==!0||s.push(l.id)}}catch(c){u.e(c)}finally{u.f()}s.length>0&&Oc(Qc,this,E9).call(this,s),Oc(Qc,this,wue).call(this,t),Vt(In,this).setGraphUpdated(),Vt(mi,this).updateHtmlOverlay()}}},{key:"removeRelationshipsWithIds",value:function(t){Array.isArray(t)&&!(0,Hi.isEmpty)(t)&&(Oc(Qc,this,E9).call(this,t),Vt(In,this).setGraphUpdated(),Vt(mi,this).updateHtmlOverlay())}},{key:"getNodes",value:function(){return Vt(mi,this).dumpNodes()}},{key:"getRelationships",value:function(){return Vt(mi,this).dumpRelationships()}},{key:"getNodeById",value:function(t){return Vt(In,this).nodes.idToItem[t]}},{key:"getRelationshipById",value:function(t){return Vt(In,this).rels.idToItem[t]}},{key:"getPositionById",value:function(t){return Vt(In,this).nodes.idToPosition[t]}},{key:"getCurrentOptions",value:function(){return Vt(wd,this)}},{key:"destroy",value:function(){Vt(mi,this).destroy()}},{key:"deselectAll",value:function(){this.updateElementsInGraph(Vt(In,this).nodes.items.map(function(t){return Ds(Ds({},t),{},{selected:!1})}),Vt(In,this).rels.items.map(function(t){return Ds(Ds({},t),{},{selected:!1})}))}},{key:"fit",value:function(t,n){Vt(mi,this).fit(t,n)}},{key:"resetZoom",value:function(){Vt(mi,this).resetZoom()}},{key:"setRenderer",value:function(t){Vt(mi,this).setRenderer(t)}},{key:"setDisableWebGL",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];Vt(wd,this).disableWebGL!==t&&(Vt(wd,this).disableWebGL=t,this.restart())}},{key:"pinNode",value:function(t){Vt(In,this).nodes.update([{id:t,pinned:!0}],{})}},{key:"unPinNode",value:function(t){Vt(In,this).nodes.update(t.map(function(n){return{id:n,pinned:!1}}),{})}},{key:"setLayout",value:function(t){Vt(In,this).setLayout(t)}},{key:"setLayoutOptions",value:function(t){Vt(In,this).setLayoutOptions(t)}},{key:"getNodesOnScreen",value:function(){return Vt(mi,this).getNodesOnScreen()}},{key:"getNodePositions",value:function(){return Vt(mi,this).getNodePositions()}},{key:"setNodePositions",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];Vt(mi,this).setNodePositions(t,n)}},{key:"isLayoutMoving",value:function(){return Vt(mi,this).isLayoutMoving()}},{key:"saveToFile",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vt(mi,this).saveToFile(t)}},{key:"saveToSvg",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vt(mi,this).saveToSvg(t)}},{key:"getImageDataUrl",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Vt(mi,this).getImageDataURL(t)}},{key:"saveFullGraphToLargeFile",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vt(mi,this).saveFullGraphToLargeFile(t)}},{key:"getZoomLimits",value:function(){return{minZoom:Vt(In,this).minZoom,maxZoom:Vt(In,this).maxZoom}}},{key:"setZoom",value:function(t){Vt(mi,this).setZoomLevel(t)}},{key:"setPan",value:function(t,n){Vt(mi,this).setPanCoordinates(t,n)}},{key:"setZoomAndPan",value:function(t,n,i){Vt(mi,this).setZoomAndPan(t,n,i)}},{key:"getScale",value:function(){return Vt(mi,this).getScale()}},{key:"getPan",value:function(){return Vt(mi,this).getPan()}},{key:"getHits",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["node","relationship"],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{hitNodeMarginWidth:0},a=Vt(In,this),o=a.zoom,s=a.panX,u=a.panY,l=a.renderer,c=bG(t,Vt(mm,this),o,s,u),f=c.x,d=c.y,h=l===Mg?(function(p,g,y){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["node","relationship"],_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},m=[],x=[],E=y.nodes,O=y.rels;return b.includes("node")&&m.push.apply(m,Bw((function(S,T){var P,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,L=[],B=w5(arguments.length>2&&arguments[2]!==void 0?arguments[2]:[]);try{var j=function(){var z,H=P.value,q=I[H.id];if((q==null?void 0:q.x)===void 0||q.y===void 0)return 1;var W=((z=H.size)!==null&&z!==void 0?z:ha)*$n(),$={x:q.x-S,y:q.y-T},J=Math.pow(W,2),X=Math.pow(W+k,2),Z=Math.pow($.x,2)+Math.pow($.y,2),ue=Math.sqrt(Z);if(Zue});L.splice(re!==-1?re:L.length,0,{data:H,targetCoordinates:{x:q.x,y:q.y},pointerCoordinates:{x:S,y:T},distanceVector:$,distance:ue,insideNode:Z3&&arguments[3]!==void 0?arguments[3]:{},k=[],L={},B=w5(arguments.length>2&&arguments[2]!==void 0?arguments[2]:[]);try{var j=function(){var z=P.value,H=z.from,q=z.to;if(L["".concat(H,".").concat(q)]===void 0){var W=I[H],$=I[q];if((W==null?void 0:W.x)===void 0||W.y===void 0||($==null?void 0:$.x)===void 0||$.y===void 0)return 0;var J=ZD({x:W.x,y:W.y},{x:$.x,y:$.y},{x:S,y:T});if(J<=Xse){var X=k.findIndex(function(Z){return Z.distance>J});k.splice(X!==-1?X:k.length,0,{data:z,fromTargetCoordinates:{x:W.x,y:W.y},toTargetCoordinates:{x:$.x,y:$.y},pointerCoordinates:{x:S,y:T},distance:J})}L["".concat(H,".").concat(q)]=1,L["".concat(q,".").concat(H)]=1}};for(B.s();!(P=B.n()).done;)j()}catch(z){B.e(z)}finally{B.f()}return k})(p,g,O.items,E.idToPosition))),{nodes:m,relationships:x}})(f,d,Vt(In,this),n,i):(function(p,g,y){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["node","relationship"],_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},m=[],x=[];return b.includes("node")&&m.push.apply(m,Bw(y.getCanvasNodesAt({x:p,y:g},_.hitNodeMarginWidth))),b.includes("relationship")&&x.push.apply(x,Bw(y.getCanvasRelsAt({x:p,y:g}))),{nodes:m,relationships:x}})(f,d,Vt(mi,this),n,i);return Ds(Ds({},t),{},{nvlTargets:h})}},{key:"getContainer",value:function(){return Vt(mm,this)}},{key:"checkWebGLCompatibility",value:function(){var t=Vt(wd,this).disableWebGL;if(t===void 0||!t){var n=(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.createElement("canvas");try{return window.WebGLRenderingContext!==void 0&&(i.getContext("webgl")!==null||i.getContext("experimental-webgl")!==null)}catch{return!1}})();if(!n){if(t!==void 0)throw new Mq("Could not initialize WebGL");Vt(wd,this).renderer=fp,bi.warn("GPU acceleration is not available on your browser. Falling back to CPU layout and rendering. You can disable this warning by setting the disableWebGL option to true.")}t===void 0&&(Vt(wd,this).disableWebGL=!n)}}}],e&&yue(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e})();function x9(){var r,e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};d1(In,this,hue(i)),i.minimapContainer instanceof HTMLElement||delete i.minimapContainer,d1(mi,this,new rue(Vt(In,this),Vt(mm,this),i)),this.addAndUpdateElementsInGraph(t,n),Vt(mi,this).on("restart",this.restart.bind(this));var a,o,s=S5((a=Vt(u2,this).callbacks,Object.entries(a)));try{var u=function(){var l,c,f=(l=o.value,c=2,(function(p){if(Array.isArray(p))return p})(l)||(function(p,g){var y=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(y!=null){var b,_,m,x,E=[],O=!0,S=!1;try{if(m=(y=y.call(p)).next,g===0){if(Object(y)!==y)return;O=!1}else for(;!(O=(b=m.call(y)).done)&&(E.push(b.value),E.length!==g);O=!0);}catch(T){S=!0,_=T}finally{try{if(!O&&y.return!=null&&(x=y.return(),Object(x)!==x))return}finally{if(S)throw _}}return E}})(l,c)||PG(l,c)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()),d=f[0],h=f[1];h!==void 0&&Vt(mi,e).on(d,function(){for(var p=arguments.length,g=new Array(p),y=0;y0})(n)});if(e){var t="";throw/^\d+$/.test(e.id)||(t=" Node ids need to be numeric strings. Strings that contain anything other than numbers are not yet supported."),new TypeError("Invalid node provided: ".concat(JSON.stringify(e),".").concat(t))}}function HP(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t="",n=null,i=Vt(In,this),a=i.nodes,o=i.rels,s={},u=0;u{const t=ss.keyBy(r,"id"),n=ss.keyBy(e,"id"),i=ss.sortBy(ss.keys(t)),a=ss.sortBy(ss.keys(n)),o=[],s=[],u=[];let l=0,c=0;for(;ln[f]).filter(f=>!ss.isNil(f)),removed:s.map(f=>t[f]).filter(f=>!ss.isNil(f)),updated:u.map(f=>n[f]).filter(f=>!ss.isNil(f))}},Sue=(r,e)=>{const t=ss.keyBy(r,"id");return e.map(n=>{const i=t[n.id];return i===void 0?null:ss.transform(n,(a,o,s)=>{(s==="id"||o!==i[s])&&Object.assign(a,{[s]:o})})}).filter(n=>n!==null&&Object.keys(n).length>1)},Oue=(r,e)=>ss.isEqual(r,e),Tue=r=>{const e=me.useRef();return Oue(r,e.current)||(e.current=r),e.current},Cue=(r,e)=>{me.useEffect(r,e.map(Tue))},Aue=me.memo(me.forwardRef(({nodes:r,rels:e,layout:t,layoutOptions:n,nvlCallbacks:i={},nvlOptions:a={},positions:o=[],zoom:s,pan:u,onInitializationError:l,...c},f)=>{const d=me.useRef(null),h=me.useRef(void 0),p=me.useRef(void 0);me.useImperativeHandle(f,()=>Object.getOwnPropertyNames(S9.prototype).reduce((E,O)=>({...E,[O]:(...S)=>d.current===null?null:d.current[O](...S)}),{}));const g=me.useRef(null),[y,b]=me.useState(r),[_,m]=me.useState(e);return me.useEffect(()=>()=>{var x;(x=d.current)==null||x.destroy(),d.current=null},[]),me.useEffect(()=>{let x=null;const O="minimapContainer"in a?a.minimapContainer!==null:!0;if(g.current!==null&&O&&d.current===null){const T={...a,layoutOptions:n};t!==void 0&&(T.layout=t);try{x=new S9(g.current,y,_,T,i),d.current=x,m(e),b(r)}catch(P){if(typeof l=="function")l(P);else throw P}}},[g.current,a.minimapContainer]),me.useEffect(()=>{if(d.current===null)return;const x=O9(y,r),E=Sue(y,r),O=O9(_,e);if(x.added.length===0&&x.removed.length===0&&E.length===0&&O.added.length===0&&O.removed.length===0&&O.updated.length===0)return;m(e),b(r);const T=[...x.added,...E],P=[...O.added,...O.updated];d.current.addAndUpdateElementsInGraph(T,P);const I=O.removed.map(L=>L.id),k=x.removed.map(L=>L.id);d.current.removeRelationshipsWithIds(I),d.current.removeNodesWithIds(k)},[y,_,r,e]),me.useEffect(()=>{const x=t??a.layout;d.current===null||x===void 0||d.current.setLayout(x)},[t,a.layout]),Cue(()=>{const x=n??(a==null?void 0:a.layoutOptions);d.current===null||x===void 0||d.current.setLayoutOptions(x)},[n,a.layoutOptions]),me.useEffect(()=>{d.current===null||a.renderer===void 0||d.current.setRenderer(a.renderer)},[a.renderer]),me.useEffect(()=>{d.current===null||a.disableWebGL===void 0||d.current.setDisableWebGL(a.disableWebGL)},[a.disableWebGL]),me.useEffect(()=>{d.current===null||o.length===0||d.current.setNodePositions(o)},[o]),me.useEffect(()=>{if(d.current===null)return;const x=h.current,E=p.current,O=s!==void 0&&s!==x,S=u!==void 0&&(u.x!==(E==null?void 0:E.x)||u.y!==E.y);O&&S?d.current.setZoomAndPan(s,u.x,u.y):O?d.current.setZoom(s):S&&d.current.setPan(u.x,u.y),h.current=s,p.current=u},[s,u]),Te.jsx("div",{id:xue,ref:g,style:{height:"100%",outline:"0"},...c})})),Ym=10,WP=10,vh={frameWidth:3,frameColor:"#a9a9a9",color:"#e0e0e0",lineDash:[10,15],opacity:.5};class kG{constructor(e){Ft(this,"ctx");Ft(this,"canvas");Ft(this,"removeResizeListener");const t=document.createElement("canvas");t.style.position="absolute",t.style.top="0",t.style.bottom="0",t.style.left="0",t.style.right="0",t.style.touchAction="none",e==null||e.appendChild(t);const n=t.getContext("2d");this.ctx=n,this.canvas=t;const i=()=>{this.fixCanvasSize(t)};e==null||e.addEventListener("resize",i),this.removeResizeListener=()=>e==null?void 0:e.removeEventListener("resize",i),this.fixCanvasSize(t)}fixCanvasSize(e){const t=e.parentElement;if(!t)return;const n=t.getBoundingClientRect(),{width:i}=n,{height:a}=n,o=window.devicePixelRatio||1;e.width=i*o,e.height=a*o,e.style.width=`${i}px`,e.style.height=`${a}px`}drawBox(e,t,n,i){const{ctx:a}=this;if(a===null)return;this.clear(),a.save(),a.beginPath(),a.rect(e,t,n-e,i-t),a.closePath(),a.strokeStyle=vh.frameColor;const o=window.devicePixelRatio||1;a.lineWidth=vh.frameWidth*o,a.fillStyle=vh.color,a.globalAlpha=vh.opacity,a.setLineDash(vh.lineDash),a.stroke(),a.fill(),a.restore()}drawLasso(e,t,n){const{ctx:i}=this;if(i===null)return;i.save(),this.clear(),i.beginPath();let a=0;for(const s of e){const{x:u,y:l}=s;a===0?i.moveTo(u,l):i.lineTo(u,l),a+=1}const o=window.devicePixelRatio||1;i.strokeStyle=vh.frameColor,i.setLineDash(vh.lineDash),i.lineWidth=vh.frameWidth*o,i.fillStyle=vh.color,i.globalAlpha=vh.opacity,t&&i.stroke(),n&&i.fill(),i.restore()}clear(){const{ctx:e,canvas:t}=this;if(e===null)return;const n=t.getBoundingClientRect(),i=window.devicePixelRatio||1;e.clearRect(0,0,n.width*i,n.height*i)}destroy(){const{canvas:e}=this;this.removeResizeListener(),e.remove()}}class Wp{constructor(e,t){Ft(this,"nvl");Ft(this,"options");Ft(this,"container");Ft(this,"callbackMap");Ft(this,"addEventListener",(e,t,n)=>{var i;(i=this.container)==null||i.addEventListener(e,t,n)});Ft(this,"removeEventListener",(e,t,n)=>{var i;(i=this.container)==null||i.removeEventListener(e,t,n)});Ft(this,"callCallbackIfRegistered",(e,...t)=>{const n=this.callbackMap.get(e);typeof n=="function"&&n(...t)});Ft(this,"updateCallback",(e,t)=>{this.callbackMap.set(e,t)});Ft(this,"removeCallback",e=>{this.callbackMap.delete(e)});Ft(this,"toggleGlobalTextSelection",(e,t)=>{e?(document.body.style.removeProperty("user-select"),t&&document.body.removeEventListener("mouseup",t)):(document.body.style.setProperty("user-select","none","important"),t&&document.body.addEventListener("mouseup",t))});this.nvl=e,this.options=t,this.container=this.nvl.getContainer(),this.callbackMap=new Map}get nvlInstance(){return this.nvl}get currentOptions(){return this.options}get containerInstance(){return this.container}}const sb=r=>Math.floor(Math.random()*Math.pow(10,r)).toString(),IG=(r,e)=>{const t=Math.abs(r.clientX-e.x),n=Math.abs(r.clientY-e.y);return t>WP||n>WP?!0:Math.pow(t,2)+Math.pow(n,2)>WP},Ap=(r,e)=>{const t=r.getBoundingClientRect(),n=window.devicePixelRatio||1;return{x:(e.clientX-t.left)*n,y:(e.clientY-t.top)*n}},Rue=(r,e)=>{const t=r.getBoundingClientRect(),n=window.devicePixelRatio||1;return{x:(e.clientX-t.left-t.width*.5)*n,y:(e.clientY-t.top-t.height*.5)*n}},j1=(r,e)=>{const t=r.getScale(),n=r.getPan(),i=r.getContainer(),{width:a,height:o}=i.getBoundingClientRect(),s=window.devicePixelRatio||1,u=e.x-a*.5*s,l=e.y-o*.5*s;return{x:n.x+u/t,y:n.y+l/t}};class T9 extends Wp{constructor(t,n={selectOnRelease:!1}){super(t,n);Ft(this,"mousePosition",{x:0,y:0});Ft(this,"startWorldPosition",{x:0,y:0});Ft(this,"overlayRenderer");Ft(this,"isBoxSelecting",!1);Ft(this,"handleMouseDown",t=>{if(t.button!==0){this.isBoxSelecting=!1;return}this.turnOnBoxSelect(t)});Ft(this,"handleDrag",t=>{if(this.isBoxSelecting){const n=Ap(this.containerInstance,t);this.overlayRenderer.drawBox(this.mousePosition.x,this.mousePosition.y,n.x,n.y)}else t.buttons===1&&this.turnOnBoxSelect(t)});Ft(this,"getHitsInBox",(t,n)=>{const i=(c,f,d)=>{const h=Math.min(f.x,d.x),p=Math.max(f.x,d.x),g=Math.min(f.y,d.y),y=Math.max(f.y,d.y);return c.x>=h&&c.x<=p&&c.y>=g&&c.y<=y},a=this.nvlInstance.getNodePositions(),o=new Set;for(const c of a)i(c,t,n)&&o.add(c.id);const s=this.nvlInstance.getRelationships(),u=[];for(const c of s)o.has(c.from)&&o.has(c.to)&&u.push(c);return{nodes:Array.from(o).map(c=>this.nvlInstance.getNodeById(c)),rels:u}});Ft(this,"endBoxSelect",t=>{if(!this.isBoxSelecting)return;this.isBoxSelecting=!1,this.overlayRenderer.clear();const n=Ap(this.containerInstance,t),i=j1(this.nvlInstance,n),{nodes:a,rels:o}=this.getHitsInBox(this.startWorldPosition,i);this.currentOptions.selectOnRelease===!0&&this.nvlInstance.updateElementsInGraph(a.map(s=>({id:s.id,selected:!0})),o.map(s=>({id:s.id,selected:!0}))),this.callCallbackIfRegistered("onBoxSelect",{nodes:a,rels:o},t),this.toggleGlobalTextSelection(!0,this.endBoxSelect)});this.overlayRenderer=new kG(this.containerInstance),this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("mousemove",this.handleDrag,!0),this.addEventListener("mouseup",this.endBoxSelect,!0)}destroy(){this.toggleGlobalTextSelection(!0,this.endBoxSelect),this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("mousemove",this.handleDrag,!0),this.removeEventListener("mouseup",this.endBoxSelect,!0),this.overlayRenderer.destroy()}turnOnBoxSelect(t){this.mousePosition=Ap(this.containerInstance,t),this.startWorldPosition=j1(this.nvlInstance,this.mousePosition),this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}).nvlTargets.nodes.length>0?this.isBoxSelecting=!1:(this.isBoxSelecting=!0,this.toggleGlobalTextSelection(!1,this.endBoxSelect),this.callCallbackIfRegistered("onBoxStarted",t),this.currentOptions.selectOnRelease===!0&&this.nvlInstance.deselectAll())}}class iv extends Wp{constructor(t,n={selectOnClick:!1}){super(t,n);Ft(this,"moved",!1);Ft(this,"mousePosition",{x:0,y:0});Ft(this,"handleMouseDown",t=>{this.mousePosition={x:t.clientX,y:t.clientY}});Ft(this,"handleRightClick",t=>{var o,s;t.preventDefault();const{nvlTargets:n}=this.nvlInstance.getHits(t),{nodes:i=[],relationships:a=[]}=n;if(i.length===0&&a.length===0){this.callCallbackIfRegistered("onCanvasRightClick",t);return}i.length>0?this.callCallbackIfRegistered("onNodeRightClick",(o=i[0])==null?void 0:o.data,n,t):a.length>0&&this.callCallbackIfRegistered("onRelationshipRightClick",(s=a[0])==null?void 0:s.data,n,t)});Ft(this,"handleDoubleClick",t=>{var o,s;const{nvlTargets:n}=this.nvlInstance.getHits(t),{nodes:i=[],relationships:a=[]}=n;if(i.length===0&&a.length===0){this.callCallbackIfRegistered("onCanvasDoubleClick",t);return}i.length>0?this.callCallbackIfRegistered("onNodeDoubleClick",(o=i[0])==null?void 0:o.data,n,t):a.length>0&&this.callCallbackIfRegistered("onRelationshipDoubleClick",(s=a[0])==null?void 0:s.data,n,t)});Ft(this,"handleClick",t=>{var o,s;if(IG(t,this.mousePosition)||t.button!==0)return;const{nvlTargets:n}=this.nvlInstance.getHits(t),{nodes:i=[],relationships:a=[]}=n;if(i.length===0&&a.length===0){this.currentOptions.selectOnClick===!0&&this.nvlInstance.deselectAll(),this.callCallbackIfRegistered("onCanvasClick",t);return}if(i.length>0){const u=i.map(l=>l.data);if(this.currentOptions.selectOnClick===!0){const l=this.nvlInstance.getSelectedNodes(),c=this.nvlInstance.getSelectedRelationships(),d=[...u[0]?[{id:u[0].id,selected:!0}]:[],...l.map(p=>({id:p.id,selected:!1}))],h=c.map(p=>({...p,selected:!1}));this.nvlInstance.updateElementsInGraph(d,h)}this.callCallbackIfRegistered("onNodeClick",(o=i[0])==null?void 0:o.data,n,t)}else if(a.length>0){const u=a.map(l=>l.data);if(this.currentOptions.selectOnClick===!0){const l=this.nvlInstance.getSelectedNodes(),c=this.nvlInstance.getSelectedRelationships(),f=l.map(p=>({id:p.id,selected:!1})),h=[...u[0]?[{id:u[0].id,selected:!0}]:[],...c.map(p=>({...p,selected:!1}))];this.nvlInstance.updateElementsInGraph(f,h)}this.callCallbackIfRegistered("onRelationshipClick",(s=a[0])==null?void 0:s.data,n,t)}});Ft(this,"destroy",()=>{this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("click",this.handleClick,!0),this.removeEventListener("dblclick",this.handleDoubleClick,!0),this.removeEventListener("contextmenu",this.handleRightClick,!0)});this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("click",this.handleClick,!0),this.addEventListener("dblclick",this.handleDoubleClick,!0),this.addEventListener("contextmenu",this.handleRightClick,!0)}}class YP extends Wp{constructor(t,n={}){super(t,n);Ft(this,"mousePosition",{x:0,y:0});Ft(this,"mouseDownNode",null);Ft(this,"isDragging",!1);Ft(this,"isDrawing",!1);Ft(this,"selectedNodes",[]);Ft(this,"moveSelectedNodes",!1);Ft(this,"handleMouseDown",t=>{this.mousePosition={x:t.clientX,y:t.clientY},this.mouseDownNode=null;const n=this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}),i=n.nvlTargets.nodes.filter(o=>o.insideNode);n.nvlTargets.nodes.filter(o=>!o.insideNode).length>0?(this.isDrawing=!0,this.addEventListener("mouseup",this.resetState,{once:!0})):i.length>0&&(this.mouseDownNode=n.nvlTargets.nodes[0]??null,this.toggleGlobalTextSelection(!1,this.handleBodyMouseUp)),this.selectedNodes=this.nvlInstance.getSelectedNodes(),this.mouseDownNode!==null&&this.selectedNodes.map(o=>o.id).includes(this.mouseDownNode.data.id)?this.moveSelectedNodes=!0:this.moveSelectedNodes=!1});Ft(this,"handleMouseMove",t=>{if(this.mouseDownNode===null||t.buttons!==1||this.isDrawing||!IG(t,this.mousePosition))return;this.isDragging||(this.moveSelectedNodes?this.callCallbackIfRegistered("onDragStart",this.selectedNodes,t):this.callCallbackIfRegistered("onDragStart",[this.mouseDownNode.data],t),this.isDragging=!0);const n=this.nvlInstance.getScale(),i=(t.clientX-this.mousePosition.x)/n*window.devicePixelRatio,a=(t.clientY-this.mousePosition.y)/n*window.devicePixelRatio;this.moveSelectedNodes?(this.nvlInstance.setNodePositions(this.selectedNodes.map(o=>({id:o.id,x:o.x+i,y:o.y+a,pinned:!0})),!0),this.callCallbackIfRegistered("onDrag",this.selectedNodes,t)):(this.nvlInstance.setNodePositions([{id:this.mouseDownNode.data.id,x:this.mouseDownNode.targetCoordinates.x+i,y:this.mouseDownNode.targetCoordinates.y+a,pinned:!0}],!0),this.callCallbackIfRegistered("onDrag",[this.mouseDownNode.data],t))});Ft(this,"handleBodyMouseUp",t=>{this.toggleGlobalTextSelection(!0,this.handleBodyMouseUp),this.isDragging&&this.mouseDownNode!==null&&(this.moveSelectedNodes?this.callCallbackIfRegistered("onDragEnd",this.selectedNodes,t):this.callCallbackIfRegistered("onDragEnd",[this.mouseDownNode.data],t)),this.resetState()});Ft(this,"resetState",()=>{this.isDragging=!1,this.mouseDownNode=null,this.isDrawing=!1,this.selectedNodes=[],this.moveSelectedNodes=!1});Ft(this,"destroy",()=>{this.toggleGlobalTextSelection(!0,this.handleBodyMouseUp),this.removeEventListener("mousedown",this.handleMouseDown),this.removeEventListener("mousemove",this.handleMouseMove)});this.addEventListener("mousedown",this.handleMouseDown),this.addEventListener("mousemove",this.handleMouseMove)}}const lp={node:{color:"black",size:25},relationship:{color:"red",width:1}};class XP extends Wp{constructor(t,n={}){var i,a;super(t,n);Ft(this,"isMoved",!1);Ft(this,"isDrawing",!1);Ft(this,"isDraggingNode",!1);Ft(this,"mouseDownNode");Ft(this,"newTempTargetNode",null);Ft(this,"newTempRegularRelationshipToNewTempTargetNode",null);Ft(this,"newTempRegularRelationshipToExistingNode",null);Ft(this,"newTempSelfReferredRelationship",null);Ft(this,"newTargetNodeToAdd",null);Ft(this,"newRelationshipToAdd",null);Ft(this,"mouseOutsideOfNvlArea",!1);Ft(this,"cancelDrawing",()=>{var t,n,i,a,o;this.nvlInstance.removeRelationshipsWithIds([(t=this.newTempRegularRelationshipToNewTempTargetNode)==null?void 0:t.id,(n=this.newTempRegularRelationshipToExistingNode)==null?void 0:n.id,(i=this.newTempSelfReferredRelationship)==null?void 0:i.id].filter(s=>!!s)),this.nvlInstance.removeNodesWithIds((a=this.newTempTargetNode)!=null&&a.id?[(o=this.newTempTargetNode)==null?void 0:o.id]:[]),this.newTempTargetNode=null,this.newTempRegularRelationshipToNewTempTargetNode=null,this.newTempRegularRelationshipToExistingNode=null,this.newTempSelfReferredRelationship=null,this.isMoved=!1,this.isDrawing=!1,this.isDraggingNode=!1});Ft(this,"handleMouseUpGlobal",t=>{this.isDrawing&&this.mouseOutsideOfNvlArea&&this.cancelDrawing()});Ft(this,"handleMouseLeaveNvl",()=>{this.mouseOutsideOfNvlArea=!0});Ft(this,"handleMouseEnterNvl",()=>{this.mouseOutsideOfNvlArea=!1});Ft(this,"handleMouseMove",t=>{var n,i,a,o,s,u,l,c,f,d,h,p,g;if(this.isMoved=!0,this.isDrawing){const y=Ap(this.containerInstance,t),b=j1(this.nvlInstance,y),_=this.nvlInstance.getHits(t,["node"]),[m]=_.nvlTargets.nodes.filter(L=>{var B;return L.data.id!==((B=this.newTempTargetNode)==null?void 0:B.id)}),x=m?{id:m.data.id,x:m.targetCoordinates.x,y:m.targetCoordinates.y,size:m.data.size}:void 0,E=sb(13),O=x?null:{id:E,size:((i=(n=this.currentOptions.ghostGraphStyling)==null?void 0:n.node)==null?void 0:i.size)??lp.node.size,selected:!1,x:b.x,y:b.y},S=sb(13),T=(a=this.mouseDownNode)!=null&&a.data?{id:S,from:this.mouseDownNode.data.id,to:x?x.id:E}:null;let{x:P,y:I}=b,k=((s=(o=this.currentOptions.ghostGraphStyling)==null?void 0:o.node)==null?void 0:s.size)??lp.node.size;m?(P=m.targetCoordinates.x,I=m.targetCoordinates.y,k=m.data.size??k,m.data.id===((u=this.mouseDownNode)==null?void 0:u.data.id)&&!this.newTempSelfReferredRelationship?(this.nvlInstance.removeRelationshipsWithIds([(l=this.newTempRegularRelationshipToNewTempTargetNode)==null?void 0:l.id,(c=this.newTempRegularRelationshipToExistingNode)==null?void 0:c.id].filter(L=>!!L)),this.newTempRegularRelationshipToNewTempTargetNode=null,this.newTempRegularRelationshipToExistingNode=null,this.setNewSelfReferredRelationship(),this.newTempSelfReferredRelationship&&this.nvlInstance.addElementsToGraph([],[this.newTempSelfReferredRelationship])):m.data.id!==((f=this.mouseDownNode)==null?void 0:f.data.id)&&!this.newTempRegularRelationshipToExistingNode&&(this.nvlInstance.removeRelationshipsWithIds([(d=this.newTempSelfReferredRelationship)==null?void 0:d.id,(h=this.newTempRegularRelationshipToNewTempTargetNode)==null?void 0:h.id].filter(L=>!!L)),this.newTempSelfReferredRelationship=null,this.newTempRegularRelationshipToNewTempTargetNode=null,this.setNewRegularRelationshipToExistingNode(m.data.id),this.newTempRegularRelationshipToExistingNode&&this.nvlInstance.addElementsToGraph([],[this.newTempRegularRelationshipToExistingNode]))):this.newTempRegularRelationshipToNewTempTargetNode||(this.nvlInstance.removeRelationshipsWithIds([(p=this.newTempSelfReferredRelationship)==null?void 0:p.id,(g=this.newTempRegularRelationshipToExistingNode)==null?void 0:g.id].filter(L=>!!L)),this.newTempSelfReferredRelationship=null,this.newTempRegularRelationshipToExistingNode=null,this.setNewRegularRelationshipToNewTempTargetNode(),this.nvlInstance.addElementsToGraph([],this.newTempRegularRelationshipToNewTempTargetNode?[this.newTempRegularRelationshipToNewTempTargetNode]:[])),this.newTempTargetNode&&(this.nvlInstance.setNodePositions([{id:this.newTempTargetNode.id,x:P,y:I}]),this.nvlInstance.updateElementsInGraph([{id:this.newTempTargetNode.id,x:P,y:I,size:k}],[])),this.newRelationshipToAdd=T,this.newTargetNodeToAdd=O}else if(!this.isDraggingNode){this.newRelationshipToAdd=null,this.newTargetNodeToAdd=null;const b=this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}).nvlTargets.nodes.filter(_=>!_.insideNode);if(b.length>0){const[_]=b;this.callCallbackIfRegistered("onHoverNodeMargin",_==null?void 0:_.data)}else this.callCallbackIfRegistered("onHoverNodeMargin",null)}});Ft(this,"handleMouseDown",t=>{var u,l,c,f,d;this.callCallbackIfRegistered("onHoverNodeMargin",null),this.isMoved=!1,this.newRelationshipToAdd=null,this.newTargetNodeToAdd=null;const n=this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}),i=n.nvlTargets.nodes.filter(h=>h.insideNode),a=n.nvlTargets.nodes.filter(h=>!h.insideNode),o=i.length>0,s=a.length>0;if((o||s)&&(t.preventDefault(),(u=this.containerInstance)==null||u.focus()),o)this.isDraggingNode=!0,this.isDrawing=!1;else if(s){this.isDrawing=!0,this.isDraggingNode=!1,this.mouseDownNode=a[0];const h=Ap(this.containerInstance,t),p=j1(this.nvlInstance,h),g=((c=(l=this.currentOptions.ghostGraphStyling)==null?void 0:l.node)==null?void 0:c.color)??lp.node.color,y=document.createElement("div");y.style.width="110%",y.style.height="110%",y.style.position="absolute",y.style.left="-5%",y.style.top="-5%",y.style.borderRadius="50%",y.style.backgroundColor=g,this.newTempTargetNode={id:sb(13),size:((d=(f=this.currentOptions.ghostGraphStyling)==null?void 0:f.node)==null?void 0:d.size)??lp.node.size,selected:!1,x:p.x,y:p.y,html:y},this.setNewRegularRelationshipToNewTempTargetNode(),this.nvlInstance.addAndUpdateElementsInGraph([this.newTempTargetNode],this.newTempRegularRelationshipToNewTempTargetNode?[this.newTempRegularRelationshipToNewTempTargetNode]:[]),this.callCallbackIfRegistered("onDrawStarted",t)}else this.mouseDownNode=void 0,this.isDrawing=!1,this.isDraggingNode=!1});Ft(this,"handleMouseUp",t=>{var n,i,a,o,s;this.nvlInstance.removeRelationshipsWithIds([(n=this.newTempRegularRelationshipToNewTempTargetNode)==null?void 0:n.id,(i=this.newTempRegularRelationshipToExistingNode)==null?void 0:i.id,(a=this.newTempSelfReferredRelationship)==null?void 0:a.id].filter(u=>!!u)),this.nvlInstance.removeNodesWithIds((o=this.newTempTargetNode)!=null&&o.id?[(s=this.newTempTargetNode)==null?void 0:s.id]:[]),this.isDrawing&&this.isMoved&&(this.newTargetNodeToAdd&&this.nvlInstance.setNodePositions([this.newTargetNodeToAdd]),this.nvlInstance.addAndUpdateElementsInGraph(this.newTargetNodeToAdd?[{id:this.newTargetNodeToAdd.id}]:[],this.newRelationshipToAdd?[this.newRelationshipToAdd]:[]),this.callCallbackIfRegistered("onDrawEnded",this.newRelationshipToAdd,this.newTargetNodeToAdd,t)),this.newTempTargetNode=null,this.newTempRegularRelationshipToNewTempTargetNode=null,this.newTempRegularRelationshipToExistingNode=null,this.newTempSelfReferredRelationship=null,this.isMoved=!1,this.isDrawing=!1,this.isDraggingNode=!1});Ft(this,"destroy",()=>{var t,n;this.removeEventListener("mousemove",this.handleMouseMove,!0),this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("mouseup",this.handleMouseUp,!0),(t=this.containerInstance)==null||t.removeEventListener("mouseleave",this.handleMouseLeaveNvl),(n=this.containerInstance)==null||n.removeEventListener("mouseenter",this.handleMouseEnterNvl),document.removeEventListener("mouseup",this.handleMouseUpGlobal,!0)});this.nvlInstance.setLayout("free"),this.addEventListener("mousemove",this.handleMouseMove,!0),this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("mouseup",this.handleMouseUp,!0),(i=this.containerInstance)==null||i.addEventListener("mouseleave",this.handleMouseLeaveNvl),(a=this.containerInstance)==null||a.addEventListener("mouseenter",this.handleMouseEnterNvl),document.addEventListener("mouseup",this.handleMouseUpGlobal,!0)}setNewRegularRelationship(t){var n,i,a,o;return this.mouseDownNode?{id:sb(13),from:this.mouseDownNode.data.id,to:t,color:((i=(n=this.currentOptions.ghostGraphStyling)==null?void 0:n.relationship)==null?void 0:i.color)??lp.relationship.color,width:((o=(a=this.currentOptions.ghostGraphStyling)==null?void 0:a.relationship)==null?void 0:o.width)??lp.relationship.width}:null}setNewRegularRelationshipToNewTempTargetNode(){!this.mouseDownNode||!this.newTempTargetNode||(this.newTempRegularRelationshipToNewTempTargetNode=this.setNewRegularRelationship(this.newTempTargetNode.id))}setNewRegularRelationshipToExistingNode(t){this.mouseDownNode&&(this.newTempRegularRelationshipToExistingNode=this.setNewRegularRelationship(t))}setNewSelfReferredRelationship(){var t,n,i,a;this.mouseDownNode&&(this.newTempSelfReferredRelationship={id:sb(13),from:this.mouseDownNode.data.id,to:this.mouseDownNode.data.id,color:((n=(t=this.currentOptions.ghostGraphStyling)==null?void 0:t.relationship)==null?void 0:n.color)??lp.relationship.color,width:((a=(i=this.currentOptions.ghostGraphStyling)==null?void 0:i.relationship)==null?void 0:a.width)??lp.relationship.width})}}class Pue extends Wp{constructor(t,n={drawShadowOnHover:!1}){super(t,n);Ft(this,"currentHoveredElementId");Ft(this,"currentHoveredElementIsNode");Ft(this,"updates",{nodes:[],relationships:[]});Ft(this,"handleHover",t=>{const{nvlTargets:n}=this.nvlInstance.getHits(t),{nodes:i=[],relationships:a=[]}=n,o=i[0]??a[0],s=o==null?void 0:o.data,u=s!==void 0&&i[0]!==void 0,l=this.currentHoveredElementId===void 0&&s===void 0,c=(s==null?void 0:s.id)!==void 0&&this.currentHoveredElementId===s.id&&u===this.currentHoveredElementIsNode;if(l||c){this.callCallbackIfRegistered("onHover",s,n,t);return}if(this.currentHoveredElementId!==void 0&&this.currentHoveredElementId!==(s==null?void 0:s.id)&&this.unHoverCurrentElement(),u)this.updates.nodes.push({id:s.id,hovered:!0}),this.currentHoveredElementId=s.id,this.currentHoveredElementIsNode=!0;else if(s!==void 0){const{id:d}=s;this.updates.relationships.push({id:d,hovered:!0}),this.currentHoveredElementId=s.id,this.currentHoveredElementIsNode=!1}else this.currentHoveredElementId=void 0,this.currentHoveredElementIsNode=void 0;this.callCallbackIfRegistered("onHover",s,n,t),this.updateElementsInNVL(),this.clearUpdates()});this.addEventListener("mousemove",this.handleHover,!0)}updateElementsInNVL(){this.currentOptions.drawShadowOnHover===!0&&this.nvlInstance.getNodes().length>0&&this.nvlInstance.updateElementsInGraph(this.updates.nodes,this.updates.relationships)}clearUpdates(){this.updates.nodes=[],this.updates.relationships=[]}unHoverCurrentElement(){if(this.currentHoveredElementId===void 0)return;const t={id:this.currentHoveredElementId,hovered:!1};this.currentHoveredElementIsNode===!0?this.updates.nodes.push(t):this.updates.relationships.push({...t})}destroy(){this.removeEventListener("mousemove",this.handleHover,!0)}}var qw={exports:{}},dx={exports:{}},Mue=dx.exports,C9;function Due(){return C9||(C9=1,(function(r,e){(function(t,n){r.exports=n()})(Mue,function(){function t(_,m,x,E,O){(function S(T,P,I,k,L){for(;k>I;){if(k-I>600){var B=k-I+1,j=P-I+1,z=Math.log(B),H=.5*Math.exp(2*z/3),q=.5*Math.sqrt(z*H*(B-H)/B)*(j-B/2<0?-1:1),W=Math.max(I,Math.floor(P-j*H/B+q)),$=Math.min(k,Math.floor(P+(B-j)*H/B+q));S(T,P,W,$,L)}var J=T[P],X=I,Z=k;for(n(T,I,P),L(T[k],J)>0&&n(T,I,k);X0;)Z--}L(T[I],J)===0?n(T,I,Z):n(T,++Z,k),Z<=P&&(I=Z+1),P<=Z&&(k=Z-1)}})(_,m,x||0,E||_.length-1,O||i)}function n(_,m,x){var E=_[m];_[m]=_[x],_[x]=E}function i(_,m){return _m?1:0}var a=function(_){_===void 0&&(_=9),this._maxEntries=Math.max(4,_),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(_,m,x){if(!x)return m.indexOf(_);for(var E=0;E=_.minX&&m.maxY>=_.minY}function y(_){return{children:_,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function b(_,m,x,E,O){for(var S=[m,x];S.length;)if(!((x=S.pop())-(m=S.pop())<=E)){var T=m+Math.ceil((x-m)/E/2)*E;t(_,T,m,x,O),S.push(m,T,T,x)}}return a.prototype.all=function(){return this._all(this.data,[])},a.prototype.search=function(_){var m=this.data,x=[];if(!g(_,m))return x;for(var E=this.toBBox,O=[];m;){for(var S=0;S=0&&O[m].children.length>this._maxEntries;)this._split(O,m),m--;this._adjustParentBBoxes(E,O,m)},a.prototype._split=function(_,m){var x=_[m],E=x.children.length,O=this._minEntries;this._chooseSplitAxis(x,O,E);var S=this._chooseSplitIndex(x,O,E),T=y(x.children.splice(S,x.children.length-S));T.height=x.height,T.leaf=x.leaf,s(x,this.toBBox),s(T,this.toBBox),m?_[m-1].children.push(T):this._splitRoot(x,T)},a.prototype._splitRoot=function(_,m){this.data=y([_,m]),this.data.height=_.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},a.prototype._chooseSplitIndex=function(_,m,x){for(var E,O,S,T,P,I,k,L=1/0,B=1/0,j=m;j<=x-m;j++){var z=u(_,0,j,this.toBBox),H=u(_,j,x,this.toBBox),q=(O=z,S=H,T=void 0,P=void 0,I=void 0,k=void 0,T=Math.max(O.minX,S.minX),P=Math.max(O.minY,S.minY),I=Math.min(O.maxX,S.maxX),k=Math.min(O.maxY,S.maxY),Math.max(0,I-T)*Math.max(0,k-P)),W=d(z)+d(H);q=m;L--){var B=_.children[L];l(T,_.leaf?O(B):B),P+=h(T)}return P},a.prototype._adjustParentBBoxes=function(_,m,x){for(var E=x;E>=0;E--)l(m[E],_)},a.prototype._condense=function(_){for(var m=_.length-1,x=void 0;m>=0;m--)_[m].children.length===0?m>0?(x=_[m-1].children).splice(x.indexOf(_[m]),1):this.clear():s(_[m],this.toBBox)},a})})(dx)),dx.exports}class kue{constructor(e=[],t=Iue){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,i=t[e];for(;e>0;){const a=e-1>>1,o=t[a];if(n(i,o)>=0)break;t[e]=o,e=a}t[e]=i}_down(e){const{data:t,compare:n}=this,i=this.length>>1,a=t[e];for(;e=0)break;t[e]=s,e=o}t[e]=a}}function Iue(r,e){return re?1:0}const Nue=Object.freeze(Object.defineProperty({__proto__:null,default:kue},Symbol.toStringTag,{value:"Module"})),Lue=eV(Nue);var ub={exports:{}},$P,A9;function jue(){return A9||(A9=1,$P=function(e,t,n,i){var a=e[0],o=e[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=t.length);for(var u=(i-n)/2,l=0,c=u-1;lo!=p>o&&a<(h-f)*(o-d)/(p-d)+f;g&&(s=!s)}return s}),$P}var KP,R9;function Bue(){return R9||(R9=1,KP=function(e,t,n,i){var a=e[0],o=e[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=t.length);for(var u=i-n,l=0,c=u-1;lo!=p>o&&a<(h-f)*(o-d)/(p-d)+f;g&&(s=!s)}return s}),KP}var P9;function Fue(){if(P9)return ub.exports;P9=1;var r=jue(),e=Bue();return ub.exports=function(n,i,a,o){return i.length>0&&Array.isArray(i[0])?e(n,i,a,o):r(n,i,a,o)},ub.exports.nested=e,ub.exports.flat=r,ub.exports}var Ab={exports:{}},Uue=Ab.exports,M9;function zue(){return M9||(M9=1,(function(r,e){(function(t,n){n(e)})(Uue,function(t){const i=33306690738754706e-32;function a(g,y,b,_,m){let x,E,O,S,T=y[0],P=_[0],I=0,k=0;P>T==P>-T?(x=T,T=y[++I]):(x=P,P=_[++k]);let L=0;if(IT==P>-T?(O=x-((E=T+x)-T),T=y[++I]):(O=x-((E=P+x)-P),P=_[++k]),x=E,O!==0&&(m[L++]=O);IT==P>-T?(O=x-((E=x+T)-(S=E-x))+(T-S),T=y[++I]):(O=x-((E=x+P)-(S=E-x))+(P-S),P=_[++k]),x=E,O!==0&&(m[L++]=O);for(;I0!=O>0)return S;const T=Math.abs(E+O);return Math.abs(S)>=s*T?S:-(function(P,I,k,L,B,j,z){let H,q,W,$,J,X,Z,ue,re,ne,le,ce,pe,fe,se,de,ge,Oe;const ke=P-B,De=k-B,Ne=I-j,Ce=L-j;J=(se=(ue=ke-(Z=(X=134217729*ke)-(X-ke)))*(ne=Ce-(re=(X=134217729*Ce)-(X-Ce)))-((fe=ke*Ce)-Z*re-ue*re-Z*ne))-(le=se-(ge=(ue=Ne-(Z=(X=134217729*Ne)-(X-Ne)))*(ne=De-(re=(X=134217729*De)-(X-De)))-((de=Ne*De)-Z*re-ue*re-Z*ne))),c[0]=se-(le+J)+(J-ge),J=(pe=fe-((ce=fe+le)-(J=ce-fe))+(le-J))-(le=pe-de),c[1]=pe-(le+J)+(J-de),J=(Oe=ce+le)-ce,c[2]=ce-(Oe-J)+(le-J),c[3]=Oe;let Y=(function(Me,Ie){let Ye=Ie[0];for(let ot=1;ot=Q||-Y>=Q||(H=P-(ke+(J=P-ke))+(J-B),W=k-(De+(J=k-De))+(J-B),q=I-(Ne+(J=I-Ne))+(J-j),$=L-(Ce+(J=L-Ce))+(J-j),H===0&&q===0&&W===0&&$===0)||(Q=l*z+i*Math.abs(Y),(Y+=ke*$+Ce*H-(Ne*W+De*q))>=Q||-Y>=Q))return Y;J=(se=(ue=H-(Z=(X=134217729*H)-(X-H)))*(ne=Ce-(re=(X=134217729*Ce)-(X-Ce)))-((fe=H*Ce)-Z*re-ue*re-Z*ne))-(le=se-(ge=(ue=q-(Z=(X=134217729*q)-(X-q)))*(ne=De-(re=(X=134217729*De)-(X-De)))-((de=q*De)-Z*re-ue*re-Z*ne))),p[0]=se-(le+J)+(J-ge),J=(pe=fe-((ce=fe+le)-(J=ce-fe))+(le-J))-(le=pe-de),p[1]=pe-(le+J)+(J-de),J=(Oe=ce+le)-ce,p[2]=ce-(Oe-J)+(le-J),p[3]=Oe;const ie=a(4,c,4,p,f);J=(se=(ue=ke-(Z=(X=134217729*ke)-(X-ke)))*(ne=$-(re=(X=134217729*$)-(X-$)))-((fe=ke*$)-Z*re-ue*re-Z*ne))-(le=se-(ge=(ue=Ne-(Z=(X=134217729*Ne)-(X-Ne)))*(ne=W-(re=(X=134217729*W)-(X-W)))-((de=Ne*W)-Z*re-ue*re-Z*ne))),p[0]=se-(le+J)+(J-ge),J=(pe=fe-((ce=fe+le)-(J=ce-fe))+(le-J))-(le=pe-de),p[1]=pe-(le+J)+(J-de),J=(Oe=ce+le)-ce,p[2]=ce-(Oe-J)+(le-J),p[3]=Oe;const we=a(ie,f,4,p,d);J=(se=(ue=H-(Z=(X=134217729*H)-(X-H)))*(ne=$-(re=(X=134217729*$)-(X-$)))-((fe=H*$)-Z*re-ue*re-Z*ne))-(le=se-(ge=(ue=q-(Z=(X=134217729*q)-(X-q)))*(ne=W-(re=(X=134217729*W)-(X-W)))-((de=q*W)-Z*re-ue*re-Z*ne))),p[0]=se-(le+J)+(J-ge),J=(pe=fe-((ce=fe+le)-(J=ce-fe))+(le-J))-(le=pe-de),p[1]=pe-(le+J)+(J-de),J=(Oe=ce+le)-ce,p[2]=ce-(Oe-J)+(le-J),p[3]=Oe;const Ee=a(we,d,4,p,h);return h[Ee-1]})(g,y,b,_,m,x,T)},t.orient2dfast=function(g,y,b,_,m,x){return(y-x)*(b-m)-(g-m)*(_-x)},Object.defineProperty(t,"__esModule",{value:!0})})})(Ab,Ab.exports)),Ab.exports}var D9;function que(){if(D9)return qw.exports;D9=1;var r=Due(),e=Lue,t=Fue(),n=zue().orient2d;e.default&&(e=e.default),qw.exports=i,qw.exports.default=i;function i(x,E,O){E=Math.max(0,E===void 0?2:E),O=O||0;var S=h(x),T=new r(16);T.toBBox=function(Z){return{minX:Z[0],minY:Z[1],maxX:Z[0],maxY:Z[1]}},T.compareMinX=function(Z,ue){return Z[0]-ue[0]},T.compareMinY=function(Z,ue){return Z[1]-ue[1]},T.load(x);for(var P=[],I=0,k;IP||k.push({node:j,dist:z})}for(;k.length&&!k.peek().node.children;){var H=k.pop(),q=H.node,W=y(q,E,O),$=y(q,S,T);if(H.dist=E.minX&&x[0]<=E.maxX&&x[1]>=E.minY&&x[1]<=E.maxY}function l(x,E,O){for(var S=Math.min(x[0],E[0]),T=Math.min(x[1],E[1]),P=Math.max(x[0],E[0]),I=Math.max(x[1],E[1]),k=O.search({minX:S,minY:T,maxX:P,maxY:I}),L=0;L0!=c(x,E,S)>0&&c(O,S,x)>0!=c(O,S,E)>0}function d(x){var E=x.p,O=x.next.p;return x.minX=Math.min(E[0],O[0]),x.minY=Math.min(E[1],O[1]),x.maxX=Math.max(E[0],O[0]),x.maxY=Math.max(E[1],O[1]),x}function h(x){for(var E=x[0],O=x[0],S=x[0],T=x[0],P=0;PS[0]&&(S=I),I[1]T[1]&&(T=I)}var k=[E,O,S,T],L=k.slice();for(P=0;P1?(S=O[0],T=O[1]):k>0&&(S+=P*k,T+=I*k)}return P=x[0]-S,I=x[1]-T,P*P+I*I}function b(x,E,O,S,T,P,I,k){var L=O-x,B=S-E,j=I-T,z=k-P,H=x-T,q=E-P,W=L*L+B*B,$=L*j+B*z,J=j*j+z*z,X=L*H+B*q,Z=j*H+z*q,ue=W*J-$*$,re,ne,le,ce,pe=ue,fe=ue;ue===0?(ne=0,pe=1,ce=Z,fe=J):(ne=$*Z-J*X,ce=W*Z-$*X,ne<0?(ne=0,ce=Z,fe=J):ne>pe&&(ne=pe,ce=Z+$,fe=J)),ce<0?(ce=0,-X<0?ne=0:-X>W?ne=pe:(ne=-X,pe=W)):ce>fe&&(ce=fe,-X+$<0?ne=0:-X+$>W?ne=pe:(ne=-X+$,pe=W)),re=ne===0?0:ne/pe,le=ce===0?0:ce/fe;var se=(1-re)*x+re*O,de=(1-re)*E+re*S,ge=(1-le)*T+le*I,Oe=(1-le)*P+le*k,ke=ge-se,De=Oe-de;return ke*ke+De*De}function _(x,E){return x[0]===E[0]?x[1]-E[1]:x[0]-E[0]}function m(x){x.sort(_);for(var E=[],O=0;O=2&&c(E[E.length-2],E[E.length-1],x[O])<=0;)E.pop();E.push(x[O])}for(var S=[],T=x.length-1;T>=0;T--){for(;S.length>=2&&c(S[S.length-2],S[S.length-1],x[T])<=0;)S.pop();S.push(x[T])}return S.pop(),E.pop(),E.concat(S)}return qw.exports}var Gue=que();const Vue=Bp(Gue),k9=10,Hue=500,Wue=(r,e,t,n)=>{const i=(n[1]-t[1])*(e[0]-r[0])-(n[0]-t[0])*(e[1]-r[1]);if(i===0)return!1;const a=((r[1]-t[1])*(n[0]-t[0])-(r[0]-t[0])*(n[1]-t[1]))/i,o=((t[0]-r[0])*(e[1]-r[1])-(t[1]-r[1])*(e[0]-r[0]))/i;return a>0&&a<1&&o>0&&o<1},Yue=r=>{for(let e=0;e{let n=!1;for(let i=0,a=t.length-1;ie!=f>e&&r<(c-u)*(e-l)/(f-l)+u&&(n=!n)}return n};class I9 extends Wp{constructor(t,n={selectOnRelease:!1}){super(t,n);Ft(this,"active",!1);Ft(this,"points",[]);Ft(this,"overlayRenderer");Ft(this,"startLasso",t=>{this.nvlInstance.getHits(t,["node"],{hitNodeMarginWidth:Ym}).nvlTargets.nodes.length>0?this.active=!1:(this.active=!0,this.points=[Ap(this.containerInstance,t)],this.toggleGlobalTextSelection(!1,this.endLasso),this.callCallbackIfRegistered("onLassoStarted",t),this.currentOptions.selectOnRelease===!0&&this.nvlInstance.deselectAll())});Ft(this,"handleMouseDown",t=>{t.button===0&&!this.active&&this.startLasso(t)});Ft(this,"handleDrag",t=>{if(this.active){const n=this.points[this.points.length-1];if(n===void 0)return;const i=Ap(this.containerInstance,t),a=Math.abs(n.x-i.x),o=Math.abs(n.y-i.y);(a>k9||o>k9)&&(this.points.push(i),this.overlayRenderer.drawLasso(this.points,!0,!1))}});Ft(this,"handleMouseUp",t=>{this.points.push(Ap(this.containerInstance,t)),this.endLasso(t)});Ft(this,"getLassoItems",t=>{const n=t.map(l=>j1(this.nvlInstance,l)),i=this.nvlInstance.getNodePositions(),a=new Set;for(const l of i)l.x===void 0||l.y===void 0||l.id===void 0||Xue(l.x,l.y,n)&&a.add(l.id);const o=this.nvlInstance.getRelationships(),s=[];for(const l of o)a.has(l.from)&&a.has(l.to)&&s.push(l);return{nodes:Array.from(a).map(l=>this.nvlInstance.getNodeById(l)),rels:s}});Ft(this,"endLasso",t=>{if(!this.active)return;this.active=!1,this.toggleGlobalTextSelection(!0,this.endLasso);const n=this.points.map(s=>[s.x,s.y]),a=(Yue(n)?Vue(n,2):n).map(s=>({x:s[0],y:s[1]})).filter(s=>s.x!==void 0&&s.y!==void 0);this.overlayRenderer.drawLasso(a,!1,!0),setTimeout(()=>this.overlayRenderer.clear(),Hue);const o=this.getLassoItems(a);this.currentOptions.selectOnRelease===!0&&this.nvlInstance.updateElementsInGraph(o.nodes.map(s=>({id:s.id,selected:!0})),o.rels.map(s=>({id:s.id,selected:!0}))),this.callCallbackIfRegistered("onLassoSelect",o,t)});this.overlayRenderer=new kG(this.containerInstance),this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("mousemove",this.handleDrag,!0),this.addEventListener("mouseup",this.handleMouseUp,!0)}destroy(){this.toggleGlobalTextSelection(!0,this.endLasso),this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("mousemove",this.handleDrag,!0),this.removeEventListener("mouseup",this.handleMouseUp,!0),this.overlayRenderer.destroy()}}class $ue extends Wp{constructor(t,n={excludeNodeMargin:!1}){super(t,n);Ft(this,"initialMousePosition",{x:0,y:0});Ft(this,"initialPan",{x:0,y:0});Ft(this,"targets",[]);Ft(this,"shouldPan",!1);Ft(this,"isPanning",!1);Ft(this,"updateTargets",(t,n)=>{this.targets=t,this.currentOptions.excludeNodeMargin=n});Ft(this,"handleMouseDown",t=>{const n=this.nvlInstance.getHits(t,ss.difference(["node","relationship"],this.targets),{hitNodeMarginWidth:this.currentOptions.excludeNodeMargin===!0?Ym:0});n.nvlTargets.nodes.length>0||n.nvlTargets.relationships.length>0?this.shouldPan=!1:(this.initialMousePosition={x:t.clientX,y:t.clientY},this.initialPan=this.nvlInstance.getPan(),this.shouldPan=!0)});Ft(this,"handleMouseMove",t=>{if(!this.shouldPan||t.buttons!==1)return;this.isPanning||(this.toggleGlobalTextSelection(!1,this.handleMouseUp),this.isPanning=!0);const n=this.nvlInstance.getScale(),{x:i,y:a}=this.initialPan,o=(t.clientX-this.initialMousePosition.x)/n*window.devicePixelRatio,s=(t.clientY-this.initialMousePosition.y)/n*window.devicePixelRatio,u=i-o,l=a-s;this.currentOptions.controlledPan!==!0&&this.nvlInstance.setPan(u,l),this.callCallbackIfRegistered("onPan",{x:u,y:l},t)});Ft(this,"handleMouseUp",()=>{this.isPanning&&this.toggleGlobalTextSelection(!0,this.handleMouseUp),this.resetPanState()});Ft(this,"resetPanState",()=>{this.isPanning=!1,this.shouldPan=!1,this.initialMousePosition={x:0,y:0},this.initialPan={x:0,y:0},this.targets=[]});this.addEventListener("mousedown",this.handleMouseDown,!0),this.addEventListener("mousemove",this.handleMouseMove,!0),this.addEventListener("mouseup",this.handleMouseUp,!0)}destroy(){this.toggleGlobalTextSelection(!0,this.handleMouseUp),this.removeEventListener("mousedown",this.handleMouseDown,!0),this.removeEventListener("mousemove",this.handleMouseMove,!0),this.removeEventListener("mouseup",this.handleMouseUp,!0)}}class N9 extends Wp{constructor(t,n={}){super(t,n);Ft(this,"zoomLimits");Ft(this,"handleWheel",t=>{t.preventDefault(),this.throttledZoom(t)});Ft(this,"throttledZoom",ss.throttle(t=>{const n=this.nvlInstance.getScale(),{x:i,y:a}=this.nvlInstance.getPan();this.zoomLimits=this.nvlInstance.getZoomLimits();const s=t.ctrlKey||t.metaKey?75:500,u=t.deltaY/s,l=n>=1?u*n:u,c=n-l*Math.min(1,n),f=c>this.zoomLimits.maxZoom||c{this.removeEventListener("wheel",this.handleWheel)});this.zoomLimits=t.getZoomLimits(),this.addEventListener("wheel",this.handleWheel)}}const av=r=>{var e;(e=r.current)==null||e.destroy(),r.current=null},Ha=(r,e,t,n,i,a)=>{me.useEffect(()=>{const o=i.current;ss.isNil(o)||ss.isNil(o.getContainer())||(t===!0||typeof t=="function"?(ss.isNil(e.current)&&(e.current=new r(o,a)),typeof t=="function"?e.current.updateCallback(n,t):ss.isNil(e.current.callbackMap[n])||e.current.removeCallback(n)):t===!1&&av(e))},[r,t,n,a,e,i])},Kue=({nvlRef:r,mouseEventCallbacks:e,interactionOptions:t})=>{const n=me.useRef(null),i=me.useRef(null),a=me.useRef(null),o=me.useRef(null),s=me.useRef(null),u=me.useRef(null),l=me.useRef(null),c=me.useRef(null);return Ha(Pue,n,e.onHover,"onHover",r,t),Ha(iv,i,e.onNodeClick,"onNodeClick",r,t),Ha(iv,i,e.onNodeDoubleClick,"onNodeDoubleClick",r,t),Ha(iv,i,e.onNodeRightClick,"onNodeRightClick",r,t),Ha(iv,i,e.onRelationshipClick,"onRelationshipClick",r,t),Ha(iv,i,e.onRelationshipDoubleClick,"onRelationshipDoubleClick",r,t),Ha(iv,i,e.onRelationshipRightClick,"onRelationshipRightClick",r,t),Ha(iv,i,e.onCanvasClick,"onCanvasClick",r,t),Ha(iv,i,e.onCanvasDoubleClick,"onCanvasDoubleClick",r,t),Ha(iv,i,e.onCanvasRightClick,"onCanvasRightClick",r,t),Ha($ue,a,e.onPan,"onPan",r,t),Ha(N9,o,e.onZoom,"onZoom",r,t),Ha(N9,o,e.onZoomAndPan,"onZoomAndPan",r,t),Ha(YP,s,e.onDrag,"onDrag",r,t),Ha(YP,s,e.onDragStart,"onDragStart",r,t),Ha(YP,s,e.onDragEnd,"onDragEnd",r,t),Ha(XP,u,e.onHoverNodeMargin,"onHoverNodeMargin",r,t),Ha(XP,u,e.onDrawStarted,"onDrawStarted",r,t),Ha(XP,u,e.onDrawEnded,"onDrawEnded",r,t),Ha(T9,l,e.onBoxStarted,"onBoxStarted",r,t),Ha(T9,l,e.onBoxSelect,"onBoxSelect",r,t),Ha(I9,c,e.onLassoStarted,"onLassoStarted",r,t),Ha(I9,c,e.onLassoSelect,"onLassoSelect",r,t),me.useEffect(()=>()=>{av(n),av(i),av(a),av(o),av(s),av(u),av(l),av(c)},[]),null},Zue={selectOnClick:!1,drawShadowOnHover:!0,selectOnRelease:!1,excludeNodeMargin:!0},Que=me.memo(me.forwardRef(({nodes:r,rels:e,layout:t,layoutOptions:n,onInitializationError:i,mouseEventCallbacks:a={},nvlCallbacks:o={},nvlOptions:s={},interactionOptions:u=Zue,...l},c)=>{const f=me.useRef(null),d=c??f,[h,p]=me.useState(!1),g=me.useCallback(()=>{p(!0)},[]),y=me.useCallback(_=>{p(!1),i&&i(_)},[i]),b=h&&d.current!==null;return Te.jsxs(Te.Fragment,{children:[Te.jsx(Aue,{ref:d,nodes:r,id:Eue,rels:e,nvlOptions:s,nvlCallbacks:{...o,onInitialization:()=>{o.onInitialization!==void 0&&o.onInitialization(),g()}},layout:t,layoutOptions:n,onInitializationError:y,...l}),b&&Te.jsx(Kue,{nvlRef:d,mouseEventCallbacks:a,interactionOptions:u})]})})),NG=me.createContext(void 0),Vl=()=>{const r=me.useContext(NG);if(!r)throw new Error("useGraphVisualizationContext must be used within a GraphVisualizationContext");return r};function Lg({state:r,onChange:e,isControlled:t}){const[n,i]=me.useState(r),a=me.useMemo(()=>t===!0?r:n,[t,r,n]),o=me.useCallback(s=>{const u=typeof s=="function"?s(a):s;t!==!0&&i(u),e==null||e(u)},[t,a,e]);return[a,o]}const L9=navigator.userAgent.includes("Mac"),LG=(r,e)=>{var t;for(const[n,i]of Object.entries(r)){const a=n.toLowerCase().includes(e),s=((t=i==null?void 0:i.stringified)!==null&&t!==void 0?t:"").toLowerCase().includes(e);if(a||s)return!0}return!1},Jue=(r,e)=>{const t=e.toLowerCase();return r.filter(n=>{var i;return!((i=n.labelsSorted)===null||i===void 0)&&i.some(a=>a.toLowerCase().includes(t))?!0:LG(n.properties,t)}).map(n=>n.id)},ele=(r,e)=>{const t=e.toLowerCase();return r.filter(n=>n.type.toLowerCase().includes(t)?!0:LG(n.properties,t)).map(n=>n.id)},a0=r=>{const{isActive:e,ariaLabel:t,isDisabled:n,description:i,onClick:a,onMouseDown:o,tooltipPlacement:s,className:u,style:l,htmlAttributes:c,children:f}=r;return Te.jsx(S2,{description:i??t,tooltipProps:{content:{style:{whiteSpace:"nowrap"}},root:{isPortaled:!1,placement:s}},size:"small",className:u,style:l,isActive:e,isDisabled:n,onClick:a,htmlAttributes:Object.assign({onMouseDown:o},c),children:f})},tle=r=>r instanceof HTMLElement?r.isContentEditable||["INPUT","TEXTAREA"].includes(r.tagName):!1,rle=r=>tle(r.target),a_={box:"B",lasso:"L",single:"S"},vE=r=>{const{setGesture:e}=Vl(),t=me.useCallback(n=>{if(!rle(n)&&e!==void 0){const i=n.key.toUpperCase();for(const a of r)i===a_[a]&&e(a)}},[r,e]);me.useEffect(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}),[t])},JD=" ",nle=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{gesture:i,setGesture:a,interactionMode:o}=Vl();return vE(["single"]),Te.jsx(a0,{isActive:i==="single",isDisabled:o!=="select",ariaLabel:"Individual Select Button",description:`Individual Select ${JD} ${a_.single}`,onClick:()=>{a==null||a("single")},tooltipPlacement:n??"right",htmlAttributes:Object.assign({"data-testid":"gesture-individual-select"},t),className:r,style:e,children:Te.jsx(l2,{"aria-label":"Individual Select"})})},ile=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{gesture:i,setGesture:a,interactionMode:o}=Vl();return vE(["box"]),Te.jsx(a0,{isDisabled:o!=="select"||a===void 0,isActive:i==="box",ariaLabel:"Box Select Button",description:`Box Select ${JD} ${a_.box}`,onClick:()=>{a==null||a("box")},tooltipPlacement:n??"right",htmlAttributes:Object.assign({"data-testid":"gesture-box-select"},t),className:r,style:e,children:Te.jsx(W9,{"aria-label":"Box select"})})},ale=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{gesture:i,setGesture:a,interactionMode:o}=Vl();return vE(["lasso"]),Te.jsx(a0,{isDisabled:o!=="select"||a===void 0,isActive:i==="lasso",ariaLabel:"Lasso Select Button",description:`Lasso Select ${JD} ${a_.lasso}`,onClick:()=>{a==null||a("lasso")},tooltipPlacement:n??"right",htmlAttributes:Object.assign({"data-testid":"gesture-lasso-select"},t),className:r,style:e,children:Te.jsx(H9,{"aria-label":"Lasso select"})})},jG=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{nvlInstance:i}=Vl(),a=me.useCallback(()=>{var o,s;(o=i.current)===null||o===void 0||o.setZoom(((s=i.current)===null||s===void 0?void 0:s.getScale())*1.3)},[i]);return Te.jsx(a0,{onClick:a,description:"Zoom in",className:r,style:e,htmlAttributes:t,tooltipPlacement:n??"left",children:Te.jsx(rH,{})})},BG=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{nvlInstance:i}=Vl(),a=me.useCallback(()=>{var o,s;(o=i.current)===null||o===void 0||o.setZoom(((s=i.current)===null||s===void 0?void 0:s.getScale())*.7)},[i]);return Te.jsx(a0,{onClick:a,description:"Zoom out",className:r,style:e,htmlAttributes:t,tooltipPlacement:n??"left",children:Te.jsx(JV,{})})},FG=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{nvlInstance:i}=Vl(),a=me.useCallback(()=>{const s=i.current;if(!s)return[];const u=s.getSelectedNodes(),l=s.getSelectedRelationships(),c=new Set;if(u.length||l.length)return u.forEach(h=>c.add(h.id)),l.forEach(h=>c.add(h.from).add(h.to)),[...c];const f=s.getNodes(),d=s.getRelationships();return f.forEach(h=>h.disabled!==!0&&c.add(h.id)),d.forEach(h=>h.disabled!==!0&&c.add(h.from).add(h.to)),c.size>0?[...c]:f.map(h=>h.id)},[i]),o=me.useCallback(()=>{var s;(s=i.current)===null||s===void 0||s.fit(a())},[a,i]);return Te.jsx(a0,{onClick:o,description:"Zoom to fit",className:r,style:e,htmlAttributes:t,tooltipPlacement:n??"left",children:Te.jsx(SV,{})})},UG=({className:r,htmlAttributes:e,style:t,tooltipPlacement:n})=>{const{sidepanel:i}=Vl();if(!i)throw new Error("Using the ToggleSidePanelButton requires having a sidepanel");const{isSidePanelOpen:a,setIsSidePanelOpen:o}=i;return Te.jsx(T2,{size:"small",onClick:()=>o==null?void 0:o(!a),isFloating:!0,description:a?"Close":"Open",isActive:a,tooltipProps:{content:{style:{whiteSpace:"nowrap"}},root:{isPortaled:!1,placement:n??"bottom",shouldCloseOnReferenceClick:!0}},className:Vn("ndl-graph-visualization-toggle-sidepanel",r),style:t,htmlAttributes:Object.assign({"aria-label":"Toggle node properties panel"},e),children:Te.jsx(RV,{className:"ndl-graph-visualization-toggle-icon"})})},ole=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n,open:i,setOpen:a,searchTerm:o,setSearchTerm:s,onSearch:u=()=>{}})=>{const l=me.useRef(null),[c,f]=Lg({isControlled:i!==void 0,onChange:a,state:i??!1}),[d,h]=Lg({isControlled:o!==void 0,onChange:s,state:o??""}),{nvlGraph:p}=Vl(),g=y=>{if(h(y),y===""){u(void 0,void 0);return}const b=Object.values(p.dataLookupTable.nodes),_=Object.values(p.dataLookupTable.relationships);u(Jue(b,y),ele(_,y))};return Te.jsx(Te.Fragment,{children:c?Te.jsx(JY,{ref:l,size:"small",leadingElement:Te.jsx(hk,{}),trailingElement:Te.jsx(S2,{onClick:()=>{var y;g(""),(y=l.current)===null||y===void 0||y.focus()},description:"Clear search",children:Te.jsx($9,{})}),placeholder:"Search...",value:d,onChange:y=>g(y.target.value),htmlAttributes:{autoFocus:!0,onBlur:()=>{d===""&&f(!1)}}}):Te.jsx(T2,{size:"small",isFloating:!0,onClick:()=>f(y=>!y),description:"Search",className:r,style:e,htmlAttributes:t,tooltipProps:{root:{placement:n??"bottom"}},children:Te.jsx(hk,{})})})},zG=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n})=>{const{nvlInstance:i}=Vl(),[a,o]=me.useState(!1),s=()=>o(!1),u=me.useRef(null);return Te.jsxs(Te.Fragment,{children:[Te.jsx(T2,{ref:u,size:"small",isFloating:!0,onClick:()=>o(l=>!l),description:"Download",tooltipProps:{root:{placement:n??"bottom"}},className:r,style:e,htmlAttributes:t,children:Te.jsx(IV,{})}),Te.jsx(Lm,{isOpen:a,onClose:s,anchorRef:u,children:Te.jsx(Lm.Item,{title:"Download as PNG",onClick:()=>{var l;(l=i.current)===null||l===void 0||l.saveToFile({}),s()}})})]})},sle={d3Force:{icon:Te.jsx(xV,{}),title:"Force-based layout"},hierarchical:{icon:Te.jsx(TV,{}),title:"Hierarchical layout"}},ule=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n,menuPlacement:i,layoutOptions:a=sle})=>{var o,s;const u=me.useRef(null),[l,c]=me.useState(!1),{layout:f,setLayout:d}=Vl();return Te.jsxs(Te.Fragment,{children:[Te.jsx(W7,{description:"Select layout",isOpen:l,onClick:()=>c(h=>!h),ref:u,className:r,style:e,htmlAttributes:t,size:"small",tooltipProps:{root:{placement:n??"bottom"}},children:(s=(o=a[f])===null||o===void 0?void 0:o.icon)!==null&&s!==void 0?s:Te.jsx(l2,{})}),Te.jsx(Lm,{isOpen:l,anchorRef:u,onClose:()=>c(!1),placement:i,children:Object.entries(a).map(([h,p])=>Te.jsx(Lm.RadioItem,{title:p.title,leadingVisual:p.icon,isChecked:h===f,onClick:()=>d==null?void 0:d(h)},h))})]})},lle={single:{icon:Te.jsx(l2,{}),title:"Individual"},box:{icon:Te.jsx(W9,{}),title:"Box"},lasso:{icon:Te.jsx(H9,{}),title:"Lasso"}},cle=({className:r,style:e,htmlAttributes:t,tooltipPlacement:n,menuPlacement:i,gestureOptions:a=lle})=>{var o,s;const u=me.useRef(null),[l,c]=me.useState(!1),{gesture:f,setGesture:d}=Vl();return vE(Object.keys(a)),Te.jsxs(Te.Fragment,{children:[Te.jsx(W7,{description:"Select gesture",isOpen:l,onClick:()=>c(h=>!h),ref:u,className:r,style:e,htmlAttributes:t,size:"small",tooltipProps:{root:{placement:n??"bottom"}},children:(s=(o=a[f])===null||o===void 0?void 0:o.icon)!==null&&s!==void 0?s:Te.jsx(l2,{})}),Te.jsx(Lm,{isOpen:l,anchorRef:u,onClose:()=>c(!1),placement:i,children:Object.entries(a).map(([h,p])=>Te.jsx(Lm.RadioItem,{title:p.title,leadingVisual:p.icon,trailingContent:Te.jsx(JX,{keys:[a_[h]]}),isChecked:h===f,onClick:()=>d==null?void 0:d(h)},h))})]})},ty=({sidepanel:r})=>{const{children:e,isSidePanelOpen:t,sidePanelWidth:n,onSidePanelResize:i,minWidth:a=230}=r;return t?Te.jsx(VX,{defaultSize:{height:"100%",width:n??400},className:"ndl-graph-resizable",minWidth:a,maxWidth:"66%",enable:{bottom:!1,bottomLeft:!1,bottomRight:!1,left:!0,right:!1,top:!1,topLeft:!1,topRight:!1},handleClasses:{left:"ndl-sidepanel-handle"},onResizeStop:(o,s,u)=>{i(u.getBoundingClientRect().width)},children:Te.jsx("div",{className:"ndl-graph-visualization-sidepanel-content",tabIndex:0,children:e})}):null},fle=({children:r})=>Te.jsx("div",{className:"ndl-graph-visualization-sidepanel-title ndl-grid-area-title",children:r});ty.Title=fle;const dle=({children:r})=>Te.jsx("section",{className:"ndl-grid-area-content",children:r});ty.Content=dle;var hx={exports:{}};/** * chroma.js - JavaScript library for color conversions * * Copyright (c) 2011-2019, Gregor Aisch @@ -1549,8 +1549,8 @@ * http://www.w3.org/TR/css3-color/#svg-color * * @preserve - */var hle=hx.exports,L9;function vle(){return L9||(L9=1,(function(r,e){(function(t,n){r.exports=n()})(hle,(function(){for(var t=function(K,oe,ye){return oe===void 0&&(oe=0),ye===void 0&&(ye=1),Kye?ye:K},n=t,i=function(K){K._clipped=!1,K._unclipped=K.slice(0);for(var oe=0;oe<=3;oe++)oe<3?((K[oe]<0||K[oe]>255)&&(K._clipped=!0),K[oe]=n(K[oe],0,255)):oe===3&&(K[oe]=n(K[oe],0,1));return K},a={},o=0,s=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];o=3?Array.prototype.slice.call(K):c(K[0])=="object"&&oe?oe.split("").filter(function(ye){return K[0][ye]!==void 0}).map(function(ye){return K[0][ye]}):K[0]},d=l,h=function(K){if(K.length<2)return null;var oe=K.length-1;return d(K[oe])=="string"?K[oe].toLowerCase():null},p=Math.PI,g={clip_rgb:i,limit:t,type:l,unpack:f,last:h,TWOPI:p*2,PITHIRD:p/3,DEG2RAD:p/180,RAD2DEG:180/p},y={format:{},autodetect:[]},b=g.last,_=g.clip_rgb,m=g.type,x=y,E=function(){for(var oe=[],ye=arguments.length;ye--;)oe[ye]=arguments[ye];var Pe=this;if(m(oe[0])==="object"&&oe[0].constructor&&oe[0].constructor===this.constructor)return oe[0];var ze=b(oe),Ge=!1;if(!ze){Ge=!0,x.sorted||(x.autodetect=x.autodetect.sort(function(dt,qt){return qt.p-dt.p}),x.sorted=!0);for(var Be=0,Ke=x.autodetect;Be4?K[4]:1;return Ge===1?[0,0,0,Be]:[ye>=1?0:255*(1-ye)*(1-Ge),Pe>=1?0:255*(1-Pe)*(1-Ge),ze>=1?0:255*(1-ze)*(1-Ge),Be]},z=j,H=T,q=O,W=y,$=g.unpack,J=g.type,X=L;q.prototype.cmyk=function(){return X(this._rgb)},H.cmyk=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(q,[null].concat(K,["cmyk"])))},W.format.cmyk=z,W.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=$(K,"cmyk"),J(K)==="array"&&K.length===4)return"cmyk"}});var Z=g.unpack,ue=g.last,re=function(K){return Math.round(K*100)/100},ne=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Z(K,"hsla"),Pe=ue(K)||"lsa";return ye[0]=re(ye[0]||0),ye[1]=re(ye[1]*100)+"%",ye[2]=re(ye[2]*100)+"%",Pe==="hsla"||ye.length>3&&ye[3]<1?(ye[3]=ye.length>3?ye[3]:1,Pe="hsla"):ye.length=3,Pe+"("+ye.join(",")+")"},le=ne,ce=g.unpack,pe=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=ce(K,"rgba");var ye=K[0],Pe=K[1],ze=K[2];ye/=255,Pe/=255,ze/=255;var Ge=Math.min(ye,Pe,ze),Be=Math.max(ye,Pe,ze),Ke=(Be+Ge)/2,Je,gt;return Be===Ge?(Je=0,gt=Number.NaN):Je=Ke<.5?(Be-Ge)/(Be+Ge):(Be-Ge)/(2-Be-Ge),ye==Be?gt=(Pe-ze)/(Be-Ge):Pe==Be?gt=2+(ze-ye)/(Be-Ge):ze==Be&&(gt=4+(ye-Pe)/(Be-Ge)),gt*=60,gt<0&&(gt+=360),K.length>3&&K[3]!==void 0?[gt,Je,Ke,K[3]]:[gt,Je,Ke]},fe=pe,se=g.unpack,de=g.last,ge=le,Oe=fe,ke=Math.round,De=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=se(K,"rgba"),Pe=de(K)||"rgb";return Pe.substr(0,3)=="hsl"?ge(Oe(ye),Pe):(ye[0]=ke(ye[0]),ye[1]=ke(ye[1]),ye[2]=ke(ye[2]),(Pe==="rgba"||ye.length>3&&ye[3]<1)&&(ye[3]=ye.length>3?ye[3]:1,Pe="rgba"),Pe+"("+ye.slice(0,Pe==="rgb"?3:4).join(",")+")")},Ne=De,Ce=g.unpack,Y=Math.round,Q=function(){for(var K,oe=[],ye=arguments.length;ye--;)oe[ye]=arguments[ye];oe=Ce(oe,"hsl");var Pe=oe[0],ze=oe[1],Ge=oe[2],Be,Ke,Je;if(ze===0)Be=Ke=Je=Ge*255;else{var gt=[0,0,0],dt=[0,0,0],qt=Ge<.5?Ge*(1+ze):Ge+ze-Ge*ze,Ct=2*Ge-qt,Jt=Pe/360;gt[0]=Jt+1/3,gt[1]=Jt,gt[2]=Jt-1/3;for(var Zt=0;Zt<3;Zt++)gt[Zt]<0&&(gt[Zt]+=1),gt[Zt]>1&&(gt[Zt]-=1),6*gt[Zt]<1?dt[Zt]=Ct+(qt-Ct)*6*gt[Zt]:2*gt[Zt]<1?dt[Zt]=qt:3*gt[Zt]<2?dt[Zt]=Ct+(qt-Ct)*(2/3-gt[Zt])*6:dt[Zt]=Ct;K=[Y(dt[0]*255),Y(dt[1]*255),Y(dt[2]*255)],Be=K[0],Ke=K[1],Je=K[2]}return oe.length>3?[Be,Ke,Je,oe[3]]:[Be,Ke,Je,1]},ie=Q,we=ie,Ee=y,Me=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Ie=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Ye=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,ot=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,mt=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,wt=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Mt=Math.round,Dt=function(K){K=K.toLowerCase().trim();var oe;if(Ee.format.named)try{return Ee.format.named(K)}catch{}if(oe=K.match(Me)){for(var ye=oe.slice(1,4),Pe=0;Pe<3;Pe++)ye[Pe]=+ye[Pe];return ye[3]=1,ye}if(oe=K.match(Ie)){for(var ze=oe.slice(1,5),Ge=0;Ge<4;Ge++)ze[Ge]=+ze[Ge];return ze}if(oe=K.match(Ye)){for(var Be=oe.slice(1,4),Ke=0;Ke<3;Ke++)Be[Ke]=Mt(Be[Ke]*2.55);return Be[3]=1,Be}if(oe=K.match(ot)){for(var Je=oe.slice(1,5),gt=0;gt<3;gt++)Je[gt]=Mt(Je[gt]*2.55);return Je[3]=+Je[3],Je}if(oe=K.match(mt)){var dt=oe.slice(1,4);dt[1]*=.01,dt[2]*=.01;var qt=we(dt);return qt[3]=1,qt}if(oe=K.match(wt)){var Ct=oe.slice(1,4);Ct[1]*=.01,Ct[2]*=.01;var Jt=we(Ct);return Jt[3]=+oe[4],Jt}};Dt.test=function(K){return Me.test(K)||Ie.test(K)||Ye.test(K)||ot.test(K)||mt.test(K)||wt.test(K)};var vt=Dt,tt=T,_e=O,Ue=y,Qe=g.type,Ze=Ne,nt=vt;_e.prototype.css=function(K){return Ze(this._rgb,K)},tt.css=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(_e,[null].concat(K,["css"])))},Ue.format.css=nt,Ue.autodetect.push({p:5,test:function(K){for(var oe=[],ye=arguments.length-1;ye-- >0;)oe[ye]=arguments[ye+1];if(!oe.length&&Qe(K)==="string"&&nt.test(K))return"css"}});var It=O,ct=T,Lt=y,Rt=g.unpack;Lt.format.gl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Rt(K,"rgba");return ye[0]*=255,ye[1]*=255,ye[2]*=255,ye},ct.gl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(It,[null].concat(K,["gl"])))},It.prototype.gl=function(){var K=this._rgb;return[K[0]/255,K[1]/255,K[2]/255,K[3]]};var jt=g.unpack,Yt=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=jt(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=Math.min(Pe,ze,Ge),Ke=Math.max(Pe,ze,Ge),Je=Ke-Be,gt=Je*100/255,dt=Be/(255-Je)*100,qt;return Je===0?qt=Number.NaN:(Pe===Ke&&(qt=(ze-Ge)/Je),ze===Ke&&(qt=2+(Ge-Pe)/Je),Ge===Ke&&(qt=4+(Pe-ze)/Je),qt*=60,qt<0&&(qt+=360)),[qt,gt,dt]},sr=Yt,Ut=g.unpack,Rr=Math.floor,Xt=function(){for(var K,oe,ye,Pe,ze,Ge,Be=[],Ke=arguments.length;Ke--;)Be[Ke]=arguments[Ke];Be=Ut(Be,"hcg");var Je=Be[0],gt=Be[1],dt=Be[2],qt,Ct,Jt;dt=dt*255;var Zt=gt*255;if(gt===0)qt=Ct=Jt=dt;else{Je===360&&(Je=0),Je>360&&(Je-=360),Je<0&&(Je+=360),Je/=60;var en=Rr(Je),Or=Je-en,$r=dt*(1-gt),vn=$r+Zt*(1-Or),ua=$r+Zt*Or,Bi=$r+Zt;switch(en){case 0:K=[Bi,ua,$r],qt=K[0],Ct=K[1],Jt=K[2];break;case 1:oe=[vn,Bi,$r],qt=oe[0],Ct=oe[1],Jt=oe[2];break;case 2:ye=[$r,Bi,ua],qt=ye[0],Ct=ye[1],Jt=ye[2];break;case 3:Pe=[$r,vn,Bi],qt=Pe[0],Ct=Pe[1],Jt=Pe[2];break;case 4:ze=[ua,$r,Bi],qt=ze[0],Ct=ze[1],Jt=ze[2];break;case 5:Ge=[Bi,$r,vn],qt=Ge[0],Ct=Ge[1],Jt=Ge[2];break}}return[qt,Ct,Jt,Be.length>3?Be[3]:1]},Vr=Xt,Br=g.unpack,mr=g.type,ur=T,sn=O,Fr=y,un=sr;sn.prototype.hcg=function(){return un(this._rgb)},ur.hcg=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(sn,[null].concat(K,["hcg"])))},Fr.format.hcg=Vr,Fr.autodetect.push({p:1,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=Br(K,"hcg"),mr(K)==="array"&&K.length===3)return"hcg"}});var bn=g.unpack,wn=g.last,_n=Math.round,xn=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=bn(K,"rgba"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=ye[3],Ke=wn(K)||"auto";Be===void 0&&(Be=1),Ke==="auto"&&(Ke=Be<1?"rgba":"rgb"),Pe=_n(Pe),ze=_n(ze),Ge=_n(Ge);var Je=Pe<<16|ze<<8|Ge,gt="000000"+Je.toString(16);gt=gt.substr(gt.length-6);var dt="0"+_n(Be*255).toString(16);switch(dt=dt.substr(dt.length-2),Ke.toLowerCase()){case"rgba":return"#"+gt+dt;case"argb":return"#"+dt+gt;default:return"#"+gt}},on=xn,Nn=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,fi=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,gn=function(K){if(K.match(Nn)){(K.length===4||K.length===7)&&(K=K.substr(1)),K.length===3&&(K=K.split(""),K=K[0]+K[0]+K[1]+K[1]+K[2]+K[2]);var oe=parseInt(K,16),ye=oe>>16,Pe=oe>>8&255,ze=oe&255;return[ye,Pe,ze,1]}if(K.match(fi)){(K.length===5||K.length===9)&&(K=K.substr(1)),K.length===4&&(K=K.split(""),K=K[0]+K[0]+K[1]+K[1]+K[2]+K[2]+K[3]+K[3]);var Ge=parseInt(K,16),Be=Ge>>24&255,Ke=Ge>>16&255,Je=Ge>>8&255,gt=Math.round((Ge&255)/255*100)/100;return[Be,Ke,Je,gt]}throw new Error("unknown hex color: "+K)},yn=gn,Jn=T,_i=O,Ir=g.type,pa=y,di=on;_i.prototype.hex=function(K){return di(this._rgb,K)},Jn.hex=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(_i,[null].concat(K,["hex"])))},pa.format.hex=yn,pa.autodetect.push({p:4,test:function(K){for(var oe=[],ye=arguments.length-1;ye-- >0;)oe[ye]=arguments[ye+1];if(!oe.length&&Ir(K)==="string"&&[3,4,5,6,7,8,9].indexOf(K.length)>=0)return"hex"}});var Bt=g.unpack,hr=g.TWOPI,ei=Math.min,Hn=Math.sqrt,ds=Math.acos,Na=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Bt(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2];Pe/=255,ze/=255,Ge/=255;var Be,Ke=ei(Pe,ze,Ge),Je=(Pe+ze+Ge)/3,gt=Je>0?1-Ke/Je:0;return gt===0?Be=NaN:(Be=(Pe-ze+(Pe-Ge))/2,Be/=Hn((Pe-ze)*(Pe-ze)+(Pe-Ge)*(ze-Ge)),Be=ds(Be),Ge>ze&&(Be=hr-Be),Be/=hr),[Be*360,gt,Je]},ki=Na,Wr=g.unpack,Nr=g.limit,na=g.TWOPI,Us=g.PITHIRD,vu=Math.cos,ga=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=Wr(K,"hsi");var ye=K[0],Pe=K[1],ze=K[2],Ge,Be,Ke;return isNaN(ye)&&(ye=0),isNaN(Pe)&&(Pe=0),ye>360&&(ye-=360),ye<0&&(ye+=360),ye/=360,ye<1/3?(Ke=(1-Pe)/3,Ge=(1+Pe*vu(na*ye)/vu(Us-na*ye))/3,Be=1-(Ke+Ge)):ye<2/3?(ye-=1/3,Ge=(1-Pe)/3,Be=(1+Pe*vu(na*ye)/vu(Us-na*ye))/3,Ke=1-(Ge+Be)):(ye-=2/3,Be=(1-Pe)/3,Ke=(1+Pe*vu(na*ye)/vu(Us-na*ye))/3,Ge=1-(Be+Ke)),Ge=Nr(ze*Ge*3),Be=Nr(ze*Be*3),Ke=Nr(ze*Ke*3),[Ge*255,Be*255,Ke*255,K.length>3?K[3]:1]},zs=ga,Ln=g.unpack,Ii=g.type,Ni=T,Pc=O,pu=y,ia=ki;Pc.prototype.hsi=function(){return ia(this._rgb)},Ni.hsi=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Pc,[null].concat(K,["hsi"])))},pu.format.hsi=zs,pu.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=Ln(K,"hsi"),Ii(K)==="array"&&K.length===3)return"hsi"}});var Hl=g.unpack,Md=g.type,Xa=T,Wl=O,Yl=y,nf=fe;Wl.prototype.hsl=function(){return nf(this._rgb)},Xa.hsl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Wl,[null].concat(K,["hsl"])))},Yl.format.hsl=ie,Yl.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=Hl(K,"hsl"),Md(K)==="array"&&K.length===3)return"hsl"}});var Wi=g.unpack,af=Math.min,La=Math.max,Go=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=Wi(K,"rgb");var ye=K[0],Pe=K[1],ze=K[2],Ge=af(ye,Pe,ze),Be=La(ye,Pe,ze),Ke=Be-Ge,Je,gt,dt;return dt=Be/255,Be===0?(Je=Number.NaN,gt=0):(gt=Ke/Be,ye===Be&&(Je=(Pe-ze)/Ke),Pe===Be&&(Je=2+(ze-ye)/Ke),ze===Be&&(Je=4+(ye-Pe)/Ke),Je*=60,Je<0&&(Je+=360)),[Je,gt,dt]},Gf=Go,hs=g.unpack,Mc=Math.floor,Xl=function(){for(var K,oe,ye,Pe,ze,Ge,Be=[],Ke=arguments.length;Ke--;)Be[Ke]=arguments[Ke];Be=hs(Be,"hsv");var Je=Be[0],gt=Be[1],dt=Be[2],qt,Ct,Jt;if(dt*=255,gt===0)qt=Ct=Jt=dt;else{Je===360&&(Je=0),Je>360&&(Je-=360),Je<0&&(Je+=360),Je/=60;var Zt=Mc(Je),en=Je-Zt,Or=dt*(1-gt),$r=dt*(1-gt*en),vn=dt*(1-gt*(1-en));switch(Zt){case 0:K=[dt,vn,Or],qt=K[0],Ct=K[1],Jt=K[2];break;case 1:oe=[$r,dt,Or],qt=oe[0],Ct=oe[1],Jt=oe[2];break;case 2:ye=[Or,dt,vn],qt=ye[0],Ct=ye[1],Jt=ye[2];break;case 3:Pe=[Or,$r,dt],qt=Pe[0],Ct=Pe[1],Jt=Pe[2];break;case 4:ze=[vn,Or,dt],qt=ze[0],Ct=ze[1],Jt=ze[2];break;case 5:Ge=[dt,Or,$r],qt=Ge[0],Ct=Ge[1],Jt=Ge[2];break}}return[qt,Ct,Jt,Be.length>3?Be[3]:1]},ti=Xl,qs=g.unpack,Ju=g.type,Gs=T,$l=O,of=y,gu=Gf;$l.prototype.hsv=function(){return gu(this._rgb)},Gs.hsv=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply($l,[null].concat(K,["hsv"])))},of.format.hsv=ti,of.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=qs(K,"hsv"),Ju(K)==="array"&&K.length===3)return"hsv"}});var _o={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},wo=_o,Vf=g.unpack,sf=Math.pow,yu=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Vf(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=Kl(Pe,ze,Ge),Ke=Be[0],Je=Be[1],gt=Be[2],dt=116*Je-16;return[dt<0?0:dt,500*(Ke-Je),200*(Je-gt)]},so=function(K){return(K/=255)<=.04045?K/12.92:sf((K+.055)/1.055,2.4)},el=function(K){return K>wo.t3?sf(K,1/3):K/wo.t2+wo.t0},Kl=function(K,oe,ye){K=so(K),oe=so(oe),ye=so(ye);var Pe=el((.4124564*K+.3575761*oe+.1804375*ye)/wo.Xn),ze=el((.2126729*K+.7151522*oe+.072175*ye)/wo.Yn),Ge=el((.0193339*K+.119192*oe+.9503041*ye)/wo.Zn);return[Pe,ze,Ge]},Vo=yu,vs=_o,jn=g.unpack,Zr=Math.pow,Zl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=jn(K,"lab");var ye=K[0],Pe=K[1],ze=K[2],Ge,Be,Ke,Je,gt,dt;return Be=(ye+16)/116,Ge=isNaN(Pe)?Be:Be+Pe/500,Ke=isNaN(ze)?Be:Be-ze/200,Be=vs.Yn*Dc(Be),Ge=vs.Xn*Dc(Ge),Ke=vs.Zn*Dc(Ke),Je=ps(3.2404542*Ge-1.5371385*Be-.4985314*Ke),gt=ps(-.969266*Ge+1.8760108*Be+.041556*Ke),dt=ps(.0556434*Ge-.2040259*Be+1.0572252*Ke),[Je,gt,dt,K.length>3?K[3]:1]},ps=function(K){return 255*(K<=.00304?12.92*K:1.055*Zr(K,1/2.4)-.055)},Dc=function(K){return K>vs.t1?K*K*K:vs.t2*(K-vs.t0)},Oa=Zl,tl=g.unpack,uf=g.type,Ql=T,rl=O,wi=y,Jl=Vo;rl.prototype.lab=function(){return Jl(this._rgb)},Ql.lab=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(rl,[null].concat(K,["lab"])))},wi.format.lab=Oa,wi.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=tl(K,"lab"),uf(K)==="array"&&K.length===3)return"lab"}});var aa=g.unpack,mu=g.RAD2DEG,lf=Math.sqrt,ya=Math.atan2,ma=Math.round,bu=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=aa(K,"lab"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=lf(ze*ze+Ge*Ge),Ke=(ya(Ge,ze)*mu+360)%360;return ma(Be*1e4)===0&&(Ke=Number.NaN),[Pe,Be,Ke]},uo=bu,Ho=g.unpack,st=Vo,xt=uo,pt=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Ho(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=st(Pe,ze,Ge),Ke=Be[0],Je=Be[1],gt=Be[2];return xt(Ke,Je,gt)},Wt=pt,ir=g.unpack,En=g.DEG2RAD,oa=Math.sin,ja=Math.cos,Kn=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=ir(K,"lch"),Pe=ye[0],ze=ye[1],Ge=ye[2];return isNaN(Ge)&&(Ge=0),Ge=Ge*En,[Pe,ja(Ge)*ze,oa(Ge)*ze]},ec=Kn,xi=g.unpack,ba=ec,cf=Oa,Ev=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=xi(K,"lch");var ye=K[0],Pe=K[1],ze=K[2],Ge=ba(ye,Pe,ze),Be=Ge[0],Ke=Ge[1],Je=Ge[2],gt=cf(Be,Ke,Je),dt=gt[0],qt=gt[1],Ct=gt[2];return[dt,qt,Ct,K.length>3?K[3]:1]},nl=Ev,Dd=g.unpack,kd=nl,Fn=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Dd(K,"hcl").reverse();return kd.apply(void 0,ye)},Sv=Fn,Hf=g.unpack,il=g.type,Ov=T,Wf=O,ff=y,Vs=Wt;Wf.prototype.lch=function(){return Vs(this._rgb)},Wf.prototype.hcl=function(){return Vs(this._rgb).reverse()},Ov.lch=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Wf,[null].concat(K,["lch"])))},Ov.hcl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Wf,[null].concat(K,["hcl"])))},ff.format.lch=nl,ff.format.hcl=Sv,["lch","hcl"].forEach(function(K){return ff.autodetect.push({p:2,test:function(){for(var oe=[],ye=arguments.length;ye--;)oe[ye]=arguments[ye];if(oe=Hf(oe,K),il(oe)==="array"&&oe.length===3)return K}})});var _u={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},kc=_u,Ah=O,tc=y,Yf=g.type,Ic=kc,wu=yn,xo=on;Ah.prototype.name=function(){for(var K=xo(this._rgb,"rgb"),oe=0,ye=Object.keys(Ic);oe0;)oe[ye]=arguments[ye+1];if(!oe.length&&Yf(K)==="string"&&Ic[K.toLowerCase()])return"named"}});var Nc=g.unpack,Hs=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Nc(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2];return(Pe<<16)+(ze<<8)+Ge},df=Hs,Rh=g.type,Xf=function(K){if(Rh(K)=="number"&&K>=0&&K<=16777215){var oe=K>>16,ye=K>>8&255,Pe=K&255;return[oe,ye,Pe,1]}throw new Error("unknown num color: "+K)},$f=Xf,Id=T,rc=O,Kf=y,Lc=g.type,Nd=df;rc.prototype.num=function(){return Nd(this._rgb)},Id.num=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(rc,[null].concat(K,["num"])))},Kf.format.num=$f,Kf.autodetect.push({p:5,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K.length===1&&Lc(K[0])==="number"&&K[0]>=0&&K[0]<=16777215)return"num"}});var Ph=T,hf=O,Li=y,hi=g.unpack,Zf=g.type,Tv=Math.round;hf.prototype.rgb=function(K){return K===void 0&&(K=!0),K===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Tv)},hf.prototype.rgba=function(K){return K===void 0&&(K=!0),this._rgb.slice(0,4).map(function(oe,ye){return ye<3?K===!1?oe:Tv(oe):oe})},Ph.rgb=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(hf,[null].concat(K,["rgb"])))},Li.format.rgb=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=hi(K,"rgba");return ye[3]===void 0&&(ye[3]=1),ye},Li.autodetect.push({p:3,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=hi(K,"rgba"),Zf(K)==="array"&&(K.length===3||K.length===4&&Zf(K[3])=="number"&&K[3]>=0&&K[3]<=1))return"rgb"}});var Qf=Math.log,Yp=function(K){var oe=K/100,ye,Pe,ze;return oe<66?(ye=255,Pe=oe<6?0:-155.25485562709179-.44596950469579133*(Pe=oe-2)+104.49216199393888*Qf(Pe),ze=oe<20?0:-254.76935184120902+.8274096064007395*(ze=oe-10)+115.67994401066147*Qf(ze)):(ye=351.97690566805693+.114206453784165*(ye=oe-55)-40.25366309332127*Qf(ye),Pe=325.4494125711974+.07943456536662342*(Pe=oe-50)-28.0852963507957*Qf(Pe),ze=255),[ye,Pe,ze,1]},al=Yp,ri=al,nc=g.unpack,jc=Math.round,vf=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];for(var ye=nc(K,"rgb"),Pe=ye[0],ze=ye[2],Ge=1e3,Be=4e4,Ke=.4,Je;Be-Ge>Ke;){Je=(Be+Ge)*.5;var gt=ri(Je);gt[2]/gt[0]>=ze/Pe?Be=Je:Ge=Je}return jc(Je)},pf=vf,Bc=T,Ws=O,ic=y,We=pf;Ws.prototype.temp=Ws.prototype.kelvin=Ws.prototype.temperature=function(){return We(this._rgb)},Bc.temp=Bc.kelvin=Bc.temperature=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Ws,[null].concat(K,["temp"])))},ic.format.temp=ic.format.kelvin=ic.format.temperature=al;var ft=g.unpack,ut=Math.cbrt,Kt=Math.pow,Pr=Math.sign,Qr=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=ft(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=[be(Pe/255),be(ze/255),be(Ge/255)],Ke=Be[0],Je=Be[1],gt=Be[2],dt=ut(.4122214708*Ke+.5363325363*Je+.0514459929*gt),qt=ut(.2119034982*Ke+.6806995451*Je+.1073969566*gt),Ct=ut(.0883024619*Ke+.2817188376*Je+.6299787005*gt);return[.2104542553*dt+.793617785*qt-.0040720468*Ct,1.9779984951*dt-2.428592205*qt+.4505937099*Ct,.0259040371*dt+.7827717662*qt-.808675766*Ct]},oi=Qr;function be(K){var oe=Math.abs(K);return oe<.04045?K/12.92:(Pr(K)||1)*Kt((oe+.055)/1.055,2.4)}var ol=g.unpack,Wo=Math.pow,Ei=Math.sign,nn=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=ol(K,"lab");var ye=K[0],Pe=K[1],ze=K[2],Ge=Wo(ye+.3963377774*Pe+.2158037573*ze,3),Be=Wo(ye-.1055613458*Pe-.0638541728*ze,3),Ke=Wo(ye-.0894841775*Pe-1.291485548*ze,3);return[255*$a(4.0767416621*Ge-3.3077115913*Be+.2309699292*Ke),255*$a(-1.2684380046*Ge+2.6097574011*Be-.3413193965*Ke),255*$a(-.0041960863*Ge-.7034186147*Be+1.707614701*Ke),K.length>3?K[3]:1]},sl=nn;function $a(K){var oe=Math.abs(K);return oe>.0031308?(Ei(K)||1)*(1.055*Wo(oe,1/2.4)-.055):K*12.92}var gs=g.unpack,xu=g.type,Jr=T,Ld=O,gf=y,Eo=oi;Ld.prototype.oklab=function(){return Eo(this._rgb)},Jr.oklab=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Ld,[null].concat(K,["oklab"])))},gf.format.oklab=sl,gf.autodetect.push({p:3,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=gs(K,"oklab"),xu(K)==="array"&&K.length===3)return"oklab"}});var jd=g.unpack,So=oi,Eu=uo,ul=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=jd(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=So(Pe,ze,Ge),Ke=Be[0],Je=Be[1],gt=Be[2];return Eu(Ke,Je,gt)},Ys=ul,ac=g.unpack,ys=ec,ms=sl,ll=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=ac(K,"lch");var ye=K[0],Pe=K[1],ze=K[2],Ge=ys(ye,Pe,ze),Be=Ge[0],Ke=Ge[1],Je=Ge[2],gt=ms(Be,Ke,Je),dt=gt[0],qt=gt[1],Ct=gt[2];return[dt,qt,Ct,K.length>3?K[3]:1]},Ka=ll,Su=g.unpack,Mh=g.type,Yi=T,Ba=O,Oo=y,Cv=Ys;Ba.prototype.oklch=function(){return Cv(this._rgb)},Yi.oklch=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Ba,[null].concat(K,["oklch"])))},Oo.format.oklch=Ka,Oo.autodetect.push({p:3,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=Su(K,"oklch"),Mh(K)==="array"&&K.length===3)return"oklch"}});var oc=O,sc=g.type;oc.prototype.alpha=function(K,oe){return oe===void 0&&(oe=!1),K!==void 0&&sc(K)==="number"?oe?(this._rgb[3]=K,this):new oc([this._rgb[0],this._rgb[1],this._rgb[2],K],"rgb"):this._rgb[3]};var ji=O;ji.prototype.clipped=function(){return this._rgb._clipped||!1};var Yo=O,yf=_o;Yo.prototype.darken=function(K){K===void 0&&(K=1);var oe=this,ye=oe.lab();return ye[0]-=yf.Kn*K,new Yo(ye,"lab").alpha(oe.alpha(),!0)},Yo.prototype.brighten=function(K){return K===void 0&&(K=1),this.darken(-K)},Yo.prototype.darker=Yo.prototype.darken,Yo.prototype.brighter=Yo.prototype.brighten;var Xs=O;Xs.prototype.get=function(K){var oe=K.split("."),ye=oe[0],Pe=oe[1],ze=this[ye]();if(Pe){var Ge=ye.indexOf(Pe)-(ye.substr(0,2)==="ok"?2:0);if(Ge>-1)return ze[Ge];throw new Error("unknown channel "+Pe+" in mode "+ye)}else return ze};var sa=O,cl=g.type,bs=Math.pow,Ri=1e-7,Sn=20;sa.prototype.luminance=function(K){if(K!==void 0&&cl(K)==="number"){if(K===0)return new sa([0,0,0,this._rgb[3]],"rgb");if(K===1)return new sa([255,255,255,this._rgb[3]],"rgb");var oe=this.luminance(),ye="rgb",Pe=Sn,ze=function(Be,Ke){var Je=Be.interpolate(Ke,.5,ye),gt=Je.luminance();return Math.abs(K-gt)K?ze(Be,Je):ze(Je,Ke)},Ge=(oe>K?ze(new sa([0,0,0]),this):ze(this,new sa([255,255,255]))).rgb();return new sa(Ge.concat([this._rgb[3]]))}return To.apply(void 0,this._rgb.slice(0,3))};var To=function(K,oe,ye){return K=Co(K),oe=Co(oe),ye=Co(ye),.2126*K+.7152*oe+.0722*ye},Co=function(K){return K/=255,K<=.03928?K/12.92:bs((K+.055)/1.055,2.4)},Xi={},Xo=O,Fa=g.type,Ua=Xi,fl=function(K,oe,ye){ye===void 0&&(ye=.5);for(var Pe=[],ze=arguments.length-3;ze-- >0;)Pe[ze]=arguments[ze+3];var Ge=Pe[0]||"lrgb";if(!Ua[Ge]&&!Pe.length&&(Ge=Object.keys(Ua)[0]),!Ua[Ge])throw new Error("interpolation mode "+Ge+" is not defined");return Fa(K)!=="object"&&(K=new Xo(K)),Fa(oe)!=="object"&&(oe=new Xo(oe)),Ua[Ge](K,oe,ye).alpha(K.alpha()+ye*(oe.alpha()-K.alpha()))},$s=O,uc=fl;$s.prototype.mix=$s.prototype.interpolate=function(K,oe){oe===void 0&&(oe=.5);for(var ye=[],Pe=arguments.length-2;Pe-- >0;)ye[Pe]=arguments[Pe+2];return uc.apply(void 0,[this,K,oe].concat(ye))};var lc=O;lc.prototype.premultiply=function(K){K===void 0&&(K=!1);var oe=this._rgb,ye=oe[3];return K?(this._rgb=[oe[0]*ye,oe[1]*ye,oe[2]*ye,ye],this):new lc([oe[0]*ye,oe[1]*ye,oe[2]*ye,ye],"rgb")};var Si=O,Rn=_o;Si.prototype.saturate=function(K){K===void 0&&(K=1);var oe=this,ye=oe.lch();return ye[1]+=Rn.Kn*K,ye[1]<0&&(ye[1]=0),new Si(ye,"lch").alpha(oe.alpha(),!0)},Si.prototype.desaturate=function(K){return K===void 0&&(K=1),this.saturate(-K)};var hn=O,Ou=g.type;hn.prototype.set=function(K,oe,ye){ye===void 0&&(ye=!1);var Pe=K.split("."),ze=Pe[0],Ge=Pe[1],Be=this[ze]();if(Ge){var Ke=ze.indexOf(Ge)-(ze.substr(0,2)==="ok"?2:0);if(Ke>-1){if(Ou(oe)=="string")switch(oe.charAt(0)){case"+":Be[Ke]+=+oe;break;case"-":Be[Ke]+=+oe;break;case"*":Be[Ke]*=+oe.substr(1);break;case"/":Be[Ke]/=+oe.substr(1);break;default:Be[Ke]=+oe}else if(Ou(oe)==="number")Be[Ke]=oe;else throw new Error("unsupported value for Color.set");var Je=new hn(Be,ze);return ye?(this._rgb=Je._rgb,this):Je}throw new Error("unknown channel "+Ge+" in mode "+ze)}else return Be};var $o=O,mf=function(K,oe,ye){var Pe=K._rgb,ze=oe._rgb;return new $o(Pe[0]+ye*(ze[0]-Pe[0]),Pe[1]+ye*(ze[1]-Pe[1]),Pe[2]+ye*(ze[2]-Pe[2]),"rgb")};Xi.rgb=mf;var dl=O,cc=Math.sqrt,_s=Math.pow,hl=function(K,oe,ye){var Pe=K._rgb,ze=Pe[0],Ge=Pe[1],Be=Pe[2],Ke=oe._rgb,Je=Ke[0],gt=Ke[1],dt=Ke[2];return new dl(cc(_s(ze,2)*(1-ye)+_s(Je,2)*ye),cc(_s(Ge,2)*(1-ye)+_s(gt,2)*ye),cc(_s(Be,2)*(1-ye)+_s(dt,2)*ye),"rgb")};Xi.lrgb=hl;var xe=O,Tu=function(K,oe,ye){var Pe=K.lab(),ze=oe.lab();return new xe(Pe[0]+ye*(ze[0]-Pe[0]),Pe[1]+ye*(ze[1]-Pe[1]),Pe[2]+ye*(ze[2]-Pe[2]),"lab")};Xi.lab=Tu;var Ks=O,ar=function(K,oe,ye,Pe){var ze,Ge,Be,Ke;Pe==="hsl"?(Be=K.hsl(),Ke=oe.hsl()):Pe==="hsv"?(Be=K.hsv(),Ke=oe.hsv()):Pe==="hcg"?(Be=K.hcg(),Ke=oe.hcg()):Pe==="hsi"?(Be=K.hsi(),Ke=oe.hsi()):Pe==="lch"||Pe==="hcl"?(Pe="hcl",Be=K.hcl(),Ke=oe.hcl()):Pe==="oklch"&&(Be=K.oklch().reverse(),Ke=oe.oklch().reverse());var Je,gt,dt,qt,Ct,Jt;(Pe.substr(0,1)==="h"||Pe==="oklch")&&(ze=Be,Je=ze[0],dt=ze[1],Ct=ze[2],Ge=Ke,gt=Ge[0],qt=Ge[1],Jt=Ge[2]);var Zt,en,Or,$r;return!isNaN(Je)&&!isNaN(gt)?(gt>Je&>-Je>180?$r=gt-(Je+360):gt180?$r=gt+360-Je:$r=gt-Je,en=Je+ye*$r):isNaN(Je)?isNaN(gt)?en=Number.NaN:(en=gt,(Ct==1||Ct==0)&&Pe!="hsv"&&(Zt=qt)):(en=Je,(Jt==1||Jt==0)&&Pe!="hsv"&&(Zt=dt)),Zt===void 0&&(Zt=dt+ye*(qt-dt)),Or=Ct+ye*(Jt-Ct),Pe==="oklch"?new Ks([Or,Zt,en],Pe):new Ks([en,Zt,Or],Pe)},Yr=ar,Cu=function(K,oe,ye){return Yr(K,oe,ye,"lch")};Xi.lch=Cu,Xi.hcl=Cu;var ws=O,Au=function(K,oe,ye){var Pe=K.num(),ze=oe.num();return new ws(Pe+ye*(ze-Pe),"num")};Xi.num=Au;var vl=ar,Dh=function(K,oe,ye){return vl(K,oe,ye,"hcg")};Xi.hcg=Dh;var za=ar,Bd=function(K,oe,ye){return za(K,oe,ye,"hsi")};Xi.hsi=Bd;var Ru=ar,_a=function(K,oe,ye){return Ru(K,oe,ye,"hsl")};Xi.hsl=_a;var Ko=ar,kh=function(K,oe,ye){return Ko(K,oe,ye,"hsv")};Xi.hsv=kh;var Zo=O,fc=function(K,oe,ye){var Pe=K.oklab(),ze=oe.oklab();return new Zo(Pe[0]+ye*(ze[0]-Pe[0]),Pe[1]+ye*(ze[1]-Pe[1]),Pe[2]+ye*(ze[2]-Pe[2]),"oklab")};Xi.oklab=fc;var Ih=ar,$i=function(K,oe,ye){return Ih(K,oe,ye,"oklch")};Xi.oklch=$i;var Za=O,bf=g.clip_rgb,pl=Math.pow,_f=Math.sqrt,Pu=Math.PI,gl=Math.cos,lo=Math.sin,Av=Math.atan2,dc=function(K,oe,ye){oe===void 0&&(oe="lrgb"),ye===void 0&&(ye=null);var Pe=K.length;ye||(ye=Array.from(new Array(Pe)).map(function(){return 1}));var ze=Pe/ye.reduce(function(en,Or){return en+Or});if(ye.forEach(function(en,Or){ye[Or]*=ze}),K=K.map(function(en){return new Za(en)}),oe==="lrgb")return Qo(K,ye);for(var Ge=K.shift(),Be=Ge.get(oe),Ke=[],Je=0,gt=0,dt=0;dt=360;)Zt-=360;Be[Jt]=Zt}else Be[Jt]=Be[Jt]/Ke[Jt];return Ct/=Pe,new Za(Be,oe).alpha(Ct>.99999?1:Ct,!0)},Qo=function(K,oe){for(var ye=K.length,Pe=[0,0,0,0],ze=0;ze.9999999&&(Pe[3]=1),new Za(bf(Pe))},Ta=T,Mu=g.type,Jf=Math.pow,ed=function(K){var oe="rgb",ye=Ta("#ccc"),Pe=0,ze=[0,1],Ge=[],Be=[0,0],Ke=!1,Je=[],gt=!1,dt=0,qt=1,Ct=!1,Jt={},Zt=!0,en=1,Or=function(kt){if(kt=kt||["#fff","#000"],kt&&Mu(kt)==="string"&&Ta.brewer&&Ta.brewer[kt.toLowerCase()]&&(kt=Ta.brewer[kt.toLowerCase()]),Mu(kt)==="array"){kt.length===1&&(kt=[kt[0],kt[0]]),kt=kt.slice(0);for(var gr=0;gr=Ke[tn];)tn++;return tn-1}return 0},vn=function(kt){return kt},ua=function(kt){return kt},Bi=function(kt,gr){var tn,yr;if(gr==null&&(gr=!1),isNaN(kt)||kt===null)return ye;if(gr)yr=kt;else if(Ke&&Ke.length>2){var Ji=$r(kt);yr=Ji/(Ke.length-2)}else qt!==dt?yr=(kt-dt)/(qt-dt):yr=1;yr=ua(yr),gr||(yr=vn(yr)),en!==1&&(yr=Jf(yr,en)),yr=Be[0]+yr*(1-Be[0]-Be[1]),yr=Math.min(1,Math.max(0,yr));var mn=Math.floor(yr*1e4);if(Zt&&Jt[mn])tn=Jt[mn];else{if(Mu(Je)==="array")for(var cn=0;cn=Mn&&cn===Ge.length-1){tn=Je[cn];break}if(yr>Mn&&yr2){var cn=kt.map(function(On,zn){return zn/(kt.length-1)}),Mn=kt.map(function(On){return(On-dt)/(qt-dt)});Mn.every(function(On,zn){return cn[zn]===On})||(ua=function(On){if(On<=0||On>=1)return On;for(var zn=0;On>=Mn[zn+1];)zn++;var rs=(On-Mn[zn])/(Mn[zn+1]-Mn[zn]),wl=cn[zn]+rs*(cn[zn+1]-cn[zn]);return wl})}}return ze=[dt,qt],ln},ln.mode=function(kt){return arguments.length?(oe=kt,Ja(),ln):oe},ln.range=function(kt,gr){return Or(kt),ln},ln.out=function(kt){return gt=kt,ln},ln.spread=function(kt){return arguments.length?(Pe=kt,ln):Pe},ln.correctLightness=function(kt){return kt==null&&(kt=!0),Ct=kt,Ja(),Ct?vn=function(gr){for(var tn=Bi(0,!0).lab()[0],yr=Bi(1,!0).lab()[0],Ji=tn>yr,mn=Bi(gr,!0).lab()[0],cn=tn+(yr-tn)*gr,Mn=mn-cn,On=0,zn=1,rs=20;Math.abs(Mn)>.01&&rs-- >0;)(function(){return Ji&&(Mn*=-1),Mn<0?(On=gr,gr+=(zn-gr)*.5):(zn=gr,gr+=(On-gr)*.5),mn=Bi(gr,!0).lab()[0],Mn=mn-cn})();return gr}:vn=function(gr){return gr},ln},ln.padding=function(kt){return kt!=null?(Mu(kt)==="number"&&(kt=[kt,kt]),Be=kt,ln):Be},ln.colors=function(kt,gr){arguments.length<2&&(gr="hex");var tn=[];if(arguments.length===0)tn=Je.slice(0);else if(kt===1)tn=[ln(.5)];else if(kt>1){var yr=ze[0],Ji=ze[1]-yr;tn=Fc(0,kt).map(function(zn){return ln(yr+zn/(kt-1)*Ji)})}else{K=[];var mn=[];if(Ke&&Ke.length>2)for(var cn=1,Mn=Ke.length,On=1<=Mn;On?cnMn;On?cn++:cn--)mn.push((Ke[cn-1]+Ke[cn])*.5);else mn=ze;tn=mn.map(function(zn){return ln(zn)})}return Ta[gr]&&(tn=tn.map(function(zn){return zn[gr]()})),tn},ln.cache=function(kt){return kt!=null?(Zt=kt,ln):Zt},ln.gamma=function(kt){return kt!=null?(en=kt,ln):en},ln.nodata=function(kt){return kt!=null?(ye=Ta(kt),ln):ye},ln};function Fc(K,oe,ye){for(var Pe=[],ze=KGe;ze?Be++:Be--)Pe.push(Be);return Pe}var yl=O,Ca=ed,Jo=function(K){for(var oe=[1,1],ye=1;ye=5){var gt,dt,qt;gt=K.map(function(Ct){return Ct.lab()}),qt=K.length-1,dt=Jo(qt),ze=function(Ct){var Jt=1-Ct,Zt=[0,1,2].map(function(en){return gt.reduce(function(Or,$r,vn){return Or+dt[vn]*Math.pow(Jt,qt-vn)*Math.pow(Ct,vn)*$r[en]},0)});return new yl(Zt,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return ze},ml=function(K){var oe=td(K);return oe.scale=function(){return Ca(oe)},oe},Ao=T,Ki=function(K,oe,ye){if(!Ki[ye])throw new Error("unknown blend mode "+ye);return Ki[ye](K,oe)},Du=function(K){return function(oe,ye){var Pe=Ao(ye).rgb(),ze=Ao(oe).rgb();return Ao.rgb(K(Pe,ze))}},co=function(K){return function(oe,ye){var Pe=[];return Pe[0]=K(oe[0],ye[0]),Pe[1]=K(oe[1],ye[1]),Pe[2]=K(oe[2],ye[2]),Pe}},ku=function(K){return K},Ro=function(K,oe){return K*oe/255},Uc=function(K,oe){return K>oe?oe:K},Po=function(K,oe){return K>oe?K:oe},Qa=function(K,oe){return 255*(1-(1-K/255)*(1-oe/255))},rd=function(K,oe){return oe<128?2*K*oe/255:255*(1-2*(1-K/255)*(1-oe/255))},Iu=function(K,oe){return 255*(1-(1-oe/255)/(K/255))},wf=function(K,oe){return K===255?255:(K=255*(oe/255)/(1-K/255),K>255?255:K)};Ki.normal=Du(co(ku)),Ki.multiply=Du(co(Ro)),Ki.screen=Du(co(Qa)),Ki.overlay=Du(co(rd)),Ki.darken=Du(co(Uc)),Ki.lighten=Du(co(Po)),Ki.dodge=Du(co(wf)),Ki.burn=Du(co(Iu));for(var es=Ki,fo=g.type,nd=g.clip_rgb,Nu=g.TWOPI,Zs=Math.pow,xf=Math.sin,xs=Math.cos,Zi=T,hc=function(K,oe,ye,Pe,ze){K===void 0&&(K=300),oe===void 0&&(oe=-1.5),ye===void 0&&(ye=1),Pe===void 0&&(Pe=1),ze===void 0&&(ze=[0,1]);var Ge=0,Be;fo(ze)==="array"?Be=ze[1]-ze[0]:(Be=0,ze=[ze,ze]);var Ke=function(Je){var gt=Nu*((K+120)/360+oe*Je),dt=Zs(ze[0]+Be*Je,Pe),qt=Ge!==0?ye[0]+Je*Ge:ye,Ct=qt*dt*(1-dt)/2,Jt=xs(gt),Zt=xf(gt),en=dt+Ct*(-.14861*Jt+1.78277*Zt),Or=dt+Ct*(-.29227*Jt-.90649*Zt),$r=dt+Ct*(1.97294*Jt);return Zi(nd([en*255,Or*255,$r*255,1]))};return Ke.start=function(Je){return Je==null?K:(K=Je,Ke)},Ke.rotations=function(Je){return Je==null?oe:(oe=Je,Ke)},Ke.gamma=function(Je){return Je==null?Pe:(Pe=Je,Ke)},Ke.hue=function(Je){return Je==null?ye:(ye=Je,fo(ye)==="array"?(Ge=ye[1]-ye[0],Ge===0&&(ye=ye[1])):Ge=0,Ke)},Ke.lightness=function(Je){return Je==null?ze:(fo(Je)==="array"?(ze=Je,Be=Je[1]-Je[0]):(ze=[Je,Je],Be=0),Ke)},Ke.scale=function(){return Zi.scale(Ke)},Ke.hue(ye),Ke},Ef=O,Es="0123456789abcdef",Ss=Math.floor,Qs=Math.random,Os=function(){for(var K="#",oe=0;oe<6;oe++)K+=Es.charAt(Ss(Qs()*16));return new Ef(K,"hex")},zc=l,Qi=Math.log,Lu=Math.pow,er=Math.floor,ho=Math.abs,Js=function(K,oe){oe===void 0&&(oe=null);var ye={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return zc(K)==="object"&&(K=Object.values(K)),K.forEach(function(Pe){oe&&zc(Pe)==="object"&&(Pe=Pe[oe]),Pe!=null&&!isNaN(Pe)&&(ye.values.push(Pe),ye.sum+=Pe,Peye.max&&(ye.max=Pe),ye.count+=1)}),ye.domain=[ye.min,ye.max],ye.limits=function(Pe,ze){return Ts(ye,Pe,ze)},ye},Ts=function(K,oe,ye){oe===void 0&&(oe="equal"),ye===void 0&&(ye=7),zc(K)=="array"&&(K=Js(K));var Pe=K.min,ze=K.max,Ge=K.values.sort(function(sd,Tf){return sd-Tf});if(ye===1)return[Pe,ze];var Be=[];if(oe.substr(0,1)==="c"&&(Be.push(Pe),Be.push(ze)),oe.substr(0,1)==="e"){Be.push(Pe);for(var Ke=1;Ke 0");var Je=Math.LOG10E*Qi(Pe),gt=Math.LOG10E*Qi(ze);Be.push(Pe);for(var dt=1;dt200&&(ua=!1)}for(var Bu={},mc=0;mcPe?(ye+.05)/(Pe+.05):(Pe+.05)/(ye+.05)},Pi=O,ts=Math.sqrt,Pn=Math.pow,Sr=Math.min,Xr=Math.max,vi=Math.atan2,vc=Math.abs,bl=Math.cos,Cs=Math.sin,ad=Math.exp,pc=Math.PI,_l=function(K,oe,ye,Pe,ze){ye===void 0&&(ye=1),Pe===void 0&&(Pe=1),ze===void 0&&(ze=1);var Ge=function(wa){return 360*wa/(2*pc)},Be=function(wa){return 2*pc*wa/360};K=new Pi(K),oe=new Pi(oe);var Ke=Array.from(K.lab()),Je=Ke[0],gt=Ke[1],dt=Ke[2],qt=Array.from(oe.lab()),Ct=qt[0],Jt=qt[1],Zt=qt[2],en=(Je+Ct)/2,Or=ts(Pn(gt,2)+Pn(dt,2)),$r=ts(Pn(Jt,2)+Pn(Zt,2)),vn=(Or+$r)/2,ua=.5*(1-ts(Pn(vn,7)/(Pn(vn,7)+Pn(25,7)))),Bi=gt*(1+ua),Ja=Jt*(1+ua),ln=ts(Pn(Bi,2)+Pn(dt,2)),kt=ts(Pn(Ja,2)+Pn(Zt,2)),gr=(ln+kt)/2,tn=Ge(vi(dt,Bi)),yr=Ge(vi(Zt,Ja)),Ji=tn>=0?tn:tn+360,mn=yr>=0?yr:yr+360,cn=vc(Ji-mn)>180?(Ji+mn+360)/2:(Ji+mn)/2,Mn=1-.17*bl(Be(cn-30))+.24*bl(Be(2*cn))+.32*bl(Be(3*cn+6))-.2*bl(Be(4*cn-63)),On=mn-Ji;On=vc(On)<=180?On:mn<=Ji?On+360:On-360,On=2*ts(ln*kt)*Cs(Be(On)/2);var zn=Ct-Je,rs=kt-ln,wl=1+.015*Pn(en-50,2)/ts(20+Pn(en-50,2)),Bu=1+.045*gr,mc=1+.015*gr*Mn,Fu=30*ad(-Pn((cn-275)/25,2)),As=2*ts(Pn(gr,7)/(Pn(gr,7)+Pn(25,7))),xl=-As*Cs(2*Be(Fu)),Fi=ts(Pn(zn/(ye*wl),2)+Pn(rs/(Pe*Bu),2)+Pn(On/(ze*mc),2)+xl*(rs/(Pe*Bu))*(On/(ze*mc)));return Xr(0,Sr(100,Fi))},Nh=O,si=function(K,oe,ye){ye===void 0&&(ye="lab"),K=new Nh(K),oe=new Nh(oe);var Pe=K.get(ye),ze=oe.get(ye),Ge=0;for(var Be in Pe){var Ke=(Pe[Be]||0)-(ze[Be]||0);Ge+=Ke*Ke}return Math.sqrt(Ge)},od=O,gc=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];try{return new(Function.prototype.bind.apply(od,[null].concat(K))),!0}catch{return!1}},Sf=T,qc=ed,Rv={cool:function(){return qc([Sf.hsl(180,1,.9),Sf.hsl(250,.7,.4)])},hot:function(){return qc(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ju={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},yc=0,Of=Object.keys(ju);yc`#${[parseInt(r.substring(1,3),16),parseInt(r.substring(3,5),16),parseInt(r.substring(5,7),16)].map(t=>{let n=parseInt((t*(100+e)/100).toString(),10);const i=(n=n<255?n:255).toString(16);return i.length===1?`0${i}`:i}).join("")}`;function GG(r){let e=0,t=0;const n=r.length;for(;t{const s=qG.contrast(r,o);s>a&&(i=o,a=s)}),ac%(d-f)+f;return qG.oklch(l(o,n,t)/100,l(s,a,i)/100,l(u,0,360)).hex()}function mle(r,e){const t=yle(r,e),n=gle(t,-20),i=VG(t,["#2A2C34","#FFFFFF"]);return{backgroundColor:t,borderColor:n,textColor:i}}const QP=Xu.palette.neutral[40],HG=Xu.palette.neutral[40],JP=(r="",e="")=>r.toLowerCase().localeCompare(e.toLowerCase());function ble(r){var e;const[t]=r;if(t===void 0)return HG;const n={};for(const o of r)n[o]=((e=n[o])!==null&&e!==void 0?e:0)+1;let i=0,a=t;for(const[o,s]of Object.entries(n))s>i&&(i=s,a=o);return a}function j9(r){return Object.entries(r).reduce((e,[t,n])=>(e[t]={mostCommonColor:ble(n),totalCount:n.length},e),{})}const _le=[/^name$/i,/^title$/i,/^label$/i,/name$/i,/description$/i,/^.+/];function wle(r){const e=r.filter(n=>n.type==="property").map(n=>n.captionKey);for(const n of _le){const i=e.find(a=>n.test(a));if(i!==void 0)return{captionKey:i,type:"property"}}const t=r.find(n=>n.type==="type");return t||r.find(n=>n.type==="id")}const xle=r=>{const e=Object.keys(r.properties).map(i=>({captionKey:i,type:"property"}));e.push({type:"id"},{type:"type"});const t=wle(e);if((t==null?void 0:t.type)==="property"){const i=r.properties[t.captionKey];if(i!==void 0)return i.type==="string"?[{value:i.stringified.slice(1,-1)}]:[{value:i.stringified}]}const[n]=r.labels;return(t==null?void 0:t.type)==="type"&&n!==void 0?[{value:n}]:[{value:r.id}]};function Ele(r,e){const t={},n={},i={},a={},o=r.map(f=>{var d;const[h]=f.labels,p=Object.assign(Object.assign({captions:xle(f),color:(d=f.color)!==null&&d!==void 0?d:h===void 0?HG:mle(h).backgroundColor},f),{labels:void 0,properties:void 0});return i[f.id]={color:p.color,id:f.id,labelsSorted:[...f.labels].sort(JP),properties:f.properties},f.labels.forEach(g=>{var y;t[g]=[...(y=t[g])!==null&&y!==void 0?y:[],p.color]}),p}),s=e.map(f=>{var d,h,p;return a[f.id]={color:(d=f.color)!==null&&d!==void 0?d:QP,id:f.id,properties:f.properties,type:f.type},n[f.type]=[...(h=n[f.type])!==null&&h!==void 0?h:[],(p=f.color)!==null&&p!==void 0?p:QP],Object.assign(Object.assign({captions:[{value:f.type}],color:QP},f),{properties:void 0,type:void 0})}),u=j9(t),l=j9(n);return{dataLookupTable:{labelMetaData:u,labels:Object.keys(u).sort((f,d)=>JP(f,d)),nodes:i,relationships:a,typeMetaData:l,types:Object.keys(l).sort((f,d)=>JP(f,d))},nodes:o,rels:s}}const B9=/(?:https?|s?ftp|bolt):\/\/(?:(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))?\))+(?:\((?:[^\s()<>]+|(?:\(?:[^\s()<>]+\)))?\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))?/gi,Sle=({text:r})=>{var e;const t=r??"",n=(e=t.match(B9))!==null&&e!==void 0?e:[];return Te.jsx(Te.Fragment,{children:t.split(B9).map((i,a)=>Te.jsxs(ao.Fragment,{children:[i,n[a]&&Te.jsx("a",{href:n[a],target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:n[a]})]},`clickable-url-${a}`))})},Ole=ao.memo(Sle),Tle="…",Cle=900,Ale=150,Rle=300,Ple=({value:r,width:e,type:t})=>{const[n,i]=me.useState(!1),a=e>Cle?Rle:Ale,o=()=>{i(!0)};let s=n?r:r.slice(0,a);const u=s.length!==r.length;return s+=u?Tle:"",Te.jsxs(Te.Fragment,{children:[t.startsWith("Array")&&"[",Te.jsx(Ole,{text:s}),u&&Te.jsx("button",{type:"button",onClick:o,className:"ndl-properties-show-all-button",children:" Show all"}),t.startsWith("Array")&&"]"]})},Mle=({properties:r,paneWidth:e})=>Te.jsxs("div",{className:"ndl-graph-visualization-properties-table",children:[Te.jsxs("div",{className:"ndl-properties-header",children:[Te.jsx(Ed,{variant:"body-small",className:"ndl-properties-header-key",children:"Key"}),Te.jsx(Ed,{variant:"body-small",children:"Value"})]}),Object.entries(r).map(([t,{stringified:n,type:i}])=>Te.jsxs("div",{className:"ndl-properties-row",children:[Te.jsx(Ed,{variant:"body-small",className:"ndl-properties-key",children:t}),Te.jsx("div",{className:"ndl-properties-value",children:Te.jsx(Ple,{value:n,width:e,type:i})}),Te.jsx("div",{className:"ndl-properties-clipboard-button",children:Te.jsx(q7,{textToCopy:`${t}: ${n}`,size:"small",tooltipProps:{placement:"left",type:"simple"}})})]},t))]}),Dle=({paneWidth:r=400})=>{const{selected:e,nvlGraph:t}=Vl(),n=me.useMemo(()=>{const[s]=e.nodeIds;if(s!==void 0)return t.dataLookupTable.nodes[s]},[e,t]),i=me.useMemo(()=>{const[s]=e.relationshipIds;if(s!==void 0)return t.dataLookupTable.relationships[s]},[e,t]),a=me.useMemo(()=>{if(n)return{data:n,dataType:"node"};if(i)return{data:i,dataType:"relationship"}},[n,i]);if(a===void 0)return null;const o=[{key:"",type:"String",value:`${a.data.id}`},...Object.keys(a.data.properties).map(s=>({key:s,type:a.data.properties[s].type,value:a.data.properties[s].stringified}))];return Te.jsxs(Te.Fragment,{children:[Te.jsxs(ty.Title,{children:[Te.jsx("h6",{className:"ndl-details-title",children:a.dataType==="node"?"Node details":"Relationship details"}),Te.jsx(q7,{textToCopy:o.map(s=>`${s.key}: ${s.value}`).join(` -`),size:"small"})]}),Te.jsxs(ty.Content,{children:[Te.jsx("div",{className:"ndl-details-tags",children:a.dataType==="node"?a.data.labelsSorted.map(s=>{var u,l;return Te.jsx(Ax,{type:"node",color:(l=(u=t.dataLookupTable.labelMetaData[s])===null||u===void 0?void 0:u.mostCommonColor)!==null&&l!==void 0?l:"",as:"span",htmlAttributes:{tabIndex:0},children:s},s)}):Te.jsx(Ax,{type:"relationship",color:a.data.color,as:"span",htmlAttributes:{tabIndex:0},children:a.data.type},a.data.type)}),Te.jsx("div",{className:"ndl-details-divider"}),Te.jsx(Mle,{properties:a.data.properties,paneWidth:r})]})]})},kle=({children:r})=>{const[e,t]=me.useState(0),n=me.useRef(null),i=u=>{var l,c;const f=(c=(l=n.current)===null||l===void 0?void 0:l.children[u])===null||c===void 0?void 0:c.children[0];f instanceof HTMLElement&&f.focus()},a=me.useMemo(()=>ao.Children.count(r),[r]),o=me.useCallback(u=>{u>=a?t(a-1):t(Math.max(0,u))},[a,t]),s=u=>{let l=e;u.key==="ArrowRight"||u.key==="ArrowDown"?(l=(e+1)%ao.Children.count(r),o(l)):(u.key==="ArrowLeft"||u.key==="ArrowUp")&&(l=(e-1+ao.Children.count(r))%ao.Children.count(r),o(l)),i(l)};return Te.jsx("ul",{onKeyDown:u=>s(u),ref:n,style:{all:"inherit",listStyleType:"none"},children:ao.Children.map(r,(u,l)=>{if(!ao.isValidElement(u))return null;const c=me.cloneElement(u,{tabIndex:e===l?0:-1});return Te.jsx("li",{children:c},l)})})},Ile=r=>typeof r=="function";function F9({initiallyShown:r,children:e,isButtonGroup:t}){const[n,i]=me.useState(!1),a=()=>i(f=>!f),o=e.length,s=o>r,u=n?o:r,l=o-u;if(o===0)return null;const c=e.slice(0,u).map(f=>Ile(f)?f():f);return Te.jsxs(Te.Fragment,{children:[t===!0?Te.jsx(kle,{children:c}):Te.jsx("div",{style:{all:"inherit"},children:c}),s&&Te.jsx(iX,{size:"small",onClick:a,children:n?"Show less":`Show all (${l} more)`})]})}const U9=25,Nle=()=>{const{nvlGraph:r}=Vl();return Te.jsxs(Te.Fragment,{children:[Te.jsx(ty.Title,{children:Te.jsx(Ed,{variant:"title-4",children:"Results overview"})}),Te.jsx(ty.Content,{children:Te.jsxs("div",{className:"ndl-graph-visualization-overview-panel",children:[r.dataLookupTable.labels.length>0&&Te.jsxs("div",{className:"ndl-overview-section",children:[Te.jsx("div",{className:"ndl-overview-header",children:Te.jsxs("span",{children:["Nodes",` (${r.nodes.length.toLocaleString()})`]})}),Te.jsx("div",{className:"ndl-overview-items",children:Te.jsx(F9,{initiallyShown:U9,isButtonGroup:!0,children:r.dataLookupTable.labels.map(e=>function(){var n,i,a,o;return Te.jsxs(Ax,{type:"node",htmlAttributes:{tabIndex:-1},color:(i=(n=r.dataLookupTable.labelMetaData[e])===null||n===void 0?void 0:n.mostCommonColor)!==null&&i!==void 0?i:"",as:"span",children:[e," (",(o=(a=r.dataLookupTable.labelMetaData[e])===null||a===void 0?void 0:a.totalCount)!==null&&o!==void 0?o:0,")"]},e)})})})]}),r.dataLookupTable.types.length>0&&Te.jsxs("div",{className:"ndl-overview-relationships-section",children:[Te.jsxs("span",{className:"ndl-overview-relationships-title",children:["Relationships",` (${r.rels.length.toLocaleString()})`]}),Te.jsx("div",{className:"ndl-overview-items",children:Te.jsx(F9,{initiallyShown:U9,isButtonGroup:!0,children:r.dataLookupTable.types.map(e=>{var t,n,i,a;return Te.jsxs(Ax,{type:"relationship",htmlAttributes:{tabIndex:-1},color:(n=(t=r.dataLookupTable.typeMetaData[e])===null||t===void 0?void 0:t.mostCommonColor)!==null&&n!==void 0?n:"",as:"span",children:[e," (",(a=(i=r.dataLookupTable.typeMetaData[e])===null||i===void 0?void 0:i.totalCount)!==null&&a!==void 0?a:0,")"]},e)})})})]})]})})]})},Lle=()=>{const{selected:r}=Vl();return me.useMemo(()=>r.nodeIds.length>0||r.relationshipIds.length>0,[r])?Te.jsx(Dle,{}):Te.jsx(Nle,{})},Gw=r=>!N9&&r.ctrlKey||N9&&r.metaKey,lb=r=>r.target instanceof HTMLElement?r.target.isContentEditable||["INPUT","TEXTAREA"].includes(r.target.tagName):!1;function jle({selected:r,setSelected:e,gesture:t,interactionMode:n,setInteractionMode:i,mouseEventCallbacks:a,nvlGraph:o,highlightedNodeIds:s,highlightedRelationshipIds:u}){const l=me.useCallback(De=>{n==="select"&&De.key===" "&&i("pan")},[n,i]),c=me.useCallback(De=>{n==="pan"&&De.key===" "&&i("select")},[n,i]);me.useEffect(()=>(document.addEventListener("keydown",l),document.addEventListener("keyup",c),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",c)}),[l,c]);const{onBoxSelect:f,onLassoSelect:d,onLassoStarted:h,onBoxStarted:p,onPan:g=!0,onHover:y,onHoverNodeMargin:b,onNodeClick:_,onRelationshipClick:m,onDragStart:x,onDragEnd:E,onDrawEnded:O,onDrawStarted:S,onCanvasClick:T,onNodeDoubleClick:P,onRelationshipDoubleClick:I}=a,k=me.useCallback(De=>{lb(De)||(e({nodeIds:[],relationshipIds:[]}),typeof T=="function"&&T(De))},[T,e]),L=me.useCallback((De,Ne)=>{i("drag");const Ce=De.map(Y=>Y.id);if(r.nodeIds.length===0||Gw(Ne)){e({nodeIds:Ce,relationshipIds:r.relationshipIds});return}e({nodeIds:Ce,relationshipIds:r.relationshipIds}),typeof x=="function"&&x(De,Ne)},[e,x,r,i]),B=me.useCallback((De,Ne)=>{typeof E=="function"&&E(De,Ne),i("select")},[E,i]),j=me.useCallback(De=>{typeof S=="function"&&S(De)},[S]),z=me.useCallback((De,Ne,Ce)=>{typeof O=="function"&&O(De,Ne,Ce)},[O]),H=me.useCallback((De,Ne,Ce)=>{if(!lb(Ce)){if(Gw(Ce))if(r.nodeIds.includes(De.id)){const Q=r.nodeIds.filter(ie=>ie!==De.id);e({nodeIds:Q,relationshipIds:r.relationshipIds})}else{const Q=[...r.nodeIds,De.id];e({nodeIds:Q,relationshipIds:r.relationshipIds})}else e({nodeIds:[De.id],relationshipIds:[]});typeof _=="function"&&_(De,Ne,Ce)}},[e,r,_]),q=me.useCallback((De,Ne,Ce)=>{if(!lb(Ce)){if(Gw(Ce))if(r.relationshipIds.includes(De.id)){const Q=r.relationshipIds.filter(ie=>ie!==De.id);e({nodeIds:r.nodeIds,relationshipIds:Q})}else{const Q=[...r.relationshipIds,De.id];e({nodeIds:r.nodeIds,relationshipIds:Q})}else e({nodeIds:[],relationshipIds:[De.id]});typeof m=="function"&&m(De,Ne,Ce)}},[e,r,m]),W=me.useCallback((De,Ne,Ce)=>{lb(Ce)||typeof P=="function"&&P(De,Ne,Ce)},[P]),$=me.useCallback((De,Ne,Ce)=>{lb(Ce)||typeof I=="function"&&I(De,Ne,Ce)},[I]),J=me.useCallback((De,Ne,Ce)=>{const Y=De.map(ie=>ie.id),Q=Ne.map(ie=>ie.id);if(Gw(Ce)){const ie=r.nodeIds,we=r.relationshipIds,Ee=(Ye,ot)=>[...new Set([...Ye,...ot].filter(mt=>!Ye.includes(mt)||!ot.includes(mt)))],Me=Ee(ie,Y),Ie=Ee(we,Q);e({nodeIds:Me,relationshipIds:Ie})}else e({nodeIds:Y,relationshipIds:Q})},[e,r]),X=me.useCallback(({nodes:De,rels:Ne},Ce)=>{J(De,Ne,Ce),typeof d=="function"&&d({nodes:De,rels:Ne},Ce)},[J,d]),Z=me.useCallback(({nodes:De,rels:Ne},Ce)=>{J(De,Ne,Ce),typeof f=="function"&&f({nodes:De,rels:Ne},Ce)},[J,f]),ue=n==="draw",re=n==="select",ne=re&&t==="box",le=re&&t==="lasso",ce=n==="pan"||re&&t==="single",pe=n==="drag"||n==="select",fe=me.useMemo(()=>{var De;return Object.assign(Object.assign({},a),{onBoxSelect:ne?Z:!1,onBoxStarted:ne?p:!1,onCanvasClick:re?k:!1,onDragEnd:pe?B:!1,onDragStart:pe?L:!1,onDrawEnded:ue?z:!1,onDrawStarted:ue?j:!1,onHover:re?y:!1,onHoverNodeMargin:ue?b:!1,onLassoSelect:le?X:!1,onLassoStarted:le?h:!1,onNodeClick:re?H:!1,onNodeDoubleClick:re?W:!1,onPan:ce?g:!1,onRelationshipClick:re?q:!1,onRelationshipDoubleClick:re?$:!1,onZoom:(De=a.onZoom)!==null&&De!==void 0?De:!0})},[pe,ne,le,ce,ue,re,a,Z,p,k,B,L,z,j,y,b,X,h,H,W,g,q,$]),se=me.useMemo(()=>({nodeIds:new Set(r.nodeIds),relIds:new Set(r.relationshipIds)}),[r]),de=me.useMemo(()=>s!==void 0?new Set(s):null,[s]),ge=me.useMemo(()=>u!==void 0?new Set(u):null,[u]),Oe=me.useMemo(()=>o.nodes.map(De=>Object.assign(Object.assign({},De),{disabled:de?!de.has(De.id):!1,selected:se.nodeIds.has(De.id)})),[o.nodes,se,de]),ke=me.useMemo(()=>o.rels.map(De=>Object.assign(Object.assign({},De),{disabled:ge?!ge.has(De.id):!1,selected:se.relIds.has(De.id)})),[o.rels,se,ge]);return{nodesWithState:Oe,relsWithState:ke,wrappedMouseEventCallbacks:fe}}var Ble=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);iTe.jsx("div",{className:Vn(Fle[t],e),children:r}),Ule={disableTelemetry:!0,disableWebGL:!0,maxZoom:3,minZoom:.05,relationshipThreshold:.55},Hw={bottomLeftIsland:null,bottomRightIsland:Te.jsxs(V7,{orientation:"vertical",isFloating:!0,size:"small",children:[Te.jsx(jG,{})," ",Te.jsx(BG,{})," ",Te.jsx(FG,{})]}),topLeftIsland:null,topRightIsland:Te.jsxs("div",{className:"ndl-graph-visualization-default-download-group",children:[Te.jsx(zG,{})," ",Te.jsx(UG,{})]})};function zo(r){var e,t,{nvlRef:n,nvlCallbacks:i,nvlOptions:a,sidepanel:o,nodes:s,rels:u,highlightedNodeIds:l,highlightedRelationshipIds:c,topLeftIsland:f=Hw.topLeftIsland,topRightIsland:d=Hw.topRightIsland,bottomLeftIsland:h=Hw.bottomLeftIsland,bottomRightIsland:p=Hw.bottomRightIsland,gesture:g="single",setGesture:y,layout:b,setLayout:_,selected:m,setSelected:x,interactionMode:E,setInteractionMode:O,mouseEventCallbacks:S={},className:T,style:P,htmlAttributes:I,ref:k,as:L}=r,B=Ble(r,["nvlRef","nvlCallbacks","nvlOptions","sidepanel","nodes","rels","highlightedNodeIds","highlightedRelationshipIds","topLeftIsland","topRightIsland","bottomLeftIsland","bottomRightIsland","gesture","setGesture","layout","setLayout","selected","setSelected","interactionMode","setInteractionMode","mouseEventCallbacks","className","style","htmlAttributes","ref","as"]);const j=me.useMemo(()=>n??ao.createRef(),[n]),z=me.useId(),{theme:H}=E2(),{bg:q,border:W,text:$}=Xu.theme[H].color.neutral,[J,X]=me.useState(0);me.useEffect(()=>{X(Y=>Y+1)},[H]);const[Z,ue]=Lg({isControlled:E!==void 0,onChange:O,state:E??"select"}),[re,ne]=Lg({isControlled:m!==void 0,onChange:x,state:m??{nodeIds:[],relationshipIds:[]}}),[le,ce]=Lg({isControlled:b!==void 0,onChange:_,state:b??"d3Force"}),pe=me.useMemo(()=>Ele(s,u),[s,u]),{nodesWithState:fe,relsWithState:se,wrappedMouseEventCallbacks:de}=jle({gesture:g,highlightedNodeIds:l,highlightedRelationshipIds:c,interactionMode:Z,mouseEventCallbacks:S,nvlGraph:pe,selected:re,setInteractionMode:ue,setSelected:ne}),[ge,Oe]=Lg({isControlled:(o==null?void 0:o.isSidePanelOpen)!==void 0,onChange:o==null?void 0:o.setIsSidePanelOpen,state:(e=o==null?void 0:o.isSidePanelOpen)!==null&&e!==void 0?e:!0}),[ke,De]=Lg({isControlled:(o==null?void 0:o.sidePanelWidth)!==void 0,onChange:o==null?void 0:o.onSidePanelResize,state:(t=o==null?void 0:o.sidePanelWidth)!==null&&t!==void 0?t:400}),Ne=me.useMemo(()=>o===void 0?{children:Te.jsx(zo.SingleSelectionSidePanelContents,{}),isSidePanelOpen:ge,onSidePanelResize:De,setIsSidePanelOpen:Oe,sidePanelWidth:ke}:o,[o,ge,Oe,ke,De]),Ce=L??"div";return Te.jsx(Ce,Object.assign({ref:k,className:Vn("ndl-graph-visualization-container",T),style:P},I,{children:Te.jsxs(NG.Provider,{value:{gesture:g,interactionMode:Z,layout:le,nvlGraph:pe,nvlInstance:j,selected:re,setGesture:y,setLayout:ce,sidepanel:Ne},children:[Te.jsxs("div",{className:"ndl-graph-visualization",children:[Te.jsx(Que,Object.assign({layout:le,nodes:fe,rels:se,nvlOptions:Object.assign(Object.assign(Object.assign({},Ule),{instanceId:z,styling:{defaultRelationshipColor:W.strongest,disabledItemColor:q.strong,disabledItemFontColor:$.weakest,dropShadowColor:W.weak,selectedInnerBorderColor:q.default}}),a),nvlCallbacks:Object.assign({onLayoutComputing(Y){var Q;Y||(Q=j.current)===null||Q===void 0||Q.fit(j.current.getNodes().map(ie=>ie.id),{noPan:!0})}},i),mouseEventCallbacks:de,ref:j},B),J),f!==null&&Te.jsx(Vw,{placement:"top-left",children:f}),d!==null&&Te.jsx(Vw,{placement:"top-right",children:d}),h!==null&&Te.jsx(Vw,{placement:"bottom-left",children:h}),p!==null&&Te.jsx(Vw,{placement:"bottom-right",children:p})]}),Ne&&Te.jsx(ty,{sidepanel:Ne})]})}))}zo.ZoomInButton=jG;zo.ZoomOutButton=BG;zo.ZoomToFitButton=FG;zo.ToggleSidePanelButton=UG;zo.DownloadButton=zG;zo.BoxSelectButton=ile;zo.LassoSelectButton=ale;zo.SingleSelectButton=nle;zo.SearchButton=ole;zo.SingleSelectionSidePanelContents=Lle;zo.LayoutSelectButton=ule;zo.GestureSelectButton=cle;function zle(r){return Array.isArray(r)&&r.every(e=>typeof e=="string")}function qle(r){return r.map(e=>{const t=zle(e.properties.labels)?e.properties.labels:[];return{...e,id:e.id,labels:e.caption?[e.caption]:t,properties:Object.entries(e.properties).reduce((n,[i,a])=>{if(i==="labels")return n;const o=typeof a;return n[i]={stringified:o==="string"?`"${a}"`:String(a),type:o},n},{})}})}function Gle(r){return r.map(e=>({...e,id:e.id,type:e.caption??e.properties.type??"",properties:Object.entries(e.properties).reduce((t,[n,i])=>(n==="type"||(t[n]={stringified:String(i),type:typeof i}),t),{}),from:e.from,to:e.to}))}class Vle extends me.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("[neo4j-viz] Rendering error:",e,t.componentStack)}render(){return this.state.error?Te.jsxs("div",{style:{padding:"24px",fontFamily:"system-ui, sans-serif",color:"#c0392b",background:"#fdf0ef",borderRadius:"8px",border:"1px solid #e6b0aa",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center"},children:[Te.jsx("h3",{style:{margin:"0 0 8px"},children:"Graph rendering failed"}),Te.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",fontSize:"13px",color:"#6c3428"},children:this.state.error.message})]}):this.props.children}}function Hle(){if(document.body.classList.contains("vscode-light"))return"light";if(document.body.classList.contains("vscode-dark"))return"dark";const e=window.getComputedStyle(document.body,null).getPropertyValue("background-color").match(/\d+/g);if(!e||e.length<3)return"light";const t=Number(e[0])*.2126+Number(e[1])*.7152+Number(e[2])*.0722;return t===0&&e.length>3&&e[3]==="0"?"light":t<128?"dark":"light"}function Wle(r){me.useEffect(()=>{const e=r==="auto"?Hle():r;document.documentElement.className=`ndl-theme-${e}`},[r])}function Yle(){const[r]=Wy("nodes"),[e]=Wy("relationships"),[t,n]=Wy("options"),[i]=Wy("height"),[a]=Wy("width"),[o]=Wy("theme"),[s,u]=me.useState("box"),{layout:l,nvlOptions:c,zoom:f,pan:d,layoutOptions:h,showLayoutButton:p}=t??{},g=S=>{n({...t,layout:S})};Wle(o??"auto");const[y,b]=me.useMemo(()=>[qle(r??[]),Gle(e??[])],[r,e]),_=me.useMemo(()=>({...c,minZoom:0,maxZoom:1e3,disableWebWorkers:!0}),[c]),[m,x]=me.useState(!1),[E,O]=me.useState(300);return Te.jsx("div",{style:{height:i??"600px",width:a??"100%"},children:Te.jsx(zo,{nodes:y,rels:b,gesture:s,setGesture:u,layout:l,setLayout:g,nvlOptions:_,zoom:f,pan:d,layoutOptions:h,sidepanel:{isSidePanelOpen:m,setIsSidePanelOpen:x,onSidePanelResize:O,sidePanelWidth:E,children:Te.jsx(zo.SingleSelectionSidePanelContents,{})},bottomRightIsland:Te.jsxs(V7,{size:"medium",children:[Te.jsx(zo.GestureSelectButton,{menuPlacement:"top-end-bottom-end"}),Te.jsx(tM,{orientation:"horizontal"}),Te.jsx(zo.ZoomInButton,{}),Te.jsx(zo.ZoomOutButton,{}),Te.jsx(zo.ZoomToFitButton,{}),p&&Te.jsxs(Te.Fragment,{children:[Te.jsx(tM,{orientation:"horizontal"}),Te.jsx(zo.LayoutSelectButton,{menuPlacement:"top-end-bottom-end"})]})]})})})}function Xle(){return Te.jsx(Vle,{children:Te.jsx(Yle,{})})}const $le=dV(Xle),Kle={render:$le},pE=window.__NEO4J_VIZ_DATA__;if(!pE)throw document.body.innerHTML=` + */var hle=hx.exports,j9;function vle(){return j9||(j9=1,(function(r,e){(function(t,n){r.exports=n()})(hle,(function(){for(var t=function(K,oe,ye){return oe===void 0&&(oe=0),ye===void 0&&(ye=1),Kye?ye:K},n=t,i=function(K){K._clipped=!1,K._unclipped=K.slice(0);for(var oe=0;oe<=3;oe++)oe<3?((K[oe]<0||K[oe]>255)&&(K._clipped=!0),K[oe]=n(K[oe],0,255)):oe===3&&(K[oe]=n(K[oe],0,1));return K},a={},o=0,s=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];o=3?Array.prototype.slice.call(K):c(K[0])=="object"&&oe?oe.split("").filter(function(ye){return K[0][ye]!==void 0}).map(function(ye){return K[0][ye]}):K[0]},d=l,h=function(K){if(K.length<2)return null;var oe=K.length-1;return d(K[oe])=="string"?K[oe].toLowerCase():null},p=Math.PI,g={clip_rgb:i,limit:t,type:l,unpack:f,last:h,TWOPI:p*2,PITHIRD:p/3,DEG2RAD:p/180,RAD2DEG:180/p},y={format:{},autodetect:[]},b=g.last,_=g.clip_rgb,m=g.type,x=y,E=function(){for(var oe=[],ye=arguments.length;ye--;)oe[ye]=arguments[ye];var Pe=this;if(m(oe[0])==="object"&&oe[0].constructor&&oe[0].constructor===this.constructor)return oe[0];var ze=b(oe),Ge=!1;if(!ze){Ge=!0,x.sorted||(x.autodetect=x.autodetect.sort(function(dt,qt){return qt.p-dt.p}),x.sorted=!0);for(var Be=0,Ke=x.autodetect;Be4?K[4]:1;return Ge===1?[0,0,0,Be]:[ye>=1?0:255*(1-ye)*(1-Ge),Pe>=1?0:255*(1-Pe)*(1-Ge),ze>=1?0:255*(1-ze)*(1-Ge),Be]},z=j,H=T,q=O,W=y,$=g.unpack,J=g.type,X=L;q.prototype.cmyk=function(){return X(this._rgb)},H.cmyk=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(q,[null].concat(K,["cmyk"])))},W.format.cmyk=z,W.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=$(K,"cmyk"),J(K)==="array"&&K.length===4)return"cmyk"}});var Z=g.unpack,ue=g.last,re=function(K){return Math.round(K*100)/100},ne=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Z(K,"hsla"),Pe=ue(K)||"lsa";return ye[0]=re(ye[0]||0),ye[1]=re(ye[1]*100)+"%",ye[2]=re(ye[2]*100)+"%",Pe==="hsla"||ye.length>3&&ye[3]<1?(ye[3]=ye.length>3?ye[3]:1,Pe="hsla"):ye.length=3,Pe+"("+ye.join(",")+")"},le=ne,ce=g.unpack,pe=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=ce(K,"rgba");var ye=K[0],Pe=K[1],ze=K[2];ye/=255,Pe/=255,ze/=255;var Ge=Math.min(ye,Pe,ze),Be=Math.max(ye,Pe,ze),Ke=(Be+Ge)/2,Je,gt;return Be===Ge?(Je=0,gt=Number.NaN):Je=Ke<.5?(Be-Ge)/(Be+Ge):(Be-Ge)/(2-Be-Ge),ye==Be?gt=(Pe-ze)/(Be-Ge):Pe==Be?gt=2+(ze-ye)/(Be-Ge):ze==Be&&(gt=4+(ye-Pe)/(Be-Ge)),gt*=60,gt<0&&(gt+=360),K.length>3&&K[3]!==void 0?[gt,Je,Ke,K[3]]:[gt,Je,Ke]},fe=pe,se=g.unpack,de=g.last,ge=le,Oe=fe,ke=Math.round,De=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=se(K,"rgba"),Pe=de(K)||"rgb";return Pe.substr(0,3)=="hsl"?ge(Oe(ye),Pe):(ye[0]=ke(ye[0]),ye[1]=ke(ye[1]),ye[2]=ke(ye[2]),(Pe==="rgba"||ye.length>3&&ye[3]<1)&&(ye[3]=ye.length>3?ye[3]:1,Pe="rgba"),Pe+"("+ye.slice(0,Pe==="rgb"?3:4).join(",")+")")},Ne=De,Ce=g.unpack,Y=Math.round,Q=function(){for(var K,oe=[],ye=arguments.length;ye--;)oe[ye]=arguments[ye];oe=Ce(oe,"hsl");var Pe=oe[0],ze=oe[1],Ge=oe[2],Be,Ke,Je;if(ze===0)Be=Ke=Je=Ge*255;else{var gt=[0,0,0],dt=[0,0,0],qt=Ge<.5?Ge*(1+ze):Ge+ze-Ge*ze,Ct=2*Ge-qt,Jt=Pe/360;gt[0]=Jt+1/3,gt[1]=Jt,gt[2]=Jt-1/3;for(var Zt=0;Zt<3;Zt++)gt[Zt]<0&&(gt[Zt]+=1),gt[Zt]>1&&(gt[Zt]-=1),6*gt[Zt]<1?dt[Zt]=Ct+(qt-Ct)*6*gt[Zt]:2*gt[Zt]<1?dt[Zt]=qt:3*gt[Zt]<2?dt[Zt]=Ct+(qt-Ct)*(2/3-gt[Zt])*6:dt[Zt]=Ct;K=[Y(dt[0]*255),Y(dt[1]*255),Y(dt[2]*255)],Be=K[0],Ke=K[1],Je=K[2]}return oe.length>3?[Be,Ke,Je,oe[3]]:[Be,Ke,Je,1]},ie=Q,we=ie,Ee=y,Me=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Ie=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Ye=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,ot=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,mt=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,wt=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Mt=Math.round,Dt=function(K){K=K.toLowerCase().trim();var oe;if(Ee.format.named)try{return Ee.format.named(K)}catch{}if(oe=K.match(Me)){for(var ye=oe.slice(1,4),Pe=0;Pe<3;Pe++)ye[Pe]=+ye[Pe];return ye[3]=1,ye}if(oe=K.match(Ie)){for(var ze=oe.slice(1,5),Ge=0;Ge<4;Ge++)ze[Ge]=+ze[Ge];return ze}if(oe=K.match(Ye)){for(var Be=oe.slice(1,4),Ke=0;Ke<3;Ke++)Be[Ke]=Mt(Be[Ke]*2.55);return Be[3]=1,Be}if(oe=K.match(ot)){for(var Je=oe.slice(1,5),gt=0;gt<3;gt++)Je[gt]=Mt(Je[gt]*2.55);return Je[3]=+Je[3],Je}if(oe=K.match(mt)){var dt=oe.slice(1,4);dt[1]*=.01,dt[2]*=.01;var qt=we(dt);return qt[3]=1,qt}if(oe=K.match(wt)){var Ct=oe.slice(1,4);Ct[1]*=.01,Ct[2]*=.01;var Jt=we(Ct);return Jt[3]=+oe[4],Jt}};Dt.test=function(K){return Me.test(K)||Ie.test(K)||Ye.test(K)||ot.test(K)||mt.test(K)||wt.test(K)};var vt=Dt,tt=T,_e=O,Ue=y,Qe=g.type,Ze=Ne,nt=vt;_e.prototype.css=function(K){return Ze(this._rgb,K)},tt.css=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(_e,[null].concat(K,["css"])))},Ue.format.css=nt,Ue.autodetect.push({p:5,test:function(K){for(var oe=[],ye=arguments.length-1;ye-- >0;)oe[ye]=arguments[ye+1];if(!oe.length&&Qe(K)==="string"&&nt.test(K))return"css"}});var It=O,ct=T,Lt=y,Rt=g.unpack;Lt.format.gl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Rt(K,"rgba");return ye[0]*=255,ye[1]*=255,ye[2]*=255,ye},ct.gl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(It,[null].concat(K,["gl"])))},It.prototype.gl=function(){var K=this._rgb;return[K[0]/255,K[1]/255,K[2]/255,K[3]]};var jt=g.unpack,Yt=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=jt(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=Math.min(Pe,ze,Ge),Ke=Math.max(Pe,ze,Ge),Je=Ke-Be,gt=Je*100/255,dt=Be/(255-Je)*100,qt;return Je===0?qt=Number.NaN:(Pe===Ke&&(qt=(ze-Ge)/Je),ze===Ke&&(qt=2+(Ge-Pe)/Je),Ge===Ke&&(qt=4+(Pe-ze)/Je),qt*=60,qt<0&&(qt+=360)),[qt,gt,dt]},sr=Yt,Ut=g.unpack,Rr=Math.floor,Xt=function(){for(var K,oe,ye,Pe,ze,Ge,Be=[],Ke=arguments.length;Ke--;)Be[Ke]=arguments[Ke];Be=Ut(Be,"hcg");var Je=Be[0],gt=Be[1],dt=Be[2],qt,Ct,Jt;dt=dt*255;var Zt=gt*255;if(gt===0)qt=Ct=Jt=dt;else{Je===360&&(Je=0),Je>360&&(Je-=360),Je<0&&(Je+=360),Je/=60;var en=Rr(Je),Or=Je-en,$r=dt*(1-gt),vn=$r+Zt*(1-Or),ua=$r+Zt*Or,Bi=$r+Zt;switch(en){case 0:K=[Bi,ua,$r],qt=K[0],Ct=K[1],Jt=K[2];break;case 1:oe=[vn,Bi,$r],qt=oe[0],Ct=oe[1],Jt=oe[2];break;case 2:ye=[$r,Bi,ua],qt=ye[0],Ct=ye[1],Jt=ye[2];break;case 3:Pe=[$r,vn,Bi],qt=Pe[0],Ct=Pe[1],Jt=Pe[2];break;case 4:ze=[ua,$r,Bi],qt=ze[0],Ct=ze[1],Jt=ze[2];break;case 5:Ge=[Bi,$r,vn],qt=Ge[0],Ct=Ge[1],Jt=Ge[2];break}}return[qt,Ct,Jt,Be.length>3?Be[3]:1]},Vr=Xt,Br=g.unpack,mr=g.type,ur=T,sn=O,Fr=y,un=sr;sn.prototype.hcg=function(){return un(this._rgb)},ur.hcg=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(sn,[null].concat(K,["hcg"])))},Fr.format.hcg=Vr,Fr.autodetect.push({p:1,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=Br(K,"hcg"),mr(K)==="array"&&K.length===3)return"hcg"}});var bn=g.unpack,wn=g.last,_n=Math.round,xn=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=bn(K,"rgba"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=ye[3],Ke=wn(K)||"auto";Be===void 0&&(Be=1),Ke==="auto"&&(Ke=Be<1?"rgba":"rgb"),Pe=_n(Pe),ze=_n(ze),Ge=_n(Ge);var Je=Pe<<16|ze<<8|Ge,gt="000000"+Je.toString(16);gt=gt.substr(gt.length-6);var dt="0"+_n(Be*255).toString(16);switch(dt=dt.substr(dt.length-2),Ke.toLowerCase()){case"rgba":return"#"+gt+dt;case"argb":return"#"+dt+gt;default:return"#"+gt}},on=xn,Nn=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,fi=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,gn=function(K){if(K.match(Nn)){(K.length===4||K.length===7)&&(K=K.substr(1)),K.length===3&&(K=K.split(""),K=K[0]+K[0]+K[1]+K[1]+K[2]+K[2]);var oe=parseInt(K,16),ye=oe>>16,Pe=oe>>8&255,ze=oe&255;return[ye,Pe,ze,1]}if(K.match(fi)){(K.length===5||K.length===9)&&(K=K.substr(1)),K.length===4&&(K=K.split(""),K=K[0]+K[0]+K[1]+K[1]+K[2]+K[2]+K[3]+K[3]);var Ge=parseInt(K,16),Be=Ge>>24&255,Ke=Ge>>16&255,Je=Ge>>8&255,gt=Math.round((Ge&255)/255*100)/100;return[Be,Ke,Je,gt]}throw new Error("unknown hex color: "+K)},yn=gn,Jn=T,_i=O,Ir=g.type,pa=y,di=on;_i.prototype.hex=function(K){return di(this._rgb,K)},Jn.hex=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(_i,[null].concat(K,["hex"])))},pa.format.hex=yn,pa.autodetect.push({p:4,test:function(K){for(var oe=[],ye=arguments.length-1;ye-- >0;)oe[ye]=arguments[ye+1];if(!oe.length&&Ir(K)==="string"&&[3,4,5,6,7,8,9].indexOf(K.length)>=0)return"hex"}});var Bt=g.unpack,hr=g.TWOPI,ei=Math.min,Hn=Math.sqrt,ds=Math.acos,Na=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Bt(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2];Pe/=255,ze/=255,Ge/=255;var Be,Ke=ei(Pe,ze,Ge),Je=(Pe+ze+Ge)/3,gt=Je>0?1-Ke/Je:0;return gt===0?Be=NaN:(Be=(Pe-ze+(Pe-Ge))/2,Be/=Hn((Pe-ze)*(Pe-ze)+(Pe-Ge)*(ze-Ge)),Be=ds(Be),Ge>ze&&(Be=hr-Be),Be/=hr),[Be*360,gt,Je]},ki=Na,Wr=g.unpack,Nr=g.limit,na=g.TWOPI,Us=g.PITHIRD,vu=Math.cos,ga=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=Wr(K,"hsi");var ye=K[0],Pe=K[1],ze=K[2],Ge,Be,Ke;return isNaN(ye)&&(ye=0),isNaN(Pe)&&(Pe=0),ye>360&&(ye-=360),ye<0&&(ye+=360),ye/=360,ye<1/3?(Ke=(1-Pe)/3,Ge=(1+Pe*vu(na*ye)/vu(Us-na*ye))/3,Be=1-(Ke+Ge)):ye<2/3?(ye-=1/3,Ge=(1-Pe)/3,Be=(1+Pe*vu(na*ye)/vu(Us-na*ye))/3,Ke=1-(Ge+Be)):(ye-=2/3,Be=(1-Pe)/3,Ke=(1+Pe*vu(na*ye)/vu(Us-na*ye))/3,Ge=1-(Be+Ke)),Ge=Nr(ze*Ge*3),Be=Nr(ze*Be*3),Ke=Nr(ze*Ke*3),[Ge*255,Be*255,Ke*255,K.length>3?K[3]:1]},zs=ga,Ln=g.unpack,Ii=g.type,Ni=T,Pc=O,pu=y,ia=ki;Pc.prototype.hsi=function(){return ia(this._rgb)},Ni.hsi=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Pc,[null].concat(K,["hsi"])))},pu.format.hsi=zs,pu.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=Ln(K,"hsi"),Ii(K)==="array"&&K.length===3)return"hsi"}});var Hl=g.unpack,Md=g.type,Xa=T,Wl=O,Yl=y,nf=fe;Wl.prototype.hsl=function(){return nf(this._rgb)},Xa.hsl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Wl,[null].concat(K,["hsl"])))},Yl.format.hsl=ie,Yl.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=Hl(K,"hsl"),Md(K)==="array"&&K.length===3)return"hsl"}});var Wi=g.unpack,af=Math.min,La=Math.max,Go=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=Wi(K,"rgb");var ye=K[0],Pe=K[1],ze=K[2],Ge=af(ye,Pe,ze),Be=La(ye,Pe,ze),Ke=Be-Ge,Je,gt,dt;return dt=Be/255,Be===0?(Je=Number.NaN,gt=0):(gt=Ke/Be,ye===Be&&(Je=(Pe-ze)/Ke),Pe===Be&&(Je=2+(ze-ye)/Ke),ze===Be&&(Je=4+(ye-Pe)/Ke),Je*=60,Je<0&&(Je+=360)),[Je,gt,dt]},Gf=Go,hs=g.unpack,Mc=Math.floor,Xl=function(){for(var K,oe,ye,Pe,ze,Ge,Be=[],Ke=arguments.length;Ke--;)Be[Ke]=arguments[Ke];Be=hs(Be,"hsv");var Je=Be[0],gt=Be[1],dt=Be[2],qt,Ct,Jt;if(dt*=255,gt===0)qt=Ct=Jt=dt;else{Je===360&&(Je=0),Je>360&&(Je-=360),Je<0&&(Je+=360),Je/=60;var Zt=Mc(Je),en=Je-Zt,Or=dt*(1-gt),$r=dt*(1-gt*en),vn=dt*(1-gt*(1-en));switch(Zt){case 0:K=[dt,vn,Or],qt=K[0],Ct=K[1],Jt=K[2];break;case 1:oe=[$r,dt,Or],qt=oe[0],Ct=oe[1],Jt=oe[2];break;case 2:ye=[Or,dt,vn],qt=ye[0],Ct=ye[1],Jt=ye[2];break;case 3:Pe=[Or,$r,dt],qt=Pe[0],Ct=Pe[1],Jt=Pe[2];break;case 4:ze=[vn,Or,dt],qt=ze[0],Ct=ze[1],Jt=ze[2];break;case 5:Ge=[dt,Or,$r],qt=Ge[0],Ct=Ge[1],Jt=Ge[2];break}}return[qt,Ct,Jt,Be.length>3?Be[3]:1]},ti=Xl,qs=g.unpack,Ju=g.type,Gs=T,$l=O,of=y,gu=Gf;$l.prototype.hsv=function(){return gu(this._rgb)},Gs.hsv=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply($l,[null].concat(K,["hsv"])))},of.format.hsv=ti,of.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=qs(K,"hsv"),Ju(K)==="array"&&K.length===3)return"hsv"}});var wo={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},xo=wo,Vf=g.unpack,sf=Math.pow,yu=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Vf(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=Kl(Pe,ze,Ge),Ke=Be[0],Je=Be[1],gt=Be[2],dt=116*Je-16;return[dt<0?0:dt,500*(Ke-Je),200*(Je-gt)]},uo=function(K){return(K/=255)<=.04045?K/12.92:sf((K+.055)/1.055,2.4)},el=function(K){return K>xo.t3?sf(K,1/3):K/xo.t2+xo.t0},Kl=function(K,oe,ye){K=uo(K),oe=uo(oe),ye=uo(ye);var Pe=el((.4124564*K+.3575761*oe+.1804375*ye)/xo.Xn),ze=el((.2126729*K+.7151522*oe+.072175*ye)/xo.Yn),Ge=el((.0193339*K+.119192*oe+.9503041*ye)/xo.Zn);return[Pe,ze,Ge]},Vo=yu,vs=wo,jn=g.unpack,Zr=Math.pow,Zl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=jn(K,"lab");var ye=K[0],Pe=K[1],ze=K[2],Ge,Be,Ke,Je,gt,dt;return Be=(ye+16)/116,Ge=isNaN(Pe)?Be:Be+Pe/500,Ke=isNaN(ze)?Be:Be-ze/200,Be=vs.Yn*Dc(Be),Ge=vs.Xn*Dc(Ge),Ke=vs.Zn*Dc(Ke),Je=ps(3.2404542*Ge-1.5371385*Be-.4985314*Ke),gt=ps(-.969266*Ge+1.8760108*Be+.041556*Ke),dt=ps(.0556434*Ge-.2040259*Be+1.0572252*Ke),[Je,gt,dt,K.length>3?K[3]:1]},ps=function(K){return 255*(K<=.00304?12.92*K:1.055*Zr(K,1/2.4)-.055)},Dc=function(K){return K>vs.t1?K*K*K:vs.t2*(K-vs.t0)},Oa=Zl,tl=g.unpack,uf=g.type,Ql=T,rl=O,wi=y,Jl=Vo;rl.prototype.lab=function(){return Jl(this._rgb)},Ql.lab=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(rl,[null].concat(K,["lab"])))},wi.format.lab=Oa,wi.autodetect.push({p:2,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=tl(K,"lab"),uf(K)==="array"&&K.length===3)return"lab"}});var aa=g.unpack,mu=g.RAD2DEG,lf=Math.sqrt,ya=Math.atan2,ma=Math.round,bu=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=aa(K,"lab"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=lf(ze*ze+Ge*Ge),Ke=(ya(Ge,ze)*mu+360)%360;return ma(Be*1e4)===0&&(Ke=Number.NaN),[Pe,Be,Ke]},lo=bu,Ho=g.unpack,st=Vo,xt=lo,pt=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Ho(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=st(Pe,ze,Ge),Ke=Be[0],Je=Be[1],gt=Be[2];return xt(Ke,Je,gt)},Wt=pt,ir=g.unpack,En=g.DEG2RAD,oa=Math.sin,ja=Math.cos,Kn=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=ir(K,"lch"),Pe=ye[0],ze=ye[1],Ge=ye[2];return isNaN(Ge)&&(Ge=0),Ge=Ge*En,[Pe,ja(Ge)*ze,oa(Ge)*ze]},ec=Kn,xi=g.unpack,ba=ec,cf=Oa,Ev=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=xi(K,"lch");var ye=K[0],Pe=K[1],ze=K[2],Ge=ba(ye,Pe,ze),Be=Ge[0],Ke=Ge[1],Je=Ge[2],gt=cf(Be,Ke,Je),dt=gt[0],qt=gt[1],Ct=gt[2];return[dt,qt,Ct,K.length>3?K[3]:1]},nl=Ev,Dd=g.unpack,kd=nl,Fn=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Dd(K,"hcl").reverse();return kd.apply(void 0,ye)},Sv=Fn,Hf=g.unpack,il=g.type,Ov=T,Wf=O,ff=y,Vs=Wt;Wf.prototype.lch=function(){return Vs(this._rgb)},Wf.prototype.hcl=function(){return Vs(this._rgb).reverse()},Ov.lch=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Wf,[null].concat(K,["lch"])))},Ov.hcl=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Wf,[null].concat(K,["hcl"])))},ff.format.lch=nl,ff.format.hcl=Sv,["lch","hcl"].forEach(function(K){return ff.autodetect.push({p:2,test:function(){for(var oe=[],ye=arguments.length;ye--;)oe[ye]=arguments[ye];if(oe=Hf(oe,K),il(oe)==="array"&&oe.length===3)return K}})});var _u={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},kc=_u,Ah=O,tc=y,Yf=g.type,Ic=kc,wu=yn,Eo=on;Ah.prototype.name=function(){for(var K=Eo(this._rgb,"rgb"),oe=0,ye=Object.keys(Ic);oe0;)oe[ye]=arguments[ye+1];if(!oe.length&&Yf(K)==="string"&&Ic[K.toLowerCase()])return"named"}});var Nc=g.unpack,Hs=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=Nc(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2];return(Pe<<16)+(ze<<8)+Ge},df=Hs,Rh=g.type,Xf=function(K){if(Rh(K)=="number"&&K>=0&&K<=16777215){var oe=K>>16,ye=K>>8&255,Pe=K&255;return[oe,ye,Pe,1]}throw new Error("unknown num color: "+K)},$f=Xf,Id=T,rc=O,Kf=y,Lc=g.type,Nd=df;rc.prototype.num=function(){return Nd(this._rgb)},Id.num=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(rc,[null].concat(K,["num"])))},Kf.format.num=$f,Kf.autodetect.push({p:5,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K.length===1&&Lc(K[0])==="number"&&K[0]>=0&&K[0]<=16777215)return"num"}});var Ph=T,hf=O,Li=y,hi=g.unpack,Zf=g.type,Tv=Math.round;hf.prototype.rgb=function(K){return K===void 0&&(K=!0),K===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Tv)},hf.prototype.rgba=function(K){return K===void 0&&(K=!0),this._rgb.slice(0,4).map(function(oe,ye){return ye<3?K===!1?oe:Tv(oe):oe})},Ph.rgb=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(hf,[null].concat(K,["rgb"])))},Li.format.rgb=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=hi(K,"rgba");return ye[3]===void 0&&(ye[3]=1),ye},Li.autodetect.push({p:3,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=hi(K,"rgba"),Zf(K)==="array"&&(K.length===3||K.length===4&&Zf(K[3])=="number"&&K[3]>=0&&K[3]<=1))return"rgb"}});var Qf=Math.log,Yp=function(K){var oe=K/100,ye,Pe,ze;return oe<66?(ye=255,Pe=oe<6?0:-155.25485562709179-.44596950469579133*(Pe=oe-2)+104.49216199393888*Qf(Pe),ze=oe<20?0:-254.76935184120902+.8274096064007395*(ze=oe-10)+115.67994401066147*Qf(ze)):(ye=351.97690566805693+.114206453784165*(ye=oe-55)-40.25366309332127*Qf(ye),Pe=325.4494125711974+.07943456536662342*(Pe=oe-50)-28.0852963507957*Qf(Pe),ze=255),[ye,Pe,ze,1]},al=Yp,ri=al,nc=g.unpack,jc=Math.round,vf=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];for(var ye=nc(K,"rgb"),Pe=ye[0],ze=ye[2],Ge=1e3,Be=4e4,Ke=.4,Je;Be-Ge>Ke;){Je=(Be+Ge)*.5;var gt=ri(Je);gt[2]/gt[0]>=ze/Pe?Be=Je:Ge=Je}return jc(Je)},pf=vf,Bc=T,Ws=O,ic=y,We=pf;Ws.prototype.temp=Ws.prototype.kelvin=Ws.prototype.temperature=function(){return We(this._rgb)},Bc.temp=Bc.kelvin=Bc.temperature=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Ws,[null].concat(K,["temp"])))},ic.format.temp=ic.format.kelvin=ic.format.temperature=al;var ft=g.unpack,ut=Math.cbrt,Kt=Math.pow,Pr=Math.sign,Qr=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=ft(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=[be(Pe/255),be(ze/255),be(Ge/255)],Ke=Be[0],Je=Be[1],gt=Be[2],dt=ut(.4122214708*Ke+.5363325363*Je+.0514459929*gt),qt=ut(.2119034982*Ke+.6806995451*Je+.1073969566*gt),Ct=ut(.0883024619*Ke+.2817188376*Je+.6299787005*gt);return[.2104542553*dt+.793617785*qt-.0040720468*Ct,1.9779984951*dt-2.428592205*qt+.4505937099*Ct,.0259040371*dt+.7827717662*qt-.808675766*Ct]},oi=Qr;function be(K){var oe=Math.abs(K);return oe<.04045?K/12.92:(Pr(K)||1)*Kt((oe+.055)/1.055,2.4)}var ol=g.unpack,Wo=Math.pow,Ei=Math.sign,nn=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=ol(K,"lab");var ye=K[0],Pe=K[1],ze=K[2],Ge=Wo(ye+.3963377774*Pe+.2158037573*ze,3),Be=Wo(ye-.1055613458*Pe-.0638541728*ze,3),Ke=Wo(ye-.0894841775*Pe-1.291485548*ze,3);return[255*$a(4.0767416621*Ge-3.3077115913*Be+.2309699292*Ke),255*$a(-1.2684380046*Ge+2.6097574011*Be-.3413193965*Ke),255*$a(-.0041960863*Ge-.7034186147*Be+1.707614701*Ke),K.length>3?K[3]:1]},sl=nn;function $a(K){var oe=Math.abs(K);return oe>.0031308?(Ei(K)||1)*(1.055*Wo(oe,1/2.4)-.055):K*12.92}var gs=g.unpack,xu=g.type,Jr=T,Ld=O,gf=y,So=oi;Ld.prototype.oklab=function(){return So(this._rgb)},Jr.oklab=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Ld,[null].concat(K,["oklab"])))},gf.format.oklab=sl,gf.autodetect.push({p:3,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=gs(K,"oklab"),xu(K)==="array"&&K.length===3)return"oklab"}});var jd=g.unpack,Oo=oi,Eu=lo,ul=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];var ye=jd(K,"rgb"),Pe=ye[0],ze=ye[1],Ge=ye[2],Be=Oo(Pe,ze,Ge),Ke=Be[0],Je=Be[1],gt=Be[2];return Eu(Ke,Je,gt)},Ys=ul,ac=g.unpack,ys=ec,ms=sl,ll=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];K=ac(K,"lch");var ye=K[0],Pe=K[1],ze=K[2],Ge=ys(ye,Pe,ze),Be=Ge[0],Ke=Ge[1],Je=Ge[2],gt=ms(Be,Ke,Je),dt=gt[0],qt=gt[1],Ct=gt[2];return[dt,qt,Ct,K.length>3?K[3]:1]},Ka=ll,Su=g.unpack,Mh=g.type,Yi=T,Ba=O,To=y,Cv=Ys;Ba.prototype.oklch=function(){return Cv(this._rgb)},Yi.oklch=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];return new(Function.prototype.bind.apply(Ba,[null].concat(K,["oklch"])))},To.format.oklch=Ka,To.autodetect.push({p:3,test:function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];if(K=Su(K,"oklch"),Mh(K)==="array"&&K.length===3)return"oklch"}});var oc=O,sc=g.type;oc.prototype.alpha=function(K,oe){return oe===void 0&&(oe=!1),K!==void 0&&sc(K)==="number"?oe?(this._rgb[3]=K,this):new oc([this._rgb[0],this._rgb[1],this._rgb[2],K],"rgb"):this._rgb[3]};var ji=O;ji.prototype.clipped=function(){return this._rgb._clipped||!1};var Yo=O,yf=wo;Yo.prototype.darken=function(K){K===void 0&&(K=1);var oe=this,ye=oe.lab();return ye[0]-=yf.Kn*K,new Yo(ye,"lab").alpha(oe.alpha(),!0)},Yo.prototype.brighten=function(K){return K===void 0&&(K=1),this.darken(-K)},Yo.prototype.darker=Yo.prototype.darken,Yo.prototype.brighter=Yo.prototype.brighten;var Xs=O;Xs.prototype.get=function(K){var oe=K.split("."),ye=oe[0],Pe=oe[1],ze=this[ye]();if(Pe){var Ge=ye.indexOf(Pe)-(ye.substr(0,2)==="ok"?2:0);if(Ge>-1)return ze[Ge];throw new Error("unknown channel "+Pe+" in mode "+ye)}else return ze};var sa=O,cl=g.type,bs=Math.pow,Ri=1e-7,Sn=20;sa.prototype.luminance=function(K){if(K!==void 0&&cl(K)==="number"){if(K===0)return new sa([0,0,0,this._rgb[3]],"rgb");if(K===1)return new sa([255,255,255,this._rgb[3]],"rgb");var oe=this.luminance(),ye="rgb",Pe=Sn,ze=function(Be,Ke){var Je=Be.interpolate(Ke,.5,ye),gt=Je.luminance();return Math.abs(K-gt)K?ze(Be,Je):ze(Je,Ke)},Ge=(oe>K?ze(new sa([0,0,0]),this):ze(this,new sa([255,255,255]))).rgb();return new sa(Ge.concat([this._rgb[3]]))}return Co.apply(void 0,this._rgb.slice(0,3))};var Co=function(K,oe,ye){return K=Ao(K),oe=Ao(oe),ye=Ao(ye),.2126*K+.7152*oe+.0722*ye},Ao=function(K){return K/=255,K<=.03928?K/12.92:bs((K+.055)/1.055,2.4)},Xi={},Xo=O,Fa=g.type,Ua=Xi,fl=function(K,oe,ye){ye===void 0&&(ye=.5);for(var Pe=[],ze=arguments.length-3;ze-- >0;)Pe[ze]=arguments[ze+3];var Ge=Pe[0]||"lrgb";if(!Ua[Ge]&&!Pe.length&&(Ge=Object.keys(Ua)[0]),!Ua[Ge])throw new Error("interpolation mode "+Ge+" is not defined");return Fa(K)!=="object"&&(K=new Xo(K)),Fa(oe)!=="object"&&(oe=new Xo(oe)),Ua[Ge](K,oe,ye).alpha(K.alpha()+ye*(oe.alpha()-K.alpha()))},$s=O,uc=fl;$s.prototype.mix=$s.prototype.interpolate=function(K,oe){oe===void 0&&(oe=.5);for(var ye=[],Pe=arguments.length-2;Pe-- >0;)ye[Pe]=arguments[Pe+2];return uc.apply(void 0,[this,K,oe].concat(ye))};var lc=O;lc.prototype.premultiply=function(K){K===void 0&&(K=!1);var oe=this._rgb,ye=oe[3];return K?(this._rgb=[oe[0]*ye,oe[1]*ye,oe[2]*ye,ye],this):new lc([oe[0]*ye,oe[1]*ye,oe[2]*ye,ye],"rgb")};var Si=O,Rn=wo;Si.prototype.saturate=function(K){K===void 0&&(K=1);var oe=this,ye=oe.lch();return ye[1]+=Rn.Kn*K,ye[1]<0&&(ye[1]=0),new Si(ye,"lch").alpha(oe.alpha(),!0)},Si.prototype.desaturate=function(K){return K===void 0&&(K=1),this.saturate(-K)};var hn=O,Ou=g.type;hn.prototype.set=function(K,oe,ye){ye===void 0&&(ye=!1);var Pe=K.split("."),ze=Pe[0],Ge=Pe[1],Be=this[ze]();if(Ge){var Ke=ze.indexOf(Ge)-(ze.substr(0,2)==="ok"?2:0);if(Ke>-1){if(Ou(oe)=="string")switch(oe.charAt(0)){case"+":Be[Ke]+=+oe;break;case"-":Be[Ke]+=+oe;break;case"*":Be[Ke]*=+oe.substr(1);break;case"/":Be[Ke]/=+oe.substr(1);break;default:Be[Ke]=+oe}else if(Ou(oe)==="number")Be[Ke]=oe;else throw new Error("unsupported value for Color.set");var Je=new hn(Be,ze);return ye?(this._rgb=Je._rgb,this):Je}throw new Error("unknown channel "+Ge+" in mode "+ze)}else return Be};var $o=O,mf=function(K,oe,ye){var Pe=K._rgb,ze=oe._rgb;return new $o(Pe[0]+ye*(ze[0]-Pe[0]),Pe[1]+ye*(ze[1]-Pe[1]),Pe[2]+ye*(ze[2]-Pe[2]),"rgb")};Xi.rgb=mf;var dl=O,cc=Math.sqrt,_s=Math.pow,hl=function(K,oe,ye){var Pe=K._rgb,ze=Pe[0],Ge=Pe[1],Be=Pe[2],Ke=oe._rgb,Je=Ke[0],gt=Ke[1],dt=Ke[2];return new dl(cc(_s(ze,2)*(1-ye)+_s(Je,2)*ye),cc(_s(Ge,2)*(1-ye)+_s(gt,2)*ye),cc(_s(Be,2)*(1-ye)+_s(dt,2)*ye),"rgb")};Xi.lrgb=hl;var xe=O,Tu=function(K,oe,ye){var Pe=K.lab(),ze=oe.lab();return new xe(Pe[0]+ye*(ze[0]-Pe[0]),Pe[1]+ye*(ze[1]-Pe[1]),Pe[2]+ye*(ze[2]-Pe[2]),"lab")};Xi.lab=Tu;var Ks=O,ar=function(K,oe,ye,Pe){var ze,Ge,Be,Ke;Pe==="hsl"?(Be=K.hsl(),Ke=oe.hsl()):Pe==="hsv"?(Be=K.hsv(),Ke=oe.hsv()):Pe==="hcg"?(Be=K.hcg(),Ke=oe.hcg()):Pe==="hsi"?(Be=K.hsi(),Ke=oe.hsi()):Pe==="lch"||Pe==="hcl"?(Pe="hcl",Be=K.hcl(),Ke=oe.hcl()):Pe==="oklch"&&(Be=K.oklch().reverse(),Ke=oe.oklch().reverse());var Je,gt,dt,qt,Ct,Jt;(Pe.substr(0,1)==="h"||Pe==="oklch")&&(ze=Be,Je=ze[0],dt=ze[1],Ct=ze[2],Ge=Ke,gt=Ge[0],qt=Ge[1],Jt=Ge[2]);var Zt,en,Or,$r;return!isNaN(Je)&&!isNaN(gt)?(gt>Je&>-Je>180?$r=gt-(Je+360):gt180?$r=gt+360-Je:$r=gt-Je,en=Je+ye*$r):isNaN(Je)?isNaN(gt)?en=Number.NaN:(en=gt,(Ct==1||Ct==0)&&Pe!="hsv"&&(Zt=qt)):(en=Je,(Jt==1||Jt==0)&&Pe!="hsv"&&(Zt=dt)),Zt===void 0&&(Zt=dt+ye*(qt-dt)),Or=Ct+ye*(Jt-Ct),Pe==="oklch"?new Ks([Or,Zt,en],Pe):new Ks([en,Zt,Or],Pe)},Yr=ar,Cu=function(K,oe,ye){return Yr(K,oe,ye,"lch")};Xi.lch=Cu,Xi.hcl=Cu;var ws=O,Au=function(K,oe,ye){var Pe=K.num(),ze=oe.num();return new ws(Pe+ye*(ze-Pe),"num")};Xi.num=Au;var vl=ar,Dh=function(K,oe,ye){return vl(K,oe,ye,"hcg")};Xi.hcg=Dh;var za=ar,Bd=function(K,oe,ye){return za(K,oe,ye,"hsi")};Xi.hsi=Bd;var Ru=ar,_a=function(K,oe,ye){return Ru(K,oe,ye,"hsl")};Xi.hsl=_a;var Ko=ar,kh=function(K,oe,ye){return Ko(K,oe,ye,"hsv")};Xi.hsv=kh;var Zo=O,fc=function(K,oe,ye){var Pe=K.oklab(),ze=oe.oklab();return new Zo(Pe[0]+ye*(ze[0]-Pe[0]),Pe[1]+ye*(ze[1]-Pe[1]),Pe[2]+ye*(ze[2]-Pe[2]),"oklab")};Xi.oklab=fc;var Ih=ar,$i=function(K,oe,ye){return Ih(K,oe,ye,"oklch")};Xi.oklch=$i;var Za=O,bf=g.clip_rgb,pl=Math.pow,_f=Math.sqrt,Pu=Math.PI,gl=Math.cos,co=Math.sin,Av=Math.atan2,dc=function(K,oe,ye){oe===void 0&&(oe="lrgb"),ye===void 0&&(ye=null);var Pe=K.length;ye||(ye=Array.from(new Array(Pe)).map(function(){return 1}));var ze=Pe/ye.reduce(function(en,Or){return en+Or});if(ye.forEach(function(en,Or){ye[Or]*=ze}),K=K.map(function(en){return new Za(en)}),oe==="lrgb")return Qo(K,ye);for(var Ge=K.shift(),Be=Ge.get(oe),Ke=[],Je=0,gt=0,dt=0;dt=360;)Zt-=360;Be[Jt]=Zt}else Be[Jt]=Be[Jt]/Ke[Jt];return Ct/=Pe,new Za(Be,oe).alpha(Ct>.99999?1:Ct,!0)},Qo=function(K,oe){for(var ye=K.length,Pe=[0,0,0,0],ze=0;ze.9999999&&(Pe[3]=1),new Za(bf(Pe))},Ta=T,Mu=g.type,Jf=Math.pow,ed=function(K){var oe="rgb",ye=Ta("#ccc"),Pe=0,ze=[0,1],Ge=[],Be=[0,0],Ke=!1,Je=[],gt=!1,dt=0,qt=1,Ct=!1,Jt={},Zt=!0,en=1,Or=function(kt){if(kt=kt||["#fff","#000"],kt&&Mu(kt)==="string"&&Ta.brewer&&Ta.brewer[kt.toLowerCase()]&&(kt=Ta.brewer[kt.toLowerCase()]),Mu(kt)==="array"){kt.length===1&&(kt=[kt[0],kt[0]]),kt=kt.slice(0);for(var gr=0;gr=Ke[tn];)tn++;return tn-1}return 0},vn=function(kt){return kt},ua=function(kt){return kt},Bi=function(kt,gr){var tn,yr;if(gr==null&&(gr=!1),isNaN(kt)||kt===null)return ye;if(gr)yr=kt;else if(Ke&&Ke.length>2){var Ji=$r(kt);yr=Ji/(Ke.length-2)}else qt!==dt?yr=(kt-dt)/(qt-dt):yr=1;yr=ua(yr),gr||(yr=vn(yr)),en!==1&&(yr=Jf(yr,en)),yr=Be[0]+yr*(1-Be[0]-Be[1]),yr=Math.min(1,Math.max(0,yr));var mn=Math.floor(yr*1e4);if(Zt&&Jt[mn])tn=Jt[mn];else{if(Mu(Je)==="array")for(var cn=0;cn=Mn&&cn===Ge.length-1){tn=Je[cn];break}if(yr>Mn&&yr2){var cn=kt.map(function(On,zn){return zn/(kt.length-1)}),Mn=kt.map(function(On){return(On-dt)/(qt-dt)});Mn.every(function(On,zn){return cn[zn]===On})||(ua=function(On){if(On<=0||On>=1)return On;for(var zn=0;On>=Mn[zn+1];)zn++;var rs=(On-Mn[zn])/(Mn[zn+1]-Mn[zn]),wl=cn[zn]+rs*(cn[zn+1]-cn[zn]);return wl})}}return ze=[dt,qt],ln},ln.mode=function(kt){return arguments.length?(oe=kt,Ja(),ln):oe},ln.range=function(kt,gr){return Or(kt),ln},ln.out=function(kt){return gt=kt,ln},ln.spread=function(kt){return arguments.length?(Pe=kt,ln):Pe},ln.correctLightness=function(kt){return kt==null&&(kt=!0),Ct=kt,Ja(),Ct?vn=function(gr){for(var tn=Bi(0,!0).lab()[0],yr=Bi(1,!0).lab()[0],Ji=tn>yr,mn=Bi(gr,!0).lab()[0],cn=tn+(yr-tn)*gr,Mn=mn-cn,On=0,zn=1,rs=20;Math.abs(Mn)>.01&&rs-- >0;)(function(){return Ji&&(Mn*=-1),Mn<0?(On=gr,gr+=(zn-gr)*.5):(zn=gr,gr+=(On-gr)*.5),mn=Bi(gr,!0).lab()[0],Mn=mn-cn})();return gr}:vn=function(gr){return gr},ln},ln.padding=function(kt){return kt!=null?(Mu(kt)==="number"&&(kt=[kt,kt]),Be=kt,ln):Be},ln.colors=function(kt,gr){arguments.length<2&&(gr="hex");var tn=[];if(arguments.length===0)tn=Je.slice(0);else if(kt===1)tn=[ln(.5)];else if(kt>1){var yr=ze[0],Ji=ze[1]-yr;tn=Fc(0,kt).map(function(zn){return ln(yr+zn/(kt-1)*Ji)})}else{K=[];var mn=[];if(Ke&&Ke.length>2)for(var cn=1,Mn=Ke.length,On=1<=Mn;On?cnMn;On?cn++:cn--)mn.push((Ke[cn-1]+Ke[cn])*.5);else mn=ze;tn=mn.map(function(zn){return ln(zn)})}return Ta[gr]&&(tn=tn.map(function(zn){return zn[gr]()})),tn},ln.cache=function(kt){return kt!=null?(Zt=kt,ln):Zt},ln.gamma=function(kt){return kt!=null?(en=kt,ln):en},ln.nodata=function(kt){return kt!=null?(ye=Ta(kt),ln):ye},ln};function Fc(K,oe,ye){for(var Pe=[],ze=KGe;ze?Be++:Be--)Pe.push(Be);return Pe}var yl=O,Ca=ed,Jo=function(K){for(var oe=[1,1],ye=1;ye=5){var gt,dt,qt;gt=K.map(function(Ct){return Ct.lab()}),qt=K.length-1,dt=Jo(qt),ze=function(Ct){var Jt=1-Ct,Zt=[0,1,2].map(function(en){return gt.reduce(function(Or,$r,vn){return Or+dt[vn]*Math.pow(Jt,qt-vn)*Math.pow(Ct,vn)*$r[en]},0)});return new yl(Zt,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return ze},ml=function(K){var oe=td(K);return oe.scale=function(){return Ca(oe)},oe},Ro=T,Ki=function(K,oe,ye){if(!Ki[ye])throw new Error("unknown blend mode "+ye);return Ki[ye](K,oe)},Du=function(K){return function(oe,ye){var Pe=Ro(ye).rgb(),ze=Ro(oe).rgb();return Ro.rgb(K(Pe,ze))}},fo=function(K){return function(oe,ye){var Pe=[];return Pe[0]=K(oe[0],ye[0]),Pe[1]=K(oe[1],ye[1]),Pe[2]=K(oe[2],ye[2]),Pe}},ku=function(K){return K},Po=function(K,oe){return K*oe/255},Uc=function(K,oe){return K>oe?oe:K},Mo=function(K,oe){return K>oe?K:oe},Qa=function(K,oe){return 255*(1-(1-K/255)*(1-oe/255))},rd=function(K,oe){return oe<128?2*K*oe/255:255*(1-2*(1-K/255)*(1-oe/255))},Iu=function(K,oe){return 255*(1-(1-oe/255)/(K/255))},wf=function(K,oe){return K===255?255:(K=255*(oe/255)/(1-K/255),K>255?255:K)};Ki.normal=Du(fo(ku)),Ki.multiply=Du(fo(Po)),Ki.screen=Du(fo(Qa)),Ki.overlay=Du(fo(rd)),Ki.darken=Du(fo(Uc)),Ki.lighten=Du(fo(Mo)),Ki.dodge=Du(fo(wf)),Ki.burn=Du(fo(Iu));for(var es=Ki,ho=g.type,nd=g.clip_rgb,Nu=g.TWOPI,Zs=Math.pow,xf=Math.sin,xs=Math.cos,Zi=T,hc=function(K,oe,ye,Pe,ze){K===void 0&&(K=300),oe===void 0&&(oe=-1.5),ye===void 0&&(ye=1),Pe===void 0&&(Pe=1),ze===void 0&&(ze=[0,1]);var Ge=0,Be;ho(ze)==="array"?Be=ze[1]-ze[0]:(Be=0,ze=[ze,ze]);var Ke=function(Je){var gt=Nu*((K+120)/360+oe*Je),dt=Zs(ze[0]+Be*Je,Pe),qt=Ge!==0?ye[0]+Je*Ge:ye,Ct=qt*dt*(1-dt)/2,Jt=xs(gt),Zt=xf(gt),en=dt+Ct*(-.14861*Jt+1.78277*Zt),Or=dt+Ct*(-.29227*Jt-.90649*Zt),$r=dt+Ct*(1.97294*Jt);return Zi(nd([en*255,Or*255,$r*255,1]))};return Ke.start=function(Je){return Je==null?K:(K=Je,Ke)},Ke.rotations=function(Je){return Je==null?oe:(oe=Je,Ke)},Ke.gamma=function(Je){return Je==null?Pe:(Pe=Je,Ke)},Ke.hue=function(Je){return Je==null?ye:(ye=Je,ho(ye)==="array"?(Ge=ye[1]-ye[0],Ge===0&&(ye=ye[1])):Ge=0,Ke)},Ke.lightness=function(Je){return Je==null?ze:(ho(Je)==="array"?(ze=Je,Be=Je[1]-Je[0]):(ze=[Je,Je],Be=0),Ke)},Ke.scale=function(){return Zi.scale(Ke)},Ke.hue(ye),Ke},Ef=O,Es="0123456789abcdef",Ss=Math.floor,Qs=Math.random,Os=function(){for(var K="#",oe=0;oe<6;oe++)K+=Es.charAt(Ss(Qs()*16));return new Ef(K,"hex")},zc=l,Qi=Math.log,Lu=Math.pow,er=Math.floor,vo=Math.abs,Js=function(K,oe){oe===void 0&&(oe=null);var ye={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return zc(K)==="object"&&(K=Object.values(K)),K.forEach(function(Pe){oe&&zc(Pe)==="object"&&(Pe=Pe[oe]),Pe!=null&&!isNaN(Pe)&&(ye.values.push(Pe),ye.sum+=Pe,Peye.max&&(ye.max=Pe),ye.count+=1)}),ye.domain=[ye.min,ye.max],ye.limits=function(Pe,ze){return Ts(ye,Pe,ze)},ye},Ts=function(K,oe,ye){oe===void 0&&(oe="equal"),ye===void 0&&(ye=7),zc(K)=="array"&&(K=Js(K));var Pe=K.min,ze=K.max,Ge=K.values.sort(function(sd,Tf){return sd-Tf});if(ye===1)return[Pe,ze];var Be=[];if(oe.substr(0,1)==="c"&&(Be.push(Pe),Be.push(ze)),oe.substr(0,1)==="e"){Be.push(Pe);for(var Ke=1;Ke 0");var Je=Math.LOG10E*Qi(Pe),gt=Math.LOG10E*Qi(ze);Be.push(Pe);for(var dt=1;dt200&&(ua=!1)}for(var Bu={},mc=0;mcPe?(ye+.05)/(Pe+.05):(Pe+.05)/(ye+.05)},Pi=O,ts=Math.sqrt,Pn=Math.pow,Sr=Math.min,Xr=Math.max,vi=Math.atan2,vc=Math.abs,bl=Math.cos,Cs=Math.sin,ad=Math.exp,pc=Math.PI,_l=function(K,oe,ye,Pe,ze){ye===void 0&&(ye=1),Pe===void 0&&(Pe=1),ze===void 0&&(ze=1);var Ge=function(wa){return 360*wa/(2*pc)},Be=function(wa){return 2*pc*wa/360};K=new Pi(K),oe=new Pi(oe);var Ke=Array.from(K.lab()),Je=Ke[0],gt=Ke[1],dt=Ke[2],qt=Array.from(oe.lab()),Ct=qt[0],Jt=qt[1],Zt=qt[2],en=(Je+Ct)/2,Or=ts(Pn(gt,2)+Pn(dt,2)),$r=ts(Pn(Jt,2)+Pn(Zt,2)),vn=(Or+$r)/2,ua=.5*(1-ts(Pn(vn,7)/(Pn(vn,7)+Pn(25,7)))),Bi=gt*(1+ua),Ja=Jt*(1+ua),ln=ts(Pn(Bi,2)+Pn(dt,2)),kt=ts(Pn(Ja,2)+Pn(Zt,2)),gr=(ln+kt)/2,tn=Ge(vi(dt,Bi)),yr=Ge(vi(Zt,Ja)),Ji=tn>=0?tn:tn+360,mn=yr>=0?yr:yr+360,cn=vc(Ji-mn)>180?(Ji+mn+360)/2:(Ji+mn)/2,Mn=1-.17*bl(Be(cn-30))+.24*bl(Be(2*cn))+.32*bl(Be(3*cn+6))-.2*bl(Be(4*cn-63)),On=mn-Ji;On=vc(On)<=180?On:mn<=Ji?On+360:On-360,On=2*ts(ln*kt)*Cs(Be(On)/2);var zn=Ct-Je,rs=kt-ln,wl=1+.015*Pn(en-50,2)/ts(20+Pn(en-50,2)),Bu=1+.045*gr,mc=1+.015*gr*Mn,Fu=30*ad(-Pn((cn-275)/25,2)),As=2*ts(Pn(gr,7)/(Pn(gr,7)+Pn(25,7))),xl=-As*Cs(2*Be(Fu)),Fi=ts(Pn(zn/(ye*wl),2)+Pn(rs/(Pe*Bu),2)+Pn(On/(ze*mc),2)+xl*(rs/(Pe*Bu))*(On/(ze*mc)));return Xr(0,Sr(100,Fi))},Nh=O,si=function(K,oe,ye){ye===void 0&&(ye="lab"),K=new Nh(K),oe=new Nh(oe);var Pe=K.get(ye),ze=oe.get(ye),Ge=0;for(var Be in Pe){var Ke=(Pe[Be]||0)-(ze[Be]||0);Ge+=Ke*Ke}return Math.sqrt(Ge)},od=O,gc=function(){for(var K=[],oe=arguments.length;oe--;)K[oe]=arguments[oe];try{return new(Function.prototype.bind.apply(od,[null].concat(K))),!0}catch{return!1}},Sf=T,qc=ed,Rv={cool:function(){return qc([Sf.hsl(180,1,.9),Sf.hsl(250,.7,.4)])},hot:function(){return qc(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ju={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},yc=0,Of=Object.keys(ju);yc`#${[parseInt(r.substring(1,3),16),parseInt(r.substring(3,5),16),parseInt(r.substring(5,7),16)].map(t=>{let n=parseInt((t*(100+e)/100).toString(),10);const i=(n=n<255?n:255).toString(16);return i.length===1?`0${i}`:i}).join("")}`;function GG(r){let e=0,t=0;const n=r.length;for(;t{const s=qG.contrast(r,o);s>a&&(i=o,a=s)}),ac%(d-f)+f;return qG.oklch(l(o,n,t)/100,l(s,a,i)/100,l(u,0,360)).hex()}function mle(r,e){const t=yle(r,e),n=gle(t,-20),i=VG(t,["#2A2C34","#FFFFFF"]);return{backgroundColor:t,borderColor:n,textColor:i}}const QP=Xu.palette.neutral[40],HG=Xu.palette.neutral[40],JP=(r="",e="")=>r.toLowerCase().localeCompare(e.toLowerCase());function ble(r){var e;const[t]=r;if(t===void 0)return HG;const n={};for(const o of r)n[o]=((e=n[o])!==null&&e!==void 0?e:0)+1;let i=0,a=t;for(const[o,s]of Object.entries(n))s>i&&(i=s,a=o);return a}function B9(r){return Object.entries(r).reduce((e,[t,n])=>(e[t]={mostCommonColor:ble(n),totalCount:n.length},e),{})}const _le=[/^name$/i,/^title$/i,/^label$/i,/name$/i,/description$/i,/^.+/];function wle(r){const e=r.filter(n=>n.type==="property").map(n=>n.captionKey);for(const n of _le){const i=e.find(a=>n.test(a));if(i!==void 0)return{captionKey:i,type:"property"}}const t=r.find(n=>n.type==="type");return t||r.find(n=>n.type==="id")}const xle=r=>{const e=Object.keys(r.properties).map(i=>({captionKey:i,type:"property"}));e.push({type:"id"},{type:"type"});const t=wle(e);if((t==null?void 0:t.type)==="property"){const i=r.properties[t.captionKey];if(i!==void 0)return i.type==="string"?[{value:i.stringified.slice(1,-1)}]:[{value:i.stringified}]}const[n]=r.labels;return(t==null?void 0:t.type)==="type"&&n!==void 0?[{value:n}]:[{value:r.id}]};function Ele(r,e){const t={},n={},i={},a={},o=r.map(f=>{var d;const[h]=f.labels,p=Object.assign(Object.assign({captions:xle(f),color:(d=f.color)!==null&&d!==void 0?d:h===void 0?HG:mle(h).backgroundColor},f),{labels:void 0,properties:void 0});return i[f.id]={color:p.color,id:f.id,labelsSorted:[...f.labels].sort(JP),properties:f.properties},f.labels.forEach(g=>{var y;t[g]=[...(y=t[g])!==null&&y!==void 0?y:[],p.color]}),p}),s=e.map(f=>{var d,h,p;return a[f.id]={color:(d=f.color)!==null&&d!==void 0?d:QP,id:f.id,properties:f.properties,type:f.type},n[f.type]=[...(h=n[f.type])!==null&&h!==void 0?h:[],(p=f.color)!==null&&p!==void 0?p:QP],Object.assign(Object.assign({captions:[{value:f.type}],color:QP},f),{properties:void 0,type:void 0})}),u=B9(t),l=B9(n);return{dataLookupTable:{labelMetaData:u,labels:Object.keys(u).sort((f,d)=>JP(f,d)),nodes:i,relationships:a,typeMetaData:l,types:Object.keys(l).sort((f,d)=>JP(f,d))},nodes:o,rels:s}}const F9=/(?:https?|s?ftp|bolt):\/\/(?:(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))?\))+(?:\((?:[^\s()<>]+|(?:\(?:[^\s()<>]+\)))?\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))?/gi,Sle=({text:r})=>{var e;const t=r??"",n=(e=t.match(F9))!==null&&e!==void 0?e:[];return Te.jsx(Te.Fragment,{children:t.split(F9).map((i,a)=>Te.jsxs(oo.Fragment,{children:[i,n[a]&&Te.jsx("a",{href:n[a],target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:n[a]})]},`clickable-url-${a}`))})},Ole=oo.memo(Sle),Tle="…",Cle=900,Ale=150,Rle=300,Ple=({value:r,width:e,type:t})=>{const[n,i]=me.useState(!1),a=e>Cle?Rle:Ale,o=()=>{i(!0)};let s=n?r:r.slice(0,a);const u=s.length!==r.length;return s+=u?Tle:"",Te.jsxs(Te.Fragment,{children:[t.startsWith("Array")&&"[",Te.jsx(Ole,{text:s}),u&&Te.jsx("button",{type:"button",onClick:o,className:"ndl-properties-show-all-button",children:" Show all"}),t.startsWith("Array")&&"]"]})},Mle=({properties:r,paneWidth:e})=>Te.jsxs("div",{className:"ndl-graph-visualization-properties-table",children:[Te.jsxs("div",{className:"ndl-properties-header",children:[Te.jsx(Ed,{variant:"body-small",className:"ndl-properties-header-key",children:"Key"}),Te.jsx(Ed,{variant:"body-small",children:"Value"})]}),Object.entries(r).map(([t,{stringified:n,type:i}])=>Te.jsxs("div",{className:"ndl-properties-row",children:[Te.jsx(Ed,{variant:"body-small",className:"ndl-properties-key",children:t}),Te.jsx("div",{className:"ndl-properties-value",children:Te.jsx(Ple,{value:n,width:e,type:i})}),Te.jsx("div",{className:"ndl-properties-clipboard-button",children:Te.jsx(G7,{textToCopy:`${t}: ${n}`,size:"small",tooltipProps:{placement:"left",type:"simple"}})})]},t))]}),Dle=({paneWidth:r=400})=>{const{selected:e,nvlGraph:t}=Vl(),n=me.useMemo(()=>{const[s]=e.nodeIds;if(s!==void 0)return t.dataLookupTable.nodes[s]},[e,t]),i=me.useMemo(()=>{const[s]=e.relationshipIds;if(s!==void 0)return t.dataLookupTable.relationships[s]},[e,t]),a=me.useMemo(()=>{if(n)return{data:n,dataType:"node"};if(i)return{data:i,dataType:"relationship"}},[n,i]);if(a===void 0)return null;const o=[{key:"",type:"String",value:`${a.data.id}`},...Object.keys(a.data.properties).map(s=>({key:s,type:a.data.properties[s].type,value:a.data.properties[s].stringified}))];return Te.jsxs(Te.Fragment,{children:[Te.jsxs(ty.Title,{children:[Te.jsx("h6",{className:"ndl-details-title",children:a.dataType==="node"?"Node details":"Relationship details"}),Te.jsx(G7,{textToCopy:o.map(s=>`${s.key}: ${s.value}`).join(` +`),size:"small"})]}),Te.jsxs(ty.Content,{children:[Te.jsx("div",{className:"ndl-details-tags",children:a.dataType==="node"?a.data.labelsSorted.map(s=>{var u,l;return Te.jsx(Ax,{type:"node",color:(l=(u=t.dataLookupTable.labelMetaData[s])===null||u===void 0?void 0:u.mostCommonColor)!==null&&l!==void 0?l:"",as:"span",htmlAttributes:{tabIndex:0},children:s},s)}):Te.jsx(Ax,{type:"relationship",color:a.data.color,as:"span",htmlAttributes:{tabIndex:0},children:a.data.type},a.data.type)}),Te.jsx("div",{className:"ndl-details-divider"}),Te.jsx(Mle,{properties:a.data.properties,paneWidth:r})]})]})},kle=({children:r})=>{const[e,t]=me.useState(0),n=me.useRef(null),i=u=>{var l,c;const f=(c=(l=n.current)===null||l===void 0?void 0:l.children[u])===null||c===void 0?void 0:c.children[0];f instanceof HTMLElement&&f.focus()},a=me.useMemo(()=>oo.Children.count(r),[r]),o=me.useCallback(u=>{u>=a?t(a-1):t(Math.max(0,u))},[a,t]),s=u=>{let l=e;u.key==="ArrowRight"||u.key==="ArrowDown"?(l=(e+1)%oo.Children.count(r),o(l)):(u.key==="ArrowLeft"||u.key==="ArrowUp")&&(l=(e-1+oo.Children.count(r))%oo.Children.count(r),o(l)),i(l)};return Te.jsx("ul",{onKeyDown:u=>s(u),ref:n,style:{all:"inherit",listStyleType:"none"},children:oo.Children.map(r,(u,l)=>{if(!oo.isValidElement(u))return null;const c=me.cloneElement(u,{tabIndex:e===l?0:-1});return Te.jsx("li",{children:c},l)})})},Ile=r=>typeof r=="function";function U9({initiallyShown:r,children:e,isButtonGroup:t}){const[n,i]=me.useState(!1),a=()=>i(f=>!f),o=e.length,s=o>r,u=n?o:r,l=o-u;if(o===0)return null;const c=e.slice(0,u).map(f=>Ile(f)?f():f);return Te.jsxs(Te.Fragment,{children:[t===!0?Te.jsx(kle,{children:c}):Te.jsx("div",{style:{all:"inherit"},children:c}),s&&Te.jsx(iX,{size:"small",onClick:a,children:n?"Show less":`Show all (${l} more)`})]})}const z9=25,Nle=()=>{const{nvlGraph:r}=Vl();return Te.jsxs(Te.Fragment,{children:[Te.jsx(ty.Title,{children:Te.jsx(Ed,{variant:"title-4",children:"Results overview"})}),Te.jsx(ty.Content,{children:Te.jsxs("div",{className:"ndl-graph-visualization-overview-panel",children:[r.dataLookupTable.labels.length>0&&Te.jsxs("div",{className:"ndl-overview-section",children:[Te.jsx("div",{className:"ndl-overview-header",children:Te.jsxs("span",{children:["Nodes",` (${r.nodes.length.toLocaleString()})`]})}),Te.jsx("div",{className:"ndl-overview-items",children:Te.jsx(U9,{initiallyShown:z9,isButtonGroup:!0,children:r.dataLookupTable.labels.map(e=>function(){var n,i,a,o;return Te.jsxs(Ax,{type:"node",htmlAttributes:{tabIndex:-1},color:(i=(n=r.dataLookupTable.labelMetaData[e])===null||n===void 0?void 0:n.mostCommonColor)!==null&&i!==void 0?i:"",as:"span",children:[e," (",(o=(a=r.dataLookupTable.labelMetaData[e])===null||a===void 0?void 0:a.totalCount)!==null&&o!==void 0?o:0,")"]},e)})})})]}),r.dataLookupTable.types.length>0&&Te.jsxs("div",{className:"ndl-overview-relationships-section",children:[Te.jsxs("span",{className:"ndl-overview-relationships-title",children:["Relationships",` (${r.rels.length.toLocaleString()})`]}),Te.jsx("div",{className:"ndl-overview-items",children:Te.jsx(U9,{initiallyShown:z9,isButtonGroup:!0,children:r.dataLookupTable.types.map(e=>{var t,n,i,a;return Te.jsxs(Ax,{type:"relationship",htmlAttributes:{tabIndex:-1},color:(n=(t=r.dataLookupTable.typeMetaData[e])===null||t===void 0?void 0:t.mostCommonColor)!==null&&n!==void 0?n:"",as:"span",children:[e," (",(a=(i=r.dataLookupTable.typeMetaData[e])===null||i===void 0?void 0:i.totalCount)!==null&&a!==void 0?a:0,")"]},e)})})})]})]})})]})},Lle=()=>{const{selected:r}=Vl();return me.useMemo(()=>r.nodeIds.length>0||r.relationshipIds.length>0,[r])?Te.jsx(Dle,{}):Te.jsx(Nle,{})},Gw=r=>!L9&&r.ctrlKey||L9&&r.metaKey,lb=r=>r.target instanceof HTMLElement?r.target.isContentEditable||["INPUT","TEXTAREA"].includes(r.target.tagName):!1;function jle({selected:r,setSelected:e,gesture:t,interactionMode:n,setInteractionMode:i,mouseEventCallbacks:a,nvlGraph:o,highlightedNodeIds:s,highlightedRelationshipIds:u}){const l=me.useCallback(De=>{n==="select"&&De.key===" "&&i("pan")},[n,i]),c=me.useCallback(De=>{n==="pan"&&De.key===" "&&i("select")},[n,i]);me.useEffect(()=>(document.addEventListener("keydown",l),document.addEventListener("keyup",c),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",c)}),[l,c]);const{onBoxSelect:f,onLassoSelect:d,onLassoStarted:h,onBoxStarted:p,onPan:g=!0,onHover:y,onHoverNodeMargin:b,onNodeClick:_,onRelationshipClick:m,onDragStart:x,onDragEnd:E,onDrawEnded:O,onDrawStarted:S,onCanvasClick:T,onNodeDoubleClick:P,onRelationshipDoubleClick:I}=a,k=me.useCallback(De=>{lb(De)||(e({nodeIds:[],relationshipIds:[]}),typeof T=="function"&&T(De))},[T,e]),L=me.useCallback((De,Ne)=>{i("drag");const Ce=De.map(Y=>Y.id);if(r.nodeIds.length===0||Gw(Ne)){e({nodeIds:Ce,relationshipIds:r.relationshipIds});return}e({nodeIds:Ce,relationshipIds:r.relationshipIds}),typeof x=="function"&&x(De,Ne)},[e,x,r,i]),B=me.useCallback((De,Ne)=>{typeof E=="function"&&E(De,Ne),i("select")},[E,i]),j=me.useCallback(De=>{typeof S=="function"&&S(De)},[S]),z=me.useCallback((De,Ne,Ce)=>{typeof O=="function"&&O(De,Ne,Ce)},[O]),H=me.useCallback((De,Ne,Ce)=>{if(!lb(Ce)){if(Gw(Ce))if(r.nodeIds.includes(De.id)){const Q=r.nodeIds.filter(ie=>ie!==De.id);e({nodeIds:Q,relationshipIds:r.relationshipIds})}else{const Q=[...r.nodeIds,De.id];e({nodeIds:Q,relationshipIds:r.relationshipIds})}else e({nodeIds:[De.id],relationshipIds:[]});typeof _=="function"&&_(De,Ne,Ce)}},[e,r,_]),q=me.useCallback((De,Ne,Ce)=>{if(!lb(Ce)){if(Gw(Ce))if(r.relationshipIds.includes(De.id)){const Q=r.relationshipIds.filter(ie=>ie!==De.id);e({nodeIds:r.nodeIds,relationshipIds:Q})}else{const Q=[...r.relationshipIds,De.id];e({nodeIds:r.nodeIds,relationshipIds:Q})}else e({nodeIds:[],relationshipIds:[De.id]});typeof m=="function"&&m(De,Ne,Ce)}},[e,r,m]),W=me.useCallback((De,Ne,Ce)=>{lb(Ce)||typeof P=="function"&&P(De,Ne,Ce)},[P]),$=me.useCallback((De,Ne,Ce)=>{lb(Ce)||typeof I=="function"&&I(De,Ne,Ce)},[I]),J=me.useCallback((De,Ne,Ce)=>{const Y=De.map(ie=>ie.id),Q=Ne.map(ie=>ie.id);if(Gw(Ce)){const ie=r.nodeIds,we=r.relationshipIds,Ee=(Ye,ot)=>[...new Set([...Ye,...ot].filter(mt=>!Ye.includes(mt)||!ot.includes(mt)))],Me=Ee(ie,Y),Ie=Ee(we,Q);e({nodeIds:Me,relationshipIds:Ie})}else e({nodeIds:Y,relationshipIds:Q})},[e,r]),X=me.useCallback(({nodes:De,rels:Ne},Ce)=>{J(De,Ne,Ce),typeof d=="function"&&d({nodes:De,rels:Ne},Ce)},[J,d]),Z=me.useCallback(({nodes:De,rels:Ne},Ce)=>{J(De,Ne,Ce),typeof f=="function"&&f({nodes:De,rels:Ne},Ce)},[J,f]),ue=n==="draw",re=n==="select",ne=re&&t==="box",le=re&&t==="lasso",ce=n==="pan"||re&&t==="single",pe=n==="drag"||n==="select",fe=me.useMemo(()=>{var De;return Object.assign(Object.assign({},a),{onBoxSelect:ne?Z:!1,onBoxStarted:ne?p:!1,onCanvasClick:re?k:!1,onDragEnd:pe?B:!1,onDragStart:pe?L:!1,onDrawEnded:ue?z:!1,onDrawStarted:ue?j:!1,onHover:re?y:!1,onHoverNodeMargin:ue?b:!1,onLassoSelect:le?X:!1,onLassoStarted:le?h:!1,onNodeClick:re?H:!1,onNodeDoubleClick:re?W:!1,onPan:ce?g:!1,onRelationshipClick:re?q:!1,onRelationshipDoubleClick:re?$:!1,onZoom:(De=a.onZoom)!==null&&De!==void 0?De:!0})},[pe,ne,le,ce,ue,re,a,Z,p,k,B,L,z,j,y,b,X,h,H,W,g,q,$]),se=me.useMemo(()=>({nodeIds:new Set(r.nodeIds),relIds:new Set(r.relationshipIds)}),[r]),de=me.useMemo(()=>s!==void 0?new Set(s):null,[s]),ge=me.useMemo(()=>u!==void 0?new Set(u):null,[u]),Oe=me.useMemo(()=>o.nodes.map(De=>Object.assign(Object.assign({},De),{disabled:de?!de.has(De.id):!1,selected:se.nodeIds.has(De.id)})),[o.nodes,se,de]),ke=me.useMemo(()=>o.rels.map(De=>Object.assign(Object.assign({},De),{disabled:ge?!ge.has(De.id):!1,selected:se.relIds.has(De.id)})),[o.rels,se,ge]);return{nodesWithState:Oe,relsWithState:ke,wrappedMouseEventCallbacks:fe}}var Ble=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);iTe.jsx("div",{className:Vn(Fle[t],e),children:r}),Ule={disableTelemetry:!0,disableWebGL:!0,maxZoom:3,minZoom:.05,relationshipThreshold:.55},Hw={bottomLeftIsland:null,bottomRightIsland:Te.jsxs(cM,{orientation:"vertical",isFloating:!0,size:"small",children:[Te.jsx(jG,{})," ",Te.jsx(BG,{})," ",Te.jsx(FG,{})]}),topLeftIsland:null,topRightIsland:Te.jsxs("div",{className:"ndl-graph-visualization-default-download-group",children:[Te.jsx(zG,{})," ",Te.jsx(UG,{})]})};function io(r){var e,t,{nvlRef:n,nvlCallbacks:i,nvlOptions:a,sidepanel:o,nodes:s,rels:u,highlightedNodeIds:l,highlightedRelationshipIds:c,topLeftIsland:f=Hw.topLeftIsland,topRightIsland:d=Hw.topRightIsland,bottomLeftIsland:h=Hw.bottomLeftIsland,bottomRightIsland:p=Hw.bottomRightIsland,gesture:g="single",setGesture:y,layout:b,setLayout:_,selected:m,setSelected:x,interactionMode:E,setInteractionMode:O,mouseEventCallbacks:S={},className:T,style:P,htmlAttributes:I,ref:k,as:L}=r,B=Ble(r,["nvlRef","nvlCallbacks","nvlOptions","sidepanel","nodes","rels","highlightedNodeIds","highlightedRelationshipIds","topLeftIsland","topRightIsland","bottomLeftIsland","bottomRightIsland","gesture","setGesture","layout","setLayout","selected","setSelected","interactionMode","setInteractionMode","mouseEventCallbacks","className","style","htmlAttributes","ref","as"]);const j=me.useMemo(()=>n??oo.createRef(),[n]),z=me.useId(),{theme:H}=E2(),{bg:q,border:W,text:$}=Xu.theme[H].color.neutral,[J,X]=me.useState(0);me.useEffect(()=>{X(Y=>Y+1)},[H]);const[Z,ue]=Lg({isControlled:E!==void 0,onChange:O,state:E??"select"}),[re,ne]=Lg({isControlled:m!==void 0,onChange:x,state:m??{nodeIds:[],relationshipIds:[]}}),[le,ce]=Lg({isControlled:b!==void 0,onChange:_,state:b??"d3Force"}),pe=me.useMemo(()=>Ele(s,u),[s,u]),{nodesWithState:fe,relsWithState:se,wrappedMouseEventCallbacks:de}=jle({gesture:g,highlightedNodeIds:l,highlightedRelationshipIds:c,interactionMode:Z,mouseEventCallbacks:S,nvlGraph:pe,selected:re,setInteractionMode:ue,setSelected:ne}),[ge,Oe]=Lg({isControlled:(o==null?void 0:o.isSidePanelOpen)!==void 0,onChange:o==null?void 0:o.setIsSidePanelOpen,state:(e=o==null?void 0:o.isSidePanelOpen)!==null&&e!==void 0?e:!0}),[ke,De]=Lg({isControlled:(o==null?void 0:o.sidePanelWidth)!==void 0,onChange:o==null?void 0:o.onSidePanelResize,state:(t=o==null?void 0:o.sidePanelWidth)!==null&&t!==void 0?t:400}),Ne=me.useMemo(()=>o===void 0?{children:Te.jsx(io.SingleSelectionSidePanelContents,{}),isSidePanelOpen:ge,onSidePanelResize:De,setIsSidePanelOpen:Oe,sidePanelWidth:ke}:o,[o,ge,Oe,ke,De]),Ce=L??"div";return Te.jsx(Ce,Object.assign({ref:k,className:Vn("ndl-graph-visualization-container",T),style:P},I,{children:Te.jsxs(NG.Provider,{value:{gesture:g,interactionMode:Z,layout:le,nvlGraph:pe,nvlInstance:j,selected:re,setGesture:y,setLayout:ce,sidepanel:Ne},children:[Te.jsxs("div",{className:"ndl-graph-visualization",children:[Te.jsx(Que,Object.assign({layout:le,nodes:fe,rels:se,nvlOptions:Object.assign(Object.assign(Object.assign({},Ule),{instanceId:z,styling:{defaultRelationshipColor:W.strongest,disabledItemColor:q.strong,disabledItemFontColor:$.weakest,dropShadowColor:W.weak,selectedInnerBorderColor:q.default}}),a),nvlCallbacks:Object.assign({onLayoutComputing(Y){var Q;Y||(Q=j.current)===null||Q===void 0||Q.fit(j.current.getNodes().map(ie=>ie.id),{noPan:!0})}},i),mouseEventCallbacks:de,ref:j},B),J),f!==null&&Te.jsx(Vw,{placement:"top-left",children:f}),d!==null&&Te.jsx(Vw,{placement:"top-right",children:d}),h!==null&&Te.jsx(Vw,{placement:"bottom-left",children:h}),p!==null&&Te.jsx(Vw,{placement:"bottom-right",children:p})]}),Ne&&Te.jsx(ty,{sidepanel:Ne})]})}))}io.ZoomInButton=jG;io.ZoomOutButton=BG;io.ZoomToFitButton=FG;io.ToggleSidePanelButton=UG;io.DownloadButton=zG;io.BoxSelectButton=ile;io.LassoSelectButton=ale;io.SingleSelectButton=nle;io.SearchButton=ole;io.SingleSelectionSidePanelContents=Lle;io.LayoutSelectButton=ule;io.GestureSelectButton=cle;function zle(r){return Array.isArray(r)&&r.every(e=>typeof e=="string")}function qle(r){return r.map(e=>{const t=zle(e.properties.labels)?e.properties.labels:[];return{...e,id:e.id,labels:e.caption?[e.caption]:t,properties:Object.entries(e.properties).reduce((n,[i,a])=>{if(i==="labels")return n;const o=typeof a;return n[i]={stringified:o==="string"?`"${a}"`:String(a),type:o},n},{})}})}function Gle(r){return r.map(e=>({...e,id:e.id,type:e.caption??e.properties.type??"",properties:Object.entries(e.properties).reduce((t,[n,i])=>(n==="type"||(t[n]={stringified:String(i),type:typeof i}),t),{}),from:e.from,to:e.to}))}class Vle extends me.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("[neo4j-viz] Rendering error:",e,t.componentStack)}render(){return this.state.error?Te.jsxs("div",{style:{padding:"24px",fontFamily:"system-ui, sans-serif",color:"#c0392b",background:"#fdf0ef",borderRadius:"8px",border:"1px solid #e6b0aa",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center"},children:[Te.jsx("h3",{style:{margin:"0 0 8px"},children:"Graph rendering failed"}),Te.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",fontSize:"13px",color:"#6c3428"},children:this.state.error.message})]}):this.props.children}}function Hle(){if(document.body.classList.contains("vscode-light"))return"light";if(document.body.classList.contains("vscode-dark"))return"dark";const e=window.getComputedStyle(document.body,null).getPropertyValue("background-color").match(/\d+/g);if(!e||e.length<3)return"light";const t=Number(e[0])*.2126+Number(e[1])*.7152+Number(e[2])*.0722;return t===0&&e.length>3&&e[3]==="0"?"light":t<128?"dark":"light"}function Wle(r){me.useEffect(()=>{const e=r==="auto"?Hle():r;document.documentElement.className=`ndl-theme-${e}`},[r])}function Yle(){const[r]=Wy("nodes"),[e]=Wy("relationships"),[t,n]=Wy("options"),[i]=Wy("height"),[a]=Wy("width"),[o]=Wy("theme"),[s,u]=me.useState("box"),{layout:l,nvlOptions:c,zoom:f,pan:d,layoutOptions:h,showLayoutButton:p}=t??{},g=S=>{n({...t,layout:S})};Wle(o??"auto");const[y,b]=me.useMemo(()=>[qle(r??[]),Gle(e??[])],[r,e]),_=me.useMemo(()=>({...c,minZoom:0,maxZoom:1e3,disableWebWorkers:!0}),[c]),[m,x]=me.useState(!1),[E,O]=me.useState(300);return Te.jsx("div",{style:{height:i??"600px",width:a??"100%"},children:Te.jsx(io,{nodes:y,rels:b,gesture:s,setGesture:u,layout:l,setLayout:g,nvlOptions:_,zoom:f,pan:d,layoutOptions:h,sidepanel:{isSidePanelOpen:m,setIsSidePanelOpen:x,onSidePanelResize:O,sidePanelWidth:E,children:Te.jsx(io.SingleSelectionSidePanelContents,{})},topRightIsland:Te.jsxs(cM,{size:"medium",children:[Te.jsx(io.DownloadButton,{}),Te.jsx(io.ToggleSidePanelButton,{})]}),bottomRightIsland:Te.jsxs(cM,{size:"medium",orientation:"vertical",children:[Te.jsx(io.GestureSelectButton,{menuPlacement:"top-end-bottom-end"}),Te.jsx(tM,{orientation:"vertical"}),Te.jsx(io.ZoomInButton,{}),Te.jsx(io.ZoomOutButton,{}),Te.jsx(io.ZoomToFitButton,{}),p&&Te.jsxs(Te.Fragment,{children:[Te.jsx(tM,{orientation:"vertical"}),Te.jsx(io.LayoutSelectButton,{menuPlacement:"top-end-bottom-end"})]})]})})})}function Xle(){return Te.jsx(Vle,{children:Te.jsx(Yle,{})})}const $le=dV(Xle),Kle={render:$le},pE=window.__NEO4J_VIZ_DATA__;if(!pE)throw document.body.innerHTML=`

Missing visualization data

Expected window.__NEO4J_VIZ_DATA__ to be set.

diff --git a/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/widget.js b/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/widget.js index da1f00b..a9f4524 100644 --- a/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/widget.js +++ b/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/widget.js @@ -50,10 +50,10 @@ var VE = { exports: {} }, U0 = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var QD; +var JD; function JG() { - if (QD) return U0; - QD = 1; + if (JD) return U0; + JD = 1; var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment"); function t(n, i, a) { var o = null; @@ -72,9 +72,9 @@ function JG() { } return U0.Fragment = e, U0.jsx = t, U0.jsxs = t, U0; } -var JD; +var ek; function eV() { - return JD || (JD = 1, VE.exports = JG()), VE.exports; + return ek || (ek = 1, VE.exports = JG()), VE.exports; } var Te = eV(), HE = { exports: {} }, fn = {}; /** @@ -86,10 +86,10 @@ var Te = eV(), HE = { exports: {} }, fn = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var ek; +var tk; function tV() { - if (ek) return fn; - ek = 1; + if (tk) return fn; + tk = 1; var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), o = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), d = Symbol.iterator; function h(X) { return X === null || typeof X != "object" ? null : (X = d && X[d] || X["@@iterator"], typeof X == "function" ? X : null); @@ -445,14 +445,14 @@ function tV() { return S.H.useTransition(); }, fn.version = "19.2.4", fn; } -var tk; -function x5() { - return tk || (tk = 1, HE.exports = tV()), HE.exports; +var rk; +function E5() { + return rk || (rk = 1, HE.exports = tV()), HE.exports; } -var me = x5(); -const ao = /* @__PURE__ */ Bp(me), F9 = /* @__PURE__ */ ZG({ +var me = E5(); +const oo = /* @__PURE__ */ Bp(me), U9 = /* @__PURE__ */ ZG({ __proto__: null, - default: ao + default: oo }, [me]); var WE = { exports: {} }, z0 = {}, YE = { exports: {} }, XE = {}; /** @@ -464,9 +464,9 @@ var WE = { exports: {} }, z0 = {}, YE = { exports: {} }, XE = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var rk; +var nk; function rV() { - return rk || (rk = 1, (function(r) { + return nk || (nk = 1, (function(r) { function e(H, q) { var W = H.length; H.push(q); @@ -684,9 +684,9 @@ function rV() { }; })(XE)), XE; } -var nk; +var ik; function nV() { - return nk || (nk = 1, YE.exports = rV()), YE.exports; + return ik || (ik = 1, YE.exports = rV()), YE.exports; } var $E = { exports: {} }, Hu = {}; /** @@ -698,11 +698,11 @@ var $E = { exports: {} }, Hu = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var ik; +var ak; function iV() { - if (ik) return Hu; - ik = 1; - var r = x5(); + if (ak) return Hu; + ak = 1; + var r = E5(); function e(u) { var l = "https://react.dev/errors/" + u; if (1 < arguments.length) { @@ -831,10 +831,10 @@ function iV() { return o.H.useHostTransitionStatus(); }, Hu.version = "19.2.4", Hu; } -var ak; -function U9() { - if (ak) return $E.exports; - ak = 1; +var ok; +function z9() { + if (ok) return $E.exports; + ok = 1; function r() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { @@ -854,11 +854,11 @@ function U9() { * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var ok; +var sk; function aV() { - if (ok) return z0; - ok = 1; - var r = nV(), e = x5(), t = U9(); + if (sk) return z0; + sk = 1; + var r = nV(), e = E5(), t = z9(); function n(v) { var w = "https://react.dev/errors/" + v; if (1 < arguments.length) { @@ -1798,8 +1798,8 @@ Error generating stack: ` + M.message + ` function of(v) { return v = v.target || v.srcElement || window, v.correspondingUseElement && (v = v.correspondingUseElement), v.nodeType === 3 ? v.parentNode : v; } - var gu = null, _o = null; - function wo(v) { + var gu = null, wo = null; + function xo(v) { var w = Bt(v); if (w && (v = w.stateNode)) { var C = v[Nn] || null; @@ -1857,8 +1857,8 @@ Error generating stack: ` + M.message + ` var M = v(w); return M; } finally { - if (Vf = !1, (gu !== null || _o !== null) && (Ey(), gu && (w = gu, v = _o, _o = gu = null, wo(w), v))) - for (w = 0; w < v.length; w++) wo(v[w]); + if (Vf = !1, (gu !== null || wo !== null) && (Ey(), gu && (w = gu, v = wo, wo = gu = null, xo(w), v))) + for (w = 0; w < v.length; w++) xo(v[w]); } } function yu(v, w) { @@ -1891,8 +1891,8 @@ Error generating stack: ` + M.message + ` ); return C; } - var so = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), el = !1; - if (so) + var uo = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), el = !1; + if (uo) try { var Kl = {}; Object.defineProperty(Kl, "passive", { @@ -1976,7 +1976,7 @@ Error generating stack: ` + M.message + ` movementY: function(v) { return "movementY" in v ? v.movementY : Jl; } - }), lf = Oa(mu), ya = f({}, mu, { dataTransfer: 0 }), ma = Oa(ya), bu = f({}, Ql, { relatedTarget: 0 }), uo = Oa(bu), Ho = f({}, tl, { + }), lf = Oa(mu), ya = f({}, mu, { dataTransfer: 0 }), ma = Oa(ya), bu = f({}, Ql, { relatedTarget: 0 }), lo = Oa(bu), Ho = f({}, tl, { animationName: 0, elapsedTime: 0, pseudoElement: 0 @@ -2109,9 +2109,9 @@ Error generating stack: ` + M.message + ` }), Hf = Oa(Sv), il = f({}, tl, { newState: 0, oldState: 0 - }), Ov = Oa(il), Wf = [9, 13, 27, 32], ff = so && "CompositionEvent" in window, Vs = null; - so && "documentMode" in document && (Vs = document.documentMode); - var _u = so && "TextEvent" in window && !Vs, kc = so && (!ff || Vs && 8 < Vs && 11 >= Vs), Ah = " ", tc = !1; + }), Ov = Oa(il), Wf = [9, 13, 27, 32], ff = uo && "CompositionEvent" in window, Vs = null; + uo && "documentMode" in document && (Vs = document.documentMode); + var _u = uo && "TextEvent" in window && !Vs, kc = uo && (!ff || Vs && 8 < Vs && 11 >= Vs), Ah = " ", tc = !1; function Yf(v, w) { switch (v) { case "keyup": @@ -2130,7 +2130,7 @@ Error generating stack: ` + M.message + ` return v = v.detail, typeof v == "object" && "data" in v ? v.data : null; } var wu = !1; - function xo(v, w) { + function Eo(v, w) { switch (v) { case "compositionend": return Ic(w); @@ -2183,7 +2183,7 @@ Error generating stack: ` + M.message + ` return w === "input" ? !!Hs[v.type] : w === "textarea"; } function Rh(v, w, C, M) { - gu ? _o ? _o.push(M) : _o = [M] : gu = M, w = hg(w, "onChange"), 0 < w.length && (C = new uf( + gu ? wo ? wo.push(M) : wo = [M] : gu = M, w = hg(w, "onChange"), 0 < w.length && (C = new uf( "onChange", "change", null, @@ -2203,9 +2203,9 @@ Error generating stack: ` + M.message + ` if (v === "change") return w; } var Lc = !1; - if (so) { + if (uo) { var Nd; - if (so) { + if (uo) { var Ph = "oninput" in document; if (!Ph) { var hf = document.createElement("div"); @@ -2307,7 +2307,7 @@ Error generating stack: ` + M.message + ` var w = v && v.nodeName && v.nodeName.toLowerCase(); return w && (w === "input" && (v.type === "text" || v.type === "search" || v.type === "tel" || v.type === "url" || v.type === "password") || w === "textarea" || v.contentEditable === "true"); } - var ic = so && "documentMode" in document && 11 >= document.documentMode, We = null, ft = null, ut = null, Kt = !1; + var ic = uo && "documentMode" in document && 11 >= document.documentMode, We = null, ft = null, ut = null, Kt = !1; function Pr(v, w, C) { var M = C.window === C ? C.document : C.nodeType === 9 ? C : C.ownerDocument; Kt || We == null || We !== Hl(M) || (M = We, "selectionStart" in M && Ws(M) ? M = { start: M.selectionStart, end: M.selectionEnd } : (M = (M.ownerDocument && M.ownerDocument.defaultView || window).getSelection(), M = { @@ -2336,7 +2336,7 @@ Error generating stack: ` + M.message + ` transitioncancel: Qr("Transition", "TransitionCancel"), transitionend: Qr("Transition", "TransitionEnd") }, be = {}, ol = {}; - so && (ol = document.createElement("div").style, "AnimationEvent" in window || (delete oi.animationend.animation, delete oi.animationiteration.animation, delete oi.animationstart.animation), "TransitionEvent" in window || delete oi.transitionend.transition); + uo && (ol = document.createElement("div").style, "AnimationEvent" in window || (delete oi.animationend.animation, delete oi.animationiteration.animation, delete oi.animationstart.animation), "TransitionEvent" in window || delete oi.transitionend.transition); function Wo(v) { if (be[v]) return be[v]; if (!oi[v]) return v; @@ -2350,7 +2350,7 @@ Error generating stack: ` + M.message + ` " " ); gf.push("scrollEnd"); - function Eo(v, w) { + function So(v, w) { Ld.set(v, w), ki(w, [v]); } var jd = typeof reportError == "function" ? reportError : function(v) { @@ -2367,17 +2367,17 @@ Error generating stack: ` + M.message + ` return; } console.error(v); - }, So = [], Eu = 0, ul = 0; + }, Oo = [], Eu = 0, ul = 0; function Ys() { for (var v = Eu, w = ul = Eu = 0; w < v; ) { - var C = So[w]; - So[w++] = null; - var M = So[w]; - So[w++] = null; - var F = So[w]; - So[w++] = null; - var V = So[w]; - if (So[w++] = null, M !== null && F !== null) { + var C = Oo[w]; + Oo[w++] = null; + var M = Oo[w]; + Oo[w++] = null; + var F = Oo[w]; + Oo[w++] = null; + var V = Oo[w]; + if (Oo[w++] = null, M !== null && F !== null) { var ae = M.pending; ae === null ? F.next = F : (F.next = ae.next, ae.next = F), M.pending = F; } @@ -2385,7 +2385,7 @@ Error generating stack: ` + M.message + ` } } function ac(v, w, C, M) { - So[Eu++] = v, So[Eu++] = w, So[Eu++] = C, So[Eu++] = M, ul |= M, v.lanes |= M, v = v.alternate, v !== null && (v.lanes |= M); + Oo[Eu++] = v, Oo[Eu++] = w, Oo[Eu++] = C, Oo[Eu++] = M, ul |= M, v.lanes |= M, v = v.alternate, v !== null && (v.lanes |= M); } function ys(v, w, C, M) { return ac(v, w, C, M), Ka(v); @@ -2418,7 +2418,7 @@ Error generating stack: ` + M.message + ` function Ba(v) { return v = v.prototype, !(!v || !v.isReactComponent); } - function Oo(v, w) { + function To(v, w) { var C = v.alternate; return C === null ? (C = Yi( v.tag, @@ -2522,12 +2522,12 @@ Error generating stack: ` + M.message + ` stack: Y(w) }; } - var cl = [], bs = 0, Ri = null, Sn = 0, To = [], Co = 0, Xi = null, Xo = 1, Fa = ""; + var cl = [], bs = 0, Ri = null, Sn = 0, Co = [], Ao = 0, Xi = null, Xo = 1, Fa = ""; function Ua(v, w) { cl[bs++] = Sn, cl[bs++] = Ri, Ri = v, Sn = w; } function fl(v, w, C) { - To[Co++] = Xo, To[Co++] = Fa, To[Co++] = Xi, Xi = v; + Co[Ao++] = Xo, Co[Ao++] = Fa, Co[Ao++] = Xi, Xi = v; var M = Xo; v = Fa; var F = 32 - Ze(M) - 1; @@ -2546,10 +2546,10 @@ Error generating stack: ` + M.message + ` for (; v === Ri; ) Ri = cl[--bs], cl[bs] = null, Sn = cl[--bs], cl[bs] = null; for (; v === Xi; ) - Xi = To[--Co], To[Co] = null, Fa = To[--Co], To[Co] = null, Xo = To[--Co], To[Co] = null; + Xi = Co[--Ao], Co[Ao] = null, Fa = Co[--Ao], Co[Ao] = null, Xo = Co[--Ao], Co[Ao] = null; } function lc(v, w) { - To[Co++] = Xo, To[Co++] = Fa, To[Co++] = Xi, Xo = w.id, Fa = w.overflow, Xi = v; + Co[Ao++] = Xo, Co[Ao++] = Fa, Co[Ao++] = Xi, Xo = w.id, Fa = w.overflow, Xi = v; } var Si = null, Rn = null, hn = !1, Ou = null, $o = !1, mf = Error(n(519)); function dl(v) { @@ -2644,8 +2644,8 @@ Error generating stack: ` + M.message + ` } function Tu() { var v = Ou; - return v !== null && (go === null ? go = v : go.push.apply( - go, + return v !== null && (yo === null ? yo = v : yo.push.apply( + yo, v ), Ou = null), v; } @@ -2795,7 +2795,7 @@ Error generating stack: ` + M.message + ` }); } var pl = null, _f = 0, Pu = 0, gl = null; - function lo(v, w) { + function co(v, w) { if (pl === null) { var C = pl = []; _f = 0, Pu = Rl(), gl = { @@ -2838,7 +2838,7 @@ Error generating stack: ` + M.message + ` } var Qo = H.S; H.S = function(v, w) { - o_ = Ie(), typeof w == "object" && w !== null && typeof w.then == "function" && lo(v, w), Qo !== null && Qo(v, w); + o_ = Ie(), typeof w == "object" && w !== null && typeof w.then == "function" && co(v, w), Qo !== null && Qo(v, w); }; var Ta = X(null); function Mu() { @@ -2862,7 +2862,7 @@ Error generating stack: ` + M.message + ` case "fulfilled": return w.value; case "rejected": - throw v = w.reason, co(v), v; + throw v = w.reason, fo(v), v; default: if (typeof w.status == "string") w.then(Gs, Gs); else { @@ -2887,12 +2887,12 @@ Error generating stack: ` + M.message + ` case "fulfilled": return w.value; case "rejected": - throw v = w.reason, co(v), v; + throw v = w.reason, fo(v), v; } throw Ki = w, Fc; } } - function Ao(v) { + function Ro(v) { try { var w = v._init; return w(v._payload); @@ -2906,16 +2906,16 @@ Error generating stack: ` + M.message + ` var v = Ki; return Ki = null, v; } - function co(v) { + function fo(v) { if (v === Fc || v === Ca) throw Error(n(483)); } - var ku = null, Ro = 0; + var ku = null, Po = 0; function Uc(v) { - var w = Ro; - return Ro += 1, ku === null && (ku = []), ml(ku, v, w); + var w = Po; + return Po += 1, ku === null && (ku = []), ml(ku, v, w); } - function Po(v, w) { + function Mo(v, w) { w = w.props.ref, v.ref = w !== void 0 ? w : null; } function Qa(v, w) { @@ -2945,7 +2945,7 @@ Error generating stack: ` + M.message + ` return Ve; } function F(Xe, Ve) { - return Xe = Oo(Xe, Ve), Xe.index = 0, Xe.sibling = null, Xe; + return Xe = To(Xe, Ve), Xe.index = 0, Xe.sibling = null, Xe; } function V(Xe, Ve, rt) { return Xe.index = rt, v ? (rt = Xe.alternate, rt !== null ? (rt = rt.index, rt < Ve ? (Xe.flags |= 67108866, Ve) : rt) : (Xe.flags |= 67108866, Ve)) : (Xe.flags |= 1048576, Ve); @@ -2964,14 +2964,14 @@ Error generating stack: ` + M.message + ` rt.props.children, bt, rt.key - ) : Ve !== null && (Ve.elementType === wr || typeof wr == "object" && wr !== null && wr.$$typeof === T && Ao(wr) === Ve.type) ? (Ve = F(Ve, rt.props), Po(Ve, rt), Ve.return = Xe, Ve) : (Ve = oc( + ) : Ve !== null && (Ve.elementType === wr || typeof wr == "object" && wr !== null && wr.$$typeof === T && Ro(wr) === Ve.type) ? (Ve = F(Ve, rt.props), Mo(Ve, rt), Ve.return = Xe, Ve) : (Ve = oc( rt.type, rt.key, rt.props, null, Xe.mode, bt - ), Po(Ve, rt), Ve.return = Xe, Ve); + ), Mo(Ve, rt), Ve.return = Xe, Ve); } function it(Xe, Ve, rt, bt) { return Ve === null || Ve.tag !== 4 || Ve.stateNode.containerInfo !== rt.containerInfo || Ve.stateNode.implementation !== rt.implementation ? (Ve = yf(rt, Xe.mode, bt), Ve.return = Xe, Ve) : (Ve = F(Ve, rt.children || []), Ve.return = Xe, Ve); @@ -3001,7 +3001,7 @@ Error generating stack: ` + M.message + ` null, Xe.mode, rt - ), Po(rt, Ve), rt.return = Xe, rt; + ), Mo(rt, Ve), rt.return = Xe, rt; case p: return Ve = yf( Ve, @@ -3009,7 +3009,7 @@ Error generating stack: ` + M.message + ` rt ), Ve.return = Xe, Ve; case T: - return Ve = Ao(Ve), _t(Xe, Ve, rt); + return Ve = Ro(Ve), _t(Xe, Ve, rt); } if (z(Ve) || L(Ve)) return Ve = sc( @@ -3041,7 +3041,7 @@ Error generating stack: ` + M.message + ` case p: return rt.key === wr ? it(Xe, Ve, rt, bt) : null; case T: - return rt = Ao(rt), at(Xe, Ve, rt, bt); + return rt = Ro(rt), at(Xe, Ve, rt, bt); } if (z(rt) || L(rt)) return wr !== null ? null : ht(Xe, Ve, rt, bt, null); @@ -3077,7 +3077,7 @@ Error generating stack: ` + M.message + ` bt.key === null ? rt : bt.key ) || null, it(Ve, Xe, bt, wr); case T: - return bt = Ao(bt), lt( + return bt = Ro(bt), lt( Xe, Ve, rt, @@ -3193,11 +3193,11 @@ Error generating stack: ` + M.message + ` ), bt.return = Xe, Xe = bt; break e; } - } else if (Ve.elementType === wr || typeof wr == "object" && wr !== null && wr.$$typeof === T && Ao(wr) === Ve.type) { + } else if (Ve.elementType === wr || typeof wr == "object" && wr !== null && wr.$$typeof === T && Ro(wr) === Ve.type) { C( Xe, Ve.sibling - ), bt = F(Ve, rt.props), Po(bt, rt), bt.return = Xe, Xe = bt; + ), bt = F(Ve, rt.props), Mo(bt, rt), bt.return = Xe, Xe = bt; break e; } C(Xe, Ve); @@ -3217,7 +3217,7 @@ Error generating stack: ` + M.message + ` null, Xe.mode, bt - ), Po(bt, rt), bt.return = Xe, Xe = bt); + ), Mo(bt, rt), bt.return = Xe, Xe = bt); } return ae(Xe); case p: @@ -3241,7 +3241,7 @@ Error generating stack: ` + M.message + ` } return ae(Xe); case T: - return rt = Ao(rt), Ti( + return rt = Ro(rt), Ti( Xe, Ve, rt, @@ -3284,7 +3284,7 @@ Error generating stack: ` + M.message + ` } return function(Xe, Ve, rt, bt) { try { - Ro = 0; + Po = 0; var wr = Ti( Xe, Ve, @@ -3301,7 +3301,7 @@ Error generating stack: ` + M.message + ` }; } var Iu = rd(!0), wf = rd(!1), es = !1; - function fo(v) { + function ho(v) { v.updateQueue = { baseState: v.memoizedState, firstBaseUpdate: null, @@ -3458,22 +3458,22 @@ Error generating stack: ` + M.message + ` function Lu() { Ga = Os.current, Z(Qs), Z(Os); } - var er = X(null), ho = null; + var er = X(null), vo = null; function Js(v) { var w = v.alternate; - ue(Pi, Pi.current & 1), ue(er, v), ho === null && (w === null || Qs.current !== null || w.memoizedState !== null) && (ho = v); + ue(Pi, Pi.current & 1), ue(er, v), vo === null && (w === null || Qs.current !== null || w.memoizedState !== null) && (vo = v); } function Ts(v) { - ue(Pi, Pi.current), ue(er, v), ho === null && (ho = v); + ue(Pi, Pi.current), ue(er, v), vo === null && (vo = v); } function id(v) { - v.tag === 22 ? (ue(Pi, Pi.current), ue(er, v), ho === null && (ho = v)) : Mo(); + v.tag === 22 ? (ue(Pi, Pi.current), ue(er, v), vo === null && (vo = v)) : Do(); } - function Mo() { + function Do() { ue(Pi, Pi.current), ue(er, er.current); } function Wn(v) { - Z(er), ho === v && (ho = null), Z(Pi); + Z(er), vo === v && (vo = null), Z(Pi); } var Pi = X(0); function ts(v) { @@ -4065,21 +4065,21 @@ Error generating stack: ` + M.message + ` Fe, M ); - Do( + ko( v, w, ht, Al(v) ); } else - Do( + ko( v, w, M, Al(v) ); } catch (_t) { - Do( + ko( v, w, { then: function() { @@ -4138,7 +4138,7 @@ Error generating stack: ` + M.message + ` } function $p(v) { var w = Xp(v); - w.next === null && (w = v.alternate.memoizedState), Do( + w.next === null && (w = v.alternate.memoizedState), ko( v, w.next.queue, {}, @@ -4182,9 +4182,9 @@ Error generating stack: ` + M.message + ` } function Kp(v, w, C) { var M = Al(); - Do(v, w, C, M); + ko(v, w, C, M); } - function Do(v, w, C, M) { + function ko(v, w, C, M) { var F = { lane: M, revertLane: 0, @@ -4630,7 +4630,7 @@ Error generating stack: ` + M.message + ` switch (C.tag) { case 31: case 13: - return ho === null ? Sy() : C.alternate === null && qi === 0 && (qi = 3), C.flags &= -257, C.flags |= 65536, C.lanes = F, M === Jo ? C.flags |= 16384 : (w = C.updateQueue, w === null ? C.updateQueue = /* @__PURE__ */ new Set([M]) : w.add(M), m0(v, M, F)), !1; + return vo === null ? Sy() : C.alternate === null && qi === 0 && (qi = 3), C.flags &= -257, C.flags |= 65536, C.lanes = F, M === Jo ? C.flags |= 16384 : (w = C.updateQueue, w === null ? C.updateQueue = /* @__PURE__ */ new Set([M]) : w.add(M), m0(v, M, F)), !1; case 22: return C.flags |= 65536, M === Jo ? C.flags |= 16384 : (w = C.updateQueue, w === null ? (w = { transitions: null, @@ -4721,7 +4721,7 @@ Error generating stack: ` + M.message + ` if (C = C.compare, C = C !== null ? C : nc, C(ae, M) && v.ref === w.ref) return wc(v, w, F); } - return w.flags |= 1, v = Oo(V, M), v.ref = w.ref, v.return = w, w.child = v; + return w.flags |= 1, v = To(V, M), v.ref = w.ref, v.return = w, w.child = v; } function Kr(v, w, C, M, F) { if (v !== null) { @@ -4776,10 +4776,10 @@ Error generating stack: ` + M.message + ` M ); } else - V !== null ? (Jf(w, V.cachePool), zc(w, V), Mo(), w.memoizedState = null) : (v !== null && Jf(w, null), Qi(), Mo()); + V !== null ? (Jf(w, V.cachePool), zc(w, V), Do(), w.memoizedState = null) : (v !== null && Jf(w, null), Qi(), Do()); return la(v, w, F, C), w.child; } - function ko(v, w) { + function Io(v, w) { return v !== null && v.tag === 22 || w.stateNode !== null || (w.stateNode = { _visibility: 1, _pendingMarkers: null, @@ -4800,7 +4800,7 @@ Error generating stack: ` + M.message + ` v.mode ), w.ref = v.ref, v.child = w, w.return = v, w; } - function vo(v, w, C) { + function po(v, w, C) { return Iu(w, v.child, null, C), v = Dn(w, w.pendingProps), v.flags |= 2, Wn(w), w.memoizedState = null, v; } function dy(v, w, C) { @@ -4808,7 +4808,7 @@ Error generating stack: ` + M.message + ` if (w.flags &= -129, v === null) { if (hn) { if (M.mode === "hidden") - return v = Dn(w, M), w.lanes = 536870912, ko(null, v); + return v = Dn(w, M), w.lanes = 536870912, Io(null, v); if (Ts(w), (v = Rn) ? (v = M_( v, $o @@ -4827,7 +4827,7 @@ Error generating stack: ` + M.message + ` var ae = V.dehydrated; if (Ts(w), F) if (w.flags & 256) - w.flags &= -257, w = vo( + w.flags &= -257, w = po( v, w, C @@ -4838,7 +4838,7 @@ Error generating stack: ` + M.message + ` else if (ea || za(v, w, C, !1), F = (C & v.childLanes) !== 0, ea || F) { if (M = Hr, M !== null && (ae = Fr(M, C), ae !== 0 && ae !== V.retryLane)) throw V.retryLane = ae, ms(v, ae), zu(M, v, ae), _c; - Sy(), w = vo( + Sy(), w = po( v, w, C @@ -4847,7 +4847,7 @@ Error generating stack: ` + M.message + ` v = V.treeContext, Rn = Ec(ae.nextSibling), Si = w, hn = !0, Ou = null, $o = !1, v !== null && lc(w, v), w = Dn(w, M), w.flags |= 4096; return w; } - return v = Oo(v.child, { + return v = To(v.child, { mode: M.mode, children: M.children }), v.ref = w.ref, w.child = v, v.return = w, v; @@ -4883,7 +4883,7 @@ Error generating stack: ` + M.message + ` function Qp(v, w, C, M, F) { if (Ru(w), w.stateNode === null) { var V = Su, ae = C.contextType; - typeof ae == "object" && ae !== null && (V = _a(ae)), V = new C(M, V), w.memoizedState = V.state !== null && V.state !== void 0 ? V.state : null, V.updater = cd, w.stateNode = V, V._reactInternals = w, V = w.stateNode, V.props = M, V.state = w.memoizedState, V.refs = {}, fo(w), ae = C.contextType, V.context = typeof ae == "object" && ae !== null ? _a(ae) : Su, V.state = w.memoizedState, ae = C.getDerivedStateFromProps, typeof ae == "function" && (Pv( + typeof ae == "object" && ae !== null && (V = _a(ae)), V = new C(M, V), w.memoizedState = V.state !== null && V.state !== void 0 ? V.state : null, V.updater = cd, w.stateNode = V, V._reactInternals = w, V = w.stateNode, V.props = M, V.state = w.memoizedState, V.refs = {}, ho(w), ae = C.contextType, V.context = typeof ae == "object" && ae !== null ? _a(ae) : Su, V.state = w.memoizedState, ae = C.getDerivedStateFromProps, typeof ae == "function" && (Pv( w, C, ae, @@ -4973,13 +4973,13 @@ Error generating stack: ` + M.message + ` return { baseLanes: v, cachePool: ed() }; } function Ol(v, w, C) { - return v = v !== null ? v.childLanes & ~C : 0, w && (v |= Lo), v; + return v = v !== null ? v.childLanes & ~C : 0, w && (v |= jo), v; } - function Io(v, w, C) { + function No(v, w, C) { var M = w.pendingProps, F = !1, V = (w.flags & 128) !== 0, ae; if ((ae = V) || (ae = v !== null && v.memoizedState === null ? !1 : (Pi.current & 2) !== 0), ae && (F = !0, w.flags &= -129), ae = (w.flags & 32) !== 0, w.flags &= -33, v === null) { if (hn) { - if (F ? Js(w) : Mo(), (v = Rn) ? (v = M_( + if (F ? Js(w) : Do(), (v = Rn) ? (v = M_( v, $o ), v = v !== null && v.data !== "&" ? v : null, v !== null && (w.memoizedState = { @@ -4991,7 +4991,7 @@ Error generating stack: ` + M.message + ` return Hv(v) ? w.lanes = 32 : w.lanes = 536870912, null; } var Se = M.children; - return M = M.fallback, F ? (Mo(), F = w.mode, Se = xa( + return M = M.fallback, F ? (Do(), F = w.mode, Se = xa( { mode: "hidden", children: Se }, F ), M = sc( @@ -5003,7 +5003,7 @@ Error generating stack: ` + M.message + ` v, ae, C - ), w.memoizedState = Uh, ko(null, M)) : (Js(w), qh(w, Se)); + ), w.memoizedState = Uh, Io(null, M)) : (Js(w), qh(w, Se)); } var Fe = v.memoizedState; if (Fe !== null && (Se = Fe.dehydrated, Se !== null)) { @@ -5012,7 +5012,7 @@ Error generating stack: ` + M.message + ` v, w, C - )) : w.memoizedState !== null ? (Mo(), w.child = v.child, w.flags |= 128, w = null) : (Mo(), Se = M.fallback, F = w.mode, M = xa( + )) : w.memoizedState !== null ? (Do(), w.child = v.child, w.flags |= 128, w = null) : (Do(), Se = M.fallback, F = w.mode, M = xa( { mode: "visible", children: M.children }, F ), Se = sc( @@ -5029,7 +5029,7 @@ Error generating stack: ` + M.message + ` v, ae, C - ), w.memoizedState = Uh, w = ko(null, M)); + ), w.memoizedState = Uh, w = Io(null, M)); else if (Js(w), Hv(Se)) { if (ae = Se.nextSibling && Se.nextSibling.dataset, ae) var it = ae.dgst; ae = it, M = Error(n(419)), M.stack = "", M.digest = ae, Ks({ value: M, source: null, stack: null }), w = to( @@ -5054,10 +5054,10 @@ Error generating stack: ` + M.message + ` ), w.flags |= 4096); return w; } - return F ? (Mo(), Se = M.fallback, F = w.mode, Fe = v.child, it = Fe.sibling, M = Oo(Fe, { + return F ? (Do(), Se = M.fallback, F = w.mode, Fe = v.child, it = Fe.sibling, M = To(Fe, { mode: "hidden", children: M.children - }), M.subtreeFlags = Fe.subtreeFlags & 65011712, it !== null ? Se = Oo( + }), M.subtreeFlags = Fe.subtreeFlags & 65011712, it !== null ? Se = To( it, Se ) : (Se = sc( @@ -5065,14 +5065,14 @@ Error generating stack: ` + M.message + ` F, C, null - ), Se.flags |= 2), Se.return = w, M.return = w, M.sibling = Se, w.child = M, ko(null, M), M = w.child, Se = v.child.memoizedState, Se === null ? Se = zh(C) : (F = Se.cachePool, F !== null ? (Fe = $i._currentValue, F = F.parent !== Fe ? { parent: Fe, pool: Fe } : F) : F = ed(), Se = { + ), Se.flags |= 2), Se.return = w, M.return = w, M.sibling = Se, w.child = M, Io(null, M), M = w.child, Se = v.child.memoizedState, Se === null ? Se = zh(C) : (F = Se.cachePool, F !== null ? (Fe = $i._currentValue, F = F.parent !== Fe ? { parent: Fe, pool: Fe } : F) : F = ed(), Se = { baseLanes: Se.baseLanes | C, cachePool: F }), M.memoizedState = Se, M.childLanes = Ol( v, ae, C - ), w.memoizedState = Uh, ko(v.child, M)) : (Js(w), C = v.child, v = C.sibling, C = Oo(C, { + ), w.memoizedState = Uh, Io(v.child, M)) : (Js(w), C = v.child, v = C.sibling, C = To(C, { mode: "visible", children: M.children }), C.return = w, C.sibling = null, v !== null && (ae = w.deletions, ae === null ? (w.deletions = [v], w.flags |= 16) : ae.push(v)), w.child = C, w.memoizedState = null, C); @@ -5191,8 +5191,8 @@ Error generating stack: ` + M.message + ` if (v !== null && w.child !== v.child) throw Error(n(153)); if (w.child !== null) { - for (v = w.child, C = Oo(v, v.pendingProps), w.child = C, C.return = w; v.sibling !== null; ) - v = v.sibling, C = C.sibling = Oo(v, v.pendingProps), C.return = w; + for (v = w.child, C = To(v, v.pendingProps), w.child = C, C.return = w; v.sibling !== null; ) + v = v.sibling, C = C.sibling = To(v, v.pendingProps), C.return = w; C.sibling = null; } return w.child; @@ -5226,7 +5226,7 @@ Error generating stack: ` + M.message + ` case 13: var M = w.memoizedState; if (M !== null) - return M.dehydrated !== null ? (Js(w), w.flags |= 128, null) : (C & w.child.childLanes) !== 0 ? Io(v, w, C) : (Js(w), v = wc( + return M.dehydrated !== null ? (Js(w), w.flags |= 128, null) : (C & w.child.childLanes) !== 0 ? No(v, w, C) : (Js(w), v = wc( v, w, C @@ -5282,7 +5282,7 @@ Error generating stack: ` + M.message + ` case 16: e: { var M = w.pendingProps; - if (v = Ao(w.elementType), w.type = v, typeof v == "function") + if (v = Ro(w.elementType), w.type = v, typeof v == "function") Ba(v) ? (M = eo(v, M), w.tag = 1, w = Qp( null, w, @@ -5457,7 +5457,7 @@ Error generating stack: ` + M.message + ` $o ), C !== null ? (w.stateNode = C, Si = w, Rn = null, v = !0) : v = !1), v || dl(w)), null; case 13: - return Io(v, w, C); + return No(v, w, C); case 4: return pe( w, @@ -5529,7 +5529,7 @@ Error generating stack: ` + M.message + ` w.pendingProps ); case 24: - return Ru(w), M = _a($i), v === null ? (F = Mu(), F === null && (F = Hr, V = Za(), F.pooledCache = V, V.refCount++, V !== null && (F.pooledCacheLanes |= C), F = V), w.memoizedState = { parent: M, cache: F }, fo(w), ws(w, $i, F)) : ((v.lanes & C) !== 0 && (nd(v, w), Ef(w, null, null, C), hc()), F = v.memoizedState, V = w.memoizedState, F.parent !== M ? (F = { parent: M, cache: M }, w.memoizedState = F, w.lanes === 0 && (w.memoizedState = w.updateQueue.baseState = F), ws(w, $i, M)) : (M = V.cache, ws(w, $i, M), M !== F.cache && Dh( + return Ru(w), M = _a($i), v === null ? (F = Mu(), F === null && (F = Hr, V = Za(), F.pooledCache = V, V.refCount++, V !== null && (F.pooledCacheLanes |= C), F = V), w.memoizedState = { parent: M, cache: F }, ho(w), ws(w, $i, F)) : ((v.lanes & C) !== 0 && (nd(v, w), Ef(w, null, null, C), hc()), F = v.memoizedState, V = w.memoizedState, F.parent !== M ? (F = { parent: M, cache: M }, w.memoizedState = F, w.lanes === 0 && (w.memoizedState = w.updateQueue.baseState = F), ws(w, $i, M)) : (M = V.cache, ws(w, $i, M), M !== F.cache && Dh( w, [$i], C, @@ -6290,7 +6290,7 @@ Error generating stack: ` + M.message + ` var w = v.alternate; w !== null && (v.alternate = null, Yh(w)), v.child = null, v.deletions = null, v.sibling = null, v.tag === 5 && (w = v.stateNode, w !== null && pa(w)), v.stateNode = null, v.return = null, v.dependencies = null, v.memoizedProps = null, v.memoizedState = null, v.pendingProps = null, v.stateNode = null, v.updateQueue = null; } - var gi = null, No = !1; + var gi = null, Lo = !1; function Wc(v, w, C) { for (C = C.child; C !== null; ) _y(v, w, C), C = C.sibling; @@ -6311,22 +6311,22 @@ Error generating stack: ` + M.message + ` break; case 27: Ra || ro(C, w); - var M = gi, F = No; - zr(C.type) && (gi = C.stateNode, No = !1), Wc( + var M = gi, F = Lo; + zr(C.type) && (gi = C.stateNode, Lo = !1), Wc( v, w, C - ), mg(C.stateNode), gi = M, No = F; + ), mg(C.stateNode), gi = M, Lo = F; break; case 5: Ra || ro(C, w); case 6: - if (M = gi, F = No, gi = null, Wc( + if (M = gi, F = Lo, gi = null, Wc( v, w, C - ), gi = M, No = F, gi !== null) - if (No) + ), gi = M, Lo = F, gi !== null) + if (Lo) try { (gi.nodeType === 9 ? gi.body : gi.nodeName === "HTML" ? gi.ownerDocument.body : gi).removeChild(C.stateNode); } catch (V) { @@ -6348,17 +6348,17 @@ Error generating stack: ` + M.message + ` } break; case 18: - gi !== null && (No ? (v = gi, R0( + gi !== null && (Lo ? (v = gi, R0( v.nodeType === 9 ? v.body : v.nodeName === "HTML" ? v.ownerDocument.body : v, C.stateNode ), Jv(v)) : R0(gi, C.stateNode)); break; case 4: - M = gi, F = No, gi = C.stateNode.containerInfo, No = !0, Wc( + M = gi, F = Lo, gi = C.stateNode.containerInfo, Lo = !0, Wc( v, w, C - ), gi = M, No = F; + ), gi = M, Lo = F; break; case 0: case 11: @@ -6453,22 +6453,22 @@ Error generating stack: ` + M.message + ` switch (Se.tag) { case 27: if (zr(Se.type)) { - gi = Se.stateNode, No = !1; + gi = Se.stateNode, Lo = !1; break e; } break; case 5: - gi = Se.stateNode, No = !1; + gi = Se.stateNode, Lo = !1; break e; case 3: case 4: - gi = Se.stateNode.containerInfo, No = !0; + gi = Se.stateNode.containerInfo, Lo = !0; break e; } Se = Se.return; } if (gi === null) throw Error(n(160)); - _y(V, ae, F), gi = null, No = !1, V = F.alternate, V !== null && (V.return = null), F.return = null; + _y(V, ae, F), gi = null, Lo = !1, V = F.alternate, V !== null && (V.return = null), F.return = null; } if (w.subtreeFlags & 13886) for (w = w.child; w !== null; ) @@ -7250,28 +7250,28 @@ Error generating stack: ` + M.message + ` cacheSignal: function() { return _a($i).controller.signal; } - }, vr = typeof WeakMap == "function" ? WeakMap : Map, zt = 0, Hr = null, fr = null, Mr = 0, _r = 0, ui = null, po = !1, tu = !1, Yc = !1, Ga = 0, qi = 0, Xc = 0, xc = 0, Xh = 0, Lo = 0, $c = 0, Xd = null, go = null, $d = !1, ag = 0, o_ = 0, $h = 1 / 0, xy = null, Kd = null, yo = 0, Zd = null, zv = null, hd = 0, u0 = 0, l0 = null, s_ = null, og = 0, c0 = null; + }, vr = typeof WeakMap == "function" ? WeakMap : Map, zt = 0, Hr = null, fr = null, Mr = 0, _r = 0, ui = null, go = !1, tu = !1, Yc = !1, Ga = 0, qi = 0, Xc = 0, xc = 0, Xh = 0, jo = 0, $c = 0, Xd = null, yo = null, $d = !1, ag = 0, o_ = 0, $h = 1 / 0, xy = null, Kd = null, mo = 0, Zd = null, zv = null, hd = 0, u0 = 0, l0 = null, s_ = null, og = 0, c0 = null; function Al() { return (zt & 2) !== 0 && Mr !== 0 ? Mr & -Mr : H.T !== null ? Rl() : wn(); } function u_() { - if (Lo === 0) + if (jo === 0) if ((Mr & 536870912) === 0 || hn) { var v = Rt; - Rt <<= 1, (Rt & 3932160) === 0 && (Rt = 262144), Lo = v; - } else Lo = 536870912; - return v = er.current, v !== null && (v.flags |= 32), Lo; + Rt <<= 1, (Rt & 3932160) === 0 && (Rt = 262144), jo = v; + } else jo = 536870912; + return v = er.current, v !== null && (v.flags |= 32), jo; } function zu(v, w, C) { (v === Hr && (_r === 2 || _r === 9) || v.cancelPendingCommit !== null) && (qv(v, 0), vd( v, Mr, - Lo, + jo, !1 )), Br(v, C), ((zt & 2) === 0 || v !== Hr) && (v === Hr && ((zt & 2) === 0 && (xc |= C), qi === 4 && vd( v, Mr, - Lo, + jo, !1 )), Af(v)); } @@ -7307,8 +7307,8 @@ Error generating stack: ` + M.message + ` Se.errorRecoveryDisabledLanes |= V, xc |= V, F = 4; break e; } - V = go, go = F, V !== null && (go === null ? go = V : go.push.apply( - go, + V = yo, yo = F, V !== null && (yo === null ? yo = V : yo.push.apply( + yo, V )); } @@ -7332,12 +7332,12 @@ Error generating stack: ` + M.message + ` vd( M, w, - Lo, - !po + jo, + !go ); break e; case 2: - go = null; + yo = null; break; case 3: case 5: @@ -7349,22 +7349,22 @@ Error generating stack: ` + M.message + ` if (vd( M, w, - Lo, - !po + jo, + !go ), sr(M, 0, !0) !== 0) break e; hd = w, M.timeoutHandle = A_( c_.bind( null, M, C, - go, + yo, xy, $d, w, - Lo, + jo, xc, $c, - po, + go, V, "Throttled", -0, @@ -7377,14 +7377,14 @@ Error generating stack: ` + M.message + ` c_( M, C, - go, + yo, xy, $d, w, - Lo, + jo, xc, $c, - po, + go, V, null, -0, @@ -7493,7 +7493,7 @@ Error generating stack: ` + M.message + ` if (_r === 0) var v = fr.return; else - v = fr, Cu = Yr = null, Of(v), ku = null, Ro = 0, v = fr; + v = fr, Cu = Yr = null, Of(v), ku = null, Po = 0, v = fr; for (; v !== null; ) Nv(v.alternate, v), v = v.return; fr = null; @@ -7501,7 +7501,7 @@ Error generating stack: ` + M.message + ` } function qv(v, w) { var C = v.timeoutHandle; - C !== -1 && (v.timeoutHandle = -1, OE(C)), C = v.cancelPendingCommit, C !== null && (v.cancelPendingCommit = null, C()), hd = 0, f0(), Hr = v, fr = C = Oo(v.current, null), Mr = w, _r = 0, ui = null, po = !1, tu = Ut(v, w), Yc = !1, $c = Lo = Xh = xc = Xc = qi = 0, go = Xd = null, $d = !1, (w & 8) !== 0 && (w |= w & 32); + C !== -1 && (v.timeoutHandle = -1, OE(C)), C = v.cancelPendingCommit, C !== null && (v.cancelPendingCommit = null, C()), hd = 0, f0(), Hr = v, fr = C = To(v.current, null), Mr = w, _r = 0, ui = null, go = !1, tu = Ut(v, w), Yc = !1, $c = jo = Xh = xc = Xc = qi = 0, yo = Xd = null, $d = !1, (w & 8) !== 0 && (w |= w & 32); var M = v.entangledLanes; if (M !== 0) for (v = v.entanglements, M &= w; 0 < M; ) { @@ -7518,7 +7518,7 @@ Error generating stack: ` + M.message + ` } function sg() { var v = er.current; - return v === null ? !0 : (Mr & 4194048) === Mr ? ho === null : (Mr & 62914560) === Mr || (Mr & 536870912) !== 0 ? v === ho : !1; + return v === null ? !0 : (Mr & 4194048) === Mr ? vo === null : (Mr & 62914560) === Mr || (Mr & 536870912) !== 0 ? v === vo : !1; } function h_() { var v = H.H; @@ -7529,10 +7529,10 @@ Error generating stack: ` + M.message + ` return H.A = qn, v; } function Sy() { - qi = 4, po || (Mr & 4194048) !== Mr && er.current !== null || (tu = !0), (Xc & 134217727) === 0 && (xc & 134217727) === 0 || Hr === null || vd( + qi = 4, go || (Mr & 4194048) !== Mr && er.current !== null || (tu = !0), (Xc & 134217727) === 0 && (xc & 134217727) === 0 || Hr === null || vd( Hr, Mr, - Lo, + jo, !1 ); } @@ -7691,7 +7691,7 @@ Error generating stack: ` + M.message + ` v.memoizedProps = v.pendingProps, w === null ? Oy(v) : fr = w; } function Gv(v, w, C, M) { - Cu = Yr = null, Of(w), ku = null, Ro = 0; + Cu = Yr = null, Of(w), ku = null, Po = 0; var F = w.return; try { if (is( @@ -7715,7 +7715,7 @@ Error generating stack: ` + M.message + ` ), fr = null; return; } - w.flags & 32768 ? (hn || M === 1 ? v = !0 : tu || (Mr & 536870912) !== 0 ? v = !1 : (po = v = !0, (M === 2 || M === 9 || M === 3 || M === 6) && (M = er.current, M !== null && M.tag === 13 && (M.flags |= 16384))), ug(w, v)) : Oy(w); + w.flags & 32768 ? (hn || M === 1 ? v = !0 : tu || (Mr & 536870912) !== 0 ? v = !1 : (go = v = !0, (M === 2 || M === 9 || M === 3 || M === 6) && (M = er.current, M !== null && M.tag === 13 && (M.flags |= 16384))), ug(w, v)) : Oy(w); } function Oy(v) { var w = v; @@ -7723,7 +7723,7 @@ Error generating stack: ` + M.message + ` if ((w.flags & 32768) !== 0) { ug( w, - po + go ); return; } @@ -7764,7 +7764,7 @@ Error generating stack: ` + M.message + ` v.cancelPendingCommit = null; do lg(); - while (yo !== 0); + while (mo !== 0); if ((zt & 6) !== 0) throw Error(n(327)); if (w !== null) { if (w === v.current) throw Error(n(177)); @@ -7785,12 +7785,12 @@ Error generating stack: ` + M.message + ` zt = ae, q.p = F, H.T = M; } } - yo = 1, h0(), v0(), Ty(); + mo = 1, h0(), v0(), Ty(); } } function h0() { - if (yo === 1) { - yo = 0; + if (mo === 1) { + mo = 0; var v = Zd, w = zv, C = (w.flags & 13878) !== 0; if ((w.subtreeFlags & 13878) !== 0 || C) { C = H.T, H.T = null; @@ -7847,12 +7847,12 @@ Error generating stack: ` + M.message + ` zt = F, q.p = M, H.T = C; } } - v.current = w, yo = 2; + v.current = w, mo = 2; } } function v0() { - if (yo === 2) { - yo = 0; + if (mo === 2) { + mo = 0; var v = Zd, w = zv, C = (w.flags & 8772) !== 0; if ((w.subtreeFlags & 8772) !== 0 || C) { C = H.T, H.T = null; @@ -7866,14 +7866,14 @@ Error generating stack: ` + M.message + ` zt = F, q.p = M, H.T = C; } } - yo = 3; + mo = 3; } } function Ty() { - if (yo === 4 || yo === 3) { - yo = 0, Me(); + if (mo === 4 || mo === 3) { + mo = 0, Me(); var v = Zd, w = zv, C = hd, M = s_; - (w.subtreeFlags & 10256) !== 0 || (w.flags & 10256) !== 0 ? yo = 5 : (yo = 0, zv = Zd = null, p0(v, v.pendingLanes)); + (w.subtreeFlags & 10256) !== 0 || (w.flags & 10256) !== 0 ? mo = 5 : (mo = 0, zv = Zd = null, p0(v, v.pendingLanes)); var F = v.pendingLanes; if (F === 0 && (Kd = null), bn(C), w = w.stateNode, Ue && typeof Ue.onCommitFiberRoot == "function") try { @@ -7908,14 +7908,14 @@ Error generating stack: ` + M.message + ` return h0(), v0(), Ty(), g0(); } function g0() { - if (yo !== 5) return !1; + if (mo !== 5) return !1; var v = Zd, w = u0; u0 = 0; var C = bn(hd), M = H.T, F = q.p; try { q.p = 32 > C ? 32 : C, H.T = null, C = l0, l0 = null; var V = Zd, ae = hd; - if (yo = 0, zv = Zd = null, hd = 0, (zt & 6) !== 0) throw Error(n(331)); + if (mo = 0, zv = Zd = null, hd = 0, (zt & 6) !== 0) throw Error(n(331)); var Se = zt; if (zt |= 4, Gt(V.current), Et( V, @@ -8045,7 +8045,7 @@ Error generating stack: ` + M.message + ` var F = M.next, V = b_(M, w); V === 0 ? (M.next = null, C === null ? Vv = F : C.next = F, F === null && (Kh = C)) : (C = M, (v !== 0 || (V & 3) !== 0) && (Ay = !0)), M = F; } - yo !== 0 && yo !== 5 || fg(v), Qd !== 0 && (Qd = 0); + mo !== 0 && mo !== 5 || fg(v), Qd !== 0 && (Qd = 0); } function b_(v, w) { for (var C = v.suspendedLanes, M = v.pingedLanes, F = v.expirationTimes, V = v.pendingLanes & -62914561; 0 < V; ) { @@ -8079,7 +8079,7 @@ Error generating stack: ` + M.message + ` return M !== null && M !== null && we(M), v.callbackPriority = 2, v.callbackNode = null, 2; } function __(v, w) { - if (yo !== 0 && yo !== 5) + if (mo !== 0 && mo !== 5) return v.callbackNode = null, v.callbackPriority = 0, null; var C = v.callbackNode; if (lg() && v.callbackNode !== C) @@ -8172,12 +8172,12 @@ Error generating stack: ` + M.message + ` } for (var rn = 0; rn < gf.length; rn++) { var w0 = gf[rn], qu = w0.toLowerCase(), Va = w0[0].toUpperCase() + w0.slice(1); - Eo( + So( qu, "on" + Va ); } - Eo(Ei, "onAnimationEnd"), Eo(nn, "onAnimationIteration"), Eo(sl, "onAnimationStart"), Eo("dblclick", "onDoubleClick"), Eo("focusin", "onFocus"), Eo("focusout", "onBlur"), Eo($a, "onTransitionRun"), Eo(gs, "onTransitionStart"), Eo(xu, "onTransitionCancel"), Eo(Jr, "onTransitionEnd"), Wr("onMouseEnter", ["mouseout", "mouseover"]), Wr("onMouseLeave", ["mouseout", "mouseover"]), Wr("onPointerEnter", ["pointerout", "pointerover"]), Wr("onPointerLeave", ["pointerout", "pointerover"]), ki( + So(Ei, "onAnimationEnd"), So(nn, "onAnimationIteration"), So(sl, "onAnimationStart"), So("dblclick", "onDoubleClick"), So("focusin", "onFocus"), So("focusout", "onBlur"), So($a, "onTransitionRun"), So(gs, "onTransitionStart"), So(xu, "onTransitionCancel"), So(Jr, "onTransitionEnd"), Wr("onMouseEnter", ["mouseout", "mouseover"]), Wr("onMouseLeave", ["mouseout", "mouseover"]), Wr("onPointerEnter", ["pointerout", "pointerover"]), Wr("onPointerLeave", ["pointerout", "pointerover"]), ki( "onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ") ), ki( @@ -8329,14 +8329,14 @@ Error generating stack: ` + M.message + ` lt = ba; break; case "focusin": - rr = "focus", lt = uo; + rr = "focus", lt = lo; break; case "focusout": - rr = "blur", lt = uo; + rr = "blur", lt = lo; break; case "beforeblur": case "afterblur": - lt = uo; + lt = lo; break; case "click": if (C.button === 2) break e; @@ -8539,7 +8539,7 @@ Error generating stack: ` + M.message + ` null, C, ht - ), _t.push({ event: kn, listeners: or }), pn ? kn.data = pn : (pn = Ic(C), pn !== null && (kn.data = pn)))), (pn = _u ? xo(v, C) : Nc(v, C)) && (kn = hg(it, "onBeforeInput"), 0 < kn.length && (or = new ir( + ), _t.push({ event: kn, listeners: or }), pn ? kn.data = pn : (pn = Ic(C), pn !== null && (kn.data = pn)))), (pn = _u ? Eo(v, C) : Nc(v, C)) && (kn = hg(it, "onBeforeInput"), 0 < kn.length && (or = new ir( "onBeforeInput", "beforeinput", null, @@ -9622,7 +9622,7 @@ Error generating stack: ` + M.message + ` L: ME, m: DE, X: Vu, - S: jo, + S: Bo, M: kE }; function AE() { @@ -9704,7 +9704,7 @@ Error generating stack: ` + M.message + ` } } } - function jo(v, w, C) { + function Bo(v, w, C) { gd.S(v, w, C); var M = th; if (M && v) { @@ -10065,7 +10065,7 @@ Error generating stack: ` + M.message + ` element: M, isDehydrated: C, cache: w - }, fo(V), v; + }, ho(V), v; } function H_(v) { return v ? (v = Su, v) : Su; @@ -10627,10 +10627,10 @@ Error generating stack: ` + M.message + ` ), w.context = H_(null), C = w.current, M = Al(), M = un(M), F = Nu(M), F.callback = null, Zs(C, F, M), C = M, w.current.lanes = C, Br(w, C), Af(w), v[fi] = w.current, E0(v), new Vy(w); }, z0.version = "19.2.4", z0; } -var sk; +var uk; function oV() { - if (sk) return WE.exports; - sk = 1; + if (uk) return WE.exports; + uk = 1; function r() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { @@ -10642,12 +10642,12 @@ function oV() { return r(), WE.exports = aV(), WE.exports; } var sV = oV(); -let z9 = me.createContext( +let q9 = me.createContext( /** @type {any} */ null ); function uV() { - let r = me.useContext(z9); + let r = me.useContext(q9); if (!r) throw new Error("RenderContext not found"); return r; } @@ -10678,7 +10678,7 @@ function cV(r) { me.StrictMode, null, me.createElement( - z9.Provider, + q9.Provider, { value: { model: t, experimental: n } }, me.createElement(r) ) @@ -11428,10 +11428,10 @@ const Xu = { } }; return e(ks.theme.light.boxShadow, "shadow"), r; -}, uk = (r, e) => Object.keys(r).reduce((t, n) => (t[`${e}-${n}`] = r[n], t), {}), hV = { +}, lk = (r, e) => Object.keys(r).reduce((t, n) => (t[`${e}-${n}`] = r[n], t), {}), hV = { colors: Object.assign(Object.assign(Object.assign({}, ks.palette), { graph: ks.graph, categorical: ks.categorical, dark: Object.assign({}, ks.theme.dark.color), light: Object.assign({}, ks.theme.light.color) }), fV()), borderRadius: ks.borderRadius, - boxShadow: Object.assign(Object.assign(Object.assign({}, uk(ks.theme.dark.boxShadow, "dark")), uk(ks.theme.light.boxShadow, "light")), dV()), + boxShadow: Object.assign(Object.assign(Object.assign({}, lk(ks.theme.dark.boxShadow, "dark")), lk(ks.theme.light.boxShadow, "light")), dV()), /** * Avoid colors being generated as shadow color classes * Source: https://github.com/tailwindlabs/tailwindcss/discussions/11933 @@ -11476,9 +11476,9 @@ var KE = { exports: {} }; Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -var lk; +var ck; function vV() { - return lk || (lk = 1, (function(r) { + return ck || (ck = 1, (function(r) { (function() { var e = {}.hasOwnProperty; function t() { @@ -11544,9 +11544,9 @@ function qo(r) { Te.jsx(r, Object.assign({ strokeWidth: 1.5, style: i, className: `${mV} ${n}`.trim(), "aria-hidden": "true" }, s, o, { ref: a })) ); }; - return ao.memo(e); + return oo.memo(e); } -const bV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M13.0312 13.5625C12.6824 13.5625 12.337 13.4938 12.0147 13.3603C11.6925 13.2268 11.3997 13.0312 11.153 12.7845C10.9063 12.5378 10.7107 12.245 10.5772 11.9228C10.4437 11.6005 10.375 11.2551 10.375 10.9062C10.375 10.5574 10.4437 10.212 10.5772 9.88975C10.7107 9.56748 10.9063 9.27465 11.153 9.028C11.3997 8.78134 11.6925 8.58568 12.0147 8.45219C12.337 8.31871 12.6824 8.25 13.0312 8.25C13.3801 8.25 13.7255 8.31871 14.0478 8.45219C14.37 8.58568 14.6628 8.78134 14.9095 9.028C15.1562 9.27465 15.3518 9.56748 15.4853 9.88975C15.6188 10.212 15.6875 10.5574 15.6875 10.9062C15.6875 11.2551 15.6188 11.6005 15.4853 11.9228C15.3518 12.245 15.1562 12.5378 14.9095 12.7845C14.6628 13.0312 14.37 13.2268 14.0478 13.3603C13.7255 13.4938 13.3801 13.5625 13.0312 13.5625ZM13.0312 13.5625V16.75M13.0312 16.75C13.4539 16.75 13.8593 16.9179 14.1582 17.2168C14.4571 17.5157 14.625 17.9211 14.625 18.3438C14.625 18.7664 14.4571 19.1718 14.1582 19.4707C13.8593 19.7696 13.4539 19.9375 13.0312 19.9375C12.6086 19.9375 12.2032 19.7696 11.9043 19.4707C11.6054 19.1718 11.4375 18.7664 11.4375 18.3438C11.4375 17.9211 11.6054 17.5157 11.9043 17.2168C12.2032 16.9179 12.6086 16.75 13.0312 16.75ZM14.9091 9.02926L17.2182 6.72009M15.3645 12.177L16.983 13.7955M11.1548 12.7827L6.71997 17.2176M10.5528 9.95081L7.4425 8.08435M16.75 5.59375C16.75 6.01644 16.9179 6.42182 17.2168 6.7207C17.5157 7.01959 17.9211 7.1875 18.3438 7.1875C18.7664 7.1875 19.1718 7.01959 19.4707 6.7207C19.7696 6.42182 19.9375 6.01644 19.9375 5.59375C19.9375 5.17106 19.7696 4.76568 19.4707 4.4668C19.1718 4.16791 18.7664 4 18.3438 4C17.9211 4 17.5157 4.16791 17.2168 4.4668C16.9179 4.76568 16.75 5.17106 16.75 5.59375ZM16.75 14.625C16.75 15.0477 16.9179 15.4531 17.2168 15.752C17.5157 16.0508 17.9211 16.2187 18.3438 16.2187C18.7664 16.2187 19.1718 16.0508 19.4707 15.752C19.7696 15.4531 19.9375 15.0477 19.9375 14.625C19.9375 14.2023 19.7696 13.7969 19.4707 13.498C19.1718 13.1992 18.7664 13.0312 18.3438 13.0312C17.9211 13.0312 17.5157 13.1992 17.2168 13.498C16.9179 13.7969 16.75 14.2023 16.75 14.625ZM4 18.3438C4 18.553 4.04122 18.7603 4.12132 18.9537C4.20141 19.147 4.31881 19.3227 4.4668 19.4707C4.61479 19.6187 4.79049 19.7361 4.98385 19.8162C5.17721 19.8963 5.38446 19.9375 5.59375 19.9375C5.80304 19.9375 6.01029 19.8963 6.20365 19.8162C6.39701 19.7361 6.57271 19.6187 6.7207 19.4707C6.86869 19.3227 6.98609 19.147 7.06618 18.9537C7.14628 18.7603 7.1875 18.553 7.1875 18.3438C7.1875 18.1345 7.14628 17.9272 7.06618 17.7338C6.98609 17.5405 6.86869 17.3648 6.7207 17.2168C6.57271 17.0688 6.39701 16.9514 6.20365 16.8713C6.01029 16.7912 5.80304 16.75 5.59375 16.75C5.38446 16.75 5.17721 16.7912 4.98385 16.8713C4.79049 16.9514 4.61479 17.0688 4.4668 17.2168C4.31881 17.3648 4.20141 17.5405 4.12132 17.7338C4.04122 17.9272 4 18.1345 4 18.3438ZM4.53125 7.1875C4.53125 7.61019 4.69916 8.01557 4.99805 8.31445C5.29693 8.61334 5.70231 8.78125 6.125 8.78125C6.54769 8.78125 6.95307 8.61334 7.25195 8.31445C7.55084 8.01557 7.71875 7.61019 7.71875 7.1875C7.71875 6.76481 7.55084 6.35943 7.25195 6.06055C6.95307 5.76166 6.54769 5.59375 6.125 5.59375C5.70231 5.59375 5.29693 5.76166 4.99805 6.06055C4.69916 6.35943 4.53125 6.76481 4.53125 7.1875Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), _V = qo(bV), wV = (r) => Te.jsxs("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: [Te.jsx("rect", { x: 5.94, y: 5.94, width: 12.12, height: 12.12, rx: 1.5, stroke: "currentColor", strokeWidth: 1.5 }), Te.jsx("path", { d: "M3 9.75V5.25C3 4.01 4.01 3 5.25 3H9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Te.jsx("path", { d: "M14.25 3H18.75C19.99 3 21 4.01 21 5.25V9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Te.jsx("path", { d: "M3 14.25V18.75C3 19.99 4.01 21 5.25 21H9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Te.jsx("path", { d: "M21 14.25V18.75C21 19.99 19.99 21 18.75 21H14.25", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" })] })), xV = qo(wV), EV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M11.9992 6.60001C11.5218 6.60001 11.064 6.41036 10.7264 6.0728C10.3889 5.73523 10.1992 5.27739 10.1992 4.8C10.1992 4.32261 10.3889 3.86477 10.7264 3.52721C11.064 3.18964 11.5218 3 11.9992 3C12.4766 3 12.9344 3.18964 13.272 3.52721C13.6096 3.86477 13.7992 4.32261 13.7992 4.8C13.7992 5.27739 13.6096 5.73523 13.272 6.0728C12.9344 6.41036 12.4766 6.60001 11.9992 6.60001ZM11.9992 6.60001V17.4M11.9992 17.4C12.4766 17.4 12.9344 17.5897 13.272 17.9272C13.6096 18.2648 13.7992 18.7226 13.7992 19.2C13.7992 19.6774 13.6096 20.1353 13.272 20.4728C12.9344 20.8104 12.4766 21 11.9992 21C11.5218 21 11.064 20.8104 10.7264 20.4728C10.3889 20.1353 10.1992 19.6774 10.1992 19.2C10.1992 18.7226 10.3889 18.2648 10.7264 17.9272C11.064 17.5897 11.5218 17.4 11.9992 17.4ZM5.39844 17.4C5.39844 16.1269 5.90415 14.906 6.80433 14.0059C7.7045 13.1057 8.9254 12.6 10.1984 12.6H13.7984C15.0715 12.6 16.2924 13.1057 17.1926 14.0059C18.0927 14.906 18.5985 16.1269 18.5985 17.4M3.59961 19.2C3.59961 19.6774 3.78925 20.1353 4.12682 20.4728C4.46438 20.8104 4.92222 21 5.39961 21C5.877 21 6.33484 20.8104 6.67241 20.4728C7.00997 20.1353 7.19961 19.6774 7.19961 19.2C7.19961 18.7226 7.00997 18.2648 6.67241 17.9272C6.33484 17.5897 5.877 17.4 5.39961 17.4C4.92222 17.4 4.46438 17.5897 4.12682 17.9272C3.78925 18.2648 3.59961 18.7226 3.59961 19.2ZM16.8008 19.2C16.8008 19.6774 16.9904 20.1353 17.328 20.4728C17.6656 20.8104 18.1234 21 18.6008 21C19.0782 21 19.536 20.8104 19.8736 20.4728C20.2111 20.1353 20.4008 19.6774 20.4008 19.2C20.4008 18.7226 20.2111 18.2648 19.8736 17.9272C19.536 17.5897 19.0782 17.4 18.6008 17.4C18.1234 17.4 17.6656 17.5897 17.328 17.9272C16.9904 18.2648 16.8008 18.7226 16.8008 19.2Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), SV = qo(EV), OV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M9.95398 16.3762C11.4106 18.0304 12.3812 19.1337 12.3768 21.2003M7.8431 20.2339C10.0323 20.2339 10.5789 18.6865 10.5789 17.912C10.5789 17.1405 10.0309 15.593 7.8431 15.593C5.65388 15.593 5.1073 17.1405 5.1073 17.9135C5.1073 18.6865 5.65532 20.2339 7.8431 20.2339ZM11.9941 16.0464C4.49482 16.0464 2.62 11.6305 2.62 9.4225C2.62 7.21598 4.49482 2.80005 11.9941 2.80005C19.4934 2.80005 21.3682 7.21598 21.3682 9.4225C21.3682 11.6305 19.4934 16.0464 11.9941 16.0464Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), q9 = qo(OV), TV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M14.0601 5.25V18.75M20.4351 18C20.4351 18.45 20.1351 18.75 19.6851 18.75H4.31006C3.86006 18.75 3.56006 18.45 3.56006 18V6C3.56006 5.55 3.86006 5.25 4.31006 5.25H19.6851C20.1351 5.25 20.4351 5.55 20.4351 6V18Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), CV = qo(TV), AV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M16.3229 22.0811L11.9385 14.4876M11.9385 14.4876L8.6037 19.5387L5.09035 2.62536L17.9807 14.1249L11.9385 14.4876Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), l2 = qo(AV), RV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M20.9998 19.0001C20.9998 20.1046 20.1046 20.9998 19.0001 20.9998M3 4.99969C3 3.8953 3.8953 3 4.99969 3M19.0001 3C20.1046 3 20.9998 3.8953 20.9998 4.99969M3 19.0001C3 20.1046 3.8953 20.9998 4.99969 20.9998M20.9972 10.0067V14.0061M3 14.0061V10.0067M9.99854 3H13.9979M9.99854 20.9972H13.9979", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), G9 = qo(RV); +const bV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M13.0312 13.5625C12.6824 13.5625 12.337 13.4938 12.0147 13.3603C11.6925 13.2268 11.3997 13.0312 11.153 12.7845C10.9063 12.5378 10.7107 12.245 10.5772 11.9228C10.4437 11.6005 10.375 11.2551 10.375 10.9062C10.375 10.5574 10.4437 10.212 10.5772 9.88975C10.7107 9.56748 10.9063 9.27465 11.153 9.028C11.3997 8.78134 11.6925 8.58568 12.0147 8.45219C12.337 8.31871 12.6824 8.25 13.0312 8.25C13.3801 8.25 13.7255 8.31871 14.0478 8.45219C14.37 8.58568 14.6628 8.78134 14.9095 9.028C15.1562 9.27465 15.3518 9.56748 15.4853 9.88975C15.6188 10.212 15.6875 10.5574 15.6875 10.9062C15.6875 11.2551 15.6188 11.6005 15.4853 11.9228C15.3518 12.245 15.1562 12.5378 14.9095 12.7845C14.6628 13.0312 14.37 13.2268 14.0478 13.3603C13.7255 13.4938 13.3801 13.5625 13.0312 13.5625ZM13.0312 13.5625V16.75M13.0312 16.75C13.4539 16.75 13.8593 16.9179 14.1582 17.2168C14.4571 17.5157 14.625 17.9211 14.625 18.3438C14.625 18.7664 14.4571 19.1718 14.1582 19.4707C13.8593 19.7696 13.4539 19.9375 13.0312 19.9375C12.6086 19.9375 12.2032 19.7696 11.9043 19.4707C11.6054 19.1718 11.4375 18.7664 11.4375 18.3438C11.4375 17.9211 11.6054 17.5157 11.9043 17.2168C12.2032 16.9179 12.6086 16.75 13.0312 16.75ZM14.9091 9.02926L17.2182 6.72009M15.3645 12.177L16.983 13.7955M11.1548 12.7827L6.71997 17.2176M10.5528 9.95081L7.4425 8.08435M16.75 5.59375C16.75 6.01644 16.9179 6.42182 17.2168 6.7207C17.5157 7.01959 17.9211 7.1875 18.3438 7.1875C18.7664 7.1875 19.1718 7.01959 19.4707 6.7207C19.7696 6.42182 19.9375 6.01644 19.9375 5.59375C19.9375 5.17106 19.7696 4.76568 19.4707 4.4668C19.1718 4.16791 18.7664 4 18.3438 4C17.9211 4 17.5157 4.16791 17.2168 4.4668C16.9179 4.76568 16.75 5.17106 16.75 5.59375ZM16.75 14.625C16.75 15.0477 16.9179 15.4531 17.2168 15.752C17.5157 16.0508 17.9211 16.2187 18.3438 16.2187C18.7664 16.2187 19.1718 16.0508 19.4707 15.752C19.7696 15.4531 19.9375 15.0477 19.9375 14.625C19.9375 14.2023 19.7696 13.7969 19.4707 13.498C19.1718 13.1992 18.7664 13.0312 18.3438 13.0312C17.9211 13.0312 17.5157 13.1992 17.2168 13.498C16.9179 13.7969 16.75 14.2023 16.75 14.625ZM4 18.3438C4 18.553 4.04122 18.7603 4.12132 18.9537C4.20141 19.147 4.31881 19.3227 4.4668 19.4707C4.61479 19.6187 4.79049 19.7361 4.98385 19.8162C5.17721 19.8963 5.38446 19.9375 5.59375 19.9375C5.80304 19.9375 6.01029 19.8963 6.20365 19.8162C6.39701 19.7361 6.57271 19.6187 6.7207 19.4707C6.86869 19.3227 6.98609 19.147 7.06618 18.9537C7.14628 18.7603 7.1875 18.553 7.1875 18.3438C7.1875 18.1345 7.14628 17.9272 7.06618 17.7338C6.98609 17.5405 6.86869 17.3648 6.7207 17.2168C6.57271 17.0688 6.39701 16.9514 6.20365 16.8713C6.01029 16.7912 5.80304 16.75 5.59375 16.75C5.38446 16.75 5.17721 16.7912 4.98385 16.8713C4.79049 16.9514 4.61479 17.0688 4.4668 17.2168C4.31881 17.3648 4.20141 17.5405 4.12132 17.7338C4.04122 17.9272 4 18.1345 4 18.3438ZM4.53125 7.1875C4.53125 7.61019 4.69916 8.01557 4.99805 8.31445C5.29693 8.61334 5.70231 8.78125 6.125 8.78125C6.54769 8.78125 6.95307 8.61334 7.25195 8.31445C7.55084 8.01557 7.71875 7.61019 7.71875 7.1875C7.71875 6.76481 7.55084 6.35943 7.25195 6.06055C6.95307 5.76166 6.54769 5.59375 6.125 5.59375C5.70231 5.59375 5.29693 5.76166 4.99805 6.06055C4.69916 6.35943 4.53125 6.76481 4.53125 7.1875Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), _V = qo(bV), wV = (r) => Te.jsxs("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: [Te.jsx("rect", { x: 5.94, y: 5.94, width: 12.12, height: 12.12, rx: 1.5, stroke: "currentColor", strokeWidth: 1.5 }), Te.jsx("path", { d: "M3 9.75V5.25C3 4.01 4.01 3 5.25 3H9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Te.jsx("path", { d: "M14.25 3H18.75C19.99 3 21 4.01 21 5.25V9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Te.jsx("path", { d: "M3 14.25V18.75C3 19.99 4.01 21 5.25 21H9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Te.jsx("path", { d: "M21 14.25V18.75C21 19.99 19.99 21 18.75 21H14.25", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" })] })), xV = qo(wV), EV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M11.9992 6.60001C11.5218 6.60001 11.064 6.41036 10.7264 6.0728C10.3889 5.73523 10.1992 5.27739 10.1992 4.8C10.1992 4.32261 10.3889 3.86477 10.7264 3.52721C11.064 3.18964 11.5218 3 11.9992 3C12.4766 3 12.9344 3.18964 13.272 3.52721C13.6096 3.86477 13.7992 4.32261 13.7992 4.8C13.7992 5.27739 13.6096 5.73523 13.272 6.0728C12.9344 6.41036 12.4766 6.60001 11.9992 6.60001ZM11.9992 6.60001V17.4M11.9992 17.4C12.4766 17.4 12.9344 17.5897 13.272 17.9272C13.6096 18.2648 13.7992 18.7226 13.7992 19.2C13.7992 19.6774 13.6096 20.1353 13.272 20.4728C12.9344 20.8104 12.4766 21 11.9992 21C11.5218 21 11.064 20.8104 10.7264 20.4728C10.3889 20.1353 10.1992 19.6774 10.1992 19.2C10.1992 18.7226 10.3889 18.2648 10.7264 17.9272C11.064 17.5897 11.5218 17.4 11.9992 17.4ZM5.39844 17.4C5.39844 16.1269 5.90415 14.906 6.80433 14.0059C7.7045 13.1057 8.9254 12.6 10.1984 12.6H13.7984C15.0715 12.6 16.2924 13.1057 17.1926 14.0059C18.0927 14.906 18.5985 16.1269 18.5985 17.4M3.59961 19.2C3.59961 19.6774 3.78925 20.1353 4.12682 20.4728C4.46438 20.8104 4.92222 21 5.39961 21C5.877 21 6.33484 20.8104 6.67241 20.4728C7.00997 20.1353 7.19961 19.6774 7.19961 19.2C7.19961 18.7226 7.00997 18.2648 6.67241 17.9272C6.33484 17.5897 5.877 17.4 5.39961 17.4C4.92222 17.4 4.46438 17.5897 4.12682 17.9272C3.78925 18.2648 3.59961 18.7226 3.59961 19.2ZM16.8008 19.2C16.8008 19.6774 16.9904 20.1353 17.328 20.4728C17.6656 20.8104 18.1234 21 18.6008 21C19.0782 21 19.536 20.8104 19.8736 20.4728C20.2111 20.1353 20.4008 19.6774 20.4008 19.2C20.4008 18.7226 20.2111 18.2648 19.8736 17.9272C19.536 17.5897 19.0782 17.4 18.6008 17.4C18.1234 17.4 17.6656 17.5897 17.328 17.9272C16.9904 18.2648 16.8008 18.7226 16.8008 19.2Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), SV = qo(EV), OV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M9.95398 16.3762C11.4106 18.0304 12.3812 19.1337 12.3768 21.2003M7.8431 20.2339C10.0323 20.2339 10.5789 18.6865 10.5789 17.912C10.5789 17.1405 10.0309 15.593 7.8431 15.593C5.65388 15.593 5.1073 17.1405 5.1073 17.9135C5.1073 18.6865 5.65532 20.2339 7.8431 20.2339ZM11.9941 16.0464C4.49482 16.0464 2.62 11.6305 2.62 9.4225C2.62 7.21598 4.49482 2.80005 11.9941 2.80005C19.4934 2.80005 21.3682 7.21598 21.3682 9.4225C21.3682 11.6305 19.4934 16.0464 11.9941 16.0464Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), G9 = qo(OV), TV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M14.0601 5.25V18.75M20.4351 18C20.4351 18.45 20.1351 18.75 19.6851 18.75H4.31006C3.86006 18.75 3.56006 18.45 3.56006 18V6C3.56006 5.55 3.86006 5.25 4.31006 5.25H19.6851C20.1351 5.25 20.4351 5.55 20.4351 6V18Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), CV = qo(TV), AV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M16.3229 22.0811L11.9385 14.4876M11.9385 14.4876L8.6037 19.5387L5.09035 2.62536L17.9807 14.1249L11.9385 14.4876Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), l2 = qo(AV), RV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M20.9998 19.0001C20.9998 20.1046 20.1046 20.9998 19.0001 20.9998M3 4.99969C3 3.8953 3.8953 3 4.99969 3M19.0001 3C20.1046 3 20.9998 3.8953 20.9998 4.99969M3 19.0001C3 20.1046 3.8953 20.9998 4.99969 20.9998M20.9972 10.0067V14.0061M3 14.0061V10.0067M9.99854 3H13.9979M9.99854 20.9972H13.9979", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), V9 = qo(RV); function PV({ title: r, titleId: e, @@ -11618,7 +11618,7 @@ function LV({ d: "m19.5 8.25-7.5 7.5-7.5-7.5" })); } -const jV = /* @__PURE__ */ me.forwardRef(LV), V9 = qo(jV); +const jV = /* @__PURE__ */ me.forwardRef(LV), H9 = qo(jV); function BV({ title: r, titleId: e, @@ -11666,7 +11666,7 @@ function zV({ d: "m8.25 4.5 7.5 7.5-7.5 7.5" })); } -const qV = /* @__PURE__ */ me.forwardRef(zV), H9 = qo(qV); +const qV = /* @__PURE__ */ me.forwardRef(zV), W9 = qo(qV); function GV({ title: r, titleId: e, @@ -11786,7 +11786,7 @@ function tH({ d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" })); } -const rH = /* @__PURE__ */ me.forwardRef(tH), ck = qo(rH); +const rH = /* @__PURE__ */ me.forwardRef(tH), fk = qo(rH); function nH({ title: r, titleId: e, @@ -11834,7 +11834,7 @@ function oH({ d: "M6 18 18 6M6 6l12 12" })); } -const sH = /* @__PURE__ */ me.forwardRef(oH), W9 = qo(sH); +const sH = /* @__PURE__ */ me.forwardRef(oH), Y9 = qo(sH); function uH({ title: r, titleId: e, @@ -11890,7 +11890,7 @@ function c2() { return typeof window < "u"; } function Fp(r) { - return E5(r) ? (r.nodeName || "").toLowerCase() : "#document"; + return S5(r) ? (r.nodeName || "").toLowerCase() : "#document"; } function Ul(r) { var e; @@ -11898,15 +11898,15 @@ function Ul(r) { } function Sh(r) { var e; - return (e = (E5(r) ? r.ownerDocument : r.document) || window.document) == null ? void 0 : e.documentElement; + return (e = (S5(r) ? r.ownerDocument : r.document) || window.document) == null ? void 0 : e.documentElement; } -function E5(r) { +function S5(r) { return c2() ? r instanceof Node || r instanceof Ul(r).Node : !1; } function da(r) { return c2() ? r instanceof Element || r instanceof Ul(r).Element : !1; } -function bo(r) { +function _o(r) { return c2() ? r instanceof HTMLElement || r instanceof Ul(r).HTMLElement : !1; } function vx(r) { @@ -11937,14 +11937,14 @@ function f2(r) { }); } const yH = ["transform", "translate", "scale", "rotate", "perspective"], mH = ["transform", "translate", "scale", "rotate", "perspective", "filter"], bH = ["paint", "layout", "strict", "content"]; -function S5(r) { +function O5(r) { const e = d2(), t = da(r) ? Ff(r) : r; return yH.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || mH.some((n) => (t.willChange || "").includes(n)) || bH.some((n) => (t.contain || "").includes(n)); } function _H(r) { let e = hv(r); - for (; bo(e) && !cv(e); ) { - if (S5(e)) + for (; _o(e) && !cv(e); ) { + if (O5(e)) return e; if (f2(e)) return null; @@ -11983,14 +11983,14 @@ function hv(r) { ); return vx(e) ? e.host : e; } -function Y9(r) { +function X9(r) { const e = hv(r); - return cv(e) ? r.ownerDocument ? r.ownerDocument.body : r.body : bo(e) && B1(e) ? e : Y9(e); + return cv(e) ? r.ownerDocument ? r.ownerDocument.body : r.body : _o(e) && B1(e) ? e : X9(e); } function wp(r, e, t) { var n; e === void 0 && (e = []), t === void 0 && (t = !0); - const i = Y9(r), a = i === ((n = r.ownerDocument) == null ? void 0 : n.body), o = Ul(i); + const i = X9(r), a = i === ((n = r.ownerDocument) == null ? void 0 : n.body), o = Ul(i); if (a) { const s = eM(o); return e.concat(o, o.visualViewport || [], B1(i) ? i : [], s && t ? wp(s) : []); @@ -12012,7 +12012,7 @@ const px = Math.min, Bg = Math.max, gx = Math.round, hm = Math.floor, _h = (r) = start: "end", end: "start" }; -function fk(r, e, t) { +function dk(r, e, t) { return Bg(r, px(e, t)); } function v2(r, e) { @@ -12024,22 +12024,22 @@ function qg(r) { function p2(r) { return r.split("-")[1]; } -function X9(r) { +function $9(r) { return r === "x" ? "y" : "x"; } -function $9(r) { +function K9(r) { return r === "y" ? "height" : "width"; } const SH = /* @__PURE__ */ new Set(["top", "bottom"]); function dp(r) { return SH.has(qg(r)) ? "y" : "x"; } -function K9(r) { - return X9(dp(r)); +function Z9(r) { + return $9(dp(r)); } function OH(r, e, t) { t === void 0 && (t = !1); - const n = p2(r), i = K9(r), a = $9(i); + const n = p2(r), i = Z9(r), a = K9(i); let o = i === "x" ? n === (t ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top"; return e.reference[a] > e.floating[a] && (o = yx(o)), [o, yx(o)]; } @@ -12050,12 +12050,12 @@ function TH(r) { function tM(r) { return r.replace(/start|end/g, (e) => EH[e]); } -const dk = ["left", "right"], hk = ["right", "left"], CH = ["top", "bottom"], AH = ["bottom", "top"]; +const hk = ["left", "right"], vk = ["right", "left"], CH = ["top", "bottom"], AH = ["bottom", "top"]; function RH(r, e, t) { switch (r) { case "top": case "bottom": - return t ? e ? hk : dk : e ? dk : hk; + return t ? e ? vk : hk : e ? hk : vk; case "left": case "right": return e ? CH : AH; @@ -12110,8 +12110,8 @@ function mx(r) { * tabbable 6.4.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */ -var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], bx = /* @__PURE__ */ kH.join(","), Z9 = typeof Element > "u", Im = Z9 ? function() { -} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, _x = !Z9 && Element.prototype.getRootNode ? function(r) { +var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], bx = /* @__PURE__ */ kH.join(","), Q9 = typeof Element > "u", Im = Q9 ? function() { +} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, _x = !Q9 && Element.prototype.getRootNode ? function(r) { var e; return r == null || (e = r.getRootNode) === null || e === void 0 ? void 0 : e.call(r); } : function(r) { @@ -12126,7 +12126,7 @@ var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] }, IH = function(e) { var t, n = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "contenteditable"); return n === "" || n === "true"; -}, Q9 = function(e, t, n) { +}, J9 = function(e, t, n) { if (wx(e)) return []; var i = Array.prototype.slice.apply(e.querySelectorAll(bx)); @@ -12157,21 +12157,21 @@ var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] } } return i; -}, J9 = function(e) { - return !isNaN(parseInt(e.getAttribute("tabindex"), 10)); }, e7 = function(e) { + return !isNaN(parseInt(e.getAttribute("tabindex"), 10)); +}, t7 = function(e) { if (!e) throw new Error("No node provided"); - return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || IH(e)) && !J9(e) ? 0 : e.tabIndex; + return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || IH(e)) && !e7(e) ? 0 : e.tabIndex; }, NH = function(e, t) { - var n = e7(e); - return n < 0 && t && !J9(e) ? 0 : n; + var n = t7(e); + return n < 0 && t && !e7(e) ? 0 : n; }, LH = function(e, t) { return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex; -}, t7 = function(e) { +}, r7 = function(e) { return e.tagName === "INPUT"; }, jH = function(e) { - return t7(e) && e.type === "hidden"; + return r7(e) && e.type === "hidden"; }, BH = function(e) { var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(n) { return n.tagName === "SUMMARY"; @@ -12198,7 +12198,7 @@ var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] var a = FH(i, e.form); return !a || a === e; }, zH = function(e) { - return t7(e) && e.type === "radio"; + return r7(e) && e.type === "radio"; }, qH = function(e) { return zH(e) && !UH(e); }, GH = function(e) { @@ -12211,7 +12211,7 @@ var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] } } return a; -}, vk = function(e) { +}, pk = function(e) { var t = e.getBoundingClientRect(), n = t.width, i = t.height; return n === 0 && i === 0; }, VH = function(e, t) { @@ -12244,7 +12244,7 @@ var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] for (var u = e; e; ) { var l = e.parentElement, c = _x(e); if (l && !l.shadowRoot && i(l) === !0) - return vk(e); + return pk(e); e.assignedSlot ? e = e.assignedSlot : !l && c !== e.ownerDocument ? e = c.host : e = l; } e = u; @@ -12254,7 +12254,7 @@ var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] if (n !== "legacy-full") return !0; } else if (n === "non-zero-area") - return vk(e); + return pk(e); return !1; }, HH = function(e) { if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) @@ -12274,14 +12274,14 @@ var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] return !(t.disabled || jH(t) || VH(t, e) || // For a details element with a summary, the summary element gets the focus BH(t) || HH(t)); }, nM = function(e, t) { - return !(qH(t) || e7(t) < 0 || !rM(e, t)); + return !(qH(t) || t7(t) < 0 || !rM(e, t)); }, WH = function(e) { var t = parseInt(e.getAttribute("tabindex"), 10); return !!(isNaN(t) || t >= 0); -}, r7 = function(e) { +}, n7 = function(e) { var t = [], n = []; return e.forEach(function(i, a) { - var o = !!i.scopeParent, s = o ? i.scopeParent : i, u = NH(s, o), l = o ? r7(i.candidates) : s; + var o = !!i.scopeParent, s = o ? i.scopeParent : i, u = NH(s, o), l = o ? n7(i.candidates) : s; u === 0 ? o ? t.push.apply(t, l) : t.push(s) : n.push({ documentOrder: a, tabIndex: u, @@ -12300,7 +12300,7 @@ var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] flatten: !1, getShadowRoot: t.getShadowRoot, shadowRootFilter: WH - }) : n = Q9(e, t.includeContainer, nM.bind(null, t)), r7(n); + }) : n = J9(e, t.includeContainer, nM.bind(null, t)), n7(n); }, YH = function(e, t) { t = t || {}; var n; @@ -12308,17 +12308,17 @@ var kH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] filter: rM.bind(null, t), flatten: !0, getShadowRoot: t.getShadowRoot - }) : n = Q9(e, t.includeContainer, rM.bind(null, t)), n; -}, n7 = function(e, t) { + }) : n = J9(e, t.includeContainer, rM.bind(null, t)), n; +}, i7 = function(e, t) { if (t = t || {}, !e) throw new Error("No node provided"); return Im.call(e, bx) === !1 ? !1 : nM(t, e); }; -function i7() { +function a7() { const r = navigator.userAgentData; return r != null && r.platform ? r.platform : navigator.platform; } -function a7() { +function o7() { const r = navigator.userAgentData; return r && Array.isArray(r.brands) ? r.brands.map((e) => { let { @@ -12328,20 +12328,20 @@ function a7() { return t + "/" + n; }).join(" ") : navigator.userAgent; } -function o7() { +function s7() { return /apple/i.test(navigator.vendor); } function iM() { const r = /android/i; - return r.test(i7()) || r.test(a7()); + return r.test(a7()) || r.test(o7()); } function XH() { - return i7().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints; + return a7().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints; } -function s7() { - return a7().includes("jsdom/"); +function u7() { + return o7().includes("jsdom/"); } -const pk = "data-floating-ui-focusable", $H = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", ZE = "ArrowLeft", QE = "ArrowRight", KH = "ArrowUp", ZH = "ArrowDown"; +const gk = "data-floating-ui-focusable", $H = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", ZE = "ArrowLeft", QE = "ArrowRight", KH = "ArrowUp", ZH = "ArrowDown"; function yh(r) { let e = r.activeElement; for (; ((t = e) == null || (t = t.shadowRoot) == null ? void 0 : t.activeElement) != null; ) { @@ -12383,14 +12383,14 @@ function QH(r) { function su(r) { return (r == null ? void 0 : r.ownerDocument) || document; } -function O5(r) { - return bo(r) && r.matches($H); +function T5(r) { + return _o(r) && r.matches($H); } function aM(r) { - return r ? r.getAttribute("role") === "combobox" && O5(r) : !1; + return r ? r.getAttribute("role") === "combobox" && T5(r) : !1; } function JH(r) { - if (!r || s7()) return !0; + if (!r || u7()) return !0; try { return r.matches(":focus-visible"); } catch { @@ -12398,7 +12398,7 @@ function JH(r) { } } function Ex(r) { - return r ? r.hasAttribute(pk) ? r : r.querySelector("[" + pk + "]") || r : null; + return r ? r.hasAttribute(gk) ? r : r.querySelector("[" + gk + "]") || r : null; } function Fg(r, e, t) { return t === void 0 && (t = !0), r.filter((i) => { @@ -12415,7 +12415,7 @@ function eW(r, e) { } return i(e, 0), r.find((a) => a.id === t); } -function gk(r, e) { +function yk(r, e) { var t; let n = [], i = (t = r.find((a) => a.id === e)) == null ? void 0 : t.parentId; for (; i; ) { @@ -12430,11 +12430,11 @@ function ou(r) { function tW(r) { return "nativeEvent" in r; } -function u7(r) { +function l7(r) { return r.mozInputSource === 0 && r.isTrusted ? !0 : iM() && r.pointerType ? r.type === "click" && r.buttons === 1 : r.detail === 0 && !r.pointerType; } -function l7(r) { - return s7() ? !1 : !iM() && r.width === 0 && r.height === 0 || iM() && r.width === 1 && r.height === 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height. +function c7(r) { + return u7() ? !1 : !iM() && r.width === 0 && r.height === 0 || iM() && r.width === 1 && r.height === 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height. r.width < 1 && r.height < 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "touch"; } function Nm(r, e) { @@ -12444,7 +12444,7 @@ function Nm(r, e) { var rW = typeof document < "u", nW = function() { }, Di = rW ? me.useLayoutEffect : nW; const iW = { - ...F9 + ...U9 }; function Ls(r) { const e = me.useRef(r); @@ -12475,7 +12475,7 @@ function eS(r, e) { disabledIndices: e }); } -function yk(r, e) { +function mk(r, e) { return Yu(r, { decrement: !0, startingIndex: r.current.length, @@ -12614,17 +12614,17 @@ const F1 = () => ({ typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none" ) }); -function c7(r, e) { +function f7(r, e) { const t = g2(r, F1()), n = t.length; if (n === 0) return; const i = yh(su(r)), a = t.indexOf(i), o = a === -1 ? e === 1 ? 0 : n - 1 : a + e; return t[o]; } -function f7(r) { - return c7(su(r).body, 1) || r; -} function d7(r) { - return c7(su(r).body, -1) || r; + return f7(su(r).body, 1) || r; +} +function h7(r) { + return f7(su(r).body, -1) || r; } function Pb(r, e) { const t = e || r.currentTarget, n = r.relatedTarget; @@ -12635,19 +12635,19 @@ function fW(r) { t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1"); }); } -function mk(r) { +function bk(r) { r.querySelectorAll("[data-tabindex]").forEach((t) => { const n = t.dataset.tabindex; delete t.dataset.tabindex, n ? t.setAttribute("tabindex", n) : t.removeAttribute("tabindex"); }); } -var y2 = U9(); -function bk(r, e, t) { +var y2 = z9(); +function _k(r, e, t) { let { reference: n, floating: i } = r; - const a = dp(e), o = K9(e), s = $9(o), u = qg(e), l = a === "y", c = n.x + n.width / 2 - i.width / 2, f = n.y + n.height / 2 - i.height / 2, d = n[s] / 2 - i[s] / 2; + const a = dp(e), o = Z9(e), s = K9(o), u = qg(e), l = a === "y", c = n.x + n.width / 2 - i.width / 2, f = n.y + n.height / 2 - i.height / 2, d = n[s] / 2 - i[s] / 2; let h; switch (u) { case "top": @@ -12749,7 +12749,7 @@ const hW = async (r, e, t) => { }), { x: c, y: f - } = bk(l, n, u), d = n, h = {}, p = 0; + } = _k(l, n, u), d = n, h = {}, p = 0; for (let y = 0; y < s.length; y++) { var g; const { @@ -12790,7 +12790,7 @@ const hW = async (r, e, t) => { }) : O.rects), { x: c, y: f - } = bk(l, d, u)), y = -1); + } = _k(l, d, u)), y = -1); } return { x: c, @@ -12959,15 +12959,15 @@ const yW = function(r) { } = v2(r, e), c = { x: t, y: n - }, f = await a.detectOverflow(e, l), d = dp(qg(i)), h = X9(d); + }, f = await a.detectOverflow(e, l), d = dp(qg(i)), h = $9(d); let p = c[h], g = c[d]; if (o) { const b = h === "y" ? "top" : "left", _ = h === "y" ? "bottom" : "right", m = p + f[b], x = p - f[_]; - p = fk(m, p, x); + p = dk(m, p, x); } if (s) { const b = d === "y" ? "top" : "left", _ = d === "y" ? "bottom" : "right", m = g + f[b], x = g - f[_]; - g = fk(m, g, x); + g = dk(m, g, x); } const y = u.fn({ ...e, @@ -12988,28 +12988,28 @@ const yW = function(r) { } }; }; -function h7(r) { +function v7(r) { const e = Ff(r); let t = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0; - const i = bo(r), a = i ? r.offsetWidth : t, o = i ? r.offsetHeight : n, s = gx(t) !== a || gx(n) !== o; + const i = _o(r), a = i ? r.offsetWidth : t, o = i ? r.offsetHeight : n, s = gx(t) !== a || gx(n) !== o; return s && (t = a, n = o), { width: t, height: n, $: s }; } -function T5(r) { +function C5(r) { return da(r) ? r : r.contextElement; } function bm(r) { - const e = T5(r); - if (!bo(e)) + const e = C5(r); + if (!_o(e)) return _h(1); const t = e.getBoundingClientRect(), { width: n, height: i, $: a - } = h7(e); + } = v7(e); let o = (a ? gx(t.width) : t.width) / n, s = (a ? gx(t.height) : t.height) / i; return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), { x: o, @@ -13017,7 +13017,7 @@ function bm(r) { }; } const bW = /* @__PURE__ */ _h(0); -function v7(r) { +function p7(r) { const e = Ul(r); return !d2() || !e.visualViewport ? bW : { x: e.visualViewport.offsetLeft, @@ -13029,10 +13029,10 @@ function _W(r, e, t) { } function Gg(r, e, t, n) { e === void 0 && (e = !1), t === void 0 && (t = !1); - const i = r.getBoundingClientRect(), a = T5(r); + const i = r.getBoundingClientRect(), a = C5(r); let o = _h(1); e && (n ? da(n) && (o = bm(n)) : o = bm(r)); - const s = _W(a, t, n) ? v7(a) : _h(0); + const s = _W(a, t, n) ? p7(a) : _h(0); let u = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, c = i.width / o.x, f = i.height / o.y; if (a) { const d = Ul(a), h = n && da(n) ? Ul(n) : n; @@ -13053,7 +13053,7 @@ function m2(r, e) { const t = h2(r).scrollLeft; return e ? e.left + t : Gg(Sh(r)).left + t; } -function p7(r, e) { +function g7(r, e) { const t = r.getBoundingClientRect(), n = t.left + e.scrollLeft - m2(r, t), i = t.top + e.scrollTop; return { x: n, @@ -13074,12 +13074,12 @@ function wW(r) { scrollLeft: 0, scrollTop: 0 }, l = _h(1); - const c = _h(0), f = bo(n); - if ((f || !f && !a) && ((Fp(n) !== "body" || B1(o)) && (u = h2(n)), bo(n))) { + const c = _h(0), f = _o(n); + if ((f || !f && !a) && ((Fp(n) !== "body" || B1(o)) && (u = h2(n)), _o(n))) { const h = Gg(n); l = bm(n), c.x = h.x + n.clientLeft, c.y = h.y + n.clientTop; } - const d = o && !f && !a ? p7(o, u) : _h(0); + const d = o && !f && !a ? g7(o, u) : _h(0); return { width: t.width * l.x, height: t.height * l.y, @@ -13101,7 +13101,7 @@ function EW(r) { y: s }; } -const _k = 25; +const wk = 25; function SW(r, e) { const t = Ul(r), n = Sh(r), i = t.visualViewport; let a = n.clientWidth, o = n.clientHeight, s = 0, u = 0; @@ -13113,8 +13113,8 @@ function SW(r, e) { const l = m2(n); if (l <= 0) { const c = n.ownerDocument, f = c.body, d = getComputedStyle(f), h = c.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, p = Math.abs(n.clientWidth - f.clientWidth - h); - p <= _k && (a -= p); - } else l <= _k && (a += l); + p <= wk && (a -= p); + } else l <= wk && (a += l); return { width: a, height: o, @@ -13124,7 +13124,7 @@ function SW(r, e) { } const OW = /* @__PURE__ */ new Set(["absolute", "fixed"]); function TW(r, e) { - const t = Gg(r, !0, e === "fixed"), n = t.top + r.clientTop, i = t.left + r.clientLeft, a = bo(r) ? bm(r) : _h(1), o = r.clientWidth * a.x, s = r.clientHeight * a.y, u = i * a.x, l = n * a.y; + const t = Gg(r, !0, e === "fixed"), n = t.top + r.clientTop, i = t.left + r.clientLeft, a = _o(r) ? bm(r) : _h(1), o = r.clientWidth * a.x, s = r.clientHeight * a.y, u = i * a.x, l = n * a.y; return { width: o, height: s, @@ -13132,7 +13132,7 @@ function TW(r, e) { y: l }; } -function wk(r, e, t) { +function xk(r, e, t) { let n; if (e === "viewport") n = SW(r, t); @@ -13141,7 +13141,7 @@ function wk(r, e, t) { else if (da(e)) n = TW(e, t); else { - const i = v7(r); + const i = p7(r); n = { x: e.x - i.x, y: e.y - i.y, @@ -13151,9 +13151,9 @@ function wk(r, e, t) { } return mx(n); } -function g7(r, e) { +function y7(r, e) { const t = hv(r); - return t === e || !da(t) || cv(t) ? !1 : Ff(t).position === "fixed" || g7(t, e); + return t === e || !da(t) || cv(t) ? !1 : Ff(t).position === "fixed" || y7(t, e); } function CW(r, e) { const t = e.get(r); @@ -13163,8 +13163,8 @@ function CW(r, e) { const a = Ff(r).position === "fixed"; let o = a ? hv(r) : r; for (; da(o) && !cv(o); ) { - const s = Ff(o), u = S5(o); - !u && s.position === "fixed" && (i = null), (a ? !u && !i : !u && s.position === "static" && !!i && OW.has(i.position) || B1(o) && !u && g7(r, o)) ? n = n.filter((c) => c !== o) : i = s, o = hv(o); + const s = Ff(o), u = O5(o); + !u && s.position === "fixed" && (i = null), (a ? !u && !i : !u && s.position === "static" && !!i && OW.has(i.position) || B1(o) && !u && y7(r, o)) ? n = n.filter((c) => c !== o) : i = s, o = hv(o); } return e.set(r, n), n; } @@ -13176,9 +13176,9 @@ function AW(r) { strategy: i } = r; const o = [...t === "clippingAncestors" ? f2(e) ? [] : CW(e, this._c) : [].concat(t), n], s = o[0], u = o.reduce((l, c) => { - const f = wk(e, c, i); + const f = xk(e, c, i); return l.top = Bg(f.top, l.top), l.right = px(f.right, l.right), l.bottom = px(f.bottom, l.bottom), l.left = Bg(f.left, l.left), l; - }, wk(e, s, i)); + }, xk(e, s, i)); return { width: u.right - u.left, height: u.bottom - u.top, @@ -13190,14 +13190,14 @@ function RW(r) { const { width: e, height: t - } = h7(r); + } = v7(r); return { width: e, height: t }; } function PW(r, e, t) { - const n = bo(e), i = Sh(e), a = t === "fixed", o = Gg(r, !0, a, e); + const n = _o(e), i = Sh(e), a = t === "fixed", o = Gg(r, !0, a, e); let s = { scrollLeft: 0, scrollTop: 0 @@ -13212,7 +13212,7 @@ function PW(r, e, t) { u.x = h.x + e.clientLeft, u.y = h.y + e.clientTop; } else i && l(); a && !n && i && l(); - const c = i && !n && !a ? p7(i, s) : _h(0), f = o.left + s.scrollLeft - u.x - c.x, d = o.top + s.scrollTop - u.y - c.y; + const c = i && !n && !a ? g7(i, s) : _h(0), f = o.left + s.scrollLeft - u.x - c.x, d = o.top + s.scrollTop - u.y - c.y; return { x: f, y: d, @@ -13223,19 +13223,19 @@ function PW(r, e, t) { function tS(r) { return Ff(r).position === "static"; } -function xk(r, e) { - if (!bo(r) || Ff(r).position === "fixed") +function Ek(r, e) { + if (!_o(r) || Ff(r).position === "fixed") return null; if (e) return e(r); let t = r.offsetParent; return Sh(r) === t && (t = t.ownerDocument.body), t; } -function y7(r, e) { +function m7(r, e) { const t = Ul(r); if (f2(r)) return t; - if (!bo(r)) { + if (!_o(r)) { let i = hv(r); for (; i && !cv(i); ) { if (da(i) && !tS(i)) @@ -13244,13 +13244,13 @@ function y7(r, e) { } return t; } - let n = xk(r, e); + let n = Ek(r, e); for (; n && pH(n) && tS(n); ) - n = xk(n, e); - return n && cv(n) && tS(n) && !S5(n) ? t : n || _H(r) || t; + n = Ek(n, e); + return n && cv(n) && tS(n) && !O5(n) ? t : n || _H(r) || t; } const MW = async function(r) { - const e = this.getOffsetParent || y7, t = this.getDimensions, n = await t(r.floating); + const e = this.getOffsetParent || m7, t = this.getDimensions, n = await t(r.floating); return { reference: PW(r.reference, await e(r.floating), r.strategy), floating: { @@ -13268,7 +13268,7 @@ const kW = { convertOffsetParentRelativeRectToViewportRelativeRect: wW, getDocumentElement: Sh, getClippingRect: AW, - getOffsetParent: y7, + getOffsetParent: m7, getElementRects: MW, getClientRects: xW, getDimensions: RW, @@ -13276,7 +13276,7 @@ const kW = { isElement: da, isRTL: DW }; -function m7(r, e) { +function b7(r, e) { return r.x === e.x && r.y === e.y && r.width === e.width && r.height === e.height; } function IW(r, e) { @@ -13310,7 +13310,7 @@ function IW(r, e) { o(!1, 1e-7); }, 1e3); } - S === 1 && !m7(l, r.getBoundingClientRect()) && o(), x = !1; + S === 1 && !b7(l, r.getBoundingClientRect()) && o(), x = !1; } try { t = new IntersectionObserver(E, { @@ -13325,7 +13325,7 @@ function IW(r, e) { } return o(!0), a; } -function C5(r, e, t, n) { +function A5(r, e, t, n) { n === void 0 && (n = {}); const { ancestorScroll: i = !0, @@ -13333,7 +13333,7 @@ function C5(r, e, t, n) { elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: u = !1 - } = n, l = T5(r), c = i || a ? [...l ? wp(l) : [], ...wp(e)] : []; + } = n, l = C5(r), c = i || a ? [...l ? wp(l) : [], ...wp(e)] : []; c.forEach((b) => { i && b.addEventListener("scroll", t, { passive: !0 @@ -13352,7 +13352,7 @@ function C5(r, e, t, n) { u && y(); function y() { const b = Gg(r); - g && !m7(g, b) && t(), g = b, p = requestAnimationFrame(y); + g && !b7(g, b) && t(), g = b, p = requestAnimationFrame(y); } return t(), () => { var b; @@ -13406,11 +13406,11 @@ function Sx(r, e) { } return r !== r && e !== e; } -function b7(r) { +function _7(r) { return typeof window > "u" ? 1 : (r.ownerDocument.defaultView || window).devicePixelRatio || 1; } -function Ek(r, e) { - const t = b7(r); +function Sk(r, e) { + const t = _7(r); return Math.round(e * t) / t; } function rS(r) { @@ -13500,11 +13500,11 @@ function zW(r) { }; if (!H.floating) return W; - const $ = Ek(H.floating, c.x), J = Ek(H.floating, c.y); + const $ = Sk(H.floating, c.x), J = Sk(H.floating, c.y); return s ? { ...W, transform: "translate(" + $ + "px, " + J + "px)", - ...b7(H.floating) >= 1.5 && { + ..._7(H.floating) >= 1.5 && { willChange: "transform" } } : { @@ -13521,13 +13521,13 @@ function zW(r) { floatingStyles: q }), [c, B, z, H, q]); } -const A5 = (r, e) => ({ +const R5 = (r, e) => ({ ...NW(r), options: [r, e] -}), R5 = (r, e) => ({ +}), P5 = (r, e) => ({ ...LW(r), options: [r, e] -}), P5 = (r, e) => ({ +}), M5 = (r, e) => ({ ...jW(r), options: [r, e] }); @@ -13558,7 +13558,7 @@ function qW(r, e) { const t = r.compareDocumentPosition(e); return t & Node.DOCUMENT_POSITION_FOLLOWING || t & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : t & Node.DOCUMENT_POSITION_PRECEDING || t & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0; } -const _7 = /* @__PURE__ */ me.createContext({ +const w7 = /* @__PURE__ */ me.createContext({ register: () => { }, unregister: () => { @@ -13586,7 +13586,7 @@ function GW(r) { l.set(f, d); }), l; }, [i]); - return /* @__PURE__ */ Te.jsx(_7.Provider, { + return /* @__PURE__ */ Te.jsx(w7.Provider, { value: me.useMemo(() => ({ register: o, unregister: s, @@ -13607,7 +13607,7 @@ function b2(r) { map: i, elementsRef: a, labelsRef: o - } = me.useContext(_7), [s, u] = me.useState(null), l = me.useRef(null), c = me.useCallback((f) => { + } = me.useContext(w7), [s, u] = me.useState(null), l = me.useRef(null), c = me.useCallback((f) => { if (l.current = f, s !== null && (a.current[s] = f, o)) { var d; const h = e !== void 0; @@ -13628,25 +13628,25 @@ function b2(r) { index: s ?? -1 }), [s, c]); } -const VW = "data-floating-ui-focusable", Sk = "active", Ok = "selected", U1 = "ArrowLeft", z1 = "ArrowRight", w7 = "ArrowUp", _2 = "ArrowDown", HW = { - ...F9 +const VW = "data-floating-ui-focusable", Ok = "active", Tk = "selected", U1 = "ArrowLeft", z1 = "ArrowRight", x7 = "ArrowUp", _2 = "ArrowDown", HW = { + ...U9 }; -let Tk = !1, WW = 0; -const Ck = () => ( +let Ck = !1, WW = 0; +const Ak = () => ( // Ensure the id is unique with multiple independent versions of Floating UI // on Tk ? Ck() : void 0); + const [r, e] = me.useState(() => Ck ? Ak() : void 0); return Di(() => { - r == null && e(Ck()); + r == null && e(Ak()); }, []), me.useEffect(() => { - Tk = !0; + Ck = !0; }, []), r; } const XW = HW.useId, w2 = XW || YW; -function x7() { +function E7() { const r = /* @__PURE__ */ new Map(); return { emit(e, t) { @@ -13662,10 +13662,10 @@ function x7() { } }; } -const E7 = /* @__PURE__ */ me.createContext(null), S7 = /* @__PURE__ */ me.createContext(null), Up = () => { +const S7 = /* @__PURE__ */ me.createContext(null), O7 = /* @__PURE__ */ me.createContext(null), Up = () => { var r; - return ((r = me.useContext(E7)) == null ? void 0 : r.id) || null; -}, bv = () => me.useContext(S7); + return ((r = me.useContext(S7)) == null ? void 0 : r.id) || null; +}, bv = () => me.useContext(O7); function $W(r) { const e = w2(), t = bv(), i = Up(); return Di(() => { @@ -13684,7 +13684,7 @@ function KW(r) { children: e, id: t } = r, n = Up(); - return /* @__PURE__ */ Te.jsx(E7.Provider, { + return /* @__PURE__ */ Te.jsx(S7.Provider, { value: me.useMemo(() => ({ id: t, parentId: n @@ -13699,8 +13699,8 @@ function ZW(r) { t.current = [...t.current, o]; }, []), i = me.useCallback((o) => { t.current = t.current.filter((s) => s !== o); - }, []), [a] = me.useState(() => x7()); - return /* @__PURE__ */ Te.jsx(S7.Provider, { + }, []), [a] = me.useState(() => E7()); + return /* @__PURE__ */ Te.jsx(O7.Provider, { value: me.useMemo(() => ({ nodesRef: t, addNode: n, @@ -13716,7 +13716,7 @@ function Vg(r) { function au(r) { r.current !== -1 && (clearTimeout(r.current), r.current = -1); } -const Ak = /* @__PURE__ */ Vg("safe-polygon"); +const Rk = /* @__PURE__ */ Vg("safe-polygon"); function nS(r, e, t) { if (t && !Nm(t)) return 0; @@ -13731,7 +13731,7 @@ function nS(r, e, t) { function iS(r) { return typeof r == "function" ? r() : r; } -function O7(r, e) { +function T7(r, e) { e === void 0 && (e = {}); const { open: t, @@ -13782,7 +13782,7 @@ function O7(r, e) { }), j = Wa(() => { if (T.current) { const q = su(o.floating).body; - q.style.pointerEvents = "", q.removeAttribute(Ak), T.current = !1; + q.style.pointerEvents = "", q.removeAttribute(Rk), T.current = !1; } }), z = Wa(() => i.current.openEvent ? ["click", "mousedown"].includes(i.current.openEvent.type) : !1); me.useEffect(() => { @@ -13853,7 +13853,7 @@ function O7(r, e) { if (da(o.domReference) && $) { var W; const J = su(o.floating).body; - J.setAttribute(Ak, ""); + J.setAttribute(Rk, ""); const X = o.domReference, Z = h == null || (W = h.nodesRef.current.find((ue) => ue.id === p)) == null || (W = W.context) == null ? void 0 : W.elements.floating; return Z && (Z.style.pointerEvents = ""), J.style.pointerEvents = "none", X.style.pointerEvents = "auto", $.style.pointerEvents = "auto", () => { J.style.pointerEvents = "", X.style.pointerEvents = "", $.style.pointerEvents = ""; @@ -13887,7 +13887,7 @@ function O7(r, e) { reference: H } : {}, [s, H]); } -let Rk = 0; +let Pk = 0; function Tg(r, e) { e === void 0 && (e = {}); const { @@ -13895,11 +13895,11 @@ function Tg(r, e) { cancelPrevious: n = !0, sync: i = !1 } = e; - n && cancelAnimationFrame(Rk); + n && cancelAnimationFrame(Pk); const a = () => r == null ? void 0 : r.focus({ preventScroll: t }); - i ? a() : Rk = requestAnimationFrame(a); + i ? a() : Pk = requestAnimationFrame(a); } function aS(r, e) { if (!r || !e) @@ -13928,14 +13928,14 @@ const _m = { "aria-hidden": /* @__PURE__ */ new WeakMap(), none: /* @__PURE__ */ new WeakMap() }; -function Pk(r) { +function Mk(r) { return r === "inert" ? _m.inert : r === "aria-hidden" ? _m["aria-hidden"] : _m.none; } let nw = /* @__PURE__ */ new WeakSet(), iw = {}, oS = 0; -const eY = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, T7 = (r) => r && (r.host || T7(r.parentNode)), tY = (r, e) => e.map((t) => { +const eY = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, C7 = (r) => r && (r.host || C7(r.parentNode)), tY = (r, e) => e.map((t) => { if (r.contains(t)) return t; - const n = T7(t); + const n = C7(t); return r.contains(n) ? n : null; }).filter((t) => t != null); function rY(r, e, t, n) { @@ -13952,24 +13952,24 @@ function rY(r, e, t, n) { if (s.has(p)) d(p); else { - const g = a ? p.getAttribute(a) : null, y = g !== null && g !== "false", b = Pk(a), _ = (b.get(p) || 0) + 1, m = (c.get(p) || 0) + 1; + const g = a ? p.getAttribute(a) : null, y = g !== null && g !== "false", b = Mk(a), _ = (b.get(p) || 0) + 1, m = (c.get(p) || 0) + 1; b.set(p, _), c.set(p, m), l.push(p), _ === 1 && y && nw.add(p), m === 1 && p.setAttribute(i, ""), !y && a && p.setAttribute(a, a === "inert" ? "" : "true"); } }); } return oS++, () => { l.forEach((h) => { - const p = Pk(a), y = (p.get(h) || 0) - 1, b = (c.get(h) || 0) - 1; + const p = Mk(a), y = (p.get(h) || 0) - 1, b = (c.get(h) || 0) - 1; p.set(h, y), c.set(h, b), y || (!nw.has(h) && a && h.removeAttribute(a), nw.delete(h)), b || h.removeAttribute(i); }), oS--, oS || (_m.inert = /* @__PURE__ */ new WeakMap(), _m["aria-hidden"] = /* @__PURE__ */ new WeakMap(), _m.none = /* @__PURE__ */ new WeakMap(), nw = /* @__PURE__ */ new WeakSet(), iw = {}); }; } -function Mk(r, e, t) { +function Dk(r, e, t) { e === void 0 && (e = !1), t === void 0 && (t = !1); const n = JW(r[0]).body; return rY(r.concat(Array.from(n.querySelectorAll('[aria-live],[role="status"],output'))), n, e, t); } -const M5 = { +const D5 = { border: 0, clip: "rect(0 0 0 0)", height: "1px", @@ -13984,7 +13984,7 @@ const M5 = { }, Ox = /* @__PURE__ */ me.forwardRef(function(e, t) { const [n, i] = me.useState(); Di(() => { - o7() && i("button"); + s7() && i("button"); }, []); const a = { ref: t, @@ -13993,7 +13993,7 @@ const M5 = { role: n, "aria-hidden": n ? void 0 : !0, [Vg("focus-guard")]: "", - style: M5 + style: D5 }; return /* @__PURE__ */ Te.jsx("span", { ...e, @@ -14004,13 +14004,13 @@ const M5 = { position: "fixed", top: 0, left: 0 -}, C7 = /* @__PURE__ */ me.createContext(null), Dk = /* @__PURE__ */ Vg("portal"); +}, A7 = /* @__PURE__ */ me.createContext(null), kk = /* @__PURE__ */ Vg("portal"); function iY(r) { r === void 0 && (r = {}); const { id: e, root: t - } = r, n = w2(), i = A7(), [a, o] = me.useState(null), s = me.useRef(null); + } = r, n = w2(), i = R7(), [a, o] = me.useState(null), s = me.useRef(null); return Di(() => () => { a == null || a.remove(), queueMicrotask(() => { s.current = null; @@ -14020,15 +14020,15 @@ function iY(r) { const u = e ? document.getElementById(e) : null; if (!u) return; const l = document.createElement("div"); - l.id = n, l.setAttribute(Dk, ""), u.appendChild(l), s.current = l, o(l); + l.id = n, l.setAttribute(kk, ""), u.appendChild(l), s.current = l, o(l); }, [e, n]), Di(() => { if (t === null || !n || s.current) return; let u = t || (i == null ? void 0 : i.portalNode); - u && !E5(u) && (u = u.current), u = u || document.body; + u && !S5(u) && (u = u.current), u = u || document.body; let l = null; e && (l = document.createElement("div"), l.id = e, u.appendChild(l)); const c = document.createElement("div"); - c.id = n, c.setAttribute(Dk, ""), u = l || u, u.appendChild(c), s.current = c, o(c); + c.id = n, c.setAttribute(kk, ""), u = l || u, u.appendChild(c), s.current = c, o(c); }, [e, t, n, i]), a; } function Tx(r) { @@ -14051,14 +14051,14 @@ function Tx(r) { if (!a || !i || d) return; function g(y) { - a && Pb(y) && (y.type === "focusin" ? mk : fW)(a); + a && Pb(y) && (y.type === "focusin" ? bk : fW)(a); } return a.addEventListener("focusin", g, !0), a.addEventListener("focusout", g, !0), () => { a.removeEventListener("focusin", g, !0), a.removeEventListener("focusout", g, !0); }; }, [a, i, d]), me.useEffect(() => { - a && (h || mk(a)); - }, [h, a]), /* @__PURE__ */ Te.jsxs(C7.Provider, { + a && (h || bk(a)); + }, [h, a]), /* @__PURE__ */ Te.jsxs(A7.Provider, { value: me.useMemo(() => ({ preserveTabOrder: i, beforeOutsideRef: u, @@ -14076,7 +14076,7 @@ function Tx(r) { var y; (y = c.current) == null || y.focus(); } else { - const b = o ? o.domReference : null, _ = d7(b); + const b = o ? o.domReference : null, _ = h7(b); _ == null || _.focus(); } } @@ -14091,15 +14091,15 @@ function Tx(r) { var y; (y = f.current) == null || y.focus(); } else { - const b = o ? o.domReference : null, _ = f7(b); + const b = o ? o.domReference : null, _ = d7(b); _ == null || _.focus(), o != null && o.closeOnFocusOut && (o == null || o.onOpenChange(!1, g.nativeEvent, "focus-out")); } } })] }); } -const A7 = () => me.useContext(C7); -function kk(r) { +const R7 = () => me.useContext(A7); +function Ik(r) { return me.useMemo(() => (e) => { r.forEach((t) => { t && (t.current = e); @@ -14108,26 +14108,26 @@ function kk(r) { } const aY = 20; let hp = []; -function D5() { +function k5() { hp = hp.filter((r) => r.isConnected); } function oY(r) { - D5(), r && Fp(r) !== "body" && (hp.push(r), hp.length > aY && (hp = hp.slice(-20))); + k5(), r && Fp(r) !== "body" && (hp.push(r), hp.length > aY && (hp = hp.slice(-20))); } -function Ik() { - return D5(), hp[hp.length - 1]; +function Nk() { + return k5(), hp[hp.length - 1]; } function sY(r) { const e = F1(); - return n7(r, e) ? r : g2(r, e)[0] || r; + return i7(r, e) ? r : g2(r, e)[0] || r; } -function Nk(r, e) { +function Lk(r, e) { var t; if (!e.current.includes("floating") && !((t = r.getAttribute("role")) != null && t.includes("dialog"))) return; const n = F1(), a = YH(r, n).filter((s) => { const u = s.getAttribute("data-tabindex") || ""; - return n7(s, n) || s.hasAttribute("data-tabindex") && !u.startsWith("-"); + return i7(s, n) || s.hasAttribute("data-tabindex") && !u.startsWith("-"); }), o = r.getAttribute("tabindex"); e.current.includes("floating") || a.length === 0 ? o !== "0" && r.setAttribute("tabindex", "0") : (o !== "-1" || r.hasAttribute("data-tabindex") && r.getAttribute("data-tabindex") !== "-1") && (r.setAttribute("tabindex", "-1"), r.setAttribute("data-tabindex", "-1")); } @@ -14137,10 +14137,10 @@ const uY = /* @__PURE__ */ me.forwardRef(function(e, t) { type: "button", ref: t, tabIndex: -1, - style: M5 + style: D5 }); }); -function k5(r) { +function I5(r) { const { context: e, children: t, @@ -14167,7 +14167,7 @@ function k5(r) { } = e, x = Wa(() => { var ge; return (ge = b.current.floatingContext) == null ? void 0 : ge.nodeId; - }), E = Wa(h), O = typeof o == "number" && o < 0, S = aM(_) && O, T = eY(), P = T ? a : !0, I = !P || T && d, k = Ls(i), L = Ls(o), B = Ls(s), j = bv(), z = A7(), H = me.useRef(null), q = me.useRef(null), W = me.useRef(!1), $ = me.useRef(!1), J = me.useRef(-1), X = me.useRef(-1), Z = z != null, ue = Ex(m), re = Wa(function(ge) { + }), E = Wa(h), O = typeof o == "number" && o < 0, S = aM(_) && O, T = eY(), P = T ? a : !0, I = !P || T && d, k = Ls(i), L = Ls(o), B = Ls(s), j = bv(), z = R7(), H = me.useRef(null), q = me.useRef(null), W = me.useRef(!1), $ = me.useRef(!1), J = me.useRef(-1), X = me.useRef(-1), Z = z != null, ue = Ex(m), re = Wa(function(ge) { return ge === void 0 && (ge = ue), ge ? g2(ge, F1()) : []; }), ne = Wa((ge) => { const Oe = re(ge); @@ -14208,21 +14208,21 @@ function k5(r) { const ie = x(), we = !(Ns(_, Ce) || Ns(m, Ce) || Ns(Ce, m) || Ns(z == null ? void 0 : z.portalNode, Ce) || Ce != null && Ce.hasAttribute(Vg("focus-guard")) || j && (Fg(j.nodesRef.current, ie).find((Ee) => { var Me, Ie; return Ns((Me = Ee.context) == null ? void 0 : Me.elements.floating, Ce) || Ns((Ie = Ee.context) == null ? void 0 : Ie.elements.domReference, Ce); - }) || gk(j.nodesRef.current, ie).find((Ee) => { + }) || yk(j.nodesRef.current, ie).find((Ee) => { var Me, Ie, Ye; return [(Me = Ee.context) == null ? void 0 : Me.elements.floating, Ex((Ie = Ee.context) == null ? void 0 : Ie.elements.floating)].includes(Ce) || ((Ye = Ee.context) == null ? void 0 : Ye.elements.domReference) === Ce; }))); - if (Y === _ && ue && Nk(ue, k), u && Y !== _ && !(Q != null && Q.isConnected) && yh(su(ue)) === su(ue).body) { - bo(ue) && ue.focus(); + if (Y === _ && ue && Lk(ue, k), u && Y !== _ && !(Q != null && Q.isConnected) && yh(su(ue)) === su(ue).body) { + _o(ue) && ue.focus(); const Ee = J.current, Me = re(), Ie = Me[Ee] || Me[Me.length - 1] || ue; - bo(Ie) && Ie.focus(); + _o(Ie) && Ie.focus(); } if (b.current.insideReactTree) { b.current.insideReactTree = !1; return; } (S || !l) && Ce && we && !$.current && // Fix React 18 Strict Mode returnFocus due to double rendering. - Ce !== Ik() && (W.current = !0, g(!1, Ne, "focus-out")); + Ce !== Nk() && (W.current = !0, g(!1, Ne, "focus-out")); }); } const ke = !!(!j && z); @@ -14231,24 +14231,24 @@ function k5(r) { b.current.insideReactTree = !1; }); } - if (m && bo(_)) + if (m && _o(_)) return _.addEventListener("focusout", Oe), _.addEventListener("pointerdown", ge), m.addEventListener("focusout", Oe), ke && m.addEventListener("focusout", De, !0), () => { _.removeEventListener("focusout", Oe), _.removeEventListener("pointerdown", ge), m.removeEventListener("focusout", Oe), ke && m.removeEventListener("focusout", De, !0); }; }, [n, _, m, ue, l, j, z, g, f, u, re, S, x, k, b]); - const le = me.useRef(null), ce = me.useRef(null), pe = kk([le, z == null ? void 0 : z.beforeInsideRef]), fe = kk([ce, z == null ? void 0 : z.afterInsideRef]); + const le = me.useRef(null), ce = me.useRef(null), pe = Ik([le, z == null ? void 0 : z.beforeInsideRef]), fe = Ik([ce, z == null ? void 0 : z.afterInsideRef]); me.useEffect(() => { var ge, Oe; if (n || !m) return; - const ke = Array.from((z == null || (ge = z.portalNode) == null ? void 0 : ge.querySelectorAll("[" + Vg("portal") + "]")) || []), Ne = (Oe = (j ? gk(j.nodesRef.current, x()) : []).find((Q) => { + const ke = Array.from((z == null || (ge = z.portalNode) == null ? void 0 : ge.querySelectorAll("[" + Vg("portal") + "]")) || []), Ne = (Oe = (j ? yk(j.nodesRef.current, x()) : []).find((Q) => { var ie; return aM(((ie = Q.context) == null ? void 0 : ie.elements.domReference) || null); - })) == null || (Oe = Oe.context) == null ? void 0 : Oe.elements.domReference, Ce = [m, Ne, ...ke, ...E(), H.current, q.current, le.current, ce.current, z == null ? void 0 : z.beforeOutsideRef.current, z == null ? void 0 : z.afterOutsideRef.current, k.current.includes("reference") || S ? _ : null].filter((Q) => Q != null), Y = l || S ? Mk(Ce, !I, I) : Mk(Ce); + })) == null || (Oe = Oe.context) == null ? void 0 : Oe.elements.domReference, Ce = [m, Ne, ...ke, ...E(), H.current, q.current, le.current, ce.current, z == null ? void 0 : z.beforeOutsideRef.current, z == null ? void 0 : z.afterOutsideRef.current, k.current.includes("reference") || S ? _ : null].filter((Q) => Q != null), Y = l || S ? Dk(Ce, !I, I) : Dk(Ce); return () => { Y(); }; }, [n, _, m, l, k, z, S, P, I, j, x, E]), Di(() => { - if (n || !bo(ue)) return; + if (n || !_o(ue)) return; const ge = su(ue), Oe = yh(ge); queueMicrotask(() => { const ke = ne(ue), De = L.current, Ne = (typeof De == "number" ? ke[De] : De.current) || ue, Ce = Ns(ue, Oe); @@ -14269,7 +14269,7 @@ function k5(r) { if (["hover", "safe-polygon"].includes(Y) && Q.type === "mouseleave" && (W.current = !0), Y === "outside-press") if (ie) W.current = !1; - else if (u7(Q) || l7(Q)) + else if (l7(Q) || c7(Q)) W.current = !1; else { let we = !1; @@ -14282,10 +14282,10 @@ function k5(r) { } y.on("openchange", ke); const De = ge.createElement("span"); - De.setAttribute("tabindex", "-1"), De.setAttribute("aria-hidden", "true"), Object.assign(De.style, M5), Z && _ && _.insertAdjacentElement("afterend", De); + De.setAttribute("tabindex", "-1"), De.setAttribute("aria-hidden", "true"), Object.assign(De.style, D5), Z && _ && _.insertAdjacentElement("afterend", De); function Ne() { if (typeof B.current == "boolean") { - const Ce = _ || Ik(); + const Ce = _ || Nk(); return Ce && Ce.isConnected ? Ce : De; } return B.current.current || De; @@ -14299,7 +14299,7 @@ function k5(r) { queueMicrotask(() => { const ie = sY(Q); // eslint-disable-next-line react-hooks/exhaustive-deps - B.current && !W.current && bo(ie) && // If the focus moved somewhere else after mount, avoid returning focus + B.current && !W.current && _o(ie) && // If the focus moved somewhere else after mount, avoid returning focus // since it likely entered a different element which should be // respected: https://github.com/floating-ui/floating-ui/issues/2607 (!(ie !== Ce && Ce !== ge.body) || Y) && ie.focus({ @@ -14310,7 +14310,7 @@ function k5(r) { }, [n, m, ue, B, b, y, j, Z, _, x]), me.useEffect(() => (queueMicrotask(() => { W.current = !1; }), () => { - queueMicrotask(D5); + queueMicrotask(k5); }), [n]), Di(() => { if (!n && z) return z.setFocusManagerState({ @@ -14323,7 +14323,7 @@ function k5(r) { z.setFocusManagerState(null); }; }, [n, z, l, p, g, f, _]), Di(() => { - n || ue && Nk(ue, k); + n || ue && Lk(ue, k); }, [n, ue, k]); function se(ge) { return n || !c || !l ? null : /* @__PURE__ */ Te.jsx(uY, { @@ -14343,7 +14343,7 @@ function k5(r) { Tg(i[0] === "reference" ? ke[0] : ke[ke.length - 1]); } else if (z != null && z.preserveTabOrder && z.portalNode) if (W.current = !1, Pb(ge, z.portalNode)) { - const ke = f7(_); + const ke = d7(_); ke == null || ke.focus(); } else { var Oe; @@ -14358,7 +14358,7 @@ function k5(r) { Tg(ne()[0]); else if (z != null && z.preserveTabOrder && z.portalNode) if (f && (W.current = !0), Pb(ge, z.portalNode)) { - const ke = d7(_); + const ke = h7(_); ke == null || ke.focus(); } else { var Oe; @@ -14368,16 +14368,16 @@ function k5(r) { })] }); } -function Lk(r) { - return bo(r.target) && r.target.tagName === "BUTTON"; +function jk(r) { + return _o(r.target) && r.target.tagName === "BUTTON"; } function lY(r) { - return bo(r.target) && r.target.tagName === "A"; + return _o(r.target) && r.target.tagName === "A"; } -function jk(r) { - return O5(r); +function Bk(r) { + return T5(r); } -function I5(r, e) { +function N5(r, e) { e === void 0 && (e = {}); const { open: t, @@ -14410,10 +14410,10 @@ function I5(r, e) { Nm(y, !0) && l || (t && u && (!(i.current.openEvent && f) || i.current.openEvent.type === "click") ? n(!1, g.nativeEvent, "click") : n(!0, g.nativeEvent, "click")); }, onKeyDown(g) { - d.current = void 0, !(g.defaultPrevented || !c || Lk(g)) && (g.key === " " && !jk(a) && (g.preventDefault(), h.current = !0), !lY(g) && g.key === "Enter" && n(!(t && u), g.nativeEvent, "click")); + d.current = void 0, !(g.defaultPrevented || !c || jk(g)) && (g.key === " " && !Bk(a) && (g.preventDefault(), h.current = !0), !lY(g) && g.key === "Enter" && n(!(t && u), g.nativeEvent, "click")); }, onKeyUp(g) { - g.defaultPrevented || !c || Lk(g) || jk(a) || g.key === " " && h.current && (h.current = !1, n(!(t && u), g.nativeEvent, "click")); + g.defaultPrevented || !c || jk(g) || Bk(a) || g.key === " " && h.current && (h.current = !1, n(!(t && u), g.nativeEvent, "click")); } }), [i, a, s, l, c, n, t, f, u]); return me.useMemo(() => o ? { @@ -14446,7 +14446,7 @@ function cY(r, e) { } }; } -function Bk(r) { +function Fk(r) { return r != null && r.clientX != null; } function fY(r, e) { @@ -14465,7 +14465,7 @@ function fY(r, e) { x: l = null, y: c = null } = e, f = me.useRef(!1), d = me.useRef(null), [h, p] = me.useState(), [g, y] = me.useState([]), b = Wa((O, S) => { - f.current || n.current.openEvent && !Bk(n.current.openEvent) || o.setPositionReference(cY(a, { + f.current || n.current.openEvent && !Fk(n.current.openEvent) || o.setPositionReference(cY(a, { x: O, y: S, axis: u, @@ -14481,7 +14481,7 @@ function fY(r, e) { const P = mh(T); Ns(i, P) ? (O.removeEventListener("mousemove", S), d.current = null) : b(T.clientX, T.clientY); } - if (!n.current.openEvent || Bk(n.current.openEvent)) { + if (!n.current.openEvent || Fk(n.current.openEvent)) { O.addEventListener("mousemove", S); const T = () => { O.removeEventListener("mousemove", S), d.current = null; @@ -14523,14 +14523,14 @@ const dY = { pointerdown: "onPointerDownCapture", mousedown: "onMouseDownCapture", click: "onClickCapture" -}, Fk = (r) => { +}, Uk = (r) => { var e, t; return { escapeKey: typeof r == "boolean" ? r : (e = r == null ? void 0 : r.escapeKey) != null ? e : !1, outsidePress: typeof r == "boolean" ? r : (t = r == null ? void 0 : r.outsidePress) != null ? t : !0 }; }; -function N5(r, e) { +function L5(r, e) { e === void 0 && (e = {}); const { open: t, @@ -14550,10 +14550,10 @@ function N5(r, e) { } = e, g = bv(), y = Wa(typeof u == "function" ? u : () => !1), b = typeof u == "function" ? y : u, _ = me.useRef(!1), { escapeKey: m, outsidePress: x - } = Fk(h), { + } = Uk(h), { escapeKey: E, outsidePress: O - } = Fk(p), S = me.useRef(!1), T = Wa((j) => { + } = Uk(p), S = me.useRef(!1), T = Wa((j) => { var z; if (!t || !o || !s || j.key !== "Escape" || S.current) return; @@ -14597,7 +14597,7 @@ function N5(r, e) { // element was injected after the floating element rendered. Array.from(J).every((ne) => !Ns(X, ne))) return; - if (bo(W) && B) { + if (_o(W) && B) { const ne = cv(W), le = Ff(W), ce = /auto|scroll/, pe = ne || ce.test(le.overflowX), fe = ne || ce.test(le.overflowY), se = pe && W.clientWidth > 0 && W.scrollWidth > W.clientWidth, de = fe && W.clientHeight > 0 && W.scrollHeight > W.clientHeight, ge = le.direction === "rtl", Oe = de && (ge ? j.offsetX <= W.offsetWidth - W.clientWidth : j.offsetX > W.clientWidth), ke = se && j.offsetY > W.clientHeight; if (Oe || ke) return; @@ -14702,7 +14702,7 @@ function vY(r) { open: e = !1, onOpenChange: t, elements: n - } = r, i = w2(), a = me.useRef({}), [o] = me.useState(() => x7()), s = Up() != null, [u, l] = me.useState(n.reference), c = Wa((h, p, g) => { + } = r, i = w2(), a = me.useRef({}), [o] = me.useState(() => E7()), s = Up() != null, [u, l] = me.useState(n.reference), c = Wa((h, p, g) => { a.current.openEvent = h ? p : void 0, o.emit("openchange", { open: h, event: p, @@ -14726,7 +14726,7 @@ function vY(r) { refs: f }), [e, c, d, o, i, f]); } -function L5(r) { +function j5(r) { r === void 0 && (r = {}); const { nodeId: e @@ -14788,7 +14788,7 @@ function L5(r) { }), [h, y, b, _]); } function sS() { - return XH() && o7(); + return XH() && s7(); } function pY(r, e) { e === void 0 && (e = {}); @@ -14806,7 +14806,7 @@ function pY(r, e) { if (!s) return; const h = Ul(o.domReference); function p() { - !t && bo(o.domReference) && o.domReference === yh(su(o.domReference)) && (l.current = !0); + !t && _o(o.domReference) && o.domReference === yh(su(o.domReference)) && (l.current = !0); } function g() { f.current = !0; @@ -14840,7 +14840,7 @@ function pY(r, e) { const p = mh(h.nativeEvent); if (u && da(p)) { if (sS() && !h.relatedTarget) { - if (!f.current && !O5(p)) + if (!f.current && !T5(p)) return; } else if (!JH(p)) return; @@ -14866,8 +14866,8 @@ function uS(r, e, t) { let a = r; if (i && r) { const { - [Sk]: o, - [Ok]: s, + [Ok]: o, + [Tk]: s, ...u } = r; a = u; @@ -14883,7 +14883,7 @@ function uS(r, e, t) { return typeof s == "function" ? r ? s(r) : null : s; }).concat(r).reduce((o, s) => (s && Object.entries(s).forEach((u) => { let [l, c] = u; - if (!(i && [Sk, Ok].includes(l))) + if (!(i && [Ok, Tk].includes(l))) if (l.indexOf("on") === 0) { if (n.has(l) || n.set(l, []), typeof c == "function") { var f; @@ -14898,7 +14898,7 @@ function uS(r, e, t) { }), o), {}) }; } -function j5(r) { +function B5(r) { r === void 0 && (r = []); const e = r.map((s) => s == null ? void 0 : s.reference), t = r.map((s) => s == null ? void 0 : s.floating), n = r.map((s) => s == null ? void 0 : s.item), i = me.useCallback( (s) => uS(s, r, "reference"), @@ -14931,16 +14931,16 @@ function x2(r, e, t) { } } function aw(r, e) { - return x2(e, r === w7 || r === _2, r === U1 || r === z1); + return x2(e, r === x7 || r === _2, r === U1 || r === z1); } function lS(r, e, t) { return x2(e, r === _2, t ? r === U1 : r === z1) || r === "Enter" || r === " " || r === ""; } -function Uk(r, e, t) { +function zk(r, e, t) { return x2(e, t ? r === U1 : r === z1, r === _2); } -function zk(r, e, t, n) { - const i = t ? r === z1 : r === U1, a = r === w7; +function qk(r, e, t, n) { + const i = t ? r === z1 : r === U1, a = r === x7; return e === "both" || e === "horizontal" && n && n > 1 ? r === gY : x2(e, i, a); } function yY(r, e) { @@ -15011,7 +15011,7 @@ function yY(r, e) { if (Z.current && (W.current = -1, ke()), (!ue.current || !Z.current) && q.current && ($.current != null || q.current === !0 && $.current == null)) { let Ee = 0; const Me = () => { - o.current[0] == null ? (Ee < 2 && (Ee ? requestAnimationFrame : queueMicrotask)(Me), Ee++) : (W.current = $.current == null || lS($.current, x, p) || h ? eS(o, le.current) : yk(o, le.current), $.current = null, z()); + o.current[0] == null ? (Ee < 2 && (Ee ? requestAnimationFrame : queueMicrotask)(Me), Ee++) : (W.current = $.current == null || lS($.current, x, p) || h ? eS(o, le.current) : mk(o, le.current), $.current = null, z()); }; Me(); } @@ -15083,11 +15083,11 @@ function yY(r, e) { }, [B, j, E]), Y = Wa((Ee) => { if (J.current = !1, re.current = !0, Ee.which === 229 || !ce.current && Ee.currentTarget === L.current) return; - if (h && zk(Ee.key, x, p, O)) { - aw(Ee.key, Ce()) || ou(Ee), n(!1, Ee.nativeEvent, "list-navigation"), bo(i.domReference) && (g ? j == null || j.events.emit("virtualfocus", i.domReference) : i.domReference.focus()); + if (h && qk(Ee.key, x, p, O)) { + aw(Ee.key, Ce()) || ou(Ee), n(!1, Ee.nativeEvent, "list-navigation"), _o(i.domReference) && (g ? j == null || j.events.emit("virtualfocus", i.domReference) : i.domReference.focus()); return; } - const Me = W.current, Ie = eS(o, m), Ye = yk(o, m); + const Me = W.current, Ie = eS(o, m), Ye = mk(o, m); if (H || (Ee.key === "Home" && (ou(Ee), W.current = Ie, z()), Ee.key === "End" && (ou(Ee), W.current = Ye, z())), O > 1) { const ot = P || Array.from({ length: o.current.length @@ -15154,16 +15154,16 @@ function yY(r, e) { } }), [Q, Y, x, H]), we = me.useMemo(() => { function Ee(Ie) { - y === "auto" && u7(Ie.nativeEvent) && (q.current = !0); + y === "auto" && l7(Ie.nativeEvent) && (q.current = !0); } function Me(Ie) { - q.current = y, y === "auto" && l7(Ie.nativeEvent) && (q.current = !0); + q.current = y, y === "auto" && c7(Ie.nativeEvent) && (q.current = !0); } return { ...Q, onKeyDown(Ie) { J.current = !1; - const Ye = Ie.key.startsWith("Arrow"), ot = ["Home", "End"].includes(Ie.key), mt = Ye || ot, wt = Uk(Ie.key, x, p), Mt = zk(Ie.key, x, p, O), Dt = Uk(Ie.key, Ce(), p), vt = aw(Ie.key, x), tt = (h ? Dt : vt) || Ie.key === "Enter" || Ie.key.trim() === ""; + const Ye = Ie.key.startsWith("Arrow"), ot = ["Home", "End"].includes(Ie.key), mt = Ye || ot, wt = zk(Ie.key, x, p), Mt = qk(Ie.key, x, p, O), Dt = zk(Ie.key, Ce(), p), vt = aw(Ie.key, x), tt = (h ? Dt : vt) || Ie.key === "Enter" || Ie.key.trim() === ""; if (g && t) { const Ze = j == null ? void 0 : j.nodesRef.current.find((It) => It.parentId == null), nt = j && Ze ? eW(j.nodesRef.current, Ze.id) : null; if (mt && nt && T) { @@ -15212,7 +15212,7 @@ function yY(r, e) { } : {}, [l, we, ie, Ne]); } const mY = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]); -function B5(r, e) { +function F5(r, e) { var t, n; e === void 0 && (e = {}); const { @@ -15286,7 +15286,7 @@ function B5(r, e) { item: b } : {}, [s, g, y, b]); } -const qk = (r) => r.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (e, t) => (t ? "-" : "") + e.toLowerCase()); +const Gk = (r) => r.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (e, t) => (t ? "-" : "") + e.toLowerCase()); function Yy(r, e) { return typeof r == "function" ? r(e) : r; } @@ -15358,14 +15358,14 @@ function wY(r, e) { ...S, ...E })), y === "open" && p({ - transitionProperty: Object.keys(T).map(qk).join(","), + transitionProperty: Object.keys(T).map(Gk).join(","), transitionDuration: f + "ms", ...S, ...T }), y === "close") { const P = O || E; p({ - transitionProperty: Object.keys(P).map(qk).join(","), + transitionProperty: Object.keys(P).map(Gk).join(","), transitionDuration: d + "ms", ...S, ...P @@ -15433,13 +15433,13 @@ function xY(r, e) { floating: P } : {}, [l, T, P]); } -function R7(r, e, t) { +function P7(r, e, t) { return t === void 0 && (t = !0), r.filter((i) => { var a; return i.parentId === e && (!t || ((a = i.context) == null ? void 0 : a.open)); - }).flatMap((i) => [i, ...R7(r, i.id, t)]); + }).flatMap((i) => [i, ...P7(r, i.id, t)]); } -function Gk(r, e) { +function Vk(r, e) { const [t, n] = r; let i = !1; const a = e.length; @@ -15452,7 +15452,7 @@ function Gk(r, e) { function EY(r, e) { return r[0] >= e.x && r[0] <= e.x + e.width && r[1] >= e.y && r[1] <= e.y + e.height; } -function P7(r) { +function M7(r) { r === void 0 && (r = {}); const { buffer: e = 0.5, @@ -15495,7 +15495,7 @@ function P7(r) { a = !0; return; } - if (I && da(x.relatedTarget) && aS(g.floating, x.relatedTarget) || _ && R7(_.nodesRef.current, b).length) + if (I && da(x.relatedTarget) && aS(g.floating, x.relatedTarget) || _ && P7(_.nodesRef.current, b).length) return; if (z === "top" && h >= B.bottom - 1 || z === "bottom" && h <= B.top + 1 || z === "left" && d >= B.right - 1 || z === "right" && d <= B.left + 1) return E(); @@ -15535,7 +15535,7 @@ function P7(r) { } } } - if (!Gk([O, S], ne)) { + if (!Vk([O, S], ne)) { if (a && !W) return E(); if (!I && n) { @@ -15543,7 +15543,7 @@ function P7(r) { if (ce !== null && ce < 0.1) return E(); } - Gk([O, S], le([d, h])) ? !a && n && (i.current = window.setTimeout(E, 40)) : E(); + Vk([O, S], le([d, h])) ? !a && n && (i.current = window.setTimeout(E, 40)) : E(); } }; }; @@ -15551,7 +15551,7 @@ function P7(r) { blockPointerEvents: t }, c; } -const v1 = ({ shouldWrap: r, wrap: e, children: t }) => r ? e(t) : t, SY = ao.createContext(null), F5 = () => !!me.useContext(SY), OY = me.createContext(void 0), TY = me.createContext(void 0), E2 = () => { +const v1 = ({ shouldWrap: r, wrap: e, children: t }) => r ? e(t) : t, SY = oo.createContext(null), U5 = () => !!me.useContext(SY), OY = me.createContext(void 0), TY = me.createContext(void 0), E2 = () => { let r = me.useContext(OY); r === void 0 && (r = "light"); const e = me.useContext(TY); @@ -15562,40 +15562,40 @@ const v1 = ({ shouldWrap: r, wrap: e, children: t }) => r ? e(t) : t, SY = ao.cr }; }; function CY({ isInitialOpen: r = !1, placement: e = "top", isOpen: t, onOpenChange: n, type: i = "simple", isPortaled: a = !0, strategy: o = "absolute", hoverDelay: s = void 0, shouldCloseOnReferenceClick: u = !1, autoUpdateOptions: l, isDisabled: c = !1 } = {}) { - const [f, d] = me.useState(r), h = t ?? f, p = n ?? d, g = L5({ + const [f, d] = me.useState(r), h = t ?? f, p = n ?? d, g = j5({ middleware: [ - A5(5), - P5({ + R5(5), + M5({ crossAxis: e.includes("-"), fallbackAxisSideDirection: "start", padding: 5 }), - R5({ padding: 5 }) + P5({ padding: 5 }) ], onOpenChange: p, open: h, placement: e, strategy: o, whileElementsMounted(S, T, P) { - return C5(S, T, P, Object.assign({}, l)); + return A5(S, T, P, Object.assign({}, l)); } - }), y = g.context, b = O7(y, { + }), y = g.context, b = T7(y, { delay: s, enabled: i === "simple" && !c, - handleClose: P7(), + handleClose: M7(), move: !1 - }), _ = I5(y, { + }), _ = N5(y, { enabled: i === "rich" && !c }), m = pY(y, { enabled: i === "simple" && !c, visibleOnly: !0 - }), x = N5(y, { + }), x = L5(y, { escapeKey: !0, outsidePress: !0, referencePress: u - }), E = B5(y, { + }), E = F5(y, { role: i === "simple" ? "tooltip" : "dialog" - }), O = j5([b, m, x, E, _]); + }), O = B5([b, m, x, E, _]); return me.useMemo(() => Object.assign(Object.assign({ isOpen: h, isPortaled: a, @@ -15603,8 +15603,8 @@ function CY({ isInitialOpen: r = !1, placement: e = "top", isOpen: t, onOpenChan type: i }, O), g), [h, p, i, a, O, g]); } -const M7 = me.createContext(null), q1 = () => { - const r = me.useContext(M7); +const D7 = me.createContext(null), q1 = () => { + const r = me.useContext(D7); if (r === null) throw new Error("Tooltip components must be wrapped in "); return r; @@ -15617,8 +15617,8 @@ var G1 = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const D7 = ({ children: r, isDisabled: e = !1, type: t, isInitialOpen: n, placement: i, isOpen: a, onOpenChange: o, isPortaled: s, floatingStrategy: u, hoverDelay: l, shouldCloseOnReferenceClick: c, autoUpdateOptions: f }) => { - const d = F5(), g = CY({ +const k7 = ({ children: r, isDisabled: e = !1, type: t, isInitialOpen: n, placement: i, isOpen: a, onOpenChange: o, isPortaled: s, floatingStrategy: u, hoverDelay: l, shouldCloseOnReferenceClick: c, autoUpdateOptions: f }) => { + const d = U5(), g = CY({ autoUpdateOptions: f, hoverDelay: l, isDisabled: e, @@ -15632,9 +15632,9 @@ const D7 = ({ children: r, isDisabled: e = !1, type: t, isInitialOpen: n, placem strategy: u ?? (d ? "fixed" : "absolute"), type: t }); - return Te.jsx(M7.Provider, { value: g, children: r }); + return Te.jsx(D7.Provider, { value: g, children: r }); }; -D7.displayName = "Tooltip"; +k7.displayName = "Tooltip"; const AY = (r) => { var { children: e, hasButtonWrapper: t = !1, htmlAttributes: n, className: i, style: a, ref: o } = r, s = G1(r, ["children", "hasButtonWrapper", "htmlAttributes", "className", "style", "ref"]); const u = q1(), l = e.props, c = mv([ @@ -15659,7 +15659,7 @@ const AY = (r) => { "ndl-tooltip-content-rich": s.type === "rich", "ndl-tooltip-content-simple": s.type === "simple" }); - return s.type === "simple" ? Te.jsx(v1, { shouldWrap: s.isPortaled, wrap: (f) => Te.jsx(Tx, { children: f }), children: Te.jsx("div", Object.assign({ ref: u, className: c, style: Object.assign(Object.assign({}, s.floatingStyles), t) }, o, s.getFloatingProps(n), { children: Te.jsx(Ed, { variant: "body-medium", children: e }) })) }) : Te.jsx(v1, { shouldWrap: s.isPortaled, wrap: (f) => Te.jsx(Tx, { children: f }), children: Te.jsx(k5, { context: s.context, returnFocus: !0, modal: !1, initialFocus: -1, closeOnFocusOut: !0, children: Te.jsx("div", Object.assign({ ref: u, className: c, style: Object.assign(Object.assign({}, s.floatingStyles), t) }, o, s.getFloatingProps(n), { children: e })) }) }); + return s.type === "simple" ? Te.jsx(v1, { shouldWrap: s.isPortaled, wrap: (f) => Te.jsx(Tx, { children: f }), children: Te.jsx("div", Object.assign({ ref: u, className: c, style: Object.assign(Object.assign({}, s.floatingStyles), t) }, o, s.getFloatingProps(n), { children: Te.jsx(Ed, { variant: "body-medium", children: e }) })) }) : Te.jsx(v1, { shouldWrap: s.isPortaled, wrap: (f) => Te.jsx(Tx, { children: f }), children: Te.jsx(I5, { context: s.context, returnFocus: !0, modal: !1, initialFocus: -1, closeOnFocusOut: !0, children: Te.jsx("div", Object.assign({ ref: u, className: c, style: Object.assign(Object.assign({}, s.floatingStyles), t) }, o, s.getFloatingProps(n), { children: e })) }) }); }, PY = (r) => { var { children: e, passThroughProps: t, typographyVariant: n = "subheading-medium", className: i, style: a, htmlAttributes: o, ref: s } = r, u = G1(r, ["children", "passThroughProps", "typographyVariant", "className", "style", "htmlAttributes", "ref"]); const l = q1(), c = Vn("ndl-tooltip-header", i); @@ -15675,7 +15675,7 @@ const AY = (r) => { return null; const l = Vn("ndl-tooltip-actions", t); return Te.jsx("div", Object.assign({ className: l, ref: u, style: n }, o, i, { children: e })); -}, Bf = Object.assign(D7, { +}, Bf = Object.assign(k7, { Actions: DY, Body: MY, Content: RY, @@ -15690,7 +15690,7 @@ var kY = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const k7 = (r) => { +const I7 = (r) => { var e, { children: t, as: n, @@ -15762,7 +15762,7 @@ const S2 = (r) => { onClick: h, ref: p } = r, g = IY(r, ["children", "as", "isLoading", "isDisabled", "size", "isActive", "variant", "description", "tooltipProps", "className", "style", "htmlAttributes", "onClick", "ref"]); - return Te.jsx(k7, Object.assign({ as: t, iconButtonVariant: "clean", isDisabled: i, size: a, isLoading: n, isActive: o, variant: s, description: u, tooltipProps: l, className: c, style: f, htmlAttributes: d, onClick: h, ref: p }, g, { children: e })); + return Te.jsx(I7, Object.assign({ as: t, iconButtonVariant: "clean", isDisabled: i, size: a, isLoading: n, isActive: o, variant: s, description: u, tooltipProps: l, className: c, style: f, htmlAttributes: d, onClick: h, ref: p }, g, { children: e })); }; function NY({ state: r, onChange: e, isControlled: t, inputType: n = "text" }) { const [i, a] = me.useState(r), o = me.useMemo(() => t === !0 ? r : i, [t, r, i]), s = me.useCallback((u) => { @@ -15773,18 +15773,18 @@ function NY({ state: r, onChange: e, isControlled: t, inputType: n = "text" }) { } function LY({ isInitialOpen: r = !1, placement: e = "bottom", isOpen: t, onOpenChange: n, offsetOption: i = 10, anchorElement: a, anchorPosition: o, anchorElementAsPortalAnchor: s, shouldCaptureFocus: u, initialFocus: l, role: c, closeOnClickOutside: f, strategy: d = "absolute", isPortaled: h = !0 } = {}) { var p; - const [g, y] = me.useState(r), [b, _] = me.useState(), [m, x] = me.useState(), E = t ?? g, O = n ?? y, S = L5({ + const [g, y] = me.useState(r), [b, _] = me.useState(), [m, x] = me.useState(), E = t ?? g, O = n ?? y, S = j5({ elements: { reference: a }, middleware: [ - A5(i), - P5({ + R5(i), + M5({ crossAxis: e.includes("-"), fallbackAxisSideDirection: "end", padding: 5 }), - R5() + P5() ], onOpenChange: (z, H) => { O(z), n == null || n(z, H); @@ -15792,18 +15792,18 @@ function LY({ isInitialOpen: r = !1, placement: e = "bottom", isOpen: t, onOpenC open: E, placement: e, strategy: d, - whileElementsMounted: C5 - }), T = S.context, P = I5(T, { + whileElementsMounted: A5 + }), T = S.context, P = N5(T, { enabled: t === void 0 - }), I = N5(T, { + }), I = L5(T, { outsidePress: f - }), k = B5(T, { + }), k = F5(T, { role: c }), L = fY(T, { enabled: o !== void 0, x: o == null ? void 0 : o.x, y: o == null ? void 0 : o.y - }), B = j5([P, I, k, L]), { styles: j } = wY(T, { + }), B = B5([P, I, k, L]), { styles: j } = wY(T, { duration: (p = Number.parseInt(Xu.motion.duration.quick)) !== null && p !== void 0 ? p : 0 }); return me.useMemo(() => Object.assign(Object.assign(Object.assign({ @@ -15860,7 +15860,7 @@ var oM = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const I7 = { +const N7 = { "bottom-end-bottom-start": "right-end", "bottom-end-top-end": "bottom-end", "bottom-middle-top-middle": "bottom", @@ -15873,13 +15873,13 @@ const I7 = { "top-middle-bottom-middle": "top", "top-start-bottom-start": "top-start", "top-start-top-end": "left-start" -}, N7 = ao.createContext(null), L7 = () => { - const r = ao.useContext(N7); +}, L7 = oo.createContext(null), j7 = () => { + const r = oo.useContext(L7); if (r === null) throw new Error("Popover components must be wrapped in "); return r; }, BY = ({ children: r, anchorElement: e, placement: t, isOpen: n, offset: i, anchorPosition: a, hasAnchorPortal: o, shouldCaptureFocus: s = !1, initialFocus: u, onOpenChange: l, role: c, closeOnClickOutside: f = !0, isPortaled: d, strategy: h }) => { - const p = F5(), g = p ? "fixed" : "absolute", _ = LY({ + const p = U5(), g = p ? "fixed" : "absolute", _ = LY({ anchorElement: e, anchorElementAsPortalAnchor: o ?? p, anchorPosition: a, @@ -15889,27 +15889,27 @@ const I7 = { isPortaled: d ?? !p, offsetOption: i, onOpenChange: l, - placement: t ? I7[t] : void 0, + placement: t ? N7[t] : void 0, role: c, shouldCaptureFocus: s, strategy: h ?? g }); - return Te.jsx(N7.Provider, { value: _, children: r }); + return Te.jsx(L7.Provider, { value: _, children: r }); }, FY = (r) => { var { children: e, hasButtonWrapper: t = !1, ref: n } = r, i = oM(r, ["children", "hasButtonWrapper", "ref"]); - const a = L7(), o = e.props, s = mv([ + const a = j7(), o = e.props, s = mv([ a.refs.setReference, n, o == null ? void 0 : o.ref ]); - return t && ao.isValidElement(e) ? ao.cloneElement(e, a.getReferenceProps(Object.assign(Object.assign(Object.assign({}, i), o), { "data-state": a.isOpen ? "open" : "closed", ref: s }))) : Te.jsx("button", Object.assign({ ref: a.refs.setReference, type: "button", "data-state": a.isOpen ? "open" : "closed" }, a.getReferenceProps(i), { children: e })); + return t && oo.isValidElement(e) ? oo.cloneElement(e, a.getReferenceProps(Object.assign(Object.assign(Object.assign({}, i), o), { "data-state": a.isOpen ? "open" : "closed", ref: s }))) : Te.jsx("button", Object.assign({ ref: a.refs.setReference, type: "button", "data-state": a.isOpen ? "open" : "closed" }, a.getReferenceProps(i), { children: e })); }, UY = (r) => { var { as: e, className: t, style: n, children: i, htmlAttributes: a, ref: o } = r, s = oM(r, ["as", "className", "style", "children", "htmlAttributes", "ref"]); - const u = L7(), { context: l } = u, c = oM(u, ["context"]), f = mv([c.refs.setFloating, o]), { themeClassName: d } = E2(), h = Vn("ndl-popover", d, t), p = e ?? "div"; + const u = j7(), { context: l } = u, c = oM(u, ["context"]), f = mv([c.refs.setFloating, o]), { themeClassName: d } = E2(), h = Vn("ndl-popover", d, t), p = e ?? "div"; return jY(), l.open ? Te.jsx(v1, { shouldWrap: c.isPortaled, wrap: (g) => { var y; return Te.jsx(Tx, { root: (y = c.anchorElementAsPortalAnchor) !== null && y !== void 0 && y ? c.refs.reference.current : void 0, children: g }); - }, children: Te.jsx(k5, { context: l, modal: c.shouldCaptureFocus, initialFocus: c.initialFocus, children: Te.jsx(p, Object.assign({ className: h, "aria-labelledby": c.labelId, "aria-describedby": c.descriptionId, style: Object.assign(Object.assign(Object.assign({}, c.floatingStyles), c.transitionStyles), n), ref: f }, c.getFloatingProps(Object.assign({}, a)), s, { children: i })) }) }) : null; + }, children: Te.jsx(I5, { context: l, modal: c.shouldCaptureFocus, initialFocus: c.initialFocus, children: Te.jsx(p, Object.assign({ className: h, "aria-labelledby": c.labelId, "aria-describedby": c.descriptionId, style: Object.assign(Object.assign(Object.assign({}, c.floatingStyles), c.transitionStyles), n), ref: f }, c.getFloatingProps(Object.assign({}, a)), s, { children: i })) }) }) : null; }; Object.assign(BY, { Content: UY, @@ -15933,44 +15933,44 @@ const p1 = me.createContext({ // oxlint-disable-next-line @typescript-eslint/no-empty-function setHasFocusInside: () => { } -}), zY = (r) => Up() === null ? Te.jsx(ZW, { children: Te.jsx(Vk, Object.assign({}, r, { isRoot: !0 })) }) : Te.jsx(Vk, Object.assign({}, r)), Vk = ({ children: r, isOpen: e, onClose: t, isRoot: n, anchorRef: i, as: a, className: o, placement: s, minWidth: u, title: l, isDisabled: c, description: f, icon: d, isPortaled: h = !0, portalTarget: p, htmlAttributes: g, strategy: y, ref: b, style: _ }) => { - const [m, x] = me.useState(!1), [E, O] = me.useState(!1), [S, T] = me.useState(null), P = me.useRef([]), I = me.useRef([]), k = me.useContext(p1), L = F5(), B = bv(), j = $W(), z = Up(), H = b2(), { themeClassName: q } = E2(); +}), zY = (r) => Up() === null ? Te.jsx(ZW, { children: Te.jsx(Hk, Object.assign({}, r, { isRoot: !0 })) }) : Te.jsx(Hk, Object.assign({}, r)), Hk = ({ children: r, isOpen: e, onClose: t, isRoot: n, anchorRef: i, as: a, className: o, placement: s, minWidth: u, title: l, isDisabled: c, description: f, icon: d, isPortaled: h = !0, portalTarget: p, htmlAttributes: g, strategy: y, ref: b, style: _ }) => { + const [m, x] = me.useState(!1), [E, O] = me.useState(!1), [S, T] = me.useState(null), P = me.useRef([]), I = me.useRef([]), k = me.useContext(p1), L = U5(), B = bv(), j = $W(), z = Up(), H = b2(), { themeClassName: q } = E2(); me.useEffect(() => { e !== void 0 && x(e); }, [e]), me.useEffect(() => { m && T(0); }, [m]); - const W = a ?? "div", $ = z !== null, J = $ ? "right-start" : "bottom-start", { floatingStyles: X, refs: Z, context: ue } = L5({ + const W = a ?? "div", $ = z !== null, J = $ ? "right-start" : "bottom-start", { floatingStyles: X, refs: Z, context: ue } = j5({ elements: { reference: i == null ? void 0 : i.current }, middleware: [ - A5({ + R5({ alignmentAxis: $ ? -4 : 0, mainAxis: $ ? 0 : 4 }), - P5({ + M5({ fallbackPlacements: ["left-start", "right-start"] }), - R5() + P5() ], nodeId: j, onOpenChange: (Ne, Ce) => { e === void 0 && x(Ne), Ne || (Ce instanceof PointerEvent ? t == null || t(Ce, { type: "backdropClick" }) : Ce instanceof KeyboardEvent ? t == null || t(Ce, { type: "escapeKeyDown" }) : Ce instanceof FocusEvent && (t == null || t(Ce, { type: "focusOut" }))); }, open: m, - placement: s ? I7[s] : J, + placement: s ? N7[s] : J, strategy: y ?? (L ? "fixed" : "absolute"), - whileElementsMounted: C5 - }), re = O7(ue, { + whileElementsMounted: A5 + }), re = T7(ue, { delay: { open: 75 }, enabled: $, - handleClose: P7({ blockPointerEvents: !0 }) - }), ne = I5(ue, { + handleClose: M7({ blockPointerEvents: !0 }) + }), ne = N5(ue, { event: "mousedown", ignoreMouse: $, toggle: !$ - }), le = B5(ue, { role: "menu" }), ce = N5(ue, { bubbles: !0 }), pe = yY(ue, { + }), le = F5(ue, { role: "menu" }), ce = L5(ue, { bubbles: !0 }), pe = yY(ue, { activeIndex: S, listRef: P, nested: $, @@ -15979,7 +15979,7 @@ const p1 = me.createContext({ activeIndex: S, listRef: I, onMatch: m ? T : void 0 - }), { getReferenceProps: se, getFloatingProps: de, getItemProps: ge } = j5([re, ne, le, ce, pe, fe]); + }), { getReferenceProps: se, getFloatingProps: de, getItemProps: ge } = B5([re, ne, le, ce, pe, fe]); me.useEffect(() => { if (!B) return; @@ -16012,10 +16012,10 @@ const p1 = me.createContext({ isOpen: c === !0 ? !1 : m, setActiveIndex: T, setHasFocusInside: O - }, children: Te.jsx(GW, { elementsRef: P, labelsRef: I, children: m && Te.jsx(v1, { shouldWrap: h, wrap: (Ne) => Te.jsx(Tx, { root: p, children: Ne }), children: Te.jsx(k5, { context: ue, modal: !1, initialFocus: 0, returnFocus: !$, closeOnFocusOut: !0, guards: !0, children: Te.jsx(W, Object.assign({ ref: Z.setFloating, className: ke, style: Object.assign(Object.assign({ minWidth: u !== void 0 ? `${u}px` : void 0 }, X), _) }, de({ + }, children: Te.jsx(GW, { elementsRef: P, labelsRef: I, children: m && Te.jsx(v1, { shouldWrap: h, wrap: (Ne) => Te.jsx(Tx, { root: p, children: Ne }), children: Te.jsx(I5, { context: ue, modal: !1, initialFocus: 0, returnFocus: !$, closeOnFocusOut: !0, guards: !0, children: Te.jsx(W, Object.assign({ ref: Z.setFloating, className: ke, style: Object.assign(Object.assign({ minWidth: u !== void 0 ? `${u}px` : void 0 }, X), _) }, de({ onKeyDown: Oe }), { children: r })) }) }) }) })] }); -}, U5 = (r) => { +}, z5 = (r) => { var { title: e, leadingContent: t, trailingContent: n, preLeadingContent: i, description: a, isDisabled: o, as: s, className: u, style: l, htmlAttributes: c, ref: f } = r, d = Xm(r, ["title", "leadingContent", "trailingContent", "preLeadingContent", "description", "isDisabled", "as", "className", "style", "htmlAttributes", "ref"]); const h = Vn("ndl-menu-item", u, { "ndl-disabled": o @@ -16024,7 +16024,7 @@ const p1 = me.createContext({ }, qY = (r) => { var { title: e, className: t, style: n, leadingVisual: i, trailingContent: a, description: o, isDisabled: s, as: u, onClick: l, onFocus: c, htmlAttributes: f, id: d, ref: h } = r, p = Xm(r, ["title", "className", "style", "leadingVisual", "trailingContent", "description", "isDisabled", "as", "onClick", "onFocus", "htmlAttributes", "id", "ref"]); const g = me.useContext(p1), b = b2({ label: s === !0 ? null : typeof e == "string" ? e : void 0 }), _ = bv(), m = b.index === g.activeIndex, x = mv([b.ref, h]); - return Te.jsx(U5, Object.assign({ as: u ?? "button", style: n, className: t, ref: x, title: e, description: o, leadingContent: i, trailingContent: a, isDisabled: s, htmlAttributes: Object.assign(Object.assign(Object.assign({}, f), { tabIndex: m ? 0 : -1 }), g.getItemProps({ + return Te.jsx(z5, Object.assign({ as: u ?? "button", style: n, className: t, ref: x, title: e, description: o, leadingContent: i, trailingContent: a, isDisabled: s, htmlAttributes: Object.assign(Object.assign(Object.assign({}, f), { tabIndex: m ? 0 : -1 }), g.getItemProps({ id: d, onClick(E) { l == null || l(E), _ == null || _.events.emit("click", { id: d }); @@ -16035,7 +16035,7 @@ const p1 = me.createContext({ })) }, p)); }, GY = ({ title: r, isDisabled: e, description: t, leadingVisual: n, as: i, onFocus: a, onClick: o, className: s, style: u, htmlAttributes: l, id: c, ref: f }) => { const d = me.useContext(p1), p = b2({ label: e === !0 ? null : typeof r == "string" ? r : void 0 }), g = p.index === d.activeIndex, y = mv([p.ref, f]); - return Te.jsx(U5, { as: i ?? "button", style: u, className: s, ref: y, title: r, description: t, leadingContent: n, trailingContent: Te.jsx(H9, { className: "ndl-menu-item-chevron" }), isDisabled: e, htmlAttributes: Object.assign(Object.assign(Object.assign(Object.assign({}, l), { tabIndex: g ? 0 : -1 }), d.getItemProps({ + return Te.jsx(z5, { as: i ?? "button", style: u, className: s, ref: y, title: r, description: t, leadingContent: n, trailingContent: Te.jsx(W9, { className: "ndl-menu-item-chevron" }), isDisabled: e, htmlAttributes: Object.assign(Object.assign(Object.assign(Object.assign({}, l), { tabIndex: g ? 0 : -1 }), d.getItemProps({ onClick(b) { o == null || o(b); }, @@ -16055,7 +16055,7 @@ const p1 = me.createContext({ const y = me.useContext(p1), _ = b2({ label: a === !0 ? null : typeof e == "string" ? e : void 0 }), m = bv(), x = _.index === y.activeIndex, E = mv([_.ref, p]), O = Vn("ndl-menu-radio-item", l, { "ndl-checked": o }); - return Te.jsx(U5, Object.assign({ as: f ?? "button", style: c, className: O, ref: E, title: e, description: i, preLeadingContent: o ? Te.jsx(NV, { className: "n-size-5 n-shrink-0 n-self-center" }) : null, leadingContent: t, trailingContent: n, isDisabled: a, htmlAttributes: Object.assign(Object.assign(Object.assign({}, h), { "aria-checked": o, role: "menuitemradio", tabIndex: x ? 0 : -1 }), y.getItemProps({ + return Te.jsx(z5, Object.assign({ as: f ?? "button", style: c, className: O, ref: E, title: e, description: i, preLeadingContent: o ? Te.jsx(NV, { className: "n-size-5 n-shrink-0 n-self-center" }) : null, leadingContent: t, trailingContent: n, isDisabled: a, htmlAttributes: Object.assign(Object.assign(Object.assign({}, h), { "aria-checked": o, role: "menuitemradio", tabIndex: x ? 0 : -1 }), y.getItemProps({ id: d, onClick(S) { s == null || s(S), m == null || m.events.emit("click", { id: d }); @@ -16150,7 +16150,7 @@ const ZY = (r) => { k == null || k({ target: { value: "" } }); - }, children: Te.jsx(W9, { className: "n-size-4" }) }) })] }), o && Te.jsx("div", { className: "ndl-element-trailing ndl-element", children: O && !a ? Te.jsx(h1, { size: l === "large" ? "medium" : "small", className: l === "large" ? "ndl-medium-spinner" : "ndl-small-spinner" }) : o })] }) }))] }), !!i && !n && Te.jsx(cb, { onBackground: "weak", shape: "rectangular", isLoading: E, children: Te.jsx(Ed, { variant: l === "large" ? "body-medium" : "body-small", className: "ndl-form-message", htmlAttributes: { + }, children: Te.jsx(Y9, { className: "n-size-4" }) }) })] }), o && Te.jsx("div", { className: "ndl-element-trailing ndl-element", children: O && !a ? Te.jsx(h1, { size: l === "large" ? "medium" : "small", className: l === "large" ? "ndl-medium-spinner" : "ndl-small-spinner" }) : o })] }) }))] }), !!i && !n && Te.jsx(cb, { onBackground: "weak", shape: "rectangular", isLoading: E, children: Te.jsx(Ed, { variant: l === "large" ? "body-medium" : "body-small", className: "ndl-form-message", htmlAttributes: { "aria-live": "polite", id: B }, children: i }) }), !!n && // TODO v4: We might want to have a min width for the container for the messages to help skeleton loading. @@ -16168,7 +16168,7 @@ var QY = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const j7 = (r) => { +const B7 = (r) => { var { as: e, buttonFill: t = "filled", children: n, className: i, variant: a = "primary", htmlAttributes: o, isDisabled: s = !1, isFloating: u = !1, isFluid: l = !1, isLoading: c = !1, leadingVisual: f, onClick: d, ref: h, size: p = "medium", style: g, type: y = "button" } = r, b = QY(r, ["as", "buttonFill", "children", "className", "variant", "htmlAttributes", "isDisabled", "isFloating", "isFluid", "isLoading", "leadingVisual", "onClick", "ref", "size", "style", "type"]); const _ = e ?? "button", m = !s && !c, x = Vn(i, "ndl-btn", { "ndl-disabled": s, @@ -16197,7 +16197,7 @@ var JY = function(r, e) { }; const eX = (r) => { var { children: e, as: t, type: n = "button", isLoading: i = !1, variant: a = "primary", isDisabled: o = !1, size: s = "medium", onClick: u, isFloating: l = !1, className: c, style: f, htmlAttributes: d, ref: h } = r, p = JY(r, ["children", "as", "type", "isLoading", "variant", "isDisabled", "size", "onClick", "isFloating", "className", "style", "htmlAttributes", "ref"]); - return Te.jsx(j7, Object.assign({ as: t, buttonFill: "outlined", variant: a, className: c, isDisabled: o, isFloating: l, isLoading: i, onClick: u, size: s, style: f, type: n, htmlAttributes: d, ref: h }, p, { children: e })); + return Te.jsx(B7, Object.assign({ as: t, buttonFill: "outlined", variant: a, className: c, isDisabled: o, isFloating: l, isLoading: i, onClick: u, size: s, style: f, type: n, htmlAttributes: d, ref: h }, p, { children: e })); }; var tX = function(r, e) { var t = {}; @@ -16209,12 +16209,12 @@ var tX = function(r, e) { }; const rX = (r) => { var { children: e, as: t, type: n = "button", isLoading: i = !1, variant: a = "primary", isDisabled: o = !1, size: s = "medium", onClick: u, className: l, style: c, htmlAttributes: f, ref: d } = r, h = tX(r, ["children", "as", "type", "isLoading", "variant", "isDisabled", "size", "onClick", "className", "style", "htmlAttributes", "ref"]); - return Te.jsx(j7, Object.assign({ as: t, buttonFill: "text", variant: a, className: l, isDisabled: o, isLoading: i, onClick: u, size: s, style: c, type: n, htmlAttributes: f, ref: d }, h, { children: e })); + return Te.jsx(B7, Object.assign({ as: t, buttonFill: "text", variant: a, className: l, isDisabled: o, isLoading: i, onClick: u, size: s, style: c, type: n, htmlAttributes: f, ref: d }, h, { children: e })); }; -var cS, Hk; +var cS, Wk; function nX() { - if (Hk) return cS; - Hk = 1; + if (Wk) return cS; + Wk = 1; var r = "Expected a function", e = NaN, t = "[object Symbol]", n = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt, u = typeof Lf == "object" && Lf && Lf.Object === Object && Lf, l = typeof self == "object" && self && self.Object === Object && self, c = u || l || Function("return this")(), f = Object.prototype, d = f.toString, h = Math.max, p = Math.min, g = function() { return c.Date.now(); }; @@ -16350,10 +16350,10 @@ dr.prototype = { return t = e.r / 255, n = e.g / 255, i = e.b / 255, t <= 0.03928 ? a = t / 12.92 : a = Math.pow((t + 0.055) / 1.055, 2.4), n <= 0.03928 ? o = n / 12.92 : o = Math.pow((n + 0.055) / 1.055, 2.4), i <= 0.03928 ? s = i / 12.92 : s = Math.pow((i + 0.055) / 1.055, 2.4), 0.2126 * a + 0.7152 * o + 0.0722 * s; }, setAlpha: function(e) { - return this._a = B7(e), this._roundA = Math.round(100 * this._a) / 100, this; + return this._a = F7(e), this._roundA = Math.round(100 * this._a) / 100, this; }, toHsv: function() { - var e = Yk(this._r, this._g, this._b); + var e = Xk(this._r, this._g, this._b); return { h: e.h * 360, s: e.s, @@ -16362,11 +16362,11 @@ dr.prototype = { }; }, toHsvString: function() { - var e = Yk(this._r, this._g, this._b), t = Math.round(e.h * 360), n = Math.round(e.s * 100), i = Math.round(e.v * 100); + var e = Xk(this._r, this._g, this._b), t = Math.round(e.h * 360), n = Math.round(e.s * 100), i = Math.round(e.v * 100); return this._a == 1 ? "hsv(" + t + ", " + n + "%, " + i + "%)" : "hsva(" + t + ", " + n + "%, " + i + "%, " + this._roundA + ")"; }, toHsl: function() { - var e = Wk(this._r, this._g, this._b); + var e = Yk(this._r, this._g, this._b); return { h: e.h * 360, s: e.s, @@ -16375,11 +16375,11 @@ dr.prototype = { }; }, toHslString: function() { - var e = Wk(this._r, this._g, this._b), t = Math.round(e.h * 360), n = Math.round(e.s * 100), i = Math.round(e.l * 100); + var e = Yk(this._r, this._g, this._b), t = Math.round(e.h * 360), n = Math.round(e.s * 100), i = Math.round(e.l * 100); return this._a == 1 ? "hsl(" + t + ", " + n + "%, " + i + "%)" : "hsla(" + t + ", " + n + "%, " + i + "%, " + this._roundA + ")"; }, toHex: function(e) { - return Xk(this._r, this._g, this._b, e); + return $k(this._r, this._g, this._b, e); }, toHexString: function(e) { return "#" + this.toHex(e); @@ -16413,13 +16413,13 @@ dr.prototype = { return this._a == 1 ? "rgb(" + Math.round(Ma(this._r, 255) * 100) + "%, " + Math.round(Ma(this._g, 255) * 100) + "%, " + Math.round(Ma(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(Ma(this._r, 255) * 100) + "%, " + Math.round(Ma(this._g, 255) * 100) + "%, " + Math.round(Ma(this._b, 255) * 100) + "%, " + this._roundA + ")"; }, toName: function() { - return this._a === 0 ? "transparent" : this._a < 1 ? !1 : EX[Xk(this._r, this._g, this._b, !0)] || !1; + return this._a === 0 ? "transparent" : this._a < 1 ? !1 : EX[$k(this._r, this._g, this._b, !0)] || !1; }, toFilter: function(e) { - var t = "#" + $k(this._r, this._g, this._b, this._a), n = t, i = this._gradientType ? "GradientType = 1, " : ""; + var t = "#" + Kk(this._r, this._g, this._b, this._a), n = t, i = this._gradientType ? "GradientType = 1, " : ""; if (e) { var a = dr(e); - n = "#" + $k(a._r, a._g, a._b, a._a); + n = "#" + Kk(a._r, a._g, a._b, a._a); } return "progid:DXImageTransform.Microsoft.gradient(" + i + "startColorstr=" + t + ",endColorstr=" + n + ")"; }, @@ -16477,10 +16477,10 @@ dr.prototype = { // return this._applyCombination(polyad, [number]); // }, triad: function() { - return this._applyCombination(Kk, [3]); + return this._applyCombination(Zk, [3]); }, tetrad: function() { - return this._applyCombination(Kk, [4]); + return this._applyCombination(Zk, [4]); } }; dr.fromRatio = function(r, e) { @@ -16498,7 +16498,7 @@ function sX(r) { g: 0, b: 0 }, t = 1, n = null, i = null, a = null, o = !1, s = !1; - return typeof r == "string" && (r = CX(r)), Cx(r) == "object" && (ev(r.r) && ev(r.g) && ev(r.b) ? (e = uX(r.r, r.g, r.b), o = !0, s = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : ev(r.h) && ev(r.s) && ev(r.v) ? (n = fb(r.s), i = fb(r.v), e = cX(r.h, n, i), o = !0, s = "hsv") : ev(r.h) && ev(r.s) && ev(r.l) && (n = fb(r.s), a = fb(r.l), e = lX(r.h, n, a), o = !0, s = "hsl"), r.hasOwnProperty("a") && (t = r.a)), t = B7(t), { + return typeof r == "string" && (r = CX(r)), Cx(r) == "object" && (ev(r.r) && ev(r.g) && ev(r.b) ? (e = uX(r.r, r.g, r.b), o = !0, s = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : ev(r.h) && ev(r.s) && ev(r.v) ? (n = fb(r.s), i = fb(r.v), e = cX(r.h, n, i), o = !0, s = "hsv") : ev(r.h) && ev(r.s) && ev(r.l) && (n = fb(r.s), a = fb(r.l), e = lX(r.h, n, a), o = !0, s = "hsl"), r.hasOwnProperty("a") && (t = r.a)), t = F7(t), { ok: o, format: r.format || s, r: Math.min(255, Math.max(e.r, 0)), @@ -16514,7 +16514,7 @@ function uX(r, e, t) { b: Ma(t, 255) * 255 }; } -function Wk(r, e, t) { +function Yk(r, e, t) { r = Ma(r, 255), e = Ma(e, 255), t = Ma(t, 255); var n = Math.max(r, e, t), i = Math.min(r, e, t), a, o, s = (n + i) / 2; if (n == i) @@ -16558,7 +16558,7 @@ function lX(r, e, t) { b: a * 255 }; } -function Yk(r, e, t) { +function Xk(r, e, t) { r = Ma(r, 255), e = Ma(e, 255), t = Ma(t, 255); var n = Math.max(r, e, t), i = Math.min(r, e, t), a, o, s = n, u = n - i; if (o = n === 0 ? 0 : u / n, n == i) @@ -16592,16 +16592,16 @@ function cX(r, e, t) { b: f * 255 }; } -function Xk(r, e, t, n) { +function $k(r, e, t, n) { var i = [Sd(Math.round(r).toString(16)), Sd(Math.round(e).toString(16)), Sd(Math.round(t).toString(16))]; return n && i[0].charAt(0) == i[0].charAt(1) && i[1].charAt(0) == i[1].charAt(1) && i[2].charAt(0) == i[2].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join(""); } function fX(r, e, t, n, i) { - var a = [Sd(Math.round(r).toString(16)), Sd(Math.round(e).toString(16)), Sd(Math.round(t).toString(16)), Sd(F7(n))]; + var a = [Sd(Math.round(r).toString(16)), Sd(Math.round(e).toString(16)), Sd(Math.round(t).toString(16)), Sd(U7(n))]; return i && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) && a[3].charAt(0) == a[3].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join(""); } -function $k(r, e, t, n) { - var i = [Sd(F7(n)), Sd(Math.round(r).toString(16)), Sd(Math.round(e).toString(16)), Sd(Math.round(t).toString(16))]; +function Kk(r, e, t, n) { + var i = [Sd(U7(n)), Sd(Math.round(r).toString(16)), Sd(Math.round(e).toString(16)), Sd(Math.round(t).toString(16))]; return i.join(""); } dr.equals = function(r, e) { @@ -16650,7 +16650,7 @@ function bX(r) { var e = dr(r).toHsl(); return e.h = (e.h + 180) % 360, dr(e); } -function Kk(r, e) { +function Zk(r, e) { if (isNaN(e) || e <= 0) throw new Error("Argument to polyad must be a positive number"); for (var t = dr(r).toHsl(), n = [dr(r)], i = 360 / e, a = 1; a < e; a++) @@ -16887,7 +16887,7 @@ function SX(r) { r.hasOwnProperty(t) && (e[r[t]] = t); return e; } -function B7(r) { +function F7(r) { return r = parseFloat(r), (isNaN(r) || r < 0 || r > 1) && (r = 1), r; } function Ma(r, e) { @@ -16913,10 +16913,10 @@ function Sd(r) { function fb(r) { return r <= 1 && (r = r * 100 + "%"), r; } -function F7(r) { +function U7(r) { return Math.round(parseFloat(r) * 255).toString(16); } -function Zk(r) { +function Qk(r) { return Jc(r) / 255; } var md = (function() { @@ -16983,7 +16983,7 @@ function CX(r) { r: Jc(t[1]), g: Jc(t[2]), b: Jc(t[3]), - a: Zk(t[4]), + a: Qk(t[4]), format: e ? "name" : "hex8" } : (t = md.hex6.exec(r)) ? { r: Jc(t[1]), @@ -16994,7 +16994,7 @@ function CX(r) { r: Jc(t[1] + "" + t[1]), g: Jc(t[2] + "" + t[2]), b: Jc(t[3] + "" + t[3]), - a: Zk(t[4] + "" + t[4]), + a: Qk(t[4] + "" + t[4]), format: e ? "name" : "hex8" } : (t = md.hex3.exec(r)) ? { r: Jc(t[1] + "" + t[1]), @@ -17032,13 +17032,13 @@ var DX = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const Qk = ({ direction: r = "left", color: e, htmlAttributes: t, height: n = 24 }) => { +const Jk = ({ direction: r = "left", color: e, htmlAttributes: t, height: n = 24 }) => { const i = Vn("ndl-hexagon-end", { "ndl-left": r === "left", "ndl-right": r === "right" }); return Te.jsxs("div", Object.assign({ className: i }, t, { children: [Te.jsx("svg", { "aria-hidden": !0, className: "ndl-hexagon-end-inner", fill: "none", height: n, preserveAspectRatio: "none", viewBox: "0 0 9 24", width: "9", xmlns: "http://www.w3.org/2000/svg", children: Te.jsx("path", { style: { fill: e }, fillRule: "evenodd", clipRule: "evenodd", d: "M5.73024 1.03676C6.08165 0.397331 6.75338 0 7.48301 0H9V24H7.483C6.75338 24 6.08165 23.6027 5.73024 22.9632L0.315027 13.1094C-0.105009 12.4376 -0.105009 11.5624 0.315026 10.8906L5.73024 1.03676Z" }) }), Te.jsx("svg", { "aria-hidden": !0, className: "ndl-hexagon-end-active", fill: "none", height: n + 6, preserveAspectRatio: "none", viewBox: "0 0 13 30", width: "13", xmlns: "http://www.w3.org/2000/svg", children: Te.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.075 2C9.12474 2 8.24318 2.54521 7.74867 3.43873L2.21419 13.4387C1.68353 14.3976 1.68353 15.6024 2.21419 16.5613L7.74867 26.5613C8.24318 27.4548 9.12474 28 10.075 28H13V30H10.075C8.49126 30 7.022 29.0913 6.1978 27.6021L0.663324 17.6021C-0.221109 16.0041 -0.221108 13.9959 0.663325 12.3979L6.1978 2.39789C7.022 0.90869 8.49126 0 10.075 0H13V2H10.075Z" }) })] })); -}, Jk = ({ direction: r = "left", color: e, height: t = 24, htmlAttributes: n }) => { +}, eI = ({ direction: r = "left", color: e, height: t = 24, htmlAttributes: n }) => { const i = Vn("ndl-square-end", { "ndl-left": r === "left", "ndl-right": r === "right" @@ -17097,9 +17097,9 @@ const Qk = ({ direction: r = "left", color: e, htmlAttributes: t, height: n = 24 onMouseEnter: b, onMouseLeave: _, type: "button" - }, { ref: h }, p, c, { children: [e === "relationshipLeft" || e === "relationship" ? Te.jsx(Qk, { direction: "left", color: O, height: L }) : Te.jsx(Jk, { direction: "left", color: O, height: L }), Te.jsxs("div", { className: "ndl-relationship-label-container", style: { + }, { ref: h }, p, c, { children: [e === "relationshipLeft" || e === "relationship" ? Te.jsx(Jk, { direction: "left", color: O, height: L }) : Te.jsx(eI, { direction: "left", color: O, height: L }), Te.jsxs("div", { className: "ndl-relationship-label-container", style: { backgroundColor: O - }, children: [Te.jsx("div", { className: "ndl-relationship-label-content", children: l }), Te.jsx(kX, { height: L })] }), e === "relationshipRight" || e === "relationship" ? Te.jsx(Qk, { direction: "right", color: O, height: L }) : Te.jsx(Jk, { direction: "right", color: O, height: L })] })); + }, children: [Te.jsx("div", { className: "ndl-relationship-label-content", children: l }), Te.jsx(kX, { height: L })] }), e === "relationshipRight" || e === "relationship" ? Te.jsx(Jk, { direction: "right", color: O, height: L }) : Te.jsx(eI, { direction: "right", color: O, height: L })] })); } else { const k = Vn("ndl-property-key-label", I); return Te.jsx(m, Object.assign({}, x && { @@ -17107,21 +17107,21 @@ const Qk = ({ direction: r = "left", color: e, htmlAttributes: t, height: n = 24 }, { style: Object.assign({ backgroundColor: O, color: n ? P : T, maxWidth: f ? "100%" : fS }, u), className: k, onClick: E, onMouseEnter: b, onMouseLeave: _, ref: h }, c, { children: Te.jsx("div", { className: "ndl-property-key-label-content", children: l }) })); } }; -var Bo = function() { - return Bo = Object.assign || function(r) { +var Fo = function() { + return Fo = Object.assign || function(r) { for (var e, t = 1, n = arguments.length; t < n; t++) { e = arguments[t]; for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]); } return r; - }, Bo.apply(this, arguments); -}, eI = { + }, Fo.apply(this, arguments); +}, tI = { width: "100%", height: "10px", top: "0px", left: "0px", cursor: "row-resize" -}, tI = { +}, rI = { width: "10px", height: "100%", top: "0px", @@ -17133,21 +17133,21 @@ var Bo = function() { position: "absolute", zIndex: 1 }, IX = { - top: Bo(Bo({}, eI), { top: "-5px" }), - right: Bo(Bo({}, tI), { left: void 0, right: "-5px" }), - bottom: Bo(Bo({}, eI), { top: void 0, bottom: "-5px" }), - left: Bo(Bo({}, tI), { left: "-5px" }), - topRight: Bo(Bo({}, ow), { right: "-10px", top: "-10px", cursor: "ne-resize" }), - bottomRight: Bo(Bo({}, ow), { right: "-10px", bottom: "-10px", cursor: "se-resize" }), - bottomLeft: Bo(Bo({}, ow), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }), - topLeft: Bo(Bo({}, ow), { left: "-10px", top: "-10px", cursor: "nw-resize" }) + top: Fo(Fo({}, tI), { top: "-5px" }), + right: Fo(Fo({}, rI), { left: void 0, right: "-5px" }), + bottom: Fo(Fo({}, tI), { top: void 0, bottom: "-5px" }), + left: Fo(Fo({}, rI), { left: "-5px" }), + topRight: Fo(Fo({}, ow), { right: "-10px", top: "-10px", cursor: "ne-resize" }), + bottomRight: Fo(Fo({}, ow), { right: "-10px", bottom: "-10px", cursor: "se-resize" }), + bottomLeft: Fo(Fo({}, ow), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }), + topLeft: Fo(Fo({}, ow), { left: "-10px", top: "-10px", cursor: "nw-resize" }) }, NX = me.memo(function(r) { var e = r.onResizeStart, t = r.direction, n = r.children, i = r.replaceStyles, a = r.className, o = me.useCallback(function(l) { e(l, t); }, [e, t]), s = me.useCallback(function(l) { e(l, t); }, [e, t]), u = me.useMemo(function() { - return Bo(Bo({ position: "absolute", userSelect: "none" }, IX[t]), i ?? {}); + return Fo(Fo({ position: "absolute", userSelect: "none" }, IX[t]), i ?? {}); }, [i, t]); return Te.jsx("div", { className: a || void 0, style: u, onMouseDown: o, onTouchStart: s, children: n }); }), LX = /* @__PURE__ */ (function() { @@ -17180,7 +17180,7 @@ var Bo = function() { height: "auto" }, sw = function(r, e, t) { return Math.max(Math.min(r, t), e); -}, rI = function(r, e, t) { +}, nI = function(r, e, t) { var n = Math.round(r / e); return n * e + t * (n - 1); }, Xy = function(r, e) { @@ -17189,7 +17189,7 @@ var Bo = function() { return !!(r.touches && r.touches.length); }, BX = function(r) { return !!((r.clientX || r.clientX === 0) && (r.clientY || r.clientY === 0)); -}, nI = function(r, e, t) { +}, iI = function(r, e, t) { t === void 0 && (t = 0); var n = e.reduce(function(a, o, s) { return Math.abs(o - r) < Math.abs(e[a] - r) ? s : a; @@ -17256,7 +17256,7 @@ var Bo = function() { "scale", "resizeRatio", "snapGap" -], iI = "__resizable_base__", qX = ( +], aI = "__resizable_base__", qX = ( /** @class */ (function(r) { LX(e, r); @@ -17272,7 +17272,7 @@ var Bo = function() { if (!u) return null; var l = s.window.document.createElement("div"); - return l.style.width = "100%", l.style.height = "100%", l.style.position = "absolute", l.style.transform = "scale(0, 0)", l.style.left = "0", l.style.flex = "0 0 100%", l.classList ? l.classList.add(iI) : l.className += iI, u.appendChild(l), l; + return l.style.width = "100%", l.style.height = "100%", l.style.position = "absolute", l.style.transform = "scale(0, 0)", l.style.left = "0", l.style.flex = "0 0 100%", l.classList ? l.classList.add(aI) : l.className += aI, u.appendChild(l), l; }, s.removeBase = function(u) { var l = s.parentNode; l && l.removeChild(u); @@ -17462,10 +17462,10 @@ var Bo = function() { var i = this.props, a = i.maxWidth, o = i.maxHeight, s = i.minWidth, u = i.minHeight, l = uw(t) ? t.touches[0].clientX : t.clientX, c = uw(t) ? t.touches[0].clientY : t.clientY, f = this.state, d = f.direction, h = f.original, p = f.width, g = f.height, y = this.getParentSize(), b = FX(y, this.window.innerWidth, this.window.innerHeight, a, o, s, u); a = b.maxWidth, o = b.maxHeight, s = b.minWidth, u = b.minHeight; var _ = this.calculateNewSizeFromDirection(l, c), m = _.newHeight, x = _.newWidth, E = this.calculateNewMaxFromBoundary(a, o); - this.props.snap && this.props.snap.x && (x = nI(x, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (m = nI(m, this.props.snap.y, this.props.snapGap)); + this.props.snap && this.props.snap.x && (x = iI(x, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (m = iI(m, this.props.snap.y, this.props.snapGap)); var O = this.calculateNewSizeFromAspectRatio(x, m, { width: E.maxWidth, height: E.maxHeight }, { width: s, height: u }); if (x = O.newWidth, m = O.newHeight, this.props.grid) { - var S = rI(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), T = rI(m, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), P = this.props.snapGap || 0, I = P === 0 || Math.abs(S - x) <= P ? S : x, k = P === 0 || Math.abs(T - m) <= P ? T : m; + var S = nI(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), T = nI(m, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), P = this.props.snapGap || 0, I = P === 0 || Math.abs(S - x) <= P ? S : x, k = P === 0 || Math.abs(T - m) <= P ? T : m; x = I, m = k; } var L = { @@ -17593,7 +17593,7 @@ const T2 = (r) => { onClick: p, ref: g } = r, y = GX(r, ["children", "as", "isLoading", "isDisabled", "size", "isFloating", "isActive", "variant", "description", "tooltipProps", "className", "style", "htmlAttributes", "onClick", "ref"]); - return Te.jsx(k7, Object.assign({ as: t, iconButtonVariant: "default", isDisabled: i, size: a, isLoading: n, isActive: s, isFloating: o, description: l, tooltipProps: c, className: f, style: d, variant: u, htmlAttributes: h, onClick: p, ref: g }, y, { children: e })); + return Te.jsx(I7, Object.assign({ as: t, iconButtonVariant: "default", isDisabled: i, size: a, isLoading: n, isActive: s, isFloating: o, description: l, tooltipProps: c, className: f, style: d, variant: u, htmlAttributes: h, onClick: p, ref: g }, y, { children: e })); }; var VX = function(r, e) { var t = {}; @@ -17605,7 +17605,7 @@ var VX = function(r, e) { }; const HX = (r) => { var { description: e, actionFeedbackText: t, icon: n, children: i, onClick: a, htmlAttributes: o, tooltipProps: s, type: u = "clean-icon-button" } = r, l = VX(r, ["description", "actionFeedbackText", "icon", "children", "onClick", "htmlAttributes", "tooltipProps", "type"]); - const [c, f] = ao.useState(null), [d, h] = ao.useState(!1), p = () => { + const [c, f] = oo.useState(null), [d, h] = oo.useState(!1), p = () => { c !== null && clearTimeout(c); const _ = window.setTimeout(() => { f(null); @@ -17657,7 +17657,7 @@ const HX = (r) => { }, children: Te.jsx(eX, Object.assign({ variant: "neutral" }, l.buttonProps, { onClick: (_) => { a && a(_), p(); }, leadingVisual: n, className: l.className, htmlAttributes: o, children: i })) }), Te.jsx(Bf.Content, { children: b })] })); -}, U7 = ({ textToCopy: r, isDisabled: e, size: t, tooltipProps: n, htmlAttributes: i, type: a }) => { +}, z7 = ({ textToCopy: r, isDisabled: e, size: t, tooltipProps: n, htmlAttributes: i, type: a }) => { const [, o] = iX(), l = a === "outlined-button" ? { outlinedButtonProps: { isDisabled: e, @@ -17689,16 +17689,16 @@ var WX = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const z7 = ({ children: r }) => Te.jsx(Te.Fragment, { children: r }); -z7.displayName = "CollapsibleButtonWrapper"; +const q7 = ({ children: r }) => Te.jsx(Te.Fragment, { children: r }); +q7.displayName = "CollapsibleButtonWrapper"; const YX = (r) => { var { children: e, as: t, isFloating: n = !1, orientation: i = "horizontal", size: a = "medium", className: o, style: s, htmlAttributes: u, ref: l } = r, c = WX(r, ["children", "as", "isFloating", "orientation", "size", "className", "style", "htmlAttributes", "ref"]); - const [f, d] = ao.useState(!0), h = Vn("ndl-icon-btn-array", o, { + const [f, d] = oo.useState(!0), h = Vn("ndl-icon-btn-array", o, { "ndl-array-floating": n, "ndl-col": i === "vertical", "ndl-row": i === "horizontal", [`ndl-${a}`]: a - }), p = t || "div", g = ao.Children.toArray(e), y = g.filter((x) => !ao.isValidElement(x) || x.type.displayName !== "CollapsibleButtonWrapper"), b = g.find((x) => ao.isValidElement(x) && x.type.displayName === "CollapsibleButtonWrapper"), _ = b ? b.props.children : null, m = () => i === "horizontal" ? f ? Te.jsx(H9, {}) : Te.jsx(UV, {}) : f ? Te.jsx(V9, {}) : Te.jsx(HV, {}); + }), p = t || "div", g = oo.Children.toArray(e), y = g.filter((x) => !oo.isValidElement(x) || x.type.displayName !== "CollapsibleButtonWrapper"), b = g.find((x) => oo.isValidElement(x) && x.type.displayName === "CollapsibleButtonWrapper"), _ = b ? b.props.children : null, m = () => i === "horizontal" ? f ? Te.jsx(W9, {}) : Te.jsx(UV, {}) : f ? Te.jsx(H9, {}) : Te.jsx(HV, {}); return Te.jsxs(p, Object.assign({ role: "group", className: h, ref: l, style: s }, c, u, { children: [y, _ && Te.jsxs(Te.Fragment, { children: [!f && _, Te.jsx(S2, { onClick: () => { d((x) => !x); }, size: a, description: f ? "Show more" : "Show less", tooltipProps: { @@ -17708,8 +17708,8 @@ const YX = (r) => { }, htmlAttributes: { "aria-expanded": !f }, children: m() })] })] })); -}, q7 = Object.assign(YX, { - CollapsibleButtonWrapper: z7 +}, uM = Object.assign(YX, { + CollapsibleButtonWrapper: q7 }); function G7() { if (typeof window > "u") @@ -17806,12 +17806,12 @@ const V7 = (r) => { type: "simple", // We disable the tooltip if the button is disabled or open, so it doesn't interfere with a menu open isDisabled: s === null || n || a === !0, - children: [Te.jsx(Bf.Trigger, Object.assign({}, u == null ? void 0 : u.trigger, { hasButtonWrapper: !0, children: Te.jsxs("button", Object.assign({ type: "button", ref: d, className: p, style: c, disabled: !g, "aria-disabled": !g, "aria-label": s ?? void 0, "aria-expanded": a, onClick: l }, h, f, { children: [Te.jsx("div", { className: "ndl-select-icon-btn-inner", children: i ? Te.jsx(h1, { size: "small" }) : Te.jsx("div", { className: "ndl-icon", children: e }) }), Te.jsx(V9, { className: Vn("ndl-select-icon-btn-icon", { + children: [Te.jsx(Bf.Trigger, Object.assign({}, u == null ? void 0 : u.trigger, { hasButtonWrapper: !0, children: Te.jsxs("button", Object.assign({ type: "button", ref: d, className: p, style: c, disabled: !g, "aria-disabled": !g, "aria-label": s ?? void 0, "aria-expanded": a, onClick: l }, h, f, { children: [Te.jsx("div", { className: "ndl-select-icon-btn-inner", children: i ? Te.jsx(h1, { size: "small" }) : Te.jsx("div", { className: "ndl-icon", children: e }) }), Te.jsx(H9, { className: Vn("ndl-select-icon-btn-icon", { "ndl-select-icon-btn-icon-open": a === !0 }) })] })) })), Te.jsx(Bf.Content, Object.assign({}, u == null ? void 0 : u.content, { children: s }))] })); }; -function uM(r, e) { +function lM(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -17820,7 +17820,7 @@ function JX(r) { if (Array.isArray(r)) return r; } function e$(r) { - if (Array.isArray(r)) return uM(r); + if (Array.isArray(r)) return lM(r); } function zp(r, e) { if (!(r instanceof e)) throw new TypeError("Cannot call a class as a function"); @@ -17839,7 +17839,7 @@ function qp(r, e, t) { function Ac(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { - if (Array.isArray(r) || (t = z5(r)) || e) { + if (Array.isArray(r) || (t = q5(r)) || e) { t && (r = t); var n = 0, i = function() { }; @@ -17923,11 +17923,11 @@ function a$() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } -function Uo(r, e) { - return JX(r) || n$(r, e) || z5(r, e) || i$(); +function zo(r, e) { + return JX(r) || n$(r, e) || q5(r, e) || i$(); } function Rx(r) { - return e$(r) || r$(r) || z5(r) || a$(); + return e$(r) || r$(r) || q5(r) || a$(); } function o$(r, e) { if (typeof r != "object" || !r) return r; @@ -17951,14 +17951,14 @@ function cs(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, cs(r); } -function z5(r, e) { +function q5(r, e) { if (r) { - if (typeof r == "string") return uM(r, e); + if (typeof r == "string") return lM(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? uM(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? lM(r, e) : void 0; } } -var us = typeof window > "u" ? null : window, aI = us ? us.navigator : null; +var us = typeof window > "u" ? null : window, oI = us ? us.navigator : null; us && us.document; var s$ = cs(""), Y7 = cs({}), u$ = cs(function() { }), l$ = typeof HTMLElement > "u" ? "undefined" : cs(HTMLElement), V1 = function(e) { @@ -17986,7 +17986,7 @@ var s$ = cs(""), Y7 = cs({}), u$ = cs(function() { return V1(e) === "collection" && e._private.single; }, X7 = function(e) { return V1(e) === "collection" && !e._private.single; -}, q5 = function(e) { +}, G5 = function(e) { return V1(e) === "core"; }, $7 = function(e) { return V1(e) === "stylesheet"; @@ -18001,7 +18001,7 @@ var s$ = cs(""), Y7 = cs({}), u$ = cs(function() { }, p$ = function(e) { return c$(e) && Ya(e.then); }, g$ = function() { - return aI && aI.userAgent.match(/msie|trident|edge/i); + return oI && oI.userAgent.match(/msie|trident|edge/i); }, jm = function(e, t) { t || (t = function() { if (arguments.length === 1) @@ -18017,7 +18017,7 @@ var s$ = cs(""), Y7 = cs({}), u$ = cs(function() { return (s = l[u]) || (s = l[u] = e.apply(a, o)), s; }; return n.cache = {}, n; -}, G5 = jm(function(r) { +}, V5 = jm(function(r) { return r.replace(/([A-Z])/g, function(e) { return "-" + e.toLowerCase(); }); @@ -18029,7 +18029,7 @@ var s$ = cs(""), Y7 = cs({}), u$ = cs(function() { return r + e[0].toUpperCase() + e.substring(1); }, function(r, e) { return r + "$" + e; -}), oI = function(e) { +}), sI = function(e) { return Rp(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); }, vp = function(e, t) { return e.slice(-1 * t.length) === t; @@ -18267,43 +18267,43 @@ var s$ = cs(""), Y7 = cs({}), u$ = cs(function() { function W1(r) { return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r; } -var hS, sI; +var hS, uI; function Y1() { - if (sI) return hS; - sI = 1; + if (uI) return hS; + uI = 1; function r(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } return hS = r, hS; } -var vS, uI; +var vS, lI; function R$() { - if (uI) return vS; - uI = 1; + if (lI) return vS; + lI = 1; var r = typeof cw == "object" && cw && cw.Object === Object && cw; return vS = r, vS; } -var pS, lI; +var pS, cI; function A2() { - if (lI) return pS; - lI = 1; + if (cI) return pS; + cI = 1; var r = R$(), e = typeof self == "object" && self && self.Object === Object && self, t = r || e || Function("return this")(); return pS = t, pS; } -var gS, cI; +var gS, fI; function P$() { - if (cI) return gS; - cI = 1; + if (fI) return gS; + fI = 1; var r = A2(), e = function() { return r.Date.now(); }; return gS = e, gS; } -var yS, fI; +var yS, dI; function M$() { - if (fI) return yS; - fI = 1; + if (dI) return yS; + dI = 1; var r = /\s/; function e(t) { for (var n = t.length; n-- && r.test(t.charAt(n)); ) @@ -18312,28 +18312,28 @@ function M$() { } return yS = e, yS; } -var mS, dI; +var mS, hI; function D$() { - if (dI) return mS; - dI = 1; + if (hI) return mS; + hI = 1; var r = M$(), e = /^\s+/; function t(n) { return n && n.slice(0, r(n) + 1).replace(e, ""); } return mS = t, mS; } -var bS, hI; -function V5() { - if (hI) return bS; - hI = 1; +var bS, vI; +function H5() { + if (vI) return bS; + vI = 1; var r = A2(), e = r.Symbol; return bS = e, bS; } -var _S, vI; +var _S, pI; function k$() { - if (vI) return _S; - vI = 1; - var r = V5(), e = Object.prototype, t = e.hasOwnProperty, n = e.toString, i = r ? r.toStringTag : void 0; + if (pI) return _S; + pI = 1; + var r = H5(), e = Object.prototype, t = e.hasOwnProperty, n = e.toString, i = r ? r.toStringTag : void 0; function a(o) { var s = t.call(o, i), u = o[i]; try { @@ -18346,49 +18346,49 @@ function k$() { } return _S = a, _S; } -var wS, pI; +var wS, gI; function I$() { - if (pI) return wS; - pI = 1; + if (gI) return wS; + gI = 1; var r = Object.prototype, e = r.toString; function t(n) { return e.call(n); } return wS = t, wS; } -var xS, gI; +var xS, yI; function tF() { - if (gI) return xS; - gI = 1; - var r = V5(), e = k$(), t = I$(), n = "[object Null]", i = "[object Undefined]", a = r ? r.toStringTag : void 0; + if (yI) return xS; + yI = 1; + var r = H5(), e = k$(), t = I$(), n = "[object Null]", i = "[object Undefined]", a = r ? r.toStringTag : void 0; function o(s) { return s == null ? s === void 0 ? i : n : a && a in Object(s) ? e(s) : t(s); } return xS = o, xS; } -var ES, yI; +var ES, mI; function N$() { - if (yI) return ES; - yI = 1; + if (mI) return ES; + mI = 1; function r(e) { return e != null && typeof e == "object"; } return ES = r, ES; } -var SS, mI; +var SS, bI; function X1() { - if (mI) return SS; - mI = 1; + if (bI) return SS; + bI = 1; var r = tF(), e = N$(), t = "[object Symbol]"; function n(i) { return typeof i == "symbol" || e(i) && r(i) == t; } return SS = n, SS; } -var OS, bI; +var OS, _I; function L$() { - if (bI) return OS; - bI = 1; + if (_I) return OS; + _I = 1; var r = D$(), e = Y1(), t = X1(), n = NaN, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt; function u(l) { if (typeof l == "number") @@ -18407,10 +18407,10 @@ function L$() { } return OS = u, OS; } -var TS, _I; +var TS, wI; function j$() { - if (_I) return TS; - _I = 1; + if (wI) return TS; + wI = 1; var r = Y1(), e = P$(), t = L$(), n = "Expected a function", i = Math.max, a = Math.min; function o(s, u, l) { var c, f, d, h, p, g, y = 0, b = !1, _ = !1, m = !0; @@ -18507,7 +18507,7 @@ var B$ = j$(), $1 = /* @__PURE__ */ W1(B$), CS = us ? us.performance : null, rF return e[0] * 2097152 + e[1]; }, fw = function(e, t) { return [g1(e[0], t[0]), y1(e[1], t[1])]; -}, wI = function(e, t) { +}, xI = function(e, t) { var n = { value: 0, done: !1 @@ -18557,20 +18557,20 @@ function V$(r, e, t) { y: u.y }; } -var xI = !0, H$ = console.warn != null, W$ = console.trace != null, H5 = Number.MAX_SAFE_INTEGER || 9007199254740991, oF = function() { +var EI = !0, H$ = console.warn != null, W$ = console.trace != null, W5 = Number.MAX_SAFE_INTEGER || 9007199254740991, oF = function() { return !0; }, Dx = function() { return !1; -}, EI = function() { +}, SI = function() { return 0; -}, W5 = function() { +}, Y5 = function() { }, Ia = function(e) { throw new Error(e); }, sF = function(e) { if (e !== void 0) - xI = !!e; + EI = !!e; else - return xI; + return EI; }, Ai = function(e) { sF() && (H$ ? console.warn(e) : (console.log(e), W$ && console.trace())); }, Y$ = function(e) { @@ -18609,7 +18609,7 @@ var xI = !0, H$ = console.warn != null, W$ = console.trace != null, H5 = Number. }, Pp = function(e, t, n) { for (var i = e.length - 1; i >= 0; i--) e[i] === t && e.splice(i, 1); -}, Y5 = function(e) { +}, X5 = function(e) { e.splice(0, e.length); }, K$ = function(e, t) { for (var n = 0; n < t.length; n++) { @@ -18702,7 +18702,7 @@ var xI = !0, H$ = console.warn != null, W$ = console.trace != null, H5 = Number. }]); })(), $m = (typeof Set > "u" ? "undefined" : cs(Set)) !== Q$ ? Set : J$, R2 = function(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; - if (e === void 0 || t === void 0 || !q5(e)) { + if (e === void 0 || t === void 0 || !G5(e)) { Ia("An element must have a core reference and parameters set"); return; } @@ -18820,7 +18820,7 @@ var xI = !0, H$ = console.warn != null, W$ = console.trace != null, H5 = Number. this.createEmitter(), (n === void 0 || n) && this.restore(); var h = t.style || t.css; h && (Ai("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."), this.style(h)); -}, SI = function(e) { +}, OI = function(e) { return e = { bfs: e.bfs || !e.dfs, dfs: e.dfs || !e.bfs @@ -18864,18 +18864,18 @@ var xI = !0, H$ = console.warn != null, W$ = console.trace != null, H5 = Number. }; }; }, m1 = { - breadthFirstSearch: SI({ + breadthFirstSearch: OI({ bfs: !0 }), - depthFirstSearch: SI({ + depthFirstSearch: OI({ dfs: !0 }) }; m1.bfs = m1.breadthFirstSearch; m1.dfs = m1.depthFirstSearch; -var Xw = { exports: {} }, eK = Xw.exports, OI; +var Xw = { exports: {} }, eK = Xw.exports, TI; function tK() { - return OI || (OI = 1, (function(r, e) { + return TI || (TI = 1, (function(r, e) { (function() { var t, n, i, a, o, s, u, l, c, f, d, h, p, g, y; i = Math.floor, f = Math.min, n = function(b, _) { @@ -18987,9 +18987,9 @@ function tK() { }).call(eK); })(Xw)), Xw.exports; } -var AS, TI; +var AS, CI; function rK() { - return TI || (TI = 1, AS = tK()), AS; + return CI || (CI = 1, AS = tK()), AS; } var nK = rK(), K1 = /* @__PURE__ */ W1(nK), iK = du({ root: null, @@ -19397,9 +19397,9 @@ var nK = rK(), K1 = /* @__PURE__ */ W1(nK), iK = du({ return Math.PI * e / 180; }, dw = function(e, t) { return Math.atan2(t, e) - Math.PI / 2; -}, X5 = Math.log2 || function(r) { +}, $5 = Math.log2 || function(r) { return Math.log(r) / Math.log(2); -}, $5 = function(e) { +}, K5 = function(e) { return e > 0 ? 1 : e < 0 ? -1 : 0; }, Wg = function(e, t) { return Math.sqrt(Cg(e, t)); @@ -19488,17 +19488,17 @@ var nK = rK(), K1 = /* @__PURE__ */ W1(nK), iK = du({ else if (t.length === 2) n = a = t[0], o = i = t[1]; else if (t.length === 4) { - var s = Uo(t, 4); + var s = zo(t, 4); n = s[0], i = s[1], a = s[2], o = s[3]; } return e.x1 -= o, e.x2 += i, e.y1 -= n, e.y2 += a, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1, e; -}, CI = function(e, t) { +}, AI = function(e, t) { e.x1 = t.x1, e.y1 = t.y1, e.x2 = t.x2, e.y2 = t.y2, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1; -}, K5 = function(e, t) { +}, Z5 = function(e, t) { return !(e.x1 > t.x2 || t.x1 > e.x2 || e.x2 < t.x1 || t.x2 < e.x1 || e.y2 < t.y1 || t.y2 < e.y1 || e.y1 > t.y2 || t.y1 > e.y2); }, pp = function(e, t, n) { return e.x1 <= t && t <= e.x2 && e.y1 <= n && n <= e.y2; -}, AI = function(e, t) { +}, RI = function(e, t) { return pp(e, t.x, t.y); }, dF = function(e, t) { return pp(e, t.x1, t.y1) && pp(e, t.x2, t.y2); @@ -19791,7 +19791,7 @@ var hF = function(e, t, n, i, a, o, s) { var i = [e[0] - t[0], e[1] - t[1]], a = Math.sqrt(i[0] * i[0] + i[1] * i[1]), o = (a - n) / a; return o < 0 && (o = 1e-5), [t[0] + o * i[0], t[1] + o * i[1]]; }, Fl = function(e, t) { - var n = lM(e, t); + var n = cM(e, t); return n = vF(n), n; }, vF = function(e) { for (var t, n, i = e.length / 2, a = 1 / 0, o = 1 / 0, s = -1 / 0, u = -1 / 0, l = 0; l < i; l++) @@ -19802,7 +19802,7 @@ var hF = function(e, t, n, i, a, o, s) { for (var h = 0; h < i; h++) n = e[2 * h + 1] = e[2 * h + 1] + (-1 - o); return e; -}, lM = function(e, t) { +}, cM = function(e, t) { var n = 1 / e * 2 * Math.PI, i = e % 2 === 0 ? Math.PI / 2 + n / 2 : Math.PI / 2; i += t; for (var a = new Array(e * 2), o, s = 0; s < e; s++) @@ -19812,11 +19812,11 @@ var hF = function(e, t, n, i, a, o, s) { return Math.min(e / 4, t / 4, 8); }, pF = function(e, t) { return Math.min(e / 10, t / 10, 8); -}, Z5 = function() { +}, Q5 = function() { return 8; }, UK = function(e, t, n) { return [e - 2 * t + n, 2 * (t - e), e]; -}, cM = function(e, t) { +}, fM = function(e, t) { return { heightOffset: Math.min(15, 0.05 * t), widthOffset: Math.min(100, 0.25 * e), @@ -19934,7 +19934,7 @@ var zK = du({ return se; } // pageRank -}, RI = du({ +}, PI = du({ root: null, weight: function(e) { return 1; @@ -19943,7 +19943,7 @@ var zK = du({ alpha: 0 }), xm = { degreeCentralityNormalized: function(e) { - e = RI(e); + e = PI(e); var t = this.cy(), n = this.nodes(), i = n.length; if (e.directed) { for (var c = {}, f = {}, d = 0, h = 0, p = 0; p < i; p++) { @@ -19979,7 +19979,7 @@ var zK = du({ // "Node centrality in weighted networks: Generalizing degree and shortest paths" // check the heading 2 "Degree" degreeCentrality: function(e) { - e = RI(e); + e = PI(e); var t = this.cy(), n = this, i = e, a = i.root, o = i.weight, s = i.directed, u = i.alpha; if (a = t.collection(a)[0], s) { for (var h = a.connectedEdges(), p = h.filter(function(O) { @@ -20006,7 +20006,7 @@ var zK = du({ }; xm.dc = xm.degreeCentrality; xm.dcn = xm.degreeCentralityNormalised = xm.degreeCentralityNormalized; -var PI = du({ +var MI = du({ harmonic: !0, weight: function() { return 1; @@ -20015,7 +20015,7 @@ var PI = du({ root: null }), Em = { closenessCentralityNormalized: function(e) { - for (var t = PI(e), n = t.harmonic, i = t.weight, a = t.directed, o = this.cy(), s = {}, u = 0, l = this.nodes(), c = this.floydWarshall({ + for (var t = MI(e), n = t.harmonic, i = t.weight, a = t.directed, o = this.cy(), s = {}, u = 0, l = this.nodes(), c = this.floydWarshall({ weight: i, directed: a }), f = 0; f < l.length; f++) { @@ -20034,7 +20034,7 @@ var PI = du({ }, // Implemented from pseudocode from wikipedia closenessCentrality: function(e) { - var t = PI(e), n = t.root, i = t.weight, a = t.directed, o = t.harmonic; + var t = MI(e), n = t.root, i = t.weight, a = t.directed, o = t.harmonic; n = this.filter(n)[0]; for (var s = this.dijkstra({ root: n, @@ -20056,7 +20056,7 @@ Em.ccn = Em.closenessCentralityNormalised = Em.closenessCentralityNormalized; var GK = du({ weight: null, directed: !1 -}), fM = { +}), dM = { // Implemented from the algorithm in the paper "On Variants of Shortest-Path Betweenness Centrality and their Generic Computation" by Ulrik Brandes betweennessCentrality: function(e) { for (var t = GK(e), n = t.directed, i = t.weight, a = i != null, o = this.cy(), s = this.nodes(), u = {}, l = {}, c = 0, f = { @@ -20119,7 +20119,7 @@ var GK = du({ } // betweennessCentrality }; -fM.bc = fM.betweennessCentrality; +dM.bc = dM.betweennessCentrality; var VK = du({ expandFactor: 2, // affects time of computation and cluster granularity to some extent: M * M @@ -20193,7 +20193,7 @@ var VK = du({ for (var n = 0; n < e.length; n++) t != n && JK(e[t], e[n]) && e.splice(n, 1); return e; -}, MI = function(e) { +}, DI = function(e) { for (var t = this.nodes(), n = this.edges(), i = this.cy(), a = HK(e), o = {}, s = 0; s < t.length; s++) o[t[s].id()] = s; for (var u = t.length, l = u * u, c = new Array(l), f, d = 0; d < l; d++) @@ -20208,15 +20208,15 @@ var VK = du({ var x = QK(c, u, t, i); return x = eZ(x), x; }, tZ = { - markovClustering: MI, - mcl: MI + markovClustering: DI, + mcl: DI }, rZ = function(e) { return e; }, yF = function(e, t) { return Math.abs(t - e); -}, DI = function(e, t, n) { - return e + yF(t, n); }, kI = function(e, t, n) { + return e + yF(t, n); +}, II = function(e, t, n) { return e + Math.pow(n - t, 2); }, nZ = function(e) { return Math.sqrt(e); @@ -20228,13 +20228,13 @@ var VK = du({ return o(s); }, Bm = { euclidean: function(e, t, n) { - return e >= 2 ? q0(e, t, n, 0, kI, nZ) : q0(e, t, n, 0, DI); + return e >= 2 ? q0(e, t, n, 0, II, nZ) : q0(e, t, n, 0, kI); }, squaredEuclidean: function(e, t, n) { - return q0(e, t, n, 0, kI); + return q0(e, t, n, 0, II); }, manhattan: function(e, t, n) { - return q0(e, t, n, 0, DI); + return q0(e, t, n, 0, kI); }, max: function(e, t, n) { return q0(e, t, n, -1 / 0, iZ); @@ -20255,7 +20255,7 @@ var aZ = du({ attributes: [], testMode: !1, testCentroids: null -}), Q5 = function(e) { +}), J5 = function(e) { return aZ(e); }, Nx = function(e, t, n, i, a) { var o = a !== "kMedoids", s = o ? function(f) { @@ -20300,7 +20300,7 @@ var aZ = du({ for (var i = 0; i < n; i++) if (e === t[i]) return !0; return !1; -}, II = function(e, t) { +}, NI = function(e, t) { var n = new Array(t); if (e.length < 50) for (var i = 0; i < t; i++) { @@ -20312,12 +20312,12 @@ var aZ = du({ for (var o = 0; o < t; o++) n[o] = e[Math.floor(Math.random() * e.length)]; return n; -}, NI = function(e, t, n) { +}, LI = function(e, t, n) { for (var i = 0, a = 0; a < t.length; a++) i += Nx("manhattan", t[a], e, n, "kMedoids"); return i; }, lZ = function(e) { - var t = this.cy(), n = this.nodes(), i = null, a = Q5(e), o = new Array(a.k), s = {}, u; + var t = this.cy(), n = this.nodes(), i = null, a = J5(e), o = new Array(a.k), s = {}, u; a.testMode ? typeof a.testCentroids == "number" ? (a.testCentroids, u = kS(n, a.k, a.attributes)) : cs(a.testCentroids) === "object" ? u = a.testCentroids : u = kS(n, a.k, a.attributes) : u = kS(n, a.k, a.attributes); for (var l = !0, c = 0; l && c < a.maxIterations; ) { for (var f = 0; f < n.length; f++) @@ -20339,8 +20339,8 @@ var aZ = du({ } return o; }, cZ = function(e) { - var t = this.cy(), n = this.nodes(), i = null, a = Q5(e), o = new Array(a.k), s, u = {}, l, c = new Array(a.k); - a.testMode ? typeof a.testCentroids == "number" || (cs(a.testCentroids) === "object" ? s = a.testCentroids : s = II(n, a.k)) : s = II(n, a.k); + var t = this.cy(), n = this.nodes(), i = null, a = J5(e), o = new Array(a.k), s, u = {}, l, c = new Array(a.k); + a.testMode ? typeof a.testCentroids == "number" || (cs(a.testCentroids) === "object" ? s = a.testCentroids : s = NI(n, a.k)) : s = NI(n, a.k); for (var f = !0, d = 0; f && d < a.maxIterations; ) { for (var h = 0; h < n.length; h++) i = n[h], u[i.id()] = mF(i, s, a.distance, a.attributes, "kMedoids"); @@ -20348,9 +20348,9 @@ var aZ = du({ for (var p = 0; p < s.length; p++) { var g = bF(p, n, u); if (g.length !== 0) { - c[p] = NI(s[p], g, a.attributes); + c[p] = LI(s[p], g, a.attributes); for (var y = 0; y < g.length; y++) - l = NI(g[y], g, a.attributes), l < c[p] && (c[p] = l, s[p] = g[y], f = !0); + l = LI(g[y], g, a.attributes), l < c[p] && (c[p] = l, s[p] = g[y], f = !0); o[p] = t.collection(g); } } @@ -20390,8 +20390,8 @@ var aZ = du({ for (var f = 0; f < a.length; f++) a[f] = i.collection(a[f]); return a; -}, LI = function(e) { - var t = this.cy(), n = this.nodes(), i = Q5(e), a, o, s, u, l; +}, jI = function(e) { + var t = this.cy(), n = this.nodes(), i = J5(e), a, o, s, u, l; u = new Array(n.length); for (var c = 0; c < n.length; c++) u[c] = new Array(i.k); @@ -20419,8 +20419,8 @@ var aZ = du({ }, vZ = { kMeans: lZ, kMedoids: cZ, - fuzzyCMeans: LI, - fcm: LI + fuzzyCMeans: jI, + fcm: jI }, pZ = du({ distance: "euclidean", // distance metric to compare nodes @@ -20443,7 +20443,7 @@ var aZ = du({ }, yZ = function(e) { var t = pZ(e), n = gZ[t.linkage]; return n != null && (t.linkage = n), t; -}, jI = function(e, t, n, i, a) { +}, BI = function(e, t, n, i, a) { for (var o = 0, s = 1 / 0, u, l = a.attributes, c = function(P, I) { return M2(a.distance, l.length, function(k) { return l[k](P); @@ -20483,10 +20483,10 @@ var aZ = du({ return p.key = g.key = p.index = g.index = null, !0; }, pm = function(e, t, n) { e && (e.value ? t.push(e.value) : (e.left && pm(e.left, t), e.right && pm(e.right, t))); -}, dM = function(e, t) { +}, hM = function(e, t) { if (!e) return ""; if (e.left && e.right) { - var n = dM(e.left, t), i = dM(e.right, t), a = t.add({ + var n = hM(e.left, t), i = hM(e.right, t), a = t.add({ group: "nodes", data: { id: n + "," + i @@ -20507,11 +20507,11 @@ var aZ = du({ }), a.id(); } else if (e.value) return e.value.id(); -}, hM = function(e, t, n) { +}, vM = function(e, t, n) { if (!e) return []; var i = [], a = [], o = []; - return t === 0 ? (e.left && pm(e.left, i), e.right && pm(e.right, a), o = i.concat(a), [n.collection(o)]) : t === 1 ? e.value ? [n.collection(e.value)] : (e.left && pm(e.left, i), e.right && pm(e.right, a), [n.collection(i), n.collection(a)]) : e.value ? [n.collection(e.value)] : (e.left && (i = hM(e.left, t - 1, n)), e.right && (a = hM(e.right, t - 1, n)), i.concat(a)); -}, BI = function(e) { + return t === 0 ? (e.left && pm(e.left, i), e.right && pm(e.right, a), o = i.concat(a), [n.collection(o)]) : t === 1 ? e.value ? [n.collection(e.value)] : (e.left && pm(e.left, i), e.right && pm(e.right, a), [n.collection(i), n.collection(a)]) : e.value ? [n.collection(e.value)] : (e.left && (i = vM(e.left, t - 1, n)), e.right && (a = vM(e.right, t - 1, n)), i.concat(a)); +}, FI = function(e) { for (var t = this.cy(), n = this.nodes(), i = yZ(e), a = i.attributes, o = function(m, x) { return M2(i.distance, a.length, function(E) { return a[E](m); @@ -20531,15 +20531,15 @@ var aZ = du({ var g = void 0; i.mode === "dendrogram" ? g = h === p ? 1 / 0 : o(s[h].value, s[p].value) : g = h === p ? 1 / 0 : o(s[h].value[0], s[p].value[0]), u[h][p] = g, u[p][h] = g, g < u[h][l[h]] && (l[h] = p); } - for (var y = jI(s, c, u, l, i); y; ) - y = jI(s, c, u, l, i); + for (var y = BI(s, c, u, l, i); y; ) + y = BI(s, c, u, l, i); var b; - return i.mode === "dendrogram" ? (b = hM(s[0], i.dendrogramDepth, t), i.addDendrogram && dM(s[0], t)) : (b = new Array(s.length), s.forEach(function(_, m) { + return i.mode === "dendrogram" ? (b = vM(s[0], i.dendrogramDepth, t), i.addDendrogram && hM(s[0], t)) : (b = new Array(s.length), s.forEach(function(_, m) { _.key = _.index = null, b[m] = t.collection(_.value); })), b; }, mZ = { - hierarchicalClustering: BI, - hca: BI + hierarchicalClustering: FI, + hca: FI }, bZ = du({ distance: "euclidean", // distance metric to compare attributes between two nodes @@ -20580,7 +20580,7 @@ var aZ = du({ for (var i = [], a = 0; a < e; a++) t[a * e + a] + n[a * e + a] > 0 && i.push(a); return i; -}, FI = function(e, t, n) { +}, UI = function(e, t, n) { for (var i = [], a = 0; a < e; a++) { for (var o = -1, s = -1 / 0, u = 0; u < n.length; u++) { var l = n[u]; @@ -20592,7 +20592,7 @@ var aZ = du({ i[n[c]] = n[c]; return i; }, SZ = function(e, t, n) { - for (var i = FI(e, t, n), a = 0; a < n.length; a++) { + for (var i = UI(e, t, n), a = 0; a < n.length; a++) { for (var o = [], s = 0; s < i.length; s++) i[s] === n[a] && o.push(s); for (var u = -1, l = -1 / 0, c = 0; c < o.length; c++) { @@ -20602,8 +20602,8 @@ var aZ = du({ } n[a] = o[u]; } - return i = FI(e, t, n), i; -}, UI = function(e) { + return i = UI(e, t, n), i; +}, zI = function(e) { for (var t = this.cy(), n = this.nodes(), i = _Z(e), a = {}, o = 0; o < n.length; o++) a[n[o].id()] = o; var s, u, l, c, f, d; @@ -20668,8 +20668,8 @@ var aZ = du({ ke[De] = t.collection(fe[ce[De]]); return ke; }, OZ = { - affinityPropagation: UI, - ap: UI + affinityPropagation: zI, + ap: zI }, TZ = du({ root: void 0, directed: !1 @@ -20827,7 +20827,7 @@ var aZ = du({ tscc: pw, tarjanStronglyConnectedComponents: pw }, _F = {}; -[m1, aK, oK, uK, cK, dK, pK, qK, xm, Em, fM, tZ, vZ, mZ, OZ, CZ, AZ, RZ].forEach(function(r) { +[m1, aK, oK, uK, cK, dK, pK, qK, xm, Em, dM, tZ, vZ, mZ, OZ, CZ, AZ, RZ].forEach(function(r) { kr(_F, r); }); /*! @@ -20844,22 +20844,22 @@ var wF = 0, xF = 1, EF = 2, Pd = function(e) { Pd.prototype = { /* promise resolving methods */ fulfill: function(e) { - return zI(this, xF, "fulfillValue", e); + return qI(this, xF, "fulfillValue", e); }, reject: function(e) { - return zI(this, EF, "rejectReason", e); + return qI(this, EF, "rejectReason", e); }, /* "The then Method" [Promises/A+ 1.1, 1.2, 2.2] */ then: function(e, t) { var n = this, i = new Pd(); - return n.onFulfilled.push(GI(e, i, "fulfill")), n.onRejected.push(GI(t, i, "reject")), SF(n), i.proxy; + return n.onFulfilled.push(VI(e, i, "fulfill")), n.onRejected.push(VI(t, i, "reject")), SF(n), i.proxy; } }; -var zI = function(e, t, n, i) { +var qI = function(e, t, n, i) { return e.state === wF && (e.state = t, e[n] = i, SF(e)), e; }, SF = function(e) { - e.state === xF ? qI(e, "onFulfilled", e.fulfillValue) : e.state === EF && qI(e, "onRejected", e.rejectReason); -}, qI = function(e, t, n) { + e.state === xF ? GI(e, "onFulfilled", e.fulfillValue) : e.state === EF && GI(e, "onRejected", e.rejectReason); +}, GI = function(e, t, n) { if (e[t].length !== 0) { var i = e[t]; e[t] = []; @@ -20868,7 +20868,7 @@ var zI = function(e, t, n, i) { }; typeof setImmediate == "function" ? setImmediate(a) : setTimeout(a, 0); } -}, GI = function(e, t, n) { +}, VI = function(e, t, n) { return function(i) { if (typeof e != "function") t[n].call(t, i); @@ -20949,8 +20949,8 @@ Pd.reject = function(r) { t(r); }); }; -var Km = typeof Promise < "u" ? Promise : Pd, vM = function(e, t, n) { - var i = q5(e), a = !i, o = this._private = kr({ +var Km = typeof Promise < "u" ? Promise : Pd, pM = function(e, t, n) { + var i = G5(e), a = !i, o = this._private = kr({ duration: 1e3 }, t, n); if (o.target = e, o.style = o.style || o.css, o.started = !1, o.playing = !1, o.hooked = !1, o.applying = !1, o.progress = 0, o.completes = [], o.frames = [], o.complete && Ya(o.complete) && o.completes.push(o.complete), a) { @@ -20968,7 +20968,7 @@ var Km = typeof Promise < "u" ? Promise : Pd, vM = function(e, t, n) { }, o.startZoom = e.zoom(); } this.length = 1, this[0] = this; -}, Yg = vM.prototype; +}, Yg = pM.prototype; kr(Yg, { instanceString: function() { return "animation"; @@ -21111,7 +21111,7 @@ var PZ = { t = kr({}, t, n); var f = Object.keys(t).length === 0; if (f) - return new vM(o[0], t); + return new pM(o[0], t); switch (t.duration === void 0 && (t.duration = 400), t.duration) { case "slow": t.duration = 600; @@ -21144,7 +21144,7 @@ var PZ = { var E = s.getZoomedViewport(t.zoom); E != null ? (E.zoomed && (t.zoom = E.zoom), E.panned && (t.pan = E.pan)) : t.zoom = null; } - return new vM(o[0], t); + return new pM(o[0], t); }; }, // animate @@ -21180,17 +21180,17 @@ var PZ = { }; } // stop -}, IS, VI; +}, IS, HI; function D2() { - if (VI) return IS; - VI = 1; + if (HI) return IS; + HI = 1; var r = Array.isArray; return IS = r, IS; } -var NS, HI; +var NS, WI; function MZ() { - if (HI) return NS; - HI = 1; + if (WI) return NS; + WI = 1; var r = D2(), e = X1(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/; function i(a, o) { if (r(a)) @@ -21200,10 +21200,10 @@ function MZ() { } return NS = i, NS; } -var LS, WI; +var LS, YI; function DZ() { - if (WI) return LS; - WI = 1; + if (YI) return LS; + YI = 1; var r = tF(), e = Y1(), t = "[object AsyncFunction]", n = "[object Function]", i = "[object GeneratorFunction]", a = "[object Proxy]"; function o(s) { if (!e(s)) @@ -21213,17 +21213,17 @@ function DZ() { } return LS = o, LS; } -var jS, YI; +var jS, XI; function kZ() { - if (YI) return jS; - YI = 1; + if (XI) return jS; + XI = 1; var r = A2(), e = r["__core-js_shared__"]; return jS = e, jS; } -var BS, XI; +var BS, $I; function IZ() { - if (XI) return BS; - XI = 1; + if ($I) return BS; + $I = 1; var r = kZ(), e = (function() { var n = /[^.]+$/.exec(r && r.keys && r.keys.IE_PROTO || ""); return n ? "Symbol(src)_1." + n : ""; @@ -21233,10 +21233,10 @@ function IZ() { } return BS = t, BS; } -var FS, $I; +var FS, KI; function NZ() { - if ($I) return FS; - $I = 1; + if (KI) return FS; + KI = 1; var r = Function.prototype, e = r.toString; function t(n) { if (n != null) { @@ -21253,10 +21253,10 @@ function NZ() { } return FS = t, FS; } -var US, KI; +var US, ZI; function LZ() { - if (KI) return US; - KI = 1; + if (ZI) return US; + ZI = 1; var r = DZ(), e = IZ(), t = Y1(), n = NZ(), i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, o = Function.prototype, s = Object.prototype, u = o.toString, l = s.hasOwnProperty, c = RegExp( "^" + u.call(l).replace(i, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); @@ -21268,19 +21268,19 @@ function LZ() { } return US = f, US; } -var zS, ZI; +var zS, QI; function jZ() { - if (ZI) return zS; - ZI = 1; + if (QI) return zS; + QI = 1; function r(e, t) { return e == null ? void 0 : e[t]; } return zS = r, zS; } -var qS, QI; -function J5() { - if (QI) return qS; - QI = 1; +var qS, JI; +function eD() { + if (JI) return qS; + JI = 1; var r = LZ(), e = jZ(); function t(n, i) { var a = e(n, i); @@ -21288,37 +21288,37 @@ function J5() { } return qS = t, qS; } -var GS, JI; +var GS, eN; function k2() { - if (JI) return GS; - JI = 1; - var r = J5(), e = r(Object, "create"); + if (eN) return GS; + eN = 1; + var r = eD(), e = r(Object, "create"); return GS = e, GS; } -var VS, eN; +var VS, tN; function BZ() { - if (eN) return VS; - eN = 1; + if (tN) return VS; + tN = 1; var r = k2(); function e() { this.__data__ = r ? r(null) : {}, this.size = 0; } return VS = e, VS; } -var HS, tN; +var HS, rN; function FZ() { - if (tN) return HS; - tN = 1; + if (rN) return HS; + rN = 1; function r(e) { var t = this.has(e) && delete this.__data__[e]; return this.size -= t ? 1 : 0, t; } return HS = r, HS; } -var WS, rN; +var WS, nN; function UZ() { - if (rN) return WS; - rN = 1; + if (nN) return WS; + nN = 1; var r = k2(), e = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty; function i(a) { var o = this.__data__; @@ -21330,10 +21330,10 @@ function UZ() { } return WS = i, WS; } -var YS, nN; +var YS, iN; function zZ() { - if (nN) return YS; - nN = 1; + if (iN) return YS; + iN = 1; var r = k2(), e = Object.prototype, t = e.hasOwnProperty; function n(i) { var a = this.__data__; @@ -21341,10 +21341,10 @@ function zZ() { } return YS = n, YS; } -var XS, iN; +var XS, aN; function qZ() { - if (iN) return XS; - iN = 1; + if (aN) return XS; + aN = 1; var r = k2(), e = "__lodash_hash_undefined__"; function t(n, i) { var a = this.__data__; @@ -21352,10 +21352,10 @@ function qZ() { } return XS = t, XS; } -var $S, aN; +var $S, oN; function GZ() { - if (aN) return $S; - aN = 1; + if (oN) return $S; + oN = 1; var r = BZ(), e = FZ(), t = UZ(), n = zZ(), i = qZ(); function a(o) { var s = -1, u = o == null ? 0 : o.length; @@ -21366,28 +21366,28 @@ function GZ() { } return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, $S = a, $S; } -var KS, oN; +var KS, sN; function VZ() { - if (oN) return KS; - oN = 1; + if (sN) return KS; + sN = 1; function r() { this.__data__ = [], this.size = 0; } return KS = r, KS; } -var ZS, sN; +var ZS, uN; function TF() { - if (sN) return ZS; - sN = 1; + if (uN) return ZS; + uN = 1; function r(e, t) { return e === t || e !== e && t !== t; } return ZS = r, ZS; } -var QS, uN; +var QS, lN; function I2() { - if (uN) return QS; - uN = 1; + if (lN) return QS; + lN = 1; var r = TF(); function e(t, n) { for (var i = t.length; i--; ) @@ -21397,10 +21397,10 @@ function I2() { } return QS = e, QS; } -var JS, lN; +var JS, cN; function HZ() { - if (lN) return JS; - lN = 1; + if (cN) return JS; + cN = 1; var r = I2(), e = Array.prototype, t = e.splice; function n(i) { var a = this.__data__, o = r(a, i); @@ -21411,10 +21411,10 @@ function HZ() { } return JS = n, JS; } -var eO, cN; +var eO, fN; function WZ() { - if (cN) return eO; - cN = 1; + if (fN) return eO; + fN = 1; var r = I2(); function e(t) { var n = this.__data__, i = r(n, t); @@ -21422,20 +21422,20 @@ function WZ() { } return eO = e, eO; } -var tO, fN; +var tO, dN; function YZ() { - if (fN) return tO; - fN = 1; + if (dN) return tO; + dN = 1; var r = I2(); function e(t) { return r(this.__data__, t) > -1; } return tO = e, tO; } -var rO, dN; +var rO, hN; function XZ() { - if (dN) return rO; - dN = 1; + if (hN) return rO; + hN = 1; var r = I2(); function e(t, n) { var i = this.__data__, a = r(i, t); @@ -21443,10 +21443,10 @@ function XZ() { } return rO = e, rO; } -var nO, hN; +var nO, vN; function $Z() { - if (hN) return nO; - hN = 1; + if (vN) return nO; + vN = 1; var r = VZ(), e = HZ(), t = WZ(), n = YZ(), i = XZ(); function a(o) { var s = -1, u = o == null ? 0 : o.length; @@ -21457,17 +21457,17 @@ function $Z() { } return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, nO = a, nO; } -var iO, vN; +var iO, pN; function KZ() { - if (vN) return iO; - vN = 1; - var r = J5(), e = A2(), t = r(e, "Map"); + if (pN) return iO; + pN = 1; + var r = eD(), e = A2(), t = r(e, "Map"); return iO = t, iO; } -var aO, pN; +var aO, gN; function ZZ() { - if (pN) return aO; - pN = 1; + if (gN) return aO; + gN = 1; var r = GZ(), e = $Z(), t = KZ(); function n() { this.size = 0, this.__data__ = { @@ -21478,20 +21478,20 @@ function ZZ() { } return aO = n, aO; } -var oO, gN; +var oO, yN; function QZ() { - if (gN) return oO; - gN = 1; + if (yN) return oO; + yN = 1; function r(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } return oO = r, oO; } -var sO, yN; +var sO, mN; function N2() { - if (yN) return sO; - yN = 1; + if (mN) return sO; + mN = 1; var r = QZ(); function e(t, n) { var i = t.__data__; @@ -21499,10 +21499,10 @@ function N2() { } return sO = e, sO; } -var uO, mN; +var uO, bN; function JZ() { - if (mN) return uO; - mN = 1; + if (bN) return uO; + bN = 1; var r = N2(); function e(t) { var n = r(this, t).delete(t); @@ -21510,30 +21510,30 @@ function JZ() { } return uO = e, uO; } -var lO, bN; +var lO, _N; function eQ() { - if (bN) return lO; - bN = 1; + if (_N) return lO; + _N = 1; var r = N2(); function e(t) { return r(this, t).get(t); } return lO = e, lO; } -var cO, _N; +var cO, wN; function tQ() { - if (_N) return cO; - _N = 1; + if (wN) return cO; + wN = 1; var r = N2(); function e(t) { return r(this, t).has(t); } return cO = e, cO; } -var fO, wN; +var fO, xN; function rQ() { - if (wN) return fO; - wN = 1; + if (xN) return fO; + xN = 1; var r = N2(); function e(t, n) { var i = r(this, t), a = i.size; @@ -21541,10 +21541,10 @@ function rQ() { } return fO = e, fO; } -var dO, xN; +var dO, EN; function nQ() { - if (xN) return dO; - xN = 1; + if (EN) return dO; + EN = 1; var r = ZZ(), e = JZ(), t = eQ(), n = tQ(), i = rQ(); function a(o) { var s = -1, u = o == null ? 0 : o.length; @@ -21555,10 +21555,10 @@ function nQ() { } return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, dO = a, dO; } -var hO, EN; +var hO, SN; function iQ() { - if (EN) return hO; - EN = 1; + if (SN) return hO; + SN = 1; var r = nQ(), e = "Expected a function"; function t(n, i) { if (typeof n != "function" || i != null && typeof i != "function") @@ -21574,10 +21574,10 @@ function iQ() { } return t.Cache = r, hO = t, hO; } -var vO, SN; +var vO, ON; function aQ() { - if (SN) return vO; - SN = 1; + if (ON) return vO; + ON = 1; var r = iQ(), e = 500; function t(n) { var i = r(n, function(o) { @@ -21587,10 +21587,10 @@ function aQ() { } return vO = t, vO; } -var pO, ON; +var pO, TN; function CF() { - if (ON) return pO; - ON = 1; + if (TN) return pO; + TN = 1; var r = aQ(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, t = /\\(\\)?/g, n = r(function(i) { var a = []; return i.charCodeAt(0) === 46 && a.push(""), i.replace(e, function(o, s, u, l) { @@ -21599,10 +21599,10 @@ function CF() { }); return pO = n, pO; } -var gO, TN; +var gO, CN; function AF() { - if (TN) return gO; - TN = 1; + if (CN) return gO; + CN = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length, a = Array(i); ++n < i; ) a[n] = t(e[n], n, e); @@ -21610,11 +21610,11 @@ function AF() { } return gO = r, gO; } -var yO, CN; +var yO, AN; function oQ() { - if (CN) return yO; - CN = 1; - var r = V5(), e = AF(), t = D2(), n = X1(), i = r ? r.prototype : void 0, a = i ? i.toString : void 0; + if (AN) return yO; + AN = 1; + var r = H5(), e = AF(), t = D2(), n = X1(), i = r ? r.prototype : void 0, a = i ? i.toString : void 0; function o(s) { if (typeof s == "string") return s; @@ -21627,30 +21627,30 @@ function oQ() { } return yO = o, yO; } -var mO, AN; +var mO, RN; function RF() { - if (AN) return mO; - AN = 1; + if (RN) return mO; + RN = 1; var r = oQ(); function e(t) { return t == null ? "" : r(t); } return mO = e, mO; } -var bO, RN; +var bO, PN; function PF() { - if (RN) return bO; - RN = 1; + if (PN) return bO; + PN = 1; var r = D2(), e = MZ(), t = CF(), n = RF(); function i(a, o) { return r(a) ? a : e(a, o) ? [a] : t(n(a)); } return bO = i, bO; } -var _O, PN; -function eD() { - if (PN) return _O; - PN = 1; +var _O, MN; +function tD() { + if (MN) return _O; + MN = 1; var r = X1(); function e(t) { if (typeof t == "string" || r(t)) @@ -21660,11 +21660,11 @@ function eD() { } return _O = e, _O; } -var wO, MN; +var wO, DN; function sQ() { - if (MN) return wO; - MN = 1; - var r = PF(), e = eD(); + if (DN) return wO; + DN = 1; + var r = PF(), e = tD(); function t(n, i) { i = r(i, n); for (var a = 0, o = i.length; n != null && a < o; ) @@ -21673,10 +21673,10 @@ function sQ() { } return wO = t, wO; } -var xO, DN; +var xO, kN; function uQ() { - if (DN) return xO; - DN = 1; + if (kN) return xO; + kN = 1; var r = sQ(); function e(t, n, i) { var a = t == null ? void 0 : r(t, n); @@ -21684,11 +21684,11 @@ function uQ() { } return xO = e, xO; } -var lQ = uQ(), cQ = /* @__PURE__ */ W1(lQ), EO, kN; +var lQ = uQ(), cQ = /* @__PURE__ */ W1(lQ), EO, IN; function fQ() { - if (kN) return EO; - kN = 1; - var r = J5(), e = (function() { + if (IN) return EO; + IN = 1; + var r = eD(), e = (function() { try { var t = r(Object, "defineProperty"); return t({}, "", {}), t; @@ -21697,10 +21697,10 @@ function fQ() { })(); return EO = e, EO; } -var SO, IN; +var SO, NN; function dQ() { - if (IN) return SO; - IN = 1; + if (NN) return SO; + NN = 1; var r = fQ(); function e(t, n, i) { n == "__proto__" && r ? r(t, n, { @@ -21712,10 +21712,10 @@ function dQ() { } return SO = e, SO; } -var OO, NN; +var OO, LN; function hQ() { - if (NN) return OO; - NN = 1; + if (LN) return OO; + LN = 1; var r = dQ(), e = TF(), t = Object.prototype, n = t.hasOwnProperty; function i(a, o, s) { var u = a[o]; @@ -21723,10 +21723,10 @@ function hQ() { } return OO = i, OO; } -var TO, LN; +var TO, jN; function vQ() { - if (LN) return TO; - LN = 1; + if (jN) return TO; + jN = 1; var r = 9007199254740991, e = /^(?:0|[1-9]\d*)$/; function t(n, i) { var a = typeof n; @@ -21734,11 +21734,11 @@ function vQ() { } return TO = t, TO; } -var CO, jN; +var CO, BN; function pQ() { - if (jN) return CO; - jN = 1; - var r = hQ(), e = PF(), t = vQ(), n = Y1(), i = eD(); + if (BN) return CO; + BN = 1; + var r = hQ(), e = PF(), t = vQ(), n = Y1(), i = tD(); function a(o, s, u, l) { if (!n(o)) return o; @@ -21757,20 +21757,20 @@ function pQ() { } return CO = a, CO; } -var AO, BN; +var AO, FN; function gQ() { - if (BN) return AO; - BN = 1; + if (FN) return AO; + FN = 1; var r = pQ(); function e(t, n, i) { return t == null ? t : r(t, n, i); } return AO = e, AO; } -var yQ = gQ(), mQ = /* @__PURE__ */ W1(yQ), RO, FN; +var yQ = gQ(), mQ = /* @__PURE__ */ W1(yQ), RO, UN; function bQ() { - if (FN) return RO; - FN = 1; + if (UN) return RO; + UN = 1; function r(e, t) { var n = -1, i = e.length; for (t || (t = Array(i)); ++n < i; ) @@ -21779,11 +21779,11 @@ function bQ() { } return RO = r, RO; } -var PO, UN; +var PO, zN; function _Q() { - if (UN) return PO; - UN = 1; - var r = AF(), e = bQ(), t = D2(), n = X1(), i = CF(), a = eD(), o = RF(); + if (zN) return PO; + zN = 1; + var r = AF(), e = bQ(), t = D2(), n = X1(), i = CF(), a = tD(), o = RF(); function s(u) { return t(u) ? r(u, a) : n(u) ? [u] : e(i(o(u))); } @@ -22049,7 +22049,7 @@ var Vi = function() { COMPOUND_SPLIT: 19, /** Always matches, useful placeholder for subject in `COMPOUND_SPLIT` */ TRUE: 20 -}, pM = [{ +}, gM = [{ selector: ":selected", matches: function(e) { return e.selected(); @@ -22197,12 +22197,12 @@ var Vi = function() { }].sort(function(r, e) { return E$(r.selector, e.selector); }), TQ = (function() { - for (var r = {}, e, t = 0; t < pM.length; t++) - e = pM[t], r[e.selector] = e.matches; + for (var r = {}, e, t = 0; t < gM.length; t++) + e = gM[t], r[e.selector] = e.matches; return r; })(), CQ = function(e, t) { return TQ[e](t); -}, AQ = "(" + pM.map(function(r) { +}, AQ = "(" + gM.map(function(r) { return r.selector; }).join("|") + ")", $y = function(e) { return e.replace(new RegExp("\\\\(" + ni.metaChar + ")", "g"), function(t, n) { @@ -22210,13 +22210,13 @@ var Vi = function() { }); }, tp = function(e, t, n) { e[e.length - 1] = n; -}, gM = [{ +}, yM = [{ name: "group", // just used for identifying when debugging query: !0, regex: "(" + ni.group + ")", populate: function(e, t, n) { - var i = Uo(n, 1), a = i[0]; + var i = zo(n, 1), a = i[0]; t.checks.push({ type: nr.GROUP, value: a === "*" ? a : a + "s" @@ -22227,7 +22227,7 @@ var Vi = function() { query: !0, regex: AQ, populate: function(e, t, n) { - var i = Uo(n, 1), a = i[0]; + var i = zo(n, 1), a = i[0]; t.checks.push({ type: nr.STATE, value: a @@ -22238,7 +22238,7 @@ var Vi = function() { query: !0, regex: "\\#(" + ni.id + ")", populate: function(e, t, n) { - var i = Uo(n, 1), a = i[0]; + var i = zo(n, 1), a = i[0]; t.checks.push({ type: nr.ID, value: $y(a) @@ -22249,7 +22249,7 @@ var Vi = function() { query: !0, regex: "\\.(" + ni.className + ")", populate: function(e, t, n) { - var i = Uo(n, 1), a = i[0]; + var i = zo(n, 1), a = i[0]; t.checks.push({ type: nr.CLASS, value: $y(a) @@ -22260,7 +22260,7 @@ var Vi = function() { query: !0, regex: "\\[\\s*(" + ni.variable + ")\\s*\\]", populate: function(e, t, n) { - var i = Uo(n, 1), a = i[0]; + var i = zo(n, 1), a = i[0]; t.checks.push({ type: nr.DATA_EXIST, field: $y(a) @@ -22271,7 +22271,7 @@ var Vi = function() { query: !0, regex: "\\[\\s*(" + ni.variable + ")\\s*(" + ni.comparatorOp + ")\\s*(" + ni.value + ")\\s*\\]", populate: function(e, t, n) { - var i = Uo(n, 3), a = i[0], o = i[1], s = i[2], u = new RegExp("^" + ni.string + "$").exec(s) != null; + var i = zo(n, 3), a = i[0], o = i[1], s = i[2], u = new RegExp("^" + ni.string + "$").exec(s) != null; u ? s = s.substring(1, s.length - 1) : s = parseFloat(s), t.checks.push({ type: nr.DATA_COMPARE, field: $y(a), @@ -22284,7 +22284,7 @@ var Vi = function() { query: !0, regex: "\\[\\s*(" + ni.boolOp + ")\\s*(" + ni.variable + ")\\s*\\]", populate: function(e, t, n) { - var i = Uo(n, 2), a = i[0], o = i[1]; + var i = zo(n, 2), a = i[0], o = i[1]; t.checks.push({ type: nr.DATA_BOOL, field: $y(o), @@ -22296,7 +22296,7 @@ var Vi = function() { query: !0, regex: "\\[\\[\\s*(" + ni.meta + ")\\s*(" + ni.comparatorOp + ")\\s*(" + ni.number + ")\\s*\\]\\]", populate: function(e, t, n) { - var i = Uo(n, 3), a = i[0], o = i[1], s = i[2]; + var i = zo(n, 3), a = i[0], o = i[1], s = i[2]; t.checks.push({ type: nr.META_COMPARE, field: $y(a), @@ -22445,12 +22445,12 @@ var Vi = function() { a === nr.DIRECTED_EDGE ? i.type = nr.NODE_TARGET : a === nr.UNDIRECTED_EDGE && (i.type = nr.NODE_NEIGHBOR, i.node = i.nodes[1], i.neighbor = i.nodes[0], i.nodes = null); } }]; -gM.forEach(function(r) { +yM.forEach(function(r) { return r.regexObj = new RegExp("^" + r.regex); }); var RQ = function(e) { - for (var t, n, i, a = 0; a < gM.length; a++) { - var o = gM[a], s = o.name, u = e.match(o.regexObj); + for (var t, n, i, a = 0; a < yM.length; a++) { + var o = yM[a], s = o.name, u = e.match(o.regexObj); if (u != null) { n = u, t = o, i = s; var l = u[0]; @@ -22600,98 +22600,98 @@ var RQ = function(e) { } }, NQ = function(e) { return e !== void 0; -}, tD = function(e, t) { +}, rD = function(e, t) { return e.data(t); }, LQ = function(e, t) { return e[t](); -}, oo = [], Ea = function(e, t) { +}, so = [], Ea = function(e, t) { return e.checks.every(function(n) { - return oo[n.type](n, t); + return so[n.type](n, t); }); }; -oo[nr.GROUP] = function(r, e) { +so[nr.GROUP] = function(r, e) { var t = r.value; return t === "*" || t === e.group(); }; -oo[nr.STATE] = function(r, e) { +so[nr.STATE] = function(r, e) { var t = r.value; return CQ(t, e); }; -oo[nr.ID] = function(r, e) { +so[nr.ID] = function(r, e) { var t = r.value; return e.id() === t; }; -oo[nr.CLASS] = function(r, e) { +so[nr.CLASS] = function(r, e) { var t = r.value; return e.hasClass(t); }; -oo[nr.META_COMPARE] = function(r, e) { +so[nr.META_COMPARE] = function(r, e) { var t = r.field, n = r.operator, i = r.value; return MF(LQ(e, t), n, i); }; -oo[nr.DATA_COMPARE] = function(r, e) { +so[nr.DATA_COMPARE] = function(r, e) { var t = r.field, n = r.operator, i = r.value; - return MF(tD(e, t), n, i); + return MF(rD(e, t), n, i); }; -oo[nr.DATA_BOOL] = function(r, e) { +so[nr.DATA_BOOL] = function(r, e) { var t = r.field, n = r.operator; - return IQ(tD(e, t), n); + return IQ(rD(e, t), n); }; -oo[nr.DATA_EXIST] = function(r, e) { +so[nr.DATA_EXIST] = function(r, e) { var t = r.field; - return r.operator, NQ(tD(e, t)); + return r.operator, NQ(rD(e, t)); }; -oo[nr.UNDIRECTED_EDGE] = function(r, e) { +so[nr.UNDIRECTED_EDGE] = function(r, e) { var t = r.nodes[0], n = r.nodes[1], i = e.source(), a = e.target(); return Ea(t, i) && Ea(n, a) || Ea(n, i) && Ea(t, a); }; -oo[nr.NODE_NEIGHBOR] = function(r, e) { +so[nr.NODE_NEIGHBOR] = function(r, e) { return Ea(r.node, e) && e.neighborhood().some(function(t) { return t.isNode() && Ea(r.neighbor, t); }); }; -oo[nr.DIRECTED_EDGE] = function(r, e) { +so[nr.DIRECTED_EDGE] = function(r, e) { return Ea(r.source, e.source()) && Ea(r.target, e.target()); }; -oo[nr.NODE_SOURCE] = function(r, e) { +so[nr.NODE_SOURCE] = function(r, e) { return Ea(r.source, e) && e.outgoers().some(function(t) { return t.isNode() && Ea(r.target, t); }); }; -oo[nr.NODE_TARGET] = function(r, e) { +so[nr.NODE_TARGET] = function(r, e) { return Ea(r.target, e) && e.incomers().some(function(t) { return t.isNode() && Ea(r.source, t); }); }; -oo[nr.CHILD] = function(r, e) { +so[nr.CHILD] = function(r, e) { return Ea(r.child, e) && Ea(r.parent, e.parent()); }; -oo[nr.PARENT] = function(r, e) { +so[nr.PARENT] = function(r, e) { return Ea(r.parent, e) && e.children().some(function(t) { return Ea(r.child, t); }); }; -oo[nr.DESCENDANT] = function(r, e) { +so[nr.DESCENDANT] = function(r, e) { return Ea(r.descendant, e) && e.ancestors().some(function(t) { return Ea(r.ancestor, t); }); }; -oo[nr.ANCESTOR] = function(r, e) { +so[nr.ANCESTOR] = function(r, e) { return Ea(r.ancestor, e) && e.descendants().some(function(t) { return Ea(r.descendant, t); }); }; -oo[nr.COMPOUND_SPLIT] = function(r, e) { +so[nr.COMPOUND_SPLIT] = function(r, e) { return Ea(r.subject, e) && Ea(r.left, e) && Ea(r.right, e); }; -oo[nr.TRUE] = function() { +so[nr.TRUE] = function() { return !0; }; -oo[nr.COLLECTION] = function(r, e) { +so[nr.COLLECTION] = function(r, e) { var t = r.value; return t.has(e); }; -oo[nr.FILTER] = function(r, e) { +so[nr.FILTER] = function(r, e) { var t = r.value; return t(e); }; @@ -22903,7 +22903,7 @@ var jf = function(e, t) { return n(this.children()), this.spawn(t, !0).filter(e); } }; -function rD(r, e, t, n) { +function nD(r, e, t, n) { for (var i = [], a = new $m(), o = r.cy(), s = o.hasCompoundNodes(), u = 0; u < r.length; u++) { var l = r[u]; t ? i.push(l) : s && n(i, a, l); @@ -22923,7 +22923,7 @@ function DF(r, e, t) { } Fm.forEachDown = function(r) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return rD(this, r, e, DF); + return nD(this, r, e, DF); }; function kF(r, e, t) { if (t.isChild()) { @@ -22933,14 +22933,14 @@ function kF(r, e, t) { } Fm.forEachUp = function(r) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return rD(this, r, e, kF); + return nD(this, r, e, kF); }; function UQ(r, e, t) { kF(r, e, t), DF(r, e, t); } Fm.forEachUpAndDown = function(r) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return rD(this, r, e, UQ); + return nD(this, r, e, UQ); }; Fm.ancestors = Fm.parents; var w1, IF; @@ -23085,7 +23085,7 @@ var Cd, NF, LF = function(e, t, n) { a.isParent() && !(s.x === 0 && s.y === 0) && a.children().shift(s, n), a.dirtyBoundingBoxCache(); } } -}, zN = { +}, qN = { field: "position", bindingEvent: "position", allowBinding: !0, @@ -23109,9 +23109,9 @@ var Cd, NF, LF = function(e, t, n) { } }; Cd = NF = { - position: Ci.data(zN), + position: Ci.data(qN), // position but no notification to renderer - silentPosition: Ci.data(kr({}, zN, { + silentPosition: Ci.data(kr({}, qN, { allowBinding: !1, allowSetting: !0, settingTriggersEvent: !1, @@ -23406,7 +23406,7 @@ var If = function(e) { } return e; } -}, qN = function(e, t) { +}, GN = function(e, t) { if (!t.cy().headless()) { var n = t.pstyle("outline-opacity").value, i = t.pstyle("outline-width").value, a = t.pstyle("outline-offset").value, o = i + a; jF(e, t, n, o, "outside", o / 2); @@ -23439,7 +23439,7 @@ var If = function(e) { var k = e.position(); p = k.x, g = k.y; var L = e.outerWidth(), B = L / 2, j = e.outerHeight(), z = j / 2; - c = p - B, f = p + B, d = g - z, h = g + z, xd(o, c, d, f, h), i && qN(o, e), i && t.includeOutlines && !a && qN(o, e), i && GQ(o, e); + c = p - B, f = p + B, d = g - z, h = g + z, xd(o, c, d, f, h), i && GN(o, e), i && t.includeOutlines && !a && GN(o, e), i && GQ(o, e); } else if (l && t.includeEdges) if (i && !a) { var H = e.pstyle("curve-style").strValue; @@ -23496,9 +23496,9 @@ var If = function(e) { } } var ge = s.bodyBounds = s.bodyBounds || {}; - CI(ge, o), Kw(ge, b), $w(ge, 1), i && (c = o.x1, f = o.x2, d = o.y1, h = o.y2, xd(o, c - T, d - T, f + T, h + T)); + AI(ge, o), Kw(ge, b), $w(ge, 1), i && (c = o.x1, f = o.x2, d = o.y1, h = o.y2, xd(o, c - T, d - T, f + T, h + T)); var Oe = s.overlayBounds = s.overlayBounds || {}; - CI(Oe, o), Kw(Oe, b), $w(Oe, 1); + AI(Oe, o), Kw(Oe, b), $w(Oe, 1); var ke = s.labelBounds = s.labelBounds || {}; ke.all != null ? OK(ke.all) : ke.all = ql(), i && t.includeLabels && (t.includeMainLabels && DO(o, e, null), l && (t.includeSourceLabels && DO(o, e, "source"), t.includeTargetLabels && DO(o, e, "target"))); } @@ -23514,13 +23514,13 @@ var If = function(e) { }; if (e.isEdge()) { var n = e.source().position(), i = e.target().position(); - return wI([t(n.x), t(n.y), t(i.x), t(i.y)]); + return xI([t(n.x), t(n.y), t(i.x), t(i.y)]); } else { var a = e.position(); - return wI([t(a.x), t(a.y)]); + return xI([t(a.x), t(a.y)]); } -}, GN = function(e, t) { - var n = e._private, i, a = e.isEdge(), o = t == null ? VN : BF(t), s = o === VN; +}, VN = function(e, t) { + var n = e._private, i, a = e.isEdge(), o = t == null ? HN : BF(t), s = o === HN; if (n.bbCache == null ? (i = VQ(e, x1), n.bbCache = i, n.bbCachePosKey = FF(e)) : i = n.bbCache, !s) { var u = e.isNode(); i = ql(), (t.includeNodes && u || t.includeEdges && !u) && (t.includeOverlays ? cp(i, n.overlayBounds) : cp(i, n.bodyBounds)), t.includeLabels && (t.includeMainLabels && (!a || t.includeSourceLabels && t.includeTargetLabels) ? cp(i, n.labelBounds.all) : (t.includeMainLabels && cp(i, n.labelBounds.mainRot), t.includeSourceLabels && cp(i, n.labelBounds.sourceRot), t.includeTargetLabels && cp(i, n.labelBounds.targetRot))), i.w = i.x2 - i.x1, i.h = i.y2 - i.y1; @@ -23537,7 +23537,7 @@ var If = function(e) { includeUnderlays: !0, includeOutlines: !0, useCache: !0 -}, VN = BF(x1), HN = du(x1); +}, HN = BF(x1), WN = du(x1); Gp.boundingBox = function(r) { var e, t = r === void 0 || r.useCache === void 0 || r.useCache === !0, n = jm(function(c) { var f = c._private; @@ -23546,14 +23546,14 @@ Gp.boundingBox = function(r) { return c.id(); }); if (t && this.length === 1 && !n(this[0])) - r === void 0 ? r = x1 : r = HN(r), e = GN(this[0], r); + r === void 0 ? r = x1 : r = WN(r), e = VN(this[0], r); else { e = ql(), r = r || x1; - var i = HN(r), a = this, o = a.cy(), s = o.styleEnabled(); + var i = WN(r), a = this, o = a.cy(), s = o.styleEnabled(); this.edges().forEach(n), this.nodes().forEach(n), s && this.recalculateRenderedStyle(t), this.updateCompoundBounds(!t); for (var u = 0; u < a.length; u++) { var l = a[u]; - n(l) && l.dirtyBoundingBoxCache(), cp(e, GN(l, i)); + n(l) && l.dirtyBoundingBoxCache(), cp(e, VN(l, i)); } } return e.x1 = If(e.x1), e.y1 = If(e.y1), e.x2 = If(e.x2), e.y2 = If(e.y2), e.w = If(e.x2 - e.x1), e.h = If(e.y2 - e.y1), e; @@ -23591,7 +23591,7 @@ Sm.renderedBoundingbox = Sm.renderedBoundingBox; var HQ = Gp, hb, Z1; hb = Z1 = {}; var UF = function(e) { - e.uppercaseName = oI(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = oI(e.outerName), hb[e.name] = function() { + e.uppercaseName = sI(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = sI(e.outerName), hb[e.name] = function() { var n = this[0], i = n._private, a = i.cy, o = a._private.styleEnabled; if (n) if (o) { @@ -23673,7 +23673,7 @@ var WQ = Z1, YQ = function(e, t) { return e.renderer().getTargetEndpoint(e); }, eJ = function(e) { return e.renderer().getEdgeMidpoint(e); -}, WN = { +}, YN = { controlPoints: { get: KQ, mult: !0 @@ -23693,8 +23693,8 @@ var WQ = Z1, YQ = function(e, t) { } }, tJ = function(e) { return "rendered" + e[0].toUpperCase() + e.substr(1); -}, rJ = Object.keys(WN).reduce(function(r, e) { - var t = WN[e], n = tJ(e); +}, rJ = Object.keys(YN).reduce(function(r, e) { + var t = YN[e], n = tJ(e); return r[e] = function() { return YQ(this, t.get); }, t.mult ? r[n] = function() { @@ -23773,10 +23773,10 @@ var qF = /^([^.]+)(\.(?:[^.]+))?$/, iJ = ".*", GF = { return null; }, context: null -}, YN = Object.keys(GF), aJ = {}; +}, XN = Object.keys(GF), aJ = {}; function j2() { - for (var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : aJ, e = arguments.length > 1 ? arguments[1] : void 0, t = 0; t < YN.length; t++) { - var n = YN[t]; + for (var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : aJ, e = arguments.length > 1 ? arguments[1] : void 0, t = 0; t < XN.length; t++) { + var n = XN[t]; this[n] = r[n] || GF[n]; } this.context = e || this.context, this.listeners = [], this.emitting = 0; @@ -23794,14 +23794,14 @@ var Ip = j2.prototype, VF = function(e, t, n, i, a, o, s) { } } } -}, XN = function(e, t) { +}, $N = function(e, t) { return e.addEventFields(e.context, t), new zF(t.type, t); }, oJ = function(e, t, n) { if (d$(n)) { t(e, n); return; } else if (ai(n)) { - t(e, XN(e, n)); + t(e, $N(e, n)); return; } for (var i = ra(n) ? n : n.split(/\s+/), a = 0; a < i.length; a++) { @@ -23809,7 +23809,7 @@ var Ip = j2.prototype, VF = function(e, t, n, i, a, o, s) { if (!Rp(o)) { var s = o.match(qF); if (s) { - var u = s[1], l = s[2] ? s[2] : null, c = XN(e, { + var u = s[1], l = s[2] ? s[2] : null, c = $N(e, { type: u, namespace: l, target: e.context @@ -24194,7 +24194,7 @@ var uJ = { var n = e.cy(), i = n.hasCompoundNodes(); function a(c) { var f = c.pstyle("z-compound-depth"); - return f.value === "auto" ? i ? c.zDepth() : 0 : f.value === "bottom" ? -1 : f.value === "top" ? H5 : 0; + return f.value === "auto" ? i ? c.zDepth() : 0 : f.value === "bottom" ? -1 : f.value === "top" ? W5 : 0; } var o = a(e) - a(t); if (o !== 0) @@ -24263,7 +24263,7 @@ var uJ = { var t = e._private, n = t.group; if (n === "nodes") { var i = t.data.parent ? e.parents().size() : 0; - return e.isParent() ? i : H5 - 1; + return e.isParent() ? i : W5 - 1; } else { var a = t.source, o = t.target, s = a.zDepth(), u = o.zDepth(); return Math.max(s, u, 0); @@ -24601,7 +24601,7 @@ function kO(r, e) { } return !0; } -function nD(r) { +function iD(r) { var e = r.ok, t = r.edgeOkViaNode || r.ok, n = r.parentOk || r.ok; return function() { var i = this.cy(); @@ -24622,7 +24622,7 @@ function nD(r) { var Zm = B2("eleTakesUpSpace", function(r) { return r.pstyle("display").value === "element" && r.width() !== 0 && (r.isNode() ? r.height() !== 0 : !0); }); -uu.takesUpSpace = F2("takesUpSpace", nD({ +uu.takesUpSpace = F2("takesUpSpace", iD({ ok: Zm })); var fJ = B2("eleInteractive", function(r) { @@ -24630,7 +24630,7 @@ var fJ = B2("eleInteractive", function(r) { }), dJ = B2("parentInteractive", function(r) { return r.pstyle("visibility").value === "visible" && Zm(r); }); -uu.interactive = F2("interactive", nD({ +uu.interactive = F2("interactive", iD({ ok: fJ, parentOk: dJ, edgeOkViaNode: Zm @@ -24643,7 +24643,7 @@ uu.noninteractive = function() { var hJ = B2("eleVisible", function(r) { return r.pstyle("visibility").value === "visible" && r.pstyle("opacity").pfValue !== 0 && Zm(r); }), vJ = Zm; -uu.visible = F2("visible", nD({ +uu.visible = F2("visible", iD({ ok: hJ, edgeOkViaNode: vJ })); @@ -24660,7 +24660,7 @@ uu.renderedCss = uu.renderedStyle; uu.removeBypass = uu.removeCss = uu.removeStyle; uu.pstyle = uu.parsedStyle; var Ep = {}; -function $N(r) { +function KN(r) { return function() { var e = arguments, t = []; if (e.length === 2) { @@ -24696,13 +24696,13 @@ function Qm(r) { } return e._private[r.field]; } - }, Ep[r.on] = $N({ + }, Ep[r.on] = KN({ event: r.on, field: r.field, ableField: r.ableField, overrideAble: r.overrideAble, value: !0 - }), Ep[r.off] = $N({ + }), Ep[r.off] = KN({ event: r.off, field: r.field, ableField: r.ableField, @@ -24764,7 +24764,7 @@ Ep.inactive = function() { if (r) return !r._private.active; }; -var Ku = {}, KN = function(e) { +var Ku = {}, ZN = function(e) { return function(n) { for (var i = this, a = [], o = 0; o < i.length; o++) { var s = i[o]; @@ -24781,7 +24781,7 @@ var Ku = {}, KN = function(e) { } return this.spawn(a, !0).filter(n); }; -}, ZN = function(e) { +}, QN = function(e) { return function(t) { for (var n = this, i = [], a = 0; a < n.length; a++) { var o = n[a]; @@ -24793,7 +24793,7 @@ var Ku = {}, KN = function(e) { } return this.spawn(i, !0).filter(t); }; -}, QN = function(e) { +}, JN = function(e) { return function(t) { for (var n = this, i = [], a = {}; ; ) { var o = e.outgoing ? n.outgoers() : n.incomers(); @@ -24816,29 +24816,29 @@ Ku.clearTraversalCache = function() { }; kr(Ku, { // get the root nodes in the DAG - roots: KN({ + roots: ZN({ noIncomingEdges: !0 }), // get the leaf nodes in the DAG - leaves: KN({ + leaves: ZN({ noOutgoingEdges: !0 }), // normally called children in graph theory // these nodes =edges=> outgoing nodes - outgoers: jf(ZN({ + outgoers: jf(QN({ outgoing: !0 }), "outgoers"), // aka DAG descendants - successors: QN({ + successors: JN({ outgoing: !0 }), // normally called parents in graph theory // these nodes <=edges= incoming nodes - incomers: jf(ZN({ + incomers: jf(QN({ incoming: !0 }), "incomers"), // aka DAG ancestors - predecessors: QN({}) + predecessors: JN({}) }); kr(Ku, { neighborhood: jf(function(r) { @@ -24868,14 +24868,14 @@ kr(Ku, { var t = this[0], n; return t && (n = t._private.target || t.cy().collection()), n && e ? n.filter(e) : n; }, "target"), - sources: JN({ + sources: e3({ attr: "source" }), - targets: JN({ + targets: e3({ attr: "target" }) }); -function JN(r) { +function e3(r) { return function(t) { for (var n = [], i = 0; i < this.length; i++) { var a = this[i], o = a._private[r.attr]; @@ -24885,12 +24885,12 @@ function JN(r) { }; } kr(Ku, { - edgesWith: jf(e3(), "edgesWith"), - edgesTo: jf(e3({ + edgesWith: jf(t3(), "edgesWith"), + edgesTo: jf(t3({ thisIsSrc: !0 }), "edgesTo") }); -function e3(r) { +function t3(r) { return function(t) { var n = [], i = this._private.cy, a = r || {}; Ar(t) && (t = i.$(t)); @@ -24921,12 +24921,12 @@ kr(Ku, { } return this.spawn(e, !0).filter(r); }, "connectedNodes"), - parallelEdges: jf(t3(), "parallelEdges"), - codirectedEdges: jf(t3({ + parallelEdges: jf(r3(), "parallelEdges"), + codirectedEdges: jf(r3({ codirected: !0 }), "codirectedEdges") }); -function t3(r) { +function r3(r) { var e = { codirected: !1 }; @@ -25530,26 +25530,26 @@ var yJ = /* @__PURE__ */ (function() { }, "cubic-bezier": fa }; -function r3(r, e, t, n, i) { +function n3(r, e, t, n, i) { if (n === 1 || e === t) return t; var a = i(e, t, n); return r == null || ((r.roundValue || r.color) && (a = Math.round(a)), r.min !== void 0 && (a = Math.max(a, r.min)), r.max !== void 0 && (a = Math.min(a, r.max))), a; } -function n3(r, e) { +function i3(r, e) { return r.pfValue != null || r.value != null ? r.pfValue != null && (e == null || e.type.units !== "%") ? r.pfValue : r.value : r; } function Zy(r, e, t, n, i) { var a = i != null ? i.type : null; t < 0 ? t = 0 : t > 1 && (t = 1); - var o = n3(r, i), s = n3(e, i); + var o = i3(r, i), s = i3(e, i); if (Ht(o) && Ht(s)) - return r3(a, o, s, t, n); + return n3(a, o, s, t, n); if (ra(o) && ra(s)) { for (var u = [], l = 0; l < s.length; l++) { var c = o[l], f = s[l]; if (c != null && f != null) { - var d = r3(a, c, f, t, n); + var d = n3(a, c, f, t, n); u.push(d); } else u.push(f); @@ -25603,7 +25603,7 @@ function bJ(r, e, t, n) { var i = e._private; i.started = !0, i.startTime = t - i.progress * i.duration; } -function i3(r, e) { +function a3(r, e) { var t = e._private.aniEles, n = []; function i(c, f) { var d = c._private, h = d.animation.current, p = d.animation.queue, g = !1; @@ -25656,12 +25656,12 @@ var _J = { return; function t() { e._private.animationsRunning && Mx(function(a) { - i3(a, e), t(); + a3(a, e), t(); }); } var n = e.renderer(); n && n.beforeRender ? n.beforeRender(function(a, o) { - i3(o, e); + a3(o, e); }, n.beforeRenderPriorities.animations) : t(); } }, wJ = { @@ -25711,7 +25711,7 @@ var _J = { } }; Ci.eventAliasesOn($F); -var yM = { +var mM = { png: function(e) { var t = this._private.renderer; return e = e || {}, t.png(e); @@ -25721,7 +25721,7 @@ var yM = { return e = e || {}, e.bg = e.bg || "#fff", t.jpg(e); } }; -yM.jpeg = yM.jpg; +mM.jpeg = mM.jpg; var ex = { layout: function(e) { var t = this; @@ -25825,7 +25825,7 @@ var xJ = { webglBatchSize: 2048, webglTexPerBatch: 14, webglBgColor: [255, 255, 255] -}), mM = { +}), bM = { renderTo: function(e, t, n, i) { var a = this._private.renderer; return a.renderTo(e, t, n, i), this; @@ -25868,7 +25868,7 @@ var xJ = { return this.off("render", e); } }; -mM.invalidateDimensions = mM.resize; +bM.invalidateDimensions = bM.resize; var tx = { // get a collection // - empty collection on no args @@ -26260,7 +26260,7 @@ Q1.applyBypass = function(r, e, t, n) { return _; }; Q1.overrideBypass = function(r, e, t) { - e = G5(e); + e = V5(e); for (var n = 0; n < r.length; n++) { var i = r[n], a = i._private.style[e], o = this.properties[e].type, s = o.color, u = o.mutiple, l = a ? a.pfValue != null ? a.pfValue : a.value : null; !a || !a.bypass ? this.applyBypass(i, e, t) : (a.value = t, a.pfValue != null && (a.pfValue = t), s ? a.strValue = "rgb(" + t.join(",") + ")" : u ? a.strValue = t.join(" ") : a.strValue = "" + t, this.updateStyleHints(i)), this.checkTriggers(i, e, l, t); @@ -26283,12 +26283,12 @@ Q1.removeBypasses = function(r, e, t) { this.updateStyleHints(a), t && this.updateTransitions(a, o, n); } }; -var iD = {}; -iD.getEmSizeInPixels = function() { +var aD = {}; +aD.getEmSizeInPixels = function() { var r = this.containerCss("font-size"); return r != null ? parseFloat(r) : 1; }; -iD.containerCss = function(r) { +aD.containerCss = function(r) { var e = this._private.cy, t = e.container(), n = e.window(); if (n && t && n.getComputedStyle) return n.getComputedStyle(t).getPropertyValue(r); @@ -26349,7 +26349,7 @@ wh.getPropsList = function(r) { var e = this, t = [], n = r, i = e.properties; if (n) for (var a = Object.keys(n), o = 0; o < a.length; o++) { - var s = a[o], u = n[s], l = i[s] || i[G5(s)], c = this.parse(l.name, u); + var s = a[o], u = n[s], l = i[s] || i[V5(s)], c = this.parse(l.name, u); c && t.push(c); } return t; @@ -26395,8 +26395,8 @@ U2.json = function() { } return r; }; -var aD = {}; -aD.appendFromString = function(r) { +var oD = {}; +oD.appendFromString = function(r) { var e = this, t = this, n = "" + r, i, a, o; n = n.replace(/[/][*](\s|.)+?[*][/]/g, ""); function s() { @@ -26463,11 +26463,11 @@ aD.appendFromString = function(r) { } return t; }; -aD.fromString = function(r) { +oD.fromString = function(r) { var e = this; return e.resetToDefault(), e.appendFromString(r), e; }; -var Fo = {}; +var Uo = {}; (function() { var r = ls, e = m$, t = _$, n = w$, i = x$, a = function(de) { return "^" + de + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"; @@ -26475,7 +26475,7 @@ var Fo = {}; var ge = r + "|\\w+|" + e + "|" + t + "|" + n + "|" + i; return "^" + de + "\\s*\\(([\\w\\.]+)\\s*\\,\\s*(" + r + ")\\s*\\,\\s*(" + r + ")\\s*,\\s*(" + ge + ")\\s*\\,\\s*(" + ge + ")\\)$"; }, s = [`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`, "^(none)$", "^(.+)$"]; - Fo.types = { + Uo.types = { time: { number: !0, min: 0, @@ -26861,7 +26861,7 @@ var Fo = {}; var Oe = Rp(de), ke = Rp(ge); return Oe && !ke || !Oe && ke; } - }, l = Fo.types, c = [{ + }, l = Uo.types, c = [{ name: "label", type: l.text, triggersBounds: u.any, @@ -27450,7 +27450,7 @@ var Fo = {}; name: "outside-texture-bg-opacity", type: l.zeroOneNumber }], B = []; - Fo.pieBackgroundN = 16, B.push({ + Uo.pieBackgroundN = 16, B.push({ name: "pie-size", type: l.sizeMaybePercent }), B.push({ @@ -27460,7 +27460,7 @@ var Fo = {}; name: "pie-start-angle", type: l.angle }); - for (var j = 1; j <= Fo.pieBackgroundN; j++) + for (var j = 1; j <= Uo.pieBackgroundN; j++) B.push({ name: "pie-" + j + "-background-color", type: l.color @@ -27472,14 +27472,14 @@ var Fo = {}; type: l.zeroOneNumber }); var z = []; - Fo.stripeBackgroundN = 16, z.push({ + Uo.stripeBackgroundN = 16, z.push({ name: "stripe-size", type: l.sizeMaybePercent }), z.push({ name: "stripe-direction", type: l.axisDirectionPrimary }); - for (var H = 1; H <= Fo.stripeBackgroundN; H++) + for (var H = 1; H <= Uo.stripeBackgroundN; H++) z.push({ name: "stripe-" + H + "-background-color", type: l.color @@ -27490,7 +27490,7 @@ var Fo = {}; name: "stripe-" + H + "-background-opacity", type: l.zeroOneNumber }); - var q = [], W = Fo.arrowPrefixes = ["source", "mid-source", "target", "mid-target"]; + var q = [], W = Uo.arrowPrefixes = ["source", "mid-source", "target", "mid-target"]; [{ name: "arrow-shape", type: l.arrowShape, @@ -27514,7 +27514,7 @@ var Fo = {}; }); }); }, {}); - var $ = Fo.properties = [].concat(g, m, y, b, _, k, p, h, c, f, d, E, O, S, T, B, z, P, I, q, L), J = Fo.propertyGroups = { + var $ = Uo.properties = [].concat(g, m, y, b, _, k, p, h, c, f, d, E, O, S, T, B, z, P, I, q, L), J = Uo.propertyGroups = { // common to all eles behavior: g, transition: m, @@ -27540,7 +27540,7 @@ var Fo = {}; edgeLine: I, edgeArrow: q, core: L - }, X = Fo.propertyGroupNames = {}, Z = Fo.propertyGroupKeys = Object.keys(J); + }, X = Uo.propertyGroupNames = {}, Z = Uo.propertyGroupKeys = Object.keys(J); Z.forEach(function(se) { X[se] = J[se].map(function(de) { return de.name; @@ -27548,7 +27548,7 @@ var Fo = {}; return de.groupKey = se; }); }); - var ue = Fo.aliases = [{ + var ue = Uo.aliases = [{ name: "content", pointsTo: "label" }, { @@ -27582,7 +27582,7 @@ var Fo = {}; name: "padding-bottom", pointsTo: "padding" }]; - Fo.propertyNames = $.map(function(se) { + Uo.propertyNames = $.map(function(se) { return se.name; }); for (var re = 0; re < $.length; re++) { @@ -27598,10 +27598,10 @@ var Fo = {}; $.push(fe), $[ce.name] = fe; } })(); -Fo.getDefaultProperty = function(r) { +Uo.getDefaultProperty = function(r) { return this.getDefaultProperties()[r]; }; -Fo.getDefaultProperties = function() { +Uo.getDefaultProperties = function() { var r = this._private; if (r.defaultProperties != null) return r.defaultProperties; @@ -27758,7 +27758,7 @@ Fo.getDefaultProperties = function() { name: "pie-{{i}}-background-opacity", value: 1 }].reduce(function(u, l) { - for (var c = 1; c <= Fo.pieBackgroundN; c++) { + for (var c = 1; c <= Uo.pieBackgroundN; c++) { var f = l.name.replace("{{i}}", c), d = l.value; u[f] = d; } @@ -27777,7 +27777,7 @@ Fo.getDefaultProperties = function() { name: "stripe-{{i}}-background-opacity", value: 1 }].reduce(function(u, l) { - for (var c = 1; c <= Fo.stripeBackgroundN; c++) { + for (var c = 1; c <= Uo.stripeBackgroundN; c++) { var f = l.name.replace("{{i}}", c), d = l.value; u[f] = d; } @@ -27828,7 +27828,7 @@ Fo.getDefaultProperties = function() { name: "arrow-width", value: 1 }].reduce(function(u, l) { - return Fo.arrowPrefixes.forEach(function(c) { + return Uo.arrowPrefixes.forEach(function(c) { var f = c + "-" + l.name, d = l.value; u[f] = d; }), u; @@ -27841,7 +27841,7 @@ Fo.getDefaultProperties = function() { } return r.defaultProperties = t, r.defaultProperties; }; -Fo.addDefaultStylesheet = function() { +Uo.addDefaultStylesheet = function() { this.selector(":parent").css({ shape: "rectangle", padding: 10, @@ -27886,7 +27886,7 @@ z2.parseImplWarn = function(r, e, t, n) { }; z2.parseImpl = function(r, e, t, n) { var i = this; - r = G5(r); + r = V5(r); var a = i.properties[r], o = e, s = i.types; if (!a || e === void 0) return null; @@ -28071,7 +28071,7 @@ z2.parseImpl = function(r, e, t, n) { var js = function(e) { if (!(this instanceof js)) return new js(e); - if (!q5(e)) { + if (!G5(e)) { Ia("A style must have a core reference"); return; } @@ -28137,7 +28137,7 @@ js.fromJson = function(r, e) { js.fromString = function(r, e) { return new js(r).fromString(e); }; -[Bs, Q1, iD, wh, U2, aD, Fo, z2].forEach(function(r) { +[Bs, Q1, aD, wh, U2, oD, Uo, z2].forEach(function(r) { kr(Zu, r); }); js.types = Zu.types; @@ -28725,7 +28725,7 @@ kr(jx, { } }); jx.$id = jx.getElementById; -[pJ, _J, $F, yM, ex, xJ, mM, tx, OJ, Xg, E1].forEach(function(r) { +[pJ, _J, $F, mM, ex, xJ, bM, tx, OJ, Xg, E1].forEach(function(r) { kr(jx, r); }); var CJ = { @@ -28778,7 +28778,7 @@ var CJ = { // whether the tree is acyclic and thus a node could be shifted (due to the maximal option) multiple times without causing an infinite loop; setting to true sets maximal to true also; if you are uncertain whether a tree is acyclic, set to false to avoid potential infinite loops }, Qy = function(e) { return e.scratch("breadthfirst"); -}, a3 = function(e, t) { +}, o3 = function(e, t) { return e.scratch("breadthfirst", t); }; function KF(r) { @@ -28814,7 +28814,7 @@ KF.prototype.run = function() { var b = [], _ = {}, m = function(ie, we) { b[we] == null && (b[we] = []); var Ee = b[we].length; - b[we].push(ie), a3(ie, { + b[we].push(ie), o3(ie, { index: Ee, depth: we }); @@ -28841,7 +28841,7 @@ KF.prototype.run = function() { we.splice(Ee, 1), Ee--; continue; } - a3(Me, { + o3(Me, { depth: ie, index: Ee }); @@ -29284,7 +29284,7 @@ q2.prototype.run = function() { for (var d = 0; l && d < r.refresh; ) l = o(u), u++, d++; if (!l) - s3(n, r), s(); + u3(n, r), s(); else { var h = vv(); h - i >= r.animationThreshold && a(), Mx(c); @@ -29294,7 +29294,7 @@ q2.prototype.run = function() { } else { for (; l; ) l = o(u), u++; - s3(n, r), s(); + u3(n, r), s(); } return this; }; @@ -29433,13 +29433,13 @@ var DJ = function(e, t, n) { var l = e.layoutNodes[e.idToIndex[i[u]]]; FJ(s, l, e, t); } -}, o3 = function(e) { +}, s3 = function(e) { return -1 + 2 * e * Math.random(); }, FJ = function(e, t, n, i) { var a = e.cmptId, o = t.cmptId; if (!(a !== o && !n.isCompound)) { var s = t.positionX - e.positionX, u = t.positionY - e.positionY, l = 1; - s === 0 && u === 0 && (s = o3(l), u = o3(l)); + s === 0 && u === 0 && (s = s3(l), u = s3(l)); var c = UJ(e, t, s, u); if (c > 0) var f = i.nodeOverlap * c, d = Math.sqrt(s * s + u * u), h = f * s / d, p = f * u / d; @@ -29539,7 +29539,7 @@ var DJ = function(e, t, n) { if ((i.maxX == null || e.maxX + i.padRight > i.maxX) && (i.maxX = e.maxX + i.padRight, a = !0), (i.minX == null || e.minX - i.padLeft < i.minX) && (i.minX = e.minX - i.padLeft, a = !0), (i.maxY == null || e.maxY + i.padBottom > i.maxY) && (i.maxY = e.maxY + i.padBottom, a = !0), (i.minY == null || e.minY - i.padTop < i.minY) && (i.minY = e.minY - i.padTop, a = !0), a) return tU(i, t); } -}, s3 = function(e, t) { +}, u3 = function(e, t) { for (var n = e.layoutNodes, i = [], a = 0; a < n.length; a++) { var o = n[a], s = o.cmptId, u = i[s] = i[s] || []; u.push(o); @@ -29717,10 +29717,10 @@ var YJ = { } // on layoutstop }; -function oD(r) { +function sD(r) { this.options = kr({}, YJ, r); } -oD.prototype.run = function() { +sD.prototype.run = function() { var r = this.options, e = r.eles, t = this; return r.cy, t.emit("layoutstart"), e.nodes().positions(function() { return { @@ -29729,7 +29729,7 @@ oD.prototype.run = function() { }; }), t.one("layoutready", r.ready), t.emit("layoutready"), t.one("layoutstop", r.stop), t.emit("layoutstop"), this; }; -oD.prototype.stop = function() { +sD.prototype.stop = function() { return this; }; var XJ = { @@ -29842,7 +29842,7 @@ var KJ = [{ impl: rU }, { name: "null", - impl: oD + impl: sD }, { name: "preset", impl: nU @@ -29853,25 +29853,25 @@ var KJ = [{ function aU(r) { this.options = r, this.notifications = 0; } -var u3 = function() { -}, l3 = function() { +var l3 = function() { +}, c3 = function() { throw new Error("A headless instance can not render images"); }; aU.prototype = { - recalculateRenderedStyle: u3, + recalculateRenderedStyle: l3, notify: function() { this.notifications++; }, - init: u3, + init: l3, isHeadless: function() { return !0; }, - png: l3, - jpg: l3 + png: c3, + jpg: c3 }; -var sD = {}; -sD.arrowShapeWidth = 0.3; -sD.registerArrowShapes = function() { +var uD = {}; +uD.arrowShapeWidth = 0.3; +uD.registerArrowShapes = function() { var r = this.arrowShapes = {}, e = this, t = function(l, c, f, d, h, p, g) { var y = h.x - f / 2 - g, b = h.x + f / 2 + g, _ = h.y - f / 2 - g, m = h.y + f / 2 + g, x = y <= l && l <= b && _ <= c && c <= m; return x; @@ -29917,9 +29917,9 @@ sD.registerArrowShapes = function() { s("none", { collide: Dx, roughCollide: Dx, - draw: W5, - spacing: EI, - gap: EI + draw: Y5, + spacing: SI, + gap: SI }), s("triangle", { points: [-0.15, -0.3, 0, 0, 0.15, -0.3] }), s("arrow", "triangle"), s("triangle-backcurve", { @@ -30241,7 +30241,7 @@ ry.getAllInBox = function(r, e, t, n) { k && DS(k, h) && (s.push(x), I = !0); } !I && dF(d, P) && s.push(x); - } else if (O === "overlap" && K5(d, P)) { + } else if (O === "overlap" && Z5(d, P)) { var L = x.boundingBox({ includeNodes: !0, includeEdges: !0, @@ -30278,7 +30278,7 @@ ry.getAllInBox = function(r, e, t, n) { continue; if (q.edgeType === "bezier" || q.edgeType === "multibezier" || q.edgeType === "self" || q.edgeType === "compound" || q.edgeType === "segments" || q.edgeType === "haystack") { for (var $ = H.rstyle.bezierPts || H.rstyle.linePts || H.rstyle.haystackPts, J = !0, X = 0; X < $.length; X++) - if (!AI(d, $[X])) { + if (!RI(d, $[X])) { J = !1; break; } @@ -30290,7 +30290,7 @@ ry.getAllInBox = function(r, e, t, n) { s.push(z), Z = !0; else if (!Z && q.edgeType === "haystack") { for (var ue = H.rstyle.haystackPts, re = 0; re < ue.length; re++) - if (AI(d, ue[re])) { + if (RI(d, ue[re])) { s.push(z), Z = !0; break; } @@ -30306,7 +30306,7 @@ ry.getAllInBox = function(r, e, t, n) { }]), !ne || ne.length < 2) continue; for (var le = 0; le < ne.length - 1; le++) { for (var ce = ne[le], pe = ne[le + 1], fe = 0; fe < p.length; fe++) { - var se = Uo(p[fe], 2), de = se[0], ge = se[1]; + var se = zo(p[fe], 2), de = se[0], ge = se[1]; if (b(ce, pe, de, ge)) { s.push(z), Z = !0; break; @@ -30376,21 +30376,21 @@ Fx.getArrowWidth = Fx.getArrowHeight = function(r, e) { var t = this.arrowWidthCache = this.arrowWidthCache || {}, n = t[r + ", " + e]; return n || (n = Math.max(Math.pow(r * 13.37, 0.9), 29) * e, t[r + ", " + e] = n, n); }; -var bM, _M, ph = {}, Df = {}, c3, f3, Ng, rx, tv, Eg, Ag, sh, Jy, _w, oU, sU, wM, xM, d3, h3 = function(e, t, n) { +var _M, wM, ph = {}, Df = {}, f3, d3, Ng, rx, tv, Eg, Ag, sh, Jy, _w, oU, sU, xM, EM, h3, v3 = function(e, t, n) { n.x = t.x - e.x, n.y = t.y - e.y, n.len = Math.sqrt(n.x * n.x + n.y * n.y), n.nx = n.x / n.len, n.ny = n.y / n.len, n.ang = Math.atan2(n.ny, n.nx); }, ZJ = function(e, t) { t.x = e.x * -1, t.y = e.y * -1, t.nx = e.nx * -1, t.ny = e.ny * -1, t.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang; }, QJ = function(e, t, n, i, a) { - if (e !== d3 ? h3(t, e, ph) : ZJ(Df, ph), h3(t, n, Df), c3 = ph.nx * Df.ny - ph.ny * Df.nx, f3 = ph.nx * Df.nx - ph.ny * -Df.ny, tv = Math.asin(Math.max(-1, Math.min(1, c3))), Math.abs(tv) < 1e-6) { - bM = t.x, _M = t.y, Ag = Jy = 0; + if (e !== h3 ? v3(t, e, ph) : ZJ(Df, ph), v3(t, n, Df), f3 = ph.nx * Df.ny - ph.ny * Df.nx, d3 = ph.nx * Df.nx - ph.ny * -Df.ny, tv = Math.asin(Math.max(-1, Math.min(1, f3))), Math.abs(tv) < 1e-6) { + _M = t.x, wM = t.y, Ag = Jy = 0; return; } - Ng = 1, rx = !1, f3 < 0 ? tv < 0 ? tv = Math.PI + tv : (tv = Math.PI - tv, Ng = -1, rx = !0) : tv > 0 && (Ng = -1, rx = !0), t.radius !== void 0 ? Jy = t.radius : Jy = i, Eg = tv / 2, _w = Math.min(ph.len / 2, Df.len / 2), a ? (sh = Math.abs(Math.cos(Eg) * Jy / Math.sin(Eg)), sh > _w ? (sh = _w, Ag = Math.abs(sh * Math.sin(Eg) / Math.cos(Eg))) : Ag = Jy) : (sh = Math.min(_w, Jy), Ag = Math.abs(sh * Math.sin(Eg) / Math.cos(Eg))), wM = t.x + Df.nx * sh, xM = t.y + Df.ny * sh, bM = wM - Df.ny * Ag * Ng, _M = xM + Df.nx * Ag * Ng, oU = t.x + ph.nx * sh, sU = t.y + ph.ny * sh, d3 = t; + Ng = 1, rx = !1, d3 < 0 ? tv < 0 ? tv = Math.PI + tv : (tv = Math.PI - tv, Ng = -1, rx = !0) : tv > 0 && (Ng = -1, rx = !0), t.radius !== void 0 ? Jy = t.radius : Jy = i, Eg = tv / 2, _w = Math.min(ph.len / 2, Df.len / 2), a ? (sh = Math.abs(Math.cos(Eg) * Jy / Math.sin(Eg)), sh > _w ? (sh = _w, Ag = Math.abs(sh * Math.sin(Eg) / Math.cos(Eg))) : Ag = Jy) : (sh = Math.min(_w, Jy), Ag = Math.abs(sh * Math.sin(Eg) / Math.cos(Eg))), xM = t.x + Df.nx * sh, EM = t.y + Df.ny * sh, _M = xM - Df.ny * Ag * Ng, wM = EM + Df.nx * Ag * Ng, oU = t.x + ph.nx * sh, sU = t.y + ph.ny * sh, h3 = t; }; function uU(r, e) { e.radius === 0 ? r.lineTo(e.cx, e.cy) : r.arc(e.cx, e.cy, e.radius, e.startAngle, e.endAngle, e.counterClockwise); } -function uD(r, e, t, n) { +function lD(r, e, t, n) { var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0; return n === 0 || e.radius === 0 ? { cx: e.x, @@ -30404,13 +30404,13 @@ function uD(r, e, t, n) { endAngle: void 0, counterClockwise: void 0 } : (QJ(r, e, t, n, i), { - cx: bM, - cy: _M, + cx: _M, + cy: wM, radius: Ag, startX: oU, startY: sU, - stopX: wM, - stopY: xM, + stopX: xM, + stopY: EM, startAngle: ph.ang + Math.PI / 2 * Ng, endAngle: Df.ang - Math.PI / 2 * Ng, counterClockwise: rx @@ -30434,7 +30434,7 @@ Qu.findMidptPtsEtc = function(r, e) { break; case "endpoints": { if (u) { - var f = this.manualEndptToPx(r.source()[0], o), d = Uo(f, 2), h = d[0], p = d[1], g = this.manualEndptToPx(r.target()[0], s), y = Uo(g, 2), b = y[0], _ = y[1], m = { + var f = this.manualEndptToPx(r.source()[0], o), d = zo(f, 2), h = d[0], p = d[1], g = this.manualEndptToPx(r.target()[0], s), y = zo(g, 2), b = y[0], _ = y[1], m = { x1: h, y1: p, x2: b, @@ -30511,7 +30511,7 @@ Qu.findBezierPoints = function(r, e, t, n, i) { var a = r._private.rscratch, o = r.pstyle("control-point-step-size").pfValue, s = r.pstyle("control-point-distances"), u = r.pstyle("control-point-weights"), l = s && u ? Math.min(s.value.length, u.value.length) : 1, c = s ? s.pfValue[0] : void 0, f = u.value[0], d = n; a.edgeType = d ? "multibezier" : "bezier", a.ctrlpts = []; for (var h = 0; h < l; h++) { - var p = (0.5 - e.eles.length / 2 + t) * o * (i ? -1 : 1), g = void 0, y = $5(p); + var p = (0.5 - e.eles.length / 2 + t) * o * (i ? -1 : 1), g = void 0, y = K5(p); d && (c = s ? s.pfValue[h] : o, f = u.value[h]), n ? g = c : g = c !== void 0 ? y * c : void 0; var b = g !== void 0 ? g : p, _ = 1 - f, m = f, x = this.findMidptPtsEtc(r, e), E = x.midptPts, O = x.vectorNormInverse, S = { x: E.x1 * _ + E.x2 * m, @@ -30527,7 +30527,7 @@ Qu.findTaxiPoints = function(r, e) { return _e > 0 ? Math.max(_e - Ue, 0) : Math.min(_e + Ue, 0); }, B = L(I, T), j = L(k, P), z = !1; _ === l ? b = Math.abs(B) > Math.abs(j) ? i : n : _ === u || _ === s ? (b = n, z = !0) : (_ === a || _ === o) && (b = i, z = !0); - var H = b === n, q = H ? j : B, W = H ? k : I, $ = $5(W), J = !1; + var H = b === n, q = H ? j : B, W = H ? k : I, $ = K5(W), J = !1; !(z && (x || O)) && (_ === s && W < 0 || _ === u && W > 0 || _ === a && W > 0 || _ === o && W < 0) && ($ *= -1, q = $ * Math.abs(q), J = !0); var X; if (x) { @@ -30643,7 +30643,7 @@ Qu.storeAllpts = function(r) { e.roundCorners = []; for (var a = 2; a + 3 < e.allpts.length; a += 2) { var o = e.radii[a / 2 - 1], s = e.isArcRadius[a / 2 - 1]; - e.roundCorners.push(uD({ + e.roundCorners.push(lD({ x: e.allpts[a - 2], y: e.allpts[a - 1] }, { @@ -30715,7 +30715,7 @@ Qu.findEdgeControlPoints = function(r) { var z = B.eles[0].parallelEdges().filter(function(vt) { return vt.isBundledBezier(); }); - Y5(B.eles), z.forEach(function(vt) { + X5(B.eles), z.forEach(function(vt) { return B.eles.push(vt); }), B.eles.sort(function(vt, tt) { return vt.poolIndex() - tt.poolIndex(); @@ -30954,7 +30954,7 @@ J1.getTargetEndpoint = function(r) { }; } }; -var lD = {}; +var cD = {}; function eee(r, e, t) { for (var n = function(l, c, f, d) { return Is(l, c, f, d); @@ -30966,7 +30966,7 @@ function eee(r, e, t) { }); } } -lD.storeEdgeProjections = function(r) { +cD.storeEdgeProjections = function(r) { var e = r._private, t = e.rscratch, n = t.edgeType; if (e.rstyle.bezierPts = null, e.rstyle.linePts = null, e.rstyle.haystackPts = null, n === "multibezier" || n === "bezier" || n === "self" || n === "compound") { e.rstyle.bezierPts = []; @@ -30990,7 +30990,7 @@ lD.storeEdgeProjections = function(r) { } e.rstyle.arrowWidth = this.getArrowWidth(r.pstyle("width").pfValue, r.pstyle("arrow-scale").value) * this.arrowShapeWidth; }; -lD.recalculateEdgeProjections = function(r) { +cD.recalculateEdgeProjections = function(r) { this.findEdgeControlPoints(r); }; var Oh = {}; @@ -31253,11 +31253,11 @@ Oh.calculateLabelAngles = function(r) { var e = this, t = r.isEdge(), n = r._private, i = n.rscratch; i.labelAngle = e.calculateLabelAngle(r), t && (i.sourceLabelAngle = e.calculateLabelAngle(r, "source"), i.targetLabelAngle = e.calculateLabelAngle(r, "target")); }; -var dU = {}, v3 = 28, p3 = !1; +var dU = {}, p3 = 28, g3 = !1; dU.getNodeShape = function(r) { var e = this, t = r.pstyle("shape").value; - if (t === "cutrectangle" && (r.width() < v3 || r.height() < v3)) - return p3 || (Ai("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), p3 = !0), "rectangle"; + if (t === "cutrectangle" && (r.width() < p3 || r.height() < p3)) + return g3 || (Ai("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), g3 = !0), "rectangle"; if (r.isParent()) return t === "rectangle" || t === "roundrectangle" || t === "round-rectangle" || t === "cutrectangle" || t === "cut-rectangle" || t === "barrel" ? t : "rectangle"; if (t === "polygon") { @@ -31362,7 +31362,7 @@ V2.getCachedZSortedEles = function(r) { return e; }; var hU = {}; -[ry, Fx, Qu, J1, lD, Oh, dU, G2, V2].forEach(function(r) { +[ry, Fx, Qu, J1, cD, Oh, dU, G2, V2].forEach(function(r) { kr(hU, r); }); var vU = {}; @@ -31832,7 +31832,7 @@ Jm.load = function() { r.data.wheelZooming = !1, r.redrawHint("eles", !0), r.redraw(); }, 150); var sr; - Ue && Math.abs(Qe) > 5 && (Qe = $5(Qe) * 5), sr = Qe / -250, q && (sr /= W, sr *= 3), sr = sr * r.wheelSensitivity; + Ue && Math.abs(Qe) > 5 && (Qe = K5(Qe) * 5), sr = Qe / -250, q && (sr /= W, sr *= 3), sr = sr * r.wheelSensitivity; var Ut = _e.deltaMode === 1; Ut && (sr *= 33); var Rr = ct.zoom() * Math.pow(10, sr); @@ -32301,7 +32301,7 @@ _v.generateRoundPolygon = function(r, e) { }; var p, g, y, b, _ = d.length; for (g = d[_ - 1], p = 0; p < _; p++) - y = d[p % _], b = d[(p + 1) % _], u[l][p] = uD(g, y, b, s), g = y, y = b; + y = d[p % _], b = d[(p + 1) % _], u[l][p] = lD(g, y, b, s), g = y, y = b; return u[l]; }, draw: function(n, i, a, o, s, u, l) { @@ -32338,7 +32338,7 @@ _v.generateCutRectangle = function() { return this.nodeShapes["cut-rectangle"] = this.nodeShapes.cutrectangle = { renderer: this, name: "cut-rectangle", - cornerLength: Z5(), + cornerLength: Q5(), points: Fl(4, 0), draw: function(e, t, n, i, a, o) { this.renderer.nodeShapeImpl(this.name, e, t, n, i, a, null, o); @@ -32408,7 +32408,7 @@ _v.generateBarrel = function() { return _1(a, o, p, e, t); }, generateBarrelBezierPts: function(e, t, n, i) { - var a = t / 2, o = e / 2, s = n - o, u = n + o, l = i - a, c = i + a, f = cM(e, t), d = f.heightOffset, h = f.widthOffset, p = f.ctrlPtOffsetPct * e, g = { + var a = t / 2, o = e / 2, s = n - o, u = n + o, l = i - a, c = i + a, f = fM(e, t), d = f.heightOffset, h = f.widthOffset, p = f.ctrlPtOffsetPct * e, g = { topLeft: [s, l + d, s + p, l, s + h, l], topRight: [u - h, l, u - p, l, u, l + d], bottomRight: [u, c - d, u - p, c, u - h, c], @@ -32417,7 +32417,7 @@ _v.generateBarrel = function() { return g.topLeft.isTop = !0, g.topRight.isTop = !0, g.bottomLeft.isBottom = !0, g.bottomRight.isBottom = !0, g; }, checkPoint: function(e, t, n, i, a, o, s, u) { - var l = cM(i, a), c = l.heightOffset, f = l.widthOffset; + var l = fM(i, a), c = l.heightOffset, f = l.widthOffset; if (pv(e, t, this.points, o, s, i, a - 2 * c, [0, -1], n) || pv(e, t, this.points, o, s, i - 2 * f, a, [0, -1], n)) return !0; for (var d = this.generateBarrelBezierPts(i, a, o, s), h = function(T, P, I) { @@ -32474,7 +32474,7 @@ _v.registerNodeShapes = function() { this.generatePolygon("pentagon", Fl(5, 0)), this.generateRoundPolygon("round-pentagon", Fl(5, 0)), this.generatePolygon("hexagon", Fl(6, 0)), this.generateRoundPolygon("round-hexagon", Fl(6, 0)), this.generatePolygon("heptagon", Fl(7, 0)), this.generateRoundPolygon("round-heptagon", Fl(7, 0)), this.generatePolygon("octagon", Fl(8, 0)), this.generateRoundPolygon("round-octagon", Fl(8, 0)); var n = new Array(20); { - var i = lM(5, 0), a = lM(5, Math.PI / 5), o = 0.5 * (3 - Math.sqrt(5)); + var i = cM(5, 0), a = cM(5, Math.PI / 5), o = 0.5 * (3 - Math.sqrt(5)); o *= 1.57; for (var s = 0; s < a.length / 2; s++) a[s * 2] *= o, a[s * 2 + 1] *= o; @@ -32512,7 +32512,7 @@ e_.beforeRender = function(r, e) { }); } }; -var g3 = function(e, t, n) { +var y3 = function(e, t, n) { for (var i = e.beforeRenderCallbacks, a = 0; a < i.length; a++) i[a].fn(t, n); }; @@ -32523,7 +32523,7 @@ e_.startRenderLoop = function() { var t = function(i) { if (!r.destroyed) { if (!e.batching()) if (r.requestedFrame && !r.skipFrame) { - g3(r, !0, i); + y3(r, !0, i); var a = vv(); r.render(r.renderOptions); var o = r.lastDrawTime = vv(); @@ -32531,7 +32531,7 @@ e_.startRenderLoop = function() { var s = o - a; r.redrawTotalTime += s, r.lastRedrawTime = s, r.averageRedrawTime = r.averageRedrawTime / 2 + s / 2, r.requestedFrame = !1; } else - g3(r, !1, i); + y3(r, !1, i); r.skipFrame = !1, Mx(t); } }; @@ -32613,7 +32613,7 @@ e0.destroy = function() { e0.isHeadless = function() { return !1; }; -[sD, hU, vU, Jm, _v, e_].forEach(function(r) { +[uD, hU, vU, Jm, _v, e_].forEach(function(r) { kr(e0, r); }); var NO = 1e3 / 60, gU = { @@ -32645,7 +32645,7 @@ var NO = 1e3 / 60, gU = { break; } p.length > 0 && (e.onDeqd(n, p), !l && e.shouldRedraw(n, p, y, g) && a()); - }, s = e.priority || W5; + }, s = e.priority || Y5; i.beforeRender(o, s(n)); } }; @@ -32774,7 +32774,7 @@ var NO = 1e3 / 60, gU = { return a && this.invalidateKey(i), a || this.getNumberOfIdsForKey(i) === 0; } }]); -})(), y3 = 25, ww = 50, nx = -4, EM = 3, yU = 7.99, iee = 8, aee = 1024, oee = 1024, see = 1024, uee = 0.2, lee = 0.8, cee = 10, fee = 0.15, dee = 0.1, hee = 0.9, vee = 0.9, pee = 100, gee = 1, gm = { +})(), m3 = 25, ww = 50, nx = -4, SM = 3, yU = 7.99, iee = 8, aee = 1024, oee = 1024, see = 1024, uee = 0.2, lee = 0.8, cee = 10, fee = 0.15, dee = 0.1, hee = 0.9, vee = 0.9, pee = 100, gee = 1, gm = { dequeue: "dequeue", downscale: "downscale", highQuality: "highQuality" @@ -32817,9 +32817,9 @@ fs.getElement = function(r, e, t, n, i) { var a = this, o = this.renderer, s = o.cy.zoom(), u = this.lookup; if (!e || e.w === 0 || e.h === 0 || isNaN(e.w) || isNaN(e.h) || !r.visible() || r.removed() || !a.allowEdgeTxrCaching && r.isEdge() || !a.allowParentTxrCaching && r.isParent()) return null; - if (n == null && (n = Math.ceil(X5(s * t))), n < nx) + if (n == null && (n = Math.ceil($5(s * t))), n < nx) n = nx; - else if (s >= yU || n > EM) + else if (s >= yU || n > SM) return null; var l = Math.pow(2, n), c = e.h * l, f = e.w * l, d = o.eleTextBiggerThanMin(r, l); if (!this.isVisible(r, d)) @@ -32828,7 +32828,7 @@ fs.getElement = function(r, e, t, n, i) { if (h && h.invalidated && (h.invalidated = !1, h.texture.invalidatedWidth -= h.width), h) return h; var p; - if (c <= y3 ? p = y3 : c <= ww ? p = ww : p = Math.ceil(c / ww) * ww, c > see || f > oee) + if (c <= m3 ? p = m3 : c <= ww ? p = ww : p = Math.ceil(c / ww) * ww, c > see || f > oee) return null; var g = a.getTextureQueue(p), y = g[g.length - 2], b = function() { return a.recycleTexture(p, f) || a.addTexture(p, f); @@ -32836,7 +32836,7 @@ fs.getElement = function(r, e, t, n, i) { y || (y = g[g.length - 1]), y || (y = b()), y.width - y.usedWidth < f && (y = b()); for (var _ = function(H) { return H && H.scaledLabelShown === d; - }, m = i && i === gm.dequeue, x = i && i === gm.highQuality, E = i && i === gm.downscale, O, S = n + 1; S <= EM; S++) { + }, m = i && i === gm.dequeue, x = i && i === gm.highQuality, E = i && i === gm.downscale, O, S = n + 1; S <= SM; S++) { var T = u.get(r, S); if (T) { O = T; @@ -32886,7 +32886,7 @@ fs.invalidateElements = function(r) { fs.invalidateElement = function(r) { var e = this, t = e.lookup, n = [], i = t.isInvalid(r); if (i) { - for (var a = nx; a <= EM; a++) { + for (var a = nx; a <= SM; a++) { var o = t.getForCachedKey(r, a); o && n.push(o); } @@ -32913,7 +32913,7 @@ fs.retireTexture = function(r) { var s = a[o]; i.deleteCache(s.key, s.level); } - Y5(a); + X5(a); var u = e.getRetiredTextureQueue(t); u.push(r); }; @@ -32925,7 +32925,7 @@ fs.recycleTexture = function(r, e) { for (var t = this, n = t.getTextureQueue(r), i = t.getRetiredTextureQueue(r), a = 0; a < i.length; a++) { var o = i[a]; if (o.width >= e) - return o.retired = !1, o.usedWidth = 0, o.invalidatedWidth = 0, o.fullnessChecks = 0, Y5(o.eleCaches), o.context.setTransform(1, 0, 0, 1, 0, 0), o.context.clearRect(0, 0, o.width, o.height), Pp(i, o), n.push(o), o; + return o.retired = !1, o.usedWidth = 0, o.invalidatedWidth = 0, o.fullnessChecks = 0, X5(o.eleCaches), o.context.setTransform(1, 0, 0, 1, 0, 0), o.context.clearRect(0, 0, o.width, o.height), Pp(i, o), n.push(o), o; } }; fs.queueElement = function(r, e) { @@ -32955,7 +32955,7 @@ fs.dequeue = function(r) { }; fs.removeFromQueue = function(r) { var e = this, t = e.getElementQueue(), n = e.getElementKeyToQueue(), i = this.getKey(r), a = n[i]; - a != null && (a.eles.length === 1 ? (a.reqs = H5, t.updateItem(a), t.pop(), n[i] = null) : a.eles.unmerge(r)); + a != null && (a.eles.length === 1 ? (a.reqs = W5, t.updateItem(a), t.pop(), n[i] = null) : a.eles.unmerge(r)); }; fs.onDequeue = function(r) { this.onDequeues.push(r); @@ -32982,7 +32982,7 @@ fs.setupDequeueing = gU.setupDequeueing({ for (var a = 0; a < t.length; a++) for (var o = t[a].eles, s = 0; s < o.length; s++) { var u = o[s].boundingBox(); - if (K5(u, i)) + if (Z5(u, i)) return !0; } return !1; @@ -32991,21 +32991,21 @@ fs.setupDequeueing = gU.setupDequeueing({ return e.renderer.beforeRenderPriorities.eleTxrDeq; } }); -var mee = 1, Db = -4, Ux = 2, bee = 3.99, _ee = 50, wee = 50, xee = 0.15, Eee = 0.1, See = 0.9, Oee = 0.9, Tee = 1, m3 = 250, Cee = 4e3 * 4e3, b3 = 32767, Aee = !0, mU = function(e) { +var mee = 1, Db = -4, Ux = 2, bee = 3.99, _ee = 50, wee = 50, xee = 0.15, Eee = 0.1, See = 0.9, Oee = 0.9, Tee = 1, b3 = 250, Cee = 4e3 * 4e3, _3 = 32767, Aee = !0, mU = function(e) { var t = this, n = t.renderer = e, i = n.cy; - t.layersByLevel = {}, t.firstGet = !0, t.lastInvalidationTime = vv() - 2 * m3, t.skipping = !1, t.eleTxrDeqs = i.collection(), t.scheduleElementRefinement = $1(function() { + t.layersByLevel = {}, t.firstGet = !0, t.lastInvalidationTime = vv() - 2 * b3, t.skipping = !1, t.eleTxrDeqs = i.collection(), t.scheduleElementRefinement = $1(function() { t.refineElementTextures(t.eleTxrDeqs), t.eleTxrDeqs.unmerge(t.eleTxrDeqs); }, wee), n.beforeRender(function(o, s) { - s - t.lastInvalidationTime <= m3 ? t.skipping = !0 : t.skipping = !1; + s - t.lastInvalidationTime <= b3 ? t.skipping = !0 : t.skipping = !1; }, n.beforeRenderPriorities.lyrTxrSkip); var a = function(s, u) { return u.reqs - s.reqs; }; t.layersQueue = new K1(a), t.setupDequeueing(); -}, hu = mU.prototype, _3 = 0, Ree = Math.pow(2, 53) - 1; +}, hu = mU.prototype, w3 = 0, Ree = Math.pow(2, 53) - 1; hu.makeLayer = function(r, e) { var t = Math.pow(2, e), n = Math.ceil(r.w * t), i = Math.ceil(r.h * t), a = this.renderer.makeOffscreenCanvas(n, i), o = { - id: _3 = ++_3 % Ree, + id: w3 = ++w3 % Ree, bb: r, level: e, width: n, @@ -33021,7 +33021,7 @@ hu.makeLayer = function(r, e) { hu.getLayers = function(r, e, t) { var n = this, i = n.renderer, a = i.cy, o = a.zoom(), s = n.firstGet; if (n.firstGet = !1, t == null) { - if (t = Math.ceil(X5(o * e)), t < Db) + if (t = Math.ceil($5(o * e)), t < Db) t = Db; else if (o >= bee || t > Ux) return null; @@ -33058,7 +33058,7 @@ hu.getLayers = function(r, e, t) { var k = I.after; g(); var L = Math.ceil(f.w * l), B = Math.ceil(f.h * l); - if (L > b3 || B > b3) + if (L > _3 || B > _3) return null; var j = L * B; if (j > Cee) @@ -33226,13 +33226,13 @@ hu.setupDequeueing = gU.setupDequeueing({ deq: function(e, t) { return e.dequeue(t); }, - onDeqd: W5, + onDeqd: Y5, shouldRedraw: oF, priority: function(e) { return e.renderer.beforeRenderPriorities.lyrTxrDeq; } }); -var bU = {}, w3; +var bU = {}, x3; function Pee(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; @@ -33246,7 +33246,7 @@ function Mee(r, e, t) { } r.quadraticCurveTo(t.x, t.y, n.x, n.y); } -function x3(r, e, t) { +function E3(r, e, t) { r.beginPath && r.beginPath(); for (var n = e, i = 0; i < n.length; i++) { var a = n[i]; @@ -33274,12 +33274,12 @@ function kee(r, e, t, n) { r.arc(e, t, n, 0, Math.PI * 2, !1); } bU.arrowShapeImpl = function(r) { - return (w3 || (w3 = { + return (x3 || (x3 = { polygon: Pee, "triangle-backcurve": Mee, - "triangle-tee": x3, + "triangle-tee": E3, "circle-triangle": Dee, - "triangle-cross": x3, + "triangle-cross": E3, circle: kee }))[r]; }; @@ -33333,7 +33333,7 @@ var Iee = function() { }; Th.drawCachedElement = function(r, e, t, n, i, a) { var o = this, s = o.data, u = s.eleTxrCache, l = s.lblTxrCache, c = s.slbTxrCache, f = s.tlbTxrCache, d = e.boundingBox(), h = a === !0 ? u.reasons.highQuality : null; - if (!(d.w === 0 || d.h === 0 || !e.visible()) && (!n || K5(d, n))) { + if (!(d.w === 0 || d.h === 0 || !e.visible()) && (!n || Z5(d, n))) { var p = e.isEdge(), g = e.element()._private.rscratch.badLine; o.drawElementUnderlay(r, e), o.drawCachedElementPortion(r, e, u, t, i, h, Iee, Bee), (!p || !g) && o.drawCachedElementPortion(r, e, l, t, i, h, Nee, LO), p && !g && (o.drawCachedElementPortion(r, e, c, t, i, h, Lee, LO), o.drawCachedElementPortion(r, e, f, t, i, h, jee, LO)), o.drawElementOverlay(r, e); } @@ -33512,8 +33512,8 @@ wv.drawArrowShape = function(r, e, t, n, i, a, o, s, u) { y: 0 }, 1) : b.draw(e, y, u, p, n), e.closePath && e.closePath()), e = h, c && (e.translate(o, s), e.rotate(u), e.scale(y, y)), (t === "filled" || t === "both") && (c ? e.fill(d) : e.fill()), (t === "hollow" || t === "both") && (e.lineWidth = a / (c ? y : 1), e.lineJoin = "miter", c ? e.stroke(d) : e.stroke()), c && (e.scale(1 / y, 1 / y), e.rotate(-u), e.translate(-o, -s)); }; -var cD = {}; -cD.safeDrawImage = function(r, e, t, n, i, a, o, s, u, l) { +var fD = {}; +fD.safeDrawImage = function(r, e, t, n, i, a, o, s, u, l) { if (!(i <= 0 || a <= 0 || u <= 0 || l <= 0)) try { r.drawImage(e, t, n, i, a, o, s, u, l); @@ -33521,7 +33521,7 @@ cD.safeDrawImage = function(r, e, t, n, i, a, o, s, u, l) { Ai(c); } }; -cD.drawInscribedImage = function(r, e, t, n, i) { +fD.drawInscribedImage = function(r, e, t, n, i) { var a = this, o = t.position(), s = o.x, u = o.y, l = t.cy().style(), c = l.getIndexedStyle.bind(l), f = c(t, "background-fit", "value", n), d = c(t, "background-repeat", "value", n), h = t.width(), p = t.height(), g = t.padding() * 2, y = h + (c(t, "background-width-relative-to", "value", n) === "inner" ? 0 : g), b = p + (c(t, "background-height-relative-to", "value", n) === "inner" ? 0 : g), _ = t._private.rscratch, m = c(t, "background-clip", "value", n), x = m === "node", E = c(t, "background-image-opacity", "value", n) * i, O = c(t, "background-image-smoothing", "value", n), S = t.pstyle("corner-radius").value; S !== "auto" && (S = t.pstyle("corner-radius").pfValue); var T = e.width || e.cachedW, P = e.height || e.cachedH; @@ -33558,7 +33558,7 @@ cD.drawInscribedImage = function(r, e, t, n, i) { var ny = {}; ny.eleTextBiggerThanMin = function(r, e) { if (!e) { - var t = r.cy().zoom(), n = this.getPixelRatio(), i = Math.ceil(X5(t * n)); + var t = r.cy().zoom(), n = this.getPixelRatio(), i = Math.ceil($5(t * n)); e = Math.pow(2, i); } var a = r.pstyle("font-size").pfValue * e, o = r.pstyle("min-zoomed-font-size").pfValue; @@ -33604,7 +33604,7 @@ function Fee(r, e, t, n, i) { var a = Math.min(n, i), o = a / 2, s = e + n / 2, u = t + i / 2; r.beginPath(), r.arc(s, u, o, 0, Math.PI * 2), r.closePath(); } -function E3(r, e, t, n, i) { +function S3(r, e, t, n, i) { var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 5, o = Math.min(a, n / 2, i / 2); r.beginPath(), r.moveTo(e + o, t), r.lineTo(e + n - o, t), r.quadraticCurveTo(e + n, t, e + n, t + o), r.lineTo(e + n, t + i - o), r.quadraticCurveTo(e + n, t + i, e + n - o, t + i), r.lineTo(e + o, t + i), r.quadraticCurveTo(e, t + i, e, t + i - o), r.lineTo(e, t + o), r.quadraticCurveTo(e, t, e + o, t), r.closePath(); } @@ -33664,9 +33664,9 @@ ny.drawText = function(r, e, t) { r.setLineDash([]); break; } - if (k ? (r.beginPath(), E3(r, Z, ue, re, ne, B)) : L ? (r.beginPath(), Fee(r, Z, ue, re, ne)) : (r.beginPath(), r.rect(Z, ue, re, ne)), J && r.fill(), X && r.stroke(), X && $ === "double") { + if (k ? (r.beginPath(), S3(r, Z, ue, re, ne, B)) : L ? (r.beginPath(), Fee(r, Z, ue, re, ne)) : (r.beginPath(), r.rect(Z, ue, re, ne)), J && r.fill(), X && r.stroke(), X && $ === "double") { var le = T / 2; - r.beginPath(), k ? E3(r, Z + le, ue + le, re - 2 * le, ne - 2 * le, B) : r.rect(Z + le, ue + le, re - 2 * le, ne - 2 * le), r.stroke(); + r.beginPath(), k ? S3(r, Z + le, ue + le, re - 2 * le, ne - 2 * le, B) : r.rect(Z + le, ue + le, re - 2 * le, ne - 2 * le), r.stroke(); } r.fillStyle = j, r.strokeStyle = z, r.lineWidth = H, r.setLineDash && r.setLineDash([]); } @@ -33829,12 +33829,12 @@ Vp.drawNode = function(r, e, t) { }; var mr, ur, sn, Fr, un = Xt.length; for (ur = Xt[un - 1], mr = 0; mr < un; mr++) - sn = Xt[mr % un], Fr = Xt[(mr + 1) % un], Vr[mr] = uD(ur, sn, Fr, Rr), ur = sn, sn = Fr; + sn = Xt[mr % un], Fr = Xt[(mr + 1) % un], Vr[mr] = lD(ur, sn, Fr, Rr), ur = sn, sn = Fr; o.drawRoundPolygonPath(ct || r, vt.x + jt, vt.y + Yt, s * Ue, u * Qe, It, Vr); } else if (["roundrectangle", "round-rectangle"].includes(tt)) ce = ce === "auto" ? Mp(Ze, nt) : ce, o.drawRoundRectanglePath(ct || r, vt.x, vt.y, Ze, nt, ce + (_e + Z + le) / 2); else if (["cutrectangle", "cut-rectangle"].includes(tt)) - ce = ce === "auto" ? Z5() : ce, o.drawCutRectanglePath(ct || r, vt.x, vt.y, Ze, nt, null, ce + (_e + Z + le) / 4); + ce = ce === "auto" ? Q5() : ce, o.drawCutRectanglePath(ct || r, vt.x, vt.y, Ze, nt, null, ce + (_e + Z + le) / 4); else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(tt)) ce = ce === "auto" ? Mp(Ze, nt) : ce, o.drawBottomRoundRectanglePath(ct || r, vt.x, vt.y, Ze, nt, ce + (_e + Z + le) / 2); else if (tt === "barrel") @@ -34188,14 +34188,14 @@ Gl.drawSelectionRectangle = function(r, e) { s || (u[t.SELECT_BOX] = !1); } }; -function S3(r, e, t) { +function O3(r, e, t) { var n = r.createShader(e); if (r.shaderSource(n, t), r.compileShader(n), !r.getShaderParameter(n, r.COMPILE_STATUS)) throw new Error(r.getShaderInfoLog(n)); return n; } function zee(r, e, t) { - var n = S3(r, r.VERTEX_SHADER, e), i = S3(r, r.FRAGMENT_SHADER, t), a = r.createProgram(); + var n = O3(r, r.VERTEX_SHADER, e), i = O3(r, r.FRAGMENT_SHADER, t), a = r.createProgram(); if (r.attachShader(a, n), r.attachShader(a, i), r.linkProgram(a), !r.getProgramParameter(a, r.LINK_STATUS)) throw new Error("Could not initialize shaders"); return a; @@ -34207,7 +34207,7 @@ function qee(r, e, t) { return i.clearRect(0, 0, n.width, n.height); }, n.clear(), n; } -function fD(r) { +function dD(r) { var e = r.pixelRatio, t = r.cy.zoom(), n = r.cy.pan(); return { zoom: t * e, @@ -34288,11 +34288,11 @@ function $ee(r, e, t, n, i, a) { } } function Kee(r, e, t, n) { - var i = xU(r, e), a = Uo(i, 2), o = a[0], s = a[1], u = EU(r, s, n), l = r.createBuffer(); + var i = xU(r, e), a = zo(i, 2), o = a[0], s = a[1], u = EU(r, s, n), l = r.createBuffer(); return r.bindBuffer(r.ARRAY_BUFFER, l), r.bufferData(r.ARRAY_BUFFER, u, r.STATIC_DRAW), s === r.FLOAT ? r.vertexAttribPointer(t, o, s, !1, 0, 0) : s === r.INT && r.vertexAttribIPointer(t, o, s, 0, 0), r.enableVertexAttribArray(t), r.bindBuffer(r.ARRAY_BUFFER, null), l; } function uh(r, e, t, n) { - var i = xU(r, t), a = Uo(i, 3), o = a[0], s = a[1], u = a[2], l = EU(r, s, e * o), c = o * u, f = r.createBuffer(); + var i = xU(r, t), a = zo(i, 3), o = a[0], s = a[1], u = a[2], l = EU(r, s, e * o), c = o * u, f = r.createBuffer(); r.bindBuffer(r.ARRAY_BUFFER, f), r.bufferData(r.ARRAY_BUFFER, e * c, r.DYNAMIC_DRAW), r.enableVertexAttribArray(n), s === r.FLOAT ? r.vertexAttribPointer(n, o, s, !1, c, 0) : s === r.INT && r.vertexAttribIPointer(n, o, s, c, 0), r.vertexAttribDivisor(n, 1), r.bindBuffer(r.ARRAY_BUFFER, null); for (var d = new Array(e), h = 0; h < e; h++) d[h] = $ee(r, s, l, c, o, h); @@ -34332,17 +34332,17 @@ function Qee(r) { r.bindTexture(r.TEXTURE_2D, t), r.texImage2D(r.TEXTURE_2D, 0, r.RGBA, n, i, 0, r.RGBA, r.UNSIGNED_BYTE, null); }, e; } -var O3 = typeof Float32Array < "u" ? Float32Array : Array; +var T3 = typeof Float32Array < "u" ? Float32Array : Array; Math.hypot || (Math.hypot = function() { for (var r = 0, e = arguments.length; e--; ) r += arguments[e] * arguments[e]; return Math.sqrt(r); }); function jO() { - var r = new O3(9); - return O3 != Float32Array && (r[1] = 0, r[2] = 0, r[3] = 0, r[5] = 0, r[6] = 0, r[7] = 0), r[0] = 1, r[4] = 1, r[8] = 1, r; + var r = new T3(9); + return T3 != Float32Array && (r[1] = 0, r[2] = 0, r[3] = 0, r[5] = 0, r[6] = 0, r[7] = 0), r[0] = 1, r[4] = 1, r[8] = 1, r; } -function T3(r) { +function C3(r) { return r[0] = 1, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 1, r[5] = 0, r[6] = 0, r[7] = 0, r[8] = 1, r; } function Jee(r, e, t) { @@ -34353,11 +34353,11 @@ function ix(r, e, t) { var n = e[0], i = e[1], a = e[2], o = e[3], s = e[4], u = e[5], l = e[6], c = e[7], f = e[8], d = t[0], h = t[1]; return r[0] = n, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = u, r[6] = d * n + h * o + l, r[7] = d * i + h * s + c, r[8] = d * a + h * u + f, r; } -function C3(r, e, t) { +function A3(r, e, t) { var n = e[0], i = e[1], a = e[2], o = e[3], s = e[4], u = e[5], l = e[6], c = e[7], f = e[8], d = Math.sin(t), h = Math.cos(t); return r[0] = h * n + d * o, r[1] = h * i + d * s, r[2] = h * a + d * u, r[3] = h * o - d * n, r[4] = h * s - d * i, r[5] = h * u - d * a, r[6] = l, r[7] = c, r[8] = f, r; } -function SM(r, e, t) { +function OM(r, e, t) { var n = t[0], i = t[1]; return r[0] = n * e[0], r[1] = n * e[1], r[2] = n * e[2], r[3] = i * e[3], r[4] = i * e[4], r[5] = i * e[5], r[6] = e[6], r[7] = e[7], r[8] = e[8], r; } @@ -34548,7 +34548,7 @@ var tte = /* @__PURE__ */ (function() { for (p.s(); !(g = p.n()).done; ) { var y = g.value; if (!h.has(y)) { - var b = f.getOffsets(y), _ = Uo(b, 2), m = _[0], x = _[1]; + var b = f.getOffsets(y), _ = zo(b, 2), m = _[0], x = _[1]; o.canFit({ w: m.w + x.w, h: m.h @@ -34574,7 +34574,7 @@ var tte = /* @__PURE__ */ (function() { }, { key: "_copyTextureToNewAtlas", value: function(t, n, i) { - var a = n.getOffsets(t), o = Uo(a, 2), s = o[0], u = o[1]; + var a = n.getOffsets(t), o = zo(a, 2), s = o[0], u = o[1]; if (u.w === 0) i.draw(t, s, function(d) { d.drawImage(n.canvas, s.x, s.y, s.w, s.h, 0, 0, s.w, s.h); @@ -34746,7 +34746,7 @@ var ite = /* @__PURE__ */ (function() { value: function(t, n) { var i = this, a = this.renderTypes.get(n), o = a.getKey(t), s = Array.isArray(o) ? o : [o]; return s.map(function(u) { - var l = a.getBoundingBox(t, u), c = i.getOrCreateAtlas(t, n, l, u), f = c.getOffsets(u), d = Uo(f, 2), h = d[0], p = d[1]; + var l = a.getBoundingBox(t, u), c = i.getOrCreateAtlas(t, n, l, u), f = c.getOffsets(u), d = zo(f, 2), h = d[0], p = d[1]; return { atlas: c, tex: h, @@ -34762,7 +34762,7 @@ var ite = /* @__PURE__ */ (function() { var t = [], n = Ac(this.collections), i; try { for (n.s(); !(i = n.n()).done; ) { - var a = Uo(i.value, 2), o = a[0], s = a[1], u = s.getCounts(), l = u.keyCount, c = u.atlasCount; + var a = zo(i.value, 2), o = a[0], s = a[1], u = s.getCounts(), l = u.keyCount, c = u.atlasCount; t.push({ type: o, keyCount: l, @@ -34883,7 +34883,7 @@ var ite = /* @__PURE__ */ (function() { // don't render the texture at all USE_BB: 2 // render the bounding box as an opaque rectangle -}, BO = 0, A3 = 1, R3 = 2, FO = 3, tm = 4, xw = 5, Y0 = 6, X0 = 7, cte = /* @__PURE__ */ (function() { +}, BO = 0, R3 = 1, P3 = 2, FO = 3, tm = 4, xw = 5, Y0 = 6, X0 = 7, cte = /* @__PURE__ */ (function() { function r(e, t, n) { zp(this, r), this.r = e, this.gl = t, this.maxInstances = n.webglBatchSize, this.atlasSize = n.webglTexSize, this.bgColor = n.bgColor, this.debug = n.webglDebug, this.batchDebugInfo = [], n.enableWrapping = !0, n.createTextureCanvas = qee, this.atlasManager = new ite(e, n), this.batchManager = new ate(n), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(kb.SCREEN), this.pickingProgram = this._createShaderProgram(kb.PICKING), this.vao = this._createVAO(); } @@ -35046,7 +35046,7 @@ var ite = /* @__PURE__ */ (function() { gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); } - else if(aVertType == `).concat(A3, `) { + else if(aVertType == `).concat(R3, `) { vec2 source = aPointAPointB.xy; vec2 target = aPointAPointB.zw; @@ -35061,7 +35061,7 @@ var ite = /* @__PURE__ */ (function() { gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); vColor = aColor; } - else if(aVertType == `).concat(R3, `) { + else if(aVertType == `).concat(P3, `) { vec2 pointA = aPointAPointB.xy; vec2 pointB = aPointAPointB.zw; vec2 pointC = aPointCPointD.xy; @@ -35315,7 +35315,7 @@ var ite = /* @__PURE__ */ (function() { var d = f.value, h = d.atlas, p = d.tex1, g = d.tex2; o.canAddToCurrentBatch(h) || this.endBatch(); for (var y = o.getAtlasIndexForBatch(h), b = 0, _ = [[p, !0], [g, !1]]; b < _.length; b++) { - var m = Uo(_[b], 2), x = m[0], E = m[1]; + var m = zo(_[b], 2), x = m[0], E = m[1]; if (x.w != 0) { var O = this.instanceCount; this.vertTypeBuffer.getView(O)[0] = BO; @@ -35359,16 +35359,16 @@ var ite = /* @__PURE__ */ (function() { key: "_applyTransformMatrix", value: function(t, n, i, a) { var o, s; - T3(t); + C3(t); var u = i.getRotation ? i.getRotation(a) : 0; if (u !== 0) { var l = i.getRotationPoint(a), c = l.x, f = l.y; - ix(t, t, [c, f]), C3(t, t, u); + ix(t, t, [c, f]), A3(t, t, u); var d = i.getRotationOffset(a); o = d.x + (n.xOffset || 0), s = d.y + (n.yOffset || 0); } else o = n.x1, s = n.y1; - ix(t, t, [o, s]), SM(t, t, [n.w, n.h]); + ix(t, t, [o, s]), OM(t, t, [n.w, n.h]); } /** * Adjusts a node or label BB to accomodate padding and split for wrapped textures. @@ -35490,7 +35490,7 @@ var ite = /* @__PURE__ */ (function() { var l = t.pstyle(i + "-arrow-shape").value; if (l !== "none") { var c = t.pstyle(i + "-arrow-color").value, f = t.pstyle("opacity").value, d = t.pstyle("line-opacity").value, h = f * d, p = t.pstyle("width").pfValue, g = t.pstyle("arrow-scale").value, y = this.r.getArrowWidth(p, g), b = this.instanceCount, _ = this.transformBuffer.getMatrixView(b); - T3(_), ix(_, _, [o, s]), SM(_, _, [y, y]), C3(_, _, u), this.vertTypeBuffer.getView(b)[0] = FO; + C3(_), ix(_, _, [o, s]), OM(_, _, [y, y]), A3(_, _, u), this.vertTypeBuffer.getView(b)[0] = FO; var m = this.indexBuffer.getView(b); em(n, m); var x = this.colorBuffer.getView(b); @@ -35511,7 +35511,7 @@ var ite = /* @__PURE__ */ (function() { var a = t.pstyle("opacity").value, o = t.pstyle("line-opacity").value, s = t.pstyle("width").pfValue, u = t.pstyle("line-color").value, l = a * o; if (i.length / 2 + this.instanceCount > this.maxInstances && this.endBatch(), i.length == 4) { var c = this.instanceCount; - this.vertTypeBuffer.getView(c)[0] = A3; + this.vertTypeBuffer.getView(c)[0] = R3; var f = this.indexBuffer.getView(c); em(n, f); var d = this.colorBuffer.getView(c); @@ -35523,7 +35523,7 @@ var ite = /* @__PURE__ */ (function() { } else for (var g = 0; g < i.length - 2; g += 2) { var y = this.instanceCount; - this.vertTypeBuffer.getView(y)[0] = R3; + this.vertTypeBuffer.getView(y)[0] = P3; var b = this.indexBuffer.getView(y); em(n, b); var _ = this.colorBuffer.getView(y); @@ -35832,15 +35832,15 @@ function vte(r) { e(r.data.contexts[r.NODE]), e(r.data.contexts[r.DRAG]); } function pte(r) { - var e = r.canvasWidth, t = r.canvasHeight, n = fD(r), i = n.pan, a = n.zoom, o = jO(); - ix(o, o, [i.x, i.y]), SM(o, o, [a, a]); + var e = r.canvasWidth, t = r.canvasHeight, n = dD(r), i = n.pan, a = n.zoom, o = jO(); + ix(o, o, [i.x, i.y]), OM(o, o, [a, a]); var s = jO(); ete(s, e, t); var u = jO(); return Jee(u, s, o), u; } function TU(r, e) { - var t = r.canvasWidth, n = r.canvasHeight, i = fD(r), a = i.pan, o = i.zoom; + var t = r.canvasWidth, n = r.canvasHeight, i = dD(r), a = i.pan, o = i.zoom; e.setTransform(1, 0, 0, 1, 0, 0), e.clearRect(0, 0, t, n), e.translate(a.x, a.y), e.scale(o, o); } function gte(r, e) { @@ -35865,9 +35865,9 @@ function mte(r) { e(r.drawing, "node", t++), e(r.drawing, "label", t++); } function bte(r, e, t, n, i) { - var a, o, s, u, l = fD(r), c = l.pan, f = l.zoom; + var a, o, s, u, l = dD(r), c = l.pan, f = l.zoom; { - var d = Vee(r, c, f, e, t), h = Uo(d, 2), p = h[0], g = h[1], y = 6; + var d = Vee(r, c, f, e, t), h = zo(d, 2), p = h[0], g = h[1], y = 6; a = p - y / 2, o = g - y / 2, s = y, u = y; } if (s === 0 || u === 0) @@ -35963,22 +35963,22 @@ Hp.drawBottomRoundRectanglePath = function(r, e, t, n, i, a) { r.beginPath && r.beginPath(), r.moveTo(e, t - s), r.lineTo(e + o, t - s), r.lineTo(e + o, t), r.arcTo(e + o, t + s, e, t + s, u), r.arcTo(e - o, t + s, e - o, t, u), r.lineTo(e - o, t - s), r.lineTo(e, t - s), r.closePath(); }; Hp.drawCutRectanglePath = function(r, e, t, n, i, a, o) { - var s = n / 2, u = i / 2, l = o === "auto" ? Z5() : o; + var s = n / 2, u = i / 2, l = o === "auto" ? Q5() : o; r.beginPath && r.beginPath(), r.moveTo(e - s + l, t - u), r.lineTo(e + s - l, t - u), r.lineTo(e + s, t - u + l), r.lineTo(e + s, t + u - l), r.lineTo(e + s - l, t + u), r.lineTo(e - s + l, t + u), r.lineTo(e - s, t + u - l), r.lineTo(e - s, t - u + l), r.closePath(); }; Hp.drawBarrelPath = function(r, e, t, n, i) { - var a = n / 2, o = i / 2, s = e - a, u = e + a, l = t - o, c = t + o, f = cM(n, i), d = f.widthOffset, h = f.heightOffset, p = f.ctrlPtOffsetPct * d; + var a = n / 2, o = i / 2, s = e - a, u = e + a, l = t - o, c = t + o, f = fM(n, i), d = f.widthOffset, h = f.heightOffset, p = f.ctrlPtOffsetPct * d; r.beginPath && r.beginPath(), r.moveTo(s, l + h), r.lineTo(s, c - h), r.quadraticCurveTo(s + p, c, s + d, c), r.lineTo(u - d, c), r.quadraticCurveTo(u - p, c, u, c - h), r.lineTo(u, l + h), r.quadraticCurveTo(u - p, l, u - d, l), r.lineTo(s + d, l), r.quadraticCurveTo(s + p, l, s, l + h), r.closePath(); }; -var P3 = Math.sin(0), M3 = Math.cos(0), OM = {}, TM = {}, AU = Math.PI / 40; +var M3 = Math.sin(0), D3 = Math.cos(0), TM = {}, CM = {}, AU = Math.PI / 40; for (var rm = 0 * Math.PI; rm < 2 * Math.PI; rm += AU) - OM[rm] = Math.sin(rm), TM[rm] = Math.cos(rm); + TM[rm] = Math.sin(rm), CM[rm] = Math.cos(rm); Hp.drawEllipsePath = function(r, e, t, n, i) { if (r.beginPath && r.beginPath(), r.ellipse) r.ellipse(e, t, n / 2, i / 2, 0, 0, 2 * Math.PI); else for (var a, o, s = n / 2, u = i / 2, l = 0 * Math.PI; l < 2 * Math.PI; l += AU) - a = e - s * OM[l] * P3 + s * TM[l] * M3, o = t + u * TM[l] * P3 + u * OM[l] * M3, l === 0 ? r.moveTo(a, o) : r.lineTo(a, o); + a = e - s * TM[l] * M3 + s * CM[l] * D3, o = t + u * CM[l] * M3 + u * TM[l] * D3, l === 0 ? r.moveTo(a, o) : r.lineTo(a, o); r.closePath(); }; var t_ = {}; @@ -36021,7 +36021,7 @@ function wte(r, e) { type: e }); } -function D3(r) { +function k3(r) { var e = r.indexOf(","); return r.substr(e + 1); } @@ -36041,9 +36041,9 @@ function RU(r, e, t) { } }); case "blob": - return wte(D3(n()), t); + return wte(k3(n()), t); case "base64": - return D3(n()); + return k3(n()); case "base64uri": default: return n(); @@ -36314,7 +36314,7 @@ An.makeOffscreenCanvas = function(r, e) { } return t; }; -[bU, Th, wv, cD, ny, Vp, Gl, SU, Hp, t_, PU].forEach(function(r) { +[bU, Th, wv, fD, ny, Vp, Gl, SU, Hp, t_, PU].forEach(function(r) { kr(An, r); }); var Ste = [{ @@ -36457,7 +36457,7 @@ function Cte(r, e, t, n) { keys: [r, e, t, n] }); } -var CM = function() { +var AM = function() { if (arguments.length === 2) return NU.apply(null, arguments); if (arguments.length === 3) @@ -36468,7 +36468,7 @@ var CM = function() { return Tte.apply(null, arguments); Ia("Invalid extension access syntax"); }; -S1.prototype.extension = CM; +S1.prototype.extension = AM; Ote.forEach(function(r) { r.extensions.forEach(function(e) { IU(r.type, e.name, e.impl); @@ -36532,7 +36532,7 @@ var Ate = "3.33.1", Np = function(e) { if (e === void 0 && (e = {}), ai(e)) return new S1(e); if (Ar(e)) - return CM.apply(CM, arguments); + return AM.apply(AM, arguments); }; Np.use = function(r) { var e = Array.prototype.slice.call(arguments, 1); @@ -36543,9 +36543,9 @@ Np.warnings = function(r) { }; Np.version = Ate; Np.stylesheet = Np.Stylesheet = qx; -var ax = { exports: {} }, ox = { exports: {} }, sx = { exports: {} }, Rte = sx.exports, k3; +var ax = { exports: {} }, ox = { exports: {} }, sx = { exports: {} }, Rte = sx.exports, I3; function Pte() { - return k3 || (k3 = 1, (function(r, e) { + return I3 || (I3 = 1, (function(r, e) { (function(n, i) { r.exports = i(); })(Rte, function() { @@ -38147,9 +38147,9 @@ function Pte() { }); })(sx)), sx.exports; } -var Mte = ox.exports, I3; +var Mte = ox.exports, N3; function Dte() { - return I3 || (I3 = 1, (function(r, e) { + return N3 || (N3 = 1, (function(r, e) { (function(n, i) { r.exports = i(Pte()); })(Mte, function(t) { @@ -38701,9 +38701,9 @@ function Dte() { }); })(ox)), ox.exports; } -var kte = ax.exports, N3; +var kte = ax.exports, L3; function Ite() { - return N3 || (N3 = 1, (function(r, e) { + return L3 || (L3 = 1, (function(r, e) { (function(n, i) { r.exports = i(Dte()); })(kte, function(t) { @@ -38971,29 +38971,29 @@ const Ute = { function qte(r) { throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } -var GO, L3; +var GO, j3; function Gte() { - if (L3) return GO; - L3 = 1; + if (j3) return GO; + j3 = 1; function r() { this.__data__ = [], this.size = 0; } return GO = r, GO; } -var VO, j3; -function dD() { - if (j3) return VO; - j3 = 1; +var VO, B3; +function hD() { + if (B3) return VO; + B3 = 1; function r(e, t) { return e === t || e !== e && t !== t; } return VO = r, VO; } -var HO, B3; +var HO, F3; function H2() { - if (B3) return HO; - B3 = 1; - var r = dD(); + if (F3) return HO; + F3 = 1; + var r = hD(); function e(t, n) { for (var i = t.length; i--; ) if (r(t[i][0], n)) @@ -39002,10 +39002,10 @@ function H2() { } return HO = e, HO; } -var WO, F3; +var WO, U3; function Vte() { - if (F3) return WO; - F3 = 1; + if (U3) return WO; + U3 = 1; var r = H2(), e = Array.prototype, t = e.splice; function n(i) { var a = this.__data__, o = r(a, i); @@ -39016,10 +39016,10 @@ function Vte() { } return WO = n, WO; } -var YO, U3; +var YO, z3; function Hte() { - if (U3) return YO; - U3 = 1; + if (z3) return YO; + z3 = 1; var r = H2(); function e(t) { var n = this.__data__, i = r(n, t); @@ -39027,20 +39027,20 @@ function Hte() { } return YO = e, YO; } -var XO, z3; +var XO, q3; function Wte() { - if (z3) return XO; - z3 = 1; + if (q3) return XO; + q3 = 1; var r = H2(); function e(t) { return r(this.__data__, t) > -1; } return XO = e, XO; } -var $O, q3; +var $O, G3; function Yte() { - if (q3) return $O; - q3 = 1; + if (G3) return $O; + G3 = 1; var r = H2(); function e(t, n) { var i = this.__data__, a = r(i, t); @@ -39048,10 +39048,10 @@ function Yte() { } return $O = e, $O; } -var KO, G3; +var KO, V3; function W2() { - if (G3) return KO; - G3 = 1; + if (V3) return KO; + V3 = 1; var r = Gte(), e = Vte(), t = Hte(), n = Wte(), i = Yte(); function a(o) { var s = -1, u = o == null ? 0 : o.length; @@ -39062,69 +39062,69 @@ function W2() { } return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, KO = a, KO; } -var ZO, V3; +var ZO, H3; function Xte() { - if (V3) return ZO; - V3 = 1; + if (H3) return ZO; + H3 = 1; var r = W2(); function e() { this.__data__ = new r(), this.size = 0; } return ZO = e, ZO; } -var QO, H3; +var QO, W3; function $te() { - if (H3) return QO; - H3 = 1; + if (W3) return QO; + W3 = 1; function r(e) { var t = this.__data__, n = t.delete(e); return this.size = t.size, n; } return QO = r, QO; } -var JO, W3; +var JO, Y3; function Kte() { - if (W3) return JO; - W3 = 1; + if (Y3) return JO; + Y3 = 1; function r(e) { return this.__data__.get(e); } return JO = r, JO; } -var eT, Y3; +var eT, X3; function Zte() { - if (Y3) return eT; - Y3 = 1; + if (X3) return eT; + X3 = 1; function r(e) { return this.__data__.has(e); } return eT = r, eT; } -var tT, X3; +var tT, $3; function LU() { - if (X3) return tT; - X3 = 1; + if ($3) return tT; + $3 = 1; var r = typeof Lf == "object" && Lf && Lf.Object === Object && Lf; return tT = r, tT; } -var rT, $3; +var rT, K3; function Ch() { - if ($3) return rT; - $3 = 1; + if (K3) return rT; + K3 = 1; var r = LU(), e = typeof self == "object" && self && self.Object === Object && self, t = r || e || Function("return this")(); return rT = t, rT; } -var nT, K3; +var nT, Z3; function t0() { - if (K3) return nT; - K3 = 1; + if (Z3) return nT; + Z3 = 1; var r = Ch(), e = r.Symbol; return nT = e, nT; } -var iT, Z3; +var iT, Q3; function Qte() { - if (Z3) return iT; - Z3 = 1; + if (Q3) return iT; + Q3 = 1; var r = t0(), e = Object.prototype, t = e.hasOwnProperty, n = e.toString, i = r ? r.toStringTag : void 0; function a(o) { var s = t.call(o, i), u = o[i]; @@ -39138,40 +39138,40 @@ function Qte() { } return iT = a, iT; } -var aT, Q3; +var aT, J3; function Jte() { - if (Q3) return aT; - Q3 = 1; + if (J3) return aT; + J3 = 1; var r = Object.prototype, e = r.toString; function t(n) { return e.call(n); } return aT = t, aT; } -var oT, J3; +var oT, eL; function r0() { - if (J3) return oT; - J3 = 1; + if (eL) return oT; + eL = 1; var r = t0(), e = Qte(), t = Jte(), n = "[object Null]", i = "[object Undefined]", a = r ? r.toStringTag : void 0; function o(s) { return s == null ? s === void 0 ? i : n : a && a in Object(s) ? e(s) : t(s); } return oT = o, oT; } -var sT, eL; +var sT, tL; function iy() { - if (eL) return sT; - eL = 1; + if (tL) return sT; + tL = 1; function r(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } return sT = r, sT; } -var uT, tL; +var uT, rL; function Y2() { - if (tL) return uT; - tL = 1; + if (rL) return uT; + rL = 1; var r = r0(), e = iy(), t = "[object AsyncFunction]", n = "[object Function]", i = "[object GeneratorFunction]", a = "[object Proxy]"; function o(s) { if (!e(s)) @@ -39181,17 +39181,17 @@ function Y2() { } return uT = o, uT; } -var lT, rL; +var lT, nL; function ere() { - if (rL) return lT; - rL = 1; + if (nL) return lT; + nL = 1; var r = Ch(), e = r["__core-js_shared__"]; return lT = e, lT; } -var cT, nL; +var cT, iL; function tre() { - if (nL) return cT; - nL = 1; + if (iL) return cT; + iL = 1; var r = ere(), e = (function() { var n = /[^.]+$/.exec(r && r.keys && r.keys.IE_PROTO || ""); return n ? "Symbol(src)_1." + n : ""; @@ -39201,10 +39201,10 @@ function tre() { } return cT = t, cT; } -var fT, iL; +var fT, aL; function jU() { - if (iL) return fT; - iL = 1; + if (aL) return fT; + aL = 1; var r = Function.prototype, e = r.toString; function t(n) { if (n != null) { @@ -39221,10 +39221,10 @@ function jU() { } return fT = t, fT; } -var dT, aL; +var dT, oL; function rre() { - if (aL) return dT; - aL = 1; + if (oL) return dT; + oL = 1; var r = Y2(), e = tre(), t = iy(), n = jU(), i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, o = Function.prototype, s = Object.prototype, u = o.toString, l = s.hasOwnProperty, c = RegExp( "^" + u.call(l).replace(i, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); @@ -39236,19 +39236,19 @@ function rre() { } return dT = f, dT; } -var hT, oL; +var hT, sL; function nre() { - if (oL) return hT; - oL = 1; + if (sL) return hT; + sL = 1; function r(e, t) { return e == null ? void 0 : e[t]; } return hT = r, hT; } -var vT, sL; +var vT, uL; function ay() { - if (sL) return vT; - sL = 1; + if (uL) return vT; + uL = 1; var r = rre(), e = nre(); function t(n, i) { var a = e(n, i); @@ -39256,44 +39256,44 @@ function ay() { } return vT = t, vT; } -var pT, uL; -function hD() { - if (uL) return pT; - uL = 1; +var pT, lL; +function vD() { + if (lL) return pT; + lL = 1; var r = ay(), e = Ch(), t = r(e, "Map"); return pT = t, pT; } -var gT, lL; +var gT, cL; function X2() { - if (lL) return gT; - lL = 1; + if (cL) return gT; + cL = 1; var r = ay(), e = r(Object, "create"); return gT = e, gT; } -var yT, cL; +var yT, fL; function ire() { - if (cL) return yT; - cL = 1; + if (fL) return yT; + fL = 1; var r = X2(); function e() { this.__data__ = r ? r(null) : {}, this.size = 0; } return yT = e, yT; } -var mT, fL; +var mT, dL; function are() { - if (fL) return mT; - fL = 1; + if (dL) return mT; + dL = 1; function r(e) { var t = this.has(e) && delete this.__data__[e]; return this.size -= t ? 1 : 0, t; } return mT = r, mT; } -var bT, dL; +var bT, hL; function ore() { - if (dL) return bT; - dL = 1; + if (hL) return bT; + hL = 1; var r = X2(), e = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty; function i(a) { var o = this.__data__; @@ -39305,10 +39305,10 @@ function ore() { } return bT = i, bT; } -var _T, hL; +var _T, vL; function sre() { - if (hL) return _T; - hL = 1; + if (vL) return _T; + vL = 1; var r = X2(), e = Object.prototype, t = e.hasOwnProperty; function n(i) { var a = this.__data__; @@ -39316,10 +39316,10 @@ function sre() { } return _T = n, _T; } -var wT, vL; +var wT, pL; function ure() { - if (vL) return wT; - vL = 1; + if (pL) return wT; + pL = 1; var r = X2(), e = "__lodash_hash_undefined__"; function t(n, i) { var a = this.__data__; @@ -39327,10 +39327,10 @@ function ure() { } return wT = t, wT; } -var xT, pL; +var xT, gL; function lre() { - if (pL) return xT; - pL = 1; + if (gL) return xT; + gL = 1; var r = ire(), e = are(), t = ore(), n = sre(), i = ure(); function a(o) { var s = -1, u = o == null ? 0 : o.length; @@ -39341,11 +39341,11 @@ function lre() { } return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, xT = a, xT; } -var ET, gL; +var ET, yL; function cre() { - if (gL) return ET; - gL = 1; - var r = lre(), e = W2(), t = hD(); + if (yL) return ET; + yL = 1; + var r = lre(), e = W2(), t = vD(); function n() { this.size = 0, this.__data__ = { hash: new r(), @@ -39355,20 +39355,20 @@ function cre() { } return ET = n, ET; } -var ST, yL; +var ST, mL; function fre() { - if (yL) return ST; - yL = 1; + if (mL) return ST; + mL = 1; function r(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } return ST = r, ST; } -var OT, mL; +var OT, bL; function $2() { - if (mL) return OT; - mL = 1; + if (bL) return OT; + bL = 1; var r = fre(); function e(t, n) { var i = t.__data__; @@ -39376,10 +39376,10 @@ function $2() { } return OT = e, OT; } -var TT, bL; +var TT, _L; function dre() { - if (bL) return TT; - bL = 1; + if (_L) return TT; + _L = 1; var r = $2(); function e(t) { var n = r(this, t).delete(t); @@ -39387,30 +39387,30 @@ function dre() { } return TT = e, TT; } -var CT, _L; +var CT, wL; function hre() { - if (_L) return CT; - _L = 1; + if (wL) return CT; + wL = 1; var r = $2(); function e(t) { return r(this, t).get(t); } return CT = e, CT; } -var AT, wL; +var AT, xL; function vre() { - if (wL) return AT; - wL = 1; + if (xL) return AT; + xL = 1; var r = $2(); function e(t) { return r(this, t).has(t); } return AT = e, AT; } -var RT, xL; +var RT, EL; function pre() { - if (xL) return RT; - xL = 1; + if (EL) return RT; + EL = 1; var r = $2(); function e(t, n) { var i = r(this, t), a = i.size; @@ -39418,10 +39418,10 @@ function pre() { } return RT = e, RT; } -var PT, EL; -function vD() { - if (EL) return PT; - EL = 1; +var PT, SL; +function pD() { + if (SL) return PT; + SL = 1; var r = cre(), e = dre(), t = hre(), n = vre(), i = pre(); function a(o) { var s = -1, u = o == null ? 0 : o.length; @@ -39432,11 +39432,11 @@ function vD() { } return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, PT = a, PT; } -var MT, SL; +var MT, OL; function gre() { - if (SL) return MT; - SL = 1; - var r = W2(), e = hD(), t = vD(), n = 200; + if (OL) return MT; + OL = 1; + var r = W2(), e = vD(), t = pD(), n = 200; function i(a, o) { var s = this.__data__; if (s instanceof r) { @@ -39449,10 +39449,10 @@ function gre() { } return MT = i, MT; } -var DT, OL; -function pD() { - if (OL) return DT; - OL = 1; +var DT, TL; +function gD() { + if (TL) return DT; + TL = 1; var r = W2(), e = Xte(), t = $te(), n = Kte(), i = Zte(), a = gre(); function o(s) { var u = this.__data__ = new r(s); @@ -39460,10 +39460,10 @@ function pD() { } return o.prototype.clear = e, o.prototype.delete = t, o.prototype.get = n, o.prototype.has = i, o.prototype.set = a, DT = o, DT; } -var kT, TL; -function gD() { - if (TL) return kT; - TL = 1; +var kT, CL; +function yD() { + if (CL) return kT; + CL = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length; ++n < i && t(e[n], n, e) !== !1; ) ; @@ -39471,10 +39471,10 @@ function gD() { } return kT = r, kT; } -var IT, CL; +var IT, AL; function BU() { - if (CL) return IT; - CL = 1; + if (AL) return IT; + AL = 1; var r = ay(), e = (function() { try { var t = r(Object, "defineProperty"); @@ -39484,10 +39484,10 @@ function BU() { })(); return IT = e, IT; } -var NT, AL; +var NT, RL; function FU() { - if (AL) return NT; - AL = 1; + if (RL) return NT; + RL = 1; var r = BU(); function e(t, n, i) { n == "__proto__" && r ? r(t, n, { @@ -39499,21 +39499,21 @@ function FU() { } return NT = e, NT; } -var LT, RL; +var LT, PL; function UU() { - if (RL) return LT; - RL = 1; - var r = FU(), e = dD(), t = Object.prototype, n = t.hasOwnProperty; + if (PL) return LT; + PL = 1; + var r = FU(), e = hD(), t = Object.prototype, n = t.hasOwnProperty; function i(a, o, s) { var u = a[o]; (!(n.call(a, o) && e(u, s)) || s === void 0 && !(o in a)) && r(a, o, s); } return LT = i, LT; } -var jT, PL; +var jT, ML; function K2() { - if (PL) return jT; - PL = 1; + if (ML) return jT; + ML = 1; var r = UU(), e = FU(); function t(n, i, a, o) { var s = !a; @@ -39526,10 +39526,10 @@ function K2() { } return jT = t, jT; } -var BT, ML; +var BT, DL; function yre() { - if (ML) return BT; - ML = 1; + if (DL) return BT; + DL = 1; function r(e, t) { for (var n = -1, i = Array(e); ++n < e; ) i[n] = t(n); @@ -39537,29 +39537,29 @@ function yre() { } return BT = r, BT; } -var FT, DL; +var FT, kL; function xv() { - if (DL) return FT; - DL = 1; + if (kL) return FT; + kL = 1; function r(e) { return e != null && typeof e == "object"; } return FT = r, FT; } -var UT, kL; +var UT, IL; function mre() { - if (kL) return UT; - kL = 1; + if (IL) return UT; + IL = 1; var r = r0(), e = xv(), t = "[object Arguments]"; function n(i) { return e(i) && r(i) == t; } return UT = n, UT; } -var zT, IL; +var zT, NL; function Z2() { - if (IL) return zT; - IL = 1; + if (NL) return zT; + NL = 1; var r = mre(), e = xv(), t = Object.prototype, n = t.hasOwnProperty, i = t.propertyIsEnumerable, a = r(/* @__PURE__ */ (function() { return arguments; })()) ? r : function(o) { @@ -39567,34 +39567,34 @@ function Z2() { }; return zT = a, zT; } -var qT, NL; +var qT, LL; function Fs() { - if (NL) return qT; - NL = 1; + if (LL) return qT; + LL = 1; var r = Array.isArray; return qT = r, qT; } -var pb = { exports: {} }, GT, LL; +var pb = { exports: {} }, GT, jL; function bre() { - if (LL) return GT; - LL = 1; + if (jL) return GT; + jL = 1; function r() { return !1; } return GT = r, GT; } pb.exports; -var jL; +var BL; function r_() { - return jL || (jL = 1, (function(r, e) { + return BL || (BL = 1, (function(r, e) { var t = Ch(), n = bre(), i = e && !e.nodeType && e, a = i && !0 && r && !r.nodeType && r, o = a && a.exports === i, s = o ? t.Buffer : void 0, u = s ? s.isBuffer : void 0, l = u || n; r.exports = l; })(pb, pb.exports)), pb.exports; } -var VT, BL; +var VT, FL; function zU() { - if (BL) return VT; - BL = 1; + if (FL) return VT; + FL = 1; var r = 9007199254740991, e = /^(?:0|[1-9]\d*)$/; function t(n, i) { var a = typeof n; @@ -39602,31 +39602,31 @@ function zU() { } return VT = t, VT; } -var HT, FL; -function yD() { - if (FL) return HT; - FL = 1; +var HT, UL; +function mD() { + if (UL) return HT; + UL = 1; var r = 9007199254740991; function e(t) { return typeof t == "number" && t > -1 && t % 1 == 0 && t <= r; } return HT = e, HT; } -var WT, UL; +var WT, zL; function _re() { - if (UL) return WT; - UL = 1; - var r = r0(), e = yD(), t = xv(), n = "[object Arguments]", i = "[object Array]", a = "[object Boolean]", o = "[object Date]", s = "[object Error]", u = "[object Function]", l = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object RegExp]", h = "[object Set]", p = "[object String]", g = "[object WeakMap]", y = "[object ArrayBuffer]", b = "[object DataView]", _ = "[object Float32Array]", m = "[object Float64Array]", x = "[object Int8Array]", E = "[object Int16Array]", O = "[object Int32Array]", S = "[object Uint8Array]", T = "[object Uint8ClampedArray]", P = "[object Uint16Array]", I = "[object Uint32Array]", k = {}; + if (zL) return WT; + zL = 1; + var r = r0(), e = mD(), t = xv(), n = "[object Arguments]", i = "[object Array]", a = "[object Boolean]", o = "[object Date]", s = "[object Error]", u = "[object Function]", l = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object RegExp]", h = "[object Set]", p = "[object String]", g = "[object WeakMap]", y = "[object ArrayBuffer]", b = "[object DataView]", _ = "[object Float32Array]", m = "[object Float64Array]", x = "[object Int8Array]", E = "[object Int16Array]", O = "[object Int32Array]", S = "[object Uint8Array]", T = "[object Uint8ClampedArray]", P = "[object Uint16Array]", I = "[object Uint32Array]", k = {}; k[_] = k[m] = k[x] = k[E] = k[O] = k[S] = k[T] = k[P] = k[I] = !0, k[n] = k[i] = k[y] = k[a] = k[b] = k[o] = k[s] = k[u] = k[l] = k[c] = k[f] = k[d] = k[h] = k[p] = k[g] = !1; function L(B) { return t(B) && e(B.length) && !!k[r(B)]; } return WT = L, WT; } -var YT, zL; -function mD() { - if (zL) return YT; - zL = 1; +var YT, qL; +function bD() { + if (qL) return YT; + qL = 1; function r(e) { return function(t) { return e(t); @@ -39636,9 +39636,9 @@ function mD() { } var gb = { exports: {} }; gb.exports; -var qL; -function bD() { - return qL || (qL = 1, (function(r, e) { +var GL; +function _D() { + return GL || (GL = 1, (function(r, e) { var t = LU(), n = e && !e.nodeType && e, i = n && !0 && r && !r.nodeType && r, a = i && i.exports === n, o = a && t.process, s = (function() { try { var u = i && i.require && i.require("util").types; @@ -39649,17 +39649,17 @@ function bD() { r.exports = s; })(gb, gb.exports)), gb.exports; } -var XT, GL; +var XT, VL; function Q2() { - if (GL) return XT; - GL = 1; - var r = _re(), e = mD(), t = bD(), n = t && t.isTypedArray, i = n ? e(n) : r; + if (VL) return XT; + VL = 1; + var r = _re(), e = bD(), t = _D(), n = t && t.isTypedArray, i = n ? e(n) : r; return XT = i, XT; } -var $T, VL; +var $T, HL; function qU() { - if (VL) return $T; - VL = 1; + if (HL) return $T; + HL = 1; var r = yre(), e = Z2(), t = Fs(), n = r_(), i = zU(), a = Q2(), o = Object.prototype, s = o.hasOwnProperty; function u(l, c) { var f = t(l), d = !f && e(l), h = !f && !d && n(l), p = !f && !d && !h && a(l), g = f || d || h || p, y = g ? r(l.length, String) : [], b = y.length; @@ -39673,10 +39673,10 @@ function qU() { } return $T = u, $T; } -var KT, HL; +var KT, WL; function J2() { - if (HL) return KT; - HL = 1; + if (WL) return KT; + WL = 1; var r = Object.prototype; function e(t) { var n = t && t.constructor, i = typeof n == "function" && n.prototype || r; @@ -39684,10 +39684,10 @@ function J2() { } return KT = e, KT; } -var ZT, WL; +var ZT, YL; function GU() { - if (WL) return ZT; - WL = 1; + if (YL) return ZT; + YL = 1; function r(e, t) { return function(n) { return e(t(n)); @@ -39695,17 +39695,17 @@ function GU() { } return ZT = r, ZT; } -var QT, YL; +var QT, XL; function wre() { - if (YL) return QT; - YL = 1; + if (XL) return QT; + XL = 1; var r = GU(), e = r(Object.keys, Object); return QT = e, QT; } -var JT, XL; -function _D() { - if (XL) return JT; - XL = 1; +var JT, $L; +function wD() { + if ($L) return JT; + $L = 1; var r = J2(), e = wre(), t = Object.prototype, n = t.hasOwnProperty; function i(a) { if (!r(a)) @@ -39717,40 +39717,40 @@ function _D() { } return JT = i, JT; } -var eC, $L; +var eC, KL; function oy() { - if ($L) return eC; - $L = 1; - var r = Y2(), e = yD(); + if (KL) return eC; + KL = 1; + var r = Y2(), e = mD(); function t(n) { return n != null && e(n.length) && !r(n); } return eC = t, eC; } -var tC, KL; +var tC, ZL; function sy() { - if (KL) return tC; - KL = 1; - var r = qU(), e = _D(), t = oy(); + if (ZL) return tC; + ZL = 1; + var r = qU(), e = wD(), t = oy(); function n(i) { return t(i) ? r(i) : e(i); } return tC = n, tC; } -var rC, ZL; +var rC, QL; function xre() { - if (ZL) return rC; - ZL = 1; + if (QL) return rC; + QL = 1; var r = K2(), e = sy(); function t(n, i) { return n && r(i, e(i), n); } return rC = t, rC; } -var nC, QL; +var nC, JL; function Ere() { - if (QL) return nC; - QL = 1; + if (JL) return nC; + JL = 1; function r(e) { var t = []; if (e != null) @@ -39760,10 +39760,10 @@ function Ere() { } return nC = r, nC; } -var iC, JL; +var iC, e4; function Sre() { - if (JL) return iC; - JL = 1; + if (e4) return iC; + e4 = 1; var r = iy(), e = J2(), t = Ere(), n = Object.prototype, i = n.hasOwnProperty; function a(o) { if (!r(o)) @@ -39775,21 +39775,21 @@ function Sre() { } return iC = a, iC; } -var aC, e4; -function wD() { - if (e4) return aC; - e4 = 1; +var aC, t4; +function xD() { + if (t4) return aC; + t4 = 1; var r = qU(), e = Sre(), t = oy(); function n(i) { return t(i) ? r(i, !0) : e(i); } return aC = n, aC; } -var oC, t4; +var oC, r4; function Ore() { - if (t4) return oC; - t4 = 1; - var r = K2(), e = wD(); + if (r4) return oC; + r4 = 1; + var r = K2(), e = xD(); function t(n, i) { return n && r(i, e(i), n); } @@ -39797,9 +39797,9 @@ function Ore() { } var yb = { exports: {} }; yb.exports; -var r4; +var n4; function Tre() { - return r4 || (r4 = 1, (function(r, e) { + return n4 || (n4 = 1, (function(r, e) { var t = Ch(), n = e && !e.nodeType && e, i = n && !0 && r && !r.nodeType && r, a = i && i.exports === n, o = a ? t.Buffer : void 0, s = o ? o.allocUnsafe : void 0; function u(l, c) { if (c) @@ -39810,10 +39810,10 @@ function Tre() { r.exports = u; })(yb, yb.exports)), yb.exports; } -var sC, n4; +var sC, i4; function Cre() { - if (n4) return sC; - n4 = 1; + if (i4) return sC; + i4 = 1; function r(e, t) { var n = -1, i = e.length; for (t || (t = Array(i)); ++n < i; ) @@ -39822,10 +39822,10 @@ function Cre() { } return sC = r, sC; } -var uC, i4; +var uC, a4; function VU() { - if (i4) return uC; - i4 = 1; + if (a4) return uC; + a4 = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length, a = 0, o = []; ++n < i; ) { var s = e[n]; @@ -39835,19 +39835,19 @@ function VU() { } return uC = r, uC; } -var lC, a4; +var lC, o4; function HU() { - if (a4) return lC; - a4 = 1; + if (o4) return lC; + o4 = 1; function r() { return []; } return lC = r, lC; } -var cC, o4; -function xD() { - if (o4) return cC; - o4 = 1; +var cC, s4; +function ED() { + if (s4) return cC; + s4 = 1; var r = VU(), e = HU(), t = Object.prototype, n = t.propertyIsEnumerable, i = Object.getOwnPropertySymbols, a = i ? function(o) { return o == null ? [] : (o = Object(o), r(i(o), function(s) { return n.call(o, s); @@ -39855,20 +39855,20 @@ function xD() { } : e; return cC = a, cC; } -var fC, s4; +var fC, u4; function Are() { - if (s4) return fC; - s4 = 1; - var r = K2(), e = xD(); + if (u4) return fC; + u4 = 1; + var r = K2(), e = ED(); function t(n, i) { return r(n, e(n), i); } return fC = t, fC; } -var dC, u4; -function ED() { - if (u4) return dC; - u4 = 1; +var dC, l4; +function SD() { + if (l4) return dC; + l4 = 1; function r(e, t) { for (var n = -1, i = t.length, a = e.length; ++n < i; ) e[a + n] = t[n]; @@ -39876,98 +39876,98 @@ function ED() { } return dC = r, dC; } -var hC, l4; -function SD() { - if (l4) return hC; - l4 = 1; +var hC, c4; +function OD() { + if (c4) return hC; + c4 = 1; var r = GU(), e = r(Object.getPrototypeOf, Object); return hC = e, hC; } -var vC, c4; +var vC, f4; function WU() { - if (c4) return vC; - c4 = 1; - var r = ED(), e = SD(), t = xD(), n = HU(), i = Object.getOwnPropertySymbols, a = i ? function(o) { + if (f4) return vC; + f4 = 1; + var r = SD(), e = OD(), t = ED(), n = HU(), i = Object.getOwnPropertySymbols, a = i ? function(o) { for (var s = []; o; ) r(s, t(o)), o = e(o); return s; } : n; return vC = a, vC; } -var pC, f4; +var pC, d4; function Rre() { - if (f4) return pC; - f4 = 1; + if (d4) return pC; + d4 = 1; var r = K2(), e = WU(); function t(n, i) { return r(n, e(n), i); } return pC = t, pC; } -var gC, d4; +var gC, h4; function YU() { - if (d4) return gC; - d4 = 1; - var r = ED(), e = Fs(); + if (h4) return gC; + h4 = 1; + var r = SD(), e = Fs(); function t(n, i, a) { var o = i(n); return e(n) ? o : r(o, a(n)); } return gC = t, gC; } -var yC, h4; +var yC, v4; function XU() { - if (h4) return yC; - h4 = 1; - var r = YU(), e = xD(), t = sy(); + if (v4) return yC; + v4 = 1; + var r = YU(), e = ED(), t = sy(); function n(i) { return r(i, t, e); } return yC = n, yC; } -var mC, v4; +var mC, p4; function Pre() { - if (v4) return mC; - v4 = 1; - var r = YU(), e = WU(), t = wD(); + if (p4) return mC; + p4 = 1; + var r = YU(), e = WU(), t = xD(); function n(i) { return r(i, t, e); } return mC = n, mC; } -var bC, p4; +var bC, g4; function Mre() { - if (p4) return bC; - p4 = 1; + if (g4) return bC; + g4 = 1; var r = ay(), e = Ch(), t = r(e, "DataView"); return bC = t, bC; } -var _C, g4; +var _C, y4; function Dre() { - if (g4) return _C; - g4 = 1; + if (y4) return _C; + y4 = 1; var r = ay(), e = Ch(), t = r(e, "Promise"); return _C = t, _C; } -var wC, y4; +var wC, m4; function $U() { - if (y4) return wC; - y4 = 1; + if (m4) return wC; + m4 = 1; var r = ay(), e = Ch(), t = r(e, "Set"); return wC = t, wC; } -var xC, m4; +var xC, b4; function kre() { - if (m4) return xC; - m4 = 1; + if (b4) return xC; + b4 = 1; var r = ay(), e = Ch(), t = r(e, "WeakMap"); return xC = t, xC; } -var EC, b4; +var EC, _4; function n0() { - if (b4) return EC; - b4 = 1; - var r = Mre(), e = hD(), t = Dre(), n = $U(), i = kre(), a = r0(), o = jU(), s = "[object Map]", u = "[object Object]", l = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", d = "[object DataView]", h = o(r), p = o(e), g = o(t), y = o(n), b = o(i), _ = a; + if (_4) return EC; + _4 = 1; + var r = Mre(), e = vD(), t = Dre(), n = $U(), i = kre(), a = r0(), o = jU(), s = "[object Map]", u = "[object Object]", l = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", d = "[object DataView]", h = o(r), p = o(e), g = o(t), y = o(n), b = o(i), _ = a; return (r && _(new r(new ArrayBuffer(1))) != d || e && _(new e()) != s || t && _(t.resolve()) != l || n && _(new n()) != c || i && _(new i()) != f) && (_ = function(m) { var x = a(m), E = x == u ? m.constructor : void 0, O = E ? o(E) : ""; if (O) @@ -39986,10 +39986,10 @@ function n0() { return x; }), EC = _, EC; } -var SC, _4; +var SC, w4; function Ire() { - if (_4) return SC; - _4 = 1; + if (w4) return SC; + w4 = 1; var r = Object.prototype, e = r.hasOwnProperty; function t(n) { var i = n.length, a = new n.constructor(i); @@ -39997,17 +39997,17 @@ function Ire() { } return SC = t, SC; } -var OC, w4; +var OC, x4; function KU() { - if (w4) return OC; - w4 = 1; + if (x4) return OC; + x4 = 1; var r = Ch(), e = r.Uint8Array; return OC = e, OC; } -var TC, x4; -function OD() { - if (x4) return TC; - x4 = 1; +var TC, E4; +function TD() { + if (E4) return TC; + E4 = 1; var r = KU(); function e(t) { var n = new t.constructor(t.byteLength); @@ -40015,21 +40015,21 @@ function OD() { } return TC = e, TC; } -var CC, E4; +var CC, S4; function Nre() { - if (E4) return CC; - E4 = 1; - var r = OD(); + if (S4) return CC; + S4 = 1; + var r = TD(); function e(t, n) { var i = n ? r(t.buffer) : t.buffer; return new t.constructor(i, t.byteOffset, t.byteLength); } return CC = e, CC; } -var AC, S4; +var AC, O4; function Lre() { - if (S4) return AC; - S4 = 1; + if (O4) return AC; + O4 = 1; var r = /\w*$/; function e(t) { var n = new t.constructor(t.source, r.exec(t)); @@ -40037,32 +40037,32 @@ function Lre() { } return AC = e, AC; } -var RC, O4; +var RC, T4; function jre() { - if (O4) return RC; - O4 = 1; + if (T4) return RC; + T4 = 1; var r = t0(), e = r ? r.prototype : void 0, t = e ? e.valueOf : void 0; function n(i) { return t ? Object(t.call(i)) : {}; } return RC = n, RC; } -var PC, T4; +var PC, C4; function Bre() { - if (T4) return PC; - T4 = 1; - var r = OD(); + if (C4) return PC; + C4 = 1; + var r = TD(); function e(t, n) { var i = n ? r(t.buffer) : t.buffer; return new t.constructor(i, t.byteOffset, t.length); } return PC = e, PC; } -var MC, C4; +var MC, A4; function Fre() { - if (C4) return MC; - C4 = 1; - var r = OD(), e = Nre(), t = Lre(), n = jre(), i = Bre(), a = "[object Boolean]", o = "[object Date]", s = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", h = "[object ArrayBuffer]", p = "[object DataView]", g = "[object Float32Array]", y = "[object Float64Array]", b = "[object Int8Array]", _ = "[object Int16Array]", m = "[object Int32Array]", x = "[object Uint8Array]", E = "[object Uint8ClampedArray]", O = "[object Uint16Array]", S = "[object Uint32Array]"; + if (A4) return MC; + A4 = 1; + var r = TD(), e = Nre(), t = Lre(), n = jre(), i = Bre(), a = "[object Boolean]", o = "[object Date]", s = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", h = "[object ArrayBuffer]", p = "[object DataView]", g = "[object Float32Array]", y = "[object Float64Array]", b = "[object Int8Array]", _ = "[object Int16Array]", m = "[object Int32Array]", x = "[object Uint8Array]", E = "[object Uint8ClampedArray]", O = "[object Uint16Array]", S = "[object Uint32Array]"; function T(P, I, k) { var L = P.constructor; switch (I) { @@ -40098,10 +40098,10 @@ function Fre() { } return MC = T, MC; } -var DC, A4; +var DC, R4; function ZU() { - if (A4) return DC; - A4 = 1; + if (R4) return DC; + R4 = 1; var r = iy(), e = Object.create, t = /* @__PURE__ */ (function() { function n() { } @@ -40117,55 +40117,55 @@ function ZU() { })(); return DC = t, DC; } -var kC, R4; +var kC, P4; function Ure() { - if (R4) return kC; - R4 = 1; - var r = ZU(), e = SD(), t = J2(); + if (P4) return kC; + P4 = 1; + var r = ZU(), e = OD(), t = J2(); function n(i) { return typeof i.constructor == "function" && !t(i) ? r(e(i)) : {}; } return kC = n, kC; } -var IC, P4; +var IC, M4; function zre() { - if (P4) return IC; - P4 = 1; + if (M4) return IC; + M4 = 1; var r = n0(), e = xv(), t = "[object Map]"; function n(i) { return e(i) && r(i) == t; } return IC = n, IC; } -var NC, M4; +var NC, D4; function qre() { - if (M4) return NC; - M4 = 1; - var r = zre(), e = mD(), t = bD(), n = t && t.isMap, i = n ? e(n) : r; + if (D4) return NC; + D4 = 1; + var r = zre(), e = bD(), t = _D(), n = t && t.isMap, i = n ? e(n) : r; return NC = i, NC; } -var LC, D4; +var LC, k4; function Gre() { - if (D4) return LC; - D4 = 1; + if (k4) return LC; + k4 = 1; var r = n0(), e = xv(), t = "[object Set]"; function n(i) { return e(i) && r(i) == t; } return LC = n, LC; } -var jC, k4; +var jC, I4; function Vre() { - if (k4) return jC; - k4 = 1; - var r = Gre(), e = mD(), t = bD(), n = t && t.isSet, i = n ? e(n) : r; + if (I4) return jC; + I4 = 1; + var r = Gre(), e = bD(), t = _D(), n = t && t.isSet, i = n ? e(n) : r; return jC = i, jC; } -var BC, I4; +var BC, N4; function Hre() { - if (I4) return BC; - I4 = 1; - var r = pD(), e = gD(), t = UU(), n = xre(), i = Ore(), a = Tre(), o = Cre(), s = Are(), u = Rre(), l = XU(), c = Pre(), f = n0(), d = Ire(), h = Fre(), p = Ure(), g = Fs(), y = r_(), b = qre(), _ = iy(), m = Vre(), x = sy(), E = wD(), O = 1, S = 2, T = 4, P = "[object Arguments]", I = "[object Array]", k = "[object Boolean]", L = "[object Date]", B = "[object Error]", j = "[object Function]", z = "[object GeneratorFunction]", H = "[object Map]", q = "[object Number]", W = "[object Object]", $ = "[object RegExp]", J = "[object Set]", X = "[object String]", Z = "[object Symbol]", ue = "[object WeakMap]", re = "[object ArrayBuffer]", ne = "[object DataView]", le = "[object Float32Array]", ce = "[object Float64Array]", pe = "[object Int8Array]", fe = "[object Int16Array]", se = "[object Int32Array]", de = "[object Uint8Array]", ge = "[object Uint8ClampedArray]", Oe = "[object Uint16Array]", ke = "[object Uint32Array]", De = {}; + if (N4) return BC; + N4 = 1; + var r = gD(), e = yD(), t = UU(), n = xre(), i = Ore(), a = Tre(), o = Cre(), s = Are(), u = Rre(), l = XU(), c = Pre(), f = n0(), d = Ire(), h = Fre(), p = Ure(), g = Fs(), y = r_(), b = qre(), _ = iy(), m = Vre(), x = sy(), E = xD(), O = 1, S = 2, T = 4, P = "[object Arguments]", I = "[object Array]", k = "[object Boolean]", L = "[object Date]", B = "[object Error]", j = "[object Function]", z = "[object GeneratorFunction]", H = "[object Map]", q = "[object Number]", W = "[object Object]", $ = "[object RegExp]", J = "[object Set]", X = "[object String]", Z = "[object Symbol]", ue = "[object WeakMap]", re = "[object ArrayBuffer]", ne = "[object DataView]", le = "[object Float32Array]", ce = "[object Float64Array]", pe = "[object Int8Array]", fe = "[object Int16Array]", se = "[object Int32Array]", de = "[object Uint8Array]", ge = "[object Uint8ClampedArray]", Oe = "[object Uint16Array]", ke = "[object Uint32Array]", De = {}; De[P] = De[I] = De[re] = De[ne] = De[k] = De[L] = De[le] = De[ce] = De[pe] = De[fe] = De[se] = De[H] = De[q] = De[W] = De[$] = De[J] = De[X] = De[Z] = De[de] = De[ge] = De[Oe] = De[ke] = !0, De[B] = De[j] = De[ue] = !1; function Ne(Ce, Y, Q, ie, we, Ee) { var Me, Ie = Y & O, Ye = Y & S, ot = Y & T; @@ -40206,20 +40206,20 @@ function Hre() { } return BC = Ne, BC; } -var FC, N4; +var FC, L4; function Wre() { - if (N4) return FC; - N4 = 1; + if (L4) return FC; + L4 = 1; var r = Hre(), e = 4; function t(n) { return r(n, e); } return FC = t, FC; } -var UC, L4; +var UC, j4; function QU() { - if (L4) return UC; - L4 = 1; + if (j4) return UC; + j4 = 1; function r(e) { return function() { return e; @@ -40227,10 +40227,10 @@ function QU() { } return UC = r, UC; } -var zC, j4; +var zC, B4; function Yre() { - if (j4) return zC; - j4 = 1; + if (B4) return zC; + B4 = 1; function r(e) { return function(t, n, i) { for (var a = -1, o = Object(t), s = i(t), u = s.length; u--; ) { @@ -40243,27 +40243,27 @@ function Yre() { } return zC = r, zC; } -var qC, B4; +var qC, F4; function Xre() { - if (B4) return qC; - B4 = 1; + if (F4) return qC; + F4 = 1; var r = Yre(), e = r(); return qC = e, qC; } -var GC, F4; +var GC, U4; function JU() { - if (F4) return GC; - F4 = 1; + if (U4) return GC; + U4 = 1; var r = Xre(), e = sy(); function t(n, i) { return n && r(n, i, e); } return GC = t, GC; } -var VC, U4; +var VC, z4; function $re() { - if (U4) return VC; - U4 = 1; + if (z4) return VC; + z4 = 1; var r = oy(); function e(t, n) { return function(i, a) { @@ -40278,51 +40278,51 @@ function $re() { } return VC = e, VC; } -var HC, z4; +var HC, q4; function eE() { - if (z4) return HC; - z4 = 1; + if (q4) return HC; + q4 = 1; var r = JU(), e = $re(), t = e(r); return HC = t, HC; } -var WC, q4; +var WC, G4; function tE() { - if (q4) return WC; - q4 = 1; + if (G4) return WC; + G4 = 1; function r(e) { return e; } return WC = r, WC; } -var YC, G4; +var YC, V4; function Kre() { - if (G4) return YC; - G4 = 1; + if (V4) return YC; + V4 = 1; var r = tE(); function e(t) { return typeof t == "function" ? t : r; } return YC = e, YC; } -var XC, V4; +var XC, H4; function Zre() { - if (V4) return XC; - V4 = 1; - var r = gD(), e = eE(), t = Kre(), n = Fs(); + if (H4) return XC; + H4 = 1; + var r = yD(), e = eE(), t = Kre(), n = Fs(); function i(a, o) { var s = n(a) ? r : e; return s(a, t(o)); } return XC = i, XC; } -var $C, H4; +var $C, W4; function Qre() { - return H4 || (H4 = 1, $C = Zre()), $C; + return W4 || (W4 = 1, $C = Zre()), $C; } -var KC, W4; +var KC, Y4; function Jre() { - if (W4) return KC; - W4 = 1; + if (Y4) return KC; + Y4 = 1; var r = eE(); function e(t, n) { var i = []; @@ -40332,30 +40332,30 @@ function Jre() { } return KC = e, KC; } -var ZC, Y4; +var ZC, X4; function ene() { - if (Y4) return ZC; - Y4 = 1; + if (X4) return ZC; + X4 = 1; var r = "__lodash_hash_undefined__"; function e(t) { return this.__data__.set(t, r), this; } return ZC = e, ZC; } -var QC, X4; +var QC, $4; function tne() { - if (X4) return QC; - X4 = 1; + if ($4) return QC; + $4 = 1; function r(e) { return this.__data__.has(e); } return QC = r, QC; } -var JC, $4; +var JC, K4; function ez() { - if ($4) return JC; - $4 = 1; - var r = vD(), e = ene(), t = tne(); + if (K4) return JC; + K4 = 1; + var r = pD(), e = ene(), t = tne(); function n(i) { var a = -1, o = i == null ? 0 : i.length; for (this.__data__ = new r(); ++a < o; ) @@ -40363,10 +40363,10 @@ function ez() { } return n.prototype.add = n.prototype.push = e, n.prototype.has = t, JC = n, JC; } -var eA, K4; +var eA, Z4; function rne() { - if (K4) return eA; - K4 = 1; + if (Z4) return eA; + Z4 = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length; ++n < i; ) if (t(e[n], n, e)) @@ -40375,19 +40375,19 @@ function rne() { } return eA = r, eA; } -var tA, Z4; +var tA, Q4; function tz() { - if (Z4) return tA; - Z4 = 1; + if (Q4) return tA; + Q4 = 1; function r(e, t) { return e.has(t); } return tA = r, tA; } -var rA, Q4; +var rA, J4; function rz() { - if (Q4) return rA; - Q4 = 1; + if (J4) return rA; + J4 = 1; var r = ez(), e = rne(), t = tz(), n = 1, i = 2; function a(o, s, u, l, c, f) { var d = u & n, h = o.length, p = s.length; @@ -40424,10 +40424,10 @@ function rz() { } return rA = a, rA; } -var nA, J4; +var nA, ej; function nne() { - if (J4) return nA; - J4 = 1; + if (ej) return nA; + ej = 1; function r(e) { var t = -1, n = Array(e.size); return e.forEach(function(i, a) { @@ -40436,10 +40436,10 @@ function nne() { } return nA = r, nA; } -var iA, ej; -function TD() { - if (ej) return iA; - ej = 1; +var iA, tj; +function CD() { + if (tj) return iA; + tj = 1; function r(e) { var t = -1, n = Array(e.size); return e.forEach(function(i) { @@ -40448,11 +40448,11 @@ function TD() { } return iA = r, iA; } -var aA, tj; +var aA, rj; function ine() { - if (tj) return aA; - tj = 1; - var r = t0(), e = KU(), t = dD(), n = rz(), i = nne(), a = TD(), o = 1, s = 2, u = "[object Boolean]", l = "[object Date]", c = "[object Error]", f = "[object Map]", d = "[object Number]", h = "[object RegExp]", p = "[object Set]", g = "[object String]", y = "[object Symbol]", b = "[object ArrayBuffer]", _ = "[object DataView]", m = r ? r.prototype : void 0, x = m ? m.valueOf : void 0; + if (rj) return aA; + rj = 1; + var r = t0(), e = KU(), t = hD(), n = rz(), i = nne(), a = CD(), o = 1, s = 2, u = "[object Boolean]", l = "[object Date]", c = "[object Error]", f = "[object Map]", d = "[object Number]", h = "[object RegExp]", p = "[object Set]", g = "[object String]", y = "[object Symbol]", b = "[object ArrayBuffer]", _ = "[object DataView]", m = r ? r.prototype : void 0, x = m ? m.valueOf : void 0; function E(O, S, T, P, I, k, L) { switch (T) { case _: @@ -40490,10 +40490,10 @@ function ine() { } return aA = E, aA; } -var oA, rj; +var oA, nj; function ane() { - if (rj) return oA; - rj = 1; + if (nj) return oA; + nj = 1; var r = XU(), e = 1, t = Object.prototype, n = t.hasOwnProperty; function i(a, o, s, u, l, c) { var f = s & e, d = r(a), h = d.length, p = r(o), g = p.length; @@ -40528,11 +40528,11 @@ function ane() { } return oA = i, oA; } -var sA, nj; +var sA, ij; function one() { - if (nj) return sA; - nj = 1; - var r = pD(), e = rz(), t = ine(), n = ane(), i = n0(), a = Fs(), o = r_(), s = Q2(), u = 1, l = "[object Arguments]", c = "[object Array]", f = "[object Object]", d = Object.prototype, h = d.hasOwnProperty; + if (ij) return sA; + ij = 1; + var r = gD(), e = rz(), t = ine(), n = ane(), i = n0(), a = Fs(), o = r_(), s = Q2(), u = 1, l = "[object Arguments]", c = "[object Array]", f = "[object Object]", d = Object.prototype, h = d.hasOwnProperty; function p(g, y, b, _, m, x) { var E = a(g), O = a(y), S = E ? c : i(g), T = O ? c : i(y); S = S == l ? f : S, T = T == l ? f : T; @@ -40555,21 +40555,21 @@ function one() { } return sA = p, sA; } -var uA, ij; +var uA, aj; function nz() { - if (ij) return uA; - ij = 1; + if (aj) return uA; + aj = 1; var r = one(), e = xv(); function t(n, i, a, o, s) { return n === i ? !0 : n == null || i == null || !e(n) && !e(i) ? n !== n && i !== i : r(n, i, a, o, t, s); } return uA = t, uA; } -var lA, aj; +var lA, oj; function sne() { - if (aj) return lA; - aj = 1; - var r = pD(), e = nz(), t = 1, n = 2; + if (oj) return lA; + oj = 1; + var r = gD(), e = nz(), t = 1, n = 2; function i(a, o, s, u) { var l = s.length, c = l, f = !u; if (a == null) @@ -40597,20 +40597,20 @@ function sne() { } return lA = i, lA; } -var cA, oj; +var cA, sj; function iz() { - if (oj) return cA; - oj = 1; + if (sj) return cA; + sj = 1; var r = iy(); function e(t) { return t === t && !r(t); } return cA = e, cA; } -var fA, sj; +var fA, uj; function une() { - if (sj) return fA; - sj = 1; + if (uj) return fA; + uj = 1; var r = iz(), e = sy(); function t(n) { for (var i = e(n), a = i.length; a--; ) { @@ -40621,10 +40621,10 @@ function une() { } return fA = t, fA; } -var dA, uj; +var dA, lj; function az() { - if (uj) return dA; - uj = 1; + if (lj) return dA; + lj = 1; function r(e, t) { return function(n) { return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n)); @@ -40632,10 +40632,10 @@ function az() { } return dA = r, dA; } -var hA, lj; +var hA, cj; function lne() { - if (lj) return hA; - lj = 1; + if (cj) return hA; + cj = 1; var r = sne(), e = une(), t = az(); function n(i) { var a = e(i); @@ -40645,21 +40645,21 @@ function lne() { } return hA = n, hA; } -var vA, cj; -function CD() { - if (cj) return vA; - cj = 1; +var vA, fj; +function AD() { + if (fj) return vA; + fj = 1; var r = r0(), e = xv(), t = "[object Symbol]"; function n(i) { return typeof i == "symbol" || e(i) && r(i) == t; } return vA = n, vA; } -var pA, fj; -function AD() { - if (fj) return pA; - fj = 1; - var r = Fs(), e = CD(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/; +var pA, dj; +function RD() { + if (dj) return pA; + dj = 1; + var r = Fs(), e = AD(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/; function i(a, o) { if (r(a)) return !1; @@ -40668,11 +40668,11 @@ function AD() { } return pA = i, pA; } -var gA, dj; +var gA, hj; function cne() { - if (dj) return gA; - dj = 1; - var r = vD(), e = "Expected a function"; + if (hj) return gA; + hj = 1; + var r = pD(), e = "Expected a function"; function t(n, i) { if (typeof n != "function" || i != null && typeof i != "function") throw new TypeError(e); @@ -40687,10 +40687,10 @@ function cne() { } return t.Cache = r, gA = t, gA; } -var yA, hj; +var yA, vj; function fne() { - if (hj) return yA; - hj = 1; + if (vj) return yA; + vj = 1; var r = cne(), e = 500; function t(n) { var i = r(n, function(o) { @@ -40700,10 +40700,10 @@ function fne() { } return yA = t, yA; } -var mA, vj; +var mA, pj; function dne() { - if (vj) return mA; - vj = 1; + if (pj) return mA; + pj = 1; var r = fne(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, t = /\\(\\)?/g, n = r(function(i) { var a = []; return i.charCodeAt(0) === 46 && a.push(""), i.replace(e, function(o, s, u, l) { @@ -40712,10 +40712,10 @@ function dne() { }); return mA = n, mA; } -var bA, pj; -function RD() { - if (pj) return bA; - pj = 1; +var bA, gj; +function PD() { + if (gj) return bA; + gj = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length, a = Array(i); ++n < i; ) a[n] = t(e[n], n, e); @@ -40723,11 +40723,11 @@ function RD() { } return bA = r, bA; } -var _A, gj; +var _A, yj; function hne() { - if (gj) return _A; - gj = 1; - var r = t0(), e = RD(), t = Fs(), n = CD(), i = r ? r.prototype : void 0, a = i ? i.toString : void 0; + if (yj) return _A; + yj = 1; + var r = t0(), e = PD(), t = Fs(), n = AD(), i = r ? r.prototype : void 0, a = i ? i.toString : void 0; function o(s) { if (typeof s == "string") return s; @@ -40740,31 +40740,31 @@ function hne() { } return _A = o, _A; } -var wA, yj; +var wA, mj; function vne() { - if (yj) return wA; - yj = 1; + if (mj) return wA; + mj = 1; var r = hne(); function e(t) { return t == null ? "" : r(t); } return wA = e, wA; } -var xA, mj; +var xA, bj; function oz() { - if (mj) return xA; - mj = 1; - var r = Fs(), e = AD(), t = dne(), n = vne(); + if (bj) return xA; + bj = 1; + var r = Fs(), e = RD(), t = dne(), n = vne(); function i(a, o) { return r(a) ? a : e(a, o) ? [a] : t(n(a)); } return xA = i, xA; } -var EA, bj; +var EA, _j; function rE() { - if (bj) return EA; - bj = 1; - var r = CD(); + if (_j) return EA; + _j = 1; + var r = AD(); function e(t) { if (typeof t == "string" || r(t)) return t; @@ -40773,10 +40773,10 @@ function rE() { } return EA = e, EA; } -var SA, _j; +var SA, wj; function sz() { - if (_j) return SA; - _j = 1; + if (wj) return SA; + wj = 1; var r = oz(), e = rE(); function t(n, i) { i = r(i, n); @@ -40786,10 +40786,10 @@ function sz() { } return SA = t, SA; } -var OA, wj; +var OA, xj; function pne() { - if (wj) return OA; - wj = 1; + if (xj) return OA; + xj = 1; var r = sz(); function e(t, n, i) { var a = t == null ? void 0 : r(t, n); @@ -40797,20 +40797,20 @@ function pne() { } return OA = e, OA; } -var TA, xj; +var TA, Ej; function gne() { - if (xj) return TA; - xj = 1; + if (Ej) return TA; + Ej = 1; function r(e, t) { return e != null && t in Object(e); } return TA = r, TA; } -var CA, Ej; +var CA, Sj; function uz() { - if (Ej) return CA; - Ej = 1; - var r = oz(), e = Z2(), t = Fs(), n = zU(), i = yD(), a = rE(); + if (Sj) return CA; + Sj = 1; + var r = oz(), e = Z2(), t = Fs(), n = zU(), i = mD(), a = rE(); function o(s, u, l) { u = r(u, s); for (var c = -1, f = u.length, d = !1; ++c < f; ) { @@ -40823,21 +40823,21 @@ function uz() { } return CA = o, CA; } -var AA, Sj; +var AA, Oj; function yne() { - if (Sj) return AA; - Sj = 1; + if (Oj) return AA; + Oj = 1; var r = gne(), e = uz(); function t(n, i) { return n != null && e(n, i, r); } return AA = t, AA; } -var RA, Oj; +var RA, Tj; function mne() { - if (Oj) return RA; - Oj = 1; - var r = nz(), e = pne(), t = yne(), n = AD(), i = iz(), a = az(), o = rE(), s = 1, u = 2; + if (Tj) return RA; + Tj = 1; + var r = nz(), e = pne(), t = yne(), n = RD(), i = iz(), a = az(), o = rE(), s = 1, u = 2; function l(c, f) { return n(c) && i(f) ? a(o(c), f) : function(d) { var h = e(d, c); @@ -40846,10 +40846,10 @@ function mne() { } return RA = l, RA; } -var PA, Tj; +var PA, Cj; function lz() { - if (Tj) return PA; - Tj = 1; + if (Cj) return PA; + Cj = 1; function r(e) { return function(t) { return t == null ? void 0 : t[e]; @@ -40857,10 +40857,10 @@ function lz() { } return PA = r, PA; } -var MA, Cj; +var MA, Aj; function bne() { - if (Cj) return MA; - Cj = 1; + if (Aj) return MA; + Aj = 1; var r = sz(); function e(t) { return function(n) { @@ -40869,30 +40869,30 @@ function bne() { } return MA = e, MA; } -var DA, Aj; +var DA, Rj; function _ne() { - if (Aj) return DA; - Aj = 1; - var r = lz(), e = bne(), t = AD(), n = rE(); + if (Rj) return DA; + Rj = 1; + var r = lz(), e = bne(), t = RD(), n = rE(); function i(a) { return t(a) ? r(n(a)) : e(a); } return DA = i, DA; } -var kA, Rj; +var kA, Pj; function nE() { - if (Rj) return kA; - Rj = 1; + if (Pj) return kA; + Pj = 1; var r = lne(), e = mne(), t = tE(), n = Fs(), i = _ne(); function a(o) { return typeof o == "function" ? o : o == null ? t : typeof o == "object" ? n(o) ? e(o[0], o[1]) : r(o) : i(o); } return kA = a, kA; } -var IA, Pj; +var IA, Mj; function wne() { - if (Pj) return IA; - Pj = 1; + if (Mj) return IA; + Mj = 1; var r = VU(), e = Jre(), t = nE(), n = Fs(); function i(a, o) { var s = n(a) ? r : e; @@ -40900,31 +40900,31 @@ function wne() { } return IA = i, IA; } -var NA, Mj; +var NA, Dj; function xne() { - if (Mj) return NA; - Mj = 1; + if (Dj) return NA; + Dj = 1; var r = Object.prototype, e = r.hasOwnProperty; function t(n, i) { return n != null && e.call(n, i); } return NA = t, NA; } -var LA, Dj; +var LA, kj; function Ene() { - if (Dj) return LA; - Dj = 1; + if (kj) return LA; + kj = 1; var r = xne(), e = uz(); function t(n, i) { return n != null && e(n, i, r); } return LA = t, LA; } -var jA, kj; +var jA, Ij; function Sne() { - if (kj) return jA; - kj = 1; - var r = _D(), e = n0(), t = Z2(), n = Fs(), i = oy(), a = r_(), o = J2(), s = Q2(), u = "[object Map]", l = "[object Set]", c = Object.prototype, f = c.hasOwnProperty; + if (Ij) return jA; + Ij = 1; + var r = wD(), e = n0(), t = Z2(), n = Fs(), i = oy(), a = r_(), o = J2(), s = Q2(), u = "[object Map]", l = "[object Set]", c = Object.prototype, f = c.hasOwnProperty; function d(h) { if (h == null) return !0; @@ -40942,19 +40942,19 @@ function Sne() { } return jA = d, jA; } -var BA, Ij; +var BA, Nj; function One() { - if (Ij) return BA; - Ij = 1; + if (Nj) return BA; + Nj = 1; function r(e) { return e === void 0; } return BA = r, BA; } -var FA, Nj; +var FA, Lj; function Tne() { - if (Nj) return FA; - Nj = 1; + if (Lj) return FA; + Lj = 1; var r = eE(), e = oy(); function t(n, i) { var a = -1, o = e(n) ? Array(n.length) : []; @@ -40964,21 +40964,21 @@ function Tne() { } return FA = t, FA; } -var UA, Lj; +var UA, jj; function Cne() { - if (Lj) return UA; - Lj = 1; - var r = RD(), e = nE(), t = Tne(), n = Fs(); + if (jj) return UA; + jj = 1; + var r = PD(), e = nE(), t = Tne(), n = Fs(); function i(a, o) { var s = n(a) ? r : t; return s(a, e(o, 3)); } return UA = i, UA; } -var zA, jj; +var zA, Bj; function Ane() { - if (jj) return zA; - jj = 1; + if (Bj) return zA; + Bj = 1; function r(e, t, n, i) { var a = -1, o = e == null ? 0 : e.length; for (i && o && (n = e[++a]); ++a < o; ) @@ -40987,10 +40987,10 @@ function Ane() { } return zA = r, zA; } -var qA, Bj; +var qA, Fj; function Rne() { - if (Bj) return qA; - Bj = 1; + if (Fj) return qA; + Fj = 1; function r(e, t, n, i, a) { return a(e, function(o, s, u) { n = i ? (i = !1, o) : t(n, o, s, u); @@ -40998,10 +40998,10 @@ function Rne() { } return qA = r, qA; } -var GA, Fj; +var GA, Uj; function Pne() { - if (Fj) return GA; - Fj = 1; + if (Uj) return GA; + Uj = 1; var r = Ane(), e = eE(), t = nE(), n = Rne(), i = Fs(); function a(o, s, u) { var l = i(o) ? r : n, c = arguments.length < 3; @@ -41009,37 +41009,37 @@ function Pne() { } return GA = a, GA; } -var VA, Uj; +var VA, zj; function Mne() { - if (Uj) return VA; - Uj = 1; + if (zj) return VA; + zj = 1; var r = r0(), e = Fs(), t = xv(), n = "[object String]"; function i(a) { return typeof a == "string" || !e(a) && t(a) && r(a) == n; } return VA = i, VA; } -var HA, zj; +var HA, qj; function Dne() { - if (zj) return HA; - zj = 1; + if (qj) return HA; + qj = 1; var r = lz(), e = r("length"); return HA = e, HA; } -var WA, qj; +var WA, Gj; function kne() { - if (qj) return WA; - qj = 1; + if (Gj) return WA; + Gj = 1; var r = "\\ud800-\\udfff", e = "\\u0300-\\u036f", t = "\\ufe20-\\ufe2f", n = "\\u20d0-\\u20ff", i = e + t + n, a = "\\ufe0e\\ufe0f", o = "\\u200d", s = RegExp("[" + o + r + i + a + "]"); function u(l) { return s.test(l); } return WA = u, WA; } -var YA, Gj; +var YA, Vj; function Ine() { - if (Gj) return YA; - Gj = 1; + if (Vj) return YA; + Vj = 1; var r = "\\ud800-\\udfff", e = "\\u0300-\\u036f", t = "\\ufe20-\\ufe2f", n = "\\u20d0-\\u20ff", i = e + t + n, a = "\\ufe0e\\ufe0f", o = "[" + r + "]", s = "[" + i + "]", u = "\\ud83c[\\udffb-\\udfff]", l = "(?:" + s + "|" + u + ")", c = "[^" + r + "]", f = "(?:\\ud83c[\\udde6-\\uddff]){2}", d = "[\\ud800-\\udbff][\\udc00-\\udfff]", h = "\\u200d", p = l + "?", g = "[" + a + "]?", y = "(?:" + h + "(?:" + [c, f, d].join("|") + ")" + g + p + ")*", b = g + p + y, _ = "(?:" + [c + s + "?", s, f, d, o].join("|") + ")", m = RegExp(u + "(?=" + u + ")|" + _ + b, "g"); function x(E) { for (var O = m.lastIndex = 0; m.test(E); ) @@ -41048,21 +41048,21 @@ function Ine() { } return YA = x, YA; } -var XA, Vj; +var XA, Hj; function Nne() { - if (Vj) return XA; - Vj = 1; + if (Hj) return XA; + Hj = 1; var r = Dne(), e = kne(), t = Ine(); function n(i) { return e(i) ? t(i) : r(i); } return XA = n, XA; } -var $A, Hj; +var $A, Wj; function Lne() { - if (Hj) return $A; - Hj = 1; - var r = _D(), e = n0(), t = oy(), n = Mne(), i = Nne(), a = "[object Map]", o = "[object Set]"; + if (Wj) return $A; + Wj = 1; + var r = wD(), e = n0(), t = oy(), n = Mne(), i = Nne(), a = "[object Map]", o = "[object Set]"; function s(u) { if (u == null) return 0; @@ -41073,11 +41073,11 @@ function Lne() { } return $A = s, $A; } -var KA, Wj; +var KA, Yj; function jne() { - if (Wj) return KA; - Wj = 1; - var r = gD(), e = ZU(), t = JU(), n = nE(), i = SD(), a = Fs(), o = r_(), s = Y2(), u = iy(), l = Q2(); + if (Yj) return KA; + Yj = 1; + var r = yD(), e = ZU(), t = JU(), n = nE(), i = OD(), a = Fs(), o = r_(), s = Y2(), u = iy(), l = Q2(); function c(f, d, h) { var p = a(f), g = p || o(f) || l(f); if (d = n(d, 4), h == null) { @@ -41090,21 +41090,21 @@ function jne() { } return KA = c, KA; } -var ZA, Yj; +var ZA, Xj; function Bne() { - if (Yj) return ZA; - Yj = 1; + if (Xj) return ZA; + Xj = 1; var r = t0(), e = Z2(), t = Fs(), n = r ? r.isConcatSpreadable : void 0; function i(a) { return t(a) || e(a) || !!(n && a && a[n]); } return ZA = i, ZA; } -var QA, Xj; +var QA, $j; function Fne() { - if (Xj) return QA; - Xj = 1; - var r = ED(), e = Bne(); + if ($j) return QA; + $j = 1; + var r = SD(), e = Bne(); function t(n, i, a, o, s) { var u = -1, l = n.length; for (a || (a = e), s || (s = []); ++u < l; ) { @@ -41115,10 +41115,10 @@ function Fne() { } return QA = t, QA; } -var JA, $j; +var JA, Kj; function Une() { - if ($j) return JA; - $j = 1; + if (Kj) return JA; + Kj = 1; function r(e, t, n) { switch (n.length) { case 0: @@ -41134,10 +41134,10 @@ function Une() { } return JA = r, JA; } -var eR, Kj; +var eR, Zj; function zne() { - if (Kj) return eR; - Kj = 1; + if (Zj) return eR; + Zj = 1; var r = Une(), e = Math.max; function t(n, i, a) { return i = e(i === void 0 ? n.length - 1 : i, 0), function() { @@ -41151,10 +41151,10 @@ function zne() { } return eR = t, eR; } -var tR, Zj; +var tR, Qj; function qne() { - if (Zj) return tR; - Zj = 1; + if (Qj) return tR; + Qj = 1; var r = QU(), e = BU(), t = tE(), n = e ? function(i, a) { return e(i, "toString", { configurable: !0, @@ -41165,10 +41165,10 @@ function qne() { } : t; return tR = n, tR; } -var rR, Qj; +var rR, Jj; function Gne() { - if (Qj) return rR; - Qj = 1; + if (Jj) return rR; + Jj = 1; var r = 800, e = 16, t = Date.now; function n(i) { var a = 0, o = 0; @@ -41184,27 +41184,27 @@ function Gne() { } return rR = n, rR; } -var nR, Jj; +var nR, e6; function Vne() { - if (Jj) return nR; - Jj = 1; + if (e6) return nR; + e6 = 1; var r = qne(), e = Gne(), t = e(r); return nR = t, nR; } -var iR, e6; +var iR, t6; function Hne() { - if (e6) return iR; - e6 = 1; + if (t6) return iR; + t6 = 1; var r = tE(), e = zne(), t = Vne(); function n(i, a) { return t(e(i, a, r), i + ""); } return iR = n, iR; } -var aR, t6; +var aR, r6; function Wne() { - if (t6) return aR; - t6 = 1; + if (r6) return aR; + r6 = 1; function r(e, t, n, i) { for (var a = e.length, o = n + (i ? 1 : -1); i ? o-- : ++o < a; ) if (t(e[o], o, e)) @@ -41213,19 +41213,19 @@ function Wne() { } return aR = r, aR; } -var oR, r6; +var oR, n6; function Yne() { - if (r6) return oR; - r6 = 1; + if (n6) return oR; + n6 = 1; function r(e) { return e !== e; } return oR = r, oR; } -var sR, n6; +var sR, i6; function Xne() { - if (n6) return sR; - n6 = 1; + if (i6) return sR; + i6 = 1; function r(e, t, n) { for (var i = n - 1, a = e.length; ++i < a; ) if (e[i] === t) @@ -41234,20 +41234,20 @@ function Xne() { } return sR = r, sR; } -var uR, i6; +var uR, a6; function $ne() { - if (i6) return uR; - i6 = 1; + if (a6) return uR; + a6 = 1; var r = Wne(), e = Yne(), t = Xne(); function n(i, a, o) { return a === a ? t(i, a, o) : r(i, e, o); } return uR = n, uR; } -var lR, a6; +var lR, o6; function Kne() { - if (a6) return lR; - a6 = 1; + if (o6) return lR; + o6 = 1; var r = $ne(); function e(t, n) { var i = t == null ? 0 : t.length; @@ -41255,10 +41255,10 @@ function Kne() { } return lR = e, lR; } -var cR, o6; +var cR, s6; function Zne() { - if (o6) return cR; - o6 = 1; + if (s6) return cR; + s6 = 1; function r(e, t, n) { for (var i = -1, a = e == null ? 0 : e.length; ++i < a; ) if (n(t, e[i])) @@ -41267,28 +41267,28 @@ function Zne() { } return cR = r, cR; } -var fR, s6; +var fR, u6; function Qne() { - if (s6) return fR; - s6 = 1; + if (u6) return fR; + u6 = 1; function r() { } return fR = r, fR; } -var dR, u6; +var dR, l6; function Jne() { - if (u6) return dR; - u6 = 1; - var r = $U(), e = Qne(), t = TD(), n = 1 / 0, i = r && 1 / t(new r([, -0]))[1] == n ? function(a) { + if (l6) return dR; + l6 = 1; + var r = $U(), e = Qne(), t = CD(), n = 1 / 0, i = r && 1 / t(new r([, -0]))[1] == n ? function(a) { return new r(a); } : e; return dR = i, dR; } -var hR, l6; +var hR, c6; function eie() { - if (l6) return hR; - l6 = 1; - var r = ez(), e = Kne(), t = Zne(), n = tz(), i = Jne(), a = TD(), o = 200; + if (c6) return hR; + c6 = 1; + var r = ez(), e = Kne(), t = Zne(), n = tz(), i = Jne(), a = CD(), o = 200; function s(u, l, c) { var f = -1, d = e, h = u.length, p = !0, g = [], y = g; if (c) @@ -41314,30 +41314,30 @@ function eie() { } return hR = s, hR; } -var vR, c6; +var vR, f6; function tie() { - if (c6) return vR; - c6 = 1; + if (f6) return vR; + f6 = 1; var r = oy(), e = xv(); function t(n) { return e(n) && r(n); } return vR = t, vR; } -var pR, f6; +var pR, d6; function rie() { - if (f6) return pR; - f6 = 1; + if (d6) return pR; + d6 = 1; var r = Fne(), e = Hne(), t = eie(), n = tie(), i = e(function(a) { return t(r(a, 1, n, !0)); }); return pR = i, pR; } -var gR, d6; +var gR, h6; function nie() { - if (d6) return gR; - d6 = 1; - var r = RD(); + if (h6) return gR; + h6 = 1; + var r = PD(); function e(t, n) { return r(n, function(i) { return t[i]; @@ -41345,20 +41345,20 @@ function nie() { } return gR = e, gR; } -var yR, h6; +var yR, v6; function iie() { - if (h6) return yR; - h6 = 1; + if (v6) return yR; + v6 = 1; var r = nie(), e = sy(); function t(n) { return n == null ? [] : r(n, e(n)); } return yR = t, yR; } -var mR, v6; +var mR, p6; function qf() { - if (v6) return mR; - v6 = 1; + if (p6) return mR; + p6 = 1; var r; if (typeof qte == "function") try { @@ -41384,10 +41384,10 @@ function qf() { } return r || (r = window._), mR = r, mR; } -var bR, p6; -function PD() { - if (p6) return bR; - p6 = 1; +var bR, g6; +function MD() { + if (g6) return bR; + g6 = 1; var r = qf(); bR = i; var e = "\0", t = "\0", n = ""; @@ -41590,22 +41590,22 @@ function PD() { } return bR; } -var _R, g6; +var _R, y6; function aie() { - return g6 || (g6 = 1, _R = "2.1.8"), _R; + return y6 || (y6 = 1, _R = "2.1.8"), _R; } -var wR, y6; +var wR, m6; function oie() { - return y6 || (y6 = 1, wR = { - Graph: PD(), + return m6 || (m6 = 1, wR = { + Graph: MD(), version: aie() }), wR; } -var xR, m6; +var xR, b6; function sie() { - if (m6) return xR; - m6 = 1; - var r = qf(), e = PD(); + if (b6) return xR; + b6 = 1; + var r = qf(), e = MD(); xR = { write: t, read: a @@ -41644,10 +41644,10 @@ function sie() { } return xR; } -var ER, b6; +var ER, _6; function uie() { - if (b6) return ER; - b6 = 1; + if (_6) return ER; + _6 = 1; var r = qf(); ER = e; function e(t) { @@ -41661,10 +41661,10 @@ function uie() { } return ER; } -var SR, _6; +var SR, w6; function cz() { - if (_6) return SR; - _6 = 1; + if (w6) return SR; + w6 = 1; var r = qf(); SR = e; function e() { @@ -41713,10 +41713,10 @@ function cz() { i[t] = s, i[n] = o, a[s.key] = t, a[o.key] = n; }, SR; } -var OR, w6; +var OR, x6; function fz() { - if (w6) return OR; - w6 = 1; + if (x6) return OR; + x6 = 1; var r = qf(), e = cz(); OR = n; var t = r.constant(1); @@ -41746,10 +41746,10 @@ function fz() { } return OR; } -var TR, x6; +var TR, E6; function lie() { - if (x6) return TR; - x6 = 1; + if (E6) return TR; + E6 = 1; var r = fz(), e = qf(); TR = t; function t(n, i, a) { @@ -41759,10 +41759,10 @@ function lie() { } return TR; } -var CR, E6; +var CR, S6; function dz() { - if (E6) return CR; - E6 = 1; + if (S6) return CR; + S6 = 1; var r = qf(); CR = e; function e(t) { @@ -41789,10 +41789,10 @@ function dz() { } return CR; } -var AR, S6; +var AR, O6; function cie() { - if (S6) return AR; - S6 = 1; + if (O6) return AR; + O6 = 1; var r = qf(), e = dz(); AR = t; function t(n) { @@ -41802,10 +41802,10 @@ function cie() { } return AR; } -var RR, O6; +var RR, T6; function fie() { - if (O6) return RR; - O6 = 1; + if (T6) return RR; + T6 = 1; var r = qf(); RR = t; var e = r.constant(1); @@ -41840,10 +41840,10 @@ function fie() { } return RR; } -var PR, T6; +var PR, C6; function hz() { - if (T6) return PR; - T6 = 1; + if (C6) return PR; + C6 = 1; var r = qf(); PR = e, e.CycleException = t; function e(n) { @@ -41861,10 +41861,10 @@ function hz() { } return t.prototype = new Error(), PR; } -var MR, C6; +var MR, A6; function die() { - if (C6) return MR; - C6 = 1; + if (A6) return MR; + A6 = 1; var r = hz(); MR = e; function e(t) { @@ -41879,10 +41879,10 @@ function die() { } return MR; } -var DR, A6; +var DR, R6; function vz() { - if (A6) return DR; - A6 = 1; + if (R6) return DR; + R6 = 1; var r = qf(); DR = e; function e(n, i, a) { @@ -41901,10 +41901,10 @@ function vz() { } return DR; } -var kR, R6; +var kR, P6; function hie() { - if (R6) return kR; - R6 = 1; + if (P6) return kR; + P6 = 1; var r = vz(); kR = e; function e(t, n) { @@ -41912,10 +41912,10 @@ function hie() { } return kR; } -var IR, P6; +var IR, M6; function vie() { - if (P6) return IR; - P6 = 1; + if (M6) return IR; + M6 = 1; var r = vz(); IR = e; function e(t, n) { @@ -41923,11 +41923,11 @@ function vie() { } return IR; } -var NR, M6; +var NR, D6; function pie() { - if (M6) return NR; - M6 = 1; - var r = qf(), e = PD(), t = cz(); + if (D6) return NR; + D6 = 1; + var r = qf(), e = MD(), t = cz(); NR = n; function n(i, a) { var o = new e(), s = {}, u = new t(), l; @@ -41957,9 +41957,9 @@ function pie() { } return NR; } -var LR, D6; +var LR, k6; function gie() { - return D6 || (D6 = 1, LR = { + return k6 || (k6 = 1, LR = { components: uie(), dijkstra: fz(), dijkstraAll: lie(), @@ -41973,10 +41973,10 @@ function gie() { topsort: hz() }), LR; } -var jR, k6; +var jR, I6; function Uf() { - if (k6) return jR; - k6 = 1; + if (I6) return jR; + I6 = 1; var r = oie(); return jR = { Graph: r.Graph, @@ -41994,9 +41994,9 @@ var mb = { exports: {} }; * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ -var yie = mb.exports, I6; +var yie = mb.exports, N6; function Sa() { - return I6 || (I6 = 1, (function(r, e) { + return N6 || (N6 = 1, (function(r, e) { (function() { var t, n = "4.17.23", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", o = "Expected a function", s = "Invalid `variable` option passed into `_.template`", u = "__lodash_hash_undefined__", l = 500, c = "__lodash_placeholder__", f = 1, d = 2, h = 4, p = 1, g = 2, y = 1, b = 2, _ = 4, m = 8, x = 16, E = 32, O = 64, S = 128, T = 256, P = 512, I = 30, k = "...", L = 800, B = 16, j = 1, z = 2, H = 3, q = 1 / 0, W = 9007199254740991, $ = 17976931348623157e292, J = NaN, X = 4294967295, Z = X - 1, ue = X >>> 1, re = [ ["ary", S], @@ -42008,7 +42008,7 @@ function Sa() { ["partial", E], ["partialRight", O], ["rearg", T] - ], ne = "[object Arguments]", le = "[object Array]", ce = "[object AsyncFunction]", pe = "[object Boolean]", fe = "[object Date]", se = "[object DOMException]", de = "[object Error]", ge = "[object Function]", Oe = "[object GeneratorFunction]", ke = "[object Map]", De = "[object Number]", Ne = "[object Null]", Ce = "[object Object]", Y = "[object Promise]", Q = "[object Proxy]", ie = "[object RegExp]", we = "[object Set]", Ee = "[object String]", Me = "[object Symbol]", Ie = "[object Undefined]", Ye = "[object WeakMap]", ot = "[object WeakSet]", mt = "[object ArrayBuffer]", wt = "[object DataView]", Mt = "[object Float32Array]", Dt = "[object Float64Array]", vt = "[object Int8Array]", tt = "[object Int16Array]", _e = "[object Int32Array]", Ue = "[object Uint8Array]", Qe = "[object Uint8ClampedArray]", Ze = "[object Uint16Array]", nt = "[object Uint32Array]", It = /\b__p \+= '';/g, ct = /\b(__p \+=) '' \+/g, Lt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Rt = /&(?:amp|lt|gt|quot|#39);/g, jt = /[&<>"']/g, Yt = RegExp(Rt.source), sr = RegExp(jt.source), Ut = /<%-([\s\S]+?)%>/g, Rr = /<%([\s\S]+?)%>/g, Xt = /<%=([\s\S]+?)%>/g, Vr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Br = /^\w*$/, mr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /[\\^$.*+?()[\]{}|]/g, sn = RegExp(ur.source), Fr = /^\s+/, un = /\s/, bn = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, wn = /\{\n\/\* \[wrapped with (.+)\] \*/, _n = /,? & /, xn = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, on = /[()=,{}\[\]\/\s]/, Nn = /\\(\\)?/g, fi = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, gn = /\w*$/, yn = /^[-+]0x[0-9a-f]+$/i, Jn = /^0b[01]+$/i, _i = /^\[object .+?Constructor\]$/, Ir = /^0o[0-7]+$/i, pa = /^(?:0|[1-9]\d*)$/, di = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Bt = /($^)/, hr = /['\n\r\u2028\u2029\\]/g, ei = "\\ud800-\\udfff", Hn = "\\u0300-\\u036f", ds = "\\ufe20-\\ufe2f", Na = "\\u20d0-\\u20ff", ki = Hn + ds + Na, Wr = "\\u2700-\\u27bf", Nr = "a-z\\xdf-\\xf6\\xf8-\\xff", na = "\\xac\\xb1\\xd7\\xf7", Us = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", vu = "\\u2000-\\u206f", ga = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", zs = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ln = "\\ufe0e\\ufe0f", Ii = na + Us + vu + ga, Ni = "['’]", Pc = "[" + ei + "]", pu = "[" + Ii + "]", ia = "[" + ki + "]", Hl = "\\d+", Md = "[" + Wr + "]", Xa = "[" + Nr + "]", Wl = "[^" + ei + Ii + Hl + Wr + Nr + zs + "]", Yl = "\\ud83c[\\udffb-\\udfff]", nf = "(?:" + ia + "|" + Yl + ")", Wi = "[^" + ei + "]", af = "(?:\\ud83c[\\udde6-\\uddff]){2}", La = "[\\ud800-\\udbff][\\udc00-\\udfff]", Go = "[" + zs + "]", Gf = "\\u200d", hs = "(?:" + Xa + "|" + Wl + ")", Mc = "(?:" + Go + "|" + Wl + ")", Xl = "(?:" + Ni + "(?:d|ll|m|re|s|t|ve))?", ti = "(?:" + Ni + "(?:D|LL|M|RE|S|T|VE))?", qs = nf + "?", Ju = "[" + Ln + "]?", Gs = "(?:" + Gf + "(?:" + [Wi, af, La].join("|") + ")" + Ju + qs + ")*", $l = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", of = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gu = Ju + qs + Gs, _o = "(?:" + [Md, af, La].join("|") + ")" + gu, wo = "(?:" + [Wi + ia + "?", ia, af, La, Pc].join("|") + ")", Vf = RegExp(Ni, "g"), sf = RegExp(ia, "g"), yu = RegExp(Yl + "(?=" + Yl + ")|" + wo + gu, "g"), so = RegExp([ + ], ne = "[object Arguments]", le = "[object Array]", ce = "[object AsyncFunction]", pe = "[object Boolean]", fe = "[object Date]", se = "[object DOMException]", de = "[object Error]", ge = "[object Function]", Oe = "[object GeneratorFunction]", ke = "[object Map]", De = "[object Number]", Ne = "[object Null]", Ce = "[object Object]", Y = "[object Promise]", Q = "[object Proxy]", ie = "[object RegExp]", we = "[object Set]", Ee = "[object String]", Me = "[object Symbol]", Ie = "[object Undefined]", Ye = "[object WeakMap]", ot = "[object WeakSet]", mt = "[object ArrayBuffer]", wt = "[object DataView]", Mt = "[object Float32Array]", Dt = "[object Float64Array]", vt = "[object Int8Array]", tt = "[object Int16Array]", _e = "[object Int32Array]", Ue = "[object Uint8Array]", Qe = "[object Uint8ClampedArray]", Ze = "[object Uint16Array]", nt = "[object Uint32Array]", It = /\b__p \+= '';/g, ct = /\b(__p \+=) '' \+/g, Lt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Rt = /&(?:amp|lt|gt|quot|#39);/g, jt = /[&<>"']/g, Yt = RegExp(Rt.source), sr = RegExp(jt.source), Ut = /<%-([\s\S]+?)%>/g, Rr = /<%([\s\S]+?)%>/g, Xt = /<%=([\s\S]+?)%>/g, Vr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Br = /^\w*$/, mr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /[\\^$.*+?()[\]{}|]/g, sn = RegExp(ur.source), Fr = /^\s+/, un = /\s/, bn = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, wn = /\{\n\/\* \[wrapped with (.+)\] \*/, _n = /,? & /, xn = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, on = /[()=,{}\[\]\/\s]/, Nn = /\\(\\)?/g, fi = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, gn = /\w*$/, yn = /^[-+]0x[0-9a-f]+$/i, Jn = /^0b[01]+$/i, _i = /^\[object .+?Constructor\]$/, Ir = /^0o[0-7]+$/i, pa = /^(?:0|[1-9]\d*)$/, di = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Bt = /($^)/, hr = /['\n\r\u2028\u2029\\]/g, ei = "\\ud800-\\udfff", Hn = "\\u0300-\\u036f", ds = "\\ufe20-\\ufe2f", Na = "\\u20d0-\\u20ff", ki = Hn + ds + Na, Wr = "\\u2700-\\u27bf", Nr = "a-z\\xdf-\\xf6\\xf8-\\xff", na = "\\xac\\xb1\\xd7\\xf7", Us = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", vu = "\\u2000-\\u206f", ga = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", zs = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ln = "\\ufe0e\\ufe0f", Ii = na + Us + vu + ga, Ni = "['’]", Pc = "[" + ei + "]", pu = "[" + Ii + "]", ia = "[" + ki + "]", Hl = "\\d+", Md = "[" + Wr + "]", Xa = "[" + Nr + "]", Wl = "[^" + ei + Ii + Hl + Wr + Nr + zs + "]", Yl = "\\ud83c[\\udffb-\\udfff]", nf = "(?:" + ia + "|" + Yl + ")", Wi = "[^" + ei + "]", af = "(?:\\ud83c[\\udde6-\\uddff]){2}", La = "[\\ud800-\\udbff][\\udc00-\\udfff]", Go = "[" + zs + "]", Gf = "\\u200d", hs = "(?:" + Xa + "|" + Wl + ")", Mc = "(?:" + Go + "|" + Wl + ")", Xl = "(?:" + Ni + "(?:d|ll|m|re|s|t|ve))?", ti = "(?:" + Ni + "(?:D|LL|M|RE|S|T|VE))?", qs = nf + "?", Ju = "[" + Ln + "]?", Gs = "(?:" + Gf + "(?:" + [Wi, af, La].join("|") + ")" + Ju + qs + ")*", $l = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", of = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gu = Ju + qs + Gs, wo = "(?:" + [Md, af, La].join("|") + ")" + gu, xo = "(?:" + [Wi + ia + "?", ia, af, La, Pc].join("|") + ")", Vf = RegExp(Ni, "g"), sf = RegExp(ia, "g"), yu = RegExp(Yl + "(?=" + Yl + ")|" + xo + gu, "g"), uo = RegExp([ Go + "?" + Xa + "+" + Xl + "(?=" + [pu, Go, "$"].join("|") + ")", Mc + "+" + ti + "(?=" + [pu, Go + hs, "$"].join("|") + ")", Go + "?" + hs + "+" + Xl, @@ -42016,7 +42016,7 @@ function Sa() { of, $l, Hl, - _o + wo ].join("|"), "g"), el = RegExp("[" + Gf + ei + ki + Ln + "]"), Kl = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Vo = [ "Array", "Buffer", @@ -42270,7 +42270,7 @@ function Sa() { return We || lf && lf.binding && lf.binding("util"); } catch { } - })(), ma = ya && ya.isArrayBuffer, bu = ya && ya.isDate, uo = ya && ya.isMap, Ho = ya && ya.isRegExp, st = ya && ya.isSet, xt = ya && ya.isTypedArray; + })(), ma = ya && ya.isArrayBuffer, bu = ya && ya.isDate, lo = ya && ya.isMap, Ho = ya && ya.isRegExp, st = ya && ya.isSet, xt = ya && ya.isTypedArray; function pt(We, ft, ut) { switch (ut.length) { case 0: @@ -42429,7 +42429,7 @@ function Sa() { function wu(We) { return We && We.slice(0, nc(We) + 1).replace(Fr, ""); } - function xo(We) { + function Eo(We) { return function(ft) { return We(ft); }; @@ -42538,22 +42538,22 @@ function Sa() { return We.match(yu) || []; } function Bc(We) { - return We.match(so) || []; + return We.match(uo) || []; } var Ws = (function We(ft) { ft = ft == null ? wi : ic.defaults(wi.Object(), ft, ic.pick(wi, Vo)); var ut = ft.Array, Kt = ft.Date, Pr = ft.Error, Qr = ft.Function, oi = ft.Math, be = ft.Object, ol = ft.RegExp, Wo = ft.String, Ei = ft.TypeError, nn = ut.prototype, sl = Qr.prototype, $a = be.prototype, gs = ft["__core-js_shared__"], xu = sl.toString, Jr = $a.hasOwnProperty, Ld = 0, gf = (function() { var A = /[^.]+$/.exec(gs && gs.keys && gs.keys.IE_PROTO || ""); return A ? "Symbol(src)_1." + A : ""; - })(), Eo = $a.toString, jd = xu.call(be), So = wi._, Eu = ol( + })(), So = $a.toString, jd = xu.call(be), Oo = wi._, Eu = ol( "^" + xu.call(Jr).replace(ur, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ), ul = mu ? ft.Buffer : t, Ys = ft.Symbol, ac = ft.Uint8Array, ys = ul ? ul.allocUnsafe : t, ms = Li(be.getPrototypeOf, be), ll = be.create, Ka = $a.propertyIsEnumerable, Su = nn.splice, Mh = Ys ? Ys.isConcatSpreadable : t, Yi = Ys ? Ys.iterator : t, Ba = Ys ? Ys.toStringTag : t, Oo = (function() { + ), ul = mu ? ft.Buffer : t, Ys = ft.Symbol, ac = ft.Uint8Array, ys = ul ? ul.allocUnsafe : t, ms = Li(be.getPrototypeOf, be), ll = be.create, Ka = $a.propertyIsEnumerable, Su = nn.splice, Mh = Ys ? Ys.isConcatSpreadable : t, Yi = Ys ? Ys.iterator : t, Ba = Ys ? Ys.toStringTag : t, To = (function() { try { var A = Hc(be, "defineProperty"); return A({}, "", {}), A; } catch { } - })(), Cv = ft.clearTimeout !== wi.clearTimeout && ft.clearTimeout, oc = Kt && Kt.now !== wi.Date.now && Kt.now, sc = ft.setTimeout !== wi.setTimeout && ft.setTimeout, ji = oi.ceil, Yo = oi.floor, yf = be.getOwnPropertySymbols, Xs = ul ? ul.isBuffer : t, sa = ft.isFinite, cl = nn.join, bs = Li(be.keys, be), Ri = oi.max, Sn = oi.min, To = Kt.now, Co = ft.parseInt, Xi = oi.random, Xo = nn.reverse, Fa = Hc(ft, "DataView"), Ua = Hc(ft, "Map"), fl = Hc(ft, "Promise"), $s = Hc(ft, "Set"), uc = Hc(ft, "WeakMap"), lc = Hc(be, "create"), Si = uc && new uc(), Rn = {}, hn = ro(Fa), Ou = ro(Ua), $o = ro(fl), mf = ro($s), dl = ro(uc), cc = Ys ? Ys.prototype : t, _s = cc ? cc.valueOf : t, hl = cc ? cc.toString : t; + })(), Cv = ft.clearTimeout !== wi.clearTimeout && ft.clearTimeout, oc = Kt && Kt.now !== wi.Date.now && Kt.now, sc = ft.setTimeout !== wi.setTimeout && ft.setTimeout, ji = oi.ceil, Yo = oi.floor, yf = be.getOwnPropertySymbols, Xs = ul ? ul.isBuffer : t, sa = ft.isFinite, cl = nn.join, bs = Li(be.keys, be), Ri = oi.max, Sn = oi.min, Co = Kt.now, Ao = ft.parseInt, Xi = oi.random, Xo = nn.reverse, Fa = Hc(ft, "DataView"), Ua = Hc(ft, "Map"), fl = Hc(ft, "Promise"), $s = Hc(ft, "Set"), uc = Hc(ft, "WeakMap"), lc = Hc(be, "create"), Si = uc && new uc(), Rn = {}, hn = ro(Fa), Ou = ro(Ua), $o = ro(fl), mf = ro($s), dl = ro(uc), cc = Ys ? Ys.prototype : t, _s = cc ? cc.valueOf : t, hl = cc ? cc.toString : t; function xe(A) { if (Pa(A) && !rn(A) && !(A instanceof Yr)) { if (A instanceof ar) @@ -42753,7 +42753,7 @@ function Sa() { return U.set(A, D), this.size += U.size == ee ? 0 : 1, this; } Za.prototype.clear = bf, Za.prototype.delete = pl, Za.prototype.get = _f, Za.prototype.has = Pu, Za.prototype.set = gl; - function lo(A) { + function co(A) { var D = -1, U = A == null ? 0 : A.length; for (this.__data__ = new Za(); ++D < U; ) this.add(A[D]); @@ -42764,7 +42764,7 @@ function Sa() { function dc(A) { return this.__data__.has(A); } - lo.prototype.add = lo.prototype.push = Av, lo.prototype.has = dc; + co.prototype.add = co.prototype.push = Av, co.prototype.has = dc; function Qo(A) { var D = this.__data__ = new Ko(A); this.size = D.size; @@ -42808,17 +42808,17 @@ function Sa() { return D ? A[K(0, D - 1)] : t; } function Jo(A, D) { - return Yd(Fi(A), Po(D, 0, A.length)); + return Yd(Fi(A), Mo(D, 0, A.length)); } function td(A) { return Yd(Fi(A)); } function ml(A, D, U) { - (U !== t && !Rl(A[D], U) || U === t && !(D in A)) && Ro(A, D, U); + (U !== t && !Rl(A[D], U) || U === t && !(D in A)) && Po(A, D, U); } - function Ao(A, D, U) { + function Ro(A, D, U) { var ee = A[D]; - (!(Jr.call(A, D) && Rl(ee, U)) || U === t && !(D in A)) && Ro(A, D, U); + (!(Jr.call(A, D) && Rl(ee, U)) || U === t && !(D in A)) && Po(A, D, U); } function Ki(A, D) { for (var U = A.length; U--; ) @@ -42827,18 +42827,18 @@ function Sa() { return -1; } function Du(A, D, U, ee) { - return fo(A, function(ve, Ae, Le) { + return ho(A, function(ve, Ae, Le) { D(ee, ve, U(ve), Le); }), ee; } - function co(A, D) { - return A && wa(D, jo(D), A); + function fo(A, D) { + return A && wa(D, Bo(D), A); } function ku(A, D) { return A && wa(D, Vu(D), A); } - function Ro(A, D, U) { - D == "__proto__" && Oo ? Oo(A, D, { + function Po(A, D, U) { + D == "__proto__" && To ? To(A, D, { configurable: !0, enumerable: !0, value: U, @@ -42850,7 +42850,7 @@ function Sa() { ve[U] = Ae ? t : th(A, D[U]); return ve; } - function Po(A, D, U) { + function Mo(A, D, U) { return A === A && (U !== t && (A = A <= U ? A : U), D !== t && (A = A >= D ? A : D)), A; } function Qa(A, D, U, ee, ve, Ae) { @@ -42864,12 +42864,12 @@ function Sa() { if (Le = hy(A), !qe) return Fi(A, Le); } else { - var Pt = vo(A), Qt = Pt == ge || Pt == Oe; + var Pt = po(A), Qt = Pt == ge || Pt == Oe; if (Jd(A)) return Mn(A, qe); if (Pt == Ce || Pt == ne || Qt && !ve) { if (Le = $e || Qt ? {} : Qp(A), !qe) - return $e ? Tf(A, ku(Le, A)) : sd(A, co(Le, A)); + return $e ? Tf(A, ku(Le, A)) : sd(A, fo(Le, A)); } else { if (!Zr[Pt]) return ve ? A : {}; @@ -42885,13 +42885,13 @@ function Sa() { }) : O_(A) && A.forEach(function(Gr, Bn) { Le.set(Bn, Qa(Gr, D, U, Bn, A, Ae)); }); - var qr = Ot ? $e ? is : fd : $e ? Vu : jo, Tn = Tt ? t : qr(A); + var qr = Ot ? $e ? is : fd : $e ? Vu : Bo, Tn = Tt ? t : qr(A); return ir(Tn || A, function(Gr, Bn) { - Tn && (Bn = Gr, Gr = A[Bn]), Ao(Le, Bn, Qa(Gr, D, U, Bn, A, Ae)); + Tn && (Bn = Gr, Gr = A[Bn]), Ro(Le, Bn, Qa(Gr, D, U, Bn, A, Ae)); }), Le; } function rd(A) { - var D = jo(A); + var D = Bo(A); return function(U) { return Iu(U, A, D); }; @@ -42918,7 +42918,7 @@ function Sa() { var ve = -1, Ae = Kn, Le = !0, qe = A.length, $e = [], Ot = D.length; if (!qe) return $e; - U && (D = xi(D, xo(U))), ee ? (Ae = ec, Le = !1) : D.length >= i && (Ae = Hs, Le = !1, D = new lo(D)); + U && (D = xi(D, Eo(U))), ee ? (Ae = ec, Le = !1) : D.length >= i && (Ae = Hs, Le = !1, D = new co(D)); e: for (; ++ve < qe; ) { var Tt = A[ve], Pt = U == null ? Tt : U(Tt); @@ -42931,10 +42931,10 @@ function Sa() { } return $e; } - var fo = Xp(Es), nd = Xp(Ss, !0); + var ho = Xp(Es), nd = Xp(Ss, !0); function Nu(A, D) { var U = !0; - return fo(A, function(ee, ve, Ae) { + return ho(A, function(ee, ve, Ae) { return U = !!D(ee, ve, Ae), U; }), U; } @@ -42954,7 +42954,7 @@ function Sa() { } function xs(A, D) { var U = []; - return fo(A, function(ee, ve, Ae) { + return ho(A, function(ee, ve, Ae) { D(ee, ve, Ae) && U.push(ee); }), U; } @@ -42968,10 +42968,10 @@ function Sa() { } var hc = $p(), Ef = $p(!0); function Es(A, D) { - return A && hc(A, D, jo); + return A && hc(A, D, Bo); } function Ss(A, D) { - return A && Ef(A, D, jo); + return A && Ef(A, D, Bo); } function Qs(A, D) { return ja(D, function(U) { @@ -42989,7 +42989,7 @@ function Sa() { return rn(A) ? ee : ba(ee, U(A)); } function Qi(A) { - return A == null ? A === t ? Ie : Ne : Ba && Ba in be(A) ? ko(A) : eg(A); + return A == null ? A === t ? Ie : Ne : Ba && Ba in be(A) ? Io(A) : eg(A); } function Lu(A, D) { return A > D; @@ -42997,7 +42997,7 @@ function Sa() { function er(A, D) { return A != null && Jr.call(A, D); } - function ho(A, D) { + function vo(A, D) { return A != null && D in be(A); } function Js(A, D, U) { @@ -43006,7 +43006,7 @@ function Sa() { function Ts(A, D, U) { for (var ee = U ? ec : Kn, ve = A[0].length, Ae = A.length, Le = Ae, qe = ut(Ae), $e = 1 / 0, Ot = []; Le--; ) { var Tt = A[Le]; - Le && D && (Tt = xi(Tt, xo(D))), $e = Sn(Tt.length, $e), qe[Le] = !U && (D || ve >= 120 && Tt.length >= 120) ? new lo(Le && Tt) : t; + Le && D && (Tt = xi(Tt, Eo(D))), $e = Sn(Tt.length, $e), qe[Le] = !U && (D || ve >= 120 && Tt.length >= 120) ? new co(Le && Tt) : t; } Tt = A[0]; var Pt = -1, Qt = qe[0]; @@ -43029,7 +43029,7 @@ function Sa() { D(ee, U(ve), Ae, Le); }), ee; } - function Mo(A, D, U) { + function Do(A, D, U) { D = yr(D, A), A = Hd(A, D); var ee = A == null ? A : A[Ps(G(D))]; return ee == null ? t : pt(ee, A, U); @@ -43047,7 +43047,7 @@ function Sa() { return A === D ? !0 : A == null || D == null || !Pa(A) && !Pa(D) ? A !== A && D !== D : Sr(A, D, U, ee, Pn, ve); } function Sr(A, D, U, ee, ve, Ae) { - var Le = rn(A), qe = rn(D), $e = Le ? le : vo(A), Ot = qe ? le : vo(D); + var Le = rn(A), qe = rn(D), $e = Le ? le : po(A), Ot = qe ? le : po(D); $e = $e == ne ? Ce : $e, Ot = Ot == ne ? Ce : Ot; var Tt = $e == Ce, Pt = Ot == Ce, Qt = $e == Ot; if (Qt && Jd(A)) { @@ -43067,7 +43067,7 @@ function Sa() { return Qt ? (Ae || (Ae = new Qo()), Bh(A, D, U, ee, ve, Ae)) : !1; } function Xr(A) { - return Pa(A) && vo(A) == ke; + return Pa(A) && po(A) == ke; } function vi(A, D, U, ee) { var ve = U.length, Ae = ve, Le = !ee; @@ -43104,7 +43104,7 @@ function Sa() { return Pa(A) && Qi(A) == ie; } function Cs(A) { - return Pa(A) && vo(A) == we; + return Pa(A) && po(A) == we; } function ad(A) { return Pa(A) && My(A.length) && !!jn[Qi(A)]; @@ -43133,7 +43133,7 @@ function Sa() { } function od(A, D) { var U = -1, ee = qu(A) ? ut(A.length) : []; - return fo(A, function(ve, Ae, Le) { + return ho(A, function(ve, Ae, Le) { ee[++U] = D(ve, Ae, Le); }), ee; } @@ -43184,7 +43184,7 @@ function Sa() { } : Ae; }) : D = [ru]; var ee = -1; - D = xi(D, xo(br())); + D = xi(D, Eo(br())); var ve = od(A, function(Ae, Le, qe) { var $e = xi(D, function(Ot) { return Ot(Ae); @@ -43214,7 +43214,7 @@ function Sa() { } function Yn(A, D, U, ee) { var ve = ee ? Ov : il, Ae = -1, Le = D.length, qe = A; - for (A === D && (D = Fi(D)), U && (qe = xi(A, xo(U))); ++Ae < Le; ) + for (A === D && (D = Fi(D)), U && (qe = xi(A, Eo(U))); ++Ae < Le; ) for (var $e = 0, Ot = D[Ae], Tt = U ? U(Ot) : Ot; ($e = ve(qe, Tt, $e, ee)) > -1; ) qe !== A && Su.call(qe, $e, 1), Su.call(A, $e, 1); return A; @@ -43254,7 +43254,7 @@ function Sa() { } function Ge(A, D) { var U = Kv(A); - return Yd(U, Po(D, 0, U.length)); + return Yd(U, Mo(D, 0, U.length)); } function Be(A, D, U, ee) { if (!ca(A)) @@ -43268,14 +43268,14 @@ function Sa() { var Tt = qe[$e]; Ot = ee ? ee(Tt, $e, qe) : t, Ot === t && (Ot = ca(Tt) ? Tt : Ol(D[ve + 1]) ? [] : {}); } - Ao(qe, $e, Ot), qe = qe[$e]; + Ro(qe, $e, Ot), qe = qe[$e]; } return A; } var Ke = Si ? function(A, D) { return Si.set(A, D), A; - } : ru, Je = Oo ? function(A, D) { - return Oo(A, "toString", { + } : ru, Je = To ? function(A, D) { + return To(A, "toString", { configurable: !0, enumerable: !1, value: Qv(D), @@ -43294,7 +43294,7 @@ function Sa() { } function qt(A, D) { var U; - return fo(A, function(ee, ve, Ae) { + return ho(A, function(ee, ve, Ae) { return U = D(ee, ve, Ae), !U; }), !!U; } @@ -43354,7 +43354,7 @@ function Sa() { var Ot = D ? null : bc(A); if (Ot) return Zf(Ot); - Le = !1, ve = Hs, $e = new lo(); + Le = !1, ve = Hs, $e = new co(); } else $e = D ? [] : qe; e: @@ -43512,7 +43512,7 @@ function Sa() { U || (U = {}); for (var Ae = -1, Le = D.length; ++Ae < Le; ) { var qe = D[Ae], $e = ee ? ee(U[qe], A[qe], qe, U, A) : t; - $e === t && ($e = A[qe]), ve ? Ro(U, qe, $e) : Ao(U, qe, $e); + $e === t && ($e = A[qe]), ve ? Po(U, qe, $e) : Ro(U, qe, $e); } return U; } @@ -43531,7 +43531,7 @@ function Sa() { function Vc(A) { return Pe(function(D, U) { var ee = -1, ve = U.length, Ae = ve > 1 ? U[ve - 1] : t, Le = ve > 2 ? U[2] : t; - for (Ae = A.length > 3 && typeof Ae == "function" ? (ve--, Ae) : t, Le && Io(U[0], U[1], Le) && (Ae = ve < 3 ? t : Ae, ve = 1), D = be(D); ++ee < ve; ) { + for (Ae = A.length > 3 && typeof Ae == "function" ? (ve--, Ae) : t, Le && No(U[0], U[1], Le) && (Ae = ve < 3 ? t : Ae, ve = 1), D = be(D); ++ee < ve; ) { var qe = U[ee]; qe && A(D, qe, ee, Ae); } @@ -43633,7 +43633,7 @@ function Sa() { var ve = be(D); if (!qu(D)) { var Ae = br(U, 3); - D = jo(D), U = function(qe) { + D = Bo(D), U = function(qe) { return Ae(ve[qe], qe, ve); }; } @@ -43641,7 +43641,7 @@ function Sa() { return Le > -1 ? ve[Ae ? D[Le] : Le] : t; }; } - function Do(A) { + function ko(A) { return Sl(function(D) { var U = D.length, ee = U, ve = ar.prototype.thru; for (A && D.reverse(); ee--; ) { @@ -43674,7 +43674,7 @@ function Sa() { if (pr) var Dl = la(Gr), Zc = Xf(Xn, Dl); if (ee && (Xn = As(Xn, ee, ve, pr)), Ae && (Xn = xl(Xn, Ae, Le, pr)), Bn -= Zc, pr && Bn < Ot) { - var mo = hi(Xn, Dl); + var bo = hi(Xn, Dl); return Pv( A, D, @@ -43682,7 +43682,7 @@ function Sa() { Gr.placeholder, U, Xn, - mo, + bo, qe, $e, Ot - Bn @@ -43713,7 +43713,7 @@ function Sa() { } function Ur(A) { return Sl(function(D) { - return D = xi(D, xo(br())), Pe(function(U) { + return D = xi(D, Eo(br())), Pe(function(U) { var ee = this; return A(D, function(ve) { return pt(ve, ee, U); @@ -43742,7 +43742,7 @@ function Sa() { } function Ui(A) { return function(D, U, ee) { - return ee && typeof ee != "number" && Io(D, U, ee) && (U = ee = t), D = pd(D), U === t ? (U = D, D = 0) : U = pd(U), ee = ee === t ? D < U ? 1 : -1 : pd(ee), oe(D, U, ee, A); + return ee && typeof ee != "number" && No(D, U, ee) && (U = ee = t), D = pd(D), U === t ? (U = D, D = 0) : U = pd(U), ee = ee === t ? D < U ? 1 : -1 : pd(ee), oe(D, U, ee, A); }; } function Uu(A) { @@ -43782,7 +43782,7 @@ function Sa() { } : C; function Mv(A) { return function(D) { - var U = vo(D); + var U = po(D); return U == ke ? hf(D) : U == we ? Tv(D) : Ic(D, A(D)); }; } @@ -43829,7 +43829,7 @@ function Sa() { var Ot = Ae.get(A), Tt = Ae.get(D); if (Ot && Tt) return Ot == D && Tt == A; - var Pt = -1, Qt = !0, pr = U & g ? new lo() : t; + var Pt = -1, Qt = !0, pr = U & g ? new co() : t; for (Ae.set(A, D), Ae.set(D, A); ++Pt < qe; ) { var qr = A[Pt], Tn = D[Pt]; if (ee) @@ -43925,7 +43925,7 @@ function Sa() { return Nv(Iv(A, t, gi), A + ""); } function fd(A) { - return zc(A, jo, Fh); + return zc(A, Bo, Fh); } function is(A) { return zc(A, Vu, Dn); @@ -43954,7 +43954,7 @@ function Sa() { return xa(D) ? U[typeof D == "string" ? "string" : "hash"] : U.map; } function Kr(A) { - for (var D = jo(A), U = D.length; U--; ) { + for (var D = Bo(A), U = D.length; U--; ) { var ee = D[U], ve = A[ee]; D[U] = [ee, ve, wc(ve)]; } @@ -43964,14 +43964,14 @@ function Sa() { var U = Kf(A, D); return vc(U) ? U : t; } - function ko(A) { + function Io(A) { var D = Jr.call(A, Ba), U = A[Ba]; try { A[Ba] = t; var ee = !0; } catch { } - var ve = Eo.call(A); + var ve = So.call(A); return ee && (D ? A[Ba] = U : delete A[Ba]), ve; } var Fh = yf ? function(A) { @@ -43982,8 +43982,8 @@ function Sa() { for (var D = []; A; ) ba(D, Fh(A)), A = ms(A); return D; - } : _t, vo = Qi; - (Fa && vo(new Fa(new ArrayBuffer(1))) != wt || Ua && vo(new Ua()) != ke || fl && vo(fl.resolve()) != Y || $s && vo(new $s()) != we || uc && vo(new uc()) != Ye) && (vo = function(A) { + } : _t, po = Qi; + (Fa && po(new Fa(new ArrayBuffer(1))) != wt || Ua && po(new Ua()) != ke || fl && po(fl.resolve()) != Y || $s && po(new $s()) != we || uc && po(new uc()) != Ye) && (po = function(A) { var D = Qi(A), U = D == Ce ? A.constructor : t, ee = U ? ro(U) : ""; if (ee) switch (ee) { @@ -44090,7 +44090,7 @@ function Sa() { var U = typeof A; return D = D ?? W, !!D && (U == "number" || U != "symbol" && pa.test(A)) && A > -1 && A % 1 == 0 && A < D; } - function Io(A, D, U) { + function No(A, D, U) { if (!ca(U)) return !1; var ee = typeof D; @@ -44157,7 +44157,7 @@ function Sa() { return D; } function eg(A) { - return Eo.call(A); + return So.call(A); } function Iv(A, D, U) { return D = Ri(D === t ? A.length - 1 : D, 0), function() { @@ -44193,7 +44193,7 @@ function Sa() { function Tl(A) { var D = 0, U = 0; return function() { - var ee = To(), ve = B - (ee - U); + var ee = Co(), ve = B - (ee - U); if (U = ee, ve > 0) { if (++D >= L) return arguments[0]; @@ -44248,7 +44248,7 @@ function Sa() { return D.__actions__ = Fi(A.__actions__), D.__index__ = A.__index__, D.__values__ = A.__values__, D; } function as(A, D, U) { - (U ? Io(A, D, U) : D === t) ? D = 1 : D = Ri(zr(D), 0); + (U ? No(A, D, U) : D === t) ? D = 1 : D = Ri(zr(D), 0); var ee = A == null ? 0 : A.length; if (!ee || D < 1) return []; @@ -44296,7 +44296,7 @@ function Sa() { } function o0(A, D, U, ee) { var ve = A == null ? 0 : A.length; - return ve ? (U && typeof U != "number" && Io(A, D, U) && (U = 0, ee = ve), xf(A, D, U, ee)) : []; + return ve ? (U && typeof U != "number" && No(A, D, U) && (U = 0, ee = ve), xf(A, D, U, ee)) : []; } function ng(A, D, U) { var ee = A == null ? 0 : A.length; @@ -44316,7 +44316,7 @@ function Sa() { var D = A == null ? 0 : A.length; return D ? Zi(A, 1) : []; } - function No(A) { + function Lo(A) { var D = A == null ? 0 : A.length; return D ? Zi(A, q) : []; } @@ -44404,7 +44404,7 @@ function Sa() { } function $t(A, D, U) { var ee = A == null ? 0 : A.length; - return ee ? (U && typeof U != "number" && Io(A, D, U) ? (D = 0, U = ee) : (D = D == null ? 0 : zr(D), U = U === t ? ee : zr(U)), dt(A, D, U)) : []; + return ee ? (U && typeof U != "number" && No(A, D, U) ? (D = 0, U = ee) : (D = D == null ? 0 : zr(D), U = U === t ? ee : zr(U)), dt(A, D, U)) : []; } function tr(A, D) { return Ct(A, D); @@ -44468,7 +44468,7 @@ function Sa() { var D = G(A); return D = typeof D == "function" ? D : t, $r(Zi(A, 1, Va, !0), t, D); }); - function po(A) { + function go(A) { return A && A.length ? $r(A) : []; } function tu(A, D) { @@ -44503,14 +44503,14 @@ function Sa() { }), Xh = Pe(function(A) { var D = G(A); return Va(D) && (D = t), ln(ja(A, Va), br(D, 2)); - }), Lo = Pe(function(A) { + }), jo = Pe(function(A) { var D = G(A); return D = typeof D == "function" ? D : t, ln(ja(A, Va), t, D); }), $c = Pe(Ga); function Xd(A, D) { - return kt(A || [], D || [], Ao); + return kt(A || [], D || [], Ro); } - function go(A, D) { + function yo(A, D) { return kt(A || [], D || [], Be); } var $d = Pe(function(A) { @@ -44542,7 +44542,7 @@ function Sa() { function Kd() { return ag(this); } - function yo() { + function mo() { return new ar(this.value(), this.__chain__); } function Zd() { @@ -44578,11 +44578,11 @@ function Sa() { return Ja(this.__wrapped__, this.__actions__); } var s_ = Lh(function(A, D, U) { - Jr.call(A, U) ? ++A[U] : Ro(A, U, 1); + Jr.call(A, U) ? ++A[U] : Po(A, U, 1); }); function og(A, D, U) { var ee = rn(A) ? oa : Nu; - return U && Io(A, D, U) && (D = t), ee(A, br(D, 3)); + return U && No(A, D, U) && (D = t), ee(A, br(D, 3)); } function c0(A, D) { var U = rn(A) ? ja : xs; @@ -44599,7 +44599,7 @@ function Sa() { return U = U === t ? 1 : zr(U), Zi(sg(A, D), U); } function f_(A, D) { - var U = rn(A) ? ir : fo; + var U = rn(A) ? ir : ho; return U(A, br(D, 3)); } function vd(A, D) { @@ -44607,7 +44607,7 @@ function Sa() { return U(A, br(D, 3)); } var Ey = Lh(function(A, D, U) { - Jr.call(A, U) ? A[U].push(D) : Ro(A, U, [D]); + Jr.call(A, U) ? A[U].push(D) : Po(A, U, [D]); }); function f0(A, D, U, ee) { A = qu(A) ? A : Kv(A), U = U && !ee ? zr(U) : 0; @@ -44616,11 +44616,11 @@ function Sa() { } var qv = Pe(function(A, D, U) { var ee = -1, ve = typeof D == "function", Ae = qu(A) ? ut(A.length) : []; - return fo(A, function(Le) { - Ae[++ee] = ve ? pt(D, Le, U) : Mo(Le, D, U); + return ho(A, function(Le) { + Ae[++ee] = ve ? pt(D, Le, U) : Do(Le, D, U); }), Ae; }), d_ = Lh(function(A, D, U) { - Ro(A, U, D); + Po(A, U, D); }); function sg(A, D) { var U = rn(A) ? xi : od; @@ -44636,7 +44636,7 @@ function Sa() { }); function Sy(A, D, U) { var ee = rn(A) ? cf : kc, ve = arguments.length < 3; - return ee(A, br(D, 4), U, ve, fo); + return ee(A, br(D, 4), U, ve, ho); } function d0(A, D, U) { var ee = rn(A) ? Ev : kc, ve = arguments.length < 3; @@ -44651,7 +44651,7 @@ function Sa() { return D(A); } function yE(A, D, U) { - (U ? Io(A, D, U) : D === t) ? D = 1 : D = zr(D); + (U ? No(A, D, U) : D === t) ? D = 1 : D = zr(D); var ee = rn(A) ? Jo : Ge; return ee(A, D); } @@ -44664,18 +44664,18 @@ function Sa() { return 0; if (qu(A)) return yg(A) ? al(A) : A.length; - var D = vo(A); + var D = po(A); return D == ke || D == we ? A.size : _l(A).length; } function Gv(A, D, U) { var ee = rn(A) ? nl : qt; - return U && Io(A, D, U) && (D = t), ee(A, br(D, 3)); + return U && No(A, D, U) && (D = t), ee(A, br(D, 3)); } var Oy = Pe(function(A, D) { if (A == null) return []; var U = D.length; - return U > 1 && Io(A, D[0], D[1]) ? D = [] : U > 2 && Io(D[0], D[1], D[2]) && (D = [D[0]]), yc(A, Zi(D, 1), []); + return U > 1 && No(A, D[0], D[1]) ? D = [] : U > 2 && No(D[0], D[1], D[2]) && (D = [D[0]]), yc(A, Zi(D, 1), []); }), ug = oc || function() { return wi.Date.now(); }; @@ -44728,29 +44728,29 @@ function Sa() { if (typeof A != "function") throw new Ei(o); D = Ml(D) || 0, ca(U) && (Tt = !!U.leading, Pt = "maxWait" in U, Ae = Pt ? Ri(Ml(U.maxWait) || 0, D) : Ae, Qt = "trailing" in U ? !!U.trailing : Qt); - function pr(mo) { + function pr(bo) { var yd = ee, Jh = ve; - return ee = ve = t, Ot = mo, Le = A.apply(Jh, yd), Le; + return ee = ve = t, Ot = bo, Le = A.apply(Jh, yd), Le; } - function qr(mo) { - return Ot = mo, qe = Hh(Bn, D), Tt ? pr(mo) : Le; + function qr(bo) { + return Ot = bo, qe = Hh(Bn, D), Tt ? pr(bo) : Le; } - function Tn(mo) { - var yd = mo - $e, Jh = mo - Ot, ZD = D - yd; - return Pt ? Sn(ZD, Ae - Jh) : ZD; + function Tn(bo) { + var yd = bo - $e, Jh = bo - Ot, QD = D - yd; + return Pt ? Sn(QD, Ae - Jh) : QD; } - function Gr(mo) { - var yd = mo - $e, Jh = mo - Ot; + function Gr(bo) { + var yd = bo - $e, Jh = bo - Ot; return $e === t || yd >= D || yd < 0 || Pt && Jh >= Ae; } function Bn() { - var mo = ug(); - if (Gr(mo)) - return Xn(mo); - qe = Hh(Bn, Tn(mo)); + var bo = ug(); + if (Gr(bo)) + return Xn(bo); + qe = Hh(Bn, Tn(bo)); } - function Xn(mo) { - return qe = t, Qt && ee ? pr(mo) : (ee = ve = t, Le); + function Xn(bo) { + return qe = t, Qt && ee ? pr(bo) : (ee = ve = t, Le); } function Kc() { qe !== t && cn(qe), Ot = 0, ee = $e = ve = qe = t; @@ -44759,8 +44759,8 @@ function Sa() { return qe === t ? Le : Xn(ug()); } function Zc() { - var mo = ug(), yd = Gr(mo); - if (ee = arguments, ve = this, $e = mo, yd) { + var bo = ug(), yd = Gr(bo); + if (ee = arguments, ve = this, $e = bo, yd) { if (qe === t) return qr($e); if (Pt) @@ -44813,7 +44813,7 @@ function Sa() { return v0(2, A); } var _E = Ji(function(A, D) { - D = D.length == 1 && rn(D[0]) ? xi(D[0], xo(br())) : xi(Zi(D, 1), xo(br())); + D = D.length == 1 && rn(D[0]) ? xi(D[0], Eo(br())) : xi(Zi(D, 1), Eo(br())); var U = D.length; return Pe(function(ee) { for (var ve = -1, Ae = Sn(ee.length, U); ++ve < Ae; ) @@ -44877,7 +44877,7 @@ function Sa() { return D = typeof D == "function" ? D : t, Qa(A, f | h, D); } function xE(A, D) { - return D == null || Iu(A, D, jo(D)); + return D == null || Iu(A, D, Bo(D)); } function Rl(A, D) { return A === D || A !== A && D !== D; @@ -44888,7 +44888,7 @@ function Sa() { return arguments; })()) ? Wn : function(A) { return Pa(A) && Jr.call(A, "callee") && !Ka.call(A, "callee"); - }, rn = ut.isArray, w0 = ma ? xo(ma) : Pi; + }, rn = ut.isArray, w0 = ma ? Eo(ma) : Pi; function qu(A) { return A != null && My(A.length) && !Pl(A); } @@ -44898,7 +44898,7 @@ function Sa() { function dg(A) { return A === !0 || A === !1 || Pa(A) && Qi(A) == pe; } - var Jd = Xs || at, S_ = bu ? xo(bu) : ts; + var Jd = Xs || at, S_ = bu ? Eo(bu) : ts; function Cn(A) { return Pa(A) && A.nodeType === 1 && !vg(A); } @@ -44907,7 +44907,7 @@ function Sa() { return !0; if (qu(A) && (rn(A) || typeof A == "string" || typeof A.splice == "function" || Jd(A) || eh(A) || Zh(A))) return !A.length; - var D = vo(A); + var D = po(A); if (D == ke || D == we) return !A.size; if (Vd(A)) @@ -44953,7 +44953,7 @@ function Sa() { function Pa(A) { return A != null && typeof A == "object"; } - var O_ = uo ? xo(uo) : Xr; + var O_ = lo ? Eo(lo) : Xr; function T_(A, D) { return A === D || vi(A, D, Kr(D)); } @@ -44986,23 +44986,23 @@ function Sa() { var U = Jr.call(D, "constructor") && D.constructor; return typeof U == "function" && U instanceof U && xu.call(U) == jd; } - var pg = Ho ? xo(Ho) : bl; + var pg = Ho ? Eo(Ho) : bl; function C0(A) { return hg(A) && A >= -W && A <= W; } - var gg = st ? xo(st) : Cs; + var gg = st ? Eo(st) : Cs; function yg(A) { return typeof A == "string" || !rn(A) && Pa(A) && Qi(A) == Ee; } function Gu(A) { return typeof A == "symbol" || Pa(A) && Qi(A) == Me; } - var eh = xt ? xo(xt) : ad; + var eh = xt ? Eo(xt) : ad; function A0(A) { return A === t; } function SE(A) { - return Pa(A) && vo(A) == Ye; + return Pa(A) && po(A) == Ye; } function A_(A) { return Pa(A) && Qi(A) == ot; @@ -45017,7 +45017,7 @@ function Sa() { return yg(A) ? ri(A) : Fi(A); if (Yi && A[Yi]) return Ph(A[Yi]()); - var D = vo(A), U = D == ke ? hf : D == we ? Zf : Kv; + var D = po(A), U = D == ke ? hf : D == we ? Zf : Kv; return U(A); } function pd(A) { @@ -45034,7 +45034,7 @@ function Sa() { return D === D ? U ? D - U : D : 0; } function R0(A) { - return A ? Po(zr(A), 0, X) : 0; + return A ? Mo(zr(A), 0, X) : 0; } function Ml(A) { if (typeof A == "number") @@ -45055,33 +45055,33 @@ function Sa() { return wa(A, Vu(A)); } function TE(A) { - return A ? Po(zr(A), -W, W) : A === 0 ? A : 0; + return A ? Mo(zr(A), -W, W) : A === 0 ? A : 0; } function li(A) { return A == null ? "" : Or(A); } var M_ = Vc(function(A, D) { if (Vd(D) || qu(D)) { - wa(D, jo(D), A); + wa(D, Bo(D), A); return; } for (var U in D) - Jr.call(D, U) && Ao(A, U, D[U]); + Jr.call(D, U) && Ro(A, U, D[U]); }), ky = Vc(function(A, D) { wa(D, Vu(D), A); }), Hv = Vc(function(A, D, U, ee) { wa(D, Vu(D), A, ee); }), CE = Vc(function(A, D, U, ee) { - wa(D, jo(D), A, ee); + wa(D, Bo(D), A, ee); }), Ec = Sl(Uc); function P0(A, D) { var U = Tu(A); - return D == null ? U : co(U, D); + return D == null ? U : fo(U, D); } var D_ = Pe(function(A, D) { A = be(A); var U = -1, ee = D.length, ve = ee > 2 ? D[2] : t; - for (ve && Io(D[0], D[1], ve) && (ee = 1); ++U < ee; ) + for (ve && No(D[0], D[1], ve) && (ee = 1); ++U < ee; ) for (var Ae = D[U], Le = Vu(Ae), qe = -1, $e = Le.length; ++qe < $e; ) { var Ot = Le[qe], Tt = A[Ot]; (Tt === t || Rl(Tt, $a[Ot]) && !Jr.call(A, Ot)) && (A[Ot] = Ae[Ot]); @@ -45109,7 +45109,7 @@ function Sa() { return A && Ss(A, br(D, 3)); } function AE(A) { - return A == null ? [] : Qs(A, jo(A)); + return A == null ? [] : Qs(A, Bo(A)); } function RE(A) { return A == null ? [] : Qs(A, Vu(A)); @@ -45122,14 +45122,14 @@ function Sa() { return A != null && Dv(A, D, er); } function M0(A, D) { - return A != null && Dv(A, D, ho); + return A != null && Dv(A, D, vo); } var PE = jh(function(A, D, U) { - D != null && typeof D.toString != "function" && (D = Eo.call(D)), A[D] = U; + D != null && typeof D.toString != "function" && (D = So.call(D)), A[D] = U; }, Qv(ru)), ME = jh(function(A, D, U) { - D != null && typeof D.toString != "function" && (D = Eo.call(D)), Jr.call(A, D) ? A[D].push(U) : A[D] = [U]; - }, br), DE = Pe(Mo); - function jo(A) { + D != null && typeof D.toString != "function" && (D = So.call(D)), Jr.call(A, D) ? A[D].push(U) : A[D] = [U]; + }, br), DE = Pe(Do); + function Bo(A) { return qu(A) ? yl(A) : _l(A); } function Vu(A) { @@ -45138,13 +45138,13 @@ function Sa() { function kE(A, D) { var U = {}; return D = br(D, 3), Es(A, function(ee, ve, Ae) { - Ro(U, D(ee, ve, Ae), ee); + Po(U, D(ee, ve, Ae), ee); }), U; } function j_(A, D) { var U = {}; return D = br(D, 3), Es(A, function(ee, ve, Ae) { - Ro(U, ve, D(ee, ve, Ae)); + Po(U, ve, D(ee, ve, Ae)); }), U; } var Wv = Vc(function(A, D, U) { @@ -45194,7 +45194,7 @@ function Sa() { function D0(A, D, U, ee) { return ee = typeof ee == "function" ? ee : t, A == null ? A : Be(A, D, U, ee); } - var Ly = Mv(jo), bg = Mv(Vu); + var Ly = Mv(Bo), bg = Mv(Vu); function U_(A, D, U) { var ee = rn(A), ve = ee || Jd(A) || eh(A); if (D = br(D, 4), U == null) { @@ -45215,19 +45215,19 @@ function Sa() { return ee = typeof ee == "function" ? ee : t, A == null ? A : ua(A, D, tn(U), ee); } function Kv(A) { - return A == null ? [] : Nc(A, jo(A)); + return A == null ? [] : Nc(A, Bo(A)); } function k0(A) { return A == null ? [] : Nc(A, Vu(A)); } function LE(A, D, U) { - return U === t && (U = D, D = t), U !== t && (U = Ml(U), U = U === U ? U : 0), D !== t && (D = Ml(D), D = D === D ? D : 0), Po(Ml(A), D, U); + return U === t && (U = D, D = t), U !== t && (U = Ml(U), U = U === U ? U : 0), D !== t && (D = Ml(D), D = D === D ? D : 0), Mo(Ml(A), D, U); } function jy(A, D, U) { return D = pd(D), U === t ? (U = D, D = 0) : U = pd(U), A = Ml(A), Js(A, D, U); } function By(A, D, U) { - if (U && typeof U != "boolean" && Io(A, D, U) && (D = U = t), U === t && (typeof D == "boolean" ? (U = D, D = t) : typeof A == "boolean" && (U = A, A = t)), A === t && D === t ? (A = 0, D = 1) : (A = pd(A), D === t ? (D = A, A = 0) : D = pd(D)), A > D) { + if (U && typeof U != "boolean" && No(A, D, U) && (D = U = t), U === t && (typeof D == "boolean" ? (U = D, D = t) : typeof A == "boolean" && (U = A, A = t)), A === t && D === t ? (A = 0, D = 1) : (A = pd(A), D === t ? (D = A, A = 0) : D = pd(D)), A > D) { var ee = A; A = D, D = ee; } @@ -45249,7 +45249,7 @@ function Sa() { function jE(A, D, U) { A = li(A), D = Or(D); var ee = A.length; - U = U === t ? ee : Po(zr(U), 0, ee); + U = U === t ? ee : Mo(zr(U), 0, ee); var ve = U; return U -= D.length, U >= 0 && A.slice(U, ve) == D; } @@ -45283,10 +45283,10 @@ function Sa() { return D && ee < D ? Cf(D - ee, U) + A : A; } function BE(A, D, U) { - return U || D == null ? D = 0 : D && (D = +D), Co(li(A).replace(Fr, ""), D || 0); + return U || D == null ? D = 0 : D && (D = +D), Ao(li(A).replace(Fr, ""), D || 0); } function FE(A, D, U) { - return (U ? Io(A, D, U) : D === t) ? D = 1 : D = zr(D), ye(li(A), D); + return (U ? No(A, D, U) : D === t) ? D = 1 : D = zr(D), ye(li(A), D); } function N0() { var A = arguments, D = li(A[0]); @@ -45296,18 +45296,18 @@ function Sa() { return A + (U ? "_" : "") + D.toLowerCase(); }); function zy(A, D, U) { - return U && typeof U != "number" && Io(A, D, U) && (D = U = t), U = U === t ? X : U >>> 0, U ? (A = li(A), A && (typeof D == "string" || D != null && !pg(D)) && (D = Or(D), !D && Lc(A)) ? mn(ri(A), 0, U) : A.split(D, U)) : []; + return U && typeof U != "number" && No(A, D, U) && (D = U = t), U = U === t ? X : U >>> 0, U ? (A = li(A), A && (typeof D == "string" || D != null && !pg(D)) && (D = Or(D), !D && Lc(A)) ? mn(ri(A), 0, U) : A.split(D, U)) : []; } var j0 = ud(function(A, D, U) { return A + (U ? " " : "") + Qh(D); }); function K_(A, D, U) { - return A = li(A), U = U == null ? 0 : Po(zr(U), 0, A.length), D = Or(D), A.slice(U, U + D.length) == D; + return A = li(A), U = U == null ? 0 : Mo(zr(U), 0, A.length), D = Or(D), A.slice(U, U + D.length) == D; } function B0(A, D, U) { var ee = xe.templateSettings; - U && Io(A, D, U) && (D = t), A = li(A), D = Hv({}, D, ee, Mi); - var ve = Hv({}, D.imports, ee.imports, Mi), Ae = jo(ve), Le = Nc(ve, Ae), qe, $e, Ot = 0, Tt = D.interpolate || Bt, Pt = "__p += '", Qt = ol( + U && No(A, D, U) && (D = t), A = li(A), D = Hv({}, D, ee, Mi); + var ve = Hv({}, D.imports, ee.imports, Mi), Ae = Bo(ve), Le = Nc(ve, Ae), qe, $e, Ot = 0, Tt = D.interpolate || Bt, Pt = "__p += '", Qt = ol( (D.escape || Bt).source + "|" + Tt.source + "|" + (Tt === Xt ? fi : Bt).source + "|" + (D.evaluate || Bt).source + "|$", "g" ), pr = "//# sourceURL=" + (Jr.call(D, "sourceURL") ? (D.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++vs + "]") + ` @@ -45424,7 +45424,7 @@ function print() { __p += __j.call(arguments, '') } } }), qy = Sl(function(A, D) { return ir(D, function(U) { - U = Ps(U), Ro(A, U, Ty(A[U], A)); + U = Ps(U), Po(A, U, Ty(A[U], A)); }), A; }); function J_(A) { @@ -45452,7 +45452,7 @@ function print() { __p += __j.call(arguments, '') } function Gy(A, D) { return A == null || A !== A ? D : A; } - var ew = Do(), Jv = Do(!0); + var ew = ko(), Jv = ko(!0); function ru(A) { return A; } @@ -45467,16 +45467,16 @@ function print() { __p += __j.call(arguments, '') } } var qE = Pe(function(A, D) { return function(U) { - return Mo(U, A, D); + return Do(U, A, D); }; }), Hy = Pe(function(A, D) { return function(U) { - return Mo(A, U, D); + return Do(A, U, D); }; }); function v(A, D, U) { - var ee = jo(D), ve = Qs(D, ee); - U == null && !(ca(D) && (ve.length || !ee.length)) && (U = D, D = A, A = this, ve = Qs(D, jo(D))); + var ee = Bo(D), ve = Qs(D, ee); + U == null && !(ca(D) && (ve.length || !ee.length)) && (U = D, D = A, A = this, ve = Qs(D, Bo(D))); var Ae = !(ca(U) && "chain" in U) || !!U.chain, Le = Pl(A); return ir(ve, function(qe) { var $e = D[qe]; @@ -45491,7 +45491,7 @@ function print() { __p += __j.call(arguments, '') } }), A; } function w() { - return wi._ === this && (wi._ = So), this; + return wi._ === this && (wi._ = Oo), this; } function C() { } @@ -45575,7 +45575,7 @@ function print() { __p += __j.call(arguments, '') } function XG(A, D) { return A && A.length ? tc(A, br(D, 2)) : 0; } - return xe.after = y_, xe.ary = h0, xe.assign = M_, xe.assignIn = ky, xe.assignInWith = Hv, xe.assignWith = CE, xe.at = Ec, xe.before = v0, xe.bind = Ty, xe.bindAll = qy, xe.bindKey = p0, xe.castArray = wE, xe.chain = ag, xe.chunk = as, xe.compact = Wh, xe.concat = tg, xe.cond = J_, xe.conforms = zE, xe.constant = Qv, xe.countBy = s_, xe.create = P0, xe.curry = lg, xe.curryRight = g0, xe.debounce = y0, xe.defaults = D_, xe.defaultsDeep = k_, xe.defer = yi, xe.delay = m0, xe.difference = Bv, xe.differenceBy = Fv, xe.differenceWith = Cl, xe.drop = Ra, xe.dropRight = rg, xe.dropRightWhile = by, xe.dropWhile = qa, xe.fill = o0, xe.filter = c0, xe.flatMap = zu, xe.flatMapDeep = l_, xe.flatMapDepth = c_, xe.flatten = gi, xe.flattenDeep = No, xe.flattenDepth = Wc, xe.flip = mE, xe.flow = ew, xe.flowRight = Jv, xe.fromPairs = _y, xe.functions = AE, xe.functionsIn = RE, xe.groupBy = Ey, xe.initial = s0, xe.intersection = Uv, xe.intersectionBy = Ms, xe.intersectionWith = R, xe.invert = PE, xe.invertBy = ME, xe.invokeMap = qv, xe.iteratee = xg, xe.keyBy = d_, xe.keys = jo, xe.keysIn = Vu, xe.map = sg, xe.mapKeys = kE, xe.mapValues = j_, xe.matches = Vy, xe.matchesProperty = tw, xe.memoize = cg, xe.merge = Wv, xe.mergeWith = Yv, xe.method = qE, xe.methodOf = Hy, xe.mixin = v, xe.negate = Cy, xe.nthArg = M, xe.omit = B_, xe.omitBy = IE, xe.once = bE, xe.orderBy = h_, xe.over = F, xe.overArgs = _E, xe.overEvery = V, xe.overSome = ae, xe.partial = Vv, xe.partialRight = Kh, xe.partition = v_, xe.pick = Xv, xe.pickBy = $v, xe.property = Se, xe.propertyOf = Fe, xe.pull = Re, xe.pullAll = je, xe.pullAllBy = He, xe.pullAllWith = et, xe.pullAt = yt, xe.range = it, xe.rangeRight = ht, xe.rearg = b0, xe.reject = pE, xe.remove = Et, xe.rest = Ay, xe.reverse = At, xe.sampleSize = yE, xe.set = Ny, xe.setWith = D0, xe.shuffle = p_, xe.slice = $t, xe.sortBy = Oy, xe.sortedUniq = Lr, xe.sortedUniqBy = jr, xe.split = zy, xe.spread = _0, xe.tail = qn, xe.take = vr, xe.takeRight = zt, xe.takeRightWhile = Hr, xe.takeWhile = fr, xe.tap = o_, xe.throttle = Qd, xe.thru = $h, xe.toArray = P_, xe.toPairs = Ly, xe.toPairsIn = bg, xe.toPath = Xe, xe.toPlainObject = Dy, xe.transform = U_, xe.unary = Af, xe.union = Mr, xe.unionBy = _r, xe.unionWith = ui, xe.uniq = po, xe.uniqBy = tu, xe.uniqWith = Yc, xe.unset = z_, xe.unzip = Ga, xe.unzipWith = qi, xe.update = NE, xe.updateWith = q_, xe.values = Kv, xe.valuesIn = k0, xe.without = Xc, xe.words = Q_, xe.wrap = fg, xe.xor = xc, xe.xorBy = Xh, xe.xorWith = Lo, xe.zip = $c, xe.zipObject = Xd, xe.zipObjectDeep = go, xe.zipWith = $d, xe.entries = Ly, xe.entriesIn = bg, xe.extend = ky, xe.extendWith = Hv, v(xe, xe), xe.add = rt, xe.attempt = F0, xe.camelCase = Fy, xe.capitalize = G_, xe.ceil = bt, xe.clamp = LE, xe.clone = m_, xe.cloneDeep = __, xe.cloneDeepWith = w_, xe.cloneWith = b_, xe.conformsTo = xE, xe.deburr = Zv, xe.defaultTo = Gy, xe.divide = wr, xe.endsWith = jE, xe.eq = Rl, xe.escape = V_, xe.escapeRegExp = H_, xe.every = og, xe.find = Al, xe.findIndex = ng, xe.findKey = I_, xe.findLast = u_, xe.findLastIndex = Yh, xe.findLastKey = mg, xe.floor = Zn, xe.forEach = f_, xe.forEachRight = vd, xe.forIn = Sc, xe.forInRight = N_, xe.forOwn = Iy, xe.forOwnRight = gd, xe.get = th, xe.gt = x_, xe.gte = E_, xe.has = L_, xe.hasIn = M0, xe.head = ig, xe.identity = ru, xe.includes = f0, xe.indexOf = wy, xe.inRange = jy, xe.invoke = DE, xe.isArguments = Zh, xe.isArray = rn, xe.isArrayBuffer = w0, xe.isArrayLike = qu, xe.isArrayLikeObject = Va, xe.isBoolean = dg, xe.isBuffer = Jd, xe.isDate = S_, xe.isElement = Cn, xe.isEmpty = x0, xe.isEqual = Ry, xe.isEqualWith = E0, xe.isError = Py, xe.isFinite = S0, xe.isFunction = Pl, xe.isInteger = hg, xe.isLength = My, xe.isMap = O_, xe.isMatch = T_, xe.isMatchWith = C_, xe.isNaN = Oi, xe.isNative = O0, xe.isNil = EE, xe.isNull = os, xe.isNumber = T0, xe.isObject = ca, xe.isObjectLike = Pa, xe.isPlainObject = vg, xe.isRegExp = pg, xe.isSafeInteger = C0, xe.isSet = gg, xe.isString = yg, xe.isSymbol = Gu, xe.isTypedArray = eh, xe.isUndefined = A0, xe.isWeakMap = SE, xe.isWeakSet = A_, xe.join = N, xe.kebabCase = W_, xe.last = G, xe.lastIndexOf = te, xe.lowerCase = Y_, xe.lowerFirst = I0, xe.lt = OE, xe.lte = R_, xe.max = or, xe.maxBy = pn, xe.mean = kn, xe.meanBy = Qn, xe.min = oh, xe.minBy = GE, xe.stubArray = _t, xe.stubFalse = at, xe.stubObject = lt, xe.stubString = rr, xe.stubTrue = Dr, xe.multiply = VG, xe.nth = he, xe.noConflict = w, xe.noop = C, xe.now = ug, xe.pad = X_, xe.padEnd = $_, xe.padStart = Uy, xe.parseInt = BE, xe.random = By, xe.reduce = Sy, xe.reduceRight = d0, xe.repeat = FE, xe.replace = N0, xe.result = F_, xe.round = HG, xe.runInContext = We, xe.sample = gE, xe.size = g_, xe.snakeCase = L0, xe.some = Gv, xe.sortedIndex = tr, xe.sortedIndexBy = cr, xe.sortedIndexOf = St, xe.sortedLastIndex = Nt, xe.sortedLastIndexBy = lr, xe.sortedLastIndexOf = Gt, xe.startCase = j0, xe.startsWith = K_, xe.subtract = WG, xe.sum = YG, xe.sumBy = XG, xe.template = B0, xe.times = Ti, xe.toFinite = pd, xe.toInteger = zr, xe.toLength = R0, xe.toLower = rh, xe.toNumber = Ml, xe.toSafeInteger = TE, xe.toString = li, xe.toUpper = nh, xe.trim = ih, xe.trimEnd = _g, xe.trimStart = wg, xe.truncate = ah, xe.unescape = UE, xe.uniqueId = Ve, xe.upperCase = Z_, xe.upperFirst = Qh, xe.each = f_, xe.eachRight = vd, xe.first = ig, v(xe, (function() { + return xe.after = y_, xe.ary = h0, xe.assign = M_, xe.assignIn = ky, xe.assignInWith = Hv, xe.assignWith = CE, xe.at = Ec, xe.before = v0, xe.bind = Ty, xe.bindAll = qy, xe.bindKey = p0, xe.castArray = wE, xe.chain = ag, xe.chunk = as, xe.compact = Wh, xe.concat = tg, xe.cond = J_, xe.conforms = zE, xe.constant = Qv, xe.countBy = s_, xe.create = P0, xe.curry = lg, xe.curryRight = g0, xe.debounce = y0, xe.defaults = D_, xe.defaultsDeep = k_, xe.defer = yi, xe.delay = m0, xe.difference = Bv, xe.differenceBy = Fv, xe.differenceWith = Cl, xe.drop = Ra, xe.dropRight = rg, xe.dropRightWhile = by, xe.dropWhile = qa, xe.fill = o0, xe.filter = c0, xe.flatMap = zu, xe.flatMapDeep = l_, xe.flatMapDepth = c_, xe.flatten = gi, xe.flattenDeep = Lo, xe.flattenDepth = Wc, xe.flip = mE, xe.flow = ew, xe.flowRight = Jv, xe.fromPairs = _y, xe.functions = AE, xe.functionsIn = RE, xe.groupBy = Ey, xe.initial = s0, xe.intersection = Uv, xe.intersectionBy = Ms, xe.intersectionWith = R, xe.invert = PE, xe.invertBy = ME, xe.invokeMap = qv, xe.iteratee = xg, xe.keyBy = d_, xe.keys = Bo, xe.keysIn = Vu, xe.map = sg, xe.mapKeys = kE, xe.mapValues = j_, xe.matches = Vy, xe.matchesProperty = tw, xe.memoize = cg, xe.merge = Wv, xe.mergeWith = Yv, xe.method = qE, xe.methodOf = Hy, xe.mixin = v, xe.negate = Cy, xe.nthArg = M, xe.omit = B_, xe.omitBy = IE, xe.once = bE, xe.orderBy = h_, xe.over = F, xe.overArgs = _E, xe.overEvery = V, xe.overSome = ae, xe.partial = Vv, xe.partialRight = Kh, xe.partition = v_, xe.pick = Xv, xe.pickBy = $v, xe.property = Se, xe.propertyOf = Fe, xe.pull = Re, xe.pullAll = je, xe.pullAllBy = He, xe.pullAllWith = et, xe.pullAt = yt, xe.range = it, xe.rangeRight = ht, xe.rearg = b0, xe.reject = pE, xe.remove = Et, xe.rest = Ay, xe.reverse = At, xe.sampleSize = yE, xe.set = Ny, xe.setWith = D0, xe.shuffle = p_, xe.slice = $t, xe.sortBy = Oy, xe.sortedUniq = Lr, xe.sortedUniqBy = jr, xe.split = zy, xe.spread = _0, xe.tail = qn, xe.take = vr, xe.takeRight = zt, xe.takeRightWhile = Hr, xe.takeWhile = fr, xe.tap = o_, xe.throttle = Qd, xe.thru = $h, xe.toArray = P_, xe.toPairs = Ly, xe.toPairsIn = bg, xe.toPath = Xe, xe.toPlainObject = Dy, xe.transform = U_, xe.unary = Af, xe.union = Mr, xe.unionBy = _r, xe.unionWith = ui, xe.uniq = go, xe.uniqBy = tu, xe.uniqWith = Yc, xe.unset = z_, xe.unzip = Ga, xe.unzipWith = qi, xe.update = NE, xe.updateWith = q_, xe.values = Kv, xe.valuesIn = k0, xe.without = Xc, xe.words = Q_, xe.wrap = fg, xe.xor = xc, xe.xorBy = Xh, xe.xorWith = jo, xe.zip = $c, xe.zipObject = Xd, xe.zipObjectDeep = yo, xe.zipWith = $d, xe.entries = Ly, xe.entriesIn = bg, xe.extend = ky, xe.extendWith = Hv, v(xe, xe), xe.add = rt, xe.attempt = F0, xe.camelCase = Fy, xe.capitalize = G_, xe.ceil = bt, xe.clamp = LE, xe.clone = m_, xe.cloneDeep = __, xe.cloneDeepWith = w_, xe.cloneWith = b_, xe.conformsTo = xE, xe.deburr = Zv, xe.defaultTo = Gy, xe.divide = wr, xe.endsWith = jE, xe.eq = Rl, xe.escape = V_, xe.escapeRegExp = H_, xe.every = og, xe.find = Al, xe.findIndex = ng, xe.findKey = I_, xe.findLast = u_, xe.findLastIndex = Yh, xe.findLastKey = mg, xe.floor = Zn, xe.forEach = f_, xe.forEachRight = vd, xe.forIn = Sc, xe.forInRight = N_, xe.forOwn = Iy, xe.forOwnRight = gd, xe.get = th, xe.gt = x_, xe.gte = E_, xe.has = L_, xe.hasIn = M0, xe.head = ig, xe.identity = ru, xe.includes = f0, xe.indexOf = wy, xe.inRange = jy, xe.invoke = DE, xe.isArguments = Zh, xe.isArray = rn, xe.isArrayBuffer = w0, xe.isArrayLike = qu, xe.isArrayLikeObject = Va, xe.isBoolean = dg, xe.isBuffer = Jd, xe.isDate = S_, xe.isElement = Cn, xe.isEmpty = x0, xe.isEqual = Ry, xe.isEqualWith = E0, xe.isError = Py, xe.isFinite = S0, xe.isFunction = Pl, xe.isInteger = hg, xe.isLength = My, xe.isMap = O_, xe.isMatch = T_, xe.isMatchWith = C_, xe.isNaN = Oi, xe.isNative = O0, xe.isNil = EE, xe.isNull = os, xe.isNumber = T0, xe.isObject = ca, xe.isObjectLike = Pa, xe.isPlainObject = vg, xe.isRegExp = pg, xe.isSafeInteger = C0, xe.isSet = gg, xe.isString = yg, xe.isSymbol = Gu, xe.isTypedArray = eh, xe.isUndefined = A0, xe.isWeakMap = SE, xe.isWeakSet = A_, xe.join = N, xe.kebabCase = W_, xe.last = G, xe.lastIndexOf = te, xe.lowerCase = Y_, xe.lowerFirst = I0, xe.lt = OE, xe.lte = R_, xe.max = or, xe.maxBy = pn, xe.mean = kn, xe.meanBy = Qn, xe.min = oh, xe.minBy = GE, xe.stubArray = _t, xe.stubFalse = at, xe.stubObject = lt, xe.stubString = rr, xe.stubTrue = Dr, xe.multiply = VG, xe.nth = he, xe.noConflict = w, xe.noop = C, xe.now = ug, xe.pad = X_, xe.padEnd = $_, xe.padStart = Uy, xe.parseInt = BE, xe.random = By, xe.reduce = Sy, xe.reduceRight = d0, xe.repeat = FE, xe.replace = N0, xe.result = F_, xe.round = HG, xe.runInContext = We, xe.sample = gE, xe.size = g_, xe.snakeCase = L0, xe.some = Gv, xe.sortedIndex = tr, xe.sortedIndexBy = cr, xe.sortedIndexOf = St, xe.sortedLastIndex = Nt, xe.sortedLastIndexBy = lr, xe.sortedLastIndexOf = Gt, xe.startCase = j0, xe.startsWith = K_, xe.subtract = WG, xe.sum = YG, xe.sumBy = XG, xe.template = B0, xe.times = Ti, xe.toFinite = pd, xe.toInteger = zr, xe.toLength = R0, xe.toLower = rh, xe.toNumber = Ml, xe.toSafeInteger = TE, xe.toString = li, xe.toUpper = nh, xe.trim = ih, xe.trimEnd = _g, xe.trimStart = wg, xe.truncate = ah, xe.unescape = UE, xe.uniqueId = Ve, xe.upperCase = Z_, xe.upperFirst = Qh, xe.each = f_, xe.eachRight = vd, xe.first = ig, v(xe, (function() { var A = {}; return Es(xe, function(D, U) { Jr.call(xe.prototype, U) || (A[U] = D); @@ -45620,7 +45620,7 @@ function print() { __p += __j.call(arguments, '') } return this.reverse().find(A); }, Yr.prototype.invokeMap = Pe(function(A, D) { return typeof A == "function" ? new Yr(this) : this.map(function(U) { - return Mo(U, A, D); + return Do(U, A, D); }); }), Yr.prototype.reject = function(A) { return this.filter(Cy(br(A))); @@ -45669,16 +45669,16 @@ function print() { __p += __j.call(arguments, '') } }), Rn[zd(t, b).name] = [{ name: "wrapper", func: t - }], Yr.prototype.clone = Cu, Yr.prototype.reverse = ws, Yr.prototype.value = Au, xe.prototype.at = xy, xe.prototype.chain = Kd, xe.prototype.commit = yo, xe.prototype.next = Zd, xe.prototype.plant = hd, xe.prototype.reverse = u0, xe.prototype.toJSON = xe.prototype.valueOf = xe.prototype.value = l0, xe.prototype.first = xe.prototype.head, Yi && (xe.prototype[Yi] = zv), xe; + }], Yr.prototype.clone = Cu, Yr.prototype.reverse = ws, Yr.prototype.value = Au, xe.prototype.at = xy, xe.prototype.chain = Kd, xe.prototype.commit = mo, xe.prototype.next = Zd, xe.prototype.plant = hd, xe.prototype.reverse = u0, xe.prototype.toJSON = xe.prototype.valueOf = xe.prototype.value = l0, xe.prototype.first = xe.prototype.head, Yi && (xe.prototype[Yi] = zv), xe; }), ic = Ws(); aa ? ((aa.exports = ic)._ = ic, Jl._ = ic) : wi._ = ic; }).call(yie); })(mb, mb.exports)), mb.exports; } -var BR, N6; +var BR, L6; function mie() { - if (N6) return BR; - N6 = 1, BR = r; + if (L6) return BR; + L6 = 1, BR = r; function r() { var n = {}; n._next = n._prev = n, this._sentinel = n; @@ -45704,10 +45704,10 @@ function mie() { } return BR; } -var FR, L6; +var FR, j6; function bie() { - if (L6) return FR; - L6 = 1; + if (j6) return FR; + j6 = 1; var r = Sa(), e = Uf().Graph, t = mie(); FR = i; var n = r.constant(1); @@ -45765,10 +45765,10 @@ function bie() { } return FR; } -var UR, j6; +var UR, B6; function _ie() { - if (j6) return UR; - j6 = 1; + if (B6) return UR; + B6 = 1; var r = Sa(), e = bie(); UR = { run: t, @@ -45807,10 +45807,10 @@ function _ie() { } return UR; } -var zR, B6; +var zR, F6; function Rc() { - if (B6) return zR; - B6 = 1; + if (F6) return zR; + F6 = 1; var r = Sa(), e = Uf().Graph; zR = { addDummyNode: t, @@ -45946,10 +45946,10 @@ function Rc() { } return zR; } -var qR, F6; +var qR, U6; function wie() { - if (F6) return qR; - F6 = 1; + if (U6) return qR; + U6 = 1; var r = Sa(), e = Rc(); qR = { run: t, @@ -45985,10 +45985,10 @@ function wie() { } return qR; } -var GR, U6; +var GR, z6; function Gx() { - if (U6) return GR; - U6 = 1; + if (z6) return GR; + z6 = 1; var r = Sa(); GR = { longestPath: e, @@ -46015,10 +46015,10 @@ function Gx() { } return GR; } -var VR, z6; +var VR, q6; function pz() { - if (z6) return VR; - z6 = 1; + if (q6) return VR; + q6 = 1; var r = Sa(), e = Uf().Graph, t = Gx().slack; VR = n; function n(s) { @@ -46050,10 +46050,10 @@ function pz() { } return VR; } -var HR, q6; +var HR, G6; function xie() { - if (q6) return HR; - q6 = 1; + if (G6) return HR; + G6 = 1; var r = Sa(), e = pz(), t = Gx().slack, n = Gx().longestPath, i = Uf().alg.preorder, a = Uf().alg.postorder, o = Rc().simplify; HR = s, s.initLowLimValues = f, s.initCutValues = u, s.calcCutValue = c, s.leaveEdge = h, s.enterEdge = p, s.exchangeEdges = g; function s(m) { @@ -46133,10 +46133,10 @@ function xie() { } return HR; } -var WR, G6; +var WR, V6; function Eie() { - if (G6) return WR; - G6 = 1; + if (V6) return WR; + V6 = 1; var r = Gx(), e = r.longestPath, t = pz(), n = xie(); WR = i; function i(u) { @@ -46163,10 +46163,10 @@ function Eie() { } return WR; } -var YR, V6; +var YR, H6; function Sie() { - if (V6) return YR; - V6 = 1; + if (H6) return YR; + H6 = 1; var r = Sa(); YR = e; function e(i) { @@ -46207,10 +46207,10 @@ function Sie() { } return YR; } -var XR, H6; +var XR, W6; function Oie() { - if (H6) return XR; - H6 = 1; + if (W6) return XR; + W6 = 1; var r = Sa(), e = Rc(); XR = { run: t, @@ -46273,10 +46273,10 @@ function Oie() { } return XR; } -var $R, W6; +var $R, Y6; function Tie() { - if (W6) return $R; - W6 = 1; + if (Y6) return $R; + Y6 = 1; var r = Sa(), e = Rc(); $R = t; function t(i) { @@ -46296,10 +46296,10 @@ function Tie() { } return $R; } -var KR, Y6; +var KR, X6; function Cie() { - if (Y6) return KR; - Y6 = 1; + if (X6) return KR; + X6 = 1; var r = Sa(); KR = { adjust: e, @@ -46349,10 +46349,10 @@ function Cie() { } return KR; } -var ZR, X6; +var ZR, $6; function Aie() { - if (X6) return ZR; - X6 = 1; + if ($6) return ZR; + $6 = 1; var r = Sa(); ZR = e; function e(t) { @@ -46377,10 +46377,10 @@ function Aie() { } return ZR; } -var QR, $6; +var QR, K6; function Rie() { - if ($6) return QR; - $6 = 1; + if (K6) return QR; + K6 = 1; var r = Sa(); QR = e; function e(n, i) { @@ -46414,10 +46414,10 @@ function Rie() { } return QR; } -var JR, K6; +var JR, Z6; function Pie() { - if (K6) return JR; - K6 = 1; + if (Z6) return JR; + Z6 = 1; var r = Sa(); JR = e; function e(t, n) { @@ -46442,10 +46442,10 @@ function Pie() { } return JR; } -var eP, Z6; +var eP, Q6; function Mie() { - if (Z6) return eP; - Z6 = 1; + if (Q6) return eP; + Q6 = 1; var r = Sa(); eP = e; function e(i, a) { @@ -46499,10 +46499,10 @@ function Mie() { } return eP; } -var tP, Q6; +var tP, J6; function Die() { - if (Q6) return tP; - Q6 = 1; + if (J6) return tP; + J6 = 1; var r = Sa(), e = Rc(); tP = t; function t(a, o) { @@ -46529,10 +46529,10 @@ function Die() { } return tP; } -var rP, J6; +var rP, e8; function kie() { - if (J6) return rP; - J6 = 1; + if (e8) return rP; + e8 = 1; var r = Sa(), e = Pie(), t = Mie(), n = Die(); rP = i; function i(s, u, l, c) { @@ -46568,10 +46568,10 @@ function kie() { } return rP; } -var nP, e8; +var nP, t8; function Iie() { - if (e8) return nP; - e8 = 1; + if (t8) return nP; + t8 = 1; var r = Sa(), e = Uf().Graph; nP = t; function t(i, a, o) { @@ -46595,10 +46595,10 @@ function Iie() { } return nP; } -var iP, t8; +var iP, r8; function Nie() { - if (t8) return iP; - t8 = 1; + if (r8) return iP; + r8 = 1; var r = Sa(); iP = e; function e(t, n, i) { @@ -46615,10 +46615,10 @@ function Nie() { } return iP; } -var aP, r8; +var aP, n8; function Lie() { - if (r8) return aP; - r8 = 1; + if (n8) return aP; + n8 = 1; var r = Sa(), e = Aie(), t = Rie(), n = kie(), i = Iie(), a = Nie(), o = Uf().Graph, s = Rc(); aP = u; function u(d) { @@ -46654,10 +46654,10 @@ function Lie() { } return aP; } -var oP, n8; +var oP, i8; function jie() { - if (n8) return oP; - n8 = 1; + if (i8) return oP; + i8 = 1; var r = Sa(), e = Uf().Graph, t = Rc(); oP = { positionX: p, @@ -46875,10 +46875,10 @@ function jie() { } return oP; } -var sP, i8; +var sP, a8; function Bie() { - if (i8) return sP; - i8 = 1; + if (a8) return sP; + a8 = 1; var r = Sa(), e = Rc(), t = jie().positionX; sP = n; function n(a) { @@ -46899,10 +46899,10 @@ function Bie() { } return sP; } -var uP, a8; +var uP, o8; function Fie() { - if (a8) return uP; - a8 = 1; + if (o8) return uP; + o8 = 1; var r = Sa(), e = _ie(), t = wie(), n = Eie(), i = Rc().normalizeRanks, a = Sie(), o = Rc().removeEmptyRanks, s = Oie(), u = Tie(), l = Cie(), c = Lie(), f = Bie(), d = Rc(), h = Uf().Graph; uP = p; function p(re, ne) { @@ -47150,10 +47150,10 @@ function Fie() { } return uP; } -var lP, o8; +var lP, s8; function Uie() { - if (o8) return lP; - o8 = 1; + if (s8) return lP; + s8 = 1; var r = Sa(), e = Rc(), t = Uf().Graph; lP = { debugOrdering: n @@ -47173,13 +47173,13 @@ function Uie() { } return lP; } -var cP, s8; +var cP, u8; function zie() { - return s8 || (s8 = 1, cP = "0.8.14"), cP; + return u8 || (u8 = 1, cP = "0.8.14"), cP; } -var fP, u8; +var fP, l8; function qie() { - return u8 || (u8 = 1, fP = { + return l8 || (l8 = 1, fP = { graphlib: Uf(), layout: Fie(), debug: Uie(), @@ -47192,10 +47192,10 @@ function qie() { } var Gie = qie(); const gz = /* @__PURE__ */ Bp(Gie); -var dP, l8; +var dP, c8; function Vie() { - if (l8) return dP; - l8 = 1; + if (c8) return dP; + c8 = 1; var r = function() { }; return r.prototype = { @@ -47242,10 +47242,10 @@ function Vie() { } }, dP = r, dP; } -var hP, c8; +var hP, f8; function Hie() { - if (c8) return hP; - c8 = 1; + if (f8) return hP; + f8 = 1; var r = Vie(); return hP = function(e, t) { t = t || {}; @@ -47269,12 +47269,12 @@ function Hie() { var Wie = Hie(); const Yie = /* @__PURE__ */ Bp(Wie); var Xie = Uf(); -const $ie = /* @__PURE__ */ Bp(Xie), Kie = "tight-tree", rv = 100, yz = "up", MD = "down", Zie = "left", mz = "right", Qie = { +const $ie = /* @__PURE__ */ Bp(Xie), Kie = "tight-tree", rv = 100, yz = "up", DD = "down", Zie = "left", mz = "right", Qie = { [yz]: "BT", - [MD]: "TB", + [DD]: "TB", [Zie]: "RL", [mz]: "LR" -}, Jie = "bin", eae = 25, tae = 1 / 0.38, rae = (r) => r === yz || r === MD, nae = (r) => r === MD || r === mz, vP = (r) => { +}, Jie = "bin", eae = 25, tae = 1 / 0.38, rae = (r) => r === yz || r === DD, nae = (r) => r === DD || r === mz, vP = (r) => { let e = null, t = null, n = null, i = null, a = null, o = null, s = null, u = null; for (const l of r.nodes()) { const c = r.node(l); @@ -47299,7 +47299,7 @@ const $ie = /* @__PURE__ */ Bp(Xie), Kie = "tight-tree", rv = 100, yz = "up", MD }, bz = (r) => { const e = new gz.graphlib.Graph(); return e.setGraph({}), e.setDefaultEdgeLabel(() => ({})), e.graph().nodesep = 75 * r, e.graph().ranksep = 75 * r, e; -}, f8 = (r, e, t) => { +}, d8 = (r, e, t) => { const { rank: n } = t.node(r); let i = null, a = null; for (const o of e) { @@ -47312,8 +47312,8 @@ const $ie = /* @__PURE__ */ Bp(Xie), Kie = "tight-tree", rv = 100, yz = "up", MD } return a; }, iae = (r, e) => { - let t = f8(r, e.predecessors(r), e); - return t === null && (t = f8(r, e.successors(r), e)), t; + let t = d8(r, e.predecessors(r), e); + return t === null && (t = d8(r, e.successors(r), e)), t; }, aae = (r, e) => { const t = [], n = $ie.alg.components(r); if (n.length > 1) @@ -47332,7 +47332,7 @@ const $ie = /* @__PURE__ */ Bp(Xie), Kie = "tight-tree", rv = 100, yz = "up", MD else t.push(r); return t; -}, d8 = (r, e, t) => { +}, h8 = (r, e, t) => { r.graph().ranker = Kie, r.graph().rankdir = Qie[e]; const n = gz.layout(r); for (const i of n.nodes()) { @@ -47364,7 +47364,7 @@ const $ie = /* @__PURE__ */ Bp(Xie), Kie = "tight-tree", rv = 100, yz = "up", MD } const h = aae(s, o); if (h.length > 1) { - h.forEach((S) => d8(S, i, u)); + h.forEach((S) => h8(S, i, u)); const m = rae(i), x = nae(i), E = h.filter((S) => S.nodeCount() === 1), O = h.filter((S) => S.nodeCount() !== 1); if (a === Jie) { O.sort((q, W) => W.nodeCount() - q.nodeCount()); @@ -47432,7 +47432,7 @@ const $ie = /* @__PURE__ */ Bp(Xie), Kie = "tight-tree", rv = 100, yz = "up", MD x ? (H(), q()) : (q(), H()); } } else - d8(s, i, u); + h8(s, i, u); l.x = 0, l.y = 0; const p = {}; for (const m of s.nodes()) { @@ -54941,7 +54941,7 @@ var dae = { 5: function(r, e, t) { return En; } function Mc(st, xt) { - return !(st == null || !st.length) && wo(st, xt, 0) > -1; + return !(st == null || !st.length) && xo(st, xt, 0) > -1; } function Xl(st, xt, pt) { for (var Wt = -1, ir = st == null ? 0 : st.length; ++Wt < ir; ) if (pt(xt, st[Wt])) return !0; @@ -54969,22 +54969,22 @@ var dae = { 5: function(r, e, t) { for (var pt = -1, Wt = st == null ? 0 : st.length; ++pt < Wt; ) if (xt(st[pt], pt, st)) return !0; return !1; } - var of = so("length"); + var of = uo("length"); function gu(st, xt, pt) { var Wt; return pt(st, function(ir, En, oa) { if (xt(ir, En, oa)) return Wt = En, !1; }), Wt; } - function _o(st, xt, pt, Wt) { + function wo(st, xt, pt, Wt) { for (var ir = st.length, En = pt + (Wt ? 1 : -1); Wt ? En-- : ++En < ir; ) if (xt(st[En], En, st)) return En; return -1; } - function wo(st, xt, pt) { + function xo(st, xt, pt) { return xt == xt ? (function(Wt, ir, En) { for (var oa = En - 1, ja = Wt.length; ++oa < ja; ) if (Wt[oa] === ir) return oa; return -1; - })(st, xt, pt) : _o(st, sf, pt); + })(st, xt, pt) : wo(st, sf, pt); } function Vf(st, xt, pt, Wt) { for (var ir = pt - 1, En = st.length; ++ir < En; ) if (Wt(st[ir], xt)) return ir; @@ -54997,7 +54997,7 @@ var dae = { 5: function(r, e, t) { var pt = st == null ? 0 : st.length; return pt ? Vo(st, xt) / pt : d; } - function so(st) { + function uo(st) { return function(xt) { return xt == null ? i : xt[st]; }; @@ -55040,11 +55040,11 @@ var dae = { 5: function(r, e, t) { return st.has(xt); } function Dc(st, xt) { - for (var pt = -1, Wt = st.length; ++pt < Wt && wo(xt, st[pt], 0) > -1; ) ; + for (var pt = -1, Wt = st.length; ++pt < Wt && xo(xt, st[pt], 0) > -1; ) ; return pt; } function Oa(st, xt) { - for (var pt = st.length; pt-- && wo(xt, st[pt], 0) > -1; ) ; + for (var pt = st.length; pt-- && xo(xt, st[pt], 0) > -1; ) ; return pt; } var tl = el({ À: "A", Á: "A", Â: "A", Ã: "A", Ä: "A", Å: "A", à: "a", á: "a", â: "a", ã: "a", ä: "a", å: "a", Ç: "C", ç: "c", Ð: "D", ð: "d", È: "E", É: "E", Ê: "E", Ë: "E", è: "e", é: "e", ê: "e", ë: "e", Ì: "I", Í: "I", Î: "I", Ï: "I", ì: "i", í: "i", î: "i", ï: "i", Ñ: "N", ñ: "n", Ò: "O", Ó: "O", Ô: "O", Õ: "O", Ö: "O", Ø: "O", ò: "o", ó: "o", ô: "o", õ: "o", ö: "o", ø: "o", Ù: "U", Ú: "U", Û: "U", Ü: "U", ù: "u", ú: "u", û: "u", ü: "u", Ý: "Y", ý: "y", ÿ: "y", Æ: "Ae", æ: "ae", Þ: "Th", þ: "th", ß: "ss", Ā: "A", Ă: "A", Ą: "A", ā: "a", ă: "a", ą: "a", Ć: "C", Ĉ: "C", Ċ: "C", Č: "C", ć: "c", ĉ: "c", ċ: "c", č: "c", Ď: "D", Đ: "D", ď: "d", đ: "d", Ē: "E", Ĕ: "E", Ė: "E", Ę: "E", Ě: "E", ē: "e", ĕ: "e", ė: "e", ę: "e", ě: "e", Ĝ: "G", Ğ: "G", Ġ: "G", Ģ: "G", ĝ: "g", ğ: "g", ġ: "g", ģ: "g", Ĥ: "H", Ħ: "H", ĥ: "h", ħ: "h", Ĩ: "I", Ī: "I", Ĭ: "I", Į: "I", İ: "I", ĩ: "i", ī: "i", ĭ: "i", į: "i", ı: "i", Ĵ: "J", ĵ: "j", Ķ: "K", ķ: "k", ĸ: "k", Ĺ: "L", Ļ: "L", Ľ: "L", Ŀ: "L", Ł: "L", ĺ: "l", ļ: "l", ľ: "l", ŀ: "l", ł: "l", Ń: "N", Ņ: "N", Ň: "N", Ŋ: "N", ń: "n", ņ: "n", ň: "n", ŋ: "n", Ō: "O", Ŏ: "O", Ő: "O", ō: "o", ŏ: "o", ő: "o", Ŕ: "R", Ŗ: "R", Ř: "R", ŕ: "r", ŗ: "r", ř: "r", Ś: "S", Ŝ: "S", Ş: "S", Š: "S", ś: "s", ŝ: "s", ş: "s", š: "s", Ţ: "T", Ť: "T", Ŧ: "T", ţ: "t", ť: "t", ŧ: "t", Ũ: "U", Ū: "U", Ŭ: "U", Ů: "U", Ű: "U", Ų: "U", ũ: "u", ū: "u", ŭ: "u", ů: "u", ű: "u", ų: "u", Ŵ: "W", ŵ: "w", Ŷ: "Y", ŷ: "y", Ÿ: "Y", Ź: "Z", Ż: "Z", Ž: "Z", ź: "z", ż: "z", ž: "z", IJ: "IJ", ij: "ij", Œ: "Oe", œ: "oe", ʼn: "'n", ſ: "s" }), uf = el({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }); @@ -55101,8 +55101,8 @@ var dae = { 5: function(r, e, t) { for (var xt = st.length; xt-- && Ee.test(st.charAt(xt)); ) ; return xt; } - var uo = el({ "&": "&", "<": "<", ">": ">", """: '"', "'": "'" }), Ho = (function st(xt) { - var pt, Wt = (xt = xt == null ? Ln : Ho.defaults(Ln.Object(), xt, Ho.pick(Ln, Na))).Array, ir = xt.Date, En = xt.Error, oa = xt.Function, ja = xt.Math, Kn = xt.Object, ec = xt.RegExp, xi = xt.String, ba = xt.TypeError, cf = Wt.prototype, Ev = oa.prototype, nl = Kn.prototype, Dd = xt["__core-js_shared__"], kd = Ev.toString, Fn = nl.hasOwnProperty, Sv = 0, Hf = (pt = /[^.]+$/.exec(Dd && Dd.keys && Dd.keys.IE_PROTO || "")) ? "Symbol(src)_1." + pt : "", il = nl.toString, Ov = kd.call(Kn), Wf = Ln._, ff = ec("^" + kd.call(Fn).replace(Q, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Vs = Pc ? xt.Buffer : i, _u = xt.Symbol, kc = xt.Uint8Array, Ah = Vs ? Vs.allocUnsafe : i, tc = Jl(Kn.getPrototypeOf, Kn), Yf = Kn.create, Ic = nl.propertyIsEnumerable, wu = cf.splice, xo = _u ? _u.isConcatSpreadable : i, Nc = _u ? _u.iterator : i, Hs = _u ? _u.toStringTag : i, df = (function() { + var lo = el({ "&": "&", "<": "<", ">": ">", """: '"', "'": "'" }), Ho = (function st(xt) { + var pt, Wt = (xt = xt == null ? Ln : Ho.defaults(Ln.Object(), xt, Ho.pick(Ln, Na))).Array, ir = xt.Date, En = xt.Error, oa = xt.Function, ja = xt.Math, Kn = xt.Object, ec = xt.RegExp, xi = xt.String, ba = xt.TypeError, cf = Wt.prototype, Ev = oa.prototype, nl = Kn.prototype, Dd = xt["__core-js_shared__"], kd = Ev.toString, Fn = nl.hasOwnProperty, Sv = 0, Hf = (pt = /[^.]+$/.exec(Dd && Dd.keys && Dd.keys.IE_PROTO || "")) ? "Symbol(src)_1." + pt : "", il = nl.toString, Ov = kd.call(Kn), Wf = Ln._, ff = ec("^" + kd.call(Fn).replace(Q, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Vs = Pc ? xt.Buffer : i, _u = xt.Symbol, kc = xt.Uint8Array, Ah = Vs ? Vs.allocUnsafe : i, tc = Jl(Kn.getPrototypeOf, Kn), Yf = Kn.create, Ic = nl.propertyIsEnumerable, wu = cf.splice, Eo = _u ? _u.isConcatSpreadable : i, Nc = _u ? _u.iterator : i, Hs = _u ? _u.toStringTag : i, df = (function() { try { var R = Ts(Kn, "defineProperty"); return R({}, "", {}), R; @@ -55173,21 +55173,21 @@ var dae = { 5: function(r, e, t) { var N = R.length; return N ? R[Tu(0, N - 1)] : i; } - function Eo(R, N) { + function So(R, N) { return ju(Ca(R), ll(N, 0, R.length)); } function jd(R) { return ju(Ca(R)); } - function So(R, N, G) { - (G !== i && !Do(R[N], G) || G === i && !(N in R)) && ys(R, N, G); + function Oo(R, N, G) { + (G !== i && !ko(R[N], G) || G === i && !(N in R)) && ys(R, N, G); } function Eu(R, N, G) { var te = R[N]; - Fn.call(R, N) && Do(te, G) && (G !== i || N in R) || ys(R, N, G); + Fn.call(R, N) && ko(te, G) && (G !== i || N in R) || ys(R, N, G); } function ul(R, N) { - for (var G = R.length; G--; ) if (Do(R[G][0], N)) return G; + for (var G = R.length; G--; ) if (ko(R[G][0], N)) return G; return -1; } function Ys(R, N, G, te) { @@ -55223,7 +55223,7 @@ var dae = { 5: function(r, e, t) { if (Uu(R)) return Ta(R, He); if (At == T || At == g || $t && !he) { if (je = et || $t ? {} : ts(R), !He) return et ? (function(St, Nt) { - return Jo(St, Mo(St), Nt); + return Jo(St, Do(St), Nt); })(R, (function(St, Nt) { return St && Jo(Nt, to(Nt), St); })(je, R)) : (function(St, Nt) { @@ -55347,14 +55347,14 @@ var dae = { 5: function(r, e, t) { }, gs.prototype.clear = function() { this.size = 0, this.__data__ = { hash: new sl(), map: new (ri || $a)(), string: new sl() }; }, gs.prototype.delete = function(R) { - var N = ho(this, R).delete(R); + var N = vo(this, R).delete(R); return this.size -= N ? 1 : 0, N; }, gs.prototype.get = function(R) { - return ho(this, R).get(R); + return vo(this, R).get(R); }, gs.prototype.has = function(R) { - return ho(this, R).has(R); + return vo(this, R).has(R); }, gs.prototype.set = function(R, N) { - var G = ho(this, R), te = G.size; + var G = vo(this, R), te = G.size; return G.set(R, N), this.size += G.size == te ? 0 : 1, this; }, xu.prototype.add = xu.prototype.push = function(R) { return this.__data__.set(R, o), this; @@ -55378,7 +55378,7 @@ var dae = { 5: function(r, e, t) { } return G.set(R, N), this.size = G.size, this; }; - var Ba = Ao(Xs), Oo = Ao(sa, !0); + var Ba = Ro(Xs), To = Ro(sa, !0); function Cv(R, N) { var G = !0; return Ba(R, function(te, he, Re) { @@ -55419,7 +55419,7 @@ var dae = { 5: function(r, e, t) { }); } function bs(R, N) { - for (var G = 0, te = (N = lo(N, R)).length; R != null && G < te; ) R = R[Un(N[G++])]; + for (var G = 0, te = (N = co(N, R)).length; R != null && G < te; ) R = R[Un(N[G++])]; return G && G == te ? R : i; } function Ri(R, N, G) { @@ -55440,10 +55440,10 @@ var dae = { 5: function(r, e, t) { return il.call(N); })(R); } - function To(R, N) { + function Co(R, N) { return R > N; } - function Co(R, N) { + function Ao(R, N) { return R != null && Fn.call(R, N); } function Xi(R, N) { @@ -55469,7 +55469,7 @@ var dae = { 5: function(r, e, t) { return yt; } function Fa(R, N, G) { - var te = (R = Nh(R, N = lo(N, R))) == null ? R : R[Un(dt(N))]; + var te = (R = Nh(R, N = co(N, R))) == null ? R : R[Un(dt(N))]; return te == null ? i : Wi(te, R, G); } function Ua(R) { @@ -55492,21 +55492,21 @@ var dae = { 5: function(r, e, t) { case b: case _: case S: - return Do(+vr, +zt); + return ko(+vr, +zt); case m: return vr.name == zt.name && vr.message == zt.message; case I: case L: return vr == zt + ""; case O: - var po = wi; + var go = wi; case k: var tu = 1 & fr; - if (po || (po = mu), vr.size != zt.size && !tu) return !1; + if (go || (go = mu), vr.size != zt.size && !tu) return !1; var Yc = ui.get(vr); if (Yc) return Yc == zt; fr |= 2, ui.set(vr, zt); - var Ga = Es(po(vr), po(zt), fr, Mr, _r, ui); + var Ga = Es(go(vr), go(zt), fr, Mr, _r, ui); return ui.delete(vr), Ga; case B: if (Qr) return Qr.call(vr) == Qr.call(zt); @@ -55521,10 +55521,10 @@ var dae = { 5: function(r, e, t) { } } return !!lr && (Et || (Et = new Jr()), (function(vr, zt, Hr, fr, Mr, _r) { - var ui = 1 & Hr, po = Qs(vr), tu = po.length; + var ui = 1 & Hr, go = Qs(vr), tu = go.length; if (tu != Qs(zt).length && !ui) return !1; for (var Yc = tu; Yc--; ) { - var Ga = po[Yc]; + var Ga = go[Yc]; if (!(ui ? Ga in zt : Fn.call(zt, Ga))) return !1; } var qi = _r.get(vr), Xc = _r.get(zt); @@ -55532,17 +55532,17 @@ var dae = { 5: function(r, e, t) { var xc = !0; _r.set(vr, zt), _r.set(zt, vr); for (var Xh = ui; ++Yc < tu; ) { - var Lo = vr[Ga = po[Yc]], $c = zt[Ga]; - if (fr) var Xd = ui ? fr($c, Lo, Ga, zt, vr, _r) : fr(Lo, $c, Ga, vr, zt, _r); - if (!(Xd === i ? Lo === $c || Mr(Lo, $c, Hr, fr, _r) : Xd)) { + var jo = vr[Ga = go[Yc]], $c = zt[Ga]; + if (fr) var Xd = ui ? fr($c, jo, Ga, zt, vr, _r) : fr(jo, $c, Ga, vr, zt, _r); + if (!(Xd === i ? jo === $c || Mr(jo, $c, Hr, fr, _r) : Xd)) { xc = !1; break; } Xh || (Xh = Ga == "constructor"); } if (xc && !Xh) { - var go = vr.constructor, $d = zt.constructor; - go == $d || !("constructor" in vr) || !("constructor" in zt) || typeof go == "function" && go instanceof go && typeof $d == "function" && $d instanceof $d || (xc = !1); + var yo = vr.constructor, $d = zt.constructor; + yo == $d || !("constructor" in vr) || !("constructor" in zt) || typeof yo == "function" && yo instanceof yo && typeof $d == "function" && $d instanceof $d || (xc = !1); } return _r.delete(vr), _r.delete(zt), xc; })(Re, je, He, et, yt, Et)); @@ -55605,19 +55605,19 @@ var dae = { 5: function(r, e, t) { R !== N && Yo(N, function(Re, je) { if (he || (he = new Jr()), Mi(Re)) (function(et, yt, Et, At, $t, tr, cr) { var St = si(et, Et), Nt = si(yt, Et), lr = cr.get(Nt); - if (lr) So(et, Et, lr); + if (lr) Oo(et, Et, lr); else { var Gt = tr ? tr(St, Nt, Et + "", et, yt, cr) : i, Lr = Gt === i; if (Lr) { var jr = Ur(Nt), qn = !jr && Uu(Nt), vr = !jr && !qn && _c(Nt); Gt = Nt, jr || qn || vr ? Ur(St) ? Gt = St : Ui(St) ? Gt = Ca(St) : qn ? (Lr = !1, Gt = Ta(Nt, !0)) : vr ? (Lr = !1, Gt = Jf(Nt, !0)) : Gt = [] : Gd(Nt) || El(Nt) ? (Gt = St, El(St) ? Gt = Fh(St) : Mi(St) && !bc(St) || (Gt = ts(Nt))) : Lr = !1; } - Lr && (cr.set(Nt, Gt), $t(Gt, Nt, At, tr, cr), cr.delete(Nt)), So(et, Et, Gt); + Lr && (cr.set(Nt, Gt), $t(Gt, Nt, At, tr, cr), cr.delete(Nt)), Oo(et, Et, Gt); } })(R, N, je, G, mf, te, he); else { var He = te ? te(si(R, je), Re, je + "", R, N, he) : i; - He === i && (He = Re), So(R, je, He); + He === i && (He = Re), Oo(R, je, He); } }, to); } @@ -55656,12 +55656,12 @@ var dae = { 5: function(r, e, t) { function _s(R, N, G) { for (var te = -1, he = N.length, Re = {}; ++te < he; ) { var je = N[te], He = bs(R, je); - G(He, je) && ws(Re, lo(je, R), He); + G(He, je) && ws(Re, co(je, R), He); } return Re; } function hl(R, N, G, te) { - var he = te ? Vf : wo, Re = -1, je = N.length, He = R; + var he = te ? Vf : xo, Re = -1, je = N.length, He = R; for (R === N && (N = Ca(N)), G && (He = ti(R, Zr(G))); ++Re < je; ) for (var et = 0, yt = N[Re], Et = G ? G(yt) : yt; (et = he(He, Et, et, te)) > -1; ) He !== R && wu.call(He, et, 1), wu.call(R, et, 1); return R; } @@ -55698,7 +55698,7 @@ var dae = { 5: function(r, e, t) { } function ws(R, N, G, te) { if (!Mi(R)) return R; - for (var he = -1, Re = (N = lo(N, R)).length, je = Re - 1, He = R; He != null && ++he < Re; ) { + for (var he = -1, Re = (N = co(N, R)).length, je = Re - 1, He = R; He != null && ++he < Re; ) { var et = Un(N[he]), yt = G; if (et === "__proto__" || et === "constructor" || et === "prototype") return R; if (he != je) { @@ -55754,7 +55754,7 @@ var dae = { 5: function(r, e, t) { function Ko(R, N) { for (var G = -1, te = R.length, he = 0, Re = []; ++G < te; ) { var je = R[G], He = N ? N(je) : je; - if (!G || !Do(He, et)) { + if (!G || !ko(He, et)) { var et = He; Re[he++] = je === 0 ? 0 : je; } @@ -55789,7 +55789,7 @@ var dae = { 5: function(r, e, t) { return He; } function Ih(R, N) { - var G = -1, te = (N = lo(N, R)).length; + var G = -1, te = (N = co(N, R)).length; if (!te) return !0; for (var he = R == null || typeof R != "object" && typeof R != "function"; ++G < te; ) { var Re = N[G]; @@ -55836,7 +55836,7 @@ var dae = { 5: function(r, e, t) { function gl(R) { return typeof R == "function" ? R : as; } - function lo(R, N) { + function co(R, N) { return Ur(R) ? R : vi(R, N) ? [R] : Aa(Dn(R)); } var Av = ar; @@ -55910,7 +55910,7 @@ var dae = { 5: function(r, e, t) { return N; }); } - function Ao(R, N) { + function Ro(R, N) { return function(G, te) { if (G == null) return G; if (!ns(G)) return R(G, te); @@ -55933,7 +55933,7 @@ var dae = { 5: function(r, e, t) { return te[R]() + he; }; } - function co(R) { + function fo(R) { return function(N) { return Ju(Yd(Hd(N).replace(di, "")), R, ""); }; @@ -55963,7 +55963,7 @@ var dae = { 5: function(r, e, t) { return Mi(te) ? te : G; }; } - function Ro(R) { + function Po(R) { return function(N, G, te) { var he = Kn(N); if (!ns(N)) { @@ -55996,7 +55996,7 @@ var dae = { 5: function(r, e, t) { }; }); } - function Po(R, N, G, te, he, Re, je, He, et, yt) { + function Mo(R, N, G, te, he, Re, je, He, et, yt) { var Et = N & l, At = 1 & N, $t = 2 & N, tr = 24 & N, cr = 512 & N, St = $t ? i : ku(R); return function Nt() { for (var lr = arguments.length, Gt = Wt(lr), Lr = lr; Lr--; ) Gt[Lr] = arguments[Lr]; @@ -56006,13 +56006,13 @@ var dae = { 5: function(r, e, t) { })(Gt, jr); if (te && (Gt = Fc(Gt, te, he, tr)), Re && (Gt = yl(Gt, Re, je, tr)), lr -= qn, tr && lr < yt) { var vr = aa(Gt, jr); - return nd(R, N, Po, Nt.placeholder, G, Gt, vr, He, et, yt - lr); + return nd(R, N, Mo, Nt.placeholder, G, Gt, vr, He, et, yt - lr); } var zt = At ? G : this, Hr = $t ? zt[R] : R; return lr = Gt.length, He ? Gt = (function(fr, Mr) { - for (var _r = fr.length, ui = hi(Mr.length, _r), po = Ca(fr); ui--; ) { + for (var _r = fr.length, ui = hi(Mr.length, _r), go = Ca(fr); ui--; ) { var tu = Mr[ui]; - fr[ui] = Sr(tu, _r) ? po[tu] : i; + fr[ui] = Sr(tu, _r) ? go[tu] : i; } return fr; })(Gt, He) : cr && lr > 1 && Gt.reverse(), Et && et < lr && (Gt.length = et), this && this !== Ln && this instanceof Nt && (Hr = St || ku(Hr)), Hr.apply(zt, Gt); @@ -56062,9 +56062,9 @@ var dae = { 5: function(r, e, t) { })(N, G, te = te === i ? N < G ? 1 : -1 : eu(te), R); }; } - function fo(R) { + function ho(R) { return function(N, G) { - return typeof N == "string" && typeof G == "string" || (N = ko(N), G = ko(G)), R(N, G); + return typeof N == "string" && typeof G == "string" || (N = Io(N), G = Io(G)), R(N, G); }; } function nd(R, N, G, te, he, Re, je, He, et, yt) { @@ -56076,7 +56076,7 @@ var dae = { 5: function(r, e, t) { function Nu(R) { var N = ja[R]; return function(G, te) { - if (G = ko(G), (te = te == null ? 0 : hi(Kr(te), 292)) && Nd(G)) { + if (G = Io(G), (te = te == null ? 0 : hi(Kr(te), 292)) && Nd(G)) { var he = (Dn(G) + "e").split("e"); return +((he = (Dn(N(he[0] + "e" + (+he[1] + te))) + "e").split("e"))[0] + "e" + (+he[1] - te)); } @@ -56120,9 +56120,9 @@ var dae = { 5: function(r, e, t) { return function Lr() { for (var jr = arguments.length, qn = Wt(jr), vr = jr, zt = Lu(Lr); vr--; ) qn[vr] = arguments[vr]; var Hr = jr < 3 && qn[0] !== zt && qn[jr - 1] !== zt ? [] : aa(qn, zt); - return (jr -= Hr.length) < lr ? nd(St, Nt, Po, Lr.placeholder, i, qn, Hr, i, i, lr - jr) : Wi(this && this !== Ln && this instanceof Lr ? Gt : St, this, qn); + return (jr -= Hr.length) < lr ? nd(St, Nt, Mo, Lr.placeholder, i, qn, Hr, i, i, lr - jr) : Wi(this && this !== Ln && this instanceof Lr ? Gt : St, this, qn); }; - })(R, N, He) : N != u && N != 33 || he.length ? Po.apply(i, tr) : (function(St, Nt, lr, Gt) { + })(R, N, He) : N != u && N != 33 || he.length ? Mo.apply(i, tr) : (function(St, Nt, lr, Gt) { var Lr = 1 & Nt, jr = ku(St); return function qn() { for (var vr = -1, zt = arguments.length, Hr = -1, fr = Gt.length, Mr = Wt(fr + zt), _r = this && this !== Ln && this instanceof qn ? jr : St; ++Hr < fr; ) Mr[Hr] = Gt[Hr]; @@ -56139,7 +56139,7 @@ var dae = { 5: function(r, e, t) { return qc(($t ? Au : od)(cr, tr), R, N); } function Zi(R, N, G, te) { - return R === i || Do(R, nl[G]) && !Fn.call(te, G) ? N : R; + return R === i || ko(R, nl[G]) && !Fn.call(te, G) ? N : R; } function hc(R, N, G, te, he, Re) { return Mi(R) && Mi(N) && (Re.set(N, R), mf(R, N, i, hc, Re), Re.delete(N)), R; @@ -56182,7 +56182,7 @@ var dae = { 5: function(r, e, t) { return Ri(R, xa, id); } function Os(R) { - return Ri(R, to, Mo); + return Ri(R, to, Do); } var zc = Bc ? function(R) { return Bc.get(R); @@ -56201,7 +56201,7 @@ var dae = { 5: function(r, e, t) { var R = be.iteratee || Wh; return R = R === Wh ? lc : R, arguments.length ? R(arguments[0], arguments[1]) : R; } - function ho(R, N) { + function vo(R, N) { var G, te, he = R.__data__; return ((te = typeof (G = N)) == "string" || te == "number" || te == "symbol" || te == "boolean" ? G !== "__proto__" : G === null) ? he[typeof N == "string" ? "string" : "hash"] : he.map; } @@ -56222,12 +56222,12 @@ var dae = { 5: function(r, e, t) { return R == null ? [] : (R = Kn(R), hs(Kf(R), function(N) { return Ic.call(R, N); })); - } : Yh, Mo = Kf ? function(R) { + } : Yh, Do = Kf ? function(R) { for (var N = []; R; ) qs(N, id(R)), R = tc(R); return N; } : Yh, Wn = Sn; function Pi(R, N, G) { - for (var te = -1, he = (N = lo(N, R)).length, Re = !1; ++te < he; ) { + for (var te = -1, he = (N = co(N, R)).length, Re = !1; ++te < he; ) { var je = Un(N[te]); if (!(Re = R != null && G(R, je))) break; R = R[je]; @@ -56238,7 +56238,7 @@ var dae = { 5: function(r, e, t) { return typeof R.constructor != "function" || Cs(R) ? {} : ol(tc(R)); } function Pn(R) { - return Ur(R) || El(R) || !!(xo && R && R[xo]); + return Ur(R) || El(R) || !!(Eo && R && R[Eo]); } function Sr(R, N) { var G = typeof R; @@ -56247,7 +56247,7 @@ var dae = { 5: function(r, e, t) { function Xr(R, N, G) { if (!Mi(G)) return !1; var te = typeof N; - return !!(te == "number" ? ns(G) && Sr(N, G.length) : te == "string" && N in G) && Do(G[N], R); + return !!(te == "number" ? ns(G) && Sr(N, G.length) : te == "string" && N in G) && ko(G[N], R); } function vi(R, N) { if (Ur(R)) return !1; @@ -56388,13 +56388,13 @@ var dae = { 5: function(r, e, t) { var te = R == null ? 0 : R.length; if (!te) return -1; var he = G == null ? 0 : Kr(G); - return he < 0 && (he = Li(te + he, 0)), _o(R, er(N, 3), he); + return he < 0 && (he = Li(te + he, 0)), wo(R, er(N, 3), he); } function ze(R, N, G) { var te = R == null ? 0 : R.length; if (!te) return -1; var he = te - 1; - return G !== i && (he = Kr(G), he = G < 0 ? Li(te + he, 0) : hi(he, te - 1)), _o(R, er(N, 3), he, !0); + return G !== i && (he = Kr(G), he = G < 0 ? Li(te + he, 0) : hi(he, te - 1)), wo(R, er(N, 3), he, !0); } function Ge(R) { return R != null && R.length ? ji(R, 1) : []; @@ -56444,7 +56444,7 @@ var dae = { 5: function(r, e, t) { return R = hs(R, function(G) { if (Ui(G)) return N = Li(G.length, N), !0; }), vs(N, function(G) { - return ti(R, so(G)); + return ti(R, uo(G)); }); } function ua(R, N) { @@ -56484,12 +56484,12 @@ var dae = { 5: function(r, e, t) { })) : this.thru(he); }), cn = td(function(R, N, G) { Fn.call(R, G) ? ++R[G] : ys(R, G, 1); - }), Mn = Ro(Pe), On = Ro(ze); + }), Mn = Po(Pe), On = Po(ze); function zn(R, N) { return (Ur(R) ? La : Ba)(R, er(N, 3)); } function rs(R, N) { - return (Ur(R) ? Go : Oo)(R, er(N, 3)); + return (Ur(R) ? Go : To)(R, er(N, 3)); } var wl = td(function(R, N, G) { Fn.call(R, G) ? R[G].push(N) : ys(R, G, [N]); @@ -56572,7 +56572,7 @@ var dae = { 5: function(r, e, t) { } return He === i && (He = gc(St, N)), je; } - return N = ko(N) || 0, Mi(G) && (Et = !!G.leading, Re = (At = "maxWait" in G) ? Li(ko(G.maxWait) || 0, N) : Re, $t = "trailing" in G ? !!G.trailing : $t), lr.cancel = function() { + return N = Io(N) || 0, Mi(G) && (Et = !!G.leading, Re = (At = "maxWait" in G) ? Li(Io(G.maxWait) || 0, N) : Re, $t = "trailing" in G ? !!G.trailing : $t), lr.cancel = function() { He !== i && Qo(He), yt = 0, te = et = he = He = i; }, lr.flush = function() { return He === i ? je : Nt(Fi()); @@ -56581,7 +56581,7 @@ var dae = { 5: function(r, e, t) { var Xp = ar(function(R, N) { return Mh(R, 1, N); }), $p = ar(function(R, N, G) { - return Mh(R, ko(N) || 0, G); + return Mh(R, Io(N) || 0, G); }); function Fd(R, N) { if (typeof R != "function" || N != null && typeof N != "function") throw new ba(a); @@ -56626,10 +56626,10 @@ var dae = { 5: function(r, e, t) { }), Kp = Ss(function(R, N) { return xs(R, 256, i, i, i, N); }); - function Do(R, N) { + function ko(R, N) { return R === N || R != R && N != N; } - var zd = fo(To), jh = fo(function(R, N) { + var zd = ho(Co), jh = ho(function(R, N) { return R >= N; }), El = Ua(/* @__PURE__ */ (function() { return arguments; @@ -56696,7 +56696,7 @@ var dae = { 5: function(r, e, t) { } var _c = nf ? Zr(nf) : function(R) { return zi(R) && eo(R.length) && !!Wr[Sn(R)]; - }, ea = fo(Rn), la = fo(function(R, N) { + }, ea = ho(Rn), la = ho(function(R, N) { return R <= N; }); function br(R) { @@ -56710,7 +56710,7 @@ var dae = { 5: function(r, e, t) { return (N == O ? wi : N == k ? mu : Rs)(R); } function eu(R) { - return R ? (R = ko(R)) === c || R === -1 / 0 ? 17976931348623157e292 * (R < 0 ? -1 : 1) : R == R ? R : 0 : R === 0 ? R : 0; + return R ? (R = Io(R)) === c || R === -1 / 0 ? 17976931348623157e292 * (R < 0 ? -1 : 1) : R == R ? R : 0 : R === 0 ? R : 0; } function Kr(R) { var N = eu(R), G = N % 1; @@ -56719,7 +56719,7 @@ var dae = { 5: function(r, e, t) { function Hc(R) { return R ? ll(Kr(R), 0, h) : 0; } - function ko(R) { + function Io(R) { if (typeof R == "number") return R; if (is(R)) return d; if (Mi(R)) { @@ -56737,7 +56737,7 @@ var dae = { 5: function(r, e, t) { function Dn(R) { return R == null ? "" : Zo(R); } - var vo = ml(function(R, N) { + var po = ml(function(R, N) { if (Cs(N) || ns(N)) Jo(N, xa(N), R); else for (var G in N) Fn.call(N, G) && Eu(R, G, N[G]); }), dy = ml(function(R, N) { @@ -56751,7 +56751,7 @@ var dae = { 5: function(r, e, t) { var G = -1, te = N.length, he = te > 2 ? N[2] : i; for (he && Xr(N[0], N[1], he) && (te = 1); ++G < te; ) for (var Re = N[G], je = to(Re), He = -1, et = je.length; ++He < et; ) { var yt = je[He], Et = R[yt]; - (Et === i || Do(Et, nl[yt]) && !Fn.call(R, yt)) && (R[yt] = Re[yt]); + (Et === i || ko(Et, nl[yt]) && !Fn.call(R, yt)) && (R[yt] = Re[yt]); } return R; }), vy = ar(function(R) { @@ -56766,7 +56766,7 @@ var dae = { 5: function(r, e, t) { } var Ol = Qa(function(R, N, G) { N != null && typeof N.toString != "function" && (N = il.call(N)), R[N] = G; - }, ro(as)), Io = Qa(function(R, N, G) { + }, ro(as)), No = Qa(function(R, N, G) { N != null && typeof N.toString != "function" && (N = il.call(N)), Fn.call(R, N) ? R[N].push(G) : R[N] = [G]; }, er), qh = ar(Fa); function xa(R) { @@ -56793,7 +56793,7 @@ var dae = { 5: function(r, e, t) { if (R == null) return G; var te = !1; N = ti(N, function(Re) { - return Re = lo(Re, R), te || (te = Re.length > 1), Re; + return Re = co(Re, R), te || (te = Re.length > 1), Re; }), Jo(R, Os(R), G), te && (G = Ka(G, 7, Ef)); for (var he = N.length; he--; ) Ih(G, N[he]); return G; @@ -56817,7 +56817,7 @@ var dae = { 5: function(r, e, t) { function Rs(R) { return R == null ? [] : Zl(R, xa(R)); } - var eg = co(function(R, N, G) { + var eg = fo(function(R, N, G) { return N = N.toLowerCase(), R + (G ? Iv(N) : N); }); function Iv(R) { @@ -56826,15 +56826,15 @@ var dae = { 5: function(r, e, t) { function Hd(R) { return (R = Dn(R)) && R.replace(Ze, tl).replace(Bt, ""); } - var Vh = co(function(R, N, G) { + var Vh = fo(function(R, N, G) { return R + (G ? "-" : "") + N.toLowerCase(); - }), pi = co(function(R, N, G) { + }), pi = fo(function(R, N, G) { return R + (G ? " " : "") + N.toLowerCase(); - }), yy = Du("toLowerCase"), Hh = co(function(R, N, G) { + }), yy = Du("toLowerCase"), Hh = fo(function(R, N, G) { return R + (G ? "_" : "") + N.toLowerCase(); - }), Nv = co(function(R, N, G) { + }), Nv = fo(function(R, N, G) { return R + (G ? " " : "") + Tl(N); - }), Wd = co(function(R, N, G) { + }), Wd = fo(function(R, N, G) { return R + (G ? " " : "") + N.toUpperCase(); }), Tl = Du("toUpperCase"); function Yd(R, N, G) { @@ -56898,7 +56898,7 @@ var dae = { 5: function(r, e, t) { } var Ra = Iu(ti), rg = Iu(Gf), by = Iu($l); function qa(R) { - return vi(R) ? so(Un(R)) : /* @__PURE__ */ (function(N) { + return vi(R) ? uo(Un(R)) : /* @__PURE__ */ (function(N) { return function(G) { return bs(G, N); }; @@ -56911,7 +56911,7 @@ var dae = { 5: function(r, e, t) { function gi() { return !1; } - var No, Wc = rd(function(R, N) { + var Lo, Wc = rd(function(R, N) { return R + N; }, 0), _y = Nu("ceil"), ig = rd(function(R, N) { return R / N; @@ -56925,7 +56925,7 @@ var dae = { 5: function(r, e, t) { return R = Kr(R), function() { if (--R < 1) return N.apply(this, arguments); }; - }, be.ary = wa, be.assign = vo, be.assignIn = dy, be.assignInWith = dd, be.assignWith = Dv, be.at = hy, be.before = sd, be.bind = Tf, be.bindAll = Ps, be.bindKey = Lh, be.castArray = function() { + }, be.ary = wa, be.assign = po, be.assignIn = dy, be.assignInWith = dd, be.assignWith = Dv, be.at = hy, be.before = sd, be.bind = Tf, be.bindAll = Ps, be.bindKey = Lh, be.castArray = function() { if (!arguments.length) return []; var R = arguments[0]; return Ur(R) ? R : [R]; @@ -57016,7 +57016,7 @@ var dae = { 5: function(r, e, t) { return R == null ? [] : cl(R, to(R)); }, be.groupBy = wl, be.initial = function(R) { return R != null && R.length ? za(R, 0, -1) : []; - }, be.intersection = Ke, be.intersectionBy = Je, be.intersectionWith = gt, be.invert = Ol, be.invertBy = Io, be.invokeMap = Bu, be.iteratee = Wh, be.keyBy = mc, be.keys = xa, be.keysIn = to, be.map = Fu, be.mapKeys = function(R, N) { + }, be.intersection = Ke, be.intersectionBy = Je, be.intersectionWith = gt, be.invert = Ol, be.invertBy = No, be.invokeMap = Bu, be.iteratee = Wh, be.keyBy = mc, be.keys = xa, be.keysIn = to, be.map = Fu, be.mapKeys = function(R, N) { var G = {}; return N = er(N, 3), Xs(R, function(te, he, Re) { ys(G, N(te, he, Re), te); @@ -57063,7 +57063,7 @@ var dae = { 5: function(r, e, t) { if (typeof R != "function") throw new ba(a); return ar(R, N = N === i ? N : Kr(N)); }, be.reverse = Zt, be.sampleSize = function(R, N, G) { - return N = (G ? Xr(R, N, G) : N === i) ? 1 : Kr(N), (Ur(R) ? Eo : Cu)(R, N); + return N = (G ? Xr(R, N, G) : N === i) ? 1 : Kr(N), (Ur(R) ? So : Cu)(R, N); }, be.set = function(R, N, G) { return R == null ? R : ws(R, N, G); }, be.setWith = function(R, N, G, te) { @@ -57137,7 +57137,7 @@ var dae = { 5: function(r, e, t) { }, be.zipObjectDeep = function(R, N) { return _f(R || [], N || [], ws); }, be.zipWith = tn, be.entries = gy, be.entriesIn = Jp, be.extend = dy, be.extendWith = dd, Fv(be, be), be.add = Wc, be.attempt = Lv, be.camelCase = eg, be.capitalize = Iv, be.ceil = _y, be.clamp = function(R, N, G) { - return G === i && (G = N, N = i), G !== i && (G = (G = ko(G)) == G ? G : 0), N !== i && (N = (N = ko(N)) == N ? N : 0), ll(ko(R), N, G); + return G === i && (G = N, N = i), G !== i && (G = (G = Io(G)) == G ? G : 0), N !== i && (N = (N = Io(N)) == N ? N : 0), ll(Io(R), N, G); }, be.clone = function(R) { return Ka(R, 4); }, be.cloneDeep = function(R) { @@ -57154,7 +57154,7 @@ var dae = { 5: function(r, e, t) { R = Dn(R), N = Zo(N); var te = R.length, he = G = G === i ? te : ll(Kr(G), 0, te); return (G -= N.length) >= 0 && R.slice(G, he) == N; - }, be.eq = Do, be.escape = function(R) { + }, be.eq = ko, be.escape = function(R) { return (R = Dn(R)) && ge.test(R) ? R.replace(se, uf) : R; }, be.escapeRegExp = function(R) { return (R = Dn(R)) && ie.test(R) ? R.replace(Q, "\\$&") : R; @@ -57174,20 +57174,20 @@ var dae = { 5: function(r, e, t) { }, be.forOwnRight = function(R, N) { return R && sa(R, er(N, 3)); }, be.get = Uh, be.gt = zd, be.gte = jh, be.has = function(R, N) { - return R != null && Pi(R, N, Co); + return R != null && Pi(R, N, Ao); }, be.hasIn = zh, be.head = Be, be.identity = as, be.includes = function(R, N, G, te) { R = ns(R) ? R : Rs(R), G = G && !te ? Kr(G) : 0; var he = R.length; - return G < 0 && (G = Li(he + G, 0)), fd(R) ? G <= he && R.indexOf(N, G) > -1 : !!he && wo(R, N, G) > -1; + return G < 0 && (G = Li(he + G, 0)), fd(R) ? G <= he && R.indexOf(N, G) > -1 : !!he && xo(R, N, G) > -1; }, be.indexOf = function(R, N, G) { var te = R == null ? 0 : R.length; if (!te) return -1; var he = G == null ? 0 : Kr(G); - return he < 0 && (he = Li(te + he, 0)), wo(R, N, he); + return he < 0 && (he = Li(te + he, 0)), xo(R, N, he); }, be.inRange = function(R, N, G) { return N = eu(N), G === i ? (G = N, N = 0) : G = eu(G), (function(te, he, Re) { return te >= hi(he, Re) && te < Li(he, Re); - })(R = ko(R), N, G); + })(R = Io(R), N, G); }, be.invoke = qh, be.isArguments = El, be.isArray = Ur, be.isArrayBuffer = Cf, be.isArrayLike = ns, be.isArrayLikeObject = Ui, be.isBoolean = function(R) { return R === !0 || R === !1 || zi(R) && Sn(R) == b; }, be.isBuffer = Uu, be.isDate = Pv, be.isElement = function(R) { @@ -57237,11 +57237,11 @@ var dae = { 5: function(r, e, t) { return G !== i && (he = (he = Kr(G)) < 0 ? Li(te + he, 0) : hi(he, te - 1)), N == N ? (function(Re, je, He) { for (var et = He + 1; et--; ) if (Re[et] === je) return et; return et; - })(R, N, he) : _o(R, sf, he, !0); + })(R, N, he) : wo(R, sf, he, !0); }, be.lowerCase = pi, be.lowerFirst = yy, be.lt = ea, be.lte = la, be.max = function(R) { - return R && R.length ? oc(R, as, To) : i; + return R && R.length ? oc(R, as, Co) : i; }, be.maxBy = function(R, N) { - return R && R.length ? oc(R, er(N, 2), To) : i; + return R && R.length ? oc(R, er(N, 2), Co) : i; }, be.mean = function(R) { return yu(R, as); }, be.meanBy = function(R, N) { @@ -57291,14 +57291,14 @@ var dae = { 5: function(r, e, t) { return te(R, er(N, 4), G, he, Ba); }, be.reduceRight = function(R, N, G) { var te = Ur(R) ? Gs : Kl, he = arguments.length < 3; - return te(R, er(N, 4), G, he, Oo); + return te(R, er(N, 4), G, he, To); }, be.repeat = function(R, N, G) { return N = (G ? Xr(R, N, G) : N === i) ? 1 : Kr(N), Ks(Dn(R), N); }, be.replace = function() { var R = arguments, N = Dn(R[0]); return R.length < 3 ? N : N.replace(R[1], R[2]); }, be.result = function(R, N, G) { - var te = -1, he = (N = lo(N, R)).length; + var te = -1, he = (N = co(N, R)).length; for (he || (he = 1, R = i); ++te < he; ) { var Re = R == null ? i : R[Un(N[te])]; Re === i && (te = he, Re = G), R = bc(Re) ? Re.call(R) : Re; @@ -57322,7 +57322,7 @@ var dae = { 5: function(r, e, t) { var G = R == null ? 0 : R.length; if (G) { var te = Ru(R, N); - if (te < G && Do(R[te], N)) return te; + if (te < G && ko(R[te], N)) return te; } return -1; }, be.sortedLastIndex = function(R, N) { @@ -57332,7 +57332,7 @@ var dae = { 5: function(r, e, t) { }, be.sortedLastIndexOf = function(R, N) { if (R != null && R.length) { var G = Ru(R, N, !0) - 1; - if (Do(R[G], N)) return G; + if (ko(R[G], N)) return G; } return -1; }, be.startCase = Nv, be.startsWith = function(R, N, G) { @@ -57383,7 +57383,7 @@ function print() { __p += __j.call(arguments, '') } return he; }, be.toFinite = eu, be.toInteger = Kr, be.toLength = Hc, be.toLower = function(R) { return Dn(R).toLowerCase(); - }, be.toNumber = ko, be.toSafeInteger = function(R) { + }, be.toNumber = Io, be.toSafeInteger = function(R) { return R ? ll(Kr(R), -9007199254740991, f) : R === 0 ? R : 0; }, be.toString = Dn, be.toUpper = function(R) { return Dn(R).toUpperCase(); @@ -57430,13 +57430,13 @@ function print() { __p += __j.call(arguments, '') } } return et + te; }, be.unescape = function(R) { - return (R = Dn(R)) && de.test(R) ? R.replace(fe, uo) : R; + return (R = Dn(R)) && de.test(R) ? R.replace(fe, lo) : R; }, be.uniqueId = function(R) { var N = ++Sv; return Dn(R) + N; - }, be.upperCase = Wd, be.upperFirst = Tl, be.each = zn, be.eachRight = rs, be.first = Be, Fv(be, (No = {}, Xs(be, function(R, N) { - Fn.call(be.prototype, N) || (No[N] = R); - }), No), { chain: !1 }), be.VERSION = "4.17.23", La(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(R) { + }, be.upperCase = Wd, be.upperFirst = Tl, be.each = zn, be.eachRight = rs, be.first = Be, Fv(be, (Lo = {}, Xs(be, function(R, N) { + Fn.call(be.prototype, N) || (Lo[N] = R); + }), Lo), { chain: !1 }), be.VERSION = "4.17.23", La(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(R) { be[R].placeholder = be; }), La(["drop", "take"], function(R, N) { nn.prototype[R] = function(G) { @@ -57516,7 +57516,7 @@ function print() { __p += __j.call(arguments, '') } var te = G.name + ""; Fn.call(Ws, te) || (Ws[te] = []), Ws[te].push({ name: N, func: G }); } - }), Ws[Po(i, 2).name] = [{ name: "wrapper", func: i }], nn.prototype.clone = function() { + }), Ws[Mo(i, 2).name] = [{ name: "wrapper", func: i }], nn.prototype.clone = function() { var R = new nn(this.__wrapped__); return R.__actions__ = Ca(this.__actions__), R.__dir__ = this.__dir__, R.__filtered__ = this.__filtered__, R.__iteratees__ = Ca(this.__iteratees__), R.__takeCount__ = this.__takeCount__, R.__views__ = Ca(this.__views__), R; }, nn.prototype.reverse = function() { @@ -64383,14 +64383,14 @@ function print() { __p += __j.call(arguments, '') } }); }; }, 8813: function(r, e, t) { - var n = this && this.__createBinding || (Object.create ? function(ma, bu, uo, Ho) { - Ho === void 0 && (Ho = uo), Object.defineProperty(ma, Ho, { enumerable: !0, get: function() { - return bu[uo]; + var n = this && this.__createBinding || (Object.create ? function(ma, bu, lo, Ho) { + Ho === void 0 && (Ho = lo), Object.defineProperty(ma, Ho, { enumerable: !0, get: function() { + return bu[lo]; } }); - } : function(ma, bu, uo, Ho) { - Ho === void 0 && (Ho = uo), ma[Ho] = bu[uo]; + } : function(ma, bu, lo, Ho) { + Ho === void 0 && (Ho = lo), ma[Ho] = bu[lo]; }), i = this && this.__exportStar || function(ma, bu) { - for (var uo in ma) uo === "default" || Object.prototype.hasOwnProperty.call(bu, uo) || n(bu, ma, uo); + for (var lo in ma) lo === "default" || Object.prototype.hasOwnProperty.call(bu, lo) || n(bu, ma, lo); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.interval = e.iif = e.generate = e.fromEventPattern = e.fromEvent = e.from = e.forkJoin = e.empty = e.defer = e.connectable = e.concat = e.combineLatest = e.bindNodeCallback = e.bindCallback = e.UnsubscriptionError = e.TimeoutError = e.SequenceError = e.ObjectUnsubscribedError = e.NotFoundError = e.EmptyError = e.ArgumentOutOfRangeError = e.firstValueFrom = e.lastValueFrom = e.isObservable = e.identity = e.noop = e.pipe = e.NotificationKind = e.Notification = e.Subscriber = e.Subscription = e.Scheduler = e.VirtualAction = e.VirtualTimeScheduler = e.animationFrameScheduler = e.animationFrame = e.queueScheduler = e.queue = e.asyncScheduler = e.async = e.asapScheduler = e.asap = e.AsyncSubject = e.ReplaySubject = e.BehaviorSubject = e.Subject = e.animationFrames = e.observable = e.ConnectableObservable = e.Observable = void 0, e.filter = e.expand = e.exhaustMap = e.exhaustAll = e.exhaust = e.every = e.endWith = e.elementAt = e.distinctUntilKeyChanged = e.distinctUntilChanged = e.distinct = e.dematerialize = e.delayWhen = e.delay = e.defaultIfEmpty = e.debounceTime = e.debounce = e.count = e.connect = e.concatWith = e.concatMapTo = e.concatMap = e.concatAll = e.combineLatestWith = e.combineLatestAll = e.combineAll = e.catchError = e.bufferWhen = e.bufferToggle = e.bufferTime = e.bufferCount = e.buffer = e.auditTime = e.audit = e.config = e.NEVER = e.EMPTY = e.scheduled = e.zip = e.using = e.timer = e.throwError = e.range = e.race = e.partition = e.pairs = e.onErrorResumeNext = e.of = e.never = e.merge = void 0, e.switchMap = e.switchAll = e.subscribeOn = e.startWith = e.skipWhile = e.skipUntil = e.skipLast = e.skip = e.single = e.shareReplay = e.share = e.sequenceEqual = e.scan = e.sampleTime = e.sample = e.refCount = e.retryWhen = e.retry = e.repeatWhen = e.repeat = e.reduce = e.raceWith = e.publishReplay = e.publishLast = e.publishBehavior = e.publish = e.pluck = e.pairwise = e.onErrorResumeNextWith = e.observeOn = e.multicast = e.min = e.mergeWith = e.mergeScan = e.mergeMapTo = e.mergeMap = e.flatMap = e.mergeAll = e.max = e.materialize = e.mapTo = e.map = e.last = e.isEmpty = e.ignoreElements = e.groupBy = e.first = e.findIndex = e.find = e.finalize = void 0, e.zipWith = e.zipAll = e.withLatestFrom = e.windowWhen = e.windowToggle = e.windowTime = e.windowCount = e.window = e.toArray = e.timestamp = e.timeoutWith = e.timeout = e.timeInterval = e.throwIfEmpty = e.throttleTime = e.throttle = e.tap = e.takeWhile = e.takeUntil = e.takeLast = e.take = e.switchScan = e.switchMapTo = void 0; var a = t(4662); @@ -64969,13 +64969,13 @@ function print() { __p += __j.call(arguments, '') } Object.defineProperty(e, "startWith", { enumerable: !0, get: function() { return gu.startWith; } }); - var _o = t(8960); + var wo = t(8960); Object.defineProperty(e, "subscribeOn", { enumerable: !0, get: function() { - return _o.subscribeOn; + return wo.subscribeOn; } }); - var wo = t(8774); + var xo = t(8774); Object.defineProperty(e, "switchAll", { enumerable: !0, get: function() { - return wo.switchAll; + return xo.switchAll; } }); var Vf = t(3879); Object.defineProperty(e, "switchMap", { enumerable: !0, get: function() { @@ -64989,9 +64989,9 @@ function print() { __p += __j.call(arguments, '') } Object.defineProperty(e, "switchScan", { enumerable: !0, get: function() { return yu.switchScan; } }); - var so = t(846); + var uo = t(846); Object.defineProperty(e, "take", { enumerable: !0, get: function() { - return so.take; + return uo.take; } }); var el = t(8330); Object.defineProperty(e, "takeLast", { enumerable: !0, get: function() { @@ -68454,27 +68454,27 @@ Error message: `).concat(j.message), c); Object.defineProperty(e, "__esModule", { value: !0 }); var a = i(t(7449)); e.default = n({}, a.default); -} }, h8 = {}; -function io(r) { - var e = h8[r]; +} }, v8 = {}; +function ao(r) { + var e = v8[r]; if (e !== void 0) return e.exports; - var t = h8[r] = { id: r, loaded: !1, exports: {} }; - return dae[r].call(t.exports, t, t.exports, io), t.loaded = !0, t.exports; + var t = v8[r] = { id: r, loaded: !1, exports: {} }; + return dae[r].call(t.exports, t, t.exports, ao), t.loaded = !0, t.exports; } -io.n = (r) => { +ao.n = (r) => { var e = r && r.__esModule ? () => r.default : () => r; - return io.d(e, { a: e }), e; -}, io.d = (r, e) => { - for (var t in e) io.o(e, t) && !io.o(r, t) && Object.defineProperty(r, t, { enumerable: !0, get: e[t] }); -}, io.g = (function() { + return ao.d(e, { a: e }), e; +}, ao.d = (r, e) => { + for (var t in e) ao.o(e, t) && !ao.o(r, t) && Object.defineProperty(r, t, { enumerable: !0, get: e[t] }); +}, ao.g = (function() { if (typeof globalThis == "object") return globalThis; try { return this || new Function("return this")(); } catch { if (typeof window == "object") return window; } -})(), io.o = (r, e) => Object.prototype.hasOwnProperty.call(r, e), io.nmd = (r) => (r.paths = [], r.children || (r.children = []), r); -var Hi = io(5250), hae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, e) { +})(), ao.o = (r, e) => Object.prototype.hasOwnProperty.call(r, e), ao.nmd = (r) => (r.paths = [], r.children || (r.children = []), r); +var Hi = ao(5250), hae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, e) { r.__proto__ = e; } || function(r, e) { for (var t in e) e.hasOwnProperty(t) && (r[t] = e[t]); @@ -68507,7 +68507,7 @@ var n_ = (function() { }, r; })(), vae = (function(r) { function e(t, n, i) { - t === void 0 && (t = "Atom@" + cu()), n === void 0 && (n = T8), i === void 0 && (i = T8); + t === void 0 && (t = "Atom@" + cu()), n === void 0 && (n = C8), i === void 0 && (i = C8); var a = r.call(this, t) || this; return a.name = t, a.onBecomeObservedHandler = n, a.onBecomeUnobservedHandler = i, a.isPendingUnobservation = !1, a.isBeingTracked = !1, a; } @@ -68516,13 +68516,13 @@ var n_ = (function() { }, e.prototype.onBecomeUnobserved = function() { this.isBeingTracked = !1, this.onBecomeUnobservedHandler(); }, e; -})(n_), DD = ly("Atom", n_); +})(n_), kD = ly("Atom", n_); function Kg(r) { return r.interceptors && r.interceptors.length > 0; } function aE(r, e) { var t = r.interceptors || (r.interceptors = []); - return t.push(e), jD(function() { + return t.push(e), BD(function() { var n = t.indexOf(e); n !== -1 && t.splice(n, 1); }); @@ -68542,7 +68542,7 @@ function Sp(r) { } function oE(r, e) { var t = r.changeListeners || (r.changeListeners = []); - return t.push(e), jD(function() { + return t.push(e), BD(function() { var n = t.indexOf(e); n !== -1 && t.splice(n, 1); }); @@ -68563,19 +68563,19 @@ function Qg(r) { function Ad(r) { Qg(Fz({}, r, { spyReportStart: !0 })); } -var v8 = { spyReportEnd: !0 }; +var p8 = { spyReportEnd: !0 }; function Rd(r) { - Qg(r ? Fz({}, r, v8) : v8); + Qg(r ? Fz({}, r, p8) : p8); } function _z(r) { - return Er.spyListeners.push(r), jD(function() { + return Er.spyListeners.push(r), BD(function() { var e = Er.spyListeners.indexOf(r); e !== -1 && Er.spyListeners.splice(e, 1); }); } -var p8 = "__$$iterating"; +var g8 = "__$$iterating"; function ux(r) { - an(r[p8] !== !0, "Illegal state: cannot recycle array as iterator"), R1(r, p8, !0); + an(r[g8] !== !0, "Illegal state: cannot recycle array as iterator"), R1(r, g8, !0); var e = -1; return R1(r, "next", function() { return { done: ++e >= this.length, value: e < this.length ? this[e] : void 0 }; @@ -68589,10 +68589,10 @@ var $0, Ew, pae = (function() { return Object.defineProperty(e, "0", { set: function() { r = !0; } }), Object.create(e)[0] = 1, r === !1; -})(), AM = 0, RM = function() { +})(), RM = 0, PM = function() { }; -$0 = RM, Ew = Array.prototype, Object.setPrototypeOf !== void 0 ? Object.setPrototypeOf($0.prototype, Ew) : $0.prototype.__proto__ !== void 0 ? $0.prototype.__proto__ = Ew : $0.prototype = Ew, Object.isFrozen(Array) && ["constructor", "push", "shift", "concat", "pop", "unshift", "replace", "find", "findIndex", "splice", "reverse", "sort"].forEach(function(r) { - Object.defineProperty(RM.prototype, r, { configurable: !0, writable: !0, value: Array.prototype[r] }); +$0 = PM, Ew = Array.prototype, Object.setPrototypeOf !== void 0 ? Object.setPrototypeOf($0.prototype, Ew) : $0.prototype.__proto__ !== void 0 ? $0.prototype.__proto__ = Ew : $0.prototype = Ew, Object.isFrozen(Array) && ["constructor", "push", "shift", "concat", "pop", "unshift", "replace", "find", "findIndex", "splice", "reverse", "sort"].forEach(function(r) { + Object.defineProperty(PM.prototype, r, { configurable: !0, writable: !0, value: Array.prototype[r] }); }); var xz = (function() { function r(e, t, n, i) { @@ -68619,10 +68619,10 @@ var xz = (function() { } else this.spliceWithArray(e, t - e); }, r.prototype.updateArrayLength = function(e, t) { if (e !== this.lastKnownLength) throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?"); - this.lastKnownLength += t, t > 0 && e + t + 1 > AM && kD(e + t + 1); + this.lastKnownLength += t, t > 0 && e + t + 1 > RM && ID(e + t + 1); }, r.prototype.spliceWithArray = function(e, t, n) { var i = this; - UD(this.atom); + zD(this.atom); var a = this.values.length; if (e === void 0 ? e = 0 : e > a ? e = a : e < 0 && (e = Math.max(0, a + e)), t = arguments.length === 1 ? a - e : t == null ? 0 : Math.max(0, Math.min(t, a - e)), n === void 0 && (n = []), Kg(this)) { var o = Zg(this, { object: this.array, type: "splice", index: e, removedCount: t, added: n }); @@ -68732,7 +68732,7 @@ var xz = (function() { }, e.prototype.set = function(t, n) { var i = this.$mobx, a = i.values; if (t < a.length) { - UD(i.atom); + zD(i.atom); var o = a[t]; if (Kg(i)) { var s = Zg(i, { type: "update", object: this, index: t, newValue: n }); @@ -68745,7 +68745,7 @@ var xz = (function() { i.spliceWithArray(t, 0, [n]); } }, e; -})(RM); +})(PM); wz(uv.prototype, function() { return ux(this.slice()); }), Object.defineProperty(uv.prototype, "length", { enumerable: !1, configurable: !0, get: function() { @@ -68771,14 +68771,14 @@ function Ez(r) { function yae(r) { Object.defineProperty(uv.prototype, "" + r, Ez(r)); } -function kD(r) { - for (var e = AM; e < r; e++) yae(e); - AM = r; +function ID(r) { + for (var e = RM; e < r; e++) yae(e); + RM = r; } -kD(1e3); +ID(1e3); var mae = ly("ObservableArrayAdministration", xz); function gv(r) { - return BD(r) && mae(r.$mobx); + return FD(r) && mae(r.$mobx); } var Ib = {}, Lp = (function(r) { function e(t, n, i, a) { @@ -68795,7 +68795,7 @@ var Ib = {}, Lp = (function(r) { i && Ad({ type: "update", object: this, newValue: t, oldValue: n }), this.setNewValue(t), i && Rd(); } }, e.prototype.prepareNewValue = function(t) { - if (UD(this), Kg(this)) { + if (zD(this), Kg(this)) { var n = Zg(this, { object: this, type: "update", newValue: t }); if (!n) return Ib; t = n.newValue; @@ -68819,7 +68819,7 @@ var Ib = {}, Lp = (function(r) { }, e; })(n_); Lp.prototype[zz()] = Lp.prototype.valueOf; -var ID = ly("ObservableValue", Lp), bae = { m001: "It is not allowed to assign new values to @action fields", m002: "`runInAction` expects a function", m003: "`runInAction` expects a function without arguments", m004: "autorun expects a function", m005: "Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.", m006: "Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.", m007: "reaction only accepts 2 or 3 arguments. If migrating from MobX 2, please provide an options object", m008: "wrapping reaction expression in `asReference` is no longer supported, use options object instead", m009: "@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.", m010: "@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'", m011: "First argument to `computed` should be an expression. If using computed as decorator, don't pass it arguments", m012: "computed takes one or two arguments if used as function", m013: "[mobx.expr] 'expr' should only be used inside other reactive functions.", m014: "extendObservable expected 2 or more arguments", m015: "extendObservable expects an object as first argument", m016: "extendObservable should not be used on maps, use map.merge instead", m017: "all arguments of extendObservable should be objects", m018: "extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540", m019: "[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.", m020: "modifiers can only be used for individual object properties", m021: "observable expects zero or one arguments", m022: "@observable can not be used on getters, use @computed instead", m024: "whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.", m025: "whyRun can only be used on reactions and computed values", m026: "`action` can only be invoked on functions", m028: "It is not allowed to set `useStrict` when a derivation is running", m029: "INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row", m030a: "Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ", m030b: "Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ", m031: "Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: ", m032: `* This computation is suspended (not in use by any reaction) and won't run automatically. +var ND = ly("ObservableValue", Lp), bae = { m001: "It is not allowed to assign new values to @action fields", m002: "`runInAction` expects a function", m003: "`runInAction` expects a function without arguments", m004: "autorun expects a function", m005: "Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.", m006: "Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.", m007: "reaction only accepts 2 or 3 arguments. If migrating from MobX 2, please provide an options object", m008: "wrapping reaction expression in `asReference` is no longer supported, use options object instead", m009: "@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.", m010: "@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'", m011: "First argument to `computed` should be an expression. If using computed as decorator, don't pass it arguments", m012: "computed takes one or two arguments if used as function", m013: "[mobx.expr] 'expr' should only be used inside other reactive functions.", m014: "extendObservable expected 2 or more arguments", m015: "extendObservable expects an object as first argument", m016: "extendObservable should not be used on maps, use map.merge instead", m017: "all arguments of extendObservable should be objects", m018: "extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540", m019: "[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.", m020: "modifiers can only be used for individual object properties", m021: "observable expects zero or one arguments", m022: "@observable can not be used on getters, use @computed instead", m024: "whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.", m025: "whyRun can only be used on reactions and computed values", m026: "`action` can only be invoked on functions", m028: "It is not allowed to set `useStrict` when a derivation is running", m029: "INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row", m030a: "Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ", m030b: "Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ", m031: "Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: ", m032: `* This computation is suspended (not in use by any reaction) and won't run automatically. Didn't expect this computation to be suspended at this point? 1. Make sure this computation is used by a reaction (reaction, autorun, observer). 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).`, m033: "`observe` doesn't support the fire immediately property for observable maps.", m034: "`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead", m035: "Cannot make the designated object observable; it is not extensible", m036: "It is not possible to get index atoms from arrays", m037: `Hi there! I'm sorry you have just run into an exception. @@ -68849,11 +68849,11 @@ function Gn(r) { function T1(r, e) { an(typeof e == "function", Gn("m026")), an(typeof r == "string" && r.length > 0, "actions should have valid names, got: '" + r + "'"); var t = function() { - return ND(r, e, this, arguments); + return LD(r, e, this, arguments); }; return t.originalFn = e, t.isMobxAction = !0, t; } -function ND(r, e, t, n) { +function LD(r, e, t, n) { var i = (function(a, o, s, u) { var l = zl() && !!a, c = 0; if (l) { @@ -68885,7 +68885,7 @@ function Tz(r) { } function sE(r, e, t, n, i) { function a(o, s, u, l, c) { - if (c === void 0 && (c = 0), an(i || y8(arguments), "This function is a decorator, but it wasn't invoked like a decorator"), u) { + if (c === void 0 && (c = 0), an(i || m8(arguments), "This function is a decorator, but it wasn't invoked like a decorator"), u) { lE(o, "__mobxLazyInitializers") || jp(o, "__mobxLazyInitializers", o.__mobxLazyInitializers && o.__mobxLazyInitializers.slice() || []); var f = u.value, d = u.initializer; return o.__mobxLazyInitializers.push(function(p) { @@ -68897,21 +68897,21 @@ function sE(r, e, t, n, i) { } }; } var h = { enumerable: n, configurable: !0, get: function() { - return this.__mobxInitializedProps && this.__mobxInitializedProps[s] === !0 || g8(this, s, void 0, r, l, u), e.call(this, s); + return this.__mobxInitializedProps && this.__mobxInitializedProps[s] === !0 || y8(this, s, void 0, r, l, u), e.call(this, s); }, set: function(p) { - this.__mobxInitializedProps && this.__mobxInitializedProps[s] === !0 ? t.call(this, s, p) : g8(this, s, p, r, l, u); + this.__mobxInitializedProps && this.__mobxInitializedProps[s] === !0 ? t.call(this, s, p) : y8(this, s, p, r, l, u); } }; return (arguments.length < 3 || arguments.length === 5 && c < 3) && Object.defineProperty(o, s, h), h; } return i ? function() { - if (y8(arguments)) return a.apply(null, arguments); + if (m8(arguments)) return a.apply(null, arguments); var o = arguments, s = arguments.length; return function(u, l, c) { return a(u, l, c, o, s); }; } : a; } -function g8(r, e, t, n, i, a) { +function y8(r, e, t, n, i, a) { lE(r, "__mobxInitializedProps") || jp(r, "__mobxInitializedProps", {}), r.__mobxInitializedProps[e] = !0, n(r, e, t, i, a); } function C1(r) { @@ -68919,7 +68919,7 @@ function C1(r) { return e(r); })); } -function y8(r) { +function m8(r) { return (r.length === 2 || r.length === 3) && typeof r[1] == "string"; } var _ae = sE(function(r, e, t, n, i) { @@ -68936,9 +68936,9 @@ var _ae = sE(function(r, e, t, n, i) { }, function() { an(!1, Gn("m001")); }, !1, !1), ta = function(r, e, t, n) { - return arguments.length === 1 && typeof r == "function" ? T1(r.name || "", r) : arguments.length === 2 && typeof e == "function" ? T1(r, e) : arguments.length === 1 && typeof r == "string" ? m8(r) : m8(e).apply(null, arguments); + return arguments.length === 1 && typeof r == "function" ? T1(r.name || "", r) : arguments.length === 2 && typeof e == "function" ? T1(r, e) : arguments.length === 1 && typeof r == "string" ? b8(r) : b8(e).apply(null, arguments); }; -function m8(r) { +function b8(r) { return function(e, t, n) { if (n && typeof n.value == "function") return n.value = T1(r, n.value), n.enumerable = !1, n.configurable = !0, n; if (n !== void 0 && n.get !== void 0) throw new Error("[mobx] action is not expected to be used with getters"); @@ -68950,7 +68950,7 @@ function Vx(r) { } function Cz(r, e, t) { var n = function() { - return ND(e, t, r, arguments); + return LD(e, t, r, arguments); }; n.isMobxAction = !0, jp(r, e, n); } @@ -68961,19 +68961,19 @@ ta.bound = function(r, e, t) { } return wae.apply(null, arguments); }; -var b8 = Object.prototype.toString; +var _8 = Object.prototype.toString; function uE(r, e) { - return PM(r, e); + return MM(r, e); } -function PM(r, e, t, n) { +function MM(r, e, t, n) { if (r === e) return r !== 0 || 1 / r == 1 / e; if (r == null || e == null) return !1; if (r != r) return e != e; var i = typeof r; return (i === "function" || i === "object" || typeof e == "object") && (function(a, o, s, u) { - a = _8(a), o = _8(o); - var l = b8.call(a); - if (l !== b8.call(o)) return !1; + a = w8(a), o = w8(o); + var l = _8.call(a); + if (l !== _8.call(o)) return !1; switch (l) { case "[object RegExp]": case "[object String]": @@ -68996,16 +68996,16 @@ function PM(r, e, t, n) { for (var h = (s = s || []).length; h--; ) if (s[h] === a) return u[h] === o; if (s.push(a), u.push(o), c) { if ((h = a.length) !== o.length) return !1; - for (; h--; ) if (!PM(a[h], o[h], s, u)) return !1; + for (; h--; ) if (!MM(a[h], o[h], s, u)) return !1; } else { var p, g = Object.keys(a); if (h = g.length, Object.keys(o).length !== h) return !1; - for (; h--; ) if (!xae(o, p = g[h]) || !PM(a[p], o[p], s, u)) return !1; + for (; h--; ) if (!xae(o, p = g[h]) || !MM(a[p], o[p], s, u)) return !1; } return s.pop(), u.pop(), !0; })(r, e, t, n); } -function _8(r) { +function w8(r) { return gv(r) ? r.peek() : zf(r) ? r.entries() : Gm(r) ? (function(e) { for (var t = []; ; ) { var n = e.next(); @@ -69018,15 +69018,15 @@ function _8(r) { function xae(r, e) { return Object.prototype.hasOwnProperty.call(r, e); } -function w8(r, e) { +function x8(r, e) { return r === e; } -var yv = { identity: w8, structural: function(r, e) { +var yv = { identity: x8, structural: function(r, e) { return uE(r, e); }, default: function(r, e) { return (function(t, n) { return typeof t == "number" && typeof n == "number" && isNaN(t) && isNaN(n); - })(r, e) || w8(r, e); + })(r, e) || x8(r, e); } }; function Hx(r, e, t) { var n, i, a; @@ -69073,9 +69073,9 @@ var Jg = (function() { } })(this); }, r.prototype.onBecomeUnobserved = function() { - NM(this), this.value = void 0; + LM(this), this.value = void 0; }, r.prototype.get = function() { - an(!this.isComputing, "Cycle detected in computation " + this.name, this.derivation), Er.inBatch === 0 ? (Tp(), IM(this) && (this.isTracing !== Od.NONE && console.log("[mobx.trace] '" + this.name + "' is being read outside a reactive context and doing a full recompute"), this.value = this.computeValue(!1)), Cp()) : (Qz(this), IM(this) && this.trackAndCompute() && (function(t) { + an(!this.isComputing, "Cycle detected in computation " + this.name, this.derivation), Er.inBatch === 0 ? (Tp(), NM(this) && (this.isTracing !== Od.NONE && console.log("[mobx.trace] '" + this.name + "' is being read outside a reactive context and doing a full recompute"), this.value = this.computeValue(!1)), Cp()) : (Qz(this), NM(this) && this.trackAndCompute() && (function(t) { if (t.lowestObserverState !== ii.STALE) { t.lowestObserverState = ii.STALE; for (var n = t.observers, i = n.length; i--; ) { @@ -69139,12 +69139,12 @@ var Jg = (function() { WhyRun? computation '` + this.name + `': * Running because: ` + (e ? "[active] the value of this computation is needed by a reaction" : this.isComputing ? "[get] The value of this computed was requested outside a reaction" : "[idle] not running at the moment") + ` ` + (this.dependenciesState === ii.NOT_TRACKING ? Gn("m032") : ` * This computation will re-run if any of the following observables changes: - ` + DM(t) + ` + ` + kM(t) + ` ` + (this.isComputing && e ? " (... or any observable accessed during the remainder of the current run)" : "") + ` ` + Gn("m038") + ` * If the outcome of this computation changes, the following observers will be re-run: - ` + DM(n) + ` + ` + kM(n) + ` `); }, r; })(); @@ -69169,21 +69169,21 @@ function Eae(r, e, t, n) { if (r.values[e] && !fv(r.values[e])) return an("value" in t, "The property " + e + " in " + r.name + " is already observable, cannot redefine it as computed property"), void (r.target[e] = t.value); if ("value" in t) if (uy(t.value)) { var i = t.value; - MM(r, e, i.initialValue, i.enhancer); + DM(r, e, i.initialValue, i.enhancer); } else Vx(t.value) && t.value.autoBind === !0 ? Cz(r.target, e, t.value.originalFn) : fv(t.value) ? (function(a, o, s) { var u = a.name + "." + o; s.name = u, s.scope || (s.scope = a.target), a.values[o] = s, Object.defineProperty(a.target, o, Mz(o)); - })(r, e, t.value) : MM(r, e, t.value, n); + })(r, e, t.value) : DM(r, e, t.value, n); else Pz(r, e, t.get, t.set, yv.default, !0); } -function MM(r, e, t, n) { - if (FD(r.target, e), Kg(r)) { +function DM(r, e, t, n) { + if (UD(r.target, e), Kg(r)) { var i = Zg(r, { object: r.target, name: e, type: "add", newValue: t }); if (!i) return; t = i.newValue; } t = (r.values[e] = new Lp(t, n, r.name + "." + e, !1)).value, Object.defineProperty(r.target, e, (function(a) { - return x8[a] || (x8[a] = { configurable: !0, enumerable: !0, get: function() { + return E8[a] || (E8[a] = { configurable: !0, enumerable: !0, get: function() { return this.$mobx.values[a].get(); }, set: function(o) { Dz(this, a, o); @@ -69194,11 +69194,11 @@ function MM(r, e, t, n) { })(r, r.target, e, t); } function Pz(r, e, t, n, i, a) { - a && FD(r.target, e), r.values[e] = new Jg(t, r.target, i, r.name + "." + e, n), a && Object.defineProperty(r.target, e, Mz(e)); + a && UD(r.target, e), r.values[e] = new Jg(t, r.target, i, r.name + "." + e, n), a && Object.defineProperty(r.target, e, Mz(e)); } -var x8 = {}, E8 = {}; +var E8 = {}, S8 = {}; function Mz(r) { - return E8[r] || (E8[r] = { configurable: !0, enumerable: !1, get: function() { + return S8[r] || (S8[r] = { configurable: !0, enumerable: !1, get: function() { return this.$mobx.values[r].get(); }, set: function(e) { return this.$mobx.values[r].set(e); @@ -69217,7 +69217,7 @@ function Dz(r, e, t) { } var Sae = ly("ObservableObjectAdministration", Rz); function xh(r) { - return !!BD(r) && (C1(r), Sae(r.$mobx)); + return !!FD(r) && (C1(r), Sae(r.$mobx)); } function i0(r, e) { if (r == null) return !1; @@ -69229,11 +69229,11 @@ function i0(r, e) { } return !1; } - return xh(r) || !!r.$mobx || DD(r) || Vm(r) || fv(r); + return xh(r) || !!r.$mobx || kD(r) || Vm(r) || fv(r); } function i_(r) { return an(!!r, ":("), sE(function(e, t, n, i, a) { - FD(e, t), an(!a || !a.get, Gn("m022")), MM(Um(e, void 0), t, n, r); + UD(e, t), an(!a || !a.get, Gn("m022")), DM(Um(e, void 0), t, n, r); }, function(e) { var t = this.$mobx.values[e]; if (t !== void 0) return t.get(); @@ -69243,13 +69243,13 @@ function i_(r) { } function kz(r) { for (var e = [], t = 1; t < arguments.length; t++) e[t - 1] = arguments[t]; - return LD(r, yp, e); + return jD(r, yp, e); } function Iz(r) { for (var e = [], t = 1; t < arguments.length; t++) e[t - 1] = arguments[t]; - return LD(r, mp, e); + return jD(r, mp, e); } -function LD(r, e, t) { +function jD(r, e, t) { an(arguments.length >= 2, Gn("m014")), an(typeof r == "object", Gn("m015")), an(!zf(r), Gn("m016")), t.forEach(function(u) { an(typeof u == "object", Gn("m017")), an(!i0(u), Gn("m018")); }); @@ -69262,7 +69262,7 @@ function LD(r, e, t) { } return r; } -var Nz = i_(yp), Oae = i_(Lz), Tae = i_(mp), Cae = i_(Nb), Aae = i_(jz), S8 = { box: function(r, e) { +var Nz = i_(yp), Oae = i_(Lz), Tae = i_(mp), Cae = i_(Nb), Aae = i_(jz), O8 = { box: function(r, e) { return arguments.length > 2 && rp("box"), new Lp(r, yp, e); }, shallowBox: function(r, e) { return arguments.length > 2 && rp("shallowBox"), new Lp(r, mp, e); @@ -69321,7 +69321,7 @@ function Nb(r, e, t) { if (Gm(r)) return new zm(r, Nb, t); if (qm(r)) { var n = {}; - return Um(n, t), LD(n, Nb, [r]), n; + return Um(n, t), jD(n, Nb, [r]), n; } return r; } @@ -69336,8 +69336,8 @@ function cm(r, e) { Cp(); } } -Object.keys(S8).forEach(function(r) { - return ka[r] = S8[r]; +Object.keys(O8).forEach(function(r) { + return ka[r] = O8[r]; }), ka.deep.struct = ka.struct, ka.ref.struct = function() { return arguments.length < 2 ? bb(jz, arguments[0]) : Aae.apply(null, arguments); }; @@ -69463,7 +69463,7 @@ wz(zm.prototype, function() { }); var zf = ly("ObservableMap", zm), Bz = []; function A1() { - return typeof window < "u" ? window : io.g; + return typeof window < "u" ? window : ao.g; } function cu() { return ++Er.mobxGuid; @@ -69475,17 +69475,17 @@ function an(r, e, t) { if (!r) throw new Error("[mobx] Invariant failed: " + e + (t ? " in '" + t + "'" : "")); } Object.freeze(Bz); -var O8 = []; +var T8 = []; function Rg(r) { - return O8.indexOf(r) === -1 && (O8.push(r), console.error("[mobx] Deprecated: " + r), !0); + return T8.indexOf(r) === -1 && (T8.push(r), console.error("[mobx] Deprecated: " + r), !0); } -function jD(r) { +function BD(r) { var e = !1; return function() { if (!e) return e = !0, r.apply(this, arguments); }; } -var T8 = function() { +var C8 = function() { }; function Wx(r) { var e = []; @@ -69493,10 +69493,10 @@ function Wx(r) { e.indexOf(t) === -1 && e.push(t); }), e; } -function DM(r, e, t) { +function kM(r, e, t) { return e === void 0 && (e = 100), t === void 0 && (t = " - "), r ? r.slice(0, e).join(t) + (r.length > e ? " (... and " + (r.length - e) + "more)" : "") : ""; } -function BD(r) { +function FD(r) { return r !== null && typeof r == "object"; } function qm(r) { @@ -69525,13 +69525,13 @@ function Uz(r, e) { var t = Object.getOwnPropertyDescriptor(r, e); return !t || t.configurable !== !1 && t.writable !== !1; } -function FD(r, e) { +function UD(r, e) { an(Uz(r, e), "Cannot make property '" + e + "' observable, it is not configurable and writable in the target object"); } function ly(r, e) { var t = "isMobX" + r; return e.prototype[t] = !0, function(n) { - return BD(n) && n[t] === !0; + return FD(n) && n[t] === !0; }; } function Gm(r) { @@ -69545,24 +69545,24 @@ function qz(r) { } var ii, Od, Mae = ["mobxGuid", "resetId", "spyListeners", "strictMode", "runId"], Gz = function() { this.version = 5, this.trackingDerivation = null, this.computationDepth = 0, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !0, this.strictMode = !1, this.resetId = 0, this.spyListeners = [], this.globalReactionErrorHandlers = []; -}, Er = new Gz(), Vz = !1, Hz = !1, C8 = !1, gP = A1(); +}, Er = new Gz(), Vz = !1, Hz = !1, A8 = !1, gP = A1(); function Eh(r, e) { if (typeof r == "object" && r !== null) { if (gv(r)) return an(e === void 0, Gn("m036")), r.$mobx.atom; if (zf(r)) { var t = r; - return e === void 0 ? Eh(t._keys) : (an(!!(n = t._data[e] || t._hasMap[e]), "the entry '" + e + "' does not exist in the observable map '" + kM(r) + "'"), n); + return e === void 0 ? Eh(t._keys) : (an(!!(n = t._data[e] || t._hasMap[e]), "the entry '" + e + "' does not exist in the observable map '" + IM(r) + "'"), n); } var n; - if (C1(r), e && !r.$mobx && r[e], xh(r)) return e ? (an(!!(n = r.$mobx.values[e]), "no observable property '" + e + "' found on the observable object '" + kM(r) + "'"), n) : fu("please specify a property"); - if (DD(r) || fv(r) || Vm(r)) return r; + if (C1(r), e && !r.$mobx && r[e], xh(r)) return e ? (an(!!(n = r.$mobx.values[e]), "no observable property '" + e + "' found on the observable object '" + IM(r) + "'"), n) : fu("please specify a property"); + if (kD(r) || fv(r) || Vm(r)) return r; } else if (typeof r == "function" && Vm(r.$mobx)) return r.$mobx; return fu("Cannot obtain atom from " + r); } function lv(r, e) { - return an(r, "Expecting some object"), e !== void 0 ? lv(Eh(r, e)) : DD(r) || fv(r) || Vm(r) || zf(r) ? r : (C1(r), r.$mobx ? r.$mobx : void an(!1, "Cannot obtain administration from " + r)); + return an(r, "Expecting some object"), e !== void 0 ? lv(Eh(r, e)) : kD(r) || fv(r) || Vm(r) || zf(r) ? r : (C1(r), r.$mobx ? r.$mobx : void an(!1, "Cannot obtain administration from " + r)); } -function kM(r, e) { +function IM(r, e) { return (e !== void 0 ? Eh(r, e) : xh(r) || zf(r) ? lv(r) : Eh(r)).name; } function Wz(r, e) { @@ -69643,7 +69643,7 @@ function eq(r, e, t) { })); } gP.__mobxInstanceCount ? (gP.__mobxInstanceCount++, setTimeout(function() { - Vz || Hz || C8 || (C8 = !0, console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details.")); + Vz || Hz || A8 || (A8 = !0, console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details.")); }, 1)) : gP.__mobxInstanceCount = 1, (function(r) { r[r.NOT_TRACKING = -1] = "NOT_TRACKING", r[r.UP_TO_DATE = 0] = "UP_TO_DATE", r[r.POSSIBLY_STALE = 1] = "POSSIBLY_STALE", r[r.STALE = 2] = "STALE"; })(ii || (ii = {})), (function(r) { @@ -69655,7 +69655,7 @@ var Yx = function(r) { function _b(r) { return r instanceof Yx; } -function IM(r) { +function NM(r) { switch (r.dependenciesState) { case ii.UP_TO_DATE: return !1; @@ -69680,7 +69680,7 @@ function IM(r) { function tq() { return Er.trackingDerivation !== null; } -function UD(r) { +function zD(r) { var e = r.observers.length > 0; Er.computationDepth > 0 && e && fu(Gn("m031") + r.name), !Er.allowStateChanges && e && fu(Gn(Er.strictMode ? "m030a" : "m030b") + r.name); } @@ -69703,7 +69703,7 @@ function rq(r, e, t) { u !== ii.UP_TO_DATE && (a.dependenciesState = u, a.onBecomeStale()); })(r), n; } -function NM(r) { +function LM(r) { var e = r.observing; r.observing = []; for (var t = e.length; t--; ) Kz(e[t], r); @@ -69726,7 +69726,7 @@ function iq(r) { for (var e = r.observing, t = e.length; t--; ) e[t].lowestObserverState = ii.UP_TO_DATE; } } -function A8(r) { +function R8(r) { return console.log(r), r; } function aq(r) { @@ -69750,13 +69750,13 @@ var P1 = (function() { }, r.prototype.isScheduled = function() { return this._isScheduled; }, r.prototype.runReaction = function() { - this.isDisposed || (Tp(), this._isScheduled = !1, IM(this) && (this._isTrackPending = !0, this.onInvalidate(), this._isTrackPending && zl() && Qg({ object: this, type: "scheduled-reaction" })), Cp()); + this.isDisposed || (Tp(), this._isScheduled = !1, NM(this) && (this._isTrackPending = !0, this.onInvalidate(), this._isTrackPending && zl() && Qg({ object: this, type: "scheduled-reaction" })), Cp()); }, r.prototype.track = function(e) { Tp(); var t, n = zl(); n && (t = Date.now(), Ad({ object: this, type: "reaction", fn: e })), this._isRunning = !0; var i = rq(this, e, void 0); - this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && NM(this), _b(i) && this.reportExceptionInDerivation(i.cause), n && Rd({ time: Date.now() - t }), Cp(); + this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && LM(this), _b(i) && this.reportExceptionInDerivation(i.cause), n && Rd({ time: Date.now() - t }), Cp(); }, r.prototype.reportExceptionInDerivation = function(e) { var t = this; if (this.errorHandler) this.errorHandler(e, this); @@ -69767,7 +69767,7 @@ var P1 = (function() { }); } }, r.prototype.dispose = function() { - this.isDisposed || (this.isDisposed = !0, this._isRunning || (Tp(), NM(this), Cp())); + this.isDisposed || (this.isDisposed = !0, this._isRunning || (Tp(), LM(this), Cp())); }, r.prototype.getDisposer = function() { var e = this.dispose.bind(this); return e.$mobx = this, e.onError = kae, e; @@ -69781,7 +69781,7 @@ var P1 = (function() { WhyRun? reaction '` + this.name + `': * Status: [` + (this.isDisposed ? "stopped" : this._isRunning ? "running" : this.isScheduled() ? "scheduled" : "idle") + `] * This reaction will re-run if any of the following observables changes: - ` + DM(e) + ` + ` + kM(e) + ` ` + (this._isRunning ? " (... or any observable accessed during the remainder of the current run)" : "") + ` ` + Gn("m038") + ` `; @@ -69799,22 +69799,22 @@ WhyRun? reaction '` + this.name + `': function kae(r) { an(this && this.$mobx && Vm(this.$mobx), "Invalid `this`"), an(!this.$mobx.errorHandler, "Only one onErrorHandler can be registered"), this.$mobx.errorHandler = r; } -var R8 = 100, LM = function(r) { +var P8 = 100, jM = function(r) { return r(); }; function oq() { - Er.inBatch > 0 || Er.isRunningReactions || LM(Iae); + Er.inBatch > 0 || Er.isRunningReactions || jM(Iae); } function Iae() { Er.isRunningReactions = !0; for (var r = Er.pendingReactions, e = 0; r.length > 0; ) { - ++e === R8 && (console.error("Reaction doesn't converge to a stable state after " + R8 + " iterations. Probably there is a cycle in the reactive function: " + r[0]), r.splice(0)); + ++e === P8 && (console.error("Reaction doesn't converge to a stable state after " + P8 + " iterations. Probably there is a cycle in the reactive function: " + r[0]), r.splice(0)); for (var t = r.splice(0), n = 0, i = t.length; n < i; n++) t[n].runReaction(); } Er.isRunningReactions = !1; } var Vm = ly("Reaction", P1); -function zD(r) { +function qD(r) { return sE(function(e, t, n, i, a) { an(a !== void 0, Gn("m009")), an(typeof a.get == "function", Gn("m010")), Pz(Um(e, ""), t, a.get, a.set, r, !1); }, function(e) { @@ -69824,7 +69824,7 @@ function zD(r) { this.$mobx.values[e].set(t); }, !1, !1); } -var Nae = zD(yv.default), Lae = zD(yv.structural), Xx = function(r, e, t) { +var Nae = qD(yv.default), Lae = qD(yv.structural), Xx = function(r, e, t) { if (typeof e == "string") return Nae.apply(null, arguments); an(typeof r == "function", Gn("m011")), an(arguments.length < 3, Gn("m012")); var n = typeof e == "object" ? e : {}; @@ -69857,12 +69857,12 @@ function $u(r, e, t) { return l[f] = $u(c, e, t); }), l; } - if (ID(r)) return $u(r.get(), e, t); + if (ND(r)) return $u(r.get(), e, t); } return r; } -Xx.struct = Lae, Xx.equals = zD; -var qD = { allowStateChanges: function(r, e) { +Xx.struct = Lae, Xx.equals = qD; +var GD = { allowStateChanges: function(r, e) { var t, n = Oz(r); try { t = e(); @@ -69870,13 +69870,13 @@ var qD = { allowStateChanges: function(r, e) { Tz(n); } return t; -}, deepEqual: uE, getAtom: Eh, getDebugName: kM, getDependencyTree: Wz, getAdministration: lv, getGlobalState: function() { +}, deepEqual: uE, getAtom: Eh, getDebugName: IM, getDependencyTree: Wz, getAdministration: lv, getGlobalState: function() { return Er; }, getObserverTree: function(r, e) { return Xz(Eh(r, e)); }, interceptReads: function(r, e, t) { var n; - if (zf(r) || gv(r) || ID(r)) n = lv(r); + if (zf(r) || gv(r) || ND(r)) n = lv(r); else { if (!xh(r)) return fu("Expected observable map, object or array as first array"); if (typeof e != "string") return fu("InterceptReads can only be used with a specific property, not with an object in general"); @@ -69890,7 +69890,7 @@ var qD = { allowStateChanges: function(r, e) { var e = Er.globalReactionErrorHandlers.indexOf(r); e >= 0 && Er.globalReactionErrorHandlers.splice(e, 1); }; -}, reserveArrayBuffer: kD, resetGlobalState: function() { +}, reserveArrayBuffer: ID, resetGlobalState: function() { Er.resetId++; var r = new Gz(); for (var e in r) Mae.indexOf(e) === -1 && (Er[e] = r[e]); @@ -69904,13 +69904,13 @@ var qD = { allowStateChanges: function(r, e) { if (r.__mobxGlobal && r.__mobxGlobal.version !== e.version) throw new Error("[mobx] An incompatible version of mobx is already loaded."); r.__mobxGlobal ? Er = r.__mobxGlobal : r.__mobxGlobal = e; }, spyReport: Qg, spyReportEnd: Rd, spyReportStart: Ad, setReactionScheduler: function(r) { - var e = LM; - LM = function(t) { + var e = jM; + jM = function(t) { return r(function() { return e(t); }); }; -} }, jM = { Reaction: P1, untracked: nq, Atom: vae, BaseAtom: n_, useStrict: Sz, isStrictModeEnabled: function() { +} }, BM = { Reaction: P1, untracked: nq, Atom: vae, BaseAtom: n_, useStrict: Sz, isStrictModeEnabled: function() { return Er.strictMode; }, spy: _z, comparer: yv, asReference: function(r) { return Rg("asReference is deprecated, use observable.ref instead"), ka.ref(r); @@ -69920,7 +69920,7 @@ var qD = { allowStateChanges: function(r, e) { return Rg("asStructure is deprecated. Use observable.struct, computed.struct or reaction options instead."), ka.struct(r); }, asMap: function(r) { return Rg("asMap is deprecated, use observable.map or observable.shallowMap instead"), ka.map(r || {}); -}, isModifierDescriptor: uy, isObservableObject: xh, isBoxedObservable: ID, isObservableArray: gv, ObservableMap: zm, isObservableMap: zf, map: function(r) { +}, isModifierDescriptor: uy, isObservableObject: xh, isBoxedObservable: ND, isObservableArray: gv, ObservableMap: zm, isObservableMap: zf, map: function(r) { return Rg("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"), ka.map(r); }, transaction: cm, observable: ka, computed: Xx, isObservable: i0, isComputed: function(r, e) { if (r == null) return !1; @@ -69965,7 +69965,7 @@ var qD = { allowStateChanges: function(r, e) { }); }, reaction: Az, action: ta, isAction: Vx, runInAction: function(r, e, t) { var n = typeof r == "string" ? r : r.name || "", i = typeof r == "function" ? r : e, a = typeof r == "function" ? e : t; - return an(typeof i == "function", Gn("m002")), an(i.length === 0, Gn("m003")), an(typeof n == "string" && n.length > 0, "actions should have valid names, got: '" + n + "'"), ND(n, i, a, void 0); + return an(typeof i == "function", Gn("m002")), an(i.length === 0, Gn("m003")), an(typeof n == "string" && n.length > 0, "actions should have valid names, got: '" + n + "'"), LD(n, i, a, void 0); }, expr: function(r, e) { return tq() || console.warn(Gn("m013")), Xx(r, { context: e }).get(); }, toJS: $u, createTransformer: function(r, e) { @@ -69993,16 +69993,16 @@ var qD = { allowStateChanges: function(r, e) { return s ? s.get() : (s = t[o] = new i(o, a)).get(); }; }, whyRun: function(r, e) { - return Rg("`whyRun` is deprecated in favor of `trace`"), (r = aq(arguments)) ? fv(r) || Vm(r) ? A8(r.whyRun()) : fu(Gn("m025")) : A8(Gn("m024")); + return Rg("`whyRun` is deprecated in favor of `trace`"), (r = aq(arguments)) ? fv(r) || Vm(r) ? R8(r.whyRun()) : fu(Gn("m025")) : R8(Gn("m024")); }, isArrayLike: function(r) { return Array.isArray(r) || gv(r); -}, extras: qD }, P8 = !1, jae = function(r) { - var e = jM[r]; - Object.defineProperty(jM, r, { get: function() { - return P8 || (P8 = !0, console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")), e; +}, extras: GD }, M8 = !1, jae = function(r) { + var e = BM[r]; + Object.defineProperty(BM, r, { get: function() { + return M8 || (M8 = !0, console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")), e; } }); }; -for (var Bae in jM) jae(Bae); +for (var Bae in BM) jae(Bae); function Lb(r) { return Lb = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -70029,7 +70029,7 @@ function sq(r) { })(r); return Lb(e) == "symbol" ? e : e + ""; } -typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({ spy: _z, extras: qD }); +typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({ spy: _z, extras: GD }); var Uae = ["onLayoutDone", "onLayoutStep", "onError", "onInitialization", "onLayoutComputing", "onWebGLContextLost", "onZoomTransitionDone", "restart"], zae = (function() { return r = function t() { var n, i, a, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; @@ -70054,7 +70054,7 @@ var Uae = ["onLayoutDone", "onLayoutStep", "onError", "onInitialization", "onLay return t !== void 0 && typeof t == "function"; } }], e && Fae(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), qae = io(1803), M8 = io.n(qae), Cr = 256, K0 = 4096, ha = 25, uq = "#818790", lq = "#EDEDED", cq = "#CFD1D4", fq = "#F5F6F6", dq = "#8FE3E8", GD = "#1A1B1D", wb = '"Open Sans", sans-serif', BM = { position: "absolute", top: 0, bottom: 0, left: 0, right: 0 }, Gae = 1 / 0.38, $n = function() { +})(), qae = ao(1803), D8 = ao.n(qae), Cr = 256, K0 = 4096, ha = 25, uq = "#818790", lq = "#EDEDED", cq = "#CFD1D4", fq = "#F5F6F6", dq = "#8FE3E8", VD = "#1A1B1D", wb = '"Open Sans", sans-serif', FM = { position: "absolute", top: 0, bottom: 0, left: 0, right: 0 }, Gae = 1 / 0.38, $n = function() { return window.devicePixelRatio || 1; }; function Vae(r, e) { @@ -70082,7 +70082,7 @@ function Vae(r, e) { In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); } -function D8(r, e) { +function k8(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = hq(r)) || e) { @@ -70116,12 +70116,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function hq(r, e) { if (r) { - if (typeof r == "string") return k8(r, e); + if (typeof r == "string") return I8(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? k8(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? I8(r, e) : void 0; } } -function k8(r, e) { +function I8(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -70132,9 +70132,9 @@ function Z0(r, e) { if (!t) { if (Array.isArray(r) || (t = (function(u, l) { if (u) { - if (typeof u == "string") return I8(u, l); + if (typeof u == "string") return N8(u, l); var c = {}.toString.call(u).slice(8, -1); - return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? I8(u, l) : void 0; + return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? N8(u, l) : void 0; } })(r)) || e) { t && (r = t); @@ -70165,7 +70165,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function I8(r, e) { +function N8(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -70179,7 +70179,7 @@ var vq = function(r, e) { var n = t.from, i = t.to, a = vq(n, i); e.has(a) || e.add(a); }), e; -}, FM = function(r) { +}, UM = function(r) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lq, t = /* @__PURE__ */ new Map(); return r.forEach(function(n) { var i = n.id, a = n.from, o = n.to, s = n.color, u = n.width, l = n.disabled, c = vq(a, o), f = t.get(c); @@ -70211,7 +70211,7 @@ function jb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, jb(r); } -function N8(r, e) { +function L8(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -70224,9 +70224,9 @@ function N8(r, e) { function Wae(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? N8(Object(t), !0).forEach(function(n) { + e % 2 ? L8(Object(t), !0).forEach(function(n) { bd(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : N8(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : L8(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -70237,9 +70237,9 @@ function yP(r, e) { if (!t) { if (Array.isArray(r) || (t = (function(u, l) { if (u) { - if (typeof u == "string") return L8(u, l); + if (typeof u == "string") return j8(u, l); var c = {}.toString.call(u).slice(8, -1); - return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? L8(u, l) : void 0; + return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? j8(u, l) : void 0; } })(r)) || e) { t && (r = t); @@ -70270,7 +70270,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function L8(r, e) { +function j8(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -70297,11 +70297,11 @@ function pq(r) { })(r); return jb(e) == "symbol" ? e : e + ""; } -var j8 = function(r, e, t) { +var B8 = function(r, e, t) { return r + (e - r) * (function(n) { return n * n * (3 - 2 * n); })(t); -}, VD = (function() { +}, HD = (function() { return r = function t(n) { (function(a, o) { if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function"); @@ -70355,7 +70355,7 @@ var j8 = function(r, e, t) { var c = n.value, f = this.positions[c.id], d = a[c.id], h = { id: c.id }; if (f !== void 0) { for (var p, g, y, b = c.id, _ = (p = this.oldPositions[c.id]) !== null && p !== void 0 ? p : Wae({}, s); _ === void 0 && i[b] !== void 0; ) b = i[b], _ = this.oldPositions[b]; - _.x = (g = _.x) !== null && g !== void 0 ? g : s.x, _.y = (y = _.y) !== null && y !== void 0 ? y : s.y, h.x = j8(_.x, f.x, this.t), h.y = j8(_.y, f.y, this.t); + _.x = (g = _.x) !== null && g !== void 0 ? g : s.x, _.y = (y = _.y) !== null && y !== void 0 ? y : s.y, h.x = B8(_.x, f.x, this.t), h.y = B8(_.y, f.y, this.t); } else d !== void 0 && (h.x = d.x || s.x, h.y = d.y || s.y); u.push(h); } @@ -70391,8 +70391,8 @@ function gq() { return !!r; })(); } -function UM() { - return UM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function zM() { + return zM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Tm(a)) !== null; ) ; return a; @@ -70401,19 +70401,19 @@ function UM() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, UM.apply(null, arguments); + }, zM.apply(null, arguments); } function Tm(r) { return Tm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Tm(r); } -function zM(r, e) { - return zM = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function qM(r, e) { + return qM = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, zM(r, e); + }, qM(r, e); } -function B8(r, e, t) { +function F8(r, e, t) { return (e = yq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } function yq(r) { @@ -70434,7 +70434,7 @@ var kl = "CircularLayout", $ae = (function() { var i; (function(u, l) { if (!(u instanceof l)) throw new TypeError("Cannot call a class as a function"); - })(this, r), B8(i = (function(u, l, c) { + })(this, r), F8(i = (function(u, l, c) { return l = Tm(l), (function(f, d) { if (d && (Om(d) == "object" || typeof d == "function")) return d; if (d !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); @@ -70443,7 +70443,7 @@ var kl = "CircularLayout", $ae = (function() { return h; })(f); })(u, gq() ? Reflect.construct(l, c || [], Tm(u).constructor) : l.apply(u, c)); - })(this, r, [n]), "stateDisposers", void 0), B8(i, "sortFunction", void 0); + })(this, r, [n]), "stateDisposers", void 0), F8(i, "sortFunction", void 0); var a = i.state, o = a.nodes, s = a.rels; return o.addChannel(kl), s.addChannel(kl), i.stateDisposers = [i.state.reaction(function() { return i.state.graphUpdates; @@ -70460,8 +70460,8 @@ var kl = "CircularLayout", $ae = (function() { } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && zM(n, i); - })(r, VD), e = r, t = [{ key: "setOptions", value: function(n) { + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && qM(n, i); + })(r, HD), e = r, t = [{ key: "setOptions", value: function(n) { n && "sortFunction" in n && (this.sortFunction = n.sortFunction); } }, { key: "update", value: function() { var n = arguments.length > 0 && arguments[0] !== void 0 && arguments[0]; @@ -70470,7 +70470,7 @@ var kl = "CircularLayout", $ae = (function() { (n || s || u || l || c || d) && this.layout(a.items), a.clearChannel(kl), o.clearChannel(kl); } (function(h, p, g) { - var y = UM(Tm(h.prototype), "update", g); + var y = zM(Tm(h.prototype), "update", g); return typeof y == "function" ? function(b) { return y.apply(g, b); } : y; @@ -70482,7 +70482,7 @@ var kl = "CircularLayout", $ae = (function() { } }, { key: "layout", value: function(n) { var i, a, o, s = (o = n) !== void 0 ? $u(o) : o, u = (i = (a = this.sortFunction) === null || a === void 0 ? void 0 : a.call(this, s)) !== null && i !== void 0 ? i : s; this.positions = (function(l) { - var c, f = 0, d = [], h = $n(), p = D8(l); + var c, f = 0, d = [], h = $n(), p = k8(l); try { for (p.s(); !(c = p.n()).done; ) { var g, y = (2 * ((g = c.value.size) !== null && g !== void 0 ? g : ha) + 12.5) * h; @@ -70500,7 +70500,7 @@ var kl = "CircularLayout", $ae = (function() { return d[z] = j * _; }), b = 250; } - var m, x = Hae, E = {}, O = D8(l.entries()); + var m, x = Hae, E = {}, O = k8(l.entries()); try { for (O.s(); !(m = O.n()).done; ) { var S = Vae(m.value, 2), T = S[0], P = S[1], I = d[T] / b, k = x + I / 2; @@ -70539,7 +70539,7 @@ function lx(r) { function Zae(r, e) { for (var t, n = 0, i = r.length; n < i; ++n) if ((t = r[n]).name === e) return t.value; } -function F8(r, e, t) { +function U8(r, e, t) { for (var n = 0, i = r.length; n < i; ++n) if (r[n].name === e) { r[n] = Kae, r = r.slice(0, n).concat(r.slice(n + 1)); break; @@ -70554,8 +70554,8 @@ lx.prototype = mq.prototype = { constructor: lx, on: function(r, e) { })), o = -1, s = a.length; if (!(arguments.length < 2)) { if (e != null && typeof e != "function") throw new Error("invalid callback: " + e); - for (; ++o < s; ) if (t = (r = a[o]).type) i[t] = F8(i[t], r.name, e); - else if (e == null) for (t in i) i[t] = F8(i[t], r.name, null); + for (; ++o < s; ) if (t = (r = a[o]).type) i[t] = U8(i[t], r.name, e); + else if (e == null) for (t in i) i[t] = U8(i[t], r.name, null); return this; } for (; ++o < s; ) if ((t = (r = a[o]).type) && (t = Zae(i[t], r.name))) return t; @@ -70581,14 +70581,14 @@ function _q() { function Jae() { Ug = 0; } -function qM() { +function GM() { this._call = this._time = this._next = null; } function wq(r, e, t) { - var n = new qM(); + var n = new GM(); return n.restart(r, e, t), n; } -function U8() { +function z8() { Ug = ($x = M1.now()) + cE, ym = Eb = 0; try { (function() { @@ -70599,7 +70599,7 @@ function U8() { } finally { ym = 0, (function() { for (var r, e, t = cx, n = 1 / 0; t; ) t._call ? (n > t._time && (n = t._time), r = t, t = t._next) : (e = t._next, t._next = null, t = r ? r._next = e : cx = e); - xb = r, GM(n); + xb = r, VM(n); })(), Ug = 0; } } @@ -70607,16 +70607,16 @@ function eoe() { var r = M1.now(), e = r - $x; e > 1e3 && (cE -= e, $x = r); } -function GM(r) { - ym || (Eb && (Eb = clearTimeout(Eb)), r - Ug > 24 ? (r < 1 / 0 && (Eb = setTimeout(U8, r - M1.now() - cE)), Q0 && (Q0 = clearInterval(Q0))) : (Q0 || ($x = M1.now(), Q0 = setInterval(eoe, 1e3)), ym = 1, bq(U8))); +function VM(r) { + ym || (Eb && (Eb = clearTimeout(Eb)), r - Ug > 24 ? (r < 1 / 0 && (Eb = setTimeout(z8, r - M1.now() - cE)), Q0 && (Q0 = clearInterval(Q0))) : (Q0 || ($x = M1.now(), Q0 = setInterval(eoe, 1e3)), ym = 1, bq(z8))); } -qM.prototype = wq.prototype = { constructor: qM, restart: function(r, e, t) { +GM.prototype = wq.prototype = { constructor: GM, restart: function(r, e, t) { if (typeof r != "function") throw new TypeError("callback is not a function"); - t = (t == null ? _q() : +t) + (e == null ? 0 : +e), this._next || xb === this || (xb ? xb._next = this : cx = this, xb = this), this._call = r, this._time = t, GM(); + t = (t == null ? _q() : +t) + (e == null ? 0 : +e), this._next || xb === this || (xb ? xb._next = this : cx = this, xb = this), this._call = r, this._time = t, VM(); }, stop: function() { - this._call && (this._call = null, this._time = 1 / 0, GM()); + this._call && (this._call = null, this._time = 1 / 0, VM()); } }; -const z8 = 4294967296; +const q8 = 4294967296; function toe(r) { return r.x; } @@ -70624,7 +70624,7 @@ function roe(r) { return r.y; } var noe = Math.PI * (3 - Math.sqrt(5)); -function q8(r, e, t, n) { +function G8(r, e, t, n) { if (isNaN(e) || isNaN(t)) return r; var i, a, o, s, u, l, c, f, d, h = r._root, p = { data: n }, g = r._x0, y = r._y0, b = r._x1, _ = r._y1; if (!h) return r._root = p, r; @@ -70644,18 +70644,18 @@ function ioe(r) { function aoe(r) { return r[1]; } -function HD(r, e, t) { - var n = new WD(e ?? ioe, t ?? aoe, NaN, NaN, NaN, NaN); +function WD(r, e, t) { + var n = new YD(e ?? ioe, t ?? aoe, NaN, NaN, NaN, NaN); return r == null ? n : n.addAll(r); } -function WD(r, e, t, n, i, a) { +function YD(r, e, t, n, i, a) { this._x = r, this._y = e, this._x0 = t, this._y0 = n, this._x1 = i, this._y1 = a, this._root = void 0; } -function G8(r) { +function V8(r) { for (var e = { data: r.data }, t = e; r = r.next; ) t = t.next = { data: r.data }; return e; } -var Nl = HD.prototype = WD.prototype; +var Nl = WD.prototype = YD.prototype; function Bl(r) { return function() { return r; @@ -70667,7 +70667,7 @@ function bp(r) { function mP() { var r, e, t, n, i, a = Bl(-30), o = 1, s = 1 / 0, u = 0.81; function l(h) { - var p, g = r.length, y = HD(r, toe, roe).visitAfter(f); + var p, g = r.length, y = WD(r, toe, roe).visitAfter(f); for (n = h, p = 0; p < g; ++p) e = r[p], y.visit(d); } function c() { @@ -70721,25 +70721,25 @@ function soe(r) { function uoe(r) { return r.index; } -function V8(r, e) { +function H8(r, e) { var t = r.get(e); if (!t) throw new Error("node not found: " + e); return t; } Nl.copy = function() { - var r, e, t = new WD(this._x, this._y, this._x0, this._y0, this._x1, this._y1), n = this._root; + var r, e, t = new YD(this._x, this._y, this._x0, this._y0, this._x1, this._y1), n = this._root; if (!n) return t; - if (!n.length) return t._root = G8(n), t; - for (r = [{ source: n, target: t._root = new Array(4) }]; n = r.pop(); ) for (var i = 0; i < 4; ++i) (e = n.source[i]) && (e.length ? r.push({ source: e, target: n.target[i] = new Array(4) }) : n.target[i] = G8(e)); + if (!n.length) return t._root = V8(n), t; + for (r = [{ source: n, target: t._root = new Array(4) }]; n = r.pop(); ) for (var i = 0; i < 4; ++i) (e = n.source[i]) && (e.length ? r.push({ source: e, target: n.target[i] = new Array(4) }) : n.target[i] = V8(e)); return t; }, Nl.add = function(r) { const e = +this._x.call(null, r), t = +this._y.call(null, r); - return q8(this.cover(e, t), e, t, r); + return G8(this.cover(e, t), e, t, r); }, Nl.addAll = function(r) { var e, t, n, i, a = r.length, o = new Array(a), s = new Array(a), u = 1 / 0, l = 1 / 0, c = -1 / 0, f = -1 / 0; for (t = 0; t < a; ++t) isNaN(n = +this._x.call(null, e = r[t])) || isNaN(i = +this._y.call(null, e)) || (o[t] = n, s[t] = i, n < u && (u = n), n > c && (c = n), i < l && (l = i), i > f && (f = i)); if (u > c || l > f) return this; - for (this.cover(u, l).cover(c, f), t = 0; t < a; ++t) q8(this, o[t], s[t], r[t]); + for (this.cover(u, l).cover(c, f), t = 0; t < a; ++t) G8(this, o[t], s[t], r[t]); return this; }, Nl.cover = function(r, e) { if (isNaN(r = +r) || isNaN(e = +e)) return this; @@ -70831,28 +70831,28 @@ Nl.copy = function() { }, Nl.y = function(r) { return arguments.length ? (this._y = r, this) : this._y; }; -var loe = io(5880), xq = io.n(loe), bi = xq().getLogger("NVL"); -function VM(r) { - return VM = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { +var loe = ao(5880), xq = ao.n(loe), bi = xq().getLogger("NVL"); +function HM(r) { + return HM = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; } : function(e) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; - }, VM(r); + }, HM(r); } var coe = function(r) { var e, t; return typeof r.source == "number" || typeof r.target == "number" || typeof r.source == "string" || typeof r.target == "string" ? 45 * devicePixelRatio : ((e = r.source.size) !== null && e !== void 0 ? e : ha) + ((t = r.target.size) !== null && t !== void 0 ? t : ha) + 90 * devicePixelRatio; }; -function H8(r) { - return VM(r) === "object"; +function W8(r) { + return HM(r) === "object"; } var foe = function(r) { var e; return ((e = r.size) !== null && e !== void 0 ? e : ha) + 25 * devicePixelRatio; -}, HM = function() { +}, WM = function() { return -400 * Math.pow(devicePixelRatio, 2); }, doe = function() { - return 2 * HM(); + return 2 * WM(); }; function zg(r) { return zg = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -70861,12 +70861,12 @@ function zg(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, zg(r); } -function W8(r, e) { +function Y8(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function Y8(r, e) { +function X8(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -70912,7 +70912,7 @@ var lh = "d3ForceLayout", bP = function(r) { s.addChannel(lh), u.addChannel(lh), this.simulation = (function(l) { var c, f = 1, d = 1e-3, h = 1 - Math.pow(d, 1 / 300), p = 0, g = 0.6, y = /* @__PURE__ */ new Map(), b = wq(x), _ = Qae("tick", "end"), m = /* @__PURE__ */ (function() { let T = 1; - return () => (T = (1664525 * T + 1013904223) % z8) / z8; + return () => (T = (1664525 * T + 1013904223) % q8) / q8; })(); function x() { E(), _.call("tick", c), f < d && (b.stop(), _.call("end", c)); @@ -70964,7 +70964,7 @@ var lh = "d3ForceLayout", bP = function(r) { }, on: function(T, P) { return arguments.length > 1 ? (_.on(T, P), c) : _.on(T); } }; - })().velocityDecay(0.4).force("charge", mP().strength(HM)).force("centerX", (function(l) { + })().velocityDecay(0.4).force("charge", mP().strength(WM)).force("centerX", (function(l) { var c, f, d, h = Bl(0.1); function p(y) { for (var b, _ = 0, m = c.length; _ < m; ++_) (b = c[_]).vx += (d[_] - b.x) * f[_] * y; @@ -71036,9 +71036,9 @@ var lh = "d3ForceLayout", bP = function(r) { n.d3Nodes[m] = (function(x) { for (var E = 1; E < arguments.length; E++) { var O = arguments[E] != null ? arguments[E] : {}; - E % 2 ? Y8(Object(O), !0).forEach(function(S) { + E % 2 ? X8(Object(O), !0).forEach(function(S) { hoe(x, S, O[S]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(O)) : Y8(Object(O)).forEach(function(S) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(O)) : X8(Object(O)).forEach(function(S) { Object.defineProperty(x, S, Object.getOwnPropertyDescriptor(O, S)); }); } @@ -71046,7 +71046,7 @@ var lh = "d3ForceLayout", bP = function(r) { })({}, b[m]); }), p && Object.values(u.updates).forEach(function(m) { m.pinned === !0 ? (n.d3Nodes[m.id].fx = n.d3Nodes[m.id].x, n.d3Nodes[m.id].fy = n.d3Nodes[m.id].y) : m.pinned === !1 && (n.d3Nodes[m.id].fx = null, n.d3Nodes[m.id].fy = null), m.size !== void 0 && (n.d3Nodes[m.id].size = m.size); - }), (f || h) && (this.d3RelList = FM(bP(s.items)).filter(function(m) { + }), (f || h) && (this.d3RelList = UM(bP(s.items)).filter(function(m) { return m.from !== m.to; }).map(function(m, x) { return { source: m.from, target: m.to, index: x }; @@ -71071,7 +71071,7 @@ var lh = "d3ForceLayout", bP = function(r) { if (bi.info("d3ForceLayout: start layout with ".concat(Object.keys(this.d3Nodes).length, " nodes and ").concat(this.d3RelList.length, " rels")), this.simulation.stop(), this.simulation.nodes(Object.values(this.d3Nodes)).force("collide", (function(l) { var c, f, d, h = 1, p = 1; function g() { - for (var _, m, x, E, O, S, T, P = c.length, I = 0; I < p; ++I) for (m = HD(c, ooe, soe).visitAfter(y), _ = 0; _ < P; ++_) x = c[_], S = f[x.index], T = S * S, E = x.x + x.vx, O = x.y + x.vy, m.visit(k); + for (var _, m, x, E, O, S, T, P = c.length, I = 0; I < p; ++I) for (m = WD(c, ooe, soe).visitAfter(y), _ = 0; _ < P; ++_) x = c[_], S = f[x.index], T = S * S, E = x.x + x.vx, O = x.y + x.vy, m.visit(k); function k(L, B, j, z, H) { var q = L.data, W = L.r, $ = S + W; if (!q) return B > E + $ || z < E - $ || j > O + $ || H < O - $; @@ -71110,7 +71110,7 @@ var lh = "d3ForceLayout", bP = function(r) { function E() { if (d) { var T, P, I = d.length, k = l.length, L = new Map(d.map((B, j) => [y(B, j, d), B])); - for (T = 0, h = new Array(I); T < k; ++T) (P = l[T]).index = T, typeof P.source != "object" && (P.source = V8(L, P.source)), typeof P.target != "object" && (P.target = V8(L, P.target)), h[P.source.index] = (h[P.source.index] || 0) + 1, h[P.target.index] = (h[P.target.index] || 0) + 1; + for (T = 0, h = new Array(I); T < k; ++T) (P = l[T]).index = T, typeof P.source != "object" && (P.source = H8(L, P.source)), typeof P.target != "object" && (P.target = H8(L, P.target)), h[P.source.index] = (h[P.source.index] || 0) + 1, h[P.target.index] = (h[P.target.index] || 0) + 1; for (T = 0, p = new Array(k); T < k; ++T) P = l[T], p[T] = h[P.source.index] / (h[P.source.index] + h[P.target.index]); c = new Array(k), O(), f = new Array(k), S(); } @@ -71138,7 +71138,7 @@ var lh = "d3ForceLayout", bP = function(r) { return l.id; }).distance(coe).strength(function(l) { return (function(c, f) { - if (!H8(c.source) || !H8(c.target)) return 1; + if (!W8(c.source) || !W8(c.target)) return 1; var d = 1.2 / (Math.min(f[c.source.index], f[c.target.index]) + (Math.max(f[c.source.index], f[c.target.index]) - 1) / 100); return Math.max(Math.min(d, 1), 0.06); })(l, a.nodeRelCount); @@ -71147,7 +71147,7 @@ var lh = "d3ForceLayout", bP = function(r) { var o = 0; this.simulation.force("charge", mP().strength(doe)); for (var s = performance.now(); performance.now() - s < 300 && o < 200; ) this.simulation.alpha(1), this.simulation.tick(1), o += 1; - this.simulation.force("charge", mP().strength(HM)); + this.simulation.force("charge", mP().strength(WM)); for (var u = performance.now(); performance.now() - u < 100 && this.simulation.alpha() >= this.simulation.alphaMin(); ) this.simulation.tick(1); return requestAnimationFrame(function() { a.computing = !1; @@ -71161,9 +71161,9 @@ var lh = "d3ForceLayout", bP = function(r) { if (!f) { if (Array.isArray(l) || (f = (function(b, _) { if (b) { - if (typeof b == "string") return W8(b, _); + if (typeof b == "string") return Y8(b, _); var m = {}.toString.call(b).slice(8, -1); - return m === "Object" && b.constructor && (m = b.constructor.name), m === "Map" || m === "Set" ? Array.from(b) : m === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m) ? W8(b, _) : void 0; + return m === "Object" && b.constructor && (m = b.constructor.name), m === "Map" || m === "Set" ? Array.from(b) : m === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m) ? Y8(b, _) : void 0; } })(l)) || c) { f && (l = f); @@ -71248,7 +71248,7 @@ function Cm(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Cm(r); } -function X8(r, e) { +function $8(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -71261,9 +71261,9 @@ function X8(r, e) { function yoe(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? X8(Object(t), !0).forEach(function(n) { + e % 2 ? $8(Object(t), !0).forEach(function(n) { Pg(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : X8(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : $8(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -71294,9 +71294,9 @@ function moe(r, e) { In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); } -function $8(r) { +function K8(r) { return (function(e) { - if (Array.isArray(e)) return WM(e); + if (Array.isArray(e)) return YM(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || Oq(r) || (function() { @@ -71306,12 +71306,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function Oq(r, e) { if (r) { - if (typeof r == "string") return WM(r, e); + if (typeof r == "string") return YM(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? WM(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? YM(r, e) : void 0; } } -function WM(r, e) { +function YM(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -71332,8 +71332,8 @@ function Tq() { return !!r; })(); } -function YM() { - return YM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function XM() { + return XM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Am(a)) !== null; ) ; return a; @@ -71342,17 +71342,17 @@ function YM() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, YM.apply(null, arguments); + }, XM.apply(null, arguments); } function Am(r) { return Am = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Am(r); } -function XM(r, e) { - return XM = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function $M(r, e) { + return $M = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, XM(r, e); + }, $M(r, e); } function Pg(r, e, t) { return (e = Cq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; @@ -71370,7 +71370,7 @@ function Cq(r) { })(r); return Cm(e) == "symbol" ? e : e + ""; } -var K8 = function(r) { +var Z8 = function(r) { return r !== void 0 ? $u(r) : r; }, _oe = (function() { function r(n) { @@ -71394,17 +71394,17 @@ var K8 = function(r) { } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && XM(n, i); - })(r, VD), e = r, t = [{ key: "setOptions", value: function() { + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && $M(n, i); + })(r, HD), e = r, t = [{ key: "setOptions", value: function() { this.shouldUpdate = !0; } }, { key: "update", value: function() { var n = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; if (this.shouldUpdate || n) { - var o = K8(i), s = K8(a); + var o = Z8(i), s = Z8(a); (o.length > 0 || s.length > 0) && (this.updatePositionsFromState(), this.layout(o, s)); } (function(u, l, c) { - var f = YM(Am(u.prototype), "update", c); + var f = XM(Am(u.prototype), "update", c); return typeof f == "function" ? function(d) { return f.apply(c, d); } : f; @@ -71421,7 +71421,7 @@ var K8 = function(r) { return { group: "nodes", data: { id: l.id } }; }), s = i.map(function(l) { return { group: "edges", data: { id: "rel".concat(l.id), source: l.from, target: l.to } }; - }), u = { elements: [].concat($8(o), $8(s)), spacingFactor: n.reduce(function(l, c) { + }), u = { elements: [].concat(K8(o), K8(s)), spacingFactor: n.reduce(function(l, c) { var f; return l + ((f = c.size) !== null && f !== void 0 ? f : ha); }, 0) / n.length * 4.5 / 50 * $n() }; @@ -71449,15 +71449,15 @@ var K8 = function(r) { }), (n = this.worker) === null || n === void 0 || n.port.close(); } }], t && boe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; -})(), Z8 = typeof Float32Array < "u" ? Float32Array : Array; +})(), Q8 = typeof Float32Array < "u" ? Float32Array : Array; function Kx() { - var r = new Z8(16); - return Z8 != Float32Array && (r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[11] = 0, r[12] = 0, r[13] = 0, r[14] = 0), r[0] = 1, r[5] = 1, r[10] = 1, r[15] = 1, r; + var r = new Q8(16); + return Q8 != Float32Array && (r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[11] = 0, r[12] = 0, r[13] = 0, r[14] = 0), r[0] = 1, r[5] = 1, r[10] = 1, r[15] = 1, r; } -var $M = function(r, e, t, n, i, a, o) { +var KM = function(r, e, t, n, i, a, o) { var s = 1 / (e - t), u = 1 / (n - i), l = 1 / (a - o); return r[0] = -2 * s, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = -2 * u, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[10] = 2 * l, r[11] = 0, r[12] = (e + t) * s, r[13] = (i + n) * u, r[14] = (o + a) * l, r[15] = 1, r; -}, woe = io(9792), Q8 = io.n(woe); +}, woe = ao(9792), J8 = ao.n(woe); function Bb(r) { return Bb = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -71495,11 +71495,11 @@ var _p = (function() { })(this, t), J0(this, "shaderProgram", void 0), J0(this, "gl", void 0), J0(this, "curTexture", void 0), J0(this, "attributeInfo", void 0), J0(this, "uniformInfo", void 0); var s = n.createShader(n.FRAGMENT_SHADER); if (!n.isShader(s)) throw new Error("Could not create shader object"); - var u = Q8()(a, o); + var u = J8()(a, o); n.shaderSource(s, u), n.compileShader(s), (0, Hi.isNil)(n.getShaderParameter(s, n.COMPILE_STATUS)) && bi.info(n.getShaderInfoLog(s)); var l = n.createShader(n.VERTEX_SHADER); if (!n.isShader(l)) throw new Error("Could not create shader object"); - var c = Q8()(i, o); + var c = J8()(i, o); if (n.shaderSource(l, c), n.compileShader(l), (0, Hi.isNil)(n.getShaderParameter(l, n.COMPILE_STATUS)) && bi.info(n.getShaderInfoLog(l)), this.shaderProgram = n.createProgram(), n.attachShader(this.shaderProgram, s), n.attachShader(this.shaderProgram, l), n.linkProgram(this.shaderProgram), (0, Hi.isNil)(n.getProgramParameter(this.shaderProgram, n.LINK_STATUS))) throw new Error("Could not initialise shader"); this.gl = n, this.curTexture = 0, this.scanUniforms(), this.scanAttributes(); }, (e = [{ key: "setUniform", value: function(t, n) { @@ -71603,9 +71603,9 @@ function Soe(r) { })(r); return Rm(e) == "symbol" ? e : e + ""; } -function KM(r) { +function ZM(r) { var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0; - return KM = function(t) { + return ZM = function(t) { if (t === null || !(function(i) { try { return Function.toString.call(i).indexOf("[native code]") !== -1; @@ -71620,7 +71620,7 @@ function KM(r) { } function n() { return (function(i, a, o) { - if (YD()) return Reflect.construct.apply(null, arguments); + if (XD()) return Reflect.construct.apply(null, arguments); var s = [null]; s.push.apply(s, a); var u = new (i.bind.apply(i, s))(); @@ -71628,15 +71628,15 @@ function KM(r) { })(t, arguments, k1(this).constructor); } return n.prototype = Object.create(t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), D1(n, t); - }, KM(r); + }, ZM(r); } -function YD() { +function XD() { try { var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } - return (YD = function() { + return (XD = function() { return !!r; })(); } @@ -71662,13 +71662,13 @@ var Rq = (function() { if (u === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return u; })(o); - })(n, YD() ? Reflect.construct(i, a || [], k1(n).constructor) : i.apply(n, a)); + })(n, XD() ? Reflect.construct(i, a || [], k1(n).constructor) : i.apply(n, a)); })(this, r, arguments); } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && D1(n, i); - })(r, KM(Error)), e = r, (t = [{ key: "toString", value: function() { + })(r, ZM(Error)), e = r, (t = [{ key: "toString", value: function() { return this.message; } }]) && Eoe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; @@ -71691,7 +71691,7 @@ function Fb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Fb(r); } -function J8(r, e) { +function eB(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -71701,12 +71701,12 @@ function J8(r, e) { } return t; } -function eB(r) { +function tB(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? J8(Object(t), !0).forEach(function(n) { + e % 2 ? eB(Object(t), !0).forEach(function(n) { fm(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : J8(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : eB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -71734,7 +71734,7 @@ function Pq(r) { })(r); return Fb(e) == "symbol" ? e : e + ""; } -var tB = (function() { +var rB = (function() { return r = function t(n, i) { (function(a, o) { if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function"); @@ -71769,7 +71769,7 @@ var tB = (function() { return this.subGraphs.push(i), i; } }, { key: "coarsen", value: function(t, n) { var i = this, a = t.nodes, o = t.relationships, s = n ? a.map(function(O, S) { - return eB(eB({}, O), {}, { originalId: O.id, id: S }); + return tB(tB({}, O), {}, { originalId: O.id, id: S }); }) : a, u = s.map(function(O, S) { return S; }), l = {}, c = {}; @@ -71878,7 +71878,7 @@ var tB = (function() { }), E !== void 0 && E.length > 0 && (this.relIdMap = E), { output: { nodes: h, relationships: p, idToRel: this.graph.idToRel }, sortedInput: { nodes: b, relationships: x, idToRel: this.graph.idToRel }, nodeSortMap: m }; } }], e && Ooe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), rB = function(r, e, t) { +})(), nB = function(r, e, t) { for (var n = 2 * Math.PI / t, i = [], a = 0; a < t; a++) { var o = n * a; i.push({ x: r.x + e * Math.cos(o), y: r.y + e * Math.sin(o) }); @@ -71899,9 +71899,9 @@ function eb(r, e) { if (!t) { if (Array.isArray(r) || (t = (function(u, l) { if (u) { - if (typeof u == "string") return nB(u, l); + if (typeof u == "string") return iB(u, l); var c = {}.toString.call(u).slice(8, -1); - return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? nB(u, l) : void 0; + return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? iB(u, l) : void 0; } })(r)) || e) { t && (r = t); @@ -71932,7 +71932,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function nB(r, e) { +function iB(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -71980,7 +71980,7 @@ var nu = "PhysLayout", tb = new Float32Array(4), Rf = 256, wP = function(r) { var u = new Float32Array([0, 0, Cr, 0, 0, Cr, Cr, Cr]); s.bufferData(s.ARRAY_BUFFER, u, s.STATIC_DRAW), this.physSmallVbo = s.createBuffer(), s.bindBuffer(s.ARRAY_BUFFER, this.physSmallVbo); var l = new Float32Array([0, 0, Rf, 0, 0, Rf, Rf, Rf]); - s.bufferData(s.ARRAY_BUFFER, l, s.STATIC_DRAW), this.physProjection = Kx(), $M(this.physProjection, 0, Cr, Cr, 0, 0, 1e6), this.physSmallProjection = Kx(), $M(this.physSmallProjection, 0, Rf, Rf, 0, 0, 1e6), s.disable(s.DEPTH_TEST), this.gl = s, this.useReadpixelWorkaround && this.setupReadpixelWorkaround(), this.setupUpdates(), this.averageNodeSize = ha, this.shouldUpdate = !0, this.iterationCount = 0, this.lastSpeedValues = [], this.rollingAvgGraphSpeed = 0, this.nodeVariation = 0, this.nodeCenterPoint = [0, 0], this.peakIterationMultiplier = 160, this.setOptions(n, !0), this.definePhysicsArrays(), this.flatRelationshipKeys = /* @__PURE__ */ new Set(); + s.bufferData(s.ARRAY_BUFFER, l, s.STATIC_DRAW), this.physProjection = Kx(), KM(this.physProjection, 0, Cr, Cr, 0, 0, 1e6), this.physSmallProjection = Kx(), KM(this.physSmallProjection, 0, Rf, Rf, 0, 0, 1e6), s.disable(s.DEPTH_TEST), this.gl = s, this.useReadpixelWorkaround && this.setupReadpixelWorkaround(), this.setupUpdates(), this.averageNodeSize = ha, this.shouldUpdate = !0, this.iterationCount = 0, this.lastSpeedValues = [], this.rollingAvgGraphSpeed = 0, this.nodeVariation = 0, this.nodeCenterPoint = [0, 0], this.peakIterationMultiplier = 160, this.setOptions(n, !0), this.definePhysicsArrays(), this.flatRelationshipKeys = /* @__PURE__ */ new Set(); var c = a.nodes, f = a.rels; c.addChannel(nu), f.addChannel(nu), this.stateDisposers = [], this.stateDisposers.push(a.reaction(function() { return a.graphUpdates; @@ -72006,7 +72006,7 @@ var nu = "PhysLayout", tb = new Float32Array(4), Rf = 256, wP = function(r) { } } }, { key: "setData", value: function(t) { var n = wP(t.nodes), i = n.nodeIdToIndex, a = n.nodeIndexToId; - return this.nodeIdToIndex = i, this.nodeIndexToId = a, this.numNodes = t.nodes.length, this.flatRelationshipKeys = Sw(t.rels), this.solarMerger = new tB(t, i), this.solarMerger.coarsenTo(1), this.subGraphs = this.solarMerger.subGraphs, this.nodeSortMap = this.solarMerger.nodeSortMap, this.setupSprings(this.subGraphs[0]), this.setupSize(this.subGraphs[0]), this.setupPhysics(), this.firstUpdate = !0, this.curPhysData = 0, this.shouldUpdate = !0, this.iterationCount = 0, this.subGraphs[0]; + return this.nodeIdToIndex = i, this.nodeIndexToId = a, this.numNodes = t.nodes.length, this.flatRelationshipKeys = Sw(t.rels), this.solarMerger = new rB(t, i), this.solarMerger.coarsenTo(1), this.subGraphs = this.solarMerger.subGraphs, this.nodeSortMap = this.solarMerger.nodeSortMap, this.setupSprings(this.subGraphs[0]), this.setupSize(this.subGraphs[0]), this.setupPhysics(), this.firstUpdate = !0, this.curPhysData = 0, this.shouldUpdate = !0, this.iterationCount = 0, this.subGraphs[0]; } }, { key: "update", value: function() { var t = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], n = this.gl; if (this.checkForUpdates(t), !this.shouldUpdate) return n.bindFramebuffer(n.FRAMEBUFFER, this.getPhysData(0).frameBuffer), n.readPixels(0, 0, Cr, Cr, n.RGBA, n.FLOAT, this.physPositions), !1; @@ -72086,7 +72086,7 @@ var nu = "PhysLayout", tb = new Float32Array(4), Rf = 256, wP = function(r) { } }, { key: "addRemoveData", value: function(t, n, i) { var a = this.gl; this.numNodes = t.nodes.length, this.physShader.use(), this.physShader.setUniform("u_numNodes", this.numNodes), this.physShader.setUniform("u_baseLength", this.getBaseLength()); - var o = wP(t.nodes).nodeIdToIndex, s = new tB(t, o); + var o = wP(t.nodes).nodeIdToIndex, s = new rB(t, o); s.coarsenTo(1); var u = s.subGraphs[0], l = this.subGraphs[0], c = function(W) { return l.nodes.findIndex(function($) { @@ -72280,11 +72280,11 @@ var nu = "PhysLayout", tb = new Float32Array(4), Rf = 256, wP = function(r) { var _ = y.placement ? y.placement.x : a * (Math.random() - 0.5), m = y.placement ? y.placement.y : a * (Math.random() - 0.5); l(y.finestIndex === void 0 ? b : y.finestIndex, _, m, o); }) : f.forEach(function(y) { - var b = y.finestIndex, _ = o[4 * y.finestIndex], m = o[4 * y.finestIndex + 1], x = rB({ x: _, y: m }, 10, y.planets.length + 1); + var b = y.finestIndex, _ = o[4 * y.finestIndex], m = o[4 * y.finestIndex + 1], x = nB({ x: _, y: m }, 10, y.planets.length + 1); b += 1, y.planets.forEach(function(E, O) { var S = x[O]; l(b += 1, S.x, S.y, o); - var T = rB({ x: S.x, y: S.y }, 10, E.moons.length + 1); + var T = nB({ x: S.x, y: S.y }, 10, E.moons.length + 1); E.moons.forEach(function(P, I) { var k = T[I]; l(b += 1, k.x, k.y, o); @@ -73263,7 +73263,7 @@ function qb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, qb(r); } -function iB(r, e) { +function aB(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -73276,22 +73276,22 @@ function iB(r, e) { function Poe(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? iB(Object(t), !0).forEach(function(n) { + e % 2 ? aB(Object(t), !0).forEach(function(n) { Sb(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : iB(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : aB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function aB(r, e) { +function oB(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = (function(u, l) { if (u) { - if (typeof u == "string") return oB(u, l); + if (typeof u == "string") return sB(u, l); var c = {}.toString.call(u).slice(8, -1); - return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? oB(u, l) : void 0; + return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? sB(u, l) : void 0; } })(r)) || e) { t && (r = t); @@ -73322,7 +73322,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function oB(r, e) { +function sB(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -73365,7 +73365,7 @@ var ch = "FreeLayout", Doe = (function() { s.addChannel(ch), u.addChannel(ch), this.shouldUpdate = !0, this.setOptions(), this.layout(s.items, s.idToItem, s.idToPosition); }, e = [{ key: "setOptions", value: function() { } }, { key: "updateNodes", value: function(t) { - var n, i = aB(t); + var n, i = oB(t); try { for (i.s(); !(n = i.n()).done; ) { var a = n.value; @@ -73395,7 +73395,7 @@ var ch = "FreeLayout", Doe = (function() { } }, { key: "setNodePositions", value: function(t) { this.positions = t; } }, { key: "getNodePositions", value: function(t) { - var n, i = [], a = aB(t); + var n, i = [], a = oB(t); try { for (a.s(); !(n = a.n()).done; ) { var o = n.value, s = this.positions[o.id], u = Poe({ id: o.id }, s); @@ -73424,7 +73424,7 @@ function Gb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Gb(r); } -function sB(r, e) { +function uB(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -73434,12 +73434,12 @@ function sB(r, e) { } return t; } -function uB(r) { +function lB(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? sB(Object(t), !0).forEach(function(n) { + e % 2 ? uB(Object(t), !0).forEach(function(n) { koe(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : sB(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : uB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -73448,14 +73448,14 @@ function uB(r) { function koe(r, e, t) { return (e = Nq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } -function lB(r, e) { +function cB(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = (function(u, l) { if (u) { - if (typeof u == "string") return cB(u, l); + if (typeof u == "string") return fB(u, l); var c = {}.toString.call(u).slice(8, -1); - return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? cB(u, l) : void 0; + return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? fB(u, l) : void 0; } })(r)) || e) { t && (r = t); @@ -73486,7 +73486,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function cB(r, e) { +function fB(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -73526,7 +73526,7 @@ var fh = "GridLayout", Noe = (function() { s.addChannel(fh), u.addChannel(fh), this.shouldUpdate = !0, this.setOptions(n), this.layout(s.items, s.idToItem, s.idToPosition, u.items); }, e = [{ key: "setOptions", value: function(t) { } }, { key: "updateNodes", value: function(t) { - var n, i = lB(t); + var n, i = cB(t); try { for (i.s(); !(n = i.n()).done; ) { var a = n.value; @@ -73553,15 +73553,15 @@ var fh = "GridLayout", Noe = (function() { } for (var p = s.sort(), g = {}, y = 0; y < u; ++y) { var b = p[y], _ = c[y]; - b.x === _.x && b.y === _.y || (g[b.id] = uB({ id: b.id }, _)); + b.x === _.x && b.y === _.y || (g[b.id] = lB({ id: b.id }, _)); } this.positions = g, this.shouldUpdate = !1; } } }, { key: "getNodePositions", value: function(t) { - var n, i = [], a = lB(t); + var n, i = [], a = cB(t); try { for (a.s(); !(n = a.n()).done; ) { - var o = n.value, s = this.positions[o.id], u = uB({ id: o.id }, s); + var o = n.value, s = this.positions[o.id], u = lB({ id: o.id }, s); i.push(u); } } catch (l) { @@ -73603,7 +73603,7 @@ function Rw(r, e, t) { return Vb(i) == "symbol" ? i : i + ""; })(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } -var ZM = "down", qoe = Rw(Rw(Rw(Rw({}, "up", "BT"), ZM, "TB"), "left", "RL"), "right", "LR"), QM = "bin", Goe = [QM, "stack"], Voe = ["html"], Hoe = ["html"], Woe = ["captionHtml"]; +var QM = "down", qoe = Rw(Rw(Rw(Rw({}, "up", "BT"), QM, "TB"), "left", "RL"), "right", "LR"), JM = "bin", Goe = [JM, "stack"], Voe = ["html"], Hoe = ["html"], Woe = ["captionHtml"]; function Pm(r) { return Pm = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -73644,8 +73644,8 @@ function Lq() { return !!r; })(); } -function JM() { - return JM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function e5() { + return e5 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Mm(a)) !== null; ) ; return a; @@ -73654,17 +73654,17 @@ function JM() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, JM.apply(null, arguments); + }, e5.apply(null, arguments); } function Mm(r) { return Mm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Mm(r); } -function e5(r, e) { - return e5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function t5(r, e) { + return t5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, e5(r, e); + }, t5(r, e); } function dh(r, e, t) { return (e = jq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; @@ -73698,7 +73698,7 @@ var Ll = "HierarchicalLayout", Pw = function(r) { return h; })(f); })(u, Lq() ? Reflect.construct(l, c || [], Mm(u).constructor) : l.apply(u, c)); - })(this, r, [n]), "direction", void 0), dh(i, "packing", void 0), dh(i, "stateDisposers", void 0), dh(i, "oldComputing", void 0), dh(i, "computing", void 0), dh(i, "pendingLayoutData", void 0), dh(i, "worker", void 0), dh(i, "directionChanged", void 0), dh(i, "packingChanged", void 0), dh(i, "workersDisabled", void 0), i.direction = ZM, i.packing = QM; + })(this, r, [n]), "direction", void 0), dh(i, "packing", void 0), dh(i, "stateDisposers", void 0), dh(i, "oldComputing", void 0), dh(i, "computing", void 0), dh(i, "pendingLayoutData", void 0), dh(i, "worker", void 0), dh(i, "directionChanged", void 0), dh(i, "packingChanged", void 0), dh(i, "workersDisabled", void 0), i.direction = QM, i.packing = JM; var a = i.state, o = a.nodes, s = a.rels; return o.addChannel(Ll), s.addChannel(Ll), i.stateDisposers = [i.state.reaction(function() { return i.state.graphUpdates; @@ -73715,14 +73715,14 @@ var Ll = "HierarchicalLayout", Pw = function(r) { } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && e5(n, i); - })(r, VD), e = r, t = [{ key: "setOptions", value: function(n) { + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && t5(n, i); + })(r, HD), e = r, t = [{ key: "setOptions", value: function(n) { if (n !== void 0 && (function(u) { return Object.keys(u).every(function(l) { return Loe.has(l); }); })(n)) { - var i = n.direction, a = i === void 0 ? ZM : i, o = n.packing, s = o === void 0 ? QM : o; + var i = n.direction, a = i === void 0 ? QM : i, o = n.packing, s = o === void 0 ? JM : o; Object.keys(qoe).includes(a) && (this.directionChanged = this.direction && this.direction !== a, this.direction = a), Goe.includes(s) && (this.packingChanged = this.packing && this.packing !== s, this.packing = s), this.shouldUpdate = this.shouldUpdate || this.directionChanged || this.packingChanged; } } }, { key: "update", value: function() { @@ -73732,7 +73732,7 @@ var Ll = "HierarchicalLayout", Pw = function(r) { (n || l || c || f || d || s || u || p) && this.layout(a.items, a.idToItem, a.idToPosition, o.items), a.clearChannel(Ll), o.clearChannel(Ll), this.directionChanged = !1, this.packingChanged = !1; } (function(g, y, b) { - var _ = JM(Mm(g.prototype), "update", b); + var _ = e5(Mm(g.prototype), "update", b); return typeof _ == "function" ? function(m) { return _.apply(b, m); } : _; @@ -73769,7 +73769,7 @@ var Ll = "HierarchicalLayout", Pw = function(r) { }), this.state.nodes.removeChannel(Ll), this.state.rels.removeChannel(Ll), (n = this.worker) === null || n === void 0 || n.port.close(); } }], t && Yoe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; -})(), $oe = io(3269), Bq = io.n($oe); +})(), $oe = ao(3269), Bq = ao.n($oe); function Qx(r) { return Qx = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -73786,9 +73786,9 @@ function xr(r, e) { return typeof n == "string" && (n = (function(p) { p = p.replace(Koe, "").replace(Zoe, "").toLowerCase(); var g, y = !1; - if (t5[p]) p = t5[p], y = !0; + if (r5[p]) p = r5[p], y = !0; else if (p == "transparent") return { r: 0, g: 0, b: 0, a: 0, format: "name" }; - return (g = _d.rgb.exec(p)) ? { r: g[1], g: g[2], b: g[3] } : (g = _d.rgba.exec(p)) ? { r: g[1], g: g[2], b: g[3], a: g[4] } : (g = _d.hsl.exec(p)) ? { h: g[1], s: g[2], l: g[3] } : (g = _d.hsla.exec(p)) ? { h: g[1], s: g[2], l: g[3], a: g[4] } : (g = _d.hsv.exec(p)) ? { h: g[1], s: g[2], v: g[3] } : (g = _d.hsva.exec(p)) ? { h: g[1], s: g[2], v: g[3], a: g[4] } : (g = _d.hex8.exec(p)) ? { r: ef(g[1]), g: ef(g[2]), b: ef(g[3]), a: gB(g[4]), format: y ? "name" : "hex8" } : (g = _d.hex6.exec(p)) ? { r: ef(g[1]), g: ef(g[2]), b: ef(g[3]), format: y ? "name" : "hex" } : (g = _d.hex4.exec(p)) ? { r: ef(g[1] + "" + g[1]), g: ef(g[2] + "" + g[2]), b: ef(g[3] + "" + g[3]), a: gB(g[4] + "" + g[4]), format: y ? "name" : "hex8" } : !!(g = _d.hex3.exec(p)) && { r: ef(g[1] + "" + g[1]), g: ef(g[2] + "" + g[2]), b: ef(g[3] + "" + g[3]), format: y ? "name" : "hex" }; + return (g = _d.rgb.exec(p)) ? { r: g[1], g: g[2], b: g[3] } : (g = _d.rgba.exec(p)) ? { r: g[1], g: g[2], b: g[3], a: g[4] } : (g = _d.hsl.exec(p)) ? { h: g[1], s: g[2], l: g[3] } : (g = _d.hsla.exec(p)) ? { h: g[1], s: g[2], l: g[3], a: g[4] } : (g = _d.hsv.exec(p)) ? { h: g[1], s: g[2], v: g[3] } : (g = _d.hsva.exec(p)) ? { h: g[1], s: g[2], v: g[3], a: g[4] } : (g = _d.hex8.exec(p)) ? { r: ef(g[1]), g: ef(g[2]), b: ef(g[3]), a: yB(g[4]), format: y ? "name" : "hex8" } : (g = _d.hex6.exec(p)) ? { r: ef(g[1]), g: ef(g[2]), b: ef(g[3]), format: y ? "name" : "hex" } : (g = _d.hex4.exec(p)) ? { r: ef(g[1] + "" + g[1]), g: ef(g[2] + "" + g[2]), b: ef(g[3] + "" + g[3]), a: yB(g[4] + "" + g[4]), format: y ? "name" : "hex8" } : !!(g = _d.hex3.exec(p)) && { r: ef(g[1] + "" + g[1]), g: ef(g[2] + "" + g[2]), b: ef(g[3] + "" + g[3]), format: y ? "name" : "hex" }; })(n)), Qx(n) == "object" && (nv(n.r) && nv(n.g) && nv(n.b) ? (i = n.r, a = n.g, o = n.b, s = { r: 255 * Da(i, 255), g: 255 * Da(a, 255), b: 255 * Da(o, 255) }, d = !0, h = String(n.r).substr(-1) === "%" ? "prgb" : "rgb") : nv(n.h) && nv(n.s) && nv(n.v) ? (l = Ob(n.s), c = Ob(n.v), s = (function(p, g, y) { p = 6 * Da(p, 360), g = Da(g, 100), y = Da(y, 100); var b = Math.floor(p), _ = p - b, m = y * (1 - g), x = y * (1 - _ * g), E = y * (1 - (1 - _) * g), O = b % 6; @@ -73808,7 +73808,7 @@ function xr(r, e) { })(r); this._originalInput = r, this._r = t.r, this._g = t.g, this._b = t.b, this._a = t.a, this._roundA = Math.round(100 * this._a) / 100, this._format = e.format || t.format, this._gradientType = e.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = t.ok; } -function fB(r, e, t) { +function dB(r, e, t) { r = Da(r, 255), e = Da(e, 255), t = Da(t, 255); var n, i, a = Math.max(r, e, t), o = Math.min(r, e, t), s = (a + o) / 2; if (a == o) n = i = 0; @@ -73828,7 +73828,7 @@ function fB(r, e, t) { } return { h: n, s: i, l: s }; } -function dB(r, e, t) { +function hB(r, e, t) { r = Da(r, 255), e = Da(e, 255), t = Da(t, 255); var n, i, a = Math.max(r, e, t), o = Math.min(r, e, t), s = a, u = a - o; if (i = a === 0 ? 0 : u / a, a == o) n = 0; @@ -73847,11 +73847,11 @@ function dB(r, e, t) { } return { h: n, s: i, v: s }; } -function hB(r, e, t, n) { +function vB(r, e, t, n) { var i = [Td(Math.round(r).toString(16)), Td(Math.round(e).toString(16)), Td(Math.round(t).toString(16))]; return n && i[0].charAt(0) == i[0].charAt(1) && i[1].charAt(0) == i[1].charAt(1) && i[2].charAt(0) == i[2].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join(""); } -function vB(r, e, t, n) { +function pB(r, e, t, n) { return [Td(Uq(n)), Td(Math.round(r).toString(16)), Td(Math.round(e).toString(16)), Td(Math.round(t).toString(16))].join(""); } function Qoe(r, e) { @@ -73890,7 +73890,7 @@ function ase(r) { var e = xr(r).toHsl(); return e.h = (e.h + 180) % 360, xr(e); } -function pB(r, e) { +function gB(r, e) { if (isNaN(e) || e <= 0) throw new Error("Argument to polyad must be a positive number"); for (var t = xr(r).toHsl(), n = [xr(r)], i = 360 / e, a = 1; a < e; a++) n.push(xr({ h: (t.h + a * i) % 360, s: t.s, l: t.l })); return n; @@ -73931,19 +73931,19 @@ xr.prototype = { isDark: function() { }, setAlpha: function(r) { return this._a = Fq(r), this._roundA = Math.round(100 * this._a) / 100, this; }, toHsv: function() { - var r = dB(this._r, this._g, this._b); + var r = hB(this._r, this._g, this._b); return { h: 360 * r.h, s: r.s, v: r.v, a: this._a }; }, toHsvString: function() { - var r = dB(this._r, this._g, this._b), e = Math.round(360 * r.h), t = Math.round(100 * r.s), n = Math.round(100 * r.v); + var r = hB(this._r, this._g, this._b), e = Math.round(360 * r.h), t = Math.round(100 * r.s), n = Math.round(100 * r.v); return this._a == 1 ? "hsv(" + e + ", " + t + "%, " + n + "%)" : "hsva(" + e + ", " + t + "%, " + n + "%, " + this._roundA + ")"; }, toHsl: function() { - var r = fB(this._r, this._g, this._b); + var r = dB(this._r, this._g, this._b); return { h: 360 * r.h, s: r.s, l: r.l, a: this._a }; }, toHslString: function() { - var r = fB(this._r, this._g, this._b), e = Math.round(360 * r.h), t = Math.round(100 * r.s), n = Math.round(100 * r.l); + var r = dB(this._r, this._g, this._b), e = Math.round(360 * r.h), t = Math.round(100 * r.s), n = Math.round(100 * r.l); return this._a == 1 ? "hsl(" + e + ", " + t + "%, " + n + "%)" : "hsla(" + e + ", " + t + "%, " + n + "%, " + this._roundA + ")"; }, toHex: function(r) { - return hB(this._r, this._g, this._b, r); + return vB(this._r, this._g, this._b, r); }, toHexString: function(r) { return "#" + this.toHex(r); }, toHex8: function(r) { @@ -73962,12 +73962,12 @@ xr.prototype = { isDark: function() { }, toPercentageRgbString: function() { return this._a == 1 ? "rgb(" + Math.round(100 * Da(this._r, 255)) + "%, " + Math.round(100 * Da(this._g, 255)) + "%, " + Math.round(100 * Da(this._b, 255)) + "%)" : "rgba(" + Math.round(100 * Da(this._r, 255)) + "%, " + Math.round(100 * Da(this._g, 255)) + "%, " + Math.round(100 * Da(this._b, 255)) + "%, " + this._roundA + ")"; }, toName: function() { - return this._a === 0 ? "transparent" : !(this._a < 1) && (lse[hB(this._r, this._g, this._b, !0)] || !1); + return this._a === 0 ? "transparent" : !(this._a < 1) && (lse[vB(this._r, this._g, this._b, !0)] || !1); }, toFilter: function(r) { - var e = "#" + vB(this._r, this._g, this._b, this._a), t = e, n = this._gradientType ? "GradientType = 1, " : ""; + var e = "#" + pB(this._r, this._g, this._b, this._a), t = e, n = this._gradientType ? "GradientType = 1, " : ""; if (r) { var i = xr(r); - t = "#" + vB(i._r, i._g, i._b, i._a); + t = "#" + pB(i._r, i._g, i._b, i._a); } return "progid:DXImageTransform.Microsoft.gradient(" + n + "startColorstr=" + e + ",endColorstr=" + t + ")"; }, toString: function(r) { @@ -74005,9 +74005,9 @@ xr.prototype = { isDark: function() { }, splitcomplement: function() { return this._applyCombination(ose, arguments); }, triad: function() { - return this._applyCombination(pB, [3]); + return this._applyCombination(gB, [3]); }, tetrad: function() { - return this._applyCombination(pB, [4]); + return this._applyCombination(gB, [4]); } }, xr.fromRatio = function(r, e) { if (Qx(r) == "object") { var t = {}; @@ -74046,11 +74046,11 @@ xr.prototype = { isDark: function() { for (var l = 0; l < e.length; l++) (n = xr.readability(r, e[l])) > u && (u = n, s = xr(e[l])); return xr.isReadable(r, s, { level: a, size: o }) || !i ? s : (t.includeFallbackColors = !1, xr.mostReadable(r, ["#fff", "#000"], t)); }; -var t5 = xr.names = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "0ff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "00f", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", burntsienna: "ea7e5d", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "0ff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "f0f", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "663399", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32" }, lse = xr.hexNames = (function(r) { +var r5 = xr.names = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "0ff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "00f", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", burntsienna: "ea7e5d", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "0ff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "f0f", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "663399", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32" }, lse = xr.hexNames = (function(r) { var e = {}; for (var t in r) r.hasOwnProperty(t) && (e[r[t]] = t); return e; -})(t5); +})(r5); function Fq(r) { return r = parseFloat(r), (isNaN(r) || r < 0 || r > 1) && (r = 1), r; } @@ -74078,15 +74078,15 @@ function Ob(r) { function Uq(r) { return Math.round(255 * parseFloat(r)).toString(16); } -function gB(r) { +function yB(r) { return ef(r) / 255; } var np, Mw, Dw, _d = (Mw = "[\\s|\\(]+(" + (np = "(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)") + ")[,|\\s]+(" + np + ")[,|\\s]+(" + np + ")\\s*\\)?", Dw = "[\\s|\\(]+(" + np + ")[,|\\s]+(" + np + ")[,|\\s]+(" + np + ")[,|\\s]+(" + np + ")\\s*\\)?", { CSS_UNIT: new RegExp(np), rgb: new RegExp("rgb" + Mw), rgba: new RegExp("rgba" + Dw), hsl: new RegExp("hsl" + Mw), hsla: new RegExp("hsla" + Dw), hsv: new RegExp("hsv" + Mw), hsva: new RegExp("hsva" + Dw), hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }); function nv(r) { return !!_d.CSS_UNIT.exec(r); } -var r5 = function(r) { - return xr.mostReadable(r, [GD, "#FFFFFF"]).toString(); +var n5 = function(r) { + return xr.mostReadable(r, [VD, "#FFFFFF"]).toString(); }, I1 = function(r) { return Bq().get.rgb(r); }, kw = function(r) { @@ -74095,7 +74095,7 @@ var r5 = function(r) { }, Iw = function(r) { return [(e = I1(r))[0] / 255, e[1] / 255, e[2] / 255]; var e; -}, yB = { selected: { rings: [{ widthFactor: 0.05, color: fq }, { widthFactor: 0.1, color: dq }], shadow: { width: 10, opacity: 1, color: cq } }, default: { rings: [] } }, mB = { selected: { rings: [{ color: fq, width: 2 }, { color: dq, width: 4 }], shadow: { width: 18, opacity: 1, color: cq } }, default: { rings: [] } }, SP = 0.75, OP = { noPan: !1, outOnly: !1, animated: !0 }; +}, mB = { selected: { rings: [{ widthFactor: 0.05, color: fq }, { widthFactor: 0.1, color: dq }], shadow: { width: 10, opacity: 1, color: cq } }, default: { rings: [] } }, bB = { selected: { rings: [{ color: fq, width: 2 }, { color: dq, width: 4 }], shadow: { width: 18, opacity: 1, color: cq } }, default: { rings: [] } }, SP = 0.75, OP = { noPan: !1, outOnly: !1, animated: !0 }; function Hb(r) { return Hb = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -74108,7 +74108,7 @@ function TP(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function bB(r, e) { +function _B(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -74121,9 +74121,9 @@ function bB(r, e) { function CP(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? bB(Object(t), !0).forEach(function(n) { + e % 2 ? _B(Object(t), !0).forEach(function(n) { cse(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : bB(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : _B(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -74144,7 +74144,7 @@ function cse(r, e, t) { return Hb(i) == "symbol" ? i : i + ""; })(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } -var n5, Jx = function(r) { +var i5, Jx = function(r) { return r.captions && r.captions.length > 0 ? r.captions : r.caption && r.caption.length > 0 ? [{ value: r.caption }] : []; }, ip = function(r, e, t) { (0, Hi.isNil)(r) || ((function(n) { @@ -74154,29 +74154,29 @@ var n5, Jx = function(r) { var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : $n(); r.width = e * n, r.height = t * n, r.style.width = "".concat(e, "px"), r.style.height = "".concat(t, "px"); }, qq = function(r) { - bi.warn("Error: WebGL context lost - visualization will stop working!", r), n5 !== void 0 && n5(r); + bi.warn("Error: WebGL context lost - visualization will stop working!", r), i5 !== void 0 && i5(r); }, fx = function(r) { var e = r.parentElement, t = e.getBoundingClientRect(), n = t.width, i = t.height; n !== 0 || i !== 0 || e.isConnected || (n = parseInt(e.style.width, 10) || 0, i = parseInt(e.style.height, 10) || 0), zq(r, n, i); }, AP = function(r, e) { var t = document.createElement("canvas"); - return Object.assign(t.style, BM), r !== void 0 && (r.appendChild(t), fx(t)), (function(n, i) { - n5 = i, n.addEventListener("webglcontextlost", qq); + return Object.assign(t.style, FM), r !== void 0 && (r.appendChild(t), fx(t)), (function(n, i) { + i5 = i, n.addEventListener("webglcontextlost", qq); })(t, e), t; }, om = function(r) { r.width = 0, r.height = 0, r.remove(); -}, _B = function(r) { +}, wB = function(r) { var e = { antialias: !0 }, t = r.getContext("webgl", e); return t === null && (t = r.getContext("experimental-webgl", e)), (function(n) { return n instanceof WebGLRenderingContext; })(t) ? t : null; -}, wB = function(r) { +}, xB = function(r) { r.canvas.removeEventListener("webglcontextlost", qq); var e = r.getExtension("WEBGL_lose_context"); e == null || e.loseContext(); -}, i5 = /* @__PURE__ */ new Map(), Tb = function(r, e) { - var t = r.font, n = i5.get(t); - n === void 0 && (n = /* @__PURE__ */ new Map(), i5.set(t, n)); +}, a5 = /* @__PURE__ */ new Map(), Tb = function(r, e) { + var t = r.font, n = a5.get(t); + n === void 0 && (n = /* @__PURE__ */ new Map(), a5.set(t, n)); var i = n.get(e); return i === void 0 && (i = r.measureText(e).width, n.set(e, i)), i; }; @@ -74187,7 +74187,7 @@ function Wb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Wb(r); } -function xB(r, e) { +function EB(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -74219,10 +74219,10 @@ function Gq(r) { })(r); return Wb(e) == "symbol" ? e : e + ""; } -var a5 = function(r) { +var o5 = function(r) { return (0, Hi.isFinite)(r.x) && (0, Hi.isFinite)(r.y); }, N1 = function(r, e) { - return a5(r) && a5(e); + return o5(r) && o5(e); }, Nw = function(r, e) { if (r === void 0 || e === void 0 || !N1(r, e)) return !1; var t = e.x - r.x, n = e.y - r.y, i = $n(); @@ -74244,7 +74244,7 @@ var a5 = function(r) { return { x: this.unit.y, y: -this.unit.x }; } }], e && fse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), XD = function(r, e, t) { +})(), $D = function(r, e, t) { var n = { x: e.x - r.x, y: e.y - r.y }, i = (function(l, c) { var f = (l.x * c.x + l.y * c.y) / (c.x * c.x + c.y * c.y); return (0, Hi.clamp)(f, 0, 1); @@ -74258,15 +74258,15 @@ var a5 = function(r) { var i, a, o, s = 1e9, u = (function(c) { for (var f = 1; f < arguments.length; f++) { var d = arguments[f] != null ? arguments[f] : {}; - f % 2 ? xB(Object(d), !0).forEach(function(h) { + f % 2 ? EB(Object(d), !0).forEach(function(h) { Dg(c, h, d[h]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(d)) : xB(Object(d)).forEach(function(h) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(d)) : EB(Object(d)).forEach(function(h) { Object.defineProperty(c, h, Object.getOwnPropertyDescriptor(d, h)); }); } return c; })({}, r), l = { x: 0, y: 0 }; - for (a = 1; a < 10; a++) o = 0.1 * a, l.x = Math.pow(1 - o, 2) * r.x + 2 * o * (1 - o) * t.x + Math.pow(o, 2) * e.x, l.y = Math.pow(1 - o, 2) * r.y + 2 * o * (1 - o) * t.y + Math.pow(o, 2) * e.y, a > 0 && (s = (i = XD(u, l, n)) < s ? i : s), u.x = l.x, u.y = l.y; + for (a = 1; a < 10; a++) o = 0.1 * a, l.x = Math.pow(1 - o, 2) * r.x + 2 * o * (1 - o) * t.x + Math.pow(o, 2) * e.x, l.y = Math.pow(1 - o, 2) * r.y + 2 * o * (1 - o) * t.y + Math.pow(o, 2) * e.y, a > 0 && (s = (i = $D(u, l, n)) < s ? i : s), u.x = l.x, u.y = l.y; return s; }; function Yb(r) { @@ -74353,14 +74353,14 @@ function Xb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Xb(r); } -function EB(r, e) { +function SB(r, e) { if (r) { - if (typeof r == "string") return o5(r, e); + if (typeof r == "string") return s5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? o5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? s5(r, e) : void 0; } } -function o5(r, e) { +function s5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -74422,7 +74422,7 @@ var yse = (function() { } return p; } - })(a, o) || EB(a, o) || (function() { + })(a, o) || SB(a, o) || (function() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); @@ -74440,10 +74440,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); return Math.max.apply(Math, (function(n) { return (function(i) { - if (Array.isArray(i)) return o5(i); + if (Array.isArray(i)) return s5(i); })(n) || (function(i) { if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null) return Array.from(i); - })(n) || EB(n) || (function() { + })(n) || SB(n) || (function() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); @@ -74463,7 +74463,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.angles = t; } }], e && gse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), SB = uq, OB = 2 * Math.PI / 50, TB = 0.1 * Math.PI, dE = 1.5, s5 = wb; +})(), OB = uq, TB = 2 * Math.PI / 50, CB = 0.1 * Math.PI, dE = 1.5, u5 = wb; function $b(r) { return $b = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -74471,7 +74471,7 @@ function $b(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, $b(r); } -function CB(r, e) { +function AB(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = Wq(r)) || e) { @@ -74503,9 +74503,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function AB(r) { +function RB(r) { return (function(e) { - if (Array.isArray(e)) return u5(e); + if (Array.isArray(e)) return l5(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || Wq(r) || (function() { @@ -74515,12 +74515,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function Wq(r, e) { if (r) { - if (typeof r == "string") return u5(r, e); + if (typeof r == "string") return l5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? u5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? l5(r, e) : void 0; } } -function u5(r, e) { +function l5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -74531,7 +74531,7 @@ function mse(r, e) { n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Yq(n.key), n); } } -function RB(r, e, t) { +function PB(r, e, t) { return (e = Yq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } function Yq(r) { @@ -74569,7 +74569,7 @@ var bse = function(r) { return r = function t(n, i) { (function(o, s) { if (!(o instanceof s)) throw new TypeError("Cannot call a class as a function"); - })(this, t), RB(this, "bundles", void 0), RB(this, "nodeToBundles", void 0), this.bundles = {}, this.nodeToBundles = {}; + })(this, t), PB(this, "bundles", void 0), PB(this, "nodeToBundles", void 0), this.bundles = {}, this.nodeToBundles = {}; var a = n.reduce(function(o, s) { return o[s.id] = s, o; }, {}); @@ -74583,7 +74583,7 @@ var bse = function(r) { return T === E; }); S !== -1 && u[O].splice(S, 1), u[O].length === 0 && delete u[O]; - }, c = [].concat(AB(Object.values(t)), AB(Object.values(i))), f = Object.values(n), d = CB(c); + }, c = [].concat(RB(Object.values(t)), RB(Object.values(i))), f = Object.values(n), d = AB(c); try { for (d.s(); !(o = d.n()).done; ) { var h = o.value; @@ -74612,11 +74612,11 @@ var bse = function(r) { return !T.selfReferring; }); if (l !== void 0) { - var f, d = [], h = CB(c); + var f, d = [], h = AB(c); try { for (h.s(); !(f = h.n()).done; ) { var p = f.value, g = t[p.fromId], y = t[p.toId]; - if (g !== void 0 && y !== void 0) for (var b = OB * p.size(), _ = g.id === s ? Math.atan2(y.y - g.y, y.x - g.x) : Math.atan2(g.y - y.y, g.x - y.x), m = 0; m < p.size(); m++) d.push(_ + b / 2 - m * OB); + if (g !== void 0 && y !== void 0) for (var b = TB * p.size(), _ = g.id === s ? Math.atan2(y.y - g.y, y.x - g.x) : Math.atan2(g.y - y.y, g.x - y.x), m = 0; m < p.size(); m++) d.push(_ + b / 2 - m * TB); else { var x = g === void 0 ? p.fromId : p.toId; bi.warn("Arrowbundler: Node with id ".concat(x, " is not in position map")); @@ -74657,13 +74657,13 @@ var bse = function(r) { return Math.sqrt(t.x * t.x + t.y * t.y); })(Xq(r, e)); }; -function PB(r, e) { +function MB(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } var Ese = 2 * Math.PI, t2 = function(r, e, t) { - var n, i, a, o, s, u, l, c, f = t.indexOf(r), d = (n = t.angles[f]) !== null && n !== void 0 ? n : 0, h = d - TB / 2, p = d + TB / 2, g = $n(), y = ((i = e.size) !== null && i !== void 0 ? i : ha) * g + 4 * g, b = (a = e.x) !== null && a !== void 0 ? a : 0, _ = (o = e.y) !== null && o !== void 0 ? o : 0, m = { x: b + Math.cos(h) * (y + ((s = r.width) !== null && s !== void 0 ? s : 2) / 2), y: _ + Math.sin(h) * (y + ((u = r.width) !== null && u !== void 0 ? u : 2) / 2) }, x = { x: b + Math.cos(p) * (y + ((l = r.width) !== null && l !== void 0 ? l : 2) / 2), y: _ + Math.sin(p) * (y + ((c = r.width) !== null && c !== void 0 ? c : 2) / 2) }, E = { x: b + Math.cos(d) * (y + 35 * g), y: _ + Math.sin(d) * (y + 35 * g) }; + var n, i, a, o, s, u, l, c, f = t.indexOf(r), d = (n = t.angles[f]) !== null && n !== void 0 ? n : 0, h = d - CB / 2, p = d + CB / 2, g = $n(), y = ((i = e.size) !== null && i !== void 0 ? i : ha) * g + 4 * g, b = (a = e.x) !== null && a !== void 0 ? a : 0, _ = (o = e.y) !== null && o !== void 0 ? o : 0, m = { x: b + Math.cos(h) * (y + ((s = r.width) !== null && s !== void 0 ? s : 2) / 2), y: _ + Math.sin(h) * (y + ((u = r.width) !== null && u !== void 0 ? u : 2) / 2) }, x = { x: b + Math.cos(p) * (y + ((l = r.width) !== null && l !== void 0 ? l : 2) / 2), y: _ + Math.sin(p) * (y + ((c = r.width) !== null && c !== void 0 ? c : 2) / 2) }, E = { x: b + Math.cos(d) * (y + 35 * g), y: _ + Math.sin(d) * (y + 35 * g) }; return { angle: d, startAngle: h, endAngle: p, startPoint: m, endPoint: x, apexPoint: E, control1Point: { x: E.x + 25 * Math.cos(d - Math.PI / 2) * g / 2, y: E.y + 25 * Math.sin(d - Math.PI / 2) * g / 2 }, control2Point: { x: E.x + 25 * Math.cos(d + Math.PI / 2) * g / 2, y: E.y + 25 * Math.sin(d + Math.PI / 2) * g / 2 }, nodeGap: y }; }, $q = function(r, e, t, n, i, a, o) { var s, u = Math.PI / 2, l = 2 * Math.PI, c = $n(), f = Math.atan2(t.y - n.y, t.x - n.x), d = a.length > 0 ? ((s = a[0].width) !== null && s !== void 0 ? s : 0) * c : 0, h = o && o > 1 ? o * c / 2 : 1, p = 9 * h, g = 7 * h, y = i ? d * Math.sqrt(1 + 2 * p / g * (2 * p / g)) : 0; @@ -74681,7 +74681,7 @@ var Ese = 2 * Math.PI, t2 = function(r, e, t) { l += Math.cos(f + d) * y * b, c += Math.sin(f + d) * y * b; } return { x: l, y: c, angle: f }; -}, MB = function(r, e, t, n, i, a) { +}, DB = function(r, e, t, n, i, a) { var o = { x: (r.x + e.x) / 2, y: (r.y + e.y) / 2 }, s = { x: r.x, y: r.y }, u = { x: e.x, y: e.y }, l = new Wu(u, s), c = (function(d, h) { var p = 0; return d && (p += d), h && (p -= h), p; @@ -74689,7 +74689,7 @@ var Ese = 2 * Math.PI, t2 = function(r, e, t) { o.x += c / 2 * l.unit.x, o.y += c / 2 * l.unit.y; var f = a.size() / 2 - a.indexOf(i); return o.x += f * l.unit.x, o.y += f * l.unit.y, o; -}, DB = function(r) { +}, kB = function(r) { var e = $n(), t = r.size, n = r.selected; return ((t ?? ha) + 4 + (n === !0 ? 4 : 0)) * e; }, n2 = function(r, e, t, n, i) { @@ -74699,7 +74699,7 @@ var Ese = 2 * Math.PI, t2 = function(r, e, t) { var H = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], q = z.norm.x, W = z.norm.y; return H ? { x: -q, y: -W } : z.norm; }, s = $n(), u = e.indexOf(r), l = (e.size() - 1) / 2, c = u > l, f = Math.abs(u - l), d = i ? 17 * e.maxFontSize() : 8, h = (e.size() - 1) * d * s, p = (function(z, H, q, W, $, J, X) { - var Z, ue = arguments.length > 7 && arguments[7] !== void 0 && arguments[7], re = $n(), ne = z.size(), le = ne > 1, ce = z.relIsOppositeDirection(J), pe = ce ? q : H, fe = ce ? H : q, se = z.waypointPath, de = se == null ? void 0 : se.points, ge = se == null ? void 0 : se.from, Oe = se == null ? void 0 : se.to, ke = Nw(pe, ge) && Nw(fe, Oe) || Nw(fe, ge) && Nw(pe, Oe), De = ke ? de[1] : null, Ne = ke ? de[de.length - 2] : null, Ce = DB(pe), Y = DB(fe), Q = function(mr, ur) { + var Z, ue = arguments.length > 7 && arguments[7] !== void 0 && arguments[7], re = $n(), ne = z.size(), le = ne > 1, ce = z.relIsOppositeDirection(J), pe = ce ? q : H, fe = ce ? H : q, se = z.waypointPath, de = se == null ? void 0 : se.points, ge = se == null ? void 0 : se.from, Oe = se == null ? void 0 : se.to, ke = Nw(pe, ge) && Nw(fe, Oe) || Nw(fe, ge) && Nw(pe, Oe), De = ke ? de[1] : null, Ne = ke ? de[de.length - 2] : null, Ce = kB(pe), Y = kB(fe), Q = function(mr, ur) { return Math.atan2(mr.y - ur.y, mr.x - ur.x); }, ie = Math.max(Math.PI, Ese / (ne / 2)), we = le ? W * ie * (X ? 1 : -1) / ((Z = pe.size) !== null && Z !== void 0 ? Z : ha) : 0, Ee = Q(ke ? De : fe, pe), Me = ke ? Q(fe, Ne) : Ee, Ie = function(mr, ur, sn, Fr) { return { x: mr.x + Math.cos(ur) * sn * (Fr ? -1 : 1), y: mr.y + Math.sin(ur) * sn * (Fr ? -1 : 1) }; @@ -74727,14 +74727,14 @@ var Ese = 2 * Math.PI, t2 = function(r, e, t) { } else { var Lt = le ? wt(vt, tt) : 0; if (le && Lt > 2 * (30 * re + Math.min(Ce, Y))) if (ue) { - var Rt = MB(pe, fe, Ce, Y, J, z); + var Rt = DB(pe, fe, Ce, Y, J, z); Ue.push(new Wu(Mt, Rt)), Ue.push(new Wu(Rt, Dt)); } else { var jt = W * $, Yt = 30 + Ce, sr = Math.sqrt(Yt * Yt + jt * jt), Ut = 30 + Y, Rr = Math.sqrt(Ut * Ut + jt * jt), Xt = Ye(0, sr), Vr = ot(0, Rr); Ue.push(new Wu(Mt, Xt)), Ue.push(new Wu(Xt, Vr)), Ue.push(new Wu(Vr, Dt)); } else if (Lt > (Ce + Y) / 2) { - var Br = MB(pe, fe, Ce, Y, J, z); + var Br = DB(pe, fe, Ce, Y, J, z); Ue.push(new Wu(Mt, Br)), Ue.push(new Wu(Br, Dt)); } else Ue.push(new Wu(Mt, Dt)); } @@ -74764,9 +74764,9 @@ var Ese = 2 * Math.PI, t2 = function(r, e, t) { if (!x) { if (Array.isArray(_) || (x = (function(I, k) { if (I) { - if (typeof I == "string") return PB(I, k); + if (typeof I == "string") return MB(I, k); var L = {}.toString.call(I).slice(8, -1); - return L === "Object" && I.constructor && (L = I.constructor.name), L === "Map" || L === "Set" ? Array.from(I) : L === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L) ? PB(I, k) : void 0; + return L === "Object" && I.constructor && (L = I.constructor.name), L === "Map" || L === "Set" ? Array.from(I) : L === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L) ? MB(I, k) : void 0; } })(_)) || m) { x && (_ = x); @@ -74825,9 +74825,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, Jq = function(r, e, t) { var n = $n(), i = n * (r > 1 ? r / 2 : 1), a = 9 * i, o = 2 * i, s = 7 * i, u = t.length > 0 ? t[0].width * n : 0, l = 2 * a, c = e ? u * Math.sqrt(1 + l / s * (l / s)) : 0; return { headFactor: i, headHeight: a, headChinHeight: o, headWidth: s, headSelectedAdjustment: c, headPositionOffset: 2 - c }; -}, kB = function(r) { +}, IB = function(r) { return 6 * r * $n(); -}, IB = function(r, e, t) { +}, NB = function(r, e, t) { return { widthAlign: e / 2 * r[0], heightAlign: t / 2 * r[1] }; }, Ose = function(r) { var e = r.x, t = e === void 0 ? 0 : e, n = r.y, i = n === void 0 ? 0 : n, a = r.size, o = a === void 0 ? ha : a; @@ -74850,7 +74850,7 @@ function Kb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Kb(r); } -function NB(r, e) { +function LB(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -74863,22 +74863,22 @@ function NB(r, e) { function jl(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? NB(Object(t), !0).forEach(function(n) { + e % 2 ? LB(Object(t), !0).forEach(function(n) { kf(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : NB(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : LB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function LB(r, e) { +function jB(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = (function(u, l) { if (u) { - if (typeof u == "string") return jB(u, l); + if (typeof u == "string") return BB(u, l); var c = {}.toString.call(u).slice(8, -1); - return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? jB(u, l) : void 0; + return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? BB(u, l) : void 0; } })(r)) || e) { t && (r = t); @@ -74909,7 +74909,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function jB(r, e) { +function BB(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -74945,7 +74945,7 @@ var aG = (function() { o.state.zoom !== void 0 && (o.needsRun = !0), o.state.panX !== void 0 && (o.needsRun = !0), o.state.panY !== void 0 && (o.needsRun = !0), o.state.nodes.version !== void 0 && (o.needsRun = !0), o.state.rels.version !== void 0 && (o.needsRun = !0), o.state.waypoints.counter > 0 && (o.needsRun = !0), o.state.layout !== void 0 && (o.needsRun = !0); })); }, (e = [{ key: "getRelationshipsToRender", value: function(t, n, i, a) { - var o, s = [], u = [], l = [], c = this.arrowBundler, f = this.state, d = this.relationshipThreshold, h = f.layout, p = f.rels, g = f.nodes, y = g.idToItem, b = g.idToPosition, _ = h !== "hierarchical", m = LB(p.items); + var o, s = [], u = [], l = [], c = this.arrowBundler, f = this.state, d = this.relationshipThreshold, h = f.layout, p = f.rels, g = f.nodes, y = g.idToItem, b = g.idToPosition, _ = h !== "hierarchical", m = jB(p.items); try { for (m.s(); !(o = m.n()).done; ) { var x = o.value, E = c.getBundle(x), O = jl(jl({}, y[x.from]), b[x.from]), S = jl(jl({}, y[x.to]), b[x.to]), T = n !== void 0 ? t || n > d || x.captionHtml !== void 0 : t, P = !0; @@ -74965,7 +74965,7 @@ var aG = (function() { } return [].concat(u, l, s); } }, { key: "getNodesToRender", value: function(t, n, i) { - var a, o = [], s = [], u = [], l = this.state.nodes.idToItem, c = LB(t); + var a, o = [], s = [], u = [], l = this.state.nodes.idToItem, c = jB(t); try { for (c.s(); !(a = c.n()).done; ) { var f = a.value, d = !0; @@ -75031,7 +75031,7 @@ function PP(r, e) { }), n = e[e.length - 1][1]; return t !== void 0 ? t[1] : n; } -function $D(r, e) { +function KD(r, e) { if (!r || !e) return { nodeInfoLevel: 0, fontInfoLevel: 1.25, iconInfoLevel: 1 }; var t = $n(), n = 1600 * t * (1200 * t), i = Math.pow(r, 2) * Math.PI * Math.pow(e, 2) / (n / 100); return { nodeInfoLevel: PP(i, Cse), fontInfoLevel: PP(i, i2), iconInfoLevel: PP(i, Ase) }; @@ -75045,7 +75045,7 @@ function Zb(r) { } function nb(r) { return (function(e) { - if (Array.isArray(e)) return l5(e); + if (Array.isArray(e)) return c5(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || oG(r) || (function() { @@ -75053,7 +75053,7 @@ function nb(r) { In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); } -function BB(r, e) { +function FB(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -75066,9 +75066,9 @@ function BB(r, e) { function a2(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? BB(Object(t), !0).forEach(function(n) { + e % 2 ? FB(Object(t), !0).forEach(function(n) { Rse(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : BB(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : FB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -75091,12 +75091,12 @@ function Rse(r, e, t) { } function oG(r, e) { if (r) { - if (typeof r == "string") return l5(r, e); + if (typeof r == "string") return c5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? l5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? c5(r, e) : void 0; } } -function l5(r, e) { +function c5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -75104,11 +75104,11 @@ function l5(r, e) { var o2 = "…", sG = function(r) { var e = r[Math.floor(r.length / 2) - 1], t = r[Math.floor(r.length / 2)]; return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)); -}, FB = function(r) { +}, UB = function(r) { return !(!r || !isNaN(Number(r)) || r.toLowerCase() === r.toUpperCase()) && r === r.toUpperCase(); }, Pse = function(r) { var e = r[r.length - 1], t = r[r.length - 2]; - return !(!e || !isNaN(Number(e)) || e.toLowerCase() === e.toUpperCase()) && !(!t || !isNaN(Number(t)) || t.toLowerCase() === t.toUpperCase()) && FB(e) && !FB(t); + return !(!e || !isNaN(Number(e)) || e.toLowerCase() === e.toUpperCase()) && !(!t || !isNaN(Number(t)) || t.toLowerCase() === t.toUpperCase()) && UB(e) && !UB(t); }, Mse = function(r) { return ` \r\v`.includes(r); @@ -75176,7 +75176,7 @@ var o2 = "…", sG = function(r) { }).join("") }; }; function uG(r, e, t) { - var n, i, a, o = r.size, s = o === void 0 ? ha : o, u = r.caption, l = u === void 0 ? "" : u, c = r.captions, f = c === void 0 ? [] : c, d = r.captionAlign, h = d === void 0 ? "center" : d, p = r.captionSize, g = p === void 0 ? 1 : p, y = r.icon, b = s * $n(), _ = 2 * b, m = $D(b, e).fontInfoLevel, x = (function(z) { + var n, i, a, o = r.size, s = o === void 0 ? ha : o, u = r.caption, l = u === void 0 ? "" : u, c = r.captions, f = c === void 0 ? [] : c, d = r.captionAlign, h = d === void 0 ? "center" : d, p = r.captionSize, g = p === void 0 ? 1 : p, y = r.icon, b = s * $n(), _ = 2 * b, m = KD(b, e).fontInfoLevel, x = (function(z) { return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ha) / ({ 1: 3.5, 2: 2.75, 3: 2 }[arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1] + (arguments.length > 3 && arguments[3] !== void 0 && arguments[3] ? 1 : 0)) / z; })(m, b, g, !!y), E = f.length > 0, O = l.length > 0, S = [], T = ""; if (!E && !O) return { lines: [], stylesPerChar: [], fullCaption: "", fontSize: x, fontFace: wb, fontColor: "", yPos: 0, maxNoLines: 2, hasContent: !1 }; @@ -75345,7 +75345,7 @@ function e1(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, e1(r); } -function UB(r, e) { +function zB(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -75355,12 +75355,12 @@ function UB(r, e) { } return t; } -function zB(r) { +function qB(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? UB(Object(t), !0).forEach(function(n) { + e % 2 ? zB(Object(t), !0).forEach(function(n) { kg(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : UB(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : zB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -75421,7 +75421,7 @@ var Nse = (function() { return this.hasNextAnimation = !0, o; } }, { key: "createAnimation", value: function(t, n, i) { var a, o = new kse(n, t), s = (a = this.animations.get(n)) !== null && a !== void 0 ? a : {}; - return this.animations.set(n, zB(zB({}, s), {}, kg({}, i, o))), o; + return this.animations.set(n, qB(qB({}, s), {}, kg({}, i, o))), o; } }, { key: "getById", value: function(t) { return this.animations.get(t); } }, { key: "createFadeAnimation", value: function(t, n, i) { @@ -75461,7 +75461,7 @@ var op = function(r, e, t, n) { }); }, fG = function(r, e, t, n) { r.beginPath(), r.arc(e, t, n, 0, 2 * Math.PI, !1), r.closePath(); -}, qB = function(r, e, t, n, i) { +}, GB = function(r, e, t, n, i) { r.beginPath(), r.fillStyle = n, fG(r, e, t, i), r.fill(), r.closePath(); }; function Dm(r) { @@ -75471,7 +75471,7 @@ function Dm(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Dm(r); } -function GB(r, e) { +function VB(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -75481,12 +75481,12 @@ function GB(r, e) { } return t; } -function VB(r) { +function HB(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? GB(Object(t), !0).forEach(function(n) { + e % 2 ? VB(Object(t), !0).forEach(function(n) { dm(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : GB(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : VB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -75495,7 +75495,7 @@ function VB(r) { function ib(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { - if (Array.isArray(r) || (t = c5(r)) || e) { + if (Array.isArray(r) || (t = f5(r)) || e) { t && (r = t); var n = 0, i = function() { }; @@ -75524,14 +75524,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function c5(r, e) { +function f5(r, e) { if (r) { - if (typeof r == "string") return f5(r, e); + if (typeof r == "string") return d5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? f5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? d5(r, e) : void 0; } } -function f5(r, e) { +function d5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -75542,7 +75542,7 @@ function jse(r, e) { n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, hG(n.key), n); } } -function HB(r, e) { +function WB(r, e) { if (e && (Dm(e) == "object" || typeof e == "function")) return e; if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return (function(t) { @@ -75561,13 +75561,13 @@ function dG() { })(); } function Lw(r, e, t, n) { - var i = d5(Hm(r.prototype), e, t); + var i = h5(Hm(r.prototype), e, t); return 2 & n && typeof i == "function" ? function(a) { return i.apply(t, a); } : i; } -function d5() { - return d5 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function h5() { + return h5 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Hm(a)) !== null; ) ; return a; @@ -75576,17 +75576,17 @@ function d5() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, d5.apply(null, arguments); + }, h5.apply(null, arguments); } function Hm(r) { return Hm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Hm(r); } -function h5(r, e) { - return h5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function v5(r, e) { + return v5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, h5(r, e); + }, v5(r, e); } function dm(r, e, t) { return (e = hG(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; @@ -75609,11 +75609,11 @@ var DP = "canvasRenderer", Bse = (function() { var o, s, u, l, c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; return (function(f, d) { if (!(f instanceof d)) throw new TypeError("Cannot call a class as a function"); - })(this, r), s = this, l = [a, DP, c], u = Hm(u = r), dm(o = HB(s, dG() ? Reflect.construct(u, l || [], Hm(s).constructor) : u.apply(s, l)), "canvas", void 0), dm(o, "context", void 0), dm(o, "animationHandler", void 0), dm(o, "ellipsisWidth", void 0), dm(o, "disableArrowShadow", !1), i === null ? HB(o) : (o.canvas = n, o.context = i, a.nodes.addChannel(DP), a.rels.addChannel(DP), o.animationHandler = new Nse(), o.animationHandler.setOptions({ fadeDuration: 150, sizeDuration: 150 }), o.ellipsisWidth = Tb(i, o2), o); + })(this, r), s = this, l = [a, DP, c], u = Hm(u = r), dm(o = WB(s, dG() ? Reflect.construct(u, l || [], Hm(s).constructor) : u.apply(s, l)), "canvas", void 0), dm(o, "context", void 0), dm(o, "animationHandler", void 0), dm(o, "ellipsisWidth", void 0), dm(o, "disableArrowShadow", !1), i === null ? WB(o) : (o.canvas = n, o.context = i, a.nodes.addChannel(DP), a.rels.addChannel(DP), o.animationHandler = new Nse(), o.animationHandler.setOptions({ fadeDuration: 150, sizeDuration: 150 }), o.ellipsisWidth = Tb(i, o2), o); } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && h5(n, i); + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && v5(n, i); })(r, aG), e = r, t = [{ key: "needsToRun", value: function() { return Lw(r, "needsToRun", this, 3)([]) || this.animationHandler.needsToRun() || this.activeNodes.size > 0; } }, { key: "processUpdates", value: function() { @@ -75625,13 +75625,13 @@ var DP = "canvasRenderer", Bse = (function() { } }, { key: "drawNode", value: function(n, i, a, o, s, u, l, c, f) { var d = i.x, h = d === void 0 ? 0 : d, p = i.y, g = p === void 0 ? 0 : p, y = i.size, b = y === void 0 ? ha : y, _ = i.captionAlign, m = _ === void 0 ? "center" : _, x = i.disabled, E = i.activated, O = i.selected, S = i.hovered, T = i.id, P = i.icon, I = i.overlayIcon, k = Jx(i), L = $n(), B = this.getRingStyles(i, o, s), j = B.reduce(function(Xt, Vr) { return Xt + Vr.width; - }, 0), z = b * L, H = 2 * z, q = $D(z, f), W = q.nodeInfoLevel, $ = q.iconInfoLevel, J = i.color || l, X = r5(J), Z = z; + }, 0), z = b * L, H = 2 * z, q = KD(z, f), W = q.nodeInfoLevel, $ = q.iconInfoLevel, J = i.color || l, X = n5(J), Z = z; if (j > 0 && (Z = z + j), x) J = u.color, X = u.fontColor; else { var ue; if (E) { var re = Date.now() % 1e3 / 1e3, ne = re < 0.7 ? re / 0.7 : 0, le = Og(J, 0.4 - 0.4 * ne); - qB(n, h, g, le, z + 0.88 * z * ne); + GB(n, h, g, le, z + 0.88 * z * ne); } var ce = (ue = s.selected.shadow) !== null && ue !== void 0 ? ue : { width: 0, opacity: 0, color: "" }, pe = ce.width * L, fe = ce.opacity, se = ce.color, de = O || S ? pe : 0, ge = o.getValueForAnimationName(T, "shadowWidth", de); ge > 0 && (function(Xt, Vr, Br, mr, ur, sn) { @@ -75639,7 +75639,7 @@ var DP = "canvasRenderer", Bse = (function() { bn.addColorStop(0, "transparent"), bn.addColorStop(0.01, Og(mr, 0.5 * Fr)), bn.addColorStop(0.05, Og(mr, 0.5 * Fr)), bn.addColorStop(0.5, Og(mr, 0.12 * Fr)), bn.addColorStop(0.75, Og(mr, 0.03 * Fr)), bn.addColorStop(1, Og(mr, 0)), Xt.fillStyle = bn, fG(Xt, Vr, Br, un), Xt.fill(); })(n, h, g, se, Z, ge, fe); } - qB(n, h, g, J, z), j > 0 && Lse(n, h, g, z, B); + GB(n, h, g, J, z), j > 0 && Lse(n, h, g, z, B); var Oe = !!k.length; if (P) { var ke = eG(z, Oe, $, W), De = W > 0 ? 1 : 0, Ne = tG(ke, Oe, m, $, W), Ce = Ne.iconXPos, Y = Ne.iconYPos, Q = o.getValueForAnimationName(T, "iconSize", ke), ie = o.getValueForAnimationName(T, "iconXPos", Ce), we = o.getValueForAnimationName(T, "iconYPos", Y), Ee = n.globalAlpha, Me = x ? 0.1 : De; @@ -75705,7 +75705,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, { key: "drawLabel", value: function(n, i, a, o, s, u, l, c) { var f, d = arguments.length > 8 && arguments[8] !== void 0 && arguments[8], h = Math.PI / 2, p = $n(), g = s.selected, y = s.width, b = s.disabled, _ = s.captionAlign, m = _ === void 0 ? "top" : _, x = s.captionSize, E = x === void 0 ? 1 : x, O = Jx(s), S = O.length > 0 ? (f = Qb(O)) === null || f === void 0 ? void 0 : f.fullCaption : ""; if (S !== void 0) { - var T = 6 * E * p, P = s5, I = g === !0 ? "bold" : "normal", k = S; + var T = 6 * E * p, P = u5, I = g === !0 ? "bold" : "normal", k = S; n.fillStyle = b === !0 ? l.fontColor : c, n.font = "".concat(I, " ").concat(T, "px ").concat(P); var L = function(ce) { return Tb(n, ce); @@ -75724,7 +75724,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho u.setLabelInfo(s.id, le); } } }, { key: "renderWaypointArrow", value: function(n, i, a, o, s, u, l, c, f, d) { - var h = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : SB, p = Math.PI / 2, g = i.overlayIcon, y = i.color, b = i.disabled, _ = i.selected, m = i.width, x = i.hovered, E = i.captionAlign, O = _ === !0, S = b === !0, T = g !== void 0, P = f.rings, I = f.shadow, k = n2(i, s, a, o, l, c), L = $n(), B = Zq(i, 1), j = !this.disableArrowShadow && l, z = S ? d.color : y ?? h, H = P[0].width * L, q = P[1].width * L, W = Jq(m, O, P), $ = W.headHeight, J = W.headChinHeight, X = W.headWidth, Z = W.headSelectedAdjustment, ue = W.headPositionOffset, re = e2(k[k.length - 2], k[k.length - 1]), ne = ue, le = Z; + var h = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : OB, p = Math.PI / 2, g = i.overlayIcon, y = i.color, b = i.disabled, _ = i.selected, m = i.width, x = i.hovered, E = i.captionAlign, O = _ === !0, S = b === !0, T = g !== void 0, P = f.rings, I = f.shadow, k = n2(i, s, a, o, l, c), L = $n(), B = Zq(i, 1), j = !this.disableArrowShadow && l, z = S ? d.color : y ?? h, H = P[0].width * L, q = P[1].width * L, W = Jq(m, O, P), $ = W.headHeight, J = W.headChinHeight, X = W.headWidth, Z = W.headSelectedAdjustment, ue = W.headPositionOffset, re = e2(k[k.length - 2], k[k.length - 1]), ne = ue, le = Z; Math.floor(k.length / 2), k.length > 2 && O && re < $ + Z - J && (ne += re, le -= re / 2 + J, k.pop(), Math.floor(k.length / 2)); var ce, pe, fe = k[k.length - 2], se = k[k.length - 1], de = (ce = fe, pe = se, Math.atan2(pe.y - ce.y, pe.x - ce.x)), ge = { headPosition: { x: se.x + Math.cos(de) * ne, y: se.y + Math.sin(de) * ne }, headAngle: de, headHeight: $, headChinHeight: J, headWidth: X }; Qq(k, O, $, le, P); @@ -75741,10 +75741,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var Ne, Ce, Y = l || T ? (function(jt) { return (function(Yt) { - if (Array.isArray(Yt)) return f5(Yt); + if (Array.isArray(Yt)) return d5(Yt); })(jt) || (function(Yt) { if (typeof Symbol < "u" && Yt[Symbol.iterator] != null || Yt["@@iterator"] != null) return Array.from(Yt); - })(jt) || c5(jt) || (function() { + })(jt) || f5(jt) || (function() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); @@ -75760,7 +75760,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (this.drawSegments(n, k, B, z, c), op(n, B, z, ge), l || T) { var Ee = Kq(Y, a, o, c, O, P, E === "bottom" ? "bottom" : "top"), Me = sG(Y); if (l && this.drawLabel(n, { x: Ee.x, y: Ee.y }, Ee.angle, Me, i, s, d, h), T) { - var Ie, Ye, ot = g.position, mt = ot === void 0 ? [0, 0] : ot, wt = g.url, Mt = g.size, Dt = kB(Mt === void 0 ? 1 : Mt), vt = [(Ie = mt[0]) !== null && Ie !== void 0 ? Ie : 0, (Ye = mt[1]) !== null && Ye !== void 0 ? Ye : 0], tt = IB(vt, Me, Dt), _e = tt.widthAlign, Ue = tt.heightAlign, Qe = O ? (Ne = Ee.angle + p, Ce = r2(f.rings), { x: Math.cos(Ne) * Ce, y: Math.sin(Ne) * Ce }) : { x: 0, y: 0 }, Ze = mt[1] < 0 ? -1 : 1, nt = Qe.x * Ze, It = Qe.y * Ze, ct = Dt / 2; + var Ie, Ye, ot = g.position, mt = ot === void 0 ? [0, 0] : ot, wt = g.url, Mt = g.size, Dt = IB(Mt === void 0 ? 1 : Mt), vt = [(Ie = mt[0]) !== null && Ie !== void 0 ? Ie : 0, (Ye = mt[1]) !== null && Ye !== void 0 ? Ye : 0], tt = NB(vt, Me, Dt), _e = tt.widthAlign, Ue = tt.heightAlign, Qe = O ? (Ne = Ee.angle + p, Ce = r2(f.rings), { x: Math.cos(Ne) * Ce, y: Math.sin(Ne) * Ce }) : { x: 0, y: 0 }, Ze = mt[1] < 0 ? -1 : 1, nt = Qe.x * Ze, It = Qe.y * Ze, ct = Dt / 2; n.translate(Ee.x, Ee.y), n.rotate(Ee.angle); var Lt = -ct + nt + _e, Rt = -ct + It + Ue; n.drawImage(u.getImage(wt), Lt, Rt, Dt, Dt), n.rotate(-Ee.angle), n.translate(-Ee.x, -Ee.y); @@ -75768,7 +75768,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } n.restore(); } }, { key: "renderSelfArrow", value: function(n, i, a, o, s, u, l, c) { - var f = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : SB, d = i.overlayIcon, h = i.selected, p = i.width, g = i.hovered, y = i.disabled, b = i.color, _ = t2(i, a, o), m = _.startPoint, x = _.endPoint, E = _.apexPoint, O = _.control1Point, S = _.control2Point, T = l.rings, P = l.shadow, I = $n(), k = T[0].color, L = T[1].color, B = T[0].width * I, j = T[1].width * I, z = 40 * I, H = (p ?? 1) * I, q = !this.disableArrowShadow && u, W = H > 1 ? H / 2 : 1, $ = 9 * W, J = 2 * W, X = 7 * W, Z = h === !0, ue = y === !0, re = d !== void 0, ne = Math.atan2(x.y - S.y, x.x - S.x), le = Z ? B * Math.sqrt(1 + 2 * $ / X * (2 * $ / X)) : 0, ce = { x: x.x - Math.cos(ne) * (0.5 * $ - J + le), y: x.y - Math.sin(ne) * (0.5 * $ - J + le) }, pe = { headPosition: { x: x.x + Math.cos(ne) * (0.5 * $ - J - le), y: x.y + Math.sin(ne) * (0.5 * $ - J - le) }, headAngle: ne, headHeight: $, headChinHeight: J, headWidth: X }; + var f = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : OB, d = i.overlayIcon, h = i.selected, p = i.width, g = i.hovered, y = i.disabled, b = i.color, _ = t2(i, a, o), m = _.startPoint, x = _.endPoint, E = _.apexPoint, O = _.control1Point, S = _.control2Point, T = l.rings, P = l.shadow, I = $n(), k = T[0].color, L = T[1].color, B = T[0].width * I, j = T[1].width * I, z = 40 * I, H = (p ?? 1) * I, q = !this.disableArrowShadow && u, W = H > 1 ? H / 2 : 1, $ = 9 * W, J = 2 * W, X = 7 * W, Z = h === !0, ue = y === !0, re = d !== void 0, ne = Math.atan2(x.y - S.y, x.x - S.x), le = Z ? B * Math.sqrt(1 + 2 * $ / X * (2 * $ / X)) : 0, ce = { x: x.x - Math.cos(ne) * (0.5 * $ - J + le), y: x.y - Math.sin(ne) * (0.5 * $ - J + le) }, pe = { headPosition: { x: x.x + Math.cos(ne) * (0.5 * $ - J - le), y: x.y + Math.sin(ne) * (0.5 * $ - J - le) }, headAngle: ne, headHeight: $, headChinHeight: J, headWidth: X }; if (n.save(), n.lineCap = "round", Z && (q && this.enableShadow(n, P), n.lineWidth = H + j, n.strokeStyle = L, this.drawLoop(n, m, ce, E, O, S), op(n, j, L, pe, !1, !0), q && this.disableShadow(n), n.lineWidth = H + B, n.strokeStyle = k, this.drawLoop(n, m, ce, E, O, S), op(n, B, k, pe, !1, !0)), n.lineWidth = H, g === !0 && !Z && !ue) { var fe = P.color; q && this.enableShadow(n, P), n.strokeStyle = fe, n.fillStyle = fe, this.drawLoop(n, m, ce, E, O, S), op(n, H, fe, pe), q && this.disableShadow(n); @@ -75777,7 +75777,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (n.fillStyle = se, n.strokeStyle = se, this.drawLoop(n, m, ce, E, O, S), op(n, H, se, pe), u || re) { var de, ge = o.indexOf(i), Oe = (de = o.angles[ge]) !== null && de !== void 0 ? de : 0, ke = $q(E, Oe, x, S, Z, T, p), De = ke.x, Ne = ke.y, Ce = ke.angle, Y = ke.flip; if (u && this.drawLabel(n, { x: De, y: Ne }, Ce, z, i, o, c, f, Y), re) { - var Q, ie, we = d.position, Ee = we === void 0 ? [0, 0] : we, Me = d.url, Ie = d.size, Ye = kB(Ie === void 0 ? 1 : Ie), ot = [(Q = Ee[0]) !== null && Q !== void 0 ? Q : 0, (ie = Ee[1]) !== null && ie !== void 0 ? ie : 0], mt = IB(ot, z, Ye), wt = mt.widthAlign, Mt = mt.heightAlign + (Z ? r2(l.rings) : 0) * (Ee[1] < 0 ? -1 : 1); + var Q, ie, we = d.position, Ee = we === void 0 ? [0, 0] : we, Me = d.url, Ie = d.size, Ye = IB(Ie === void 0 ? 1 : Ie), ot = [(Q = Ee[0]) !== null && Q !== void 0 ? Q : 0, (ie = Ee[1]) !== null && ie !== void 0 ? ie : 0], mt = NB(ot, z, Ye), wt = mt.widthAlign, Mt = mt.heightAlign + (Z ? r2(l.rings) : 0) * (Ee[1] < 0 ? -1 : 1); n.save(), n.translate(De, Ne), Y ? (n.rotate(Ce - Math.PI), n.translate(2 * -wt, 2 * -Mt)) : n.rotate(Ce); var Dt = Ye / 2, vt = -Dt + wt, tt = -Dt + Mt; n.drawImage(s.getImage(Me), vt, tt, Ye, Ye), n.restore(); @@ -75799,7 +75799,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho try { for (g.s(); !(o = g.n()).done; ) { var y = o.value; - this.drawNode(i, VB(VB({}, f[y.id]), y), s, u, d, h, p, c, a); + this.drawNode(i, HB(HB({}, f[y.id]), y), s, u, d, h, p, c, a); } } catch (b) { g.e(b); @@ -75853,7 +75853,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var X = n2(z, H, q, W, $, J), Z = 1 / 0; if (J && X.length === 3) Z = RP(X[0], X[2], X[1], j); else for (var ue = 1; ue < X.length; ue++) { - var re = X[ue - 1], ne = X[ue], le = XD(re, ne, j); + var re = X[ue - 1], ne = X[ue], le = $D(re, ne, j); Z = le < Z ? le : Z; } return Z; @@ -75900,7 +75900,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return E; } - })(d, h) || c5(d, h) || (function() { + })(d, h) || f5(d, h) || (function() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); @@ -75918,14 +75918,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }], t && jse(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; })(); -function WB(r, e) { +function YB(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } var Fse = function(r, e) { e.includes("bold") && e.includes("italic") ? (r.setAttribute("font-weight", "bold"), r.setAttribute("font-style", "italic")) : e.includes("bold") ? r.setAttribute("font-weight", "bold") : e.includes("italic") && r.setAttribute("font-style", "italic"), e.includes("underline") && r.setAttribute("text-decoration", "underline"); -}, YB = function(r, e, t, n) { +}, XB = function(r, e, t, n) { for (var i = [], a = "".concat(r.tip.x, ",").concat(r.tip.y, " ").concat(r.base1.x, ",").concat(r.base1.y, " ").concat(r.base2.x, ",").concat(r.base2.y), o = t.length - 1; o >= 0; o--) { var s = t[o], u = document.createElementNS("http://www.w3.org/2000/svg", "polygon"); u.setAttribute("points", a), u.setAttribute("fill", "none"), u.setAttribute("stroke", s.color), u.setAttribute("stroke-width", String(s.width * n)), u.setAttribute("stroke-linecap", "round"), u.setAttribute("stroke-linejoin", "round"), i.push(u); @@ -75940,9 +75940,9 @@ var Fse = function(r, e) { if (!_) { if (Array.isArray(y) || (_ = (function(T, P) { if (T) { - if (typeof T == "string") return WB(T, P); + if (typeof T == "string") return YB(T, P); var I = {}.toString.call(T).slice(8, -1); - return I === "Object" && T.constructor && (I = T.constructor.name), I === "Map" || I === "Set" ? Array.from(T) : I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I) ? WB(T, P) : void 0; + return I === "Object" && T.constructor && (I = T.constructor.name), I === "Map" || I === "Set" ? Array.from(T) : I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I) ? YB(T, P) : void 0; } })(y)) || b) { _ && (y = _); @@ -75984,14 +75984,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho h.f(); } return f; -}, XB = function(r, e, t, n, i) { +}, $B = function(r, e, t, n, i) { for (var a = [], o = n.length - 1; o >= 0; o--) { var s = n[o], u = document.createElementNS("http://www.w3.org/2000/svg", "path"); u.setAttribute("d", r), u.setAttribute("stroke", s.color), u.setAttribute("stroke-width", String(t + s.width * i)), u.setAttribute("stroke-linecap", "round"), u.setAttribute("fill", "none"), a.push(u); } var l = document.createElementNS("http://www.w3.org/2000/svg", "path"); return l.setAttribute("d", r), l.setAttribute("stroke", e), l.setAttribute("stroke-width", String(t)), l.setAttribute("fill", "none"), a.push(l), a; -}, $B = function(r, e, t, n) { +}, KB = function(r, e, t, n) { var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0.3333333333333333, a = Math.atan2(e.y - r.y, e.x - r.x), o = { x: e.x + Math.cos(a) * (t * i), y: e.y + Math.sin(a) * (t * i) }; return { tip: o, base1: { x: o.x - t * Math.cos(a) + n / 2 * Math.sin(a), y: o.y - t * Math.sin(a) - n / 2 * Math.cos(a) }, base2: { x: o.x - t * Math.cos(a) - n / 2 * Math.sin(a), y: o.y - t * Math.sin(a) + n / 2 * Math.cos(a) }, angle: a }; }, IP = function(r, e, t) { @@ -76000,7 +76000,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho u === 0 || f !== i ? (a.length > 0 && n.push({ text: a, style: o }), a = c, o = f, i = f) : a += c, s += 1; } return a.length > 0 && n.push({ text: a, style: o }), n; -}, KB = function(r) { +}, ZB = function(r) { var e = r.nodeX, t = e === void 0 ? 0 : e, n = r.nodeY, i = n === void 0 ? 0 : n, a = r.iconXPos, o = r.iconYPos, s = r.iconSize, u = r.image, l = r.isDisabled, c = document.createElementNS("http://www.w3.org/2000/svg", "image"); c.setAttribute("x", String(t - a)), c.setAttribute("y", String(i - o)); var f = String(Math.floor(s)); @@ -76013,7 +76013,7 @@ function km(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, km(r); } -function ZB(r, e) { +function QB(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -76026,9 +76026,9 @@ function ZB(r, e) { function jw(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? ZB(Object(t), !0).forEach(function(n) { - y5(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : ZB(Object(t)).forEach(function(n) { + e % 2 ? QB(Object(t), !0).forEach(function(n) { + m5(r, n, t[n]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : QB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -76068,12 +76068,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function vG(r, e) { if (r) { - if (typeof r == "string") return v5(r, e); + if (typeof r == "string") return p5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? v5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? p5(r, e) : void 0; } } -function v5(r, e) { +function p5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -76094,14 +76094,14 @@ function pG() { return !!r; })(); } -function QB(r, e, t, n) { - var i = p5(Wm(r.prototype), e, t); +function JB(r, e, t, n) { + var i = g5(Wm(r.prototype), e, t); return typeof i == "function" ? function(a) { return i.apply(t, a); } : i; } -function p5() { - return p5 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function g5() { + return g5 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Wm(a)) !== null; ) ; return a; @@ -76110,19 +76110,19 @@ function p5() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, p5.apply(null, arguments); + }, g5.apply(null, arguments); } function Wm(r) { return Wm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Wm(r); } -function g5(r, e) { - return g5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function y5(r, e) { + return y5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, g5(r, e); + }, y5(r, e); } -function y5(r, e, t) { +function m5(r, e, t) { return (e = gG(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } function gG(r) { @@ -76143,7 +76143,7 @@ var LP = "svgRenderer", zse = (function() { var a, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; (function(u, l) { if (!(u instanceof l)) throw new TypeError("Cannot call a class as a function"); - })(this, r), y5(a = (function(u, l, c) { + })(this, r), m5(a = (function(u, l, c) { return l = Wm(l), (function(f, d) { if (d && (km(d) == "object" || typeof d == "function")) return d; if (d !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); @@ -76152,13 +76152,13 @@ var LP = "svgRenderer", zse = (function() { return h; })(f); })(u, pG() ? Reflect.construct(l, c || [], Wm(u).constructor) : l.apply(u, c)); - })(this, r, [i, LP, o]), "svg", void 0), y5(a, "measurementContext", void 0), a.svg = n; + })(this, r, [i, LP, o]), "svg", void 0), m5(a, "measurementContext", void 0), a.svg = n; var s = document.createElement("canvas"); return a.measurementContext = s.getContext("2d"), i.nodes.addChannel(LP), i.rels.addChannel(LP), a; } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && g5(n, i); + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && y5(n, i); })(r, aG), e = r, t = [{ key: "render", value: function(n, i) { var a, o, s, u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = this.state, c = this.arrowBundler, f = l.layout, d = l.zoom, h = l.panX, p = l.panY, g = l.nodes.idToPosition, y = (a = u.svg) !== null && a !== void 0 ? a : this.svg, b = y.clientWidth || ((o = y.width) === null || o === void 0 || (o = o.baseVal) === null || o === void 0 ? void 0 : o.value) || parseInt(y.getAttribute("width"), 10) || 500, _ = y.clientHeight || ((s = y.height) === null || s === void 0 || (s = s.baseVal) === null || s === void 0 ? void 0 : s.value) || parseInt(y.getAttribute("height"), 10) || 500, m = d, x = h, E = p; for (i && (m = 1, x = i.centerX, E = i.centerY); y.firstChild; ) y.removeChild(y.firstChild); @@ -76169,16 +76169,16 @@ var LP = "svgRenderer", zse = (function() { c.updatePositions(g); var S = document.createElementNS("http://www.w3.org/2000/svg", "g"); S.setAttribute("transform", this.getSvgTransform(b, _, m, x, E)); - var T = QB(r, "getRelationshipsToRender", this)([u.showCaptions, this.state.zoom]); + var T = JB(r, "getRelationshipsToRender", this)([u.showCaptions, this.state.zoom]); this.renderRelationships(T, S, f !== Zx); - var P = QB(r, "getNodesToRender", this)([n]); + var P = JB(r, "getNodesToRender", this)([n]); this.renderNodes(P, S, m), y.appendChild(S), this.needsRun = !1; } }, { key: "renderNodes", value: function(n, i, a) { var o, s = this, u = this.state, l = u.nodes.idToItem, c = u.disabledItemStyles, f = u.defaultNodeColor, d = u.nodeBorderStyles, h = NP(n); try { var p = function() { var g, y, b, _, m = o.value, x = jw(jw({}, l[m.id]), m); - if (!a5(x)) return 1; + if (!o5(x)) return 1; var E = document.createElementNS("http://www.w3.org/2000/svg", "g"); E.setAttribute("class", "node"), E.setAttribute("data-id", x.id); var O = $n(), S = (x.selected ? d.selected.rings : d.default.rings).map(function(Rt) { @@ -76210,18 +76210,18 @@ var LP = "svgRenderer", zse = (function() { B.f(); } } - var W = x.icon, $ = x.overlayIcon, J = T, X = 2 * J, Z = $D(J, a), ue = Z.nodeInfoLevel, re = Z.iconInfoLevel, ne = !!(!((b = x.captions) === null || b === void 0) && b.length || !((_ = x.caption) === null || _ === void 0) && _.length); + var W = x.icon, $ = x.overlayIcon, J = T, X = 2 * J, Z = KD(J, a), ue = Z.nodeInfoLevel, re = Z.iconInfoLevel, ne = !!(!((b = x.captions) === null || b === void 0) && b.length || !((_ = x.caption) === null || _ === void 0) && _.length); if (W) { - var le, ce = eG(J, ne, re, ue), pe = tG(ce, ne, (le = x.captionAlign) !== null && le !== void 0 ? le : "center", re, ue), fe = pe.iconXPos, se = pe.iconYPos, de = r5(I) === "#ffffff", ge = s.imageCache.getImage(W, de), Oe = KB({ nodeX: x.x, nodeY: x.y, iconXPos: fe, iconYPos: se, iconSize: ce, image: ge, isDisabled: x.disabled === !0 }); + var le, ce = eG(J, ne, re, ue), pe = tG(ce, ne, (le = x.captionAlign) !== null && le !== void 0 ? le : "center", re, ue), fe = pe.iconXPos, se = pe.iconYPos, de = n5(I) === "#ffffff", ge = s.imageCache.getImage(W, de), Oe = ZB({ nodeX: x.x, nodeY: x.y, iconXPos: fe, iconYPos: se, iconSize: ce, image: ge, isDisabled: x.disabled === !0 }); E.appendChild(Oe); } if ($ !== void 0) { - var ke, De, Ne, Ce, Y = rG(X, (ke = $.size) !== null && ke !== void 0 ? ke : 1), Q = (De = $.position) !== null && De !== void 0 ? De : [0, 0], ie = [(Ne = Q[0]) !== null && Ne !== void 0 ? Ne : 0, (Ce = Q[1]) !== null && Ce !== void 0 ? Ce : 0], we = nG(Y, J, ie), Ee = we.iconXPos, Me = we.iconYPos, Ie = s.imageCache.getImage($.url), Ye = KB({ nodeX: x.x, nodeY: x.y, iconXPos: Ee, iconYPos: Me, iconSize: Y, image: Ie, isDisabled: x.disabled === !0 }); + var ke, De, Ne, Ce, Y = rG(X, (ke = $.size) !== null && ke !== void 0 ? ke : 1), Q = (De = $.position) !== null && De !== void 0 ? De : [0, 0], ie = [(Ne = Q[0]) !== null && Ne !== void 0 ? Ne : 0, (Ce = Q[1]) !== null && Ce !== void 0 ? Ce : 0], we = nG(Y, J, ie), Ee = we.iconXPos, Me = we.iconYPos, Ie = s.imageCache.getImage($.url), Ye = ZB({ nodeX: x.x, nodeY: x.y, iconXPos: Ee, iconYPos: Me, iconSize: Y, image: Ie, isDisabled: x.disabled === !0 }); E.appendChild(Ye); } var ot = uG(x, a); if (ot.hasContent) { - var mt = ot.lines, wt = ot.stylesPerChar, Mt = ot.fontSize, Dt = ot.fontFace, vt = ot.yPos, tt = r5(x.color || f); + var mt = ot.lines, wt = ot.stylesPerChar, Mt = ot.fontSize, Dt = ot.fontFace, vt = ot.yPos, tt = n5(x.color || f); x.disabled && (tt = c.fontColor); for (var _e = 0, Ue = 0; Ue < mt.length; Ue++) { var Qe, Ze, nt, It = (Qe = mt[Ue].text) !== null && Qe !== void 0 ? Qe : "", ct = IP(It, wt, _e); @@ -76252,16 +76252,16 @@ var LP = "svgRenderer", zse = (function() { }).filter(function(Bt) { return Bt.width > 0; }) : []; - XB(j, z, k, H, h).forEach(function(Bt) { + $B(j, z, k, H, h).forEach(function(Bt) { return i.appendChild(Bt); }); - var q = $B(B.control2Point, B.endPoint, 9, 7, 2 / 9), W = y.disabled ? c.color : y.color || f; - if (YB(q, W, H, h).forEach(function(Bt) { + var q = KB(B.control2Point, B.endPoint, 9, 7, 2 / 9), W = y.disabled ? c.color : y.color || f; + if (XB(q, W, H, h).forEach(function(Bt) { return i.appendChild(Bt); }), P && (y.captions && y.captions.length > 0 || y.caption && y.caption.length > 0)) { var $, J = $n(), X = y.selected === !0, Z = X ? d.selected.rings : d.default.rings, ue = $q(B.apexPoint, B.angle, B.endPoint, B.control2Point, X, Z, y.width), re = ue.x, ne = ue.y, le = ue.angle, ce = (ue.flip, Jx(y)), pe = ce.length > 0 ? ($ = Qb(ce)) === null || $ === void 0 ? void 0 : $.fullCaption : ""; if (pe) { - var fe, se, de, ge, Oe = 40 * J, ke = (fe = y.captionSize) !== null && fe !== void 0 ? fe : 1, De = 6 * ke * J, Ne = s5, Ce = y.selected ? "bold" : "normal"; + var fe, se, de, ge, Oe = 40 * J, ke = (fe = y.captionSize) !== null && fe !== void 0 ? fe : 1, De = 6 * ke * J, Ne = u5, Ce = y.selected ? "bold" : "normal"; s.measurementContext.font = "".concat(Ce, " ").concat(De, "px ").concat(Ne); var Y = function(Bt) { return s.measurementContext.measureText(Bt).width; @@ -76284,7 +76284,7 @@ var LP = "svgRenderer", zse = (function() { } var Rt = (function(Bt) { return (function(hr) { - if (Array.isArray(hr)) return v5(hr); + if (Array.isArray(hr)) return p5(hr); })(Bt) || (function(hr) { if (typeof Symbol < "u" && hr[Symbol.iterator] != null || hr["@@iterator"] != null) return Array.from(hr); })(Bt) || vG(Bt) || (function() { @@ -76309,7 +76309,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }).filter(function(Bt) { return Bt.width > 0; }) : []; - XB(jt, Yt, k, sr, h).forEach(function(Bt) { + $B(jt, Yt, k, sr, h).forEach(function(Bt) { return i.appendChild(Bt); }); } else { @@ -76335,17 +76335,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); } if (vt.length > 1) { - var Xt = $B(nt, It, _e, Ue, Ze / _e), Vr = y.disabled ? c.color : y.color || f, Br = y.selected ? I.map(function(Bt) { + var Xt = KB(nt, It, _e, Ue, Ze / _e), Vr = y.disabled ? c.color : y.color || f, Br = y.selected ? I.map(function(Bt) { var hr; return { color: Bt.color, width: (hr = Bt.width) !== null && hr !== void 0 ? hr : 0 }; }).filter(function(Bt) { return Bt.width > 0; }) : []; - YB(Xt, Vr, Br, h).forEach(function(Bt) { + XB(Xt, Vr, Br, h).forEach(function(Bt) { return i.appendChild(Bt); }); } - var mr = Jx(y), ur = (Mt = y.captionSize) !== null && Mt !== void 0 ? Mt : 1, sn = 6 * ur * h, Fr = s5, un = (Dt = Qb(mr)) !== null && Dt !== void 0 ? Dt : { fullCaption: "", stylesPerChar: [] }, bn = un.fullCaption, wn = un.stylesPerChar; + var mr = Jx(y), ur = (Mt = y.captionSize) !== null && Mt !== void 0 ? Mt : 1, sn = 6 * ur * h, Fr = u5, un = (Dt = Qb(mr)) !== null && Dt !== void 0 ? Dt : { fullCaption: "", stylesPerChar: [] }, bn = un.fullCaption, wn = un.stylesPerChar; if (P && bn.length > 0) { var _n; s.measurementContext.font = "bold ".concat(sn, "px ").concat(Fr); @@ -76508,9 +76508,9 @@ function jP(r, e) { if (!t) { if (Array.isArray(r) || (t = (function(u, l) { if (u) { - if (typeof u == "string") return JB(u, l); + if (typeof u == "string") return e9(u, l); var c = {}.toString.call(u).slice(8, -1); - return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? JB(u, l) : void 0; + return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? e9(u, l) : void 0; } })(r)) || e) { t && (r = t); @@ -76541,7 +76541,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function JB(r, e) { +function e9(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -76568,7 +76568,7 @@ function wG(r) { })(r); return r1(e) == "symbol" ? e : e + ""; } -var iu = 24, e9 = (function() { +var iu = 24, t9 = (function() { return r = function t(n, i, a, o) { if ((function(s, u) { if (!(s instanceof u)) throw new TypeError("Cannot call a class as a function"); @@ -76816,7 +76816,7 @@ void main(void) { var b = Iw(d), _ = Iw(h), m = Iw(y); this.nodeShader.setUniform("u_selectedBorderColor", b), this.nodeShader.setUniform("u_selectedInnerBorderColor", _), this.nodeShader.setUniform("u_shadowColor", m); } }, { key: "setData", value: function(t) { - var n = FM(t.rels, this.disableRelColor); + var n = UM(t.rels, this.disableRelColor); this.setupNodeRendering(t.nodes), this.setupRelationshipRendering(n); } }, { key: "render", value: function(t) { var n = this.gl, i = this.idToIndex, a = this.posBuffer, o = this.posTexture; @@ -76866,7 +76866,7 @@ void main(void) { } l && (i.bindBuffer(i.ARRAY_BUFFER, s), i.bufferData(i.ARRAY_BUFFER, u, i.DYNAMIC_DRAW)); } }, { key: "updateRelationships", value: function(t) { - var n, i = FM(t, this.disableRelColor), a = this.gl, o = !1, s = jP(i); + var n, i = UM(t, this.disableRelColor), a = this.gl, o = !1, s = jP(i); try { for (s.s(); !(n = s.n()).done; ) { var u = n.value, l = u.key, c = u.width, f = u.color, d = u.disabled, h = this.relIdToIndex[l], p = (0, Hi.isNil)(f) ? this.defaultRelColor : f, g = kw(d ? this.disableRelColor : p); @@ -76886,9 +76886,9 @@ void main(void) { s.bindBuffer(s.ARRAY_BUFFER, this.viewportBoxBuffer), s.bufferData(s.ARRAY_BUFFER, new Float32Array(g), s.DYNAMIC_DRAW); } }, { key: "updateViewport", value: function(t, n, i) { var a = this.gl, o = 1 / t, s = n - a.drawingBufferWidth * o * 0.5, u = i - a.drawingBufferHeight * o * 0.5, l = a.drawingBufferWidth * o, c = a.drawingBufferHeight * o, f = Kx(), d = Gae * $n(); - $M(f, s, s + l, u + c, u, 0, 1e6), this.nodeShader.use(), this.nodeShader.setUniform("u_zoom", t), this.nodeShader.setUniform("u_glAdjust", d), this.nodeShader.setUniform("u_projection", f), this.nodeAnimShader.use(), this.nodeAnimShader.setUniform("u_zoom", t), this.nodeAnimShader.setUniform("u_glAdjust", d), this.nodeAnimShader.setUniform("u_projection", f), this.relShader.use(), this.relShader.setUniform("u_glAdjust", d), this.relShader.setUniform("u_projection", f), this.projection = f; + KM(f, s, s + l, u + c, u, 0, 1e6), this.nodeShader.use(), this.nodeShader.setUniform("u_zoom", t), this.nodeShader.setUniform("u_glAdjust", d), this.nodeShader.setUniform("u_projection", f), this.nodeAnimShader.use(), this.nodeAnimShader.setUniform("u_zoom", t), this.nodeAnimShader.setUniform("u_glAdjust", d), this.nodeAnimShader.setUniform("u_projection", f), this.relShader.use(), this.relShader.setUniform("u_glAdjust", d), this.relShader.setUniform("u_projection", f), this.projection = f; } }, { key: "setupViewportRendering", value: function() { - var t, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : GD; + var t, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : VD; this.viewportBoxBuffer = this.gl.createBuffer(), this.viewportBoxShader.use(), this.viewportBoxShader.setUniform("u_minimapViewportBoxColor", [(t = I1(n))[0] / 255, t[1] / 255, t[2] / 255, t[3]]); } }, { key: "setupNodeRendering", value: function(t) { var n = this.gl, i = new ArrayBuffer(8), a = new Uint32Array(i), o = new Uint8Array(i); @@ -76924,7 +76924,7 @@ void main(void) { })(); function Bw(r) { return (function(e) { - if (Array.isArray(e)) return b5(e); + if (Array.isArray(e)) return _5(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || xG(r) || (function() { @@ -76932,7 +76932,7 @@ function Bw(r) { In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); } -function m5(r, e) { +function b5(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = xG(r)) || e) { @@ -76966,12 +76966,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function xG(r, e) { if (r) { - if (typeof r == "string") return b5(r, e); + if (typeof r == "string") return _5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? b5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _5(r, e) : void 0; } } -function b5(r, e) { +function _5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -76984,7 +76984,7 @@ function n1(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, n1(r); } -function t9(r, e) { +function r9(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -76997,9 +76997,9 @@ function t9(r, e) { function Fw(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? t9(Object(t), !0).forEach(function(n) { + e % 2 ? r9(Object(t), !0).forEach(function(n) { Yse(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : t9(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : r9(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -77024,7 +77024,7 @@ var i1 = function() { for (var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 50, t = { minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 }, n = 0; n < r.length; n++) t.minX > r[n].x && (t.minX = r[n].x), t.minY > r[n].y && (t.minY = r[n].y), t.maxX < r[n].x && (t.maxX = r[n].x), t.maxY < r[n].y && (t.maxY = r[n].y); var i = (t.minX + t.maxX) / 2, a = (t.minY + t.maxY) / 2, o = 2 * e, s = $n() * o; return { centerX: i, centerY: a, nodesWidth: t.maxX - t.minX + o + s, nodesHeight: t.maxY - t.minY + o + s }; -}, _5 = function(r, e, t, n) { +}, w5 = function(r, e, t, n) { var i = 1 / 0, a = 1 / 0; return r > 1 && (i = t / r), e > 1 && (a = n / e), { zoomX: i, zoomY: a }; }, EG = function(r, e) { @@ -77092,7 +77092,7 @@ var $se = (function() { }); } }], e && Xse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), Kse = io(481), FP = io.n(Kse); +})(), Kse = ao(481), FP = ao.n(Kse); function s1(r) { return s1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -77122,12 +77122,12 @@ function OG(r) { })(r); return s1(e) == "symbol" ? e : e + ""; } -var r9 = 5e-5, Qse = (function() { +var n9 = 5e-5, Qse = (function() { return r = function t(n) { var i, a = this, o = n.state, s = n.getNodePositions, u = n.canvas; (function(l, c) { if (!(l instanceof c)) throw new TypeError("Cannot call a class as a function"); - })(this, t), sp(this, "xCtrl", void 0), sp(this, "yCtrl", void 0), sp(this, "zoomCtrl", void 0), sp(this, "getNodePositions", void 0), sp(this, "firstUpdate", void 0), sp(this, "state", void 0), sp(this, "canvas", void 0), sp(this, "stateDisposers", void 0), this.state = o, this.getNodePositions = s, this.canvas = u, this.xCtrl = new (FP())(0.35, r9, 0.05, 1), this.yCtrl = new (FP())(0.35, r9, 0.05, 1), this.zoomCtrl = new (FP())(0.3, 1e-5, 0.01, 1), this.stateDisposers = [], this.stateDisposers.push(o.autorun(function() { + })(this, t), sp(this, "xCtrl", void 0), sp(this, "yCtrl", void 0), sp(this, "zoomCtrl", void 0), sp(this, "getNodePositions", void 0), sp(this, "firstUpdate", void 0), sp(this, "state", void 0), sp(this, "canvas", void 0), sp(this, "stateDisposers", void 0), this.state = o, this.getNodePositions = s, this.canvas = u, this.xCtrl = new (FP())(0.35, n9, 0.05, 1), this.yCtrl = new (FP())(0.35, n9, 0.05, 1), this.zoomCtrl = new (FP())(0.3, 1e-5, 0.01, 1), this.stateDisposers = [], this.stateDisposers.push(o.autorun(function() { o.fitNodeIds === null && (a.xCtrl.reset(), a.yCtrl.reset(), a.zoomCtrl.reset()); })), this.stateDisposers.push(o.autorun(function() { i !== o.fitNodeIds && (i = o.fitNodeIds, a.firstUpdate = !0); @@ -77152,7 +77152,7 @@ var r9 = 5e-5, Qse = (function() { if (isNaN(x) || isNaN(E)) return bi.info("fit() function couldn't calculate center point, not updating viewport"), !1; var T = n.noPan, P = n.outOnly, I = n.minZoom, k = n.maxZoom; o.setTarget(T ? h : x), s.setTarget(T ? p : E); - var L = _5(O, S, i, a), B = L.zoomX, j = L.zoomY; + var L = w5(O, S, i, a), B = L.zoomX, j = L.zoomY; if (B === 1 / 0 && j === 1 / 0) u.setTarget(b); else { var z = EG(B, j, I, k); @@ -77160,7 +77160,7 @@ var r9 = 5e-5, Qse = (function() { } return !0; } }, { key: "allNodesAreVisible", value: function(t, n, i) { - var a = _5(n, i, this.canvas.width, this.canvas.height), o = a.zoomX, s = a.zoomY; + var a = w5(n, i, this.canvas.width, this.canvas.height), o = a.zoomX, s = a.zoomY; return t < o && t < s; } }, { key: "reset", value: function(t, n) { var i = this.xCtrl, a = this.yCtrl, o = this.zoomCtrl, s = this.state, u = this.firstUpdate, l = this.canvas, c = s.zoom, f = s.panX, d = s.panY, h = s.nodes, p = s.maxNodeRadius, g = s.defaultZoomLevel; @@ -77271,7 +77271,7 @@ function tf(r, e, t, n) { o ? i ? i(a, o, { value: s, enumerable: !u, configurable: !u, writable: !u }) : a[o] = s : (l("next", 0), l("throw", 1), l("return", 2)); }, tf(r, e, t, n); } -function n9(r, e, t, n, i, a, o) { +function i9(r, e, t, n, i, a, o) { try { var s = r[a](o), u = s.value; } catch (l) { @@ -77279,27 +77279,27 @@ function n9(r, e, t, n, i, a, o) { } s.done ? e(u) : Promise.resolve(u).then(n, i); } -function i9(r) { +function a9(r) { return function() { var e = this, t = arguments; return new Promise(function(n, i) { var a = r.apply(e, t); function o(u) { - n9(a, n, i, o, s, "next", u); + i9(a, n, i, o, s, "next", u); } function s(u) { - n9(a, n, i, o, s, "throw", u); + i9(a, n, i, o, s, "throw", u); } o(void 0); }); }; } -function a9(r, e) { +function o9(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function o9(r, e) { +function s9(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -77312,9 +77312,9 @@ function o9(r, e) { function no(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? o9(Object(t), !0).forEach(function(n) { + e % 2 ? s9(Object(t), !0).forEach(function(n) { dn(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : o9(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : s9(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -77342,7 +77342,7 @@ function TG(r) { })(r); return u1(e) == "symbol" ? e : e + ""; } -var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: "rgba(0,0,0,0)" }, up = "onError", s9 = "onLayoutDone", u9 = "onLayoutStep", s2 = {}, ob = function() { +var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: "rgba(0,0,0,0)" }, up = "onError", u9 = "onLayoutDone", l9 = "onLayoutStep", s2 = {}, ob = function() { var r; return (r = s2[arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "default"]) !== null && r !== void 0 ? r : Object.values(s2).pop(); }, eue = (function() { @@ -77363,15 +77363,15 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: var T = AP(S, this.onWebGLContextLost.bind(this)), P = AP(h, this.onWebGLContextLost.bind(this)); if (T.setAttribute("data-testid", "nvl-gl-canvas"), O) this.glController = new Vse(); else { - var I = _B(T), k = _B(P); - this.glController = new Gse({ mainSceneRenderer: new e9(I, x, E, this.state), minimapRenderer: new e9(k, x, E, this.state), state: a }), this.webGLContext = I, this.webGLMinimapContext = k; + var I = wB(T), k = wB(P); + this.glController = new Gse({ mainSceneRenderer: new t9(I, x, E, this.state), minimapRenderer: new t9(k, x, E, this.state), state: a }), this.webGLContext = I, this.webGLMinimapContext = k; } var L = AP(S, this.onWebGLContextLost.bind(this)); L.setAttribute("data-testid", "nvl-c2d-canvas"); var B = L.getContext("2d"), j = document.createElementNS("http://www.w3.org/2000/svg", "svg"); - Object.assign(j.style, no(no({}, BM), {}, { overflow: "hidden", width: "100%", height: "100%" })), S.appendChild(j); + Object.assign(j.style, no(no({}, FM), {}, { overflow: "hidden", width: "100%", height: "100%" })), S.appendChild(j); var z = document.createElement("div"); - Object.assign(z.style, no(no({}, BM), {}, { overflow: "hidden" })), S.appendChild(z), this.htmlOverlay = z, this.hasResized = !0, this.hierarchicalLayout = new Xoe(no(no({}, p), {}, { state: this.state })), this.gridLayout = new Noe({ state: this.state }), this.freeLayout = new Doe({ state: this.state }), this.d3ForceLayout = new poe({ state: this.state }), this.circularLayout = new $ae(no(no({}, p), {}, { state: this.state })), this.forceLayout = O ? this.d3ForceLayout : new Roe(no(no({}, p), {}, { webGLContext: this.webGLContext, state: this.state })), this.state.setLayout(g), this.state.setLayoutOptions(p), this.canvasRenderer = new Bse(L, B, a, s), this.svgRenderer = new zse(j, a, s), this.glCanvas = T, this.canvasRect = T.getBoundingClientRect(), this.glMinimapCanvas = P, this.c2dCanvas = L, this.svg = j; + Object.assign(z.style, no(no({}, FM), {}, { overflow: "hidden" })), S.appendChild(z), this.htmlOverlay = z, this.hasResized = !0, this.hierarchicalLayout = new Xoe(no(no({}, p), {}, { state: this.state })), this.gridLayout = new Noe({ state: this.state }), this.freeLayout = new Doe({ state: this.state }), this.d3ForceLayout = new poe({ state: this.state }), this.circularLayout = new $ae(no(no({}, p), {}, { state: this.state })), this.forceLayout = O ? this.d3ForceLayout : new Roe(no(no({}, p), {}, { webGLContext: this.webGLContext, state: this.state })), this.state.setLayout(g), this.state.setLayoutOptions(p), this.canvasRenderer = new Bse(L, B, a, s), this.svgRenderer = new zse(j, a, s), this.glCanvas = T, this.canvasRect = T.getBoundingClientRect(), this.glMinimapCanvas = P, this.c2dCanvas = L, this.svg = j; var H = a.renderer; this.glCanvas.style.opacity = H === Mg ? "1" : "0", this.c2dCanvas.style.opacity = H === fp ? "1" : "0", this.svg.style.opacity = H === am ? "1" : "0", this.isInRenderSwitchAnimation = !1, this.justSwitchedRenderer = !1, this.justSwitchedLayout = !1, this.hasResized = !1, this.layoutUpdating = !1, this.layoutComputing = !1, this.isRenderingDisabled = !1, x.addChannel(Uw), E.addChannel(Uw), this.setRenderSwitchAnimation = function() { f.isInRenderSwitchAnimation = !1; @@ -77396,9 +77396,9 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: q !== (f.glCanvas.style.opacity === "1" ? Mg : f.c2dCanvas.style.opacity === "1" ? fp : f.svg.style.opacity === "1" ? am : fp) && (f.justSwitchedRenderer = !0, f.glCanvas.style.opacity = q === Mg ? "1" : "0", f.c2dCanvas.style.opacity = q === fp ? "1" : "0", f.svg.style.opacity = q === am ? "1" : "0"); })), this.startMainLoop(), this.zoomTransitionHandler = new Qse({ state: a, getNodePositions: function(q) { return f.currentLayout.getNodePositions(q); - }, canvas: T }), this.layoutTimeLimit = (c = s.layoutTimeLimit) !== null && c !== void 0 ? c : 16, this.pixelRatio = $n(), this.removeResizeListener = M8()(S, function() { + }, canvas: T }), this.layoutTimeLimit = (c = s.layoutTimeLimit) !== null && c !== void 0 ? c : 16, this.pixelRatio = $n(), this.removeResizeListener = D8()(S, function() { fx(T), fx(L), f.canvasRect = T.getBoundingClientRect(), f.hasResized = !0; - }), this.removeMinimapResizeListener = M8()(h, function() { + }), this.removeMinimapResizeListener = D8()(h, function() { fx(P); }), s2[b] = this, window.__Nvl_dumpNodes = function(q) { var W; @@ -77408,7 +77408,7 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: return (W = ob(q)) === null || W === void 0 ? void 0 : W.dumpRelationships(); }, window.__Nvl_registerDoneCallback = function(q, W) { var $; - return ($ = ob(W)) === null || $ === void 0 ? void 0 : $.on(s9, q); + return ($ = ob(W)) === null || $ === void 0 ? void 0 : $.on(u9, q); }, window.__Nvl_getNodesOnScreen = function(q) { var W; return (W = ob(q)) === null || W === void 0 ? void 0 : W.getNodesOnScreen(); @@ -77419,7 +77419,7 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: }, e = [{ key: "onWebGLContextLost", value: function(i) { this.callIfRegistered("onWebGLContextLost", i); } }, { key: "updateMinimapZoom", value: function() { - var i = this.state, a = i.nodes, o = i.maxNodeRadius, s = i.maxMinimapZoom, u = i.minMinimapZoom, l = i1(Object.values(a.idToPosition), o), c = l.centerX, f = l.centerY, d = l.nodesWidth, h = l.nodesHeight, p = _5(d, h, this.glMinimapCanvas.width, this.glMinimapCanvas.height), g = p.zoomX, y = p.zoomY, b = EG(g, y, u, s); + var i = this.state, a = i.nodes, o = i.maxNodeRadius, s = i.maxMinimapZoom, u = i.minMinimapZoom, l = i1(Object.values(a.idToPosition), o), c = l.centerX, f = l.centerY, d = l.nodesWidth, h = l.nodesHeight, p = w5(d, h, this.glMinimapCanvas.width, this.glMinimapCanvas.height), g = p.zoomX, y = p.zoomY, b = EG(g, y, u, s); this.state.updateMinimapZoomToFit(b, c, f); } }, { key: "startMainLoop", value: function() { var i = this, a = this.state, o = a.nodes, s = a.rels; @@ -77455,7 +77455,7 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: return i.callIfRegistered("onZoomTransitionDone"); }), S && i.glController.onResize(); var k = i.currentLayout.getNodePositions(o.items); - if (o.updatePositions(k), i.callbacks.isCallbackRegistered(u9) && i.callIfRegistered(u9, i.dumpNodes()), i.updateMinimapZoom(), i.glController.renderMinimap(k), !i.isRenderingDisabled) { + if (o.updatePositions(k), i.callbacks.isCallbackRegistered(l9) && i.callIfRegistered(l9, i.dumpNodes()), i.updateMinimapZoom(), i.glController.renderMinimap(k), !i.isRenderingDisabled) { var L = i.state.renderer; if ((L === Mg || O) && i.glController.renderMainScene(k), L === fp || L === am || O) { i.canvasRenderer.processUpdates(), i.canvasRenderer.render(k); @@ -77478,7 +77478,7 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: } } var Ne = !h && i.layoutUpdating, Ce = p !== i.layoutComputing; - i.layoutComputing = p, i.layoutUpdating = h, Ne && i.callIfRegistered(s9), Ce && i.callIfRegistered("onLayoutComputing", p), i.justSwitchedRenderer = !1, i.hasResized = !1, c !== void 0 && c(); + i.layoutComputing = p, i.layoutUpdating = h, Ne && i.callIfRegistered(u9), Ce && i.callIfRegistered("onLayoutComputing", p), i.justSwitchedRenderer = !1, i.hasResized = !1, c !== void 0 && c(); } })(function() { i.animationRequestId = window.requestAnimationFrame(l); @@ -77497,9 +77497,9 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: if (!p) { if (Array.isArray(d) || (p = (function(x, E) { if (x) { - if (typeof x == "string") return a9(x, E); + if (typeof x == "string") return o9(x, E); var O = {}.toString.call(x).slice(8, -1); - return O === "Object" && x.constructor && (O = x.constructor.name), O === "Map" || O === "Set" ? Array.from(x) : O === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O) ? a9(x, E) : void 0; + return O === "Object" && x.constructor && (O = x.constructor.name), O === "Map" || O === "Set" ? Array.from(x) : O === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O) ? o9(x, E) : void 0; } })(d)) || h) { p && (d = p); @@ -77568,7 +77568,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho I !== void 0 && k !== void 0 && I > b && I < _ && k > m && k < x && E.push(P); } if (p.includes("relationship")) { - var L, B = m5(y.items); + var L, B = b5(y.items); try { for (B.s(); !(L = B.n()).done; ) { var j = L.value, z = j.from, H = j.to, q = g.idToPosition[z], W = g.idToPosition[H]; @@ -77625,7 +77625,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this.destroyed; } }, { key: "destroy", value: function() { var i; - this.destroyed || (this.animationRequestId && window.cancelAnimationFrame(this.animationRequestId), this.layoutRunner !== void 0 && window.clearInterval(this.layoutRunner), this.glController.destroy(), this.glCanvas.removeEventListener("transitionend", this.setRenderSwitchAnimation), this.webGLContext !== void 0 && wB(this.webGLContext), this.webGLMinimapContext !== void 0 && wB(this.webGLMinimapContext), om(this.glCanvas), om(this.glMinimapCanvas), this.canvasRenderer.destroy(), om(this.c2dCanvas), i5.clear(), this.svgRenderer.destroy(), this.svg.remove(), this.removeResizeListener(), this.removeMinimapResizeListener(), this.forceLayout.destroy(), this.hierarchicalLayout.destroy(), this.gridLayout.destroy(), this.freeLayout.destroy(), this.circularLayout.destroy(), this.htmlOverlay.remove(), this.descriptionElement.remove(), this.zoomTransitionHandler.destroy(), this.stateDisposers.forEach(function(a) { + this.destroyed || (this.animationRequestId && window.cancelAnimationFrame(this.animationRequestId), this.layoutRunner !== void 0 && window.clearInterval(this.layoutRunner), this.glController.destroy(), this.glCanvas.removeEventListener("transitionend", this.setRenderSwitchAnimation), this.webGLContext !== void 0 && xB(this.webGLContext), this.webGLMinimapContext !== void 0 && xB(this.webGLMinimapContext), om(this.glCanvas), om(this.glMinimapCanvas), this.canvasRenderer.destroy(), om(this.c2dCanvas), a5.clear(), this.svgRenderer.destroy(), this.svg.remove(), this.removeResizeListener(), this.removeMinimapResizeListener(), this.forceLayout.destroy(), this.hierarchicalLayout.destroy(), this.gridLayout.destroy(), this.freeLayout.destroy(), this.circularLayout.destroy(), this.htmlOverlay.remove(), this.descriptionElement.remove(), this.zoomTransitionHandler.destroy(), this.stateDisposers.forEach(function(a) { a(); }), i = this.instanceId, delete s2[i], this.destroyed = !0); } }, { key: "callIfRegistered", value: function() { @@ -77660,7 +77660,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, { key: "saveToFile", value: function(i) { var a = no(no({}, ab), i), o = this.createCanvasAndRenderImage(this.c2dCanvas.width, this.c2dCanvas.height, a.backgroundColor); this.initiateFileDownload(a.filename, o), om(o), o = null; - } }, { key: "saveToSvg", value: (n = i9(Cb().m(function i() { + } }, { key: "saveToSvg", value: (n = a9(Cb().m(function i() { var a, o, s, u, l, c, f, d, h, p, g, y, b, _ = arguments; return Cb().w(function(m) { for (; ; ) switch (m.p = m.n) { @@ -77716,7 +77716,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return c.getContext("2d"); })(s), l = this.updateLayoutAndPositions(); return this.canvasRenderer.processUpdates(), this.canvasRenderer.render(l, { canvas: s, context: u, backgroundColor: o, ignoreAnimations: !0, showCaptions: !0 }), s; - } }, { key: "saveFullGraphToLargeFile", value: (t = i9(Cb().m(function i(a) { + } }, { key: "saveFullGraphToLargeFile", value: (t = a9(Cb().m(function i(a) { var o, s, u, l, c; return Cb().w(function(f) { for (; ; ) switch (f.p = f.n) { @@ -77750,9 +77750,9 @@ function hE(r, e) { if (!t) { if (Array.isArray(r) || (t = (function(u, l) { if (u) { - if (typeof u == "string") return l9(u, l); + if (typeof u == "string") return c9(u, l); var c = {}.toString.call(u).slice(8, -1); - return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? l9(u, l) : void 0; + return c === "Object" && u.constructor && (c = u.constructor.name), c === "Map" || c === "Set" ? Array.from(u) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? c9(u, l) : void 0; } })(r)) || e) { t && (r = t); @@ -77783,7 +77783,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function l9(r, e) { +function c9(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -77907,7 +77907,7 @@ function lue(r) { r.appendChild(t); } } -var c9 = function() { +var f9 = function() { return { idToItem: ka.shallow({}), items: ka.shallow([]), channels: ka.shallow({}), idToPosition: ka.shallow({}), idToHtmlOverlay: ka.shallow({}), version: 0, addChannel: ta(rue), removeChannel: ta(nue), clearChannel: ta(iue), add: ta(aue), update: ta(oue), remove: ta(sue), updatePositions: ta(uue), updateHtmlOverlay: ta(lue) }; }; function l1(r) { @@ -77917,7 +77917,7 @@ function l1(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, l1(r); } -function f9(r, e) { +function d9(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -77927,12 +77927,12 @@ function f9(r, e) { } return t; } -function d9(r) { +function h9(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? f9(Object(t), !0).forEach(function(n) { + e % 2 ? d9(Object(t), !0).forEach(function(n) { cue(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : f9(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : d9(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -77955,9 +77955,9 @@ function cue(r, e, t) { } var fue = function(r) { var e = r.minZoom, t = r.maxZoom, n = r.allowDynamicMinZoom, i = n === void 0 || n, a = r.layout, o = r.layoutOptions, s = r.styling, u = s === void 0 ? {} : s, l = r.panX, c = l === void 0 ? 0 : l, f = r.panY, d = f === void 0 ? 0 : f, h = r.initialZoom, p = r.renderer, g = p === void 0 ? fp : p, y = r.disableWebGL, b = y !== void 0 && y, _ = r.disableWebWorkers, m = _ !== void 0 && _, x = r.disableTelemetry, E = x !== void 0 && x; - Sz(!0), qD.isolateGlobalState(); + Sz(!0), GD.isolateGlobalState(); var O = (function(j) { - var z = j.nodeDefaultBorderColor, H = j.selectedBorderColor, q = j.disabledItemColor, W = j.disabledItemFontColor, $ = j.selectedInnerBorderColor, J = j.dropShadowColor, X = j.defaultNodeColor, Z = j.defaultRelationshipColor, ue = j.minimapViewportBoxColor, re = CP({}, yB.default), ne = CP({}, yB.selected), le = CP({}, mB.selected), ce = { color: lq, fontColor: "#DDDDDD" }, pe = uq, fe = "#FFDF81"; + var z = j.nodeDefaultBorderColor, H = j.selectedBorderColor, q = j.disabledItemColor, W = j.disabledItemFontColor, $ = j.selectedInnerBorderColor, J = j.dropShadowColor, X = j.defaultNodeColor, Z = j.defaultRelationshipColor, ue = j.minimapViewportBoxColor, re = CP({}, mB.default), ne = CP({}, mB.selected), le = CP({}, bB.selected), ce = { color: lq, fontColor: "#DDDDDD" }, pe = uq, fe = "#FFDF81"; return ip($, function(se) { ne.rings[0].color = se, le.rings[0].color = se; }, "selectedInnerBorderColor"), ip(H, function(se) { @@ -77988,12 +77988,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho fe = se; }, "defaultNodeColor"), ip(Z, function(se) { pe = se; - }, "defaultRelationshipColor"), { nodeBorderStyles: { default: re, selected: ne }, relationshipBorderStyles: { default: mB.default, selected: le }, disabledItemStyles: ce, defaultNodeColor: fe, defaultRelationshipColor: pe, minimapViewportBoxColor: ue || GD }; + }, "defaultRelationshipColor"), { nodeBorderStyles: { default: re, selected: ne }, relationshipBorderStyles: { default: bB.default, selected: le }, disabledItemStyles: ce, defaultNodeColor: fe, defaultRelationshipColor: pe, minimapViewportBoxColor: ue || VD }; })(u), S = O.nodeBorderStyles, T = O.relationshipBorderStyles, P = O.disabledItemStyles, I = O.defaultNodeColor, k = O.defaultRelationshipColor, L = O.minimapViewportBoxColor, B = ka({ zoom: h || SP, minimapZoom: SP, defaultZoomLevel: SP, panX: c, panY: d, minimapPanX: 0, minimapPanY: 0, fitNodeIds: [], resetZoom: !1, zoomOptions: OP, forceWebGL: !1, renderer: g, disableWebGL: b, disableWebWorkers: m, disableTelemetry: E, fitMovement: 0, layout: a, layoutOptions: o, maxDistance: 0, maxNodeRadius: 50, nodeBorderStyles: S, minZoom: (0, Hi.isNil)(e) ? 0.075 : e, maxZoom: (0, Hi.isNil)(t) ? 10 : t, relationshipBorderStyles: T, disabledItemStyles: P, defaultNodeColor: I, defaultRelationshipColor: k, minimapViewportBoxColor: L, get minMinimapZoom() { return 0; }, get maxMinimapZoom() { return 0.2; - }, nodes: c9(), rels: c9(), graphUpdates: 0, waypoints: { data: ka.shallow({}), counter: 0 }, setGraphUpdated: ta(function() { + }, nodes: f9(), rels: f9(), graphUpdates: 0, waypoints: { data: ka.shallow({}), counter: 0 }, setGraphUpdated: ta(function() { this.graphUpdates += 1; }), setRenderer: ta(function(j) { ta(function() { @@ -78024,7 +78024,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.layoutOptions = j; }), fitNodes: ta(function(j) { var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - this.fitNodeIds = (0, Hi.intersection)(j, (0, Hi.map)(this.nodes.items, "id")), this.zoomOptions = d9(d9({}, OP), z); + this.fitNodeIds = (0, Hi.intersection)(j, (0, Hi.map)(this.nodes.items, "id")), this.zoomOptions = h9(h9({}, OP), z); }), setZoomReset: ta(function() { this.resetZoom = !0; }), clearFit: ta(function() { @@ -78044,7 +78044,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return B; }, due = function(r) { return !!r && typeof r.id == "string" && r.id.length > 0; -}, zw = io(1187); +}, zw = ao(1187); function c1(r) { return c1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -78052,7 +78052,7 @@ function c1(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, c1(r); } -function h9(r, e) { +function v9(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -78062,12 +78062,12 @@ function h9(r, e) { } return t; } -function v9(r) { +function p9(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? h9(Object(t), !0).forEach(function(n) { + e % 2 ? v9(Object(t), !0).forEach(function(n) { hue(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : h9(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : v9(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -78088,7 +78088,7 @@ function hue(r, e, t) { return c1(i) == "symbol" ? i : i + ""; })(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } -function p9(r) { +function g9(r) { return (function(e) { if (Array.isArray(e)) return UP(e); })(r) || (function(e) { @@ -78111,7 +78111,7 @@ function UP(r, e) { } var zP = function(r) { return { id: r.elementId }; -}, g9 = function(r) { +}, y9 = function(r) { return { id: r.elementId, from: r.startNodeElementId, to: r.endNodeElementId }; }; zw.resultTransformers.mappedResultTransformer({ map: function(r) { @@ -78119,16 +78119,16 @@ zw.resultTransformers.mappedResultTransformer({ map: function(r) { }, collect: function(r) { var e = { nodes: [], relationships: [] }, t = /* @__PURE__ */ new Map(); return (function(n) { - for (var i = p9(n), a = []; i.length; ) { + for (var i = g9(n), a = []; i.length; ) { var o = i.pop(); - Array.isArray(o) ? i.push.apply(i, p9(o)) : a.push(o); + Array.isArray(o) ? i.push.apply(i, g9(o)) : a.push(o); } return a; })(r).forEach(function(n) { (0, zw.isNode)(n) ? (e.nodes.push(zP(n)), t.set(n.elementId, n)) : (0, zw.isPath)(n) ? n.segments.forEach(function(i) { - e.nodes.push(zP(i.start)), e.nodes.push(zP(i.end)), e.relationships.push(g9(i.relationship)), t.set(i.start.elementId, i.start), t.set(i.end.elementId, i.end), t.set(i.relationship.elementId, i.relationship); - }) : (0, zw.isRelationship)(n) && (e.relationships.push(g9(n)), t.set(n.elementId, n)); - }), v9(v9({}, e), {}, { recordObjectMap: t }); + e.nodes.push(zP(i.start)), e.nodes.push(zP(i.end)), e.relationships.push(y9(i.relationship)), t.set(i.start.elementId, i.start), t.set(i.end.elementId, i.end), t.set(i.relationship.elementId, i.relationship); + }) : (0, zw.isRelationship)(n) && (e.relationships.push(y9(n)), t.set(n.elementId, n)); + }), p9(p9({}, e), {}, { recordObjectMap: t }); } }); function f1(r) { return f1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -78137,7 +78137,7 @@ function f1(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, f1(r); } -function w5(r, e) { +function x5(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = AG(r)) || e) { @@ -78171,17 +78171,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function AG(r, e) { if (r) { - if (typeof r == "string") return y9(r, e); + if (typeof r == "string") return m9(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? y9(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? m9(r, e) : void 0; } } -function y9(r, e) { +function m9(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function m9(r, e) { +function b9(r, e) { var t = Object.keys(r); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(r); @@ -78194,9 +78194,9 @@ function m9(r, e) { function Ds(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? m9(Object(t), !0).forEach(function(n) { + e % 2 ? b9(Object(t), !0).forEach(function(n) { vue(r, n, t[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : m9(Object(t)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : b9(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } @@ -78247,10 +78247,10 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = if (!(u instanceof l)) throw new TypeError("Cannot call a class as a function"); })(this, t), (function(u, l) { PG(u, l), l.add(u); - })(this, Qc), um(this, u2, void 0), um(this, In, void 0), um(this, mi, void 0), um(this, wd, void 0), um(this, mm, void 0), um(this, gue, void 0), o.disableTelemetry, Oc(Qc, this, mue).call(this, o), d1(u2, this, new zae(s)), d1(wd, this, o), d1(mm, this, n), this.checkWebGLCompatibility(), Oc(Qc, this, b9).call(this, i, a, o); + })(this, Qc), um(this, u2, void 0), um(this, In, void 0), um(this, mi, void 0), um(this, wd, void 0), um(this, mm, void 0), um(this, gue, void 0), o.disableTelemetry, Oc(Qc, this, mue).call(this, o), d1(u2, this, new zae(s)), d1(wd, this, o), d1(mm, this, n), this.checkWebGLCompatibility(), Oc(Qc, this, _9).call(this, i, a, o); }, e = [{ key: "restart", value: function() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], i = this.getNodePositions(), a = Vt(In, this), o = a.zoom, s = a.layout, u = a.layoutOptions, l = a.nodes, c = a.rels; - Vt(mi, this).destroy(), Object.assign(Vt(wd, this), t), Oc(Qc, this, b9).call(this, l.items, c.items, Vt(wd, this)), this.setZoom(o), this.setLayout(s), this.setLayoutOptions(u), this.addAndUpdateElementsInGraph(l.items, c.items), n && this.setNodePositions(i); + Vt(mi, this).destroy(), Object.assign(Vt(wd, this), t), Oc(Qc, this, _9).call(this, l.items, c.items, Vt(wd, this)), this.setZoom(o), this.setLayout(s), this.setLayoutOptions(u), this.addAndUpdateElementsInGraph(l.items, c.items), n && this.setNodePositions(i); } }, { key: "addAndUpdateElementsInGraph", value: function() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []; Oc(Qc, this, qP).call(this, t), Oc(Qc, this, GP).call(this, n, t); @@ -78280,7 +78280,7 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = Vt(In, this).nodes.add(t, Ds({}, i)), Vt(In, this).rels.add(n, Ds({}, i)), Vt(mi, this).updateHtmlOverlay(); } }, { key: "removeNodesWithIds", value: function(t) { if (Array.isArray(t) && !(0, Hi.isEmpty)(t)) { - var n, i = {}, a = w5(t); + var n, i = {}, a = x5(t); try { for (a.s(); !(n = a.n()).done; ) i[n.value] = !0; } catch (c) { @@ -78288,7 +78288,7 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = } finally { a.f(); } - var o, s = [], u = w5(Vt(In, this).rels.items); + var o, s = [], u = x5(Vt(In, this).rels.items); try { for (u.s(); !(o = u.n()).done; ) { var l = o.value; @@ -78299,10 +78299,10 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = } finally { u.f(); } - s.length > 0 && Oc(Qc, this, _9).call(this, s), Oc(Qc, this, bue).call(this, t), Vt(In, this).setGraphUpdated(), Vt(mi, this).updateHtmlOverlay(); + s.length > 0 && Oc(Qc, this, w9).call(this, s), Oc(Qc, this, bue).call(this, t), Vt(In, this).setGraphUpdated(), Vt(mi, this).updateHtmlOverlay(); } } }, { key: "removeRelationshipsWithIds", value: function(t) { - Array.isArray(t) && !(0, Hi.isEmpty)(t) && (Oc(Qc, this, _9).call(this, t), Vt(In, this).setGraphUpdated(), Vt(mi, this).updateHtmlOverlay()); + Array.isArray(t) && !(0, Hi.isEmpty)(t) && (Oc(Qc, this, w9).call(this, t), Vt(In, this).setGraphUpdated(), Vt(mi, this).updateHtmlOverlay()); } }, { key: "getNodes", value: function() { return Vt(mi, this).dumpNodes(); } }, { key: "getRelationships", value: function() { @@ -78379,7 +78379,7 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["node", "relationship"], i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { hitNodeMarginWidth: 0 }, a = Vt(In, this), o = a.zoom, s = a.panX, u = a.panY, l = a.renderer, c = yG(t, Vt(mm, this), o, s, u), f = c.x, d = c.y, h = l === Mg ? (function(p, g, y) { var b = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ["node", "relationship"], _ = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {}, m = [], x = [], E = y.nodes, O = y.rels; return b.includes("node") && m.push.apply(m, Bw((function(S, T) { - var P, I = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, L = [], B = m5(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []); + var P, I = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, L = [], B = b5(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []); try { var j = function() { var z, H = P.value, q = I[H.id]; @@ -78400,14 +78400,14 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = } return L; })(p, g, E.items, E.idToPosition, _.hitNodeMarginWidth))), b.includes("relationship") && x.push.apply(x, Bw((function(S, T) { - var P, I = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = [], L = {}, B = m5(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []); + var P, I = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = [], L = {}, B = b5(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []); try { var j = function() { var z = P.value, H = z.from, q = z.to; if (L["".concat(H, ".").concat(q)] === void 0) { var W = I[H], $ = I[q]; if ((W == null ? void 0 : W.x) === void 0 || W.y === void 0 || ($ == null ? void 0 : $.x) === void 0 || $.y === void 0) return 0; - var J = XD({ x: W.x, y: W.y }, { x: $.x, y: $.y }, { x: S, y: T }); + var J = $D({ x: W.x, y: W.y }, { x: $.x, y: $.y }, { x: S, y: T }); if (J <= Wse) { var X = k.findIndex(function(Z) { return Z.distance > J; @@ -78452,10 +78452,10 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = } }], e && pue(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); -function b9() { +function _9() { var r, e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; d1(In, this, fue(i)), i.minimapContainer instanceof HTMLElement || delete i.minimapContainer, d1(mi, this, new eue(Vt(In, this), Vt(mm, this), i)), this.addAndUpdateElementsInGraph(t, n), Vt(mi, this).on("restart", this.restart.bind(this)); - var a, o, s = w5((a = Vt(u2, this).callbacks, Object.entries(a))); + var a, o, s = x5((a = Vt(u2, this).callbacks, Object.entries(a))); try { var u = function() { var l, c, f = (l = o.value, c = 2, (function(p) { @@ -78520,7 +78520,7 @@ function bue(r) { return !e.includes(a); })); } -function _9(r) { +function w9(r) { var e = Array.isArray(r) ? r : [r]; Vt(In, this).rels.remove(e, { removed: !1 }); } @@ -78560,9 +78560,9 @@ function GP(r) { } if (n !== null) throw new TypeError("Invalid relationship provided: ".concat(JSON.stringify(n), ".").concat(t)); } -const w9 = yue, _ue = "NVL_basic-wrapper", wue = "NVL_interactive-wrapper"; +const x9 = yue, _ue = "NVL_basic-wrapper", wue = "NVL_interactive-wrapper"; var ss = Sa(); -const x9 = (r, e) => { +const E9 = (r, e) => { const t = ss.keyBy(r, "id"), n = ss.keyBy(e, "id"), i = ss.sortBy(ss.keys(t)), a = ss.sortBy(ss.keys(n)), o = [], s = [], u = []; let l = 0, c = 0; for (; l < i.length && c < a.length; ) { @@ -78597,7 +78597,7 @@ const x9 = (r, e) => { me.useEffect(r, e.map(Sue)); }, Tue = me.memo(me.forwardRef(({ nodes: r, rels: e, layout: t, layoutOptions: n, nvlCallbacks: i = {}, nvlOptions: a = {}, positions: o = [], zoom: s, pan: u, onInitializationError: l, ...c }, f) => { const d = me.useRef(null), h = me.useRef(void 0), p = me.useRef(void 0); - me.useImperativeHandle(f, () => Object.getOwnPropertyNames(w9.prototype).reduce((E, O) => ({ + me.useImperativeHandle(f, () => Object.getOwnPropertyNames(x9.prototype).reduce((E, O) => ({ ...E, [O]: (...S) => d.current === null ? null : d.current[O](...S) }), {})); @@ -78612,7 +78612,7 @@ const x9 = (r, e) => { const T = { ...a, layoutOptions: n }; t !== void 0 && (T.layout = t); try { - x = new w9(g.current, y, _, T, i), d.current = x, m(e), b(r); + x = new x9(g.current, y, _, T, i), d.current = x, m(e), b(r); } catch (P) { if (typeof l == "function") l(P); @@ -78623,7 +78623,7 @@ const x9 = (r, e) => { }, [g.current, a.minimapContainer]), me.useEffect(() => { if (d.current === null) return; - const x = x9(y, r), E = xue(y, r), O = x9(_, e); + const x = E9(y, r), E = xue(y, r), O = E9(_, e); if (x.added.length === 0 && x.removed.length === 0 && E.length === 0 && O.added.length === 0 && O.removed.length === 0 && O.updated.length === 0) return; m(e), b(r); @@ -78817,7 +78817,7 @@ const sb = (r) => Math.floor(Math.random() * Math.pow(10, r)).toString(), DG = ( y: n.y + l / t }; }; -class E9 extends Wp { +class S9 extends Wp { /** * Creates a new instance of the multi-select interaction handler. * @param nvl - The NVL instance to attach the interaction handler to. @@ -79187,9 +79187,9 @@ class Aue extends Wp { this.removeEventListener("mousemove", this.handleHover, !0); } } -var qw = { exports: {} }, dx = { exports: {} }, Rue = dx.exports, S9; +var qw = { exports: {} }, dx = { exports: {} }, Rue = dx.exports, O9; function Pue() { - return S9 || (S9 = 1, (function(r, e) { + return O9 || (O9 = 1, (function(r, e) { (function(t, n) { r.exports = n(); })(Rue, function() { @@ -79443,9 +79443,9 @@ const kue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( __proto__: null, default: Mue }, Symbol.toStringTag, { value: "Module" })), Iue = /* @__PURE__ */ QG(kue); -var ub = { exports: {} }, YP, O9; +var ub = { exports: {} }, YP, T9; function Nue() { - return O9 || (O9 = 1, YP = function(e, t, n, i) { + return T9 || (T9 = 1, YP = function(e, t, n, i) { var a = e[0], o = e[1], s = !1; n === void 0 && (n = 0), i === void 0 && (i = t.length); for (var u = (i - n) / 2, l = 0, c = u - 1; l < u; c = l++) { @@ -79455,9 +79455,9 @@ function Nue() { return s; }), YP; } -var XP, T9; +var XP, C9; function Lue() { - return T9 || (T9 = 1, XP = function(e, t, n, i) { + return C9 || (C9 = 1, XP = function(e, t, n, i) { var a = e[0], o = e[1], s = !1; n === void 0 && (n = 0), i === void 0 && (i = t.length); for (var u = i - n, l = 0, c = u - 1; l < u; c = l++) { @@ -79467,18 +79467,18 @@ function Lue() { return s; }), XP; } -var C9; +var A9; function jue() { - if (C9) return ub.exports; - C9 = 1; + if (A9) return ub.exports; + A9 = 1; var r = Nue(), e = Lue(); return ub.exports = function(n, i, a, o) { return i.length > 0 && Array.isArray(i[0]) ? e(n, i, a, o) : r(n, i, a, o); }, ub.exports.nested = e, ub.exports.flat = r, ub.exports; } -var Ab = { exports: {} }, Bue = Ab.exports, A9; +var Ab = { exports: {} }, Bue = Ab.exports, R9; function Fue() { - return A9 || (A9 = 1, (function(r, e) { + return R9 || (R9 = 1, (function(r, e) { (function(t, n) { n(e); })(Bue, function(t) { @@ -79524,10 +79524,10 @@ function Fue() { }); })(Ab, Ab.exports)), Ab.exports; } -var R9; +var P9; function Uue() { - if (R9) return qw.exports; - R9 = 1; + if (P9) return qw.exports; + P9 = 1; var r = Pue(), e = Iue, t = jue(), n = Fue().orient2d; e.default && (e = e.default), qw.exports = i, qw.exports.default = i; function i(x, E, O) { @@ -79674,7 +79674,7 @@ function Uue() { return qw.exports; } var zue = Uue(); -const que = /* @__PURE__ */ Bp(zue), P9 = 10, Gue = 500, Vue = (r, e, t, n) => { +const que = /* @__PURE__ */ Bp(zue), M9 = 10, Gue = 500, Vue = (r, e, t, n) => { const i = (n[1] - t[1]) * (e[0] - r[0]) - (n[0] - t[0]) * (e[1] - r[1]); if (i === 0) return !1; @@ -79699,7 +79699,7 @@ const que = /* @__PURE__ */ Bp(zue), P9 = 10, Gue = 500, Vue = (r, e, t, n) => { } return n; }; -class M9 extends Wp { +class D9 extends Wp { /** * Creates a new instance of the lasso interaction handler. * @param nvl - The NVL instance to attach the interaction handler to. @@ -79722,7 +79722,7 @@ class M9 extends Wp { if (n === void 0) return; const i = Ap(this.containerInstance, t), a = Math.abs(n.x - i.x), o = Math.abs(n.y - i.y); - (a > P9 || o > P9) && (this.points.push(i), this.overlayRenderer.drawLasso(this.points, !0, !1)); + (a > M9 || o > M9) && (this.points.push(i), this.overlayRenderer.drawLasso(this.points, !0, !1)); } }); Ft(this, "handleMouseUp", (t) => { @@ -79819,7 +79819,7 @@ class Yue extends Wp { this.toggleGlobalTextSelection(!0, this.handleMouseUp), this.removeEventListener("mousedown", this.handleMouseDown, !0), this.removeEventListener("mousemove", this.handleMouseMove, !0), this.removeEventListener("mouseup", this.handleMouseUp, !0); } } -class D9 extends Wp { +class k9 extends Wp { /** * Creates a new instance of the zoom interaction handler. * @param nvl - The NVL instance to attach the interaction handler to. @@ -79874,7 +79874,7 @@ const av = (r) => { }, [r, t, n, a, e, i]); }, Xue = ({ nvlRef: r, mouseEventCallbacks: e, interactionOptions: t }) => { const n = me.useRef(null), i = me.useRef(null), a = me.useRef(null), o = me.useRef(null), s = me.useRef(null), u = me.useRef(null), l = me.useRef(null), c = me.useRef(null); - return Ha(Aue, n, e.onHover, "onHover", r, t), Ha(iv, i, e.onNodeClick, "onNodeClick", r, t), Ha(iv, i, e.onNodeDoubleClick, "onNodeDoubleClick", r, t), Ha(iv, i, e.onNodeRightClick, "onNodeRightClick", r, t), Ha(iv, i, e.onRelationshipClick, "onRelationshipClick", r, t), Ha(iv, i, e.onRelationshipDoubleClick, "onRelationshipDoubleClick", r, t), Ha(iv, i, e.onRelationshipRightClick, "onRelationshipRightClick", r, t), Ha(iv, i, e.onCanvasClick, "onCanvasClick", r, t), Ha(iv, i, e.onCanvasDoubleClick, "onCanvasDoubleClick", r, t), Ha(iv, i, e.onCanvasRightClick, "onCanvasRightClick", r, t), Ha(Yue, a, e.onPan, "onPan", r, t), Ha(D9, o, e.onZoom, "onZoom", r, t), Ha(D9, o, e.onZoomAndPan, "onZoomAndPan", r, t), Ha(HP, s, e.onDrag, "onDrag", r, t), Ha(HP, s, e.onDragStart, "onDragStart", r, t), Ha(HP, s, e.onDragEnd, "onDragEnd", r, t), Ha(WP, u, e.onHoverNodeMargin, "onHoverNodeMargin", r, t), Ha(WP, u, e.onDrawStarted, "onDrawStarted", r, t), Ha(WP, u, e.onDrawEnded, "onDrawEnded", r, t), Ha(E9, l, e.onBoxStarted, "onBoxStarted", r, t), Ha(E9, l, e.onBoxSelect, "onBoxSelect", r, t), Ha(M9, c, e.onLassoStarted, "onLassoStarted", r, t), Ha(M9, c, e.onLassoSelect, "onLassoSelect", r, t), me.useEffect(() => () => { + return Ha(Aue, n, e.onHover, "onHover", r, t), Ha(iv, i, e.onNodeClick, "onNodeClick", r, t), Ha(iv, i, e.onNodeDoubleClick, "onNodeDoubleClick", r, t), Ha(iv, i, e.onNodeRightClick, "onNodeRightClick", r, t), Ha(iv, i, e.onRelationshipClick, "onRelationshipClick", r, t), Ha(iv, i, e.onRelationshipDoubleClick, "onRelationshipDoubleClick", r, t), Ha(iv, i, e.onRelationshipRightClick, "onRelationshipRightClick", r, t), Ha(iv, i, e.onCanvasClick, "onCanvasClick", r, t), Ha(iv, i, e.onCanvasDoubleClick, "onCanvasDoubleClick", r, t), Ha(iv, i, e.onCanvasRightClick, "onCanvasRightClick", r, t), Ha(Yue, a, e.onPan, "onPan", r, t), Ha(k9, o, e.onZoom, "onZoom", r, t), Ha(k9, o, e.onZoomAndPan, "onZoomAndPan", r, t), Ha(HP, s, e.onDrag, "onDrag", r, t), Ha(HP, s, e.onDragStart, "onDragStart", r, t), Ha(HP, s, e.onDragEnd, "onDragEnd", r, t), Ha(WP, u, e.onHoverNodeMargin, "onHoverNodeMargin", r, t), Ha(WP, u, e.onDrawStarted, "onDrawStarted", r, t), Ha(WP, u, e.onDrawEnded, "onDrawEnded", r, t), Ha(S9, l, e.onBoxStarted, "onBoxStarted", r, t), Ha(S9, l, e.onBoxSelect, "onBoxSelect", r, t), Ha(D9, c, e.onLassoStarted, "onLassoStarted", r, t), Ha(D9, c, e.onLassoSelect, "onLassoSelect", r, t), me.useEffect(() => () => { av(n), av(i), av(a), av(o), av(s), av(u), av(l), av(c); }, []), null; }, $ue = { @@ -79907,7 +79907,7 @@ function Lg({ state: r, onChange: e, isControlled: t }) { }, [t, a, e]); return [a, o]; } -const k9 = navigator.userAgent.includes("Mac"), IG = (r, e) => { +const I9 = navigator.userAgent.includes("Mac"), IG = (r, e) => { var t; for (const [n, i] of Object.entries(r)) { const a = n.toLowerCase().includes(e), s = ((t = i == null ? void 0 : i.stringified) !== null && t !== void 0 ? t : "").toLowerCase().includes(e); @@ -79945,21 +79945,21 @@ const k9 = navigator.userAgent.includes("Mac"), IG = (r, e) => { me.useEffect(() => (document.addEventListener("keydown", t), () => { document.removeEventListener("keydown", t); }), [t]); -}, KD = " ", tle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { +}, ZD = " ", tle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { gesture: i, setGesture: a, interactionMode: o } = Vl(); - return vE(["single"]), Te.jsx(a0, { isActive: i === "single", isDisabled: o !== "select", ariaLabel: "Individual Select Button", description: `Individual Select ${KD} ${a_.single}`, onClick: () => { + return vE(["single"]), Te.jsx(a0, { isActive: i === "single", isDisabled: o !== "select", ariaLabel: "Individual Select Button", description: `Individual Select ${ZD} ${a_.single}`, onClick: () => { a == null || a("single"); }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-individual-select" }, t), className: r, style: e, children: Te.jsx(l2, { "aria-label": "Individual Select" }) }); }, rle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { gesture: i, setGesture: a, interactionMode: o } = Vl(); - return vE(["box"]), Te.jsx(a0, { isDisabled: o !== "select" || a === void 0, isActive: i === "box", ariaLabel: "Box Select Button", description: `Box Select ${KD} ${a_.box}`, onClick: () => { + return vE(["box"]), Te.jsx(a0, { isDisabled: o !== "select" || a === void 0, isActive: i === "box", ariaLabel: "Box Select Button", description: `Box Select ${ZD} ${a_.box}`, onClick: () => { a == null || a("box"); - }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-box-select" }, t), className: r, style: e, children: Te.jsx(G9, { "aria-label": "Box select" }) }); + }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-box-select" }, t), className: r, style: e, children: Te.jsx(V9, { "aria-label": "Box select" }) }); }, nle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { gesture: i, setGesture: a, interactionMode: o } = Vl(); - return vE(["lasso"]), Te.jsx(a0, { isDisabled: o !== "select" || a === void 0, isActive: i === "lasso", ariaLabel: "Lasso Select Button", description: `Lasso Select ${KD} ${a_.lasso}`, onClick: () => { + return vE(["lasso"]), Te.jsx(a0, { isDisabled: o !== "select" || a === void 0, isActive: i === "lasso", ariaLabel: "Lasso Select Button", description: `Lasso Select ${ZD} ${a_.lasso}`, onClick: () => { a == null || a("lasso"); - }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-lasso-select" }, t), className: r, style: e, children: Te.jsx(q9, { "aria-label": "Lasso select" }) }); + }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-lasso-select" }, t), className: r, style: e, children: Te.jsx(G9, { "aria-label": "Lasso select" }) }); }, NG = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { nvlInstance: i } = Vl(), a = me.useCallback(() => { var o, s; @@ -80018,17 +80018,17 @@ const k9 = navigator.userAgent.includes("Mac"), IG = (r, e) => { const b = Object.values(p.dataLookupTable.nodes), _ = Object.values(p.dataLookupTable.relationships); u(Zue(b, y), Que(_, y)); }; - return Te.jsx(Te.Fragment, { children: c ? Te.jsx(ZY, { ref: l, size: "small", leadingElement: Te.jsx(ck, {}), trailingElement: Te.jsx(S2, { onClick: () => { + return Te.jsx(Te.Fragment, { children: c ? Te.jsx(ZY, { ref: l, size: "small", leadingElement: Te.jsx(fk, {}), trailingElement: Te.jsx(S2, { onClick: () => { var y; g(""), (y = l.current) === null || y === void 0 || y.focus(); - }, description: "Clear search", children: Te.jsx(W9, {}) }), placeholder: "Search...", value: d, onChange: (y) => g(y.target.value), htmlAttributes: { + }, description: "Clear search", children: Te.jsx(Y9, {}) }), placeholder: "Search...", value: d, onChange: (y) => g(y.target.value), htmlAttributes: { autoFocus: !0, onBlur: () => { d === "" && f(!1); } } }) : Te.jsx(T2, { size: "small", isFloating: !0, onClick: () => f((y) => !y), description: "Search", className: r, style: e, htmlAttributes: t, tooltipProps: { root: { placement: n ?? "bottom" } - }, children: Te.jsx(ck, {}) }) }); + }, children: Te.jsx(fk, {}) }) }); }, FG = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { nvlInstance: i } = Vl(), [a, o] = me.useState(!1), s = () => o(!1), u = me.useRef(null); return Te.jsxs(Te.Fragment, { children: [Te.jsx(T2, { ref: u, size: "small", isFloating: !0, onClick: () => o((l) => !l), description: "Download", tooltipProps: { @@ -80058,11 +80058,11 @@ const k9 = navigator.userAgent.includes("Mac"), IG = (r, e) => { title: "Individual" }, box: { - icon: Te.jsx(G9, {}), + icon: Te.jsx(V9, {}), title: "Box" }, lasso: { - icon: Te.jsx(q9, {}), + icon: Te.jsx(G9, {}), title: "Lasso" } }, ule = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n, menuPlacement: i, gestureOptions: a = sle }) => { @@ -80149,9 +80149,9 @@ var hx = { exports: {} }; * * @preserve */ -var fle = hx.exports, I9; +var fle = hx.exports, N9; function dle() { - return I9 || (I9 = 1, (function(r, e) { + return N9 || (N9 = 1, (function(r, e) { (function(t, n) { r.exports = n(); })(fle, (function() { @@ -80538,7 +80538,7 @@ function dle() { return "hsv"; } }); - var _o = { + var wo = { // Corresponds roughly to RGB brighter/darker Kn: 18, // D65 standard referent @@ -80553,19 +80553,19 @@ function dle() { // 3 * t1 * t1 t3: 8856452e-9 // t1 * t1 * t1 - }, wo = _o, Vf = g.unpack, sf = Math.pow, yu = function() { + }, xo = wo, Vf = g.unpack, sf = Math.pow, yu = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; var ye = Vf(K, "rgb"), Pe = ye[0], ze = ye[1], Ge = ye[2], Be = Kl(Pe, ze, Ge), Ke = Be[0], Je = Be[1], gt = Be[2], dt = 116 * Je - 16; return [dt < 0 ? 0 : dt, 500 * (Ke - Je), 200 * (Je - gt)]; - }, so = function(K) { + }, uo = function(K) { return (K /= 255) <= 0.04045 ? K / 12.92 : sf((K + 0.055) / 1.055, 2.4); }, el = function(K) { - return K > wo.t3 ? sf(K, 1 / 3) : K / wo.t2 + wo.t0; + return K > xo.t3 ? sf(K, 1 / 3) : K / xo.t2 + xo.t0; }, Kl = function(K, oe, ye) { - K = so(K), oe = so(oe), ye = so(ye); - var Pe = el((0.4124564 * K + 0.3575761 * oe + 0.1804375 * ye) / wo.Xn), ze = el((0.2126729 * K + 0.7151522 * oe + 0.072175 * ye) / wo.Yn), Ge = el((0.0193339 * K + 0.119192 * oe + 0.9503041 * ye) / wo.Zn); + K = uo(K), oe = uo(oe), ye = uo(ye); + var Pe = el((0.4124564 * K + 0.3575761 * oe + 0.1804375 * ye) / xo.Xn), ze = el((0.2126729 * K + 0.7151522 * oe + 0.072175 * ye) / xo.Yn), Ge = el((0.0193339 * K + 0.119192 * oe + 0.9503041 * ye) / xo.Zn); return [Pe, ze, Ge]; - }, Vo = yu, vs = _o, jn = g.unpack, Zr = Math.pow, Zl = function() { + }, Vo = yu, vs = wo, jn = g.unpack, Zr = Math.pow, Zl = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; K = jn(K, "lab"); var ye = K[0], Pe = K[1], ze = K[2], Ge, Be, Ke, Je, gt, dt; @@ -80592,7 +80592,7 @@ function dle() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; var ye = aa(K, "lab"), Pe = ye[0], ze = ye[1], Ge = ye[2], Be = lf(ze * ze + Ge * Ge), Ke = (ya(Ge, ze) * mu + 360) % 360; return ma(Be * 1e4) === 0 && (Ke = Number.NaN), [Pe, Be, Ke]; - }, uo = bu, Ho = g.unpack, st = Vo, xt = uo, pt = function() { + }, lo = bu, Ho = g.unpack, st = Vo, xt = lo, pt = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; var ye = Ho(K, "rgb"), Pe = ye[0], ze = ye[1], Ge = ye[2], Be = st(Pe, ze, Ge), Ke = Be[0], Je = Be[1], gt = Be[2]; return xt(Ke, Je, gt); @@ -80786,9 +80786,9 @@ function dle() { whitesmoke: "#f5f5f5", yellow: "#ffff00", yellowgreen: "#9acd32" - }, kc = _u, Ah = O, tc = y, Yf = g.type, Ic = kc, wu = yn, xo = on; + }, kc = _u, Ah = O, tc = y, Yf = g.type, Ic = kc, wu = yn, Eo = on; Ah.prototype.name = function() { - for (var K = xo(this._rgb, "rgb"), oe = 0, ye = Object.keys(Ic); oe < ye.length; oe += 1) { + for (var K = Eo(this._rgb, "rgb"), oe = 0, ye = Object.keys(Ic); oe < ye.length; oe += 1) { var Pe = ye[oe]; if (Ic[Pe] === K) return Pe.toLowerCase(); @@ -80898,9 +80898,9 @@ function dle() { var oe = Math.abs(K); return oe > 31308e-7 ? (Ei(K) || 1) * (1.055 * Wo(oe, 1 / 2.4) - 0.055) : K * 12.92; } - var gs = g.unpack, xu = g.type, Jr = T, Ld = O, gf = y, Eo = oi; + var gs = g.unpack, xu = g.type, Jr = T, Ld = O, gf = y, So = oi; Ld.prototype.oklab = function() { - return Eo(this._rgb); + return So(this._rgb); }, Jr.oklab = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; return new (Function.prototype.bind.apply(Ld, [null].concat(K, ["oklab"])))(); @@ -80912,22 +80912,22 @@ function dle() { return "oklab"; } }); - var jd = g.unpack, So = oi, Eu = uo, ul = function() { + var jd = g.unpack, Oo = oi, Eu = lo, ul = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; - var ye = jd(K, "rgb"), Pe = ye[0], ze = ye[1], Ge = ye[2], Be = So(Pe, ze, Ge), Ke = Be[0], Je = Be[1], gt = Be[2]; + var ye = jd(K, "rgb"), Pe = ye[0], ze = ye[1], Ge = ye[2], Be = Oo(Pe, ze, Ge), Ke = Be[0], Je = Be[1], gt = Be[2]; return Eu(Ke, Je, gt); }, Ys = ul, ac = g.unpack, ys = ec, ms = sl, ll = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; K = ac(K, "lch"); var ye = K[0], Pe = K[1], ze = K[2], Ge = ys(ye, Pe, ze), Be = Ge[0], Ke = Ge[1], Je = Ge[2], gt = ms(Be, Ke, Je), dt = gt[0], qt = gt[1], Ct = gt[2]; return [dt, qt, Ct, K.length > 3 ? K[3] : 1]; - }, Ka = ll, Su = g.unpack, Mh = g.type, Yi = T, Ba = O, Oo = y, Cv = Ys; + }, Ka = ll, Su = g.unpack, Mh = g.type, Yi = T, Ba = O, To = y, Cv = Ys; Ba.prototype.oklch = function() { return Cv(this._rgb); }, Yi.oklch = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; return new (Function.prototype.bind.apply(Ba, [null].concat(K, ["oklch"])))(); - }, Oo.format.oklch = Ka, Oo.autodetect.push({ + }, To.format.oklch = Ka, To.autodetect.push({ p: 3, test: function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; @@ -80943,7 +80943,7 @@ function dle() { ji.prototype.clipped = function() { return this._rgb._clipped || !1; }; - var Yo = O, yf = _o; + var Yo = O, yf = wo; Yo.prototype.darken = function(K) { K === void 0 && (K = 1); var oe = this, ye = oe.lab(); @@ -80975,11 +80975,11 @@ function dle() { }, Ge = (oe > K ? ze(new sa([0, 0, 0]), this) : ze(this, new sa([255, 255, 255]))).rgb(); return new sa(Ge.concat([this._rgb[3]])); } - return To.apply(void 0, this._rgb.slice(0, 3)); + return Co.apply(void 0, this._rgb.slice(0, 3)); }; - var To = function(K, oe, ye) { - return K = Co(K), oe = Co(oe), ye = Co(ye), 0.2126 * K + 0.7152 * oe + 0.0722 * ye; - }, Co = function(K) { + var Co = function(K, oe, ye) { + return K = Ao(K), oe = Ao(oe), ye = Ao(ye), 0.2126 * K + 0.7152 * oe + 0.0722 * ye; + }, Ao = function(K) { return K /= 255, K <= 0.03928 ? K / 12.92 : bs((K + 0.055) / 1.055, 2.4); }, Xi = {}, Xo = O, Fa = g.type, Ua = Xi, fl = function(K, oe, ye) { ye === void 0 && (ye = 0.5); @@ -81000,7 +81000,7 @@ function dle() { var oe = this._rgb, ye = oe[3]; return K ? (this._rgb = [oe[0] * ye, oe[1] * ye, oe[2] * ye, ye], this) : new lc([oe[0] * ye, oe[1] * ye, oe[2] * ye, ye], "rgb"); }; - var Si = O, Rn = _o; + var Si = O, Rn = wo; Si.prototype.saturate = function(K) { K === void 0 && (K = 1); var oe = this, ye = oe.lch(); @@ -81119,7 +81119,7 @@ function dle() { return Ih(K, oe, ye, "oklch"); }; Xi.oklch = $i; - var Za = O, bf = g.clip_rgb, pl = Math.pow, _f = Math.sqrt, Pu = Math.PI, gl = Math.cos, lo = Math.sin, Av = Math.atan2, dc = function(K, oe, ye) { + var Za = O, bf = g.clip_rgb, pl = Math.pow, _f = Math.sqrt, Pu = Math.PI, gl = Math.cos, co = Math.sin, Av = Math.atan2, dc = function(K, oe, ye) { oe === void 0 && (oe = "lrgb"), ye === void 0 && (ye = null); var Pe = K.length; ye || (ye = Array.from(new Array(Pe)).map(function() { @@ -81137,7 +81137,7 @@ function dle() { for (var Ge = K.shift(), Be = Ge.get(oe), Ke = [], Je = 0, gt = 0, dt = 0; dt < Be.length; dt++) if (Be[dt] = (Be[dt] || 0) * ye[0], Ke.push(isNaN(Be[dt]) ? 0 : ye[0]), oe.charAt(dt) === "h" && !isNaN(Be[dt])) { var qt = Be[dt] / 180 * Pu; - Je += gl(qt) * ye[0], gt += lo(qt) * ye[0]; + Je += gl(qt) * ye[0], gt += co(qt) * ye[0]; } var Ct = Ge.alpha() * ye[0]; K.forEach(function(en, Or) { @@ -81147,7 +81147,7 @@ function dle() { if (!isNaN($r[vn])) if (Ke[vn] += ye[Or + 1], oe.charAt(vn) === "h") { var ua = $r[vn] / 180 * Pu; - Je += gl(ua) * ye[Or + 1], gt += lo(ua) * ye[Or + 1]; + Je += gl(ua) * ye[Or + 1], gt += co(ua) * ye[Or + 1]; } else Be[vn] += $r[vn] * ye[Or + 1]; }); @@ -81394,27 +81394,27 @@ function dle() { return oe.scale = function() { return Ca(oe); }, oe; - }, Ao = T, Ki = function(K, oe, ye) { + }, Ro = T, Ki = function(K, oe, ye) { if (!Ki[ye]) throw new Error("unknown blend mode " + ye); return Ki[ye](K, oe); }, Du = function(K) { return function(oe, ye) { - var Pe = Ao(ye).rgb(), ze = Ao(oe).rgb(); - return Ao.rgb(K(Pe, ze)); + var Pe = Ro(ye).rgb(), ze = Ro(oe).rgb(); + return Ro.rgb(K(Pe, ze)); }; - }, co = function(K) { + }, fo = function(K) { return function(oe, ye) { var Pe = []; return Pe[0] = K(oe[0], ye[0]), Pe[1] = K(oe[1], ye[1]), Pe[2] = K(oe[2], ye[2]), Pe; }; }, ku = function(K) { return K; - }, Ro = function(K, oe) { + }, Po = function(K, oe) { return K * oe / 255; }, Uc = function(K, oe) { return K > oe ? oe : K; - }, Po = function(K, oe) { + }, Mo = function(K, oe) { return K > oe ? K : oe; }, Qa = function(K, oe) { return 255 * (1 - (1 - K / 255) * (1 - oe / 255)); @@ -81425,11 +81425,11 @@ function dle() { }, wf = function(K, oe) { return K === 255 ? 255 : (K = 255 * (oe / 255) / (1 - K / 255), K > 255 ? 255 : K); }; - Ki.normal = Du(co(ku)), Ki.multiply = Du(co(Ro)), Ki.screen = Du(co(Qa)), Ki.overlay = Du(co(rd)), Ki.darken = Du(co(Uc)), Ki.lighten = Du(co(Po)), Ki.dodge = Du(co(wf)), Ki.burn = Du(co(Iu)); - for (var es = Ki, fo = g.type, nd = g.clip_rgb, Nu = g.TWOPI, Zs = Math.pow, xf = Math.sin, xs = Math.cos, Zi = T, hc = function(K, oe, ye, Pe, ze) { + Ki.normal = Du(fo(ku)), Ki.multiply = Du(fo(Po)), Ki.screen = Du(fo(Qa)), Ki.overlay = Du(fo(rd)), Ki.darken = Du(fo(Uc)), Ki.lighten = Du(fo(Mo)), Ki.dodge = Du(fo(wf)), Ki.burn = Du(fo(Iu)); + for (var es = Ki, ho = g.type, nd = g.clip_rgb, Nu = g.TWOPI, Zs = Math.pow, xf = Math.sin, xs = Math.cos, Zi = T, hc = function(K, oe, ye, Pe, ze) { K === void 0 && (K = 300), oe === void 0 && (oe = -1.5), ye === void 0 && (ye = 1), Pe === void 0 && (Pe = 1), ze === void 0 && (ze = [0, 1]); var Ge = 0, Be; - fo(ze) === "array" ? Be = ze[1] - ze[0] : (Be = 0, ze = [ze, ze]); + ho(ze) === "array" ? Be = ze[1] - ze[0] : (Be = 0, ze = [ze, ze]); var Ke = function(Je) { var gt = Nu * ((K + 120) / 360 + oe * Je), dt = Zs(ze[0] + Be * Je, Pe), qt = Ge !== 0 ? ye[0] + Je * Ge : ye, Ct = qt * dt * (1 - dt) / 2, Jt = xs(gt), Zt = xf(gt), en = dt + Ct * (-0.14861 * Jt + 1.78277 * Zt), Or = dt + Ct * (-0.29227 * Jt - 0.90649 * Zt), $r = dt + Ct * (1.97294 * Jt); return Zi(nd([en * 255, Or * 255, $r * 255, 1])); @@ -81441,9 +81441,9 @@ function dle() { }, Ke.gamma = function(Je) { return Je == null ? Pe : (Pe = Je, Ke); }, Ke.hue = function(Je) { - return Je == null ? ye : (ye = Je, fo(ye) === "array" ? (Ge = ye[1] - ye[0], Ge === 0 && (ye = ye[1])) : Ge = 0, Ke); + return Je == null ? ye : (ye = Je, ho(ye) === "array" ? (Ge = ye[1] - ye[0], Ge === 0 && (ye = ye[1])) : Ge = 0, Ke); }, Ke.lightness = function(Je) { - return Je == null ? ze : (fo(Je) === "array" ? (ze = Je, Be = Je[1] - Je[0]) : (ze = [Je, Je], Be = 0), Ke); + return Je == null ? ze : (ho(Je) === "array" ? (ze = Je, Be = Je[1] - Je[0]) : (ze = [Je, Je], Be = 0), Ke); }, Ke.scale = function() { return Zi.scale(Ke); }, Ke.hue(ye), Ke; @@ -81451,7 +81451,7 @@ function dle() { for (var K = "#", oe = 0; oe < 6; oe++) K += Es.charAt(Ss(Qs() * 16)); return new Ef(K, "hex"); - }, zc = l, Qi = Math.log, Lu = Math.pow, er = Math.floor, ho = Math.abs, Js = function(K, oe) { + }, zc = l, Qi = Math.log, Lu = Math.pow, er = Math.floor, vo = Math.abs, Js = function(K, oe) { oe === void 0 && (oe = null); var ye = { min: Number.MAX_VALUE, @@ -81508,7 +81508,7 @@ function dle() { vn[kt] = 0; for (var gr = 0; gr < Or; gr++) for (var tn = Ge[gr], yr = Number.MAX_VALUE, Ji = void 0, mn = 0; mn < ye; mn++) { - var cn = ho(Ja[mn] - tn); + var cn = vo(Ja[mn] - tn); cn < yr && (yr = cn, Ji = mn), vn[Ji]++, $r[gr] = Ji; } for (var Mn = new Array(ye), On = 0; On < ye; On++) @@ -81540,8 +81540,8 @@ function dle() { } } return Be; - }, id = { analyze: Js, limits: Ts }, Mo = O, Wn = function(K, oe) { - K = new Mo(K), oe = new Mo(oe); + }, id = { analyze: Js, limits: Ts }, Do = O, Wn = function(K, oe) { + K = new Do(K), oe = new Do(oe); var ye = K.luminance(), Pe = oe.luminance(); return ye > Pe ? (ye + 0.05) / (Pe + 0.05) : (Pe + 0.05) / (ye + 0.05); }, Pi = O, ts = Math.sqrt, Pn = Math.pow, Sr = Math.min, Xr = Math.max, vi = Math.atan2, vc = Math.abs, bl = Math.cos, Cs = Math.sin, ad = Math.exp, pc = Math.PI, _l = function(K, oe, ye, Pe, ze) { @@ -81678,7 +81678,7 @@ function yle(r) { s > i && (i = s, a = o); return a; } -function N9(r) { +function L9(r) { return Object.entries(r).reduce((e, [t, n]) => (e[t] = { mostCommonColor: yle(n), totalCount: n.length @@ -81747,7 +81747,7 @@ function wle(r, e) { ...(h = n[f.type]) !== null && h !== void 0 ? h : [], (p = f.color) !== null && p !== void 0 ? p : KP ], Object.assign(Object.assign({ captions: [{ value: f.type }], color: KP }, f), { properties: void 0, type: void 0 }); - }), u = N9(t), l = N9(n); + }), u = L9(t), l = L9(n); return { dataLookupTable: { labelMetaData: u, labels: Object.keys(u).sort((f, d) => ZP(f, d)), @@ -81757,23 +81757,23 @@ function wle(r, e) { types: Object.keys(l).sort((f, d) => ZP(f, d)) }, nodes: o, rels: s }; } -const L9 = ( +const j9 = ( // eslint-disable-next-line /(?:https?|s?ftp|bolt):\/\/(?:(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))?\))+(?:\((?:[^\s()<>]+|(?:\(?:[^\s()<>]+\)))?\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))?/gi ), xle = ({ text: r }) => { var e; - const t = r ?? "", n = (e = t.match(L9)) !== null && e !== void 0 ? e : []; - return Te.jsx(Te.Fragment, { children: t.split(L9).map((i, a) => Te.jsxs(ao.Fragment, { children: [i, n[a] && // Should be safe from XSS. + const t = r ?? "", n = (e = t.match(j9)) !== null && e !== void 0 ? e : []; + return Te.jsx(Te.Fragment, { children: t.split(j9).map((i, a) => Te.jsxs(oo.Fragment, { children: [i, n[a] && // Should be safe from XSS. // Ref: https://mathiasbynens.github.io/rel-noopener/ Te.jsx("a", { href: n[a], target: "_blank", rel: "noopener noreferrer", className: "hover:underline", children: n[a] })] }, `clickable-url-${a}`)) }); -}, Ele = ao.memo(xle), Sle = "…", Ole = 900, Tle = 150, Cle = 300, Ale = ({ value: r, width: e, type: t }) => { +}, Ele = oo.memo(xle), Sle = "…", Ole = 900, Tle = 150, Cle = 300, Ale = ({ value: r, width: e, type: t }) => { const [n, i] = me.useState(!1), a = e > Ole ? Cle : Tle, o = () => { i(!0); }; let s = n ? r : r.slice(0, a); const u = s.length !== r.length; return s += u ? Sle : "", Te.jsxs(Te.Fragment, { children: [t.startsWith("Array") && "[", Te.jsx(Ele, { text: s }), u && Te.jsx("button", { type: "button", onClick: o, className: "ndl-properties-show-all-button", children: " Show all" }), t.startsWith("Array") && "]"] }); -}, Rle = ({ properties: r, paneWidth: e }) => Te.jsxs("div", { className: "ndl-graph-visualization-properties-table", children: [Te.jsxs("div", { className: "ndl-properties-header", children: [Te.jsx(Ed, { variant: "body-small", className: "ndl-properties-header-key", children: "Key" }), Te.jsx(Ed, { variant: "body-small", children: "Value" })] }), Object.entries(r).map(([t, { stringified: n, type: i }]) => Te.jsxs("div", { className: "ndl-properties-row", children: [Te.jsx(Ed, { variant: "body-small", className: "ndl-properties-key", children: t }), Te.jsx("div", { className: "ndl-properties-value", children: Te.jsx(Ale, { value: n, width: e, type: i }) }), Te.jsx("div", { className: "ndl-properties-clipboard-button", children: Te.jsx(U7, { textToCopy: `${t}: ${n}`, size: "small", tooltipProps: { placement: "left", type: "simple" } }) })] }, t))] }), Ple = ({ paneWidth: r = 400 }) => { +}, Rle = ({ properties: r, paneWidth: e }) => Te.jsxs("div", { className: "ndl-graph-visualization-properties-table", children: [Te.jsxs("div", { className: "ndl-properties-header", children: [Te.jsx(Ed, { variant: "body-small", className: "ndl-properties-header-key", children: "Key" }), Te.jsx(Ed, { variant: "body-small", children: "Value" })] }), Object.entries(r).map(([t, { stringified: n, type: i }]) => Te.jsxs("div", { className: "ndl-properties-row", children: [Te.jsx(Ed, { variant: "body-small", className: "ndl-properties-key", children: t }), Te.jsx("div", { className: "ndl-properties-value", children: Te.jsx(Ale, { value: n, width: e, type: i }) }), Te.jsx("div", { className: "ndl-properties-clipboard-button", children: Te.jsx(z7, { textToCopy: `${t}: ${n}`, size: "small", tooltipProps: { placement: "left", type: "simple" } }) })] }, t))] }), Ple = ({ paneWidth: r = 400 }) => { const { selected: e, nvlGraph: t } = Vl(), n = me.useMemo(() => { const [s] = e.nodeIds; if (s !== void 0) @@ -81802,7 +81802,7 @@ const L9 = ( value: a.data.properties[s].stringified })) ]; - return Te.jsxs(Te.Fragment, { children: [Te.jsxs(ty.Title, { children: [Te.jsx("h6", { className: "ndl-details-title", children: a.dataType === "node" ? "Node details" : "Relationship details" }), Te.jsx(U7, { textToCopy: o.map((s) => `${s.key}: ${s.value}`).join(` + return Te.jsxs(Te.Fragment, { children: [Te.jsxs(ty.Title, { children: [Te.jsx("h6", { className: "ndl-details-title", children: a.dataType === "node" ? "Node details" : "Relationship details" }), Te.jsx(z7, { textToCopy: o.map((s) => `${s.key}: ${s.value}`).join(` `), size: "small" })] }), Te.jsxs(ty.Content, { children: [Te.jsx("div", { className: "ndl-details-tags", children: a.dataType === "node" ? a.data.labelsSorted.map((s) => { var u, l; return Te.jsx(Ax, { type: "node", color: (l = (u = t.dataLookupTable.labelMetaData[s]) === null || u === void 0 ? void 0 : u.mostCommonColor) !== null && l !== void 0 ? l : "", as: "span", htmlAttributes: { @@ -81816,16 +81816,16 @@ const L9 = ( var l, c; const f = (c = (l = n.current) === null || l === void 0 ? void 0 : l.children[u]) === null || c === void 0 ? void 0 : c.children[0]; f instanceof HTMLElement && f.focus(); - }, a = me.useMemo(() => ao.Children.count(r), [r]), o = me.useCallback((u) => { + }, a = me.useMemo(() => oo.Children.count(r), [r]), o = me.useCallback((u) => { u >= a ? t(a - 1) : t(Math.max(0, u)); }, [a, t]), s = (u) => { let l = e; - u.key === "ArrowRight" || u.key === "ArrowDown" ? (l = (e + 1) % ao.Children.count(r), o(l)) : (u.key === "ArrowLeft" || u.key === "ArrowUp") && (l = (e - 1 + ao.Children.count(r)) % ao.Children.count(r), o(l)), i(l); + u.key === "ArrowRight" || u.key === "ArrowDown" ? (l = (e + 1) % oo.Children.count(r), o(l)) : (u.key === "ArrowLeft" || u.key === "ArrowUp") && (l = (e - 1 + oo.Children.count(r)) % oo.Children.count(r), o(l)), i(l); }; return ( // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions - Te.jsx("ul", { onKeyDown: (u) => s(u), ref: n, style: { all: "inherit", listStyleType: "none" }, children: ao.Children.map(r, (u, l) => { - if (!ao.isValidElement(u)) + Te.jsx("ul", { onKeyDown: (u) => s(u), ref: n, style: { all: "inherit", listStyleType: "none" }, children: oo.Children.map(r, (u, l) => { + if (!oo.isValidElement(u)) return null; const c = me.cloneElement(u, { tabIndex: e === l ? 0 : -1 @@ -81834,21 +81834,21 @@ const L9 = ( }) }) ); }, Dle = (r) => typeof r == "function"; -function j9({ initiallyShown: r, children: e, isButtonGroup: t }) { +function B9({ initiallyShown: r, children: e, isButtonGroup: t }) { const [n, i] = me.useState(!1), a = () => i((f) => !f), o = e.length, s = o > r, u = n ? o : r, l = o - u; if (o === 0) return null; const c = e.slice(0, u).map((f) => Dle(f) ? f() : f); return Te.jsxs(Te.Fragment, { children: [t === !0 ? Te.jsx(Mle, { children: c }) : Te.jsx("div", { style: { all: "inherit" }, children: c }), s && Te.jsx(rX, { size: "small", onClick: a, children: n ? "Show less" : `Show all (${l} more)` })] }); } -const B9 = 25, kle = () => { +const F9 = 25, kle = () => { const { nvlGraph: r } = Vl(); - return Te.jsxs(Te.Fragment, { children: [Te.jsx(ty.Title, { children: Te.jsx(Ed, { variant: "title-4", children: "Results overview" }) }), Te.jsx(ty.Content, { children: Te.jsxs("div", { className: "ndl-graph-visualization-overview-panel", children: [r.dataLookupTable.labels.length > 0 && Te.jsxs("div", { className: "ndl-overview-section", children: [Te.jsx("div", { className: "ndl-overview-header", children: Te.jsxs("span", { children: ["Nodes", ` (${r.nodes.length.toLocaleString()})`] }) }), Te.jsx("div", { className: "ndl-overview-items", children: Te.jsx(j9, { initiallyShown: B9, isButtonGroup: !0, children: r.dataLookupTable.labels.map((e) => function() { + return Te.jsxs(Te.Fragment, { children: [Te.jsx(ty.Title, { children: Te.jsx(Ed, { variant: "title-4", children: "Results overview" }) }), Te.jsx(ty.Content, { children: Te.jsxs("div", { className: "ndl-graph-visualization-overview-panel", children: [r.dataLookupTable.labels.length > 0 && Te.jsxs("div", { className: "ndl-overview-section", children: [Te.jsx("div", { className: "ndl-overview-header", children: Te.jsxs("span", { children: ["Nodes", ` (${r.nodes.length.toLocaleString()})`] }) }), Te.jsx("div", { className: "ndl-overview-items", children: Te.jsx(B9, { initiallyShown: F9, isButtonGroup: !0, children: r.dataLookupTable.labels.map((e) => function() { var n, i, a, o; return Te.jsxs(Ax, { type: "node", htmlAttributes: { tabIndex: -1 }, color: (i = (n = r.dataLookupTable.labelMetaData[e]) === null || n === void 0 ? void 0 : n.mostCommonColor) !== null && i !== void 0 ? i : "", as: "span", children: [e, " (", (o = (a = r.dataLookupTable.labelMetaData[e]) === null || a === void 0 ? void 0 : a.totalCount) !== null && o !== void 0 ? o : 0, ")"] }, e); - }) }) })] }), r.dataLookupTable.types.length > 0 && Te.jsxs("div", { className: "ndl-overview-relationships-section", children: [Te.jsxs("span", { className: "ndl-overview-relationships-title", children: ["Relationships", ` (${r.rels.length.toLocaleString()})`] }), Te.jsx("div", { className: "ndl-overview-items", children: Te.jsx(j9, { initiallyShown: B9, isButtonGroup: !0, children: r.dataLookupTable.types.map((e) => { + }) }) })] }), r.dataLookupTable.types.length > 0 && Te.jsxs("div", { className: "ndl-overview-relationships-section", children: [Te.jsxs("span", { className: "ndl-overview-relationships-title", children: ["Relationships", ` (${r.rels.length.toLocaleString()})`] }), Te.jsx("div", { className: "ndl-overview-items", children: Te.jsx(B9, { initiallyShown: F9, isButtonGroup: !0, children: r.dataLookupTable.types.map((e) => { var t, n, i, a; return Te.jsxs(Ax, { type: "relationship", htmlAttributes: { tabIndex: -1 @@ -81857,7 +81857,7 @@ const B9 = 25, kle = () => { }, Ile = () => { const { selected: r } = Vl(); return me.useMemo(() => r.nodeIds.length > 0 || r.relationshipIds.length > 0, [r]) ? Te.jsx(Ple, {}) : Te.jsx(kle, {}); -}, Gw = (r) => !k9 && r.ctrlKey || k9 && r.metaKey, lb = (r) => r.target instanceof HTMLElement ? r.target.isContentEditable || ["INPUT", "TEXTAREA"].includes(r.target.tagName) : !1; +}, Gw = (r) => !I9 && r.ctrlKey || I9 && r.metaKey, lb = (r) => r.target instanceof HTMLElement ? r.target.isContentEditable || ["INPUT", "TEXTAREA"].includes(r.target.tagName) : !1; function Nle({ selected: r, setSelected: e, gesture: t, interactionMode: n, setInteractionMode: i, mouseEventCallbacks: a, nvlGraph: o, highlightedNodeIds: s, highlightedRelationshipIds: u }) { const l = me.useCallback((De) => { n === "select" && De.key === " " && i("pan"); @@ -82006,13 +82006,13 @@ const jle = { relationshipThreshold: 0.55 }, Hw = { bottomLeftIsland: null, - bottomRightIsland: Te.jsxs(q7, { orientation: "vertical", isFloating: !0, size: "small", children: [Te.jsx(NG, {}), " ", Te.jsx(LG, {}), " ", Te.jsx(jG, {})] }), + bottomRightIsland: Te.jsxs(uM, { orientation: "vertical", isFloating: !0, size: "small", children: [Te.jsx(NG, {}), " ", Te.jsx(LG, {}), " ", Te.jsx(jG, {})] }), topLeftIsland: null, topRightIsland: Te.jsxs("div", { className: "ndl-graph-visualization-default-download-group", children: [Te.jsx(FG, {}), " ", Te.jsx(BG, {})] }) }; -function zo(r) { +function io(r) { var e, t, { nvlRef: n, nvlCallbacks: i, nvlOptions: a, sidepanel: o, nodes: s, rels: u, highlightedNodeIds: l, highlightedRelationshipIds: c, topLeftIsland: f = Hw.topLeftIsland, topRightIsland: d = Hw.topRightIsland, bottomLeftIsland: h = Hw.bottomLeftIsland, bottomRightIsland: p = Hw.bottomRightIsland, gesture: g = "single", setGesture: y, layout: b, setLayout: _, selected: m, setSelected: x, interactionMode: E, setInteractionMode: O, mouseEventCallbacks: S = {}, className: T, style: P, htmlAttributes: I, ref: k, as: L } = r, B = Lle(r, ["nvlRef", "nvlCallbacks", "nvlOptions", "sidepanel", "nodes", "rels", "highlightedNodeIds", "highlightedRelationshipIds", "topLeftIsland", "topRightIsland", "bottomLeftIsland", "bottomRightIsland", "gesture", "setGesture", "layout", "setLayout", "selected", "setSelected", "interactionMode", "setInteractionMode", "mouseEventCallbacks", "className", "style", "htmlAttributes", "ref", "as"]); - const j = me.useMemo(() => n ?? ao.createRef(), [n]), z = me.useId(), { theme: H } = E2(), { bg: q, border: W, text: $ } = Xu.theme[H].color.neutral, [J, X] = me.useState(0); + const j = me.useMemo(() => n ?? oo.createRef(), [n]), z = me.useId(), { theme: H } = E2(), { bg: q, border: W, text: $ } = Xu.theme[H].color.neutral, [J, X] = me.useState(0); me.useEffect(() => { X((Y) => Y + 1); }, [H]); @@ -82047,7 +82047,7 @@ function zo(r) { onChange: o == null ? void 0 : o.onSidePanelResize, state: (t = o == null ? void 0 : o.sidePanelWidth) !== null && t !== void 0 ? t : 400 }), Ne = me.useMemo(() => o === void 0 ? { - children: Te.jsx(zo.SingleSelectionSidePanelContents, {}), + children: Te.jsx(io.SingleSelectionSidePanelContents, {}), isSidePanelOpen: ge, onSidePanelResize: De, setIsSidePanelOpen: Oe, @@ -82080,18 +82080,18 @@ function zo(r) { Y || (Q = j.current) === null || Q === void 0 || Q.fit(j.current.getNodes().map((ie) => ie.id), { noPan: !0 }); } }, i), mouseEventCallbacks: de, ref: j }, B), J), f !== null && Te.jsx(Vw, { placement: "top-left", children: f }), d !== null && Te.jsx(Vw, { placement: "top-right", children: d }), h !== null && Te.jsx(Vw, { placement: "bottom-left", children: h }), p !== null && Te.jsx(Vw, { placement: "bottom-right", children: p })] }), Ne && Te.jsx(ty, { sidepanel: Ne })] }) })); } -zo.ZoomInButton = NG; -zo.ZoomOutButton = LG; -zo.ZoomToFitButton = jG; -zo.ToggleSidePanelButton = BG; -zo.DownloadButton = FG; -zo.BoxSelectButton = rle; -zo.LassoSelectButton = nle; -zo.SingleSelectButton = tle; -zo.SearchButton = ile; -zo.SingleSelectionSidePanelContents = Ile; -zo.LayoutSelectButton = ole; -zo.GestureSelectButton = ule; +io.ZoomInButton = NG; +io.ZoomOutButton = LG; +io.ZoomToFitButton = jG; +io.ToggleSidePanelButton = BG; +io.DownloadButton = FG; +io.BoxSelectButton = rle; +io.LassoSelectButton = nle; +io.SingleSelectButton = tle; +io.SearchButton = ile; +io.SingleSelectionSidePanelContents = Ile; +io.LayoutSelectButton = ole; +io.GestureSelectButton = ule; function Fle(r) { return Array.isArray(r) && r.every((e) => typeof e == "string"); } @@ -82210,7 +82210,7 @@ function Hle() { [c] ), [m, x] = me.useState(!1), [E, O] = me.useState(300); return /* @__PURE__ */ Te.jsx("div", { style: { height: i ?? "600px", width: a ?? "100%" }, children: /* @__PURE__ */ Te.jsx( - zo, + io, { nodes: y, rels: b, @@ -82227,17 +82227,21 @@ function Hle() { setIsSidePanelOpen: x, onSidePanelResize: O, sidePanelWidth: E, - children: /* @__PURE__ */ Te.jsx(zo.SingleSelectionSidePanelContents, {}) + children: /* @__PURE__ */ Te.jsx(io.SingleSelectionSidePanelContents, {}) }, - bottomRightIsland: /* @__PURE__ */ Te.jsxs(q7, { size: "medium", children: [ - /* @__PURE__ */ Te.jsx(zo.GestureSelectButton, { menuPlacement: "top-end-bottom-end" }), - /* @__PURE__ */ Te.jsx(JP, { orientation: "horizontal" }), - /* @__PURE__ */ Te.jsx(zo.ZoomInButton, {}), - /* @__PURE__ */ Te.jsx(zo.ZoomOutButton, {}), - /* @__PURE__ */ Te.jsx(zo.ZoomToFitButton, {}), + topRightIsland: /* @__PURE__ */ Te.jsxs(uM, { size: "medium", children: [ + /* @__PURE__ */ Te.jsx(io.DownloadButton, {}), + /* @__PURE__ */ Te.jsx(io.ToggleSidePanelButton, {}) + ] }), + bottomRightIsland: /* @__PURE__ */ Te.jsxs(uM, { size: "medium", orientation: "vertical", children: [ + /* @__PURE__ */ Te.jsx(io.GestureSelectButton, { menuPlacement: "top-end-bottom-end" }), + /* @__PURE__ */ Te.jsx(JP, { orientation: "vertical" }), + /* @__PURE__ */ Te.jsx(io.ZoomInButton, {}), + /* @__PURE__ */ Te.jsx(io.ZoomOutButton, {}), + /* @__PURE__ */ Te.jsx(io.ZoomToFitButton, {}), p && /* @__PURE__ */ Te.jsxs(Te.Fragment, { children: [ - /* @__PURE__ */ Te.jsx(JP, { orientation: "horizontal" }), - /* @__PURE__ */ Te.jsx(zo.LayoutSelectButton, { menuPlacement: "top-end-bottom-end" }) + /* @__PURE__ */ Te.jsx(JP, { orientation: "vertical" }), + /* @__PURE__ */ Te.jsx(io.LayoutSelectButton, { menuPlacement: "top-end-bottom-end" }) ] }) ] }) } diff --git a/python-wrapper/uv.lock b/python-wrapper/uv.lock index 6c3cb39..c955817 100644 --- a/python-wrapper/uv.lock +++ b/python-wrapper/uv.lock @@ -1151,7 +1151,7 @@ wheels = [ [[package]] name = "ipykernel" -version = "7.1.0" +version = "7.2.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "appnope", marker = "sys_platform == 'darwin'" }, @@ -1169,9 +1169,9 @@ dependencies = [ { name = "tornado" }, { name = "traitlets" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/b9/a4/4948be6eb88628505b83a1f2f40d90254cab66abf2043b3c40fa07dfce0f/ipykernel-7.1.0.tar.gz", hash = "sha256:58a3fc88533d5930c3546dc7eac66c6d288acde4f801e2001e65edc5dc9cf0db", size = 174579, upload-time = "2025-10-27T09:46:39.471Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ca/8d/b68b728e2d06b9e0051019640a40a9eb7a88fcd82c2e1b5ce70bef5ff044/ipykernel-7.2.0.tar.gz", hash = "sha256:18ed160b6dee2cbb16e5f3575858bc19d8f1fe6046a9a680c708494ce31d909e", size = 176046, upload-time = "2026-02-06T16:43:27.403Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a3/17/20c2552266728ceba271967b87919664ecc0e33efca29c3efc6baf88c5f9/ipykernel-7.1.0-py3-none-any.whl", hash = "sha256:763b5ec6c5b7776f6a8d7ce09b267693b4e5ce75cb50ae696aaefb3c85e1ea4c", size = 117968, upload-time = "2025-10-27T09:46:37.805Z" }, + { url = "https://files.pythonhosted.org/packages/82/b9/e73d5d9f405cba7706c539aa8b311b49d4c2f3d698d9c12f815231169c71/ipykernel-7.2.0-py3-none-any.whl", hash = "sha256:3bbd4420d2b3cc105cbdf3756bfc04500b1e52f090a90716851f3916c62e1661", size = 118788, upload-time = "2026-02-06T16:43:25.149Z" }, ] [[package]] @@ -1268,6 +1268,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7b/55/e5326141505c5d5e34c5e0935d2908a74e4561eca44108fbfb9c13d2911a/isoduration-20.11.0-py3-none-any.whl", hash = "sha256:b2904c2a4228c3d44f409c8ae8e2370eb21a26f7ac2ec5446df141dde3452042", size = 11321, upload-time = "2020-11-01T10:59:58.02Z" }, ] +[[package]] +name = "itsdangerous" +version = "2.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9c/cb/8ac0172223afbccb63986cc25049b154ecfb5e85932587206f42317be31d/itsdangerous-2.2.0.tar.gz", hash = "sha256:e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173", size = 54410, upload-time = "2024-04-16T21:28:15.614Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/96/92447566d16df59b2a776c0fb82dbc4d9e07cd95062562af01e408583fc4/itsdangerous-2.2.0-py3-none-any.whl", hash = "sha256:c6242fc49e35958c8b15141343aa660db5fc54d4f13a1db01a3f5891b98700ef", size = 16234, upload-time = "2024-04-16T21:28:14.499Z" }, +] + [[package]] name = "jedi" version = "0.19.2" @@ -1713,6 +1722,156 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/fc/85/69f92b2a7b3c0f88ffe107c86b952b397004b5b8ea5a81da3d9c04c04422/librt-0.7.8-cp314-cp314t-win_arm64.whl", hash = "sha256:8766ece9de08527deabcd7cb1b4f1a967a385d26e33e536d6d8913db6ef74f06", size = 40550, upload-time = "2026-01-14T12:56:01.542Z" }, ] +[[package]] +name = "loro" +version = "1.10.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/27/ea6f3298fc87ea5f2d60ebfbca088e7d9b2ceb3993f67c83bfb81778ec01/loro-1.10.3.tar.gz", hash = "sha256:68184ab1c2ab94af6ad4aaba416d22f579cabee0b26cbb09a1f67858207bbce8", size = 68833, upload-time = "2025-12-09T10:14:06.644Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b1/af/517956be7153d3450263f35ca70b1d7845b404e197045274db07b869e26f/loro-1.10.3-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:7e7e3461439c57efaadfd364a5a504a849653cf408c97086033004dffb3f2857", size = 3258650, upload-time = "2025-12-09T10:11:29.657Z" }, + { url = "https://files.pythonhosted.org/packages/0d/a4/8a44499630922af97359971ab01738f568319cbfa5045830eda7393cc758/loro-1.10.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ed91dae34236f888c357b367d37b050ac4fa21ff30ab0231122f580ca87f46ba", size = 3061526, upload-time = "2025-12-09T10:11:14.823Z" }, + { url = "https://files.pythonhosted.org/packages/bb/93/2088ca72f21fbf59bd31a847a6fd989038dcf4179166e829631482410336/loro-1.10.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c5d417a99bae161ecb1250f3272a80c87f2ae546dfb705cadac3ebbc623b7382", size = 3287817, upload-time = "2025-12-09T10:08:11.002Z" }, + { url = "https://files.pythonhosted.org/packages/4a/72/136fbb2077a0fc92f97e94dc88f48bf515fab034b218d007afcede08eed5/loro-1.10.3-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4a9b821925c9051ee2653a519a99b1d2fc1177a4bac1f02b1f8eaec491f6d43b", size = 3349471, upload-time = "2025-12-09T10:08:45.441Z" }, + { url = "https://files.pythonhosted.org/packages/91/ab/6b484590ffcb2997a5f163ff26641c8ea9738cacb883f4aa3669dd720433/loro-1.10.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0ee8982a6b82660165e516932cda0e5fd7065023f35ae5e2d17562cf14969e87", size = 3708083, upload-time = "2025-12-09T10:09:23.623Z" }, + { url = "https://files.pythonhosted.org/packages/ba/7f/b44b0a6228d8f2aad70d8d93c4dc29d72ff4da223cd054c56dbdde9cada5/loro-1.10.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd391a27550dcf837c82d8ae4e420b4d3b16bdc5a698c3862540803a16bf52dd", size = 3416777, upload-time = "2025-12-09T10:09:57.794Z" }, + { url = "https://files.pythonhosted.org/packages/53/ad/df58cc6c7168fa4859ba16a447131a0212a07b68fa0250898be132fef365/loro-1.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e74235d480c6e9b362c6f2265a7d28dd848e6a6142a3c9d0831b82cf3776efee", size = 3347414, upload-time = "2025-12-09T10:10:51.95Z" }, + { url = "https://files.pythonhosted.org/packages/78/90/3d5bb124d4d333824779fd09b25026876b9670c09e5a384760abc7bc863a/loro-1.10.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:df7baf726db4e82f411f7a0454500047812f41bef9552109cb738b8f6ee89c9f", size = 3688343, upload-time = "2025-12-09T10:10:30.393Z" }, + { url = "https://files.pythonhosted.org/packages/74/01/c78b11ef4ecdbffb1236cdf2f010f89b4a9ad77554e67513aa88cd2280f4/loro-1.10.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:112d5eeaf76ca6dfbe811e6f6d18649ceeb7697626288ed1185bd1a7d4aae182", size = 3468739, upload-time = "2025-12-09T10:11:46.654Z" }, + { url = "https://files.pythonhosted.org/packages/0b/26/27123477c458c7e2f26da58d346efab87bb1dbf8f082ed3663cdb8b87581/loro-1.10.3-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:a2cbc231a07f11b82099b76386b1e5659687f4415d6f111699bbd4f291c945a4", size = 3618995, upload-time = "2025-12-09T10:12:22.466Z" }, + { url = "https://files.pythonhosted.org/packages/15/de/41d21b38d55685715ae6dd7c390dcd29521669ee7e7b8246e6cec71f480d/loro-1.10.3-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:dbf31ae00bae9c76a4429f73cec3fb3000f1b4d41603244793c660e17747ce1f", size = 3666508, upload-time = "2025-12-09T10:12:57.538Z" }, + { url = "https://files.pythonhosted.org/packages/38/94/4a8016e5d6400994a82834369aabfaa40cfb62b1f8f40c17bfc3e76ecff7/loro-1.10.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:98d8855a94e2123dab0e40fb5ac7760edbb9b87cd4b29608327899874721ed0b", size = 3558656, upload-time = "2025-12-09T10:13:32.685Z" }, + { url = "https://files.pythonhosted.org/packages/e1/f7/85bb7f6c953b078d74bbb0ec9bb161482c27dde49ed979ddea55c40aafd8/loro-1.10.3-cp310-cp310-win32.whl", hash = "sha256:b539f86cf5e44ad7eefd05772ec637985fddd31137deadca508cd8f3bad211a9", size = 2722340, upload-time = "2025-12-09T10:14:25.47Z" }, + { url = "https://files.pythonhosted.org/packages/ae/94/d7ef82e9698671f7529ba56b447b546312edcb40dadd4c71af25ea499033/loro-1.10.3-cp310-cp310-win_amd64.whl", hash = "sha256:a5da9963be9a323424695c04d9be836577705077a359d1bb4cabd43963ed2600", size = 2952931, upload-time = "2025-12-09T10:14:07.521Z" }, + { url = "https://files.pythonhosted.org/packages/7d/bb/61f36aac7981f84ffba922ac1220505365df3e064bc91c015790bff92007/loro-1.10.3-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:7ee0e1c9a6d0e4a1df4f1847d3b31cef8088860c1193442f131936d084bd3fe1", size = 3254532, upload-time = "2025-12-09T10:11:31.215Z" }, + { url = "https://files.pythonhosted.org/packages/15/28/5708da252eb6be90131338b104e5030c9b815c41f9e97647391206bec092/loro-1.10.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d7225471b29a892a10589d7cf59c70b0e4de502fa20da675e9aaa1060c7703ae", size = 3055231, upload-time = "2025-12-09T10:11:16.111Z" }, + { url = "https://files.pythonhosted.org/packages/16/b6/68c350a39fd96f24c55221f883230aa83db0bb5f5d8e9776ccdb25ea1f7b/loro-1.10.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fc04a714e0a604e191279501fa4d2db3b39cee112275f31e87d95ecfbafdfb6c", size = 3286945, upload-time = "2025-12-09T10:08:12.633Z" }, + { url = "https://files.pythonhosted.org/packages/23/af/8245b8a20046423e035cd17de9811ab1b27fc9e73425394c34387b41cc13/loro-1.10.3-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:375c888a4ddf758b034eb6ebd093348547d17364fae72aa7459d1358e4843b1f", size = 3349533, upload-time = "2025-12-09T10:08:46.754Z" }, + { url = "https://files.pythonhosted.org/packages/cc/8c/d764c60914e45a2b8c562e01792172e3991430103c019cc129d56c24c868/loro-1.10.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2020d9384a426e91a7d38c9d0befd42e8ad40557892ed50d47aad79f8d92b654", size = 3704622, upload-time = "2025-12-09T10:09:25.068Z" }, + { url = "https://files.pythonhosted.org/packages/54/cc/ebdbdf0b1c7a223fe84fc0de78678904ed6424b426f90b98503b95b1dff9/loro-1.10.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:95afacd832dce152700c2bc643f7feb27d5611fc97b5141684b5831b22845380", size = 3416659, upload-time = "2025-12-09T10:09:59.107Z" }, + { url = "https://files.pythonhosted.org/packages/fa/bc/db7f3fc619483b60c03d85b4f9bb5812b2229865b574c8802b46a578f545/loro-1.10.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7c95868bcf6361d700e215f33a88b8f51d7bc3ae7bbe3d35998148932e23d3fa", size = 3345007, upload-time = "2025-12-09T10:10:53.327Z" }, + { url = "https://files.pythonhosted.org/packages/91/65/bcd3b1d3a3615e679177c1256f2e0ff7ee242c3d5d1b9cb725b0ec165b51/loro-1.10.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:68f5c7fad09d8937ef4b55e7dd4a0f9f175f026369b3f55a5b054d3513f6846d", size = 3687874, upload-time = "2025-12-09T10:10:31.674Z" }, + { url = "https://files.pythonhosted.org/packages/3a/e4/0d51e2da2ae6143bfd03f7127b9daf58a3f8dae9d5ca7740ccba63a04de4/loro-1.10.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:740bb548139d71eccd6317f3df40a0dc5312e98bbb2be09a6e4aaddcaf764206", size = 3467200, upload-time = "2025-12-09T10:11:47.994Z" }, + { url = "https://files.pythonhosted.org/packages/06/99/ada2baeaf6496e34962fe350cd41129e583219bf4ce5e680c37baa0613a8/loro-1.10.3-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:c756a6ee37ed851e9cf91e5fedbc68ca21e05969c4e2ec6531c15419a4649b58", size = 3618468, upload-time = "2025-12-09T10:12:24.182Z" }, + { url = "https://files.pythonhosted.org/packages/87/ec/83335935959c5e3946e02b748af71d801412b2aa3876f870beae1cd56d4d/loro-1.10.3-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:3553390518e188c055b56bcbae76bf038329f9c3458cb1d69068c55b3f8f49f1", size = 3666852, upload-time = "2025-12-09T10:12:59.117Z" }, + { url = "https://files.pythonhosted.org/packages/9f/53/1bd455b3254afa35638d617e06c65a22e604b1fae2f494abb9a621c8e69b/loro-1.10.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0885388c0c2b53f5140229921bd64c7838827e3101a05d4d53346191ba76b15d", size = 3556829, upload-time = "2025-12-09T10:13:34.002Z" }, + { url = "https://files.pythonhosted.org/packages/66/30/6f48726ef50f911751c6b69d7fa81482cac70d4ed817216f846776fec28c/loro-1.10.3-cp311-cp311-win32.whl", hash = "sha256:764b68c4ff0411399c9cf936d8b6db1161ec445388ff2944a25bbdeb2bbac15c", size = 2723776, upload-time = "2025-12-09T10:14:27.261Z" }, + { url = "https://files.pythonhosted.org/packages/69/39/0b08203d94a6f200bbfefa8025a1b825c8cfb30e8cc8b2a1224629150d08/loro-1.10.3-cp311-cp311-win_amd64.whl", hash = "sha256:9e583e6aabd6f9b2bdf3ff3f6e0de10c3f7f8ab9d4c05c01a9ecca309c969017", size = 2950529, upload-time = "2025-12-09T10:14:08.857Z" }, + { url = "https://files.pythonhosted.org/packages/dd/b6/cfbf8088e8ca07d66e6c1eccde42e00bd61708f28e8ea0936f9582306323/loro-1.10.3-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:028948b48dcc5c2127f974dae4ad466ab69f0d1eeaf367a8145eb6501fb988f2", size = 3239592, upload-time = "2025-12-09T10:11:32.505Z" }, + { url = "https://files.pythonhosted.org/packages/78/e4/7b614260bf16c5e33c0bea6ac47ab0284efd21f89f2e5e4e15cd93bead40/loro-1.10.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5253b8f436d90412b373c583f22ac9539cfb495bf88f78d4bb41daafef0830b7", size = 3045107, upload-time = "2025-12-09T10:11:17.481Z" }, + { url = "https://files.pythonhosted.org/packages/ae/17/0a78ec341ca69d376629ff2a1b9b3511ee7dd54f2b018616ef03328024f7/loro-1.10.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:14be8a5539d49468c94d65742355dbe79745123d78bf769a23e53bf9b60dd46a", size = 3292720, upload-time = "2025-12-09T10:08:14.027Z" }, + { url = "https://files.pythonhosted.org/packages/d4/9b/f36a4654508e9b8ddbe08a62a0ce8b8e7fd511a39b161821917530cffd8e/loro-1.10.3-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:91b2b9139dfc5314a0197132a53b6673fddb63738380a522d12a05cec7ad76b4", size = 3353260, upload-time = "2025-12-09T10:08:48.251Z" }, + { url = "https://files.pythonhosted.org/packages/b4/0e/7d441ddecc7695153dbe68af4067d62e8d7607fce3747a184878456a91f6/loro-1.10.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:247897288911c712ee7746965573299fc23ce091e94456da8da371e6adae30f4", size = 3712354, upload-time = "2025-12-09T10:09:26.38Z" }, + { url = "https://files.pythonhosted.org/packages/1c/33/10e66bb84599e61df124f76c00c5398eb59cbb6f69755f81c40f65a18344/loro-1.10.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:835abc6025eb5b6a0fe22c808472affc95e9a661b212400cfd88ba186b0d304c", size = 3422926, upload-time = "2025-12-09T10:10:00.347Z" }, + { url = "https://files.pythonhosted.org/packages/b2/70/00dc4246d9f3c69ecbb9bc36d5ad1a359884464a44711c665cb0afb1e9de/loro-1.10.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e660853617fc29e71bb7b796e6f2c21f7722c215f593a89e95cd4d8d5a32aca0", size = 3353092, upload-time = "2025-12-09T10:10:55.786Z" }, + { url = "https://files.pythonhosted.org/packages/19/37/60cc0353c5702e1e469b5d49d1762e782af5d5bd5e7c4e8c47556335b4c6/loro-1.10.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8059063cab57ca521012ed315a454784c20b0a86653e9014795e804e0a333659", size = 3687798, upload-time = "2025-12-09T10:10:33.253Z" }, + { url = "https://files.pythonhosted.org/packages/88/c4/4db1887eb08dfbb305d9424fdf1004c0edf147fd53ab0aaf64a90450567a/loro-1.10.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9748359343b5fd7019ab3c2d1d583a0c13c633a4dd21d75e50e3815ab479f493", size = 3474451, upload-time = "2025-12-09T10:11:49.489Z" }, + { url = "https://files.pythonhosted.org/packages/d8/66/10d2e00c43b05f56e96e62100f86a1261f8bbd6422605907f118a752fe61/loro-1.10.3-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:def7c9c2e16ad5470c9c56f096ac649dd4cd42d5936a32bb0817509a92d82467", size = 3621647, upload-time = "2025-12-09T10:12:25.536Z" }, + { url = "https://files.pythonhosted.org/packages/47/f0/ef8cd6654b09a03684195c650b1fba00f42791fa4844ea400d94030c5615/loro-1.10.3-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:34b223fab58591a823f439d9a13d1a1ddac18dc4316866503c588ae8a9147cb1", size = 3667946, upload-time = "2025-12-09T10:13:00.711Z" }, + { url = "https://files.pythonhosted.org/packages/bb/5d/960b62bf85c38d6098ea067438f037a761958f3a17ba674db0cf316b0f60/loro-1.10.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:9d5fa4baceb248d771897b76d1426c7656176e82e770f6790940bc3e3812436d", size = 3565866, upload-time = "2025-12-09T10:13:35.401Z" }, + { url = "https://files.pythonhosted.org/packages/8f/d4/0d499a5e00df13ce497263aef2494d9de9e9d1f11d8ab68f89328203befb/loro-1.10.3-cp312-cp312-win32.whl", hash = "sha256:f25ab769b84a5fbeb1f9a1111f5d28927eaeaa8f5d2d871e237f80eaca5c684e", size = 2720785, upload-time = "2025-12-09T10:14:28.79Z" }, + { url = "https://files.pythonhosted.org/packages/1a/9b/2b5be23f1da4cf20c6ce213cfffc66bdab2ea012595abc9e3383103793d0/loro-1.10.3-cp312-cp312-win_amd64.whl", hash = "sha256:3b73b7a3a32e60c3424fc7deaf8b127af7580948e27d8bbe749e3f43508aa0a2", size = 2954650, upload-time = "2025-12-09T10:14:10.235Z" }, + { url = "https://files.pythonhosted.org/packages/75/67/8467cc1c119149ada86903b67ce10fc4b47fb6eb2a8ca5f94c0938fd010f/loro-1.10.3-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:380ef692c5272e8b607be2ee6a8eef5113e65dc38e6739526c30e3db6abc3fbc", size = 3239527, upload-time = "2025-12-09T10:11:33.884Z" }, + { url = "https://files.pythonhosted.org/packages/bc/3b/d1a01af3446cb98890349215bea7e71ba49dc3e50ffbfb90c5649657a8b8/loro-1.10.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ed966ce6ff1fb3787b3f6c4ed6dd036baa5fb738b84a466a5e764f2ab534ccc2", size = 3044767, upload-time = "2025-12-09T10:11:18.777Z" }, + { url = "https://files.pythonhosted.org/packages/6b/93/37f891fa46767001ae2518697fb01fc187497e3a5238fe28102be626055d/loro-1.10.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d4d7c8d2f3d88578fdf69845a9ae16fc5ea3ac54aa838a6bf43a24ce11908220", size = 3292648, upload-time = "2025-12-09T10:08:15.404Z" }, + { url = "https://files.pythonhosted.org/packages/6c/67/82273eeba2416b0410595071eda1eefcdf4072c014d44d2501b660aa7145/loro-1.10.3-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:62283c345bfeedef19c8a6d029cd8830e5d2c20b5fb45975d8a70a8a30a7944b", size = 3353181, upload-time = "2025-12-09T10:08:50.144Z" }, + { url = "https://files.pythonhosted.org/packages/82/33/894dccf132bece82168dfbe61fad25a13ed89d18f20649f99e87c38f9228/loro-1.10.3-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d1e7e6ae091179fa5f0fca1f8612fde20236ee0a678744bf51ff7d26103ea04f", size = 3712583, upload-time = "2025-12-09T10:09:27.934Z" }, + { url = "https://files.pythonhosted.org/packages/b2/b7/99292729d8b271bcc4bff5faa20b33e4c749173af4c9cb9d34880ae3b4c8/loro-1.10.3-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6abc6de4876aa205498cef52a002bc38662fbd8d742351ea0f535479208b8b1c", size = 3421491, upload-time = "2025-12-09T10:10:01.63Z" }, + { url = "https://files.pythonhosted.org/packages/be/fb/188b808ef1d9b6d842d53969b99a16afb1b71f04739150959c8946345d0e/loro-1.10.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:acbbfd24cf28a71bbdad8544852e9bbba0ba8535f8221f8859b2693555fa8356", size = 3352623, upload-time = "2025-12-09T10:10:57.361Z" }, + { url = "https://files.pythonhosted.org/packages/53/cc/e2d008cc24bddcf05d1a15b8907a73b1731921ab40897f73a3385fdd274a/loro-1.10.3-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5faf4ebbe8ca39605024f16dbbbde354365f4e2dcfda82c753797461b504bbd3", size = 3687687, upload-time = "2025-12-09T10:10:34.453Z" }, + { url = "https://files.pythonhosted.org/packages/ec/b6/4251822674230027103caa4fd46a1e83c4d676500074e7ab297468bf8f40/loro-1.10.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e049c21b292c4ff992b23a98812840735db84620721c10ae7f047a921202d090", size = 3474316, upload-time = "2025-12-09T10:11:51.207Z" }, + { url = "https://files.pythonhosted.org/packages/c4/54/ecff3ec08d814f3b9ec1c78a14ecf2e7ff132a71b8520f6aa6ad1ace0056/loro-1.10.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:20e8dacfb827c1f7ffb73e127029d7995a9ab2c3b7b7bc3ecc91d22ee32d78d0", size = 3622069, upload-time = "2025-12-09T10:12:27.059Z" }, + { url = "https://files.pythonhosted.org/packages/ac/84/c1b8251000f46df5f4d043af8c711bdbff9818727d26429378e0f3a5115e/loro-1.10.3-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:1b743c1c4f93f5b4f0e12efbb352d26e9f80bcbf20f45d9c70f3d0b522f42060", size = 3667722, upload-time = "2025-12-09T10:13:02.012Z" }, + { url = "https://files.pythonhosted.org/packages/ef/13/c5c02776f4ad52c6361b95e1d7396c29071533cef45e3861a2e35745be27/loro-1.10.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:446d67bc9e28036a5a5e03526d28a1559ef2a47b3ccad6b07820dae123cc3697", size = 3564952, upload-time = "2025-12-09T10:13:37.227Z" }, + { url = "https://files.pythonhosted.org/packages/1e/f1/63d4bc63a1521a9b577f6d13538ec4790865584fdf87569d5af943792406/loro-1.10.3-cp313-cp313-win32.whl", hash = "sha256:45d7d8ec683599897695bb714771baccabc1b4c4a412283cc39787c7a59f7ff0", size = 2720952, upload-time = "2025-12-09T10:14:30.17Z" }, + { url = "https://files.pythonhosted.org/packages/29/3c/65c8b0b7f96c9b4fbd458867cf91f30fcd58ac25449d8ba9303586061671/loro-1.10.3-cp313-cp313-win_amd64.whl", hash = "sha256:a42bf73b99b07fed11b65feb0a5362b33b19de098f2235848687f4c41204830e", size = 2953768, upload-time = "2025-12-09T10:14:11.965Z" }, + { url = "https://files.pythonhosted.org/packages/4e/e9/f6a242f61aa4d8b56bd11fa467be27d416401d89cc3244b58651a3a44c88/loro-1.10.3-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4866325b154aeebcd34be106c7597acf150c374481ac3c12035a1af715ac0f01", size = 3289791, upload-time = "2025-12-09T10:08:16.926Z" }, + { url = "https://files.pythonhosted.org/packages/a7/81/8f5f4d6805658c654264e99467f3f46facdbb2062cbf86743768ee4b942a/loro-1.10.3-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ea7b8849660a28ce8cd90a82db4f76c23453836fcbc88f5767feaaf8739045e2", size = 3348007, upload-time = "2025-12-09T10:08:53.305Z" }, + { url = "https://files.pythonhosted.org/packages/c3/15/bba0fad18ec5561a140e9781fd2b38672210b52e847d207c57ae85379efd/loro-1.10.3-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9e82cdaf9a5892557d3167e07ed5093f87dfa31ef860a63b0eac6c0c2f435705", size = 3707937, upload-time = "2025-12-09T10:09:29.165Z" }, + { url = "https://files.pythonhosted.org/packages/7a/b2/5519c92bd4f9cde068dc60ba35d7f3e4f8cce41e7bf39febd4fb08908e97/loro-1.10.3-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c7ee99e5dc844fb20fca830906a0d721022ad1c37aad0b1a440c4ecb98d0c02f", size = 3416744, upload-time = "2025-12-09T10:10:02.956Z" }, + { url = "https://files.pythonhosted.org/packages/81/ba/92d97c27582c0ce12bb83df19b9e080c0dfe95068966296a4fa2279c0477/loro-1.10.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:153c297672ad98d0fe6ff8985decf1e64528ad1dd01ae1452bb83bdeb31f858f", size = 3470978, upload-time = "2025-12-09T10:11:52.707Z" }, + { url = "https://files.pythonhosted.org/packages/f3/8b/acb39b0e74af1c317d3121e75a4bc5bc77d7fda5a79c60399746486f60d9/loro-1.10.3-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:0ed72f8c6a5f521252ee726954055339abba3fcf00404fb4b5c2da168f0cce79", size = 3615039, upload-time = "2025-12-09T10:12:28.631Z" }, + { url = "https://files.pythonhosted.org/packages/4f/c3/154e3361e5ef42012f6842dbd93f8fbace6eec06517b5a4a9f8c4a46e873/loro-1.10.3-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:f612ab17acdac16c0139e63ff45b33175ebfb22e61a60eb7929a4583389348d6", size = 3663731, upload-time = "2025-12-09T10:13:03.557Z" }, + { url = "https://files.pythonhosted.org/packages/c6/dd/a283cf5b1c957e0bbc67503a10e17606a8f8c87f51d3cf3d83dc3a0ac88a/loro-1.10.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f2741db05c79f3618c954bac90f4572d28c01c243884453f379e9a8738f93d81", size = 3558807, upload-time = "2025-12-09T10:13:38.926Z" }, + { url = "https://files.pythonhosted.org/packages/8d/4a/a5340b6fdf4cd34d758bed23bd1f64063b3b1b41ff4ecc94ee39259ee9a7/loro-1.10.3-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:623cf7df17626aa55bc6ca54e89177dbe71a5f1c293e102d6153f43991a1a041", size = 3213589, upload-time = "2025-12-09T10:11:35.377Z" }, + { url = "https://files.pythonhosted.org/packages/00/93/5164e93a77e365a92def77c1258386daef233516a29fb674a3b9d973b8b8/loro-1.10.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d8e715d475f32a1462969aca27eeb3f998f309182978f55bc37ce5c515d92e90", size = 3029557, upload-time = "2025-12-09T10:11:20.076Z" }, + { url = "https://files.pythonhosted.org/packages/6c/30/94592d7c01f480ce99e1783b0d9203eb20ba2eab42575dabd384e3c9d1fa/loro-1.10.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:61e012a80e8c9fe248b9d0a76e91664c9479a72d976eaeed78f87b15b5d1d732", size = 3282335, upload-time = "2025-12-09T10:08:18.168Z" }, + { url = "https://files.pythonhosted.org/packages/e9/a8/7ae3c0b955aa638fa7dbd2d194c7759749a0d0d96a94805d5dec9b30eaea/loro-1.10.3-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:686ece56756acbaf80c986848915e9126a29a06d7a62209747e3ef1efc0bd8f6", size = 3333071, upload-time = "2025-12-09T10:08:55.314Z" }, + { url = "https://files.pythonhosted.org/packages/f7/10/151edebdb2bca626ad50911b761164ced16984b25b0b37b34b674ded8b29/loro-1.10.3-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3aa821c8871deca98f4605eb0c40fb26bcf82bd29c9e7fa33b183516c5395b11", size = 3698226, upload-time = "2025-12-09T10:09:30.474Z" }, + { url = "https://files.pythonhosted.org/packages/f4/ac/02a490e38466506b1003df4910d2a8ae582265023dae9e2217c98b56ea3f/loro-1.10.3-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:507d34137adb4148f79e1da7f89a21a4aab18565621a5dc2b389773fe98ac25b", size = 3407322, upload-time = "2025-12-09T10:10:04.199Z" }, + { url = "https://files.pythonhosted.org/packages/81/db/da51f2bcad81ca3733bc21e83f3b6752446436b565b90f5c350ad227ad01/loro-1.10.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:91d3b2e187ccfe2b14118a6e5617266fedcdf3435f6fa0a3db7b4afce8afa687", size = 3330268, upload-time = "2025-12-09T10:10:58.61Z" }, + { url = "https://files.pythonhosted.org/packages/4e/af/50d136c83d504a3a1f4ad33a6bf38b6933985a82741302255cf446a5f7ad/loro-1.10.3-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c0016f834fd1626710081334400aed8494380b55ef131f7133d21c3bd22d892a", size = 3673582, upload-time = "2025-12-09T10:10:35.849Z" }, + { url = "https://files.pythonhosted.org/packages/63/4d/53288aae777218e05c43af9c080652bcdbbc8d97c031607eedd3fc15617d/loro-1.10.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:71c4275dca5a8a86219d60545d4f60e081b4af44b490ac912c0481906934bfc6", size = 3463731, upload-time = "2025-12-09T10:11:54.102Z" }, + { url = "https://files.pythonhosted.org/packages/75/01/2389f26ffe8bc3ffe48a0a578f610dd49c709bbcf0d5d2642c6e2b52f490/loro-1.10.3-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:490f12571b2ed1a8eaf1edd3a7fffc55adac5010b1875fe1bb9e9af9a3907c38", size = 3602334, upload-time = "2025-12-09T10:12:30.082Z" }, + { url = "https://files.pythonhosted.org/packages/a7/16/07b64af13f5fcea025e003ca27bbd6f748217abbd4803dad88ea0900526c/loro-1.10.3-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a374a43cadaa48528a5411496481df9ae52bf01e513f4509e37d6c986f199c0e", size = 3657896, upload-time = "2025-12-09T10:13:04.86Z" }, + { url = "https://files.pythonhosted.org/packages/c9/2f/4050770d7675ceced71651fe76971d5c27456b7098c0de03a4ecdbb0a02d/loro-1.10.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:1a93b2ee59f1fa8d98dd552211fd5693551893b34c1dd2ba0324806d6d14022f", size = 3544339, upload-time = "2025-12-09T10:13:40.396Z" }, + { url = "https://files.pythonhosted.org/packages/c9/21/67e27cb404c968fc19a841d5c6277f13a17c69a56f49e3c15ea1c92a28eb/loro-1.10.3-cp314-cp314-win32.whl", hash = "sha256:baa863e3d869422e3320e822c0b1f87f5dc44cda903d1bd3b7a16f8413ce3d92", size = 2706731, upload-time = "2025-12-09T10:14:31.604Z" }, + { url = "https://files.pythonhosted.org/packages/08/54/6770cf36aeb994489375e9ab9c01201e70ab7cc286fa97e907aa41b1bae6/loro-1.10.3-cp314-cp314-win_amd64.whl", hash = "sha256:f10ed3ca89485f942b8b2de796ed9783edb990e7e570605232de77489e9f3548", size = 2933563, upload-time = "2025-12-09T10:14:13.805Z" }, + { url = "https://files.pythonhosted.org/packages/24/f5/eb089fd25eb428709dbe79fd4d36b82a00572aa54badd1dff62511a38fe3/loro-1.10.3-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2b4d049efb1953aebfc16fa0b445ff5a37d4d08a1ab93f3b5a577a454b7a5ded", size = 3282369, upload-time = "2025-12-09T10:08:20.011Z" }, + { url = "https://files.pythonhosted.org/packages/30/d7/692cb87c908f6a8af6cbfc10ebab69e16780e3796e11454c2b481b5c3817/loro-1.10.3-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:56ecad7fbac58aa8bee52bb261a764aeef6c7b39c20f0d69e8fad908ab2ca7d8", size = 3332530, upload-time = "2025-12-09T10:08:57.07Z" }, + { url = "https://files.pythonhosted.org/packages/54/46/ed3afbf749288b6f70f3b859a6762538818bf6a557ca873b07d6b036946b/loro-1.10.3-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5d8d1be349d08b3a95592c6a17b80b1ea6aef892b1b8e2b93b540062d04e34e0", size = 3702599, upload-time = "2025-12-09T10:09:31.779Z" }, + { url = "https://files.pythonhosted.org/packages/fe/30/6cb616939c12bfe96a71a01a6e3551febf1c34bf9de114fafadbcfb65064/loro-1.10.3-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1ec0a0b9bc4e32c46f14710062ec5b536c72110318aaf85632a4f8b37e9a470a", size = 3404412, upload-time = "2025-12-09T10:10:05.448Z" }, + { url = "https://files.pythonhosted.org/packages/02/a2/3d4006d3333589f9158ac6d403979bf5c985be8b461b18e7a2ea23b05414/loro-1.10.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c5d4437987f7a4a4ff5927f39d0f43ded5b34295dfb0a3c8e150687e25c3d6b8", size = 3462948, upload-time = "2025-12-09T10:11:55.405Z" }, + { url = "https://files.pythonhosted.org/packages/41/30/c640ccd3e570b08770a9f459decc2d8e7ceefdc34ac28a745418fb9cb5ba/loro-1.10.3-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:86d4f0c631ca274ad2fa2c0bdb8e1e141882d94339b7284a8bef5bf73fa6957d", size = 3599851, upload-time = "2025-12-09T10:12:31.759Z" }, + { url = "https://files.pythonhosted.org/packages/59/8f/062ea50554c47ae30e98b1f0442a458c0edecc6d4edc7fcfc4d901734dd0/loro-1.10.3-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:15e03084ff1b472e14623183ed6e1e43e0f717c2112697beda5e69b5bd0ff236", size = 3655558, upload-time = "2025-12-09T10:13:06.529Z" }, + { url = "https://files.pythonhosted.org/packages/f3/f5/c7dd8cdbd57454b23d89799c22cd42b6d2dda283cd87d7b198dc424a462c/loro-1.10.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:42d6a5ce5bc518eaa682413e82d597299650eeb03e8bc39341752d6e0d22503e", size = 3541282, upload-time = "2025-12-09T10:13:42.189Z" }, + { url = "https://files.pythonhosted.org/packages/2d/12/0ec38fe0a1fa6b8e76989bbbbf22bdd34f8824ce6934c97f94ca50dba49c/loro-1.10.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55214615c1cb9f727a5278f5e57b9660743e7d095e08899e8936f174a45471b9", size = 3284859, upload-time = "2025-12-09T10:08:24.621Z" }, + { url = "https://files.pythonhosted.org/packages/c1/26/c01691a85fe1047dcc0398054124069af92b8ce1602eaabbe9b7e0fac1f1/loro-1.10.3-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:10591fa32dc628f770da472beac7544d2ba16a3a22d590211364331c5871b9f6", size = 3349886, upload-time = "2025-12-09T10:09:01.286Z" }, + { url = "https://files.pythonhosted.org/packages/53/35/3fcd13a2ae7686b467b5210b991e1682576a4be7e121bc9f8690c3d59929/loro-1.10.3-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f18df6892097603e5bd2e149384d4bcb996be8a3b6ba10d3da74bce39e1d5093", size = 3703226, upload-time = "2025-12-09T10:09:36.464Z" }, + { url = "https://files.pythonhosted.org/packages/b1/47/52ce515ac76893f57ed071bb1d5cd3687a059cf1e81e66535364b9581ed6/loro-1.10.3-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0a8911b8cd97652a04e22481dd90b3c8d286f12c8d8286a4e34a655835dd6506", size = 3413121, upload-time = "2025-12-09T10:10:09.528Z" }, + { url = "https://files.pythonhosted.org/packages/e5/1c/39f39e731d3af9c387e4238bd8da8e545e16922524bc0bca991d3ce475e1/loro-1.10.3-pp310-pypy310_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:73d5737c95bccf725950555c51374e5823c9be16bfc5496d8c1fafb2bb04690f", size = 3466280, upload-time = "2025-12-09T10:11:59.889Z" }, + { url = "https://files.pythonhosted.org/packages/54/f9/b85b76b882f1e62da461552157b061dd79c52c59afd8074969f04fb32a2c/loro-1.10.3-pp310-pypy310_pp73-musllinux_1_2_armv7l.whl", hash = "sha256:fa875a691556daaedb639dc920ee9c3743745eea2aa4c7fd914841e31b92c556", size = 3617971, upload-time = "2025-12-09T10:12:36.704Z" }, + { url = "https://files.pythonhosted.org/packages/90/1a/ef79aa94144453157bc139e341b983640fcda70bf2e8fdc6120773f210a0/loro-1.10.3-pp310-pypy310_pp73-musllinux_1_2_i686.whl", hash = "sha256:e7ddfd247fa3ae3c05d38019fb1424a903ea98e5730a10105081f5f7dc08f9c1", size = 3663111, upload-time = "2025-12-09T10:13:11.173Z" }, + { url = "https://files.pythonhosted.org/packages/96/b4/ca47f1b4b926a4b0dd3a7d7f0edd46a63e74b64c2b628c0463f25f0f1dd2/loro-1.10.3-pp310-pypy310_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:033a456647d487d61af82ea96aff95a789a3776441ea8af86556f2877867530d", size = 3554651, upload-time = "2025-12-09T10:13:46.496Z" }, + { url = "https://files.pythonhosted.org/packages/43/1a/49e864102721e0e15a4e4c56d7f2dddad5cd589c2d0aceafe14990513583/loro-1.10.3-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:16ca42e991589ea300b59da9e98940d5ddda76275fe4363b1f1e079d244403a1", size = 3284236, upload-time = "2025-12-09T10:08:25.836Z" }, + { url = "https://files.pythonhosted.org/packages/e9/c6/d46b433105d8002e4c90248c07f00cd2c8ea76f1048cc5f35b733be96723/loro-1.10.3-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b9ca16dae359397aa7772891bb3967939ffda8da26e0b392d331b506e16afc78", size = 3348996, upload-time = "2025-12-09T10:09:03.951Z" }, + { url = "https://files.pythonhosted.org/packages/e7/f3/e918c7b396c547b22a7ab3cff1b570c5ce94293f0dcb17cd96cbe6ba2d50/loro-1.10.3-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d87cfc0a6e119c1c8cfa93078f5d012e557c6b75edcd0977da58ec46d28dc242", size = 3701875, upload-time = "2025-12-09T10:09:37.924Z" }, + { url = "https://files.pythonhosted.org/packages/4c/67/140ecb65b4f436099ad674fbe7502378156f43b737cb43f5fd76c42a0da8/loro-1.10.3-pp311-pypy311_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4541ed987306c51e718f51196fd2b2d05e87b323da5d850b37900d2e8ac6aae6", size = 3412283, upload-time = "2025-12-09T10:10:10.946Z" }, + { url = "https://files.pythonhosted.org/packages/d0/93/b7b41cf8b3e591b7191494e12be24cbb101f137fe82f0a24ed7934bbacf3/loro-1.10.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ce0b0a500e08b190038380d4593efcb33c98ed4282cc8347ca6ce55d05cbdf6e", size = 3340580, upload-time = "2025-12-09T10:11:02.956Z" }, + { url = "https://files.pythonhosted.org/packages/94/19/fdc9ea9ce6510147460200c90164a84c22b0cc9e33f7dd5c0d5f76484314/loro-1.10.3-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:987dbcb42b4b8d2c799660a6d8942e53ae346f51d51c9ad7ef5d7e640422fe4a", size = 3680924, upload-time = "2025-12-09T10:10:39.877Z" }, + { url = "https://files.pythonhosted.org/packages/40/61/548491499394fe02e7451b0d7367f7eeed32f0f6dd8f1826be8b4c329f28/loro-1.10.3-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:f876d477cb38c6c623c4ccb5dc4b7041dbeff04167bf9c19fa461d57a3a1b916", size = 3465033, upload-time = "2025-12-09T10:12:03.122Z" }, + { url = "https://files.pythonhosted.org/packages/26/68/d8bebb6b583fe5a3dc4da32c9070964548e3ca1d524f383c71f9becf4197/loro-1.10.3-pp311-pypy311_pp73-musllinux_1_2_armv7l.whl", hash = "sha256:641c8445bd1e4181b5b28b75a0bc544ef51f065b15746e8714f90e2e029b5202", size = 3616740, upload-time = "2025-12-09T10:12:38.187Z" }, + { url = "https://files.pythonhosted.org/packages/52/9b/8f8ecc85eb925122a79348eb77ff7109a7ee41ee7d1a282122be2daff378/loro-1.10.3-pp311-pypy311_pp73-musllinux_1_2_i686.whl", hash = "sha256:a6ab6244472402b8d1f4f77e5210efa44dfa4914423cafcfcbd09232ea8bbff0", size = 3661160, upload-time = "2025-12-09T10:13:12.513Z" }, + { url = "https://files.pythonhosted.org/packages/79/3c/e884d06859f9a9fc64afd21c426b9d681af0856181c1fe66571a65d35ef7/loro-1.10.3-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:ae4c765671ee7d7618962ec11cb3bb471965d9b88c075166fe383263235d58d6", size = 3553653, upload-time = "2025-12-09T10:13:47.917Z" }, +] + +[[package]] +name = "marimo" +version = "0.20.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "docutils" }, + { name = "itsdangerous" }, + { name = "jedi" }, + { name = "loro" }, + { name = "markdown" }, + { name = "msgspec" }, + { name = "narwhals" }, + { name = "packaging" }, + { name = "psutil" }, + { name = "pygments" }, + { name = "pymdown-extensions" }, + { name = "pyyaml" }, + { name = "starlette" }, + { name = "tomlkit" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, + { name = "uvicorn" }, + { name = "websockets" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d4/be/84a28265e1698dbac439de8a1d428a18e07c4dd23fa72df72e8b4922e3ff/marimo-0.20.2.tar.gz", hash = "sha256:cdab009b65d58d571640ab8bb2ede68ab3b755c8f99f06b934a23f3b8aba3f34", size = 38237601, upload-time = "2026-02-22T20:19:42.198Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/93/55/6d128565bb18cb1f64707742bdbf05f7b1674e4063f70500de97b0be6a3e/marimo-0.20.2-py3-none-any.whl", hash = "sha256:f94a1bd19fa85219d0549281776e7ec4c9253d5d5849d6f2459cc3ab868abbc5", size = 38645577, upload-time = "2026-02-22T20:19:37.298Z" }, +] + +[[package]] +name = "markdown" +version = "3.10.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2b/f4/69fa6ed85ae003c2378ffa8f6d2e3234662abd02c10d216c0ba96081a238/markdown-3.10.2.tar.gz", hash = "sha256:994d51325d25ad8aa7ce4ebaec003febcce822c3f8c911e3b17c52f7f589f950", size = 368805, upload-time = "2026-02-09T14:57:26.942Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/1f/77fa3081e4f66ca3576c896ae5d31c3002ac6607f9747d2e3aa49227e464/markdown-3.10.2-py3-none-any.whl", hash = "sha256:e91464b71ae3ee7afd3017d9f358ef0baf158fd9a298db92f1d4761133824c36", size = 108180, upload-time = "2026-02-09T14:57:25.787Z" }, +] + [[package]] name = "markupsafe" version = "3.0.3" @@ -1967,6 +2126,62 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/81/f2/08ace4142eb281c12701fc3b93a10795e4d4dc7f753911d836675050f886/msgpack-1.1.2-cp314-cp314t-win_arm64.whl", hash = "sha256:d99ef64f349d5ec3293688e91486c5fdb925ed03807f64d98d205d2713c60b46", size = 70868, upload-time = "2025-10-08T09:15:44.959Z" }, ] +[[package]] +name = "msgspec" +version = "0.20.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ea/9c/bfbd12955a49180cbd234c5d29ec6f74fe641698f0cd9df154a854fc8a15/msgspec-0.20.0.tar.gz", hash = "sha256:692349e588fde322875f8d3025ac01689fead5901e7fb18d6870a44519d62a29", size = 317862, upload-time = "2025-11-24T03:56:28.934Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e3/5e/151883ba2047cca9db8ed2f86186b054ad200bc231352df15b0c1dd75b1f/msgspec-0.20.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:23a6ec2a3b5038c233b04740a545856a068bc5cb8db184ff493a58e08c994fbf", size = 195191, upload-time = "2025-11-24T03:55:08.549Z" }, + { url = "https://files.pythonhosted.org/packages/50/88/a795647672f547c983eff0823b82aaa35db922c767e1b3693e2dcf96678d/msgspec-0.20.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cde2c41ed3eaaef6146365cb0d69580078a19f974c6cb8165cc5dcd5734f573e", size = 188513, upload-time = "2025-11-24T03:55:10.008Z" }, + { url = "https://files.pythonhosted.org/packages/4b/91/eb0abb0e0de142066cebfe546dc9140c5972ea824aa6ff507ad0b6a126ac/msgspec-0.20.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5da0daa782f95d364f0d95962faed01e218732aa1aa6cad56b25a5d2092e75a4", size = 216370, upload-time = "2025-11-24T03:55:11.566Z" }, + { url = "https://files.pythonhosted.org/packages/15/2a/48e41d9ef0a24b1c6e67cbd94a676799e0561bfbc163be1aaaff5ca853f5/msgspec-0.20.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9369d5266144bef91be2940a3821e03e51a93c9080fde3ef72728c3f0a3a8bb7", size = 222653, upload-time = "2025-11-24T03:55:13.159Z" }, + { url = "https://files.pythonhosted.org/packages/90/c9/14b825df203d980f82a623450d5f39e7f7a09e6e256c52b498ea8f29d923/msgspec-0.20.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:90fb865b306ca92c03964a5f3d0cd9eb1adda14f7e5ac7943efd159719ea9f10", size = 222337, upload-time = "2025-11-24T03:55:14.777Z" }, + { url = "https://files.pythonhosted.org/packages/8b/d7/39a5c3ddd294f587d6fb8efccc8361b6aa5089974015054071e665c9d24b/msgspec-0.20.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e8112cd48b67dfc0cfa49fc812b6ce7eb37499e1d95b9575061683f3428975d3", size = 225565, upload-time = "2025-11-24T03:55:16.4Z" }, + { url = "https://files.pythonhosted.org/packages/98/bd/5db3c14d675ee12842afb9b70c94c64f2c873f31198c46cbfcd7dffafab0/msgspec-0.20.0-cp310-cp310-win_amd64.whl", hash = "sha256:666b966d503df5dc27287675f525a56b6e66a2b8e8ccd2877b0c01328f19ae6c", size = 188412, upload-time = "2025-11-24T03:55:17.747Z" }, + { url = "https://files.pythonhosted.org/packages/76/c7/06cc218bc0c86f0c6c6f34f7eeea6cfb8b835070e8031e3b0ef00f6c7c69/msgspec-0.20.0-cp310-cp310-win_arm64.whl", hash = "sha256:099e3e85cd5b238f2669621be65f0728169b8c7cb7ab07f6137b02dc7feea781", size = 173951, upload-time = "2025-11-24T03:55:19.335Z" }, + { url = "https://files.pythonhosted.org/packages/03/59/fdcb3af72f750a8de2bcf39d62ada70b5eb17b06d7f63860e0a679cb656b/msgspec-0.20.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:09e0efbf1ac641fedb1d5496c59507c2f0dc62a052189ee62c763e0aae217520", size = 193345, upload-time = "2025-11-24T03:55:20.613Z" }, + { url = "https://files.pythonhosted.org/packages/5a/15/3c225610da9f02505d37d69a77f4a2e7daae2a125f99d638df211ba84e59/msgspec-0.20.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:23ee3787142e48f5ee746b2909ce1b76e2949fbe0f97f9f6e70879f06c218b54", size = 186867, upload-time = "2025-11-24T03:55:22.4Z" }, + { url = "https://files.pythonhosted.org/packages/81/36/13ab0c547e283bf172f45491edfdea0e2cecb26ae61e3a7b1ae6058b326d/msgspec-0.20.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:81f4ac6f0363407ac0465eff5c7d4d18f26870e00674f8fcb336d898a1e36854", size = 215351, upload-time = "2025-11-24T03:55:23.958Z" }, + { url = "https://files.pythonhosted.org/packages/6b/96/5c095b940de3aa6b43a71ec76275ac3537b21bd45c7499b5a17a429110fa/msgspec-0.20.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bb4d873f24ae18cd1334f4e37a178ed46c9d186437733351267e0a269bdf7e53", size = 219896, upload-time = "2025-11-24T03:55:25.356Z" }, + { url = "https://files.pythonhosted.org/packages/98/7a/81a7b5f01af300761087b114dafa20fb97aed7184d33aab64d48874eb187/msgspec-0.20.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:b92b8334427b8393b520c24ff53b70f326f79acf5f74adb94fd361bcff8a1d4e", size = 220389, upload-time = "2025-11-24T03:55:26.99Z" }, + { url = "https://files.pythonhosted.org/packages/70/c0/3d0cce27db9a9912421273d49eab79ce01ecd2fed1a2f1b74af9b445f33c/msgspec-0.20.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:562c44b047c05cc0384e006fae7a5e715740215c799429e0d7e3e5adf324285a", size = 223348, upload-time = "2025-11-24T03:55:28.311Z" }, + { url = "https://files.pythonhosted.org/packages/89/5e/406b7d578926b68790e390d83a1165a9bfc2d95612a1a9c1c4d5c72ea815/msgspec-0.20.0-cp311-cp311-win_amd64.whl", hash = "sha256:d1dcc93a3ce3d3195985bfff18a48274d0b5ffbc96fa1c5b89da6f0d9af81b29", size = 188713, upload-time = "2025-11-24T03:55:29.553Z" }, + { url = "https://files.pythonhosted.org/packages/47/87/14fe2316624ceedf76a9e94d714d194cbcb699720b210ff189f89ca4efd7/msgspec-0.20.0-cp311-cp311-win_arm64.whl", hash = "sha256:aa387aa330d2e4bd69995f66ea8fdc87099ddeedf6fdb232993c6a67711e7520", size = 174229, upload-time = "2025-11-24T03:55:31.107Z" }, + { url = "https://files.pythonhosted.org/packages/d9/6f/1e25eee957e58e3afb2a44b94fa95e06cebc4c236193ed0de3012fff1e19/msgspec-0.20.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2aba22e2e302e9231e85edc24f27ba1f524d43c223ef5765bd8624c7df9ec0a5", size = 196391, upload-time = "2025-11-24T03:55:32.677Z" }, + { url = "https://files.pythonhosted.org/packages/7f/ee/af51d090ada641d4b264992a486435ba3ef5b5634bc27e6eb002f71cef7d/msgspec-0.20.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:716284f898ab2547fedd72a93bb940375de9fbfe77538f05779632dc34afdfde", size = 188644, upload-time = "2025-11-24T03:55:33.934Z" }, + { url = "https://files.pythonhosted.org/packages/49/d6/9709ee093b7742362c2934bfb1bbe791a1e09bed3ea5d8a18ce552fbfd73/msgspec-0.20.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:558ed73315efa51b1538fa8f1d3b22c8c5ff6d9a2a62eff87d25829b94fc5054", size = 218852, upload-time = "2025-11-24T03:55:35.575Z" }, + { url = "https://files.pythonhosted.org/packages/5c/a2/488517a43ccf5a4b6b6eca6dd4ede0bd82b043d1539dd6bb908a19f8efd3/msgspec-0.20.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:509ac1362a1d53aa66798c9b9fd76872d7faa30fcf89b2fba3bcbfd559d56eb0", size = 224937, upload-time = "2025-11-24T03:55:36.859Z" }, + { url = "https://files.pythonhosted.org/packages/d5/e8/49b832808aa23b85d4f090d1d2e48a4e3834871415031ed7c5fe48723156/msgspec-0.20.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1353c2c93423602e7dea1aa4c92f3391fdfc25ff40e0bacf81d34dbc68adb870", size = 222858, upload-time = "2025-11-24T03:55:38.187Z" }, + { url = "https://files.pythonhosted.org/packages/9f/56/1dc2fa53685dca9c3f243a6cbecd34e856858354e455b77f47ebd76cf5bf/msgspec-0.20.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:cb33b5eb5adb3c33d749684471c6a165468395d7aa02d8867c15103b81e1da3e", size = 227248, upload-time = "2025-11-24T03:55:39.496Z" }, + { url = "https://files.pythonhosted.org/packages/5a/51/aba940212c23b32eedce752896205912c2668472ed5b205fc33da28a6509/msgspec-0.20.0-cp312-cp312-win_amd64.whl", hash = "sha256:fb1d934e435dd3a2b8cf4bbf47a8757100b4a1cfdc2afdf227541199885cdacb", size = 190024, upload-time = "2025-11-24T03:55:40.829Z" }, + { url = "https://files.pythonhosted.org/packages/41/ad/3b9f259d94f183daa9764fef33fdc7010f7ecffc29af977044fa47440a83/msgspec-0.20.0-cp312-cp312-win_arm64.whl", hash = "sha256:00648b1e19cf01b2be45444ba9dc961bd4c056ffb15706651e64e5d6ec6197b7", size = 175390, upload-time = "2025-11-24T03:55:42.05Z" }, + { url = "https://files.pythonhosted.org/packages/8a/d1/b902d38b6e5ba3bdddbec469bba388d647f960aeed7b5b3623a8debe8a76/msgspec-0.20.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9c1ff8db03be7598b50dd4b4a478d6fe93faae3bd54f4f17aa004d0e46c14c46", size = 196463, upload-time = "2025-11-24T03:55:43.405Z" }, + { url = "https://files.pythonhosted.org/packages/57/b6/eff0305961a1d9447ec2b02f8c73c8946f22564d302a504185b730c9a761/msgspec-0.20.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f6532369ece217fd37c5ebcfd7e981f2615628c21121b7b2df9d3adcf2fd69b8", size = 188650, upload-time = "2025-11-24T03:55:44.761Z" }, + { url = "https://files.pythonhosted.org/packages/99/93/f2ec1ae1de51d3fdee998a1ede6b2c089453a2ee82b5c1b361ed9095064a/msgspec-0.20.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f9a1697da2f85a751ac3cc6a97fceb8e937fc670947183fb2268edaf4016d1ee", size = 218834, upload-time = "2025-11-24T03:55:46.441Z" }, + { url = "https://files.pythonhosted.org/packages/28/83/36557b04cfdc317ed8a525c4993b23e43a8fbcddaddd78619112ca07138c/msgspec-0.20.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7fac7e9c92eddcd24c19d9e5f6249760941485dff97802461ae7c995a2450111", size = 224917, upload-time = "2025-11-24T03:55:48.06Z" }, + { url = "https://files.pythonhosted.org/packages/8f/56/362037a1ed5be0b88aced59272442c4b40065c659700f4b195a7f4d0ac88/msgspec-0.20.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f953a66f2a3eb8d5ea64768445e2bb301d97609db052628c3e1bcb7d87192a9f", size = 222821, upload-time = "2025-11-24T03:55:49.388Z" }, + { url = "https://files.pythonhosted.org/packages/92/75/fa2370ec341cedf663731ab7042e177b3742645c5dd4f64dc96bd9f18a6b/msgspec-0.20.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:247af0313ae64a066d3aea7ba98840f6681ccbf5c90ba9c7d17f3e39dbba679c", size = 227227, upload-time = "2025-11-24T03:55:51.125Z" }, + { url = "https://files.pythonhosted.org/packages/f1/25/5e8080fe0117f799b1b68008dc29a65862077296b92550632de015128579/msgspec-0.20.0-cp313-cp313-win_amd64.whl", hash = "sha256:67d5e4dfad52832017018d30a462604c80561aa62a9d548fc2bd4e430b66a352", size = 189966, upload-time = "2025-11-24T03:55:52.458Z" }, + { url = "https://files.pythonhosted.org/packages/79/b6/63363422153937d40e1cb349c5081338401f8529a5a4e216865decd981bf/msgspec-0.20.0-cp313-cp313-win_arm64.whl", hash = "sha256:91a52578226708b63a9a13de287b1ec3ed1123e4a088b198143860c087770458", size = 175378, upload-time = "2025-11-24T03:55:53.721Z" }, + { url = "https://files.pythonhosted.org/packages/bb/18/62dc13ab0260c7d741dda8dc7f481495b93ac9168cd887dda5929880eef8/msgspec-0.20.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:eead16538db1b3f7ec6e3ed1f6f7c5dec67e90f76e76b610e1ffb5671815633a", size = 196407, upload-time = "2025-11-24T03:55:55.001Z" }, + { url = "https://files.pythonhosted.org/packages/dd/1d/b9949e4ad6953e9f9a142c7997b2f7390c81e03e93570c7c33caf65d27e1/msgspec-0.20.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:703c3bb47bf47801627fb1438f106adbfa2998fe586696d1324586a375fca238", size = 188889, upload-time = "2025-11-24T03:55:56.311Z" }, + { url = "https://files.pythonhosted.org/packages/1e/19/f8bb2dc0f1bfe46cc7d2b6b61c5e9b5a46c62298e8f4d03bbe499c926180/msgspec-0.20.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6cdb227dc585fb109305cee0fd304c2896f02af93ecf50a9c84ee54ee67dbb42", size = 219691, upload-time = "2025-11-24T03:55:57.908Z" }, + { url = "https://files.pythonhosted.org/packages/b8/8e/6b17e43f6eb9369d9858ee32c97959fcd515628a1df376af96c11606cf70/msgspec-0.20.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:27d35044dd8818ac1bd0fedb2feb4fbdff4e3508dd7c5d14316a12a2d96a0de0", size = 224918, upload-time = "2025-11-24T03:55:59.322Z" }, + { url = "https://files.pythonhosted.org/packages/1c/db/0e833a177db1a4484797adba7f429d4242585980b90882cc38709e1b62df/msgspec-0.20.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b4296393a29ee42dd25947981c65506fd4ad39beaf816f614146fa0c5a6c91ae", size = 223436, upload-time = "2025-11-24T03:56:00.716Z" }, + { url = "https://files.pythonhosted.org/packages/c3/30/d2ee787f4c918fd2b123441d49a7707ae9015e0e8e1ab51aa7967a97b90e/msgspec-0.20.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:205fbdadd0d8d861d71c8f3399fe1a82a2caf4467bc8ff9a626df34c12176980", size = 227190, upload-time = "2025-11-24T03:56:02.371Z" }, + { url = "https://files.pythonhosted.org/packages/ff/37/9c4b58ff11d890d788e700b827db2366f4d11b3313bf136780da7017278b/msgspec-0.20.0-cp314-cp314-win_amd64.whl", hash = "sha256:7dfebc94fe7d3feec6bc6c9df4f7e9eccc1160bb5b811fbf3e3a56899e398a6b", size = 193950, upload-time = "2025-11-24T03:56:03.668Z" }, + { url = "https://files.pythonhosted.org/packages/e9/4e/cab707bf2fa57408e2934e5197fc3560079db34a1e3cd2675ff2e47e07de/msgspec-0.20.0-cp314-cp314-win_arm64.whl", hash = "sha256:2ad6ae36e4a602b24b4bf4eaf8ab5a441fec03e1f1b5931beca8ebda68f53fc0", size = 179018, upload-time = "2025-11-24T03:56:05.038Z" }, + { url = "https://files.pythonhosted.org/packages/4c/06/3da3fc9aaa55618a8f43eb9052453cfe01f82930bca3af8cea63a89f3a11/msgspec-0.20.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:f84703e0e6ef025663dd1de828ca028774797b8155e070e795c548f76dde65d5", size = 200389, upload-time = "2025-11-24T03:56:06.375Z" }, + { url = "https://files.pythonhosted.org/packages/83/3b/cc4270a5ceab40dfe1d1745856951b0a24fd16ac8539a66ed3004a60c91e/msgspec-0.20.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7c83fc24dd09cf1275934ff300e3951b3adc5573f0657a643515cc16c7dee131", size = 193198, upload-time = "2025-11-24T03:56:07.742Z" }, + { url = "https://files.pythonhosted.org/packages/cd/ae/4c7905ac53830c8e3c06fdd60e3cdcfedc0bbc993872d1549b84ea21a1bd/msgspec-0.20.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5f13ccb1c335a124e80c4562573b9b90f01ea9521a1a87f7576c2e281d547f56", size = 225973, upload-time = "2025-11-24T03:56:09.18Z" }, + { url = "https://files.pythonhosted.org/packages/d9/da/032abac1de4d0678d99eaeadb1323bd9d247f4711c012404ba77ed6f15ca/msgspec-0.20.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:17c2b5ca19f19306fc83c96d85e606d2cc107e0caeea85066b5389f664e04846", size = 229509, upload-time = "2025-11-24T03:56:10.898Z" }, + { url = "https://files.pythonhosted.org/packages/69/52/fdc7bdb7057a166f309e0b44929e584319e625aaba4771b60912a9321ccd/msgspec-0.20.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d931709355edabf66c2dd1a756b2d658593e79882bc81aae5964969d5a291b63", size = 230434, upload-time = "2025-11-24T03:56:12.48Z" }, + { url = "https://files.pythonhosted.org/packages/cb/fe/1dfd5f512b26b53043884e4f34710c73e294e7cc54278c3fe28380e42c37/msgspec-0.20.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:565f915d2e540e8a0c93a01ff67f50aebe1f7e22798c6a25873f9fda8d1325f8", size = 231758, upload-time = "2025-11-24T03:56:13.765Z" }, + { url = "https://files.pythonhosted.org/packages/97/f6/9ba7121b8e0c4e0beee49575d1dbc804e2e72467692f0428cf39ceba1ea5/msgspec-0.20.0-cp314-cp314t-win_amd64.whl", hash = "sha256:726f3e6c3c323f283f6021ebb6c8ccf58d7cd7baa67b93d73bfbe9a15c34ab8d", size = 206540, upload-time = "2025-11-24T03:56:15.029Z" }, + { url = "https://files.pythonhosted.org/packages/c8/3e/c5187de84bb2c2ca334ab163fcacf19a23ebb1d876c837f81a1b324a15bf/msgspec-0.20.0-cp314-cp314t-win_arm64.whl", hash = "sha256:93f23528edc51d9f686808a361728e903d6f2be55c901d6f5c92e44c6d546bfc", size = 183011, upload-time = "2025-11-24T03:56:16.442Z" }, +] + [[package]] name = "multimethod" version = "2.0.2" @@ -2200,6 +2415,7 @@ notebook = [ { name = "dotenv" }, { name = "ipykernel" }, { name = "ipywidgets" }, + { name = "marimo" }, { name = "matplotlib" }, { name = "neo4j" }, { name = "palettable" }, @@ -2227,17 +2443,17 @@ provides-extras = ["pandas", "gds", "neo4j", "snowflake"] [package.metadata.requires-dev] dev = [ { name = "anywidget", extras = ["dev"] }, - { name = "ipykernel", specifier = "==7.1.0" }, + { name = "ipykernel", specifier = "==7.2.0" }, { name = "jupyterlab", specifier = ">=4.5.4" }, { name = "matplotlib", specifier = ">=3.9.4" }, { name = "mypy", specifier = "==1.19.1" }, { name = "nbconvert", specifier = "==7.17.0" }, { name = "palettable", specifier = "==3.3.3" }, - { name = "pytest", specifier = "==8.4.2" }, + { name = "pytest", specifier = "==9.0.2" }, { name = "pytest-mock", specifier = "==3.15.1" }, - { name = "ruff", specifier = "==0.14.14" }, + { name = "ruff", specifier = "==0.15.2" }, { name = "selenium", specifier = "==4.40.0" }, - { name = "streamlit", specifier = "==1.53.0" }, + { name = "streamlit", specifier = "==1.54.0" }, ] docs = [ { name = "enum-tools", extras = ["sphinx"] }, @@ -2249,6 +2465,7 @@ notebook = [ { name = "dotenv" }, { name = "ipykernel", specifier = ">=6.29.5" }, { name = "ipywidgets", specifier = ">=8.0.0" }, + { name = "marimo" }, { name = "matplotlib", specifier = ">=3.9.4" }, { name = "neo4j", specifier = ">=5.26.0" }, { name = "palettable", specifier = ">=3.3.3" }, @@ -3068,6 +3285,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/82/40/b6549f0482739675cac5ce22f2b99dea82f8b6882060598003ffa076f110/pykernel-0.1.6-py3-none-any.whl", hash = "sha256:3657258809cf2394ec1d622b7155d6ebe27efbfc2065056d3d7ce96b97645bcc", size = 16401, upload-time = "2022-05-25T02:21:06.72Z" }, ] +[[package]] +name = "pymdown-extensions" +version = "10.21" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown" }, + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ba/63/06673d1eb6d8f83c0ea1f677d770e12565fb516928b4109c9e2055656a9e/pymdown_extensions-10.21.tar.gz", hash = "sha256:39f4a020f40773f6b2ff31d2cd2546c2c04d0a6498c31d9c688d2be07e1767d5", size = 853363, upload-time = "2026-02-15T20:44:06.748Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6f/2c/5b079febdc65e1c3fb2729bf958d18b45be7113828528e8a0b5850dd819a/pymdown_extensions-10.21-py3-none-any.whl", hash = "sha256:91b879f9f864d49794c2d9534372b10150e6141096c3908a455e45ca72ad9d3f", size = 268877, upload-time = "2026-02-15T20:44:05.464Z" }, +] + [[package]] name = "pyopenssl" version = "25.3.0" @@ -3101,7 +3331,7 @@ wheels = [ [[package]] name = "pytest" -version = "8.4.2" +version = "9.0.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, @@ -3112,9 +3342,9 @@ dependencies = [ { name = "pygments" }, { name = "tomli", marker = "python_full_version < '3.11'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a3/5c/00a0e072241553e1a7496d638deababa67c5058571567b92a7eaa258397c/pytest-8.4.2.tar.gz", hash = "sha256:86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01", size = 1519618, upload-time = "2025-09-04T14:34:22.711Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d1/db/7ef3487e0fb0049ddb5ce41d3a49c235bf9ad299b6a25d5780a89f19230f/pytest-9.0.2.tar.gz", hash = "sha256:75186651a92bd89611d1d9fc20f0b4345fd827c41ccd5c299a868a05d70edf11", size = 1568901, upload-time = "2025-12-06T21:30:51.014Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a8/a4/20da314d277121d6534b3a980b29035dcd51e6744bd79075a6ce8fa4eb8d/pytest-8.4.2-py3-none-any.whl", hash = "sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79", size = 365750, upload-time = "2025-09-04T14:34:20.226Z" }, + { url = "https://files.pythonhosted.org/packages/3b/ab/b3226f0bd7cdcf710fbede2b3548584366da3b19b5021e74f5bde2a8fa3f/pytest-9.0.2-py3-none-any.whl", hash = "sha256:711ffd45bf766d5264d487b917733b453d917afd2b0ad65223959f59089f875b", size = 374801, upload-time = "2025-12-06T21:30:49.154Z" }, ] [[package]] @@ -3592,28 +3822,27 @@ wheels = [ [[package]] name = "ruff" -version = "0.14.14" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/2e/06/f71e3a86b2df0dfa2d2f72195941cd09b44f87711cb7fa5193732cb9a5fc/ruff-0.14.14.tar.gz", hash = "sha256:2d0f819c9a90205f3a867dbbd0be083bee9912e170fd7d9704cc8ae45824896b", size = 4515732, upload-time = "2026-01-22T22:30:17.527Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d2/89/20a12e97bc6b9f9f68343952da08a8099c57237aef953a56b82711d55edd/ruff-0.14.14-py3-none-linux_armv6l.whl", hash = "sha256:7cfe36b56e8489dee8fbc777c61959f60ec0f1f11817e8f2415f429552846aed", size = 10467650, upload-time = "2026-01-22T22:30:08.578Z" }, - { url = "https://files.pythonhosted.org/packages/a3/b1/c5de3fd2d5a831fcae21beda5e3589c0ba67eec8202e992388e4b17a6040/ruff-0.14.14-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:6006a0082336e7920b9573ef8a7f52eec837add1265cc74e04ea8a4368cd704c", size = 10883245, upload-time = "2026-01-22T22:30:04.155Z" }, - { url = "https://files.pythonhosted.org/packages/b8/7c/3c1db59a10e7490f8f6f8559d1db8636cbb13dccebf18686f4e3c9d7c772/ruff-0.14.14-py3-none-macosx_11_0_arm64.whl", hash = "sha256:026c1d25996818f0bf498636686199d9bd0d9d6341c9c2c3b62e2a0198b758de", size = 10231273, upload-time = "2026-01-22T22:30:34.642Z" }, - { url = "https://files.pythonhosted.org/packages/a1/6e/5e0e0d9674be0f8581d1f5e0f0a04761203affce3232c1a1189d0e3b4dad/ruff-0.14.14-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f666445819d31210b71e0a6d1c01e24447a20b85458eea25a25fe8142210ae0e", size = 10585753, upload-time = "2026-01-22T22:30:31.781Z" }, - { url = "https://files.pythonhosted.org/packages/23/09/754ab09f46ff1884d422dc26d59ba18b4e5d355be147721bb2518aa2a014/ruff-0.14.14-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3c0f18b922c6d2ff9a5e6c3ee16259adc513ca775bcf82c67ebab7cbd9da5bc8", size = 10286052, upload-time = "2026-01-22T22:30:24.827Z" }, - { url = "https://files.pythonhosted.org/packages/c8/cc/e71f88dd2a12afb5f50733851729d6b571a7c3a35bfdb16c3035132675a0/ruff-0.14.14-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1629e67489c2dea43e8658c3dba659edbfd87361624b4040d1df04c9740ae906", size = 11043637, upload-time = "2026-01-22T22:30:13.239Z" }, - { url = "https://files.pythonhosted.org/packages/67/b2/397245026352494497dac935d7f00f1468c03a23a0c5db6ad8fc49ca3fb2/ruff-0.14.14-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:27493a2131ea0f899057d49d303e4292b2cae2bb57253c1ed1f256fbcd1da480", size = 12194761, upload-time = "2026-01-22T22:30:22.542Z" }, - { url = "https://files.pythonhosted.org/packages/5b/06/06ef271459f778323112c51b7587ce85230785cd64e91772034ddb88f200/ruff-0.14.14-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:01ff589aab3f5b539e35db38425da31a57521efd1e4ad1ae08fc34dbe30bd7df", size = 12005701, upload-time = "2026-01-22T22:30:20.499Z" }, - { url = "https://files.pythonhosted.org/packages/41/d6/99364514541cf811ccc5ac44362f88df66373e9fec1b9d1c4cc830593fe7/ruff-0.14.14-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1cc12d74eef0f29f51775f5b755913eb523546b88e2d733e1d701fe65144e89b", size = 11282455, upload-time = "2026-01-22T22:29:59.679Z" }, - { url = "https://files.pythonhosted.org/packages/ca/71/37daa46f89475f8582b7762ecd2722492df26421714a33e72ccc9a84d7a5/ruff-0.14.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bb8481604b7a9e75eff53772496201690ce2687067e038b3cc31aaf16aa0b974", size = 11215882, upload-time = "2026-01-22T22:29:57.032Z" }, - { url = "https://files.pythonhosted.org/packages/2c/10/a31f86169ec91c0705e618443ee74ede0bdd94da0a57b28e72db68b2dbac/ruff-0.14.14-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:14649acb1cf7b5d2d283ebd2f58d56b75836ed8c6f329664fa91cdea19e76e66", size = 11180549, upload-time = "2026-01-22T22:30:27.175Z" }, - { url = "https://files.pythonhosted.org/packages/fd/1e/c723f20536b5163adf79bdd10c5f093414293cdf567eed9bdb7b83940f3f/ruff-0.14.14-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:e8058d2145566510790eab4e2fad186002e288dec5e0d343a92fe7b0bc1b3e13", size = 10543416, upload-time = "2026-01-22T22:30:01.964Z" }, - { url = "https://files.pythonhosted.org/packages/3e/34/8a84cea7e42c2d94ba5bde1d7a4fae164d6318f13f933d92da6d7c2041ff/ruff-0.14.14-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:e651e977a79e4c758eb807f0481d673a67ffe53cfa92209781dfa3a996cf8412", size = 10285491, upload-time = "2026-01-22T22:30:29.51Z" }, - { url = "https://files.pythonhosted.org/packages/55/ef/b7c5ea0be82518906c978e365e56a77f8de7678c8bb6651ccfbdc178c29f/ruff-0.14.14-py3-none-musllinux_1_2_i686.whl", hash = "sha256:cc8b22da8d9d6fdd844a68ae937e2a0adf9b16514e9a97cc60355e2d4b219fc3", size = 10733525, upload-time = "2026-01-22T22:30:06.499Z" }, - { url = "https://files.pythonhosted.org/packages/6a/5b/aaf1dfbcc53a2811f6cc0a1759de24e4b03e02ba8762daabd9b6bd8c59e3/ruff-0.14.14-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:16bc890fb4cc9781bb05beb5ab4cd51be9e7cb376bf1dd3580512b24eb3fda2b", size = 11315626, upload-time = "2026-01-22T22:30:36.848Z" }, - { url = "https://files.pythonhosted.org/packages/2c/aa/9f89c719c467dfaf8ad799b9bae0df494513fb21d31a6059cb5870e57e74/ruff-0.14.14-py3-none-win32.whl", hash = "sha256:b530c191970b143375b6a68e6f743800b2b786bbcf03a7965b06c4bf04568167", size = 10502442, upload-time = "2026-01-22T22:30:38.93Z" }, - { url = "https://files.pythonhosted.org/packages/87/44/90fa543014c45560cae1fffc63ea059fb3575ee6e1cb654562197e5d16fb/ruff-0.14.14-py3-none-win_amd64.whl", hash = "sha256:3dde1435e6b6fe5b66506c1dff67a421d0b7f6488d466f651c07f4cab3bf20fd", size = 11630486, upload-time = "2026-01-22T22:30:10.852Z" }, - { url = "https://files.pythonhosted.org/packages/9e/6a/40fee331a52339926a92e17ae748827270b288a35ef4a15c9c8f2ec54715/ruff-0.14.14-py3-none-win_arm64.whl", hash = "sha256:56e6981a98b13a32236a72a8da421d7839221fa308b223b9283312312e5ac76c", size = 10920448, upload-time = "2026-01-22T22:30:15.417Z" }, +version = "0.15.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/06/04/eab13a954e763b0606f460443fcbf6bb5a0faf06890ea3754ff16523dce5/ruff-0.15.2.tar.gz", hash = "sha256:14b965afee0969e68bb871eba625343b8673375f457af4abe98553e8bbb98342", size = 4558148, upload-time = "2026-02-19T22:32:20.271Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2f/70/3a4dc6d09b13cb3e695f28307e5d889b2e1a66b7af9c5e257e796695b0e6/ruff-0.15.2-py3-none-linux_armv6l.whl", hash = "sha256:120691a6fdae2f16d65435648160f5b81a9625288f75544dc40637436b5d3c0d", size = 10430565, upload-time = "2026-02-19T22:32:41.824Z" }, + { url = "https://files.pythonhosted.org/packages/71/0b/bb8457b56185ece1305c666dc895832946d24055be90692381c31d57466d/ruff-0.15.2-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:a89056d831256099658b6bba4037ac6dd06f49d194199215befe2bb10457ea5e", size = 10820354, upload-time = "2026-02-19T22:32:07.366Z" }, + { url = "https://files.pythonhosted.org/packages/2d/c1/e0532d7f9c9e0b14c46f61b14afd563298b8b83f337b6789ddd987e46121/ruff-0.15.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:e36dee3a64be0ebd23c86ffa3aa3fd3ac9a712ff295e192243f814a830b6bd87", size = 10170767, upload-time = "2026-02-19T22:32:13.188Z" }, + { url = "https://files.pythonhosted.org/packages/47/e8/da1aa341d3af017a21c7a62fb5ec31d4e7ad0a93ab80e3a508316efbcb23/ruff-0.15.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a9fb47b6d9764677f8c0a193c0943ce9a05d6763523f132325af8a858eadc2b9", size = 10529591, upload-time = "2026-02-19T22:32:02.547Z" }, + { url = "https://files.pythonhosted.org/packages/93/74/184fbf38e9f3510231fbc5e437e808f0b48c42d1df9434b208821efcd8d6/ruff-0.15.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f376990f9d0d6442ea9014b19621d8f2aaf2b8e39fdbfc79220b7f0c596c9b80", size = 10260771, upload-time = "2026-02-19T22:32:36.938Z" }, + { url = "https://files.pythonhosted.org/packages/05/ac/605c20b8e059a0bc4b42360414baa4892ff278cec1c91fff4be0dceedefd/ruff-0.15.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2dcc987551952d73cbf5c88d9fdee815618d497e4df86cd4c4824cc59d5dd75f", size = 11045791, upload-time = "2026-02-19T22:32:31.642Z" }, + { url = "https://files.pythonhosted.org/packages/fd/52/db6e419908f45a894924d410ac77d64bdd98ff86901d833364251bd08e22/ruff-0.15.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:42a47fd785cbe8c01b9ff45031af875d101b040ad8f4de7bbb716487c74c9a77", size = 11879271, upload-time = "2026-02-19T22:32:29.305Z" }, + { url = "https://files.pythonhosted.org/packages/3e/d8/7992b18f2008bdc9231d0f10b16df7dda964dbf639e2b8b4c1b4e91b83af/ruff-0.15.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cbe9f49354866e575b4c6943856989f966421870e85cd2ac94dccb0a9dcb2fea", size = 11303707, upload-time = "2026-02-19T22:32:22.492Z" }, + { url = "https://files.pythonhosted.org/packages/d7/02/849b46184bcfdd4b64cde61752cc9a146c54759ed036edd11857e9b8443b/ruff-0.15.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b7a672c82b5f9887576087d97be5ce439f04bbaf548ee987b92d3a7dede41d3a", size = 11149151, upload-time = "2026-02-19T22:32:44.234Z" }, + { url = "https://files.pythonhosted.org/packages/70/04/f5284e388bab60d1d3b99614a5a9aeb03e0f333847e2429bebd2aaa1feec/ruff-0.15.2-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:72ecc64f46f7019e2bcc3cdc05d4a7da958b629a5ab7033195e11a438403d956", size = 11091132, upload-time = "2026-02-19T22:32:24.691Z" }, + { url = "https://files.pythonhosted.org/packages/fa/ae/88d844a21110e14d92cf73d57363fab59b727ebeabe78009b9ccb23500af/ruff-0.15.2-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:8dcf243b15b561c655c1ef2f2b0050e5d50db37fe90115507f6ff37d865dc8b4", size = 10504717, upload-time = "2026-02-19T22:32:26.75Z" }, + { url = "https://files.pythonhosted.org/packages/64/27/867076a6ada7f2b9c8292884ab44d08fd2ba71bd2b5364d4136f3cd537e1/ruff-0.15.2-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:dab6941c862c05739774677c6273166d2510d254dac0695c0e3f5efa1b5585de", size = 10263122, upload-time = "2026-02-19T22:32:10.036Z" }, + { url = "https://files.pythonhosted.org/packages/e7/ef/faf9321d550f8ebf0c6373696e70d1758e20ccdc3951ad7af00c0956be7c/ruff-0.15.2-py3-none-musllinux_1_2_i686.whl", hash = "sha256:1b9164f57fc36058e9a6806eb92af185b0697c9fe4c7c52caa431c6554521e5c", size = 10735295, upload-time = "2026-02-19T22:32:39.227Z" }, + { url = "https://files.pythonhosted.org/packages/2f/55/e8089fec62e050ba84d71b70e7834b97709ca9b7aba10c1a0b196e493f97/ruff-0.15.2-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:80d24fcae24d42659db7e335b9e1531697a7102c19185b8dc4a028b952865fd8", size = 11241641, upload-time = "2026-02-19T22:32:34.617Z" }, + { url = "https://files.pythonhosted.org/packages/23/01/1c30526460f4d23222d0fabd5888868262fd0e2b71a00570ca26483cd993/ruff-0.15.2-py3-none-win32.whl", hash = "sha256:fd5ff9e5f519a7e1bd99cbe8daa324010a74f5e2ebc97c6242c08f26f3714f6f", size = 10507885, upload-time = "2026-02-19T22:32:15.635Z" }, + { url = "https://files.pythonhosted.org/packages/5c/10/3d18e3bbdf8fc50bbb4ac3cc45970aa5a9753c5cb51bf9ed9a3cd8b79fa3/ruff-0.15.2-py3-none-win_amd64.whl", hash = "sha256:d20014e3dfa400f3ff84830dfb5755ece2de45ab62ecea4af6b7262d0fb4f7c5", size = 11623725, upload-time = "2026-02-19T22:32:04.947Z" }, + { url = "https://files.pythonhosted.org/packages/6d/78/097c0798b1dab9f8affe73da9642bb4500e098cb27fd8dc9724816ac747b/ruff-0.15.2-py3-none-win_arm64.whl", hash = "sha256:cabddc5822acdc8f7b5527b36ceac55cc51eec7b1946e60181de8fe83ca8876e", size = 10941649, upload-time = "2026-02-19T22:32:18.108Z" }, ] [[package]] @@ -4007,9 +4236,22 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/fb/d0/9852f70eb01f814843530c053542b72d30e9fbf74da7abb0107e71938389/standard_imghdr-3.10.14-py3-none-any.whl", hash = "sha256:cdf6883163349624dee9a81d2853a20260337c4cd41c04e99c082e01833a08e2", size = 5598, upload-time = "2024-04-21T18:54:48.587Z" }, ] +[[package]] +name = "starlette" +version = "0.52.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c4/68/79977123bb7be889ad680d79a40f339082c1978b5cfcf62c2d8d196873ac/starlette-0.52.1.tar.gz", hash = "sha256:834edd1b0a23167694292e94f597773bc3f89f362be6effee198165a35d62933", size = 2653702, upload-time = "2026-01-18T13:34:11.062Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/0d/13d1d239a25cbfb19e740db83143e95c772a1fe10202dda4b76792b114dd/starlette-0.52.1-py3-none-any.whl", hash = "sha256:0029d43eb3d273bc4f83a08720b4912ea4b071087a3b48db01b7c839f7954d74", size = 74272, upload-time = "2026-01-18T13:34:09.188Z" }, +] + [[package]] name = "streamlit" -version = "1.53.0" +version = "1.54.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "altair" }, @@ -4032,9 +4274,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "watchdog", marker = "sys_platform != 'darwin'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/2a/b1/5e5fd38d4a5f97163ff071d76e8d6b3aa43e03f86bf94fd0265c43e43fa3/streamlit-1.53.0.tar.gz", hash = "sha256:0114116d34589f2e652bf4ac735a3aca69807e659f92f99c98e7b620d000838f", size = 8650270, upload-time = "2026-01-14T19:52:24.94Z" } +sdist = { url = "https://files.pythonhosted.org/packages/be/66/d887ee80ea85f035baee607c60af024994e17ae9b921277fca9675e76ecf/streamlit-1.54.0.tar.gz", hash = "sha256:09965e6ae7eb0357091725de1ce2a3f7e4be155c2464c505c40a3da77ab69dd8", size = 8662292, upload-time = "2026-02-04T16:37:54.734Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a8/54/47ed40f34403205b2c9aab04472e864d1b496b4381b9bf408cf2c20e144c/streamlit-1.53.0-py3-none-any.whl", hash = "sha256:e8b65210bd1a785d121340b794a47c7c912d8da401af9e4403e16c84e3bc4410", size = 9110100, upload-time = "2026-01-14T19:52:22.589Z" }, + { url = "https://files.pythonhosted.org/packages/48/1d/40de1819374b4f0507411a60f4d2de0d620a9b10c817de5925799132b6c9/streamlit-1.54.0-py3-none-any.whl", hash = "sha256:a7b67d6293a9f5f6b4d4c7acdbc4980d7d9f049e78e404125022ecb1712f79fc", size = 9119730, upload-time = "2026-02-04T16:37:52.199Z" }, ] [[package]] @@ -4344,6 +4586,20 @@ socks = [ { name = "pysocks" }, ] +[[package]] +name = "uvicorn" +version = "0.41.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "h11" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/32/ce/eeb58ae4ac36fe09e3842eb02e0eb676bf2c53ae062b98f1b2531673efdd/uvicorn-0.41.0.tar.gz", hash = "sha256:09d11cf7008da33113824ee5a1c6422d89fbc2ff476540d69a34c87fab8b571a", size = 82633, upload-time = "2026-02-16T23:07:24.1Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/83/e4/d04a086285c20886c0daad0e026f250869201013d18f81d9ff5eada73a88/uvicorn-0.41.0-py3-none-any.whl", hash = "sha256:29e35b1d2c36a04b9e180d4007ede3bcb32a85fbdfd6c6aeb3f26839de088187", size = 68783, upload-time = "2026-02-16T23:07:22.357Z" }, +] + [[package]] name = "watchdog" version = "6.0.0" @@ -4501,6 +4757,74 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/34/db/b10e48aa8fff7407e67470363eac595018441cf32d5e1001567a7aeba5d2/websocket_client-1.9.0-py3-none-any.whl", hash = "sha256:af248a825037ef591efbf6ed20cc5faa03d3b47b9e5a2230a529eeee1c1fc3ef", size = 82616, upload-time = "2025-10-07T21:16:34.951Z" }, ] +[[package]] +name = "websockets" +version = "16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/04/24/4b2031d72e840ce4c1ccb255f693b15c334757fc50023e4db9537080b8c4/websockets-16.0.tar.gz", hash = "sha256:5f6261a5e56e8d5c42a4497b364ea24d94d9563e8fbd44e78ac40879c60179b5", size = 179346, upload-time = "2026-01-10T09:23:47.181Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/74/221f58decd852f4b59cc3354cccaf87e8ef695fede361d03dc9a7396573b/websockets-16.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:04cdd5d2d1dacbad0a7bf36ccbcd3ccd5a30ee188f2560b7a62a30d14107b31a", size = 177343, upload-time = "2026-01-10T09:22:21.28Z" }, + { url = "https://files.pythonhosted.org/packages/19/0f/22ef6107ee52ab7f0b710d55d36f5a5d3ef19e8a205541a6d7ffa7994e5a/websockets-16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8ff32bb86522a9e5e31439a58addbb0166f0204d64066fb955265c4e214160f0", size = 175021, upload-time = "2026-01-10T09:22:22.696Z" }, + { url = "https://files.pythonhosted.org/packages/10/40/904a4cb30d9b61c0e278899bf36342e9b0208eb3c470324a9ecbaac2a30f/websockets-16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:583b7c42688636f930688d712885cf1531326ee05effd982028212ccc13e5957", size = 175320, upload-time = "2026-01-10T09:22:23.94Z" }, + { url = "https://files.pythonhosted.org/packages/9d/2f/4b3ca7e106bc608744b1cdae041e005e446124bebb037b18799c2d356864/websockets-16.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7d837379b647c0c4c2355c2499723f82f1635fd2c26510e1f587d89bc2199e72", size = 183815, upload-time = "2026-01-10T09:22:25.469Z" }, + { url = "https://files.pythonhosted.org/packages/86/26/d40eaa2a46d4302becec8d15b0fc5e45bdde05191e7628405a19cf491ccd/websockets-16.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:df57afc692e517a85e65b72e165356ed1df12386ecb879ad5693be08fac65dde", size = 185054, upload-time = "2026-01-10T09:22:27.101Z" }, + { url = "https://files.pythonhosted.org/packages/b0/ba/6500a0efc94f7373ee8fefa8c271acdfd4dca8bd49a90d4be7ccabfc397e/websockets-16.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:2b9f1e0d69bc60a4a87349d50c09a037a2607918746f07de04df9e43252c77a3", size = 184565, upload-time = "2026-01-10T09:22:28.293Z" }, + { url = "https://files.pythonhosted.org/packages/04/b4/96bf2cee7c8d8102389374a2616200574f5f01128d1082f44102140344cc/websockets-16.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:335c23addf3d5e6a8633f9f8eda77efad001671e80b95c491dd0924587ece0b3", size = 183848, upload-time = "2026-01-10T09:22:30.394Z" }, + { url = "https://files.pythonhosted.org/packages/02/8e/81f40fb00fd125357814e8c3025738fc4ffc3da4b6b4a4472a82ba304b41/websockets-16.0-cp310-cp310-win32.whl", hash = "sha256:37b31c1623c6605e4c00d466c9d633f9b812ea430c11c8a278774a1fde1acfa9", size = 178249, upload-time = "2026-01-10T09:22:32.083Z" }, + { url = "https://files.pythonhosted.org/packages/b4/5f/7e40efe8df57db9b91c88a43690ac66f7b7aa73a11aa6a66b927e44f26fa/websockets-16.0-cp310-cp310-win_amd64.whl", hash = "sha256:8e1dab317b6e77424356e11e99a432b7cb2f3ec8c5ab4dabbcee6add48f72b35", size = 178685, upload-time = "2026-01-10T09:22:33.345Z" }, + { url = "https://files.pythonhosted.org/packages/f2/db/de907251b4ff46ae804ad0409809504153b3f30984daf82a1d84a9875830/websockets-16.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:31a52addea25187bde0797a97d6fc3d2f92b6f72a9370792d65a6e84615ac8a8", size = 177340, upload-time = "2026-01-10T09:22:34.539Z" }, + { url = "https://files.pythonhosted.org/packages/f3/fa/abe89019d8d8815c8781e90d697dec52523fb8ebe308bf11664e8de1877e/websockets-16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:417b28978cdccab24f46400586d128366313e8a96312e4b9362a4af504f3bbad", size = 175022, upload-time = "2026-01-10T09:22:36.332Z" }, + { url = "https://files.pythonhosted.org/packages/58/5d/88ea17ed1ded2079358b40d31d48abe90a73c9e5819dbcde1606e991e2ad/websockets-16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:af80d74d4edfa3cb9ed973a0a5ba2b2a549371f8a741e0800cb07becdd20f23d", size = 175319, upload-time = "2026-01-10T09:22:37.602Z" }, + { url = "https://files.pythonhosted.org/packages/d2/ae/0ee92b33087a33632f37a635e11e1d99d429d3d323329675a6022312aac2/websockets-16.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:08d7af67b64d29823fed316505a89b86705f2b7981c07848fb5e3ea3020c1abe", size = 184631, upload-time = "2026-01-10T09:22:38.789Z" }, + { url = "https://files.pythonhosted.org/packages/c8/c5/27178df583b6c5b31b29f526ba2da5e2f864ecc79c99dae630a85d68c304/websockets-16.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7be95cfb0a4dae143eaed2bcba8ac23f4892d8971311f1b06f3c6b78952ee70b", size = 185870, upload-time = "2026-01-10T09:22:39.893Z" }, + { url = "https://files.pythonhosted.org/packages/87/05/536652aa84ddc1c018dbb7e2c4cbcd0db884580bf8e95aece7593fde526f/websockets-16.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d6297ce39ce5c2e6feb13c1a996a2ded3b6832155fcfc920265c76f24c7cceb5", size = 185361, upload-time = "2026-01-10T09:22:41.016Z" }, + { url = "https://files.pythonhosted.org/packages/6d/e2/d5332c90da12b1e01f06fb1b85c50cfc489783076547415bf9f0a659ec19/websockets-16.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1c1b30e4f497b0b354057f3467f56244c603a79c0d1dafce1d16c283c25f6e64", size = 184615, upload-time = "2026-01-10T09:22:42.442Z" }, + { url = "https://files.pythonhosted.org/packages/77/fb/d3f9576691cae9253b51555f841bc6600bf0a983a461c79500ace5a5b364/websockets-16.0-cp311-cp311-win32.whl", hash = "sha256:5f451484aeb5cafee1ccf789b1b66f535409d038c56966d6101740c1614b86c6", size = 178246, upload-time = "2026-01-10T09:22:43.654Z" }, + { url = "https://files.pythonhosted.org/packages/54/67/eaff76b3dbaf18dcddabc3b8c1dba50b483761cccff67793897945b37408/websockets-16.0-cp311-cp311-win_amd64.whl", hash = "sha256:8d7f0659570eefb578dacde98e24fb60af35350193e4f56e11190787bee77dac", size = 178684, upload-time = "2026-01-10T09:22:44.941Z" }, + { url = "https://files.pythonhosted.org/packages/84/7b/bac442e6b96c9d25092695578dda82403c77936104b5682307bd4deb1ad4/websockets-16.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:71c989cbf3254fbd5e84d3bff31e4da39c43f884e64f2551d14bb3c186230f00", size = 177365, upload-time = "2026-01-10T09:22:46.787Z" }, + { url = "https://files.pythonhosted.org/packages/b0/fe/136ccece61bd690d9c1f715baaeefd953bb2360134de73519d5df19d29ca/websockets-16.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:8b6e209ffee39ff1b6d0fa7bfef6de950c60dfb91b8fcead17da4ee539121a79", size = 175038, upload-time = "2026-01-10T09:22:47.999Z" }, + { url = "https://files.pythonhosted.org/packages/40/1e/9771421ac2286eaab95b8575b0cb701ae3663abf8b5e1f64f1fd90d0a673/websockets-16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:86890e837d61574c92a97496d590968b23c2ef0aeb8a9bc9421d174cd378ae39", size = 175328, upload-time = "2026-01-10T09:22:49.809Z" }, + { url = "https://files.pythonhosted.org/packages/18/29/71729b4671f21e1eaa5d6573031ab810ad2936c8175f03f97f3ff164c802/websockets-16.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9b5aca38b67492ef518a8ab76851862488a478602229112c4b0d58d63a7a4d5c", size = 184915, upload-time = "2026-01-10T09:22:51.071Z" }, + { url = "https://files.pythonhosted.org/packages/97/bb/21c36b7dbbafc85d2d480cd65df02a1dc93bf76d97147605a8e27ff9409d/websockets-16.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e0334872c0a37b606418ac52f6ab9cfd17317ac26365f7f65e203e2d0d0d359f", size = 186152, upload-time = "2026-01-10T09:22:52.224Z" }, + { url = "https://files.pythonhosted.org/packages/4a/34/9bf8df0c0cf88fa7bfe36678dc7b02970c9a7d5e065a3099292db87b1be2/websockets-16.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a0b31e0b424cc6b5a04b8838bbaec1688834b2383256688cf47eb97412531da1", size = 185583, upload-time = "2026-01-10T09:22:53.443Z" }, + { url = "https://files.pythonhosted.org/packages/47/88/4dd516068e1a3d6ab3c7c183288404cd424a9a02d585efbac226cb61ff2d/websockets-16.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:485c49116d0af10ac698623c513c1cc01c9446c058a4e61e3bf6c19dff7335a2", size = 184880, upload-time = "2026-01-10T09:22:55.033Z" }, + { url = "https://files.pythonhosted.org/packages/91/d6/7d4553ad4bf1c0421e1ebd4b18de5d9098383b5caa1d937b63df8d04b565/websockets-16.0-cp312-cp312-win32.whl", hash = "sha256:eaded469f5e5b7294e2bdca0ab06becb6756ea86894a47806456089298813c89", size = 178261, upload-time = "2026-01-10T09:22:56.251Z" }, + { url = "https://files.pythonhosted.org/packages/c3/f0/f3a17365441ed1c27f850a80b2bc680a0fa9505d733fe152fdf5e98c1c0b/websockets-16.0-cp312-cp312-win_amd64.whl", hash = "sha256:5569417dc80977fc8c2d43a86f78e0a5a22fee17565d78621b6bb264a115d4ea", size = 178693, upload-time = "2026-01-10T09:22:57.478Z" }, + { url = "https://files.pythonhosted.org/packages/cc/9c/baa8456050d1c1b08dd0ec7346026668cbc6f145ab4e314d707bb845bf0d/websockets-16.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:878b336ac47938b474c8f982ac2f7266a540adc3fa4ad74ae96fea9823a02cc9", size = 177364, upload-time = "2026-01-10T09:22:59.333Z" }, + { url = "https://files.pythonhosted.org/packages/7e/0c/8811fc53e9bcff68fe7de2bcbe75116a8d959ac699a3200f4847a8925210/websockets-16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:52a0fec0e6c8d9a784c2c78276a48a2bdf099e4ccc2a4cad53b27718dbfd0230", size = 175039, upload-time = "2026-01-10T09:23:01.171Z" }, + { url = "https://files.pythonhosted.org/packages/aa/82/39a5f910cb99ec0b59e482971238c845af9220d3ab9fa76dd9162cda9d62/websockets-16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e6578ed5b6981005df1860a56e3617f14a6c307e6a71b4fff8c48fdc50f3ed2c", size = 175323, upload-time = "2026-01-10T09:23:02.341Z" }, + { url = "https://files.pythonhosted.org/packages/bd/28/0a25ee5342eb5d5f297d992a77e56892ecb65e7854c7898fb7d35e9b33bd/websockets-16.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:95724e638f0f9c350bb1c2b0a7ad0e83d9cc0c9259f3ea94e40d7b02a2179ae5", size = 184975, upload-time = "2026-01-10T09:23:03.756Z" }, + { url = "https://files.pythonhosted.org/packages/f9/66/27ea52741752f5107c2e41fda05e8395a682a1e11c4e592a809a90c6a506/websockets-16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c0204dc62a89dc9d50d682412c10b3542d748260d743500a85c13cd1ee4bde82", size = 186203, upload-time = "2026-01-10T09:23:05.01Z" }, + { url = "https://files.pythonhosted.org/packages/37/e5/8e32857371406a757816a2b471939d51c463509be73fa538216ea52b792a/websockets-16.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:52ac480f44d32970d66763115edea932f1c5b1312de36df06d6b219f6741eed8", size = 185653, upload-time = "2026-01-10T09:23:06.301Z" }, + { url = "https://files.pythonhosted.org/packages/9b/67/f926bac29882894669368dc73f4da900fcdf47955d0a0185d60103df5737/websockets-16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6e5a82b677f8f6f59e8dfc34ec06ca6b5b48bc4fcda346acd093694cc2c24d8f", size = 184920, upload-time = "2026-01-10T09:23:07.492Z" }, + { url = "https://files.pythonhosted.org/packages/3c/a1/3d6ccdcd125b0a42a311bcd15a7f705d688f73b2a22d8cf1c0875d35d34a/websockets-16.0-cp313-cp313-win32.whl", hash = "sha256:abf050a199613f64c886ea10f38b47770a65154dc37181bfaff70c160f45315a", size = 178255, upload-time = "2026-01-10T09:23:09.245Z" }, + { url = "https://files.pythonhosted.org/packages/6b/ae/90366304d7c2ce80f9b826096a9e9048b4bb760e44d3b873bb272cba696b/websockets-16.0-cp313-cp313-win_amd64.whl", hash = "sha256:3425ac5cf448801335d6fdc7ae1eb22072055417a96cc6b31b3861f455fbc156", size = 178689, upload-time = "2026-01-10T09:23:10.483Z" }, + { url = "https://files.pythonhosted.org/packages/f3/1d/e88022630271f5bd349ed82417136281931e558d628dd52c4d8621b4a0b2/websockets-16.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:8cc451a50f2aee53042ac52d2d053d08bf89bcb31ae799cb4487587661c038a0", size = 177406, upload-time = "2026-01-10T09:23:12.178Z" }, + { url = "https://files.pythonhosted.org/packages/f2/78/e63be1bf0724eeb4616efb1ae1c9044f7c3953b7957799abb5915bffd38e/websockets-16.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:daa3b6ff70a9241cf6c7fc9e949d41232d9d7d26fd3522b1ad2b4d62487e9904", size = 175085, upload-time = "2026-01-10T09:23:13.511Z" }, + { url = "https://files.pythonhosted.org/packages/bb/f4/d3c9220d818ee955ae390cf319a7c7a467beceb24f05ee7aaaa2414345ba/websockets-16.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:fd3cb4adb94a2a6e2b7c0d8d05cb94e6f1c81a0cf9dc2694fb65c7e8d94c42e4", size = 175328, upload-time = "2026-01-10T09:23:14.727Z" }, + { url = "https://files.pythonhosted.org/packages/63/bc/d3e208028de777087e6fb2b122051a6ff7bbcca0d6df9d9c2bf1dd869ae9/websockets-16.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:781caf5e8eee67f663126490c2f96f40906594cb86b408a703630f95550a8c3e", size = 185044, upload-time = "2026-01-10T09:23:15.939Z" }, + { url = "https://files.pythonhosted.org/packages/ad/6e/9a0927ac24bd33a0a9af834d89e0abc7cfd8e13bed17a86407a66773cc0e/websockets-16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:caab51a72c51973ca21fa8a18bd8165e1a0183f1ac7066a182ff27107b71e1a4", size = 186279, upload-time = "2026-01-10T09:23:17.148Z" }, + { url = "https://files.pythonhosted.org/packages/b9/ca/bf1c68440d7a868180e11be653c85959502efd3a709323230314fda6e0b3/websockets-16.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:19c4dc84098e523fd63711e563077d39e90ec6702aff4b5d9e344a60cb3c0cb1", size = 185711, upload-time = "2026-01-10T09:23:18.372Z" }, + { url = "https://files.pythonhosted.org/packages/c4/f8/fdc34643a989561f217bb477cbc47a3a07212cbda91c0e4389c43c296ebf/websockets-16.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a5e18a238a2b2249c9a9235466b90e96ae4795672598a58772dd806edc7ac6d3", size = 184982, upload-time = "2026-01-10T09:23:19.652Z" }, + { url = "https://files.pythonhosted.org/packages/dd/d1/574fa27e233764dbac9c52730d63fcf2823b16f0856b3329fc6268d6ae4f/websockets-16.0-cp314-cp314-win32.whl", hash = "sha256:a069d734c4a043182729edd3e9f247c3b2a4035415a9172fd0f1b71658a320a8", size = 177915, upload-time = "2026-01-10T09:23:21.458Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f1/ae6b937bf3126b5134ce1f482365fde31a357c784ac51852978768b5eff4/websockets-16.0-cp314-cp314-win_amd64.whl", hash = "sha256:c0ee0e63f23914732c6d7e0cce24915c48f3f1512ec1d079ed01fc629dab269d", size = 178381, upload-time = "2026-01-10T09:23:22.715Z" }, + { url = "https://files.pythonhosted.org/packages/06/9b/f791d1db48403e1f0a27577a6beb37afae94254a8c6f08be4a23e4930bc0/websockets-16.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:a35539cacc3febb22b8f4d4a99cc79b104226a756aa7400adc722e83b0d03244", size = 177737, upload-time = "2026-01-10T09:23:24.523Z" }, + { url = "https://files.pythonhosted.org/packages/bd/40/53ad02341fa33b3ce489023f635367a4ac98b73570102ad2cdd770dacc9a/websockets-16.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:b784ca5de850f4ce93ec85d3269d24d4c82f22b7212023c974c401d4980ebc5e", size = 175268, upload-time = "2026-01-10T09:23:25.781Z" }, + { url = "https://files.pythonhosted.org/packages/74/9b/6158d4e459b984f949dcbbb0c5d270154c7618e11c01029b9bbd1bb4c4f9/websockets-16.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:569d01a4e7fba956c5ae4fc988f0d4e187900f5497ce46339c996dbf24f17641", size = 175486, upload-time = "2026-01-10T09:23:27.033Z" }, + { url = "https://files.pythonhosted.org/packages/e5/2d/7583b30208b639c8090206f95073646c2c9ffd66f44df967981a64f849ad/websockets-16.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:50f23cdd8343b984957e4077839841146f67a3d31ab0d00e6b824e74c5b2f6e8", size = 185331, upload-time = "2026-01-10T09:23:28.259Z" }, + { url = "https://files.pythonhosted.org/packages/45/b0/cce3784eb519b7b5ad680d14b9673a31ab8dcb7aad8b64d81709d2430aa8/websockets-16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:152284a83a00c59b759697b7f9e9cddf4e3c7861dd0d964b472b70f78f89e80e", size = 186501, upload-time = "2026-01-10T09:23:29.449Z" }, + { url = "https://files.pythonhosted.org/packages/19/60/b8ebe4c7e89fb5f6cdf080623c9d92789a53636950f7abacfc33fe2b3135/websockets-16.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:bc59589ab64b0022385f429b94697348a6a234e8ce22544e3681b2e9331b5944", size = 186062, upload-time = "2026-01-10T09:23:31.368Z" }, + { url = "https://files.pythonhosted.org/packages/88/a8/a080593f89b0138b6cba1b28f8df5673b5506f72879322288b031337c0b8/websockets-16.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:32da954ffa2814258030e5a57bc73a3635463238e797c7375dc8091327434206", size = 185356, upload-time = "2026-01-10T09:23:32.627Z" }, + { url = "https://files.pythonhosted.org/packages/c2/b6/b9afed2afadddaf5ebb2afa801abf4b0868f42f8539bfe4b071b5266c9fe/websockets-16.0-cp314-cp314t-win32.whl", hash = "sha256:5a4b4cc550cb665dd8a47f868c8d04c8230f857363ad3c9caf7a0c3bf8c61ca6", size = 178085, upload-time = "2026-01-10T09:23:33.816Z" }, + { url = "https://files.pythonhosted.org/packages/9f/3e/28135a24e384493fa804216b79a6a6759a38cc4ff59118787b9fb693df93/websockets-16.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b14dc141ed6d2dde437cddb216004bcac6a1df0935d79656387bd41632ba0bbd", size = 178531, upload-time = "2026-01-10T09:23:35.016Z" }, + { url = "https://files.pythonhosted.org/packages/72/07/c98a68571dcf256e74f1f816b8cc5eae6eb2d3d5cfa44d37f801619d9166/websockets-16.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:349f83cd6c9a415428ee1005cadb5c2c56f4389bc06a9af16103c3bc3dcc8b7d", size = 174947, upload-time = "2026-01-10T09:23:36.166Z" }, + { url = "https://files.pythonhosted.org/packages/7e/52/93e166a81e0305b33fe416338be92ae863563fe7bce446b0f687b9df5aea/websockets-16.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:4a1aba3340a8dca8db6eb5a7986157f52eb9e436b74813764241981ca4888f03", size = 175260, upload-time = "2026-01-10T09:23:37.409Z" }, + { url = "https://files.pythonhosted.org/packages/56/0c/2dbf513bafd24889d33de2ff0368190a0e69f37bcfa19009ef819fe4d507/websockets-16.0-pp311-pypy311_pp73-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:f4a32d1bd841d4bcbffdcb3d2ce50c09c3909fbead375ab28d0181af89fd04da", size = 176071, upload-time = "2026-01-10T09:23:39.158Z" }, + { url = "https://files.pythonhosted.org/packages/a5/8f/aea9c71cc92bf9b6cc0f7f70df8f0b420636b6c96ef4feee1e16f80f75dd/websockets-16.0-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0298d07ee155e2e9fda5be8a9042200dd2e3bb0b8a38482156576f863a9d457c", size = 176968, upload-time = "2026-01-10T09:23:41.031Z" }, + { url = "https://files.pythonhosted.org/packages/9a/3f/f70e03f40ffc9a30d817eef7da1be72ee4956ba8d7255c399a01b135902a/websockets-16.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:a653aea902e0324b52f1613332ddf50b00c06fdaf7e92624fbf8c77c78fa5767", size = 178735, upload-time = "2026-01-10T09:23:42.259Z" }, + { url = "https://files.pythonhosted.org/packages/6f/28/258ebab549c2bf3e64d2b0217b973467394a9cea8c42f70418ca2c5d0d2e/websockets-16.0-py3-none-any.whl", hash = "sha256:1637db62fad1dc833276dded54215f2c7fa46912301a24bd94d45d46a011ceec", size = 171598, upload-time = "2026-01-10T09:23:45.395Z" }, +] + [[package]] name = "wheel" version = "0.46.3"