@arcgis/core 5.1.0-next.71 → 5.1.0-next.72
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/PopupTemplate.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/003fd7745966fe03510c.js +1 -0
- package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +1 -0
- package/assets/esri/core/workers/chunks/{36031cb53c486630f3c9.js → 026d3fa331caec1ea3d2.js} +1 -1
- package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +1 -0
- package/assets/esri/core/workers/chunks/{c06d021180418f2014de.js → 02876e434dc91c42b2f4.js} +1 -1
- package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +1 -0
- package/assets/esri/core/workers/chunks/{a5a46d0a0831497cf1b4.js → 0783890816bac45277b9.js} +1 -1
- package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +1 -0
- package/assets/esri/core/workers/chunks/0839da55707f7c4cf780.js +1 -0
- package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +1 -0
- package/assets/esri/core/workers/chunks/{d69110ec4078c583a05e.js → 0d96e39380fd84cea9ba.js} +1 -1
- package/assets/esri/core/workers/chunks/0dad0bca8d58b2c63d22.js +1 -0
- package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +1 -0
- package/assets/esri/core/workers/chunks/127cd8fee3717a473fc5.js +1 -0
- package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +1 -0
- package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +1 -0
- package/assets/esri/core/workers/chunks/1661684357912726a72a.js +1 -0
- package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +1 -0
- package/assets/esri/core/workers/chunks/1961b59756933e0a82f2.js +1 -0
- package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +1 -0
- package/assets/esri/core/workers/chunks/1f85646936200a399c15.js +1 -0
- package/assets/esri/core/workers/chunks/{deb8a0b306d7b9c86b97.js → 2171aaa147aa4d9fc5b5.js} +1 -1
- package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +1 -0
- package/assets/esri/core/workers/chunks/260d4571722cb1ff1366.js +1 -0
- package/assets/esri/core/workers/chunks/{3e972ae291df1844017d.js → 266ba61b72a278d93a26.js} +1 -1
- package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +1 -0
- package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +1 -0
- package/assets/esri/core/workers/chunks/{333a0038d782d8a34d58.js → 2abf124e2956e4f76688.js} +1 -1
- package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +1 -0
- package/assets/esri/core/workers/chunks/{f6d5dd2eef0d9918096e.js → 30e710ec4d22c43d4e7e.js} +1 -1
- package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +1 -0
- package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +1 -0
- package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +1 -0
- package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +1 -0
- package/assets/esri/core/workers/chunks/3cd9bd20e75ba4d5b294.js +1 -0
- package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +1 -0
- package/assets/esri/core/workers/chunks/{7cb6d8f7eaf762279632.js → 3ea5a18b264628dc37f0.js} +1 -1
- package/assets/esri/core/workers/chunks/41809c16544ec25120fa.js +1 -0
- package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +1 -0
- package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +1 -0
- package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +1 -0
- package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +1 -0
- package/assets/esri/core/workers/chunks/47f2113357b2aa4f4f37.js +1 -0
- package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +1 -0
- package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +1 -0
- package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +1 -0
- package/assets/esri/core/workers/chunks/4eed175277eb0df3c821.js +1 -0
- package/assets/esri/core/workers/chunks/{916a8f3eed1fafdc7242.js → 54d07eadf113f0e4e506.js} +1 -1
- package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +1 -0
- package/assets/esri/core/workers/chunks/{9187d1caca1fd2d713e0.js → 55369c5bd65bcaf78da1.js} +1 -1
- package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +1 -0
- package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +1 -0
- package/assets/esri/core/workers/chunks/{e77d958cb62536b8eebc.js → 5a4d7ba6dc1d4b41d80d.js} +1 -1
- package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +1 -0
- package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +1 -0
- package/assets/esri/core/workers/chunks/{fe68c28d3c61f116ff23.js → 5ef37f37e405b3bb5450.js} +1 -1
- package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +1 -0
- package/assets/esri/core/workers/chunks/{c92352b0e39576ca317a.js → 61ef14e42bc09b787d89.js} +1 -1
- package/assets/esri/core/workers/chunks/656d6963e8f837fbf28f.js +1 -0
- package/assets/esri/core/workers/chunks/68b47a5a50e0b5fffca2.js +1 -0
- package/assets/esri/core/workers/chunks/{a5afcd633b32e6ee31a7.js → 6a0352d20596ca3f4b64.js} +1 -1
- package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +1 -0
- package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +1 -0
- package/assets/esri/core/workers/chunks/6ea8b0d68881d16a2432.js +1 -0
- package/assets/esri/core/workers/chunks/6f9ea461c268c421f9c9.js +1 -0
- package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +1 -0
- package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +1 -0
- package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +1 -0
- package/assets/esri/core/workers/chunks/751609831b283903ba48.js +1 -0
- package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +1 -0
- package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +1 -0
- package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +1 -0
- package/assets/esri/core/workers/chunks/84772b023d04e415f17f.js +1 -0
- package/assets/esri/core/workers/chunks/{123e920e4460124ec3bb.js → 88b480a1d1fb01778798.js} +9 -30
- package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +1 -0
- package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +1 -0
- package/assets/esri/core/workers/chunks/8a14e3db28c403b046cf.js +1 -0
- package/assets/esri/core/workers/chunks/8a664451845a47048859.js +1 -0
- package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +1 -0
- package/assets/esri/core/workers/chunks/{4d51261d6131c07402cd.js → 8acee3fba488f202f82f.js} +1 -1
- package/assets/esri/core/workers/chunks/91a0227a64a944af3286.js +596 -0
- package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +1 -0
- package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +1 -0
- package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +1 -0
- package/assets/esri/core/workers/chunks/9d434360dfce1e49b7b9.js +1 -0
- package/assets/esri/core/workers/chunks/9f4b97204def91567e3c.js +1 -0
- package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +1 -0
- package/assets/esri/core/workers/chunks/{58b3c888c8bfedbe6443.js → a37fc886227365f7ecd5.js} +1 -1
- package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +1 -0
- package/assets/esri/core/workers/chunks/{f89976ec97938bf86996.js → abc06d10c7ac8ba5b0e4.js} +1 -1
- package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +1 -0
- package/assets/esri/core/workers/chunks/{fef5dc19736f12dfa99a.js → af5db0372d526e592fcc.js} +1 -1
- package/assets/esri/core/workers/chunks/{eb3cdc4ff45243fc3cc5.js → b475f5492c6e3fd4cca8.js} +1 -1
- package/assets/esri/core/workers/chunks/b495f14d90abe8d1a558.js +1 -0
- package/assets/esri/core/workers/chunks/{6ac5ec3ecbca8860338b.js → b54b7cc6b23a70fed700.js} +1 -1
- package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +1 -0
- package/assets/esri/core/workers/chunks/b79058f5bda6fcac22f8.js +1 -0
- package/assets/esri/core/workers/chunks/b801631b58e6fc6cec8a.js +1 -0
- package/assets/esri/core/workers/chunks/{31071a43e2c03984d619.js → b92794def31592a6a25f.js} +1 -1
- package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +1 -0
- package/assets/esri/core/workers/chunks/bea70be8e38b8c83ccd2.js +1 -0
- package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +1 -0
- package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +1 -0
- package/assets/esri/core/workers/chunks/c1838822b096d5f36a8b.js +1 -0
- package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +1 -0
- package/assets/esri/core/workers/chunks/{c2882a9e67124b7c18be.js → c503c79ba5761f7abbeb.js} +1 -1
- package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +1 -0
- package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +1 -0
- package/assets/esri/core/workers/chunks/{3b7cda16e656db450f11.js → d2aa75816e84b1e7fd25.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d8670f6fa8952b7bab6.js → d950d5c2844206502ff0.js} +1 -1
- package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +1 -0
- package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +1 -0
- package/assets/esri/core/workers/chunks/{967758a05170545cd371.js → dcc719e15b2e0cce1f3b.js} +1 -1
- package/assets/esri/core/workers/chunks/{6bb090f3e5c18604cb39.js → dd5b362bded458afa2d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{e957d52cb9643961a843.js → de583214195eff13cb00.js} +58 -45
- package/assets/esri/core/workers/chunks/dec6d41d614105e6fd93.js +1 -0
- package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +1 -0
- package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +1 -0
- package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +1 -0
- package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +1 -0
- package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +1 -0
- package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +1 -0
- package/assets/esri/core/workers/chunks/{231f502cd15f30d12be2.js → f1673e723b336204ad77.js} +1 -1
- package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +1 -0
- package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +1 -0
- package/chunks/CheckerBoard.glsl.js +3 -5
- package/chunks/ColorMaterial.glsl.js +4 -6
- package/chunks/ComponentShader.glsl.js +42 -44
- package/chunks/DefaultMaterial.glsl.js +21 -23
- package/chunks/EdgeShader.glsl.js +9 -11
- package/chunks/GaussianSplat.glsl.js +8 -8
- package/chunks/ImageMaterial.glsl.js +5 -7
- package/chunks/LineCallout.glsl.js +9 -12
- package/chunks/LineMarker.glsl.js +24 -26
- package/chunks/Path.glsl.js +15 -17
- package/chunks/Pattern.glsl.js +25 -27
- package/chunks/RealisticTree.glsl.js +11 -13
- package/chunks/RibbonLine.glsl.js +42 -45
- package/chunks/ShadedColorMaterial.glsl.js +8 -9
- package/chunks/Water.glsl.js +18 -20
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/FlatFeature.js +1 -1
- package/layers/graphics/FlatFeatureSet.js +1 -1
- package/layers/graphics/OptimizedFeature.js +1 -1
- package/layers/graphics/data/AttributesBuilder.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/flatFeatureQueryEngineAdapter.js +1 -1
- package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/support/LabelClass.js +1 -1
- package/layers/support/featureLayerUtils.js +1 -1
- package/layers/support/labelUtils.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/package.json +1 -1
- package/popupTemplateUtils.js +2 -0
- package/renderers/visualVariables/SizeVariable.js +1 -1
- package/renderers/visualVariables/support/sizeVariableUtils.js +1 -1
- package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
- package/rest/support/OutDistance.js +2 -0
- package/rest/support/Query.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/StreamLayerView3D.js +1 -1
- package/views/3d/layers/graphics/featureExpressionInfoUtils.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.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/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +20 -32
- package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +5 -3
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/Compositor.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/video/VideoOperationalDataView.js +1 -1
- package/views/webgl/ShaderBuilder.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +19 -3
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable/VisibleElements.d.ts +15 -1
- package/widgets/FeatureTable/VisibleElements.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +15 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/09ecb36e44096e577af8.js +0 -1
- package/assets/esri/core/workers/chunks/0ca06ea649bbdb93ff49.js +0 -1
- package/assets/esri/core/workers/chunks/10308c9f3f0d709d96bc.js +0 -1
- package/assets/esri/core/workers/chunks/141edf5ed890105a079b.js +0 -1
- package/assets/esri/core/workers/chunks/160b9a76b75875507c86.js +0 -1
- package/assets/esri/core/workers/chunks/16dfdee05704df249e95.js +0 -1
- package/assets/esri/core/workers/chunks/17ef955dc48e329aa184.js +0 -1
- package/assets/esri/core/workers/chunks/18001536ed345955121a.js +0 -1
- package/assets/esri/core/workers/chunks/20e715e3aeb1c3265901.js +0 -1
- package/assets/esri/core/workers/chunks/238f51d0b36f998017b8.js +0 -1
- package/assets/esri/core/workers/chunks/2cee6d751c5e73fe09d4.js +0 -1
- package/assets/esri/core/workers/chunks/314140e2e9b813191907.js +0 -1
- package/assets/esri/core/workers/chunks/3158a3487d3e8a61b680.js +0 -1
- package/assets/esri/core/workers/chunks/3b1446286a9b87f34761.js +0 -1
- package/assets/esri/core/workers/chunks/3f7fd58ee7d71989fc83.js +0 -1
- package/assets/esri/core/workers/chunks/41396724040180d2537f.js +0 -1
- package/assets/esri/core/workers/chunks/416e031bafc0189544fa.js +0 -1
- package/assets/esri/core/workers/chunks/55ee78923987ed17ea8c.js +0 -1
- package/assets/esri/core/workers/chunks/56c7d7c7217557375fb6.js +0 -1
- package/assets/esri/core/workers/chunks/5a1d975b3e9e6b7eff67.js +0 -1
- package/assets/esri/core/workers/chunks/5f6942ac94acd7842926.js +0 -1
- package/assets/esri/core/workers/chunks/6118706b9a038e9a06b8.js +0 -1
- package/assets/esri/core/workers/chunks/6d15229b3fa84a7acf4d.js +0 -599
- package/assets/esri/core/workers/chunks/7314c0131403cac84ad7.js +0 -1
- package/assets/esri/core/workers/chunks/73545bb13c70f6a347a4.js +0 -1
- package/assets/esri/core/workers/chunks/73a045061e69a22b6869.js +0 -1
- package/assets/esri/core/workers/chunks/75669912cddcb5db52c8.js +0 -1
- package/assets/esri/core/workers/chunks/7ca32806e47be15109a4.js +0 -1
- package/assets/esri/core/workers/chunks/7d6ed65bbcd279448191.js +0 -1
- package/assets/esri/core/workers/chunks/81f149e45c79b9b086fb.js +0 -1
- package/assets/esri/core/workers/chunks/84fa25f66a6949290221.js +0 -1
- package/assets/esri/core/workers/chunks/852aabbf671d2ca9cd33.js +0 -1
- package/assets/esri/core/workers/chunks/854fe80272b59fafc2e9.js +0 -1
- package/assets/esri/core/workers/chunks/861817be5e050e9522ab.js +0 -1
- package/assets/esri/core/workers/chunks/89345a682dea60ef1643.js +0 -1
- package/assets/esri/core/workers/chunks/8985402c328b90af5724.js +0 -1
- package/assets/esri/core/workers/chunks/89fdf9ad10ca8fbb08a5.js +0 -1
- package/assets/esri/core/workers/chunks/8b094330323d9b16fb5d.js +0 -1
- package/assets/esri/core/workers/chunks/90aed8c4b266832f84ca.js +0 -1
- package/assets/esri/core/workers/chunks/9776c2db337222ceceef.js +0 -1
- package/assets/esri/core/workers/chunks/990853e9df38fdfc58b5.js +0 -1
- package/assets/esri/core/workers/chunks/9a21ba0c45a96b94c05e.js +0 -1
- package/assets/esri/core/workers/chunks/9a235c92f21df2c17aa8.js +0 -1
- package/assets/esri/core/workers/chunks/9b56162ac67c992193ce.js +0 -1
- package/assets/esri/core/workers/chunks/9f1f5fb648302c43ad12.js +0 -1
- package/assets/esri/core/workers/chunks/a1e6187c239fdc7553ed.js +0 -1
- package/assets/esri/core/workers/chunks/a4b6fdbc995be03d2afb.js +0 -1
- package/assets/esri/core/workers/chunks/a760be8fa6c6ea6b745c.js +0 -1
- package/assets/esri/core/workers/chunks/a8782286ce3c0d6c20e6.js +0 -1
- package/assets/esri/core/workers/chunks/a96692514dcaa50340dd.js +0 -1
- package/assets/esri/core/workers/chunks/a994a3c912a33b2f4100.js +0 -1
- package/assets/esri/core/workers/chunks/aa7aaeae31ddb259e55e.js +0 -1
- package/assets/esri/core/workers/chunks/abcc5fb71be2bd94878c.js +0 -1
- package/assets/esri/core/workers/chunks/aecb05df4ad1454f5435.js +0 -1
- package/assets/esri/core/workers/chunks/aecb105db7cec2c9c4c5.js +0 -1
- package/assets/esri/core/workers/chunks/b19f33e026a2a43b17c4.js +0 -1
- package/assets/esri/core/workers/chunks/b3950d5f1f3352521504.js +0 -1
- package/assets/esri/core/workers/chunks/b3f0600729227b458a75.js +0 -1
- package/assets/esri/core/workers/chunks/b5922991d2f450e6a9d9.js +0 -1
- package/assets/esri/core/workers/chunks/b8643976a7f984552d94.js +0 -1
- package/assets/esri/core/workers/chunks/b8a11d32a4847513619b.js +0 -1
- package/assets/esri/core/workers/chunks/b8acb6c2538053c01cc6.js +0 -1
- package/assets/esri/core/workers/chunks/ba4259aa050169c1d523.js +0 -1
- package/assets/esri/core/workers/chunks/bbaf1d9835671c0165ca.js +0 -1
- package/assets/esri/core/workers/chunks/bcefdf9753d9d2f6f1be.js +0 -1
- package/assets/esri/core/workers/chunks/c178e2cfc34603661b1d.js +0 -1
- package/assets/esri/core/workers/chunks/c3e80c0e29ac6a7a6f80.js +0 -1
- package/assets/esri/core/workers/chunks/c79827f879d1d58d3f1b.js +0 -1
- package/assets/esri/core/workers/chunks/c92b40a532e708e506cc.js +0 -1
- package/assets/esri/core/workers/chunks/cb903ccbce87172a0757.js +0 -1
- package/assets/esri/core/workers/chunks/cda2e445eb2ac269abdf.js +0 -1
- package/assets/esri/core/workers/chunks/ce44e172e2847fd8df14.js +0 -1
- package/assets/esri/core/workers/chunks/cff7e921649aef715c78.js +0 -1
- package/assets/esri/core/workers/chunks/d315098b038a96084ff5.js +0 -1
- package/assets/esri/core/workers/chunks/d8c0d18f0132872decd3.js +0 -1
- package/assets/esri/core/workers/chunks/db0061a6d5bf454cc509.js +0 -1
- package/assets/esri/core/workers/chunks/dcfafcf4386f2940d000.js +0 -1
- package/assets/esri/core/workers/chunks/e2b034c391c603f7f825.js +0 -1
- package/assets/esri/core/workers/chunks/e3a73d9acebccd3ba49b.js +0 -1
- package/assets/esri/core/workers/chunks/e67bdd8bf38ebe89a344.js +0 -1
- package/assets/esri/core/workers/chunks/e797d45eba0884dc7e6f.js +0 -1
- package/assets/esri/core/workers/chunks/e81a3da05fcff97b4752.js +0 -1
- package/assets/esri/core/workers/chunks/e9dd60d0220036545ebb.js +0 -1
- package/assets/esri/core/workers/chunks/ea6d3b7c7d720aa7bc94.js +0 -1
- package/assets/esri/core/workers/chunks/eb9982bc866976fef960.js +0 -1
- package/assets/esri/core/workers/chunks/ec4669a0edeca94710e0.js +0 -1
- package/assets/esri/core/workers/chunks/ef9d74f8d5a502fda809.js +0 -1
- package/assets/esri/core/workers/chunks/f09446b9ff937a84d6d3.js +0 -1
- package/assets/esri/core/workers/chunks/f0bc5e8e44d53b73d431.js +0 -1
- package/assets/esri/core/workers/chunks/f653970d983f17fb764b.js +0 -1
- package/assets/esri/core/workers/chunks/f9edc685099f51363f41.js +0 -1
- package/assets/esri/core/workers/chunks/fa687ba2d66fcc2501da.js +0 -1
- package/assets/esri/core/workers/chunks/fb9a889ec9fd23739a14.js +0 -1
- package/assets/esri/core/workers/chunks/fe1b67ab7748a3aef231.js +0 -1
- package/chunks/HUDCompositing.glsl.js +0 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +0 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +0 -8
- package/views/3d/webgl-engine/effects/fboFormatUtils.js +0 -2
- package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[609,1948,2722,2990,5611,6061,7992],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.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,n){function r(){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]]}n.d(e,{o8:()=>s,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:s,create:r,fromValues:function(t,e,n,r,s,i,o,a,u,h,c,f,l,m,g,x){return[t,e,n,r,s,i,o,a,u,h,c,f,l,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return[0,0,0]}function h(){return i(1,1,1)}function c(){return i(1,0,0)}function f(){return i(0,1,0)}function l(){return i(0,0,1)}n.d(e,{CN:()=>o,Cb:()=>p,Cw:()=>x,JP:()=>d,S:()=>h,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],g=h(),x=c(),d=f(),p=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:x,UNIT_Y:d,UNIT_Z:p,ZEROS:m,clone:s,create:r,freeze:o,fromArray:a,fromValues:i,ones:h,unitX:c,unitY:f,unitZ:l,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>I,Bw:()=>i,C:()=>o,Cc:()=>O,DI:()=>E,Il:()=>B,Io:()=>M,Ln:()=>p,Om:()=>_,Qr:()=>f,Re:()=>h,S8:()=>b,T9:()=>x,WQ:()=>u,Z0:()=>A,_S:()=>m,aI:()=>R,ei:()=>S,fw:()=>w,g7:()=>Z,gL:()=>P,hG:()=>v,hZ:()=>a,hs:()=>d,jb:()=>T,jk:()=>g,lo:()=>L,lw:()=>c,m3:()=>y,oW:()=>V,t2:()=>N,tn:()=>l,uE:()=>G,xg:()=>k,ze:()=>C});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function y(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function b(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2];return t[0]=s*u-i*a,t[1]=i*o-r*u,t[2]=r*a-s*o,t}function O(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function A(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function S(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function P(t,e,n){return w(t,e,n[0],n[1],n[2],n[3])}function w(t,e,n,r,s,i){const o=e[0],a=e[1],u=e[2],h=r*u-s*a,c=s*o-n*u,f=n*a-r*o,l=r*f-s*c,m=s*h-n*f,g=n*c-r*h,x=2*i;return t[0]=o+h*x+2*l,t[1]=a+c*x+2*m,t[2]=u+f*x+2*g,t}function Z(t,e){b(F,t),b(Y,e);const n=_(F,Y);return n>1?0:n<-1?Math.PI:Math.acos(n)}const F=(0,r.vt)(),Y=(0,r.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function R(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],u=e[2],h=(0,s.FD)();return Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))}function V(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=h,z=c,X=f,k=M,L=v,B=i,G=y;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:u,angle:Z,bezier:function(t,e,n,r,s,i){const o=1-i,a=o*o,u=i*i,h=a*o,c=3*i*a,f=3*u*o,l=u*i;return t[0]=e[0]*h+n[0]*c+r[0]*f+s[0]*l,t[1]=e[1]*h+n[1]*c+r[1]*f+s[1]*l,t[2]=e[2]*h+n[2]*c+r[2]*f+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:I,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],h=s*u-i*a,c=i*o-r*u,f=r*a-s*o,l=Math.sqrt(h*h+c*c+f*f);return t[0]=h/l,t[1]=c/l,t[2]=f/l,t},direction:V,dist:k,distance:M,div:X,divide:f,dot:_,equals:R,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,h=o*(i-1),c=o*(3-2*i);return t[0]=e[0]*a+n[0]*u+r[0]*h+s[0]*c,t[1]=e[1]*a+n[1]*u+r[1]*h+s[1]*c,t[2]=e[2]*a+n[2]*u+r[2]*h+s[2]*c,t},inverse:E,len:B,length:i,lerp:O,max:x,min:g,mul:z,multiply:c,negate:C,normalize:b,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:p,set:a,sign:m,sqrDist:L,sqrLen:G,squaredDistance:v,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:h,transformMat3:S,transformMat4:A,transformQuat:P,transformQuatValues:w},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>l,lM:()=>i,qK:()=>c});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function o(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 n=f;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));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 u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return f+t.length*e}const c=32,f=16,l=145,m=64},87992(t,e,n){n.d(e,{JR:()=>I,ME:()=>E,MY:()=>O,NO:()=>C,Nh:()=>_,V2:()=>Z,_s:()=>F,e6:()=>N,gh:()=>b,tr:()=>V,uX:()=>d});var r=n(5482),s=n(69397),i=n(16930),o=(n(70328),n(19419)),a=n(60408),u=n(21325),h=n(513),c=n(50954),f=n(79567),l=n(52006),m=n(49663),g=n(46068),x=n(92722);class d{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:f,segmentCountArc:l,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=f,this.segmentCountArc=l,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-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 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:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=Z(t,e,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(h.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,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.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,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 n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(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(n(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 M(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class M{constructor(t){this.geometry=t,this.index=-1,this._readVertex=P(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 y(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 y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=P(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 n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],i=e[n++];return{b:[this.end,[t,r],[s,i]]}}const r=e[n++],s=e[n++],i=e[n++],o=e[n++],a=e[n++],u=e[n++];n++,n++;const h=e[n++],c=e[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[h,c]]};const f=2&r?0:1,l=1&r?0:1;return{a:[this.end,[a,u],f,l,o,s,i]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,r.mS)(n,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:a}=t,u=S(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new A(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,f.e)(s,t,n),t=(0,l.yP)(n)}const[i,a,h,c]=s;e={xmin:i,ymin:a,xmax:h,ymax:c,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,i,o;t=r=1/0,i=o=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}e={xmin:t,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(i){let t=1/0,n=-1/0;for(const e of i)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function E(t){let e,n,r;if((0,a.fT)(t)){r="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const s=Z(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=s;function f(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),o&&(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&&!o){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])f(t);return s}const x="polygon"===r,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of n){if(d[p++]=g,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,i||o)for(let n=0;n<e;++n)f(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return d[p]=g,s}function M(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let n=e*T;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let v=0;for(const t of n){if(s.partOffsets[p++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];f(n);const i=g-1;(0,l.wY)(r)?(M(10),++s.segmentCountArc,v=F(n,r,s,i,v),n=r.a[0]):(0,l.DA)(r)?(M(10),++s.segmentCountArc,v=Y(n,r,s,i,v),n=r.a[0]):(0,l.aO)(r)?(M(10),++s.segmentCountArc,v=N(n,r,s,i,v),n=r.c[0]):(0,l.n1)(r)?(M(4),++s.segmentCountBezier,v=V(0,r,s,i,v),n=r.b[0]):n=r}x&&w(e,n)||f(n)}return s.partOffsets[p]=g,s}function b(t){const e=P(t),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=t,o=S(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],i=new Array;for(;a<r;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:n,hasZ:r,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);r??=!1,s??=!1;const h=Z(t,u,o,r,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]=n[e++],h.vertexXY[2*t+1]=n[e++],r&&(h.vertexZ[t]=n[e++]),s&&(h.vertexM[t]=n[e++]);return h}const c=2+Number(r)+Number(s);let f=0,l=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[l],i=e+t-Number(a);h.partOffsets[++l]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=n[f++],h.vertexXY[2*t+1]=n[f++],r&&(h.vertexZ[t]=n[f++]),s&&(h.vertexM[t]=n[f++]);a&&(f+=c)}return h}function I({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new x.A([],[],a,u);i=Math.max(i,1);const c="polygon"===t;let f=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,l=h.coords.length;for(let t=f;t<i;++t)h.coords.push(n[2*t],n[2*t+1]),a&&h.coords.push(r[t]),u&&h.coords.push(s[t]);if(c){const t=f;h.coords.push(n[2*t],n[2*t+1]),a&&h.coords.push(r[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-l)/h.stride),f=i}return"point"===t&&(h.lengths.length=0),h}function O(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,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:n,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=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 P({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,n)=>t===e[n])}function Z(t,e,n,r,s,i,o,a){o??=0,a??=0;const u=new d({type:t,vertexCount:e,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:o,segmentCountBezier:a});let h=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(n+1)*Int32Array.BYTES_PER_ELEMENT,h+=(n+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 f=0;return u.vertexXY=new Float64Array(c,f,2*e),f+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(c,f,e),f+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,f,e),f+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,f,u.segmentParamCount),f+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,f,e),u.segmentIndices.fill(z),f+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,f,n+1),f+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,f,n+1),f+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(c,f,e),u.segmentFlags.fill(1),f+=u.segmentFlags.byteLength),u}function F(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,h],c,f,l,m,x]=e.a;let d=4;f||(d|=1),c||(d|=2);const p=(0,g.SW)(t,e),[M,v]=(0,g.Uk)(p,.5);return s[o++]=d,s[o++]=m,s[o++]=x,s[o++]=l,s[o++]=u,s[o++]=h,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=M,s[o++]=v,o}function Y(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,m.io)(t,e);return R(a,4,...(0,h.mq)(a,.5),s,o)}function N(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,R((0,c.pM)(t,e),0,...e.c[1],s,o)}function R(t,e,n,r,s,i){const{cx:o,cy:a,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++]=o,s[i++]=a,s[i++]=h-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function V(t,{b:[e,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,c){return o[h]=2,a[h]=c,u[c++]=n,u[c++]=r,u[c++]=s,u[c++]=i,c}const T=1.61803,z=-1},51508(t,e,n){n.r(e),n.d(e,{execute:()=>o});var r=n(15756),s=n(83299);const i=new r.j;function o(t,e){const n=(0,s.fromGeometry)(t);return i.execute(n.getGeometry(),(0,s.fromGeometryToGXGeometry)(e),n.getSpatialReference(),null)}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>a,jh:()=>i,l5:()=>o});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function u(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>v,DC:()=>f,Ej:()=>m,Ie:()=>p,Jt:()=>M,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>d,iT:()=>l,is:()=>y,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>b,vt:()=>i,w1:()=>h}),n(35522);var r=n(5443),s=(n(19419),n(4197));function i(t=b){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,n,r=i()){return d(r,E),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],h=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),h=Math.max(h,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=h}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,o,a,u]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=i,e[9]=n,e[10]=a,e[11]=u,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function h(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 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 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 g(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 x(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 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 M(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,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function y(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!y(t)||!y(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 E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];i()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{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 s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-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,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 s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+i),s=a,i=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 s=0;s<r;s++){const r=n*(e+s);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:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=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:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(i),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 s(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4460],{52106(e,t,r){r.d(t,{A:()=>Z});var o,s,i=r(5482),n=r(37838),l=r(69540),a=r(51447),u=r(25482),p=r(53966),d=r(36708),h=r(24326),c=r(91429),y=r(12195),g=r(65864),m=r(50498),f=r(55156),v=r(60950),C=r(54339),M=r(94128),b=r(33910);function w(e){if(null==e)return null;const t={};for(const r in e){const o=e[r];o&&(t[r]=o.toJSON())}return 0!==Object.keys(t).length?t:null}let Z=class extends((0,l.OU)(u.o)){static{o=M.Z}static{s=this}constructor(e){super(e),this[o]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.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 s({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 r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,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 r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,f.I)(this.origin);if(e)return(0,C.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,C.r)(this,t):null}getGlobalId(){const e=(0,f.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 r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,o){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=o),"attributes"===e&&(s.attributeName=o),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.addHandles([(0,d.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,d.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,i.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const o=(0,g.rS)(e[r]);o&&(t[r]=o)}return 0!==Object.keys(t).length?t:null}}})],Z.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,c.MZ)({value:null})],Z.prototype,"attributes",null),(0,i.Cg)([(0,c.MZ)({value:null,types:m.yR,json:{read:g.rS}})],Z.prototype,"geometry",null),(0,i.Cg)([(0,c.MZ)({type:Boolean})],Z.prototype,"isAggregate",void 0),(0,i.Cg)([(0,c.MZ)({clonable:!1})],Z.prototype,"layer",void 0),(0,i.Cg)([(0,c.MZ)({clonable:"reference"})],Z.prototype,"origin",void 0),(0,i.Cg)([(0,c.MZ)({type:n.A,value:null})],Z.prototype,"popupTemplate",null),(0,i.Cg)([(0,c.MZ)({clonable:"reference"})],Z.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,c.MZ)({value:null,types:b.Es})],Z.prototype,"symbol",null),(0,i.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],Z.prototype,"_version",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,value:!0})],Z.prototype,"visible",null),Z=s=(0,i.Cg)([(0,c.$K)("esri.Graphic")],Z)},4902(e,t,r){r.d(t,{s:()=>n});var o=r(5482),s=r(64108);let i=0;const n=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return r=(0,o.Cg)([(0,s.$)("esri.core.Identifiable")],r),r};n(class{})},92474(e,t,r){r.d(t,{WV:()=>h,Zm:()=>y,x_:()=>c});var o=r(5482),s=r(49186),i=r(97768),n=r(61893),l=r(17676),a=r(67076),u=r(10107),p=r(64108);const d="loaded",h=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(e=>{const t=this.load.bind(this);this.load=r=>{const o=new Promise((e,t)=>{const o=(0,l.NY)(r,t);this.destroyed&&t(new s.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally(()=>{o&&o.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal})}return e(),o}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},e=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(e){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new s.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,o.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,o.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,o.Cg)([(0,u.MZ)({type:[a.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,o.Cg)([(0,p.$)("esri.core.Loadable")],r),r},c=h(n.Z);function y(e){return!(!e||!e.load)}},61893(e,t,r){r.d(t,{Z:()=>p,g:()=>u});var o=r(5482),s=r(69622),i=r(36563),n=r(17676),l=r(64108);class a{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,n.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=Promise.withResolvers(),t=[...this._resolvingPromises,e.promise],r=this._allPromise=Promise.all(t);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==r||(0,n.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then(()=>this).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return r=(0,o.Cg)([(0,l.$)("esri.core.Promise")],r),r},p=u(s.A)},16494(e,t,r){r.d(t,{Nd:()=>l,W5:()=>n});var o=r(17632);const s=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),i=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],n=new o.I({whiteList:s,onTagAttr:(e,t,r)=>{const o=`${t}="${r}"`;if(i.includes(t))return o},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new o.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},55156(e,t,r){r.d(t,{I:()=>s,e:()=>o});const o=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&o in t?e[o]:void 0;var t}},4146(e,t,r){r.d(t,{A:()=>v});var o=r(5482),s=r(11254),i=r(49186),n=r(65529),l=r(4902),a=r(92474),u=r(53966),p=r(17676),d=r(84952),h=r(91429),c=r(5443),y=r(16930),g=r(92602),m=r(79677);let f=0,v=class extends((0,n.Zt)((0,l.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new c.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:o}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await o(t)}catch(e){const r=t?.portalItem,o=r?.id||"unset",s=r?.portal?.url||g.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+o+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new i.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,o.Cg)([(0,h.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,o.Cg)([(0,h.MZ)({type:c.A})],v.prototype,"fullExtent",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,o.Cg)([(0,h.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,o.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,o.Cg)([(0,h.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,o.Cg)([(0,h.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,o.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,o.Cg)([(0,h.MZ)({type:y.A})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,h.MZ)({type:String})],v.prototype,"title",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,o.Cg)([(0,h.MZ)()],v.prototype,"url",void 0),(0,o.Cg)([(0,h.MZ)({type:m.A})],v.prototype,"visibilityTimeExtent",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,o.Cg)([(0,h.$K)("esri.layers.Layer")],v)},52136(e,t,r){r.d(t,{p:()=>i});var o=r(5482),s=r(91429);const i=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,o.Cg)([(0,s.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},32756(e,t,r){r.d(t,{Rr:()=>l,fY:()=>u,ne:()=>a});var o=r(5482),s=r(93637),i=r(91429),n=r(91880);function l(e,t,r){if(!e)return null;const o=e.find(e=>!!e.field);if(!o)return null;const s=new n.A;return s.read(o,r),[s]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,o){const i=e.find(e=>!!e.field);i&&(0,s.sM)(r,[i.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,o.Cg)([(0,i.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,o.Cg)([(0,i.$K)("esri.layers.mixins.OrderedLayer")],r),r}},28032(e,t,r){r.d(t,{A:()=>a});var o=r(5482),s=r(69540),i=r(25482),n=r(91429),l=r(56400);let a=class extends((0,s.OU)(i.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,o.Cg)([(0,n.MZ)()],a.prototype,"creatorField",void 0),(0,o.Cg)([(0,n.MZ)()],a.prototype,"creationDateField",void 0),(0,o.Cg)([(0,n.MZ)()],a.prototype,"editorField",void 0),(0,o.Cg)([(0,n.MZ)()],a.prototype,"editDateField",void 0),(0,o.Cg)([(0,n.MZ)()],a.prototype,"realm",void 0),(0,o.Cg)([(0,n.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,o.Cg)([(0,n.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var o=r(5482),s=r(69540),i=r(66552),n=r(25482),l=r(91429);const a=new i.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,o.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>d});var o=r(5482),s=r(69540),i=r(25482),n=r(91429),l=r(8631),a=r(29005),u=r(36005),p=r(43937);let d=class extends((0,s.OU)(i.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,o.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,o.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,o.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,o.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,o.Cg)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,o.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,o.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,r){r.d(t,{A:()=>a});var o,s=r(5482),i=r(7762),n=r(25482),l=r(91429);let a=o=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.A}clone(){return new o({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=o=(0,s.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>u});var o,s=r(5482),i=r(66552),n=r(25482),l=r(91429);const a=new i.J({asc:"ascending",desc:"descending"});let u=class extends n.o{static{o=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new o({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,s.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=o=(0,s.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var o=r(5482),s=r(69540),i=r(66552),n=r(25482),l=r(91429);const a=new i.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new i.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,o.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,o.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,o.Cg)([(0,l.$K)("esri.layers.support.Relationship")],p)},17311(e,t,r){r.d(t,{A:()=>c});var o=r(5482),s=r(69622),i=r(4576),n=r(60999),l=r(7762),a=r(16494),u=r(91429),p=r(30524),d=r(43668);const h=/<br\s*\/*>/gi;let c=class extends s.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,n.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9301)]).then(r.bind(r,99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),o=this.fieldsIndex.get(r.at(-1)??"");o&&e.add(o.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const o=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(o)??""}async getTitles(e,t,r){const o=new Map,s=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:i}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:n,workingTitle:l}=this,u=l&&n;t.forEach(t=>{const p=t.getObjectId()??t.attributes[e.objectIdField];let d=u?i({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:n,globalAttributes:this._createFormattedAttributes(e,t,s).global,layer:e,text:l}):"";r?.removeHTML&&(d=a.Nd.sanitize(d).replaceAll(h," ")),o.set(p,d)})}catch{}return o}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(i.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,p.Kl)(e,this.requiredFields))){const o=e.createQuery();o.where="1=1",o.outFields=[...this.requiredFields],o.objectIds=r;const s=await e.queryFeatures(o);if(s?.features.length===t.length)return s.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),o=e?.name??r.fieldName;r.fieldName=o,t.set(o.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const o=this.effectivePopupTemplate?.fieldInfos??[],s={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const i={...t.attributes,...s};return{global:this._featureUtils.formatAttributes({fieldInfos:o,attributes:i,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,p.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,o.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"_arcadeTask",null),(0,o.Cg)([(0,u.MZ)()],c.prototype,"_featureUtils",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"featureUtilsPromise",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"calculatedExpressions",null),(0,o.Cg)([(0,u.MZ)()],c.prototype,"displayField",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"effectivePopupTemplate",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"expressionsUsedInTitle",null),(0,o.Cg)([(0,u.MZ)()],c.prototype,"fieldsIndex",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"fieldInfoMap",null),(0,o.Cg)([(0,u.MZ)()],c.prototype,"fields",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"objectIdField",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"requiredFields",null),c=(0,o.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],c)},77548(e,t,r){r.d(t,{Gh:()=>I,tk:()=>P,BR:()=>_,p2:()=>Z,qd:()=>T,wI:()=>S,G$:()=>O,$x:()=>A,Ov:()=>C,cM:()=>h,UC:()=>c,W_:()=>M,Qz:()=>y,OP:()=>x,TU:()=>v,F2:()=>g,XX:()=>f,jy:()=>b});var o=r(70333),s=r(11254),i=r(7762),n=(r(84952),r(36563)),l=r(36708),a=r(4146);const u=new WeakMap;function p(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,l.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||p(t))},t=>u.set(e,t),l.pc),(0,n.hA)(()=>u.delete(e))]),u.get(e))}function d(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function h(e){return d(e,"knowledge-graph")&&"layers"in e}function c(e){return d(e,"knowledge-graph-sublayer")}function y(e){return d(e,"link-chart")&&"layers"in e}function g(e){return d(e,"subtype-group")&&"sublayers"in e}function m(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const f={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function C(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function M(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function b(e){return function(e){return null!=e&&"object"==typeof e&&"type"in e&&"oriented-imagery"===e.type}(e)||function(e){return d(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}function w(e){const t=e?.type;return"binning"===t||"cluster"===t}function Z(e,t){if(!b(e))return;const r=t?.graphic,o=e.featureReduction;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&o?w(o)?o:null:void 0}return e}return t?.checkFeatureReduction&&o?w(o)?o:null:e}async function S(e,t){const r=o.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const n=`${e.slice(0,i)}/rest/info`,l=null!=t?t.signal:null,{data:a}=await(0,s.A)(n,{query:{f:"json"},responseType:"json",signal:l});return a?.owningSystemUrl||null}function _(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function P(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function T(e){const t=new i.A;for(const r of e.allLayers.concat(e.allTables))p(r)||m(r)||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function A(e,t){return null}function O(e){return null}function x(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function I(e,t){if(!t||!x(e))return;const r=(e.url,null);r&&(e.url=r)}},5757(e,t,r){r.d(t,{B:()=>s,P:()=>o});const o=Symbol("PopupTemplateInstance");function s(e){return null!=e&&"object"==typeof e&&o in e}},20655(e,t,r){r.d(t,{A:()=>A});var o=r(5482),s=r(92602),i=r(70333),n=r(11254),l=r(49186),a=r(44208),u=r(25482),p=r(92474),d=r(97768),h=r(17676),c=r(91429),y=r(56507),g=r(5443),m=r(73444);let f;var v=r(96360),C=r(16405),M=r(69622);let b=class extends M.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,o.Cg)([(0,c.MZ)()],b.prototype,"nextQueryParams",void 0),(0,o.Cg)([(0,c.MZ)()],b.prototype,"queryParams",void 0),(0,o.Cg)([(0,c.MZ)()],b.prototype,"results",void 0),(0,o.Cg)([(0,c.MZ)()],b.prototype,"total",void 0),b=(0,o.Cg)([(0,c.$K)("esri.portal.PortalQueryResult")],b);var w,Z=r(41318),S=r(926),_=r(36005);let P;const T={PortalGroup:()=>Promise.resolve({default:v.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:Z.A})};let A=class extends((0,u.T)(p.x_)){static{w=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=s.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){O.unregister(this),this.defaultBasemap=(0,d.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,d.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,d.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,d.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)s.A.request.trustedServers.includes(t)||s.A.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,S.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=Z.A.fromJSON(e),t.portal=this),t}load(e){const t=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:t})=>{(0,h.Te)(e),P=t}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e)).then(e=>{if(!this.hasAPIKey&&i.id){const e=i.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==w.AUTH_MODE_AUTO&&this.authMode!==w.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=i.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),O.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)});return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(8278),r.e(9953),r.e(812),r.e(9186),r.e(2369),r.e(7716)]).then(r.bind(r,62369))).default;return e?e.map(e=>new t({id:e.id,url:e.url})):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery&&(0,a.A)("enable-feature:basemap-groundlayers")){const e=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,t);r.unshift(...e)}const o=await this._fetchBasemaps3D(e,t);r.unshift(...o)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const t=new C.A;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;const r=(await this.queryItems(t,e)).results.find(e=>"Web Scene"===e.type);return r?new P({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then(e=>e.categorySchema):(0,h.G4)(e)?Promise.reject((0,h.NK)()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then(e=>e.classificationSchema):null}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new C.A({num:100,sortField:"title"});if(t?.length){const o=[];for(const e of t)o.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,e).then(e=>e.results)}return(0,h.G4)(e)?Promise.reject((0,h.NK)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return f&&!f.destroyed||(f=new w),f}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const o=this.restUrl+"/portals/self",s={authMode:e,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),t&&(s.query.default=!0),this.request(o,s)}queryPortal(e,t,r,o){const s=(0,y.dp)(C.A,t),i=t=>this.request(this.restUrl+e,{...s.toRequestOptions(this),...o}).then(e=>{const r=s.clone();return r.start=e.nextStart,new b({nextQueryParams:r,queryParams:s,total:e.total,results:w._resultsToTypedArray(t,{portal:this},e,o)})}).then(e=>Promise.all(e.results.map(t=>"function"==typeof t.when?t.when():e)).then(()=>e,t=>((0,h.QP)(t),e)));return r&&T[r]?T[r]().then(({default:e})=>((0,h.Te)(o),i(e))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new l.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===w.AUTH_MODE_ANONYMOUS||this.authMode===w.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new l.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate"))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate"))).then(e=>{e&&(this.sourceJSON=e,this.read(e))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==w.AUTH_MODE_NO_PROMPT}).then(t=>e(t)):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then(e=>{const t=w._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map(t=>"function"==typeof t.when?t.when():e)).then(()=>t,()=>t)})}request(e,t={}){const r={f:"json",...t.query},{authMode:o=(this.authMode===w.AUTH_MODE_ANONYMOUS||this.authMode===w.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:s=null,cacheBust:i=!1,method:l="auto",responseType:a="json",signal:u}=t,p={authMode:o,body:s,cacheBust:i,method:l,query:r,responseType:a,timeout:0,signal:u};return t.withCredentials&&(p.withCredentials=!0),(0,n.A)(this._normalizeSSL(e),p).then(e=>e.data)}toJSON(){throw new l.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new w({sourceJSON:e})}_getHelperService(e){const t=this.helperServices?.[e];if(!t)throw new l.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new C.A;r.query=e||((0,S.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const o=await this.queryGroups(r,t);if(!o.total)return[];const s=o.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=s.sortField||"name",r.sortOrder=s.sortOrder||"desc";const i=await s.queryItems(r,t);return i.total?i.results.filter(e=>"Web Map"===e.type).map(e=>new P({portalItem:e})):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,S.Dd)())return[];const o=new C.A({query:r,disableExtraQuery:!0}),s=await this.queryGroups(o,t);if(!s.total)return[];const i=s.results[0];o.num=100,o.query='type:"Web Scene"',o.sortField=i.sortField||"name",o.sortOrder=i.sortOrder||"desc";const n=await i.queryItems(o,t);return n.total?n.results.filter(e=>"Web Scene"===e.type).map(e=>new P({portalItem:e})):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=P.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,o){let s;if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(s=s.map(r=>{const o=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof o.load&&o.load(i),o}))}else s=[];return s}};(0,o.Cg)([(0,c.MZ)()],A.prototype,"access",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"allSSL",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"authMode",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"authorizedCrossOriginDomains",void 0),(0,o.Cg)([(0,_.w)("authorizedCrossOriginDomains")],A.prototype,"readAuthorizedCrossOriginDomains",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"basemapGalleryGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],A.prototype,"basemapGalleryGroupQuery3D",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],A.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"g3dTilesEnabled"}})],A.prototype,"g3dTilesEnabled",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"bingKey",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"canListApps",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"canListData",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"canListPreProvisionedItems",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"canProvisionDirectPurchase",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"canSearchPublic",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"canShareBingPublic",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"canSharePublic",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"canSignInArcGIS",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"canSignInIDP",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"colorSetsGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"commentsEnabled",void 0),(0,o.Cg)([(0,c.MZ)({type:Date})],A.prototype,"created",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"credential",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"culture",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"currentVersion",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"customBaseUrl",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"default3DBasemapQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"defaultBasemap",void 0),(0,o.Cg)([(0,_.w)("defaultBasemap")],A.prototype,"readDefaultBasemap",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"defaultDevBasemap",void 0),(0,o.Cg)([(0,_.w)("defaultDevBasemap")],A.prototype,"readDefaultDevBasemap",null),(0,o.Cg)([(0,c.MZ)({type:g.A})],A.prototype,"defaultExtent",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"defaultVectorBasemap",void 0),(0,o.Cg)([(0,_.w)("defaultVectorBasemap")],A.prototype,"readDefaultVectorBasemap",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"description",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"devBasemapGalleryGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"eueiEnabled",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],A.prototype,"extraQuery",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"featuredGroups",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"featuredItemsGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"galleryTemplatesGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"layoutGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"livingAtlasGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],A.prototype,"hasAPIKey",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"hasCategorySchema",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"hasClassificationSchema",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"helpBase",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"helperServices",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"helpMap",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"homePageFeaturedContent",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"homePageFeaturedContentCount",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"httpPort",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"httpsPort",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"id",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"ipCntryCode",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],A.prototype,"isOrganization",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"isPortal",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"isReadOnly",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],A.prototype,"itemPageUrl",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"layerTemplatesGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"maxTokenExpirationMinutes",void 0),(0,o.Cg)([(0,c.MZ)({type:Date})],A.prototype,"modified",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"name",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"portalHostname",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"portalMode",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"portalProperties",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"region",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"recycleBinEnabled",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],A.prototype,"restUrl",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"rotatorPanels",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"showHomePageDescription",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"staticImagesUrl",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"2DStylesGroupQuery"}})],A.prototype,"stylesGroupQuery2d",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"stylesGroupQuery"}})],A.prototype,"stylesGroupQuery3d",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"supportsHostedServices",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"symbolSetsGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"templatesGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"thumbnail",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],A.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"units",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"url",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"urlKey",void 0),(0,o.Cg)([(0,_.w)("urlKey")],A.prototype,"readUrlKey",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"user",void 0),(0,o.Cg)([(0,_.w)("user")],A.prototype,"readUser",null),(0,o.Cg)([(0,c.MZ)()],A.prototype,"use3dBasemaps",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"useDefault3dBasemap",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"useStandardizedQuery",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"useVectorBasemaps",void 0),(0,o.Cg)([(0,c.MZ)()],A.prototype,"vectorBasemapGalleryGroupQuery",void 0),A=w=(0,o.Cg)([(0,c.$K)("esri.portal.Portal")],A);const O=new FinalizationRegistry(e=>{e.remove()})},96360(e,t,r){r.d(t,{A:()=>p});var o,s=r(5482),i=r(49186),n=r(25482),l=r(91429),a=r(56507),u=r(16405);let p=o=class extends n.o{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then(t=>{const r=t.categorySchema||[];return r.some(e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source)?this._fetchCategorySchemaSet("LivingAtlas",e):r})}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new o({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,a.dp)(u.A,e);const o=this.portal;return parseFloat(o.currentVersion)>5?(r=r||new u.A,o.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),o.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=this.portal;return r.fetchSelf(r.authMode,!0,t).then(e=>{const o=e.contentCategorySetsGroupQuery;if(o){const e=new u.A({disableExtraQuery:!0,num:1,query:o});return r.queryGroups(e,t)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const o=r.results[0],s=new u.A({num:1,query:`typekeywords:"${e}"`});return o.queryItems(s,t)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(e=>e.total?e.results[0].fetchData("json",t).then(e=>{const t=e?.categorySchema;return t?.length?t:[]}):[])}};(0,s.Cg)([(0,l.MZ)()],p.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"owner",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"snippet",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sortField",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sortOrder",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"tags",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"url",null),p=o=(0,s.Cg)([(0,l.$K)("esri.portal.PortalGroup")],p)},16405(e,t,r){r.d(t,{A:()=>c});var o,s=r(5482),i=r(69622),n=r(66552),l=r(4718),a=r(91429),u=r(5443),p=r(16930),d=r(28735);const h=new n.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=o=class extends i.A{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new o({categories:this.categories?(0,l.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map(e=>Array.isArray(e)?JSON.stringify(e):e));let o="";if(this.extent){const e=(0,d.Cv)(this.extent,p.A.WGS84);null!=e&&(o=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let s=this.query;!this.disableExtraQuery&&e.extraQuery&&(s="("+s+")"+e.extraQuery);const i={categories:r,bbox:o,q:s,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map(e=>h.toJSON(e.trim())).join(","),i.sortOrder=this.sortOrder),{query:{...t,...i}}}};(0,s.Cg)([(0,a.MZ)()],c.prototype,"categories",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,s.Cg)([(0,a.MZ)({type:u.A})],c.prototype,"extent",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"filter",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"num",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"query",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"sortField",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"sortOrder",null),(0,s.Cg)([(0,a.MZ)()],c.prototype,"start",void 0),c=o=(0,s.Cg)([(0,a.$K)("esri.portal.PortalQueryParams")],c)},41318(e,t,r){r.d(t,{A:()=>p});var o=r(5482),s=r(49186),i=r(25482),n=r(91429);let l=class extends i.o{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new s.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,o.Cg)([(0,n.MZ)({type:Date})],l.prototype,"created",void 0),(0,o.Cg)([(0,n.MZ)()],l.prototype,"id",void 0),(0,o.Cg)([(0,n.MZ)()],l.prototype,"portal",void 0),(0,o.Cg)([(0,n.MZ)()],l.prototype,"title",void 0),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],l.prototype,"url",null),(0,o.Cg)([(0,n.MZ)()],l.prototype,"username",void 0),l=(0,o.Cg)([(0,n.$K)("esri.portal.PortalFolder")],l);var a,u=r(96360);let p=a=class extends i.o{constructor(e){super(e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.id}`:null}get url(){const e=this.portal?.restUrl;return e?`${e}/community/users/${this.id}`:null}addItem(e){const t=e&&e.item,r=e?.data,o=e?.folder,s={method:"post"};t&&(s.query=t.createPostQuery(),null!=r&&("string"==typeof r?s.query.text=r:"object"==typeof r&&(s.query.text=JSON.stringify(r))));let i=this.userContentUrl;return o&&(i+="/"+("string"==typeof o?o:o.id)),this.portal.request(i+"/addItem",s).then(e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load()))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);const o=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:o}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.slice();const r=this.userContentUrl+"/deleteItems",o=[],i=e.map(e=>e.id);if(i.length){const n={method:"post",query:{items:i.join(","),permanentDelete:t}},l=await this.portal.request(r,n);for(const t of l.results){const r=e.find(e=>t.itemId===e.id),i=t.success;let n=null;i?(r.id=null,r.portal=null):t.error&&(n=new s.A("portal:delete-item-failed",t.error.message,t.error)),o.push({item:r,success:i,error:n})}}return o}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(e=>{let t;return t=e&&e.folders?e.folders.map(e=>{const t=l.fromJSON(e);return t.portal=this.portal,t}):[],t})}fetchGroups(){return this.portal.request(this.url??"").then(e=>{let t;return t=e&&e.groups?e.groups.map(e=>{const t=u.A.fromJSON(e);return t.portal=this.portal,t}):[],t})}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);const{default:o}=await r.e(812).then(r.bind(r,80812)),s={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},i=await this.portal.request(t,{query:s});let n;return i?.items?(n=i.items.map(e=>{const t=o.fromJSON(e);return t.portal=this.portal,t}),await Promise.all(n.map(e=>e.load())),{items:n,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(e=>e.tags)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new s.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){const r=this.userContentUrl,o=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:o})}toJSON(){throw new s.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new a({sourceJSON:e});return t.read(e),t}};(0,o.Cg)([(0,n.MZ)()],p.prototype,"access",void 0),(0,o.Cg)([(0,n.MZ)({type:Date})],p.prototype,"created",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"culture",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"description",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"email",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"favGroupId",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"fullName",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"id",void 0),(0,o.Cg)([(0,n.MZ)({type:Date})],p.prototype,"modified",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"orgId",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"portal",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"preferredView",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"privileges",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"region",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"role",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"roleId",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"thumbnail",void 0),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,n.MZ)()],p.prototype,"units",void 0),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"userContentUrl",null),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"url",null),(0,o.Cg)([(0,n.MZ)()],p.prototype,"username",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"userLicenseTypeId",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"userType",void 0),p=a=(0,o.Cg)([(0,n.$K)("esri.portal.PortalUser")],p)},98205(e,t,r){r.d(t,{KZ:()=>l,eh:()=>n,gf:()=>i,of:()=>s,uY:()=>o});const o=Symbol("SizeVariableInstance");function s(e){return null!=e&&"object"==typeof e&&o in e}function i(e){return null!=e&&!isNaN(e)&&isFinite(e)}function n(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const r=t||n(e),o=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===o?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},22671(e,t,r){r.d(t,{A:()=>v});var o,s=r(5482),i=r(52106),n=r(66552),l=r(25482),a=r(4718),u=r(91429),p=r(16930),d=r(60408),h=r(65864),c=r(50498),y=r(20437),g=r(36005),m=r(43937);const f=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=o=class extends l.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,i.A)}writeGeometryType(e,t,r,o){if(e)return void f.write(e,t,r,o);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void f.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,h.rS)(e);return o&&!r&&t.spatialReference&&(o.spatialReference=p.A.fromJSON(t.spatialReference)),o}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new o(this.cloneProperties())}cloneProperties(){return(0,a.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 r=0;r<t.features.length;r++){const o=t.features[r];if(o.geometry){const t=e?.[r];o.geometry=t?.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,s]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-o)/t),e=>Math.round((s-e)/r));for(let e=0,t=i.length;e<t;e++)n?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[o,s],scale:[i,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*i+o,e=>s-e*n,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const o=p.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const i=e[t],n=r.fromJSON(i),l=i.geometry?.spatialReference;null==n.geometry||l||(n.geometry.spatialReference=o);const a=i.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],r=a[e],s=r?.spatialReference;null==t||s||(t.spatialReference=o)}s.push(n)}return s}_quantizePoints(e,t,r){let o,s;const i=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===o&&n===s||(i.push([e-o,n-s]),o=e,s=n)}else o=t(l[0]),s=r(l[1]),i.push([o,s])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const o=(0,d.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,i=o.length;e<i;e++){const i=o[e],n=this._quantizePoints(i,t,r);n&&s.push(n)}return s.length>0?((0,d.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o&&o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,o,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),o&&(e.z=o(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,d.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,o=i.length;e<o;e++){const o=i[e];for(let e=0,s=o.length;e<s;e++){const s=o[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}}if(o&&s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2]),r[3]=s(r[3])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),o&&null!=e.zmax&&null!=e.zmin&&(e.zmax=o(e.zmax),e.zmin=o(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let n,l;for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(n+=o[0],l+=o[1]):(n=o[0],l=o[1]),o[0]=t(n),o[1]=r(l)}if(o&&s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2]),t[3]=s(t[3])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,u.MZ)({type:[i.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,s.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],v.prototype,"geometryType",void 0),(0,s.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s.Cg)([(0,u.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=o=(0,s.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},94128(e,t,r){r.d(t,{D:()=>s,Z:()=>o});const o=Symbol("GraphicInstance");function s(e){return null!=e&&"object"==typeof e&&o in e}},16215(e,t,r){r.d(t,{S:()=>s,Y:()=>o});const o=Symbol("BasemapInstance");function s(e){return null!=e&&"object"==typeof e&&o in e}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,2722,5611,6033,6061,7992,8414],{61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},70031(t,e,r){r.d(e,{O:()=>s});var n=r(15756);class s extends n.n{getOperatorType(){return 4}execute(t,e,r,s){return!(0,n.r)(t,e,r,4,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,u,h,c,f,l,m,g,x){return[t,e,r,n,s,i,o,a,u,h,c,f,l,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,r){function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function o(t,e,r){return[t,e,r]}function a(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function u(){return[0,0,0]}function h(){return i(1,1,1)}function c(){return i(1,0,0)}function f(){return i(0,1,0)}function l(){return i(0,0,1)}r.d(e,{CN:()=>o,Cb:()=>p,Cw:()=>x,JP:()=>d,S:()=>h,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>m,vt:()=>n});const m=[0,0,0],g=h(),x=c(),d=f(),p=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:x,UNIT_Y:d,UNIT_Z:p,ZEROS:m,clone:s,create:n,freeze:o,fromArray:a,fromValues:i,ones:h,unitX:c,unitY:f,unitZ:l,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,r){r.d(e,{$A:()=>I,Bw:()=>i,C:()=>o,Cc:()=>O,DI:()=>E,Il:()=>B,Io:()=>M,Ln:()=>p,Om:()=>_,Qr:()=>f,Re:()=>h,S8:()=>b,T9:()=>x,WQ:()=>u,Z0:()=>A,_S:()=>m,aI:()=>R,ei:()=>S,fw:()=>w,g7:()=>Z,gL:()=>P,hG:()=>v,hZ:()=>a,hs:()=>d,jb:()=>T,jk:()=>g,lo:()=>L,lw:()=>c,m3:()=>y,oW:()=>V,t2:()=>N,tn:()=>l,uE:()=>G,xg:()=>k,ze:()=>C});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function h(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function x(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function d(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function p(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function M(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function v(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function y(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function b(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,r){const n=e[0],s=e[1],i=e[2],o=r[0],a=r[1],u=r[2];return t[0]=s*u-i*a,t[1]=i*o-n*u,t[2]=n*a-s*o,t}function O(t,e,r,n){const s=e[0],i=e[1],o=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t}function A(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function S(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function P(t,e,r){return w(t,e,r[0],r[1],r[2],r[3])}function w(t,e,r,n,s,i){const o=e[0],a=e[1],u=e[2],h=n*u-s*a,c=s*o-r*u,f=r*a-n*o,l=n*f-s*c,m=s*h-r*f,g=r*c-n*h,x=2*i;return t[0]=o+h*x+2*l,t[1]=a+c*x+2*m,t[2]=u+f*x+2*g,t}function Z(t,e){b(F,t),b(Y,e);const r=_(F,Y);return r>1?0:r<-1?Math.PI:Math.acos(r)}const F=(0,n.vt)(),Y=(0,n.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function R(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],o=e[0],a=e[1],u=e[2],h=(0,s.FD)();return Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-a)<=h*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))}function V(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let o=n*n+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=n*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=h,z=c,X=f,k=M,L=v,B=i,G=y;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:u,angle:Z,bezier:function(t,e,r,n,s,i){const o=1-i,a=o*o,u=i*i,h=a*o,c=3*i*a,f=3*u*o,l=u*i;return t[0]=e[0]*h+r[0]*c+n[0]*f+s[0]*l,t[1]=e[1]*h+r[1]*c+n[1]*f+s[1]*l,t[2]=e[2]*h+r[2]*c+n[2]*f+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:o,cross:I,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=r[0],a=r[1],u=r[2],h=s*u-i*a,c=i*o-n*u,f=n*a-s*o,l=Math.sqrt(h*h+c*c+f*f);return t[0]=h/l,t[1]=c/l,t[2]=f/l,t},direction:V,dist:k,distance:M,div:X,divide:f,dot:_,equals:R,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,h=o*(i-1),c=o*(3-2*i);return t[0]=e[0]*a+r[0]*u+n[0]*h+s[0]*c,t[1]=e[1]*a+r[1]*u+n[1]*h+s[1]*c,t[2]=e[2]*a+r[2]*u+n[2]*h+s[2]*c,t},inverse:E,len:B,length:i,lerp:O,max:x,min:g,mul:z,multiply:c,negate:C,normalize:b,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:p,set:a,sign:m,sqrDist:L,sqrLen:G,squaredDistance:v,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:h,transformMat3:S,transformMat4:A,transformQuat:P,transformQuatValues:w},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>l,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 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=f;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 u(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return f+t.length*e}const c=32,f=16,l=145,m=64},87992(t,e,r){r.d(e,{JR:()=>I,ME:()=>E,MY:()=>O,NO:()=>C,Nh:()=>_,V2:()=>Z,_s:()=>F,e6:()=>N,gh:()=>b,tr:()=>V,uX:()=>d});var n=r(5482),s=r(69397),i=r(16930),o=(r(70328),r(19419)),a=r(60408),u=r(21325),h=r(513),c=r(50954),f=r(79567),l=r(52006),m=r(49663),g=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:u,segmentFlags:h,segmentIndices:c,segmentParams:f,segmentCountArc:l,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=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=f,this.segmentCountArc=l,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:o}=this,a=Z(t,e,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(h.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,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 p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new M(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class M{constructor(t){this.geometry=t,this.index=-1,this._readVertex=P(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 y(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 y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=P(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++],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 f=2&n?0:1,l=1&n?0:1;return{a:[this.end,[a,u],f,l,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 A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=t,u=S(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new A(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,f.e)(s,t,r),t=(0,l.yP)(r)}const[i,a,h,c]=s;e={xmin:i,ymin:a,xmax:h,ymax:c,spatialReference:u}}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: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(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,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),r=[[u]],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,l.yP)(e.at(-1)))&&--t),t),0));const s=Z(n,e,n.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=s;function f(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),o&&(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&&!o){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])f(t);return s}const x="polygon"===n,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of r){if(d[p++]=g,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)f(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 d[p]=g,s}function M(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++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];f(r);const i=g-1;(0,l.wY)(n)?(M(10),++s.segmentCountArc,v=F(r,n,s,i,v),r=n.a[0]):(0,l.DA)(n)?(M(10),++s.segmentCountArc,v=Y(r,n,s,i,v),r=n.a[0]):(0,l.aO)(n)?(M(10),++s.segmentCountArc,v=N(r,n,s,i,v),r=n.c[0]):(0,l.n1)(n)?(M(4),++s.segmentCountBezier,v=V(0,n,s,i,v),r=n.b[0]):r=n}x&&w(e,r)||f(r)}return s.partOffsets[p]=g,s}function b(t){const e=P(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 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(;a<n;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}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:o}:{paths:[],curvePaths:h,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,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);n??=!1,s??=!1;const h=Z(t,u,o,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 f=0,l=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[l],i=e+t-Number(a);h.partOffsets[++l]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[f++],h.vertexXY[2*t+1]=r[f++],n&&(h.vertexZ[t]=r[f++]),s&&(h.vertexM[t]=r[f++]);a&&(f+=c)}return h}function I({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new x.A([],[],a,u);i=Math.max(i,1);const c="polygon"===t;let f=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,l=h.coords.length;for(let t=f;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),a&&h.coords.push(n[t]),u&&h.coords.push(s[t]);if(c){const t=f;h.coords.push(r[2*t],r[2*t+1]),a&&h.coords.push(n[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-l)/h.stride),f=i}return"point"===t&&(h.lengths.length=0),h}function O(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 A{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 P({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 Z(t,e,r,n,s,i,o,a){o??=0,a??=0;const u=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 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 f=0;return u.vertexXY=new Float64Array(c,f,2*e),f+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(c,f,e),f+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,f,e),f+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,f,u.segmentParamCount),f+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,f,e),u.segmentIndices.fill(z),f+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,f,r+1),f+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,f,r+1),f+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,f,e),u.segmentFlags.fill(1),f+=u.segmentFlags.byteLength),u}function F(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[u,h],c,f,l,m,x]=e.a;let d=4;f||(d|=1),c||(d|=2);const p=(0,g.SW)(t,e),[M,v]=(0,g.Uk)(p,.5);return s[o++]=d,s[o++]=m,s[o++]=x,s[o++]=l,s[o++]=u,s[o++]=h,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=M,s[o++]=v,o}function Y(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,m.io)(t,e);return R(a,4,...(0,h.mq)(a,.5),s,o)}function N(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,R((0,c.pM)(t,e),0,...e.c[1],s,o)}function R(t,e,r,n,s,i){const{cx:o,cy:a,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++]=o,s[i++]=a,s[i++]=h-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function V(t,{b:[e,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,c){return o[h]=2,a[h]=c,u[c++]=r,u[c++]=n,u[c++]=s,u[c++]=i,c}const T=1.61803,z=-1},55284(t,e,r){r.r(e),r.d(e,{execute:()=>o});var n=r(70031),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:()=>a,jh:()=>i,l5:()=>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,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function a(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:()=>f,Ej:()=>m,Ie:()=>p,Jt:()=>M,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>d,iT:()=>l,is:()=>y,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>b,vt:()=>i,w1:()=>h}),r(35522);var n=r(5443),s=(r(19419),r(4197));function i(t=b){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],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]),o=Math.min(o,e[r+3*t+2]),a=Math.max(a,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]=o,t[3]=a,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,o,a,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]=a,e[8]=i,e[9]=r,e[10]=a,e[11]=u,e[12]=o,e[13]=n,e[14]=i,e[15]=o,e[16]=n,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,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 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 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 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 M(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 y(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!y(t)||!y(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],b=[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],u=this.coords[r+1];t+=-.5*(a-s)*(u+i),s=a,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,this.hasZ,this.hasM)):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)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{37838(t,e,o){o.d(e,{A:()=>oe});var i,s=o(5482),r=o(5757),n=o(69540),l=o(7762),a=o(25482),p=o(4718),d=o(53966),c=o(17676),u=o(91429),y=o(56507),h=o(30524),m=o(89893),g=o(84424);let f=i=class extends g.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,p.o8)(this.outFields):null})}};(0,s.Cg)([(0,u.MZ)()],f.prototype,"creator",void 0),(0,s.Cg)([(0,u.MZ)()],f.prototype,"destroyer",void 0),(0,s.Cg)([(0,u.MZ)()],f.prototype,"outFields",void 0),(0,s.Cg)([(0,u.MZ)({type:["custom"],readOnly:!0})],f.prototype,"type",void 0),f=i=(0,s.Cg)([(0,u.$K)("esri.popup.content.CustomContent")],f);const w=f;var v;let C=v=class extends a.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new v({title:this.title,expression:this.expression})}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],C.prototype,"title",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],C.prototype,"expression",void 0),(0,s.Cg)([(0,u.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],C.prototype,"returnType",void 0),C=v=(0,s.Cg)([(0,u.$K)("esri.popup.ElementExpressionInfo")],C);const M=C;var x;let F=x=class extends g.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new x({expressionInfo:this.expressionInfo?.clone()})}};(0,s.Cg)([(0,u.MZ)({type:M,json:{write:!0}})],F.prototype,"expressionInfo",void 0),(0,s.Cg)([(0,u.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],F.prototype,"type",void 0),F=x=(0,s.Cg)([(0,u.$K)("esri.popup.content.ExpressionContent")],F);const Z=F;var I=o(66159);let j=class extends a.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"altText",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"caption",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"title",void 0),(0,s.Cg)([(0,u.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],j.prototype,"type",void 0),j=(0,s.Cg)([(0,u.$K)("esri.popup.content.mixins.MediaInfo")],j);const A=j;var N,b=o(68197),S=o(69622);let _=N=class extends S.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new N({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s.Cg)([(0,u.MZ)()],_.prototype,"color",void 0),(0,s.Cg)([(0,u.MZ)()],_.prototype,"fieldName",void 0),(0,s.Cg)([(0,u.MZ)()],_.prototype,"tooltip",void 0),(0,s.Cg)([(0,u.MZ)()],_.prototype,"value",void 0),_=N=(0,s.Cg)([(0,u.$K)("esri.popup.content.support.ChartMediaInfoValueSeries")],_);const R=_;var O;let T=O=class extends a.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new O({colors:(0,p.o8)(this.colors),fields:(0,p.o8)(this.fields),normalizeField:this.normalizeField,series:(0,p.o8)(this.series),tooltipField:this.tooltipField})}};(0,s.Cg)([(0,u.MZ)({type:[b.A],json:{type:[[y.jz]],write:!0}})],T.prototype,"colors",void 0),(0,s.Cg)([(0,u.MZ)({type:[String],json:{write:{isRequired:!0}}})],T.prototype,"fields",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],T.prototype,"normalizeField",void 0),(0,s.Cg)([(0,u.MZ)({type:[R],json:{read:!1}})],T.prototype,"series",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],T.prototype,"tooltipField",void 0),T=O=(0,s.Cg)([(0,u.$K)("esri.popup.content.support.ChartMediaInfoValue")],T);const $=T;let K=class extends A{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s.Cg)([(0,u.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],K.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)({type:$,json:{write:{isRequired:!0}}})],K.prototype,"value",void 0),K=(0,s.Cg)([(0,u.$K)("esri.popup.content.mixins.ChartMediaInfo")],K);const E=K,B=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var k;let J=k=class extends E{constructor(t){super(t),this.type="bar-chart"}clone(){return new k({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,u.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:B.write,isRequired:!0}}})],J.prototype,"type",void 0),J=k=(0,s.Cg)([(0,u.$K)("esri.popup.content.BarChartMediaInfo")],J);const q=J;var L;let D=L=class extends E{constructor(t){super(t),this.type="column-chart"}clone(){return new L({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,u.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:B.write,isRequired:!0}}})],D.prototype,"type",void 0),D=L=(0,s.Cg)([(0,u.$K)("esri.popup.content.ColumnChartMediaInfo")],D);const U=D;var W;let z=W=class extends a.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new W({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],z.prototype,"linkURL",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:{isRequired:!0}}})],z.prototype,"sourceURL",void 0),z=W=(0,s.Cg)([(0,u.$K)("esri.popup.content.support.ImageMediaInfoValue")],z);const P=z;var G;let V=G=class extends A{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new G({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],V.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,u.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],V.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)({type:P,json:{write:{isRequired:!0}}})],V.prototype,"value",void 0),V=G=(0,s.Cg)([(0,u.$K)("esri.popup.content.ImageMediaInfo")],V);const H=V;var X;let Q=X=class extends E{constructor(t){super(t),this.type="line-chart"}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,u.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:B.write,isRequired:!0}}})],Q.prototype,"type",void 0),Q=X=(0,s.Cg)([(0,u.$K)("esri.popup.content.LineChartMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends E{constructor(t){super(t),this.type="pie-chart"}clone(){return new tt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,u.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:B.write,isRequired:!0}}})],et.prototype,"type",void 0),et=tt=(0,s.Cg)([(0,u.$K)("esri.popup.content.PieChartMediaInfo")],et);const ot=et,it={base:A,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":q,"column-chart":U,"line-chart":Y,"pie-chart":ot,image:H}};var st,rt=o(36005),nt=o(43937);let lt=st=class extends g.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?H.fromJSON(t):"barchart"===t.type?q.fromJSON(t):"columnchart"===t.type?U.fromJSON(t):"linechart"===t.type?Y.fromJSON(t):"piechart"===t.type?ot.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new st((0,p.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s.Cg)([(0,u.MZ)()],lt.prototype,"activeMediaInfoIndex",void 0),(0,s.Cg)([(0,u.MZ)({type:Object,json:{write:!0}})],lt.prototype,"attributes",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],lt.prototype,"description",void 0),(0,s.Cg)([(0,u.MZ)({types:[it]})],lt.prototype,"mediaInfos",void 0),(0,s.Cg)([(0,rt.w)("mediaInfos")],lt.prototype,"readMediaInfos",null),(0,s.Cg)([(0,nt.K)("mediaInfos")],lt.prototype,"writeMediaInfos",null),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],lt.prototype,"title",void 0),(0,s.Cg)([(0,u.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],lt.prototype,"type",void 0),lt=st=(0,s.Cg)([(0,u.$K)("esri.popup.content.MediaContent")],lt);const at=lt;var pt=o(49852);let dt=class extends((0,n.OU)(g.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],dt.prototype,"description",void 0),(0,s.Cg)([(0,u.MZ)({type:Number,json:{type:y.jz,write:!0}})],dt.prototype,"displayCount",void 0),(0,s.Cg)([(0,u.MZ)({type:["list"],json:{write:{isRequired:!0}}})],dt.prototype,"displayType",void 0),(0,s.Cg)([(0,u.MZ)({type:[pt.A],json:{write:!0}})],dt.prototype,"orderByFields",void 0),(0,s.Cg)([(0,u.MZ)({type:Number,json:{type:y.jz,write:{isRequired:!0}}})],dt.prototype,"relationshipId",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],dt.prototype,"title",void 0),(0,s.Cg)([(0,u.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],dt.prototype,"type",void 0),dt=(0,s.Cg)([(0,u.$K)("esri.popup.content.RelationshipContent")],dt);const ct=dt;var ut;let yt=ut=class extends g.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new ut({text:this.text})}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],yt.prototype,"text",void 0),(0,s.Cg)([(0,u.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],yt.prototype,"type",void 0),yt=ut=(0,s.Cg)([(0,u.$K)("esri.popup.content.TextContent")],yt);const ht=yt;var mt=o(83342),gt=o(93223);let ft=class extends((0,n.OU)(g.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],ft.prototype,"description",void 0),(0,s.Cg)([(0,u.MZ)({type:Number,json:{type:y.jz,write:!0}})],ft.prototype,"displayCount",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],ft.prototype,"title",void 0),(0,s.Cg)([(0,u.MZ)({type:[mt.A],json:{write:!0}})],ft.prototype,"associationTypes",void 0),(0,s.Cg)([(0,gt.e)({utilityNetworkAssociations:"utility-network-associations"})],ft.prototype,"type",void 0),ft=(0,s.Cg)([(0,u.$K)("esri.popup.content.UtilityNetworkAssociationsContent")],ft);const wt=ft,vt=m.A,Ct=g.A,Mt=w,xt=Z,Ft=I.A,Zt=at,It=ct,jt=ht,At=wt,Nt={base:null,key:"type",typeMap:{attachment:vt,media:Zt,text:jt,expression:xt,field:Ft,relationship:It,utilityNetworkAssociations:At}},bt={base:null,key:"type",typeMap:{attachment:vt,media:Zt,text:jt,expression:xt,field:Ft,relationship:It}};var St,_t=o(93705),Rt=o(41227);let Ot=St=class extends a.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new St({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],Ot.prototype,"returnTopmostRaster",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],Ot.prototype,"showNoDataRecords",void 0),Ot=St=(0,s.Cg)([(0,u.$K)("esri.popup.LayerOptions")],Ot);const Tt=Ot;var $t;let Kt=$t=class extends a.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new $t({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,p.o8)(this.orderByFields):null})}};(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],Kt.prototype,"showRelatedRecords",void 0),(0,s.Cg)([(0,u.MZ)({type:[pt.A],json:{write:!0}})],Kt.prototype,"orderByFields",void 0),Kt=$t=(0,s.Cg)([(0,u.$K)("esri.popup.RelatedRecordsInfo")],Kt);const Et=Kt;var Bt=o(51447),kt=o(4902);let Jt=class extends((0,kt.s)(S.A)){constructor(t){super(t),this.active=!1,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}_internalSetClassName(t){return this._set("className",t),this}get className(){return this._get("className")??null}set className(t){(0,Bt.Lx)(d.A.getLogger(this),"className",{replacement:"icon",version:"5.1",warnOnce:!0}),this._set("className",t)}};(0,s.Cg)([(0,u.MZ)()],Jt.prototype,"active",void 0),(0,s.Cg)([(0,u.MZ)()],Jt.prototype,"className",null),(0,s.Cg)([(0,u.MZ)()],Jt.prototype,"disabled",void 0),(0,s.Cg)([(0,u.MZ)()],Jt.prototype,"icon",void 0),(0,s.Cg)([(0,u.MZ)()],Jt.prototype,"id",void 0),(0,s.Cg)([(0,u.MZ)()],Jt.prototype,"indicator",void 0),(0,s.Cg)([(0,u.MZ)()],Jt.prototype,"title",void 0),(0,s.Cg)([(0,u.MZ)()],Jt.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)()],Jt.prototype,"visible",void 0),Jt=(0,s.Cg)([(0,u.$K)("esri.support.actions.ActionBase")],Jt);const qt=Jt;var Lt;let Dt=Lt=class extends qt{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Lt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})._internalSetClassName(this.className)}};(0,s.Cg)([(0,u.MZ)()],Dt.prototype,"image",void 0),Dt=Lt=(0,s.Cg)([(0,u.$K)("esri.support.actions.ActionButton")],Dt);const Ut=Dt;var Wt;let zt=Wt=class extends qt{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Wt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})._internalSetClassName(this.className)}};(0,s.Cg)([(0,u.MZ)()],zt.prototype,"image",void 0),(0,s.Cg)([(0,u.MZ)()],zt.prototype,"value",void 0),zt=Wt=(0,s.Cg)([(0,u.$K)("esri.support.actions.ActionToggle")],zt);const Pt=zt;var Gt;const Vt="relationships/",Ht="expression/",Xt=l.A.ofType({key:"type",defaultKeyValue:"button",base:qt,typeMap:{button:Ut,toggle:Pt}}),Qt={base:Ct,key:"type",typeMap:{media:Zt,custom:Mt,text:jt,attachments:vt,fields:Ft,expression:xt,relationship:It,utilityNetworkAssociations:At}},Yt=new Set(["attachments","fields","media","text","expression","relationship"]),te=new Set([...Yt,"utility-network-associations"]);let ee=class extends((0,n.OU)(a.o)){static{Gt=r.P}constructor(t){super(t),this[Gt]=!0,this.actions=null,this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}get content(){return this._get("content")??""}set content(t){this._set("content",t)}castContent(t){return Array.isArray(t)?t.map(t=>(0,y.aq)(Qt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,c.$X)(t)?t:(d.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){const{content:s}=this,r=Array.isArray(s)?s:null,{writeFieldFormat:n,...l}=i||{};if(t){const o=r?r.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(l);return i&&(e.visible=!1),e})}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,h._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){const o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Yt.has(t.type):te.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e,o){const i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;const s=e.fieldInfos;if(Array.isArray(s))for(const t of i){const e=s.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:s.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,p.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements(t,e,o){const i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),Zt.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),jt.fromJSON(o)):"attachments"===o.type?vt.fromJSON(o):"fields"===o.type?Ft.fromJSON(o):"expression"===o.type?xt.fromJSON(o):"relationship"===o.type?It.fromJSON(o):"utilityNetworkAssociations"===o.type?At.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:o}=t;if(!e?.startsWith(Vt))return null;const i=e.replace(Vt,"").split("/");if(2!==i.length)return null;const s=parseInt(i[0],10),r=i[1];return!Number.isNaN(s)&&r?It.fromJSON({relationshipId:s,orderByFields:[{field:r,order:o}]}):null}_toFieldOrderJSON(t,e){const{order:o,field:i}=t;return{field:`${Vt}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){const s=[];t?s.push(new jt({text:t})):s.push(new Ft),Array.isArray(e)&&e.length&&s.push(Zt.fromJSON({mediaInfos:e})),o&&s.push(vt.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=i;return r&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&s.push(e)}),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,s=i||{},{fields:r,normalizeField:n,tooltipField:l,sourceURL:a,linkURL:p}=s,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(a),...this._extractFieldNames(p),...r??[]];return n&&d.push(n),l&&d.push(l),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,h.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(Vt)||t.startsWith(Ht))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,s="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,h.nw)(t).filter(t=>!(t.startsWith(Vt)||t.startsWith(Ht)))}};(0,s.Cg)([(0,u.MZ)({type:Xt})],ee.prototype,"actions",void 0),(0,s.Cg)([(0,u.MZ)()],ee.prototype,"content",null),(0,s.Cg)([(0,u.wg)("content")],ee.prototype,"castContent",null),(0,s.Cg)([(0,rt.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],ee.prototype,"readContent",null),(0,s.Cg)([(0,nt.K)("web-scene","content",{popupElements:{type:l.A.ofType(bt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(it)},description:{type:String},relatedRecordsInfo:{type:Et}})],ee.prototype,"writeWebSceneContent",null),(0,s.Cg)([(0,nt.K)("content",{popupElements:{type:l.A.ofType(Nt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(it)},description:{type:String},relatedRecordsInfo:{type:Et}})],ee.prototype,"writeWebMapContent",null),(0,s.Cg)([(0,u.MZ)({type:[_t.A],json:{write:!0}})],ee.prototype,"expressionInfos",void 0),(0,s.Cg)([(0,u.MZ)({type:[Rt.A]})],ee.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,nt.K)("fieldInfos")],ee.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,u.MZ)({type:Tt})],ee.prototype,"layerOptions",void 0),(0,s.Cg)([(0,nt.K)("layerOptions")],ee.prototype,"writeLayerOptions",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],ee.prototype,"lastEditInfoEnabled",void 0),(0,s.Cg)([(0,u.MZ)()],ee.prototype,"outFields",void 0),(0,s.Cg)([(0,u.MZ)()],ee.prototype,"overwriteActions",void 0),(0,s.Cg)([(0,u.MZ)()],ee.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,u.MZ)({json:{type:String}})],ee.prototype,"title",void 0),(0,s.Cg)([(0,nt.K)("title")],ee.prototype,"writeTitle",null),ee=(0,s.Cg)([(0,u.$K)("esri.PopupTemplate")],ee);const oe=ee},60950(t,e,o){o.d(e,{E_:()=>s,ym:()=>i});const i=Symbol("popupProvider");function s(t){return function(t){return!!t&&i in t}(t)?t[i]:null}},62044(t,e,o){o.d(e,{$P:()=>J,iu:()=>x,HK:()=>F,PK:()=>O,fg:()=>M,qH:()=>Z});var i=o(5482),s=o(10107),r=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,r.$)("esri.layers.support.FieldFormat")],a);const p=a,d="auto";let c=class extends p{constructor(t){super(t),this.dateStyle=null,this.hour12=d,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,s.MZ)({type:["full","long","medium","short"],json:{write:!0}})],c.prototype,"dateStyle",void 0),(0,i.Cg)([(0,s.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:d,write:!0}})],c.prototype,"hour12",void 0),(0,i.Cg)([(0,s.MZ)({type:["long","short"],json:{write:!0}})],c.prototype,"month",void 0),(0,i.Cg)([(0,s.MZ)({type:["full","long","medium","short"],json:{write:!0}})],c.prototype,"timeStyle",void 0),(0,i.Cg)([(0,s.MZ)({type:["date-time"]})],c.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:["numeric"],json:{write:!0}})],c.prototype,"year",void 0),c=(0,i.Cg)([(0,r.$)("esri.layers.support.DateTimeFieldFormat")],c);const u=c;var y=o(30524),h=o(56507);const m={min:0,max:20},g="decimal",f="auto";let w=class extends p{constructor(t){super(t),this.maximumFractionDigits=2,this.minimumFractionDigits=0,this.style=g,this.type="number",this.useGrouping=f}};(0,i.Cg)([(0,s.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:2,write:!0}})],w.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,s.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:0,write:!0}})],w.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,s.MZ)({type:["decimal"],nonNullable:!0,json:{default:g,write:!0}})],w.prototype,"style",void 0),(0,i.Cg)([(0,s.MZ)({type:["number"]})],w.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:f,write:!0}})],w.prototype,"useGrouping",void 0),w=(0,i.Cg)([(0,r.$)("esri.layers.support.NumberFieldFormat")],w);const v=w;var C=o(68780);const M={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":u,number:v}};function x(t,e){const{format:o}=t;return e&&Z(e)?o?F(o,e):J(e,{hour12:"always",useGrouping:"always"}):null}function F(t,e){const{dateFormat:o}=t;if(!e)return o?A(t):j(t);if(!Z(e))return;const i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return I(t);case"single":case"double":return j(t);case"date":case"timestamp-offset":return o?A(t):J(e,i);case"date-only":return o?function(t){return new u({dateStyle:N(t),year:R(t),month:S(t)})}(t):J(e);case"time-only":return o?function(t){return new u({timeStyle:_(t),hour12:b(t)})}(t):J(e,i)}}function Z(t){return(0,y.Jl)(t)&&((0,y.WA)(t)||(0,y.vE)(t)||(0,y.zD)(t)||(0,y.OH)(t)||(0,y.Ah)(t))}function I(t){return new v({useGrouping:t.digitSeparator?"always":"never"})}function j(t){const e=I(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function A(t){return new u({dateStyle:N(t),year:R(t),month:S(t),timeStyle:_(t),hour12:b(t)})}function N(t){const{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function b(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function S(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function _(t){const{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function R(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function O(t,e){const o="number"===t.type,i="date-time"===t.type;if(!e)return o?$(t):i?K(t):null;if(Z(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?T(t):null;case"single":case"double":return o?$(t):null;case"date":case"timestamp-offset":return i?K(t):null;case"date-only":return i?function(t){let e;const o=E(t),i="numeric"===t.year?"year":null,s=k(t);return o?e=o:i&&s?e=`${s}-${i}`:i&&(e=i),e?new C.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e;const o=B(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new C.A({dateFormat:e}):null}(t):null}}function T(t){return new C.A({digitSeparator:"never"!==t.useGrouping})}function $(t){const e=T(t);return e.places=t.maximumFractionDigits,e}function K(t){let e;const o=E(t),i=B(t),s="never"===t.hour12?"24":null,r="numeric"===t.year?"year":null,n=k(t);return o&&i&&s?e=`${o}-${i}-${s}`:o&&i?e=`${o}-${i}`:o?e=o:r&&n?e=`${n}-${r}`:r&&(e=r),e?new C.A({dateFormat:e}):null}function E(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function B(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function k(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function J(t,e){if(!Z(t))return;const o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new v({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new v({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new u({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new u({dateStyle:"short"});case"time-only":return new u({timeStyle:"short",hour12:i})}}},93705(t,e,o){o.d(e,{A:()=>a});var i,s=o(5482),r=o(25482),n=o(91429);let l=i=class extends r.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,s.Cg)([(0,n.$K)("esri.popup.ExpressionInfo")],l);const a=l},41227(t,e,o){o.d(e,{A:()=>y});var i=o(5482),s=o(69540),r=o(66552),n=o(25482),l=o(91429),a=o(62044),p=o(68780),d=o(36005),c=o(93223);let u=class extends((0,s.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,a.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,a.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?p.A.fromJSON(t):null}clone(){const t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:a.fg,json:{write:{overridePolicy(t,e,o){const{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],u.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:p.A,json:{write:!0}})],u.prototype,"format",null),(0,i.Cg)([(0,d.w)("format")],u.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],u.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],u.prototype,"statisticType",void 0),(0,i.Cg)([(0,c.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],u.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"visible",void 0),u=(0,i.Cg)([(0,l.$K)("esri.popup.FieldInfo")],u);const y=u},89893(t,e,o){o.d(e,{A:()=>y});var i=o(5482),s=o(69540),r=o(91429),n=o(84424),l=o(66552),a=o(25482);const p=new l.J({asc:"ascending",desc:"descending"});let d=class extends((0,s.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,i.Cg)([(0,r.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],d.prototype,"order",void 0),d=(0,i.Cg)([(0,r.$K)("esri.popup.support.AttachmentsOrderByInfo")],d);const c=d;let u=class extends((0,s.OU)(n.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,r.MZ)({type:[String],json:{write:!0}})],u.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,r.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],u.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],u.prototype,"displayType",void 0),(0,i.Cg)([(0,r.MZ)({type:[c],json:{write:!0}})],u.prototype,"orderByFields",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"title",void 0),(0,i.Cg)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,r.$K)("esri.popup.content.AttachmentsContent")],u);const y=u},84424(t,e,o){o.d(e,{A:()=>l});var i=o(5482),s=o(25482),r=o(91429);let n=class extends s.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],n.prototype,"type",void 0),n=(0,i.Cg)([(0,r.$K)("esri.popup.content.Content")],n);const l=n},66159(t,e,o){o.d(e,{A:()=>d});var i,s=o(5482),r=o(4718),n=o(91429),l=o(41227),a=o(84424);let p=i=class extends a.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],p.prototype,"attributes",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,s.Cg)([(0,n.MZ)({type:[l.A],json:{write:!0}})],p.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),p=i=(0,s.Cg)([(0,n.$K)("esri.popup.content.FieldsContent")],p);const d=p},68780(t,e,o){o.d(e,{A:()=>c});var i=o(5482),s=o(69540),r=o(25482),n=o(91429),l=o(56507),a=o(97770),p=o(93223);let d=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,p.e)(a._v)],d.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],d.prototype,"places",void 0),d=(0,i.Cg)([(0,n.$K)("esri.popup.support.FieldInfoFormat")],d);const c=d},49852(t,e,o){o.d(e,{A:()=>a});var i,s=o(5482),r=o(25482),n=o(91429);let l=i=class extends r.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,s.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,s.Cg)([(0,n.$K)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l},83342(t,e,o){o.d(e,{A:()=>p});var i=o(5482),s=o(69540),r=o(25482),n=o(91429),l=o(56507);let a=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,i.Cg)([(0,n.$K)("esri.popup.support.UtilityNetworkAssociationType")],a);const p=a},78553(t,e,o){o.d(e,{D:()=>r,p:()=>s});var i=o(56507);function s(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,3931,6061,8125],{61691(e,t,r){r.d(t,{G:()=>s});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>n});var s=r(61691);class n extends s.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}}},87992(e,t,r){r.d(t,{JR:()=>Z,ME:()=>E,MY:()=>R,NO:()=>M,Nh:()=>V,V2:()=>A,_s:()=>Y,e6:()=>F,gh:()=>P,tr:()=>b,uX:()=>x});var s=r(5482),n=r(69397),a=r(16930),i=(r(70328),r(19419)),o=r(60408),u=r(21325),h=r(513),l=r(50954),c=r(79567),m=r(52006),g=r(49663),f=r(46068),p=r(92722);class x{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:a,partCount:i,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:l,segmentParams:c,segmentCountArc:m,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=l,this.segmentParams=c,this.segmentCountArc=m,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-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 e(e){return e?n.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:r,hasZ:s,hasM:n,segmentCountArc:a,segmentCountBezier:i}=this,o=A(e,t,r,s,n,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:l}=this;if(o.vertexXY.set(u.subarray(0,2*t),0),o.vertexZ?.set(h.subarray(0,t),0),o.vertexM?.set(l.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(s.subarray(0,n),0)}return o}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 r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(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(r(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=_(e),this._segments=new d(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 d{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new C(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 C{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=_(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 r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[r++],s=t[r++],n=t[r++],a=t[r++];return{b:[this.end,[e,s],[n,a]]}}const s=t[r++],n=t[r++],a=t[r++],i=t[r++],o=t[r++],u=t[r++];r++,r++;const h=t[r++],l=t[r++];if(!Boolean(4&s)&&1===a)return{c:[this.end,[h,l]]};const c=2&s?0:1,m=1&s?0:1;return{a:[this.end,[o,u],c,m,i,n,a]}}}function M(e,t){const r={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,s.mS)(r,new O(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=e,u=S(e);if(e.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new O(e,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:r}of t.segments)(0,c.e)(n,e,r),e=(0,m.yP)(r)}const[a,o,h,l]=n;t={xmin:a,ymin:o,xmax:h,ymax:l,spatialReference:u}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,a,i;e=s=1/0,a=i=-1/0;for(let t=0;t<r;++t){const r=n[2*t],o=n[2*t+1];e=Math.min(e,r),a=Math.max(a,r),s=Math.min(s,o),i=Math.max(i,o)}t={xmin:e,ymin:s,xmax:a,ymax:i,spatialReference:u}}if(a){let e=1/0,r=-1/0;for(const t of a)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(const t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}function E(e){let t,r,s;if((0,o.fT)(e)){s="point";const{x:n,y:a,z:i,m:o}=e,u=[n,a];null!=i&&u.push(i),null!=o&&u.push(o),r=[[u]],t=1}else(0,o.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,o.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,w(t[0],(0,m.yP)(t.at(-1)))&&--e),e),0));const n=A(s,t,s.includes("point")?0:r.length,(0,o.Pv)(e),(0,o.W0)(e),(0,m.Ed)(e)),{hasZ:a,hasM:i,vertexXY:u,vertexZ:h,vertexM:l}=n;function c(e){u[2*f]=e[0],u[2*f+1]=e[1],a&&(h[f]=e[2]),i&&(l[f]=e[g]),++f}n.spatialReference=e.spatialReference??void 0;const g=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!a&&!i){for(const[e,t]of r[0])u[2*f]=e,u[2*f+1]=t,++f;return n}for(const e of r[0])c(e);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!n.hasCurves()){for(const e of r){if(x[y++]=f,0===e.length)continue;let t=e.length;if(p&&w(e[0],e.at(-1))&&--t,a||i)for(let r=0;r<t;++r)c(e[r]);else for(let r=0;r<t;++r){const[t,s]=e[r];u[2*f]=t,u[2*f+1]=s,++f}}return x[y]=f,n}function v(e){const t=d+e;if(t<=(n.segmentParams?.length??0))return;let r=t*G;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let d=0;for(const e of r){if(n.partOffsets[y++]=f,0===e.length)continue;const t=e[0];let r=t;for(let t=1;t<e.length;++t){const s=e[t];c(r);const a=f-1;(0,m.wY)(s)?(v(10),++n.segmentCountArc,d=Y(r,s,n,a,d),r=s.a[0]):(0,m.DA)(s)?(v(10),++n.segmentCountArc,d=I(r,s,n,a,d),r=s.a[0]):(0,m.aO)(s)?(v(10),++n.segmentCountArc,d=F(r,s,n,a,d),r=s.c[0]):(0,m.n1)(s)?(v(4),++n.segmentCountBezier,d=b(0,s,n,a,d),r=s.b[0]):r=s}p&&w(t,r)||c(r)}return n.partOffsets[y]=f,n}function P(e){const t=_(e),{vertexCount:r,partCount:s,hasZ:n,hasM:a}=e,i=S(e);if("point"===e.type){const[t,r]=e.vertexXY,s=e.vertexZ?.[0],n=e.vertexM?.[0];return{x:t,y:r,z:s,m:n,spatialReference:i}}let o=0;if("multipoint"===e.type){const e=[];for(;o<r;)e.push(t(o++));return{points:e,spatialReference:i,hasZ:n,hasM:a}}const u="polygon"===e.type;if(!e.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=e.partOffsets[n+1],a=new Array;for(;o<s;)a.push(t(o++));u&&a.length>0&&a.push(a[0]),r.push(a)}return u?{rings:r,hasZ:n,hasM:a,spatialReference:i}:{paths:r,hasZ:n,hasM:a,spatialReference:i}}const h=new Array;for(const{segments:t,startVertex:r}of e.parts){const e=[r];for(const{curve:r}of t)e.push(r);h.push(e)}return u?{rings:[],curveRings:h,hasZ:n,hasM:a,spatialReference:i}:{paths:[],curvePaths:h,hasZ:n,hasM:a,spatialReference:i}}function V(e,{lengths:t,coords:r,hasZ:s,hasM:n},a){const i=e.includes("point")?0:t.length,o="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?i:0);s??=!1,n??=!1;const h=A(e,u,i,s,n,!1,0,0);if(h.spatialReference=a??void 0,!h.isMultipart()){for(let e=0,t=0;e<u;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),n&&(h.vertexM[e]=r[t++]);return h}const l=2+Number(s)+Number(n);let c=0,m=0;h.partOffsets[0]=0;for(const e of t){const t=h.partOffsets[m],a=t+e-Number(o);h.partOffsets[++m]=a;for(let e=t;e<a;++e)h.vertexXY[2*e]=r[c++],h.vertexXY[2*e+1]=r[c++],s&&(h.vertexZ[e]=r[c++]),n&&(h.vertexM[e]=r[c++]);o&&(c+=l)}return h}function Z({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:n,partCount:a,partOffsets:i,hasZ:o,hasM:u}){const h=new p.A([],[],o,u);a=Math.max(a,1);const l="polygon"===e;let c=0;for(let e=0;e<a;++e){const a=i?.[e+1]??t,m=h.coords.length;for(let e=c;e<a;++e)h.coords.push(r[2*e],r[2*e+1]),o&&h.coords.push(s[e]),u&&h.coords.push(n[e]);if(l){const e=c;h.coords.push(r[2*e],r[2*e+1]),o&&h.coords.push(s[e]),u&&h.coords.push(n[e])}h.lengths.push((h.coords.length-m)/h.stride),c=a}return"point"===e&&(h.lengths.length=0),h}function R(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let s=e.getLatestID();(s<=0||s===r)&&(s=void 0);const n=e.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:t};const a=n.isCustomWkid()?0:n.getOldID();if(a<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:a,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new x({...e.toFlatGeometry(),spatialReference:t})}class O{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function S({spatialReference:e}){return e instanceof a.A?e.toJSON():e}function _({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function w(e,t){return e.every((e,r)=>e===t[r])}function A(e,t,r,s,n,a,i,o){i??=0,o??=0;const u=new x({type:e,vertexCount:t,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:i,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),n&&(h+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),a&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(h);let c=0;return u.vertexXY=new Float64Array(l,c,2*t),c+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(l,c,t),c+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(l,c,t),c+=u.vertexM.byteLength),a&&(u.segmentParams=new Float64Array(l,c,u.segmentParamCount),c+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(l,c,t),u.segmentIndices.fill(N),c+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(l,c,r+1),c+=u.partOffsets.byteLength,u.partFlags=new Int8Array(l,c,r+1),c+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),a&&(u.segmentFlags=new Int8Array(l,c,t),u.segmentFlags.fill(1),c+=u.segmentFlags.byteLength),u}function Y(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;const[o,[u,h],l,c,m,g,p]=t.a;let x=4;c||(x|=1),l||(x|=2);const y=(0,f.SW)(e,t),[v,d]=(0,f.Uk)(y,.5);return n[i++]=x,n[i++]=g,n[i++]=p,n[i++]=m,n[i++]=u,n[i++]=h,n[i++]=y.u2-y.u1,n[i++]=y.u1,n[i++]=v,n[i++]=d,i}function I(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;const o=(0,g.io)(e,t);return X(o,4,...(0,h.mq)(o,.5),n,i)}function F(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){return r[a]=4,s[a]=i,X((0,l.pM)(e,t),0,...t.c[1],n,i)}function X(e,t,r,s,n,a){const{cx:i,cy:o,thetaStart:u,thetaEnd:h,radius:l}=e;return u>h||(t|=1),Math.abs(h-u)<=Math.PI||(t|=2),n[a++]=t,n[a++]=l,n[a++]=1,n[a++]=0,n[a++]=i,n[a++]=o,n[a++]=h-u,n[a++]=u,n[a++]=r,n[a++]=s,a}function b(e,{b:[t,[r,s],[n,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:u},h,l){return i[h]=2,o[h]=l,u[l++]=r,u[l++]=s,u[l++]=n,u[l++]=a,l}const G=1.61803,N=-1},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>d,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>f,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>R,toPolygon:()=>O,toPolyline:()=>S});var s=r(83661),n=(r(79187),r(55537)),a=r(95213),i=r(88885),o=r(5443),u=r(48526),h=r(86738),l=r(39829),c=r(82799),m=(r(90293),r(83299));const g="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function p(e){switch(e.type){case"point":return v(e);case"multipoint":return y(e);case"polyline":return C(e);case"polygon":return d(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(g)){const t=new a.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(g,t)}return e.getCacheValue(g)}function y(e){if(!e.getCacheValue(g)){const t=new i.M,r=new a.P,s=e.points,n=e.hasM,o=e.hasZ,u=o?3:2;for(let e=0,a=s.length;e<a;e++){const a=s[e];r.setXYCoords(a[0],a[1]),o&&r.setZ(a[2]??0),n&&r.setM(a[u]??NaN),t.add(r)}e.setCacheValue(g,t)}return e.getCacheValue(g)}function v(e){if(!e.getCacheValue(g)){const t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(g,t)}return e.getCacheValue(g)}function d(e){if(!e.getCacheValue(g)){const{curveRings:t,hasM:r,hasZ:s,rings:n}=e,a=(0,m.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:s,rings:n});e.setCacheValue(g,a)}return e.getCacheValue(g)}function C(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,a=(0,m.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(g,a)}return e.getCacheValue(g)}function M(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,a=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(g,a)}return e.getCacheValue(g)}function E(e){return e.cache?(e.cache[g]??=(0,m.fromSpatialReference)(e),e.cache[g]):(0,m.fromSpatialReference)(e)}function P(e,t){if(e)switch(e.getGeometryType()){case n.G.enumPoint:return R(e,t);case n.G.enumEnvelope:return V(e,t);case n.G.enumMultiPoint:return Z(e,t);case n.G.enumPolyline:return S(e,t);case n.G.enumPolygon:return O(e,t)}return null}function V(e,t){if(e.isEmpty())return null;const r=new o.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),s=e.getDescription();if(s.hasM()){const t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(s.hasZ()){const t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(g,e),r}function Z(e,t){if(e.isEmpty())return null;const r=e.getDescription(),s=r.hasM(),n=r.hasZ(),i=[],o=new a.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),i.push(r)}const h=new u.A({hasM:s,hasZ:n,points:i,spatialReference:t});return h.setCacheValue(g,e),h}function R(e,t){if(e instanceof s.P)return new h.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const r=new h.A({x:e.getX(),y:e.getY(),spatialReference:t}),n=e.getDescription();return n.hasM()&&(r.m=e.getM()),n.hasZ()&&(r.z=e.getZ()),r.setCacheValue(g,e),r}function O(e,t){if(e.isEmpty())return null;const r=l.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(g,e),r}function S(e,t){if(e.isEmpty())return null;const r=c.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(g,e),r}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7273],{32488(t,i,s){s.d(i,{A:()=>U});const e=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],n=["آ","أ","إ","ا"],h=["ﻵ","ﻷ","ﻹ","ﻻ"],r=["ﻶ","ﻸ","ﻺ","ﻼ"],o=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],a=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],l=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],_=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],c=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],x=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],f=["ء","ف"],y=["غ","ي"],m=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],g=10,T=11,d=12,A=18,L=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],R=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],w=[[A,A,A,A,A,A,A,A,A,6,5,6,8,5,A,A,A,A,A,A,A,A,A,A,A,A,A,A,5,5,5,6,8,4,4,T,T,T,4,4,4,4,4,g,9,g,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,A,A,A,A,A,A,5,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,9,4,T,T,T,T,4,4,4,4,0,4,4,A,4,4,T,T,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,1,d,1,d,d,1,d,d,1,d,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,T,T,7,9,7,4,4,d,d,d,d,d,d,d,d,d,d,d,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,3,3,3,3,3,3,3,3,3,3,T,3,3,7,7,7,d,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,d,d,d,d,d,d,d,3,4,d,d,d,d,d,d,7,7,d,d,4,d,d,d,d,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,d,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,d,d,d,d,d,d,d,d,d,d,d,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,d,d,d,d,d,d,d,d,d,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,A,A,A,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,T,T,T,T,T,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,A,A,A,A,A,4,4,4,4,4,A,A,A,A,A,A,2,0,4,4,2,2,2,2,2,2,g,g,4,4,4,0,2,2,2,2,2,2,2,2,2,2,g,g,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,d,1,1,1,1,1,1,1,1,1,1,g,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,d,d,d,d,d,d,d,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,T,4,4,g,g,4,4,4,4,4,T,T,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,A],[4,4,4,T,T,T,4,4,4,4,4,g,9,g,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,T,T,4,4,4,T,T,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class U{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,i,s){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,i,s){G=[],Z=[];for(let e=0;e<s;e++)t[e]=e,i[e]=e,G[e]=e}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(i,s))return t;i=this.inputFormat,s=this.outputFormat;let e=t;const o=Q,_=q(i.charAt(1)),c=q(s.charAt(1)),f=(i.startsWith("I")?"L":i.charAt(0))+_,y=(s.startsWith("I")?"L":s.charAt(0))+c,m=i.charAt(2)+s.charAt(2);o.defInFormat=f,o.defOutFormat=y,o.defSwap=m;const p=b(t,f,y,m,o);let g=!1;return"R"===s.charAt(1)?g=!0:"C"!==s.charAt(1)&&"D"!==s.charAt(1)||(g="rtl"===this.checkContextual(p)),this.sourceToTarget=G,this.targetToSource=function(t){const i=new Array(t.length);for(let s=0;s<t.length;s++)i[t[s]]=s;return i}(this.sourceToTarget),J=this.targetToSource,e=i.charAt(3)===s.charAt(3)?p:"S"===s.charAt(3)?function(t,i){if(0===i.length)return"";void 0===t&&(t=!0);const s=(i=String(i)).split("");let e=0,n=1,o=s.length;t||(e=s.length-1,n=-1,o=1);const _=function(t,i,s,e){let n=0;const o=[];let _=0;for(let c=i;c*s<e;c+=s)if(P(t[c])||W(t[c])){if("ل"===t[c]&&C(t,c+s,s,e)){t[c]=Y(t[c+s],0===n?h:r),c+=s,H(t,c,s,e),o[_]=c,_++,n=0;continue}const i=t[c];1===n?t[c]=I(t,c+s,s,e)?O(t[c]):k(t[c],l):!0===I(t,c+s,s,e)?t[c]=k(t[c],u):t[c]=k(t[c],a),W(i)||(n=1),!0===z(i)&&(n=0)}else n=0;return o}(s,e,n,o);let c="";for(let i=0;i<s.length;i++)N(_,_.length,i)>-1?(j(J,i,!t,-1),G.splice(i,1)):c+=s[i];return c}(g,p):function(t,i){if(0===t.length)return"";void 0===i&&(i=!0);let s="";const e=(t=String(t)).split("");for(let h=0;h<t.length;h++){let r=!1;if(e[h]>="ﹰ"&&e[h]<"\ufeff"){const o=t.charCodeAt(h);e[h]>="ﻵ"&&e[h]<="ﻼ"?(i?(h>0&&" "===e[h-1]?s=s.slice(0,-1)+"ل":(s+="ل",r=!0),s+=n[(o-65269)/2]):(s+=n[(o-65269)/2],s+="ل",h+1<t.length&&" "===e[h+1]?h++:r=!0),r&&(j(J,h,!0,1),G.splice(h,0,G[h]))):s+=x[o-65136]}else s+=e[h]}return s}(p,g),this.sourceToTarget=G,this.targetToSource=J,this.levels=Z,e}_inputFormatSetter(t){if(!it.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!it.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,i){return t?this._inputFormatSetter(t):t=this.inputFormat,i?this._outputFormatSetter(i):i=this.outputFormat,t!==i}checkContextual(t){let i=B(t);if("ltr"!==i&&"rtl"!==i){try{i=document.dir.toLowerCase()}catch(t){}"ltr"!==i&&"rtl"!==i&&(i="ltr")}return i}hasBidiChar(t){return st.test(t)}}function b(t,i,s,e,n){const h=function(t,i,s){if(void 0===i.inFormat&&(i.inFormat=s.defInFormat),void 0===i.outFormat&&(i.outFormat=s.defOutFormat),void 0===i.swap&&(i.swap=s.defSwap),i.inFormat===i.outFormat)return i;const e=i.inFormat.slice(0,1),n=i.outFormat.slice(0,1);let h,r=i.inFormat.slice(1,4),o=i.outFormat.slice(1,4);return r.startsWith("C")&&(h=B(t),r="ltr"===h||"rtl"===h?h.toUpperCase():"L"===i.inFormat.charAt(2)?"LTR":"RTL",i.inFormat=e+r),o.startsWith("C")&&(h=B(t),"rtl"===h?o="RTL":"ltr"===h?(h=function(t){const i=t.split("");return i.reverse(),B(i.join(""))}(t),o=h.toUpperCase()):o="L"===i.outFormat.charAt(2)?"LTR":"RTL",i.outFormat=n+o),i}(t,{inFormat:i,outFormat:s,swap:e},n);if(h.inFormat===h.outFormat)return t;i=h.inFormat,s=h.outFormat,e=h.swap;const r=i.slice(0,1),o=i.slice(1,4),a=s.slice(0,1),l=s.slice(1,4);if(n.inFormat=i,n.outFormat=s,n.swap=e,"L"===r&&"VLTR"===s){if("LTR"===o)return n.dir=X,F(t,n);if("RTL"===o)return n.dir=tt,F(t,n)}if("V"===r&&"V"===a)return n.dir="RTL"===o?tt:X,M(t,n);if("L"===r&&"VRTL"===s)return"LTR"===o?(n.dir=X,t=F(t,n)):(n.dir=tt,t=F(t,n)),M(t);if("VLTR"===i&&"LLTR"===s)return n.dir=X,F(t,n);if("V"===r&&"L"===a&&o!==l)return t=M(t),"RTL"===o?b(t,"LLTR","VLTR",e,n):b(t,"LRTL","VRTL",e,n);if("VRTL"===i&&"LRTL"===s)return b(t,"LRTL","VRTL",e,n);if("L"===r&&"L"===a){const i=n.swap;return n.swap=i.slice(0,1)+"N","RTL"===o?(n.dir=tt,t=F(t,n),n.swap="N"+i.slice(1,3),n.dir=X,t=F(t,n)):(n.dir=X,t=F(t,n),n.swap="N"+i.slice(1,3),t=b(t,"VLTR","LRTL",n.swap,n)),t}return t}function B(t){const i=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return i?i[0]<="z"?"ltr":"rtl":""}function F(t,i){const s=t.split(""),e=[];return v(s,e,i),function(t,i,s){if(0!==s.hiLevel&&s.swap[0]!==s.swap[1])for(let s=0;s<t.length;s++)1===i[s]&&(t[s]=D(t[s]))}(s,e,i),V(2,s,e,i),V(1,s,e,i),Z=e,s.join("")}function v(t,i,s){const e=t.length,n=s.dir?p:m;let h=0,r=-1;const o=[],a=[];s.hiLevel=s.dir,s.lastArabic=!1,s.hasUbatAl=!1,s.hasUbatB=!1,s.hasUbatS=!1;for(let i=0;i<e;i++)o[i]=S(t[i]);for(let l=0;l<e;l++){const e=h,_=E(t,o,a,l,s);a[l]=_,h=n[e][_];const u=240&h;h&=15;const c=n[h][$];if(i[l]=c,u>0)if(16===u){for(let t=r;t<l;t++)i[t]=1;r=-1}else r=-1;if(n[h][K])-1===r&&(r=l);else if(r>-1){for(let t=r;t<l;t++)i[t]=c;r=-1}5===o[l]&&(i[l]=0),s.hiLevel|=c}s.hasUbatS&&function(t,i,s,e){for(let n=0;n<s;n++)if(6===t[n]){i[n]=e.dir;for(let s=n-1;s>=0&&8===t[s];s--)i[s]=e.dir}}(o,i,e,s)}function S(t){const i=t.charCodeAt(0),s=R[i>>8];return s<100?s:w[s-100][255&i]}function M(t,i){const s=t.split("");if(i){const t=[];v(s,t,i),Z=t}return s.reverse(),G.reverse(),s.join("")}function N(t,i,s){for(let e=0;e<i;e++)if(t[e]===s)return e;return-1}function P(t){for(let i=0;i<f.length;i++)if(t>=f[i]&&t<=y[i])return!0;return!1}function I(t,i,s,e){for(;i*s<e&&W(t[i]);)i+=s;return!!(i*s<e&&P(t[i]))}function C(t,i,s,e){for(;i*s<e&&W(t[i]);)i+=s;let h=" ";if(!(i*s<e))return!1;h=t[i];for(let t=0;t<n.length;t++)if(n[t]===h)return!0;return!1}function V(t,i,s,e){if(e.hiLevel<t)return;if(1===t&&e.dir===tt&&!e.hasUbatB)return i.reverse(),void G.reverse();const n=i.length;let h,r,o,a,l,_=0;for(;_<n;){if(s[_]>=t){for(h=_+1;h<n&&s[h]>=t;)h++;for(r=_,o=h-1;r<o;r++,o--)a=i[r],i[r]=i[o],i[o]=a,l=G[r],G[r]=G[o],G[o]=l;_=h}_++}}function E(t,i,s,e,n){const h=i[e];return{UBAT_L:()=>(n.lastArabic=!1,0),UBAT_R:()=>(n.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>n.lastArabic?3:2,UBAT_AL:()=>(n.lastArabic=!0,n.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,h;return e<1||e+1>=i.length||2!==(t=s[e-1])&&3!==t||2!==(h=i[e+1])&&3!==h?4:(n.lastArabic&&(h=3),h===t?h:4)},UBAT_ES:()=>2===(e>0?s[e-1]:5)&&e+1<i.length&&2===i[e+1]?2:4,UBAT_ET:()=>{if(e>0&&2===s[e-1])return 2;if(n.lastArabic)return 4;let t=e+1;const h=i.length;for(;t<h&&i[t]===T;)t++;return t<h&&2===i[t]?2:4},UBAT_NSM:()=>{if("VLTR"===n.inFormat){const s=i.length;let n=e+1;for(;n<s&&i[n]===d;)n++;if(n<s){const s=t[e].charCodeAt(0),h=s>=1425&&s<=2303||64286===s,r=i[n];if(h&&(1===r||7===r))return 1}}return e<1||5===i[e-1]?4:s[e-1]},UBAT_B:()=>(n.lastArabic=!0,n.hasUbatB=!0,n.dir),UBAT_S:()=>(n.hasUbatS=!0,4),UBAT_LRE:()=>(n.lastArabic=!1,4),UBAT_RLE:()=>(n.lastArabic=!1,4),UBAT_LRO:()=>(n.lastArabic=!1,4),UBAT_RLO:()=>(n.lastArabic=!1,4),UBAT_PDF:()=>(n.lastArabic=!1,4),UBAT_BN:()=>4}[L[h]]()}function D(t){let i,s=0,n=e.length-1;for(;s<=n;)if(i=Math.floor((s+n)/2),t<e[i][0])n=i-1;else{if(!(t>e[i][0]))return e[i][1];s=i+1}return t}function z(t){for(let i=0;i<c.length;i++)if(c[i]===t)return!0;return!1}function O(t){for(let i=0;i<o.length;i++)if(t===o[i])return _[i];return t}function k(t,i){for(let s=0;s<o.length;s++)if(t===o[s])return i[s];return t}function W(t){return t>="ً"&&t<="ٕ"}function q(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function H(t,i,s,e){for(;i*s<e&&W(t[i]);)i+=s;return i*s<e&&(t[i]=" ",!0)}function Y(t,i){for(let s=0;s<n.length;s++)if(t===n[s])return i[s];return t}function j(t,i,s,e){for(let n=0;n<t.length;n++)(t[n]>i||!s&&t[n]===i)&&(t[n]+=e)}let G=[],J=[],Z=[];const Q={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},$=5,K=6,X=0,tt=1,it=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,st=/[\u0591-\u06ff\ufb1d-\ufefc]/},6774(t,i,s){s.d(i,{O3:()=>h,Ox:()=>r,bR:()=>e});class e{constructor(t,i){this.x=t,this.y=i}static fromArray(t){return new e(t[0],t[1])}clone(){return new e(this.x,this.y)}equals(t,i){return t===this.x&&i===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,i){return this.x=t,this.y=i,this}normalize(){const t=this.x,i=this.y,s=Math.sqrt(t*t+i*i);return this.x/=s,this.y/=s,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,i){return this.x+=t,this.y+=i,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}assignSub(t,i){return this.x=t.x-i.x,this.y=t.y-i.y,this}rotate(t,i){const s=this.x,e=this.y;return this.x=s*t-e*i,this.y=s*i+e*t,this}rotateReverse(t,i){const s=this.x,e=this.y;return this.x=s*t+e*i,this.y=-s*i+e*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,i=this.y;return Math.sqrt(t*t+i*i)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,i){const s=i.x-t.x,e=i.y-t.y;return Math.sqrt(s*s+e*e)}static add(t,i){return new e(t.x+i.x,t.y+i.y)}static sub(t,i){return new e(t.x-i.x,t.y-i.y)}}class n{constructor(t,i,s){this.ratio=t,this.x=i,this.y=s}}class h{constructor(t,i,s,e=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=e,this._pixelMargin=n,this._tileSize=512*e,this._dz=t,this._yPos=i,this._xPos=s}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let i=this._pixelRatio*this._pixelMargin;i/=this._finalRatio;const s=t>>this._dz;i>s&&(i=s),this._margin=i,this._xmin=s*this._xPos-i,this._ymin=s*this._yPos-i,this._xmax=this._xmin+s+2*i,this._ymax=this._ymin+s+2*i}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,i){this._pushLine(),this._prevIsIn=this._isIn(t,i),this._moveTo(t,i,this._prevIsIn),this._prevPt=new e(t,i),this._firstPt=new e(t,i),this._dist=0}lineTo(t,i){const s=this._isIn(t,i),h=new e(t,i),r=e.distance(this._prevPt,h);let o,a,l,_,u,c,x,f;if(s)this._prevIsIn?this._lineTo(t,i,!0):(o=this._prevPt,a=h,l=this._intersect(a,o),this._start=this._dist+r*(1-this._r),this._lineTo(l.x,l.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,o=h,l=this._intersect(a,o),this._lineTo(l.x,l.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,i=h;if(t.x<=this._xmin&&i.x<=this._xmin||t.x>=this._xmax&&i.x>=this._xmax||t.y<=this._ymin&&i.y<=this._ymin||t.y>=this._ymax&&i.y>=this._ymax)this._lineTo(i.x,i.y,!1);else{const s=[];if((t.x<this._xmin&&i.x>this._xmin||t.x>this._xmin&&i.x<this._xmin)&&(_=(this._xmin-t.x)/(i.x-t.x),f=t.y+_*(i.y-t.y),f<=this._ymin?c=!1:f>=this._ymax?c=!0:s.push(new n(_,this._xmin,f))),(t.x<this._xmax&&i.x>this._xmax||t.x>this._xmax&&i.x<this._xmax)&&(_=(this._xmax-t.x)/(i.x-t.x),f=t.y+_*(i.y-t.y),f<=this._ymin?c=!1:f>=this._ymax?c=!0:s.push(new n(_,this._xmax,f))),(t.y<this._ymin&&i.y>this._ymin||t.y>this._ymin&&i.y<this._ymin)&&(_=(this._ymin-t.y)/(i.y-t.y),x=t.x+_*(i.x-t.x),x<=this._xmin?u=!1:x>=this._xmax?u=!0:s.push(new n(_,x,this._ymin))),(t.y<this._ymax&&i.y>this._ymax||t.y>this._ymax&&i.y<this._ymax)&&(_=(this._ymax-t.y)/(i.y-t.y),x=t.x+_*(i.x-t.x),x<=this._xmin?u=!1:x>=this._xmax?u=!0:s.push(new n(_,x,this._ymax))),0===s.length)u?c?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):c?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+r*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+r*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(i.x,i.y,!1)}}this._dist+=r,this._prevIsIn=s,this._prevPt=h}close(){if(this._line.length>2){const t=this._firstPt,i=this._prevPt;t.x===i.x&&t.y===i.y||this.lineTo(t.x,t.y);const s=this._line;let e=s.length;for(;e>=4&&(s[0].x===s[1].x&&s[0].x===s[e-2].x||s[0].y===s[1].y&&s[0].y===s[e-2].y);)s.pop(),s[0].x=s[e-2].x,s[0].y=s[e-2].y,--e}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,i=t.length;if(0===i)return null;const s=[];for(let e=0;e<i;e++)s.push({line:t[e],start:this._starts[e]||0});return s}_isIn(t,i){return t>=this._xmin&&t<=this._xmax&&i>=this._ymin&&i<=this._ymax}_intersect(t,i){let s,n,h;if(i.x>=this._xmin&&i.x<=this._xmax)n=i.y<=this._ymin?this._ymin:this._ymax,h=(n-t.y)/(i.y-t.y),s=t.x+h*(i.x-t.x);else if(i.y>=this._ymin&&i.y<=this._ymax)s=i.x<=this._xmin?this._xmin:this._xmax,h=(s-t.x)/(i.x-t.x),n=t.y+h*(i.y-t.y);else{n=i.y<=this._ymin?this._ymin:this._ymax,s=i.x<=this._xmin?this._xmin:this._xmax;const e=(s-t.x)/(i.x-t.x),r=(n-t.y)/(i.y-t.y);e<r?(h=e,n=t.y+e*(i.y-t.y)):(h=r,s=t.x+r*(i.x-t.x))}return this._r=h,new e(s,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,i,s){3!==this._type?s&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i))):(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i)),this._isH=!1,this._isV=!1)}_lineTo(t,i,s){let n,h;if(3!==this._type)if(s){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,i)))return;this._line.push(new e(t,i))}else this._line&&this._line.length>0&&this._pushLine();else if(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const s=n.x===t,r=n.y===i;if(s&&r)return;this._isH&&s||this._isV&&r?(n.x=t,n.y=i,h=this._line[this._line.length-2],h.x===t&&h.y===i?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(h=this._line[this._line.length-2],this._isH=h.x===t,this._isV=h.y===i)):(this._isH=h.x===t,this._isV=h.y===i)):(this._line.push(new e(t,i)),this._isH=s,this._isV=r)}else this._line.push(new e(t,i))}}class r{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,i){this._line&&this._lines.push(this._line),this._line=[];const s=this._ratio;this._line.push(new e(t*s,i*s))}lineTo(t,i){const s=this._ratio;this._line.push(new e(t*s,i*s))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,i,s){if(!s)return;const e=-i,n=t+i,h=-i,r=t+i,a=[],l=[],_=s.length;for(let t=0;t<_;++t){const i=s[t];if(!i||i.length<2)continue;let o,_=i[0];const u=i.length;for(let s=1;s<u;++s)o=i[s],_.x===o.x&&(_.x<=e&&(_.y>o.y?(a.push(t),a.push(s),a.push(0),a.push(-1)):(l.push(t),l.push(s),l.push(0),l.push(-1))),_.x>=n&&(_.y<o.y?(a.push(t),a.push(s),a.push(1),a.push(-1)):(l.push(t),l.push(s),l.push(1),l.push(-1)))),_.y===o.y&&(_.y<=h&&(_.x<o.x?(a.push(t),a.push(s),a.push(2),a.push(-1)):(l.push(t),l.push(s),l.push(2),l.push(-1))),_.y>=r&&(_.x>o.x?(a.push(t),a.push(s),a.push(3),a.push(-1)):(l.push(t),l.push(s),l.push(3),l.push(-1)))),_=o}if(0===a.length||0===l.length)return;o.fillParent(s,l,a),o.fillParent(s,a,l);const u=[];o.calcDeltas(u,l,a),o.calcDeltas(u,a,l),o.addDeltas(u,s)}static fillParent(t,i,s){const e=s.length,n=i.length;for(let h=0;h<n;h+=4){const n=i[h],r=i[h+1],o=i[h+2],l=t[n][r-1],_=t[n][r];let u=8092,c=-1;for(let i=0;i<e;i+=4){if(s[i+2]!==o)continue;const e=s[i],n=s[i+1],h=t[e][n-1],r=t[e][n];switch(o){case 0:case 1:if(a(l.y,h.y,r.y)&&a(_.y,h.y,r.y)){const t=Math.abs(r.y-h.y);t<u&&(u=t,c=i)}break;case 2:case 3:if(a(l.x,h.x,r.x)&&a(_.x,h.x,r.x)){const t=Math.abs(r.x-h.x);t<u&&(u=t,c=i)}}}i[h+3]=c}}static calcDeltas(t,i,s){const e=i.length;for(let n=0;n<e;n+=4){const e=[],h=o.calcDelta(n,i,s,e);t.push(i[n]),t.push(i[n+1]),t.push(i[n+2]),t.push(h)}}static calcDelta(t,i,s,e){const n=i[t+3];if(-1===n)return 0;const h=e.length;return h>1&&e[h-2]===n?0:(e.push(n),o.calcDelta(n,s,i,e)+1)}static addDeltas(t,i){const s=t.length;let e=0;for(let i=0;i<s;i+=4){const s=t[i+3];s>e&&(e=s)}for(let n=0;n<s;n+=4){const s=i[t[n]],h=t[n+1],r=e-t[n+3];switch(t[n+2]){case 0:s[h-1].x-=r,s[h].x-=r,1===h&&(s[s.length-1].x-=r),h===s.length-1&&(s[0].x-=r);break;case 1:s[h-1].x+=r,s[h].x+=r,1===h&&(s[s.length-1].x+=r),h===s.length-1&&(s[0].x+=r);break;case 2:s[h-1].y-=r,s[h].y-=r,1===h&&(s[s.length-1].y-=r),h===s.length-1&&(s[0].y-=r);break;case 3:s[h-1].y+=r,s[h].y+=r,1===h&&(s[s.length-1].y+=r),h===s.length-1&&(s[0].y+=r)}}}}const a=(t,i,s)=>t>=i&&t<=s||t>=s&&t<=i},13195(t,i,s){s.d(i,{GW:()=>m,IU:()=>p,Jo:()=>r,MG:()=>h,Wh:()=>c,aA:()=>l,cP:()=>d,os:()=>_,p6:()=>y,pJ:()=>o,ru:()=>T,s3:()=>g,wV:()=>f,yM:()=>A,z0:()=>x});var e=s(95108),n=s(6774);const h=Number.POSITIVE_INFINITY,r=Math.PI,o=2*r,a=128/r,l=256/360,_=r/180,u=1/Math.LN2;function c(t,i){return(t%=i)>=0?t:t+i}function x(t){return c(t*a,256)}function f(t){return c(t*l,256)}function y(t){return Math.log(t)*u}function m(t,i,s){return t*(1-s)+i*s}function p(t){return 8+Math.max(16*(t-14),0)}function g(t,i,s){let e,n,h,r=0;for(const o of s){e=o.length;for(let s=1;s<e;++s)n=o[s-1],h=o[s],n.y>i!=h.y>i&&((h.x-n.x)*(i-n.y)-(h.y-n.y)*(t-n.x)>0?r++:r--)}return 0!==r}function T(t,i,s,n){let h,r,o,a;const l=n*n;for(const n of s){const s=n.length;if(!(s<2)){h=n[0].x,r=n[0].y;for(let _=1;_<s;++_){if(o=n[_].x,a=n[_].y,(0,e.Ng)(t,i,h,r,o,a)<l)return!0;h=o,r=a}}}return!1}function d(t,i){if(0===i||Number.isNaN(i))return t;const s=[],e=new n.bR(0,0),h=new n.bR(0,0),r=new n.bR(0,0);for(let o=0;o<t.length;o++){const a=t[o],l=[];for(let t=0;t<a.length;t++){const s=a[t-1],o=a[t],_=a[t+1];0===t?e.setCoords(0,0):e.assignSub(o,s).normalize().rightPerpendicular(),t===a.length-1?h.setCoords(0,0):h.assignSub(_,o).normalize().rightPerpendicular(),r.assignAdd(e,h).normalize();const u=r.x*h.x+r.y*h.y;0!==u&&r.scale(1/u),l.push(n.bR.add(o,r.scale(i)))}s.push(l)}return s}function A(t,i,s,e){const h=new n.bR(t[0],t[1]);if(h.scale(e),"viewport"===i){const t=-s*(Math.PI/180),i=Math.cos(t),e=Math.sin(t);h.rotate(i,e)}return h}},18989(t,i,s){s.d(i,{A:()=>e});class e{constructor(t=0,i=0,s=0,e=0){this.x=t,this.y=i,this.width=s,this.height=e}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},76213(t,i,s){s.d(i,{C2:()=>o,CQ:()=>e,DY:()=>n,GR:()=>p,Gh:()=>l,MZ:()=>x,Rm:()=>r,TB:()=>m,U5:()=>a,_M:()=>_,cp:()=>g,eG:()=>h,fq:()=>f,hM:()=>c,ie:()=>u,yv:()=>y});const e=512,n=29,h=24,r=3,o=4,a=6,l=1.05,_=3,u=3,c=4,x=1,f=10,y=1024,m=256,p=32,g=512}}]);
|