import{resizeObservers as e}from"../utils/resizeObservers.js";import{calculateDepthForNode as s}from"./calculateDepthForNode.js";var gatherActiveObservationsAtDepth=function(r){e.forEach((function processObserver(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function processTarget(t){t.isActive()&&(s(t.target)>r?e.activeTargets.push(t):e.skippedTargets.push(t))}))}))};export{gatherActiveObservationsAtDepth};