{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/core/libs/quickselect/quickselect.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/centroid.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/GraphicsView3D.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DGraphicLikeLayerView.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DElevationAlignment.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DObjectStateSet.js","webpack:///./node_modules/arcgis-js-api/views/layers/GraphicsView.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DObjectStates.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/ExtentSet.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,EAAE,mCAAE,WAAW,aAAa,kBAAkB,WAAW,iBAAiB,gBAAgB,sBAAsB,2BAA2B,uBAAuB,KAAK,IAAI,EAAE,YAAY,8KAA8K,aAAa,mBAAmB,mCAAmC,IAAI,EAAE,qBAAqB,YAAY,KAAK,KAAK,YAAY,KAAK,mEAAmE,+BAA+B;AAAA,oGAAE,C;;;;;;;ACxBvlB;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,qBAAqB,0BAA0B,kBAAkB,yDAAyD,IAAI,eAAe,gEAAgE,qKAAqK,gDAAgD,iBAAiB,+BAA+B,sBAAsB,qDAAqD,IAAI,eAAe,sFAAsF,8DAA8D,sCAAsC,mFAAmF,oBAAoB,gBAAgB,0BAA0B,wB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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAA8B,CAAC,2BAA6C,CAAC,2BAA4B,CAAC,mCAAE,oBAAoB,aAAa,sCAAsC,SAAS,qBAAqB,iBAAiB,aAAa,oBAAoB,sBAAsB,sBAAsB,2CAA2C,kDAAkD,eAAe,+BAA+B,+BAA+B,+BAA+B,qBAAqB,6BAA6B,0FAA0F,4BAA4B,wDAAwD,+BAA+B,0CAA0C,oCAAoC,WAAW,2BAA2B,qCAAqC,aAAa,EAAE,sBAAsB,iBAAiB,wBAAwB,sBAAsB,iBAAiB,cAAc,+BAA+B,WAAW,KAAK,qBAAqB,oBAAoB,SAAS,uBAAuB,mCAAmC,KAAK,2CAA2C,gBAAgB,UAAU,4EAA4E,YAAY,KAAK,WAAW,KAAK,WAAW,sCAAsC,cAAc,kCAAkC,sCAAsC,uBAAuB,GAAG,yCAAyC,wCAAwC,uBAAuB,GAAG,2CAA2C,eAAe,WAAW,OAAO,0BAA0B,mCAAmC,4BAA4B,KAAK,+BAA+B,IAAI,GAAG,cAAc;AAAA,oGAAE,C","file":"js/chunk-472a6d6c.8919ff93.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([],(function(){\"use strict\";function t(t,n,r){var o=t[n];t[n]=t[r],t[r]=o}function n(t,n){return tn?1:0}return function(r,o,f,a,i){!function n(r,o,f,a,i){for(;a>f;){if(a-f>600){var h=a-f+1,u=o-f+1,e=Math.log(h),M=.5*Math.exp(2*e/3),c=.5*Math.sqrt(e*M*(h-M)/h)*(u-h/2<0?-1:1),l=Math.max(f,Math.floor(o-u*M/h+c)),s=Math.min(a,Math.floor(o+(h-u)*M/h+c));n(r,o,l,s,i)}var v=r[o],g=f,m=a;for(t(r,f,o),i(r[a],v)>0&&t(r,f,a);g0;)m--}0===i(r[f],v)?t(r,f,m):(m++,t(r,m,a)),m<=o&&(f=m+1),o<=m&&(a=m-1)}}(r,o,f||0,a||r.length-1,i||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\"],(function(r,e){\"use strict\";function n(r,e){return r?e?4:3:e?3:2}function t(r,e,t,I,u,i,o){void 0===o&&(o=1);for(var N=n(u,i),l=t,f=t+N,T=0,s=0,g=0,h=0,v=0,a=0,c=I-1;ar[1]&&(r[1]=d),Er[3]&&(r[3]=E),u&&(mr[5]&&(r[5]=m))}if(h*o>0&&(h*=-1),v*o>0&&(v*=-1),!h)return null;var Y=[T,s,.5*h];return u&&(Y[3]=g,Y[4]=.5*v),Y}function I(r,e,t,I,l){for(var f=n(I,l),T=e,s=e+f,g=0,h=0,v=0,a=0,c=0,d=t-1;c0?I?[h/g,v/g,a/g]:[h/g,v/g]:t>0?I?[r[e],r[e+1],r[e+2]]:[r[e],r[e+1]]:null}function u(r,e,n,t){var I=n-r,u=t-e;return Math.sqrt(I*I+u*u)}function i(r,e,n,t,I,u){var i=t-r,o=I-e,N=u-n;return Math.sqrt(i*i+o*o+N*N)}function o(r,e,n,t){return[r+.5*(n-r),e+.5*(t-e)]}function N(r,e,n,t,I,u){return[r+.5*(t-r),e+.5*(I-e),n+.5*(u-n)]}Object.defineProperty(e,\"__esModule\",{value:!0}),e.lineCentroid=e.getCentroidOptimizedGeometry=void 0,e.getCentroidOptimizedGeometry=function(r,e,u,i,o){if(!e||!e.lengths.length)return null;var N=\"upperLeft\"===(null==o?void 0:o.originPosition)?-1:1;r.lengths.length&&(r.lengths.length=0),r.coords.length&&(r.coords.length=0);for(var l=r.coords,f=[],T=u?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],s=e.lengths,g=e.coords,h=n(u,i),v=0,a=0,c=s;aT[1]||l[1]T[3]||u&&(l[2]T[5]))&&(l.length=0)}if(!l.length){var _=e.lengths[0]?I(g,0,s[0],u,i):null;if(!_)return null;l[0]=_[0],l[1]=_[1],u&&_.length>2&&(l[2]=_[2])}return r},e.lineCentroid=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\",\"tslib\",\"../../../core/Accessor\",\"../../../core/maybe\",\"../../../core/promiseUtils\",\"../../../core/accessorSupport/decorators\",\"./graphics/Graphics3DGraphicLikeLayerView\",\"../../layers/GraphicsView\"],(function(r,e,t,i,p,o,a,c,s){\"use strict\";return function(r){function e(e){var t=r.call(this,e)||this;return t.graphics3d=null,t.slicePlaneEnabled=!1,t.drapeSourceType=1,t.mockLayerId=\"__sceneView.graphics-\"+Date.now().toString(16),t}return t.__extends(e,r),e.prototype.initialize=function(){var r={id:this.mockLayerId,uid:this.mockLayerId};this._set(\"graphics3d\",new c({owner:this,layer:r})),this.graphics3d.setup()},e.prototype.destroy=function(){this.graphics3d&&(this.graphics3d.destroy(),this._set(\"graphics3d\",null))},Object.defineProperty(e.prototype,\"updating\",{get:function(){return!(this.graphics3d&&!this.graphics3d.updating)},enumerable:!1,configurable:!0}),e.prototype.notifyGraphicUpdate=function(r,e){this.graphics3d.graphicsCore.notifyGraphicUpdate(r,e)},Object.defineProperty(e.prototype,\"graphics3DGraphics\",{get:function(){return this.graphics3d.graphicsCore.graphics3DGraphics},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"graphics3DGraphicsByObjectID\",{get:function(){return this.graphics3d.graphicsCore.graphics3DGraphicsByObjectID},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"symbolUpdateType\",{get:function(){return this.graphics3d.graphicsCore.symbolUpdateType},enumerable:!1,configurable:!0}),e.prototype.getGraphicFromGraphicUid=function(r){return this.graphics3d.getGraphicFromGraphicUid(r)},e.prototype.whenGraphicBounds=function(r,e){return this.graphics3d.whenGraphicBounds(r,e)},e.prototype.graphicChanged=function(r){this.graphics3d.graphicsCore.graphicUpdateHandler(r)},e.prototype.queryGraphics=function(){return o.resolve(this.loadedGraphics)},e.prototype.fetchPopupFeatures=function(r,e){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(r){return[2,p.isSome(e)?e.clientGraphics:null]}))}))},t.__decorate([a.property({readOnly:!0,aliasOf:\"view.graphics\"})],e.prototype,\"graphics\",void 0),t.__decorate([a.property({aliasOf:\"graphics\"})],e.prototype,\"loadedGraphics\",void 0),t.__decorate([a.property({readOnly:!0,dependsOn:[\"graphics3d.updating\"]})],e.prototype,\"updating\",null),t.__decorate([a.property({constructOnly:!0})],e.prototype,\"view\",void 0),t.__decorate([a.property()],e.prototype,\"graphics3d\",void 0),t.__decorate([a.property({type:Boolean})],e.prototype,\"slicePlaneEnabled\",void 0),t.__decorate([a.property({aliasOf:\"graphics3d.graphicsCore.hasDraped\"})],e.prototype,\"hasDraped\",void 0),e=t.__decorate([a.subclass(\"esri.views.3d.layers.GraphicsView3D\")],e)}(s.GraphicsView(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\",\"tslib\",\"../../../../Graphic\",\"../../../../core/Accessor\",\"../../../../core/Collection\",\"../../../../core/Handles\",\"../../../../core/promiseUtils\",\"../../../../core/watchUtils\",\"../../../../core/accessorSupport/decorators\",\"../../../../core/accessorSupport/diffUtils\",\"../../../../layers/Layer\",\"../../../../layers/graphics/hydratedFeatures\",\"../../../../tasks/support/Query\",\"./constants\",\"./Graphics3DCore\",\"./Graphics3DElevationAlignment\",\"./Graphics3DObjectStates\",\"./Graphics3DScaleVisibility\",\"./graphicUtils\",\"../../../support/WatchUpdatingTracking\"],(function(t,e,i,r,s,n,a,o,c,p,h,l,u,d,y,g,f,b,v,m,_){\"use strict\";var w=function(t){function e(e){var i=t.call(this,e)||this;return i.graphicsCore=null,i.elevationAlignment=new f.default,i.watchUpdatingTracking=new _.WatchUpdatingTracking,i.handles=new a,i.suspendResumeExtent=null,i}return i.__extends(e,t),e.prototype.normalizeCtorArgs=function(t){var e=null;t.scaleVisibilityEnabled&&(delete(t=i.__assign({},t)).scaleVisibilityEnabled,e=new v);var r=new g.Graphics3DCore({owner:t.owner,layer:t.layer,preferredUpdatePolicy:0,graphicSymbolSupported:!0});return i.__assign(i.__assign({},t),{graphicsCore:r,scaleVisibility:e})},e.prototype.initialize=function(){var t=this;this.scaleVisibility&&\"minScale\"in this.layer&&this.watchUpdatingTracking.add(this.layer,\"scaleRangeId\",(function(){return t.scaleVisibility.layerMinMaxScaleChangeHandler()})),this.elevationAlignment&&\"elevationInfo\"in this.layer&&this.watchUpdatingTracking.add(this.layer,\"elevationInfo\",(function(e,i){h.diff(e,i)&&t.watchUpdatingTracking.addPromise(t.graphicsCore.elevationInfoChange())}))},e.prototype.setup=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,r,s=this;return i.__generator(this,(function(i){switch(i.label){case 0:t=function(t,e,i){return s.graphicsCore.spatialIndex.queryGraphicUIDsInExtent(t,e,i)},this.elevationAlignment.setup(this.owner,t,this.graphicsCore,this.view.elevationProvider),this.scaleVisibility&&\"minScale\"in this.layer&&(e=this.owner.view.basemapTerrain,this.scaleVisibility.setup(this.owner,this.layer,t,this.graphicsCore,e)),this._set(\"objectStates\",new b.Graphics3DObjectStates(this.graphicsCore)),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.graphicsCore.setup({elevationAlignment:this.elevationAlignment,scaleVisibility:this.scaleVisibility,objectStates:this.objectStates})];case 2:return i.sent(),[3,4];case 3:if(r=i.sent(),o.isAbortError(r))return[2];throw r;case 4:return this.destroyed?[2]:(this.handles.add(this.view.watch(\"clippingArea\",(function(){return s.updateClippingExtent()}),!0)),this.updateClippingExtent(),this.setupSuspendResumeExtent(),this.graphicsCore.startCreateGraphics(),[2])}}))}))},e.prototype.destroy=function(){this.handles&&(this.handles.destroy(),this.handles=null),this.watchUpdatingTracking.destroy(),this.elevationAlignment&&(this.elevationAlignment.destroy(),this._set(\"elevationAlignment\",null)),this.scaleVisibility&&(this.scaleVisibility.destroy(),this._set(\"scaleVisibility\",null)),this.objectStates&&(this.objectStates.destroy(),this._set(\"objectStates\",null)),this.graphicsCore&&(this.graphicsCore.destroy(),this._set(\"graphicsCore\",null))},Object.defineProperty(e.prototype,\"suspended\",{get:function(){return!(!this.scaleVisibility||!this.scaleVisibility.suspended)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"updating\",{get:function(){return!!(this.graphicsCore&&this.graphicsCore.updating||this.scaleVisibility&&this.scaleVisibility.updating||this.watchUpdatingTracking&&this.watchUpdatingTracking.updating)},enumerable:!1,configurable:!0}),e.prototype.getGraphicFromGraphicUid=function(t){if(this.owner.loadedGraphics){var e=this.owner.loadedGraphics.find((function(e){return e.uid===t}));if(e){var i=this.layer instanceof l?this.layer:null;return u.hydrateGraphic(e,i)}}},e.prototype.whenGraphicBounds=function(t,e){return this.graphicsCore?this.graphicsCore.whenGraphicBounds(t,e):o.reject()},e.prototype.computeAttachmentOrigin=function(t,e){return this.graphicsCore?this.graphicsCore.computeAttachmentOrigin(t,e):null},e.prototype.getSymbolLayerSize=function(t,e){return this.graphicsCore?this.graphicsCore.getSymbolLayerSize(t,e):null},e.prototype.occlude=function(t){var e=this.objectStates.acquireSet(1,null),i=e.set,r=e.handle;return this.objectStates.setUid(i,t.uid),r},e.prototype.highlight=function(t){if(t instanceof d)return C;if(\"number\"==typeof t)return this.highlight([t]);if(t instanceof r)return this.highlight([t]);if(t instanceof n&&(t=t.toArray()),Array.isArray(t)&&t.length>0){if(t[0]instanceof r){var e=t.map((function(t){return t.uid})),i=this.objectStates.acquireSet(0,null),s=i.set,a=i.handle;return this.objectStates.setUids(s,e),a}if(\"number\"==typeof t[0]){var o=t,c=this.objectStates.acquireSet(0,null);s=c.set,a=c.handle;return this.objectStates.setObjectIds(s,o),a}}return C},e.prototype.updateClippingExtent=function(){var t=this.view.clippingArea;this.graphicsCore.setClippingExtent(t,this.view.spatialReference)&&this.graphicsCore.recreateAllGraphics()},e.prototype.updateSuspendResumeExtent=function(){this.suspendResumeExtent=m.enlargeExtent(this.graphicsCore.computedExtent,this.suspendResumeExtent,y.SUSPEND_RESUME_EXTENT_OPTIMISM,this.graphicsCore.extentPadding),this.scaleVisibility.setExtent(this.suspendResumeExtent)},e.prototype.setupSuspendResumeExtent=function(){var t=this;this.scaleVisibility&&(c.init(this.graphicsCore,\"computedExtent\",(function(e){return t.updateSuspendResumeExtent()}),!0),this.graphicsCore.watch(\"extentPadding\",(function(e){return t.updateSuspendResumeExtent()})))},i.__decorate([p.property({constructOnly:!0})],e.prototype,\"owner\",void 0),i.__decorate([p.property({constructOnly:!0})],e.prototype,\"layer\",void 0),i.__decorate([p.property({readOnly:!0,aliasOf:\"owner.view\"})],e.prototype,\"view\",void 0),i.__decorate([p.property({constructOnly:!0})],e.prototype,\"graphicsCore\",void 0),i.__decorate([p.property({constructOnly:!0})],e.prototype,\"scaleVisibility\",void 0),i.__decorate([p.property({readOnly:!0})],e.prototype,\"elevationAlignment\",void 0),i.__decorate([p.property({readOnly:!0})],e.prototype,\"objectStates\",void 0),i.__decorate([p.property({readOnly:!0})],e.prototype,\"watchUpdatingTracking\",void 0),i.__decorate([p.property({readOnly:!0,dependsOn:[\"scaleVisibility.suspended\"]})],e.prototype,\"suspended\",null),i.__decorate([p.property({readOnly:!0,dependsOn:[\"graphicsCore.updating\",\"scaleVisibility.updating\",\"watchUpdatingTracking.updating\"]})],e.prototype,\"updating\",null),e=i.__decorate([p.subclass(\"esri.views.3d.layers.graphics.Graphics3DGraphicLikeLayerView\")],e)}(s),C={remove:function(){},pause:function(){},resume:function(){}};return w}));","// 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/Accessor\",\"../../../../core/Evented\",\"../../../../core/Handles\",\"../../../../core/SetUtils\",\"../../../../core/accessorSupport/decorators\",\"./ExtentSet\",\"../../../support/Scheduler\"],(function(e,t,i,r,s,n,a,o,h,p){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dirtyExtents=new h.ExtentSet,t.globalDirty=!1,t.dirtyGraphicsSet=new Set,t.handles=new n,t.updateElevation=!1,t.layerView=null,t.graphicsCore=null,t.events=new s,t}return i.__extends(t,e),Object.defineProperty(t.prototype,\"updating\",{get:function(){return this.needsUpdate()},enumerable:!1,configurable:!0}),t.prototype.setup=function(e,t,i,r){var s=this;this.layerView=e,this.queryGraphicUIDsInExtent=t,this.graphicsCore=i,this.elevationProvider=r;var n=this.layerView.view.resourceController.scheduler;this.handles.add([r.on(\"elevation-change\",(function(e){return s._elevationChanged(e)})),this.layerView.watch(\"suspended\",(function(){return s.suspendedChange()})),n.registerTask(p.Task.ELEVATION_ALIGNMENT,(function(e){return s.update(e)}),(function(){return s.needsUpdate()}))])},t.prototype.destroy=function(){this.dirtyGraphicsSet=null,this.handles.destroy(),this.handles=null,this.layerView=null,this.graphicsCore=null,this.queryGraphicUIDsInExtent=null},t.prototype.clear=function(){this.dirtyGraphicsSet.clear(),this.notifyChange(\"updating\")},t.prototype.suspendedChange=function(){!0===this.layerView.suspended?this.updateElevation=!1:!1===this.layerView.suspended&&this.updateElevation&&(this.globalDirty=!0,this.notifyChange(\"updating\"))},t.prototype.elevationInfoChange=function(){this.globalDirty=!0,this.notifyChange(\"updating\")},t.prototype.needsUpdate=function(){return this.dirtyGraphicsSet&&this.dirtyGraphicsSet.size>0||this.dirtyExtents&&!this.dirtyExtents.empty||this.globalDirty},t.prototype.update=function(e){var t=this;for(this.globalDirty&&(this.markAllGraphicsElevationDirty(),this.globalDirty=!1,e.madeProgress()),e.run((function(){return t.dirtyExtents.merge(e)}));this.needsUpdate()&&!e.done;)this._updateDirtyGraphics(e),this._updateDirtyExtents(e);this.layerView.view.deconflictor.setDirty(),this.notifyChange(\"updating\")},t.prototype._updateDirtyGraphics=function(e){for(var t=this,i=this.layerView.view,r=this.graphicsCore.stageLayer.id,s=this.layerView.labeling,n=function(){var n=Math.min(o.dirtyGraphicsSet.size,100);a.someSet(o.dirtyGraphicsSet,(function(r){var s=t.graphicsCore.getGraphics3DGraphicById(r);return t.dirtyGraphicsSet.delete(r),s&&s.alignWithElevation(t.elevationProvider,i.renderCoordsHelper,t.graphicsCore.asyncUpdates),e.madeProgress(),--n<=0||e.done})),i._stage.processDirtyLayer(r),s&&s.processStageDirty()},o=this;this.dirtyGraphicsSet.size>0&&!e.done;)n()},t.prototype._updateDirtyExtents=function(e){for(var t=this;!this.dirtyExtents.empty&&this.dirtyGraphicsSet.size<100&&!e.done;){var i=this.dirtyExtents.pop(),r=this.elevationProvider.spatialReference;this.events.emit(\"invalidate-elevation\",{extent:i,spatialReference:r}),this.queryGraphicUIDsInExtent(i,r,(function(e){var i=t.graphicsCore.getGraphics3DGraphicById(e);i&&i.needsElevationUpdates()&&t.dirtyGraphicsSet.add(e)})),e.madeProgress()}},t.prototype.markAllGraphicsElevationDirty=function(){var e=this;this.dirtyExtents.clear(),this.dirtyGraphicsSet.clear(),this.graphicsCore.graphics3DGraphics.forEach((function(t,i){return e.dirtyGraphicsSet.add(i)}))},t.prototype._elevationChanged=function(e){if(\"scene\"!==e.context||this.graphicsCore.layer.elevationInfo&&\"relative-to-scene\"===this.graphicsCore.layer.elevationInfo.mode){var t=e.extent,i=e.spatialReference;if(this.layerView.suspended){if(!this.updateElevation){var r=this.graphicsCore.computedExtent;r&&t[2]>r.xmin&&t[0]r.ymin&&t[1]=s[2])break;i.add(u)}i.forEach((function(o){if(s!==o)if(o[2]<=s[0])i.delete(o);else{var a=r.area(s),u=r.area(o),c=e.tempExtent;r.expand(s,o,c);var f=a+u;(r.area(c)-f)/f<.05&&(r.set(s,c),i.delete(o),n.remove(o),t.madeProgress())}})),i.add(s)},u=0;u