{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/core/libs/quickselect/quickselect.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/centroid.js","webpack:///./node_modules/arcgis-js-api/geometry/geometryAdapters/json.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/projectionSupport.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/spatialQuerySupport.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/attributeSupport.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/QueryEngine.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/QueryEngineResult.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/contains.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/utils.js","webpack:///./node_modules/arcgis-js-api/core/sql/WhereClauseCache.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/QueryEngineCapabilities.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/AttributesBuilder.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/timeSupport.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,EAAE,mCAAE,WAAW,aAAa,kBAAkB,WAAW,iBAAiB,gBAAgB,sBAAsB,2BAA2B,uBAAuB,KAAK,IAAI,EAAE,YAAY,8KAA8K,aAAa,mBAAmB,mCAAmC,IAAI,EAAE,qBAAqB,YAAY,KAAK,KAAK,YAAY,KAAK,mEAAmE,+BAA+B;AAAA,oGAAE,C;;;;;;;ACxBvlB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,mCAAE,cAAc,aAAa,gBAAg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DAAmD,WAAW,yDAAyD,0BAA0B,0CAA0C,uCAAuC,6CAA6C,mDAAmD,2CAA2C,wBAAwB,+IAA+I,iBAAiB,mFAAmF,wCAAwC,gEAAgE,oDAAoD,wEAAwE,yCAAyC,gEAAgE,oDAAoD,oEAAoE,wDAAwD,qBAAqB,6DAA6D,YAAY,SAAS,WAAW,KAAK,8DAA8D,qFAAqF,SAAS,6DAA6D,oDAAoD,0BAA0B,qBAAqB,WAAW,KAAK,+CAA+C,aAAa,iCAAiC,+EAA+E,qDAAqD,GAAG,GAAG,YAAY;AAAA,oGAAE,C;;;;;;;ACxBj7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,mCAAE,cAAc,aAAa,sCAAsC,SAAS,yEAAyE,kBAAkB,iHAAiH,+BAA+B,gDAAgD,0EAA0E,GAAG,KAAK,WAAW,uBAAuB,0BAA0B,qDAAqD,GAAG,OAAO,eAAe,mCAAmC,sBAAsB,wCAAwC,sBAAsB,sBAAsB,iEAAiE,SAAS,0BAA0B,uCAAuC,gDAAgD,wCAAwC,8BAA8B,0BAA0B,sBAAsB,8BAA8B,0BAA0B,sBAAsB,OAAO,8BAA8B,8CAA8C,gCAAgC,uCAAuC,0BAA0B,mBAAmB,8BAA8B,+BAA+B,8BAA8B,+BAA+B,OAAO,cAAc;AAAA,oGAAE,C","file":"js/chunk-2e958b34.9c6eab86.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([],(function(){\"use strict\";function t(t,n,r){var o=t[n];t[n]=t[r],t[r]=o}function n(t,n){return tn?1:0}return function(r,o,f,a,i){!function n(r,o,f,a,i){for(;a>f;){if(a-f>600){var h=a-f+1,u=o-f+1,e=Math.log(h),M=.5*Math.exp(2*e/3),c=.5*Math.sqrt(e*M*(h-M)/h)*(u-h/2<0?-1:1),l=Math.max(f,Math.floor(o-u*M/h+c)),s=Math.min(a,Math.floor(o+(h-u)*M/h+c));n(r,o,l,s,i)}var v=r[o],g=f,m=a;for(t(r,f,o),i(r[a],v)>0&&t(r,f,a);g0;)m--}0===i(r[f],v)?t(r,f,m):(m++,t(r,m,a)),m<=o&&(f=m+1),o<=m&&(a=m-1)}}(r,o,f||0,a||r.length-1,i||n)}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\"],(function(r,e){\"use strict\";function n(r,e){return r?e?4:3:e?3:2}function t(r,e,t,I,u,i,o){void 0===o&&(o=1);for(var N=n(u,i),l=t,f=t+N,T=0,s=0,g=0,h=0,v=0,a=0,c=I-1;ar[1]&&(r[1]=d),Er[3]&&(r[3]=E),u&&(mr[5]&&(r[5]=m))}if(h*o>0&&(h*=-1),v*o>0&&(v*=-1),!h)return null;var Y=[T,s,.5*h];return u&&(Y[3]=g,Y[4]=.5*v),Y}function I(r,e,t,I,l){for(var f=n(I,l),T=e,s=e+f,g=0,h=0,v=0,a=0,c=0,d=t-1;c0?I?[h/g,v/g,a/g]:[h/g,v/g]:t>0?I?[r[e],r[e+1],r[e+2]]:[r[e],r[e+1]]:null}function u(r,e,n,t){var I=n-r,u=t-e;return Math.sqrt(I*I+u*u)}function i(r,e,n,t,I,u){var i=t-r,o=I-e,N=u-n;return Math.sqrt(i*i+o*o+N*N)}function o(r,e,n,t){return[r+.5*(n-r),e+.5*(t-e)]}function N(r,e,n,t,I,u){return[r+.5*(t-r),e+.5*(I-e),n+.5*(u-n)]}Object.defineProperty(e,\"__esModule\",{value:!0}),e.lineCentroid=e.getCentroidOptimizedGeometry=void 0,e.getCentroidOptimizedGeometry=function(r,e,u,i,o){if(!e||!e.lengths.length)return null;var N=\"upperLeft\"===(null==o?void 0:o.originPosition)?-1:1;r.lengths.length&&(r.lengths.length=0),r.coords.length&&(r.coords.length=0);for(var l=r.coords,f=[],T=u?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],s=e.lengths,g=e.coords,h=n(u,i),v=0,a=0,c=s;aT[1]||l[1]T[3]||u&&(l[2]T[5]))&&(l.length=0)}if(!l.length){var _=e.lengths[0]?I(g,0,s[0],u,i):null;if(!_)return null;l[0]=_[0],l[1]=_[1],u&&_.length>2&&(l[2]=_[2])}return r},e.lineCentroid=I}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\"],(function(t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.jsonAdapter=void 0,i.jsonAdapter={convertToGEGeometry:function(t,i){if(null==i)return null;return t.convertJSONToGeometry(i)},exportPoint:function(t,i,n){var s=new e(t.getPointX(i),t.getPointY(i),n),a=t.hasZ(i),h=t.hasM(i);a&&(s.z=t.getPointZ(i));h&&(s.m=t.getPointM(i));return s},exportPolygon:function(t,i,e){return new n(t.exportPaths(i),e,t.hasZ(i),t.hasM(i))},exportPolyline:function(t,i,e){return new s(t.exportPaths(i),e,t.hasZ(i),t.hasM(i))},exportMultipoint:function(t,i,e){return new a(t.exportPoints(i),e,t.hasZ(i),t.hasM(i))},exportExtent:function(t,i,e){var n=t.hasZ(i),s=t.hasM(i),a=new h(t.getXMin(i),t.getYMin(i),t.getXMax(i),t.getYMax(i),e);if(n){var o=t.getZExtent(i);a.zmin=o.vmin,a.zmax=o.vmax}if(s){var r=t.getMExtent(i);a.mmin=r.vmin,a.mmax=r.vmax}return a}};var e=function(t,i,e){this.x=t,this.y=i,this.spatialReference=e,this.z=void 0,this.m=void 0};var n=function(t,i,e,n){this.rings=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};var s=function(t,i,e,n){this.paths=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};var a=function(t,i,e,n){this.points=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};var h=function(t,i,e,n,s){this.xmin=t,this.ymin=i,this.xmax=e,this.ymax=n,this.spatialReference=s,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/Error\",\"../../../core/promiseUtils\",\"../../../geometry/projection\",\"../../../geometry/geometryAdapters/json\",\"../../../geometry/support/spatialReferenceUtils\",\"../../../geometry/support/webMercatorUtils\"],(function(e,r,t,n,i,o,s,a,u){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.projectMany=r.project=r.checkProjectionSupport=r.doesBrowserSupportProjection=void 0;var p=[0,0];function c(e,r){var t,n,i;if(!r)return null;if(\"x\"in r){var o={x:0,y:0};return t=e(r.x,r.y,p),o.x=t[0],o.y=t[1],null!=r.z&&(o.z=r.z),null!=r.m&&(o.m=r.m),o}if(\"xmin\"in r){o={xmin:0,ymin:0,xmax:0,ymax:0};return n=e(r.xmin,r.ymin,p),o.xmin=n[0],o.ymin=n[1],i=e(r.xmax,r.ymax,p),o.xmax=i[0],o.ymax=i[1],r.hasZ&&(o.zmin=r.zmin,o.zmax=r.zmax,o.hasZ=!0),r.hasM&&(o.mmin=r.mmin,o.mmax=r.mmax,o.hasM=!0),o}return\"rings\"in r?{rings:l(r.rings,e),hasM:r.hasM,hasZ:r.hasZ}:\"paths\"in r?{paths:l(r.paths,e),hasM:r.hasM,hasZ:r.hasZ}:\"points\"in r?{points:h(r.points,e),hasM:r.hasM,hasZ:r.hasZ}:void 0}function l(e,r){for(var t=[],n=0,i=e;n2&&s.push(o[2]),o.length>3&&s.push(o[3])}return t}function f(e,r){return!(!a.isValid(e)||!a.isValid(r)||a.equals(e,r)||u.canProject(e,r))}r.doesBrowserSupportProjection=function(e,r){return!f(e,r)||o.isSupported()},r.checkProjectionSupport=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var i,s,a;return t.__generator(this,(function(t){if(!r)return[2];if(Array.isArray(e)){for(i=0,s=e;i0&&(this._timer=setTimeout(this._process,10))}},e}());r.projectMany=function(e,r,n){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(t){return[2,y.push(e,r,n)]}))}))}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/Error\",\"../../../core/promiseUtils\",\"../../../geometry/support/contains\",\"../../../geometry/support/intersects\",\"../../../geometry/support/jsonUtils\",\"../../../geometry/support/spatialReferenceUtils\",\"../contains\",\"../featureConversionUtils\",\"../OptimizedGeometry\",\"./projectionSupport\",\"./utils\",\"@dojo/framework/shim/Promise\"],(function(e,t,r,i,n,o,s,a,l,u,p,c,y,f){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.canQueryWithRBush=t.checkSpatialQuerySupport=t.getSpatialQueryOperator=t.getGeodesicBufferOperator=t.importGeometryEngine=void 0;var m={esriSpatialRelIntersects:\"intersects\",esriSpatialRelContains:\"contains\",esriSpatialRelCrosses:\"crosses\",esriSpatialRelDisjoint:\"disjoint\",esriSpatialRelEnvelopeIntersects:\"intersects\",esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:\"overlaps\",esriSpatialRelTouches:\"touches\",esriSpatialRelWithin:\"within\",esriSpatialRelRelation:null},g={esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},R={esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},S={esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1};function v(){return new Promise((function(t,r){e([\"../../../geometry/geometryEngineJSON\"],t,r)}))}t.importGeometryEngine=v,t.getGeodesicBufferOperator=function(){return v().then((function(e){return e.geodesicBuffer}))},t.getSpatialQueryOperator=function(e,t,r,i,l){if(a.isPolygon(t)&&\"esriGeometryPoint\"===r&&(\"esriSpatialRelIntersects\"===e||\"esriSpatialRelContains\"===e)){var y=p.convertFromPolygon(new c.default,t,!1,!1);return n.resolve((function(e){return u.polygonContainsPoint(y,!1,!1,e)}))}if(a.isPolygon(t)&&\"esriGeometryMultipoint\"===r){var g=p.convertFromPolygon(new c.default,t,!1,!1);if(\"esriSpatialRelContains\"===e)return n.resolve((function(e){return u.polygonContainsMultipoint(g,!1,!1,e,i,l)}))}if(a.isExtent(t)&&\"esriGeometryPoint\"===r&&(\"esriSpatialRelIntersects\"===e||\"esriSpatialRelContains\"===e))return n.resolve((function(e){return o.extentContainsPoint(t,f.getGeometry(r,i,l,e))}));if(a.isExtent(t)&&\"esriGeometryMultipoint\"===r&&\"esriSpatialRelContains\"===e)return n.resolve((function(e){return o.extentContainsMultipoint(t,f.getGeometry(r,i,l,e))}));if(a.isExtent(t)&&\"esriSpatialRelIntersects\"===e){var R=s.getExtentIntersector(r);return n.resolve((function(e){return R(t,f.getGeometry(r,i,l,e))}))}return v().then((function(n){var o=n[m[e]].bind(null,t.spatialReference,t);return function(e){return o(f.getGeometry(r,i,l,e))}}))},t.checkSpatialQuerySupport=function(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var o,s;return r.__generator(this,(function(r){if(o=e.spatialRel,!(s=e.geometry))return[2];if(!0!==g[o])throw new i(\"feature-store:unsupported-query\",\"Unsupported query spatial relationship\",{query:e});if(!l.isValid(s.spatialReference)||!l.isValid(n))return[2];if(!function(e){return!0===R[a.getJsonType(e)]}(s))throw new i(\"feature-store:unsupported-query\",\"Unsupported query geometry type\",{query:e});if(!function(e){return!0===S[e]}(t))throw new i(\"feature-store:unsupported-query\",\"Unsupported layer geometry type\",{query:e});return e.outSR?[2,y.checkProjectionSupport(e.geometry&&e.geometry.spatialReference,e.outSR)]:[2]}))}))},t.canQueryWithRBush=function(e){if(a.isExtent(e))return!0;if(a.isPolygon(e)){for(var t=0,r=e.rings;t0})))}return e.prototype.destroy=function(){this._frameTask&&(this._frameTask.remove(),this._frameTask=null,this._frameQueue.cancelAll(),this._frameQueue=null),this.clearCache(),this._geometryQueryCache&&this._geometryQueryCache.destroy(),this._changeHandle&&(this._changeHandle.remove(),this._changeHandle=null),this.fieldsIndex.destroy()},Object.defineProperty(e.prototype,\"featureAdapter\",{get:function(){return this.featureStore.featureAdapter},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"fullExtent\",{get:function(){var e=this.featureStore.fullBounds;return e?{xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:Q.cleanFromGeometryEngine(this.spatialReference)}:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"timeExtent\",{get:function(){return this.timeInfo?this._timeExtent?this._timeExtent:(this._timeExtent=v.getTimeExtent(this.timeInfo,this.featureStore),this._timeExtent):null},enumerable:!1,configurable:!0}),e.prototype.clearCache=function(){this._geometryQueryCache&&this._geometryQueryCache.clear(),this._allItems=null,this._timeExtent=null},e.prototype.executeQuery=function(e,t){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){var t,n,s,u=this;return r.__generator(this,(function(r){switch(r.label){case 0:t=i.clone(e),r.label=1;case 1:return r.trys.push([1,8,,9]),[4,this._schedule((function(){return Q.normalizeQuery(t,u.definitionExpression,u.spatialReference)}))];case 2:return t=r.sent(),[4,this._reschedule((function(){return u._checkQuerySupport(t)}))];case 3:return t=r.sent(),[4,this._reschedule((function(){return u._executeGeometryQuery(t)}))];case 4:return n=r.sent(),[4,this._reschedule((function(){return n.executeObjectIdsQuery(t)}))];case 5:return n=r.sent(),[4,this._reschedule((function(){return n.executeTimeQuery(t)}))];case 6:return n=r.sent(),[4,this._reschedule((function(){return n.executeAttributesQuery(t)}))];case 7:return n=r.sent(),[3,9];case 8:if((s=r.sent())!==Q.QUERY_ENGINE_EMPTY_RESULT)throw s;return n=new g.default([],null,this),[3,9];case 9:return[2,n.createQueryResponse(t)]}}))}))},e.prototype.executeQueryForCount=function(e,t){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){var t,n,s,u=this;return r.__generator(this,(function(r){switch(r.label){case 0:(t=i.clone(e)).returnGeometry=!1,t.returnCentroid=!1,t.outSR=null,r.label=1;case 1:return r.trys.push([1,8,,9]),[4,this._schedule((function(){return Q.normalizeQuery(t,u.definitionExpression,u.spatialReference)}))];case 2:return t=r.sent(),[4,this._reschedule((function(){return u._checkQuerySupport(t)}))];case 3:return t=r.sent(),[4,this._reschedule((function(){return u._executeGeometryQuery(t)}))];case 4:return n=r.sent(),[4,this._reschedule((function(){return n.executeObjectIdsQuery(t)}))];case 5:return n=r.sent(),[4,this._reschedule((function(){return n.executeTimeQuery(t)}))];case 6:return n=r.sent(),[4,this._reschedule((function(){return n.executeAttributesQuery(t)}))];case 7:return n=r.sent(),[3,9];case 8:if((s=r.sent())!==Q.QUERY_ENGINE_EMPTY_RESULT)throw s;return[2,0];case 9:return[2,n.createQueryResponseForCount(t)]}}))}))},e.prototype.executeQueryForExtent=function(e,t){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){var t,n,s,u,o,a,l,f,d=this;return r.__generator(this,(function(r){switch(r.label){case 0:t=i.clone(e),s=t.outSR,r.label=1;case 1:return r.trys.push([1,8,,9]),[4,this._schedule((function(){return Q.normalizeQuery(t,d.definitionExpression,d.spatialReference)}))];case 2:return t=r.sent(),[4,this._reschedule((function(){return d._checkQuerySupport(t)}))];case 3:return(t=r.sent()).returnGeometry=!0,t.returnCentroid=!1,t.outSR=null,[4,this._reschedule((function(){return d._executeGeometryQuery(t)}))];case 4:return n=r.sent(),[4,this._reschedule((function(){return n.executeObjectIdsQuery(t)}))];case 5:return n=r.sent(),[4,this._reschedule((function(){return n.executeTimeQuery(t)}))];case 6:return n=r.sent(),[4,this._reschedule((function(){return n.executeAttributesQuery(t)}))];case 7:return n=r.sent(),(u=n.size)?(h.set(C,h.NEGATIVE_INFINITY),this.featureStore.forEachBounds(n.items,(function(e){return h.expand(C,e)}),T),o={xmin:C[0],ymin:C[1],xmax:C[3],ymax:C[4],spatialReference:Q.cleanFromGeometryEngine(this.spatialReference)},this.hasZ&&isFinite(C[2])&&isFinite(C[5])&&(o.zmin=C[2],o.zmax=C[5]),(a=_.project(o,n.spatialReference,s)).spatialReference=Q.cleanFromGeometryEngine(s||this.spatialReference),a.xmax-a.xmin==0&&(l=c.getMetersPerUnitForSR(a.spatialReference),a.xmin-=l,a.xmax+=l),a.ymax-a.ymin==0&&(l=c.getMetersPerUnitForSR(a.spatialReference),a.ymin-=l,a.ymax+=l),this.hasZ&&null!=a.zmin&&null!=a.zmax&&a.zmax-a.zmin==0&&(l=c.getMetersPerUnitForSR(a.spatialReference),a.zmin-=l,a.zmax+=l),[2,{count:u,extent:a}]):[2,{count:u,extent:null}];case 8:if((f=r.sent())===Q.QUERY_ENGINE_EMPTY_RESULT)return[2,{count:0,extent:null}];throw f;case 9:return[2]}}))}))},e.prototype.executeQueryForIds=function(e,t){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,this.executeQueryForIdSet(e,t).then((function(e){return a.valuesOfSet(e)}))]}))}))},e.prototype.executeQueryForIdSet=function(e,t){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){var t,n,s,u,o,a=this;return r.__generator(this,(function(r){switch(r.label){case 0:(t=i.clone(e)).returnGeometry=!1,t.returnCentroid=!1,t.outSR=null,r.label=1;case 1:return r.trys.push([1,9,,10]),[4,this._schedule((function(){return Q.normalizeQuery(t,a.definitionExpression,a.spatialReference)}))];case 2:return t=r.sent(),[4,this._reschedule((function(){return a._checkQuerySupport(t)}))];case 3:return t=r.sent(),[4,this._reschedule((function(){return a._executeGeometryQuery(t)}))];case 4:return n=r.sent(),[4,this._reschedule((function(){return n.executeObjectIdsQuery(t)}))];case 5:return n=r.sent(),[4,this._reschedule((function(){return n.executeTimeQuery(t)}))];case 6:return n=r.sent(),[4,this._reschedule((function(){return n.executeAttributesQuery(t)}))];case 7:return n=r.sent(),s=n.items,u=new Set,[4,this._reschedule((function(){for(var e=0,t=s;e0){var o=r.map((function(e){var t=e.toLowerCase();return t.indexOf(\" asc\")>-1?t.split(\" asc\")[0]:t.indexOf(\" desc\")>-1?t.split(\" desc\")[0]:e})).filter((function(e){return-1===u.indexOf(e)}));y.validateFields(this.fieldsIndex,o,\"orderByFields contains missing fields\")}if(t&&t.length>0)y.validateFields(this.fieldsIndex,t,\"outFields contains missing fields\");else if(i)throw new n(\"feature-store:unsupported-query\",\"outFields should be specified for returnDistinctValues\",{query:e});y.validateWhere(this.fieldsIndex,e.where)},e.prototype._checkStatisticsQuerySupport=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,i,s,u,o,a,c,h,l,f,d;return r.__generator(this,(function(r){if(t=e.outStatistics,i=e.groupByFieldsForStatistics,s=e.having,u=i&&i.length,o=t&&t.length,s){if(!u||!o)throw new n(\"feature-store:unsupported-query\",\"outStatistics and groupByFieldsForStatistics should be specified with having\",{query:e});y.validateHaving(this.fieldsIndex,s,t)}if(o){if(!function(e){return e.every((function(e){return\"exceedslimit\"!==e.statisticType}))}(t))return[2];for(a=t.map((function(e){return e.onStatisticField})),y.validateFields(this.fieldsIndex,a,\"onStatisticFields contains missing fields\"),u&&y.validateFields(this.fieldsIndex,i,\"groupByFieldsForStatistics contains missing fields\"),c=0,h=t;ct:et)?1:0}function g(e,t,r){return r?t-e:e-t}function v(e,t,r,i){if(r&&\"esriFieldTypeDate\"===r.type){var s=new Date(e).getTime(),n=new Date(t).getTime();if(!isNaN(s)&&!isNaN(n))return g(s,n,i)}if(\"number\"==typeof e&&\"number\"==typeof t)return g(e,t,i);if(\"string\"==typeof e&&\"string\"==typeof t){s=e.toUpperCase(),n=t.toUpperCase();return!r||\"esriFieldTypeGUID\"!==r.type&&\"esriFieldTypeGlobalID\"!==r.type?y(s,n,i):y(m(s),m(n),i)}return i?1:-1}Object.defineProperty(t,\"__esModule\",{value:!0});var I=function(){function e(e,t,r){this.items=e,this.queryGeometry=t,this.definitionExpression=r.definitionExpression,this.geometryType=r.geometryType,this.hasM=r.hasM,this.hasZ=r.hasZ,this.objectIdField=r.objectIdField,this.spatialReference=r.spatialReference,this.fieldsIndex=r.fieldsIndex,this.timeInfo=r.timeInfo,this.featureAdapter=r.featureAdapter}return Object.defineProperty(e.prototype,\"size\",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.createQueryResponseForCount=function(e){var t=new h.default(e,this.featureAdapter,this.fieldsIndex);if(!e.outStatistics)return t.countDistinctValues(this.items);var r=e.groupByFieldsForStatistics,i=e.having;if(!!!(null==r?void 0:r.length))return 1;for(var s=new Map,n=new Map,a=new Set,u=0,o=e.outStatistics;uo(d,a))&&u.set(c,f)}var m=i.valuesOfMap(u);return n.resolve(new e(m,this.queryGeometry,this))},e.prototype.project=function(t){return r.__awaiter(this,void 0,void 0,(function(){var i,s,n=this;return r.__generator(this,(function(r){switch(r.label){case 0:return!t||o.equals(this.spatialReference,t)?[2,this]:(i=this.featureAdapter,[4,c.projectMany(this.items.map((function(e){return d.getGeometry(n.geometryType,n.hasZ,n.hasM,i.getGeometry(e))})),this.spatialReference,t)]);case 1:return s=r.sent(),[2,new e(s.map((function(e,t){return i.cloneWithGeometry(n.items[t],l.convertFromGeometry(e,n.hasZ,n.hasM))})),this.queryGeometry,{definitionExpression:this.definitionExpression,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,objectIdField:this.objectIdField,spatialReference:t,fieldsIndex:this.fieldsIndex,timeInfo:this.timeInfo,featureAdapter:this.featureAdapter})]}}))}))},e.prototype._sortFeatures=function(e,t,r){if(e.length>1&&t&&t.length)for(var i=function(t){var i=t.split(\" \"),n=i[0],a=s.fieldsIndex.get(n),u=i[1]&&\"desc\"===i[1].toLowerCase();e.sort((function(e,t){return v(r(e,n,a),r(t,n,a),a,u)}))},s=this,n=0,a=t.reverse();n(y||0)+m,b=f&&(f.indexOf(\"*\")>-1?r.__spreadArrays(this.fieldsIndex.fields):f.map((function(e){return t.fieldsIndex.get(e)})));return{exceededTransferLimit:I,features:this._createFeatures(e,i),fields:b,geometryType:n,hasM:a&&v,hasZ:o&&g,objectIdFieldName:l,spatialReference:d.cleanFromGeometryEngine(c||h),transform:p&&u.toQuantizationTransform(p)||null}},e.prototype._createFeatures=function(e,t){var i=new h.default(e,this.featureAdapter,this.fieldsIndex),s=this.hasM,n=this.hasZ,a=e.orderByFields,o=e.quantizationParameters,l=e.returnGeometry,f=e.returnCentroid,c=e.maxAllowableOffset,p=e.resultOffset,m=e.resultRecordCount,y=e.returnZ,g=void 0!==y&&y,v=e.returnM,I=n&&g,b=s&&(void 0!==v&&v),_=[],F=0,T=r.__spreadArrays(t);if(this._sortFeatures(T,a,(function(e,t,r){return i.getFieldValue(e,t,r)})),l||f){var x=u.toQuantizationTransform(o);if(l&&!f)for(var S=0,A=T;Sr;else if(this.items.length>i)t=!0;else{var o=this.hasZ?this.hasM?4:3:this.hasM?3:2,l=this.featureAdapter;t=this.items.reduce((function(e,t){var r=l.getGeometry(t);return e+(r&&r.coords.length||0)}),0)/o>s}return{fields:[{name:\"exceedslimit\",type:\"esriFieldTypeInteger\",alias:\"exceedslimit\",sqlType:\"sqlTypeInteger\",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}},e.prototype._createStatisticsQueryResponse=function(e){for(var t=this,r={attributes:{}},s=[],n=new Map,a=new Map,u=new Map,o=new Map,l=new h.default(e,this.featureAdapter,this.fieldsIndex),f=e.outStatistics,c=e.groupByFieldsForStatistics,p=e.having,d=e.orderByFields,m=c&&c.length,y=!!m,g=y&&c[0],v=y&&!this.fieldsIndex.get(g),I=0,b=f;I1?f/(o-1):0,n=Math.sqrt(a)}else t=null,r=null;return{avg:s,count:o,max:r,min:t,stddev:n,sum:i,variance:a}},e.prototype._calculateUniqueValues=function(e){for(var t={},r=this.items,i=r.length,s=0;s=1)return e[e.length-1];var i=(e.length-1)*t,s=Math.floor(i),n=s+1,a=i%1,u=e[s],o=e[n];return n>=e.length||r||\"string\"==typeof u||\"string\"==typeof o?u:u*(1-a)+o*a},e}();t.default=I}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\"],(function(n,o){\"use strict\";function r(n,o){return n?o?4:3:o?3:2}function t(n,o,t,e,u){if(!n)return!1;for(var s=r(o,t),f=n.coords,l=!1,a=0,c=0,d=n.lengths;c=u||p=u)&&c+(u-d)/(p-d)*(g-c)1?null:t},t}();e.default=s}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\"],(function(t,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.getTimeOperator=e.getTimeExtent=void 0,e.getTimeExtent=function(t,e){if(!t)return null;var n=e.featureAdapter,r=t.startTimeField,u=t.endTimeField,i=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(r&&u)e.forEach((function(t){var e=n.getAttribute(t,r),f=n.getAttribute(t,u);null==e||isNaN(e)||(i=Math.min(i,e)),null==f||isNaN(f)||(l=Math.max(l,f))}));else{var f=r||u;e.forEach((function(t){var e=n.getAttribute(t,f);null==e||isNaN(e)||(i=Math.min(i,e),l=Math.max(l,e))}))}return{start:i,end:l}},e.getTimeOperator=function(t,e,n){if(!e||!t)return null;var r=t.startTimeField,u=t.endTimeField;if(!r&&!u)return null;var i=e.start,l=e.end;return null===i&&null===l?null:void 0===i&&void 0===l?function(){return!1}:r&&u?function(t,e,n,r,u){if(null!=r&&null!=u)return function(i){var l=t.getAttribute(i,e),f=t.getAttribute(i,n);return(null==l||l<=u)&&(null==f||f>=r)};if(null!=r)return function(e){var u=t.getAttribute(e,n);return null==u||u>=r};if(null!=u)return function(n){var r=t.getAttribute(n,e);return null==r||r<=u};return}(n,r,u,i,l):function(t,e,n,r){if(null!=n&&null!=r&&n===r)return function(r){return t.getAttribute(r,e)===n};if(null!=n&&null!=r)return function(u){var i=t.getAttribute(u,e);return i>=n&&i<=r};if(null!=n)return function(r){return t.getAttribute(r,e)>=n};if(null!=r)return function(n){return t.getAttribute(n,e)<=r};return}(n,r||u,i,l)}}));"],"sourceRoot":""}