import{a as o}from"./chunk-AQ6EADP3.mjs";var $a=typeof global=="object"&&global&&global.Object===Object&&global,$r=$a;var Ya=typeof self=="object"&&self&&self.Object===Object&&self,Va=$r||Ya||Function("return this")(),b=Va;var Za=b.Symbol,v=Za;var Kt=Object.prototype,Ja=Kt.hasOwnProperty,Xa=Kt.toString,Nr=v?v.toStringTag:void 0;function Qa(r){var t=Ja.call(r,Nr),e=r[Nr];try{r[Nr]=void 0;var a=!0}catch{}var f=Xa.call(r);return a&&(t?r[Nr]=e:delete r[Nr]),f}o(Qa,"getRawTag");var Wt=Qa;var ka=Object.prototype,rf=ka.toString;function tf(r){return rf.call(r)}o(tf,"objectToString");var Ht=tf;var ef="[object Null]",of="[object Undefined]",zt=v?v.toStringTag:void 0;function af(r){return r==null?r===void 0?of:ef:zt&&zt in Object(r)?Wt(r):Ht(r)}o(af,"baseGetTag");var C=af;function ff(r){return r!=null&&typeof r=="object"}o(ff,"isObjectLike");var _=ff;var nf="[object Symbol]";function sf(r){return typeof r=="symbol"||_(r)&&C(r)==nf}o(sf,"isSymbol");var M=sf;function pf(r,t){for(var e=-1,a=r==null?0:r.length,f=Array(a);++e0){if(++t>=Xf)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}o(rn,"shortOut");var pe=rn;function tn(r){return function(){return r}}o(tn,"constant");var V=tn;var en=(function(){try{var r=j(Object,"defineProperty");return r({},"",{}),r}catch{}})(),hr=en;var on=hr?function(r,t){return hr(r,"toString",{configurable:!0,enumerable:!1,value:V(t),writable:!0})}:E,ue=on;var an=pe(ue),Jr=an;function fn(r,t){for(var e=-1,a=r==null?0:r.length;++e-1}o(mn,"arrayIncludes");var ce=mn;var ln=9007199254740991,dn=/^(?:0|[1-9]\d*)$/;function cn(r,t){var e=typeof r;return t=t??ln,!!t&&(e=="number"||e!="symbol"&&dn.test(r))&&r>-1&&r%1==0&&r-1&&r%1==0&&r<=An}o(Tn,"isLength");var gr=Tn;function wn(r){return r!=null&&gr(r.length)&&!U(r)}o(wn,"isArrayLike");var O=wn;function Sn(r,t,e){if(!g(e))return!1;var a=typeof t;return(a=="number"?O(e)&&Z(t,e.length):a=="string"&&t in e)?R(e[t],r):!1}o(Sn,"isIterateeCall");var q=Sn;function Pn(r){return Q(function(t,e){var a=-1,f=e.length,n=f>1?e[f-1]:void 0,i=f>2?e[2]:void 0;for(n=r.length>3&&typeof n=="function"?(f--,n):void 0,i&&q(e[0],e[1],i)&&(n=f<3?void 0:n,f=1),t=Object(t);++a-1}o(Ji,"listCacheHas");var Be=Ji;function Xi(r,t){var e=this.__data__,a=er(e,r);return a<0?(++this.size,e.push([r,t])):e[a][1]=t,this}o(Xi,"listCacheSet");var De=Xi;function vr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t0&&e(s)?t>1?Xe(s,t-1,e,a,f):Ar(f,s):a||(f[f.length]=s)}return f}o(Xe,"baseFlatten");var Tr=Xe;function _s(r){var t=r==null?0:r.length;return t?Tr(r,1):[]}o(_s,"flatten");var Mt=_s;function vs(r){return Jr(kr(r,void 0,Mt),r+"")}o(vs,"flatRest");var Qe=vs;var Os=tt(Object.getPrototypeOf,Object),wr=Os;var As="[object Object]",Ts=Function.prototype,ws=Object.prototype,ke=Ts.toString,Ss=ws.hasOwnProperty,Ps=ke.call(Object);function Cs(r){if(!_(r)||C(r)!=As)return!1;var t=wr(r);if(t===null)return!0;var e=Ss.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&ke.call(e)==Ps}o(Cs,"isPlainObject");var ro=Cs;var Is="\\ud800-\\udfff",Es="\\u0300-\\u036f",js="\\ufe20-\\ufe2f",Ls="\\u20d0-\\u20ff",Ms=Es+js+Ls,Fs="\\ufe0e\\ufe0f",Rs="\\u200d",Ns=RegExp("["+Rs+Is+Ms+Fs+"]");function Bs(r){return Ns.test(r)}o(Bs,"hasUnicode");var to=Bs;function Ds(r,t,e,a){var f=-1,n=r==null?0:r.length;for(a&&n&&(e=r[++f]);++fs))return!1;var u=n.get(r),m=n.get(t);if(u&&m)return u==t&&m==r;var d=-1,c=!0,w=e&Du?new xt:void 0;for(n.set(r,t),n.set(t,r);++d2?t[2]:void 0;for(f&&q(t[0],t[1],f)&&(a=1);++e-1?f[n?t[i]:i]:void 0}}o(Vm,"createFind");var ca=Vm;var Zm=Math.max;function Jm(r,t,e){var a=r==null?0:r.length;if(!a)return-1;var f=e==null?0:re(e);return f<0&&(f=Zm(a+f,0)),Qr(r,S(t,3),f)}o(Jm,"findIndex");var xa=Jm;var Xm=ca(xa),Qm=Xm;function km(r,t){var e=-1,a=O(r)?Array(r.length):[];return pr(r,function(f,n,i){a[++e]=t(f,n,i)}),a}o(km,"baseMap");var St=km;function rl(r,t){var e=l(r)?G:St;return e(r,S(t,3))}o(rl,"map");var tl=rl;function el(r,t){return r==null?r:jr(r,Mr(t),L)}o(el,"forIn");var ol=el;function al(r,t){return r&&Lr(r,Mr(t))}o(al,"forOwn");var fl=al;function nl(r,t){return r>t}o(nl,"baseGt");var ha=nl;var il=Object.prototype,sl=il.hasOwnProperty;function pl(r,t){return r!=null&&sl.call(r,t)}o(pl,"baseHas");var ga=pl;function ul(r,t){return r!=null&&Ot(r,t,ga)}o(ul,"has");var ml=ul;var ll="[object String]";function dl(r){return typeof r=="string"||!l(r)&&_(r)&&C(r)==ll}o(dl,"isString");var ba=dl;function cl(r,t){return G(t,function(e){return r[e]})}o(cl,"baseValues");var ya=cl;function xl(r){return r==null?[]:ya(r,y(r))}o(xl,"values");var Kr=xl;var hl="[object Map]",gl="[object Set]",bl=Object.prototype,yl=bl.hasOwnProperty;function _l(r){if(r==null)return!0;if(O(r)&&(l(r)||typeof r=="string"||typeof r.splice=="function"||B(r)||tr(r)||N(r)))return!r.length;var t=F(r);if(t==hl||t==gl)return!r.size;if(k(r))return!br(r).length;for(var e in r)if(yl.call(r,e))return!1;return!0}o(_l,"isEmpty");var Pt=_l;function vl(r){return r===void 0}o(vl,"isUndefined");var ur=vl;function Ol(r,t){return rt||n&&i&&p&&!s&&!u||a&&i&&p||!e&&p||!f)return 1;if(!a&&!n&&!u&&r=s)return p;var u=e[a];return p*(u=="desc"?-1:1)}}return r.index-t.index}o(Dl,"compareMultiple");var Ta=Dl;function Gl(r,t,e){t.length?t=G(t,function(n){return l(n)?function(i){return ir(i,n.length===1?n[0]:n)}:n}):t=[E];var a=-1;t=G(t,rr(S));var f=St(r,function(n,i,s){var p=G(t,function(u){return u(n)});return{criteria:p,index:++a,value:n}});return Oa(f,function(n,i){return Ta(n,i,e)})}o(Gl,"baseOrderBy");var wa=Gl;var Ul=Tt("length"),Sa=Ul;var Ca="\\ud800-\\udfff",Kl="\\u0300-\\u036f",Wl="\\ufe20-\\ufe2f",Hl="\\u20d0-\\u20ff",zl=Kl+Wl+Hl,ql="\\ufe0e\\ufe0f",$l="["+Ca+"]",Rt="["+zl+"]",Nt="\\ud83c[\\udffb-\\udfff]",Yl="(?:"+Rt+"|"+Nt+")",Ia="[^"+Ca+"]",Ea="(?:\\ud83c[\\udde6-\\uddff]){2}",ja="[\\ud800-\\udbff][\\udc00-\\udfff]",Vl="\\u200d",La=Yl+"?",Ma="["+ql+"]?",Zl="(?:"+Vl+"(?:"+[Ia,Ea,ja].join("|")+")"+Ma+La+")*",Jl=Ma+La+Zl,Xl="(?:"+[Ia+Rt+"?",Rt,Ea,ja,$l].join("|")+")",Pa=RegExp(Nt+"(?="+Nt+")|"+Xl+Jl,"g");function Ql(r){for(var t=Pa.lastIndex=0;Pa.test(r);)++t;return t}o(Ql,"unicodeSize");var Fa=Ql;function kl(r){return to(r)?Fa(r):Sa(r)}o(kl,"stringSize");var Ra=kl;function rd(r,t){return va(r,t,function(e,a){return At(r,a)})}o(rd,"basePick");var Na=rd;var td=Qe(function(r,t){return r==null?{}:Na(r,t)}),ed=td;var od=Math.ceil,ad=Math.max;function fd(r,t,e,a){for(var f=-1,n=ad(od((t-r)/(e||1)),0),i=Array(n);n--;)i[a?n:++f]=r,r+=e;return i}o(fd,"baseRange");var Ba=fd;function nd(r){return function(t,e,a){return a&&typeof a!="number"&&q(t,e,a)&&(e=a=void 0),t=xr(t),e===void 0?(e=t,t=0):e=xr(e),a=a===void 0?t1&&q(r,t[0],t[1])?t=[]:e>2&&q(t[0],t[1],t[2])&&(t=[t[0]]),wa(r,Tr(t,1),[])}),hd=xd;var gd=1/0,bd=sr&&1/Er(new sr([,-0]))[1]==gd?function(r){return new sr(r)}:se,Ua=bd;var yd=200;function _d(r,t,e){var a=-1,f=ce,n=r.length,i=!0,s=[],p=s;if(e)i=!1,f=la;else if(n>=yd){var u=t?null:Ua(r);if(u)return Er(u);i=!1,f=ht,p=new xt}else p=t?[]:s;r:for(;++a1?f.setNode(n,e):f.setNode(n)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=cr,this._children[t]={},this._children[cr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=o(a=>this.removeEdge(this._edgeObjs[a]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],D(this.children(t),a=>{this.setParent(a)}),delete this._children[t]),D(y(this._in[t]),e),delete this._in[t],delete this._preds[t],D(y(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ur(e))e=cr;else{e+="";for(var a=e;!ur(a);a=this.parent(a))if(a===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==cr)return e}}children(t){if(ur(t)&&(t=cr),this._isCompound){var e=this._children[t];if(e)return y(e)}else{if(t===cr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return y(e)}successors(t){var e=this._sucs[t];if(e)return y(e)}neighbors(t){var e=this.predecessors(t);if(e)return Dt(e,this.successors(t))}isLeaf(t){var e;return this.isDirected()?e=this.successors(t):e=this.neighbors(t),e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var a=this;D(this._nodes,function(i,s){t(s)&&e.setNode(s,i)}),D(this._edgeObjs,function(i){e.hasNode(i.v)&&e.hasNode(i.w)&&e.setEdge(i,a.edge(i))});var f={};function n(i){var s=a.parent(i);return s===void 0||e.hasNode(s)?(f[i]=s,s):s in f?f[s]:n(s)}return o(n,"findParent"),this._isCompound&&D(e.nodes(),function(i){e.setParent(i,n(i))}),e}setDefaultEdgeLabel(t){return U(t)||(t=V(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Kr(this._edgeObjs)}setPath(t,e){var a=this,f=arguments;return Bt(t,function(n,i){return f.length>1?a.setEdge(n,i,e):a.setEdge(n,i),i}),this}setEdge(){var t,e,a,f,n=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(t=i.v,e=i.w,a=i.name,arguments.length===2&&(f=arguments[1],n=!0)):(t=i,e=arguments[1],a=arguments[3],arguments.length>2&&(f=arguments[2],n=!0)),t=""+t,e=""+e,ur(a)||(a=""+a);var s=Wr(this._isDirected,t,e,a);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return n&&(this._edgeLabels[s]=f),this;if(!ur(a)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=n?f:this._defaultEdgeLabelFn(t,e,a);var p=Ed(this._isDirected,t,e,a);return t=p.v,e=p.w,Object.freeze(p),this._edgeObjs[s]=p,za(this._preds[e],t),za(this._sucs[t],e),this._in[e][s]=p,this._out[t][s]=p,this._edgeCount++,this}edge(t,e,a){var f=arguments.length===1?Gt(this._isDirected,arguments[0]):Wr(this._isDirected,t,e,a);return this._edgeLabels[f]}hasEdge(t,e,a){var f=arguments.length===1?Gt(this._isDirected,arguments[0]):Wr(this._isDirected,t,e,a);return Object.prototype.hasOwnProperty.call(this._edgeLabels,f)}removeEdge(t,e,a){var f=arguments.length===1?Gt(this._isDirected,arguments[0]):Wr(this._isDirected,t,e,a),n=this._edgeObjs[f];return n&&(t=n.v,e=n.w,delete this._edgeLabels[f],delete this._edgeObjs[f],qa(this._preds[e],t),qa(this._sucs[t],e),delete this._in[e][f],delete this._out[t][f],this._edgeCount--),this}inEdges(t,e){var a=this._in[t];if(a){var f=Kr(a);return e?Fr(f,function(n){return n.v===e}):f}}outEdges(t,e){var a=this._out[t];if(a){var f=Kr(a);return e?Fr(f,function(n){return n.w===e}):f}}nodeEdges(t,e){var a=this.inEdges(t,e);if(a)return a.concat(this.outEdges(t,e))}};Hr.prototype._nodeCount=0;Hr.prototype._edgeCount=0;function za(r,t){r[t]?r[t]++:r[t]=1}o(za,"incrementOrInitEntry");function qa(r,t){--r[t]||delete r[t]}o(qa,"decrementOrRemoveEntry");function Wr(r,t,e,a){var f=""+t,n=""+e;if(!r&&f>n){var i=f;f=n,n=i}return f+Ha+n+Ha+(ur(a)?Id:a)}o(Wr,"edgeArgsToId");function Ed(r,t,e,a){var f=""+t,n=""+e;if(!r&&f>n){var i=f;f=n,n=i}var s={v:f,w:n};return a&&(s.name=a),s}o(Ed,"edgeArgsToObj");function Gt(r,t){return Wr(r,t.v,t.w,t.name)}o(Gt,"edgeObjToId");export{l as a,V as b,Mt as c,Pu as d,ju as e,Lm as f,Rm as g,Hm as h,D as i,Fr as j,Qm as k,tl as l,ol as m,fl as n,ml as o,Kr as p,ur as q,Tl as r,Pl as s,Il as t,jl as u,Ml as v,ed as w,sd as x,Bt as y,cd as z,hd as A,Td as B,Pd as C,Hr as D}; /*! Bundled license information: lodash-es/lodash.js: (** * @license * Lodash (Custom Build) * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./` * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors *) */