/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{makeHandle as e}from"../../../../core/handleUtils.js";import{getOrCreateMapValue as t}from"../../../../core/MapUtils.js";const o=new WeakMap;function n(n,r){return t(o,n,()=>new Set).add(r),e(()=>i(n,r))}function i(e,t){const n=o.get(e);n&&(n.delete(t),0===n.size&&o.delete(e))}function r(e,t){const n=o.get(e);if(n)for(const o of n)o!==t&&(o.visible=!1)}export{r as hideOtherAnalysisViews,n as registerAnalysisView,i as unregisterAnalysisView};
