/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../chunks/_rollupPluginBabelHelpers","./utils","../../../statistics/utils"],(function(a,e,i,t){"use strict";function n(a){return l.apply(this,arguments)}function l(){return(l=e._asyncToGenerator((function*(a){const{attribute:e,features:n}=a,{normalizationType:l,normalizationField:o,minValue:s,maxValue:r,fieldType:u}=e,m=yield i.getDataValues({field:e.field,valueExpression:e.valueExpression,normalizationType:l,normalizationField:o,normalizationTotal:e.normalizationTotal,viewInfoParams:e.viewInfoParams,fieldInfos:e.fieldInfos},n),f=t.isNullCountSupported({normalizationType:l,normalizationField:o,minValue:s,maxValue:r}),c={value:.5,fieldType:u},d="esriFieldTypeString"===u?t.calculateStringStatistics({values:m,supportsNullCount:f,percentileParams:c}):t.calculateStatistics({values:m,minValue:s,maxValue:r,useSampleStdDev:!l,supportsNullCount:f,percentileParams:c});return t.processSummaryStatisticsResult(d,"esriFieldTypeDate"===u)}))).apply(this,arguments)}function o(a){return s.apply(this,arguments)}function s(){return(s=e._asyncToGenerator((function*(a){const{attribute:e,features:n}=a,l=yield i.getDataValues({field:e.field,valueExpression:e.valueExpression,viewInfoParams:e.viewInfoParams,fieldInfos:e.fieldInfos},n),o=t.calculateUniqueValuesCount(l);return t.createUVResult(o,e.domain,e.returnAllCodedValues)}))).apply(this,arguments)}function r(a){return u.apply(this,arguments)}function u(){return(u=e._asyncToGenerator((function*(a){const{attribute:e,features:n}=a,{field:l,normalizationType:o,normalizationField:s,normalizationTotal:r,classificationMethod:u}=e,m=yield i.getDataValues({field:l,valueExpression:e.valueExpression,normalizationType:o,normalizationField:s,normalizationTotal:r,viewInfoParams:e.viewInfoParams,fieldInfos:e.fieldInfos},n),f=t.calculateClassBreaks(m,{field:l,normalizationType:o,normalizationField:s,normalizationTotal:r,classificationMethod:u,standardDeviationInterval:e.standardDeviationInterval,numClasses:e.numClasses,minValue:e.minValue,maxValue:e.maxValue});return t.resolveCBResult(f,u)}))).apply(this,arguments)}function m(a){return f.apply(this,arguments)}function f(){return(f=e._asyncToGenerator((function*(a){const{attribute:e,features:n}=a,{field:l,normalizationType:o,normalizationField:s,normalizationTotal:r,classificationMethod:u}=e,m=yield i.getDataValues({field:l,valueExpression:e.valueExpression,normalizationType:o,normalizationField:s,normalizationTotal:r,viewInfoParams:e.viewInfoParams,fieldInfos:e.fieldInfos},n);return t.calculateHistogram(m,{field:l,normalizationType:o,normalizationField:s,normalizationTotal:r,classificationMethod:u,standardDeviationInterval:e.standardDeviationInterval,numBins:e.numBins,minValue:e.minValue,maxValue:e.maxValue})}))).apply(this,arguments)}function c(a){return d.apply(this,arguments)}function d(){return(d=e._asyncToGenerator((function*(a){const{attribute:e,features:t}=a,{field:n,radius:l,fieldOffset:o,transform:s,spatialReference:r,size:u}=e,m=i.quantizeFeatures(t,s,r,u),{count:f,min:c,max:d,mean:p,stdDev:y}=i.calculateHeatmapStats(m,l,o,n,u[0],u[1]);return{count:f,min:c,max:d,avg:p,stddev:y}}))).apply(this,arguments)}a.classBreaks=r,a.heatmapStatistics=c,a.histogram=m,a.summaryStatistics=n,a.uniqueValues=o,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
