/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{makeHandle as e}from"../../core/handleUtils.js";function i(i){const t=()=>i("visible"===document.visibilityState);return document.addEventListener("visibilitychange",t),e(()=>document.removeEventListener("visibilitychange",t))}export{i as onVisibilityChange};
