<!-- SOLID-PLAYTIME · part 85 -->
.ray.intersectsSphere(rf)===!1)return;_b.copy(i).invert(),Mc.copy(t.ray).applyMatrix4(_b);let r=s/((this.scale.x+this.scale.y+this.scale.z)/3),o=r*r,l=this.isLineSegments?2:1,c=n.index,f=n.attributes.position;if(c!==null){let h=Math.max(0,a.start),p=Math.min(c.count,a.start+a.count);for(let v=h,y=p-1;v<y;v+=l){let U=c.getX(v),d=c.getX(v+1),g=of(this,t,Mc,o,U,d,v);if(g)e.push(g)}if(this.isLineLoop){let v=c.getX(p-1),y=c.getX(h),U=of(this,t,Mc,o,v,y,p-1);if(U)e.push(U)}}else{let h=Math.max(0,a.start),p=Math.min(f.count,a.start+a.count);for(let v=h,y=p-1;v<y;v+=l){let U=of(this,t,Mc,o,v,v+1,v);if(U)e.push(U)}if(this.isLineLoop){let v=of(this,t,Mc,o,p-1,h,p-1);if(v)e.push(v)}}}updateMorphTargets(){let e=this.geometry.morphAttributes,n=Object.keys(e);if(n.length>0){let i=e[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,a=i.length;s<a;s++){let r=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[r]=s}}}}}function of(t,e,n,i,s,a,r){let o=t.geometry.attributes.position;if(pf.fromBufferAttribute(o,s),mf.fromBufferAttribute(o,a),n.distanceSqToSegment(pf,mf,Tm,Tb)>i)return;Tm.applyMatrix4(t.matrixWorld);let c=e.ray.origin.distanceTo(Tm);if(c<e.near||c>e.far)return;return{distance:c,point:Tb.clone().applyMatrix4(t.matrixWorld),index:r,face:null,faceIndex:null,barycoord:null,object:t}}var Ab=new C,Sb=new C;class ji extends Ta{constructor(t,e){super(t,e);this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){let t=this.geometry;if(t.index===null){let e=t.attributes.position,n=[];for(let i=0,s=e.count;i<s;i+=2)Ab.fromBufferAttribute(e,i),Sb.fromBufferAttribute(e,i+1),n[i]=i===0?0:n[i-1],n[i+1]=n[i]+Ab.distanceTo(Sb);t.setAttribute("lineDistance",new Zt(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class Bs extends qi{constructor(t){super();this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new Xt(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.fog=t.fog,this}}var Lb=new ie,Lm=new Yo,lf=new Ns,cf=new C;class ts extends Ne{constructor(t=new me,e=new Bs){super();this.isPoints=!0,this.type="Points",this.geometry=t,this.material=e,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}raycast(t,e){let n=this.geometry,i=this.matrixWorld,s=t.params.Points.threshold,a=n.drawRange;if(n.boundingSphere===null)n.computeBoundingSphere();if(lf.copy(n.boundingSphere),lf.applyMatrix4(i),lf.radius+=s,t.ray.intersectsSphere(lf)===!1)return;Lb.copy(i).invert(),Lm.copy(t.ray).applyMatrix4(Lb);let r=s/((this.scale.x+this.scale.y+this.scale.z)/3),o=r*r,l=n.index,u=n.attributes.position;if(l!==null){let f=Math.max(0,a.start),h=Math.min(l.count,a.start+a.count);for(let p=f,v=h;p<v;p++){let y=l.getX(p);cf.fromBufferAttribute(u,y),Rb(cf,y,o,i,t,e,this)}}else{let f=Math.max(0,a.start),h=Math.min(u.count,a.start+a.count);for(let p=f,v=h;p<v;p++)cf.fromBufferAttribute(u,p),Rb(cf,p,o,i,t,e,this)}}updateMorphTargets(){let e=this.geometry.morphAttributes,n=Object.keys(e);if(n.length>0){let i=e[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,a=i.length;s<a;s++){let r=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[r]=s}}}}}function Rb(t,e,n,i,s,a,r){let o=Lm.distanceSqToPoint(t);if(o<n){let l=new C;Lm.closestPointToPoint(t,l),l.applyMatrix4(i);let c=s.ray.origin.distanceTo(l);if(c<s.near||c>s.far)return;a.push({distance:c,distanceToRay:Math.sqrt(o),point:l,index:e,face:null,faceIndex:null,barycoord:null,object:r})}}class qo extends bn{constructor(t,e,n,i,s,a,r,o,l){super(t,e,n,i,s,a,r,o,l);this.isCanvasTexture=!0,this.needsUpdate=!0}}class Bf extends bn{constructor(t,e,n=1014,i,s,a,r=1003,o=1003,l,c=1026,u=1){if(c!==1026&&c!==1027)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");let f={width:t,height:e,depth:u};super(f,i,s,a,r,o,c,n,l);this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(t){return super.copy(t),this.source=new Hc(Object.assign({},t.image)),this.compareFunction=t.compareFunction,this}toJSON(t){let e=super.toJSON(t);if(this.compareFunction!==null)e.compareFunction=this.compareFunction;return e}}class Of extends bn{constructor(t=null){super();this.sourceTexture=t,this.isExternalTexture=!0}copy(t){return super.copy(t),this.sourceTexture=t.sourceTexture,this}}class es extends me{constructor(t=1,e=1,n=4,i=8,s=1){super();this.type="CapsuleGeometry",this.parameters={r