/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
let e,n=null;const t=new Map;async function l(l){null==n&&(null==e&&(e=import("../../../layers/VoxelWasmPerSceneView.js")),n=await e);const o=l.view;let i=t.get(o);return i||(i=new n.default({view:o}),t.set(o,i)),i.addVoxelLayer(l)}function o(e){return t.get(e)}function i(l){const o=l.view,i=t.get(o);if(i){i.removeVoxelLayer(l)<1&&(t.delete(o),0===t.size&&(e=null,n=null))}}export{l as addLayerViewToWasm,o as getVoxelWasm,i as removeLayerViewFromWasm};
