/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../core/maybe","../../core/unitUtils","./spatialReferenceUtils"],(function(e,t,n,o){"use strict";function r(e,r,f){if(t.isNone(r)||t.isNone(f)||f.vcsWkid||o.equals(r,f))return null;const a=n.getMetersPerVerticalUnitForSR(r)/n.getMetersPerVerticalUnitForSR(f);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>i(e,a);case"polyline":case"esriGeometryPolyline":return e=>l(e,a);case"polygon":case"esriGeometryPolygon":return e=>s(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>c(e,a);case"extent":case"esriGeometryExtent":return e=>u(e,a);default:return null}}function i(e,t){e&&null!=e.z&&(e.z*=t)}function s(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}function l(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}function c(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}function u(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}e.getGeometryZScaler=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
