import{M as fn,N as an,O as V,P as E,Q as q,R as rn,S as d,T as ln,V as Z,W as _,X as un,Y as t,Z as sn,$ as tn,a0 as on}from"./mermaid.core-CVhassan.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};u.SENTRY_RELEASE={id:"8a6db0ac5fe78363b0c97fe458a96ce773bf357c"};var o=new u.Error().stack;o&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[o]="fbb4f43e-8191-4ba2-98e3-ed5553345e61",u._sentryDebugIdIdentifier="sentry-dbid-fbb4f43e-8191-4ba2-98e3-ed5553345e61")}catch{}})();function cn(u){return u.innerRadius}function yn(u){return u.outerRadius}function dn(u){return u.startAngle}function gn(u){return u.endAngle}function pn(u){return u&&u.padAngle}function mn(u,o,I,D,v,b,L,a){var S=I-u,s=D-o,n=L-v,p=a-b,r=p*S-n*s;if(!(r*r<d))return r=(n*(o-b)-p*(u-v))/r,[u+r*S,o+r*s]}function C(u,o,I,D,v,b,L){var a=u-I,S=o-D,s=(L?b:-b)/Z(a*a+S*S),n=s*S,p=-s*a,r=u+n,f=o+p,c=I+n,y=D+p,M=(r+c)/2,l=(f+y)/2,m=c-r,g=y-f,R=m*m+g*g,A=v-b,T=r*y-c*f,N=(g<0?-1:1)*Z(tn(0,A*A*R-T*T)),O=(T*g-m*N)/R,Y=(-T*m-g*N)/R,w=(T*g+m*N)/R,h=(-T*m+g*N)/R,x=O-M,e=Y-l,i=w-M,Q=h-l;return x*x+e*e>i*i+Q*Q&&(O=w,Y=h),{cx:O,cy:Y,x01:-n,y01:-p,x11:O*(v/A-1),y11:Y*(v/A-1)}}function xn(){var u=cn,o=yn,I=q(0),D=null,v=dn,b=gn,L=pn,a=null,S=fn(s);function s(){var n,p,r=+u.apply(this,arguments),f=+o.apply(this,arguments),c=v.apply(this,arguments)-rn,y=b.apply(this,arguments)-rn,M=un(y-c),l=y>c;if(a||(a=n=S()),f<r&&(p=f,f=r,r=p),!(f>d))a.moveTo(0,0);else if(M>ln-d)a.moveTo(f*V(c),f*E(c)),a.arc(0,0,f,c,y,!l),r>d&&(a.moveTo(r*V(y),r*E(y)),a.arc(0,0,r,y,c,l));else{var m=c,g=y,R=c,A=y,T=M,N=M,O=L.apply(this,arguments)/2,Y=O>d&&(D?+D.apply(this,arguments):Z(r*r+f*f)),w=_(un(f-r)/2,+I.apply(this,arguments)),h=w,x=w,e,i;if(Y>d){var Q=sn(Y/r*E(O)),$=sn(Y/f*E(O));(T-=Q*2)>d?(Q*=l?1:-1,R+=Q,A-=Q):(T=0,R=A=(c+y)/2),(N-=$*2)>d?($*=l?1:-1,m+=$,g-=$):(N=0,m=g=(c+y)/2)}var W=f*V(m),X=f*E(m),j=r*V(A),k=r*E(A);if(w>d){var z=f*V(g),B=f*E(g),F=r*V(R),G=r*E(R),P;if(M<an)if(P=mn(W,X,F,G,z,B,j,k)){var H=W-P[0],J=X-P[1],K=z-P[0],U=B-P[1],nn=1/E(on((H*K+J*U)/(Z(H*H+J*J)*Z(K*K+U*U)))/2),en=Z(P[0]*P[0]+P[1]*P[1]);h=_(w,(r-en)/(nn-1)),x=_(w,(f-en)/(nn+1))}else h=x=0}N>d?x>d?(e=C(F,G,W,X,f,x,l),i=C(z,B,j,k,f,x,l),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(i.y01,i.x01),!l):(a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!l),a.arc(0,0,f,t(e.cy+e.y11,e.cx+e.x11),t(i.cy+i.y11,i.cx+i.x11),!l),a.arc(i.cx,i.cy,x,t(i.y11,i.x11),t(i.y01,i.x01),!l))):(a.moveTo(W,X),a.arc(0,0,f,m,g,!l)):a.moveTo(W,X),!(r>d)||!(T>d)?a.lineTo(j,k):h>d?(e=C(j,k,z,B,r,-h,l),i=C(W,X,F,G,r,-h,l),a.lineTo(e.cx+e.x01,e.cy+e.y01),h<w?a.arc(e.cx,e.cy,h,t(e.y01,e.x01),t(i.y01,i.x01),!l):(a.arc(e.cx,e.cy,h,t(e.y01,e.x01),t(e.y11,e.x11),!l),a.arc(0,0,r,t(e.cy+e.y11,e.cx+e.x11),t(i.cy+i.y11,i.cx+i.x11),l),a.arc(i.cx,i.cy,h,t(i.y11,i.x11),t(i.y01,i.x01),!l))):a.arc(0,0,r,A,R,l)}if(a.closePath(),n)return a=null,n+""||null}return s.centroid=function(){var n=(+u.apply(this,arguments)+ +o.apply(this,arguments))/2,p=(+v.apply(this,arguments)+ +b.apply(this,arguments))/2-an/2;return[V(p)*n,E(p)*n]},s.innerRadius=function(n){return arguments.length?(u=typeof n=="function"?n:q(+n),s):u},s.outerRadius=function(n){return arguments.length?(o=typeof n=="function"?n:q(+n),s):o},s.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:q(+n),s):I},s.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:q(+n),s):D},s.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:q(+n),s):v},s.endAngle=function(n){return arguments.length?(b=typeof n=="function"?n:q(+n),s):b},s.padAngle=function(n){return arguments.length?(L=typeof n=="function"?n:q(+n),s):L},s.context=function(n){return arguments.length?(a=n??null,s):a},s}export{xn as d};
//# sourceMappingURL=arc-_ALcW-nh.js.map
