import{Di as e,Ga as t,Ja as n,Qa as r,Vt as i,dr as a,io as o,qa as s,vr as c}from"./index.dkY5s53S.js";var l=o(r(),1),u=o(t(),1),d=({children:e})=>{let t=(0,l.useContext)(i)?.();return t?(0,u.createPortal)(e,t):n(s,{children:e})},f=c(`div`,{target:`e1smm6vf0`})({"@media print":{display:`none`}}),p=(0,l.memo)(({className:t,scriptRunId:r,numParticles:i,numParticleTypes:o,ParticleComponent:s})=>{let{resourceCrossOriginMode:c}=(0,l.useContext)(a);return n(f,{className:t,"data-testid":t,children:(0,l.useMemo)(()=>e(i).map(()=>Math.floor(Math.random()*o)),[i,o]).map((e,t)=>n(s,{particleType:e,resourceCrossOriginMode:c},r+t))})});export{d as n,p as t};