@arcgis/core 5.1.0-next.50 → 5.1.0-next.52
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/applications/Components/imageryUtils.d.ts +6 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/001492854799c35b53bb.js +1 -0
- package/assets/esri/core/workers/chunks/004f991251f09b36fb09.js +1 -0
- package/assets/esri/core/workers/chunks/027d733a99f50cadcf22.js +1 -0
- package/assets/esri/core/workers/chunks/03d85a706669aaf24d49.js +1 -0
- package/assets/esri/core/workers/chunks/0450133e81bce4b48b84.js +1 -0
- package/assets/esri/core/workers/chunks/07e791530677f7e70f32.js +30 -0
- package/assets/esri/core/workers/chunks/085778ecd39f46324a6b.js +1 -0
- package/assets/esri/core/workers/chunks/08dce0019b52042b01fa.js +1 -0
- package/assets/esri/core/workers/chunks/0d8294982853308225da.js +1 -0
- package/assets/esri/core/workers/chunks/156aecac067213642aae.js +1 -0
- package/assets/esri/core/workers/chunks/{942e4d69b140bc2f97c9.js → 15a45e26964c2eb381a6.js} +1 -1
- package/assets/esri/core/workers/chunks/184e9147f7a2f0ae5915.js +1 -0
- package/assets/esri/core/workers/chunks/19f59a2a97c33ff92650.js +1 -0
- package/assets/esri/core/workers/chunks/{54420b66fd53d6e19ba5.js → 278eecd729bed2832702.js} +1 -1
- package/assets/esri/core/workers/chunks/{74814678942a47fd48fb.js → 28ac3a75130fe2b57ac7.js} +1 -1
- package/assets/esri/core/workers/chunks/{a3174b23aabcef2fa98c.js → 29c91b5c9ddcea85f39a.js} +1 -1
- package/assets/esri/core/workers/chunks/2b7d020367cb4ebb3c3d.js +1 -0
- package/assets/esri/core/workers/chunks/30654845ca1334f1c206.js +1 -0
- package/assets/esri/core/workers/chunks/3104b10770903c265626.js +1 -0
- package/assets/esri/core/workers/chunks/33f00633131581e06328.js +1 -0
- package/assets/esri/core/workers/chunks/{32a51ce8e1a362115c89.js → 354b309c8225336bc1e5.js} +1 -1
- package/assets/esri/core/workers/chunks/{569e4479707bc6881d97.js → 35dbe1eeb6932b03aea2.js} +1 -1
- package/assets/esri/core/workers/chunks/386435341e949f5573b4.js +2 -0
- package/assets/esri/core/workers/chunks/3874362bf7d43adc41bb.js +1 -0
- package/assets/esri/core/workers/chunks/38dc1c4b8721efd4a165.js +1 -0
- package/assets/esri/core/workers/chunks/39f3bea123f20c816ab2.js +1 -0
- package/assets/esri/core/workers/chunks/3fa5f102b6f77c523a76.js +1 -0
- package/assets/esri/core/workers/chunks/{a422cfe1e2afe0722acd.js → 3fcc8c455af56ae89030.js} +1 -1
- package/assets/esri/core/workers/chunks/42f3fdad1728433b3510.js +1 -0
- package/assets/esri/core/workers/chunks/436941ec88439667022e.js +1 -0
- package/assets/esri/core/workers/chunks/{25946077568ab14c7bfc.js → 440f76c397a813b0dcf9.js} +1 -1
- package/assets/esri/core/workers/chunks/4812482f28f7205b0938.js +1 -0
- package/assets/esri/core/workers/chunks/5317cbef0aac29761575.js +1 -0
- package/assets/esri/core/workers/chunks/54a9e17d6c0fef6a9146.js +1 -0
- package/assets/esri/core/workers/chunks/55985c9c48b8e1d1c634.js +1 -0
- package/assets/esri/core/workers/chunks/55edd712c6d2d044e550.js +1 -0
- package/assets/esri/core/workers/chunks/5a573fa1012092328b88.js +1 -0
- package/assets/esri/core/workers/chunks/5f06a57b4f7d7de16bbf.js +1 -0
- package/assets/esri/core/workers/chunks/60ad54e5707d4414d8b9.js +1 -0
- package/assets/esri/core/workers/chunks/{55070344f08ef0ed2a30.js → 60cee9a44929decd2474.js} +1 -1
- package/assets/esri/core/workers/chunks/63b9e4a7dad358605c38.js +1 -0
- package/assets/esri/core/workers/chunks/{d0adf059085ddf7151dd.js → 64845b1f53eca9db1229.js} +1 -1
- package/assets/esri/core/workers/chunks/66d4cbb35d0c290150bf.js +1 -0
- package/assets/esri/core/workers/chunks/677d3674cb2c0c05fb7e.js +1 -0
- package/assets/esri/core/workers/chunks/7100c9038739121c2c4b.js +1 -0
- package/assets/esri/core/workers/chunks/{6c49ac7888679b9f7823.js → 720a33a7f118d2769133.js} +1 -1
- package/assets/esri/core/workers/chunks/{9f7b5749f3ceca8d5978.js → 7480bd6f892abf444cac.js} +31 -31
- package/assets/esri/core/workers/chunks/{3a7c02616d942c81257d.js → 792219a079c28bcdc003.js} +1 -1
- package/assets/esri/core/workers/chunks/794f604d4267e374f7dd.js +1 -0
- package/assets/esri/core/workers/chunks/7ae8f73c8e2afae98ecb.js +1 -0
- package/assets/esri/core/workers/chunks/7d4af7e2cb2f234e12eb.js +1 -0
- package/assets/esri/core/workers/chunks/807b12ace0099300b9b9.js +1 -0
- package/assets/esri/core/workers/chunks/{b98dd9fc9a7e3ff6bd49.js → 816a4b03f2ea49238a6c.js} +1 -1
- package/assets/esri/core/workers/chunks/842b442cc012d0797333.js +1 -0
- package/assets/esri/core/workers/chunks/8903ff28896bd6f34b0d.js +1 -0
- package/assets/esri/core/workers/chunks/89e9bc8789b100316136.js +1 -0
- package/assets/esri/core/workers/chunks/8afe32d3db9669f972bc.js +1 -0
- package/assets/esri/core/workers/chunks/91fd28f50477d16e294e.js +1 -0
- package/assets/esri/core/workers/chunks/{278409028bc5af45b507.js → 93ceb74ac88ef460fe5f.js} +1 -1
- package/assets/esri/core/workers/chunks/98011b93acf3d5f0b5a2.js +1 -0
- package/assets/esri/core/workers/chunks/{cd491c37ba1ac381178c.js → 987dc23fdc0a8c7150b9.js} +1 -1
- package/assets/esri/core/workers/chunks/{25509953f19fbc4949a1.js → 992e74570b76f3f9e52e.js} +1 -1
- package/assets/esri/core/workers/chunks/{b1c5f69bd1400e66c635.js → 9ae90a4b281d4103e8bb.js} +1 -1
- package/assets/esri/core/workers/chunks/9c7fd5db0813bdc38582.js +1 -0
- package/assets/esri/core/workers/chunks/9f272445c285ee9abb7b.js +1 -0
- package/assets/esri/core/workers/chunks/a2fee1611319665e6aed.js +1 -0
- package/assets/esri/core/workers/chunks/a644e30f65347ce846ed.js +1 -0
- package/assets/esri/core/workers/chunks/a64daa4945923a178fe5.js +1 -0
- package/assets/esri/core/workers/chunks/a85575a8d1da09280cd7.js +1 -0
- package/assets/esri/core/workers/chunks/ac4f7309a249132c22da.js +1 -0
- package/assets/esri/core/workers/chunks/aeb1900cfdd0e51cc5f8.js +1 -0
- package/assets/esri/core/workers/chunks/ba62f3aa811430787863.js +1 -0
- package/assets/esri/core/workers/chunks/{7b48c102a44606291f82.js → bb659dcd297b895830df.js} +1 -1
- package/assets/esri/core/workers/chunks/c03d0091a6f385b9ce8d.js +1 -0
- package/assets/esri/core/workers/chunks/c48d1ee37c207bfb0aac.js +1 -0
- package/assets/esri/core/workers/chunks/c4a9006cc6d2938570e0.js +1 -0
- package/assets/esri/core/workers/chunks/c692ea68509bddbf7b42.js +1 -0
- package/assets/esri/core/workers/chunks/{a4a4ce33de6432ba4dc3.js → c6a0e770c1a89d3b5913.js} +1 -1
- package/assets/esri/core/workers/chunks/{b49b608c0d58a9b55fa2.js → cc1f3a2f281a2f6e0f94.js} +1 -1
- package/assets/esri/core/workers/chunks/{73e384fd93cf22503d84.js → cdf6ad970dc1893dac58.js} +1 -1
- package/assets/esri/core/workers/chunks/{b45fdc04d399d2849d63.js → daf65bccc45dc5c400ae.js} +1 -1
- package/assets/esri/core/workers/chunks/df3e79b56c37156e7895.js +1 -0
- package/assets/esri/core/workers/chunks/df8b80b17e371c9be4e6.js +1 -0
- package/assets/esri/core/workers/chunks/e77198f8ab47441423c5.js +1 -0
- package/assets/esri/core/workers/chunks/e786da40a1c87bed64ca.js +1 -0
- package/assets/esri/core/workers/chunks/e8aafef6342c50340a27.js +1 -0
- package/assets/esri/core/workers/chunks/ec00348d74e29f48613a.js +1 -0
- package/assets/esri/core/workers/chunks/{284ce99af7bdd73dc7e9.js → ec65c9c72507ef9a9cf9.js} +1 -1
- package/assets/esri/core/workers/chunks/{cdec811b66d98e76be9e.js → eedeff8b344ff699b0b9.js} +1 -1
- package/assets/esri/core/workers/chunks/f4201e7dcae224d0caf0.js +1 -0
- package/assets/esri/core/workers/chunks/f4d31d96681b649ddc95.js +1 -0
- package/assets/esri/core/workers/chunks/{08d76c600926d7642a8b.js → f5fd59291cb161fdc05b.js} +1 -1
- package/assets/esri/core/workers/chunks/f7cc05fbfc97b4d36eba.js +1 -0
- package/assets/esri/core/workers/chunks/{6aba8c3bce5f68568e3a.js → f7fb121169b7e5a5adbc.js} +1 -1
- package/assets/esri/core/workers/chunks/f9d369a4683f88ee9d76.js +1 -0
- package/assets/esri/core/workers/chunks/fc534c94d55331578195.js +1 -0
- package/assets/esri/core/workers/chunks/{3e61e7805dc6ff284831.js → fdf8fe0f50a9ae548c16.js} +1 -1
- package/chunks/Fog.glsl.js +1 -1
- package/chunks/GlowBlur.glsl.js +2 -2
- package/chunks/GlowComposition.glsl.js +6 -6
- package/chunks/HUDMaterial.glsl.js +1 -1
- package/chunks/OITBlend.glsl.js +9 -9
- package/config.js +1 -1
- package/core/timeUtils.d.ts +68 -0
- package/geometry/support/aaBoundingBox.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/kernel.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/support/Sublayer.d.ts +15 -0
- package/layers/support/Sublayer.js +1 -1
- package/package.json +3 -3
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/brushes.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTexture.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +2 -0
- 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/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/support/Tiles3DBVH.js +2 -0
- package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
- package/views/3d/support/ElevationRange.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialGlobalParameters.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutputConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +5 -5
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/fboFormatUtils.js +2 -0
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/fog/FogTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowBlurTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowCompositionTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/Dithering.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +3 -3
- package/views/3d/webgl-engine/shaders/oitResolution.glsl.js +1 -1
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/3d/webgl.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/selection/types.d.ts +92 -1
- package/views/support/selectionUtils.js +1 -1
- package/views/support/waitForResources.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +2 -2
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/LayerList/ListItemPanel.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/support/SelectionList/FeatureItem.js +1 -1
- package/widgets/support/SelectionList/LayerItem.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/assets/esri/core/workers/chunks/04b04548d4eb0941a01e.js +0 -1
- package/assets/esri/core/workers/chunks/06223d5d8281e5af14c5.js +0 -1
- package/assets/esri/core/workers/chunks/07bdcb622ea59fdbb3a6.js +0 -1
- package/assets/esri/core/workers/chunks/0d59f5cd3fdd7d6fd693.js +0 -1
- package/assets/esri/core/workers/chunks/0eb57ef4a1b387c951d6.js +0 -1
- package/assets/esri/core/workers/chunks/136859ef29a3269c4128.js +0 -1
- package/assets/esri/core/workers/chunks/1e018de43becf66cceaa.js +0 -1
- package/assets/esri/core/workers/chunks/236b4ab3da0bc8f788a2.js +0 -1
- package/assets/esri/core/workers/chunks/2379c64b0ca30814a815.js +0 -1
- package/assets/esri/core/workers/chunks/35d115bde474c380c791.js +0 -1
- package/assets/esri/core/workers/chunks/3f6ebd82551c2000912e.js +0 -1
- package/assets/esri/core/workers/chunks/4577df99c92c7ec0f9de.js +0 -1
- package/assets/esri/core/workers/chunks/4869e2f35aaf6b058281.js +0 -1
- package/assets/esri/core/workers/chunks/4b3545965b11a54184d4.js +0 -2
- package/assets/esri/core/workers/chunks/4c6fc6d19fe519ce7bfc.js +0 -1
- package/assets/esri/core/workers/chunks/58f47dea6d8665611eff.js +0 -1
- package/assets/esri/core/workers/chunks/5b2fe488a461bc433f59.js +0 -1
- package/assets/esri/core/workers/chunks/5c0b3c76a7bc971c61dc.js +0 -1
- package/assets/esri/core/workers/chunks/5df9d2a255c9d63ae7df.js +0 -1
- package/assets/esri/core/workers/chunks/5f53d7d6bc9b67b2f357.js +0 -1
- package/assets/esri/core/workers/chunks/5ffe664eda334ad73175.js +0 -1
- package/assets/esri/core/workers/chunks/64fd3561bc94570ee954.js +0 -1
- package/assets/esri/core/workers/chunks/650614a9e4871714c42e.js +0 -1
- package/assets/esri/core/workers/chunks/66e35e38aea978f91a0c.js +0 -1
- package/assets/esri/core/workers/chunks/696f645349249f26090c.js +0 -1
- package/assets/esri/core/workers/chunks/6d5bb00157e20ad90fc0.js +0 -1
- package/assets/esri/core/workers/chunks/70f0d66e5e6d5d2163f3.js +0 -1
- package/assets/esri/core/workers/chunks/768bbc910be6c65ac107.js +0 -1
- package/assets/esri/core/workers/chunks/76effcc35b3962cd5535.js +0 -1
- package/assets/esri/core/workers/chunks/777390e820b3824dc265.js +0 -1
- package/assets/esri/core/workers/chunks/7948d6f14ae44d346d88.js +0 -1
- package/assets/esri/core/workers/chunks/797bf402489b3677a5f7.js +0 -1
- package/assets/esri/core/workers/chunks/7a4cc1133e4410271b00.js +0 -1
- package/assets/esri/core/workers/chunks/7dba4b04c148f03fdf21.js +0 -1
- package/assets/esri/core/workers/chunks/87c9a1fc9f2a392b78f5.js +0 -1
- package/assets/esri/core/workers/chunks/88426877d625ea333143.js +0 -1
- package/assets/esri/core/workers/chunks/8967a02f394a63f11030.js +0 -1
- package/assets/esri/core/workers/chunks/8c210529a28addb94ea0.js +0 -1
- package/assets/esri/core/workers/chunks/8d3c508995253cbe083f.js +0 -1
- package/assets/esri/core/workers/chunks/8e18ac7b22d8dca1e1e2.js +0 -1
- package/assets/esri/core/workers/chunks/8e3cb1c584951c3d1eb7.js +0 -1
- package/assets/esri/core/workers/chunks/908f171b9c512d738dea.js +0 -1
- package/assets/esri/core/workers/chunks/922484b43803ab4e4319.js +0 -1
- package/assets/esri/core/workers/chunks/947a715b608c8affd812.js +0 -1
- package/assets/esri/core/workers/chunks/9bd68abc6b5b07b2add3.js +0 -1
- package/assets/esri/core/workers/chunks/9e55f97291062985560b.js +0 -1
- package/assets/esri/core/workers/chunks/a90883ff02c0cc6450c2.js +0 -1
- package/assets/esri/core/workers/chunks/ac9722a7897c994f11ab.js +0 -1
- package/assets/esri/core/workers/chunks/b1ac09d8fa340d194aa2.js +0 -1
- package/assets/esri/core/workers/chunks/c04c457f5295febb3c39.js +0 -1
- package/assets/esri/core/workers/chunks/cb2fbe585c0827eecf70.js +0 -1
- package/assets/esri/core/workers/chunks/cf74d1605ad2f21699e7.js +0 -1
- package/assets/esri/core/workers/chunks/d50e6681ecb9612e4528.js +0 -1
- package/assets/esri/core/workers/chunks/d6eddb94f5f2e9759bd0.js +0 -1
- package/assets/esri/core/workers/chunks/dcc3285e4ab2c38709bd.js +0 -1
- package/assets/esri/core/workers/chunks/e25bbd7cc553b1d2e208.js +0 -1
- package/assets/esri/core/workers/chunks/e72ca52d930afb5650af.js +0 -30
- package/assets/esri/core/workers/chunks/e96529e144c3268a04f7.js +0 -1
- package/assets/esri/core/workers/chunks/f379f94adbe79dc305a2.js +0 -1
- package/assets/esri/core/workers/chunks/f4e5163efa2a0567ee19.js +0 -1
- package/assets/esri/core/workers/chunks/f76833254f842fb0cd9a.js +0 -1
- package/assets/esri/core/workers/chunks/f9abae8d07002fe04a08.js +0 -1
- package/assets/esri/core/workers/chunks/ff6c4f8420140b9f9577.js +0 -1
- package/assets/esri/core/workers/chunks/ff75fb0fce51ac12e656.js +0 -1
- package/assets/esri/core/workers/chunks/ffe9fa5111c149ddef49.js +0 -1
- package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +0 -2
- package/views/2d/engine/webgl/brushes/WGLBrushTileDebugInfo.js +0 -2
- /package/assets/esri/core/workers/chunks/{4b3545965b11a54184d4.js.LICENSE.txt → 386435341e949f5573b4.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3135,9397],{52106(e,t,n){n.d(t,{A:()=>I});var r,i,o=n(5482),s=n(37838),a=n(69540),l=n(51447),u=n(25482),c=n(53966),p=n(36708),f=n(24326),h=n(91429),y=n(12195),d=n(65864),m=n(50498),g=n(55156),v=n(60950),b=n(54339),M=n(94128),x=n(33910);function w(e){if(null==e)return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let I=class extends((0,a.OU)(u.o)){static{r=M.Z}static{i=this}constructor(e){super(e),this[r]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:w(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,y.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(i.action=r),"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,o.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,d.rS)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,h.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,h.MZ)({value:null,types:m.yR,json:{read:d.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,h.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,h.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,h.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,h.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,h.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,h.MZ)({value:null,types:x.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=i=(0,o.Cg)([(0,h.$K)("esri.Graphic")],I)},69052(e,t,n){n.d(t,{hr:()=>i,ie:()=>l,uC:()=>a});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))},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(e,t,n,r,i,o,s,a,l,u,c,p,f,h,y,d){return[e,t,n,r,i,o,s,a,l,u,c,p,f,h,y,d]}},Symbol.toStringTag,{value:"Module"}))},69397(e,t,n){n.d(t,{Qf:()=>l,Qh:()=>s,RS:()=>i,Ul:()=>h,i5:()=>f,lM:()=>o,qK:()=>c});var r=n(34275);const i=16;function o(e){if(!e)return 0;let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=p;for(let r=0;r<t;r++)n+=a(e[r]);return n}(e);let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?s(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return i;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,i):0:0),0)}function u(e,t){return p+e.length*t}const c=32,p=16,f=145,h=64},13069(e,t,n){n.d(t,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},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,w5:()=>u});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:x,6:null,8:null,0:null,3:d,11:m,2:h,4:T},5:{5:h,7:null,9:null,10:h,1:x,6:null,8:null,0:null,3:d,11:m,2:h,4:T},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:y,7:null,9:null,10:y,1:function(e,t,n,r){const i=e[t]/N,o=Z-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){y(e,t,n,r),m(n,r,n,r)},2:y,4:function(e,t,n,r){y(e,t,n,r),T(n,r,n,r)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,n,r){C(e,t,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){C(e,t,n,r),d(n,r,n,r)},11:function(e,t,n,r){C(e,t,n,r),m(n,r,n,r)},2:C,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),d(n,r,n,r)},11:function(e,t,n,r){A(e,t,n,r),m(n,r,n,r)},2:A,4:function(e,t,n,r){A(e,t,n,r),T(n,r,n,r)}},6:{5:null,7:S,9:null,10:S,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8: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:x,6:M,8:b,0:null,3:d,11:m,2:h,4:T},11:{5:g,7:null,9:null,10:g,1:function(e,t,n,r){g(e,t,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){g(e,t,n,r),d(n,r,n,r)},11:h,2:g,4:function(e,t,n,r){g(e,t,n,r),T(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(O.source.spatialReference===e&&O.dest.spatialReference===t)return O;const n=f(e,O.source),r=f(t,O.dest);return 0===n&&0===r?(0,l.aI)(e,t)?O.projector=h:O.projector=null:O.projector=u[n][r],O}function f(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 y(e,t,n,r){n[r]=j*(e[t]/N),n[r+1]=j*(Z-2*Math.atan(Math.exp(-e[t+1]/N))),n[r+2]=e[t+2]??0}function d(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 m(e,t,n,r){n[r]=e[t]*P,n[r+1]=e[t+1]*P,n[r+2]=e[t+2]??0}function g(e,t,n,r){n[r]=e[t]*L,n[r+1]=e[t+1]*L,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 x(e,t,n,r){v(e,t,n,r,s.$O.radius)}function w(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++]=j*p,n[i++]=j*c,n[i]=u-o}function I(e,t,n,r){w(e,t,n,r,s.Sw.radius)}function S(e,t,n,r){w(e,t,n,r,s.sH.radius)}function A(e,t,n,r){w(e,t,n,r,s.$O.radius)}function T(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 C(e,t,n,r){const i=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let c,p,f,h,y,d,m,g,v,b,M,x,w,I,S,A,T,C,O,R,Z;c=Math.abs(u),p=o*o+l*l,f=Math.sqrt(p),h=p+u*u,y=Math.sqrt(h),R=Math.atan2(l,o),d=u*u/h,m=p/h,I=i.a2/y,S=i.a3-i.a4/y,m>.3?(g=c/y*(1+m*(i.a1+I+d*S)/y),O=Math.asin(g),b=g*g,v=Math.sqrt(1-b)):(v=f/y*(1-d*(i.a5-I-m*S)/y),O=Math.acos(v),b=1-v*v,g=Math.sqrt(b)),M=1-s.$O.eccentricitySquared*b,x=s.$O.radius/Math.sqrt(M),w=i.a6*x,I=f-x*v,S=c-w*g,T=v*I+g*S,A=v*S-g*I,C=A/(w/M+T),O+=C,Z=T+A*C/2,u<0&&(O=-O),n[r++]=j*R,n[r++]=j*O,n[r]=Z}const O={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},R=(0,r.kU)(1),j=(0,r.KJ)(1),Z=.5*Math.PI,N=s.$O.radius,P=N*Math.PI/180,L=180/(N*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>B,initializeProjection:()=>W,isEqualBaseGCS:()=>V,isLoaded:()=>N,isLoadedOrLoad:()=>P,isLoadedOrLoadFor:()=>L,load:()=>_,project:()=>E,projectAsync:()=>$,projectExtent:()=>ie,projectMany:()=>k,projectMultipoint:()=>X,projectOrLoad:()=>q,projectOrLoadMany:()=>z,projectPoint:()=>Y,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>K,requiresLoad:()=>F,test:()=>D,tryProject:()=>G,unload:()=>U});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),f=n(48526),h=n(86738),y=n(39829),d=n(82799),m=n(16930),g=n(98764),v=n(159),b=n(9762),M=n(49208);function x(e,t,n,r,i,o){return w[0]=e,w[1]=t,w[2]=n,(0,b.projectBuffer)(w,r,0,i,o,0)}const w=(0,a.vt)();var I=n(60408),S=n(21325),A=n(52006);let T=null,C=null,O=null,R=null,j={};const Z=new s.I;function N(){return!!(C?.isLoaded()&&O?.isLoaded()&&R?.isLoaded())}function P(){return!!N()||((0,o.gc)(Z),_(),!1)}function L(e,t){return!e||!t||B(e,t)||P()}function F(e,t){return!B(e,t)&&!N()}async function _(e){null==T&&(T=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(C=e,C.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(O=e,O.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(R=e,R.load()))])),await T,(0,i.Te)(e),Z.notify()}function E(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),k(e,e[0].spatialReference,t,n)):((0,l.f)(e),k([e],e.spatialReference,t,n)[0])}function k(e,t,n,r){if(null==t||null==n)return e;if(B(t,n,r))return e.map(e=>K(e,t,n));if(null==r?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>K(e,t,m.A.WGS84)),m.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return k(e,t,m.A.WGS84).map(e=>K(e,m.A.WGS84,n));if(!N())throw new J;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=j[e];i||(i=R.getTransformation(t,n)||new v.A,j[e]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?C.executeMany(e,n,r):O.executeMany(e,n,r)}function G(e,t,n){try{return E(e,t,n)}catch(e){return null}}function q(e,t){const n=z([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 z(e,t,n){if(!N())for(const n of e)if(null!=n&&!(0,S.aI)(n.spatialReference,t)&&(0,S.fn)(n.spatialReference)&&(0,S.fn)(t)&&!B(n.spatialReference,t))return(0,o.gc)(Z),{pending:_(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,S.aI)(e.spatialReference,t)?e:(0,S.fn)(e.spatialReference)&&(0,S.fn)(t)?E(e,t,n):null)}}class J extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){T=null,C=null,O=null,R=null,j={}}const D={get loadPromise(){return T}};async function $(e,t,n){if((0,i.Te)(n),!e)return e;const r=z(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,i.Te)(n),$(e,t,n);const o=r.geometries??[];return Array.isArray(e)?o:o[0]}function B(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,S.aI)(e,t)||(0,S.fn)(e)&&(0,S.fn)(t)&&!!(0,M.jd)(e,t))}function V(e,t){if((0,S.aI)(e,t))return!0;if(!(0,S.fn)(e)||!(0,S.fn)(t))return!1;const n=(0,S.oT)(e)||(0,S.K8)(e)||(0,S.x1)(e),r=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t);return n&&r}async function W(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&&!B(t,n,i))return _(r)}else if(e&&t&&!B(e,t,n))return _(r);return(0,i.NO)(r)}function K(e,t,n){return e?(0,I.fT)(e)?H(e,t,new h.A,n,0):(0,I.ZC)(e)?oe(e,t,new c.A,n,0):(0,I.Bi)(e)?re(e,t,new y.A,n,0):(0,I.Rg)(e)?te(e,t,new d.A,n,0):(0,I.U9)(e)?Q(e,t,new f.A,n,0):null:null}function Y(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,n,r)}function H(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 X(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,r)}function Q(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(!x(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]),x(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,S.aI)(t,g.Y0)}const ue=(0,a.vt)()},98764(e,t,n){n.d(t,{GD:()=>s,Y0:()=>u,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===f?n=a:e===h&&(n=l)}}}return p.set(e,n),n}const p=new Map,f=a.wkt.toUpperCase(),h=l.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>u,cj:()=>l,jh:()=>o,l5:()=>a,xm:()=>s});var r=n(34275),i=n(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function s(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function l(e){return[...e]}function u(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>b,DC:()=>p,Ej:()=>h,Ie:()=>g,Jt:()=>v,Ne:()=>y,RF:()=>c,aI:()=>x,fA:()=>s,gE:()=>l,hZ:()=>m,iT:()=>f,is:()=>M,qv:()=>w,vI:()=>d,vY:()=>a,v_:()=>I,vt:()=>o,w1:()=>u});var r=n(5443),i=(n(19419),n(4197));function o(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,n,r,i,s,a=o()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=s,a}function a(e,t=o()){return function(e,t,n,r=o()){return m(r,w),function(e,t,n=0,r=t.length/3){let i=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),o=Math.min(o,t[n+3*e+1]),s=Math.min(s,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),l=Math.max(l,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=i,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(r,e,t,n),r}(e,0,e.length/3,t)}function l(e,t=(0,i.jh)(24)){const[n,r,o,s,a,l]=e;return t[0]=n,t[1]=r,t[2]=o,t[3]=n,t[4]=r,t[5]=l,t[6]=n,t[7]=a,t[8]=o,t[9]=n,t[10]=a,t[11]=l,t[12]=s,t[13]=r,t[14]=o,t[15]=s,t[16]=r,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function h(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function y(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function d(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?m(e,w):o(w)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function b(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function M(e){return 6===e.length}function x(e,t,n){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];o()},34403(e,t,n){n.d(t,{TP:()=>s});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},17136(e,t,n){n.d(t,{Y_:()=>O,O7:()=>T,el:()=>A});var r=n(92602),i=n(69052),o=n(49186),s=n(53966),a=n(39829),l=n(82799),u=n(16930),c=n(80754),p=n(21325),f=n(28735),h=n(11254),y=n(60408),d=n(65864),m=n(2272),g=n(84952),v=n(92300);const b=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function M(e){return"polygon"===e[0].type}function x(e){return"polyline"===e[0].type}function w(e,t,n){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw b().error(e),new o.A("internal:geometry",e)}const n=(0,c.r8)(e),r=[];for(const e of n){const n=[];r.push(n),n.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const i=e[r][0],o=e[r][1],s=e[r+1][0],a=e[r+1][1],l=Math.sqrt((s-i)*(s-i)+(a-o)*(a-o)),u=(a-o)/l,c=(s-i)/l,p=l/t;if(p>1){for(let e=1;e<=p-1;e++){const r=e*t,s=c*r+i,a=u*r+o;n.push([s,a])}const e=(l+Math.floor(p-1)*t)/2,r=c*e+i,s=u*e+o;n.push([r,s])}n.push([s,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:r,spatialReference:e.spatialReference}):new l.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,f.ci)(t,!0)}return n&&(e=(0,c.kS)(e,n)),e}function I(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,c.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,c.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,c.kd)(r,t);e=e.clone().offset(n*(-2*t),0)}else if(r<n){const t=(0,c.kd)(r,n);e=e.clone().offset(t*(-2*n),0)}}return e}function S(e,t){let n=-1;for(let r=0;r<t.cutIndexes.length;r++){const i=t.cutIndexes[r],o=t.geometries[r],s=(0,c.r8)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const r=t[e][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,c.kd)(n,180);for(let n=0;n<t.length;n++){const t=o.getPoint(e,n);o.setPoint(e,n,t.clone().offset(r,0))}return!0}})}if(i===n){if(M(e))for(const t of(0,c.r8)(o))e[i]=e[i].addRing(t);else if(x(e))for(const t of(0,c.r8)(o))e[i]=e[i].addPath(t)}else n=i,e[i]=o}return e}async function A(e,t,n){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&b().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let o,s,u,M,x,T,C,O,R=0;const j=[],Z=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,s=(0,p.Vp)(o),u=o.isWebMercator,T=u?102100:4326,M=c.j7[T].maxX,x=c.j7[T].minX,C=c.j7[T].plus180Line,O=c.j7[T].minus180Line),s)if("mesh"===t.type)Z.push(t);else if("point"===t.type)Z.push(I(t.clone(),M,x));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>I(e,M,x)),Z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,s);Z.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,n=(0,c.kd)(e.xmin,x)*(2*M);let r=0===n?t.clone():(0,c.kS)(t.clone(),n);e.offset(n,0);let{xmin:i,xmax:o}=e;i=Number(i.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(C)&&o!==M?(R=o>R?o:R,r=w(r,u),j.push(r),Z.push("cut")):e.intersects(O)&&i!==x?(R=o*(2*M)>R?o*(2*M):R,r=w(r,u,360),j.push(r),Z.push("cut")):Z.push(r)}else Z.push(t.clone());else Z.push(t);else Z.push(t);let N=(0,c.kd)(R,M),P=-90;const L=N,F=new l.A;for(;N>0;){const e=360*N-180;F.addPath([[e,P],[e,-1*P]]),P*=-1,N--}if(j.length>0&&L>0){const t=S(j,await async function(e,t,n,r){const i=(0,m.Dl)(e),o=t[0].spatialReference,s={...r,responseType:"json",query:{...i.query,f:"json",sr:(0,p.YX)(o),target:JSON.stringify({geometryType:(0,y.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},a=await(0,h.A)(i.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,d.rS)(e);return t.spatialReference=o,t})}}(i,j,F,n)),r=[],o=[];for(let n=0;n<Z.length;n++){const i=Z[n];if("cut"!==i)o.push(i);else{const i=t.shift(),s=e[n];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&i.rings.length>=s.rings.length?(r.push(i),o.push("simplify")):o.push(u?(0,f.Gh)(i):i)}}if(!r.length)return o;const s=await async function(e,t,n){const r="string"==typeof e?(0,g.An)(e):e,i=t[0].spatialReference,o=(0,y.$B)(t[0]),s={...n,query:{...r.query,f:"json",sr:(0,p.YX)(i),geometries:JSON.stringify((0,v.X)(t))}},{data:a}=await(0,h.A)(r.path+"/simplify",s);return(0,v.V)(a.geometries,o,i)}(i,r,n),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(u?(0,f.Gh)(s.shift()):s.shift())}return a}const _=[];for(let e=0;e<Z.length;e++){const t=Z[e];if("cut"!==t)_.push(t);else{const e=j.shift();_.push(!0===u?(0,f.Gh)(e):e)}}return _}function T(e,t,n){const r=(0,p.Vp)(n);if(null==r)return e;const[i,o]=r.valid,s=2*o;let a=0,l=0;t>o?a=Math.ceil(Math.abs(t-o)/s):t<i&&(a=-Math.ceil(Math.abs(t-i)/s)),e>o?l=Math.ceil(Math.abs(e-o)/s):e<i&&(l=-Math.ceil(Math.abs(e-i)/s));let u=e+(a-l)*s;const c=u-t;return c>o?u-=s:c<i&&(u+=s),u}function C(e){const t=(0,p.Vp)(e);if(null==t)return null;const[n,r]=t.valid;return new i.hr(n,r)}const O=C(u.A.WGS84);C(u.A.WebMercator)},80754(e,t,n){n.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var r=n(82799),i=n(16930),o=n(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},83960(e,t,n){n.d(t,{X_:()=>o,oW:()=>a,zx:()=>s});var r=n(34727),i=n(86211);function o(e,t){const n=t||e.extent,r=e.width,o=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*o*i.dy*96:0}function s(e,t,n){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},55156(e,t,n){n.d(t,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&r in t?e[r]:void 0;var t}},7656(e,t,n){n.r(t),n.d(t,{default:()=>$});var r=n(5482),i=n(11254),o=n(7762),s=n(49186),a=n(81583),l=n(25728),u=n(17676),c=n(86211),p=n(91429),f=n(56507),h=n(35666),y=n(5443),d=n(83960),m=n(21325),g=n(4146),v=n(52136),b=n(98534),M=n(18768),x=n(63074),w=n(69208),I=n(16131),S=n(8303),A=n(54310),T=n(25036),C=n(91921),O=n(82935),R=n(10873),j=n(69622),Z=n(39516);function N(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const n=e.filter(e=>""!==e).map(e=>`'${e}'`);return n.push("''"),`${t} IN (${n.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var P=n(63389);const L={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let F=class extends j.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=N(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,P.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(L[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const n=N(this.floors,t),r=(0,Z.mA)(n,t.definitionExpression);return null!=r&&(e[t.id]=r),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,n=this.scale,r=t=>{t.visible&&(0===n||(0,d.zx)(n,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(r):e.unshift(t))};t?.forEach(r);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some((t,n)=>e[n]!==t)?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,r.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"dynamicLayers",null),(0,r.Cg)([(0,p.MZ)()],F.prototype,"floors",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"hasDynamicLayers",null),(0,r.Cg)([(0,p.MZ)()],F.prototype,"layer",null),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"layers",null),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"layerDefs",null),(0,r.Cg)([(0,p.MZ)({type:Number})],F.prototype,"scale",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"version",null),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"visibleSublayers",null),F=(0,r.Cg)([(0,p.$K)("esri.layers.support.ExportImageParameters")],F);var _=n(33446),E=n(15775),k=n(91908),G=n(88625),q=n(79677),z=n(56400),J=n(36005),U=n(43937);let D=class extends((0,x.dM)((0,O.e)((0,T.j)((0,C.I)((0,b.V)((0,M.b)((0,I.q)((0,S.A)((0,l.M)((0,A.J)((0,v.p)((0,w.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new F({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new G.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,u.sg)(async(e,t,r)=>{const{save:i,saveAs:o}=await n.e(390).then(n.bind(n,10390));switch(e){case 0:return i(this,t);case 1:return o(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const n=t.supportedImageFormatTypes;return n&&n.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,n,r){if(!this.loaded||!e)return;const i=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let o=!1;const s=(0,h.aB)(r.origin);let a;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===s){const e=this.createSublayersForOrigin("service").sublayers;o=(0,P.Zx)(i,e,2)}else if(s>3){const e=this.createSublayersForOrigin("portal-item");o=(0,P.Zx)(i,e.sublayers,(0,h.aB)(e.origin)),a=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:o,...r,minimumWritableOrigin:a};let c=o||this.hasVisibleLayersForOrigin(s);i.forEach(e=>{const t=e.write({},u);l.push(t),c=c||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),c&&(t.visibleLayers=i.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,n,r){const i=r?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=r?.floors??null,this._exportImageParameters.scale=r?.scale||(0,d.X_)({extent:e,width:t})*i;const o=this._exportImageParameters.toJSON(),s=!r?.rotation||this.version<10.3?{}:{rotation:-r.rotation},a=e?.spatialReference,l=(0,m.YX)(a);if(r?.scale&&e){const n=e.width/t*((0,c.GA)(e?.spatialReference)*c.dy);o.dpi=r.scale/n}o.dpi*=i;const u={};if(r?.timeExtent){const{start:e,end:t}=r.timeExtent.toJSON();u.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:l,imageSR:l,size:t+","+n,...o,...s,...u}}async fetchImage(e,t,n,r){const{data:i}=await this._fetchImage("image",e,t,n,r);return i}async fetchImageBitmap(e,t,n,r){const{data:i,url:o}=await this._fetchImage("blob",e,t,n,r);return(0,_.m)(i,o,r?.signal)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:n}=await(0,i.A)(this.url,t),{extent:r,fullExtent:o,timeExtent:s}=n,a=r||o;return{fullExtent:a&&y.A.fromJSON(a),timeExtent:s&&q.A.fromJSON({start:s[0],end:s[1]})}}loadAll(){return(0,a.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,k.D)(this,e)}async _fetchImage(e,t,n,r,o){const a={responseType:e,signal:o?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,n,r,o),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new s.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:e}=await(0,i.A)(l,a);return{data:e,url:l}}catch(e){if((0,u.zf)(e))throw e;throw new s.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:n}=await(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});n&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,r.Cg)([(0,p.MZ)((0,z.P6)("dateFieldsTimeReference"))],D.prototype,"dateFieldsTimeZone",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean})],D.prototype,"datesInUnknownTimezone",void 0),(0,r.Cg)([(0,p.MZ)()],D.prototype,"dpi",void 0),(0,r.Cg)([(0,p.MZ)()],D.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,p.MZ)()],D.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,p.MZ)()],D.prototype,"imageFormat",void 0),(0,r.Cg)([(0,J.w)("imageFormat",["supportedImageFormatTypes"])],D.prototype,"readImageFormat",null),(0,r.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],D.prototype,"imageMaxHeight",void 0),(0,r.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],D.prototype,"imageMaxWidth",void 0),(0,r.Cg)([(0,p.MZ)()],D.prototype,"imageTransparency",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],D.prototype,"isReference",void 0),(0,r.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],D.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,p.MZ)({type:["ArcGISMapServiceLayer"]})],D.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],D.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,p.MZ)((0,z.P6)("preferredTimeReference"))],D.prototype,"preferredTimeZone",void 0),(0,r.Cg)([(0,p.MZ)()],D.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,p.MZ)({type:o.A.ofType(E.A),json:{write:{ignoreOrigin:!0}}})],D.prototype,"sublayers",void 0),(0,r.Cg)([(0,U.K)("sublayers",{layers:{type:[E.A]},visibleLayers:{type:[f.jz]}})],D.prototype,"writeSublayers",null),(0,r.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],D.prototype,"listMode",void 0),(0,r.Cg)([(0,p.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],D.prototype,"type",void 0),(0,r.Cg)([(0,p.MZ)(R.OZ)],D.prototype,"url",void 0),D=(0,r.Cg)([(0,p.$K)("esri.layers.MapImageLayer")],D);const $=D},54339(e,t,n){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},82935(e,t,n){n.d(t,{B:()=>f,e:()=>h});var r=n(5482),i=n(91429),o=n(89317),s=n(30524),a=n(96184),l=n(73133),u=n(79677),c=n(10184),p=n(36005);const f={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},h=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,i=l.j.fromJSON(n.timeOffsetUnits);return r&&i?new c.A({value:r,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,r.Cg)([(0,i.MZ)({type:c.A})],n.prototype,"timeOffset",void 0),(0,r.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,r.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,r.Cg)([(0,i.MZ)(f)],n.prototype,"useViewTime",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],n),n}},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 f(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?f(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?f(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)},91908(e,t,n){n.d(t,{D:()=>o});var r=n(60694);const i=[];function o(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:n}=t;for(const t of i){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(n))return!1}return!0}i.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),i.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),i.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),i.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),i.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},92300(e,t,n){n.d(t,{V:()=>s,X:()=>o});var r=n(60408),i=n(65864);function o(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,n){const r=(0,i.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}},22671(e,t,n){n.d(t,{A:()=>v});var r,i=n(5482),o=n(52106),s=n(66552),a=n(25482),l=n(4718),u=n(91429),c=n(16930),p=n(60408),f=n(65864),h=n(50498),y=n(20437),d=n(36005),m=n(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=r=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,n,r){if(e)return void g.write(e,t,n,r);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,n,r)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,r=(0,f.rS)(e);return r&&!n&&t.spatialReference&&(r.spatialReference=c.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let n=0;n<t.features.length;n++){const r=t.features[n];if(r.geometry){const t=e?.[n];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,n],translate:[r,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((i-e)/n));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[r,i],scale:[o,s]}=n;let a=null,l=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;a=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;l=n=>null==n?n:n*t+e}const u=this._getHydrationFunction(e,e=>e*o+r,e=>i-e*s,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const r=c.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const o=e[t],s=n.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=o.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],n=l[e],i=n?.spatialReference;null==t||i||(t.spatialReference=r)}i.push(s)}return i}_quantizePoints(e,t,n){let r,i;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=n(a[1]);e===r&&s===i||(o.push([e-r,s-i]),r=e,i=s)}else r=t(a[0]),i=n(a[1]),o.push([r,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,p.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,o=r.length;e<o;e++){const o=r[e],s=this._quantizePoints(o,t,n);s&&i.push(s)}return i.length>0?((0,p.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,n);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,r,i){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,p.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];for(let e=0,i=r.length;e<i;e++){const i=r[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=n(a)}}if(r&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2]),n[3]=i(n[3])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=n(a)}if(r&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2]),t[3]=i(t[3])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],v.prototype,"features",void 0),(0,i.Cg)([(0,d.w)("features")],v.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,i.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,d.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=r=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1918,6061,6312,7837,7992,8125,9169,9397],{5482(e,t,n){function r(e,t,n,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(s=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");s&&(r=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>i,mS:()=>s}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function i(e){function t(t){e.error=e.hasError?new o(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function s(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(s);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(s,function(e){return t(e),s()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},15546(e,t,n){n.d(t,{a:()=>i,c:()=>o});var r=n(55537),s=n(83661);function o(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case r.G.enumPolygon:return a(e);case r.G.enumPolyline:return h(e.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case r.G.enumMultiPoint:return function(e){const t=new s.K(0),n=new s.K(0),r=e.getImpl(),o=r.getAttributeStreamRef(0),i=r.getPointCount(),a=new s.P;for(let e=0;e<i;e++)o.queryPoint2D(2*e,a),t.add(a.x),n.add(a.y);const u=new s.P;return u.setCoords(t.getResult(),n.getResult()),u.divThis(i)}(e);case r.G.enumEnvelope:return e.getCenterXY();case r.G.enumPoint:return e.getXY();default:return s.P.construct(Number.NaN,Number.NaN)}return s.P.construct(Number.NaN,Number.NaN)}function i(e,t){return a(e,t)}function a(e,t=-1){const n=new s.K(0),r=new s.K(0),o=e.getImpl();let i;const a=o.hasNonLinearSegments();let h;const f=o.getXY(0);if(-1===t){if(h=o.calculateArea2D(),0===h)return l(e);a&&(i=o.querySegmentIterator());for(let e=0,t=o.getPathCount();e<t;e++)u(f,o,e,n,r),a&&c(f,i,n,r)}else{if(h=o.calculateRingArea2D(t),0===h)return l(e,t);a&&(i=o.querySegmentIterator(),i.resetToPath(t)),u(f,o,t,n,r),a&&c(f,i,n,r)}const m=new s.P,p=new s.P;return m.setCoords(n.getResult(),r.getResult()),p.assign(m.mul(1/h).add(f)),p}function u(e,t,n,r,o){const i=t.getPathStart(n),a=t.getPathEnd(n);if(a-i<3)return;const u=t.getAttributeStreamRef(0),c=u.readPoint2D(2*i),l=u.readPoint2D(2*(i+1));l.subThis(c);const h=new s.K(0),f=t.hasNonLinearSegments(),m=1/3,p=new s.P;for(let e=i+2;e<a;e++){u.queryPoint2D(2*e,p),p.subThis(c);const t=.5*p.crossProduct(l);f&&h.add(t);const n=m*t;r.add((l.x+p.x)*n),o.add((l.y+p.y)*n),l.setCoordsPoint2D(p)}const g=f?h.getResult():t.calculateRingArea2D(n),d=c.sub(e).mul(g);r.add(d.x),o.add(d.y)}function c(e,t,n,s){let o;for(t.nextPath()||(0,r.d)("centroid");null!==(o=t.nextCurve());){const t=o.calculateWeightedAreaCentroid2D(e);n.add(t.x),s.add(t.y)}}function l(e,t=-1){return h(e.getImpl(),t)}function h(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new s.K(0),r=new s.K(0);for(let t=0;t<e.getPathCount();++t){const s=e.getXY(e.getPathStart(t));n.add(s.x),r.add(s.y)}return s.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new s.K(0),o=new s.K(0),i=e.querySegmentIterator();for(-1!==t&&i.resetToPath(t);i.nextPath();){const n=i.getPathIndex(),s=e.getXY(e.getPathStart(n));for(;i.hasNextSegment();){const e=i.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(s.mul(t));r.add(n.x),o.add(n.y)}const a=s.mul(e.calculatePathLength2D(n));if(r.add(a.x),o.add(a.y),-1!==t)break}const a=new s.P;return a.setCoords(r.getResult(),o.getResult()),a.mul(1/n)}},26640(e,t,n){n.d(t,{D:()=>M,m:()=>l,s:()=>y,w:()=>d});var r=n(5482),s=n(55537),o=n(88885),i=n(15756),a=n(83661),u=n(79187),c=n(95213);function l(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function h(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function f(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function m(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function p(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function g(e,t){const n=l();m(n,e),m(e,t),m(t,n)}function d(e,t,n,r,o,a){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,i.l)(e,t.getEndXY(),0))return f(o,t.getEndXY(),-1,Number.NaN),f(a,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,i.l)(t,e.getEndXY(),0))return f(o,e.getEndXY(),-1,Number.NaN),f(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function y(e){const t=e.getPathCount(),n=(0,a.d)(e.getSegmentCount(),0);let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let o=r,i=e.getPathStart(s);o<t;++o,++i)n[o]=i;r=t}return(0,o.s)(e.getPointCount(),n),n}function v(e,t){return!!Number.isNaN(t)||e<=t}function x(e){const t=new o.P;return t.addEnvelope(e,!1),t}class M{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==c.P.type||t.getGeometryType()!==c.P.type)&&(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!v(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=h(new a.P,(0,a.j)(),Number.NaN),o=h(new a.P,(0,a.j)(),Number.NaN),i=this._ExecuteBruteForce(e,t,s,o);return v(i,this.m_maxDistance)?(null!==n&&m(n,s),null!==r&&m(r,o),i):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==c.P.type&&e.getGeometryType()!==c.E.type||t.getGeometryType()!==c.P.type&&t.getGeometryType()!==c.E.type||(n=!1),n){if(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=h(new a.P,(0,a.j)(),Number.NaN),s=h(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),o=t.getXY();return f(n,s,0,0),f(r,o,0,0),Math.sqrt(a.P.sqrDistance(s,o))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let o=this.m_maxSqrDistance,i=o,u=!1;const c=t.getPointCount(),l=new a.P;for(let e=0;e<c;++e)if(t.queryXY(e,l),i=a.P.sqrDistance(s,l),this.m_bIsNearCalc){if(i<=o)return 0}else if(!(i>o)&&(!u&&i===o||i<o)&&(o=i,f(n,s,0,0),f(r,l,e,0),u=!0,0===o))return 0;return u?Math.sqrt(o):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const o=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),c=e.getXY();if(!o&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,i.l)(t,c,0))return f(n,c,0,0),f(r,c,-1,Number.NaN),0;t.getImpl().getAccelerators();let l=this.m_maxSqrDistance,h=l,m=-1;const p=new u.Envelope2D,g=t.querySegmentIterator();let d=!1;for(;g.nextPath();)for(;g.hasNextSegment();){const e=g.nextSegment();e.queryEnvelope(p);const t=p.sqrDistance(c);if(t>l)continue;if(!this.m_bIsNearCalc&&d&&t===l)continue;m=e.getClosestCoordinate(c,!1);const s=e.getCoord2D(m);if(h=a.P.sqrDistance(c,s),this.m_bIsNearCalc){if(h<=l)return 0}else if(!(h>l)&&(!d||h<l)&&(l=h,f(n,c,0,0),f(r,s,g.getStartPointIndex(),m),d=!0,0===l))return 0}return d?Math.sqrt(l):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();f(n,s,0,0),f(r,s,-1,Number.NaN);const o=t.asEnvelope2D();return o.contains(s)?0:Math.sqrt(o.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,x(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,o,i){const u={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===o&&1===i){const r=Math.trunc((0,a.s)(Math.sqrt(e.getPointCount())+1,1,(0,a.i)())),o=Math.trunc((0,a.s)(Math.sqrt(t.getPointCount())+1,1,(0,a.i)()));if((r>=4||o>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,o)<=this.m_maxSqrDistance)return 0}let c=this.m_maxSqrDistance;const l=[e],h=[t],m=this.swapGeometriesIfBGtA(l,h);m&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i=(0,a.c)(o,o=i),g(n,s)),(0,r.mS)(u,(0,a.h)(()=>{g(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!m),!1);const p=l[0].getImpl(),d=h[0].getImpl(),y=p.getPointCount(),v=d.getPointCount(),x=v>1;let M=!1;const P=new a.P,_=new a.P;for(let e=0;e<y;e+=o){if(p.queryXY(e,P),x){const e=this.m_env2DgeometryB.sqrDistance(P);if(this.m_bIsNearCalc){if(e>c)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(P)<=c)return 0}else if(e>=c)continue}for(let t=0;t<v;t+=i){d.queryXY(t,_);const r=a.P.sqrDistance(P,_);if(this.m_bIsNearCalc){if(r<=c)return 0}else if(!(r>c||M&&r===c)&&(!M||r<c)&&(f(n,P,e,0),f(s,_,t,0),M=!0,c=r,0===c))return M?Math.sqrt(c):Number.POSITIVE_INFINITY}}return M?Math.sqrt(c):Number.POSITIVE_INFINITY}catch(e){u.error=e,u.hasError=!0}finally{(0,r.hk)(u)}}distanceMultipointMultipath(e,t,n,r){let o=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const c=t.querySegmentIterator();c.stripAttributes();const l=new u.Envelope2D,h=new a.P;let m=this.m_maxSqrDistance;const p=e.getImpl(),g=p.getPointCount(),d=g>1;let y=!1;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();if(e.queryLooseEnvelope(l),d){const e=l.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>m)continue}else if(e>m||y&&e===m)continue}for(let s=0;s<g;s++){if(p.queryXY(s,h),o&&0!==(0,i.l)(t,h,0))return f(n,h,-1,Number.NaN),f(r,h,s,0),0;{const e=l.sqrDistance(h);if(this.m_bIsNearCalc){if(e>m)continue}else if(e>m)continue}const a=e.getClosestCoordinate(h,!1),u=e.getCoord2D(a);h.subThis(u);const g=h.sqrLength();if(this.m_bIsNearCalc){if(g<=m)return 0}else if(!(g>m)&&(!y||g<m)&&(m=g,f(n,p.getXY(s),s,0),f(r,u,c.getStartPointIndex(),a),y=!0,0===m))return 0}o=!1}return y?Math.sqrt(m):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,x(e),r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(x(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),o=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(o,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,x(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const i={stack:[],error:void 0,hasError:!1};try{const c=[e],h=[t],f=this.swapGeometriesIfAGtB(c,h);f&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),g(n,s)),(0,r.mS)(i,(0,a.h)(()=>{g(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);const v=c[0],x=h[0],M=v.querySegmentIterator();M.stripAttributes();const P=x.querySegmentIterator();if(P.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)())),t=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(v,x,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=l(),t=l();if(d(v,x,M,P,e,t))return m(n,e),m(s,t),0}const _=y(v),w=[],N=new o.S,S=new u.Envelope2D,b=new u.Envelope2D,C=new u.Envelope2D;let I=this.m_maxSqrDistance,A=!0,R=!1;for(let e=0,t=_.length;e<t;++e){v.querySegment(_[e],N,!0);const t=N.get();if(t.queryEnvelope(S),!(S.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>I)){if(this.m_bIsNearCalc&&S.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=I)return 0;for(;P.nextPath();){if(this.progress_(),A)x.queryPathEnvelope(P.getPathIndex(),C),w[P.getPathIndex()]=C.clone();else if(S.sqrDistanceEnvelope(w[P.getPathIndex()],null,null)>I)continue;for(;P.hasNextSegment();){const r=P.nextSegment();if(r.queryEnvelope(b),S.sqrDistanceEnvelope(b,null,null)<=I){const o=!S.isIntersecting(b),i=[0],a=[0];let u=t.distance(r,o,i,a);if(u*=u,this.m_bIsNearCalc&&u<=this.m_maxSqrDistance)return 0;if(u<I||u===I&&_[e]<n.index){if(R=!0,p(n,t,_[e],i[0]),p(s,r,P.getStartPointIndex(),a[0]),0===u)return 0;I=u}}}}P.resetToFirstPath(),A=!1}}return R?Math.sqrt(I):Number.POSITIVE_INFINITY}catch(e){i.error=e,i.hasError=!0}finally{(0,r.hk)(i)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,a.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},61691(e,t,n){n.d(t,{G:()=>r});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>s});var r=n(61691);class s extends r.G{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},65708(e,t,n){n.d(t,{a:()=>i,e:()=>o});var r=n(86211),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateArea2D();if(o&&n){const t=(0,s.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const i=(0,r.B5)(t);i!==n&&(i?o=(0,r.oU)(o,i,n):(o=Math.sqrt(o),o*=(0,r.GA)(t),o**=2,o=(0,r.oU)(o,"square-meters",n)))}return o}const i=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}))},48265(e,t,n){n.d(t,{c:()=>u,e:()=>i});var r=n(15546),s=n(78125);const o=new class{getOperatorType(){return 10205}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,r.c)(e)}};function i(e){const t=o.execute((0,s.fromGeometry)(e),null);return(0,s.toPoint)(t,(0,s.getSpatialReference)(e))}const a=o.supportsCurves(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},16346(e,t,n){n.d(t,{d:()=>l,e:()=>u});var r=n(55537),s=n(26640),o=n(86211),i=n(78125);const a=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,o,i,a){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const u=e,c=t;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const l=new s.D(a,n).calculate(u,c,o,i);return Number.isFinite(l)?l:Number.NaN}};function u(e,t,n={}){const{unit:r}=n;let s=a.execute((0,i.fromGeometry)(e),(0,i.fromGeometry)(t),null);if(s&&r){const t=(0,i.getSpatialReference)(e);s=(0,o.PQ)(s,t,r)}return s}const c=a.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,execute:u,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},49590(e,t,n){n.d(t,{e:()=>f,g:()=>m,l:()=>h});var r=n(86211),s=n(86742),o=n(5808);let i,a,u,c;function l(){return!!i&&(0,s.s1)()}async function h(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,a=e.fromSpatialReference,u=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,l=u(e);let h=(0,s.g7)(i(e),a(l),o.O[n]);return h&&c&&(h=(0,r.oU)(h,"square-meters",c)),h}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:h,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},39663(e,t,n){n.d(t,{e:()=>f,g:()=>m,l:()=>h});var r=n(86211),s=n(35223),o=n(5808);let i,a,u,c;function l(){return!!i&&(0,s.s1)()}async function h(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,a=e.fromSpatialReference,u=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,l=u(e);let h=(0,s.g7)(i(e),a(l),o.O[n]);return h&&c&&(h=(0,r.oU)(h,"meters",c)),h}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:h,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},7817(e,t,n){n.d(t,{e:()=>o,l:()=>a,s:()=>i});var r=n(86211),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateLength2D();if(o&&n){const t=(0,s.getSpatialReference)(e);o=(0,r.PQ)(o,t,n)}return o}const i=!0,a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},10222(e,t,n){n.d(t,{e:()=>o,s:()=>a});var r=n(81150),s=n(78125);function o(e){const t=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,r.g7)((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),!1),t)}const i=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(e){const t=e.map(s.fromGeometry),n=(0,s.getSpatialReference)(e);return(0,r.zo)(t,(0,s.fromSpatialReference)(n),!1).map(e=>(0,s.toGeometry)(e,n))},isSimple:function(e){return(0,r.Pg)((0,s.fromGeometry)(e),(0,s.fromSpatialReference)((0,s.getSpatialReference)(e)),!1)},supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},69540(e,t,n){n.d(t,{OU:()=>l,Pw:()=>h});var r=n(5482),s=n(69622),o=(n(44208),n(4718)),i=(n(53966),n(97768)),a=n(88620),u=n(64108);const c=Symbol("ClonableMixin"),l=e=>{var t;const n=e;let s=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,a.oY)(this);(0,i.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,r=t.store,s={},u=new Map;for(const t in n){const i=n[t],a=r?.originOf(t),c=i.clonable;if(i.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const l=this[t];let h=null;if("function"==typeof c)h=c(l,e);else if("reference"===c)h=l;else if(h=(0,o.TU)(l,e),null!=l&&null==h)continue;0===a?u.set(t,h):s[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(s);if(u.size){const e=(0,a.oY)(c)?.store;if(e)for(const[t,n]of u)e.set(t,n,0)}return c}};return s=(0,r.Cg)([(0,u.$)("esri.core.Clonable")],s),s},h=l(s.A)},95488(e,t,n){n.d(t,{I:()=>s});var r=n(11406);class s extends r.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>s,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:s,create:r,fromValues:function(e,t,n,r,s,o,i,a,u,c,l,h,f,m,p,g){return[e,t,n,r,s,o,i,a,u,c,l,h,f,m,p,g]}},Symbol.toStringTag,{value:"Module"}))},51850(e,t,n){function r(){return[0,0,0]}function s(e){return[e[0],e[1],e[2]]}function o(e,t,n){return[e,t,n]}function i(e,t,n){return[e,t,n]}function a(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function u(){return o(1,1,1)}function c(){return o(1,0,0)}function l(){return o(0,1,0)}function h(){return o(0,0,1)}n.d(t,{CN:()=>i,Cb:()=>d,Cw:()=>p,JP:()=>g,Un:()=>m,ci:()=>a,fA:()=>o,o8:()=>s,uY:()=>f,vt:()=>r});const f=[0,0,0],m=u(),p=c(),g=l(),d=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:p,UNIT_Y:g,UNIT_Z:d,ZEROS:f,clone:s,create:r,freeze:i,fromArray:a,fromValues:o,ones:u,unitX:c,unitY:l,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(e,t,n){n.d(t,{DF:()=>u,FD:()=>s,Ov:()=>o,ct:()=>c});let r=1e-6;function s(){return r}const o=Math.random,i=Math.PI/180,a=180/Math.PI;function u(e){return e*i}function c(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:s,setEpsilon:function(e){r=e},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>S,Bw:()=>o,C:()=>i,Cc:()=>b,DI:()=>_,Il:()=>B,Io:()=>v,Ln:()=>y,Om:()=>N,Qr:()=>h,Re:()=>c,S8:()=>w,T9:()=>g,WQ:()=>u,Z0:()=>C,_S:()=>m,aI:()=>O,ei:()=>I,gL:()=>A,hG:()=>x,hZ:()=>a,hs:()=>d,jb:()=>T,jk:()=>p,lo:()=>z,lw:()=>l,m3:()=>M,oW:()=>G,t2:()=>E,tn:()=>f,uE:()=>Y,xg:()=>j,ze:()=>P});var r=n(51850),s=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 i(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 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 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 h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function f(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function d(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],s=t[2]-e[2];return Math.sqrt(n*n+r*r+s*s)}function x(e,t){const n=t[0]-e[0],r=t[1]-e[1],s=t[2]-e[2];return n*n+r*r+s*s}function M(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function P(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const n=t[0],r=t[1],s=t[2];let o=n*n+r*r+s*s;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 N(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function S(e,t,n){const r=t[0],s=t[1],o=t[2],i=n[0],a=n[1],u=n[2];return e[0]=s*u-o*a,e[1]=o*i-r*u,e[2]=r*a-s*i,e}function b(e,t,n,r){const s=t[0],o=t[1],i=t[2];return e[0]=s+r*(n[0]-s),e[1]=o+r*(n[1]-o),e[2]=i+r*(n[2]-i),e}function C(e,t,n){const r=t[0],s=t[1],o=t[2];return e[0]=n[0]*r+n[4]*s+n[8]*o+n[12],e[1]=n[1]*r+n[5]*s+n[9]*o+n[13],e[2]=n[2]*r+n[6]*s+n[10]*o+n[14],e}function I(e,t,n){const r=t[0],s=t[1],o=t[2];return e[0]=r*n[0]+s*n[3]+o*n[6],e[1]=r*n[1]+s*n[4]+o*n[7],e[2]=r*n[2]+s*n[5]+o*n[8],e}function A(e,t,n){const r=n[0],s=n[1],o=n[2],i=n[3],a=t[0],u=t[1],c=t[2],l=s*c-o*u,h=o*a-r*c,f=r*u-s*a,m=s*f-o*h,p=o*l-r*f,g=r*h-s*l,d=2*i;return e[0]=a+l*d+2*m,e[1]=u+h*d+2*p,e[2]=c+f*d+2*g,e}const R=(0,r.vt)(),D=(0,r.vt)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O(e,t){if(e===t)return!0;const n=e[0],r=e[1],o=e[2],i=t[0],a=t[1],u=t[2],c=(0,s.FD)();return Math.abs(n-i)<=c*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-u)<=c*Math.max(1,Math.abs(o),Math.abs(u))}function G(e,t,n){const r=n[0]-t[0],s=n[1]-t[1],o=n[2]-t[2];let i=r*r+s*s+o*o;return i>0?(i=1/Math.sqrt(i),e[0]=r*i,e[1]=s*i,e[2]=o*i,e):(e[0]=0,e[1]=0,e[2]=0,e)}const T=c,q=l,Z=h,j=v,z=x,B=o,Y=M;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(e,t){w(R,e),w(D,t);const n=N(R,D);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,s,o){const i=1-o,a=i*i,u=o*o,c=a*i,l=3*o*a,h=3*u*i,f=u*o;return e[0]=t[0]*c+n[0]*l+r[0]*h+s[0]*f,e[1]=t[1]*c+n[1]*l+r[1]*h+s[1]*f,e[2]=t[2]*c+n[2]*l+r[2]*h+s[2]*f,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:i,cross:S,crossAndNormalize:function(e,t,n){const r=t[0],s=t[1],o=t[2],i=n[0],a=n[1],u=n[2],c=s*u-o*a,l=o*i-r*u,h=r*a-s*i,f=Math.sqrt(c*c+l*l+h*h);return e[0]=c/f,e[1]=l/f,e[2]=h/f,e},direction:G,dist:j,distance:v,div:Z,divide:h,dot:N,equals:O,exactEquals:E,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,s,o){const i=o*o,a=i*(2*o-3)+1,u=i*(o-2)+o,c=i*(o-1),l=i*(3-2*o);return e[0]=t[0]*a+n[0]*u+r[0]*c+s[0]*l,e[1]=t[1]*a+n[1]*u+r[1]*c+s[1]*l,e[2]=t[2]*a+n[2]*u+r[2]*c+s[2]*l,e},inverse:_,len:B,length:o,lerp:b,max:g,min:p,mul:q,multiply:l,negate:P,normalize:w,random:function(e,t=1){const n=s.Ov,r=2*n()*Math.PI,o=2*n()-1,i=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(r)*i,e[1]=Math.sin(r)*i,e[2]=o*t,e},rotateX:function(e,t,n,r){const s=[],o=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],o[0]=s[0],o[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),o[2]=s[1]*Math.sin(r)+s[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 s=[],o=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],o[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),o[1]=s[1],o[2]=s[2]*Math.cos(r)-s[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 s=[],o=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],o[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),o[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),o[2]=s[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:d,scaleAndAdd:y,set:a,sign:m,sqrDist:z,sqrLen:Y,squaredDistance:x,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:T,subtract:c,transformMat3:I,transformMat4:C,transformQuat:A},Symbol.toStringTag,{value:"Module"}))},69397(e,t,n){n.d(t,{Qf:()=>u,Qh:()=>i,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>o,qK:()=>l});var r=n(34275);const s=16;function o(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let n=h;for(let r=0;r<t;r++)n+=a(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?i(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return h+e.length*t}const l=32,h=16,f=145,m=64},17799(e,t,n){n.d(t,{T9:()=>a,d_:()=>s,gT:()=>o});var r=n(86211);function s(e,t){return{type:(0,r.t$)(t),value:e,unit:t}}function o(e,t){return{type:(0,r.t$)(t),value:e,unit:t}}function i(e,t,n="arithmetic"){return{type:(0,r.t$)(t),value:e,unit:t,rotationType:n}}function a(e,t){return null==e?t:null==t||e.value>(0,r.oU)(t.value,t.unit,e.unit)?e:t}s(0,"meters"),o(0,"square-meters"),i(0,"radians"),i(0,"degrees"),i(0,"degrees","geographic")},87992(e,t,n){n.d(t,{JR:()=>S,ME:()=>_,MY:()=>b,NO:()=>P,Nh:()=>N,V2:()=>D,_s:()=>E,e6:()=>G,gh:()=>w,tr:()=>q,uX:()=>d});var r=n(5482),s=n(69397),o=n(16930),i=(n(70328),n(19419)),a=n(60408),u=n(21325),c=n(513),l=n(50954),h=n(79567),f=n(52006),m=n(49663),p=n(46068),g=n(92722);class d{constructor({type:e,spatialReference:t,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:l,segmentParams:h,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=l,this.segmentParams=h,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:n}=this;return e&&e-t-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?s.Ul+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:n,hasZ:r,hasM:s,segmentCountArc:o,segmentCountBezier:i}=this,a=D(e,t,n,r,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:l}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(c.subarray(0,t),0),a.vertexM?.set(l.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,n+1)),a.partOffsets.set(e.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(n.subarray(0,t),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,u.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const n=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,n)=>Math.abs(e-n)>t||isNaN(e)!==isNaN(n);for(let t=0;t<this.vertexCount;++t)if(n(this.vertexXY[2*t],e.vertexXY[2*t])||n(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(n(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(e){this.geometry=e,this.value=new v(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(e){this.geometry=e,this.index=-1,this._readVertex=A(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new M(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=A(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[n++],r=t[n++],s=t[n++],o=t[n++];return{b:[this.end,[e,r],[s,o]]}}const r=t[n++],s=t[n++],o=t[n++],i=t[n++],a=t[n++],u=t[n++];n++,n++;const c=t[n++],l=t[n++];if(!Boolean(4&r)&&1===o)return{c:[this.end,[c,l]]};const h=2&r?0:1,f=1&r?0:1;return{a:[this.end,[a,u],h,f,i,s,o]}}}function P(e,t){const n={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,r.mS)(n,new C(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:n,vertexXY:s,vertexZ:o,vertexM:a}=e,u=I(e);if(e.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new C(e,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:n}of t.segments)(0,h.e)(s,e,n),e=(0,f.yP)(n)}const[o,a,c,l]=s;t={xmin:o,ymin:a,xmax:c,ymax:l,spatialReference:u}}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}else{let e,r,o,i;e=r=1/0,o=i=-1/0;for(let t=0;t<n;++t){const n=s[2*t],a=s[2*t+1];e=Math.min(e,n),o=Math.max(o,n),r=Math.min(r,a),i=Math.max(i,a)}t={xmin:e,ymin:r,xmax:o,ymax:i,spatialReference:u}}if(o){let e=1/0,n=-1/0;for(const t of o)e=Math.min(e,t),n=Math.max(n,t);t.zmin=e,t.zmax=n}if(a){let e=1/0,n=-1/0;for(const t of a)e=Math.min(e,t),n=Math.max(n,t);t.mmin=e,t.mmax=n}return t}(e)),t}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}function _(e){let t,n,r;if((0,a.fT)(e)){r="point";const{x:s,y:o,z:i,m:a}=e,u=[s,o];null!=i&&u.push(i),null!=a&&u.push(a),n=[[u]],t=1}else(0,a.U9)(e)?(r="multipoint",n=[e.points],t=e.points.length):(0,a.Rg)(e)?(r="polyline",n=e.curvePaths??e.paths,t=n.reduce((e,t)=>e+t.length,0)):(r="polygon",n=e.curveRings??e.rings,t=n.reduce((e,t)=>(0===t.length||(e+=t.length,R(t[0],(0,f.yP)(t.at(-1)))&&--e),e),0));const s=D(r,t,r.includes("point")?0:n.length,(0,a.Pv)(e),(0,a.W0)(e),(0,f.Ed)(e)),{hasZ:o,hasM:i,vertexXY:u,vertexZ:c,vertexM:l}=s;function h(e){u[2*p]=e[0],u[2*p+1]=e[1],o&&(c[p]=e[2]),i&&(l[p]=e[m]),++p}s.spatialReference=e.spatialReference??void 0;const m=s.hasZ?3:2;let p=0;if(!s.isMultipart()){if(!o&&!i){for(const[e,t]of n[0])u[2*p]=e,u[2*p+1]=t,++p;return s}for(const e of n[0])h(e);return s}const g="polygon"===r,{partOffsets:d}=s;let y=0;if(!s.hasCurves()){for(const e of n){if(d[y++]=p,0===e.length)continue;let t=e.length;if(g&&R(e[0],e.at(-1))&&--t,o||i)for(let n=0;n<t;++n)h(e[n]);else for(let n=0;n<t;++n){const[t,r]=e[n];u[2*p]=t,u[2*p+1]=r,++p}}return d[y]=p,s}function v(e){const t=x+e;if(t<=(s.segmentParams?.length??0))return;let n=t*Z;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let x=0;for(const e of n){if(s.partOffsets[y++]=p,0===e.length)continue;const t=e[0];let n=t;for(let t=1;t<e.length;++t){const r=e[t];h(n);const o=p-1;(0,f.wY)(r)?(v(10),++s.segmentCountArc,x=E(n,r,s,o,x),n=r.a[0]):(0,f.DA)(r)?(v(10),++s.segmentCountArc,x=O(n,r,s,o,x),n=r.a[0]):(0,f.aO)(r)?(v(10),++s.segmentCountArc,x=G(n,r,s,o,x),n=r.c[0]):(0,f.n1)(r)?(v(4),++s.segmentCountBezier,x=q(0,r,s,o,x),n=r.b[0]):n=r}g&&R(t,n)||h(n)}return s.partOffsets[y]=p,s}function w(e){const t=A(e),{vertexCount:n,partCount:r,hasZ:s,hasM:o}=e,i=I(e);if("point"===e.type){const[t,n]=e.vertexXY,r=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:n,z:r,m:s,spatialReference:i}}let a=0;if("multipoint"===e.type){const e=[];for(;a<n;)e.push(t(a++));return{points:e,spatialReference:i,hasZ:s,hasM:o}}const u="polygon"===e.type;if(!e.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=e.partOffsets[s+1],o=new Array;for(;a<r;)o.push(t(a++));u&&o.length>0&&o.push(o[0]),n.push(o)}return u?{rings:n,hasZ:s,hasM:o,spatialReference:i}:{paths:n,hasZ:s,hasM:o,spatialReference:i}}const c=new Array;for(const{segments:t,startVertex:n}of e.parts){const e=[n];for(const{curve:n}of t)e.push(n);c.push(e)}return u?{rings:[],curveRings:c,hasZ:s,hasM:o,spatialReference:i}:{paths:[],curvePaths:c,hasZ:s,hasM:o,spatialReference:i}}function N(e,{lengths:t,coords:n,hasZ:r,hasM:s},o){const i=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?i:0);r??=!1,s??=!1;const c=D(e,u,i,r,s,!1,0,0);if(c.spatialReference=o??void 0,!c.isMultipart()){for(let e=0,t=0;e<u;++e)c.vertexXY[2*e]=n[t++],c.vertexXY[2*e+1]=n[t++],r&&(c.vertexZ[e]=n[t++]),s&&(c.vertexM[e]=n[t++]);return c}const l=2+Number(r)+Number(s);let h=0,f=0;c.partOffsets[0]=0;for(const e of t){const t=c.partOffsets[f],o=t+e-Number(a);c.partOffsets[++f]=o;for(let e=t;e<o;++e)c.vertexXY[2*e]=n[h++],c.vertexXY[2*e+1]=n[h++],r&&(c.vertexZ[e]=n[h++]),s&&(c.vertexM[e]=n[h++]);a&&(h+=l)}return c}function S({type:e,vertexCount:t,vertexXY:n,vertexZ:r,vertexM:s,partCount:o,partOffsets:i,hasZ:a,hasM:u}){const c=new g.A([],[],a,u);o=Math.max(o,1);const l="polygon"===e;let h=0;for(let e=0;e<o;++e){const o=i?.[e+1]??t,f=c.coords.length;for(let e=h;e<o;++e)c.coords.push(n[2*e],n[2*e+1]),a&&c.coords.push(r[e]),u&&c.coords.push(s[e]);if(l){const e=h;c.coords.push(n[2*e],n[2*e+1]),a&&c.coords.push(r[e]),u&&c.coords.push(s[e])}c.lengths.push((c.coords.length-f)/c.stride),h=o}return"point"===e&&(c.lengths.length=0),c}function b(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,n=e.isCustomWkid()?0:e.getOldID();if(n<=0)return{wkt:t};let r=e.getLatestID();(r<=0||r===n)&&(r=void 0);const s=e.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:t};const o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:n,wkt:t,latestWkid:r,vcsWkid:o,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new d({...e.toFlatGeometry(),spatialReference:t})}class C{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const n of t)e[n]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function I({spatialReference:e}){return e instanceof o.A?e.toJSON():e}function A({vertexXY:e,vertexZ:t,vertexM:n}){return t?n?r=>[e[2*r],e[2*r+1],t[r],n[r]]:n=>[e[2*n],e[2*n+1],t[n]]:n?t=>[e[2*t],e[2*t+1],n[t]]:t=>[e[2*t],e[2*t+1]]}function R(e,t){return e.every((e,n)=>e===t[n])}function D(e,t,n,r,s,o,i,a){i??=0,a??=0;const u=new d({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*t;r&&(c+=Float64Array.BYTES_PER_ELEMENT*t),s&&(c+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),o&&(c+=t*Int8Array.BYTES_PER_ELEMENT,c+=t*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(c);let h=0;return u.vertexXY=new Float64Array(l,h,2*t),h+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(l,h,t),h+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(l,h,t),h+=u.vertexM.byteLength),o&&(u.segmentParams=new Float64Array(l,h,u.segmentParamCount),h+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(l,h,t),u.segmentIndices.fill(j),h+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(l,h,n+1),h+=u.partOffsets.byteLength,u.partFlags=new Int8Array(l,h,n+1),h+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),o&&(u.segmentFlags=new Int8Array(l,h,t),u.segmentFlags.fill(1),h+=u.segmentFlags.byteLength),u}function E(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const[a,[u,c],l,h,f,m,g]=t.a;let d=4;h||(d|=1),l||(d|=2);const y=(0,p.SW)(e,t),[v,x]=(0,p.Uk)(y,.5);return s[i++]=d,s[i++]=m,s[i++]=g,s[i++]=f,s[i++]=u,s[i++]=c,s[i++]=y.u2-y.u1,s[i++]=y.u1,s[i++]=v,s[i++]=x,i}function O(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const a=(0,m.i)(e,t);return T(a,4,...(0,c.mq)(a,.5),s,i)}function G(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){return n[o]=4,r[o]=i,T((0,l.pM)(e,t),0,...t.c[1],s,i)}function T(e,t,n,r,s,o){const{cx:i,cy:a,thetaStart:u,thetaEnd:c,radius:l}=e;return u>c||(t|=1),Math.abs(c-u)<=Math.PI||(t|=2),s[o++]=t,s[o++]=l,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=c-u,s[o++]=u,s[o++]=n,s[o++]=r,o}function q(e,{b:[t,[n,r],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:u},c,l){return i[c]=2,a[c]=l,u[l++]=n,u[l++]=r,u[l++]=s,u[l++]=o,l}const Z=1.61803,j=-1},91075(e,t,n){n.d(t,{A:()=>u});var r=n(5482),s=n(25482),o=n(91429),i=n(16930),a=n(36005);let u=class extends s.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=i.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof i.A)return e;if(null!=e){const n=new i.A;return n.read(e,t),n}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,r.Cg)([(0,o.MZ)()],u.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],u.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,r.Cg)([(0,o.MZ)({type:i.A,json:{write:!0},value:i.A.WGS84})],u.prototype,"spatialReference",void 0),(0,r.Cg)([(0,a.w)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,r.Cg)([(0,o.$K)("esri.geometry.Geometry")],u)},86738(e,t,n){n.d(t,{A:()=>x});var r=n(5482),s=n(69622),o=n(53966),i=n(91429),a=n(56507),u=n(91075),c=n(16930),l=n(21325),h=n(28735);function f({x:e,y:t,spatialReference:n},r=[0,0]){if(n){if((0,l.K8)(n))return(0,h.tD)(e,t,r);if((0,l.EA)(n))return r[0]=e,r[1]=t,r}return null}const m=[0,0];var p,g=n(43937),d=n(36005);const y=[0,0];function v(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let x=p=class extends u.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const n=e._get("spatialReference");t._set("spatialReference",s.A.isFrozen(n)?n:n.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,n,r,s){let i;if(Array.isArray(e))i=e,s=t,e=i[0],t=i[1],n=i[2],r=i[3];else if(e&&"object"==typeof e){if(i=e,e=null!=i.x?i.x:i.longitude,t=null!=i.y?i.y:i.latitude,n=i.z,r=i.m,(s=i.spatialReference)&&"esri.geometry.SpatialReference"!==s.declaredClass&&(s=new c.A(s)),null!=i.longitude||null!=i.latitude)if(null==i.longitude)o.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==i.latitude)o.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!i.declaredClass&&s?.isWebMercator){const n=(0,h.je)(i.longitude,i.latitude,y);e=n[0],t=n[1]}}else v(n)?(s=n,n=null):v(r)&&(s=r,r=null);const a={x:e,y:t};return null==a.x&&null!=a.y?o.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&o.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=s&&(a.spatialReference=s),null!=n&&(a.z=n),null!=r&&(a.m=r),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return f(this,m)?.[1]??null}set latitude(e){const{spatialReference:t,x:n}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,h.je)(n,e,y)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return f(this,m)?.[0]??null}set longitude(e){const{y:t,spatialReference:n}=this;null!=e&&n&&(n.isWebMercator?this._set("x",(0,h.je)(e,t,y)[0]):n.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,n){t[n]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new p;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return p.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:n,z:r,m:s,spatialReference:o}=this,{z:i,m:a}=e;let{x:u,y:c,spatialReference:l}=e;if(!o.equals(l))if(o.isWebMercator&&l.isWGS84)[u,c]=(0,h.je)(u,c),l=o;else{if(!o.isWGS84||!l.isWebMercator)return!1;[u,c]=(0,h.tD)(u,c),l=o}return t===u&&n===c&&r===i&&s===a&&o.wkid===l.wkid}offset(e,t,n){return this.x+=e,this.y+=t,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const e=(0,l.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[n,r]=e.valid,s=2*r;let o;return t>r?(o=Math.ceil(Math.abs(t-r)/s),t-=o*s):t<n&&(o=Math.ceil(Math.abs(t-n)/s),t+=o*s),this._set("x",t),this}distance(e){return function(e,t){const n=e.x-t.x,r=e.y-t.y,s=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(n*n+r*r+s*s)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,i.MZ)({readOnly:!0})],x.prototype,"cache",null),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],x.prototype,"hasM",null),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],x.prototype,"hasZ",null),(0,r.Cg)([(0,i.MZ)({type:Number})],x.prototype,"latitude",null),(0,r.Cg)([(0,i.MZ)({type:Number})],x.prototype,"longitude",null),(0,r.Cg)([(0,i.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,i.wg)(e=>isNaN(e)?e:(0,a.GB)(e))],x.prototype,"x",void 0),(0,r.Cg)([(0,g.K)("x")],x.prototype,"writeX",null),(0,r.Cg)([(0,d.w)("x")],x.prototype,"readX",null),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],x.prototype,"z",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],x.prototype,"m",void 0),x=p=(0,r.Cg)([(0,i.$K)("esri.geometry.Point")],x),x.prototype.toJSON.isDefaultToJSON=!0},21276(e,t,n){n.d(t,{H:()=>o,f:()=>s});var r=n(49186);function s(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new r.A("internal:mesh","Mesh geometries are not supported for this operation")}function o(e){e.forEach(s)}},11918(e,t,n){n.r(t),n.d(t,{execute:()=>d,isLoaded:()=>p,load:()=>g,supportsCurves:()=>m});var r=n(86211),s=n(83290);let o;function i(){return!!o&&(0,s.i)()}async function a(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6859),n.e(2764)]).then(n.bind(n,12764)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,s.l)()]);o=new e.OperatorGeodeticDistance,t(s.p)}}function u(e,t,n,r){return o.execute(e,t,n,r,null)}var c=n(5808);let l,h,f,m;function p(){return!!l&&i()}async function g(){if(!p()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)),a()]);l=e.fromGeometry,h=e.fromSpatialReference,f=e.getSpatialReference,m=o.supportsCurves()}}function d(e,t,n={}){const{curveType:s="geodesic",unit:o}=n,i=f(e);let a=u(l(e),l(t),h(i),c.O[s]);return a&&o&&(a=(0,r.oU)(a,"meters",o)),a}},86742(e,t,n){n.d(t,{Hh:()=>i,fz:()=>u,g7:()=>a,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6859),n.e(6558)]).then(n.bind(n,6558)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticArea,t(r.p)}}function a(e,t,n){return s.execute(e,t,n,null)}function u(){return s.supportsCurves()}},35223(e,t,n){n.d(t,{Hh:()=>i,fz:()=>u,g7:()=>a,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(4167)]).then(n.bind(n,28879)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticLength,t(r.p)}}function a(e,t,n){return s.execute(e,t,n,null)}function u(){return s.supportsCurves()}},81150(e,t,n){n.d(t,{Pg:()=>u,fz:()=>c,g7:()=>i,zo:()=>a});var r=n(76061),s=(n(55537),n(88885),n(15756));n(95213);const o=new s.f;function i(e,t,n){return o.execute(e,t,n,null)}function a(e,t,n){const s=o.executeMany(new r.S(e),t,n,null);return Array.from(s)}function u(e,t,n){return o.isSimpleAsFeature(e,t,n,null,null)}function c(){return o.supportsCurves()}},159(e,t,n){n.d(t,{A:()=>c});var r,s=n(5482),o=n(69540),i=n(25482),a=n(91429),u=n(99157);let c=r=class extends((0,o.OU)(i.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,s.Cg)([(0,a.MZ)({type:[u.A],nonNullable:!0,json:{name:"geoTransforms"}})],c.prototype,"steps",void 0),c=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],c)},99157(e,t,n){n.d(t,{A:()=>u});var r,s=n(5482),o=n(69540),i=n(25482),a=n(91429);let u=r=class extends((0,o.OU)(i.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,s.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],u.prototype,"isInverse",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"wkt",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"wkid",void 0),u=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],u)},78125(e,t,n){n.r(t),n.d(t,{fromExtent:()=>d,fromGeometry:()=>g,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>x,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>P,fromSpatialReference:()=>_,getSpatialReference:()=>p,toExtent:()=>N,toGeometry:()=>w,toMultipoint:()=>S,toPoint:()=>b,toPolygon:()=>C,toPolyline:()=>I});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799),f=(n(90293),n(83299));const m="_gxVersion";function p(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function g(e){switch(e.type){case"point":return v(e);case"multipoint":return y(e);case"polyline":return M(e);case"polygon":return x(e);case"extent":return d(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function d(e){if(!e.getCacheValue(m)){const t=new o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function y(e){if(!e.getCacheValue(m)){const t=new i.M,n=new o.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),a&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),t.add(n)}e.setCacheValue(m,t)}return e.getCacheValue(m)}function v(e){if(!e.getCacheValue(m)){const t=new o.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(m,t)}return e.getCacheValue(m)}function x(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function M(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function P(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function _(e){return(0,f.fromSpatialReference)(e)}function w(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return b(e,t);case s.G.enumEnvelope:return N(e,t);case s.G.enumMultiPoint:return S(e,t);case s.G.enumPolyline:return I(e,t);case s.G.enumPolygon:return C(e,t)}return null}function N(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(2,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(1,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(m,e),n}function S(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],a=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:s,points:i,spatialReference:t});return c.setCacheValue(m,e),c}function b(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(m,e),n}function C(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}function I(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}},5808(e,t,n){n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>s});var r=n(49208);function s(e,t,n,s,o,i,a=Math.floor(e.length/3)){const u=(0,r.jd)(t,o);if(null==u)return!1;if(u===r.pO){if(e===s&&n===i)return!0;const t=n+3*a;for(let r=n,o=i;r<t;r++,o++)s[o]=e[r]??0;return!0}const c=n+3*a;for(let t=n,r=i;t<c;t+=3,r+=3)u(e,t,s,r);return!0}},65806(e,t,n){n.d(t,{g:()=>i});var r=n(51850),s=n(91218),o=n(9762);function i(e,t,n,r){if((0,s.canProjectWithoutEngine)(e.spatialReference,n))return a[0]=e.x,a[1]=e.y,a[2]=e.z??0,(0,o.projectBuffer)(a,e.spatialReference,0,t,n,0);const i=(0,s.tryProject)(e,n,r);return!!i&&(t[0]=i.x,t[1]=i.y,t[2]=i.z??0,!0)}const a=(0,r.vt)()},27993(e,t,n){n.d(t,{F:()=>a});var r=n(91218),s=n(16930),o=n(9762),i=n(65806);function a(e,t,n,s){return!(null==t||null==s||e.length<2)&&((0,r.canProjectWithoutEngine)(t,s)?(0,o.projectBuffer)(e,t,0,n,s,0,1):(u.x=e[0],u.y=e[1],u.z=e[2],u.spatialReference=t,(0,i.g)(u,n,s)))}const u={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:s.A.WGS84,type:"point"}},49208(e,t,n){n.d(t,{Tp:()=>h,jd:()=>l,pO:()=>m,w5:()=>c});var r=n(34727),s=n(86211),o=n(73941),i=n(79258),a=n(34403),u=n(21325);const c={2:{5:m,7:null,9:null,10:m,1:P,6:null,8:null,0:null,3:g,11:d,2:m,4:b},5:{5:m,7:null,9:null,10:m,1:P,6:null,8:null,0:null,3:g,11:d,2:m,4:b},7:{5:null,7:m,9:null,10:m,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:x,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:function(e,t,n,r){const s=e[t]/E,o=D-2*Math.atan(Math.exp(-e[t+1]/E)),i=E+(e[t+2]??0),a=Math.cos(o)*i;n[r]=Math.cos(s)*a,n[r+1]=Math.sin(s)*a,n[r+2]=Math.sin(o)*i},6:null,8:null,0:null,3:m,11:function(e,t,n,r){p(e,t,n,r),d(n,r,n,r)},2:p,4:function(e,t,n,r){p(e,t,n,r),b(n,r,n,r)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,n,r){C(e,t,n,r),P(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){C(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){C(e,t,n,r),d(n,r,n,r)},2:C,4:m},1:{5:S,7:null,9:null,10:S,1:m,6:null,8:null,0:null,3:function(e,t,n,r){S(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){S(e,t,n,r),d(n,r,n,r)},2:S,4:function(e,t,n,r){S(e,t,n,r),b(n,r,n,r)}},6:{5:null,7:N,9:null,10:N,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:w,10:w,1:null,6:null,8:m,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:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:P,6:M,8:x,0:null,3:g,11:d,2:m,4:b},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){y(e,t,n,r),P(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){y(e,t,n,r),g(n,r,n,r)},11:m,2:y,4:function(e,t,n,r){y(e,t,n,r),b(n,r,n,r)}}};function l(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(I.source.spatialReference===e&&I.dest.spatialReference===t)return I;const n=f(e,I.source),r=f(t,I.dest);return 0===n&&0===r?(0,u.aI)(e,t)?I.projector=m:I.projector=null:I.projector=c[n][r],I}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,u.oT)(e)?t.spatialReferenceId=2:(0,u.K8)(e)?t.spatialReferenceId=3:(0,u.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 m(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function p(e,t,n,r){n[r]=R*(e[t]/E),n[r+1]=R*(D-2*Math.atan(Math.exp(-e[t+1]/E))),n[r+2]=e[t+2]??0}function g(e,t,n,s){!function(e,t,n,s,o){const i=.4999999*Math.PI,a=(0,r.qE)(A*e[t+1],-i,i),u=Math.sin(a);n[s++]=A*e[t]*o.radius,n[s++]=o.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[s]=e[t+2]??0}(e,t,n,s,i.$O)}function d(e,t,n,r){n[r]=e[t]*O,n[r+1]=e[t+1]*O,n[r+2]=e[t+2]??0}function y(e,t,n,r){n[r]=e[t]*G,n[r+1]=e[t+1]*G,n[r+2]=e[t+2]??0}function v(e,t,n,r,s){const o=s+(e[t+2]??0),i=A*e[t],a=A*e[t+1],u=Math.cos(a)*o;n[r]=Math.cos(i)*u,n[r+1]=Math.sin(i)*u,n[r+2]=Math.sin(a)*o}function x(e,t,n,r){v(e,t,n,r,i.Sw.radius)}function M(e,t,n,r){v(e,t,n,r,i.sH.radius)}function P(e,t,n,r){v(e,t,n,r,i.$O.radius)}function _(e,t,n,s,o){const i=e[t],a=e[t+1],u=e[t+2]??0,c=Math.sqrt(i*i+a*a+u*u),l=(0,r.YN)(u/(0===c?1:c)),h=Math.atan2(a,i);n[s++]=R*h,n[s++]=R*l,n[s]=c-o}function w(e,t,n,r){_(e,t,n,r,i.Sw.radius)}function N(e,t,n,r){_(e,t,n,r,i.sH.radius)}function S(e,t,n,r){_(e,t,n,r,i.$O.radius)}function b(e,t,n,r){!function(e,t,n,r,s){const o=A*e[t],i=A*e[t+1],a=e[t+2]??0,u=Math.sin(i),c=Math.cos(i),l=s.radius/Math.sqrt(1-s.eccentricitySquared*u*u);n[r++]=(l+a)*c*Math.cos(o),n[r++]=(l+a)*c*Math.sin(o),n[r++]=(l*(1-s.eccentricitySquared)+a)*u}(e,t,n,r,i.$O)}function C(e,t,n,r){const s=a.TP,o=e[t],u=e[t+1],c=e[t+2]??0;let l,h,f,m,p,g,d,y,v,x,M,P,_,w,N,S,b,C,I,A,D;l=Math.abs(c),h=o*o+u*u,f=Math.sqrt(h),m=h+c*c,p=Math.sqrt(m),A=Math.atan2(u,o),g=c*c/m,d=h/m,w=s.a2/p,N=s.a3-s.a4/p,d>.3?(y=l/p*(1+d*(s.a1+w+g*N)/p),I=Math.asin(y),x=y*y,v=Math.sqrt(1-x)):(v=f/p*(1-g*(s.a5-w-d*N)/p),I=Math.acos(v),x=1-v*v,y=Math.sqrt(x)),M=1-i.$O.eccentricitySquared*x,P=i.$O.radius/Math.sqrt(M),_=s.a6*P,w=f-P*v,N=l-_*y,b=v*w+y*N,S=v*N-y*w,C=S/(_/M+b),I+=C,D=b+S*C/2,c<0&&(I=-I),n[r++]=R*A,n[r++]=R*I,n[r]=D}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},A=(0,r.kU)(1),R=(0,r.KJ)(1),D=.5*Math.PI,E=i.$O.radius,O=E*Math.PI/180,G=180/(E*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>X,initializeProjection:()=>W,isEqualBaseGCS:()=>J,isLoaded:()=>E,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>G,load:()=>q,project:()=>Z,projectAsync:()=>L,projectExtent:()=>se,projectMany:()=>j,projectMultipoint:()=>H,projectOrLoad:()=>B,projectOrLoadMany:()=>Y,projectPoint:()=>$,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>U,requiresLoad:()=>T,test:()=>k,tryProject:()=>z,unload:()=>V});var r=n(49186),s=n(17676),o=n(62788),i=n(95488),a=n(51850),u=n(21276),c=n(73941),l=n(5443),h=n(91075),f=n(48526),m=n(86738),p=n(39829),g=n(82799),d=n(16930),y=n(98764),v=n(159),x=n(9762),M=n(49208);function P(e,t,n,r,s,o){return _[0]=e,_[1]=t,_[2]=n,(0,x.projectBuffer)(_,r,0,s,o,0)}const _=(0,a.vt)();var w=n(60408),N=n(21325),S=n(52006);let b=null,C=null,I=null,A=null,R={};const D=new i.I;function E(){return!!(C?.isLoaded()&&I?.isLoaded()&&A?.isLoaded())}function O(){return!!E()||((0,o.gc)(D),q(),!1)}function G(e,t){return!e||!t||X(e,t)||O()}function T(e,t){return!X(e,t)&&!E()}async function q(e){null==b&&(b=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(C=e,C.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(I=e,I.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(A=e,A.load()))])),await b,(0,s.Te)(e),D.notify()}function Z(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,u.H)(e),j(e,e[0].spatialReference,t,n)):((0,u.f)(e),j([e],e.spatialReference,t,n)[0])}function j(e,t,n,r){if(null==t||null==n)return e;if(X(t,n,r))return e.map(e=>U(e,t,n));if(null==r?.geographicTransformation&&(0,c.jA)(t))return j(e.map(e=>U(e,t,d.A.WGS84)),d.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,c.jA)(n))return j(e,t,d.A.WGS84).map(e=>U(e,d.A.WGS84,n));if(!E())throw new F;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:A.getTransformation(t,n,r.areaOfInterestExtent)||new v.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let s=R[e];s||(s=A.getTransformation(t,n)||new v.A,R[e]=s),r={geographicTransformation:s,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?C.executeMany(e,n,r):I.executeMany(e,n,r)}function z(e,t,n){try{return Z(e,t,n)}catch(e){return null}}function B(e,t){const n=Y([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function Y(e,t,n){if(!E())for(const n of e)if(null!=n&&!(0,N.aI)(n.spatialReference,t)&&(0,N.fn)(n.spatialReference)&&(0,N.fn)(t)&&!X(n.spatialReference,t))return(0,o.gc)(D),{pending:q(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,N.aI)(e.spatialReference,t)?e:(0,N.fn)(e.spatialReference)&&(0,N.fn)(t)?Z(e,t,n):null)}}class F extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function V(){b=null,C=null,I=null,A=null,R={}}const k={get loadPromise(){return b}};async function L(e,t,n){if((0,s.Te)(n),!e)return e;const r=Y(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,s.Te)(n),L(e,t,n);const o=r.geometries??[];return Array.isArray(e)?o:o[0]}function X(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,N.aI)(e,t)||(0,N.fn)(e)&&(0,N.fn)(t)&&!!(0,M.jd)(e,t))}function J(e,t){if((0,N.aI)(e,t))return!0;if(!(0,N.fn)(e)||!(0,N.fn)(t))return!1;const n=(0,N.oT)(e)||(0,N.K8)(e)||(0,N.x1)(e),r=(0,N.oT)(t)||(0,N.K8)(t)||(0,N.x1)(t);return n&&r}async function W(e,t,n,r){if(E())return(0,s.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:s}of e)if(t&&n&&!X(t,n,s))return q(r)}else if(e&&t&&!X(e,t,n))return q(r);return(0,s.NO)(r)}function U(e,t,n){return e?(0,w.fT)(e)?K(e,t,new m.A,n,0):(0,w.ZC)(e)?oe(e,t,new l.A,n,0):(0,w.Bi)(e)?re(e,t,new p.A,n,0):(0,w.Rg)(e)?te(e,t,new g.A,n,0):(0,w.U9)(e)?Q(e,t,new f.A,n,0):null:null}function $(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=K(e,e.spatialReference,t,n,r)}function K(e,t,n,r,s){ce[0]=e.x,ce[1]=e.y;const o=e.z;return ce[2]=void 0!==o?o:s,(0,x.projectBuffer)(ce,t,0,ce,r,0)?(n.x=ce[0],n.y=ce[1],n.spatialReference=r,void 0!==o||(0,c.xP)(r)?(n.z=ce[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function H(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,r)}function Q(e,t,n,r,s){const{points:o,hasZ:i,hasM:a}=e,u=[],c=o.length,l=[];for(const e of o)l.push(e[0],e[1],i?e[2]:s);if(!(0,x.projectBuffer)(l,t,0,l,r,0,c))return null;const h=ue(i,r);for(let e=0;e<c;++e){const t=3*e,n=l[t],r=l[t+1];h&&a?u.push([n,r,l[t+2],o[e][3]]):h?u.push([n,r,l[t+2]]):a?u.push([n,r,o[e][2]]):u.push([n,r])}return n.points=u,n.spatialReference=r,n.hasZ=i,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,s){const{curvePaths:o,paths:i,hasZ:a,hasM:u}=e;if(!(o?ae(o,a??!1,u??!1,t,n.curvePaths=[],r,s):ie(i,a??!1,u??!1,t,n.paths,r,s)))return null;const c=ue(a,r);return n.spatialReference=r,n.hasZ=c,n.hasM=u,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,s){const{curveRings:o,rings:i,hasZ:a,hasM:u}=e;return(o?ae(o,a??!1,u??!1,t,n.curveRings=[],r,s):ie(i,a??!1,u??!1,t,n.rings,r,s))?(n.spatialReference=r,n.hasZ=ue(a,r),n.hasM=u,n):null}function se(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,s){const{xmin:o,ymin:i,xmax:a,ymax:u,hasZ:c,hasM:l}=e;if(!P(o,i,c?e.zmin:s,t,ce,r))return null;const h=ue(c,r);return n.xmin=ce[0],n.ymin=ce[1],h&&(n.zmin=ce[2]),P(a,u,c?e.zmax:s,t,ce,r)?(n.xmax=ce[0],n.ymax=ce[1],h&&(n.zmax=ce[2]),l&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function ie(e,t,n,r,s,o,i=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:i);if(!(0,x.projectBuffer)(a,r,0,a,o,0))return!1;let u=0;s.length=0;const c=t?3:2,l=ue(t,o);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(u,u+=3);l||t.pop(),n&&t.push(r[c]),e.push(t)}s.push(e)}return!0}function ae(e,t,n,r,s,o,i=0){const a=new Array;for(const n of e)for(const e of n){if((0,S.FG)(e))return!1;if((0,S.aO)(e)){const[n,r]=e.c;a.push(n[0],n[1],t?n[2]:i,r[0],r[1],i);continue}if((0,S.n1)(e)){const[n,r,s]=e.b;a.push(n[0],n[1],t?n[2]:i,r[0],r[1],i,s[0],s[1],i);continue}const n=e;a.push(n[0],n[1],t?n[2]:i)}if(!(0,x.projectBuffer)(a,r,0,a,o,0))return!1;let u=0;s.length=0;const c=t?3:2,l=ue(t,o);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(u,u+=3);if(l||t.pop(),n&&t.push((0,S.yP)(r)[c]),(0,S.FG)(r))return!1;if((0,S.aO)(r)){const n=a[u++],r=a[u++];++u,e.push({c:[t,[n,r]]});continue}if((0,S.n1)(r)){const n=a[u++],r=a[u++];++u;const s=a[u++],o=a[u++];++u,e.push({b:[t,[n,r],[s,o]]});continue}e.push(t)}s.push(e)}return!0}function ue(e,t){return e||(0,c.xP)(t)||(0,N.aI)(t,y.Y0)}const ce=(0,a.vt)()},98764(e,t,n){n.d(t,{GD:()=>i,Y0:()=>c,lO:()=>l});var r=n(73941),s=n(16930),o=n(21325);const i=new s.A(r.fv),a=new s.A(r.FY),u=new s.A(r.LJ),c=new s.A(r.Ro);function l(e){const t=h.get(e);if(t)return t;let n=i;if(e)if(e===a)n=a;else if(e===u)n=u;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=u);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?n=a:e===m&&(n=u)}}}return h.set(e,n),n}const h=new Map,f=a.wkt.toUpperCase(),m=u.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>o,l5:()=>a,xm:()=>i});var r=n(34275),s=n(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function i(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e){return[...e]}function c(e){const t=(0,s.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>x,DC:()=>h,Ej:()=>m,Ie:()=>y,Jt:()=>v,Ne:()=>p,RF:()=>l,aI:()=>P,fA:()=>i,gE:()=>u,hZ:()=>d,iT:()=>f,is:()=>M,qv:()=>_,vI:()=>g,vY:()=>a,v_:()=>w,vt:()=>o,w1:()=>c});var r=n(5443),s=(n(19419),n(4197));function o(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function i(e,t,n,r,s,i,a=o()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=s,a[5]=i,a}function a(e,t=o()){return function(e,t,n,r=o()){return d(r,_),function(e,t,n=0,r=t.length/3){let s=e[0],o=e[1],i=e[2],a=e[3],u=e[4],c=e[5];for(let e=0;e<r;e++)s=Math.min(s,t[n+3*e]),o=Math.min(o,t[n+3*e+1]),i=Math.min(i,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),c=Math.max(c,t[n+3*e+2]);e[0]=s,e[1]=o,e[2]=i,e[3]=a,e[4]=u,e[5]=c}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,s.jh)(24)){const[n,r,o,i,a,u]=e;return t[0]=n,t[1]=r,t[2]=o,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=a,t[8]=o,t[9]=n,t[10]=a,t[11]=u,t[12]=i,t[13]=r,t[14]=o,t[15]=i,t[16]=r,t[17]=u,t[18]=i,t[19]=a,t[20]=o,t[21]=i,t[22]=a,t[23]=u,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function p(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function g(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?d(e,_):o(_)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function x(e,t,n,r,s){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function M(e){return 6===e.length}function P(e,t,n){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];o()},34403(e,t,n){n.d(t,{TP:()=>i});var r=n(79258);Math.PI;const s=r.$O.radius,o=r.$O.eccentricitySquared,i={a1:s*o,a2:s*o*s*o,a3:s*o*o/2,a4:s*o*s*o*2.5,a5:s*o+s*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},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 s(e){return void 0!==e.points}function o(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function u(e){return"object"==typeof e&&"vertexAttributes"in e}function c(e){return e?o(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function l(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>c,Bi:()=>a,Pv:()=>l,Rg:()=>i,U9:()=>s,W0:()=>h,ZC:()=>r,fT:()=>o,uW:()=>u})},28735(e,t,n){n.d(t,{Cv:()=>d,Gh:()=>x,ci:()=>M,je:()=>y,jg:()=>h,tD:()=>v,y7:()=>g,yw:()=>l});var r=n(4718),s=n(21276),o=n(16930),i=n(79258),a=n(21325);function u(e){return 57.29577951308232*e}function c(e){return.017453292519943*e}function l(e){return e/i.$O.radius}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/i.$O.radius))}function f(e){return null!=e.wkid||null!=e.wkt}const m=[0,0];function p(e,t,n,r,s){const o=e,i=s;if(i.spatialReference=n,"x"in o&&"x"in i)[i.x,i.y]=t(o.x,o.y,m,r);else if("xmin"in o&&"xmin"in i)[i.xmin,i.ymin]=t(o.xmin,o.ymin,m,r),[i.xmax,i.ymax]=t(o.xmax,o.ymax,m,r);else if("paths"in o&&"paths"in i||"rings"in o&&"rings"in i){const e="paths"in o?o.paths:o.rings,n=[];let s;for(let o=0;o<e.length;o++){const i=e[o];s=[],n.push(s);for(let e=0;e<i.length;e++)s.push(t(i[e][0],i[e][1],[0,0],r)),i[e].length>2&&s[e].push(i[e][2]),i[e].length>3&&s[e].push(i[e][3])}"paths"in i?i.paths=n:i.rings=n}else if("points"in o&&"points"in i){const e=o.points,n=[];for(let s=0;s<e.length;s++)n[s]=t(e[s][0],e[s][1],[0,0],r),e[s].length>2&&n[s].push(e[s][2]),e[s].length>3&&n[s].push(e[s][3]);i.points=n}return s}function g(e,t){const n=e&&(f(e)?e:e.spatialReference),r=t&&(f(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!n||!r)&&(!!(0,a.aI)(r,n)||(0,a.K8)(r)&&(0,a.oT)(n)||(0,a.K8)(n)&&(0,a.oT)(r))}function d(e,t){if(null==e)return null;const n=e.spatialReference,s=t&&(f(t)?t:t.spatialReference);return g(n,s)?(0,a.aI)(n,s)?(0,r.o8)(e):(0,a.K8)(s)?p(e,y,o.A.WebMercator,!1,(0,r.o8)(e)):(0,a.oT)(s)?p(e,v,o.A.WGS84,!1,(0,r.o8)(e)):null:null}function y(e,t,n=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const r=c(t);return n[0]=c(e)*i.$O.radius,n[1]=i.$O.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function v(e,t,n=[0,0],r=!1){if(e===a.Mc[0])n[0]=-180;else if(e===a.Mc[1])n[0]=180;else{const t=u(e/i.$O.radius);n[0]=r?t:t-360*Math.floor((t+180)/360)}return n[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/i.$O.radius))),n}function x(e,t=!1,n=(0,r.o8)(e)){return(0,s.f)(e),(0,s.f)(n),p(e,y,o.A.WebMercator,t,n)}function M(e,t=!1,n=(0,r.o8)(e)){return(0,s.f)(e),(0,s.f)(n),p(e,v,o.A.WGS84,t,n)}},92722(e,t,n){n.d(t,{A:()=>s});var r=n(69397);class s{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new s(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const o=n-e,i=r-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*t],o=this.coords[r*t+1];for(let i=1;i<n;i+=1){const n=r*(t+i),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-s)*(u+o),s=a,o=u}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(t+s);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:s}=this;for(const e of n){for(let n=1;n<e;n++){const e=s*(r+n);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return e?(e.set(o),new s(t,e)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new s(this.lengths,n,!1,!1)}}},32728(e,t,n){n.d(t,{YH:()=>i,nu:()=>a,wp:()=>o}),n(34727);var r=n(35522),s=n(51850);function o(e,t){const n=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),s=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),o=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,r.hZ)(e,n,s,o),e}function i(e,t,n){n=n||e;const s=(0,r.Om)(e,t);(0,r.hZ)(n,e[0]-s*t[0],e[1]-s*t[1],e[2]-s*t[2]),(0,r.S8)(n,n)}function a(e,t,n,o=(0,s.vt)()){const i=(0,r.Bw)(e),a=(0,r.Bw)(t),l=(0,r.Om)(e,t)/(i*a);if(l<.9999999999999999){const s=Math.acos(l),h=((1-n)*i+n*a)/Math.sin(s),f=h/i*Math.sin((1-n)*s),m=h/a*Math.sin(n*s);return(0,r.hs)(u,e,f),(0,r.hs)(c,t,m),(0,r.WQ)(o,u,c)}return(0,r.Cc)(o,e,t,n)}(0,s.vt)(),(0,s.vt)(),(0,s.vt)();const u=(0,s.vt)(),c=(0,s.vt)()},69396(e,t,n){n.r(t),n.d(t,{area2D:()=>Z,areaHorizontal:()=>J,autoArea2D:()=>F,autoDistance2DBetweenPoints:()=>k,autoLength2D:()=>V,autoSize2D:()=>L,distance2DBetweenPoints:()=>Y,geodeticArea:()=>A,geodeticDistanceBetweenPoints:()=>T,geodeticDistanceBetweenPointsMany:()=>q,geodeticLength:()=>G,length2D:()=>B,preloadGeodetic:()=>R});var r=n(17799),s=n(86211),o=n(35522),i=n(51850),a=n(73941),u=n(48526),c=n(86738),l=n(39829),h=n(82799),f=n(91218),m=n(16930),p=n(98764),g=n(65708),d=n(48265),y=n(16346),v=n(49590),x=n(11918),M=n(39663),P=n(7817),_=n(10222),w=n(27993);function N(e,t,n,r,s){(0,o.C)(S,e),(0,o.WQ)(b,e,t),(0,w.F)(S,n,S,s),(0,w.F)(b,n,b,s),(0,o.Re)(r,b,S),(0,o.S8)(r,r)}const S=(0,i.vt)(),b=(0,i.vt)();var C=n(21325),I=n(32728);async function A({geometryJSON:e,options:t}){await Promise.allSettled([(0,v.l)(),t?.returnLength?(0,M.l)():void 0]);const n=D(e,t),o=t?.unit??"square-meters",i=(0,_.e)(n)??n,a=(0,v.e)(i,{unit:o,...t}),u=(0,r.gT)(a,o),c=t?.lengthUnit??(0,s.Bd)(o);return{area:u,centroid:t?.returnCentroid?E(i).toJSON():void 0,length:t?.returnLength?await O(i,{unit:c}):void 0}}function R(){(0,v.l)(),(0,M.l)(),(0,x.load)()}function D(e,t){const n="rings"in e?l.A.fromJSON(e):h.A.fromJSON(e);if(t?.stagedPoint){const e=c.A.fromJSON(t.stagedPoint),r=("rings"in n?n.rings:n.paths).at(-1);if(r){const{x:t,y:s,z:o,m:i}=e,a=n.hasZ&&n.hasM?[t,s,o??0,i??0]:n.hasZ?[t,s,o??0]:n.hasM?[t,s,i??0]:[t,s];r.push(a)}}return n}function E(e){return(0,d.e)(e)}async function O(e,t){await(0,M.l)();const n=t?.unit??"meters";return(0,r.d_)((0,M.e)(e,{...t,unit:n}),n)}function G({geometryJSON:e,options:t}){return O(D(e,t),t)}async function T({geometry1JSON:e,geometry2JSON:t,options:n}){await(0,x.load)();const s=c.A.fromJSON(e),o=c.A.fromJSON(t),i=n?.unit??"meters";return(0,r.d_)((0,x.execute)(s,o,{...n,unit:i}),i)}async function q({geometry1JSON:e,geometry2JSON:t,options:n}){await(0,x.load)();const s=u.A.fromJSON(e),o=u.A.fromJSON(t);if(s.points.length!==o.points.length)throw new Error("Input multipoints must have the same number of points.");const i=s.points.length,a=n?.unit??"meters",c=[],l={...n,unit:a};for(let e=0;e<i;e++){const t=s.getPoint(e),n=o.getPoint(e);c.push(null!=t&&null!=n?(0,r.d_)((0,x.execute)(t,n,l),a):null)}return c}function Z({geometryJSON:e,options:t}){return j(D(e,t),t)}function j(e,t){const n=t?.unit??"square-meters",o=t?.lengthUnit??(0,s.Bd)(n),i=(0,_.e)(e)??e,a=(0,g.e)(i,{unit:n,...t});return{area:(0,r.gT)(a,n),centroid:t?.returnCentroid?E(i).toJSON():void 0,length:t?.returnLength?z(i,{unit:o}):void 0}}function z(e,t){const n=t?.unit??"meters";return(0,r.d_)((0,P.e)(e,{...t,unit:n}),n)}function B({geometryJSON:e,options:t}){return z(D(e,t),t)}function Y({geometry1JSON:e,geometry2JSON:t,options:n}){const s=c.A.fromJSON(e),o=c.A.fromJSON(t),i=n?.unit??"meters";return(0,r.d_)((0,y.e)(s,o,{...n,unit:i}),i)}async function F(e){return X(e.geometryJSON.spatialReference,A,Z)(e)}async function V(e){return X(e.geometryJSON.spatialReference,G,B)(e)}async function k(e){return X(e.geometry1JSON.spatialReference,T,Y)(e)}async function L(e){const t=X(e.topLeftJSON.spatialReference,T,Y),{topLeftJSON:n,topRightJSON:s,bottomRightJSON:o,bottomLeftJSON:i,options:a}=e,[u,c,l,h]=await Promise.all([t({geometry1JSON:i,geometry2JSON:o,options:a}),t({geometry1JSON:n,geometry2JSON:s,options:a}),t({geometry1JSON:o,geometry2JSON:s,options:a}),t({geometry1JSON:i,geometry2JSON:n,options:a})]);return{width:(0,r.T9)(u,c),height:(0,r.T9)(h,l)}}function X(e,t,n){switch(r=e,(0,C.EA)(r)||(0,C.K8)(r)?0:1){case 0:return t;case 1:return n}var r}function J(e){const{geometryJSON:t}=e,n=function(e){return e?(0,a.B3)(e)?(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e)||(0,a.jA)(e)||(0,C.aI)(e,p.Y0)?{mode:1,spatialReference:p.Y0}:{mode:0,spatialReference:e}:{mode:1,spatialReference:(0,p.lO)(e)}:null}(t.spatialReference);if(!n)throw new Error("Cannot compute horizontal area without a valid spatial reference.");switch(n.mode){case 0:return Z(e);case 1:return function(e,{geometryJSON:t,options:n}){const r=D(t,n),s=H,o=$,i=K,a=(0,C.aI)(r.spatialReference,e.spatialReference)?r.clone():(0,f.projectWithoutEngine)(r,r.spatialReference,e.spatialReference);if(!a)throw new Error(`Cannot project geometry from ${r.spatialReference?.wkid??"unknown"} to ${e.spatialReference.wkid}.`);U(a,s,o,i);const{area:u,centroid:c,length:l}=j(a,n);return{area:u,centroid:W(c,s,o,i,e.spatialReference,r.spatialReference),length:l}}(n,e)}}function W(e,t,n,r,s,i){if(!e)return e;(0,o.hs)(n,n,e.x),(0,o.hs)(r,r,e.y);const a=Q;return(0,o.WQ)(a,n,r),(0,o.WQ)(a,a,t),e.x=a[0],e.y=a[1],e.z=a[2],e.spatialReference=s,(0,f.projectWithoutEngine)(e,e.spatialReference,i)?.toJSON()??void 0}function U(e,t,n,r){let s=0;(0,o.hZ)(t,0,0,0);for(const n of e.rings)for(const e of n)t[0]+=e[0],t[1]+=e[1],t[2]+=e[2],s++;(0,o.hs)(t,t,1/s);const i=ee;(0,o.S8)(i,t);const a=te,u=Math.atan2(i[1],i[0]);(0,o.hZ)(a,-Math.sin(u),Math.cos(u),0),(0,C.aI)(e.spatialReference,p.Y0)&&(N(t,i,p.GD,i,e.spatialReference),N(t,a,p.GD,a,e.spatialReference)),(0,I.YH)(a,i,n),(0,o.$A)(r,n,i);const c=Q;for(const s of e.rings)for(const e of s){(0,o.hZ)(c,e[0],e[1],e[2]),(0,o.Re)(c,c,t);const s=(0,o.Om)(n,c),i=(0,o.Om)(r,c);e[0]=s,e[1]=i}e.hasZ=!1,e.spatialReference=m.A.WebMercator}const $=(0,i.vt)(),K=(0,i.vt)(),H=(0,i.vt)(),Q=(0,i.vt)(),ee=(0,i.vt)(),te=(0,i.vt)()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3514,9397],{59260(t,e,n){n.d(e,{g:()=>u,p:()=>h});var r=n(36633),i=n(86211),o=n(78125),s=n(79533);const c=new r.O;function u(t,e,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:u=!0,unit:a}=n,h=c.getNearestCoordinate((0,o.fromGeometry)(t),(0,o.fromPoint)(e).getXY(),u,r);if(a&&h.m_distance){const e=(0,o.getSpatialReference)(t);h.m_distance=(0,i.PQ)(h.m_distance,e,a)}return(0,s.C)(h,t,r)}const a=c.supportsCurves(),h=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:u,getNearestVertex:function(t,e,n={}){const{unit:r}=n,u=c.getNearestVertex((0,o.fromGeometry)(t),(0,o.fromPoint)(e).getXY());if(r&&u.m_distance){const e=(0,o.getSpatialReference)(t);u.m_distance=(0,i.PQ)(u.m_distance,e,r)}return(0,s.C)(u,t)},getNearestVertices:function(t,e,n,r,u={}){const{unit:a}=u,h=(0,o.getSpatialReference)(t);return a&&n&&(n=(0,i.UW)(n,a,h)),c.getNearestVertices((0,o.fromGeometry)(t),(0,o.fromPoint)(e).getXY(),n,r).map(e=>(a&&e.m_distance&&(e.m_distance=(0,i.PQ)(e.m_distance,h,a)),(0,s.C)(e,t)))},supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},9093(t,e,n){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]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,s,c,u,a,h,f,l,m,d,g){return[t,e,n,r,i,o,s,c,u,a,h,f,l,m,d,g]}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>s,RS:()=>i,Ul:()=>m,i5:()=>l,lM:()=>o,qK:()=>h});var r=n(34275);const i=16;function o(t){if(!t)return 0;let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=c(t[n],!1));return e}function s(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let n=f;for(let r=0;r<e;r++)n+=c(t[r]);return n}(t);let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=c(t[n]));return e}function c(t,e=!0){switch(typeof t){case"object":return e?s(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return i;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+l:Array.isArray(e)?a(e,i):0:0),0)}function a(t,e){return f+t.length*e}const h=32,f=16,l=145,m=64},48032(t,e,n){n.d(e,{getNearestCoordinate:()=>r.g}),n(36633),n(86211),n(78125),n(79533);var r=n(59260)},79533(t,e,n){n.d(e,{C:()=>i});var r=n(78125);function i(t,e,n=!1){const i=(0,r.toPoint)(t.m_coordinate,(0,r.getSpatialReference)(e)),o=t.m_distance,s=t.isEmpty(),c=t.m_bRightSide;return{coordinate:i,distance:o,isEmpty:s,...n&&{isRightSide:c},vertexIndex:t.m_vertexIndex}}},4197(t,e,n){n.d(e,{Vj:()=>a,cj:()=>u,jh:()=>o,l5:()=>c,xm:()=>s});var r=n(34275),i=n(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function s(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function c(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t){return[...t]}function a(t){const e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>I,DC:()=>f,Ej:()=>m,Ie:()=>M,Jt:()=>x,Ne:()=>d,RF:()=>h,aI:()=>_,fA:()=>s,gE:()=>u,hZ:()=>y,iT:()=>l,is:()=>p,qv:()=>N,vI:()=>g,vY:()=>c,v_:()=>b,vt:()=>o,w1:()=>a});var r=n(5443),i=(n(19419),n(4197));function o(t=b){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function s(t,e,n,r,i,s,c=o()){return c[0]=t,c[1]=e,c[2]=n,c[3]=r,c[4]=i,c[5]=s,c}function c(t,e=o()){return function(t,e,n,r=o()){return y(r,N),function(t,e,n=0,r=e.length/3){let i=t[0],o=t[1],s=t[2],c=t[3],u=t[4],a=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),s=Math.min(s,e[n+3*t+2]),c=Math.max(c,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),a=Math.max(a,e[n+3*t+2]);t[0]=i,t[1]=o,t[2]=s,t[3]=c,t[4]=u,t[5]=a}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,i.jh)(24)){const[n,r,o,s,c,u]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=c,e[8]=o,e[9]=n,e[10]=c,e[11]=u,e[12]=s,e[13]=r,e[14]=o,e[15]=s,e[16]=r,e[17]=u,e[18]=s,e[19]=c,e[20]=o,e[21]=s,e[22]=c,e[23]=u,e}function a(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function d(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function g(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function M(t){return t?y(t,N):o(N)}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function I(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function p(t){return 6===t.length}function _(t,e,n){if(null==t||null==e)return t===e;if(!p(t)||!p(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const N=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];o()},92722(t,e,n){n.d(e,{A:()=>i});var r=n(69397);class i{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new i(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const o=n-t,s=r-e;return new i([5],[t,e,o,0,0,s,-o,0,0,-s])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let i=this.coords[r*e],o=this.coords[r*e+1];for(let s=1;s<n;s+=1){const n=r*(e+s),c=this.coords[n],u=this.coords[n+1];t+=-.5*(c-i)*(u+o),i=c,o=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let i=0;i<r;i++){const r=n*(e+i);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:i}=this;for(const t of n){for(let n=1;n<t;n++){const t=i*(r+n);e[t]+=e[t-i],e[t+1]+=e[t+1-i]}r+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return t?(t.set(o),new i(e,t)):new i(e,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new i(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[368,6061,7987,7992,9397],{61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},46810(t,e,r){r.d(e,{O:()=>s});var n=r(15756);class s extends n.n{getOperatorType(){return 5}execute(t,e,r,s){return(0,n.r)(t,e,r,8,s)}}},76061(t,e,r){r.d(e,{S:()=>s});var n=r(61691);class s extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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]]}r.d(e,{o8:()=>s,vt:()=>n,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(t,e,r,n,s,i,o,a,h,u,c,l,f,g,m,x){return[t,e,r,n,s,i,o,a,h,u,c,l,f,g,m,x]}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>h,Qh:()=>o,RS:()=>s,Ul:()=>g,i5:()=>f,lM:()=>i,qK:()=>c});var n=r(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=l;for(let n=0;n<e;n++)r+=a(t[n]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?u(e,s):0:0),0)}function u(t,e){return l+t.length*e}const c=32,l=16,f=145,g=64},87992(t,e,r){r.d(e,{JR:()=>O,ME:()=>E,MY:()=>A,NO:()=>C,Nh:()=>_,V2:()=>F,_s:()=>R,e6:()=>Y,gh:()=>I,tr:()=>N,uX:()=>d});var n=r(5482),s=r(69397),i=r(16930),o=(r(70328),r(19419)),a=r(60408),h=r(21325),u=r(513),c=r(50954),l=r(79567),f=r(52006),g=r(49663),m=r(46068),x=r(92722);class d{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=F(t,e,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(a.vertexXY.set(h.subarray(0,2*e),0),a.vertexZ?.set(u.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,r+1)),a.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(r.subarray(0,e),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=b(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=b(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],n=e[r++],s=e[r++],i=e[r++];return{b:[this.end,[t,n],[s,i]]}}const n=e[r++],s=e[r++],i=e[r++],o=e[r++],a=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[u,c]]};const l=2&n?0:1,f=1&n?0:1;return{a:[this.end,[a,h],l,f,o,s,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,n.mS)(r,new P(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=t,h=S(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new P(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(s,t,r),t=(0,f.yP)(r)}const[i,a,u,c]=s;e={xmin:i,ymin:a,xmax:u,ymax:c,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,i,o;t=n=1/0,i=o=-1/0;for(let e=0;e<r;++e){const r=s[2*e],a=s[2*e+1];t=Math.min(t,r),i=Math.max(i,r),n=Math.min(n,a),o=Math.max(o,a)}e={xmin:t,ymin:n,xmax:i,ymax:o,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}function E(t){let e,r,n;if((0,a.fT)(t)){n="point";const{x:s,y:i,z:o,m:a}=t,h=[s,i];null!=o&&h.push(o),null!=a&&h.push(a),r=[[h]],e=1}else(0,a.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=F(n,e,n.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=s;function l(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),o&&(c[m]=t[g]),++m}s.spatialReference=t.spatialReference??void 0;const g=s.hasZ?3:2;let m=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return s}for(const t of r[0])l(t);return s}const x="polygon"===n,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of r){if(d[p++]=m,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];h[2*m]=e,h[2*m+1]=n,++m}}return d[p]=m,s}function y(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*T;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[p++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];l(r);const i=m-1;(0,f.wY)(n)?(y(10),++s.segmentCountArc,v=R(r,n,s,i,v),r=n.a[0]):(0,f.DA)(n)?(y(10),++s.segmentCountArc,v=Z(r,n,s,i,v),r=n.a[0]):(0,f.aO)(n)?(y(10),++s.segmentCountArc,v=Y(r,n,s,i,v),r=n.c[0]):(0,f.n1)(n)?(y(4),++s.segmentCountBezier,v=N(0,n,s,i,v),r=n.b[0]):r=n}x&&w(e,r)||l(r)}return s.partOffsets[p]=m,s}function I(t){const e=b(t),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=t,o=S(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<r;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],i=new Array;for(;a<n;)i.push(e(a++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:u,hasZ:s,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:r,hasZ:n,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);n??=!1,s??=!1;const u=F(t,h,o,n,s,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],n&&(u.vertexZ[t]=r[e++]),s&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(n)+Number(s);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(a);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],n&&(u.vertexZ[t]=r[l++]),s&&(u.vertexM[t]=r[l++]);a&&(l+=c)}return u}function O({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:h}){const u=new x.A([],[],a,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(n[t]),h&&u.coords.push(s[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(n[t]),h&&u.coords.push(s[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function A(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class P{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function S({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function b({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,r)=>t===e[r])}function F(t,e,r,n,s,i,o,a){o??=0,a??=0;const h=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let u=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,n&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),s&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(X),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function R(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[h,u],c,l,f,g,x]=e.a;let d=4;l||(d|=1),c||(d|=2);const p=(0,m.SW)(t,e),[y,v]=(0,m.Uk)(p,.5);return s[o++]=d,s[o++]=g,s[o++]=x,s[o++]=f,s[o++]=h,s[o++]=u,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=y,s[o++]=v,o}function Z(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,g.i)(t,e);return V(a,4,...(0,u.mq)(a,.5),s,o)}function Y(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,V((0,c.pM)(t,e),0,...e.c[1],s,o)}function V(t,e,r,n,s,i){const{cx:o,cy:a,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=u-h,s[i++]=h,s[i++]=r,s[i++]=n,i}function N(t,{b:[e,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:h},u,c){return o[u]=2,a[u]=c,h[c++]=r,h[c++]=n,h[c++]=s,h[c++]=i,c}const T=1.61803,X=-1},83547(t,e,r){r.r(e),r.d(e,{execute:()=>o});var n=r(46810),s=r(83299);const i=new n.O;function o(t,e){const r=(0,s.fromGeometry)(t);return i.execute(r.getGeometry(),(0,s.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}},4197(t,e,r){r.d(e,{Vj:()=>u,cj:()=>h,jh:()=>i,l5:()=>a,xm:()=>o});var n=r(34275),s=r(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function a(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function h(t){return[...t]}function u(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>l,Ej:()=>g,Ie:()=>p,Jt:()=>y,Ne:()=>m,RF:()=>c,aI:()=>C,fA:()=>o,gE:()=>h,hZ:()=>d,iT:()=>f,is:()=>M,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>I,vt:()=>i,w1:()=>u});var n=r(5443),s=(r(19419),r(4197));function i(t=I){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,r,n,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,r,n=i()){return d(n,E),function(t,e,r=0,n=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],h=t[4],u=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),i=Math.min(i,e[r+3*t+1]),o=Math.min(o,e[r+3*t+2]),a=Math.max(a,e[r+3*t]),h=Math.max(h,e[r+3*t+1]),u=Math.max(u,e[r+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=h,t[5]=u}(n,t,e,r),n}(t,0,t.length/3,e)}function h(t,e=(0,s.jh)(24)){const[r,n,i,o,a,h]=t;return e[0]=r,e[1]=n,e[2]=i,e[3]=r,e[4]=n,e[5]=h,e[6]=r,e[7]=a,e[8]=i,e[9]=r,e[10]=a,e[11]=h,e[12]=o,e[13]=n,e[14]=i,e[15]=o,e[16]=n,e[17]=h,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=h,e}function u(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function g(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function m(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,E):i(E)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];i()},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const i=r-t,o=n-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],i=this.coords[n*e+1];for(let o=1;o<r;o+=1){const r=n*(e+o),a=this.coords[r],h=this.coords[r+1];t+=-.5*(a-s)*(h+i),s=a,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2942],{9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(e,t,n,r,o,i,a,s,u,c,l,d,f,m,v,p){return[e,t,n,r,o,i,a,s,u,c,l,d,f,m,v,p]}},Symbol.toStringTag,{value:"Module"}))},4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>i,l5:()=>s,xm:()=>a});var r=n(34275),o=n(9093);function i(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function a(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function s(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e){return[...e]}function c(e){const t=(0,o.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>w,DC:()=>d,Ej:()=>m,Ie:()=>h,Jt:()=>y,Ne:()=>v,RF:()=>l,aI:()=>A,fA:()=>a,gE:()=>u,hZ:()=>g,iT:()=>f,is:()=>b,qv:()=>x,vI:()=>p,vY:()=>s,v_:()=>I,vt:()=>i,w1:()=>c});var r=n(5443),o=(n(19419),n(4197));function i(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,n,r,o,a,s=i()){return s[0]=e,s[1]=t,s[2]=n,s[3]=r,s[4]=o,s[5]=a,s}function s(e,t=i()){return function(e,t,n,r=i()){return g(r,x),function(e,t,n=0,r=t.length/3){let o=e[0],i=e[1],a=e[2],s=e[3],u=e[4],c=e[5];for(let e=0;e<r;e++)o=Math.min(o,t[n+3*e]),i=Math.min(i,t[n+3*e+1]),a=Math.min(a,t[n+3*e+2]),s=Math.max(s,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),c=Math.max(c,t[n+3*e+2]);e[0]=o,e[1]=i,e[2]=a,e[3]=s,e[4]=u,e[5]=c}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,o.jh)(24)){const[n,r,i,a,s,u]=e;return t[0]=n,t[1]=r,t[2]=i,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=s,t[8]=i,t[9]=n,t[10]=s,t[11]=u,t[12]=a,t[13]=r,t[14]=i,t[15]=a,t[16]=r,t[17]=u,t[18]=a,t[19]=s,t[20]=i,t[21]=a,t[22]=s,t[23]=u,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function v(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function p(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?g(e,x):i(x)}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function w(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=o,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function A(e,t,n){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const x=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];i()},54339(e,t,n){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>o})},37352(e,t,n){n.d(t,{A:()=>u});var r,o=n(5482),i=n(7762),a=n(25482),s=n(91429);let u=r=class extends a.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"floorField",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=r=(0,o.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],u)},59418(e,t,n){n.d(t,{wH:()=>p,MA:()=>f,E5:()=>m,m0:()=>h});var r=n(49186),o=n(4718),i=n(53966),a=n(34275),s=n(37203);const u=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(e,t,n){let o="",i=0;for(;i<n;){const a=e[t+i];if(a<128)o+=String.fromCharCode(a),i++;else if(a>=192&&a<224){if(i+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const s=(31&a)<<6|63&e[t+i+1];o+=String.fromCharCode(s),i+=2}else if(a>=224&&a<240){if(i+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(15&a)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];o+=String.fromCharCode(s),i+=3}else{if(!(a>=240&&a<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(7&a)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(s>=65536){const e=55296+(s-65536>>10),t=56320+(1023&s);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(s);i+=4}}}return o}function l(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<t.length;o++){const i=t[o],a=i.valueType||i.type,s=w[a];n.fields[i.property]=s(e,r),r+=y[a].BYTES_PER_ELEMENT}return n.byteCount=r,n}function d(e,t,n){const o=[];let i,a,s=0;for(a=0;a<e;a+=1){if(i=t[a],i>0){if(o.push(c(n,s,i-1)),0!==n[s+i-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);s+=i}return o}function f(e,t){return new(0,y[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function m(e,t){if(!e)return null;const n=e[t];return(0,a.IY)(e)?n===a.PI?null:n:(0,a._G)(e)?n===a.h2?null:n:n!=n?null:n}function v(e,t,n){if(t!==e&&u().error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function p(e,t){const n=l(e,t&&t.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,a=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:r,count:a},i=g[e]||"_"+e;o.vertexAttributes[i]=n,r+=A(n.valueType)*n.valuesPerElement*a}const s=i.faceCount;if(t.faces&&s){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:r,count:s};o.faces[e]=n,r+=A(n.valueType)*n.valuesPerElement*s}}const u=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&u){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:r,count:u};o.featureAttributes[e]=n,r+=("UInt64"===n.valueType?8:A(n.valueType))*n.valuesPerElement*u}}return v(r,e.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const g={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function h(e,t,n,i=!1){if("lepcc-rgb"===e.encoding)return i?(0,s.mb)(t):function(e){return Array.isArray(e)?e.length<a.y9?e:new Uint8Array(e):e.length<a.y9?Array.from(e):e}((0,s.mb)(t));if("lepcc-intensity"===e.encoding)return i?(0,s.Ax)(t):function(e){return Array.isArray(e)?e.length<a.y9?e:new Uint16Array(e):e.length<a.y9?Array.from(e):e}((0,s.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(u().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(u().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const c=function(e,t,n){const i=null!=t.header?l(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},a={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let s=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],u=(0,o.o8)(t[n]);if(u.count=i.fields.count??0,"String"===u.valueType){if(u.byteOffset=s,u.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==u.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:u.encoding});if(u.timeEncoding&&"ECMA_ISO8601"!==u.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:u.timeEncoding})}else{if(!b(u.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:u.valueType});{const e=A(u.valueType);s+=s%e!==0?e-s%e:0,u.byteOffset=s,u.byteCount=e*u.valuesPerElement*u.count}}s+=u.byteCount??0,a.entries[n]=u}return a.byteCount=s-a.byteOffset,a}(t,e,n);v(c.byteOffset+c.byteCount,t.byteLength,"attribute");const p=c.entries.attributeValues||c.entries.objectIds;if(p){if("String"===p.valueType){const e=c.entries.attributeByteCounts,n=f(t,e),r=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,p);return p.timeEncoding?function(e,t,n){return d(e,t,n).map(e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t})}(e.count,n,r):d(e.count,n,r)}return i?f(t,p):function(e,t){const n=f(e,t);if(n.length>=a.y9)return n;const r=new Array;return n.forEach((e,t)=>r.push(m(n,t))),r}(t,p)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function b(e){return y.hasOwnProperty(e)}function A(e){return b(e)?y[e].BYTES_PER_ELEMENT:0}},5682(e,t,n){n.d(t,{s1:()=>l});var r=n(11254),o=(n(4576),n(49186),n(44208),n(58083),n(9093)),i=(n(35522),n(51850)),a=(n(91218),n(16930),n(27993),n(19419));n(39516),n(30524),n(61956);var s=n(59418);n(73941),n(48353);var u=n(91829);(0,u.fA)(0,0,0,.2);(0,u.fA)(0,0,0,.2),n(34727);var c=n(57005);async function l(e,t,n,o,i,a,u,c){const l=[];for(const r of t)if(r&&i.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;l.push({url:t,storageInfo:r})}const d=await Promise.allSettled(l.map(e=>(0,r.A)(e.url,{responseType:"array-buffer",query:{...u,token:a},signal:c?.signal}).then(t=>(0,s.m0)(e.storageInfo,t.data)))),f=[];for(const e of o){const t={};for(let n=0;n<d.length;n++){const r=d[n];if("fulfilled"===r.status){const o=r.value;t[l[n].storageInfo.name]=(0,s.E5)(o,e)}}f.push(t)}return f}n(22911),(0,a.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,a.vt)(),(0,a.vt)(),new c.ab,(0,i.vt)(),new Array(72),(0,o.vt)()},37203(e,t,n){n.d(t,{Ax:()=>m,Me:()=>s,mb:()=>d});var r=n(49186);const o=!0;function i(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+0,10)),version:t.getUint16(n+10,o),checksum:t.getUint32(n+12,o)}}function a(e,t){return{sizeLo:e.getUint32(t+0,o),sizeHi:e.getUint32(t+4,o),minX:e.getFloat64(t+8,o),minY:e.getFloat64(t+16,o),minZ:e.getFloat64(t+24,o),maxX:e.getFloat64(t+32,o),maxY:e.getFloat64(t+40,o),maxZ:e.getFloat64(t+48,o),errorX:e.getFloat64(t+56,o),errorY:e.getFloat64(t+64,o),errorZ:e.getFloat64(t+72,o),count:e.getUint32(t+80,o),reserved:e.getUint32(t+84,o)}}function s(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:s}=i(e,t,n);if(n+=16,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(s>1)throw new r.A("lepcc-decode-error","Unknown version");const c=a(t,n);if(n+=88,c.sizeHi*2**32+c.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const l=new Float64Array(3*c.count),d=[],f=[],m=[],v=[];if(n=u(e,n,d),n=u(e,n,f),n=u(e,n,m),n=u(e,n,v),n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad length");let p=0,g=0;for(let e=0;e<d.length;e++){g+=d[e];let t=0;for(let n=0;n<f[e];n++){t+=m[p];const e=v[p];l[3*p]=Math.min(c.maxX,c.minX+2*c.errorX*t),l[3*p+1]=Math.min(c.maxY,c.minY+2*c.errorY*g),l[3*p+2]=Math.min(c.maxZ,c.minZ+2*c.errorZ*e),p++}}return{errorX:c.errorX,errorY:c.errorY,errorZ:c.errorZ,result:l}}function u(e,t,n){const r=[];t=c(e,t,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,t=c(e,t,o);for(let e=0;e<o.length;e++)n.push(o[e]+r[i])}return t}function c(e,t,n){const i=new DataView(e,t),a=i.getUint8(0),s=31&a,u=!!(32&a),c=(192&a)>>6;let l=0;if(0===c)l=i.getUint32(1,o),t+=5;else if(1===c)l=i.getUint16(1,o),t+=3;else{if(2!==c)throw new r.A("lepcc-decode-error","Bad count type");l=i.getUint8(1),t+=2}if(u)throw new r.A("lepcc-decode-error","LUT not implemented");const d=Math.ceil(l*s/8),f=new Uint8Array(e,t,d);let m=0,v=0,p=0;const g=-1>>>32-s;for(let e=0;e<l;e++){for(;v<s;)m|=f[p]<<v,v+=8,p+=1;n[e]=m&g,m>>>=s,v-=s,v+s>32&&(m|=f[p-1]>>8-v)}return t+p}function l(e,t){return{sizeLo:e.getUint32(t+0,o),sizeHi:e.getUint32(t+4,o),count:e.getUint32(t+8,o),colorMapCount:e.getUint16(t+12,o),lookupMethod:e.getUint8(t+14),compressionMethod:e.getUint8(t+15)}}function d(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=i(e,t,n);if(n+=16,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const s=l(t,n);if(n+=16,s.sizeHi*2**32+s.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===s.lookupMethod||1===s.lookupMethod)&&0===s.compressionMethod){if(3*s.colorMapCount+s.count+n!==e.byteLength||s.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*s.colorMapCount),o=new Uint8Array(e,n+3*s.colorMapCount,s.count),i=new Uint8Array(3*s.count);for(let e=0;e<s.count;e++){const n=o[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===s.lookupMethod&&0===s.compressionMethod){if(3*s.count+n!==e.byteLength||0!==s.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(s.lookupMethod<=2&&1===s.compressionMethod){if(n+3!==e.byteLength||1!==s.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=t.getUint8(n),i=t.getUint8(n+1),a=t.getUint8(n+2),u=new Uint8Array(3*s.count);for(let e=0;e<s.count;e++)u[3*e]=o,u[3*e+1]=i,u[3*e+2]=a;return u}throw new r.A("lepcc-decode-error","Bad method "+s.lookupMethod+","+s.compressionMethod)}function f(e,t){return{sizeLo:e.getUint32(t+0,o),sizeHi:e.getUint32(t+4,o),count:e.getUint32(t+8,o),scaleFactor:e.getUint16(t+12,o),bitsPerPoint:e.getUint8(t+14),reserved:e.getUint8(t+15)}}function m(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=i(e,t,n);if(n+=16,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const s=f(t,n);if(n+=16,s.sizeHi*2**32+s.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const u=new Uint16Array(s.count);if(8===s.bitsPerPoint){if(s.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,s.count);for(let e=0;e<s.count;e++)u[e]=t[e]*s.scaleFactor}else if(16===s.bitsPerPoint){if(2*s.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,s.count);for(let e=0;e<s.count;e++)u[e]=t[e]*s.scaleFactor}else{const t=[];if(c(e,n,t)!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let e=0;e<s.count;e++)u[e]=t[e]*s.scaleFactor}return u}},49255(e,t,n){function r(e){return 5===(t=e)||6===t||7===t||8===e||9===e;var t}function o(e){return function(e){return function(e){return s(e)||function(e){return 10===e||11===e}(e)}(e)||function(e){return 3===e}(e)}(e)||4===e}function i(e){return 1===e}function a(e){return 2===e}function s(e){return 0===e||function(e){return i(e)||a(e)}(e)}n.d(t,{Rb:()=>a,Sp:()=>i,_o:()=>s,iq:()=>o,yT:()=>r})},53466(e,t,n){n.d(t,{U:()=>o});var r=n(31821);function o(e,t){switch(t.textureCoordinateType){case 1:return e.attributes.add("uv0","vec2"),e.varyings.add("vuv0","vec2"),void e.vertex.code.add(r.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return e.attributes.add("uv0","vec2"),e.attributes.add("uvRegion","vec4"),e.varyings.add("vuv0","vec2"),e.varyings.add("vuvRegion","vec4"),void e.vertex.code.add(r.H`void forwardTextureCoordinates() {
|
|
2
|
-
vuv0 = uv0;
|
|
3
|
-
vuvRegion = uvRegion;
|
|
4
|
-
}`);default:t.textureCoordinateType;case 0:return void e.vertex.code.add(r.H`void forwardTextureCoordinates() {}`);case 3:return}}},99208(e,t,n){n.d(t,{r:()=>a});var r=n(53466),o=n(31821);function i(e){e.fragment.code.add(o.H`vec4 textureAtlasLookup(sampler2D tex, vec2 textureCoordinates, vec4 atlasRegion) {
|
|
5
|
-
vec2 atlasScale = atlasRegion.zw - atlasRegion.xy;
|
|
6
|
-
vec2 uvAtlas = fract(textureCoordinates) * atlasScale + atlasRegion.xy;
|
|
7
|
-
float maxdUV = 0.125;
|
|
8
|
-
vec2 dUVdx = clamp(dFdx(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
|
|
9
|
-
vec2 dUVdy = clamp(dFdy(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
|
|
10
|
-
return textureGrad(tex, uvAtlas, dUVdx, dUVdy);
|
|
11
|
-
}`)}function a(e,t){const{textureCoordinateType:n}=t;if(0===n||3===n)return;e.include(r.U,t);const a=2===n;a&&e.include(i),e.fragment.code.add(o.H`
|
|
12
|
-
vec4 textureLookup(sampler2D tex, vec2 uv) {
|
|
13
|
-
return ${a?"textureAtlasLookup(tex, uv, vuvRegion)":"texture(tex, uv)"};
|
|
14
|
-
}
|
|
15
|
-
`)}},22911(e,t,n){n.d(t,{NL:()=>m});var r=n(49255),o=n(99208),i=n(65261),a=n(40710),s=n(33079),u=n(28421),c=n(20304),l=n(31821),d=n(15976),f=n(63761);function m(e,t){if(!(0,r._o)(t.output))return;e.fragment.include(i.C);const{emissionSource:n,hasEmissiveTextureTransform:m,bindType:v}=t,p=3===n||4===n||5===n;p&&(e.include(o.r,t),e.fragment.uniforms.add(1===v?new f.N("texEmission",e=>e.textureEmissive):new d.o("texEmission",e=>e.textureEmissive)));const g=2===n||p;g&&e.fragment.uniforms.add(1===v?new s.t("emissiveBaseColor",e=>e.emissiveBaseColor):new a.W("emissiveBaseColor",e=>e.emissiveBaseColor));const h=0!==n;h&&7!==n&&6!==n&&4!==n&&5!==n&&e.fragment.uniforms.add(1===v?new c.m("emissiveStrength",e=>e.emissiveStrength??0):new u.J("emissiveStrength",e=>e.emissiveStrength??0));const y=7===n,w=5===n,b=1===n||6===n||y;e.fragment.code.add(l.H`
|
|
16
|
-
vec4 getEmissions(vec3 symbolColor) {
|
|
17
|
-
vec4 emissions = ${g?w?"emissiveSource == 0 ? vec4(emissiveBaseColor, 1.0): vec4(linearizeGamma(symbolColor), 1.0)":"vec4(emissiveBaseColor, 1.0)":b?y?"emissiveSource == 0 ? vec4(0.0): vec4(linearizeGamma(symbolColor), 1.0)":"vec4(linearizeGamma(symbolColor), 1.0)":"vec4(0.0)"};
|
|
18
|
-
${(0,l.If)(p,`${(0,l.If)(w,`if(emissiveSource == 0) {\n vec4 emissiveFromTex = textureLookup(texEmission, ${m?"emissiveUV":"vuv0"});\n emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);\n }`,`vec4 emissiveFromTex = textureLookup(texEmission, ${m?"emissiveUV":"vuv0"});\n emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);`)}\n emissions.w = emissions.rgb == vec3(0.0) ? 0.0: emissions.w;`)}
|
|
19
|
-
${(0,l.If)(h,`emissions.rgb *= emissiveStrength * ${l.H.float(1)};`)}
|
|
20
|
-
return emissions;
|
|
21
|
-
}
|
|
22
|
-
`)}},65261(e,t,n){n.d(t,{C:()=>i});var r=n(40876),o=n(31821);function i(e){e.constants.add("GAMMA","float",r.Tf).constants.add("INV_GAMMA","float",1/r.Tf).code.add(o.H`vec3 delinearizeGamma(vec3 color) {
|
|
23
|
-
return pow(color, vec3(INV_GAMMA));
|
|
24
|
-
}
|
|
25
|
-
vec4 delinearizeGamma(vec4 color) {
|
|
26
|
-
return vec4(delinearizeGamma(color.rgb), color.a);
|
|
27
|
-
}
|
|
28
|
-
vec3 linearizeGamma(vec3 color) {
|
|
29
|
-
return pow(color, vec3(GAMMA));
|
|
30
|
-
}`)}},40710(e,t,n){n.d(t,{W:()=>o});var r=n(74333);class o extends r.n{constructor(e,t,n){super(e,"vec3",2,(r,o,i,a)=>r.setUniform3fv(e,t(o,i,a),n))}}},33079(e,t,n){n.d(t,{t:()=>o});var r=n(74333);class o extends r.n{constructor(e,t,n){super(e,"vec3",1,(r,o,i)=>r.setUniform3fv(e,t(o,i),n))}}},28421(e,t,n){n.d(t,{J:()=>o});var r=n(74333);class o extends r.n{constructor(e,t,n){super(e,"float",2,(r,o,i)=>r.setUniform1f(e,t(o,i),n))}}},20304(e,t,n){n.d(t,{m:()=>o});var r=n(74333);class o extends r.n{constructor(e,t,n){super(e,"float",1,(r,o,i)=>r.setUniform1f(e,t(o,i),n))}}},15976(e,t,n){n.d(t,{o:()=>o});var r=n(74333);class o extends r.n{constructor(e,t,n){super(e,"sampler2D",2,(r,o,i)=>r.bindTexture(e,t(o,i),n?.(o,i)))}}},63761(e,t,n){n.d(t,{N:()=>o});var r=n(74333);class o extends r.n{constructor(e,t){super(e,"sampler2D",1,(n,r,o)=>n.bindTexture(e,t(r,o)))}}},31821(e,t,n){n.d(t,{H:()=>r,If:()=>o});const r=(e,...t)=>{let n="";for(let r=0;r<t.length;r++)n+=e[r]+t[r];return n+=e[e.length-1],n};function o(e,t,n=""){return e?t:n}r.int=e=>e.toFixed(),r.uint=e=>`${Math.max(0,e).toFixed()}u`,r.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,r.float=e=>e.toPrecision(8)},45671(e,t,n){n.d(t,{D8:()=>i,TO:()=>o});var r=n(30524);async function o(e,t=e.popupTemplate){if(null==t)return[];const n=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:o}=t,{objectIdField:i,typeIdField:a,globalIdField:s,relationships:u}=e;if(n.includes("*"))return["*"];const c=o?(0,r.eX)(e):[],l=(0,r.DB)(e.fieldsIndex,[...n,...c]);return a&&l.push(a),l&&i&&e.fieldsIndex?.has(i)&&!l.includes(i)&&l.push(i),l&&s&&e.fieldsIndex?.has(s)&&!l.includes(s)&&l.push(s),u?.forEach(t=>{const{keyField:n}=t;l&&n&&e.fieldsIndex?.has(n)&&!l.includes(n)&&l.push(n)}),l}function i(e,t){return e&&"object"==typeof e?t?.checkPopupEnabled&&"popupEnabled"in e&&!e.popupEnabled?null:"popupTemplate"in e&&e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&"defaultPopupTemplate"in e&&e.defaultPopupTemplate?e.defaultPopupTemplate:null:null}},74333(e,t,n){n.d(t,{n:()=>r});class r{constructor(e,t,n,r,o=null){if(this.name=e,this.type=t,this.arraySize=o,this.bind={0:null,1:null,2:null},r)switch(n){case void 0:break;case 0:this.bind[0]=r;break;case 1:this.bind[1]=r;break;case 2:this.bind[2]=r}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,6061,6312,7772,7992,8125,9169,9397],{61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>s});var n=r(61691);class s extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},83587(t,e,r){r.d(e,{c:()=>o,e:()=>i});var n=r(96027),s=r(78125);function i(t,e){const r=(0,s.getSpatialReference)(t),i=(0,s.fromExtent)(e).asEnvelope2D();return(0,s.toGeometry)((0,n.g7)((0,s.fromGeometry)(t),i,(0,s.fromSpatialReference)(r)),r)}const a=(0,n.fz)(),o=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:function(t,e){const r=t.map(s.fromGeometry),i=(0,s.getSpatialReference)(t),a=(0,s.fromExtent)(e).asEnvelope2D();return(0,n.zo)(r,a,(0,s.fromSpatialReference)(i)).map(t=>(0,s.toGeometry)(t,i))},supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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]]}r.d(e,{o8:()=>s,vt:()=>n,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(t,e,r,n,s,i,a,o,u,h,c,l,f,m,g,x){return[t,e,r,n,s,i,a,o,u,h,c,l,f,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>c});var n=r(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=l;for(let n=0;n<e;n++)r+=o(t[n]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return l+t.length*e}const c=32,l=16,f=145,m=64},87992(t,e,r){r.d(e,{JR:()=>A,ME:()=>E,MY:()=>I,NO:()=>C,Nh:()=>V,V2:()=>Z,_s:()=>R,e6:()=>Y,gh:()=>P,tr:()=>N,uX:()=>p});var n=r(5482),s=r(69397),i=r(16930),a=(r(70328),r(19419)),o=r(60408),u=r(21325),h=r(513),c=r(50954),l=r(79567),f=r(52006),m=r(49663),g=r(46068),x=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:a}=this,o=Z(t,e,r,n,s,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(n.subarray(0,s),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=S(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=S(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],n=e[r++],s=e[r++],i=e[r++];return{b:[this.end,[t,n],[s,i]]}}const n=e[r++],s=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[h,c]]};const l=2&n?0:1,f=1&n?0:1;return{a:[this.end,[o,u],l,f,a,s,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,n.mS)(r,new _(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:o}=t,u=w(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new _(t,["vertexZ","vertexM"]),!1);const s=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(s,t,r),t=(0,f.yP)(r)}const[i,o,h,c]=s;e={xmin:i,ymin:o,xmax:h,ymax:c,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,i,a;t=n=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=s[2*e],o=s[2*e+1];t=Math.min(t,r),i=Math.max(i,r),n=Math.min(n,o),a=Math.max(a,o)}e={xmin:t,ymin:n,xmax:i,ymax:a,spatialReference:u}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}function E(t){let e,r,n;if((0,o.fT)(t)){n="point";const{x:s,y:i,z:a,m:o}=t,u=[s,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,o.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,O(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=Z(n,e,n.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:h,vertexM:c}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),a&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of r[0])l(t);return s}const x="polygon"===n,{partOffsets:p}=s;let y=0;if(!s.hasCurves()){for(const t of r){if(p[y++]=g,0===t.length)continue;let e=t.length;if(x&&O(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];u[2*g]=e,u[2*g+1]=n,++g}}return p[y]=g,s}function d(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*G;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[y++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];l(r);const i=g-1;(0,f.wY)(n)?(d(10),++s.segmentCountArc,v=R(r,n,s,i,v),r=n.a[0]):(0,f.DA)(n)?(d(10),++s.segmentCountArc,v=b(r,n,s,i,v),r=n.a[0]):(0,f.aO)(n)?(d(10),++s.segmentCountArc,v=Y(r,n,s,i,v),r=n.c[0]):(0,f.n1)(n)?(d(4),++s.segmentCountBezier,v=N(0,n,s,i,v),r=n.b[0]):r=n}x&&O(e,r)||l(r)}return s.partOffsets[y]=g,s}function P(t){const e=S(t),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=t,a=w(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],i=new Array;for(;o<n;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:a}:{paths:r,hasZ:s,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:a}}function V(t,{lengths:e,coords:r,hasZ:n,hasM:s},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);n??=!1,s??=!1;const h=Z(t,u,a,n,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],n&&(h.vertexZ[t]=r[e++]),s&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(n)+Number(s);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],i=e+t-Number(o);h.partOffsets[++f]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[l++],h.vertexXY[2*t+1]=r[l++],n&&(h.vertexZ[t]=r[l++]),s&&(h.vertexM[t]=r[l++]);o&&(l+=c)}return h}function A({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new x.A([],[],o,u);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=h.coords.length;for(let t=l;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(n[t]),u&&h.coords.push(s[t]);if(c){const t=l;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(n[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-f)/h.stride),l=i}return"point"===t&&(h.lengths.length=0),h}function I(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class _{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function w({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function S({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function O(t,e){return t.every((t,r)=>t===e[r])}function Z(t,e,r,n,s,i,a,o){a??=0,o??=0;const u=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(T),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function R(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;const[o,[u,h],c,l,f,m,x]=e.a;let p=4;l||(p|=1),c||(p|=2);const y=(0,g.SW)(t,e),[d,v]=(0,g.Uk)(y,.5);return s[a++]=p,s[a++]=m,s[a++]=x,s[a++]=f,s[a++]=u,s[a++]=h,s[a++]=y.u2-y.u1,s[a++]=y.u1,s[a++]=d,s[a++]=v,a}function b(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;const o=(0,m.i)(t,e);return F(o,4,...(0,h.mq)(o,.5),s,a)}function Y(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){return r[i]=4,n[i]=a,F((0,c.pM)(t,e),0,...e.c[1],s,a)}function F(t,e,r,n,s,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=a,s[i++]=o,s[i++]=h-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function N(t,{b:[e,[r,n],[s,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,c){return a[h]=2,o[h]=c,u[c++]=r,u[c++]=n,u[c++]=s,u[c++]=i,c}const G=1.61803,T=-1},24815(t,e,r){r.d(e,{execute:()=>n.e}),r(96027),r(78125);var n=r(83587)},96027(t,e,r){r.d(e,{fz:()=>o,g7:()=>i,zo:()=>a});var n=r(76061);const s=new(r(31139).O);function i(t,e,r){return s.execute(t,e,r,null)}function a(t,e,r){const i=s.executeMany(new n.S(t),e,r,null);return Array.from(i)}function o(){return s.supportsCurves()}},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>A,toPoint:()=>I,toPolygon:()=>_,toPolyline:()=>w});var n=r(83661),s=(r(79187),r(55537)),i=r(95213),a=r(88885),o=r(5443),u=r(48526),h=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return p(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function p(t){if(!t.getCacheValue(m)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.M,r=new i.P,n=t.points,s=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,i=n.length;t<i;t++){const i=n[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),s&&r.setM(i[u]??NaN),e.add(r)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:r,hasZ:n,rings:s}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:n,rings:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:n,paths:s}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:n,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:n,paths:s}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:n,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function E(t){return(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return I(t,e);case s.G.enumEnvelope:return V(t,e);case s.G.enumMultiPoint:return A(t,e);case s.G.enumPolyline:return w(t,e);case s.G.enumPolygon:return _(t,e)}return null}function V(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(m,t),r}function A(t,e){if(t.isEmpty())return null;const r=t.getDescription(),n=r.hasM(),s=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];s&&r.push(o.getZ()),n&&r.push(o.getM()),a.push(r)}const h=new u.A({hasM:n,hasZ:s,points:a,spatialReference:e});return h.setCacheValue(m,t),h}function I(t,e){if(t instanceof n.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new h.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(r.m=t.getM()),s.hasZ()&&(r.z=t.getZ()),r.setCacheValue(m,t),r}function _(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}function w(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}},4197(t,e,r){r.d(e,{Vj:()=>h,cj:()=>u,jh:()=>i,l5:()=>o,xm:()=>a});var n=r(34275),s=r(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function a(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function u(t){return[...t]}function h(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>l,Ej:()=>m,Ie:()=>y,Jt:()=>d,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>a,gE:()=>u,hZ:()=>p,iT:()=>f,is:()=>M,qv:()=>E,vI:()=>x,vY:()=>o,v_:()=>P,vt:()=>i,w1:()=>h});var n=r(5443),s=(r(19419),r(4197));function i(t=P){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,r,n,s,a,o=i()){return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o[4]=s,o[5]=a,o}function o(t,e=i()){return function(t,e,r,n=i()){return p(n,E),function(t,e,r=0,n=e.length/3){let s=t[0],i=t[1],a=t[2],o=t[3],u=t[4],h=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),i=Math.min(i,e[r+3*t+1]),a=Math.min(a,e[r+3*t+2]),o=Math.max(o,e[r+3*t]),u=Math.max(u,e[r+3*t+1]),h=Math.max(h,e[r+3*t+2]);t[0]=s,t[1]=i,t[2]=a,t[3]=o,t[4]=u,t[5]=h}(n,t,e,r),n}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[r,n,i,a,o,u]=t;return e[0]=r,e[1]=n,e[2]=i,e[3]=r,e[4]=n,e[5]=u,e[6]=r,e[7]=o,e[8]=i,e[9]=r,e[10]=o,e[11]=u,e[12]=a,e[13]=n,e[14]=i,e[15]=a,e[16]=n,e[17]=u,e[18]=a,e[19]=o,e[20]=i,e[21]=a,e[22]=o,e[23]=u,e}function h(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function y(t){return t?p(t,E):i(E)}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],P=[0,0,0,0,0,0];i()},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const i=r-t,a=n-e;return new s([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],i=this.coords[n*e+1];for(let a=1;a<r;a+=1){const r=n*(e+a),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-s)*(u+i),s=o,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
|