@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([[117],{68197(e,t,n){n.d(t,{A:()=>u});var r=n(40876),i=n(4576),o=n(34727),s=n(56507);function a(e){return(0,o.qE)((0,s.Vr)(e),0,255)}function l(e,t){const n=e.toString(16).padStart(2,"0");return t?n.slice(0,1):n}class u{static blendColors(e,t,n,r=new u){return r.r=Math.round(e.r+(t.r-e.r)*n),r.g=Math.round(e.g+(t.g-e.g)*n),r.b=Math.round(e.b+(t.b-e.b)*n),r.a=e.a+(t.a-e.a)*n,r._sanitize()}static fromRgb(e,t){const n=(0,r.lT)(e);return n?u.fromArray(n,t):null}static fromHex(e,t=new u){const n=(0,r.oW)(e);return n?u.fromArray(n,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const n=(0,r.Eq)(e);return n?u.fromArray(n,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,i.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,n=e?.digits??6,r=3===n||4===n,i=4===n||8===n,o=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${i?l(Math.round(255*this.a),r):""}`;return t?o.toUpperCase():o}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),n=a(this.g),r=a(this.b);return 0===e||1!==this.a?[t,n,r,a(255*this.a)]:[t,n,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(e,t,n,r){this.r=e,this.g=t,this.b=n,this.a=r}}u.prototype.declaredClass="esri.Color"},40876(e,t,n){n.d(t,{Eq:()=>h,G1:()=>f,TS:()=>o,V6:()=>i,Vm:()=>g,ay:()=>l,c1:()=>y,c4:()=>s,j5:()=>u,lT:()=>p,oW:()=>c,xV:()=>b});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!r[e]||!!r[e.toLowerCase()]}function o(e){return r[e]??r[e.toLowerCase()]}function s(e){return[...o(e)]}function a(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const i=(e%360+360)%360/360,o=n<=.5?n*(t+1):n+t-n*t,s=2*n-o;return[Math.round(255*a(s,o,i+1/3)),Math.round(255*a(s,o,i)),Math.round(255*a(s,o,i-1/3)),r]}function u(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,i=t?1:17,o=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return o&&(l=s&r,s>>=n,a[3]=i*l/255),l=s&r,s>>=n,a[2]=i*l,l=s&r,s>>=n,a[1]=i*l,l=s&r,s>>=n,a[0]=i*l,a}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function p(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=y(e[0]),e[1]=y(e[1]),e[2]=y(e[2]),e[3]=4===e.length?f(e[3]):1,e}function h(e){let t=i(e)?o(e):null;return t??=p(e),t??=c(e),t}function g(e){const t=h(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function f(e){return m(e,0,1)}function y(e){return Math.round(m(e,0,255))}function m(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const v=1/2.2;function b(e){return e**v}n.d(t,["iw",0,v])},69052(e,t,n){n.d(t,{hr:()=>i});var r=n(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return o(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+s(this.range,e-t,n)}minimalMonotonic(e,t,n){return o(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(r)?n:r}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function o(e,t,n,r,i=0,o=!1){return(r-=i)<t?r+=s(e,t-r):r>n&&(r-=s(e,r-n)),o&&r===n&&(r=t),r+i}function s(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const a=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360));n.d(t,["ie",0,l,"uC",0,a])},80200(e,t,n){n.d(t,{d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function i(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,r,o,s){return i(function(e,t){return e<<t|e>>>32-t}(i(i(t,e),i(r,s)),o),n)}function s(e,t,n,r,i,s,a){return o(t&n|~t&r,e,t,i,s,a)}function a(e,t,n,r,i,s,a){return o(t&r|n&~r,e,t,i,s,a)}function l(e,t,n,r,i,s,a){return o(t^n^r,e,t,i,s,a)}function u(e,t,n,r,i,s,a){return o(n^(t|~r),e,t,i,s,a)}function c(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let n=1732584193,r=-271733879,o=-1732584194,c=271733878;for(let t=0;t<e.length;t+=16){const p=n,d=r,h=o,g=c;n=s(n,r,o,c,e[t],7,-680876936),c=s(c,n,r,o,e[t+1],12,-389564586),o=s(o,c,n,r,e[t+2],17,606105819),r=s(r,o,c,n,e[t+3],22,-1044525330),n=s(n,r,o,c,e[t+4],7,-176418897),c=s(c,n,r,o,e[t+5],12,1200080426),o=s(o,c,n,r,e[t+6],17,-1473231341),r=s(r,o,c,n,e[t+7],22,-45705983),n=s(n,r,o,c,e[t+8],7,1770035416),c=s(c,n,r,o,e[t+9],12,-1958414417),o=s(o,c,n,r,e[t+10],17,-42063),r=s(r,o,c,n,e[t+11],22,-1990404162),n=s(n,r,o,c,e[t+12],7,1804603682),c=s(c,n,r,o,e[t+13],12,-40341101),o=s(o,c,n,r,e[t+14],17,-1502002290),r=s(r,o,c,n,e[t+15],22,1236535329),n=a(n,r,o,c,e[t+1],5,-165796510),c=a(c,n,r,o,e[t+6],9,-1069501632),o=a(o,c,n,r,e[t+11],14,643717713),r=a(r,o,c,n,e[t],20,-373897302),n=a(n,r,o,c,e[t+5],5,-701558691),c=a(c,n,r,o,e[t+10],9,38016083),o=a(o,c,n,r,e[t+15],14,-660478335),r=a(r,o,c,n,e[t+4],20,-405537848),n=a(n,r,o,c,e[t+9],5,568446438),c=a(c,n,r,o,e[t+14],9,-1019803690),o=a(o,c,n,r,e[t+3],14,-187363961),r=a(r,o,c,n,e[t+8],20,1163531501),n=a(n,r,o,c,e[t+13],5,-1444681467),c=a(c,n,r,o,e[t+2],9,-51403784),o=a(o,c,n,r,e[t+7],14,1735328473),r=a(r,o,c,n,e[t+12],20,-1926607734),n=l(n,r,o,c,e[t+5],4,-378558),c=l(c,n,r,o,e[t+8],11,-2022574463),o=l(o,c,n,r,e[t+11],16,1839030562),r=l(r,o,c,n,e[t+14],23,-35309556),n=l(n,r,o,c,e[t+1],4,-1530992060),c=l(c,n,r,o,e[t+4],11,1272893353),o=l(o,c,n,r,e[t+7],16,-155497632),r=l(r,o,c,n,e[t+10],23,-1094730640),n=l(n,r,o,c,e[t+13],4,681279174),c=l(c,n,r,o,e[t],11,-358537222),o=l(o,c,n,r,e[t+3],16,-722521979),r=l(r,o,c,n,e[t+6],23,76029189),n=l(n,r,o,c,e[t+9],4,-640364487),c=l(c,n,r,o,e[t+12],11,-421815835),o=l(o,c,n,r,e[t+15],16,530742520),r=l(r,o,c,n,e[t+2],23,-995338651),n=u(n,r,o,c,e[t],6,-198630844),c=u(c,n,r,o,e[t+7],10,1126891415),o=u(o,c,n,r,e[t+14],15,-1416354905),r=u(r,o,c,n,e[t+5],21,-57434055),n=u(n,r,o,c,e[t+12],6,1700485571),c=u(c,n,r,o,e[t+3],10,-1894986606),o=u(o,c,n,r,e[t+10],15,-1051523),r=u(r,o,c,n,e[t+1],21,-2054922799),n=u(n,r,o,c,e[t+8],6,1873313359),c=u(c,n,r,o,e[t+15],10,-30611744),o=u(o,c,n,r,e[t+6],15,-1560198380),r=u(r,o,c,n,e[t+13],21,1309151649),n=u(n,r,o,c,e[t+4],6,-145523070),c=u(c,n,r,o,e[t+11],10,-1120210379),o=u(o,c,n,r,e[t+2],15,718787259),r=u(r,o,c,n,e[t+9],21,-343485551),n=i(n,p),r=i(r,d),o=i(o,h),c=i(c,g)}return[n,r,o,c]}function p(e,t=r.Hex){const n=t||r.Base64,i=c(function(e){const t=[];for(let n=0,r=8*e.length;n<r;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}(e),8*e.length);switch(n){case r.Raw:return i;case r.Hex:return function(e){const t="0123456789abcdef",n=[];for(let r=0,i=4*e.length;r<i;r++)n.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return n.join("")}(i);case r.String:return function(e){const t=[];for(let n=0,r=32*e.length;n<r;n+=8)t.push(String.fromCharCode(e[n>>5]>>>n%32&255));return t.join("")}(i);case r.Base64:return function(e){const t=[];for(let n=0,r=4*e.length;n<r;n+=3){const r=(e[n>>2]>>n%4*8&255)<<16|(e[n+1>>2]>>(n+1)%4*8&255)<<8|e[n+2>>2]>>(n+2)%4*8&255;for(let i=0;i<4;i++)8*n+6*i>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-i)&63))}return t.join("")}(i)}}n.d(t,["T",0,r])},87024(e,t,n){n.d(t,{P:()=>h});var r=n(49186),i=n(80200),o=n(76553),s=n(84952),a=n(13069),l=n(96156),u=n(35666),c=n(10107),p=n(85648),d=n(97159);function h(e){const t=e?.origins??[void 0];return(n,r)=>{const i=function(e,t,n){if("resource"===e?.type)return function(e,t,n){const r=(0,l.z4)(t,n);return{type:String,read:(e,t,n)=>{const i=(0,d.r)(e,t,n);return r.type===String?i:"function"==typeof r.type?new r.type({url:i}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(t,i,a,l){if(!l?.resources)return"string"==typeof t?void(i[a]=(0,d.t)(t,l)):void(i[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=r.type!==String&&(!(0,o.H)(this)||l?.origin&&this.originIdOf(n)>(0,u.aB)(l.origin)),v={object:this,propertyName:n,value:t,targetUrl:h,dest:i,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,s.oP)(h)?m&&e?.contentAddressed?g(v):m?function(e){const{context:t,targetUrl:n,params:r,value:i,dest:o,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(n),u=y(i,n,t),c=(0,p.n)(u),d=(0,s.Zo)(l.path),h=r?.compress??!1;c===d?(t.resources&&f({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),o[a]=n):g(e)}(v):function({context:e,targetUrl:t,dest:n,targetPropertyName:r}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),n[r]=t)}(v):l?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,s.w8)(h)||m)?g(v):i[a]=h}}}}(e,t,n);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,n,r);for(const e of t){const t=(0,c.rM)(n,e,r);for(const e in i)t[e]=i[e]}}}function g(e){const{targetUrl:t,params:n,value:o,context:l,dest:u,targetPropertyName:c}=e;if(!l.portalItem)return;const h=(0,d.p)(t),g=y(o,t,l);if(n?.contentAddressed&&"json"!==g.type)return void l.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${g.type} with content addressing. Content addressing is only supported for json resources.`,{content:g}));const m=n?.contentAddressed&&"json"===g.type?(0,i.d)(g.jsonString):h?.filename??(0,a.lk)(),v=(0,s.fj)(n?.prefix??h?.prefix,m),b=`${v}.${(0,p.n)(g)}`;if(n?.contentAddressed&&l.resources&&"json"===g.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===b)??l.resources.toAdd.find(({resource:e})=>e.path===b);if(e)return void(u[c]=e.resource.itemRelativeUrl)}const M=l.portalItem.resourceFromPath(b);(0,s.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,s.tk)(t).then(e=>{M.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,u[c]=M.itemRelativeUrl}).catch(()=>{}));const w=n?.compress??!1;l.resources&&f({...e,resource:M,content:g,compress:w,updates:l.resources.toAdd}),u[c]=M.itemRelativeUrl}function f({object:e,propertyName:t,updates:n,resource:r,content:i,compress:o}){n.push({resource:r,content:i,compress:o,finish:n=>{!function(e,t,n){"string"==typeof e[t]?e[t]=n.url:e[t].url=n.url}(e,t,n)}})}function y(e,t,n){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(n))}}},60999(e,t,n){n.d(t,{DZ:()=>g,Ke:()=>h,Tj:()=>c,UT:()=>f,aD:()=>m,jJ:()=>u});var r=n(5482),i=n(69622),o=n(97768),s=n(17676),a=n(10107),l=n(64108);function u(e,t,n){return(0,s.Lx)(e.map((e,r)=>t.apply(n,[e,r])))}async function c(e,t,n){return(await(0,s.Lx)(e.map((e,r)=>t.apply(n,[e,r])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return d(e)}}async function g(e){try{return p(await e)}catch(e){return(0,s.QP)(e),d(e)}}function f(e,t){return new y(e,t)}let y=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,r.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}}},62885(e,t,n){n.d(t,{H:()=>o,V:()=>i});var r=n(7762);function i(e,t,n=r.A){return t||(t=new n),t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function o(e){return e}},82534(e,t,n){function r(){return[0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3]]}n.d(t,{o8:()=>i,vt:()=>r});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(e,t,n,r){return[e,t,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["zK",0,o])},67026(e,t,n){n.d(t,{A6:()=>f,Xd:()=>c,Xr:()=>h,lw:()=>p,x8:()=>u});var r=n(29242),i=n(82534),o=n(51850),s=n(34304),a=n(35522),l=n(78955);function u(e,t,n){n*=.5;const r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function c(e,t){const n=2*Math.acos(t[3]),r=Math.sin(n/2);return r>(0,s.FD)()?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),n}function p(e,t,n){const r=t[0],i=t[1],o=t[2],s=t[3],a=n[0],l=n[1],u=n[2],c=n[3];return e[0]=r*c+s*a+i*u-o*l,e[1]=i*c+s*l+o*a-r*u,e[2]=o*c+s*u+r*l-i*a,e[3]=s*c-r*a-i*l-o*u,e}function d(e,t,n,r){const i=t[0],o=t[1],a=t[2],l=t[3];let u,c,p,d,h,g=n[0],f=n[1],y=n[2],m=n[3];return c=i*g+o*f+a*y+l*m,c<0&&(c=-c,g=-g,f=-f,y=-y,m=-m),1-c>(0,s.FD)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-r)*u)/p,h=Math.sin(r*u)/p):(d=1-r,h=r),e[0]=d*i+h*g,e[1]=d*o+h*f,e[2]=d*a+h*y,e[3]=d*l+h*m,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function g(e,t){const n=t[0]+t[4]+t[8];let r;if(n>0)r=Math.sqrt(n+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let n=0;t[4]>t[0]&&(n=1),t[8]>t[3*n+n]&&(n=2);const i=(n+1)%3,o=(n+2)%3;r=Math.sqrt(t[3*n+n]-t[3*i+i]-t[3*o+o]+1),e[n]=.5*r,r=.5/r,e[3]=(t[3*i+o]-t[3*o+i])*r,e[i]=(t[3*i+n]+t[3*n+i])*r,e[o]=(t[3*o+n]+t[3*n+o])*r}return e}function f(e,t,n,r){const i=.5*Math.PI/180;t*=i,n*=i,r*=i;const o=Math.sin(t),s=Math.cos(t),a=Math.sin(n),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return e[0]=o*l*c-s*a*u,e[1]=s*a*c+o*l*u,e[2]=s*l*u-o*a*c,e[3]=s*l*c+o*a*u,e}const y=l.C,m=l.hZ,v=l.WQ,b=p,M=l.hs,w=l.Om,S=l.Cc,x=l.Bw,C=x,A=l.m3,I=A,j=l.S8,Z=l.t2,R=l.aI,T=(0,o.vt)(),P=(0,o.fA)(1,0,0),N=(0,o.fA)(0,1,0),F=(0,i.vt)(),V=(0,i.vt)(),z=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const n=t[0],r=t[1],i=t[2];return e[0]=n,e[1]=r,e[2]=i,e[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),e},conjugate:h,copy:y,dot:w,equals:R,exactEquals:Z,fromEuler:f,fromMat3:g,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const n=t[0],r=t[1],i=t[2],o=t[3],s=n*n+r*r+i*i+o*o,a=s?1/s:0;return e[0]=-n*a,e[1]=-r*a,e[2]=-i*a,e[3]=o*a,e},len:C,length:x,lerp:S,mul:b,multiply:p,normalize:j,random:function(e){const t=s.Ov,n=t(),r=t(),i=t(),o=Math.sqrt(1-n),a=Math.sqrt(n);return e[0]=o*Math.sin(2*Math.PI*r),e[1]=o*Math.cos(2*Math.PI*r),e[2]=a*Math.sin(2*Math.PI*i),e[3]=a*Math.cos(2*Math.PI*i),e},rotateX:function(e,t,n){n*=.5;const r=t[0],i=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=r*l+s*a,e[1]=i*l+o*a,e[2]=o*l-i*a,e[3]=s*l-r*a,e},rotateY:function(e,t,n){n*=.5;const r=t[0],i=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=r*l-o*a,e[1]=i*l+s*a,e[2]=o*l+r*a,e[3]=s*l-i*a,e},rotateZ:function(e,t,n){n*=.5;const r=t[0],i=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=r*l+i*a,e[1]=i*l-r*a,e[2]=o*l+s*a,e[3]=s*l-o*a,e},rotationTo:function(e,t,n){const r=(0,a.Om)(t,n);return r<-.999999?((0,a.$A)(T,P,t),(0,a.Il)(T)<1e-6&&(0,a.$A)(T,N,t),(0,a.S8)(T,T),u(e,T,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.$A)(T,t,n),e[0]=T[0],e[1]=T[1],e[2]=T[2],e[3]=1+r,j(e,e))},scale:M,set:m,setAxes:function(e,t,n,r){const i=z;return i[0]=n[0],i[3]=n[1],i[6]=n[2],i[1]=r[0],i[4]=r[1],i[7]=r[2],i[2]=-t[0],i[5]=-t[1],i[8]=-t[2],j(e,g(e,i))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,n,r,i,o){return d(F,t,i,o),d(V,n,r,o),d(e,F,V,2*o*(1-o)),e},sqrLen:I,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"})),n.d(t,["hZ",0,m,"t2",0,Z])},35522(e,t,n){n.d(t,{$A:()=>A,Bw:()=>o,C:()=>s,Cc:()=>I,DI:()=>S,Io:()=>v,Ln:()=>m,Om:()=>C,Qr:()=>p,Re:()=>u,S8:()=>x,T9:()=>f,WQ:()=>l,Z0:()=>j,_S:()=>h,aI:()=>z,ei:()=>Z,fw:()=>T,g7:()=>P,gL:()=>R,hG:()=>b,hZ:()=>a,hs:()=>y,jk:()=>g,lw:()=>c,m3:()=>M,oW:()=>_,t2:()=>V,tn:()=>d,ze:()=>w});var r=n(51850),i=n(34304);function o(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function p(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function g(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 f(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 y(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function m(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],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function b(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function M(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function x(e,t){const n=t[0],r=t[1],i=t[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2];return e[0]=i*l-o*a,e[1]=o*s-r*l,e[2]=r*a-i*s,e}function I(e,t,n,r){const i=t[0],o=t[1],s=t[2];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=s+r*(n[2]-s),e}function j(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12],e[1]=n[1]*r+n[5]*i+n[9]*o+n[13],e[2]=n[2]*r+n[6]*i+n[10]*o+n[14],e}function Z(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e}function R(e,t,n){return T(e,t,n[0],n[1],n[2],n[3])}function T(e,t,n,r,i,o){const s=t[0],a=t[1],l=t[2],u=r*l-i*a,c=i*s-n*l,p=n*a-r*s,d=r*p-i*c,h=i*u-n*p,g=n*c-r*u,f=2*o;return e[0]=s+u*f+2*d,e[1]=a+c*f+2*h,e[2]=l+p*f+2*g,e}function P(e,t){x(N,e),x(F,t);const n=C(N,F);return n>1?0:n<-1?Math.PI:Math.acos(n)}const N=(0,r.vt)(),F=(0,r.vt)();function V(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function z(e,t){if(e===t)return!0;const n=e[0],r=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function _(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],o=n[2]-t[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const q=u,L=c,O=p,E=v,k=b,U=o,D=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:P,bezier:function(e,t,n,r,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,p=3*l*s,d=l*o;return e[0]=t[0]*u+n[0]*c+r[0]*p+i[0]*d,e[1]=t[1]*u+n[1]*c+r[1]*p+i[1]*d,e[2]=t[2]*u+n[2]*c+r[2]*p+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:A,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2],u=i*l-o*a,c=o*s-r*l,p=r*a-i*s,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:_,dist:E,distance:v,div:O,divide:p,dot:C,equals:z,exactEquals:V,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,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return e[0]=t[0]*a+n[0]*l+r[0]*u+i[0]*c,e[1]=t[1]*a+n[1]*l+r[1]*u+i[1]*c,e[2]=t[2]*a+n[2]*l+r[2]*u+i[2]*c,e},inverse:S,len:U,length:o,lerp:I,max:f,min:g,mul:L,multiply:c,negate:w,normalize:x,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=o*t,e},rotateX:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[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:y,scaleAndAdd:m,set:a,sign:h,sqrDist:k,sqrLen:D,squaredDistance:b,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:q,subtract:u,transformMat3:Z,transformMat4:j,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:R,transformQuatValues:T},Symbol.toStringTag,{value:"Module"})),n.d(t,["Il",0,U,"jb",0,q,"lo",0,k,"uE",0,D,"xg",0,E])},78955(e,t,n){n.d(t,{Bw:()=>y,C:()=>i,Cc:()=>M,LI:()=>d,Om:()=>b,S8:()=>v,T9:()=>p,WQ:()=>s,Z0:()=>w,aI:()=>x,hG:()=>f,hZ:()=>o,hs:()=>h,jk:()=>c,m3:()=>m,t2:()=>S});var r=n(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}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[3]=t[3]-n[3],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[3]=t[3]*n[3],e}function u(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function c(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[3]=Math.min(t[3],n[3]),e}function p(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[3]=Math.max(t[3],n[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function h(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function g(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(n*n+r*r+i*i+o*o)}function f(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return n*n+r*r+i*i+o*o}function y(e){const t=e[0],n=e[1],r=e[2],i=e[3];return Math.sqrt(t*t+n*n+r*r+i*i)}function m(e){const t=e[0],n=e[1],r=e[2],i=e[3];return t*t+n*n+r*r+i*i}function v(e,t){const n=t[0],r=t[1],i=t[2],o=t[3];let s=n*n+r*r+i*i+o*o;return s>0&&(s=1/Math.sqrt(s),e[0]=n*s,e[1]=r*s,e[2]=i*s,e[3]=o*s),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function M(e,t,n,r){const i=t[0],o=t[1],s=t[2],a=t[3];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=s+r*(n[2]-s),e[3]=a+r*(n[3]-a),e}function w(e,t,n){const r=t[0],i=t[1],o=t[2],s=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*s,e[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*s,e[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*s,e[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*s,e}function S(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function x(e,t){const n=e[0],i=e[1],o=e[2],s=e[3],a=t[0],l=t[1],u=t[2],c=t[3],p=(0,r.FD)();return Math.abs(n-a)<=p*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-l)<=p*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-u)<=p*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(s-c)<=p*Math.max(1,Math.abs(s),Math.abs(c))}const C=a,A=l,I=u,j=g,Z=f,R=y,T=m;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:j,distance:g,div:I,divide:u,dot:b,equals:x,exactEquals:S,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:R,length:y,lerp:M,max:p,min:c,mul:A,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:v,random:function(e,t=1){const n=r.Ov;let i,o,s,a,l,u;do{i=2*n()-1,o=2*n()-1,l=i*i+o*o}while(l>=1);do{s=2*n()-1,a=2*n()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-l)/u);return e[0]=t*i,e[1]=t*o,e[2]=t*s*c,e[3]=t*a*c,e},round:d,scale:h,scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},set:o,sqrDist:Z,sqrLen:T,squaredDistance:f,squaredLength:m,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:C,subtract:a,transformMat4:w,transformQuat:function(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2],u=n[3],c=u*r+a*o-l*i,p=u*i+l*r-s*o,d=u*o+s*i-a*r,h=-s*r-a*i-l*o;return e[0]=c*u+h*-s+p*-l-d*-a,e[1]=p*u+h*-a+d*-s-c*-l,e[2]=d*u+h*-l+c*-a-p*-s,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},54239(e,t,n){n.d(t,{A:()=>m});var r,i=n(5482),o=n(4576),s=n(66552),a=n(25482),l=n(86211),u=n(67076),c=n(91429),p=n(97348),d=n(43937),h=n(36005);const g=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=g.jsonValues.slice();(0,o.Xy)(f,"orthometric");const y=(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 m=r=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,n){return g.write(e,t,n)}readHeightModel(e,t,n){return g.read(e)||(n?.messages&&n.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:n})),null)}readHeightUnit(e,t,n){return y.read(e)||(n?.messages&&n.messages.push(v(e,{context:n})),null)}readHeightUnitService(e,t,n){return(0,l.LA)(e)||y.read(e)||(n?.messages&&n.messages.push(v(e,{context:n})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({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 n=(0,l.k1)(t);return new r({heightModel:e.heightModel,heightUnit:n??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:n}=e;if(!n)return null;const i=(null!=t?p.B.get(t):null)??p.B.get(n);return i?new r({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(i.unit.name),vertCRS:i.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 r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,c.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,i.Cg)([(0,d.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,i.Cg)([(0,h.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,i.Cg)([(0,c.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:{writer:y.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,i.Cg)([(0,h.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,i.Cg)([(0,h.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,i.Cg)([(0,h.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=r=(0,i.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],m)},159(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),o=n(69540),s=n(25482),a=n(91429),l=n(99157);let u=r=class extends((0,o.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,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>l});var r,i=n(5482),o=n(69540),s=n(25482),a=n(91429);let l=r=class extends((0,o.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,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>i});var r=n(49208);function i(e,t,n,i,o,s,a=Math.floor(e.length/3)){const l=(0,r.jd)(t,o);if(null==l)return!1;if(l===r.pO){if(e===i&&n===s)return!0;const t=n+3*a;for(let r=n,o=s;r<t;r++,o++)i[o]=e[r]??0;return!0}const u=n+3*a;for(let t=n,r=s;t<u;t+=3,r+=3)l(e,t,i,r);return!0}},49208(e,t,n){n.d(t,{Tp:()=>p,jd:()=>c,pO:()=>h});var r=n(34727),i=n(86211),o=n(73941),s=n(79258),a=n(34403),l=n(21325);const u={2:{5:h,7:null,9:null,10:h,1:w,6:null,8:null,0:null,3:f,11:y,2:h,4:I},5:{5:h,7:null,9:null,10:h,1:w,6:null,8:null,0:null,3:f,11:y,2:h,4:I},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:b,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,n,r){const i=e[t]/N,o=P-2*Math.atan(Math.exp(-e[t+1]/N)),s=N+(e[t+2]??0),a=Math.cos(o)*s;n[r]=Math.cos(i)*a,n[r+1]=Math.sin(i)*a,n[r+2]=Math.sin(o)*s},6:null,8:null,0:null,3:h,11:function(e,t,n,r){g(e,t,n,r),y(n,r,n,r)},2:g,4:function(e,t,n,r){g(e,t,n,r),I(n,r,n,r)}},4:{5:j,7:null,9:null,10:j,1:function(e,t,n,r){j(e,t,n,r),w(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){j(e,t,n,r),f(n,r,n,r)},11:function(e,t,n,r){j(e,t,n,r),y(n,r,n,r)},2:j,4:h},1:{5:A,7:null,9:null,10:A,1:h,6:null,8:null,0:null,3:function(e,t,n,r){A(e,t,n,r),f(n,r,n,r)},11:function(e,t,n,r){A(e,t,n,r),y(n,r,n,r)},2:A,4:function(e,t,n,r){A(e,t,n,r),I(n,r,n,r)}},6:{5:null,7:C,9:null,10:C,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,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:w,6:M,8:b,0:null,3:f,11:y,2:h,4:I},11:{5:m,7:null,9:null,10:m,1:function(e,t,n,r){m(e,t,n,r),w(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){m(e,t,n,r),f(n,r,n,r)},11:h,2:m,4:function(e,t,n,r){m(e,t,n,r),I(n,r,n,r)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(Z.source.spatialReference===e&&Z.dest.spatialReference===t)return Z;const n=d(e,Z.source),r=d(t,Z.dest);return 0===n&&0===r?(0,l.aI)(e,t)?Z.projector=h:Z.projector=null:Z.projector=u[n][r],Z}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.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 g(e,t,n,r){n[r]=T*(e[t]/N),n[r+1]=T*(P-2*Math.atan(Math.exp(-e[t+1]/N))),n[r+2]=e[t+2]??0}function f(e,t,n,i){!function(e,t,n,i,o){const s=.4999999*Math.PI,a=(0,r.qE)(R*e[t+1],-s,s),l=Math.sin(a);n[i++]=R*e[t]*o.radius,n[i++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[i]=e[t+2]??0}(e,t,n,i,s.$O)}function y(e,t,n,r){n[r]=e[t]*F,n[r+1]=e[t+1]*F,n[r+2]=e[t+2]??0}function m(e,t,n,r){n[r]=e[t]*V,n[r+1]=e[t+1]*V,n[r+2]=e[t+2]??0}function v(e,t,n,r,i){const o=i+(e[t+2]??0),s=R*e[t],a=R*e[t+1],l=Math.cos(a)*o;n[r]=Math.cos(s)*l,n[r+1]=Math.sin(s)*l,n[r+2]=Math.sin(a)*o}function b(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 w(e,t,n,r){v(e,t,n,r,s.$O.radius)}function S(e,t,n,i,o){const s=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(s*s+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),p=Math.atan2(a,s);n[i++]=T*p,n[i++]=T*c,n[i]=u-o}function x(e,t,n,r){S(e,t,n,r,s.Sw.radius)}function C(e,t,n,r){S(e,t,n,r,s.sH.radius)}function A(e,t,n,r){S(e,t,n,r,s.$O.radius)}function I(e,t,n,r){!function(e,t,n,r,i){const o=R*e[t],s=R*e[t+1],a=e[t+2]??0,l=Math.sin(s),u=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(o),n[r++]=(c+a)*u*Math.sin(o),n[r++]=(c*(1-i.eccentricitySquared)+a)*l}(e,t,n,r,s.$O)}function j(e,t,n,r){const i=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let c,p,d,h,g,f,y,m,v,b,M,w,S,x,C,A,I,j,Z,R,P;c=Math.abs(u),p=o*o+l*l,d=Math.sqrt(p),h=p+u*u,g=Math.sqrt(h),R=Math.atan2(l,o),f=u*u/h,y=p/h,x=i.a2/g,C=i.a3-i.a4/g,y>.3?(m=c/g*(1+y*(i.a1+x+f*C)/g),Z=Math.asin(m),b=m*m,v=Math.sqrt(1-b)):(v=d/g*(1-f*(i.a5-x-y*C)/g),Z=Math.acos(v),b=1-v*v,m=Math.sqrt(b)),M=1-s.$O.eccentricitySquared*b,w=s.$O.radius/Math.sqrt(M),S=i.a6*w,x=d-w*v,C=c-S*m,I=v*x+m*C,A=v*C-m*x,j=A/(S/M+I),Z+=j,P=I+A*j/2,u<0&&(Z=-Z),n[r++]=T*R,n[r++]=T*Z,n[r]=P}const Z={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},R=(0,r.kU)(1),T=(0,r.KJ)(1),P=.5*Math.PI,N=s.$O.radius,F=N*Math.PI/180,V=180/(N*Math.PI);n.d(t,["w5",0,u])},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>G,initializeProjection:()=>K,isEqualBaseGCS:()=>H,isLoaded:()=>N,isLoadedOrLoad:()=>F,isLoadedOrLoadFor:()=>V,load:()=>_,project:()=>q,projectAsync:()=>B,projectExtent:()=>ie,projectMany:()=>L,projectMultipoint:()=>Q,projectOrLoad:()=>E,projectOrLoadMany:()=>k,projectPoint:()=>J,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>W,requiresLoad:()=>z,test:()=>$,tryProject:()=>O,unload:()=>D});var r=n(49186),i=n(17676),o=n(62788),s=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),p=n(91075),d=n(48526),h=n(86738),g=n(39829),f=n(82799),y=n(16930),m=n(98764),v=n(159),b=n(9762),M=n(49208);function w(e,t,n,r,i,o){return S[0]=e,S[1]=t,S[2]=n,(0,b.projectBuffer)(S,r,0,i,o,0)}const S=(0,a.vt)();var x=n(60408),C=n(21325),A=n(52006);let I=null,j=null,Z=null,R=null,T={};const P=new s.I;function N(){return!!(j?.isLoaded()&&Z?.isLoaded()&&R?.isLoaded())}function F(){return!!N()||((0,o.gc)(P),_(),!1)}function V(e,t){return!e||!t||G(e,t)||F()}function z(e,t){return!G(e,t)&&!N()}async function _(e){null==I&&(I=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(j=e,j.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(Z=e,Z.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(R=e,R.load()))])),await I,(0,i.Te)(e),P.notify()}function q(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),L(e,e[0].spatialReference,t,n)):((0,l.f)(e),L([e],e.spatialReference,t,n)[0])}function L(e,t,n,r){if(null==t||null==n)return e;if(G(t,n,r))return e.map(e=>W(e,t,n));if(null==r?.geographicTransformation&&(0,u.jA)(t))return L(e.map(e=>W(e,t,y.A.WGS84)),y.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return L(e,t,y.A.WGS84).map(e=>W(e,y.A.WGS84,n));if(!N())throw new U;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:R.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 i=T[e];i||(i=R.getTransformation(t,n)||new v.A,T[e]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?j.executeMany(e,n,r):Z.executeMany(e,n,r)}function O(e,t,n){try{return q(e,t,n)}catch(e){return null}}function E(e,t){const n=k([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 k(e,t,n){if(!N())for(const n of e)if(null!=n&&!(0,C.aI)(n.spatialReference,t)&&(0,C.fn)(n.spatialReference)&&(0,C.fn)(t)&&!G(n.spatialReference,t))return(0,o.gc)(P),{pending:_(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?q(e,t,n):null)}}class U extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function D(){I=null,j=null,Z=null,R=null,T={}}const $={get loadPromise(){return I}};async function B(e,t,n){if((0,i.Te)(n),!e)return e;const r=k(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,i.Te)(n),B(e,t,n);const o=r.geometries??[];return Array.isArray(e)?o:o[0]}function G(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,M.jd)(e,t))}function H(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const n=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),r=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return n&&r}async function K(e,t,n,r){if(N())return(0,i.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:i}of e)if(t&&n&&!G(t,n,i))return _(r)}else if(e&&t&&!G(e,t,n))return _(r);return(0,i.NO)(r)}function W(e,t,n){return e?(0,x.fT)(e)?Y(e,t,new h.A,n,0):(0,x.ZC)(e)?oe(e,t,new c.A,n,0):(0,x.Bi)(e)?re(e,t,new g.A,n,0):(0,x.Rg)(e)?te(e,t,new f.A,n,0):(0,x.U9)(e)?X(e,t,new d.A,n,0):null:null}function J(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,n,r)}function Y(e,t,n,r,i){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:i,(0,b.projectBuffer)(ue,t,0,ue,r,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=r,void 0!==o||(0,u.xP)(r)?(n.z=ue[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!=X(e,e.spatialReference,t,n,r)}function X(e,t,n,r,i){const{points:o,hasZ:s,hasM:a}=e,l=[],u=o.length,c=[];for(const e of o)c.push(e[0],e[1],s?e[2]:i);if(!(0,b.projectBuffer)(c,t,0,c,r,0,u))return null;const p=le(s,r);for(let e=0;e<u;++e){const t=3*e,n=c[t],r=c[t+1];p&&a?l.push([n,r,c[t+2],o[e][3]]):p?l.push([n,r,c[t+2]]):a?l.push([n,r,o[e][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=s,n.hasM=a,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,i){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=e;if(!(o?ae(o,a??!1,l??!1,t,n.curvePaths=[],r,i):se(s,a??!1,l??!1,t,n.paths,r,i)))return null;const u=le(a,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,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,i){const{curveRings:o,rings:s,hasZ:a,hasM:l}=e;return(o?ae(o,a??!1,l??!1,t,n.curveRings=[],r,i):se(s,a??!1,l??!1,t,n.rings,r,i))?(n.spatialReference=r,n.hasZ=le(a,r),n.hasM=l,n):null}function ie(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=oe(e,e.spatialReference,t,n,r)}function oe(e,t,n,r,i){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!w(o,s,u?e.zmin:i,t,ue,r))return null;const p=le(u,r);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),w(a,l,u?e.zmax:i,t,ue,r)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function se(e,t,n,r,i,o,s=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:s);if(!(0,b.projectBuffer)(a,r,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,o);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);c||t.pop(),n&&t.push(r[u]),e.push(t)}i.push(e)}return!0}function ae(e,t,n,r,i,o,s=0){const a=new Array;for(const n of e)for(const e of n){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[n,r]=e.c;a.push(n[0],n[1],t?n[2]:s,r[0],r[1],s);continue}if((0,A.n1)(e)){const[n,r,i]=e.b;a.push(n[0],n[1],t?n[2]:s,r[0],r[1],s,i[0],i[1],s);continue}const n=e;a.push(n[0],n[1],t?n[2]:s)}if(!(0,b.projectBuffer)(a,r,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,o);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);if(c||t.pop(),n&&t.push((0,A.yP)(r)[u]),(0,A.FG)(r))return!1;if((0,A.aO)(r)){const n=a[l++],r=a[l++];++l,e.push({c:[t,[n,r]]});continue}if((0,A.n1)(r)){const n=a[l++],r=a[l++];++l;const i=a[l++],o=a[l++];++l,e.push({b:[t,[n,r],[i,o]]});continue}e.push(t)}i.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,C.aI)(t,m.Y0)}const ue=(0,a.vt)()},98764(e,t,n){n.d(t,{lO:()=>c});var r=n(73941),i=n(16930),o=n(21325);const s=new i.A(r.fv),a=new i.A(r.FY),l=new i.A(r.LJ),u=new i.A(r.Ro);function c(e){const t=p.get(e);if(t)return t;let n=s;if(e)if(e===a)n=a;else if(e===l)n=l;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,o.tl)(t)||(0,o.tl)(r)?n=a:((0,o.ZL)(t)||(0,o.ZL)(r))&&(n=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?n=a:e===h&&(n=l)}}}return p.set(e,n),n}const p=new Map,d=a.wkt.toUpperCase(),h=l.wkt.toUpperCase();n.d(t,["GD",0,s,"Y0",0,u])},34403(e,t,n){var r=n(79258);Math.PI;const i=r.$O.radius,o=r.$O.eccentricitySquared,s={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};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 i(e){return void 0!==e.points}function o(e){return void 0!==e.x&&void 0!==e.y}function s(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?o(e)?"esriGeometryPoint":s(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function p(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>s,U9:()=>i,W0:()=>p,ZC:()=>r,fT:()=>o,uW:()=>l})},99959(e,t,n){n.d(t,{A:()=>o});var r=n(5482),i=n(91429);let o=class{};o=(0,r.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],o)},89808(e,t,n){const r=Symbol("getSliceableSymbol");n.d(t,["Q",0,r])},21005(e,t,n){n.r(t),n.d(t,{default:()=>$e});var r=n(5482),i=n(37838),o=n(7762),s=n(49186),a=n(53966),l=n(25728),u=n(17676),c=n(91429),p=n(56507),d=n(35522),h=n(51850),g=n(5443),f=n(60950),y=n(89808),m=n(99959);const v=Symbol("isVoxelGraphicOrigin");var b;class M extends m.A{get[(b=v,f.ym)](){return this.layer}get[y.Q](){return this.layer}constructor(e){super(),this[b]=!0,this.type="voxel",this.layer=e}get id(){return this.layer.id}}var w=n(4146),S=n(52136),x=n(18768),C=n(69208),A=n(34287),I=n(8303),j=n(25036),Z=n(58947),R=n(60694),T=n(10873),P=n(20437),N=n(95466),F=n(96184),V=n(69540),z=n(69052),_=n(25482),q=n(87024),L=n(67026),O=n(82534),E=n(34304);const k=(0,h.vt)(),U=(0,O.vt)(),D=(0,O.vt)(),$=(0,O.vt)(),B=(0,h.fA)(0,0,1),G=(0,h.fA)(0,1,0),H=(0,h.fA)(1,0,0);function K(e){(0,d.C)(k,e),(0,d.S8)(k,k);const t=Math.atan2(k[1],k[0]),n=(0,L.x8)((0,O.vt)(),B,-t);(0,d.gL)(k,k,n);const r=-1*Math.atan2(k[2],k[0]);return[(0,E.ct)(t)+270,(0,E.ct)(r)+90]}function W(e,t){return(0,L.x8)(D,B,(0,E.DF)(e-270)),(0,L.x8)($,G,(0,E.DF)(t-90)),(0,L.lw)(U,D,$),(0,d.C)(k,H),(0,d.gL)(k,k,U),(0,d.S8)(k,k),[k[0],k[1],k[2]]}let J=class extends((0,V.OU)(_.o)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=K(this.normal);return z.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=W(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=K(this.normal);return z.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=W(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],J.prototype,"enabled",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],J.prototype,"label",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>z.ie.normalize((0,p.GB)(e),0,!0))],J.prototype,"orientation",null),(0,r.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>z.ie.normalize((0,p.GB)(e),0,!0))],J.prototype,"tilt",null),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],J.prototype,"normal",void 0),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],J.prototype,"point",void 0),J=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSlice")],J);var Y=n(97159);let Q=class extends((0,V.OU)(_.o)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=K(this.normal);return z.ie.normalize((0,p.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=K(this.normal);return z.ie.normalize((0,p.GB)(t),0,!0)}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],Q.prototype,"enabled",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{origins:{service:{read:Y.r},"web-scene":{write:{isRequired:!0}}},write:!0}}),(0,q.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],Q.prototype,"href",void 0),(0,r.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"id",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Q.prototype,"label",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Q.prototype,"orientation",null),(0,r.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Q.prototype,"tilt",null),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"normal",void 0),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"point",void 0),(0,r.Cg)([(0,c.MZ)({type:[p.jz],json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"sizeInPixel",void 0),(0,r.Cg)([(0,c.MZ)({type:[J],json:{write:!0}})],Q.prototype,"slices",void 0),(0,r.Cg)([(0,c.MZ)({type:p.jz,json:{default:0,write:!0}})],Q.prototype,"timeId",void 0),(0,r.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"variableId",void 0),Q=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSection")],Q);let X=class extends _.o{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,r.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"diffuseFactor",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"specularFactor",void 0),X=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSimpleShading")],X);let ee=class extends _.o{constructor(e){super(e),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,r.Cg)([(0,c.MZ)({type:["discrete","continuous"],json:{write:!0}})],ee.prototype,"continuity",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],ee.prototype,"hasNoData",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"noData",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"offset",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"scale",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelFormat")],ee);const te=ee;let ne=class extends _.o{constructor(e){super(e),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ne.prototype,"id",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ne.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ne.prototype,"name",void 0),(0,r.Cg)([(0,c.MZ)({type:te,json:{write:!0}})],ne.prototype,"originalFormat",void 0),(0,r.Cg)([(0,c.MZ)({type:te,json:{write:{enabled:!0,isRequired:!0}}})],ne.prototype,"renderingFormat",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ne.prototype,"unit",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ne.prototype,"volumeId",void 0),(0,r.Cg)([(0,c.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],ne.prototype,"type",void 0),ne=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariable")],ne);const re=ne;var ie=n(4718),oe=n(68197);let se=class extends((0,V.OU)(_.o)){constructor(e){super(e),this.color=oe.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,r.Cg)([(0,c.MZ)({type:oe.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],se.prototype,"color",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],se.prototype,"value",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],se.prototype,"enabled",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],se.prototype,"label",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],se.prototype,"colorLocked",void 0),se=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIsosurface")],se);var ae=n(62885),le=n(34727);let ue=class extends((0,V.OU)(_.o)){constructor(e){super(e),this.color=null,this.position=0}};(0,r.Cg)([(0,c.MZ)({type:oe.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ue.prototype,"color",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelColorStop")],ue);const ce=ue;let pe=class extends((0,V.OU)(_.o)){constructor(e){super(e),this.opacity=1,this.position=0}};(0,r.Cg)([(0,c.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],pe.prototype,"opacity",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],pe.prototype,"position",void 0),pe=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelOpacityStop")],pe);const de=pe;let he=class extends((0,V.OU)(_.o)){constructor(e){super(e),this.enabled=!1,this.range=null}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],he.prototype,"enabled",void 0),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],he.prototype,"range",void 0),he=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRangeFilter")],he);const ge=he;let fe=class extends((0,V.OU)(_.o)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(o.A.ofType(ce)),this.opacityStops=new(o.A.ofType(de))}set colorStops(e){this._set("colorStops",(0,ae.V)(e,this._get("colorStops"),o.A.ofType(ce)))}set opacityStops(e){this._set("opacityStops",(0,ae.V)(e,this._get("opacityStops"),o.A.ofType(de)))}getPreviousNext(e,t,n){let r=e;for(;--r>0&&t[r].type!==n&&3!==t[r].type;);let i=e;const o=t.length;for(;++i<o&&t[i].type!==n&&3!==t[i].type;);return[r,i]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],n=[];for(const t of this.colorStops){if(!t.color)return e;n.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:1})}if(0===this.opacityStops.length)for(const e of n)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,le.qE)(e.position,0,1),r=Math.round(255*(0,le.qE)(1-e.opacity,0,1));let i=!1;for(const e of n)if(1===e.type&&Math.abs(e.position-t)<1e-5){e.color.a=r,e.type=3,i=!0;break}i||n.push({color:{r:0,g:0,b:0,a:r},position:e.position,type:2})}n.sort((e,t)=>e.position<t.position?-1:1);const e=n.length;for(let t=0;t<e;++t){const r=n[t];if(3!==r.type)if(1===r.type){const[i,o]=this.getPreviousNext(t,n,2);if(-1!==i&&o!==e){const e=(r.position-n[i].position)/(n[o].position-n[i].position);r.color.a=Math.round((0,le.Cc)(n[i].color.a,n[o].color.a,e))}else r.color.a=-1!==i?n[i].color.a:n[o].color.a}else{const[i,o]=this.getPreviousNext(t,n,1);if(-1!==i&&o!==e){const e=(r.position-n[i].position)/(n[o].position-n[i].position),t=n[i].color,s=n[o].color;me.forEach(n=>{r.color[n]=Math.round((0,le.Cc)(t[n],s[n],e))})}else-1!==i?me.forEach(e=>{r.color[e]=n[i].color[e]}):me.forEach(e=>{r.color[e]=n[o].color[e]})}}for(const e of n)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let r=0,i=1;for(let n=0;n<this._colorMapSize;++n){const o=n/this._colorMapSize;for(;o>t[i].position;)r=i++;const s=(o-t[r].position)/(t[i].position-t[r].position),a=t[r].color,l=t[i].color,u=new oe.A;me.forEach(e=>{u[e]=Math.round((0,le.Cc)(a[e],l[e],s))}),u.a=(0,le.qE)(1-(0,le.Cc)(a.a,l.a,s)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const n=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||n.length<256)return null;let r=this.stretchRange[0],i=this.stretchRange[1];if(r>i){const e=r;r=i,i=e}e=(0,le.qE)(e,r,i);const o=n[Math.round((e-r)/(i-r)*(this._colorMapSize-1))].clone();return t||(o.a=1),o}};(0,r.Cg)([(0,c.MZ)({type:["linear","nearest"],json:{write:!0}})],fe.prototype,"interpolation",void 0),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],fe.prototype,"stretchRange",void 0),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(ce),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],fe.prototype,"colorStops",null),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(de),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],fe.prototype,"opacityStops",null),(0,r.Cg)([(0,c.MZ)({type:ge,json:{write:!0}})],fe.prototype,"rangeFilter",void 0),(0,r.Cg)([(0,c.MZ)({type:[oe.A],clonable:!1,json:{read:!1}})],fe.prototype,"rasterizedTransferFunction",null),fe=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelTransferFunctionStyle")],fe);const ye=fe,me=["r","g","b"];let ve=class extends((0,V.OU)(_.o)){constructor(e){super(e),this.color=oe.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};var be;(0,r.Cg)([(0,c.MZ)({type:oe.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ve.prototype,"color",void 0),(0,r.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],ve.prototype,"value",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ve.prototype,"enabled",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ve.prototype,"label",void 0),ve=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelUniqueValue")],ve);let Me=be=class extends _.o{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(o.A.ofType(ve)),this.isosurfaces=new(o.A.ofType(se))}clone(){return new be({variableId:this.variableId,label:this.label,transferFunction:(0,ie.o8)(this.transferFunction),uniqueValues:(0,ie.o8)(this.uniqueValues),isosurfaces:(0,ie.o8)(this.isosurfaces)})}};(0,r.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Me.prototype,"variableId",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Me.prototype,"label",void 0),(0,r.Cg)([(0,c.MZ)({type:ye,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],Me.prototype,"transferFunction",void 0),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(ve),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],Me.prototype,"uniqueValues",void 0),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(se),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],Me.prototype,"isosurfaces",void 0),Me=be=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariableStyle")],Me);var we=n(88930),Se=n(86738),xe=n(16930),Ce=n(21325);function Ae(e){const t=/^(days?|hours?|minutes?|seconds?|d|h|m|s) since (\d{1,4})-(\d{1,2})-(\d{1,2})[ |T](\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[\s|Z]?(([+|\-\s?])(\d{1,2}):(\d{1,2}))?$/i.exec(e);if(null==t)return{didParse:!1};const[,n,r,i,o,s,a,l,u,c,p,d,h]=t;let g="seconds";const f=n.charAt(0).toLowerCase();"d"===f?g="days":"h"===f?g="hours":"m"===f&&(g="minutes");const y=parseInt(r,10);if(Number.isNaN(y))return{didParse:!1};const m=parseInt(i,10);if(Number.isNaN(m)||m<1||m>12)return{didParse:!1};const v=parseInt(o,10);if(Number.isNaN(v)||v<1||v>31)return{didParse:!1};if(2===m){const e=y%4==0&&(y%100!=0||y%400==0);if(e&&v>29||!e&&v>28)return{didParse:!1}}else if((4===m||6===m||9===m||11===m)&&v>30)return{didParse:!1};const b=parseInt(s,10);if(Number.isNaN(b)||b<0||b>23)return{didParse:!1};const M=parseInt(a,10);if(Number.isNaN(M)||M<0||M>59)return{didParse:!1};const w=parseInt(l,10);if(Number.isNaN(w)||w<0||w>59)return{didParse:!1};let S=1,x=0,C=0;if(p&&(S="-"===p?-1:1),d){if(x=parseInt(d,10),Number.isNaN(x)||x<0)return{didParse:!1};if(0!==x){const e=S*x;if(e<-12||e>14)return{didParse:!1}}}if(h&&(C=parseInt(h,10),Number.isNaN(C)||C<0||C>59))return{didParse:!1};const A=`${y}`.padStart(4,"0"),I=`${m}`.padStart(2,"0"),j=`${v}`.padStart(2,"0"),Z=`${b}`.padStart(2,"0"),R=`${M}`.padStart(2,"0"),T=`${w}`.padStart(2,"0");let P="Z";return 0===x&&0===C||(P=S>0?"+":"-",P+=`${x}`.padStart(2,"0"),P+=":",P+=`${C}`.padStart(2,"0")),{didParse:!0,unit:g,reference:new Date(`${A}-${I}-${j}T${Z}:${R}:${T}.000${P}`)}}let Ie=class extends _.o{constructor(){super(...arguments),this.values=null}};(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:!0}})],Ie.prototype,"values",void 0),Ie=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIrregularSpacing")],Ie);const je=Ie;let Ze=class extends _.o{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ze.prototype,"scale",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ze.prototype,"offset",void 0),Ze=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRegularSpacing")],Ze);const Re=Ze;let Te=class extends _.o{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,r.Cg)([(0,c.MZ)({type:je,json:{write:!0}})],Te.prototype,"irregularSpacing",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isPositiveUp",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isWrappedDateLine",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"label",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"name",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"quantity",void 0),(0,r.Cg)([(0,c.MZ)({type:Re,json:{write:!0}})],Te.prototype,"regularSpacing",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Te.prototype,"size",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"unit",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1}})],Te.prototype,"isRegular",null),Te=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDimension")],Te);const Pe=Te;let Ne=class extends _.o{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=xe.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),n=this.dimensions[2],r=n.isRegular?n.getRange():[0,n.size];return[e[0],t[0],r[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),n=this.dimensions[2],r=n.isRegular?n.getRange():[0,n.size],i=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)i[e]<2?i[e]=1:i[e]-=1;return n.isRegular&&!n.isPositiveUp&&(i[2]*=-1),[(e[1]-e[0])/i[0],(t[1]-t[0])/i[1],(r[1]-r[0])/i[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0;let t=this.dimensions[3].size>0;if(t){const e=this.dimensions[3];t="time"===e.quantity,t&&null!==e.unit&&(t=Ae(e.unit).didParse)}if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}get timeStops(){if("xyzt"!==this.volumeType)return[];const e=this.dimensions[3],t=[],n=Ae(e.unit);if(n.didParse)if(e.isRegular){const r=e.regularSpacing?.offset??0,i=e.regularSpacing?.scale||1;for(let o=0;o<e.size;++o){const e=r+i*o;t.push((0,we.mi)(n.reference,e,n.unit))}}else if(Array.isArray(e.irregularSpacing?.values)&&e.irregularSpacing.values.length>0)for(let r=0;r<e.irregularSpacing.values.length;++r){const i=e.irregularSpacing.values[r];t.push((0,we.mi)(n.reference,i,n.unit))}return t}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return a.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,Ce.aI)(this.spatialReference,e.spatialReference))return a.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,h.fA)(e.x,e.y,e.z??0);(0,d.Re)(t,t,this.originInLayerSpace3D),(0,d.Qr)(t,t,this.voxelSizeInLayerSpaceSigned);const n=this.dimensions[this.zDimension];if(!n.isRegular&&Array.isArray(n.irregularSpacing?.values)&&n.irregularSpacing.values.length>1){const r=e.z??0,i=n.irregularSpacing.values,o=n.isPositiveUp?1:-1,s=i.reduce((e,t)=>Math.abs(o*t-r)<Math.abs(o*e-r)?t:e);for(let e=0;e<i.length;++e)if(i[e]===s){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new Se.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,h.ci)(e);if((0,d.lw)(t,t,this.voxelSizeInLayerSpaceSigned),(0,d.WQ)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Se.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const n=this.dimensions[this.zDimension];return n.isRegular||Array.isArray(n.irregularSpacing?.values)&&(e[2]<0?t[2]=n.irregularSpacing.values[0]:e[2]<n.irregularSpacing.values.length?t[2]=n.irregularSpacing.values[e[2]]:t[2]=n.irregularSpacing.values[n.irregularSpacing.values.length-1],n.isPositiveUp||(t[2]*=-1)),new Se.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};var Fe;(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"id",void 0),(0,r.Cg)([(0,c.MZ)({type:[Pe],json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"dimensions",void 0),(0,r.Cg)([(0,c.MZ)({type:xe.A,json:{read:{enabled:!1}}})],Ne.prototype,"spatialReference",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{read:!1}})],Ne.prototype,"zDimension",null),(0,r.Cg)([(0,c.MZ)({type:[Boolean],json:{read:!1}})],Ne.prototype,"isValid",null),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"originInLayerSpace3D",null),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"voxelSizeInLayerSpaceSigned",null),(0,r.Cg)([(0,c.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Ne.prototype,"volumeType",null),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"sizeInVoxels",null),(0,r.Cg)([(0,c.MZ)({type:[Date],json:{read:!1,write:!1}})],Ne.prototype,"timeStops",null),Ne=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolume")],Ne);let Ve=Fe=class extends _.o{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Fe;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"apronWidth",void 0),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"brickSize",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"maxLodLevel",void 0),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"nodeSize",void 0),Ve=Fe=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeIndex")],Ve);const ze=Ve;let _e=class extends((0,V.OU)(_.o)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=K(this.normal);return z.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=W(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=K(this.normal);return z.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=W(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};var qe;(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],_e.prototype,"enabled",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],_e.prototype,"label",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>z.ie.normalize((0,p.GB)(e),0,!0))],_e.prototype,"orientation",null),(0,r.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>z.ie.normalize((0,p.GB)(e),0,!0))],_e.prototype,"tilt",null),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],_e.prototype,"normal",void 0),(0,r.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],_e.prototype,"point",void 0),_e=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDynamicSection")],_e);let Le=qe=class extends _.o{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(o.A.ofType(J)),this.dynamicSections=new(o.A.ofType(_e))}set slices(e){this._set("slices",(0,ae.V)(e,this._get("slices"),o.A.ofType(J)))}set dynamicSections(e){this._set("dynamicSections",(0,ae.V)(e,this._get("dynamicSections"),o.A.ofType(_e)))}clone(){return new qe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,ie.o8)(this.slices),dynamicSections:(0,ie.o8)(this.dynamicSections)})}};(0,r.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Le.prototype,"volumeId",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{default:1,write:!0}})],Le.prototype,"verticalExaggeration",void 0),(0,r.Cg)([(0,c.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Le.prototype,"exaggerationMode",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{default:0,write:!0}})],Le.prototype,"verticalOffset",void 0),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(J),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Le.prototype,"slices",null),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(_e),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Le.prototype,"dynamicSections",null),Le=qe=(0,r.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeStyle")],Le);var Oe=n(30291),Ee=n(79677),ke=n(10184),Ue=n(36005);let De=class extends((0,Z.w6)((0,x.b)((0,A.q)((0,I.A)((0,j.j)((0,l.M)((0,C.d)((0,S.p)(w.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.graphicOrigin=new M(this),this.shading=new X,this.opacity=1,this.variables=new o.A,this.volumes=new o.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.popupTemplate=null,this.test=null,this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0,this.volumeStyles=new(o.A.ofType(Le)),this.variableStyles=new(o.A.ofType(Me)),this.sections=new(o.A.ofType(Q))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,R.Jf)(e,a.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,n=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then(()=>this._fetchService(t)).then(()=>this.serviceRoot=this.url);return this.addResolvingPromise(n),Promise.resolve(this)}read(e,t){super.read(e,t),"service"===t?.origin&&this.version.major<=3&&this.version.minor<=0&&!this.getAtOrigin("popupTemplate","service")&&this.setAtOrigin("popupTemplate",this.createPopupTemplate(),"service");for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new s.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,n){if(null!=e&&"object"==typeof e){const r=g.A.fromJSON(e,n);if(0===r.zmin&&0===r.zmax&&Array.isArray(t.volumes)){const e=Ne.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,n=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>n){const t=e;e=n,n=t}r.zmin=e,r.zmax=n}}}return r}return null}get fields(){const e=[new P.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"}),new P.A({name:"Voxel.CurrentVariable",alias:"Current Variable",domain:null,editable:!1,length:128,type:"string"})];for(const t of this.variables){const n=new P.A({name:t.name,alias:t.description,domain:null,editable:!1,length:128,type:"discrete"===t.renderingFormat.continuity?"string":"double"});e.push(n)}const t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new P.A({name:"Voxel.LocalTime",alias:"Local Time",domain:null,editable:!1,length:256,type:"date"});e.push(t);const n=new P.A({name:"Voxel.SourceTime",alias:"Source Time",domain:null,editable:!1,length:256,type:"string"});e.push(n)}if("xyt"!==t.volumeType){const t=new P.A({name:"Voxel.Depth",alias:"Depth",domain:null,editable:!1,length:128,type:"double"});e.push(t)}}return e}get fieldsIndex(){return this.loaded?new N.A(this.fields):null}getField(e){return this.fieldsIndex?.get(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.fields;return(0,Oe.tn)({fields:t,title:"{Voxel.Position}"},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const n=this.variableStyles.findIndex(e=>e.variableId===t);return n<0?null:this.variableStyles.at(n)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const n=this.variables.findIndex(e=>e.id===t);return n<0?null:this.variables.at(n)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find(({id:e})=>e===t.volumeId):null}get timeInfo(){const e=this.getVolume(null);if("xyzt"!==e?.volumeType)return null;const t=e.timeStops;if(!t?.length)return null;const n=new Ee.A({start:t[0],end:t.at(-1)});return new F.A({fullTimeExtent:n,stops:t})}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find(({volumeId:e})=>e===t.volumeId):null}getColorForContinuousDataValue(e,t,n){const r=this.getVariable(e);if(null==r||"continuous"!==r.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const i=this.variableStyles.findIndex(t=>t.variableId===e);if(i<0)return null;const o=this.variableStyles.at(i);return o?.transferFunction?o.transferFunction.getColorForContinuousDataValue(t,n):null}getSections(){const e=[];for(const t of this.sections)e.push(new Q({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const n=this._getVariable(t);if(null!=n){const r=t.clone();r.isosurfaces.length>4&&(r.isosurfaces=r.isosurfaces.slice(0,3),a.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of r.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(r.variableId,e.value,!1);null==t||t.equals(e.color)||(e.color=t)}if("continuous"===n.renderingFormat.continuity)(null===r.transferFunction||r.transferFunction.colorStops.length<2)&&a.A.getLogger(this).error(`VoxelVariableStyle for variable ${n.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==r.transferFunction&&(Array.isArray(r.transferFunction.stretchRange)&&2===r.transferFunction.stretchRange.length||(a.A.getLogger(this).error(`VoxelVariableStyle for variable ${n.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),r.transferFunction.stretchRange=[0,1],r.transferFunction.colorStops.removeAll()));else if("discrete"===n.renderingFormat.continuity)if(0===t.uniqueValues.length)a.A.getLogger(this).error(`VoxelVariableStyle for variable ${n.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(r)}else a.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const n=this._getVolumeFromVolumeId(t.volumeId);if(null!=n){const r=t.clone();for(const e of r.slices)this._isPlaneValid(e,[0,1,n.zDimension],n.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of r.dynamicSections)this._isPlaneValid(e,[0,1,n.zDimension],n.dimensions)||(e.enabled=!1,e.label="invalid");e.push(r)}else a.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,n){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const r=(0,h.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,d.S8)(r,r),!(Math.abs(r[0])+Math.abs(r[1])+Math.abs(r[2])<1e-6||(e.normal[0]=r[0],e.normal[1]=r[1],e.normal[2]=r[2],0))}};(0,r.Cg)([(0,c.MZ)({type:["Voxel"]})],De.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,c.MZ)(T.fV)],De.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,c.MZ)({json:{write:!0}})],De.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)(T.OZ)],De.prototype,"url",null),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(Q),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],De.prototype,"sections",void 0),(0,r.Cg)([(0,c.MZ)({type:p.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],De.prototype,"currentVariableId",void 0),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(Le),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],De.prototype,"volumeStyles",void 0),(0,r.Cg)([(0,c.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],De.prototype,"renderMode",void 0),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(Me),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],De.prototype,"variableStyles",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],De.prototype,"enableSlices",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],De.prototype,"enableSections",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],De.prototype,"enableDynamicSections",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],De.prototype,"enableIsosurfaces",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],De.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,c.MZ)({type:X,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],De.prototype,"shading",void 0),(0,r.Cg)([(0,c.MZ)({type:["show","hide"]})],De.prototype,"listMode",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],De.prototype,"opacity",void 0),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(re)})],De.prototype,"variables",void 0),(0,r.Cg)([(0,c.MZ)({type:o.A.ofType(Ne)})],De.prototype,"volumes",void 0),(0,r.Cg)([(0,c.MZ)({type:ze})],De.prototype,"index",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],De.prototype,"minScale",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],De.prototype,"maxScale",void 0),(0,r.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0})],De.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],De.prototype,"version",void 0),(0,r.Cg)([(0,Ue.w)("service","version")],De.prototype,"readVersion",null),(0,r.Cg)([(0,c.MZ)({type:g.A})],De.prototype,"fullExtent",void 0),(0,r.Cg)([(0,Ue.w)("service","fullExtent",["fullExtent"])],De.prototype,"readFullExtent",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],De.prototype,"fields",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],De.prototype,"fieldsIndex",null),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,n){t[n]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],De.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,c.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],De.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],De.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,c.MZ)({type:F.A,readOnly:!0,json:{read:!1}})],De.prototype,"timeInfo",null),(0,r.Cg)([(0,c.MZ)({type:Ee.A,json:{read:!1}})],De.prototype,"timeExtent",void 0),(0,r.Cg)([(0,c.MZ)({type:ke.A,json:{read:!1}})],De.prototype,"timeOffset",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0,json:{origins:{"web-scene":{name:"timeAnimation",write:!0},service:{read:!1}}}})],De.prototype,"useViewTime",void 0),De=(0,r.Cg)([(0,c.$K)("esri.layers.VoxelLayer")],De);const $e=De},18768(e,t,n){var r=n(5482),i=n(53966),o=n(91429),s=n(60694);n.d(t,["b",0,e=>{const t=e;let n=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,s.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,s.Jf)(e,i.A.getLogger(this)))}};return(0,r.Cg)([(0,o.MZ)()],n.prototype,"title",null),(0,r.Cg)([(0,o.MZ)({type:String})],n.prototype,"url",null),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.ArcGISService")],n),n}])},69208(e,t,n){var r=n(5482),i=n(91429);n.d(t,["d",0,e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,r.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],n.prototype,"customParameters",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],n),n}])},8303(e,t,n){var r=n(5482),i=n(92602),o=n(70333),s=n(11254),a=n(60999),l=n(49186),u=n(36563),c=n(53966),p=n(97768),d=n(17676),h=n(84952),g=n(91429),f=n(77548),y=n(20655),m=n(80812),v=n(41318),b=n(10407),M=n(36005),w=n(43937);const S={credential:null,user:null};n.d(t,["A",0,e=>{const t=e;let x=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new m.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,d.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await n.e(1204).then(n.bind(n,41204)),r=new AbortController,i=(0,u.rE)(r);return this.addHandles(i,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:r.signal})}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!o.id?.findCredential(this.url),i=e===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let s,a;if(i)s=n.portal.url;else try{s=await(0,f.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!s||!(0,h.b8)(s,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new m.default({id:e,portal:{url:s}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,r)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,b.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const n=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=o.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=y.A.getDefault();if(i&&i.loaded&&(0,h.S8)(i.restUrl)===(0,h.S8)(r))return i.user;const l=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?v.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||y.A.getDefault());return n&&r&&!(0,h.ut)(r.restUrl,n.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,g.MZ)({type:m.default})],x.prototype,"portalItem",null),(0,r.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],x.prototype,"readPortalItem",null),(0,r.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],x.prototype,"writePortalItem",null),(0,r.Cg)([(0,g.MZ)({clonable:!1})],x.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasUpdateItemPrivileges",void 0),x=(0,r.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],x),x}])},25036(e,t,n){var r=n(5482),i=n(91429);n.d(t,["j",0,e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===e.minScale&&n.maxScale===e.maxScale?n:e}};return(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],n),n}])},95466(e,t,n){n.d(t,{A:()=>u});var r=n(49186),i=n(53966),o=n(12195),s=n(30524),a=n(98623),l=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],p(e))}static fromLayerJSON(e){return new u(e.fields??[],p(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,r=(0,s.GZ)(t);if(t&&r){const i=(0,s.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(r,e),n.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,s.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,s.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,s.te)(e)||(0,s.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,s.te)(e)||(0,s.Xz)(e)||e.nullable||void 0!==(0,s.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,s.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):c.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,s.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,o.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const c=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function p(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:i}=e,o=(r?"startField"in r?r.startField:r.startTimeField:"")??"",u=(r?"endField"in r?r.endField:r.endTimeField:"")??"",p=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=i?function(e){return"timeZone"in e}(i)?i.timeZone??p:i.dateFieldsTimeReference?(0,l.ZS)(i.dateFieldsTimeReference):p??"UTC":null,h=r?function(e){return"timeZone"in e}(r)?r.timeZone??p:r.timeReference?(0,l.ZS)(r.timeReference):p:null,g=new Map([[(0,s.NF)(i?.creationDateField??""),d],[(0,s.NF)(i?.editDateField??""),d],[(0,s.NF)(o),h],[(0,s.NF)(u),h]]);for(const{name:r,type:i}of e.fields)if(c.has(i))t.set(r,a.L);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(r,null);else if(n)t.set(r,a.L);else{const e=g.get((0,s.NF)(r??""))??p;t.set(r,e)}return t}},96184(e,t,n){n.d(t,{A:()=>h});var r=n(5482),i=n(69540),o=n(25482),s=n(91429),a=n(79677),l=n(10184),u=n(56400),c=n(36005),p=n(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,r.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,p.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,r.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,r.Cg)([(0,p.K)("interval")],h.prototype,"writeInterval",null),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,r.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,r.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],h)},73179(e,t,n){n.d(t,{b:()=>l,h:()=>u});var r=n(4718),i=n(53966),o=n(84952),s=n(60694),a=n(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:n}=e??{},o=(0,r.o8)(a.OZ),l=o.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,r,i){(0,s.LS)(this,e,n,t,i)}),{...o,set:function(e){if(null==e)return void this._set("url",e);const n=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",n.url),null!=n.layerId&&this._set("layerId",n.layerId)}}}function u(e,t){const{separator:n}=t??{},r=(0,o.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,o.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,o.fj)(r.path,n??"",e.layerId.toString()))),r}},5757(e,t,n){n.d(t,{B:()=>i});const r=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}n.d(t,["P",0,r])},10407(e,t,n){n.d(t,{It:()=>h,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,sQ:()=>p});var r=n(91218),i=n(16930),o=n(28735);function s(e,t){if(!a(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?s(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const n=i.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){const{portal:t,isOrgItem:n,itemControl:r}=e,i=t.user?.privileges;let o=!i||i.includes("features:user:edit"),s=!!n&&!!i?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}n.d(t,["mm",0,d])},85648(e,t,n){n.d(t,{n:()=>i});var r=n(84952);function i(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,r.Zo)(e);return l[t]||s}(e.url)}(e)]||a}const o={},s="text/plain",a=o[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)o[l[e]]=e},30291(e,t,n){n.d(t,{tn:()=>u});var r=n(37838),i=n(30524),o=n(41227),s=n(89893),a=n(66159),l=n(68780);function u({displayField:e,editFieldsInfo:t,fields:n,objectIdField:l,title:u},h){if(!n)return null;const f=function(e,t){const n=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:n}){const r=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===r&&(e=e.slice()),!0!==n&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||g,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,i.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:n})}))}({editFieldsInfo:t,fields:n,objectIdField:l},h);if(!f.length)return null;const y=function(e){const t=(0,i.mB)(e),{titleBase:n}=e;return t?`${n}: {${t.trim()}}`:n??""}({titleBase:u,fields:n,displayField:e}),m=[new a.A,new s.A];return new r.A({title:y,content:m,fieldInfos:f})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,i.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,i.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const g=["geometry","blob","raster","guid","xml"]}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6780],{5482(t,n,e){function r(t,n,e,r){var i,s=arguments.length,o=s<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(n,e,o):i(n,e))||o);return s>3&&o&&Object.defineProperty(n,e,o),o}function i(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,i;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>o,mS:()=>i}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function o(t){function n(n){t.error=t.hasError?new s(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function i(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(i);if(e.dispose){var s=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(s).then(i,function(t){return n(t),i()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},4341(t,n,e){e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,n,e,r,i,s,o,a,c){return[t,n,e,r,i,s,o,a,c]}e.d(n,{fA:()=>i,vt:()=>r});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:i},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,o,a,c,u,h,f,l,d,m,M){return[t,n,e,r,i,s,o,a,c,u,h,f,l,d,m,M]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},82534(t,n,e){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},77690(t,n,e){e.d(n,{B8:()=>a,Ge:()=>d,I0:()=>l,KC:()=>c,a4:()=>u,hZ:()=>s,hs:()=>f,lw:()=>h,mg:()=>o,z0:()=>i});var r=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function s(t,n,e,r,i,s,o,a,c,u){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=c,t[8]=u,t}function o(t,n){if(t===n){const e=n[1],r=n[2],i=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=i}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function a(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=h*o-a*u,l=-h*s+a*c,d=u*s-o*c;let m=e*f+r*l+i*d;return m?(m=1/m,t[0]=f*m,t[1]=(-h*r+i*u)*m,t[2]=(a*r-i*o)*m,t[3]=l*m,t[4]=(h*e-i*c)*m,t[5]=(-a*e+i*s)*m,t[6]=d*m,t[7]=(-u*e+r*c)*m,t[8]=(o*e-r*s)*m,t):null}function c(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8];return t[0]=o*h-a*u,t[1]=i*u-r*h,t[2]=r*a-i*o,t[3]=a*c-s*h,t[4]=e*h-i*c,t[5]=i*s-e*a,t[6]=s*u-o*c,t[7]=r*c-e*u,t[8]=e*o-r*s,t}function u(t){const n=t[0],e=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],c=t[7],u=t[8];return n*(u*s-o*c)+e*(-u*i+o*a)+r*(c*i-s*a)}function h(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=e[0],d=e[1],m=e[2],M=e[3],b=e[4],g=e[5],_=e[6],p=e[7],v=e[8];return t[0]=l*r+d*o+m*u,t[1]=l*i+d*a+m*h,t[2]=l*s+d*c+m*f,t[3]=M*r+b*o+g*u,t[4]=M*i+b*a+g*h,t[5]=M*s+b*c+g*f,t[6]=_*r+p*o+v*u,t[7]=_*i+p*a+v*h,t[8]=_*s+p*c+v*f,t}function f(t,n,e){const r=e[0],i=e[1],s=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t[6]=s*n[6],t[7]=s*n[7],t[8]=s*n[8],t}function l(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=e+e,a=r+r,c=i+i,u=e*o,h=r*o,f=r*a,l=i*o,d=i*a,m=i*c,M=s*o,b=s*a,g=s*c;return t[0]=1-f-m,t[3]=h-g,t[6]=l+b,t[1]=h+g,t[4]=1-u-m,t[7]=d-M,t[2]=l-b,t[5]=d+M,t[8]=1-u-f,t}function d(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],g=n[15],_=e*a-r*o,p=e*c-i*o,v=e*u-s*o,y=r*c-i*a,x=r*u-s*a,S=i*u-s*c,w=h*M-f*m,A=h*b-l*m,j=h*g-d*m,O=f*b-l*M,T=f*g-d*M,q=l*g-d*b;let I=_*q-p*T+v*O+y*j-x*A+S*w;return I?(I=1/I,t[0]=(a*q-c*T+u*O)*I,t[1]=(c*j-o*q-u*A)*I,t[2]=(o*T-a*j+u*w)*I,t[3]=(i*T-r*q-s*O)*I,t[4]=(e*q-i*j+s*A)*I,t[5]=(r*j-e*T-s*w)*I,t[6]=(M*S-b*x+g*y)*I,t[7]=(b*v-m*S-g*p)*I,t[8]=(m*x-M*v+g*_)*I,t):null}function m(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const M=h,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:u,equals:function(t,n){const e=t[0],i=t[1],s=t[2],o=t[3],a=t[4],c=t[5],u=t[6],h=t[7],f=t[8],l=n[0],d=n[1],m=n[2],M=n[3],b=n[4],g=n[5],_=n[6],p=n[7],v=n[8],y=(0,r.FD)();return Math.abs(e-l)<=y*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(i-d)<=y*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(s-m)<=y*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(o-M)<=y*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-b)<=y*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(c-g)<=y*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(u-_)<=y*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(h-p)<=y*Math.max(1,Math.abs(h),Math.abs(p))&&Math.abs(f-v)<=y*Math.max(1,Math.abs(f),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:i,fromQuat:l,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],i=t[1],s=t[2],o=t[3],a=t[4],c=t[5],u=t[6],h=t[7],f=t[8];return Math.abs(1-(e*e+o*o+u*u))<=n&&Math.abs(1-(i*i+a*a+h*h))<=n&&Math.abs(1-(s*s+c*c+f*f))<=n},mul:M,multiply:h,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[4],o=n[5],a=n[6],c=n[8],u=n[9],h=n[10],f=h*o-a*u,l=-h*s+a*c,d=u*s-o*c,m=e*f+r*l+i*d;if(!m)return null;const M=1/m;return t[0]=f*M,t[1]=(-h*r+i*u)*M,t[2]=(a*r-i*o)*M,t[3]=l*M,t[4]=(h*e-i*c)*M,t[5]=(-a*e+i*s)*M,t[6]=d*M,t[7]=(-u*e+r*c)*M,t[8]=(o*e-r*s)*M,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=Math.sin(e),d=Math.cos(e);return t[0]=d*r+l*o,t[1]=d*i+l*a,t[2]=d*s+l*c,t[3]=d*o-l*r,t[4]=d*a-l*i,t[5]=d*c-l*s,t[6]=u,t[7]=h,t[8]=f,t},scale:f,scaleByVec2:function(t,n,e){const r=e[0],i=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t},set:s,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=e[0],d=e[1];return t[0]=r,t[1]=i,t[2]=s,t[3]=o,t[4]=a,t[5]=c,t[6]=l*r+d*o+u,t[7]=l*i+d*a+h,t[8]=l*s+d*c+f,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},58083(t,n,e){e.d(n,{$0:()=>g,$h:()=>O,B8:()=>h,C:()=>s,D_:()=>a,N9:()=>p,O7:()=>j,Qw:()=>u,Tl:()=>l,X_:()=>S,e$:()=>m,eL:()=>M,hM:()=>_,hZ:()=>o,hs:()=>d,kN:()=>b,l:()=>w,lw:()=>f,mg:()=>c,o1:()=>A,sC:()=>x,t2:()=>E,t5:()=>q,tZ:()=>P,ut:()=>C,v3:()=>T});var r=e(51850),i=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function o(t,n,e,r,i,s,o,a,c,u,h,f,l,d,m,M,b){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=c,t[8]=u,t[9]=h,t[10]=f,t[11]=l,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function c(t,n){if(t===n){const e=n[1],r=n[2],i=n[3],s=n[6],o=n[7],a=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=s,t[11]=n[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function u(t,n){return h(t,n)||a(t),t}function h(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],g=n[15],_=e*a-r*o,p=e*c-i*o,v=e*u-s*o,y=r*c-i*a,x=r*u-s*a,S=i*u-s*c,w=h*M-f*m,A=h*b-l*m,j=h*g-d*m,O=f*b-l*M,T=f*g-d*M,q=l*g-d*b;let I=_*q-p*T+v*O+y*j-x*A+S*w;return I?(I=1/I,t[0]=(a*q-c*T+u*O)*I,t[1]=(i*T-r*q-s*O)*I,t[2]=(M*S-b*x+g*y)*I,t[3]=(l*x-f*S-d*y)*I,t[4]=(c*j-o*q-u*A)*I,t[5]=(e*q-i*j+s*A)*I,t[6]=(b*v-m*S-g*p)*I,t[7]=(h*S-l*v+d*p)*I,t[8]=(o*T-a*j+u*w)*I,t[9]=(r*j-e*T-s*w)*I,t[10]=(m*x-M*v+g*_)*I,t[11]=(f*v-h*x-d*_)*I,t[12]=(a*A-o*O-c*w)*I,t[13]=(e*O-r*A+i*w)*I,t[14]=(M*p-m*y-b*_)*I,t[15]=(h*y-f*p+l*_)*I,t):null}function f(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=n[9],d=n[10],m=n[11],M=n[12],b=n[13],g=n[14],_=n[15];let p=e[0],v=e[1],y=e[2],x=e[3];return t[0]=p*r+v*a+y*f+x*M,t[1]=p*i+v*c+y*l+x*b,t[2]=p*s+v*u+y*d+x*g,t[3]=p*o+v*h+y*m+x*_,p=e[4],v=e[5],y=e[6],x=e[7],t[4]=p*r+v*a+y*f+x*M,t[5]=p*i+v*c+y*l+x*b,t[6]=p*s+v*u+y*d+x*g,t[7]=p*o+v*h+y*m+x*_,p=e[8],v=e[9],y=e[10],x=e[11],t[8]=p*r+v*a+y*f+x*M,t[9]=p*i+v*c+y*l+x*b,t[10]=p*s+v*u+y*d+x*g,t[11]=p*o+v*h+y*m+x*_,p=e[12],v=e[13],y=e[14],x=e[15],t[12]=p*r+v*a+y*f+x*M,t[13]=p*i+v*c+y*l+x*b,t[14]=p*s+v*u+y*d+x*g,t[15]=p*o+v*h+y*m+x*_,t}function l(t,n,e){const r=e[0],i=e[1],s=e[2];if(n===t)t[12]=n[0]*r+n[4]*i+n[8]*s+n[12],t[13]=n[1]*r+n[5]*i+n[9]*s+n[13],t[14]=n[2]*r+n[6]*i+n[10]*s+n[14],t[15]=n[3]*r+n[7]*i+n[11]*s+n[15];else{const e=n[0],o=n[1],a=n[2],c=n[3],u=n[4],h=n[5],f=n[6],l=n[7],d=n[8],m=n[9],M=n[10],b=n[11];t[0]=e,t[1]=o,t[2]=a,t[3]=c,t[4]=u,t[5]=h,t[6]=f,t[7]=l,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=e*r+u*i+d*s+n[12],t[13]=o*r+h*i+m*s+n[13],t[14]=a*r+f*i+M*s+n[14],t[15]=c*r+l*i+b*s+n[15]}return t}function d(t,n,e){const r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*s,t[9]=n[9]*s,t[10]=n[10]*s,t[11]=n[11]*s,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function m(t,n,e,r){let o=r[0],a=r[1],c=r[2],u=Math.sqrt(o*o+a*a+c*c);if(u<=(0,i.FD)())return void s(t,n);u=1/u,o*=u,a*=u,c*=u;const h=Math.sin(e),f=Math.cos(e),l=1-f,d=n[0],m=n[1],M=n[2],b=n[3],g=n[4],_=n[5],p=n[6],v=n[7],y=n[8],x=n[9],S=n[10],w=n[11],A=o*o*l+f,j=a*o*l+c*h,O=c*o*l-a*h,T=o*a*l-c*h,q=a*a*l+f,I=c*a*l+o*h,E=o*c*l+a*h,C=a*c*l-o*h,P=c*c*l+f;t[0]=d*A+g*j+y*O,t[1]=m*A+_*j+x*O,t[2]=M*A+p*j+S*O,t[3]=b*A+v*j+w*O,t[4]=d*T+g*q+y*I,t[5]=m*T+_*q+x*I,t[6]=M*T+p*q+S*I,t[7]=b*T+v*q+w*I,t[8]=d*E+g*C+y*P,t[9]=m*E+_*C+x*P,t[10]=M*E+p*C+S*P,t[11]=b*E+v*C+w*P,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function M(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[4],o=n[5],a=n[6],c=n[7],u=n[8],h=n[9],f=n[10],l=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=s*i+u*r,t[5]=o*i+h*r,t[6]=a*i+f*r,t[7]=c*i+l*r,t[8]=u*i-s*r,t[9]=h*i-o*r,t[10]=f*i-a*r,t[11]=l*i-c*r,t}function b(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function g(t,n,e){if(0===n)return a(t);let r=e[0],s=e[1],o=e[2],c=Math.sqrt(r*r+s*s+o*o);if(c<=(0,i.FD)())return null;c=1/c,r*=c,s*=c,o*=c;const u=Math.sin(n),h=Math.cos(n),f=1-h;return t[0]=r*r*f+h,t[1]=s*r*f+o*u,t[2]=o*r*f-s*u,t[3]=0,t[4]=r*s*f-o*u,t[5]=s*s*f+h,t[6]=o*s*f+r*u,t[7]=0,t[8]=r*o*f+s*u,t[9]=s*o*f-r*u,t[10]=o*o*f+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=r+r,c=i+i,u=s+s,h=r*a,f=r*c,l=r*u,d=i*c,m=i*u,M=s*u,b=o*a,g=o*c,_=o*u;return t[0]=1-(d+M),t[1]=f+_,t[2]=l-g,t[3]=0,t[4]=f-_,t[5]=1-(h+M),t[6]=m+b,t[7]=0,t[8]=l+g,t[9]=m-b,t[10]=1-(h+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const y=(0,r.vt)();function x(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function S(t,n){const e=n[0],r=n[1],i=n[2],s=n[4],o=n[5],a=n[6],c=n[8],u=n[9],h=n[10];return t[0]=Math.sqrt(e*e+r*r+i*i),t[1]=Math.sqrt(s*s+o*o+a*a),t[2]=Math.sqrt(c*c+u*u+h*h),t}function w(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function A(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3],c=i+i,u=s+s,h=o+o,f=i*c,l=i*u,d=i*h,m=s*u,M=s*h,b=o*h,g=a*c,_=a*u,p=a*h,v=r[0],y=r[1],x=r[2];return t[0]=(1-(m+b))*v,t[1]=(l+p)*v,t[2]=(d-_)*v,t[3]=0,t[4]=(l-p)*y,t[5]=(1-(f+b))*y,t[6]=(M+g)*y,t[7]=0,t[8]=(d+_)*x,t[9]=(M-g)*x,t[10]=(1-(f+m))*x,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function j(t,n,e,r,i){const s=n[0],o=n[1],a=n[2],c=n[3],u=s+s,h=o+o,f=a+a,l=s*u,d=s*h,m=s*f,M=o*h,b=o*f,g=a*f,_=c*u,p=c*h,v=c*f,y=r[0],x=r[1],S=r[2],w=i[0],A=i[1],j=i[2],O=(1-(M+g))*y,T=(d+v)*y,q=(m-p)*y,I=(d-v)*x,E=(1-(l+g))*x,C=(b+_)*x,P=(m+p)*S,N=(b-_)*S,R=(1-(l+M))*S;return t[0]=O,t[1]=T,t[2]=q,t[3]=0,t[4]=I,t[5]=E,t[6]=C,t[7]=0,t[8]=P,t[9]=N,t[10]=R,t[11]=0,t[12]=e[0]+w-(O*w+I*A+P*j),t[13]=e[1]+A-(T*w+E*A+N*j),t[14]=e[2]+j-(q*w+C*A+R*j),t[15]=1,t}function O(t,n,e,r,i,s,o){const a=1/(e-n),c=1/(i-r),u=1/(s-o);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*c,t[6]=0,t[7]=0,t[8]=(e+n)*a,t[9]=(i+r)*c,t[10]=(o+s)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*u,t[15]=0,t}function T(t,n,e,r,i,s,o){const a=1/(n-e),c=1/(r-i),u=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(n+e)*a,t[13]=(i+r)*c,t[14]=(o+s)*u,t[15]=1,t}function q(t,n,e,r){const s=n[0],o=n[1],c=n[2];let u=s-e[0],h=o-e[1],f=c-e[2];const l=(0,i.FD)();if(Math.abs(u)<l&&Math.abs(h)<l&&Math.abs(f)<l)return void a(t);let d=1/Math.sqrt(u*u+h*h+f*f);u*=d,h*=d,f*=d;const m=r[0],M=r[1],b=r[2];let g=M*f-b*h,_=b*u-m*f,p=m*h-M*u;d=Math.sqrt(g*g+_*_+p*p),d?(d=1/d,g*=d,_*=d,p*=d):(g=0,_=0,p=0);let v=h*p-f*_,y=f*g-u*p,x=u*_-h*g;d=Math.sqrt(v*v+y*y+x*x),d?(d=1/d,v*=d,y*=d,x*=d):(v=0,y=0,x=0),t[0]=g,t[1]=v,t[2]=u,t[3]=0,t[4]=_,t[5]=y,t[6]=h,t[7]=0,t[8]=p,t[9]=x,t[10]=f,t[11]=0,t[12]=-(g*s+_*o+p*c),t[13]=-(v*s+y*o+x*c),t[14]=-(u*s+h*o+f*c),t[15]=1}function I(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function C(t){const n=(0,i.FD)(),e=t[0],r=t[1],s=t[2],o=t[4],a=t[5],c=t[6],u=t[8],h=t[9],f=t[10];return Math.abs(1-(e*e+o*o+u*u))<=n&&Math.abs(1-(r*r+a*a+h*h))<=n&&Math.abs(1-(s*s+c*c+f*f))<=n}function P(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const N=f,R=I;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],g=n[15];return t[0]=a*(l*g-d*b)-f*(c*g-u*b)+M*(c*d-u*l),t[1]=-(r*(l*g-d*b)-f*(i*g-s*b)+M*(i*d-s*l)),t[2]=r*(c*g-u*b)-a*(i*g-s*b)+M*(i*u-s*c),t[3]=-(r*(c*d-u*l)-a*(i*d-s*l)+f*(i*u-s*c)),t[4]=-(o*(l*g-d*b)-h*(c*g-u*b)+m*(c*d-u*l)),t[5]=e*(l*g-d*b)-h*(i*g-s*b)+m*(i*d-s*l),t[6]=-(e*(c*g-u*b)-o*(i*g-s*b)+m*(i*u-s*c)),t[7]=e*(c*d-u*l)-o*(i*d-s*l)+h*(i*u-s*c),t[8]=o*(f*g-d*M)-h*(a*g-u*M)+m*(a*d-u*f),t[9]=-(e*(f*g-d*M)-h*(r*g-s*M)+m*(r*d-s*f)),t[10]=e*(a*g-u*M)-o*(r*g-s*M)+m*(r*u-s*a),t[11]=-(e*(a*d-u*f)-o*(r*d-s*f)+h*(r*u-s*a)),t[12]=-(o*(f*b-l*M)-h*(a*b-c*M)+m*(a*l-c*f)),t[13]=e*(f*b-l*M)-h*(r*b-i*M)+m*(r*l-i*f),t[14]=-(e*(a*b-c*M)-o*(r*b-i*M)+m*(r*c-i*a)),t[15]=e*(a*l-c*f)-o*(r*l-i*f)+h*(r*c-i*a),t},copy:s,determinant:function(t){const n=t[0],e=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],c=t[7],u=t[8],h=t[9],f=t[10],l=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(n*o-e*s)*(f*b-l*M)-(n*a-r*s)*(h*b-l*m)+(n*c-i*s)*(h*M-f*m)+(e*a-r*o)*(u*b-l*d)-(e*c-i*o)*(u*M-f*d)+(r*c-i*a)*(u*m-h*d)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=t[3],a=t[4],c=t[5],u=t[6],h=t[7],f=t[8],l=t[9],d=t[10],m=t[11],M=t[12],b=t[13],g=t[14],_=t[15],p=n[0],v=n[1],y=n[2],x=n[3],S=n[4],w=n[5],A=n[6],j=n[7],O=n[8],T=n[9],q=n[10],I=n[11],E=n[12],C=n[13],P=n[14],N=n[15],R=(0,i.FD)();return Math.abs(e-p)<=R*Math.max(1,Math.abs(e),Math.abs(p))&&Math.abs(r-v)<=R*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(s-y)<=R*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(o-x)<=R*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-S)<=R*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(c-w)<=R*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(u-A)<=R*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(h-j)<=R*Math.max(1,Math.abs(h),Math.abs(j))&&Math.abs(f-O)<=R*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(l-T)<=R*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(d-q)<=R*Math.max(1,Math.abs(d),Math.abs(q))&&Math.abs(m-I)<=R*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(M-E)<=R*Math.max(1,Math.abs(M),Math.abs(E))&&Math.abs(b-C)<=R*Math.max(1,Math.abs(b),Math.abs(C))&&Math.abs(g-P)<=R*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-N)<=R*Math.max(1,Math.abs(_),Math.abs(N))},exactEquals:E,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=e+e,a=r+r,c=i+i,u=e*o,h=r*o,f=r*a,l=i*o,d=i*a,m=i*c,M=s*o,b=s*a,g=s*c;return t[0]=1-f-m,t[1]=h+g,t[2]=l-b,t[3]=0,t[4]=h-g,t[5]=1-u-m,t[6]=d+M,t[7]=0,t[8]=l+b,t[9]=d-M,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=y,r=-n[0],i=-n[1],s=-n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=r*r+i*i+s*s+o*o;return f>0?(e[0]=2*(a*o+h*r+c*s-u*i)/f,e[1]=2*(c*o+h*i+u*r-a*s)/f,e[2]=2*(u*o+h*s+a*i-c*r)/f):(e[0]=2*(a*o+h*r+c*s-u*i),e[1]=2*(c*o+h*i+u*r-a*s),e[2]=2*(u*o+h*s+a*i-c*r)),v(t,n,e),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:j,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:b,fromXRotation:_,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:p,frustum:O,getRotation:w,getScale:S,getTranslation:x,hasIdentityRotation:P,identity:a,invert:h,invertOrIdentity:u,isOrthoNormal:C,lookAt:q,mul:N,multiply:f,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:T,perspective:function(t,n,e,r,i){const s=1/Math.tan(n/2);let o;return t[0]=s/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const i=Math.tan(n.upDegrees*Math.PI/180),s=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),a=Math.tan(n.rightDegrees*Math.PI/180),c=2/(o+a),u=2/(i+s);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-a)*c*.5,t[9]=(i-s)*u*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:m,rotateX:M,rotateY:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],c=n[3],u=n[8],h=n[9],f=n[10],l=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i-u*r,t[1]=o*i-h*r,t[2]=a*i-f*r,t[3]=c*i-l*r,t[8]=s*r+u*i,t[9]=o*r+h*i,t[10]=a*r+f*i,t[11]=c*r+l*i,t},rotateZ:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],c=n[3],u=n[4],h=n[5],f=n[6],l=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i+u*r,t[1]=o*i+h*r,t[2]=a*i+f*r,t[3]=c*i+l*r,t[4]=u*i-s*r,t[5]=h*i-o*r,t[6]=f*i-a*r,t[7]=l*i-c*r,t},scale:d,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:R,subtract:I,targetTo:function(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=r[0],c=r[1],u=r[2];let h=i-e[0],f=s-e[1],l=o-e[2],d=h*h+f*f+l*l;d>0&&(d=1/Math.sqrt(d),h*=d,f*=d,l*=d);let m=c*l-u*f,M=u*h-a*l,b=a*f-c*h;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=f*b-l*M,t[5]=l*m-h*b,t[6]=h*M-f*m,t[7]=0,t[8]=h,t[9]=f,t[10]=l,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:l,transpose:c},Symbol.toStringTag,{value:"Module"}))},4197(t,n,e){e.d(n,{Vj:()=>h,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>c});var r=e(34275),i=e(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function c(t,n){if(0===n.length)return o(t);if(0===t.length)return o(n);const e=s(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function u(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>O,C:()=>o,DC:()=>l,Ej:()=>p,Ie:()=>A,Jt:()=>j,Lu:()=>y,Ne:()=>x,RF:()=>f,TF:()=>g,VL:()=>m,aI:()=>q,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>w,iT:()=>d,is:()=>T,pg:()=>v,uJ:()=>b,vI:()=>S,vY:()=>c,vt:()=>s,w1:()=>h,yr:()=>M}),e(35522);var r=e(5443),i=(e(19419),e(4197));function s(t=E){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function a(t,n,e,r,i,o,a=s()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a[4]=i,a[5]=o,a}function c(t,n=s()){return function(t,n,e,r=s()){return w(r,I),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],o=t[2],a=t[3],c=t[4],u=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),a=Math.max(a,n[e+3*t]),c=Math.max(c,n[e+3*t+1]),u=Math.max(u,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=a,t[4]=c,t[5]=u}(r,t,n,e),r}(t,0,t.length/3,n)}function u(t,n=(0,i.jh)(24)){const[e,r,s,o,a,c]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=c,n[6]=e,n[7]=a,n[8]=s,n[9]=e,n[10]=a,n[11]=c,n[12]=o,n[13]=r,n[14]=s,n[15]=o,n[16]=r,n[17]=c,n[18]=o,n[19]=a,n[20]=s,n[21]=o,n[22]=a,n[23]=c,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function f(t,n,e=t){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[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function d(t,[n,e,r]){!function(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}(t,n,e,r)}function m(t){return t[0]>=t[3]?0:t[3]-t[0]}function M(t){return t[1]>=t[4]?0:t[4]-t[1]}function b(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){const n=m(t),e=b(t),r=M(t);return n*n+e*e+r*r}function _(t,n=[0,0,0]){return n[0]=t[0]+m(t)/2,n[1]=t[1]+M(t)/2,n[2]=t[2]+b(t)/2,n}function p(t,n=[0,0,0]){return n[0]=m(t),n[1]=M(t),n[2]=b(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function y(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function x(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function S(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function w(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function A(t){return t?w(t,I):s(I)}function j(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function O(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function T(t){return 6===t.length}function q(t,n,e){if(null==t||null==n)return t===n;if(!T(t)||!T(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],E=[0,0,0,0,0,0];s(),e.d(n,["qv",0,I,"v_",0,E])},82919(t,n,e){e.d(n,{DV:()=>_,C:()=>b,vt:()=>m,Qy:()=>M,ui:()=>g,ST:()=>S,bU:()=>w,pw:()=>x,m7:()=>p,ZU:()=>v,GH:()=>y,c8:()=>j});var r=e(4341),i=e(58083),s=e(35522),o=e(51850),a=e(78955),c=e(91829),u=e(70328),h=e(71351);function f(t){return t?{ray:(0,h.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,h.vt)(),c0:0,c1:Number.MAX_VALUE}}new r.I(()=>f());var l=e(27921),d=e(32114);function m(t){return t?[(0,l.vt)(t[0]),(0,l.vt)(t[1]),(0,l.vt)(t[2]),(0,l.vt)(t[3]),(0,l.vt)(t[4]),(0,l.vt)(t[5])]:[(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)()]}function M(){return[(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)()]}function b(t,n){for(let e=0;e<O;e++)(0,l.C)(t[e],n[e]);return t}function g(t,n,e,r=E){const o=(0,i.lw)(d.Rc.get(),n,t);(0,i.B8)(o,o);for(let t=0;t<T;++t){const n=(0,a.Z0)(d.Km.get(),q[t],o);(0,s.hZ)(r[t],n[0]/n[3],n[1]/n[3],n[2]/n[3])}_(e,r)}function _(t,n){(0,l.Cr)(n[4],n[0],n[3],t[0]),(0,l.Cr)(n[1],n[5],n[6],t[1]),(0,l.Cr)(n[4],n[5],n[1],t[2]),(0,l.Cr)(n[3],n[2],n[6],t[3]),(0,l.Cr)(n[0],n[1],n[2],t[4]),(0,l.Cr)(n[5],n[4],n[7],t[5])}function p(t,n){return v(t,n.center,n.radius)}function v(t,n,e){for(let r=0;r<O;r++){const i=t[r];if(i[0]*n[0]+i[1]*n[1]+i[2]*n[2]+i[3]>=e)return!1}return!0}function y(t,n,e){const r=(0,u.gX)(n,C),i=(0,u.VL)(n)/2,o=(0,u.yr)(n)/2,a=(0,u.uJ)(n)/2;return e?function(t,n,e,r,i,o){const a=(0,s.Z0)(P,n,o);for(let n=0;n<O;n++){const s=t[n];if(s[0]*a[0]+s[1]*a[1]+s[2]*a[2]+s[3]-(Math.abs(s[0]*o[0]+s[1]*o[1]+s[2]*o[2])*e+Math.abs(s[0]*o[4]+s[1]*o[5]+s[2]*o[6])*r+Math.abs(s[0]*o[8]+s[1]*o[9]+s[2]*o[10])*i)>0)return!1}return!0}(t,r,i,o,a,e):function(t,n,e,r,i){for(let s=0;s<O;s++){const o=t[s];if(o[0]*n[0]+o[1]*n[1]+o[2]*n[2]+o[3]-(Math.abs(o[0])*e+Math.abs(o[1])*r+Math.abs(o[2])*i)>0)return!1}return!0}(t,r,i,o,a)}function x(t,n){return A(t,function(t,n=f()){return(0,h.C)(t,n.ray),n.c0=0,n.c1=Number.MAX_VALUE,n}(n,I.get()))}function S(t,n,e){return A(t,function(t,n,e=f()){const r=(0,s.Bw)(t.vector);return(0,h.fA)(t.origin,n,e.ray),e.c0=0,e.c1=r,e}(n,e,I.get()))}function w(t,n){for(let e=0;e<O;e++)if((0,l.mN)(t[e],n)>0)return!1;return!0}function A(t,n){for(let e=0;e<O;e++)if(!(0,l.$Q)(t[e],n))return!1;return!0}const j={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},O=6,T=8,q=[(0,c.fA)(-1,-1,-1,1),(0,c.fA)(1,-1,-1,1),(0,c.fA)(1,1,-1,1),(0,c.fA)(-1,1,-1,1),(0,c.fA)(-1,-1,1,1),(0,c.fA)(1,-1,1,1),(0,c.fA)(1,1,1,1),(0,c.fA)(-1,1,1,1)],I=new r.I(f),E=M(),C=(0,o.vt)(),P=(0,o.vt)()},11964(t,n,e){e.d(n,{Cr:()=>h,G1:()=>d,LV:()=>u,_I:()=>l,kb:()=>f,ld:()=>m,vt:()=>c});var r=e(34727),i=e(4341),s=e(35522),o=e(51850),a=e(32114);function c(t){return t?{origin:(0,o.o8)(t.origin),vector:(0,o.o8)(t.vector)}:{origin:(0,o.vt)(),vector:(0,o.vt)()}}function u(t,n){const e=b.get();return e.origin=t,e.vector=n,e}function h(t,n,e=c()){return(0,s.C)(e.origin,t),(0,s.Re)(e.vector,n,t),e}function f(t,n){const e=(0,s.Re)(a.rq.get(),n,t.origin),i=(0,s.Om)(t.vector,e),o=(0,s.Om)(t.vector,t.vector);if(Math.abs(o)<g)return(0,s.hG)(t.origin,n);const c=(0,r.qE)(i/o,0,1),u=(0,s.Re)(a.rq.get(),(0,s.hs)(a.rq.get(),t.vector,c),e);return(0,s.Om)(u,u)}function l(t,n,e){return function(t,n,e,i,o){const{vector:c,origin:u}=t,h=(0,s.Re)(a.rq.get(),n,u),f=(0,s.Om)(c,h)/(0,s.m3)(c);return(0,s.hs)(o,c,(0,r.qE)(f,0,1)),(0,s.WQ)(o,o,t.origin)}(t,n,0,0,e)}function d(t,n){const{vector:e,origin:i}=t,o=(0,s.Re)(a.rq.get(),n,i),c=(0,s.Om)(e,o)/(0,s.m3)(e);return(0,r.qE)(c,0,1)}function m(t,n,e){return!!function(t,n,e,i){const o=1e-6,c=t.origin,u=(0,s.WQ)(a.rq.get(),c,t.vector),h=n.origin,f=(0,s.WQ)(a.rq.get(),h,n.vector),l=a.rq.get(),d=a.rq.get();if(l[0]=c[0]-h[0],l[1]=c[1]-h[1],l[2]=c[2]-h[2],d[0]=f[0]-h[0],d[1]=f[1]-h[1],d[2]=f[2]-h[2],Math.abs(d[0])<o&&Math.abs(d[1])<o&&Math.abs(d[2])<o)return!1;const m=a.rq.get();if(m[0]=u[0]-c[0],m[1]=u[1]-c[1],m[2]=u[2]-c[2],Math.abs(m[0])<o&&Math.abs(m[1])<o&&Math.abs(m[2])<o)return!1;const M=l[0]*d[0]+l[1]*d[1]+l[2]*d[2],b=d[0]*m[0]+d[1]*m[1]+d[2]*m[2],g=l[0]*m[0]+l[1]*m[1]+l[2]*m[2],_=d[0]*d[0]+d[1]*d[1]+d[2]*d[2],p=(m[0]*m[0]+m[1]*m[1]+m[2]*m[2])*_-b*b;if(Math.abs(p)<o)return!1;let v=(M*b-g*_)/p,y=(M+b*v)/_;e&&(v=(0,r.qE)(v,0,1),y=(0,r.qE)(y,0,1));const x=a.rq.get(),S=a.rq.get();return x[0]=c[0]+v*m[0],x[1]=c[1]+v*m[1],x[2]=c[2]+v*m[2],S[0]=h[0]+y*d[0],S[1]=h[1]+y*d[1],S[2]=h[2]+y*d[2],i.tA=v,i.tB=y,i.pA=x,i.pB=S,i.distance2=(0,s.hG)(x,S),!0}(t,n,!0,M)&&((0,s.C)(e,M.pA),!0)}const M={tA:0,tB:0,pA:(0,o.vt)(),pB:(0,o.vt)(),distance2:0},b=new i.I(()=>c()),g=1e-9},27921(t,n,e){e.d(n,{$Q:()=>v,C:()=>a,Cr:()=>h,H:()=>x,O_:()=>u,Qj:()=>c,T7:()=>_,Tj:()=>p,lU:()=>f,mN:()=>S,vE:()=>w,vt:()=>o});var r=e(34727),i=e(35522),s=e(51850);function o(t=A){return[t[0],t[1],t[2],t[3]]}function a(t,n){return function(t,n,e,r,i=o()){return i[0]=t,i[1]=n,i[2]=e,i[3]=r,i}(n[0],n[1],n[2],n[3],t)}function c(t){return t}function u(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function h(t,n,e,r=o()){const i=e[0]-n[0],s=e[1]-n[1],a=e[2]-n[2],c=t[0]-n[0],u=t[1]-n[1],h=t[2]-n[2],f=s*h-a*u,l=a*c-i*h,d=i*u-s*c,m=f*f+l*l+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=f*M,r[1]=l*M,r[2]=d*M,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function f(t,n,e,r=0,s=Math.floor(e*(1/3)),o=Math.floor(e*(2/3))){if(e<3)return!1;n(d,r);let a=s,c=!1;for(;a<e-1&&!c;)n(m,a),a++,c=!(0,i.t2)(d,m);if(!c)return!1;for(a=Math.max(a,o),c=!1;a<e&&!c;)n(M,a),a++,(0,i.Re)(b,d,m),(0,i.S8)(b,b),(0,i.Re)(g,m,M),(0,i.S8)(g,g),c=!(0,i.t2)(d,M)&&!(0,i.t2)(m,M)&&Math.abs((0,i.Om)(b,g))<l;return c?(h(d,m,M,t),!0):(0!==r||1!==s||2!==o)&&f(t,n,e,0,1,2)}e(78955),e(44280),e(32114),e(32728);const l=.99619469809,d=(0,s.vt)(),m=(0,s.vt)(),M=(0,s.vt)(),b=(0,s.vt)(),g=(0,s.vt)();function _(t,n,e){return function(t){return 0===t||1===t}(w(t,n.origin,n.vector,0,e))}function p(t,n){return S(t,n)>=0}function v(t,n){return function(t,n,e,r,s,o,a){const c=(0,i.Om)(t,e),u=S(t,n);if(c>-1e-6&&c<1e-6)return y(u,s,o);const h=-u/c,f=y(c,s,!1);return!(a&&!f&&!y(u,s,o))&&(f?h>r.c0&&(r.c0=h):h<r.c1&&(r.c1=h),r.c0<=r.c1)}(t,n.ray.origin,n.ray.direction,n,!1,!1,!0)}function y(t,n,e){return e?n?t>=0:t<=0:n?t>0:t<0}function x(t,n,e,r=!1){let s=n.at(-1),o=S(t,s),a=r?o>0:o<=0;for(let c=0;c<n.length;c++){const u=n.at(c),h=S(t,u),f=r?h>0:h<=0;a!==f&&(0,i.Cc)(e(),s,u,o/(o-h)),f&&(0,i.C)(e(),u),s=u,o=h,a=f}}function S(t,n){return(0,i.Om)(t,n)+t[3]}function w(t,n,e,s,o){const a=(0,i.Om)(t,e),c=S(t,n);if(0===a)return c>=0?2:3;let u=-c/a;return 1&s&&(u=(0,r.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?c>=0?2:3:((0,i.WQ)(o,n,(0,i.hs)(o,e,u)),c>=0?0:1)}const A=[0,0,1,0];(0,s.vt)()},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>f,LV:()=>u,fA:()=>l,vt:()=>a}),e(4576);var r=e(4341),i=(e(77690),e(29242)),s=e(35522),o=e(51850);function a(t){return t?c((0,o.o8)(t.origin),(0,o.o8)(t.direction)):c((0,o.vt)(),(0,o.vt)())}function c(t,n){return{origin:t,direction:n}}function u(t,n){const e=d.get();return e.origin=t,e.direction=n,e}function h(t,n=a()){return l(t.origin,t.direction,n)}function f(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.Re)(e.direction,n,t),e}function l(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.C)(e.direction,n),e}e(32114);const d=new r.I(()=>a());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},94008(t,n,e){e.d(n,{iy:()=>d}),e(44208),e(53966);var r=e(34727),i=e(34304),s=e(58083),o=e(35522),a=e(51850),c=e(91829),u=e(34275);var h=e(71351),f=e(44280),l=e(32114);class d{constructor(t=0,n=0,e=0,r=0){this.radius=r,"number"==typeof t?this._center=(0,a.fA)(t,n,e):function(t){return n=t,(0,u.vZ)(n)&&n.length>=3||function(t){return((0,u.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var n}(t)||function(t){return(n=t)instanceof Float32Array&&n.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var n}(t)?(this._center=(0,a.ci)(t),this.radius=4===t.length?t[3]:n):(this._center=(0,a.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,o.C)(this.center,t)}exactEquals(t){return(0,o.aI)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,o.C)(this._center,t.center),this.radius=t.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,c.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,o.hG)(this.center,t)<=this.radius**2}intersects(t){const n=this.radius+t.radius;return(0,o.hG)(this.center,t.center)<=n*n}intersectRay(t,n){if(null==t)return!1;if(!this._intersect(t,m))return!1;let{t0:e,t1:r}=m;if((e<0||r<e&&r>0)&&(e=r),e<0)return!1;if(n){const{origin:r,direction:i}=t;n[0]=r[0]+i[0]*e,n[1]=r[1]+i[1]*e,n[2]=r[2]+i[2]*e}return!0}intersectLine(t,n){const e=(0,h.Cr)(t,n);if(!this._intersect(e,m))return[];const{origin:r,direction:s}=e,{t0:c,t1:u}=m,f=t=>{const n=(0,a.vt)();return(0,o.Ln)(n,r,s,t),this.projectPoint(n,n)};return Math.abs(c-u)<(0,i.FD)()?[f(c)]:[f(c),f(u)]}_intersect(t,n){const{origin:e,direction:r}=t,i=M;i[0]=e[0]-this.center[0],i[1]=e[1]-this.center[1],i[2]=e[2]-this.center[2];const s=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===s)return!1;const o=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),a=o*o-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(a<0)return!1;const c=Math.sqrt(a);return n.t0=(-o-c)/(2*s),n.t1=(-o+c)/(2*s),!0}projectPoint(t,n){const e=(0,o.Re)(l.rq.get(),t,this.center),r=(0,o.hs)(l.rq.get(),e,this.radius/(0,o.Bw)(e));return(0,o.WQ)(n,r,this.center)}closestPointOnSilhouette(t,n){const e=l.rq.get(),r=l.Rc.get();(0,o.$A)(e,t.origin,t.direction),(0,o.$A)(n,e,t.origin),(0,o.hs)(n,n,1/(0,o.Bw)(n)*this.radius);const i=this._angleToSilhouette(t.origin),a=(0,f.g7)(t.origin,n);return(0,s.$0)(r,a+i,e),(0,o.Z0)(n,n,r),n}frustumCoverage(t,n,e){const r=this.radius,i=r*r,s=t+.5*Math.PI,o=n*n+i-2*Math.cos(s)*n*r,a=Math.sqrt(o),c=o-i;if(c<=0)return.5;const u=Math.sqrt(c),h=Math.acos(u/a)-Math.asin(r/(a/Math.sin(s)));return Math.min(1,(h+.5*e)/e)}_angleToSilhouette(t){const n=(0,o.Re)(l.rq.get(),t,this.center),e=(0,o.Bw)(n),i=this.radius,s=i+Math.abs(i-e);return(0,r.XM)(i/s)}union(t){const n=(0,o.Io)(this._center,t.center),e=this.radius,r=t.radius;return n+r<e?this:n+e<r?(this.copyFrom(t),this):((0,o.Cc)(this._center,this._center,t.center,(n+r-e)/(2*n)),this.radius=(n+e+r)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(t){const{center:n,radius:e}=this,r=t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3];return r<0?Math.min(r+e,0):Math.max(r-e,0)}}new d;const m={t0:0,t1:0},M=(0,a.vt)();(0,a.vt)(),(0,a.vt)()},44280(t,n,e){e.d(n,{g7:()=>a,gr:()=>o});var r=e(34727),i=e(35522),s=e(51850);function o(t,n){return(0,i.Om)(t,n)/(0,i.Bw)(t)}function a(t,n){const e=(0,i.Om)(t,n)/((0,i.Bw)(t)*(0,i.Bw)(n));return-(0,r.XM)(e)}(0,s.vt)(),(0,s.vt)()},32114(t,n,e){e.d(n,{Rc:()=>d,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),i=e(29242),s=e(9093),o=e(82534),a=e(48163),c=e(51850),u=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(i.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),d=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},32728(t,n,e){e.d(n,{YH:()=>a,hG:()=>s,nu:()=>c,wp:()=>o}),e(34727);var r=e(35522),i=e(51850);function s(t){const n=t[0]*t[0]+t[4]*t[4]+t[8]*t[8],e=t[1]*t[1]+t[5]*t[5]+t[9]*t[9],r=t[2]*t[2]+t[6]*t[6]+t[10]*t[10];return Math.sqrt(Math.max(n,e,r))}function o(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),i=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.hZ)(t,e,i,s),t}function a(t,n,e){e=e||t;const i=(0,r.Om)(t,n);(0,r.hZ)(e,t[0]-i*n[0],t[1]-i*n[1],t[2]-i*n[2]),(0,r.S8)(e,e)}function c(t,n,e,s=(0,i.vt)()){const o=(0,r.Bw)(t),a=(0,r.Bw)(n),c=(0,r.Om)(t,n)/(o*a);if(c<.9999999999999999){const i=Math.acos(c),f=((1-e)*o+e*a)/Math.sin(i),l=f/o*Math.sin((1-e)*i),d=f/a*Math.sin(e*i);return(0,r.hs)(u,t,l),(0,r.hs)(h,n,d),(0,r.WQ)(s,u,h)}return(0,r.Cc)(s,t,n,e)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const u=(0,i.vt)(),h=(0,i.vt)()},78230(t,n,e){e.d(n,{x:()=>f});var r=e(93687),i=e(15142),s=e(35522),o=e(51850),a=e(82919),c=e(71351),u=e(94008),h=e(620);class f{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,n){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new l,this._objectCount=0,n&&(void 0!==n.maximumObjectsPerNode&&(this._maximumObjectsPerNode=n.maximumObjectsPerNode),void 0!==n.maximumDepth&&(this._maximumDepth=n.maximumDepth))}destroy(){this._degenerateObjects.clear(),l.clearPool(),q[0]=null,N.prune(),D.prune()}add(t){const n=Array.from(t);this._grow(n);const e=l.acquire();for(const t of n)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(e.init(this._root),this._add(t,e));l.release(e)}remove(t,n=null){this._objectCount-=t.length;const e=l.acquire();for(const r of t){const t=n??this.objectToBoundingSphere(r);A(t.radius)?(e.init(this._root),b(r,t,e)):this._degenerateObjects.delete(r)}l.release(e),this._shrink()}update(t,n){if(!A(n.radius)&&this._isDegenerate(t))return;const e=function(t){return q[0]=t,q}(t);this.remove(e,n),this.add(e)}forEachAlongRay(t,n,e){const r=(0,c.LV)(t,n);m(this._root,t=>{if(!function(t,n){return y(n.bounds.center,2*-n.halfSize,C),y(n.bounds.center,2*n.halfSize,P),(0,h.O_)(t.origin,t.direction,C,P)}(r,t))return!1;const n=t.node;return n.terminals.forAll(t=>{this._intersectsObject(r,t)&&e(t)}),null!==n.residents&&n.residents.forAll(t=>{this._intersectsObject(r,t)&&e(t)}),!0})}forEachAlongRayWithVerticalOffset(t,n,e,r){const i=(0,c.LV)(t,n);m(this._root,t=>{if(!function(t,n,e){return y(n.bounds.center,2*-n.halfSize,C),y(n.bounds.center,2*n.halfSize,P),e.applyToMinMax(C,P),(0,h.O_)(t.origin,t.direction,C,P)}(i,t,r))return!1;const n=t.node;return n.terminals.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&e(t)}),null!==n.residents&&n.residents.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&e(t)}),!0})}forEach(t){for(const n of this.values())t(n)}*values(){for(const t of this._nodeIteratorValues()){const n=t.node;yield*n.terminals,null!==n.residents&&(yield*n.residents)}yield*this.degenerateObjectValues()}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}*degenerateObjectValues(){yield*this._degenerateObjects.values()}findClosest(t,n,e,r=()=>!0,i=1/0){let o=1/0,c=1/0,u=null;const h=S(t,n),f=s=>{if(--i,!r(s))return;const h=this.objectToBoundingSphere(s);if(!(0,a.m7)(e,h))return;const f=w(t,n,h.center),l=f-h.radius,d=f+h.radius;l<o&&(o=l,c=d,u=s)};return M(this._root,r=>{if(i<=0||!(0,a.ZU)(e,r.bounds.center,2*r.bounds.radius))return!1;if((0,s.hs)(E,h,2*r.halfSize),(0,s.WQ)(E,E,r.bounds.center),w(t,n,E)>c)return!1;const o=r.node;return o.terminals.forAll(t=>f(t)),null!==o.residents&&o.residents.forAll(t=>f(t)),!0},t,n),u}forEachInDepthRange(t,n,e,r,i,o,c){let u=-1/0,h=1/0;const f={setRange:t=>{1===e?(u=Math.max(u,t.near),h=Math.min(h,t.far)):(u=Math.max(u,-t.far),h=Math.min(h,-t.near))}};f.setRange(r);const l=w(n,e,t),d=S(n,e),m=S(n,-e),b=t=>{if(!c(t))return;const r=this.objectToBoundingSphere(t),s=w(n,e,r.center)-l,d=s-r.radius,m=s+r.radius;d>h||m<u||!(0,a.m7)(o,r)||i(t,f)};M(this._root,t=>{if(!(0,a.ZU)(o,t.bounds.center,2*t.bounds.radius))return!1;if((0,s.hs)(E,d,2*t.halfSize),(0,s.WQ)(E,E,t.bounds.center),w(n,e,E)-l>h)return!1;if((0,s.hs)(E,m,2*t.halfSize),(0,s.WQ)(E,E,t.bounds.center),w(n,e,E)-l<u)return!1;const r=t.node;return r.terminals.forAll(t=>b(t)),null!==r.residents&&r.residents.forAll(t=>b(t)),!0},n,e)}forEachNode(t){m(this._root,n=>t(n.node,n.bounds,n.halfSize,n.depth))}forEachIntersectingFrustum(t,n,e=()=>!0){for(const r of this.intersectingFrustumValues(t,e))n(r)}*intersectingFrustumValues(t,n=()=>!0){for(const e of this._nodeIteratorValues(n=>(0,a.ZU)(t,n.bounds.center,2*n.bounds.radius))){const r=e.node;for(const e of r.terminals)n(e)&&(0,a.m7)(t,this.objectToBoundingSphere(e))&&(yield e);if(null!==r.residents)for(const e of r.residents)n(e)&&(0,a.m7)(t,this.objectToBoundingSphere(e))&&(yield e)}}*_nodeIteratorValues(t=()=>!0){yield*d(this._root,t)}forEachNeighbor(t,n){const e=n.radius,r=n.center,i=e=>{const r=this.objectToBoundingSphere(e);return!n.intersects(r)||t(e)};let o=!0;const a=t=>{o&&(o=i(t))};m(this._root,t=>{const n=2*t.bounds.radius,i=e+n;if((0,s.hG)(t.bounds.center,r)-i*i>0)return!1;const c=t.node;return c.terminals.forAll(a),o&&null!==c.residents&&c.residents.forAll(a),o}),o&&this.forEachDegenerateObject(a)}_intersectsObject(t,n){const e=this.objectToBoundingSphere(n);return!(e.radius>0)||e.intersectRay(t)}_intersectsObjectWithOffset(t,n,e){const r=this.objectToBoundingSphere(n);return!(r.radius>0)||e.applyToBoundingSphere(r).intersectRay(t)}_add(t,n){n.advanceTo(this.objectToBoundingSphere(t))?n.node.terminals.push(t):(n.node.residents.push(t),n.node.residents.length>this._maximumObjectsPerNode&&n.depth<this._maximumDepth&&this._split(n))}_split(t){const n=t.node.residents;t.node.residents=null;for(let e=0;e<n.length;e++){const r=l.acquire().init(t);this._add(n.at(e),r),l.release(r)}}_grow(t){if(x(t,t=>this.objectToBoundingSphere(t),R),A(R.radius)&&!this._fitsInsideTree(R))if(_(this._root.node))this._root.bounds.copyFrom(R),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(R);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(R,t):this._growRootAsSubNode(t),l.release(t)}}_rebuildTree(t,n){F.center=n.bounds.center,F.radius=n.halfSize,x([t,F],t=>t,z);const e=l.acquire().init(this._root);this._root.initFrom(null,z,z.radius),this._root.increaseHalfSize(1.25),m(e,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),l.release(e)}_placingRootViolatesMaxDepth(t){const n=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let e=0;return m(this._root,t=>(e=Math.max(e,t.depth),e+n<=this._maximumDepth)),e+n>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const n=t.radius,e=t.center;let r=-1/0;const i=this._root.bounds.center,s=this._root.halfSize;for(let t=0;t<3;t++){const o=i[t]-s-(e[t]-n),a=e[t]+n-(i[t]+s),c=Math.max(0,Math.ceil(o/(2*s))),u=Math.max(0,Math.ceil(a/(2*s)))+1,h=2**Math.ceil(Math.log(c+u)*Math.LOG2E);r=Math.max(r,h),V[t].min=c,V[t].max=u}for(let t=0;t<3;t++){let n=V[t].min,e=V[t].max;const o=(r-(n+e))/2;n+=Math.ceil(o),e+=Math.floor(o);const a=i[t]-s-n*s*2;I.center[t]=a+(e+n)*s}const o=r*s;return I.radius=o*T,l.acquire().initFrom(null,I,o,0)}_growRootAsSubNode(t){const n=this._root.node;R.center=this._root.bounds.center,R.radius=this._root.halfSize,this._root.init(t),t.advanceTo(R,null,!0),t.node.children=n.children,t.node.residents=n.residents,t.node.terminals=n.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const n=this._root.node.children;let e=0,r=0;for(;r<n.length&&null==t;)e=r++,t=n[e];for(;r<n.length;)if(n[r++])return-1;return e}_isDegenerate(t){return!A(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){const n=this._root.bounds,e=this._root.halfSize;return t.radius<=e&&t.center[0]>=n.center[0]-e&&t.center[0]<=n.center[0]+e&&t.center[1]>=n.center[1]-e&&t.center[1]<=n.center[1]+e&&t.center[2]>=n.center[2]-e&&t.center[2]<=n.center[2]+e}_nodeToJSON(t){const n=t.children.map(t=>t?this._nodeToJSON(t):null),e=t.residents?.map(t=>this.objectToBoundingSphere(t)),r=t.terminals?.map(t=>this.objectToBoundingSphere(t));return{children:n,residents:e,terminals:r}}}class l{constructor(){this.bounds=new u.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,n,e,r=this.depth){return this.node=null!=t?t:l.createEmptyNode(),n&&this.bounds.copyFrom(n),this.halfSize=e,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*T}advance(t){let n=this.node.children[t];n||(n=l.createEmptyNode(),this.node.children[t]=n),this.node=n,this.halfSize/=2,this.depth++;const e=j[t];return this.bounds.center[0]+=e[0]*this.halfSize,this.bounds.center[1]+=e[1]*this.halfSize,this.bounds.center[2]+=e[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,n,e=!1){for(;;){if(this.isTerminalFor(t))return n?.(this,-1),!0;if(this.isLeaf()){if(!e)return n?.(this,-1),!1;this.node.residents=null}const r=this._childIndex(t);n?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){const n=this.bounds.center;return(n[0]<t.center[0]?1:0)+(n[1]<t.center[1]?2:0)+(n[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new i.A({shrink:!0}),residents:new i.A({shrink:!0})}}static{this._pool=new r.A(()=>new l)}static acquire(){return l._pool.acquire()}static release(t){l._pool.release(t)}static clearPool(){l._pool.prune()}}function*d(t,n=()=>!0){const e=[l.acquire().init(t)];for(;0!==e.length;){const t=e.pop();if(n(t)){if(yield t,!t.isLeaf())for(let n=0;n<t.node.children.length;n++)t.node.children[n]&&e.push(l.acquire().init(t).advance(n));l.release(t)}}}function m(t,n){const e=d(t,n);for(const t of e);}function M(t,n,e,r=1){let i=l.acquire().init(t);const s=[i];for(function(t,n,e){if(!D.length)for(let t=0;t<8;++t)D.push({index:0,distance:0});for(let e=0;e<8;++e){const r=j[e];D.data[e].index=e,D.data[e].distance=w(t,n,r)}D.sort((t,n)=>t.distance-n.distance);for(let t=0;t<8;++t)e[t]=D.data[t].index}(e,r,B);0!==s.length;){if(i=s.pop(),n(i)&&!i.isLeaf())for(let t=7;t>=0;--t){const n=B[t];i.node.children[n]&&s.push(l.acquire().init(i).advance(n))}l.release(i)}}function b(t,n,e){N.clear();const r=e.advanceTo(n,(t,n)=>{N.push(t.node),N.push(n)})?e.node.terminals:e.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=N.length-2;t>=0&&g(N.data[t],N.data[t+1]);t-=2);}function g(t,n){return n>=0&&(t.children[n]=null),!!_(t)&&(null===t.residents&&(t.residents=new i.A({shrink:!0})),!0)}function _(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let n=0;n<t.children.length;n++)if(t.children[n])return!1;return!0}function p(t,n){t[0]=Math.min(t[0],n.center[0]-n.radius),t[1]=Math.min(t[1],n.center[1]-n.radius),t[2]=Math.min(t[2],n.center[2]-n.radius)}function v(t,n){t[0]=Math.max(t[0],n.center[0]+n.radius),t[1]=Math.max(t[1],n.center[1]+n.radius),t[2]=Math.max(t[2],n.center[2]+n.radius)}function y(t,n,e){e[0]=t[0]+n,e[1]=t[1]+n,e[2]=t[2]+n}function x(t,n,e){C[0]=1/0,C[1]=1/0,C[2]=1/0,P[0]=-1/0,P[1]=-1/0,P[2]=-1/0;for(const e of t){const t=n(e);A(t.radius)&&(p(C,t),v(P,t))}(0,s.Cc)(e.center,C,P,.5),e.radius=Math.max(P[0]-C[0],P[1]-C[1],P[2]-C[2])/2}function S(t,n){let e,r=1/0;for(let i=0;i<8;++i){const s=w(t,n,O[i]);s<r&&(r=s,e=O[i])}return e}function w(t,n,e){return n*(t[0]*e[0]+t[1]*e[1]+t[2]*e[2])}function A(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const j=[(0,o.fA)(-1,-1,-1),(0,o.fA)(1,-1,-1),(0,o.fA)(-1,1,-1),(0,o.fA)(1,1,-1),(0,o.fA)(-1,-1,1),(0,o.fA)(1,-1,1),(0,o.fA)(-1,1,1),(0,o.fA)(1,1,1)],O=[(0,o.fA)(-1,-1,-1),(0,o.fA)(-1,-1,1),(0,o.fA)(-1,1,-1),(0,o.fA)(-1,1,1),(0,o.fA)(1,-1,-1),(0,o.fA)(1,-1,1),(0,o.fA)(1,1,-1),(0,o.fA)(1,1,1)],T=Math.sqrt(3),q=[null],I=new u.iy,E=(0,o.vt)(),C=(0,o.vt)(),P=(0,o.vt)(),N=new i.A,R=new u.iy,F=new u.iy,z=new u.iy,V=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],D=new i.A,B=[0,0,0,0,0,0,0,0]},56780(t,n,e){e.r(n),e.d(n,{default:()=>_});var r=e(5482),i=e(17676),s=e(24326),o=e(91429),a=e(35522),c=e(51850),u=e(11964),h=e(94008),f=e(78230),l=e(44801);function d(t,n,e){const r=new h.iy;return(0,a.hs)(r.center,t,.5),(0,a.Ln)(r.center,r.center,n,.5),r.radius=(0,a.Io)(r.center,t),(0,a.WQ)(r.center,r.center,e),r}class m{constructor(t,n,e){this.objectId=t,this.target=n,this.distance=e}}class M extends m{constructor(t,n,e){super(t,n,e),this.type="vertex"}}class b extends m{constructor(t,n,e,r,i){super(t,n,e),this.start=r,this.end=i,this.type="edge"}}let g=class{constructor(){this._idToComponent=new Map,this._components=new f.x(t=>t.bounds),this._edges=new f.x(t=>t.bounds),this._tmpLineSegment=(0,u.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,n){await Promise.resolve(),(0,i.Te)(n);const e=t;e.mbs=new h.iy(t.mbsJSON),await this._ensureEdgeLocations(e,n);const r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(e,t,r),r.length<1e3),e.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,n){const e=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){const{id:n,uid:r}=t;e.push({id:n,uid:r})}return!0},t.mbs),!e.length)return;const r={components:e},i=await this.remoteClient.invoke("fetchAllEdgeLocations",r,n??{});for(const t of i.components)this._setFetchEdgeLocations(t)}async add(t){const n=new v(t.id,new h.iy(t.bounds));return this._idToComponent.set(n.id,n),this._components.add([n]),{result:{}}}async remove(t){const n=this._idToComponent.get(t.id);if(n){const t=[];this._edges.forEachNeighbor(e=>(e.component===n&&t.push(e),!0),n.bounds),this._edges.remove(t),this._components.remove([n]),this._idToComponent.delete(n.id)}return{result:{}}}_setFetchEdgeLocations(t){const n=this._idToComponent.get(t.id);if(null==n||t.uid!==n.uid)return;const e=l.HY.createView(t.locations),r=new Array(e.count),i=(0,c.vt)(),s=(0,c.vt)();for(let o=0;o<e.count;o++){e.position0.getVec(o,i),e.position1.getVec(o,s);const a=d(i,s,t.origin),c=new y(n,o,a);r[o]=c}this._edges.add(r);const{objectIds:o,origin:a}=t;n.info={locations:e,objectIds:o,origin:a}}_addCandidates(t,n,e){const{info:r}=n.component,{origin:i,objectIds:s}=r,o=r.locations,c=o.position0.getVec(n.index,this._tmpP1),u=o.position1.getVec(n.index,this._tmpP2);(0,a.WQ)(c,c,i),(0,a.WQ)(u,u,i);const h=s[o.componentIndex.get(n.index)];this._addEdgeCandidate(t,h,c,u,e),p(t,h,c,e),p(t,h,u,e)}_addEdgeCandidate(t,n,e,r,i){if(!t.returnEdge)return;const s=t.mbs.center,o=(0,u.Cr)(e,r,this._tmpLineSegment),h=(0,u._I)(o,s,this._tmpP3);t.mbs.contains(h)&&i.push(new b(n,(0,c.o8)(h),(0,a.Io)(s,h),(0,c.o8)(e),(0,c.o8)(r)))}};g=(0,r.Cg)([(0,o.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],g);const _=g;function p(t,n,e,r){t.returnVertex&&t.mbs.contains(e)&&r.push(new M(n,(0,c.o8)(e),(0,a.Io)(t.mbs.center,e)))}class v{constructor(t,n){this.id=t,this.bounds=n,this.info=null,this.uid=(0,s.c)()}}class y{constructor(t,n,e){this.component=t,this.index=n,this.bounds=e}}}}]);
|