import{r,P as d,d as p,j as a,c as u,L as f,e as C}from"./index-DCNLpqIv.js";const P=({children:e})=>{const s=r.useContext(d)?.();return s?p.createPortal(e,s):a.jsx(a.Fragment,{children:e})},g=u("div",{target:"ecnfqzf0"})({name:"my9yfq",styles:"@media print{display:none;}"}),x=({className:e,scriptRunId:s,numParticles:t,numParticleTypes:n,ParticleComponent:o})=>{const{libConfig:i}=r.useContext(f),c=r.useMemo(()=>C(t).map(()=>Math.floor(Math.random()*n)),[t,n]);return a.jsx(g,{className:e,"data-testid":e,children:c.map((m,l)=>a.jsx(o,{particleType:m,resourceCrossOriginMode:i.resourceCrossOriginMode},s+l))})},y=r.memo(x);export{y as P,P as R};
