{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/views/2d/engine/BitmapTileContainer.js","webpack:///./node_modules/arcgis-js-api/views/2d/layers/features/tileRenderers/HeatmapTileRenderer.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/webgl/ClippingInfo.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/ImageryBitmapSource.js","webpack:///./node_modules/arcgis-js-api/views/2d/layers/features/tileRenderers/support/HeatmapSource.js","webpack:///./node_modules/arcgis-js-api/views/2d/layers/features/tileRenderers/BaseTileRenderer.js","webpack:///./node_modules/arcgis-js-api/renderers/support/heatmapUtils.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/Bitmap.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/webgl/Mesh2D.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/webgl/TileContainer.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/BitmapTile.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/webgl/WGLContainer.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,2BAA0C,CAAC,2BAAc,CAAC,2BAAW,CAAC,2BAAe,CAAC,2BAAuB,CAAC,mCAAE,0BAA0B,aAAa,sCAAsC,SAAS,+BAA+B,kBAAkB,aAAa,+CAA+C,2DAA2D,qDAAqD,8DAA8D,qCAAqC,6CAA6C,mCAAmC,kEAAkE,mCAAmC,gBAAgB,GAAG,8BAA8B,EAAE,0EAA0E,kCAAkC,kFAAkF,GAAG,YAAY,wBAAwB;AAAA,oGAAE,C;;;;;;;ACxBz/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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BAAiB,KAAK,wEAAwE,eAAe,8BAA8B,iBAAiB,yBAAyB,+BAA+B,yCAAyC,uFAAuF,iCAAiC,6BAA6B,iCAAiC,uBAAuB,GAAG,uBAAuB,eAAe;AAAA,oGAAE,C;;;;;;;ACxB/1B;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,2BAAsB,CAAC,2BAAwB,CAAC,2BAAY,CAAC,2BAAc,CAAC,2BAAgB,CAAC,2BAAS,CAAC,mCAAE,4BAA4B,aAAa,sCAAsC,SAAS,EAAE,kBAAkB,aAAa,8CAA8C,mCAAmC,mEAAmE,gBAAgB,iDAAiD,iBAAiB,8BAA8B,+BAA+B,mCAAmC,6CAA6C,0IAA0I,wLAAwL,wCAAwC,uFAAuF,iCAAiC,WAAW,KAAK,WAAW,IAAI,YAAY,SAAS,8EAA8E,4CAA4C,SAAS,6CAA6C,WAAW,6BAA6B,uDAAuD,wBAAwB,mGAAmG,GAAG,0CAA0C,4BAA4B,WAAW,KAAK,sBAAsB,iCAAiC,2DAA2D,iCAAiC,2DAA2D,4CAA4C,WAAW,4EAA4E,mBAAmB,yCAAyC,kBAAkB,qEAAqE,yCAAyC,0BAA0B,GAAG,cAAc,YAAY;AAAA,oGAAE,C","file":"js/chunk-505f75c6.530c32b0.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\",\"../../../geometry/support/aaBoundingRect\",\"./BitmapTile\",\"./brushes\",\"./webgl/enums\",\"./webgl/TileContainer\"],(function(e,t,r,i,n,s,a,o){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.BitmapTileContainer=void 0;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.createTile=function(e){var t=this._tileInfoView.getTileBounds(i.create(),e);return new n.BitmapTile(e,t,this._tileInfoView.tileInfo.size)},t.prototype.destroyTile=function(){},t.prototype.prepareRenderPasses=function(t){var i=this,n=t.registerRenderPass({name:\"bitmap (tile)\",brushes:[s.brushes.bitmap],target:function(){return i.children.map((function(e){return e.bitmap}))},drawPhase:a.WGLDrawPhase.MAP});return r.__spreadArrays(e.prototype.prepareRenderPasses.call(this,t),[n])},t.prototype.doRender=function(t){this.visible&&t.drawPhase===a.WGLDrawPhase.MAP&&e.prototype.doRender.call(this,t)},t}(o.default);t.BitmapTileContainer=p}));","// 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\",\"../../../../../core/accessorSupport/decorators\",\"../../../../../renderers/support/heatmapUtils\",\"../../../engine/BitmapTileContainer\",\"./BaseTileRenderer\",\"./support/HeatmapSource\"],(function(e,t,i,n,r,o,s,a,l){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var p=function(e){function t(t){var i=e.call(this,t)||this;return i._intensityInfo={minPixelIntensity:0,maxPixelIntensity:0},i.featuresView={attributeView:{initialize:function(){},requestUpdate:function(){}},requestRender:function(){}},i._container=new s.BitmapTileContainer(t.tileInfoView),i}return i.__extends(t,e),t.prototype.createTile=function(e){var t=this._container.createTile(e);return this.tileInfoView.getTileCoords(t.bitmap,e),t.bitmap.resolution=this.tileInfoView.getTileResolution(e),t},t.prototype.onConfigUpdate=function(){var e=this,t=this.layer.renderer;if(\"heatmap\"===t.type){var i=t.minPixelIntensity,n=t.maxPixelIntensity;this._intensityInfo.minPixelIntensity=i,this._intensityInfo.maxPixelIntensity=n,this._gradient=o.generateGradient(t.toJSON()),this.tiles.forEach((function(t){var r=t.bitmap.source;r&&(r.minPixelIntensity=i,r.maxPixelIntensity=n,r.gradient=e._gradient,t.bitmap.invalidateTexture())}))}},t.prototype.hitTest=function(){return n.resolve([])},t.prototype.install=function(e){e.addChild(this._container)},t.prototype.uninstall=function(e){this._container.removeAllChildren(),e.removeChild(this._container)},t.prototype.disposeTile=function(e){this._container.removeChild(e),e.destroy()},t.prototype.supportsRenderer=function(e){return e&&\"heatmap\"===e.type},t.prototype.onTileData=function(e){var t=this.tiles.get(e.tileKey);if(t){var i=e.intensityInfo,n=this._intensityInfo,r=n.minPixelIntensity,o=n.maxPixelIntensity,s=t.bitmap.source||new l.HeatmapSource;s.intensities=i&&i.matrix||null,s.minPixelIntensity=r,s.maxPixelIntensity=o,s.gradient=this._gradient,t.bitmap.source=s,this._container.addChild(t),this.requestUpdate()}},t.prototype.onTileError=function(e){console.error(e)},t.prototype.lockGPUUploads=function(){},t.prototype.unlockGPUUploads=function(){},t=i.__decorate([r.subclass(\"esri.views.2d.layers.features.tileRenderers.HeatmapTileRenderer\")],t)}(a.default);t.default=p}));","// 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/Error\",\"../../../../core/Logger\",\"../../../../core/maybe\",\"../DisplayObject\",\"./Mesh2D\",\"../../../webgl/VertexArrayObject\"],(function(e,t,r,i,o,s,a,c,h){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=o.getLogger(\"esri.views.2d.engine.webgl.ClippingInfo\"),p=function(e){return parseFloat(e)/100},f=function(e){function t(t,r){var i=e.call(this)||this;return i._clip=r,i._cache={},i.stage=t,i._handle=r.watch(\"version\",(function(){return i._invalidate()})),i.ready(),i}return r.__extends(t,e),t.fromClipArea=function(e,r){return new t(e,r)},t.prototype._destroyGL=function(){s.isSome(this._cache.mesh)&&(this._cache.mesh.destroy(),this._cache.mesh=null),s.isSome(this._cache.vao)&&(this._cache.vao.dispose(),this._cache.vao=null)},t.prototype.destroy=function(){this._destroyGL(),this._handle.remove()},t.prototype.getVAO=function(e,t,r,i){var o=t.size,a=o[0],c=o[1];if(\"geometry\"!==this._clip.type&&this._lastWidth===a&&this._lastHeight===c||(this._lastWidth=a,this._lastHeight=c,this._destroyGL()),s.isNone(this._cache.vao)){var n=this._createMesh(t,this._clip),p=n.getIndexBuffer(e),f=n.getVertexBuffers(e);this._cache.mesh=n,this._cache.vao=new h(e,r,i,f,p)}return this._cache.vao},t.prototype._invalidate=function(){this._destroyGL(),this.requestRender()},t.prototype._createScreenRect=function(e,t){var r=e.size,i=r[0],o=r[1],s=\"string\"==typeof t.left?p(t.left)*i:t.left,a=\"string\"==typeof t.right?p(t.right)*i:t.right,c=\"string\"==typeof t.top?p(t.top)*o:t.top,h=\"string\"==typeof t.bottom?p(t.bottom)*o:t.bottom,n=s,f=c;return{x:n,y:f,width:Math.max(i-a-n,0),height:Math.max(o-h-f,0)}},t.prototype._createMesh=function(e,t){switch(t.type){case\"rect\":return c.default.fromRect(this._createScreenRect(e,t));case\"path\":return c.default.fromPath(t);case\"geometry\":return c.default.fromGeometry(e,t);default:return n.error(new i(\"mapview-bad-type\",\"Unable to create ClippingInfo mesh from clip of type: ${clip.type}\")),c.default.fromRect({x:0,y:0,width:1,height:1})}},t}(a.DisplayObject);t.default=f}));","// 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\"],(function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t,i){this.pixelBlock=e,this.extent=t,this.originalPixelBlock=i}return Object.defineProperty(e.prototype,\"width\",{get:function(){return this.pixelBlock?this.pixelBlock.width:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"height\",{get:function(){return this.pixelBlock?this.pixelBlock.height:0},enumerable:!1,configurable:!0}),e.prototype.render=function(e){var t=this.pixelBlock;if(t){var i=this.filter({pixelBlock:t}),l=i.pixelBlock.getAsRGBA(),r=e.createImageData(i.pixelBlock.width,i.pixelBlock.height);r.data.set(l),e.putImageData(r,0,0)}},e.prototype.getRenderedRasterPixels=function(){var e=this.filter({pixelBlock:this.pixelBlock});return{width:e.pixelBlock.width,height:e.pixelBlock.height,renderedRasterPixels:new Uint8Array(e.pixelBlock.getAsRGBA().buffer)}},e}();t.default=i}));","// 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\",\"../../../../../../renderers/support/heatmapUtils\"],(function(e,t,i){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.HeatmapSource=void 0;var n=function(){function e(){this.gradient=null,this.height=512,this.width=512}return e.prototype.render=function(e){i.drawHeatmap(e,512,this.intensities,this.gradient,this.minPixelIntensity,this.maxPixelIntensity)},e}();t.HeatmapSource=n}));","// 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/HandleOwner\",\"../../../../../core/accessorSupport/decorators\"],(function(e,t,r,i,o){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(e){function t(t){var r=e.call(this,t)||this;return r.tiles=new Map,r}return r.__extends(t,e),t.prototype.destroy=function(){this.tiles.clear(),this.layer=this.layerView=this.tileInfoView=this.tiles=null},Object.defineProperty(t.prototype,\"updating\",{get:function(){return this.isUpdating()},enumerable:!1,configurable:!0}),t.prototype.acquireTile=function(e){var t=this,r=this.createTile(e);return r.once(\"isReady\",(function(){return t.notifyChange(\"updating\")})),this.tiles.set(e.id,r),r},t.prototype.forceAttributeTextureUpload=function(){},t.prototype.forEachTile=function(e){this.tiles.forEach(e)},t.prototype.releaseTile=function(e){this.tiles.delete(e.key.id),this.disposeTile(e)},t.prototype.isUpdating=function(){var e=!0;return this.tiles.forEach((function(t){e=e&&t.isReady})),!e},t.prototype.setHighlight=function(){},t.prototype.invalidateLabels=function(){},t.prototype.requestUpdate=function(){this.layerView.requestUpdate()},r.__decorate([o.property()],t.prototype,\"layer\",void 0),r.__decorate([o.property()],t.prototype,\"layerView\",void 0),r.__decorate([o.property()],t.prototype,\"tileInfoView\",void 0),r.__decorate([o.property()],t.prototype,\"updating\",null),t=r.__decorate([o.subclass(\"esri.views.2d.layers.features.tileRenderers.BaseTileRenderer\")],t)}(i.HandleOwner);t.default=n}));","// 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/global\",\"../../core/mathUtils\"],(function(t,e,a,r){\"use strict\";function n(t,e,a,n,u){for(var i=new Uint32Array(t*t),o=(\"buffer\"in e?e:new Float64Array(e)),f=(\"buffer\"in a?new Uint32Array(a.buffer):new Uint32Array(new Uint8Array(a).buffer)),c=f.length/(u-n),l=0;lm&&(m=n)}return{matrix:l.buffer,max:m}},e.calculateHeatmapIntensityInfoReaders=function(t,e,a,r){for(var n,i=e.blurRadius,f=e.fieldOffset,c=e.field,l=new Float64Array(a*r),h=u(i),d=Math.round(3*i),m=Number.NEGATIVE_INFINITY,g=o(c,f),s=new Set,y=0,I=t;ym&&(m=n)}}}return{matrix:l.buffer,max:m}},e.drawHeatmap=function(t,e,a,r,u,i){t.canvas.width=t.canvas.height=e,t.clearRect(0,0,e,e);var o=t.getImageData(0,0,e,e);a&&r&&o.data.set(new Uint8ClampedArray(n(e,a,r,u,i))),t.putImageData(o,0,0)},e.createHeatmapImageData=n,e.createKernel=u,e.createValueFunction=i,e.createValueFunctionCursor=o}));","// 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/libs/gl-matrix-2/mat3\",\"../../../core/libs/gl-matrix-2/mat3f32\",\"../../../core/libs/gl-matrix-2/vec2f32\",\"../../webgl\",\"./DisplayObject\",\"./ImageryBitmapSource\"],(function(t,e,i,r,n,s,o,a,u){\"use strict\";function h(t,e,i){var r={target:3553,pixelFormat:6408,internalFormat:6408,dataType:5121,wrapMode:33071};return e&&i&&(r.width=e,r.height=i),new o.Texture(t,r)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Bitmap=void 0;var c=function(t){function e(e,i){void 0===e&&(e=null),void 0===i&&(i=!0);var r=t.call(this)||this;return r.requestRenderOnSourceChangedEnabled=i,r._textureInvalidated=!0,r.stencilRef=0,r.coordScale=[1,1],r._height=void 0,r.pixelRatio=1,r.resolution=0,r.rotation=0,r._source=null,r._width=void 0,r.x=0,r.y=0,r.transforms={dvs:n.mat3f32.create()},r.source=e,r.requestRender=r.requestRender.bind(r),r}return i.__extends(e,t),Object.defineProperty(e.prototype,\"isSourceScaled\",{get:function(){return this.width!==this.sourceWidth||this.height!==this.sourceHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"height\",{get:function(){return void 0!==this._height?this._height:this.sourceHeight},set:function(t){this._height=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"source\",{get:function(){return this._source},set:function(t){this._source=t,this.invalidateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"sourceHeight\",{get:function(){return this._source instanceof HTMLImageElement?this._source.naturalHeight:this._source.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"sourceWidth\",{get:function(){return this._source instanceof HTMLImageElement?this._source.naturalWidth:this._source.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"width\",{get:function(){return void 0!==this._width?this._width:this.sourceWidth},set:function(t){this._width=t},enumerable:!1,configurable:!0}),e.prototype.invalidateTexture=function(){this._textureInvalidated||(this._textureInvalidated=!0,this.requestRenderOnSourceChangedEnabled&&this.requestRender())},e.prototype.setTransform=function(t){var e=r.mat3.identity(this.transforms.dvs),i=t.toScreenNoRotation([0,0],this.x,this.y),n=i[0],o=i[1],a=this.resolution/this.pixelRatio/t.resolution,u=a*this.width,h=a*this.height,c=Math.PI*this.rotation/180;r.mat3.translate(e,e,s.vec2f32.fromValues(n,o)),r.mat3.translate(e,e,s.vec2f32.fromValues(u/2,h/2)),r.mat3.rotate(e,e,-c),r.mat3.translate(e,e,s.vec2f32.fromValues(-u/2,-h/2)),r.mat3.scaleByVec2(e,e,s.vec2f32.fromValues(u,h)),r.mat3.multiply(this.transforms.dvs,t.displayViewMat3,e)},e.prototype.setSamplingProfile=function(t){this._texture&&(t.mips&&!this._texture.descriptor.hasMipmap&&this._texture.generateMipmap(),this._texture.setSamplingMode(t.samplingMode))},e.prototype.bind=function(t,e){var i=t.context;this._texture&&i.bindTexture(this._texture,e)},e.prototype.updateTexture=function(t){var e,i=t.context;if(!this.stage)return null===(e=this._texture)||void 0===e||e.dispose(),void(this._texture=null);if(this._textureInvalidated){this._textureInvalidated=!1,this._texture||(this.source?this._texture=h(i,this.sourceWidth,this.sourceHeight):this._texture=h(i));var r=this.source;if(r){if(this._texture.resize(this.sourceWidth,this.sourceHeight),function(t){return t&&\"render\"in t}(r))if(r instanceof u.default){var n=r.getRenderedRasterPixels();this._texture.setData(n.renderedRasterPixels)}else this._texture.setData(function(t){var e=document.createElement(\"canvas\");return e.width=t.width,e.height=t.height,t.render(e.getContext(\"2d\")),e}(r));else(function(t){return t&&!(\"render\"in t)})(r)&&this._texture.setData(r);this.ready()}else this._texture.setData(null)}},e.prototype.onAttach=function(){this.invalidateTexture()},e.prototype.onDetach=function(){this.invalidateTexture()},e}(a.DisplayObject);e.Bitmap=c}));","// 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/Error\",\"../../../../core/Logger\",\"../../../../core/maybe\",\"../../../../core/libs/earcut/earcut\",\"../../../../core/libs/gl-matrix-2/vec2\",\"../../../../core/libs/gl-matrix-2/vec2f64\",\"../../../../layers/graphics/featureConversionUtils\",\"../../../../layers/graphics/OptimizedGeometry\",\"./number\",\"../../../webgl/BufferObject\"],(function(e,r,t,n,o,i,c,a,f,s,u,h,y){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0});var m=o.getLogger(\"esri.views.2d.engine.webgl.Mesh2D\"),g=function(e,r,t,n){for(var o=0,i=1;i0:o<0},v=function(e,r){for(var t=e.coords,n=e.lengths,o=[],i=0,a=0;i