// All material copyright ESRI, All Rights Reserved, unless otherwise specified.// See https://js.arcgis.com/4.6/esri/copyright.txt for details.//>>builtdefine(["dojo/_base/lang","../request","../geometry/support/normalizeUtils","./Task","./support/IdentifyResult"],function(c,e,f,g,h){returng.createSubclass({declaredClass:"esri.tasks.IdentifyTask",properties:{gdbVersion:{value:null,type:String},parsedUrl:{get:function(){vara=this._parseUrl(this.url);a.path+="/identify";returna}},url:{}},execute:function(a,d){returnf.normalizeCentralMeridian(a.geometry?[a.geometry]:[]).then(function(b){b=this._encode(c.mixin({},this.parsedUrl.query,{f:"json"},a.toJSON({geometry:b&&b[0]})));this.gdbVersion&&(b.gdbVersion=this.gdbVersion);b={query:b,callbackParamName:"callback"};if(this.requestOptions||d)b=c.mixin({},this.requestOptions,d,b);returne(this.parsedUrl.path,b)}.bind(this)).then(this._handleExecuteResponse)},_handleExecuteResponse:function(a){a=a.data;a.results=(a.results||[]).map(function(a){returnh.fromJSON(a)});returna}})});