@arcgis/core 5.2.0-next.75 → 5.2.0-next.76
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.
- package/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/013c9cc198736a72f7f2.js +1 -0
- package/assets/esri/core/workers/chunks/0194244a3f437ad74045.js +1 -0
- package/assets/esri/core/workers/chunks/{4dcd4a052b40047a9230.js → 08cac27df6c216ae1995.js} +1 -1
- package/assets/esri/core/workers/chunks/08ec5461af74356e7570.js +1 -0
- package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +1 -0
- package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +1 -0
- package/assets/esri/core/workers/chunks/{5e1d84e97de0e662aaa9.js → 1142f8e9c80207d6bdae.js} +1 -1
- package/assets/esri/core/workers/chunks/16929524565a677db4dc.js +1 -0
- package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +1 -0
- package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +1 -0
- package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +1 -0
- package/assets/esri/core/workers/chunks/1ef28d4457c8c943ad19.js +1 -0
- package/assets/esri/core/workers/chunks/{2b93888e61ca638490cf.js → 20b54e7872d967f3be32.js} +1 -1
- package/assets/esri/core/workers/chunks/{5f31b375971ab067121e.js → 21f763694a41968ac21a.js} +1 -1
- package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +1 -0
- package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +1 -0
- package/assets/esri/core/workers/chunks/270ed3070d118edb3f37.js +1 -0
- package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +1 -0
- package/assets/esri/core/workers/chunks/315031323e11a18154e3.js +1 -0
- package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +1 -0
- package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +1 -0
- package/assets/esri/core/workers/chunks/{99e3aa4832ed87474ab4.js → 44857a76be2c0ac65bb9.js} +1 -1
- package/assets/esri/core/workers/chunks/{3e2b4e734aa20a308f3e.js → 46e56fac44e0fd26ba1d.js} +1 -1
- package/assets/esri/core/workers/chunks/{4491dc227c28e2ab4f8e.js → 484b251fbcbffcb58323.js} +1 -1
- package/assets/esri/core/workers/chunks/48e2d0bfb62e1f4f2ad9.js +1 -0
- package/assets/esri/core/workers/chunks/4945d6b0ca1812864185.js +1 -0
- package/assets/esri/core/workers/chunks/{7f2f2a92dce3f68e579b.js → 4b54444c04fbd6f42c18.js} +1 -1
- package/assets/esri/core/workers/chunks/4c82f5f23004f905a18f.js +1 -0
- package/assets/esri/core/workers/chunks/4f8ce5887102971bfa34.js +2 -0
- package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js → 532e3a59888e4cc13bd3.js} +2 -2
- package/assets/esri/core/workers/chunks/53eed0941a39b56cc034.js +1 -0
- package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +1 -0
- package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +1 -0
- package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +1 -0
- package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +1 -0
- package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +1 -0
- package/assets/esri/core/workers/chunks/5fd2aa0be03dfb494efa.js +1 -0
- package/assets/esri/core/workers/chunks/619aa1381296172ff47b.js +1 -0
- package/assets/esri/core/workers/chunks/62f37d1075390a177ae9.js +1 -0
- package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +1 -0
- package/assets/esri/core/workers/chunks/680dd7b7638465eb33de.js +1 -0
- package/assets/esri/core/workers/chunks/6c740c411b085d2d08c4.js +1 -0
- package/assets/esri/core/workers/chunks/{b14961a9f1f40028f141.js → 6c982779d6d47ec99899.js} +1 -1
- package/assets/esri/core/workers/chunks/{0eb35e09765fd74eb698.js → 6e45ecf359bce3417f5d.js} +1 -1
- package/assets/esri/core/workers/chunks/{a52c88e2d837b525ff6c.js → 71ee7c51d2c60a180f1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js → 755b2d883fba90c4e688.js} +2 -2
- package/assets/esri/core/workers/chunks/{6b783f440c4a5d36e879.js → 75fc0b1db8e2e3fd2458.js} +1 -1
- package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +1 -0
- package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +1 -0
- package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +1 -0
- package/assets/esri/core/workers/chunks/83e54166ba634ec2bd89.js +1717 -0
- package/assets/esri/core/workers/chunks/87eaed6fdabd482d142e.js +1 -0
- package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +1 -0
- package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +1 -0
- package/assets/esri/core/workers/chunks/{67f54586156d1ab80257.js → 8b980c6b92cc4ea68ede.js} +1 -1
- package/assets/esri/core/workers/chunks/{4046bd65d7d0677f4600.js → 8d9a7fa14489897780d3.js} +1 -1
- package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +1 -0
- package/assets/esri/core/workers/chunks/9199300ffd225a1bbef1.js +1 -0
- package/assets/esri/core/workers/chunks/{5ba3a30b7cbfa9e3aa62.js → 94b9a61b4dbb83425a78.js} +1 -1
- package/assets/esri/core/workers/chunks/98613fded899c59f34a4.js +1 -0
- package/assets/esri/core/workers/chunks/{6743d726e45e7b660505.js → 9c3e6325dc60bcaf44d7.js} +1 -1
- package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +1 -0
- package/assets/esri/core/workers/chunks/{7a24cc0f3b4eff2bdb8e.js → 9e2e4d197a7a57c2a691.js} +1 -1
- package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js → a014c17fc210620da738.js} +2 -2
- package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js → a19be304219808268039.js} +2 -2
- package/assets/esri/core/workers/chunks/{53d165b4f30fd64e5d8a.js → a4e4fa4dd1a122bbf7cd.js} +1 -1
- package/assets/esri/core/workers/chunks/a5240c8a47842138f31f.js +1 -0
- package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +1 -0
- package/assets/esri/core/workers/chunks/a7727a2377470d586ff9.js +1 -0
- package/assets/esri/core/workers/chunks/a91c1d782346a9c7e1ef.js +1 -0
- package/assets/esri/core/workers/chunks/{6cd6d0cfd313f0475d98.js → ac59218847e5ef4c4160.js} +1 -1
- package/assets/esri/core/workers/chunks/ac87be2210f868524996.js +1 -0
- package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +1 -0
- package/assets/esri/core/workers/chunks/{43713bc6f7eea07259d0.js → b084829a3fd709dc47a8.js} +1 -1
- package/assets/esri/core/workers/chunks/{05f6887805d92da03122.js → b24fc7eeda580ef020d2.js} +1 -1
- package/assets/esri/core/workers/chunks/b37a20c5c4a4686257d4.js +1 -0
- package/assets/esri/core/workers/chunks/{43a65cab888d43954564.js → b4abf82b8ac974a55ae1.js} +1 -1
- package/assets/esri/core/workers/chunks/b950ddafba8125c84a5b.js +1 -0
- package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +1 -0
- package/assets/esri/core/workers/chunks/{0d3b2d9a19383bb63f0a.js → bad2c7219e95750906e1.js} +1 -1
- package/assets/esri/core/workers/chunks/bbc6b270d2032189107c.js +1 -0
- package/assets/esri/core/workers/chunks/bc6e488f5fbd50f9f3d0.js +1 -0
- package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +1 -0
- package/assets/esri/core/workers/chunks/{1c49c9472167a2e0c923.js → c17dda6fadb8bfad0d51.js} +1 -1
- package/assets/esri/core/workers/chunks/c1e5ffe9a251be5a0744.js +1 -0
- package/assets/esri/core/workers/chunks/ca6652c6304ad0e37e8f.js +1 -0
- package/assets/esri/core/workers/chunks/{762be5d3e6aeaea33f74.js → cef02ed3942c010da2e8.js} +1 -1
- package/assets/esri/core/workers/chunks/d520d407043bc52e5410.js +1 -0
- package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +1 -0
- package/assets/esri/core/workers/chunks/dbdd96e558936955acdb.js +1 -0
- package/assets/esri/core/workers/chunks/de927b1460bc384f5b87.js +1 -0
- package/assets/esri/core/workers/chunks/de9a1cce70581920f248.js +1 -0
- package/assets/esri/core/workers/chunks/dff932682d6386a861ce.js +1 -0
- package/assets/esri/core/workers/chunks/{2c31648a4b95275516ee.js → e227eb44cd139fe2bc1b.js} +1 -1
- package/assets/esri/core/workers/chunks/e4e5a171a4874c5af4a4.js +1 -0
- package/assets/esri/core/workers/chunks/{ddb92c815d17c67a45e6.js → e5d114f2b57d2b8e2f1c.js} +1 -1
- package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +1 -0
- package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +1 -0
- package/assets/esri/core/workers/chunks/{3de6e54b6ed0feae1940.js → eae51e827f629ab37207.js} +1 -1
- package/assets/esri/core/workers/chunks/eee1fd629619021ea279.js +1 -0
- package/assets/esri/core/workers/chunks/{b6cd165d0e58598f28a5.js → ef47a5da641cb0d33fdf.js} +1 -1
- package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +1 -0
- package/assets/esri/core/workers/chunks/{3dff36f6de181d9dcdc5.js → f40e4433e7608d0962a6.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1c7c877edc6948f3801.js → f4aa6e90200f61e623e5.js} +1 -1
- package/assets/esri/core/workers/chunks/{36ec5b84e551ab08b24a.js → ff578f0ca68d652fece5.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
- package/chunks/HeatmapDensity.glsl.js +5 -5
- package/chunks/bundle2.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/config.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/support/centroid.js +1 -1
- package/geometry/support/extentUtils.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/projectionSupport.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/package.json +2 -2
- package/support/revision.js +1 -1
- package/symbols/cim/animationUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/effects/EffectCircularSector.js +1 -1
- package/views/2d/engine/BitmapTile.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/imagery/RasterTile.js +1 -1
- package/views/2d/engine/imagery/RasterVFTile.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
- package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/RenderingDevice.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
- package/views/2d/engine/webgl/animations/infos.js +1 -1
- package/views/2d/engine/webgl/animations/instructions.js +1 -1
- package/views/2d/engine/webgl/normalizedTileUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/Tile.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderOutline.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/types.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/uniformBufferUtils.js +2 -0
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/support/DisplayGL.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/DrapedZ.js +2 -0
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
- package/views/3d/webgl-engine/lib/PositionReader.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFields.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/UniformBufferLayout.js +1 -1
- package/views/webgl/UniformBufferObject.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +20 -6
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.d.ts +100 -0
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.js +2 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
- package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
- package/assets/esri/core/workers/chunks/02dd79beb13eff6be85e.js +0 -1
- package/assets/esri/core/workers/chunks/0823961e5d0bdedbf8cf.js +0 -2
- package/assets/esri/core/workers/chunks/0aedeb837399d3f92e4a.js +0 -1
- package/assets/esri/core/workers/chunks/0bf644f93c180a2bc2f8.js +0 -705
- package/assets/esri/core/workers/chunks/0daaa89de339e8ea4b81.js +0 -1
- package/assets/esri/core/workers/chunks/1119a33245138e7b3914.js +0 -1
- package/assets/esri/core/workers/chunks/12234a63d3fa4bc25e7e.js +0 -1
- package/assets/esri/core/workers/chunks/1cf8fb704c48ac3d3b15.js +0 -1
- package/assets/esri/core/workers/chunks/2435ef7d11f8dbb920b7.js +0 -256
- package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +0 -1
- package/assets/esri/core/workers/chunks/27f574acf52f2c8bc2c9.js +0 -1
- package/assets/esri/core/workers/chunks/2d45daacec0d5ed38782.js +0 -1
- package/assets/esri/core/workers/chunks/2ea3ca68cfa4d34e8f3b.js +0 -1
- package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +0 -1
- package/assets/esri/core/workers/chunks/3235e14fedb19dd94807.js +0 -1
- package/assets/esri/core/workers/chunks/32f5112c848efec6c33b.js +0 -1
- package/assets/esri/core/workers/chunks/3bc2943035391b44d4cf.js +0 -29
- package/assets/esri/core/workers/chunks/3c32471785bc8570e41c.js +0 -1
- package/assets/esri/core/workers/chunks/4295822fa6ef743c76f1.js +0 -1
- package/assets/esri/core/workers/chunks/42d5ed44111bea77ec71.js +0 -1462
- package/assets/esri/core/workers/chunks/46873badbd6ce8ff4e1e.js +0 -1
- package/assets/esri/core/workers/chunks/4710f21b138a2c9a0345.js +0 -1
- package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +0 -1
- package/assets/esri/core/workers/chunks/4c2794687aea172775a0.js +0 -1
- package/assets/esri/core/workers/chunks/4d9bde9f66817a92ceca.js +0 -1
- package/assets/esri/core/workers/chunks/4fe2cca405180af23364.js +0 -1
- package/assets/esri/core/workers/chunks/519af918050b47f93516.js +0 -1
- package/assets/esri/core/workers/chunks/5600fc334d20c4f0c83d.js +0 -1
- package/assets/esri/core/workers/chunks/5627f562dea8bae2f346.js +0 -1
- package/assets/esri/core/workers/chunks/5bf4ab72b9634b06cc5d.js +0 -1
- package/assets/esri/core/workers/chunks/5e3d5347223f0111f40f.js +0 -1
- package/assets/esri/core/workers/chunks/6f58cb9dffe8016397a2.js +0 -1
- package/assets/esri/core/workers/chunks/6fc3553c52af6ace926d.js +0 -1
- package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +0 -1
- package/assets/esri/core/workers/chunks/7dc5aedc964eacd1be5a.js +0 -1
- package/assets/esri/core/workers/chunks/7f91e45156bbe88f9a62.js +0 -1
- package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +0 -1
- package/assets/esri/core/workers/chunks/8d21e2dabc5165f1c8ca.js +0 -1
- package/assets/esri/core/workers/chunks/903e1cd8b76eff19ebdf.js +0 -1
- package/assets/esri/core/workers/chunks/917c11cb40a7742d7f98.js +0 -1
- package/assets/esri/core/workers/chunks/91d133c04ca764d74934.js +0 -1
- package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +0 -1
- package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +0 -1
- package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +0 -1
- package/assets/esri/core/workers/chunks/96cec8a02ca96175d602.js +0 -1
- package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +0 -1
- package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +0 -1
- package/assets/esri/core/workers/chunks/9be6827e5756031a56c1.js +0 -1
- package/assets/esri/core/workers/chunks/9cff18e6f751d1b3085e.js +0 -1
- package/assets/esri/core/workers/chunks/a101152066dd56259619.js +0 -1
- package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +0 -1
- package/assets/esri/core/workers/chunks/a3bf8aa81ee398da5b52.js +0 -1
- package/assets/esri/core/workers/chunks/a7a7d3289d4ca95f545f.js +0 -1
- package/assets/esri/core/workers/chunks/abb6c76d5dba3559a68e.js +0 -1
- package/assets/esri/core/workers/chunks/afeeb11b39e140303b5a.js +0 -1
- package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +0 -1
- package/assets/esri/core/workers/chunks/b78f509fd8e95f728178.js +0 -1
- package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +0 -1
- package/assets/esri/core/workers/chunks/be1d2c3a61e6447fbbc7.js +0 -1
- package/assets/esri/core/workers/chunks/c02ae1d40c1fe95ae6c5.js +0 -1
- package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +0 -1
- package/assets/esri/core/workers/chunks/c53b2be005721591e29b.js +0 -1
- package/assets/esri/core/workers/chunks/c82ab4f0908290e70ee9.js +0 -1
- package/assets/esri/core/workers/chunks/cc5ec6e99aa09342c704.js +0 -1
- package/assets/esri/core/workers/chunks/cd892c9603710d6130a9.js +0 -1
- package/assets/esri/core/workers/chunks/d021775cf747556660a5.js +0 -1
- package/assets/esri/core/workers/chunks/d633e98b0dfa0490e4de.js +0 -1
- package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +0 -1
- package/assets/esri/core/workers/chunks/d8eca13c127b443141b7.js +0 -1
- package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +0 -1
- package/assets/esri/core/workers/chunks/eb1a86159dbc098f06fe.js +0 -1
- package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +0 -1
- package/assets/esri/core/workers/chunks/ed1de8b7406269e217b9.js +0 -29
- package/assets/esri/core/workers/chunks/ee9eb381e675d2d01260.js +0 -1
- package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +0 -1
- package/assets/esri/core/workers/chunks/f43a0edf58941e2ac78e.js +0 -1
- package/assets/esri/core/workers/chunks/f78acff510ca615d42e4.js +0 -1
- package/assets/esri/core/workers/chunks/f7a5c4d22a24e1ac433c.js +0 -1
- package/chunks/geometryEngineBase.js +0 -2
- package/geometry/geometryAdapters/json.js +0 -2
- package/geometry/geometryEngineJSON.js +0 -2
- /package/assets/esri/core/workers/chunks/{0823961e5d0bdedbf8cf.js.LICENSE.txt → 4f8ce5887102971bfa34.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js.LICENSE.txt → 532e3a59888e4cc13bd3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js.LICENSE.txt → 755b2d883fba90c4e688.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js.LICENSE.txt → a014c17fc210620da738.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js.LICENSE.txt → a19be304219808268039.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4314],{5482(t,e,s){function i(t,e,s,i){var n,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(r<3?n(o):r>3?n(e,s,o):n(e,s))||o);return r>3&&o&&Object.defineProperty(e,s,o),o}function n(t,e,s){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var i,n;if(s){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=e[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=e[Symbol.dispose],s&&(n=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");n&&(i=function(){try{n.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:i,async:s})}else s&&t.stack.push({async:!0});return e}s.d(e,{Cg:()=>i,hk:()=>o,mS:()=>n}),Object.create,Object.create;var r="function"==typeof SuppressedError?SuppressedError:function(t,e,s){var i=new Error(s);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};function o(t){function e(e){t.error=t.hasError?new r(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var s,i=0;return function n(){for(;s=t.stack.pop();)try{if(!s.async&&1===i)return i=0,t.stack.push(s),Promise.resolve().then(n);if(s.dispose){var r=s.dispose.call(s.value);if(s.async)return i|=2,Promise.resolve(r).then(n,function(t){return e(t),n()})}else i|=1}catch(t){e(t)}if(1===i)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},91869(t,e,s){function i(t,e){for(const s of t.values())if(e(s))return!0;return!1}function n(t,e){for(const s of t.values())if(!e(s))return!1;return!0}function r(t,e,s){const i=t.get(e);if(void 0!==i)return i;const n=s();return t.set(e,n),n}function o(t){const e=new Map;return s=>(e.has(s)||e.set(s,t(s)),e.get(s))}s.d(e,{Bj:()=>o,Bs:()=>i,mt:()=>n,tE:()=>r})},34727(t,e,s){s.d(e,{$8:()=>v,Cc:()=>l,Hx:()=>m,Io:()=>k,KJ:()=>h,OS:()=>P,Sp:()=>p,XM:()=>c,YN:()=>f,ZH:()=>d,b6:()=>M,cU:()=>n,gg:()=>g,hs:()=>a,kU:()=>u,mP:()=>o,or:()=>B,pF:()=>E,qE:()=>r});const i=new Float32Array(1);function n(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function r(t,e,s){return Math.min(Math.max(t,e),s)}function o(t,e){return 0===e?0:Math.ceil(t/e)*e}function l(t,e,s){return t+(e-t)*s}function a(t,e,s,i,n){return l(i,n,(t-e)/(s-e))}function u(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function c(t){return Math.acos(r(t,-1,1))}function f(t){return Math.asin(r(t,-1,1))}function p(t,e,s=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=s}function g(t,e,s=1e-6){return!p(t,e,s)&&t>e}function d(t,e,s=1e-6){return!p(t,e,s)&&t<e}function m(t,e,s=1e-6){return p(t,e,s)||t>e}const y=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function b(t){return y.setFloat64(0,t),y.getBigInt64(0)}const A=1000000n,w=x(1);function x(t){const e=b(t=Math.abs(t)),s=function(t){return y.setBigInt64(0,t),y.getFloat64(0)}(e<=A?A:e-A);return Math.abs(t-s)}function k(t,e,s=w){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=s&&x(Math.min(Math.abs(t),Math.abs(e)))<s)return Math.abs(t-e)<=s;const i=b(t),n=b(e);return i<0==n<0&&!((i<n?n-i:i-n)>A)}function M(t,e,s=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;const i=Math.abs(t-e),n=Math.abs(t),r=Math.abs(e);if(0===t||0===e||n<1e-12&&r<1e-12){if(i>.01*s)return!1}else if(i/(n+r)>s)return!1;return!0}function v(t){return C(Math.max(-F,Math.min(t,F)))}function C(t){return i[0]=t,i[0]}function B(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],s=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],i=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(p(e,1)&&p(s,1)&&p(i,1))}function P(t,e){return(t%e+e)%e}const F=C(34028234663852886e22);function E(t,e,s){if(void 0===s||0===+s)return Math[t](e);if(e=+e,s=+s,isNaN(e)||"number"!=typeof s||s%1!=0)return NaN;let i=e.toString().split("e");return i=(e=Math[t](+(i[0]+"e"+(i[1]?+i[1]-s:-s)))).toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+s:s))}s.d(e,["pq",0,F])},94778(t,e,s){s.d(e,{$p:()=>a,Sp:()=>u,X1:()=>r,hP:()=>n,yM:()=>l,zw:()=>o});const i={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34028234663852886e22,34028234663852886e22],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};function n(t){return i[t]??[-34028234663852886e22,34028234663852886e22]}function r(t,e){return null==t||null==e?"s32":t<0?t>=-128&&e<128?"s8":t>=-32768&&e<32768?"s16":"s32":e<256?"u8":e<65536?"u16":"u32"}function o(t){return(t?.startsWith("s")||t?.startsWith("u"))??!1}function l(t,e,s,i){let[r,l]=n(s);const a=o(s);return a&&(r-=1e-5,l+=1e-5),a?s.startsWith("u")?function(t,e,s,i){const[n,r]=i;for(let i=0;i<e.length;i++)if(e[i]){const o=t[i];o<n||o>r?e[i]=0:s[i]=o+.5|0}}(t,e,i,[r,l]):function(t,e,s,i){const[n,r]=i;for(let i=0;i<e.length;i++)if(e[i]){const o=t[i];o<n||o>r?e[i]=0:s[i]=o+(o>0?.5:-.5)|0}}(t,e,i,[r,l]):function(t,e,s,i){const[n,r]=i;for(let i=0;i<e.length;i++)if(e[i]){const o=t[i];o<n||o>r?e[i]=0:s[i]=o}}(t,e,i,[r,l])}function a(t,e){for(let s=0;s<e.length;s++)e[s]&&isNaN(t[s])&&(e[s]=0,t[s]=0)}function u(t,e,s){if(t.depthCount&&t.depthCount>1)return;const{pixels:i,statistics:r,pixelType:o}=t,l=i[0].length,a=t.bandMasks??[],u=t.mask??new Uint8Array(l).fill(255),h="f32"===o||"f64"===o,c=n(o);let f=!1;for(let t=0;t<i.length;t++){const n="number"==typeof e?e:e[t];if(null==n)continue;const l=r?.[t]?.minValue??c[0],p=r?.[t]?.maxValue??c[1];if(l>n+Number.EPSILON||p<n-Number.EPSILON)continue;const g=a[t]||u.slice(),d=i[t],m=s?.customFloatTolerance;if(h&&0!==m){let t=m;t||(t=Math.abs(n)>=9999999e31?2e-7*Math.abs(n):"f32"===o?2**-23:Number.EPSILON);for(let e=0;e<d.length;e++)g[e]&&Math.abs(d[e]-n)<t&&(d[e]=0,g[e]=0,u[e]=0,f=!0)}else for(let t=0;t<d.length;t++)g[t]&&d[t]===n&&(d[t]=0,g[t]=0,u[t]=0,f=!0);a[t]=g}if(f){const e=t.bandMasks||t.pixels.length>1?a:null;s?.matchAllNoData?t.mask=e&&e.length>1?function(t){if(t.length<2)return t[0];const e=t[0].length,s=new Uint8Array(e).fill(0);for(let i=0;i<t.length;i++){const n=t[i];for(let t=0;t<e;t++)n[t]&&(s[t]=255)}return s}(e):u:(t.bandMasks=e,t.mask=u)}f&&"updateStatistics"in t&&t.updateStatistics()}},14140(t,e,s){s.d(e,{A:()=>f});var i,n=s(5482),r=s(49186),o=s(25482),l=s(4718),a=s(53966),u=s(91429),h=s(94778),c=s(4151);let f=class extends o.o{static{i=this}static createEmptyBand(t,e){return new(i.getPixelArrayConstructor(t))(e)}static combineBandMasks(t){if(t.length<2)return t[0];const e=t[0].length,s=new Uint8Array(e).fill(255);for(let i=0;i<t.length;i++){const n=t[i];for(let t=0;t<e;t++)n[t]||(s[t]=0)}return s}static getPixelArrayConstructor(t){let e;switch(t){case"u1":case"u2":case"u4":case"u8":e=Uint8Array;break;case"u16":e=Uint16Array;break;case"u32":e=Uint32Array;break;case"s8":e=Int8Array;break;case"s16":e=Int16Array;break;case"s32":e=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":e=Float32Array;break;case"f64":e=Float64Array}return e}constructor(t){super(t),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.premultiplyAlpha=!1,this.statistics=null,this.depthCount=1}castPixelType(t){if(!t)return"f32";let e=t.toLowerCase();return["u1","u2","u4"].includes(e)?e="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(e)||(e="f32"),e}getPlaneCount(){return this.pixels?.length}addData(t){if(!t.pixels||t.pixels.length!==this.width*this.height)throw new r.A("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||(this.pixels=[]),this.statistics||(this.statistics=[]),this.pixels.push(t.pixels),this.statistics.push(t.statistics??new c.A)}getAsRGBA(){const t=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(t);break;default:this._fillFrom8Bit(t)}return new Uint8ClampedArray(t)}getAsRGBAFloat(){const t=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(t),t}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map(t=>function(t,e){let s=1/0,i=-1/0;const n=t.length;let r,o=0;if(null!=e)for(r=0;r<n;r++)e[r]&&(o=t[r],s=o<s?o:s,i=o>i?o:i);else for(r=0;r<n;r++)o=t[r],s=o<s?o:s,i=o>i?o:i;return new c.A(s,i)}(t,this.mask));const t=this.mask;let e=0;if(null!=t)for(let s=0;s<t.length;s++)t[s]&&e++;else e=this.width*this.height;this.validPixelCount=e}clamp(t){if(!t||"f64"===t||"f32"===t||!this.pixels)return;const[e,s]=(0,h.hP)(t),n=this.pixels,r=this.width*this.height,o=n.length;let l,a,u;const c=[];for(let h=0;h<o;h++){u=i.createEmptyBand(t,r),l=n[h];for(let t=0;t<r;t++)a=l[t],u[t]=a>s?s:a<e?e:a;c.push(u)}this.pixels=c,this.pixelType=t}extractBands(t){const{pixels:e,statistics:s}=this;if(null==t||0===t.length||!e||0===e.length)return this;const n=e.length,r=t.some(t=>t>=e.length),o=n===t.length&&!t.some((t,e)=>t!==e);if(r||o)return this;const l=this.bandMasks?.length===n?t.map(t=>this.bandMasks[t]):void 0;let{mask:a,validPixelCount:u}=this;const{width:h,height:c}=this;return l?.length&&(a=i.combineBandMasks(l),u=a.filter(t=>!!t).length),new i({pixelType:this.pixelType,width:h,height:c,mask:a,bandMasks:l,validPixelCount:u,maskIsAlpha:this.maskIsAlpha,pixels:t.map(t=>e[t]),statistics:s&&t.map(t=>s[t])})}clone(){const t=new i({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount,premultiplyAlpha:this.premultiplyAlpha,depthCount:this.depthCount});let e;null!=this.mask&&(t.mask=new Uint8Array(this.mask)),this.noDataValues&&(t.noDataValues=[...this.noDataValues]),this.bandMasks&&(t.bandMasks=this.bandMasks.map(t=>new Uint8Array(t)));const s=i.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){t.pixels=[];const i=!!this.pixels[0].slice;for(e=0;e<this.pixels.length;e++)t.pixels[e]=i?this.pixels[e].slice():new s(this.pixels[e])}if(this.statistics)for(t.statistics=[],e=0;e<this.statistics.length;e++)t.statistics[e]=(0,l.o8)(this.statistics[e]);return t}getTransferableObject(){const{pixels:t,bandMasks:e,mask:s}=this;this.pixels=[],this.bandMasks=void 0,this.mask=void 0;const i=this.toJSON();this.pixels=t,this.bandMasks=e,this.mask=s,i.pixels=t?[...t]:t,i.bandMasks=e?[...e]:e,i.mask=s;const n=[];return[...t??[],s,...e??[]].filter(t=>null!=t&&ArrayBuffer.isView(t)).forEach(t=>{t&&!n.includes(t.buffer)&&n.push(t.buffer)}),{pixelBlock:i,transferList:n}}_fillFrom8Bit(t){const{mask:e,maskIsAlpha:s,premultiplyAlpha:i,pixels:n}=this;if(!t||!n?.length)return void a.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let r,o,l,u;r=o=l=n[0],n.length>=3?(o=n[1],l=n[2]):2===n.length&&(o=n[1]);const h=new Uint32Array(t),c=this.width*this.height;if(r.length===c)if(null!=e&&e.length===c)if(s)for(u=0;u<c;u++){const t=e[u];if(t){const e=t/255;h[u]=i?t<<24|l[u]*e<<16|o[u]*e<<8|r[u]*e:t<<24|l[u]<<16|o[u]<<8|r[u]}}else for(u=0;u<c;u++)e[u]&&(h[u]=255<<24|l[u]<<16|o[u]<<8|r[u]);else for(u=0;u<c;u++)h[u]=255<<24|l[u]<<16|o[u]<<8|r[u];else a.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.")}_fillFromNon8Bit(t){const{pixels:e,mask:s,statistics:i}=this;if(!t||!e?.length)return void a.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");const n=this.pixelType;let r=1,o=0,l=1;if(i&&i.length>0){for(const t of i)if(null!=t.minValue&&(o=Math.min(o,t.minValue)),null!=t.maxValue&&null!=t.minValue){const e=t.maxValue-t.minValue;l=Math.max(l,e)}r=255/l}else{let t=255;"s8"===n?(o=-128,t=127):"u16"===n?t=65535:"s16"===n?(o=-32768,t=32767):"u32"===n?t=4294967295:"s32"===n?(o=-2147483648,t=2147483647):"f32"===n?(o=-34e38,t=34e38):"f64"===n&&(o=-Number.MAX_VALUE,t=Number.MAX_VALUE),r=255/(t-o)}const u=new Uint32Array(t),h=this.width*this.height;let c,f,p,g,d;if(c=f=p=e[0],c.length!==h)return a.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(e.length>=2)if(f=e[1],e.length>=3&&(p=e[2]),null!=s&&s.length===h)for(g=0;g<h;g++)s[g]&&(u[g]=255<<24|(p[g]-o)*r<<16|(f[g]-o)*r<<8|(c[g]-o)*r);else for(g=0;g<h;g++)u[g]=255<<24|(p[g]-o)*r<<16|(f[g]-o)*r<<8|(c[g]-o)*r;else if(null!=s&&s.length===h)for(g=0;g<h;g++)d=(c[g]-o)*r,s[g]&&(u[g]=255<<24|d<<16|d<<8|d);else for(g=0;g<h;g++)d=(c[g]-o)*r,u[g]=255<<24|d<<16|d<<8|d}_fillFrom32Bit(t){const{pixels:e,mask:s}=this;if(!t||!e?.length)return a.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");let i,n,r,o;i=n=r=e[0],e.length>=3?(n=e[1],r=e[2]):2===e.length&&(n=e[1]);const l=this.width*this.height;if(i.length!==l)return a.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let u=0;if(null!=s&&s.length===l)for(o=0;o<l;o++)t[u++]=i[o],t[u++]=n[o],t[u++]=r[o],t[u++]=1&s[o];else for(o=0;o<l;o++)t[u++]=i[o],t[u++]=n[o],t[u++]=r[o],t[u++]=1}};(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"width",void 0),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"height",void 0),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"pixelType",void 0),(0,n.Cg)([(0,u.wg)("pixelType")],f.prototype,"castPixelType",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"validPixelCount",void 0),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"mask",void 0),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"maskIsAlpha",void 0),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"pixels",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"premultiplyAlpha",void 0),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"statistics",void 0),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"depthCount",void 0),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"noDataValues",void 0),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"bandMasks",void 0),f=i=(0,n.Cg)([(0,u.$K)("esri.layers.support.PixelBlock")],f)},4151(t,e,s){s.d(e,{A:()=>i});class i{constructor(t=null,e=null,s=null){this.minValue=t,this.maxValue=e,this.noDataValue=s}}},96982(t,e,s){s.r(e),s.d(e,{convertPixelBlockToImageData:()=>o,getFacesWithVertexAttributes:()=>r,recomputePositions:()=>l});var i=s(34727),n=s(14140);function r({distance:t,yaw:e,horizontalFieldOfView:s,pitch:n,verticalFieldOfView:r,origin:o=[0,0,0],positionLength:l=25}){const a=l-1,u=l*l,h=new Float32Array(2*u),c=new Float64Array(3*u),f=new Float32Array(3*u).fill(0),p=new Uint32Array(a**2*6);for(let g=0,d=0;g<u;g++){const u=Math.floor(g/l),m=g%l,y=1-m/a,b=u/a,A=2*g,w=3*g;h[A]=y,h[A+1]=b;const x=n+r/2-b*r,k=(0,i.kU)(e-s/2+y*s),M=(0,i.kU)(x),v=Math.sin(M),C=Math.cos(M),B=[v*Math.sin(k),Math.cos(k)*v,-C];c[w]=o[0]+t*B[0],c[w+1]=o[1]+t*B[1],c[w+2]=o[2]+t*B[2],f[w]=-B[0],f[w+1]=-B[1],f[w+2]=-B[2],u!==a&&m!==a&&(p[d++]=g,p[d++]=g+l,p[d++]=g+l+1,p[d++]=g,p[d++]=g+l+1,p[d++]=g+1)}return{result:{position:c,uv:h,normal:f,faces:p},transferList:[c.buffer,h.buffer,f.buffer,p?.buffer]}}function o(t){const e=n.A.fromJSON(t);e.premultiplyAlpha=!0;const s=e.getAsRGBA(),i=e.width,r=e.height,o=new ImageData(s,i,r);return{result:o,transferList:[o.data.buffer]}}function l({oldDistance:t,newDistance:e,position:s,origin:i=[0,0,0]}){const n=s.length/3;for(let r=0;r<n;r+=3){const n=3*r;s[n]=i[0]+(s[n]-i[0])*(e/t),s[n+1]=i[1]+(s[n+1]-i[1])*(e/t),s[n+2]=i[2]+(s[n+2]-i[2])*(e/t)}return{result:s,transferList:[s.buffer]}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[91,8424],{27749(e,t,i){i.d(t,{e:()=>p,l:()=>d});var n=i(86211),r=i(77085),o=i(5808);let s,a,l,c,u;function h(){return!!s&&(0,r.s1)()}async function d(){if(!h()){const[e]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(5756),i.e(3299),i.e(1666)]).then(i.bind(i,78125)),(0,r.Hh)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=e.toGeometry,u=(0,r.fz)()}}function p(e,t,i={}){const{curveType:u="geodesic",unit:h}=i;h&&(t=(0,n.oU)(t,h,"meters"));const d=l(e);return c((0,r.g7)(s(e),t,a(d),o.O[u]),d)}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:p,executeMany:function(e,t,i={}){const{curveType:u="geodesic",unit:h}=i;h&&(t=(0,n.oU)(t,h,"meters"));const d=e.map(s),p=l(e);return(0,r.zo)(d,t,a(p),o.O[u]).map(e=>c(e,p))},isLoaded:h,load:d,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));i.d(t,["g",0,m])},73354(e,t,i){i.d(t,{a:()=>h,b:()=>a,c:()=>r,d:()=>s,e:()=>d,f:()=>u,l:()=>c,n:()=>p,t:()=>o}),i(44208);var n=i(72727);function r(e,t,i){o(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function o(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a),c=i[0],u=i[1],h=i[2],d=i[4],p=i[5],m=i[6],f=i[8],g=i[9],y=i[10],v=i[12],w=i[13],b=i[14];let C=0,_=0;for(let i=0;i<l;i++){const i=t[C],n=t[C+1],s=t[C+2];e[_]=c*i+d*n+f*s+v,e[_+1]=u*i+p*n+g*s+w,e[_+2]=h*i+m*n+y*s+b,C+=o,_+=r}return e}function s(e,t,i){a(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function a(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a),c=i[0],u=i[1],h=i[2],d=i[3],p=i[4],m=i[5],f=i[6],g=i[7],y=i[8];let v=0,w=0;for(let i=0;i<l;i++){const i=t[v],n=t[v+1],s=t[v+2];e[w]=c*i+d*n+f*s,e[w+1]=u*i+p*n+g*s,e[w+2]=h*i+m*n+y*s,v+=o,w+=r}}function l(e,t,i,n=3,r=n){const o=Math.min(e.length/n,t.length/r);let s=0,a=0;for(let l=0;l<o;l++)e[a]=i*t[s],e[a+1]=i*t[s+1],e[a+2]=i*t[s+2],s+=r,a+=n;return e}function c(e,t,i,n){u(e.typedBuffer,t.typedBuffer,i,n,e.typedBufferStride,t.typedBufferStride)}function u(e,t,i,n,r=3,o=r){const s=Math.min(e.length/r,t.length/o);let a=0,l=0;const c=1/2.2;for(let u=0;u<s;u++)e[l]=n*(i*t[a])**c,e[l+1]=n*(i*t[a+1])**c,e[l+2]=n*(i*t[a+2])**c,a+=o,l+=r}function h(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a);let c=0,u=0;for(let n=0;n<l;n++)e[u]=t[c]+i[0],e[u+1]=t[c+1]+i[1],e[u+2]=t[c+2]+i[2],c+=o,u+=r;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,i=3,n=i){const r=Math.min(e.length/i,t.length/n);let o=0,s=0;for(let a=0;a<r;a++){const r=t[o],a=t[o+1],l=t[o+2],c=r*r+a*a+l*l;if(c>0){const t=1/Math.sqrt(c);e[s]=t*r,e[s+1]=t*a,e[s+2]=t*l}o+=n,s+=i}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:p,normalizeView:d,scale:l,scaleView:function(e,t,i){l(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,i){const n=Math.min(e.count,t.count),r=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,c=0;for(let e=0;e<n;e++)r[c]=s[l]>>i,r[c+1]=s[l+1]>>i,r[c+2]=s[l+2]>>i,l+=a,c+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:r,translate:h},Symbol.toStringTag,{value:"Module"}))},7762(e,t,i){var n,r=i(5482),o=i(98291),s=i(4576),a=i(65529),l=i(36563),c=i(4718),u=i(53966),h=i(93687),d=i(76030),p=i(56507),m=i(62788),f=i(10107),g=i(7695),y=i(64108),v=i(95488),w=i(12195);class b{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class C{constructor(e,t,i,n,r){this.target=e,this.added=t,this.removed=i,this.start=n,this.deleteCount=r}}const _=new h.A(()=>new b,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function T(e){return e?e instanceof E?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function x(e){if(e?.length)return e[0]}function A(e,t,i,n){const r=Math.min(e.length-i,t.length-n);let o=0;for(;o<r&&e[i+o]===t[n+o];)o++;return o}function S(e,t,i,n){t&&t.forEach((t,r,o)=>{e.push(t),S(e,i.call(n,t,r,o),i,n)})}const D=new Set,R=new Set,Z=new Set,O=new Map;let I=0,E=n=class extends a.nJ{static ofType(e){if(!e)return n;if(O.has(e))return O.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const i in e.typeMap){const n=e.typeMap[i].prototype.declaredClass;t?t+=` | ${n}`:t=n}let i=class extends n{};return(0,r.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],i.prototype,"itemType",void 0),i=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],i),O.set(e,i),i}static isCollection(e){return null!=e&&e instanceof n}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:I++})}normalizeCtorArgs(e){return e?(0,s.yc)(e)||e instanceof n?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,m.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,T(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{i.removed=!0,e.splice(e.indexOf(i),1)})}return super.on(e,t)}once(e,t){const i="deref"in t?()=>t.deref():()=>t,n=this.on(e,e=>{i()?.call(null,e),n.remove()});return n}add(e,t){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t);return this._splice(i,0,T(e)),this._emitAfterChanges(1),this}at(e){if((0,m.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,m.gc)(this._observable);const t=e.map(T);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const i=this._splice(0,this.length),n=i.length;for(let r=0;r<n;r++)e.call(t,i[r],r,i);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,m.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,m.gc)(this._observable);const i=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:i})}find(e,t){return(0,m.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,m.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,m.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,m.gc)(this._observable);const i=[];return S(i,this,e,t),new n(i)}forEach(e,t){return(0,m.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.gc)(this._observable),this._items[e]}getNextIndex(e){(0,m.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.gc)(this._observable);const i=this._items.map(e,t);return new n({items:i})}reorder(e,t=this.length-1){(0,m.gc)(this._observable);const i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(4))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof n?e.toArray():e,i=this._items,r=[],o=t.length;for(let e=0;e<o;e++){const n=t[e],o=i.indexOf(n);if(o>-1){const n=1+A(t,i,e+1,o+1),s=this._splice(o,n);s&&s.length>0&&r.push.apply(r,s),e+=n-1}}return this._emitAfterChanges(2),r}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let i=0;i<t;i++)if(e(this.items[i],this.items[i+1])>0)return!0;return!1}splice(e,t,...i){(0,m.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const n=(t?2:0)|(i.length?1:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(e,t,i)||[];return this._emitAfterChanges(n),r}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(e){return(0,m.gc)(this._observable),this.toArray().map(t=>(0,w.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...e){return(0,m.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){const n=this._items,r=this.itemType;let o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){const t=_.acquire();t.target=this,t.cancellable=!0;for(let i=0,r=s.length;i<r;i++)o=s[i],t.reset(o),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(i,1),n.splice(e,0,o),e+=1,i-=1,r-=1);_.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=_.acquire();e.target=this,e.cancellable=!1;const t=s.length;for(let i=0;i<t;i++)e.reset(s[i]),this.emit("after-remove",e);_.release(e)}}if(i?.length){if(r){const e=[];for(const t of i){const i=r.ensureType(t);null==i&&null!=t||e.push(i)}i=e}const t=this.hasEventListener("before-add"),o=this.hasEventListener("after-add"),s=e===this.length;if(t||o){const r=_.acquire();r.target=this,r.cancellable=!0;const a=_.acquire();a.target=this,a.cancellable=!1;for(const l of i)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(s?n.push(l):n.splice(e++,0,l),this._length=n.length,o&&(a.reset(l),this.emit("after-add",a)))):(s?n.push(l):n.splice(e++,0,l),this._length=n.length,a.reset(l),this.emit("after-add",a));_.release(a),_.release(r)}else{if(s)for(const e of i)n.push(e);else n.splice(e,0,...i);this._length=n.length}}if((i?.length||s?.length)&&this._notifyChangeEvent(i,s),this.hasEventListener("after-splice")){const n=new C(this,i,s,e,t);this.emit("after-splice",n)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const i=_.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,_.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=_.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),_.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;D.clear(),R.clear(),Z.clear();for(const{added:t,removed:i}of e){if(t)if(0===Z.size&&0===R.size)for(const e of t)D.add(e);else for(const e of t)R.has(e)?(Z.add(e),R.delete(e)):Z.has(e)||D.add(e);if(i)if(0===Z.size&&0===D.size)for(const e of i)R.add(e);else for(const e of i)D.has(e)?D.delete(e):(Z.delete(e),R.add(e))}const i=o.A.acquire();D.forEach(e=>{i.push(e)});const n=o.A.acquire();R.forEach(e=>{n.push(e)});const r=this._items,s=t.items,a=o.A.acquire();if(Z.forEach(e=>{s.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(i.length||n.length||a.length)){const e={target:this,added:i,removed:n,moved:a},r=t.listeners.length;for(let i=0;i<r;i++){const n=t.listeners[i];n.removed||n.callback.call(this,e)}}o.A.release(i),o.A.release(n),o.A.release(a)}D.clear(),R.clear(),Z.clear()}};(0,r.Cg)([(0,f.MZ)()],E.prototype,"_updating",void 0),(0,r.Cg)([(0,f.MZ)()],E.prototype,"_length",void 0),(0,r.Cg)([(0,f.MZ)()],E.prototype,"length",null),(0,r.Cg)([(0,f.MZ)()],E.prototype,"items",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],E.prototype,"updating",null),E=n=(0,r.Cg)([(0,y.$)("esri.core.Collection")],E);const L=E;i.d(t,["A",0,L])},4902(e,t,i){var n=i(5482),r=i(64108);let o=0;const s=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return i=(0,n.Cg)([(0,r.$)("esri.core.Identifiable")],i),i};s(class{}),i.d(t,["s",0,s])},7695(e,t,i){function n(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>n})},82534(e,t,i){function n(){return[0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>r,vt:()=>n});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:n,fromValues:function(e,t,i,n){return[e,t,i,n]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,o])},48163(e,t,i){function n(){return[0,0]}function r(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function a(){return o(-1,-1)}function l(){return o(1,0)}function c(){return o(0,1)}i.d(t,{fA:()=>o,o8:()=>r,vt:()=>n});const u=s(),h=a(),d=l(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:u,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:r,create:n,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const i=Math.min(2,e.length);for(let n=0;n<i;++n)t[n]=e[n];return t},fromValues:o,negativeOnes:a,ones:s,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["IA",0,h,"Un",0,u])},36708(e,t,i){i.d(t,{C_:()=>d,on:()=>h,wB:()=>l,z7:()=>c});var n=i(37955),r=i(36563),o=i(97768),s=i(17676),a=i(14012);function l(e,t,i={}){return u(e,t,i,p)}function c(e,t,i={}){return u(e,t,i,m)}function u(e,t,i={},n){let r=null;const s=i.once?(e,i)=>{n(e)&&((0,o.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,s,i.sync,i.equals),i.initial){const t=e();s(t,t)}return r}function h(e,t,i,s={}){let a=null,c=null,u=null;function h(){a&&c&&(c.remove(),s.onListenerRemove?.(a),a=null,c=null)}function d(e){s.once&&s.once&&(0,o.xt)(u),i(e)}const p=l(e,(e,i)=>{h(),(0,n.wb)(e)&&(a=e,c=(0,n.on)(e,t,d),s.onListenerAdd?.(e))},{sync:s.sync,initial:!0});return u=(0,r.hA)(()=>{p.remove(),h()}),u}function d(e,t){return function(e,t,i){if((0,s.G4)(i))return Promise.reject((0,s.NK)());const n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,o.xt)(a)}return new Promise((n,o)=>{a=(0,r.vE)([(0,s.u7)(i,()=>{l(),o((0,s.NK)())}),u(e,e=>{l(),n(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,i){i.d(t,{S1:()=>a,lL:()=>c,mi:()=>l,rb:()=>u,t:()=>h});var n=i(97770),r=(i(98623),i(92647));const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,i,o="system"){if("unknown"===i)return e;const s=new r.oh((0,n.wj)(o)),a=r.c9.fromJSDate(e,{zone:s}),l="decades"===i||"centuries"===i?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){const n=e.getTime(),r=h(t,i,"milliseconds");return new Date(n+r)}function c(e,t,i="system"){const{unit:o}=t,s=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,n.wj)(i)),l=r.c9.fromJSDate(e,{zone:a}),c=e=>e-e%s;switch(o){case"milliseconds":return l.startOf("second").plus({millisecond:c(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:c(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:c(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:c(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:c(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:c(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:c(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===o?10:"centuries"===o?100:1)*s,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function u(e){const t=o.exec(e);if(!t)return null;const{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*s.hours+Number(n)*s.minutes+Number(r||0)*s.seconds+Number(a||0)}function h(e,t,i){return 0===e?0:e*s[t]/s[i]}},35982(e,t,i){i.d(t,{B:()=>u});var n=i(4576),r=i(71511),o=i(36563),s=i(53966),a=i(97768),l=i(17676),c=i(83027);class u{constructor(e,t,i,n,r={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,c.h)(e,{...r,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>s.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i=new h(e,t);return this._listeners.push(i),this._connectListener(i),(0,o.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){if(this._thread){const r=this._transferLists[e],o=r?r(t):[];return this._thread.invoke(e,t,{transferList:o,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,l.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,l.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class h{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},54239(e,t,i){i.d(t,{A:()=>y});var n,r=i(5482),o=i(4576),s=i(66552),a=i(25482),l=i(86211),c=i(67076),u=i(91429),h=i(97348),d=i(43937),p=i(36005);const m=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=m.jsonValues.slice();(0,o.Xy)(f,"orthometric");const g=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=n=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return m.write(e,t,i)}readHeightModel(e,t,i){return m.read(e)||(i?.messages&&i.messages.push(function(e,t){return new c.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:i}=e;if(!i)return null;const r=(null!=t?h.B.get(t):null)??h.B.get(i);return r?new n({heightModel:0===r.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(r.unit.name),vertCRS:r.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new c.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r.Cg)([(0,u.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,r.Cg)([(0,d.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,r.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,r.Cg)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,r.Cg)([(0,p.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,r.Cg)([(0,p.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,r.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,r.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=n=(0,r.Cg)([(0,u.$K)("esri.geometry.HeightModelInfo")],y)},77085(e,t,i){i.d(t,{Hh:()=>a,fz:()=>u,g7:()=>l,s1:()=>s,zo:()=>c});var n=i(76061),r=i(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(5756),i.e(1088)]).then(i.bind(i,31088)),Promise.all([i.e(9187),i.e(8885),i.e(5756)]).then(i.bind(i,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticDensifyByLength,t(r.p)}}function l(e,t,i,n){return o.execute(e,t,i,n,null)}function c(e,t,i,r){const s=o.executeMany(new n.S(e),t,i,r,null);return Array.from(s)}function u(){return o.supportsCurves()}},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>l,execute:()=>c,executeMany:()=>u,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>d,isLoaded:()=>s,load:()=>a,normalizeGeometry:()=>p,supportsCurves:()=>m,transform:()=>f});var n=i(76061),r=i(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(5756),i.e(9192)]).then(i.bind(i,9192)),Promise.all([i.e(9187),i.e(8885),i.e(5756)]).then(i.bind(i,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorProject,t(r.p)}}function l(e,t,i){return o.clipToSpatialReference(e,t,null,i)}function c(e,t){return o.execute(e,t,null)}function u(e,t){const i=o.executeMany(new n.S(e),t,null);return Array.from(i)}function h(e,t){return o.foldInto360Range(e,t)}function d(e,t,i){return o.foldInto360RangeGeodetic(e,t,i)}function p(e,t,i){return o.normalizeGeometry(e,t,i)}function m(){return o.supportsCurves()}function f(e,t,i,n,r){return o.transform(e,t,i,n,r)}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>p,executeMany:()=>m,isLoaded:()=>h,load:()=>d,supportsCurves:()=>u});var n=i(4144),r=i(17499);let o,s,a,l,c,u;function h(){return!!o&&(0,n.isLoaded)()}async function d(){if(!h()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(5756),i.e(3299),i.e(1666)]).then(i.bind(i,78125)),Promise.all([i.e(9187),i.e(8885),i.e(5756),i.e(6129)]).then(i.bind(i,86129)),(0,n.load)()]);o=e.fromGeometry,s=e.fromSpatialReference,a=e.getSpatialReference,l=e.toGeometry,c=t.createProjectionTransformation,u=(0,n.supportsCurves)()}}function p(e,t,i){const u=a(e),h=c(s(u),s(t),i),d=l((0,n.execute)(o(e),h),t);return!i?.zConversionDisabled&&d?.hasZ&&(0,r.g)([d],u,t),d}function m(e,t,i){const u=e.map(o),h=a(e),d=c(s(h),s(t),i),p=(0,n.executeMany)(u,d).map(e=>l(e,t));return!i?.zConversionDisabled&&p&&(0,r.g)(p,h,t),p}},17499(e,t,i){i.d(t,{g:()=>o});var n=i(60408),r=i(62815);function o(e,t,i){let o;for(const s of e)if(s&&(0,n.Pv)(s)&&!("vertexAttributes"in s)){if(!o){const e="type"in s?s.type:(0,n.$B)(s);if(o=(0,r.N)(e,t,i),!o)return}o(s)}}},72727(e,t,i){function n(e,t,i){if(t<=0)return 0;const n=e-i;return n<0?0:Math.floor(n/t)+1}i.d(t,{k:()=>n}),i(53966)},27921(e,t,i){i.d(t,{$Q:()=>b,C:()=>a,Cr:()=>u,H:()=>_,O_:()=>c,Qj:()=>l,T7:()=>v,Tj:()=>w,lU:()=>h,mN:()=>M,vE:()=>T,vt:()=>s});var n=i(34727),r=i(35522),o=i(51850);function s(e=x){return[e[0],e[1],e[2],e[3]]}function a(e,t){return function(e,t,i,n,r=s()){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}(t[0],t[1],t[2],t[3],e)}function l(e){return e}function c(e,t,i){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=Math.abs(n-1)>1e-5&&n>1e-12?1/Math.sqrt(n):1;return i[0]=t[0]*r,i[1]=t[1]*r,i[2]=t[2]*r,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function u(e,t,i,n=s()){const r=i[0]-t[0],o=i[1]-t[1],a=i[2]-t[2],l=e[0]-t[0],c=e[1]-t[1],u=e[2]-t[2],h=o*u-a*c,d=a*l-r*u,p=r*c-o*l,m=h*h+d*d+p*p,f=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return n[0]=h*f,n[1]=d*f,n[2]=p*f,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function h(e,t,i,n=0,o=Math.floor(i*(1/3)),s=Math.floor(i*(2/3))){if(i<3)return!1;t(p,n);let a=o,l=!1;for(;a<i-1&&!l;)t(m,a),a++,l=!(0,r.t2)(p,m);if(!l)return!1;for(a=Math.max(a,s),l=!1;a<i&&!l;)t(f,a),a++,(0,r.Re)(g,p,m),(0,r.S8)(g,g),(0,r.Re)(y,m,f),(0,r.S8)(y,y),l=!(0,r.t2)(p,f)&&!(0,r.t2)(m,f)&&Math.abs((0,r.Om)(g,y))<d;return l?(u(p,m,f,e),!0):(0!==n||1!==o||2!==s)&&h(e,t,i,0,1,2)}i(78955),i(44280),i(32114),i(32728);const d=.99619469809,p=(0,o.vt)(),m=(0,o.vt)(),f=(0,o.vt)(),g=(0,o.vt)(),y=(0,o.vt)();function v(e,t,i){return function(e){return 0===e||1===e}(T(e,t.origin,t.vector,0,i))}function w(e,t){return M(e,t)>=0}function b(e,t){return function(e,t,i,n,o,s,a){const l=(0,r.Om)(e,i),c=M(e,t);if(l>-1e-6&&l<1e-6)return C(c,o,s);const u=-c/l,h=C(l,o,!1);return!(a&&!h&&!C(c,o,s))&&(h?u>n.c0&&(n.c0=u):u<n.c1&&(n.c1=u),n.c0<=n.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function C(e,t,i){return i?t?e>=0:e<=0:t?e>0:e<0}function _(e,t,i,n=!1){let o=t.at(-1),s=M(e,o),a=n?s>0:s<=0;for(let l=0;l<t.length;l++){const c=t.at(l),u=M(e,c),h=n?u>0:u<=0;a!==h&&(0,r.Cc)(i(),o,c,s/(s-u)),h&&(0,r.C)(i(),c),o=c,s=u,a=h}}function M(e,t){return(0,r.Om)(e,t)+e[3]}function T(e,t,i,o,s){const a=(0,r.Om)(e,i),l=M(e,t);if(0===a)return l>=0?2:3;let c=-l/a;return 1&o&&(c=(0,n.qE)(c,0,1)),!(4&o)&&c<0||!(8&o)&&c>1?l>=0?2:3:((0,r.WQ)(s,t,(0,r.hs)(s,i,c)),l>=0?0:1)}const x=[0,0,1,0];(0,o.vt)()},44280(e,t,i){i.d(t,{g7:()=>a,gr:()=>s});var n=i(34727),r=i(35522),o=i(51850);function s(e,t){return(0,r.Om)(e,t)/(0,r.Bw)(e)}function a(e,t){const i=(0,r.Om)(e,t)/((0,r.Bw)(e)*(0,r.Bw)(t));return-(0,n.XM)(i)}(0,o.vt)(),(0,o.vt)()},32114(e,t,i){i.d(t,{Rc:()=>p,rq:()=>h,Km:()=>d}),i(44208);var n=i(26390),r=i(29242),o=i(9093),s=i(82534),a=i(48163),l=i(51850),c=i(91829);class u{constructor(e){this._create=e,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new u(a.vt)}static createVec3f64(){return new u(l.vt)}static createVec4f64(){return new u(c.vt)}static createMat3f64(){return new u(r.vt)}static createMat4f64(){return new u(o.vt)}static createQuatf64(){return new u(s.vt)}get test(){}}u.createVec2f64();const h=u.createVec3f64(),d=u.createVec4f64(),p=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},97770(e,t,i){i.d(t,{Ey:()=>I,F8:()=>O,J2:()=>S,Yq:()=>R,_m:()=>D,iS:()=>Z,wj:()=>E});var n=i(66552),r=i(73444),o=i(98623),s=i(92647);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},f={...m,second:"numeric"},g={hourCycle:"h23"},y={...m,...g},v={...f,...g},w={"short-date":u,"short-date-short-time":{...u,...m},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...f},"short-date-long-time-24":{...u,...v},"short-date-le":u,"short-date-le-short-time":{...u,...m},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...f},"short-date-le-long-time-24":{...u,...v},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...m},"long-month-day-year-short-time-24":{...h,...y},"long-month-day-year-long-time":{...h,...f},"long-month-day-year-long-time-24":{...h,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,...v},"long-date":p,"long-date-short-time":{...p,...m},"long-date-short-time-24":{...p,...y},"long-date-long-time":{...p,...f},"long-date-long-time-24":{...p,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":f},b=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),C={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},_=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),M=_.find(({type:e})=>"month"===e)?.value.toLowerCase();function T(){const e=(0,r.lR)();return(e&&C[e])??(0,r.QC)()}"mart"!==M&&(C.bs="sr-Latn-CS");let x=new WeakMap;const A=w["short-date-short-time"];function S(e){return w[e]}function D(e){const{dateStyle:t,timeStyle:i,hour12:n,year:r,month:o}=e,s={};return t?s.dateStyle=t:r&&(s.year=r,s.month=o||void 0),i&&!s.year&&(s.timeStyle=i,s.hour12="auto"===n?void 0:"always"===n),s}function R(e,t=A){return function(e){let t=x.get(e);if(!t){const i=T(),n=E(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),x.set(e,t)}return t}(t).format(e)}function Z(e,t=A){return R(new Date(e),{...t,...c,...l})}function O(e,t=A){return R(new Date(`1970-01-01T${e}Z`),{...t,...c,...a})}function I(e,t=A){const i=s.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return R(i.toJSDate(),t);const n=0===i.offset?"UTC":t.timeZone,r={...t,timeZone:n};return i.toLocaleString(r,{locale:T()})}function E(e){switch(e){case"system":return o.N;case o.L:return"UTC";default:return e}}(0,r.Ml)(()=>{x=new WeakMap}),i.d(t,["_v",0,b])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>g,QC:()=>h,lR:()=>u,oQ:()=>m});var n=i(36563);let r;i(44208);const o=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function a(){const e=s?.getAttribute("lang"),t=globalThis.navigator?.language;return o??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return d(e)?.language}function h(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return c.exec(e)?.groups}const p=[];function m(e){return p.push(e),(0,n.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const f=[];function g(e){return f.push(e),(0,n.hA)(()=>f.splice(f.indexOf(e),1))}function y(){const e=a();r!==e&&([...f].forEach(t=>t(e)),r=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),s&&new MutationObserver(()=>{y()}).observe(s,{attributeFilter:["lang"]})},38732(e,t,i){i.r(t),i.d(t,{default:()=>x});var n=i(5482),r=i(11254),o=i(49186),s=i(97768),a=i(25728),l=i(17676),c=i(84952),u=i(91429),h=i(54239),d=i(4146),p=i(89186),m=i(18768),f=i(34287),g=i(8303),y=i(10873),v=i(87378),w=i(35982);class b extends w.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(C.forEach((e,t)=>{e===this&&C.delete(t)}),this.destroy())}}const C=new Map;var _=i(36005);let M=class extends((0,p.f)((0,m.b)((0,f.q)((0,g.A)((0,a.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=C.get(e);return t||(null!=e?(t=new b(t=>e.immediate.schedule(t)),C.set(e,t)):(t=new b,C.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,s.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}get memoizedElevationQueryDependencies(){return[this.loadStatus,this.tileInfo,this.fullExtent,this.spatialReference]}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,i,n){const s=n?.signal,a={responseType:"array-buffer",signal:s,useQueue:n?.useQueue,priority:n?.priority},l={noDataValue:n?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,i,n);const c=await(0,r.A)(this.getTileUrl(e,t,i),a),u=await this._lercDecoder.decode(c.data,l,s);if(!u)throw new o.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new v.A({values:u.pixelData,width:u.width,height:u.height,noDataValue:u.noDataValue})}getTileUrl(e,t,i){const n=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,c.x0)({...this.parsedUrl.query,blankTile:!n&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${r?"?"+r:""}`}async queryElevation(e,t){const{query:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}async createElevationSampler(e,t){const{createSampler:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}_fetchTileAvailability(e,t,i,n){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,n):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,r.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[T]}};(0,n.Cg)([(0,u.MZ)({readOnly:!0})],M.prototype,"capabilities",void 0),(0,n.Cg)([(0,_.w)("service","capabilities",["capabilities"])],M.prototype,"readCapabilities",null),(0,n.Cg)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],M.prototype,"copyright",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0,type:h.A})],M.prototype,"heightModelInfo",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],M.prototype,"path",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],M.prototype,"listMode",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"minScale",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],M.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],M.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],M.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,u.MZ)(y.OZ)],M.prototype,"url",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"version",void 0),(0,n.Cg)([(0,_.w)("version",["currentVersion"])],M.prototype,"readVersion",null),M=(0,n.Cg)([(0,u.$K)("esri.layers.ElevationLayer")],M);const T=Symbol("default-fetch-tile");M.prototype.fetchTile[T]=!0;const x=M},4146(e,t,i){i.d(t,{A:()=>v});var n=i(5482),r=i(11254),o=i(49186),s=i(65529),a=i(4902),l=i(92474),c=i(53966),u=i(17676),h=i(84952),d=i(91429),p=i(5443),m=i(16930),f=i(92602),g=i(79677);let y=0,v=class extends((0,s.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([i.e(812),i.e(7982)]).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([i.e(812),i.e(5613),i.e(909)]).then(i.bind(i,45613));try{return await n(t)}catch(e){const i=t?.portalItem,n=i?.id||"unset",r=i?.portal?.url||f.A.portalUrl;throw c.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||c.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n.Cg)([(0,d.MZ)({type:p.A})],v.prototype,"fullExtent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,d.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,n.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,d.$K)("esri.layers.Layer")],v)},89186(e,t,i){var n=i(5482),r=i(91429),o=i(16930),s=i(87045),a=i(65509),l=i(25943),c=i(36005);i.d(t,["f",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){const n=t.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:o,minScale:c,maxScale:u}=t;if(null==r&&null==o&&(0!==c||0!==u)){const e=e=>Math.round(1e4*e)/1e4;c=e(c||t.tileInfo.lods[0].scale),u=e(u||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);r=t>=c?i.level:r,o=t>=u?i.level:o}}if(n)return new l.d({layer:this,minLOD:r,maxLOD:o});if(t.tileInfo){const e=new s.A;return e.read(t.tileInfo,i),new a.A(e,r,o)}return null}};return(0,n.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"minScale",void 0),(0,n.Cg)([(0,c.w)("service","minScale")],i.prototype,"readMinScale",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"maxScale",void 0),(0,n.Cg)([(0,c.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,n.Cg)([(0,r.MZ)({type:o.A})],i.prototype,"spatialReference",void 0),(0,n.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,n.Cg)([(0,r.MZ)({type:s.A})],i.prototype,"tileInfo",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"tilemapCache",void 0),(0,n.Cg)([(0,c.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"version",void 0),i=(0,n.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},63490(e,t,i){i.d(t,{Mr:()=>l,TH:()=>a});var n=i(5482),r=i(69540),o=i(25482),s=i(91429);let a=class extends((0,r.OU)(o.o)){constructor(){super(...arguments),this.url=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,n.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.constantElevation=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,n.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),i.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,i){i.d(t,{eR:()=>_,Qv:()=>R,fs:()=>x,Yp:()=>Z,o:()=>O,RR:()=>M,l6:()=>T});var n=i(66552),r=(i(86211),i(28735),i(5482)),o=i(69540),s=i(25482),a=i(91429),l=i(69622),c=i(21325);let u=class extends l.A{set horizontalWKID(e){e?(0,c.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,c.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&n?.length>1&&r?.length>1}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const h=u;let d=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const p=d;let m=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:o}=this,s=`${o}`.split("|");return s.splice(1,1),`${e}|${t}|${i}|${n}|${r}|${s.join("|")}`}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"latitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"longitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"ellipsoidRadius",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"squaredEccentricity",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"properties",void 0),m=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],m);const f=m;let g=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||n?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,b=new Map;b.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),b.set("1",{desc:"Using Heading, Pitch and Roll",constructor:p}),b.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),b.set("4",{desc:"Using Local Tangent Plane",constructor:f});var C=i(63490);function _(e,t,i){return e?(0,C.E1)(e)?new C.Mr(e):function(e,t,i){let{url:n}=e;return n?(n=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(n,t,i),new C.TH({...e,url:n})):null}(e,t,i):e}const M=new n.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),T=new n.J({Feet:"feet",Meter:"meter"}),x=new n.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),A=new Map;A.set("1",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("3",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("2",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("4",function(e){const[t,i,n,r,o,...s]=e.slice(1),a=A.get(o),l=b.get(o)?.constructor;return a&&l?{latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:new l(a([o,"",...s]))}:null});const S=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function D(e,t,i,n,r){const o=S(e),s=S(t),a=S(i),l=S(n);return{affineTransformations:6===o?.length?o:void 0,focalLength:6===o?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function R(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function Z(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function O(e,t,i){const n=function(e,t){return e?.length?e.map(({field:e,order:i})=>{const n=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return n?{fieldName:n.name,sortOrder:"desc"===i?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(i,t);if(n?.length)return n;if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}const r=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return r?[{fieldName:r.name,sortOrder:"asc"}]:null}},39357(e,t,i){i.d(t,{A:()=>a});var n,r=i(5482),o=i(25482),s=i(91429);let a=n=class extends o.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=n=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,i){i.d(t,{A:()=>u});var n,r=i(5482),o=i(4718),s=i(91429),a=i(39357),l=i(76357),c=i(93223);let u=class extends l.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some(e=>(String(e.code)===i&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,s.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,r.Cg)([(0,c.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=n=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,i){i.d(t,{A:()=>c});var n=i(5482),r=i(66552),o=i(25482),s=i(91429),a=i(93223);const l=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends o.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n.Cg)([(0,a.e)(l),(0,s.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,n.Cg)([(0,s.$K)("esri.layers.support.Domain")],c)},90091(e,t,i){i.d(t,{createSampler:()=>R,query:()=>D});var n=i(60999),r=i(49186),o=i(97768),s=i(17676),a=i(86211),l=i(91218),c=i(19419),u=i(4576),h=i(72802);class d{constructor(e,t){this.layer=e,this.parameters=t}}class p extends d{constructor(e,t,i){super(e,i),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(n,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const i=t.tile?.id;t.tile=i?e[i]:null}}getTilesToFetch(){return(0,u.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class m extends d{constructor(e,t,i,n){super(e,i),this.maskExtents=n,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){const i=this._maximumLodForRequests(t),n=Math.min(i,e);n<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(n)}_maximumLodForRequests(e){const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i);if(!e)return n.length-1;const r=this.extent;if(null==r)return-1;for(let i=n.length-1;i>=0;i--){const o=n[i],s=o.resolution*t.size[0],a=o.resolution*t.size[1];if(Math.ceil(r.width/s)*Math.ceil(r.height/a)<=e)return i}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const i=t.id&&e[t.id];i&&(this._fetchedCandidates.add(t),this.elevationTiles.push(i))}}remapTiles(e){this._candidateTiles=y(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const i=this._candidateTiles;this._candidateTiles=[],i.forEach(i=>{if(this._fetchedCandidates.has(i))return void t?.(i);let n=!1;e(i,()=>n=!0),n?t?.(i):this._candidateTiles.push(i)}),this._candidateTiles=y(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const{tileInfo:i,tilemapCache:n}=this.layer,r=g(i,n)[e],o=i.tileAt(r.level,t.xmin,t.ymin),s=o.extent,a=r.resolution*i.size[0],l=r.resolution*i.size[1],c=Math.ceil((t.xmax-s[0])/a),u=Math.ceil((t.ymax-s[1])/l);for(let e=0;e<u;e++)for(let t=0;t<c;t++){const n=new h.U(o.level,o.row-e,o.col+t);i.updateTileInfo(n),this._tileIsMasked(n)||this._candidateTiles.push(n)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,c.gR)(t,e.extent))??!1}}function f(e){return null!=e?.tileInfo}function g(e,t){const i=e.lods;if(f(t)){const{effectiveMinLOD:e,effectiveMaxLOD:n}=t;return i.filter(t=>t.level>=e&&t.level<=n)}return i}function y(e,t){const i={},n=[];for(const r of e){const e=r.id;e&&!i[e]?(i[e]=r,n.push(r)):t?.(r)}const r=n.sort((e,t)=>e.level-t.level);return r.filter((e,i)=>{for(let n=0;n<i;n++){const i=r[n].extent;if(i&&(0,c.gR)(i,e.extent))return t?.(e),!1}return!0})}class v{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){const i=e.extent;this._samplerData=new v(t,i)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;const{safeWidth:i,data:n,dx:r,dy:o,y1:s,x0:a}=this._samplerData,{width:l,values:c,noDataValue:u}=n,h=b(o*(s-t),0,i),d=b(r*(e-a),0,i),p=Math.floor(h),m=Math.floor(d),f=p*l+m,g=f+l,y=c[f],v=c[g],w=c[f+1],C=c[g+1];if(y!==u&&v!==u&&w!==u&&C!==u){const e=d-m,t=y+(w-y)*e;return t+(v+(C-v)*e-t)*(h-p)}}}function b(e,t,i){return e<t?t:e>i?i:e}var C=i(87378),_=i(48526),M=i(86738),T=i(82799);class x{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new x(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,l.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const i=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,l.project)(i,e);if(!n)return null;const r=this.coordinates.map((e,t)=>{const i=e.clone(),r=n.points[t];return i.x=r[0],i.y=r[1],i}),o=this.clone(r);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,l.project)(t,e);if(!i)return null;const n=this.coordinates.map((e,t)=>{const n=e.clone(),r=i.points[t];return n.x=r[0],n.y=r[1],n}),r=this.clone(n);return r.spatialReference=e,r}static fromGeometry(e){const t=new x(e);if(e instanceof x)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,i)=>{const n=e.clone(t);return n.spatialReference=i,n},t;switch(e.type){case"point":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?[new A(i.x,i.y,i.z,i.m)]:n?[new A(i.x,i.y,i.z)]:r?[new A(i.x,i.y,null,i.m)]:[new A(i.x,i.y)],t._exporter=(t,i)=>e.hasM?new M.A(t[0].x,t[0].y,t[0].z,t[0].m,i):new M.A(t[0].x,t[0].y,t[0].z,i),t}case"multipoint":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?i.points.map(e=>new A(e[0],e[1],e[2],e[3])):n?i.points.map(e=>new A(e[0],e[1],e[2])):r?i.points.map(e=>new A(e[0],e[1],null,e[2])):i.points.map(e=>new A(e[0],e[1])),t._exporter=(t,i)=>e.hasM?new _.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:i}):new _.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:i}),t}case"polyline":{const i=e,n=[],r=[],{hasZ:o,hasM:s}=e;let a=0;for(const e of i.paths)if(r.push([a,a+e.length]),a+=e.length,o&&s)for(const t of e)n.push(new A(t[0],t[1],t[2],t[3]));else if(o)for(const t of e)n.push(new A(t[0],t[1],t[2]));else if(s)for(const t of e)n.push(new A(t[0],t[1],null,t[2]));else for(const t of e)n.push(new A(t[0],t[1]));return t.coordinates=n,t._exporter=(t,i)=>{const n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=r.map(e=>n.slice(e[0],e[1]));return new T.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:i})},t}}}}class A{constructor(e,t,i=null,n=null,r=null,o=null){this.x=e,this.y=t,this.z=i,this.m=n,this.tile=r,this.elevationTile=o}clone(){return new A(this.x,this.y,this.z,this.m)}}var S=i(57984);async function D(e,t,i){if(!e)throw new r.A(P,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof x)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new r.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const n={...z,...i},s=n.signal;if("integrated-mesh-3dtiles"===e.type){const r=x.fromGeometry(t);if(e.queryElevationCallback&&e.replacesTerrain){const o=12.9*(i?.minDemResolution||0)+.71,a=await e.queryElevationCallback(r,{signal:s,maxGeometricError:o}),l=r.coordinates.map(()=>({demResolution:1,source:e})),c=await a.project(t.spatialReference,s);if(c){if(void 0!==n.noDataValue&&n.noDataValue!==Number.MAX_VALUE)for(const e of c.coordinates)e.z===Number.MAX_VALUE&&(e.z=n.noDataValue);return{geometry:c.export(),noDataValue:n.noDataValue??Number.MAX_VALUE,sampleInfo:l}}}const o=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:o}}const c=new p(e,t.spatialReference,n);return await e.load({signal:s}),await async function(e,t,i){let n;const o=e.layer.tileInfo.spatialReference;if(t instanceof x?n=await t.project(o,i):(await(0,l.initializeProjection)([{source:t.spatialReference,dest:o}],{signal:i}),n=(0,l.project)(t,o)),!n)throw new r.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${o.wkid}'`);e.geometry=x.fromGeometry(n)}(c,t,s),await I(c,s),await N(c,s),function(e){e.geometry.coordinates.forEach(t=>{const i=t.elevationTile;let n=e.parameters.noDataValue;if(i){const e=i.sample(t.x,t.y);null==e?t.elevationTile=null:n=e}t.z=n})}(c),async function(e,t){const i=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(i);const n={geometry:i.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(n.sampleInfo=function(e){const t=e.layer.tileInfo,i=(0,a.GA)(t.spatialReference);return e.geometry.coordinates.map(n=>{let r=-1;return n.elevationTile&&n.elevationTile!==e.outsideExtentTile&&(r=t.lodAt(n.elevationTile.key.level).resolution*i),{demResolution:r,source:-1===r?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),n}(c,s)}async function R(e,t,i){if(e=Array.isArray(e)?e:[e],0===(e=i?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new r.A(P,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new r.A("elevation-query:invalid-extent","Invalid or undefined extent");const n={...z,...i,returnSampleInfo:!0},o=Z(e[e.length-1],t,n);return 1===e.length?o:O(e,t,await o,n)}async function Z(e,t,i,n){const r=i.signal;await e.load({signal:r});const o=t.spatialReference,s=e.tileInfo.spatialReference;o.equals(s)||(await(0,l.initializeProjection)([{source:o,dest:s}],{signal:r}),t=(0,l.project)(t,s));const a=new m(e,t,i,n);await I(a,r),await N(a,r);const c=a.elevationTiles,u=a.layer.tileInfo,h=a.parameters.noDataValue;return new S.C({noDataValue:h,tiles:c,tileInfo:u})}async function O(e,t,i,n){if(e.pop(),!e.length)return i;const r=i.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,c.VY)(e.extent)),o=await Z(e[e.length-1],t,n,r);if(0===o.samplers.length)return i;const s=i.samplers.concat(o.samplers),a=n.noDataValue;return O(e,t,new S.C({samplers:s,noDataValue:a}),n)}async function I(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;const t=new w(new h.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;const i=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{const n=e.x,r=e.y;(n<i.xmin||n>i.xmax||r<i.ymin||r>i.ymax)&&(e.elevationTile=t)})}(e);const i=e.parameters.demResolution;if("number"==typeof i)!function(e,t){const i=function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=t/(0,a.GA)(i.spatialReference),o=g(i,n);let s=o[0],l=0;for(let e=1;e<o.length;e++){const t=o[e];Math.abs(t.resolution-r)<Math.abs(s.resolution-r)&&(s=t,l=e)}return l}(e,t);e.selectTilesAtLOD(i)}(e,i);else if("finest-contiguous"===i)await async function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=j(i,n,e.parameters.minDemResolution);await E(e,r,t)}(e,t);else{if("auto"!==i)throw new r.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${i}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){const{tileInfo:t,tilemapCache:i}=e.layer,n=j(t,i,e.parameters.minDemResolution);e.selectTilesAtLOD(n,e.parameters.maximumAutoTileRequests)})(e),function(e){const t=e.layer.tileInfo;let i=0;const n={},r=e=>{null!=e.id&&(e.id in n?n[e.id]++:(n[e.id]=1,i++))},o=e=>{if(null==e.id)return;const t=n[e.id];1===t?(delete n[e.id],i--):n[e.id]=t-1};e.forEachTileToFetch(r,o);let s=!0;for(;s&&(s=!1,e.forEachTileToFetch(n=>{i<=e.parameters.maximumAutoTileRequests||(o(n),t.upsampleTile(n)&&(s=!0),r(n))},o),s););}(e);const i=e.layer.tilemapCache;if(!i||f(i))return L(e,t);const r=e.getTilesToFetch(),o={},a=r.map(async e=>{const r=new h.U(0,0,0),a=await(0,n.Ke)(i.fetchAvailabilityUpsample(e.level,e.row,e.col,r,{signal:t}));!1!==a.ok?null!=e.id&&(o[e.id]=r):(0,s.QP)(a.error)});await(0,s.qr)(Promise.all(a),t),e.remapTiles(o)}(e,t)}}async function E(e,t,i){const n=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const o=n.tilemapCache,a=e.getTilesToFetch();try{if(o&&!f(o))await(0,s.qr)(Promise.all(a.map(e=>o.fetchAvailability(e.level,e.row,e.col,{signal:i}))),i);else if(await N(e,i),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new r.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(n){(0,s.QP)(n),await E(e,t-1,i)}}async function L(e,t){const i=e.layer.tileInfo;await N(e,t);let n=!1;e.forEachTileToFetch((e,t)=>{i.upsampleTile(e)?n=!0:t()}),n&&await L(e,t)}function j(e,t,i=0){const n=g(e,t);let r=n.length-1;if(i>0){const t=i/(0,a.GA)(e.spatialReference),o=n.findIndex(e=>e.resolution<t);0===o?r=0:o>0&&(r=o-1)}return r}const z={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function N(e,t){const i=e.getTilesToFetch(),n={},r=e.parameters.cache,o=e.parameters.noDataValue,a={noDataValue:o,signal:t},l=i.map(async t=>{if(null==t.id)return;const i=`${e.layer.uid}:${t.id}:${o}`,s=r?.get(i),l=s??C.A.from(await e.layer.fetchTile(t.level,t.row,t.col,a));r?.put(i,l),n[t.id]=new w(t,l)});await(0,s.qr)(Promise.allSettled(l),t),e.populateElevationTiles(n)}const P="elevation-query:invalid-layer"},7236(e,t,i){i.d(t,{A:()=>c});var n=i(5482),r=i(65529),o=i(53966),s=i(91429),a=i(86738),l=i(28735);let c=class extends r.nJ{queryElevation(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,i){return e.hasZ=!0,e.z=i.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,i){u.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.paths.length;r++){const o=e.paths[r],s=t.paths[r];for(let e=0;e<o.length;e++){const t=o[e],r=s[e];u.x=r[0],u.y=r[1],n&&(t[3]=t[2]),t[2]=i.elevationAt(u.x,u.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,i){u.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.points.length;r++){const o=e.points[r],s=t.points[r];u.x=s[0],u.y=s[1],n&&(o[3]=o[2]),o[2]=i.elevationAt(u.x,u.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;const i=e.spatialReference;if(i.equals(t))return e;const n=(0,l.Cv)(e,t);return n||o.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${i.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),n}};c=(0,n.Cg)([(0,s.$K)("esri.layers.support.ElevationSampler")],c);const u=new a.A},87378(e,t,i){i.d(t,{A:()=>a});var n,r=i(34275),o=i(56507);const s=Symbol("ElevationTileDataClass");class a{static{n=s}constructor({values:e,width:t,height:i,noDataValue:o}){this[n]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,r.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=o}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,n=-1/0,r=!0;for(const o of t)o===e?this._hasNoDataValues=!0:(i=o<i?o:i,n=o>n?o:n,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=n>-3e38?n:0)}static{this.from=(0,o.qf)(a)}}},20437(e,t,i){i.d(t,{A:()=>m});var n,r=i(5482),o=i(66552),s=i(25482),a=i(91429),l=i(56507),c=i(8631),u=i(98453),h=i(36005),d=i(93223);const p=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let m=class extends s.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?p.fromJSON(i.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"description",void 0),(0,r.Cg)([(0,h.w)("description")],m.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:c.g,json:{read:{reader:c.r},write:!0}})],m.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r.Cg)([(0,d.e)(u.m)],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,r.Cg)([(0,h.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=n=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],m)},41628(e,t,i){i.d(t,{A:()=>l});var n,r=i(5482),o=i(91429),s=i(76357),a=i(93223);let l=class extends s.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=n=(0,r.Cg)([(0,o.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,i){i.d(t,{C:()=>u});var n=i(5482),r=i(53966),o=i(86211),s=i(91429),a=i(16930),l=i(19419),c=i(7236);let u=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){const t=e.noDataValue,i="tiles"in e?e.tiles.map(i=>new h({tile:i,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:i});const n=i[0];if(n){this.extent=n.extent.clone();const{min:e,max:t}=n.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<i.length;e++){const t=i[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{const t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let i;for(const n of this.samplers)if(n.containsAt(e,t)&&(i=n.elevationAt(e,t),i!==n.noDataValue))return i;return null!=i?i:(r.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"noDataValue",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"samplers",void 0),u=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler")],u);let h=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);const t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;const i=(0,o.GA)(e.tileInfo.spatialReference),n=e.tileInfo.lodAt(e.tile.key.level).resolution*i;this.demResolution={min:n,max:n}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tile",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tileInfo",void 0),h=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],h)},65509(e,t,i){i.d(t,{A:()=>o});var n=i(49186),r=i(17676);class o{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){const n=this.tileInfo?.lodAt(e);return!n||e<this.minLOD||e>this.maxLOD?"unavailable":n.cols&&n.rows?i>=n.cols[0]&&i<=n.cols[1]&&t>=n.rows[0]&&t<=n.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,o){await(0,r.NO)(o);const s=this.getAvailability(e,t,i);if("unavailable"===s)throw new n.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return s}async fetchAvailabilityUpsample(e,t,i,n,o){await(0,r.NO)(o),n.level=e,n.row=t,n.col=i;const s=this.tileInfo;return s.updateTileInfo(n),this.fetchAvailability(e,t,i,o).catch(e=>{if((0,r.zf)(e))throw e;if(s.upsampleTile(n))return this.fetchAvailabilityUpsample(n.level,n.row,n.col,n,o);throw e})}}},8631(e,t,i){i.d(t,{r:()=>d,g:()=>h});var n,r=i(53177),o=i(76357),s=i(5482),a=i(91429),l=i(93223);let c=class extends o.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,s.Cg)([(0,l.e)({inherited:"inherited"})],c.prototype,"type",void 0),c=n=(0,s.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],c);var u=i(41628);const h={key:"type",base:o.A,typeMap:{range:u.A,"coded-value":r.A,inherited:c}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}},98453(e,t,i){const n=new(i(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"});i.d(t,["m",0,n])},77548(e,t,i){i.d(t,{Gh:()=>O,tk:()=>A,BR:()=>x,p2:()=>M,qd:()=>S,wI:()=>T,G$:()=>R,$x:()=>D,Ov:()=>w,cM:()=>d,UC:()=>p,Qz:()=>m,OP:()=>Z,TU:()=>v,F2:()=>f,XX:()=>y,Qi:()=>b,jy:()=>C});var n=i(70333),r=i(11254),o=i(7762),s=(i(84952),i(36563)),a=i(36708),l=i(4146);const c=new WeakMap;function u(e){return!e.destroyed&&(c.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>c.set(e,t),a.pc),(0,s.hA)(()=>c.delete(e))]),c.get(e))}function h(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return h(e,"knowledge-graph")&&"layers"in e}function p(e){return h(e,"knowledge-graph-sublayer")}function m(e){return h(e,"link-chart")&&"layers"in e}function f(e){return h(e,"subtype-group")&&"sublayers"in e}function g(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}i(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function b(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function C(e){return function(e){return h(e,"catalog-footprint")}(e)||function(e){return h(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return h(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function _(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!C(e))return;const i=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(i){if(i.isAggregate){const e=i.origin;return e&&"featureReductionProvider"in e&&n?_(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?_(n)?n:null:e}async function T(e,t){const i=n.id?.findServerInfo(e);if(null!=i?.currentVersion)return i.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,r.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function x(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function S(e){const t=new o.A;for(const i of e.allLayers.concat(e.allTables))u(i)||g(i)||"annotation-feature"===i.type||"dimension-feature"===i.type||("charts"in i&&t.push(i),"subtype-group"===i.type&&t.push(...i.sublayers));return t}function D(e,t){return null}function R(e){return null}function Z(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function O(e,t){if(!t||!Z(e))return;const i=(e.url,null);i&&(e.url=i)}},38969(e,t,i){i.d(t,{i:()=>r});var n=i(37955);function r(e,t){return new Promise((i,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?i():(t((0,n.Oo)(e,"canplay",i)),t((0,n.Oo)(e,"error",r)))})}},73133(e,t,i){const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});i.d(t,["j",0,n])},7861(e,t,i){i.d(t,{L:()=>r});var n=i(11254);async function r(e,t){return(await(0,n.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,i){i.d(t,{S:()=>r});const n=Symbol("BasemapInstance");function r(e){return null!=e&&"object"==typeof e&&n in e}i.d(t,["Y",0,n])},79677(e,t,i){i.d(t,{A:()=>h});var n,r=i(5482),o=i(25482),s=i(88930),a=i(91429),l=(i(98623),i(10184)),c=i(36005),u=i(43937);let h=class extends o.o{static{n=this}static get allTime(){return d}static get empty(){return p}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,r=e.end?.getTime()??e.end;return t===n&&i===r}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let i=this.start;i&&(i=(0,s.lL)(i,new l.A({value:1,unit:e}),t));let r=this.end;if(r){const i=(0,s.lL)(r,new l.A({value:1,unit:e}),t);r=r.getTime()===i.getTime()?i:(0,s.S1)(i,1,e,t)}return new n({start:i,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,r=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,a;return r>=t&&r<=i?s=r:t>=r&&t<=o&&(s=t),i>=r&&i<=o?a=i:o>=t&&o<=i&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?n.empty:new n({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,i="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const r=new n,{start:o,end:a}=this;return null!=o&&(r.start=(0,s.S1)(o,e,t,i)),null!=a&&(r.end=(0,s.S1)(a,e,t,i)),r}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:i})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,r.Cg)([(0,c.w)("end")],h.prototype,"readEnd",null),(0,r.Cg)([(0,u.K)("end")],h.prototype,"writeEnd",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,r.Cg)([(0,c.w)("start")],h.prototype,"readStart",null),(0,r.Cg)([(0,u.K)("start")],h.prototype,"writeStart",null),h=n=(0,r.Cg)([(0,a.$K)("esri.time.TimeExtent")],h);const d=new h,p=new h({start:void 0,end:void 0})},10184(e,t,i){i.d(t,{A:()=>u});var n=i(5482),r=i(69540),o=i(25482),s=i(88930),a=i(91429),l=i(73133),c=i(93223);let u=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,c.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,n.Cg)([(0,a.$K)("esri.time.TimeInterval")],u)},68747(e,t,i){i.r(t),i.d(t,{generateCombinationsPanoramicWorker:()=>x,generateCombinationsWorker:()=>T});var n=i(34727),r=i(17676);i(17799),i(69052),i(799),i(86211),i(18047),new Map,i(77690),i(29242),i(51850),i(37585),i(35522);var o=i(49186),s=(i(56507),i(86738),i(39829),i(82799),i(16930));i(34403),i(21325),i(91218),i(65708),i(49590),i(27749),i(39663),i(7817),i(10222),i(4576),i(63490),i(87811);var a=i(53966),l=(i(44208),i(27921),i(5443));i(83276),i(19419),i(38732),i(87772),i(23281),i(90091),i(87378),i(22796),i(57984),i(87045),i(72802),i(7861);const c=[1920,1080],u={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},h=(s.A.fromJSON(u.spatialReference),.001);new l.A({xmin:u.xmin+h,ymin:u.ymin+h,xmax:u.xmax-h,ymax:u.ymax-h,spatialReference:u.spatialReference}),(0,n.KJ)(Math.acos(.05));var d=i(5482),p=i(97768),m=i(61893),f=i(10107),g=i(64108);let y=class extends m.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;const{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};const{url:t,customParameters:n}=this;let o=this.datasetFormat;if(!t)throw new Error("URL is required to load NonPanoramicMedia.");const s=await i.e(216).then(i.bind(i,97835));if((0,r.Te)(e),o||(o=s.guessExtensionFromURI(t)),!o){try{o=await s.getDatasetFormat(t)}catch(e){a.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,r.Te)(e)}o??="UNKNOWN FORMAT",this.datasetFormat=o;const l=(await Promise.all([i.e(2754),i.e(9235),i.e(3500),i.e(1003),i.e(2806),i.e(124)]).then(i.bind(i,90124))).default;(0,r.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:o},customParameters:n??void 0});const c=this._cache.load(e);return this.addResolvingPromise(c),await c,(0,r.Te)(e),{layer:this._cache,size:this.size}}};(0,d.Cg)([(0,f.MZ)()],y.prototype,"_cache",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"autoLoad",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"customParameters",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"datasetFormat",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"url",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"layer",null),(0,d.Cg)([(0,f.MZ)()],y.prototype,"rotation",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"size",null),y=(0,d.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=i(37955),w=i(38969);class b extends o.A{constructor(e,t,i){super(e,t,i),this.name="unknown",this.name=e}}const C=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),_=new Set(["MRF","TIFF","TIF"]);let M=class extends m.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){const{matrix:e}=this;return e?(0,n.KJ)(Math.asin(-e[6])):0}get horizonRoll(){const{matrix:e}=this;return e?(0,n.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){const{matrix:e,cameraHeading:t}=this;return e?(0,n.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){const{guessExtensionFromURI:t}=await i.e(216).then(i.bind(i,97835));if((0,r.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let n=this.extension;if(n||(n=t(this.url)),!n||!C.has(n))throw new b("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:n??"UNKNOWN FORMAT"});return _.has(n)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){const{loadMeshes:t,loadPyramid:n,loadRaster:o}=await Promise.all([i.e(1843),i.e(7005),i.e(5530),i.e(7869),i.e(118),i.e(3591)]).then(i.bind(i,21060)),s=await o(this.url,e);(0,r.Te)(e),this.imagePyramid=await n(s,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,r.Te)(e);const a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,r.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){const{createImageSphere:t}=await Promise.all([i.e(1843),i.e(7005),i.e(5530),i.e(7869),i.e(118),i.e(3591)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media,this._size=[...c];const o=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:o,size:this._size}}async loadImageMesh(e){const{createImageSphere:t}=await Promise.all([i.e(1843),i.e(7005),i.e(5530),i.e(7869),i.e(118),i.e(3591)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media;const o=n.mesh;return this._size=[n.media.width,n.media.height],{meshOrMeshes:o,size:this._size}}async _resolveMedia(e){const t=Promise.withResolvers(),n=(0,r.u7)(e?.signal,t.resolve),o="video"===this.type?document.createElement("video"):document.createElement("img");o.crossOrigin="anonymous",o.src=this.url;let s=null;const a="video"===this.type?(0,w.i)(o,this.addHandles):await new Promise((e,t)=>{s=[(0,v.on)(o,"error",e=>{t(e)}),(0,v.on)(o,"load",e)]}).finally(()=>{s?.forEach(e=>e.remove()),s=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{n?.remove()}(0,r.Te)(e);const c=o;if(!c)throw new b("unknown","Could not load media",{url:this.url});const{createImageSphere:u}=await Promise.all([i.e(1843),i.e(7005),i.e(5530),i.e(7869),i.e(118),i.e(3591)]).then(i.bind(i,21060));(0,r.Te)(e);const h=await u({data:o,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{media:c,mesh:h}}};function T(e){return function(e,t){const{cameraPitch:i,cameraRoll:n,cameraLocation:r}=e,{x:o,y:s,z:a,spatialReference:l}=r;if(t.every(e=>0===e)||!t||!t.length||!l)throw new Error("Invalid parameters");const[c,u,,h,d]=t,p=[-h,0,h],m=[-d,0,d],f=[-c,0,c],g=[-u,0,u],y=[];for(const t of p)for(const r of m)for(const c of f)for(const u of f)for(const h of g){const d={...e};d.cameraPitch=i+t,d.cameraRoll=n+r,d.cameraLocation={x:o+c,y:s+u,z:a?a+h:0,spatialReference:{wkid:l.wkid}},y.push(d)}return y}(e.imageToWorldProps,e.accuracyParameters)}function x(e){return function(e,t){const{cameraHeading:i,cameraLocation:n}=e,{x:r,y:o,z:s,spatialReference:a}=n;if(!t||t.every(e=>0===e)||!t.length||!a)throw new Error("Invalid parameters");const[l,c,u]=t,h=u>0?[-u,0,u]:[],d=l>0?[-l,0,l]:[],p=c>0?[-c,0,c]:[],m=[];for(const t of h)for(const n of d)for(const l of d)for(const c of p){const u={...e};u.cameraHeading=i+t,u.cameraLocation={x:r+n,y:o+l,z:s?s+c:0,spatialReference:{wkid:a.wkid}},m.push(u)}return m}(e.imageToWorldProps,e.accuracyParameters)}(0,d.Cg)([(0,f.MZ)()],M.prototype,"_size",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"autoLoad",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"cameraHeading",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"extension",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonPitch",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonRoll",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonYaw",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"id",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"imagePyramid",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"matrix",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"size",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"type",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"uiStrings",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"url",void 0),M=(0,d.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],M),i(9093),i(91829),i(58083),i(79258),i(73354),i(28208),i(28735)},28208(e,t,i){var n=i(86738),r=i(16930);const o=new n.A({x:0,y:0,z:0,spatialReference:r.A.WebMercator});i.d(t,["NU",0,.3515625,"ZH",0,o])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5676],{5482(e,t,n){function r(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function o(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>s,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function s(e){function t(t){e.error=e.hasError?new i(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},57694(e,t,n){n.d(t,{a:()=>s,c:()=>i});var r=n(55537),o=n(83661);function i(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case r.G.enumPolygon:return u(e);case r.G.enumPolyline:return f(e.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case r.G.enumMultiPoint:return function(e){const t=new o.K(0),n=new o.K(0),r=e.getImpl(),i=r.getAttributeStreamRef(0),s=r.getPointCount(),u=new o.P;for(let e=0;e<s;e++)i.queryPoint2D(2*e,u),t.add(u.x),n.add(u.y);const a=new o.P;return a.setCoords(t.getResult(),n.getResult()),a.divThis(s)}(e);case r.G.enumEnvelope:return e.getCenterXY();case r.G.enumPoint:return e.getXY();default:return o.P.construct(Number.NaN,Number.NaN)}return o.P.construct(Number.NaN,Number.NaN)}function s(e,t){return u(e,t)}function u(e,t=-1){const n=new o.K(0),r=new o.K(0),i=e.getImpl();let s;const u=i.hasNonLinearSegments();let f;const m=i.getXY(0);if(-1===t){if(f=i.calculateArea2D(),0===f)return l(e);u&&(s=i.querySegmentIterator());for(let e=0,t=i.getPathCount();e<t;e++)a(m,i,e,n,r),u&&c(m,s,n,r)}else{if(f=i.calculateRingArea2D(t),0===f)return l(e,t);u&&(s=i.querySegmentIterator(),s.resetToPath(t)),a(m,i,t,n,r),u&&c(m,s,n,r)}const h=new o.P,p=new o.P;return h.setCoords(n.getResult(),r.getResult()),p.assign(h.mul(1/f).add(m)),p}function a(e,t,n,r,i){const s=t.getPathStart(n),u=t.getPathEnd(n);if(u-s<3)return;const a=t.getAttributeStreamRef(0),c=a.readPoint2D(2*s),l=a.readPoint2D(2*(s+1));l.subThis(c);const f=new o.K(0),m=t.hasNonLinearSegments(),h=1/3,p=new o.P;for(let e=s+2;e<u;e++){a.queryPoint2D(2*e,p),p.subThis(c);const t=.5*p.crossProduct(l);m&&f.add(t);const n=h*t;r.add((l.x+p.x)*n),i.add((l.y+p.y)*n),l.setCoordsPoint2D(p)}const g=m?f.getResult():t.calculateRingArea2D(n),d=c.sub(e).mul(g);r.add(d.x),i.add(d.y)}function c(e,t,n,o){let i;for(t.nextPath()||(0,r.d)("centroid");null!==(i=t.nextCurve());){const t=i.calculateWeightedAreaCentroid2D(e);n.add(t.x),o.add(t.y)}}function l(e,t=-1){return f(e.getImpl(),t)}function f(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new o.K(0),r=new o.K(0);for(let t=0;t<e.getPathCount();++t){const o=e.getXY(e.getPathStart(t));n.add(o.x),r.add(o.y)}return o.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new o.K(0),i=new o.K(0),s=e.querySegmentIterator();for(-1!==t&&s.resetToPath(t);s.nextPath();){const n=s.getPathIndex(),o=e.getXY(e.getPathStart(n));for(;s.hasNextSegment();){const e=s.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(o.mul(t));r.add(n.x),i.add(n.y)}const u=o.mul(e.calculatePathLength2D(n));if(r.add(u.x),i.add(u.y),-1!==t)break}const u=new o.P;return u.setCoords(r.getResult(),i.getResult()),u.mul(1/n)}},30921(e,t,n){n.d(t,{D:()=>M,m:()=>l,s:()=>y,w:()=>d});var r=n(5482),o=n(55537),i=n(88885),s=n(15756),u=n(83661),a=n(79187),c=n(95213);function l(){return{outPoint:new u.P,index:-1,t:Number.NaN}}function f(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function m(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function h(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function p(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function g(e,t){const n=l();h(n,e),h(e,t),h(t,n)}function d(e,t,n,r,i,u){if(e.getGeometryType()===o.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,s.g)(e,t.getEndXY(),0))return m(i,t.getEndXY(),-1,Number.NaN),m(u,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===o.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,s.g)(t,e.getEndXY(),0))return m(i,e.getEndXY(),-1,Number.NaN),m(u,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function y(e){const t=e.getPathCount(),n=(0,u.d)(e.getSegmentCount(),0);let r=0;for(let o=0;o<t;++o){const t=r+e.getSegmentCountPath(o);for(let i=r,s=e.getPathStart(o);i<t;++i,++s)n[i]=s;r=t}return(0,i.s)(e.getPointCount(),n),n}function v(e,t){return!!Number.isNaN(t)||e<=t}function P(e){const t=new i.P;return t.addEnvelope(e,!1),t}class M{m_progressTracker;m_env2DgeometryA=null;m_env2DgeometryB=null;m_maxSqrDistance;m_maxDistance;m_progressCounter=0;m_bIsNearCalc;constructor(e,t){if(this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==c.P.type||t.getGeometryType()!==c.P.type)&&(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!v(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const o=f(new u.P,(0,u.j)(),Number.NaN),i=f(new u.P,(0,u.j)(),Number.NaN),s=this._ExecuteBruteForce(e,t,o,i);return v(s,this.m_maxDistance)?(null!==n&&h(n,o),null!==r&&h(r,i),s):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==c.P.type&&e.getGeometryType()!==c.E.type||t.getGeometryType()!==c.P.type&&t.getGeometryType()!==c.E.type||(n=!1),n){if(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=f(new u.P,(0,u.j)(),Number.NaN),o=f(new u.P,(0,u.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,o)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case o.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case o.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case o.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case o.G.enumPolyline:case o.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case o.G.enumPoint:return this.distancePointPoint(e,t,n,r);case o.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case o.G.enumPolyline:case o.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case o.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const o=e.getXY(),i=t.getXY();return m(n,o,0,0),m(r,i,0,0),Math.sqrt(u.P.sqrDistance(o,i))}distancePointMultipoint(e,t,n,r){const o=e.getXY();let i=this.m_maxSqrDistance,s=i,a=!1;const c=t.getPointCount(),l=new u.P;for(let e=0;e<c;++e)if(t.queryXY(e,l),s=u.P.sqrDistance(o,l),this.m_bIsNearCalc){if(s<=i)return 0}else if(!(s>i)&&(!a&&s===i||s<i)&&(i=s,m(n,o,0,0),m(r,l,e,0),a=!0,0===i))return 0;return a?Math.sqrt(i):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const i=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),c=e.getXY();if(!i&&t.getGeometryType()===o.G.enumPolygon&&0!==(0,s.g)(t,c,0))return m(n,c,0,0),m(r,c,-1,Number.NaN),0;t.getImpl().getAccelerators();let l=this.m_maxSqrDistance,f=l,h=-1;const p=new a.Envelope2D,g=t.querySegmentIterator();let d=!1;for(;g.nextPath();)for(;g.hasNextSegment();){const e=g.nextSegment();e.queryEnvelope(p);const t=p.sqrDistance(c);if(t>l)continue;if(!this.m_bIsNearCalc&&d&&t===l)continue;h=e.getClosestCoordinate(c,!1);const o=e.getCoord2D(h);if(f=u.P.sqrDistance(c,o),this.m_bIsNearCalc){if(f<=l)return 0}else if(!(f>l)&&(!d||f<l)&&(l=f,m(n,c,0,0),m(r,o,g.getStartPointIndex(),h),d=!0,0===l))return 0}return d?Math.sqrt(l):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const o=e.getXY();m(n,o,0,0),m(r,o,-1,Number.NaN);const i=t.asEnvelope2D();return i.contains(o)?0:Math.sqrt(i.sqrDistance(o,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case o.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const o=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o}case o.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case o.G.enumPolyline:case o.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case o.G.enumEnvelope:return this.distanceMultipointMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,o,i,s){const a={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===i&&1===s){const r=Math.trunc((0,u.s)(Math.sqrt(e.getPointCount())+1,1,(0,u.i)())),i=Math.trunc((0,u.s)(Math.sqrt(t.getPointCount())+1,1,(0,u.i)()));if((r>=4||i>=4)&&this.distanceMultipointMultipoint(e,t,n,o,r,i)<=this.m_maxSqrDistance)return 0}let c=this.m_maxSqrDistance;const l=[e],f=[t],h=this.swapGeometriesIfBGtA(l,f);h&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s=(0,u.c)(i,i=s),g(n,o)),(0,r.mS)(a,(0,u.h)(()=>{g(n,o),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!h),!1);const p=l[0].getImpl(),d=f[0].getImpl(),y=p.getPointCount(),v=d.getPointCount(),P=v>1;let M=!1;const N=new u.P,D=new u.P;for(let e=0;e<y;e+=i){if(p.queryXY(e,N),P){const e=this.m_env2DgeometryB.sqrDistance(N);if(this.m_bIsNearCalc){if(e>c)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(N)<=c)return 0}else if(e>=c)continue}for(let t=0;t<v;t+=s){d.queryXY(t,D);const r=u.P.sqrDistance(N,D);if(this.m_bIsNearCalc){if(r<=c)return 0}else if(!(r>c||M&&r===c)&&(!M||r<c)&&(m(n,N,e,0),m(o,D,t,0),M=!0,c=r,0===c))return M?Math.sqrt(c):Number.POSITIVE_INFINITY}}return M?Math.sqrt(c):Number.POSITIVE_INFINITY}catch(e){a.error=e,a.hasError=!0}finally{(0,r.hk)(a)}}distanceMultipointMultipath(e,t,n,r){let i=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===o.G.enumPolygon;const c=t.querySegmentIterator();c.stripAttributes();const l=new a.Envelope2D,f=new u.P;let h=this.m_maxSqrDistance;const p=e.getImpl(),g=p.getPointCount(),d=g>1;let y=!1;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();if(e.queryLooseEnvelope(l),d){const e=l.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h||y&&e===h)continue}for(let o=0;o<g;o++){if(p.queryXY(o,f),i&&0!==(0,s.g)(t,f,0))return m(n,f,-1,Number.NaN),m(r,f,o,0),0;{const e=l.sqrDistance(f);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h)continue}const u=e.getClosestCoordinate(f,!1),a=e.getCoord2D(u);f.subThis(a);const g=f.sqrLength();if(this.m_bIsNearCalc){if(g<=h)return 0}else if(!(g>h)&&(!y||g<h)&&(h=g,m(n,p.getXY(o),o,0),m(r,a,c.getStartPointIndex(),u),y=!0,0===h))return 0}i=!1}return y?Math.sqrt(h):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case o.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case o.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const o=this.distanceMultipointMultipath(t,P(e),r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o}case o.G.enumPolyline:case o.G.enumPolygon:return this.distanceMultipathMultipath(P(e),t,n,r);case o.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const o=e.asEnvelope2D(),i=t.asEnvelope2D();return Math.sqrt(o.sqrDistanceEnvelope(i,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case o.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const o=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o}case o.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const o=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o}case o.G.enumPolyline:case o.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case o.G.enumEnvelope:return this.distanceMultipathMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,o){const s={stack:[],error:void 0,hasError:!1};try{const c=[e],f=[t],m=this.swapGeometriesIfAGtB(c,f);m&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),g(n,o)),(0,r.mS)(s,(0,u.h)(()=>{g(n,o),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!m),!1);const v=c[0],P=f[0],M=v.querySegmentIterator();M.stripAttributes();const N=P.querySegmentIterator();if(N.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,u.s)(Math.sqrt(v.getPointCount())+1,1,(0,u.i)())),t=Math.trunc((0,u.s)(Math.sqrt(v.getPointCount())+1,1,(0,u.i)()));if(this.distanceMultipointMultipoint(v,P,n,o,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=l(),t=l();if(d(v,P,M,N,e,t))return h(n,e),h(o,t),0}const D=y(v),S=[],_=new i.S,w=new a.Envelope2D,x=new a.Envelope2D,I=new a.Envelope2D;let b=this.m_maxSqrDistance,A=!0,O=!1;for(let e=0,t=D.length;e<t;++e){v.querySegment(D[e],_,!0);const t=_.get();if(t.queryEnvelope(w),!(w.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>b)){if(this.m_bIsNearCalc&&w.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=b)return 0;for(;N.nextPath();){if(this.progress_(),A)P.queryPathEnvelope(N.getPathIndex(),I),S[N.getPathIndex()]=I.clone();else if(w.sqrDistanceEnvelope(S[N.getPathIndex()],null,null)>b)continue;for(;N.hasNextSegment();){const r=N.nextSegment();if(r.queryEnvelope(x),w.sqrDistanceEnvelope(x,null,null)<=b){const i=!w.isIntersecting(x),s=[0],u=[0];let a=t.distance(r,i,s,u);if(a*=a,this.m_bIsNearCalc&&a<=this.m_maxSqrDistance)return 0;if(a<b||a===b&&D[e]<n.index){if(O=!0,p(n,t,D[e],s[0]),p(o,r,N.getStartPointIndex(),u[0]),0===a)return 0;b=a}}}}N.resetToFirstPath(),A=!1}}return O?Math.sqrt(b):Number.POSITIVE_INFINITY}catch(e){s.error=e,s.hasError=!0}finally{(0,r.hk)(s)}}swapGeometriesIfAGtB(e,t){return(0,o.v)(e[0])>(0,o.v)(t[0])&&(t[0]=(0,u.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},9447(e,t,n){n.d(t,{O:()=>o});var r=n(57694);class o{getOperatorType(){return 10205}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,r.c)(e)}}},48265(e,t,n){n.d(t,{e:()=>s});var r=n(9447),o=n(78125);const i=new r.O;function s(e){const t=i.execute((0,o.fromGeometry)(e),null);return(0,o.toPoint)(t,(0,o.getSpatialReference)(e))}const u=i.supportsCurves(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:s,supportsCurves:u},Symbol.toStringTag,{value:"Module"}));n.d(t,["c",0,a])},16346(e,t,n){n.d(t,{e:()=>a});var r=n(55537),o=n(30921),i=n(86211),s=n(78125);const u=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,i,s,u){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const a=e,c=t;Number.isNaN(u)&&(u=Number.POSITIVE_INFINITY);const l=new o.D(u,n).calculate(a,c,i,s);return Number.isFinite(l)?l:Number.NaN}};function a(e,t,n={}){const{unit:r}=n;let o=u.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),null);if(o&&r){const t=(0,s.getSpatialReference)(e);o=(0,i.PQ)(o,t,r)}return o}const c=u.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,execute:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}));n.d(t,["d",0,l])},21260(e,t,n){n.d(t,{e:()=>m,i:()=>l,l:()=>f,s:()=>c});var r=n(86211),o=n(29716),i=n(5808);let s,u,a,c;function l(){return!!s&&(0,o.s1)()}async function f(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)),(0,o.Hh)()]);s=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=(0,o.fz)()}}function m(e,t,n={}){const{curveType:c="geodesic",unit:l}=n,f=a(e);let m=(0,o.g7)(s(e),s(t),u(f),i.O[c]);return m&&l&&(m=(0,r.oU)(m,"meters",l)),m}const h=Object.freeze(Object.defineProperty({__proto__:null,execute:m,isLoaded:l,load:f,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}));n.d(t,["g",0,h])},95488(e,t,n){n.d(t,{I:()=>o});var r=n(11406);class o extends r.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},51850(e,t,n){function r(){return[0,0,0]}function o(e){return[e[0],e[1],e[2]]}function i(e,t,n){return[e,t,n]}function s(e,t,n){return[e,t,n]}function u(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function a(){return[0,0,0]}function c(){return i(1,1,1)}function l(){return i(1,0,0)}function f(){return i(0,1,0)}function m(){return i(0,0,1)}n.d(t,{CN:()=>s,S:()=>c,Ul:()=>a,ci:()=>u,fA:()=>i,o8:()=>o,vt:()=>r});const h=[0,0,0],p=c(),g=l(),d=f(),y=m();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:g,UNIT_Y:d,UNIT_Z:y,ZEROS:h,clone:o,create:r,freeze:s,fromArray:u,fromValues:i,ones:c,unitX:l,unitY:f,unitZ:m,zeros:a},Symbol.toStringTag,{value:"Module"})),n.d(t,["Cb",0,y,"Cw",0,g,"JP",0,d,"Un",0,p,"uY",0,h])},35522(e,t,n){n.d(t,{$A:()=>w,Bw:()=>i,C:()=>s,Cc:()=>x,DI:()=>D,Io:()=>v,Ln:()=>y,Om:()=>_,Qr:()=>f,Re:()=>c,S8:()=>S,T9:()=>g,WQ:()=>a,Z0:()=>I,_S:()=>h,aI:()=>T,ei:()=>b,fw:()=>O,g7:()=>E,gL:()=>A,hG:()=>P,hZ:()=>u,hs:()=>d,jk:()=>p,lw:()=>l,m3:()=>M,oW:()=>C,t2:()=>q,tn:()=>m,ze:()=>N});var r=n(51850),o=n(34304);function i(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function u(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function l(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function f(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function m(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function d(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return Math.sqrt(n*n+r*r+o*o)}function P(e,t){const n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return n*n+r*r+o*o}function M(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function N(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function D(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function S(e,t){const n=t[0],r=t[1],o=t[2];let i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function w(e,t,n){const r=t[0],o=t[1],i=t[2],s=n[0],u=n[1],a=n[2];return e[0]=o*a-i*u,e[1]=i*s-r*a,e[2]=r*u-o*s,e}function x(e,t,n,r){const o=t[0],i=t[1],s=t[2];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=s+r*(n[2]-s),e}function I(e,t,n){const r=t[0],o=t[1],i=t[2];return e[0]=n[0]*r+n[4]*o+n[8]*i+n[12],e[1]=n[1]*r+n[5]*o+n[9]*i+n[13],e[2]=n[2]*r+n[6]*o+n[10]*i+n[14],e}function b(e,t,n){const r=t[0],o=t[1],i=t[2];return e[0]=r*n[0]+o*n[3]+i*n[6],e[1]=r*n[1]+o*n[4]+i*n[7],e[2]=r*n[2]+o*n[5]+i*n[8],e}function A(e,t,n){return O(e,t,n[0],n[1],n[2],n[3])}function O(e,t,n,r,o,i){const s=t[0],u=t[1],a=t[2],c=r*a-o*u,l=o*s-n*a,f=n*u-r*s,m=r*f-o*l,h=o*c-n*f,p=n*l-r*c,g=2*i;return e[0]=s+c*g+2*m,e[1]=u+l*g+2*h,e[2]=a+f*g+2*p,e}function E(e,t){S(R,e),S(G,t);const n=_(R,G);return n>1?0:n<-1?Math.PI:Math.acos(n)}const R=(0,r.vt)(),G=(0,r.vt)();function q(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function T(e,t){if(e===t)return!0;const n=e[0],r=e[1],i=e[2],s=t[0],u=t[1],a=t[2],c=(0,o.FD)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-a)<=c*Math.max(1,Math.abs(i),Math.abs(a))}function C(e,t,n){const r=n[0]-t[0],o=n[1]-t[1],i=n[2]-t[2];let s=r*r+o*o+i*i;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=o*s,e[2]=i*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const j=c,B=l,J=f,k=v,Y=P,L=i,z=M;Object.freeze(Object.defineProperty({__proto__:null,abs:m,add:a,angle:E,bezier:function(e,t,n,r,o,i){const s=1-i,u=s*s,a=i*i,c=u*s,l=3*i*u,f=3*a*s,m=a*i;return e[0]=t[0]*c+n[0]*l+r[0]*f+o[0]*m,e[1]=t[1]*c+n[1]*l+r[1]*f+o[1]*m,e[2]=t[2]*c+n[2]*l+r[2]*f+o[2]*m,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:w,crossAndNormalize:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=n[0],u=n[1],a=n[2],c=o*a-i*u,l=i*s-r*a,f=r*u-o*s,m=Math.sqrt(c*c+l*l+f*f);return e[0]=c/m,e[1]=l/m,e[2]=f/m,e},direction:C,dist:k,distance:v,div:J,divide:f,dot:_,equals:T,exactEquals:q,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,o,i){const s=i*i,u=s*(2*i-3)+1,a=s*(i-2)+i,c=s*(i-1),l=s*(3-2*i);return e[0]=t[0]*u+n[0]*a+r[0]*c+o[0]*l,e[1]=t[1]*u+n[1]*a+r[1]*c+o[1]*l,e[2]=t[2]*u+n[2]*a+r[2]*c+o[2]*l,e},inverse:D,len:L,length:i,lerp:x,max:g,min:p,mul:B,multiply:l,negate:N,normalize:S,random:function(e,t=1){const n=o.Ov,r=2*n()*Math.PI,i=2*n()-1,s=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=i*t,e},rotateX:function(e,t,n,r){const o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateY:function(e,t,n,r){const o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateZ:function(e,t,n,r){const o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:d,scaleAndAdd:y,set:u,sign:h,sqrDist:Y,sqrLen:z,squaredDistance:P,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:j,subtract:c,transformMat3:b,transformMat4:I,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:A,transformQuatValues:O},Symbol.toStringTag,{value:"Module"})),n.d(t,["Il",0,L,"jb",0,j,"lo",0,Y,"uE",0,z,"xg",0,k])},69397(e,t,n){n.d(t,{Qf:()=>u,Qh:()=>i,lM:()=>o});var r=n(34275);function o(e){if(!e)return 0;let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=s(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return a(e,8);let n=l;for(let r=0;r<t;r++)n+=s(e[r]);return n}(e);let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=s(e[n]));return t}function s(e,t=!0){switch(typeof e){case"object":return t?i(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?a(t,16):0:0),0)}function a(e,t){return l+e.length*t}const c=32,l=16,f=145},29716(e,t,n){n.d(t,{Hh:()=>s,fz:()=>a,g7:()=>u,s1:()=>i});var r=n(83290);let o;function i(){return!!o&&(0,r.i)()}async function s(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(2024),n.e(2764)]).then(n.bind(n,12764)),Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticDistance,t(r.p)}}function u(e,t,n,r){return o.execute(e,t,n,r,null)}function a(){return o.supportsCurves()}},159(e,t,n){n.d(t,{A:()=>c});var r,o=n(5482),i=n(69540),s=n(25482),u=n(91429),a=n(99157);let c=r=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,o.Cg)([(0,u.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],c.prototype,"steps",void 0),c=r=(0,o.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformation")],c)},99157(e,t,n){n.d(t,{A:()=>a});var r,o=n(5482),i=n(69540),s=n(25482),u=n(91429);let a=r=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,o.Cg)([(0,u.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],a.prototype,"isInverse",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=r=(0,o.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>o});var r=n(49208);function o(e,t,n,o,i,s,u=Math.floor(e.length/3)){const a=(0,r.jd)(t,i);if(null==a)return!1;if(a===r.pO){if(e===o&&n===s)return!0;const t=n+3*u;for(let r=n,i=s;r<t;r++,i++)o[i]=e[r]??0;return!0}const c=n+3*u;for(let t=n,r=s;t<c;t+=3,r+=3)a(e,t,o,r);return!0}},65806(e,t,n){n.d(t,{g:()=>s});var r=n(51850),o=n(91218),i=n(9762);function s(e,t,n,r){if((0,o.canProjectWithoutEngine)(e.spatialReference,n))return u[0]=e.x,u[1]=e.y,u[2]=e.z??0,(0,i.projectBuffer)(u,e.spatialReference,0,t,n,0);const s=(0,o.tryProject)(e,n,r);return!!s&&(t[0]=s.x,t[1]=s.y,t[2]=s.z??0,!0)}const u=(0,r.vt)()},27993(e,t,n){n.d(t,{F:()=>u});var r=n(91218),o=n(16930),i=n(9762),s=n(65806);function u(e,t,n,o){return!(null==t||null==o||e.length<2)&&((0,r.canProjectWithoutEngine)(t,o)?(0,i.projectBuffer)(e,t,0,n,o,0,1):(a.x=e[0],a.y=e[1],a.z=e[2],a.spatialReference=t,(0,s.g)(a,n,o)))}const a={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},49208(e,t,n){n.d(t,{Tp:()=>f,jd:()=>l,pO:()=>h});var r=n(34727),o=n(86211),i=n(73941),s=n(79258),u=n(34403),a=n(21325);const c={2:{5:h,7:null,9:null,10:h,1:N,6:null,8:null,0:null,3:g,11:d,2:h,4:x},5:{5:h,7:null,9:null,10:h,1:N,6:null,8:null,0:null,3:g,11:d,2:h,4:x},7:{5:null,7:h,9:null,10:h,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:P,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:function(e,t,n,r){const o=e[t]/R,i=E-2*Math.atan(Math.exp(-e[t+1]/R)),s=R+(e[t+2]??0),u=Math.cos(i)*s;n[r]=Math.cos(o)*u,n[r+1]=Math.sin(o)*u,n[r+2]=Math.sin(i)*s},6:null,8:null,0:null,3:h,11:function(e,t,n,r){p(e,t,n,r),d(n,r,n,r)},2:p,4:function(e,t,n,r){p(e,t,n,r),x(n,r,n,r)}},4:{5:I,7:null,9:null,10:I,1:function(e,t,n,r){I(e,t,n,r),N(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){I(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){I(e,t,n,r),d(n,r,n,r)},2:I,4:h},1:{5:w,7:null,9:null,10:w,1:h,6:null,8:null,0:null,3:function(e,t,n,r){w(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){w(e,t,n,r),d(n,r,n,r)},2:w,4:function(e,t,n,r){w(e,t,n,r),x(n,r,n,r)}},6:{5:null,7:_,9:null,10:_,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:h,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:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:N,6:M,8:P,0:null,3:g,11:d,2:h,4:x},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){y(e,t,n,r),N(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){y(e,t,n,r),g(n,r,n,r)},11:h,2:y,4:function(e,t,n,r){y(e,t,n,r),x(n,r,n,r)}}};function l(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(b.source.spatialReference===e&&b.dest.spatialReference===t)return b;const n=m(e,b.source),r=m(t,b.dest);return 0===n&&0===r?(0,a.aI)(e,t)?b.projector=h:b.projector=null:b.projector=c[n][r],b}function m(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,o.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,i.q8)(e)?t.spatialReferenceId=7:(0,i.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function h(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function p(e,t,n,r){n[r]=O*(e[t]/R),n[r+1]=O*(E-2*Math.atan(Math.exp(-e[t+1]/R))),n[r+2]=e[t+2]??0}function g(e,t,n,o){!function(e,t,n,o,i){const s=.4999999*Math.PI,u=(0,r.qE)(A*e[t+1],-s,s),a=Math.sin(u);n[o++]=A*e[t]*i.radius,n[o++]=i.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[o]=e[t+2]??0}(e,t,n,o,s.$O)}function d(e,t,n,r){n[r]=e[t]*G,n[r+1]=e[t+1]*G,n[r+2]=e[t+2]??0}function y(e,t,n,r){n[r]=e[t]*q,n[r+1]=e[t+1]*q,n[r+2]=e[t+2]??0}function v(e,t,n,r,o){const i=o+(e[t+2]??0),s=A*e[t],u=A*e[t+1],a=Math.cos(u)*i;n[r]=Math.cos(s)*a,n[r+1]=Math.sin(s)*a,n[r+2]=Math.sin(u)*i}function P(e,t,n,r){v(e,t,n,r,s.Sw.radius)}function M(e,t,n,r){v(e,t,n,r,s.sH.radius)}function N(e,t,n,r){v(e,t,n,r,s.$O.radius)}function D(e,t,n,o,i){const s=e[t],u=e[t+1],a=e[t+2]??0,c=Math.sqrt(s*s+u*u+a*a),l=(0,r.YN)(a/(0===c?1:c)),f=Math.atan2(u,s);n[o++]=O*f,n[o++]=O*l,n[o]=c-i}function S(e,t,n,r){D(e,t,n,r,s.Sw.radius)}function _(e,t,n,r){D(e,t,n,r,s.sH.radius)}function w(e,t,n,r){D(e,t,n,r,s.$O.radius)}function x(e,t,n,r){!function(e,t,n,r,o){const i=A*e[t],s=A*e[t+1],u=e[t+2]??0,a=Math.sin(s),c=Math.cos(s),l=o.radius/Math.sqrt(1-o.eccentricitySquared*a*a);n[r++]=(l+u)*c*Math.cos(i),n[r++]=(l+u)*c*Math.sin(i),n[r++]=(l*(1-o.eccentricitySquared)+u)*a}(e,t,n,r,s.$O)}function I(e,t,n,r){const o=u.TP,i=e[t],a=e[t+1],c=e[t+2]??0;let l,f,m,h,p,g,d,y,v,P,M,N,D,S,_,w,x,I,b,A,E;l=Math.abs(c),f=i*i+a*a,m=Math.sqrt(f),h=f+c*c,p=Math.sqrt(h),A=Math.atan2(a,i),g=c*c/h,d=f/h,S=o.a2/p,_=o.a3-o.a4/p,d>.3?(y=l/p*(1+d*(o.a1+S+g*_)/p),b=Math.asin(y),P=y*y,v=Math.sqrt(1-P)):(v=m/p*(1-g*(o.a5-S-d*_)/p),b=Math.acos(v),P=1-v*v,y=Math.sqrt(P)),M=1-s.$O.eccentricitySquared*P,N=s.$O.radius/Math.sqrt(M),D=o.a6*N,S=m-N*v,_=l-D*y,x=v*S+y*_,w=v*_-y*S,I=w/(D/M+x),b+=I,E=x+w*I/2,c<0&&(b=-b),n[r++]=O*A,n[r++]=O*b,n[r]=E}const b={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},A=(0,r.kU)(1),O=(0,r.KJ)(1),E=.5*Math.PI,R=s.$O.radius,G=R*Math.PI/180,q=180/(R*Math.PI);n.d(t,["w5",0,c])},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>X,initializeProjection:()=>U,isEqualBaseGCS:()=>W,isLoaded:()=>R,isLoadedOrLoad:()=>G,isLoadedOrLoadFor:()=>q,load:()=>C,project:()=>j,projectAsync:()=>F,projectExtent:()=>oe,projectMany:()=>B,projectMultipoint:()=>Q,projectOrLoad:()=>k,projectOrLoadMany:()=>Y,projectPoint:()=>$,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>K,requiresLoad:()=>T,test:()=>Z,tryProject:()=>J,unload:()=>z});var r=n(49186),o=n(17676),i=n(62788),s=n(95488),u=n(51850),a=n(21276),c=n(73941),l=n(5443),f=n(91075),m=n(48526),h=n(86738),p=n(39829),g=n(82799),d=n(16930),y=n(98764),v=n(159),P=n(9762),M=n(49208);function N(e,t,n,r,o,i){return D[0]=e,D[1]=t,D[2]=n,(0,P.projectBuffer)(D,r,0,o,i,0)}const D=(0,u.vt)();var S=n(60408),_=n(21325),w=n(52006);let x=null,I=null,b=null,A=null,O={};const E=new s.I;function R(){return!!(I?.isLoaded()&&b?.isLoaded()&&A?.isLoaded())}function G(){return!!R()||((0,i.gc)(E),C(),!1)}function q(e,t){return!e||!t||X(e,t)||G()}function T(e,t){return!X(e,t)&&!R()}async function C(e){null==x&&(x=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(I=e,I.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(b=e,b.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(A=e,A.load()))])),await x,(0,o.Te)(e),E.notify()}function j(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),B(e,e[0].spatialReference,t,n)):((0,a.f)(e),B([e],e.spatialReference,t,n)[0])}function B(e,t,n,r){if(null==t||null==n)return e;if(X(t,n,r))return e.map(e=>K(e,t,n));if(null==r?.geographicTransformation&&(0,c.jA)(t))return B(e.map(e=>K(e,t,d.A.WGS84)),d.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,c.jA)(n))return B(e,t,d.A.WGS84).map(e=>K(e,d.A.WGS84,n));if(!R())throw new L;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:A.getTransformation(t,n,r.areaOfInterestExtent)||new v.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let o=O[e];o||(o=A.getTransformation(t,n)||new v.A,O[e]=o),r={geographicTransformation:o,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof f.A?I.executeMany(e,n,r):b.executeMany(e,n,r)}function J(e,t,n){try{return j(e,t,n)}catch(e){return null}}function k(e,t){const n=Y([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function Y(e,t,n){if(!R())for(const n of e)if(null!=n&&!(0,_.aI)(n.spatialReference,t)&&(0,_.fn)(n.spatialReference)&&(0,_.fn)(t)&&!X(n.spatialReference,t))return(0,i.gc)(E),{pending:C(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,_.aI)(e.spatialReference,t)?e:(0,_.fn)(e.spatialReference)&&(0,_.fn)(t)?j(e,t,n):null)}}class L extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function z(){x=null,I=null,b=null,A=null,O={}}const Z={get loadPromise(){return x}};async function F(e,t,n){if((0,o.Te)(n),!e)return e;const r=Y(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,o.Te)(n),F(e,t,n);const i=r.geometries??[];return Array.isArray(e)?i:i[0]}function X(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,_.aI)(e,t)||(0,_.fn)(e)&&(0,_.fn)(t)&&!!(0,M.jd)(e,t))}function W(e,t){if((0,_.aI)(e,t))return!0;if(!(0,_.fn)(e)||!(0,_.fn)(t))return!1;const n=(0,_.oT)(e)||(0,_.K8)(e)||(0,_.x1)(e),r=(0,_.oT)(t)||(0,_.K8)(t)||(0,_.x1)(t);return n&&r}async function U(e,t,n,r){if(R())return(0,o.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:o}of e)if(t&&n&&!X(t,n,o))return C(r)}else if(e&&t&&!X(e,t,n))return C(r);return(0,o.NO)(r)}function K(e,t,n){return e?(0,S.fT)(e)?V(e,t,new h.A,n,0):(0,S.ZC)(e)?ie(e,t,new l.A,n,0):(0,S.Bi)(e)?re(e,t,new p.A,n,0):(0,S.Rg)(e)?te(e,t,new g.A,n,0):(0,S.U9)(e)?H(e,t,new m.A,n,0):null:null}function $(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=V(e,e.spatialReference,t,n,r)}function V(e,t,n,r,o){ce[0]=e.x,ce[1]=e.y;const i=e.z;return ce[2]=void 0!==i?i:o,(0,P.projectBuffer)(ce,t,0,ce,r,0)?(n.x=ce[0],n.y=ce[1],n.spatialReference=r,void 0!==i||(0,c.xP)(r)?(n.z=ce[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Q(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=H(e,e.spatialReference,t,n,r)}function H(e,t,n,r,o){const{points:i,hasZ:s,hasM:u}=e,a=[],c=i.length,l=[];for(const e of i)l.push(e[0],e[1],s?e[2]:o);if(!(0,P.projectBuffer)(l,t,0,l,r,0,c))return null;const f=ae(s,r);for(let e=0;e<c;++e){const t=3*e,n=l[t],r=l[t+1];f&&u?a.push([n,r,l[t+2],i[e][3]]):f?a.push([n,r,l[t+2]]):u?a.push([n,r,i[e][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=s,n.hasM=u,n}function ee(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,r)}function te(e,t,n,r,o){const{curvePaths:i,paths:s,hasZ:u,hasM:a}=e;if(!(i?ue(i,u??!1,a??!1,t,n.curvePaths=[],r,o):se(s,u??!1,a??!1,t,n.paths,r,o)))return null;const c=ae(u,r);return n.spatialReference=r,n.hasZ=c,n.hasM=a,n}function ne(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,r)}function re(e,t,n,r,o){const{curveRings:i,rings:s,hasZ:u,hasM:a}=e;return(i?ue(i,u??!1,a??!1,t,n.curveRings=[],r,o):se(s,u??!1,a??!1,t,n.rings,r,o))?(n.spatialReference=r,n.hasZ=ae(u,r),n.hasM=a,n):null}function oe(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,r)}function ie(e,t,n,r,o){const{xmin:i,ymin:s,xmax:u,ymax:a,hasZ:c,hasM:l}=e;if(!N(i,s,c?e.zmin:o,t,ce,r))return null;const f=ae(c,r);return n.xmin=ce[0],n.ymin=ce[1],f&&(n.zmin=ce[2]),N(u,a,c?e.zmax:o,t,ce,r)?(n.xmax=ce[0],n.ymax=ce[1],f&&(n.zmax=ce[2]),l&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function se(e,t,n,r,o,i,s=0){const u=new Array;for(const n of e)for(const e of n)u.push(e[0],e[1],t?e[2]:s);if(!(0,P.projectBuffer)(u,r,0,u,i,0))return!1;let a=0;o.length=0;const c=t?3:2,l=ae(t,i);for(const t of e){const e=new Array;for(const r of t){const t=u.slice(a,a+=3);l||t.pop(),n&&t.push(r[c]),e.push(t)}o.push(e)}return!0}function ue(e,t,n,r,o,i,s=0){const u=new Array;for(const n of e)for(const e of n){if((0,w.FG)(e))return!1;if((0,w.aO)(e)){const[n,r]=e.c;u.push(n[0],n[1],t?n[2]:s,r[0],r[1],s);continue}if((0,w.n1)(e)){const[n,r,o]=e.b;u.push(n[0],n[1],t?n[2]:s,r[0],r[1],s,o[0],o[1],s);continue}const n=e;u.push(n[0],n[1],t?n[2]:s)}if(!(0,P.projectBuffer)(u,r,0,u,i,0))return!1;let a=0;o.length=0;const c=t?3:2,l=ae(t,i);for(const t of e){const e=new Array;for(const r of t){const t=u.slice(a,a+=3);if(l||t.pop(),n&&t.push((0,w.yP)(r)[c]),(0,w.FG)(r))return!1;if((0,w.aO)(r)){const n=u[a++],r=u[a++];++a,e.push({c:[t,[n,r]]});continue}if((0,w.n1)(r)){const n=u[a++],r=u[a++];++a;const o=u[a++],i=u[a++];++a,e.push({b:[t,[n,r],[o,i]]});continue}e.push(t)}o.push(e)}return!0}function ae(e,t){return e||(0,c.xP)(t)||(0,_.aI)(t,y.Y0)}const ce=(0,u.vt)()},98764(e,t,n){n.d(t,{lO:()=>l});var r=n(73941),o=n(16930),i=n(21325);const s=new o.A(r.fv),u=new o.A(r.FY),a=new o.A(r.LJ),c=new o.A(r.Ro);function l(e){const t=f.get(e);if(t)return t;let n=s;if(e)if(e===u)n=u;else if(e===a)n=a;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,i.tl)(t)||(0,i.tl)(r)?n=u:((0,i.ZL)(t)||(0,i.ZL)(r))&&(n=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===m?n=u:e===h&&(n=a)}}}return f.set(e,n),n}const f=new Map,m=u.wkt.toUpperCase(),h=a.wkt.toUpperCase();n.d(t,["GD",0,s,"Y0",0,c])},34403(e,t,n){var r=n(79258);Math.PI;const o=r.$O.radius,i=r.$O.eccentricitySquared,s={a1:o*i,a2:o*i*o*i,a3:o*i*i/2,a4:o*i*o*i*2.5,a5:o*i+o*i*i/2,a6:1-i};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,n.d(t,["TP",0,s])},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function o(e){return void 0!==e.points}function i(e){return void 0!==e.x&&void 0!==e.y}function s(e){return void 0!==e.paths||void 0!==e.curvePaths}function u(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function c(e){return e?i(e)?"esriGeometryPoint":s(e)?"esriGeometryPolyline":u(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":o(e)?"esriGeometryMultipoint":null:null}function l(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function f(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>c,Bi:()=>u,Pv:()=>l,Rg:()=>s,U9:()=>o,W0:()=>f,ZC:()=>r,fT:()=>i,uW:()=>a})},65864(e,t,n){n.d(t,{rS:()=>l,xD:()=>m});var r=n(5443),o=n(91075),i=n(48526),s=n(86738),u=n(39829),a=n(82799),c=n(60408);function l(e){return null==e?null:e instanceof o.A?e:(0,c.fT)(e)?s.A.fromJSON(e):(0,c.Rg)(e)?a.A.fromJSON(e):(0,c.Bi)(e)?u.A.fromJSON(e):(0,c.U9)(e)?i.A.fromJSON(e):(0,c.ZC)(e)?r.A.fromJSON(e):null}const f={esriGeometryPoint:s.A,esriGeometryPolyline:a.A,esriGeometryPolygon:u.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:i.A,esriGeometryMultiPatch:u.A};function m(e){return e&&f[e]||null}},55912(e,t,n){n.r(t),n.d(t,{area2D:()=>B,areaHorizontal:()=>U,autoArea2D:()=>z,autoDistance2DBetweenPoints:()=>F,autoLength2D:()=>Z,autoSize2D:()=>X,distance2DBetweenPoints:()=>L,geodeticArea:()=>O,geodeticDistanceBetweenPoints:()=>C,geodeticDistanceBetweenPointsMany:()=>j,geodeticLength:()=>T,length2D:()=>Y,preloadGeodetic:()=>E,simplify:()=>K});var r=n(17799),o=n(86211),i=n(35522),s=n(51850),u=n(73941),a=n(48526),c=n(86738),l=n(39829),f=n(82799),m=n(91218),h=n(16930),p=n(98764),g=n(65708),d=n(48265),y=n(16346),v=n(49590),P=n(21260),M=n(39663),N=n(7817),D=n(10222),S=n(27993);function _(e,t,n,r,o){(0,i.C)(w,e),(0,i.WQ)(x,e,t),(0,S.F)(w,n,w,o),(0,S.F)(x,n,x,o),(0,i.Re)(r,x,w),(0,i.S8)(r,r)}const w=(0,s.vt)(),x=(0,s.vt)();var I=n(65864),b=n(21325),A=n(32728);async function O({geometryJSON:e,options:t}){await Promise.allSettled([(0,v.l)(),t?.returnLength?(0,M.l)():void 0]);const n=R(e,t),i=t?.unit??"square-meters",s=(0,D.e)(n)??n,u=(0,v.e)(s,{unit:i,...t}),a=(0,r.gT)(u,i),c=t?.lengthUnit??(0,o.Bd)(i);return{area:a,centroid:t?.returnCentroid?G(s).toJSON():void 0,length:t?.returnLength?await q(s,{unit:c}):void 0}}function E(){(0,v.l)(),(0,M.l)(),(0,P.l)()}function R(e,t){const n="rings"in e?l.A.fromJSON(e):f.A.fromJSON(e);if(t?.stagedPoint){const e=c.A.fromJSON(t.stagedPoint),r=("rings"in n?n.rings:n.paths).at(-1);if(r){const{x:t,y:o,z:i,m:s}=e,u=n.hasZ&&n.hasM?[t,o,i??0,s??0]:n.hasZ?[t,o,i??0]:n.hasM?[t,o,s??0]:[t,o];r.push(u)}}return n}function G(e){return(0,d.e)(e)}async function q(e,t){await(0,M.l)();const n=t?.unit??"meters";return(0,r.d_)((0,M.e)(e,{...t,unit:n}),n)}function T({geometryJSON:e,options:t}){return q(R(e,t),t)}async function C({geometry1JSON:e,geometry2JSON:t,options:n}){await(0,P.l)();const o=c.A.fromJSON(e),i=c.A.fromJSON(t),s=n?.unit??"meters";return(0,r.d_)((0,P.e)(o,i,{...n,unit:s}),s)}async function j({geometry1JSON:e,geometry2JSON:t,options:n}){await(0,P.l)();const o=a.A.fromJSON(e),i=a.A.fromJSON(t);if(o.points.length!==i.points.length)throw new Error("Input multipoints must have the same number of points.");const s=o.points.length,u=n?.unit??"meters",c=[],l={...n,unit:u};for(let e=0;e<s;e++){const t=o.getPoint(e),n=i.getPoint(e);c.push(null!=t&&null!=n?(0,r.d_)((0,P.e)(t,n,l),u):null)}return c}function B({geometryJSON:e,options:t}){return J(R(e,t),t)}function J(e,t){const n=t?.unit??"square-meters",i=t?.lengthUnit??(0,o.Bd)(n),s=(0,D.e)(e)??e,u=(0,g.e)(s,{unit:n,...t});return{area:(0,r.gT)(u,n),centroid:t?.returnCentroid?G(s).toJSON():void 0,length:t?.returnLength?k(s,{unit:i}):void 0}}function k(e,t){const n=t?.unit??"meters";return(0,r.d_)((0,N.e)(e,{...t,unit:n}),n)}function Y({geometryJSON:e,options:t}){return k(R(e,t),t)}function L({geometry1JSON:e,geometry2JSON:t,options:n}){const o=c.A.fromJSON(e),i=c.A.fromJSON(t),s=n?.unit??"meters";return(0,r.d_)((0,y.e)(o,i,{...n,unit:s}),s)}async function z(e){return W(e.geometryJSON.spatialReference,O,B)(e)}async function Z(e){return W(e.geometryJSON.spatialReference,T,Y)(e)}async function F(e){return W(e.geometry1JSON.spatialReference,C,L)(e)}async function X(e){const t=W(e.topLeftJSON.spatialReference,C,L),{topLeftJSON:n,topRightJSON:o,bottomRightJSON:i,bottomLeftJSON:s,options:u}=e,[a,c,l,f]=await Promise.all([t({geometry1JSON:s,geometry2JSON:i,options:u}),t({geometry1JSON:n,geometry2JSON:o,options:u}),t({geometry1JSON:i,geometry2JSON:o,options:u}),t({geometry1JSON:s,geometry2JSON:n,options:u})]);return{width:(0,r.T9)(a,c),height:(0,r.T9)(f,l)}}function W(e,t,n){switch(r=e,(0,b.EA)(r)||(0,b.K8)(r)?0:1){case 0:return t;case 1:return n}var r}function U(e){const{geometryJSON:t}=e,n=function(e){return e?(0,u.B3)(e)?(0,b.oT)(e)||(0,b.K8)(e)||(0,b.x1)(e)||(0,u.jA)(e)||(0,b.aI)(e,p.Y0)?{mode:1,spatialReference:p.Y0}:{mode:0,spatialReference:e}:{mode:1,spatialReference:(0,p.lO)(e)}:null}(t.spatialReference);if(!n)throw new Error("Cannot compute horizontal area without a valid spatial reference.");switch(n.mode){case 0:return B(e);case 1:return function(e,{geometryJSON:t,options:n}){const r=R(t,n),o=ee,i=Q,s=H,u=(0,b.aI)(r.spatialReference,e.spatialReference)?r.clone():(0,m.projectWithoutEngine)(r,r.spatialReference,e.spatialReference);if(!u)throw new Error(`Cannot project geometry from ${r.spatialReference?.wkid??"unknown"} to ${e.spatialReference.wkid}.`);V(u,o,i,s);const{area:a,centroid:c,length:l}=J(u,n);return{area:a,centroid:$(c,o,i,s,e.spatialReference,r.spatialReference),length:l}}(n,e)}}function K({geometryJSON:e}){const t=(0,I.rS)(e);if(!t)return null;const n=(0,D.e)(t);return n?n.toJSON():null}function $(e,t,n,r,o,s){if(!e)return e;(0,i.hs)(n,n,e.x),(0,i.hs)(r,r,e.y);const u=te;return(0,i.WQ)(u,n,r),(0,i.WQ)(u,u,t),e.x=u[0],e.y=u[1],e.z=u[2],e.spatialReference=o,(0,m.projectWithoutEngine)(e,e.spatialReference,s)?.toJSON()??void 0}function V(e,t,n,r){let o=0;(0,i.hZ)(t,0,0,0);for(const n of e.rings)for(const e of n)t[0]+=e[0],t[1]+=e[1],t[2]+=e[2],o++;(0,i.hs)(t,t,1/o);const s=ne;(0,i.S8)(s,t);const u=re,a=Math.atan2(s[1],s[0]);(0,i.hZ)(u,-Math.sin(a),Math.cos(a),0),(0,b.aI)(e.spatialReference,p.Y0)&&(_(t,s,p.GD,s,e.spatialReference),_(t,u,p.GD,u,e.spatialReference)),(0,A.YH)(u,s,n),(0,i.$A)(r,n,s);const c=te;for(const o of e.rings)for(const e of o){(0,i.hZ)(c,e[0],e[1],e[2]),(0,i.Re)(c,c,t);const o=(0,i.Om)(n,c),s=(0,i.Om)(r,c);e[0]=o,e[1]=s}e.hasZ=!1,e.spatialReference=h.A.WebMercator}const Q=(0,s.vt)(),H=(0,s.vt)(),ee=(0,s.vt)(),te=(0,s.vt)(),ne=(0,s.vt)(),re=(0,s.vt)()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1698,5841],{24045(e,t,r){function n(e,t){const r=e.count;t||(t=new e.TypedArrayConstructor(r));for(let n=0;n<r;n++)t[n]=e.get(n);return t}r.d(t,{m:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,makeDense:n},Symbol.toStringTag,{value:"Module"}))},43609(e,t,r){r.d(t,{a:()=>s,f:()=>a,n:()=>o});var n=r(34275);function o(e,t){s(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r=2,o=r){const s=t.length/2;let a=0,i=0;if(!(0,n.iu)(t)||(0,n.dk)(t)){for(let n=0;n<s;++n)e[a]=t[i],e[a+1]=t[i+1],a+=r,i+=o;return}const u=(0,n.a3)(t);if((0,n.JI)(t))for(let n=0;n<s;++n)e[a]=Math.max(t[i]/u,-1),e[a+1]=Math.max(t[i+1]/u,-1),a+=r,i+=o;else for(let n=0;n<s;++n)e[a]=t[i]/u,e[a+1]=t[i+1]/u,a+=r,i+=o}function a(e,t,r,n){const o=e.typedBuffer,s=e.typedBufferStride,a=n?.count??e.count;let i=(n?.dstIndex??0)*s;for(let e=0;e<a;++e)o[i]=t,o[i+1]=r,i+=s}Object.freeze(Object.defineProperty({__proto__:null,fill:a,normalizeIntegerBuffer:s,normalizeIntegerBufferView:o},Symbol.toStringTag,{value:"Module"}))},46140(e,t,r){r.d(t,{A:()=>o});var n=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){const[r,s]=e.split("."),a=/^\s*\d+\s*$/;if(!r?.match||!a.test(r))throw new n.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s?.match||!a.test(s))throw new n.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const i=parseInt(r,10),u=parseInt(s,10);return new o(i,u,t)}}},35841(e,t,r){r.r(t),r.d(t,{loadGLTFMesh:()=>B});var n=r(68197),o=r(49186),s=r(91869),a=r(34727),i=r(77690),u=r(29242),l=r(51850),c=r(91829),f=r(16939),d=r(80882),p=r(35063),m=r(51147),h=r(1193),g=r(27615),y=r(13030),T=r(73354),w=r(50867),x=r(90239);Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,r){const n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride,i=r?r.count:t.count;let u=(r?.dstIndex??0)*o,l=(r?.srcIndex??0)*a;for(let e=0;e<i;++e){for(let e=0;e<9;++e)n[u+e]=s[l+e];u+=o,l+=a}}},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,r){const n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride,i=r?r.count:t.count;let u=(r?.dstIndex??0)*o,l=(r?.srcIndex??0)*a;for(let e=0;e<i;++e){for(let e=0;e<16;++e)n[u+e]=s[l+e];u+=o,l+=a}}},Symbol.toStringTag,{value:"Module"})),r(24045);var b=r(43609);function _(e,t,r=3,n=r){const o=t.length/n;let s=0,a=0;for(let i=0;i<o;++i)e[s]=t[a],e[s+1]=t[a+1],e[s+2]=t[a+2],s+=r,a+=n}function S(e,t,r,n,o){const s=e.typedBuffer,a=e.typedBufferStride,i=o?.count??e.count;let u=(o?.dstIndex??0)*a;for(let e=0;e<i;++e)s[u]=t,s[u+1]=r,s[u+2]=n,u+=a}function v(e,t,r=4){const n=t.typedBuffer,o=t.typedBufferStride,s=t.count;let a=0,i=0;for(let t=0;t<s;++t)e[a]=n[i],e[a+1]=n[i+1],e[a+2]=n[i+2],e[a+3]=n[i+3],a+=r,i+=o}function A(e,t,r,n,o,s){const a=e.typedBuffer,i=e.typedBufferStride,u=s?.count??e.count;let l=(s?.dstIndex??0)*i;for(let e=0;e<u;++e)a[l]=t,a[l+1]=r,a[l+2]=n,a[l+3]=o,l+=i}function O(e,t){return new e(new ArrayBuffer(t*e.ElementCount*(0,x.GJ)(e.ElementType)))}Object.freeze(Object.defineProperty({__proto__:null,copy:_,copyView:function(e,t){_(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)},fill:S},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:v,copyView:function(e,t){v(e.typedBuffer,t,e.typedBufferStride)},fill:A},Symbol.toStringTag,{value:"Module"}));var R=r(72258),C=r(21015),N=r(51698),E=r(84498),I=r(51530);async function B(e,t,r){const i=new C.R(r?.resolveFile),u=await(0,N.loadGLTF)(i,t,r),f=u.model,T=f.lods.shift(),w=new Map,x=new Map;f.textures.forEach((e,t)=>w.set(t,function(e){return new p.default({data:((0,I.x3)(e.data),e.data),wrap:D(e.parameters.wrap)})}(e))),f.materials.forEach((e,t)=>x.set(t,function(e,t){const r=new n.A(function(e,t){return(0,c.fA)(P(e[0]),P(e[1]),P(e[2]),t)}(e.color,e.opacity)),o=e.emissiveFactor?new n.A(function(e){return(0,l.fA)(P(e[0]),P(e[1]),P(e[2]))}(e.emissiveFactor)):null,s=e=>e?new m.A({scale:e.scale?[e.scale[0],e.scale[1]]:[1,1],rotation:(0,a.KJ)(e.rotation??0),offset:e.offset?[e.offset[0],e.offset[1]]:[0,0]}):null;return new d.A({color:r,colorTexture:t.get(e.colorTexture),normalTexture:t.get(e.normalTexture),emissiveColor:o,emissiveStrength:e.emissiveStrengthKHR,emissiveTexture:t.get(e.emissiveTexture),occlusionTexture:t.get(e.occlusionTexture),alphaMode:U(e.alphaMode),alphaCutoff:e.alphaCutoff,doubleSided:e.doubleSided,metallic:e.metallicFactor,roughness:e.roughnessFactor,metallicRoughnessTexture:t.get(e.metallicRoughnessTexture),colorTextureTransform:s(e.colorTextureTransform),normalTextureTransform:s(e.normalTextureTransform),occlusionTextureTransform:s(e.occlusionTextureTransform),emissiveTextureTransform:s(e.emissiveTextureTransform),metallicRoughnessTextureTransform:s(e.metallicRoughnessTextureTransform),unlit:e.unlit})}(e,w)));const b=function(e){let t=0;const r={color:!1,tangent:!1,normal:!1,texCoord0:!1},n=new Map,o=new Map,a=[];for(const i of e.parts){const{position:e,normal:u,color:l,tangent:c,texCoord0:f}=i.attributes,d=`\n ${L(e,n)}/\n ${L(u,n)}/\n ${L(l,n)}/\n ${L(c,n)}/\n ${L(f,n)}/\n ${M(i.transform)}\n `;let p=!1;const m=(0,s.tE)(o,d,()=>(p=!0,{start:t,length:e.count}));p&&(t+=e.count),u&&(r.normal=!0),l&&(r.color=!0),c&&(r.tangent=!0),f&&(r.texCoord0=!0),a.push({gltf:i,writeVertices:p,region:m})}return{vertexAttributes:{position:O(y.Xm,t),normal:r.normal?O(y.xs,t):null,tangent:r.tangent?O(y.Eq,t):null,color:r.color?O(y.XP,t):null,texCoord0:r.texCoord0?O(y.gH,t):null},parts:a,components:[]}}(T);for(const e of b.parts)F(b,e,x);const{position:_,normal:S,tangent:v,color:A,texCoord0:E}=b.vertexAttributes,B=(0,g.TE)(e,r),j=e.spatialReference.isGeographic?(0,g.TE)(e):B,G=(0,R.UR)({vertexAttributes:{position:_.typedBuffer,normal:S?.typedBuffer,tangent:v?.typedBuffer},vertexSpace:j,spatialReference:e.spatialReference},B,{allowBufferReuse:!0,sourceUnit:r?.unitConversionDisabled?void 0:"meters"});if(!G)throw new o.A("load-gltf-mesh:vertex-space-projection",`Failed to load mesh from glTF because we could not convert the vertex space from ${j.type} to ${B.type}`);return{mesh:{transform:null,vertexSpace:B,components:b.components,spatialReference:e.spatialReference,vertexAttributes:new h.default({...G,color:A?.typedBuffer,uv:E?.typedBuffer})},meta:u.meta}}function L(e,t){if(null==e)return"-";const r=e.typedBuffer;return`${(0,s.tE)(t,r.buffer,()=>t.size)}/${r.byteOffset}/${r.byteLength}`}function M(e){return null!=e?e.toString():"-"}function F(e,t,r){t.writeVertices&&function(e,t){const{position:r,normal:n,tangent:o,color:s,texCoord0:l}=e.vertexAttributes,c=t.region.start,{attributes:f,transform:d}=t.gltf,p=f.position.count;if((0,T.c)(r.slice(c,p),f.position,d),null!=f.normal&&null!=n){const e=(0,i.Ge)((0,u.vt)(),d),t=n.slice(c,p);(0,T.d)(t,f.normal,e),(0,a.or)(e)&&(0,T.e)(t,t)}else null!=n&&S(n,0,0,1,{dstIndex:c,count:p});if(null!=f.tangent&&null!=o){const e=(0,i.z0)((0,u.vt)(),d),t=o.slice(c,p);(0,w.a)(t,f.tangent,e),(0,a.or)(e)&&(0,w.n)(t,t)}else null!=o&&A(o,0,0,1,1,{dstIndex:c,count:p});if(null!=f.texCoord0&&null!=l?(0,b.n)(l.slice(c,p),f.texCoord0):null!=l&&(0,b.f)(l,0,0,{dstIndex:c,count:p}),null!=f.color&&null!=s){const e=f.color,t=s.slice(c,p);if(4===e.elementCount)e instanceof y.Eq?(0,w.l)(t,e,1,255):(e instanceof y.XP||e instanceof y.Uz)&&(0,w.l)(t,e,1/255,255);else{A(t,255,255,255,255);const r=y.eI.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof y.xs?(0,T.l)(r,e,1,255):(e instanceof y.eI||e instanceof y.nS)&&(0,T.l)(r,e,1/255,255)}}else null!=s&&A(s.slice(c,p),255,255,255,255)}(e,t);const{indices:n,attributes:o,primitiveType:s,material:l}=t.gltf;let c=(0,E.x)(n||o.position.count,s);const d=t.region.start;if(d){const e=new Uint32Array(c);for(let t=0;t<c.length;t++)e[t]+=d;c=e}e.components.push(new f.default({name:t.gltf.name,faces:c,material:r.get(l),shading:o.normal?"source":"flat",trustSourceNormals:!0}))}function U(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function D(e){return{horizontal:j(e.s),vertical:j(e.t)}}function j(e){switch(e){case 33071:return"clamp";case 33648:return"mirror";case 10497:return"repeat"}}function P(e){return e**(1/2.2)*255}},21015(e,t,r){r.d(t,{R:()=>u});var n=r(11254),o=r(60999),s=r(49186),a=r(17676),i=r(84952);class u{constructor(e=e=>e){this._resolveURI=e}async loadJSON(e,t){return this._load("json",e,t)}async loadBinary(e,t){return(0,i.DB)(e)?((0,a.Te)(t),(0,i.lJ)(e)):this._load("array-buffer",e,t)}async loadImage(e,t){return this._load("image",e,t)}async _load(e,t,r){t=this._resolveURI(t);const i=await(0,o.Ke)((0,n.A)(t,{responseType:e,...r}));if(i.ok)return i.value.data;throw(0,a.QP)(i.error),new s.A("gltf-loader-request-error",`Request for resource failed: ${i.error}`)}}},84498(e,t,r){r.d(t,{x:()=>a});var n=r(34275),o=r(97146),s=r(63907);function a(e,t){switch(t){case s.WR.TRIANGLES:return function(e){return"number"==typeof e?(0,o.tM)(e):(0,n.mg)(e)?new Uint16Array(e):e}(e);case s.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,n=(0,o.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)o%2==0?(n[t++]=e[o],n[t++]=e[o+1],n[t++]=e[o+2]):(n[t++]=e[o+1],n[t++]=e[o],n[t++]=e[o+2])}return n}(e);case s.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}const o=e[0];let s=e[1],a=0;for(let t=0;t<r;++t){const r=e[t+2];n[a++]=o,n[a++]=s,n[a++]=r,s=r}return n}(e)}}},51530(e,t,r){r.d(t,{KB:()=>a,Xi:()=>o,pn:()=>i,x3:()=>s});var n=r(44208);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding="image/ktx2"}}function s(e){return"encoded-mesh-texture"===e?.type}async function a(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function i(e,t){if("image/ktx2"===t)return new o(e);const r=new Blob([e],{type:t});let s=URL.createObjectURL(r);switch(t){case"image/jpeg":s+="#.jpg";break;case"image/png":s+="#.png"}const a=new Image;if((0,n.A)("esri-iPhone"))return new Promise((e,t)=>{const r=()=>{o(),e(a)},n=e=>{o(),t(e)},o=()=>{URL.revokeObjectURL(s),a.removeEventListener("load",r),a.removeEventListener("error",n)};a.addEventListener("load",r),a.addEventListener("error",n),a.src=s});try{a.src=s,await a.decode()}catch{}return URL.revokeObjectURL(s),a}},51698(e,t,r){r.d(t,{loadGLTF:()=>P});var n=r(53966),o=r(93637),s=r(9093),a=r(49186),i=r(91869),u=r(17676),l=r(84952),c=r(46140),f=r(58083),d=r(67026),p=r(82534),m=r(13030),h=r(24045),g=r(2741);let y;function T(){return y??=(async()=>{const{default:e}=await r.e(2423).then(r.bind(r,2423));return await e({locateFile:e=>(0,g.s)(`esri/libs/dracoMeshDecoder/${e}`)})})(),y}class w{constructor(e){this._data=e,this._offset4=0,this._dataUint32=new Uint32Array(this._data,0,Math.floor(this._data.byteLength/4))}readUint32(){const e=this._offset4;return this._offset4+=1,this._dataUint32[e]}readUint8Array(e){const t=4*this._offset4;return this._offset4+=e/4,new Uint8Array(this._data,t,e)}remainingBytes(){return this._data.byteLength-4*this._offset4}}const x={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},b={pbrMetallicRoughness:x,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},_={ESRI_externalColorMixMode:"tint",ESRI_receiveShadows:!0,ESRI_receiveAmbientOcclusion:!0},S=(e={})=>{const t={...x,...e.pbrMetallicRoughness},r=function(e){switch(e.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:e.ESRI_externalColorMixMode,e.ESRI_externalColorMixMode="tint"}return e}({..._,...e.extras});return{...b,...e,pbrMetallicRoughness:t,extras:r}},v={magFilter:9729,minFilter:9987,wrapS:10497,wrapT:10497};var A=r(51530),O=r(63907);const R=1179937895;class C{constructor(e,t,r,n){if(this._context=e,this.uri=t,this.json=r,this._glbBuffer=n,this._bufferLoaders=new Map,this._textureLoaders=new Map,this._dracoBuffersSize=0,this._textureCache=new Map,this._materialCache=new Map,this._nodeParentMap=new Map,this._nodeTransformCache=new Map,this._supportedExtensions=["KHR_texture_basisu","KHR_texture_transform","KHR_draco_mesh_compression","KHR_materials_emissive_strength","KHR_materials_unlit"],this._baseUri=function(e){let t,r;return e.replace(/^(.*\/)?([^/]*)$/,(e,n,o)=>(t=n||"",r=o||"","")),{dirPart:t,filePart:r}}(this.uri).dirPart,this._checkVersionSupported(),this._checkRequiredExtensionsSupported(),null==r.scenes)throw new a.A("gltf-loader-unsupported-feature","Scenes must be defined.");if(null==r.meshes)throw new a.A("gltf-loader-unsupported-feature","Meshes must be defined");if(null==r.nodes)throw new a.A("gltf-loader-unsupported-feature","Nodes must be defined.");this._computeNodeParents()}static async load(e,t,r){if((0,l.DB)(t)){const r=(0,l.r$)(t);if(r&&"model/gltf-binary"!==r.mediaType)try{const n=JSON.parse(r.isBase64?atob(r.data):r.data);return new C(e,t,n)}catch{}const n=(0,l.lJ)(t);if(C._isGLBData(n))return this._fromGLBData(e,t,n)}if(U.test(t)||"gltf"===r?.expectedType){const n=await e.loadJSON(t,r);return new C(e,t,n)}const n=await e.loadBinary(t,r);if(C._isGLBData(n))return this._fromGLBData(e,t,n);if(D.test(t)||"glb"===r?.expectedType)throw new a.A("gltf-loader-invalid-glb","This is not a valid glb file.");const o=await e.loadJSON(t,r);return new C(e,t,o)}static _isGLBData(e){if(null==e)return!1;const t=new w(e);return t.remainingBytes()>=4&&t.readUint32()===R}static async _fromGLBData(e,t,r){const n=await C._parseGLBData(r);return new C(e,t,n.json,n.binaryData)}static async _parseGLBData(e){const t=new w(e);if(t.remainingBytes()<12)throw new a.A("gltf-loader-error","glb binary data is insufficiently large.");const r=t.readUint32(),o=t.readUint32(),s=t.readUint32();if(r!==R)throw new a.A("gltf-loader-error","Magic first 4 bytes do not fit to expected glb value.");if(e.byteLength<s)throw new a.A("gltf-loader-error","glb binary data is smaller than header specifies.");if(2!==o)throw new a.A("gltf-loader-unsupported-feature","An unsupported glb container version was detected. Only version 2 is supported.");let i,u,l=0;for(;t.remainingBytes()>=8;){const e=t.readUint32(),r=t.readUint32();if(0===l){if(1313821514!==r)throw new a.A("gltf-loader-error","First glb chunk must be JSON.");if(e<0)throw new a.A("gltf-loader-error","No JSON data found.");i=await(0,A.KB)(t.readUint8Array(e))}else if(1===l){if(5130562!==r)throw new a.A("gltf-loader-unsupported-feature","Second glb chunk expected to be BIN.");u=t.readUint8Array(e)}else n.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] More than 2 glb chunks detected. Skipping.");l+=1}if(!i)throw new a.A("gltf-loader-error","No glb JSON chunk detected.");return{json:i,binaryData:u}}async getBuffer(e,t){const r=this.json.buffers[e];if(null==r.uri){if(null==this._glbBuffer)throw new a.A("gltf-loader-error","glb buffer not present");return this._glbBuffer}const n=await this._getBufferLoader(e,t);if(n.byteLength!==r.byteLength)throw new a.A("gltf-loader-error","Buffer byte lengths should match.");return n}async _getBufferLoader(e,t){const r=this._bufferLoaders.get(e);if(r)return r;const n=this.json.buffers[e].uri,o=this._context.loadBinary(this._resolveUri(n),t).then(e=>new Uint8Array(e));return this._bufferLoaders.set(e,o),o}_validateAccessor(e){if(!this.json.accessors)throw new a.A("gltf-loader-unsupported-feature","Accessors missing.");const t=this.json.accessors[e];if(t.type in["MAT2","MAT3","MAT4"])throw new a.A("gltf-loader-unsupported-feature",`AttributeType ${t.type} is not supported`);return t}_getComponentInfo(e,t){const r=B[e.type],n=t?.componentType||e.componentType,o=L[n];return{componentType:n,componentCount:r,componentByteSize:o,denseByteStride:r*o}}getDracoAccessor(e,t){const r=this._validateAccessor(e),n=t.accessorInfos.get(e),{componentType:o,componentCount:s,componentByteSize:a,denseByteStride:i}=this._getComponentInfo(r,n);return{raw:t.data.buffer,byteStride:i,byteOffset:t.data.byteOffset+(n?.byteOffset||0),entryCount:n?.count??r.count,isDenselyPacked:!0,componentCount:s,componentByteSize:a,componentType:o,min:r.min,max:r.max,normalized:!!r.normalized}}async getAccessor(e,t){const r=this._validateAccessor(e);if(null==r?.bufferView)throw new a.A("gltf-loader-unsupported-feature","Some accessor does not specify a bufferView.");const{componentCount:n,componentByteSize:o,denseByteStride:s}=this._getComponentInfo(r),i=this.json.bufferViews[r.bufferView],u=await this.getBuffer(i.buffer,t),l=i.byteStride||s;return{raw:u.buffer,byteStride:l,byteOffset:u.byteOffset+(i.byteOffset||0)+(r.byteOffset||0),entryCount:r.count,isDenselyPacked:l===s,componentCount:n,componentByteSize:o,componentType:r.componentType,min:r.min,max:r.max,normalized:!!r.normalized}}async getIndexData(e,t,r){if(null==e.indices)return;const n=e.indices,o=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(o.isDenselyPacked)switch(o.componentType){case O.pe.UNSIGNED_BYTE:return new Uint8Array(o.raw,o.byteOffset,o.entryCount);case O.pe.UNSIGNED_SHORT:return new Uint16Array(o.raw,o.byteOffset,o.entryCount);case O.pe.UNSIGNED_INT:return new Uint32Array(o.raw,o.byteOffset,o.entryCount)}else switch(o.componentType){case O.pe.UNSIGNED_BYTE:return(0,h.m)(M(m.SL,o));case O.pe.UNSIGNED_SHORT:return(0,h.m)(M(m.h,o));case O.pe.UNSIGNED_INT:return(0,h.m)(M(m.P,o))}}async getPositionData(e,t,r){if(null==e.attributes.POSITION)throw new a.A("gltf-loader-unsupported-feature","No POSITION vertex data found.");const n=e.attributes.POSITION,s=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(s.componentType!==O.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for POSITION vertex attribute, but found "+(0,o.i7)(O.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","POSITION vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return M(m.xs,s)}async getNormalData(e,t,r){if(null==e.attributes.NORMAL)throw new a.A("gltf-loader-error","No NORMAL vertex data found.");const n=e.attributes.NORMAL,s=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(s.componentType!==O.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for NORMAL vertex attribute, but found "+(0,o.i7)(O.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","NORMAL vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return M(m.xs,s)}async getTangentData(e,t,r){if(null==e.attributes.TANGENT)throw new a.A("gltf-loader-error","No TANGENT vertex data found.");const n=e.attributes.TANGENT,s=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(s.componentType!==O.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for TANGENT vertex attribute, but found "+(0,o.i7)(O.pe,s.componentType));if(4!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","TANGENT vertex attribute must have 4 components, but found "+s.componentCount.toFixed());return M(m.Eq,s)}async getTextureCoordinates(e,t,r){if(null==e.attributes.TEXCOORD_0)throw new a.A("gltf-loader-error","No TEXCOORD_0 vertex data found.");const n=e.attributes.TEXCOORD_0,o=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(2!==o.componentCount)throw new a.A("gltf-loader-unsupported-feature","TEXCOORD_0 vertex attribute must have 2 components, but found "+o.componentCount.toFixed());if(o.componentType===O.pe.FLOAT)return M(m.gH,o);if(!o.normalized)throw new a.A("gltf-loader-unsupported-feature","Integer component types are only supported for a normalized accessor for TEXCOORD_0.");return function(e){switch(e.componentType){case O.pe.BYTE:return new m.D6(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.UNSIGNED_BYTE:return new m.LC(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.SHORT:return new m.mJ(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.UNSIGNED_SHORT:return new m.Yi(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.UNSIGNED_INT:return new m.An(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.FLOAT:return new m.gH(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount)}}(o)}async getVertexColors(e,t,r){if(null==e.attributes.COLOR_0)throw new a.A("gltf-loader-error","No COLOR_0 vertex data found.");const n=e.attributes.COLOR_0,s=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(4!==s.componentCount&&3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","COLOR_0 attribute must have 3 or 4 components, but found "+s.componentCount.toFixed());if(4===s.componentCount){if(s.componentType===O.pe.FLOAT)return M(m.Eq,s);if(s.componentType===O.pe.UNSIGNED_BYTE)return M(m.XP,s);if(s.componentType===O.pe.UNSIGNED_SHORT)return M(m.Uz,s)}else if(3===s.componentCount){if(s.componentType===O.pe.FLOAT)return M(m.xs,s);if(s.componentType===O.pe.UNSIGNED_BYTE)return M(m.eI,s);if(s.componentType===O.pe.UNSIGNED_SHORT)return M(m.nS,s)}throw new a.A("gltf-loader-unsupported-feature","Unsupported component type for COLOR_0 attribute: "+(0,o.i7)(O.pe,s.componentType))}hasPositions(e){return void 0!==e.attributes.POSITION}hasNormals(e){return void 0!==e.attributes.NORMAL}hasVertexColors(e){return void 0!==e.attributes.COLOR_0}hasTextureCoordinates(e){return void 0!==e.attributes.TEXCOORD_0}hasTangents(e){return void 0!==e.attributes.TANGENT}async getMaterial(e,t,r,n){let o=e.material?this._materialCache.get(e.material):void 0;if(!o){const s=null!=e.material?S(this.json.materials[e.material]):S(),a=s.pbrMetallicRoughness,i=this.hasVertexColors(e),u=this.getTexture(a.baseColorTexture,t),l=this.getTexture(s.normalTexture,t),c=r?this.getTexture(s.occlusionTexture,t):void 0,f=n?this.getTexture(s.emissiveTexture,t):void 0,d=r?this.getTexture(a.metallicRoughnessTexture,t):void 0,[p,m,h,g,y]=await Promise.all([u,l,c,f,d]),T=null!=e.material?e.material:-1;o={alphaMode:s.alphaMode,alphaCutoff:s.alphaCutoff,color:a.baseColorFactor,doubleSided:!!s.doubleSided,colorTexture:p,normalTexture:m,name:s.name,id:T,occlusionTexture:h,emissiveTexture:g,emissiveFactor:s.emissiveFactor,emissiveStrengthKHR:s.extensions?.KHR_materials_emissive_strength?.emissiveStrength,metallicFactor:a.metallicFactor,roughnessFactor:a.roughnessFactor,metallicRoughnessTexture:y,hasVertexColors:i,ESRI_externalColorMixMode:s.extras.ESRI_externalColorMixMode,colorTextureTransform:a?.baseColorTexture?.extensions?.KHR_texture_transform,normalTextureTransform:s.normalTexture?.extensions?.KHR_texture_transform,occlusionTextureTransform:s.occlusionTexture?.extensions?.KHR_texture_transform,emissiveTextureTransform:s.emissiveTexture?.extensions?.KHR_texture_transform,metallicRoughnessTextureTransform:a?.metallicRoughnessTexture?.extensions?.KHR_texture_transform,receiveAmbientOcclusion:s.extras.ESRI_receiveAmbientOcclusion,receiveShadows:s.extras.ESRI_receiveShadows,unlit:!!s.extensions?.KHR_materials_unlit}}return o}async decode(e,t){const r=e.extensions?.KHR_draco_mesh_compression;if(!r)return;if(null==e.indices)throw new a.A("gltf-loader-error","Found Draco compressed primitive without indices.");const n=this.json.bufferViews[r.bufferView],o=await this.getBuffer(n.buffer,t),s=(await T()).decode(new Uint8Array(o.buffer,o.byteOffset+(n.byteOffset||0),n.byteLength));this._bufferLoaders.delete(n.buffer);const i=new Map([[e.indices,s.indices],[e.attributes.POSITION,s.positions]]);return e.attributes.TEXCOORD_0&&i.set(e.attributes.TEXCOORD_0,s.uvs),e.attributes.NORMAL&&i.set(e.attributes.NORMAL,s.normals),e.attributes.COLOR_0&&i.set(e.attributes.COLOR_0,s.colors),e.attributes.TANGENT&&i.set(e.attributes.TANGENT,s.tangents),this._dracoBuffersSize+=s.buffer.byteLength,{data:s.buffer,accessorInfos:i}}async getTexture(e,t){if(!e)return;if(0!==(e.texCoord||0))throw new a.A("gltf-loader-unsupported-feature","Only TEXCOORD with index 0 is supported.");const r=e.index,n=this.json.textures[r],o=(e=>({...v,...e}))(null!=n.sampler?this.json.samplers[n.sampler]:{}),s=F(n),u=this.json.images[s],l=await this._loadTextureImageData(r,n,t);return(0,i.tE)(this._textureCache,r,()=>{const e=e=>33071===e||33648===e||10497===e,t=e=>{throw new a.A("gltf-loader-error",`Unexpected TextureSampler WrapMode: ${e}`)};return{data:l,wrapS:e(o.wrapS)?o.wrapS:t(o.wrapS),wrapT:e(o.wrapT)?o.wrapT:t(o.wrapT),minFilter:o.minFilter,name:u.name,id:r}})}getNodeTransform(e){if(void 0===e)return N;let t=this._nodeTransformCache.get(e);if(!t){const r=this.getNodeTransform(this._getNodeParent(e)),n=this.json.nodes[e];n.matrix?t=(0,f.lw)((0,s.vt)(),r,n.matrix):n.translation||n.rotation||n.scale?(t=(0,s.o8)(r),n.translation&&(0,f.Tl)(t,t,n.translation),n.rotation&&(I[3]=(0,d.Xd)(I,n.rotation),(0,f.e$)(t,t,I[3],I)),n.scale&&(0,f.hs)(t,t,n.scale)):t=(0,s.o8)(r),this._nodeTransformCache.set(e,t)}return t}_resolveUri(e){return(0,l.s2)(e,this._baseUri)}_getNodeParent(e){return this._nodeParentMap.get(e)}_checkVersionSupported(){const e=c.A.parse(this.json.asset.version,"glTF");E.validate(e)}_checkRequiredExtensionsSupported(){const e=this.json;if(e.extensionsRequired&&!e.extensionsRequired.every(e=>this._supportedExtensions.includes(e)))throw new a.A("gltf-loader-unsupported-feature","gltf loader was not able to load unsupported feature. Required extensions: "+e.extensionsRequired.join(", "))}_computeNodeParents(){this.json.nodes.forEach((e,t)=>{e.children&&e.children.forEach(e=>{this._nodeParentMap.set(e,t)})})}async _loadTextureImageData(e,t,r){const n=this._textureLoaders.get(e);if(n)return n;const o=this._createTextureLoader(t,r);return this._textureLoaders.set(e,o),o}async _createTextureLoader(e,t){const r=F(e),n=this.json.images[r];if(n.uri){if(n.uri.endsWith(".ktx2")){const e=await this._context.loadBinary(this._resolveUri(n.uri),t);return new A.Xi(new Uint8Array(e))}return this._context.loadImage(this._resolveUri(n.uri),t)}if(null==n.bufferView)throw new a.A("gltf-loader-unsupported-feature","Image bufferView must be defined.");if(null==n.mimeType)throw new a.A("gltf-loader-unsupported-feature","Image mimeType must be defined.");const o=this.json.bufferViews[n.bufferView],s=await this.getBuffer(o.buffer,t);if(null!=o.byteStride)throw new a.A("gltf-loader-unsupported-feature","byteStride not supported for image buffer");const i=s.byteOffset+(o.byteOffset||0);return(0,A.pn)(new Uint8Array(s.buffer,i,o.byteLength),n.mimeType)}async getLoadedBuffersSize(){if(this._glbBuffer)return this._glbBuffer.byteLength;const e=await(0,u.nA)(Array.from(this._bufferLoaders.values())),t=await(0,u.nA)(Array.from(this._textureLoaders.values()));return e.reduce((e,t)=>e+(t?.byteLength??0),0)+this._dracoBuffersSize+t.reduce((e,t)=>e+(t?(0,A.x3)(t)?t.data.byteLength:t.width*t.height*4:0),0)}}const N=(0,f.hM)((0,s.vt)(),Math.PI/2),E=new c.A(2,0,"glTF"),I=(0,p.vt)(),B={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},L={[O.pe.BYTE]:1,[O.pe.UNSIGNED_BYTE]:1,[O.pe.SHORT]:2,[O.pe.UNSIGNED_SHORT]:2,[O.pe.HALF_FLOAT]:2,[O.pe.FLOAT]:4,[O.pe.INT]:4,[O.pe.UNSIGNED_INT]:4};function M(e,t){return new e(t.raw,t.byteOffset,t.byteStride,t.byteOffset+t.byteStride*(t.entryCount-1)+t.componentByteSize*t.componentCount)}function F(e){if(null!=e.extensions?.KHR_texture_basisu)return e.extensions.KHR_texture_basisu.source;if(null!==e.source)return e.source;throw new a.A("gltf-loader-unsupported-feature","Source is expected to be defined for a texture. It can also be omitted in favour of an KHR_texture_basisu extension tag.")}const U=/\.gltf$/i,D=/\.glb$/i;let j=0;async function P(e,t,r={},a=!0,i=!0){const u=await C.load(e,t,r),l="gltf_"+j++,c={lods:[],materials:new Map,textures:new Map,meta:G(u)},f=!(!u.json.asset.extras||"symbolResource"!==u.json.asset.extras.ESRI_type),d=u.json.asset.extras?.ESRI_webstyleSymbol?.webstyle,p=new Map;let m=!1;await $(u,async(e,t,f,d)=>{const h=p.get(f)??0;p.set(f,h+1);const g=void 0!==e.mode?e.mode:O.WR.TRIANGLES,y=g===O.WR.TRIANGLES||g===O.WR.TRIANGLE_STRIP||g===O.WR.TRIANGLE_FAN?g:null;if(null==y)return void n.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Unsupported primitive mode ("+(0,o.i7)(O.WR,g)+"). Skipping primitive.");if(!u.hasPositions(e))return void n.A.getLogger("esri.views.3d.glTF").warn("Skipping primitive without POSITION vertex attribute.");const T=await u.decode(e,r);m||=!!T;const w=u.getPositionData(e,r,T),x=u.getMaterial(e,r,a,i),b=u.hasNormals(e)?u.getNormalData(e,r,T):null,_=u.hasTangents(e)?u.getTangentData(e,r,T):null,S=u.hasTextureCoordinates(e)?u.getTextureCoordinates(e,r,T):null,v=u.hasVertexColors(e)?u.getVertexColors(e,r,T):null,A=u.getIndexData(e,r,T),[R,C,N,E,I,B,L]=await Promise.all([w,b,S,v,_,A,x]),M={name:d,transform:(0,s.o8)(t),attributes:{position:R,normal:C,texCoord0:N,color:E,tangent:I},indices:B,primitiveType:y,material:k(c,L,l)};let F=null;null!=c.meta?.ESRI_lod&&"screenSpaceRadius"===c.meta.ESRI_lod.metric&&(F=c.meta.ESRI_lod.thresholds[f]),c.lods[f]=c.lods[f]||{parts:[],name:d,lodThreshold:F},c.lods[f].parts[h]=M});for(const e of c.lods)e.parts=e.parts.filter(e=>!!e);const h=await u.getLoadedBuffersSize();return{model:c,meta:{isEsriSymbolResource:f,uri:u.uri,ESRI_webstyle:d,isDracoDecompressed:m},customMeta:{},usedMemory:h}}function G(e){const t=e.json;let r=null;return t.nodes.forEach(e=>{const t=e.extras;null!=t&&(t.ESRI_proxyEllipsoid||t.ESRI_lod)&&(r=t)}),r}async function $(e,t){const r=e.json,o=r.scenes[r.scene||0].nodes,s=o.length>1,a=[];for(const e of o){const t=r.nodes[e];a.push(i(e,0)),H(t)&&!s&&t.extensions.MSFT_lod.ids.forEach((e,t)=>a.push(i(e,t+1)))}async function i(o,s){const u=r.nodes[o],l=e.getNodeTransform(o);if(null!=u.weights&&n.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Morph targets are not supported."),null!=u.mesh){const e=r.meshes[u.mesh];for(const r of e.primitives)a.push(t(r,l,s,e.name))}for(const e of u.children||[])a.push(i(e,s))}await Promise.all(a)}function H(e){return e.extensions?.MSFT_lod&&Array.isArray(e.extensions.MSFT_lod.ids)}function k(e,t,r){const n=t=>{const n=`${r}_tex_${t&&t.id}${t?.name?"_"+t.name:""}`;if(t&&!e.textures.has(n)){const r=function(e,t={}){return{data:e,parameters:{wrap:{s:10497,t:10497,...t.wrap},noUnpackFlip:!0,mipmap:!1,...t}}}(t.data,{wrap:{s:t.wrapS,t:t.wrapT},mipmap:z.has(t.minFilter),noUnpackFlip:!0});e.textures.set(n,r)}return n},o=`${r}_mat_${t.id}_${t.name}`;if(!e.materials.has(o)){const r=function(e={}){return{color:[1,1,1],opacity:1,alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1,castShadows:!0,receiveShadows:!0,receiveAmbientOcclusion:!0,unlit:!1,colorTexture:null,normalTexture:null,occlusionTexture:null,emissiveTexture:null,emissiveStrengthKHR:null,metallicRoughnessTexture:null,colorTextureTransform:null,normalTextureTransform:null,occlusionTextureTransform:null,emissiveTextureTransform:null,metallicRoughnessTextureTransform:null,emissiveFactor:[0,0,0],metallicFactor:1,roughnessFactor:1,colorMixMode:"multiply",...e}}({color:[t.color[0],t.color[1],t.color[2]],opacity:t.color[3],alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,colorMixMode:t.ESRI_externalColorMixMode,colorTexture:t.colorTexture?n(t.colorTexture):void 0,normalTexture:t.normalTexture?n(t.normalTexture):void 0,occlusionTexture:t.occlusionTexture?n(t.occlusionTexture):void 0,emissiveTexture:t.emissiveTexture?n(t.emissiveTexture):void 0,metallicRoughnessTexture:t.metallicRoughnessTexture?n(t.metallicRoughnessTexture):void 0,emissiveFactor:[t.emissiveFactor[0],t.emissiveFactor[1],t.emissiveFactor[2]],emissiveStrengthKHR:t.emissiveStrengthKHR,colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform,metallicFactor:t.metallicFactor,roughnessFactor:t.roughnessFactor,receiveShadows:t.receiveShadows,receiveAmbientOcclusion:t.receiveAmbientOcclusion,unlit:t.unlit});e.materials.set(o,r)}return o}const z=new Set([9987,9985])}}]);
|