@arcgis/core 4.34.0-next.43 → 4.34.0-next.45

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 (240) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/0494e1212dd94d927287.js +1 -0
  3. package/assets/esri/core/workers/chunks/08840c4d3df711065571.js +1 -0
  4. package/assets/esri/core/workers/chunks/{42c5d957813080143e5a.js → 09268dc856c3d5ce178f.js} +1 -1
  5. package/assets/esri/core/workers/chunks/092cb42b88ecfb9c4a07.js +1 -0
  6. package/assets/esri/core/workers/chunks/0f20c0eec850a39620a1.js +1 -0
  7. package/assets/esri/core/workers/chunks/129144cbdb3fcbb87baf.js +1 -0
  8. package/assets/esri/core/workers/chunks/{b40845b45f8d7cd347a1.js → 17df0f766ee1e323d3fa.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{cf474c055a85bdbfa8d0.js → 19f1bfe815896d4983af.js} +1 -1
  10. package/assets/esri/core/workers/chunks/2370ff6c3006691ac688.js +1 -0
  11. package/assets/esri/core/workers/chunks/28a5a7c6b3d6902146f6.js +1 -0
  12. package/assets/esri/core/workers/chunks/{bb23371335ac049861e6.js → 28a85997c9003cacdefb.js} +1 -1
  13. package/assets/esri/core/workers/chunks/2942ab268f24cea2e722.js +1 -0
  14. package/assets/esri/core/workers/chunks/{3a2cbfb03103c402c6c5.js → 2b75212c31145cc07d16.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{5958598da96464128aed.js → 2f65081bfedeab44d6cb.js} +1 -1
  16. package/assets/esri/core/workers/chunks/33f3e3d05429f845c139.js +1 -0
  17. package/assets/esri/core/workers/chunks/{68a69d3fcad6febf55f6.js → 349da65a8793f7873366.js} +6 -6
  18. package/assets/esri/core/workers/chunks/379a4f664e77ad1fffe9.js +1 -0
  19. package/assets/esri/core/workers/chunks/45b450c045d5fadf71b6.js +1 -0
  20. package/assets/esri/core/workers/chunks/4622a3e64d3c4aafa56b.js +1 -0
  21. package/assets/esri/core/workers/chunks/{9aa84b86262fa8334bc4.js → 48514235c32917e43a3f.js} +44 -44
  22. package/assets/esri/core/workers/chunks/4c6862ad3af947c704f7.js +1 -0
  23. package/assets/esri/core/workers/chunks/4d544e3e19ce07c2c195.js +1 -0
  24. package/assets/esri/core/workers/chunks/{6759319f3fd2d03c446b.js → 5c556468e2a598ab793a.js} +1 -1
  25. package/assets/esri/core/workers/chunks/64c31c90e4c589ca2f04.js +1 -0
  26. package/assets/esri/core/workers/chunks/709dc98379f4ce18a0b5.js +1 -0
  27. package/assets/esri/core/workers/chunks/73140c5c0beda7ea3703.js +1 -0
  28. package/assets/esri/core/workers/chunks/7b560ac0be93c6aa9940.js +1 -0
  29. package/assets/esri/core/workers/chunks/{ff34fdda7899e784ac73.js → 7c7338af011b8f0d7218.js} +1 -1
  30. package/assets/esri/core/workers/chunks/838998bfda90f099c6e9.js +1 -0
  31. package/assets/esri/core/workers/chunks/84f3e1ce25c36e46fd2a.js +1 -0
  32. package/assets/esri/core/workers/chunks/863e87ac982d7727b435.js +1 -0
  33. package/assets/esri/core/workers/chunks/{c6da9ba188b627ab3b79.js → 8aa77a5e82c033512b45.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{b1c2e5e0a70fb5d27da5.js → 8bab4c59c9b644224ecb.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{f4b145feab275b268c2e.js → 8cc700da2ac58849a708.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{28d71e1b866113650c75.js → 8e36693e5213c20158d7.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{1acc620bfd2983d6853f.js → 8fae35af98c29bef8500.js} +1 -1
  38. package/assets/esri/core/workers/chunks/914eaed113dda727eb47.js +1 -0
  39. package/assets/esri/core/workers/chunks/98175b454e807b1a3c5f.js +1 -0
  40. package/assets/esri/core/workers/chunks/9a20be3b02c9d6349b8d.js +1 -0
  41. package/assets/esri/core/workers/chunks/9d30fed26e0d84ef893b.js +1 -0
  42. package/assets/esri/core/workers/chunks/a1ff4c252012d5026133.js +1 -0
  43. package/assets/esri/core/workers/chunks/{ddeaf688d72b2873c4ac.js → a2a13dd95238bb144479.js} +1 -1
  44. package/assets/esri/core/workers/chunks/a34d98abcf958a632b0f.js +1 -0
  45. package/assets/esri/core/workers/chunks/a3a23a56df4e5ee86bb2.js +1 -0
  46. package/assets/esri/core/workers/chunks/{5ae6e2b3557fe8730072.js → b287624909578d307e07.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{5b91a49202129eedaf00.js → b4304673696fc0774bff.js} +1 -1
  48. package/assets/esri/core/workers/chunks/b45772b72f2b8f4fd53f.js +1 -0
  49. package/assets/esri/core/workers/chunks/c645009f3d2576494bfc.js +1 -0
  50. package/assets/esri/core/workers/chunks/ce569860b170700e9b31.js +1 -0
  51. package/assets/esri/core/workers/chunks/cf5db995ba88912cf6b7.js +1 -0
  52. package/assets/esri/core/workers/chunks/{b85dbefdb09bc6c99e0d.js → cff15600d0ec7b19dffb.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{7e99fc78bd0f40a8ba81.js → d1c97fdcba6eb443cb1c.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{615915e7c48f0a3d0060.js → d547b27ac750953a998f.js} +1 -1
  55. package/assets/esri/core/workers/chunks/d70e1b8b8bee88a7a5b8.js +353 -0
  56. package/assets/esri/core/workers/chunks/da396fdbd6f213042aa7.js +1 -0
  57. package/assets/esri/core/workers/chunks/dbc9bb3011f16ce33f71.js +1 -0
  58. package/assets/esri/core/workers/chunks/dd0f1e06b7df953ea223.js +1 -0
  59. package/assets/esri/core/workers/chunks/dd79d3aa6e1a8aee6881.js +1 -0
  60. package/assets/esri/core/workers/chunks/e1272db232194cbe102c.js +1 -0
  61. package/assets/esri/core/workers/chunks/{14b536e0c1de6c7422bc.js → e408ccee12bfe089c913.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{7f2bdb8da5c9ffd7d05e.js → e58336aafe8c95bb6831.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{30b9c131b69297ee186f.js → e59e09766b130a05c617.js} +1 -1
  64. package/assets/esri/core/workers/chunks/e65fc26f4384a328a753.js +1 -0
  65. package/assets/esri/core/workers/chunks/{e3f5afdf133c58b3d161.js → ea262087938335fed19f.js} +1 -1
  66. package/assets/esri/core/workers/chunks/eafc4da265469e9e5e0b.js +1 -0
  67. package/assets/esri/core/workers/chunks/{aaab7694eb333ad480f5.js → ec9fd49e0252797f7f6a.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{655b8d24ffe5405f8ba1.js → f2a2d3cda4a3dc0a8caf.js} +1 -1
  69. package/assets/esri/core/workers/chunks/f67997250569069ee2ef.js +1 -0
  70. package/assets/esri/core/workers/chunks/fc3a6f2f99629e57dbbd.js +1 -0
  71. package/assets/esri/core/workers/chunks/ff9eef1940eaa3406223.js +1 -0
  72. package/assets/esri/libs/i3s/i3s.wasm +0 -0
  73. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  74. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace.json +1 -1
  75. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_en.json +1 -1
  76. package/chunks/bundle.js +1 -1
  77. package/chunks/i3s.js +1 -1
  78. package/config.js +1 -1
  79. package/core/workers/registry.js +1 -1
  80. package/geometry/operators/json/generalizeOperator.js +5 -0
  81. package/geometry/operators/json/simplifyOperator.js +1 -1
  82. package/interfaces.d.ts +3 -3
  83. package/kernel.js +1 -1
  84. package/layers/ParquetLayer.js +1 -1
  85. package/layers/SceneLayer.js +1 -1
  86. package/layers/SubtypeGroupLayer.js +1 -1
  87. package/layers/graphics/data/QueryEngine.js +1 -1
  88. package/layers/graphics/data/QueryEngineResult.js +1 -1
  89. package/layers/graphics/sources/ParquetSource.js +1 -1
  90. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  91. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  92. package/layers/graphics/sources/support/ParquetSourceWorker.js +5 -0
  93. package/layers/mixins/ArcGISImageService.js +1 -1
  94. package/layers/mixins/TemporalSceneLayer.js +1 -1
  95. package/layers/support/fieldUtils.js +1 -1
  96. package/layers/support/parquetUtils.js +1 -1
  97. package/layers/support/rasterDatasets/multipartParser.js +1 -1
  98. package/layers/support/rasterDatasets/pixelReader.js +1 -1
  99. package/libs/parquet/parquet.js +1 -1
  100. package/networks/RulesTable.js +1 -1
  101. package/package.json +1 -1
  102. package/portal/schemas/definitions.js +1 -1
  103. package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
  104. package/rest/support/AlgorithmicColorRamp.js +1 -1
  105. package/rest/support/MultipartColorRamp.js +1 -1
  106. package/smartMapping/statistics/support/statsWorker.js +1 -1
  107. package/support/revision.js +1 -1
  108. package/support/zipUtils.js +1 -1
  109. package/symbols/cim/CIMEffects.js +1 -1
  110. package/symbols/cim/CIMResourceManager.js +1 -1
  111. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  112. package/symbols/cim/CIMSymbolHelper.js +1 -1
  113. package/symbols/cim/animationUtils.js +1 -1
  114. package/symbols/cim/cimAnalyzer.js +1 -1
  115. package/symbols/cim/effects/CIMEffectHelper.js +1 -1
  116. package/symbols/cim/effects/EffectAddControlPoints.js +1 -1
  117. package/symbols/cim/effects/EffectArrow.js +1 -1
  118. package/symbols/cim/effects/EffectBuffer.js +1 -1
  119. package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
  120. package/symbols/cim/effects/EffectCut.js +1 -1
  121. package/symbols/cim/effects/EffectDashes.js +1 -1
  122. package/symbols/cim/effects/EffectDonut.js +1 -1
  123. package/symbols/cim/effects/EffectEnclosingPolygon.js +1 -1
  124. package/symbols/cim/effects/EffectJog.js +1 -1
  125. package/symbols/cim/effects/EffectMove.js +1 -1
  126. package/symbols/cim/effects/EffectOffset.js +1 -1
  127. package/symbols/cim/effects/EffectRadial.js +1 -1
  128. package/symbols/cim/effects/EffectReverse.js +1 -1
  129. package/symbols/cim/effects/EffectRotate.js +1 -1
  130. package/symbols/cim/effects/EffectScale.js +1 -1
  131. package/symbols/cim/effects/EffectSuppress.js +1 -1
  132. package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
  133. package/symbols/cim/effects/EffectWave.js +1 -1
  134. package/symbols/cim/fitVectorMarker.js +1 -1
  135. package/symbols/cim/placements/CIMMarkerPlacementHelper.js +1 -1
  136. package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
  137. package/symbols/cim/placements/PlacementAtExtremities.js +1 -1
  138. package/symbols/cim/placements/PlacementAtRatioPositions.js +1 -1
  139. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  140. package/symbols/cim/placements/PlacementOnLine.js +1 -1
  141. package/symbols/cim/placements/PlacementOnVertices.js +1 -1
  142. package/symbols/cim/placements/PlacementPolygonCenter.js +1 -1
  143. package/symbols/cim/utils.js +1 -1
  144. package/symbols/support/gfxUtils.js +1 -1
  145. package/symbols/support/symbolLayerUtils.js +1 -1
  146. package/views/2d/engine/webgl/TextureManager.js +1 -1
  147. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  148. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  149. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  150. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/projection.js +1 -1
  151. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  152. package/views/2d/input/handlers/MouseWheelZoom.js +1 -1
  153. package/views/2d/interactive/editingTools/MediaTransformToolsWrapper.js +1 -1
  154. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  155. package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
  156. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  157. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
  158. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  159. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  160. package/views/3d/layers/FlowSubView3D.js +1 -1
  161. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  162. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  163. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  164. package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
  165. package/views/3d/support/flow/StreamlineResources3D.js +5 -0
  166. package/views/3d/support/flow/StreamlineResources3DOverlay.js +5 -0
  167. package/views/3d/support/flow/StreamlineResources3DShape.js +5 -0
  168. package/views/3d/support/flow/geometryUtils.js +1 -1
  169. package/views/3d/terrain/OverlayRenderer.js +1 -1
  170. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  171. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  172. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +5 -5
  173. package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
  174. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  175. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  176. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  177. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  178. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  179. package/views/SelectionManager.js +1 -1
  180. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  181. package/views/support/TextureCompressionWorker.js +1 -1
  182. package/webscene/spec-certification/compare.js +1 -1
  183. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  184. package/widgets/BatchAttributeForm.js +1 -1
  185. package/widgets/CatalogLayerList.js +1 -1
  186. package/widgets/CoordinateConversion/support/Format.js +1 -1
  187. package/widgets/Editor/UpdateWorkflow.js +1 -1
  188. package/widgets/Editor/workflowUtils.js +1 -1
  189. package/widgets/ElevationProfile/ElevationProfileController.js +1 -1
  190. package/widgets/Feature/FeatureRelationship.js +1 -1
  191. package/widgets/Feature/FeatureViewModel.js +1 -1
  192. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  193. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  194. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  195. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  196. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  197. package/widgets/Print.js +1 -1
  198. package/widgets/Sketch/SketchViewModel.js +1 -1
  199. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  200. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  201. package/widgets/support/SnappingControls.js +1 -1
  202. package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
  203. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationList.js +1 -1
  204. package/assets/esri/core/workers/chunks/016d421114118307d4dd.js +0 -1
  205. package/assets/esri/core/workers/chunks/03df4668002eb4cb4f98.js +0 -1
  206. package/assets/esri/core/workers/chunks/087ae1e3e767f0e678e5.js +0 -1
  207. package/assets/esri/core/workers/chunks/0b45566fad2cbb03fea1.js +0 -1
  208. package/assets/esri/core/workers/chunks/0d73afce787ee1e76b21.js +0 -1
  209. package/assets/esri/core/workers/chunks/21dd626a5b5ea6a7e18e.js +0 -1
  210. package/assets/esri/core/workers/chunks/24e76fa530fc0c495fb5.js +0 -1
  211. package/assets/esri/core/workers/chunks/2a26c3fc324d672ebe88.js +0 -1
  212. package/assets/esri/core/workers/chunks/345ed9ac44e47355803e.js +0 -1
  213. package/assets/esri/core/workers/chunks/3984ca7e05f30724adaf.js +0 -1
  214. package/assets/esri/core/workers/chunks/439128f23fa091633d2d.js +0 -1
  215. package/assets/esri/core/workers/chunks/489391ed1d443140617d.js +0 -1
  216. package/assets/esri/core/workers/chunks/6b73926feb5c5d957062.js +0 -1
  217. package/assets/esri/core/workers/chunks/774844eea928efa811f2.js +0 -1
  218. package/assets/esri/core/workers/chunks/7b82ed4cc475c782256b.js +0 -1
  219. package/assets/esri/core/workers/chunks/7ef29640de297a0cf744.js +0 -1
  220. package/assets/esri/core/workers/chunks/8867368ab9b005460f19.js +0 -353
  221. package/assets/esri/core/workers/chunks/8c3c752408fac3db05cf.js +0 -1
  222. package/assets/esri/core/workers/chunks/8ca95499e00ce8b0af9a.js +0 -1
  223. package/assets/esri/core/workers/chunks/98ac849cccc4d5316021.js +0 -1
  224. package/assets/esri/core/workers/chunks/9cd9b22354dbdf1b1df0.js +0 -1
  225. package/assets/esri/core/workers/chunks/a89c060ad302381aaf7d.js +0 -1
  226. package/assets/esri/core/workers/chunks/af98c7546be409303213.js +0 -1
  227. package/assets/esri/core/workers/chunks/b01a90ce699058307bc2.js +0 -1
  228. package/assets/esri/core/workers/chunks/c110941e87923ba47193.js +0 -1
  229. package/assets/esri/core/workers/chunks/c47227a626edc1e1ecf1.js +0 -1
  230. package/assets/esri/core/workers/chunks/c474800508e3ad5ce9d7.js +0 -1
  231. package/assets/esri/core/workers/chunks/d5d2d4df407cf078bb81.js +0 -1
  232. package/assets/esri/core/workers/chunks/d93b24e863379116b2aa.js +0 -1
  233. package/assets/esri/core/workers/chunks/da6f46211551a96dce19.js +0 -1
  234. package/assets/esri/core/workers/chunks/dd9be173cddc16a354ed.js +0 -1
  235. package/assets/esri/core/workers/chunks/e6d08230adb90b9a2a17.js +0 -1
  236. package/assets/esri/core/workers/chunks/eb7dd722e4cd7f83b3f5.js +0 -1
  237. package/assets/esri/core/workers/chunks/f1adf8ebc2c1b93857bf.js +0 -1
  238. package/assets/esri/core/workers/chunks/fb84fa28978a1820a725.js +0 -1
  239. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/loadGeometryEngine.js +0 -5
  240. package/views/3d/support/flow/StreamlinesResources3D.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9655],{563:(t,e,r)=>{r.d(e,{QueueProcessor:()=>h});var n=r(97768),s=r(74887),i=r(9775),o=r(32587),a=r(96211),u=r(44794);class l{constructor(t,e){this.item=t,this.controller=e,this.promise=null}}class h{constructor(t){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,u.v)(!1),this.concurrency=1,t.concurrency&&(this.concurrency=t.concurrency),this._queue=new i.A(t.peeker),this.process=t.process}destroy(){this.clear(),this._schedule=(0,n.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}abort(t){const e=this._controllers.get(t);e&&e.abort()}clear(){this._queue.clear();const t=[];this._controllers.forEach(e=>t.push(e)),this._controllers.clear(),t.forEach(t=>t.abort()),this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((e,r)=>t(r))}get(t){const e=this._deferreds.get(t);return e?e.promise:void 0}isOngoing(t){return this._processingItems.has(t)}has(t){return this._deferreds.has(t)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,e){const r=this.get(t);if(r)return r;const n=new AbortController;let i=null;e&&(i=(0,s.u7)(e,()=>n.abort()));const o=()=>{a.remove(),null!=i&&i.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()},a=(0,s.NY)(n.signal,()=>{const e=this._processingItems.get(t);e&&e.controller.abort(),o(),u.reject((0,s.NK)())}),u=(0,s.Tw)();return this._deferreds.set(t,u),this._controllers.set(t,n),u.promise.then(o,o),this._queue.push(t),this._scheduleNext(),u.promise}last(){return this._queue.last()}lastPromise(){const t=this.last();return t?this.get(t):null}peek(){return this._queue.peek()}popLast(){const t=this._queue.popLast();return t&&(this._deferreds.get(t)?.reject((0,s.NK)()),this._removeItem(t)),t}reset(){const t=Array.from(this._processingItems.values());this._processingItems.clear();for(const e of t)this._queue.push(e.item),e.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.delete(t)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(e))}_processError(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(e))}_canProcessFulfillment(t){return!!this._deferreds.get(t.item)&&this._processingItems.get(t.item)===t}_process(t){if(null==t)return;let e;const r=new AbortController,n=new l(t,r);this._processingItems.set(t,n);try{e=this.process(t,r.signal)}catch(t){this._processError(n,t)}(0,s.$X)(e)?(n.promise=e,e.then(t=>this._processResult(n,t),t=>this._processError(n,t))):this._processResult(n,e)}}},2272:(t,e,r)=>{r.d(e,{Dl:()=>l,gf:()=>c,jV:()=>u,lF:()=>h});var n=r(92602),s=r(70333),i=r(4718),o=r(84952),a=r(926);function u(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function l(t){return"string"==typeof t?(0,o.An)(t):(0,i.o8)(t)}function h(t,e,r){const n={};for(const s in t){if("declaredClass"===s)continue;const i=t[s];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[s]=i.map(t=>h(t));else if("object"==typeof i)if(i.toJSON){const t=i.toJSON(r?.[s]);n[s]=e?t:JSON.stringify(t)}else n[s]=e?i:JSON.stringify(i);else n[s]=i}return n}async function c(t,e,i){const o=function(t,e){return t?e&&(0,a.Qc)(t)?e:(0,a.CG)(t)??s.id?.findCredential(t)?.token:null}(t,e);if(o)return o;!s.id&&n.A.request.useIdentity&&await Promise.all([r.e(7330),r.e(4813),r.e(3747)]).then(r.bind(r,73747));const u=await s.id.getCredential(t,i);return u?.token}},5162:(t,e,r)=>{r.d(e,{Im:()=>u,KN:()=>o});var n=r(70300),s=r(8446);class i{constructor(){this.modified=[],this.removed=[]}modify(t){this.modified.push(t)}remove(t){this.removed.push(t)}get isEmpty(){return 0===this.modified.length&&0===this.removed.length}}class o extends n.K{constructor(t){super(),this._reader=t,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(t,e){const r=s.K.fromOptimizedFeatures(t,e);return new o(r)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get isTiled(){return!1}getTileReader(t){if(!this._reader.getSize())return null;const e=this.queryFeaturesInBounds(t.bounds);return e.setTransformForDisplay(t.transform),e}}class a{constructor(t,e){this.inner=t,this.isWeak=e,this.lastWeak=null}get isStrong(){return!this.isWeak}}class u{constructor(){this._overrides=new Map,this._update=new i,this._lastCleanup=0}hasOverride(t){return this._overrides.has(t)}onChunkInsert(t){if(this._overrides.size){const e=t.reader.getCursor();for(;e.next();){const t=e.getObjectId(),r=this._overrides.get(t);if(r?.lastWeak&&(r.lastWeak=null),r?.isWeak){const t=e.readOptimizedFeatureWorldSpace();r.inner=t,this._update.modify(t),this.invalidate()}}}t.registerOverrides(this)}apply(t,e){const{updateWeak:r,removeWeak:n,update:s,remove:i,release:o}=t.commands;this.invalidate();for(const t of r){const e=new a(t,!0),r=this._overrides.get(t.objectId);r?.isStrong?r.lastWeak=e:(this._overrides.set(t.objectId,e),this._update.modify(t))}for(const t of s){const e=new a(t,!1),r=this._overrides.get(t.objectId);e.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(t.objectId,e),this._update.modify(t)}for(const t of n){const e=new a(null,!0),r=this._overrides.get(t);r?.isStrong?r.lastWeak=e:(this._overrides.set(t,e),this._update.remove(t))}for(const t of i){const e=new a(null,!1),r=this._overrides.get(t);e.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(t,e),this._update.remove(t)}if(o.length){const t=new Set;for(const e of o){const r=this._overrides.get(e);r?.lastWeak?(this._overrides.set(e,r.lastWeak),null==r.lastWeak.inner?this._update.remove(e):this._update.modify(r.lastWeak.inner)):r&&!r.isWeak&&(this._overrides.delete(e),t.add(e))}e.forEachUnsafe(e=>{const r=e.getObjectId();t.has(r)&&(this._update.modify(e.readOptimizedFeatureWorldSpace()),t.delete(r))});for(const e of t.values())this._update.remove(e)}}clearWeakOverrides(){for(const[t,e]of this._overrides.entries())e.isWeak&&this._overrides.delete(t);this.invalidate()}cleanup(t){if(this._overrides.size<1e4)return;const e=performance.now();if(e-this._lastCleanup<1e3)return;this._lastCleanup=e;const r=this._getWeakDeletions();if(!(r.size<1e4)){for(const e of t){const t=e.reader.withoutOverrides().getCursor();for(;t.next();){const e=t.getObjectId();r.delete(e)}}for(const t of r)this._overrides.delete(t);r.size&&this.invalidate()}}takeOverrideUpdate(){const t=this._update;return t.isEmpty?null:(this._update=new i,t)}asChunk(t){if(!this._chunk){const e=[];for(const t of this._overrides.values())null!=t.inner&&e.push(t.inner);this._chunk=o.fromFeatures(e,t)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(t,e,r){for(const[n,s]of this._overrides.entries()){if(s.isWeak&&null!=s.inner){const i=s.inner.attributes[r];i&&e.has(i)&&!t.has(i)&&t.set(i,n);continue}if(null!=s.lastWeak&&null!=s.lastWeak.inner){const i=s.lastWeak.inner.attributes[r];i&&e.has(i)&&!t.has(i)&&t.set(i,n)}}}_getWeakDeletions(){const t=new Set;for(const[e,r]of this._overrides.entries())r.isWeak&&null==r.inner&&t.add(e);return t}}},8446:(t,e,r)=>{r.d(e,{K:()=>a});var n=r(90708),s=r(43334),i=r(95466),o=r(99996);class a extends o.Y{static fromFeatures(t,e){const{geometryType:r}=e,s=(0,n.Di)([],t,r,!1,!1,e.featureIdInfo);for(let e=0;e<s.length;e++)s[e].displayId=t[e].displayId;return a.fromOptimizedFeatures(s,e)}static fromFeatureSet(t,e){const r=(0,n.q3)(t,e.featureIdInfo);return a.fromOptimizedFeatureSet(r,e)}static fromOptimizedFeatureSet(t,e){const r=a.fromOptimizedFeatures(t.features,e);return r._exceededTransferLimit=t.exceededTransferLimit,r._transform=t.transform,r._fieldsIndex=new i.A(t.fields),r}static fromOptimizedFeatures(t,e,r){const n=new a(t,e);return n._fieldsIndex=e.fieldsIndex,n._transform=r,n}static empty(t){return new a([],t)}constructor(t,e){super(e),this._exceededTransferLimit=!1,this._featureIndex=-1,this._fieldsIndex=null,this._geometryType=e.geometryType,this._features=t}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return!1}get hasM(){return!1}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let t="";for(const e in this._current.attributes)t+=this._current.attributes[e];return t}getIndex(){return this._featureIndex}setIndex(t){this._featureIndex=t}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(t){this._current.displayId=t}copy(){const t=new a(this._features,this.metadata);return this.copyInto(t),t}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,s.N3)(this._current)?(0,n.Rk)(this._current.geometry,2):0}_readX(){return(0,s.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,s.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,s.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(t,e){if(!this._fieldsIndex){const e=this._current.attributes[t];if(void 0!==e)return e;const r=t.toLowerCase();for(const t in this._current.attributes)if(t.toLowerCase()===r)return this._current.attributes[t];return}const r=this._fieldsIndex.get(t);if(!r)return;const n=this._current.attributes[r.name];return null==n?n:e&&this.fields.isDateField(t)?new Date(n):n}_readAttributes(){return this._current.attributes}copyInto(t){super.copyInto(t),t._featureIndex=this._featureIndex,t._transform=this._transform,t._fieldsIndex=this._fieldsIndex}}},9012:(t,e,r)=>{function n(t,{timeZone:e,timeExtent:r}){return{$view:{scale:t,timeZone:e,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(e,{N:()=>n})},9762:(t,e,r)=>{r.r(e),r.d(e,{projectBuffer:()=>s});var n=r(37539);function s(t,e,r,s,i,o,a=Math.floor(t.length/3)){const u=(0,n.jd)(e,i);if(null==u)return!1;if(u===n.pO){if(t===s&&r===o)return!0;const e=r+3*a;for(let n=r,i=o;n<e;n++,i++)s[i]=t[n];return!0}const l=r+3*a;for(let e=r,n=o;e<l;e+=3,n+=3)u(t,e,s,n);return!0}},9775:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(62788),s=r(95488);class i{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new s.I,this._items=new Set}get length(){return(0,n.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,n.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;const t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;const t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){const e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,n.gc)(this._observable),yield*this._items}}},16630:(t,e,r)=>{r.d(e,{s:()=>u}),r(44208);var n=r(69397),s=r(92722),i=r(57733),o=r(99996);let a;class u extends o.Y{constructor(t,e,r,s,i=new Uint32Array(r.size())){super(t),this._fields=e,this._inner=r,this._chunkId=s,this._displayIds=i,this._index=-1,this.usedMemory=n.qK,this._size=this._inner.size(),t.featureIdInfo.type,this._chunkId>65535&&console.error("Exceeded max allowed parquet reader size")}destroy(){super.destroy(),this._inner.free()}get fields(){return this._fields}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw new Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return!1}get hasM(){return!1}getInTransform(){return null}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let t="";for(const e of this.fields.fields)t+=this._readAttribute(e.name,!1)+".";return t}getObjectId(){return this._inner.rowId(this._index)}getDisplayId(){return this._displayIds[this._index]}setDisplayId(t){this._displayIds[this._index]=t}setIndex(t){this._index=t}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}setBoundsXMin(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(t){throw new Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){const t=new u(this.metadata,this._fields,this._inner,this._chunkId,this._displayIds);return this.copyInto(t),t}copyInto(t){super.copyInto(t),t._index=this._index}readGeometryForDisplayTransformed(t){const[e,r]=t.translate,[n,o]=t.scale;return a||(a=i.QuantizedGeometryBuffer.new()),this._inner.transformGeometry(a,e,r,n,o,this._index)?new s.A(a.readLengthsUnsafe(),a.readCoordsUnsafe()):null}_readGeometry(t){const e=this._inner.readCoords(this._index),r=this._inner.readLengths(this._index);return e&&r?new s.A(r,e):null}_readX(){return this._inner.readX(this._index)}_readY(){return this._inner.readY(this._index)}_readServerCentroid(){return null}_readAttribute(t,e){const r=this.fields.get(t);if(!r)return;if(null==r.attributeId)return this.getObjectId();const n=this._inner.readAttribute(this._index,r.attributeId);if(null==n)return n;const s=this.fields.isDateField(r.name);return e?null==n?n:s?new Date(n):n:n}_readAttributes(){const t={};for(const e of this._fields.fields)null!=e.attributeId&&(this._inner.isEmpty(e.attributeId)||(t[e.name]=this._readAttribute(e.name,!1)));return t.__OBJECTID=this.getObjectId(),t}}},28923:(t,e,r)=>{r.d(e,{j:()=>s});var n=r(70300);class s extends n.K{constructor(t,e,r,n){super(),this._reader=t,this._queryJSON=e,this._page=r,this._end=n,this.chunkId=`${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get isTiled(){return!1}getTileReader(t){const e=this.queryFeaturesInBounds(t.bounds);return e.setTransformForDisplay(t.transform),e}}},30661:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(43334),s=r(8446);class i{static{this.Shared=new i}getObjectId(t){return t.getObjectId()}getAttributes(t){return t.readAttributes()}getAttribute(t,e){return t.readAttribute(e)}getAttributeAsTimestamp(t,e){return t.readAttributeAsTimestamp(e)}cloneWithGeometry(t,e){const r=t.readAttributes(),i=new n.Om(e,r,null,t.getObjectId(),t.getDisplayId()),o=s.K.fromOptimizedFeatures([i],t.metadata);return o.setIndex(0),o}getGeometry(t){return t.readGeometryWorldSpace()}getCentroid(t,e){return t.readCentroidForDisplay()}}},32011:(t,e,r)=>{r.d(e,{d:()=>l});var n=r(19419),s=r(537),i=r(12359),o=r(95108),a=r(12176);const u=222045e-19;function l(t){if(0===t.totalSize)return null;const e=(0,s.z8)(t);if(!e)return null;const r=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*u;let o=0,a=0;t.reset();for(let e=0;t.nextPath();e++){const r=t.getCurrentRingArea();r>a&&(a=r,o=e)}if(t.seekPath(o),0===t.pathSize)return null;t.seekPathStart();const l=(0,s.B$)(t);if(Math.abs(a)<=2*r*r)return[(l[0]+l[2])/2,(l[1]+l[3])/2];t.seekPathStart();const _=(0,i.w2)(t,(0,n.vt)());if(null===_)return null;if(t.totalPoints<4)return _;const f=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],p=[NaN,NaN,NaN,NaN],g=[NaN,NaN,NaN,NaN];let m=!1,y=c(_,t,!0);0===y.distance&&(m=!0,f[0][0]=_[0],f[0][1]=_[1],y=c(_,t,!1)),p[0]=y.distance,g[0]=0;const b=[NaN,NaN];let v=!1,M=.25,T=-1,F=NaN;do{if(F=NaN,f[1]=d(t,w(l[0],l[2],M),0,e),isNaN(f[1][0])||isNaN(f[1][1])||(y=c(f[1],t,!1),F=y.distance),!isNaN(F)&&F>r&&h(f[1],t))v=!0,p[1]=F,g[1]=x(f[1],_);else if(!isNaN(F)&&F>T&&(T=F,b[0]=f[1][0],b[1]=f[1][1]),M-=.01,M<.1){if(!(T>=0))break;v=!0,p[1]=T,f[1][0]=b[0],f[1][1]=b[1],g[1]=x(f[1],_)}}while(!v);v=!1,M=.5,T=-1;let S=.01,k=1;do{if(F=NaN,f[2]=d(t,w(l[0],l[2],M),0,e),isNaN(f[2][0])||isNaN(f[2][1])||(y=c(f[2],t,!1),F=y.distance),!isNaN(F)&&F>r&&h(f[2],t))v=!0,p[2]=F,g[2]=x(f[2],_);else if(!isNaN(F)&&F>T)T=F,b[0]=f[2][0],b[1]=f[2][1];else if(F>T&&(T=F,b[0]=f[2][0],b[1]=f[2][1]),M=.5+S*k,S+=.01,k*=-1,M<.3||M>.7){if(!(T>=0))break;v=!0,p[2]=T,f[2][0]=b[0],f[2][1]=b[1],g[2]=x(f[2],_)}}while(!v);v=!1,M=.75,T=-1;do{if(F=NaN,f[3]=d(t,w(l[0],l[2],M),0,e),isNaN(f[3][0])||isNaN(f[3][1])||(y=c(f[3],t,!1),F=y.distance),!isNaN(F)&&F>r&&h(f[3],t))v=!0,p[3]=F,g[3]=x(f[3],_);else if(F>T&&(T=F,b[0]=f[3][0],b[1]=f[3][1]),M+=.01,M>.9){if(!(T>=0))break;v=!0,p[3]=T,f[3][0]=b[0],f[3][1]=b[1],g[3]=x(f[3],_)}}while(!v);const A=[0,1,2,3],P=m?0:1;let O;for(let t=P;t<4;t++)for(let t=P;t<3;t++){const e=g[t],r=g[t+1];I(e,r)>0&&(O=A[t],A[t]=A[t+1],A[t+1]=O,g[t]=r,g[t+1]=e)}let z=P,C=0,N=0;for(let t=P;t<4;t++){switch(t){case 0:N=2*p[A[t]];break;case 1:N=1.66666666*p[A[t]];break;case 2:N=1.33333333*p[A[t]];break;case 3:N=p[A[t]]}N>C&&(C=N,z=A[t])}return f[z]}function h(t,e){let r,n,s,i,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(r=e.x,n=e.y;e.nextPoint();r=s,n=i)s=e.x,i=e.y,n>t[1]!=i>t[1]&&((s-r)*(t[1]-n)-(i-n)*(t[0]-r)>0?o++:o--);return 0!==o}function c(t,e,r){if(r&&h(t,e))return{coord:t,distance:0};let n=1/0,s=0,i=0,a=[0,0],u=[0,0];const l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(a[0]=e.x,a[1]=e.y;e.nextPoint();a=u){u=[e.x,e.y],(0,o.gR)(l,t,a,u);const r=x(t,l);r<n&&(n=r,s=l[0],i=l[1])}return{coord:[s,i],distance:Math.sqrt(n)}}function d(t,e,r,s){const i=[e,0];let o=1/0,u=1/0,l=!1,h=!1;const c=[[e,s[1]-1],[e,s[3]+1]],d=[0,0],f=[0,0],p=[0,0],g=[[0,0],[0,0]],m=(0,n.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(g[0][0]=t.x,g[0][1]=t.y;t.nextPoint();g[0][0]=g[1][0],g[0][1]=g[1][1]){if(g[1][0]=t.x,g[1][1]=t.y,null===_(m,g))continue;if(f[0]=c[0][0],f[1]=c[0][1],p[0]=c[1][0],p[1]=c[1][1],0===y(m,f,p))continue;if(!(0,a.Ql)(c[0],c[1],g[0],g[1],d))continue;const e=d[1];o>u?e<o&&(o=e,l=!0):e<u&&(u=e,h=!0)}return l&&h?i[1]=(o+u)/2:i[0]=i[1]=NaN,i}function _(t,e){if(e.length<2)return null;t||(t=(0,n.vt)());const[r,s]=e[0],[i,o]=e[1];return t[0]=Math.min(r,i),t[1]=Math.min(s,o),t[2]=Math.max(r,i),t[3]=Math.max(s,o),t}const f=1,p=4,g=3,m=12;function y(t,e,r){let n=b(e,t),s=b(r,t);const i=t[0],o=t[1],a=t[2],u=t[3];if(n&s)return 0;if(!(n|s))return 4;const l=(n?1:0)|(s?2:0);do{const l=r[0]-e[0],h=r[1]-e[1];if(l>h)n&g?(n&f?(e[1]+=h*(i-e[0])/l,e[0]=i):(e[1]+=h*(a-e[0])/l,e[0]=a),n=b(e,t)):s&g?(s&f?(r[1]+=h*(i-r[0])/l,r[0]=i):(r[1]+=h*(a-r[0])/l,r[0]=a),s=b(r,t)):n?(n&p?(e[0]+=l*(o-e[1])/h,e[1]=o):(e[0]+=l*(u-e[1])/h,e[1]=u),n=b(e,t)):(s&p?(r[0]+=l*(o-r[1])/h,r[1]=o):(r[0]+=l*(u-r[1])/h,r[1]=u),s=b(r,t));else if(n&m?(n&p?(e[0]+=l*(o-e[1])/h,e[1]=o):(e[0]+=l*(u-e[1])/h,e[1]=u),n=b(e,t)):s&m?(s&p?(r[0]+=l*(o-r[1])/h,r[1]=o):(r[0]+=l*(u-r[1])/h,r[1]=u),s=b(r,t)):n?(n&f?(e[1]+=h*(i-e[0])/l,e[0]=i):(e[1]+=h*(a-e[0])/l,e[0]=a),n=b(e,t)):(s&f?(r[1]+=h*(i-r[0])/l,r[0]=i):(r[1]+=h*(a-r[0])/l,r[0]=a),s=b(r,t)),n&s)return 0}while(n|s);return l}function b(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function w(t,e,r){return t+(e-t)*r}function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function I(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const r=isNaN(t),n=isNaN(e);return r<n?-1:r>n?1:0}},32587:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(62788),s=r(95488);class i{constructor(t){this._observable=new s.I,this._map=new Map(t)}get size(){return(0,n.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(t){const e=this._map.delete(t);return e&&this._observable.notify(),e}entries(){return(0,n.gc)(this._observable),this._map.entries()}forEach(t,e){(0,n.gc)(this._observable),this._map.forEach((r,n)=>t.call(e,r,n,this),e)}get(t){return(0,n.gc)(this._observable),this._map.get(t)}has(t){return(0,n.gc)(this._observable),this._map.has(t)}keys(){return(0,n.gc)(this._observable),this._map.keys()}set(t,e){return this._map.set(t,e),this._observable.notify(),this}values(){return(0,n.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,n.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},35258:(t,e,r)=>{r.d(e,{i:()=>i});var n=r(16930),s=r(95466);class i{static minimal(t,e,r=[]){return new i({geometryType:t,fieldsIndex:new s.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:e},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null})}static createFeature(t){return new i(t)}constructor(t){let e;this._options=t,this._fieldsIndex=s.A.fromJSON(t.fieldsIndex),t.spatialReference&&(this._spatialReference=n.A.fromJSON(t.spatialReference)),t.outSpatialReference&&(this._outSpatialReference=n.A.fromJSON(t.outSpatialReference)),"object-id"===t.featureIdInfo.type&&(e=t.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:e,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}weakCloneWithAdditionalFields(t){return new i({fieldsIndex:{fields:[...this._fieldsIndex.fields,...t],timeZoneByFieldName:null},geometryType:this.geometryType,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types})}}},36708:(t,e,r)=>{r.d(e,{C_:()=>d,OH:()=>p,Vh:()=>g,on:()=>c,pc:()=>m,wB:()=>u,z7:()=>l});var n=r(37955),s=r(36563),i=r(97768),o=r(74887),a=r(14012);function u(t,e,r={}){return h(t,e,r,_)}function l(t,e,r={}){return h(t,e,r,f)}function h(t,e,r={},n){let s=null;const o=r.once?(t,r)=>{n(t)&&((0,i.xt)(s),e(t,r))}:(t,r)=>{n(t)&&e(t,r)};if(s=(0,a.Cn)(t,o,r.sync,r.equals),r.initial){const e=t();o(e,e)}return s}function c(t,e,r,o={}){let a=null,l=null,h=null;function c(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function d(t){o.once&&o.once&&(0,i.xt)(h),r(t)}const _=u(t,(t,r)=>{c(),(0,n.wb)(t)&&(a=t,l=(0,n.on)(t,e,d),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return h=(0,s.hA)(()=>{_.remove(),c()}),h}function d(t,e){return function(t,e,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const n=t();if(e?.(n))return Promise.resolve(n);let a=null;function u(){a=(0,i.xt)(a)}return new Promise((n,i)=>{a=(0,s.vE)([(0,o.u7)(r,()=>{u(),i((0,o.NK)())}),h(t,t=>{u(),n(t)},{sync:!1,once:!0},e??_)])})}(t,f,e)}function _(t){return!0}function f(t){return!!t}r(80559);const p={sync:!0},g={initial:!0},m={sync:!0,initial:!0}},36745:(t,e,r)=>{r.d(e,{z:()=>a});var n=r(4718),s=r(51118),i=r(65864),o=r(92722);class a{static fromOptimized(t,e,r=!1,n=!1,s=1){return(new u).initialize(t,e,r,n,s)}static fromJSON(t,e=!1,r=!1){const[n,s]=h(t);return(new c).initialize(n,s,e,r,1)}static fromOptimizedCIM(t,e,r=!1,n=!1,s=1){return(new d).initialize(t,e,r,n,s)}static fromJSONCIM(t,e=!1,r=!1,n=1){const[s,i]=h(t);return(new _).initialize(s,i,e,r,n)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),r=t.geometryType;return e&&r?this.fromOptimized(e,r):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),r=t.geometryType;return e&&r?this.fromOptimizedCIM(e,r):null}static createEmptyOptimized(t,e=!1,r=!1,n=1){return(new u).initialize(new o.A,t,e,r,n)}static createEmptyJSON(t,e=!1,r=!1){return(new c).initialize([],t,e,r,1)}static createEmptyOptimizedCIM(t,e=!1,r=!1,n=1){return(new d).initialize(new o.A,t,e,r,n)}static createEmptyJSONCIM(t,e=!1,r=!1,n=1){return(new _).initialize([],t,e,r,n)}asJSON(){const t=(0,s.x)(this);return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat()}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1]}:"esriGeometryPolygon"===this.geometryType?{rings:t}:{paths:t}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,r=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const n=t,s=e;for(;this.nextPoint();)r+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return r+=(t-n)*(e+s),-.5*r}invertY(){this.yFactor*=-1}}class u extends a{constructor(){super(...arguments),this._end=-1}initialize(t,e,r,n,s){return this.hasZ=r,this.hasM=n,this.geometryType=e,this._stride=2+Number(r)+Number(n),this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.hasZ,this.hasM,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,r=this._pathOffset;return(new u).initialize(new o.A([this.pathSize],e.slice(r,t)),this.geometryType,this.hasZ,this.hasM,this.yFactor)}pathLength(){const t=this._end,e=this._stride,r=this._geometry.coords;let n=0;for(let s=this._pathOffset+e;s<t;s+=e){const t=r[s-e],i=r[s-e+1],o=r[s]-t,a=r[s+1]-i;n+=Math.sqrt(o*o+a*a)}return n}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,r=this._end-this._stride;for(let n=0;n<this._stride;n++)if(t[e+n]!==t[r+n])return!1;return!0}clone(){return(new u).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function h(t){return(0,i.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,i.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,i.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,i.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,i.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(t,e,r,n,s){return this._paths=t,this.geometryType=e,this.hasZ=r,this.hasM=n,this._pathIndex=this._pointIndex=-1,this.yFactor=s,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let r=0;for(let n=1;n<t;n++){const t=e[n-1],s=e[n],i=t[0],o=t[1],a=s[0]-i,u=s[1]-o;r+=Math.sqrt(a*a+u*u)}return r}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,s.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const t=new o.A;if("esriGeometryPoint"===this.geometryType)t.coords.push(...this._paths[0][0]),t.lengths.length=0;else for(const e of this._paths){for(const r of e)t.coords.push(r[0]),t.coords.push(r[1]*this.yFactor),this.hasZ&&t.coords.push(r[2]),this.hasM&&t.coords.push(r[this._mIndex]);t.lengths.push(e.length)}return t}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}clone(){return(new c).initialize((0,n.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class d extends u{initialize(t,e,r,n,s){return super.initialize(t,e,r,n,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new d).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class _ extends c{initialize(t,e,r,n,s){return super.initialize(t,e,r,n,s)}clone(){return(new _).initialize((0,n.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},37539:(t,e,r)=>{r.d(e,{pO:()=>p,jd:()=>d,Tp:()=>_,w5:()=>c});var n=r(34727),s=r(83047),i=r(73941),o=r(79258);Math.PI;const a=o.$O.radius,u=o.$O.eccentricitySquared,l={a1:a*u,a2:a*u*a*u,a3:a*u*u/2,a4:a*u*a*u*2.5,a5:a*u+a*u*u/2,a6:1-u};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var h=r(21325);const c={2:{5:p,7:null,9:null,10:p,1:v,6:null,8:null,0:null,3:m,11:y,2:p,4:k},5:{5:p,7:null,9:null,10:p,1:v,6:null,8:null,0:null,3:m,11:y,2:p,4:k},7:{5:null,7:p,9:null,10:p,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:x,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,e,r,n){const s=t[e]/N,i=C-2*Math.atan(Math.exp(-t[e+1]/N)),o=N+t[e+2],a=Math.cos(i)*o;r[n]=Math.cos(s)*a,r[n+1]=Math.sin(s)*a,r[n+2]=Math.sin(i)*o},6:null,8:null,0:null,3:p,11:function(t,e,r,n){g(t,e,r,n),y(r,n,r,n)},2:g,4:function(t,e,r,n){g(t,e,r,n),k(r,n,r,n)}},4:{5:A,7:null,9:null,10:A,1:function(t,e,r,n){A(t,e,r,n),v(r,n,r,n)},6:null,8:null,0:null,3:function(t,e,r,n){A(t,e,r,n),m(r,n,r,n)},11:function(t,e,r,n){A(t,e,r,n),y(r,n,r,n)},2:A,4:p},1:{5:S,7:null,9:null,10:S,1:p,6:null,8:null,0:null,3:function(t,e,r,n){S(t,e,r,n),m(r,n,r,n)},11:function(t,e,r,n){S(t,e,r,n),y(r,n,r,n)},2:S,4:function(t,e,r,n){S(t,e,r,n),k(r,n,r,n)}},6:{5:null,7:F,9:null,10:F,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:p,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:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:v,6:I,8:x,0:null,3:m,11:y,2:p,4:k},11:{5:b,7:null,9:null,10:b,1:function(t,e,r,n){b(t,e,r,n),v(r,n,r,n)},6:null,8:null,0:null,3:function(t,e,r,n){b(t,e,r,n),m(r,n,r,n)},11:p,2:b,4:function(t,e,r,n){b(t,e,r,n),k(r,n,r,n)}}};function d(t,e){return _(t,e)?.projector}function _(t,e){if(null==t||null==e)return null;if(P.source.spatialReference===t&&P.dest.spatialReference===e)return P;const r=f(t,P.source),n=f(e,P.dest);return 0===r&&0===n?(0,h.aI)(t,e)?P.projector=p:P.projector=null:P.projector=c[r][n],P}function f(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,s.GA)(t,1)),(0,i.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===i.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===i.FY.wkt?e.spatialReferenceId=6:t.wkt===i.LJ.wkt?e.spatialReferenceId=8:(0,h.q8)(t)?e.spatialReferenceId=7:(0,h.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function p(t,e,r,n){t!==r&&(r[n++]=t[e++],r[n++]=t[e++],r[n]=t[e])}function g(t,e,r,n){r[n]=z*(t[e]/N),r[n+1]=z*(C-2*Math.atan(Math.exp(-t[e+1]/N))),r[n+2]=t[e+2]}function m(t,e,r,s){!function(t,e,r,s,i){const o=.4999999*Math.PI,a=(0,n.qE)(O*t[e+1],-o,o),u=Math.sin(a);r[s++]=O*t[e]*i.radius,r[s++]=i.halfSemiMajorAxis*Math.log((1+u)/(1-u)),r[s]=t[e+2]}(t,e,r,s,o.$O)}function y(t,e,r,n){r[n]=t[e]*R,r[n+1]=t[e+1]*R,r[n+2]=t[e+2]}function b(t,e,r,n){r[n]=t[e]*G,r[n+1]=t[e+1]*G,r[n+2]=t[e+2]}function w(t,e,r,n,s){const i=s+t[e+2],o=O*t[e+1],a=O*t[e],u=Math.cos(o)*i;r[n]=Math.cos(a)*u,r[n+1]=Math.sin(a)*u,r[n+2]=Math.sin(o)*i}function x(t,e,r,n){w(t,e,r,n,o.Sw.radius)}function I(t,e,r,n){w(t,e,r,n,o.sH.radius)}function v(t,e,r,n){w(t,e,r,n,o.$O.radius)}function M(t,e,r,s,i){const o=t[e],a=t[e+1],u=t[e+2],l=Math.sqrt(o*o+a*a+u*u),h=(0,n.YN)(u/(0===l?1:l)),c=Math.atan2(a,o);r[s++]=z*c,r[s++]=z*h,r[s]=l-i}function T(t,e,r,n){M(t,e,r,n,o.Sw.radius)}function F(t,e,r,n){M(t,e,r,n,o.sH.radius)}function S(t,e,r,n){M(t,e,r,n,o.$O.radius)}function k(t,e,r,n){!function(t,e,r,n,s){const i=O*t[e],o=O*t[e+1],a=t[e+2],u=Math.sin(o),l=Math.cos(o),h=s.radius/Math.sqrt(1-s.eccentricitySquared*u*u);r[n++]=(h+a)*l*Math.cos(i),r[n++]=(h+a)*l*Math.sin(i),r[n++]=(h*(1-s.eccentricitySquared)+a)*u}(t,e,r,n,o.$O)}function A(t,e,r,n){const s=l,i=t[e],a=t[e+1],u=t[e+2];let h,c,d,_,f,p,g,m,y,b,w,x,I,v,M,T,F,S,k,A,P;h=Math.abs(u),c=i*i+a*a,d=Math.sqrt(c),_=c+u*u,f=Math.sqrt(_),A=Math.atan2(a,i),p=u*u/_,g=c/_,v=s.a2/f,M=s.a3-s.a4/f,g>.3?(m=h/f*(1+g*(s.a1+v+p*M)/f),k=Math.asin(m),b=m*m,y=Math.sqrt(1-b)):(y=d/f*(1-p*(s.a5-v-g*M)/f),k=Math.acos(y),b=1-y*y,m=Math.sqrt(b)),w=1-o.$O.eccentricitySquared*b,x=o.$O.radius/Math.sqrt(w),I=s.a6*x,v=d-x*y,M=h-I*m,F=y*v+m*M,T=y*M-m*v,S=T/(I/w+F),k+=S,P=F+T*S/2,u<0&&(k=-k),r[n++]=z*A,r[n++]=z*k,r[n]=P}const P={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},O=(0,n.kU)(1),z=(0,n.KJ)(1),C=.5*Math.PI,N=o.$O.radius,R=N*Math.PI/180,G=180/(N*Math.PI)},37585:(t,e,r)=>{r.d(e,{C:()=>s,Cc:()=>g,Io:()=>c,S8:()=>p,WQ:()=>o,aI:()=>w,e$:()=>y,hZ:()=>i,hs:()=>h,jb:()=>I,l0:()=>m,t2:()=>b});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t}function i(t,e,r){return t[0]=e,t[1]=r,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function a(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function u(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function l(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function h(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function c(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function d(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function _(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function f(t){const e=t[0],r=t[1];return e*e+r*r}function p(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function g(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function m(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function y(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],o=Math.sin(n),a=Math.cos(n);return t[0]=s*a-i*o+r[0],t[1]=s*o+i*a+r[1],t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]}function w(t,e){const r=t[0],s=t[1],i=e[0],o=e[1],a=(0,n.FD)();return Math.abs(r-i)<=a*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-o)<=a*Math.max(1,Math.abs(s),Math.abs(o))}const x=_,I=a,v=u,M=l,T=c,F=d,S=f;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let o=r*r+n*n;o>0&&(o=1/Math.sqrt(o));let a=s*s+i*i;a>0&&(a=1/Math.sqrt(a));const u=(r*s+n*i)*o*a;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:s,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:T,distance:c,div:M,divide:l,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:w,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:x,length:_,lerp:g,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:v,multiply:u,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:p,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],o=e[1]-r[1];const a=(n[0]*i+n[1]*o)*(s-1);return i=n[0]*a,o=n[1]*a,t[0]=e[0]+i,t[1]=e[1]+o,t},random:function(t,e=1){const r=2*(0,n.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:y,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:h,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:i,sqrDist:F,sqrLen:S,squaredDistance:d,squaredLength:f,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:I,subtract:a,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:m,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},38976:(t,e,r)=>{r.d(e,{n:()=>i});var n=r(76213),s=r(9012);class i{constructor(t){this._options=t}insert(t,e){const r=t.getCursor(),{arcadeContextInfo:n,scale:i}=this._options,o=(0,s.N)(i,n);for(;r.next();)this._insertFeature(r,o,this._options.sqlOptions,e)}_insertFeature(t,e,r,s){const{featureFilter:i}=this._options;if(null!==i&&!i.check(t,r))return;let o=0,a=0;if("esriGeometryPoint"===t.geometryType)o=t.readXWorldSpace(),a=t.readYWorldSpace();else{if(s){const e=t.readCentroidForDisplay();if(null==e)return;const[r,s]=e.coords;if(r<0||r>n.CQ||s<0||s>n.CQ)return}const e=t.readCentroidWorldSpace();if(null==e)return;o=e.coords[0],a=e.coords[1]}this._insert(t,o,a,e)}}},44320:(t,e,r)=>{r.d(e,{I:()=>u});var n=r(65529),s=r(44208),i=r(70328),o=r(30661),a=r(5162);class u{constructor(t){this._metadata=t,this._chunks=new Map,this._chunksToRemove=[],this._overrides=new a.Im,this.events=new n.bk,this.featureAdapter=new o.Z}destroy(){this.clear()}clear(){for(const t of this._chunks.values())this._chunksToRemove.push(t);this._chunks.clear(),this._overrides.clearWeakOverrides()}*chunks(){this._overrides&&(yield this._overrides.asChunk(this._metadata)),yield*this._chunks.values()}insert(t){(0,s.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t.chunkId}] SourceChunkStore.insert`),this._overrides.onChunkInsert(t),this._chunks.set(t.chunkId,t),this.events.emit("changed")}remove(t){(0,s.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t.chunkId}] SourceChunkStore.remove`),this._chunks.delete(t.chunkId),this._chunksToRemove.push(t)}removeById(t){(0,s.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t}] SourceChunkStore.remove`);const e=this._chunks.get(t);this._chunks.delete(t),e&&this._chunksToRemove.push(e)}cleanup(){const t=this._chunksToRemove;return this._chunksToRemove=[],this._overrides.cleanup(this._chunks.values()),t}applyOverride(t){this._overrides.apply(t,this),this.events.emit("changed");for(const t of this._chunks.values())t.invalidate()}takeOverrideUpdate(){return this._overrides.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(t){const e=new Set;for(const r of this.chunks()){const n=r.reader.getCursor();for(;n.next();){const r=n.getObjectId();e.has(r)||(t(n.copy()),e.add(r))}}}forEachUnsafe(t){const e=new Set;for(const r of this.chunks()){const n=r.reader.getCursor();for(;n.next();){const r=n.getObjectId();e.has(r)||(t(n),e.add(r))}}}mapObjectIdsFromGlobalIds(t,e){const r=new Map,n=new Set(t);return this._overrides.putWeakObjectIdsFromGlobalIds(r,n,e),this._forEachUnsafeIgnoreOverrides(t=>{const s=t.readAttribute(e);if(s&&n.has(s)&&!r.has(s)){const e=t.getObjectId();r.set(s,e)}}),r}forEachInBounds(t,e){const r=new Set;for(const n of this.chunks()){const s=n.queryFeaturesInBounds(t);for(;s.next();){const t=s.getObjectId();r.has(t)||(e(s.copy()),r.add(t))}}}forEachBounds(t,e){const r=(0,i.vt)();for(const n of t)n.getBounds(r)&&e(r)}_forEachUnsafeIgnoreOverrides(t){const e=new Set;for(const r of this._chunks.values()){const n=r.reader.withoutOverrides().getCursor();for(;n.next();){const r=n.getObjectId();e.has(r)||(t(n),e.add(r))}}}}},48163:(t,e,r)=>{function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function o(){return i(1,1)}function a(){return i(1,0)}function u(){return i(0,1)}r.d(e,{Un:()=>l,fA:()=>i,o8:()=>s,vt:()=>n});const l=o(),h=a(),c=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:h,UNIT_Y:c,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,ones:o,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},50115:(t,e,r)=>{r.d(e,{OP:()=>o,V4:()=>s,rZ:()=>i}),r(44208);var n=r(53966);function s(t,e,r){if(null==t)return null;const s=e.readArcadeFeature();e.contextTimeZone=r.$view?.timeZone;try{return t.evaluate(s,r)}catch(t){return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}function i(t){return null==t||t===1/0||t===-1/0||"number"==typeof t&&isNaN(t)}function o(t,e,r,n){if(null==t)return null!=n?n:null;const s=e.readArcadeFeature();e.contextTimeZone=r.$view?.timeZone;const o=t.evaluate(s,r);return i(o)?null!=n?n:null:o}},52350:(t,e,r)=>{r.d(e,{e:()=>a});var n=r(69397),s=r(62577),i=r(90708),o=r(99996);class a extends o.Y{static from(t,e){if(t instanceof this){const r=new Set(e),n=t._indices.filter(t=>r.has(t));return new a(t._reader,n)}return new a(t.copy(),e)}constructor(t,e){super(t.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=t,this._indices=e}setTransformForDisplay(t){const e=this._reader.getInTransform();if(null==e)return void(this._displayTransform=(0,s.Q1)(t));const r=(0,s.Q1)(e),n=(0,s.Q1)(t),[i,o]=r.scale,[a,u]=r.translate,[l,h]=n.scale,[c,d]=n.translate,_=i/l,f=o/h,p=(a-c)/l,g=(u-d)/h;this._displayTransform={originPosition:"lowerLeft",scale:[1/_,1/f,1,1],translate:[-p/_,-g/f,0,0]}}getInTransform(){return this._reader.getInTransform()}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){const t=new a(this._reader.copy(),this._indices);return t._currentIndex=this._currentIndex,t._displayTransform=this._displayTransform,t._processorAttributes=this._processorAttributes,t}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(t){this._reader.contextTimeZone=t}get usedMemory(){return n.qK+this._reader.usedMemory}setProcessorAttributes(t){this._processorAttributes=Object.assign(this._processorAttributes??{},t)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,s.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,s.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){const t=this._reader.readCentroidForDisplay()?.clone();if(t){const[e,r]=t.coords;this._displayTransform?(t.coords[0]=(0,s.IE)(this._displayTransform,e),t.coords[1]=(0,s.B2)(this._displayTransform,r)):(t.coords[0]=e,t.coords[1]=r)}return t}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(t,e=!1){const r=this._reader.readAttribute(t,e);return null==r&&this._processorAttributes?this._processorAttributes[t]:r}readAttributes(){return{...this._processorAttributes??{},...this._reader.readAttributes()}}joinAttributes(t){return this._reader.joinAttributes(t)}getBounds(t){return this._reader.getBounds(t)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(t){return this._reader.setDisplayId(t)}setIndex(t){return this._reader.setIndex(t)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){const t=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyGeometryForDisplay(){const t=this.readGeometryForDisplay();return(0,i.zv)(t,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}_readAttribute(t,e){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(t){return this._reader.field(t)}hasField(t){return this._reader.hasField(t)}setField(t,e){return this._reader.setField(t,e)}keys(){return this._reader.keys()}castToText(t=!1){return this._reader.castToText(t)}}},57733:(t,e,r)=>{let n;function s(t){const e=n.__externref_table_alloc();return n.__wbindgen_export_2.set(e,t),e}function i(t,e){try{return t.apply(this,e)}catch(t){const e=s(t);n.__wbindgen_exn_store(e)}}r.r(e),r.d(e,{ColumnDescriptor:()=>j,FieldMetadata:()=>B,GeometryInfo:()=>W,GeometryType:()=>N,MultiscaleGeometryField:()=>Y,PageEncodingDescriptor:()=>L,ParquetChunk:()=>Z,ParquetFile:()=>$,PrimaryGeometryField:()=>Q,QuantizedGeometryBuffer:()=>H,RangeProviderJs:()=>et,RowGroup:()=>nt,default:()=>at,enableTracing:()=>b,initSync:()=>ot}),Symbol.dispose||(Symbol.dispose=Symbol("Symbol.dispose"));const o="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&o.decode();let a=null;function u(){return null!==a&&0!==a.byteLength||(a=new Uint8Array(n.memory.buffer)),a}function l(t,e){return t>>>=0,o.decode(u().subarray(t,t+e))}let h=0;const c="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},d="function"==typeof c.encodeInto?function(t,e){return c.encodeInto(t,e)}:function(t,e){const r=c.encode(t);return e.set(r),{read:t.length,written:r.length}};function _(t,e,r){if(void 0===r){const r=c.encode(t),n=e(r.length,1)>>>0;return u().subarray(n,n+r.length).set(r),h=r.length,n}let n=t.length,s=e(n,1)>>>0;const i=u();let o=0;for(;o<n;o++){const e=t.charCodeAt(o);if(e>127)break;i[s+o]=e}if(o!==n){0!==o&&(t=t.slice(o)),s=r(s,n,n=o+3*t.length,1)>>>0;const e=u().subarray(s+o,s+n);o+=d(t,e).written,s=r(s,n,o,1)>>>0}return h=o,s}let f=null;function p(){return(null===f||!0===f.buffer.detached||void 0===f.buffer.detached&&f.buffer!==n.memory.buffer)&&(f=new DataView(n.memory.buffer)),f}function g(t){return null==t}const m="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{n.__wbindgen_export_6.get(t.dtor)(t.a,t.b)});function y(t,e,r,s){const i={a:t,b:e,cnt:1,dtor:r},o=(...t)=>{i.cnt++;const e=i.a;i.a=0;try{return s(e,i.b,...t)}finally{0===--i.cnt?(n.__wbindgen_export_6.get(i.dtor)(e,i.b),m.unregister(i)):i.a=e}};return o.original=i,m.register(o,i,i),o}function b(){n.enableTracing()}let w=null;function x(){return null!==w&&0!==w.byteLength||(w=new Float64Array(n.memory.buffer)),w}let I=null;function v(){return null!==I&&0!==I.byteLength||(I=new Uint32Array(n.memory.buffer)),I}function M(t,e){if(!(t instanceof e))throw new Error(`expected instance of ${e.name}`)}function T(t,e){t>>>=0;const r=p(),s=[];for(let i=t;i<t+4*e;i+=4)s.push(n.__wbindgen_export_2.get(r.getUint32(i,!0)));return n.__externref_drop_slice(t,e),s}function F(t,e){const r=e(8*t.length,8)>>>0;return x().set(t,r/8),h=t.length,r}function S(t,e){const r=e(4*t.length,4)>>>0;for(let e=0;e<t.length;e++){const n=s(t[e]);p().setUint32(r+4*e,n,!0)}return h=t.length,r}function k(t,e){const r=e(1*t.length,1)>>>0;return u().set(t,r/1),h=t.length,r}let A=null;function P(){return null!==A&&0!==A.byteLength||(A=new Uint16Array(n.memory.buffer)),A}function O(t,e){const r=e(2*t.length,2)>>>0;return P().set(t,r/2),h=t.length,r}function z(t,e,r){n.closure83_externref_shim(t,e,r)}function C(t,e,r,s){n.closure9_externref_shim(t,e,r,s)}const N=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"}),R=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_columndescriptor_free(t>>>0,1));class j{static __wrap(t){t>>>=0;const e=Object.create(j.prototype);return e.__wbg_ptr=t,G.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_columndescriptor_free(t,0)}[Symbol.dispose](){this.free()}name(){let t,e;try{const r=n.columndescriptor_name(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}physicalType(){let t,e;try{const r=n.columndescriptor_physicalType(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}logicalType(){const t=n.columndescriptor_logicalType(this.__wbg_ptr);let e;return 0!==t[0]&&(e=l(t[0],t[1]).slice(),n.__wbindgen_free(t[0],1*t[1],1)),e}encodings(){const t=n.columndescriptor_encodings(this.__wbg_ptr);var e=T(t[0],t[1]).slice();return n.__wbindgen_free(t[0],4*t[1],4),e}pageEncodings(){const t=n.columndescriptor_pageEncodings(this.__wbg_ptr);let e;return 0!==t[0]&&(e=T(t[0],t[1]).slice(),n.__wbindgen_free(t[0],4*t[1],4)),e}numValues(){return n.columndescriptor_numValues(this.__wbg_ptr)}compression(){let t,e;try{const r=n.columndescriptor_compression(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}compressedSize(){return n.columndescriptor_compressedSize(this.__wbg_ptr)}uncompressedSize(){return n.columndescriptor_uncompressedSize(this.__wbg_ptr)}nullCount(){const t=n.columndescriptor_nullCount(this.__wbg_ptr);return 0===t[0]?void 0:t[1]}distinctCount(){const t=n.columndescriptor_distinctCount(this.__wbg_ptr);return 0===t[0]?void 0:t[1]}minValue(){return n.columndescriptor_minValue(this.__wbg_ptr)}maxValue(){return n.columndescriptor_maxValue(this.__wbg_ptr)}}const q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_fieldmetadata_free(t>>>0,1));class B{static __wrap(t){t>>>=0;const e=Object.create(B.prototype);return e.__wbg_ptr=t,q.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_fieldmetadata_free(t,0)}[Symbol.dispose](){this.free()}get id(){return n.__wbg_get_fieldmetadata_id(this.__wbg_ptr)}set id(t){n.__wbg_set_fieldmetadata_id(this.__wbg_ptr,t)}get name(){let t,e;try{const r=n.fieldmetadata_name(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}get type(){const t=n.fieldmetadata_esri_type(this.__wbg_ptr);return R[t]}get physicalType(){const t=n.fieldmetadata_physical_type(this.__wbg_ptr);let e;return 0!==t[0]&&(e=l(t[0],t[1]).slice(),n.__wbindgen_free(t[0],1*t[1],1)),e}get logicalType(){const t=n.fieldmetadata_logical_type(this.__wbg_ptr);let e;return 0!==t[0]&&(e=l(t[0],t[1]).slice(),n.__wbindgen_free(t[0],1*t[1],1)),e}}const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_geometryinfo_free(t>>>0,1));class W{static __wrap(t){t>>>=0;const e=Object.create(W.prototype);return e.__wbg_ptr=t,D.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_geometryinfo_free(t,0)}[Symbol.dispose](){this.free()}static new(t,e,r,s,i){M(s,Q);var o=s.__destroy_into_raw();const a=S(i,n.__wbindgen_malloc),u=h,l=n.geometryinfo_new(t,e,r,o,a,u);return W.__wrap(l)}}const E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_multiscalegeometryfield_free(t>>>0,1));class Y{static __wrap(t){t>>>=0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,E.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof Y?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_multiscalegeometryfield_free(t,0)}[Symbol.dispose](){this.free()}get level(){return n.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}set level(t){n.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,t)}static new(t,e,r,s){const i=_(e,n.__wbindgen_malloc,n.__wbindgen_realloc),o=h,a=F(r,n.__wbindgen_malloc),u=h,l=F(s,n.__wbindgen_malloc),c=h,d=n.multiscalegeometryfield_new(t,i,o,a,u,l,c);return Y.__wrap(d)}has_field(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h;return 0!==n.multiscalegeometryfield_has_field(this.__wbg_ptr,e,r)}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_pageencodingdescriptor_free(t>>>0,1));class L{static __wrap(t){t>>>=0;const e=Object.create(L.prototype);return e.__wbg_ptr=t,X.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_pageencodingdescriptor_free(t,0)}[Symbol.dispose](){this.free()}pageType(){let t,e;try{const r=n.pageencodingdescriptor_pageType(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}encoding(){let t,e;try{const r=n.pageencodingdescriptor_encoding(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}count(){return n.pageencodingdescriptor_count(this.__wbg_ptr)}}const U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_parquetchunk_free(t>>>0,1));class Z{static __wrap(t){t>>>=0;const e=Object.create(Z.prototype);return e.__wbg_ptr=t,U.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_parquetchunk_free(t,0)}[Symbol.dispose](){this.free()}size(){return n.parquetchunk_size(this.__wbg_ptr)>>>0}isEmpty(t){return 0!==n.parquetchunk_isEmpty(this.__wbg_ptr,t)}rowId(t){return n.parquetchunk_rowId(this.__wbg_ptr,t)}readX(t){const e=n.parquetchunk_readX(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}readY(t){const e=n.parquetchunk_readY(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}readCoords(t){const e=n.parquetchunk_readCoords(this.__wbg_ptr,t);let r;return 0!==e[0]&&(r=function(t,e){return t>>>=0,x().subarray(t/8,t/8+e)}(e[0],e[1]).slice(),n.__wbindgen_free(e[0],8*e[1],8)),r}readLengths(t){const e=n.parquetchunk_readLengths(this.__wbg_ptr,t);let r;return 0!==e[0]&&(r=function(t,e){return t>>>=0,v().subarray(t/4,t/4+e)}(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),r}transformGeometry(t,e,r,s,i,o){M(t,H);const a=n.parquetchunk_transformGeometry(this.__wbg_ptr,t.__wbg_ptr,e,r,s,i,o);return 16777215===a?void 0:0!==a}boundsXMin(t){const e=n.parquetchunk_boundsXMin(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}boundsYMin(t){const e=n.parquetchunk_boundsYMin(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}boundsXMax(t){const e=n.parquetchunk_boundsXMax(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}boundsYMax(t){const e=n.parquetchunk_boundsYMax(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}readAttribute(t,e){return n.parquetchunk_readAttribute(this.__wbg_ptr,t,e)}}const J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_parquetfile_free(t>>>0,1));class ${static __wrap(t){t>>>=0;const e=Object.create($.prototype);return e.__wbg_ptr=t,J.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_parquetfile_free(t,0)}[Symbol.dispose](){this.free()}static fromUrl(t,e,r,s){const i=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=h;let a=0;return g(s)||(M(s,W),a=s.__destroy_into_raw()),n.parquetfile_fromUrl(i,o,e,r,a)}static fromBinary(t,e){const r=k(t,n.__wbindgen_malloc),s=h;let i=0;return g(e)||(M(e,W),i=e.__destroy_into_raw()),n.parquetfile_fromBinary(r,s,i)}version(){return n.parquetfile_version(this.__wbg_ptr)}numRows(){return n.parquetfile_numRows(this.__wbg_ptr)>>>0}numFields(){return n.parquetfile_numFields(this.__wbg_ptr)>>>0}numColumns(){return n.parquetfile_numColumns(this.__wbg_ptr)>>>0}createdBy(){const t=n.parquetfile_createdBy(this.__wbg_ptr);let e;return 0!==t[0]&&(e=l(t[0],t[1]).slice(),n.__wbindgen_free(t[0],1*t[1],1)),e}keyValueMetadata(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.parquetfile_keyValueMetadata(this.__wbg_ptr,e,r);let i;return 0!==s[0]&&(i=l(s[0],s[1]).slice(),n.__wbindgen_free(s[0],1*s[1],1)),i}keys(){const t=n.parquetfile_keys(this.__wbg_ptr);let e;return 0!==t[0]&&(e=T(t[0],t[1]).slice(),n.__wbindgen_free(t[0],4*t[1],4)),e}attributeIdFor(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h;return n.parquetfile_attributeIdFor(this.__wbg_ptr,e,r)}fields(){const t=n.parquetfile_fields(this.__wbg_ptr);var e=T(t[0],t[1]).slice();return n.__wbindgen_free(t[0],4*t[1],4),e}rowGroups(){const t=n.parquetfile_rowGroups(this.__wbg_ptr);var e=T(t[0],t[1]).slice();return n.__wbindgen_free(t[0],4*t[1],4),e}ensureFields(t){const e=O(t,n.__wbindgen_malloc),r=h;return n.parquetfile_ensureFields(this.__wbg_ptr,e,r)}readFirstChunk(t){const e=O(t,n.__wbindgen_malloc),r=h;return n.parquetfile_readFirstChunk(this.__wbg_ptr,e,r)}readChunk(t,e,r,s,i){const o=O(r,n.__wbindgen_malloc),a=h;return n.parquetfile_readChunk(this.__wbg_ptr,t,e,o,a,s,i)}readAllChunks(t,e,r){const s=O(t,n.__wbindgen_malloc),i=h;return n.parquetfile_readAllChunks(this.__wbg_ptr,s,i,e,r)}queryZChunks(t,e,r,s){const i=O(e,n.__wbindgen_malloc),o=h;return n.parquetfile_queryZChunks(this.__wbg_ptr,t,i,o,r,s)}queryXZChunks(t,e,r){return n.parquetfile_queryXZChunks(this.__wbg_ptr,t,e,r)}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_primarygeometryfield_free(t>>>0,1));class Q{static __wrap(t){t>>>=0;const e=Object.create(Q.prototype);return e.__wbg_ptr=t,V.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_primarygeometryfield_free(t,0)}[Symbol.dispose](){this.free()}static fromNative(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.primarygeometryfield_fromNative(e,r);return Q.__wrap(s)}static fromWkb(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.primarygeometryfield_fromWkb(e,r);return Q.__wrap(s)}static fromLocation(t,e){const r=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=h,i=_(e,n.__wbindgen_malloc,n.__wbindgen_realloc),o=h,a=n.primarygeometryfield_fromLocation(r,s,i,o);return Q.__wrap(a)}}const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_quantizedgeometrybuffer_free(t>>>0,1));class H{static __wrap(t){t>>>=0;const e=Object.create(H.prototype);return e.__wbg_ptr=t,K.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_quantizedgeometrybuffer_free(t,0)}[Symbol.dispose](){this.free()}static new(){const t=n.quantizedgeometrybuffer_new();return H.__wrap(t)}readCoordsUnsafe(){return n.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return n.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}const tt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rangeproviderjs_free(t>>>0,1));class et{static __wrap(t){t>>>=0;const e=Object.create(et.prototype);return e.__wbg_ptr=t,tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_rangeproviderjs_free(t,0)}[Symbol.dispose](){this.free()}static new(t,e){const r=n.rangeproviderjs_new(t,e);return et.__wrap(r)}static withFetch(){const t=n.rangeproviderjs_withFetch();return et.__wrap(t)}}const rt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rowgroup_free(t>>>0,1));class nt{static __wrap(t){t>>>=0;const e=Object.create(nt.prototype);return e.__wbg_ptr=t,rt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,rt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_rowgroup_free(t,0)}[Symbol.dispose](){this.free()}columnDescriptorForAttribute(t){const e=n.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,t);return j.__wrap(e)}}function st(){const t={wbg:{}};return t.wbg.__wbg_aborted_c078e36031795a9a=function(t){return t.aborted},t.wbg.__wbg_apply_36be6a55257c99bf=function(){return i(function(t,e,r){return t.apply(e,r)},arguments)},t.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return t.buffer},t.wbg.__wbg_call_672a4d21634d4a24=function(){return i(function(t,e){return t.call(e)},arguments)},t.wbg.__wbg_call_7cccdd69e0791ae2=function(){return i(function(t,e,r){return t.call(e,r)},arguments)},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let r,s;try{r=t,s=e,console.error(l(t,e))}finally{n.__wbindgen_free(r,s,1)}},t.wbg.__wbg_fieldmetadata_new=function(t){return B.__wrap(t)},t.wbg.__wbg_get_67b2ba62fc30de12=function(){return i(function(t,e){return Reflect.get(t,e)},arguments)},t.wbg.__wbg_length_8cfd2c6409af88ad=function(t){return t.length},t.wbg.__wbg_length_a446193dc22c12f8=function(t){return t.length},t.wbg.__wbg_multiscalegeometryfield_unwrap=function(t){return Y.__unwrap(t)},t.wbg.__wbg_new_23a2665fac83c611=function(t,e){try{var r={a:t,b:e};return new Promise((t,e)=>{const n=r.a;r.a=0;try{return C(n,r.b,t,e)}finally{r.a=n}})}finally{r.a=r.b=0}},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},t.wbg.__wbg_new_9fee97a409b32b68=function(t){return new Uint16Array(t)},t.wbg.__wbg_new_a12002a7f91c75be=function(t){return new Uint8Array(t)},t.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,e){return new Function(l(t,e))},t.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212=function(t,e,r){return new Uint32Array(t,e>>>0,r>>>0)},t.wbg.__wbg_newwithbyteoffsetandlength_f254047f7e80e7ff=function(t,e,r){return new Int16Array(t,e>>>0,r>>>0)},t.wbg.__wbg_newwithlength_c4c419ef0bc8a1f8=function(t){return new Array(t>>>0)},t.wbg.__wbg_pageencodingdescriptor_new=function(t){return L.__wrap(t)},t.wbg.__wbg_parquetchunk_new=function(t){return Z.__wrap(t)},t.wbg.__wbg_parquetfile_new=function(t){return $.__wrap(t)},t.wbg.__wbg_queueMicrotask_98e746b9f850fe3d=function(t){queueMicrotask(t)},t.wbg.__wbg_queueMicrotask_c847cc8372bec908=function(t){return t.queueMicrotask},t.wbg.__wbg_resolve_4851785c9c5f573d=function(t){return Promise.resolve(t)},t.wbg.__wbg_rowgroup_new=function(t){return nt.__wrap(t)},t.wbg.__wbg_set_37837023f3d740e8=function(t,e,r){t[e>>>0]=r},t.wbg.__wbg_set_65595bdd868b3009=function(t,e,r){t.set(e,r>>>0)},t.wbg.__wbg_set_f4f1f0daa30696fc=function(t,e,r){t.set(e,r>>>0)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){const r=_(e.stack,n.__wbindgen_malloc,n.__wbindgen_realloc),s=h;p().setInt32(t+4,s,!0),p().setInt32(t+0,r,!0)},t.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t="undefined"==typeof global?null:global;return g(t)?0:s(t)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t="undefined"==typeof globalThis?null:globalThis;return g(t)?0:s(t)},t.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t="undefined"==typeof self?null:self;return g(t)?0:s(t)},t.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t="undefined"==typeof window?null:window;return g(t)?0:s(t)},t.wbg.__wbg_then_44b73946d2fb3e7d=function(t,e){return t.then(e)},t.wbg.__wbg_then_48b406749878a531=function(t,e,r){return t.then(e,r)},t.wbg.__wbg_valueOf_fdbb54fcdfe33477=function(t){return t.valueOf()},t.wbg.__wbindgen_array_new=function(){return[]},t.wbg.__wbindgen_array_push=function(t,e){t.push(e)},t.wbg.__wbindgen_bigint_from_i64=function(t){return t},t.wbg.__wbindgen_cb_drop=function(t){const e=t.original;return 1==e.cnt--&&(e.a=0,!0)},t.wbg.__wbindgen_closure_wrapper1683=function(t,e,r){return y(t,e,84,z)},t.wbg.__wbindgen_init_externref_table=function(){const t=n.__wbindgen_export_2,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)},t.wbg.__wbindgen_is_function=function(t){return"function"==typeof t},t.wbg.__wbindgen_is_undefined=function(t){return void 0===t},t.wbg.__wbindgen_memory=function(){return n.memory},t.wbg.__wbindgen_number_get=function(t,e){const r="number"==typeof e?e:void 0;p().setFloat64(t+8,g(r)?0:r,!0),p().setInt32(t+0,!g(r),!0)},t.wbg.__wbindgen_number_new=function(t){return t},t.wbg.__wbindgen_string_new=function(t,e){return l(t,e)},t.wbg.__wbindgen_throw=function(t,e){throw new Error(l(t,e))},t.wbg.__wbindgen_uint8_array_new=function(t,e){var r=function(t,e){return t>>>=0,u().subarray(t/1,t/1+e)}(t,e).slice();return n.__wbindgen_free(t,1*e,1),r},t}function it(t,e){return n=t.exports,at.__wbindgen_wasm_module=e,f=null,w=null,A=null,I=null,a=null,n.__wbindgen_start(),n}function ot(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?({module:t}=t):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const e=st();return t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t)),it(new WebAssembly.Instance(t,e),t)}async function at(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?({module_or_path:t}=t):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const e=st();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:r,module:s}=await async function(t,e){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,e)}catch(e){if("application/wasm"==t.headers.get("Content-Type"))throw e;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e)}const r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}{const r=await WebAssembly.instantiate(t,e);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}}(await t,e);return it(r,s)}},62815:(t,e,r)=>{r.d(e,{N:()=>o});var n=r(83047),s=r(73941),i=r(21325);function o(t,e,r){if(null==e||null==r||r.vcsWkid||(0,i.aI)(e,r)||(0,s.xP)(e)||(0,s.xP)(r))return null;const o=(0,n.G9)(e)/(0,n.G9)(r);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 r of t.paths)for(const t of r)t.length>2&&(t[2]*=e)}(t,o);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const r of t.rings)for(const t of r)t.length>2&&(t[2]*=e)}(t,o);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const r of t.points)r.length>2&&(r[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}}},63664:(t,e,r)=>{r.d(e,{B:()=>n});class n{constructor(t){this._statistics=t}get statistics(){return this._statistics}}},68974:(t,e,r)=>{r.d(e,{H:()=>u,p:()=>a});var n=r(83047),s=r(38976),i=r(75538);const o=96;function a(t,e){return(0,n.GA)(t)*n.dy*o/e}class u extends s.n{constructor(t){super(t),this._cells=new Map,this._pixelsPerMapUnit=a(t.spatialReference,t.scale)}put(t){for(const e of this._cells.values()){const r=t.get(e.id);r?r.merge(e):t.set(e.id,e.clone())}}putBounded(t,e,r){const n=[e.xmin,e.ymin,e.xmax,e.ymax],[s,i,o,a]=n,u=Math.floor(s*this._pixelsPerMapUnit/this._options.cellSize),l=Math.floor(i*this._pixelsPerMapUnit/this._options.cellSize),h=Math.ceil(o*this._pixelsPerMapUnit/this._options.cellSize),c=Math.ceil(a*this._pixelsPerMapUnit/this._options.cellSize);for(let e=l;e<=c;e++)for(let r=u;r<=h;r++){const n=`${r}.${e}`,s=this._cells.get(n);if(!s)continue;const i=t.get(s.id);i?s&&!t.has(s.id)&&i.merge(s):t.set(s.id,s.clone())}}_insert(t,e,r,n){const s=e*this._pixelsPerMapUnit,i=r*this._pixelsPerMapUnit,o=Math.floor(s/this._options.cellSize),a=Math.floor(i/this._options.cellSize);this._getCellOrCreate(o,a).insert(t,n,e,r)}_getCellOrCreate(t,e){const r=i.L.createId(t,e);let n=this._cells.get(r);if(!n){const s=1*this._options.cellSize/this._pixelsPerMapUnit;n=i.L.create(t,e,this._options.fields,s),this._cells.set(r,n)}return n}}},70300:(t,e,r)=>{r.d(e,{K:()=>D});var n=r(11006);function s(t,e){if(!(this instanceof s))return new s(t,e);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()}function i(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n<e.length;n++)if(r(t,e[n]))return n;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,r,n,s){s||(s=m(null)),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(var i,o=e;o<r;o++)i=t.children[o],u(s,t.leaf?n(i):i);return s}function u(t,e){return 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),t}function l(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function _(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 f(t,e){var r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,s-r)*Math.max(0,i-n)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function m(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,r,s,i){for(var o,a=[e,r];a.length;)(r=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((r-e)/s/2)*s,(0,n.q)(t,o,e,r,i),a.push(e,o,o,r))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,r=[],n=this.toBBox;if(!g(t,e))return r;for(var s,i,o,a,u=[];e;){for(s=0,i=e.children.length;s<i;s++)o=e.children[s],g(t,a=e.leaf?n(o):o)&&(e.leaf?r.push(o):p(t,a)?this._all(o,r):u.push(o));e=u.pop()}return r},collides:function(t){var e=this.data,r=this.toBBox;if(!g(t,e))return!1;for(var n,s,i,o,a=[];e;){for(n=0,s=e.children.length;n<s;n++)if(i=e.children[n],g(t,o=e.leaf?r(i):i)){if(e.leaf||p(t,o))return!0;a.push(i)}e=a.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var s=this.data;this.data=n,n=s}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(t){return null!=t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=m([]),this},remove:function(t,e){if(null==t)return this;for(var r,n,s,o,a=this.data,u=this.toBBox(t),l=[],h=[];a||l.length;){if(a||(a=l.pop(),n=l[l.length-1],r=h.pop(),o=!0),a.leaf&&-1!==(s=i(t,a.children,e)))return a.children.splice(s,1),l.push(a),this._condense(l),this;o||a.leaf||!p(a,u)?n?(r++,a=n.children[r],o=!1):a=null:(l.push(a),h.push(r),r=0,n=a,a=a.children[0])}return this},toBBox:function(t){return t},compareMinX:l,compareMinY:h,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},_build:function(t,e,r,n){var s,i=r-e+1,a=this._maxEntries;if(i<=a)return o(s=m(t.slice(e,r+1)),this.toBBox),s;n||(n=Math.ceil(Math.log(i)/Math.log(a)),a=Math.ceil(i/Math.pow(a,n-1))),(s=m([])).leaf=!1,s.height=n;var u,l,h,c,d=Math.ceil(i/a),_=d*Math.ceil(Math.sqrt(a));for(y(t,e,r,_,this.compareMinX),u=e;u<=r;u+=_)for(y(t,u,h=Math.min(u+_-1,r),d,this.compareMinY),l=u;l<=h;l+=d)c=Math.min(l+d-1,h),s.children.push(this._build(t,l,c,n-1));return o(s,this.toBBox),s},_chooseSubtree:function(t,e,r,n){for(var s,i,o,a,u,l,h,d;n.push(e),!e.leaf&&n.length-1!==r;){for(h=d=1/0,s=0,i=e.children.length;s<i;s++)u=c(o=e.children[s]),(l=_(t,o)-u)<d?(d=l,h=u<h?u:h,a=o):l===d&&u<h&&(h=u,a=o);e=a||e.children[0]}return e},_insert:function(t,e,r){var n=this.toBBox,s=r?t:n(t),i=[],o=this._chooseSubtree(s,this.data,e,i);for(o.children.push(t),u(o,s);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(s,i,e)},_split:function(t,e){var r=t[e],n=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,n);var i=this._chooseSplitIndex(r,s,n),a=m(r.children.splice(i,r.children.length-i));a.height=r.height,a.leaf=r.leaf,o(r,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(r,a)},_splitRoot:function(t,e){this.data=m([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,r){var n,s,i,o,u,l,h,d;for(l=h=1/0,n=e;n<=r-e;n++)o=f(s=a(t,0,n,this.toBBox),i=a(t,n,r,this.toBBox)),u=c(s)+c(i),o<l?(l=o,d=n,h=u<h?u:h):o===l&&u<h&&(h=u,d=n);return d},_chooseSplitAxis:function(t,e,r){var n=t.leaf?this.compareMinX:l,s=t.leaf?this.compareMinY:h;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,s)&&t.children.sort(n)},_allDistMargin:function(t,e,r,n){t.children.sort(n);var s,i,o=this.toBBox,l=a(t,0,e,o),h=a(t,r-e,r,o),c=d(l)+d(h);for(s=e;s<r-e;s++)i=t.children[s],u(l,t.leaf?o(i):i),c+=d(l);for(s=r-e-1;s>=e;s--)i=t.children[s],u(h,t.leaf?o(i):i),c+=d(h);return c},_adjustParentBBoxes:function(t,e,r){for(var n=r;n>=0;n--)u(e[n],t)},_condense:function(t){for(var e,r=t.length-1;r>=0;r--)0===t[r].children.length?r>0?(e=t[r-1].children).splice(e.indexOf(t[r]),1):this.clear():o(t[r],this.toBBox)},_initFormat:function(t){var 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]+"};")}};var b=r(70328);class w{static fromReader(t){const e=[],r=t.copy(),n=(0,b.vt)();for(;r.next();)r.getBounds(n)&&e.push(r.getIndex());const i=s(9,t=>(r.setIndex(t),{minX:r.getBoundsXMin(),minY:r.getBoundsYMin(),maxX:r.getBoundsXMax(),maxY:r.getBoundsYMax()}));return i.load(e),new w(i)}constructor(t){this._index=t}search(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this._index.search(e)}}r(44208);var x=r(34727),I=(r(37585),r(48163)),v=r(39829),M=r(16930),T=r(19419),F=r(79258),S=r(90708),k=r(92722),A=r(31464);function P(t,e,r,n){if(n.isWebMercator){const n=(0,x.KJ)(t/F.$O.radius),s=n-360*Math.floor((n+180)/360),i=[0,0];return O(i,0,(0,x.KJ)(Math.PI/2-2*Math.atan(Math.exp(-e/F.$O.radius))),s,r),i}const s=(0,A.Cv)({x:t,y:e},n,M.A.WGS84);if(!s)return null;const i=[0,0];return O(i,0,s.y,s.x,r),i}function O(t,e,r,n,s){s%2&&(s+=1);let i=0,o=0,a=-90,u=90,l=-180,h=180;for(let t=0;t<s/2;t++){for(let e=0;e<5;e++){const r=(l+h)/2,s=n>r?1:0;i|=s<<29-(e+5*t),l=(1-s)*l+s*r,h=(1-s)*r+s*h}for(let e=0;e<5;e++){const n=(a+u)/2,s=r>n?1:0;o|=s<<29-(e+5*t),a=(1-s)*a+s*n,u=(1-s)*n+s*u}}t[2*e]=i,t[2*e+1]=o}(0,I.vt)(),(0,I.vt)();var z=r(63664),C=r(92029);class N extends z.B{static create(t,e,r,n){const s=C.o.create(t),i=new Array(32);for(let t=0;t<i.length;t++)i[t]=null;return new N(s,e,r,n,i)}constructor(t,e,r,n,s){super(t),this.xNode=e,this.yNode=r,this.depth=n,this.children=s,this._objectIds=new Set,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){const t=new N(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return t._count=this._count,t._xWorldTotal=this._xWorldTotal,t._yWorldTotal=this._yWorldTotal,t._xGeohashTotal=this._xGeohashTotal,t._yGeohashTotal=this._yGeohashTotal,t.next=this.next,t._objectIds=new Set(this._objectIds),t}insert(t,e,r,n,s,i){this._count+=1,this._xWorldTotal+=e,this._yWorldTotal+=r,this._xGeohashTotal+=n,this._yGeohashTotal+=s,this._statistics.insert(t,i),this._objectIds.add(t.getObjectId())}merge(t){if(0!==t._count){this._count+=t._count,this._xWorldTotal+=t._xWorldTotal,this._yWorldTotal+=t._yWorldTotal,this._xGeohashTotal+=t._xWorldTotal,this._yGeohashTotal+=t._yWorldTotal,this._statistics.merge(t._statistics);for(const e of t._objectIds.values())this._objectIds.add(e)}}getCentroid(t){throw new Error("getCentroid not supported for GeohashNode")}getGeometry(t,e){const r=this._getLngLatBounds(),[n,s,i,o]=r,a=(0,A.Cv)({rings:[[[n,s],[n,o],[i,o],[i,s],[n,s]]]},M.A.WGS84,t),u=(0,S.Ye)(new k.A,a,!1,!1);return null!=e?(0,S.Nl)(new k.A,u,!1,!1,"esriGeometryPolygon",e,!1,!1):u}getGeometricCentroid(t,e){const r=this._getLngLatBounds(),[n,s,i,o]=r,a=(0,A.Cv)({x:(n+i)/2,y:(s+o)/2},M.A.WGS84,t),u=(0,S.qN)(new k.A,a);return null!=e?(0,S.Nl)(new k.A,u,!1,!1,"esriGeometryPoint",e,!1,!1):u}getAttributes(){const t={aggregateId:this.id};for(const e of this._statistics.values())t[e.field.name]=e.value;return t.aggregateCount=this._count,t}find(t,e,r,n,s,i){if(n>=r)return this;const o=1-n%2,a=3*o+2*(1-o),u=2*o+3*(1-o),l=30-s-a,h=30-i-u,c=((t&7*o+3*(1-o)<<l)>>l)+((e&3*o+7*(1-o)<<h)>>h)*(8*o+4*(1-o)),d=this.children[c];return null==d?null:d.find(t,e,r,n+1,s+a,i+u)}_getLngLatBounds(){const t=this.depth,e=Math.ceil(t/2),r=Math.floor(t/2),n=30-(3*e+2*r),s=30-(2*e+3*r);return function(t,e){let r=-90,n=90,s=-180,i=180;for(let o=0;o<e;o++){const e=Math.ceil((o+1)/2),a=Math.floor((o+1)/2),u=1-o%2,l=30-(3*e+2*a),h=30-(2*e+3*a),c=2*u+3*(1-u),d=(7*u+3*(1-u)<<l&t.geohashX)>>l,_=(3*u+7*(1-u)<<h&t.geohashY)>>h;for(let t=3*u+2*(1-u)-1;t>=0;t--){const e=(s+i)/2,r=d&1<<t?1:0;s=(1-r)*s+r*e,i=(1-r)*e+r*i}for(let t=c-1;t>=0;t--){const e=(r+n)/2,s=_&1<<t?1:0;r=(1-s)*r+s*e,n=(1-s)*e+s*n}}return[s,r,i,n]}({geohashX:this.xNode<<n,geohashY:this.yNode<<s},this.depth)}}class R{constructor(t){this._fields=t,this._size=0,this._depth=0,this._root=N.create(this._fields,0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}find(t,e,r){return this._root.find(t,e,r,0,0,0)}insert(t,e,r,n,s,i,o){let a=this._root,u=0,l=0,h=0;for(;null!==a;){if(a.insert(t,e,r,n,s,o),u>=i)return;const c=Math.ceil((u+1)/2),d=Math.floor((u+1)/2),_=1-u%2,f=30-(3*c+2*d),p=30-(2*c+3*d),g=(n&7*_+3*(1-_)<<f)>>f,m=(s&3*_+7*(1-_)<<p)>>p,y=g+m*(8*_+4*(1-_));l=l<<3*_+2*(1-_)|g,h=h<<2*_+3*(1-_)|m,null==a.children[y]&&(a.children[y]=N.create(this._fields,l,h,u+1),this._depth=Math.max(this._depth,u+1),this._size+=1),u+=1,a=a.children[y]}}putBins(t,e){for(const r of this.getNodes(e)){const e=t.get(r.id);e?e.merge(r):t.set(r.id,r.clone())}}getNodes(t){const e=[],{geohashBounds:r,level:n}=t;let s=this._root;for(;null!==s;){const t=s.depth,i=s.xNode,o=s.yNode;if(t>=n){e.push(s),s=s.next;continue}const a=Math.ceil((t+1)/2),u=Math.floor((t+1)/2),l=1-t%2,h=30-(3*a+2*u),c=30-(2*a+3*u),d=~((1<<h)-1),_=~((1<<c)-1),f=(r.xLL&d)>>h,p=(r.yLL&_)>>c,g=(r.xTR&d)>>h,m=(r.yTR&_)>>c,y=i<<3*l+2*(1-l),b=o<<2*l+3*(1-l),w=y+8*l+4*(1-l),x=b+4*l+8*(1-l),I=Math.max(y,f),v=Math.max(b,p),M=Math.min(w,g),T=Math.min(x,m);let F=null,S=null;for(let t=v;t<=T;t++)for(let e=I;e<=M;e++){const r=e-y+(t-b)*(8*l+4*(1-l)),n=s.children[r];n&&(F||(F=n,F.next=s.next),S&&(S.next=n),S=n,n.next=s.next)}s=F||s.next}return e}}var G=r(38976);class j extends G.n{constructor(t){super(t),this._tree=new R(this._options.fields)}put(t){throw new Error("Geohash tree does not support put")}putBounded(t,e,r){const{geohashLevel:n,spatialReference:s}=this._options,i=function(t,e,r,n){const s=[t.xmin,t.ymin,t.xmax,t.ymax],i=v.A.fromExtent((0,T.w1)(s,n)),o=(0,A.Cv)(i,n,M.A.WGS84,{densificationStep:64*e});if(!o)return null;const a=(0,S.Ye)(new k.A,o,!1,!1),u=a.coords.filter((t,e)=>!(e%2)),l=a.coords.filter((t,e)=>e%2),h=Math.min(...u),c=Math.min(...l),d=Math.max(...u),_=Math.max(...l),f=P(h,c,r,M.A.WGS84),p=P(d,_,r,M.A.WGS84);return f&&p?{bounds:s,geohashBounds:{xLL:f[0],yLL:f[1],xTR:p[0],yTR:p[1]},level:r}:null}(e,r,n,s);null!=i&&this._tree.putBins(t,i)}_insert(t,e,r,n){const{geohashLevel:s,spatialReference:i}=this._options,o=P(e,r,s,i);o&&this._tree.insert(t,e,r,o[0],o[1],s,n)}}var q=r(68974),B=r(52350);class D{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this._aggregateIndex=null,this._aggregateIndexHash=null,this._spatialIndex=null}registerOverrides(t){this.reader.registerOverrides(t),this.invalidate()}queryFeaturesInBounds(t){const e=this._getSpatialIndex().search(t);return B.e.from(this.reader,e)}getAggregateIndex(t){const e=JSON.stringify(t);if(e!==this._aggregateIndexHash){switch(this._aggregateIndexHash=e,t.type){case"grid":this._aggregateIndex=new q.H(t);break;case"geohash":this._aggregateIndex=new j(t)}this._aggregateIndex.insert(this.reader,this.isTiled)}return this._aggregateIndex}_getSpatialIndex(){return this._spatialIndex||(this._spatialIndex=w.fromReader(this.reader)),this._spatialIndex}}},70581:(t,e,r)=>{r.d(e,{DV:()=>h,hD:()=>c});var n=r(78888),s=r(49186),i=r(2741);let o=null;var a=r(57733);const u=t=>async function(e,r,s,i){const o=t?.(),a=o?{...o,debug:i}:{debug:i},{data:u}=await(0,n.A)(e,{responseType:"array-buffer",query:a,headers:{range:`bytes=${r}-${s}`}});return u},l=t=>async function(e){const{data:r}=await(0,n.A)(e,{responseType:"native",method:"head",query:t?.()}),s=r.headers.get("Content-Length");if(null==s)throw new Error("Unable to parse content length");return parseInt(s,10)};async function h(t,e={}){const{ParquetFile:n}=await async function(){return o||(o=async function(){const t=await Promise.resolve().then(r.bind(r,57733));return await t.default({module_or_path:(0,i.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),t}()),o}(),h=u(e.getCustomParameters),c=l(e.getCustomParameters),d=e.geometryInfo?function(t,e){const r=t.spatialReference.wkid,n=e.wkid;if(!r||!n)throw new s.A("parquet","Unable to create ParquetFile, in and out wkid must be specified");const i=function(t){switch(t){case"esriGeometryPoint":return a.GeometryType.Point;case"esriGeometryPolygon":return a.GeometryType.Polygon;case"esriGeometryPolyline":return a.GeometryType.Polyline;case"esriGeometryMultipoint":return a.GeometryType.Multipoint;default:throw new s.A("parquet",`Found unexpected GeometryType: ${t}`)}}(t.geometryType),o=function(t){switch(t.encoding.type){case"wkb":return a.PrimaryGeometryField.fromWkb(t.encoding.primaryFieldName);case"location":{const{latitudeFieldName:e,longitudeFieldName:r}=t.encoding;return a.PrimaryGeometryField.fromLocation(e,r)}}}(t),u=[];if("xz"===t.displayOptimization?.mode){const e=t.displayOptimization.multiscale;for(const t of e.levels??[]){const[e,r]=t.transform.translate,[n,s]=t.transform.scale,i=new Float64Array([e,r]),o=new Float64Array([n,s]);u.push(a.MultiscaleGeometryField.new(t.level,t.column,i,o))}}return a.GeometryInfo.new(i,r,n,o,u)}(e.geometryInfo,e.outSpatialReference??e.geometryInfo.spatialReference):null;return n.fromUrl(t,h,c,d)}function c(t){const e=t.keyValueMetadata("geo");return null!=e?JSON.parse(e):null}},73250:(t,e,r)=>{r.d(e,{y:()=>n});class n{static fromBuffer(t,e){return new n(t,e)}static create(t,e=4294967295){const r=new Uint32Array(Math.ceil(t/32));return new n(r,e)}constructor(t,e){this._mask=0,this._buf=t,this._mask=e}_getIndex(t){return Math.floor(t/32)}has(t){const e=this._mask&t;return!!(this._buf[this._getIndex(e)]&1<<e%32)}hasRange(t,e){let r=t,n=e;for(;r%32&&r!==n;){if(this.has(r))return!0;r++}for(;n%32&&r!==n;){if(this.has(r))return!0;n--}if(r===n)return!1;for(let t=r/32;t!==n/32;t++)if(this._buf[t])return!0;return!1}set(t){const e=this._mask&t,r=this._getIndex(e),n=1<<e%32;this._buf[r]|=n}setRange(t,e){let r=t,n=e;for(;r%32&&r!==n;)this.set(r++);for(;n%32&&r!==n;)this.set(n--);if(r!==n)for(let t=r/32;t!==n/32;t++)this._buf[t]=4294967295}unset(t){const e=this._mask&t,r=this._getIndex(e),n=1<<e%32;this._buf[r]&=4294967295^n}resize(t){const e=this._buf,r=new Uint32Array(Math.ceil(t/32));r.set(e),this._buf=r}or(t){for(let e=0;e<this._buf.length;e++)this._buf[e]|=t._buf[e];return this}and(t){for(let e=0;e<this._buf.length;e++)this._buf[e]&=t._buf[e];return this}xor(t){for(let e=0;e<this._buf.length;e++)this._buf[e]^=t._buf[e];return this}ior(t){for(let e=0;e<this._buf.length;e++)this._buf[e]|=~t._buf[e];return this}iand(t){for(let e=0;e<this._buf.length;e++)this._buf[e]&=~t._buf[e];return this}ixor(t){for(let e=0;e<this._buf.length;e++)this._buf[e]^=~t._buf[e];return this}any(){for(let t=0;t<this._buf.length;t++)if(this._buf[t])return!0;return!1}copy(t){for(let e=0;e<this._buf.length;e++)this._buf[e]=t._buf[e];return this}clone(){return new n(this._buf.slice(),this._mask)}clear(){for(let t=0;t<this._buf.length;t++)this._buf[t]=0;return this}forEachSet(t){for(let e=0;e<this._buf.length;e++){let r=this._buf[e],n=32*e;if(r)for(;r;)1&r&&t(n),r>>>=1,n++}}countSet(){let t=0;return this.forEachSet(e=>{t++}),t}}},75538:(t,e,r)=>{r.d(e,{L:()=>a});var n=r(90708),s=r(92722),i=r(63664),o=r(92029);class a extends i.B{static createId(t,e){return`${t}.${e}`}static create(t,e,r,n){return new a(t,e,o.o.create(r),n)}constructor(t,e,r,n){super(r),this.gridX=t,this.gridY=e,this._worldUnitsPerCell=n,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=new Set}get id(){return a.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds.values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}clone(){const t=new a(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return t._count=this._count,t._xWorldTotal=this._xWorldTotal,t._yWorldTotal=this._yWorldTotal,t._firstFeatureAttributes=this._firstFeatureAttributes,t._objectIds=new Set(this._objectIds),t}insert(t,e,r,n){0===this._count?this._firstFeatureAttributes=t.readAttributes():this._firstFeatureAttributes=null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=n,this._statistics.insert(t,e),this._objectIds.add(t.getObjectId())}merge(t){if(0!==t._count){this._count+=t._count,this._firstFeatureAttributes=t._firstFeatureAttributes,this._xWorldTotal+=t._xWorldTotal,this._yWorldTotal+=t._yWorldTotal,this._statistics.merge(t._statistics);for(const e of t._objectIds.values())this._objectIds.add(e)}}getCentroidX(t){return null==t?this.centroidXWorld:(0,n.IE)(t,this.centroidXWorld)}getCentroidY(t){return null==t?this.centroidYWorld:(0,n.B2)(t,this.centroidYWorld)}getGeometry(t,e){const r=this.gridX*this._worldUnitsPerCell,i=this.gridY*this._worldUnitsPerCell,o=new s.A([4],[r,i,r+this._worldUnitsPerCell,i,r+this._worldUnitsPerCell,i+this._worldUnitsPerCell,r,i+this._worldUnitsPerCell]);if(null!=e){const t=new s.A;return(0,n.Nl)(t,o,!1,!1,"esriGeometryPolygon",e)}return o}getCentroid(t){const e=new s.A([],[this.centroidXWorld,this.centroidYWorld]);if(null!=t){const r=new s.A;return(0,n.Nl)(r,e,!1,!1,"esriGeometryPoint",t)}return e}getGeometricCentroid(t,e){const r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,i=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,o=new s.A([],[r,i]);if(null!=e){const t=new s.A;return(0,n.Nl)(t,o,!1,!1,"esriGeometryPoint",e)}return o}getAttributes(){const t={aggregateId:this.id};for(const e of this._statistics.values())t[e.field.name]=e.value;return null!=this._firstFeatureAttributes?{...t,...this._firstFeatureAttributes}:t}}},76213:(t,e,r)=>{r.d(e,{C2:()=>o,CQ:()=>n,DY:()=>s,GR:()=>p,Gh:()=>u,MZ:()=>d,TB:()=>f,U5:()=>a,_M:()=>l,cp:()=>g,eG:()=>i,fq:()=>_,hM:()=>c,ie:()=>h});const n=512,s=29,i=24,o=4,a=6,u=1.05,l=3,h=3,c=4,d=1,_=10,f=256,p=32,g=512},92029:(t,e,r)=>{r.d(e,{o:()=>i});var n=r(50115);const s=Math.PI/180;class i{static create(t){return new i(t.map(t=>function(t){switch(t.statisticType){case"min":return new a(t);case"max":return new u(t);case"avg":return new h(t);case"avg_angle":return new c(t);case"sum":case"count":return new l(t);case"mode":return new d(t)}}(t)))}constructor(t){this._statistics=t}values(){return this._statistics.values()}insert(t,e){for(const r of this._statistics)r.insert(t,e)}merge(t){for(let e=0;e<this._statistics.length;e++){const r=this._statistics[e],n=t._statistics[e];if(r.field.name!==n.field.name)throw new Error("InternalError: Tried to merge incompatible statistics");r.merge(n)}}clone(){return new i(this._statistics.map(t=>t.clone()))}}class o{constructor(t){this.field=t}insert(t,e){if(!this.field.computed)return;const r=this.field.computed.read(t,e);(0,n.rZ)(r)||this._insertValue(r)}}class a extends o{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(t){this.value=Math.min(this.value,t)}merge(t){this.value=Math.min(this.value,t.value)}clone(){const t=new a(this.field);return t.value=this.value,t}}class u extends o{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(t){this.value=Math.max(this.value,t)}merge(t){this.value=Math.max(this.value,t.value)}clone(){const t=new u(this.field);return t.value=this.value,t}}class l extends o{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(t){this.value+=t}merge(t){this.value+=t.value}clone(){const t=new l(this.field);return t.value=this.value,t}}class h extends o{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(t){this._total+=t,this._count+=1}merge(t){this._total+=t._total,this._count+=t._count}clone(){const t=new h(this.field);return t._total=this._total,t._count=this._count,t}}class c extends o{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){const t=this._x/this._count,e=this._y/this._count,r=180/Math.PI;return Math.atan2(e,t)*r}_insertValue(t){this._x=this._x+Math.cos(t*s),this._y=this._y+Math.sin(t*s),this._count+=1}merge(t){this._x+=t._x,this._y+=t._y,this._count+=t._count}clone(){const t=new c(this.field);return t._x=this._x,t._y=this._y,t._count=this._count,t}}class d extends o{constructor(){super(...arguments),this._frequencies=new Map}get value(){let t,e=0;for(const[r,n]of this._frequencies.entries())n>e&&(e=n,t=r);return t}_insertValue(t){const e=this._frequencies.get(t);null!=e?this._frequencies.set(t,e+1):this._frequencies.set(t,1)}merge(t){for(const[e,r]of t._frequencies.entries()){const t=this._frequencies.get(e);null!=t?this._frequencies.set(e,t+r):this._frequencies.set(e,r)}}clone(){const t=new d(this.field);return t._frequencies=new Map(this._frequencies),t}}},97633:(t,e,r)=>{r.d(e,{P:()=>s});var n=r(73250);class s{constructor(t){this._valid=n.y.create(t),this._data=new Array(t)}has(t){return this._valid.has(t)}set(t,e){this._valid.set(t),this._data[t]=e}get(t){return this._data[t]}}},98453:(t,e,r)=>{r.d(e,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},98988:(t,e,r)=>{r.r(e),r.d(e,{canProjectWithoutEngine:()=>Z,getTransformation:()=>D,getTransformations:()=>W,initializeProjection:()=>$,isEqualBaseGCS:()=>J,isLoaded:()=>O,isLoadedOrLoad:()=>z,isLoadedOrLoadFor:()=>C,load:()=>R,project:()=>G,projectExtent:()=>it,projectMany:()=>j,projectMultipoint:()=>H,projectOrLoad:()=>q,projectOrLoadMany:()=>B,projectPoint:()=>Q,projectPolygon:()=>nt,projectPolyline:()=>et,projectWithZConversion:()=>U,projectWithoutEngine:()=>V,requiresLoad:()=>N,test:()=>X,tryProjectWithZConversion:()=>L,unload:()=>Y});var n=r(49186),s=r(74887),i=r(62788),o=r(95488),a=r(51850),u=r(21276),l=r(73941),h=r(5443),c=r(48526),d=r(83290),_=r(86738),f=r(39829),p=r(82799),g=r(16930),m=r(9762),y=r(37539);function b(t,e,r,n,s,i){return w[0]=t,w[1]=e,w[2]=r,(0,m.projectBuffer)(w,n,0,s,i,0)}const w=(0,a.vt)();let x=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=x++,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=x++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=x++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=x++}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 r="";for(const n of t.steps){const t=I.fromGE(n);e.steps.push(t),r+=t.uid.toString()+","}return e._cachedProjection={},e._gtlistentry=null,e._chain=r,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 r=this.steps[e];t.steps.push(r.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,r){this._cachedProjection[v.cacheKey(t,e)]=r}getCachedGeTransformation(t,e){let r="";for(const t of this.steps)r+=t.uid.toString()+",";r!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=r);const n=this._cachedProjection[v.cacheKey(t,e)];return void 0===n?null:n}}var M=r(21325),T=r(62815);let F=null,S=null,k=null,A={};const P=new o.I;function O(){return!!F&&(0,d.i)()}function z(){return!!O()||((0,i.gc)(P),R(),!1)}function C(t,e){return!t||!e||Z(t,e)||z()}function N(t,e){return!Z(t,e)&&!O()}function R(t){return null==k&&(k=Promise.all([(0,d.l)(),r.e(9930).then(r.bind(r,49930)).then(t=>t.g),r.e(2731).then(r.bind(r,12731))])),k.then(([,e,{hydratedAdapter:r}])=>{(0,s.Te)(t),S=r,F=e.default,F._enableProjection(d.p),P.notify()})}function G(t,e,r=null,n=null){return Array.isArray(t)?0===t.length?[]:((0,u.H)(t),j(S,t,t[0].spatialReference,e,r,n)):((0,u.f)(t),j(S,[t],t.spatialReference,e,r,n)[0])}function j(t,e,r,n,s=null,i=null){if(null==r||null==n)return e;if(Z(r,n,s))return e.map(t=>V(t,r,n));if(null==s&&(0,l.jA)(r))return e.map(t=>V(t,r,g.A.WGS84)).map(t=>L(t,n));if(null==s&&(0,l.jA)(n))return e.map(t=>L(t,g.A.WGS84)).map(t=>V(t,g.A.WGS84,n));if(null==s){const t=v.cacheKey(r,n);void 0!==A[t]?s=A[t]:(null==(s=D(r,n,void 0))&&(s=new v),A[t]=s)}if(null==F||null==t)throw new E;return null!=i?F._project(t,e,r,n,s,i):F._project(t,e,r,n,s)}function q(t,e){const r=B([t],e);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function B(t,e){if(!O())for(const r of t)if(null!=r&&!(0,M.aI)(r.spatialReference,e)&&(0,M.fn)(r.spatialReference)&&(0,M.fn)(e)&&!Z(r.spatialReference,e))return(0,i.gc)(P),{pending:R(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,M.aI)(t.spatialReference,e)?t:(0,M.fn)(t.spatialReference)&&(0,M.fn)(e)?L(t,e):null)}}function D(t,e,r=null){if(null==t||null==e)return null;if(null==F||null==S)throw new E;const n=F._getTransformation(S,t,e,r,r?.spatialReference);return null!==n?v.fromGE(n):null}function W(t,e,r=null){if(null==F||null==S)throw new E;const n=F._getTransformationBySuitability(S,t,e,r,r?.spatialReference);if(null!==n){const t=[];for(const e of n)t.push(v.fromGE(e));return t}return[]}class E extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function Y(){F=null,S=null,k=null,A={}}const X={get loadPromise(){return k}};function L(t,e){try{const r=G(t,e);if(null==r)return null;"xmin"in t&&"xmin"in r&&(r.zmin=t.zmin,r.zmax=t.zmax);const n=(0,T.N)(r.type,t.spatialReference,e);return null!=n&&n(r),r}catch(t){if(!(t instanceof E))throw t;return null}}async function U(t,e,r){const n=t.spatialReference;return null!=n&&null!=e&&await $(n,e,null,r),L(t,e)}function Z(t,e,r){return!r&&(!!(0,M.aI)(t,e)||(0,M.fn)(t)&&(0,M.fn)(e)&&!!(0,y.jd)(t,e))}function J(t,e){if((0,M.aI)(t,e))return!0;if(!(0,M.fn)(t)||!(0,M.fn)(e))return!1;const r=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t),n=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e);return r&&n}async function $(t,e,r,n){if(O())return(0,s.NO)(n);if(Array.isArray(t)){for(const{source:e,dest:r,geographicTransformation:s}of t)if(e&&r&&!Z(e,r,s))return R(n)}else if(t&&e&&!Z(t,e,r))return R(n);return(0,s.NO)(n)}function V(t,e,r){return t?"x"in t?K(t,e,new _.A,r,0):"xmin"in t?ot(t,e,new h.A,r,0):"rings"in t?st(t,e,new f.A,r,0):"paths"in t?rt(t,e,new p.A,r,0):"points"in t?tt(t,e,new c.A,r,0):null:null}function Q(t,e,r=e.spatialReference,n=0){return null!=r&&null!=t.spatialReference&&null!=K(t,t.spatialReference,e,r,n)}function K(t,e,r,n,s){ut[0]=t.x,ut[1]=t.y;const i=t.z;return ut[2]=void 0!==i?i:s,(0,m.projectBuffer)(ut,e,0,ut,n,0)?(r.x=ut[0],r.y=ut[1],r.spatialReference=n,void 0!==i||(0,l.xP)(n)?(r.z=ut[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===t.m?(r.m=void 0,r.hasM=!1):(r.m=t.m,r.hasM=!0),r):null}function H(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=tt(t,t.spatialReference,e,r,n)}function tt(t,e,r,n,s){const{points:i,hasZ:o,hasM:a}=t,u=[],h=i.length,c=[];for(const t of i)c.push(t[0],t[1],o?t[2]:s);if(!(0,m.projectBuffer)(c,e,0,c,n,0,h))return null;const d=o||(0,l.xP)(n);for(let t=0;t<h;++t){const e=3*t,r=c[e],n=c[e+1];d&&a?u.push([r,n,c[e+2],i[t][3]]):d?u.push([r,n,c[e+2]]):a?u.push([r,n,i[t][2]]):u.push([r,n])}return r.points=u,r.spatialReference=n,r.hasZ=o,r.hasM=a,r}function et(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=rt(t,t.spatialReference,e,r,n)}function rt(t,e,r,n,s){const{paths:i,hasZ:o,hasM:a}=t,u=[];if(!at(i,o??!1,a??!1,e,u,n,s))return null;const h=o||(0,l.xP)(n);return r.paths=u,r.spatialReference=n,r.hasZ=h,r.hasM=a,r}function nt(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=st(t,t.spatialReference,e,r,n)}function st(t,e,r,n,s){const{rings:i,hasZ:o,hasM:a}=t,u=[];if(!at(i,o??!1,a??!1,e,u,n,s))return null;const h=o||(0,l.xP)(n);return r.rings=u,r.spatialReference=n,r.hasZ=h,r.hasM=a,r}function it(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=ot(t,t.spatialReference,e,r,n)}function ot(t,e,r,n,s){const{xmin:i,ymin:o,xmax:a,ymax:u,hasZ:h,hasM:c}=t;if(!b(i,o,h?t.zmin:s,e,ut,n))return null;const d=h||(0,l.xP)(n);return r.xmin=ut[0],r.ymin=ut[1],d&&(r.zmin=ut[2]),b(a,u,h?t.zmax:s,e,ut,n)?(r.xmax=ut[0],r.ymax=ut[1],d&&(r.zmax=ut[2]),c&&(r.mmin=t.mmin,r.mmax=t.mmax),r.spatialReference=n,r):null}function at(t,e,r,n,s,i,o=0){const a=new Array;for(const r of t)for(const t of r)a.push(t[0],t[1],e?t[2]:o);if(!(0,m.projectBuffer)(a,n,0,a,i,0))return!1;let u=0;s.length=0;const h=e||(0,l.xP)(i);for(const e of t){const t=new Array;for(const n of e)h&&r?t.push([a[u++],a[u++],a[u++],n[3]]):h?t.push([a[u++],a[u++],a[u++]]):r?(t.push([a[u++],a[u++],n[2]]),u++):(t.push([a[u++],a[u++]]),u++);s.push(t)}return!0}const ut=(0,a.vt)()},99996:(t,e,r)=>{r.d(e,{Y:()=>P});var n=r(66131),s=r(44208),i=r(44729),o=r(15032),a=r(36745),u=r(70328),l=r(65864),h=r(32011),c=r(62577),d=r(27647),_=r(90708),f=r(43334),p=r(92722),g=r(98623),m=r(97633);const y=(0,s.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],b=y[0],w=y[1],x=y[2],I=y[3],v=(0,s.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],M=v[0],T=v[1],F=v[2],S=(0,s.A)("featurelayer-simplify-mobile-factor")??2,k=(0,s.A)("esri-mobile"),A=4294967295;class P{constructor(t){this.metadata=t,this.type="FeatureSetReader",this._overrides=null,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}getAreaSimplificationThreshold(t,e){let r=1;const n=k?S:1;e>4e6?r=F*n:e>1e6?r=T*n:e>5e5?r=M*n:e>1e5&&(r=n);let s=0;return t>4e3?s=I*r:t>2e3?s=x*r:t>100?s=w:t>15&&(s=b),s}getBounds(t){!function(t,e){if(!(t.length>e))for(;t.length<=e;)t.push(0)}(this._boundsBuffer,4*this.getIndex()+4);const e=this.getBoundsXMin();if(e===A||!isFinite(e))return!1;if(0===this.getBoundsXMin()){const e=this.readGeometryWorldSpace();if(e?.isPoint&&0===e.coords[0]&&0===e.coords[1])return(0,u.BI)(t,0,0,0,0),!0;if(!e)return this.setBoundsXMin(A),!1;let r=1/0,n=1/0,s=-1/0,i=-1/0;return e.forEachVertex((t,e)=>{r=Math.min(r,t),n=Math.min(n,e),s=Math.max(s,t),i=Math.max(i,e)}),this.setBoundsXMin(r),this.setBoundsYMin(n),this.setBoundsXMax(s),this.setBoundsYMax(i),(0,u.BI)(t,r,n,s,i),!0}const r=this.getBoundsXMin(),n=this.getBoundsYMin(),s=this.getBoundsXMax(),i=this.getBoundsYMax();return(0,u.BI)(t,r,n,s,i),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(t){this._boundsBuffer[4*this.getIndex()]=t}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(t){this._boundsBuffer[4*this.getIndex()+1]=t}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(t){this._boundsBuffer[4*this.getIndex()+2]=t}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(t){this._boundsBuffer[4*this.getIndex()+3]=t}readAttributeAsTimestamp(t){const e=this.readAttribute(t);return"string"==typeof e?new Date(e).getTime():"number"==typeof e||null==e?e:null}readAttribute(t,e=!1){const r=this._readAttribute(t,e);if(void 0!==r)return r;for(const r of this._joined){r.setIndex(this.getIndex());const n=r._readAttribute(t,e);if(void 0!==n)return n}}readAttributes(){const t=this._readAttributes();for(const e of this._joined){e.setIndex(this.getIndex());const r=e._readAttributes();for(const e of Object.keys(r))t[e]=r[e]}return t}joinAttributes(t){this._joined.push(t)}registerOverrides(t){this._overrides=t}withoutOverrides(){const t=this.copy();return t._overrides=null,t}readOptimizedFeatureWorldSpace(){const t=this.readGeometryWorldSpace(),e=this.readAttributes(),r=this.readCentroidWorldSpace();return new f.Om(t,e,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){const t=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyFeatureWorldSpace(){const t=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyGeometryForDisplay(){const t=this.readGeometryForDisplay();return(0,_.zv)(t,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){const t=this._readX(),e=this.getInTransform();return null==e?t:t*e.scale[0]+e.translate[0]}readYWorldSpace(){const t=this._readY(),e=this.getInTransform();return null==e?t:e.translate[1]-t*e.scale[1]}readGeometryForDisplay(){const t=this._readGeometryDeltaDecoded(!0);if(!t){const t=this._createDeltaQuantizedGeometryFromServerCentroid();return t?t.deltaDecode():null}return t}readGeometryForDisplayTransformed(t){let e=this.readGeometryForDisplay();if(e&&"esriGeometryPolyline"===this.metadata.geometryType&&(e=(0,_.kz)(new p.A,e,this.hasZ,this.hasM,this.metadata.geometryType,t.scale[0])),e&&(e=(0,_.hK)(e,t,this.metadata.geometryType,this.hasZ,this.hasM)),!e){const e=this.readCentroidForDisplay();if(!e)return null;const r=(0,c.IE)(t,e.coords[0]),n=(0,c.B2)(t,e.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,n).deltaDecode()}return e}readGeometryWorldSpace(){let t=this._readGeometry();if(t||(t=this._createDeltaQuantizedGeometryFromServerCentroid()),!t)return null;const e=t.clone(),r=this.getInTransform();return null!=r&&(0,_.Ch)(e,e,this.hasZ,this.hasM,r),e}readCentroidForDisplay(){const t=this.readGeometryForDisplay();return t?this._computeDisplayCentroid(t):this._readServerCentroid()}readCentroidWorldSpace(){const t=this.readGeometryForDisplay(),e=t?this._computeDisplayCentroid(t):this._readServerCentroid();if(!e)return null;const r=e.clone(),n=this.getInTransform();return null!=n&&(0,_.Ch)(r,r,this.hasZ,this.hasM,n),r}setCache(t){let e=this._caches.get(t);null==e&&(e=new m.P(this.getSize()),this._caches.set(t,e)),this._activeCache=e}setCachedValue(t){this._activeCache.set(this.getIndex(),t)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}_readGeometryDeltaDecoded(t){const e=this._readGeometry(t);return"esriGeometryPoint"!==this.geometryType&&e&&this.getInTransform()?e.deltaDecode():e}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(t){this._contextTimeZone=t}readArcadeFeature(){return this}hasField(t){return this.fields.has(t)||this._joined.some(e=>e.hasField(t))}geometry(){const t=this.readGeometryWorldSpace(),e=(0,_.zv)(t,this.geometryType,this.hasZ,this.hasM),r=(0,l.rS)(e);if(r){if(!this.metadata.outSpatialReference)throw new Error("InternalError: Expected spatial reference to be defined");r.spatialReference=this.metadata.outSpatialReference}return r}autocastArcadeDate(t,e){return e&&e instanceof Date?this.isUnknownDateTimeField(t)?n.lY.unknownDateJSToArcadeDate(e):n.lY.dateJSAndZoneToArcadeDate(e,this.contextTimeZone??g.qU):e}isUnknownDateTimeField(t){return this.metadata.fieldsIndex.getTimeZone(t)===g.L5}field(t){let e=this.fields.get(t);if(e)switch(e.type){case"date-only":case"esriFieldTypeDateOnly":return i.n.fromReader(this.readAttribute(t,!1));case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(this.readAttribute(t,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(this.readAttribute(t,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(t,this.readAttribute(t,!0));default:return this.readAttribute(t,!1)}for(const r of this._joined)if(r.setIndex(this.getIndex()),e=r.fields.get(t),e)switch(e.type){case"date-only":case"esriFieldTypeDateOnly":return i.n.fromReader(r._readAttribute(t,!1));case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(r._readAttribute(t,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(r._readAttribute(t,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(t,r._readAttribute(t,!0));default:return this.readAttribute(t,!1)}throw new Error(`Field ${t} does not exist`)}setField(t,e){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(t=>t.name)}castToText(t=!1){if(!t)return JSON.stringify(this.readLegacyFeatureForDisplay());const e=this.readLegacyFeatureForDisplay();if(!e)return JSON.stringify(null);const r={geometry:e.geometry,attributes:{...e.attributes??{}}};for(const t in r.attributes){const e=r.attributes[t];e instanceof Date&&(r.attributes[t]=e.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(t=null){return{attributes:this._readAttributes(),geometry:!0===t?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(t=null,e=null){return Promise.resolve(this.castAsJson(e))}_getExists(){if(this._overrides){const t=this.getObjectId();return!this._overrides.hasOverride(t)}return!0}_computeDisplayCentroid(t){if(null==this.getInTransform())return(0,d.Q)(new p.A,t,this.hasM,this.hasZ);const e=a.z.fromOptimized(t,this.geometryType);e.yFactor*=-1;const r=(0,h.d)(e);return r?(r[1]*=-1,new p.A([],r)):null}copyInto(t){t._joined=this._joined,t._overrides=this._overrides,t._objectIdToIndex=this._objectIdToIndex,t._boundsBuffer=this._boundsBuffer,t._activeCache=this._activeCache,t._caches=this._caches,t._contextTimeZone=this._contextTimeZone}_readLegacyGeometryWorldSpace(){const t=this.readGeometryWorldSpace();return(0,_.zv)(t,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){const t=this._readServerCentroid();if(!t)return null;const[e,r]=t.coords;return this._createDeltaQuantizedExtrudedGeometry(e,r)}_createDeltaQuantizedExtrudedGeometry(t,e){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(t,e):this._createDeltaQuantizedExtrudedQuad(t,e)}_createDeltaQuantizedExtrudedQuad(t,e){return new p.A([5],[t-1,e,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(t,e){return new p.A([2],[t-1,e+1,1,-1])}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5404],{95404:(e,r,t)=>{t.d(r,{computeObjectLayerResourceSize:()=>c}),t(78888);var i=t(49186),n=t(66344),o=t(51850),s=t(70328),l=t(8887);let u=new n.q(50);async function c(e,r=null){if(!e.isPrimitive){const r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=u.get(r);if(null!=n)return n;const{fetch:l}=await Promise.all([t.e(3030),t.e(7937),t.e(7005),t.e(998),t.e(4304)]).then(t.bind(t,64304)),c=await l(r,{disableTextures:!0,spherical:!0}),a=(0,s.Ej)(c.referenceBoundingBox,(0,o.vt)());return u.put(r,a),a}if(!e.resource?.primitive)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=(0,s.vt)((0,l.Fq)(e.resource.primitive));if(null!=r)for(let e=0;e<n.length;e++)n[e]*=r;return(0,s.Ej)(n,(0,o.vt)())}}}]);