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