{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/core/MD5.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/actions/OrderBy.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/sources/FeatureLayerRelated.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/sources/FeatureLayerDynamic.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/sources/FeatureLayerMemory.js","webpack:///./node_modules/arcgis-js-api/arcade/featureSetUtils.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/actions/Adapted.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/actions/Top.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/actions/AttributeFilter.js","webpack:///./node_modules/arcgis-js-api/arcade/featureSetCollection.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/actions/GroupBy.js","webpack:///./node_modules/arcgis-js-api/tasks/operations/pbfOptimizedFeatureSet.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/support/StatsField.js","webpack:///./node_modules/arcgis-js-api/arcade/featureset/support/OrderbyClause.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,CAAC,kCAAS,CAAC,OAAS,CAAC,mCAAE,cAAc,aAAa,sCAAsC,SAAS,sDAAsD,+BAA+B,gBAAgB,0BAA0B,0CAA0C,wBAAwB,iDAAiD,QAAQ,0BAA0B,6BAA6B,0BAA0B,6BAA6B,0BAA0B,0BAA0B,0BAA0B,6BAA6B,8BAA8B,kCAAkC,8CAA8C,yCAAyC,gEAAgE,WAAW,OAAO,oBAAoB,0pEAA0pE,gBAAgB,aAAa,8BAA8B,IAAI,4CAA4C,SAAS,gBAAgB,UAAU,gCAAgC,0CAA0C,mDAAmD,IAAI,sEAAsE,kBAAkB,IAAI,6CAA6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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,mCAAE,cAAc,aAAa,gBAAgB,+CAA+C,kBAAkB,cAAc,mBAAmB,oCAAoC,YAAY,WAAW,KAAK,yBAAyB,4IAA4I,8CAA8C,iBAAiB,sBAAsB,oFAAoF,SAAS,+BAA+B,WAAW,sBAAsB,YAAY,mBAAmB,KAAK,8FAA8F,0DAA0D,SAAS,GAAG,sCAAsC,YAAY,sBAAsB,8EAA8E,SAAS,uCAAuC,iBAAiB,sBAAsB,KAAK,gBAAgB,kCAAkC,WAAW,KAAK,WAAW,4CAA4C,aAAa,OAAO,kDAAkD,gBAAgB,0CAA0C,sBAAsB,uBAAuB,wGAAwG,YAAY,GAAG,GAAG;AAAA,oGAAE,C","file":"js/chunk-63f4e124.24629b99.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([\"require\",\"exports\"],(function(t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.createMD5Hash=r.outputTypes=void 0,r.outputTypes={Base64:0,Hex:1,String:2,Raw:3};function e(t,r){var e=(65535&t)+(65535&r);return(t>>16)+(r>>16)+(e>>16)<<16|65535&e}function n(t,r,n,u,o,a){return e((c=e(e(r,t),e(u,a)))<<(i=o)|c>>>32-i,n);var c,i}function u(t,r,e,u,o,a,c){return n(r&e|~r&u,t,r,o,a,c)}function o(t,r,e,u,o,a,c){return n(r&u|e&~u,t,r,o,a,c)}function a(t,r,e,u,o,a,c){return n(r^e^u,t,r,o,a,c)}function c(t,r,e,u,o,a,c){return n(e^(r|~u),t,r,o,a,c)}r.createMD5Hash=function(t,n){void 0===n&&(n=r.outputTypes.Hex);var i=n||r.outputTypes.Base64,s=function(t,r){t[r>>5]|=128<>>9<<4)]=r;for(var n=1732584193,i=-271733879,s=-1732584194,f=271733878,p=0;p>5]|=(255&t.charCodeAt(e/8))<>2]>>n%4*8+4&15)+r.charAt(t[n>>2]>>n%4*8&15));return e.join(\"\")}(s);case r.outputTypes.String:return function(t){for(var r=[],e=0,n=32*t.length;e>5]>>>e%32&255));return r.join(\"\")}(s);case r.outputTypes.Base64:return function(t){for(var r=[],e=0,n=4*t.length;e>2]>>e%4*8&255)<<16|(t[e+1>>2]>>(e+1)%4*8&255)<<8|t[e+2>>2]>>(e+2)%4*8&255,o=0;o<4;o++)8*e+6*o>32*t.length?r.push(\"=\"):r.push(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".charAt(u>>6*(3-o)&63));return r.join(\"\")}(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\",\"tslib\",\"../../languageUtils\",\"../support/FeatureSet\",\"../support/IdSet\",\"../support/OrderbyClause\",\"../../../core/promiseUtils\"],(function(e,t,n,r,i,u,o,a){\"use strict\";return function(e){function t(t){var n=e.call(this,t)||this;return n._orderbyclause=null,n.declaredClass=\"esri.arcade.featureset.actions.OrderBy\",n._maxProcessing=100,n._orderbyclause=t.orderbyclause,n._parent=t.parentfeatureset,n}return n.__extends(t,e),t.prototype._getSet=function(e){var t=this;return null===this._wset?this._ensureLoaded().then((function(){return t._getFilteredSet(\"\",null,null,t._orderbyclause,e)})).then((function(n){return t._checkCancelled(e),t._wset=n,t._wset})):a.resolve(this._wset)},t.prototype.manualOrderSet=function(e,t){var n=this;return this.getIdColumnDictionary(e,[],-1,t).then((function(e){n._orderbyclause.order(e);for(var t=new u([],[],!0,null),r=0;r0?r.tick(this._refineSetBlock(e,this._maxProcessingRate(),i)).then((function(){return u._checkCancelled(i),u.getIdColumnDictionary(e,t,n,i)})):a.resolve(t)},t.prototype._isInFeatureSet=function(e){return this._parent._isInFeatureSet(e)},t.prototype._getFeatures=function(e,t,n,r){return this._parent._getFeatures(e,t,n,r)},t.prototype._featureFromCache=function(e){if(void 0===this._featureCache[e]){var t=this._parent._featureFromCache(e);if(void 0===t)return;return null===t?null:(this._featureCache[e]=t,t)}return this._featureCache[e]},t.prototype._fetchAndRefineFeatures=function(){return a.reject(new Error(\"Fetch and Refine should not be called in this featureset\"))},t.prototype._getFilteredSet=function(e,t,n,r,i){var o=this;return this._ensureLoaded().then((function(){return o._parent._getFilteredSet(e,t,n,null===r?o._orderbyclause:r,i)})).then((function(e){var r;o._checkCancelled(i),r=new u(e._candidates.slice(0),e._known.slice(0),e._ordered,o._clonePageDefinition(e.pagesDefinition));var a=!0;return e._candidates.length>0&&(a=!1),!1===r._ordered?o.manualOrderSet(r,i).then((function(e){return!1===a&&(null===t&&null===n||(e=new u(e._candidates.slice(0).concat(e._known.slice(0)),[],e._ordered,o._clonePageDefinition(e.pagesDefinition)))),e})):r}))},t.registerAction=function(){i._featuresetFunctions.orderBy=function(e){return\"\"===e?this:new t({parentfeatureset:this,orderbyclause:new o(e)})}},t}(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\",\"tslib\",\"../../../Graphic\",\"../support/FeatureSet\",\"../support/IdSet\",\"../support/shared\",\"../../../core/promiseUtils\",\"../../../tasks/support/RelationshipQuery\"],(function(e,t,r,i,n,a,s,l,o){\"use strict\";return function(e){function t(t){var r=e.call(this,t)||this;return r.declaredClass=\"esri.arcade.featureset.sources.FeatureLayerRelated\",r._findObjectId=-1,r._requestStandardised=!1,r._removeGeometry=!1,r._overrideFields=null,r.featureObjectId=null,r.relatedLayer=null,r.relationship=null,t.spatialReference&&(r.spatialReference=t.spatialReference),r._transparent=!0,r._maxProcessing=1e3,r._layer=t.layer,r._wset=null,r._findObjectId=t.objectId,r.featureObjectId=t.objectId,r.relationship=t.relationship,r.relatedLayer=t.relatedLayer,void 0!==t.outFields&&(r._overrideFields=t.outFields),void 0!==t.includeGeometry&&(r._removeGeometry=!1===t.includeGeometry),r}return r.__extends(t,e),t.prototype._maxQueryRate=function(){return s.defaultMaxRecords},t.prototype.end=function(){return this._layer},t.prototype.optimisePagingFeatureQueries=function(){},t.prototype.load=function(){var e=this;return null===this._loadPromise&&(this._loadPromise=l.create((function(t,r){l.all([e._layer.load(),e.relatedLayer.load()]).then((function(){e._initialiseFeatureSet(),t(e)}),r)}))),this._loadPromise},t.prototype.nativeCapabilities=function(){return this.relatedLayer.nativeCapabilities()},t.prototype._initialiseFeatureSet=function(){if(null==this.spatialReference&&(this.spatialReference=this._layer.spatialReference),this.geometryType=this.relatedLayer.geometryType,this.fields=this.relatedLayer.fields.slice(0),null!==this._overrideFields)if(1===this._overrideFields.length&&\"*\"===this._overrideFields[0])this._overrideFields=null;else{for(var e=[],t=[],r=0,i=this.fields;r-1)return t;for(var r=!1,i=0,n=t;ir)))&&!(o>=r&&0===a.length);d++);return 0===a.length?l.resolve(\"success\"):l.reject(new Error(\"Unaccounted for Features. Not in Feature Collection\"))},t.prototype._refineSetBlock=function(e,t,r){return l.resolve(e)},t.prototype._stat=function(e,t,r,i,n,a,s){return l.resolve({calculated:!1})},t.prototype._canDoAggregates=function(e,t,r,i,n){return l.resolve(!1)},t.prototype.relationshipMetaData=function(){return this.relatedLayer.relationshipMetaData()},t.prototype.serviceUrl=function(){return this.relatedLayer.serviceUrl()},t.prototype.queryAttachments=function(e,t,r,i){return this.relatedLayer.queryAttachments(e,t,r,i)},t.prototype.getFeatureByObjectId=function(e,t){return this.relatedLayer.getFeatureByObjectId(e,t)},t}(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\",\"../../../Graphic\",\"../../../request\",\"../../Attachment\",\"../support/FeatureSet\",\"../support/IdSet\",\"../support/shared\",\"../support/sqlUtils\",\"../support/sqlUtils\",\"../support/stats\",\"../../../core/MD5\",\"../../../core/promiseUtils\",\"../../../geometry/support/jsonUtils\",\"../../../layers/FeatureLayer\",\"../../../layers/graphics/featureConversionUtils\",\"../../../tasks/QueryTask\",\"../../../tasks/operations/query\",\"../../../tasks/support/FeatureSet\",\"../../../tasks/support/Query\",\"../../../tasks/support/StatisticDefinition\",\"../../../tasks/operations/pbfOptimizedFeatureSet\"],(function(e,t,r,i,a,n,s,l,o,u,d,p,c,y,f,h,_,g,m,v,F,S,b){\"use strict\";return function(e){function t(t){var r=e.call(this,t)||this;return r.declaredClass=\"esri.arcade.featureset.sources.FeatureLayerDynamic\",r._removeGeometry=!1,r._overrideFields=null,r.formulaCredential=null,r._pageJustIds=!1,r._requestStandardised=!1,t.spatialReference&&(r.spatialReference=t.spatialReference),r._transparent=!0,r._maxProcessing=1e3,r._layer=t.layer,r._wset=null,void 0!==t.outFields&&(r._overrideFields=t.outFields),void 0!==t.includeGeometry&&(r._removeGeometry=!1===t.includeGeometry),r}return r.__extends(t,e),t.prototype._maxQueryRate=function(){return o.defaultMaxRecords},t.prototype.end=function(){return this._layer},t.prototype.optimisePagingFeatureQueries=function(e){this._pageJustIds=e},t.prototype.convertQueryToLruCacheKey=function(e){var t=o.stableStringify(e.toJSON());return c.createMD5Hash(t,c.outputTypes.String)},t.prototype.load=function(){var e=this;return null===this._loadPromise&&(this._loadPromise=y.create((function(t,r){try{if(!0===e._layer.loaded)return e._initialiseFeatureSet(),void t(e);e._layer.when().then((function(){try{e._initialiseFeatureSet(),t(e)}catch(e){r(e)}}),r),e._layer.load()}catch(e){r(e)}}))),this._loadPromise},t.prototype._initialiseFeatureSet=function(){if(null==this.spatialReference&&(this.spatialReference=this._layer.spatialReference),this.geometryType=this._layer.geometryType,this.fields=this._layer.fields.slice(0),this._layer.outFields)if(1===this._layer.outFields.length&&\"*\"===this._layer.outFields[0]);else{for(var e=[],t=0,r=this.fields;t=10.61&&(this._databaseType=o.FeatureServiceDatabaseType.Standardised)):null!=c&&(c>=10.5&&(this._databaseType=o.FeatureServiceDatabaseType.StandardisedNoInterval,this._requestStandardised=!0),c>=10.61&&(this._databaseType=o.FeatureServiceDatabaseType.Standardised))}this.objectIdField=this._layer.objectIdField,this.hasM=this._layer.supportsM,this.hasZ=this._layer.supportsZ,this.typeIdField=this._layer.typeIdField,this.types=this._layer.types},t.prototype._isInFeatureSet=function(){return o.IdState.InFeatureSet},t.prototype._refineSetBlock=function(e){return y.resolve(e)},t.prototype._candidateIdTransform=function(e){return e},t.prototype._getSet=function(e){var t=this;return null===this._wset?this._ensureLoaded().then((function(){return t._getFilteredSet(\"\",null,null,null,e)})).then((function(e){return t._wset=e,e})):y.resolve(this._wset)},t.prototype._runDatabaseProbe=function(e){var t=this;return y.create((function(r,i){try{t._ensureLoaded().then((function(){try{var a=new F;a.where=e.replace(\"OBJECTID\",t._layer.objectIdField),t._layer.queryObjectIds(a).then((function(){r(!0)}),(function(){try{r(!1)}catch(e){i(e)}}))}catch(e){i(e)}}))}catch(e){i(e)}}))},t.prototype._canUsePagination=function(){return!(!this._layer.capabilities||!this._layer.capabilities.query||!0!==this._layer.capabilities.query.supportsPagination)},t.prototype._cacheableFeatureSetSourceKey=function(){return this._layer.url},t.prototype.pbfSupportedForQuery=function(e){return!e.outStatistics&&this._layer&&this._layer.capabilities&&this._layer.capabilities.query&&!0===this._layer.capabilities.query.supportsFormatPBF&&!0===this._layer.capabilities.query.supportsQuantizationEditMode},t.prototype.queryPBF=function(e){return e.quantizationParameters={mode:\"edit\"},m.executeQueryPBF(this._layer.parsedUrl,e,new b.OptimizedFeatureSetParserContext({})).then((function(e){return v.fromJSON(_.convertToFeatureSet(e.data)).unquantize()}))},t.prototype.nativeCapabilities=function(){return{title:this._layer.title,source:this,canQueryRelated:!0,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:this._requestStandardised}},t.prototype.executeQuery=function(e,t){var r=this,i=new g({url:this._layer.parsedUrl.path}),a=\"execute\"===t&&this.pbfSupportedForQuery(e),n=null;if(this.recentlyUsedQueries){var s=this.convertQueryToLruCacheKey(e);null===(n=this.recentlyUsedQueries.getFromCache(s))&&(n=!0!==a?i[t](e):this.queryPBF(e),this.recentlyUsedQueries.addToCache(s,n),n=n.catch((function(e){throw r.recentlyUsedQueries.removeFromCache(s),e})))}return null===n&&(n=!0!==a?i[t](e):this.queryPBF(e)),n},t.prototype._getFilteredSet=function(e,t,r,i,a){var n=this;return this.databaseType().then((function(s){if(n.isTable()&&t&&null!==e&&\"\"!==e)return new l([],[],!0,null);if(n._canUsePagination())return n._getFilteredSetUsingPaging(e,t,r,i,a);var o=\"\",d=!1;null!==i&&n._layer.capabilities&&n._layer.capabilities.query&&!0===n._layer.capabilities.query.supportsOrderBy&&(o=i.constructClause(),d=!0);var p=new F;return p.where=null===r?null===t?\"1=1\":\"\":u.toWhereClause(r,s),n._requestStandardised&&(p.sqlFormat=\"standard\"),p.spatialRelationship=n._makeRelationshipEnum(e),p.outSpatialReference=n.spatialReference,p.orderByFields=\"\"!==o?o.split(\",\"):null,p.geometry=null===t?null:t,p.relationParameter=n._makeRelationshipParam(e),n.executeQuery(p,\"executeForIds\").then((function(e){return null===e&&(e=[]),n._checkCancelled(a),new l([],e,d,null)}))}))},t.prototype._expandPagedSet=function(e,t,r,i,a){return this._expandPagedSetFeatureSet(e,t,r,i,a)},t.prototype._getFilteredSetUsingPaging=function(e,t,r,i,a){var n=this;try{var s=\"\",o=!1;return null!==i&&this._layer.capabilities&&this._layer.capabilities.query&&!0===this._layer.capabilities.query.supportsOrderBy&&(s=i.constructClause(),o=!0),this.databaseType().then((function(i){var d=null===r?null===t?\"1=1\":\"\":u.toWhereClause(r,i);n._layer.definitionExpression&&(d=\"\"!==d?\"((\"+n._layer.definitionExpression+\") AND (\"+d+\"))\":n._layer.definitionExpression);var p=n._maxQueryRate(),c=n._layer.capabilities.query.maxRecordCount;void 0!==c&&c-1)return t;for(var r=!1,i=0,a=t;i=this._maxProcessingRate()-1))break}if(s>=r&&0===n.length)break}if(0===n.length)return y.resolve(\"success\");try{var p=new F;return this._requestStandardised&&(p.sqlFormat=\"standard\"),p.objectIds=n,p.outFields=null!==this._overrideFields?this._overrideFields:this._fieldsIncludingObjectId(this._layer.outFields?this._layer.outFields:[\"*\"]),p.returnGeometry=!0,!0===this._removeGeometry&&(p.returnGeometry=!1),p.outSpatialReference=this.spatialReference,this.executeQuery(p,\"execute\").then((function(e){if(a._checkCancelled(i),void 0!==e.error)return y.reject(new Error(e.error));for(var t=0;t=s)break}return 0===u.features.length?l:u.features.length===d._layer.capabilities.query.maxRecordCount&&l.length=0)return\"relation\";switch(e){case\"esriSpatialRelRelation\":return\"relation\";case\"esriSpatialRelIntersects\":return\"intersects\";case\"esriSpatialRelContains\":return\"contains\";case\"esriSpatialRelOverlaps\":return\"overlaps\";case\"esriSpatialRelWithin\":return\"within\";case\"esriSpatialRelTouches\":return\"touches\";case\"esriSpatialRelCrosses\":return\"crosses\";case\"esriSpatialRelEnvelopeIntersects\":return\"envelope-intersects\"}return e},t.prototype._makeRelationshipParam=function(e){return e.indexOf(\"esriSpatialRelRelation\")>=0?e.split(\":\")[1]:\"\"},t.prototype._getAggregatePagesDataSourceDefinition=function(e,t,r,i,a,n,s){var o=this;return this._ensureLoaded().then((function(){return o.databaseType()})).then((function(d){var p=\"\",c=!1,y=!1;null!==n&&o._layer.capabilities&&o._layer.capabilities.query&&!0===o._layer.capabilities.query.supportsOrderBy&&(p=n.constructClause(),y=!0),o._layer.capabilities&&o._layer.capabilities.query&&!1===o._layer.capabilities.query.supportsPagination&&(y=!1,c=!0,p=o._layer.objectIdField);for(var f=[],h=0;h\"+e.pagesDefinition.internal.lastMaxId.toString()+\")\":e.pagesDefinition.generatedOid+\">\"+e.pagesDefinition.internal.lastMaxId.toString());var s=e.pagesDefinition.internal.lastRetrieved,l=s,o=e.pagesDefinition.internal.lastPage,u=new F;return this._requestStandardised&&(u.sqlFormat=\"standard\"),u.where=n,u.spatialRelationship=e.pagesDefinition.spatialRel,u.relationParameter=e.pagesDefinition.relationParam,u.outFields=e.pagesDefinition.outFields,u.outStatistics=e.pagesDefinition.outStatistics,u.geometry=e.pagesDefinition.geometry,u.groupByFieldsForStatistics=e.pagesDefinition.groupByFieldsForStatistics,u.num=e.pagesDefinition.resultRecordCount,u.start=e.pagesDefinition.internal.lastPage,u.returnGeometry=e.pagesDefinition.returnGeometry,u.orderByFields=\"\"!==e.pagesDefinition.orderByFields?e.pagesDefinition.orderByFields.split(\",\"):null,this.isTable()&&u.geometry&&u.spatialRelationship?y.resolve([]):this.executeQuery(u,\"execute\").then((function(t){if(a._checkCancelled(r),!t.hasOwnProperty(\"features\"))return y.reject(new Error(\"Unnexected Result querying aggregates from layer\"));var n=[];if(e.pagesDefinition.internal.lastPage!==o)return[];for(var u=0;u0||r&&r>0)&&(s.size=[t&&t>0?t:0,r&&r>0?r:t+1]),i&&i.length>0&&(s.attachmentTypes=i),this._layer.queryAttachments(s).then((function(t){var r=[];return t&&t[e]&&t[e].forEach((function(t){var i=a._layer.parsedUrl.path+\"/\"+e.toString()+\"/attachments/\"+t.id.toString();r.push(new n(t.id,t.name,t.contentType,t.size,i))})),r}))}return y.resolve([])},t.prototype.queryRelatedFeatures=function(e){var t={f:\"json\",relationshipId:e.relationshipId.toString(),definitionExpression:e.where,outFields:e.outFields.join(\",\"),returnGeometry:e.returnGeometry.toString()};return void 0!==e.resultOffset&&null!==e.resultOffset&&(t.resultOffset=e.resultOffset.toString()),void 0!==e.resultRecordCount&&null!==e.resultRecordCount&&(t.resultRecordCount=e.resultRecordCount.toString()),e.orderByFields&&(t.orderByFields=e.orderByFields.join(\",\")),e.objectIds.length>0&&(t.objectIds=e.objectIds.join(\",\")),e.outSpatialReference&&(t.outSR=JSON.stringify(e.outSpatialReference.toJSON())),a(this._layer.parsedUrl.path+\"/queryRelatedRecords\",{responseType:\"json\",query:t}).then((function(e){if(e.data){var t={},r=e.data;if(r&&r.relatedRecordGroups)for(var a=r.spatialReference,n=0,s=r.relatedRecordGroups;n=0)return\"relation\";switch(e){case\"esriSpatialRelRelation\":return\"relation\";case\"esriSpatialRelIntersects\":return\"intersects\";case\"esriSpatialRelContains\":return\"contains\";case\"esriSpatialRelOverlaps\":return\"overlaps\";case\"esriSpatialRelWithin\":return\"within\";case\"esriSpatialRelTouches\":return\"touches\";case\"esriSpatialRelCrosses\":return\"crosses\";case\"esriSpatialRelEnvelopeIntersects\":return\"envelope-intersects\"}return e},t.prototype._makeRelationshipParam=function(e){return e.indexOf(\"esriSpatialRelRelation\")>=0?e.split(\":\")[1]:\"\"},t.prototype._queryAllFeatures=function(){var e=this;if(this._wset)return o.resolve(this._wset);var t=new y;return t.where=\"1=1\",this._ensureLoaded().then((function(){if(e._layer.source&&e._layer.source.items){var r=[];return e._layer.source.items.forEach((function(t){var i=t.attributes[e._layer.objectIdField];r.push(i),e._featureCache[i]=e._changeFeature(t)})),e._wset=new s([],r,!1,null),e._wset}return e._layer.queryFeatures(t).then((function(t){var r=[];return t.features.forEach((function(t){var i=t.attributes[e._layer.objectIdField];r.push(i),e._featureCache[i]=e._changeFeature(t)})),e._wset=new s([],r,!1,null),e._wset}))}))},t.prototype._getFeatures=function(e,t,r){var i=[];-1!==t&&void 0===this._featureCache[t]&&i.push(t);for(var a=e._lastFetchedIndex;ar)));a++);return 0===i.length?o.resolve(\"success\"):o.reject(new Error(\"Unaccounted for Features. Not in Feature Collection\"))},t.prototype._refineSetBlock=function(e){return o.resolve(e)},t.prototype._stat=function(){return o.resolve({calculated:!1})},t.prototype._canDoAggregates=function(){return o.resolve(!1)},t.prototype.relationshipMetaData=function(){return[]},t._cloneAttr=function(e){var t={};for(var r in e)t[r]=e[r];return t},t.prototype.nativeCapabilities=function(){return{title:this._layer.title,canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}},t.create=function(e,r){var i=e.layerDefinition.objectIdField,a=e.layerDefinition.typeIdField?e.layerDefinition.typeIdField:\"\",s=[];if(e.layerDefinition.types)for(var n=0,l=e.layerDefinition.types;n=4&&(i.push(\"STATUS\"),i.push(\"PERCENTALONG\")),F(e+\"/\"+a.systemLayers.associationsTableId.toString(),t,r.__spreadArrays([\"OBJECTID\",\"FROMNETWORKSOURCEID\",\"TONETWORKSOURCEID\",\"FROMGLOBALID\",\"TOGLOBALID\",\"TOTERMINALID\",\"FROMTERMINALID\",\"ASSOCIATIONTYPE\",\"ISCONTENTVISIBLE\",\"GLOBALID\"],i),!1,null).then((function(e){return e.load()})).then((function(e){return n.unVersion>=4?(e=e.filter(y.WhereClause.create(\"STATUS NOT IN (1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 62,63)\",e.getFieldsIndex()))).load():e})).then((function(e){return{lkp:n.lkp,associations:e,unVersion:n.unVersion,terminals:n.terminals}}))}return{associations:null,unVersion:n.unVersion,lkp:null,terminals:[]}}))}return{associations:null,unVersion:n.unVersion,lkp:null,terminals:[]}}))}return{associations:null,unVersion:n.unVersion,lkp:null,terminals:[]}}))},t.constructFeatureSetFromRelationship=function(e,t,r,a,n,i,l){void 0===a&&(a=null),void 0===n&&(n=null),void 0===i&&(i=!0),void 0===l&&(l=null);var o=e.serviceUrl();return o?F(o=\"/\"===o.charAt(o.length-1)?o+t.relatedTableId.toString():o+\"/\"+t.relatedTableId.toString(),a,n,i,l).then((function(o){return new f({layer:e,relatedLayer:o,relationship:t,objectId:r,spatialReference:a,outFields:n,includeGeometry:i,lrucache:l})})):null};var C=function(e){function t(t,r,a){void 0===r&&(r=null),void 0===a&&(a=null);var n=e.call(this)||this;return n._map=t,n._overridespref=r,n.lrucache=a,n._instantLayers=[],n}return r.__extends(t,e),t.prototype.makeAndAddFeatureSet=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var a=I(e,this._overridespref,null===r?[\"*\"]:r,t,this.lrucache);return this._instantLayers.push({featureset:a,opitem:e,includeGeometry:t,outFields:JSON.stringify(r)}),a},t.prototype.featureSetByName=function(e,t,a){var n=this;if(void 0===t&&(t=!0),void 0===a&&(a=null),void 0!==this._map.loaded&&void 0!==this._map.load&&!1===this._map.loaded)return this._map.load().then((function(){try{return n.featureSetByName(e,t,a)}catch(e){return p.reject(e)}}));null===a&&(a=[\"*\"]),a=(a=a.slice(0)).sort();for(var i=JSON.stringify(a),l=0;l=0?{rewritten:!1,where:e}:{rewritten:this.sqlRewritable,where:h.WhereClause.create(a,r._parent.getFieldsIndex())}},t.prototype.evaluateNodeToWhereClause=function(e,r,a,i,n){var l,s,u,h;switch(void 0===a&&(a=null),void 0===i&&(i=null),e.type){case\"interval\":return o.convertIntervalToSql(this.evaluateNodeToWhereClause(e.value,r,a,i,n),e.qualifier,e.op);case\"case_expression\":var d=\" CASE \";\"simple\"===e.format&&(d+=this.evaluateNodeToWhereClause(e.operand,r,a,t.BADNESS,n));for(var c=0;c\":case\"=\":if(\"column_ref\"===e.left.type&&\"string\"===e.right.type){if(e.left.column.toUpperCase()===this.field.name.toUpperCase()&&void 0!==this.lkp[e.right.value.toString()])return\" (\"+i+\" \"+e.operator+\" \"+this.lkp[e.right.value.toString()].toString()+\") \"}else if(\"column_ref\"===e.right.type&&\"string\"===e.left.type&&e.right.column.toUpperCase()===this.field.name.toUpperCase())return\" (\"+this.lkp[e.right.value.toString()].toString()+\" \"+e.operator+\" \"+i+\") \";return\" (\"+this.evaluateNodeToWhereClause(e.left,r,a,t.BADNESS,n)+\" \"+e.operator+\" \"+this.evaluateNodeToWhereClause(e.right,r,a,t.BADNESS,n)+\") \";case\"<\":case\">\":case\">=\":case\"<=\":case\"*\":case\"-\":case\"+\":case\"/\":return\" (\"+this.evaluateNodeToWhereClause(e.left,r,a,t.BADNESS,n)+\" \"+e.operator+\" \"+this.evaluateNodeToWhereClause(e.right,r,a,t.BADNESS,n)+\") \"}throw new Error(\"Not Supported Operator \"+e.operator);case\"null\":return\"null\";case\"bool\":return!0===e.value?\"1\":\"0\";case\"string\":return\"'\"+e.value.toString().replace(/'/g,\"''\")+\"'\";case\"timestamp\":case\"date\":return o.makeDateString(e.value,r);case\"number\":return e.value.toString();case\"current_time\":return o.makeToday(\"date\"===e.mode,r);case\"column_ref\":return a&&a.toLowerCase()===e.column.toLowerCase()?\"(\"+i+\")\":e.column;case\"function\":var y=this.evaluateNodeToWhereClause(e.args,r,a,t.BADNESS,n);return o.translateFunctionToDatabaseSpecific(e.name,y,r)}throw new Error(\"Unsupported sql syntax \"+e.type)},t.prototype.extractValue=function(e){return this.codefield instanceof h.WhereClause?this.reverseLkp[this.codefield.calculateValueCompiled(e)]:this.reverseLkp[e.attributes[this.codefield]]},t.BADNESS=\"_!!!_BAD_LKP_!!!!\",t}(c);t.StringToCodeAdapted=v;var g=function(e){function t(t,r){var a=e.call(this)||this;return a.field=t,a.sql=r,a}return r.__extends(t,e),t.prototype.rewriteSql=function(e,t){return{rewritten:!0,where:o.reformulateWithoutField(e,this.field.name,o.toWhereClause(this.sql,s.FeatureServiceDatabaseType.Standardised),t.getFieldsIndex())}},t.prototype.extractValue=function(e){return this.sql.calculateValueCompiled(e)},t}(c);t.SqlExpressionAdapted=g;var _=function(e){function t(t){var r=e.call(this,t)||this;return r._calcFunc=null,r.declaredClass=\"esri.arcade.featureset.actions.Adapted\",r.adaptedFields=null,r._extraFilter=null,r._extraFilter=t.extraFilter,r._parent=t.parentfeatureset,r._maxProcessing=30,r.adaptedFields=t.adaptedFields,r}return r.__extends(t,e),t.findField=function(e,t){for(var r=0,a=e;r=h-1)));c++);if(0===o.length)return u.resolve(\"success\");e=new l([],o,e._ordered,null);var p=Math.min(o.length,r);return this._parent._getFeatures(e,-1,p,n).then((function(){s._checkCancelled(n);for(var e=[],t=0;t0&&(a=a.replaceFields(d))}return null!==r?null!==this._extraFilter&&(r=o.combine(this._extraFilter,r)):r=this._extraFilter,this._ensureLoaded().then((function(){return s._parent._getFilteredSet(e,t,r,a,i)})).then((function(e){return s._checkCancelled(i),!0===n?new l(e._candidates.slice(0).concat(e._known.slice(0)),[],!0===h&&e._ordered,s._clonePageDefinition(e.pagesDefinition)):new l(e._candidates.slice(0),e._known.slice(0),!0===h&&e._ordered,s._clonePageDefinition(e.pagesDefinition))}))},t.prototype.reformulateWithoutAdaptions=function(e){var t={cannot:!1,where:e};if(null!==e)for(var r=0,a=this.adaptedFields;re._topnum&&(e._wset._known=e._wset._known.slice(0,e._topnum)),e._setKnownLength(e._wset)>=e._topnum&&(e._wset._candidates=[]),e._wset})):o.resolve(this._wset)},e.prototype._setKnownLength=function(t){return t._known.length>0&&\"GETPAGES\"===t._known[t._known.length-1]?t._known.length-1:t._known.length},e.prototype._isInFeatureSet=function(t){var e=this._parent._isInFeatureSet(t);if(e===a.IdState.NotInFeatureSet)return e;var n=this._idstates[t];return n===a.IdState.InFeatureSet||n===a.IdState.NotInFeatureSet?n:e===a.IdState.InFeatureSet&&void 0===n?this._countedinthis._topnum&&(e=this._topnum),this._countedin>=this._topnum&&t.pagesDefinition.internal.set.length<=t.pagesDefinition.resultOffset){var i=t._known.length;return i>0&&\"GETPAGES\"===t._known[i-1]&&(t._known.length=i-1),(i=t._candidates.length)>0&&\"GETPAGES\"===t._candidates[i-1]&&(t._candidates.length=i-1),o.resolve(\"success\")}return this._parent._expandPagedSet(t,e,n,r,s).then((function(e){return a._setKnownLength(t)>a._topnum&&(t._known.length=a._topnum),a._setKnownLength(t)>=a._topnum&&(t._candidates.length=0),e}))},e.prototype._getFeatures=function(t,e,n,r){var a=this,i=[],u=this._maxQueryRate();if(!0===this._checkIfNeedToExpandKnownPage(t,u))return this._expandPagedSet(t,u,0,0,r).then((function(){return a._getFeatures(t,e,n,r)}));-1!==e&&void 0===this._featureCache[e]&&i.push(e);for(var _=0,h=t._lastFetchedIndex;hu-1)));h++);if(0===i.length)return o.resolve(\"success\");var d=new s([],i,!1,null),c=Math.min(i.length,n);return this._parent._getFeatures(d,-1,c,r).then((function(){for(var t=0;t=this._topnum)break}else if(i===a.IdState.NotInFeatureSet)null===r?r={start:o,end:o}:r.end===o-1?r.end=o:(s.push(r),r={start:o,end:o}),n+=1;else if(i===a.IdState.Unknown)break;if(n>=e)break}null!==r&&s.push(r);for(var u=s.length-1;u>=0;u--)t._candidates.splice(s[u].start,s[u].end-s[u].start+1);this._setKnownLength(t)>this._topnum&&(t._known=t._known.slice(0,this._topnum)),this._setKnownLength(t)>=this._topnum&&(t._candidates=[])},e.prototype._stat=function(){return o.resolve({calculated:!1})},e.prototype._canDoAggregates=function(){return o.resolve(!1)},e.registerAction=function(){r._featuresetFunctions.top=function(t){return new e({parentfeatureset:this,topnum:t})}},e}(r)}));","// 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\",\"../support/FeatureSet\",\"../support/IdSet\",\"../support/shared\",\"../support/sqlUtils\",\"../../../core/promiseUtils\",\"../../../core/sql/WhereClause\",\"../../../geometry/SpatialReference\"],(function(e,t,n,r,s,i,a,u,l,o){\"use strict\";return function(e){function t(t){var n=e.call(this,t)||this;return n.declaredClass=\"esri.arcade.featureset.actions.AttributeFilter\",n._maxProcessing=1e3,n._parent=t.parentfeatureset,t.whereclause instanceof l.WhereClause?(n._whereclause=t.whereclause,n._whereClauseFunction=null):(n._whereClauseFunction=t.whereclause,n._whereclause=null),n}return n.__extends(t,e),t.prototype._initialiseFeatureSet=function(){null!==this._parent?(this.fields=this._parent.fields.slice(0),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types):(this.fields=[],this.typeIdField=\"\",this.objectIdField=\"\",this.spatialReference=new o({wkid:4326}),this.geometryType=i.layerGeometryEsriConstants.point)},t.prototype._getSet=function(e){var t=this;return null===this._wset?this._ensureLoaded().then((function(){return t._parent._getFilteredSet(\"\",null,t._whereclause,null,e)})).then((function(n){return t._checkCancelled(e),null!==t._whereClauseFunction?t._wset=new s(n._candidates.slice(0).concat(n._known.slice(0)),[],n._ordered,t._clonePageDefinition(n.pagesDefinition)):t._wset=new s(n._candidates.slice(0),n._known.slice(0),n._ordered,t._clonePageDefinition(n.pagesDefinition)),t._wset})):u.resolve(this._wset)},t.prototype._isInFeatureSet=function(e){var t=this._parent._isInFeatureSet(e);return t===i.IdState.NotInFeatureSet?t:void 0===(t=this._idstates[e])?i.IdState.Unknown:t},t.prototype._getFeature=function(e,t,n){return this._parent._getFeature(e,t,n)},t.prototype._getFeatures=function(e,t,n,r){return this._parent._getFeatures(e,t,n,r)},t.prototype._featureFromCache=function(e){return this._parent._featureFromCache(e)},t.prototype.executeWhereClause=function(e){return this._whereclause.testFeature(e)},t.prototype.executeWhereClauseDeferred=function(e){if(null!==this._whereClauseFunction)try{var t=this._whereClauseFunction(e);return u.isPromiseLike(t)?t:u.resolve(t)}catch(e){return u.reject(e)}return u.resolve(this.executeWhereClause(e))},t.prototype._fetchAndRefineFeatures=function(e,t,n){var r=this,a=new s([],e,!1,null),l=Math.min(t,e.length);return this._parent._getFeatures(a,-1,l,n).then((function(){if(r._checkCancelled(n),null==r._whereClauseFunction){for(var s=0;s0)for(var G=0,W=this._parent.fields;G0&&(g=new a.AdaptedFeatureSet({parentfeatureset:o._parent,adaptedFields:o._adaptedFields,extraFilter:null})),!0===c.nowhereclause)f=new d([\"GETPAGES\"],[],!1,{aggregatefeaturesetpagedefinition:!0,resultOffset:0,resultRecordCount:o._maxQuery,internal:{fullyResolved:!1,workingItem:null,type:\"manual\",iterator:null,set:[],subfeatureset:new l({parentfeatureset:g,orderbyclause:new u(o.phsyicalgroupbyfields.join(\",\")+\",\"+o._parent.objectIdField+\" ASC\")})}});else{var h=g;if(null!==i){var _=null;i&&(_=o._reformulateWhereClauseWithoutGroupByFields(i)),h=new s({parentfeatureset:h,whereclause:_})}f=new d([\"GETPAGES\"],[],!1,{aggregatefeaturesetpagedefinition:!0,resultOffset:0,resultRecordCount:o._maxQuery,internal:{fullyResolved:!1,workingItem:null,type:\"manual\",iterator:null,set:[],subfeatureset:new l({parentfeatureset:h,orderbyclause:new u(o.phsyicalgroupbyfields.join(\",\")+\",\"+o._parent.objectIdField+\" ASC\")})}})}return f}))},t.prototype._reformulateWhereClauseWithoutStatsFields=function(e){for(var t=0,i=this._decodedStatsfield;t0?e.replaceFields(t):e},t.prototype._clonePageDefinition=function(e){return null===e?null:!0===e.aggregatefeaturesetpagedefinition?{aggregatefeaturesetpagedefinition:!0,resultRecordCount:e.resultRecordCount,resultOffset:e.resultOffset,internal:e.internal}:this._parent._clonePageDefinition(e)},t.prototype._refineSetBlock=function(e,t,i){var r=this;try{if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQuery))return this._expandPagedSet(e,this._maxQuery,0,0,i).then((function(){return r._refineSetBlock(e,t,i)}));this._checkCancelled(i);var n=e._candidates.length;this._refineKnowns(e,t);e._candidates.length;return e._candidates.length,y.resolve(e)}catch(e){return y.reject(e)}},t.prototype._expandPagedSet=function(e,t,i,r,n){return this._expandPagedSetFeatureSet(e,t,i,r,n)},t.prototype._getPhysicalPage=function(e,t,i){var n=this;return!0===e.pagesDefinition.aggregatefeaturesetpagedefinition?y.create((function(t,r){n._sequentialGetPhysicalItem(e,e.pagesDefinition.resultRecordCount,i,[]).then((function(e){t(e)}),r)})):this._getAgregagtePhysicalPage(e,t,i).then((function(e){for(var t=0,i=e;t1)throw new Error(\"Statistic does not have 1 or 0 Parameters\");var r=a.WhereClause.create(n.toWhereClauseFromTree(e.parseTree.args.value[0],t.FeatureServiceDatabaseType.Standardised,e.parameters),e.fieldsIndex);return{name:e.parseTree.name,expr:r}}return null}(l);if(null===u)throw new Error(\"Invalid Statistic Function\");var p=u.name.toUpperCase().trim();if(\"MIN\"===p){if(o.typeofstat=\"MIN\",o.workingexpr=u.expr,null===l)throw new Error(\"Invalid Statistic Function Parameters\")}else if(\"MAX\"===p){if(o.typeofstat=\"MAX\",o.workingexpr=u.expr,null===l)throw new Error(\"Invalid Statistic Function Parameters\")}else if(\"COUNT\"===p)o.typeofstat=\"COUNT\",o.workingexpr=u.expr;else if(\"STDEV\"===p){if(o.typeofstat=\"STDDEV\",o.workingexpr=u.expr,null===l)throw new Error(\"Invalid Statistic Function Parameters\")}else if(\"SUM\"===p){if(o.typeofstat=\"SUM\",o.workingexpr=u.expr,null===l)throw new Error(\"Invalid Statistic Function Parameters\")}else if(\"MEAN\"===p){if(o.typeofstat=\"AVG\",o.workingexpr=u.expr,null===l)throw new Error(\"Invalid Statistic Function Parameters\")}else if(\"AVG\"===p){if(o.typeofstat=\"AVG\",o.workingexpr=u.expr,null===l)throw new Error(\"Invalid Statistic Function Parameters\")}else{if(\"VAR\"!==p)throw new Error(\"Invalid Statistic Function\");if(o.typeofstat=\"VAR\",o.workingexpr=u.expr,null===l)throw new Error(\"Invalid Statistic Function Parameters\")}return o},e.prototype.toStatisticsName=function(){switch(this.typeofstat.toUpperCase()){case\"MIN\":return\"min\";case\"MAX\":return\"max\";case\"SUM\":return\"sum\";case\"COUNT\":return\"count\";case\"VAR\":return\"var\";case\"STDDEV\":return\"stddev\";case\"AVG\":return\"avg\";default:return\"count\"}},e}()}));","// 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\";function r(t,e){return t===e?0:null===t?-1:null===e?1:t