import{g as k}from"./react-CXoDaX02.js";var w={exports:{}},c;function m(){if(c)return w.exports;c=1,w.exports=function(n){return p(d(n),n)},w.exports.array=p;function p(n,r){var t=n.length,a=new Array(t),o={},u=t,E=y(r),i=x(n);for(r.forEach(function(e){if(!i.has(e[0])||!i.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});u--;)o[u]||g(n[u],u,new Set);return a;function g(e,s,f){if(f.has(e)){var v;try{v=", node was:"+JSON.stringify(e)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!i.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[s]){o[s]=!0;var h=E.get(e)||new Set;if(h=Array.from(h),s=h.length){f.add(e);do{var l=h[--s];g(l,i.get(l),f)}while(s);f.delete(e)}a[--t]=e}}}function d(n){for(var r=new Set,t=0,a=n.length;t<a;t++){var o=n[t];r.add(o[0]),r.add(o[1])}return Array.from(r)}function y(n){for(var r=new Map,t=0,a=n.length;t<a;t++){var o=n[t];r.has(o[0])||r.set(o[0],new Set),r.has(o[1])||r.set(o[1],new Set),r.get(o[0]).add(o[1])}return r}function x(n){for(var r=new Map,t=0,a=n.length;t<a;t++)r.set(n[t],t);return r}return w.exports}var S=m();const A=k(S);export{A as t};
