????

Your IP : 18.116.80.77


Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/
Upload File :
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/21.23e532de6672ea2cbd8c.js

(function(){var e={"esri/tasks/support/TrimExtendParameters":"/0Fj","esri/tasks/support/ProjectParameters":"3k9p","esri/tasks/operations/trimExtend":"95iv","esri/tasks/support/RelationParameters":"BxfI","esri/tasks/operations/offset":"DpQ+","esri/tasks/support/OffsetParameters":"EQFB","esri/tasks/support/LengthsParameters":"K/Ch","esri/tasks/operations/lengths":"LUcZ","esri/tasks/operations/relation":"aiRT","esri/tasks/support/GeneralizeParameters":"b1PD","esri/tasks/operations/generalize":"qZhb","esri/tasks/GeometryService":"xuSL"},t=this||window,r=t.webpackJsonp=t.webpackJsonp||[];r.registerAbsMids?r.registerAbsMids(e):(r.absMidsWaiting=r.absMidsWaiting||[]).push(e)})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{"/0Fj":function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("zOht"),r("TMur"),r("ycL1"),r("Vx27"),r("1dvD"),r("Lzvl")],void 0===(i=(function(e,t,r,n,i,o,s,a){var p=function(e){function t(t){var r=e.call(this,t)||this;return r.extendHow="default-curve-extension",r.polylines=null,r.trimExtendTo=null,r}return r.__extends(t,e),r.__decorate([o.property({type:String,json:{write:!0}})],t.prototype,"extendHow",void 0),r.__decorate([o.property({type:[n.Polyline],json:{read:{reader:function(e){return e?e.map((function(e){return a.fromJSON(e)})):null}},write:{writer:function(e,t){t.polylines=e.map((function(e){return e.toJSON()}))}}}})],t.prototype,"polylines",void 0),r.__decorate([o.property({json:{read:{reader:function(e){return e?a.fromJSON(e):null}},write:{writer:function(e,t){t.trimExtendTo=e.toJSON()}}}})],t.prototype,"trimExtendTo",void 0),r.__decorate([o.subclass("esri.tasks.support.TrimExtendParameters")],t)}(i.JSONSupport);return p.from=s.default(p),p}).apply(null,n))||(e.exports=i)},"3k9p":function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("zOht"),r("ycL1"),r("qsST"),r("Vx27"),r("Lzvl")],void 0===(i=(function(e,t,r,n,i,o,s){var a=i.getLogger("esri.tasks.support.ProjectParameters");return function(e){function t(t){var r=e.call(this,t)||this;return r.geometries=null,r.outSpatialReference=null,r.transformation=null,r.transformForward=null,r}return r.__extends(t,e),Object.defineProperty(t.prototype,"outSR",{get:function(){return a.warn("ProjectParameters.outSR is deprecated. Use outSpatialReference instead."),this.outSpatialReference},set:function(e){a.warn("ProjectParameters.outSR is deprecated. Use outSpatialReference instead."),this.outSpatialReference=e},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var e=this.geometries.map((function(e){return e.toJSON()})),t=this.geometries[0],r={};return r.outSR=this.outSpatialReference.wkid||JSON.stringify(this.outSpatialReference.toJSON()),r.inSR=t.spatialReference.wkid||JSON.stringify(t.spatialReference.toJSON()),r.geometries=JSON.stringify({geometryType:s.getJsonType(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r},r.__decorate([o.property()],t.prototype,"geometries",void 0),r.__decorate([o.property({json:{read:{source:"outSR"}}})],t.prototype,"outSpatialReference",void 0),r.__decorate([o.property({json:{read:!1}})],t.prototype,"outSR",null),r.__decorate([o.property()],t.prototype,"transformation",void 0),r.__decorate([o.property()],t.prototype,"transformForward",void 0),r.__decorate([o.subclass("esri.tasks.support.ProjectParameters")],t)}(n.JSONSupport)}).apply(null,n))||(e.exports=i)},"95iv":function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("ImIS")],void 0===(i=(function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=new r.default({0:"default-curve-extension",1:"relocate-ends",2:"keep-end-attributes",4:"no-end-attributes",8:"no-extend-at-from",16:"no-extend-at-to"});t.trimExtendToRESTParameters=function(e){var t=e.toJSON(),r=t.polylines,i=t.trimExtendTo,o={};return o.extendHow=n.toJSON(t.extendHow),r&&r.length&&(o.polylines=JSON.stringify(r),o.sr=JSON.stringify(r[0].spatialReference)),i&&(o.trimExtendTo=JSON.stringify(i)),o}}).apply(null,n))||(e.exports=i)},BxfI:function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("zOht"),r("ycL1"),r("Vx27"),r("1dvD"),r("Lzvl")],void 0===(i=(function(e,t,r,n,i,o,s){var a=function(e){function t(t){var r=e.call(this,t)||this;return r.geometries1=null,r.geometries2=null,r.relation=null,r.relationParameter=null,r}return r.__extends(t,e),r.__decorate([i.property({json:{read:{reader:function(e){return e?e.map((function(e){return s.fromJSON(e)})):null}},write:{writer:function(e,t){t.geometries1=e.map((function(e){return e.toJSON()}))}}}})],t.prototype,"geometries1",void 0),r.__decorate([i.property({json:{read:{reader:function(e){return e?e.map((function(e){return s.fromJSON(e)})):null}},write:{writer:function(e,t){t.geometries2=e.map((function(e){return e.toJSON()}))}}}})],t.prototype,"geometries2",void 0),r.__decorate([i.property({type:String,json:{write:!0}})],t.prototype,"relation",void 0),r.__decorate([i.property({type:String,json:{write:!0}})],t.prototype,"relationParameter",void 0),r.__decorate([i.subclass("esri.tasks.support.RelationParameters")],t)}(n.JSONSupport);return a.from=o.default(a),a}).apply(null,n))||(e.exports=i)},"DpQ+":function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("ImIS"),r("Lzvl")],void 0===(i=(function(e,t,r,n){Object.defineProperty(t,"__esModule",{value:!0});var i=new r.default({esriGeometryOffsetBevelled:"bevelled",esriGeometryOffsetMitered:"mitered",esriGeometryOffsetRounded:"rounded"}),o=new r.default({9001:"meters",9002:"feet",9036:"kilometers",9093:"miles",109012:"nautical-miles",109001:"yards"});t.offsetToRESTParameters=function(e){var t=e.toJSON(),r=t.geometries,s=t.offsetHow,a=t.offsetUnit,p={bevelRatio:t.bevelRatio,offsetDistance:t.offsetDistance};return r&&r.length&&(p.geometries=JSON.stringify({geometryType:n.getJsonType(r[0]),geometries:r}),p.sr=JSON.stringify(r[0].spatialReference)),s&&(p.offsetHow=i.toJSON(s)),a&&(p.offsetUnit=o.toJSON(a)),p}}).apply(null,n))||(e.exports=i)},EQFB:function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("zOht"),r("ycL1"),r("Vx27"),r("1dvD"),r("Lzvl")],void 0===(i=(function(e,t,r,n,i,o,s){var a=function(e){function t(t){var r=e.call(this,t)||this;return r.bevelRatio=null,r.geometries=null,r.offsetDistance=null,r.offsetHow=null,r.offsetUnit=null,r}return r.__extends(t,e),r.__decorate([i.property({type:Number,json:{write:!0}})],t.prototype,"bevelRatio",void 0),r.__decorate([i.property({json:{read:{reader:function(e){return e?e.map((function(e){return s.fromJSON(e)})):null}},write:{writer:function(e,t){t.geometries=e.map((function(e){return e.toJSON()}))}}}})],t.prototype,"geometries",void 0),r.__decorate([i.property({type:Number,json:{write:!0}})],t.prototype,"offsetDistance",void 0),r.__decorate([i.property({type:String,json:{write:!0}})],t.prototype,"offsetHow",void 0),r.__decorate([i.property({type:String,json:{write:!0}})],t.prototype,"offsetUnit",void 0),r.__decorate([i.subclass("esri.tasks.support.OffsetParameters")],t)}(n.JSONSupport);return a.from=o.default(a),a}).apply(null,n))||(e.exports=i)},"K/Ch":function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("zOht"),r("TMur"),r("ycL1"),r("Vx27"),r("1dvD"),r("Lzvl")],void 0===(i=(function(e,t,r,n,i,o,s,a){var p=function(e){function t(t){var r=e.call(this,t)||this;return r.calculationType=null,r.geodesic=null,r.lengthUnit=null,r.polylines=null,r}return r.__extends(t,e),r.__decorate([o.property({type:String,json:{write:!0}})],t.prototype,"calculationType",void 0),r.__decorate([o.property({type:Boolean,json:{write:!0}})],t.prototype,"geodesic",void 0),r.__decorate([o.property({json:{write:!0}})],t.prototype,"lengthUnit",void 0),r.__decorate([o.property({type:[n.Polyline],json:{read:{reader:function(e){return e?e.map((function(e){return a.fromJSON(e)})):null}},write:{writer:function(e,t){t.polylines=e.map((function(e){return e.toJSON()}))}}}})],t.prototype,"polylines",void 0),r.__decorate([o.subclass("esri.tasks.support.LengthsParameters")],t)}(i.JSONSupport);return p.from=s.default(p),p}).apply(null,n))||(e.exports=i)},LUcZ:function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("ImIS")],void 0===(i=(function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=new r.default({preserveShape:"preserve-shape"});t.lengthsToRESTParameters=function(e){var t=e.toJSON(),r=t.lengthUnit,i=t.geodesic,o=t.calculationType,s={};s.polylines=JSON.stringify(t.polylines);var a=e.polylines[0].spatialReference;return s.sr=a.wkid?a.wkid:JSON.stringify(a.toJSON()),r&&(s.lengthUnit=r),i&&(s.geodesic=i),o&&(s.calculationType=n.toJSON(o)),s}}).apply(null,n))||(e.exports=i)},aiRT:function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("ImIS"),r("Lzvl")],void 0===(i=(function(e,t,r,n){Object.defineProperty(t,"__esModule",{value:!0});var i=new r.default({esriGeometryRelationCross:"cross",esriGeometryRelationDisjoint:"disjoint",esriGeometryRelationIn:"in",esriGeometryRelationInteriorIntersection:"interior-intersection",esriGeometryRelationIntersection:"intersection",esriGeometryRelationLineCoincidence:"line-coincidence",esriGeometryRelationLineTouch:"line-touch",esriGeometryRelationOverlap:"overlap",esriGeometryRelationPointTouch:"point-touch",esriGeometryRelationTouch:"touch",esriGeometryRelationWithin:"within",esriGeometryRelationRelation:"relation"});t.relationToRESTParameters=function(e){var t=e.toJSON(),r=t.geometries1,o=t.geometries2,s=t.relation,a=t.relationParameter,p={};if(r&&r.length){p.geometries1=JSON.stringify({geometryType:n.getJsonType(r[0]),geometries:r});var u=r[0].spatialReference;p.sr=u.wkid?u.wkid:JSON.stringify(u)}return o&&o.length>0&&(p.geometries2=JSON.stringify({geometryType:n.getJsonType(o[0]),geometries:o})),s&&(p.relation=i.toJSON(s)),a&&(p.relationParam=a),p}}).apply(null,n))||(e.exports=i)},b1PD:function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("zOht"),r("ycL1"),r("Vx27"),r("1dvD"),r("Lzvl")],void 0===(i=(function(e,t,r,n,i,o,s){var a=function(e){function t(t){var r=e.call(this,t)||this;return r.deviationUnit=null,r.geometries=null,r.maxDeviation=null,r}return r.__extends(t,e),r.__decorate([i.property({type:String,json:{write:!0}})],t.prototype,"deviationUnit",void 0),r.__decorate([i.property({json:{read:{reader:function(e){return e?e.map((function(e){return s.fromJSON(e)})):null}},write:{writer:function(e,t){t.geometries=e.map((function(e){return e.toJSON()}))}}}})],t.prototype,"geometries",void 0),r.__decorate([i.property({type:Number,json:{write:!0}})],t.prototype,"maxDeviation",void 0),r.__decorate([i.subclass("esri.tasks.support.GeneralizeParameters")],t)}(n.JSONSupport);return a.from=o.default(a),a}).apply(null,n))||(e.exports=i)},qZhb:function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("ImIS"),r("Lzvl")],void 0===(i=(function(e,t,r,n){Object.defineProperty(t,"__esModule",{value:!0});var i=new r.default({109006:"centimeters",9102:"decimal-degrees",109005:"decimeters",9002:"feet",109009:"inches",9036:"kilometers",9001:"meters",9035:"miles",109007:"millimeters",109012:"nautical-miles",9096:"yards"});t.generalizeToRESTParameters=function(e){var t=e.toJSON(),r=t.geometries,o=t.deviationUnit,s={maxDeviation:t.maxDeviation};return r&&r.length&&(s.geometries=JSON.stringify({geometryType:n.getJsonType(r[0]),geometries:r}),s.sr=JSON.stringify(r[0].spatialReference)),i.write(o,s,"deviationUnit"),s}}).apply(null,n))||(e.exports=i)},xuSL:function(e,t,r){var n,i;n=[r.dj.c(e.i),t,r("zOht"),r("TMur"),r("zp6E"),r("ImIS"),r("Vx27"),r("1dvD"),r("Lzvl"),r("FPqO"),r("qZhb"),r("LUcZ"),r("DpQ+"),r("aiRT"),r("95iv"),r("b1PD"),r("K/Ch"),r("EQFB"),r("3k9p"),r("BxfI"),r("/0Fj")],void 0===(i=(function(e,t,r,n,i,o,s,a,p,u,l,_,f,c,d,y,N,g,m,S,O){var T=new o.JSONMap({MGRS:"mgrs",USNG:"usng",UTM:"utm",GeoRef:"geo-ref",GARS:"gars",DMS:"dms",DDM:"ddm",DD:"dd"}),h=a.ensureType(m);return function(e){function t(t){var r=e.call(this,t)||this;return r.url=null,r}return r.__extends(t,e),t.prototype.areasAndLengths=function(e,t){var n=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),e.toJSON()),o=this._asValidOptions(n,t);return i(this.parsedUrl.path+"/areasAndLengths",o).then((function(e){return e.data}))},t.prototype.autoComplete=function(e,t,o){var s=e[0].spatialReference,a=r.__assign(r.__assign({},this.parsedUrl.query),{f:"json",sr:JSON.stringify(s.toJSON()),polygons:JSON.stringify(this._encodeGeometries(e).geometries),polylines:JSON.stringify(this._encodeGeometries(t).geometries)}),p=this._asValidOptions(a,o);return i(this.parsedUrl.path+"/autoComplete",p).then((function(e){return(e.data.geometries||[]).map((function(e){return new n.Polygon({spatialReference:s,rings:e.rings})}))}))},t.prototype.buffer=function(e,t){var o=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),e.toJSON()),s=e.outSpatialReference||e.geometries[0].spatialReference,a=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/buffer",a).then((function(e){return(e.data.geometries||[]).map((function(e){return new n.Polygon({spatialReference:s,rings:e.rings})}))}))},t.prototype.convexHull=function(e,t){var n=e[0].spatialReference,o=r.__assign(r.__assign({},this.parsedUrl.query),{f:"json",sr:JSON.stringify(n.toJSON()),geometries:JSON.stringify(this._encodeGeometries(e))}),s=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/convexHull",s).then((function(e){return p.fromJSON(e.data.geometry).set({spatialReference:n})}))},t.prototype.cut=function(e,t,n){var o=e[0].spatialReference,s=e.map((function(e){return e.toJSON()})),a=r.__assign(r.__assign({},this.parsedUrl.query),{f:"json",sr:JSON.stringify(o.toJSON()),target:JSON.stringify({geometryType:p.getJsonType(e[0]),geometries:s}),cutter:JSON.stringify(t.toJSON())}),u=this._asValidOptions(a,n);return i(this.parsedUrl.path+"/cut",u).then((function(e){var t=e.data;return{cutIndexes:t.cutIndexes,geometries:(t.geometries||[]).map((function(e){return p.fromJSON(e).set({spatialReference:o})}))}}))},t.prototype.densify=function(e,t){var n=e.geometries[0].spatialReference,o=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),e.toJSON()),s=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/densify",s).then((function(e){return(e.data.geometries||[]).map((function(e){return p.fromJSON(e).set({spatialReference:n})}))}))},t.prototype.difference=function(e,t,n){var o=e[0].spatialReference,s={query:r.__assign(r.__assign({},this.parsedUrl.query),{f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(this._encodeGeometries(e)),geometry:JSON.stringify({geometryType:p.getJsonType(t),geometry:t.toJSON()})})};return(this.requestOptions||n)&&(s=r.__assign(r.__assign(r.__assign({},this.requestOptions),n),s)),i(this.parsedUrl.path+"/difference",s).then((function(e){return(e.data.geometries||[]).map((function(e){return p.fromJSON(e).set({spatialReference:o})}))}))},t.prototype.distance=function(e,t){var n=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),e.toJSON()),o=this._asValidOptions(n,t);return i(this.parsedUrl.path+"/distance",o).then((function(e){var t=e.data;return t&&t.distance}))},t.prototype.fromGeoCoordinateString=function(e,t){var n={};n.sr=null!=e.sr&&"object"==typeof e.sr?e.sr.wkid||JSON.stringify(e.sr):e.sr,n.strings=JSON.stringify(e.strings),n.conversionType=T.toJSON(e.conversionType||"mgrs"),n.conversionMode=e.conversionMode;var o=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),n),s=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/fromGeoCoordinateString",s).then((function(e){return e.data.coordinates}))},t.prototype.generalize=function(e,t){var n=(e=y.from(e)).toJSON(),o=l.generalizeToRESTParameters(e),s=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),o),a=n.geometries[0].spatialReference,u=this._asValidOptions(s,t);return i(this.parsedUrl.path+"/generalize",u).then((function(e){return(e.data.geometries||[]).map((function(e){return p.fromJSON(e).set({spatialReference:a})}))}))},t.prototype.intersect=function(e,t,n){var o=e[0].spatialReference,s=r.__assign(r.__assign({},this.parsedUrl.query),{f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(this._encodeGeometries(e)),geometry:JSON.stringify({geometryType:p.getJsonType(t),geometry:t.toJSON()})}),a=this._asValidOptions(s,n);return i(this.parsedUrl.path+"/intersect",a).then((function(e){return(e.data.geometries||[]).map((function(e){return p.fromJSON(e).set({spatialReference:o})}))}))},t.prototype.labelPoints=function(e,t){var n=e.map((function(e){return e.toJSON()})),o=e[0].spatialReference,s=r.__assign(r.__assign({},this.parsedUrl.query),{f:"json",sr:o.wkid?o.wkid:JSON.stringify(o.toJSON()),polygons:JSON.stringify(n)}),a=this._asValidOptions(s,t);return i(this.parsedUrl.path+"/labelPoints",a).then((function(e){return(e.data.labelPoints||[]).map((function(e){return p.fromJSON(e).set({spatialReference:o})}))}))},t.prototype.lengths=function(e,t){e=N.from(e);var n=_.lengthsToRESTParameters(e),o=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),n),s=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/lengths",s).then((function(e){return e.data}))},t.prototype.offset=function(e,t){e=g.from(e);var n=f.offsetToRESTParameters(e),o=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),n),s=e.geometries[0].spatialReference,a=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/offset",a).then((function(e){return(e.data.geometries||[]).map((function(e){return p.fromJSON(e).set({spatialReference:s})}))}))},t.prototype.project=function(e,t){var n=this;e=h(e);var o=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),e.toJSON()),s=e.outSpatialReference,a=p.getJsonType(e.geometries[0]),u=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/project",u).then((function(e){return n._decodeGeometries(e.data,a,s)}))},t.prototype.relation=function(e,t){e=S.from(e);var n=c.relationToRESTParameters(e),o=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),n),s=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/relation",s).then((function(e){return e.data.relations}))},t.prototype.reshape=function(e,t,n){var o=e.spatialReference,s=r.__assign(r.__assign({},this.parsedUrl.query),{f:"json",sr:JSON.stringify(o.toJSON()),target:JSON.stringify({geometryType:p.getJsonType(e),geometry:e.toJSON()}),reshaper:JSON.stringify(t.toJSON())}),a=this._asValidOptions(s,n);return i(this.parsedUrl.path+"/reshape",a).then((function(e){return p.fromJSON(e.data.geometry).set({spatialReference:o})}))},t.prototype.simplify=function(e,t){var n=this,o=e[0].spatialReference,s=r.__assign(r.__assign({},this.parsedUrl.query),{f:"json",sr:o.wkid?o.wkid:JSON.stringify(o.toJSON()),geometries:JSON.stringify(this._encodeGeometries(e))}),a=p.getJsonType(e[0]),u=this._asValidOptions(s,t);return i(this.parsedUrl.path+"/simplify",u).then((function(e){return n._decodeGeometries(e.data,a,o)}))},t.prototype.toGeoCoordinateString=function(e,t){var n={};n.sr=null!=e.sr&&"object"==typeof e.sr?e.sr.wkid||JSON.stringify(e.sr):e.sr,n.coordinates=JSON.stringify(e.coordinates),n.conversionType=T.toJSON(e.conversionType||"mgrs"),n.conversionMode=e.conversionMode,n.numOfDigits=e.numOfDigits,n.rounding=e.rounding,n.addSpaces=e.addSpaces;var o=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),n),s=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/toGeoCoordinateString",s).then((function(e){return e.data.strings}))},t.prototype.trimExtend=function(e,t){e=O.from(e);var o=d.trimExtendToRESTParameters(e),s=r.__assign(r.__assign(r.__assign({},this.parsedUrl.query),{f:"json"}),o),a=e.sr,p=this._asValidOptions(s,t);return i(this.parsedUrl.path+"/trimExtend",p).then((function(e){return(e.data.geometries||[]).map((function(e){return new n.Polyline({spatialReference:a,paths:e.paths})}))}))},t.prototype.union=function(e,t){var n=e[0].spatialReference,o=r.__assign(r.__assign({},this.parsedUrl.query),{f:"json",sr:JSON.stringify(n.toJSON()),geometries:JSON.stringify(this._encodeGeometries(e))}),s=this._asValidOptions(o,t);return i(this.parsedUrl.path+"/union",s).then((function(e){return p.fromJSON(e.data.geometry).set({spatialReference:n})}))},t.prototype._asValidOptions=function(e,t){var n={query:e};return(this.requestOptions||t)&&(n=r.__assign(r.__assign(r.__assign({},this.requestOptions),t),n)),n},t.prototype._encodeGeometries=function(e){for(var t=[],r=e.length,n=0;n<r;n++)t.push(e[n].toJSON());return{geometryType:p.getJsonType(e[0]),geometries:t}},t.prototype._decodeGeometries=function(e,t,n){var i=p.getGeometryType(t),o=e.geometries,s=[],a={spatialReference:n.toJSON()};return o.forEach((function(e,t){s[t]=new i(r.__assign(r.__assign({},e),a))})),s},t.prototype._toProjectGeometry=function(e){var t=e.spatialReference.toJSON();return e instanceof n.Extent?new n.Polygon({rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]],spatialReference:t}):new n.Polyline({paths:[[].concat(e.points)],spatialReference:t})},t.prototype._fromProjectedGeometry=function(e,t,r){if("extent"===t){var i=e.rings[0];return new n.Extent(i[0][0],i[0][1],i[2][0],i[2][1],r)}return new n.Multipoint({points:e.paths[0],spatialReference:r.toJSON()})},t.UNIT_METER=9001,t.UNIT_GERMAN_METER=9031,t.UNIT_FOOT=9002,t.UNIT_SURVEY_FOOT=9003,t.UNIT_CLARKE_FOOT=9005,t.UNIT_FATHOM=9014,t.UNIT_NAUTICAL_MILE=9030,t.UNIT_SURVEY_CHAIN=9033,t.UNIT_SURVEY_LINK=9034,t.UNIT_SURVEY_MILE=9035,t.UNIT_KILOMETER=9036,t.UNIT_CLARKE_YARD=9037,t.UNIT_CLARKE_CHAIN=9038,t.UNIT_CLARKE_LINK=9039,t.UNIT_SEARS_YARD=9040,t.UNIT_SEARS_FOOT=9041,t.UNIT_SEARS_CHAIN=9042,t.UNIT_SEARS_LINK=9043,t.UNIT_BENOIT_1895A_YARD=9050,t.UNIT_BENOIT_1895A_FOOT=9051,t.UNIT_BENOIT_1895A_CHAIN=9052,t.UNIT_BENOIT_1895A_LINK=9053,t.UNIT_BENOIT_1895B_YARD=9060,t.UNIT_BENOIT_1895B_FOOT=9061,t.UNIT_BENOIT_1895B_CHAIN=9062,t.UNIT_BENOIT_1895B_LINK=9063,t.UNIT_INDIAN_FOOT=9080,t.UNIT_INDIAN_1937_FOOT=9081,t.UNIT_INDIAN_1962_FOOT=9082,t.UNIT_INDIAN_1975_FOOT=9083,t.UNIT_INDIAN_YARD=9084,t.UNIT_INDIAN_1937_YARD=9085,t.UNIT_INDIAN_1962_YARD=9086,t.UNIT_INDIAN_1975_YARD=9087,t.UNIT_FOOT_1865=9070,t.UNIT_RADIAN=9101,t.UNIT_DEGREE=9102,t.UNIT_ARCMINUTE=9103,t.UNIT_ARCSECOND=9104,t.UNIT_GRAD=9105,t.UNIT_GON=9106,t.UNIT_MICRORADIAN=9109,t.UNIT_ARCMINUTE_CENTESIMAL=9112,t.UNIT_ARCSECOND_CENTESIMAL=9113,t.UNIT_MIL6400=9114,t.UNIT_BRITISH_1936_FOOT=9095,t.UNIT_GOLDCOAST_FOOT=9094,t.UNIT_INTERNATIONAL_CHAIN=109003,t.UNIT_INTERNATIONAL_LINK=109004,t.UNIT_INTERNATIONAL_YARD=109001,t.UNIT_STATUTE_MILE=9093,t.UNIT_SURVEY_YARD=109002,t.UNIT_50KILOMETER_LENGTH=109030,t.UNIT_150KILOMETER_LENGTH=109031,t.UNIT_DECIMETER=109005,t.UNIT_CENTIMETER=109006,t.UNIT_MILLIMETER=109007,t.UNIT_INTERNATIONAL_INCH=109008,t.UNIT_US_SURVEY_INCH=109009,t.UNIT_INTERNATIONAL_ROD=109010,t.UNIT_US_SURVEY_ROD=109011,t.UNIT_US_NAUTICAL_MILE=109012,t.UNIT_UK_NAUTICAL_MILE=109013,t.UNIT_SQUARE_INCHES="esriSquareInches",t.UNIT_SQUARE_FEET="esriSquareFeet",t.UNIT_SQUARE_YARDS="esriSquareYards",t.UNIT_ACRES="esriAcres",t.UNIT_SQUARE_MILES="esriSquareMiles",t.UNIT_SQUARE_MILLIMETERS="esriSquareMillimeters",t.UNIT_SQUARE_CENTIMETERS="esriSquareCentimeters",t.UNIT_SQUARE_DECIMETERS="esriSquareDecimeters",t.UNIT_SQUARE_METERS="esriSquareMeters",t.UNIT_ARES="esriAres",t.UNIT_HECTARES="esriHectares",t.UNIT_SQUARE_KILOMETERS="esriSquareKilometers",r.__decorate([s.property()],t.prototype,"url",void 0),r.__decorate([s.subclass("esri.tasks.GeometryService")],t)}(u)}).apply(null,n))||(e.exports=i)}}]);