@arcgis/core 5.1.0-next.105 → 5.1.0-next.106
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/analysis/AreaMeasurementAnalysis.d.ts +5 -5
- package/analysis/DimensionAnalysis.d.ts +3 -3
- package/analysis/DimensionSimpleStyle.d.ts +2 -2
- package/analysis/DirectLineMeasurementAnalysis.d.ts +4 -4
- package/analysis/DistanceMeasurementAnalysis.d.ts +4 -4
- package/analysis/ElevationProfileAnalysis.d.ts +3 -3
- package/analysis/LengthDimension.d.ts +2 -2
- package/analysis/LineOfSightAnalysis.d.ts +4 -4
- package/analysis/ShadowCast/DiscreteOptions.d.ts +7 -3
- package/analysis/ShadowCast/MinDurationOptions.d.ts +5 -1
- package/analysis/ShadowCast/TotalDurationOptions.d.ts +7 -3
- package/analysis/ShadowCast/types.d.ts +1 -1
- package/analysis/ShadowCastAnalysis.d.ts +11 -6
- package/analysis/SliceAnalysis.d.ts +4 -4
- package/analysis/SlicePlane.d.ts +3 -3
- package/analysis/Viewshed.d.ts +2 -2
- package/analysis/ViewshedAnalysis.d.ts +3 -3
- package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +1 -1
- package/analysis/VolumeMeasurementAnalysis.d.ts +3 -3
- package/applications/Components/imageryUtils.d.ts +24 -0
- package/applications/Components/layerUtils.d.ts +21 -0
- package/applications/Components/layerUtils.js +2 -0
- package/applications/Components/templateUtils.d.ts +11 -1
- package/applications/Components/templateUtils.js +1 -1
- package/arcgisGlobal.d.ts +1 -0
- package/assets/components/assets/icon/buttons16.json +1 -0
- package/assets/components/assets/icon/buttons24.json +1 -0
- package/assets/components/assets/icon/buttons32.json +1 -0
- package/assets/components/assets/icon/entityTypes16.json +1 -0
- package/assets/components/assets/icon/entityTypes24.json +1 -0
- package/assets/components/assets/icon/entityTypes32.json +1 -0
- package/assets/esri/core/t9n/Units_ar.json +1 -1
- package/assets/esri/core/t9n/Units_bg.json +1 -1
- package/assets/esri/core/t9n/Units_bs.json +1 -1
- package/assets/esri/core/t9n/Units_ca.json +1 -1
- package/assets/esri/core/t9n/Units_cs.json +1 -1
- package/assets/esri/core/t9n/Units_da.json +1 -1
- package/assets/esri/core/t9n/Units_de.json +1 -1
- package/assets/esri/core/t9n/Units_el.json +1 -1
- package/assets/esri/core/t9n/Units_es.json +1 -1
- package/assets/esri/core/t9n/Units_et.json +1 -1
- package/assets/esri/core/t9n/Units_fi.json +1 -1
- package/assets/esri/core/t9n/Units_fr.json +1 -1
- package/assets/esri/core/t9n/Units_he.json +1 -1
- package/assets/esri/core/t9n/Units_hr.json +1 -1
- package/assets/esri/core/t9n/Units_hu.json +1 -1
- package/assets/esri/core/t9n/Units_id.json +1 -1
- package/assets/esri/core/t9n/Units_it.json +1 -1
- package/assets/esri/core/t9n/Units_ja.json +1 -1
- package/assets/esri/core/t9n/Units_ko.json +1 -1
- package/assets/esri/core/t9n/Units_lt.json +1 -1
- package/assets/esri/core/t9n/Units_lv.json +1 -1
- package/assets/esri/core/t9n/Units_nl.json +1 -1
- package/assets/esri/core/t9n/Units_no.json +1 -1
- package/assets/esri/core/t9n/Units_pl.json +1 -1
- package/assets/esri/core/t9n/Units_pt-BR.json +1 -1
- package/assets/esri/core/t9n/Units_pt-PT.json +1 -1
- package/assets/esri/core/t9n/Units_ro.json +1 -1
- package/assets/esri/core/t9n/Units_ru.json +1 -1
- package/assets/esri/core/t9n/Units_sk.json +1 -1
- package/assets/esri/core/t9n/Units_sl.json +1 -1
- package/assets/esri/core/t9n/Units_sr.json +1 -1
- package/assets/esri/core/t9n/Units_sv.json +1 -1
- package/assets/esri/core/t9n/Units_th.json +1 -1
- package/assets/esri/core/t9n/Units_tr.json +1 -1
- package/assets/esri/core/t9n/Units_uk.json +1 -1
- package/assets/esri/core/t9n/Units_vi.json +1 -1
- package/assets/esri/core/t9n/Units_zh-CN.json +1 -1
- package/assets/esri/core/t9n/Units_zh-HK.json +1 -1
- package/assets/esri/core/t9n/Units_zh-TW.json +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{6854b28853f5dd195110.js → 01c70c27aa3a955e2928.js} +1 -1
- package/assets/esri/core/workers/chunks/{2dced41ff2aa1bd86665.js → 065dd2fdc834146423c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{a0e72b107991ba38a9f0.js → 15920af0c4f46773b06e.js} +1 -1
- package/assets/esri/core/workers/chunks/179c9fe4ac83b42e5976.js +1 -0
- package/assets/esri/core/workers/chunks/1d1929f98d941179be29.js +2 -0
- package/assets/esri/core/workers/chunks/{24247ee93f43fff5e596.js.LICENSE.txt → 1d1929f98d941179be29.js.LICENSE.txt} +1 -3
- package/assets/esri/core/workers/chunks/1ebb613bbe09fcf274d8.js +1 -0
- package/assets/esri/core/workers/chunks/24b43fb12fc3009fdc30.js +1 -0
- package/assets/esri/core/workers/chunks/2b9661700743d1f9717e.js +1 -0
- package/assets/esri/core/workers/chunks/2f0a3b22fc46d832e240.js +1 -0
- package/assets/esri/core/workers/chunks/340f2c996f62f7f5ceae.js +1 -0
- package/assets/esri/core/workers/chunks/549d348ca181d06aefb7.js +2 -0
- package/assets/esri/core/workers/chunks/{7485d59d60d61737d662.js → 55b765c72d13b3b911f9.js} +1 -1
- package/assets/esri/core/workers/chunks/5cdf87e7a59ace38df87.js +1 -0
- package/assets/esri/core/workers/chunks/622bdd1b9d5d292ec12b.js +1 -0
- package/assets/esri/core/workers/chunks/{359dbfbfb9acfb18bc6e.js → 63ea4191d441efd2f146.js} +1 -1
- package/assets/esri/core/workers/chunks/69c9eb93553b006b640d.js +2 -0
- package/assets/esri/core/workers/chunks/6d20d741b8ae1a45b422.js +1 -0
- package/assets/esri/core/workers/chunks/702a3ef9e1b3442cbee7.js +1 -0
- package/assets/esri/core/workers/chunks/762e23466308f22d7076.js +1 -0
- package/assets/esri/core/workers/chunks/{52219561c144e5cb4442.js → 770611659b38066a6228.js} +1 -1
- package/assets/esri/core/workers/chunks/{e90afd914f2ccd4f5374.js → 7ce60331f94ee0a5d674.js} +6 -6
- package/assets/esri/core/workers/chunks/7e02e5c6979090fe3ea7.js +1 -0
- package/assets/esri/core/workers/chunks/825db2ea15308ee6e5dc.js +1 -0
- package/assets/esri/core/workers/chunks/8330302096d4312a4393.js +1 -0
- package/assets/esri/core/workers/chunks/885eac78a76184efa1e5.js +1 -0
- package/assets/esri/core/workers/chunks/{79dc7045d9a2d43ba8df.js → 890b7a1153b7f65eba9a.js} +1 -1
- package/assets/esri/core/workers/chunks/{44636ef119c6a576470b.js → 94eab215bab3e4e0e5b5.js} +1 -1
- package/assets/esri/core/workers/chunks/95dee5853c6e89f15ea9.js +1 -0
- package/assets/esri/core/workers/chunks/a5b9ae4c93f9af7589f2.js +1 -0
- package/assets/esri/core/workers/chunks/{fb415b01f0f1d644832d.js → a8ae00e06f98e04aee8e.js} +1 -1
- package/assets/esri/core/workers/chunks/aaad0d3e82ed917d3886.js +1 -0
- package/assets/esri/core/workers/chunks/b3e8ab68fc38306f13c6.js +1 -0
- package/assets/esri/core/workers/chunks/{39a8e6c9d710d3faea3c.js → b9850fe7dcdaed0c327c.js} +1 -1
- package/assets/esri/core/workers/chunks/{f7e386ece75afb6e4be5.js → bc249bb667f0564ad093.js} +1 -1
- package/assets/esri/core/workers/chunks/{9b89cc85c1b5d561df7c.js → bd59cb5abc67e46f1b2c.js} +2 -2
- package/assets/esri/core/workers/chunks/{a943bd2e6fb7443c2b66.js → be817be7c81fb630122f.js} +1 -1
- package/assets/esri/core/workers/chunks/c4872cf3b71d00f450e1.js +1 -0
- package/assets/esri/core/workers/chunks/c5ab346a226df1894302.js +1 -0
- package/assets/esri/core/workers/chunks/{1e8d5bfc5f8c2664190c.js → d859c046a3ea42530bff.js} +1 -1
- package/assets/esri/core/workers/chunks/da29cf0e64065631a470.js +1 -0
- package/assets/esri/core/workers/chunks/{7617bd0f3a70dfe61637.js → dcba6c766eee8b90381a.js} +1 -1
- package/assets/esri/core/workers/chunks/ddebc1dc10a2d207389f.js +1 -0
- package/assets/esri/core/workers/chunks/e393fd61deb2e7f22ee6.js +1 -0
- package/assets/esri/core/workers/chunks/ea2bf7c543cc536400b7.js +30 -0
- package/assets/esri/core/workers/chunks/ece30bfd5c49b8d99752.js +1 -0
- package/assets/esri/core/workers/chunks/ecf4d07917efc97eb991.js +1 -0
- package/assets/esri/core/workers/chunks/ee56290e600cbeb25a00.js +1 -0
- package/assets/esri/core/workers/chunks/f52c6efc5a2abf5ac845.js +1 -0
- package/assets/esri/core/workers/chunks/f7fe17a22390a24d6df8.js +2 -0
- package/assets/esri/core/workers/chunks/f9324420f2c6ac240f63.js +1 -0
- package/assets/esri/core/workers/chunks/{855bf811cd79b97c169a.js → fae2c8f053927559fff0.js} +1 -1
- package/assets/esri/core/workers/chunks/fc1fe1f58a65a1694c09.js +1 -0
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +84 -1
- 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/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/chunks/ComponentShader.glsl.js +11 -15
- package/config.js +1 -1
- package/core/generatorUtils.js +2 -0
- package/core/libs/gl-matrix-2/factories/vec2f64.js +1 -1
- package/core/libs/gl-matrix-2/math/vec2.js +1 -1
- package/core/mathUtils.js +1 -1
- package/core/typedArrayUtil.js +1 -1
- package/geometry/HeightModelInfo.js +1 -1
- package/geometry/geometryEngine.d.ts +2 -2
- package/geometry/support/buffer/BufferView.js +1 -1
- package/geometry/support/vcsData.js +1 -1
- package/geometry/support/vcsLookup.js +1 -1
- package/kernel.js +1 -1
- package/layers/DimensionLayer.d.ts +5 -5
- package/layers/FeatureLayer.d.ts +2 -2
- package/layers/GaussianSplatLayer.d.ts +3 -3
- package/layers/LineOfSightLayer.d.ts +5 -5
- package/layers/ParquetLayer.d.ts +6 -4
- package/layers/SubtypeGroupLayer.d.ts +2 -2
- package/layers/ViewshedLayer.d.ts +3 -3
- package/layers/graphics/sources/ParquetSource.js +1 -1
- package/layers/graphics/sources/parquet/FileProvider.js +2 -0
- package/layers/graphics/sources/parquet/PortalParquetFileProvider.js +2 -0
- package/layers/graphics/sources/parquet/PortalParquetLayerFileProvider.js +2 -0
- package/layers/graphics/sources/parquet/UrlsFileProvider.js +2 -0
- package/layers/graphics/sources/parquet/createFileProvider.js +2 -0
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +1 -1
- package/layers/raster/datasets/ImageAuxRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/formats/JpgPlus.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/raster/functions/clipUtils.js +1 -1
- package/layers/support/AggregateField.d.ts +2 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/SubtypeSublayer.d.ts +4 -4
- package/layers/support/parquetUtils.d.ts +18 -7
- package/layers/support/parquetUtils.js +1 -1
- package/layers/support/rasterFunctionUtils.d.ts +2 -2
- package/layers/video/VideoController.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
- package/networks/CircuitManager.d.ts +3 -3
- package/networks/UnitIdentifierManager.d.ts +1 -1
- package/networks/UnitIdentifierManager.js +1 -1
- package/networks/UtilityNetwork.d.ts +2 -2
- package/networks/UtilityNetwork.js +1 -1
- package/networks/support/Circuit.d.ts +1 -1
- package/networks/support/CircuitLocation.d.ts +1 -1
- package/networks/support/CircuitSection.d.ts +1 -1
- package/networks/support/Subcircuit.d.ts +1 -1
- package/networks/support/TraceJobInfo.js +1 -1
- package/networks/support/jsonTypes.d.ts +10 -3
- package/package.json +2 -2
- package/popup/FieldInfo.d.ts +4 -2
- package/popup/support/FieldInfoFormat.d.ts +3 -2
- package/rest/featureService/FeatureService.d.ts +1 -1
- package/rest/knowledgeGraph/FieldIndex.d.ts +1 -1
- package/rest/knowledgeGraph/GraphObjectType.d.ts +2 -2
- package/rest/knowledgeGraph/GraphSearch.d.ts +1 -1
- package/rest/knowledgeGraph/GraphSearchStreaming.d.ts +1 -1
- package/rest/networks/circuits/support/ExportCircuitsParameters.d.ts +19 -1
- package/rest/networks/circuits/support/ExportCircuitsResult.js +1 -1
- package/rest/networks/circuits/support/VerifyCircuitsParameters.d.ts +18 -10
- package/rest/networks/circuits/support/VerifyCircuitsParameters.js +1 -1
- package/rest/networks/support/TraceParameters.js +1 -1
- package/rest/networks/support/TraceResult.js +1 -1
- package/rest/networks/trace.js +1 -1
- package/rest/networks/unitIdentifiers/support/QueryUnitIdentifiersParameters.js +1 -1
- package/rest/support/AreasAndLengthsParameters.d.ts +1 -1
- package/rest/support/GeneralizeParameters.d.ts +1 -1
- package/rest/support/Query.d.ts +1 -1
- package/rest/support/RelationParameters.d.ts +1 -1
- package/rest/support/types.d.ts +1 -1
- package/support/revision.js +1 -1
- package/symbols/CIMSymbol.d.ts +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +1 -0
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ParquetSnapshotSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ParquetSourceChunk.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.d.ts +1 -0
- package/views/3d/analysis/DimensionAnalysisView3D.d.ts +7 -6
- package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.d.ts +2 -0
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +2 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +5 -1
- package/views/3d/analysis/SliceAnalysisView3D.d.ts +4 -3
- package/views/3d/analysis/Viewshed/ViewshedDrawToolRenderer.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedInteractionVisuals.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedPlacementOperation.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedPlacementRootPlugin.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool2.js +1 -1
- package/views/3d/analysis/Viewshed/analysisViewRegister.js +1 -1
- package/views/3d/analysis/Viewshed/placementUtils.js +2 -0
- package/views/3d/analysis/Viewshed/toolLifecycleUtils.js +2 -0
- package/views/3d/analysis/Viewshed/viewshedSubToolUtils.js +1 -1
- package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +4 -3
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/support/UVWorkspace.js +2 -0
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/layers/support/uvUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
- package/views/3d/support/meshProcessing.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +8 -8
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +13 -9
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +63 -49
- package/views/3d/webgl-engine/lib/AttributeArray.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathCapBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
- package/views/3d/webgl-engine/materials/PathLayouts.js +2 -0
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +2 -3
- package/views/PopupView.d.ts +77 -1
- package/views/PopupView.js +1 -1
- package/views/layers/DimensionLayerView.d.ts +2 -1
- package/views/layers/LineOfSightLayerView.d.ts +2 -1
- package/views/layers/ViewshedLayerView.d.ts +2 -1
- package/webscene/Slide.js +1 -1
- package/widgets/Attachments/types.d.ts +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +38 -5
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +2 -0
- package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
- package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
- package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +11 -0
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +77 -0
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/interfaceUtils.js +2 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/types.d.ts +30 -2
- package/widgets/BatchAttributeForm.d.ts +52 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/Editor.d.ts +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/LayerList/LayerListItem.js +1 -1
- package/widgets/TimeSlider.d.ts +3 -3
- package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +10 -0
- package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
- package/widgets/support/ContingentValuesManager.js +1 -1
- package/widgets/support/forms/formUtils.js +1 -1
- package/assets/esri/core/workers/chunks/11b0d3a825fe50dd1e84.js +0 -1
- package/assets/esri/core/workers/chunks/130851b81f04e6a008cd.js +0 -1
- package/assets/esri/core/workers/chunks/1a3426276dc82a8a80f2.js +0 -1
- package/assets/esri/core/workers/chunks/1c8a21b7b60c0709e6b2.js +0 -1
- package/assets/esri/core/workers/chunks/24247ee93f43fff5e596.js +0 -2
- package/assets/esri/core/workers/chunks/276cb6a1cdd26d0e1444.js +0 -1
- package/assets/esri/core/workers/chunks/2f903bd3a2611e7f0946.js +0 -30
- package/assets/esri/core/workers/chunks/2fda38219d778f0447b5.js +0 -1
- package/assets/esri/core/workers/chunks/38d7430d2370b69334d7.js +0 -1
- package/assets/esri/core/workers/chunks/39d6032d79720935910d.js +0 -1
- package/assets/esri/core/workers/chunks/5dafd35801dca4229aed.js +0 -1
- package/assets/esri/core/workers/chunks/642be1619c0e76355cb6.js +0 -1
- package/assets/esri/core/workers/chunks/6d66dc77af8d112c33c6.js +0 -1
- package/assets/esri/core/workers/chunks/7b3642195d6d3ea9b830.js +0 -1
- package/assets/esri/core/workers/chunks/7b66691d133dabd87ce6.js +0 -1
- package/assets/esri/core/workers/chunks/7e57029ec958f6423d5d.js +0 -2
- package/assets/esri/core/workers/chunks/8042e001545e2782499c.js +0 -1
- package/assets/esri/core/workers/chunks/881234f25c7814de8753.js +0 -1
- package/assets/esri/core/workers/chunks/8a7682071941c35f05c1.js +0 -1
- package/assets/esri/core/workers/chunks/8fdd57e2a0af647f1e3e.js +0 -1
- package/assets/esri/core/workers/chunks/90ea570f6b6ce8ca693b.js +0 -1
- package/assets/esri/core/workers/chunks/9373daa677dc767d7cf0.js +0 -1
- package/assets/esri/core/workers/chunks/95df6d2ebacc43ac5fa3.js +0 -1
- package/assets/esri/core/workers/chunks/a02ebdcb802d128c8eee.js +0 -1
- package/assets/esri/core/workers/chunks/adf72d87f0114aeade0e.js +0 -1
- package/assets/esri/core/workers/chunks/aec4a4cd7044fdbbbe34.js +0 -1
- package/assets/esri/core/workers/chunks/b1a21a4d7d73ad7d0e47.js +0 -1
- package/assets/esri/core/workers/chunks/b262478da29470abb72b.js +0 -2
- package/assets/esri/core/workers/chunks/b75e090a7e935ff870a3.js +0 -1
- package/assets/esri/core/workers/chunks/bacf0c9d5d3e084dea61.js +0 -1
- package/assets/esri/core/workers/chunks/c0e4fd6fa1d765275248.js +0 -2
- package/assets/esri/core/workers/chunks/cfaa6e205bfc0c94a1b1.js +0 -1
- package/assets/esri/core/workers/chunks/d3f08f1a9a250cd8a2c8.js +0 -1
- package/assets/esri/core/workers/chunks/dcb7a3ff59677b1cf0f1.js +0 -1
- /package/assets/esri/core/workers/chunks/{7e57029ec958f6423d5d.js.LICENSE.txt → 549d348ca181d06aefb7.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{b262478da29470abb72b.js.LICENSE.txt → 69c9eb93553b006b640d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{9b89cc85c1b5d561df7c.js.LICENSE.txt → bd59cb5abc67e46f1b2c.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{c0e4fd6fa1d765275248.js.LICENSE.txt → f7fe17a22390a24d6df8.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[709,3090],{69540(e,t,i){i.d(t,{OU:()=>c,Pw:()=>h});var s=i(5482),n=i(69622),r=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(88620),a=i(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const i=e;let n=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,l.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const i=t.metadata,s=t.store,n={},a=new Map;for(const t in i){const o=i[t],l=s?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==l&&0!==l&&5!==l&&4!==l)continue;const c=this[t];let h=null;if("function"==typeof u)h=u(c,e);else if("reference"===u)h=c;else if(h=(0,r.TU)(c,e),null!=c&&null==h)continue;0===l?a.set(t,h):n[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(a.size){const e=(0,l.oY)(u)?.store;if(e)for(const[t,i]of a)e.set(t,i,0)}return u}};return n=(0,s.Cg)([(0,a.$)("esri.core.Clonable")],n),n},h=c(n.A)},7762(e,t,i){i.d(t,{A:()=>k});var s,n=i(5482),r=i(98291),o=i(4576),l=i(65529),a=i(36563),u=i(4718),c=i(53966),h=i(93687),d=i(76030),p=i(56507),f=i(62788),g=i(10107),m=i(7695),y=i(64108),_=i(95488),v=i(12195);class b{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class w{constructor(e,t,i,s,n){this.target=e,this.added=t,this.removed=i,this.start=s,this.deleteCount=n}}const C=new h.A(()=>new b,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function A(e){return e?e instanceof L?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e?.length)return e[0]}function I(e,t,i,s){const n=Math.min(e.length-i,t.length-s);let r=0;for(;r<n&&e[i+r]===t[s+r];)r++;return r}function T(e,t,i,s){t&&t.forEach((t,n,r)=>{e.push(t),T(e,i.call(s,t,n,r),i,s)})}const R=new Set,E=new Set,x=new Set,P=new Map;let z=0,L=s=class extends l.nJ{static ofType(e){if(!e)return s;if(P.has(e))return P.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const i in e.typeMap){const s=e.typeMap[i].prototype.declaredClass;t?t+=` | ${s}`:t=s}let i=class extends s{};return(0,n.Cg)([(0,m.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],i.prototype,"itemType",void 0),i=(0,n.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],i),P.set(e,i),i}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:z++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof s?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,A(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,a.hA)();if("change"===e){const e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,a.hA)(()=>{i.removed=!0,e.splice(e.indexOf(i),1)})}return super.on(e,t)}once(e,t){const i="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{i()?.call(null,e),s.remove()});return s}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t);return this._splice(i,0,A(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(u.o8)})}concat(...e){(0,f.gc)(this._observable);const t=e.map(A);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const i=this._splice(0,this.length),s=i.length;for(let n=0;n<s;n++)e.call(t,i[n],n,i);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);const i=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:i})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);const i=[];return T(i,this,e,t),new s(i)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);const i=this._items.map(e,t);return new s({items:i})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);const i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(4))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=S(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=S(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof s?e.toArray():e,i=this._items,n=[],r=t.length;for(let e=0;e<r;e++){const s=t[e],r=i.indexOf(s);if(r>-1){const s=1+I(t,i,e+1,r+1),o=this._splice(r,s);o&&o.length>0&&n.push.apply(n,o),e+=s-1}}return this._emitAfterChanges(2),n}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=S(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let i=0;i<t;i++)if(e(this.items[i],this.items[i+1])>0)return!0;return!1}splice(e,t,...i){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const s=(t?2:0)|(i.length?1:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(e,t,i)||[];return this._emitAfterChanges(s),n}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,v.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){const s=this._items,n=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(o=s.splice(e,t),this.hasEventListener("before-remove")){const t=C.acquire();t.target=this,t.cancellable=!0;for(let i=0,n=o.length;i<n;i++)r=o[i],t.reset(r),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(i,1),s.splice(e,0,r),e+=1,i-=1,n-=1);C.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=C.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let i=0;i<t;i++)e.reset(o[i]),this.emit("after-remove",e);C.release(e)}}if(i?.length){if(n){const e=[];for(const t of i){const i=n.ensureType(t);null==i&&null!=t||e.push(i)}i=e}const t=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=e===this.length;if(t||r){const n=C.acquire();n.target=this,n.cancellable=!0;const l=C.acquire();l.target=this,l.cancellable=!1;for(const a of i)t?(n.reset(a),this.emit("before-add",n),n.defaultPrevented||(o?s.push(a):s.splice(e++,0,a),this._length=s.length,r&&(l.reset(a),this.emit("after-add",l)))):(o?s.push(a):s.splice(e++,0,a),this._length=s.length,l.reset(a),this.emit("after-add",l));C.release(l),C.release(n)}else{if(o)for(const e of i)s.push(e);else s.splice(e,0,...i);this._length=s.length}}if((i?.length||o?.length)&&this._notifyChangeEvent(i,o),this.hasEventListener("after-splice")){const s=new w(this,i,o,e,t);this.emit("after-splice",s)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const i=C.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,C.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=C.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),C.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;R.clear(),E.clear(),x.clear();for(const{added:t,removed:i}of e){if(t)if(0===x.size&&0===E.size)for(const e of t)R.add(e);else for(const e of t)E.has(e)?(x.add(e),E.delete(e)):x.has(e)||R.add(e);if(i)if(0===x.size&&0===R.size)for(const e of i)E.add(e);else for(const e of i)R.has(e)?R.delete(e):(x.delete(e),E.add(e))}const i=r.A.acquire();R.forEach(e=>{i.push(e)});const s=r.A.acquire();E.forEach(e=>{s.push(e)});const n=this._items,o=t.items,l=r.A.acquire();if(x.forEach(e=>{o.indexOf(e)!==n.indexOf(e)&&l.push(e)}),t.listeners&&(i.length||s.length||l.length)){const e={target:this,added:i,removed:s,moved:l},n=t.listeners.length;for(let i=0;i<n;i++){const s=t.listeners[i];s.removed||s.callback.call(this,e)}}r.A.release(i),r.A.release(s),r.A.release(l)}R.clear(),E.clear(),x.clear()}};(0,n.Cg)([(0,g.MZ)()],L.prototype,"_updating",void 0),(0,n.Cg)([(0,g.MZ)()],L.prototype,"_length",void 0),(0,n.Cg)([(0,g.MZ)()],L.prototype,"length",null),(0,n.Cg)([(0,g.MZ)()],L.prototype,"items",null),(0,n.Cg)([(0,g.MZ)({readOnly:!0})],L.prototype,"updating",null),L=s=(0,n.Cg)([(0,y.$)("esri.core.Collection")],L);const k=L},4902(e,t,i){i.d(t,{s:()=>o});var s=i(5482),n=i(64108);let r=0;const o=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return i=(0,s.Cg)([(0,n.$)("esri.core.Identifiable")],i),i};o(class{})},66344(e,t,i){i.d(t,{q:()=>l});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,n,o){t=e.id+t;const l=this._db.get(t);if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==i&&this._notifyRemove(t,l.entry,l.size,0)),n>this._maxSize)return void this._notifyRemove(t,i,n,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return s||console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,i,0,0);const a=1+Math.max(o,-4)- -3;this._db.set(t,new r(i,n,a)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const e=this._notifyRemove(t,i.entry,s,1);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}i.size=s,this._size+=s,e.size+=s,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,s)=>{const n=e.lifetime;i[n]=(i[n]||0)+e.size,this._clients.forEach(i=>{const{id:n,name:r}=i;if(s.startsWith(n)){const i=t[r]||0;t[r]=i+e.size}})});const s={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[i]||0;t[i]=n,s[i]=Math.round(100*e.hitRate)+"%"}else s[i]="0%"});const n=Object.keys(t);n.sort((e,i)=>t[i]-t[e]),n.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+s[i]);for(let t=i.length-1;t>=0;--t){const s=i[t];s&&(e["Priority "+(t+-3-1)]=Math.round(s/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,s){const n=this._clients.get(e.split(o)[0])?.removeFunc,r=n?.(t,s,i);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const s=t?.id;let n=!0;for(;n;){n=!1;for(const[r,l]of this._db)if(0===l.lifetime&&(!s||r.startsWith(s))){const s=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,l,s),i.size<=.9*e)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!s||n.startsWith(s)){const s=t??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,r,s),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new n(0);class r{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class l{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new n(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},7695(e,t,i){function s(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>s})},60999(e,t,i){i.d(t,{DZ:()=>f,Ke:()=>p,Tj:()=>c,UT:()=>g,aD:()=>y,jJ:()=>u});var s=i(5482),n=i(69622),r=i(97768),o=i(17676),l=i(10107),a=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,s)=>t.apply(i,[e,s])))}async function c(e,t,i){return(await(0,o.Lx)(e.map((e,s)=>t.apply(i,[e,s])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function f(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function g(e,t){return new m(e,t)}let m=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,l.MZ)()],m.prototype,"value",null),(0,s.Cg)([(0,l.MZ)()],m.prototype,"error",null),(0,s.Cg)([(0,l.MZ)()],m.prototype,"finished",null),(0,s.Cg)([(0,l.MZ)()],m.prototype,"promise",void 0),(0,s.Cg)([(0,l.MZ)()],m.prototype,"_result",void 0),m=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},36708(e,t,i){i.d(t,{C_:()=>d,OH:()=>g,Vh:()=>m,on:()=>h,pc:()=>y,wB:()=>a,z7:()=>u});var s=i(37955),n=i(36563),r=i(97768),o=i(17676),l=i(14012);function a(e,t,i={}){return c(e,t,i,p)}function u(e,t,i={}){return c(e,t,i,f)}function c(e,t,i={},s){let n=null;const o=i.once?(e,i)=>{s(e)&&((0,r.xt)(n),t(e,i))}:(e,i)=>{s(e)&&t(e,i)};if(n=(0,l.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return n}function h(e,t,i,o={}){let l=null,u=null,c=null;function h(){l&&u&&(u.remove(),o.onListenerRemove?.(l),l=null,u=null)}function d(e){o.once&&o.once&&(0,r.xt)(c),i(e)}const p=a(e,(e,i)=>{h(),(0,s.wb)(e)&&(l=e,u=(0,s.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,n.hA)(()=>{p.remove(),h()}),c}function d(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let l=null;function a(){l=(0,r.xt)(l)}return new Promise((s,r)=>{l=(0,n.vE)([(0,o.u7)(i,()=>{a(),r((0,o.NK)())}),c(e,e=>{a(),s(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}i(80559);const g={sync:!0},m={initial:!0},y={sync:!0,initial:!0}},83027(e,t,i){i.d(t,{h:()=>s});const s=i(29953).ho},35982(e,t,i){i.d(t,{B:()=>c});var s=i(4576),n=i(71511),r=i(36563),o=i(53966),l=i(97768),a=i(17676),u=i(83027);class c{constructor(e,t,i,s,n={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,u.h)(e,{...n,schedule:s}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{n.hasInitialize&&e.invoke("initialize",{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i=new h(e,t);return this._listeners.push(i),this._connectListener(i),(0,r.hA)(()=>{(0,s.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,l.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,s){if(this._thread){const n=this._transferLists[e],r=n?n(t):[];return this._thread.invoke(e,t,{transferList:r,signal:i,jobPriority:s})}return this._promise?this._promise.then(()=>((0,a.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,a.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class h{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new n.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},54239(e,t,i){i.d(t,{A:()=>m});var s,n=i(5482),r=i(4576),o=i(66552),l=i(25482),a=i(86211),u=i(67076),c=i(91429),h=i(43937),d=i(36005);const p=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=p.jsonValues.slice();(0,r.Xy)(f,"orthometric");const g=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=s=class extends l.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return p.write(e,t,i)}readHeightModel(e,t,i){return p.read(e)||(i?.messages&&i.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(y(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(y(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new s({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.k1)(t);return new s({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new s;return t.read(e,{origin:"web-scene"}),t}};function y(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n.Cg)([(0,c.MZ)({type:p.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,n.Cg)([(0,h.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,n.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,n.Cg)([(0,c.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,n.Cg)([(0,d.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,n.Cg)([(0,d.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,n.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,n.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=s=(0,n.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],m)},159(e,t,i){i.d(t,{A:()=>u});var s,n=i(5482),r=i(69540),o=i(25482),l=i(91429),a=i(99157);let u=s=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new s;for(let t=this.steps.length-1;t>=0;t--){const i=this.steps[t];e.steps.push(i.getInverse())}return e}};(0,n.Cg)([(0,l.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=s=(0,n.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,i){i.d(t,{A:()=>a});var s,n=i(5482),r=i(69540),o=i(25482),l=i(91429);let a=s=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new s({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,n.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,i)=>{t[i]=!e}}})],a.prototype,"isInverse",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=s=(0,n.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,i){i.r(t),i.d(t,{projectBuffer:()=>n});var s=i(49208);function n(e,t,i,n,r,o,l=Math.floor(e.length/3)){const a=(0,s.jd)(t,r);if(null==a)return!1;if(a===s.pO){if(e===n&&i===o)return!0;const t=i+3*l;for(let s=i,r=o;s<t;s++,r++)n[r]=e[s]??0;return!0}const u=i+3*l;for(let t=i,s=o;t<u;t+=3,s+=3)a(e,t,n,s);return!0}},49208(e,t,i){i.d(t,{Tp:()=>h,jd:()=>c,pO:()=>p,w5:()=>u});var s=i(34727),n=i(86211),r=i(73941),o=i(79258),l=i(34403),a=i(21325);const u={2:{5:p,7:null,9:null,10:p,1:w,6:null,8:null,0:null,3:g,11:m,2:p,4:I},5:{5:p,7:null,9:null,10:p,1:w,6:null,8:null,0:null,3:g,11:m,2:p,4:I},7:{5:null,7:p,9:null,10:p,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:f,7:null,9:null,10:f,1:function(e,t,i,s){const n=e[t]/z,r=P-2*Math.atan(Math.exp(-e[t+1]/z)),o=z+(e[t+2]??0),l=Math.cos(r)*o;i[s]=Math.cos(n)*l,i[s+1]=Math.sin(n)*l,i[s+2]=Math.sin(r)*o},6:null,8:null,0:null,3:p,11:function(e,t,i,s){f(e,t,i,s),m(i,s,i,s)},2:f,4:function(e,t,i,s){f(e,t,i,s),I(i,s,i,s)}},4:{5:T,7:null,9:null,10:T,1:function(e,t,i,s){T(e,t,i,s),w(i,s,i,s)},6:null,8:null,0:null,3:function(e,t,i,s){T(e,t,i,s),g(i,s,i,s)},11:function(e,t,i,s){T(e,t,i,s),m(i,s,i,s)},2:T,4:p},1:{5:S,7:null,9:null,10:S,1:p,6:null,8:null,0:null,3:function(e,t,i,s){S(e,t,i,s),g(i,s,i,s)},11:function(e,t,i,s){S(e,t,i,s),m(i,s,i,s)},2:S,4:function(e,t,i,s){S(e,t,i,s),I(i,s,i,s)}},6:{5:null,7:A,9:null,10:A,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:M,10:M,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:w,6:b,8:v,0:null,3:g,11:m,2:p,4:I},11:{5:y,7:null,9:null,10:y,1:function(e,t,i,s){y(e,t,i,s),w(i,s,i,s)},6:null,8:null,0:null,3:function(e,t,i,s){y(e,t,i,s),g(i,s,i,s)},11:p,2:y,4:function(e,t,i,s){y(e,t,i,s),I(i,s,i,s)}}};function c(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(R.source.spatialReference===e&&R.dest.spatialReference===t)return R;const i=d(e,R.source),s=d(t,R.dest);return 0===i&&0===s?(0,a.aI)(e,t)?R.projector=p:R.projector=null:R.projector=u[i][s],R}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,n.GA)(e,1)),(0,r.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===r.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===r.FY.wkt?t.spatialReferenceId=6:e.wkt===r.LJ.wkt?t.spatialReferenceId=8:(0,r.q8)(e)?t.spatialReferenceId=7:(0,r.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function p(e,t,i,s){e!==i&&(i[s++]=e[t++],i[s++]=e[t++],i[s]=e[t]??0)}function f(e,t,i,s){i[s]=x*(e[t]/z),i[s+1]=x*(P-2*Math.atan(Math.exp(-e[t+1]/z))),i[s+2]=e[t+2]??0}function g(e,t,i,n){!function(e,t,i,n,r){const o=.4999999*Math.PI,l=(0,s.qE)(E*e[t+1],-o,o),a=Math.sin(l);i[n++]=E*e[t]*r.radius,i[n++]=r.halfSemiMajorAxis*Math.log((1+a)/(1-a)),i[n]=e[t+2]??0}(e,t,i,n,o.$O)}function m(e,t,i,s){i[s]=e[t]*L,i[s+1]=e[t+1]*L,i[s+2]=e[t+2]??0}function y(e,t,i,s){i[s]=e[t]*k,i[s+1]=e[t+1]*k,i[s+2]=e[t+2]??0}function _(e,t,i,s,n){const r=n+(e[t+2]??0),o=E*e[t],l=E*e[t+1],a=Math.cos(l)*r;i[s]=Math.cos(o)*a,i[s+1]=Math.sin(o)*a,i[s+2]=Math.sin(l)*r}function v(e,t,i,s){_(e,t,i,s,o.Sw.radius)}function b(e,t,i,s){_(e,t,i,s,o.sH.radius)}function w(e,t,i,s){_(e,t,i,s,o.$O.radius)}function C(e,t,i,n,r){const o=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(o*o+l*l+a*a),c=(0,s.YN)(a/(0===u?1:u)),h=Math.atan2(l,o);i[n++]=x*h,i[n++]=x*c,i[n]=u-r}function M(e,t,i,s){C(e,t,i,s,o.Sw.radius)}function A(e,t,i,s){C(e,t,i,s,o.sH.radius)}function S(e,t,i,s){C(e,t,i,s,o.$O.radius)}function I(e,t,i,s){!function(e,t,i,s,n){const r=E*e[t],o=E*e[t+1],l=e[t+2]??0,a=Math.sin(o),u=Math.cos(o),c=n.radius/Math.sqrt(1-n.eccentricitySquared*a*a);i[s++]=(c+l)*u*Math.cos(r),i[s++]=(c+l)*u*Math.sin(r),i[s++]=(c*(1-n.eccentricitySquared)+l)*a}(e,t,i,s,o.$O)}function T(e,t,i,s){const n=l.TP,r=e[t],a=e[t+1],u=e[t+2]??0;let c,h,d,p,f,g,m,y,_,v,b,w,C,M,A,S,I,T,R,E,P;c=Math.abs(u),h=r*r+a*a,d=Math.sqrt(h),p=h+u*u,f=Math.sqrt(p),E=Math.atan2(a,r),g=u*u/p,m=h/p,M=n.a2/f,A=n.a3-n.a4/f,m>.3?(y=c/f*(1+m*(n.a1+M+g*A)/f),R=Math.asin(y),v=y*y,_=Math.sqrt(1-v)):(_=d/f*(1-g*(n.a5-M-m*A)/f),R=Math.acos(_),v=1-_*_,y=Math.sqrt(v)),b=1-o.$O.eccentricitySquared*v,w=o.$O.radius/Math.sqrt(b),C=n.a6*w,M=d-w*_,A=c-C*y,I=_*M+y*A,S=_*A-y*M,T=S/(C/b+I),R+=T,P=I+S*T/2,u<0&&(R=-R),i[s++]=x*E,i[s++]=x*R,i[s]=P}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},E=(0,s.kU)(1),x=(0,s.KJ)(1),P=.5*Math.PI,z=o.$O.radius,L=z*Math.PI/180,k=180/(z*Math.PI)},91218(e,t,i){i.r(t),i.d(t,{canProjectWithoutEngine:()=>G,initializeProjection:()=>K,isEqualBaseGCS:()=>F,isLoaded:()=>z,isLoadedOrLoad:()=>L,isLoadedOrLoadFor:()=>k,load:()=>U,project:()=>j,projectAsync:()=>V,projectExtent:()=>ne,projectMany:()=>Z,projectMultipoint:()=>Q,projectOrLoad:()=>$,projectOrLoadMany:()=>q,projectPoint:()=>Y,projectPolygon:()=>ie,projectPolyline:()=>ee,projectWithoutEngine:()=>W,requiresLoad:()=>O,test:()=>B,tryProject:()=>D,unload:()=>N});var s=i(49186),n=i(17676),r=i(62788),o=i(95488),l=i(51850),a=i(21276),u=i(73941),c=i(5443),h=i(91075),d=i(48526),p=i(86738),f=i(39829),g=i(82799),m=i(16930),y=i(98764),_=i(159),v=i(9762),b=i(49208);function w(e,t,i,s,n,r){return C[0]=e,C[1]=t,C[2]=i,(0,v.projectBuffer)(C,s,0,n,r,0)}const C=(0,l.vt)();var M=i(60408),A=i(21325),S=i(52006);let I=null,T=null,R=null,E=null,x={};const P=new o.I;function z(){return!!(T?.isLoaded()&&R?.isLoaded()&&E?.isLoaded())}function L(){return!!z()||((0,r.gc)(P),U(),!1)}function k(e,t){return!e||!t||G(e,t)||L()}function O(e,t){return!G(e,t)&&!z()}async function U(e){null==I&&(I=Promise.all([i.e(3276).then(i.bind(i,83276)).then(e=>(T=e,T.load())),i.e(8377).then(i.bind(i,8377)).then(e=>(R=e,R.load())),i.e(2158).then(i.bind(i,12158)).then(e=>(E=e,E.load()))])),await I,(0,n.Te)(e),P.notify()}function j(e,t,i){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),Z(e,e[0].spatialReference,t,i)):((0,a.f)(e),Z([e],e.spatialReference,t,i)[0])}function Z(e,t,i,s){if(null==t||null==i)return e;if(G(t,i,s))return e.map(e=>W(e,t,i));if(null==s?.geographicTransformation&&(0,u.jA)(t))return Z(e.map(e=>W(e,t,m.A.WGS84)),m.A.WGS84,i,{zConversionDisabled:s?.zConversionDisabled});if(null==s?.geographicTransformation&&(0,u.jA)(i))return Z(e,t,m.A.WGS84).map(e=>W(e,m.A.WGS84,i));if(!z())throw new H;if(!s?.geographicTransformation)if(s?.extendedParams)s={...s,geographicTransformation:E.getTransformation(t,i,s.areaOfInterestExtent)||new _.A};else if(!s?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,i);let n=x[e];n||(n=E.getTransformation(t,i)||new _.A,x[e]=n),s={geographicTransformation:n,zConversionDisabled:s?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?T.executeMany(e,i,s):R.executeMany(e,i,s)}function D(e,t,i){try{return j(e,t,i)}catch(e){return null}}function $(e,t){const i=q([e],t);return null!=i.pending?{pending:i.pending,geometry:null}:null!=i.geometries?{pending:null,geometry:i.geometries[0]}:{pending:null,geometry:null}}function q(e,t,i){if(!z())for(const i of e)if(null!=i&&!(0,A.aI)(i.spatialReference,t)&&(0,A.fn)(i.spatialReference)&&(0,A.fn)(t)&&!G(i.spatialReference,t))return(0,r.gc)(P),{pending:U(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,A.aI)(e.spatialReference,t)?e:(0,A.fn)(e.spatialReference)&&(0,A.fn)(t)?j(e,t,i):null)}}class H extends s.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function N(){I=null,T=null,R=null,E=null,x={}}const B={get loadPromise(){return I}};async function V(e,t,i){if((0,n.Te)(i),!e)return e;const s=q(Array.isArray(e)?e:[e],t,i);if(s.pending)return await s.pending,(0,n.Te)(i),V(e,t,i);const r=s.geometries??[];return Array.isArray(e)?r:r[0]}function G(e,t,i){return!(i?.areaOfInterestExtent||i?.extendedParams||i?.geographicTransformation)&&(!!(0,A.aI)(e,t)||(0,A.fn)(e)&&(0,A.fn)(t)&&!!(0,b.jd)(e,t))}function F(e,t){if((0,A.aI)(e,t))return!0;if(!(0,A.fn)(e)||!(0,A.fn)(t))return!1;const i=(0,A.oT)(e)||(0,A.K8)(e)||(0,A.x1)(e),s=(0,A.oT)(t)||(0,A.K8)(t)||(0,A.x1)(t);return i&&s}async function K(e,t,i,s){if(z())return(0,n.NO)(s);if(Array.isArray(e)){for(const{source:t,dest:i,options:n}of e)if(t&&i&&!G(t,i,n))return U(s)}else if(e&&t&&!G(e,t,i))return U(s);return(0,n.NO)(s)}function W(e,t,i){return e?(0,M.fT)(e)?J(e,t,new p.A,i,0):(0,M.ZC)(e)?re(e,t,new c.A,i,0):(0,M.Bi)(e)?se(e,t,new f.A,i,0):(0,M.Rg)(e)?te(e,t,new g.A,i,0):(0,M.U9)(e)?X(e,t,new d.A,i,0):null:null}function Y(e,t,i=t.spatialReference,s=0){return null!=i&&null!=e.spatialReference&&null!=J(e,e.spatialReference,t,i,s)}function J(e,t,i,s,n){ue[0]=e.x,ue[1]=e.y;const r=e.z;return ue[2]=void 0!==r?r:n,(0,v.projectBuffer)(ue,t,0,ue,s,0)?(i.x=ue[0],i.y=ue[1],i.spatialReference=s,void 0!==r||(0,u.xP)(s)?(i.z=ue[2],i.hasZ=!0):(i.z=void 0,i.hasZ=!1),void 0===e.m?(i.m=void 0,i.hasM=!1):(i.m=e.m,i.hasM=!0),i):null}function Q(e,t,i=t.spatialReference,s=0){return null!=e.spatialReference&&null!=i&&null!=X(e,e.spatialReference,t,i,s)}function X(e,t,i,s,n){const{points:r,hasZ:o,hasM:l}=e,a=[],u=r.length,c=[];for(const e of r)c.push(e[0],e[1],o?e[2]:n);if(!(0,v.projectBuffer)(c,t,0,c,s,0,u))return null;const h=ae(o,s);for(let e=0;e<u;++e){const t=3*e,i=c[t],s=c[t+1];h&&l?a.push([i,s,c[t+2],r[e][3]]):h?a.push([i,s,c[t+2]]):l?a.push([i,s,r[e][2]]):a.push([i,s])}return i.points=a,i.spatialReference=s,i.hasZ=o,i.hasM=l,i}function ee(e,t,i=t.spatialReference,s=0){return null!=e.spatialReference&&null!=i&&null!=te(e,e.spatialReference,t,i,s)}function te(e,t,i,s,n){const{curvePaths:r,paths:o,hasZ:l,hasM:a}=e;if(!(r?le(r,l??!1,a??!1,t,i.curvePaths=[],s,n):oe(o,l??!1,a??!1,t,i.paths,s,n)))return null;const u=ae(l,s);return i.spatialReference=s,i.hasZ=u,i.hasM=a,i}function ie(e,t,i=t.spatialReference,s=0){return null!=e.spatialReference&&null!=i&&null!=se(e,e.spatialReference,t,i,s)}function se(e,t,i,s,n){const{curveRings:r,rings:o,hasZ:l,hasM:a}=e;return(r?le(r,l??!1,a??!1,t,i.curveRings=[],s,n):oe(o,l??!1,a??!1,t,i.rings,s,n))?(i.spatialReference=s,i.hasZ=ae(l,s),i.hasM=a,i):null}function ne(e,t,i=t.spatialReference,s=0){return null!=e.spatialReference&&null!=i&&null!=re(e,e.spatialReference,t,i,s)}function re(e,t,i,s,n){const{xmin:r,ymin:o,xmax:l,ymax:a,hasZ:u,hasM:c}=e;if(!w(r,o,u?e.zmin:n,t,ue,s))return null;const h=ae(u,s);return i.xmin=ue[0],i.ymin=ue[1],h&&(i.zmin=ue[2]),w(l,a,u?e.zmax:n,t,ue,s)?(i.xmax=ue[0],i.ymax=ue[1],h&&(i.zmax=ue[2]),c&&(i.mmin=e.mmin,i.mmax=e.mmax),i.spatialReference=s,i):null}function oe(e,t,i,s,n,r,o=0){const l=new Array;for(const i of e)for(const e of i)l.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(l,s,0,l,r,0))return!1;let a=0;n.length=0;const u=t?3:2,c=ae(t,r);for(const t of e){const e=new Array;for(const s of t){const t=l.slice(a,a+=3);c||t.pop(),i&&t.push(s[u]),e.push(t)}n.push(e)}return!0}function le(e,t,i,s,n,r,o=0){const l=new Array;for(const i of e)for(const e of i){if((0,S.FG)(e))return!1;if((0,S.aO)(e)){const[i,s]=e.c;l.push(i[0],i[1],t?i[2]:o,s[0],s[1],o);continue}if((0,S.n1)(e)){const[i,s,n]=e.b;l.push(i[0],i[1],t?i[2]:o,s[0],s[1],o,n[0],n[1],o);continue}const i=e;l.push(i[0],i[1],t?i[2]:o)}if(!(0,v.projectBuffer)(l,s,0,l,r,0))return!1;let a=0;n.length=0;const u=t?3:2,c=ae(t,r);for(const t of e){const e=new Array;for(const s of t){const t=l.slice(a,a+=3);if(c||t.pop(),i&&t.push((0,S.yP)(s)[u]),(0,S.FG)(s))return!1;if((0,S.aO)(s)){const i=l[a++],s=l[a++];++a,e.push({c:[t,[i,s]]});continue}if((0,S.n1)(s)){const i=l[a++],s=l[a++];++a;const n=l[a++],r=l[a++];++a,e.push({b:[t,[i,s],[n,r]]});continue}e.push(t)}n.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,A.aI)(t,y.Y0)}const ue=(0,l.vt)()},98764(e,t,i){i.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var s=i(73941),n=i(16930),r=i(21325);const o=new n.A(s.fv),l=new n.A(s.FY),a=new n.A(s.LJ),u=new n.A(s.Ro);function c(e){const t=h.get(e);if(t)return t;let i=o;if(e)if(e===l)i=l;else if(e===a)i=a;else{const t=e.wkid,s=e.latestWkid;if(null!=t||null!=s)(0,r.tl)(t)||(0,r.tl)(s)?i=l:((0,r.ZL)(t)||(0,r.ZL)(s))&&(i=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?i=l:e===p&&(i=a)}}}return h.set(e,i),i}const h=new Map,d=l.wkt.toUpperCase(),p=a.wkt.toUpperCase()},34403(e,t,i){i.d(t,{TP:()=>o});var s=i(79258);Math.PI;const n=s.$O.radius,r=s.$O.eccentricitySquared,o={a1:n*r,a2:n*r*n*r,a3:n*r*r/2,a4:n*r*n*r*2.5,a5:n*r+n*r*r/2,a6:1-r};s.$O.radius,s.$O.flattening,s.Sw.radius,s.Sw.flattening,s.sH.radius,s.sH.flattening,s.sH.radius},38732(e,t,i){i.r(t),i.d(t,{default:()=>S});var s=i(5482),n=i(11254),r=i(49186),o=i(97768),l=i(25728),a=i(17676),u=i(84952),c=i(91429),h=i(54239),d=i(4146),p=i(89186),f=i(18768),g=i(34287),m=i(8303),y=i(10873),_=i(87378),v=i(35982);class b extends v.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(w.forEach((e,t)=>{e===this&&w.delete(t)}),this.destroy())}}const w=new Map;var C=i(36005);let M=class extends((0,p.f)((0,f.b)((0,g.q)((0,m.A)((0,l.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=w.get(e);return t||(null!=e?(t=new b(t=>e.immediate.schedule(t)),w.set(e,t)):(t=new b,w.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,o.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new r.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(a.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,i,s){const o=s?.signal,l={responseType:"array-buffer",signal:o,useQueue:s?.useQueue,priority:s?.priority},a={noDataValue:s?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,i,s);const u=await(0,n.A)(this.getTileUrl(e,t,i),l),c=await this._lercDecoder.decode(u.data,a,o);if(!c)throw new r.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new _.A({values:c.pixelData,width:c.width,height:c.height,noDataValue:c.noDataValue})}getTileUrl(e,t,i){const s=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,n=(0,u.x0)({...this.parsedUrl.query,blankTile:!s&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${n?"?"+n:""}`}async queryElevation(e,t){const{query:s}=await i.e(91).then(i.bind(i,90091));return(0,a.Te)(t),s(this,e,t)}async createElevationSampler(e,t){const{createSampler:s}=await i.e(91).then(i.bind(i,90091));return(0,a.Te)(t),s(this,e,t)}_fetchTileAvailability(e,t,i,s){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,s):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,n.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[A]}};(0,s.Cg)([(0,c.MZ)({readOnly:!0})],M.prototype,"capabilities",void 0),(0,s.Cg)([(0,C.w)("service","capabilities",["capabilities"])],M.prototype,"readCapabilities",null),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],M.prototype,"copyright",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:h.A})],M.prototype,"heightModelInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],M.prototype,"path",void 0),(0,s.Cg)([(0,c.MZ)({type:["show","hide"]})],M.prototype,"listMode",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"minScale",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"maxScale",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],M.prototype,"opacity",void 0),(0,s.Cg)([(0,c.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],M.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,c.MZ)()],M.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],M.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)(y.OZ)],M.prototype,"url",void 0),(0,s.Cg)([(0,c.MZ)()],M.prototype,"version",void 0),(0,s.Cg)([(0,C.w)("version",["currentVersion"])],M.prototype,"readVersion",null),M=(0,s.Cg)([(0,c.$K)("esri.layers.ElevationLayer")],M);const A=Symbol("default-fetch-tile");M.prototype.fetchTile[A]=!0;const S=M},4146(e,t,i){i.d(t,{A:()=>_});var s=i(5482),n=i(11254),r=i(49186),o=i(65529),l=i(4902),a=i(92474),u=i(53966),c=i(17676),h=i(84952),d=i(91429),p=i(5443),f=i(16930),g=i(92602),m=i(79677);let y=0,_=class extends((0,o.Zt)((0,l.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,f.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([i.e(812),i.e(7982)]).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:s}=await Promise.all([i.e(812),i.e(5613),i.e(909)]).then(i.bind(i,45613));try{return await s(t)}catch(e){const i=t?.portalItem,s=i?.id||"unset",n=i?.portal?.url||g.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(e,t){return Promise.reject(new r.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new r.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,s.Cg)([(0,d.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,s.Cg)([(0,d.MZ)({type:p.A})],_.prototype,"fullExtent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,s.Cg)([(0,d.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,s.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,s.Cg)([(0,d.MZ)({type:f.A})],_.prototype,"spatialReference",void 0),(0,s.Cg)([(0,d.MZ)({type:String})],_.prototype,"title",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,s.Cg)([(0,d.MZ)()],_.prototype,"url",void 0),(0,s.Cg)([(0,d.MZ)({type:m.A})],_.prototype,"visibilityTimeExtent",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,s.Cg)([(0,d.$K)("esri.layers.Layer")],_)},18768(e,t,i){i.d(t,{b:()=>l});var s=i(5482),n=i(53966),r=i(91429),o=i(60694);const l=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,n.A.getLogger(this)))}};return(0,s.Cg)([(0,r.MZ)()],i.prototype,"title",null),(0,s.Cg)([(0,r.MZ)({type:String})],i.prototype,"url",null),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISService")],i),i}},8303(e,t,i){i.d(t,{A:()=>C});var s=i(5482),n=i(92602),r=i(70333),o=i(11254),l=i(60999),a=i(49186),u=i(36563),c=i(53966),h=i(97768),d=i(17676),p=i(84952),f=i(91429),g=i(77548),m=i(20655),y=i(80812),_=i(41318),v=i(10407),b=i(36005),w=i(43937);const C=e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new y.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:s}=await i.e(1204).then(i.bind(i,41204));return(0,d.Te)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await i.e(1204).then(i.bind(i,41204)),s=new AbortController,n=(0,u.rE)(s);return this.addHandles(n,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:s.signal})}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:s},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=!r.id?.findCredential(this.url),n=e===i.id;if(n&&i.portal.user)return this._getUserPrivileges(i,s);let o,l;if(n)o=i.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!o||!(0,p.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(r.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(n?await i.reload():(i=new y.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,s)}catch(e){(0,d.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,v.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?r.id?.findCredential(this.url):null;if(!t)return!0;const i=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=r.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const s=`${i.owningSystemUrl}/sharing/rest`,n=m.A.getDefault();if(n&&n.loaded&&(0,p.S8)(n.restUrl)===(0,p.S8)(s))return n.user;const a=`${s}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?_.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,s=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return i&&s&&!(0,p.ut)(s.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s.Cg)([(0,f.MZ)({type:y.default})],C.prototype,"portalItem",null),(0,s.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,s.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,s.Cg)([(0,f.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,s.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],C),C},M={credential:null,user:null}},87378(e,t,i){i.d(t,{A:()=>l});var s,n=i(34275),r=i(56507);const o=Symbol("ElevationTileDataClass");class l{static{s=o}constructor({values:e,width:t,height:i,noDataValue:r}){this[s]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,n.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=r}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,s=-1/0,n=!0;for(const r of t)r===e?this._hasNoDataValues=!0:(i=r<i?r:i,s=r>s?r:s,n=!1);n?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=s>-3e38?s:0)}static{this.from=(0,r.qf)(l)}}},77548(e,t,i){i.d(t,{Gh:()=>z,tk:()=>T,BR:()=>I,p2:()=>A,qd:()=>R,wI:()=>S,G$:()=>x,$x:()=>E,Ov:()=>v,cM:()=>d,UC:()=>p,W_:()=>b,Qz:()=>f,OP:()=>P,TU:()=>_,F2:()=>g,XX:()=>y,Qi:()=>w,jy:()=>C});var s=i(70333),n=i(11254),r=i(7762),o=(i(84952),i(36563)),l=i(36708),a=i(4146);const u=new WeakMap;function c(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,l.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||c(t))},t=>u.set(e,t),l.pc),(0,o.hA)(()=>u.delete(e))]),u.get(e))}function h(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return h(e,"knowledge-graph")&&"layers"in e}function p(e){return h(e,"knowledge-graph-sublayer")}function f(e){return h(e,"link-chart")&&"layers"in e}function g(e){return h(e,"subtype-group")&&"sublayers"in e}function m(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}i(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function _(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function b(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function C(e){return function(e){return h(e,"catalog-footprint")}(e)||function(e){return h(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return h(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function M(e){const t=e?.type;return"binning"===t||"cluster"===t}function A(e,t){if(!C(e))return;const i=t?.graphic,s="featureReduction"in e?e.featureReduction:null;if(i){if(i.isAggregate){const e=i.origin;return e&&"featureReductionProvider"in e&&s?M(s)?s:null:void 0}return e}return t?.checkFeatureReduction&&s?M(s)?s:null:e}async function S(e,t){const i=s.id?.findServerInfo(e);if(null!=i?.currentVersion)return i.owningSystemUrl||null;const r=e.toLowerCase().indexOf("/rest/services");if(-1===r)return null;const o=`${e.slice(0,r)}/rest/info`,l=null!=t?t.signal:null,{data:a}=await(0,n.A)(o,{query:{f:"json"},responseType:"json",signal:l});return a?.owningSystemUrl||null}function I(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function T(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function R(e){const t=new r.A;for(const i of e.allLayers.concat(e.allTables))c(i)||m(i)||("charts"in i&&t.push(i),"subtype-group"===i.type&&t.push(...i.sublayers));return t}function E(e,t){return null}function x(e){return null}function P(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function z(e,t){if(!t||!P(e))return;const i=(e.url,null);i&&(e.url=i)}},10407(e,t,i){i.d(t,{It:()=>p,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>d,sQ:()=>h});var s=i(91218),n=i(16930),r=i(28735);function o(e,t){if(!l(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function c(e,t,i){i?o(e,t):u(e,t)}async function h(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,r.ci)(e);const i=n.A.WGS84;return await(0,s.initializeProjection)(t,i),(0,s.project)(e,i)}(i)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function p(e){const{portal:t,isOrgItem:i,itemControl:s}=e,n=t.user?.privileges;let r=!n||n.includes("features:user:edit"),o=!!i&&!!n?.includes("features:user:fullEdit");const l="update"===s||"admin"===s;return l?o=r=!0:o&&(r=!0),{features:{edit:r,fullEdit:o},content:{updateItem:l}}}},73133(e,t,i){i.d(t,{j:()=>s});const s=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})},16215(e,t,i){i.d(t,{S:()=>n,Y:()=>s});const s=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&s in e}},79677(e,t,i){i.d(t,{A:()=>d});var s,n=i(5482),r=i(25482),o=i(88930),l=i(91429),a=i(98623),u=i(10184),c=i(36005),h=i(43937);let d=class extends r.o{static{s=this}static get allTime(){return p}static get empty(){return f}static fromArray(e){return new s({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new s({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,s=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===s&&i===n}expandTo(e,t=a.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,new u.A({value:1,unit:e}),t));let n=this.end;if(n){const i=(0,o.lL)(n,new u.A({value:1,unit:e}),t);n=n.getTime()===i.getTime()?i:(0,o.S1)(i,1,e,t)}return new s({start:i,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return s.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,r=e.end?.getTime()??1/0;let o,l;return n>=t&&n<=i?o=n:t>=n&&t<=r&&(o=t),i>=n&&i<=r?l=i:r>=t&&r<=i&&(l=r),null==o||null==l||isNaN(o)||isNaN(l)?s.empty:new s({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(e,t,i=a.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const n=new s,{start:r,end:l}=this;return null!=r&&(n.start=(0,o.S1)(r,e,t,i)),null!=l&&(n.end=(0,o.S1)(l,e,t,i)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new s({start:t,end:i})}};(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n.Cg)([(0,c.w)("end")],d.prototype,"readEnd",null),(0,n.Cg)([(0,h.K)("end")],d.prototype,"writeEnd",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n.Cg)([(0,c.w)("start")],d.prototype,"readStart",null),(0,n.Cg)([(0,h.K)("start")],d.prototype,"writeStart",null),d=s=(0,n.Cg)([(0,l.$K)("esri.time.TimeExtent")],d);const p=new d,f=new d({start:void 0,end:void 0})},10184(e,t,i){i.d(t,{A:()=>c});var s=i(5482),n=i(69540),r=i(25482),o=i(88930),l=i(91429),a=i(73133),u=i(93223);let c=class extends((0,n.OU)(r.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,s.Cg)([(0,u.e)(a.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,s.Cg)([(0,l.$K)("esri.time.TimeInterval")],c)},78553(e,t,i){i.d(t,{D:()=>r,p:()=>n});var s=i(56507);function n(e){const t=(0,s.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function r(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9630],{68197(t,e,n){n.d(e,{A:()=>c});var r=n(40876),o=n(4576),i=n(34727),a=n(56507);function s(t){return(0,i.qE)((0,a.Vr)(t),0,255)}function u(t,e){const n=t.toString(16).padStart(2,"0");return e?n.slice(0,1):n}class c{static blendColors(t,e,n,r=new c){return r.r=Math.round(t.r+(e.r-t.r)*n),r.g=Math.round(t.g+(e.g-t.g)*n),r.b=Math.round(t.b+(e.b-t.b)*n),r.a=t.a+(e.a-t.a)*n,r._sanitize()}static fromRgb(t,e){const n=(0,r.lT)(t);return n?c.fromArray(n,e):null}static fromHex(t,e=new c){const n=(0,r.oW)(t);return n?c.fromArray(n,e):null}static fromArray(t,e=new c){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const n=(0,r.Eq)(t);return n?c.fromArray(n,e):null}static fromJSON(t){return null!=t?new c([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)c.fromString(t,this);else if((0,o.yc)(t))c.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof c||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,n=t?.digits??6,r=3===n||4===n,o=4===n||8===n,i=`#${u(this.r,r)}${u(this.g,r)}${u(this.b,r)}${o?u(Math.round(255*this.a),r):""}`;return e?i.toUpperCase():i}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=s(this.r),n=s(this.g),r=s(this.b);return 0===t||1!==this.a?[e,n,r,s(255*this.a)]:[e,n,r]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}c.prototype.declaredClass="esri.Color"},40876(t,e,n){n.d(e,{Eq:()=>d,G1:()=>b,TS:()=>i,Tf:()=>w,V6:()=>o,Vm:()=>g,ay:()=>u,c1:()=>m,c4:()=>a,j5:()=>c,lT:()=>f,oW:()=>l,xV:()=>M});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!r[t]||!!r[t.toLowerCase()]}function i(t){return r[t]??r[t.toLowerCase()]}function a(t){return[...i(t)]}function s(t,e,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?t+(e-t)*r:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n,r=1){const o=(t%360+360)%360/360,i=n<=.5?n*(e+1):n+e-n*e,a=2*n-i;return[Math.round(255*s(a,i,o+1/3)),Math.round(255*s(a,i,o)),Math.round(255*s(a,i,o-1/3)),r]}function c(t){const e=t.length>5,n=e?8:4,r=(1<<n)-1,o=e?1:17,i=e?9===t.length:5===t.length;let a=Number("0x"+t.slice(1));if(isNaN(a))return null;const s=[0,0,0,1];let u;return i&&(u=a&r,a>>=n,s[3]=o*u/255),u=a&r,a>>=n,s[2]=o*u,u=a&r,a>>=n,s[1]=o*u,u=a&r,a>>=n,s[0]=o*u,s}function l(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),n=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),o=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,n+16*n,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function f(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),n=e[1];if("rgb"===n&&3===t.length||"rgba"===n&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),h(e)}return h(t.map(t=>parseFloat(t)))}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return u(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function h(t){return t[0]=m(t[0]),t[1]=m(t[1]),t[2]=m(t[2]),t[3]=4===t.length?b(t[3]):1,t}function d(t){let e=o(t)?i(t):null;return e??=f(t),e??=l(t),e}function g(t){const e=d(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function b(t){return y(t,0,1)}function m(t){return Math.round(y(t,0,255))}function y(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}const w=2.2,p=1/w;function M(t){return t**p}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r,o,i,a,s,u,c,l,f,h,d,g,b){return[t,e,n,r,o,i,a,s,u,c,l,f,h,d,g,b]}},Symbol.toStringTag,{value:"Module"}))},82534(t,e,n){function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function a(){return i(1,1)}function s(){return i(1,0)}function u(){return i(0,1)}n.d(e,{Un:()=>c,fA:()=>i,o8:()=>o,vt:()=>r});const c=a(),l=s(),f=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:a,unitX:s,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>I,Bw:()=>i,C:()=>a,Cc:()=>k,DI:()=>A,Il:()=>j,Io:()=>w,Ln:()=>y,Om:()=>U,Qr:()=>f,Re:()=>c,S8:()=>C,T9:()=>b,WQ:()=>u,Z0:()=>_,_S:()=>d,aI:()=>F,ei:()=>O,fw:()=>S,g7:()=>z,gL:()=>T,hG:()=>p,hZ:()=>s,hs:()=>m,jb:()=>L,jk:()=>g,lo:()=>D,lw:()=>l,m3:()=>M,oW:()=>q,t2:()=>E,tn:()=>h,uE:()=>R,xg:()=>V,ze:()=>v});var r=n(51850),o=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function b(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function w(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function p(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function M(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function C(t,e){const n=e[0],r=e[1],o=e[2];let i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function U(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){const r=e[0],o=e[1],i=e[2],a=n[0],s=n[1],u=n[2];return t[0]=o*u-i*s,t[1]=i*a-r*u,t[2]=r*s-o*a,t}function k(t,e,n,r){const o=e[0],i=e[1],a=e[2];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t[2]=a+r*(n[2]-a),t}function _(t,e,n){const r=e[0],o=e[1],i=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*i+n[12],t[1]=n[1]*r+n[5]*o+n[9]*i+n[13],t[2]=n[2]*r+n[6]*o+n[10]*i+n[14],t}function O(t,e,n){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0]+o*n[3]+i*n[6],t[1]=r*n[1]+o*n[4]+i*n[7],t[2]=r*n[2]+o*n[5]+i*n[8],t}function T(t,e,n){return S(t,e,n[0],n[1],n[2],n[3])}function S(t,e,n,r,o,i){const a=e[0],s=e[1],u=e[2],c=r*u-o*s,l=o*a-n*u,f=n*s-r*a,h=r*f-o*l,d=o*c-n*f,g=n*l-r*c,b=2*i;return t[0]=a+c*b+2*h,t[1]=s+l*b+2*d,t[2]=u+f*b+2*g,t}function z(t,e){C(B,t),C(x,e);const n=U(B,x);return n>1?0:n<-1?Math.PI:Math.acos(n)}const B=(0,r.vt)(),x=(0,r.vt)();function E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function F(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],a=e[0],s=e[1],u=e[2],c=(0,o.FD)();return Math.abs(n-a)<=c*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function q(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],i=n[2]-e[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const L=c,N=l,P=f,V=w,D=p,j=i,R=M;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:z,bezier:function(t,e,n,r,o,i){const a=1-i,s=a*a,u=i*i,c=s*a,l=3*i*s,f=3*u*a,h=u*i;return t[0]=e[0]*c+n[0]*l+r[0]*f+o[0]*h,t[1]=e[1]*c+n[1]*l+r[1]*f+o[1]*h,t[2]=e[2]*c+n[2]*l+r[2]*f+o[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:a,cross:I,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],i=e[2],a=n[0],s=n[1],u=n[2],c=o*u-i*s,l=i*a-r*u,f=r*s-o*a,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:q,dist:V,distance:w,div:P,divide:f,dot:U,equals:F,exactEquals:E,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,i){const a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),l=a*(3-2*i);return t[0]=e[0]*s+n[0]*u+r[0]*c+o[0]*l,t[1]=e[1]*s+n[1]*u+r[1]*c+o[1]*l,t[2]=e[2]*s+n[2]*u+r[2]*c+o[2]*l,t},inverse:A,len:j,length:i,lerp:k,max:b,min:g,mul:N,multiply:l,negate:v,normalize:C,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,i=2*n()-1,a=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*e,t},rotateX:function(t,e,n,r){const o=[],i=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],i=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],i=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:y,set:s,sign:d,sqrDist:D,sqrLen:R,squaredDistance:p,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:L,subtract:c,transformMat3:O,transformMat4:_,transformQuat:T,transformQuatValues:S},Symbol.toStringTag,{value:"Module"}))},27921(t,e,n){n.d(e,{$Q:()=>M,C:()=>s,Cr:()=>l,O_:()=>c,Qj:()=>u,T7:()=>w,Tj:()=>p,lU:()=>f,mN:()=>v,vE:()=>A,vt:()=>a});var r=n(34727),o=n(35522),i=n(51850);function a(t=C){return[t[0],t[1],t[2],t[3]]}function s(t,e){return function(t,e,n,r,o=a()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}(e[0],e[1],e[2],e[3],t)}function u(t){return t}function c(t,e,n){const r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function l(t,e,n,r=a()){const o=n[0]-e[0],i=n[1]-e[1],s=n[2]-e[2],u=t[0]-e[0],c=t[1]-e[1],l=t[2]-e[2],f=i*l-s*c,h=s*u-o*l,d=o*c-i*u,g=f*f+h*h+d*d,b=Math.abs(g-1)>1e-5&&g>1e-12?1/Math.sqrt(g):1;return r[0]=f*b,r[1]=h*b,r[2]=d*b,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function f(t,e,n,r=0,i=Math.floor(n*(1/3)),a=Math.floor(n*(2/3))){if(n<3)return!1;e(d,r);let s=i,u=!1;for(;s<n-1&&!u;)e(g,s),s++,u=!(0,o.t2)(d,g);if(!u)return!1;for(s=Math.max(s,a),u=!1;s<n&&!u;)e(b,s),s++,(0,o.Re)(m,d,g),(0,o.S8)(m,m),(0,o.Re)(y,g,b),(0,o.S8)(y,y),u=!(0,o.t2)(d,b)&&!(0,o.t2)(g,b)&&Math.abs((0,o.Om)(m,y))<h;return u?(l(d,g,b,t),!0):(0!==r||1!==i||2!==a)&&f(t,e,n,0,1,2)}n(78955),n(44280),n(32114),n(32728);const h=.99619469809,d=(0,i.vt)(),g=(0,i.vt)(),b=(0,i.vt)(),m=(0,i.vt)(),y=(0,i.vt)();function w(t,e,n){return function(t){return 0===t||1===t}(A(t,e.origin,e.vector,0,n))}function p(t,e){return v(t,e)>=0}function M(t,e){const n=(0,o.Om)(t,e.ray.direction),r=-v(t,e.ray.origin);if(r<0&&n>=0)return!1;if(n>-1e-6&&n<1e-6)return r>0;if((r<0||n<0)&&!(r<0&&n<0))return!0;const i=r/n;return n>0?i<e.c1&&(e.c1=i):i>e.c0&&(e.c0=i),e.c0<=e.c1}function v(t,e){return(0,o.Om)(t,e)+t[3]}function A(t,e,n,i,a){const s=(0,o.Om)(t,n),u=v(t,e);if(0===s)return u>=0?2:3;let c=-u/s;return 1&i&&(c=(0,r.qE)(c,0,1)),!(4&i)&&c<0||!(8&i)&&c>1?u>=0?2:3:((0,o.WQ)(a,e,(0,o.hs)(a,n,c)),u>=0?0:1)}const C=[0,0,1,0]},44280(t,e,n){n.d(e,{g7:()=>s,gr:()=>a});var r=n(34727),o=n(35522),i=n(51850);function a(t,e){return(0,o.Om)(t,e)/(0,o.Bw)(t)}function s(t,e){const n=(0,o.Om)(t,e)/((0,o.Bw)(t)*(0,o.Bw)(e));return-(0,r.XM)(n)}(0,i.vt)(),(0,i.vt)()},32114(t,e,n){n.d(e,{Rc:()=>d,J8:()=>g,rq:()=>f,Km:()=>h}),n(44208);var r=n(26390),o=n(29242),i=n(9093),a=n(82534),s=n(48163),u=n(51850),c=n(91829);class l{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(s.vt)}static createVec3f64(){return new l(u.vt)}static createVec4f64(){return new l(c.vt)}static createMat3f64(){return new l(o.vt)}static createMat4f64(){return new l(i.vt)}static createQuatf64(){return new l(a.vt)}get test(){}}l.createVec2f64();const f=l.createVec3f64(),h=l.createVec4f64(),d=(l.createMat3f64(),l.createMat4f64()),g=l.createQuatf64()},59418(t,e,n){n.d(e,{wH:()=>b,MA:()=>h,E5:()=>d,m0:()=>y});var r=n(49186),o=n(4718),i=n(53966),a=n(34275),s=n(37203);const u=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,e,n){let o="",i=0;for(;i<n;){const a=t[e+i];if(a<128)o+=String.fromCharCode(a),i++;else if(a>=192&&a<224){if(i+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const s=(31&a)<<6|63&t[e+i+1];o+=String.fromCharCode(s),i+=2}else if(a>=224&&a<240){if(i+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(15&a)<<12|(63&t[e+i+1])<<6|63&t[e+i+2];o+=String.fromCharCode(s),i+=3}else{if(!(a>=240&&a<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(7&a)<<18|(63&t[e+i+1])<<12|(63&t[e+i+2])<<6|63&t[e+i+3];if(s>=65536){const t=55296+(s-65536>>10),e=56320+(1023&s);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(s);i+=4}}}return o}function l(t,e){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<e.length;o++){const i=e[o],a=i.valueType||i.type,s=p[a];n.fields[i.property]=s(t,r),r+=w[a].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){const o=[];let i,a,s=0;for(a=0;a<t;a+=1){if(i=e[a],i>0){if(o.push(c(n,s,i-1)),0!==n[s+i-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);s+=i}return o}function h(t,e){return new(0,w[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function d(t,e){if(!t)return null;const n=t[e];return(0,a.IY)(t)?n===a.PI?null:n:(0,a._G)(t)?n===a.h2?null:n:n!=n?null:n}function g(t,e,n){if(e!==t&&u().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){const n=l(t,e&&e.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,a=null!=i.vertexCount?i.vertexCount:i.count;for(const t of e.ordering){if(!e.vertexAttributes[t])continue;const n={...e.vertexAttributes[t],byteOffset:r,count:a},i=m[t]||"_"+t;o.vertexAttributes[i]=n,r+=v(n.valueType)*n.valuesPerElement*a}const s=i.faceCount;if(e.faces&&s){o.faces={};for(const t of e.ordering){if(!e.faces[t])continue;const n={...e.faces[t],byteOffset:r,count:s};o.faces[t]=n,r+=v(n.valueType)*n.valuesPerElement*s}}const u=i.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&u){o.featureAttributes={};for(const t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;const n={...e.featureAttributes[t],byteOffset:r,count:u};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:v(n.valueType))*n.valuesPerElement*u}}return g(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const m={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function y(t,e,n,i=!1){if("lepcc-rgb"===t.encoding)return i?(0,s.mb)(e):function(t){return Array.isArray(t)?t.length<a.y9?t:new Uint8Array(t):t.length<a.y9?Array.from(t):t}((0,s.mb)(e));if("lepcc-intensity"===t.encoding)return i?(0,s.Ax)(e):function(t){return Array.isArray(t)?t.length<a.y9?t:new Uint16Array(t):t.length<a.y9?Array.from(t):t}((0,s.Ax)(e));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(u().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(u().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const c=function(t,e,n){const i=null!=e.header?l(t,e.header):{byteOffset:0,byteCount:0,fields:{count:n}},a={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let s=i.byteCount;for(let t=0;t<e.ordering.length;t++){const n=e.ordering[t],u=(0,o.o8)(e[n]);if(u.count=i.fields.count??0,"String"===u.valueType){if(u.byteOffset=s,u.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==u.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:u.encoding});if(u.timeEncoding&&"ECMA_ISO8601"!==u.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:u.timeEncoding})}else{if(!M(u.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:u.valueType});{const t=v(u.valueType);s+=s%t!==0?t-s%t:0,u.byteOffset=s,u.byteCount=t*u.valuesPerElement*u.count}}s+=u.byteCount??0,a.entries[n]=u}return a.byteCount=s-a.byteOffset,a}(e,t,n);g(c.byteOffset+c.byteCount,e.byteLength,"attribute");const b=c.entries.attributeValues||c.entries.objectIds;if(b){if("String"===b.valueType){const t=c.entries.attributeByteCounts,n=h(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,b);return b.timeEncoding?function(t,e,n){return f(t,e,n).map(t=>{const e=t?Date.parse(t):null;return null==e||Number.isNaN(e)?null:e})}(t.count,n,r):f(t.count,n,r)}return i?h(e,b):function(t,e){const n=h(t,e);if(n.length>=a.y9)return n;const r=new Array;return n.forEach((t,e)=>r.push(d(n,e))),r}(e,b)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const w={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},p={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function M(t){return w.hasOwnProperty(t)}function v(t){return M(t)?w[t].BYTES_PER_ELEMENT:0}},37203(t,e,n){n.d(e,{Ax:()=>d,Me:()=>s,mb:()=>f});var r=n(49186);const o=!0;function i(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+0,10)),version:e.getUint16(n+10,o),checksum:e.getUint32(n+12,o)}}function a(t,e){return{sizeLo:t.getUint32(e+0,o),sizeHi:t.getUint32(e+4,o),minX:t.getFloat64(e+8,o),minY:t.getFloat64(e+16,o),minZ:t.getFloat64(e+24,o),maxX:t.getFloat64(e+32,o),maxY:t.getFloat64(e+40,o),maxZ:t.getFloat64(e+48,o),errorX:t.getFloat64(e+56,o),errorY:t.getFloat64(e+64,o),errorZ:t.getFloat64(e+72,o),count:t.getUint32(e+80,o),reserved:t.getUint32(e+84,o)}}function s(t){const e=new DataView(t,0);let n=0;const{identifier:o,version:s}=i(t,e,n);if(n+=16,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(s>1)throw new r.A("lepcc-decode-error","Unknown version");const c=a(e,n);if(n+=88,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const l=new Float64Array(3*c.count),f=[],h=[],d=[],g=[];if(n=u(t,n,f),n=u(t,n,h),n=u(t,n,d),n=u(t,n,g),n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let b=0,m=0;for(let t=0;t<f.length;t++){m+=f[t];let e=0;for(let n=0;n<h[t];n++){e+=d[b];const t=g[b];l[3*b]=Math.min(c.maxX,c.minX+2*c.errorX*e),l[3*b+1]=Math.min(c.maxY,c.minY+2*c.errorY*m),l[3*b+2]=Math.min(c.maxZ,c.minZ+2*c.errorZ*t),b++}}return{errorX:c.errorX,errorY:c.errorY,errorZ:c.errorZ,result:l}}function u(t,e,n){const r=[];e=c(t,e,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,e=c(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[i])}return e}function c(t,e,n){const i=new DataView(t,e),a=i.getUint8(0),s=31&a,u=!!(32&a),c=(192&a)>>6;let l=0;if(0===c)l=i.getUint32(1,o),e+=5;else if(1===c)l=i.getUint16(1,o),e+=3;else{if(2!==c)throw new r.A("lepcc-decode-error","Bad count type");l=i.getUint8(1),e+=2}if(u)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(l*s/8),h=new Uint8Array(t,e,f);let d=0,g=0,b=0;const m=-1>>>32-s;for(let t=0;t<l;t++){for(;g<s;)d|=h[b]<<g,g+=8,b+=1;n[t]=d&m,d>>>=s,g-=s,g+s>32&&(d|=h[b-1]>>8-g)}return e+b}function l(t,e){return{sizeLo:t.getUint32(e+0,o),sizeHi:t.getUint32(e+4,o),count:t.getUint32(e+8,o),colorMapCount:t.getUint16(e+12,o),lookupMethod:t.getUint8(e+14),compressionMethod:t.getUint8(e+15)}}function f(t){const e=new DataView(t,0);let n=0;const{identifier:o,version:a}=i(t,e,n);if(n+=16,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const s=l(e,n);if(n+=16,s.sizeHi*2**32+s.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===s.lookupMethod||1===s.lookupMethod)&&0===s.compressionMethod){if(3*s.colorMapCount+s.count+n!==t.byteLength||s.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const e=new Uint8Array(t,n,3*s.colorMapCount),o=new Uint8Array(t,n+3*s.colorMapCount,s.count),i=new Uint8Array(3*s.count);for(let t=0;t<s.count;t++){const n=o[t];i[3*t]=e[3*n],i[3*t+1]=e[3*n+1],i[3*t+2]=e[3*n+2]}return i}if(0===s.lookupMethod&&0===s.compressionMethod){if(3*s.count+n!==t.byteLength||0!==s.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(s.lookupMethod<=2&&1===s.compressionMethod){if(n+3!==t.byteLength||1!==s.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=e.getUint8(n),i=e.getUint8(n+1),a=e.getUint8(n+2),u=new Uint8Array(3*s.count);for(let t=0;t<s.count;t++)u[3*t]=o,u[3*t+1]=i,u[3*t+2]=a;return u}throw new r.A("lepcc-decode-error","Bad method "+s.lookupMethod+","+s.compressionMethod)}function h(t,e){return{sizeLo:t.getUint32(e+0,o),sizeHi:t.getUint32(e+4,o),count:t.getUint32(e+8,o),scaleFactor:t.getUint16(e+12,o),bitsPerPoint:t.getUint8(e+14),reserved:t.getUint8(e+15)}}function d(t){const e=new DataView(t,0);let n=0;const{identifier:o,version:a}=i(t,e,n);if(n+=16,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const s=h(e,n);if(n+=16,s.sizeHi*2**32+s.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const u=new Uint16Array(s.count);if(8===s.bitsPerPoint){if(s.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const e=new Uint8Array(t,n,s.count);for(let t=0;t<s.count;t++)u[t]=e[t]*s.scaleFactor}else if(16===s.bitsPerPoint){if(2*s.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const e=new Uint16Array(t,n,s.count);for(let t=0;t<s.count;t++)u[t]=e[t]*s.scaleFactor}else{const e=[];if(c(t,n,e)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<s.count;t++)u[t]=e[t]*s.scaleFactor}return u}},32728(t,e,n){n.d(e,{YH:()=>s,hG:()=>i,nu:()=>u,wp:()=>a}),n(34727);var r=n(35522),o=n(51850);function i(t){const e=t[0]*t[0]+t[4]*t[4]+t[8]*t[8],n=t[1]*t[1]+t[5]*t[5]+t[9]*t[9],r=t[2]*t[2]+t[6]*t[6]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))}function a(t,e){const n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),o=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,o,i),t}function s(t,e,n){n=n||t;const o=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-o*e[0],t[1]-o*e[1],t[2]-o*e[2]),(0,r.S8)(n,n)}function u(t,e,n,i=(0,o.vt)()){const a=(0,r.Bw)(t),s=(0,r.Bw)(e),u=(0,r.Om)(t,e)/(a*s);if(u<.9999999999999999){const o=Math.acos(u),f=((1-n)*a+n*s)/Math.sin(o),h=f/a*Math.sin((1-n)*o),d=f/s*Math.sin(n*o);return(0,r.hs)(c,t,h),(0,r.hs)(l,e,d),(0,r.WQ)(i,c,l)}return(0,r.Cc)(i,t,e,n)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const c=(0,o.vt)(),l=(0,o.vt)()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8846],{73354(t,e,r){r.d(e,{a:()=>l,b:()=>p,e:()=>u,f:()=>o,g:()=>i,h:()=>y,l:()=>a,n:()=>h,t:()=>f});var n=r(40876),s=(r(44208),r(72727));function i(t,e,r){o(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function o(t,e,r,n=3,i=n){const o=(0,s.k)(t.length,n,3),u=(0,s.k)(e.length,i,3),f=Math.min(o,u),c=r[0],l=r[1],a=r[2],y=r[4],p=r[5],h=r[6],d=r[8],B=r[9],m=r[10],g=r[12],T=r[13],E=r[14];let S=0,A=0;for(let r=0;r<f;r++){const r=e[S],s=e[S+1],o=e[S+2];t[A]=c*r+y*s+d*o+g,t[A+1]=l*r+p*s+B*o+T,t[A+2]=a*r+h*s+m*o+E,S+=i,A+=n}return t}function u(t,e,r){f(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,r,n=3,i=n){const o=(0,s.k)(t.length,n,3),u=(0,s.k)(e.length,i,3),f=Math.min(o,u),c=r[0],l=r[1],a=r[2],y=r[3],p=r[4],h=r[5],d=r[6],B=r[7],m=r[8];let g=0,T=0;for(let r=0;r<f;r++){const r=e[g],s=e[g+1],o=e[g+2];t[T]=c*r+y*s+d*o,t[T+1]=l*r+p*s+B*o,t[T+2]=a*r+h*s+m*o,g+=i,T+=n}}function c(t,e,r,n=3,s=n){const i=Math.min(t.length/n,e.length/s);let o=0,u=0;for(let f=0;f<i;f++)t[u]=r*e[o],t[u+1]=r*e[o+1],t[u+2]=r*e[o+2],o+=s,u+=n;return t}function l(t,e,r,n){a(t.typedBuffer,e.typedBuffer,r,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,r,s,i=3,o=i){const u=Math.min(t.length/i,e.length/o);let f=0,c=0;const l=1/n.Tf;for(let n=0;n<u;n++)t[c]=s*(r*e[f])**l,t[c+1]=s*(r*e[f+1])**l,t[c+2]=s*(r*e[f+2])**l,f+=o,c+=i}function y(t,e,r,n=3,i=n){const o=(0,s.k)(t.length,n,3),u=(0,s.k)(e.length,i,3),f=Math.min(o,u);let c=0,l=0;for(let s=0;s<f;s++)t[l]=e[c]+r[0],t[l+1]=e[c+1]+r[1],t[l+2]=e[c+2]+r[2],c+=i,l+=n;return t}function p(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,r=3,n=r){const s=Math.min(t.length/r,e.length/n);let i=0,o=0;for(let u=0;u<s;u++){const s=e[i],u=e[i+1],f=e[i+2],c=s*s+u*u+f*f;if(c>0){const e=1/Math.sqrt(c);t[o]=e*s,t[o+1]=e*u,t[o+2]=e*f}i+=n,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:a,linearToSRGBView:l,normalize:h,normalizeView:p,scale:c,scaleView:function(t,e,r){c(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,r){const n=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride;let f=0,c=0;for(let t=0;t<n;t++)s[c]=o[f]>>r,s[c+1]=o[f+1]>>r,s[c+2]=o[f+2]>>r,f+=u,c+=i},transformMat3:f,transformMat3View:u,transformMat4:o,transformMat4View:i,translate:y},Symbol.toStringTag,{value:"Module"}))},50867(t,e,r){r.d(e,{a:()=>c,c:()=>i,l:()=>l,n:()=>u,t:()=>o});var n=r(40876),s=(r(44208),r(72727));function i(t,e,r){o(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function o(t,e,r,n=4,i=n){const o=(0,s.k)(t.length,n,4),u=(0,s.k)(e.length,i,4),f=Math.min(o,u),c=r[0],l=r[1],a=r[2],y=r[3],p=r[4],h=r[5],d=r[6],B=r[7],m=r[8];let g=0,T=0;for(let r=0;r<f;r++){const r=e[g],s=e[g+1],o=e[g+2],u=e[g+3];t[T]=c*r+y*s+d*o,t[T+1]=l*r+p*s+B*o,t[T+2]=a*r+h*s+m*o,t[T+3]=u,g+=i,T+=n}}function u(t,e){const r=Math.min(t.count,e.count),n=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,o=e.typedBufferStride;for(let t=0;t<r;t++){const e=t*s,r=t*o,u=i[r],f=i[r+1],c=i[r+2],l=u*u+f*f+c*c;if(l>0){const t=1/Math.sqrt(l);n[e]=t*u,n[e+1]=t*f,n[e+2]=t*c}}}function f(t,e,r,n=4){const s=Math.min(t.length/n,e.count),i=e.typedBuffer,o=e.typedBufferStride;let u=0,f=0;for(let e=0;e<s;e++)t[f]=r*i[u],t[f+1]=r*i[u+1],t[f+2]=r*i[u+2],t[f+3]=r*i[u+3],u+=o,f+=n}function c(t,e,r,n){l(t.typedBuffer,e,r,n,t.typedBufferStride)}function l(t,e,r,s,i=4){const o=Math.min(t.length/i,e.count),u=e.typedBuffer,f=e.typedBufferStride;let c=0,l=0;const a=1/n.Tf;for(let e=0;e<o;e++)t[l]=s*(r*u[c])**a,t[l+1]=s*(r*u[c+1])**a,t[l+2]=s*(r*u[c+2])**a,t[l+3]=s*r*u[c+3],c+=f,l+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:l,linearToSRGBView:c,normalize:u,scale:f,scaleView:function(t,e,r){f(t.typedBuffer,e,r,t.typedBufferStride)},transformMat3:o,transformMat3View:i,transformMat4:function(t,e,r,n=4,i=n){const o=(0,s.k)(t.length,n,4),u=(0,s.k)(e.length,i,4),f=Math.min(o,u),c=r[0],l=r[1],a=r[2],y=r[3],p=r[4],h=r[5],d=r[6],B=r[7],m=r[8],g=r[9],T=r[10],E=r[11],S=r[12],A=r[13],M=r[14],v=r[15];let x=0,w=0;for(let r=0;r<f;r++){const r=e[x],s=e[x+1],o=e[x+2],u=e[x+3];t[w]=c*r+p*s+m*o+S*u,t[w+1]=l*r+h*s+g*o+A*u,t[w+2]=a*r+d*s+T*o+M*u,t[w+3]=y*r+B*s+E*o+v*u,x+=i,w+=n}},transformMat4View:function(t,e,r){const n=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride,f=(0,s.k)(n.length,i,4),c=(0,s.k)(o.length,u,4),l=Math.min(f,c),a=r[0],y=r[1],p=r[2],h=r[3],d=r[4],B=r[5],m=r[6],g=r[7],T=r[8],E=r[9],S=r[10],A=r[11],M=r[12],v=r[13],x=r[14],w=r[15];for(let t=0;t<l;t++){const e=t*i,r=t*u,s=o[r],f=o[r+1],c=o[r+2],l=o[r+3];n[e]=a*s+d*f+T*c+M*l,n[e+1]=y*s+B*f+E*c+v*l,n[e+2]=p*s+m*f+S*c+x*l,n[e+3]=h*s+g*f+A*c+w*l}}},Symbol.toStringTag,{value:"Module"}))},48163(t,e,r){function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function o(){return i(1,1)}function u(){return i(1,0)}function f(){return i(0,1)}r.d(e,{Un:()=>c,fA:()=>i,o8:()=>s,vt:()=>n});const c=o(),l=u(),a=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:l,UNIT_Y:a,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,ones:o,unitX:u,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353(t,e,r){r.d(e,{l:()=>c});var n=r(34727),s=r(58083),i=r(51850);function o(t,e,r){const n=Math.sin(t),s=Math.cos(t),i=Math.sin(e),o=Math.cos(e),u=r;return u[0]=-n,u[4]=-i*s,u[8]=o*s,u[12]=0,u[1]=s,u[5]=-i*n,u[9]=o*n,u[13]=0,u[2]=0,u[6]=o,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=r(49208),f=r(21325);function c(t,e,r,n){const i=(0,u.Tp)(t,n);if(null==i)return!1;const c=i.source.spatialReferenceId,h=i.dest.spatialReferenceId;if(c===h&&!l(h)&&(0!==c||(0,f.aI)(t,n)))return(0,s.kN)(r,e),!0;if(l(h)){const t=u.w5[c][10],n=u.w5[10][h];return null!=t&&null!=n&&(t(e,0,y,0),n(y,0,p,0),o(a*y[0],a*y[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}const d=l(c);if((3===h||11===h||2===h||5===h)&&(2===c||d||3===c||5===c)){const t=u.w5[c][10],n=u.w5[10][h];return null!=t&&null!=n&&(t(e,0,y,0),n(y,0,p,0),d?function(t,e,r){o(t,e,r),(0,s.mg)(r,r)}(a*y[0],a*y[1],r):(0,s.D_)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const a=(0,n.kU)(1),y=(0,i.vt)(),p=(0,i.vt)()},65806(t,e,r){r.d(e,{g:()=>o});var n=r(51850),s=r(91218),i=r(9762);function o(t,e,r,n){if((0,s.canProjectWithoutEngine)(t.spatialReference,r))return u[0]=t.x,u[1]=t.y,u[2]=t.z??0,(0,i.projectBuffer)(u,t.spatialReference,0,e,r,0);const o=(0,s.tryProject)(t,r,n);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const u=(0,n.vt)()},1193(t,e,r){r.r(e),r.d(e,{default:()=>a});var n,s=r(5482),i=r(69540),o=r(25482),u=r(4718),f=r(53966),c=r(91429),l=r(31199);let a=n=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,l.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},f.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&f.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,l.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},f.A.getLogger(this))}castUv(t){return(0,l.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},f.A.getLogger(this))}castNormal(t){return(0,l.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},f.A.getLogger(this))}castTangent(t){return(0,l.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},f.A.getLogger(this))}clonePositional(){const t={position:(0,u.o8)(this.position),normal:(0,u.o8)(this.normal),tangent:(0,u.o8)(this.tangent),uv:this.uv,color:this.color};return new n(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,s.Cg)([(0,c.MZ)({json:{write:l.B}})],a.prototype,"color",void 0),(0,s.Cg)([(0,c.wg)("color")],a.prototype,"castColor",null),(0,s.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:l.B}})],a.prototype,"position",void 0),(0,s.Cg)([(0,c.wg)("position")],a.prototype,"castPosition",null),(0,s.Cg)([(0,c.MZ)({json:{write:l.B}})],a.prototype,"uv",void 0),(0,s.Cg)([(0,c.wg)("uv")],a.prototype,"castUv",null),(0,s.Cg)([(0,c.MZ)({json:{write:l.B}})],a.prototype,"normal",void 0),(0,s.Cg)([(0,c.wg)("normal")],a.prototype,"castNormal",null),(0,s.Cg)([(0,c.MZ)({json:{write:l.B}})],a.prototype,"tangent",void 0),(0,s.Cg)([(0,c.wg)("tangent")],a.prototype,"castTangent",null),a=n=(0,s.Cg)([(0,c.$K)("esri.geometry.support.MeshVertexAttributes")],a)},13030(t,e,r){r.d(e,{Y$:()=>m,XW:()=>B,qB:()=>C,Qt:()=>G,My:()=>J,bf:()=>$,jZ:()=>v,j0:()=>x,Sx:()=>w,E$:()=>b,h:()=>Y,P:()=>k,SL:()=>R,dy:()=>rt,gH:()=>T,ZD:()=>g,si:()=>_,mJ:()=>D,UL:()=>Q,D6:()=>Z,Yi:()=>U,An:()=>O,LC:()=>N,xs:()=>S,EC:()=>E,Xm:()=>L,Vp:()=>H,zD:()=>tt,m8:()=>q,nS:()=>j,H$:()=>z,eI:()=>P,td:()=>nt,Eq:()=>M,jz:()=>A,Aj:()=>F,E7:()=>W,Y4:()=>et,TX:()=>K,Uz:()=>X,ml:()=>I,XP:()=>V});var n=r(34727),s=r(78955),i=r(91829),o=r(20498);class u{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}class f{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}var l=r(37585);class a{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,l.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var y=r(35522);class p{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,y.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,s.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var d=r(620);class B extends c{constructor(t,e=0,r,n){(0,d.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class m extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class g extends a{constructor(t,e=0,r,n){(0,d.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f16"}}class T extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f32"}}class E extends p{constructor(t,e=0,r,n){(0,d.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class S extends p{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static fromTypedArray(t,e){return new S(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class A extends h{constructor(t,e=0,r,n){(0,d.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f16"}}class M extends h{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f32"}}class v extends u{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f32"}}class x extends u{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f64"}}class w extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="f32"}}class b extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f64"}}class C extends c{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}class _ extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f64"}}class L extends p{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(L,t,e)}static fromTypedArray(t,e){return new L(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class F extends h{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="f64"}}class R extends c{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="u8"}}class N extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="u8"}}class P extends p{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(P,t,e)}static fromTypedArray(t,e){return new P(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class V extends h{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="u8"}}class Y extends c{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u16"}}class U extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u16"}}class j extends p{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="u16"}}class X extends h{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="u16"}}class k extends c{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="u32"}}class O extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u32"}}class z extends p{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u32"}}class I extends h{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="u32"}}class $ extends c{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i8"}}class Z extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i8"}}class q extends p{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="i8"}}class K extends h{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i8"}}class G extends c{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="i16"}}class D extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="i16"}}class H extends p{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i16"}}class W extends h{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class J extends c{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class Q extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class tt extends p{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends h{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(et,t,e)}static{this.ElementType="i32"}}class rt extends R{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,n.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(rt,t,e)}}class nt extends V{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,s.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,s.jk)(st,(0,s.T9)(st,e,i.uY),i.Un),(0,s.hs)(st,st,255),(0,s.LI)(st,st),super.setVec(t,st)}get(t,e){return super.get(t,e)/255}set(t,e,r){super.set(t,e,Math.round(255*(0,n.qE)(r,0,1)))}setValues(t,e,r,n,i){(0,s.hZ)(st,e,r,n,i),this.setVec(t,st)}slice(t,e){return this.sliceBuffer(nt,t,e)}}const st=(0,i.vt)()},72727(t,e,r){function n(t,e,r){if(e<=0)return 0;const n=t-r;return n<0?0:Math.floor(n/e)+1}r.d(e,{k:()=>n}),r(53966)},20498(t,e,r){r.d(e,{Bg:()=>s,SX:()=>o,pX:()=>i});let n=globalThis.Float16Array;function s(...t){return new(n??Float32Array)(...t)}function i(){return n}let o=!!n},31199(t,e,r){function n(t,e,r,n){const{loggerTag:s,stride:i}=e;return t.length%i!==0?(n.error(s,`Invalid array length, expected a multiple of ${i}`),new r([])):t}function s(t,e,r,s,i){if(!t)return t;if(t instanceof e)return n(t,s,e,i);for(const o of r)if(t instanceof o)return n(new e(t),s,e,i);if(Array.isArray(t))return n(new e(t),s,e,i);{const n=r.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${n}, but got ${t.constructor.name}`),new e([])}}function i(t,e,r){e[r]=function(t){const e=new Array(t.length);for(let r=0;r<t.length;r++)e[r]=t[r];return e}(t)}r.d(e,{B:()=>i,b:()=>s})},28846(t,e,r){r.d(e,{convertMeshVertexSpace:()=>c});var n=r(49186),s=r(4718),i=r(17676),o=r(1193),u=r(66895),f=r(72258);async function c(t,e,r){await Promise.resolve(),(0,i.Te)(r);const c=(0,f.UR)(t,e,{useEllipsoid:r?.useEllipsoid});if(!c)throw new n.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,u.Lz)(void 0,{vertexAttributes:new o.default({...c,uv:(0,s.o8)(t.vertexAttributes.uv),color:(0,s.o8)(t.vertexAttributes.color)}),vertexSpace:e,transform:null}))}},66895(t,e,r){r.d(e,{$N:()=>l,Lz:()=>i,QN:()=>a,WO:()=>f,hz:()=>u,o2:()=>s});const n=Symbol("meshContext");function s(t){return t&&"object"==typeof t&&n in t?t[n]:void 0}function i(t,e){const r=s(t);return{...t,[n]:{...r,...e}}}const o=Symbol("meshMaterialContext");function u(t){return t&&"object"==typeof t&&o in t?t[o]:void 0}function f(t){const e=u(t);if(e?.materialMap)return t;const r={materialMap:new Map};return{...t,[o]:r}}const c=Symbol("meshTextureContext");function l(t){return t&&"object"==typeof t&&c in t?t[c]:void 0}function a(t){const e=l(t);if(e?.textureMap)return t;const r={textureMap:new Map};return{...t,[c]:r}}},22141(t,e,r){r.d(e,{$5:()=>M,CN:()=>T,JP:()=>g,KM:()=>x,Mv:()=>b,X4:()=>E,gr:()=>A,qs:()=>v,si:()=>S,xA:()=>w});var n=r(34727),s=r(77690),i=r(29242),o=r(58083),u=r(9093),f=r(35522),c=r(51850),l=r(73941),a=r(48353),y=r(9762),p=(r(79258),r(21325)),h=r(28735),d=r(13030),B=r(73354),m=r(50867);const g="Projection may be possible after calling projection.load().";function T(t,e,r,n){t.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${r.wkid}).${n?" ":""}${n}`)}function E(t,e,r,n,s,i){return _(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i))?i:null}function S(t,e,r,n,s,i){return _(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i))?i:null}function A(t,e,r,n){return(0,y.projectBuffer)(t,e,0,r,n,0)?r:null}function M(t,e,r,n){return(0,y.projectBuffer)(t,e,0,r,n,0)?r:null}function v(t,e,r){return(0,s.Ge)(N,r),(0,B.t)(e,t,N),(0,n.or)(N)&&(0,B.n)(e,e),e}function x(t,e,r){return(0,s.z0)(N,r),(0,m.t)(e,t,N),(0,n.or)(N)&&(0,B.n)(e,e,4),e}function w(t,e,r,n,s,i){if(!_(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function b(t,e,r,n,s,i){if(!_(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i,16)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function C(t,e,r,n,i){switch((0,a.l)(n,r,R,n),1===t&&(0,o.B8)(R,R),e){case 0:return(0,s.Ge)(i,R);case 1:return(0,s.z0)(i,R)}}function _(t,e,r,n,s,i,o,u){if(!e)return;const c=n.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,l.q8)(t)||(0,l.KQ)(t)}(s))for(let n=0;n<c;n++)i.getVec(n,L),e.getVec(n,F),(0,f.ei)(F,F,C(t,r,L,o,N)),u.setVec(n,F);else for(let s=0;s<c;s++){i.getVec(s,L),e.getVec(s,F);const c=(0,h.jg)(n.get(s,1));let l=Math.cos(c);1===r!=(0===t)&&(l=1/l),C(t,r,L,o,N),0===t?(N[0]*=l,N[1]*=l,N[2]*=l,N[3]*=l,N[4]*=l,N[5]*=l):(N[0]*=l,N[3]*=l,N[6]*=l,N[1]*=l,N[4]*=l,N[7]*=l),(0,f.ei)(F,F,N),(0,f.S8)(F,F),u.setVec(s,F)}return u}const L=(0,c.vt)(),F=(0,c.vt)(),R=(0,u.vt)(),N=(0,i.vt)()},72258(t,e,r){r.d(e,{UR:()=>S,p5:()=>E,xK:()=>b});var n=r(53966),s=r(34727),i=r(86211),o=r(77690),u=r(29242),f=r(58083),c=r(9093),l=r(35522),a=r(51850),y=r(73941),p=r(98764),h=r(48353),d=r(65806),B=r(27615),m=r(73354),g=r(22141);const T=()=>n.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function E(t,e,{vertexSpace:r,spatialReference:n}){if("georeferenced"===r.type){const s=t;if(!(0,d.g)(e,s,n))return!1;const{origin:i}=r;return(0,l.Re)(t,s,i),!0}const s=(0,p.lO)(n),i=t;if(!(0,d.g)(e,i,s))return!1;const{origin:o}=r,u=R;if(!(0,h.l)(n,o,u,s))return!1;const c=(0,f.B8)(R,u);return null!=c&&((0,l.Z0)(t,i,c),!0)}function S(t,e,r){const{vertexSpace:n,transform:s,vertexAttributes:i}=t,u=(0,B.Hq)(n)?s:null,a=x(t.spatialReference,r,3);if((0,B.yJ)(n,e)&&(!u||(0,f.t2)(u.localMatrix,c.zK))&&w(a)){const{position:t,normal:e,tangent:n}=i,s=r?.allowBufferReuse;return{position:s?t:t.slice(),normal:s?e:e?.slice(),tangent:s?n:n?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:r},{origin:n},s,i){const o=A(e,i);if(!(0,h.l)(e,n,C,o))return(0,g.CN)(T(),e,o),null;if(r&&(0,f.lw)(C,C,r.localMatrix),!(0,h.l)(e,s,_,o))return(0,g.CN)(T(),o,e),null;(0,f.B8)(_,_);const u=(0,f.lw)(C,_,C);return v(u,e,i,3),M(t,u)}(t,t.vertexSpace,e.origin,r):function({spatialReference:t,vertexAttributes:e,transform:r},{origin:n},s,i){const o=A(t,i);if(!(0,h.l)(t,n,C,o))return(0,g.CN)(T(),t,o),null;r&&(0,f.lw)(C,C,r.localMatrix),v(C,t,i,1);const u=new Float64Array(e.position.length),c=function(t,e,r,n,s){(0,m.f)(n,t,e);const i=new Float64Array(t.length);return(0,g.$5)(n,s,i,r)?i:((0,g.CN)(T(),s,r),null)}(e.position,C,t,u,o);if(!c)return null;const a=function(t,e,r,n,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,g.qs)(s,o,i),(0,g.si)(o,t,e,r,n,o)?o:((0,g.CN)(T(),n,e),null)}(c,t,u,o,e.normal,C);if(e.normal&&!a)return null;const y=function(t,e,r,n,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,g.KM)(s,o,i),(0,g.Mv)(o,t,e,r,n,o)?o:((0,g.CN)(T(),n,e),null)}(c,t,u,o,e.tangent,C);if(e.tangent&&!y)return null;if(s){const t=(0,l.ze)(F,s);(0,m.h)(c,c,t)}return{position:c,normal:a,tangent:y}}(t,t.vertexSpace,e.origin,r);case"georeferenced":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:r},{origin:n},s,i){const u=A(e,i);if(!(0,h.l)(e,s,C,u))return(0,g.CN)(T(),e,u),null;const c=1/x(e,i,2);(0,f.hs)(C,C,[c,c,c]);const l=(0,f.B8)(_,C),{position:a,normal:y,tangent:p}=function(t,e,r){if(!e)return t;if(!r){const{position:r,normal:n,tangent:s}=t;return{position:(0,m.h)(new Float64Array(r.length),r,e),tangent:s,normal:n}}const n=M(t,r.localMatrix);return(0,m.h)(n.position,n.position,e),n}(t,n,r),d=new Float64Array(a.length),B=function(t,e,r,n,s){const i=(0,g.gr)(t,e,n,s);if(!i)return(0,g.CN)(T(),e,s),null;const o=new Float64Array(i.length);return(0,m.f)(o,i,r),o}(a,e,l,d,u);if(!B)return null;const E=(0,o.Ge)(L,l),S=function(t,e,r,n,s,i,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,g.X4)(t,e,r,n,s,u)?((0,m.t)(u,u,i),u):((0,g.CN)(T(),r,s),null)}(y,a,e,d,u,E,y!==t.normal?y:void 0);if(!S&&y)return null;const v=function(t,e,r,n,s,i,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,g.xA)(t,e,r,n,s,u)?((0,m.t)(u,u,i,4),u):((0,g.CN)(T(),r,s),null)}(p,a,e,d,u,E,p!==t.tangent?p:void 0);return!v&&p?null:{position:B,normal:S,tangent:v}}(t,t.vertexSpace,e.origin,r):function({vertexAttributes:t,transform:e,spatialReference:r},{origin:n},s,i){const o=x(r,i,3),u=n||!w(o)?(0,f.C)(C,e?.localMatrix??c.zK):null;u&&v(u,r,i,3);const{position:a,normal:y,tangent:p}=u?M(t,u):t,h=i?.allowBufferReuse,d=h?a:new Float64Array(a.length);let B=a;if(n&&(B=(0,m.h)(d,B,n)),s){const t=(0,l.ze)(F,s);B=(0,m.h)(d,B,t)}return{position:B!==t.position||h?B:B.slice(),normal:y!==t.normal||h?y:y?.slice(),tangent:p!==t.tangent||h?p:p?.slice()}}(t,t.vertexSpace,e.origin,r)}}function A(t,e){return e?.useEllipsoid&&(0,y.B3)(t)?p.Y0:(0,p.lO)(t)}function M(t,e){const r=new Float64Array(t.position.length);(0,m.f)(r,t.position,e);const n=t.normal?new Float32Array(t.normal.length):null,s=t.tangent?new Float32Array(t.tangent.length):null;return n&&t.normal&&(0,g.qs)(t.normal,n,e),s&&t.tangent&&(0,g.KM)(t.tangent,s,e),{position:r,normal:n,tangent:s}}function v(t,e,r,n){const s=x(e,r,n);w(s)||(0,f.hs)(t,t,[s,s,s])}function x(t,e,r){const n=!!(1&r),s=!!(2&r),i=e?.sourceUnit,o=e?.targetUnit;if(!i&&!o)return 1;let u=b(i,t);n||!i||w(u)||(T().warn("source unit conversion not supported"),u=1);let f=1/b(o,t);return s||!o||w(f)||(T().warn("target unit conversion not supported"),f=1),u*f}function w(t){return(0,s.Io)(t,1)}function b(t,e){if(null==t)return 1;const r=(0,i.KX)(e);return 1/(0,i.oU)(r,"meters",t)}const C=(0,c.vt)(),_=(0,c.vt)(),L=(0,u.vt)(),F=(0,a.vt)(),R=(0,c.vt)()},620(t,e,r){r.d(e,{L:()=>f,MX:()=>o,O_:()=>u,kL:()=>c,vA:()=>i,zH:()=>l});var n=r(48163);r(78955),(0,r(91829).vt)();class s{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new s(`${e} at ${t}`)}}function o(t,e){t||(e=e||"",console.warn("Verify failed: "+e+"\n"+new Error("verify").stack))}function u(t,e,r,n){let s,i=(r[0]-t[0])/e[0],o=(n[0]-t[0])/e[0];i>o&&(s=i,i=o,o=s);let u=(r[1]-t[1])/e[1],f=(n[1]-t[1])/e[1];if(u>f&&(s=u,u=f,f=s),i>f||u>o)return!1;u>i&&(i=u),f<o&&(o=f);let c=(r[2]-t[2])/e[2],l=(n[2]-t[2])/e[2];return c>l&&(s=c,c=l,l=s),!(i>l||c>o||(l<o&&(o=l),o<0))}function f(t,e,r,s,i,o=(0,n.vt)()){const u=(s[i]-r[i])*(e[0]-t[0])-(s[0]-r[0])*(e[i]-t[i]),f=(s[0]-r[0])*(t[i]-r[i])-(s[i]-r[i])*(t[0]-r[0]);if(0===u)return!1;const c=f/u;return o[0]=t[0]+c*(e[0]-t[0]),o[1]=t[i]+c*(e[i]-t[i]),!0}function c(t,e){return Math.log(t)/Math.log(e)}function l(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&1===t[15]}}}]);
|