/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{convertFlatToOptimizedGeometry as t,convertOptimizedGeometryToFlat as e}from"../../../geometry/FlatGeometry.js";import{featureGeometryTypeKebabDictionary as r}from"../../../geometry/support/typeUtils.js";import{FlatFeature as o}from"../FlatFeature.js";const m={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,m,i)=>new o(e(r.fromJSON(i),m),t.attributes,null,t.objectId),getGeometry:e=>e.geometry&&t(e.geometry),getGeometryWithCurves:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)};export{m as flatFeatureQueryEngineAdapter};
