(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-771a1f22"],{d44e9:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return ae}));var n=r("a4ee"),i=r("59b2"),s=(r("b50f"),r("c120"),r("cea0")),o=r("d386"),a=r("2eab"),c=r("bb72");async function O(e,t,r){const n=Object(c["c"])(e),i={...n.query,f:"json",...t.toJSON()},s=Object(c["a"])(i,r);return Object(a["default"])(n.path+"/areasAndLengths",s).then(e=>e.data)}r("e06a");var l=r("a571"),u=r("1219");async function N(e,t,r,n){const i=t[0].spatialReference,s=Object(c["c"])(e),o={...s.query,f:"json",sr:JSON.stringify(i.toJSON()),polygons:JSON.stringify(Object(l["b"])(t).geometries),polylines:JSON.stringify(Object(l["b"])(r).geometries)},O=Object(c["a"])(o,n);return Object(a["default"])(s.path+"/autoComplete",O).then(({data:e})=>(e.geometries||[]).map(({rings:e})=>new u["a"]({spatialReference:i,rings:e})))}async function f(e,t,r){const n=Object(c["c"])(e),i={...n.query,f:"json",...t.toJSON()},s=t.outSpatialReference||t.geometries[0].spatialReference,o=Object(c["a"])(i,r);return Object(a["default"])(n.path+"/buffer",o).then(e=>(e.data.geometries||[]).map(({rings:e})=>new u["a"]({spatialReference:s,rings:e})))}var p=r("a9ab");async function b(e,t,r){const n=t[0].spatialReference,i=Object(c["c"])(e),s={...i.query,f:"json",sr:JSON.stringify(n.toJSON()),geometries:JSON.stringify(Object(l["b"])(t))},o=Object(c["a"])(s,r);return Object(a["default"])(i.path+"/convexHull",o).then(({data:e})=>Object(p["a"])(e.geometry).set({spatialReference:n}))}async function j(e,t,r,n){const i=Object(c["c"])(e),s=t[0].spatialReference,o={...n,query:{...i.query,f:"json",sr:JSON.stringify(s),target:JSON.stringify({geometryType:Object(p["c"])(t[0]),geometries:t}),cutter:JSON.stringify(r)}},O=await Object(a["default"])(i.path+"/cut",o),{cutIndexes:l,geometries:u=[]}=O.data;return{cutIndexes:l,geometries:u.map(e=>{const t=Object(p["a"])(e);return t.spatialReference=s,t})}}async function y(e,t,r){const n=t.geometries[0].spatialReference,i=Object(c["c"])(e),s={...i.query,f:"json",...t.toJSON()},o=Object(c["a"])(s,r);return Object(a["default"])(i.path+"/densify",o).then(({data:e})=>(e.geometries||[]).map(e=>Object(p["a"])(e).set({spatialReference:n})))}async function d(e,t,r,n){const i=t[0].spatialReference,s=Object(c["c"])(e);let o={query:{...s.query,f:"json",sr:JSON.stringify(i.toJSON()),geometries:JSON.stringify(Object(l["b"])(t)),geometry:JSON.stringify({geometryType:Object(p["c"])(r),geometry:r.toJSON()})}};return n&&(o={...n,...o}),Object(a["default"])(s.path+"/difference",o).then(({data:e})=>(e.geometries||[]).map(e=>Object(p["a"])(e).set({spatialReference:i})))}async function m(e,t,r){const n=Object(c["c"])(e),i={...n.query,f:"json",...t.toJSON()},s=Object(c["a"])(i,r);return Object(a["default"])(n.path+"/distance",s).then(({data:e})=>e&&e.distance)}var T=r("fa8a");const I=new T["a"]({MGRS:"mgrs",USNG:"usng",UTM:"utm",GeoRef:"geo-ref",GARS:"gars",DMS:"dms",DDM:"ddm",DD:"dd"});async function g(e,t,r){const n={};null!=t.sr&&"object"==typeof t.sr?n.sr=t.sr.wkid||JSON.stringify(t.sr):n.sr=t.sr,n.strings=JSON.stringify(t.strings);const i=t.conversionType||"mgrs";n.conversionType=I.toJSON(i),n.conversionMode=t.conversionMode;const s=Object(c["c"])(e),o={...s.query,f:"json",...n},O=Object(c["a"])(o,r);return Object(a["default"])(s.path+"/fromGeoCoordinateString",O).then(({data:e})=>e.coordinates)}const _=new T["a"]({109006:"centimeters",9102:"decimal-degrees",109005:"decimeters",9002:"feet",109009:"inches",9036:"kilometers",9001:"meters",9035:"miles",109007:"millimeters",109012:"nautical-miles",9096:"yards"});function S(e){const{geometries:t,deviationUnit:r,maxDeviation:n}=e.toJSON(),i={maxDeviation:n};return t&&t.length&&(i.geometries=JSON.stringify({geometryType:Object(p["c"])(t[0]),geometries:t}),i.sr=JSON.stringify(t[0].spatialReference)),_.write(r,i,"deviationUnit"),i}var R=r("6a0ed");let U=class extends R["a"]{constructor(e){super(e),this.deviationUnit=null,this.geometries=null,this.maxDeviation=null}};Object(n["a"])([Object(i["b"])({type:String,json:{write:!0}})],U.prototype,"deviationUnit",void 0),Object(n["a"])([Object(i["b"])({json:{read:{reader:e=>e?e.map(e=>Object(p["a"])(e)):null},write:{writer:(e,t)=>{t.geometries=e.map(e=>e.toJSON())}}}})],U.prototype,"geometries",void 0),Object(n["a"])([Object(i["b"])({type:Number,json:{write:!0}})],U.prototype,"maxDeviation",void 0),U=Object(n["a"])([Object(o["a"])("esri.rest.support.GeneralizeParameters")],U),U.from=Object(s["m"])(U);const h=U;async function E(e,t,r){const n=(t=h.from(t)).toJSON(),i=S(t),s=Object(c["c"])(e),o={...s.query,f:"json",...i},O=n.geometries[0].spatialReference,l=Object(c["a"])(o,r);return Object(a["default"])(s.path+"/generalize",l).then(({data:e})=>(e.geometries||[]).map(e=>Object(p["a"])(e).set({spatialReference:O})))}async function A(e,t,r,n){const i=t[0].spatialReference,s=Object(c["c"])(e),o={...s.query,f:"json",sr:JSON.stringify(i.toJSON()),geometries:JSON.stringify(Object(l["b"])(t)),geometry:JSON.stringify({geometryType:Object(p["c"])(r),geometry:r.toJSON()})},O=Object(c["a"])(o,n);return Object(a["default"])(s.path+"/intersect",O).then(({data:e})=>(e.geometries||[]).map(e=>Object(p["a"])(e).set({spatialReference:i})))}function J(e,t,r){const n=t.map(e=>e.toJSON()),i=t[0].spatialReference,s=Object(c["c"])(e),o={...s.query,f:"json",sr:i.wkid?i.wkid:JSON.stringify(i.toJSON()),polygons:JSON.stringify(n)},O=Object(c["a"])(o,r);return Object(a["default"])(s.path+"/labelPoints",O).then(({data:e})=>(e.labelPoints||[]).map(e=>Object(p["a"])(e).set({spatialReference:i})))}const w=new T["a"]({preserveShape:"preserve-shape"});function v(e){const{polylines:t,lengthUnit:r,geodesic:n,calculationType:i}=e.toJSON(),s={};s.polylines=JSON.stringify(t);const o=e.polylines[0].spatialReference;return s.sr=o.wkid?o.wkid:JSON.stringify(o.toJSON()),r&&(s.lengthUnit=r),n&&(s.geodesic=n),i&&(s.calculationType=w.toJSON(i)),s}var D=r("521c");let L=class extends R["a"]{constructor(e){super(e),this.calculationType=null,this.geodesic=null,this.lengthUnit=null,this.polylines=null}};Object(n["a"])([Object(i["b"])({type:String,json:{write:!0}})],L.prototype,"calculationType",void 0),Object(n["a"])([Object(i["b"])({type:Boolean,json:{write:!0}})],L.prototype,"geodesic",void 0),Object(n["a"])([Object(i["b"])({json:{write:!0}})],L.prototype,"lengthUnit",void 0),Object(n["a"])([Object(i["b"])({type:[D["a"]],json:{read:{reader:e=>e?e.map(e=>Object(p["a"])(e)):null},write:{writer:(e,t)=>{t.polylines=e.map(e=>e.toJSON())}}}})],L.prototype,"polylines",void 0),L=Object(n["a"])([Object(o["a"])("esri.rest.support.LengthsParameters")],L),L.from=Object(s["m"])(L);const M=L;async function C(e,t,r){t=M.from(t);const n=v(t),i=Object(c["c"])(e),s={...i.query,f:"json",...n},o=Object(c["a"])(s,r);return Object(a["default"])(i.path+"/lengths",o).then(({data:e})=>e)}const q=new T["a"]({esriGeometryOffsetBevelled:"bevelled",esriGeometryOffsetMitered:"mitered",esriGeometryOffsetRounded:"rounded"}),G=new T["a"]({9001:"meters",9002:"feet",9036:"kilometers",9093:"miles",109012:"nautical-miles",109001:"yards"});function x(e){const{geometries:t,bevelRatio:r,offsetDistance:n,offsetHow:i,offsetUnit:s}=e.toJSON(),o={bevelRatio:r,offsetDistance:n};return t&&t.length&&(o.geometries=JSON.stringify({geometryType:Object(p["c"])(t[0]),geometries:t}),o.sr=JSON.stringify(t[0].spatialReference)),i&&(o.offsetHow=q.toJSON(i)),s&&(o.offsetUnit=G.toJSON(s)),o}let H=class extends R["a"]{constructor(e){super(e),this.bevelRatio=null,this.geometries=null,this.offsetDistance=null,this.offsetHow=null,this.offsetUnit=null}};Object(n["a"])([Object(i["b"])({type:Number,json:{write:!0}})],H.prototype,"bevelRatio",void 0),Object(n["a"])([Object(i["b"])({json:{read:{reader:e=>e?e.map(e=>Object(p["a"])(e)):null},write:{writer:(e,t)=>{t.geometries=e.map(e=>e.toJSON())}}}})],H.prototype,"geometries",void 0),Object(n["a"])([Object(i["b"])({type:Number,json:{write:!0}})],H.prototype,"offsetDistance",void 0),Object(n["a"])([Object(i["b"])({type:String,json:{write:!0}})],H.prototype,"offsetHow",void 0),Object(n["a"])([Object(i["b"])({type:String,json:{write:!0}})],H.prototype,"offsetUnit",void 0),H=Object(n["a"])([Object(o["a"])("esri.rest.support.OffsetParameters")],H),H.from=Object(s["m"])(H);const Y=H;async function k(e,t,r){t=Y.from(t);const n=x(t),i=Object(c["c"])(e),s={...i.query,f:"json",...n},o=t.geometries[0].spatialReference,O=Object(c["a"])(s,r);return Object(a["default"])(i.path+"/offset",O).then(({data:e})=>(e.geometries||[]).map(e=>Object(p["a"])(e).set({spatialReference:o})))}var F=r("ac91");const K=new T["a"]({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"});function B(e){const{geometries1:t,geometries2:r,relation:n,relationParameter:i}=e.toJSON(),s={};if(t&&t.length){s.geometries1=JSON.stringify({geometryType:Object(p["c"])(t[0]),geometries:t});const e=t[0].spatialReference;s.sr=e.wkid?e.wkid:JSON.stringify(e)}return r&&r.length>0&&(s.geometries2=JSON.stringify({geometryType:Object(p["c"])(r[0]),geometries:r})),n&&(s.relation=K.toJSON(n)),i&&(s.relationParam=i),s}let P=class extends R["a"]{constructor(e){super(e),this.geometries1=null,this.geometries2=null,this.relation=null,this.relationParameter=null}};Object(n["a"])([Object(i["b"])({json:{read:{reader:e=>e?e.map(e=>Object(p["a"])(e)):null},write:{writer:(e,t)=>{t.geometries1=e.map(e=>e.toJSON())}}}})],P.prototype,"geometries1",void 0),Object(n["a"])([Object(i["b"])({json:{read:{reader:e=>e?e.map(e=>Object(p["a"])(e)):null},write:{writer:(e,t)=>{t.geometries2=e.map(e=>e.toJSON())}}}})],P.prototype,"geometries2",void 0),Object(n["a"])([Object(i["b"])({type:String,json:{write:!0}})],P.prototype,"relation",void 0),Object(n["a"])([Object(i["b"])({type:String,json:{write:!0}})],P.prototype,"relationParameter",void 0),P=Object(n["a"])([Object(o["a"])("esri.rest.support.RelationParameters")],P),P.from=Object(s["m"])(P);const Q=P;async function V(e,t,r){t=Q.from(t);const n=B(t),i=Object(c["c"])(e),s={...i.query,f:"json",...n},o=Object(c["a"])(s,r);return Object(a["default"])(i.path+"/relation",o).then(({data:e})=>e.relations)}async function z(e,t,r,n){const i=t.spatialReference,s=Object(c["c"])(e),o={...s.query,f:"json",sr:JSON.stringify(i.toJSON()),target:JSON.stringify({geometryType:Object(p["c"])(t),geometry:t.toJSON()}),reshaper:JSON.stringify(r.toJSON())},O=Object(c["a"])(o,n);return Object(a["default"])(s.path+"/reshape",O).then(({data:e})=>Object(p["a"])(e.geometry).set({spatialReference:i}))}var W=r("e041");async function X(e,t,r){const n="string"==typeof e?Object(W["M"])(e):e,i=t[0].spatialReference,s=Object(p["c"])(t[0]),o={...r,query:{...n.query,f:"json",sr:i.wkid?i.wkid:JSON.stringify(i),geometries:JSON.stringify(Object(l["b"])(t))}},{data:c}=await Object(a["default"])(n.path+"/simplify",o);return Object(l["a"])(c.geometries,s,i)}async function Z(e,t,r){const n={};null!=t.sr&&"object"==typeof t.sr?n.sr=t.sr.wkid||JSON.stringify(t.sr):n.sr=t.sr,n.coordinates=JSON.stringify(t.coordinates);const i=t.conversionType||"mgrs";n.conversionType=I.toJSON(i),n.conversionMode=t.conversionMode,n.numOfDigits=t.numOfDigits,n.rounding=t.rounding,n.addSpaces=t.addSpaces;const s=Object(c["c"])(e),o={...s.query,f:"json",...n},O=Object(c["a"])(o,r);return Object(a["default"])(s.path+"/toGeoCoordinateString",O).then(({data:e})=>e.strings)}const $=new T["a"]({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"});function ee(e){const{extendHow:t,polylines:r,trimExtendTo:n}=e.toJSON(),i={};return i.extendHow=$.toJSON(t),r&&r.length&&(i.polylines=JSON.stringify(r),i.sr=JSON.stringify(r[0].spatialReference)),n&&(i.trimExtendTo=JSON.stringify(n)),i}let te=class extends R["a"]{constructor(e){super(e),this.extendHow="default-curve-extension",this.polylines=null,this.trimExtendTo=null}};Object(n["a"])([Object(i["b"])({type:String,json:{write:!0}})],te.prototype,"extendHow",void 0),Object(n["a"])([Object(i["b"])({type:[D["a"]],json:{read:{reader:e=>e?e.map(e=>Object(p["a"])(e)):null},write:{writer:(e,t)=>{t.polylines=e.map(e=>e.toJSON())}}}})],te.prototype,"polylines",void 0),Object(n["a"])([Object(i["b"])({json:{read:{reader:e=>e?Object(p["a"])(e):null},write:{writer:(e,t)=>{t.trimExtendTo=e.toJSON()}}}})],te.prototype,"trimExtendTo",void 0),te=Object(n["a"])([Object(o["a"])("esri.rest.support.TrimExtendParameters")],te),te.from=Object(s["m"])(te);const re=te;async function ne(e,t,r){t=re.from(t);const n=ee(t),i=Object(c["c"])(e),s={...i.query,f:"json",...n},o=t.sr,O=Object(c["a"])(s,r);return Object(a["default"])(i.path+"/trimExtend",O).then(({data:e})=>(e.geometries||[]).map(({paths:e})=>new D["a"]({spatialReference:o,paths:e})))}async function ie(e,t,r){const n=t[0].spatialReference,i=Object(c["c"])(e),s={...i.query,f:"json",sr:JSON.stringify(n.toJSON()),geometries:JSON.stringify(Object(l["b"])(t))},o=Object(c["a"])(s,r);return Object(a["default"])(i.path+"/union",o).then(({data:e})=>Object(p["a"])(e.geometry).set({spatialReference:n}))}var se=r("9209");let oe=class extends se["a"]{constructor(e){super(e),this.url=null}areasAndLengths(e,t){return O(this.url,e,t)}autoComplete(e,t,r){return N(this.url,e,t,r)}buffer(e,t){return f(this.url,e,t)}convexHull(e,t){return b(this.url,e,t)}cut(e,t,r){return j(this.url,e,t,r)}densify(e,t){return y(this.url,e,t)}difference(e,t,r){return d(this.url,e,t,r)}distance(e,t){return m(this.url,e,t)}fromGeoCoordinateString(e,t){return g(this.url,e,t)}generalize(e,t){return E(this.url,e,t)}intersect(e,t,r){return A(this.url,e,t,r)}labelPoints(e,t){return J(this.url,e,t)}lengths(e,t){return C(this.url,e,t)}offset(e,t){return k(this.url,e,t)}project(e,t){return Object(F["a"])(this.url,e,t)}relation(e,t){return V(this.url,e,t)}reshape(e,t,r){return z(this.url,e,t,r)}simplify(e,t){return X(this.url,e,t)}toGeoCoordinateString(e,t){return Z(this.url,e,t)}trimExtend(e,t){return ne(this.url,e,t)}union(e,t){return ie(this.url,e,t)}};oe.UNIT_METER=9001,oe.UNIT_GERMAN_METER=9031,oe.UNIT_FOOT=9002,oe.UNIT_SURVEY_FOOT=9003,oe.UNIT_CLARKE_FOOT=9005,oe.UNIT_FATHOM=9014,oe.UNIT_NAUTICAL_MILE=9030,oe.UNIT_SURVEY_CHAIN=9033,oe.UNIT_SURVEY_LINK=9034,oe.UNIT_SURVEY_MILE=9035,oe.UNIT_KILOMETER=9036,oe.UNIT_CLARKE_YARD=9037,oe.UNIT_CLARKE_CHAIN=9038,oe.UNIT_CLARKE_LINK=9039,oe.UNIT_SEARS_YARD=9040,oe.UNIT_SEARS_FOOT=9041,oe.UNIT_SEARS_CHAIN=9042,oe.UNIT_SEARS_LINK=9043,oe.UNIT_BENOIT_1895A_YARD=9050,oe.UNIT_BENOIT_1895A_FOOT=9051,oe.UNIT_BENOIT_1895A_CHAIN=9052,oe.UNIT_BENOIT_1895A_LINK=9053,oe.UNIT_BENOIT_1895B_YARD=9060,oe.UNIT_BENOIT_1895B_FOOT=9061,oe.UNIT_BENOIT_1895B_CHAIN=9062,oe.UNIT_BENOIT_1895B_LINK=9063,oe.UNIT_INDIAN_FOOT=9080,oe.UNIT_INDIAN_1937_FOOT=9081,oe.UNIT_INDIAN_1962_FOOT=9082,oe.UNIT_INDIAN_1975_FOOT=9083,oe.UNIT_INDIAN_YARD=9084,oe.UNIT_INDIAN_1937_YARD=9085,oe.UNIT_INDIAN_1962_YARD=9086,oe.UNIT_INDIAN_1975_YARD=9087,oe.UNIT_FOOT_1865=9070,oe.UNIT_RADIAN=9101,oe.UNIT_DEGREE=9102,oe.UNIT_ARCMINUTE=9103,oe.UNIT_ARCSECOND=9104,oe.UNIT_GRAD=9105,oe.UNIT_GON=9106,oe.UNIT_MICRORADIAN=9109,oe.UNIT_ARCMINUTE_CENTESIMAL=9112,oe.UNIT_ARCSECOND_CENTESIMAL=9113,oe.UNIT_MIL6400=9114,oe.UNIT_BRITISH_1936_FOOT=9095,oe.UNIT_GOLDCOAST_FOOT=9094,oe.UNIT_INTERNATIONAL_CHAIN=109003,oe.UNIT_INTERNATIONAL_LINK=109004,oe.UNIT_INTERNATIONAL_YARD=109001,oe.UNIT_STATUTE_MILE=9093,oe.UNIT_SURVEY_YARD=109002,oe.UNIT_50KILOMETER_LENGTH=109030,oe.UNIT_150KILOMETER_LENGTH=109031,oe.UNIT_DECIMETER=109005,oe.UNIT_CENTIMETER=109006,oe.UNIT_MILLIMETER=109007,oe.UNIT_INTERNATIONAL_INCH=109008,oe.UNIT_US_SURVEY_INCH=109009,oe.UNIT_INTERNATIONAL_ROD=109010,oe.UNIT_US_SURVEY_ROD=109011,oe.UNIT_US_NAUTICAL_MILE=109012,oe.UNIT_UK_NAUTICAL_MILE=109013,oe.UNIT_SQUARE_INCHES="esriSquareInches",oe.UNIT_SQUARE_FEET="esriSquareFeet",oe.UNIT_SQUARE_YARDS="esriSquareYards",oe.UNIT_ACRES="esriAcres",oe.UNIT_SQUARE_MILES="esriSquareMiles",oe.UNIT_SQUARE_MILLIMETERS="esriSquareMillimeters",oe.UNIT_SQUARE_CENTIMETERS="esriSquareCentimeters",oe.UNIT_SQUARE_DECIMETERS="esriSquareDecimeters",oe.UNIT_SQUARE_METERS="esriSquareMeters",oe.UNIT_ARES="esriAres",oe.UNIT_HECTARES="esriHectares",oe.UNIT_SQUARE_KILOMETERS="esriSquareKilometers",Object(n["a"])([Object(i["b"])()],oe.prototype,"url",void 0),oe=Object(n["a"])([Object(o["a"])("esri.tasks.GeometryService")],oe);const ae=oe}}]); //# sourceMappingURL=chunk-771a1f22.0c1123a5.js.map