import{_ as U}from"./q-DoNi8vyY.js";import{u as V}from"./q-DElv2fU_.js";import{e as Z}from"./q-DElv2fU_.js";import{P as g}from"./q-B6qvAoIZ.js";const J=async()=>{const[W]=V(),M=W.value;if(!M)return;const e=await U(()=>import("./q-CwjCRhry.js"),[]),n=M.parentElement,o=new e.Scene,w=new e.PerspectiveCamera(50,n.clientWidth/n.clientHeight,.1,1e3);w.position.z=6;const f=new e.WebGLRenderer({canvas:M,alpha:!0,antialias:!0});f.setSize(n.clientWidth,n.clientHeight),f.setPixelRatio(Math.min(window.devicePixelRatio,2));const C=new e.IcosahedronGeometry(2.2,6),H=new e.MeshBasicMaterial({color:16726554,wireframe:!0,transparent:!0,opacity:.1}),y=new e.Mesh(C,H);o.add(y);const T=new e.IcosahedronGeometry(1.5,3),j=new e.MeshBasicMaterial({color:16726554,wireframe:!0,transparent:!0,opacity:.04}),x=new e.Mesh(T,j);o.add(x);const F=new e.SphereGeometry(.4,20,20),N=new e.MeshBasicMaterial({color:16726554,transparent:!0,opacity:.12});o.add(new e.Mesh(F,N));for(let t=0;t<5;t++){const d=new e.TorusGeometry(2.8+t*.45,.004,8,180),p=new e.MeshBasicMaterial({color:16726554,transparent:!0,opacity:.06-t*.01}),a=new e.Mesh(d,p);a.rotation.x=Math.PI*.3+t*.2,a.rotation.y=t*.55,o.add(a)}const E=1e3,G=new e.BufferGeometry,P=new Float32Array(E*3);for(let t=0;t{const d=new e.SphereGeometry(.18,12,12),p=new e.MeshBasicMaterial({color:new e.Color(t.color),transparent:!0,opacity:.6}),a=new e.Mesh(d,p);o.add(a),v.push(a);const i=new e.TorusGeometry(.3,.008,8,40),h=new e.MeshBasicMaterial({color:new e.Color(t.color),transparent:!0,opacity:.2});a.add(new e.Mesh(i,h))});let s=!1,c=0,l=0,r=0;n.addEventListener("mousedown",t=>{s=!0,c=t.clientX,r=0}),window.addEventListener("mouseup",()=>s=!1),window.addEventListener("mousemove",t=>{s&&(r=(t.clientX-c)*.005,l+=r,c=t.clientX)}),n.addEventListener("touchstart",t=>{s=!0,c=t.touches[0].clientX,r=0},{passive:!0}),window.addEventListener("touchend",()=>s=!1),window.addEventListener("touchmove",t=>{s&&(r=(t.touches[0].clientX-c)*.005,l+=r,c=t.touches[0].clientX)},{passive:!0});const z=()=>{requestAnimationFrame(z);const t=performance.now()*.001;s||(r*=.97,l+=.003+r);const d=Math.sin(t*.15)*.15;y.rotation.y=l,y.rotation.x=d,x.rotation.y=-l*.7,x.rotation.x=-d*.5,B.rotation.y=t*.012;const p=n.getBoundingClientRect();g.forEach((a,i)=>{const h=l+i/g.length*Math.PI*2,L=3.2,S=Math.cos(h)*L,A=Math.sin(h)*L,X=Math.sin(h+t*.2)*.4;v[i].position.set(S,X,A),v[i].children[0].rotation.x=t+i;const m=new e.Vector3(S,X,A).project(w),D=(m.x*.5+.5)*p.width,O=(-.5*m.y+.5)*p.height,I=m.z>1,u=document.getElementById(`ol-${i}`);u&&(u.style.display=I?"none":"block",u.style.left=`${D-90}px`,u.style.top=`${O-30}px`,u.style.opacity=I?"0":String(Math.max(0,1-Math.abs(m.z-.5)*3)))}),f.render(o,w)};z();const $=()=>{w.aspect=n.clientWidth/n.clientHeight,w.updateProjectionMatrix(),f.setSize(n.clientWidth,n.clientHeight)};window.addEventListener("resize",$)};export{Z as _hW,J as s_w6UIUB0Nmp8};