@arcgis/core 5.0.0-next.85 → 5.0.0-next.87
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/Basemap.d.ts +2 -2
- package/Camera.d.ts +3 -3
- package/CameraLayout.d.ts +2 -2
- package/Graphic.d.ts +3 -3
- package/Ground.d.ts +2 -2
- package/Ground.js +1 -1
- package/Map.d.ts +2 -2
- package/PopupTemplate.d.ts +3 -3
- package/Viewpoint.d.ts +2 -2
- package/WebDocument2D.d.ts +3 -3
- package/WebScene.d.ts +3 -3
- package/WebScene.js +1 -1
- package/analysis/Analysis.d.ts +3 -3
- package/analysis/Dimension/types.d.ts +0 -1
- package/analysis/DimensionSimpleStyle.d.ts +3 -3
- package/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +2 -2
- package/analysis/ElevationProfile/ElevationProfileLine.d.ts +2 -2
- package/analysis/ElevationProfile/ElevationProfileLineChartOptions.d.ts +2 -2
- package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +2 -2
- package/analysis/ElevationProfile/ElevationProfileViewOptions.d.ts +2 -2
- package/analysis/LengthDimension.d.ts +3 -3
- package/analysis/LineOfSightAnalysisObserver.d.ts +3 -3
- package/analysis/LineOfSightAnalysisTarget.d.ts +3 -3
- package/analysis/ShadowCast/DiscreteOptions.d.ts +2 -2
- package/analysis/ShadowCast/MinDurationOptions.d.ts +2 -2
- package/analysis/ShadowCast/TotalDurationOptions.d.ts +2 -2
- package/analysis/ShadowCast/types.d.ts +0 -1
- package/analysis/SlicePlane.d.ts +3 -3
- package/analysis/Viewshed.d.ts +3 -3
- package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +3 -3
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +16 -4
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.js +1 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +3 -3
- package/analysis/VolumeMeasurement/types.d.ts +0 -1
- package/analysis/support/AnalysisOriginWebScene.d.ts +2 -2
- package/applications/Components/OrientedImageryViewer/galleryUtils.d.ts +80 -0
- package/applications/Components/OrientedImageryViewer/galleryUtils.js +5 -0
- package/applications/Components/clipboard.d.ts +106 -0
- package/applications/Components/clipboard.js +5 -0
- package/applications/Components/templateUtils.d.ts +30 -1
- package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
- package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
- package/assets/esri/core/t9n/Units.json +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{3b6fc34b6d92eef030e5.js → 0276e689e1371b40cff3.js} +1 -1
- package/assets/esri/core/workers/chunks/045a9cc900bb4ac8afde.js +1 -0
- package/assets/esri/core/workers/chunks/048173088bbeb1f6b8b6.js +1 -0
- package/assets/esri/core/workers/chunks/09ca0d05b090e9a70e61.js +1 -0
- package/assets/esri/core/workers/chunks/0be8b9d9ef56c37e74c3.js +1 -0
- package/assets/esri/core/workers/chunks/0bef671165e64f90ac86.js +1 -0
- package/assets/esri/core/workers/chunks/0c025d2b0d3162b07feb.js +1 -0
- package/assets/esri/core/workers/chunks/{84a4390b1c277c415d44.js → 0c358199ada2ff71e7d9.js} +1 -1
- package/assets/esri/core/workers/chunks/0c4ed18d67dea0c99f01.js +1 -0
- package/assets/esri/core/workers/chunks/0e0208b87566f4470f1d.js +1 -0
- package/assets/esri/core/workers/chunks/{c791e8ebf3ee0805c479.js → 0fc0fd7618ef25dd6b67.js} +1 -1
- package/assets/esri/core/workers/chunks/{59e7a0215791b2b51180.js → 126183819921e6025c90.js} +1 -1
- package/assets/esri/core/workers/chunks/{a09099697955eb44bfac.js → 15c180deb8d09127ad31.js} +1 -1
- package/assets/esri/core/workers/chunks/1616ee2f6dce0203f1d5.js +1 -0
- package/assets/esri/core/workers/chunks/1919ed99166e70021917.js +1 -0
- package/assets/esri/core/workers/chunks/1c68befc39d39799fcb8.js +1 -0
- package/assets/esri/core/workers/chunks/21bb414cb0623ffad577.js +1 -0
- package/assets/esri/core/workers/chunks/21c84e014c73bd85f4a3.js +1 -0
- package/assets/esri/core/workers/chunks/262677294d8c653e2b0b.js +1 -0
- package/assets/esri/core/workers/chunks/{04fddd41a8e6a4c1bc57.js → 28a6a59033baa44bafab.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5b32bc3f7ee911e3c59.js → 28c273f34ffde25cebc6.js} +1 -1
- package/assets/esri/core/workers/chunks/{b7e40118b4d645e9f8e1.js → 2a12026f1ca9e8900a8b.js} +1 -1
- package/assets/esri/core/workers/chunks/2bc9f407f89d554a43ce.js +1 -0
- package/assets/esri/core/workers/chunks/2f21c5ae4fbe85c2792b.js +1 -0
- package/assets/esri/core/workers/chunks/3332ee9727874953523c.js +1 -0
- package/assets/esri/core/workers/chunks/{c477b0ce55211339c4cb.js → 33f44cc192c72064b5b6.js} +1 -1
- package/assets/esri/core/workers/chunks/365cb8aab4ca56999b47.js +1 -0
- package/assets/esri/core/workers/chunks/{b190a776de4859ac00f8.js → 3672125daca3df24c8ab.js} +1 -1
- package/assets/esri/core/workers/chunks/37a607f3835ec6f60834.js +1 -0
- package/assets/esri/core/workers/chunks/{c46a4681cbba638b58c1.js → 39dd80c184ac48f877f1.js} +1 -1
- package/assets/esri/core/workers/chunks/3a3adf9b6502ad698aea.js +1 -0
- package/assets/esri/core/workers/chunks/3b5f24bb824c95996308.js +1 -0
- package/assets/esri/core/workers/chunks/{304ea784c28dc78e5e65.js → 3c663035cf872b66cb98.js} +1 -1
- package/assets/esri/core/workers/chunks/{055aead7135a2f8bca29.js → 3d924488471601a17915.js} +1 -1
- package/assets/esri/core/workers/chunks/{98e04c2382fa5ba382fc.js → 3dc1ae04cfa2c06daf48.js} +1 -1
- package/assets/esri/core/workers/chunks/{156c73a948bde11f0d53.js → 42b56932340b6d0bc712.js} +1 -1
- package/assets/esri/core/workers/chunks/45c1a3376b138eeee329.js +1 -0
- package/assets/esri/core/workers/chunks/{301fa6276f4098521106.js → 476e51284e6ed7dc5c99.js} +1 -1
- package/assets/esri/core/workers/chunks/{18cdd268fc921ffd92e2.js → 47bea83ae7fe0e1acee0.js} +1 -1
- package/assets/esri/core/workers/chunks/4de93e9f91fd891ed96f.js +1 -0
- package/assets/esri/core/workers/chunks/4eb02a03956d1c9c77ee.js +1 -0
- package/assets/esri/core/workers/chunks/{1a41c9127ca5a260d5ef.js → 555a252bdb87e340bd02.js} +1 -1
- package/assets/esri/core/workers/chunks/5670e430584f020a3530.js +1 -0
- package/assets/esri/core/workers/chunks/5734aefbce8b6425630c.js +1 -0
- package/assets/esri/core/workers/chunks/{1fe1a131be1d5e1e23ed.js → 5a1921c177580f17ff96.js} +1 -1
- package/assets/esri/core/workers/chunks/{70df4331ed29d823bf38.js → 5b297353b058323f8080.js} +1 -1
- package/assets/esri/core/workers/chunks/5ef5dcca7c9b376f7f77.js +1 -0
- package/assets/esri/core/workers/chunks/{3849dc35941e569fae5f.js → 614c63dae0158da0ed3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{c500b59cd7da54fe72ec.js → 641450da2680ae09b8e7.js} +1 -1
- package/assets/esri/core/workers/chunks/{ec03d59984782529031a.js → 687677acc05b5e87effe.js} +1 -1
- package/assets/esri/core/workers/chunks/{6de843d1809cba61ded3.js → 727321c615f35d708d46.js} +1 -1
- package/assets/esri/core/workers/chunks/782c24211daacb47b0b2.js +1 -0
- package/assets/esri/core/workers/chunks/79067e7d1ebc46afd775.js +1 -0
- package/assets/esri/core/workers/chunks/7a454e4d6df3360e0ab9.js +1 -0
- package/assets/esri/core/workers/chunks/7da56ba34c81d2bbaf25.js +1 -0
- package/assets/esri/core/workers/chunks/7f15d15c7e2c5d3e70c3.js +1 -0
- package/assets/esri/core/workers/chunks/{ce9467dc1ff695d795e5.js → 824b45b04b4f4f91dbce.js} +1 -1
- package/assets/esri/core/workers/chunks/836d10ceb93ed19f0aa6.js +1 -0
- package/assets/esri/core/workers/chunks/{854adab6a06af861c104.js → 837d39e70880e4310bda.js} +1 -1
- package/assets/esri/core/workers/chunks/890833e98e79b8fd3747.js +1 -0
- package/assets/esri/core/workers/chunks/{d6e11f05db698d14f21d.js → 8a7f56139b7de0011a37.js} +1 -1
- package/assets/esri/core/workers/chunks/8bcb2180ecc88a39b317.js +1 -0
- package/assets/esri/core/workers/chunks/8c5d827cbf8869defb87.js +1 -0
- package/assets/esri/core/workers/chunks/{db9a9712038df76e3eda.js → 8ef337e25d65670eb73b.js} +1 -1
- package/assets/esri/core/workers/chunks/{e201bfe3158c025edc99.js → 93faad2a759b08dce619.js} +1 -1
- package/assets/esri/core/workers/chunks/{1779e6eabc299831fc9f.js → 94c4ef224ff38eca7b87.js} +1 -1
- package/assets/esri/core/workers/chunks/{9ff1e650ce0912afa780.js → 97155c8ac832d7c46f24.js} +1 -1
- package/assets/esri/core/workers/chunks/{14f8215ab716c6d9d5f8.js → 98cb131b62e30aee35e1.js} +1 -1
- package/assets/esri/core/workers/chunks/{b586d7e608e8ba8b88fe.js → 9b3b9df0aa0fdcc77aa2.js} +1 -1
- package/assets/esri/core/workers/chunks/{841058de8bc6e328fd68.js → 9d77a7d04872b4535e9e.js} +1 -1
- package/assets/esri/core/workers/chunks/{338768f94cc49559b209.js → 9ebc4303e29ee0fc1716.js} +1 -1
- package/assets/esri/core/workers/chunks/{5543de9a0435c319f4f9.js → 9fa1512baa6e95d3f878.js} +20 -20
- package/assets/esri/core/workers/chunks/{e8f6305744f87bbed961.js → a5ed35f53769feb751db.js} +1 -1
- package/assets/esri/core/workers/chunks/a6b8ce1c2996ee392bdf.js +1 -0
- package/assets/esri/core/workers/chunks/{a2c0c1bb5e775abefc90.js → aa09e261d1f7dffaad8c.js} +1 -1
- package/assets/esri/core/workers/chunks/b268b4cbf5b0c856f88e.js +1 -0
- package/assets/esri/core/workers/chunks/b2f6cee006788ce3bd16.js +1 -0
- package/assets/esri/core/workers/chunks/{9fac9eda0a41f7f4c2c6.js → b46e772e415e2cfca896.js} +1 -1
- package/assets/esri/core/workers/chunks/b4ab715a3c506e122f35.js +1 -0
- package/assets/esri/core/workers/chunks/{b91a157fb5f729de6597.js → b9756dce0b3af1a9dc54.js} +1 -1
- package/assets/esri/core/workers/chunks/baa7e90ec5259057d86b.js +1 -0
- package/assets/esri/core/workers/chunks/{52ae2073604deef63ea2.js → c083045d21636b95f26f.js} +1 -1
- package/assets/esri/core/workers/chunks/{348560f083350ad0bf2e.js → c38098f7073a10efdb1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{4ff3c03cfbec928c0720.js → c4fb3f0b0cfb21e68413.js} +1 -1
- package/assets/esri/core/workers/chunks/{adecd31fd64d6753682d.js → c7c865dc1a93e781a3e3.js} +1 -1
- package/assets/esri/core/workers/chunks/c8e56dc1239118ac2a60.js +1 -0
- package/assets/esri/core/workers/chunks/{181fab86394f1f912490.js → cc464d5a83f8f405e66c.js} +1 -1
- package/assets/esri/core/workers/chunks/{d9d2178d436597b1afaf.js → cc6d9b2062b9de629111.js} +1 -1
- package/assets/esri/core/workers/chunks/d5386c0e77063c87fddd.js +1 -0
- package/assets/esri/core/workers/chunks/d782671235af2db1c458.js +1 -0
- package/assets/esri/core/workers/chunks/{f0eb2bfe5a8607b251f5.js → dc2c9b584f8e4627de7f.js} +1 -1
- package/assets/esri/core/workers/chunks/de33ce9b6f4e6c0e1389.js +1 -0
- package/assets/esri/core/workers/chunks/{0abb084b8a137f4fcdfc.js → e1c5773c12d9947bdc5f.js} +1 -1
- package/assets/esri/core/workers/chunks/e55ce8466aa979ac1e6b.js +1 -0
- package/assets/esri/core/workers/chunks/{21739c37160061f229ef.js → e585883d0036aa866420.js} +1 -1
- package/assets/esri/core/workers/chunks/e6d6d664fc9f2cd6a042.js +1 -0
- package/assets/esri/core/workers/chunks/e7cdc2a21104d84aec4a.js +1 -0
- package/assets/esri/core/workers/chunks/e9edf3987039def65859.js +1 -0
- package/assets/esri/core/workers/chunks/eb063660c37093f85349.js +1 -0
- package/assets/esri/core/workers/chunks/{c825ca22894bdb4d01ba.js → edbe52c2848486d64b16.js} +1 -1
- package/assets/esri/core/workers/chunks/{4f8895eb57ec6ab4b318.js → f5a61fa75ac877b5bb74.js} +1 -1
- package/assets/esri/core/workers/chunks/f9bc4edfdb1590be2d92.js +1 -0
- package/assets/esri/core/workers/chunks/fc763ce37d631e006199.js +1 -0
- package/assets/esri/core/workers/chunks/ff2a170acd98edfd0e06.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +9 -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/chunks/bundle.js +1 -1
- package/chunks/libtess-f32.js +1 -1
- package/chunks/libtess-f64.js +1 -1
- package/config.js +1 -1
- package/copyright.txt +84 -0
- package/core/Clonable.d.ts +0 -2
- package/core/Collection.d.ts +1 -1
- package/core/Error.d.ts +0 -1
- package/core/Evented.d.ts +0 -2
- package/core/Identifiable.d.ts +0 -1
- package/core/JSONSupport.d.ts +0 -2
- package/core/MultiOriginJSONSupport.d.ts +1 -3
- package/core/Promise.d.ts +9 -5
- package/core/ReadOnlyMultiOriginJSONSupport.d.ts +0 -2
- package/core/Version.d.ts +0 -1
- package/core/accessorSupport/types.d.ts +0 -1
- package/core/quantity.js +1 -1
- package/core/quantityFormatUtils.js +1 -1
- package/core/sql/types.d.ts +0 -1
- package/core/timeUtils.js +1 -1
- package/core/types.d.ts +0 -1
- package/core/units.d.ts +2 -2
- package/core/units.js +1 -1
- package/core/workers/WorkerHandle.js +1 -1
- package/editing/Clipboard.js +5 -0
- package/editing/sharedTemplates/types.d.ts +0 -1
- package/effects/FocusArea.d.ts +3 -3
- package/effects/FocusAreaOutline.d.ts +3 -3
- package/effects/FocusAreas.d.ts +3 -3
- package/effects/types.d.ts +0 -1
- package/form/ExpressionInfo.d.ts +2 -2
- package/form/FormTemplate.d.ts +2 -2
- package/form/elements/Element.d.ts +2 -2
- package/form/elements/UtilityNetworkAssociationsElement.d.ts +2 -2
- package/geometry/Geometry.d.ts +2 -2
- package/geometry/HeightModelInfo.d.ts +2 -2
- package/geometry/Mesh.d.ts +3 -3
- package/geometry/SpatialReference.d.ts +2 -2
- package/geometry/ellipsoidUtils.js +1 -1
- package/geometry/geometryEngineTypes.d.ts +0 -1
- package/geometry/libtess.js +1 -1
- package/geometry/projection/projectors.js +1 -1
- package/geometry/projectionUtils.js +1 -1
- package/geometry/support/MeshComponent.d.ts +3 -3
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +3 -3
- package/geometry/support/MeshLocalVertexSpace.d.ts +3 -3
- package/geometry/support/MeshMaterial.d.ts +3 -3
- package/geometry/support/MeshTexture.d.ts +3 -3
- package/geometry/support/MeshTextureTransform.d.ts +3 -3
- package/geometry/support/MeshTransform.d.ts +3 -3
- package/geometry/support/MeshVertexAttributes.d.ts +3 -3
- package/geometry/support/meshUtils/projection.js +1 -1
- package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
- package/geometry/support/planetGCSUtils.js +1 -1
- package/geometry/support/spatialReferenceUtils.js +1 -1
- package/graphic/GraphicOrigin.d.ts +0 -1
- package/ground/NavigationConstraint.d.ts +2 -2
- package/identity/Credential.d.ts +2 -2
- package/identity/IdentityModal.js +1 -1
- package/identity/OAuthInfo.d.ts +2 -2
- package/identity/ServerInfo.d.ts +2 -2
- package/interfaces.d.ts +2 -3
- package/intl/locale.d.ts +0 -1
- package/intl/messages.d.ts +0 -1
- package/intl/number.d.ts +0 -1
- package/intl/substitute.d.ts +0 -1
- package/intl/t9n.d.ts +0 -1
- package/kernel.js +1 -1
- package/layers/BaseElevationLayer.d.ts +3 -4
- package/layers/BingMapsLayer.d.ts +2 -2
- package/layers/BuildingSceneLayer.d.ts +5 -4
- package/layers/CatalogLayer.d.ts +3 -3
- package/layers/DimensionLayer.d.ts +2 -2
- package/layers/ElevationLayer.d.ts +3 -4
- package/layers/ElevationLayer.js +1 -1
- package/layers/FeatureLayer.d.ts +4 -4
- package/layers/GaussianSplatLayer.d.ts +2 -2
- package/layers/GeoJSONLayer.d.ts +2 -2
- package/layers/GeoRSSLayer.d.ts +2 -2
- package/layers/GroupLayer.d.ts +2 -2
- package/layers/ImageryLayer.d.ts +3 -3
- package/layers/ImageryTileLayer.d.ts +3 -3
- package/layers/IntegratedMesh3DTilesLayer.d.ts +2 -2
- package/layers/IntegratedMeshLayer.d.ts +5 -4
- package/layers/KMLLayer.d.ts +2 -2
- package/layers/KnowledgeGraphLayer.d.ts +2 -2
- package/layers/Layer.d.ts +2 -2
- package/layers/LineOfSightLayer.d.ts +2 -2
- package/layers/LinkChartLayer.d.ts +2 -2
- package/layers/MapImageLayer.d.ts +2 -2
- package/layers/MapNotesLayer.d.ts +2 -2
- package/layers/MediaLayer.d.ts +2 -2
- package/layers/OGCFeatureLayer.d.ts +2 -2
- package/layers/ParquetLayer.d.ts +3 -3
- package/layers/PointCloudLayer.d.ts +5 -4
- package/layers/RouteLayer.d.ts +2 -2
- package/layers/SceneLayer.d.ts +6 -5
- package/layers/StreamLayer.d.ts +3 -3
- package/layers/SubtypeGroupLayer.d.ts +4 -4
- package/layers/TileLayer.d.ts +2 -2
- package/layers/UnknownLayer.d.ts +2 -2
- package/layers/UnsupportedLayer.d.ts +2 -2
- package/layers/VectorTileLayer.d.ts +2 -2
- package/layers/VideoLayer.d.ts +2 -2
- package/layers/ViewshedLayer.d.ts +2 -2
- package/layers/VoxelLayer.d.ts +2 -2
- package/layers/WCSLayer.d.ts +3 -3
- package/layers/WFSLayer.d.ts +2 -2
- package/layers/WMSLayer.d.ts +2 -2
- package/layers/WMTSLayer.d.ts +2 -2
- package/layers/WebTileLayer.d.ts +2 -2
- package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +2 -2
- package/layers/buildingSublayers/BuildingGroupSublayer.d.ts +1 -1
- package/layers/buildingSublayers/BuildingSublayer.d.ts +2 -2
- package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -2
- package/layers/catalog/CatalogFootprintLayer.d.ts +2 -2
- package/layers/effects/types.d.ts +0 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/knowledgeGraph/IdTypePair.d.ts +0 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -2
- package/layers/mixins/APIKeyMixin.d.ts +0 -1
- package/layers/mixins/ArcGISImageService.d.ts +30 -16
- package/layers/mixins/CustomParametersMixin.d.ts +0 -1
- package/layers/mixins/EditBusLayer.d.ts +0 -2
- package/layers/mixins/ImageryTileMixin.d.ts +2 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/mixins/OperationalLayer.d.ts +0 -1
- package/layers/mixins/ScaleRangeLayer.d.ts +0 -1
- package/layers/mixins/SceneService.d.ts +0 -6
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/pointCloudFilters/PointCloudFilter.d.ts +2 -2
- package/layers/raster/datasets/pixelReader.d.ts +0 -1
- package/layers/raster/datasets/types.d.ts +0 -1
- package/layers/raster/functions/SpectralConversionFunction.js +5 -0
- package/layers/raster/functions/SpectralConversionFunctionArguments.js +5 -0
- package/layers/raster/functions/changeDetectionUtils.d.ts +0 -1
- package/layers/raster/functions/conversionUtils.js +1 -1
- package/layers/raster/functions/focalStatUtils.d.ts +0 -1
- package/layers/raster/functions/rasterFunctionHelper.js +1 -1
- package/layers/raster/functions/vectorFieldUtils.js +1 -1
- package/layers/scene/types.d.ts +11 -0
- package/layers/support/AggregateField.d.ts +2 -2
- package/layers/support/BuildingFilter.d.ts +2 -2
- package/layers/support/BuildingFilterBlock.d.ts +2 -2
- package/layers/support/BuildingSummaryStatistics.d.ts +3 -3
- package/layers/support/CodedValue.d.ts +2 -2
- package/layers/support/ControlPoint.d.ts +2 -2
- package/layers/support/ControlPointsGeoreference.d.ts +2 -2
- package/layers/support/DimensionalDefinition.d.ts +2 -2
- package/layers/support/DisplayFilter.d.ts +3 -3
- package/layers/support/DisplayFilterInfo.d.ts +3 -3
- package/layers/support/Domain.d.ts +2 -2
- package/layers/support/EditFieldsInfo.d.ts +3 -3
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/support/ElevationTileData.js +1 -1
- package/layers/support/ExpressionInfo.d.ts +3 -3
- package/layers/support/FacilityLayerInfo.d.ts +2 -2
- package/layers/support/FeatureEffect.d.ts +2 -2
- package/layers/support/FeatureFilter.d.ts +2 -2
- package/layers/support/FeatureReductionBinning.d.ts +2 -2
- package/layers/support/FeatureReductionCluster.d.ts +2 -2
- package/layers/support/FeatureReductionSelection.d.ts +2 -2
- package/layers/support/FeatureTemplate.d.ts +3 -3
- package/layers/support/FeatureType.d.ts +3 -3
- package/layers/support/Field.d.ts +2 -2
- package/layers/support/FieldConfiguration.d.ts +3 -3
- package/layers/support/GeometryFieldsInfo.d.ts +3 -3
- package/layers/support/KMLSublayer.d.ts +3 -3
- package/layers/support/LOD.d.ts +2 -2
- package/layers/support/LabelClass.d.ts +2 -2
- package/layers/support/LabelExpressionInfo.d.ts +2 -2
- package/layers/support/LayerFloorInfo.d.ts +2 -2
- package/layers/support/LevelLayerInfo.d.ts +2 -2
- package/layers/support/LocalMediaElementSource.d.ts +3 -3
- package/layers/support/MapImage.d.ts +2 -2
- package/layers/support/MediaElementBase.d.ts +2 -2
- package/layers/support/MosaicRule.d.ts +2 -2
- package/layers/support/MultidimensionalSubset.d.ts +13 -4
- package/layers/support/OrderByInfo.d.ts +2 -2
- package/layers/support/ParquetGeometryEncodingLocation.d.ts +3 -3
- package/layers/support/ParquetGeometryEncodingWkb.d.ts +3 -3
- package/layers/support/PixelBlock.d.ts +2 -2
- package/layers/support/PlaybackInfo.d.ts +3 -3
- package/layers/support/PurgeOptions.d.ts +2 -2
- package/layers/support/RasterBandInfo.d.ts +2 -2
- package/layers/support/RasterFunction.d.ts +2 -2
- package/layers/support/RasterInfo.d.ts +2 -2
- package/layers/support/RasterSensorInfo.d.ts +2 -2
- package/layers/support/Relationship.d.ts +5 -3
- package/layers/support/RouteStopSymbols.d.ts +2 -2
- package/layers/support/RouteSymbols.d.ts +2 -2
- package/layers/support/SceneFilter.d.ts +2 -2
- package/layers/support/SceneLayerViewFilter.js +5 -0
- package/layers/support/SceneModification.d.ts +2 -2
- package/layers/support/SceneModifications.d.ts +1 -1
- package/layers/support/SiteLayerInfo.d.ts +2 -2
- package/layers/support/Sublayer.d.ts +2 -2
- package/layers/support/Subtype.d.ts +3 -3
- package/layers/support/SubtypeSublayer.d.ts +3 -3
- package/layers/support/TelemetryData.d.ts +3 -3
- package/layers/support/TelemetryDisplay.d.ts +3 -3
- package/layers/support/TileInfo.d.ts +2 -2
- package/layers/support/TileMatrixSet.d.ts +2 -2
- package/layers/support/TimeInfo.d.ts +3 -3
- package/layers/support/TrackInfo.d.ts +3 -3
- package/layers/support/TrackPartInfo.d.ts +3 -3
- package/layers/support/VideoTimeExtent.d.ts +3 -3
- package/layers/support/WMSSublayer.d.ts +2 -2
- package/layers/support/WMTSStyle.d.ts +2 -2
- package/layers/support/WMTSSublayer.d.ts +2 -2
- package/layers/support/rasterFunctionUtils.d.ts +0 -4
- package/layers/support/types.d.ts +32 -0
- package/layers/video/types.d.ts +0 -1
- package/layers/voxel/VoxelColorStop.d.ts +3 -3
- package/layers/voxel/VoxelDynamicSection.d.ts +3 -3
- package/layers/voxel/VoxelIsosurface.d.ts +3 -3
- package/layers/voxel/VoxelOpacityStop.d.ts +3 -3
- package/layers/voxel/VoxelRangeFilter.d.ts +3 -3
- package/layers/voxel/VoxelSlice.d.ts +3 -3
- package/layers/voxel/VoxelTransferFunctionStyle.d.ts +3 -3
- package/layers/voxel/VoxelUniqueValue.d.ts +3 -3
- package/layers/voxel/VoxelVariable.d.ts +2 -2
- package/layers/voxel/VoxelVariableStyle.d.ts +2 -2
- package/layers/voxel/VoxelVolumeStyle.d.ts +2 -2
- package/layers/wms/types.d.ts +0 -1
- package/layers/wmts/types.d.ts +0 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +3 -3
- package/linkChart/LayoutSettings.d.ts +3 -3
- package/linkChart/LinkChartProperties.d.ts +3 -3
- package/linkChart/NonspatialDataDisplay.d.ts +3 -3
- package/linkChart/OrganicLayoutSettings.d.ts +3 -3
- package/linkChart/types.d.ts +0 -1
- package/networks/CircuitManager.d.ts +2 -2
- package/networks/Network.d.ts +2 -2
- package/networks/UnitIdentifierManager.d.ts +2 -2
- package/networks/support/Circuit.d.ts +2 -2
- package/networks/support/CircuitLocation.d.ts +2 -2
- package/networks/support/CircuitPath.d.ts +2 -2
- package/networks/support/CircuitPathConnectivityElement.d.ts +2 -2
- package/networks/support/CircuitSection.d.ts +2 -2
- package/networks/support/NamedTraceConfiguration.d.ts +2 -2
- package/networks/support/Subcircuit.d.ts +2 -2
- package/networks/support/Terminal.d.ts +2 -2
- package/networks/support/TerminalConfiguration.d.ts +2 -2
- package/networks/support/TraceConfiguration.d.ts +2 -2
- package/networks/support/UNTraceConfiguration.d.ts +2 -2
- package/networks/support/typeUtils.d.ts +0 -1
- package/package.json +1 -1
- package/popup/ElementExpressionInfo.d.ts +2 -2
- package/popup/ExpressionInfo.d.ts +2 -2
- package/popup/FieldInfo.d.ts +3 -3
- package/popup/LayerOptions.d.ts +2 -2
- package/popup/RelatedRecordsInfo.d.ts +2 -2
- package/popup/content/AttachmentsContent.d.ts +2 -2
- package/popup/content/Content.d.ts +2 -2
- package/popup/content/RelationshipContent.d.ts +2 -2
- package/popup/content/UtilityNetworkAssociationsContent.d.ts +2 -2
- package/popup/content/mixins/MediaInfo.d.ts +2 -2
- package/popup/content/support/ChartMediaInfoValue.d.ts +2 -2
- package/popup/content/support/ImageMediaInfoValue.d.ts +2 -2
- package/popup/support/AttachmentsOrderByInfo.d.ts +3 -3
- package/popup/support/FieldInfoFormat.d.ts +3 -3
- package/popup/support/RelatedRecordsInfoFieldOrder.d.ts +2 -2
- package/popup/support/UtilityNetworkAssociationType.d.ts +3 -3
- package/portal/Portal.d.ts +2 -2
- package/portal/PortalFolder.d.ts +2 -2
- package/portal/PortalGroup.d.ts +2 -2
- package/portal/PortalItem.d.ts +2 -2
- package/portal/PortalUser.d.ts +2 -2
- package/portal/timeUnitKebabDictionary.js +1 -1
- package/renderers/FlowRenderer.d.ts +2 -2
- package/renderers/PieChartRenderer.d.ts +2 -2
- package/renderers/PointCloudRenderer.d.ts +2 -2
- package/renderers/RasterColormapRenderer.d.ts +2 -2
- package/renderers/RasterShadedReliefRenderer.d.ts +2 -2
- package/renderers/RasterStretchRenderer.d.ts +2 -2
- package/renderers/Renderer.d.ts +2 -2
- package/renderers/VectorFieldRenderer.d.ts +2 -2
- package/renderers/support/AttributeColorInfo.d.ts +2 -2
- package/renderers/support/AuthoringInfo.d.ts +2 -2
- package/renderers/support/AuthoringInfoClassBreakInfo.d.ts +2 -2
- package/renderers/support/AuthoringInfoFieldInfo.d.ts +2 -2
- package/renderers/support/AuthoringInfoVisualVariable.d.ts +2 -2
- package/renderers/support/ClassBreakInfo.d.ts +2 -2
- package/renderers/support/ColormapInfo.d.ts +2 -2
- package/renderers/support/DotDensityLegendOptions.d.ts +2 -2
- package/renderers/support/HeatmapColorStop.d.ts +2 -2
- package/renderers/support/HeatmapLegendOptions.d.ts +3 -3
- package/renderers/support/OthersCategory.d.ts +3 -3
- package/renderers/support/RasterPresetRenderer.d.ts +3 -3
- package/renderers/support/RendererLegendOptions.d.ts +3 -3
- package/renderers/support/UniqueValue.d.ts +3 -3
- package/renderers/support/UniqueValueClass.d.ts +3 -3
- package/renderers/support/UniqueValueGroup.d.ts +3 -3
- package/renderers/support/UniqueValueInfo.d.ts +2 -2
- package/renderers/support/pointCloud/ColorClassBreakInfo.d.ts +2 -2
- package/renderers/support/pointCloud/ColorModulation.d.ts +2 -2
- package/renderers/support/pointCloud/ColorUniqueValueInfo.d.ts +2 -2
- package/renderers/visualVariables/VisualVariable.d.ts +2 -2
- package/renderers/visualVariables/support/ColorSizeStop.d.ts +2 -2
- package/renderers/visualVariables/support/ColorStop.d.ts +2 -2
- package/renderers/visualVariables/support/OpacityStop.d.ts +2 -2
- package/renderers/visualVariables/support/SizeStop.d.ts +2 -2
- package/renderers/visualVariables/support/VisualVariableLegendOptions.d.ts +3 -3
- package/rest/featureService/FeatureService.d.ts +2 -2
- package/rest/geoprocessor/GPOptions.d.ts +2 -2
- package/rest/geoprocessor/utils.js +1 -1
- package/rest/imageService.d.ts +36 -19
- package/rest/imageService.js +1 -1
- package/rest/knowledgeGraph/DataModel.d.ts +2 -2
- package/rest/knowledgeGraph/FieldIndex.d.ts +2 -2
- package/rest/knowledgeGraph/GraphObject.d.ts +2 -2
- package/rest/knowledgeGraph/GraphObjectType.d.ts +2 -2
- package/rest/knowledgeGraph/GraphProperty.d.ts +2 -2
- package/rest/knowledgeGraph/KnowledgeGraph.d.ts +2 -2
- package/rest/knowledgeGraph/Path.d.ts +2 -2
- package/rest/knowledgeGraph/ServiceDefinition.d.ts +2 -2
- package/rest/knowledgeGraph/SourceTypeValueBehavior.d.ts +2 -2
- package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsConfiguration.d.ts +2 -2
- package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsEntity.d.ts +2 -2
- package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsPathFilter.d.ts +2 -2
- package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsResultJSON.d.ts +0 -1
- package/rest/knowledgeGraph/toolService/findPaths/CIMKGTraversalDirection.d.ts +2 -2
- package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.d.ts +0 -1
- package/rest/lastMileDelivery/types.d.ts +0 -1
- package/rest/layerSources/DynamicDataLayer.d.ts +2 -2
- package/rest/layerSources/DynamicMapLayer.d.ts +2 -2
- package/rest/layerSources/JoinTableDataSource.d.ts +2 -2
- package/rest/layerSources/QueryTableDataSource.d.ts +2 -2
- package/rest/layerSources/RasterDataSource.d.ts +2 -2
- package/rest/layerSources/TableDataSource.d.ts +2 -2
- package/rest/networks/circuits/support/CircuitTraceResult.d.ts +2 -2
- package/rest/networks/circuits/support/ExportCircuitsParameters.d.ts +2 -2
- package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +2 -2
- package/rest/networks/support/AggregatedGeometry.d.ts +2 -2
- package/rest/networks/support/Association.d.ts +2 -2
- package/rest/networks/support/AssociationGeometriesResult.d.ts +2 -2
- package/rest/networks/support/FunctionResult.d.ts +2 -2
- package/rest/networks/support/NetworkElement.d.ts +2 -2
- package/rest/networks/support/QueryAssociationsParameters.d.ts +2 -2
- package/rest/networks/support/QueryAssociationsResult.d.ts +2 -2
- package/rest/networks/support/QueryNamedTraceConfigurationsParameters.d.ts +2 -2
- package/rest/networks/support/SynthesizeAssociationGeometriesParameters.d.ts +2 -2
- package/rest/networks/support/TraceLocation.d.ts +3 -3
- package/rest/networks/support/TraceParameters.d.ts +2 -2
- package/rest/networks/support/TraceResult.d.ts +2 -2
- package/rest/networks/support/ValidateNetworkTopologyParameters.d.ts +2 -2
- package/rest/networks/support/ValidateNetworkTopologyResult.d.ts +2 -2
- package/rest/query/support/AttachmentInfo.d.ts +2 -2
- package/rest/support/AddressCandidate.d.ts +2 -2
- package/rest/support/AddressToLocationsParameters.d.ts +2 -2
- package/rest/support/AddressesToLocationsParameters.d.ts +2 -2
- package/rest/support/ArealUnit.d.ts +2 -2
- package/rest/support/AreasAndLengthsParameters.d.ts +2 -2
- package/rest/support/AttachmentQuery.d.ts +2 -2
- package/rest/support/AttributeBinsFeatureSet.d.ts +2 -2
- package/rest/support/AttributeBinsGrouping.d.ts +3 -3
- package/rest/support/AttributeBinsQuery.d.ts +3 -3
- package/rest/support/BaseImageMeasureParameters.d.ts +2 -2
- package/rest/support/BaseImageMeasureResult.d.ts +2 -2
- package/rest/support/BaseImageMeasureResultValue.d.ts +2 -2
- package/rest/support/BinParametersBase.d.ts +3 -3
- package/rest/support/BufferParameters.d.ts +2 -2
- package/rest/support/CameraInfo.d.ts +2 -2
- package/rest/support/CameraInfoMixin.d.ts +0 -1
- package/rest/support/ClosestFacilityParameters.d.ts +3 -3
- package/rest/support/ClosestFacilitySolveResult.d.ts +2 -2
- package/rest/support/ColorRamp.d.ts +2 -2
- package/rest/support/DataFile.d.ts +2 -2
- package/rest/support/DataLayer.d.ts +3 -3
- package/rest/support/DateBinTimeInterval.d.ts +3 -3
- package/rest/support/DensifyParameters.d.ts +2 -2
- package/rest/support/DirectionLine.d.ts +3 -3
- package/rest/support/DirectionPoint.d.ts +3 -3
- package/rest/support/DirectionsEvent.d.ts +2 -2
- package/rest/support/DirectionsString.d.ts +2 -2
- package/rest/support/FeatureSet.d.ts +2 -2
- package/rest/support/FindImagesParameters.d.ts +3 -3
- package/rest/support/FindImagesResult.d.ts +2 -2
- package/rest/support/FindParameters.d.ts +2 -2
- package/rest/support/FindResult.d.ts +2 -2
- package/rest/support/GPMessage.d.ts +2 -2
- package/rest/support/GeneralizeParameters.d.ts +2 -2
- package/rest/support/IdentifyParameters.d.ts +2 -2
- package/rest/support/IdentifyResult.d.ts +2 -2
- package/rest/support/ImageAngleParameters.d.ts +2 -2
- package/rest/support/ImageAngleResult.d.ts +2 -2
- package/rest/support/ImageBoundaryParameters.d.ts +3 -3
- package/rest/support/ImageBoundaryResult.d.ts +2 -2
- package/rest/support/ImageGPSInfo.d.ts +2 -2
- package/rest/support/ImageGPSInfoParameters.d.ts +3 -3
- package/rest/support/ImageGPSInfoResult.d.ts +2 -2
- package/rest/support/ImageHistogramParameters.d.ts +2 -2
- package/rest/support/ImageIdentifyParameters.d.ts +2 -2
- package/rest/support/ImageIdentifyResult.d.ts +2 -2
- package/rest/support/ImageInspectionInfo.d.ts +2 -2
- package/rest/support/ImagePixelLocationParameters.d.ts +2 -2
- package/rest/support/ImagePixelLocationResult.d.ts +2 -2
- package/rest/support/ImageSample.d.ts +2 -2
- package/rest/support/ImageSampleParameters.d.ts +2 -2
- package/rest/support/ImageSampleResult.d.ts +2 -2
- package/rest/support/ImageToMapMultirayParameters.d.ts +3 -3
- package/rest/support/ImageToMapParameters.d.ts +3 -3
- package/rest/support/ImageUrlParameters.d.ts +3 -3
- package/rest/support/ImageUrlResult.d.ts +2 -2
- package/rest/support/ImageVolume.d.ts +2 -2
- package/rest/support/ImageVolumeParameters.d.ts +3 -3
- package/rest/support/ImageVolumeResult.d.ts +2 -2
- package/rest/support/JobInfo.d.ts +2 -2
- package/rest/support/LastMileDeliveryParameters.d.ts +3 -3
- package/rest/support/LegendLayer.d.ts +2 -2
- package/rest/support/LengthsParameters.d.ts +2 -2
- package/rest/support/LinearUnit.d.ts +2 -2
- package/rest/support/LocateSettingBase.d.ts +3 -3
- package/rest/support/LocateSettingSource.d.ts +3 -3
- package/rest/support/LocateSettings.d.ts +3 -3
- package/rest/support/LocateSettingsOverrides.d.ts +3 -3
- package/rest/support/LocationToAddressParameters.d.ts +2 -2
- package/rest/support/MapToImageParameters.d.ts +3 -3
- package/rest/support/MeasureAreaFromImageResult.d.ts +2 -2
- package/rest/support/MeasureFromImageParameters.d.ts +2 -2
- package/rest/support/MeasureLengthFromImageResult.d.ts +2 -2
- package/rest/support/NetworkUrl.d.ts +3 -3
- package/rest/support/NormalizationBinParametersMixin.d.ts +0 -1
- package/rest/support/OffsetParameters.d.ts +2 -2
- package/rest/support/ParameterValue.d.ts +4 -2
- package/rest/support/PointBarrier.d.ts +3 -3
- package/rest/support/PolygonBarrier.d.ts +3 -3
- package/rest/support/PolylineBarrier.d.ts +3 -3
- package/rest/support/ProjectParameters.d.ts +2 -2
- package/rest/support/QuantizationParameters.d.ts +2 -2
- package/rest/support/Query.d.ts +2 -2
- package/rest/support/RasterData.d.ts +2 -2
- package/rest/support/RelationParameters.d.ts +2 -2
- package/rest/support/RelationshipQuery.d.ts +2 -2
- package/rest/support/RouteInfo.d.ts +3 -3
- package/rest/support/RouteParameters.d.ts +3 -3
- package/rest/support/RouteResult.d.ts +2 -2
- package/rest/support/RouteSolveResult.d.ts +2 -2
- package/rest/support/ServiceAreaParameters.d.ts +3 -3
- package/rest/support/ServiceAreaSolveResult.d.ts +2 -2
- package/rest/support/StatisticDefinition.d.ts +2 -2
- package/rest/support/Stop.d.ts +3 -3
- package/rest/support/SuggestLocationsParameters.d.ts +2 -2
- package/rest/support/TimeUnit.d.ts +42 -0
- package/rest/support/TimeUnit.js +5 -0
- package/rest/support/TopFeaturesQuery.d.ts +2 -2
- package/rest/support/TopFilter.d.ts +2 -2
- package/rest/support/TravelMode.d.ts +3 -3
- package/rest/support/TrimExtendParameters.d.ts +2 -2
- package/rest/support/parameterValueUtils.js +1 -1
- package/rest/types.d.ts +1 -1
- package/rest/versionManagement/gdbVersion/support/AlterVersionParameters.d.ts +2 -2
- package/rest/versionManagement/gdbVersion/support/ReconcileParameters.d.ts +2 -2
- package/rest/versionManagement/support/CreateVersionParameters.d.ts +2 -2
- package/rest/versionManagement/support/GetVersionInfosParameters.d.ts +2 -2
- package/smartMapping/raster/support/adapters/ImageryLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/statistics/types.d.ts +0 -1
- package/support/MapFloorInfo.d.ts +2 -2
- package/support/revision.js +1 -1
- package/symbols/Font.d.ts +2 -2
- package/symbols/LineStyleMarker3D.d.ts +3 -3
- package/symbols/LineSymbolMarker.d.ts +2 -2
- package/symbols/Symbol.d.ts +2 -2
- package/symbols/Symbol3DLayer.d.ts +2 -2
- package/symbols/callouts/Callout3D.d.ts +2 -2
- package/symbols/callouts/LineCallout3DBorder.d.ts +2 -2
- package/symbols/edges/Edges3D.d.ts +2 -2
- package/symbols/patterns/LinePattern3D.d.ts +2 -2
- package/symbols/patterns/Pattern3D.d.ts +2 -2
- package/symbols/support/ElevationInfo.d.ts +10 -4
- package/symbols/support/FeatureExpressionInfo.d.ts +2 -2
- package/symbols/support/IconSymbol3DLayerResource.d.ts +2 -2
- package/symbols/support/ObjectSymbol3DLayerResource.d.ts +2 -2
- package/symbols/support/OccludedVisibility.d.ts +3 -3
- package/symbols/support/Symbol3DFillMaterial.js +1 -1
- package/symbols/support/Symbol3DHalo.d.ts +2 -2
- package/symbols/support/Symbol3DIconOutline.d.ts +2 -2
- package/symbols/support/Symbol3DMaterial.d.ts +6 -4
- package/symbols/support/Symbol3DMaterial.js +1 -1
- package/symbols/support/Symbol3DOutline.d.ts +2 -2
- package/symbols/support/Symbol3DTextBackground.d.ts +3 -3
- package/symbols/support/Symbol3DVerticalOffset.d.ts +2 -2
- package/symbols/support/types.d.ts +0 -1
- package/tables/AttributeTableTemplate.d.ts +2 -2
- package/tables/elements/AttributeTableAttachmentElement.d.ts +2 -2
- package/tables/elements/AttributeTableElement.d.ts +2 -2
- package/tables/elements/AttributeTableFieldElement.d.ts +2 -2
- package/tables/elements/AttributeTableGroupElement.d.ts +2 -2
- package/tables/elements/AttributeTableRelationshipElement.d.ts +2 -2
- package/tables/support/FieldOrder.d.ts +3 -3
- package/time/TimeExtent.d.ts +2 -2
- package/time/TimeExtent.js +1 -1
- package/time/TimeInterval.d.ts +3 -3
- package/time/types.d.ts +0 -1
- package/versionManagement/VersionManagementService.d.ts +2 -2
- package/versionManagement/VersioningState.d.ts +2 -2
- package/versionManagement/support/type.d.ts +0 -1
- package/views/2d/ViewState.d.ts +2 -2
- package/views/2d/engine/imagery/RasterVFContainer.js +1 -1
- package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
- package/views/2d/engine/imagery/RasterVFTileContainer.js +1 -1
- package/views/2d/engine/rasterBrushes.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/AspectTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/BandArithmeticTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ColormapToRGBTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CompositeBandTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ComputeChangeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ContrastBrightnessTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ConvolutionTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CurvatureTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ExtractBandTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/FocalStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/GrayscaleTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/HillshadeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/LocalTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/MaskTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/NDVITechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/RemapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ReprojectTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ShadedReliefTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/SlopeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/StretchTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +5 -0
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryVFStrategy.js +1 -1
- package/views/2d/layers/imagery/VectorFieldTileView2D.js +1 -1
- package/views/2d/layers/support/MediaLayerInteractionOptions.d.ts +0 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/Dimension/types.d.ts +0 -1
- package/views/3d/analysis/Slice/types.d.ts +0 -1
- package/views/3d/analysis/Viewshed/types.d.ts +0 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementRawResult.js +5 -0
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.d.ts +5 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.js +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/constraints/AltitudeConstraint.d.ts +2 -2
- package/views/3d/constraints/ClipDistanceConstraint.d.ts +2 -2
- package/views/3d/constraints/Constraints.d.ts +2 -2
- package/views/3d/constraints/TiltConstraint.d.ts +2 -2
- package/views/3d/environment/CloudyWeather.d.ts +2 -2
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/environment/FoggyWeather.d.ts +2 -2
- package/views/3d/environment/RainyWeather.d.ts +2 -2
- package/views/3d/environment/SnowyWeather.d.ts +2 -2
- package/views/3d/environment/SunLighting.d.ts +2 -2
- package/views/3d/environment/SunnyWeather.d.ts +2 -2
- package/views/3d/environment/VirtualLighting.d.ts +2 -2
- package/views/3d/layers/ElevationLayerView3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/emissiveUtils.js +5 -0
- package/views/3d/layers/support/layerUtils.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
- package/views/3d/support/mathUtils.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/support/supportedSpatialReference.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl/ManagedFBO.js +1 -1
- package/views/3d/webgl/ManagedFBOResource.d.ts +0 -1
- package/views/3d/webgl/RenderNode.d.ts +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl/types.d.ts +0 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/EllipsoidMode.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillColor.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +31 -23
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/3d/webgl.d.ts +16 -8
- package/views/3d/webgl.js +1 -1
- package/views/Theme.d.ts +2 -2
- package/views/VideoView.d.ts +4 -4
- package/views/VideoView.js +1 -1
- package/views/View.d.ts +3 -3
- package/views/View2D.d.ts +2 -2
- package/views/ViewAnimation.d.ts +2 -2
- package/views/Viewport2DMixin.d.ts +0 -2
- package/views/analysis/ElevationProfile/ElevationProfileResult.d.ts +2 -2
- package/views/animation/types.d.ts +0 -1
- package/views/draw/CursorUpdateEvent.d.ts +0 -1
- package/views/draw/DrawAction.d.ts +3 -3
- package/views/draw/DrawCompleteEvent.d.ts +0 -1
- package/views/draw/VertexAddEvent.d.ts +0 -1
- package/views/draw/VertexRemoveEvent.d.ts +0 -1
- package/views/draw/support/managers/{DrawTooltipManager.js → TooltipManager.js} +1 -1
- package/views/draw/types.d.ts +0 -1
- package/views/input/ViewEvents.js +1 -1
- package/views/input/recognizers/VerticalTwoFingerDrag.js +1 -1
- package/views/input/types.d.ts +94 -0
- package/views/interactive/Tooltip.d.ts +2 -2
- package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
- package/views/interactive/tooltip/types.d.ts +0 -1
- package/views/layers/ImageryTileLayerViewMixin.d.ts +0 -1
- package/views/layers/LayerView.d.ts +3 -3
- package/views/layers/SceneLayerView.js +1 -1
- package/views/layers/types.d.ts +0 -1
- package/views/navigation/types.d.ts +0 -1
- package/views/support/AttributionItem.d.ts +0 -1
- package/views/support/MeasurementWorker.js +1 -1
- package/views/support/MeasurementWorkerHandle.js +1 -1
- package/views/support/measurementUtils.js +1 -1
- package/views/support/screenUtils.js +1 -1
- package/views/ui/UI.d.ts +2 -2
- package/webdoc/GeotriggersInfo.d.ts +3 -3
- package/webdoc/IPSInfo.d.ts +3 -3
- package/webdoc/Widgets.d.ts +2 -2
- package/webdoc/applicationProperties/Search.d.ts +2 -2
- package/webdoc/applicationProperties/SearchLayer.d.ts +2 -2
- package/webdoc/applicationProperties/SearchLayerField.d.ts +2 -2
- package/webdoc/applicationProperties/SearchTable.d.ts +2 -2
- package/webdoc/applicationProperties/SearchTableField.d.ts +2 -2
- package/webdoc/applicationProperties/Viewing.d.ts +2 -2
- package/webdoc/geotriggersInfo/DeviceLocationFeed.d.ts +3 -3
- package/webdoc/geotriggersInfo/ExpressionInfo.d.ts +3 -3
- package/webdoc/geotriggersInfo/FeatureFenceParameters.d.ts +3 -3
- package/webdoc/geotriggersInfo/FeatureFilter.d.ts +3 -3
- package/webdoc/geotriggersInfo/FeatureLayerSource.d.ts +3 -3
- package/webdoc/geotriggersInfo/Geotrigger.d.ts +3 -3
- package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.d.ts +3 -3
- package/webdoc/geotriggersInfo/support/typeUtils.d.ts +0 -1
- package/webdoc/ips/AppleIPSProperties.d.ts +3 -3
- package/webdoc/ips/Configuration.d.ts +3 -3
- package/webdoc/ips/GNSSProperties.d.ts +3 -3
- package/webdoc/ips/PathSnappingProperties.d.ts +3 -3
- package/webdoc/ips/PositioningService.d.ts +3 -3
- package/webdoc/ips/SmoothingProperties.d.ts +3 -3
- package/webdoc/support/SlideThumbnail.d.ts +3 -3
- package/webdoc/support/types.d.ts +0 -1
- package/webdoc/widgets/FloorFilter.d.ts +2 -2
- package/webdoc/widgets/TimeSlider.d.ts +2 -2
- package/webmap/ApplicationProperties.d.ts +2 -2
- package/webmap/Bookmark.d.ts +2 -2
- package/webmap/InitialViewProperties.d.ts +2 -2
- package/webmap/background/ColorBackground.d.ts +2 -2
- package/webscene/ApplicationProperties.d.ts +2 -2
- package/webscene/Environment.d.ts +2 -2
- package/webscene/InitialViewProperties.d.ts +3 -3
- package/webscene/Presentation.d.ts +3 -3
- package/webscene/Slide.d.ts +4 -4
- package/webscene/SlideLegendInfo.d.ts +3 -3
- package/webscene/SunLighting.d.ts +2 -2
- package/webscene/VirtualLighting.d.ts +2 -2
- package/webscene/background/Background.d.ts +2 -2
- package/webscene/support/Description.d.ts +3 -3
- package/webscene/support/FeatureReference.d.ts +3 -3
- package/webscene/support/FeatureReferenceId.d.ts +3 -3
- package/webscene/support/LayerReference.d.ts +3 -3
- package/webscene/support/SlideElements.d.ts +3 -3
- package/webscene/support/SlideEnvironment.d.ts +3 -3
- package/webscene/support/SlideGround.d.ts +3 -3
- package/webscene/support/SlidePopupInfo.d.ts +3 -3
- package/webscene/support/SlideVisibleLayer.d.ts +3 -3
- package/webscene/support/Title.d.ts +3 -3
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/AreaMeasurement2D.d.ts +1 -0
- package/widgets/AreaMeasurement2D.js +1 -1
- package/widgets/Attachments/types.d.ts +0 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +2 -2
- package/widgets/BasemapLayerList/types.d.ts +0 -1
- package/widgets/BasemapLayerList.d.ts +1 -0
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +2 -2
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +2 -2
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +2 -2
- package/widgets/CatalogLayerList/types.d.ts +0 -1
- package/widgets/CatalogLayerList.d.ts +1 -0
- package/widgets/CatalogLayerList.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -2
- package/widgets/Daylight/DaylightViewModel.d.ts +2 -2
- package/widgets/Daylight/types.d.ts +0 -1
- package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +2 -2
- package/widgets/DirectionalPad/types.d.ts +0 -1
- package/widgets/Directions/DirectionsViewModel.d.ts +2 -2
- package/widgets/Directions.d.ts +1 -0
- package/widgets/Directions.js +1 -1
- package/widgets/DistanceMeasurement2D.d.ts +1 -0
- package/widgets/DistanceMeasurement2D.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +2 -2
- package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +2 -2
- package/widgets/Editor/Workflow.d.ts +2 -2
- package/widgets/Editor.d.ts +1 -0
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileLine.d.ts +2 -2
- package/widgets/FeatureForm/FeatureFormViewModel.d.ts +3 -3
- package/widgets/FeatureForm.d.ts +1 -0
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.d.ts +2 -2
- package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +3 -3
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.d.ts +0 -1
- package/widgets/FeatureTable/support/TableTemplate.d.ts +3 -3
- package/widgets/FeatureTable.d.ts +1 -0
- package/widgets/FeatureTable.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +2 -2
- package/widgets/Features/FeaturesViewModel.d.ts +2 -2
- package/widgets/FloorFilter.d.ts +1 -0
- package/widgets/FloorFilter.js +1 -1
- package/widgets/Histogram/types.d.ts +0 -1
- package/widgets/HistogramRangeSlider/types.d.ts +0 -1
- package/widgets/Home/HomeViewModel.d.ts +2 -2
- package/widgets/Home.d.ts +1 -2
- package/widgets/LayerList/LayerListViewModel.d.ts +2 -2
- package/widgets/LayerList.d.ts +1 -0
- package/widgets/LayerList.js +1 -1
- package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.d.ts +2 -2
- package/widgets/Measurement/types.d.ts +0 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +3 -3
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
- package/widgets/OrientedImageryViewer/components/OverlayLayersListViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/services/TransformationService.js +5 -0
- package/widgets/OrientedImageryViewer/support/dataCaptureUtils.js +5 -0
- package/widgets/OrientedImageryViewer/support/geometryUtils.js +5 -0
- package/widgets/OrientedImageryViewer/support/typeUtils.js +5 -0
- package/widgets/OrientedImageryViewer/types.d.ts +0 -1
- package/widgets/Print/CustomTemplate.d.ts +2 -2
- package/widgets/Print/PrintViewModel.d.ts +3 -3
- package/widgets/ScaleRangeSlider/types.d.ts +0 -1
- package/widgets/ScaleRangeSlider.d.ts +1 -0
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/Search/SearchSource.d.ts +2 -2
- package/widgets/Search/SearchViewModel.d.ts +3 -4
- package/widgets/ShadowCast/types.d.ts +0 -1
- package/widgets/Sketch/SketchViewModel.d.ts +2 -2
- package/widgets/Sketch.d.ts +1 -0
- package/widgets/Sketch.js +1 -1
- package/widgets/Swipe/types.d.ts +0 -1
- package/widgets/TableList/TableListViewModel.d.ts +2 -2
- package/widgets/TableList.d.ts +1 -0
- package/widgets/TableList.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.d.ts +2 -2
- package/widgets/TimeSlider.d.ts +1 -0
- package/widgets/TimeSlider.js +1 -1
- package/widgets/Track/types.d.ts +0 -1
- package/widgets/UtilityNetworkAssociations.d.ts +1 -0
- package/widgets/UtilityNetworkAssociations.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +2 -2
- package/widgets/UtilityNetworkTrace.d.ts +1 -0
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/UtilityNetworkValidateTopology.d.ts +1 -0
- package/widgets/UtilityNetworkValidateTopology.js +1 -1
- package/widgets/ValuePicker/types.d.ts +0 -1
- package/widgets/ValuePicker.d.ts +1 -0
- package/widgets/ValuePicker.js +1 -1
- package/widgets/Weather/types.d.ts +0 -1
- package/widgets/Widget.d.ts +3 -3
- package/widgets/support/GeolocationPositioning.d.ts +2 -2
- package/widgets/support/GridControls/GridControlsViewModel.d.ts +2 -2
- package/widgets/support/GridControls/types.d.ts +0 -1
- package/widgets/support/forms/types.d.ts +0 -1
- package/widgets/types.d.ts +1 -2
- package/assets/esri/core/workers/chunks/00e135dc1b4cb024973d.js +0 -1
- package/assets/esri/core/workers/chunks/03da31c7635d077e8d99.js +0 -1
- package/assets/esri/core/workers/chunks/185c97bc63ce546995ce.js +0 -1
- package/assets/esri/core/workers/chunks/1a13b472e0cf9f88e8de.js +0 -1
- package/assets/esri/core/workers/chunks/1a62c456e791c82050fe.js +0 -1
- package/assets/esri/core/workers/chunks/25dead73dfc5a4c19285.js +0 -1
- package/assets/esri/core/workers/chunks/2767b69085c9f7a1e1af.js +0 -1
- package/assets/esri/core/workers/chunks/3606fc5537c4d11b9554.js +0 -1
- package/assets/esri/core/workers/chunks/3ad7ec46adecf00ae1c2.js +0 -1
- package/assets/esri/core/workers/chunks/3b67aa46a60e35469bf8.js +0 -1
- package/assets/esri/core/workers/chunks/43e9eaedf65921b58eb2.js +0 -1
- package/assets/esri/core/workers/chunks/4b09d92c51c4619b548a.js +0 -1
- package/assets/esri/core/workers/chunks/4caec60ac0a5851730c6.js +0 -1
- package/assets/esri/core/workers/chunks/5119e3159617b8e1ea13.js +0 -1
- package/assets/esri/core/workers/chunks/52684c2abc9e8ce793cf.js +0 -1
- package/assets/esri/core/workers/chunks/532935f420ed5f13c011.js +0 -1
- package/assets/esri/core/workers/chunks/5348e4dc55428de9bba7.js +0 -1
- package/assets/esri/core/workers/chunks/53a1c6e008287d1f12f0.js +0 -1
- package/assets/esri/core/workers/chunks/59d3f3fbae775fd7686e.js +0 -1
- package/assets/esri/core/workers/chunks/5a706eecd8a988fae6b7.js +0 -1
- package/assets/esri/core/workers/chunks/5ba2bbbb42ef1920579d.js +0 -1
- package/assets/esri/core/workers/chunks/5cc731f161012b63c77a.js +0 -1
- package/assets/esri/core/workers/chunks/5fa8fe6353dbdda0b06a.js +0 -1
- package/assets/esri/core/workers/chunks/5fc6cada83bf8462d54c.js +0 -1
- package/assets/esri/core/workers/chunks/6107b58457a70c8de9da.js +0 -1
- package/assets/esri/core/workers/chunks/654eef3ad30f34c42e12.js +0 -1
- package/assets/esri/core/workers/chunks/7130b09300032d3a5925.js +0 -1
- package/assets/esri/core/workers/chunks/7a1ec6ac88d974cc5074.js +0 -1
- package/assets/esri/core/workers/chunks/7f76566d9b3801742387.js +0 -1
- package/assets/esri/core/workers/chunks/7f7c4ffbdf7b20dc7a54.js +0 -1
- package/assets/esri/core/workers/chunks/81e395a93c67749c6487.js +0 -1
- package/assets/esri/core/workers/chunks/8deae3a426eceae73186.js +0 -1
- package/assets/esri/core/workers/chunks/97ad3eb25ad003c16148.js +0 -1
- package/assets/esri/core/workers/chunks/9919b3c345785e910c38.js +0 -1
- package/assets/esri/core/workers/chunks/a4ee92867ad5cde25aed.js +0 -1
- package/assets/esri/core/workers/chunks/a56a5e00964d4cd59a66.js +0 -1
- package/assets/esri/core/workers/chunks/a774b4fc7df801503bea.js +0 -1
- package/assets/esri/core/workers/chunks/ab3e457c82fa9bd0203f.js +0 -1
- package/assets/esri/core/workers/chunks/ac0949ea3d2cf3eb7383.js +0 -1
- package/assets/esri/core/workers/chunks/af3d4eba6fe24db3ceba.js +0 -1
- package/assets/esri/core/workers/chunks/b1015e1f25b60c08d2cf.js +0 -1
- package/assets/esri/core/workers/chunks/b1085fa91724e2d3b24f.js +0 -1
- package/assets/esri/core/workers/chunks/b48b0f512a1cd7226bdc.js +0 -1
- package/assets/esri/core/workers/chunks/bbb409e54db77bfabdee.js +0 -1
- package/assets/esri/core/workers/chunks/c0265669fb616f052b65.js +0 -1
- package/assets/esri/core/workers/chunks/c18a2948ae3cb527d8bb.js +0 -1
- package/assets/esri/core/workers/chunks/d3c69c9cb3d9c3f5c67a.js +0 -1
- package/assets/esri/core/workers/chunks/d477def8bfd8482596d1.js +0 -1
- package/assets/esri/core/workers/chunks/d4f4c0201d8b641709c0.js +0 -1
- package/assets/esri/core/workers/chunks/dd30c1f5da0af72becd1.js +0 -1
- package/assets/esri/core/workers/chunks/dedd9d47ccc019ffc484.js +0 -1
- package/assets/esri/core/workers/chunks/dfef6e3d7bbf099de498.js +0 -1
- package/assets/esri/core/workers/chunks/ecf7d34b37ce6f0877af.js +0 -1
- package/assets/esri/core/workers/chunks/f3fdf9970b3c7acd071d.js +0 -1
- package/layers/support/ElevationTileData.d.ts +0 -32
- package/rest/geoprocessor/execute.d.ts +0 -6
- package/views/2d/engine/imagery/BrushVectorField.js +0 -5
- package/views/3d/analysis/AreaMeasurement/support/utils.js +0 -5
- package/views/3d/analysis/VolumeMeasurement/volumeMeasurementUtils.js +0 -5
- package/widgets/OrientedImageryViewer/dataCaptureUtils.js +0 -5
- /package/layers/buildingSublayers/{utils.d.ts → types.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8824],{18768(e,t,r){r.d(t,{b:()=>a});var i=r(31635),s=r(53966),n=r(91429),o=r(60694);const a=e=>{const t=e;let r=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,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}},20615(e,t,r){r.d(t,{I:()=>o});var i=r(2272),s=r(80893),n=r(61956);function o(e,t,r,o){return(0,s.gW)((0,i.Dl)(e),n.A.from(t),r,o)}},27647(e,t,r){r.d(t,{Q:()=>n});var i=r(92722);function s(e,t){return e?t?4:3:t?3:2}function n(e){if(null==e)return null;if(!e?.lengths.length)return null;const{lengths:t,coords:r,stride:s,hasZ:n,hasM:l}=e,u=new i.A([],[],n,!1),p=u.coords,c=[],m=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];let d=0;for(const e of t){const t=o(m,r,d,e,n,l);t&&c.push(t),d+=e*s}if(c.sort((e,t)=>{let r=e[2]-t[2];return 0===r&&n&&(r=e[4]-t[4]),r}),c.length){let e=6*c[0][2];p[0]=c[0][0]/e,p[1]=c[0][1]/e,n&&(e=6*c[0][4],p[2]=0!==e?c[0][3]/e:0),(p[0]<m[0]||p[0]>m[1]||p[1]<m[2]||p[1]>m[3]||n&&(p[2]<m[4]||p[2]>m[5]))&&(p.length=0)}if(!p.length){const i=e.lengths[0]?a(r,0,t[0],n,l):null;if(!i)return null;p[0]=i[0],p[1]=i[1],n&&(p[2]=i[2]??0)}return u}function o(e,t,r,i,n,o){const a=s(n,o);let l=r,u=r+a,p=0,c=0,m=0,d=0,h=0;for(let r=0,s=i-1;r<s;r++,l+=a,u+=a){const r=t[l],i=t[l+1],s=t[l+2],o=t[u],a=t[u+1],y=t[u+2];let g=r*a-o*i;d+=g,p+=(r+o)*g,c+=(i+a)*g,n&&(g=r*y-o*s,m+=(s+y)*g,h+=g),r<e[0]&&(e[0]=r),r>e[1]&&(e[1]=r),i<e[2]&&(e[2]=i),i>e[3]&&(e[3]=i),n&&(s<e[4]&&(e[4]=s),s>e[5]&&(e[5]=s))}if(d>0&&(d*=-1),h>0&&(h*=-1),!d)return null;const y=[p,c,.5*d];return n&&(y[3]=m,y[4]=.5*h),y}function a(e,t,r,i,n){const o=s(i,n);let a=t,m=t+o,d=0,h=0,y=0,g=0;for(let t=0,s=r-1;t<s;t++,a+=o,m+=o){const t=e[a],r=e[a+1],s=e[a+2],n=e[m],o=e[m+1],f=e[m+2],w=i?u(t,r,s,n,o,f):l(t,r,n,o);if(w)if(d+=w,i){const e=c(t,r,s,n,o,f);h+=w*e[0],y+=w*e[1],g+=w*e[2]}else{const e=p(t,r,n,o);h+=w*e[0],y+=w*e[1]}}return d>0?i?[h/d,y/d,g/d]:[h/d,y/d]:r>0?i?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function l(e,t,r,i){const s=r-e,n=i-t;return Math.sqrt(s*s+n*n)}function u(e,t,r,i,s,n){const o=i-e,a=s-t,l=n-r;return Math.sqrt(o*o+a*a+l*l)}function p(e,t,r,i){return[e+.5*(r-e),t+.5*(i-t)]}function c(e,t,r,i,s,n){return[e+.5*(i-e),t+.5*(s-t),r+.5*(n-r)]}},33446(e,t,r){r.d(t,{C:()=>o,m:()=>n});var i=r(49186),s=r(74887);async function n(e,t,r){let n;try{n=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(r),n}async function o(e,t,r,n,o){let a;try{a=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${n}`,{error:e,level:t,row:r,col:n})}return(0,s.Te)(o),a}},43334(e,t,r){r.d(t,{N3:()=>a,Om:()=>o});var i=r(69397),s=r(27647),n=r(92722);class o{constructor(e=null,t={},r,i,s=0){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=i,this.displayId=s}static fromJSON(e){const t=e.geometry?n.A.fromJSON(e.geometry):null,r=e.centroid?n.A.fromJSON(e.centroid):null,i=e.objectId;return new o(t,e.attributes,r,i)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t}ensureCentroid(e){return this.centroid??=(0,s.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,i.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function a(e){return!!e.geometry?.coords?.length}},56551(e,t,r){r.d(t,{H:()=>c});var i=r(31635),s=r(91429),n=r(69540),o=r(25482),a=r(56507),l=r(94359),u=r(93223);let p=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],p.prototype,"method",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"value",void 0),(0,i.Cg)([(0,s.MZ)({type:[a.jz],json:{write:{isRequired:!0}}})],p.prototype,"bandIds",void 0),(0,i.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],p.prototype,"renderer",void 0),p=(0,i.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],p);const c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],r.prototype,"activePresetRendererName",void 0),(0,i.Cg)([(0,s.MZ)({type:[p],json:{name:"layerDefinition.presetRenderers",write:!0}})],r.prototype,"presetRenderers",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],r),r}},58501(e,t,r){r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(s)for(const e of r.features)s(e.geometry)}},58512(e,t,r){r.d(t,{A:()=>i});class i{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new i;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},62815(e,t,r){r.d(t,{N:()=>o});var i=r(86211),s=r(73941),n=r(21325);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,n.aI)(t,r)||(0,s.xP)(t)||(0,s.xP)(r))return;const o=(0,i.G9)(t)/(0,i.G9)(r);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}},69397(e,t,r){r.d(t,{$B:()=>s,Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>h,ez:()=>m,lM:()=>o,qK:()=>c});var i=r(34275);function s(e){return 32+e.length}const n=16;function o(e){if(!e)return 0;let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=l(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return p(e,8);let r=m;for(let i=0;i<t;i++)r+=l(e[i]);return r}(e);let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=l(e[r]));return t}function l(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return s(e);case"number":return n;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+d:Array.isArray(t)?p(t,n):0:0),0)}function p(e,t){return m+e.length*t}const c=32,m=16,d=145,h=64},74379(e,t,r){r.d(t,{V:()=>i,t:()=>s});const i=Symbol("isImageryGraphicOrigin");function s(e){return!!e&&i in e}},74910(e,t,r){r.d(t,{L:()=>a});var i=r(5443),s=r(2272),n=r(80893),o=r(61956);async function a(e,t,r){const a=(0,s.Dl)(e),l=await(0,n.Jf)(a,o.A.from(t),{...r}),u=l.extent;return!u||isNaN(u.xmin)||isNaN(u.ymin)||isNaN(u.xmax)||isNaN(u.ymax)?{count:l.count,extent:null}:{count:l.count,extent:i.A.fromJSON(u)}}},78286(e,t,r){r.d(t,{V:()=>o});var i=r(2272),s=r(80893),n=r(61956);async function o(e,t,r,o){const a=(0,i.Dl)(e),l=await(0,s.Pk)(a,n.A.from(t),r,o);return l.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(l.uniqueIds)??[]}},82371(e,t,r){r.d(t,{E9:()=>h,Tw:()=>m,X6:()=>d});var i=r(11254),s=r(5443),n=r(86738),o=r(16930),a=r(87186),l=r(20223),u=r(2272),p=r(22671);async function c(e,t,r){const c=(0,u.Dl)(e),{rasterFunction:m,sourceJSON:d}=t||{},h=m?JSON.stringify(m.rasterFunctionDefinition||m):null,y=(0,u.lF)({...c.query,renderingRule:h,f:"json"}),g=(0,u.jV)(y,r);e=c.path;const f=d||await(0,i.A)(e,g).then(e=>e.data),w=f.hasRasterAttributeTable?(0,i.A)(`${e}/rasterAttributeTable`,g):null,v=f.hasColormap?(0,i.A)(`${e}/colormap`,g):null,R=f.hasHistograms?(0,i.A)(`${e}/histograms`,g):null,C=f.currentVersion>=10.3?(0,i.A)(`${e}/keyProperties`,g):null,b=f.hasMultidimensions?(0,i.A)(`${e}/multidimensionalInfo`,g):null,S=await Promise.allSettled([w,v,R,C,b]);let I=null;if(f.minValues&&f.minValues.length===f.bandCount){I=[];for(let e=0;e<f.minValues.length;e++)I.push({min:f.minValues[e],max:f.maxValues[e],avg:f.meanValues[e],stddev:f.stdvValues[e]})}const M=s.A.fromJSON(f.extent),x=Math.ceil(M.width/f.pixelSizeX-.1),A=Math.ceil(M.height/f.pixelSizeY-.1),F=o.A.fromJSON(f.spatialReference||f.extent.spatialReference),D="fulfilled"===S[0].status?S[0].value?.data:null,N=D?.features?.length?p.A.fromJSON(D):null,T="fulfilled"===S[1].status?S[1].value?.data.colormap:null,P=T?.length?T:null,j="fulfilled"===S[2].status?S[2].value?.data.histograms:null,O=j?.[0]?.counts?.length?j:null,Z="fulfilled"===S[3].status?S[3].value?.data??{}:{},_="fulfilled"===S[4].status?S[4].value?.data.multidimensionalInfo:null,V=_?.variables?.length?_:null;V&&V.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});const{defaultVariable:q,serviceDataType:E}=f;q&&q!==Z.DefaultVariable&&(Z.DefaultVariable=q),E?.includes("esriImageServiceDataTypeVector")&&!E.includes(Z.DataType)&&(Z.DataType=E.replace("esriImageServiceDataType",""));let J=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==J)&&(J=f.noDataValues);const G=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:F}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(x,A))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new a.A({width:x,height:A,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:F,pixelSize:new n.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:F}),pixelType:f.pixelType.toLowerCase(),statistics:I,attributeTable:N,colormap:P,histograms:O,keyProperties:Z,noDataValue:J,multidimensionalInfo:V,storageInfo:G})}function m(e,t,r){return c(e,{sourceJSON:t},r)}function d(e,t,r){return c(e,{rasterFunction:t},r)}function h(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},87772(e,t,r){r.r(t),r.d(t,{default:()=>hr});var i,s=r(31635),n=r(37838),o=r(69540),a=r(49186),l=r(53966),u=r(25728),p=r(74887),c=r(91429),m=r(89808),d=r(99959),h=r(74379);class y extends d.A{get[(i=h.V,m.Q)](){return this.layer}constructor(e){super(),this[i]=!0,this.type="imagery",this.layer=e}get id(){return this.layer.id}}var g=r(4146),f=r(52106),w=r(11254),v=r(4718),R=r(36708),C=r(84952),b=r(56507),S=r(5443),I=r(39829),M=r(16930),x=r(21325),A=r(4366),F=r(20758),D=r(47520),N=r(34251),T=r(10873),P=r(45617),j=r(25482),O=r(94778);const Z={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var _=r(22796),V=r(67369),q=r(70274),E=r(48940);const J=new Set(["u1","u2","u4","u8","s8","u16","s16"]),G={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},z=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function L(e){return z.has(e.type)}function $(e,t){if(!e||!t)return(0,v.o8)(e||t);const r=(0,v.o8)(e);if(r.functionDefinition&&t.rasterFunctionDefinition){const e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),U(r.functionDefinition.arguments,t),r.rasterFunctionDefinition=r.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&(B(r.functionArguments).Raster=t);return r}function U(e,t){for(const r in e)"raster"===r.toLowerCase()&&("RasterFunctionVariable"===e[r].type?(e[r]=t.rasterFunctionDefinition,e[r].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[r].type&&U(e[r].arguments,t))}function K(e){const t=(0,v.o8)(Z[e.functionName+"Function"]),r=e.functionArguments;for(const e in r)"raster"===e.toLowerCase()?(t.arguments[e]=K(r[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=Y(r[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=r[e];return t}function B(e){const t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?B(t.functionArguments):e}const Q={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function k(e,t){const r=J.has(t)?(0,O.hP)(t):null;return r&&e.push([Math.floor(r[0]-1),0,0,0],[Math.ceil(r[1]+1),0,0,0]),e}function H(e){if(null==e)return;const{fields:t}=e,r=t?.find(e=>e?.name&&"value"===e.name.toLowerCase());return r?.name}function W(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}function Y(e){const t=[],r=[];return e.forEach(e=>{t.push(e[0]),r.push((0,V.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:r}}var X=r(85675),ee=r(13868),te=r(43937);let re=class extends j.o{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,r){this.layer.version<10.3||(t[r]=e)}get bandIds(){return this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,r){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[r]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}get format(){return this.requestRawData||"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){const{layer:e}=this;return e.pixelType!==e.serviceRasterInfo.pixelType?e.pixelType:void 0}writeLercVersion(e,t,r){"lerc"===this.format&&this.layer.version>=10.5&&(t[r]=e)}get version(){const e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const r=e.definitionExpression;return t?r&&r!==t.where&&(t=t.clone(),t.where=r):r&&(t=new X.A({where:r})),t}get rasterFunction(){const e=this.layer;let{rasterFunction:t}=e;const r=e.pixelFilter,i=!e.format||e.format.includes("jpg")||e.format.includes("png");this.requestRawData||(t=this._addResampleRasterFunction(t));const s=e.multidimensionalSubset?.areaOfInterest;return s&&(t=function(e,t){return $(new _.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,s)),this.requestRawData||!i||r||"vector-field"===e.renderer?.type||(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){const t=this.layer,{rasterInfo:r,renderer:i}=t;return e=e||t.rasterFunction,i&&L(i)?$(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const r=t.convertToRFT,i=new _.A;i.functionName="Stretch";const s=Q[q.u.toJSON(e.stretchType)],n="u8",o=e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),a={StretchType:s,Statistics:o,DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(a.Min=e.outputMin),null!=e.outputMax&&(a.Max=e.outputMax),s===Q.standardDeviation?(a.NumberOfStandardDeviations=e.numberOfStandardDeviations,i.outputPixelType=n):s===Q.percentClip?(a.MinPercent=e.minPercent,a.MaxPercent=e.maxPercent,i.outputPixelType=n):s===Q.minMax?i.outputPixelType=n:s===Q.sigmoid&&(a.SigmoidStrengthLevel=e.sigmoidStrengthLevel),i.functionArguments=a,i.variableName="Raster",e.colorRamp){const s=e.colorRamp,n=new _.A;if(r)n.functionArguments={ColorRamp:(0,V.hf)(s)};else{const r=(0,V.hs)(s,!0);if(r)n.functionArguments={colorRampName:r};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){const t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,V.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=i,r?new _.A({rasterFunctionDefinition:K(n)}):n}return r?new _.A({rasterFunctionDefinition:K(i)}):i}(e,t);case"class-breaks":return function(e,t){const r=[],i=[],s=[],n=[],o=1e-4,{pixelType:a,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=H(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach((t,r)=>{const i=t.symbol?.color;let s;i?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach(o=>{null!=t.minValue&&null!=t.maxValue&&(s=o.attributes[e.field],(s>=t.minValue&&s<t.maxValue||r===e.classBreakInfos.length-1&&s>=t.minValue)&&n.push([o.attributes[p],i.r,i.g,i.b]))})});const r=a?k(n,a):n,i=new _.A;return i.functionName="Colormap",i.functionArguments={},i.functionArguments.Colormap=r,i.variableName="Raster",t.convertToRFT?new _.A({rasterFunctionDefinition:K(i)}):i}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;const a=e.symbol&&e.symbol.color;a?.a?(0===t?r.push(e.minValue,e.maxValue+o):r.push(e.minValue+o,e.maxValue+o),i.push(t),n.push([t,a.r,a.g,a.b])):s.push(e.minValue,e.maxValue)});const c=a?k(n,a):n,m=new _.A;m.functionName="Remap",m.functionArguments={InputRanges:r,OutputValues:i,NoDataRanges:s},m.variableName="Raster";const d=new _.A;return d.functionName="Colormap",d.functionArguments={Colormap:c,Raster:m},t.convertToRFT?new _.A({rasterFunctionDefinition:K(d)}):d}(e,t);case"unique-value":return function(e,t){const r=[],{pixelType:i,rasterAttributeTable:s}=t,n=null==s?null:s.features,o=H(s),a=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(o){const t=new Map;l.forEach(e=>{const r=e.value,i=W(e);null!=r&&i?.a&&t.set(String(r),i.toRgb())});const i=e.field;i&&n.forEach(({attributes:e})=>{const s=String(e[i]),n=e[o],l=t.get(s);l?r.push([n,...l]):a&&r.push([n,...a])})}}else for(let e=0;e<l.length;e++){const t=l[e],i=W(t),s=+t.value;if(i?.a){if(isNaN(s))return null;r.push([s,i.r,i.g,i.b])}}const u=i?k(r,i):r,p=new _.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new _.A({rasterFunctionDefinition:K(p)}):p}(e,t);case"raster-colormap":return function(e,t){const r=e.extractColormap();if(!r||0===r.length)return null;const{pixelType:i}=t,s=i?k(r,i):r,n=new _.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new _.A({rasterFunctionDefinition:K(n)}):n}(e,t);case"vector-field":return function(e,t){const r=new _.A;r.functionName="VectorFieldRenderer";const{dataType:i,bandNames:s}=t,n="vector-uv"===i;let o,a;if(2===s?.length){const e=s.map(e=>e.toLowerCase());o=e.indexOf("magnitude"),a=e.indexOf("direction")}-1!==o&&null!==o||(o=0,a=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new E.A,c={magnitudeBandID:o,directionBandID:a,isUVComponents:n,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:G[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};r.functionArguments=c;const m=K(r);return t.convertToRFT?_.A.fromJSON({rasterFunctionDefinition:m}):r}(e,t);case"raster-shaded-relief":return function(e,t){const r=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new _.A;const i=new _.A;i.functionName="Hillshade";const s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,o={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(o.Azimuth=e.azimuth,o.Altitude=e.altitude),3===n&&(o.PSPower=e.pixelSizePower,o.PSZFactor=e.pixelSizeFactor),i.functionArguments=o,i.variableName="Raster",e.colorRamp&&(i.functionName="ShadedRelief",r?o.ColorRamp=(0,V.hf)(e.colorRamp):o.Colormap=(0,V.R8)(e.colorRamp)),r?new _.A({rasterFunctionDefinition:K(i)}):i}(e,t);case"flow":throw new Error("Unsupported rendering rule.")}}(i,{rasterAttributeTable:r.attributeTable,pixelType:r.pixelType,dataType:r.dataType,bandNames:r.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:r.bandCount}),e):e}_addResampleRasterFunction(e){if("vector-field"!==this.layer.renderer?.type||"Resample"===e?.functionName)return e;const t="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10,r=this.layer.serviceRasterInfo.pixelSize;let i=new _.A({functionName:"Resample",functionArguments:{ResamplingType:t,InputCellSize:r}});return i=e?.rasterFunctionDefinition?new _.A({rasterFunctionDefinition:K(i)}):i,$(i,e)}};(0,s.Cg)([(0,c.MZ)()],re.prototype,"layer",void 0),(0,s.Cg)([(0,c.MZ)()],re.prototype,"requestRawData",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"adjustAspectRatio",null),(0,s.Cg)([(0,te.K)("adjustAspectRatio")],re.prototype,"writeAdjustAspectRatio",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"bandIds",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"compression",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"compressionQuality",null),(0,s.Cg)([(0,te.K)("compressionQuality")],re.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"compressionTolerance",null),(0,s.Cg)([(0,te.K)("compressionTolerance")],re.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"format",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:{reader:ee.SZ.read},write:{writer:ee.SZ.write}}})],re.prototype,"interpolation",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"noData",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:{reader:ee.hm.read},write:{writer:ee.hm.write}}})],re.prototype,"noDataInterpretation",null),(0,s.Cg)([(0,c.MZ)({type:ee.e8.apiValues,json:{read:ee.e8.read,write:ee.e8.write}})],re.prototype,"pixelType",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"lercVersion",void 0),(0,s.Cg)([(0,te.K)("lercVersion")],re.prototype,"writeLercVersion",null),(0,s.Cg)([(0,c.MZ)({type:Number})],re.prototype,"version",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"mosaicRule",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0,name:"renderingRule"}})],re.prototype,"rasterFunction",null),re=(0,s.Cg)([(0,c.$K)("esri.layers.support.ExportImageServiceParameters")],re);var ie=r(20437),se=r(95466),ne=r(33446),oe=r(43577),ae=r(14140),le=r(74797),ue=r(87186),pe=r(12711),ce=r(85676),me=r(94359),de=r(65864),he=r(17136),ye=r(2272),ge=r(86738);let fe=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0}})],fe.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],fe.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],fe.prototype,"objectIds",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],fe.prototype,"where",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],fe.prototype,"maxCount",void 0),fe=(0,s.Cg)([(0,c.$K)("esri.rest.support.FindImagesParameters")],fe);const we=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"make",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"model",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"focalLength",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"rows",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"cols",void 0),r=(0,s.Cg)([(0,c.$K)("esri.rest.support.CameraInfoMixin")],r),r};let ve=class extends(we(j.o)){constructor(){super(...arguments),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ve.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"uri",write:!0}})],ve.prototype,"referenceUri",void 0),(0,s.Cg)([(0,c.MZ)({type:Date,json:{write:!0}})],ve.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,te.K)("acquisitionDate")],ve.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ve.prototype,"cameraID",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],ve.prototype,"center",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],ve.prototype,"perspectiveCenter",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ve.prototype,"orientation",void 0),ve=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageInspectionInfo")],ve);const Re=ve;let Ce=class extends j.o{constructor(e){super(e),this.images=null}};var be;(0,s.Cg)([(0,c.MZ)({type:[Re],json:{write:!0}})],Ce.prototype,"images",void 0),Ce=(0,s.Cg)([(0,c.$K)("esri.rest.support.FindImagesResult")],Ce);let Se=be=class extends j.o{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new be((0,v.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s.Cg)([(0,c.MZ)({type:[String],json:{name:"angleName",write:!0}})],Se.prototype,"angleNames",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],Se.prototype,"point",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{write:!0}})],Se.prototype,"spatialReference",void 0),(0,s.Cg)([(0,c.MZ)({type:b.jz,json:{write:!0}})],Se.prototype,"rasterId",void 0),Se=be=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAngleParameters")],Se);let Ie=class extends j.o{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"north",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"up",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{write:!0}})],Ie.prototype,"spatialReference",void 0),Ie=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAngleResult")],Ie);var Me=r(86211),xe=r(60408),Ae=r(50498),Fe=r(66552);const De=new Fe.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let Ne=class extends j.o{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};var Te;(0,s.Cg)([(0,c.MZ)()],Ne.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{read:De.read,write:De.write}})],Ne.prototype,"measureOperation",void 0),(0,s.Cg)([(0,c.MZ)({type:X.A,json:{write:!0}})],Ne.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],Ne.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Ne.prototype,"raster",void 0),Ne=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureParameters")],Ne);let Pe=Te=class extends Ne{constructor(e){super(e),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new Te((0,v.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"fromGeometry",read:!0,write:!0}})],Pe.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],Pe.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{write:De.write}})],Pe.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],Pe.prototype,"is3D",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],Pe.prototype,"linearUnit",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.dk.read,write:Me.dk.write}})],Pe.prototype,"areaUnit",void 0),Pe=Te=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAreaParameters")],Pe);let je=class extends j.o{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],je.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],je.prototype,"sensorName",void 0),je=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureResult")],je);var Oe=r(64108);let Ze=class extends j.o{constructor(){super(...arguments),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,s.Cg)([(0,c.MZ)({type:String})],Ze.prototype,"unit",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0}})],Ze.prototype,"value",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],Ze.prototype,"displayValue",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0}})],Ze.prototype,"uncertainty",void 0),Ze=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureResultValue")],Ze);const _e=Ze;let Ve=class extends _e{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({json:{read:Me.dk.read,write:Me.dk.write}})],Ve.prototype,"unit",void 0),Ve=(0,s.Cg)([(0,Oe.$)("esri.rest.support.ImageMeasureResultAreaValue")],Ve);const qe=Ve;let Ee=class extends _e{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({json:{read:Me.Sk.read,write:Me.Sk.write}})],Ee.prototype,"unit",void 0),Ee=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageMeasureResultLengthValue")],Ee);const Je=Ee;let Ge=class extends je{constructor(e){super(e),this.area=null,this.perimeter=null}};(0,s.Cg)([(0,c.MZ)({type:qe,json:{read:!0,write:!0}})],Ge.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({type:Je,json:{read:!0,write:!0}})],Ge.prototype,"perimeter",void 0),Ge=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAreaResult")],Ge);let ze=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.outSpatialReference=null}};(0,s.Cg)([(0,c.MZ)({type:M.A,json:{name:"outSR",write:!0}})],ze.prototype,"outSpatialReference",void 0),ze=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageBoundaryParameters")],ze);var Le=r(36005);let $e=class extends j.o{constructor(e){super(e),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?I.A.fromJSON(e):S.A.fromJSON(e)}};var Ue;(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],$e.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"shape",write:!0}})],$e.prototype,"geometry",void 0),(0,s.Cg)([(0,Le.w)("geometry")],$e.prototype,"readGeometry",null),$e=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageBoundaryResult")],$e);let Ke=Ue=class extends Ne{constructor(e){super(e),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new Ue((0,v.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],Ke.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,te.K)("fromGeometry")],Ke.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],Ke.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{write:De.write}})],Ke.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],Ke.prototype,"is3D",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],Ke.prototype,"linearUnit",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.b$.read,write:Me.b$.write}})],Ke.prototype,"angularUnit",void 0),Ke=Ue=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageDistanceParameters")],Ke);let Be=class extends _e{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({json:{read:Me.b$.read,write:Me.b$.write}})],Be.prototype,"unit",void 0),Be=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageMeasureResultAngleValue")],Be);const Qe=Be;let ke=class extends je{constructor(e){super(e),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,s.Cg)([(0,c.MZ)({type:Je,json:{read:!0,write:!0}})],ke.prototype,"distance",void 0),(0,s.Cg)([(0,c.MZ)({type:Qe,json:{read:!0,write:!0}})],ke.prototype,"azimuthAngle",void 0),(0,s.Cg)([(0,c.MZ)({type:Qe,json:{read:!0,write:!0}})],ke.prototype,"elevationAngle",void 0),ke=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageDistanceResult")],ke);var He=r(58174),We=r(79677),Ye=r(93223);let Xe=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=JSON.stringify(e.toJSON()))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{read:de.rS,write:!0}})],Xe.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],Xe.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Xe.prototype,"objectIds",void 0),(0,s.Cg)([(0,Ye.e)(He.x,{ignoreUnknown:!1,name:"spatialRel"})],Xe.prototype,"spatialRelationship",void 0),(0,s.Cg)([(0,c.MZ)({type:We.A,json:{name:"time",write:!0}})],Xe.prototype,"timeExtent",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Xe.prototype,"where",void 0),Xe=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfoParameters")],Xe);let et=class extends(we(j.o)){constructor(){super(...arguments),this.id=null}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],et.prototype,"id",void 0),et=(0,s.Cg)([(0,c.$K)("esri.rest.support.CameraInfo")],et);const tt=et;let rt=class extends j.o{constructor(){super(...arguments),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:Date,json:{write:!0}})],rt.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,te.K)("acquisitionDate")],rt.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"cameraID",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],rt.prototype,"center",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"gps",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"orientation",void 0),rt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfo")],rt);const it=rt;let st=class extends j.o{constructor(e){super(e),this.images=null,this.cameras=null}};var nt;(0,s.Cg)([(0,c.MZ)({type:[it],json:{write:!0}})],st.prototype,"images",void 0),(0,s.Cg)([(0,c.MZ)({type:[tt],json:{write:!0}})],st.prototype,"cameras",void 0),st=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfoResult")],st);let ot=nt=class extends Ne{constructor(e){super(e),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new nt((0,v.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0}})],ot.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,te.K)("fromGeometry")],ot.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],ot.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{write:De.write}})],ot.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],ot.prototype,"operationType",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],ot.prototype,"linearUnit",void 0),ot=nt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageHeightParameters")],ot);let at=class extends je{constructor(e){super(e),this.height=null}};(0,s.Cg)([(0,c.MZ)({type:Je,json:{read:!0,write:!0}})],at.prototype,"height",void 0),at=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageHeightResult")],at);var lt,ut=r(22048);let pt=lt=class extends j.o{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=X.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=_.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[r]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,r){null!=e&&(t[r]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,r){null!=e&&(t[r]=JSON.stringify(e))}writeTimeExtent(e,t,r){if(null!=e){const i=null!=e.start?e.start.getTime():null,s=null!=e.end?e.end.getTime():null;t[r]=null!=i?null!=s?`${i},${s}`:`${i}`:null}}clone(){return new lt((0,v.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{write:!0}})],pt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],pt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:X.A,json:{write:!0}})],pt.prototype,"mosaicRule",null),(0,s.Cg)([(0,te.K)("mosaicRule")],pt.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,c.MZ)({type:_.A,json:{write:!0,name:"renderingRule"}})],pt.prototype,"rasterFunction",null),(0,s.Cg)([(0,te.K)("rasterFunction")],pt.prototype,"writeRasterFunction",null),(0,s.Cg)([(0,c.MZ)({type:[_.A],json:{write:!0,name:"renderingRules"}})],pt.prototype,"rasterFunctions",void 0),(0,s.Cg)([(0,te.K)("rasterFunctions")],pt.prototype,"writeRasterFunctions",null),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],pt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,te.K)("pixelSize")],pt.prototype,"writePixelSize",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"returnCatalogItems",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"returnPixelValues",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],pt.prototype,"maxItemCount",void 0),(0,s.Cg)([(0,c.MZ)({type:We.A,json:{write:{target:"time"}}})],pt.prototype,"timeExtent",void 0),(0,s.Cg)([(0,te.K)("timeExtent")],pt.prototype,"writeTimeExtent",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],pt.prototype,"raster",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],pt.prototype,"viewId",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"processAsMultidimensional",void 0),pt=lt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageIdentifyParameters")],pt);var ct=r(22671);let mt=class extends j.o{constructor(e){super(e),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};var dt;(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"catalogItemVisibilities",void 0),(0,s.Cg)([(0,c.MZ)({type:ct.A,json:{write:!0}})],mt.prototype,"catalogItems",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],mt.prototype,"location",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"objectId",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"processedValues",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"properties",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"value",void 0),mt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageIdentifyResult")],mt);let ht=dt=class extends j.o{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,r){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new dt({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,s.Cg)([(0,c.MZ)({type:[ge.A],json:{write:!0}})],ht.prototype,"geometries",void 0),(0,s.Cg)([(0,te.K)("geometries")],ht.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:b.jz,json:{write:!0}})],ht.prototype,"rasterId",void 0),ht=dt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePixelLocationParameters")],ht);let yt=class extends j.o{constructor(e){super(e),this.geometries=null}};var gt;(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],yt.prototype,"geometries",void 0),yt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePixelLocationResult")],yt);let ft=gt=class extends Ne{constructor(e){super(e),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=e.toJSON())}get measureOperation(){const{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new gt((0,v.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"fromGeometry",read:de.rS}})],ft.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],ft.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{read:De.read,write:De.write}})],ft.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],ft.prototype,"is3D",void 0),ft=gt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePointParameters")],ft);let wt=class extends je{constructor(e){super(e),this.point=null}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{name:"point.value",read:!0,write:!0}})],wt.prototype,"point",void 0),wt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePointResult")],wt);var vt=r(34606),Rt=r(51508);let Ct=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,r){t.geometries=e?.length?{geometryType:(0,xe.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,s.Cg)([(0,c.MZ)({types:[Ae.yR]})],Ct.prototype,"geometries",void 0),(0,s.Cg)([(0,te.K)("geometries")],Ct.prototype,"writeGeometries",null),(0,s.Cg)([(0,c.MZ)({type:[b.jz],json:{write:!0}})],Ct.prototype,"rasterIds",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{name:"outSR",write:!0}})],Ct.prototype,"outSpatialReference",void 0),Ct=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageToMapMultirayParameters")],Ct);let bt=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]={...e.toJSON(),spatialReference:void 0})}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{read:de.rS,write:!0}})],bt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],bt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],bt.prototype,"rasterId",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{name:"outSR",write:!0}})],bt.prototype,"outSpatialReference",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.DOff",write:!0}})],bt.prototype,"depthOffset",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.Adjust",write:!0}})],bt.prototype,"adjust",void 0),bt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageToMapParameters")],bt);let St=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{name:"uri",write:!0}})],St.prototype,"referenceUri",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],St.prototype,"rasterId",void 0),St=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageUrlParameters")],St);let It=class extends j.o{constructor(e){super(e),this.url=null}};(0,s.Cg)([(0,c.MZ)({json:{name:"imageURL",write:!0}})],It.prototype,"url",void 0),It=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageUrlResult")],It);const Mt=new Fe.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let xt=class extends((0,o.OU)(j.o)){constructor(){super(...arguments),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,r){e?.length&&(t.geometryType=(0,xe.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,s.Cg)([(0,c.MZ)({types:[Ae.yR]})],xt.prototype,"geometries",void 0),(0,s.Cg)([(0,te.K)("geometries")],xt.prototype,"writeGeometries",null),(0,s.Cg)([(0,c.MZ)({type:X.A,json:{write:!0}})],xt.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],xt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],xt.prototype,"constantZ",void 0),(0,s.Cg)([(0,c.MZ)({type:Mt.apiValues,json:{read:Mt.read,write:Mt.write}})],xt.prototype,"baseType",void 0),xt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolumeParameters")],xt);let At=class extends j.o{constructor(){super(...arguments),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"cut",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"fill",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"maxz",write:!0}})],At.prototype,"maxZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"minz",write:!0}})],At.prototype,"minZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"meanz",write:!0}})],At.prototype,"meanZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"cutCellCount",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"fillCellCount",void 0),At=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolume")],At);const Ft=At;let Dt=class extends j.o{constructor(e){super(e),this.volumes=[]}};(0,s.Cg)([(0,c.MZ)({type:[Ft],json:{write:!0}})],Dt.prototype,"volumes",void 0),Dt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolumeResult")],Dt);let Nt=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=JSON.stringify(e))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{read:de.rS,write:!0}})],Nt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],Nt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Nt.prototype,"rasterId",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.VisibleOnly",write:!0}})],Nt.prototype,"visibleOnly",void 0),Nt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MapToImageParameters")],Nt);let Tt=class extends j.o{constructor(e){super(e),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),ge.A.fromJSON(e)}};var Pt;(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"Shape",read:de.rS,write:!0}})],Tt.prototype,"geometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Length",write:!0}})],Tt.prototype,"length",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Area",write:!0}})],Tt.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{name:"Center",write:!0}})],Tt.prototype,"center",void 0),(0,s.Cg)([(0,Le.w)("center")],Tt.prototype,"readCenter",null),Tt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureAreaFromImageResult")],Tt);let jt=Pt=class extends j.o{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]={...e.toJSON(),spatialReference:void 0})}clone(){const e=(0,v.o8)({geometry:this.geometry,rasterId:this.rasterId});return new Pt(e)}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"fromGeometry",read:de.rS,write:!0}})],jt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],jt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],jt.prototype,"rasterId",void 0),jt=Pt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureFromImageParameters")],jt);let Ot=class extends j.o{constructor(e){super(e),this.geometry=null,this.length=null}};function Zt(e){const t=e?.time;if(t&&(null!=t.start||null!=t.end)){const r=[];null!=t.start&&r.push(t.start),null==t.end||r.includes(t.end)||r.push(t.end),e.time=r.join(",")}}async function _t(e,t,r){t=(0,b.PZ)(ut.A,t);const i=(0,ye.Dl)(e),s=t.geometry?[t.geometry]:[],n=await(0,he.el)(s),o=t.toJSON();Zt(o);const a=n?.[0];null!=a&&(o.geometry=Jt(a));const l=(0,ye.lF)({...i.query,f:"json",...o});return(0,ye.jV)(l,r)}async function Vt(e,t,r){t=(0,b.PZ)(pt,t);const i=(0,ye.Dl)(e),s=t.geometry?[t.geometry]:[];return(0,he.el)(s).then(e=>{const s=t.toJSON(),n=e?.[0];null!=n&&(s.geometry=JSON.stringify(Jt(n)));const o=(0,ye.lF)({...i.query,f:"json",...s}),a=(0,ye.jV)(o,r);return(0,w.A)(i.path+"/identify",a)}).then(e=>mt.fromJSON(e.data))}async function qt(e,t,r,i){const s=(0,ye.Dl)(e),n=await(0,he.el)(r),o=t.toJSON();null!=n[0]&&(o.fromGeometry=JSON.stringify(Jt(n[0]))),null!=n[1]&&(o.toGeometry=JSON.stringify(Jt(n[1])));const a=(0,ye.lF)({...s.query,f:"json",...o}),l=(0,ye.jV)(a,i),{data:u}=await(0,w.A)(s.path+"/measure",l);return u}async function Et(e,t,r){t=(0,b.PZ)(jt,t);const i=(0,ye.Dl)(e),s=t.toJSON(),n=(0,ye.lF)({...i.query,f:"json",...s}),o=(0,ye.jV)(n,r),{data:a}=await(0,w.A)(i.path+"/measureFromImage",o);return a}function Jt(e){const t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=Gt(e.spatialReference)),t}function Gt(e){const{imageCoordinateSystem:t}=e;if(t){const{id:e,referenceServiceName:r}=t;return null!=e?r?{icsid:e,icsns:r}:{icsid:e}:{ics:t}}return e.toJSON()}function zt(e,t){if(!e.imageCoordinateSystem)return(0,x.YX)(e);const r=Gt(e),{icsid:i,icsns:s}=r;return null==i||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(r):`0:${i}`}(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"Shape",read:de.rS,write:!0}})],Ot.prototype,"geometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Length",write:!0}})],Ot.prototype,"length",void 0),Ot=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureLengthFromImageResult")],Ot);var Lt=r(82371),$t=r(20223),Ut=r(20615),Kt=r(74910),Bt=r(78286),Qt=r(99199),kt=r(61956);const Ht=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),Wt=(0,b.Qp)(b.GB,{min:0,max:255}),Yt=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new re({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(e=>"number"==typeof e))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,r){null!=e&&"lerc"!==this.format&&(t[r]=e)}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?X.A.fromJSON(t):null}get fieldsIndex(){return this.fields?new se.A(this.fields):null}set format(e){e&&Ht.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=X.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const r=e||t.mosaicRule;return r?X.A.fromJSON(r):this._isMosaicRuleSupported(t)?X.A.fromJSON(t):null}writeMosaicRule(e,t,r){const{mosaicRule:i}=this;this._isValidCustomizedMosaicRule(i)&&(t[r]=i.toJSON())}writeNoData(e,t,r){null!=e&&"number"==typeof e&&(t[r]=Wt(e))}readObjectIdField(e,t){if(!e){const r=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type);e=r?.name}return e}get parsedUrl(){return(0,C.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const r=t?.find(({name:t})=>t===e);return r?.renderer.clone()}return this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,r){const i=t?.layerDefinition?.drawingInfo?.renderer,s=(0,me.LF)(i,r);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!i.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),L(s)||l.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,r){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){const e=this.fields?.map(e=>e.clone())??[];e.push((0,le.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,le.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,le.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,le.nq)(t)));const{rasterInfo:t}=this;if(this._isVectorDataSet()){const r=t?.multidimensionalInfo?.variables[0].unit?.trim(),i=(0,le.DV)(r),s=(0,le.y6)();e.push(i,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){const r=(0,le.AL)(t.multidimensionalInfo);e.push(...r)}const r=t?.attributeTable;if(null!=r){const t=(0,le.jC)(r);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=_.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){const r=t.rasterFunctionInfos;return t.renderingRule||r?.length&&"None"!==r[0].name?this._isRFTJson(t.renderingRule)?_.A.fromJSON({rasterFunctionDefinition:t.renderingRule}):_.A.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}readSpatialReference(e,t){const r=e||t.extent.spatialReference;return r?M.A.fromJSON(r):null}writePixelType(e,t,r){null!=this.serviceRasterInfo&&this.pixelType===this.serviceRasterInfo.pixelType||(t[r]=ee.e8.toJSON(e))}readVersion(e,t){let r=t.currentVersion;return r||(r=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),r}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let r=e,{renderer:i,symbolizer:s,pixelFilter:n}=this;const{isRawData:o}=e;if(o&&"lerc"!==this.format&&(i??=(0,pe.PD)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.rasterFunction?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}),s||(this.symbolizer=new ce.A({rendererJSON:i.toJSON(),rasterInfo:this.rasterInfo}),s=this.symbolizer)),(o||!this._isPicture())&&i&&s&&!n){await this._updateSymbolizer(s,i);const{bandIds:n}=this;r=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return r}async highlightPixels(e,t){const r=e.highlightOptions.map(e=>{const t={...e},r="bandId"in t?[t.bandId??0]:[t.xBandId,t.yBandId];for(let e=0;e<r.length;e++){const t=r[e];if(null==t)return;const i=this.bandIds?.length?this.bandIds.indexOf(t):t;if(i<0||i>2)return;r[e]=i}return"bandId"in t?t.bandId=r[0]:(t.xBandId=r[0],t.yBandId=r[1]),t}).filter(e=>null!=e);if(0===r.length)return;const i=this._rasterJobHandler;i?await i.highlightPixels({...e,highlightOptions:r},t):(0,D._F)({...e,highlightOptions:r})}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new a.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,v.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,r){const i=(t=(0,b.PZ)(xt,t)).toJSON();i.geometries=JSON.stringify(i.geometries);const s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...i}),o=(0,ye.jV)(n,r),{data:a}=await(0,w.A)(`${s.path}/calculateVolume`,o);return Dt.fromJSON({volumes:a.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new a.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(Se,t),s=i.toJSON();null!=s.angleName&&(s.angleName=s.angleName.join(",")),i?.point?.spatialReference?.imageCoordinateSystem&&(s.point.spatialReference=Gt(i.point.spatialReference)),i?.spatialReference?.imageCoordinateSystem&&(s.spatialReference=zt(i.spatialReference));const n=(0,ye.Dl)(e),o=(0,ye.lF)({...n.query,f:"json",...s}),a=(0,ye.jV)(o,r),{data:l}=await(0,w.A)(`${n.path}/computeAngles`,a);return l.spatialReference=l.spatialReference?null!=l.spatialReference.geodataXform?new M.A({wkid:0,imageCoordinateSystem:l.spatialReference}):M.A.fromJSON(l.spatialReference):null,"NaN"===l.north&&(l.north=null),"NaN"===l.up&&(l.up=null),new Ie(l)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new a.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return async function(e,t,r){const i=(t=(0,b.PZ)(ht,t)).toJSON(),{geometries:s}=t;if(s)for(let e=0;e<s.length;e++)s[e].spatialReference?.imageCoordinateSystem&&(i.geometries.geometries[e].spatialReference=Gt(s[e].spatialReference));const n=(0,ye.Dl)(e),o=(0,ye.lF)({...n.query,f:"json",...i}),a=(0,ye.jV)(o,r),{data:l}=await(0,w.A)(`${n.path}/computePixelLocation`,a);return yt.fromJSON(l)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new a.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,r){const i=await _t(e,t,r),s=(0,ye.Dl)(e),{data:n}=await(0,w.A)(`${s.path}/computeHistograms`,i);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new a.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,r){const i=await _t(e,t,r),s=(0,ye.Dl)(e),{data:n}=await(0,w.A)(`${s.path}/computeStatisticsHistograms`,i),{statistics:o}=n;return o?.length&&o.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:o,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){const r=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?r.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?r.mensuration.supportsHeightFromBaseAndTopShadow:r.mensuration.supportsHeightFromTopAndTopShadow))throw new a.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(ot,t),s=await qt(e,i,[i.fromGeometry,i.toGeometry],r);return at.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r.mensuration.supportsAreaAndPerimeter||e.is3D&&!r.mensuration.supports3D)throw new a.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(Pe,t),s=await qt(e,i,[i.geometry],r);return Ge.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r.mensuration.supportsDistanceAndAngle||e.is3D&&!r.mensuration.supports3D)throw new a.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(Ke,t),s=await qt(e,i,[i.fromGeometry,i.toGeometry],r);return ke.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r.mensuration.supportsPointOrCentroid||e.is3D&&!r.mensuration.supports3D)throw new a.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(ft,t),s=await qt(e,i,[i.geometry],r);return wt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new a.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new a.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,r){const i=await Et(e,t,r);return Ot.fromJSON(i)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new a.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new a.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,r){const i=await Et(e,t,r);return Tt.fromJSON(i)}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return null!=t?t.get(e):void 0}getFieldDomain(e,t){const r=this.getField(e);return r?r.domain:null}async internalFetchImage(e,t,r,s={}){await this._updateCurrentRasterInfo();const{exportImageServiceParameters:n}=this;let o=!1;s.requestRawData&&(await this._initJobHandler(),n.requestRawData||"lerc"===this.format||(o=!0,n.requestRawData=!0));const a=this.getExportImageServiceParameters(e,t,r,s.timeExtent);if(o&&(n.requestRawData=!1),null==a){if(s.requestAsImageElement&&this._canRequestImageElement(this.format)){const e=document.createElement("canvas");return e.width=t,e.height=r,s.returnImageBitmap?{imageBitmap:await(0,ne.m)(e,`${i(this.parsedUrl)}/exportImage`,s.signal)}:{imageOrCanvasElement:e}}const{bandIds:n,rasterInfo:o}=this,a=(n?.length||o.bandCount)??0,l=t*r,u=o.pixelType,p=[];for(let e=0;e<a;e++)p.push(ae.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new ae.A({width:t,height:r,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}const l=!!s.requestAsImageElement&&!this.pixelFilter,u=l&&!!s.returnImageBitmap,p={imageServiceParameters:a,imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:l,returnImageBitmap:u,signal:s.signal};return this._requestArrayBuffer(p)}async fetchPixels(e,t,r,i={}){await this._initJobHandler(),i.applyRendering&&this._updateCurrentRasterInfo();const s=i.applyRendering?void 0:new re({layer:this,requestRawData:!0,interpolation:i.interpolation??"nearest",bandIds:i.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,r,i.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,i.bandIds||delete n.bandIds,delete n.compressionQuality;const o={imageServiceParameters:n,imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:i.signal},{pixelData:a}=await this._requestArrayBuffer(o);return a??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,w.A)(i(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new a.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,w.A)(i(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>ct.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){const r={...t,query:this._getQueryParams()};return async function(e,t,r){const i=(0,ye.Dl)(e),s=(0,ye.lF)({...i?.query,f:"json"}),n=(0,ye.jV)(s,r),o=`${i?.path}/${t}/info`,a=(0,w.A)(`${o}`,n),l=(0,w.A)(`${o}/keyProperties`,n),u=await Promise.allSettled([a,l]),p="fulfilled"===u[0].status?u[0].value.data:null,c="fulfilled"===u[1].status?u[1].value.data:null;let m=null;p.statistics?.length&&(m=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));const d=S.A.fromJSON(p.extent),h=Math.ceil(d.width/p.pixelSizeX-.1),y=Math.ceil(d.height/p.pixelSizeY-.1),g=d.spatialReference,f=new ge.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:g}),v=p.histograms?.length?p.histograms:null,R=new $t.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new ue.A({width:h,height:y,bandCount:p.bandCount,extent:d,spatialReference:g,pixelSize:f,pixelType:p.pixelType.toLowerCase(),statistics:m,histograms:v,keyProperties:c,storageInfo:R})}(i(this.parsedUrl),e,r)}async getCatalogItemICSInfo(e,t){const{data:r}=await(0,w.A)(i(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),s=r?.ics;if(!s)return;let n=null;try{n=(await(0,w.A)(i(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!n?.spatialReference)return{ics:s,icsToPixelTransform:null,icsExtent:null,northDirection:null};const o=this.version>=10.7?(0,w.A)(i(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},a=n.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),inSR:(0,x.YX)(a),outSR:"0:"+e},u=(0,w.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(n.xmin+n.xmax)/2,c=(n.ymax-n.ymin)/6,m=n.ymin+c,d=[];for(let e=0;e<5;e++)d.push({x:p,y:m+c*e});const h={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,x.YX)(a),outSR:"0:"+e},y=(0,w.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(h),...t}).then(e=>e.data).catch(()=>({})),g=await Promise.all([o,u,y]);let f=g[0].ipxf;if(null==f){const e=s.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const v=S.A.fromJSON(g[1]?.geometries?.[0]);v&&(v.spatialReference=new M.A({wkid:0,imageCoordinateSystem:s}));const R=g[2].geometries?g[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],C=R.length;if(C<3)return{ics:s,icsToPixelTransform:f,icsExtent:v,northDirection:null};let b=0,I=0,A=0,F=0;for(let e=0;e<C;e++)b+=R[e].x,I+=R[e].y,A+=R[e].x*R[e].x,F+=R[e].x*R[e].y;const D=(C*F-b*I)/(C*A-b*b);let N=0;const T=R[4].x>R[0].x,P=R[4].y>R[0].y;return D===1/0?N=P?90:270:0===D?N=T?0:180:D>0?N=T?180*Math.atan(D)/Math.PI:180*Math.atan(D)/Math.PI+180:D<0&&(N=P?180+180*Math.atan(D)/Math.PI:360+180*Math.atan(D)/Math.PI),{ics:s,icsToPixelTransform:f,icsExtent:v,northDirection:N}}async generateRasterInfo(e,t){e=(0,b.PZ)(_.A,e);const r={...t,query:this._getQueryParams()};if(!e||"none"===e.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(e))return this.serviceRasterInfo??(0,Lt.Tw)(i(this.parsedUrl),this.sourceJSON,r);const s=function(e){const t=JSON.stringify(e),r=t.includes('"rasterFunctionDefinition":{'),i=r?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi),s=i?.map(e=>r?e.slice(8,-18):e.slice(18,-1));return s?s.join("/"):null}(e);if(!s)throw new a.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[s])return this._functionRasterInfos[s];const n=(0,Lt.X6)(i(this.parsedUrl),e,r);this._functionRasterInfos[s]=n;try{return await n}catch(e){throw this._functionRasterInfos[s]=null,e}}getExportImageServiceParameters(e,t,r,s,n){const o=zt((e=e.clone().shiftCentralMeridian()).spatialReference,i(this.parsedUrl));n??=this.exportImageServiceParameters;const a=n.toJSON(),{bandIds:l,noData:u}=a;let{renderingRule:p}=a;const c=this.rasterFunction?.rasterFunctionDefinition,m=this.renderer?.type,d=!m||"raster-stretch"===m||"raster-colormap"===m||"unique-value"===m||"class-breaks"===m||"raster-shaded-relief"===m;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!c&&d){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){const t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;a.bandIds=void 0}else a.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(a.noData=u.join(","));const h=this._processMultidimensionalIntersection(null,s,n.mosaicRule);if(h.isOutSide)return null;a.mosaicRule=null!=h.mosaicRule?JSON.stringify(h.mosaicRule):null,s=h.timeExtent,a.renderingRule=this._getRenderingRuleString(_.A.fromJSON(p));const y={};if(null!=s){const{start:e,end:t}=s.toJSON();e&&t&&e===t?y.time=""+e:null==e&&null==t||(y.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:o,imageSR:o,size:t+","+r,...a,...y}}async getSamples(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r?.operations.supportsGetSamples)throw new a.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,v.o8)(e);const{raster:i}=this;return i&&null==e.raster&&(e.raster=i),async function(e,t,r){const i=(t=(0,b.PZ)(vt.A,t)).toJSON();Zt(i),i.outFields?.length&&(i.outFields=i.outFields.join(","));const s=await(0,he.el)(t.geometry),n=s?.[0];null!=n&&(i.geometry=Jt(n));const o=(0,ye.Dl)(e),a=(0,ye.lF)({...o.query,f:"json",...i}),l=(0,ye.jV)(a,r),{data:u}=await(0,w.A)(`${o.path}/getSamples`,l),p=u.samples.map(e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return Rt.A.fromJSON({samples:p})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new a.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,v.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=I.A.fromExtent(e.geometry));const r=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(r.isOutSide)throw new a.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=r.timeExtent,e.mosaicRule=r.mosaicRule;const{raster:i,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),i&&null==e.raster&&(e.raster=i),Vt(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new a.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,r){const i=(t=(0,b.PZ)(bt,t)).toJSON();t.geometry.spatialReference.imageCoordinateSystem&&(i.geometry=Jt(t.geometry)),t.depthOffset&&t.adjust||delete i.options;const s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...i}),o=(0,ye.jV)(n,r),{data:a}=await(0,w.A)(`${s.path}/imageToMap`,o);return(0,de.rS)(a)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new a.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,r){const i=(t=(0,b.PZ)(Ct,t)).toJSON();t.rasterIds?.length&&(i.rasterIds=t.rasterIds.join(","));const s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...i}),o=(0,ye.jV)(n,r),{data:a}=await(0,w.A)(`${s.path}/imageToMapMultiray`,o);return(0,de.rS)(a)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new a.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,r){const i=(t=(0,b.PZ)(Nt,t)).toJSON(),s=await(0,he.el)(t.geometry),n=s?.[0];null!=n&&(i.geometry=Jt(n)),t.visibleOnly||delete i.options;const o=n?.spatialReference??t.geometry?.spatialReference;o&&(i.inSR=zt(o));const a=(0,ye.Dl)(e),l=(0,ye.lF)({...a.query,f:"json",...i}),u=(0,ye.jV)(l,r),{data:p}=await(0,w.A)(`${a.path}/mapToImage`,u);return(0,de.rS)(p)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new a.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,r){const i=(t=(0,b.PZ)(fe,t)).toJSON(),s=await(0,he.el)([t.fromGeometry,t.toGeometry]);null!=s[0]&&(i.fromGeometry=Jt(s[0]),s[0].spatialReference&&(i.inSR=zt(s[0].spatialReference))),null!=s[1]&&(i.toGeometry=Jt(s[1])),t.objectIds?.length&&(i.objectIds=i.objectIds.join(","));const n=(0,ye.Dl)(e),o=(0,ye.lF)({...n.query,f:"json",...i}),a=(0,ye.jV)(o,r),{data:l}=await(0,w.A)(`${n.path}/find`,a);return Ce.fromJSON(l)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new a.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,r){const i=(t=(0,b.PZ)(St,t)).toJSON(),s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...i}),o=(0,ye.jV)(n,r),{data:a}=await(0,w.A)(`${s.path}/getImageUrl`,o);return It.fromJSON(a)}(i(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new kt.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new a.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e=e??{outSpatialReference:this.spatialReference},async function(e,t,r){t=(0,b.PZ)(ze,t);const i=(0,ye.Dl)(e),s=t.toJSON();t.outSpatialReference&&(s.outSR=zt(t.outSpatialReference));const n=(0,ye.lF)({...i.query,f:"json",...s}),o=(0,ye.jV)(n,r),{data:a}=await(0,w.A)(i.path+"/queryBoundary",o);return $e.fromJSON(a)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryExtent(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Kt.L)(this.url,e,t)}async queryRasters(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));const r=await(0,Qt.s)(this.url,e,t),i=this.graphicOrigin;return r.features.forEach(e=>{e.layer=this,e.origin=i}),r}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Bt.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new a.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e=e??{where:"1=1"},async function(e,t,r){const i=(t=(0,b.PZ)(Xe,t)).toJSON();Zt(i),i.objectIds?.length&&(i.objectIds=i.objectIds.join(",")),i.geometry||i.objectIds||i.time||i.where||(i.where="1=1");const s=await(0,he.el)(t.geometry),n=s?.[0];null!=n&&(i.geometry=Jt(n));const o=n?.spatialReference??t.geometry?.spatialReference;o&&(i.inSR=zt(o));const a=(0,ye.Dl)(e),l=(0,ye.lF)({...a.query,f:"json",...i}),u=(0,ye.jV)(l,r),{data:p}=await(0,w.A)(`${a.path}/queryGPSInfo`,u);return st.fromJSON(p)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Ut.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new a.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();const{pixelSize:r,returnDomainValues:i,returnTopmostRaster:s,showNoDataRecords:n}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let o=!1,l=null,u=null;const p=le.F_.servicePixelValue.toLowerCase(),c=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(o=e.outFields.some(e=>!e.toLowerCase().startsWith(p)),this.version>=10.4)){const t=e.outFields.filter(e=>e.toLowerCase().startsWith(p)&&e.length>p.length).map(e=>{const t=e.slice(p.length+1);return[this._updateRenderingRulesFunctionName(t,c),t]});l=t.map(e=>new _.A({functionName:e[0]})),u=t.map(e=>e[1]);const{rasterFunction:r}=this;0===l.length?r?.functionName?(l.push(r),u.push(r.functionName)):l=null:r?.functionName&&!l.some(e=>e.functionName===r.functionName)&&(l.push(r),u.push(r.functionName))}const m=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:d}=this;let h=e.timeExtent||this.timeExtent;if(d){const{isOutside:t,intersection:r}=(0,A.Rp)(d,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new a.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=r?.timeExtent&&(h=r.timeExtent)}const y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,h);let g=e.geometry;this.version<10.91&&"extent"===g?.type&&(g=I.A.fromExtent(g));const f=this._getQueryParams({geometry:g,timeExtent:h,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:l,pixelSize:r,returnCatalogItems:o,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete f.f;const w=new pt(f);try{await this._generateRasterInfo(this.rasterFunction);const r=await Vt(this.url,w,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,a=null!=r.value&&r.value.toLowerCase().includes("nodata"),l=o&&!m&&r?.catalogItems?.features.length&&(n||!a),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,A.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:h,multidimensionalSubset:this.multidimensionalSubset}):null;if(!l)return this._processVisibleRastersResponse(r,{returnDomainValues:i,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p});const c=this.objectIdField||"ObjectId",d=r.catalogItems?.features??[],g=d.map(e=>e.attributes?.[c]),f=new kt.A({objectIds:g,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),v=await this.queryRasters(f);return v?.features?.length&&v.features.forEach(t=>{d.forEach(r=>{r.attributes[c]===t.attributes[c]&&t.geometry&&(r.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(r.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(r,{returnDomainValues:i,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new a.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){const r=(0,w.A)(i(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),s=(0,w.A)(i(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),n=await Promise.all([r,s]);return n[0]&&n[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:n[0]||null,histograms:n[1]||null}}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,A.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e),this.rasterInfo||(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,r=null!=this.serviceRasterInfo?Promise.resolve(this.serviceRasterInfo):(0,Lt.Tw)(i(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,Lt.E9)(e,t),e)),s=this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):null,n=this._getRasterFunctionInfos();return Promise.all([r,s,n]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),l.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,R.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);const{serviceRasterInfo:t}=this;null!=t.multidimensionalInfo&&this._updateMultidimensionalDefinition(t)})}_combineMosaicRuleWithTimeExtent(e,t){const r=this.timeInfo,{multidimensionalInfo:i}=this.serviceRasterInfo;if(null==e||null==i||null==t||null==r?.startField)return e;const{startField:s}=r,n=i.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==n),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const o=e.multidimensionalDefinition.filter(e=>e.dimensionName===n),a=null!=t.start?t.start.getTime():null,l=null!=t.end?t.end.getTime():null,u=null==a||null==l||a===l,p=u?[a||l]:[[a,l]],c=this.version>=10.8;if(o.length)o.forEach(e=>{e.dimensionName===n&&(c?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!c){const t=e.multidimensionalDefinition.filter(e=>null!=e.variableName&&null==e.dimensionName);t.length?t.forEach(e=>{e.dimensionName=n,e.isSlice=u,e.values=p}):e.multidimensionalDefinition.push(new P.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new a.A("imagery-layer:query-rasters","query operation is not supported on the input image service");const r=null!=e?(0,b.PZ)(kt.A,e):this.createQuery();return t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:r,requestOptions:t}}_isSupportedRenderer(e){const{rasterInfo:t,rasterFunction:r}=this;return"unique-value"===e.type&&this._hasRasterFunction(r)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,pe.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){const{data:r,ssl:s}=await(0,w.A)(i(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=r,this.sourceJSON=t,s&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new a.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;const t=this._isMosaicDataset(e),r=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||r}_isVectorFieldResampleFunction(e){if(null==e)return!1;const{functionName:t,functionArguments:r}=e,i="resample"===t?.toLowerCase(),s=r?.ResampleType||r?.resampleType;return i&&(7===s||10===s)}_isPicture(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}_configRenderer(e){const t=this._isPicture(),{rasterInfo:r}=this;if(!t&&!this.pixelFilter||this._isVectorDataSet()){const t=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,i=(0,pe.I8)({variableName:t,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&r.bandCount>=3){const e=i?.bandIds??(0,pe.ci)(r);!e||3===r.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}e||(e=i?.renderer??(0,pe.PD)(r,{bandIds:this.bandIds,variableName:this.rasterFunction?null:t}));const s=(0,pe.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=r):this.symbolizer=new ce.A({rendererJSON:s,rasterInfo:r}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null!=e.pixelBlock?e.pixelBlock.clone():null}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:r}=this;return{raster:t,viewId:r,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,r){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,F.D)(e,t,r)}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;if(this.loaded)return t;if(t&&this.version>=10.3){if(1===t.length&&"none"===t[0].name.toLowerCase())return t;const r=await(0,w.A)(i(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e});return r.data?.rasterFunctionInfos}return null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:r,returnImageBitmap:s,signal:n}=e;if(r&&this._canRequestImageElement(t.format)){const r=`${i(this.parsedUrl)}/exportImage`,{data:o}=await(0,w.A)(r,{responseType:s?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:n});return o instanceof Blob?{imageBitmap:await(0,ne.m)(o,r,n),params:t}:{imageOrCanvasElement:o,params:t}}const o=this._initJobHandler(),l=(0,w.A)(i(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:n}),u=(await Promise.all([l,o]))[0].data,p=t.format||"jpgpng";let c=p;if("bsq"!==c&&"bip"!==c&&(c=(0,F.g)(u)),!c)throw new a.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(u)));const m={signal:n},d="gif"===p||"bmp"===p||p.includes("png")&&("png"===c||"jpg"===c)?(0,F.D)(u,{useCanvas:!0,...t},m):this._decodePixelBlock(u,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:p},m);return{pixelData:{pixelBlock:await d,extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,A.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new X.A;const e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};const r=e.value,{templateRRFunctionNames:i,showNoDataRecords:s,returnDomainValues:n,templateFields:o}=t,a=e.processedValues;let l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[];const p=this.objectIdField||"ObjectId",c="string"==typeof r&&r.toLowerCase().includes("nodata"),m=[];if(r&&!l&&(!c||s)){const e={};e[p]=0,u=[r],l=[new f.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,le.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,o),c&&!s&&(l=[]);const{itemPixelValue:d,servicePixelValue:h}=le.F_,y=this.rasterFields.some(e=>e.name===d),g=this.graphicOrigin;for(let e=0;e<l.length;e++){const t=l[e];if(null!=r){const n=u[e],o=this.rasterFunction&&a&&a.length>0&&i&&i.length>0&&i.includes(this.rasterFunction.functionName)?a[i.indexOf(this.rasterFunction.functionName)]:r;if("nodata"===n.toLowerCase()&&!s)continue;y&&(t.attributes[d]=n),t.attributes[h]=o,this._updateFeatureWithMagDirValues(t,n);const l=this.fields&&this.fields.length>0;let p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:r:o;this.rasterFunction||(p=l?n:r),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,t.origin=g,n&&this._updateFeatureWithDomainValues(t),i&&a&&i.length===a.length)for(let e=0;e<i.length;e++){const r=`${le.F_.servicePixelValue}.${i[e]}`;t.attributes[r]=a[e]}m.push(l[e])}return m}_processMultidimensionalIntersection(e,t,r){const{multidimensionalSubset:i}=this;if(!i)return{isOutSide:!1,timeExtent:t,mosaicRule:r=this._combineMosaicRuleWithTimeExtent(r,t)};if(i){const{isOutside:r,intersection:s}=(0,A.Rp)(i,{geometry:e,timeExtent:t});if(r)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(r=this._combineMosaicRuleWithTimeExtent(r,t),r?.multidimensionalDefinition){const{isOutside:e}=(0,A.Rp)(i,{multidimensionalDefinition:r.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:r}}_updateFeatureWithRasterAttributeTableValues(e,t){const r=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==r)return;const{features:i,fields:s}=r,n=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!n)return;const o=i.filter(e=>e.attributes[n]===(null!=t?parseInt(t,10):null));o&&o[0]&&s.forEach(t=>{const r=le.ER+t.name;e.attributes[r]=o[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;const r=t.split(/,\s*/).map(e=>parseFloat(e)),i=r.map(e=>[e]),s=r.map(e=>({minValue:e,maxValue:e,noDataValue:null})),n=new ae.A({height:1,width:1,pixelType:"f32",pixels:i,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new S.A(0,0,0,0,this.spatialReference)});const o="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,N.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[le.F_.magnitude]=o[0],e.attributes[le.F_.direction]=o[1]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter(e=>"coded-value"===e.domain?.type);null!=t&&t.forEach(t=>{const r=e.attributes[t.name];if(null!=r){const i=t.domain.codedValues.find(e=>e.code===r);i&&(e.attributes[t.name]=i.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const r=this.fieldsIndex;null!=r&&e.forEach(e=>{if(e?.attributes)for(const i of t){const t=r.get(i)?.name;t&&t!==i&&(e.attributes[i]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const r=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(r)?t.get(r):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){const{raster:t,mosaicRule:r,rasterFunction:i}=this;i&&null==e.rasterFunction&&(e.rasterFunction=i),r&&null==e.mosaicRule&&(e.mosaicRule=r),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){const t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){const{raster:t,mosaicRule:r}=this;r&&null==e.mosaicRule&&(e.mosaicRule=r),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:r,maxRecordCount:i}=e,s=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,o=!(!e.spatialReference&&!e.extent?.spatialReference),a=t.includes("edit"),l=t.includes("mensuration")&&o,u=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),p=l&&u.includes("basic"),c=this._isMosaicDataset(e)&&t.includes("catalog"),m=t.includes("download"),d=r>=10.7&&n||r>=11.4&&(n||l&&u.includes("3d")),h=c&&e.fields&&e.fields.length>0,y=h&&e.supportsAdvancedQueries?e.advancedQueryCapabilities:void 0;return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsImageToMap:r>=11.2&&c,supportsImageToMapMultiray:r>=11.2&&c,supportsMapToImage:r>=11.2&&c,supportsFindImages:r>=11.2&&c,supportsGetImageUrl:r>=11.3&&m,supportsMeasure:l,supportsMeasureFromImage:r>=11.2,supportsDownload:m,supportsQuery:h,supportsGetSamples:r>=10.2&&s,supportsProject:r>=10.3&&s,supportsComputeStatisticsHistograms:r>=10.4&&s,supportsQueryBoundary:r>=10.6&&s,supportsCalculateVolume:d,supportsComputePixelLocation:r>=10.7&&c,supportsComputeAngles:r>=10.91,supportsQueryGPSInfo:r>=11.2&&c,supportsAdd:a,supportsDelete:a,supportsEditing:a,supportsUpdate:a,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:i,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,supportsStatistics:!!y?.supportsStatistics,supportsOrderBy:!!y?.supportsOrderBy,supportsDistinct:!!y?.supportsDistinct,supportsPagination:!!y?.supportsPagination,supportsPaginationOnAggregatedQueries:!!y?.supportsPaginationOnAggregatedQueries,supportsStandardizedQueriesOnly:!!y?.useStandardizedQueries,supportsPercentileStatistics:!!y?.supportsPercentileStatistics,supportsCentroid:!!y?.supportsReturningGeometryCentroid,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!!y?.supportsQueryWithDistance,supportsExtent:!!y?.supportsReturningQueryExtent,supportsGeometryProperties:!!y?.supportsReturningGeometryProperties,supportsHavingClause:!!y?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:y?.supportsSqlExpression??!!y,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!y?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:p,supportsAreaAndPerimeter:p,supportsPointOrCentroid:p,supportsHeightFromBaseAndTop:l&&u.includes("base-top height"),supportsHeightFromBaseAndTopShadow:l&&u.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:l&&u.includes("top-top shadow height"),supports3D:l&&u.includes("3d")}}}};function i(e){return e?.path??""}return(0,s.Cg)([(0,c.MZ)({clonable:!1})],r.prototype,"_functionRasterInfos",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"_serviceSupportsMosaicRule",void 0),(0,s.Cg)([(0,Le.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],r.prototype,"readServiceSupportsMosaicRule",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"_rasterFunctionNamesIndex",null),(0,s.Cg)([(0,c.MZ)()],r.prototype,"adjustAspectRatio",void 0),(0,s.Cg)([(0,c.MZ)({type:[b.jz],json:{write:!0}})],r.prototype,"bandIds",void 0),(0,s.Cg)([(0,Le.w)("bandIds")],r.prototype,"readBandIds",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],r.prototype,"capabilities",void 0),(0,s.Cg)([(0,Le.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],r.prototype,"readCapabilities",null),(0,s.Cg)([(0,c.MZ)({type:Number})],r.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,te.K)("compressionQuality")],r.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,c.MZ)({type:Number})],r.prototype,"compressionTolerance",void 0),(0,s.Cg)([(0,te.K)("compressionTolerance")],r.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,dependsOn:["_serviceSupportsMosaicRule"]})],r.prototype,"defaultMosaicRule",void 0),(0,s.Cg)([(0,Le.w)("defaultMosaicRule",["defaultMosaicMethod"])],r.prototype,"readDefaultMosaicRule",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],r.prototype,"definitionExpression",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,constructOnly:!0})],r.prototype,"exportImageServiceParameters",void 0),(0,s.Cg)([(0,c.MZ)()],r.prototype,"rasterInfo",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:[ie.A]})],r.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"fieldsIndex",null),(0,s.Cg)([(0,c.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],r.prototype,"format",null),(0,s.Cg)([(0,Le.w)("service","format",["serviceDataType"])],r.prototype,"readFormat",null),(0,s.Cg)([(0,c.MZ)({type:S.A})],r.prototype,"fullExtent",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"hasMultidimensions",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"maxImageHeight"}}})],r.prototype,"imageMaxHeight",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"maxImageWidth"}}})],r.prototype,"imageMaxWidth",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{type:ee.SZ.jsonValues,read:ee.SZ.read,write:ee.SZ.write}})],r.prototype,"interpolation",void 0),(0,s.Cg)([(0,c.MZ)()],r.prototype,"minScale",void 0),(0,s.Cg)([(0,Le.w)("service","minScale")],r.prototype,"readMinScale",null),(0,s.Cg)([(0,c.MZ)()],r.prototype,"maxScale",void 0),(0,s.Cg)([(0,Le.w)("service","maxScale")],r.prototype,"readMaxScale",null),(0,s.Cg)([(0,c.MZ)({type:X.A})],r.prototype,"mosaicRule",null),(0,s.Cg)([(0,Le.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],r.prototype,"readMosaicRule",null),(0,s.Cg)([(0,te.K)("mosaicRule")],r.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,c.MZ)()],r.prototype,"multidimensionalInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:oe.A,json:{write:!0}})],r.prototype,"multidimensionalSubset",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:b.jz}})],r.prototype,"noData",void 0),(0,s.Cg)([(0,te.K)("noData")],r.prototype,"writeNoData",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{type:ee.hm.jsonValues,read:ee.hm.read,write:ee.hm.write}})],r.prototype,"noDataInterpretation",void 0),(0,s.Cg)([(0,c.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],r.prototype,"objectIdField",void 0),(0,s.Cg)([(0,Le.w)("objectIdField")],r.prototype,"readObjectIdField",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"geometryType",void 0),(0,s.Cg)([(0,c.MZ)({})],r.prototype,"typeIdField",void 0),(0,s.Cg)([(0,c.MZ)({})],r.prototype,"types",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,s.Cg)([(0,c.MZ)({type:Function})],r.prototype,"pixelFilter",void 0),(0,s.Cg)([(0,c.MZ)()],r.prototype,"raster",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"sourceType",void 0),(0,s.Cg)([(0,Le.w)("sourceType",["serviceSourceType","fields"])],r.prototype,"readSourceType",null),(0,s.Cg)([(0,c.MZ)()],r.prototype,"viewId",void 0),(0,s.Cg)([(0,c.MZ)({types:me.uy})],r.prototype,"renderer",null),(0,s.Cg)([(0,c.MZ)({types:me.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:me.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],r.prototype,"internalRenderer",null),(0,s.Cg)([(0,Le.w)("internalRenderer")],r.prototype,"readRenderer",null),(0,s.Cg)([(0,te.K)("internalRenderer")],r.prototype,"writeRenderer",null),(0,s.Cg)([(0,c.MZ)({clonable:!1})],r.prototype,"symbolizer",void 0),(0,s.Cg)([(0,c.MZ)(T.ke)],r.prototype,"opacity",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"rasterFields",null),(0,s.Cg)([(0,c.MZ)({constructOnly:!0})],r.prototype,"rasterFunctionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:_.A,json:{name:"renderingRule"}})],r.prototype,"rasterFunction",null),(0,s.Cg)([(0,Le.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],r.prototype,"readRasterFunction",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"serviceDataType",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:M.A})],r.prototype,"spatialReference",void 0),(0,s.Cg)([(0,Le.w)("spatialReference",["spatialReference","extent"])],r.prototype,"readSpatialReference",null),(0,s.Cg)([(0,c.MZ)({type:ee.e8.apiValues,json:{read:ee.e8.read,type:ee.e8.jsonValues}})],r.prototype,"pixelType",void 0),(0,s.Cg)([(0,te.K)("pixelType")],r.prototype,"writePixelType",null),(0,s.Cg)([(0,c.MZ)({constructOnly:!0,type:ue.A})],r.prototype,"serviceRasterInfo",void 0),(0,s.Cg)([(0,c.MZ)()],r.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,c.MZ)(T.OZ)],r.prototype,"url",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,s.Cg)([(0,Le.w)("version",["currentVersion","fields","timeInfo"])],r.prototype,"readVersion",null),r=(0,s.Cg)([(0,c.$K)("esri.layers.mixins.ArcGISImageService")],r),r};var Xt=r(18768),er=r(63074),tr=r(69208),rr=r(16131),ir=r(8303),sr=r(72545),nr=r(56551),or=r(54310),ar=r(25036),lr=r(82935),ur=r(91908),pr=r(24212),cr=r(30291),mr=r(88625);let dr=class extends((0,er.dM)((0,lr.e)((0,ar.j)((0,rr.q)((0,ir.A)((0,nr.H)(Yt((0,sr.G)((0,or.J)((0,tr.d)((0,Xt.b)((0,u.M)((0,o.OU)(g.A)))))))))))))){constructor(...e){super(...e),this.graphicOrigin=new y(this),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.type="imagery",this._debouncedSaveOperations=(0,p.sg)(async(e,t,i)=>{const{save:s,saveAs:n}=await r.e(9838).then(r.bind(r,59838));switch(e){case 0:return s(this,t);case 1:return n(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(p.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,t,r){const i="vector-field"===this.renderer?.type;t[r]=i?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const{rasterFields:t}=this,r=new Set,i=le.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=le.Oo.toLowerCase(),o=`${le.F_.servicePixelValue.toLowerCase()}.`;for(const e of t){const t=e.name.toLowerCase();t===i||t.startsWith(o)||s&&t.startsWith(n)||r.add(e.name)}const a=(0,cr.tn)({fields:t,title:this.title},{...e,visibleFieldNames:r}),{rasterInfo:l}=this;return a?.fieldInfos&&l&&(0,le.h4)(a.fieldInfos,l),a}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,ur.D)(this,e)}write(e,t){if(!this._isPreviewLayer)return super.write(e,t);if(t?.messages){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new a.A("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}_validateElevationInfo(e){(0,pr.XF)(l.A.getLogger(this),(0,pr.$7)("Imagery layers","relative-to-scene",e)),(0,pr.XF)(l.A.getLogger(this),(0,pr.tW)("Imagery layers",e))}};(0,s.Cg)([(0,c.MZ)({type:mr.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],dr.prototype,"elevationInfo",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1})],dr.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,c.MZ)(T.fV)],dr.prototype,"legendEnabled",null),(0,s.Cg)([(0,c.MZ)({type:["show","hide"]})],dr.prototype,"listMode",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],dr.prototype,"isReference",void 0),(0,s.Cg)([(0,c.MZ)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],dr.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,te.K)("web-map","operationalLayerType")],dr.prototype,"writeOperationalLayerType",null),(0,s.Cg)([(0,c.MZ)(T.M6)],dr.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,c.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],dr.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],dr.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,c.MZ)(T.PY)],dr.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],dr.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],dr.prototype,"_isPreviewLayer",null),dr=(0,s.Cg)([(0,c.$K)("esri.layers.ImageryLayer")],dr);const hr=dr},91908(e,t,r){r.d(t,{D:()=>n});var i=r(60694);const s=[];function n(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},92722(e,t,r){r.d(t,{A:()=>s});var i=r(69397);class s{constructor(e=[],t=[],r=!1,i=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=i}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:i}){return new s(e,t,r||!1,i||!1)}static fromRect([e,t,r,i]){const n=r-e,o=i-t;return new s([5],[e,t,n,0,0,o,-n,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,i.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const r of this.lengths){if(r<3)continue;const{stride:i}=this;let s=this.coords[i*t],n=this.coords[i*t+1];for(let o=1;o<r;o+=1){const r=i*(t+o),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-s)*(l+n),s=a,n=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:r}=this;for(const i of this.lengths){for(let s=0;s<i;s++){const i=r*(t+s);e(this.coords[i],this.coords[i+1])}t+=i}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let i=0;const{stride:s}=this;for(const e of r){for(let r=1;r<e;r++){const e=s*(i+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}i+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:r,size:i}=this,n=this.coords.slice(0,i*r);return e?(e.set(n),new s(t,e)):new s(t,Array.from(n),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const r=new Array(t*e);for(let t=0,i=0;t<r.length;t+=e)r[i++]=this.coords[t],r[i++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}},99199(e,t,r){r.d(t,{e:()=>l,s:()=>a});var i=r(2272),s=r(80893),n=r(22671),o=r(61956);async function a(e,t,r,i){const s=await l(e,t,r,i);return n.A.fromJSON(s)}function l(e,t,r,n){const a=(0,i.Dl)(e),l={...r},u=o.A.from(t);return(0,s.eW)(a,u,u.sourceSpatialReference,l,n)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8824],{18768(e,t,r){r.d(t,{b:()=>a});var i=r(31635),s=r(53966),n=r(91429),o=r(60694);const a=e=>{const t=e;let r=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,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}},20615(e,t,r){r.d(t,{I:()=>o});var i=r(2272),s=r(80893),n=r(61956);function o(e,t,r,o){return(0,s.gW)((0,i.Dl)(e),n.A.from(t),r,o)}},27647(e,t,r){r.d(t,{Q:()=>n});var i=r(92722);function s(e,t){return e?t?4:3:t?3:2}function n(e){if(null==e)return null;if(!e?.lengths.length)return null;const{lengths:t,coords:r,stride:s,hasZ:n,hasM:l}=e,u=new i.A([],[],n,!1),p=u.coords,c=[],m=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];let d=0;for(const e of t){const t=o(m,r,d,e,n,l);t&&c.push(t),d+=e*s}if(c.sort((e,t)=>{let r=e[2]-t[2];return 0===r&&n&&(r=e[4]-t[4]),r}),c.length){let e=6*c[0][2];p[0]=c[0][0]/e,p[1]=c[0][1]/e,n&&(e=6*c[0][4],p[2]=0!==e?c[0][3]/e:0),(p[0]<m[0]||p[0]>m[1]||p[1]<m[2]||p[1]>m[3]||n&&(p[2]<m[4]||p[2]>m[5]))&&(p.length=0)}if(!p.length){const i=e.lengths[0]?a(r,0,t[0],n,l):null;if(!i)return null;p[0]=i[0],p[1]=i[1],n&&(p[2]=i[2]??0)}return u}function o(e,t,r,i,n,o){const a=s(n,o);let l=r,u=r+a,p=0,c=0,m=0,d=0,h=0;for(let r=0,s=i-1;r<s;r++,l+=a,u+=a){const r=t[l],i=t[l+1],s=t[l+2],o=t[u],a=t[u+1],y=t[u+2];let g=r*a-o*i;d+=g,p+=(r+o)*g,c+=(i+a)*g,n&&(g=r*y-o*s,m+=(s+y)*g,h+=g),r<e[0]&&(e[0]=r),r>e[1]&&(e[1]=r),i<e[2]&&(e[2]=i),i>e[3]&&(e[3]=i),n&&(s<e[4]&&(e[4]=s),s>e[5]&&(e[5]=s))}if(d>0&&(d*=-1),h>0&&(h*=-1),!d)return null;const y=[p,c,.5*d];return n&&(y[3]=m,y[4]=.5*h),y}function a(e,t,r,i,n){const o=s(i,n);let a=t,m=t+o,d=0,h=0,y=0,g=0;for(let t=0,s=r-1;t<s;t++,a+=o,m+=o){const t=e[a],r=e[a+1],s=e[a+2],n=e[m],o=e[m+1],f=e[m+2],w=i?u(t,r,s,n,o,f):l(t,r,n,o);if(w)if(d+=w,i){const e=c(t,r,s,n,o,f);h+=w*e[0],y+=w*e[1],g+=w*e[2]}else{const e=p(t,r,n,o);h+=w*e[0],y+=w*e[1]}}return d>0?i?[h/d,y/d,g/d]:[h/d,y/d]:r>0?i?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function l(e,t,r,i){const s=r-e,n=i-t;return Math.sqrt(s*s+n*n)}function u(e,t,r,i,s,n){const o=i-e,a=s-t,l=n-r;return Math.sqrt(o*o+a*a+l*l)}function p(e,t,r,i){return[e+.5*(r-e),t+.5*(i-t)]}function c(e,t,r,i,s,n){return[e+.5*(i-e),t+.5*(s-t),r+.5*(n-r)]}},33446(e,t,r){r.d(t,{C:()=>o,m:()=>n});var i=r(49186),s=r(74887);async function n(e,t,r){let n;try{n=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(r),n}async function o(e,t,r,n,o){let a;try{a=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${n}`,{error:e,level:t,row:r,col:n})}return(0,s.Te)(o),a}},43334(e,t,r){r.d(t,{N3:()=>a,Om:()=>o});var i=r(69397),s=r(27647),n=r(92722);class o{constructor(e=null,t={},r,i,s=0){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=i,this.displayId=s}static fromJSON(e){const t=e.geometry?n.A.fromJSON(e.geometry):null,r=e.centroid?n.A.fromJSON(e.centroid):null,i=e.objectId;return new o(t,e.attributes,r,i)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t}ensureCentroid(e){return this.centroid??=(0,s.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,i.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function a(e){return!!e.geometry?.coords?.length}},56551(e,t,r){r.d(t,{H:()=>c});var i=r(31635),s=r(91429),n=r(69540),o=r(25482),a=r(56507),l=r(94359),u=r(93223);let p=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],p.prototype,"method",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"value",void 0),(0,i.Cg)([(0,s.MZ)({type:[a.jz],json:{write:{isRequired:!0}}})],p.prototype,"bandIds",void 0),(0,i.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],p.prototype,"renderer",void 0),p=(0,i.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],p);const c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],r.prototype,"activePresetRendererName",void 0),(0,i.Cg)([(0,s.MZ)({type:[p],json:{name:"layerDefinition.presetRenderers",write:!0}})],r.prototype,"presetRenderers",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],r),r}},58501(e,t,r){r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(s)for(const e of r.features)s(e.geometry)}},58512(e,t,r){r.d(t,{A:()=>i});class i{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new i;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},62815(e,t,r){r.d(t,{N:()=>o});var i=r(86211),s=r(73941),n=r(21325);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,n.aI)(t,r)||(0,s.xP)(t)||(0,s.xP)(r))return;const o=(0,i.G9)(t)/(0,i.G9)(r);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}},69397(e,t,r){r.d(t,{$B:()=>s,Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>h,ez:()=>m,lM:()=>o,qK:()=>c});var i=r(34275);function s(e){return 32+e.length}const n=16;function o(e){if(!e)return 0;let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=l(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return p(e,8);let r=m;for(let i=0;i<t;i++)r+=l(e[i]);return r}(e);let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=l(e[r]));return t}function l(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return s(e);case"number":return n;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+d:Array.isArray(t)?p(t,n):0:0),0)}function p(e,t){return m+e.length*t}const c=32,m=16,d=145,h=64},74379(e,t,r){r.d(t,{V:()=>i,t:()=>s});const i=Symbol("isImageryGraphicOrigin");function s(e){return!!e&&i in e}},74910(e,t,r){r.d(t,{L:()=>a});var i=r(5443),s=r(2272),n=r(80893),o=r(61956);async function a(e,t,r){const a=(0,s.Dl)(e),l=await(0,n.Jf)(a,o.A.from(t),{...r}),u=l.extent;return!u||isNaN(u.xmin)||isNaN(u.ymin)||isNaN(u.xmax)||isNaN(u.ymax)?{count:l.count,extent:null}:{count:l.count,extent:i.A.fromJSON(u)}}},78286(e,t,r){r.d(t,{V:()=>o});var i=r(2272),s=r(80893),n=r(61956);async function o(e,t,r,o){const a=(0,i.Dl)(e),l=await(0,s.Pk)(a,n.A.from(t),r,o);return l.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(l.uniqueIds)??[]}},82371(e,t,r){r.d(t,{E9:()=>h,Tw:()=>m,X6:()=>d});var i=r(11254),s=r(5443),n=r(86738),o=r(16930),a=r(87186),l=r(20223),u=r(2272),p=r(22671);async function c(e,t,r){const c=(0,u.Dl)(e),{rasterFunction:m,sourceJSON:d}=t||{},h=m?JSON.stringify(m.rasterFunctionDefinition||m):null,y=(0,u.lF)({...c.query,renderingRule:h,f:"json"}),g=(0,u.jV)(y,r);e=c.path;const f=d||await(0,i.A)(e,g).then(e=>e.data),w=f.hasRasterAttributeTable?(0,i.A)(`${e}/rasterAttributeTable`,g):null,v=f.hasColormap?(0,i.A)(`${e}/colormap`,g):null,R=f.hasHistograms?(0,i.A)(`${e}/histograms`,g):null,C=f.currentVersion>=10.3?(0,i.A)(`${e}/keyProperties`,g):null,b=f.hasMultidimensions?(0,i.A)(`${e}/multidimensionalInfo`,g):null,S=await Promise.allSettled([w,v,R,C,b]);let I=null;if(f.minValues&&f.minValues.length===f.bandCount){I=[];for(let e=0;e<f.minValues.length;e++)I.push({min:f.minValues[e],max:f.maxValues[e],avg:f.meanValues[e],stddev:f.stdvValues[e]})}const M=s.A.fromJSON(f.extent),x=Math.ceil(M.width/f.pixelSizeX-.1),A=Math.ceil(M.height/f.pixelSizeY-.1),F=o.A.fromJSON(f.spatialReference||f.extent.spatialReference),D="fulfilled"===S[0].status?S[0].value?.data:null,N=D?.features?.length?p.A.fromJSON(D):null,T="fulfilled"===S[1].status?S[1].value?.data.colormap:null,P=T?.length?T:null,j="fulfilled"===S[2].status?S[2].value?.data.histograms:null,O=j?.[0]?.counts?.length?j:null,Z="fulfilled"===S[3].status?S[3].value?.data??{}:{},_="fulfilled"===S[4].status?S[4].value?.data.multidimensionalInfo:null,V=_?.variables?.length?_:null;V&&V.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});const{defaultVariable:q,serviceDataType:E}=f;q&&q!==Z.DefaultVariable&&(Z.DefaultVariable=q),E?.includes("esriImageServiceDataTypeVector")&&!E.includes(Z.DataType)&&(Z.DataType=E.replace("esriImageServiceDataType",""));let J=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==J)&&(J=f.noDataValues);const G=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:F}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(x,A))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new a.A({width:x,height:A,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:F,pixelSize:new n.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:F}),pixelType:f.pixelType.toLowerCase(),statistics:I,attributeTable:N,colormap:P,histograms:O,keyProperties:Z,noDataValue:J,multidimensionalInfo:V,storageInfo:G})}function m(e,t,r){return c(e,{sourceJSON:t},r)}function d(e,t,r){return c(e,{rasterFunction:t},r)}function h(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},87772(e,t,r){r.r(t),r.d(t,{default:()=>hr});var i,s=r(31635),n=r(37838),o=r(69540),a=r(49186),l=r(53966),u=r(25728),p=r(74887),c=r(91429),m=r(89808),d=r(99959),h=r(74379);class y extends d.A{get[(i=h.V,m.Q)](){return this.layer}constructor(e){super(),this[i]=!0,this.type="imagery",this.layer=e}get id(){return this.layer.id}}var g=r(4146),f=r(52106),w=r(11254),v=r(4718),R=r(36708),C=r(84952),b=r(56507),S=r(5443),I=r(39829),M=r(16930),x=r(21325),A=r(4366),F=r(20758),D=r(47520),N=r(34251),T=r(10873),P=r(45617),j=r(25482),O=r(94778);const Z={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var _=r(22796),V=r(67369),q=r(70274),E=r(48940);const J=new Set(["u1","u2","u4","u8","s8","u16","s16"]),G={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},z=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function L(e){return z.has(e.type)}function $(e,t){if(!e||!t)return(0,v.o8)(e||t);const r=(0,v.o8)(e);if(r.functionDefinition&&t.rasterFunctionDefinition){const e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),U(r.functionDefinition.arguments,t),r.rasterFunctionDefinition=r.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&(B(r.functionArguments).Raster=t);return r}function U(e,t){for(const r in e)"raster"===r.toLowerCase()&&("RasterFunctionVariable"===e[r].type?(e[r]=t.rasterFunctionDefinition,e[r].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[r].type&&U(e[r].arguments,t))}function K(e){const t=(0,v.o8)(Z[e.functionName+"Function"]),r=e.functionArguments;for(const e in r)"raster"===e.toLowerCase()?(t.arguments[e]=K(r[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=Y(r[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=r[e];return t}function B(e){const t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?B(t.functionArguments):e}const Q={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function k(e,t){const r=J.has(t)?(0,O.hP)(t):null;return r&&e.push([Math.floor(r[0]-1),0,0,0],[Math.ceil(r[1]+1),0,0,0]),e}function H(e){if(null==e)return;const{fields:t}=e,r=t?.find(e=>e?.name&&"value"===e.name.toLowerCase());return r?.name}function W(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}function Y(e){const t=[],r=[];return e.forEach(e=>{t.push(e[0]),r.push((0,V.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:r}}var X=r(85675),ee=r(13868),te=r(43937);let re=class extends j.o{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,r){this.layer.version<10.3||(t[r]=e)}get bandIds(){return this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,r){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[r]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}get format(){return this.requestRawData||"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){const{layer:e}=this;return e.pixelType!==e.serviceRasterInfo.pixelType?e.pixelType:void 0}writeLercVersion(e,t,r){"lerc"===this.format&&this.layer.version>=10.5&&(t[r]=e)}get version(){const e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const r=e.definitionExpression;return t?r&&r!==t.where&&(t=t.clone(),t.where=r):r&&(t=new X.A({where:r})),t}get rasterFunction(){const e=this.layer;let{rasterFunction:t}=e;const r=e.pixelFilter,i=!e.format||e.format.includes("jpg")||e.format.includes("png");this.requestRawData||(t=this._addResampleRasterFunction(t));const s=e.multidimensionalSubset?.areaOfInterest;return s&&(t=function(e,t){return $(new _.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,s)),this.requestRawData||!i||r||"vector-field"===e.renderer?.type||(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){const t=this.layer,{rasterInfo:r,renderer:i}=t;return e=e||t.rasterFunction,i&&L(i)?$(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const r=t.convertToRFT,i=new _.A;i.functionName="Stretch";const s=Q[q.u.toJSON(e.stretchType)],n="u8",o=e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),a={StretchType:s,Statistics:o,DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(a.Min=e.outputMin),null!=e.outputMax&&(a.Max=e.outputMax),s===Q.standardDeviation?(a.NumberOfStandardDeviations=e.numberOfStandardDeviations,i.outputPixelType=n):s===Q.percentClip?(a.MinPercent=e.minPercent,a.MaxPercent=e.maxPercent,i.outputPixelType=n):s===Q.minMax?i.outputPixelType=n:s===Q.sigmoid&&(a.SigmoidStrengthLevel=e.sigmoidStrengthLevel),i.functionArguments=a,i.variableName="Raster",e.colorRamp){const s=e.colorRamp,n=new _.A;if(r)n.functionArguments={ColorRamp:(0,V.hf)(s)};else{const r=(0,V.hs)(s,!0);if(r)n.functionArguments={colorRampName:r};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){const t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,V.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=i,r?new _.A({rasterFunctionDefinition:K(n)}):n}return r?new _.A({rasterFunctionDefinition:K(i)}):i}(e,t);case"class-breaks":return function(e,t){const r=[],i=[],s=[],n=[],o=1e-4,{pixelType:a,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=H(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach((t,r)=>{const i=t.symbol?.color;let s;i?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach(o=>{null!=t.minValue&&null!=t.maxValue&&(s=o.attributes[e.field],(s>=t.minValue&&s<t.maxValue||r===e.classBreakInfos.length-1&&s>=t.minValue)&&n.push([o.attributes[p],i.r,i.g,i.b]))})});const r=a?k(n,a):n,i=new _.A;return i.functionName="Colormap",i.functionArguments={},i.functionArguments.Colormap=r,i.variableName="Raster",t.convertToRFT?new _.A({rasterFunctionDefinition:K(i)}):i}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;const a=e.symbol&&e.symbol.color;a?.a?(0===t?r.push(e.minValue,e.maxValue+o):r.push(e.minValue+o,e.maxValue+o),i.push(t),n.push([t,a.r,a.g,a.b])):s.push(e.minValue,e.maxValue)});const c=a?k(n,a):n,m=new _.A;m.functionName="Remap",m.functionArguments={InputRanges:r,OutputValues:i,NoDataRanges:s},m.variableName="Raster";const d=new _.A;return d.functionName="Colormap",d.functionArguments={Colormap:c,Raster:m},t.convertToRFT?new _.A({rasterFunctionDefinition:K(d)}):d}(e,t);case"unique-value":return function(e,t){const r=[],{pixelType:i,rasterAttributeTable:s}=t,n=null==s?null:s.features,o=H(s),a=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(o){const t=new Map;l.forEach(e=>{const r=e.value,i=W(e);null!=r&&i?.a&&t.set(String(r),i.toRgb())});const i=e.field;i&&n.forEach(({attributes:e})=>{const s=String(e[i]),n=e[o],l=t.get(s);l?r.push([n,...l]):a&&r.push([n,...a])})}}else for(let e=0;e<l.length;e++){const t=l[e],i=W(t),s=+t.value;if(i?.a){if(isNaN(s))return null;r.push([s,i.r,i.g,i.b])}}const u=i?k(r,i):r,p=new _.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new _.A({rasterFunctionDefinition:K(p)}):p}(e,t);case"raster-colormap":return function(e,t){const r=e.extractColormap();if(!r||0===r.length)return null;const{pixelType:i}=t,s=i?k(r,i):r,n=new _.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new _.A({rasterFunctionDefinition:K(n)}):n}(e,t);case"vector-field":return function(e,t){const r=new _.A;r.functionName="VectorFieldRenderer";const{dataType:i,bandNames:s}=t,n="vector-uv"===i;let o,a;if(2===s?.length){const e=s.map(e=>e.toLowerCase());o=e.indexOf("magnitude"),a=e.indexOf("direction")}-1!==o&&null!==o||(o=0,a=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new E.A,c={magnitudeBandID:o,directionBandID:a,isUVComponents:n,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:G[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};r.functionArguments=c;const m=K(r);return t.convertToRFT?_.A.fromJSON({rasterFunctionDefinition:m}):r}(e,t);case"raster-shaded-relief":return function(e,t){const r=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new _.A;const i=new _.A;i.functionName="Hillshade";const s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,o={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(o.Azimuth=e.azimuth,o.Altitude=e.altitude),3===n&&(o.PSPower=e.pixelSizePower,o.PSZFactor=e.pixelSizeFactor),i.functionArguments=o,i.variableName="Raster",e.colorRamp&&(i.functionName="ShadedRelief",r?o.ColorRamp=(0,V.hf)(e.colorRamp):o.Colormap=(0,V.R8)(e.colorRamp)),r?new _.A({rasterFunctionDefinition:K(i)}):i}(e,t);case"flow":throw new Error("Unsupported rendering rule.")}}(i,{rasterAttributeTable:r.attributeTable,pixelType:r.pixelType,dataType:r.dataType,bandNames:r.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:r.bandCount}),e):e}_addResampleRasterFunction(e){if("vector-field"!==this.layer.renderer?.type||"Resample"===e?.functionName)return e;const t="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10,r=this.layer.serviceRasterInfo.pixelSize;let i=new _.A({functionName:"Resample",functionArguments:{ResamplingType:t,InputCellSize:r}});return i=e?.rasterFunctionDefinition?new _.A({rasterFunctionDefinition:K(i)}):i,$(i,e)}};(0,s.Cg)([(0,c.MZ)()],re.prototype,"layer",void 0),(0,s.Cg)([(0,c.MZ)()],re.prototype,"requestRawData",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"adjustAspectRatio",null),(0,s.Cg)([(0,te.K)("adjustAspectRatio")],re.prototype,"writeAdjustAspectRatio",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"bandIds",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"compression",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"compressionQuality",null),(0,s.Cg)([(0,te.K)("compressionQuality")],re.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"compressionTolerance",null),(0,s.Cg)([(0,te.K)("compressionTolerance")],re.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"format",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:{reader:ee.SZ.read},write:{writer:ee.SZ.write}}})],re.prototype,"interpolation",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"noData",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:{reader:ee.hm.read},write:{writer:ee.hm.write}}})],re.prototype,"noDataInterpretation",null),(0,s.Cg)([(0,c.MZ)({type:ee.e8.apiValues,json:{read:ee.e8.read,write:ee.e8.write}})],re.prototype,"pixelType",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"lercVersion",void 0),(0,s.Cg)([(0,te.K)("lercVersion")],re.prototype,"writeLercVersion",null),(0,s.Cg)([(0,c.MZ)({type:Number})],re.prototype,"version",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],re.prototype,"mosaicRule",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0,name:"renderingRule"}})],re.prototype,"rasterFunction",null),re=(0,s.Cg)([(0,c.$K)("esri.layers.support.ExportImageServiceParameters")],re);var ie=r(20437),se=r(95466),ne=r(33446),oe=r(43577),ae=r(14140),le=r(74797),ue=r(87186),pe=r(12711),ce=r(85676),me=r(94359),de=r(65864),he=r(17136),ye=r(2272),ge=r(86738);let fe=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0}})],fe.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],fe.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],fe.prototype,"objectIds",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],fe.prototype,"where",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],fe.prototype,"maxCount",void 0),fe=(0,s.Cg)([(0,c.$K)("esri.rest.support.FindImagesParameters")],fe);const we=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"make",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"model",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"focalLength",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"rows",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],r.prototype,"cols",void 0),r=(0,s.Cg)([(0,c.$K)("esri.rest.support.CameraInfoMixin")],r),r};let ve=class extends(we(j.o)){constructor(){super(...arguments),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ve.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"uri",write:!0}})],ve.prototype,"referenceUri",void 0),(0,s.Cg)([(0,c.MZ)({type:Date,json:{write:!0}})],ve.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,te.K)("acquisitionDate")],ve.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ve.prototype,"cameraID",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],ve.prototype,"center",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],ve.prototype,"perspectiveCenter",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ve.prototype,"orientation",void 0),ve=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageInspectionInfo")],ve);const Re=ve;let Ce=class extends j.o{constructor(e){super(e),this.images=null}};var be;(0,s.Cg)([(0,c.MZ)({type:[Re],json:{write:!0}})],Ce.prototype,"images",void 0),Ce=(0,s.Cg)([(0,c.$K)("esri.rest.support.FindImagesResult")],Ce);let Se=be=class extends j.o{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new be((0,v.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s.Cg)([(0,c.MZ)({type:[String],json:{name:"angleName",write:!0}})],Se.prototype,"angleNames",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],Se.prototype,"point",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{write:!0}})],Se.prototype,"spatialReference",void 0),(0,s.Cg)([(0,c.MZ)({type:b.jz,json:{write:!0}})],Se.prototype,"rasterId",void 0),Se=be=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAngleParameters")],Se);let Ie=class extends j.o{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"north",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"up",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{write:!0}})],Ie.prototype,"spatialReference",void 0),Ie=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAngleResult")],Ie);var Me=r(86211),xe=r(60408),Ae=r(50498),Fe=r(66552);const De=new Fe.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let Ne=class extends j.o{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};var Te;(0,s.Cg)([(0,c.MZ)()],Ne.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{read:De.read,write:De.write}})],Ne.prototype,"measureOperation",void 0),(0,s.Cg)([(0,c.MZ)({type:X.A,json:{write:!0}})],Ne.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],Ne.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Ne.prototype,"raster",void 0),Ne=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureParameters")],Ne);let Pe=Te=class extends Ne{constructor(e){super(e),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new Te((0,v.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"fromGeometry",read:!0,write:!0}})],Pe.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],Pe.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{write:De.write}})],Pe.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],Pe.prototype,"is3D",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],Pe.prototype,"linearUnit",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.dk.read,write:Me.dk.write}})],Pe.prototype,"areaUnit",void 0),Pe=Te=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAreaParameters")],Pe);let je=class extends j.o{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],je.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],je.prototype,"sensorName",void 0),je=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureResult")],je);var Oe=r(64108);let Ze=class extends j.o{constructor(){super(...arguments),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,s.Cg)([(0,c.MZ)({type:String})],Ze.prototype,"unit",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0}})],Ze.prototype,"value",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],Ze.prototype,"displayValue",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0}})],Ze.prototype,"uncertainty",void 0),Ze=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureResultValue")],Ze);const _e=Ze;let Ve=class extends _e{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({json:{read:Me.dk.read,write:Me.dk.write}})],Ve.prototype,"unit",void 0),Ve=(0,s.Cg)([(0,Oe.$)("esri.rest.support.ImageMeasureResultAreaValue")],Ve);const qe=Ve;let Ee=class extends _e{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({json:{read:Me.Sk.read,write:Me.Sk.write}})],Ee.prototype,"unit",void 0),Ee=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageMeasureResultLengthValue")],Ee);const Je=Ee;let Ge=class extends je{constructor(e){super(e),this.area=null,this.perimeter=null}};(0,s.Cg)([(0,c.MZ)({type:qe,json:{read:!0,write:!0}})],Ge.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({type:Je,json:{read:!0,write:!0}})],Ge.prototype,"perimeter",void 0),Ge=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAreaResult")],Ge);let ze=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.outSpatialReference=null}};(0,s.Cg)([(0,c.MZ)({type:M.A,json:{name:"outSR",write:!0}})],ze.prototype,"outSpatialReference",void 0),ze=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageBoundaryParameters")],ze);var Le=r(36005);let $e=class extends j.o{constructor(e){super(e),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?I.A.fromJSON(e):S.A.fromJSON(e)}};var Ue;(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],$e.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"shape",write:!0}})],$e.prototype,"geometry",void 0),(0,s.Cg)([(0,Le.w)("geometry")],$e.prototype,"readGeometry",null),$e=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageBoundaryResult")],$e);let Ke=Ue=class extends Ne{constructor(e){super(e),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new Ue((0,v.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],Ke.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,te.K)("fromGeometry")],Ke.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],Ke.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{write:De.write}})],Ke.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],Ke.prototype,"is3D",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],Ke.prototype,"linearUnit",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.b$.read,write:Me.b$.write}})],Ke.prototype,"angularUnit",void 0),Ke=Ue=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageDistanceParameters")],Ke);let Be=class extends _e{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({json:{read:Me.b$.read,write:Me.b$.write}})],Be.prototype,"unit",void 0),Be=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageMeasureResultAngleValue")],Be);const Qe=Be;let ke=class extends je{constructor(e){super(e),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,s.Cg)([(0,c.MZ)({type:Je,json:{read:!0,write:!0}})],ke.prototype,"distance",void 0),(0,s.Cg)([(0,c.MZ)({type:Qe,json:{read:!0,write:!0}})],ke.prototype,"azimuthAngle",void 0),(0,s.Cg)([(0,c.MZ)({type:Qe,json:{read:!0,write:!0}})],ke.prototype,"elevationAngle",void 0),ke=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageDistanceResult")],ke);var He=r(58174),We=r(79677),Ye=r(93223);let Xe=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=JSON.stringify(e.toJSON()))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{read:de.rS,write:!0}})],Xe.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],Xe.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Xe.prototype,"objectIds",void 0),(0,s.Cg)([(0,Ye.e)(He.x,{ignoreUnknown:!1,name:"spatialRel"})],Xe.prototype,"spatialRelationship",void 0),(0,s.Cg)([(0,c.MZ)({type:We.A,json:{name:"time",write:!0}})],Xe.prototype,"timeExtent",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Xe.prototype,"where",void 0),Xe=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfoParameters")],Xe);let et=class extends(we(j.o)){constructor(){super(...arguments),this.id=null}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],et.prototype,"id",void 0),et=(0,s.Cg)([(0,c.$K)("esri.rest.support.CameraInfo")],et);const tt=et;let rt=class extends j.o{constructor(){super(...arguments),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:Date,json:{write:!0}})],rt.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,te.K)("acquisitionDate")],rt.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"cameraID",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],rt.prototype,"center",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"gps",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],rt.prototype,"orientation",void 0),rt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfo")],rt);const it=rt;let st=class extends j.o{constructor(e){super(e),this.images=null,this.cameras=null}};var nt;(0,s.Cg)([(0,c.MZ)({type:[it],json:{write:!0}})],st.prototype,"images",void 0),(0,s.Cg)([(0,c.MZ)({type:[tt],json:{write:!0}})],st.prototype,"cameras",void 0),st=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfoResult")],st);let ot=nt=class extends Ne{constructor(e){super(e),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new nt((0,v.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0}})],ot.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,te.K)("fromGeometry")],ot.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],ot.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{write:De.write}})],ot.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],ot.prototype,"operationType",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],ot.prototype,"linearUnit",void 0),ot=nt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageHeightParameters")],ot);let at=class extends je{constructor(e){super(e),this.height=null}};(0,s.Cg)([(0,c.MZ)({type:Je,json:{read:!0,write:!0}})],at.prototype,"height",void 0),at=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageHeightResult")],at);var lt,ut=r(22048);let pt=lt=class extends j.o{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=X.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=_.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[r]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,r){null!=e&&(t[r]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,r){null!=e&&(t[r]=JSON.stringify(e))}writeTimeExtent(e,t,r){if(null!=e){const i=null!=e.start?e.start.getTime():null,s=null!=e.end?e.end.getTime():null;t[r]=null!=i?null!=s?`${i},${s}`:`${i}`:null}}clone(){return new lt((0,v.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{write:!0}})],pt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],pt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:X.A,json:{write:!0}})],pt.prototype,"mosaicRule",null),(0,s.Cg)([(0,te.K)("mosaicRule")],pt.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,c.MZ)({type:_.A,json:{write:!0,name:"renderingRule"}})],pt.prototype,"rasterFunction",null),(0,s.Cg)([(0,te.K)("rasterFunction")],pt.prototype,"writeRasterFunction",null),(0,s.Cg)([(0,c.MZ)({type:[_.A],json:{write:!0,name:"renderingRules"}})],pt.prototype,"rasterFunctions",void 0),(0,s.Cg)([(0,te.K)("rasterFunctions")],pt.prototype,"writeRasterFunctions",null),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],pt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,te.K)("pixelSize")],pt.prototype,"writePixelSize",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"returnCatalogItems",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"returnPixelValues",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],pt.prototype,"maxItemCount",void 0),(0,s.Cg)([(0,c.MZ)({type:We.A,json:{write:{target:"time"}}})],pt.prototype,"timeExtent",void 0),(0,s.Cg)([(0,te.K)("timeExtent")],pt.prototype,"writeTimeExtent",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],pt.prototype,"raster",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],pt.prototype,"viewId",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"processAsMultidimensional",void 0),pt=lt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageIdentifyParameters")],pt);var ct=r(22671);let mt=class extends j.o{constructor(e){super(e),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};var dt;(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"catalogItemVisibilities",void 0),(0,s.Cg)([(0,c.MZ)({type:ct.A,json:{write:!0}})],mt.prototype,"catalogItems",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],mt.prototype,"location",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"objectId",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"processedValues",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"properties",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],mt.prototype,"value",void 0),mt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageIdentifyResult")],mt);let ht=dt=class extends j.o{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,r){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new dt({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,s.Cg)([(0,c.MZ)({type:[ge.A],json:{write:!0}})],ht.prototype,"geometries",void 0),(0,s.Cg)([(0,te.K)("geometries")],ht.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:b.jz,json:{write:!0}})],ht.prototype,"rasterId",void 0),ht=dt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePixelLocationParameters")],ht);let yt=class extends j.o{constructor(e){super(e),this.geometries=null}};var gt;(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],yt.prototype,"geometries",void 0),yt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePixelLocationResult")],yt);let ft=gt=class extends Ne{constructor(e){super(e),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=e.toJSON())}get measureOperation(){const{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new gt((0,v.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"fromGeometry",read:de.rS}})],ft.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],ft.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{read:De.read,write:De.write}})],ft.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],ft.prototype,"is3D",void 0),ft=gt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePointParameters")],ft);let wt=class extends je{constructor(e){super(e),this.point=null}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{name:"point.value",read:!0,write:!0}})],wt.prototype,"point",void 0),wt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePointResult")],wt);var vt=r(34606),Rt=r(51508);let Ct=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,r){t.geometries=e?.length?{geometryType:(0,xe.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,s.Cg)([(0,c.MZ)({types:[Ae.yR]})],Ct.prototype,"geometries",void 0),(0,s.Cg)([(0,te.K)("geometries")],Ct.prototype,"writeGeometries",null),(0,s.Cg)([(0,c.MZ)({type:[b.jz],json:{write:!0}})],Ct.prototype,"rasterIds",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{name:"outSR",write:!0}})],Ct.prototype,"outSpatialReference",void 0),Ct=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageToMapMultirayParameters")],Ct);let bt=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]={...e.toJSON(),spatialReference:void 0})}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{read:de.rS,write:!0}})],bt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],bt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],bt.prototype,"rasterId",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{name:"outSR",write:!0}})],bt.prototype,"outSpatialReference",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.DOff",write:!0}})],bt.prototype,"depthOffset",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.Adjust",write:!0}})],bt.prototype,"adjust",void 0),bt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageToMapParameters")],bt);let St=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{name:"uri",write:!0}})],St.prototype,"referenceUri",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],St.prototype,"rasterId",void 0),St=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageUrlParameters")],St);let It=class extends j.o{constructor(e){super(e),this.url=null}};(0,s.Cg)([(0,c.MZ)({json:{name:"imageURL",write:!0}})],It.prototype,"url",void 0),It=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageUrlResult")],It);const Mt=new Fe.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let xt=class extends((0,o.OU)(j.o)){constructor(){super(...arguments),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,r){e?.length&&(t.geometryType=(0,xe.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,s.Cg)([(0,c.MZ)({types:[Ae.yR]})],xt.prototype,"geometries",void 0),(0,s.Cg)([(0,te.K)("geometries")],xt.prototype,"writeGeometries",null),(0,s.Cg)([(0,c.MZ)({type:X.A,json:{write:!0}})],xt.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],xt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],xt.prototype,"constantZ",void 0),(0,s.Cg)([(0,c.MZ)({type:Mt.apiValues,json:{read:Mt.read,write:Mt.write}})],xt.prototype,"baseType",void 0),xt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolumeParameters")],xt);let At=class extends j.o{constructor(){super(...arguments),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"cut",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"fill",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"maxz",write:!0}})],At.prototype,"maxZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"minz",write:!0}})],At.prototype,"minZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"meanz",write:!0}})],At.prototype,"meanZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"cutCellCount",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"fillCellCount",void 0),At=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolume")],At);const Ft=At;let Dt=class extends j.o{constructor(e){super(e),this.volumes=[]}};(0,s.Cg)([(0,c.MZ)({type:[Ft],json:{write:!0}})],Dt.prototype,"volumes",void 0),Dt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolumeResult")],Dt);let Nt=class extends((0,o.OU)(j.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]=JSON.stringify(e))}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{read:de.rS,write:!0}})],Nt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],Nt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Nt.prototype,"rasterId",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.VisibleOnly",write:!0}})],Nt.prototype,"visibleOnly",void 0),Nt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MapToImageParameters")],Nt);let Tt=class extends j.o{constructor(e){super(e),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),ge.A.fromJSON(e)}};var Pt;(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"Shape",read:de.rS,write:!0}})],Tt.prototype,"geometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Length",write:!0}})],Tt.prototype,"length",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Area",write:!0}})],Tt.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{name:"Center",write:!0}})],Tt.prototype,"center",void 0),(0,s.Cg)([(0,Le.w)("center")],Tt.prototype,"readCenter",null),Tt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureAreaFromImageResult")],Tt);let jt=Pt=class extends j.o{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,xe.$B)(e),t[r]={...e.toJSON(),spatialReference:void 0})}clone(){const e=(0,v.o8)({geometry:this.geometry,rasterId:this.rasterId});return new Pt(e)}};(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"fromGeometry",read:de.rS,write:!0}})],jt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],jt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],jt.prototype,"rasterId",void 0),jt=Pt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureFromImageParameters")],jt);let Ot=class extends j.o{constructor(e){super(e),this.geometry=null,this.length=null}};function Zt(e){const t=e?.time;if(t&&(null!=t.start||null!=t.end)){const r=[];null!=t.start&&r.push(t.start),null==t.end||r.includes(t.end)||r.push(t.end),e.time=r.join(",")}}async function _t(e,t,r){const i=(0,b.PZ)(ut.A,t),s=(0,ye.Dl)(e),n=i.geometry?[i.geometry]:[],o=await(0,he.el)(n),a=i.toJSON();Zt(a);const l=o?.[0];null!=l&&(a.geometry=Jt(l));const u=(0,ye.lF)({...s.query,f:"json",...a});return(0,ye.jV)(u,r)}async function Vt(e,t,r){const i=(0,b.PZ)(pt,t),s=(0,ye.Dl)(e),n=i.geometry?[i.geometry]:[];return(0,he.el)(n).then(e=>{const t=i.toJSON(),n=e?.[0];null!=n&&(t.geometry=JSON.stringify(Jt(n)));const o=(0,ye.lF)({...s.query,f:"json",...t}),a=(0,ye.jV)(o,r);return(0,w.A)(s.path+"/identify",a)}).then(e=>mt.fromJSON(e.data))}async function qt(e,t,r,i){const s=(0,ye.Dl)(e),n=await(0,he.el)(r),o=t.toJSON();null!=n[0]&&(o.fromGeometry=JSON.stringify(Jt(n[0]))),null!=n[1]&&(o.toGeometry=JSON.stringify(Jt(n[1])));const a=(0,ye.lF)({...s.query,f:"json",...o}),l=(0,ye.jV)(a,i),{data:u}=await(0,w.A)(s.path+"/measure",l);return u}async function Et(e,t,r){t=(0,b.PZ)(jt,t);const i=(0,ye.Dl)(e),s=t.toJSON(),n=(0,ye.lF)({...i.query,f:"json",...s}),o=(0,ye.jV)(n,r),{data:a}=await(0,w.A)(i.path+"/measureFromImage",o);return a}function Jt(e){const t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=Gt(e.spatialReference)),t}function Gt(e){const{imageCoordinateSystem:t}=e;if(t){const{id:e,referenceServiceName:r}=t;return null!=e?r?{icsid:e,icsns:r}:{icsid:e}:{ics:t}}return e.toJSON()}function zt(e,t){if(!e.imageCoordinateSystem)return(0,x.YX)(e);const r=Gt(e),{icsid:i,icsns:s}=r;return null==i||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(r):`0:${i}`}(0,s.Cg)([(0,c.MZ)({types:Ae.yR,json:{name:"Shape",read:de.rS,write:!0}})],Ot.prototype,"geometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Length",write:!0}})],Ot.prototype,"length",void 0),Ot=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureLengthFromImageResult")],Ot);var Lt=r(82371),$t=r(20223),Ut=r(20615),Kt=r(74910),Bt=r(78286),Qt=r(99199),kt=r(61956);const Ht=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),Wt=(0,b.Qp)(b.GB,{min:0,max:255}),Yt=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new re({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(e=>"number"==typeof e))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,r){null!=e&&"lerc"!==this.format&&(t[r]=e)}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?X.A.fromJSON(t):null}get fieldsIndex(){return this.fields?new se.A(this.fields):null}set format(e){e&&Ht.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=X.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const r=e||t.mosaicRule;return r?X.A.fromJSON(r):this._isMosaicRuleSupported(t)?X.A.fromJSON(t):null}writeMosaicRule(e,t,r){const{mosaicRule:i}=this;this._isValidCustomizedMosaicRule(i)&&(t[r]=i.toJSON())}writeNoData(e,t,r){null!=e&&"number"==typeof e&&(t[r]=Wt(e))}readObjectIdField(e,t){if(!e){const r=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type);e=r?.name}return e}get parsedUrl(){return(0,C.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const r=t?.find(({name:t})=>t===e);return r?.renderer.clone()}return this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,r){const i=t?.layerDefinition?.drawingInfo?.renderer,s=(0,me.LF)(i,r);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!i.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),L(s)||l.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,r){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){const e=this.fields?.map(e=>e.clone())??[];e.push((0,le.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,le.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,le.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,le.nq)(t)));const{rasterInfo:t}=this;if(this._isVectorDataSet()){const r=t?.multidimensionalInfo?.variables[0].unit?.trim(),i=(0,le.DV)(r),s=(0,le.y6)();e.push(i,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){const r=(0,le.AL)(t.multidimensionalInfo);e.push(...r)}const r=t?.attributeTable;if(null!=r){const t=(0,le.jC)(r);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=_.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){const r=t.rasterFunctionInfos;return t.renderingRule||r?.length&&"None"!==r[0].name?this._isRFTJson(t.renderingRule)?_.A.fromJSON({rasterFunctionDefinition:t.renderingRule}):_.A.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}readSpatialReference(e,t){const r=e||t.extent.spatialReference;return r?M.A.fromJSON(r):null}writePixelType(e,t,r){null!=this.serviceRasterInfo&&this.pixelType===this.serviceRasterInfo.pixelType||(t[r]=ee.e8.toJSON(e))}readVersion(e,t){let r=t.currentVersion;return r||(r=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),r}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let r=e,{renderer:i,symbolizer:s,pixelFilter:n}=this;const{isRawData:o}=e;if(o&&"lerc"!==this.format&&(i??=(0,pe.PD)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.rasterFunction?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}),s||(this.symbolizer=new ce.A({rendererJSON:i.toJSON(),rasterInfo:this.rasterInfo}),s=this.symbolizer)),(o||!this._isPicture())&&i&&s&&!n){await this._updateSymbolizer(s,i);const{bandIds:n}=this;r=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return r}async highlightPixels(e,t){const r=e.highlightOptions.map(e=>{const t={...e},r="bandId"in t?[t.bandId??0]:[t.xBandId,t.yBandId];for(let e=0;e<r.length;e++){const t=r[e];if(null==t)return;const i=this.bandIds?.length?this.bandIds.indexOf(t):t;if(i<0||i>2)return;r[e]=i}return"bandId"in t?t.bandId=r[0]:(t.xBandId=r[0],t.yBandId=r[1]),t}).filter(e=>null!=e);if(0===r.length)return;const i=this._rasterJobHandler;i?await i.highlightPixels({...e,highlightOptions:r},t):(0,D._F)({...e,highlightOptions:r})}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new a.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,v.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,r){const i=(0,b.PZ)(xt,t).toJSON();i.geometries=JSON.stringify(i.geometries);const s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...i}),o=(0,ye.jV)(n,r),{data:a}=await(0,w.A)(`${s.path}/calculateVolume`,o);return Dt.fromJSON({volumes:a.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new a.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(Se,t),s=i.toJSON();null!=s.angleName&&(s.angleName=s.angleName.join(",")),i?.point?.spatialReference?.imageCoordinateSystem&&(s.point.spatialReference=Gt(i.point.spatialReference)),i?.spatialReference?.imageCoordinateSystem&&(s.spatialReference=zt(i.spatialReference));const n=(0,ye.Dl)(e),o=(0,ye.lF)({...n.query,f:"json",...s}),a=(0,ye.jV)(o,r),{data:l}=await(0,w.A)(`${n.path}/computeAngles`,a);return l.spatialReference=l.spatialReference?null!=l.spatialReference.geodataXform?new M.A({wkid:0,imageCoordinateSystem:l.spatialReference}):M.A.fromJSON(l.spatialReference):null,"NaN"===l.north&&(l.north=null),"NaN"===l.up&&(l.up=null),new Ie(l)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new a.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(ht,t),s=i.toJSON(),{geometries:n}=i;if(n)for(let e=0;e<n.length;e++)n[e].spatialReference?.imageCoordinateSystem&&(s.geometries.geometries[e].spatialReference=Gt(n[e].spatialReference));const o=(0,ye.Dl)(e),a=(0,ye.lF)({...o.query,f:"json",...s}),l=(0,ye.jV)(a,r),{data:u}=await(0,w.A)(`${o.path}/computePixelLocation`,l);return yt.fromJSON(u)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new a.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,r){const i=await _t(e,t,r),s=(0,ye.Dl)(e),{data:n}=await(0,w.A)(`${s.path}/computeHistograms`,i);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new a.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,r){const i=await _t(e,t,r),s=(0,ye.Dl)(e),{data:n}=await(0,w.A)(`${s.path}/computeStatisticsHistograms`,i),{statistics:o}=n;return o?.length&&o.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:o,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){const r=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?r.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?r.mensuration.supportsHeightFromBaseAndTopShadow:r.mensuration.supportsHeightFromTopAndTopShadow))throw new a.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(ot,t),s=await qt(e,i,[i.fromGeometry,i.toGeometry],r);return at.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r.mensuration.supportsAreaAndPerimeter||e.is3D&&!r.mensuration.supports3D)throw new a.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(Pe,t),s=await qt(e,i,[i.geometry],r);return Ge.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r.mensuration.supportsDistanceAndAngle||e.is3D&&!r.mensuration.supports3D)throw new a.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(Ke,t),s=await qt(e,i,[i.fromGeometry,i.toGeometry],r);return ke.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r.mensuration.supportsPointOrCentroid||e.is3D&&!r.mensuration.supports3D)throw new a.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(ft,t),s=await qt(e,i,[i.geometry],r);return wt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new a.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new a.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,r){const i=(0,b.PZ)(jt,t),s=await Et(e,i,r);return Ot.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new a.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new a.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,r){const i=(0,b.PZ)(jt,t),s=await Et(e,i,r);return Tt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return null!=t?t.get(e):void 0}getFieldDomain(e,t){const r=this.getField(e);return r?r.domain:null}async internalFetchImage(e,t,r,s={}){await this._updateCurrentRasterInfo();const{exportImageServiceParameters:n}=this;let o=!1;s.requestRawData&&(await this._initJobHandler(),n.requestRawData||"lerc"===this.format||(o=!0,n.requestRawData=!0));const a=this.getExportImageServiceParameters(e,t,r,s.timeExtent);if(o&&(n.requestRawData=!1),null==a){if(s.requestAsImageElement&&this._canRequestImageElement(this.format)){const e=document.createElement("canvas");return e.width=t,e.height=r,s.returnImageBitmap?{imageBitmap:await(0,ne.m)(e,`${i(this.parsedUrl)}/exportImage`,s.signal)}:{imageOrCanvasElement:e}}const{bandIds:n,rasterInfo:o}=this,a=(n?.length||o.bandCount)??0,l=t*r,u=o.pixelType,p=[];for(let e=0;e<a;e++)p.push(ae.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new ae.A({width:t,height:r,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}const l=!!s.requestAsImageElement&&!this.pixelFilter,u=l&&!!s.returnImageBitmap,p={imageServiceParameters:a,imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:l,returnImageBitmap:u,signal:s.signal};return this._requestArrayBuffer(p)}async fetchPixels(e,t,r,i={}){await this._initJobHandler(),i.applyRendering&&this._updateCurrentRasterInfo();const s=i.applyRendering?void 0:new re({layer:this,requestRawData:!0,interpolation:i.interpolation??"nearest",bandIds:i.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,r,i.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,i.bandIds||delete n.bandIds,delete n.compressionQuality;const o={imageServiceParameters:n,imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:i.signal},{pixelData:a}=await this._requestArrayBuffer(o);return a??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,w.A)(i(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new a.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,w.A)(i(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>ct.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){const r={...t,query:this._getQueryParams()};return async function(e,t,r){const i=(0,ye.Dl)(e),s=(0,ye.lF)({...i?.query,f:"json"}),n=(0,ye.jV)(s,r),o=`${i?.path}/${t}/info`,a=(0,w.A)(`${o}`,n),l=(0,w.A)(`${o}/keyProperties`,n),u=await Promise.allSettled([a,l]),p="fulfilled"===u[0].status?u[0].value.data:null,c="fulfilled"===u[1].status?u[1].value.data:null;let m=null;p.statistics?.length&&(m=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));const d=S.A.fromJSON(p.extent),h=Math.ceil(d.width/p.pixelSizeX-.1),y=Math.ceil(d.height/p.pixelSizeY-.1),g=d.spatialReference,f=new ge.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:g}),v=p.histograms?.length?p.histograms:null,R=new $t.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new ue.A({width:h,height:y,bandCount:p.bandCount,extent:d,spatialReference:g,pixelSize:f,pixelType:p.pixelType.toLowerCase(),statistics:m,histograms:v,keyProperties:c,storageInfo:R})}(i(this.parsedUrl),e,r)}async getCatalogItemICSInfo(e,t){const{data:r}=await(0,w.A)(i(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),s=r?.ics;if(!s)return;let n=null;try{n=(await(0,w.A)(i(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!n?.spatialReference)return{ics:s,icsToPixelTransform:null,icsExtent:null,northDirection:null};const o=this.version>=10.7?(0,w.A)(i(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},a=n.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),inSR:(0,x.YX)(a),outSR:"0:"+e},u=(0,w.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(n.xmin+n.xmax)/2,c=(n.ymax-n.ymin)/6,m=n.ymin+c,d=[];for(let e=0;e<5;e++)d.push({x:p,y:m+c*e});const h={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,x.YX)(a),outSR:"0:"+e},y=(0,w.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(h),...t}).then(e=>e.data).catch(()=>({})),g=await Promise.all([o,u,y]);let f=g[0].ipxf;if(null==f){const e=s.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const v=S.A.fromJSON(g[1]?.geometries?.[0]);v&&(v.spatialReference=new M.A({wkid:0,imageCoordinateSystem:s}));const R=g[2].geometries?g[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],C=R.length;if(C<3)return{ics:s,icsToPixelTransform:f,icsExtent:v,northDirection:null};let b=0,I=0,A=0,F=0;for(let e=0;e<C;e++)b+=R[e].x,I+=R[e].y,A+=R[e].x*R[e].x,F+=R[e].x*R[e].y;const D=(C*F-b*I)/(C*A-b*b);let N=0;const T=R[4].x>R[0].x,P=R[4].y>R[0].y;return D===1/0?N=P?90:270:0===D?N=T?0:180:D>0?N=T?180*Math.atan(D)/Math.PI:180*Math.atan(D)/Math.PI+180:D<0&&(N=P?180+180*Math.atan(D)/Math.PI:360+180*Math.atan(D)/Math.PI),{ics:s,icsToPixelTransform:f,icsExtent:v,northDirection:N}}async generateRasterInfo(e,t){e=(0,b.PZ)(_.A,e);const r={...t,query:this._getQueryParams()};if(!e||"none"===e.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(e))return this.serviceRasterInfo??(0,Lt.Tw)(i(this.parsedUrl),this.sourceJSON,r);const s=function(e){const t=JSON.stringify(e),r=t.includes('"rasterFunctionDefinition":{'),i=r?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi),s=i?.map(e=>r?e.slice(8,-18):e.slice(18,-1));return s?s.join("/"):null}(e);if(!s)throw new a.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[s])return this._functionRasterInfos[s];const n=(0,Lt.X6)(i(this.parsedUrl),e,r);this._functionRasterInfos[s]=n;try{return await n}catch(e){throw this._functionRasterInfos[s]=null,e}}getExportImageServiceParameters(e,t,r,s,n){const o=zt((e=e.clone().shiftCentralMeridian()).spatialReference,i(this.parsedUrl));n??=this.exportImageServiceParameters;const a=n.toJSON(),{bandIds:l,noData:u}=a;let{renderingRule:p}=a;const c=this.rasterFunction?.rasterFunctionDefinition,m=this.renderer?.type,d=!m||"raster-stretch"===m||"raster-colormap"===m||"unique-value"===m||"class-breaks"===m||"raster-shaded-relief"===m;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!c&&d){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){const t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;a.bandIds=void 0}else a.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(a.noData=u.join(","));const h=this._processMultidimensionalIntersection(null,s,n.mosaicRule);if(h.isOutSide)return null;a.mosaicRule=null!=h.mosaicRule?JSON.stringify(h.mosaicRule):null,s=h.timeExtent,a.renderingRule=this._getRenderingRuleString(_.A.fromJSON(p));const y={};if(null!=s){const{start:e,end:t}=s.toJSON();e&&t&&e===t?y.time=""+e:null==e&&null==t||(y.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:o,imageSR:o,size:t+","+r,...a,...y}}async getSamples(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r?.operations.supportsGetSamples)throw new a.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,v.o8)(e);const{raster:i}=this;return i&&null==e.raster&&(e.raster=i),async function(e,t,r){const i=(0,b.PZ)(vt.A,t),s=i.toJSON();Zt(s),s.outFields?.length&&(s.outFields=s.outFields.join(","));const n=await(0,he.el)(i.geometry),o=n?.[0];null!=o&&(s.geometry=Jt(o));const a=(0,ye.Dl)(e),l=(0,ye.lF)({...a.query,f:"json",...s}),u=(0,ye.jV)(l,r),{data:p}=await(0,w.A)(`${a.path}/getSamples`,u),c=p.samples.map(e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return Rt.A.fromJSON({samples:c})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new a.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,v.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=I.A.fromExtent(e.geometry));const r=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(r.isOutSide)throw new a.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=r.timeExtent,e.mosaicRule=r.mosaicRule;const{raster:i,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),i&&null==e.raster&&(e.raster=i),Vt(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new a.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(bt,t),s=i.toJSON();i.geometry.spatialReference.imageCoordinateSystem&&(s.geometry=Jt(i.geometry)),i.depthOffset&&i.adjust||delete s.options;const n=(0,ye.Dl)(e),o=(0,ye.lF)({...n.query,f:"json",...s}),a=(0,ye.jV)(o,r),{data:l}=await(0,w.A)(`${n.path}/imageToMap`,a);return(0,de.rS)(l)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new a.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(Ct,t),s=i.toJSON();i.rasterIds?.length&&(s.rasterIds=i.rasterIds.join(","));const n=(0,ye.Dl)(e),o=(0,ye.lF)({...n.query,f:"json",...s}),a=(0,ye.jV)(o,r),{data:l}=await(0,w.A)(`${n.path}/imageToMapMultiray`,a);return(0,de.rS)(l)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new a.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(Nt,t),s=i.toJSON(),n=await(0,he.el)(i.geometry),o=n?.[0];null!=o&&(s.geometry=Jt(o)),i.visibleOnly||delete s.options;const a=o?.spatialReference??i.geometry?.spatialReference;a&&(s.inSR=zt(a));const l=(0,ye.Dl)(e),u=(0,ye.lF)({...l.query,f:"json",...s}),p=(0,ye.jV)(u,r),{data:c}=await(0,w.A)(`${l.path}/mapToImage`,p);return(0,de.rS)(c)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new a.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(fe,t),s=i.toJSON(),n=await(0,he.el)([i.fromGeometry,i.toGeometry]);null!=n[0]&&(s.fromGeometry=Jt(n[0]),n[0].spatialReference&&(s.inSR=zt(n[0].spatialReference))),null!=n[1]&&(s.toGeometry=Jt(n[1])),i.objectIds?.length&&(s.objectIds=s.objectIds.join(","));const o=(0,ye.Dl)(e),a=(0,ye.lF)({...o.query,f:"json",...s}),l=(0,ye.jV)(a,r),{data:u}=await(0,w.A)(`${o.path}/find`,l);return Ce.fromJSON(u)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new a.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(St,t).toJSON(),s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...i}),o=(0,ye.jV)(n,r),{data:a}=await(0,w.A)(`${s.path}/getImageUrl`,o);return It.fromJSON(a)}(i(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new kt.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new a.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e=e??{outSpatialReference:this.spatialReference},async function(e,t,r){const i=(0,b.PZ)(ze,t),s=(0,ye.Dl)(e),n=i.toJSON();i.outSpatialReference&&(n.outSR=zt(i.outSpatialReference));const o=(0,ye.lF)({...s.query,f:"json",...n}),a=(0,ye.jV)(o,r),{data:l}=await(0,w.A)(s.path+"/queryBoundary",a);return $e.fromJSON(l)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryExtent(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Kt.L)(this.url,e,t)}async queryRasters(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));const r=await(0,Qt.s)(this.url,e,t),i=this.graphicOrigin;return r.features.forEach(e=>{e.layer=this,e.origin=i}),r}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Bt.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new a.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e=e??{where:"1=1"},async function(e,t,r){const i=(0,b.PZ)(Xe,t),s=i.toJSON();Zt(s),s.objectIds?.length&&(s.objectIds=s.objectIds.join(",")),s.geometry||s.objectIds||s.time||s.where||(s.where="1=1");const n=await(0,he.el)(i.geometry),o=n?.[0];null!=o&&(s.geometry=Jt(o));const a=o?.spatialReference??i.geometry?.spatialReference;a&&(s.inSR=zt(a));const l=(0,ye.Dl)(e),u=(0,ye.lF)({...l.query,f:"json",...s}),p=(0,ye.jV)(u,r),{data:c}=await(0,w.A)(`${l.path}/queryGPSInfo`,p);return st.fromJSON(c)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Ut.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new a.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();const{pixelSize:r,returnDomainValues:i,returnTopmostRaster:s,showNoDataRecords:n}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let o=!1,l=null,u=null;const p=le.F_.servicePixelValue.toLowerCase(),c=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(o=e.outFields.some(e=>!e.toLowerCase().startsWith(p)),this.version>=10.4)){const t=e.outFields.filter(e=>e.toLowerCase().startsWith(p)&&e.length>p.length).map(e=>{const t=e.slice(p.length+1);return[this._updateRenderingRulesFunctionName(t,c),t]});l=t.map(e=>new _.A({functionName:e[0]})),u=t.map(e=>e[1]);const{rasterFunction:r}=this;0===l.length?r?.functionName?(l.push(r),u.push(r.functionName)):l=null:r?.functionName&&!l.some(e=>e.functionName===r.functionName)&&(l.push(r),u.push(r.functionName))}const m=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:d}=this;let h=e.timeExtent||this.timeExtent;if(d){const{isOutside:t,intersection:r}=(0,A.Rp)(d,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new a.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=r?.timeExtent&&(h=r.timeExtent)}const y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,h);let g=e.geometry;this.version<10.91&&"extent"===g?.type&&(g=I.A.fromExtent(g));const f=this._getQueryParams({geometry:g,timeExtent:h,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:l,pixelSize:r,returnCatalogItems:o,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete f.f;const w=new pt(f);try{await this._generateRasterInfo(this.rasterFunction);const r=await Vt(this.url,w,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,a=null!=r.value&&r.value.toLowerCase().includes("nodata"),l=o&&!m&&r?.catalogItems?.features.length&&(n||!a),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,A.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:h,multidimensionalSubset:this.multidimensionalSubset}):null;if(!l)return this._processVisibleRastersResponse(r,{returnDomainValues:i,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p});const c=this.objectIdField||"ObjectId",d=r.catalogItems?.features??[],g=d.map(e=>e.attributes?.[c]),f=new kt.A({objectIds:g,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),v=await this.queryRasters(f);return v?.features?.length&&v.features.forEach(t=>{d.forEach(r=>{r.attributes[c]===t.attributes[c]&&t.geometry&&(r.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(r.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(r,{returnDomainValues:i,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new a.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){const r=(0,w.A)(i(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),s=(0,w.A)(i(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),n=await Promise.all([r,s]);return n[0]&&n[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:n[0]||null,histograms:n[1]||null}}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,A.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e),this.rasterInfo||(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,r=null!=this.serviceRasterInfo?Promise.resolve(this.serviceRasterInfo):(0,Lt.Tw)(i(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,Lt.E9)(e,t),e)),s=this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):null,n=this._getRasterFunctionInfos();return Promise.all([r,s,n]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),l.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,R.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);const{serviceRasterInfo:t}=this;null!=t.multidimensionalInfo&&this._updateMultidimensionalDefinition(t)})}_combineMosaicRuleWithTimeExtent(e,t){const r=this.timeInfo,{multidimensionalInfo:i}=this.serviceRasterInfo;if(null==e||null==i||null==t||null==r?.startField)return e;const{startField:s}=r,n=i.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==n),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const o=e.multidimensionalDefinition.filter(e=>e.dimensionName===n),a=null!=t.start?t.start.getTime():null,l=null!=t.end?t.end.getTime():null,u=null==a||null==l||a===l,p=u?[a||l]:[[a,l]],c=this.version>=10.8;if(o.length)o.forEach(e=>{e.dimensionName===n&&(c?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!c){const t=e.multidimensionalDefinition.filter(e=>null!=e.variableName&&null==e.dimensionName);t.length?t.forEach(e=>{e.dimensionName=n,e.isSlice=u,e.values=p}):e.multidimensionalDefinition.push(new P.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new a.A("imagery-layer:query-rasters","query operation is not supported on the input image service");const r=null!=e?(0,b.PZ)(kt.A,e):this.createQuery();return t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:r,requestOptions:t}}_isSupportedRenderer(e){const{rasterInfo:t,rasterFunction:r}=this;return"unique-value"===e.type&&this._hasRasterFunction(r)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,pe.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){const{data:r,ssl:s}=await(0,w.A)(i(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=r,this.sourceJSON=t,s&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new a.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;const t=this._isMosaicDataset(e),r=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||r}_isVectorFieldResampleFunction(e){if(null==e)return!1;const{functionName:t,functionArguments:r}=e,i="resample"===t?.toLowerCase(),s=r?.ResampleType||r?.resampleType;return i&&(7===s||10===s)}_isPicture(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}_configRenderer(e){const t=this._isPicture(),{rasterInfo:r}=this;if(!t&&!this.pixelFilter||this._isVectorDataSet()){const t=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,i=(0,pe.I8)({variableName:t,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&r.bandCount>=3){const e=i?.bandIds??(0,pe.ci)(r);!e||3===r.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}e||(e=i?.renderer??(0,pe.PD)(r,{bandIds:this.bandIds,variableName:this.rasterFunction?null:t}));const s=(0,pe.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=r):this.symbolizer=new ce.A({rendererJSON:s,rasterInfo:r}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null!=e.pixelBlock?e.pixelBlock.clone():null}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:r}=this;return{raster:t,viewId:r,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,r){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,F.D)(e,t,r)}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;if(this.loaded)return t;if(t&&this.version>=10.3){if(1===t.length&&"none"===t[0].name.toLowerCase())return t;const r=await(0,w.A)(i(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e});return r.data?.rasterFunctionInfos}return null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:r,returnImageBitmap:s,signal:n}=e;if(r&&this._canRequestImageElement(t.format)){const r=`${i(this.parsedUrl)}/exportImage`,{data:o}=await(0,w.A)(r,{responseType:s?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:n});return o instanceof Blob?{imageBitmap:await(0,ne.m)(o,r,n),params:t}:{imageOrCanvasElement:o,params:t}}const o=this._initJobHandler(),l=(0,w.A)(i(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:n}),u=(await Promise.all([l,o]))[0].data,p=t.format||"jpgpng";let c=p;if("bsq"!==c&&"bip"!==c&&(c=(0,F.g)(u)),!c)throw new a.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(u)));const m={signal:n},d="gif"===p||"bmp"===p||p.includes("png")&&("png"===c||"jpg"===c)?(0,F.D)(u,{useCanvas:!0,...t},m):this._decodePixelBlock(u,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:p},m);return{pixelData:{pixelBlock:await d,extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,A.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new X.A;const e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};const r=e.value,{templateRRFunctionNames:i,showNoDataRecords:s,returnDomainValues:n,templateFields:o}=t,a=e.processedValues;let l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[];const p=this.objectIdField||"ObjectId",c="string"==typeof r&&r.toLowerCase().includes("nodata"),m=[];if(r&&!l&&(!c||s)){const e={};e[p]=0,u=[r],l=[new f.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,le.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,o),c&&!s&&(l=[]);const{itemPixelValue:d,servicePixelValue:h}=le.F_,y=this.rasterFields.some(e=>e.name===d),g=this.graphicOrigin;for(let e=0;e<l.length;e++){const t=l[e];if(null!=r){const n=u[e],o=this.rasterFunction&&a&&a.length>0&&i&&i.length>0&&i.includes(this.rasterFunction.functionName)?a[i.indexOf(this.rasterFunction.functionName)]:r;if("nodata"===n.toLowerCase()&&!s)continue;y&&(t.attributes[d]=n),t.attributes[h]=o,this._updateFeatureWithMagDirValues(t,n);const l=this.fields&&this.fields.length>0;let p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:r:o;this.rasterFunction||(p=l?n:r),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,t.origin=g,n&&this._updateFeatureWithDomainValues(t),i&&a&&i.length===a.length)for(let e=0;e<i.length;e++){const r=`${le.F_.servicePixelValue}.${i[e]}`;t.attributes[r]=a[e]}m.push(l[e])}return m}_processMultidimensionalIntersection(e,t,r){const{multidimensionalSubset:i}=this;if(!i)return{isOutSide:!1,timeExtent:t,mosaicRule:r=this._combineMosaicRuleWithTimeExtent(r,t)};if(i){const{isOutside:r,intersection:s}=(0,A.Rp)(i,{geometry:e,timeExtent:t});if(r)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(r=this._combineMosaicRuleWithTimeExtent(r,t),r?.multidimensionalDefinition){const{isOutside:e}=(0,A.Rp)(i,{multidimensionalDefinition:r.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:r}}_updateFeatureWithRasterAttributeTableValues(e,t){const r=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==r)return;const{features:i,fields:s}=r,n=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!n)return;const o=i.filter(e=>e.attributes[n]===(null!=t?parseInt(t,10):null));o&&o[0]&&s.forEach(t=>{const r=le.ER+t.name;e.attributes[r]=o[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;const r=t.split(/,\s*/).map(e=>parseFloat(e)),i=r.map(e=>[e]),s=r.map(e=>({minValue:e,maxValue:e,noDataValue:null})),n=new ae.A({height:1,width:1,pixelType:"f32",pixels:i,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new S.A(0,0,0,0,this.spatialReference)});const o="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,N.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[le.F_.magnitude]=o[0],e.attributes[le.F_.direction]=o[1]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter(e=>"coded-value"===e.domain?.type);null!=t&&t.forEach(t=>{const r=e.attributes[t.name];if(null!=r){const i=t.domain.codedValues.find(e=>e.code===r);i&&(e.attributes[t.name]=i.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const r=this.fieldsIndex;null!=r&&e.forEach(e=>{if(e?.attributes)for(const i of t){const t=r.get(i)?.name;t&&t!==i&&(e.attributes[i]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const r=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(r)?t.get(r):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){const{raster:t,mosaicRule:r,rasterFunction:i}=this;i&&null==e.rasterFunction&&(e.rasterFunction=i),r&&null==e.mosaicRule&&(e.mosaicRule=r),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){const t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){const{raster:t,mosaicRule:r}=this;r&&null==e.mosaicRule&&(e.mosaicRule=r),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:r,maxRecordCount:i}=e,s=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,o=!(!e.spatialReference&&!e.extent?.spatialReference),a=t.includes("edit"),l=t.includes("mensuration")&&o,u=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),p=l&&u.includes("basic"),c=this._isMosaicDataset(e)&&t.includes("catalog"),m=t.includes("download"),d=r>=10.7&&n||r>=11.4&&(n||l&&u.includes("3d")),h=c&&e.fields&&e.fields.length>0,y=h&&e.supportsAdvancedQueries?e.advancedQueryCapabilities:void 0;return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsImageToMap:r>=11.2&&c,supportsImageToMapMultiray:r>=11.2&&c,supportsMapToImage:r>=11.2&&c,supportsFindImages:r>=11.2&&c,supportsGetImageUrl:r>=11.3&&m,supportsMeasure:l,supportsMeasureFromImage:r>=11.2,supportsDownload:m,supportsQuery:h,supportsGetSamples:r>=10.2&&s,supportsProject:r>=10.3&&s,supportsComputeStatisticsHistograms:r>=10.4&&s,supportsQueryBoundary:r>=10.6&&s,supportsCalculateVolume:d,supportsComputePixelLocation:r>=10.7&&c,supportsComputeAngles:r>=10.91,supportsQueryGPSInfo:r>=11.2&&c,supportsAdd:a,supportsDelete:a,supportsEditing:a,supportsUpdate:a,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:i,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,supportsStatistics:!!y?.supportsStatistics,supportsOrderBy:!!y?.supportsOrderBy,supportsDistinct:!!y?.supportsDistinct,supportsPagination:!!y?.supportsPagination,supportsPaginationOnAggregatedQueries:!!y?.supportsPaginationOnAggregatedQueries,supportsStandardizedQueriesOnly:!!y?.useStandardizedQueries,supportsPercentileStatistics:!!y?.supportsPercentileStatistics,supportsCentroid:!!y?.supportsReturningGeometryCentroid,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!!y?.supportsQueryWithDistance,supportsExtent:!!y?.supportsReturningQueryExtent,supportsGeometryProperties:!!y?.supportsReturningGeometryProperties,supportsHavingClause:!!y?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:y?.supportsSqlExpression??!!y,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!y?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:p,supportsAreaAndPerimeter:p,supportsPointOrCentroid:p,supportsHeightFromBaseAndTop:l&&u.includes("base-top height"),supportsHeightFromBaseAndTopShadow:l&&u.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:l&&u.includes("top-top shadow height"),supports3D:l&&u.includes("3d")}}}};function i(e){return e?.path??""}return(0,s.Cg)([(0,c.MZ)({clonable:!1})],r.prototype,"_functionRasterInfos",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"_serviceSupportsMosaicRule",void 0),(0,s.Cg)([(0,Le.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],r.prototype,"readServiceSupportsMosaicRule",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"_rasterFunctionNamesIndex",null),(0,s.Cg)([(0,c.MZ)()],r.prototype,"adjustAspectRatio",void 0),(0,s.Cg)([(0,c.MZ)({type:[b.jz],json:{write:!0}})],r.prototype,"bandIds",void 0),(0,s.Cg)([(0,Le.w)("bandIds")],r.prototype,"readBandIds",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],r.prototype,"capabilities",void 0),(0,s.Cg)([(0,Le.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],r.prototype,"readCapabilities",null),(0,s.Cg)([(0,c.MZ)({type:Number})],r.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,te.K)("compressionQuality")],r.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,c.MZ)({type:Number})],r.prototype,"compressionTolerance",void 0),(0,s.Cg)([(0,te.K)("compressionTolerance")],r.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,dependsOn:["_serviceSupportsMosaicRule"]})],r.prototype,"defaultMosaicRule",void 0),(0,s.Cg)([(0,Le.w)("defaultMosaicRule",["defaultMosaicMethod"])],r.prototype,"readDefaultMosaicRule",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],r.prototype,"definitionExpression",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,constructOnly:!0})],r.prototype,"exportImageServiceParameters",void 0),(0,s.Cg)([(0,c.MZ)()],r.prototype,"rasterInfo",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:[ie.A]})],r.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"fieldsIndex",null),(0,s.Cg)([(0,c.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],r.prototype,"format",null),(0,s.Cg)([(0,Le.w)("service","format",["serviceDataType"])],r.prototype,"readFormat",null),(0,s.Cg)([(0,c.MZ)({type:S.A})],r.prototype,"fullExtent",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"hasMultidimensions",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"maxImageHeight"}}})],r.prototype,"imageMaxHeight",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"maxImageWidth"}}})],r.prototype,"imageMaxWidth",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{type:ee.SZ.jsonValues,read:ee.SZ.read,write:ee.SZ.write}})],r.prototype,"interpolation",void 0),(0,s.Cg)([(0,c.MZ)()],r.prototype,"minScale",void 0),(0,s.Cg)([(0,Le.w)("service","minScale")],r.prototype,"readMinScale",null),(0,s.Cg)([(0,c.MZ)()],r.prototype,"maxScale",void 0),(0,s.Cg)([(0,Le.w)("service","maxScale")],r.prototype,"readMaxScale",null),(0,s.Cg)([(0,c.MZ)({type:X.A})],r.prototype,"mosaicRule",null),(0,s.Cg)([(0,Le.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],r.prototype,"readMosaicRule",null),(0,s.Cg)([(0,te.K)("mosaicRule")],r.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,c.MZ)()],r.prototype,"multidimensionalInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:oe.A,json:{write:!0}})],r.prototype,"multidimensionalSubset",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:b.jz}})],r.prototype,"noData",void 0),(0,s.Cg)([(0,te.K)("noData")],r.prototype,"writeNoData",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{type:ee.hm.jsonValues,read:ee.hm.read,write:ee.hm.write}})],r.prototype,"noDataInterpretation",void 0),(0,s.Cg)([(0,c.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],r.prototype,"objectIdField",void 0),(0,s.Cg)([(0,Le.w)("objectIdField")],r.prototype,"readObjectIdField",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"geometryType",void 0),(0,s.Cg)([(0,c.MZ)({})],r.prototype,"typeIdField",void 0),(0,s.Cg)([(0,c.MZ)({})],r.prototype,"types",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,s.Cg)([(0,c.MZ)({type:Function})],r.prototype,"pixelFilter",void 0),(0,s.Cg)([(0,c.MZ)()],r.prototype,"raster",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"sourceType",void 0),(0,s.Cg)([(0,Le.w)("sourceType",["serviceSourceType","fields"])],r.prototype,"readSourceType",null),(0,s.Cg)([(0,c.MZ)()],r.prototype,"viewId",void 0),(0,s.Cg)([(0,c.MZ)({types:me.uy})],r.prototype,"renderer",null),(0,s.Cg)([(0,c.MZ)({types:me.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:me.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],r.prototype,"internalRenderer",null),(0,s.Cg)([(0,Le.w)("internalRenderer")],r.prototype,"readRenderer",null),(0,s.Cg)([(0,te.K)("internalRenderer")],r.prototype,"writeRenderer",null),(0,s.Cg)([(0,c.MZ)({clonable:!1})],r.prototype,"symbolizer",void 0),(0,s.Cg)([(0,c.MZ)(T.ke)],r.prototype,"opacity",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"rasterFields",null),(0,s.Cg)([(0,c.MZ)({constructOnly:!0})],r.prototype,"rasterFunctionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:_.A,json:{name:"renderingRule"}})],r.prototype,"rasterFunction",null),(0,s.Cg)([(0,Le.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],r.prototype,"readRasterFunction",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"serviceDataType",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:M.A})],r.prototype,"spatialReference",void 0),(0,s.Cg)([(0,Le.w)("spatialReference",["spatialReference","extent"])],r.prototype,"readSpatialReference",null),(0,s.Cg)([(0,c.MZ)({type:ee.e8.apiValues,json:{read:ee.e8.read,type:ee.e8.jsonValues}})],r.prototype,"pixelType",void 0),(0,s.Cg)([(0,te.K)("pixelType")],r.prototype,"writePixelType",null),(0,s.Cg)([(0,c.MZ)({constructOnly:!0,type:ue.A})],r.prototype,"serviceRasterInfo",void 0),(0,s.Cg)([(0,c.MZ)()],r.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,c.MZ)(T.OZ)],r.prototype,"url",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,s.Cg)([(0,Le.w)("version",["currentVersion","fields","timeInfo"])],r.prototype,"readVersion",null),r=(0,s.Cg)([(0,c.$K)("esri.layers.mixins.ArcGISImageService")],r),r};var Xt=r(18768),er=r(63074),tr=r(69208),rr=r(16131),ir=r(8303),sr=r(72545),nr=r(56551),or=r(54310),ar=r(25036),lr=r(82935),ur=r(91908),pr=r(24212),cr=r(30291),mr=r(88625);let dr=class extends((0,er.dM)((0,lr.e)((0,ar.j)((0,rr.q)((0,ir.A)((0,nr.H)(Yt((0,sr.G)((0,or.J)((0,tr.d)((0,Xt.b)((0,u.M)((0,o.OU)(g.A)))))))))))))){constructor(...e){super(...e),this.graphicOrigin=new y(this),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.type="imagery",this._debouncedSaveOperations=(0,p.sg)(async(e,t,i)=>{const{save:s,saveAs:n}=await r.e(9838).then(r.bind(r,59838));switch(e){case 0:return s(this,t);case 1:return n(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(p.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,t,r){const i="vector-field"===this.renderer?.type;t[r]=i?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const{rasterFields:t}=this,r=new Set,i=le.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=le.Oo.toLowerCase(),o=`${le.F_.servicePixelValue.toLowerCase()}.`;for(const e of t){const t=e.name.toLowerCase();t===i||t.startsWith(o)||s&&t.startsWith(n)||r.add(e.name)}const a=(0,cr.tn)({fields:t,title:this.title},{...e,visibleFieldNames:r}),{rasterInfo:l}=this;return a?.fieldInfos&&l&&(0,le.h4)(a.fieldInfos,l),a}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,ur.D)(this,e)}write(e,t){if(!this._isPreviewLayer)return super.write(e,t);if(t?.messages){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new a.A("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}_validateElevationInfo(e){(0,pr.XF)(l.A.getLogger(this),(0,pr.$7)("Imagery layers","relative-to-scene",e)),(0,pr.XF)(l.A.getLogger(this),(0,pr.tW)("Imagery layers",e))}};(0,s.Cg)([(0,c.MZ)({type:mr.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],dr.prototype,"elevationInfo",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1})],dr.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,c.MZ)(T.fV)],dr.prototype,"legendEnabled",null),(0,s.Cg)([(0,c.MZ)({type:["show","hide"]})],dr.prototype,"listMode",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],dr.prototype,"isReference",void 0),(0,s.Cg)([(0,c.MZ)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],dr.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,te.K)("web-map","operationalLayerType")],dr.prototype,"writeOperationalLayerType",null),(0,s.Cg)([(0,c.MZ)(T.M6)],dr.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,c.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],dr.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],dr.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,c.MZ)(T.PY)],dr.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],dr.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],dr.prototype,"_isPreviewLayer",null),dr=(0,s.Cg)([(0,c.$K)("esri.layers.ImageryLayer")],dr);const hr=dr},91908(e,t,r){r.d(t,{D:()=>n});var i=r(60694);const s=[];function n(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},92722(e,t,r){r.d(t,{A:()=>s});var i=r(69397);class s{constructor(e=[],t=[],r=!1,i=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=i}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:i}){return new s(e,t,r||!1,i||!1)}static fromRect([e,t,r,i]){const n=r-e,o=i-t;return new s([5],[e,t,n,0,0,o,-n,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,i.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const r of this.lengths){if(r<3)continue;const{stride:i}=this;let s=this.coords[i*t],n=this.coords[i*t+1];for(let o=1;o<r;o+=1){const r=i*(t+o),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-s)*(l+n),s=a,n=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:r}=this;for(const i of this.lengths){for(let s=0;s<i;s++){const i=r*(t+s);e(this.coords[i],this.coords[i+1])}t+=i}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let i=0;const{stride:s}=this;for(const e of r){for(let r=1;r<e;r++){const e=s*(i+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}i+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:r,size:i}=this,n=this.coords.slice(0,i*r);return e?(e.set(n),new s(t,e)):new s(t,Array.from(n),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const r=new Array(t*e);for(let t=0,i=0;t<r.length;t+=e)r[i++]=this.coords[t],r[i++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}},99199(e,t,r){r.d(t,{e:()=>l,s:()=>a});var i=r(2272),s=r(80893),n=r(22671),o=r(61956);async function a(e,t,r,i){const s=await l(e,t,r,i);return n.A.fromJSON(s)}function l(e,t,r,n){const a=(0,i.Dl)(e),l={...r},u=o.A.from(t);return(0,s.eW)(a,u,u.sourceSpatialReference,l,n)}}}]);
|