import{o as e}from"./chunk.DuxOD-Sk.js";import{r as t}from"./emotion-is-prop-valid.esm.DV_OErv-.js";import{c as n,s as r,t as i}from"./emotion-styled.browser.esm.BPUx6WuE.js";import{a}from"./isLength.DwwZub7z.js";import{n as o,t as s}from"./PortalContext.BL8o-V2m.js";import{r as c}from"./UriUtil.B2jDpauP.js";var l=e(t()),u=e(a()),d=({children:e})=>{let t=(0,l.useContext)(s)?.();return t?(0,u.createPortal)(e,t):n(r,{children:e})},f=i(`div`,{target:`e1smm6vf0`})({"@media print":{display:`none`}}),p=(0,l.memo)(({className:e,scriptRunId:t,numParticles:r,numParticleTypes:i,ParticleComponent:a})=>{let{resourceCrossOriginMode:s}=(0,l.useContext)(c);return n(f,{className:e,"data-testid":e,children:(0,l.useMemo)(()=>o(r).map(()=>Math.floor(Math.random()*i)),[r,i]).map((e,r)=>n(a,{particleType:e,resourceCrossOriginMode:s},t+r))})});export{d as n,p as t};