/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{execute as e,executeMany as t,load as r,supportsCurves as o,isLoaded as n}from"./gx/operatorShapePreservingProject.js";let a,i,s,m,p,c;function u(){return!!a&&n()}async function f(){if(!u()){const[e,t]=await Promise.all([import("./support/apiConverter.js"),import("./support/projectionTransformation.js"),r()]);a=e.fromGeometry,i=e.fromSpatialReference,s=e.getSpatialReference,m=e.toGeometry,p=t.createProjectionTransformation,c=o()}}function g(t,r,o){const n=s(t),c=p(i(n),i(r),o),u=o?.maxDeviationInSrTo??0,f=o?.minSegmentLengthInDegrees??0;return m(e(a(t),c,f,u),r)}function S(e,r,o){const n=e.map(a),c=s(e),u=p(i(c),i(r),o),f=o?.maxDeviationInSrTo??0;return t(n,u,o?.minSegmentLengthInDegrees??0,f).map(e=>m(e,r))}export{g as execute,S as executeMany,u as isLoaded,f as load,c as supportsCurves};
