/** * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. * Original file: /npm/robust-predicates@3.0.2/index.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ const t=11102230246251565e-32,n=134217729,r=(3+8*t)*t;function s(t,n,r,s,a){let e,o,c,u,f=n[0],i=s[0],b=0,h=0;i>f==i>-f?(e=f,f=n[++b]):(e=i,i=s[++h]);let M=0;if(bf==i>-f?(o=f+e,c=e-(o-f),f=n[++b]):(o=i+e,c=e-(o-i),i=s[++h]),e=o,0!==c&&(a[M++]=c);bf==i>-f?(o=e+f,u=o-e,c=e-(o-u)+(f-u),f=n[++b]):(o=e+i,u=o-e,c=e-(o-u)+(i-u),i=s[++h]),e=o,0!==c&&(a[M++]=c);for(;b=33306690738754716e-32*A?y:-function(t,a,e,o,u,x,d){let w,y,A,F,g,j,k,m,q,v,z,B,C,D,E,G,H,I;const J=t-u,K=e-u,L=a-x,N=o-x;D=J*N,j=n*J,k=j-(j-J),m=J-k,j=n*N,q=j-(j-N),v=N-q,E=m*v-(D-k*q-m*q-k*v),G=L*K,j=n*L,k=j-(j-L),m=L-k,j=n*K,q=j-(j-K),v=K-q,H=m*v-(G-k*q-m*q-k*v),z=E-H,g=E-z,b[0]=E-(z+g)+(g-H),B=D+z,g=B-D,C=D-(B-g)+(z-g),z=C-G,g=C-z,b[1]=C-(z+g)+(g-G),I=B+z,g=I-B,b[2]=B-(I-g)+(z-g),b[3]=I;let O=c(4,b),P=f*d;if(O>=P||-O>=P)return O;if(g=t-J,w=t-(J+g)+(g-u),g=e-K,A=e-(K+g)+(g-u),g=a-L,y=a-(L+g)+(g-x),g=o-N,F=o-(N+g)+(g-x),0===w&&0===y&&0===A&&0===F)return O;if(P=i*d+r*Math.abs(O),O+=J*F+N*w-(L*A+K*y),O>=P||-O>=P)return O;D=w*N,j=n*w,k=j-(j-w),m=w-k,j=n*N,q=j-(j-N),v=N-q,E=m*v-(D-k*q-m*q-k*v),G=y*K,j=n*y,k=j-(j-y),m=y-k,j=n*K,q=j-(j-K),v=K-q,H=m*v-(G-k*q-m*q-k*v),z=E-H,g=E-z,p[0]=E-(z+g)+(g-H),B=D+z,g=B-D,C=D-(B-g)+(z-g),z=C-G,g=C-z,p[1]=C-(z+g)+(g-G),I=B+z,g=I-B,p[2]=B-(I-g)+(z-g),p[3]=I;const Q=s(4,b,4,p,h);D=J*F,j=n*J,k=j-(j-J),m=J-k,j=n*F,q=j-(j-F),v=F-q,E=m*v-(D-k*q-m*q-k*v),G=L*A,j=n*L,k=j-(j-L),m=L-k,j=n*A,q=j-(j-A),v=A-q,H=m*v-(G-k*q-m*q-k*v),z=E-H,g=E-z,p[0]=E-(z+g)+(g-H),B=D+z,g=B-D,C=D-(B-g)+(z-g),z=C-G,g=C-z,p[1]=C-(z+g)+(g-G),I=B+z,g=I-B,p[2]=B-(I-g)+(z-g),p[3]=I;const R=s(Q,h,4,p,M);D=w*F,j=n*w,k=j-(j-w),m=w-k,j=n*F,q=j-(j-F),v=F-q,E=m*v-(D-k*q-m*q-k*v),G=y*A,j=n*y,k=j-(j-y),m=y-k,j=n*A,q=j-(j-A),v=A-q,H=m*v-(G-k*q-m*q-k*v),z=E-H,g=E-z,p[0]=E-(z+g)+(g-H),B=D+z,g=B-D,C=D-(B-g)+(z-g),z=C-G,g=C-z,p[1]=C-(z+g)+(g-G),I=B+z,g=I-B,p[2]=B-(I-g)+(z-g),p[3]=I;const S=s(R,M,4,p,l);return l[S-1]}(t,a,e,o,u,x,A)}function d(t,n,r,s,a,e){return(n-e)*(r-a)-(t-a)*(s-e)}const w=3330669073875473e-31,y=32047474274603644e-47,A=u(4),F=u(4),g=u(4),j=u(4),k=u(4),m=u(4),q=u(4),v=u(4),z=u(4),B=u(8),C=u(8),D=u(8),E=u(4),G=u(8),H=u(8),I=u(8),J=u(12);let K=u(192),L=u(192);function N(t,n,r){t=s(t,K,n,r,L);const a=K;return K=L,L=a,t}function O(t,r,s,a,e,o,c,u){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y-p),Y=h-pt,U=h-(pt+Y)+(Y-p),Y=o-xt,V=o-(xt+Y)+(Y-x),Y=i-dt,W=i-(dt+Y)+(Y-x),Y=M-wt,X=M-(wt+Y)+(Y-x),0===L&&0===Q&&0===R&&0===S&&0===T&&0===U&&0===V&&0===W&&0===X)return yt;if(At=y*d+r*Math.abs(yt),yt+=xt*(bt*U+pt*Q-(lt*R+ht*T))+V*(bt*pt-lt*ht)+dt*(ht*S+Mt*R-(pt*L+it*U))+W*(ht*Mt-pt*it)+wt*(it*T+lt*L-(Mt*Q+bt*S))+X*(it*lt-Mt*bt),yt>=At||-yt>=At)return yt;const Ft=O(L,S,bt,lt,ht,pt,j,k),gt=O(Q,T,ht,pt,it,Mt,m,q),jt=O(R,U,it,Mt,bt,lt,v,z),kt=s(gt,m,jt,z,B);E=N(E,e(kt,B,xt,I),I);const mt=s(jt,v,Ft,k,C);E=N(E,e(mt,C,dt,I),I);const qt=s(Ft,j,gt,q,D);return E=N(E,e(qt,D,wt,I),I),0!==V&&(E=N(E,e(4,A,V,J),J),E=N(E,e(kt,B,V,I),I)),0!==W&&(E=N(E,e(4,F,W,J),J),E=N(E,e(mt,C,W,I),I)),0!==X&&(E=N(E,e(4,g,X,J),J),E=N(E,e(qt,D,X,I),I)),0!==L&&(0!==T&&(E=P(E,L,T,wt,X)),0!==U&&(E=P(E,-L,U,dt,W))),0!==Q&&(0!==U&&(E=P(E,Q,U,xt,V)),0!==S&&(E=P(E,-Q,S,wt,X))),0!==R&&(0!==S&&(E=P(E,R,S,dt,W)),0!==T&&(E=P(E,-R,T,xt,V))),K[E-1]}(t,a,o,u,f,i,b,h,M,l,p,x,nt)}function R(t,n,r,s,a,e,o,c,u,f,i,b){const h=n-i,M=a-i,l=c-i,p=r-b,x=e-b,d=u-b;return(t-f)*(M*d-x*l)+(s-f)*(l*p-d*h)+(o-f)*(h*x-p*M)}const S=4440892098500632e-31,T=5423418723394464e-46,U=u(4),V=u(4),W=u(4),X=u(4),Y=u(4),Z=u(4),$=u(4),_=u(4),tt=u(8),nt=u(8),rt=u(8),st=u(8),at=u(8),et=u(8),ot=u(8),ct=u(8),ut=u(8),ft=u(4),it=u(4),bt=u(4),ht=u(8),Mt=u(16),lt=u(16),pt=u(16),xt=u(32),dt=u(32),wt=u(48),yt=u(64);let At=u(1152),Ft=u(1152);function gt(t,n,r){t=s(t,At,n,r,Ft);const a=At;return At=Ft,Ft=a,t}function jt(t,o,u,f,i,b,h,M){const l=t-h,p=u-h,x=i-h,d=o-M,w=f-M,y=b-M,A=p*y,F=x*w,g=l*l+d*d,j=x*d,k=l*y,m=p*p+w*w,q=l*w,v=p*d,z=x*x+y*y,B=g*(A-F)+m*(j-k)+z*(q-v),C=(Math.abs(A)+Math.abs(F))*g+(Math.abs(j)+Math.abs(k))*m+(Math.abs(q)+Math.abs(v))*z,D=11102230246251577e-31*C;return B>D||-B>D?B:function(t,o,u,f,i,b,h,M,l){let p,x,d,w,y,A,F,g,j,k,m,q,v,z,B,C,D,E,G,H,I,J,K,L,N,O,P,Q,R,Ft,jt,kt,mt,qt,vt;const zt=t-h,Bt=u-h,Ct=i-h,Dt=o-M,Et=f-M,Gt=b-M;jt=Bt*Gt,K=n*Bt,L=K-(K-Bt),N=Bt-L,K=n*Gt,O=K-(K-Gt),P=Gt-O,kt=N*P-(jt-L*O-N*O-L*P),mt=Ct*Et,K=n*Ct,L=K-(K-Ct),N=Ct-L,K=n*Et,O=K-(K-Et),P=Et-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt-qt,J=kt-Q,U[0]=kt-(Q+J)+(J-qt),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft-mt,J=Ft-Q,U[1]=Ft-(Q+J)+(J-mt),vt=R+Q,J=vt-R,U[2]=R-(vt-J)+(Q-J),U[3]=vt,jt=Ct*Dt,K=n*Ct,L=K-(K-Ct),N=Ct-L,K=n*Dt,O=K-(K-Dt),P=Dt-O,kt=N*P-(jt-L*O-N*O-L*P),mt=zt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-u*M)+(h*h+M*M)*(u*b-i*f)}const mt=5551115123125792e-31,qt=8751425667295619e-46,vt=u(4),zt=u(4),Bt=u(4),Ct=u(4),Dt=u(4),Et=u(4),Gt=u(4),Ht=u(4),It=u(4),Jt=u(4),Kt=u(24),Lt=u(24),Nt=u(24),Ot=u(24),Pt=u(24),Qt=u(24),Rt=u(24),St=u(24),Tt=u(24),Ut=u(24),Vt=u(1152),Wt=u(1152),Xt=u(1152),Yt=u(1152),Zt=u(1152),$t=u(2304),_t=u(2304),tn=u(3456),nn=u(5760),rn=u(8),sn=u(8),an=u(8),en=u(16),on=u(24),cn=u(48),un=u(48),fn=u(96),bn=u(192),hn=u(384),Mn=u(384),ln=u(384),pn=u(768);function xn(t,n,r,s,o,c,u){return a(e(4,t,s,rn),rn,e(4,n,o,sn),sn,e(4,r,c,an),an,en,u)}function dn(t,n,r,c,u,f,i,b,h,M,l,p){const x=s(s(t,n,r,c,cn),cn,o(s(u,f,i,b,un),un),un,fn);return a(e(e(x,fn,h,bn),bn,h,hn),hn,e(e(x,fn,M,bn),bn,M,Mn),Mn,e(e(x,fn,l,bn),bn,l,ln),ln,pn,p)}const wn=u(96),yn=u(96),An=u(96),Fn=u(1152);function gn(t,n,r,s,o,c,u,f,i,b){const h=xn(t,n,r,s,o,c,on);return a(e(e(h,on,u,cn),cn,u,wn),wn,e(e(h,on,f,cn),cn,f,yn),yn,e(e(h,on,i,cn),cn,i,An),An,bn,b)}function jn(t,e,u,f,i,b,h,M,l,p,x,d,w,y,A,F){let g,j,k,m,q,v,z,B,C,D,E,G,H,I,J,K,L,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$;const _=t-w,tt=f-w,nt=h-w,rt=p-w,st=e-y,at=i-y,et=M-y,ot=x-y,ct=u-A,ut=b-A,ft=l-A,it=d-A;X=_*at,P=n*_,Q=P-(P-_),R=_-Q,P=n*at,S=P-(P-at),T=at-S,Y=R*T-(X-Q*S-R*S-Q*T),Z=tt*st,P=n*tt,Q=P-(P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=l-ft,L=l-(ft+O)+(O-A),O=p-rt,D=p-(rt+O)+(O-w),O=x-ot,I=x-(ot+O)+(O-y),O=d-it,N=d-(it+O)+(O-A),0===z&&0===E&&0===J&&0===B&&0===G&&0===K&&0===C&&0===H&&0===L&&0===D&&0===I&&0===N)return bt;ht=qt*F+r*Math.abs(bt);const Mt=_*G+at*z-(st*B+tt*E),lt=tt*H+et*B-(at*C+nt*G),pt=nt*I+ot*C-(et*D+rt*H),xt=rt*E+st*D-(ot*z+_*I),dt=_*H+et*z-(st*C+nt*E),wt=tt*I+ot*B-(at*D+rt*G);return bt+=(tt*tt+at*at+ut*ut)*(ft*xt+it*dt+ct*pt+(L*m+N*q+J*k))+(rt*rt+ot*ot+it*it)*(ct*lt-ut*dt+ft*Mt+(J*j-K*q+L*g))-((_*_+st*st+ct*ct)*(ut*pt-ft*wt+it*lt+(K*k-L*v+N*j))+(nt*nt+et*et+ft*ft)*(it*Mt+ct*wt+ut*xt+(N*g+J*v+K*m)))+2*((tt*B+at*G+ut*K)*(ft*m+it*q+ct*k)+(rt*D+ot*I+it*N)*(ct*j-ut*q+ft*g)-((_*z+st*E+ct*J)*(ut*k-ft*v+it*j)+(nt*C+et*H+ft*L)*(it*g+ct*v+ut*m))),bt>=ht||-bt>=ht?bt:function(t,r,s,e,o,c,u,f,i,b,h,M,l,p,x){let d,w,y,A,F,g,j,k,m,q,v,z,B,C;q=t*o,w=n*t,y=w-(w-t),A=t-y,w=n*o,F=w-(w-o),g=o-F,v=A*g-(q-y*F-A*F-y*g),z=e*r,w=n*e,y=w-(w-e),A=e-y,w=n*r,F=w-(w-r),g=r-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,vt[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,vt[1]=m-(j+d)+(d-z),C=k+j,d=C-k,vt[2]=k-(C-d)+(j-d),vt[3]=C,q=e*f,w=n*e,y=w-(w-e),A=e-y,w=n*f,F=w-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L=J-K,N=p*F,O=d*y,P=N-O,Q=x*g,R=w*A,S=Q-R,T=p*p+y*y+j*j,U=x*x+A*A+k*k,V=d*d+F*F+m*m,W=w*w+g*g+q*q,X=V*(q*B+j*S+k*L)-W*(j*E-k*P+m*B)+(T*(k*I-m*S+q*E)-U*(m*L+q*P+j*I)),Y=Math.abs(j),Z=Math.abs(k),$=Math.abs(m),_=Math.abs(q),tt=Math.abs(v)+Math.abs(z),nt=Math.abs(C)+Math.abs(D),rt=Math.abs(G)+Math.abs(H),st=Math.abs(J)+Math.abs(K),at=Math.abs(N)+Math.abs(O),et=Math.abs(Q)+Math.abs(R),ot=(rt*Z+et*$+nt*_)*T+(st*$+at*_+rt*Y)*U+(tt*_+et*Y+st*Z)*V+(nt*Y+at*Z+tt*$)*W,ct=17763568394002532e-31*ot;return X>ct||-X>ct?X:-jn(t,n,r,s,a,e,o,c,u,f,i,b,h,M,l,ot)}function mn(t,n,r,s,a,e,o,c,u,f,i,b,h,M,l){const p=t-h,x=s-h,d=o-h,w=f-h,y=n-M,A=a-M,F=c-M,g=i-M,j=r-l,k=e-l,m=u-l,q=b-l,v=p*A-x*y,z=x*F-d*A,B=d*g-w*F,C=w*y-p*g,D=p*F-d*y,E=x*g-w*A;return(d*d+F*F+m*m)*(q*v+j*E+k*C)-(w*w+g*g+q*q)*(j*z-k*D+m*v)+((p*p+y*y+j*j)*(k*B-m*E+q*z)-(x*x+A*A+k*k)*(m*C+q*D+j*B))}export{jt as incircle,kt as incirclefast,kn as insphere,mn as inspherefast,x as orient2d,d as orient2dfast,Q as orient3d,R as orient3dfast};export default null;