/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import r from"../../../core/Logger.js";function t(r){return class{constructor(){for(const t of r)this[t]=null}}}function e({transform:r,hasZ:t,hasM:e},n=1){if(null==r)return 1===n?null:r=>{r[2]*=n};let{scale:o,translate:s,originPosition:i}=r;"upperLeft"===i&&(o=o.map((r,t)=>1===t?-r:r)),t&&(o=o.map((r,t)=>2===t?r*n:r)),!t&&e&&(o=o.filter((r,t)=>2!==t),s=s.filter((r,t)=>2!==t));const l=t?3:2;return r=>{for(let t=0;t<r.length&&(t!==l||0!==r[t]);++t)r[t]=r[t]*o[t]+s[t]}}function n(){return r.getLogger("esri.rest.query.operations.pbfFeatureServiceParser")}export{n as getLogger,t as makeAttributesClass,e as makeVertexTransformer};
