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