/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../Extent","../Multipoint","../Point","../Polygon","../Polyline"],(function(e,n,t,o,i,a){"use strict";const s={convertToGEGeometry:r,exportPoint:c,exportPolygon:h,exportPolyline:l,exportMultipoint:u,exportExtent:x};function r(e,n){if(null==n)return null;let t="cache"in n?n.cache._geVersion:void 0;return null==t&&(t=e.convertJSONToGeometry(n),"cache"in n&&(n.cache._geVersion=t)),t}function c(e,n,t){const i=e.hasZ(n),a=e.hasM(n),s=new o({x:e.getPointX(n),y:e.getPointY(n),spatialReference:t});return i&&(s.z=e.getPointZ(n)),a&&(s.m=e.getPointM(n)),s.cache._geVersion=n,s}function h(e,n,t){const o=new i({rings:e.exportPaths(n),hasZ:e.hasZ(n),hasM:e.hasM(n),spatialReference:t});return o.cache._geVersion=n,o}function l(e,n,t){const o=new a({paths:e.exportPaths(n),hasZ:e.hasZ(n),hasM:e.hasM(n),spatialReference:t});return o.cache._geVersion=n,o}function u(e,n,o){const i=new t({hasZ:e.hasZ(n),hasM:e.hasM(n),points:e.exportPoints(n),spatialReference:o});return i.cache._geVersion=n,i}function x(e,t,o){const i=e.hasZ(t),a=e.hasM(t),s=new n({xmin:e.getXMin(t),ymin:e.getYMin(t),xmax:e.getXMax(t),ymax:e.getYMax(t),spatialReference:o});if(i){const n=e.getZExtent(t);s.zmin=n.vmin,s.zmax=n.vmax}if(a){const n=e.getMExtent(t);s.mmin=n.vmin,s.mmax=n.vmax}return s.cache._geVersion=t,s}e.hydratedAdapter=s,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
