// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../../chunks/tslib.es6 ../../geometry ../../Graphic ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/SpatialReference ../../geometry/support/jsonUtils ../../layers/support/Field".split(" "),function(q,B,y,n,C,D,r,H,I,z,E,A,v,u,F){var w;const x=new n.JSONMap({esriGeometryPoint:"point", esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});n=w=class extends C.JSONSupport{constructor(c){super(c);this.displayFieldName=null;this.exceededTransferLimit=!1;this.features=[];this.geometryType=this.fields=null;this.hasZ=this.hasM=!1;this.spatialReference=this.queryGeometry=null}readFeatures(c,k){k=v.fromJSON(k.spatialReference);const f=[];for(let a=0;aMath.round((d-b)/k),d=>Math.round((h- d)/f));for(let d=0,e=a.length;dp*m+l}if(this.hasM&&null!=f?.scale?.[3]){const {translate:[,,,l],scale:[,,,m]}=f;e=p=>null==p?p:p*m+l}d=this._getHydrationFunction(c,l=>l*a+b,l=>h-l*g,d,e);for(const {geometry:l}of k)null!= l&&d&&d(l);this.transform=null;return this}_quantizePoints(c,k,f){let b,h;const a=[];for(let d=0,e=c.length;d{b.x=k(b.x);b.y=f(b.y);return b}:"polyline"===c||"polygon"===c?b=>{const h=u.isPolygon(b)?b.rings:b.paths,a=[];for(let g=0,d=h.length;g{const h=this._quantizePoints(b.points,k,f);return h&&0b:null}_getHydrationFunction(c,k,f,b,h){return"point"===c?a=>{a.x=k(a.x);a.y=f(a.y);b&&(a.z=b(a.z))}:"polyline"===c||"polygon"===c?a=>{a=u.isPolygon(a)?a.rings:a.paths;for(let e=0,l=a.length;e{a.xmin=k(a.xmin);a.ymin=f(a.ymin);a.xmax=k(a.xmax);a.ymax=f(a.ymax);b&&null!=a.zmax&&null!=a.zmin&&(a.zmax=b(a.zmax),a.zmin=b(a.zmin));h&&null!=a.mmax&& null!=a.mmin&&(a.mmax=h(a.mmax),a.mmin=h(a.mmin))}:"multipoint"===c?a=>{a=a.points;let g;for(let e=0,l=a.length;e