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