{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/views/3d/support/PBFDecoderWorker.js","webpack:///./node_modules/arcgis-js-api/tasks/operations/pbfDehydratedFeatureSet.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAA4B,CAAC,2BAAmD,CAAC,2BAAyC,CAAC,mCAAE,sBAAsB,aAAa,sCAAsC,SAAS,EAAE,iBAAiB,cAAc,kDAAkD,oHAAoH,KAAK,uFAAuF,kBAAkB,UAAU,EAAE,oBAAoB,GAAG,GAAG,qBAAqB,cAAc;AAAA,oGAAE,C;;;;;;;ACxBnnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAA0B,CAAC,2BAAgB,CAAC,2BAAiC,CAAC,2BAA0C,CAAC,2BAA4B,CAAC,2BAAU,CAAC,mCAAE,0BAA0B,aAAa,gBAAgB,SAAS,oBAAoB,UAAU,yBAAyB,uEAAuE,4BAA4B,mBAAmB,WAAW,oBAAoB,UAAU,uBAAuB,2BAA2B,oBAAoB,UAAU,uBAAuB,2BAA2B,oBAAoB,UAAU,uBAAuB,2BAA2B,kBAAkB,4BAA4B,mBAAmB,sCAAsC,SAAS,6CAA6C,iBAAiB,cAAc,+UAA+U,kDAAkD,uCAAuC,6CAA6C,0FAA0F,0DAA0D,kGAAkG,8BAA8B,WAAW,KAAK,mBAAmB,+CAA+C,aAAa,oCAAoC,6BAA6B,gCAAgC,cAAc,GAAG,sCAAsC,gBAAgB,WAAW,KAAK,kBAAkB,sCAAsC,oFAAoF,kCAAkC,sBAAsB,qDAAqD,mBAAmB,yCAAyC,WAAW,oOAAoO,+CAA+C,mCAAmC,iCAAiC,iCAAiC,MAAM,iDAAiD,qCAAqC,iCAAiC,mCAAmC,MAAM,kDAAkD,sCAAsC,iCAAiC,oCAAoC,MAAM,oDAAoD,wCAAwC,iCAAiC,sCAAsC,MAAM,wCAAwC,sCAAsC,yPAAyP,uCAAuC,0EAA0E,6CAA6C,OAAO,sFAAsF,yCAAyC,gDAAgD,sDAAsD,aAAa,MAAM,aAAa,MAAM,0BAA0B,MAAM,cAAc,kDAAkD,QAAQ,oHAAoH,mDAAmD,gDAAgD,kDAAkD,gDAAgD,qDAAqD,yBAAyB,uCAAuC,oCAAoC,+CAA+C,OAAO,2FAA2F,gDAAgD,OAAO,4FAA4F,kDAAkD,OAAO,6FAA6F,2DAA2D,iCAAiC,yCAAyC,WAAW,KAAK,+DAA+D,8KAA8K,uDAAuD,+LAA+L,8CAA8C,sBAAsB,wBAAwB,GAAG,GAAG,sCAAsC;AAAA,oGAAE,C","file":"js/chunk-179a91fc.6cd1d129.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/promiseUtils\",\"../../../tasks/operations/pbfDehydratedFeatureSet\",\"../../../tasks/operations/pbfQueryUtils\"],(function(e,t,r,n,s,i){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var a=function(){function e(){}return e.prototype._parseFeatureQuery=function(e){var t=i.parsePBFFeatureQuery(e.buffer,new s.DehydratedFeatureSetParserContext(e.options)),a=r.__assign(r.__assign({},t),{spatialReference:t.spatialReference.toJSON(),fields:t.fields?t.fields.map((function(e){return e.toJSON()})):void 0});return n.resolve(a)},e}();t.default=function(){return new a}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../core/compilerUtils\",\"../../core/uid\",\"../../geometry/SpatialReference\",\"../../layers/graphics/dehydratedFeatures\",\"../../layers/support/Field\",\"./zscale\"],(function(t,e,r,n,o,i,a,s){\"use strict\";function u(t,e){return e}function h(t,e,r,n){switch(r){case 0:return f(t,e+n,0);case 1:return\"lowerLeft\"===t.originPosition?f(t,e+n,1):function(t,e,r){var n=t.translate,o=t.scale;return n[r]-e*o[r]}(t,e+n,1)}}function p(t,e,r,n){switch(r){case 2:return f(t,e,2);default:return h(t,e,r,n)}}function c(t,e,r,n){switch(r){case 2:return f(t,e,3);default:return h(t,e,r,n)}}function d(t,e,r,n){switch(r){case 3:return f(t,e,3);default:return p(t,e,r,n)}}function f(t,e,r){var n=t.translate,o=t.scale;return n[r]+e*o[r]}Object.defineProperty(e,\"__esModule\",{value:!0}),e.DehydratedFeatureSetParserContext=void 0;var l=function(){function t(t){this.options=t,this.geometryTypes=[\"point\",\"multipoint\",\"polyline\",\"polygon\"],this.previousCoordinate=[0,0],this.transform=null,this.applyTransform=u,this.lengths=[],this.currentLengthIndex=0,this.toAddInCurrentPath=0,this.vertexDimension=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,this.AttributesConstructor=function(){}}return t.prototype.createFeatureResult=function(){return new i.DehydratedFeatureSetClass},t.prototype.finishFeatureResult=function(t){if(this.options.applyTransform&&(t.transform=null),this.AttributesConstructor=function(){},this.coordinateBuffer=null,this.lengths.length=0,t.hasZ){var e=s.getGeometryZScaler(t.geometryType,this.options.sourceSpatialReference,t.spatialReference);if(e)for(var r=0,n=t.features;r0)for(var n in e.attributes){var o=e.attributes[n];\"string\"==typeof o&&o.length>r&&(e.attributes[n]=\"\")}t.features.push(e)},t.prototype.prepareFeatures=function(t){var e=this;switch(this.options.applyTransform&&t.transform&&(this.transform=t.transform,this.applyTransform=this.deriveApplyTransform(t)),this.vertexDimension=2,t.hasZ&&this.vertexDimension++,t.hasM&&this.vertexDimension++,t.geometryType){case\"point\":this.addCoordinate=function(t,r,n){return e.addCoordinatePoint(t,r,n)},this.createGeometry=function(t){return e.createPointGeometry(t)};break;case\"polygon\":this.addCoordinate=function(t,r,n){return e.addCoordinatePolygon(t,r,n)},this.createGeometry=function(t){return e.createPolygonGeometry(t)};break;case\"polyline\":this.addCoordinate=function(t,r,n){return e.addCoordinatePolyline(t,r,n)},this.createGeometry=function(t){return e.createPolylineGeometry(t)};break;case\"multipoint\":this.addCoordinate=function(t,r,n){return e.addCoordinateMultipoint(t,r,n)},this.createGeometry=function(t){return e.createMultipointGeometry(t)};break;default:r.neverReached(t.geometryType)}},t.prototype.createFeature=function(){return this.lengths.length=0,this.currentLengthIndex=0,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,new i.DehydratedFeatureClass(n.generateUID(),null,new this.AttributesConstructor)},t.prototype.addLength=function(t,e,r){0===this.lengths.length&&(this.toAddInCurrentPath=e),this.lengths.push(e)},t.prototype.createPointGeometry=function(t){var e={type:\"point\",x:0,y:0,spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM};return e.hasZ&&(e.z=0),e.hasM&&(e.m=0),e},t.prototype.addCoordinatePoint=function(t,e,r){switch(e=this.applyTransform(this.transform,e,r,0),r){case 0:t.x=e;break;case 1:t.y=e;break;case 2:t.hasZ?t.z=e:t.m=e;break;case 3:t.m=e}},t.prototype.transformPathLikeValue=function(t,e){var r=0;return e<=1&&(r=this.previousCoordinate[e],this.previousCoordinate[e]+=t),this.applyTransform(this.transform,t,e,r)},t.prototype.addCoordinatePolyline=function(t,e,r){this.dehydratedAddPointsCoordinate(t.paths,e,r)},t.prototype.addCoordinatePolygon=function(t,e,r){this.dehydratedAddPointsCoordinate(t.rings,e,r)},t.prototype.addCoordinateMultipoint=function(t,e,r){0===r&&t.points.push([]);var n=this.transformPathLikeValue(e,r);t.points[t.points.length-1].push(n)},t.prototype.createPolygonGeometry=function(t){return{type:\"polygon\",rings:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}},t.prototype.createPolylineGeometry=function(t){return{type:\"polyline\",paths:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}},t.prototype.createMultipointGeometry=function(t){return{type:\"multipoint\",points:[],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}},t.prototype.dehydratedAddPointsCoordinate=function(t,e,r){if(null===this.coordinateBuffer){var n=this.lengths.reduce((function(t,e){return t+e}),0);this.coordinateBuffer=new Float64Array(n*this.vertexDimension)}0===r&&0==this.toAddInCurrentPath--&&(t.push([]),this.toAddInCurrentPath=this.lengths[++this.currentLengthIndex]-1,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0);var o=this.transformPathLikeValue(e,r),i=t[t.length-1];0===r&&i.push(new Float64Array(this.coordinateBuffer.buffer,this.coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT,this.vertexDimension)),this.coordinateBuffer[this.coordinateBufferPtr++]=o},t.prototype.deriveApplyTransform=function(t){var e=t.hasZ,r=t.hasM;return e&&r?d:e?p:r?c:h},t}();e.DehydratedFeatureSetParserContext=l}));"],"sourceRoot":""}