/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import t from"../../geometry/Extent.js";import{parseUrl as o}from"../utils.js";import{executeQueryForExtent as r}from"./operations/query.js";import n from"../support/Query.js";async function m(m,e,i){const s=o(m),u=await r(s,n.from(e),{...i}),a=u.extent;return!a||isNaN(a.xmin)||isNaN(a.ymin)||isNaN(a.xmax)||isNaN(a.ymax)?{count:u.count,extent:null}:{count:u.count,extent:t.fromJSON(a)}}export{m as executeForExtent};
