@arcgis/core 4.27.0-next.20230317 → 4.27.0-next.20230321
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/TimeExtent.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/05e47e78e258dd5ab6ea.js +1 -0
- package/assets/esri/core/workers/chunks/{b661d2c785333429aad3.js → 0b005e3502dd97562701.js} +1 -1
- package/assets/esri/core/workers/chunks/{8812629e07e5bf46caa7.js → 1d2271a36641f6834401.js} +1 -1
- package/assets/esri/core/workers/chunks/1d65a2bc91774fdbd690.js +1 -0
- package/assets/esri/core/workers/chunks/273a894ab44b76ee4488.js +1 -0
- package/assets/esri/core/workers/chunks/29ee4f14602caf6967e4.js +1 -0
- package/assets/esri/core/workers/chunks/{56ddde83f40cda0a8a5c.js → 2c0775541cfec9d43acb.js} +1 -1
- package/assets/esri/core/workers/chunks/{48a1b8be3c2a59c4c925.js → 32f9b488915a4a8864e5.js} +1 -1
- package/assets/esri/core/workers/chunks/{790d62ea3c90ca076095.js → 403c18eaa30673b096fe.js} +1 -1
- package/assets/esri/core/workers/chunks/41bbf58417f4085657f4.js +1 -0
- package/assets/esri/core/workers/chunks/{c36efbdd0a84fe851bbb.js → 433686dfda9e2ff1f98b.js} +1 -1
- package/assets/esri/core/workers/chunks/4be7647605300e07e843.js +1 -0
- package/assets/esri/core/workers/chunks/5cc99e9e974fec32b597.js +1 -0
- package/assets/esri/core/workers/chunks/6062bc79ebd5047a473a.js +1 -0
- package/assets/esri/core/workers/chunks/{57aa75a10fb8bb3fa517.js → 622139ef8f7181e48cd0.js} +1 -1
- package/assets/esri/core/workers/chunks/6b14673a4afd6ef81487.js +1 -0
- package/assets/esri/core/workers/chunks/70ea44365021b665c213.js +1 -0
- package/assets/esri/core/workers/chunks/{7727e6a4338c831f272f.js → 7570ec6a64a88ddc0fdd.js} +1 -1
- package/assets/esri/core/workers/chunks/81a6f4b43e047c3395c0.js +1 -0
- package/assets/esri/core/workers/chunks/87edeb09a948122fa030.js +1 -0
- package/assets/esri/core/workers/chunks/8daa0523d49653cc5861.js +1 -0
- package/assets/esri/core/workers/chunks/{3ff3d67f1bc6e2b2f48e.js → 90e12cff7672f3d92ced.js} +1 -1
- package/assets/esri/core/workers/chunks/{f150bd21c3b9e098da57.js → 92951b85676df776961f.js} +56 -56
- package/assets/esri/core/workers/chunks/983b26414cc46d9c3105.js +1 -0
- package/assets/esri/core/workers/chunks/{19355af765993931a7c0.js → 9b196a726c6d175ca60f.js} +1 -1
- package/assets/esri/core/workers/chunks/a27951dbe83c63f9d01a.js +1 -0
- package/assets/esri/core/workers/chunks/bc002e4dff8859571a7a.js +1 -0
- package/assets/esri/core/workers/chunks/bfc2b40f1892970281c6.js +1 -0
- package/assets/esri/core/workers/chunks/c162d1e27e779732d494.js +1 -0
- package/assets/esri/core/workers/chunks/c5d872adce711ec61ede.js +1 -0
- package/assets/esri/core/workers/chunks/c5dd23d11fa91b0f318e.js +1 -0
- package/assets/esri/core/workers/chunks/{e97c4beb3a6cf1d91310.js → c6c2f771bca0e303b5c0.js} +1 -1
- package/assets/esri/core/workers/chunks/c8f019d13f6b22481f2e.js +1 -0
- package/assets/esri/core/workers/chunks/d34dbb49508a95588423.js +1 -0
- package/assets/esri/core/workers/chunks/e637e47000f4dc48054d.js +1 -0
- package/assets/esri/core/workers/chunks/e7093d27a31345953dca.js +1 -0
- package/assets/esri/core/workers/chunks/f1ab86dbbd5b04e2a96c.js +1 -0
- package/assets/esri/core/workers/chunks/f85a01429959e60a8713.js +1 -0
- package/assets/esri/core/workers/chunks/ff9efa829497557ec26a.js +1 -0
- package/assets/esri/themes/base/widgets/_Bookmarks.scss +3 -0
- package/assets/esri/themes/base/widgets/_Editor.scss +18 -0
- package/assets/esri/themes/base/widgets/_ItemList.scss +13 -33
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_ar.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_bg.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_bs.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_ca.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_cs.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_da.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_de.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_el.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_es.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_et.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_fi.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_fr.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_he.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_hr.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_hu.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_id.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_it.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_ja.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_ko.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_lt.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_lv.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_nb.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_nl.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_pl.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_pt-BR.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_pt-PT.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_ro.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_ru.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_sk.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_sl.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_sr.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_sv.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_th.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_tr.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_uk.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_vi.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_zh-CN.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_zh-HK.json +1 -1
- package/assets/esri/widgets/Slice/t9n/Slice_zh-TW.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ar.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bg.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ca.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_cs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_da.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_de.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_el.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_es.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_et.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_he.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hu.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_id.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_it.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ja.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ko.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lt.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nb.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-BR.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-PT.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ro.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ru.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_th.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_tr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_uk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_vi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-CN.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-HK.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-TW.json +1 -1
- package/chunks/ColorMaterial.glsl.js +16 -14
- package/core/domUtils.js +1 -1
- package/core/maybe.js +1 -1
- package/core/urlUtils.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/interfaces.d.ts +12 -214
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/support/FieldsIndex.js +1 -1
- package/layers/support/fieldType.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/rasterFunctionConstants.js +1 -1
- package/layers/support/rasterFunctions/BaseRasterFunction.js +1 -1
- package/layers/support/rasterFunctions/CurvatureFunction.js +5 -0
- package/layers/support/rasterFunctions/CurvatureFunctionArguments.js +5 -0
- package/layers/support/rasterFunctions/SlopeFunction.js +1 -1
- package/layers/support/rasterFunctions/rasterFunctionHelper.js +1 -1
- package/layers/support/rasterFunctions/surfaceUtils.js +1 -1
- package/package.json +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/imagery/processor/curvatureProcessor.js +5 -0
- package/views/2d/engine/imagery/processor/rasterProcessor.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/support/BinStore.js +1 -1
- package/views/2d/layers/features/support/ClusterStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBFIndirect.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/environment/CloudsData.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateObjectSymbol3DAdapter.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/interfaces.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/support/buffer/InterleavedLayout.js +1 -1
- package/views/3d/support/buffer/glUtil.js +1 -1
- package/views/3d/support/buffer/workerHelper.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.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/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/tooltip/TransformTooltipInfos.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTransformRotate.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTransformScale.js +1 -1
- package/widgets/Bookmarks/css.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/Upload.js +5 -0
- package/widgets/Editor/UploadState.js +4 -0
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/{InputField.js → FieldInput.js} +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/FeatureForm/GroupInput.js +5 -0
- package/widgets/FeatureForm/css.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTemplates/ItemList.js +1 -1
- package/widgets/FeatureTemplates/TemplateItem.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/009348f65fab440f7752.js +0 -1
- package/assets/esri/core/workers/chunks/075ecd53fb229dfee53c.js +0 -1
- package/assets/esri/core/workers/chunks/1c77b92063ee36421914.js +0 -1
- package/assets/esri/core/workers/chunks/1ee774c3f29d8074da12.js +0 -1
- package/assets/esri/core/workers/chunks/262b6de5a29c713b4010.js +0 -1
- package/assets/esri/core/workers/chunks/281c0f936b5645a673ab.js +0 -1
- package/assets/esri/core/workers/chunks/2883a59fc1fc9e4d71af.js +0 -1
- package/assets/esri/core/workers/chunks/2e032a58ac6717313227.js +0 -1
- package/assets/esri/core/workers/chunks/4d4cbfe72835c0460b09.js +0 -1
- package/assets/esri/core/workers/chunks/5504dff4113dd74d2fa7.js +0 -1
- package/assets/esri/core/workers/chunks/5bded2588008117d0c35.js +0 -1
- package/assets/esri/core/workers/chunks/6caf8a0b49bd01906f32.js +0 -1
- package/assets/esri/core/workers/chunks/9cab04c71d8bccf0156d.js +0 -1
- package/assets/esri/core/workers/chunks/9f02a0670ad73718d8f9.js +0 -1
- package/assets/esri/core/workers/chunks/a265e454461edb306e2d.js +0 -1
- package/assets/esri/core/workers/chunks/a50ca44a62434bf18664.js +0 -1
- package/assets/esri/core/workers/chunks/bd090f9ec6cfe08e19a3.js +0 -1
- package/assets/esri/core/workers/chunks/c3338bdce8368731c4e9.js +0 -1
- package/assets/esri/core/workers/chunks/c54df59b2b3f73828a44.js +0 -1
- package/assets/esri/core/workers/chunks/ddebf3b5a131a6da5419.js +0 -1
- package/assets/esri/core/workers/chunks/de461c30aa24ec8bb212.js +0 -1
- package/assets/esri/core/workers/chunks/e23f56bee694a38da5b9.js +0 -1
- package/assets/esri/core/workers/chunks/ec73d16ef169adfc34fb.js +0 -1
- package/assets/esri/core/workers/chunks/ef884e2833868234c13c.js +0 -1
- package/assets/esri/core/workers/chunks/f3c99525fb1b0f719fe0.js +0 -1
- package/assets/esri/core/workers/chunks/fe314feede84dd688010.js +0 -1
- package/assets/esri/core/workers/chunks/ff15557dc7b74162ed75.js +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_ar.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_bg.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_bs.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_ca.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_cs.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_da.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_de.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_el.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_en.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_es.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_et.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_fi.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_fr.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_he.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_hr.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_hu.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_id.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_it.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_ja.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_ko.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_lt.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_lv.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_nb.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_nl.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_pl.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_pt-BR.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_pt-PT.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_ro.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_ru.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_sk.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_sl.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_sr.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_sv.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_th.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_tr.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_uk.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_vi.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_zh-CN.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_zh-HK.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_zh-TW.json +0 -1
- package/widgets/FeatureForm/InputField.d.ts +0 -4
- package/widgets/FeatureForm/InputFieldGroup.d.ts +0 -4
- package/widgets/FeatureForm/InputFieldGroup.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1482],{48853:(e,a,t)=>{t.d(a,{Qn:()=>m,iG:()=>l});var i,n=t(27535),r=t(17126);class s{}s.instance=new r.vF("Etc/UTC"),(i||(i={})).TimeZoneNotRecognised="TimeZoneNotRecognised";const o={[i.TimeZoneNotRecognised]:"Timezone identifier has not been recognised."};class d extends Error{constructor(e,a){super((0,n.Hy)(o[e],a)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,d)}}class l{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,a=1,t=1,i=0,n=0,s=0,o=0,d){if(isNaN(e)||isNaN(a)||isNaN(t)||isNaN(i)||isNaN(n)||isNaN(s)||isNaN(o))return null;let c=0;const u=r.ou.local(e,a).daysInMonth;t<1&&(c=t-1,t=1),t>u&&(c=t-u,t=u);let T=0;a>12?(T=a-12,a=12):a<1&&(T=a-1,a=1);let h=0;n>59?(h=n-59,n=59):n<0&&(h=n,n=0);let f=0;s>59?(f=s-59,s=59):s<0&&(f=s,s=0);let S=0;o>999?(S=o-999,o=999):o<0&&(S=o,o=0);let p=r.ou.fromObject({day:t,year:e,month:a,hour:i,minute:n,second:s,millisecond:o},{zone:m(d)});return 0!==T&&(p=p.plus({months:T})),0!==c&&(p=p.plus({days:c})),0!==h&&(p=p.plus({minutes:h})),0!==f&&(p=p.plus({seconds:f})),0!==S&&(p=p.plus({milliseconds:S})),new l(p)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,a){const t=m(a);return e.isUnknownTimeZone||t===s.instance?l.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,t):new l(e._date.setZone(a))}static dateJSToArcadeDate(e){return new l(r.ou.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,a="system"){return new l(r.ou.fromJSDate(e,{zone:a}))}static unknownEpochToArcadeDate(e){return new l(r.ou.fromMillis(e,{zone:s.instance}))}static unknownDateJSToArcadeDate(e){return new l(r.ou.fromMillis(e.getTime(),{zone:s.instance}))}static epochToArcadeDate(e,a="system"){return new l(r.ou.fromMillis(e,{zone:a}))}static dateTimeToArcadeDate(e){return new l(e)}changeTimeZone(e){const a=m(e);return l.dateTimeToArcadeDate(this._date.setZone(a))}static dateTimeAndZoneToArcadeDate(e,a){const t=m(a);return e.zone===s.instance||t===s.instance?l.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,t):new l(e.setZone(t))}static nowToArcadeDate(e){return new l(r.ou.fromJSDate(new Date,{zone:e}))}static nowUTCToArcadeDate(){return new l(r.ou.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===l.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===s.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"utc":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new l(this._date.plus(e))}diff(e,a="milliseconds"){return this._date.diff(e._date,a)[a]}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toFormat(e,a){return this._date.toFormat(e,a)}toJSDate(){return this._date.toJSDate()}toSQLString(){return"timestamp '"+this._date.toFormat("yyyy-LL-dd HH:mm:ss")+"'"}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new l(this._date.toUTC())}toLocal(){return new l(this._date.toLocal())}toString(){return this.toISOString(!0)}}function m(e){if(e instanceof r.ld)return e;if("system"===e.toLowerCase())return"system";if("utc"===e.toLowerCase())return"utc";if("unknown"===e.toLowerCase())return s.instance;if(/^[\+\-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){const a=r.Qf.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(a)return a}const a=r.vF.create(e);if(!a.isValid)throw new d(i.TimeZoneNotRecognised);return a}},85839:(e,a,t)=>{t.d(a,{nu:()=>r}),t(48853);var i=t(99514),n=(t(80216),t(17126),t(42799));class r{constructor(){this.dateTimeReferenceMetaData=null,this._fieldTimeZoneIndex={},this._fieldIndex=null,this._ianaPreferred=null,this._ianaTimeInfo=null,this._ianaEditFields=null,this._ianaLayerDateFields=null}static create(e,a){const t=new r;return t.dateTimeReferenceMetaData=a,t._fieldIndex=e instanceof i.Z?e:new i.Z(e),t}static createFromLayer(e){if(!e)return null;if(!e.fieldsIndex)return!e.declaredClass&&e.fields?r.create(e.fields,e):null;const a=new r;return a._fieldIndex=e.fieldsIndex,a.dateTimeReferenceMetaData={timeInfo:e?.timeInfo?.toJSON()??null,editFieldsInfo:e?.editFieldsInfo?.toJSON()??null,dateFieldsTimeReference:e?.dateFieldsTimeReference?.toJSON()??null,preferredTimeReference:e?.preferredTimeReference?.toJSON()??null,datesInUnknownTimezone:!0===e?.datesInUnknownTimezone},a}fieldTimeZone(e){const a=this._fieldIndex?.get(e);if(!a)return null;if("date"!==a.type&&"esriFieldTypeDate"!==a.type)return null;const t=this._fieldTimeZoneIndex[a.name];if(void 0!==t)return t;const i=[{field:this.dateTimeReferenceMetaData?.editFieldsInfo?.creationDateField,timeReference:this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.editFieldsInfo?.editDateField,timeReference:this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.timeInfo?.startTimeField,timeReference:this.dateTimeReferenceMetaData?.timeInfo?.timeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.timeInfo?.endTimeField,timeReference:this.dateTimeReferenceMetaData?.timeInfo?.timeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone}];for(const e of i)if(e.field===a.name){const t=this.convertToIANA(e.timeReference,e.isunknown);return this._fieldTimeZoneIndex[a.name]=t,t}const n=this.convertToIANA(this.dateTimeReferenceMetaData?.dateFieldsTimeReference,this.dateTimeReferenceMetaData?.datesInUnknownTimezone);return this._fieldTimeZoneIndex[a.name]=n,n}convertToIANA(e,a){return a?"unknown":function(e){return e?.timeZoneIANA?e?.timeZoneIANA:e?.timeZone?(0,n.G)(e,""):""}(e)}get layerPreferredTimeZone(){if(null!==this._ianaPreferred)return this._ianaPreferred;this._ianaPreferred="";const e=this.dateTimeReferenceMetaData?.preferredTimeReference;return this._ianaPreferred=this.convertToIANA(e,!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaPreferred}get layerTimeInfoTimeZone(){if(null!==this._ianaTimeInfo)return this._ianaTimeInfo;this._ianaTimeInfo="";const e=this.dateTimeReferenceMetaData?.timeInfo?.timeReference;return this._ianaTimeInfo=this.convertToIANA(e,!1),this._ianaTimeInfo}get layerEditFieldsTimeZone(){if(null!==this._ianaEditFields)return this._ianaEditFields;this._ianaEditFields="";const e=this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference;return this._ianaEditFields=this.convertToIANA(e,this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaEditFields}get layerDateFieldsTimeZone(){if(null!==this._ianaLayerDateFields)return this._ianaLayerDateFields;this._ianaLayerDateFields="";const e=this.dateTimeReferenceMetaData?.dateFieldsTimeReference;return this._ianaLayerDateFields=this.convertToIANA(e,!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaLayerDateFields}}},2368:(e,a,t)=>{t.d(a,{J:()=>m,j:()=>c});var i=t(43697),n=t(15923),r=(t(80442),t(22974)),s=(t(92604),t(70586)),o=t(31263),d=t(1153),l=t(52011);const m=e=>{let a=class extends e{clone(){const e=(0,s.s3)((0,d.vw)(this),"unable to clone instance of non-accessor class"),a=e.metadatas,t=e.store,i={},n=new Map;for(const e in a){const s=a[e],d=t?.originOf(e),l=s.clonable;if(s.readOnly||!1===l||d!==o.s3.USER&&d!==o.s3.DEFAULTS&&d!==o.s3.WEB_MAP&&d!==o.s3.WEB_SCENE)continue;const m=this[e];let c=null;c="function"==typeof l?l(m):"reference"===l?m:(0,r.Vo)(m),null!=m&&null==c||(d===o.s3.DEFAULTS?n.set(e,c):i[e]=c)}const l=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const e=(0,d.vw)(l)?.store;if(e)for(const[a,t]of n)e.set(a,t,o.s3.DEFAULTS)}return l}};return a=(0,i._)([(0,l.j)("esri.core.Clonable")],a),a};let c=class extends(m(n.Z)){};c=(0,i._)([(0,l.j)("esri.core.Clonable")],c)},1231:(e,a,t)=>{t.d(a,{Z:()=>S});var i,n=t(43697),r=t(35454),s=t(96674),o=t(5600),d=t(75215),l=(t(67676),t(80442),t(36030)),m=t(71715),c=t(52011),u=t(72729),T=t(86719);const h=new r.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=i=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:a}){let t=null;try{t=a?JSON.parse(a):null}catch(e){}return t?.value??null}readValueType(e,{description:a}){let t=null;try{t=a?JSON.parse(a):null}catch(e){}return t?h.fromJSON(t.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n._)([(0,o.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,n._)([(0,o.Cb)()],f.prototype,"description",void 0),(0,n._)([(0,m.r)("description")],f.prototype,"readDescription",null),(0,n._)([(0,o.Cb)({types:u.V5,json:{read:{reader:u.im},write:!0}})],f.prototype,"domain",void 0),(0,n._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,n._)([(0,o.Cb)({type:d.z8,json:{write:!0}})],f.prototype,"length",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,n._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,n._)([(0,l.J)(T.v)],f.prototype,"type",void 0),(0,n._)([(0,o.Cb)()],f.prototype,"valueType",void 0),(0,n._)([(0,m.r)("valueType",["description"])],f.prototype,"readValueType",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,n._)([(0,c.j)("esri.layers.support.Field")],f);const S=f},72729:(e,a,t)=>{t.d(a,{im:()=>k,V5:()=>C}),t(80442);var i,n=t(43697),r=t(22974),s=t(5600),o=(t(75215),t(36030)),d=t(52011),l=t(96674);t(67676);let m=i=class extends l.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],m.prototype,"code",void 0),m=i=(0,n._)([(0,d.j)("esri.layers.support.CodedValue")],m);const c=new(t(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends l.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.J)(c)],u.prototype,"type",void 0),u=(0,n._)([(0,d.j)("esri.layers.support.Domain")],u);const T=u;var h;let f=h=class extends T{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let a=null;if(this.codedValues){const t=String(e);this.codedValues.some((e=>(String(e.code)===t&&(a=e.name),!!a)))}return a}clone(){return new h({codedValues:(0,r.d9)(this.codedValues),name:this.name})}};(0,n._)([(0,s.Cb)({type:[m],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,n._)([(0,o.J)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=h=(0,n._)([(0,d.j)("esri.layers.support.CodedValueDomain")],f);const S=f;var p;t(92604),t(20102);let A=p=class extends T{constructor(e){super(e),this.type="inherited"}clone(){return new p}};(0,n._)([(0,o.J)({inherited:"inherited"})],A.prototype,"type",void 0),A=p=(0,n._)([(0,d.j)("esri.layers.support.InheritedDomain")],A);const y=A;var g;let _=g=class extends T{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new g({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,a)=>a.range&&a.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,a,t){a[t]=[this.minValue||0,e]}}}})],_.prototype,"maxValue",void 0),(0,n._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,a)=>a.range&&a.range[0]},write:{target:"range",writer(e,a,t){a[t]=[e,this.maxValue||0]}}}})],_.prototype,"minValue",void 0),(0,n._)([(0,o.J)({range:"range"})],_.prototype,"type",void 0),_=g=(0,n._)([(0,d.j)("esri.layers.support.RangeDomain")],_);const w=_,C={key:"type",base:T,typeMap:{range:_,"coded-value":S,inherited:y}};function k(e){if(!e||!e.type)return null;switch(e.type){case"range":return w.fromJSON(e);case"codedValue":return S.fromJSON(e);case"inherited":return y.fromJSON(e)}return null}},86719:(e,a,t)=>{t.d(a,{v:()=>i});const i=new(t(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},80216:(e,a,t)=>{t.d(a,{Z:()=>u});var i=t(43697),n=t(2368),r=t(96674),s=t(5600),o=(t(75215),t(67676),t(80442),t(71715)),d=t(52011),l=t(30556),m=t(42799);let c=class extends((0,n.J)(r.wq)){constructor(e){super(e),this.legacy=null,this.timeZone="system"}readLegacy(e,a){const{timeZone:t,respectsDaylightSaving:i}=a;return{timeZone:t,respectsDaylightSaving:i}}readTimeZone(e,a){return"timeZoneIANA"in a?a.timeZoneIANA:(0,m.G)(a)}writeTimeZone(e,a){a.timeZoneIANA=e}equals(e){return null!=e&&null!=this.timeZone&&null!=e.timeZone&&this.timeZone===e.timeZone}};(0,i._)([(0,s.Cb)()],c.prototype,"legacy",void 0),(0,i._)([(0,o.r)("legacy",["timeZone"])],c.prototype,"readLegacy",null),(0,i._)([(0,s.Cb)({type:String,nonNullable:!0})],c.prototype,"timeZone",void 0),(0,i._)([(0,o.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],c.prototype,"readTimeZone",null),(0,i._)([(0,l.c)("timeZone")],c.prototype,"writeTimeZone",null),c=(0,i._)([(0,d.j)("esri.time.TimeReference")],c);const u=c},42799:(e,a,t)=>{t.d(a,{G:()=>r});const i=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var n=t(17126);function r(e,a="system"){if(!e||!i.has(e.timeZone))return a;const t=i.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?t:function(e){const a=n.ou.local().setZone(e),t=Math.min(a.set({month:1,day:1}).offset,a.set({month:5}).offset);return 0===t?"Etc/UTC":`Etc/GMT${n.Qf.instance(-t).formatOffset(0,"narrow")}`}(t)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1482],{48853:(e,a,t)=>{t.d(a,{Qn:()=>m,iG:()=>l});var i,n=t(27535),r=t(17126);class s{}s.instance=new r.vF("Etc/UTC"),(i||(i={})).TimeZoneNotRecognised="TimeZoneNotRecognised";const o={[i.TimeZoneNotRecognised]:"Timezone identifier has not been recognised."};class d extends Error{constructor(e,a){super((0,n.Hy)(o[e],a)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,d)}}class l{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,a=1,t=1,i=0,n=0,s=0,o=0,d){if(isNaN(e)||isNaN(a)||isNaN(t)||isNaN(i)||isNaN(n)||isNaN(s)||isNaN(o))return null;let c=0;const u=r.ou.local(e,a).daysInMonth;t<1&&(c=t-1,t=1),t>u&&(c=t-u,t=u);let T=0;a>12?(T=a-12,a=12):a<1&&(T=a-1,a=1);let h=0;n>59?(h=n-59,n=59):n<0&&(h=n,n=0);let f=0;s>59?(f=s-59,s=59):s<0&&(f=s,s=0);let p=0;o>999?(p=o-999,o=999):o<0&&(p=o,o=0);let S=r.ou.fromObject({day:t,year:e,month:a,hour:i,minute:n,second:s,millisecond:o},{zone:m(d)});return 0!==T&&(S=S.plus({months:T})),0!==c&&(S=S.plus({days:c})),0!==h&&(S=S.plus({minutes:h})),0!==f&&(S=S.plus({seconds:f})),0!==p&&(S=S.plus({milliseconds:p})),new l(S)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,a){const t=m(a);return e.isUnknownTimeZone||t===s.instance?l.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,t):new l(e._date.setZone(a))}static dateJSToArcadeDate(e){return new l(r.ou.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,a="system"){return new l(r.ou.fromJSDate(e,{zone:a}))}static unknownEpochToArcadeDate(e){return new l(r.ou.fromMillis(e,{zone:s.instance}))}static unknownDateJSToArcadeDate(e){return new l(r.ou.fromMillis(e.getTime(),{zone:s.instance}))}static epochToArcadeDate(e,a="system"){return new l(r.ou.fromMillis(e,{zone:a}))}static dateTimeToArcadeDate(e){return new l(e)}changeTimeZone(e){const a=m(e);return l.dateTimeToArcadeDate(this._date.setZone(a))}static dateTimeAndZoneToArcadeDate(e,a){const t=m(a);return e.zone===s.instance||t===s.instance?l.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,t):new l(e.setZone(t))}static nowToArcadeDate(e){return new l(r.ou.fromJSDate(new Date,{zone:e}))}static nowUTCToArcadeDate(){return new l(r.ou.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===l.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===s.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"utc":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new l(this._date.plus(e))}diff(e,a="milliseconds"){return this._date.diff(e._date,a)[a]}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toFormat(e,a){return this._date.toFormat(e,a)}toJSDate(){return this._date.toJSDate()}toSQLString(){return"timestamp '"+this._date.toFormat("yyyy-LL-dd HH:mm:ss")+"'"}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new l(this._date.toUTC())}toLocal(){return new l(this._date.toLocal())}toString(){return this.toISOString(!0)}}function m(e){if(e instanceof r.ld)return e;if("system"===e.toLowerCase())return"system";if("utc"===e.toLowerCase())return"utc";if("unknown"===e.toLowerCase())return s.instance;if(/^[\+\-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){const a=r.Qf.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(a)return a}const a=r.vF.create(e);if(!a.isValid)throw new d(i.TimeZoneNotRecognised);return a}},85839:(e,a,t)=>{t.d(a,{nu:()=>r}),t(48853);var i=t(99514),n=(t(80216),t(17126),t(42799));class r{constructor(){this.dateTimeReferenceMetaData=null,this._fieldTimeZoneIndex={},this._fieldIndex=null,this._ianaPreferred=null,this._ianaTimeInfo=null,this._ianaEditFields=null,this._ianaLayerDateFields=null}static create(e,a){const t=new r;return t.dateTimeReferenceMetaData=a,t._fieldIndex=e instanceof i.Z?e:new i.Z(e),t}static createFromLayer(e){if(!e)return null;if(!e.fieldsIndex)return!e.declaredClass&&e.fields?r.create(e.fields,e):null;const a=new r;return a._fieldIndex=e.fieldsIndex,a.dateTimeReferenceMetaData={timeInfo:e?.timeInfo?.toJSON()??null,editFieldsInfo:e?.editFieldsInfo?.toJSON()??null,dateFieldsTimeReference:e?.dateFieldsTimeReference?.toJSON()??null,preferredTimeReference:e?.preferredTimeReference?.toJSON()??null,datesInUnknownTimezone:!0===e?.datesInUnknownTimezone},a}fieldTimeZone(e){const a=this._fieldIndex?.get(e);if(!a)return null;if("date"!==a.type&&"esriFieldTypeDate"!==a.type)return null;const t=this._fieldTimeZoneIndex[a.name];if(void 0!==t)return t;const i=[{field:this.dateTimeReferenceMetaData?.editFieldsInfo?.creationDateField,timeReference:this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.editFieldsInfo?.editDateField,timeReference:this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.timeInfo?.startTimeField,timeReference:this.dateTimeReferenceMetaData?.timeInfo?.timeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.timeInfo?.endTimeField,timeReference:this.dateTimeReferenceMetaData?.timeInfo?.timeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone}];for(const e of i)if(e.field===a.name){const t=this.convertToIANA(e.timeReference,e.isunknown);return this._fieldTimeZoneIndex[a.name]=t,t}const n=this.convertToIANA(this.dateTimeReferenceMetaData?.dateFieldsTimeReference,this.dateTimeReferenceMetaData?.datesInUnknownTimezone);return this._fieldTimeZoneIndex[a.name]=n,n}convertToIANA(e,a){return a?"unknown":function(e){return e?.timeZoneIANA?e?.timeZoneIANA:e?.timeZone?(0,n.G)(e,""):""}(e)}get layerPreferredTimeZone(){if(null!==this._ianaPreferred)return this._ianaPreferred;this._ianaPreferred="";const e=this.dateTimeReferenceMetaData?.preferredTimeReference;return this._ianaPreferred=this.convertToIANA(e,!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaPreferred}get layerTimeInfoTimeZone(){if(null!==this._ianaTimeInfo)return this._ianaTimeInfo;this._ianaTimeInfo="";const e=this.dateTimeReferenceMetaData?.timeInfo?.timeReference;return this._ianaTimeInfo=this.convertToIANA(e,!1),this._ianaTimeInfo}get layerEditFieldsTimeZone(){if(null!==this._ianaEditFields)return this._ianaEditFields;this._ianaEditFields="";const e=this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference;return this._ianaEditFields=this.convertToIANA(e,this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaEditFields}get layerDateFieldsTimeZone(){if(null!==this._ianaLayerDateFields)return this._ianaLayerDateFields;this._ianaLayerDateFields="";const e=this.dateTimeReferenceMetaData?.dateFieldsTimeReference;return this._ianaLayerDateFields=this.convertToIANA(e,!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaLayerDateFields}}},2368:(e,a,t)=>{t.d(a,{J:()=>m,j:()=>c});var i=t(43697),n=t(15923),r=(t(80442),t(22974)),s=(t(92604),t(70586)),o=t(31263),d=t(1153),l=t(52011);const m=e=>{let a=class extends e{clone(){const e=(0,s.s3)((0,d.vw)(this),"unable to clone instance of non-accessor class"),a=e.metadatas,t=e.store,i={},n=new Map;for(const e in a){const s=a[e],d=t?.originOf(e),l=s.clonable;if(s.readOnly||!1===l||d!==o.s3.USER&&d!==o.s3.DEFAULTS&&d!==o.s3.WEB_MAP&&d!==o.s3.WEB_SCENE)continue;const m=this[e];let c=null;c="function"==typeof l?l(m):"reference"===l?m:(0,r.Vo)(m),null!=m&&null==c||(d===o.s3.DEFAULTS?n.set(e,c):i[e]=c)}const l=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const e=(0,d.vw)(l)?.store;if(e)for(const[a,t]of n)e.set(a,t,o.s3.DEFAULTS)}return l}};return a=(0,i._)([(0,l.j)("esri.core.Clonable")],a),a};let c=class extends(m(n.Z)){};c=(0,i._)([(0,l.j)("esri.core.Clonable")],c)},1231:(e,a,t)=>{t.d(a,{Z:()=>p});var i,n=t(43697),r=t(35454),s=t(96674),o=t(5600),d=t(75215),l=(t(67676),t(80442),t(36030)),m=t(71715),c=t(52011),u=t(72729),T=t(86719);const h=new r.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=i=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:a}){let t=null;try{t=a?JSON.parse(a):null}catch(e){}return t?.value??null}readValueType(e,{description:a}){let t=null;try{t=a?JSON.parse(a):null}catch(e){}return t?h.fromJSON(t.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n._)([(0,o.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,n._)([(0,o.Cb)()],f.prototype,"description",void 0),(0,n._)([(0,m.r)("description")],f.prototype,"readDescription",null),(0,n._)([(0,o.Cb)({types:u.V5,json:{read:{reader:u.im},write:!0}})],f.prototype,"domain",void 0),(0,n._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,n._)([(0,o.Cb)({type:d.z8,json:{write:!0}})],f.prototype,"length",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,n._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,n._)([(0,l.J)(T.v)],f.prototype,"type",void 0),(0,n._)([(0,o.Cb)()],f.prototype,"valueType",void 0),(0,n._)([(0,m.r)("valueType",["description"])],f.prototype,"readValueType",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,n._)([(0,c.j)("esri.layers.support.Field")],f);const p=f},72729:(e,a,t)=>{t.d(a,{im:()=>k,V5:()=>C}),t(80442);var i,n=t(43697),r=t(22974),s=t(5600),o=(t(75215),t(36030)),d=t(52011),l=t(96674);t(67676);let m=i=class extends l.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],m.prototype,"code",void 0),m=i=(0,n._)([(0,d.j)("esri.layers.support.CodedValue")],m);const c=new(t(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends l.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.J)(c)],u.prototype,"type",void 0),u=(0,n._)([(0,d.j)("esri.layers.support.Domain")],u);const T=u;var h;let f=h=class extends T{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let a=null;if(this.codedValues){const t=String(e);this.codedValues.some((e=>(String(e.code)===t&&(a=e.name),!!a)))}return a}clone(){return new h({codedValues:(0,r.d9)(this.codedValues),name:this.name})}};(0,n._)([(0,s.Cb)({type:[m],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,n._)([(0,o.J)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=h=(0,n._)([(0,d.j)("esri.layers.support.CodedValueDomain")],f);const p=f;var S;t(92604),t(20102);let y=S=class extends T{constructor(e){super(e),this.type="inherited"}clone(){return new S}};(0,n._)([(0,o.J)({inherited:"inherited"})],y.prototype,"type",void 0),y=S=(0,n._)([(0,d.j)("esri.layers.support.InheritedDomain")],y);const A=y;var g;let _=g=class extends T{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new g({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,a)=>a.range&&a.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,a,t){a[t]=[this.minValue||0,e]}}}})],_.prototype,"maxValue",void 0),(0,n._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,a)=>a.range&&a.range[0]},write:{target:"range",writer(e,a,t){a[t]=[e,this.maxValue||0]}}}})],_.prototype,"minValue",void 0),(0,n._)([(0,o.J)({range:"range"})],_.prototype,"type",void 0),_=g=(0,n._)([(0,d.j)("esri.layers.support.RangeDomain")],_);const w=_,C={key:"type",base:T,typeMap:{range:_,"coded-value":p,inherited:A}};function k(e){if(!e||!e.type)return null;switch(e.type){case"range":return w.fromJSON(e);case"codedValue":return p.fromJSON(e);case"inherited":return A.fromJSON(e)}return null}},86719:(e,a,t)=>{t.d(a,{v:()=>i});const i=new(t(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},80216:(e,a,t)=>{t.d(a,{Z:()=>u});var i=t(43697),n=t(2368),r=t(96674),s=t(5600),o=(t(75215),t(67676),t(80442),t(71715)),d=t(52011),l=t(30556),m=t(42799);let c=class extends((0,n.J)(r.wq)){constructor(e){super(e),this.legacy=null,this.timeZone="system"}readLegacy(e,a){const{timeZone:t,respectsDaylightSaving:i}=a;return{timeZone:t,respectsDaylightSaving:i}}readTimeZone(e,a){return"timeZoneIANA"in a?a.timeZoneIANA:(0,m.G)(a)}writeTimeZone(e,a){a.timeZoneIANA=e}equals(e){return null!=e&&null!=this.timeZone&&null!=e.timeZone&&this.timeZone===e.timeZone}};(0,i._)([(0,s.Cb)()],c.prototype,"legacy",void 0),(0,i._)([(0,o.r)("legacy",["timeZone"])],c.prototype,"readLegacy",null),(0,i._)([(0,s.Cb)({type:String,nonNullable:!0})],c.prototype,"timeZone",void 0),(0,i._)([(0,o.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],c.prototype,"readTimeZone",null),(0,i._)([(0,l.c)("timeZone")],c.prototype,"writeTimeZone",null),c=(0,i._)([(0,d.j)("esri.time.TimeReference")],c);const u=c},42799:(e,a,t)=>{t.d(a,{G:()=>r});const i=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var n=t(17126);function r(e,a="system"){if(!e||!i.has(e.timeZone))return a;const t=i.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?t:function(e){const a=n.ou.local().setZone(e),t=Math.min(a.set({month:1,day:1}).offset,a.set({month:5}).offset);return 0===t?"Etc/UTC":`Etc/GMT${n.Qf.instance(-t).formatOffset(0,"narrow")}`}(t)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2462],{38171:(e,t,s)=>{s.d(t,{Z:()=>f});var r=s(43697),n=s(66577),i=s(51773),l=s(9790),o=s(2368),a=s(96674),u=s(99001),h=s(5600),c=(s(75215),s(67676),s(80442),s(52011)),d=s(33955);function p(e){if(null==e)return null;const t={};for(const s in e){const r=e[s];r&&(t[s]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let m=class extends((0,o.J)(a.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,u.D)(),configurable:!0})}normalizeCtorArgs(e,t,s,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:s,popupTemplate:r}}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),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(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 s=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",s,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:p(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){null!=this.geometry&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,s,r){if(!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:s};"attributes"===e&&(n.attributeName=r),this.layer.graphicChanged(n)}};(0,r._)([(0,h.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const s in e){const r=(0,d.im)(e[s]);r&&(t[s]=r)}return 0!==Object.keys(t).length?t:null}}})],m.prototype,"aggregateGeometries",null),(0,r._)([(0,h.Cb)({value:null})],m.prototype,"attributes",null),(0,r._)([(0,h.Cb)({value:null,types:n.qM,json:{read:d.im}})],m.prototype,"geometry",null),(0,r._)([(0,h.Cb)({type:Boolean})],m.prototype,"isAggregate",void 0),(0,r._)([(0,h.Cb)({clonable:"reference"})],m.prototype,"layer",void 0),(0,r._)([(0,h.Cb)({type:i.Z})],m.prototype,"popupTemplate",void 0),(0,r._)([(0,h.Cb)({clonable:"reference"})],m.prototype,"sourceLayer",void 0),(0,r._)([(0,h.Cb)({value:null,types:l.LB})],m.prototype,"symbol",null),(0,r._)([(0,h.Cb)({type:Boolean,value:!0})],m.prototype,"visible",null),m=(0,r._)([(0,c.j)("esri.Graphic")],m),(m||(m={})).generateUID=u.D;const f=m},92835:(e,t,s)=>{s.d(t,{Z:()=>f});var r,n=s(43697),i=s(96674),l=s(70586),o=s(35463),a=s(5600),u=(s(75215),s(67676),s(80442),s(71715)),h=s(52011),c=s(30556);let d=r=class extends i.wq{static get allTime(){return p}static get empty(){return m}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=null!=this.start?this.start.getTime():this.start,s=null!=this.end?this.end.getTime():this.end,r=null!=e.start?e.start.getTime():e.start,n=null!=e.end?e.end.getTime():e.end;return t===r&&s===n}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,l.yw)(this.start,(t=>(0,o.JE)(t,e))),s=(0,l.yw)(this.end,(t=>{const s=(0,o.JE)(t,e);return t.getTime()===s.getTime()?s:(0,o.Nm)(s,1,e)}));return new r({start:t,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let l,o;if(n>=t&&n<=s?l=n:t>=n&&t<=i&&(l=t),s>=n&&s<=i?o=s:i>=t&&i<=s&&(o=i),null!=l&&null!=o&&!isNaN(l)&&!isNaN(o)){const e=new r;return e.start=l===-1/0?null:new Date(l),e.end=o===1/0?null:new Date(o),e}return r.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const s=new r,{start:n,end:i}=this;return null!=n&&(s.start=(0,o.Nm)(n,e,t)),null!=i&&(s.end=(0,o.Nm)(i,e,t)),s}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,s=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:s})}};(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,u.r)("end")],d.prototype,"readEnd",null),(0,n._)([(0,c.c)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,u.r)("start")],d.prototype,"readStart",null),(0,n._)([(0,c.c)("start")],d.prototype,"writeStart",null),d=r=(0,n._)([(0,h.j)("esri.TimeExtent")],d);const p=new d,m=new d({start:void 0,end:void 0}),f=d},84552:(e,t,s)=>{s.d(t,{Z:()=>d});var r=s(43697),n=s(2368),i=s(96674),l=s(35463),o=s(5600),a=(s(75215),s(67676),s(80442),s(36030)),u=s(52011),h=s(78981);let c=class extends((0,n.J)(i.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,l.rJ)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,a.J)(h.v,{nonNullable:!0})],c.prototype,"unit",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,r._)([(0,u.j)("esri.TimeInterval")],c);const d=c},5732:(e,t,s)=>{s.d(t,{c:()=>r});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}},46791:(e,t,s)=>{s.d(t,{Z:()=>N});var r,n=s(43697),i=s(3894),l=s(32448),o=s(22974),a=s(70586),u=s(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(r||(r={}));var h,c=s(1654),d=s(75215),p=s(58971),m=s(5600),f=s(52421),y=s(52011),g=s(10661);const b=new u.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),_=()=>{};function v(e){return e?e instanceof A?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function w(e){if(e&&e.length)return e[0]}function x(e,t,s,r){const n=Math.min(e.length-s,t.length-r);let i=0;for(;i<n&&e[s+i]===t[r+i];)i++;return i}function C(e,t,s,r){t&&t.forEach(((t,n,i)=>{e.push(t),C(e,s.call(r,t,n,i),s,r)}))}const E=new Set,I=new Set,S=new Set,O=new Map;let T=0,A=h=class extends l.Z.EventedAccessor{static isCollection(e){return null!=e&&e instanceof h}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new g.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:T++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof h?{items:e}:e:{}}destroy(){this._removeAllRaw()}*[Symbol.iterator](){yield*this.items}get items(){return(0,p.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(r.ADD)||(this._splice(0,this.length,v(e)),this._emitAfterChanges(r.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,s={removed:!1,callback:t};return e.push(s),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=_,s.removed=!0,e.splice(e.indexOf(s),1)}}}return this._emitter.on(e,t)}once(e,t){const s=this.on(e,t);return{remove(){s.remove()}}}add(e,t){if((0,p.it)(this._observable),this._emitBeforeChanges(r.ADD))return this;const s=this.getNextIndex(t??null);return this._splice(s,0,[e]),this._emitAfterChanges(r.ADD),this}addMany(e,t=this._items.length){if((0,p.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(r.ADD))return this;const s=this.getNextIndex(t);return this._splice(s,0,v(e)),this._emitAfterChanges(r.ADD),this}at(e){if((0,p.it)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return[];const e=this._removeAllRaw();return this._emitAfterChanges(r.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.it)(this._observable),this._createNewInstance({items:this._items.map(o.d9)})}concat(...e){(0,p.it)(this._observable);const t=e.map(v);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const s=(0,a.j0)(this._splice(0,this.length)),n=s.length;for(let r=0;r<n;r++)e.call(t,s[r],r,s);this._emitAfterChanges(r.REMOVE)}every(e,t){return(0,p.it)(this._observable),this._items.every(e,t)}filter(e,t){let s;return(0,p.it)(this._observable),s=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:s})}find(e,t){return(0,p.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,p.it)(this._observable);const s=[];return C(s,this,e,t),new h(s)}forEach(e,t){return(0,p.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.it)(this._observable),this._items[e]}getNextIndex(e){(0,p.it)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.it)(this._observable);const s=this._items.map(e,t);return new h({items:s})}reorder(e,t=this.length-1){(0,p.it)(this._observable);const s=this.indexOf(e);if(-1!==s){if(t<0?t=0:t>=this.length&&(t=this.length-1),s!==t){if(this._emitBeforeChanges(r.MOVE))return e;this._splice(s,1),this._splice(t,0,[e]),this._emitAfterChanges(r.MOVE)}return e}}pop(){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(this.length-1,1));return this._emitAfterChanges(r.REMOVE),e}push(...e){return(0,p.it)(this._observable),this._emitBeforeChanges(r.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(r.ADD)),this.length}reduce(e,t){(0,p.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(e,t):s.reduce(e)}reduceRight(e,t){(0,p.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(e,t):s.reduceRight(e)}remove(e){return(0,p.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(r.REMOVE))return;const t=w(this._splice(e,1));return this._emitAfterChanges(r.REMOVE),t}removeMany(e){if((0,p.it)(this._observable),!e||!e.length||this._emitBeforeChanges(r.REMOVE))return[];const t=e instanceof h?e.toArray():e,s=this._items,n=[],i=t.length;for(let e=0;e<i;e++){const r=t[e],i=s.indexOf(r);if(i>-1){const r=1+x(t,s,e+1,i+1),l=this._splice(i,r);l&&l.length>0&&n.push.apply(n,l),e+=r-1}}return this._emitAfterChanges(r.REMOVE),n}reverse(){if((0,p.it)(this._observable),this._emitBeforeChanges(r.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(r.MOVE),this}shift(){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(0,1));return this._emitAfterChanges(r.REMOVE),e}slice(e=0,t=this.length){return(0,p.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.it)(this._observable),this._items.some(e,t)}sort(e){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.MOVE))return this;const t=(0,a.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(r.MOVE),this}splice(e,t,...s){(0,p.it)(this._observable);const n=(t?r.REMOVE:0)|(s.length?r.ADD:0);if(this._emitBeforeChanges(n))return[];const i=this._splice(e,t,s)||[];return this._emitAfterChanges(n),i}toArray(){return(0,p.it)(this._observable),this._items.slice()}toJSON(){return(0,p.it)(this._observable),this.toArray()}toLocaleString(){return(0,p.it)(this._observable),this._items.toLocaleString()}toString(){return(0,p.it)(this._observable),this._items.toString()}unshift(...e){return(0,p.it)(this._observable),!e.length||this._emitBeforeChanges(r.ADD)||(this._splice(0,0,e),this._emitAfterChanges(r.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,s){const r=this._items,n=this.itemType;let i,l;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,c.Os)((()=>this._dispatchChange()))),t){if(l=r.splice(e,t),this.hasEventListener("before-remove")){const t=b.acquire();t.target=this,t.cancellable=!0;for(let s=0,n=l.length;s<n;s++)i=l[s],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(l.splice(s,1),r.splice(e,0,i),e+=1,s-=1,n-=1);b.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b.acquire();e.target=this,e.cancellable=!1;const t=l.length;for(let s=0;s<t;s++)e.reset(l[s]),this.emit("after-remove",e);b.release(e)}}if(s&&s.length){if(n){const e=[];for(const t of s){const s=n.ensureType(t);null==s&&null!=t||e.push(s)}s=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),l=e===this.length;if(t||i){const n=b.acquire();n.target=this,n.cancellable=!0;const o=b.acquire();o.target=this,o.cancellable=!1;for(const a of s)t?(n.reset(a),this.emit("before-add",n),n.defaultPrevented||(l?r.push(a):r.splice(e++,0,a),this._set("length",r.length),i&&(o.reset(a),this.emit("after-add",o)))):(l?r.push(a):r.splice(e++,0,a),this._set("length",r.length),o.reset(a),this.emit("after-add",o));b.release(o),b.release(n)}else{if(l)for(const e of s)r.push(e);else r.splice(e,0,...s);this._set("length",r.length)}}return(s&&s.length||l&&l.length)&&this._notifyChangeEvent(s,l),l}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const s=b.acquire();s.target=this,s.cancellable=!0,s.type=e,this.emit("before-changes",s),t=s.defaultPrevented,b.release(s)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;E.clear(),I.clear(),S.clear();for(const{added:t,removed:s}of e){if(t)if(0===S.size&&0===I.size)for(const e of t)E.add(e);else for(const e of t)I.has(e)?(S.add(e),I.delete(e)):S.has(e)||E.add(e);if(s)if(0===S.size&&0===E.size)for(const e of s)I.add(e);else for(const e of s)E.has(e)?E.delete(e):(S.delete(e),I.add(e))}const s=i.Z.acquire();E.forEach((e=>{s.push(e)}));const r=i.Z.acquire();I.forEach((e=>{r.push(e)}));const n=this._items,l=t.items,o=i.Z.acquire();if(S.forEach((e=>{l.indexOf(e)!==n.indexOf(e)&&o.push(e)})),t.listeners&&(s.length||r.length||o.length)){const e={target:this,added:s,removed:r,moved:o},n=t.listeners.length;for(let s=0;s<n;s++){const r=t.listeners[s];r.removed||r.callback.call(this,e)}}i.Z.release(s),i.Z.release(r),i.Z.release(o)}E.clear(),I.clear(),S.clear()}};A.ofType=e=>{if(!e)return h;if(O.has(e))return O.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const s in e.typeMap){const r=e.typeMap[s].prototype.declaredClass;t?t+=` | ${r}`:t=r}let s=class extends h{};return(0,n._)([(0,f.c)({Type:e,ensureType:"function"==typeof e?(0,d.se)(e):(0,d.N7)(e)})],s.prototype,"itemType",void 0),s=(0,n._)([(0,y.j)(`esri.core.Collection<${t}>`)],s),O.set(e,s),s},(0,n._)([(0,m.Cb)()],A.prototype,"length",void 0),(0,n._)([(0,m.Cb)()],A.prototype,"items",null),A=h=(0,n._)([(0,y.j)("esri.core.Collection")],A);const N=A},57435:(e,t,s)=>{s.d(t,{Z:()=>u});var r=s(43697),n=s(46791),i=(s(80442),s(20102),s(92604),s(26258),s(87538)),l=s(5600),o=s(52011);let a=class extends n.Z{constructor(e){super(e),this.getCollections=null}initialize(){this.own((0,i.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const s of e)null!=s&&(t=this._processCollection(t,s));this.splice(t,this.length)}_createNewInstance(e){return new n.Z(e)}_processCollection(e,t){if(!t)return e;const s=this.itemFilterFunction??(e=>!!e);for(const r of t)if(r){if(s(r)){const t=this.indexOf(r,e);t>=0?t!==e&&this.reorder(r,e):this.add(r,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(r);if(Array.isArray(t))for(const s of t)e=this._processCollection(e,s);else e=this._processCollection(e,t)}}return e}};(0,r._)([(0,l.Cb)()],a.prototype,"getCollections",void 0),(0,r._)([(0,l.Cb)()],a.prototype,"getChildrenFunction",void 0),(0,r._)([(0,l.Cb)()],a.prototype,"itemFilterFunction",void 0),a=(0,r._)([(0,o.j)("esri.core.CollectionFlattener")],a);const u=a},3920:(e,t,s)=>{s.d(t,{p:()=>u,r:()=>h});var r=s(43697),n=s(15923),i=s(61247),l=s(5600),o=s(52011),a=s(72762);const u=e=>{let t=class extends e{constructor(){super(...arguments),this._handles=new i.Z,this._updatingHandles=new a.t}destroy(){this.destroyed||(this._handles.destroy(),this._updatingHandles.destroy())}get handles(){return this._handles}get updatingHandles(){return this._updatingHandles}};return(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,r._)([(0,o.j)("esri.core.HandleOwner")],t),t};let h=class extends(u(n.Z)){};h=(0,r._)([(0,o.j)("esri.core.HandleOwner")],h)},52421:(e,t,s)=>{function r(e){return(t,s)=>{t[s]=e}}s.d(t,{c:()=>r})},17445:(e,t,s)=>{s.d(t,{N1:()=>d,YP:()=>a,Z_:()=>f,gx:()=>u,nn:()=>y,on:()=>c,tX:()=>g});var r=s(91460),n=s(50758),i=s(70586),l=s(95330),o=s(26258);function a(e,t,s={}){return h(e,t,s,p)}function u(e,t,s={}){return h(e,t,s,m)}function h(e,t,s={},r){let n=null;const l=s.once?(e,s)=>{r(e)&&((0,i.hw)(n),t(e,s))}:(e,s)=>{r(e)&&t(e,s)};if(n=(0,o.aQ)(e,l,s.sync,s.equals),s.initial){const t=e();l(t,t)}return n}function c(e,t,s,l={}){let o=null,u=null,h=null;function c(){o&&u&&(u.remove(),l.onListenerRemove?.(o),o=null,u=null)}function d(e){l.once&&l.once&&(0,i.hw)(h),s(e)}const p=a(e,((e,s)=>{c(),(0,r.vT)(e)&&(o=e,u=(0,r.on)(e,t,d),l.onListenerAdd?.(e))}),{sync:l.sync,initial:!0});return h=(0,n.kB)((()=>{p.remove(),c()})),h}function d(e,t){return function(e,t,s){if((0,l.Hc)(s))return Promise.reject((0,l.zE)());const r=e();if(t?.(r))return Promise.resolve(r);let o=null;function a(){o=(0,i.hw)(o)}return new Promise(((r,i)=>{o=(0,n.AL)([(0,l.fu)(s,(()=>{a(),i((0,l.zE)())})),h(e,(e=>{a(),r(e)}),{sync:!1,once:!0},t??p)])}))}(e,m,t)}function p(e){return!0}function m(e){return!!e}s(87538);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},72762:(e,t,s)=>{s.d(t,{t:()=>h});var r=s(43697),n=s(15923),i=s(61247),l=s(17445),o=s(1654),a=s(5600),u=s(52011);let h=class extends n.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new i.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,s={}){return this._installWatch(e,t,s,l.YP)}addWhen(e,t,s={}){return this._installWatch(e,t,s,l.gx)}addOnCollectionChange(e,t,{initial:s=!1,final:r=!1}={}){const n=++this._handleId;return this._handles.add([(0,l.on)(e,"after-changes",this._createSyncUpdatingCallback(),l.Z_),(0,l.on)(e,"change",t,{onListenerAdd:s?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:r?e=>t({added:[],removed:e.toArray()}):void 0})],n),{remove:()=>this._handles.remove(n)}}addPromise(e){if(null==e)return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(c)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const s=()=>this._handles.remove(t);return e.then(s,s),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,s={},r){const n=++this._handleId;s.sync||this._installSyncUpdatingWatch(e,n);const i=r(e,t,s);return this._handles.add(i,n),{remove:()=>this._handles.remove(n)}}_installSyncUpdatingWatch(e,t){const s=this._createSyncUpdatingCallback(),r=(0,l.YP)(e,s,{sync:!0,equals:()=>!1});return this._handles.add(r,t),r}_createSyncUpdatingCallback(){return()=>{this._handles.remove(c),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,o.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(c))})),c)}}};(0,r._)([(0,a.Cb)({readOnly:!0})],h.prototype,"updating",void 0),h=(0,r._)([(0,u.j)("esri.core.support.WatchUpdatingTracking")],h);const c=-42},35463:(e,t,s)=>{s.d(t,{JE:()=>l,Nm:()=>i,rJ:()=>o}),s(80442);const r={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},n={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function i(e,t,s){const r=new Date(e.getTime());if(t&&s){const e=n[s],{getter:i,setter:l,multiplier:o}=e;if("months"===s){const e=function(e,t){const s=new Date(e,t+1,1);return s.setDate(0),s.getDate()}(r.getFullYear(),r.getMonth()+t);r.getDate()>e&&r.setDate(e)}r[l](r[i]()+t*o)}return r}function l(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function o(e,t,s){return 0===e?0:e*r[t]/r[s]}},91040:(e,t,s)=>{s.d(t,{yZ:()=>i});var r=s(67900);const n=96;function i(e,t){const s=t||e.extent,i=e.width,l=(0,r.c9)(s&&s.spatialReference);return s&&i?s.width/i*l*r.hd*n:0}},25906:(e,t,s)=>{s.r(t),s.d(t,{default:()=>Ce});var r=s(43697),n=s(68773),i=s(38171),l=s(51773),o=s(3172),a=s(46791),u=s(57435),h=s(35454),c=s(22974),d=s(16453),p=s(95330),m=s(17445),f=s(17452),y=s(5600),g=s(75215),b=s(71715),_=s(52011),v=s(30556),w=s(76169),x=s(6570),C=s(82971),E=s(91040),I=s(8744),S=s(87085),O=s(71612),T=s(38009),A=s(16859),N=s(34760),F=s(72965),M=s(28294),L=s(52162),D=s(66677),R=s(21506),j=s(15923),P=s(3920);s(67676),s(80442);const U={visible:"visibleSublayers"};let Z=class extends((0,P.p)(j.Z)){constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.sublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("wms-sublayer-update",(e=>this.notifyChange(U[e.propertyName])))],"layer"))}get layers(){return this.visibleSublayers.filter((({name:e})=>e)).map((({name:e})=>e)).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,s=e?.sublayers,r=[],n=e=>{const{minScale:s,maxScale:i,sublayers:l,visible:o}=e;o&&(0===t||(0===s||t<=s)&&(0===i||t>=i))&&(l?l.forEach(n):r.push(e))};return s?.forEach(n),r}toJSON(){const{layer:e,layers:t}=this,{imageFormat:s,imageTransparency:r,version:n}=e;return{format:s,request:"GetMap",service:"WMS",styles:"",transparent:r?"TRUE":"FALSE",version:n,layers:t}}};(0,r._)([(0,y.Cb)()],Z.prototype,"layer",null),(0,r._)([(0,y.Cb)({readOnly:!0})],Z.prototype,"layers",null),(0,r._)([(0,y.Cb)({type:Number})],Z.prototype,"scale",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],Z.prototype,"version",null),(0,r._)([(0,y.Cb)({readOnly:!0})],Z.prototype,"visibleSublayers",null),Z=(0,r._)([(0,_.j)("esri.layers.support.ExportWMSImageParameters")],Z);var q,V=s(90082),B=s(10699),k=s(90578);let H=0,W=q=class extends((0,B.IG)(d.w)){constructor(e){super(e),this.dimensions=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.addHandles([(0,m.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=this,e.layer=this.layer}),m.Z_),(0,m.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),m.Z_),(0,m.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer}),m.Z_)])}get description(){return this._get("description")}set description(e){this._set("description",e)}get fullExtent(){return this._get("fullExtent")}set fullExtent(e){this._set("fullExtent",e)}readExtent(e,t){return(e=t.extent)?x.Z.fromJSON(e):null}get id(){return this._get("id")??H++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t?.legendUrl??t?.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get name(){return this._get("name")}set name(e){this._set("name",e)}castSublayers(e){return(0,g.se)(a.Z.ofType(q),e)}get title(){return this._get("title")}set title(e){this._set("title",e)}get visible(){return this._get("visible")}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new q;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map((e=>e.clone()))??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers&&this.sublayers.map((e=>e.clone()))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map((e=>e))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const s=this.layer;this._get(e)!==t&&(this._set(e,t),s&&s.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,r._)([(0,y.Cb)()],W.prototype,"description",null),(0,r._)([(0,y.Cb)({readOnly:!0})],W.prototype,"dimensions",void 0),(0,r._)([(0,y.Cb)({value:null})],W.prototype,"fullExtent",null),(0,r._)([(0,b.r)("fullExtent",["extent"])],W.prototype,"readExtent",null),(0,r._)([(0,y.Cb)()],W.prototype,"fullExtents",void 0),(0,r._)([(0,y.Cb)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],W.prototype,"id",null),(0,r._)([(0,y.Cb)({type:String,json:{origins:{"web-document":{read:{source:["legendUrl","legendURL"]},write:{target:"legendUrl",ignoreOrigin:!0}}},read:{source:"legendURL"},write:{ignoreOrigin:!0}}})],W.prototype,"legendUrl",void 0),(0,r._)([(0,b.r)(["web-document"],"legendUrl")],W.prototype,"readLegendUrl",null),(0,r._)([(0,y.Cb)({value:!0,type:Boolean,json:{read:{source:"showLegend"},write:{target:"showLegend"},origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],W.prototype,"legendEnabled",void 0),(0,r._)([(0,y.Cb)()],W.prototype,"layer",void 0),(0,r._)([(0,y.Cb)()],W.prototype,"maxScale",void 0),(0,r._)([(0,y.Cb)()],W.prototype,"minScale",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],W.prototype,"effectiveScaleRange",null),(0,r._)([(0,y.Cb)({type:String,value:null,json:{read:{source:"name"},write:{ignoreOrigin:!0}}})],W.prototype,"name",null),(0,r._)([(0,y.Cb)()],W.prototype,"parent",void 0),(0,r._)([(0,y.Cb)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],W.prototype,"popupEnabled",void 0),(0,r._)([(0,y.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],W.prototype,"queryable",void 0),(0,r._)([(0,y.Cb)()],W.prototype,"sublayers",void 0),(0,r._)([(0,k.p)("sublayers")],W.prototype,"castSublayers",null),(0,r._)([(0,y.Cb)({type:[Number],json:{read:{source:"spatialReferences"}}})],W.prototype,"spatialReferences",void 0),(0,r._)([(0,y.Cb)({type:String,value:null,json:{write:{ignoreOrigin:!0}}})],W.prototype,"title",null),(0,r._)([(0,y.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],W.prototype,"visible",null),W=q=(0,r._)([(0,_.j)("esri.layers.support.WMSSublayer")],W);const J=W;var Y=s(20102),G=s(70586);const $={84:4326,83:4269,27:4267};function z(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const s=e.documentElement;if("ServiceExceptionReport"===s.nodeName){const e=Array.prototype.slice.call(s.childNodes).map((e=>e.textContent)).join("\r\n");throw new Y.Z("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const r=ee("Capability",s),n=ee("Service",s),i=r&&ee("Request",r);if(!r||!n||!i)return null;const l=ee("Layer",r);if(!l)return null;const o="WMS_Capabilities"===s.nodeName||"WMT_MS_Capabilities"===s.nodeName?s.getAttribute("version"):"1.3.0",a=se("Title",n,"")||se("Name",n,""),u=se("AccessConstraints",n,""),h=/^none$/i.test(u)?"":u,c=se("Abstract",n,""),d=parseInt(se("MaxWidth",n,"5000"),10),p=parseInt(se("MaxHeight",n,"5000"),10),m=ie(i,"GetMap"),f=ne(i,"GetMap"),y=oe(l,o,t);if(!y)return null;let g,b=0;const _=Array.prototype.slice.call(r.childNodes),v=y.sublayers??[],w=e=>{null!=e&&v.push(e)};_.forEach((e=>{"Layer"===e.nodeName&&(0===b?g=e:1===b?(y.name&&(y.name="",w(oe(g,o,t))),w(oe(e,o,t))):w(oe(e,o,t)),b++)}));let C=y.sublayers,E=y.extent;const I=y.fullExtents??[];if(C||(C=[]),0===C.length&&C.push(y),!E){const e=new x.Z(C[0].extent);y.extent=e.toJSON(),E=y.extent}const S=y.spatialReferences.length>0?y.spatialReferences:X(y),O=ne(i,"GetFeatureInfo"),T=O?ie(i,"GetFeatureInfo"):null,A=Q(C),N=y.minScale||0,F=y.maxScale||0,M=y.dimensions??[],L=A.reduce(((e,t)=>e.concat(t.dimensions??[])),[]),D=M.concat(L).filter(ue);let R=null;if(D.length){const e=D.map((e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map((e=>e.getTime())):t?.map((e=>[e.min.getTime(),e.max.getTime()]))})).flat(2).filter(G.pC);R={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[Math.min(...e),Math.max(...e)]}}return{copyright:h,description:c,dimensions:M,extent:E,fullExtents:I,featureInfoFormats:T,featureInfoUrl:O,mapUrl:f,maxWidth:d,maxHeight:p,maxScale:F,minScale:N,layers:A,spatialReferences:S,supportedImageFormatTypes:m,timeInfo:R,title:a,version:o}}function X(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=X(t);if(e.length>0)return e}return[]}function Q(e){let t=[];for(const s of e)t.push(s),s.sublayers?.length&&(t=t.concat(Q(s.sublayers)),delete s.sublayers);return t}function K(e,t,s){return t.getAttribute(e)??s}function ee(e,t){for(let s=0;s<t.childNodes.length;s++){const r=t.childNodes[s];if(ae(r)&&r.nodeName===e)return r}return null}function te(e,t){if(null==t)return[];const s=[];for(let r=0;r<t.childNodes.length;r++){const n=t.childNodes[r];ae(n)&&n.nodeName===e&&s.push(n)}return s}function se(e,t,s){return ee(e,t)?.textContent??s}function re(e,t,s){if(!e)return null;const r=parseFloat(e.getAttribute("minx")),n=parseFloat(e.getAttribute("miny")),i=parseFloat(e.getAttribute("maxx")),l=parseFloat(e.getAttribute("maxy"));let o,a,u,h;s?(o=isNaN(n)?-Number.MAX_VALUE:n,a=isNaN(r)?-Number.MAX_VALUE:r,u=isNaN(l)?Number.MAX_VALUE:l,h=isNaN(i)?Number.MAX_VALUE:i):(o=isNaN(r)?-Number.MAX_VALUE:r,a=isNaN(n)?-Number.MAX_VALUE:n,u=isNaN(i)?Number.MAX_VALUE:i,h=isNaN(l)?Number.MAX_VALUE:l);const c=new C.Z({wkid:t});return new x.Z({xmin:o,ymin:a,xmax:u,ymax:h,spatialReference:c})}function ne(e,t){const s=ee(t,e);if(s){const e=ee("DCPType",s);if(e){const t=ee("HTTP",e);if(t){const e=ee("Get",t);if(e){let t=function(e,t,s,r){const n=ee("OnlineResource",s);return n?K("xlink:href",n,null):null}(0,0,e);if(t)return t.indexOf("&")===t.length-1&&(t=t.substring(0,t.length-1)),function(e,t){const s=[],r=(0,f.mN)(e);for(const e in r.query)r.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||s.push(e+"="+r.query[e]));return r.path+(s.length?"?"+s.join("&"):"")}(t,["service","request"])}}}}return null}function ie(e,t){const s=te("Operation",e);if(!s.length)return te("Format",ee(t,e)).map((({textContent:e})=>e)).filter(G.pC);const r=[];for(const e of s)if(e.getAttribute("name")===t){const t=te("Format",e);for(const{textContent:e}of t)null!=e&&r.push(e)}return r}function le(e,t,s){const r=ee(t,e);if(!r)return s;const{textContent:n}=r;if(null==n||""===n)return s;const i=Number(n);return isNaN(i)?s:i}function oe(e,t,s){if(!e)return null;const r={id:s.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},n=ee("LatLonBoundingBox",e),i=ee("EX_GeographicBoundingBox",e);let l=null;n&&(l=re(n,4326)),i&&(l=new x.Z(0,0,0,0,new C.Z({wkid:4326})),l.xmin=parseFloat(se("westBoundLongitude",i,"0")),l.ymin=parseFloat(se("southBoundLatitude",i,"0")),l.xmax=parseFloat(se("eastBoundLongitude",i,"0")),l.ymax=parseFloat(se("northBoundLatitude",i,"0"))),n||i||(l=new x.Z(-180,-90,180,90,new C.Z({wkid:4326}))),r.minScale=le(e,"MaxScaleDenominator",0),r.maxScale=le(e,"MinScaleDenominator",0);const o=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach((e=>{if("Name"===e.nodeName)r.name=e.textContent||"";else if("Title"===e.nodeName)r.title=e.textContent||"";else if("Abstract"===e.nodeName)r.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const s=e.getAttribute(o);if(s&&0===s.indexOf("EPSG:")){const r=parseInt(s.substring(5),10);0===r||isNaN(r)||l||(l="1.3.0"===t?re(e,r,(0,L.A)(r)):re(e,r))}const n=s&&s.indexOf(":");if(n&&n>-1){let i=parseInt(s.substring(n+1,s.length),10);0===i||isNaN(i)||(i=$[i]??i);const l="1.3.0"===t?re(e,i,(0,L.A)(i)):re(e,i);l&&r.fullExtents&&r.fullExtents.push(l)}}else if(e.nodeName===o)(e.textContent?.split(" ")??[]).forEach((e=>{const t=e.includes(":")?parseInt(e.split(":")[1],10):parseInt(e,10);if(0!==t&&!isNaN(t)){const e=$[t]??t;r.spatialReferences.includes(e)||r.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||r.legendURL){if("Layer"===e.nodeName){const n=oe(e,t,s);n&&(n.parentLayerId=r.id,r.sublayers||(r.sublayers=[]),r.sublayers.push(n))}}else{const t=ee("LegendURL",e);if(t){const e=ee("OnlineResource",t);e&&(r.legendURL=e.getAttribute("xlink:href"))}}})),r.extent=l?.toJSON(),r.dimensions=te("Dimension",e).filter((e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent)).map((e=>{const t=e.getAttribute("name"),s=e.getAttribute("units"),r=e.textContent,n=e.getAttribute("unitSymbol")??void 0,i=e.getAttribute("default")??void 0,l="0"!==K("default",e,"0"),o="0"!==K("nearestValue",e,"0"),a="0"!==K("current",e,"0");return ue({name:t,units:s})?{name:"time",units:"ISO8601",extent:de(r),default:de(i),multipleValues:l,nearestValue:o,current:a}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:s})?{name:"elevation",units:s,extent:he(r),unitSymbol:n,default:he(i),multipleValues:l,nearestValue:o}:{name:t,units:s,extent:ce(r),unitSymbol:n,default:ce(i),multipleValues:l,nearestValue:o}})),r}function ae(e){return e.nodeType===Node.ELEMENT_NODE}function ue(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function he(e){if(!e)return;const t=e.includes("/"),s=e.split(",");return t?s.map((e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}})).filter(G.pC):s.map((e=>parseFloat(e)))}function ce(e){if(!e)return;const t=e.includes("/"),s=e.split(",");return t?s.map((e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}})).filter(G.pC):s}function de(e){if(!e)return;const t=e.includes("/"),s=e.split(",");return t?s.map((e=>{const t=e.split("/");return t.length<2?null:{min:new Date(t[0]),max:new Date(t[1]),resolution:t.length>=3&&"0"!==t[2]?pe(t[2]):void 0}})).filter(G.pC):s.map((e=>new Date(e)))}function pe(e){const t=e.match(/(?:p(\d+y|\d+(?:.|,)\d+y)?(\d+m|\d+(?:.|,)\d+m)?(\d+d|\d+(?:.|,)\d+d)?)?(?:t(\d+h|\d+(?:.|,)\d+h)?(\d+m|\d+(?:.|,)\d+m)?(\d+s|\d+(?:.|,)\d+s)?)?/i);return t?{years:me(t[1]),months:me(t[2]),days:me(t[3]),hours:me(t[4]),minutes:me(t[5]),seconds:me(t[6])}:null}function me(e){if(!e)return 0;const t=e.match(/(?:\d+(?:.|,)\d+|\d+)/);if(!t)return 0;const s=t[0].replace(",",".");return Number(s)}function fe(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}const ye=new Set([102100,3857,102113,900913]),ge=new Set([3395,54004]),be=new h.X({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function _e(e){return"text/html"===e}function ve(e){return"text/plain"===e}let we=class extends((0,O.h)((0,M.n)((0,N.Q)((0,F.M)((0,T.q)((0,A.I)((0,d.R)(S.Z)))))))){constructor(...e){super(...e),this.allSublayers=new u.Z({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.url=null,this.version=null,this.addHandles([(0,m.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=e.layer=this}),m.Z_),(0,m.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),m.Z_),(0,m.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this}),m.Z_)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(p.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readFullExtentFromItemOrMap(e,t){const s=t.extent;return s?new x.Z({xmin:s[0][0],ymin:s[0][1],xmax:s[1][0],ymax:s[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(_e)??this.featureInfoFormats.find(ve)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(_e(e)||ve(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const s=t.supportedImageFormatTypes;return s&&s.includes("image/png")?"image/png":s&&s[0]}readSpatialReferenceFromItemOrDocument(e,t){return new C.Z(t.spatialReferences[0])}writeSpatialReferences(e,t){const s=this.spatialReference?.wkid;e&&s?(t.spatialReferences=e.filter((e=>e!==s)),t.spatialReferences.unshift(s)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,s){return xe(t.layers,s,t.visibleLayers)}readSublayers(e,t,s){return xe(t.layers,s)}writeSublayers(e,t,s,r){t.layers=[];const n=new Map,i=e.flatten((({sublayers:e})=>e??[]));for(const e of i)if("number"==typeof e.parent?.id){const t=n.get(e.parent.id);null!=t?t.push(e.id):n.set(e.parent.id,[e.id])}for(const e of i){const s={sublayer:e,...r},i=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},s);if(n.has(e.id)&&(i.sublayerIds=n.get(e.id)),!e.sublayers&&e.name){const r=e.write({},s);delete r.id,t.layers.push(r)}}t.visibleLayers=i.filter((({visible:e,sublayers:t})=>e&&!t)).map((({name:e})=>e)).toArray()}createExportImageParameters(e,t,s,r){const n=r?.pixelRatio??1,i=(0,E.yZ)({extent:e,width:t})*n,l=new Z({layer:this,scale:i}),{xmin:o,ymin:a,xmax:u,ymax:h,spatialReference:c}=e,d=function(e,t){let s=e.wkid;return null==t?s:(null!=s&&t.includes(s)||!e.latestWkid||(s=e.latestWkid),null!=s&&ye.has(s)?t.find((e=>ye.has(e)))||t.find((e=>ge.has(e)))||102100:s)}(c,this.spatialReferences),p="1.3.0"===this.version&&(0,L.A)(d)?`${a},${o},${h},${u}`:`${o},${a},${u},${h}`,m=l.toJSON();return{bbox:p,["1.3.0"===this.version?"crs":"srs"]:null==d||isNaN(d)?void 0:"EPSG:"+d,...m}}async fetchImage(e,t,s,r){const n=this.mapUrl,i=this.createExportImageParameters(e,t,s,r);if(!i.layers){const e=document.createElement("canvas");return e.width=t,e.height=s,e}const l=r?.timeExtent?.start,a=r?.timeExtent?.end,u=null!=l&&null!=a?l.getTime()===a.getTime()?fe(l):`${fe(l)}/${fe(a)}`:void 0,h={responseType:"image",query:this._mixCustomParameters({width:t,height:s,...i,time:u,...this.refreshParameters}),signal:r?.signal};return(0,o.default)(n??"",h).then((e=>e.data))}async fetchImageBitmap(e,t,s,r){const n=this.mapUrl??"",i=this.createExportImageParameters(e,t,s,r);if(!i.layers){const e=document.createElement("canvas");return e.width=t,e.height=s,e}const l=r?.timeExtent?.start,a=r?.timeExtent?.end,u=null!=l&&null!=a?l.getTime()===a.getTime()?fe(l):`${fe(l)}/${fe(a)}`:void 0,h={responseType:"blob",query:this._mixCustomParameters({width:t,height:s,...i,time:u,...this.refreshParameters}),signal:r?.signal},{data:c}=await(0,o.default)(n,h);return(0,V.g)(c,n)}fetchFeatureInfo(e,t,s,r,n){const i=(0,E.yZ)({extent:e,width:t}),l=function(e){const t=e.filter((e=>e.popupEnabled&&e.name&&e.queryable));return t.length?t.map((({name:e})=>e)).join():null}(new Z({layer:this,scale:i}).visibleSublayers);if(null==this.featureInfoUrl||null==l)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:r,J:n}:{x:r,y:n},a={query_layers:l,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:s,...o},u={...this.createExportImageParameters(e,t,s),...a},h=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(h):this._defaultFetchFeatureInfoFunction((0,f.fl)(this.featureInfoUrl,h))}findSublayerById(e){return this.allSublayers.find((t=>t.id===e))}findSublayerByName(e){return this.allSublayers.find((t=>t.name===e))}serviceSupportsSpatialReference(e){return(0,D.G)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some((t=>{const s=900913===t?C.Z.WebMercator:new C.Z({wkid:t});return(0,I.fS)(s,e)}))}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,f.qg)(e),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const s=new l.Z({title:this.title,content:t}),r=new i.Z({sourceLayer:this,popupTemplate:s});return Promise.resolve([r])}async _fetchService(e){if(!this.resourceInfo){const{path:t,query:s}=this.parsedUrl??{};s?.service&&(s.SERVICE=s.service,delete s.service),s?.request&&(s.REQUEST=s.request,delete s.request);const{data:r}=await(0,o.default)(t??"",{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...s,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=z(r)}if(this.parsedUrl){const e=new f.R9(this.parsedUrl.path),{httpsDomains:t}=n.Z.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const s in t)e[s.toLowerCase()]=t[s];return e}};function xe(e,t,s){e=e??[];const r=new Map;e.every((e=>null==e.id))&&(e=(0,c.d9)(e)).forEach(((e,t)=>e.id=t));for(const n of e){const e=new J;e.read(n,t),s&&!s.includes(e.name)&&(e.visible=!1),r.set(e.id,e)}const n=[];for(const t of e){const e=null!=t.id?r.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const s=r.get(t.parentLayerId);if(!s)continue;s.sublayers||(s.sublayers=new a.Z),s.sublayers.push(e)}else n.push(e)}return n}(0,r._)([(0,y.Cb)({readOnly:!0})],we.prototype,"allSublayers",void 0),(0,r._)([(0,y.Cb)({json:{type:Object,write:!0}})],we.prototype,"customParameters",void 0),(0,r._)([(0,y.Cb)({json:{type:Object,write:!0}})],we.prototype,"customLayerParameters",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:!0}})],we.prototype,"copyright",void 0),(0,r._)([(0,y.Cb)()],we.prototype,"description",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],we.prototype,"dimensions",void 0),(0,r._)([(0,y.Cb)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],we.prototype,"fullExtent",void 0),(0,r._)([(0,b.r)(["web-document","portal-item"],"fullExtent",["extent"])],we.prototype,"readFullExtentFromItemOrMap",null),(0,r._)([(0,v.c)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],we.prototype,"writeFullExtent",null),(0,r._)([(0,y.Cb)()],we.prototype,"fullExtents",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"featureInfoFormat",null),(0,r._)([(0,y.Cb)({type:[String],readOnly:!0})],we.prototype,"featureInfoFormats",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"featureInfoUrl",void 0),(0,r._)([(0,y.Cb)()],we.prototype,"fetchFeatureInfoFunction",void 0),(0,r._)([(0,y.Cb)({type:String,json:{origins:{"web-document":{default:"image/png",type:be.jsonValues,read:{reader:be.read,source:"format"},write:{writer:be.write,target:"format"}}}}})],we.prototype,"imageFormat",void 0),(0,r._)([(0,b.r)("imageFormat",["supportedImageFormatTypes"])],we.prototype,"readImageFormat",null),(0,r._)([(0,y.Cb)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],we.prototype,"imageMaxHeight",void 0),(0,r._)([(0,y.Cb)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],we.prototype,"imageMaxWidth",void 0),(0,r._)([(0,y.Cb)()],we.prototype,"imageTransparency",void 0),(0,r._)([(0,y.Cb)(R.rn)],we.prototype,"legendEnabled",void 0),(0,r._)([(0,y.Cb)({type:["show","hide","hide-children"]})],we.prototype,"listMode",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"mapUrl",void 0),(0,r._)([(0,y.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],we.prototype,"isReference",void 0),(0,r._)([(0,y.Cb)({type:["WMS"]})],we.prototype,"operationalLayerType",void 0),(0,r._)([(0,y.Cb)()],we.prototype,"resourceInfo",void 0),(0,r._)([(0,y.Cb)({type:C.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],we.prototype,"spatialReference",void 0),(0,r._)([(0,b.r)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],we.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,r._)([(0,y.Cb)({type:[g.z8],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],we.prototype,"spatialReferences",void 0),(0,r._)([(0,v.c)(["web-document","portal-item"],"spatialReferences")],we.prototype,"writeSpatialReferences",null),(0,r._)([(0,y.Cb)({type:a.Z.ofType(J),json:{write:{target:"layers",overridePolicy(e,t,s){if(function(e,t){return e.some((e=>{for(const s in e)if((0,w.d)(e,s,null,t))return!0;return!1}))}(this.allSublayers,s))return{ignoreOrigin:!0}}}}})],we.prototype,"sublayers",void 0),(0,r._)([(0,b.r)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],we.prototype,"readSublayersFromItemOrMap",null),(0,r._)([(0,b.r)("service","sublayers",["layers"])],we.prototype,"readSublayers",null),(0,r._)([(0,v.c)("sublayers",{layers:{type:[J]},visibleLayers:{type:[String]}})],we.prototype,"writeSublayers",null),(0,r._)([(0,y.Cb)({json:{read:!1},readOnly:!0,value:"wms"})],we.prototype,"type",void 0),(0,r._)([(0,y.Cb)(R.HQ)],we.prototype,"url",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"version",void 0),we=(0,r._)([(0,_.j)("esri.layers.WMSLayer")],we);const Ce=we},34760:(e,t,s)=>{s.d(t,{Q:()=>g});var r=s(43697),n=s(92604),i=s(95330),l=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(46791),u=(s(20102),s(26258),s(87538));const h=new a.Z,c=new WeakMap;function d(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function p(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:p(t,e%t):0}let m=0,f=0;function y(){const e=Date.now();for(const t of h)t.refreshInterval&&e-(c.get(t)??0)+5>=6e4*t.refreshInterval&&(c.set(t,e),t.refresh(e))}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const s of h)t=p(Math.round(6e4*s.refreshInterval),t),s.refreshInterval?c.get(s)||c.set(s,e):c.delete(s);if(t!==f){if(f=t,clearInterval(m),0===f)return void(m=0);m=setInterval(y,f)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,i.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){d(e)&&h.push(e)}(this)}),(()=>{}))}destroy(){d(this)&&h.includes(this)&&h.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,i.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{n.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,r._)([(0,l.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"refreshParameters",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,s)=>{s.d(t,{n:()=>d});var r=s(43697),n=s(92835),i=s(84552),l=s(5600),o=(s(75215),s(67676),s(80442),s(71715)),a=s(52011),u=s(35671),h=s(76259),c=s(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const s=t.timeInfo.exportOptions;if(!s)return null;const r=s.timeOffset,n=c.v.fromJSON(s.timeOffsetUnits);return r&&n?new i.Z({value:r,unit:n}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,l.Cb)({type:n.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,l.Cb)({type:i.Z})],t.prototype,"timeOffset",void 0),(0,r._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,l.Cb)({value:null,type:h.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},52162:(e,t,s)=>{s.d(t,{A:()=>n});const r=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function n(e){return null!=e&&r.some((([t,s])=>e>=t&&e<=s))}},76259:(e,t,s)=>{s.d(t,{Z:()=>f});var r=s(43697),n=s(92835),i=s(84552),l=s(2368),o=s(96674),a=s(5600),u=(s(75215),s(67676),s(80442),s(71715)),h=s(52011),c=s(30556),d=s(80216);function p(e,t){return i.Z.fromJSON({value:e,unit:t})}let m=class extends((0,l.J)(o.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const s=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new n.Z({start:s,end:r})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?p(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?p(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,r._)([(0,a.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,r._)([(0,a.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,r._)([(0,u.r)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,r._)([(0,c.c)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,r._)([(0,a.Cb)({type:i.Z,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,r._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,r._)([(0,c.c)("interval")],m.prototype,"writeInterval",null),(0,r._)([(0,a.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,r._)([(0,a.Cb)({type:d.Z,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"timeReference",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),m=(0,r._)([(0,h.j)("esri.layers.support.TimeInfo")],m);const f=m},90082:(e,t,s)=>{s.d(t,{g:()=>n});var r=s(20102);async function n(e,t){try{return await createImageBitmap(e)}catch(e){throw new r.Z("request:server",`Unable to load ${t}`,{url:t,error:e})}}},78981:(e,t,s)=>{s.d(t,{v:()=>r});const r=(0,s(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2472],{5732:(t,e,n)=>{n.d(e,{c:()=>i});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}},46521:(t,e,n)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function r(t,e,n,i,r,s,o,c,a){return[t,e,n,i,r,s,o,c,a]}function s(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>s,c:()=>i,f:()=>r}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:i,createView:s,fromValues:r},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(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]]}function s(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>o,a:()=>s,b:()=>r,c:()=>i});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:i,createView:s,fromValues:function(t,e,n,i,r,s,o,c,a,u,h,l,f,d,_,m){return[t,e,n,i,r,s,o,c,a,u,h,l,f,d,_,m]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function i(){return[0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3]]}function s(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>o,a:()=>i,b:()=>r,c:()=>s});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:i,createView:s,fromValues:function(t,e,n,i){return[t,e,n,i]}},Symbol.toStringTag,{value:"Module"}))},29268:(t,e,n)=>{n.d(e,{c:()=>g,e:()=>T,g:()=>O,j:()=>p,k:()=>S,l:()=>v}),n(80442);var i,r,s=n(92604),o=n(22021),c=n(52138),a=n(17896),u=n(65617),h=n(98766),l=n(88669);(r=i||(i={}))[r.X=0]="X",r[r.Y=1]="Y",r[r.Z=2]="Z";var f=n(78341),d=n(61277),_=n(12981);const m=g();function g(){return(0,l.c)()}function p(t,e=g()){return(0,h.c)(e,t)}function T(t){return t[3]}function O(t){return t}function A(t,e,n){if(null==e)return!1;const{origin:i,direction:r}=e,s=N;s[0]=i[0]-t[0],s[1]=i[1]-t[1],s[2]=i[2]-t[2];const o=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===o)return!1;const c=2*(r[0]*s[0]+r[1]*s[1]+r[2]*s[2]),a=c*c-4*o*(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]-t[3]*t[3]);if(a<0)return!1;const u=Math.sqrt(a);let h=(-c-u)/(2*o);const l=(-c+u)/(2*o);return(h<0||l<h&&l>0)&&(h=l),!(h<0||(n&&(n[0]=i[0]+r[0]*h,n[1]=i[1]+r[1]*h,n[2]=i[2]+r[2]*h),0))}const N=(0,u.c)();function S(t,e){return A(t,e,null)}function E(t,e,n){const i=_.WM.get(),r=_.MP.get();(0,a.f)(i,e.origin,e.direction);const s=T(t);(0,a.f)(n,i,e.origin),(0,a.g)(n,n,1/(0,a.l)(n)*s);const o=R(t,e.origin),u=(0,d.EU)(e.origin,n);return(0,c.d)(r,u+o,i),(0,a.m)(n,n,r),n}function b(t,e,n){const i=(0,a.b)(_.WM.get(),e,t),r=(0,a.g)(_.WM.get(),i,t[3]/(0,a.l)(i));return(0,a.a)(n,r,t)}function R(t,e){const n=(0,a.b)(_.WM.get(),e,t),i=(0,a.l)(n),r=T(t),s=r+Math.abs(r-i);return(0,o.ZF)(r/s)}const I=(0,u.c)();function y(t,e,n,r){const s=(0,a.b)(I,e,t);switch(n){case i.X:{const t=(0,o.jE)(s,I)[2];return(0,a.s)(r,-Math.sin(t),Math.cos(t),0)}case i.Y:{const t=(0,o.jE)(s,I),e=t[1],n=t[2],i=Math.sin(e);return(0,a.s)(r,-i*Math.cos(n),-i*Math.sin(n),Math.cos(e))}case i.Z:return(0,a.n)(r,s);default:return}}function M(t,e){const n=(0,a.b)(F,e,t);return(0,a.l)(n)-t[3]}function v(t,e){const n=(0,a.d)(t,e),i=T(t);return n<=i*i}const F=(0,u.c)(),L=g();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:M,angleToSilhouette:R,axisAt:y,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return A(t,e,n)?n:((0,f.JI)(e,t,n),b(t,n,n))},closestPointOnSilhouette:E,containsPoint:v,copy:p,create:g,distanceToSilhouette:function(t,e){const n=(0,a.b)(_.WM.get(),e,t),i=(0,a.p)(n),r=t[3]*t[3];return Math.sqrt(Math.abs(i-r))},elevate:function(t,e,n){return t!==n&&(0,a.c)(n,t),n[3]=t[3]+e,n},fromCenterAndRadius:function(t,e){return(0,l.f)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,i){return(0,l.f)(t,e,n,i)},getCenter:O,getRadius:T,intersectRay:A,intersectRayClosestSilhouette:function(t,e,n){if(A(t,e,n))return n;const i=E(t,e,_.WM.get());return(0,a.a)(n,e.origin,(0,a.g)(_.WM.get(),e.direction,(0,a.i)(e.origin,i)/(0,a.l)(e.direction))),n},intersectsRay:S,projectPoint:b,setAltitudeAt:function(t,e,n,r){const s=M(t,e),o=y(t,e,i.Z,F),c=(0,a.g)(F,o,n-s);return(0,a.a)(r,e,c)},setExtent:function(t,e,n){return s.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:p(t,n)},tmpSphere:L,wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function i(){return[0,0]}function r(t,e){return[t,e]}function s(t,e){return new Float64Array(t,e,2)}function o(){return r(1,1)}function c(){return r(1,0)}function a(){return r(0,1)}n.d(e,{a:()=>i,c:()=>s,f:()=>r});const u=o(),h=c(),l=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:h,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:i,createView:s,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let i=0;i<n;++i)e[i]=t[i];return e},fromValues:r,ones:o,unitX:c,unitY:a,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},69801:(t,e,n)=>{n.d(e,{WJ:()=>c,Xq:()=>o});var i,r,s=n(44553);(r=i||(i={}))[r.ALL=0]="ALL",r[r.SOME=1]="SOME";class o{constructor(t,e,n){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",n&&(this._storage.registerRemoveFunc(this._namespace,n),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,n,i=0){this._storage.put(this._namespace+t,e,n,i)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,n){this._storage.updateSize(this._namespace+t,e,n)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class c{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new s.Z,this._users=new s.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get sizeMB(){return this._size/1024/1024}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,n,r){const s=this._db.get(t);if(s&&(this._size-=s.size,this._db.delete(t),s.entry!==e&&this._notifyRemove(t,s.entry,i.ALL)),n>this._maxSize)return void this._notifyRemove(t,e,i.ALL);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return void console.warn("Refusing to cache entry with invalid size "+n);const o=1+Math.max(r,-3)- -3;this._db.set(t,{entry:e,size:n,lifetime:o,lives:o}),this._size+=n,this._checkSizeLimit()}updateSize(t,e,n){const r=this._db.get(t);if(r&&r.entry===e){for(this._size-=r.size;n>this._maxSize;){const r=this._notifyRemove(t,e,i.SOME);if(!(null!=r&&r>0))return void this._db.delete(t);n=r}r.size=n,this._size+=n,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},n=new Array;this._db.forEach(((t,i)=>{const r=t.lifetime;n[r]=(n[r]||0)+t.size,this._users.forAll((n=>{const r=n.namespace;if(i.startsWith(r)){const n=e[r]||0;e[r]=n+t.size}}))}));const i={};this._users.forAll((t=>{const n=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const r=e[n]||0;e[n]=r,i[n]=Math.round(100*t.hitRate)+"%"}else i[n]="0%"}));const r=Object.keys(e);r.sort(((t,n)=>e[n]-e[t])),r.forEach((n=>t[n]=Math.round(e[n]/2**20)+"MB / "+i[n]));for(let e=n.length-1;e>=0;--e){const i=n[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,i.ALL))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,i.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,n){let i;return this._removeFuncs.some((r=>{if(t.startsWith(r[0])){const t=r[1](e,n);return"number"==typeof t&&(i=t),!0}return!1})),i}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const n=this._notifyRemove(t,e.entry,i.SOME);null!=n&&n>0&&(this._size+=n,e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},22807:(t,e,n)=>{n.d(e,{x:()=>r});var i=n(41213);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},43090:(t,e,n)=>{function i(t){return 32+t.length}function r(t){if(!t)return 0;let e=a;for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];switch(typeof r){case"string":e+=i(r);break;case"number":e+=16;break;case"boolean":e+=4}}return e}function s(t){if(!t)return 0;if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return 32+8*e;let n=u;for(let i=0;i<e;i++)n+=o(t[i]);return n}(t);let e=a;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n]));return e}function o(t){switch(typeof t){case"object":return s(t);case"string":return i(t);case"number":return 16;case"boolean":return 4;default:return 8}}function c(t,e){return u+t.length*e}n.d(e,{Ul:()=>s,Y8:()=>h,do:()=>c,f2:()=>r});const a=32,u=32;var h;!function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(h||(h={}))},16996:(t,e,n)=>{n.d(e,{Ue:()=>a,nF:()=>h,zk:()=>u});var i=n(22021),r=n(22807),s=n(17896),o=n(65617),c=n(12981);function a(t){return t?{origin:(0,o.a)(t.origin),vector:(0,o.a)(t.vector)}:{origin:(0,o.c)(),vector:(0,o.c)()}}function u(t,e,n=a()){return(0,s.c)(n.origin,t),(0,s.b)(n.vector,e,t),n}function h(t,e,n){return function(t,e,n,r,o){const{vector:a,origin:u}=t,h=(0,s.b)(c.WM.get(),e,u),l=(0,s.e)(a,h)/(0,s.p)(a);return(0,s.g)(o,a,(0,i.uZ)(l,0,1)),(0,s.a)(o,o,t.origin)}(t,e,0,0,n)}(0,o.c)(),(0,o.c)(),new r.x((()=>a()))},47545:(t,e,n)=>{n.d(e,{d:()=>s});var i=n(22021),r=n(24882);function s(t,e,n){const s=Array.isArray(t),h=s?t.length/e:t.byteLength/(4*e),l=s?t:new Uint32Array(t,0,h*e),f=n?.minReduction??0,d=n?.originalIndices||null,_=d?d.length:0,m=n?.componentOffsets||null;let g=0;if(m)for(let t=0;t<m.length-1;t++){const e=m[t+1]-m[t];e>g&&(g=e)}else g=h;const p=Math.floor(1.1*g)+1;(null==u||u.length<2*p)&&(u=new Uint32Array((0,i.Sf)(2*p)));for(let t=0;t<2*p;t++)u[t]=0;let T=0;const O=!!m&&!!d,A=O?_:h;let N=(0,r.$z)(h);const S=new Uint32Array(_),E=1.96;let b=0!==f?Math.ceil(4*E*E/(f*f)*f*(1-f)):A,R=1,I=m?m[1]:A;for(let t=0;t<A;t++){if(t===b){const e=1-T/t;if(e+E*Math.sqrt(e*(1-e)/t)<f)return null;b*=2}if(t===I){for(let t=0;t<2*p;t++)u[t]=0;if(d)for(let t=m[R-1];t<m[R];t++)S[t]=N[d[t]];I=m[++R]}const n=O?d[t]:t,i=n*e,r=a(l,i,e);let s=r%p,c=T;for(;0!==u[2*s+1];){if(u[2*s]===r){const t=u[2*s+1]-1;if(o(l,i,t*e,e)){c=N[t];break}}s++,s>=p&&(s-=p)}c===T&&(u[2*s]=r,u[2*s+1]=n+1,T++),N[n]=c}if(0!==f&&1-T/h<f)return null;if(O){for(let t=m[R-1];t<S.length;t++)S[t]=N[d[t]];N=(0,r.mi)(S)}const y=s?new Array(T):new Uint32Array(T*e);T=0;for(let t=0;t<A;t++)N[t]===T&&(c(l,(O?d[t]:t)*e,y,T*e,e),T++);if(d&&!O){const t=new Uint32Array(_);for(let e=0;e<t.length;e++)t[e]=N[d[e]];N=(0,r.mi)(t)}return{buffer:Array.isArray(y)?y:y.buffer,indices:N,uniqueCount:T}}function o(t,e,n,i){for(let r=0;r<i;r++)if(t[e+r]!==t[n+r])return!1;return!0}function c(t,e,n,i,r){for(let s=0;s<r;s++)n[i+s]=t[e+s]}function a(t,e,n){let i=0;for(let r=0;r<n;r++)i=t[e+r]+i|0,i=i+(i<<11)+(i>>>2)|0;return i>>>0}let u=null},16306:(t,e,n)=>{n.d(e,{aX:()=>S});var i=n(68773),r=n(20102),s=n(92604),o=n(38913),c=n(58901),a=n(73913),u=n(8744),h=n(40488),l=(n(66577),n(3172)),f=n(33955),d=n(11282),_=n(17452);async function m(t,e,n){const i="string"==typeof t?(0,_.mN)(t):t,r=e[0].spatialReference,s=(0,f.Ji)(e[0]),o={...n,query:{...i.query,f:"json",sr:r.wkid??JSON.stringify(r),geometries:JSON.stringify((a=e,{geometryType:(0,f.Ji)(a[0]),geometries:a.map((t=>t.toJSON()))}))}},{data:c}=await(0,l.default)(i.path+"/simplify",o);var a;return function(t,e,n){const i=(0,f.q9)(e);return t.map((t=>{const e=i.fromJSON(t);return e.spatialReference=n,e}))}(c.geometries,s,r)}const g=s.Z.getLogger("esri.geometry.support.normalizeUtils");function p(t){return"polygon"===t[0].type}function T(t){return"polyline"===t[0].type}function O(t,e,n){if(e){const e=function(t,e){if(!(t instanceof c.Z||t instanceof o.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(t),new r.Z(t)}const n=(0,a.x3)(t),i=[];for(const t of n){const n=[];i.push(n),n.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const r=t[i][0],s=t[i][1],o=t[i+1][0],c=t[i+1][1],a=Math.sqrt((o-r)*(o-r)+(c-s)*(c-s)),u=(c-s)/a,h=(o-r)/a,l=a/e;if(l>1){for(let t=1;t<=l-1;t++){const i=t*e,o=h*i+r,c=u*i+s;n.push([o,c])}const t=(a+Math.floor(l-1)*e)/2,i=h*t+r,o=u*t+s;n.push([i,o])}n.push([o,c])}}return function(t){return"polygon"===t.type}(t)?new o.Z({rings:i,spatialReference:t.spatialReference}):new c.Z({paths:i,spatialReference:t.spatialReference})}(t,1e6);t=(0,h.Sx)(e,!0)}return n&&(t=(0,a.Sy)(t,n)),t}function A(t,e,n){if(Array.isArray(t)){const i=t[0];if(i>e){const n=(0,a.XZ)(i,e);t[0]=i+n*(-2*e)}else if(i<n){const e=(0,a.XZ)(i,n);t[0]=i+e*(-2*n)}}else{const i=t.x;if(i>e){const n=(0,a.XZ)(i,e);t=t.clone().offset(n*(-2*e),0)}else if(i<n){const e=(0,a.XZ)(i,n);t=t.clone().offset(e*(-2*n),0)}}return t}function N(t,e){let n=-1;for(let i=0;i<e.cutIndexes.length;i++){const r=e.cutIndexes[i],s=e.geometries[i],o=(0,a.x3)(s);for(let t=0;t<o.length;t++){const e=o[t];e.some((n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const i=e[t][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,a.XZ)(n,180);for(let n=0;n<e.length;n++){const e=s.getPoint(t,n);s.setPoint(t,n,e.clone().offset(i,0))}return!0}}))}if(r===n){if(p(t))for(const e of(0,a.x3)(s))t[r]=t[r].addRing(e);else if(T(t))for(const e of(0,a.x3)(s))t[r]=t[r].addPath(e)}else n=r,t[r]=s}return t}async function S(t,e,n){if(!Array.isArray(t))return S([t],e);e&&"string"!=typeof e&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof e?e:e?.url??i.Z.geometryServiceUrl;let s,_,p,T,E,b,R,I,y=0;const M=[],v=[];for(const e of t)if(null!=e)if(s||(s=e.spatialReference,_=(0,u.C5)(s),p=s.isWebMercator,b=p?102100:4326,T=a.UZ[b].maxX,E=a.UZ[b].minX,R=a.UZ[b].plus180Line,I=a.UZ[b].minus180Line),_)if("mesh"===e.type)v.push(e);else if("point"===e.type)v.push(A(e.clone(),T,E));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>A(t,T,E))),v.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,_);v.push(t.rings?new o.Z(t):t)}else if(e.extent){const t=e.extent,n=(0,a.XZ)(t.xmin,E)*(2*T);let i=0===n?e.clone():(0,a.Sy)(e.clone(),n);t.offset(n,0),t.intersects(R)&&t.xmax!==T?(y=t.xmax>y?t.xmax:y,i=O(i,p),M.push(i),v.push("cut")):t.intersects(I)&&t.xmin!==E?(y=t.xmax*(2*T)>y?t.xmax*(2*T):y,i=O(i,p,360),M.push(i),v.push("cut")):v.push(i)}else v.push(e.clone());else v.push(e);else v.push(e);let F=(0,a.XZ)(y,T),L=-90;const w=F,x=new c.Z;for(;F>0;){const t=360*F-180;x.addPath([[t,L],[t,-1*L]]),L*=-1,F--}if(M.length>0&&w>0){const e=N(M,await async function(t,e,n,i){const r=(0,d.en)(t),s=e[0].spatialReference,o={...i,query:{...r.query,f:"json",sr:JSON.stringify(s),target:JSON.stringify({geometryType:(0,f.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},c=await(0,l.default)(r.path+"/cut",o),{cutIndexes:a,geometries:u=[]}=c.data;return{cutIndexes:a,geometries:u.map((t=>{const e=(0,f.im)(t);return e.spatialReference=s,e}))}}(r,M,x,n)),i=[],s=[];for(let n=0;n<v.length;n++){const r=v[n];if("cut"!==r)s.push(r);else{const r=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(i.push(r),s.push("simplify")):s.push(p?(0,h.$)(r):r)}}if(!i.length)return s;const o=await m(r,i,n),c=[];for(let t=0;t<s.length;t++){const e=s[t];"simplify"!==e?c.push(e):c.push(p?(0,h.$)(o.shift()):o.shift())}return c}const P=[];for(let t=0;t<v.length;t++){const e=v[t];if("cut"!==e)P.push(e);else{const t=M.shift();P.push(!0===p?(0,h.$)(t):t)}}return P}},73913:(t,e,n)=>{n.d(e,{Sy:()=>a,UZ:()=>o,XZ:()=>c,x3:()=>u});var i=n(58901),r=n(82971),s=n(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:r.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:r.Z.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function a(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,s.oU)(t)?t.rings:t.paths}},62073:(t,e,n)=>{n(22021),n(17896);var i,r,s=n(65617);n(29268),n(61277),n(12981),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(r=i||(i={}))[r.NONE=0]="NONE",r[r.CLAMP=1]="CLAMP",r[r.INFINITE_MIN=4]="INFINITE_MIN",r[r.INFINITE_MAX=8]="INFINITE_MAX",i.INFINITE_MIN,i.INFINITE_MAX,i.INFINITE_MAX},78341:(t,e,n)=>{n.d(e,{JI:()=>u,Ue:()=>o,re:()=>a}),n(67676);var i=n(22807),r=n(17896),s=n(65617);function o(t){return t?c((0,s.a)(t.origin),(0,s.a)(t.direction)):c((0,s.c)(),(0,s.c)())}function c(t,e){return{origin:t,direction:e}}function a(t,e){const n=h.get();return n.origin=t,n.direction=e,n}function u(t,e,n){const i=(0,r.e)(t.direction,(0,r.b)(n,e,t.origin));return(0,r.a)(n,t.origin,(0,r.g)(n,t.direction,i)),n}n(12981);const h=new i.x((()=>o()))},61277:(t,e,n)=>{n.d(e,{EU:()=>o});var i=n(22021),r=n(17896),s=n(65617);function o(t,e){const n=(0,r.e)(t,e)/((0,r.l)(t)*(0,r.l)(e));return-(0,i.ZF)(n)}(0,s.c)(),(0,s.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>_,WM:()=>d});var i=n(43090),r=n(41213),s=n(46521),o=n(13598),c=n(94961),a=n(97323),u=n(65617),h=n(88669);class l{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,r.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=f){return new l(16,a.c,t)}static createVec3f64(t=f){return new l(24,u.b,t)}static createVec4f64(t=f){return new l(32,h.a,t)}static createMat3f64(t=f){return new l(72,s.a,t)}static createMat4f64(t=f){return new l(128,o.a,t)}static createQuatf64(t=f){return new l(32,c.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const f=4*i.Y8.KILOBYTES,d=(l.createVec2f64(),l.createVec3f64()),_=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64());l.createQuatf64()},11282:(t,e,n)=>{n.d(e,{cv:()=>c,en:()=>o,lA:()=>s}),n(68773),n(40330);var i=n(22974),r=n(17452);function s(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,r.mN)(t):(0,i.d9)(t)}function c(t,e,n){const i={};for(const r in t){if("declaredClass"===r)continue;const s=t[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s)){i[r]=[];for(let t=0;t<s.length;t++)i[r][t]=c(s[t])}else if("object"==typeof s)if(s.toJSON){const t=s.toJSON(n&&n[r]);i[r]=e?t:JSON.stringify(t)}else i[r]=e?s:JSON.stringify(s);else i[r]=s}return i}n(71058)},5329:(t,e,n)=>{n.d(e,{K:()=>s});var i=n(35371),r=n(21968);function s(t,e=0){const n=t.stride;return Array.from(t.fields.keys()).filter((e=>{const n=t.fields.get(e)?.optional;return!(n&&n.glPadding)})).map((i=>{const s=t.fields.get(i),c=s.constructor.ElementCount,a=o(s.constructor.ElementType),u=s.offset,h=!(!s.optional||!s.optional.glNormalized);return new r.G(i,c,a,u,n,h,e)}))}function o(t){const e=c[t];if(e)return e;throw new Error("BufferType not supported in WebGL")}const c={u8:i.g.UNSIGNED_BYTE,u16:i.g.UNSIGNED_SHORT,u32:i.g.UNSIGNED_INT,i8:i.g.BYTE,i16:i.g.SHORT,i32:i.g.INT,f32:i.g.FLOAT}},35065:(t,e,n)=>{var i;n.d(e,{T:()=>i}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.AUXPOS1="auxpos1",t.AUXPOS2="auxpos2",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.MODELORIGINHI="modelOriginHi",t.MODELORIGINLO="modelOriginLo",t.MODEL="model",t.MODELNORMAL="modelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMALA="normalA",t.NORMALB="normalB",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.U8PADDING="u8padding",t.U16PADDING="u16padding",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.OBJECTANDLAYERIDCOLOR_INSTANCED="objectAndLayerIdColor_instanced"}(i||(i={}))},17288:(t,e,n)=>{n.d(e,{Hr:()=>h,dG:()=>u,tf:()=>o});var i=n(5329),r=n(65576),s=n(35065);const o=(0,r.U$)().vec3f(s.T.POSITION).u16(s.T.COMPONENTINDEX).u16(s.T.U16PADDING),c=(0,r.U$)().vec2u8(s.T.SIDENESS),a=((0,i.K)(c),(0,r.U$)().vec3f(s.T.POSITION0).vec3f(s.T.POSITION1).u16(s.T.COMPONENTINDEX).u8(s.T.VARIANTOFFSET,{glNormalized:!0}).u8(s.T.VARIANTSTROKE).u8(s.T.VARIANTEXTENSION,{glNormalized:!0}).u8(s.T.U8PADDING,{glPadding:!0}).u16(s.T.U16PADDING,{glPadding:!0})),u=a.clone().vec3f(s.T.NORMAL),h=a.clone().vec3f(s.T.NORMALA).vec3f(s.T.NORMALB);new Map([[s.T.POSITION0,0],[s.T.POSITION1,1],[s.T.COMPONENTINDEX,2],[s.T.VARIANTOFFSET,3],[s.T.VARIANTSTROKE,4],[s.T.VARIANTEXTENSION,5],[s.T.NORMAL,6],[s.T.NORMALA,6],[s.T.NORMALB,7],[s.T.SIDENESS,8]])},97411:(t,e,n)=>{n.d(e,{n:()=>h});var i=n(67676),r=n(22021),s=n(17896),o=n(65617);const c=-1;var a,u;function h(t,e,n,o=p){const a=t.vertices.position,u=t.vertices.componentIndex,h=(0,r.Vl)(o.anglePlanar),g=(0,r.Vl)(o.angleSignificantEdge),T=Math.cos(g),O=Math.cos(h),A=m.edge,N=A.position0,S=A.position1,E=A.faceNormal0,b=A.faceNormal1,R=_(t),I=function(t){const e=t.faces.length/3,n=t.faces,i=t.neighbors;let r=0;for(let t=0;t<e;t++){const e=i[3*t],s=i[3*t+1],o=i[3*t+2],a=n[3*t],u=n[3*t+1],h=n[3*t+2];r+=e===c||a<u?1:0,r+=s===c||u<h?1:0,r+=o===c||h<a?1:0}const s=new Int32Array(4*r);let o=0;for(let t=0;t<e;t++){const e=i[3*t],r=i[3*t+1],a=i[3*t+2],u=n[3*t],h=n[3*t+1],l=n[3*t+2];(e===c||u<h)&&(s[o++]=u,s[o++]=h,s[o++]=t,s[o++]=e),(r===c||h<l)&&(s[o++]=h,s[o++]=l,s[o++]=t,s[o++]=r),(a===c||l<u)&&(s[o++]=l,s[o++]=u,s[o++]=t,s[o++]=a)}return s}(t),y=I.length/4,M=e.allocate(y);let v=0;const F=y,L=n.allocate(F);let w=0,x=0,P=0;const z=(0,i.w6)(0,y),B=new Float32Array(y);B.forEach(((t,e,n)=>{a.getVec(I[4*e],N),a.getVec(I[4*e+1],S),n[e]=(0,s.i)(N,S)})),z.sort(((t,e)=>B[e]-B[t]));const C=new Array,D=new Array;for(let t=0;t<y;t++){const i=z[t],r=B[i],o=I[4*i],_=I[4*i+1],m=I[4*i+2],g=I[4*i+3],p=g===c;if(a.getVec(o,N),a.getVec(_,S),p)(0,s.s)(E,R[3*m],R[3*m+1],R[3*m+2]),(0,s.c)(b,E),A.componentIndex=u.get(o),A.cosAngle=(0,s.e)(E,b);else{if((0,s.s)(E,R[3*m],R[3*m+1],R[3*m+2]),(0,s.s)(b,R[3*g],R[3*g+1],R[3*g+2]),A.componentIndex=u.get(o),A.cosAngle=(0,s.e)(E,b),f(A,O))continue;A.cosAngle<-.9999&&(0,s.c)(b,E)}x+=r,P++,p||l(A,T)?(e.write(M,v++,A),C.push(r)):d(A,h)&&(n.write(L,w++,A),D.push(r))}const j=new Float32Array(C.reverse()),U=new Float32Array(D.reverse());return{regular:{instancesData:e.trim(M,v),lodInfo:{lengths:j}},silhouette:{instancesData:n.trim(L,w),lodInfo:{lengths:U}},averageEdgeLength:x/P}}function l(t,e){return t.cosAngle<e}function f(t,e){return t.cosAngle>e}function d(t,e){const n=(0,r.ZF)(t.cosAngle),i=m.fwd,o=m.ortho;return(0,s.r)(i,t.position1,t.position0),n*((0,s.e)((0,s.f)(o,t.faceNormal0,t.faceNormal1),i)>0?-1:1)>e}function _(t){const e=t.faces.length/3,n=t.vertices.position,i=t.faces,r=g.v0,o=g.v1,c=g.v2,a=new Float32Array(3*e);for(let t=0;t<e;t++){const e=i[3*t],u=i[3*t+1],h=i[3*t+2];n.getVec(e,r),n.getVec(u,o),n.getVec(h,c),(0,s.b)(o,o,r),(0,s.b)(c,c,r),(0,s.f)(r,o,c),(0,s.n)(r,r),a[3*t]=r[0],a[3*t+1]=r[1],a[3*t+2]=r[2]}return a}(u=a||(a={}))[u.SOLID=0]="SOLID",u[u.SKETCH=1]="SKETCH";const m={edge:{position0:(0,o.c)(),position1:(0,o.c)(),faceNormal0:(0,o.c)(),faceNormal1:(0,o.c)(),componentIndex:0,cosAngle:0},ortho:(0,o.c)(),fwd:(0,o.c)()},g={v0:(0,o.c)(),v1:(0,o.c)(),v2:(0,o.c)()},p={anglePlanar:4,angleSignificantEdge:35}},212:(t,e,n)=>{n.d(e,{Kl:()=>R,n_:()=>L,kY:()=>I,Yr:()=>F});var i=n(47545);function r(t,e,n){const i=e/3,r=new Uint32Array(n+1),s=new Uint32Array(n+1),o=(t,e)=>{t<e?r[t+1]++:s[e+1]++};for(let e=0;e<i;e++){const n=t[3*e],i=t[3*e+1],r=t[3*e+2];o(n,i),o(i,r),o(r,n)}let c=0,a=0;for(let t=0;t<n;t++){const e=r[t+1],n=s[t+1];r[t+1]=c,s[t+1]=a,c+=e,a+=n}const u=new Uint32Array(6*i),h=r[n],l=(t,e,n)=>{if(t<e){const i=r[t+1]++;u[2*i]=e,u[2*i+1]=n}else{const i=s[e+1]++;u[2*h+2*i]=t,u[2*h+2*i+1]=n}};for(let e=0;e<i;e++){const n=t[3*e],i=t[3*e+1],r=t[3*e+2];l(n,i,e),l(i,r,e),l(r,n,e)}const f=(t,e)=>{const n=2*t,i=e-t;for(let t=1;t<i;t++){const e=u[n+2*t],i=u[n+2*t+1];let r=t-1;for(;r>=0&&u[n+2*r]>e;r--)u[n+2*r+2]=u[n+2*r],u[n+2*r+3]=u[n+2*r+1];u[n+2*r+2]=e,u[n+2*r+3]=i}};for(let t=0;t<n;t++)f(r[t],r[t+1]),f(h+s[t],h+s[t+1]);const d=new Int32Array(3*i),_=(e,n)=>e===t[3*n]?0:e===t[3*n+1]?1:e===t[3*n+2]?2:-1,m=(t,e)=>{const n=_(t,e);d[3*e+n]=-1},g=(t,e,n,i)=>{const r=_(t,e);d[3*e+r]=i;const s=_(n,i);d[3*i+s]=e};for(let t=0;t<n;t++){let e=r[t];const n=r[t+1];let i=s[t];const o=s[t+1];for(;e<n&&i<o;){const n=u[2*e],r=u[2*h+2*i];n===r?(g(t,u[2*e+1],r,u[2*h+2*i+1]),e++,i++):n<r?(m(t,u[2*e+1]),e++):(m(r,u[2*h+2*i+1]),i++)}for(;e<n;)m(t,u[2*e+1]),e++;for(;i<o;)m(u[2*h+2*i],u[2*h+2*i+1]),i++}return d}var s=n(65576),o=n(35065),c=n(17288),a=n(77734),u=n(17896),h=n(65617),l=n(5329);class f{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?p:g}write(t,e,n){const i=this._edgeHashFunction(n);E.seed=i;const r=E.getIntRange(0,255),s=E.getIntRange(0,this.settings.variants-1),o=E.getFloat(),c=255*(.5*function(t,e){const n=t<0?-1:1;return Math.abs(t)**1.2*n}(-(1-Math.min(o/.7,1))+Math.max(0,o-.7)/(1-.7))+.5);t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1),t.componentIndex.set(e,n.componentIndex),t.variantOffset.set(e,r),t.variantStroke.set(e,s),t.variantExtension.set(e,c)}trim(t,e){return t.slice(0,e)}}const d=new Float32Array(6),_=new Uint32Array(d.buffer),m=new Uint32Array(1);function g(t){const e=d;e[0]=t.position0[0],e[1]=t.position0[1],e[2]=t.position0[2],e[3]=t.position1[0],e[4]=t.position1[1],e[5]=t.position1[2],m[0]=5381;for(let t=0;t<_.length;t++)m[0]=31*m[0]+_[t];return m[0]}function p(t){const e=d;e[0]=O(t.position0[0]),e[1]=O(t.position0[1]),e[2]=O(t.position0[2]),e[3]=O(t.position1[0]),e[4]=O(t.position1[1]),e[5]=O(t.position1[2]),m[0]=5381;for(let t=0;t<_.length;t++)m[0]=31*m[0]+_[t];return m[0]}const T=1e4;function O(t){return Math.round(t*T)/T}class A{constructor(){this._commonWriter=new f}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return c.dG.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n),(0,u.a)(S,n.faceNormal0,n.faceNormal1),(0,u.n)(S,S),t.normal.setVec(e,S)}trim(t,e){return this._commonWriter.trim(t,e)}}A.Layout=c.dG,A.glLayout=(0,l.K)(c.dG,1);class N{constructor(){this._commonWriter=new f}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return c.Hr.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n),t.normalA.setVec(e,n.faceNormal0),t.normalB.setVec(e,n.faceNormal1)}trim(t,e){return this._commonWriter.trim(t,e)}}N.Layout=c.Hr,N.glLayout=(0,l.K)(c.Hr,1);const S=(0,h.c)(),E=new a.Z;var b=n(97411);function R(t){const e=I(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return M.updateSettings(t.writerSettings),v.updateSettings(t.writerSettings),(0,b.n)(e,M,v)}function I(t,e,n,s){if(e){const e=r(n,s,t.count);return new y(n,s,e,t)}const o=(0,i.d)(t.buffer,t.stride/4,{originalIndices:n,originalIndicesLength:s}),a=r(o.indices,s,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:a,vertices:c.tf.createView(o.buffer)}}class y{constructor(t,e,n,i){this.faces=t,this.facesLength=e,this.neighbors=n,this.vertices=i}}const M=new A,v=new N,F=(0,s.U$)().vec3f(o.T.POSITION0).vec3f(o.T.POSITION1),L=(0,s.U$)().vec3f(o.T.POSITION0).vec3f(o.T.POSITION1).u16(o.T.COMPONENTINDEX).u16(o.T.U16PADDING,{glPadding:!0})},73248:(t,e,n)=>{n.r(e),n.d(e,{default:()=>tt});var i,r,s,o,c=n(43697),a=n(95330),u=(n(92604),n(75215),n(67676),n(80442),n(20102),n(52011)),h=n(17896),l=n(65617),f=n(16996),d=n(29268),_=n(26993),m=n(71143),g=n(44553),p=n(22807),T=(n(52138),n(98766),n(88669)),O=n(78341);function A(t){return t?{ray:(0,O.Ue)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,O.Ue)(),c0:0,c1:Number.MAX_VALUE}}function N(t,e){for(let n=0;n<s.NUM;n++){const i=t[n];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=e[3])return!1}return!0}new p.x((()=>A())),n(62073),n(12981),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t[t.BOTTOM=2]="BOTTOM",t[t.TOP=3]="TOP",t[t.NEAR=4]="NEAR",t[t.FAR=5]="FAR"}(i||(i={})),function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(r||(r={})),r.FAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_LEFT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_BOTTOM_RIGHT,r.NEAR_TOP_RIGHT,r.NEAR_TOP_LEFT,r.FAR_BOTTOM_RIGHT,r.FAR_BOTTOM_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_RIGHT,r.NEAR_BOTTOM_RIGHT,r.FAR_BOTTOM_RIGHT,r.FAR_TOP_RIGHT,r.NEAR_TOP_RIGHT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_TOP_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_LEFT,r.NEAR_TOP_LEFT,r.NEAR_TOP_RIGHT,r.FAR_TOP_RIGHT,function(t){t[t.NUM=6]="NUM"}(s||(s={})),function(t){t[t.NUM=8]="NUM"}(o||(o={})),(0,T.f)(-1,-1,-1,1),(0,T.f)(1,-1,-1,1),(0,T.f)(1,1,-1,1),(0,T.f)(-1,1,-1,1),(0,T.f)(-1,-1,1,1),(0,T.f)(1,-1,1,1),(0,T.f)(1,1,1,1),(0,T.f)(-1,1,1,1),new p.x(A),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)();var S,E,b=n(11726);class R{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new I,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),I.clearPool(),C[0]=null,G.prune(),q.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=I.acquire();for(let i=0;i<e;i++){const e=t[i];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}I.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=I.acquire();for(const i of t){const t=null!=e?e:(0,d.j)(this.objectToBoundingSphere(i),Z);x(t[3])?(n.init(this._root),this._remove(i,t,n)):this._degenerateObjects.delete(i)}I.release(n),this._shrink()}update(t,e){if(!x(e[3])&&this._isDegenerate(t))return;const n=function(t){return C[0]=t,C}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const i=(0,O.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(i,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,i){const r=(0,O.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(r,t,i))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(r,t,i)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(r,t,i)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,i=(()=>!0),r=1/0){let s=1/0,o=1/0,c=null;const a=L(t,e),u=a=>{if(--r,!i(a))return;const u=this.objectToBoundingSphere(a);if(!N(n,u))return;const h=w(t,e,(0,d.g)(u)),l=h-u[3],f=h+u[3];l<s&&(s=l,o=f,c=a)};return this._forEachNodeDepthOrdered(this._root,(i=>{if(r<=0||!N(n,i.bounds))return!1;if((0,h.g)(j,a,i.halfSize),(0,h.a)(j,j,i.bounds),w(t,e,j)>o)return!1;const s=i.node;return s.terminals.forAll((t=>u(t))),null!==s.residents&&s.residents.forAll((t=>u(t))),!0}),t,e),c}forEachInDepthRange(t,e,n,i,r,s,o){let c=-1/0,a=1/0;const u={setRange:t=>{n===R.DepthOrder.FRONT_TO_BACK?(c=Math.max(c,t.near),a=Math.min(a,t.far)):(c=Math.max(c,-t.far),a=Math.min(a,-t.near))}};u.setRange(i);const l=w(e,n,t),f=L(e,n),_=L(e,-n),m=t=>{if(!o(t))return;const i=this.objectToBoundingSphere(t),h=(0,d.g)(i),f=w(e,n,h)-l,_=f-i[3],m=f+i[3];_>a||m<c||!N(s,i)||r(t,u)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!N(s,t.bounds))return!1;if((0,h.g)(j,f,t.halfSize),(0,h.a)(j,j,t.bounds),w(e,n,j)-l>a)return!1;if((0,h.g)(j,_,t.halfSize),(0,h.a)(j,j,t.bounds),w(e,n,j)-l<c)return!1;const i=t.node;return i.terminals.forAll((t=>m(t))),null!==i.residents&&i.residents.forAll((t=>m(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.e)(e),i=(0,d.g)(e),r=e=>{const r=this.objectToBoundingSphere(e),s=(0,d.e)(r),o=n+s;return!((0,h.d)((0,d.g)(r),i)-o*o<=0)||t(e)};let s=!0;const o=t=>{s&&(s=r(t))};this._forEachNode(this._root,(t=>{const e=(0,d.e)(t.bounds),r=n+e;if((0,h.d)((0,d.g)(t.bounds),i)-r*r>0)return!1;const c=t.node;return c.terminals.forAll(o),s&&null!==c.residents&&c.residents.forAll(o),s})),s&&this.forEachDegenerateObject(o)}_intersectsNode(t,e){return v(e.bounds,2*-e.halfSize,U),v(e.bounds,2*e.halfSize,V),(0,b.yK)(t.origin,t.direction,U,V)}_intersectsNodeWithOffset(t,e,n){return v(e.bounds,2*-e.halfSize,U),v(e.bounds,2*e.halfSize,V),n.applyToMinMax(U,V),(0,b.yK)(t.origin,t.direction,U,V)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.k)(n,t)}_intersectsObjectWithOffset(t,e,n){const i=this.objectToBoundingSphere(e);return!(i[3]>0)||(0,d.k)(n.applyToBoundingSphere(i),t)}_forEachNode(t,e){let n=I.acquire().init(t);const i=[n];for(;0!==i.length;){if(n=i.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&i.push(I.acquire().init(n).advance(t));I.release(n)}}_forEachNodeDepthOrdered(t,e,n,i=R.DepthOrder.FRONT_TO_BACK){let r=I.acquire().init(t);const s=[r];for(function(t,e,n){if(!q.length)for(let t=0;t<8;++t)q.push({index:0,distance:0});for(let n=0;n<8;++n){const i=P[n];q.data[n].index=n,q.data[n].distance=w(t,e,i)}q.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=q.data[t].index}(n,i,Y);0!==s.length;){if(r=s.pop(),e(r)&&!r.isLeaf())for(let t=7;t>=0;--t){const e=Y[t];r.node.children[e]&&s.push(I.acquire().init(r).advance(e))}I.release(r)}}_remove(t,e,n){G.clear();const i=n.advanceTo(e,((t,e)=>{G.push(t.node),G.push(e)}))?n.node.terminals:n.node.residents;if(i.removeUnordered(t),0===i.length)for(let t=G.length-2;t>=0;t-=2){const e=G.data[t],n=G.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new g.Z({shrink:!0})),!0)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const i=I.acquire().init(t);this._add(e.getItemAt(n),i),I.release(i)}}_grow(t,e){if(0!==e&&(F(t,e,(t=>this.objectToBoundingSphere(t)),H),x(H[3])&&!this._fitsInsideTree(H)))if(this._nodeIsEmpty(this._root.node))(0,d.j)(H,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(H);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(H,t):this._growRootAsSubNode(t),I.release(t)}}_rebuildTree(t,e){(0,h.c)(X,e.bounds),X[3]=e.halfSize,F([t,X],2,(t=>t),k);const n=I.acquire().init(this._root);this._root.initFrom(null,k,k[3]),this._root.increaseHalfSize(1.25),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),I.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let i=-1/0;const r=this._root.bounds,s=this._root.halfSize;for(let t=0;t<3;t++){const o=r[t]-s-(n[t]-e),c=n[t]+e-(r[t]+s),a=Math.max(0,Math.ceil(o/(2*s))),u=Math.max(0,Math.ceil(c/(2*s)))+1,h=2**Math.ceil(Math.log(a+u)*Math.LOG2E);i=Math.max(i,h),W[t].min=a,W[t].max=u}for(let t=0;t<3;t++){let e=W[t].min,n=W[t].max;const o=(i-(e+n))/2;e+=Math.ceil(o),n+=Math.floor(o);const c=r[t]-s-e*s*2;D[t]=c+(n+e)*s}const o=i*s;return D[3]=o*B,I.acquire().initFrom(null,D,o,0)}_growRootAsSubNode(t){const e=this._root.node;(0,h.c)(H,this._root.bounds),H[3]=this._root.halfSize,this._root.init(t),t.advanceTo(H,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,i=0;for(;i<e.length&&null==t;)n=i++,t=e[n];for(;i<e.length;)if(e[i++])return-1;return n}_isDegenerate(t){return!x(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,i=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:i}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),i=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:i}}static fromJSON(t){const e=new R((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class I{constructor(){this.bounds=(0,d.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,i=this.depth){return this.node=null!=t?t:I.createEmptyNode(),null!=e&&(0,d.j)(e,this.bounds),this.halfSize=n,this.depth=i,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*B}advance(t){let e=this.node.children[t];e||(e=I.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=P[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const i=this._childIndex(t);e&&e(this,i),this.advance(i)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new g.Z({shrink:!0}),residents:new g.Z({shrink:!0})}}static acquire(){return I._pool.acquire()}static release(t){I._pool.release(t)}static clearPool(){I._pool.prune()}}function y(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function M(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function v(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function F(t,e,n,i){if(1===e){const e=n(t[0]);(0,d.j)(e,i)}else{U[0]=1/0,U[1]=1/0,U[2]=1/0,V[0]=-1/0,V[1]=-1/0,V[2]=-1/0;for(let i=0;i<e;i++){const e=n(t[i]);x(e[3])&&(y(U,e),M(V,e))}(0,h.h)(i,U,V,.5),i[3]=Math.max(V[0]-U[0],V[1]-U[1],V[2]-U[2])/2}}function L(t,e){let n,i=1/0;for(let r=0;r<8;++r){const s=w(t,e,z[r]);s<i&&(i=s,n=z[r])}return n}function w(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function x(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}I._pool=new m.Z(I),S=R||(R={}),(E=S.DepthOrder||(S.DepthOrder={}))[E.FRONT_TO_BACK=1]="FRONT_TO_BACK",E[E.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const P=[(0,l.f)(-1,-1,-1),(0,l.f)(1,-1,-1),(0,l.f)(-1,1,-1),(0,l.f)(1,1,-1),(0,l.f)(-1,-1,1),(0,l.f)(1,-1,1),(0,l.f)(-1,1,1),(0,l.f)(1,1,1)],z=[(0,l.f)(-1,-1,-1),(0,l.f)(-1,-1,1),(0,l.f)(-1,1,-1),(0,l.f)(-1,1,1),(0,l.f)(1,-1,-1),(0,l.f)(1,-1,1),(0,l.f)(1,1,-1),(0,l.f)(1,1,1)],B=Math.sqrt(3),C=[null],D=(0,d.c)(),j=(0,l.c)(),U=(0,l.c)(),V=(0,l.c)(),G=new g.Z,Z=(0,d.c)(),H=(0,d.c)(),X=(0,d.c)(),k=(0,d.c)(),W=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],q=new g.Z,Y=[0,0,0,0,0,0,0,0],J=R;var K=n(212);function $(t,e,n){const i=(0,d.c)(),r=(0,d.g)(i);return(0,h.A)(r,r,t,.5),(0,h.A)(r,r,e,.5),i[3]=(0,h.i)(r,t),(0,h.a)(r,r,n),i}let Q=class{constructor(){this._idToComponent=new Map,this._components=new J((t=>t.bounds)),this._edges=new J((t=>t.bounds)),this._tmpLineSegment=(0,f.Ue)(),this._tmpP1=(0,l.c)(),this._tmpP2=(0,l.c)(),this._tmpP3=(0,l.c)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,a.k_)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:i}=t;n.push({id:e,uid:i})}return!0}),t.bounds),!n.length)return;const i={components:n},r=await this.remoteClient.invoke("fetchAllEdgeLocations",i,e??{});for(const t of r.components)this._setFetchEdgeLocations(t)}async add(t){const e=new et(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=K.n_.createView(t.locations),i=new Array(n.count),r=(0,l.c)(),s=(0,l.c)();for(let o=0;o<n.count;o++){n.position0.getVec(o,r),n.position1.getVec(o,s);const c=$(r,s,t.origin),a=new nt(e,o,c);i[o]=a}this._edges.add(i);const{objectIds:o,origin:c}=t;e.info={locations:n,objectIds:o,origin:c}}_addCandidates(t,e,n){const{info:i}=e.component,{origin:r,objectIds:s}=i,o=i.locations,c=o.position0.getVec(e.index,this._tmpP1),a=o.position1.getVec(e.index,this._tmpP2);(0,h.a)(c,c,r),(0,h.a)(a,a,r);const u=s[o.componentIndex.get(e.index)];this._addEdgeCandidate(t,u,c,a,n),this._addVertexCandidate(t,u,c,n),this._addVertexCandidate(t,u,a,n)}_addEdgeCandidate(t,e,n,i,r){if(!(t.types&_.r.EDGE))return;const s=(0,d.g)(t.bounds),o=(0,f.zk)(n,i,this._tmpLineSegment),c=(0,f.nF)(o,s,this._tmpP3);(0,d.l)(t.bounds,c)&&r.push({type:"edge",objectId:e,target:(0,l.a)(c),distance:(0,h.i)(s,c),start:(0,l.a)(n),end:(0,l.a)(i)})}_addVertexCandidate(t,e,n,i){if(!(t.types&_.r.VERTEX))return;const r=(0,d.g)(t.bounds);(0,d.l)(t.bounds,n)&&i.push({type:"vertex",objectId:e,target:(0,l.a)(n),distance:(0,h.i)(r,n)})}};Q=(0,c._)([(0,u.j)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],Q);const tt=Q;class et{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++et.uid}}et.uid=0;class nt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3594],{5732:(t,e,i)=>{i.d(e,{c:()=>s});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}},69801:(t,e,i)=>{i.d(e,{WJ:()=>a,Xq:()=>o});var s,n,r=i(44553);(n=s||(s={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,i){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",i&&(this._storage.registerRemoveFunc(this._namespace,i),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,i,s=0){this._storage.put(this._namespace+t,e,i,s)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,i){this._storage.updateSize(this._namespace+t,e,i)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class a{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get sizeMB(){return this._size/1024/1024}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,i,n){const r=this._db.get(t);if(r&&(this._size-=r.size,this._db.delete(t),r.entry!==e&&this._notifyRemove(t,r.entry,s.ALL)),i>this._maxSize)return void this._notifyRemove(t,e,s.ALL);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return void console.warn("Refusing to cache entry with invalid size "+i);const o=1+Math.max(n,-3)- -3;this._db.set(t,{entry:e,size:i,lifetime:o,lives:o}),this._size+=i,this._checkSizeLimit()}updateSize(t,e,i){const n=this._db.get(t);if(n&&n.entry===e){for(this._size-=n.size;i>this._maxSize;){const n=this._notifyRemove(t,e,s.SOME);if(!(null!=n&&n>0))return void this._db.delete(t);i=n}n.size=i,this._size+=i,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach(((t,s)=>{const n=t.lifetime;i[n]=(i[n]||0)+t.size,this._users.forAll((i=>{const n=i.namespace;if(s.startsWith(n)){const i=e[n]||0;e[n]=i+t.size}}))}));const s={};this._users.forAll((t=>{const i=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const n=e[i]||0;e[i]=n,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"}));const n=Object.keys(e);n.sort(((t,i)=>e[i]-e[t])),n.forEach((i=>t[i]=Math.round(e[i]/2**20)+"MB / "+s[i]));for(let e=i.length-1;e>=0;--e){const s=i[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,s.ALL))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,s.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i){let s;return this._removeFuncs.some((n=>{if(t.startsWith(n[0])){const t=n[1](e,i);return"number"==typeof t&&(s=t),!0}return!1})),s}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const i=this._notifyRemove(t,e.entry,s.SOME);null!=i&&i>0&&(this._size+=i,e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},24133:(t,e,i)=>{i.d(e,{Q:()=>a});var s=i(67676),n=i(70586),r=i(44553),o=i(88764);class a{constructor(t=9,e){this._compareMinX=u,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),b.prune(),B.prune(),v.prune(),I.prune()}all(t){this._all(this._data,t)}search(t,e){let i=this._data;const s=this._toBBox;if(y(t,i))for(b.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;y(t,o)&&(i.leaf?e(r):p(t,o)?this._all(r,e):b.push(r))}i=b.pop()}}collides(t){let e=this._data;const i=this._toBBox;if(!y(t,e))return!1;for(b.clear();e;){for(let s=0,n=e.children.length;s<n;s++){const n=e.children[s],r=e.leaf?i(n):n;if(y(t,r)){if(e.leaf||p(t,r))return!0;b.push(n)}}e=b.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new w([]),this}remove(t){if(!t)return this;let e,i=this._data,r=null,o=0,a=!1;const h=this._toBBox(t);for(v.clear(),I.clear();i||v.length>0;){if(i||(i=(0,n.j0)(v.pop()),r=v.data[v.length-1],o=I.pop()??0,a=!0),i.leaf&&(e=(0,s.cq)(i.children,t,i.children.length,i.indexHint),-1!==e))return i.children.splice(e,1),v.push(i),this._condense(v),this;a||i.leaf||!p(i,h)?r?(o++,i=r.children[o],a=!1):i=null:(v.push(i),I.push(o),o=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let i=t;for(B.clear();i;){if(!0===i.leaf)for(const t of i.children)e(t);else B.pushArray(i.children);i=B.pop()??null}}_build(t,e,i,s){const n=i-e+1;let r=this._maxEntries;if(n<=r){const s=new w(t.slice(e,i+1));return h(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new z([]);o.height=s;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));x(t,e,i,l,this._compareMinX);for(let n=e;n<=i;n+=l){const e=Math.min(n+l-1,i);x(t,n,e,a,this._compareMinY);for(let i=n;i<=e;i+=a){const n=Math.min(i+a-1,e);o.children.push(this._build(t,i,n,s-1))}}return h(o,this._toBBox),o}_chooseSubtree(t,e,i,s){for(;s.push(e),!0!==e.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],a=f(o),h=_(t,o)-a;h<n?(n=h,s=a<s?a:s,i=o):h===n&&a<s&&(s=a,i=o)}e=i||e.children[0]}return e}_insert(t,e,i){const s=this._toBBox,n=i?t:s(t);v.clear();const r=this._chooseSubtree(n,this._data,e,v);for(r.children.push(t),c(r,n);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;this._adjustParentBBoxes(n,v,e)}_split(t,e){const i=t.data[e],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=i.children.splice(r,i.children.length-r),a=i.leaf?new w(o):new z(o);a.height=i.height,h(i,this._toBBox),h(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(i,a)}_splitRoot(t,e){this._data=new z([t,e]),this._data.height=t.height+1,h(this._data,this._toBBox)}_chooseSplitIndex(t,e,i){let s,n,r;s=n=1/0;for(let o=e;o<=i-e;o++){const e=l(t,0,o,this._toBBox),a=l(t,o,i,this._toBBox),h=g(e,a),c=f(e)+f(a);h<s?(s=h,r=o,n=c<n?c:n):h===s&&c<n&&(n=c,r=o)}return r}_chooseSplitAxis(t,e,i){const s=t.leaf?this._compareMinX:u,n=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,i,s)<this._allDistMargin(t,e,i,n)&&t.children.sort(s)}_allDistMargin(t,e,i,s){t.children.sort(s);const n=this._toBBox,r=l(t,0,e,n),o=l(t,i-e,i,n);let a=m(r)+m(o);for(let s=e;s<i-e;s++){const e=t.children[s];c(r,t.leaf?n(e):e),a+=m(r)}for(let s=i-e-1;s>=e;s--){const e=t.children[s];c(o,t.leaf?n(e):e),a+=m(o)}return a}_adjustParentBBoxes(t,e,i){for(let s=i;s>=0;s--)c(e.data[s],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const i=t.data[e];if(0===i.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,s.cq)(r,i,r.length,n.indexHint),1)}else this.clear();else h(i,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){l(t,0,t.children.length,e,t)}function l(t,e,i,s,n){n||(n=new w([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<i;o++)r=t.children[o],c(n,t.leaf?s(r):r);return n}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function u(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function _(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){const i=Math.max(t.minX,e.minX),s=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function y(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,i,s,r){const a=[e,i];for(;a.length;){const e=(0,n.j0)(a.pop()),i=(0,n.j0)(a.pop());if(e-i<=s)continue;const h=i+Math.ceil((e-i)/s/2)*s;(0,o.q)(t,h,i,e,r),a.push(i,h,h,e)}}const b=new r.Z,B=new r.Z,v=new r.Z,I=new r.Z({deallocator:void 0});class S{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class M extends S{constructor(){super(...arguments),this.height=1,this.indexHint=new s.SO}}class w extends M{constructor(t){super(),this.children=t,this.leaf=!0}}class z extends M{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,i)=>{i.d(e,{N1:()=>d,YP:()=>h,Z_:()=>_,gx:()=>l,nn:()=>g,on:()=>u,tX:()=>p});var s=i(91460),n=i(50758),r=i(70586),o=i(95330),a=i(26258);function h(t,e,i={}){return c(t,e,i,f)}function l(t,e,i={}){return c(t,e,i,m)}function c(t,e,i={},s){let n=null;const o=i.once?(t,i)=>{s(t)&&((0,r.hw)(n),e(t,i))}:(t,i)=>{s(t)&&e(t,i)};if(n=(0,a.aQ)(t,o,i.sync,i.equals),i.initial){const e=t();o(e,e)}return n}function u(t,e,i,o={}){let a=null,l=null,c=null;function u(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function d(t){o.once&&o.once&&(0,r.hw)(c),i(t)}const f=h(t,((t,i)=>{u(),(0,s.vT)(t)&&(a=t,l=(0,s.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return c=(0,n.kB)((()=>{f.remove(),u()})),c}function d(t,e){return function(t,e,i){if((0,o.Hc)(i))return Promise.reject((0,o.zE)());const s=t();if(e?.(s))return Promise.resolve(s);let a=null;function h(){a=(0,r.hw)(a)}return new Promise(((s,r)=>{a=(0,n.AL)([(0,o.fu)(i,(()=>{h(),r((0,o.zE)())})),c(t,(t=>{h(),s(t)}),{sync:!1,once:!0},e??f)])}))}(t,m,e)}function f(t){return!0}function m(t){return!!t}i(87538);const _={sync:!0},g={initial:!0},p={sync:!0,initial:!0}},16306:(t,e,i)=>{i.d(e,{aX:()=>v});var s=i(68773),n=i(20102),r=i(92604),o=i(38913),a=i(58901),h=i(73913),l=i(8744),c=i(40488),u=(i(66577),i(3172)),d=i(33955),f=i(11282),m=i(17452);async function _(t,e,i){const s="string"==typeof t?(0,m.mN)(t):t,n=e[0].spatialReference,r=(0,d.Ji)(e[0]),o={...i,query:{...s.query,f:"json",sr:n.wkid??JSON.stringify(n),geometries:JSON.stringify((h=e,{geometryType:(0,d.Ji)(h[0]),geometries:h.map((t=>t.toJSON()))}))}},{data:a}=await(0,u.default)(s.path+"/simplify",o);var h;return function(t,e,i){const s=(0,d.q9)(e);return t.map((t=>{const e=s.fromJSON(t);return e.spatialReference=i,e}))}(a.geometries,r,n)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function p(t){return"polygon"===t[0].type}function y(t){return"polyline"===t[0].type}function x(t,e,i){if(e){const e=function(t,e){if(!(t instanceof a.Z||t instanceof o.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(t),new n.Z(t)}const i=(0,h.x3)(t),s=[];for(const t of i){const i=[];s.push(i),i.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const n=t[s][0],r=t[s][1],o=t[s+1][0],a=t[s+1][1],h=Math.sqrt((o-n)*(o-n)+(a-r)*(a-r)),l=(a-r)/h,c=(o-n)/h,u=h/e;if(u>1){for(let t=1;t<=u-1;t++){const s=t*e,o=c*s+n,a=l*s+r;i.push([o,a])}const t=(h+Math.floor(u-1)*e)/2,s=c*t+n,o=l*t+r;i.push([s,o])}i.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new o.Z({rings:s,spatialReference:t.spatialReference}):new a.Z({paths:s,spatialReference:t.spatialReference})}(t,1e6);t=(0,c.Sx)(e,!0)}return i&&(t=(0,h.Sy)(t,i)),t}function b(t,e,i){if(Array.isArray(t)){const s=t[0];if(s>e){const i=(0,h.XZ)(s,e);t[0]=s+i*(-2*e)}else if(s<i){const e=(0,h.XZ)(s,i);t[0]=s+e*(-2*i)}}else{const s=t.x;if(s>e){const i=(0,h.XZ)(s,e);t=t.clone().offset(i*(-2*e),0)}else if(s<i){const e=(0,h.XZ)(s,i);t=t.clone().offset(e*(-2*i),0)}}return t}function B(t,e){let i=-1;for(let s=0;s<e.cutIndexes.length;s++){const n=e.cutIndexes[s],r=e.geometries[s],o=(0,h.x3)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some((i=>{if(i[0]<180)return!0;{let i=0;for(let t=0;t<e.length;t++){const s=e[t][0];i=s>i?s:i}i=Number(i.toFixed(9));const s=-360*(0,h.XZ)(i,180);for(let i=0;i<e.length;i++){const e=r.getPoint(t,i);r.setPoint(t,i,e.clone().offset(s,0))}return!0}}))}if(n===i){if(p(t))for(const e of(0,h.x3)(r))t[n]=t[n].addRing(e);else if(y(t))for(const e of(0,h.x3)(r))t[n]=t[n].addPath(e)}else i=n,t[n]=r}return t}async function v(t,e,i){if(!Array.isArray(t))return v([t],e);e&&"string"!=typeof e&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??s.Z.geometryServiceUrl;let r,m,p,y,I,S,M,w,z=0;const X=[],Y=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,m=(0,l.C5)(r),p=r.isWebMercator,S=p?102100:4326,y=h.UZ[S].maxX,I=h.UZ[S].minX,M=h.UZ[S].plus180Line,w=h.UZ[S].minus180Line),m)if("mesh"===e.type)Y.push(e);else if("point"===e.type)Y.push(b(e.clone(),y,I));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>b(t,y,I))),Y.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,m);Y.push(t.rings?new o.Z(t):t)}else if(e.extent){const t=e.extent,i=(0,h.XZ)(t.xmin,I)*(2*y);let s=0===i?e.clone():(0,h.Sy)(e.clone(),i);t.offset(i,0),t.intersects(M)&&t.xmax!==y?(z=t.xmax>z?t.xmax:z,s=x(s,p),X.push(s),Y.push("cut")):t.intersects(w)&&t.xmin!==I?(z=t.xmax*(2*y)>z?t.xmax*(2*y):z,s=x(s,p,360),X.push(s),Y.push("cut")):Y.push(s)}else Y.push(e.clone());else Y.push(e);else Y.push(e);let Z=(0,h.XZ)(z,y),R=-90;const F=Z,L=new a.Z;for(;Z>0;){const t=360*Z-180;L.addPath([[t,R],[t,-1*R]]),R*=-1,Z--}if(X.length>0&&F>0){const e=B(X,await async function(t,e,i,s){const n=(0,f.en)(t),r=e[0].spatialReference,o={...s,query:{...n.query,f:"json",sr:JSON.stringify(r),target:JSON.stringify({geometryType:(0,d.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(i)}},a=await(0,u.default)(n.path+"/cut",o),{cutIndexes:h,geometries:l=[]}=a.data;return{cutIndexes:h,geometries:l.map((t=>{const e=(0,d.im)(t);return e.spatialReference=r,e}))}}(n,X,L,i)),s=[],r=[];for(let i=0;i<Y.length;i++){const n=Y[i];if("cut"!==n)r.push(n);else{const n=e.shift(),o=t[i];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(s.push(n),r.push("simplify")):r.push(p?(0,c.$)(n):n)}}if(!s.length)return r;const o=await _(n,s,i),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(p?(0,c.$)(o.shift()):o.shift())}return a}const A=[];for(let t=0;t<Y.length;t++){const e=Y[t];if("cut"!==e)A.push(e);else{const t=X.shift();A.push(!0===p?(0,c.$)(t):t)}}return A}},73913:(t,e,i)=>{i.d(e,{Sy:()=>h,UZ:()=>o,XZ:()=>a,x3:()=>l});var s=i(58901),n=i(82971),r=i(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new s.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new s.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){const i=l(t);for(const t of i)for(const i of t)i[0]+=e;return t}function l(t){return(0,r.oU)(t)?t.rings:t.paths}},37549:(t,e,i)=>{i.d(e,{H:()=>a});var s=i(80442),n=i(24133),r=i(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.Q(9,(0,s.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((i,s)=>{t[e++]=s})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,i){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,i)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(t,e,i)=>{i.d(e,{Z:()=>g});var s=i(20102),n=i(32448),r=i(92604),o=i(60437),a=i(24470),h=i(98732),l=i(37549),c=i(29730),u=i(70272),d=i(5428);const f={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new u.u_(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>(null==t.centroid&&(t.centroid=(0,c.Y)(new d.Z,t.geometry,e.hasZ,e.hasM)),t.centroid)};var m=i(11490);const _=(0,o.Ue)();class g{constructor(t){this.geometryInfo=t,this._boundsStore=new l.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new n.Z,this.featureAdapter=f}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach((e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,i,s,n]=this.fullBounds;return{xmin:e,ymin:i,xmax:s,ymax:n,spatialReference:(0,m.S2)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const i of t){const t=this._boundsStore.get(i.objectId);t&&e((0,o.JR)(_,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach((e=>t(e)))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,(t=>{e(this._featuresById.get(t))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let t=!1;this._featuresById.forEach(((e,i)=>{this._markedIds.has(i)||(t=!0,this._remove(e))})),this._markedIds.clear(),t&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void r.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.Z("featurestore:invalid-feature","feature id is missing",{feature:t}));const i=this._featuresById.get(e);let n;if(this._markedIds.add(e),i?(t.displayId=i.displayId,n=this._boundsStore.get(e),this._boundsStore.delete(e)):null!=this.onFeatureAdd&&this.onFeatureAdd(t),null==t.geometry||!t.geometry.coords||!t.geometry.coords.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);n=(0,h.$)(null!=n?n:(0,a.Ue)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=n&&this._boundsStore.set(e,n),this._featuresById.set(e,t)}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._markedIds.delete(e),this._boundsStore.delete(e),this._featuresById.delete(e),t}}},23095:(t,e,i)=>{i.d(e,{O0:()=>u,av:()=>a,b:()=>_,d1:()=>l,og:()=>m});var s=i(8744),n=i(35671);class r{constructor(){this.code=null,this.description=null}}class o{constructor(t){this.error=new r,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=t}}function a(t){return new o(t)}class h{constructor(t){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=t}}function l(t){return new h(t)}const c=new Set;function u(t,e,i,s=!1,r){c.clear();for(const o in i){const h=t.get(o);if(!h)continue;const l=i[o],u=d(h,l);if(u!==l&&r&&r.push({name:"invalid-value-type",message:"attribute value was converted to match the field type",details:{field:h,originalValue:l,sanitizedValue:u}}),c.add(h.name),h&&(s||h.editable)){const t=(0,n.Qc)(h,u);if(t)return a((0,n.vP)(t,h,u));e[h.name]=u}}for(const e of t?.requiredFields??[])if(!c.has(e.name))return a(`missing required field "${e.name}"`);return null}function d(t,e){let i=e;return"string"==typeof e&&(0,n.H7)(t)?i=parseFloat(e):null!=e&&(0,n.qN)(t)&&"string"!=typeof e&&(i=String(e)),(0,n.Pz)(i)}let f;function m(t,e){if(!t||!(0,s.JY)(e))return t;if("rings"in t||"paths"in t){if(null==f)throw new TypeError("geometry engine not loaded");return f.simplify(e,t)}return t}async function _(t,e){!(0,s.JY)(t)||"esriGeometryPolygon"!==e&&"esriGeometryPolyline"!==e||await async function(){return null==f&&(f=await Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247))),f}()}},86719:(t,e,i)=>{i.d(e,{v:()=>s});const s=new(i(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},11282:(t,e,i)=>{i.d(e,{cv:()=>a,en:()=>o,lA:()=>r}),i(68773),i(40330);var s=i(22974),n=i(17452);function r(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,n.mN)(t):(0,s.d9)(t)}function a(t,e,i){const s={};for(const n in t){if("declaredClass"===n)continue;const r=t[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){s[n]=[];for(let t=0;t<r.length;t++)s[n][t]=a(r[t])}else if("object"==typeof r)if(r.toJSON){const t=r.toJSON(i&&i[n]);s[n]=e?t:JSON.stringify(t)}else s[n]=e?r:JSON.stringify(r);else s[n]=r}return s}i(71058)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3594],{5732:(t,e,i)=>{i.d(e,{c:()=>s});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}},69801:(t,e,i)=>{i.d(e,{WJ:()=>a,Xq:()=>o});var s,n,r=i(44553);(n=s||(s={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,i){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",i&&(this._storage.registerRemoveFunc(this._namespace,i),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,i,s=0){this._storage.put(this._namespace+t,e,i,s)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,i){this._storage.updateSize(this._namespace+t,e,i)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class a{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get sizeMB(){return this._size/1024/1024}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,i,n){const r=this._db.get(t);if(r&&(this._size-=r.size,this._db.delete(t),r.entry!==e&&this._notifyRemove(t,r.entry,s.ALL)),i>this._maxSize)return void this._notifyRemove(t,e,s.ALL);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return void console.warn("Refusing to cache entry with invalid size "+i);const o=1+Math.max(n,-3)- -3;this._db.set(t,{entry:e,size:i,lifetime:o,lives:o}),this._size+=i,this._checkSizeLimit()}updateSize(t,e,i){const n=this._db.get(t);if(n&&n.entry===e){for(this._size-=n.size;i>this._maxSize;){const n=this._notifyRemove(t,e,s.SOME);if(!(null!=n&&n>0))return void this._db.delete(t);i=n}n.size=i,this._size+=i,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach(((t,s)=>{const n=t.lifetime;i[n]=(i[n]||0)+t.size,this._users.forAll((i=>{const n=i.namespace;if(s.startsWith(n)){const i=e[n]||0;e[n]=i+t.size}}))}));const s={};this._users.forAll((t=>{const i=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const n=e[i]||0;e[i]=n,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"}));const n=Object.keys(e);n.sort(((t,i)=>e[i]-e[t])),n.forEach((i=>t[i]=Math.round(e[i]/2**20)+"MB / "+s[i]));for(let e=i.length-1;e>=0;--e){const s=i[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,s.ALL))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,s.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i){let s;return this._removeFuncs.some((n=>{if(t.startsWith(n[0])){const t=n[1](e,i);return"number"==typeof t&&(s=t),!0}return!1})),s}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const i=this._notifyRemove(t,e.entry,s.SOME);null!=i&&i>0&&(this._size+=i,e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},24133:(t,e,i)=>{i.d(e,{Q:()=>a});var s=i(67676),n=i(70586),r=i(44553),o=i(88764);class a{constructor(t=9,e){this._compareMinX=u,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),b.prune(),B.prune(),v.prune(),I.prune()}all(t){this._all(this._data,t)}search(t,e){let i=this._data;const s=this._toBBox;if(y(t,i))for(b.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;y(t,o)&&(i.leaf?e(r):p(t,o)?this._all(r,e):b.push(r))}i=b.pop()}}collides(t){let e=this._data;const i=this._toBBox;if(!y(t,e))return!1;for(b.clear();e;){for(let s=0,n=e.children.length;s<n;s++){const n=e.children[s],r=e.leaf?i(n):n;if(y(t,r)){if(e.leaf||p(t,r))return!0;b.push(n)}}e=b.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new w([]),this}remove(t){if(!t)return this;let e,i=this._data,r=null,o=0,a=!1;const h=this._toBBox(t);for(v.clear(),I.clear();i||v.length>0;){if(i||(i=(0,n.j0)(v.pop()),r=v.data[v.length-1],o=I.pop()??0,a=!0),i.leaf&&(e=(0,s.cq)(i.children,t,i.children.length,i.indexHint),-1!==e))return i.children.splice(e,1),v.push(i),this._condense(v),this;a||i.leaf||!p(i,h)?r?(o++,i=r.children[o],a=!1):i=null:(v.push(i),I.push(o),o=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let i=t;for(B.clear();i;){if(!0===i.leaf)for(const t of i.children)e(t);else B.pushArray(i.children);i=B.pop()??null}}_build(t,e,i,s){const n=i-e+1;let r=this._maxEntries;if(n<=r){const s=new w(t.slice(e,i+1));return h(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new z([]);o.height=s;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));x(t,e,i,l,this._compareMinX);for(let n=e;n<=i;n+=l){const e=Math.min(n+l-1,i);x(t,n,e,a,this._compareMinY);for(let i=n;i<=e;i+=a){const n=Math.min(i+a-1,e);o.children.push(this._build(t,i,n,s-1))}}return h(o,this._toBBox),o}_chooseSubtree(t,e,i,s){for(;s.push(e),!0!==e.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],a=f(o),h=_(t,o)-a;h<n?(n=h,s=a<s?a:s,i=o):h===n&&a<s&&(s=a,i=o)}e=i||e.children[0]}return e}_insert(t,e,i){const s=this._toBBox,n=i?t:s(t);v.clear();const r=this._chooseSubtree(n,this._data,e,v);for(r.children.push(t),c(r,n);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;this._adjustParentBBoxes(n,v,e)}_split(t,e){const i=t.data[e],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=i.children.splice(r,i.children.length-r),a=i.leaf?new w(o):new z(o);a.height=i.height,h(i,this._toBBox),h(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(i,a)}_splitRoot(t,e){this._data=new z([t,e]),this._data.height=t.height+1,h(this._data,this._toBBox)}_chooseSplitIndex(t,e,i){let s,n,r;s=n=1/0;for(let o=e;o<=i-e;o++){const e=l(t,0,o,this._toBBox),a=l(t,o,i,this._toBBox),h=g(e,a),c=f(e)+f(a);h<s?(s=h,r=o,n=c<n?c:n):h===s&&c<n&&(n=c,r=o)}return r}_chooseSplitAxis(t,e,i){const s=t.leaf?this._compareMinX:u,n=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,i,s)<this._allDistMargin(t,e,i,n)&&t.children.sort(s)}_allDistMargin(t,e,i,s){t.children.sort(s);const n=this._toBBox,r=l(t,0,e,n),o=l(t,i-e,i,n);let a=m(r)+m(o);for(let s=e;s<i-e;s++){const e=t.children[s];c(r,t.leaf?n(e):e),a+=m(r)}for(let s=i-e-1;s>=e;s--){const e=t.children[s];c(o,t.leaf?n(e):e),a+=m(o)}return a}_adjustParentBBoxes(t,e,i){for(let s=i;s>=0;s--)c(e.data[s],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const i=t.data[e];if(0===i.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,s.cq)(r,i,r.length,n.indexHint),1)}else this.clear();else h(i,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){l(t,0,t.children.length,e,t)}function l(t,e,i,s,n){n||(n=new w([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<i;o++)r=t.children[o],c(n,t.leaf?s(r):r);return n}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function u(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function _(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){const i=Math.max(t.minX,e.minX),s=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function y(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,i,s,r){const a=[e,i];for(;a.length;){const e=(0,n.j0)(a.pop()),i=(0,n.j0)(a.pop());if(e-i<=s)continue;const h=i+Math.ceil((e-i)/s/2)*s;(0,o.q)(t,h,i,e,r),a.push(i,h,h,e)}}const b=new r.Z,B=new r.Z,v=new r.Z,I=new r.Z({deallocator:void 0});class S{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class M extends S{constructor(){super(...arguments),this.height=1,this.indexHint=new s.SO}}class w extends M{constructor(t){super(),this.children=t,this.leaf=!0}}class z extends M{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,i)=>{i.d(e,{N1:()=>d,YP:()=>h,Z_:()=>_,gx:()=>l,nn:()=>g,on:()=>u,tX:()=>p});var s=i(91460),n=i(50758),r=i(70586),o=i(95330),a=i(26258);function h(t,e,i={}){return c(t,e,i,f)}function l(t,e,i={}){return c(t,e,i,m)}function c(t,e,i={},s){let n=null;const o=i.once?(t,i)=>{s(t)&&((0,r.hw)(n),e(t,i))}:(t,i)=>{s(t)&&e(t,i)};if(n=(0,a.aQ)(t,o,i.sync,i.equals),i.initial){const e=t();o(e,e)}return n}function u(t,e,i,o={}){let a=null,l=null,c=null;function u(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function d(t){o.once&&o.once&&(0,r.hw)(c),i(t)}const f=h(t,((t,i)=>{u(),(0,s.vT)(t)&&(a=t,l=(0,s.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return c=(0,n.kB)((()=>{f.remove(),u()})),c}function d(t,e){return function(t,e,i){if((0,o.Hc)(i))return Promise.reject((0,o.zE)());const s=t();if(e?.(s))return Promise.resolve(s);let a=null;function h(){a=(0,r.hw)(a)}return new Promise(((s,r)=>{a=(0,n.AL)([(0,o.fu)(i,(()=>{h(),r((0,o.zE)())})),c(t,(t=>{h(),s(t)}),{sync:!1,once:!0},e??f)])}))}(t,m,e)}function f(t){return!0}function m(t){return!!t}i(87538);const _={sync:!0},g={initial:!0},p={sync:!0,initial:!0}},16306:(t,e,i)=>{i.d(e,{aX:()=>v});var s=i(68773),n=i(20102),r=i(92604),o=i(38913),a=i(58901),h=i(73913),l=i(8744),c=i(40488),u=(i(66577),i(3172)),d=i(33955),f=i(11282),m=i(17452);async function _(t,e,i){const s="string"==typeof t?(0,m.mN)(t):t,n=e[0].spatialReference,r=(0,d.Ji)(e[0]),o={...i,query:{...s.query,f:"json",sr:n.wkid??JSON.stringify(n),geometries:JSON.stringify((h=e,{geometryType:(0,d.Ji)(h[0]),geometries:h.map((t=>t.toJSON()))}))}},{data:a}=await(0,u.default)(s.path+"/simplify",o);var h;return function(t,e,i){const s=(0,d.q9)(e);return t.map((t=>{const e=s.fromJSON(t);return e.spatialReference=i,e}))}(a.geometries,r,n)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function p(t){return"polygon"===t[0].type}function y(t){return"polyline"===t[0].type}function x(t,e,i){if(e){const e=function(t,e){if(!(t instanceof a.Z||t instanceof o.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(t),new n.Z(t)}const i=(0,h.x3)(t),s=[];for(const t of i){const i=[];s.push(i),i.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const n=t[s][0],r=t[s][1],o=t[s+1][0],a=t[s+1][1],h=Math.sqrt((o-n)*(o-n)+(a-r)*(a-r)),l=(a-r)/h,c=(o-n)/h,u=h/e;if(u>1){for(let t=1;t<=u-1;t++){const s=t*e,o=c*s+n,a=l*s+r;i.push([o,a])}const t=(h+Math.floor(u-1)*e)/2,s=c*t+n,o=l*t+r;i.push([s,o])}i.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new o.Z({rings:s,spatialReference:t.spatialReference}):new a.Z({paths:s,spatialReference:t.spatialReference})}(t,1e6);t=(0,c.Sx)(e,!0)}return i&&(t=(0,h.Sy)(t,i)),t}function b(t,e,i){if(Array.isArray(t)){const s=t[0];if(s>e){const i=(0,h.XZ)(s,e);t[0]=s+i*(-2*e)}else if(s<i){const e=(0,h.XZ)(s,i);t[0]=s+e*(-2*i)}}else{const s=t.x;if(s>e){const i=(0,h.XZ)(s,e);t=t.clone().offset(i*(-2*e),0)}else if(s<i){const e=(0,h.XZ)(s,i);t=t.clone().offset(e*(-2*i),0)}}return t}function B(t,e){let i=-1;for(let s=0;s<e.cutIndexes.length;s++){const n=e.cutIndexes[s],r=e.geometries[s],o=(0,h.x3)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some((i=>{if(i[0]<180)return!0;{let i=0;for(let t=0;t<e.length;t++){const s=e[t][0];i=s>i?s:i}i=Number(i.toFixed(9));const s=-360*(0,h.XZ)(i,180);for(let i=0;i<e.length;i++){const e=r.getPoint(t,i);r.setPoint(t,i,e.clone().offset(s,0))}return!0}}))}if(n===i){if(p(t))for(const e of(0,h.x3)(r))t[n]=t[n].addRing(e);else if(y(t))for(const e of(0,h.x3)(r))t[n]=t[n].addPath(e)}else i=n,t[n]=r}return t}async function v(t,e,i){if(!Array.isArray(t))return v([t],e);e&&"string"!=typeof e&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??s.Z.geometryServiceUrl;let r,m,p,y,I,S,M,w,z=0;const X=[],Y=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,m=(0,l.C5)(r),p=r.isWebMercator,S=p?102100:4326,y=h.UZ[S].maxX,I=h.UZ[S].minX,M=h.UZ[S].plus180Line,w=h.UZ[S].minus180Line),m)if("mesh"===e.type)Y.push(e);else if("point"===e.type)Y.push(b(e.clone(),y,I));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>b(t,y,I))),Y.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,m);Y.push(t.rings?new o.Z(t):t)}else if(e.extent){const t=e.extent,i=(0,h.XZ)(t.xmin,I)*(2*y);let s=0===i?e.clone():(0,h.Sy)(e.clone(),i);t.offset(i,0),t.intersects(M)&&t.xmax!==y?(z=t.xmax>z?t.xmax:z,s=x(s,p),X.push(s),Y.push("cut")):t.intersects(w)&&t.xmin!==I?(z=t.xmax*(2*y)>z?t.xmax*(2*y):z,s=x(s,p,360),X.push(s),Y.push("cut")):Y.push(s)}else Y.push(e.clone());else Y.push(e);else Y.push(e);let Z=(0,h.XZ)(z,y),F=-90;const R=Z,L=new a.Z;for(;Z>0;){const t=360*Z-180;L.addPath([[t,F],[t,-1*F]]),F*=-1,Z--}if(X.length>0&&R>0){const e=B(X,await async function(t,e,i,s){const n=(0,f.en)(t),r=e[0].spatialReference,o={...s,query:{...n.query,f:"json",sr:JSON.stringify(r),target:JSON.stringify({geometryType:(0,d.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(i)}},a=await(0,u.default)(n.path+"/cut",o),{cutIndexes:h,geometries:l=[]}=a.data;return{cutIndexes:h,geometries:l.map((t=>{const e=(0,d.im)(t);return e.spatialReference=r,e}))}}(n,X,L,i)),s=[],r=[];for(let i=0;i<Y.length;i++){const n=Y[i];if("cut"!==n)r.push(n);else{const n=e.shift(),o=t[i];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(s.push(n),r.push("simplify")):r.push(p?(0,c.$)(n):n)}}if(!s.length)return r;const o=await _(n,s,i),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(p?(0,c.$)(o.shift()):o.shift())}return a}const T=[];for(let t=0;t<Y.length;t++){const e=Y[t];if("cut"!==e)T.push(e);else{const t=X.shift();T.push(!0===p?(0,c.$)(t):t)}}return T}},73913:(t,e,i)=>{i.d(e,{Sy:()=>h,UZ:()=>o,XZ:()=>a,x3:()=>l});var s=i(58901),n=i(82971),r=i(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new s.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new s.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){const i=l(t);for(const t of i)for(const i of t)i[0]+=e;return t}function l(t){return(0,r.oU)(t)?t.rings:t.paths}},37549:(t,e,i)=>{i.d(e,{H:()=>a});var s=i(80442),n=i(24133),r=i(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.Q(9,(0,s.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((i,s)=>{t[e++]=s})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,i){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,i)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(t,e,i)=>{i.d(e,{Z:()=>g});var s=i(20102),n=i(32448),r=i(92604),o=i(60437),a=i(24470),h=i(98732),l=i(37549),c=i(29730),u=i(70272),d=i(5428);const f={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new u.u_(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>(null==t.centroid&&(t.centroid=(0,c.Y)(new d.Z,t.geometry,e.hasZ,e.hasM)),t.centroid)};var m=i(11490);const _=(0,o.Ue)();class g{constructor(t){this.geometryInfo=t,this._boundsStore=new l.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new n.Z,this.featureAdapter=f}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach((e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,i,s,n]=this.fullBounds;return{xmin:e,ymin:i,xmax:s,ymax:n,spatialReference:(0,m.S2)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const i of t){const t=this._boundsStore.get(i.objectId);t&&e((0,o.JR)(_,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach((e=>t(e)))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,(t=>{e(this._featuresById.get(t))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let t=!1;this._featuresById.forEach(((e,i)=>{this._markedIds.has(i)||(t=!0,this._remove(e))})),this._markedIds.clear(),t&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void r.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.Z("featurestore:invalid-feature","feature id is missing",{feature:t}));const i=this._featuresById.get(e);let n;if(this._markedIds.add(e),i?(t.displayId=i.displayId,n=this._boundsStore.get(e),this._boundsStore.delete(e)):null!=this.onFeatureAdd&&this.onFeatureAdd(t),null==t.geometry||!t.geometry.coords||!t.geometry.coords.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);n=(0,h.$)(null!=n?n:(0,a.Ue)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=n&&this._boundsStore.set(e,n),this._featuresById.set(e,t)}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._markedIds.delete(e),this._boundsStore.delete(e),this._featuresById.delete(e),t}}},23095:(t,e,i)=>{i.d(e,{O0:()=>u,av:()=>a,b:()=>_,d1:()=>l,og:()=>m});var s=i(8744),n=i(35671);class r{constructor(){this.code=null,this.description=null}}class o{constructor(t){this.error=new r,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=t}}function a(t){return new o(t)}class h{constructor(t){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=t}}function l(t){return new h(t)}const c=new Set;function u(t,e,i,s=!1,r){c.clear();for(const o in i){const h=t.get(o);if(!h)continue;const l=i[o],u=d(h,l);if(u!==l&&r&&r.push({name:"invalid-value-type",message:"attribute value was converted to match the field type",details:{field:h,originalValue:l,sanitizedValue:u}}),c.add(h.name),h&&(s||h.editable)){const t=(0,n.Qc)(h,u);if(t)return a((0,n.vP)(t,h,u));e[h.name]=u}}for(const e of t?.requiredFields??[])if(!c.has(e.name))return a(`missing required field "${e.name}"`);return null}function d(t,e){let i=e;return"string"==typeof e&&(0,n.H7)(t)?i=parseFloat(e):null!=e&&(0,n.qN)(t)&&"string"!=typeof e&&(i=String(e)),(0,n.Pz)(i)}let f;function m(t,e){if(!t||!(0,s.JY)(e))return t;if("rings"in t||"paths"in t){if(null==f)throw new TypeError("geometry engine not loaded");return f.simplify(e,t)}return t}async function _(t,e){!(0,s.JY)(t)||"esriGeometryPolygon"!==e&&"esriGeometryPolyline"!==e||await async function(){return null==f&&(f=await Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247))),f}()}},86719:(t,e,i)=>{i.d(e,{v:()=>s});const s=new(i(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},11282:(t,e,i)=>{i.d(e,{cv:()=>a,en:()=>o,lA:()=>r}),i(68773),i(40330);var s=i(22974),n=i(17452);function r(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,n.mN)(t):(0,s.d9)(t)}function a(t,e,i){const s={};for(const n in t){if("declaredClass"===n)continue;const r=t[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){s[n]=[];for(let t=0;t<r.length;t++)s[n][t]=a(r[t])}else if("object"==typeof r)if(r.toJSON){const t=r.toJSON(i&&i[n]);s[n]=e?t:JSON.stringify(t)}else s[n]=e?r:JSON.stringify(r);else s[n]=r}return s}i(71058)}}]);
|