@arcgis/core 4.34.0-next.29 → 4.34.0-next.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/Map.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/0260b33daf48fc207880.js +1 -0
  4. package/assets/esri/core/workers/chunks/{f469224c6e4804fd835a.js → 140efe4735605258ecc9.js} +1 -1
  5. package/assets/esri/core/workers/chunks/173c5b8fa1ac7aa6e072.js +1 -0
  6. package/assets/esri/core/workers/chunks/1aa6719be3afbdc7c880.js +1 -0
  7. package/assets/esri/core/workers/chunks/{8552fdb3230f4dd082c6.js → 20a96c17d1a117dfdf77.js} +1 -1
  8. package/assets/esri/core/workers/chunks/28e04ef3575f164f611a.js +1 -0
  9. package/assets/esri/core/workers/chunks/{2173012af606ac4cdf87.js → 2a695b50a384c45ace9a.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{cf635f7ca998dd33d947.js → 439ce953a25b2776cb7f.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{ecdbbfebca1fcef567bb.js → 4e267a813e8b10d10b3b.js} +9 -9
  12. package/assets/esri/core/workers/chunks/7099ff8dc699fedea931.js +1 -0
  13. package/assets/esri/core/workers/chunks/{e89698fc404379627349.js → 949dc266ac6f3505d357.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{0aba41e0ee0a591b254b.js → 971b16677b66c16fb6b9.js} +1 -1
  15. package/assets/esri/core/workers/chunks/a809042fdce7ced2a415.js +1 -0
  16. package/assets/esri/core/workers/chunks/{16d82cbec34bc434efcd.js → a82d7e2eecfe654a65de.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{27e089acb1cc76758b0a.js → ac30cf2f9a94597f7665.js} +8 -8
  18. package/assets/esri/core/workers/chunks/{ec4428250dbd807df0bd.js → c50c2f014e8567870686.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{ce3a1ac43e8579db65cd.js → c854c3bb4440fd942c12.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{9cbed3b43d7aadc7e627.js → ca88859fc69fcb4568c0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/e7209654ecdfde926272.js +1 -0
  22. package/assets/esri/core/workers/chunks/e82b1f91465d569012c4.js +1 -0
  23. package/assets/esri/core/workers/chunks/e9311386f58f3cb95c22.js +1 -0
  24. package/assets/esri/core/workers/chunks/{45485d8f0b0e0e0a6365.js → efec0f496491a0647051.js} +1 -1
  25. package/chunks/RealisticTree.glsl.js +6 -6
  26. package/colorUtils.js +1 -1
  27. package/config.js +1 -1
  28. package/core/Evented.js +1 -1
  29. package/interfaces.d.ts +2 -2
  30. package/kernel.js +1 -1
  31. package/layers/CatalogLayer.js +1 -1
  32. package/layers/FeatureLayer.js +1 -1
  33. package/layers/GeoJSONLayer.js +1 -1
  34. package/layers/GraphicsLayer.js +1 -1
  35. package/layers/OGCFeatureLayer.js +1 -1
  36. package/layers/SceneLayer.js +1 -1
  37. package/layers/SubtypeGroupLayer.js +1 -1
  38. package/layers/graphics/data/FeatureStore.js +1 -1
  39. package/layers/graphics/dehydratedPoint.js +1 -1
  40. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  41. package/layers/mixins/SublayersOwner.js +1 -1
  42. package/layers/support/LayerContingentValuesCache.js +1 -1
  43. package/networks/UtilityNetwork.js +1 -1
  44. package/package.json +1 -1
  45. package/portal/support/layersLoader.js +1 -1
  46. package/rest/networks/support/CircuitTraceResult.js +1 -1
  47. package/support/revision.js +1 -1
  48. package/views/2d/engine/ManagedCanvas.js +1 -1
  49. package/views/2d/engine/imagery/RasterTileContainer.js +1 -1
  50. package/views/2d/engine/webgl/Profiler.js +1 -1
  51. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  52. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ReprojectTechnique.js +1 -1
  53. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
  54. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/math.js +1 -1
  55. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  56. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  57. package/views/2d/layers/features/processor/AAggregateStrategy.js +1 -1
  58. package/views/2d/layers/features/sources/strategies/StreamLoadStrategy.js +1 -1
  59. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  60. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  61. package/views/2d/support/hitTestUtils.js +1 -1
  62. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  63. package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementController.js +1 -1
  64. package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementVisualization.js +5 -0
  65. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementConfiguration.js +5 -0
  66. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  67. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  68. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  69. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  70. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  71. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  72. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  73. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  74. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  75. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  76. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  77. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  78. package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
  79. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  80. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  81. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  82. package/views/3d/layers/graphics/pipeline/featureSet/TiledFeatureStore.js +1 -1
  83. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  84. package/views/3d/layers/i3s/I3SQueryFeatureStore.js +1 -1
  85. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  86. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  87. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  88. package/views/3d/state/ViewState.js +1 -1
  89. package/views/3d/support/CombinedElevationProvider.js +1 -1
  90. package/views/3d/support/pointsOfInterest/ContentGeometryUpdates.js +1 -1
  91. package/views/3d/support/pointsOfInterest/SurfaceGeometryUpdates.js +1 -1
  92. package/views/3d/terrain/OverlayRenderer.js +1 -1
  93. package/views/3d/terrain/TerrainSurface.js +1 -1
  94. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  95. package/views/3d/webgl-engine/lib/ChangeSet.js +1 -1
  96. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  97. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  98. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  99. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  100. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  101. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  102. package/views/3d/webgl-engine/lib/WebGLLayer.js +1 -1
  103. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  104. package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
  105. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  106. package/views/DOMContainer.js +1 -1
  107. package/views/Viewport2DMixin.js +1 -1
  108. package/views/draw/DrawManipulator.js +1 -1
  109. package/views/draw/DrawOperation.js +1 -1
  110. package/views/interactive/snapping/SnappingManager.js +1 -1
  111. package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
  112. package/views/layers/FeatureLayerView.js +1 -1
  113. package/views/layers/support/editableLayerViews.js +1 -1
  114. package/views/support/Scheduler.js +1 -1
  115. package/widgets/Editor/EditorViewModel.js +1 -1
  116. package/widgets/Editor/workflowUtils.js +1 -1
  117. package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
  118. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  119. package/widgets/Search/SearchViewModel.js +1 -1
  120. package/widgets/support/GeolocationPositioning.js +1 -1
  121. package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
  122. package/assets/esri/core/workers/chunks/230e7b817ae16505ccf0.js +0 -1
  123. package/assets/esri/core/workers/chunks/450a7ebe2535a55c5193.js +0 -1
  124. package/assets/esri/core/workers/chunks/4599f5cebbafddb6720e.js +0 -1
  125. package/assets/esri/core/workers/chunks/676fec273f2f660a614d.js +0 -1
  126. package/assets/esri/core/workers/chunks/6aced8e446beceefaf2c.js +0 -1
  127. package/assets/esri/core/workers/chunks/9f459805a6698708830a.js +0 -1
  128. package/assets/esri/core/workers/chunks/a4104b21f2b282dfb14f.js +0 -1
  129. package/assets/esri/core/workers/chunks/cab3199d37411c8ed074.js +0 -1
  130. package/assets/esri/core/workers/chunks/fbfe2195ba87d18bc37a.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3938],{6518:(t,e,n)=>{n.d(e,{F:()=>a});var i=n(44208),s=n(75503),r=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.wq(9,(0,i.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach((n,i)=>{t[e++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(t=>this._idByBounds.has(t))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.Ie)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,n)}(this._index,t,t=>e(this._idByBounds.get(t)))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},9762:(t,e,n)=>{n.r(e),n.d(e,{projectBuffer:()=>s});var i=n(37539);function s(t,e,n,s,r,o,a=Math.floor(t.length/3)){const l=(0,i.jd)(e,r);if(null==l)return!1;if(l===i.pO){if(t===s&&n===o)return!0;const e=n+3*a;for(let i=n,r=o;i<e;i++,r++)s[r]=t[i];return!0}const u=n+3*a;for(let e=n,i=o;e<u;e+=3,i+=3)l(t,e,s,i);return!0}},36708:(t,e,n)=>{n.d(e,{C_:()=>d,OH:()=>_,Vh:()=>p,on:()=>c,pc:()=>g,wB:()=>l,z7:()=>u});var i=n(37955),s=n(36563),r=n(97768),o=n(74887),a=n(14012);function l(t,e,n={}){return h(t,e,n,f)}function u(t,e,n={}){return h(t,e,n,m)}function h(t,e,n={},i){let s=null;const o=n.once?(t,n)=>{i(t)&&((0,r.xt)(s),e(t,n))}:(t,n)=>{i(t)&&e(t,n)};if(s=(0,a.Cn)(t,o,n.sync,n.equals),n.initial){const e=t();o(e,e)}return s}function c(t,e,n,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(t){o.once&&o.once&&(0,r.xt)(h),n(t)}const f=l(t,(t,n)=>{c(),(0,i.wb)(t)&&(a=t,u=(0,i.on)(t,e,d),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return h=(0,s.hA)(()=>{f.remove(),c()}),h}function d(t,e){return function(t,e,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((i,r)=>{a=(0,s.vE)([(0,o.u7)(n,()=>{l(),r((0,o.NK)())}),h(t,t=>{l(),i(t)},{sync:!1,once:!0},e??f)])})}(t,m,e)}function f(t){return!0}function m(t){return!!t}n(80559);const _={sync:!0},p={initial:!0},g={sync:!0,initial:!0}},37539:(t,e,n)=>{n.d(e,{pO:()=>_,jd:()=>d,Tp:()=>f,w5:()=>c});var i=n(34727),s=n(83047),r=n(73941),o=n(79258);Math.PI;const a=o.$O.radius,l=o.$O.eccentricitySquared,u={a1:a*l,a2:a*l*a*l,a3:a*l*l/2,a4:a*l*a*l*2.5,a5:a*l+a*l*l/2,a6:1-l};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var h=n(21325);const c={2:{5:_,7:null,9:null,10:_,1:v,6:null,8:null,0:null,3:g,11:y,2:_,4:S},5:{5:_,7:null,9:null,10:_,1:v,6:null,8:null,0:null,3:g,11:y,2:_,4:S},7:{5:null,7:_,9:null,10:_,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:_,10:_,1:null,6:null,8:w,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:function(t,e,n,i){const s=t[e]/E,r=X-2*Math.atan(Math.exp(-t[e+1]/E)),o=E+t[e+2],a=Math.cos(r)*o;n[i]=Math.cos(s)*a,n[i+1]=Math.sin(s)*a,n[i+2]=Math.sin(r)*o},6:null,8:null,0:null,3:_,11:function(t,e,n,i){p(t,e,n,i),y(n,i,n,i)},2:p,4:function(t,e,n,i){p(t,e,n,i),S(n,i,n,i)}},4:{5:j,7:null,9:null,10:j,1:function(t,e,n,i){j(t,e,n,i),v(n,i,n,i)},6:null,8:null,0:null,3:function(t,e,n,i){j(t,e,n,i),g(n,i,n,i)},11:function(t,e,n,i){j(t,e,n,i),y(n,i,n,i)},2:j,4:_},1:{5:R,7:null,9:null,10:R,1:_,6:null,8:null,0:null,3:function(t,e,n,i){R(t,e,n,i),g(n,i,n,i)},11:function(t,e,n,i){R(t,e,n,i),y(n,i,n,i)},2:R,4:function(t,e,n,i){R(t,e,n,i),S(n,i,n,i)}},6:{5:null,7:B,9:null,10:B,1:null,6:_,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:b,10:b,1:null,6:null,8:_,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:_,3:null,11:null,2:null,4:null},10:{5:_,7:_,9:_,10:_,1:v,6:I,8:w,0:null,3:g,11:y,2:_,4:S},11:{5:x,7:null,9:null,10:x,1:function(t,e,n,i){x(t,e,n,i),v(n,i,n,i)},6:null,8:null,0:null,3:function(t,e,n,i){x(t,e,n,i),g(n,i,n,i)},11:_,2:x,4:function(t,e,n,i){x(t,e,n,i),S(n,i,n,i)}}};function d(t,e){return f(t,e)?.projector}function f(t,e){if(null==t||null==e)return null;if(k.source.spatialReference===t&&k.dest.spatialReference===e)return k;const n=m(t,k.source),i=m(e,k.dest);return 0===n&&0===i?(0,h.aI)(t,e)?k.projector=_:k.projector=null:k.projector=c[n][i],k}function m(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,s.GA)(t,1)),(0,r.jA)(t)?e.spatialReferenceId=1:(0,h.oT)(t)?e.spatialReferenceId=2:(0,h.K8)(t)?e.spatialReferenceId=3:(0,h.r1)(t)?e.spatialReferenceId=11:t.wkt===r.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===r.FY.wkt?e.spatialReferenceId=6:t.wkt===r.LJ.wkt?e.spatialReferenceId=8:(0,h.q8)(t)?e.spatialReferenceId=7:(0,h.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function _(t,e,n,i){t!==n&&(n[i++]=t[e++],n[i++]=t[e++],n[i]=t[e])}function p(t,e,n,i){n[i]=Y*(t[e]/E),n[i+1]=Y*(X-2*Math.atan(Math.exp(-t[e+1]/E))),n[i+2]=t[e+2]}function g(t,e,n,s){!function(t,e,n,s,r){const o=.4999999*Math.PI,a=(0,i.qE)(A*t[e+1],-o,o),l=Math.sin(a);n[s++]=A*t[e]*r.radius,n[s++]=r.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[s]=t[e+2]}(t,e,n,s,o.$O)}function y(t,e,n,i){n[i]=t[e]*P,n[i+1]=t[e+1]*P,n[i+2]=t[e+2]}function x(t,e,n,i){n[i]=t[e]*L,n[i+1]=t[e+1]*L,n[i+2]=t[e+2]}function M(t,e,n,i,s){const r=s+t[e+2],o=A*t[e+1],a=A*t[e],l=Math.cos(o)*r;n[i]=Math.cos(a)*l,n[i+1]=Math.sin(a)*l,n[i+2]=Math.sin(o)*r}function w(t,e,n,i){M(t,e,n,i,o.Sw.radius)}function I(t,e,n,i){M(t,e,n,i,o.sH.radius)}function v(t,e,n,i){M(t,e,n,i,o.$O.radius)}function z(t,e,n,s,r){const o=t[e],a=t[e+1],l=t[e+2],u=Math.sqrt(o*o+a*a+l*l),h=(0,i.YN)(l/(0===u?1:u)),c=Math.atan2(a,o);n[s++]=Y*c,n[s++]=Y*h,n[s]=u-r}function b(t,e,n,i){z(t,e,n,i,o.Sw.radius)}function B(t,e,n,i){z(t,e,n,i,o.sH.radius)}function R(t,e,n,i){z(t,e,n,i,o.$O.radius)}function S(t,e,n,i){!function(t,e,n,i,s){const r=A*t[e],o=A*t[e+1],a=t[e+2],l=Math.sin(o),u=Math.cos(o),h=s.radius/Math.sqrt(1-s.eccentricitySquared*l*l);n[i++]=(h+a)*u*Math.cos(r),n[i++]=(h+a)*u*Math.sin(r),n[i++]=(h*(1-s.eccentricitySquared)+a)*l}(t,e,n,i,o.$O)}function j(t,e,n,i){const s=u,r=t[e],a=t[e+1],l=t[e+2];let h,c,d,f,m,_,p,g,y,x,M,w,I,v,z,b,B,R,S,j,k;h=Math.abs(l),c=r*r+a*a,d=Math.sqrt(c),f=c+l*l,m=Math.sqrt(f),j=Math.atan2(a,r),_=l*l/f,p=c/f,v=s.a2/m,z=s.a3-s.a4/m,p>.3?(g=h/m*(1+p*(s.a1+v+_*z)/m),S=Math.asin(g),x=g*g,y=Math.sqrt(1-x)):(y=d/m*(1-_*(s.a5-v-p*z)/m),S=Math.acos(y),x=1-y*y,g=Math.sqrt(x)),M=1-o.$O.eccentricitySquared*x,w=o.$O.radius/Math.sqrt(M),I=s.a6*w,v=d-w*y,z=h-I*g,B=y*v+g*z,b=y*z-g*v,R=b/(I/M+B),S+=R,k=B+b*R/2,l<0&&(S=-S),n[i++]=Y*j,n[i++]=Y*S,n[i]=k}const k={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:_},A=(0,i.kU)(1),Y=(0,i.KJ)(1),X=.5*Math.PI,E=o.$O.radius,P=E*Math.PI/180,L=180/(E*Math.PI)},37730:(t,e,n)=>{n.d(e,{T:()=>s});var i=n(43334);const s={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new i.Om(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)}},58376:(t,e,n)=>{n.d(e,{J:()=>m});var i=n(4718),s=n(74887),r=n(65864),o=n(17136),a=n(21325),l=n(31464),u=n(95422),h=n(8384),c=n(58727),d=n(62798),f=n(62660);async function m(t,e,n){const m=(0,s.Mq)(n),{point:_,distance:p,returnEdge:g,vertexMode:y}=e;if(!g&&"none"===y)return{candidates:[]};let x=(0,i.o8)(e.query);x=await t.schedule(()=>(0,c.T2)(x,t.definitionExpression,t.spatialReference),m),x=await t.reschedule(()=>(0,d.B4)(x,{availableFields:t.availableFields,fieldsIndex:t.fieldsIndex,geometryType:t.geometryType,spatialReference:t.spatialReference}),m);const M=!(0,a.aI)(_.spatialReference,t.spatialReference);M&&await(0,l.Nk)(_.spatialReference,t.spatialReference);const w="number"==typeof p?p:p.x,I="number"==typeof p?p:p.y,v={xmin:_.x-w,xmax:_.x+w,ymin:_.y-I,ymax:_.y+I,spatialReference:_.spatialReference},z=M?(0,l.Cv)(v,t.spatialReference):v;if(!z)return{candidates:[]};const b=(await(0,o.el)((0,r.rS)(_),null,{signal:m}))[0],B=(await(0,o.el)((0,r.rS)(z),null,{signal:m}))[0];if(null==b||null==B)return{candidates:[]};const R=new h.G(await t.reschedule(()=>t.searchFeatures((0,u.ux)(B.toJSON())),m),x,t);await t.reschedule(()=>t.executeObjectIdsQuery(R),m),await t.reschedule(()=>t.executeTimeQuery(R),m),await t.reschedule(()=>t.executeAttributesQuery(R),m),await t.reschedule(()=>async function(t,e,n){const{query:i}=e,{spatialRel:s}=i;if(!e?.items?.length||!i.geometry||!s)return;const r=await(0,f.xt)(s,i.geometry,t.geometryType,t.hasZ,t.hasM),o=await t.runSpatialFilter(e.items,t=>r(t.geometry),n);e.items=o}(t,R,m),m);const S=b.toJSON(),j=M?(0,l.Cv)(S,t.spatialReference):S,k=M?Math.max(z.xmax-z.xmin,z.ymax-z.ymin)/2:p;return R.createSnappingResponse({...e,point:j,distance:k},x.returnZ,_.spatialReference)}},62815:(t,e,n)=>{n.d(e,{N:()=>o});var i=n(83047),s=n(73941),r=n(21325);function o(t,e,n){if(null==e||null==n||n.vcsWkid||(0,r.aI)(e,n)||(0,s.xP)(e)||(0,s.xP)(n))return null;const o=(0,i.G9)(e)/(0,i.G9)(n);if(1===o)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,o);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}(t,o);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}(t,o);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,o);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,o);default:return null}}},66344:(t,e,n)=>{n.d(e,{q:()=>a});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db=null}register(t){this._users.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._users.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}getSize(t,e){const n=this._db.get(t.id+e);return n?.size??0}put(t,e,n,s,o){e=t.id+e;const a=this._db.get(e);if(a&&(this._size-=a.size,t.size-=a.size,this._db.delete(e),a.entry!==n&&this._notifyRemove(e,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(e,n,s,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return i||console.warn(`Refusing to cache entry with size ${s} for key ${e}`),void this._notifyRemove(e,n,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(e,new r(n,s,l)),this._size+=s,t.size+=s,this._checkSize()}updateSize(t,e,n,i){e=t.id+e;const s=this._db.get(e);if(s&&s.entry===n){for(this._size-=s.size,t.size-=s.size;i>this._maxSize;){const t=this._notifyRemove(e,n,i,1);if(!(null!=t&&t>0))return void this._db.delete(e);i=t}s.size=i,this._size+=i,t.size+=i,this._checkSize()}}pop(t,e){e=t.id+e;const n=this._db.get(e);if(n)return this._size-=n.size,t.size-=n.size,this._db.delete(e),++this._hit,n.entry;++this._miss}get(t,e){e=t.id+e;const n=this._db.get(e);if(void 0!==n)return this._db.delete(e),n.lives=n.lifetime,this._db.set(e,n),++this._hit,n.entry;++this._miss}peek(t,e){const n=this._db.get(t.id+e);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},n=new Array;this._db.forEach((t,i)=>{const s=t.lifetime;n[s]=(n[s]||0)+t.size,this._users.forEach(n=>{const{id:s,name:r}=n;if(i.startsWith(s)){const n=e[r]||0;e[r]=n+t.size}})});const i={};this._users.forEach(t=>{const n=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const s=e[n]||0;e[n]=s,i[n]=Math.round(100*t.hitRate)+"%"}else i[n]="0%"});const s=Object.keys(e);s.sort((t,n)=>e[n]-e[t]),s.forEach(n=>t[n]=Math.round(e[n]/2**20)+"MB / "+i[n]);for(let e=n.length-1;e>=0;--e){const i=n[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,n)=>{n.startsWith(e)&&(this._size-=t.size,this._db.delete(n),this._notifyRemove(n,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._users.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,n]of this._db)e.startsWith(t.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,n,i){const s=this._users.get(t.split(o)[0])?.removeFunc,r=s?.(e,i,n);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._checkSizeLimits(this.maxSize)}setMaxSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const n=e??this;if(n.size<=t)return;const i=e?.id;let s=!0;for(;s;){s=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!i||r.startsWith(i))){const i=e??this._users.get(r.split(o)[0]);if(this._purgeItem(r,a,i),n.size<=.9*t)return;s||=this._db.has(r)}}for(const[s,r]of this._db)if(!i||s.startsWith(i)){const i=e??this._users.get(s.split(o)[0]);if(this._purgeItem(s,r,i),n.size<=.9*t)return}}_purgeItem(t,e,n){if(this._db.delete(t),e.lives<=1){this._size-=e.size,n&&(n.size-=e.size);const i=this._notifyRemove(t,e.entry,e.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}class r{constructor(t,e,n){this.entry=t,this.size=e,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(t,e){this.removeFunc=e,this._storage=new s,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(t,e,n=1){this._storage.put(this,t,e,n,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69540:(t,e,n)=>{n.d(e,{A:()=>c});var i=n(31635),s=n(69622),r=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(40608);const u=t=>{const e=t;let n=class extends e{clone(t){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,i=e.store,s={},l=new Map;for(const e in n){const o=n[e],a=i?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const h=this[e];let c=null;c="function"==typeof u?u(h,t):"reference"===u?h:(0,r.TU)(h,t),null!=h&&null==c||(0===a?l.set(e,c):s[e]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(l.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,n]of l)t.set(e,n,0)}return u}};return n=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],n),n};let h=class extends(u(s.A)){};h=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],h),(h||(h={})).ClonableMixin=u;const c=h},75503:(t,e,n)=>{n.d(e,{EC:()=>b,wq:()=>a});var i=n(4576),s=n(21818),r=(n(44208),n(15142)),o=n(11006);class a{constructor(t=9,e){this._compareMinX=d,this._compareMinY=f,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),w.prune(),I.prune(),v.prune(),z.prune()}all(t){l(this._data,t)}search(t,e){let n=this._data;const i=this._toBBox;if(x(t,n))for(w.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;x(t,o)&&(n.leaf?e(r):y(t,o)?l(r,e):w.push(r))}n=w.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!x(t,e))return!1;for(w.clear();e;){for(let i=0,s=e.children.length;i<s;i++){const s=e.children[i],r=e.leaf?n(s):s;if(x(t,r)){if(e.leaf||y(t,r))return!0;w.push(s)}}e=w.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new R([]),this}remove(t){if(!t)return this;let e,n=this._data,r=null,o=0,a=!1;const l=this._toBBox(t);for(v.clear(),z.clear();n||v.length>0;){if(n||(n=v.pop(),r=v.data[v.length-1],o=z.pop()??0,a=!0),n.leaf&&(e=(0,i.qh)(n.children,(0,s.zI)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),v.push(n),this._condense(v),this;a||n.leaf||!y(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(v.push(n),z.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,i){const s=n-e+1;let r=this._maxEntries;if(s<=r){const i=new R(t.slice(e,n+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new S([]);o.height=i;const a=Math.ceil(s/r),l=a*Math.ceil(Math.sqrt(r));M(t,e,n,l,this._compareMinX);for(let s=e;s<=n;s+=l){const e=Math.min(s+l-1,n);M(t,s,e,a,this._compareMinY);for(let n=s;n<=e;n+=a){const s=Math.min(n+a-1,e);o.children.push(this._build(t,n,s,i-1))}}return u(o,this._toBBox),o}_insert(t,e,n){const i=this._toBBox,s=n?t:i(t);v.clear();const r=function(t,e,n,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],a=m(o),l=p(t,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}e=n||e.children[0]}return e}(s,this._data,e,v);for(r.children.push(t),c(r,s);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;!function(t,e,n){for(let i=n;i>=0;i--)c(e.data[i],t)}(s,v,e)}_split(t,e){const n=t.data[e],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return;const o=n.children.splice(r,n.children.length-r),a=n.leaf?new R(o):new S(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(n,a)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let i,s,r;i=s=1/0;for(let o=e;o<=n-e;o++){const e=h(t,0,o,this._toBBox),a=h(t,o,n,this._toBBox),l=g(e,a),u=m(e)+m(a);l<i?(i=l,r=o,s=u<s?u:s):l===i&&u<s&&(s=u,r=o)}return r}_chooseSplitAxis(t,e,n){const i=t.leaf?this._compareMinX:d,s=t.leaf?this._compareMinY:f;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,s)&&t.children.sort(i)}_allDistMargin(t,e,n,i){t.children.sort(i);const s=this._toBBox,r=h(t,0,e,s),o=h(t,n-e,n,s);let a=_(r)+_(o);for(let i=e;i<n-e;i++){const e=t.children[i];c(r,t.leaf?s(e):e),a+=_(r)}for(let i=n-e-1;i>=e;i--){const e=t.children[i];c(o,t.leaf?s(e):e),a+=_(o)}return a}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const s=t.data[e-1],r=s.children;r.splice((0,i.qh)(r,n,r.length,s.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.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]+"};")}}function l(t,e){let n=t;for(I.clear();n;){if(!0===n.leaf)for(const t of n.children)e((0,s.zI)(t));else I.pushArray(n.children);n=I.pop()??null}}function u(t,e){h(t,0,t.children.length,e,t)}function h(t,e,n,i,s){s||(s=new R([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=e;o<n;o++)r=t.children[o],c(s,t.leaf?i(r):r);return s}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function d(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function _(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){const n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function x(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,n,i,s){const r=[e,n];for(;r.length;){const e=r.pop(),n=r.pop();if(e-n<=i)continue;const a=n+Math.ceil((e-n)/i/2)*i;(0,o.q)(t,a,n,e,s),r.push(n,a,a,e)}}const w=new r.A,I=new r.A,v=new r.A,z=new r.A({deallocator:void 0});class b{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends b{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class R extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},83221:(t,e,n)=>{n.d(e,{A:()=>m});var i=n(4576),s=n(49186),r=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),h=n(6518),c=n(51441),d=n(37730);const f=(0,a.vt)();class m{constructor(t){this.geometryInfo=t,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.A,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach(e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,n,i,s]=this.fullBounds;return{xmin:e,ymin:n,xmax:i,ymax:s,spatialReference:(0,c.ag)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}upsertMany(t){const e=t.map(t=>this._upsert(t));return this._emitChanged(),e.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const n of t){const t=this._boundsStore.get(n.objectId);t&&e((0,a.Jt)(f,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach(e=>t(e))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,t=>{e(this._featuresById.get(t))})}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:t}));const n=this._featuresById.get(e);let i;if(n?(t.displayId=n.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),!t.geometry?.coords?.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);i=(0,u.jQ)(null!=i?i:(0,l.vt)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0}_upsert(t){const e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;const n=this._featuresById.get(e);if(!n)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:i,attributes:r}=t;for(const t in r)n.attributes[t]=r[t];return i&&(n.geometry=i,this._boundsStore.set(e,(0,u.jQ)((0,l.vt)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},98988:(t,e,n)=>{n.r(e),n.d(e,{canProjectWithoutEngine:()=>N,getTransformation:()=>F,getTransformations:()=>q,initializeProjection:()=>U,isEqualBaseGCS:()=>K,isLoaded:()=>A,isLoadedOrLoad:()=>Y,isLoadedOrLoadFor:()=>X,load:()=>P,project:()=>L,projectExtent:()=>rt,projectMany:()=>O,projectMultipoint:()=>V,projectOrLoad:()=>C,projectOrLoadMany:()=>T,projectPoint:()=>Q,projectPolygon:()=>it,projectPolyline:()=>et,projectWithZConversion:()=>$,projectWithoutEngine:()=>J,requiresLoad:()=>E,test:()=>H,tryProjectWithZConversion:()=>W,unload:()=>Z});var i=n(49186),s=n(74887),r=n(62788),o=n(95488),a=n(51850),l=n(21276),u=n(73941),h=n(5443),c=n(48526),d=n(83290),f=n(86738),m=n(39829),_=n(82799),p=n(16930),g=n(9762),y=n(37539);function x(t,e,n,i,s,r){return M[0]=t,M[1]=e,M[2]=n,(0,g.projectBuffer)(M,i,0,s,r,0)}const M=(0,a.vt)();let w=0;class I{static fromGE(t){const e=new I;return e._wkt=t.wkt,e._wkid=t.wkid,e._isInverse=t.isInverse,e}constructor(t){this.uid=w++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=w++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=w++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=w++}getInverse(){const t=new I;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class v{static cacheKey(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}static fromGE(t){const e=new v;let n="";for(const i of t.steps){const t=I.fromGE(i);e.steps.push(t),n+=t.uid.toString()+","}return e._cachedProjection={},e._gtlistentry=null,e._chain=n,e}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const e of t.steps)e instanceof I?this.steps.push(e):this.steps.push(new I({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))}getInverse(){const t=new v;t.steps=[];for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}getGTListEntry(){let t="";for(const e of this.steps)t+=e.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,e,n){this._cachedProjection[v.cacheKey(t,e)]=n}getCachedGeTransformation(t,e){let n="";for(const t of this.steps)n+=t.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const i=this._cachedProjection[v.cacheKey(t,e)];return void 0===i?null:i}}var z=n(21325),b=n(62815);let B=null,R=null,S=null,j={};const k=new o.I;function A(){return!!B&&(0,d.i)()}function Y(){return!!A()||((0,r.gc)(k),P(),!1)}function X(t,e){return!t||!e||N(t,e)||Y()}function E(t,e){return!N(t,e)&&!A()}function P(t){return null==S&&(S=Promise.all([(0,d.l)(),n.e(9930).then(n.bind(n,49930)).then(t=>t.g),n.e(2731).then(n.bind(n,12731))])),S.then(([,e,{hydratedAdapter:n}])=>{(0,s.Te)(t),R=n,B=e.default,B._enableProjection(d.p),k.notify()})}function L(t,e,n=null,i=null){return Array.isArray(t)?0===t.length?[]:((0,l.H)(t),O(R,t,t[0].spatialReference,e,n,i)):((0,l.f)(t),O(R,[t],t.spatialReference,e,n,i)[0])}function O(t,e,n,i,s=null,r=null){if(null==n||null==i)return e;if(N(n,i,s))return e.map(t=>J(t,n,i));if(null==s&&(0,u.jA)(n))return e.map(t=>J(t,n,p.A.WGS84)).map(t=>W(t,i));if(null==s&&(0,u.jA)(i))return e.map(t=>W(t,p.A.WGS84)).map(t=>J(t,p.A.WGS84,i));if(null==s){const t=v.cacheKey(n,i);void 0!==j[t]?s=j[t]:(null==(s=F(n,i,void 0))&&(s=new v),j[t]=s)}if(null==B||null==t)throw new G;return null!=r?B._project(t,e,n,i,s,r):B._project(t,e,n,i,s)}function C(t,e){const n=T([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function T(t,e){if(!A())for(const n of t)if(null!=n&&!(0,z.aI)(n.spatialReference,e)&&(0,z.fn)(n.spatialReference)&&(0,z.fn)(e)&&!N(n.spatialReference,e))return(0,r.gc)(k),{pending:P(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,z.aI)(t.spatialReference,e)?t:(0,z.fn)(t.spatialReference)&&(0,z.fn)(e)?W(t,e):null)}}function F(t,e,n=null){if(null==t||null==e)return null;if(null==B||null==R)throw new G;const i=B._getTransformation(R,t,e,n,n?.spatialReference);return null!==i?v.fromGE(i):null}function q(t,e,n=null){if(null==B||null==R)throw new G;const i=B._getTransformationBySuitability(R,t,e,n,n?.spatialReference);if(null!==i){const t=[];for(const e of i)t.push(v.fromGE(e));return t}return[]}class G extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function Z(){B=null,R=null,S=null,j={}}const H={get loadPromise(){return S}};function W(t,e){try{const n=L(t,e);if(null==n)return null;"xmin"in t&&"xmin"in n&&(n.zmin=t.zmin,n.zmax=t.zmax);const i=(0,b.N)(n.type,t.spatialReference,e);return null!=i&&i(n),n}catch(t){if(!(t instanceof G))throw t;return null}}async function $(t,e,n){const i=t.spatialReference;return null!=i&&null!=e&&await U(i,e,null,n),W(t,e)}function N(t,e,n){return!n&&(!!(0,z.aI)(t,e)||(0,z.fn)(t)&&(0,z.fn)(e)&&!!(0,y.jd)(t,e))}function K(t,e){if((0,z.aI)(t,e))return!0;if(!(0,z.fn)(t)||!(0,z.fn)(e))return!1;const n=(0,z.oT)(t)||(0,z.K8)(t)||(0,z.x1)(t),i=(0,z.oT)(e)||(0,z.K8)(e)||(0,z.x1)(e);return n&&i}async function U(t,e,n,i){if(A())return(0,s.NO)(i);if(Array.isArray(t)){for(const{source:e,dest:n,geographicTransformation:s}of t)if(e&&n&&!N(e,n,s))return P(i)}else if(t&&e&&!N(t,e,n))return P(i);return(0,s.NO)(i)}function J(t,e,n){return t?"x"in t?D(t,e,new f.A,n,0):"xmin"in t?ot(t,e,new h.A,n,0):"rings"in t?st(t,e,new m.A,n,0):"paths"in t?nt(t,e,new _.A,n,0):"points"in t?tt(t,e,new c.A,n,0):null:null}function Q(t,e,n=e.spatialReference,i=0){return null!=n&&null!=t.spatialReference&&null!=D(t,t.spatialReference,e,n,i)}function D(t,e,n,i,s){lt[0]=t.x,lt[1]=t.y;const r=t.z;return lt[2]=void 0!==r?r:s,(0,g.projectBuffer)(lt,e,0,lt,i,0)?(n.x=lt[0],n.y=lt[1],n.spatialReference=i,void 0!==r||(0,u.xP)(i)?(n.z=lt[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function V(t,e,n=e.spatialReference,i=0){return null!=t.spatialReference&&null!=n&&null!=tt(t,t.spatialReference,e,n,i)}function tt(t,e,n,i,s){const{points:r,hasZ:o,hasM:a}=t,l=[],h=r.length,c=[];for(const t of r)c.push(t[0],t[1],o?t[2]:s);if(!(0,g.projectBuffer)(c,e,0,c,i,0,h))return null;const d=o||(0,u.xP)(i);for(let t=0;t<h;++t){const e=3*t,n=c[e],i=c[e+1];d&&a?l.push([n,i,c[e+2],r[t][3]]):d?l.push([n,i,c[e+2]]):a?l.push([n,i,r[t][2]]):l.push([n,i])}return n.points=l,n.spatialReference=i,n.hasZ=o,n.hasM=a,n}function et(t,e,n=e.spatialReference,i=0){return null!=t.spatialReference&&null!=n&&null!=nt(t,t.spatialReference,e,n,i)}function nt(t,e,n,i,s){const{paths:r,hasZ:o,hasM:a}=t,l=[];if(!at(r,o??!1,a??!1,e,l,i,s))return null;const h=o||(0,u.xP)(i);return n.paths=l,n.spatialReference=i,n.hasZ=h,n.hasM=a,n}function it(t,e,n=e.spatialReference,i=0){return null!=t.spatialReference&&null!=n&&null!=st(t,t.spatialReference,e,n,i)}function st(t,e,n,i,s){const{rings:r,hasZ:o,hasM:a}=t,l=[];if(!at(r,o??!1,a??!1,e,l,i,s))return null;const h=o||(0,u.xP)(i);return n.rings=l,n.spatialReference=i,n.hasZ=h,n.hasM=a,n}function rt(t,e,n=e.spatialReference,i=0){return null!=t.spatialReference&&null!=n&&null!=ot(t,t.spatialReference,e,n,i)}function ot(t,e,n,i,s){const{xmin:r,ymin:o,xmax:a,ymax:l,hasZ:h,hasM:c}=t;if(!x(r,o,h?t.zmin:s,e,lt,i))return null;const d=h||(0,u.xP)(i);return n.xmin=lt[0],n.ymin=lt[1],d&&(n.zmin=lt[2]),x(a,l,h?t.zmax:s,e,lt,i)?(n.xmax=lt[0],n.ymax=lt[1],d&&(n.zmax=lt[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=i,n):null}function at(t,e,n,i,s,r,o=0){const a=new Array;for(const n of t)for(const t of n)a.push(t[0],t[1],e?t[2]:o);if(!(0,g.projectBuffer)(a,i,0,a,r,0))return!1;let l=0;s.length=0;const h=e||(0,u.xP)(r);for(const e of t){const t=new Array;for(const i of e)h&&n?t.push([a[l++],a[l++],a[l++],i[3]]):h?t.push([a[l++],a[l++],a[l++]]):n?(t.push([a[l++],a[l++],i[2]]),l++):(t.push([a[l++],a[l++]]),l++);s.push(t)}return!0}const lt=(0,a.vt)()}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3938],{6518:(t,e,n)=>{n.d(e,{F:()=>a});var i=n(44208),s=n(75503),r=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.wq(9,(0,i.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach((n,i)=>{t[e++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(t=>this._idByBounds.has(t))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.Ie)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,n)}(this._index,t,t=>e(this._idByBounds.get(t)))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},9762:(t,e,n)=>{n.r(e),n.d(e,{projectBuffer:()=>s});var i=n(37539);function s(t,e,n,s,r,o,a=Math.floor(t.length/3)){const l=(0,i.jd)(e,r);if(null==l)return!1;if(l===i.pO){if(t===s&&n===o)return!0;const e=n+3*a;for(let i=n,r=o;i<e;i++,r++)s[r]=t[i];return!0}const u=n+3*a;for(let e=n,i=o;e<u;e+=3,i+=3)l(t,e,s,i);return!0}},36708:(t,e,n)=>{n.d(e,{C_:()=>d,OH:()=>_,Vh:()=>p,on:()=>c,pc:()=>g,wB:()=>l,z7:()=>u});var i=n(37955),s=n(36563),r=n(97768),o=n(74887),a=n(14012);function l(t,e,n={}){return h(t,e,n,f)}function u(t,e,n={}){return h(t,e,n,m)}function h(t,e,n={},i){let s=null;const o=n.once?(t,n)=>{i(t)&&((0,r.xt)(s),e(t,n))}:(t,n)=>{i(t)&&e(t,n)};if(s=(0,a.Cn)(t,o,n.sync,n.equals),n.initial){const e=t();o(e,e)}return s}function c(t,e,n,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(t){o.once&&o.once&&(0,r.xt)(h),n(t)}const f=l(t,(t,n)=>{c(),(0,i.wb)(t)&&(a=t,u=(0,i.on)(t,e,d),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return h=(0,s.hA)(()=>{f.remove(),c()}),h}function d(t,e){return function(t,e,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((i,r)=>{a=(0,s.vE)([(0,o.u7)(n,()=>{l(),r((0,o.NK)())}),h(t,t=>{l(),i(t)},{sync:!1,once:!0},e??f)])})}(t,m,e)}function f(t){return!0}function m(t){return!!t}n(80559);const _={sync:!0},p={initial:!0},g={sync:!0,initial:!0}},37539:(t,e,n)=>{n.d(e,{pO:()=>_,jd:()=>d,Tp:()=>f,w5:()=>c});var i=n(34727),s=n(83047),r=n(73941),o=n(79258);Math.PI;const a=o.$O.radius,l=o.$O.eccentricitySquared,u={a1:a*l,a2:a*l*a*l,a3:a*l*l/2,a4:a*l*a*l*2.5,a5:a*l+a*l*l/2,a6:1-l};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var h=n(21325);const c={2:{5:_,7:null,9:null,10:_,1:v,6:null,8:null,0:null,3:g,11:y,2:_,4:S},5:{5:_,7:null,9:null,10:_,1:v,6:null,8:null,0:null,3:g,11:y,2:_,4:S},7:{5:null,7:_,9:null,10:_,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:_,10:_,1:null,6:null,8:w,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:function(t,e,n,i){const s=t[e]/X,r=E-2*Math.atan(Math.exp(-t[e+1]/X)),o=X+t[e+2],a=Math.cos(r)*o;n[i]=Math.cos(s)*a,n[i+1]=Math.sin(s)*a,n[i+2]=Math.sin(r)*o},6:null,8:null,0:null,3:_,11:function(t,e,n,i){p(t,e,n,i),y(n,i,n,i)},2:p,4:function(t,e,n,i){p(t,e,n,i),S(n,i,n,i)}},4:{5:j,7:null,9:null,10:j,1:function(t,e,n,i){j(t,e,n,i),v(n,i,n,i)},6:null,8:null,0:null,3:function(t,e,n,i){j(t,e,n,i),g(n,i,n,i)},11:function(t,e,n,i){j(t,e,n,i),y(n,i,n,i)},2:j,4:_},1:{5:R,7:null,9:null,10:R,1:_,6:null,8:null,0:null,3:function(t,e,n,i){R(t,e,n,i),g(n,i,n,i)},11:function(t,e,n,i){R(t,e,n,i),y(n,i,n,i)},2:R,4:function(t,e,n,i){R(t,e,n,i),S(n,i,n,i)}},6:{5:null,7:B,9:null,10:B,1:null,6:_,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:b,10:b,1:null,6:null,8:_,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:_,3:null,11:null,2:null,4:null},10:{5:_,7:_,9:_,10:_,1:v,6:I,8:w,0:null,3:g,11:y,2:_,4:S},11:{5:x,7:null,9:null,10:x,1:function(t,e,n,i){x(t,e,n,i),v(n,i,n,i)},6:null,8:null,0:null,3:function(t,e,n,i){x(t,e,n,i),g(n,i,n,i)},11:_,2:x,4:function(t,e,n,i){x(t,e,n,i),S(n,i,n,i)}}};function d(t,e){return f(t,e)?.projector}function f(t,e){if(null==t||null==e)return null;if(k.source.spatialReference===t&&k.dest.spatialReference===e)return k;const n=m(t,k.source),i=m(e,k.dest);return 0===n&&0===i?(0,h.aI)(t,e)?k.projector=_:k.projector=null:k.projector=c[n][i],k}function m(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,s.GA)(t,1)),(0,r.jA)(t)?e.spatialReferenceId=1:(0,h.oT)(t)?e.spatialReferenceId=2:(0,h.K8)(t)?e.spatialReferenceId=3:(0,h.r1)(t)?e.spatialReferenceId=11:t.wkt===r.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===r.FY.wkt?e.spatialReferenceId=6:t.wkt===r.LJ.wkt?e.spatialReferenceId=8:(0,h.q8)(t)?e.spatialReferenceId=7:(0,h.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function _(t,e,n,i){t!==n&&(n[i++]=t[e++],n[i++]=t[e++],n[i]=t[e])}function p(t,e,n,i){n[i]=Y*(t[e]/X),n[i+1]=Y*(E-2*Math.atan(Math.exp(-t[e+1]/X))),n[i+2]=t[e+2]}function g(t,e,n,s){!function(t,e,n,s,r){const o=.4999999*Math.PI,a=(0,i.qE)(A*t[e+1],-o,o),l=Math.sin(a);n[s++]=A*t[e]*r.radius,n[s++]=r.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[s]=t[e+2]}(t,e,n,s,o.$O)}function y(t,e,n,i){n[i]=t[e]*P,n[i+1]=t[e+1]*P,n[i+2]=t[e+2]}function x(t,e,n,i){n[i]=t[e]*L,n[i+1]=t[e+1]*L,n[i+2]=t[e+2]}function M(t,e,n,i,s){const r=s+t[e+2],o=A*t[e+1],a=A*t[e],l=Math.cos(o)*r;n[i]=Math.cos(a)*l,n[i+1]=Math.sin(a)*l,n[i+2]=Math.sin(o)*r}function w(t,e,n,i){M(t,e,n,i,o.Sw.radius)}function I(t,e,n,i){M(t,e,n,i,o.sH.radius)}function v(t,e,n,i){M(t,e,n,i,o.$O.radius)}function z(t,e,n,s,r){const o=t[e],a=t[e+1],l=t[e+2],u=Math.sqrt(o*o+a*a+l*l),h=(0,i.YN)(l/(0===u?1:u)),c=Math.atan2(a,o);n[s++]=Y*c,n[s++]=Y*h,n[s]=u-r}function b(t,e,n,i){z(t,e,n,i,o.Sw.radius)}function B(t,e,n,i){z(t,e,n,i,o.sH.radius)}function R(t,e,n,i){z(t,e,n,i,o.$O.radius)}function S(t,e,n,i){!function(t,e,n,i,s){const r=A*t[e],o=A*t[e+1],a=t[e+2],l=Math.sin(o),u=Math.cos(o),h=s.radius/Math.sqrt(1-s.eccentricitySquared*l*l);n[i++]=(h+a)*u*Math.cos(r),n[i++]=(h+a)*u*Math.sin(r),n[i++]=(h*(1-s.eccentricitySquared)+a)*l}(t,e,n,i,o.$O)}function j(t,e,n,i){const s=u,r=t[e],a=t[e+1],l=t[e+2];let h,c,d,f,m,_,p,g,y,x,M,w,I,v,z,b,B,R,S,j,k;h=Math.abs(l),c=r*r+a*a,d=Math.sqrt(c),f=c+l*l,m=Math.sqrt(f),j=Math.atan2(a,r),_=l*l/f,p=c/f,v=s.a2/m,z=s.a3-s.a4/m,p>.3?(g=h/m*(1+p*(s.a1+v+_*z)/m),S=Math.asin(g),x=g*g,y=Math.sqrt(1-x)):(y=d/m*(1-_*(s.a5-v-p*z)/m),S=Math.acos(y),x=1-y*y,g=Math.sqrt(x)),M=1-o.$O.eccentricitySquared*x,w=o.$O.radius/Math.sqrt(M),I=s.a6*w,v=d-w*y,z=h-I*g,B=y*v+g*z,b=y*z-g*v,R=b/(I/M+B),S+=R,k=B+b*R/2,l<0&&(S=-S),n[i++]=Y*j,n[i++]=Y*S,n[i]=k}const k={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:_},A=(0,i.kU)(1),Y=(0,i.KJ)(1),E=.5*Math.PI,X=o.$O.radius,P=X*Math.PI/180,L=180/(X*Math.PI)},37730:(t,e,n)=>{n.d(e,{T:()=>s});var i=n(43334);const s={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new i.Om(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)}},58376:(t,e,n)=>{n.d(e,{J:()=>m});var i=n(4718),s=n(74887),r=n(65864),o=n(17136),a=n(21325),l=n(31464),u=n(95422),h=n(8384),c=n(58727),d=n(62798),f=n(62660);async function m(t,e,n){const m=(0,s.Mq)(n),{point:_,distance:p,returnEdge:g,vertexMode:y}=e;if(!g&&"none"===y)return{candidates:[]};let x=(0,i.o8)(e.query);x=await t.schedule(()=>(0,c.T2)(x,t.definitionExpression,t.spatialReference),m),x=await t.reschedule(()=>(0,d.B4)(x,{availableFields:t.availableFields,fieldsIndex:t.fieldsIndex,geometryType:t.geometryType,spatialReference:t.spatialReference}),m);const M=!(0,a.aI)(_.spatialReference,t.spatialReference);M&&await(0,l.Nk)(_.spatialReference,t.spatialReference);const w="number"==typeof p?p:p.x,I="number"==typeof p?p:p.y,v={xmin:_.x-w,xmax:_.x+w,ymin:_.y-I,ymax:_.y+I,spatialReference:_.spatialReference},z=M?(0,l.Cv)(v,t.spatialReference):v;if(!z)return{candidates:[]};const b=(await(0,o.el)((0,r.rS)(_),null,{signal:m}))[0],B=(await(0,o.el)((0,r.rS)(z),null,{signal:m}))[0];if(null==b||null==B)return{candidates:[]};const R=new h.G(await t.reschedule(()=>t.searchFeatures((0,u.ux)(B.toJSON())),m),x,t);await t.reschedule(()=>t.executeObjectIdsQuery(R),m),await t.reschedule(()=>t.executeTimeQuery(R),m),await t.reschedule(()=>t.executeAttributesQuery(R),m),await t.reschedule(()=>async function(t,e,n){const{query:i}=e,{spatialRel:s}=i;if(!e?.items?.length||!i.geometry||!s)return;const r=await(0,f.xt)(s,i.geometry,t.geometryType,t.hasZ,t.hasM),o=await t.runSpatialFilter(e.items,t=>r(t.geometry),n);e.items=o}(t,R,m),m);const S=b.toJSON(),j=M?(0,l.Cv)(S,t.spatialReference):S,k=M?Math.max(z.xmax-z.xmin,z.ymax-z.ymin)/2:p;return R.createSnappingResponse({...e,point:j,distance:k},x.returnZ,_.spatialReference)}},62815:(t,e,n)=>{n.d(e,{N:()=>o});var i=n(83047),s=n(73941),r=n(21325);function o(t,e,n){if(null==e||null==n||n.vcsWkid||(0,r.aI)(e,n)||(0,s.xP)(e)||(0,s.xP)(n))return null;const o=(0,i.G9)(e)/(0,i.G9)(n);if(1===o)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,o);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}(t,o);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}(t,o);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,o);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,o);default:return null}}},66344:(t,e,n)=>{n.d(e,{q:()=>a});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db=null}register(t){this._users.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._users.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}getSize(t,e){const n=this._db.get(t.id+e);return n?.size??0}put(t,e,n,s,o){e=t.id+e;const a=this._db.get(e);if(a&&(this._size-=a.size,t.size-=a.size,this._db.delete(e),a.entry!==n&&this._notifyRemove(e,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(e,n,s,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return i||console.warn(`Refusing to cache entry with size ${s} for key ${e}`),void this._notifyRemove(e,n,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(e,new r(n,s,l)),this._size+=s,t.size+=s,this._checkSize()}updateSize(t,e,n,i){e=t.id+e;const s=this._db.get(e);if(s&&s.entry===n){for(this._size-=s.size,t.size-=s.size;i>this._maxSize;){const t=this._notifyRemove(e,n,i,1);if(!(null!=t&&t>0))return void this._db.delete(e);i=t}s.size=i,this._size+=i,t.size+=i,this._checkSize()}}pop(t,e){e=t.id+e;const n=this._db.get(e);if(n)return this._size-=n.size,t.size-=n.size,this._db.delete(e),++this._hit,n.entry;++this._miss}get(t,e){e=t.id+e;const n=this._db.get(e);if(void 0!==n)return this._db.delete(e),n.lives=n.lifetime,this._db.set(e,n),++this._hit,n.entry;++this._miss}peek(t,e){const n=this._db.get(t.id+e);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},n=new Array;this._db.forEach((t,i)=>{const s=t.lifetime;n[s]=(n[s]||0)+t.size,this._users.forEach(n=>{const{id:s,name:r}=n;if(i.startsWith(s)){const n=e[r]||0;e[r]=n+t.size}})});const i={};this._users.forEach(t=>{const n=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const s=e[n]||0;e[n]=s,i[n]=Math.round(100*t.hitRate)+"%"}else i[n]="0%"});const s=Object.keys(e);s.sort((t,n)=>e[n]-e[t]),s.forEach(n=>t[n]=Math.round(e[n]/2**20)+"MB / "+i[n]);for(let e=n.length-1;e>=0;--e){const i=n[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,n)=>{n.startsWith(e)&&(this._size-=t.size,this._db.delete(n),this._notifyRemove(n,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._users.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,n]of this._db)e.startsWith(t.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,n,i){const s=this._users.get(t.split(o)[0])?.removeFunc,r=s?.(e,i,n);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._checkSizeLimits(this.maxSize)}setMaxSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const n=e??this;if(n.size<=t)return;const i=e?.id;let s=!0;for(;s;){s=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!i||r.startsWith(i))){const i=e??this._users.get(r.split(o)[0]);if(this._purgeItem(r,a,i),n.size<=.9*t)return;s||=this._db.has(r)}}for(const[s,r]of this._db)if(!i||s.startsWith(i)){const i=e??this._users.get(s.split(o)[0]);if(this._purgeItem(s,r,i),n.size<=.9*t)return}}_purgeItem(t,e,n){if(this._db.delete(t),e.lives<=1){this._size-=e.size,n&&(n.size-=e.size);const i=this._notifyRemove(t,e.entry,e.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}class r{constructor(t,e,n){this.entry=t,this.size=e,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(t,e){this.removeFunc=e,this._storage=new s,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(t,e,n=1){this._storage.put(this,t,e,n,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69540:(t,e,n)=>{n.d(e,{A:()=>c});var i=n(31635),s=n(69622),r=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(40608);const u=t=>{const e=t;let n=class extends e{clone(t){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,i=e.store,s={},l=new Map;for(const e in n){const o=n[e],a=i?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const h=this[e];let c=null;c="function"==typeof u?u(h,t):"reference"===u?h:(0,r.TU)(h,t),null!=h&&null==c||(0===a?l.set(e,c):s[e]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(l.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,n]of l)t.set(e,n,0)}return u}};return n=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],n),n};let h=class extends(u(s.A)){};h=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],h),(h||(h={})).ClonableMixin=u;const c=h},75503:(t,e,n)=>{n.d(e,{EC:()=>b,wq:()=>a});var i=n(4576),s=n(21818),r=(n(44208),n(15142)),o=n(11006);class a{constructor(t=9,e){this._compareMinX=d,this._compareMinY=f,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),w.prune(),I.prune(),v.prune(),z.prune()}all(t){l(this._data,t)}search(t,e){let n=this._data;const i=this._toBBox;if(x(t,n))for(w.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;x(t,o)&&(n.leaf?e(r):y(t,o)?l(r,e):w.push(r))}n=w.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!x(t,e))return!1;for(w.clear();e;){for(let i=0,s=e.children.length;i<s;i++){const s=e.children[i],r=e.leaf?n(s):s;if(x(t,r)){if(e.leaf||y(t,r))return!0;w.push(s)}}e=w.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new R([]),this}remove(t){if(!t)return this;let e,n=this._data,r=null,o=0,a=!1;const l=this._toBBox(t);for(v.clear(),z.clear();n||v.length>0;){if(n||(n=v.pop(),r=v.data[v.length-1],o=z.pop()??0,a=!0),n.leaf&&(e=(0,i.qh)(n.children,(0,s.zI)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),v.push(n),this._condense(v),this;a||n.leaf||!y(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(v.push(n),z.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,i){const s=n-e+1;let r=this._maxEntries;if(s<=r){const i=new R(t.slice(e,n+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new S([]);o.height=i;const a=Math.ceil(s/r),l=a*Math.ceil(Math.sqrt(r));M(t,e,n,l,this._compareMinX);for(let s=e;s<=n;s+=l){const e=Math.min(s+l-1,n);M(t,s,e,a,this._compareMinY);for(let n=s;n<=e;n+=a){const s=Math.min(n+a-1,e);o.children.push(this._build(t,n,s,i-1))}}return u(o,this._toBBox),o}_insert(t,e,n){const i=this._toBBox,s=n?t:i(t);v.clear();const r=function(t,e,n,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],a=m(o),l=p(t,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}e=n||e.children[0]}return e}(s,this._data,e,v);for(r.children.push(t),c(r,s);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;!function(t,e,n){for(let i=n;i>=0;i--)c(e.data[i],t)}(s,v,e)}_split(t,e){const n=t.data[e],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return;const o=n.children.splice(r,n.children.length-r),a=n.leaf?new R(o):new S(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(n,a)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let i,s,r;i=s=1/0;for(let o=e;o<=n-e;o++){const e=h(t,0,o,this._toBBox),a=h(t,o,n,this._toBBox),l=g(e,a),u=m(e)+m(a);l<i?(i=l,r=o,s=u<s?u:s):l===i&&u<s&&(s=u,r=o)}return r}_chooseSplitAxis(t,e,n){const i=t.leaf?this._compareMinX:d,s=t.leaf?this._compareMinY:f;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,s)&&t.children.sort(i)}_allDistMargin(t,e,n,i){t.children.sort(i);const s=this._toBBox,r=h(t,0,e,s),o=h(t,n-e,n,s);let a=_(r)+_(o);for(let i=e;i<n-e;i++){const e=t.children[i];c(r,t.leaf?s(e):e),a+=_(r)}for(let i=n-e-1;i>=e;i--){const e=t.children[i];c(o,t.leaf?s(e):e),a+=_(o)}return a}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const s=t.data[e-1],r=s.children;r.splice((0,i.qh)(r,n,r.length,s.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.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]+"};")}}function l(t,e){let n=t;for(I.clear();n;){if(!0===n.leaf)for(const t of n.children)e((0,s.zI)(t));else I.pushArray(n.children);n=I.pop()??null}}function u(t,e){h(t,0,t.children.length,e,t)}function h(t,e,n,i,s){s||(s=new R([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=e;o<n;o++)r=t.children[o],c(s,t.leaf?i(r):r);return s}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function d(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function _(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){const n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function x(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,n,i,s){const r=[e,n];for(;r.length;){const e=r.pop(),n=r.pop();if(e-n<=i)continue;const a=n+Math.ceil((e-n)/i/2)*i;(0,o.q)(t,a,n,e,s),r.push(n,a,a,e)}}const w=new r.A,I=new r.A,v=new r.A,z=new r.A({deallocator:void 0});class b{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends b{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class R extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},83221:(t,e,n)=>{n.d(e,{A:()=>m});var i=n(4576),s=n(49186),r=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),h=n(6518),c=n(51441),d=n(37730);const f=(0,a.vt)();class m{constructor(t){this.geometryInfo=t,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.A.EventEmitter,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach(e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,n,i,s]=this.fullBounds;return{xmin:e,ymin:n,xmax:i,ymax:s,spatialReference:(0,c.ag)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}upsertMany(t){const e=t.map(t=>this._upsert(t));return this._emitChanged(),e.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const n of t){const t=this._boundsStore.get(n.objectId);t&&e((0,a.Jt)(f,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach(e=>t(e))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,t=>{e(this._featuresById.get(t))})}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:t}));const n=this._featuresById.get(e);let i;if(n?(t.displayId=n.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),!t.geometry?.coords?.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);i=(0,u.jQ)(null!=i?i:(0,l.vt)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0}_upsert(t){const e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;const n=this._featuresById.get(e);if(!n)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:i,attributes:r}=t;for(const t in r)n.attributes[t]=r[t];return i&&(n.geometry=i,this._boundsStore.set(e,(0,u.jQ)((0,l.vt)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},98988:(t,e,n)=>{n.r(e),n.d(e,{canProjectWithoutEngine:()=>N,getTransformation:()=>F,getTransformations:()=>q,initializeProjection:()=>U,isEqualBaseGCS:()=>K,isLoaded:()=>A,isLoadedOrLoad:()=>Y,isLoadedOrLoadFor:()=>E,load:()=>P,project:()=>L,projectExtent:()=>rt,projectMany:()=>O,projectMultipoint:()=>V,projectOrLoad:()=>C,projectOrLoadMany:()=>T,projectPoint:()=>Q,projectPolygon:()=>it,projectPolyline:()=>et,projectWithZConversion:()=>$,projectWithoutEngine:()=>J,requiresLoad:()=>X,test:()=>H,tryProjectWithZConversion:()=>W,unload:()=>Z});var i=n(49186),s=n(74887),r=n(62788),o=n(95488),a=n(51850),l=n(21276),u=n(73941),h=n(5443),c=n(48526),d=n(83290),f=n(86738),m=n(39829),_=n(82799),p=n(16930),g=n(9762),y=n(37539);function x(t,e,n,i,s,r){return M[0]=t,M[1]=e,M[2]=n,(0,g.projectBuffer)(M,i,0,s,r,0)}const M=(0,a.vt)();let w=0;class I{static fromGE(t){const e=new I;return e._wkt=t.wkt,e._wkid=t.wkid,e._isInverse=t.isInverse,e}constructor(t){this.uid=w++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=w++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=w++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=w++}getInverse(){const t=new I;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class v{static cacheKey(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}static fromGE(t){const e=new v;let n="";for(const i of t.steps){const t=I.fromGE(i);e.steps.push(t),n+=t.uid.toString()+","}return e._cachedProjection={},e._gtlistentry=null,e._chain=n,e}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const e of t.steps)e instanceof I?this.steps.push(e):this.steps.push(new I({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))}getInverse(){const t=new v;t.steps=[];for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}getGTListEntry(){let t="";for(const e of this.steps)t+=e.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,e,n){this._cachedProjection[v.cacheKey(t,e)]=n}getCachedGeTransformation(t,e){let n="";for(const t of this.steps)n+=t.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const i=this._cachedProjection[v.cacheKey(t,e)];return void 0===i?null:i}}var z=n(21325),b=n(62815);let B=null,R=null,S=null,j={};const k=new o.I;function A(){return!!B&&(0,d.i)()}function Y(){return!!A()||((0,r.gc)(k),P(),!1)}function E(t,e){return!t||!e||N(t,e)||Y()}function X(t,e){return!N(t,e)&&!A()}function P(t){return null==S&&(S=Promise.all([(0,d.l)(),n.e(9930).then(n.bind(n,49930)).then(t=>t.g),n.e(2731).then(n.bind(n,12731))])),S.then(([,e,{hydratedAdapter:n}])=>{(0,s.Te)(t),R=n,B=e.default,B._enableProjection(d.p),k.notify()})}function L(t,e,n=null,i=null){return Array.isArray(t)?0===t.length?[]:((0,l.H)(t),O(R,t,t[0].spatialReference,e,n,i)):((0,l.f)(t),O(R,[t],t.spatialReference,e,n,i)[0])}function O(t,e,n,i,s=null,r=null){if(null==n||null==i)return e;if(N(n,i,s))return e.map(t=>J(t,n,i));if(null==s&&(0,u.jA)(n))return e.map(t=>J(t,n,p.A.WGS84)).map(t=>W(t,i));if(null==s&&(0,u.jA)(i))return e.map(t=>W(t,p.A.WGS84)).map(t=>J(t,p.A.WGS84,i));if(null==s){const t=v.cacheKey(n,i);void 0!==j[t]?s=j[t]:(null==(s=F(n,i,void 0))&&(s=new v),j[t]=s)}if(null==B||null==t)throw new G;return null!=r?B._project(t,e,n,i,s,r):B._project(t,e,n,i,s)}function C(t,e){const n=T([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function T(t,e){if(!A())for(const n of t)if(null!=n&&!(0,z.aI)(n.spatialReference,e)&&(0,z.fn)(n.spatialReference)&&(0,z.fn)(e)&&!N(n.spatialReference,e))return(0,r.gc)(k),{pending:P(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,z.aI)(t.spatialReference,e)?t:(0,z.fn)(t.spatialReference)&&(0,z.fn)(e)?W(t,e):null)}}function F(t,e,n=null){if(null==t||null==e)return null;if(null==B||null==R)throw new G;const i=B._getTransformation(R,t,e,n,n?.spatialReference);return null!==i?v.fromGE(i):null}function q(t,e,n=null){if(null==B||null==R)throw new G;const i=B._getTransformationBySuitability(R,t,e,n,n?.spatialReference);if(null!==i){const t=[];for(const e of i)t.push(v.fromGE(e));return t}return[]}class G extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function Z(){B=null,R=null,S=null,j={}}const H={get loadPromise(){return S}};function W(t,e){try{const n=L(t,e);if(null==n)return null;"xmin"in t&&"xmin"in n&&(n.zmin=t.zmin,n.zmax=t.zmax);const i=(0,b.N)(n.type,t.spatialReference,e);return null!=i&&i(n),n}catch(t){if(!(t instanceof G))throw t;return null}}async function $(t,e,n){const i=t.spatialReference;return null!=i&&null!=e&&await U(i,e,null,n),W(t,e)}function N(t,e,n){return!n&&(!!(0,z.aI)(t,e)||(0,z.fn)(t)&&(0,z.fn)(e)&&!!(0,y.jd)(t,e))}function K(t,e){if((0,z.aI)(t,e))return!0;if(!(0,z.fn)(t)||!(0,z.fn)(e))return!1;const n=(0,z.oT)(t)||(0,z.K8)(t)||(0,z.x1)(t),i=(0,z.oT)(e)||(0,z.K8)(e)||(0,z.x1)(e);return n&&i}async function U(t,e,n,i){if(A())return(0,s.NO)(i);if(Array.isArray(t)){for(const{source:e,dest:n,geographicTransformation:s}of t)if(e&&n&&!N(e,n,s))return P(i)}else if(t&&e&&!N(t,e,n))return P(i);return(0,s.NO)(i)}function J(t,e,n){return t?"x"in t?D(t,e,new f.A,n,0):"xmin"in t?ot(t,e,new h.A,n,0):"rings"in t?st(t,e,new m.A,n,0):"paths"in t?nt(t,e,new _.A,n,0):"points"in t?tt(t,e,new c.A,n,0):null:null}function Q(t,e,n=e.spatialReference,i=0){return null!=n&&null!=t.spatialReference&&null!=D(t,t.spatialReference,e,n,i)}function D(t,e,n,i,s){lt[0]=t.x,lt[1]=t.y;const r=t.z;return lt[2]=void 0!==r?r:s,(0,g.projectBuffer)(lt,e,0,lt,i,0)?(n.x=lt[0],n.y=lt[1],n.spatialReference=i,void 0!==r||(0,u.xP)(i)?(n.z=lt[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function V(t,e,n=e.spatialReference,i=0){return null!=t.spatialReference&&null!=n&&null!=tt(t,t.spatialReference,e,n,i)}function tt(t,e,n,i,s){const{points:r,hasZ:o,hasM:a}=t,l=[],h=r.length,c=[];for(const t of r)c.push(t[0],t[1],o?t[2]:s);if(!(0,g.projectBuffer)(c,e,0,c,i,0,h))return null;const d=o||(0,u.xP)(i);for(let t=0;t<h;++t){const e=3*t,n=c[e],i=c[e+1];d&&a?l.push([n,i,c[e+2],r[t][3]]):d?l.push([n,i,c[e+2]]):a?l.push([n,i,r[t][2]]):l.push([n,i])}return n.points=l,n.spatialReference=i,n.hasZ=o,n.hasM=a,n}function et(t,e,n=e.spatialReference,i=0){return null!=t.spatialReference&&null!=n&&null!=nt(t,t.spatialReference,e,n,i)}function nt(t,e,n,i,s){const{paths:r,hasZ:o,hasM:a}=t,l=[];if(!at(r,o??!1,a??!1,e,l,i,s))return null;const h=o||(0,u.xP)(i);return n.paths=l,n.spatialReference=i,n.hasZ=h,n.hasM=a,n}function it(t,e,n=e.spatialReference,i=0){return null!=t.spatialReference&&null!=n&&null!=st(t,t.spatialReference,e,n,i)}function st(t,e,n,i,s){const{rings:r,hasZ:o,hasM:a}=t,l=[];if(!at(r,o??!1,a??!1,e,l,i,s))return null;const h=o||(0,u.xP)(i);return n.rings=l,n.spatialReference=i,n.hasZ=h,n.hasM=a,n}function rt(t,e,n=e.spatialReference,i=0){return null!=t.spatialReference&&null!=n&&null!=ot(t,t.spatialReference,e,n,i)}function ot(t,e,n,i,s){const{xmin:r,ymin:o,xmax:a,ymax:l,hasZ:h,hasM:c}=t;if(!x(r,o,h?t.zmin:s,e,lt,i))return null;const d=h||(0,u.xP)(i);return n.xmin=lt[0],n.ymin=lt[1],d&&(n.zmin=lt[2]),x(a,l,h?t.zmax:s,e,lt,i)?(n.xmax=lt[0],n.ymax=lt[1],d&&(n.zmax=lt[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=i,n):null}function at(t,e,n,i,s,r,o=0){const a=new Array;for(const n of t)for(const t of n)a.push(t[0],t[1],e?t[2]:o);if(!(0,g.projectBuffer)(a,i,0,a,r,0))return!1;let l=0;s.length=0;const h=e||(0,u.xP)(r);for(const e of t){const t=new Array;for(const i of e)h&&n?t.push([a[l++],a[l++],a[l++],i[3]]):h?t.push([a[l++],a[l++],a[l++]]):n?(t.push([a[l++],a[l++],i[2]]),l++):(t.push([a[l++],a[l++]]),l++);s.push(t)}return!0}const lt=(0,a.vt)()}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8367],{9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(e,t,n,r,o,i,s,a,l,u,c,f,d,h,p,g){return[e,t,n,r,o,i,s,a,l,u,c,f,d,h,p,g]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>o});var r=n(37539);function o(e,t,n,o,i,s,a=Math.floor(e.length/3)){const l=(0,r.jd)(t,i);if(null==l)return!1;if(l===r.pO){if(e===o&&n===s)return!0;const t=n+3*a;for(let r=n,i=s;r<t;r++,i++)o[i]=e[r];return!0}const u=n+3*a;for(let t=n,r=s;t<u;t+=3,r+=3)l(e,t,o,r);return!0}},20061:(e,t,n)=>{n.d(t,{A:()=>p});var r,o=n(31635),i=n(69540),s=n(66552),a=n(25482),l=n(10107),u=n(56507),c=(n(44208),n(87811),n(93223)),f=n(40608);const d=(0,s.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let h=r=class extends(i.A.ClonableMixin(a.A)){static from(e){return(0,u.PZ)(r,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,o.Cg)([(0,c.e)(d)],h.prototype,"order",void 0),h=r=(0,o.Cg)([(0,f.$)("esri.renderers.support.RendererLegendOptions")],h);const p=h},29242:(e,t,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(e,t,n,r,o,i,s,a,l){return[e,t,n,r,o,i,s,a,l]}n.d(t,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"}))},31635:(e,t,n)=>{function r(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function o(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>s,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function s(e){function t(t){e.error=e.hasError?new i(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},32114:(e,t,n)=>{n.d(t,{Rc:()=>h,J8:()=>p,rq:()=>f,Km:()=>d}),n(44208);var r=n(26390),o=n(29242),i=n(9093),s=n(82534),a=n(48163),l=n(51850),u=n(91829);class c{constructor(e){this._create=e,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new c(a.vt)}static createVec3f64(){return new c(l.vt)}static createVec4f64(){return new c(u.vt)}static createMat3f64(){return new c(o.vt)}static createMat4f64(){return new c(i.vt)}static createQuatf64(){return new c(s.vt)}get test(){}}c.createVec2f64();const f=c.createVec3f64(),d=c.createVec4f64(),h=(c.createMat3f64(),c.createMat4f64()),p=c.createQuatf64()},34142:(e,t,n)=>{n.r(t),n.d(t,{default:()=>A});var r=n(4576),o=n(34275),i=n(67026),s=n(82534),a=n(38954),l=n(72385),u=n(16930),c=n(9762),f=(n(44208),n(63531)),d=n(69846),h=n(48425),p=n(59418),g=n(37203);function b(e,t,n){return e?.attributeInfo.useElevation?t?function(e,t){const n=new Float64Array(t);for(let r=0;r<t;r++)n[r]=e[3*r+2];return n}(t,n):null:e?.attributeInfo.storageInfo?(0,p.m0)(e.attributeInfo.storageInfo,e.buffer,n,!0):null}function y(e){switch(e){default:case null:case"none":return e=>e;case"low-four-bit":return e=>15&e;case"high-four-bit":return e=>(240&e)>>4;case"absolute-value":return e=>Math.abs(e);case"modulo-ten":return e=>e%10}}function m(e){let t=0;for(const n of e||[])t|=1<<n;return t}var M=n(57005);class w{transform(e){const t=this._transform(e),n=[t.points.buffer,t.rgb.buffer];null!=t.pointIdFilterMap&&n.push(t.pointIdFilterMap.buffer);for(const e of t.attributes)"buffer"in e.values&&(0,o.mw)(e.values.buffer)&&e.values.buffer!==t.rgb.buffer&&n.push(e.values.buffer);return Promise.resolve({result:t,transferList:n})}_transform(e){const t=function(e,t){if(null==e.encoding||""===e.encoding){const n=(0,p.wH)(t,e);if(null==n.vertexAttributes.position)return;const r=(0,p.MA)(t,n.vertexAttributes.position),o=n.header.fields,i=[o.offsetX,o.offsetY,o.offsetZ],s=[o.scaleX,o.scaleY,o.scaleZ],a=r.length/3,l=new Float64Array(3*a);for(let e=0;e<a;e++)l[3*e]=r[3*e]*s[0]+i[0],l[3*e+1]=r[3*e+1]*s[1]+i[1],l[3*e+2]=r[3*e+2]*s[2]+i[2];return l}if("lepcc-xyz"===e.encoding)return(0,g.Me)(t).result}(e.schema,e.geometryBuffer);let n=t.length/3,o=null;const i=new Array,s=b(e.primaryAttributeData,t,n);null!=e.primaryAttributeData&&s&&i.push({attributeInfo:e.primaryAttributeData.attributeInfo,values:s});const a=b(e.modulationAttributeData,t,n);null!=e.modulationAttributeData&&a&&i.push({attributeInfo:e.modulationAttributeData.attributeInfo,values:a});let l=function(e,t,n,r){const{rendererJSON:o,isRGBRenderer:i}=e;let s=null,a=null;if(t&&i)s=t;else if(t&&"pointCloudUniqueValueRenderer"===o?.type){a=h.A.fromJSON(o);const e=a.colorUniqueValueInfos;s=new Uint8Array(3*r);const n=y(a.fieldTransformType);for(let o=0;o<r;o++){const r=(n?n(t[o]):t[o])+"";for(let t=0;t<e.length;t++)if(e[t].values.includes(r)){s[3*o]=e[t].color.r,s[3*o+1]=e[t].color.g,s[3*o+2]=e[t].color.b;break}}}else if(t&&"pointCloudStretchRenderer"===o?.type){a=d.A.fromJSON(o);const e=a.stops;s=new Uint8Array(3*r);const n=y(a.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(t[o]):t[o],i=e.length-1;if(r<e[0].value)s[3*o]=e[0].color.r,s[3*o+1]=e[0].color.g,s[3*o+2]=e[0].color.b;else if(r>=e[i].value)s[3*o]=e[i].color.r,s[3*o+1]=e[i].color.g,s[3*o+2]=e[i].color.b;else for(let t=1;t<e.length;t++)if(r<e[t].value){const n=(r-e[t-1].value)/(e[t].value-e[t-1].value);s[3*o]=e[t].color.r*n+e[t-1].color.r*(1-n),s[3*o+1]=e[t].color.g*n+e[t-1].color.g*(1-n),s[3*o+2]=e[t].color.b*n+e[t-1].color.b*(1-n);break}}}else if(t&&"pointCloudClassBreaksRenderer"===o?.type){a=f.A.fromJSON(o);const e=a.colorClassBreakInfos;s=new Uint8Array(3*r);const n=y(a.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(t[o]):t[o];for(let t=0;t<e.length;t++)if(r>=e[t].minValue&&r<=e[t].maxValue){s[3*o]=e[t].color.r,s[3*o+1]=e[t].color.g,s[3*o+2]=e[t].color.b;break}}}else s=new Uint8Array(3*r).fill(255);if(n&&a?.colorModulation){const e=a.colorModulation.minValue,t=a.colorModulation.maxValue,o=.3;for(let i=0;i<r;i++){const r=n[i],a=r>=t?1:r<=e?o:o+(1-o)*(r-e)/(t-e);s[3*i]=a*s[3*i],s[3*i+1]=a*s[3*i+1],s[3*i+2]=a*s[3*i+2]}}return s}(e.rendererInfo,s,a,n);if(e.filterInfo&&e.filterInfo.length>0&&null!=e.filterAttributesData){const s=e.filterAttributesData.filter(r.Ru).map(e=>{const r=b(e,t,n),o={attributeInfo:e.attributeInfo,values:r};return i.push(o),o});o=new Uint32Array(n),n=function(e,t,n,r,o){const i=e.length/3;let s=0;for(let a=0;a<i;a++){let i=!0;for(let e=0;e<r.length&&i;e++){const{filterJSON:t}=r[e],n=o[e].values[a];switch(t.type){case"pointCloudValueFilter":{const e="exclude"===t.mode;t.values.includes(n)===e&&(i=!1);break}case"pointCloudBitfieldFilter":{const e=m(t.requiredSetBits),r=m(t.requiredClearBits);(n&e)===e&&0===(n&r)||(i=!1);break}case"pointCloudReturnFilter":{const e=15&n,r=n>>>4&15,o=r>1,s=1===e,a=e===r;let l=!1;for(const e of t.includedReturns)if("last"===e&&a||"firstOfMany"===e&&s&&o||"lastOfMany"===e&&a&&o||"single"===e&&!o){l=!0;break}l||(i=!1);break}}}i&&(n[s]=a,e[3*s]=e[3*a],e[3*s+1]=e[3*a+1],e[3*s+2]=e[3*a+2],t[3*s]=t[3*a],t[3*s+1]=t[3*a+1],t[3*s+2]=t[3*a+2],s++)}return s}(t,l,o,e.filterInfo,s)}for(const r of e.userAttributesData){const e=b(r,t,n);i.push({attributeInfo:r.attributeInfo,values:e})}3*n<l.length&&(l=new Uint8Array(l.buffer.slice(0,3*n))),function(e,t,n){if(0!==n)for(let r=0;r<t;r++)e[3*r+2]+=n}(t,n,e.elevationOffset);const c=v(t,n,M.ab.fromData(e.obbData),u.A.fromJSON(e.inSR),u.A.fromJSON(e.outSR));return{obbData:e.obbData,points:c,rgb:l,attributes:i,pointIdFilterMap:o}}}function v(e,t,n,r,o){if(!(0,c.projectBuffer)(e,r,0,e,o,0,t))throw new Error("Can't reproject");const s=(0,l.o8)(n.center),u=(0,l.vt)(),f=(0,l.vt)(),d=(0,l.o8)(n.halfSize);(0,i.Xr)(C,n.quaternion);const h=new Float32Array(3*t);for(let n=0;n<t;n++){let t=3*n;u[0]=e[t]-s[0],u[1]=e[t+1]-s[1],u[2]=e[t+2]-s[2],(0,a.v)(f,u,C),d[0]=Math.max(d[0],Math.abs(f[0])),d[1]=Math.max(d[1],Math.abs(f[1])),d[2]=Math.max(d[2],Math.abs(f[2])),h[t++]=u[0],h[t++]=u[1],h[t]=u[2]}return n.halfSize=d,h}const C=(0,s.vt)();function A(){return new w}},37203:(e,t,n)=>{n.d(t,{Ax:()=>y,Me:()=>u,mb:()=>p});var r=n(49186);const o=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function s(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,o),checksum:t.getUint32(n+i.checksumOffset,o)}}const a={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function l(e,t){return{sizeLo:e.getUint32(t+a.sizeLo,o),sizeHi:e.getUint32(t+a.sizeHi,o),minX:e.getFloat64(t+a.minX,o),minY:e.getFloat64(t+a.minY,o),minZ:e.getFloat64(t+a.minZ,o),maxX:e.getFloat64(t+a.maxX,o),maxY:e.getFloat64(t+a.maxY,o),maxZ:e.getFloat64(t+a.maxZ,o),errorX:e.getFloat64(t+a.errorX,o),errorY:e.getFloat64(t+a.errorY,o),errorZ:e.getFloat64(t+a.errorZ,o),count:e.getUint32(t+a.count,o),reserved:e.getUint32(t+a.reserved,o)}}function u(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:u}=s(e,t,n);if(n+=i.byteCount,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const f=l(t,n);if(n+=a.byteCount,f.sizeHi*2**32+f.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),h=[],p=[],g=[],b=[];if(n=c(e,n,h),n=c(e,n,p),n=c(e,n,g),n=c(e,n,b),n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad length");let y=0,m=0;for(let e=0;e<h.length;e++){m+=h[e];let t=0;for(let n=0;n<p[e];n++){t+=g[y];const e=b[y];d[3*y]=Math.min(f.maxX,f.minX+2*f.errorX*t),d[3*y+1]=Math.min(f.maxY,f.minY+2*f.errorY*m),d[3*y+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*e),y++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function c(e,t,n){const r=[];t=f(e,t,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,t=f(e,t,o);for(let e=0;e<o.length;e++)n.push(o[e]+r[i])}return t}function f(e,t,n){const i=new DataView(e,t),s=i.getUint8(0),a=31&s,l=!!(32&s),u=(192&s)>>6;let c=0;if(0===u)c=i.getUint32(1,o),t+=5;else if(1===u)c=i.getUint16(1,o),t+=3;else{if(2!==u)throw new r.A("lepcc-decode-error","Bad count type");c=i.getUint8(1),t+=2}if(l)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(c*a/8),d=new Uint8Array(e,t,f);let h=0,p=0,g=0;const b=-1>>>32-a;for(let e=0;e<c;e++){for(;p<a;)h|=d[g]<<p,p+=8,g+=1;n[e]=h&b,h>>>=a,p-=a,p+a>32&&(h|=d[g-1]>>8-p)}return t+g}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function h(e,t){return{sizeLo:e.getUint32(t+d.sizeLo,o),sizeHi:e.getUint32(t+d.sizeHi,o),count:e.getUint32(t+d.count,o),colorMapCount:e.getUint16(t+d.colorMapCount,o),lookupMethod:e.getUint8(t+d.lookupMethod),compressionMethod:e.getUint8(t+d.compressionMethod)}}function p(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const l=h(t,n);if(n+=d.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===l.lookupMethod||1===l.lookupMethod)&&0===l.compressionMethod){if(3*l.colorMapCount+l.count+n!==e.byteLength||l.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*l.colorMapCount),o=new Uint8Array(e,n+3*l.colorMapCount,l.count),i=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++){const n=o[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===l.lookupMethod&&0===l.compressionMethod){if(3*l.count+n!==e.byteLength||0!==l.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(l.lookupMethod<=2&&1===l.compressionMethod){if(n+3!==e.byteLength||1!==l.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=t.getUint8(n),i=t.getUint8(n+1),s=t.getUint8(n+2),a=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++)a[3*e]=o,a[3*e+1]=i,a[3*e+2]=s;return a}throw new r.A("lepcc-decode-error","Bad method "+l.lookupMethod+","+l.compressionMethod)}const g={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function b(e,t){return{sizeLo:e.getUint32(t+g.sizeLo,o),sizeHi:e.getUint32(t+g.sizeHi,o),count:e.getUint32(t+g.count,o),scaleFactor:e.getUint16(t+g.scaleFactor,o),bitsPerPoint:e.getUint8(t+g.bitsPerPoint),reserved:e.getUint8(t+g.reserved)}}function y(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const l=b(t,n);if(n+=g.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const u=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else{const t=[];if(f(e,n,t)!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}return u}},37539:(e,t,n)=>{n.d(t,{pO:()=>g,jd:()=>d,Tp:()=>h,w5:()=>f});var r=n(34727),o=n(83047),i=n(73941),s=n(79258);Math.PI;const a=s.$O.radius,l=s.$O.eccentricitySquared,u={a1:a*l,a2:a*l*a*l,a3:a*l*l/2,a4:a*l*a*l*2.5,a5:a*l+a*l*l/2,a6:1-l};s.$O.radius,s.$O.flattening,s.Sw.radius,s.Sw.flattening,s.sH.radius,s.sH.flattening,s.sH.radius;var c=n(21325);const f={2:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:y,11:m,2:g,4:U},5:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:y,11:m,2:g,4:U},7:{5:null,7:g,9:null,10:g,1:null,6:C,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:b,7:null,9:null,10:b,1:function(e,t,n,r){const o=e[t]/V,i=R-2*Math.atan(Math.exp(-e[t+1]/V)),s=V+e[t+2],a=Math.cos(i)*s;n[r]=Math.cos(o)*a,n[r+1]=Math.sin(o)*a,n[r+2]=Math.sin(i)*s},6:null,8:null,0:null,3:g,11:function(e,t,n,r){b(e,t,n,r),m(n,r,n,r)},2:b,4:function(e,t,n,r){b(e,t,n,r),U(n,r,n,r)}},4:{5:j,7:null,9:null,10:j,1:function(e,t,n,r){j(e,t,n,r),A(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){j(e,t,n,r),y(n,r,n,r)},11:function(e,t,n,r){j(e,t,n,r),m(n,r,n,r)},2:j,4:g},1:{5:O,7:null,9:null,10:O,1:g,6:null,8:null,0:null,3:function(e,t,n,r){O(e,t,n,r),y(n,r,n,r)},11:function(e,t,n,r){O(e,t,n,r),m(n,r,n,r)},2:O,4:function(e,t,n,r){O(e,t,n,r),U(n,r,n,r)}},6:{5:null,7:T,9:null,10:T,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:A,6:C,8:v,0:null,3:y,11:m,2:g,4:U},11:{5:M,7:null,9:null,10:M,1:function(e,t,n,r){M(e,t,n,r),A(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){M(e,t,n,r),y(n,r,n,r)},11:g,2:M,4:function(e,t,n,r){M(e,t,n,r),U(n,r,n,r)}}};function d(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(x.source.spatialReference===e&&x.dest.spatialReference===t)return x;const n=p(e,x.source),r=p(t,x.dest);return 0===n&&0===r?(0,c.aI)(e,t)?x.projector=g:x.projector=null:x.projector=f[n][r],x}function p(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,o.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function g(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function b(e,t,n,r){n[r]=z*(e[t]/V),n[r+1]=z*(R-2*Math.atan(Math.exp(-e[t+1]/V))),n[r+2]=e[t+2]}function y(e,t,n,o){!function(e,t,n,o,i){const s=.4999999*Math.PI,a=(0,r.qE)(k*e[t+1],-s,s),l=Math.sin(a);n[o++]=k*e[t]*i.radius,n[o++]=i.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=e[t+2]}(e,t,n,o,s.$O)}function m(e,t,n,r){n[r]=e[t]*q,n[r+1]=e[t+1]*q,n[r+2]=e[t+2]}function M(e,t,n,r){n[r]=e[t]*P,n[r+1]=e[t+1]*P,n[r+2]=e[t+2]}function w(e,t,n,r,o){const i=o+e[t+2],s=k*e[t+1],a=k*e[t],l=Math.cos(s)*i;n[r]=Math.cos(a)*l,n[r+1]=Math.sin(a)*l,n[r+2]=Math.sin(s)*i}function v(e,t,n,r){w(e,t,n,r,s.Sw.radius)}function C(e,t,n,r){w(e,t,n,r,s.sH.radius)}function A(e,t,n,r){w(e,t,n,r,s.$O.radius)}function S(e,t,n,o,i){const s=e[t],a=e[t+1],l=e[t+2],u=Math.sqrt(s*s+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),f=Math.atan2(a,s);n[o++]=z*f,n[o++]=z*c,n[o]=u-i}function I(e,t,n,r){S(e,t,n,r,s.Sw.radius)}function T(e,t,n,r){S(e,t,n,r,s.sH.radius)}function O(e,t,n,r){S(e,t,n,r,s.$O.radius)}function U(e,t,n,r){!function(e,t,n,r,o){const i=k*e[t],s=k*e[t+1],a=e[t+2],l=Math.sin(s),u=Math.cos(s),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(i),n[r++]=(c+a)*u*Math.sin(i),n[r++]=(c*(1-o.eccentricitySquared)+a)*l}(e,t,n,r,s.$O)}function j(e,t,n,r){const o=u,i=e[t],a=e[t+1],l=e[t+2];let c,f,d,h,p,g,b,y,m,M,w,v,C,A,S,I,T,O,U,j,x;c=Math.abs(l),f=i*i+a*a,d=Math.sqrt(f),h=f+l*l,p=Math.sqrt(h),j=Math.atan2(a,i),g=l*l/h,b=f/h,A=o.a2/p,S=o.a3-o.a4/p,b>.3?(y=c/p*(1+b*(o.a1+A+g*S)/p),U=Math.asin(y),M=y*y,m=Math.sqrt(1-M)):(m=d/p*(1-g*(o.a5-A-b*S)/p),U=Math.acos(m),M=1-m*m,y=Math.sqrt(M)),w=1-s.$O.eccentricitySquared*M,v=s.$O.radius/Math.sqrt(w),C=o.a6*v,A=d-v*m,S=c-C*y,T=m*A+y*S,I=m*S-y*A,O=I/(C/w+T),U+=O,x=T+I*O/2,l<0&&(U=-U),n[r++]=z*j,n[r++]=z*U,n[r]=x}const x={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},k=(0,r.kU)(1),z=(0,r.KJ)(1),R=.5*Math.PI,V=s.$O.radius,q=V*Math.PI/180,P=180/(V*Math.PI)},38954:(e,t,n)=>{n.d(t,{A:()=>p,B:()=>h,C:()=>c,D:()=>f,E:()=>R,F:()=>_,H:()=>F,a:()=>V,b:()=>y,c:()=>s,d:()=>u,e:()=>S,f:()=>l,g:()=>b,h:()=>I,i:()=>a,j:()=>m,k:()=>w,l:()=>i,m:()=>T,n:()=>A,o:()=>U,q:()=>z,r:()=>C,s:()=>M,t:()=>O,u:()=>v,v:()=>j,w:()=>d,x:()=>N,y:()=>Z,z:()=>g});var r=n(51850),o=n(34304);function i(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function f(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function b(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function m(e,t){const n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return Math.sqrt(n*n+r*r+o*o)}function M(e,t){const n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return n*n+r*r+o*o}function w(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function v(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function C(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function A(e,t){const n=t[0],r=t[1],o=t[2];let i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,n){const r=t[0],o=t[1],i=t[2],s=n[0],a=n[1],l=n[2];return e[0]=o*l-i*a,e[1]=i*s-r*l,e[2]=r*a-o*s,e}function T(e,t,n,r){const o=t[0],i=t[1],s=t[2];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=s+r*(n[2]-s),e}function O(e,t,n){const r=t[0],o=t[1],i=t[2];return e[0]=n[0]*r+n[4]*o+n[8]*i+n[12],e[1]=n[1]*r+n[5]*o+n[9]*i+n[13],e[2]=n[2]*r+n[6]*o+n[10]*i+n[14],e}function U(e,t,n){const r=t[0],o=t[1],i=t[2];return e[0]=r*n[0]+o*n[3]+i*n[6],e[1]=r*n[1]+o*n[4]+i*n[7],e[2]=r*n[2]+o*n[5]+i*n[8],e}function j(e,t,n){const r=n[0],o=n[1],i=n[2],s=n[3],a=t[0],l=t[1],u=t[2],c=o*u-i*l,f=i*a-r*u,d=r*l-o*a,h=o*d-i*f,p=i*c-r*d,g=r*f-o*c,b=2*s;return e[0]=a+c*b+2*h,e[1]=l+f*b+2*p,e[2]=u+d*b+2*g,e}const x=(0,r.vt)(),k=(0,r.vt)();function z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t,n){const r=n[0]-t[0],o=n[1]-t[1],i=n[2]-t[2];let s=r*r+o*o+i*i;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=o*s,e[2]=i*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const V=u,q=c,P=f,_=m,N=M,F=i,Z=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){A(x,e),A(k,t);const n=S(x,k);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,o,i){const s=1-i,a=s*s,l=i*i,u=a*s,c=3*i*a,f=3*l*s,d=l*i;return e[0]=t[0]*u+n[0]*c+r[0]*f+o[0]*d,e[1]=t[1]*u+n[1]*c+r[1]*f+o[1]*d,e[2]=t[2]*u+n[2]*c+r[2]*f+o[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:I,crossAndNormalize:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=n[0],a=n[1],l=n[2],u=o*l-i*a,c=i*s-r*l,f=r*a-o*s,d=Math.sqrt(u*u+c*c+f*f);return e[0]=u/d,e[1]=c/d,e[2]=f/d,e},direction:R,dist:_,distance:m,div:P,divide:f,dot:S,equals:function(e,t){if(e===t)return!0;const n=e[0],r=e[1],i=e[2],s=t[0],a=t[1],l=t[2],u=(0,o.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))},exactEquals:z,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,o,i){const s=i*i,a=s*(2*i-3)+1,l=s*(i-2)+i,u=s*(i-1),c=s*(3-2*i);return e[0]=t[0]*a+n[0]*l+r[0]*u+o[0]*c,e[1]=t[1]*a+n[1]*l+r[1]*u+o[1]*c,e[2]=t[2]*a+n[2]*l+r[2]*u+o[2]*c,e},inverse:C,len:F,length:i,lerp:T,max:g,min:p,mul:q,multiply:c,negate:v,normalize:A,random:function(e,t=1){const n=o.Ov,r=2*n()*Math.PI,i=2*n()-1,s=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=i*t,e},rotateX:function(e,t,n,r){const o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateY:function(e,t,n,r){const o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateZ:function(e,t,n,r){const o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:b,scaleAndAdd:y,set:a,sign:h,sqrDist:N,sqrLen:Z,squaredDistance:M,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:V,subtract:u,transformMat3:U,transformMat4:O,transformQuat:j},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,n)=>{n.d(t,{Eq:()=>h,G1:()=>g,TS:()=>i,Tf:()=>m,V6:()=>o,Vm:()=>p,ay:()=>l,c1:()=>b,c4:()=>s,j5:()=>u,lT:()=>f,oW:()=>c});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(e){return!!r[e]||!!r[e.toLowerCase()]}function i(e){return r[e]??r[e.toLowerCase()]}function s(e){return[...i(e)]}function a(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const o=(e%360+360)%360/360,i=n<=.5?n*(t+1):n+t-n*t,s=2*n-i;return[Math.round(255*a(s,i,o+1/3)),Math.round(255*a(s,i,o)),Math.round(255*a(s,i,o-1/3)),r]}function u(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,o=t?1:17,i=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return i&&(l=s&r,s>>=n,a[3]=o*l/255),l=s&r,s>>=n,a[2]=o*l,l=s&r,s>>=n,a[1]=o*l,l=s&r,s>>=n,a[0]=o*l,a}function c(e){if("#"!==e[0]||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),o=5===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function f(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const t=e[0];if("%"===t.charAt(t.length-1)){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]))}return null}function d(e){return e[0]=b(e[0]),e[1]=b(e[1]),e[2]=b(e[2]),e[3]=4===e.length?g(e[3]):1,e}function h(e){let t=o(e)?i(e):null;return t??=f(e),t??=c(e),t}function p(e){const t=h(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function g(e){return y(e,0,1)}function b(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const m=2.2},44280:(e,t,n)=>{n.d(t,{EJ:()=>l,g7:()=>a,gr:()=>s});var r=n(34727),o=n(38954),i=n(51850);function s(e,t){return(0,o.e)(e,t)/(0,o.l)(e)}function a(e,t){const n=(0,o.e)(e,t)/((0,o.l)(e)*(0,o.l)(t));return-(0,r.XM)(n)}function l(e,t,n){(0,o.n)(u,e),(0,o.n)(c,t);const i=(0,o.e)(u,c),s=(0,r.XM)(i),a=(0,o.h)(u,u,c);return(0,o.e)(a,n)<0?2*Math.PI-s:s}const u=(0,i.vt)(),c=(0,i.vt)()},48163:(e,t,n)=>{function r(){return[0,0]}function o(e){return[e[0],e[1]]}function i(e,t){return[e,t]}function s(){return i(1,1)}function a(){return i(1,0)}function l(){return i(0,1)}n.d(t,{Un:()=>u,fA:()=>i,o8:()=>o,vt:()=>r});const u=s(),c=a(),f=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const n=Math.min(2,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t},fromValues:i,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48425:(e,t,n)=>{n.d(t,{A:()=>y});var r,o=n(31635),i=n(4718),s=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(51857),c=n(20061),f=n(68197),d=n(25482),h=n(56507);let p=r=class extends d.A{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new r({description:this.description,label:this.label,values:(0,i.o8)(this.values),color:(0,i.o8)(this.color)})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,o.Cg)([(0,s.MZ)({type:[String],json:{write:{isRequired:!0}}})],p.prototype,"values",void 0),(0,o.Cg)([(0,s.MZ)({type:f.A,json:{type:[h.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),p=r=(0,o.Cg)([(0,l.$)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],p);const g=p;var b;let y=b=class extends u.A{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new b({...this.cloneProperties(),field:(0,i.o8)(this.field),fieldTransformType:(0,i.o8)(this.fieldTransformType),colorUniqueValueInfos:(0,i.o8)(this.colorUniqueValueInfos),legendOptions:(0,i.o8)(this.legendOptions)})}};(0,o.Cg)([(0,a.e)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],y.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:{isRequired:!0}},type:String})],y.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:u.A.fieldTransformTypeKebabDict.apiValues,json:{type:u.A.fieldTransformTypeKebabDict.jsonValues,read:u.A.fieldTransformTypeKebabDict.read,write:u.A.fieldTransformTypeKebabDict.write}})],y.prototype,"fieldTransformType",void 0),(0,o.Cg)([(0,s.MZ)({type:[g],json:{write:{isRequired:!0}}})],y.prototype,"colorUniqueValueInfos",void 0),(0,o.Cg)([(0,s.MZ)({type:c.A,json:{write:!0}})],y.prototype,"legendOptions",void 0),y=b=(0,o.Cg)([(0,l.$)("esri.renderers.PointCloudUniqueValueRenderer")],y)},51850:(e,t,n)=>{function r(){return[0,0,0]}function o(e){return[e[0],e[1],e[2]]}function i(e,t,n){return[e,t,n]}function s(e,t,n){return[e,t,n]}function a(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function l(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function f(){return i(0,0,1)}n.d(t,{CN:()=>s,Cb:()=>b,Cw:()=>p,JP:()=>g,Un:()=>h,ci:()=>a,fA:()=>i,o8:()=>o,uY:()=>d,vt:()=>r});const d=[0,0,0],h=l(),p=u(),g=c(),b=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:p,UNIT_Y:g,UNIT_Z:b,ZEROS:d,clone:o,create:r,freeze:s,fromArray:a,fromValues:i,ones:l,unitX:u,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},51857:(e,t,n)=>{n.d(t,{A:()=>A});var r,o=n(31635),i=n(66552),s=n(25482),a=n(4718),l=n(10107),u=(n(44208),n(53966),n(40608));n(87811);let c=r=class extends s.A{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new r({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],c.prototype,"minValue",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],c.prototype,"maxValue",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.renderers.support.pointCloud.ColorModulation")],c);const f=c,d=new i.J({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let h=class extends s.A{};(0,o.Cg)([(0,l.MZ)({type:d.apiValues,readOnly:!0,nonNullable:!0,json:{type:d.jsonValues,read:!1,write:{writer:d.write,isRequired:!0}}})],h.prototype,"type",void 0),h=(0,o.Cg)([(0,u.$)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],h);const p=h;var g,b=n(93223);let y=g=class extends p{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new g({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,o.Cg)([(0,b.e)({pointCloudFixedSizeAlgorithm:"fixed-size"})],y.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],y.prototype,"size",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"useRealWorldSymbolSizes",void 0),y=g=(0,o.Cg)([(0,u.$)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],y);const m=y;var M;let w=M=class extends p{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new M({scaleFactor:this.scaleFactor})}};(0,o.Cg)([(0,b.e)({pointCloudSplatAlgorithm:"splat"})],w.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,value:1,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"scaleFactor",void 0),w=M=(0,o.Cg)([(0,u.$)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],w);const v={key:"type",base:p,typeMap:{"fixed-size":m,splat:w}},C=(0,i.O)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let A=class extends s.A{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,a.o8)(this.pointSizeAlgorithm),colorModulation:(0,a.o8)(this.colorModulation),pointsPerInch:(0,a.o8)(this.pointsPerInch)}}};(0,o.Cg)([(0,l.MZ)({type:C.apiValues,readOnly:!0,nonNullable:!0,json:{type:C.jsonValues,read:!1,write:{writer:C.write,isRequired:!0}}})],A.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({types:v,json:{write:!0}})],A.prototype,"pointSizeAlgorithm",void 0),(0,o.Cg)([(0,l.MZ)({type:f,json:{write:!0}})],A.prototype,"colorModulation",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0},nonNullable:!0,type:Number})],A.prototype,"pointsPerInch",void 0),A=(0,o.Cg)([(0,u.$)("esri.renderers.PointCloudRenderer")],A),(A||(A={})).fieldTransformTypeKebabDict=new i.J({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"})},59418:(e,t,n)=>{n.d(t,{wH:()=>g,MA:()=>d,E5:()=>h,m0:()=>y});var r=n(49186),o=n(4718),i=n(53966),s=n(34275),a=n(37203);const l=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,n){let o="",i=0;for(;i<n;){const s=e[t+i];if(s<128)o+=String.fromCharCode(s),i++;else if(s>=192&&s<224){if(i+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&s)<<6|63&e[t+i+1];o+=String.fromCharCode(a),i+=2}else if(s>=224&&s<240){if(i+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&s)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];o+=String.fromCharCode(a),i+=3}else{if(!(s>=240&&s<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&s)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(a);i+=4}}}return o}function c(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<t.length;o++){const i=t[o],s=i.valueType||i.type,a=M[s];n.fields[i.property]=a(e,r),r+=m[s].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(e,t,n){const o=[];let i,s,a=0;for(s=0;s<e;s+=1){if(i=t[s],i>0){if(o.push(u(n,a,i-1)),0!==n[a+i-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);a+=i}return o}function d(e,t){return new(0,m[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function h(e,t){if(!e)return null;const n=e[t];return(0,s.IY)(e)?n===s.PI?null:n:(0,s._G)(e)?n===s.h2?null:n:n!=n?null:n}function p(e,t,n){if(t!==e&&l().error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function g(e,t){const n=c(e,t&&t.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,s=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:r,count:s},i=b[e]||"_"+e;o.vertexAttributes[i]=n,r+=v(n.valueType)*n.valuesPerElement*s}const a=i.faceCount;if(t.faces&&a){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:r,count:a};o.faces[e]=n,r+=v(n.valueType)*n.valuesPerElement*a}}const l=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&l){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:r,count:l};o.featureAttributes[e]=n,r+=("UInt64"===n.valueType?8:v(n.valueType))*n.valuesPerElement*l}}return p(r,e.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const b={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function y(e,t,n,i=!1){if("lepcc-rgb"===e.encoding)return i?(0,a.mb)(t):function(e){return Array.isArray(e)?e.length<s.y9?e:new Uint8Array(e):e.length<s.y9?Array.from(e):e}((0,a.mb)(t));if("lepcc-intensity"===e.encoding)return i?(0,a.Ax)(t):function(e){return Array.isArray(e)?e.length<s.y9?e:new Uint16Array(e):e.length<s.y9?Array.from(e):e}((0,a.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const u=function(e,t,n){const i=null!=t.header?c(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},s={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let a=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],l=(0,o.o8)(t[n]);if(l.count=i.fields.count??0,"String"===l.valueType){if(l.byteOffset=a,l.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!w(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{const e=v(l.valueType);a+=a%e!==0?e-a%e:0,l.byteOffset=a,l.byteCount=e*l.valuesPerElement*l.count}}a+=l.byteCount??0,s.entries[n]=l}return s.byteCount=a-s.byteOffset,s}(t,e,n);p(u.byteOffset+u.byteCount,t.byteLength,"attribute");const g=u.entries.attributeValues||u.entries.objectIds;if(g){if("String"===g.valueType){const e=u.entries.attributeByteCounts,n=d(t,e),r=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,g);return g.timeEncoding?function(e,t,n){return f(e,t,n).map(e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t})}(e.count,n,r):f(e.count,n,r)}return i?d(t,g):function(e,t){const n=d(e,t);if(n.length>=s.y9)return n;const r=new Array;return n.forEach((e,t)=>r.push(h(n,t))),r}(t,g)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const m={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},M={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function w(e){return m.hasOwnProperty(e)}function v(e){return w(e)?m[e].BYTES_PER_ELEMENT:0}},63531:(e,t,n)=>{n.d(t,{A:()=>y});var r,o=n(31635),i=n(4718),s=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(51857),c=n(20061),f=n(68197),d=n(25482),h=n(56507);let p=r=class extends d.A{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new r({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,i.o8)(this.color)})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue",isRequired:!0}}})],p.prototype,"minValue",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue",isRequired:!0}}})],p.prototype,"maxValue",void 0),(0,o.Cg)([(0,s.MZ)({type:f.A,json:{type:[h.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),p=r=(0,o.Cg)([(0,l.$)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],p);const g=p;var b;let y=b=class extends u.A{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new b({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,i.o8)(this.colorClassBreakInfos),legendOptions:(0,i.o8)(this.legendOptions)})}};(0,o.Cg)([(0,a.e)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],y.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:{isRequired:!0}},type:String})],y.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:c.A,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,o.Cg)([(0,s.MZ)({type:u.A.fieldTransformTypeKebabDict.apiValues,json:{type:u.A.fieldTransformTypeKebabDict.jsonValues,read:u.A.fieldTransformTypeKebabDict.read,write:u.A.fieldTransformTypeKebabDict.write}})],y.prototype,"fieldTransformType",void 0),(0,o.Cg)([(0,s.MZ)({type:[g],json:{write:{isRequired:!0}}})],y.prototype,"colorClassBreakInfos",void 0),y=b=(0,o.Cg)([(0,l.$)("esri.renderers.PointCloudClassBreaksRenderer")],y)},68197:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(40876),o=n(34727),i=n(56507);function s(e){return(0,o.qE)((0,i.Vr)(e),0,255)}function a(e,t){const n=e.toString(16).padStart(2,"0");return t?n.slice(0,1):n}class l{static blendColors(e,t,n,r=new l){return r.r=Math.round(e.r+(t.r-e.r)*n),r.g=Math.round(e.g+(t.g-e.g)*n),r.b=Math.round(e.b+(t.b-e.b)*n),r.a=e.a+(t.a-e.a)*n,r._sanitize()}static fromRgb(e,t){const n=(0,r.lT)(e);return n?l.fromArray(n,t):null}static fromHex(e,t=new l){const n=(0,r.oW)(e);return n?l.fromArray(n,t):null}static fromArray(e,t=new l){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const n=(0,r.Eq)(e);return n?l.fromArray(n,t):null}static fromJSON(e){return null!=e?new l([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?l.fromString(e,this):Array.isArray(e)?l.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof l||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,n=e?.digits??6,r=3===n||4===n,o=4===n||8===n,i=`#${a(this.r,r)}${a(this.g,r)}${a(this.b,r)}${o?a(Math.round(255*this.a),r):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=s(this.r),n=s(this.g),r=s(this.b);return 0===e||1!==this.a?[t,n,r,s(255*this.a)]:[t,n,r]}clone(){return new l(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(e,t,n,r){this.r=e,this.g=t,this.b=n,this.a=r}}l.prototype.declaredClass="esri.Color"},69540:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(31635),o=n(69622),i=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(40608);const u=e=>{const t=e;let n=class extends t{clone(e){const t=(0,a.oY)(this);(0,s.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,r=t.store,o={},l=new Map;for(const t in n){const s=n[t],a=r?.originOf(t),u=s.clonable;if(s.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let f=null;f="function"==typeof u?u(c,e):"reference"===u?c:(0,i.TU)(c,e),null!=c&&null==f||(0===a?l.set(t,f):o[t]=f)}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return n=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],n),n};let c=class extends(u(o.A)){};c=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=u;const f=c},69846:(e,t,n)=>{n.d(t,{A:()=>d});var r,o=n(31635),i=n(4718),s=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(51857),c=n(20061),f=n(72500);let d=r=class extends u.A{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new r({...this.cloneProperties(),field:(0,i.o8)(this.field),fieldTransformType:(0,i.o8)(this.fieldTransformType),stops:(0,i.o8)(this.stops),legendOptions:(0,i.o8)(this.legendOptions)})}};(0,o.Cg)([(0,a.e)({pointCloudStretchRenderer:"point-cloud-stretch"})],d.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:{isRequired:!0}},type:String})],d.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:c.A,json:{write:!0}})],d.prototype,"legendOptions",void 0),(0,o.Cg)([(0,s.MZ)({type:u.A.fieldTransformTypeKebabDict.apiValues,json:{type:u.A.fieldTransformTypeKebabDict.jsonValues,read:u.A.fieldTransformTypeKebabDict.read,write:u.A.fieldTransformTypeKebabDict.write}})],d.prototype,"fieldTransformType",void 0),(0,o.Cg)([(0,s.MZ)({type:[f.A],json:{write:{isRequired:!0}}})],d.prototype,"stops",void 0),d=r=(0,o.Cg)([(0,l.$)("esri.renderers.PointCloudStretchRenderer")],d)},72385:(e,t,n)=>{function r(){return new Float32Array(3)}function o(e){const t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(e,t,n){const r=new Float32Array(3);return r[0]=e,r[1]=t,r[2]=n,r}function s(){return r()}function a(){return i(1,1,1)}function l(){return i(1,0,0)}function u(){return i(0,1,0)}function c(){return i(0,0,1)}n.d(t,{fA:()=>i,o8:()=>o,vt:()=>r});const f=s(),d=a(),h=l(),p=u(),g=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:h,UNIT_Y:p,UNIT_Z:g,ZEROS:f,clone:o,create:r,fromValues:i,ones:a,unitX:l,unitY:u,unitZ:c,zeros:s},Symbol.toStringTag,{value:"Module"}))},72500:(e,t,n)=>{n.d(t,{A:()=>d});var r,o=n(31635),i=n(68197),s=n(25482),a=n(10107),l=n(56507),u=(n(44208),n(87811),n(40608)),c=n(43937);let f=r=class extends s.A{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,n){t[n]=e??0}clone(){return new r({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,o.Cg)([(0,a.MZ)({type:i.A,json:{type:[l.jz],write:{isRequired:!0}}})],f.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"label",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],f.prototype,"value",void 0),(0,o.Cg)([(0,c.K)("value")],f.prototype,"writeValue",null),f=r=(0,o.Cg)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],f);const d=f},77690:(e,t,n)=>{n.d(t,{B8:()=>a,Ge:()=>d,I0:()=>f,KC:()=>l,hZ:()=>i,hs:()=>c,lw:()=>u,mg:()=>s,z0:()=>o});var r=n(34304);function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function i(e,t,n,r,o,i,s,a,l,u){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i,e[5]=s,e[6]=a,e[7]=l,e[8]=u,e}function s(e,t){if(e===t){const n=t[1],r=t[2],o=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=o}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function a(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8],f=c*s-a*u,d=-c*i+a*l,h=u*i-s*l;let p=n*f+r*d+o*h;return p?(p=1/p,e[0]=f*p,e[1]=(-c*r+o*u)*p,e[2]=(a*r-o*s)*p,e[3]=d*p,e[4]=(c*n-o*l)*p,e[5]=(-a*n+o*i)*p,e[6]=h*p,e[7]=(-u*n+r*l)*p,e[8]=(s*n-r*i)*p,e):null}function l(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8];return e[0]=s*c-a*u,e[1]=o*u-r*c,e[2]=r*a-o*s,e[3]=a*l-i*c,e[4]=n*c-o*l,e[5]=o*i-n*a,e[6]=i*u-s*l,e[7]=r*l-n*u,e[8]=n*s-r*i,e}function u(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],f=t[8],d=n[0],h=n[1],p=n[2],g=n[3],b=n[4],y=n[5],m=n[6],M=n[7],w=n[8];return e[0]=d*r+h*s+p*u,e[1]=d*o+h*a+p*c,e[2]=d*i+h*l+p*f,e[3]=g*r+b*s+y*u,e[4]=g*o+b*a+y*c,e[5]=g*i+b*l+y*f,e[6]=m*r+M*s+w*u,e[7]=m*o+M*a+w*c,e[8]=m*i+M*l+w*f,e}function c(e,t,n){const r=n[0],o=n[1],i=n[2];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e[6]=i*t[6],e[7]=i*t[7],e[8]=i*t[8],e}function f(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=n+n,a=r+r,l=o+o,u=n*s,c=r*s,f=r*a,d=o*s,h=o*a,p=o*l,g=i*s,b=i*a,y=i*l;return e[0]=1-f-p,e[3]=c-y,e[6]=d+b,e[1]=c+y,e[4]=1-u-p,e[7]=h-g,e[2]=d-b,e[5]=h+g,e[8]=1-u-f,e}function d(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],p=t[12],g=t[13],b=t[14],y=t[15],m=n*a-r*s,M=n*l-o*s,w=n*u-i*s,v=r*l-o*a,C=r*u-i*a,A=o*u-i*l,S=c*g-f*p,I=c*b-d*p,T=c*y-h*p,O=f*b-d*g,U=f*y-h*g,j=d*y-h*b;let x=m*j-M*U+w*O+v*T-C*I+A*S;return x?(x=1/x,e[0]=(a*j-l*U+u*O)*x,e[1]=(l*T-s*j-u*I)*x,e[2]=(s*U-a*T+u*S)*x,e[3]=(o*U-r*j-i*O)*x,e[4]=(n*j-o*T+i*I)*x,e[5]=(r*T-n*U-i*S)*x,e[6]=(g*A-b*C+y*v)*x,e[7]=(b*w-p*A-y*M)*x,e[8]=(p*C-g*w+y*m)*x,e):null}function h(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}const p=u,g=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e},adjoint:l,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},determinant:function(e){const t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],s=e[5],a=e[6],l=e[7],u=e[8];return t*(u*i-s*l)+n*(-u*o+s*a)+r*(l*o-i*a)},equals:function(e,t){const n=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=t[0],h=t[1],p=t[2],g=t[3],b=t[4],y=t[5],m=t[6],M=t[7],w=t[8],v=(0,r.FD)();return Math.abs(n-d)<=v*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-h)<=v*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-g)<=v*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(a-b)<=v*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(l-y)<=v*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-m)<=v*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-M)<=v*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2)},fromMat2d:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},fromMat4:o,fromQuat:f,fromRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromTranslation:function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},invert:a,isOrthoNormal:function(e){const t=(0,r.FD)(),n=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],f=e[8];return Math.abs(1-(n*n+s*s+u*u))<=t&&Math.abs(1-(o*o+a*a+c*c))<=t&&Math.abs(1-(i*i+l*l+f*f))<=t},mul:p,multiply:u,multiplyScalar:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e},multiplyScalarAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e},normalFromMat4:d,normalFromMat4Legacy:function(e,t){const n=t[0],r=t[1],o=t[2],i=t[4],s=t[5],a=t[6],l=t[8],u=t[9],c=t[10],f=c*s-a*u,d=-c*i+a*l,h=u*i-s*l,p=n*f+r*d+o*h;if(!p)return null;const g=1/p;return e[0]=f*g,e[1]=(-c*r+o*u)*g,e[2]=(a*r-o*s)*g,e[3]=d*g,e[4]=(c*n-o*l)*g,e[5]=(-a*n+o*i)*g,e[6]=h*g,e[7]=(-u*n+r*l)*g,e[8]=(s*n-r*i)*g,e},projection:function(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e},rotate:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],f=t[8],d=Math.sin(n),h=Math.cos(n);return e[0]=h*r+d*s,e[1]=h*o+d*a,e[2]=h*i+d*l,e[3]=h*s-d*r,e[4]=h*a-d*o,e[5]=h*l-d*i,e[6]=u,e[7]=c,e[8]=f,e},scale:c,scaleByVec2:function(e,t,n){const r=n[0],o=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e},set:i,str:function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"},sub:g,subtract:h,translate:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],f=t[8],d=n[0],h=n[1];return e[0]=r,e[1]=o,e[2]=i,e[3]=s,e[4]=a,e[5]=l,e[6]=d*r+h*s+u,e[7]=d*o+h*a+c,e[8]=d*i+h*l+f,e},transpose:s},Symbol.toStringTag,{value:"Module"}))},82534:(e,t,n)=>{function r(){return[0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3]]}n.d(t,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(e,t,n,r){return[e,t,n,r]}},Symbol.toStringTag,{value:"Module"}))},93223:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(66552),o=n(10107);function i(e,t={}){const n=e instanceof r.J?e:new r.J(e,t),{alwaysWriteDefaults:i,default:s,ignoreUnknown:a=!0,name:l,nonNullable:u,readOnly:c=!1}=t;return(0,o.MZ)({type:a?n.apiValues:String,json:{type:n.jsonValues,default:s,name:l,read:!c&&{reader:n.read},write:{writer:n.write,alwaysWriteDefaults:i}},nonNullable:u,readOnly:c})}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8367],{9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(e,t,n,r,o,i,s,a,l,u,c,f,d,h,p,g){return[e,t,n,r,o,i,s,a,l,u,c,f,d,h,p,g]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>o});var r=n(37539);function o(e,t,n,o,i,s,a=Math.floor(e.length/3)){const l=(0,r.jd)(t,i);if(null==l)return!1;if(l===r.pO){if(e===o&&n===s)return!0;const t=n+3*a;for(let r=n,i=s;r<t;r++,i++)o[i]=e[r];return!0}const u=n+3*a;for(let t=n,r=s;t<u;t+=3,r+=3)l(e,t,o,r);return!0}},20061:(e,t,n)=>{n.d(t,{A:()=>p});var r,o=n(31635),i=n(69540),s=n(66552),a=n(25482),l=n(10107),u=n(56507),c=(n(44208),n(87811),n(93223)),f=n(40608);const d=(0,s.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let h=r=class extends(i.A.ClonableMixin(a.A)){static from(e){return(0,u.PZ)(r,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,o.Cg)([(0,c.e)(d)],h.prototype,"order",void 0),h=r=(0,o.Cg)([(0,f.$)("esri.renderers.support.RendererLegendOptions")],h);const p=h},29242:(e,t,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(e,t,n,r,o,i,s,a,l){return[e,t,n,r,o,i,s,a,l]}n.d(t,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"}))},31635:(e,t,n)=>{function r(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function o(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>s,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function s(e){function t(t){e.error=e.hasError?new i(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},32114:(e,t,n)=>{n.d(t,{Rc:()=>h,J8:()=>p,rq:()=>f,Km:()=>d}),n(44208);var r=n(26390),o=n(29242),i=n(9093),s=n(82534),a=n(48163),l=n(51850),u=n(91829);class c{constructor(e){this._create=e,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new c(a.vt)}static createVec3f64(){return new c(l.vt)}static createVec4f64(){return new c(u.vt)}static createMat3f64(){return new c(o.vt)}static createMat4f64(){return new c(i.vt)}static createQuatf64(){return new c(s.vt)}get test(){}}c.createVec2f64();const f=c.createVec3f64(),d=c.createVec4f64(),h=(c.createMat3f64(),c.createMat4f64()),p=c.createQuatf64()},34142:(e,t,n)=>{n.r(t),n.d(t,{default:()=>A});var r=n(4576),o=n(34275),i=n(67026),s=n(82534),a=n(38954),l=n(72385),u=n(16930),c=n(9762),f=(n(44208),n(63531)),d=n(69846),h=n(48425),p=n(59418),g=n(37203);function b(e,t,n){return e?.attributeInfo.useElevation?t?function(e,t){const n=new Float64Array(t);for(let r=0;r<t;r++)n[r]=e[3*r+2];return n}(t,n):null:e?.attributeInfo.storageInfo?(0,p.m0)(e.attributeInfo.storageInfo,e.buffer,n,!0):null}function y(e){switch(e){default:case null:case"none":return e=>e;case"low-four-bit":return e=>15&e;case"high-four-bit":return e=>(240&e)>>4;case"absolute-value":return e=>Math.abs(e);case"modulo-ten":return e=>e%10}}function m(e){let t=0;for(const n of e||[])t|=1<<n;return t}var M=n(57005);class w{transform(e){const t=this._transform(e),n=[t.points.buffer,t.rgb.buffer];null!=t.pointIdFilterMap&&n.push(t.pointIdFilterMap.buffer);for(const e of t.attributes)"buffer"in e.values&&(0,o.mw)(e.values.buffer)&&e.values.buffer!==t.rgb.buffer&&n.push(e.values.buffer);return Promise.resolve({result:t,transferList:n})}_transform(e){const t=function(e,t){if(null==e.encoding||""===e.encoding){const n=(0,p.wH)(t,e);if(null==n.vertexAttributes.position)return;const r=(0,p.MA)(t,n.vertexAttributes.position),o=n.header.fields,i=[o.offsetX,o.offsetY,o.offsetZ],s=[o.scaleX,o.scaleY,o.scaleZ],a=r.length/3,l=new Float64Array(3*a);for(let e=0;e<a;e++)l[3*e]=r[3*e]*s[0]+i[0],l[3*e+1]=r[3*e+1]*s[1]+i[1],l[3*e+2]=r[3*e+2]*s[2]+i[2];return l}if("lepcc-xyz"===e.encoding)return(0,g.Me)(t).result}(e.schema,e.geometryBuffer);let n=t.length/3,o=null;const i=new Array,s=b(e.primaryAttributeData,t,n);null!=e.primaryAttributeData&&s&&i.push({attributeInfo:e.primaryAttributeData.attributeInfo,values:s});const a=b(e.modulationAttributeData,t,n);null!=e.modulationAttributeData&&a&&i.push({attributeInfo:e.modulationAttributeData.attributeInfo,values:a});let l=function(e,t,n,r){const{rendererJSON:o,isRGBRenderer:i}=e;let s=null,a=null;if(t&&i)s=t;else if(t&&"pointCloudUniqueValueRenderer"===o?.type){a=h.A.fromJSON(o);const e=a.colorUniqueValueInfos;s=new Uint8Array(3*r);const n=y(a.fieldTransformType);for(let o=0;o<r;o++){const r=(n?n(t[o]):t[o])+"";for(let t=0;t<e.length;t++)if(e[t].values.includes(r)){s[3*o]=e[t].color.r,s[3*o+1]=e[t].color.g,s[3*o+2]=e[t].color.b;break}}}else if(t&&"pointCloudStretchRenderer"===o?.type){a=d.A.fromJSON(o);const e=a.stops;s=new Uint8Array(3*r);const n=y(a.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(t[o]):t[o],i=e.length-1;if(r<e[0].value)s[3*o]=e[0].color.r,s[3*o+1]=e[0].color.g,s[3*o+2]=e[0].color.b;else if(r>=e[i].value)s[3*o]=e[i].color.r,s[3*o+1]=e[i].color.g,s[3*o+2]=e[i].color.b;else for(let t=1;t<e.length;t++)if(r<e[t].value){const n=(r-e[t-1].value)/(e[t].value-e[t-1].value);s[3*o]=e[t].color.r*n+e[t-1].color.r*(1-n),s[3*o+1]=e[t].color.g*n+e[t-1].color.g*(1-n),s[3*o+2]=e[t].color.b*n+e[t-1].color.b*(1-n);break}}}else if(t&&"pointCloudClassBreaksRenderer"===o?.type){a=f.A.fromJSON(o);const e=a.colorClassBreakInfos;s=new Uint8Array(3*r);const n=y(a.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(t[o]):t[o];for(let t=0;t<e.length;t++)if(r>=e[t].minValue&&r<=e[t].maxValue){s[3*o]=e[t].color.r,s[3*o+1]=e[t].color.g,s[3*o+2]=e[t].color.b;break}}}else s=new Uint8Array(3*r).fill(255);if(n&&a?.colorModulation){const e=a.colorModulation.minValue,t=a.colorModulation.maxValue,o=.3;for(let i=0;i<r;i++){const r=n[i],a=r>=t?1:r<=e?o:o+(1-o)*(r-e)/(t-e);s[3*i]=a*s[3*i],s[3*i+1]=a*s[3*i+1],s[3*i+2]=a*s[3*i+2]}}return s}(e.rendererInfo,s,a,n);if(e.filterInfo&&e.filterInfo.length>0&&null!=e.filterAttributesData){const s=e.filterAttributesData.filter(r.Ru).map(e=>{const r=b(e,t,n),o={attributeInfo:e.attributeInfo,values:r};return i.push(o),o});o=new Uint32Array(n),n=function(e,t,n,r,o){const i=e.length/3;let s=0;for(let a=0;a<i;a++){let i=!0;for(let e=0;e<r.length&&i;e++){const{filterJSON:t}=r[e],n=o[e].values[a];switch(t.type){case"pointCloudValueFilter":{const e="exclude"===t.mode;t.values.includes(n)===e&&(i=!1);break}case"pointCloudBitfieldFilter":{const e=m(t.requiredSetBits),r=m(t.requiredClearBits);(n&e)===e&&0===(n&r)||(i=!1);break}case"pointCloudReturnFilter":{const e=15&n,r=n>>>4&15,o=r>1,s=1===e,a=e===r;let l=!1;for(const e of t.includedReturns)if("last"===e&&a||"firstOfMany"===e&&s&&o||"lastOfMany"===e&&a&&o||"single"===e&&!o){l=!0;break}l||(i=!1);break}}}i&&(n[s]=a,e[3*s]=e[3*a],e[3*s+1]=e[3*a+1],e[3*s+2]=e[3*a+2],t[3*s]=t[3*a],t[3*s+1]=t[3*a+1],t[3*s+2]=t[3*a+2],s++)}return s}(t,l,o,e.filterInfo,s)}for(const r of e.userAttributesData){const e=b(r,t,n);i.push({attributeInfo:r.attributeInfo,values:e})}3*n<l.length&&(l=new Uint8Array(l.buffer.slice(0,3*n))),function(e,t,n){if(0!==n)for(let r=0;r<t;r++)e[3*r+2]+=n}(t,n,e.elevationOffset);const c=v(t,n,M.ab.fromData(e.obbData),u.A.fromJSON(e.inSR),u.A.fromJSON(e.outSR));return{obbData:e.obbData,points:c,rgb:l,attributes:i,pointIdFilterMap:o}}}function v(e,t,n,r,o){if(!(0,c.projectBuffer)(e,r,0,e,o,0,t))throw new Error("Can't reproject");const s=(0,l.o8)(n.center),u=(0,l.vt)(),f=(0,l.vt)(),d=(0,l.o8)(n.halfSize);(0,i.Xr)(C,n.quaternion);const h=new Float32Array(3*t);for(let n=0;n<t;n++){let t=3*n;u[0]=e[t]-s[0],u[1]=e[t+1]-s[1],u[2]=e[t+2]-s[2],(0,a.v)(f,u,C),d[0]=Math.max(d[0],Math.abs(f[0])),d[1]=Math.max(d[1],Math.abs(f[1])),d[2]=Math.max(d[2],Math.abs(f[2])),h[t++]=u[0],h[t++]=u[1],h[t]=u[2]}return n.halfSize=d,h}const C=(0,s.vt)();function A(){return new w}},37203:(e,t,n)=>{n.d(t,{Ax:()=>y,Me:()=>u,mb:()=>p});var r=n(49186);const o=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function s(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,o),checksum:t.getUint32(n+i.checksumOffset,o)}}const a={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function l(e,t){return{sizeLo:e.getUint32(t+a.sizeLo,o),sizeHi:e.getUint32(t+a.sizeHi,o),minX:e.getFloat64(t+a.minX,o),minY:e.getFloat64(t+a.minY,o),minZ:e.getFloat64(t+a.minZ,o),maxX:e.getFloat64(t+a.maxX,o),maxY:e.getFloat64(t+a.maxY,o),maxZ:e.getFloat64(t+a.maxZ,o),errorX:e.getFloat64(t+a.errorX,o),errorY:e.getFloat64(t+a.errorY,o),errorZ:e.getFloat64(t+a.errorZ,o),count:e.getUint32(t+a.count,o),reserved:e.getUint32(t+a.reserved,o)}}function u(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:u}=s(e,t,n);if(n+=i.byteCount,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const f=l(t,n);if(n+=a.byteCount,f.sizeHi*2**32+f.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),h=[],p=[],g=[],b=[];if(n=c(e,n,h),n=c(e,n,p),n=c(e,n,g),n=c(e,n,b),n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad length");let y=0,m=0;for(let e=0;e<h.length;e++){m+=h[e];let t=0;for(let n=0;n<p[e];n++){t+=g[y];const e=b[y];d[3*y]=Math.min(f.maxX,f.minX+2*f.errorX*t),d[3*y+1]=Math.min(f.maxY,f.minY+2*f.errorY*m),d[3*y+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*e),y++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function c(e,t,n){const r=[];t=f(e,t,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,t=f(e,t,o);for(let e=0;e<o.length;e++)n.push(o[e]+r[i])}return t}function f(e,t,n){const i=new DataView(e,t),s=i.getUint8(0),a=31&s,l=!!(32&s),u=(192&s)>>6;let c=0;if(0===u)c=i.getUint32(1,o),t+=5;else if(1===u)c=i.getUint16(1,o),t+=3;else{if(2!==u)throw new r.A("lepcc-decode-error","Bad count type");c=i.getUint8(1),t+=2}if(l)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(c*a/8),d=new Uint8Array(e,t,f);let h=0,p=0,g=0;const b=-1>>>32-a;for(let e=0;e<c;e++){for(;p<a;)h|=d[g]<<p,p+=8,g+=1;n[e]=h&b,h>>>=a,p-=a,p+a>32&&(h|=d[g-1]>>8-p)}return t+g}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function h(e,t){return{sizeLo:e.getUint32(t+d.sizeLo,o),sizeHi:e.getUint32(t+d.sizeHi,o),count:e.getUint32(t+d.count,o),colorMapCount:e.getUint16(t+d.colorMapCount,o),lookupMethod:e.getUint8(t+d.lookupMethod),compressionMethod:e.getUint8(t+d.compressionMethod)}}function p(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const l=h(t,n);if(n+=d.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===l.lookupMethod||1===l.lookupMethod)&&0===l.compressionMethod){if(3*l.colorMapCount+l.count+n!==e.byteLength||l.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*l.colorMapCount),o=new Uint8Array(e,n+3*l.colorMapCount,l.count),i=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++){const n=o[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===l.lookupMethod&&0===l.compressionMethod){if(3*l.count+n!==e.byteLength||0!==l.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(l.lookupMethod<=2&&1===l.compressionMethod){if(n+3!==e.byteLength||1!==l.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=t.getUint8(n),i=t.getUint8(n+1),s=t.getUint8(n+2),a=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++)a[3*e]=o,a[3*e+1]=i,a[3*e+2]=s;return a}throw new r.A("lepcc-decode-error","Bad method "+l.lookupMethod+","+l.compressionMethod)}const g={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function b(e,t){return{sizeLo:e.getUint32(t+g.sizeLo,o),sizeHi:e.getUint32(t+g.sizeHi,o),count:e.getUint32(t+g.count,o),scaleFactor:e.getUint16(t+g.scaleFactor,o),bitsPerPoint:e.getUint8(t+g.bitsPerPoint),reserved:e.getUint8(t+g.reserved)}}function y(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const l=b(t,n);if(n+=g.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const u=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else{const t=[];if(f(e,n,t)!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}return u}},37539:(e,t,n)=>{n.d(t,{pO:()=>g,jd:()=>d,Tp:()=>h,w5:()=>f});var r=n(34727),o=n(83047),i=n(73941),s=n(79258);Math.PI;const a=s.$O.radius,l=s.$O.eccentricitySquared,u={a1:a*l,a2:a*l*a*l,a3:a*l*l/2,a4:a*l*a*l*2.5,a5:a*l+a*l*l/2,a6:1-l};s.$O.radius,s.$O.flattening,s.Sw.radius,s.Sw.flattening,s.sH.radius,s.sH.flattening,s.sH.radius;var c=n(21325);const f={2:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:y,11:m,2:g,4:U},5:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:y,11:m,2:g,4:U},7:{5:null,7:g,9:null,10:g,1:null,6:C,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:b,7:null,9:null,10:b,1:function(e,t,n,r){const o=e[t]/V,i=R-2*Math.atan(Math.exp(-e[t+1]/V)),s=V+e[t+2],a=Math.cos(i)*s;n[r]=Math.cos(o)*a,n[r+1]=Math.sin(o)*a,n[r+2]=Math.sin(i)*s},6:null,8:null,0:null,3:g,11:function(e,t,n,r){b(e,t,n,r),m(n,r,n,r)},2:b,4:function(e,t,n,r){b(e,t,n,r),U(n,r,n,r)}},4:{5:j,7:null,9:null,10:j,1:function(e,t,n,r){j(e,t,n,r),A(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){j(e,t,n,r),y(n,r,n,r)},11:function(e,t,n,r){j(e,t,n,r),m(n,r,n,r)},2:j,4:g},1:{5:O,7:null,9:null,10:O,1:g,6:null,8:null,0:null,3:function(e,t,n,r){O(e,t,n,r),y(n,r,n,r)},11:function(e,t,n,r){O(e,t,n,r),m(n,r,n,r)},2:O,4:function(e,t,n,r){O(e,t,n,r),U(n,r,n,r)}},6:{5:null,7:T,9:null,10:T,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:A,6:C,8:v,0:null,3:y,11:m,2:g,4:U},11:{5:M,7:null,9:null,10:M,1:function(e,t,n,r){M(e,t,n,r),A(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){M(e,t,n,r),y(n,r,n,r)},11:g,2:M,4:function(e,t,n,r){M(e,t,n,r),U(n,r,n,r)}}};function d(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(x.source.spatialReference===e&&x.dest.spatialReference===t)return x;const n=p(e,x.source),r=p(t,x.dest);return 0===n&&0===r?(0,c.aI)(e,t)?x.projector=g:x.projector=null:x.projector=f[n][r],x}function p(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,o.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function g(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function b(e,t,n,r){n[r]=z*(e[t]/V),n[r+1]=z*(R-2*Math.atan(Math.exp(-e[t+1]/V))),n[r+2]=e[t+2]}function y(e,t,n,o){!function(e,t,n,o,i){const s=.4999999*Math.PI,a=(0,r.qE)(k*e[t+1],-s,s),l=Math.sin(a);n[o++]=k*e[t]*i.radius,n[o++]=i.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=e[t+2]}(e,t,n,o,s.$O)}function m(e,t,n,r){n[r]=e[t]*q,n[r+1]=e[t+1]*q,n[r+2]=e[t+2]}function M(e,t,n,r){n[r]=e[t]*P,n[r+1]=e[t+1]*P,n[r+2]=e[t+2]}function w(e,t,n,r,o){const i=o+e[t+2],s=k*e[t+1],a=k*e[t],l=Math.cos(s)*i;n[r]=Math.cos(a)*l,n[r+1]=Math.sin(a)*l,n[r+2]=Math.sin(s)*i}function v(e,t,n,r){w(e,t,n,r,s.Sw.radius)}function C(e,t,n,r){w(e,t,n,r,s.sH.radius)}function A(e,t,n,r){w(e,t,n,r,s.$O.radius)}function S(e,t,n,o,i){const s=e[t],a=e[t+1],l=e[t+2],u=Math.sqrt(s*s+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),f=Math.atan2(a,s);n[o++]=z*f,n[o++]=z*c,n[o]=u-i}function I(e,t,n,r){S(e,t,n,r,s.Sw.radius)}function T(e,t,n,r){S(e,t,n,r,s.sH.radius)}function O(e,t,n,r){S(e,t,n,r,s.$O.radius)}function U(e,t,n,r){!function(e,t,n,r,o){const i=k*e[t],s=k*e[t+1],a=e[t+2],l=Math.sin(s),u=Math.cos(s),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(i),n[r++]=(c+a)*u*Math.sin(i),n[r++]=(c*(1-o.eccentricitySquared)+a)*l}(e,t,n,r,s.$O)}function j(e,t,n,r){const o=u,i=e[t],a=e[t+1],l=e[t+2];let c,f,d,h,p,g,b,y,m,M,w,v,C,A,S,I,T,O,U,j,x;c=Math.abs(l),f=i*i+a*a,d=Math.sqrt(f),h=f+l*l,p=Math.sqrt(h),j=Math.atan2(a,i),g=l*l/h,b=f/h,A=o.a2/p,S=o.a3-o.a4/p,b>.3?(y=c/p*(1+b*(o.a1+A+g*S)/p),U=Math.asin(y),M=y*y,m=Math.sqrt(1-M)):(m=d/p*(1-g*(o.a5-A-b*S)/p),U=Math.acos(m),M=1-m*m,y=Math.sqrt(M)),w=1-s.$O.eccentricitySquared*M,v=s.$O.radius/Math.sqrt(w),C=o.a6*v,A=d-v*m,S=c-C*y,T=m*A+y*S,I=m*S-y*A,O=I/(C/w+T),U+=O,x=T+I*O/2,l<0&&(U=-U),n[r++]=z*j,n[r++]=z*U,n[r]=x}const x={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},k=(0,r.kU)(1),z=(0,r.KJ)(1),R=.5*Math.PI,V=s.$O.radius,q=V*Math.PI/180,P=180/(V*Math.PI)},38954:(e,t,n)=>{n.d(t,{A:()=>p,B:()=>h,C:()=>c,D:()=>f,E:()=>R,F:()=>_,H:()=>F,a:()=>V,b:()=>y,c:()=>s,d:()=>u,e:()=>S,f:()=>l,g:()=>b,h:()=>I,i:()=>a,j:()=>m,k:()=>w,l:()=>i,m:()=>T,n:()=>A,o:()=>U,q:()=>z,r:()=>C,s:()=>M,t:()=>O,u:()=>v,v:()=>j,w:()=>d,x:()=>N,y:()=>Z,z:()=>g});var r=n(51850),o=n(34304);function i(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function f(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function b(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function m(e,t){const n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return Math.sqrt(n*n+r*r+o*o)}function M(e,t){const n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return n*n+r*r+o*o}function w(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function v(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function C(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function A(e,t){const n=t[0],r=t[1],o=t[2];let i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,n){const r=t[0],o=t[1],i=t[2],s=n[0],a=n[1],l=n[2];return e[0]=o*l-i*a,e[1]=i*s-r*l,e[2]=r*a-o*s,e}function T(e,t,n,r){const o=t[0],i=t[1],s=t[2];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=s+r*(n[2]-s),e}function O(e,t,n){const r=t[0],o=t[1],i=t[2];return e[0]=n[0]*r+n[4]*o+n[8]*i+n[12],e[1]=n[1]*r+n[5]*o+n[9]*i+n[13],e[2]=n[2]*r+n[6]*o+n[10]*i+n[14],e}function U(e,t,n){const r=t[0],o=t[1],i=t[2];return e[0]=r*n[0]+o*n[3]+i*n[6],e[1]=r*n[1]+o*n[4]+i*n[7],e[2]=r*n[2]+o*n[5]+i*n[8],e}function j(e,t,n){const r=n[0],o=n[1],i=n[2],s=n[3],a=t[0],l=t[1],u=t[2],c=o*u-i*l,f=i*a-r*u,d=r*l-o*a,h=o*d-i*f,p=i*c-r*d,g=r*f-o*c,b=2*s;return e[0]=a+c*b+2*h,e[1]=l+f*b+2*p,e[2]=u+d*b+2*g,e}const x=(0,r.vt)(),k=(0,r.vt)();function z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t,n){const r=n[0]-t[0],o=n[1]-t[1],i=n[2]-t[2];let s=r*r+o*o+i*i;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=o*s,e[2]=i*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const V=u,q=c,P=f,_=m,N=M,F=i,Z=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){A(x,e),A(k,t);const n=S(x,k);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,o,i){const s=1-i,a=s*s,l=i*i,u=a*s,c=3*i*a,f=3*l*s,d=l*i;return e[0]=t[0]*u+n[0]*c+r[0]*f+o[0]*d,e[1]=t[1]*u+n[1]*c+r[1]*f+o[1]*d,e[2]=t[2]*u+n[2]*c+r[2]*f+o[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:I,crossAndNormalize:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=n[0],a=n[1],l=n[2],u=o*l-i*a,c=i*s-r*l,f=r*a-o*s,d=Math.sqrt(u*u+c*c+f*f);return e[0]=u/d,e[1]=c/d,e[2]=f/d,e},direction:R,dist:_,distance:m,div:P,divide:f,dot:S,equals:function(e,t){if(e===t)return!0;const n=e[0],r=e[1],i=e[2],s=t[0],a=t[1],l=t[2],u=(0,o.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))},exactEquals:z,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,o,i){const s=i*i,a=s*(2*i-3)+1,l=s*(i-2)+i,u=s*(i-1),c=s*(3-2*i);return e[0]=t[0]*a+n[0]*l+r[0]*u+o[0]*c,e[1]=t[1]*a+n[1]*l+r[1]*u+o[1]*c,e[2]=t[2]*a+n[2]*l+r[2]*u+o[2]*c,e},inverse:C,len:F,length:i,lerp:T,max:g,min:p,mul:q,multiply:c,negate:v,normalize:A,random:function(e,t=1){const n=o.Ov,r=2*n()*Math.PI,i=2*n()-1,s=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=i*t,e},rotateX:function(e,t,n,r){const o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateY:function(e,t,n,r){const o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateZ:function(e,t,n,r){const o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:b,scaleAndAdd:y,set:a,sign:h,sqrDist:N,sqrLen:Z,squaredDistance:M,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:V,subtract:u,transformMat3:U,transformMat4:O,transformQuat:j},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,n)=>{n.d(t,{Eq:()=>h,G1:()=>g,TS:()=>i,Tf:()=>m,V6:()=>o,Vm:()=>p,ay:()=>l,c1:()=>b,c4:()=>s,j5:()=>u,lT:()=>f,oW:()=>c});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(e){return!!r[e]||!!r[e.toLowerCase()]}function i(e){return r[e]??r[e.toLowerCase()]}function s(e){return[...i(e)]}function a(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const o=(e%360+360)%360/360,i=n<=.5?n*(t+1):n+t-n*t,s=2*n-i;return[Math.round(255*a(s,i,o+1/3)),Math.round(255*a(s,i,o)),Math.round(255*a(s,i,o-1/3)),r]}function u(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,o=t?1:17,i=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return i&&(l=s&r,s>>=n,a[3]=o*l/255),l=s&r,s>>=n,a[2]=o*l,l=s&r,s>>=n,a[1]=o*l,l=s&r,s>>=n,a[0]=o*l,a}function c(e){if("#"!==e[0]||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),o=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function f(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const t=e[0];if("%"===t.charAt(t.length-1)){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=b(e[0]),e[1]=b(e[1]),e[2]=b(e[2]),e[3]=4===e.length?g(e[3]):1,e}function h(e){let t=o(e)?i(e):null;return t??=f(e),t??=c(e),t}function p(e){const t=h(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function g(e){return y(e,0,1)}function b(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const m=2.2},44280:(e,t,n)=>{n.d(t,{EJ:()=>l,g7:()=>a,gr:()=>s});var r=n(34727),o=n(38954),i=n(51850);function s(e,t){return(0,o.e)(e,t)/(0,o.l)(e)}function a(e,t){const n=(0,o.e)(e,t)/((0,o.l)(e)*(0,o.l)(t));return-(0,r.XM)(n)}function l(e,t,n){(0,o.n)(u,e),(0,o.n)(c,t);const i=(0,o.e)(u,c),s=(0,r.XM)(i),a=(0,o.h)(u,u,c);return(0,o.e)(a,n)<0?2*Math.PI-s:s}const u=(0,i.vt)(),c=(0,i.vt)()},48163:(e,t,n)=>{function r(){return[0,0]}function o(e){return[e[0],e[1]]}function i(e,t){return[e,t]}function s(){return i(1,1)}function a(){return i(1,0)}function l(){return i(0,1)}n.d(t,{Un:()=>u,fA:()=>i,o8:()=>o,vt:()=>r});const u=s(),c=a(),f=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const n=Math.min(2,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t},fromValues:i,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48425:(e,t,n)=>{n.d(t,{A:()=>y});var r,o=n(31635),i=n(4718),s=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(51857),c=n(20061),f=n(68197),d=n(25482),h=n(56507);let p=r=class extends d.A{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new r({description:this.description,label:this.label,values:(0,i.o8)(this.values),color:(0,i.o8)(this.color)})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,o.Cg)([(0,s.MZ)({type:[String],json:{write:{isRequired:!0}}})],p.prototype,"values",void 0),(0,o.Cg)([(0,s.MZ)({type:f.A,json:{type:[h.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),p=r=(0,o.Cg)([(0,l.$)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],p);const g=p;var b;let y=b=class extends u.A{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new b({...this.cloneProperties(),field:(0,i.o8)(this.field),fieldTransformType:(0,i.o8)(this.fieldTransformType),colorUniqueValueInfos:(0,i.o8)(this.colorUniqueValueInfos),legendOptions:(0,i.o8)(this.legendOptions)})}};(0,o.Cg)([(0,a.e)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],y.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:{isRequired:!0}},type:String})],y.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:u.A.fieldTransformTypeKebabDict.apiValues,json:{type:u.A.fieldTransformTypeKebabDict.jsonValues,read:u.A.fieldTransformTypeKebabDict.read,write:u.A.fieldTransformTypeKebabDict.write}})],y.prototype,"fieldTransformType",void 0),(0,o.Cg)([(0,s.MZ)({type:[g],json:{write:{isRequired:!0}}})],y.prototype,"colorUniqueValueInfos",void 0),(0,o.Cg)([(0,s.MZ)({type:c.A,json:{write:!0}})],y.prototype,"legendOptions",void 0),y=b=(0,o.Cg)([(0,l.$)("esri.renderers.PointCloudUniqueValueRenderer")],y)},51850:(e,t,n)=>{function r(){return[0,0,0]}function o(e){return[e[0],e[1],e[2]]}function i(e,t,n){return[e,t,n]}function s(e,t,n){return[e,t,n]}function a(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function l(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function f(){return i(0,0,1)}n.d(t,{CN:()=>s,Cb:()=>b,Cw:()=>p,JP:()=>g,Un:()=>h,ci:()=>a,fA:()=>i,o8:()=>o,uY:()=>d,vt:()=>r});const d=[0,0,0],h=l(),p=u(),g=c(),b=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:p,UNIT_Y:g,UNIT_Z:b,ZEROS:d,clone:o,create:r,freeze:s,fromArray:a,fromValues:i,ones:l,unitX:u,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},51857:(e,t,n)=>{n.d(t,{A:()=>A});var r,o=n(31635),i=n(66552),s=n(25482),a=n(4718),l=n(10107),u=(n(44208),n(53966),n(40608));n(87811);let c=r=class extends s.A{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new r({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],c.prototype,"minValue",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],c.prototype,"maxValue",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.renderers.support.pointCloud.ColorModulation")],c);const f=c,d=new i.J({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let h=class extends s.A{};(0,o.Cg)([(0,l.MZ)({type:d.apiValues,readOnly:!0,nonNullable:!0,json:{type:d.jsonValues,read:!1,write:{writer:d.write,isRequired:!0}}})],h.prototype,"type",void 0),h=(0,o.Cg)([(0,u.$)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],h);const p=h;var g,b=n(93223);let y=g=class extends p{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new g({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,o.Cg)([(0,b.e)({pointCloudFixedSizeAlgorithm:"fixed-size"})],y.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],y.prototype,"size",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"useRealWorldSymbolSizes",void 0),y=g=(0,o.Cg)([(0,u.$)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],y);const m=y;var M;let w=M=class extends p{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new M({scaleFactor:this.scaleFactor})}};(0,o.Cg)([(0,b.e)({pointCloudSplatAlgorithm:"splat"})],w.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,value:1,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"scaleFactor",void 0),w=M=(0,o.Cg)([(0,u.$)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],w);const v={key:"type",base:p,typeMap:{"fixed-size":m,splat:w}},C=(0,i.O)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let A=class extends s.A{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,a.o8)(this.pointSizeAlgorithm),colorModulation:(0,a.o8)(this.colorModulation),pointsPerInch:(0,a.o8)(this.pointsPerInch)}}};(0,o.Cg)([(0,l.MZ)({type:C.apiValues,readOnly:!0,nonNullable:!0,json:{type:C.jsonValues,read:!1,write:{writer:C.write,isRequired:!0}}})],A.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({types:v,json:{write:!0}})],A.prototype,"pointSizeAlgorithm",void 0),(0,o.Cg)([(0,l.MZ)({type:f,json:{write:!0}})],A.prototype,"colorModulation",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0},nonNullable:!0,type:Number})],A.prototype,"pointsPerInch",void 0),A=(0,o.Cg)([(0,u.$)("esri.renderers.PointCloudRenderer")],A),(A||(A={})).fieldTransformTypeKebabDict=new i.J({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"})},59418:(e,t,n)=>{n.d(t,{wH:()=>g,MA:()=>d,E5:()=>h,m0:()=>y});var r=n(49186),o=n(4718),i=n(53966),s=n(34275),a=n(37203);const l=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,n){let o="",i=0;for(;i<n;){const s=e[t+i];if(s<128)o+=String.fromCharCode(s),i++;else if(s>=192&&s<224){if(i+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&s)<<6|63&e[t+i+1];o+=String.fromCharCode(a),i+=2}else if(s>=224&&s<240){if(i+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&s)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];o+=String.fromCharCode(a),i+=3}else{if(!(s>=240&&s<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&s)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(a);i+=4}}}return o}function c(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<t.length;o++){const i=t[o],s=i.valueType||i.type,a=M[s];n.fields[i.property]=a(e,r),r+=m[s].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(e,t,n){const o=[];let i,s,a=0;for(s=0;s<e;s+=1){if(i=t[s],i>0){if(o.push(u(n,a,i-1)),0!==n[a+i-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);a+=i}return o}function d(e,t){return new(0,m[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function h(e,t){if(!e)return null;const n=e[t];return(0,s.IY)(e)?n===s.PI?null:n:(0,s._G)(e)?n===s.h2?null:n:n!=n?null:n}function p(e,t,n){if(t!==e&&l().error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function g(e,t){const n=c(e,t&&t.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,s=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:r,count:s},i=b[e]||"_"+e;o.vertexAttributes[i]=n,r+=v(n.valueType)*n.valuesPerElement*s}const a=i.faceCount;if(t.faces&&a){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:r,count:a};o.faces[e]=n,r+=v(n.valueType)*n.valuesPerElement*a}}const l=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&l){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:r,count:l};o.featureAttributes[e]=n,r+=("UInt64"===n.valueType?8:v(n.valueType))*n.valuesPerElement*l}}return p(r,e.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const b={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function y(e,t,n,i=!1){if("lepcc-rgb"===e.encoding)return i?(0,a.mb)(t):function(e){return Array.isArray(e)?e.length<s.y9?e:new Uint8Array(e):e.length<s.y9?Array.from(e):e}((0,a.mb)(t));if("lepcc-intensity"===e.encoding)return i?(0,a.Ax)(t):function(e){return Array.isArray(e)?e.length<s.y9?e:new Uint16Array(e):e.length<s.y9?Array.from(e):e}((0,a.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const u=function(e,t,n){const i=null!=t.header?c(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},s={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let a=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],l=(0,o.o8)(t[n]);if(l.count=i.fields.count??0,"String"===l.valueType){if(l.byteOffset=a,l.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!w(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{const e=v(l.valueType);a+=a%e!==0?e-a%e:0,l.byteOffset=a,l.byteCount=e*l.valuesPerElement*l.count}}a+=l.byteCount??0,s.entries[n]=l}return s.byteCount=a-s.byteOffset,s}(t,e,n);p(u.byteOffset+u.byteCount,t.byteLength,"attribute");const g=u.entries.attributeValues||u.entries.objectIds;if(g){if("String"===g.valueType){const e=u.entries.attributeByteCounts,n=d(t,e),r=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,g);return g.timeEncoding?function(e,t,n){return f(e,t,n).map(e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t})}(e.count,n,r):f(e.count,n,r)}return i?d(t,g):function(e,t){const n=d(e,t);if(n.length>=s.y9)return n;const r=new Array;return n.forEach((e,t)=>r.push(h(n,t))),r}(t,g)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const m={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},M={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function w(e){return m.hasOwnProperty(e)}function v(e){return w(e)?m[e].BYTES_PER_ELEMENT:0}},63531:(e,t,n)=>{n.d(t,{A:()=>y});var r,o=n(31635),i=n(4718),s=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(51857),c=n(20061),f=n(68197),d=n(25482),h=n(56507);let p=r=class extends d.A{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new r({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,i.o8)(this.color)})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue",isRequired:!0}}})],p.prototype,"minValue",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue",isRequired:!0}}})],p.prototype,"maxValue",void 0),(0,o.Cg)([(0,s.MZ)({type:f.A,json:{type:[h.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),p=r=(0,o.Cg)([(0,l.$)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],p);const g=p;var b;let y=b=class extends u.A{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new b({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,i.o8)(this.colorClassBreakInfos),legendOptions:(0,i.o8)(this.legendOptions)})}};(0,o.Cg)([(0,a.e)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],y.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:{isRequired:!0}},type:String})],y.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:c.A,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,o.Cg)([(0,s.MZ)({type:u.A.fieldTransformTypeKebabDict.apiValues,json:{type:u.A.fieldTransformTypeKebabDict.jsonValues,read:u.A.fieldTransformTypeKebabDict.read,write:u.A.fieldTransformTypeKebabDict.write}})],y.prototype,"fieldTransformType",void 0),(0,o.Cg)([(0,s.MZ)({type:[g],json:{write:{isRequired:!0}}})],y.prototype,"colorClassBreakInfos",void 0),y=b=(0,o.Cg)([(0,l.$)("esri.renderers.PointCloudClassBreaksRenderer")],y)},68197:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(40876),o=n(34727),i=n(56507);function s(e){return(0,o.qE)((0,i.Vr)(e),0,255)}function a(e,t){const n=e.toString(16).padStart(2,"0");return t?n.slice(0,1):n}class l{static blendColors(e,t,n,r=new l){return r.r=Math.round(e.r+(t.r-e.r)*n),r.g=Math.round(e.g+(t.g-e.g)*n),r.b=Math.round(e.b+(t.b-e.b)*n),r.a=e.a+(t.a-e.a)*n,r._sanitize()}static fromRgb(e,t){const n=(0,r.lT)(e);return n?l.fromArray(n,t):null}static fromHex(e,t=new l){const n=(0,r.oW)(e);return n?l.fromArray(n,t):null}static fromArray(e,t=new l){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const n=(0,r.Eq)(e);return n?l.fromArray(n,t):null}static fromJSON(e){return null!=e?new l([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?l.fromString(e,this):Array.isArray(e)?l.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof l||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,n=e?.digits??6,r=3===n||4===n,o=4===n||8===n,i=`#${a(this.r,r)}${a(this.g,r)}${a(this.b,r)}${o?a(Math.round(255*this.a),r):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=s(this.r),n=s(this.g),r=s(this.b);return 0===e||1!==this.a?[t,n,r,s(255*this.a)]:[t,n,r]}clone(){return new l(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(e,t,n,r){this.r=e,this.g=t,this.b=n,this.a=r}}l.prototype.declaredClass="esri.Color"},69540:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(31635),o=n(69622),i=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(40608);const u=e=>{const t=e;let n=class extends t{clone(e){const t=(0,a.oY)(this);(0,s.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,r=t.store,o={},l=new Map;for(const t in n){const s=n[t],a=r?.originOf(t),u=s.clonable;if(s.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let f=null;f="function"==typeof u?u(c,e):"reference"===u?c:(0,i.TU)(c,e),null!=c&&null==f||(0===a?l.set(t,f):o[t]=f)}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return n=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],n),n};let c=class extends(u(o.A)){};c=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=u;const f=c},69846:(e,t,n)=>{n.d(t,{A:()=>d});var r,o=n(31635),i=n(4718),s=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(51857),c=n(20061),f=n(72500);let d=r=class extends u.A{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new r({...this.cloneProperties(),field:(0,i.o8)(this.field),fieldTransformType:(0,i.o8)(this.fieldTransformType),stops:(0,i.o8)(this.stops),legendOptions:(0,i.o8)(this.legendOptions)})}};(0,o.Cg)([(0,a.e)({pointCloudStretchRenderer:"point-cloud-stretch"})],d.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:{isRequired:!0}},type:String})],d.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:c.A,json:{write:!0}})],d.prototype,"legendOptions",void 0),(0,o.Cg)([(0,s.MZ)({type:u.A.fieldTransformTypeKebabDict.apiValues,json:{type:u.A.fieldTransformTypeKebabDict.jsonValues,read:u.A.fieldTransformTypeKebabDict.read,write:u.A.fieldTransformTypeKebabDict.write}})],d.prototype,"fieldTransformType",void 0),(0,o.Cg)([(0,s.MZ)({type:[f.A],json:{write:{isRequired:!0}}})],d.prototype,"stops",void 0),d=r=(0,o.Cg)([(0,l.$)("esri.renderers.PointCloudStretchRenderer")],d)},72385:(e,t,n)=>{function r(){return new Float32Array(3)}function o(e){const t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(e,t,n){const r=new Float32Array(3);return r[0]=e,r[1]=t,r[2]=n,r}function s(){return r()}function a(){return i(1,1,1)}function l(){return i(1,0,0)}function u(){return i(0,1,0)}function c(){return i(0,0,1)}n.d(t,{fA:()=>i,o8:()=>o,vt:()=>r});const f=s(),d=a(),h=l(),p=u(),g=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:h,UNIT_Y:p,UNIT_Z:g,ZEROS:f,clone:o,create:r,fromValues:i,ones:a,unitX:l,unitY:u,unitZ:c,zeros:s},Symbol.toStringTag,{value:"Module"}))},72500:(e,t,n)=>{n.d(t,{A:()=>d});var r,o=n(31635),i=n(68197),s=n(25482),a=n(10107),l=n(56507),u=(n(44208),n(87811),n(40608)),c=n(43937);let f=r=class extends s.A{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,n){t[n]=e??0}clone(){return new r({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,o.Cg)([(0,a.MZ)({type:i.A,json:{type:[l.jz],write:{isRequired:!0}}})],f.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"label",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],f.prototype,"value",void 0),(0,o.Cg)([(0,c.K)("value")],f.prototype,"writeValue",null),f=r=(0,o.Cg)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],f);const d=f},77690:(e,t,n)=>{n.d(t,{B8:()=>a,Ge:()=>d,I0:()=>f,KC:()=>l,hZ:()=>i,hs:()=>c,lw:()=>u,mg:()=>s,z0:()=>o});var r=n(34304);function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function i(e,t,n,r,o,i,s,a,l,u){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i,e[5]=s,e[6]=a,e[7]=l,e[8]=u,e}function s(e,t){if(e===t){const n=t[1],r=t[2],o=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=o}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function a(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8],f=c*s-a*u,d=-c*i+a*l,h=u*i-s*l;let p=n*f+r*d+o*h;return p?(p=1/p,e[0]=f*p,e[1]=(-c*r+o*u)*p,e[2]=(a*r-o*s)*p,e[3]=d*p,e[4]=(c*n-o*l)*p,e[5]=(-a*n+o*i)*p,e[6]=h*p,e[7]=(-u*n+r*l)*p,e[8]=(s*n-r*i)*p,e):null}function l(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8];return e[0]=s*c-a*u,e[1]=o*u-r*c,e[2]=r*a-o*s,e[3]=a*l-i*c,e[4]=n*c-o*l,e[5]=o*i-n*a,e[6]=i*u-s*l,e[7]=r*l-n*u,e[8]=n*s-r*i,e}function u(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],f=t[8],d=n[0],h=n[1],p=n[2],g=n[3],b=n[4],y=n[5],m=n[6],M=n[7],w=n[8];return e[0]=d*r+h*s+p*u,e[1]=d*o+h*a+p*c,e[2]=d*i+h*l+p*f,e[3]=g*r+b*s+y*u,e[4]=g*o+b*a+y*c,e[5]=g*i+b*l+y*f,e[6]=m*r+M*s+w*u,e[7]=m*o+M*a+w*c,e[8]=m*i+M*l+w*f,e}function c(e,t,n){const r=n[0],o=n[1],i=n[2];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e[6]=i*t[6],e[7]=i*t[7],e[8]=i*t[8],e}function f(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=n+n,a=r+r,l=o+o,u=n*s,c=r*s,f=r*a,d=o*s,h=o*a,p=o*l,g=i*s,b=i*a,y=i*l;return e[0]=1-f-p,e[3]=c-y,e[6]=d+b,e[1]=c+y,e[4]=1-u-p,e[7]=h-g,e[2]=d-b,e[5]=h+g,e[8]=1-u-f,e}function d(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],p=t[12],g=t[13],b=t[14],y=t[15],m=n*a-r*s,M=n*l-o*s,w=n*u-i*s,v=r*l-o*a,C=r*u-i*a,A=o*u-i*l,S=c*g-f*p,I=c*b-d*p,T=c*y-h*p,O=f*b-d*g,U=f*y-h*g,j=d*y-h*b;let x=m*j-M*U+w*O+v*T-C*I+A*S;return x?(x=1/x,e[0]=(a*j-l*U+u*O)*x,e[1]=(l*T-s*j-u*I)*x,e[2]=(s*U-a*T+u*S)*x,e[3]=(o*U-r*j-i*O)*x,e[4]=(n*j-o*T+i*I)*x,e[5]=(r*T-n*U-i*S)*x,e[6]=(g*A-b*C+y*v)*x,e[7]=(b*w-p*A-y*M)*x,e[8]=(p*C-g*w+y*m)*x,e):null}function h(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}const p=u,g=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e},adjoint:l,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},determinant:function(e){const t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],s=e[5],a=e[6],l=e[7],u=e[8];return t*(u*i-s*l)+n*(-u*o+s*a)+r*(l*o-i*a)},equals:function(e,t){const n=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=t[0],h=t[1],p=t[2],g=t[3],b=t[4],y=t[5],m=t[6],M=t[7],w=t[8],v=(0,r.FD)();return Math.abs(n-d)<=v*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-h)<=v*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-g)<=v*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(a-b)<=v*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(l-y)<=v*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-m)<=v*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-M)<=v*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2)},fromMat2d:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},fromMat4:o,fromQuat:f,fromRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromTranslation:function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},invert:a,isOrthoNormal:function(e){const t=(0,r.FD)(),n=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],f=e[8];return Math.abs(1-(n*n+s*s+u*u))<=t&&Math.abs(1-(o*o+a*a+c*c))<=t&&Math.abs(1-(i*i+l*l+f*f))<=t},mul:p,multiply:u,multiplyScalar:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e},multiplyScalarAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e},normalFromMat4:d,normalFromMat4Legacy:function(e,t){const n=t[0],r=t[1],o=t[2],i=t[4],s=t[5],a=t[6],l=t[8],u=t[9],c=t[10],f=c*s-a*u,d=-c*i+a*l,h=u*i-s*l,p=n*f+r*d+o*h;if(!p)return null;const g=1/p;return e[0]=f*g,e[1]=(-c*r+o*u)*g,e[2]=(a*r-o*s)*g,e[3]=d*g,e[4]=(c*n-o*l)*g,e[5]=(-a*n+o*i)*g,e[6]=h*g,e[7]=(-u*n+r*l)*g,e[8]=(s*n-r*i)*g,e},projection:function(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e},rotate:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],f=t[8],d=Math.sin(n),h=Math.cos(n);return e[0]=h*r+d*s,e[1]=h*o+d*a,e[2]=h*i+d*l,e[3]=h*s-d*r,e[4]=h*a-d*o,e[5]=h*l-d*i,e[6]=u,e[7]=c,e[8]=f,e},scale:c,scaleByVec2:function(e,t,n){const r=n[0],o=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e},set:i,str:function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"},sub:g,subtract:h,translate:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],f=t[8],d=n[0],h=n[1];return e[0]=r,e[1]=o,e[2]=i,e[3]=s,e[4]=a,e[5]=l,e[6]=d*r+h*s+u,e[7]=d*o+h*a+c,e[8]=d*i+h*l+f,e},transpose:s},Symbol.toStringTag,{value:"Module"}))},82534:(e,t,n)=>{function r(){return[0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3]]}n.d(t,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(e,t,n,r){return[e,t,n,r]}},Symbol.toStringTag,{value:"Module"}))},93223:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(66552),o=n(10107);function i(e,t={}){const n=e instanceof r.J?e:new r.J(e,t),{alwaysWriteDefaults:i,default:s,ignoreUnknown:a=!0,name:l,nonNullable:u,readOnly:c=!1}=t;return(0,o.MZ)({type:a?n.apiValues:String,json:{type:n.jsonValues,default:s,name:l,read:!c&&{reader:n.read},write:{writer:n.write,alwaysWriteDefaults:i}},nonNullable:u,readOnly:c})}}}]);