{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/views/layers/support/popupUtils.js","webpack:///./node_modules/arcgis-js-api/views/support/drapedUtils.js","webpack:///./node_modules/arcgis-js-api/views/2d/layers/MapImageLayerView2D.js","webpack:///./node_modules/arcgis-js-api/views/layers/MapImageLayerView.js","webpack:///./node_modules/arcgis-js-api/renderers/support/clickToleranceUtils.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,2BAAqB,CAAC,2BAAoC,CAAC,mCAAE,sBAAsB,aAAa,sCAAsC,SAAS,uFAAuF,kFAAkF,sBAAsB,uCAAuC,gBAAgB,mEAAmE,yLAAyL,+BAA+B,sBAAsB,6NAA6N,iBAAiB,2DAA2D,UAAU,GAAG,GAAG,uCAAuC,iJAAiJ;AAAA,oGAAE,C;;;;;;;ACxB1uC;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,2BAAgB,CAAC,2BAAkB,CAAC,2BAAsB,CAAC,2BAA6C,CAAC,mCAAE,sBAAsB,aAAa,oBAAoB,MAAM,+DAA+D,uBAAuB,gFAAgF,gJAAgJ,yDAAyD,kHAAkH,sCAAsC,SAAS,6HAA6H,iBAAiB,8EAA8E,mBAAmB;AAAA,oGAAE,C;;;;;;;ACxBr8B;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,CAA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,eAAe,KAAK,GAAG,GAAG,kCAAkC,QAAQ,iJAAiJ,4CAA4C,yDAAyD,qJAAqJ,yCAAyC,yGAAyG,KAAK;AAAA,oGAAE,C;;;;;;;ACxB7qF;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,mCAAE,cAAc,aAAa,gBAAgB,kIAAkI,gBAAgB,kEAAkE,oBAAoB,WAAW,KAAK,gBAAgB,+BAA+B,WAAW,YAAY,sCAAsC,SAAS,+DAA+D,sEAAsE,eAAe,0CAA0C,eAAe,4BAA4B,sBAAsB,oBAAoB,4BAA4B,wBAAwB,kBAAkB,kBAAkB,YAAY,IAAI,YAAY,sBAAsB,qBAAqB,wBAAwB,0CAA0C,4BAA4B,QAAQ,+CAA+C,gBAAgB,KAAK,4BAA4B,QAAQ,8CAA8C,gBAAgB,KAAK,iBAAiB;AAAA,oGAAE,C","file":"js/chunk-8e3df670.c1dbef71.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\",\"@dojo/framework/shim/array\",\"../../../core/maybe\",\"../../../layers/support/fieldUtils\"],(function(e,i,t,l,s,d){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.getFetchPopupTemplate=i.getRequiredFields=void 0,i.getRequiredFields=function(e,i){return void 0===i&&(i=e.popupTemplate),t.__awaiter(this,void 0,void 0,(function(){var a,r,u,p,o,n,f,c,h;return t.__generator(this,(function(F){switch(F.label){case 0:return s.isSome(i)?[4,i.getRequiredFields(e.fields)]:[2,[]];case 1:return a=F.sent(),r=i.lastEditInfoEnabled,u=e.objectIdField,p=e.typeIdField,o=e.globalIdField,n=e.relationships,l.includes(a,\"*\")?[2,[\"*\"]]:r?[4,d.getFeatureEditFields(e)]:[3,3];case 2:return c=F.sent(),[3,4];case 3:c=[],F.label=4;case 4:return f=c,h=d.fixFields(e.fields,t.__spreadArrays(a,f)),p&&h.push(p),h&&u&&d.hasField(e.fields,u)&&-1===h.indexOf(u)&&h.push(u),h&&o&&d.hasField(e.fields,o)&&-1===h.indexOf(o)&&h.push(o),n&&n.forEach((function(i){var t=i.keyField;h&&t&&d.hasField(e.fields,t)&&-1===h.indexOf(t)&&h.push(t)})),[2,h]}}))}))},i.getFetchPopupTemplate=function(e,i){return e.popupTemplate?e.popupTemplate:s.isSome(i)&&i.defaultPopupTemplateEnabled&&s.isSome(e.defaultPopupTemplate)?e.defaultPopupTemplate:null}}));","// 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\",\"../../geometry\",\"../../core/maybe\",\"../../core/unitUtils\",\"../../renderers/support/clickToleranceUtils\"],(function(e,r,t,a,n,i){\"use strict\";function s(e,r,a,i){var s;if(void 0===i&&(i=new t.Extent),\"2d\"===a.type)s=r*a.resolution;else if(\"3d\"===a.type){var o=a.basemapTerrain,l=o.overlayManager,c=l?l.overlayPixelSizeInMapUnits(e):1;s=o&&!o.spatialReference.equals(a.spatialReference)?n.getMetersPerUnitForSR(o.spatialReference)/n.getMetersPerUnitForSR(a.spatialReference):r*c}var u=e.x-s,p=e.y-s,y=e.x+s,m=e.y+s,f=a.spatialReference;return i.xmin=Math.min(u,y),i.ymin=Math.min(p,m),i.xmax=Math.max(u,y),i.ymax=Math.max(p,m),i.spatialReference=f,i}Object.defineProperty(r,\"__esModule\",{value:!0}),r.intersectsDrapedGeometry=r.createQueryGeometry=void 0,r.createQueryGeometry=s,r.intersectsDrapedGeometry=function(e,r,t){var n=t.toMap(e);return a.isNone(n)?null:s(n,i.calculateTolerance(),t,o).intersects(r)?n:null};var o=new t.Extent}));","// 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/Logger\",\"../../../core/promiseUtils\",\"../../../core/watchUtils\",\"../../../core/accessorSupport/decorators\",\"../../../layers/support/ExportImageParameters\",\"../engine/BitmapContainer\",\"./LayerView2D\",\"./support/ExportStrategy\",\"../../layers/LayerView\",\"../../layers/MapImageLayerView\",\"../../layers/RefreshableLayerView\",\"../../support/drapedUtils\"],(function(e,t,r,i,a,o,s,n,p,h,u,m,d,y,g){\"use strict\";var c=i.getLogger(\"esri.views.2d.layers.MapImageLayerView2D\");return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._exportImageVersion=-1,t}return r.__extends(t,e),t.prototype.hitTest=function(){return null},t.prototype.update=function(e){this.strategy.update(e).catch((function(e){a.isAbortError(e)||c.error(e)}))},t.prototype.attach=function(){var e=this,t=this.layer,r=t.imageMaxWidth,i=t.imageMaxHeight,a=t.version,s=a>=10.3,h=a>=10;this._bitmapContainer=new p.BitmapContainer,this.container.addChild(this._bitmapContainer),this.strategy=new u({container:this._bitmapContainer,fetchSource:this.fetchImage.bind(this),requestUpdate:this.requestUpdate.bind(this),imageMaxWidth:r,imageMaxHeight:i,imageRotationSupported:s,imageNormalizationSupported:h,hidpi:!0}),this.imageParameters=new n.ExportImageParameters({view:this.view,layer:this.layer}),this.handles.add(o.init(this.imageParameters,\"version\",(function(t){e._exportImageVersion!==t&&(e._exportImageVersion=t,e.requestUpdate())})),\"mapimagelayerview-update\")},t.prototype.detach=function(){this.strategy.destroy(),this.handles.remove(\"mapimagelayerview-update\"),this.imageParameters.destroy(),this.imageParameters=null,this._exportImageVersion=-1,this.container.removeChild(this._bitmapContainer),this._bitmapContainer.removeAllChildren()},t.prototype.moveStart=function(){},t.prototype.viewChange=function(){},t.prototype.moveEnd=function(){this.requestUpdate()},t.prototype.createFetchPopupFeaturesQueryGeometry=function(e,t){return g.createQueryGeometry(e,t,this.view)},t.prototype.doRefresh=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return this.requestUpdate(),[2]}))}))},t.prototype.isUpdating=function(){return this.strategy.updating||this.updateRequested},t.prototype.fetchImage=function(e,t,i,a){return this.layer.fetchImage(e,t,i,r.__assign({timeExtent:this.imageParameters.timeExtent,timestamp:this.refreshTimestamp},a))},r.__decorate([s.property()],t.prototype,\"strategy\",void 0),r.__decorate([s.property({dependsOn:[\"strategy.updating\"]})],t.prototype,\"updating\",void 0),t=r.__decorate([s.subclass(\"esri.views.2d.layers.MapImageLayerView2D\")],t)}(d.MapImageLayerView(y.RefreshableLayerView(h.LayerView2DMixin(m))))}));","// 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/maybe\",\"../../core/promiseUtils\",\"../../core/accessorSupport/decorators\",\"../../renderers/support/clickToleranceUtils\",\"../../support/arcadeOnDemand\",\"./support/popupUtils\"],(function(e,r,t,a,n,o,s,i,u,c){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.MapImageLayerView=void 0,r.MapImageLayerView=function(e){return function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r.prototype.fetchPopupFeatures=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var s,u,p,l,d,y,m=this;return t.__generator(this,(function(_){switch(_.label){case 0:return s=this.layer,e?(u=this.get(\"view.scale\"),p=[],l=function(e){return t.__awaiter(m,void 0,void 0,(function(){var a,o,s;return t.__generator(this,(function(i){return a=0===e.minScale||u<=e.minScale,o=0===e.maxScale||u>=e.maxScale,e.visible&&a&&o&&(e.sublayers?e.sublayers.forEach(l):e.popupEnabled&&(s=c.getFetchPopupTemplate(e,t.__assign(t.__assign({},r),{defaultPopupTemplateEnabled:!1})),n.isSome(s)&&p.push({sublayer:e,popupTemplate:s}))),[2]}))}))},d=s.sublayers.toArray().map(l),[4,o.all(d)]):[2,o.reject(new a(\"mapimagelayerview:fetchPopupFeatures\",\"Nothing to fetch without area\",{layer:s}))];case 1:return _.sent(),y=p.map((function(a){var o=a.sublayer,s=a.popupTemplate;return t.__awaiter(m,void 0,void 0,(function(){var a,u,p,l,d,y;return t.__generator(this,(function(t){switch(t.label){case 0:return[4,o.load().catch((function(){}))];case 1:return t.sent(),a=o.createQuery(),u=n.isSome(r)?r.event:null,p=i.calculateTolerance({renderer:o.renderer,event:u}),l=this.createFetchPopupFeaturesQueryGeometry(e,p),a.geometry=l,d=a,[4,c.getRequiredFields(o,s)];case 2:return d.outFields=t.sent(),[4,this._loadArcadeModules(s)];case 3:return y=t.sent(),y&&y.arcadeUtils.hasGeometryOperations(s)||(a.maxAllowableOffset=l.width/p),[4,o.queryFeatures(a)];case 4:return[2,t.sent().features]}}))}))})),[4,o.eachAlways(y)];case 2:return[2,_.sent().reduce((function(e,r){return r.value?t.__spreadArrays(e,r.value):e}),[]).filter((function(e){return null!=e}))]}}))}))},r.prototype.canResume=function(){var r,t;return!!e.prototype.canResume.call(this)&&(null===(t=null===(r=this.imageParameters)||void 0===r?void 0:r.timeExtent)||void 0===t?!0:!t.isEmpty)},r.prototype._loadArcadeModules=function(e){if(e.get(\"expressionInfos.length\"))return u.loadArcade()},t.__decorate([s.property()],r.prototype,\"imageParameters\",void 0),t.__decorate([s.property()],r.prototype,\"layer\",void 0),t.__decorate([s.property({dependsOn:[\"imageParameters.timeExtent\"]})],r.prototype,\"suspended\",void 0),r=t.__decorate([s.subclass(\"esri.views.layers.MapImageLayerView\")],r)}(e)}}));","// 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,r){\"use strict\";function t(e,r){return r?\"xoffset\"in r&&r.xoffset?Math.max(e,Math.abs(r.xoffset)):\"yoffset\"in r&&r.yoffset?Math.max(e,Math.abs(r.yoffset||0)):e:e}function n(e,r){return\"number\"==typeof e?e:e&&e.stops&&e.stops.length?function(e){for(var r=0,t=0,n=0;n