
var esri=function(){var _1=function(){var _2=function(){var _3=4326;var _4=102113;var _5="{*}";var _6="kmz";var _7="json";var _8=256;var _9=256;var _a=0;var _b=19;var _c=[156543.039989205,78271.5200078317,39135.7599906866,19567.880000635,9783.9400003175,4891.96999883583,2445.98499994708,1222.99250010583,611.496250052917,305.748124894166,152.8740625,76.4370312632292,38.2185156316146,19.1092578131615,9.55462890525781,4.77731445262891,2.38865722657904,1.19432861315723,0.597164306578613,0.298582153289307];var _d=window.GBrowserIsCompatible?true:false;var _e=!_d;var _f={polylineStrokeColor:"#ff0000",polylineStrokeWeight:5,polylineStrokeOpacity:0.75,polygonFillColor:"#0000ff",polygonFillOpacity:0.3,polygonStrokeColor:"#0000ff",polygonStrokeWeight:2,polygonStrokeOpacity:0.75,geometryServiceUrl:null,proxyUrl:null,alwaysUseProxy:false};var _10=function(_11,_12,_13,_14){if(_11&&_12){var arg=[_11,_12];arg=arg.concat(_14);GEvent.trigger.apply(null,arg);}if(_13){_13.apply(null,_14);}};var _16=function(_17){var j;if(_17&&(/^[\],:{}\s]*$/.test(_17.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(:?[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))){j=eval("("+_17+")");return j;}throw new Error("Error: Invalid JSON");};var _19=function(_1a){if(_1a){if(_1a instanceof Array||(typeof _1a.length==="number"&&!(_1a.propertyIsEnumerable("length"))&&typeof _1a.splice==="function")){return true;}}return false;};var _1b=function(_1c){return(typeof _1c==="function"||_1c instanceof Function);};var _1d=function(_1e){if(typeof _1e==="undefined"){return false;}return(_1e===null||typeof _1e==="object"||_19(_1e)||_1b(_1e));};var _1f=function(_20){if(_20===undefined||_20===null||_20===""){return false;}else{return true;}};var _21=function(_22){return(typeof _22==="string"||_22 instanceof String);};var _23=function(arr,_25){if(arr&&arr.length){for(var i=0,il=arr.length;i<il;i++){if(arr[i]===_25){return i;}}}return-1;};var _28=function(url){var ret={};var idx=url.indexOf("?");if(idx===-1){ret.path=url;ret.query={};}else{ret.path=url.substring(0,idx);var q=(ret.query={});var str=url.substring(idx+1);var qp=str.split("&");var dec=decodeURIComponent;for(var i=0,il=qp.length;i<il;i++){var it=qp[i];if(it.length){var _33=it.split("=");var _34=dec(_33.shift());var val=dec(_33.join("="));if(_1f(q[_34])){q[_34]=[q[_34]];}if(_19(q[_34])){q[_34].push(val);}else{q[_34]=val;}}}}return ret;};var _36=function(url,_38){var tok=_38.token;if(_1f(tok)){url+=("?token="+encodeURIComponent(tok));}return url;};var _3a=function(_3b){var _3c=0;var _3d=_3b.length;var p1,p2;for(var i=0;i<_3d;i++){p1=_3b[i];p2=_3b[(i+1)%_3d];_3c+=((p1[0]*p2[1])-(p2[0]*p1[1]));}if((_3c/2)>0){return _3b.reverse();}return _3b;};var _41=function(obj){if(obj){for(var x in obj){if(obj.hasOwnProperty(x)){return true;}}}return false;};var _44=function(obj){var _46;if(!obj){return obj;}if(_19(obj)){_46=[];for(var i=0,il=obj.length;i<il;i++){_46.push(_44(obj[i]));}return _46;}else{if(_1d(obj)){_46=new obj.constructor();for(var x in obj){if(!(x in _46)||_46[x]!==obj[x]){_46[x]=_44(obj[x]);}}return _46;}}return obj;};var _4a=function(_4b,_4c){var _4d="";if(_4b===_5){for(var x in _4c){if(_4c.hasOwnProperty(x)){_4d+=("<b>"+x+": </b>"+_4c[x]+"<br/>");}}}else{_4d=_4b.replace(/\{([^\s\:\}]+)\}/g,function(_4f,key){var _51=_4c[key];if(_51===undefined||_51===null){_51=_4f;}return _51;});}return _4d;};var _52=function(_53){var _54={gmapsType:null,esriType:null};var gm=null,es=null;if(_53 instanceof GLatLng){gm="GLatLng";es="esriGeometryPoint";}else{if(_53 instanceof GMarker){gm="GMarker";es="esriGeometryPoint";}else{if(_53 instanceof GLatLngBounds){gm="GLatLngBounds";es="esriGeometryEnvelope";}else{if(_53 instanceof GPolyline){gm="GPolyline";es="esriGeometryPolyline";}else{if(_53 instanceof GPolygon){gm="GPolygon";es="esriGeometryPolygon";}else{if(_19(_53)){_54=_52(_53[0]);if(_54.gmapsType){_54.gmapsType+="[]";if(_54.esriType==="esriGeometryPoint"){_54.esriType="esriGeometryMultipoint";}}return _54;}}}}}}_54.gmapsType=gm;_54.esriType=es;return _54;};var _57=function(){var _58=6378137;var _PI=Math.PI;var _5a=57.29577951308232;var _5b=0.017453292519943;var _5c=function(rad){return rad*_5a;};var _5e=function(deg){return deg*_5b;};return{xToLng:function(x){var _61=x/_58;var _62=_5c(_61);var _63=Math.floor((_62+180)/360);var lng=_62-(_63*360);return lng;},yToLat:function(y){var _66=(_PI/2)-(2*Math.atan(Math.exp(-1*y/_58)));var _67=_5c(_66);return _67;},lngToX:function(lng){return _5e(lng)*_58;},latToY:function(lat){var _6a=_5e(lat);var y=_58/2*Math.log((1+Math.sin(_6a))/(1-Math.sin(_6a)));return y;}};}();var _6c=function(_6d){return"{"+"x:"+_6d.lng()+",y:"+_6d.lat()+",spatialReference:{wkid:"+_3+"}"+"}";};var _6e=function(_6f){var loc;var _71=[];for(var i=0,_73=_6f.length;i<_73;i++){loc=_6f[i];_71.push("["+loc.lng()+","+loc.lat()+"]");}return"{points:["+_71.join(",")+"],spatialReference:{wkid:"+_3+"}}";};var _74=function(_75){var sw=_75.getSouthWest();var ne=_75.getNorthEast();return"{"+"xmin:"+sw.lng()+",ymin:"+sw.lat()+",xmax:"+ne.lng()+",ymax:"+ne.lat()+",spatialReference:{wkid:"+_3+"}"+"}";};var _78={};var _79,_7a;if(_e){_78._getVerticesAsync=function(_7b,_7c){var in1=[];for(var i=0,il=_7b.length;i<il;i++){in1.push(_7b[i]);in1.push("getVertexCount");}in1.push(function(){var in2=[],_81=[],_82,j,k,jl;for(j=0,jl=arguments.length;j<jl;j++){_82=arguments[j];_81.push(_82);for(k=0;k<_82;k++){in2.push(_7b[j]);in2.push("getVertex");in2.push([k]);}}in2.push(function(){var _86=[],_87=null;var _88=0,cnt,x,y,xl;for(x=0,xl=_81.length;x<xl;x++){cnt=_81[x];_87=[];for(y=_88;y<_88+cnt;y++){_87.push(arguments[y]);}_86.push(_87);_88+=cnt;}_7c(_86);});GAsync.apply(null,in2);});GAsync.apply(null,in1);};_78._polylinesToJsonTextAsync=function(_8d,_8e){_78._getVerticesAsync(_8d,function(_8f){var _90,vtx,_92,_93=[];for(var i=0,il=_8f.length;i<il;i++){_92=_8f[i];_90=[];for(var j=0,jl=_92.length;j<jl;j++){vtx=_92[j];_90.push("["+vtx.lng()+","+vtx.lat()+"]");}_93.push("["+_90.join(",")+"]");}_8e("{paths:["+_93.join(",")+"],spatialReference:{wkid:"+_3+"}}");});};_78._polygonsToJsonTextAsync=function(_98,_99){_78._getVerticesAsync(_98,function(_9a){var _9b,vtx,_9d,_9e=[];for(var i=0,il=_9a.length;i<il;i++){_9d=_9a[i];_9b=[];for(var j=0,jl=_9d.length;j<jl;j++){vtx=_9d[j];_9b.push("["+vtx.lng()+","+vtx.lat()+"]");}_9e.push("["+_9b.join(",")+"]");}_99("{rings:["+_9e.join(",")+"],spatialReference:{wkid:"+_3+"}}");});};}else{_79=function(_a3){var vtx;var _a5,_a6;var _a7=[];for(var i=0,_a9=_a3.length;i<_a9;i++){_a6=_a3[i];_a5=[];for(var j=0,_ab=_a6.getVertexCount();j<_ab;j++){vtx=_a6.getVertex(j);_a5.push("["+vtx.lng()+","+vtx.lat()+"]");}_a7.push("["+_a5.join(",")+"]");}return"{paths:["+_a7.join(",")+"],spatialReference:{wkid:"+_3+"}}";};_7a=function(_ac){var vtx;var _ae,_af;var _b0=[];for(var i=0,_b2=_ac.length;i<_b2;i++){_af=_ac[i];_ae=[];for(var j=0,_b4=_af.getVertexCount();j<_b4;j++){vtx=_af.getVertex(j);_ae.push("["+vtx.lng()+","+vtx.lat()+"]");}_b0.push("["+_ae.join(",")+"]");}return"{rings:["+_b0.join(",")+"],spatialReference:{wkid:"+_3+"}}";};}var _b5=function(_b6,_b7,_b8){var _b9="";switch(_b7){case"GLatLng":_b9=_6c(_b6);break;case"GLatLng[]":_b9=_6e(_b6);break;case"GLatLngBounds":_b9=_74(_b6);break;case"GPolyline":if(_b8){_78._polylinesToJsonTextAsync([_b6],_b8);return;}else{_b9=_79([_b6]);}break;case"GPolyline[]":if(_b8){_78._polylinesToJsonTextAsync(_b6,_b8);return;}else{_b9=_79(_b6);}break;case"GPolygon":if(_b8){_78._polygonsToJsonTextAsync([_b6],_b8);return;}else{_b9=_7a([_b6]);}break;case"GPolygon[]":if(_b8){_78._polygonsToJsonTextAsync(_b6,_b8);return;}else{_b9=_7a(_b6);}break;default:throw new Error("_geometryToJsonText(): unsupported geometry type - supported types are GLatLng, GLatLng[], GLatLngBounds, GPolyline, GPolyline[], GPolygon, GPolygon[]");}if(_b8){_b8(_b9);}else{return _b9;}};var _ba;var _bb=function(arr){var _bd=[];var val,enc=encodeURIComponent;if(arr._AG_){return _b5(arr,_52(arr).gmapsType);}for(var x=0,xl=arr.length;x<xl;x++){val=arr[x];if(_1f(val)&&typeof val!=="function"){if(_19(val)){val._AG_=arr._AAG_;_bd.push(_bb(val));}else{if(typeof val==="object"){val._AG_=arr._AAG_;_bd.push(_ba(val));}else{_bd.push(enc((_21(val))?("\""+val+"\""):val));}}}}return"["+_bd.join(",")+"]";};var _c2;_ba=function(obj){var _c4=[];var val,enc=encodeURIComponent;if(obj._AG_){return _b5(obj,_52(obj).gmapsType);}else{if(obj instanceof _c2&&obj.geometry){obj.geometry._AG_=true;}}for(var x in obj){if(obj.hasOwnProperty(x)){val=obj[x];if(_1f(val)&&typeof val!=="function"){if(_19(val)){_c4.push(x+":"+_bb(val));}else{if(typeof val==="object"){_c4.push(x+":"+_ba(val));}else{_c4.push(x+":"+enc((_21(val))?("\""+val+"\""):val));}}}}}return"{"+_c4.join(",")+"}";};var _c8=function(_c9){var _ca=[];var val,enc=encodeURIComponent;for(var x in _c9){if(_c9.hasOwnProperty(x)){val=_c9[x];if(_1f(val)&&typeof val!=="function"){if(_19(val)){if(_1f(val[0])&&typeof val[0]!=="function"&&typeof val[0]==="object"){_ca.push(x+"="+_bb(val));}else{_ca.push(x+"="+enc(val.join(",")));}}else{if(typeof val==="object"){_ca.push(x+"="+_ba(val));}else{_ca.push(x+"="+enc(val));}}}}}return _ca.join("&");};if(_e){_78._arrayToJsonTextAsync=function(arr,_cf){var _d0=[];var _d1=[];var val,enc=encodeURIComponent;if(arr._AG_){_b5(arr,_52(arr).gmapsType,_cf);return;}for(var x=0,xl=arr.length;x<xl;x++){val=arr[x];if(_1f(val)&&typeof val!=="function"){if(_19(val)){val._AG_=arr._AAG_;_d1.push(_78);_d1.push("_arrayToJsonText");_d1.push([val]);}else{if(typeof val==="object"){val._AG_=arr._AAG_;_d1.push(_78);_d1.push("_objectToJsonText");_d1.push([val]);}else{_d0.push(enc((_21(val))?("\""+val+"\""):val));}}}}if(_d1.length>0){_d1.push(function(){for(var i=0,il=arguments.length;i<il;i++){_d0.push(arguments[i]);}_cf("["+_d0.join(",")+"]");});GAsync.apply(null,_d1);}else{_cf("["+_d0.join(",")+"]");}};_78._objectToJsonTextAsync=function(obj,_d9){var _da=[];var _db=[],_dc=[];var val,enc=encodeURIComponent;if(obj._AG_){_b5(obj,_52(obj).gmapsType,_d9);return;}else{if(obj instanceof _c2&&obj.geometry){obj.geometry._AG_=true;}}for(var x in obj){if(obj.hasOwnProperty(x)){val=obj[x];if(_1f(val)&&typeof val!=="function"){if(_19(val)){_db.push(_78);_db.push("_arrayToJsonText");_db.push([val]);_dc.push(x);}else{if(typeof val==="object"){_db.push(_78);_db.push("_objectToJsonText");_db.push([val]);_dc.push(x);}else{_da.push(x+":"+enc((_21(val))?("\""+val+"\""):val));}}}}}if(_db.length>0){_db.push(function(){for(var i=0,il=_dc.length;i<il;i++){_da.push(_dc[i]+":"+arguments[i]);}_d9("{"+_da.join(",")+"}");});GAsync.apply(null,_db);}else{_d9("{"+_da.join(",")+"}");}};_78._parametersToJsonTextAsync=function(_e2,_e3){var _e4=[];var _e5=[],_e6=[];var val,enc=encodeURIComponent;for(var x in _e2){if(_e2.hasOwnProperty(x)){val=_e2[x];if(_1f(val)&&typeof val!=="function"){if(_19(val)){if(_1f(val[0])&&typeof val[0]!=="function"&&typeof val[0]==="object"){_e5.push(_78);_e5.push("_arrayToJsonText");_e5.push([val]);_e6.push(x);}else{_e4.push(x+"="+enc(val.join(",")));}}else{if(typeof val==="object"){_e5.push(_78);_e5.push("_objectToJsonText");_e5.push([val]);_e6.push(x);}else{_e4.push(x+"="+enc(val));}}}}}if(_e5.length>0){_e5.push(function(){for(var i=0,il=_e6.length;i<il;i++){_e4.push(_e6[i]+"="+arguments[i]);}_e3(_e4.join("&"));});GAsync.apply(null,_e5);}else{_e3(_e4.join("&"));}};}var _ec=function(_ed){return new GMarker(new GLatLng(_ed.y,_ed.x));};var _ee=function(_ef){return[new GMarker(new GLatLng(_ef.y,_ef.x))];};var _f0=function(_f1){var _f2=_f1.points;var pt;var _f4=[];for(var i=0,_f6=_f2.length;i<_f6;i++){pt=_f2[i];_f4[i]=new GMarker(new GLatLng(pt[1],pt[0]));}return _f4;};var _f7=function(_f8){var sw=new GLatLng(_f8.ymin,_f8.xmin);var nw=new GLatLng(_f8.ymax,_f8.xmin);var ne=new GLatLng(_f8.ymax,_f8.xmax);var se=new GLatLng(_f8.ymin,_f8.xmax);var _fd=new GPolygon([sw,nw,ne,se],_f.polygonStrokeColor,_f.polygonStrokeWeight,_f.polygonStrokeOpacity,_f.polygonFillColor,_f.polygonFillOpacity);return[_fd];};var _fe=function(_ff,_100){var xmin=_ff.xmin,ymin=_ff.ymin;var xmax=_ff.xmax,ymax=_ff.ymax;var _105=_57.xToLng;var _106=_57.yToLat;if(_100){xmin=_105(xmin);ymin=_106(ymin);xmax=_105(xmax);ymax=_106(ymax);}var sw=new GLatLng(ymin,xmin);var ne=new GLatLng(ymax,xmax);var _109=new GLatLngBounds(sw,ne);return _109;};var _10a=function(json){var _10c=json.paths;var _10d,_10e,_10f,pt;_10f=[];for(var i=0,nseg=_10c.length;i<nseg;i++){_10d=_10c[i];_10e=[];for(var j=0,npts=_10d.length;j<npts;j++){pt=_10d[j];_10e[j]=new GLatLng(pt[1],pt[0]);}_10f[i]=new GPolyline(_10e,_f.polylineStrokeColor,_f.polylineStrokeWeight,_f.polylineStrokeOpacity);}return _10f;};var _115=function(json){var _117=json.rings;var _118,_119,_11a,pt;_11a=[];for(var i=0,nseg=_117.length;i<nseg;i++){_118=_117[i];_119=[];for(var j=0,npts=_118.length;j<npts;j++){pt=_118[j];_119[j]=new GLatLng(pt[1],pt[0]);}_11a[i]=new GPolygon(_119,_f.polygonStrokeColor,_f.polygonStrokeWeight,_f.polygonStrokeOpacity,_f.polygonFillColor,_f.polygonFillOpacity);}return _11a;};var _120=function(_121,html,_123,_124,map){if(_124&&html){if(_121.openInfoWindow){if(_19(html)){GEvent.addListener(_121,"click",function(){_121.openInfoWindowTabsHtml(html,_123);});}else{GEvent.addListener(_121,"click",function(){_121.openInfoWindowHtml(html,_123);});}}else{if(_19(html)){GEvent.addListener(_121,"click",function(_126){map.openInfoWindowTabsHtml(_126,html,_123);});}else{GEvent.addListener(_121,"click",function(_127){map.openInfoWindowHtml(_127,html,_123);});}}}map.addOverlay(_121);};var _128=function(_129,type){var line=(type==="GPolyline[]")?true:false;var _12c={stc:(_129&&_129.strokeColor!==undefined)?_129.strokeColor:(line)?_f.polylineStrokeColor:_f.polygonStrokeColor,stw:(_129&&_129.strokeWeight!==undefined)?_129.strokeWeight:(line)?_f.polylineStrokeWeight:_f.polygonStrokeWeight,sto:(_129&&_129.strokeOpacity!==undefined)?_129.strokeOpacity:(line)?_f.polylineStrokeOpacity:_f.polygonStrokeOpacity,fic:(_129&&_129.fillColor!==undefined)?_129.fillColor:_f.polygonFillColor,fio:(_129&&_129.fillOpacity!==undefined)?_129.fillOpacity:_f.polygonFillOpacity};return _12c;};var _12d,_12e,_12f;if(_e){_78._createAddMarkersAsync=function(_130,_131,_132,_133,map,_135){var args=[];for(var i=0,il=_130.length;i<il;i++){args.push(_130[i]);args.push("getPoint");}args.push(function(){var _139=[],mark,opts,_13c=_133.attr,iw=_133.meta.flags.clickable,html=_133.html;for(var j=0,jl=arguments.length;j<jl;j++){opts=_44(_131.markerOptions);if(opts&&opts.title){opts.title=_4a(opts.title,_13c);}mark=new GMarker(arguments[j],opts);_120(mark,html,_132,iw,map);_139.push(mark);}_135(_139);});GAsync.apply(null,args);};_78._createAddPolylinesAsync=function(_141,_142,_143,_144,map,_146){_78._getVerticesAsync(_141,function(_147){var _148=[],poly,i,il,_14c=_144.meta.style,iw=_144.meta.flags.clickable,html=_144.html;var opts=_142.polylineOptions;for(i=0,il=_147.length;i<il;i++){poly=new GPolyline(_147[i],_14c.stc,_14c.stw,_14c.sto,opts);_120(poly,html,_143,iw,map);_148.push(poly);}_146(_148);});};_78._createAddPolygonsAsync=function(_150,_151,_152,_153,map,_155){_78._getVerticesAsync(_150,function(_156){var _157=[],poly,i,il,_15b=_153.meta.style,iw=_153.meta.flags.clickable,html=_153.html;var opts=_151.polylineOptions;for(i=0,il=_156.length;i<il;i++){poly=new GPolygon(_156[i],_15b.stc,_15b.stw,_15b.sto,_15b.fic,_15b.fio,opts);_120(poly,html,_152,iw,map);_157.push(poly);}_155(_157);});};}else{_12d=function(_15f,_160,_161,_162,map){var _164=[],mark,opts,i,il,_169=_162.attr,iw=_162.meta.flags.clickable,html=_162.html;for(i=0,il=_15f.length;i<il;i++){opts=_44(_160.markerOptions);if(opts&&opts.title){opts.title=_4a(opts.title,_169);}mark=new GMarker(_15f[i].getLatLng(),opts);_120(mark,html,_161,iw,map);_164.push(mark);}return _164;};_12e=function(_16c,_16d,_16e,_16f,map){var _171=[],_172,poly,opts,_175,i,il,j,jl,_17a=_16f.meta.style,iw=_16f.meta.flags.clickable,html=_16f.html;opts=_16d.polylineOptions;for(i=0,il=_16c.length;i<il;i++){_172=_16c[i];_175=[];for(j=0,jl=_172.getVertexCount();j<jl;j++){_175.push(_172.getVertex(j));}poly=new GPolyline(_175,_17a.stc,_17a.stw,_17a.sto,opts);_120(poly,html,_16e,iw,map);_171.push(poly);}return _171;};_12f=function(_17d,_17e,_17f,_180,map){var _182=[],_183,poly,opts,_186,i,il,j,jl,_18b=_180.meta.style,iw=_180.meta.flags.clickable,html=_180.html;opts=_17e.polygonOptions;for(i=0,il=_17d.length;i<il;i++){_183=_17d[i];_186=[];for(j=0,jl=_183.getVertexCount();j<jl;j++){_186.push(_183.getVertex(j));}poly=new GPolygon(_186,_18b.stc,_18b.stw,_18b.sto,_18b.fic,_18b.fio,opts);_120(poly,html,_17f,iw,map);_182.push(poly);}return _182;};}var _18e=function(_18f,_190){if(_19(_18f)){var tab,_192,_193;var tabs=[];for(var i=0,ilen=_18f.length;i<ilen;i++){tab=_18f[i];_192=_4a(tab.label,_190);_193=_4a(tab.content,_190);tabs[i]=new GInfoWindowTab(_192,_193);}return tabs;}else{return _4a(_18f,_190);}};var _197=function(_198,_199,_19a,meta,map,_19d){var geom=_198.geometry;var attr=_198.attributes;var type=meta.type;var _1a1=meta.flags;var iwc,_1a3;if(_19a){iwc=_19a.content;_1a3=_19a.contentTabs;}var _1a4={attr:attr,html:_18e((iwc||_1a3||_5),attr),meta:meta};var ovs,_1a6=false;switch(type){case"GMarker[]":if(_1a1.marker){if(_19d){_78._createAddMarkersAsync(geom,_199,_19a,_1a4,map,_19d);return;}else{ovs=_12d(geom,_199,_19a,_1a4,map);}}else{ovs=geom;_1a6=true;}break;case"GPolyline[]":if(_1a1.newpolyline){if(_19d){_78._createAddPolylinesAsync(geom,_199,_19a,_1a4,map,_19d);return;}else{ovs=_12e(geom,_199,_19a,_1a4,map);}}else{_1a6=true;ovs=geom;}break;case"GPolygon[]":if(_1a1.newpolygon){if(_19d){_78._createAddPolygonsAsync(geom,_199,_19a,_1a4,map,_19d);return;}else{ovs=_12f(geom,_199,_19a,_1a4,map);}}else{_1a6=true;ovs=geom;}break;}if(_1a6){for(var i=0,il=ovs.length;i<il;i++){_120(ovs[i],_1a4.html,_19a,_1a1.clickable,map);}}if(_19d){_19d(ovs);}else{return ovs;}};_78._addCustomOverlaysAsync=_197;var _1a9=function(_1aa,type){var _1ac,_1ad,_1ae,_1af,_1b0;_1ac=_1ad=_1ae=_1af=_1b0=false;var _1b1=true;if(_1aa){var fco=_1aa.fillColor;var fop=_1aa.fillOpacity;var sco=_1aa.strokeColor;var swt=_1aa.strokeWeight;var sop=_1aa.strokeOpacity;var mop=_1aa.markerOptions;var plop=_1aa.polylineOptions;var pgop=_1aa.polygonOptions;_1ac=(fco||fop)?true:false;_1ad=(sco||swt||sop)?true:false;_1ae=(mop&&_41(mop))?true:false;_1af=(plop&&_41(plop))?true:false;_1b0=(pgop&&_41(pgop))?true:false;if(_1ae&&_1f(mop.clickable)){_1b1=mop.clickable;}if(_1af&&_1f(plop.clickable)){_1b1=plop.clickable;}if(_1b0&&_1f(pgop.clickable)){_1b1=pgop.clickable;}}var _1ba={fill:_1ac,stroke:_1ad,marker:_1ae,polyline:_1af,polygon:_1b0,clickable:(_e&&(type==="GPolyline[]"||type==="GPolygon[]"))?false:_1b1,newpolyline:_1ad||_1af,newpolygon:_1ad||_1ac||_1b0};return _1ba;};var _1bb=function(){var purl=_f.proxyUrl;if(!purl){throw new Error("Error: esri.arcgis.gmaps.Config.proxyUrl is not set. A web proxy page is required to make cross-domain XMLHttpRequest calls");}return _28(purl);};var _1bd=function(url){if(_f.alwaysUseProxy){var uo=_1bb();var _url=_28(url);var p1=_c8(uo.query);var p2=_c8(_url.query);p1=p1&&("?"+p1);p2=p2&&(((p1&&"&")||("?"))+p2);url=uo.path+"?"+_url.path+p1+p2;}return url;};var _1c3=function(){var _1c4=[];var _1c5="ArcGISJsonScript_";var _1c6="ArcGISJson_";var _1c7="ArcGISKmz_";var _1c8=2000;var _1c9=function(id){delete _1c4[id];};var _1cb=function(url,_1cd){this.url=url;this.handler=_1cd;var nat=window.XMLHttpRequest;var acx=window.ActiveXObject;this._xhr=null;if(nat&&!(acx)){this._xhr=new XMLHttpRequest();}else{if(acx){try{this._xhr=new ActiveXObject("Msxml2.XMLHTTP");}catch(e1){try{this._xhr=new ActiveXObject("Microsoft.XMLHTTP");}catch(e2){}}}else{throw new Error("This browser does not support XMLHttpRequest object");}}var self=this;this._xhr.onreadystatechange=function(){self._callback.call(self);};this._xhr.open("POST",url,true);};_1cb.prototype.send=function(_1d1){this._xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this._xhr.send(_1d1);};_1cb.prototype._callback=function(){var req=this._xhr;if(req.readyState===4){this.handler(_16(req.responseText));}};_1cb.prototype.cancel=function(){this._xhr.abort();};var _1d3=function(id,url,_1d6){this.id=_1c6+id;this.url=url;this.handler=_1d6;this._id=id;};_1d3.prototype.send=function(_1d7){var plen=_1d7.length+this.url.length;if(plen>_1c8||_f.alwaysUseProxy){var uo=_1bb();var p1=_c8(uo.query);p1=p1&&((_1d7&&"&")+p1);var self=this;this._xhr=new _1cb(uo.path+"?"+this.url,function(){self._callback.call(self,arguments[0]);});this._xhr.send(_1d7+p1+"&f=json");}else{var el=document.createElement("script");el.id=(this.scriptId=_1c5+this._id);el.type="text/javascript";el.src=this.url+"?"+_1d7+"&f=json"+"&callback=esri.arcgis.gmaps._RestRequest._requestQueue."+this.id+"._callback";document.getElementsByTagName("head").item(0).appendChild(el);}};_1d3.prototype._callback=function(_1dd){this._cleanup();if(this.cancelled){return;}var err=_1dd.error||null;if(err){_1dd=null;}this.handler.call(null,_1dd,err);};_1d3.prototype._cleanup=function(){if(this.scriptId){var el=document.getElementById(this.scriptId);el.parentNode.removeChild(el);}_1c9(this.id);};_1d3.prototype.cancel=function(){if(!this.cancelled){this.cancelled=true;var xhr=this._xhr;if(xhr){xhr.cancel();this._cleanup();}}};var _1e1=function(id,url,_1e4){this.id=_1c7+id;this.url=url;this.handler=_1e4;};_1e1.prototype.send=function(_1e5){var self=this;var _1e7=null;var _cb=function(){self._callback.call(self,_1e7);};_1e7=new GGeoXml(this.url+"?"+_1e5+"&f=kmz",_cb);if(_e){_cb();}};_1e1.prototype._callback=function(_1e9){this._cleanup();if(this.cancelled){return;}if(_d){if(!_1e9.hasLoaded()){throw new Error("GGeoXml object could not finish loading the KML file");}else{if(!_1e9.loadedCorrectly()){throw new Error("GGeoXml object could not load the KML file correctly");}}}this.handler.call(null,_1e9,null);};_1e1.prototype._cleanup=function(){_1c9(this.id);};_1e1.prototype.cancel=function(){if(!this.cancelled){this.cancelled=true;}};return{_requestQueue:_1c4,create:function(url,_1eb,_1ec){var nid=Math.random().toString(10).substring(2);var jh=null;switch(_1ec){case _7:jh=new _1d3(nid,url,_1eb);_1c4[_1c6+nid]=jh;break;case _6:jh=new _1e1(nid,url,_1eb);_1c4[_1c7+nid]=jh;break;default:throw new Error("_RestRequest.create(): The requested REST response format '"+_1ec+"' is not supported. Supported formats are: json, kmz");}return jh;},handle:function(url,op,_1f1,_1f2,_1f3,_1f4,_1f5,_1f6){if(!_1f2){_1f2="";}if(!op){op="";}var uo=_28(url);url=uo.path+"/"+op;var p3=_c8(uo.query);p3=(p3==="")?p3:("&"+p3);var _h=function(){var args=[];for(var i=0,il=arguments.length;i<il;i++){args.push(arguments[i]);}args.push(_1f6);_1f5.apply(_1f4,args);};var req=_1c3.create(url,_h,_1f3);if(req){var _cb=function(text){var par=text+_1f2+p3;par=(par.indexOf("&")===0)?((par.length!==1)?par.substring(1):""):par;req.send(par);};if(_d){_cb(_c8(_1f1));}else{_78._parametersToJsonTextAsync(_1f1,_cb);}}return req;},cancel:function(_201){_201.cancel();}};}();var _202={INTERSECTS:"esriSpatialRelIntersects",CONTAINS:"esriSpatialRelContains",CROSSES:"esriSpatialRelCrosses",ENVELOPE_INTERSECTS:"esriSpatialRelEnvelopeIntersects",INDEX_INTERSECTS:"esriSpatialRelIndexIntersects",OVERLAPS:"esriSpatialRelOverlaps",TOUCHES:"esriSpatialRelTouches",WITHIN:"esriSpatialRelWithin"};var _203=function(){this.queryGeometry=null;this.outFields=null;this.returnGeometry=true;this.spatialRelationship=_202.INTERSECTS;this.text=null;this.where=null;};_c2=function(){this.attributes=null;this.geometry=null;};var _204=function(){this.displayFieldName=null;this.features=null;this.geometryType=null;this.spatialReference={"wkid":_3};};var _205=function(json,type){var conv,geom,_20a;switch(type){case"esriGeometryPoint":conv=_ee;break;case"esriGeometryMultipoint":conv=_f0;break;case"esriGeometryEnvelope":conv=_f7;break;case"esriGeometryPolyline":conv=_10a;break;case"esriGeometryPolygon":conv=_115;break;}_20a=new _c2();_20a.attributes=json.attributes;geom=json.geometry;_20a.geometry=(geom&&conv)?conv(geom):null;return _20a;};var _20b=function(json){var fset=new _204();fset.displayFieldName=json.displayFieldName;var type=(fset.geometryType=json.geometryType);var sr=json.spatialReference;fset.spatialReference=(sr)?{"wkid":sr.wkid}:null;var _210=(fset.features=[]);var _211=json.features;var _212;if(_211){for(var i=0,flen=_211.length;i<flen;i++){_212=_211[i];_210.push(_205(_212,type));}}return fset;};var _215=function(url){this.url=url;};_215.prototype.execute=function(_217,_218,_219){if(!_217){throw new Error("QueryTask.execute(): 'parameters' argument is required");}var geom=_217.queryGeometry;var txt=_217.text;var _21c=_217.where;if(!(_1f(geom)||_1f(txt)||_1f(_21c))){throw new Error("QueryTask.execute(): 'Query' must have value for atleast one of 'queryGeometry', 'text', 'where' properties");}var _21d={geometryType:_52(geom).esriType,geometry:geom,inSR:_3,outSR:_3,spatialRel:_217.spatialRelationship,returnGeometry:_217.returnGeometry,text:txt,where:_21c,outFields:_217.outFields};if(geom){_21d.geometry._AG_=true;}_1c3.handle(this.url,"query",_21d,null,((_218)?_6:_7),this,this._responseHandler,_219);};_215.prototype._responseHandler=function(_21e,_21f,_220){var _221=null;if(_21e){if(_21e instanceof GGeoXml){_221=_21e;}else{_221=_20b(_21e);}}_10(this,"executecomplete",_220,[_221,_21f]);};var _222=function(){this.address=null;this.location=null;this.score=null;this.attributes=null;};var _223=function(){this.addressCandidates=null;};var _224=function(_225){var _226=new _c2();_226.geometry=[_225.location];var _227=(_226.attributes={});var _228=_225.address;if(typeof(_228)==="string"){_227.address=_228;}else{for(var x in _228){if(_228.hasOwnProperty(x)){_227[x]=_228[x];}}}var _22a=_225.attributes;if(_22a){for(var y in _22a){if(_22a.hasOwnProperty(y)){_227[y]=_22a[y];}}}_227.score=_225.score;return _226;};var _22c=function(url){this.url=url;};_22c.prototype.addressToLocations=function(_22e,_22f,_230,_231){if(!_22e){throw new Error("Locator.addressToLocations(): 'address' argument is required");}_22e.outFields=_22f;_1c3.handle(this.url,"findAddressCandidates",_22e,null,((_230)?_6:_7),this,this._geocodeHandler,_231);};_22c.prototype.locationToAddress=function(_232,_233,_234,_235){if(!_232){throw new Error("Locator.locationToAddress(): 'latlng' argument is required");}if(!_233){throw new Error("Locator.locationToAddress(): 'distance' argument is required");}var _236={location:_232.lng()+","+_232.lat(),distance:_233};_1c3.handle(this.url,"reverseGeocode",_236,null,((_234)?_6:_7),this,this._reverseGeocodeHandler,_235);};_22c.prototype._geocodeHandler=function(_237,_238,_239){var _23a=null;if(_237){if(_237 instanceof GGeoXml){_23a=_237;}else{var _23b=new _223();var _23c=(_23b.addressCandidates=[]);var _23d=_237.candidates;var _23e,ac;for(var i=0,il=_23d.length;i<il;i++){_23e=_23d[i];ac=new _222();ac.address=_23e.address;ac.location=_ec(_23e.location);ac.score=_23e.score;ac.attributes=_23e.attributes;_23c.push(ac);}_23a=_23b;}}_10(this,"addresstolocationscomplete",_239,[_23a,_238]);};_22c.prototype._reverseGeocodeHandler=function(_242,_243,_244){var _245=null;if(_242){if(_242 instanceof GGeoXml){_245=_242;}else{var _246=new _222();_246.address=_242.address;_246.location=_ec(_242.location);_246.score=100;_245=_246;}}_10(this,"locationtoaddresscomplete",_244,[_245,_243]);};var _247=function(){this.geometry=null;this.tolerance=null;this.layerIds=null;this.layerOption="top";this.returnGeometry=true;this.dpi=96;this.bounds=null;this.width=null;this.height=null;};var _248=function(){this.layerId=null;this.layerName=null;this.displayFieldName=null;this.feature=null;};var _249=function(){this.identifyResults=null;};var _24a=function(url){this.url=url;};_24a.prototype.execute=function(_24c,_24d){if(!_24c){throw new Error("IdentifyTask.execute(): 'parameters' argument is required");}var geom=_24c.geometry;var tol=_24c.tolerance;var ext=_24c.bounds;var w=_24c.width;var h=_24c.height;var dpi=_24c.dpi;if(!(_1f(geom)&&_1f(tol)&&_1f(ext)&&_1f(w)&&_1f(h)&&_1f(dpi))){throw new Error("IdentifyTask.execute(): 'IdentifyParameters' must have value for the following properties: 'geometry', 'tolerance', 'bounds', 'width', 'height' and 'dpi'");}var _254=_24c.layerOption;var lids=_24c.layerIds;if(lids){_254+=(":"+lids.join(","));}var _256={geometry:geom,geometryType:_52(geom).esriType,sr:_3,layers:_254,tolerance:tol,mapExtent:ext,imageDisplay:w+","+h+","+dpi,returnGeometry:_24c.returnGeometry};_256.geometry._AG_=true;_256.mapExtent._AG_=true;_1c3.handle(this.url,"identify",_256,null,_7,this,this._responseHandler,_24d);};_24a.prototype._responseHandler=function(_257,_258,_259){var _25a=null;if(_257){var _25b=_257.results;_25a=new _249();var _25c=(_25a.identifyResults=[]);var _25d,_25e;for(var i=0,il=_25b.length;i<il;i++){_25d=_25b[i];_25e=new _248();_25e.layerId=_25d.layerId;_25e.layerName=_25d.layerName;_25e.displayFieldName=_25d.displayFieldName;_25e.feature=_205({attributes:_25d.attributes,geometry:_25d.geometry},_25d.geometryType);_25c.push(_25e);}}_10(this,"executecomplete",_259,[_25a,_258]);};var _261=function(){this.searchText=null;this.contains=true;this.searchFields=null;this.layerIds=null;this.returnGeometry=true;};var _262=function(){this.layerId=null;this.layerName=null;this.displayFieldName=null;this.foundFieldName=null;this.feature=null;};var _263=function(){this.findResults=null;};var _264=function(url){this.url=url;};_264.prototype.execute=function(_266,_267){if(!_266){throw new Error("FindTask.execute(): 'parameters' argument is required");}var txt=_266.searchText;var lyrs=_266.layerIds;if(!(_1f(txt)&&_1f(lyrs))){throw new Error("FindTask.execute(): 'FindParameters' must have value for the following properties: 'searchText' and 'layerIds'");}var _26a={searchText:txt,contains:_266.contains,searchFields:_266.searchFields,sr:_3,layers:lyrs,returnGeometry:_266.returnGeometry};_1c3.handle(this.url,"find",_26a,null,_7,this,this._responseHandler,_267);};_264.prototype._responseHandler=function(_26b,_26c,_26d){var _26e=null;if(_26b){var _26f=_26b.results;_26e=new _263();var _270=(_26e.findResults=[]);var _271,fres;for(var i=0,il=_26f.length;i<il;i++){_271=_26f[i];fres=new _262();fres.layerId=_271.layerId;fres.layerName=_271.layerName;fres.displayFieldName=_271.displayFieldName;fres.foundFieldName=_271.foundFieldName;fres.feature=_205({attributes:_271.attributes,geometry:_271.geometry},_271.geometryType);_270.push(fres);}}_10(this,"executecomplete",_26d,[_26e,_26c]);};var _275={METER:9001,GERMAN_METER:9031,FOOT:9002,SURVEY_FOOT:9003,CLARKE_FOOT:9005,FATHOM:9014,NAUTICAL_MILE:9030,SURVEY_CHAIN:9033,SURVEY_LINK:9034,SURVEY_MILE:9035,KILOMETER:9036,CLARKE_YARD:9037,CLARKE_CHAIN:9038,CLARKE_LINK:9039,SEARS_YARD:9040,SEARS_FOOT:9041,SEARS_CHAIN:9042,SEARS_LINK:9043,BENOIT_1895A_YARD:9050,BENOIT_1895A_FOOT:9051,BENOIT_1895A_CHAIN:9052,BENOIT_1895A_LINK:9053,BENOIT_1895B_YARD:9060,BENOIT_1895B_FOOT:9061,BENOIT_1895B_CHAIN:9062,BENOIT_1895B_LINK:9063,INDIAN_FOOT:9080,INDIAN_1937_FOOT:9081,INDIAN_1962_FOOT:9082,INDIAN_1975_FOOT:9083,INDIAN_YARD:9084,INDIAN_1937_YARD:9085,INDIAN_1962_YARD:9086,INDIAN_1975_YARD:9087,FOOT_1865:9070,RADIAN:9101,DEGREE:9102,ARCMINUTE:9103,ARCSECOND:9104,GRAD:9105,GON:9106,MICRORADIAN:9109,ARCMINUTE_CENTESIMAL:9112,ARCSECOND_CENTESIMAL:9113,MIL6400:9114,BRITISH_1936_FOOT:9095,GOLDCOAST_FOOT:9094,INTERNATIONAL_CHAIN:109003,INTERNATIONAL_LINK:109004,INTERNATIONAL_YARD:109001,STATUTE_MILE:9093,SURVEY_YARD:109002,LENGTH_50KILOMETER:109030,LENGTH_150KILOMETER:109031,DECIMETER:109005,CENTIMETER:109006,MILLIMETER:109007,INTERNATIONAL_INCH:109008,US_SURVEY_INCH:109009,INTERNATIONAL_ROD:109010,US_SURVEY_ROD:109011,US_NAUTICAL_MILE:109012,UK_NAUTICAL_MILE:109013};var _276=function(){this.geometries=null;this.inSpatialReference=null;this.outSpatialReference=null;this.geometryType=null;};var _277=function(){this.geometries=null;this.distances=null;this.unit=_275.METER;this.unionResults=false;this.bufferSpatialReference=null;};var _278=function(){this.geometries=null;};var _279=function(){this.geometries=null;};var _27a=function(){this.geometries=null;};var _27b=function(url){this.url=url;};_27b.ANGULAR_UNITS=[9101,9102,9103,9104,9105,9106,9109,9112,9113,9114];_27b.prototype.project=function(_27d,_27e){if(!_27d){throw new Error("Geometry.project(): 'parameters' argument is required");}var geom=_27d.geometries;var _280=_52(geom[0]).esriType;var type=_27d.geometryType||_280;var insr=_27d.inSpatialReference;var _283=_27d.outSpatialReference;if(!(_1f(geom)&&_1f(insr)&&_1f(_283)&&_1f(type))){throw new Error("Geometry.project(): 'parameters' must have value for the following properties: 'geometries', 'inSpatialReference', 'outSpatialReference' and 'geometryType'");}var _284={geometries:{geometryType:type,geometries:geom},inSR:insr,outSR:_283};if(_280){_284.geometries.geometries._AAG_=true;}_1c3.handle(this.url,"project",_284,null,_7,this,this._projectHandler,[_283,type,_27e]);};_27b.prototype._projectHandler=function(_285,_286,_287){var _288=_287[0];var type=_287[1];var _28a=_287[2];var _28b=null;if(_285){var _28c=_285.geometries;_28b=new _278();if(_288===_3){var _28d=(_28b.geometries=[]);for(var i=0,il=_28c.length;i<il;i++){_28d.push((_205({geometry:_28c[i]},type)).geometry);}}else{_28b.geometries=_28c;}}_10(this,"projectcomplete",_28a,[_28b,_286]);};_27b.prototype.simplify=function(_290,_291){if(!_290){throw new Error("Geometry.simplify(): 'geometries' argument is required");}var _292=_52(_290[0]).esriType;var _293={geometries:{geometryType:_292,geometries:_290},sr:_3};_293.geometries.geometries._AAG_=true;_1c3.handle(this.url,"simplify",_293,null,_7,this,this._simplifyHandler,[_292,_291]);};_27b.prototype._simplifyHandler=function(_294,_295,_296){var type=_296[0];var _298=_296[1];var _299=null;if(_294){var _29a=_294.geometries;_299=new _279();var _29b=(_299.geometries=[]);for(var i=0,il=_29a.length;i<il;i++){_29b.push((_205({geometry:_29a[i]},type)).geometry);}}_10(this,"simplifycomplete",_298,[_299,_295]);};_27b.prototype.buffer=function(_29e,_29f){if(!_29e){throw new Error("Geometry.buffer(): 'parameters' argument is required");}var geom=_29e.geometries;var dt=_29e.distances;if(!(_1f(geom)&&_1f(dt))){throw new Error("Geometry.buffer(): 'parameters' must have value for the following properties: 'geometries', 'distances'");}var unit=_29e.unit;var _2a3={geometries:{geometryType:_52(geom[0]).esriType,geometries:geom},inSR:_3,bufferSR:_29e.bufferSpatialReference||((_23(_27b.ANGULAR_UNITS,unit)!==-1)?_3:_4),outSR:_3,distances:dt,unit:unit,unionResults:_29e.unionResults};_2a3.geometries.geometries._AAG_=true;_1c3.handle(this.url,"buffer",_2a3,null,_7,this,this._bufferHandler,_29f);};_27b.prototype._bufferHandler=function(_2a4,_2a5,_2a6){var _2a7=null;if(_2a4){var _2a8=_2a4.geometries;_2a7=new _27a();var _2a9=(_2a7.geometries=[]);for(var i=0,il=_2a8.length;i<il;i++){_2a9.push(_115(_2a8[i]));}}_10(this,"buffercomplete",_2a6,[_2a7,_2a5]);};var _2ac=function(){this.paramName=null;this.dataType=null;this.value=null;};var _2ad=function(){this.type=null;this.description=null;};var _2ae=function(){this.date=null;this.format=null;};var _2af=function(){this.distance=null;this.units=null;};var _2b0=function(){this.url=null;};var _2b1=function(){this.url=null;this.format=null;};var _2b2=function(){this.href=null;this.width=null;this.height=null;this.bounds=null;this.scale=null;};var _2b3=function(){this.results=null;this.messages=null;};var _2b4=function(){this.jobId=null;this.jobStatus=null;this.messages=null;};var _2b5={CANCELLED:"esriJobCancelled",CANCELLING:"esriJobCancelling",DELETED:"esriJobDeleted",DELETING:"esriJobDeleting",EXECUTING:"esriJobExecuting",FAILED:"esriJobFailed",NEW:"esriJobNew",SUBMITTED:"esriJobSubmitted",SUCCEEDED:"esriJobSucceeded",TIMED_OUT:"esriJobTimedOut",WAITING:"esriJobWaiting"};var _2b6=function(){this.format="png8";this.transparent=true;this.dpi=96;this.layerIds=null;this.layerOption="show";this.layerDefinitions=[];this.bounds=null;this.width=null;this.height=null;this.zoomLevel=null;this.imageSpatialReference=_4;};var _2b7=function(_2b8,_2b9,_2ba,_2bb){var _2bc=_2b8.layerOption;var lids=_2b8.layerIds;if(lids){_2bc+=(":"+lids.join(","));}else{_2bc="";}var bb=_2b9||_2b8.bounds;var _2bf=_2b8.layerDefinitions,defs=[];for(var id in _2bf){if(_2bf.hasOwnProperty(id)&&id&&_2bf[id]){defs.push(id+":"+_2bf[id]);}}var _2c2={bbox:bb,size:(_2ba||_2b8.width||400)+","+(_2bb||_2b8.height||400),dpi:_2b8.dpi,imageSR:(_2b8.imageSpatialReference||_4),bboxSR:_3,format:_2b8.format,transparent:_2b8.transparent,layers:_2bc,layerDefs:defs.join(";")};if(bb&&bb instanceof GLatLngBounds){_2c2.bbox._AG_=true;}return _2c2;};var _2c3=function(json,_2c5){var mimg=new _2b2();mimg.href=json.href;mimg.width=json.width;mimg.height=json.height;mimg.scale=json.scale;var _2c7=json.extent;if(_2c7){mimg.bounds=_fe(_2c7,_2c5);}return mimg;};var _2c8=function(json){var out=[];var msg,_2cc;if(json&&json.length){for(var i=0,il=json.length;i<il;i++){msg=json[i];_2cc=new _2ad();_2cc.type=msg.type;_2cc.description=msg.description;out.push(_2cc);}}return out;};var _2cf=function(type,json){if(_23(["GPBoolean","GPDouble","GPLong","GPString"],type)!==-1){return json;}var out=null;var mimg;switch(type){case"GPDate":out=new _2ae();out.date=json;out.format="dow mon dd hh:mm:ss zzz yyyy";break;case"GPLinearUnit":out=new _2af();out.distance=json.distance;out.units=json.units;break;case"GPDataFile":out=new _2b0();out.url=json.url;break;case"GPRasterData":case"GPRasterDataLayer":mimg=json.mapImage;if(mimg){out=_2c3(mimg);}else{out=new _2b1();out.url=json.url;out.format=json.format;}break;case"GPRecordSet":case"GPFeatureRecordSetLayer":mimg=json.mapImage;if(mimg){out=_2c3(mimg);}else{out=_20b(json);}break;default:out=json;break;}return out;};var _2d4=function(url,_2d6){this.url=url;this._delay=(_2d6)?(_2d6.statusUpdateInterval||1000):1000;this._outSR=(_2d6)?(_2d6.outSpatialReference||_3):_3;this._processSR=_2d6&&_2d6.processSpatialReference;this._timers=[];};_2d4.prototype.execute=function(_2d7,_2d8,_2d9){if(!_2d7){throw new Error("Geoprocessor.execute(): 'parameters' argument is required");}_2d7["env:outSR"]=this._outSR;_2d7["env:processSR"]=this._processSR;_1c3.handle(this.url,"execute",_2d7,null,((_2d8)?_6:_7),this,this._executeHandler,_2d9);};_2d4.prototype._executeHandler=function(_2da,_2db,_2dc){var _2dd=null;if(_2da){if(_2da instanceof GGeoXml){_2dd=_2da;}else{var _2de=_2da.results;var _2df=new _2b3();var _2e0=(_2df.results=[]);var res,pval,_2e3;for(var i=0,il=_2de.length;i<il;i++){res=_2de[i];pval=new _2ac();pval.paramName=res.paramName;_2e3=(pval.dataType=res.dataType);pval.value=_2cf(_2e3,res.value);_2e0.push(pval);}_2df.messages=_2c8(_2da.messages);_2dd=_2df;}}_10(this,"executecomplete",_2dc,[_2dd,_2db]);};_2d4.prototype.submitJob=function(_2e6,_2e7,_2e8){if(!_2e6){throw new Error("Geoprocessor.submitJob(): 'parameters' argument is required");}_2e6["env:outSR"]=this._outSR;_2e6["env:processSR"]=this._processSR;_1c3.handle(this.url,"submitJob",_2e6,null,_7,this,this._jobHandler,[_2e8,_2e7,true]);};_2d4.prototype._jobHandler=function(_2e9,_2ea,_2eb){var cb=_2eb[0];var scb=_2eb[1];var _2ee=_2eb[2];if(_2ea){_10(this,"jobstatusupdate",null,[null,_2ea]);if(_2ee){_10(this,"jobcomplete",null,[null,_2ea]);}_10(null,null,scb,[null,_2ea]);if(_2ee){_10(null,null,cb,[null,_2ea]);}return;}var ji=new _2b4();var id=(ji.jobId=_2e9.jobId);var _2f1=(ji.jobStatus=_2e9.jobStatus);ji.messages=_2c8(_2e9.messages);_10(this,"jobstatusupdate",null,[ji]);var done=false;if(_2ee){this.cancelJobStatusUpdates(id);switch(_2f1){case _2b5.SUBMITTED:case _2b5.EXECUTING:case _2b5.WAITING:case _2b5.NEW:var self=this;this._timers[id]=setTimeout(function(){self.checkJobStatus.call(self,id,cb,scb);},this._delay);break;default:done=true;_10(this,"jobcomplete",null,[ji]);break;}}_10(null,null,scb,[ji]);if(done){_10(null,null,cb,[ji]);}};_2d4.prototype.checkJobStatus=function(_2f4,_2f5){if(!_2f4){throw new Error("Geoprocessor.checkJobStatus(): 'jobId' argument is required");}var _2f6;if(arguments.length===3){_2f6=[_2f5,arguments[2],true];}else{_2f6=[null,_2f5,false];}_1c3.handle(this.url,"jobs/"+_2f4,{returnMessages:true},null,_7,this,this._jobHandler,_2f6);};_2d4.prototype.cancelJobStatusUpdates=function(_2f7){clearTimeout(this._timers[_2f7]);delete this._timers[_2f7];};_2d4.prototype.getResultData=function(_2f8,_2f9,_2fa,_2fb){if(!(_2f8&&_2f9)){throw new Error("Geoprocessor.getResultData(): 'jobId' and 'resultParameterName' arguments are required");}_1c3.handle(this.url,"jobs/"+_2f8+"/results/"+_2f9,{returnType:"data",outSR:_3},null,((_2fa)?_6:_7),this,this._resultDataHandler,_2fb);};_2d4.prototype._resultDataHandler=function(_2fc,_2fd,_2fe){var _2ff=null;if(_2fc){if(_2fc instanceof GGeoXml){_2ff=_2fc;}else{var out=new _2ac();out.paramName=_2fc.paramName;var _301=(out.dataType=_2fc.dataType);out.value=_2cf(_301,_2fc.value);_2ff=out;}}_10(this,"getresultdatacomplete",_2fe,[_2ff,_2fd]);};_2d4.prototype.getResultImage=function(_302,_303,_304,_305){if(!(_302&&_303)){throw new Error("Geoprocessor.getResultImage(): 'jobId' and 'resultParameterName' arguments are required");}var _306=_2b7(_304||new _2b6());_1c3.handle(this.url,"jobs/"+_302+"/results/"+_303,_306,null,_7,this,this._resultImageHandler,_305);};_2d4.prototype._resultImageHandler=function(_307,_308,_309){var mi=null;if(_307){var _30b=_307.href?_307:_307.value.mapImage;var ext=_30b.extent;var sr=(ext)?ext.spatialReference:null;mi=_2c3(_30b,((sr&&sr.wkid===102113)?true:false));}_10(this,"getresultimagecomplete",_309,[mi,_308]);};var _30e;_2d4.prototype.getResultImageLayer=function(_30f,_310,_311){if(!(_30f&&_310)){throw new Error("Geoprocessor.getResultLayer(): 'jobId' and 'resultParameterName' arguments are required");}var uo=_28(this.url);var url=uo.path+"/jobs/"+_30f+"/results/"+_310;url=_36(url,uo.query);return new _30e(url,_311,1,null,true);};var _314=function(){this.id=null;this.name=null;this.parentLayerId=null;this.subLayerIds=null;this.defaultVisibility=null;};var _315=function(res,xmin,xmax,_319){if(!res){var _31a=_57.lngToX;var x1=_31a(xmin);var x2=_31a(xmax);res=(x2-x1)/_319;}var _31d,_31e,_31f,glev,gres,_322,_323;_31d=_31e=-1;for(var i=0;i<=_b;i++){glev=i;gres=_c[i];if(res>=gres){_31e=glev;_31d=_31e-1;break;}}if(_31e===-1){_31f=_b;}else{if(_31d===-1){_31f=_a;}else{_322=_c[_31d]-res;_323=res-_c[_31e];if(_322<=_323){_31f=_31d;}else{_31f=_31e;}}}return _31f;};var _325=function(json){var _327=[];var lyr,_329;for(var i=0,il=json.length;i<il;i++){lyr=json[i];_329=new _314();_329.id=lyr.id;_329.name=lyr.name;_329.parentLayerId=lyr.parentLayerId;_329.subLayerIds=lyr.subLayerIds;_329.defaultVisibility=lyr.defaultVisibility;_327.push(_329);}return _327;};var _32c=function(url,_32e,_32f){this.url=url;this.fullExtent=null;this.initialExtent=null;this.layerInfos=null;this.description=null;this.copyright=null;var _330,opac,_332,_333;_330=opac=_332=_333=null;if(_32e){_330=_32e.copyrights;opac=_32e.opacity;_332=_32e.minResolution;_333=_32e.maxResolution;}this._options=_44(_32e);this._copyrights=_330;this._opacity=(opac!==null)?opac:1;this._minZoomLevel=(this._minResolution=(_332!==null)?_332:_a);this._maxZoomLevel=(this._maxResolution=(_333!==null)?_333:_b);this._format=null;this._fileExtension=null;this._tileZoomLevels=null;_1c3.handle(url,null,null,null,_7,this,this._responseHandler,_32f);};if(_d){_32c.prototype=new GTileLayer();}_32c._BLANK_TILE="http://serverapi.arcgisonline.com/jsapi/gmaps/transparent.png";_32c.prototype.getTileUrl=function(tile,zoom){var _336=_32c._BLANK_TILE;if(zoom<this._minZoomLevel||zoom>this._maxZoomLevel){return _336;}var tx=tile.x;var ty=tile.y;var trng=this._tileRange[zoom];var swX=trng.swX;var swY=trng.swY;var neX=trng.neX;var neY=trng.neY;if((tx<swX||tx>neX)||(ty<neY||ty>swY)){return _336;}var uo=_28(this.url);var url=uo.path+"/tile/"+this._tileZoomLevels[zoom]+"/"+ty+"/"+tx+"."+this._fileExtension;url=_36(url,uo.query);url=_1bd(url);return url;};_32c.prototype.isPng=function(){return(this._fileExtension==="png")?true:false;};_32c.prototype.getOpacity=function(){return this._opacity;};_32c.prototype.getCopyright=function(_340,zoom){var _342=this._copyrights;return(_342)?_342.getCopyrightNotice(_340,zoom):(this.copyright||"");};_32c.prototype._responseHandler=function(_343,_344,_345){if(_343){var sr=_343.spatialReference;var _347=_343.tileInfo;if(!_347){throw new Error("The map service, "+this.url+", does not have tile information");}var wkid=sr.wkid||null;if(wkid!==_4){throw new Error("Spatial reference, "+wkid+", of the map service, "+this.url+", is not compatible with Google Maps. Expected spatial reference = "+_4);}var rows=_347.rows||null;var cols=_347.cols||null;if(rows!==_8||cols!==_9){throw new Error("Tile size, "+rows+"px X "+cols+"px, of the map service, "+this.url+", is not compatible with Google Maps. Expected tile size = "+_8+"px X "+_9+"px");}var lods=_347.lods;if(!lods){throw new Error("The map service, "+this.url+", does not have zoom level information");}var full=_343.fullExtent;this.description=_343.description;this.copyright=_343.copyrightText;this.fullExtent=_fe(full,true);this.initialExtent=_fe(_343.initialExtent,true);this.layerInfos=_325(_343.layers);this._format=_347.format;this._fileExtension={PNG:"png",PNG8:"png",PNG24:"png",PNG32:"png",JPG:"jpg",JPEG:"jpg",GIF:"gif"}[this._format];this._setZoomLevels(lods);var _34d=(this._tileRange=[]);var ori=_347.origin;for(var i=_a;i<=_b;i++){_34d[i]=this._getTileCoordinates(ori,full,i);}if(_e){var uo=_28(this.url);var url=uo.path+"/tile/{Z}/{Y}/{X}."+this._fileExtension;url=_36(url,uo.query);url=_1bd(url);this._options.tileUrlTemplate=url;GTileLayer.call(this,null,this._minResolution,this._maxResolution,this._options);}}_10(this,"load",_345,[this,_344]);};_32c.prototype._getTileCoordinates=function(_352,_353,zoom){var abs=Math.abs;var _356=Math.floor;var res=_c[zoom];var _358=res*_9;var _359=res*_8;var _35a=abs(_353.xmin-_352.x);var _35b=abs(_353.ymin-_352.y);var _35c=abs(_353.xmax-_352.x);var _35d=abs(_353.ymax-_352.y);return{swX:_356(_35a/_358),swY:_356(_35b/_359),neX:_356(_35c/_358),neY:_356(_35d/_359)};};_32c.prototype._setZoomLevels=function(lods){var tzl=(this._tileZoomLevels=[]);var lod,lev,res,_363;var _364=_b;var _365=_a;for(var i=0,il=lods.length;i<il;i++){lod=lods[i];lev=lod.level;res=lod.resolution;_363=_315(res);tzl[_363]=lev;if(_363<_364){_364=_363;}if(_363>_365){_365=_363;}}this._minZoomLevel=(_364>this._minResolution)?_364:this._minResolution;this._maxZoomLevel=(_365<this._maxResolution)?_365:this._maxResolution;};_30e=function(url,_369,_36a,_36b){this.url=url;this.fullExtent=null;this.initialExtent=null;this.layerInfos=null;this.description=null;this.copyright=null;this._options=(_369)?_44(_369):new _2b6();this._opacity=(_1f(_36a))?_36a:1;this._callback=_36b;var gp=arguments[4];if(gp){this._GP_=true;return this;}else{_1c3.handle(this.url,null,null,null,_7,this,this._responseHandler,_36b);}};if(_d){_30e.prototype=new GOverlay();}_30e.prototype.initialize=function(map){var div=document.createElement("div");div.style.position="absolute";map.getPane(G_MAP_MAP_PANE).appendChild(div);this._map=map;this._div=div;this.show();};_30e.prototype.remove=function(){var img=this._img;var div=this._div;this.hide();if(img){img.parentNode.removeChild(img);}if(div){div.parentNode.removeChild(div);}this._img=this._div=this._map=null;};_30e.prototype.copy=function(){return new _30e(this.url,this._options,this._opacity,this._callback);};_30e.prototype.redraw=function(_371){};_30e.prototype._redraw=function(){if(this._img_loading){_1c3.cancel(this._request);this._request=this._img_loading=null;}var map=this._map;var _373=map.getBounds();_373=this._getAdjustedExtent(_373);var abs=Math.abs;var xmin=_373.xmin,ymin=_373.ymin,xmax=_373.xmax,ymax=_373.ymax;var sw=new GLatLng(ymin,xmin);var ne=new GLatLng(ymax,xmax);var c1=map.fromLatLngToDivPixel(sw);var c2=map.fromLatLngToDivPixel(ne);var _37d=abs(c1.x-c2.x);var _37e=abs(c1.y-c2.y);_37d=this._getAdjustedWidth(xmin,xmax,map.getZoom(),_37d);var _37f=_2b7(this._options,_373,_37d,_37e);var img=document.createElement("img");img.style.position="absolute";this._img_loading=img;this._request=_1c3.handle(this.url,this._GP_?"":"export",_37f,null,_7,this,this._redrawHandler,null);};_30e.prototype._redrawHandler=function(_381,_382){if(_382){throw new Error("Error "+_382.code+": "+_382.message+"("+_382.details.join(",")+")");}if(this._moving){this._img_loading=null;return;}var _383=_381.href?_381:_381.value.mapImage;var uo=_28(this.url);var url=_383.href;url=_36(url,uo.query);url=_1bd(url);var _386=_fe(_383.extent,true);var div=this._div;var map=this._map;var c1=map.fromLatLngToDivPixel(_386.getSouthWest());var c2=map.fromLatLngToDivPixel(_386.getNorthEast());div.style.left=c1.x+"px";div.style.top=c2.y+"px";var img=this._img_loading;img.src=url;if(this._img){this._img.parentNode.removeChild(this._img);}this._img=img;this._img_loading=null;this.setOpacity(this._opacity);div.appendChild(img);div.style.display="";};_30e.prototype._getAdjustedExtent=function(_38c){var sw=_38c.getSouthWest();var ne=_38c.getNorthEast();var xmin=sw.lng(),ymin=sw.lat();var xmax=ne.lng(),ymax=ne.lat();if(xmin>xmax){xmin=-180;}if(ymax>89){ymax=89;}if(ymin<-89){ymin=-89;}return{xmin:xmin,ymin:ymin,xmax:xmax,ymax:ymax};};_30e.prototype._getAdjustedWidth=function(xmin,xmax,zoom,_396){var _397=Math.floor;if(!_396){var _398=_57.lngToX;var x1=_398(xmin);var x2=_398(xmax);_396=_397((x2-x1)/_c[zoom]);}if(xmin===-180&&xmax===180){_396=_397(Math.pow(2,zoom)*_9);}return _396;};_30e.prototype._getHeight=function(ymin,ymax,zoom){var _39e=_57.latToY;var y1=_39e(ymin);var y2=_39e(ymax);var _3a1=Math.floor((y2-y1)/_c[zoom]);return _3a1;};_30e.prototype._moveStartHandler=function(){this._movestart=true;this._div.style.display="";};_30e.prototype._moveHandler=function(){if(!this._movestart){this._div.style.display="none";}else{this._div.style.display="";this._moving=true;}};_30e.prototype._moveEndHandler=function(){this._movestart=false;this._moving=false;this._redraw();};_30e.prototype._setHandlers=function(){var map=this._map;var bind=GEvent.bind;if(!this._handle_movestart){this._handle_movestart=bind(map,"movestart",this,this._moveStartHandler);}if(!this._handle_move){this._handle_move=bind(map,"move",this,this._moveHandler);}if(!this._handle_moveend){this._handle_moveend=bind(map,"moveend",this,this._moveEndHandler);}};_30e.prototype._clearHandlers=function(){var _3a4=this._handle_movestart;var move=this._handle_move;var end=this._handle_moveend;var _3a7=GEvent.removeListener;if(_3a4){_3a7(_3a4);}if(move){_3a7(move);}if(end){_3a7(end);}this._handle_movestart=this._handle_move=this._handle_moveend=null;};_30e.prototype.show=function(){this._setVisiblity(true);this._visible=true;};_30e.prototype.hide=function(){this._setVisiblity(false);this._visible=false;};_30e.prototype._setVisiblity=function(v){var div=this._div;if(!div){return;}if(v){if(!this._visible){this._redraw();this._setHandlers();}}else{if(this._visible){div.style.display="none";this._clearHandlers();}}};_30e.prototype.isHidden=function(){return!this._visible;};_30e.prototype.supportsHide=function(){return true;};_30e.prototype.setVisibleLayers=function(_3aa){var opts=this._options;opts.layerIds=_3aa;opts.layerOption="show";if(this._visible&&this._map){this._redraw();}};_30e.prototype.setDefaultVisibleLayers=function(){this._options.layerIds=null;if(this._visible&&this._map){this._redraw();}};_30e.prototype.setLayerDefinitions=function(_3ac){this._options.layerDefinitions=_3ac;if(this._visible&&this._map){this._redraw();}};_30e.prototype.clearLayerDefinitions=function(){this._options.layerDefinitions=null;if(this._visible&&this._map){this._redraw();}};_30e.prototype.setOpacity=function(_3ad){var op=(this._opacity=_3ad);var img=this._img;if(!img){return;}if(op<0){op=0;}if(op>1){op=1;}var ist=img.style;if("filter"in ist){ist.filter="alpha(opacity:"+Math.floor(op*100)+")";}if("KHTMLOpacity"in ist){ist.KHTMLOpacity=op;}if("MozOpacity"in ist){ist.MozOpacity=op;}if("opacity"in ist){ist.opacity=op;}};_30e.prototype._responseHandler=function(_3b1,_3b2,_3b3){var done=true;if(_3b1){this.description=_3b1.description;this.copyright=_3b1.copyrightText;this.layerInfos=_325(_3b1.layers);var init=_3b1.initialExtent;var full=_3b1.fullExtent;var isr=init.spatialReference.wkid;done=true;switch(isr){case 4326:this.initialExtent=_fe(init);this.fullExtent=_fe(full);break;case 102113:this.initialExtent=_fe(init,true);this.fullExtent=_fe(full,true);break;default:var _3b8=_f.geometryServiceUrl;this.initialExtent=init;this.fullExtent=full;if(_3b8){done=false;var gs=new _27b(_3b8);var _3ba=[{x:init.xmin,y:init.ymin},{x:init.xmax,y:init.ymax},{x:full.xmin,y:full.ymin},{x:full.xmax,y:full.ymax}];var _3bb=new _276();_3bb.geometries=_3ba;_3bb.geometryType="esriGeometryPoint";_3bb.inSpatialReference=isr;_3bb.outSpatialReference=_3;var self=this;var _cb=function(){self._projectHandler.call(self,arguments[0],arguments[1],_3b3);};gs.project(_3bb,_cb);}break;}}if(done){_10(this,"load",_3b3,[this,_3b2]);}};_30e.prototype._projectHandler=function(_3be,_3bf,_3c0){if(_3be){var _3c1=_3be.geometries;this.initialExtent=new GLatLngBounds(_3c1[0][0].getLatLng(),_3c1[1][0].getLatLng());this.fullExtent=new GLatLngBounds(_3c1[2][0].getLatLng(),_3c1[3][0].getLatLng());}_10(this,"load",_3c0,[this,_3bf]);};_30e.prototype.exportMapImage=function(_3c2,_3c3){if(!_3c2){throw new Error("DynamicMapServiceLayer.exportMapImage(): 'parameters' argument is required");}var _3c4=_3c2.bounds;var _3c5=_3c2.width;var _3c6=_3c2.height;var zoom=_3c2.zoomLevel;if(!(_1f(_3c4))){throw new Error("DynamicMapServiceLayer.exportMapImage(): 'parameters' must have a value for 'bounds' property");}if(_1f(zoom)){_3c4=this._getAdjustedExtent(_3c4);var xmin=_3c4.xmin,ymin=_3c4.ymin,xmax=_3c4.xmax,ymax=_3c4.ymax;_3c5=this._getAdjustedWidth(xmin,xmax,zoom);_3c6=this._getHeight(ymin,ymax,zoom);}var _3cc=_2b7(_3c2,_3c4,_3c5,_3c6);_1c3.handle(this.url,this._GP_?"":"export",_3cc,null,_7,this,this._exportHandler,_3c3);};_30e.prototype._exportHandler=function(_3cd,_3ce,_3cf){var mi=null;if(_3cd){var ext=_3cd.extent;var sr=(ext)?ext.spatialReference:null;mi=_2c3(_3cd,((sr&&sr.wkid===102113)?true:false));}_10(this,"exportcomplete",_3cf,[mi,_3ce]);};var _3d3=function(_3d4){var _3d5=[],res;if(_3d4 instanceof _c2){_3d5.push(_3d4);}else{if(_3d4 instanceof _204){res=_3d4.features;for(var i=0,il=res.length;i<il;i++){_3d5.push(res[i]);}}}return _3d5;};var _3d9=function(_3da){var _3db=[],res;if(_3da instanceof _222){_3db.push(_224(_3da));}else{if(_3da instanceof _223){res=_3da.addressCandidates;for(var i=0,il=res.length;i<il;i++){_3db.push(_224(res[i]));}}}return _3db;};var _3df=function(_3e0){var _3e1=[],res;if(_3e0 instanceof _248){_3e1.push(_3e0.feature);}else{if(_3e0 instanceof _249){res=_3e0.identifyResults;for(var i=0,il=res.length;i<il;i++){_3e1.push(res[i].feature);}}}return _3e1;};var _3e5=function(_3e6){var _3e7=[],res;if(_3e6 instanceof _262){_3e7.push(_3e6.feature);}else{if(_3e6 instanceof _263){res=_3e6.findResults;for(var i=0,il=res.length;i<il;i++){_3e7.push(res[i].feature);}}}return _3e7;};var _3eb=function(_3ec){var _3ed=[],res,val,_3f0,i,il,j,jl;if(_3ec instanceof _2ac){val=_3ec.value;if(val&&val instanceof _204){res=val.features;for(i=0,il=res.length;i<il;i++){_3ed.push(res[i]);}}}else{if(_3ec instanceof _2b3){_3f0=_3ec.results;for(i=0,il=_3f0.length;i<il;i++){val=_3f0[i].value;if(val&&val instanceof _204){res=val.features;for(j=0,jl=res.length;j<jl;j++){_3ed.push(res[j]);}}}}}return _3ed;};var _3f5=function(_3f6){var _3f7=[],res;res=_3f6.geometries;for(var i=0,il=res.length;i<il;i++){_3f7.push({geometry:res[i]});}return _3f7;};var _3fb=function(_3fc){var ovs=null;if(_3fc instanceof _c2||_3fc instanceof _204){ovs=_3d3(_3fc);}else{if(_3fc instanceof _222||_3fc instanceof _223){ovs=_3d9(_3fc);}else{if(_3fc instanceof _248||_3fc instanceof _249){ovs=_3df(_3fc);}else{if(_3fc instanceof _262||_3fc instanceof _263){ovs=_3e5(_3fc);}else{if(_3fc instanceof _278||_3fc instanceof _279||_3fc instanceof _27a){ovs=_3f5(_3fc);}else{if(_3fc instanceof _2ac||_3fc instanceof _2b3){ovs=_3eb(_3fc);}}}}}}return ovs;};var _3fe=function(map){this.map=map;};_3fe.prototype.addToMap=function(_400,_401,_402){if(_e){throw new Error("MapExtension: Asynchronous call to synchronous method: addToMap. Use addToMapAsync instead");}var _403=[],ovs,i,il,fe,type="",meta;var map=this.map;var fes=_3fb(_400);if(fes){fe=fes[0];if(fe&&fe.geometry){type=_52(fe.geometry).gmapsType;}meta={flags:_1a9(_401,type),style:_128(_401,type),type:type};for(i=0,il=fes.length;i<il;i++){ovs=_197(fes[i],_401,_402,meta,map);_403.push(ovs);}}else{if(_400 instanceof GGeoXml){map.addOverlay(_400);_403.push([_400]);}else{if(_400 instanceof _32c){var tov=new GTileLayerOverlay(_400);map.addOverlay(tov);_403.push([tov]);}else{throw new Error("MapExtension.addToMap(): 'results' argument should be one of the following types: FeatureSet, Feature, FindResults, FindResult, IdentifyResults, IdentifyResult, AddressResults, AddressCandidate, ProjectResults, SimplifyResults, BufferResults, GGeoXml, ParameterValue, GPResults, TiledMapServiceLayer");}}}return _403;};_3fe.prototype.addToMapAsync=function(_40d,_40e,_40f,_410){if(!_410){throw new Error("MapExtension.addToMapAsync(): 'callback' argument is required");}_40e=_44(_40e);_40f=_44(_40f);var _411=[],i,il,fe,type="",meta;var map=this.map;var args=[];var fes=_3fb(_40d);if(fes){fe=fes[0];if(fe&&fe.geometry){type=_52(fe.geometry).gmapsType;}meta={flags:_1a9(_40e,type),style:_128(_40e,type),type:type};for(i=0,il=fes.length;i<il;i++){args.push(_78);args.push("_addCustomOverlays");args.push([fes[i],_40e,_40f,meta,map]);}args.push(function(){var j,jl,_411=[];for(j=0,jl=arguments.length;j<jl;j++){_411.push(arguments[j]);}_410(_411);});GAsync.apply(null,args);}else{if(_40d instanceof GGeoXml){map.addOverlay(_40d);_411.push([_40d]);_410(_411);}else{if(_40d instanceof _32c){var tov=new GTileLayerOverlay(_40d);map.addOverlay(tov);_411.push([tov]);_410(_411);}else{throw new Error("MapExtension.addToMapAsync(): 'results' argument should be one of the following types: FeatureSet, Feature, FindResults, FindResult, IdentifyResults, IdentifyResult, AddressResults, AddressCandidate, ProjectResults, SimplifyResults, BufferResults, GGeoXml, ParameterValue, GPResults, TiledMapServiceLayer");}}}};_3fe.prototype.removeFromMap=function(_41d){if(!_41d){return;}var map=this.map;var ovs,ov;for(var i=0,il=_41d.length;i<il;i++){ovs=_41d[i];for(var j=0,jl=ovs.length;j<jl;j++){ov=ovs[j];GEvent.clearListeners(ov,"click");map.removeOverlay(ov);}}};return{_RestRequest:_1c3,_MercatorProjection:_57,SpatialRelationship:_202,Config:_f,QueryTask:_215,Locator:_22c,FindTask:_264,Geometry:_27b,Geoprocessor:_2d4,IdentifyTask:_24a,Query:_203,IdentifyParameters:_247,FindParameters:_261,FeatureSet:_204,Feature:_c2,SRUnitType:_275,ProjectParameters:_276,BufferParameters:_277,GPDate:_2ae,LinearUnit:_2af,DataFile:_2b0,RasterData:_2b1,JobStatus:_2b5,TiledMapServiceLayer:_32c,DynamicMapServiceLayer:_30e,ImageParameters:_2b6,MapExtension:_3fe};};return{gmaps:_2()};};return{arcgis:_1()};}();
