/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import"tslib";import"../../../chunks/Geometry.js";import"../../../chunks/Point2D.js";import"../../../chunks/MultiPathImpl.js";import"../../../chunks/Envelope.js";import{h as t,i as r}from"../../../chunks/SpatialReference.js";import{gradGcsIds as s,getMetersPerUnit as e,isProjectedWKT as i}from"../../../core/units.js";import{isGeographic as o}from"../../support/spatialReferenceUtils.js";t()||r(t=>{let r,n;"number"==typeof t?r=t:n=t;const p={wkid:r,wkt:n};let m,a;if(n){m=i(n);const t=o(p);if(!m&&!t)throw new Error(`Unsupported WKT type: ${n}`)}else m=!o(p);return a=r&&s.has(r)?Math.PI/200:m?e(p):Math.PI/180,{isPCS:m,metersOrRadiansPerUnit:a,semiMajor:0,wkidOrWkt:t}});
