{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DPointSymbol.js","webpack:///./node_modules/arcgis-js-api/core/libs/rbush/PooledRBush.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DScaleVisibility.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DCore.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/SpatialIndex2D.js","webpack:///./node_modules/arcgis-js-api/renderers/support/rendererConversion.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/StageLayerElevationProvider.js","webpack:///./node_modules/arcgis-js-api/symbols/support/defaults3D.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DFeatureStore.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DSymbolFactory.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/GraphicStateTracking.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,2BAA+B,CAAC,2BAAuC,CAAC,2BAAoB,CAAC,mCAAE,sBAAsB,aAAa,mBAAmB,kBAAkB,+BAA+B,2GAA2G,uDAAuD,kDAAkD,uCAAuC,gBAAgB,iDAAiD,wFAAwF,0BAA0B,oDAAoD,WAAW,GAAG,GAAG,gCAAgC,0FAA0F,mDAAmD,yDAAyD,4BAA4B,mCAAmC,4BAA4B,SAAS,iDAAiD,WAAW,oJAAoJ,oCAAoC,IAAI,0CAA0C,gDAAgD,+BAA+B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sC,WAAW,0DAA0D,mBAAmB,GAAG,6BAA6B,cAAc,kBAAkB,qBAAqB,+BAA+B,sEAAsE,6KAA6K,gCAAgC,uBAAuB,wBAAwB,2DAA2D,0DAA0D,qDAAqD,oCAAoC,iCAAiC,oEAAoE,EAAE,GAAG,uCAAuC,iCAAiC,8BAA8B,GAAG,+CAA+C,iCAAiC,mBAAmB,EAAE,GAAG,iDAAiD,iCAAiC,2BAA2B,GAAG,2CAA2C,iCAAiC,gBAAgB,GAAG,yCAAyC,4BAA4B,cAAc,gBAAgB,iCAAiC,wCAAwC,kDAAkD,2DAA2D,uBAAuB,GAAG,GAAG,yBAAyB;AAAA,oGAAE,C","file":"js/chunk-891c16f6.fd43c81a.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\",\"./Graphics3DCalloutSymbolLayerFactory\",\"./Graphics3DSymbol\"],(function(t,r,e,o,a,l){\"use strict\";return function(t){function r(r,e,o){var l=t.call(this,r,e,o)||this;return l.calloutSymbolLayer=null,l.symbol.hasVisibleCallout()&&(l.calloutSymbolLayer=a.make(l.symbol,e)),l}return e.__extends(r,t),r.prototype.doLoad=function(r){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,t.prototype.doLoad.call(this,r)];case 1:return e.sent(),this.calloutSymbolLayer?[4,this.calloutSymbolLayer.load()]:[3,3];case 2:e.sent(),e.label=3;case 3:if(o.isAborted(r))throw o.createAbortError();return[2]}}))}))},r.prototype.destroy=function(){t.prototype.destroy.call(this),this.calloutSymbolLayer&&this.calloutSymbolLayer.destroy()},r.prototype.createGraphics3DGraphic=function(r,e){var o=t.prototype.createGraphics3DGraphic.call(this,r,e);if(this.calloutSymbolLayer){var a=this.createCalloutGraphic(r);a&&o.addAuxiliaryGraphic(a)}return o},r.prototype.globalPropertyChanged=function(r,e){var o=this;return!!t.prototype.globalPropertyChanged.call(this,r,e)&&(!this.calloutSymbolLayer||this.calloutSymbolLayer.globalPropertyChanged(r,e,(function(t){return o._getCalloutGraphicLayer(t)})))},r.prototype.updateGeometry=function(r,e){var o=t.prototype.updateGeometry.call(this,r,e);if(o&&this.calloutSymbolLayer){var a=this._getCalloutGraphicLayer(r);if(a)return this.calloutSymbolLayer.updateGeometry(a,e)}return o},r.prototype.createCalloutGraphic=function(t){var r=t.renderingInfo,e={renderer:r.renderer,symbol:r.symbol,translation:[0,0,0],centerOffset:[0,0,0,0],screenOffset:[0,0],centerOffsetUnits:\"world\",elevationOffset:0,materialCollection:null};return t.renderingInfo=e,this.calloutSymbolLayer.createGraphics3DGraphic(t)},r.prototype._getCalloutGraphicLayer=function(t){for(var r=0,e=t._auxiliaryGraphics;r0;){if(a||(a=r.assumeNonNull(M.pop()),o=M.data[M.length-1],h=null!==(i=X.pop())&&void 0!==i?i:0,s=!0),a.leaf&&-1!==(n=e.indexOf(a.children,t,a.children.length,a.indexHint)))return a.children.splice(n,1),M.push(a),this._condense(M),this;s||a.leaf||!p(a,l)?o?(h++,a=o.children[h],s=!1):a=null:(M.push(a),X.push(h),h=0,o=a,a=a.children[0])}return this},t.prototype.toJSON=function(){return this.data},t.prototype.fromJSON=function(t){return this.data=t,this},t.prototype._all=function(t,i){var n,e=t;for(B.clear();e;){if(!0===e.leaf)for(var r=0,a=e.children;r=0&&M.data[i].children.length>this._maxEntries;)this._split(M,i),i--;this._adjustParentBBoxes(r,M,i)},t.prototype._split=function(t,i){var n=t.data[i],e=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,e);var a=this._chooseSplitIndex(n,r,e);if(a){var o=n.children.splice(a,n.children.length-a),h=n.leaf?new y(o):new w(o);h.height=n.height,s(n,this.toBBox),s(h,this.toBBox),i?t.data[i-1].children.push(h):this._splitRoot(n,h)}else console.log(\" Error: assertion failed at PooledRBush._split: no valid split index\")},t.prototype._splitRoot=function(t,i){this.data=new w([t,i]),this.data.height=t.height+1,s(this.data,this.toBBox)},t.prototype._chooseSplitIndex=function(t,i,n){var e,r,a,o,h,s,c,u,m=void 0;e=r=1/0;for(var d=i;d<=n-i;d++){var p=l(t,0,d,this.toBBox),x=l(t,d,n,this.toBBox),v=(a=p,o=x,h=void 0,s=void 0,c=void 0,u=void 0,h=Math.max(a.minX,o.minX),s=Math.max(a.minY,o.minY),c=Math.min(a.maxX,o.maxX),u=Math.min(a.maxY,o.maxY),Math.max(0,c-h)*Math.max(0,u-s)),_=f(p)+f(x);v=i;s--){u=t.children[s];c(o,t.leaf?r(u):u),h+=d(o)}return h},t.prototype._adjustParentBBoxes=function(t,i,n){for(var e=n;e>=0;e--)c(i.data[e],t)},t.prototype._condense=function(t){for(var i=t.length-1;i>=0;i--){var n=t.data[i];if(0===n.children.length)if(i>0){var r=t.data[i-1],a=r.children;a.splice(e.indexOf(a,n,a.length,r.indexHint),1)}else this.clear();else s(n,this.toBBox)}},t.prototype._initFormat=function(t){var i=[\"return a\",\" - b\",\";\"];this.compareMinX=new Function(\"a\",\"b\",i.join(t[0])),this.compareMinY=new Function(\"a\",\"b\",i.join(t[1])),this.toBBox=new Function(\"a\",\"return {minX: a\"+t[0]+\", minY: a\"+t[1]+\", maxX: a\"+t[2]+\", maxY: a\"+t[3]+\"};\")},t}();function s(t,i){l(t,0,t.children.length,i,t)}function l(t,i,n,e,r){r||(r=new y([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var a=i,o=void 0;a=t.minX&&i.maxY>=t.minY}function v(t,i,n,e,a){for(var h=[i,n];h.length;){var s=r.assumeNonNull(h.pop()),l=r.assumeNonNull(h.pop());if(!(s-l<=e)){var c=l+Math.ceil((s-l)/e/2)*e;o(t,c,l,s,a),h.push(l,c,c,s)}}}i.PooledRBush=h;var _=new a,B=new a,M=new a,X=new a({deallocator:void 0}),Y=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0};i.BBox=Y;var g=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.height=1,i.indexHint=new e.PositionHint,i}return n.__extends(i,t),i}(Y),y=function(t){function i(i){var n=t.call(this)||this;return n.children=i,n.leaf=!0,n}return n.__extends(i,t),i}(g),w=function(t){function i(i){var n=t.call(this)||this;return n.children=i,n.leaf=!1,n}return n.__extends(i,t),i}(g);i.default=h}));","// 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/Handles\",\"../../../../core/maybe\",\"../../../../core/accessorSupport/decorators\",\"../../../support/layerViewUtils\",\"../../../support/Scheduler\"],(function(e,i,t,a,r,s,l,n,c){\"use strict\";var h=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._scaleRangeActive=!1,i.layerScaleRangeVisibilityQuery=!1,i.handles=new r,i.layerView=null,i.layer=null,i.queryGraphicUIDsInExtent=null,i.extent=null,i.graphicsCore=null,i.basemapTerrain=null,i.layerScaleEnabled=!0,i.suspended=!1,i.updating=!0,i}return t.__extends(i,e),i.prototype.setup=function(e,i,t,a,r){var s=this;this.layerView=e,this.layer=i,this.queryGraphicUIDsInExtent=t,this.graphicsCore=a,this.basemapTerrain=r,this.updateScaleRangeActive();var l=this.layerView.view.resourceController.scheduler;this.handles.add(l.registerTask(c.Task.SCALE_VISIBILITY,(function(){return s.update()}),(function(){return s.needsUpdate()})))},i.prototype.destroy=function(){this.handles.destroy(),this.handles=null,this.layerView=null,this.extent=null,this.queryGraphicUIDsInExtent=null,this.graphicsCore=null},i.prototype.needsUpdate=function(){return!(!this.layerView.view.basemapTerrain||!this.updating)},i.prototype._setDirty=function(){this.updating||this._set(\"updating\",!0)},i.prototype.setExtent=function(e){this.extent=e,this._setDirty()},i.prototype.scaleRangeActive=function(){return this._scaleRangeActive},i.prototype.updateScaleRangeActive=function(){var e=this,i=this.layer,t=this.layerScaleEnabled&&o(i.minScale,i.maxScale);i.labelingInfo&&!t&&(t=i.labelingInfo.some((function(e){return e&&o(e.minScale,e.maxScale)})));var a=this._scaleRangeActive!==t;return this._scaleRangeActive=t,t&&!this.handles.has(p)&&this.basemapTerrain?(this.handles.add(this.basemapTerrain.on(\"scale-change\",(function(i){return e.scaleUpdateHandler(i)})),p),this.layerScaleEnabled&&this.handles.add(this.basemapTerrain.on(\"tiles-visibility-changed\",(function(){return e._setDirty()})),p)):!t&&this.handles.has(p)&&this.handles.remove(p),a},i.prototype.update=function(){var e=this,i=this.layerView.view.basemapTerrain;this.extent&&i&&i.ready&&this._scaleRangeActive&&this.layerScaleEnabled?this.layerScaleRangeVisibilityQuery||(this.layerScaleRangeVisibilityQuery=!0,i.queryVisibleScaleRange(this.extent,this.layer.minScale,this.layer.maxScale,(function(i){return e.finishUpdate(i)}))):this.finishUpdate(!0)},i.prototype.finishUpdate=function(e){this.layerScaleRangeVisibilityQuery=!1,this._set(\"suspended\",!e),this._set(\"updating\",!1)},i.prototype.visibleAtLayerScale=function(e){return!this.layerScaleEnabled||n.scaleBoundsPredicate(e,this.layer.minScale||0,this.layer.maxScale||0)},i.prototype.visibleAtLabelScale=function(e,i){return n.scaleBoundsPredicate(e,i.minScale||0,i.maxScale||0)},i.prototype.graphicScale=function(e){var i;return s.isSome(e.centroid)?i=e.centroid:s.isSome(e.graphic.geometry)&&\"point\"===e.graphic.geometry.type&&(i=e.graphic.geometry),i?this.layerView.view.basemapTerrain?this.layerView.view.basemapTerrain.getScale(i):1:null},i.prototype.graphicVisible=function(e){if(!this.layerScaleEnabled)return!0;var i=this.graphicScale(e);return this.visibleAtLayerScale(i)},i.prototype.updateVisibility=function(e){if(this._scaleRangeActive){var i=this.graphicVisible(e);return e.setVisibilityFlag(1,i,0)}return!1},i.prototype.updateGraphicLabelScaleVisibility=function(e){if(!this._scaleRangeActive)return!1;if(!e.labelGraphics||0===e.labelGraphics.length)return!1;var i=this.graphicScale(e),t=this.updateLabelScaleVisibility(e,i);return t&&(this.layerView.view.deconflictor.setDirty(),this.layerView.view.labeler.setDirty()),t},i.prototype.updateLabelScaleVisibility=function(e,i){if(!e.labelGraphics||0===e.labelGraphics.length)return!1;var t=e.labelGraphics[0]._labelClass;if(t&&null!=t.minScale&&null!=t.maxScale){var a=this.visibleAtLabelScale(i,t);if(e.setVisibilityFlag(1,a,1))return!0}return!1},i.prototype.scaleUpdateHandler=function(e){var i=this;if(this._setDirty(),!this.layerView.suspended){var t=e.extent,a=e.scale,r=this.visibleAtLayerScale(a),l=!1;this.queryGraphicUIDsInExtent(t,e.spatialReference,(function(e){var n=i.graphicsCore.getGraphics3DGraphicById(e);if(n){var c=n.centroid;s.isSome(c)&&(t[0]>c.x||t[1]>c.y||t[2]0||i>0}var p=\"terrain-events\";return h}));","// 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\",\"../../../../renderers\",\"../../../../symbols\",\"../../../../core/Accessor\",\"../../../../core/arrayUtils\",\"../../../../core/compilerUtils\",\"../../../../core/Error\",\"../../../../core/Handles\",\"../../../../core/Logger\",\"../../../../core/MapUtils\",\"../../../../core/mathUtils\",\"../../../../core/maybe\",\"../../../../core/ObjectPool\",\"../../../../core/PooledArray\",\"../../../../core/promiseUtils\",\"../../../../core/scheduling\",\"../../../../core/watchUtils\",\"../../../../core/accessorSupport/decorators\",\"../../../../core/accessorSupport/diffUtils\",\"../../../../core/libs/gl-matrix-2/vec3\",\"../../../../core/libs/gl-matrix-2/vec3f64\",\"../../../../geometry/support/aaBoundingBox\",\"../../../../geometry/support/aaBoundingRect\",\"../../../../layers/Layer\",\"../../../../layers/graphics/dehydratedFeatures\",\"../../../../layers/graphics/hydratedFeatures\",\"../../../../renderers/support/rendererConversion\",\"../../../../support/arcadeOnDemand\",\"../../../../symbols/support/defaults3D\",\"../../../../symbols/support/symbolConversion\",\"./ElevationQuery\",\"./featureExpressionInfoUtils\",\"./Graphics3DFeatureStore\",\"./Graphics3DGraphic\",\"./Graphics3DSymbolCreationContext\",\"./Graphics3DSymbolFactory\",\"./Graphics3DWebStyleSymbol\",\"./GraphicStateTracking\",\"./graphicUtils\",\"./SpatialIndex2D\",\"./symbolComplexity\",\"../support/StageLayerElevationProvider\",\"../../support/extentUtils\",\"../../support/projectionUtils\",\"../../support/PropertiesPool\",\"../../webgl-engine/lib/GridLocalOriginFactory\",\"../../webgl-engine/lib/Layer\",\"../../../support/Scheduler\"],(function(e,t,i,r,a,n,o,s,l,h,p,d,c,y,u,g,m,b,f,v,S,C,w,G,_,x,P,D,R,U,E,I,O,A,L,V,F,M,j,T,k,z,B,W,N,q,H,Z,Q,J,K){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.Graphics3DCore=void 0;var X=G.vec3f64.create(),Y=_.create(),$=d.getLogger(\"esri.views.3d.layers.graphics.Graphics3DCore\"),ee=function(e){function t(t){var i=e.call(this,t)||this;return i.propertiesPool=new Z.PropertiesPool({computedExtent:r.Extent},i),i.computedExtent=null,i.currentRenderer=null,i.rendererHasGeometryOperations=!1,i.graphicStateTracking=null,i.symbolCreationContext=new M.Graphics3DSymbolCreationContext,i.graphics3DGraphics=new Map,i.stageLayer=null,i.stage=null,i.graphicsDrapedUids=new Set,i.graphicsBySymbol=new Map,i.symbolConversionCache=new Map,i.symbols=new Map,i.graphicsWithoutSymbol=new Map,i.graphicsWaitingForSymbol=new Set,i.handles=new p,i.suspendSymbolCleanup=!1,i._spatialReference=null,i.arcadeOnDemand=null,i.rendererChangeAbortController=null,i.elevationInfoChangeAbortController=null,i.setupAbortController=null,i.elevationAlignment=null,i.scaleVisibility=null,i.filterVisibility=null,i._spatialIndex=null,i.extentPadding=0,i._updatingPendingLoadedGraphicsChange=null,i.featureStore=null,i.deconflictor=null,i.labeler=null,i.objectStates=null,i.viewElevationProvider=null,i.stageLayerElevationProvider=null,i.sharedSymbolResourcesOwnerHandle=null,i.whenGraphics3DGraphicRequests={},i.pendingUpdates=new Map,i.numberOfGraphics=0,i.numberOfGraphicsProvidingElevation=0,i.pendingAdds=0,i.pendingRemoves=0,i.pendingUpdatesPool=new m({allocator:function(e){return e||{add:null,renderingInfo:null,abortController:null,state:0,remove:null}},deallocator:function(e){return e.add=null,e.renderingInfo=null,e.remove=null,e.state=0,e.abortController=null,e}}),i.symbolWarningLogged=!1,i.geometryWarningLogged=!1,i.objectIdInvisibleSet=new Set,i._whenSymbolRemoved=new m,i.preferredUpdatePolicy=0,i.forcedUpdatePolicy=null,i._asyncUpdates=!1,i.elevationFeatureExpressionEnabled=!0,i.owner=null,i.layer=null,i.hasDraped=!1,i.graphicSymbolSupported=!0,i.getRenderingInfoWithoutRenderer=!1,i.hasZ=null,i.hasM=null,i._usedMemory=0,i._visible=void 0,i._startCreateGraphics=!1,i.maxPendingUpdates=0,i}var o;return i.__extends(t,e),o=t,Object.defineProperty(t.prototype,\"spatialIndex\",{get:function(){if(!this._spatialIndex){this._spatialIndex=new B.default({objectIdField:this.owner.layer&&this.owner.layer.objectIdField,spatialReference:this._spatialReference,hasZ:this.hasZ,hasM:this.hasM});var e=0,t=new Array(this.graphics3DGraphics.size);this.graphics3DGraphics.forEach((function(i){return t[e++]=i})),this._spatialIndex.addMany(t)}return this._spatialIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"asyncUpdates\",{get:function(){return this._asyncUpdates},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"updating\",{get:function(){return!!(this.graphicsWaitingForSymbol.size>0||this.needsUpdate()||this.elevationAlignment&&this.elevationAlignment.updating||this.scaleVisibility&&this.scaleVisibility.updating||this.filterVisibility&&this.filterVisibility.updating||this.rendererChangeAbortController||this.elevationInfoChangeAbortController||this._updatingPendingLoadedGraphicsChange)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"updatingRemaining\",{get:function(){return this.updating?this.pendingUpdates.size:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"updatingTotal\",{get:function(){return this.updating?this.maxPendingUpdates:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"displayFeatureLimit\",{get:function(){var e=this.owner&&this.owner.view&&this.owner.view.qualitySettings,t=e?e.graphics3D.minTotalNumberOfFeatures:0,i=e?e.graphics3D.maxTotalNumberOfFeatures:0,r=e?e.graphics3D.maxTotalNumberOfPrimitives:0,a=this.maxSymbolComplexity,n=Math.max(t,Math.min(i,Math.ceil(r/Math.max(1,a?a.primitivesPerFeature:1)))),o=this._get(\"displayFeatureLimit\");return o&&o.minimumTotalNumberOfFeatures===t&&o.maximumTotalNumberOfFeatures===i&&o.maximumTotalNumberOfPrimitives===r&&o.maximumSymbolComplexity===a&&o.maximumNumberOfFeatures===n?o:{minimumTotalNumberOfFeatures:t,maximumTotalNumberOfFeatures:i,maximumTotalNumberOfPrimitives:r,maximumSymbolComplexity:a,maximumNumberOfFeatures:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"maxSymbolComplexity\",{get:function(){for(var e=null,t=this.symbolComplexities,i=this._get(\"maxSymbolComplexity\"),r=!1,a=0,n=t;ae.primitivesPerFeature||0!==e.primitivesPerCoordinate&&o.primitivesPerCoordinate>e.primitivesPerCoordinate)&&(e=o),r=r||o.estimated}return!e||r&&i&&(i.primitivesPerFeature>=e.primitivesPerFeature||i.primitivesPerCoordinate>=e.primitivesPerCoordinate)||i&&i.primitivesPerFeature===e.primitivesPerFeature&&i.primitivesPerCoordinate===e.primitivesPerCoordinate?i:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"spatialReference\",{get:function(){return this._spatialReference},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"usedMemory\",{get:function(){var e=this.maxSymbolComplexity&&this.labelsEnabled?this.maxSymbolComplexity.memory.bytesPerFeatureLabel*this.numberOfGraphics:0;return this._usedMemory+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"usedMemoryPerGraphic\",{get:function(){if(this._usedMemory&&this.numberOfGraphics)return this._usedMemory/this.numberOfGraphics;if(this.maxSymbolComplexity){var e=this.labelsEnabled?this.maxSymbolComplexity.memory.bytesPerFeatureLabel:0;return this.maxSymbolComplexity.memory.bytesPerFeature+e}return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"unprocessedMemoryEstimate\",{get:function(){return Math.max(0,(this.pendingAdds-this.pendingRemoves)*this.usedMemoryPerGraphic)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"symbolComplexities\",{get:function(){return this.currentRenderer?this.getSymbolComplexitiesUsedOrRenderer(this.currentRenderer):this.getSymbolComplexitiesUsed()},enumerable:!1,configurable:!0}),t.prototype.getConvertedSymbol=function(e){if(\"web-style\"===e.type)return e.clone();var t=this.symbolConversionCache.get(e.id);if(void 0!==t)return t;var i=O.to3D(e,!0,!1,this.hasLabelingContext(e)),r=i.symbol||null;return r||i.error&&$.error(i.error.message),this.symbolConversionCache.set(e.id,r),r},t.prototype.getSymbolComplexitiesUsedOrRenderer=function(e){if(u.isNone(e))return[];var t=e.getSymbols(),i=\"backgroundFillSymbol\"in e&&e.backgroundFillSymbol;if(!(i||t&&t.length))return[];var r=[],a=this.getSymbolComplexityUsedOrRenderer(i);u.isSome(a)&&r.push(a);for(var n=0,o=t;nthis.displayFeatureLimit.maximumNumberOfFeatures*ae,i=!e&&!t;i!==this._visible&&(this._visible=i,i?(this.stageLayer.isPickable=!0,this.updateAllGraphicsVisibility()):(this.stageLayer.isPickable=!1,this.hideAllGraphics()),this.updateStageLayerVisibility())},t.prototype.updateStageLayerVisibility=function(){this.stageLayer.isVisible=this._visible&&(null==this.layer.opacity||this.layer.opacity>0)},t.prototype.getGraphics3DGraphicById=function(e){return this.graphics3DGraphics.get(e)},t.prototype.getGraphics3DGraphicByObjectId=function(e){var t=this;if(!(this.owner.layer&&this.owner.layer.objectIdField))return null;var i=null;return c.someMap(this.graphics3DGraphics,(function(r){return t._getGraphicObjectID(r.graphic)!==e||(i=r,!1)})),i},t.prototype._getGraphicObjectID=function(e,t){return void 0===t&&(t=this.owner.layer&&this.owner.layer.objectIdField),D.getObjectId(e,t)},Object.defineProperty(t.prototype,\"graphics3DGraphicsByObjectID\",{get:function(){var e=this,t=this.owner.layer&&this.owner.layer.objectIdField;if(!t)return null;var i=new Map;return this.graphics3DGraphics.forEach((function(r){if(r){var a=r.graphic,n=e._getGraphicObjectID(a,t);u.isSome(n)&&i.set(n,r)}})),i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"labelsEnabled\",{get:function(){return!(!this.labeler||!this.labeler.layerLabelsEnabled())},enumerable:!1,configurable:!0}),t.prototype.updateLabelingInfo=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,r;return i.__generator(this,(function(i){switch(i.label){case 0:return t=this.deconflictor&&this.deconflictor.labelingInfoChange(e),r=this.labeler&&this.labeler.labelingInfoChange(e),[4,b.eachAlways([t,r])];case 1:return i.sent(),[2]}}))}))},t.prototype.updateVisibilityInfo=function(){this.deconflictor&&this.deconflictor.labelingInfoChange(),this.labeler&&this.labeler.visibilityInfoChange()},Object.defineProperty(t.prototype,\"symbolUpdateType\",{get:function(){var e=this;if(this.pendingUpdates.size>0)return\"unknown\";var t=0,i=0;return c.someMap(this.symbols,(function(r,a){if(u.isSome(r)){var n=r.getFastUpdateStatus();if(n.loading>0)return!0;e.graphicsBySymbol.has(a)&&(i+=n.fast,t+=n.slow)}return!1}))?\"unknown\":i>=0&&0===t?\"fast\":t>=0&&0===i?\"slow\":\"mixed\"},enumerable:!1,configurable:!0}),t.prototype.needsUpdate=function(){return this.pendingUpdates.size>0},t.prototype.update=function(e){this._applyPendingUpdates(e),this.needsUpdate()||this.notifyChange(\"updating\")},t.prototype.setObjectIdVisibility=function(e,t){t?this.objectIdInvisibleSet.delete(e):this.objectIdInvisibleSet.add(e);var i=this._findGraphics3DGraphicByObjectId(e);u.isSome(i)&&this._updateUserVisibility(i)},t.prototype._findGraphics3DGraphicByObjectId=function(e){var t,i=this;return c.someMap(this.graphics3DGraphics,(function(r){return i._getGraphicObjectID(r.graphic)===e&&(t=r,!0)})),t},t.prototype._updateUserVisibility=function(e){if(u.isNone(e))return!1;var t=e.graphic,i=this._getGraphicObjectID(t),r=t.visible&&!this.owner.suspended&&(u.isNone(i)||!this.objectIdInvisibleSet.has(i));return e.setVisibilityFlag(0,r,0)},t.prototype.whenGraphics3DGraphic=function(e){var t=this.graphics3DGraphics.get(e.uid);if(t)return b.resolve(t);var i=this.whenGraphics3DGraphicRequests[e.uid];if(i)return i.promise;var r=b.createDeferred();return this.whenGraphics3DGraphicRequests[e.uid]=r,r.promise},t.prototype.boundsForGraphics3DGraphic=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var r,a,n,o,s,l,h,p,d,c;return i.__generator(this,(function(i){switch(i.label){case 0:return r=this._spatialReference,a=this.owner.view.renderSpatialReference,n=this.owner.view.basemapTerrain.spatialReference,o=function(e,t,i){return H.bufferToBuffer(e,a,t,e,r,t,i)},s=function(e,t,i){return H.bufferToBuffer(e,n,t,e,r,t,i)},l=this.viewElevationProvider?{service:this.viewElevationProvider,useViewElevation:u.isSome(t)&&t.useViewElevation,minDemResolution:u.isSome(t)&&t.minDemResolution,minDemResolutionForPoints:this.owner.view.resolution}:null,[4,e.getProjectedBoundingBox(o,s,l,u.get(t,\"signal\"))];case 1:return(h=i.sent())?(p=h.boundingBox,h.requiresDrapedElevation&&(d=this.symbolCreationContext.elevationProvider)&&(_.center(p,X),c=d.getElevation(X[0],X[1],0,r,\"ground\")||0,p[2]=Math.min(p[2],c),p[5]=Math.max(p[5],c)),[2,{boundingBox:p,screenSpaceObjects:h.screenSpaceObjects}]):[2,null]}}))}))},t.prototype.whenGraphicBounds=function(e,t){var i=this;return v.whenOnce(this.owner,\"loadedGraphics\").then((function(){var t=i.owner.layer&&i.owner.layer.objectIdField,r=i.owner.loadedGraphics.find((function(i){return i===e||t&&i.attributes&&e.attributes&&i.attributes[t]===e.attributes[t]}));if(r)return i.whenGraphics3DGraphic(r);throw new h(\"internal:graphic-not-part-of-view\",\"Graphic is not part of this view\")})).then((function(e){return i.boundsForGraphics3DGraphic(e,t)}))},t.prototype.computeAttachmentOrigin=function(e,t){var i=this.graphics3DGraphics.get(e.uid);if(!i)return null;var a=i.computeAttachmentOrigin();if(0===a.render.num&&0===a.draped.num)return null;w.vec3.set(ne,0,0,0);var n=0;if(a.render.num>0){if(!H.vectorToVector(a.render.origin,this.symbolCreationContext.renderCoordsHelper.spatialReference,oe,t))return null;w.vec3.add(ne,ne,oe),n++}if(a.draped.num>0){var o=a.draped.origin,s=o[0],l=o[1],h=this.viewElevationProvider.getElevation(s,l,\"ground\")||0;if(w.vec3.set(oe,s,l,h),!H.vectorToVector(oe,this.viewElevationProvider.spatialReference,oe,t))return null;w.vec3.add(ne,ne,oe),n++}return n>1&&w.vec3.scale(ne,ne,1/n),new r.Point({x:ne[0],y:ne[1],z:ne[2],spatialReference:t})},t.prototype.getSymbolLayerSize=function(e,t){var i=this.symbols.get(e.id);if(u.isNone(i))throw new h(\"internal:symbol-not-part-of-view\",\"Symbol is not part of this view\");var r=e.symbolLayers.indexOf(t);if(-1===r)throw new h(\"internal:missing-symbol-layer\",\"Symbol layer is not in symbol\");var a=i.getSymbolLayerSize(r);if(null==a)throw new h(\"internal:missing-size\",\"Symbol layer has no valid size\");return a},t.prototype.graphicsCollectionChanged=function(e){this._startCreateGraphics&&(this.add(e.added),this.remove(e.removed))},t.prototype.graphicUpdateHandler=function(e){var t=e.graphic.uid,i=this.graphics3DGraphics.get(t),r=this.graphicsWithoutSymbol.get(t);if(i||r)switch(e.property){case\"visible\":this.graphicUpdateVisibleHandler(i);break;case\"geometry\":this.graphicUpdateGeometryHandler(i,e);break;case\"symbol\":this.graphicUpdateSymbolHandler(i,e);break;case\"attributes\":break;default:l.neverReached(e)}},t.prototype.graphicUpdateGeometryHandler=function(e,t){var i=t.graphic.geometry;if(u.isNone(i))this.recreateGraphic(t.graphic);else if(u.isNone(e)){var r=t.graphic.symbol&&t.graphic.symbol.id;if(r){var a=this.symbols.get(r);if(u.isSome(a)&&0===a.loadStatus)return}this.recreateGraphic(t.graphic)}else{e.graphics3DSymbol.updateGeometry(e,t.newValue)||this.recreateGraphic(e.graphic),this.expandComputedExtent(i)}},t.prototype.graphicUpdateSymbolHandler=function(e,t){var i=t.graphic,r=u.isSome(e)?e.graphics3DSymbol:t.oldValue&&this.symbols.get(t.oldValue.id);if(u.isNone(r))this.recreateGraphic(i);else{var a=r.symbol,n=this.getConvertedSymbol(t.newValue);if(n.type===a.type&&\"web-style\"!==n.type&&\"web-style\"!==a.type){var o=this.graphicsBySymbol.get(a.id);if(o&&1!==o.size)this.recreateGraphic(i);else{var s=C.diff(a,n);if(u.isNone(s))this.updateSymbolMapping(a.id,n);else{var l={diff:s,graphics3DGraphicPatches:[],symbolStatePatches:[]};if(r.prepareSymbolPatch(l),C.isEmpty(l.diff)){for(var h=r.extentPadding,p=0,d=l.symbolStatePatches;pn.zmax);if(n)(t[0]n.xmax||t[4]>n.ymax||h||p)&&((s=this.propertiesPool.get(\"computedExtent\")).xmin=Math.min(t[0],n.xmin),s.ymin=Math.min(t[1],n.ymin),s.xmax=Math.max(t[3],n.xmax),s.ymax=Math.max(t[4],n.ymax),s.spatialReference=r);else(s=this.propertiesPool.get(\"computedExtent\")).xmin=t[0],s.ymin=t[1],s.xmax=t[3],s.ymax=t[4],s.spatialReference=r;s&&(h&&(s.zmin=t[2]),p&&(s.zmax=t[5]),this._set(\"computedExtent\",s))}},t.prototype.updateHasDraped=function(){var e=this.graphicsDrapedUids.size>0;this._set(\"hasDraped\",e)},t.prototype.abortElevationInfoChange=function(){this.elevationInfoChangeAbortController&&(this.elevationInfoChangeAbortController.abort(),this.elevationInfoChangeAbortController=null)},t.prototype.elevationInfoChange=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t,r,a=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.abortElevationInfoChange(),e=b.createAbortController(),this.elevationInfoChangeAbortController=e,t=L.extractExpressionInfo(this.layer.elevationInfo,this.elevationFeatureExpressionEnabled),r=this.symbolCreationContext,[4,L.createContext(t,this._spatialReference,$)];case 1:return r.featureExpressionInfoContext=i.sent(),b.throwIfAborted(e),this.elevationInfoChangeAbortController=null,this.labeler&&this.labeler.elevationInfoChange(),this.forEachGraphics3DSymbol((function(e,t,i){e.globalPropertyChanged(\"elevationInfo\",t)?t.forEach((function(e){for(var t=e.graphic,i=0,r=e.labelGraphics;i0&&(this.stageLayerElevationProvider=new N.StageLayerElevationProvider({layer:this.layer,stageLayer:this.stageLayer,view:this.owner.view}),this.owner.view.elevationProvider.register(\"scene\",this.stageLayerElevationProvider))},t.prototype.clearSymbolsAndGraphics=function(){this.clear(),this.filterVisibility&&this.filterVisibility.clear(),this.labeler&&this.labeler.reset(),this.deconflictor&&this.deconflictor.clear(),this.elevationAlignment&&this.elevationAlignment.clear(),this.stageLayer&&this.stageLayer.invalidateSpatialQueryAccelerator(),this.stageLayerElevationProvider&&(this.owner.view.elevationProvider.unregister(this.stageLayerElevationProvider),this.stageLayerElevationProvider.dispose(),this.stageLayerElevationProvider=null)},t.prototype.startCreateGraphics=function(){this._startCreateGraphics=!0,this.recreateAllGraphics()},t.prototype.recreateAllGraphics=function(){this._startCreateGraphics&&(this.clearSymbolsAndGraphics(),this._set(\"computedExtent\",null),this.symbolCreationContext.screenSizePerspectiveEnabled=this.owner.view.screenSizePerspectiveEnabled&&this.layer.screenSizePerspectiveEnabled,this.symbolCreationContext.slicePlaneEnabled=!!this.owner.slicePlaneEnabled,this.owner.loadedGraphics&&this.owner.loadedGraphics.length&&this.owner.view.basemapTerrain.tilingScheme&&this.add(this.owner.loadedGraphics.toArray()))},t.prototype._recreateSymbol=function(e){var t=this;var i=this.graphicsBySymbol.get(e),r=[];i&&(i.forEach((function(e,i){var a=e.usedMemory;t._conditionalRemove(e,i),t._spatialIndex&&t._spatialIndex.remove(e),r.push(e.graphic),e.destroy(),t.removeGraphics3DGraphic(i,a),t.updateLayerVisibility(),t.featureStore.events.emit(\"changed\")})),this.graphicsBySymbol.set(e,new Map));var a=this.symbols.get(e);u.isSome(a)&&a.destroy(),this.symbols.delete(e),this.updateHasDraped(),this.add(r)},t.prototype._conditionalRemove=function(e,t){e.isDraped&&this.graphicsDrapedUids.delete(t),this.objectStates&&this.objectStates.removeGraphic(e),this.labeler&&this.labeler.removeGraphic(e),this.deconflictor&&this.deconflictor.removeGraphic(e),u.isSome(this.graphicStateTracking)&&this.graphicStateTracking.removeGraphic(e)},t.prototype.add=function(e){e&&0!==e.length&&(this.owner.view.basemapTerrain&&this.owner.view.basemapTerrain.tilingScheme?(this.asyncUpdates?this._addDelayed(e):this._addImmediate(e),this.notifyChange(\"updating\")):$.error(\"#add()\",\"Cannot add graphics before terrain surface has been initialized\"))},t.prototype._addImmediate=function(e){var t=this;this.geometryWarningLogged=!1,this.symbolWarningLogged=!1,te.clear();for(var i=0,r=e;ii&&(te.forEach((function(e){return t._finishAddGraphics(e)})),te.clear(),r=0),null==a.remove&&null==a.add&&(t.pendingUpdates.delete(n),e.madeProgress()),e.done})),te.forEach((function(e){return t._finishAddGraphics(e)})),te.clear(),0===this.pendingUpdates.size&&this._finishPendingUpdates(),this.notifyChange(\"updatingTotal\"),this.notifyChange(\"updatingRemaining\"),this.updateHasDraped()},t.prototype._startAddRenderingInfo=function(e){var t=this;u.isSome(this.layer.renderer)&&\"dictionary\"===this.layer.renderer.type?(e.state=1,e.abortController=b.createAbortController(),this._getRenderingInfoAsync(e.add,{signal:e.abortController.signal}).then((function(i){u.isNone(i)||u.isNone(i.symbol)?($&&!t.symbolWarningLogged&&(t.symbolWarningLogged=!0,$.warn(\"Graphic in layer \"+t.layer.id+\" has no symbol and will not render\")),e.renderingInfo=null):e.renderingInfo=i,e.state=2}),(function(t){e.abortController=null,b.isAbortError(t)?e.state=0:e.state=3}))):(e.renderingInfo=this._getRenderingInfo(e.add,$),e.state=2)},t.prototype._startAddGraphic=function(e,t,i){if(this.graphicsWithoutSymbol.set(e.uid,e),!t||u.isNone(t.symbol)||!D.hasGeometry(e))return!1;var r=t.symbol,a=this.getOrCreateGraphics3DSymbol(r,t.renderer);if(u.isNone(a))return!1;this.expandComputedExtent(e.geometry),this._beginGraphicUpdate(e);var n={graphic:e,renderingInfo:t,layer:this.layer},o=a.symbol.id,s=i.get(o);if(s)s.graphics.push(n);else{var l=re.acquire();l.clear(),l.push(n),i.set(o,{asyncSymbol:a,graphics:l})}return!0},t.prototype._finishAddGraphics=function(e){var t=this,i=!1,r=function(t){t===e.asyncSymbol.symbol.id&&(i=!0)};this._whenSymbolRemoved.push(r);e.asyncSymbol.load((function(){if(!t.destroyed){t._whenSymbolRemoved.removeUnordered(r),ie.clear();for(var a=0;a0&&(t._spatialIndex.addMany(ie.data,ie.length),ie.clear()),t.featureStore.events.emit(\"changed\"),e.graphics.clear(),re.release(e.graphics),t.labeler&&t.owner.view.labeler.setDirty()}}),(function(a){if(!t.destroyed){if(t._whenSymbolRemoved.removeUnordered(r),!i)if(b.isAbortError(a))t.add(e.graphics.map((function(e){return e.graphic})));else if(!e.asyncSymbol.destroyed)for(var n=0;ni.extentPadding&&i._set(\"extentPadding\",e),i.notifyChange(\"maxSymbolComplexity\")}),(function(){})),o},t.prototype.getOrCreateGraphics3DSymbol=function(e,t){var i=this,r=this.symbols.get(e.id);return void 0===r&&(r=e instanceof n.WebStyleSymbol?new T(e,(function(e){return i.createGraphics3DSymbol(e,t)})):this.createGraphics3DSymbol(e,t),this.symbols.set(e.id,r)),u.isSome(r)&&++r.referenced,r},t.prototype.trackGraphicState=function(e){return u.isNone(this.graphicStateTracking)&&(this.graphicStateTracking=new k.GraphicStateTracking(this)),this.graphicStateTracking.add(e)},t.prototype.addGraphics3DGraphic=function(e){this._usedMemory+=e.usedMemory,this.graphics3DGraphics.set(e.graphic.uid,e),this.numberOfGraphics++,e.isElevationSource&&(this.numberOfGraphicsProvidingElevation++,this.updateStageLayerElevationProvider()),this.updateLayerVisibility()},t.prototype.removeGraphics3DGraphic=function(e,t,i){void 0===i&&(i=!1),this._usedMemory-=t,this.graphics3DGraphics.delete(e),this.numberOfGraphics--,i&&(this.numberOfGraphicsProvidingElevation--,this.updateStageLayerElevationProvider()),this.updateLayerVisibility()},t.prototype.createGraphics3DGraphic=function(e,t){var i=t.graphic;if(this.graphicsWithoutSymbol.delete(i.uid),!this.symbols.has(e.symbol.id))return this.add([i]),null;if(this.graphics3DGraphics.has(i.uid))return null;var r=e.createGraphics3DGraphic(t);if(u.isNone(r))return null;this.addGraphics3DGraphic(r);var a=e.symbol.id;this.graphicsBySymbol.has(a)||this.graphicsBySymbol.set(a,new Map),this.graphicsBySymbol.get(a).set(i.uid,r),r.isDraped&&(this.graphicsDrapedUids.add(i.uid),this._set(\"hasDraped\",!0)),r.centroid=null,u.isSome(i.geometry)&&\"point\"!==i.geometry.type&&r instanceof F&&(r.centroid=z.computeCentroid(i.geometry,this._spatialReference)),this._updateUserVisibility(r),this.scaleVisibility&&this.scaleVisibility.updateVisibility(r),this.filterVisibility&&this.filterVisibility.updateVisibility(r),this.deconflictor&&this.deconflictor.addGraphic(r),this.labeler&&this.labeler.addGraphic(r),this.objectStates&&this.objectStates.addGraphic(r),this.deconflictor&&this.owner.view.deconflictor.setInitialIconVisibilityFlag(this,r),r.initialize(this.stage,this.stageLayer,this.owner),u.isSome(this.graphicStateTracking)&&this.graphicStateTracking.addGraphic(r);var n=this.whenGraphics3DGraphicRequests[i.uid];return n&&(delete this.whenGraphics3DGraphicRequests[i.uid],n.resolve(r)),r},t.prototype.abortRendererChange=function(){this.rendererChangeAbortController&&(this.rendererChangeAbortController.abort(),this.rendererChangeAbortController=null)},t.prototype.rendererChange=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,r;return i.__generator(this,(function(i){switch(i.label){case 0:return this.abortRendererChange(),e===this.currentRenderer?[2]:(this.validateRenderer(e),U.isSupportedRenderer3D(e)?u.isSome(e)&&e.arcadeRequired?(t=b.createAbortController(),this.rendererChangeAbortController=t,[4,this.ensureArcade()]):[3,4]:(this.currentRendererChange(null,!1),[2]));case 1:return r=i.sent().arcadeUtils,b.throwIfAborted(t),r.hasGeometryOperations(e)?[4,r.enableGeometryOperations()]:[3,3];case 2:i.sent(),b.throwIfAborted(t),i.label=3;case 3:return this.rendererChangeAbortController=null,this.currentRendererChange(e,!0),[3,5];case 4:this.currentRendererChange(e,!1),i.label=5;case 5:return[2]}}))}))},t.prototype.ensureArcade=function(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){switch(t.label){case 0:return u.isNone(this.arcadeOnDemand)?(e=this,[4,E.loadArcade()]):[3,2];case 1:return e.arcadeOnDemand=t.sent(),[2,this.arcadeOnDemand];case 2:return[2,this.arcadeOnDemand]}}))}))},t.prototype.currentRendererChange=function(e,t){this.currentRenderer=e,this.rendererHasGeometryOperations=t,this.symbolCreationContext.arcade=u.unwrap(this.arcadeOnDemand);var i=this.symbolCreationContext.renderer;if(e!==i){if(this.updateUpdatePolicy(),this.symbolConversionCache.clear(),u.isNone(e))return this.symbolCreationContext.renderer=null,void this.recreateAllGraphics();var r=C.diff(i,e);this.updateUnchangedSymbolMappings(r,e,i),this.symbolCreationContext.renderer=e,u.isNone(r)||(\"complete\"===r.type?this.recreateAllGraphics():\"partial\"===r.type&&(this.applyRendererDiff(r,e,i)?this.volatileGraphicsUpdated():this.recreateAllGraphics()),this.notifyChange(\"maxSymbolComplexity\"))}},t.prototype.diffHasSymbolChange=function(e){for(var t in e.diff)switch(t){case\"visualVariables\":case\"defaultSymbol\":case\"uniqueValueInfos\":break;case\"authoringInfo\":case\"fieldDelimiter\":delete e.diff[t];break;default:return!0}return!1},t.prototype.applySymbolSetDiff=function(e,t,i){var r=this;e=e||[];for(var a=[],n=function(t){var n=o.graphicsBySymbol.get(t.id);n&&n.forEach((function(o,s){var l=o.graphic,h=r.layer instanceof P?r.layer:null,p=u.unwrap(r.arcadeOnDemand);if(t!==i.defaultSymbol||i.getSymbol(R.hydrateGraphic(l,h),{arcade:p})!==i.defaultSymbol){var d=o.usedMemory;e.length||i.defaultSymbol?a.push(l):r.graphicsWithoutSymbol.set(s,l);var c=r.graphics3DGraphics.get(s);r._conditionalRemove(c,s),o.destroy(),n.delete(s),r.removeGraphics3DGraphic(s,d),r.updateLayerVisibility()}})),o._whenSymbolRemoved.forEachSimple((function(e){return e(t.id)}))},o=this,s=0,l=t=t||[];s0||this.suspendSymbolCleanup)){var t=!1;this.symbols.forEach((function(i,r){if(!(u.isNone(i)||i.referenced>0)){var a=e.graphicsBySymbol.get(r);a&&0!==a.size||(e.graphicsBySymbol.delete(r),e.symbols.delete(r),i&&i.destroy(),t=!0)}})),t&&(this.recomputeExtentPadding(),this.notifyChange(\"maxSymbolComplexity\"))}},t.prototype.snapshotInternals=function(){var e=this;return{graphics:s.keysOfMap(this.graphics3DGraphics).sort(),symbols:s.keysOfMap(this.symbols).sort(),graphicsBySymbol:s.keysOfMap(this.graphicsBySymbol).sort().map((function(t){return{symbolId:t,graphics:s.keysOfMap(e.graphicsBySymbol.get(t)).sort()}})),graphicsWithoutSymbol:s.keysOfMap(this.graphicsWithoutSymbol).sort(),graphicsDrapedUids:s.keysOfSet(this.graphicsDrapedUids).sort(),pendingUpdates:this.pendingUpdates}},Object.defineProperty(t.prototype,\"test\",{get:function(){var e=this;return{symbols:this.symbols,filterVisibility:this.filterVisibility,numPending:this.pendingUpdates.size,forceUpdatePolicy:function(t){e.forcedUpdatePolicy=t,e.updateUpdatePolicy()}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"performanceInfo\",{get:function(){return{visible:this.graphics3DGraphics.size,missing:this.graphicsWithoutSymbol.size,pending:this.pendingUpdates.size}},enumerable:!1,configurable:!0}),t.tmpVec=G.vec3f64.create(),i.__decorate([S.property({readOnly:!0})],t.prototype,\"computedExtent\",void 0),i.__decorate([S.property()],t.prototype,\"currentRenderer\",void 0),i.__decorate([S.property()],t.prototype,\"rendererHasGeometryOperations\",void 0),i.__decorate([S.property()],t.prototype,\"rendererChangeAbortController\",void 0),i.__decorate([S.property()],t.prototype,\"elevationInfoChangeAbortController\",void 0),i.__decorate([S.property()],t.prototype,\"setupAbortController\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"elevationAlignment\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"scaleVisibility\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"filterVisibility\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"extentPadding\",void 0),i.__decorate([S.property()],t.prototype,\"_updatingPendingLoadedGraphicsChange\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"featureStore\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"deconflictor\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"labeler\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"objectStates\",void 0),i.__decorate([S.property()],t.prototype,\"preferredUpdatePolicy\",void 0),i.__decorate([S.property({constructOnly:!0})],t.prototype,\"elevationFeatureExpressionEnabled\",void 0),i.__decorate([S.property({constructOnly:!0})],t.prototype,\"owner\",void 0),i.__decorate([S.property({constructOnly:!0})],t.prototype,\"layer\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"hasDraped\",void 0),i.__decorate([S.property({readOnly:!0})],t.prototype,\"symbolsUpdating\",void 0),i.__decorate([S.property({constructOnly:!0})],t.prototype,\"graphicSymbolSupported\",void 0),i.__decorate([S.property({constructOnly:!0})],t.prototype,\"getRenderingInfoWithoutRenderer\",void 0),i.__decorate([S.property({readOnly:!0,dependsOn:[\"elevationAlignment.updating\",\"scaleVisibility.updating\",\"filterVisibility.updating\",\"rendererChangeAbortController\",\"elevationInfoChangeAbortController\",\"_updatingPendingLoadedGraphicsChange\"]})],t.prototype,\"updating\",null),i.__decorate([S.property({readOnly:!0})],t.prototype,\"updatingRemaining\",null),i.__decorate([S.property({readOnly:!0})],t.prototype,\"updatingTotal\",null),i.__decorate([S.property({readOnly:!0,dependsOn:[\"owner.view.qualitySettings.graphics3D.maxTotalNumberOfPrimitives\",\"owner.view.qualitySettings.graphics3D.maxTotalNumberOfFeatures\",\"maxSymbolComplexity\"]})],t.prototype,\"displayFeatureLimit\",null),i.__decorate([S.property({readOnly:!0})],t.prototype,\"maxSymbolComplexity\",null),i.__decorate([S.property({constructOnly:!0})],t.prototype,\"hasZ\",void 0),i.__decorate([S.property({constructOnly:!0})],t.prototype,\"hasM\",void 0),t=o=i.__decorate([S.subclass(\"esri.views.3d.layers.graphics.Graphics3DCore\")],t)}(o);t.Graphics3DCore=ee;var te=new Map,ie=new m,re=new g(m),ae=10,ne=G.vec3f64.create(),oe=G.vec3f64.create(),se=new Map}));","// 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/has\",\"../../../../core/accessorSupport/decorators\",\"../../../../core/libs/rbush/PooledRBush\",\"../../../../geometry/support/aaBoundingBox\",\"../../../../layers/graphics/dehydratedFeatures\"],(function(e,t,n,r,o,i,a,s,c){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SpatialIndex2D=void 0;var u=function(e){function t(t){var n=e.call(this,t)||this;return n.index=new a.default(9,o(\"csp-restrictions\")?function(e){return{minX:e.extent[0],minY:e.extent[1],maxX:e.extent[2],maxY:e.extent[3]}}:[\".extent[0]\",\".extent[1]\",\".extent[2]\",\".extent[3]\"]),n.boundsByFeature=new Map,n.spatialReference=null,n.hasZ=null,n.hasM=null,n.objectIdField=null,n}return n.__extends(t,e),t.prototype.destroy=function(){this.index.destroy(),this.index=null,this.boundsByFeature.clear(),this.boundsByFeature=null},t.prototype.queryGraphicUIDsInExtent=function(e,t,n){t.equals(this.spatialReference)&&(d.minX=e[0],d.minY=e[1],d.maxX=e[2],d.maxY=e[3],this.index.search(d,(function(e){return n(e.graphic.uid)})))},t.prototype.add=function(e){e.computeExtent(this.spatialReference),this.index.insert(e);var t=c.getObjectId(e.graphic,this._get(\"objectIdField\"));null!=t&&this.boundsByFeature.set(t,e.extent)},t.prototype.addMany=function(e,t){void 0===t&&(t=e.length);for(var n=this._get(\"objectIdField\"),r=0;r0){var o=n.map((function(r){return r.details.symbol.type||r.details.symbol.declaredClass})).filter((function(r){return!!r}));o.sort();var u=[];return o.forEach((function(r,e){0!==e&&r===o[e-1]||u.push(r)})),new t(\"renderer-conversion-3d:unsupported-symbols\",\"Renderer contains symbols (\"+u.join(\", \")+\") which are not supported in 3D\",{renderer:r,symbolErrors:n})}return null}Object.defineProperty(e,\"__esModule\",{value:!0}),e.validateTo3D=e.isSupportedRenderer3D=void 0,e.isSupportedRenderer3D=s,e.validateTo3D=function(r){if(o.isNone(r))return null;if(!s(r))return new t(\"renderer-conversion-3d:unsupported-renderer\",\"Unsupported renderer of type '\"+(r.type||r.declaredClass)+\"'\",{renderer:r});switch(r.type){case\"simple\":return function(r){return i(r,u.to3D(r.symbol).error)}(r);case\"unique-value\":return function(r){var e=r.uniqueValueInfos.map((function(r){return u.to3D(r.symbol).error})).filter((function(r){return!!r})),n=u.to3D(r.defaultSymbol);n.error&&e.unshift(n.error);return i(r,e)}(r);case\"class-breaks\":return function(r){var e=r.classBreakInfos.map((function(r){return u.to3D(r.symbol).error})).filter((function(r){return!!r})),n=u.to3D(r.defaultSymbol);n.error&&e.unshift(n.error);return i(r,e)}(r);case\"dictionary\":return null;default:n.neverReached(r)}return 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\",\"tslib\",\"../../../../core/Accessor\",\"../../../../core/Evented\",\"../../../../core/Logger\",\"../../../../core/maybe\",\"../../../../core/unitUtils\",\"../../../../core/accessorSupport/decorators\",\"../../../../core/libs/gl-matrix-2/vec3\",\"../../../../core/libs/gl-matrix-2/vec3f64\",\"../../../../geometry/support/aaBoundingBox\",\"../../../../geometry/support/aaBoundingRect\",\"../../../../symbols/support/unitConversionUtils\",\"../../webgl-engine/lib/Intersector\"],(function(e,t,r,a,i,o,n,s,l,c,d,p,y,v,u){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.StageLayerElevationProvider=void 0;var h=o.getLogger(\"esri.views.3d.layers.support.StageLayerElevationProvider\"),f=function(e){function t(t){var r=e.call(this,t)||this;return r.elevationOffset=0,r.layerDirtyNotificationHandle=null,r}return r.__extends(t,e),t.prototype.initialize=function(){var e=this;this.renderCoordsHelper=this.view.renderCoordsHelper,this.intersectLayers=[this.stageLayer],this.intersector=new u.Intersector(this.view.state.mode),this.intersector.options.store=0;var t=this.computeLayerExtent(this.stageLayer);this.zmin=t[2],this.zmax=t[5],this.layerDirtyNotificationHandle=this.stageLayer.on(\"dirty\",(function(t){return e.stageLayerChanged(t.origin,t.dirtyType,t.subObject)}))},t.prototype.dispose=function(){this.layerDirtyNotificationHandle.remove()},t.prototype.elevationInfoChanged=function(){var e=null!=this.layer?this.layer.elevationInfo:null;if(null!=e&&\"on-the-ground\"!==e.mode){var t=s.getMetersPerVerticalUnitForSR(this.layer.spatialReference),r=v.getMetersPerUnit(e.unit);this.elevationOffset=n.unwrapOr(e.offset,0)*r/t}else this.elevationOffset=0},t.prototype.getElevation=function(e,t,r,a){if(b[0]=e,b[1]=t,b[2]=r,!this.renderCoordsHelper.toRenderCoords(b,a,b))return h.error(\"could not project point for elevation alignment\"),null;var i=this.elevationOffset,o=this.zmin+i,n=this.zmax+i;c.vec3.copy(E,b),c.vec3.copy(B,b),this.renderCoordsHelper.setAltitude(n,E),this.renderCoordsHelper.setAltitude(o,B);return this.intersector.reset(E,B),this.intersector.intersect(this.intersectLayers,null,null,1,null,(function(e){return e.metadata&&e.metadata.isElevationSource})),this.intersector.results.min.getIntersectionPoint(b)?this.renderCoordsHelper.getAltitude(b):null},t.prototype.stageLayerChanged=function(e,t,r){switch(t){case\"layerObjectAdded\":case\"layerObjectRemoved\":case\"objGeometryAdded\":(a=r).metadata&&a.metadata.isElevationSource&&this.objectChanged(a);break;case\"objGeometryRemoved\":case\"vertexAttrsUpdated\":case\"objTransformation\":var a;(a=e).metadata&&a.metadata.isElevationSource&&this.objectChanged(a)}},t.prototype.objectChanged=function(e){if(this.spatialReference){p.empty(m),e.metadata.lastValidElevationBB.isEmpty()||this.expandExtent(e.metadata.lastValidElevationBB.bbMin,e.metadata.lastValidElevationBB.bbMax,m);var t=e.getBBMin(!1),r=e.getBBMax(!1);this.expandExtent(t,r,m),p.toRect(m,g),this.zmin=Math.min(this.zmin,m[2]),this.zmax=Math.max(this.zmax,m[5]),x.extent=g,x.spatialReference=this.spatialReference,this.emit(\"elevation-change\",x),c.vec3.copy(e.metadata.lastValidElevationBB.bbMin,t),c.vec3.copy(e.metadata.lastValidElevationBB.bbMax,r)}},t.prototype.computeLayerExtent=function(e){p.empty(m);for(var t=0,r=e.getObjects();t