@devflow-tools/devflow 0.18.36 → 0.18.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard/404.html +1 -1
- package/dist/dashboard/__next.__PAGE__.txt +33 -20
- package/dist/dashboard/__next._full.txt +28 -15
- package/dist/dashboard/__next._tree.txt +2 -1
- package/dist/dashboard/_next/static/chunks/136-ed087d45d4c57def.js +1 -0
- package/dist/dashboard/_next/static/chunks/567-54b277a64dd332a4.js +1 -0
- package/dist/dashboard/_next/static/chunks/73-2dc4c435f0e3bd94.js +1 -0
- package/dist/dashboard/_next/static/chunks/{820-9606b69ff6f7f9b9.js → 820-b9d442e4990c267b.js} +1 -1
- package/dist/dashboard/_next/static/chunks/825-c8f40c7b7d482f83.js +1 -0
- package/dist/dashboard/_next/static/chunks/87c73c54-8350361388fba170.js +1 -0
- package/dist/dashboard/_next/static/chunks/968-e7efadf9f1a30259.js +52 -0
- package/dist/dashboard/_next/static/chunks/app/intelligence/knowledge/page-d74930294a785071.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/intelligence/memory/page-d74930294a785071.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/intelligence/page-d74930294a785071.js +1 -0
- package/dist/dashboard/_next/static/chunks/main-09b1ccc91836f96c.js +5 -0
- package/dist/dashboard/_next/static/chunks/{webpack-c52cf5cbd2898ec1.js → webpack-a90fe7e6c3b4bb45.js} +1 -1
- package/dist/dashboard/_not-found/__next._full.txt +28 -16
- package/dist/dashboard/_not-found/__next._not-found.__PAGE__.txt +34 -22
- package/dist/dashboard/_not-found/__next._tree.txt +3 -1
- package/dist/dashboard/_not-found.html +1 -1
- package/dist/dashboard/_not-found.txt +28 -16
- package/dist/dashboard/accuracy/__next._full.txt +30 -17
- package/dist/dashboard/accuracy/__next._tree.txt +3 -1
- package/dist/dashboard/accuracy/__next.accuracy.__PAGE__.txt +35 -22
- package/dist/dashboard/accuracy.html +1 -1
- package/dist/dashboard/accuracy.txt +30 -17
- package/dist/dashboard/benchmark/__next._full.txt +32 -17
- package/dist/dashboard/benchmark/__next._tree.txt +3 -1
- package/dist/dashboard/benchmark/__next.benchmark.__PAGE__.txt +37 -22
- package/dist/dashboard/benchmark.html +1 -1
- package/dist/dashboard/benchmark.txt +32 -17
- package/dist/dashboard/context/__next._full.txt +30 -17
- package/dist/dashboard/context/__next._tree.txt +3 -1
- package/dist/dashboard/context/__next.context.__PAGE__.txt +35 -22
- package/dist/dashboard/context.html +1 -1
- package/dist/dashboard/context.txt +30 -17
- package/dist/dashboard/doctor/__next._full.txt +30 -17
- package/dist/dashboard/doctor/__next._tree.txt +3 -1
- package/dist/dashboard/doctor/__next.doctor.__PAGE__.txt +35 -22
- package/dist/dashboard/doctor.html +1 -1
- package/dist/dashboard/doctor.txt +30 -17
- package/dist/dashboard/executions/__next._full.txt +30 -17
- package/dist/dashboard/executions/__next._tree.txt +3 -1
- package/dist/dashboard/executions/__next.executions.__PAGE__.txt +35 -22
- package/dist/dashboard/executions.html +1 -1
- package/dist/dashboard/executions.txt +30 -17
- package/dist/dashboard/graph/__next._full.txt +32 -17
- package/dist/dashboard/graph/__next._tree.txt +3 -1
- package/dist/dashboard/graph/__next.graph.__PAGE__.txt +38 -23
- package/dist/dashboard/graph.html +1 -1
- package/dist/dashboard/graph.txt +32 -17
- package/dist/dashboard/index.html +1 -1
- package/dist/dashboard/index.txt +28 -15
- package/dist/dashboard/intelligence/__next._full.txt +31 -17
- package/dist/dashboard/intelligence/__next._tree.txt +3 -1
- package/dist/dashboard/intelligence/__next.intelligence.__PAGE__.txt +36 -22
- package/dist/dashboard/intelligence/knowledge/__next._full.txt +32 -17
- package/dist/dashboard/intelligence/knowledge/__next._tree.txt +4 -1
- package/dist/dashboard/intelligence/knowledge/__next.intelligence.knowledge.__PAGE__.txt +38 -23
- package/dist/dashboard/intelligence/knowledge.html +1 -1
- package/dist/dashboard/intelligence/knowledge.txt +32 -17
- package/dist/dashboard/intelligence/memory/__next._full.txt +32 -17
- package/dist/dashboard/intelligence/memory/__next._tree.txt +4 -1
- package/dist/dashboard/intelligence/memory/__next.intelligence.memory.__PAGE__.txt +38 -23
- package/dist/dashboard/intelligence/memory.html +1 -1
- package/dist/dashboard/intelligence/memory.txt +32 -17
- package/dist/dashboard/intelligence.html +1 -1
- package/dist/dashboard/intelligence.txt +31 -17
- package/dist/dashboard/knowledge/__next._full.txt +30 -17
- package/dist/dashboard/knowledge/__next._tree.txt +3 -1
- package/dist/dashboard/knowledge/__next.knowledge.__PAGE__.txt +35 -22
- package/dist/dashboard/knowledge.html +1 -1
- package/dist/dashboard/knowledge.txt +30 -17
- package/dist/dashboard/memory/__next._full.txt +32 -17
- package/dist/dashboard/memory/__next._tree.txt +3 -1
- package/dist/dashboard/memory/__next.memory.__PAGE__.txt +37 -22
- package/dist/dashboard/memory.html +1 -1
- package/dist/dashboard/memory.txt +32 -17
- package/dist/dashboard/replay/__next._full.txt +30 -17
- package/dist/dashboard/replay/__next._tree.txt +3 -1
- package/dist/dashboard/replay/__next.replay.__PAGE__.txt +35 -22
- package/dist/dashboard/replay.html +1 -1
- package/dist/dashboard/replay.txt +30 -17
- package/dist/dashboard/runs/_/__next._full.txt +31 -17
- package/dist/dashboard/runs/_/__next._tree.txt +4 -1
- package/dist/dashboard/runs/_/__next.runs.$d$id.__PAGE__.txt +37 -23
- package/dist/dashboard/runs/_.html +1 -1
- package/dist/dashboard/runs/_.txt +31 -17
- package/dist/dashboard/runs/__next._full.txt +30 -17
- package/dist/dashboard/runs/__next._tree.txt +3 -1
- package/dist/dashboard/runs/__next.runs.__PAGE__.txt +35 -22
- package/dist/dashboard/runs.html +1 -1
- package/dist/dashboard/runs.txt +30 -17
- package/dist/dashboard/settings/__next._full.txt +33 -17
- package/dist/dashboard/settings/__next._tree.txt +3 -1
- package/dist/dashboard/settings/__next.settings.__PAGE__.txt +38 -22
- package/dist/dashboard/settings.html +1 -1
- package/dist/dashboard/settings.txt +33 -17
- package/dist/dashboard/timeline/__next._full.txt +30 -17
- package/dist/dashboard/timeline/__next._tree.txt +3 -1
- package/dist/dashboard/timeline/__next.timeline.__PAGE__.txt +35 -22
- package/dist/dashboard/timeline.html +1 -1
- package/dist/dashboard/timeline.txt +30 -17
- package/dist/dashboard/tool-metrics/__next._full.txt +30 -17
- package/dist/dashboard/tool-metrics/__next._tree.txt +3 -1
- package/dist/dashboard/tool-metrics/__next.tool-metrics.__PAGE__.txt +35 -22
- package/dist/dashboard/tool-metrics.html +1 -1
- package/dist/dashboard/tool-metrics.txt +30 -17
- package/dist/dashboard/workflows/__next._full.txt +30 -17
- package/dist/dashboard/workflows/__next._tree.txt +3 -1
- package/dist/dashboard/workflows/__next.workflows.__PAGE__.txt +35 -22
- package/dist/dashboard/workflows.html +1 -1
- package/dist/dashboard/workflows.txt +30 -17
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/dist/command-registry.json +7 -7
- package/dist/plugin/dist/runtime-manifest.json +5 -5
- package/dist/plugin/package.json +13 -13
- package/dist/plugin/skills/delivery/SKILL.md +2 -0
- package/package.json +21 -21
- package/plugin-registry.json +29 -29
- package/dist/dashboard/_next/static/chunks/136-c55134e877048a37.js +0 -1
- package/dist/dashboard/_next/static/chunks/567-65014d15b90b623c.js +0 -1
- package/dist/dashboard/_next/static/chunks/73-0fe34a8ce87c82ea.js +0 -1
- package/dist/dashboard/_next/static/chunks/825-8d69033cd30489b9.js +0 -1
- package/dist/dashboard/_next/static/chunks/87c73c54-5c63d5698583b654.js +0 -1
- package/dist/dashboard/_next/static/chunks/968-97d3f66d7aab7532.js +0 -52
- package/dist/dashboard/_next/static/chunks/app/intelligence/knowledge/page-e6a21c234798623f.js +0 -1
- package/dist/dashboard/_next/static/chunks/app/intelligence/memory/page-e6a21c234798623f.js +0 -1
- package/dist/dashboard/_next/static/chunks/app/intelligence/page-e6a21c234798623f.js +0 -1
- package/dist/dashboard/_next/static/chunks/main-09803f06c26fe6d9.js +0 -5
- /package/dist/dashboard/_next/static/{UGVjnrlWvo7D-4jHOsQs6 → quL_DVtAGjOvYaGr44WOx}/_buildManifest.js +0 -0
- /package/dist/dashboard/_next/static/{UGVjnrlWvo7D-4jHOsQs6 → quL_DVtAGjOvYaGr44WOx}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73],{383:(t,e,n)=>{var r=n(52087),o=n(52313),i=n(54023),a=i&&i.isTypedArray;t.exports=a?o(a):r},479:(t,e,n)=>{var r=n(8125),o=n(71518);t.exports=function(t,e){return r(t,o(t),e)}},784:(t,e,n)=>{var r=n(920),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e})},920:(t,e,n)=>{var r=n(70774);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},1038:(t,e,n)=>{t=n.nmd(t);var r=n(6243),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}},1147:(t,e,n)=>{var r;try{r={cloneDeep:n(6305),constant:n(1150),defaults:n(36616),each:n(40007),filter:n(39056),find:n(69397),flatten:n(6580),forEach:n(62380),forIn:n(80054),has:n(36026),isUndefined:n(69654),last:n(7258),map:n(16396),mapValues:n(67214),max:n(9556),merge:n(4406),min:n(23878),minBy:n(88183),now:n(3442),pick:n(63327),range:n(56227),reduce:n(94964),sortBy:n(9711),uniqueId:n(54448),values:n(79084),zipObject:n(93726)}}catch(t){}r||(r=window._),t.exports=r},1150:t=>{t.exports=function(t){return function(){return t}}},1602:(t,e,n)=>{var r=n(88299),o=n(26854);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},1855:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},2139:(t,e,n)=>{"use strict";function r(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,r]of t)if(!Object.is(r,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}let n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(t[r],e[r]))return!1;return!0}n.d(e,{x:()=>r})},2331:(t,e,n)=>{"use strict";var r=n(1147),o=n(91361).Graph,i=n(67661).slack;t.exports=function(t){var e,n,a=new o({directed:!1}),u=t.nodes()[0],s=t.nodeCount();for(a.setNode(u,{});function(t,e){return r.forEach(t.nodes(),function n(o){r.forEach(e.nodeEdges(o),function(r){var a=r.v,u=o===a?r.w:a;t.hasNode(u)||i(e,r)||(t.setNode(u,{}),t.setEdge(o,u,{}),n(u))})}),t.nodeCount()}(a,t)<s;)e=function(t,e){return r.minBy(e.edges(),function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return i(e,n)})}(a,t),n=a.hasNode(e.v)?i(t,e):-i(t,e),function(t,e,n){r.forEach(t.nodes(),function(t){e.node(t).rank+=n})}(a,t,n);return a}},2365:(t,e,n)=>{var r=n(34636),o=n(82426);t.exports=function(t){return r(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,a)}return e})}},2523:(t,e,n)=>{var r=n(4178);t.exports=function(t,e){return r(t,e,"post")}},2601:(t,e,n)=>{var r=n(27814),o=n(63409),i=n(60054),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return 0/0;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||s.test(t)?c(t.slice(2),n?2:8):a.test(t)?0/0:+t}},2702:(t,e,n)=>{var r=n(58470);t.exports=function(t){return null==t?"":r(t)}},3140:(t,e,n)=>{"use strict";t.exports=n(48558)},3269:(t,e,n)=>{t.exports=n(59390)(n(6243),"Set")},3327:(t,e,n)=>{var r=n(86812),o=n(42068),i=n(90781),a=n(62417),u=n(88929);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},3442:(t,e,n)=>{var r=n(6243);t.exports=function(){return r.Date.now()}},3970:(t,e,n)=>{"use strict";var r=n(1147),o=n(90941);t.exports={run:function(t){var e,n,i,a,u,s="greedy"===t.graph().acyclicer?o(t,(e=t,function(t){return e.edge(t).weight})):(n=t,i=[],a={},u={},r.forEach(n.nodes(),function t(e){r.has(u,e)||(u[e]=!0,a[e]=!0,r.forEach(n.outEdges(e),function(e){r.has(a,e.w)?i.push(e):t(e.w)}),delete a[e])}),i);r.forEach(s,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))})},undo:function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}}},4109:(t,e,n)=>{var r=n(23247);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4178:(t,e,n)=>{var r=n(60865);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return r.each(e,function(e){if(!t.hasNode(e))throw Error("Graph does not have node: "+e);!function t(e,n,o,i,a,u){!r.has(i,n)&&(i[n]=!0,o||u.push(n),r.each(a(n),function(n){t(e,n,o,i,a,u)}),o&&u.push(n))}(t,e,"post"===n,a,o,i)}),i}},4191:(t,e,n)=>{var r=n(5510),o=n(88299),i=n(51222),a=n(32603),u=n(9588),s=n(29648),c=n(35255),l=n(383),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}},4406:(t,e,n)=>{var r=n(29182);t.exports=n(2365)(function(t,e,n){r(t,e,n)})},5053:(t,e,n)=>{var r=n(60054);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},5275:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5510:(t,e,n)=>{var r=n(35255),o=n(70188),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},5967:(t,e,n)=>{var r=n(51959),o=n(51222),i=n(32603),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},6102:t=>{t.exports=function(t,e,n){for(var r=-1,o=t.length,i=e.length,a={};++r<o;){var u=r<i?e[r]:void 0;n(a,t[r],u)}return a}},6243:(t,e,n)=>{var r=n(38026),o="object"==typeof self&&self&&self.Object===Object&&self;t.exports=r||o||Function("return this")()},6305:(t,e,n)=>{var r=n(67387);t.exports=function(t){return r(t,5)}},6309:(t,e,n)=>{var r=n(99686);t.exports=function(t){return function(e){return r(e,t)}}},6400:(t,e,n)=>{var r=n(1147),o=n(84446),i=n(58339),a=n(87987);t.exports=function t(e,n,u,s){var c,l,f=e.children(n),h=e.node(n),d=h?h.borderLeft:void 0,p=h?h.borderRight:void 0,v={};d&&(f=r.filter(f,function(t){return t!==d&&t!==p}));var g=o(e,f);r.forEach(g,function(n){if(e.children(n.v).length){var o,i,a=t(e,n.v,u,s);v[n.v]=a,r.has(a,"barycenter")&&(o=n,i=a,r.isUndefined(o.barycenter)?(o.barycenter=i.barycenter,o.weight=i.weight):(o.barycenter=(o.barycenter*o.weight+i.barycenter*i.weight)/(o.weight+i.weight),o.weight+=i.weight))}});var y=i(g,u);c=y,l=v,r.forEach(c,function(t){t.vs=r.flatten(t.vs.map(function(t){return l[t]?l[t].vs:t}),!0)});var m=a(y,s);if(d&&(m.vs=r.flatten([d,m.vs,p],!0),e.predecessors(d).length)){var x=e.node(e.predecessors(d)[0]),b=e.node(e.predecessors(p)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+x.order+b.order)/(m.weight+2),m.weight+=2}return m}},6580:(t,e,n)=>{var r=n(89996);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},6660:(t,e,n)=>{var r=n(17674);t.exports=function(t,e){return r(e,function(e){return t[e]})}},6672:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},7258:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},7650:(t,e,n)=>{t.exports=n(59390)(n(6243),"DataView")},7696:(t,e,n)=>{var r=n(4178);t.exports=function(t,e){return r(t,e,"pre")}},7945:(t,e,n)=>{var r=n(89996),o=n(34636),i=n(16083),a=n(45123);t.exports=o(function(t){return i(r(t,1,a,!0))})},8011:(t,e,n)=>{"use strict";n.d(e,{Do:()=>p,WZ:()=>f,TG:()=>v,ny:()=>h,yX:()=>g,xN:()=>y,Qc:()=>d,I$:()=>rm,aQ:()=>rE,di:()=>rk,kO:()=>r$,rN:()=>n1,bi:()=>rs,_s:()=>nL,_7:()=>np,aE:()=>ns,kr:()=>nj,Hm:()=>rn,tM:()=>e9,tn:()=>e6,xc:()=>e5,us:()=>nI,IO:()=>nu,e_:()=>nY,Fp:()=>nK,Mi:()=>nb,HF:()=>e7,Eo:()=>nD,b5:()=>n8,Tq:()=>nc,qX:()=>nQ,q1:()=>nU,M_:()=>n7,oj:()=>nH,aZ:()=>ni,aW:()=>re,uD:()=>nC,Jo:()=>no,U$:()=>na,X6:()=>n_,oN:()=>n6,ah:()=>n2,R4:()=>nO,r8:()=>rf,ZO:()=>e3,bK:()=>e8,b$:()=>nt,uj:()=>nJ,v5:()=>nV,Ue:()=>nS,Er:()=>nF,oB:()=>ne,kf:()=>nk,mW:()=>nE,Q6:()=>nR,QE:()=>nP,kM:()=>nm,No:()=>rd,Ff:()=>nA,zj:()=>nN,s_:()=>nM,vS:()=>ra,qn:()=>rv,uL:()=>rh,YN:()=>nT});var r,o,i,a,u,s,c,l,f,h,d,p,v,g,y,m={value:()=>{}};function x(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new b(r)}function b(t){this._=t}function w(t,e,n){for(var r=0,o=t.length;r<o;++r)if(t[r].name===e){t[r]=m,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}function _(){}function E(t){return null==t?_:function(){return this.querySelector(t)}}function k(){return[]}function j(t){return null==t?k:function(){return this.querySelectorAll(t)}}function M(t){return function(){return this.matches(t)}}function A(t){return function(e){return e.matches(t)}}b.prototype=x.prototype={constructor:b,on:function(t,e){var n,r=this._,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),i=-1,a=o.length;if(arguments.length<2){for(;++i<a;)if((n=(t=o[i]).type)&&(n=function(t,e){for(var n,r=0,o=t.length;r<o;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++i<a;)if(n=(t=o[i]).type)r[n]=w(r[n],t.name,e);else if(null==e)for(n in r)r[n]=w(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new b(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,o=Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],i=0,n=r.length;i<n;++i)r[i].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}};var N=Array.prototype.find;function z(){return this.firstElementChild}var O=Array.prototype.filter;function S(){return Array.from(this.children)}function $(t){return Array(t.length)}function C(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function P(t,e,n,r,o,i){for(var a,u=0,s=e.length,c=i.length;u<c;++u)(a=e[u])?(a.__data__=i[u],r[u]=a):n[u]=new C(t,i[u]);for(;u<s;++u)(a=e[u])&&(o[u]=a)}function I(t,e,n,r,o,i,a){var u,s,c,l=new Map,f=e.length,h=i.length,d=Array(f);for(u=0;u<f;++u)(s=e[u])&&(d[u]=c=a.call(s,s.__data__,u,e)+"",l.has(c)?o[u]=s:l.set(c,s));for(u=0;u<h;++u)c=a.call(t,i[u],u,i)+"",(s=l.get(c))?(r[u]=s,s.__data__=i[u],l.delete(c)):n[u]=new C(t,i[u]);for(u=0;u<f;++u)(s=e[u])&&l.get(d[u])===s&&(o[u]=s)}function L(t){return t.__data__}function T(t,e){return t<e?-1:t>e?1:t>=e?0:0/0}C.prototype={constructor:C,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var R="http://www.w3.org/1999/xhtml";let B={svg:"http://www.w3.org/2000/svg",xhtml:R,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function D(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),B.hasOwnProperty(e)?{space:B[e],local:t}:t}function H(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function q(t,e){return t.style.getPropertyValue(e)||H(t).getComputedStyle(t,null).getPropertyValue(e)}function V(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new U(t)}function U(t){this._node=t,this._names=V(t.getAttribute("class")||"")}function X(t,e){for(var n=F(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function Y(t,e){for(var n=F(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function G(){this.textContent=""}function W(){this.innerHTML=""}function K(){this.nextSibling&&this.parentNode.appendChild(this)}function Z(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Q(t){var e=D(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===R&&e.documentElement.namespaceURI===R?e.createElement(t):e.createElementNS(n,t)}})(e)}function J(){return null}function tt(){var t=this.parentNode;t&&t.removeChild(this)}function te(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tr(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r<i;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function to(t,e,n){return function(){var r,o=this.__on,i=function(t){e.call(this,t,this.__data__)};if(o){for(var a=0,u=o.length;a<u;++a)if((r=o[a]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),r.value=e;return}}this.addEventListener(t.type,i,n),r={type:t.type,name:t.name,value:e,listener:i,options:n},o?o.push(r):this.__on=[r]}}function ti(t,e,n){var r=H(t),o=r.CustomEvent;"function"==typeof o?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}U.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ta=[null];function tu(t,e){this._groups=t,this._parents=e}function ts(){return new tu([[document.documentElement]],ta)}function tc(t){return"string"==typeof t?new tu([[document.querySelector(t)]],[document.documentElement]):new tu([[t]],ta)}function tl(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}tu.prototype=ts.prototype={constructor:tu,select:function(t){"function"!=typeof t&&(t=E(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var i,a,u=e[o],s=u.length,c=r[o]=Array(s),l=0;l<s;++l)(i=u[l])&&(a=t.call(i,i.__data__,l,u))&&("__data__"in i&&(a.__data__=i.__data__),c[l]=a);return new tu(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=j(t);for(var n=this._groups,r=n.length,o=[],i=[],a=0;a<r;++a)for(var u,s=n[a],c=s.length,l=0;l<c;++l)(u=s[l])&&(o.push(t.call(u,u.__data__,l,s)),i.push(u));return new tu(o,i)},selectChild:function(t){var e;return this.select(null==t?z:(e="function"==typeof t?t:A(t),function(){return N.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?S:(e="function"==typeof t?t:A(t),function(){return O.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=M(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var i,a=e[o],u=a.length,s=r[o]=[],c=0;c<u;++c)(i=a[c])&&t.call(i,i.__data__,c,a)&&s.push(i);return new tu(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,L);var n=e?I:P,r=this._parents,o=this._groups;"function"!=typeof t&&(m=t,t=function(){return m});for(var i=o.length,a=Array(i),u=Array(i),s=Array(i),c=0;c<i;++c){var l=r[c],f=o[c],h=f.length,d="object"==typeof(y=t.call(l,l&&l.__data__,c,r))&&"length"in y?y:Array.from(y),p=d.length,v=u[c]=Array(p),g=a[c]=Array(p);n(l,f,v,g,s[c]=Array(h),d,e);for(var y,m,x,b,w=0,_=0;w<p;++w)if(x=v[w]){for(w>=_&&(_=w+1);!(b=g[_])&&++_<p;);x._next=b||null}}return(a=new tu(a,r))._enter=u,a._exit=s,a},enter:function(){return new tu(this._enter||this._groups.map($),this._parents)},exit:function(){return new tu(this._exit||this._groups.map($),this._parents)},join:function(t,e,n){var r=this.enter(),o=this,i=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,o=n.length,i=r.length,a=Math.min(o,i),u=Array(o),s=0;s<a;++s)for(var c,l=n[s],f=r[s],h=l.length,d=u[s]=Array(h),p=0;p<h;++p)(c=l[p]||f[p])&&(d[p]=c);for(;s<o;++s)u[s]=n[s];return new tu(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,o=t[e],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=T);for(var n=this._groups,r=n.length,o=Array(r),i=0;i<r;++i){for(var a,u=n[i],s=u.length,c=o[i]=Array(s),l=0;l<s;++l)(a=u[l])&&(c[l]=a);c.sort(e)}return new tu(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o,i=e[n],a=0,u=i.length;a<u;++a)(o=i[a])&&t.call(o,o.__data__,a,i);return this},attr:function(t,e){var n=D(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):q(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=V(t+"");if(arguments.length<2){for(var r=F(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?X:Y)(this,t)}}:e?function(t){return function(){X(this,t)}}:function(t){return function(){Y(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?G:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?W:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(K)},lower:function(){return this.each(Z)},append:function(t){var e="function"==typeof t?t:Q(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Q(t),r=null==e?J:"function"==typeof e?e:E(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(tt)},clone:function(t){return this.select(t?tn:te)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,o,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=i.length;if(arguments.length<2){var u=this.node().__on;if(u){for(var s,c=0,l=u.length;c<l;++c)for(r=0,s=u[c];r<a;++r)if((o=i[r]).type===s.type&&o.name===s.name)return s.value}return}for(u=e?to:tr,r=0;r<a;++r)this.each(u(i[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return ti(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return ti(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,o=t[e],i=0,a=o.length;i<a;++i)(r=o[i])&&(yield r)}};let tf={passive:!1},th={capture:!0,passive:!1};function td(t){t.stopImmediatePropagation()}function tp(t){t.preventDefault(),t.stopImmediatePropagation()}function tv(t){var e=t.document.documentElement,n=tc(t).on("dragstart.drag",tp,th);"onselectstart"in e?n.on("selectstart.drag",tp,th):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function tg(t,e){var n=t.document.documentElement,r=tc(t).on("dragstart.drag",null);e&&(r.on("click.drag",tp,th),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}let ty=t=>()=>t;function tm(t,{sourceEvent:e,subject:n,target:r,identifier:o,active:i,x:a,y:u,dx:s,dy:c,dispatch:l}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:l}})}function tx(t){return!t.ctrlKey&&!t.button}function tb(){return this.parentNode}function tw(t,e){return null==e?{x:t.x,y:t.y}:e}function t_(){return navigator.maxTouchPoints||"ontouchstart"in this}function tE(t){return((t=Math.exp(t))+1/t)/2}tm.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};let tk=function t(e,n,r){function o(t,o){var i,a,u=t[0],s=t[1],c=t[2],l=o[0],f=o[1],h=o[2],d=l-u,p=f-s,v=d*d+p*p;if(v<1e-12)a=Math.log(h/c)/e,i=function(t){return[u+t*d,s+t*p,c*Math.exp(e*t*a)]};else{var g=Math.sqrt(v),y=(h*h-c*c+r*v)/(2*c*n*g),m=(h*h-c*c-r*v)/(2*h*n*g),x=Math.log(Math.sqrt(y*y+1)-y);a=(Math.log(Math.sqrt(m*m+1)-m)-x)/e,i=function(t){var r,o,i=t*a,l=tE(x),f=c/(n*g)*(l*(((r=Math.exp(2*(r=e*i+x)))-1)/(r+1))-((o=Math.exp(o=x))-1/o)/2);return[u+f*d,s+f*p,c*l/tE(e*i+x)]}}return i.duration=1e3*a*e/Math.SQRT2,i}return o.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},o}(Math.SQRT2,2,4);var tj,tM,tA=0,tN=0,tz=0,tO=0,tS=0,t$=0,tC="object"==typeof performance&&performance.now?performance:Date,tP="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tI(){return tS||(tP(tL),tS=tC.now()+t$)}function tL(){tS=0}function tT(){this._call=this._time=this._next=null}function tR(t,e,n){var r=new tT;return r.restart(t,e,n),r}function tB(){tS=(tO=tC.now())+t$,tA=tN=0;try{tI(),++tA;for(var t,e=tj;e;)(t=tS-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tA}finally{tA=0,function(){for(var t,e,n=tj,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:tj=e);tM=t,tH(r)}(),tS=0}}function tD(){var t=tC.now(),e=t-tO;e>1e3&&(t$-=e,tO=t)}function tH(t){!tA&&(tN&&(tN=clearTimeout(tN)),t-tS>24?(t<1/0&&(tN=setTimeout(tB,t-tC.now()-t$)),tz&&(tz=clearInterval(tz))):(tz||(tO=tC.now(),tz=setInterval(tD,1e3)),tA=1,tP(tB)))}function tq(t,e,n){var r=new tT;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}tT.prototype=tR.prototype={constructor:tT,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?tI():+n)+(null==e?0:+e),this._next||tM===this||(tM?tM._next=this:tj=this,tM=this),this._call=t,this._time=n,tH()},stop:function(){this._call&&(this._call=null,this._time=1/0,tH())}};var tV=x("start","end","cancel","interrupt"),tF=[];function tU(t,e,n,r,o,i){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,o=t.__transition;function i(s){var c,l,f,h;if(1!==n.state)return u();for(c in o)if((h=o[c]).name===n.name){if(3===h.state)return tq(i);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete o[c]):+c<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete o[c])}if(tq(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(s))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=Array(f=n.tween.length),c=0,l=-1;c<f;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1),i=-1,a=r.length;++i<a;)r[i].call(t,o);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=n,n.timer=tR(function(t){n.state=1,n.timer.restart(i,n.delay,n.time),n.delay<=t&&i(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:o,on:tV,tween:tF,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function tX(t,e){var n=tG(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tY(t,e){var n=tG(t,e);if(n.state>3)throw Error("too late; already running");return n}function tG(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function tW(t,e){var n,r,o,i=t.__transition,a=!0;if(i){for(o in e=null==e?null:e+"",i){if((n=i[o]).name!==e){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete i[o]}a&&delete t.__transition}}function tK(t,e){return t*=1,e*=1,function(n){return t*(1-n)+e*n}}var tZ=180/Math.PI,tQ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tJ(t,e,n,r,o,i){var a,u,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*tZ,skewX:Math.atan(s)*tZ,scaleX:a,scaleY:u}}function t0(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}return function(i,a){var u,s,c,l,f=[],h=[];return i=t(i),a=t(a),!function(t,r,o,i,a,u){if(t!==o||r!==i){var s=a.push("translate(",null,e,null,n);u.push({i:s-4,x:tK(t,o)},{i:s-2,x:tK(r,i)})}else(o||i)&&a.push("translate("+o+e+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,f,h),u=i.rotate,s=a.rotate,u!==s?(u-s>180?s+=360:s-u>180&&(u+=360),h.push({i:f.push(o(f)+"rotate(",null,r)-2,x:tK(u,s)})):s&&f.push(o(f)+"rotate("+s+r),c=i.skewX,l=a.skewX,c!==l?h.push({i:f.push(o(f)+"skewX(",null,r)-2,x:tK(c,l)}):l&&f.push(o(f)+"skewX("+l+r),!function(t,e,n,r,i,a){if(t!==n||e!==r){var u=i.push(o(i)+"scale(",null,",",null,")");a.push({i:u-4,x:tK(t,n)},{i:u-2,x:tK(e,r)})}else(1!==n||1!==r)&&i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,f,h),i=a=null,function(t){for(var e,n=-1,r=h.length;++n<r;)f[(e=h[n]).i]=e.x(t);return f.join("")}}}var t1=t0(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tQ:tJ(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),t2=t0(function(t){return null==t?tQ:(l||(l=document.createElementNS("http://www.w3.org/2000/svg","g")),l.setAttribute("transform",t),t=l.transform.baseVal.consolidate())?tJ((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tQ},", ",")",")");function t5(t,e,n){var r=t._id;return t.each(function(){var t=tY(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tG(t,r).value[e]}}function t3(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function t6(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function t9(){}var t8=1/.7,t4="\\s*([+-]?\\d+)\\s*",t7="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ee=/^#([0-9a-f]{3,8})$/,en=RegExp(`^rgb\\(${t4},${t4},${t4}\\)$`),er=RegExp(`^rgb\\(${et},${et},${et}\\)$`),eo=RegExp(`^rgba\\(${t4},${t4},${t4},${t7}\\)$`),ei=RegExp(`^rgba\\(${et},${et},${et},${t7}\\)$`),ea=RegExp(`^hsl\\(${t7},${et},${et}\\)$`),eu=RegExp(`^hsla\\(${t7},${et},${et},${t7}\\)$`),es={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function ec(){return this.rgb().formatHex()}function el(){return this.rgb().formatRgb()}function ef(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ee.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?eh(e):3===n?new ev(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ed(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ed(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=en.exec(t))?new ev(e[1],e[2],e[3],1):(e=er.exec(t))?new ev(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=eo.exec(t))?ed(e[1],e[2],e[3],e[4]):(e=ei.exec(t))?ed(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ea.exec(t))?ew(e[1],e[2]/100,e[3]/100,1):(e=eu.exec(t))?ew(e[1],e[2]/100,e[3]/100,e[4]):es.hasOwnProperty(t)?eh(es[t]):"transparent"===t?new ev(0/0,0/0,0/0,0):null}function eh(t){return new ev(t>>16&255,t>>8&255,255&t,1)}function ed(t,e,n,r){return r<=0&&(t=e=n=0/0),new ev(t,e,n,r)}function ep(t,e,n,r){var o;return 1==arguments.length?((o=t)instanceof t9||(o=ef(o)),o)?new ev((o=o.rgb()).r,o.g,o.b,o.opacity):new ev:new ev(t,e,n,null==r?1:r)}function ev(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function eg(){return`#${eb(this.r)}${eb(this.g)}${eb(this.b)}`}function ey(){let t=em(this.opacity);return`${1===t?"rgb(":"rgba("}${ex(this.r)}, ${ex(this.g)}, ${ex(this.b)}${1===t?")":`, ${t})`}`}function em(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ex(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function eb(t){return((t=ex(t))<16?"0":"")+t.toString(16)}function ew(t,e,n,r){return r<=0?t=e=n=0/0:n<=0||n>=1?t=e=0/0:e<=0&&(t=0/0),new eE(t,e,n,r)}function e_(t){if(t instanceof eE)return new eE(t.h,t.s,t.l,t.opacity);if(t instanceof t9||(t=ef(t)),!t)return new eE;if(t instanceof eE)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=0/0,u=i-o,s=(i+o)/2;return u?(a=e===i?(n-r)/u+(n<r)*6:n===i?(r-e)/u+2:(e-n)/u+4,u/=s<.5?i+o:2-i-o,a*=60):u=s>0&&s<1?0:a,new eE(a,u,s,t.opacity)}function eE(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ek(t){return(t=(t||0)%360)<0?t+360:t}function ej(t){return Math.max(0,Math.min(1,t||0))}function eM(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function eA(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}t3(t9,ef,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ec,formatHex:ec,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return e_(this).formatHsl()},formatRgb:el,toString:el}),t3(ev,ep,t6(t9,{brighter(t){return t=null==t?t8:Math.pow(t8,t),new ev(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new ev(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ev(ex(this.r),ex(this.g),ex(this.b),em(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:eg,formatHex:eg,formatHex8:function(){return`#${eb(this.r)}${eb(this.g)}${eb(this.b)}${eb((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ey,toString:ey})),t3(eE,function(t,e,n,r){return 1==arguments.length?e_(t):new eE(t,e,n,null==r?1:r)},t6(t9,{brighter(t){return t=null==t?t8:Math.pow(t8,t),new eE(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new eE(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new ev(eM(t>=240?t-240:t+120,o,r),eM(t,o,r),eM(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new eE(ek(this.h),ej(this.s),ej(this.l),em(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=em(this.opacity);return`${1===t?"hsl(":"hsla("}${ek(this.h)}, ${100*ej(this.s)}%, ${100*ej(this.l)}%${1===t?")":`, ${t})`}`}}));let eN=t=>()=>t;function ez(t,e){var n=e-t;return n?function(e){return t+e*n}:eN(isNaN(t)?e:t)}let eO=function t(e){var n,r=1==(n=+e)?ez:function(t,e){var r,o,i;return e-t?(r=t,o=e,r=Math.pow(r,i=n),o=Math.pow(o,i)-r,i=1/i,function(t){return Math.pow(r+t*o,i)}):eN(isNaN(t)?e:t)};function o(t,e){var n=r((t=ep(t)).r,(e=ep(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=ez(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return o.gamma=t,o}(1);function eS(t){return function(e){var n,r,o=e.length,i=Array(o),a=Array(o),u=Array(o);for(n=0;n<o;++n)r=ep(e[n]),i[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}eS(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<e-1?t[r+2]:2*i-o;return eA((n-r/e)*e,a,o,i,u)}}),eS(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return eA((n-r/e)*e,o,i,a,u)}});var e$=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eC=RegExp(e$.source,"g");function eP(t,e){var n,r,o,i,a,u=e$.lastIndex=eC.lastIndex=0,s=-1,c=[],l=[];for(t+="",e+="";(o=e$.exec(t))&&(i=eC.exec(e));)(a=i.index)>u&&(a=e.slice(u,a),c[s]?c[s]+=a:c[++s]=a),(o=o[0])===(i=i[0])?c[s]?c[s]+=i:c[++s]=i:(c[++s]=null,l.push({i:s,x:tK(o,i)})),u=eC.lastIndex;return u<e.length&&(a=e.slice(u),c[s]?c[s]+=a:c[++s]=a),c.length<2?l[0]?(n=l[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=l.length,function(t){for(var n,r=0;r<e;++r)c[(n=l[r]).i]=n.x(t);return c.join("")})}function eI(t,e){var n;return("number"==typeof e?tK:e instanceof ef?eO:(n=ef(e))?(e=n,eO):eP)(t,e)}var eL=ts.prototype.constructor;function eT(t){return function(){this.style.removeProperty(t)}}var eR=0;function eB(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var eD=ts.prototype;eB.prototype=(function(t){return ts().transition(t)}).prototype={constructor:eB,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=E(t));for(var r=this._groups,o=r.length,i=Array(o),a=0;a<o;++a)for(var u,s,c=r[a],l=c.length,f=i[a]=Array(l),h=0;h<l;++h)(u=c[h])&&(s=t.call(u,u.__data__,h,c))&&("__data__"in u&&(s.__data__=u.__data__),f[h]=s,tU(f[h],e,n,h,f,tG(u,n)));return new eB(i,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=j(t));for(var r=this._groups,o=r.length,i=[],a=[],u=0;u<o;++u)for(var s,c=r[u],l=c.length,f=0;f<l;++f)if(s=c[f]){for(var h,d=t.call(s,s.__data__,f,c),p=tG(s,n),v=0,g=d.length;v<g;++v)(h=d[v])&&tU(h,e,n,v,d,p);i.push(d),a.push(s)}return new eB(i,a,e,n)},selectChild:eD.selectChild,selectChildren:eD.selectChildren,filter:function(t){"function"!=typeof t&&(t=M(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var i,a=e[o],u=a.length,s=r[o]=[],c=0;c<u;++c)(i=a[c])&&t.call(i,i.__data__,c,a)&&s.push(i);return new eB(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),a=Array(r),u=0;u<i;++u)for(var s,c=e[u],l=n[u],f=c.length,h=a[u]=Array(f),d=0;d<f;++d)(s=c[d]||l[d])&&(h[d]=s);for(;u<r;++u)a[u]=e[u];return new eB(a,this._parents,this._name,this._id)},selection:function(){return new eL(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++eR,r=this._groups,o=r.length,i=0;i<o;++i)for(var a,u=r[i],s=u.length,c=0;c<s;++c)if(a=u[c]){var l=tG(a,e);tU(a,t,n,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new eB(r,this._parents,t,n)},call:eD.call,nodes:eD.nodes,node:eD.node,size:eD.size,empty:eD.empty,each:eD.each,on:function(t,e){var n,r,o,i,a,u,s=this._id;return arguments.length<2?tG(this.node(),s).on.on(t):this.each((n=s,r=t,o=e,u=(r+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tX:tY,function(){var t=u(this,n),e=t.on;e!==i&&(a=(i=e).copy()).on(r,o),t.on=a}))},attr:function(t,e){var n=D(t),r="transform"===n?t2:eI;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,o,i;return function(){var a,u,s=n(this);return null==s?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local))===(u=s+"")?null:a===r&&u===o?i:(o=u,i=e(r=a,s))}}:function(t,e,n){var r,o,i;return function(){var a,u,s=n(this);return null==s?void this.removeAttribute(t):(a=this.getAttribute(t))===(u=s+"")?null:a===r&&u===o?i:(o=u,i=e(r=a,s))}})(n,r,t5(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=e(r=a,n)}}:function(t,e,n){var r,o,i=n+"";return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=e(r=a,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=D(t);return this.tween(n,(r.local?function(t,e){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e){this.setAttributeNS(t.space,t.local,o.call(this,e))}),n}return o._value=e,o}:function(t,e){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e){this.setAttribute(t,o.call(this,e))}),n}return o._value=e,o})(r,e))},style:function(t,e,n){var r,o,i,a,u,s,c,l,f,h,d,p,v,g,y,m,x,b,w,_,E,k="transform"==(t+="")?t1:eI;return null==e?this.styleTween(t,(r=t,function(){var t=q(this,r),e=(this.style.removeProperty(r),q(this,r));return t===e?null:t===o&&e===i?a:a=k(o=t,i=e)})).on("end.style."+t,eT(t)):"function"==typeof e?this.styleTween(t,(u=t,s=t5(this,"style."+t,e),function(){var t=q(this,u),e=s(this),n=e+"";return null==e&&(this.style.removeProperty(u),n=e=q(this,u)),t===n?null:t===c&&n===l?f:(l=n,f=k(c=t,e))})).each((h=this._id,x="end."+(m="style."+(d=t)),function(){var t=tY(this,h),e=t.on,n=null==t.value[m]?y||(y=eT(d)):void 0;(e!==p||g!==n)&&(v=(p=e).copy()).on(x,g=n),t.on=v})):this.styleTween(t,(b=t,E=e+"",function(){var t=q(this,b);return t===E?null:t===w?_:_=k(w=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,o;function i(){var i=e.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e){this.style.setProperty(t,i.call(this,e),n)}),r}return i._value=e,i}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=t5(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,o=tG(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var o=tY(this,t),i=o.tween;if(i!==n){r=n=i;for(var a=0,u=r.length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}}o.tween=r}}:function(t,e,n){var r,o;if("function"!=typeof n)throw Error();return function(){var i=tY(this,t),a=i.tween;if(a!==r){o=(r=a).slice();for(var u={name:e,value:n},s=0,c=o.length;s<c;++s)if(o[s].name===e){o[s]=u;break}s===c&&o.push(u)}i.tween=o}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tX(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tX(this,t).delay=e}})(e,t)):tG(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tY(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tY(this,t).duration=e}})(e,t)):tG(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tY(this,t).ease=e}}(e,t)):tG(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tY(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,o=n.size();return new Promise(function(i,a){var u={value:a},s={value:function(){0==--o&&i()}};n.each(function(){var n=tY(this,r),o=n.on;o!==t&&((e=(t=o).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(s)),n.on=e}),0===o&&i()})},[Symbol.iterator]:eD[Symbol.iterator]};var eH={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};ts.prototype.interrupt=function(t){return this.each(function(){tW(this,t)})},ts.prototype.transition=function(t){var e,n;t instanceof eB?(e=t._id,t=t._name):(e=++eR,(n=eH).time=tI(),t=null==t?null:t+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a,u=r[i],s=u.length,c=0;c<s;++c)(a=u[c])&&tU(a,t,e,c,u,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(a,e));return new eB(r,this._parents,t,e)};let eq=t=>()=>t;function eV(t,{sourceEvent:e,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function eF(t,e,n){this.k=t,this.x=e,this.y=n}eF.prototype={constructor:eF,scale:function(t){return 1===t?this:new eF(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new eF(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eU=new eF(1,0,0);function eX(t){for(;!t.__zoom;)if(!(t=t.parentNode))return eU;return t.__zoom}function eY(t){t.stopImmediatePropagation()}function eG(t){t.preventDefault(),t.stopImmediatePropagation()}function eW(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function eK(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function eZ(){return this.__zoom||eU}function eQ(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function eJ(){return navigator.maxTouchPoints||"ontouchstart"in this}function e0(t,e,n){var r=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],i=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function e1(){var t,e,n,r=eW,o=eK,i=e0,a=eQ,u=eJ,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=tk,h=x("start","zoom","end"),d=0,p=10;function v(t){t.property("__zoom",eZ).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",j).filter(u).on("touchstart.zoom",M).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",N).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new eF(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k;return r===t.x&&o===t.y?t:new eF(t.k,r,o)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,r){t.on("start.zoom",function(){w(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,i=w(this,t).event(r),a=o.apply(this,t),u=null==n?m(a):"function"==typeof n?n.apply(this,t):n,s=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=this.__zoom,l="function"==typeof e?e.apply(this,t):e,h=f(c.invert(u).concat(s/c.k),l.invert(u).concat(s/l.k));return function(t){if(1===t)t=l;else{var e=h(t),n=s/e[2];t=new eF(n,u[0]-e[0]*n,u[1]-e[1]*n)}i.zoom(null,t)}})}function w(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function E(t,...e){if(r.apply(this,arguments)){var n=w(this,e).event(t),o=this.__zoom,u=Math.max(s[0],Math.min(s[1],o.k*Math.pow(2,a.apply(this,arguments)))),l=tl(t);if(n.wheel)(n.mouse[0][0]!==l[0]||n.mouse[0][1]!==l[1])&&(n.mouse[1]=o.invert(n.mouse[0]=l)),clearTimeout(n.wheel);else{if(o.k===u)return;n.mouse=[l,o.invert(l)],tW(this),n.start()}eG(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",i(y(g(o,u),n.mouse[0],n.mouse[1]),n.extent,c))}}function k(t,...e){if(!n&&r.apply(this,arguments)){var o=t.currentTarget,a=w(this,e,!0).event(t),u=tc(t.view).on("mousemove.zoom",function(t){if(eG(t),!a.moved){var e=t.clientX-l,n=t.clientY-f;a.moved=e*e+n*n>d}a.event(t).zoom("mouse",i(y(a.that.__zoom,a.mouse[0]=tl(t,o),a.mouse[1]),a.extent,c))},!0).on("mouseup.zoom",function(t){u.on("mousemove.zoom mouseup.zoom",null),tg(t.view,a.moved),eG(t),a.event(t).end()},!0),s=tl(t,o),l=t.clientX,f=t.clientY;tv(t.view),eY(t),a.mouse=[s,this.__zoom.invert(s)],tW(this),a.start()}}function j(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=tl(t.changedTouches?t.changedTouches[0]:t,this),u=n.invert(a),s=n.k*(t.shiftKey?.5:2),f=i(y(g(n,s),a,u),o.apply(this,e),c);eG(t),l>0?tc(this).transition().duration(l).call(b,f,a,t):tc(this).call(v.transform,f,a,t)}}function M(n,...o){if(r.apply(this,arguments)){var i,a,u,s,c=n.touches,l=c.length,f=w(this,o,n.changedTouches.length===l).event(n);for(eY(n),a=0;a<l;++a)s=[s=tl(u=c[a],this),this.__zoom.invert(s),u.identifier],f.touch0?f.touch1||f.touch0[2]===s[2]||(f.touch1=s,f.taps=0):(f.touch0=s,i=!0,f.taps=1+!!t);t&&(t=clearTimeout(t)),i&&(f.taps<2&&(e=s[0],t=setTimeout(function(){t=null},500)),tW(this),f.start())}}function A(t,...e){if(this.__zooming){var n,r,o,a,u=w(this,e).event(t),s=t.changedTouches,l=s.length;for(eG(t),n=0;n<l;++n)o=tl(r=s[n],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=o:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=o);if(r=u.that.__zoom,u.touch1){var f=u.touch0[0],h=u.touch0[1],d=u.touch1[0],p=u.touch1[1],v=(v=d[0]-f[0])*v+(v=d[1]-f[1])*v,m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m;r=g(r,Math.sqrt(v/m)),o=[(f[0]+d[0])/2,(f[1]+d[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!u.touch0)return;o=u.touch0[0],a=u.touch0[1]}u.zoom("touch",i(y(r,o,a),u.extent,c))}}function N(t,...r){if(this.__zooming){var o,i,a=w(this,r).event(t),u=t.changedTouches,s=u.length;for(eY(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),o=0;o<s;++o)i=u[o],a.touch0&&a.touch0[2]===i.identifier?delete a.touch0:a.touch1&&a.touch1[2]===i.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(i=tl(i,this),Math.hypot(e[0]-i[0],e[1]-i[1])<p)){var c=tc(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return v.transform=function(t,e,n,r){var o=t.selection?t.selection():t;o.property("__zoom",eZ),t!==o?b(t,e,n,r):o.interrupt().each(function(){w(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},v.scaleBy=function(t,e,n,r){v.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,r)},v.scaleTo=function(t,e,n,r){v.transform(t,function(){var t=o.apply(this,arguments),r=this.__zoom,a=null==n?m(t):"function"==typeof n?n.apply(this,arguments):n,u=r.invert(a),s="function"==typeof e?e.apply(this,arguments):e;return i(y(g(r,s),a,u),t,c)},n,r)},v.translateBy=function(t,e,n,r){v.transform(t,function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)},null,r)},v.translateTo=function(t,e,n,r,a){v.transform(t,function(){var t=o.apply(this,arguments),a=this.__zoom,u=null==r?m(t):"function"==typeof r?r.apply(this,arguments):r;return i(eU.translate(u[0],u[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)},r,a)},_.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=tc(this.that).datum();h.call(t,this.that,new eV(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:h}),e)}},v.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:eq(+t),v):a},v.filter=function(t){return arguments.length?(r="function"==typeof t?t:eq(!!t),v):r},v.touchable=function(t){return arguments.length?(u="function"==typeof t?t:eq(!!t),v):u},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:eq([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(s[0]=+t[0],s[1]=+t[1],v):[s[0],s[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(i=t,v):i},v.duration=function(t){return arguments.length?(l=+t,v):l},v.interpolate=function(t){return arguments.length?(f=t,v):f},v.on=function(){var t=h.on.apply(h,arguments);return t===h?v:t},v.clickDistance=function(t){return arguments.length?(d=(t*=1)*t,v):Math.sqrt(d)},v.tapDistance=function(t){return arguments.length?(p=+t,v):p},v}function e2(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?eN(e):("number"===o?tK:"string"===o?(r=ef(e))?(e=r,eO):eP:e instanceof ef?eO:e instanceof Date?function(t,e){var n=new Date;return t*=1,e*=1,function(r){return n.setTime(t*(1-r)+e*r),n}}:!ArrayBuffer.isView(n=e)||n instanceof DataView?Array.isArray(e)?function(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=Array(o),a=Array(r);for(n=0;n<o;++n)i[n]=e2(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},o={};for(n in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)n in t?r[n]=e2(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}:tK:function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}})(t,e)}eX.prototype=eF.prototype;let e5={error001:(t="react")=>`Seems like you have not used ${"svelte"===t?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${t}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${t} handle id: "${"source"===t?n:r}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:t=>`Edge with id "${t}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},e3=[[-1/0,-1/0],[1/0,1/0]],e6=["Enter"," ","Escape"],e9={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:t,x:e,y:n})=>`Moved selected node ${t}. New position, x: ${e}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(r=f||(f={})).Strict="strict",r.Loose="loose",(o=h||(h={})).Free="free",o.Vertical="vertical",o.Horizontal="horizontal",(i=d||(d={})).Partial="partial",i.Full="full";let e8={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};(a=p||(p={})).Bezier="default",a.Straight="straight",a.Step="step",a.SmoothStep="smoothstep",a.SimpleBezier="simplebezier",(u=v||(v={})).Arrow="arrow",u.ArrowClosed="arrowclosed",(s=g||(g={})).Left="left",s.Top="top",s.Right="right",s.Bottom="bottom";let e4={[g.Left]:g.Right,[g.Right]:g.Left,[g.Top]:g.Bottom,[g.Bottom]:g.Top};function e7(t){return null===t?null:t?"valid":"invalid"}let nt=t=>!!t&&"object"==typeof t&&"id"in t&&"source"in t&&"target"in t,ne=t=>!!t&&"object"==typeof t&&"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),nn=t=>!!t&&"object"==typeof t&&"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),nr=(t,e=[0,0])=>{let{width:n,height:r}=nC(t),o=t.origin??e,i=n*o[0],a=r*o[1];return{x:t.position.x-i,y:t.position.y-a}},no=(t,e={nodeOrigin:[0,0]})=>0===t.length?{x:0,y:0,width:0,height:0}:ny(t.reduce((t,n)=>{let r="string"==typeof n,o=e.nodeLookup||r?void 0:n;return e.nodeLookup&&(o=r?e.nodeLookup.get(n):nn(n)?n:e.nodeLookup.get(n.id)),nv(t,o?nx(o,e.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),ni=(t,e={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return t.forEach(t=>{(void 0===e.filter||e.filter(t))&&(n=nv(n,nx(t)),r=!0)}),r?ny(n):{x:0,y:0,width:0,height:0}},na=(t,e,[n,r,o]=[0,0,1],i=!1,a=!1)=>{let u=(e.x-n)/o,s=(e.y-r)/o,c=e.width/o,l=e.height/o,f=[];for(let e of t.values()){let{measured:t,selectable:n=!0,hidden:r=!1}=e;if(a&&!n||r)continue;let o=t.width??e.width??e.initialWidth??0,h=t.height??e.height??e.initialHeight??0,{x:d,y:p}=e.internals.positionAbsolute,v=nw(u,s,c,l,d,p,o,h),g=o*h,y=i&&v>0;(!e.internals.handleBounds||y||v>=g||e.dragging)&&f.push(e)}return f};async function nu({nodes:t,width:e,height:n,panZoom:r,minZoom:o,maxZoom:i},a){let u,s;if(0===t.size)return!0;let c=nO(ni((u=new Map,s=a?.nodes?new Set(a.nodes.map(t=>t.id)):null,t.forEach(t=>{let e;if(a?.includeHiddenNodes){let{width:n,height:r}=nC(t);e=n>0&&r>0}else e=!!(t.measured.width&&t.measured.height&&!t.hidden);e&&(!s||s.has(t.id))&&u.set(t.id,t)}),u)),e,n,a?.minZoom??o,a?.maxZoom??i,a?.padding??.1);return await r.setViewport(c,{duration:a?.duration,ease:a?.ease,interpolate:a?.interpolate}),!0}function ns({nodeId:t,nextPosition:e,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){let a=n.get(t),u=a.parentId?n.get(a.parentId):void 0,{x:s,y:c}=u?u.internals.positionAbsolute:{x:0,y:0},l=a.origin??r,f=a.extent||o;if("parent"!==a.extent||a.expandParent)u&&n$(a.extent)&&(f=[[a.extent[0][0]+s,a.extent[0][1]+c],[a.extent[1][0]+s,a.extent[1][1]+c]]);else if(u){let t=u.measured.width,e=u.measured.height;t&&e&&(f=[[s,c],[s+t,c+e]])}else i?.("005",e5.error005());let h=n$(f)?nf(e,f,a.measured):e;return(void 0===a.measured.width||void 0===a.measured.height)&&i?.("015",e5.error015()),{position:{x:h.x-s+(a.measured.width??0)*l[0],y:h.y-c+(a.measured.height??0)*l[1]},positionAbsolute:h}}async function nc({nodesToRemove:t=[],edgesToRemove:e=[],nodes:n,edges:r,onBeforeDelete:o}){let i,a=new Set(t.map(t=>t.id)),u=[];for(let t of n){if(!1===t.deletable)continue;let e=a.has(t.id),n=!e&&t.parentId&&u.find(e=>e.id===t.parentId);(e||n)&&u.push(t)}let s=new Set(e.map(t=>t.id)),c=r.filter(t=>!1!==t.deletable),l=(i=new Set,u.forEach(t=>{i.add(t.id)}),c.filter(t=>i.has(t.source)||i.has(t.target)));for(let t of c)s.has(t.id)&&!l.find(e=>e.id===t.id)&&l.push(t);if(!o)return{edges:l,nodes:u};let f=await o({nodes:u,edges:l});return"boolean"==typeof f?f?{edges:l,nodes:u}:{edges:[],nodes:[]}:f}let nl=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),nf=(t={x:0,y:0},e,n)=>({x:nl(t.x,e[0][0],e[1][0]-(n?.width??0)),y:nl(t.y,e[0][1],e[1][1]-(n?.height??0))});function nh(t,e,n){let{width:r,height:o}=nC(n),{x:i,y:a}=n.internals.positionAbsolute;return nf(t,[[i,a],[i+r,a+o]],e)}let nd=(t,e,n)=>t<e?nl(Math.abs(t-e),1,e)/e:t>n?-nl(Math.abs(t-n),1,e)/e:0,np=(t,e,n=15,r=40)=>[nd(t.x,r,e.width-r)*n,nd(t.y,r,e.height-r)*n],nv=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),ng=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),ny=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),nm=(t,e=[0,0])=>{let{x:n,y:r}=nn(t)?t.internals.positionAbsolute:nr(t,e);return{x:n,y:r,width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}},nx=(t,e=[0,0])=>{let{x:n,y:r}=nn(t)?t.internals.positionAbsolute:nr(t,e);return{x:n,y:r,x2:n+(t.measured?.width??t.width??t.initialWidth??0),y2:r+(t.measured?.height??t.height??t.initialHeight??0)}},nb=(t,e)=>ny(nv(ng(t),ng(e))),nw=(t,e,n,r,o,i,a,u)=>Math.ceil(Math.max(0,Math.min(t+n,o+a)-Math.max(t,o))*Math.max(0,Math.min(e+r,i+u)-Math.max(e,i))),n_=(t,e)=>nw(t.x,t.y,t.width,t.height,e.x,e.y,e.width,e.height),nE=t=>nk(t.width)&&nk(t.height)&&nk(t.x)&&nk(t.y),nk=t=>!isNaN(t)&&isFinite(t),nj=(t,e)=>(t,e)=>{},nM=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),nA=({x:t,y:e},[n,r,o],i=!1,a=[1,1])=>{let u={x:(t-n)/o,y:(e-r)/o};return i?nM(u,a):u},nN=({x:t,y:e},[n,r,o])=>({x:t*o+n,y:e*o+r});function nz(t,e){if("number"==typeof t)return Math.floor((e-e/(1+t))*.5);if("string"==typeof t&&t.endsWith("px")){let e=parseFloat(t);if(!Number.isNaN(e))return Math.floor(e)}if("string"==typeof t&&t.endsWith("%")){let n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(e*n*.01)}return console.error(`The padding value "${t}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let nO=(t,e,n,r,o,i)=>{let a=function(t,e,n){if("string"==typeof t||"number"==typeof t){let r=nz(t,n),o=nz(t,e);return{top:r,right:o,bottom:r,left:o,x:2*o,y:2*r}}if("object"==typeof t){let r=nz(t.top??t.y??0,n),o=nz(t.bottom??t.y??0,n),i=nz(t.left??t.x??0,e),a=nz(t.right??t.x??0,e);return{top:r,right:a,bottom:o,left:i,x:i+a,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(i,e,n),u=nl(Math.min((e-a.x)/t.width,(n-a.y)/t.height),r,o),s=t.x+t.width/2,c=t.y+t.height/2,l=e/2-s*u,f=n/2-c*u,h=function(t,e,n,r,o,i){let{x:a,y:u}=nN(t,[e,n,r]),{x:s,y:c}=nN({x:t.x+t.width,y:t.y+t.height},[e,n,r]);return{left:Math.floor(a),top:Math.floor(u),right:Math.floor(o-s),bottom:Math.floor(i-c)}}(t,l,f,u,e,n),d={left:Math.min(h.left-a.left,0),top:Math.min(h.top-a.top,0),right:Math.min(h.right-a.right,0),bottom:Math.min(h.bottom-a.bottom,0)};return{x:l-d.left+d.right,y:f-d.top+d.bottom,zoom:u}},nS=()=>"u">typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function n$(t){return null!=t&&"parent"!==t}function nC(t){return{width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}}function nP(t){return(t.measured?.width??t.width??t.initialWidth)!==void 0&&(t.measured?.height??t.height??t.initialHeight)!==void 0}function nI(t,e={width:0,height:0},n,r,o){let i={...t},a=r.get(n);if(a){let t=a.origin||o;i.x+=a.internals.positionAbsolute.x-(e.width??0)*t[0],i.y+=a.internals.positionAbsolute.y-(e.height??0)*t[1]}return i}function nL(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function nT(){let t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function nR(t){return{...e9,...t||{}}}function nB(t,{snapGrid:e=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){let{x:i,y:a}=nU(t),u=nA({x:i-(o?.left??0),y:a-(o?.top??0)},r),{x:s,y:c}=n?nM(u,e):u;return{xSnapped:s,ySnapped:c,...u}}let nD=t=>({width:t.offsetWidth,height:t.offsetHeight}),nH=t=>t?.getRootNode?.()||window?.document,nq=["INPUT","SELECT","TEXTAREA"];function nV(t){let e=t.composedPath?.()?.[0]||t.target;return e?.nodeType===1&&(nq.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey"))}let nF=t=>"clientX"in t,nU=(t,e)=>{let n=nF(t),r=n?t.clientX:t.touches?.[0].clientX,o=n?t.clientY:t.touches?.[0].clientY;return{x:r-(e?.left??0),y:o-(e?.top??0)}},nX=(t,e,n,r,o)=>{let i=e.querySelectorAll(`.${t}`);return i&&i.length?Array.from(i).map(e=>{let i=e.getBoundingClientRect();return{id:e.getAttribute("data-handleid"),type:t,nodeId:o,position:e.getAttribute("data-handlepos"),x:(i.left-n.left)/r,y:(i.top-n.top)/r,...nD(e)}}):null};function nY({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:a,targetControlY:u}){let s=.125*t+.375*o+.375*a+.125*n,c=.125*e+.375*i+.375*u+.125*r,l=Math.abs(s-t),f=Math.abs(c-e);return[s,c,l,f]}function nG(t,e){return t>=0?.5*t:25*e*Math.sqrt(-t)}function nW({pos:t,x1:e,y1:n,x2:r,y2:o,c:i}){switch(t){case g.Left:return[e-nG(e-r,i),n];case g.Right:return[e+nG(r-e,i),n];case g.Top:return[e,n-nG(n-o,i)];case g.Bottom:return[e,n+nG(o-n,i)]}}function nK({sourceX:t,sourceY:e,sourcePosition:n=g.Bottom,targetX:r,targetY:o,targetPosition:i=g.Top,curvature:a=.25}){let[u,s]=nW({pos:n,x1:t,y1:e,x2:r,y2:o,c:a}),[c,l]=nW({pos:i,x1:r,y1:o,x2:t,y2:e,c:a}),[f,h,d,p]=nY({sourceX:t,sourceY:e,targetX:r,targetY:o,sourceControlX:u,sourceControlY:s,targetControlX:c,targetControlY:l});return[`M${t},${e} C${u},${s} ${c},${l} ${r},${o}`,f,h,d,p]}function nZ({sourceX:t,sourceY:e,targetX:n,targetY:r}){let o=Math.abs(n-t)/2,i=Math.abs(r-e)/2;return[n<t?n+o:n-o,r<e?r+i:r-i,o,i]}function nQ({sourceNode:t,targetNode:e,selected:n=!1,zIndex:r=0,elevateOnSelect:o=!1,zIndexMode:i="basic"}){if("manual"===i)return r;let a=Math.max(t.parentId||o&&t.selected?t.internals.z:0,e.parentId||o&&e.selected?e.internals.z:0);return(o&&n?r+1e3:r)+a}function nJ({sourceNode:t,targetNode:e,width:n,height:r,transform:o}){let i=nv(nx(t),nx(e));return i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1),n_({x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:r/o[2]},ny(i))>0}let n0=({source:t,sourceHandle:e,target:n,targetHandle:r})=>`xy-edge__${t}${e||""}-${n}${r||""}`,n1=(t,e,n={})=>{let r,o;if(!t.source||!t.target)return n.onError?.("006",e5.error006()),e;let i=n.getEdgeId||n0;return(o=r=nt(t)?{...t}:{...t,id:i(t)},e.some(t=>t.source===o.source&&t.target===o.target&&(t.sourceHandle===o.sourceHandle||!t.sourceHandle&&!o.sourceHandle)&&(t.targetHandle===o.targetHandle||!t.targetHandle&&!o.targetHandle)))?e:(null===r.sourceHandle&&delete r.sourceHandle,null===r.targetHandle&&delete r.targetHandle,e.concat(r))};function n2({sourceX:t,sourceY:e,targetX:n,targetY:r}){let[o,i,a,u]=nZ({sourceX:t,sourceY:e,targetX:n,targetY:r});return[`M ${t},${e}L ${n},${r}`,o,i,a,u]}let n5={[g.Left]:{x:-1,y:0},[g.Right]:{x:1,y:0},[g.Top]:{x:0,y:-1},[g.Bottom]:{x:0,y:1}},n3=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function n6({sourceX:t,sourceY:e,sourcePosition:n=g.Bottom,targetX:r,targetY:o,targetPosition:i=g.Top,borderRadius:a=5,centerX:u,centerY:s,offset:c=20,stepPosition:l=.5}){let[f,h,d,p,v]=function({source:t,sourcePosition:e=g.Bottom,target:n,targetPosition:r=g.Top,center:o,offset:i,stepPosition:a}){let u,s,c=n5[e],l=n5[r],f={x:t.x+c.x*i,y:t.y+c.y*i},h={x:n.x+l.x*i,y:n.y+l.y*i},d=(({source:t,sourcePosition:e=g.Bottom,target:n})=>e===g.Left||e===g.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1})({source:f,sourcePosition:e,target:h}),p=0!==d.x?"x":"y",v=d[p],y=[],m={x:0,y:0},x={x:0,y:0},[,,b,w]=nZ({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(c[p]*l[p]==-1){"x"===p?(u=o.x??f.x+(h.x-f.x)*a,s=o.y??(f.y+h.y)/2):(u=o.x??(f.x+h.x)/2,s=o.y??f.y+(h.y-f.y)*a);let t=[{x:u,y:f.y},{x:u,y:h.y}],e=[{x:f.x,y:s},{x:h.x,y:s}];y=c[p]===v?"x"===p?t:e:"x"===p?e:t}else{let o=[{x:f.x,y:h.y}],a=[{x:h.x,y:f.y}];if(y="x"===p?c.x===v?a:o:c.y===v?o:a,e===r){let e=Math.abs(t[p]-n[p]);if(e<=i){let r=Math.min(i-1,i-e);c[p]===v?m[p]=(f[p]>t[p]?-1:1)*r:x[p]=(h[p]>n[p]?-1:1)*r}}if(e!==r){let t="x"===p?"y":"x",e=c[p]===l[t],n=f[t]>h[t],r=f[t]<h[t];(1===c[p]&&(!e&&n||e&&r)||1!==c[p]&&(!e&&r||e&&n))&&(y="x"===p?o:a)}let d={x:f.x+m.x,y:f.y+m.y},g={x:h.x+x.x,y:h.y+x.y};Math.max(Math.abs(d.x-y[0].x),Math.abs(g.x-y[0].x))>=Math.max(Math.abs(d.y-y[0].y),Math.abs(g.y-y[0].y))?(u=(d.x+g.x)/2,s=y[0].y):(u=y[0].x,s=(d.y+g.y)/2)}let _={x:f.x+m.x,y:f.y+m.y},E={x:h.x+x.x,y:h.y+x.y};return[[t,..._.x!==y[0].x||_.y!==y[0].y?[_]:[],...y,...E.x!==y[y.length-1].x||E.y!==y[y.length-1].y?[E]:[],n],u,s,b,w]}({source:{x:t,y:e},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:u,y:s},offset:c,stepPosition:l}),y=`M${f[0].x} ${f[0].y}`;for(let t=1;t<f.length-1;t++)y+=function(t,e,n,r){let o=Math.min(n3(t,e)/2,n3(e,n)/2,r),{x:i,y:a}=e;if(t.x===i&&i===n.x||t.y===a&&a===n.y)return`L${i} ${a}`;if(t.y===a){let e=t.x<n.x?-1:1,r=t.y<n.y?1:-1;return`L ${i+o*e},${a}Q ${i},${a} ${i},${a+o*r}`}let u=t.x<n.x?1:-1,s=t.y<n.y?-1:1;return`L ${i},${a+o*s}Q ${i},${a} ${i+o*u},${a}`}(f[t-1],f[t],f[t+1],a);return[y+=`L${f[f.length-1].x} ${f[f.length-1].y}`,h,d,p,v]}function n9(t){return t&&!!(t.internals.handleBounds||t.handles?.length)&&!!(t.measured.width||t.width||t.initialWidth)}function n8(t){let{sourceNode:e,targetNode:n}=t;if(!n9(e)||!n9(n))return null;let r=e.internals.handleBounds||n4(e.handles),o=n.internals.handleBounds||n4(n.handles),i=rt(r?.source??[],t.sourceHandle),a=rt(t.connectionMode===f.Strict?o?.target??[]:(o?.target??[]).concat(o?.source??[]),t.targetHandle);if(!i||!a)return t.onError?.("008",e5.error008(!i?"source":"target",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;let u=i?.position||g.Bottom,s=a?.position||g.Top,c=n7(e,i,u),l=n7(n,a,s);return{sourceX:c.x,sourceY:c.y,targetX:l.x,targetY:l.y,sourcePosition:u,targetPosition:s}}function n4(t){if(!t)return null;let e=[],n=[];for(let r of t)r.width=r.width??1,r.height=r.height??1,"source"===r.type?e.push(r):"target"===r.type&&n.push(r);return{source:e,target:n}}function n7(t,e,n=g.Left,r=!1){let o=(e?.x??0)+t.internals.positionAbsolute.x,i=(e?.y??0)+t.internals.positionAbsolute.y,{width:a,height:u}=e??nC(t);if(r)return{x:o+a/2,y:i+u/2};switch(e?.position??n){case g.Top:return{x:o+a/2,y:i};case g.Right:return{x:o+a,y:i+u/2};case g.Bottom:return{x:o+a/2,y:i+u};case g.Left:return{x:o,y:i+u/2}}}function rt(t,e){return t&&(e?t.find(t=>t.id===e):t[0])||null}function re(t,e){if(!t)return"";if("string"==typeof t)return t;let n=e?`${e}__`:"";return`${n}${Object.keys(t).sort().map(e=>`${e}=${t[e]}`).join("&")}`}function rn(t,{id:e,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){let i=new Set;return t.reduce((t,a)=>([a.markerStart||r,a.markerEnd||o].forEach(r=>{if(r&&"object"==typeof r){let o=re(r,e);i.has(o)||(t.push({id:o,color:r.color||n,...r}),i.add(o))}}),t),[]).sort((t,e)=>t.id.localeCompare(e.id))}let rr={nodeOrigin:[0,0],nodeExtent:e3,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},ro={...rr,checkEquality:!0};function ri(t,e){let n={...t};for(let t in e)void 0!==e[t]&&(n[t]=e[t]);return n}function ra(t,e,n){let r=ri(rr,n);for(let n of t.values())if(n.parentId)rc(n,t,e,r);else{let t=nf(nr(n,r.nodeOrigin),n$(n.extent)?n.extent:r.nodeExtent,nC(n));n.internals.positionAbsolute=t}}function ru(t){return"manual"===t}function rs(t,e,n,r={}){let o=ri(ro,r),i={i:0},a=new Map(e),u=o?.elevateNodesOnSelect&&!ru(o.zIndexMode)?1e3:0,s=t.length>0,c=!1;for(let l of(e.clear(),n.clear(),t)){let t=a.get(l.id);if(o.checkEquality&&l===t?.internals.userNode)e.set(l.id,t);else{let n=nf(nr(l,o.nodeOrigin),n$(l.extent)?l.extent:o.nodeExtent,nC(l));t={...o.defaults,...l,measured:{width:l.measured?.width,height:l.measured?.height},internals:{positionAbsolute:n,handleBounds:function(t,e){if(!t.handles)return t.measured?e?.internals.handleBounds:void 0;let n=[],r=[];for(let e of t.handles){let o={id:e.id,width:e.width??1,height:e.height??1,nodeId:t.id,x:e.x,y:e.y,position:e.position,type:e.type};"source"===e.type?n.push(o):"target"===e.type&&r.push(o)}return{source:n,target:r}}(l,t),z:rl(l,u,o.zIndexMode),userNode:l}},e.set(l.id,t)}void 0!==t.measured&&void 0!==t.measured.width&&void 0!==t.measured.height||t.hidden||(s=!1),l.parentId&&rc(t,e,n,r,i),c||=l.selected??!1}return{nodesInitialized:s,hasSelectedNodes:c}}function rc(t,e,n,r,o){let{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:u,zIndexMode:s}=ri(rr,r),c=t.parentId,l=e.get(c);if(!l)return void console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(t,e){if(!t.parentId)return;let n=e.get(t.parentId);n?n.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}(t,n),o&&!l.parentId&&void 0===l.internals.rootParentIndex&&"auto"===s&&(l.internals.rootParentIndex=++o.i,l.internals.z=l.internals.z+10*o.i),o&&void 0!==l.internals.rootParentIndex&&(o.i=l.internals.rootParentIndex);let{x:f,y:h,z:d}=function(t,e,n,r,o,i){let{x:a,y:u}=e.internals.positionAbsolute,s=nC(t),c=nr(t,n),l=n$(t.extent)?nf(c,t.extent,s):c,f=nf({x:a+l.x,y:u+l.y},r,s);"parent"===t.extent&&(f=nh(f,s,e));let h=rl(t,o,i),d=e.internals.z??0;return{x:f.x,y:f.y,z:d>=h?d+1:h}}(t,l,a,u,i&&!ru(s)?1e3:0,s),{positionAbsolute:p}=t.internals,v=f!==p.x||h!==p.y;(v||d!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:v?{x:f,y:h}:p,z:d}})}function rl(t,e,n){let r=nk(t.zIndex)?t.zIndex:0;return ru(n)?r:r+(t.selected?e:0)}function rf(t,e,n,r=[0,0]){let o=[],i=new Map;for(let n of t){let t=e.get(n.parentId);if(!t)continue;let r=nb(i.get(n.parentId)?.expandedRect??nm(t),n.rect);i.set(n.parentId,{expandedRect:r,parent:t})}return i.size>0&&i.forEach(({expandedRect:e,parent:i},a)=>{let u=i.internals.positionAbsolute,s=nC(i),c=i.origin??r,l=e.x<u.x?Math.round(Math.abs(u.x-e.x)):0,f=e.y<u.y?Math.round(Math.abs(u.y-e.y)):0,h=Math.max(s.width,Math.round(e.width)),d=Math.max(s.height,Math.round(e.height)),p=(h-s.width)*c[0],v=(d-s.height)*c[1];(l>0||f>0||p||v)&&(o.push({id:a,type:"position",position:{x:i.position.x-l+p,y:i.position.y-f+v}}),n.get(a)?.forEach(e=>{t.some(t=>t.id===e.id)||o.push({id:e.id,type:"position",position:{x:e.position.x+l,y:e.position.y+f}})})),(s.width<e.width||s.height<e.height||l||f)&&o.push({id:a,type:"dimensions",setAttributes:!0,dimensions:{width:h+(l?c[0]*l-p:0),height:d+(f?c[1]*f-v:0)}})}),o}function rh(t,e,n,r,o,i,a){let u=r?.querySelector(".xyflow__viewport"),s=!1;if(!u)return{changes:[],updatedInternals:s};let c=[],l=window.getComputedStyle(u),{m22:f}=new window.DOMMatrixReadOnly(l.transform),h=[];for(let r of t.values()){let t=e.get(r.id);if(!t)continue;if(t.hidden){e.set(t.id,{...t,internals:{...t.internals,handleBounds:void 0}}),s=!0;continue}let u=nD(r.nodeElement),l=t.measured.width!==u.width||t.measured.height!==u.height;if(u.width&&u.height&&(l||!t.internals.handleBounds||r.force)){let d=r.nodeElement.getBoundingClientRect(),p=n$(t.extent)?t.extent:i,{positionAbsolute:v}=t.internals;if(t.parentId&&"parent"===t.extent){let n=e.get(t.parentId);n&&(v=nh(v,u,n))}else p&&(v=nf(v,p,u));let g={...t,measured:u,internals:{...t.internals,positionAbsolute:v,handleBounds:{source:nX("source",r.nodeElement,d,f,t.id),target:nX("target",r.nodeElement,d,f,t.id)}}};e.set(t.id,g),t.parentId&&rc(g,e,n,{nodeOrigin:o,zIndexMode:a}),s=!0,l&&(c.push({id:t.id,type:"dimensions",dimensions:u}),t.expandParent&&t.parentId&&h.push({id:t.id,parentId:t.parentId,rect:nm(g,o)}))}}if(h.length>0){let t=rf(h,e,n,o);c.push(...t)}return{changes:c,updatedInternals:s}}async function rd({delta:t,panZoom:e,transform:n,translateExtent:r,width:o,height:i}){if(!e||!t.x&&!t.y)return!1;let a=await e.setViewportConstrained({x:n[0]+t.x,y:n[1]+t.y,zoom:n[2]},[[0,0],[o,i]],r);return!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2])}function rp(t,e,n,r,o,i){let a=o,u=r.get(a)||new Map;r.set(a,u.set(n,e)),a=`${o}-${t}`;let s=r.get(a)||new Map;if(r.set(a,s.set(n,e)),i){a=`${o}-${t}-${i}`;let u=r.get(a)||new Map;r.set(a,u.set(n,e))}}function rv(t,e,n){for(let r of(t.clear(),e.clear(),n)){let{source:n,target:o,sourceHandle:i=null,targetHandle:a=null}=r,u={edgeId:r.id,source:n,target:o,sourceHandle:i,targetHandle:a},s=`${n}-${i}--${o}-${a}`;rp("source",u,`${o}-${a}--${n}-${i}`,t,n,i),rp("target",u,s,t,o,a),e.set(r.id,r)}}function rg(t,e,n){let r=t;do{if(r?.matches?.(e))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function ry({nodeId:t,dragItems:e,nodeLookup:n,dragging:r=!0}){let o=[];for(let[t,i]of e){let e=n.get(t)?.internals.userNode;e&&o.push({...e,position:i.position,dragging:r})}if(!t)return[o[0],o];let i=n.get(t)?.internals.userNode;return[i?{...i,position:e.get(t)?.position||i.position,dragging:r}:o[0],o]}function rm({onNodeMouseDown:t,getStoreItems:e,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},a=0,u=new Map,s=!1,c={x:0,y:0},l=null,f=!1,h=null,d=!1,p=!1,v=null;return{update:function({noDragClassName:g,handleSelector:y,domNode:m,isSelectable:b,nodeId:w,nodeClickDistance:_=0}){function E({x:t,y:n}){let{nodeLookup:o,nodeExtent:a,snapGrid:s,snapToGrid:c,nodeOrigin:l,onNodeDrag:f,onSelectionDrag:h,onError:d,updateNodePositions:g}=e();i={x:t,y:n};let y=!1,m=u.size>1,x=m&&a?ng(ni(u)):null,b=m&&c?function({dragItems:t,snapGrid:e,x:n,y:r}){let o=t.values().next().value;if(!o)return null;let i={x:n-o.distance.x,y:r-o.distance.y},a=nM(i,e);return{x:a.x-i.x,y:a.y-i.y}}({dragItems:u,snapGrid:s,x:t,y:n}):null;for(let[e,r]of u){if(!o.has(e))continue;let i={x:t-r.distance.x,y:n-r.distance.y};c&&(i=b?{x:Math.round(i.x+b.x),y:Math.round(i.y+b.y)}:nM(i,s));let u=null;if(m&&a&&!r.extent&&x){let{positionAbsolute:t}=r.internals,e=t.x-x.x+a[0][0],n=t.x+r.measured.width-x.x2+a[1][0];u=[[e,t.y-x.y+a[0][1]],[n,t.y+r.measured.height-x.y2+a[1][1]]]}let{position:f,positionAbsolute:h}=ns({nodeId:e,nextPosition:i,nodeLookup:o,nodeExtent:u||a,nodeOrigin:l,onError:d});y=y||r.position.x!==f.x||r.position.y!==f.y,r.position=f,r.internals.positionAbsolute=h}if(p=p||y,y&&(g(u,!0),v&&(r||f||!w&&h))){let[t,e]=ry({nodeId:w,dragItems:u,nodeLookup:o});r?.(v,u,t,e),f?.(v,t,e),w||h?.(v,e)}}async function k(){if(!l)return;let{transform:t,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:o}=e();if(!o){s=!1,cancelAnimationFrame(a);return}let[u,f]=np(c,l,r);(0!==u||0!==f)&&(i.x=(i.x??0)-u/t[2],i.y=(i.y??0)-f/t[2],await n({x:u,y:f})&&E(i)),a=requestAnimationFrame(k)}function j(r){let{nodeLookup:o,multiSelectionActive:a,nodesDraggable:s,transform:c,snapGrid:h,snapToGrid:d,selectNodesOnDrag:p,onNodeDragStart:v,onSelectionDragStart:g,unselectNodesAndEdges:y}=e();f=!0,p&&b||a||!w||o.get(w)?.selected||y(),b&&p&&w&&t?.(w);let m=nB(r.sourceEvent,{transform:c,snapGrid:h,snapToGrid:d,containerBounds:l});if(i=m,(u=function(t,e,n,r){let o=new Map;for(let[i,a]of t)if((a.selected||a.id===r)&&(!a.parentId||!function t(e,n){if(!e.parentId)return!1;let r=n.get(e.parentId);return!!r&&(!!r.selected||t(r,n))}(a,t))&&(a.draggable||e&&void 0===a.draggable)){let e=t.get(i);e&&o.set(i,{id:i,position:e.position||{x:0,y:0},distance:{x:n.x-e.internals.positionAbsolute.x,y:n.y-e.internals.positionAbsolute.y},extent:e.extent,parentId:e.parentId,origin:e.origin,expandParent:e.expandParent,internals:{positionAbsolute:e.internals.positionAbsolute||{x:0,y:0}},measured:{width:e.measured.width??0,height:e.measured.height??0}})}return o}(o,s,m,w)).size>0&&(n||v||!w&&g)){let[t,e]=ry({nodeId:w,dragItems:u,nodeLookup:o});n?.(r.sourceEvent,u,t,e),v?.(r.sourceEvent,t,e),w||g?.(r.sourceEvent,e)}}h=tc(m);let M=(function(){var t,e,n,r,o=tx,i=tb,a=tw,u=t_,s={},c=x("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",g).on("touchmove.drag",y,tf).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&o.call(this,a,u)){var s=b(this,i.call(this,a,u),a,u,"mouse");s&&(tc(a.view).on("mousemove.drag",p,th).on("mouseup.drag",v,th),tv(a.view),td(a),n=!1,t=a.clientX,e=a.clientY,s("start",a))}}function p(r){if(tp(r),!n){var o=r.clientX-t,i=r.clientY-e;n=o*o+i*i>f}s.mouse("drag",r)}function v(t){tc(t.view).on("mousemove.drag mouseup.drag",null),tg(t.view,n),tp(t),s.mouse("end",t)}function g(t,e){if(o.call(this,t,e)){var n,r,a=t.changedTouches,u=i.call(this,t,e),s=a.length;for(n=0;n<s;++n)(r=b(this,u,t,e,a[n].identifier,a[n]))&&(td(t),r("start",t,a[n]))}}function y(t){var e,n,r=t.changedTouches,o=r.length;for(e=0;e<o;++e)(n=s[r[e].identifier])&&(tp(t),n("drag",t,r[e]))}function m(t){var e,n,o=t.changedTouches,i=o.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<i;++e)(n=s[o[e].identifier])&&(td(t),n("end",t,o[e]))}function b(t,e,n,r,o,i){var u,f,d,p=c.copy(),v=tl(i||n,e);if(null!=(d=a.call(t,new tm("beforestart",{sourceEvent:n,target:h,identifier:o,active:l,x:v[0],y:v[1],dx:0,dy:0,dispatch:p}),r)))return u=d.x-v[0]||0,f=d.y-v[1]||0,function n(i,a,c){var g,y=v;switch(i){case"start":s[o]=n,g=l++;break;case"end":delete s[o],--l;case"drag":v=tl(c||a,e),g=l}p.call(i,t,new tm(i,{sourceEvent:a,subject:d,target:h,identifier:o,active:g,x:v[0]+u,y:v[1]+f,dx:v[0]-y[0],dy:v[1]-y[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(o="function"==typeof t?t:ty(!!t),h):o},h.container=function(t){return arguments.length?(i="function"==typeof t?t:ty(t),h):i},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:ty(t),h):a},h.touchable=function(t){return arguments.length?(u="function"==typeof t?t:ty(!!t),h):u},h.on=function(){var t=c.on.apply(c,arguments);return t===c?h:t},h.clickDistance=function(t){return arguments.length?(f=(t*=1)*t,h):Math.sqrt(f)},h})().clickDistance(_).on("start",t=>{let{domNode:n,nodeDragThreshold:r,transform:o,snapGrid:a,snapToGrid:u}=e();l=n?.getBoundingClientRect()||null,d=!1,p=!1,v=t.sourceEvent,0===r&&j(t),i=nB(t.sourceEvent,{transform:o,snapGrid:a,snapToGrid:u,containerBounds:l}),c=nU(t.sourceEvent,l)}).on("drag",t=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:o,snapToGrid:a,nodeDragThreshold:h,nodeLookup:p}=e(),g=nB(t.sourceEvent,{transform:r,snapGrid:o,snapToGrid:a,containerBounds:l});if(v=t.sourceEvent,("touchmove"===t.sourceEvent.type&&t.sourceEvent.touches.length>1||w&&!p.has(w))&&(d=!0),!d){if(!s&&n&&f&&(s=!0,k()),!f){let e=nU(t.sourceEvent,l),n=e.x-c.x,r=e.y-c.y;Math.sqrt(n*n+r*r)>h&&j(t)}(i.x!==g.xSnapped||i.y!==g.ySnapped)&&u&&f&&(c=nU(t.sourceEvent,l),E(g))}}).on("end",t=>{if(!f||d){d&&u.size>0&&e().updateNodePositions(u,!1);return}if(s=!1,f=!1,cancelAnimationFrame(a),u.size>0){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:i,onSelectionDragStop:a}=e();if(p&&(r(u,!1),p=!1),o||i||!w&&a){let[e,r]=ry({nodeId:w,dragItems:u,nodeLookup:n,dragging:!1});o?.(t.sourceEvent,u,e,r),i?.(t.sourceEvent,e,r),w||a?.(t.sourceEvent,r)}}}).filter(t=>{let e=t.target;return!t.button&&(!g||!rg(e,`.${g}`,m))&&(!y||rg(e,y,m))});h.call(M)},destroy:function(){h?.on(".drag",null)}}}function rx(t,e,n,r,o,i=!1){let a=r.get(t);if(!a)return null;let u="strict"===o?a.internals.handleBounds?.[e]:[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]],s=(n?u?.find(t=>t.id===n):u?.[0])??null;return s&&i?{...s,...n7(a,s,s.position,!0)}:s}function rb(t,e){return t?t:e?.classList.contains("target")?"target":e?.classList.contains("source")?"source":null}let rw=()=>!0;function r_(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:a,lib:u,flowId:s,isValidConnection:c=rw,nodeLookup:l}){let h="target"===i,d=e?a.querySelector(`.${u}-flow__handle[data-id="${s}-${e?.nodeId}-${e?.id}-${e?.type}"]`):null,{x:p,y:v}=nU(t),g=a.elementFromPoint(p,v),y=g?.classList.contains(`${u}-flow__handle`)?g:d,m={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){let t=rb(void 0,y),e=y.getAttribute("data-nodeid"),i=y.getAttribute("data-handleid"),a=y.classList.contains("connectable"),u=y.classList.contains("connectableend");if(!e||!t)return m;let s={source:h?e:r,sourceHandle:h?i:o,target:h?r:e,targetHandle:h?o:i};m.connection=s,m.isValid=a&&u&&(n===f.Strict?h&&"source"===t||!h&&"target"===t:e!==r||i!==o)&&c(s),m.toHandle=rx(e,t,i,l,n,!0)}return m}let rE={onPointerDown:function(t,{connectionMode:e,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:a,domNode:u,nodeLookup:s,lib:c,autoPanOnConnect:l,flowId:f,panBy:h,cancelConnection:d,onConnectStart:p,onConnect:v,onConnectEnd:y,isValidConnection:m=rw,onReconnectEnd:x,updateConnection:b,getTransform:w,getFromHandle:_,autoPanSpeed:E,dragThreshold:k=1,handleDomNode:j}){let M,A=nH(t.target),N=0,{x:z,y:O}=nU(t),S=rb(i,j),$=u?.getBoundingClientRect(),C=!1;if(!$||!S)return;let P=rx(o,S,r,s,e);if(!P)return;let I=nU(t,$),L=!1,T=null,R=!1,B=null,D={...P,nodeId:o,type:S,position:P.position},H=s.get(o),q={inProgress:!0,isValid:null,from:n7(H,D,g.Left,!0),fromHandle:D,fromPosition:D.position,fromNode:H,to:I,toHandle:null,toPosition:e4[D.position],toNode:null,pointer:I};function V(){C=!0,b(q),p?.(t,{nodeId:o,handleId:r,handleType:S})}function F(t){var i,u;let d;if(!C){let{x:e,y:n}=nU(t),r=e-z,o=n-O;if(!(r*r+o*o>k*k))return;V()}if(!_()||!D)return void U(t);let p=w();M=function(t,e,n,r){let o=[],i=1/0;for(let a of function(t,e,n){let r=[],o={x:t.x-n,y:t.y-n,width:2*n,height:2*n};for(let t of e.values())n_(o,nm(t))>0&&r.push(t);return r}(t,n,e+250))for(let n of[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:u,y:s}=n7(a,n,n.position,!0),c=Math.sqrt(Math.pow(u-t.x,2)+Math.pow(s-t.y,2));c>e||(c<i?(o=[{...n,x:u,y:s}],i=c):c===i&&o.push({...n,x:u,y:s}))}if(!o.length)return null;if(o.length>1){let t="source"===r.type?"target":"source";return o.find(e=>e.type===t)??o[0]}return o[0]}(nA(I=nU(t,$),p,!1,[1,1]),n,s,D),L||(!function t(){if(!l||!$)return;let[e,n]=np(I,$,E);h({x:e,y:n}),N=requestAnimationFrame(t)}(),L=!0);let v=r_(t,{handle:M,connectionMode:e,fromNodeId:o,fromHandleId:r,fromType:a?"target":"source",isValidConnection:m,doc:A,lib:c,flowId:f,nodeLookup:s});B=v.handleDomNode,T=v.connection,i=!!M,u=v.isValid,d=null,u?d=!0:i&&!u&&(d=!1),R=d;let y=s.get(o),x=y?n7(y,D,g.Left,!0):q.from,j={...q,from:x,isValid:R,to:v.toHandle&&R?nN({x:v.toHandle.x,y:v.toHandle.y},p):I,toHandle:v.toHandle,toPosition:R&&v.toHandle?v.toHandle.position:e4[D.position],toNode:v.toHandle?s.get(v.toHandle.nodeId):null,pointer:I};b(j),q=j}function U(t){if(!("touches"in t)||!(t.touches.length>0)){if(C){(M||B)&&T&&R&&v?.(T);let{inProgress:e,...n}=q,r={...n,toPosition:q.toHandle?q.toPosition:null};y?.(t,r),i&&x?.(t,r)}d(),cancelAnimationFrame(N),L=!1,R=!1,T=null,B=null,A.removeEventListener("mousemove",F),A.removeEventListener("mouseup",U),A.removeEventListener("touchmove",F),A.removeEventListener("touchend",U)}}0===k&&V(),A.addEventListener("mousemove",F),A.addEventListener("mouseup",U),A.addEventListener("touchmove",F),A.addEventListener("touchend",U)},isValid:r_};function rk({domNode:t,panZoom:e,getTransform:n,getViewScale:r}){let o=tc(t);return{update:function({translateExtent:t,width:i,height:a,zoomStep:u=1,pannable:s=!0,zoomable:c=!0,inversePan:l=!1}){let f=[0,0],h=e1().on("start",t=>{("mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type)&&(f=[t.sourceEvent.clientX??t.sourceEvent.touches[0].clientX,t.sourceEvent.clientY??t.sourceEvent.touches[0].clientY])}).on("zoom",s?o=>{let u=n();if("mousemove"!==o.sourceEvent.type&&"touchmove"!==o.sourceEvent.type||!e)return;let s=[o.sourceEvent.clientX??o.sourceEvent.touches[0].clientX,o.sourceEvent.clientY??o.sourceEvent.touches[0].clientY],c=[s[0]-f[0],s[1]-f[1]];f=s;let h=r()*Math.max(u[2],Math.log(u[2]))*(l?-1:1),d={x:u[0]-c[0]*h,y:u[1]-c[1]*h};e.setViewportConstrained({x:d.x,y:d.y,zoom:u[2]},[[0,0],[i,a]],t)}:null).on("zoom.wheel",c?t=>{if("wheel"!==t.sourceEvent.type||!e)return;let r=n(),o=t.sourceEvent.ctrlKey&&nS()?10:1,i=-t.sourceEvent.deltaY*(1===t.sourceEvent.deltaMode?.05:t.sourceEvent.deltaMode?1:.002)*u,a=r[2]*Math.pow(2,i*o);e.scaleTo(a)}:null);o.call(h,{})},destroy:function(){o.on("zoom",null)},pointer:tl}}let rj=t=>({x:t.x,y:t.y,zoom:t.k}),rM=({x:t,y:e,zoom:n})=>eU.translate(t,e).scale(n),rA=(t,e)=>t.target.closest(`.${e}`),rN=(t,e)=>2===e&&Array.isArray(t)&&t.includes(2),rz=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2,rO=(t,e=0,n=rz,r=()=>{})=>{let o="number"==typeof e&&e>0;return o||r(),o?t.transition().duration(e).ease(n).on("end",r):t},rS=t=>{let e=t.ctrlKey&&nS()?10:1;return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*e};function r$({domNode:t,minZoom:e,maxZoom:n,translateExtent:r,viewport:o,onPanZoom:i,onPanZoomStart:a,onPanZoomEnd:u,onDraggingChange:s}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},l=t.getBoundingClientRect(),f=[[0,0],[l.width,l.height]],d="u">typeof ResizeObserver?new ResizeObserver(t=>{let e=t[0];e&&(f=[[0,0],[e.contentRect.width,e.contentRect.height]])}):null;d?.observe(t);let p=e1().extent(()=>f).scaleExtent([e,n]).translateExtent(r),v=tc(t).call(p);b({x:o.x,y:o.y,zoom:nl(o.zoom,e,n)},[[0,0],[l.width,l.height]],r);let g=v.on("wheel.zoom"),y=v.on("dblclick.zoom");async function m(t,e){return!!v&&new Promise(n=>{p?.interpolate(e?.interpolate==="linear"?e2:tk).transform(rO(v,e?.duration,e?.ease,()=>n(!0)),t)})}function x(){p.on("zoom",null)}async function b(t,e,n){let r=rM(t),o=p?.constrain()(r,e,n);return o&&await m(o),o}return p.wheelDelta(rS),{update:function({noWheelClassName:t,noPanClassName:e,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:o,panOnDrag:l,panOnScrollMode:f,panOnScrollSpeed:d,preventScrolling:m,zoomOnPinch:b,zoomOnScroll:w,zoomOnDoubleClick:_,zoomActivationKeyPressed:E,lib:k,onTransformChange:j,connectionInProgress:M,paneClickDistance:A,selectionOnDrag:N}){r&&!c.isZoomingOrPanning&&x();let z=o&&!E&&!r;p.clickDistance(N?1/0:!nk(A)||A<0?0:A);let O=z?function({zoomPanValues:t,noWheelClassName:e,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:a,onPanZoomStart:u,onPanZoom:s,onPanZoomEnd:c}){return l=>{if(rA(l,e))return l.ctrlKey&&l.preventDefault(),!1;l.preventDefault(),l.stopImmediatePropagation();let f=n.property("__zoom").k||1;if(l.ctrlKey&&a){let t=tl(l),e=f*Math.pow(2,rS(l));r.scaleTo(n,e,t,l);return}let d=1===l.deltaMode?20:1,p=o===h.Vertical?0:l.deltaX*d,v=o===h.Horizontal?0:l.deltaY*d;!nS()&&l.shiftKey&&o!==h.Vertical&&(p=l.deltaY*d,v=0),r.translateBy(n,-(p/f)*i,-(v/f)*i,{internal:!0});let g=rj(n.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling?s?.(l,g):(t.isPanScrolling=!0,u?.(l,g)),t.panScrollTimeout=setTimeout(()=>{c?.(l,g),t.isPanScrolling=!1},150)}}({zoomPanValues:c,noWheelClassName:t,d3Selection:v,d3Zoom:p,panOnScrollMode:f,panOnScrollSpeed:d,zoomOnPinch:b,onPanZoomStart:a,onPanZoom:i,onPanZoomEnd:u}):function({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:n}){return function(r,o){let i="wheel"===r.type,a=!e&&i&&!r.ctrlKey,u=rA(r,t);if(r.ctrlKey&&i&&u&&r.preventDefault(),a||u)return null;r.preventDefault(),n.call(this,r,o)}}({noWheelClassName:t,preventScrolling:m,d3ZoomHandler:g});v.on("wheel.zoom",O,{passive:!1});let S=function({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let o=rj(r.transform);t.mouseButton=r.sourceEvent?.button||0,t.isZoomingOrPanning=!0,t.prevViewport=o,r.sourceEvent?.type==="mousedown"&&e(!0),n&&n?.(r.sourceEvent,o)}}({zoomPanValues:c,onDraggingChange:s,onPanZoomStart:a});p.on("start",S);let $=function({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{t.usedRightMouseButton=!!(n&&rN(e,t.mouseButton??0)),i.sourceEvent?.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!i.sourceEvent?.internal&&o?.(i.sourceEvent,rj(i.transform))}}({zoomPanValues:c,panOnDrag:l,onPaneContextMenu:!!n,onPanZoom:i,onTransformChange:j});p.on("zoom",$);let C=function({zoomPanValues:t,panOnDrag:e,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return a=>{if(!a.sourceEvent?.internal&&(t.isZoomingOrPanning=!1,i&&rN(e,t.mouseButton??0)&&!t.usedRightMouseButton&&a.sourceEvent&&i(a.sourceEvent),t.usedRightMouseButton=!1,r(!1),o)){let e=rj(a.transform);t.prevViewport=e,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{o?.(a.sourceEvent,e)},150*!!n)}}}({zoomPanValues:c,panOnDrag:l,panOnScroll:o,onPaneContextMenu:n,onPanZoomEnd:u,onDraggingChange:s});p.on("end",C);let P=function({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:a,noWheelClassName:u,noPanClassName:s,lib:c,connectionInProgress:l}){return f=>{let h=t||e,d=n&&f.ctrlKey,p="wheel"===f.type;if(1===f.button&&"mousedown"===f.type&&(rA(f,`${c}-flow__node`)||rA(f,`${c}-flow__edge`)))return!0;if(!r&&!h&&!o&&!i&&!n||a||l&&!p||rA(f,u)&&p||rA(f,s)&&(!p||o&&p&&!t)||!n&&f.ctrlKey&&p)return!1;if(!n&&"touchstart"===f.type&&f.touches?.length>1)return f.preventDefault(),!1;if(!h&&!o&&!d&&p||!r&&("mousedown"===f.type||"touchstart"===f.type)||Array.isArray(r)&&!r.includes(f.button)&&"mousedown"===f.type)return!1;let v=Array.isArray(r)&&r.includes(f.button)||!f.button||f.button<=1;return(!f.ctrlKey||p)&&v}}({zoomActivationKeyPressed:E,panOnDrag:l,zoomOnScroll:w,panOnScroll:o,zoomOnDoubleClick:_,zoomOnPinch:b,userSelectionActive:r,noPanClassName:e,noWheelClassName:t,lib:k,connectionInProgress:M});p.filter(P),_?v.on("dblclick.zoom",y):v.on("dblclick.zoom",null)},destroy:x,setViewport:async function t(t,e){let n=rM(t);return await m(n,e),n},setViewportConstrained:b,getViewport:function(){let t=v?eX(v.node()):{x:0,y:0,k:1};return{x:t.x,y:t.y,zoom:t.k}},scaleTo:async function t(t,e){return!!v&&new Promise(n=>{p?.interpolate(e?.interpolate==="linear"?e2:tk).scaleTo(rO(v,e?.duration,e?.ease,()=>n(!0)),t)})},scaleBy:async function t(t,e){return!!v&&new Promise(n=>{p?.interpolate(e?.interpolate==="linear"?e2:tk).scaleBy(rO(v,e?.duration,e?.ease,()=>n(!0)),t)})},setScaleExtent:function(t){p?.scaleExtent(t)},setTranslateExtent:function(t){p?.translateExtent(t)},syncViewport:function(t){if(v){let e=rM(t),n=v.property("__zoom");(n.k!==t.zoom||n.x!==t.x||n.y!==t.y)&&p?.transform(v,e,null,{sync:!0})}},setClickDistance:function(t){let e=!nk(t)||t<0?0:t;p?.clickDistance(e)}}}(c=y||(y={})).Line="line",c.Handle="handle"},8125:(t,e,n)=>{var r=n(75779),o=n(62132);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,s=e.length;++u<s;){var c=e[u],l=i?i(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?o(n,c,l):r(n,c,l)}return n}},8210:(t,e,n)=>{var r=n(44308),o=n(26854);t.exports=function t(e,n,i,a,u){return e===n||(null!=e&&null!=n&&(o(e)||o(n))?r(e,n,i,a,t,u):e!=e&&n!=n)}},8327:(t,e,n)=>{var r=n(34937),o=n(52958);t.exports=function(t,e){return t&&r(t,e,o)}},8420:(t,e,n)=>{var r=n(60054);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==e,s=null===e,c=e==e,l=r(e);if(!s&&!l&&!a&&t>e||a&&u&&c&&!s&&!l||o&&u&&c||!n&&c||!i)return 1;if(!o&&!a&&!l&&t<e||l&&n&&i&&!o&&!a||s&&n&&i||!u&&i||!c)return -1}return 0}},8587:(t,e,n)=>{var r=n(51959),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},8874:(t,e,n)=>{var r=n(8210),o=n(72846),i=n(19153),a=n(99078),u=n(41734),s=n(33541),c=n(5053);t.exports=function(t,e){return a(t)&&u(e)?s(c(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},9025:(t,e,n)=>{var r=n(64260),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},9371:(t,e,n)=>{var r=n(22300),o=n(51222),i=n(32603),a=n(29648),u=n(77157),s=n(383),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),l=!n&&o(t),f=!n&&!l&&a(t),h=!n&&!l&&!f&&s(t),d=n||l||f||h,p=d?r(t.length,String):[],v=p.length;for(var g in t)(e||c.call(t,g))&&!(d&&("length"==g||f&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,v)))&&p.push(g);return p}},9556:(t,e,n)=>{var r=n(70161),o=n(14845),i=n(57288);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},9588:(t,e,n)=>{var r=n(49226),o=n(20462);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},9711:(t,e,n)=>{var r=n(89996),o=n(97195),i=n(34636),a=n(82426);t.exports=i(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])})},10359:(t,e,n)=>{var r=n(68185),o=n(85805),i=n(59469);t.exports=function(t){return r(t,i,o)}},10772:(t,e,n)=>{"use strict";n.d(e,{h:()=>f,n:()=>c});var r=n(7620),o=n(3140),i=n(27650);let{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:u}=o,s=t=>t;function c(t,e=s,n){let r=u(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return a(r),r}let l=(t,e)=>{let n=(0,i.y)(t),r=(t,r=e)=>c(n,t,r);return Object.assign(r,n),r},f=(t,e)=>t?l(t,e):l},10825:t=>{var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},10897:(t,e,n)=>{var r=n(98579);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},11098:(t,e,n)=>{"use strict";var r=n(1147),o=n(91361).Graph;function i(t,e,n,o){var i;do i=r.uniqueId(o);while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:i,simplify:function(t){var e=new o().setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},o=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,o=t.x,i=t.y,a=e.x-o,u=e.y-i,s=t.width/2,c=t.height/2;if(!a&&!u)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(u)*s>Math.abs(a)*c?(u<0&&(c=-c),n=c*a/u,r=c):(a<0&&(s=-s),n=s,r=s*u/a),{x:o+n,y:i+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var o=t.node(n),i=o.rank;r.isUndefined(i)||(e[i][o.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var o=t.node(n);r.has(o,"rank")&&(o.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var o=t.node(r).rank-e;n[o]||(n[o]=[]),n[o].push(r)});var o=0,i=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%i!=0?--o:o&&r.forEach(e,function(e){t.node(e).rank+=o})})},addBorderNode:function(t,e,n,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=r),i(t,"border",o,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},11586:(t,e,n)=>{var r=n(41734),o=n(52958);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},12217:(t,e,n)=>{t.exports={components:n(61739),dijkstra:n(78945),dijkstraAll:n(85219),findCycles:n(38168),floydWarshall:n(82854),isAcyclic:n(42858),postorder:n(2523),preorder:n(7696),prim:n(98751),tarjan:n(80719),topsort:n(88222)}},12711:(t,e,n)=>{var r=n(54794),o=n(19153);t.exports=function(t,e){return r(t,e,function(e,n){return o(t,n)})}},12911:(t,e,n)=>{var r=n(9588);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,u=Object(n);(e?a--:++a<i)&&!1!==o(u[a],a,u););return n}}},13363:(t,e,n)=>{var r=n(48095),o=n(11586),i=n(33541);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},14494:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},14845:t=>{t.exports=function(t,e){return t>e}},15500:(t,e,n)=>{var r=n(88299),o=n(26854);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},15544:(t,e,n)=>{var r=n(71871);t.exports=function(t,e){var n=[];return r(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}},16083:(t,e,n)=>{var r=n(95409),o=n(10897),i=n(42073),a=n(60165),u=n(68501),s=n(20745);t.exports=function(t,e,n){var c=-1,l=o,f=t.length,h=!0,d=[],p=d;if(n)h=!1,l=i;else if(f>=200){var v=e?null:u(t);if(v)return s(v);h=!1,l=a,p=new r}else p=e?[]:d;t:for(;++c<f;){var g=t[c],y=e?e(g):g;if(g=n||0!==g?g:0,h&&y==y){for(var m=p.length;m--;)if(p[m]===y)continue t;e&&p.push(y),d.push(g)}else l(p,y,n)||(p!==d&&p.push(y),d.push(g))}return d}},16396:(t,e,n)=>{var r=n(17674),o=n(95979),i=n(96532),a=n(32603);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},16716:(t,e,n)=>{var r=n(68185),o=n(71518),i=n(52958);t.exports=function(t){return r(t,i,o)}},17022:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},17674:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},17870:t=>{t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},18047:(t,e,n)=>{var r=n(5510),o=n(88299),i=n(9588),a=n(86575),u=n(95831);t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?u(t):t.length;var e=o(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},18741:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(81007).A)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]])},19153:(t,e,n)=>{var r=n(97337),o=n(19374);t.exports=function(t,e){return null!=t&&o(t,e,r)}},19365:(t,e,n)=>{t.exports=n(5275)(Object.getPrototypeOf,Object)},19374:(t,e,n)=>{var r=n(69275),o=n(51222),i=n(32603),a=n(77157),u=n(20462),s=n(5053);t.exports=function(t,e,n){e=r(e,t);for(var c=-1,l=e.length,f=!1;++c<l;){var h=s(e[c]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(h,l)&&(i(t)||o(t))}},19851:(t,e,n)=>{"use strict";n.d(e,{vt:()=>l});var r=n(27650),o=n(7620),i=n(3140);let{useDebugValue:a}=o,{useSyncExternalStoreWithSelector:u}=i,s=!1,c=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let e="function"==typeof t?(0,r.y)(t):t,n=(t,n)=>(function(t,e=t=>t,n){n&&!s&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),s=!0);let r=u(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return a(r),r})(e,t,n);return Object.assign(n,e),n},l=t=>t?c(t):c},20462:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},20732:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(81007).A)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},20745:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},20990:(t,e,n)=>{var r=n(60933),o=n(37286),i=n(8327),a=n(95979),u=n(19365),s=n(32603),c=n(29648),l=n(49226),f=n(63409),h=n(383);t.exports=function(t,e,n){var d=s(t),p=d||c(t)||h(t);if(e=a(e,4),null==n){var v=t&&t.constructor;n=p?d?new v:[]:f(t)&&l(v)?o(u(t)):{}}return(p?r:i)(t,function(t,r,o){return e(n,t,r,o)}),n}},21713:(t,e,n)=>{var r=n(1147),o=n(11098);t.exports={run:function(t){var e,n,i,a=o.addDummyNode(t,"root",{},"_root"),u=(e=t,n={},r.forEach(e.children(),function(t){!function t(o,i){var a=e.children(o);a&&a.length&&r.forEach(a,function(e){t(e,i+1)}),n[o]=i}(t,1)}),n),s=r.max(r.values(u))-1,c=2*s+1;t.graph().nestingRoot=a,r.forEach(t.edges(),function(e){t.edge(e).minlen*=c});var l=(i=t,r.reduce(i.edges(),function(t,e){return t+i.edge(e).weight},0)+1);r.forEach(t.children(),function(e){!function t(e,n,i,a,u,s,c){var l=e.children(c);if(!l.length){c!==n&&e.setEdge(n,c,{weight:0,minlen:i});return}var f=o.addBorderNode(e,"_bt"),h=o.addBorderNode(e,"_bb"),d=e.node(c);e.setParent(f,c),d.borderTop=f,e.setParent(h,c),d.borderBottom=h,r.forEach(l,function(r){t(e,n,i,a,u,s,r);var o=e.node(r),l=o.borderTop?o.borderTop:r,d=o.borderBottom?o.borderBottom:r,p=o.borderTop?a:2*a,v=l!==d?1:u-s[c]+1;e.setEdge(f,l,{weight:p,minlen:v,nestingEdge:!0}),e.setEdge(d,h,{weight:p,minlen:v,nestingEdge:!0})}),e.parent(c)||e.setEdge(n,f,{weight:0,minlen:u+s[c]})}(t,a,c,l,s,u,e)}),t.graph().nodeRankFactor=c},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},21860:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},22300:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},23247:(t,e,n)=>{var r=n(6672);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return -1}},23335:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},23555:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(81007).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},23878:(t,e,n)=>{var r=n(70161),o=n(72498),i=n(57288);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},24451:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},24786:(t,e,n)=>{var r=n(6580),o=n(50567),i=n(32993);t.exports=function(t){return i(o(t,void 0,r),t+"")}},24892:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},25834:t=>{t.exports="0.8.5"},26109:(t,e,n)=>{var r=n(1147),o=n(11098),i=n(91361).Graph;t.exports={debugOrdering:function(t){var e=o.buildLayerMatrix(t),n=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)}),r.forEach(t.edges(),function(t){n.setEdge(t.v,t.w,{},t.name)}),r.forEach(e,function(t,e){n.setNode("layer"+e,{rank:"same"}),r.reduce(t,function(t,e){return n.setEdge(t,e,{style:"invis"}),e})}),n}}},26387:(t,e,n)=>{var r=n(1147),o=n(11098);function i(t,e,n,r,i,a){var u=i[e][a-1],s=o.addDummyNode(t,"border",{width:0,height:0,rank:a,borderType:e},n);i[e][a]=s,t.setParent(s,r),u&&t.setEdge(u,s,{weight:1})}t.exports=function(t){r.forEach(t.children(),function e(n){var o=t.children(n),a=t.node(n);if(o.length&&r.forEach(o,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,s=a.maxRank+1;u<s;++u)i(t,"borderLeft","_bl",n,a,u),i(t,"borderRight","_br",n,a,u)}})}},26427:(t,e,n)=>{"use strict";var r=n(67661).longestPath,o=n(2331),i=n(52270);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:i(t);break;case"tight-tree":var e;r(e=t),o(e);break;case"longest-path":a(t)}};var a=r},26854:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},27151:(t,e,n)=>{var r=n(8125),o=n(52958);t.exports=function(t,e){return t&&r(e,o(e),t)}},27510:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},27650:(t,e,n)=>{"use strict";n.d(e,{y:()=>o});let r=t=>{let e,n=new Set,r=(t,r)=>{let o="function"==typeof t?t(e):t;if(!Object.is(o,e)){let t=e;e=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},e,o),n.forEach(n=>n(e,t))}},o=()=>e,i={setState:r,getState:o,getInitialState:()=>a,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=e=t(r,o,i);return i},o=t=>t?r(t):r},27814:(t,e,n)=>{var r=n(21860),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},27820:(t,e,n)=>{var r=n(64260);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},29182:(t,e,n)=>{var r=n(57489),o=n(60815),i=n(34937),a=n(67304),u=n(63409),s=n(59469),c=n(17870);t.exports=function t(e,n,l,f,h){e!==n&&i(n,function(i,s){if(h||(h=new r),u(i))a(e,n,s,l,t,f,h);else{var d=f?f(c(e,s),i,s+"",e,n,h):void 0;void 0===d&&(d=i),o(e,s,d)}},s)}},29418:(t,e,n)=>{var r,o=n(51747),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},29648:(t,e,n)=>{t=n.nmd(t);var r=n(6243),o=n(88185),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?r.Buffer:void 0,s=u?u.isBuffer:void 0;t.exports=s||o},30052:(t,e,n)=>{"use strict";var r=n(60865);function o(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(t,e){t[e]?t[e]++:t[e]=1}function a(t,e){--t[e]||delete t[e]}function u(t,e,n,o){var i=""+e,a=""+n;if(!t&&i>a){var u=i;i=a,a=u}return i+"\x01"+a+"\x01"+(r.isUndefined(o)?"\0":o)}function s(t,e){return u(t,e.v,e.w,e.name)}t.exports=o,o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(t){return this._label=t,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},o.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},o.prototype.setNodes=function(t,e){var n=arguments,o=this;return r.each(t,function(t){n.length>1?o.setNode(t,e):o.setNode(t)}),this},o.prototype.setNode=function(t,e){return r.has(this._nodes,t)?arguments.length>1&&(this._nodes[t]=e):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this},o.prototype.node=function(t){return this._nodes[t]},o.prototype.hasNode=function(t){return r.has(this._nodes,t)},o.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},o.prototype.setParent=function(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{e+="";for(var n=e;!r.isUndefined(n);n=this.parent(n))if(n===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},o.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},o.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},o.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else if("\0"===t)return this.nodes();else if(this.hasNode(t))return[]},o.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},o.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},o.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},o.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},o.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var o={};return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,function t(r){var i=n.parent(r);return void 0===i||e.hasNode(i)?(o[r]=i,i):i in o?o[i]:t(i)}(t))}),e},o.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(t,e){var n=this,o=arguments;return r.reduce(t,function(t,r){return o.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},o.prototype.setEdge=function(){var t,e,n,o,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,e=s.w,n=s.name,2==arguments.length&&(o=arguments[1],a=!0)):(t=s,e=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var c=u(this._isDirected,t,e,n);if(r.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[c]=a?o:this._defaultEdgeLabelFn(t,e,n);var l=function(t,e,n,r){var o=""+e,i=""+n;if(!t&&o>i){var a=o;o=i,i=a}var u={v:o,w:i};return r&&(u.name=r),u}(this._isDirected,t,e,n);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[c]=l,i(this._preds[e],t),i(this._sucs[t],e),this._in[e][c]=l,this._out[t][c]=l,this._edgeCount++,this},o.prototype.edge=function(t,e,n){var r=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(t,e,n){var o=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return r.has(this._edgeLabels,o)},o.prototype.removeEdge=function(t,e,n){var r=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,t,e,n),o=this._edgeObjs[r];return o&&(t=o.v,e=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},o.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var o=r.values(n);return e?r.filter(o,function(t){return t.v===e}):o}},o.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var o=r.values(n);return e?r.filter(o,function(t){return t.w===e}):o}},o.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},30615:t=>{t.exports=function(t){return this.__data__.get(t)}},31138:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},31354:(t,e,n)=>{var r=n(87471);t.exports=function(){this.__data__=new r,this.size=0}},31678:(t,e,n)=>{var r=n(50678),o=n(26854);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},31959:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},32490:(t,e,n)=>{var r=n(8420);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,s=n.length;++o<u;){var c=r(i[o],a[o]);if(c){if(o>=s)return c;return c*("desc"==n[o]?-1:1)}}return t.index-e.index}},32603:t=>{t.exports=Array.isArray},32689:(t,e,n)=>{var r=n(64260);t.exports=function(t,e){var n=this.__data__;return this.size+=+!this.has(t),n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},32861:(t,e,n)=>{"use strict";n.d(e,{A:()=>function t(e){if("string"==typeof e||"number"==typeof e)return""+e;let n="";if(Array.isArray(e))for(let r=0,o;r<e.length;r++)""!==(o=t(e[r]))&&(n+=(n&&" ")+o);else for(let t in e)e[t]&&(n+=(n&&" ")+t);return n}})},32993:(t,e,n)=>{var r=n(99694);t.exports=n(42425)(r)},33395:(t,e,n)=>{var r=n(95409),o=n(53108),i=n(60165);t.exports=function(t,e,n,a,u,s){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=s.get(t),d=s.get(e);if(h&&d)return h==e&&d==t;var p=-1,v=!0,g=2&n?new r:void 0;for(s.set(t,e),s.set(e,t);++p<l;){var y=t[p],m=e[p];if(a)var x=c?a(m,y,p,e,t,s):a(y,m,p,t,e,s);if(void 0!==x){if(x)continue;v=!1;break}if(g){if(!o(e,function(t,e){if(!i(g,e)&&(y===t||u(y,t,n,a,s)))return g.push(e)})){v=!1;break}}else if(!(y===m||u(y,m,n,a,s))){v=!1;break}}return s.delete(t),s.delete(e),v}},33541:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},34560:(t,e,n)=>{var r=n(57288);t.exports=function(t){return"function"==typeof t?t:r}},34636:(t,e,n)=>{var r=n(57288),o=n(50567),i=n(32993);t.exports=function(t,e){return i(o(t,e,r),t+"")}},34657:(t,e,n)=>{var r=n(23247);t.exports=function(t){return r(this.__data__,t)>-1}},34937:(t,e,n)=>{t.exports=n(91945)()},35255:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},35437:(t,e,n)=>{var r=n(50678),o=n(19365),i=n(26854),a=Object.prototype,u=Function.prototype.toString,s=a.hasOwnProperty,c=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},36026:(t,e,n)=>{var r=n(31138),o=n(19374);t.exports=function(t,e){return null!=t&&o(t,e,r)}},36089:(t,e,n)=>{"use strict";var r=n(1147),o=n(91361).Graph,i=n(11098);function a(t,e){var n={};return r.reduce(e,function(e,o){var i=0,a=0,u=e.length,c=r.last(o);return r.forEach(o,function(e,l){var f=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),function(e){return t.node(e).dummy})}(t,e),h=f?t.node(f).order:u;(f||e===c)&&(r.forEach(o.slice(a,l+1),function(e){r.forEach(t.predecessors(e),function(r){var o=t.node(r),a=o.order;(a<i||h<a)&&!(o.dummy&&t.node(e).dummy)&&s(n,r,e)})}),a=l+1,i=h)}),o}),n}function u(t,e){var n={};function o(e,o,i,a,u){var c;r.forEach(r.range(o,i),function(o){c=e[o],t.node(c).dummy&&r.forEach(t.predecessors(c),function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>u)&&s(n,e,c)})})}return r.reduce(e,function(e,n){var i,a=-1,u=0;return r.forEach(n,function(r,s){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(i=t.node(c[0]).order,o(n,u,s,a,i),u=s,a=i)}o(n,u,n.length,i,e.length)}),n}),n}function s(t,e,n){if(e>n){var r=e;e=n,n=r}var o=t[e];o||(t[e]=o={}),o[n]=!0}function c(t,e,n){if(e>n){var o=e;e=n,n=o}return r.has(t[e],n)}function l(t,e,n,o){var i={},a={},u={};return r.forEach(e,function(t){r.forEach(t,function(t,e){i[t]=t,a[t]=t,u[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var s=o(t);if(s.length)for(var l=((s=r.sortBy(s,function(t){return u[t]})).length-1)/2,f=Math.floor(l),h=Math.ceil(l);f<=h;++f){var d=s[f];a[t]===t&&e<u[d]&&!c(n,t,d)&&(a[d]=t,a[t]=i[t]=i[d],e=u[d])}})}),{root:i,align:a}}function f(t,e,n,i,a){var u,s,c,l,f,h,d,p,v,g,y={},m=(u=t,s=e,c=n,l=a,p=new o,g=(f=(v=u.graph()).nodesep,h=v.edgesep,d=l,function(t,e,n){var o,i,a=t.node(e),u=t.node(n);if(o=0+a.width/2,r.has(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":i=-a.width/2;break;case"r":i=a.width/2}if(i&&(o+=d?i:-i),i=0,o+=(a.dummy?h:f)/2,o+=(u.dummy?h:f)/2,o+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":i=u.width/2;break;case"r":i=-u.width/2}return i&&(o+=d?i:-i),i=0,o}),r.forEach(s,function(t){var e;r.forEach(t,function(t){var n=c[t];if(p.setNode(n),e){var r=c[e],o=p.edge(r,n);p.setEdge(r,n,Math.max(g(u,t,e),o||0))}e=t})}),p),x=a?"borderLeft":"borderRight";function b(t,e){for(var n=m.nodes(),r=n.pop(),o={};r;)o[r]?t(r):(o[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return b(function(t){y[t]=m.inEdges(t).reduce(function(t,e){return Math.max(t,y[e.v]+m.edge(e))},0)},m.predecessors.bind(m)),b(function(e){var n=m.outEdges(e).reduce(function(t,e){return Math.min(t,y[e.w]-m.edge(e))},1/0),r=t.node(e);1/0!==n&&r.borderType!==x&&(y[e]=Math.max(y[e],n))},m.successors.bind(m)),r.forEach(i,function(t){y[t]=y[n[t]]}),y}function h(t,e){return r.minBy(r.values(e),function(e){var n=-1/0,o=1/0;return r.forIn(e,function(e,r){var i,a,u=(i=t,a=r,i.node(a).width/2);n=Math.max(e+u,n),o=Math.min(e-u,o)}),n-o})}function d(t,e){var n=r.values(e),o=r.min(n),i=r.max(n);r.forEach(["u","d"],function(n){r.forEach(["l","r"],function(a){var u,s=n+a,c=t[s];if(c!==e){var l=r.values(c);(u="l"===a?o-r.min(l):i-r.max(l))&&(t[s]=r.mapValues(c,function(t){return t+u}))}})})}function p(t,e){return r.mapValues(t.ul,function(n,o){if(e)return t[e.toLowerCase()][o];var i=r.sortBy(r.map(t,o));return(i[1]+i[2])/2})}t.exports={positionX:function(t){var e,n=i.buildLayerMatrix(t),o=r.merge(a(t,n),u(t,n)),s={};r.forEach(["u","d"],function(i){e="u"===i?n:r.values(n).reverse(),r.forEach(["l","r"],function(n){"r"===n&&(e=r.map(e,function(t){return r.values(t).reverse()}));var a=("u"===i?t.predecessors:t.successors).bind(t),u=l(t,e,o,a),c=f(t,e,u.root,u.align,"r"===n);"r"===n&&(c=r.mapValues(c,function(t){return-t})),s[i+n]=c})});var c=h(t,s);return d(s,c),p(s,t.graph().align)},findType1Conflicts:a,findType2Conflicts:u,addConflict:s,hasConflict:c,verticalAlignment:l,horizontalCompaction:f,alignCoordinates:d,findSmallestWidthAlignment:h,balance:p}},36616:(t,e,n)=>{var r=n(34636),o=n(6672),i=n(82426),a=n(59469),u=Object.prototype,s=u.hasOwnProperty;t.exports=r(function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&i(e[0],e[1],c)&&(r=1);++n<r;)for(var l=e[n],f=a(l),h=-1,d=f.length;++h<d;){var p=f[h],v=t[p];(void 0===v||o(v,u[p])&&!s.call(t,p))&&(t[p]=l[p])}return t})},37286:(t,e,n)=>{var r=n(63409),o=Object.create;t.exports=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}()},37960:(t,e,n)=>{var r=n(95979),o=n(9588),i=n(52958);t.exports=function(t){return function(e,n,a){var u=Object(e);if(!o(e)){var s=r(n,3);e=i(e),n=function(t){return s(u[t],t,u)}}var c=t(e,n,a);return c>-1?u[s?e[c]:c]:void 0}}},38026:(t,e,n)=>{t.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},38168:(t,e,n)=>{var r=n(60865),o=n(80719);t.exports=function(t){return r.filter(o(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},39056:(t,e,n)=>{var r=n(96282),o=n(15544),i=n(95979),a=n(32603);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},39464:(t,e,n)=>{var r=n(2601);t.exports=function(t){return t?1/0===(t=r(t))||-1/0===t?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},39739:(t,e,n)=>{var r=n(1147),o=n(91361).Graph;t.exports=function(t,e,n){var i=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(e){return t.node(e)});return r.forEach(t.nodes(),function(o){var u=t.node(o),s=t.parent(o);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(a.setNode(o),a.setParent(o,s||i),r.forEach(t[n](o),function(e){var n=e.v===o?e.w:e.v,i=a.edge(n,o),u=r.isUndefined(i)?0:i.weight;a.setEdge(n,o,{weight:t.edge(e).weight+u})}),r.has(u,"minRank")&&a.setNode(o,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))}),a}},40007:(t,e,n)=>{t.exports=n(62380)},41440:(t,e,n)=>{var r=n(8125),o=n(85805);t.exports=function(t,e){return r(t,o(t),e)}},41604:(t,e,n)=>{var r=n(1147);t.exports=function(t){var e,n,o,i=(e=t,n={},o=0,r.forEach(e.children(),function t(i){var a=o;r.forEach(e.children(i),t),n[i]={low:a,lim:o++}}),n);r.forEach(t.graph().dummyChains,function(e){for(var n=t.node(e),r=n.edgeObj,o=function(t,e,n,r){var o,i,a=[],u=[],s=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);o=n;do a.push(o=t.parent(o));while(o&&(e[o].low>s||c>e[o].lim));for(i=o,o=r;(o=t.parent(o))!==i;)u.push(o);return{path:a.concat(u.reverse()),lca:i}}(t,i,r.v,r.w),a=o.path,u=o.lca,s=0,c=a[0],l=!0;e!==r.w;){if(n=t.node(e),l){for(;(c=a[s])!==u&&t.node(c).maxRank<n.rank;)s++;c===u&&(l=!1)}if(!l){for(;s<a.length-1&&t.node(c=a[s+1]).minRank<=n.rank;)s++;c=a[s]}t.setParent(e,c),e=t.successors(e)[0]}})}},41734:(t,e,n)=>{var r=n(63409);t.exports=function(t){return t==t&&!r(t)}},42068:(t,e,n)=>{var r=n(43041);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=!!e,e}},42073:t=>{t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},42304:(t,e,n)=>{var r=n(51959),o=n(84890),i=n(6672),a=n(33395),u=n(92379),s=n(20745),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!f(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=u;case"[object Set]":var p=1&r;if(d||(d=s),t.size!=e.size&&!p)break;var v=h.get(t);if(v)return v==e;r|=2,h.set(t,e);var g=a(d(t),d(e),r,c,f,h);return h.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},42425:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},42858:(t,e,n)=>{var r=n(88222);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},43041:(t,e,n)=>{var r=n(17022);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},43959:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},44280:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},44308:(t,e,n)=>{var r=n(57489),o=n(33395),i=n(42304),a=n(58387),u=n(88299),s=n(32603),c=n(29648),l=n(383),f="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,g,y){var m=s(t),x=s(e),b=m?h:u(t),w=x?h:u(e);b=b==f?d:b,w=w==f?d:w;var _=b==d,E=w==d,k=b==w;if(k&&c(t)){if(!c(e))return!1;m=!0,_=!1}if(k&&!_)return y||(y=new r),m||l(t)?o(t,e,n,v,g,y):i(t,e,b,n,v,g,y);if(!(1&n)){var j=_&&p.call(t,"__wrapped__"),M=E&&p.call(e,"__wrapped__");if(j||M){var A=j?t.value():t,N=M?e.value():e;return y||(y=new r),g(A,N,n,v,y)}}return!!k&&(y||(y=new r),a(t,e,n,v,g,y))}},44793:(t,e,n)=>{var r=n(59390);t.exports=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},44885:(t,e,n)=>{var r=n(63409),o=n(35255),i=n(43959),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var u in t)"constructor"==u&&(e||!a.call(t,u))||n.push(u);return n}},45123:(t,e,n)=>{var r=n(9588),o=n(26854);t.exports=function(t){return o(t)&&r(t)}},47462:(t,e,n)=>{"use strict";var r=n(1147),o=n(11098),i=n(36089).positionX;t.exports=function(t){var e,n,a,u;e=t=o.asNonCompoundGraph(t),n=o.buildLayerMatrix(e),a=e.graph().ranksep,u=0,r.forEach(n,function(t){var n=r.max(r.map(t,function(t){return e.node(t).height}));r.forEach(t,function(t){e.node(t).y=u+n/2}),u+=n+a}),r.forEach(i(t),function(e,n){t.node(n).x=e})}},48095:(t,e,n)=>{var r=n(57489),o=n(8210);t.exports=function(t,e,n,i){var a=n.length,u=a,s=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=n[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var l=(c=n[a])[0],f=t[l],h=c[1];if(s&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new r;if(i)var p=i(f,h,l,t,e,d);if(!(void 0===p?o(h,f,3,i,d):p))return!1}}return!0}},48558:(t,e,n)=>{"use strict";var r=n(7620),o=n(16574),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=o.useSyncExternalStore,u=r.useRef,s=r.useEffect,c=r.useMemo,l=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,o){var f=u(null);if(null===f.current){var h={hasValue:!1,value:null};f.current=h}else h=f.current;var d=a(t,(f=c(function(){function t(t){if(!s){if(s=!0,a=t,t=r(t),void 0!==o&&h.hasValue){var e=h.value;if(o(e,t))return u=e}return u=t}if(e=u,i(a,t))return e;var n=r(t);return void 0!==o&&o(e,n)?(a=t,e):(a=t,u=n)}var a,u,s=!1,c=void 0===n?null:n;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]},[e,n,r,o]))[0],f[1]);return s(function(){h.hasValue=!0,h.value=d},[d]),l(d),d}},48715:(t,e,n)=>{"use strict";var r=n(1147);t.exports=function(t,e){for(var n=0,o=1;o<e.length;++o)n+=function(t,e,n){for(var o=r.zipObject(n,r.map(n,function(t,e){return e})),i=r.flatten(r.map(e,function(e){return r.sortBy(r.map(t.outEdges(e),function(e){return{pos:o[e.w],weight:t.edge(e).weight}}),"pos")}),!0),a=1;a<n.length;)a<<=1;var u=2*a-1;a-=1;var s=r.map(Array(u),function(){return 0}),c=0;return r.forEach(i.forEach(function(t){var e=t.pos+a;s[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=s[e+1]),e=e-1>>1,s[e]+=t.weight;c+=t.weight*n})),c}(t,e[o-1],e[o]);return n}},49226:(t,e,n)=>{var r=n(50678),o=n(63409);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},49654:(t,e,n)=>{"use strict";var r=n(1147);function o(t){r.forEach(t.nodes(),function(e){i(t.node(e))}),r.forEach(t.edges(),function(e){i(t.edge(e))})}function i(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function u(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();("lr"===e||"rl"===e)&&o(t)},undo:function(t){var e,n,i=t.graph().rankdir.toLowerCase();("bt"===i||"rl"===i)&&(e=t,r.forEach(e.nodes(),function(t){a(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"y")&&a(n)})),("lr"===i||"rl"===i)&&(n=t,r.forEach(n.nodes(),function(t){u(n.node(t))}),r.forEach(n.edges(),function(t){var e=n.edge(t);r.forEach(e.points,u),r.has(e,"x")&&u(e)}),o(t))}}},50137:(t,e,n)=>{"use strict";var r=n(1147),o=n(73724),i=n(48715),a=n(6400),u=n(39739),s=n(52090),c=n(91361).Graph,l=n(11098);function f(t,e,n){return r.map(e,function(e){return u(t,e,n)})}function h(t,e){r.forEach(e,function(e){r.forEach(e,function(e,n){t.node(e).order=n})})}t.exports=function(t){var e=l.maxRank(t),n=f(t,r.range(1,e+1),"inEdges"),u=f(t,r.range(e-1,-1,-1),"outEdges"),d=o(t);h(t,d);for(var p,v=1/0,g=0,y=0;y<4;++g,++y){(function(t,e){var n=new c;r.forEach(t,function(t){var o=t.graph().root,i=a(t,o,n,e);r.forEach(i.vs,function(e,n){t.node(e).order=n}),s(t,n,i.vs)})})(g%2?n:u,g%4>=2),d=l.buildLayerMatrix(t);var m=i(t,d);m<v&&(y=0,p=r.cloneDeep(d),v=m)}h(t,p)}},50557:(t,e,n)=>{var r=n(58519),o=n(74917),i=n(10825),a=n(74296),u=n(54733);t.exports=function(t,e,n){var s=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(t,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},50567:(t,e,n)=>{var r=n(94469),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a<u;)s[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=n(s),r(t,this,c)}}},50678:(t,e,n)=>{var r=n(51959),o=n(8587),i=n(97552),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},51019:(t,e,n)=>{t.exports=n(59390)(n(6243),"WeakMap")},51208:(t,e,n)=>{t.exports={Graph:n(30052),version:n(85472)}},51222:(t,e,n)=>{var r=n(31678),o=n(26854),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable;t.exports=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")}},51747:(t,e,n)=>{t.exports=n(6243)["__core-js_shared__"]},51959:(t,e,n)=>{t.exports=n(6243).Symbol},52087:(t,e,n)=>{var r=n(50678),o=n(20462),i=n(26854),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},52090:(t,e,n)=>{var r=n(1147);t.exports=function(t,e,n){var o,i={};r.forEach(n,function(n){for(var r,a,u=t.parent(n);u;){if((r=t.parent(u))?(a=i[r],i[r]=u):(a=o,o=u),a&&a!==u)return void e.setEdge(a,u);u=r}})}},52270:(t,e,n)=>{"use strict";var r=n(1147),o=n(2331),i=n(67661).slack,a=n(67661).longestPath,u=n(91361).alg.preorder,s=n(91361).alg.postorder,c=n(11098).simplify;function l(t){a(t=c(t));var e,n,r=o(t);for(d(r),f(r,t);e=p(r);)n=v(r,t,e),g(r,t,e,n)}function f(t,e){var n=s(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,function(n){var r,o,i,a;r=t,o=e,i=n,a=r.node(i).parent,r.edge(i,a).cutvalue=h(r,o,i)})}function h(t,e,n){var o=t.node(n).parent,i=!0,a=e.edge(n,o),u=0;return a||(i=!1,a=e.edge(o,n)),u=a.weight,r.forEach(e.nodeEdges(n),function(r){var a=r.v===n,s=a?r.w:r.v;if(s!==o){var c,l,f,h=a===i,d=e.edge(r).weight;if(u+=h?d:-d,c=t,l=n,f=s,c.hasEdge(l,f)){var p=t.edge(n,s).cutvalue;u+=h?-p:p}}}),u}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,n,o,i,a){var u=o,s=e.node(i);return n[i]=!0,r.forEach(e.neighbors(i),function(a){r.has(n,a)||(o=t(e,n,o,a,i))}),s.low=u,s.lim=o++,a?s.parent=a:delete s.parent,o}(t,{},1,e)}function p(t){return r.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function v(t,e,n){var o=n.v,a=n.w;e.hasEdge(o,a)||(o=n.w,a=n.v);var u=t.node(o),s=t.node(a),c=u,l=!1;u.lim>s.lim&&(c=s,l=!0);var f=r.filter(e.edges(),function(e){return l===y(t,t.node(e.v),c)&&l!==y(t,t.node(e.w),c)});return r.minBy(f,function(t){return i(e,t)})}function g(t,e,n,o){var i,a,s,c,l=n.v,h=n.w;t.removeEdge(l,h),t.setEdge(o.v,o.w,{}),d(t),f(t,e),i=t,a=e,s=r.find(i.nodes(),function(t){return!a.node(t).parent}),c=(c=u(i,s)).slice(1),r.forEach(c,function(t){var e=i.node(t).parent,n=a.edge(t,e),r=!1;n||(n=a.edge(e,t),r=!0),a.node(t).rank=a.node(e).rank+(r?n.minlen:-n.minlen)})}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=f,l.calcCutValue=h,l.leaveEdge=p,l.enterEdge=v,l.exchangeEdges=g},52313:t=>{t.exports=function(t){return function(e){return t(e)}}},52921:(t,e,n)=>{"use strict";var r=n(1147),o=n(11098);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,i,a=e.v,u=t.node(a).rank,s=e.w,c=t.node(s).rank,l=e.name,f=t.edge(e),h=f.labelRank;if(c!==u+1){for(t.removeEdge(e),i=0,++u;u<c;++i,++u)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:e,rank:u},n=o.addDummyNode(t,"edge",r,"_d"),u===h&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),t.setEdge(a,n,{weight:f.weight},l),0===i&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,s,{weight:f.weight},l)}}(t,e)})},undo:function(t){r.forEach(t.graph().dummyChains,function(e){var n,r=t.node(e),o=r.edgeLabel;for(t.setEdge(r.edgeObj,o);r.dummy;)n=t.successors(e)[0],t.removeNode(e),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),e=n,r=t.node(e)})}}},52958:(t,e,n)=>{var r=n(9371),o=n(5510),i=n(9588);t.exports=function(t){return i(t)?r(t):o(t)}},53108:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},54023:(t,e,n)=>{t=n.nmd(t);var r=n(38026),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},54359:(t,e,n)=>{var r=n(1855),o=n(6309),i=n(99078),a=n(5053);t.exports=function(t){return i(t)?r(a(t)):o(t)}},54448:(t,e,n)=>{var r=n(2702),o=0;t.exports=function(t){var e=++o;return r(t)+e}},54733:(t,e,n)=>{var r=n(58519);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},54794:(t,e,n)=>{var r=n(99686),o=n(76762),i=n(69275);t.exports=function(t,e,n){for(var a=-1,u=e.length,s={};++a<u;){var c=e[a],l=r(t,c);n(l,c)&&o(s,i(c,t),l)}return s}},54804:(t,e,n)=>{var r=n(15500),o=n(52313),i=n(54023),a=i&&i.isMap;t.exports=a?o(a):r},54930:t=>{t.exports=function(){}},55098:(t,e,n)=>{var r=n(1602),o=n(52313),i=n(54023),a=i&&i.isSet;t.exports=a?o(a):r},55434:(t,e,n)=>{var r=n(60865),o=n(30052);t.exports={write:function(t){var e,n,o={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:(e=t,r.map(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),i={v:t};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i})),edges:(n=t,r.map(n.edges(),function(t){var e=n.edge(t),o={v:t.v,w:t.w};return r.isUndefined(t.name)||(o.name=t.name),r.isUndefined(e)||(o.value=e),o}))};return r.isUndefined(t.graph())||(o.value=r.clone(t.graph())),o},read:function(t){var e=new o(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},55859:t=>{t.exports=function(t){return t!=t}},56049:(t,e,n)=>{var r=n(23247);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},56227:(t,e,n)=>{t.exports=n(61224)()},56304:(t,e,n)=>{var r=n(8125),o=n(59469);t.exports=function(t,e){return t&&r(e,o(e),t)}},56423:t=>{t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return -1}},57288:t=>{t.exports=function(t){return t}},57489:(t,e,n)=>{var r=n(87471),o=n(31354),i=n(27510),a=n(30615),u=n(82091),s=n(94051);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},58339:(t,e,n)=>{"use strict";var r=n(1147);t.exports=function(t,e){var n={};return r.forEach(t,function(t,e){var o=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)}),r.forEach(e.edges(),function(t){var e=n[t.v],o=n[t.w];r.isUndefined(e)||r.isUndefined(o)||(o.indegree++,e.out.push(n[t.w]))}),function(t){for(var e=[];t.length;){var n=t.pop();e.push(n),r.forEach(n.in.reverse(),function(t){return function(e){!e.merged&&(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}(n)),r.forEach(n.out,function(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}(n))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},58387:(t,e,n)=>{var r=n(16716),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var s=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!s)return!1;for(var f=l;f--;){var h=c[f];if(!(s?h in e:o.call(e,h)))return!1}var d=u.get(t),p=u.get(e);if(d&&p)return d==e&&p==t;var v=!0;u.set(t,e),u.set(e,t);for(var g=s;++f<l;){var y=t[h=c[f]],m=e[h];if(i)var x=s?i(m,y,h,e,t,u):i(y,m,h,t,e,u);if(!(void 0===x?y===m||a(y,m,n,i,u):x)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var b=t.constructor,w=e.constructor;b!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(v=!1)}return u.delete(t),u.delete(e),v}},58470:(t,e,n)=>{var r=n(51959),o=n(17674),i=n(32603),a=n(60054),u=r?r.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},58519:(t,e,n)=>{var r=n(84890);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},58572:t=>{t.exports=function(){this.__data__=[],this.size=0}},59390:(t,e,n)=>{var r=n(68893),o=n(14494);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},59469:(t,e,n)=>{var r=n(9371),o=n(44885),i=n(9588);t.exports=function(t){return i(t)?r(t,!0):o(t)}},59596:(t,e,n)=>{var r=n(39464);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},59599:t=>{t.exports=function(){return[]}},60054:(t,e,n)=>{var r=n(50678),o=n(26854);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},60165:t=>{t.exports=function(t,e){return t.has(e)}},60673:(t,e,n)=>{var r=n(37286),o=n(19365),i=n(35255);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},60815:(t,e,n)=>{var r=n(62132),o=n(6672);t.exports=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},60865:(t,e,n)=>{var r;try{r={clone:n(91283),constant:n(1150),each:n(40007),filter:n(39056),has:n(36026),isArray:n(32603),isEmpty:n(4191),isFunction:n(49226),isUndefined:n(69654),keys:n(52958),map:n(16396),reduce:n(94964),size:n(18047),transform:n(20990),union:n(7945),values:n(79084)}}catch(t){}r||(r=window._),t.exports=r},60933:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},61224:(t,e,n)=>{var r=n(86315),o=n(82426),i=n(39464);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},61739:(t,e,n)=>{var r=n(60865);t.exports=function(t){var e,n={},o=[];return r.each(t.nodes(),function(i){e=[],function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}(i),e.length&&o.push(e)}),o}},62047:(t,e,n)=>{t.exports=n(59390)(n(6243),"Map")},62120:(t,e,n)=>{"use strict";var r=n(1147),o=n(3970),i=n(52921),a=n(26427),u=n(11098).normalizeRanks,s=n(41604),c=n(11098).removeEmptyRanks,l=n(21713),f=n(26387),h=n(49654),d=n(50137),p=n(47462),v=n(11098),g=n(91361).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?v.time:v.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){var e,n,o;return e=t,n=new g({multigraph:!0,compound:!0}),o=M(e.graph()),n.setGraph(r.merge({},m,j(o,y),r.pick(o,x))),r.forEach(e.nodes(),function(t){var o=M(e.node(t));n.setNode(t,r.defaults(j(o,b),w)),n.setParent(t,e.parent(t))}),r.forEach(e.edges(),function(t){var o=M(e.edge(t));n.setEdge(t,r.merge({},E,j(o,_),r.pick(o,k)))}),n});n(" runLayout",function(){var t,g;t=e,(g=n)(" makeSpaceForEdgeLabels",function(){var e,n;n=(e=t).graph(),n.ranksep/=2,r.forEach(e.edges(),function(t){var r=e.edge(t);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),g(" removeSelfEdges",function(){var e;e=t,r.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}),g(" acyclic",function(){o.run(t)}),g(" nestingGraph.run",function(){l.run(t)}),g(" rank",function(){a(v.asNonCompoundGraph(t))}),g(" injectEdgeLabelProxies",function(){var e;e=t,r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};v.addDummyNode(e,"edge-proxy",o,"_ep")}})}),g(" removeEmptyRanks",function(){c(t)}),g(" nestingGraph.cleanup",function(){l.cleanup(t)}),g(" normalizeRanks",function(){u(t)}),g(" assignRankMinMax",function(){var e,n;e=t,n=0,r.forEach(e.nodes(),function(t){var o=e.node(t);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,n=r.max(n,o.maxRank))}),e.graph().maxRank=n}),g(" removeEdgeLabelProxies",function(){var e;e=t,r.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}),g(" normalize.run",function(){i.run(t)}),g(" parentDummyChains",function(){s(t)}),g(" addBorderSegments",function(){f(t)}),g(" order",function(){d(t)}),g(" insertSelfEdges",function(){var e,n;e=t,n=v.buildLayerMatrix(e),r.forEach(n,function(t){var n=0;r.forEach(t,function(t,o){var i=e.node(t);i.order=o+n,r.forEach(i.selfEdges,function(t){v.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:o+ ++n,e:t.e,label:t.label},"_se")}),delete i.selfEdges})})}),g(" adjustCoordinateSystem",function(){h.adjust(t)}),g(" position",function(){p(t)}),g(" positionSelfEdges",function(){var e;e=t,r.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,u=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],n.label.x=n.x,n.label.y=n.y}})}),g(" removeBorderNodes",function(){var e;e=t,r.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),u=e.node(r.last(n.borderRight));n.width=Math.abs(u.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}}),r.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}),g(" normalize.undo",function(){i.undo(t)}),g(" fixupEdgeLabelCoords",function(){var e;e=t,r.forEach(e.edges(),function(t){var n=e.edge(t);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),g(" undoCoordinateSystem",function(){h.undo(t)}),g(" translateGraph",function(){!function(t){var e=1/0,n=0,o=1/0,i=0,a=t.graph(),u=a.marginx||0,s=a.marginy||0;function c(t){var r=t.x,a=t.y,u=t.width,s=t.height;e=Math.min(e,r-u/2),n=Math.max(n,r+u/2),o=Math.min(o,a-s/2),i=Math.max(i,a+s/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=u,o-=s,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=o}),r.forEach(t.edges(),function(n){var i=t.edge(n);r.forEach(i.points,function(t){t.x-=e,t.y-=o}),r.has(i,"x")&&(i.x-=e),r.has(i,"y")&&(i.y-=o)}),a.width=n-e+u,a.height=i-o+s}(t)}),g(" assignNodeIntersects",function(){var e;e=t,r.forEach(e.edges(),function(t){var n,r,o=e.edge(t),i=e.node(t.v),a=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(v.intersectRect(i,n)),o.points.push(v.intersectRect(a,r))})}),g(" reversePoints",function(){var e;e=t,r.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}),g(" acyclic.undo",function(){o.undo(t)})}),n(" updateInputGraph",function(){var n,o;n=t,o=e,r.forEach(n.nodes(),function(t){var e=n.node(t),r=o.node(t);e&&(e.x=r.x,e.y=r.y,o.children(t).length&&(e.width=r.width,e.height=r.height))}),r.forEach(n.edges(),function(t){var e=n.edge(t),i=o.edge(t);e.points=i.points,r.has(i,"x")&&(e.x=i.x,e.y=i.y)}),n.graph().width=o.graph().width,n.graph().height=o.graph().height})})};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},x=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function j(t,e){return r.mapValues(r.pick(t,e),Number)}function M(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},62132:(t,e,n)=>{var r=n(44793);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},62380:(t,e,n)=>{var r=n(60933),o=n(71871),i=n(34560),a=n(32603);t.exports=function(t,e){return(a(t)?r:o)(t,i(e))}},62417:(t,e,n)=>{var r=n(43041);t.exports=function(t){return r(this,t).has(t)}},63327:(t,e,n)=>{var r=n(12711);t.exports=n(24786)(function(t,e){return null==t?{}:r(t,e)})},63409:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},63467:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},63719:t=>{var e="\\ud800-\\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[o,i,a].join("|")+")"+s+u+")*",l=RegExp(r+"(?="+r+")|"+("(?:"+[o+n+"?",n,i,a,"["+e+"]"].join("|"))+")"+(s+u+c),"g");t.exports=function(t){for(var e=l.lastIndex=0;l.test(t);)++e;return e}},64260:(t,e,n)=>{t.exports=n(59390)(Object,"create")},64796:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},65135:t=>{t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return -1}},67214:(t,e,n)=>{var r=n(62132),o=n(8327),i=n(95979);t.exports=function(t,e){var n={};return e=i(e,3),o(t,function(t,o,i){r(n,o,e(t,o,i))}),n}},67266:(t,e,n)=>{var r=n(8125),o=n(59469);t.exports=function(t){return r(t,o(t))}},67304:(t,e,n)=>{var r=n(60815),o=n(1038),i=n(54733),a=n(97383),u=n(60673),s=n(51222),c=n(32603),l=n(45123),f=n(29648),h=n(49226),d=n(63409),p=n(35437),v=n(383),g=n(17870),y=n(67266);t.exports=function(t,e,n,m,x,b,w){var _=g(t,n),E=g(e,n),k=w.get(E);if(k)return void r(t,n,k);var j=b?b(_,E,n+"",t,e,w):void 0,M=void 0===j;if(M){var A=c(E),N=!A&&f(E),z=!A&&!N&&v(E);j=E,A||N||z?c(_)?j=_:l(_)?j=a(_):N?(M=!1,j=o(E,!0)):z?(M=!1,j=i(E,!0)):j=[]:p(E)||s(E)?(j=_,s(_)?j=y(_):(!d(_)||h(_))&&(j=u(E))):M=!1}M&&(w.set(E,j),x(j,E,m,b,w),w.delete(E)),r(t,n,j)}},67387:(t,e,n)=>{var r=n(57489),o=n(60933),i=n(75779),a=n(27151),u=n(56304),s=n(1038),c=n(97383),l=n(479),f=n(41440),h=n(16716),d=n(10359),p=n(88299),v=n(63467),g=n(50557),y=n(60673),m=n(32603),x=n(29648),b=n(54804),w=n(63409),_=n(55098),E=n(52958),k=n(59469),j="[object Arguments]",M="[object Function]",A="[object Object]",N={};N[j]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[A]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[M]=N["[object WeakMap]"]=!1,t.exports=function t(e,n,z,O,S,$){var C,P=1&n,I=2&n,L=4&n;if(z&&(C=S?z(e,O,S,$):z(e)),void 0!==C)return C;if(!w(e))return e;var T=m(e);if(T){if(C=v(e),!P)return c(e,C)}else{var R=p(e),B=R==M||"[object GeneratorFunction]"==R;if(x(e))return s(e,P);if(R==A||R==j||B&&!S){if(C=I||B?{}:y(e),!P)return I?f(e,u(C,e)):l(e,a(C,e))}else{if(!N[R])return S?e:{};C=g(e,R,P)}}$||($=new r);var D=$.get(e);if(D)return D;$.set(e,C),_(e)?e.forEach(function(r){C.add(t(r,n,z,r,e,$))}):b(e)&&e.forEach(function(r,o){C.set(o,t(r,n,z,o,e,$))});var H=L?I?d:h:I?k:E,q=T?void 0:H(e);return o(q||e,function(r,o){q&&(r=e[o=r]),i(C,o,t(r,n,z,o,e,$))}),C}},67661:(t,e,n)=>{"use strict";var r=n(1147);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(o){var i=t.node(o);if(r.has(e,o))return i.rank;e[o]=!0;var a=r.min(r.map(t.outEdges(o),function(e){return n(e.w)-t.edge(e).minlen}));return(1/0===a||null==a)&&(a=0),i.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},68185:(t,e,n)=>{var r=n(24892),o=n(32603);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},68501:(t,e,n)=>{var r=n(3269),o=n(54930),i=n(20745);t.exports=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:o},68893:(t,e,n)=>{var r=n(49226),o=n(29418),i=n(63409),a=n(23335),u=/^\[object .+?Constructor\]$/,s=Object.prototype,c=Function.prototype.toString,l=s.hasOwnProperty,f=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?f:u).test(a(t))}},69275:(t,e,n)=>{var r=n(32603),o=n(99078),i=n(784),a=n(2702);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},69397:(t,e,n)=>{t.exports=n(37960)(n(95359))},69654:t=>{t.exports=function(t){return void 0===t}},69807:(t,e,n)=>{t.exports=n(1855)("length")},70161:(t,e,n)=>{var r=n(60054);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],u=e(a);if(null!=u&&(void 0===s?u==u&&!r(u):n(u,s)))var s=u,c=a}return c}},70188:(t,e,n)=>{t.exports=n(5275)(Object.keys,Object)},70774:(t,e,n)=>{var r=n(3327);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},71518:(t,e,n)=>{var r=n(96282),o=n(59599),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(t){return null==t?[]:r(a(t=Object(t)),function(e){return i.call(t,e)})}:o},71871:(t,e,n)=>{var r=n(8327);t.exports=n(12911)(r)},72498:t=>{t.exports=function(t,e){return t<e}},72846:(t,e,n)=>{var r=n(99686);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},73711:(t,e,n)=>{var r=n(27820),o=n(85060),i=n(78189),a=n(9025),u=n(32689);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},73724:(t,e,n)=>{"use strict";var r=n(1147);t.exports=function(t){var e={},n=r.filter(t.nodes(),function(e){return!t.children(e).length}),o=r.max(r.map(n,function(e){return t.node(e).rank})),i=r.map(r.range(o+1),function(){return[]}),a=r.sortBy(n,function(e){return t.node(e).rank});return r.forEach(a,function n(o){r.has(e,o)||(e[o]=!0,i[t.node(o).rank].push(o),r.forEach(t.successors(o),n))}),i}},74296:(t,e,n)=>{var r=n(51959),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},74917:(t,e,n)=>{var r=n(58519);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},75371:t=>{t.exports=function(t){return this.__data__.has(t)}},75779:(t,e,n)=>{var r=n(62132),o=n(6672),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},76158:t=>{t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},76762:(t,e,n)=>{var r=n(75779),o=n(69275),i=n(77157),a=n(63409),u=n(5053);t.exports=function(t,e,n,s){if(!a(t))return t;e=o(e,t);for(var c=-1,l=e.length,f=l-1,h=t;null!=h&&++c<l;){var d=u(e[c]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)break;if(c!=f){var v=h[d];void 0===(p=s?s(v,d,h):void 0)&&(p=a(v)?v:i(e[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}},77157:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?0x1fffffffffffff:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},78189:(t,e,n)=>{var r=n(64260),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},78945:(t,e,n)=>{var r=n(60865),o=n(82355);t.exports=function(t,e,n,r){return function(t,e,n,r){var i,a,u={},s=new o,c=function(t){var e=t.v!==i?t.v:t.w,r=u[e],o=n(t),c=a.distance+o;if(o<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(e,c))};for(t.nodes().forEach(function(t){var n=t===e?0:1/0;u[t]={distance:n},s.add(t,n)});s.size()>0&&1/0!==(a=u[i=s.removeMin()]).distance;)r(i).forEach(c);return u}(t,String(e),n||i,r||function(e){return t.outEdges(e)})};var i=r.constant(1)},79084:(t,e,n)=>{var r=n(6660),o=n(52958);t.exports=function(t){return null==t?[]:r(t,o(t))}},80054:(t,e,n)=>{var r=n(34937),o=n(34560),i=n(59469);t.exports=function(t,e){return null==t?t:r(t,o(e),i)}},80719:(t,e,n)=>{var r=n(60865);t.exports=function(t){var e=0,n=[],o={},i=[];return t.nodes().forEach(function(a){r.has(o,a)||function a(u){var s=o[u]={onStack:!0,lowlink:e,index:e++};if(n.push(u),t.successors(u).forEach(function(t){r.has(o,t)?o[t].onStack&&(s.lowlink=Math.min(s.lowlink,o[t].index)):(a(t),s.lowlink=Math.min(s.lowlink,o[t].lowlink))}),s.lowlink===s.index){var c,l=[];do o[c=n.pop()].onStack=!1,l.push(c);while(u!==c);i.push(l)}}(a)}),i}},81007:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(7620);let o=(...t)=>t.filter((t,e,n)=>!!t&&n.indexOf(t)===e).join(" ");var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:u="",children:s,iconNode:c,...l},f)=>(0,r.createElement)("svg",{ref:f,...i,width:e,height:e,stroke:t,strokeWidth:a?24*Number(n)/Number(e):n,className:o("lucide",u),...l},[...c.map(([t,e])=>(0,r.createElement)(t,e)),...Array.isArray(s)?s:[s]])),u=(t,e)=>{let n=(0,r.forwardRef)(({className:n,...i},u)=>(0,r.createElement)(a,{ref:u,iconNode:e,className:o(`lucide-${t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...i}));return n.displayName=`${t}`,n}},82091:t=>{t.exports=function(t){return this.__data__.has(t)}},82355:(t,e,n)=>{var r=n(60865);function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(t){return t.key})},o.prototype.has=function(t){return r.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var o=this._arr,i=o.length;return n[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.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},o.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},o.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,o=t;n<e.length&&(o=e[n].priority<e[o].priority?n:o,r<e.length&&(o=e[r].priority<e[o].priority?r:o),o!==t&&(this._swap(t,o),this._heapify(o)))},o.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},o.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,o=n[t],i=n[e];n[t]=i,n[e]=o,r[i.key]=t,r[o.key]=e}},82426:(t,e,n)=>{var r=n(6672),o=n(9588),i=n(77157),a=n(63409);t.exports=function(t,e,n){if(!a(n))return!1;var u=typeof e;return("number"==u?!!(o(n)&&i(e,n.length)):"string"==u&&e in n)&&r(n[e],t)}},82854:(t,e,n)=>{var r=n(60865);t.exports=function(t,e,n){var r,i,a,u,s;return r=t,i=e||o,a=n||function(e){return t.outEdges(e)},u={},(s=r.nodes()).forEach(function(t){u[t]={},u[t][t]={distance:0},s.forEach(function(e){t!==e&&(u[t][e]={distance:1/0})}),a(t).forEach(function(e){var n=e.v===t?e.w:e.v,r=i(e);u[t][n]={distance:r,predecessor:t}})}),s.forEach(function(t){var e=u[t];s.forEach(function(n){var r=u[n];s.forEach(function(n){var o=r[t],i=e[n],a=r[n],u=o.distance+i.distance;u<a.distance&&(a.distance=u,a.predecessor=i.predecessor)})})}),u};var o=r.constant(1)},84446:(t,e,n)=>{var r=n(1147);t.exports=function(t,e){return r.map(e,function(e){var n=t.inEdges(e);if(!n.length)return{v:e};var o=r.reduce(n,function(e,n){var r=t.edge(n),o=t.node(n.v);return{sum:e.sum+r.weight*o.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}})}},84890:(t,e,n)=>{t.exports=n(6243).Uint8Array},85060:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e}},85219:(t,e,n)=>{var r=n(78945),o=n(60865);t.exports=function(t,e,n){return o.transform(t.nodes(),function(o,i){o[i]=r(t,i,e,n)},{})}},85472:t=>{t.exports="2.1.8"},85805:(t,e,n)=>{var r=n(24892),o=n(19365),i=n(71518),a=n(59599);t.exports=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a},86315:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,r,o,i){for(var a=-1,u=n(e((r-t)/(o||1)),0),s=Array(u);u--;)s[i?u:++a]=t,t+=o;return s}},86575:(t,e,n)=>{var r=n(50678),o=n(32603),i=n(26854);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},86812:(t,e,n)=>{var r=n(73711),o=n(87471),i=n(62047);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},87471:(t,e,n)=>{var r=n(58572),o=n(90052),i=n(4109),a=n(34657),u=n(56049);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},87784:(t,e,n)=>{t.exports=n(59390)(n(6243),"Promise")},87987:(t,e,n)=>{var r=n(1147),o=n(11098);function i(t,e,n){for(var o;e.length&&(o=r.last(e)).i<=n;)e.pop(),t.push(o.vs),n++;return n}t.exports=function(t,e){var n,a=o.partition(t,function(t){return r.has(t,"barycenter")}),u=a.lhs,s=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,f=0,h=0;u.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),h=i(c,s,h),r.forEach(u,function(t){h+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,f+=t.weight,h=i(c,s,h)});var d={vs:r.flatten(c,!0)};return f&&(d.barycenter=l/f,d.weight=f),d}},88183:(t,e,n)=>{var r=n(70161),o=n(95979),i=n(72498);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},88185:t=>{t.exports=function(){return!1}},88222:(t,e,n)=>{var r=n(60865);function o(t){var e={},n={},o=[];if(r.each(t.sinks(),function a(u){if(r.has(n,u))throw new i;r.has(e,u)||(n[u]=!0,e[u]=!0,r.each(t.predecessors(u),a),delete n[u],o.push(u))}),r.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=Error()},88299:(t,e,n)=>{var r=n(7650),o=n(62047),i=n(87784),a=n(3269),u=n(51019),s=n(50678),c=n(23335),l="[object Map]",f="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",v=c(r),g=c(o),y=c(i),m=c(a),x=c(u),b=s;(r&&b(new r(new ArrayBuffer(1)))!=p||o&&b(new o)!=l||i&&b(i.resolve())!=f||a&&b(new a)!=h||u&&b(new u)!=d)&&(b=function(t){var e=s(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return p;case g:return l;case y:return f;case m:return h;case x:return d}return e}),t.exports=b},88682:()=>{},88929:(t,e,n)=>{var r=n(43041);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=+(n.size!=o),this}},89996:(t,e,n)=>{var r=n(24892),o=n(5967);t.exports=function t(e,n,i,a,u){var s=-1,c=e.length;for(i||(i=o),u||(u=[]);++s<c;){var l=e[s];n>0&&i(l)?n>1?t(l,n-1,i,a,u):r(u,l):a||(u[u.length]=l)}return u}},90052:(t,e,n)=>{var r=n(23247),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},90781:(t,e,n)=>{var r=n(43041);t.exports=function(t){return r(this,t).get(t)}},90941:(t,e,n)=>{var r=n(1147),o=n(91361).Graph,i=n(24451);t.exports=function(t,e){if(1>=t.nodeCount())return[];var n,c,l,f,h,d,p,v=(n=t,c=e||a,l=new o,f=0,h=0,r.forEach(n.nodes(),function(t){l.setNode(t,{v:t,in:0,out:0})}),r.forEach(n.edges(),function(t){var e=l.edge(t.v,t.w)||0,n=c(t);l.setEdge(t.v,t.w,e+n),h=Math.max(h,l.node(t.v).out+=n),f=Math.max(f,l.node(t.w).in+=n)}),d=r.range(h+f+3).map(function(){return new i}),p=f+1,r.forEach(l.nodes(),function(t){s(d,p,l.node(t))}),{graph:l,buckets:d,zeroIdx:p}),g=function(t,e,n){for(var r,o=[],i=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)u(t,e,n,r);for(;r=i.dequeue();)u(t,e,n,r);if(t.nodeCount()){for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){o=o.concat(u(t,e,n,r,!0));break}}}return o}(v.graph,v.buckets,v.zeroIdx);return r.flatten(r.map(g,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function u(t,e,n,o,i){var a=i?[]:void 0;return r.forEach(t.inEdges(o.v),function(r){var o=t.edge(r),u=t.node(r.v);i&&a.push({v:r.v,w:r.w}),u.out-=o,s(e,n,u)}),r.forEach(t.outEdges(o.v),function(r){var o=t.edge(r),i=r.w,a=t.node(i);a.in-=o,s(e,n,a)}),t.removeNode(o.v),a}function s(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},91283:(t,e,n)=>{var r=n(67387);t.exports=function(t){return r(t,4)}},91356:t=>{t.exports=function(t,e,n,r,o){return o(t,function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)}),n}},91361:(t,e,n)=>{var r;try{r=n(93856)}catch(t){}r||(r=window.graphlib),t.exports=r},91397:(t,e,n)=>{"use strict";n.d(e,{F:()=>a});var r=n(9917);let o=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,i=r.$,a=(t,e)=>n=>{var r;if((null==e?void 0:e.variants)==null)return i(t,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:u}=e,s=Object.keys(a).map(t=>{let e=null==n?void 0:n[t],r=null==u?void 0:u[t];if(null===e)return null;let i=o(e)||o(r);return a[t][i]}),c=n&&Object.entries(n).reduce((t,e)=>{let[n,r]=e;return void 0===r||(t[n]=r),t},{});return i(t,s,null==e||null==(r=e.compoundVariants)?void 0:r.reduce((t,e)=>{let{class:n,className:r,...o}=e;return Object.entries(o).every(t=>{let[e,n]=t;return Array.isArray(n)?n.includes({...u,...c}[e]):({...u,...c})[e]===n})?[...t,n,r]:t},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},91945:t=>{t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===n(i[s],s,i))break}return e}}},92379:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},93726:(t,e,n)=>{var r=n(75779),o=n(6102);t.exports=function(t,e){return o(t||[],e||[],r)}},93856:(t,e,n)=>{var r=n(51208);t.exports={Graph:r.Graph,json:n(55434),alg:n(12217),version:r.version}},94051:(t,e,n)=>{var r=n(87471),o=n(62047),i=n(3327);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},94469:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},94964:(t,e,n)=>{var r=n(76158),o=n(71871),i=n(95979),a=n(91356),u=n(32603);t.exports=function(t,e,n){var s=u(t)?r:a,c=arguments.length<3;return s(t,i(e,4),n,c,o)}},95359:(t,e,n)=>{var r=n(56423),o=n(95979),i=n(59596),a=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return -1;var s=null==n?0:i(n);return s<0&&(s=a(u+s,0)),r(t,o(e,3),s)}},95409:(t,e,n)=>{var r=n(3327),o=n(44280),i=n(75371);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},95831:(t,e,n)=>{var r=n(69807),o=n(64796),i=n(63719);t.exports=function(t){return o(t)?i(t):r(t)}},95979:(t,e,n)=>{var r=n(13363),o=n(8874),i=n(57288),a=n(32603),u=n(54359);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},96282:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},96532:(t,e,n)=>{var r=n(71871),o=n(9588);t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,function(t,r,o){i[++n]=e(t,r,o)}),i}},97195:(t,e,n)=>{var r=n(17674),o=n(99686),i=n(95979),a=n(96532),u=n(31959),s=n(52313),c=n(32490),l=n(57288),f=n(32603);t.exports=function(t,e,n){e=e.length?r(e,function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t}):[l];var h=-1;return e=r(e,s(i)),u(a(t,function(t,n,o){return{criteria:r(e,function(e){return e(t)}),index:++h,value:t}}),function(t,e){return c(t,e,n)})}},97337:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},97383:t=>{t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},97552:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},98058:(t,e,n)=>{t.exports={graphlib:n(91361),layout:n(62120),debug:n(26109),util:{time:n(11098).time,notime:n(11098).notime},version:n(25834)}},98579:(t,e,n)=>{var r=n(56423),o=n(55859),i=n(65135);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},98751:(t,e,n)=>{var r=n(60865),o=n(30052),i=n(82355);t.exports=function(t,e){var n,a=new o,u={},s=new i;function c(t){var r=t.v===n?t.w:t.v,o=s.priority(r);if(void 0!==o){var i=e(t);i<o&&(u[r]=n,s.decrease(r,i))}}if(0===t.nodeCount())return a;r.each(t.nodes(),function(t){s.add(t,1/0),a.setNode(t)}),s.decrease(t.nodes()[0],0);for(var l=!1;s.size()>0;){if(n=s.removeMin(),r.has(u,n))a.setEdge(n,u[n]);else if(l)throw Error("Input graph is not connected: "+t);else l=!0;t.nodeEdges(n).forEach(c)}return a}},99078:(t,e,n)=>{var r=n(32603),o=n(60054),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},99686:(t,e,n)=>{var r=n(69275),o=n(5053);t.exports=function(t,e){e=r(e,t);for(var n=0,i=e.length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},99694:(t,e,n)=>{var r=n(1150),o=n(44793),i=n(57288);t.exports=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i}}]);
|
package/dist/dashboard/_next/static/chunks/{820-9606b69ff6f7f9b9.js → 820-b9d442e4990c267b.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{7283:(t,e,s)=>{s.d(e,{T:()=>r});function r(){let t,e,s=new Promise((s,r)=>{t=s,e=r});function r(t){Object.assign(s,t),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=e=>{r({status:"fulfilled",value:e}),t(e)},s.reject=t=>{r({status:"rejected",reason:t}),e(t)},s}},17950:(t,e,s)=>{s.d(e,{Zq:()=>n,zs:()=>i});var r={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},i=new class{#t=r;#e=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}};function n(t){setTimeout(t,0)}},18517:(t,e,s)=>{s.d(e,{Q:()=>r});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},19773:(t,e,s)=>{s.d(e,{k:()=>a});var r=s(17950),i=s(43332),n=s(91961),a=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.gn)(this.gcTime)&&(this.#s=r.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(i.H.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#s&&(r.zs.clearTimeout(this.#s),this.#s=void 0)}}},43332:(t,e,s)=>{let r;s.d(e,{H:()=>n});var i=s(91961),n=(r=()=>i.S$,{isServer:()=>r(),setIsServer(t){r=t}})},45467:(t,e,s)=>{s.d(e,{m:()=>i});var r=s(18517),i=new class extends r.Q{#r;#i;#n;constructor(){super(),this.#n=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#i||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(t){this.#n=t,this.#i?.(),this.#i=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#r!==t&&(this.#r=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}}},46676:(t,e,s)=>{let r,i,n,a,o,u;s.d(e,{jG:()=>h});var c=s(17950).Zq,h=(r=[],i=0,n=t=>{t()},a=t=>{t()},o=c,{batch:t=>{let e;i++;try{e=t()}finally{let t;--i||(t=r,r=[],t.length&&o(()=>{a(()=>{t.forEach(t=>{n(t)})})}))}return e},batchCalls:t=>(...e)=>{u(()=>{t(...e)})},schedule:u=t=>{i?r.push(t):o(()=>{n(t)})},setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{a=t},setScheduler:t=>{o=t}})},48820:(t,e,s)=>{let r;s.d(e,{I:()=>O});var i=s(45467),n=s(43332),a=s(46676),o=s(63391),u=s(18517),c=s(7283),h=s(91961),l=s(17950),d=class extends u.Q{constructor(t,e){super(),this.options=e,this.#a=t,this.#o=null,this.#u=(0,c.T)(),this.bindMethods(),this.setOptions(e)}#a;#c=void 0;#h=void 0;#l=void 0;#d;#p;#u;#o;#f;#y;#v;#m;#b;#g;#R=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#c.addObserver(this),p(this.#c,this.options)?this.#S():this.updateResult(),this.#O())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#c,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#c,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#T(),this.#c.removeObserver(this)}setOptions(t){let e=this.options,s=this.#c;if(this.options=this.#a.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,h.nU)(this.options.enabled,this.#c))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Q(),this.#c.setOptions(this.options),e._defaulted&&!(0,h.f8)(this.options,e)&&this.#a.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#c,observer:this});let r=this.hasListeners();r&&y(this.#c,s,this.options,e)&&this.#S(),this.updateResult(),r&&(this.#c!==s||(0,h.nU)(this.options.enabled,this.#c)!==(0,h.nU)(e.enabled,this.#c)||(0,h.d2)(this.options.staleTime,this.#c)!==(0,h.d2)(e.staleTime,this.#c))&&this.#I();let i=this.#C();r&&(this.#c!==s||(0,h.nU)(this.options.enabled,this.#c)!==(0,h.nU)(e.enabled,this.#c)||i!==this.#g)&&this.#F(i)}getOptimisticResult(t){var e,s;let r=this.#a.getQueryCache().build(this.#a,t),i=this.createResult(r,t);return e=this,s=i,(0,h.f8)(e.getCurrentResult(),s)||(this.#l=i,this.#p=this.options,this.#d=this.#c.state),i}getCurrentResult(){return this.#l}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),e?.(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#u.status||this.#u.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,s))})}trackProp(t){this.#R.add(t)}getCurrentQuery(){return this.#c}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#a.defaultQueryOptions(t),s=this.#a.getQueryCache().build(this.#a,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#S({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#S(t){this.#Q();let e=this.#c.fetch(this.options,t);return t?.throwOnError||(e=e.catch(h.lQ)),e}#I(){this.#w();let t=(0,h.d2)(this.options.staleTime,this.#c);if(n.H.isServer()||this.#l.isStale||!(0,h.gn)(t))return;let e=(0,h.j3)(this.#l.dataUpdatedAt,t);this.#m=l.zs.setTimeout(()=>{this.#l.isStale||this.updateResult()},e+1)}#C(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#c):this.options.refetchInterval)??!1}#F(t){this.#T(),this.#g=t,!n.H.isServer()&&!1!==(0,h.nU)(this.options.enabled,this.#c)&&(0,h.gn)(this.#g)&&0!==this.#g&&(this.#b=l.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||i.m.isFocused())&&this.#S()},this.#g))}#O(){this.#I(),this.#F(this.#C())}#w(){void 0!==this.#m&&(l.zs.clearTimeout(this.#m),this.#m=void 0)}#T(){void 0!==this.#b&&(l.zs.clearInterval(this.#b),this.#b=void 0)}createResult(t,e){let s,r=this.#c,i=this.options,n=this.#l,a=this.#d,u=this.#p,l=t!==r?t.state:this.#h,{state:d}=t,f={...d},m=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&p(t,e),a=s&&y(t,r,e,i);(n||a)&&(f={...f,...(0,o.k)(d.data,t.options)}),"isRestoring"===e._optimisticResults&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:R}=f;s=f.data;let S=!1;if(void 0!==e.placeholderData&&void 0===s&&"pending"===R){let t;n?.isPlaceholderData&&e.placeholderData===u?.placeholderData?(t=n.data,S=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#v?.state.data,this.#v):e.placeholderData,void 0!==t&&(R="success",s=(0,h.pl)(n?.data,t,e),m=!0)}if(e.select&&void 0!==s&&!S)if(n&&s===a?.data&&e.select===this.#f)s=this.#y;else try{this.#f=e.select,s=e.select(s),s=(0,h.pl)(n?.data,s,e),this.#y=s,this.#o=null}catch(t){this.#o=t}this.#o&&(b=this.#o,s=this.#y,g=Date.now(),R="error");let O="fetching"===f.fetchStatus,w="pending"===R,T="error"===R,Q=w&&O,I=void 0!==s,C={status:R,fetchStatus:f.fetchStatus,isPending:w,isSuccess:"success"===R,isError:T,isInitialLoading:Q,isLoading:Q,data:s,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:O,isRefetching:O&&!w,isLoadingError:T&&!I,isPaused:"paused"===f.fetchStatus,isPlaceholderData:m,isRefetchError:T&&I,isStale:v(t,e),refetch:this.refetch,promise:this.#u,isEnabled:!1!==(0,h.nU)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=void 0!==C.data,s="error"===C.status&&!e,i=t=>{s?t.reject(C.error):e&&t.resolve(C.data)},n=()=>{i(this.#u=C.promise=(0,c.T)())},a=this.#u;switch(a.status){case"pending":t.queryHash===r.queryHash&&i(a);break;case"fulfilled":(s||C.data!==a.value)&&n();break;case"rejected":s&&C.error===a.reason||n()}}return C}updateResult(){let t=this.#l,e=this.createResult(this.#c,this.options);if(this.#d=this.#c.state,this.#p=this.options,void 0!==this.#d.data&&(this.#v=this.#c),(0,h.f8)(e,t))return;this.#l=e;let s=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!this.#R.size)return!0;let r=new Set(s??this.#R);return this.options.throwOnError&&r.add("error"),Object.keys(this.#l).some(e=>this.#l[e]!==t[e]&&r.has(e))};this.#E({listeners:s()})}#Q(){let t=this.#a.getQueryCache().build(this.#a,this.options);if(t===this.#c)return;let e=this.#c;this.#c=t,this.#h=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#O()}#E(t){a.jG.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#l)}),this.#a.getQueryCache().notify({query:this.#c,type:"observerResultsUpdated"})})}};function p(t,e){return!1!==(0,h.nU)(e.enabled,t)&&void 0===t.state.data&&("error"!==t.state.status||!1!==(0,h.nU)(e.retryOnMount,t))||void 0!==t.state.data&&f(t,e,e.refetchOnMount)}function f(t,e,s){if(!1!==(0,h.nU)(e.enabled,t)&&"static"!==(0,h.d2)(e.staleTime,t)){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&v(t,e)}return!1}function y(t,e,s,r){return(t!==e||!1===(0,h.nU)(r.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&v(t,s)}function v(t,e){return!1!==(0,h.nU)(e.enabled,t)&&t.isStaleByTime((0,h.d2)(e.staleTime,t))}var m=s(7620),b=s(68728);s(54568);var g=m.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),R=m.createContext(!1);R.Provider;var S=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function O(t,e){return function(t,e,s){let r,i=m.useContext(R),o=m.useContext(g),u=(0,b.jE)(s),c=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let l=u.getQueryCache().get(c.queryHash),d=!1!==t.subscribed;if(c._optimisticResults=i?"isRestoring":d?"optimistic":void 0,c.suspense){let t=t=>"static"===t?t:Math.max(t??1e3,1e3),e=c.staleTime;c.staleTime="function"==typeof e?(...s)=>t(e(...s)):t(e),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}r=l?.state.error&&"function"==typeof c.throwOnError?(0,h.GU)(c.throwOnError,[l.state.error,l]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||r)&&!o.isReset()&&(c.retryOnMount=!1),m.useEffect(()=>{o.clearReset()},[o]);let p=!u.getQueryCache().get(c.queryHash),[f]=m.useState(()=>new e(u,c)),y=f.getOptimisticResult(c),v=!i&&d;if(m.useSyncExternalStore(m.useCallback(t=>{let e=v?f.subscribe(a.jG.batchCalls(t)):h.lQ;return f.updateResult(),e},[f,v]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),m.useEffect(()=>{f.setOptions(c)},[c,f]),c?.suspense&&y.isPending)throw S(c,f,o);if((({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&void 0===t.data||(0,h.GU)(s,[t.error,r])))({result:y,errorResetBoundary:o,throwOnError:c.throwOnError,query:l,suspense:c.suspense}))throw y.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(c,y),c.experimental_prefetchInRender&&!n.H.isServer()&&y.isLoading&&y.isFetching&&!i){let t=p?S(c,f,o):l?.promise;t?.catch(h.lQ).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?y:f.trackResult(y)}(t,d,e)}},55898:(t,e,s)=>{s.d(e,{t:()=>i});var r=s(18517),i=new class extends r.Q{#U=!0;#i;#n;constructor(){super(),this.#n=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#i||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(t){this.#n=t,this.#i?.(),this.#i=t(this.setOnline.bind(this))}setOnline(t){this.#U!==t&&(this.#U=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#U}}},63391:(t,e,s)=>{s.d(e,{X:()=>u,k:()=>c});var r=s(91961),i=s(46676),n=s(85153),a=s(19773);function o(t,{pages:e,pageParams:s}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}var u=class extends a.k{#P;#q;#j;#k;#a;#D;#x;#M;constructor(t){super(),this.#M=!1,this.#x=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#a=t.client,this.#k=this.#a.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#q=l(this.options),this.state=t.state??this.#q,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#P}get promise(){return this.#D?.promise}setOptions(t){if(this.options={...this.#x,...t},t?._type&&(this.#P=t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=l(this.options);void 0!==t.data&&(this.setState(h(t.data,t.dataUpdatedAt)),this.#q=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#k.remove(this)}setData(t,e){let s=(0,r.pl)(this.state.data,t,this.options);return this.#A({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t){this.#A({type:"setState",state:t})}cancel(t){let e=this.#D?.promise;return this.#D?.cancel(t),e?e.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#q}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==(0,r.nU)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,r.d2)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,r.j3)(this.state.dataUpdatedAt,t))}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#D?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#D?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#k.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#D&&(this.#M||this.#L()?this.#D.cancel({revert:!0}):this.#D.cancelRetry()),this.scheduleGc()),this.#k.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#L(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#A({type:"invalidate"})}async fetch(t,e){var s;let i;if("idle"!==this.state.fetchStatus&&this.#D?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#D)return this.#D.continueRetry(),this.#D.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let a=new AbortController,u=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#M=!0,a.signal)})},c=()=>{let t,s=(0,r.ZM)(this.options,e),i=(u(t={client:this.#a,queryKey:this.queryKey,meta:this.meta}),t);return(this.#M=!1,this.options.persister)?this.options.persister(s,i,this):s(i)},h=(u(i={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:c}),i),l="infinite"===this.#P?(s=this.options.pages,{onFetch:(t,e)=>{let i=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],u=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},h=0,l=async()=>{let e=!1,l=(0,r.ZM)(t.options,t.fetchOptions),d=async(s,i,n)=>{let a;if(e)return Promise.reject(t.signal.reason);if(null==i&&s.pages.length)return Promise.resolve(s);let o=(a={client:t.client,queryKey:t.queryKey,pageParam:i,direction:n?"backward":"forward",meta:t.options.meta},(0,r.ox)(a,()=>t.signal,()=>e=!0),a),u=await l(o),{maxPages:c}=t.options,h=n?r.ZZ:r.y9;return{pages:h(s.pages,u,c),pageParams:h(s.pageParams,i,c)}};if(n&&a.length){let t="backward"===n,e={pages:a,pageParams:u},s=(t?function(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}:o)(i,e);c=await d(e,s,t)}else{let t=s??a.length;do{let t=0===h?u[0]??i.initialPageParam:o(i,c);if(h>0&&null==t)break;c=await d(c,t),h++}while(h<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e):t.fetchFn=l}}):this.options.behavior;l?.onFetch(h,this),this.#j=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#A({type:"fetch",meta:h.fetchOptions?.meta}),this.#D=(0,n.II)({initialPromise:e?.initialPromise,fn:h.fetchFn,onCancel:t=>{t instanceof n.cc&&t.revert&&this.setState({...this.#j,fetchStatus:"idle"}),a.abort()},onFail:(t,e)=>{this.#A({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#A({type:"pause"})},onContinue:()=>{this.#A({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{let t=await this.#D.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#k.config.onSuccess?.(t,this),this.#k.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof n.cc){if(t.silent)return this.#D.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#A({type:"error",error:t}),this.#k.config.onError?.(t,this),this.#k.config.onSettled?.(this.state.data,t,this),t}finally{this.scheduleGc()}}#A(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...c(e.data,this.options),fetchMeta:t.meta??null};case"success":let s={...e,...h(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#j=t.manual?s:void 0,s;case"error":let r=t.error;return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),i.jG.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#k.notify({query:this,type:"updated",action:t})})}};function c(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.v_)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function h(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function l(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}},68728:(t,e,s)=>{s.d(e,{Ht:()=>o,jE:()=>a});var r=s(7620),i=s(54568),n=r.createContext(void 0),a=t=>{let e=r.useContext(n);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},o=({client:t,children:e})=>(r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(n.Provider,{value:t,children:e}))},85153:(t,e,s)=>{s.d(e,{II:()=>l,cc:()=>h,v_:()=>c});var r=s(45467),i=s(55898),n=s(7283),a=s(43332),o=s(91961);function u(t){return Math.min(1e3*2**t,3e4)}function c(t){return(t??"online")!=="online"||i.t.isOnline()}var h=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function l(t){let e,s=!1,l=0,d=(0,n.T)(),p=()=>r.m.isFocused()&&("always"===t.networkMode||i.t.isOnline())&&t.canRun(),f=()=>c(t.networkMode)&&t.canRun(),y=t=>{"pending"===d.status&&(e?.(),d.resolve(t))},v=t=>{"pending"===d.status&&(e?.(),d.reject(t))},m=()=>new Promise(s=>{e=t=>{("pending"!==d.status||p())&&s(t)},t.onPause?.()}).then(()=>{e=void 0,"pending"===d.status&&t.onContinue?.()}),b=()=>{let e;if("pending"!==d.status)return;let r=0===l?t.initialPromise:void 0;try{e=r??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(y).catch(e=>{if("pending"!==d.status)return;let r=t.retry??3*!a.H.isServer(),i=t.retryDelay??u,n="function"==typeof i?i(l,e):i,c=!0===r||"number"==typeof r&&l<r||"function"==typeof r&&r(l,e);s||!c?v(e):(l++,t.onFail?.(l,e),(0,o.yy)(n).then(()=>p()?void 0:m()).then(()=>{s?v(e):b()}))})};return{promise:d,status:()=>d.status,cancel:e=>{if("pending"===d.status){let s=new h(e);v(s),t.onCancel?.(s)}},continue:()=>(e?.(),d),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:f,start:()=>(f()?b():m().then(b),d)}}},91961:(t,e,s)=>{s.d(e,{Cp:()=>y,EN:()=>f,F$:()=>p,GU:()=>C,MK:()=>l,S$:()=>i,ZM:()=>I,ZZ:()=>T,Zw:()=>a,d2:()=>c,f8:()=>m,gn:()=>o,hT:()=>Q,j3:()=>u,lQ:()=>n,nJ:()=>d,nU:()=>h,ox:()=>F,pl:()=>O,y9:()=>w,yy:()=>S});var r=s(17950),i="u"<typeof window||"Deno"in globalThis;function n(){}function a(t,e){return"function"==typeof t?t(e):t}function o(t){return"number"==typeof t&&t>=0&&t!==1/0}function u(t,e){return Math.max(t+(e||0)-Date.now(),0)}function c(t,e){return"function"==typeof t?t(e):t}function h(t,e){return"function"==typeof t?t(e):t}function l(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==p(a,e.options))return!1}else if(!y(e.queryKey,a))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&(!i||i===e.state.fetchStatus)&&(!n||!!n(e))}function d(t,e){let{exact:s,status:r,predicate:i,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(s){if(f(e.options.mutationKey)!==f(n))return!1}else if(!y(e.options.mutationKey,n))return!1}return(!r||e.state.status===r)&&(!i||!!i(e))}function p(t,e){return(e?.queryKeyHashFn||f)(t)}function f(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function y(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).every(s=>y(t[s],e[s]))}var v=Object.prototype.hasOwnProperty;function m(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function b(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!R(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!R(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function R(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return new Promise(e=>{r.zs.setTimeout(e,t)})}function O(t,e,s){return"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?function t(e,s,r=0){if(e===s)return e;if(r>500)return s;let i=b(e)&&b(s);if(!i&&!(g(e)&&g(s)))return s;let n=(i?e:Object.keys(e)).length,a=i?s:Object.keys(s),o=a.length,u=i?Array(o):{},c=0;for(let h=0;h<o;h++){let o=i?h:a[h],l=e[o],d=s[o];if(l===d){u[o]=l,(i?h<n:v.call(e,o))&&c++;continue}if(null===l||null===d||"object"!=typeof l||"object"!=typeof d){u[o]=d;continue}let p=t(l,d,r+1);u[o]=p,p===l&&c++}return n===o&&c===n?e:u}(t,e):e}function w(t,e,s=0){let r=[...t,e];return s&&r.length>s?r.slice(1):r}function T(t,e,s=0){let r=[e,...t];return s&&r.length>s?r.slice(0,-1):r}var Q=Symbol();function I(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==Q?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}function C(t,e){return"function"==typeof t?t(...e):!!t}function F(t,e,s){let r,i=!1;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(r??=e(),i||(i=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),t}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{7283:(t,e,s)=>{s.d(e,{T:()=>r});function r(){let t,e,s=new Promise((s,r)=>{t=s,e=r});function r(t){Object.assign(s,t),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=e=>{r({status:"fulfilled",value:e}),t(e)},s.reject=t=>{r({status:"rejected",reason:t}),e(t)},s}},17950:(t,e,s)=>{s.d(e,{Zq:()=>n,zs:()=>i});var r={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},i=new class{#t=r;#e=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}};function n(t){setTimeout(t,0)}},18517:(t,e,s)=>{s.d(e,{Q:()=>r});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},19773:(t,e,s)=>{s.d(e,{k:()=>a});var r=s(17950),i=s(43332),n=s(91961),a=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.gn)(this.gcTime)&&(this.#s=r.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(i.H.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#s&&(r.zs.clearTimeout(this.#s),this.#s=void 0)}}},43332:(t,e,s)=>{let r;s.d(e,{H:()=>n});var i=s(91961),n=(r=()=>i.S$,{isServer:()=>r(),setIsServer(t){r=t}})},45467:(t,e,s)=>{s.d(e,{m:()=>i});var r=s(18517),i=new class extends r.Q{#r;#i;#n;constructor(){super(),this.#n=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#i||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(t){this.#n=t,this.#i?.(),this.#i=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#r!==t&&(this.#r=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}}},46676:(t,e,s)=>{let r,i,n,a,o,u;s.d(e,{jG:()=>h});var c=s(17950).Zq,h=(r=[],i=0,n=t=>{t()},a=t=>{t()},o=c,{batch:t=>{let e;i++;try{e=t()}finally{let t;--i||(t=r,r=[],t.length&&o(()=>{a(()=>{t.forEach(t=>{n(t)})})}))}return e},batchCalls:t=>(...e)=>{u(()=>{t(...e)})},schedule:u=t=>{i?r.push(t):o(()=>{n(t)})},setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{a=t},setScheduler:t=>{o=t}})},48820:(t,e,s)=>{let r;s.d(e,{I:()=>O});var i=s(45467),n=s(43332),a=s(46676),o=s(63391),u=s(18517),c=s(7283),h=s(91961),l=s(17950),d=class extends u.Q{constructor(t,e){super(),this.options=e,this.#a=t,this.#o=null,this.#u=(0,c.T)(),this.bindMethods(),this.setOptions(e)}#a;#c=void 0;#h=void 0;#l=void 0;#d;#p;#u;#o;#f;#y;#v;#m;#b;#g;#R=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#c.addObserver(this),p(this.#c,this.options)?this.#S():this.updateResult(),this.#O())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#c,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#c,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#T(),this.#c.removeObserver(this)}setOptions(t){let e=this.options,s=this.#c;if(this.options=this.#a.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,h.nU)(this.options.enabled,this.#c))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Q(),this.#c.setOptions(this.options),e._defaulted&&!(0,h.f8)(this.options,e)&&this.#a.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#c,observer:this});let r=this.hasListeners();r&&y(this.#c,s,this.options,e)&&this.#S(),this.updateResult(),r&&(this.#c!==s||(0,h.nU)(this.options.enabled,this.#c)!==(0,h.nU)(e.enabled,this.#c)||(0,h.d2)(this.options.staleTime,this.#c)!==(0,h.d2)(e.staleTime,this.#c))&&this.#I();let i=this.#C();r&&(this.#c!==s||(0,h.nU)(this.options.enabled,this.#c)!==(0,h.nU)(e.enabled,this.#c)||i!==this.#g)&&this.#F(i)}getOptimisticResult(t){var e,s;let r=this.#a.getQueryCache().build(this.#a,t),i=this.createResult(r,t);return e=this,s=i,(0,h.f8)(e.getCurrentResult(),s)||(this.#l=i,this.#p=this.options,this.#d=this.#c.state),i}getCurrentResult(){return this.#l}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),e?.(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#u.status||this.#u.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,s))})}trackProp(t){this.#R.add(t)}getCurrentQuery(){return this.#c}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#a.defaultQueryOptions(t),s=this.#a.getQueryCache().build(this.#a,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#S({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#S(t){this.#Q();let e=this.#c.fetch(this.options,t);return t?.throwOnError||(e=e.catch(h.lQ)),e}#I(){this.#w();let t=(0,h.d2)(this.options.staleTime,this.#c);if(n.H.isServer()||this.#l.isStale||!(0,h.gn)(t))return;let e=(0,h.j3)(this.#l.dataUpdatedAt,t);this.#m=l.zs.setTimeout(()=>{this.#l.isStale||this.updateResult()},e+1)}#C(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#c):this.options.refetchInterval)??!1}#F(t){this.#T(),this.#g=t,!n.H.isServer()&&!1!==(0,h.nU)(this.options.enabled,this.#c)&&(0,h.gn)(this.#g)&&0!==this.#g&&(this.#b=l.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||i.m.isFocused())&&this.#S()},this.#g))}#O(){this.#I(),this.#F(this.#C())}#w(){void 0!==this.#m&&(l.zs.clearTimeout(this.#m),this.#m=void 0)}#T(){void 0!==this.#b&&(l.zs.clearInterval(this.#b),this.#b=void 0)}createResult(t,e){let s,r=this.#c,i=this.options,n=this.#l,a=this.#d,u=this.#p,l=t!==r?t.state:this.#h,{state:d}=t,f={...d},m=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&p(t,e),a=s&&y(t,r,e,i);(n||a)&&(f={...f,...(0,o.k)(d.data,t.options)}),"isRestoring"===e._optimisticResults&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:R}=f;s=f.data;let S=!1;if(void 0!==e.placeholderData&&void 0===s&&"pending"===R){let t;n?.isPlaceholderData&&e.placeholderData===u?.placeholderData?(t=n.data,S=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#v?.state.data,this.#v):e.placeholderData,void 0!==t&&(R="success",s=(0,h.pl)(n?.data,t,e),m=!0)}if(e.select&&void 0!==s&&!S)if(n&&s===a?.data&&e.select===this.#f)s=this.#y;else try{this.#f=e.select,s=e.select(s),s=(0,h.pl)(n?.data,s,e),this.#y=s,this.#o=null}catch(t){this.#o=t}this.#o&&(b=this.#o,s=this.#y,g=Date.now(),R="error");let O="fetching"===f.fetchStatus,w="pending"===R,T="error"===R,Q=w&&O,I=void 0!==s,C={status:R,fetchStatus:f.fetchStatus,isPending:w,isSuccess:"success"===R,isError:T,isInitialLoading:Q,isLoading:Q,data:s,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:O,isRefetching:O&&!w,isLoadingError:T&&!I,isPaused:"paused"===f.fetchStatus,isPlaceholderData:m,isRefetchError:T&&I,isStale:v(t,e),refetch:this.refetch,promise:this.#u,isEnabled:!1!==(0,h.nU)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=void 0!==C.data,s="error"===C.status&&!e,i=t=>{s?t.reject(C.error):e&&t.resolve(C.data)},n=()=>{i(this.#u=C.promise=(0,c.T)())},a=this.#u;switch(a.status){case"pending":t.queryHash===r.queryHash&&i(a);break;case"fulfilled":(s||C.data!==a.value)&&n();break;case"rejected":s&&C.error===a.reason||n()}}return C}updateResult(){let t=this.#l,e=this.createResult(this.#c,this.options);if(this.#d=this.#c.state,this.#p=this.options,void 0!==this.#d.data&&(this.#v=this.#c),(0,h.f8)(e,t))return;this.#l=e;let s=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!this.#R.size)return!0;let r=new Set(s??this.#R);return this.options.throwOnError&&r.add("error"),Object.keys(this.#l).some(e=>this.#l[e]!==t[e]&&r.has(e))};this.#E({listeners:s()})}#Q(){let t=this.#a.getQueryCache().build(this.#a,this.options);if(t===this.#c)return;let e=this.#c;this.#c=t,this.#h=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#O()}#E(t){a.jG.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#l)}),this.#a.getQueryCache().notify({query:this.#c,type:"observerResultsUpdated"})})}};function p(t,e){return!1!==(0,h.nU)(e.enabled,t)&&void 0===t.state.data&&("error"!==t.state.status||!1!==(0,h.nU)(e.retryOnMount,t))||void 0!==t.state.data&&f(t,e,e.refetchOnMount)}function f(t,e,s){if(!1!==(0,h.nU)(e.enabled,t)&&"static"!==(0,h.d2)(e.staleTime,t)){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&v(t,e)}return!1}function y(t,e,s,r){return(t!==e||!1===(0,h.nU)(r.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&v(t,s)}function v(t,e){return!1!==(0,h.nU)(e.enabled,t)&&t.isStaleByTime((0,h.d2)(e.staleTime,t))}var m=s(7620),b=s(68728);s(54568);var g=m.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),R=m.createContext(!1);R.Provider;var S=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function O(t,e){return function(t,e,s){let r,i=m.useContext(R),o=m.useContext(g),u=(0,b.jE)(s),c=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let l=u.getQueryCache().get(c.queryHash),d=!1!==t.subscribed;if(c._optimisticResults=i?"isRestoring":d?"optimistic":void 0,c.suspense){let t=t=>"static"===t?t:Math.max(t??1e3,1e3),e=c.staleTime;c.staleTime="function"==typeof e?(...s)=>t(e(...s)):t(e),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}r=l?.state.error&&"function"==typeof c.throwOnError?(0,h.GU)(c.throwOnError,[l.state.error,l]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||r)&&!o.isReset()&&(c.retryOnMount=!1),m.useEffect(()=>{o.clearReset()},[o]);let p=!u.getQueryCache().get(c.queryHash),[f]=m.useState(()=>new e(u,c)),y=f.getOptimisticResult(c),v=!i&&d;if(m.useSyncExternalStore(m.useCallback(t=>{let e=v?f.subscribe(a.jG.batchCalls(t)):h.lQ;return f.updateResult(),e},[f,v]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),m.useEffect(()=>{f.setOptions(c)},[c,f]),c?.suspense&&y.isPending)throw S(c,f,o);if((({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&void 0===t.data||(0,h.GU)(s,[t.error,r])))({result:y,errorResetBoundary:o,throwOnError:c.throwOnError,query:l,suspense:c.suspense}))throw y.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(c,y),c.experimental_prefetchInRender&&!n.H.isServer()&&y.isLoading&&y.isFetching&&!i){let t=p?S(c,f,o):l?.promise;t?.catch(h.lQ).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?y:f.trackResult(y)}(t,d,e)}},55898:(t,e,s)=>{s.d(e,{t:()=>i});var r=s(18517),i=new class extends r.Q{#U=!0;#i;#n;constructor(){super(),this.#n=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#i||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(t){this.#n=t,this.#i?.(),this.#i=t(this.setOnline.bind(this))}setOnline(t){this.#U!==t&&(this.#U=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#U}}},63391:(t,e,s)=>{s.d(e,{X:()=>u,k:()=>c});var r=s(91961),i=s(46676),n=s(85153),a=s(19773);function o(t,{pages:e,pageParams:s}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}var u=class extends a.k{#P;#q;#j;#k;#a;#D;#x;#M;constructor(t){super(),this.#M=!1,this.#x=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#a=t.client,this.#k=this.#a.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#q=l(this.options),this.state=t.state??this.#q,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#P}get promise(){return this.#D?.promise}setOptions(t){if(this.options={...this.#x,...t},t?._type&&(this.#P=t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=l(this.options);void 0!==t.data&&(this.setState(h(t.data,t.dataUpdatedAt)),this.#q=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#k.remove(this)}setData(t,e){let s=(0,r.pl)(this.state.data,t,this.options);return this.#A({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t){this.#A({type:"setState",state:t})}cancel(t){let e=this.#D?.promise;return this.#D?.cancel(t),e?e.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#q}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==(0,r.nU)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,r.d2)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,r.j3)(this.state.dataUpdatedAt,t))}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#D?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#D?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#k.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#D&&(this.#M||this.#L()?this.#D.cancel({revert:!0}):this.#D.cancelRetry()),this.scheduleGc()),this.#k.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#L(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#A({type:"invalidate"})}async fetch(t,e){var s;let i;if("idle"!==this.state.fetchStatus&&this.#D?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#D)return this.#D.continueRetry(),this.#D.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let a=new AbortController,u=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#M=!0,a.signal)})},c=()=>{let t,s=(0,r.ZM)(this.options,e),i=(u(t={client:this.#a,queryKey:this.queryKey,meta:this.meta}),t);return(this.#M=!1,this.options.persister)?this.options.persister(s,i,this):s(i)},h=(u(i={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:c}),i),l="infinite"===this.#P?(s=this.options.pages,{onFetch:(t,e)=>{let i=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],u=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},h=0,l=async()=>{let e=!1,l=(0,r.ZM)(t.options,t.fetchOptions),d=async(s,i,n)=>{let a;if(e)return Promise.reject(t.signal.reason);if(null==i&&s.pages.length)return Promise.resolve(s);let o=(a={client:t.client,queryKey:t.queryKey,pageParam:i,direction:n?"backward":"forward",meta:t.options.meta},(0,r.ox)(a,()=>t.signal,()=>e=!0),a),u=await l(o),{maxPages:c}=t.options,h=n?r.ZZ:r.y9;return{pages:h(s.pages,u,c),pageParams:h(s.pageParams,i,c)}};if(n&&a.length){let t="backward"===n,e={pages:a,pageParams:u},s=(t?function(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}:o)(i,e);c=await d(e,s,t)}else{let t=s??a.length;do{let t=0===h?u[0]??i.initialPageParam:o(i,c);if(h>0&&null==t)break;c=await d(c,t),h++}while(h<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e):t.fetchFn=l}}):this.options.behavior;l?.onFetch(h,this),this.#j=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#A({type:"fetch",meta:h.fetchOptions?.meta}),this.#D=(0,n.II)({initialPromise:e?.initialPromise,fn:h.fetchFn,onCancel:t=>{t instanceof n.cc&&t.revert&&this.setState({...this.#j,fetchStatus:"idle"}),a.abort()},onFail:(t,e)=>{this.#A({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#A({type:"pause"})},onContinue:()=>{this.#A({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{let t=await this.#D.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#k.config.onSuccess?.(t,this),this.#k.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof n.cc){if(t.silent)return this.#D.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#A({type:"error",error:t}),this.#k.config.onError?.(t,this),this.#k.config.onSettled?.(this.state.data,t,this),t}finally{this.scheduleGc()}}#A(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...c(e.data,this.options),fetchMeta:t.meta??null};case"success":let s={...e,...h(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#j=t.manual?s:void 0,s;case"error":let r=t.error;return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),i.jG.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#k.notify({query:this,type:"updated",action:t})})}};function c(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.v_)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function h(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function l(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}},68728:(t,e,s)=>{s.d(e,{Ht:()=>o,jE:()=>a});var r=s(7620),i=s(54568),n=r.createContext(void 0),a=t=>{let e=r.useContext(n);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},o=({client:t,children:e})=>(r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(n.Provider,{value:t,children:e}))},85153:(t,e,s)=>{s.d(e,{II:()=>l,cc:()=>h,v_:()=>c});var r=s(45467),i=s(55898),n=s(7283),a=s(43332),o=s(91961);function u(t){return Math.min(1e3*2**t,3e4)}function c(t){return(t??"online")!=="online"||i.t.isOnline()}var h=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function l(t){let e,s=!1,l=0,d=(0,n.T)(),p=()=>r.m.isFocused()&&("always"===t.networkMode||i.t.isOnline())&&t.canRun(),f=()=>c(t.networkMode)&&t.canRun(),y=t=>{"pending"===d.status&&(e?.(),d.resolve(t))},v=t=>{"pending"===d.status&&(e?.(),d.reject(t))},m=()=>new Promise(s=>{e=t=>{("pending"!==d.status||p())&&s(t)},t.onPause?.()}).then(()=>{e=void 0,"pending"===d.status&&t.onContinue?.()}),b=()=>{let e;if("pending"!==d.status)return;let r=0===l?t.initialPromise:void 0;try{e=r??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(y).catch(e=>{if("pending"!==d.status)return;let r=t.retry??3*!a.H.isServer(),i=t.retryDelay??u,n="function"==typeof i?i(l,e):i,c=!0===r||"number"==typeof r&&l<r||"function"==typeof r&&r(l,e);s||!c?v(e):(l++,t.onFail?.(l,e),(0,o.yy)(n).then(()=>p()?void 0:m()).then(()=>{s?v(e):b()}))})};return{promise:d,status:()=>d.status,cancel:e=>{if("pending"===d.status){let s=new h(e);v(s),t.onCancel?.(s)}},continue:()=>(e?.(),d),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:f,start:()=>(f()?b():m().then(b),d)}}},91961:(t,e,s)=>{s.d(e,{Cp:()=>y,EN:()=>f,F$:()=>p,GU:()=>C,MK:()=>l,S$:()=>i,ZM:()=>I,ZZ:()=>T,Zw:()=>a,d2:()=>c,f8:()=>m,gn:()=>o,hT:()=>Q,j3:()=>u,lQ:()=>n,nJ:()=>d,nU:()=>h,ox:()=>F,pl:()=>O,y9:()=>w,yy:()=>S});var r=s(17950),i="u"<typeof window||"Deno"in globalThis;function n(){}function a(t,e){return"function"==typeof t?t(e):t}function o(t){return"number"==typeof t&&t>=0&&1/0!==t}function u(t,e){return Math.max(t+(e||0)-Date.now(),0)}function c(t,e){return"function"==typeof t?t(e):t}function h(t,e){return"function"==typeof t?t(e):t}function l(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==p(a,e.options))return!1}else if(!y(e.queryKey,a))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&(!i||i===e.state.fetchStatus)&&(!n||!!n(e))}function d(t,e){let{exact:s,status:r,predicate:i,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(s){if(f(e.options.mutationKey)!==f(n))return!1}else if(!y(e.options.mutationKey,n))return!1}return(!r||e.state.status===r)&&(!i||!!i(e))}function p(t,e){return(e?.queryKeyHashFn||f)(t)}function f(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function y(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).every(s=>y(t[s],e[s]))}var v=Object.prototype.hasOwnProperty;function m(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function b(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!R(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!R(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function R(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return new Promise(e=>{r.zs.setTimeout(e,t)})}function O(t,e,s){return"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?function t(e,s,r=0){if(e===s)return e;if(r>500)return s;let i=b(e)&&b(s);if(!i&&!(g(e)&&g(s)))return s;let n=(i?e:Object.keys(e)).length,a=i?s:Object.keys(s),o=a.length,u=i?Array(o):{},c=0;for(let h=0;h<o;h++){let o=i?h:a[h],l=e[o],d=s[o];if(l===d){u[o]=l,(i?h<n:v.call(e,o))&&c++;continue}if(null===l||null===d||"object"!=typeof l||"object"!=typeof d){u[o]=d;continue}let p=t(l,d,r+1);u[o]=p,p===l&&c++}return n===o&&c===n?e:u}(t,e):e}function w(t,e,s=0){let r=[...t,e];return s&&r.length>s?r.slice(1):r}function T(t,e,s=0){let r=[e,...t];return s&&r.length>s?r.slice(0,-1):r}var Q=Symbol();function I(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==Q?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}function C(t,e){return"function"==typeof t?t(...e):!!t}function F(t,e,s){let r,i=!1;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(r??=e(),i||(i=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),t}}}]);
|