import{HeapSnapshotModel as e}from"../heap_snapshot_model/heap_snapshot_model.js";import{HeapSnapshotWorkerDispatcher as a,AllocationProfile as o,HeapSnapshot as p,HeapSnapshotLoader as t}from"./heap_snapshot_worker.js";self.HeapSnapshotModel=self.HeapSnapshotModel||{},HeapSnapshotModel=HeapSnapshotModel||{},HeapSnapshotModel.HeapSnapshotProgressEvent=e.HeapSnapshotProgressEvent,HeapSnapshotModel.baseSystemDistance=e.baseSystemDistance,HeapSnapshotModel.AllocationNodeCallers=e.AllocationNodeCallers,HeapSnapshotModel.SerializedAllocationNode=e.SerializedAllocationNode,HeapSnapshotModel.AllocationStackFrame=e.AllocationStackFrame,HeapSnapshotModel.Node=e.Node,HeapSnapshotModel.Edge=e.Edge,HeapSnapshotModel.Aggregate=e.Aggregate,HeapSnapshotModel.AggregateForDiff=e.AggregateForDiff,HeapSnapshotModel.Diff=e.Diff,HeapSnapshotModel.DiffForClass=e.DiffForClass,HeapSnapshotModel.ComparatorConfig=e.ComparatorConfig,HeapSnapshotModel.WorkerCommand=e.WorkerCommand,HeapSnapshotModel.ItemsRange=e.ItemsRange,HeapSnapshotModel.StaticData=e.StaticData,HeapSnapshotModel.Statistics=e.Statistics,HeapSnapshotModel.NodeFilter=e.NodeFilter,HeapSnapshotModel.SearchConfig=e.SearchConfig,HeapSnapshotModel.Samples=e.Samples,HeapSnapshotModel.Location=e.Location;const r=self,n=new a.HeapSnapshotWorkerDispatcher(r,(e=>self.postMessage(e)));var s;s=n.dispatchMessage.bind(n),r.addEventListener("message",s,!1),self.postMessage("workerReady"),self.HeapSnapshotWorker=self.HeapSnapshotWorker||{},HeapSnapshotWorker=HeapSnapshotWorker||{},HeapSnapshotWorker.AllocationProfile=o.AllocationProfile,HeapSnapshotWorker.TopDownAllocationNode=o.TopDownAllocationNode,HeapSnapshotWorker.BottomUpAllocationNode=o.BottomUpAllocationNode,HeapSnapshotWorker.FunctionAllocationInfo=o.FunctionAllocationInfo,HeapSnapshotWorker.HeapSnapshotItem=p.HeapSnapshotItem,HeapSnapshotWorker.HeapSnapshotEdge=p.HeapSnapshotEdge,HeapSnapshotWorker.HeapSnapshotItemIterator=p.HeapSnapshotItemIterator,HeapSnapshotWorker.HeapSnapshotItemIndexProvider=p.HeapSnapshotItemIndexProvider,HeapSnapshotWorker.HeapSnapshotNodeIndexProvider=p.HeapSnapshotNodeIndexProvider,HeapSnapshotWorker.HeapSnapshotEdgeIndexProvider=p.HeapSnapshotEdgeIndexProvider,HeapSnapshotWorker.HeapSnapshotRetainerEdgeIndexProvider=p.HeapSnapshotRetainerEdgeIndexProvider,HeapSnapshotWorker.HeapSnapshotEdgeIterator=p.HeapSnapshotEdgeIterator,HeapSnapshotWorker.HeapSnapshotRetainerEdge=p.HeapSnapshotRetainerEdge,HeapSnapshotWorker.HeapSnapshotRetainerEdgeIterator=p.HeapSnapshotRetainerEdgeIterator,HeapSnapshotWorker.HeapSnapshotNode=p.HeapSnapshotNode,HeapSnapshotWorker.HeapSnapshotNodeIterator=p.HeapSnapshotNodeIterator,HeapSnapshotWorker.HeapSnapshotIndexRangeIterator=p.HeapSnapshotIndexRangeIterator,HeapSnapshotWorker.HeapSnapshotFilteredIterator=p.HeapSnapshotFilteredIterator,HeapSnapshotWorker.HeapSnapshotProgress=p.HeapSnapshotProgress,HeapSnapshotWorker.HeapSnapshotProblemReport=p.HeapSnapshotProblemReport,HeapSnapshotWorker.HeapSnapshot=p.HeapSnapshot,HeapSnapshotWorker.HeapSnapshotHeader=p.HeapSnapshotHeader,HeapSnapshotWorker.HeapSnapshotItemProvider=p.HeapSnapshotItemProvider,HeapSnapshotWorker.HeapSnapshotEdgesProvider=p.HeapSnapshotEdgesProvider,HeapSnapshotWorker.HeapSnapshotNodesProvider=p.HeapSnapshotNodesProvider,HeapSnapshotWorker.JSHeapSnapshot=p.JSHeapSnapshot,HeapSnapshotWorker.JSHeapSnapshotNode=p.JSHeapSnapshotNode,HeapSnapshotWorker.JSHeapSnapshotEdge=p.JSHeapSnapshotEdge,HeapSnapshotWorker.JSHeapSnapshotRetainerEdge=p.JSHeapSnapshotRetainerEdge,HeapSnapshotWorker.HeapSnapshotLoader=t.HeapSnapshotLoader,HeapSnapshotWorker.HeapSnapshotWorkerDispatcher=a.HeapSnapshotWorkerDispatcher;
