@arcgis/core 5.0.0-next.7 → 5.0.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/applications/KnowledgeStudio/resourceSerializationUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{8f56f298e7c1a283f407.js → 0030d68d9edf42b4af57.js} +1 -1
- package/assets/esri/core/workers/chunks/01d460398f3ba6767a37.js +1 -0
- package/assets/esri/core/workers/chunks/{17d5f8dba6ebb1184506.js → 042cd64e1f4eb326c30f.js} +1 -1
- package/assets/esri/core/workers/chunks/05429f9d292a7a714309.js +316 -0
- package/assets/esri/core/workers/chunks/{66db5f77e09d25e33951.js → 063905fbf9a0c6586949.js} +1 -1
- package/assets/esri/core/workers/chunks/{9486032af3e934d85582.js → 0a5d74414dd02a2fb8e1.js} +1 -1
- package/assets/esri/core/workers/chunks/{3815ffa13e7b439bca6e.js → 0d5212f59e9b62c16164.js} +1 -1
- package/assets/esri/core/workers/chunks/{73487b9d85e726e9c012.js → 1257c37bf04d39c27b62.js} +1 -1
- package/assets/esri/core/workers/chunks/{398f356b11fd33bd3831.js → 136a7d781dad05a7463b.js} +1 -1
- package/assets/esri/core/workers/chunks/{1e4e7aedf4b779241a02.js → 15c7c10ff9ac63f0e792.js} +1 -1
- package/assets/esri/core/workers/chunks/17784cf16fa91504b9ea.js +1 -0
- package/assets/esri/core/workers/chunks/{a395373e3173e6458a56.js → 1ab37e13947d0e2e4181.js} +1 -1
- package/assets/esri/core/workers/chunks/{f03635ddf56e2ef90e4c.js → 1d06fcae4c2f02fb1c95.js} +1 -1
- package/assets/esri/core/workers/chunks/{020c8913d8e35d63080b.js → 1d15d1b20dc10fde6def.js} +1 -1
- package/assets/esri/core/workers/chunks/1dfca37f95f2b968aa54.js +1 -0
- package/assets/esri/core/workers/chunks/20975513be0a3a1da286.js +1 -0
- package/assets/esri/core/workers/chunks/{285762ff92d5388b6024.js → 2166238a7ad63a2d43c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{620a94b54be3ed78350d.js → 22ca80f491e070b2a5e7.js} +1 -1
- package/assets/esri/core/workers/chunks/{88074189fa10c335370b.js → 24cd7b84cd0f3de4bff2.js} +1 -1
- package/assets/esri/core/workers/chunks/{9fac5a12e878cd745354.js → 28020063048e644f17a5.js} +1 -1
- package/assets/esri/core/workers/chunks/{95c594a87b732f5c4979.js → 2a8dff8521e1e6a10cf6.js} +1 -1
- package/assets/esri/core/workers/chunks/{7e43c105f1cfc44b7bd0.js → 2fa01bd3f3608616fd7f.js} +1 -1
- package/assets/esri/core/workers/chunks/30e220f4f843681a4cdd.js +1 -0
- package/assets/esri/core/workers/chunks/{5d3661d1fe46dd29aae9.js → 311b564e44ae637c960d.js} +1 -1
- package/assets/esri/core/workers/chunks/31c7ce65e16f7858400f.js +1 -0
- package/assets/esri/core/workers/chunks/{8a314b3790313e6dc5db.js → 333b62dad3811cff0f14.js} +1 -1
- package/assets/esri/core/workers/chunks/36d067c8d03d7a894f5f.js +1 -0
- package/assets/esri/core/workers/chunks/{e31192ae920e3e19b6aa.js → 37c1f155da14de91565a.js} +1 -1
- package/assets/esri/core/workers/chunks/{aa54b6f2aba6952af149.js → 38cc18fd93c18815ded0.js} +1 -1
- package/assets/esri/core/workers/chunks/{c55c096669677321a227.js → 38cd3648932bf2534b0f.js} +1 -1
- package/assets/esri/core/workers/chunks/{ac26e3e77df4302f47a2.js → 3afb83f5de033dda89ec.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5e47eea8720ba84665b.js → 3c07aa2015ab1dff5f7b.js} +1 -1
- package/assets/esri/core/workers/chunks/{e9311386f58f3cb95c22.js → 42a1e71d09e8583a7327.js} +1 -1
- package/assets/esri/core/workers/chunks/443dfe7029ec208f670c.js +1 -0
- package/assets/esri/core/workers/chunks/{b75930d60449eceb0f1c.js → 4baf6f6e7ddedb25f806.js} +1 -1
- package/assets/esri/core/workers/chunks/{bb5484b5eeacc9ad2ceb.js → 4d0cbf9584446f411a37.js} +1 -1
- package/assets/esri/core/workers/chunks/{17103e6542aae53c7301.js → 4e3e27673d0671fc2b58.js} +1 -1
- package/assets/esri/core/workers/chunks/{5fc7b61f467f1d60a284.js → 51ab2acac4ecc1ca9c34.js} +1 -1
- package/assets/esri/core/workers/chunks/{fc4417d1260b717a9385.js → 52282f767bd0e99ddca0.js} +1 -1
- package/assets/esri/core/workers/chunks/{fc06014fb484fc8c697e.js → 53654edd766d9b4ef750.js} +1 -1
- package/assets/esri/core/workers/chunks/{90f8b4bda28af43ea019.js → 538f509d7fc8337d37ac.js} +1 -1
- package/assets/esri/core/workers/chunks/{ed8a85efbd90241512bb.js → 588533c3abe876f20f62.js} +1 -1
- package/assets/esri/core/workers/chunks/{c8733cd621105afab2ac.js → 59d3cac32ad6dad941dc.js} +1 -1
- package/assets/esri/core/workers/chunks/{72846fb9c87c6642daf0.js → 5e2ce34def5e053913b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{8c056eac35d05d9524b7.js → 5f29422a051311ef9b3c.js} +1 -1
- package/assets/esri/core/workers/chunks/5f402b3c00bc4afc77b2.js +1 -0
- package/assets/esri/core/workers/chunks/{ff35a077ac6776469805.js → 61d970ed75c2c358b1e9.js} +1 -1
- package/assets/esri/core/workers/chunks/{7a6a96edc892d7060b7d.js → 629127877042ad784ad2.js} +1 -1
- package/assets/esri/core/workers/chunks/{fd2efd1d1cf9d95a87e6.js → 63a6f3e70d2b6ea57e40.js} +1 -1
- package/assets/esri/core/workers/chunks/{90b2b43b8b54c9a1ec35.js → 664ae441617afe4b17ec.js} +1 -1
- package/assets/esri/core/workers/chunks/{c4e4da69969499a89a2c.js → 695cdef5057e5461078a.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c5a7249a311070d8f43.js → 6af18d7a0d314d7c1756.js} +1 -1
- package/assets/esri/core/workers/chunks/{f35aaa04cca676c2d3f8.js → 6b59f94040c7d2f6728a.js} +1 -1
- package/assets/esri/core/workers/chunks/{811d4c46c75cf6a63e78.js → 6bb7dbc46787b8e34bd9.js} +1 -1
- package/assets/esri/core/workers/chunks/6d9f2b113d6bde936a04.js +1 -0
- package/assets/esri/core/workers/chunks/{5132ca68e8c7af111a47.js → 6e22b02a9715c10578d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{cd1930f08e1fc8b30b14.js → 6ee2f0f708494102a493.js} +1 -1
- package/assets/esri/core/workers/chunks/{f0e0a63962784acb4ba1.js → 6f0aec7428021e440ac9.js} +1 -1
- package/assets/esri/core/workers/chunks/{deb2854bb7d082a26f52.js → 7005d956c990a04ee8b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{a3991ae8caa713d4ddcd.js → 731f7b552dde0fb325cd.js} +1 -1
- package/assets/esri/core/workers/chunks/{464d42bebb365287808d.js → 773f2c6c9d38db76dfed.js} +1 -1
- package/assets/esri/core/workers/chunks/{3f3d492f1093b7832aab.js → 7803495f8862d9025bcd.js} +1 -1
- package/assets/esri/core/workers/chunks/78694ad8229347903f41.js +1 -0
- package/assets/esri/core/workers/chunks/7e4c14d4502e3f06d94b.js +1 -0
- package/assets/esri/core/workers/chunks/{7544316a75dbd981aea6.js → 86cb097deec50b0da3f3.js} +1 -1
- package/assets/esri/core/workers/chunks/8a40ed2ee4b032822c30.js +1 -0
- package/assets/esri/core/workers/chunks/{09de8be660174a229efb.js → 8cbb28476151a37ae958.js} +1 -1
- package/assets/esri/core/workers/chunks/{62a49cfd9a2508950e9f.js → 8fedfd33c37172dba6bf.js} +1 -1
- package/assets/esri/core/workers/chunks/90cbd627d4113db3b686.js +1 -0
- package/assets/esri/core/workers/chunks/91aa1157da32f650983b.js +1 -0
- package/assets/esri/core/workers/chunks/{e7638b9ab6674bc8a18f.js → 91dfd29e2dba200eab09.js} +1 -1
- package/assets/esri/core/workers/chunks/{794748fd1edc29a621cd.js → 9698f36c143953a975d4.js} +1 -1
- package/assets/esri/core/workers/chunks/98584902c9db6faa3e4d.js +1 -0
- package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +1 -0
- package/assets/esri/core/workers/chunks/{6f4bd0ee85e7e5a74340.js → a31635a6366347dcef0f.js} +1 -1
- package/assets/esri/core/workers/chunks/a6ee40dfc471d6612f3c.js +1 -0
- package/assets/esri/core/workers/chunks/{ccc0da0e01f023c8aa1f.js → a876d6159ca120c1567e.js} +1 -1
- package/assets/esri/core/workers/chunks/{a4db5c9a90107e097df8.js → af47272aaaef0ea57e71.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1fe816b6990918c13c7.js → afc13d5b842275db7dbc.js} +1 -1
- package/assets/esri/core/workers/chunks/aff8e40a641c6822af1d.js +1 -0
- package/assets/esri/core/workers/chunks/{22d6b8102e75bdef204c.js → b0365cbc3d2a41969e3b.js} +1 -1
- package/assets/esri/core/workers/chunks/{79968c183135281d2a6f.js → b3613a38178cad2ebc82.js} +1 -1
- package/assets/esri/core/workers/chunks/b548910e820d731ffe8a.js +1 -0
- package/assets/esri/core/workers/chunks/{5bd36dbf46c25bd961c8.js → b708792c84620b73c847.js} +1 -1
- package/assets/esri/core/workers/chunks/c29486c4eeb3e72effff.js +1 -0
- package/assets/esri/core/workers/chunks/{2b94623cabc6ae0f86ce.js → c37f7756d48ff9af2656.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c52999a6392370844a6.js → c4090a60d149a5962179.js} +1 -1
- package/assets/esri/core/workers/chunks/{73c1d43070b4fe1e5c1e.js → c8e686efe344a33a0258.js} +1 -1
- package/assets/esri/core/workers/chunks/{6bb5158de43c4b59107f.js → c9b16fd41cd59d452522.js} +1 -1
- package/assets/esri/core/workers/chunks/ce98416437cc1a89d8ea.js +1 -0
- package/assets/esri/core/workers/chunks/{279366e6b743f9680603.js → cfff044859e6e6dcc75d.js} +1 -1
- package/assets/esri/core/workers/chunks/d07f911d40bf05fc0306.js +1 -0
- package/assets/esri/core/workers/chunks/{8833c3d168951be4bf20.js → d0d79dd3e88eecf5c314.js} +1 -1
- package/assets/esri/core/workers/chunks/{76ae1702fecc7ad7017c.js → d1e97cce5047f1791e22.js} +1 -1
- package/assets/esri/core/workers/chunks/{17acde0245ecd956306c.js → d233cc33497a663450f9.js} +1 -1
- package/assets/esri/core/workers/chunks/{36fe6b8228e622407ec2.js → d8793eead02491136841.js} +1 -1
- package/assets/esri/core/workers/chunks/{dedc4583b5f32a278124.js → d88f2fe680b8d5603ef8.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d599008e1ea42321b37.js → da24ad57747714ac5eda.js} +1 -1
- package/assets/esri/core/workers/chunks/{facb3886714222772ab2.js → ddfd01bb9ba8577c3ffc.js} +1 -1
- package/assets/esri/core/workers/chunks/{50d9f69d5255af4b29bb.js → df5afa06c6deb6b40109.js} +1 -1
- package/assets/esri/core/workers/chunks/e25c4b4a03270d48f408.js +1 -0
- package/assets/esri/core/workers/chunks/e3294318daf1192b8319.js +1 -0
- package/assets/esri/core/workers/chunks/{da573ecc68e6aa8f6da9.js → e767f83f9e2de6650f80.js} +1 -1
- package/assets/esri/core/workers/chunks/e9d4cae2144974489d6e.js +1 -0
- package/assets/esri/core/workers/chunks/{91df8638b8b904e6d8c5.js → ead8d0cbcebd12dbfad7.js} +1 -1
- package/assets/esri/core/workers/chunks/{f9324e88c359c03f35aa.js → eb9c166db0db6fa60e95.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ffd4710d168c2fcfd96.js → ebf23b46db56aaa88841.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc241c7735e4efba734a.js → f34e3fa0c5b28531e289.js} +1 -1
- package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +1 -0
- package/assets/esri/core/workers/chunks/{d97fadbc69e055d183a0.js → f77f4bd6a577b92cf66f.js} +1 -1
- package/assets/esri/core/workers/chunks/{16d66770ef841564ee3f.js → f89c90f98c85667b0ebc.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c4227b0ea21a5e429ab.js → fb192de7e4fa152342bb.js} +1 -1
- package/assets/esri/core/workers/chunks/fbd8d2f61f8a15bcf3db.js +1 -0
- package/assets/esri/core/workers/chunks/{2f78861afe0e9037dd8d.js → fe49321dca22dc60d105.js} +1 -1
- package/assets/esri/core/workers/chunks/{fe77ae6cf232a7a3298e.js → fef45bc59c71f88c60b5.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/config.js +1 -1
- package/core/QueueProcessor.js +1 -1
- package/core/SetUtils.js +1 -1
- package/core/has.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/identity/Credential.js +1 -1
- package/identity/IdentityManager.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +67 -27
- package/kernel.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/support/fieldConfigUtils.js +1 -1
- package/layers/support/rasterDatasets/pixelReader.js +1 -1
- package/layers/support/source/DataLayerSource.js +1 -1
- package/package.json +3 -3
- package/popup/FieldInfo.js +1 -1
- package/processRequest.js +5 -0
- package/request.js +1 -1
- package/requestConfig.js +5 -0
- package/requestQueue.js +5 -0
- package/rest/query/executeForCount.js +1 -1
- package/rest/query/executeForExtent.js +1 -1
- package/rest/query/executeForIds.js +1 -1
- package/rest/query/executeQueryJSON.js +1 -1
- package/rest/query/executeQueryPBF.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/support/BaseImageMeasureResultValue.js +5 -0
- package/rest/support/ImageAreaResult.js +1 -1
- package/rest/support/ImageDistanceResult.js +1 -1
- package/rest/support/ImageHeightResult.js +1 -1
- package/rest/support/ImageMeasureResultAngleValue.js +5 -0
- package/rest/support/ImageMeasureResultAreaValue.js +5 -0
- package/rest/support/ImageMeasureResultLengthValue.js +5 -0
- package/rest/support/ImageWithType.js +5 -0
- package/rest/support/imageMeasureUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/schema/SourceSchema.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/strategies/AFeatureLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/{3d/support/ImageWithType.js → 2d/layers/features/sources/strategies/constants.js} +1 -1
- package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/volumeMeasurementErrors.js +1 -1
- package/views/3d/glTF/DefaultLoadingContext.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
- package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
- package/views/3d/layers/ElevationLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/graphics/FeatureGraphics3DGraphicsPipeline.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
- package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
- package/views/3d/layers/graphics/pipeline/fetching/Tile3DFetcher.js +1 -1
- package/views/3d/layers/graphics/wosrLoader.js +1 -1
- package/views/3d/layers/i3s/I3SDataRequester.js +5 -0
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/support/FeatureTile.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
- package/views/3d/layers/support/MediaLayerInteractionReshapeOptions.js +5 -0
- package/views/3d/layers/support/SampledGeometryMaxDistanceRatio.js +5 -0
- package/views/3d/layers/support/featureTileQuery3D.js +1 -1
- package/views/3d/layers/support/fetchTile.js +1 -1
- package/views/3d/support/ResourceController.js +1 -1
- package/views/3d/support/SharedSymbolResources.js +1 -1
- package/views/3d/support/StreamTextureCollection.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
- package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +6 -0
- package/views/SceneView.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
- package/views/draw/MultipointDrawAction.js +1 -1
- package/views/draw/PointDrawAction.js +1 -1
- package/views/draw/PolygonDrawAction.js +1 -1
- package/views/draw/PolylineDrawAction.js +1 -1
- package/views/draw/SegmentDrawAction.js +1 -1
- package/views/draw/input/CursorUpdateEvents.js +5 -0
- package/views/draw/input/DrawCompleteEvent.js +5 -0
- package/views/draw/input/VertexAddEvent.js +5 -0
- package/views/draw/input/VertexRemoveEvent.js +5 -0
- package/views/draw/input/VertexUpdateEvent.js +5 -0
- package/views/interactive/editGeometry/CheckpointingEditGeometryOperations.js +5 -0
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/interactive/editGeometry/operations/ReplayableAppendVertex.js +5 -0
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTilesSimple.js +1 -1
- package/webscene/spec-certification/api.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/CoordinateConversion.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicZoomManager.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicMeshManager.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicTileNode.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicTilePyramid.js +1 -1
- package/widgets/PanoramicViewer/support/getVisibleTiles.js +5 -0
- package/widgets/Sketch/CreateToolVisibilityMap.js +5 -0
- package/widgets/Sketch/SelectionToolVisibilityMap.js +5 -0
- package/widgets/Sketch/VisibleElements.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/assets/esri/core/workers/chunks/02e69f0c63d97661da60.js +0 -1
- package/assets/esri/core/workers/chunks/05eee334d58a0b9f6316.js +0 -1
- package/assets/esri/core/workers/chunks/087973e7c4fea5fcfa5e.js +0 -1
- package/assets/esri/core/workers/chunks/326a76a4e80269d4029d.js +0 -1
- package/assets/esri/core/workers/chunks/377a66034e7c1bad5599.js +0 -1
- package/assets/esri/core/workers/chunks/4442817beb7a76c95770.js +0 -1
- package/assets/esri/core/workers/chunks/459a67928bde4a62b6a4.js +0 -1
- package/assets/esri/core/workers/chunks/53bd8996e8812f1ad7b2.js +0 -1
- package/assets/esri/core/workers/chunks/557960763695abee4a83.js +0 -1
- package/assets/esri/core/workers/chunks/6201356f7f91e5c06425.js +0 -1
- package/assets/esri/core/workers/chunks/6c3b99209d542efa64d4.js +0 -1
- package/assets/esri/core/workers/chunks/7413e582bc2b16af6a0f.js +0 -1
- package/assets/esri/core/workers/chunks/7461124454bfb4fb6474.js +0 -1
- package/assets/esri/core/workers/chunks/75bf27271a31e26e1b21.js +0 -1
- package/assets/esri/core/workers/chunks/7aaaebbabee27690283c.js +0 -1
- package/assets/esri/core/workers/chunks/7c4a63aeead2505d6f02.js +0 -1
- package/assets/esri/core/workers/chunks/90250e9239c173aace88.js +0 -1
- package/assets/esri/core/workers/chunks/9786f91455350eaae493.js +0 -1
- package/assets/esri/core/workers/chunks/99859dce1925b406ccd0.js +0 -1
- package/assets/esri/core/workers/chunks/9c5cbf8810f37b1a4718.js +0 -1
- package/assets/esri/core/workers/chunks/9e8dceef4c961f56940d.js +0 -1
- package/assets/esri/core/workers/chunks/a06bac9b8f9e18874de8.js +0 -316
- package/assets/esri/core/workers/chunks/a712cdff78fc826acd8c.js +0 -1
- package/assets/esri/core/workers/chunks/d305a21666b1ed5bf33d.js +0 -1
- package/assets/esri/core/workers/chunks/d40f57f9fc47f9a9f97c.js +0 -1
- package/assets/esri/core/workers/chunks/e82f5437bd66779c6740.js +0 -1
- package/assets/esri/core/workers/chunks/f4d0ae6be1b3984228d0.js +0 -1
- package/assets/esri/core/workers/chunks/f6c8beb60f6d29945a2e.js +0 -1
- package/assets/esri/core/workers/chunks/f746e3f7ebff2bbdf333.js +0 -1
- package/views/3d/layers/i3s/I3SStreamDataController.js +0 -5
- package/views/3d/support/StreamDataLoader.js +0 -5
- package/views/3d/support/StreamDataRequester.js +0 -5
- package/views/3d/support/downloadSlots.js +0 -5
- package/views/draw/input/DrawEvents.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4526,8812],{5808:(e,t,n)=>{n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},5874:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>i,executeMany:()=>u,isSimple:()=>a,supportsCurves:()=>c});var r=n(76061);const s=new(n(98783).O);var o=n(78125);function i(e){const t=(0,o.getSpatialReference)(e);return(0,o.toGeometry)(function(e,t){return s.execute(e,t,!1,null)}((0,o.fromGeometry)(e),(0,o.fromSpatialReference)(t)),t)}function u(e){const t=e.map(o.fromGeometry),n=(0,o.getSpatialReference)(e);return function(e,t){const n=s.executeMany(new r.S(e),t,!1,null);return Array.from(n)}(t,(0,o.fromSpatialReference)(n)).map(e=>(0,o.toGeometry)(e,n))}function a(e,t){return function(e,t,n,r){return s.isSimple(e,t,n,r,null)}((0,o.fromGeometry)(e),(0,o.fromSpatialReference)((0,o.getSpatialReference)(e)),null!=t,t??null)}const c=s.supportsCurves()},7817:(e,t,n)=>{n.d(t,{e:()=>o,l:()=>u,s:()=>i});var r=n(83047),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateLength2D();if(o&&n){const t=(0,s.getSpatialReference)(e);o=(0,r.PQ)(o,t,n)}return o}const i=!0,u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},10767:(e,t,n)=>{n.d(t,{a:()=>i,e:()=>u,i:()=>c,s:()=>a});var r=n(70031),s=n(78125);const o=new r.O;function i(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function u(e,t){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const a=o.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},15227:(e,t,n)=>{n.d(t,{fz:()=>f,g7:()=>m,yv:()=>l});var r=n(76061),s=n(55537),o=n(39117),i=n(79187),u=n(1352);class a extends r.G{constructor(e,t,n,r,s,o,a){super(),this.m_currentUnionEnvelope2D=new i.Envelope2D,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=a,this.m_bufferer=new u.B(a),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=n,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=s}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const c=new class{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r,s){return this.executeManyEx(e,t,n,Number.NaN,96,r,s)}execute(e,t,n,o){Number.isFinite(n)||(0,s.a)("Invalid distance for buffer operation");const i=new r.S([e]),u=[n],a=this.executeMany(i,t,u,!1,o).next();return a||(0,s.d)("null buffer output"),a}executeManyEx(e,t,n,r,i,u,c){if(void 0!==n.find(e=>!Number.isFinite(e))&&(0,s.a)("Invalid distance for buffer operation"),u){const s=new a(e,t,n,r,i,!1,c);return(new o.L).executeMany(s,t,c,2)}return new a(e,t,n,r,i,!1,c)}};function m(e,t,n){return c.execute(e,t,n,null)}function l(e,t,n,s,o,i){const u=c.executeManyEx(new r.S(e),t,n,s,o,i,null);return Array.from(u)}function f(){return c.supportsCurves()}},16346:(e,t,n)=>{n.d(t,{d:()=>m,e:()=>a,s:()=>c});var r=n(55537),s=n(26640),o=n(83047),i=n(78125);const u=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,o,i,u){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const a=e,c=t;Number.isNaN(u)&&(u=Number.POSITIVE_INFINITY);const m=new s.D(u,n).calculate(a,c,o,i);return Number.isFinite(m)?m:Number.NaN}};function a(e,t,n={}){const{unit:r}=n;let s=u.execute((0,i.fromGeometry)(e),(0,i.fromGeometry)(t),null);if(s&&r){const t=(0,i.getSpatialReference)(e);s=(0,o.PQ)(s,t,r)}return s}const c=u.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},22802:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 7}execute(e,t,n,s){return(0,r.J)(e,t,n,2,s)}}},24988:(e,t,n)=>{n.d(t,{Hh:()=>u,fz:()=>m,g7:()=>a,s1:()=>i,zo:()=>c});var r=n(76061),s=n(83290);let o;function i(){return!!o&&(0,s.i)()}async function u(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(7444)]).then(n.bind(n,37444)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,s.l)()]);o=new e.OperatorGeodesicBuffer,t(s.p)}}function a(e,t,n,r,s){return o.execute(e,t,n,r,s,!1,null)}function c(e,t,n,s,i,u){const a=o.executeMany(new r.S(e),t,n,s,i,!1,u,null);return Array.from(a)}function m(){return o.supportsCurves()}},26640:(e,t,n)=>{n.d(t,{D:()=>x,m:()=>m,s:()=>d,w:()=>_});var r=n(31635),s=n(55537),o=n(88885),i=n(39117),u=n(83661),a=n(79187),c=n(95213);function m(){return{outPoint:new u.P,index:-1,t:Number.NaN}}function l(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function f(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function h(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function p(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function y(e,t){const n=m();h(n,e),h(e,t),h(t,n)}function _(e,t,n,r,o,u){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,i.H)(e,t.getEndXY(),0))return f(o,t.getEndXY(),-1,Number.NaN),f(u,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,i.H)(t,e.getEndXY(),0))return f(o,e.getEndXY(),-1,Number.NaN),f(u,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function d(e){const t=e.getPathCount(),n=(0,u.d)(e.getSegmentCount(),0);let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let o=r,i=e.getPathStart(s);o<t;++o,++i)n[o]=i;r=t}return(0,o.s)(e.getPointCount(),n),n}function g(e,t){return!!Number.isNaN(t)||e<=t}function P(e){const t=new o.a;return t.addEnvelope(e,!1),t}class x{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==c.P.type||t.getGeometryType()!==c.P.type)&&(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!g(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=l(new u.P,(0,u.j)(),Number.NaN),o=l(new u.P,(0,u.j)(),Number.NaN),i=this._ExecuteBruteForce(e,t,s,o);return g(i,this.m_maxDistance)?(null!==n&&h(n,s),null!==r&&h(r,o),i):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==c.P.type&&e.getGeometryType()!==c.E.type||t.getGeometryType()!==c.P.type&&t.getGeometryType()!==c.E.type||(n=!1),n){if(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=l(new u.P,(0,u.j)(),Number.NaN),s=l(new u.P,(0,u.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),o=t.getXY();return f(n,s,0,0),f(r,o,0,0),Math.sqrt(u.P.sqrDistance(s,o))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let o=this.m_maxSqrDistance,i=o,a=!1;const c=t.getPointCount(),m=new u.P;for(let e=0;e<c;++e)if(t.queryXY(e,m),i=u.P.sqrDistance(s,m),this.m_bIsNearCalc){if(i<=o)return 0}else if(!(i>o)&&(!a&&i===o||i<o)&&(o=i,f(n,s,0,0),f(r,m,e,0),a=!0,0===o))return 0;return a?Math.sqrt(o):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const o=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),c=e.getXY();if(!o&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,i.H)(t,c,0))return f(n,c,0,0),f(r,c,-1,Number.NaN),0;t.getImpl().getAccelerators();let m=this.m_maxSqrDistance,l=m,h=-1;const p=new a.Envelope2D,y=t.querySegmentIterator();let _=!1;for(;y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();e.queryEnvelope(p);const t=p.sqrDistance(c);if(t>m)continue;if(!this.m_bIsNearCalc&&_&&t===m)continue;h=e.getClosestCoordinate(c,!1);const s=e.getCoord2D(h);if(l=u.P.sqrDistance(c,s),this.m_bIsNearCalc){if(l<=m)return 0}else if(!(l>m)&&(!_||l<m)&&(m=l,f(n,c,0,0),f(r,s,y.getStartPointIndex(),h),_=!0,0===m))return 0}return _?Math.sqrt(m):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();f(n,s,0,0),f(r,s,-1,Number.NaN);const o=t.asEnvelope2D();return o.contains(s)?0:Math.sqrt(o.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,o,i){const a={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===o&&1===i){const r=Math.trunc((0,u.s)(Math.sqrt(e.getPointCount())+1,1,(0,u.i)())),o=Math.trunc((0,u.s)(Math.sqrt(t.getPointCount())+1,1,(0,u.i)()));if((r>=4||o>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,o)<=this.m_maxSqrDistance)return 0}let c=this.m_maxSqrDistance;const m=[e],l=[t],h=this.swapGeometriesIfBGtA(m,l);h&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i=(0,u.c)(o,o=i),y(n,s)),(0,r.mS)(a,(0,u.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!h),!1);const p=m[0].getImpl(),_=l[0].getImpl(),d=p.getPointCount(),g=_.getPointCount(),P=g>1;let x=!1;const v=new u.P,G=new u.P;for(let e=0;e<d;e+=o){if(p.queryXY(e,v),P){const e=this.m_env2DgeometryB.sqrDistance(v);if(this.m_bIsNearCalc){if(e>c)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(v)<=c)return 0}else if(e>=c)continue}for(let t=0;t<g;t+=i){_.queryXY(t,G);const r=u.P.sqrDistance(v,G);if(this.m_bIsNearCalc){if(r<=c)return 0}else if(!(r>c||x&&r===c)&&(!x||r<c)&&(f(n,v,e,0),f(s,G,t,0),x=!0,c=r,0===c))return x?Math.sqrt(c):Number.POSITIVE_INFINITY}}return x?Math.sqrt(c):Number.POSITIVE_INFINITY}catch(e){a.error=e,a.hasError=!0}finally{(0,r.hk)(a)}}distanceMultipointMultipath(e,t,n,r){let o=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const c=t.querySegmentIterator();c.stripAttributes();const m=new a.Envelope2D,l=new u.P;let h=this.m_maxSqrDistance;const p=e.getImpl(),y=p.getPointCount(),_=y>1;let d=!1;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();if(e.queryLooseEnvelope(m),_){const e=m.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h||d&&e===h)continue}for(let s=0;s<y;s++){if(p.queryXY(s,l),o&&0!==(0,i.H)(t,l,0))return f(n,l,-1,Number.NaN),f(r,l,s,0),0;{const e=m.sqrDistance(l);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h)continue}const u=e.getClosestCoordinate(l,!1),a=e.getCoord2D(u);l.subThis(a);const y=l.sqrLength();if(this.m_bIsNearCalc){if(y<=h)return 0}else if(!(y>h)&&(!d||y<h)&&(h=y,f(n,p.getXY(s),s,0),f(r,a,c.getStartPointIndex(),u),d=!0,0===h))return 0}o=!1}return d?Math.sqrt(h):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,P(e),r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(P(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),o=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(o,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const i={stack:[],error:void 0,hasError:!1};try{const c=[e],l=[t],f=this.swapGeometriesIfAGtB(c,l);f&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),y(n,s)),(0,r.mS)(i,(0,u.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);const g=c[0],P=l[0],x=g.querySegmentIterator();x.stripAttributes();const v=P.querySegmentIterator();if(v.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,u.s)(Math.sqrt(g.getPointCount())+1,1,(0,u.i)())),t=Math.trunc((0,u.s)(Math.sqrt(g.getPointCount())+1,1,(0,u.i)()));if(this.distanceMultipointMultipoint(g,P,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(_(g,P,x,v,e,t))return h(n,e),h(s,t),0}const G=d(g),b=[],S=new o.S,C=new a.Envelope2D,M=new a.Envelope2D,D=new a.Envelope2D;let E=this.m_maxSqrDistance,w=!0,I=!1;for(let e=0,t=G.length;e<t;++e){g.querySegment(G[e],S,!0);const t=S.get();if(t.queryEnvelope(C),!(C.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>E)){if(this.m_bIsNearCalc&&C.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=E)return 0;for(;v.nextPath();){if(this.progress_(),w)P.queryPathEnvelope(v.getPathIndex(),D),b[v.getPathIndex()]=D.clone();else if(C.sqrDistanceEnvelope(b[v.getPathIndex()],null,null)>E)continue;for(;v.hasNextSegment();){const r=v.nextSegment();if(r.queryEnvelope(M),C.sqrDistanceEnvelope(M,null,null)<=E){const o=!C.isIntersecting(M),i=[0],u=[0];let a=t.distance(r,o,i,u);if(a*=a,this.m_bIsNearCalc&&a<=this.m_maxSqrDistance)return 0;if(a<E||a===E&&G[e]<n.index){if(I=!0,p(n,t,G[e],i[0]),p(s,r,v.getStartPointIndex(),u[0]),0===a)return 0;E=a}}}}v.resetToFirstPath(),w=!1}}return I?Math.sqrt(E):Number.POSITIVE_INFINITY}catch(e){i.error=e,i.hasError=!0}finally{(0,r.hk)(i)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,u.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},27749:(e,t,n)=>{n.d(t,{a:()=>p,e:()=>h,g:()=>y,i:()=>l,l:()=>f,s:()=>m});var r=n(83047),s=n(77085),o=n(5808);let i,u,a,c,m;function l(){return!!i&&(0,s.s1)()}async function f(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(8125)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=e.toGeometry,m=(0,s.fz)()}}function h(e,t,n={}){const{curveType:m="geodesic",unit:l}=n;l&&(t=(0,r.oU)(t,l,"meters"));const f=a(e);return c((0,s.g7)(i(e),t,u(f),o.O[m]),f)}function p(e,t,n={}){const{curveType:m="geodesic",unit:l}=n;l&&(t=(0,r.oU)(t,l,"meters"));const f=e.map(i),h=a(e);return(0,s.zo)(f,t,u(h),o.O[m]).map(e=>c(e,h))}const y=Object.freeze(Object.defineProperty({__proto__:null,execute:h,executeMany:p,isLoaded:l,load:f,get supportsCurves(){return m}},Symbol.toStringTag,{value:"Module"}))},28298:(e,t,n)=>{n.d(t,{fz:()=>a,g7:()=>i,zo:()=>u});var r=n(76061),s=(n(55537),n(83661),n(88885),n(79187),n(39117));n(95213);const o=new s.L;function i(e,t,n){return o.execute(e,t,n,null)}function u(e,t){return o.executeMany(new r.S(e),t,null).next()}function a(){return o.supportsCurves()}},29821:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 6}execute(e,t,n,s){return(0,r.J)(e,t,n,16,s)}}},33708:(e,t,n)=>{n.d(t,{Sg:()=>i,fz:()=>c,g7:()=>u,zo:()=>a});var r=n(76061),s=(n(55537),n(39117));n(88885),n(95213);const o=new s.G;function i(e,t){return o.accelerateGeometry(e,t,1)}function u(e,t,n){return o.execute(e,t,n,null)}function a(e,t,n,s){const i=o.executeMany(new r.S(e),new r.S([t]),n,null,s);return Array.from(i)}function c(){return o.supportsCurves()}},35223:(e,t,n)=>{n.d(t,{Hh:()=>i,fz:()=>a,g7:()=>u,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(4167)]).then(n.bind(n,28879)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(8344)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticLength,t(r.p)}}function u(e,t,n){return s.execute(e,t,n,null)}function a(){return s.supportsCurves()}},44526:(e,t,n)=>{n.r(t),n.d(t,{area:()=>G.a,buffer:()=>M,centroid:()=>D.c,clip:()=>E.c,contains:()=>w.c,convexHull:()=>R,crosses:()=>A,cut:()=>q.c,densify:()=>z.d,difference:()=>j.d,disjoint:()=>U,distance:()=>X.d,equals:()=>k.e,executeOffset:()=>ye.r,generalize:()=>F.g,geodesicBuffer:()=>_,geodeticArea:()=>d.g,geodeticDensify:()=>g.g,geodeticLength:()=>P.g,intersection:()=>H,intersects:()=>W.i,isSelfIntersecting:()=>ge,labelPoint:()=>Q.l,length:()=>Z.l,loadAll:()=>Pe,overlaps:()=>K,proximity:()=>ee.p,relate:()=>te.r,rotate:()=>_e,simplify:()=>se,symmetricDifference:()=>oe.s,touches:()=>ae,union:()=>le,within:()=>pe});var r=n(24383),s=n(50647),o=n(4576),i=n(83047),u=n(24988),a=n(5808);let c,m,l,f,h;function p(){return!!c&&(0,u.s1)()}async function y(){if(!p()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),(0,u.Hh)()]);c=e.fromGeometry,m=e.fromSpatialReference,l=e.getSpatialReference,f=e.toPolygon,h=(0,u.fz)()}}const _=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){let{curveType:r="geodesic",maxDeviation:s=NaN,unit:o}=n;o&&(t=(0,i.oU)(t,o,"meters"),s&&(s=(0,i.oU)(s,o,"meters")));const h=l(e);return f((0,u.g7)(c(e),m(h),a.O[r],t,s),h)},executeMany:function(e,t,n={}){let{curveType:r="geodesic",maxDeviation:s=NaN,union:h=!1,unit:p}=n;p&&(t=t.map(e=>(0,i.oU)(e,p,"meters")),s&&(s=(0,i.oU)(s,p,"meters")));const y=e.map(c),_=l(e);return(0,u.zo)(y,m(_),a.O[r],t,s,h).map(e=>f(e,_)).filter(o.Ru)},isLoaded:p,load:y,get supportsCurves(){return h}},Symbol.toStringTag,{value:"Module"}));var d=n(49590),g=n(27749),P=n(62044),x=n(5874),v=n(78812),G=n(65708),b=n(15227),S=n(78125);const C=(0,b.fz)(),M=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{unit:r}=n,s=(0,S.getSpatialReference)(e);return r&&(t=(0,i.UW)(t,r,s)),(0,S.toPolygon)((0,b.g7)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(s),t),s)},executeMany:function(e,t,n={}){let{maxDeviation:r=NaN,maxVerticesInFullCircle:s=96,union:u=!1,unit:a}=n;const c=(0,S.getSpatialReference)(e);a&&(t=t.map(e=>(0,i.UW)(e,a,c)),r&&(r=(0,i.UW)(r,a,c)));const m=e.map(S.fromGeometry);return(0,b.yv)(m,(0,S.fromSpatialReference)(c),t,r,s,u).map(e=>(0,S.toPolygon)(e,c)).filter(o.Ru)},supportsCurves:C},Symbol.toStringTag,{value:"Module"}));var D=n(48265),E=n(83587),w=n(84252),I=n(91577);const N=(0,I.fz)(),R=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,I.g7)((0,S.fromGeometry)(e)),t)},executeMany:function(e,t={}){const{merge:n=!1}=t,r=e.map(S.fromGeometry),s=(0,S.getSpatialReference)(e);return(0,I.zo)(r,n).map(e=>(0,S.toGeometry)(e,s))},isConvex:function(e){return(0,I.qT)((0,S.fromGeometry)(e))},supportsCurves:N},Symbol.toStringTag,{value:"Module"})),T=new(n(29821).O),O=T.supportsCurves(),A=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return T.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return T.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:O},Symbol.toStringTag,{value:"Module"}));var q=n(68925),z=n(85503),j=n(70722);const B=new(n(39117).F),Y=B.supportsCurves(),U=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return B.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return B.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference))},supportsCurves:Y},Symbol.toStringTag,{value:"Module"}));var X=n(16346),k=n(90836),F=n(92523),L=n(33708);const V=(0,L.fz)(),H=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return(0,L.Sg)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t))},execute:function(e,t){const n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,L.g7)((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(n)),n)},executeMany:function(e,t){const n=e.map(S.fromGeometry),r=(0,S.getSpatialReference)(e);return(0,L.zo)(n,(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(r),7).map(e=>(0,S.toGeometry)(e,r)).filter(o.Ru)},supportsCurves:V},Symbol.toStringTag,{value:"Module"}));var W=n(10767),Q=n(5913),Z=n(7817);const J=new(n(85181).O),$=J.supportsCurves(),K=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return J.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return J.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:$},Symbol.toStringTag,{value:"Module"}));var ee=n(59260),te=n(65416),ne=n(81150);const re=(0,ne.fz)(),se=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ne.g7)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),!1),t)},executeMany:function(e){const t=e.map(S.fromGeometry),n=(0,S.getSpatialReference)(e);return(0,ne.zo)(t,(0,S.fromSpatialReference)(n),!1).map(e=>(0,S.toGeometry)(e,n))},isSimple:function(e){return(0,ne.Pg)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)((0,S.getSpatialReference)(e)),!1)},supportsCurves:re},Symbol.toStringTag,{value:"Module"}));var oe=n(96957);const ie=new(n(46810).O),ue=ie.supportsCurves(),ae=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return ie.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return ie.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:ue},Symbol.toStringTag,{value:"Module"}));var ce=n(28298);const me=(0,ce.fz)(),le=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t){const n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ce.g7)((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(n)),n)},executeMany:function(e){const t=e.map(S.fromGeometry),n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ce.zo)(t,(0,S.fromSpatialReference)(n)),n)},supportsCurves:me},Symbol.toStringTag,{value:"Module"})),fe=new(n(22802).O),he=fe.supportsCurves(),pe=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return fe.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return fe.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:he},Symbol.toStringTag,{value:"Module"}));var ye=n(85549);function _e(e,t,n,r){const o=(new v.default).rotate(t,n,r);return(0,s.execute)(e,o)}const de=new Set([5,6,7,10,11,12]);function ge(e){const t=new r.NonSimpleResult;return!(0,x.isSimple)(e,t)&&de.has(t.m_reason)}async function Pe(){await Promise.all([(0,d.l)(),y(),(0,g.l)(),(0,P.l)()])}},46810:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 5}execute(e,t,n,s){return(0,r.J)(e,t,n,8,s)}}},48265:(e,t,n)=>{n.d(t,{c:()=>a,e:()=>i,s:()=>u});var r=n(15546),s=n(78125);const o=new class{getOperatorType(){return 10205}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,r.c)(e)}};function i(e){const t=o.execute((0,s.fromGeometry)(e),null);return(0,s.toPoint)(t,(0,s.getSpatialReference)(e))}const u=o.supportsCurves(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},49074:(e,t,n)=>{n.d(t,{fz:()=>a,g7:()=>i,zo:()=>u});var r=n(76061),s=(n(55537),n(39117));n(83661),n(88885),n(79187),n(95213);const o=new s.K;function i(e,t,n){return o.execute(e,t,n,null)}function u(e,t,n){const s=o.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(s)}function a(){return o.supportsCurves()}},49590:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>h,i:()=>m,l:()=>l,s:()=>c});var r=n(83047),s=n(86742),o=n(5808);let i,u,a,c;function m(){return!!i&&(0,s.s1)()}async function l(){if(!m()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3169)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,m=a(e);let l=(0,s.g7)(i(e),u(m),o.O[n]);return l&&c&&(l=(0,r.oU)(l,"square-meters",c)),l}const h=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:m,load:l,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},50647:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>m,executeMany:()=>l,supportsCurves:()=>f});var r=n(4576),s=n(76061),o=n(55537);class i extends s.G{constructor(e,t,n){super(),this.m_index=-1,this.m_transformation=t.clone(),this.m_inputGeometryCursor=e}next(){let e;if(e=this.m_inputGeometryCursor.next()){(0,o.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID();const t=e.clone();return t.applyTransformation(this.m_transformation),t}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const u=new class{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new i(e,t,n)}execute(e,t,n){const r=e.clone();return r.applyTransformation(t),r}};function a(e,t){return u.execute(e,t,null)}var c=n(78125);function m(e,t){const n=(0,c.getSpatialReference)(e);return(0,c.toGeometry)(a((0,c.fromGeometry)(e),t.transform),n)}function l(e,t){const n=e.map(c.fromGeometry),o=(0,c.getSpatialReference)(e);return function(e,t){const n=u.executeMany(new s.S(e),t,null);return Array.from(n)}(n,t.transform).map(e=>(0,c.toGeometry)(e,o)).filter(r.Ru)}const f=u.supportsCurves()},59260:(e,t,n)=>{n.d(t,{a:()=>c,b:()=>m,g:()=>a,p:()=>f,s:()=>l});var r=n(36633),s=n(83047),o=n(78125),i=n(79533);const u=new r.O;function a(e,t,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:a=!0,unit:c}=n,m=u.getNearestCoordinate((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),a,r);if(c&&m.m_distance){const t=(0,o.getSpatialReference)(e);m.m_distance=(0,s.PQ)(m.m_distance,t,c)}return(0,i.C)(m,e,r)}function c(e,t,n={}){const{unit:r}=n,a=u.getNearestVertex((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY());if(r&&a.m_distance){const t=(0,o.getSpatialReference)(e);a.m_distance=(0,s.PQ)(a.m_distance,t,r)}return(0,i.C)(a,e)}function m(e,t,n,r,a={}){const{unit:c}=a,m=(0,o.getSpatialReference)(e);return c&&n&&(n=(0,s.UW)(n,c,m)),u.getNearestVertices((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),n,r).map(t=>(c&&t.m_distance&&(t.m_distance=(0,s.PQ)(t.m_distance,m,c)),(0,i.C)(t,e)))}const l=u.supportsCurves(),f=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:a,getNearestVertex:c,getNearestVertices:m,supportsCurves:l},Symbol.toStringTag,{value:"Module"}))},62044:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>h,i:()=>m,l:()=>l,s:()=>c});var r=n(83047),s=n(35223),o=n(5808);let i,u,a,c;function m(){return!!i&&(0,s.s1)()}async function l(){if(!m()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3169)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,m=a(e);let l=(0,s.g7)(i(e),u(m),o.O[n]);return l&&c&&(l=(0,r.oU)(l,"meters",c)),l}const h=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:m,load:l,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},65416:(e,t,n)=>{n.d(t,{a:()=>i,e:()=>u,i:()=>a,r:()=>m,s:()=>c});var r=n(39117),s=n(78125);const o=new class{supportsCurves(){return!0}getOperatorType(){return 1}execute(e,t,n,s,o){return(0,r.aF)(e,t,n,s,o)}isValidDE9IM(e){return 0===(0,r.aG)(e)}accelerateGeometry(e,t,n){return(0,r.aH)(e,t,n)}canAccelerateGeometry(e){return(0,r.aI)(e)}};function i(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function u(e,t,n){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),n,null)}function a(e){return o.isValidDE9IM(e)}const c=o.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,isValidDE9IM:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},65708:(e,t,n)=>{n.d(t,{a:()=>u,e:()=>o,s:()=>i});var r=n(83047),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateArea2D();if(o&&n){const t=(0,s.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const i=(0,r.B5)(t);i!==n&&(i?o=(0,r.oU)(o,i,n):(o=Math.sqrt(o),o*=(0,r.GA)(t),o**=2,o=(0,r.oU)(o,"square-meters",n)))}return o}const i=!0,u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},66070:(e,t,n)=>{n.d(t,{g7:()=>_,zo:()=>d});var r=n(76061),s=n(95213),o=n(55537),i=n(88885),u=n(83661);const a=1.4142135623730951,c=.017453292519943295,m=256,l=1024;class f{static construct(e,t,n){const r=new f;return r.x=e.x,r.y=e.y,r.m_next=-1,r.m_prev=-1,r.z=t,r.m=n,r.type=0,r}clone(){const e=new f;return e.x=this.x,e.y=this.y,e.m_next=this.m_next,e.m_prev=this.m_prev,e.z=this.z,e.m=this.m,e.type=this.type,e}asPoint2D(){return new u.P(this.x,this.y)}}class h{constructor(e){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=e}constructOffset(){const e=this.m_inputGeometry.getGeometryType();if(e===o.G.enumLine)return this.offsetLine();if(e===o.G.enumEnvelope)return this.offsetEnvelope();if((0,o.f)(e)){const e=new i.P;return e.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=e,this.constructOffset()}if(e===o.G.enumPolyline){const e=new i.P;return this.offsetMultiPath(e),e}if(e===o.G.enumPolygon){const e=new i.a;return this.offsetMultiPath(e),e}(0,o.t)("")}offsetLine(){const e=this.m_inputGeometry,t=e.getStartXY(),n=e.getEndXY(),r=new u.P;r.setSub(n,t),r.normalize(),r.leftPerpendicularThis(),r.scale(this.m_distance),t.addThis(r),n.addThis(r);const s=e.clone();return s.setStartXY(t),s.setEndXY(n),s}offsetEnvelope(){const e=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const t=new i.a;return t.addEnvelope(e,!1),this.m_inputGeometry=t,this.constructOffset()}const t=e.clone();return t.inflateCoords(this.m_distance,this.m_distance),t}progress(){}static buildPoint(e,t,n,r){r.x=e.x+t*Math.cos(n),r.y=e.y+t*Math.sin(n),r.type=e.type,r.z=e.z,r.m=e.m,r.m_next=-1,r.m_prev=-1}addPoint(e){this.m_offsetPts.push(e.clone()),this.m_offsetPtCount++}addPointEx(e,t){if(0===this.m_offsetPtCount)return void this.addPoint(e);const n=this.m_srcPtCount,r=this.m_srcPts[0===t?n-1:t-1],s=this.m_srcPts[t],o=h.dotSign(r,s,this.m_offsetPts[this.m_offsetPtCount-1],e);if(o>0)this.addPoint(e);else if(o<0)if(h.dotSign(r,s,s,this.m_offsetPts[this.m_offsetPtCount-1])>0){const s=new f;let o;o=0===t?n-2:1===t?n-1:t-2;const i=this.m_srcPts[o],a=Math.atan2(r.y-i.y,r.x-i.x);if(h.buildPoint(r,this.m_distance,a-u.o,s),this.m_offsetPts[this.m_offsetPtCount-1]=s,1===this.m_joins||2===this.m_joins){s.x=.5*(s.x+r.x),s.y=.5*(s.y+r.y),this.addPoint(s),h.buildPoint(r,this.m_distance,this.m_a1+u.o,s);const e=s.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=m,this.addPoint(e),this.addPoint(s)}else h.buildPoint(r,this.m_distance,this.m_a1+u.o,s),s.type|=m,this.addPoint(s);this.addPointEx(e,t)}else{const e=new f;if(h.buildPoint(s,this.m_distance,this.m_a1+u.o,e),this.addPoint(e),1===this.m_joins||2===this.m_joins){e.x=.5*(e.x+s.x),e.y=.5*(e.y+s.y),this.addPoint(e),h.buildPoint(s,this.m_distance,this.m_a2-u.o,e);const t=e.clone();t.x=.5*(t.x+s.x),t.y=.5*(t.y+s.y),t.type|=m,this.addPoint(t),this.addPoint(e)}else h.buildPoint(s,this.m_distance,this.m_a2-u.o,e),e.type|=m,this.addPoint(e)}}buildOffset(){const e=new f,t=this.m_srcPtCount;this.m_offsetPtCount=0;const n=.5*this.m_tolerance;let r=0,s=0;for(let o=0;o<t;o++){const i=this.m_srcPts[o],f=0===o?this.m_srcPts[t-1]:this.m_srcPts[o-1],p=o===t-1?this.m_srcPts[0]:this.m_srcPts[o+1];let y,_,d=0;{const e=f.x-i.x,t=f.y-i.y,n=p.x-i.x,a=p.y-i.y;y=Math.atan2(t,e),_=Math.atan2(a,n),this.m_a1=y,this.m_a2=_,0===o&&(r=y,s=_),d=u.P.orientationRobust(i.asPoint2D(),f.asPoint2D(),p.asPoint2D())}const g=_;if(_<y&&(_+=u.p),d*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){h.buildPoint(i,this.m_distance,y+u.o,e),this.addPoint(e);const t=.001;e.x=i.x+(e.x-i.x)*t,e.y=i.y+(e.y-i.y)*t,this.addPoint(e),h.buildPoint(i,this.m_distance,_-u.o,e);const n=e.clone();n.x=i.x+(n.x-i.x)*t,n.y=i.y+(n.y-i.y)*t,n.type|=m,this.addPoint(n),this.addPoint(e)}else{const t=.5*(_-y),n=0===t?this.m_distance:this.m_distance/Math.abs(Math.sin(t));h.buildPoint(i,n,.5*(y+_),e),this.addPointEx(e,o)}else{if(512&i.type){const t=1-n/Math.abs(this.m_distance);let r=1,s=this.m_distance<0?-Math.PI:Math.PI;if(t>-1&&t<1){let e=2*Math.acos(t);e<c&&(e=c),r=Math.trunc(Math.PI/e+1.5),r>1&&(s/=r)}r<=1&&(r=2,s/=2);let a=y+u.o;h.buildPoint(i,this.m_distance,a,e),0===o&&(e.type|=l),this.addPointEx(e,o);const m=this.m_distance/Math.cos(s/2);for(a+=s/2,h.buildPoint(i,m,a,e),e.type|=l,this.addPoint(e);--r>0;)a+=s,h.buildPoint(i,m,a,e),e.type|=l,this.addPoint(e);h.buildPoint(i,this.m_distance,_-u.o,e),e.type|=l,this.addPoint(e);continue}if(1!==this.m_joins){if(0===this.m_joins){const t=1-n/Math.abs(this.m_distance);let r=1,s=_-u.o-(y+u.o);if(t>-1&&t<1){let e=2*Math.acos(t);e<c&&(e=c),r=Math.trunc(Math.abs(s)/e+1.5),r>1&&(s/=r)}const a=this.m_distance/Math.cos(.5*s);let m=y+u.o+.5*s;for(h.buildPoint(i,a,m,e),this.addPointEx(e,o);--r>0;)m+=s,h.buildPoint(i,a,m,e),this.addPoint(e);continue}if(2===this.m_joins){const t=f.x-i.x,n=f.y-i.y,r=p.x-i.x,s=p.y-i.y,c=(t*r+n*s)/Math.sqrt(t*t+n*n)/Math.sqrt(r*r+s*s);if(c>1-1e-8){h.buildPoint(i,a*this.m_distance,_-.25*Math.PI,e),this.addPointEx(e,o),h.buildPoint(i,a*this.m_distance,_+.25*Math.PI,e),this.addPoint(e);continue}const m=Math.abs(this.m_distance/Math.sin(.5*Math.acos(c))),l=Math.abs(this.m_miterLimit*this.m_distance);if(m>l){const t=.5*(_-y),n=this.m_distance/Math.abs(Math.sin(t));h.buildPoint(i,n,.5*(y+_),e);const r=u.P.construct(e.x,e.y),s=u.P.construct(i.x,i.y),a=new u.P;a.setSub(r,s);const c=new u.P;c.setScaleAdd(l/a.length(),a,s);const f=Math.sqrt(m*m-this.m_distance*this.m_distance),p=(m-l)*Math.abs(this.m_distance)/f;this.m_distance>0?a.leftPerpendicularThis():a.rightPerpendicularThis(),a.scale(p/a.length());const d=new u.P;d.setAdd(c,a);const g=new u.P;g.setSub(c,a),e.x=g.x,e.y=g.y,this.addPointEx(e,o),e.x=d.x,e.y=d.y,this.addPoint(e);continue}const d=.5*(_-y),g=this.m_distance/Math.abs(Math.sin(d));h.buildPoint(i,g,.5*(y+_),e),this.addPointEx(e,o);continue}{let t;if(_=g,this.m_distance>0?(_>y&&(_-=u.p),t=y-_<u.o):(_<y&&(_+=u.p),t=_-y<u.o),t){const t=this.m_distance*a;let n;n=t<0?y+.25*Math.PI:y+3*Math.PI*.25,h.buildPoint(i,t,n,e),this.addPointEx(e,o),n=t<0?_-.25*Math.PI:_-3*Math.PI*.25,h.buildPoint(i,t,n,e),this.addPoint(e)}else{const t=.5*(_-y),n=this.m_distance/Math.abs(Math.sin(t));_<y&&(_+=u.p),h.buildPoint(i,n,(y+_)/2,e),this.addPointEx(e,o)}}}else h.buildPoint(i,this.m_distance,y+u.o,e),this.addPointEx(e,o),h.buildPoint(i,this.m_distance,_-u.o,e),this.addPoint(e)}}return this.m_a1=r,this.m_a2=s,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let e=!1;for(let e=0;e<this.m_offsetPtCount;e++){const t=this.m_offsetPts[e];t.m_next=e+1,t.m_prev=e-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let t=0;for(let n=0;n<this.m_offsetPtCount;n++)if(this.m_offsetPts[t].type&m){const n=this.deleteClosedSeg(t);if(-1===n){e=!0;break}t=n}else t=this.m_offsetPts[t].m_next;return!e&&(this.compressOffsetArray(t),!0)}deleteClosedSeg(e){const t=this.m_offsetPtCount-1;let n,r,s=e;for(let o=1;o<=t-2;o++){s=this.m_offsetPts[s].m_next,n=s,r=e;for(let e=1;e<=o;e++){if(r=this.m_offsetPts[r].m_prev,0===(this.m_offsetPts[r].type&m)&&0===(this.m_offsetPts[n].type&m)){const e=this.handleClosedIntersection(r,n);if(-1!==e)return e}n=this.m_offsetPts[n].m_prev}}return-1}handleClosedIntersection(e,t){const n=this.m_offsetPts[this.m_offsetPts[e].m_prev],r=this.m_offsetPts[e],s=this.m_offsetPts[this.m_offsetPts[t].m_prev],o=this.m_offsetPts[t];if(!this.sectGraphicRect(n,r,s,o))return-1;const i={pt:new f,bAtExistingPt:!1};if(((r.x-n.x)*(o.y-s.y)-(r.y-n.y)*(o.x-s.x))*this.m_distance<0&&this.findIntersection(n,r,s,o,i)&&!i.bAtExistingPt){const u=1e-8,a=Math.sqrt((r.x-n.x)*(r.x-n.x)+(r.y-n.y)*(r.y-n.y)),c=(r.x-n.x)/a,m=(r.y-n.y)/a,l=Math.sqrt((o.x-s.x)*(o.x-s.x)+(o.y-s.y)*(o.y-s.y)),f=(o.x-s.x)/l,h=(o.y-s.y)/l;let p=!1;const y=i.pt.clone();y.x+=(c+f)*u,y.y+=(m+h)*u;let _=s,d=i.pt,g=this.m_offsetPts[e].m_prev;for(;d.y>y.y!=_.y>y.y&&y.x<(_.x-d.x)*(y.y-d.y)/(_.y-d.y)+d.x&&(p=!p),_=d,g=this.m_offsetPts[g].m_next,g!==t;)d=this.m_offsetPts[g];if(p)return-1;const P=this.m_offsetPts[e].m_prev;return i.pt.type=r.type,i.pt.m_next=t,i.pt.m_prev=P,this.m_offsetPts[e]=i.pt,this.m_offsetPts[t].m_prev=e,t}return-1}sectGraphicRect(e,t,n,r){return Math.max(e.x,t.x)>=Math.min(n.x,r.x)&&Math.max(n.x,r.x)>=Math.min(e.x,t.x)&&Math.max(e.y,t.y)>=Math.min(n.y,r.y)&&Math.max(n.y,r.y)>=Math.min(e.y,t.y)}findIntersection(e,t,n,r,s){let o,i,u,a;return s.bAtExistingPt=!1,o=(t.y-e.y)*(r.x-n.x)-(t.x-e.x)*(r.y-n.y),i=(n.y-e.y)*(t.x-e.x)-(n.x-e.x)*(t.y-e.y),u=0===o?2:i/o,u>=0&&u<=1&&(a=u,o=(r.y-n.y)*(t.x-e.x)-(r.x-n.x)*(t.y-e.y),i=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y),u=0===o?2:i/o,u>=0&&u<=1)&&(s.pt.x=e.x+u*(t.x-e.x),s.pt.y=e.y+u*(t.y-e.y),this.m_bUseZ&&(s.pt.z=n.z+a*(r.z-n.z)),this.m_bUseM&&(s.pt.m=n.m+a*(r.m-n.m)),0!==a&&1!==a||0!==u&&1!==u||(s.bAtExistingPt=!0),!((0===a||1===a)&&u>0&&u<1||(0===u||1===u)&&a>0&&a<1))}compressOffsetArray(e){for(;this.m_offsetPts[e].m_prev<e;)e=this.m_offsetPts[e].m_prev;let t=0,n=e;do{const e=this.m_offsetPts[n].clone();this.m_offsetPts[t]=e,n=e.m_next,t++}while(n!==e);this.m_offsetPts[t]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=t+1}addPart(e,t){if(!(t<2))for(let n=0;n<t;n++){const t=this.m_offsetPts[e+n];if(n?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(t.x,t.y,t.z):this.m_resultPath.lineToCoords(t.x,t.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(t.x,t.y,t.z):this.m_resultPath.startPathCoords(t.x,t.y),this.m_bUseM){const e=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,e,0,t.m)}}}offsetMultiPath(e){const t=(0,i.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),n=t.querySegmentIterator();n.resetToFirstPath();let r=-1;for(;n.nextPath();)r++,this.offsetPath(t,r,e)}offsetPath(e,t,n){let r=e.getPathStart(t),s=e.getPathEnd(t);if(this.m_resultPath=n,e.isClosedPath(t)){const t=e.getXY(r);for(;s>r&&e.getXY(s-1).equals(t);)s--;if(s-r>=2){this.m_srcPtCount=s-r,this.m_srcPts.length=this.m_srcPtCount;for(let t=r;t<s;t++)this.progress(),this.m_srcPts[t-r]=f.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const t=e.getXY(r);for(;r<s-1&&e.getXY(r+1).equals(t);)r++;const n=e.getXY(s-1);for(;r<s-1&&e.getXY(s-2).equals(n);)s--;if(s-r>=2){this.m_srcPtCount=2*(s-r)-2,this.m_srcPts.length=this.m_srcPtCount;let n=f.construct(t,this.m_bUseZ?e.getAttributeAsDbl(1,r,0):0,this.m_bUseM?e.getAttributeAsDbl(2,r,0):0);n.type|=1536,this.m_srcPts[0]=n;let o=1,i=this.m_srcPtCount-1;for(let t=r+1;t<s-1;t++,o++,i--)this.progress(),n=f.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0),this.m_srcPts[o]=n.clone(),n.type|=l,this.m_srcPts[i]=n.clone();if(n=f.construct(e.getXY(s-1),this.m_bUseZ?e.getAttributeAsDbl(1,s-1,0):0,this.m_bUseM?e.getAttributeAsDbl(2,s-1,0):0),n.type|=512,this.m_srcPts[o]=n.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let e=-1,t=-1,n=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&l);n||(e=0);for(let r=1;r<this.m_offsetPtCount;r++){this.progress();const s=0!==(this.m_offsetPts[r].type&l);s?n||(t=r-1,t-e+1>1&&this.addPart(e,t-e+1)):n&&(e=r-1),n=s}n||(t=this.m_offsetPtCount-1,t-e+1>1&&this.addPart(e,t-e+1))}else{const e=0,t=this.m_offsetPtCount-1;t-e>=1&&this.addPart(e,t-e+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(e,t,n,r){const s=t.x-e.x,o=t.y-e.y,i=r.x-n.x,a=r.y-n.y,c=(0,u.t)(s,o,i,a);return(0,u.e)(c)}}class p extends r.G{constructor(e,t,n,r,s,o,i){super(),this.m_progressTracker=i,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distance=n,this.m_joins=r,this.m_miterLimit=s,this.m_flattenError=o}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let e;for(;e=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(e);return null}getGeometryID(){return this.m_index}offset(e){let t;return(0,o.c)(e),t=this.m_flattenError<=0?(0,s.b)(this.m_spatialReference,e,!0).total():this.m_flattenError,function(e,t,n,r,s,i){if(null===e&&(0,o.a)(""),e.getDimension()<1&&(0,o.a)(""),s>0||(0,o.a)(""),(0,o.c)(e),0===t||e.isEmpty())return e;const u=new h(i);return u.m_bUseZ=e.hasAttribute(1),u.m_bUseM=e.hasAttribute(2),u.m_inputGeometry=e,u.m_distance=t,u.m_tolerance=s,u.m_joins=n,u.m_miterLimit=r>1?r:1,u.m_progressCounter=0,u.constructOffset()}(e,this.m_distance,this.m_joins,this.m_miterLimit,t,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t,n,r,s,o,i){return new p(e,t,n,r,s,o,i)}execute(e,t,n,r,s,o,i){return new p(null,t,n,r,s,o,i).offset(e)}};function _(e,t,n,r,s,o){return y.execute(e,t,n,r,s,o,null)}function d(e,t,n,s,o,i){const u=y.executeMany(new r.S(e),t,n,s,o,i,null);return Array.from(u)}},68613:(e,t,n)=>{n.d(t,{fz:()=>y,g7:()=>h,zo:()=>p});var r=n(76061),s=n(55537),o=n(83661),i=n(88885),u=n(79187),a=n(95213),c=n(39117);function m(e,t,n,r){const s=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),c=t.getXY(),m=e.createInstance(),l=(0,a.e)(n),f=new u.Envelope2D;if(e.queryEnvelope(f),f.inflateCoords(l,l),f.contains(c)){const n=l*l;let r=!1;const u=(0,o.d)(i,!1);for(let e=0;e<i;e++){const t=s.read(2*e),o=s.read(2*e+1),i=t-c.x,a=o-c.y;i*i+a*a<=n&&(r=!0,u[e]=!0)}if(r)for(let t=0;t<i;t++)u[t]||m.addPoints(e,t,t+1);else m.addPoints(e,0,i),m.add(t)}else m.addPoints(e,0,i),m.add(t);return m}class l extends r.G{constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,s.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){const l=e.getDimension(),f=t.getDimension();if(l!==f)return l>f?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const h=new u.Envelope2D,p=new u.Envelope2D,y=new u.Envelope2D;e.queryEnvelope(h),t.queryEnvelope(p),y.setCoords({env2D:h}),y.mergeEnvelope2D(p);const _=(0,a.c)(n,y,!0),d=e.getGeometryType(),g=t.getGeometryType();return d===s.G.enumPoint&&g===s.G.enumPoint?function(e,t,n){const r=(0,a.e)(n),s=r*r,u=e.getXY(),c=t.getXY(),m=new i.M({vd:e.getDescription()});return o.P.sqrDistance(u,c)>s&&(m.add(e),m.add(t)),m}(e,t,_):d===s.G.enumPoint&&g===s.G.enumMultiPoint?m(t,e,_):d===s.G.enumMultiPoint&&g===s.G.enumPoint?m(e,t,_):(0,c.aK)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new l(e,t,n,r)}execute(e,t,n,o){const i=new r.S([e]),u=new r.S([t]),a=this.executeMany(i,u,n,o).next();return a||(0,s.d)("null output"),a}};function h(e,t,n){return f.execute(e,t,n,null)}function p(e,t,n){const s=f.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(s)}function y(){return f.supportsCurves()}},68925:(e,t,n)=>{n.d(t,{c:()=>a,e:()=>i,s:()=>u});var r=n(4576),s=n(90756),o=n(78125);function i(e,t){const n=(0,o.getSpatialReference)(e);return(0,s.g)((0,o.fromGeometry)(e),(0,o.fromPolyline)(t),(0,o.fromSpatialReference)(n)).map(e=>(0,o.toGeometry)(e,n)).filter(r.Ru)}const u=(0,s.f)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},70031:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 4}execute(e,t,n,s){return!(0,r.J)(e,t,n,4,s)}}},70722:(e,t,n)=>{n.d(t,{a:()=>i,d:()=>a,e:()=>o,s:()=>u});var r=n(49074),s=n(78125);function o(e,t){const n=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,r.g7)((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(n)),n)}function i(e,t){const n=e.map(s.fromGeometry),o=(0,s.getSpatialReference)(e);return(0,r.zo)(n,(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(o)).map(e=>(0,s.toGeometry)(e,o))}const u=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},70787:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>o,zo:()=>i});var r=n(76061);const s=new(n(64523).O);function o(e,t,n){return s.execute(e,t,n,null)}function i(e,t,n){const o=s.executeMany(new r.S(e),t,n,null);return Array.from(o)}function u(){return s.supportsCurves()}},77085:(e,t,n)=>{n.d(t,{Hh:()=>u,fz:()=>m,g7:()=>a,s1:()=>i,zo:()=>c});var r=n(76061),s=n(83290);let o;function i(){return!!o&&(0,s.i)()}async function u(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(1088)]).then(n.bind(n,31088)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,s.l)()]);o=new e.OperatorGeodeticDensifyByLength,t(s.p)}}function a(e,t,n,r){return o.execute(e,t,n,r,null)}function c(e,t,n,s){const i=o.executeMany(new r.S(e),t,n,s,null);return Array.from(i)}function m(){return o.supportsCurves()}},78812:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(83661),s=n(11878),o=n(34727);const i={uniform:0,conformal:1,rigid:2,"rigid-motion":3,general:4},u=e=>e.map(e=>new r.P(e.x,e.y));class a{constructor(){this.transform=new s.T}calculateErrors(e,t){const n=e.length,r=t.length;if(n!==r)throw new Error(`The input length (${n}) is not the same as output length (${r})`);const s=[];return{rms:this.transform.calculateErrors(n,u(e),u(t),s),errorsOut:s}}flipX(e,t){return this.transform.flipX(e,t),this}flipY(e,t){return this.transform.flipY(e,t),this}initializeFromControlPoints(e,t,n,r){const s=t.length,o=n.length;if(s!==o)throw new Error(`The input length (${s}) is not the same as output length (${o})`);this.transform.initializeFromControlPoints(i[e],s,u(t),u(n),r?.transform)}isIdentity(){return this.transform.isIdentity()}rotate(e,t,n){const s=(0,o.kU)(e);return null!=t&&null!=n?this.transform.rotateAngleAbout(s,new r.P(t,n)):this.transform.rotateAngle(s),this}scale(e,t){return this.transform.scale(e,t),this}setIdentity(){this.transform.setIdentity()}setSwapCoordinates(){return this.transform.setSwapCoordinates(),this}shear(e,t){return this.transform.shear(e,t),this}shift(e,t){return this.transform.shiftCoords(e,t),this}}},79533:(e,t,n)=>{n.d(t,{C:()=>s});var r=n(78125);function s(e,t,n=!1){const s=(0,r.toPoint)(e.m_coordinate,(0,r.getSpatialReference)(t)),o=e.m_distance,i=e.isEmpty(),u=e.m_bRightSide;return{coordinate:s,distance:o,isEmpty:i,...n&&{isRightSide:u},vertexIndex:e.m_vertexIndex}}},81150:(e,t,n)=>{n.d(t,{Pg:()=>a,fz:()=>c,g7:()=>i,zo:()=>u});var r=n(76061),s=(n(55537),n(88885),n(39117));n(95213);const o=new s.D;function i(e,t,n){return o.execute(e,t,n,null)}function u(e,t,n){const s=o.executeMany(new r.S(e),t,n,null);return Array.from(s)}function a(e,t,n){return o.isSimpleAsFeature(e,t,n,null,null)}function c(){return o.supportsCurves()}},83587:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>a,e:()=>o,s:()=>u});var r=n(96027),s=n(78125);function o(e,t){const n=(0,s.getSpatialReference)(e),o=(0,s.fromExtent)(t).asEnvelope2D();return(0,s.toGeometry)((0,r.g7)((0,s.fromGeometry)(e),o,(0,s.fromSpatialReference)(n)),n)}function i(e,t){const n=e.map(s.fromGeometry),o=(0,s.getSpatialReference)(e),i=(0,s.fromExtent)(t).asEnvelope2D();return(0,r.zo)(n,i,(0,s.fromSpatialReference)(o)).map(e=>(0,s.toGeometry)(e,o))}const u=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},84252:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>c,e:()=>u,s:()=>a});var r=n(39117),s=n(78125);const o=new r.E;function i(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function u(e,t){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const a=o.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},85181:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 9}execute(e,t,n,s){return(0,r.J)(e,t,n,32,s)}}},85503:(e,t,n)=>{n.d(t,{a:()=>c,d:()=>l,e:()=>a,s:()=>m});var r=n(4576),s=n(34727),o=n(83047),i=n(91735),u=n(78125);function a(e,t,n={}){let{maxAngleInDegrees:r=0,maxDeviation:a=0,unit:c}=n;const m=(0,u.getSpatialReference)(e);return c&&(t=(0,o.UW)(t,c,m),a&&(a=(0,o.UW)(a,c,m))),(0,u.toGeometry)((0,i.g7)((0,u.fromGeometry)(e),t,a,(0,s.kU)(r)),m)}function c(e,t,n={}){let{maxAngleInDegrees:a=0,maxDeviation:c=0,unit:m}=n;const l=e.map(u.fromGeometry),f=(0,u.getSpatialReference)(e);return m&&(t=(0,o.UW)(t,m,f),c&&(c=(0,o.UW)(c,m,f))),(0,i.zo)(l,t,c,(0,s.kU)(a)).map(e=>(0,u.toGeometry)(e,f)).filter(r.Ru)}const m=(0,i.fz)(),l=Object.freeze(Object.defineProperty({__proto__:null,execute:a,executeMany:c,supportsCurves:m},Symbol.toStringTag,{value:"Module"}))},85549:(e,t,n)=>{n.d(t,{executeOffsetJson:()=>c,r:()=>a});var r=n(40547),s=n(66070),o=n(78125),i=n(83299);const u={round:0,bevel:1,miter:2,square:3};function a(e,t,n,s,i,u){t=(0,r.convertToSpatialReferenceUnit)((0,r.toLengthUnit)(n),e.spatialReference,t);const a=(0,o.fromGeometry)(e),c=(0,o.getSpatialReference)(e),l=m(a,(0,o.fromSpatialReference)(c),t,s,i,u);return(0,o.toGeometry)(l,c)}function c(e,t,n,s,o,u){t=(0,r.convertToSpatialReferenceUnit)((0,r.toLengthUnit)(n),e.spatialReference,t);const a=(0,i.fromGeometry)(e),c=a.getGeometry(),l=a.getSpatialReference(),f=m(c,l,t,s,o,u);return(0,i.toGeometry)(f,l)}function m(e,t,n,r,o,i){const a=(0,s.g7)(e,t,n,u[r],o,i);if(!a.isEmpty())return a;{const a=e.clone();a.reverseAllPaths();const c=(0,s.g7)(a,t,-n,u[r],o,i);if(!c.isEmpty())return c.reverseAllPaths(),c}const c=Math.abs(n)/10,m=c/10;let l=i;if("round"===r&&(l+=m),"bevel"===r||"square"===r){const a=(0,s.g7)(e,t,n,u[r="miter"],o,i);if(!a.isEmpty())return a}if("miter"===r){const a=(0,s.g7)(e,t,n,u[r="round"],o,i);if(!a.isEmpty())return a}if("round"===r)for(;l<=c;l+=m){const i=(0,s.g7)(e,t,n,u[r],o,l);if(!i.isEmpty())return i}return null}},86742:(e,t,n)=>{n.d(t,{Hh:()=>i,fz:()=>a,g7:()=>u,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(6859),n.e(6558)]).then(n.bind(n,6558)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(8344)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticArea,t(r.p)}}function u(e,t,n){return s.execute(e,t,n,null)}function a(){return s.supportsCurves()}},90756:(e,t,n)=>{n.d(t,{g:()=>f,f:()=>h});var r=n(76061),s=n(55537),o=n(88885),i=n(95213),u=n(39117),a=u.W;function c(e,t){return{m_geometry:e,m_side:t}}class m extends r.G{constructor(e,t,n,r,s){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=s,this.m_cuttee=t.clone(),this.m_cutter=new o.P({copy:n}),this.m_bConsiderTouch=e;const u=(0,i.g)(t,n);this.m_tolerance=(0,i.c)(r,u,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return this.m_cutIndex}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case s.G.enumPolyline:this.generatePolylineCuts();break;case s.G.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const e=new o.P,t=new o.P,n=new o.P;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,s,i){if(t.isEmpty()){const e=c(t,0);return void s.push(e)}if(n.isEmpty()){const e=c(t,0);return void s.push(e)}const m=[],l=new o.E;{const o=l.createGeometryUserIndex(),f=l.addGeometry(t),h=l.addGeometry(n),p=new u.U(i);let y=0,_=null;if(l.hasCurves()){_=new a;const e=l.getEnvelope2D(i);y=(0,u.Q)(r.total());const t=(0,u.R)(r.total(),e);(0,u.T)(l,t,r.total(),12e3,_,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,r),p.cut(e,o,f,h,m);for(const e of m){null!==_&&_.stitchCurves(l,e,y,!1);const t=c(l.getGeometry(e),(0,u.V)(l.getGeometryUserIndex(e,o)));s.push(t)}null!==_&&_.clearStitcher(l)}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side||4===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}n.isEmpty()||e.isEmpty()&&t.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const e=new o.a,t=new o.a,n=new o.a;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,s,i){if(t.isEmpty()){const e=c(t,0);return void s.push(e)}if(n.isEmpty()){const e=c(t,0);return void s.push(e)}const m=[],l=new o.E;{const e=l.createGeometryUserIndex(),f=l.addGeometry(t),h=l.addGeometry(n),p=new u.U(i);let y=0,_=null;if(l.hasCurves()){_=new a;const e=l.getEnvelope2D(i);y=(0,u.Q)(r.total());const t=(0,u.R)(r.total(),e);(0,u.T)(l,t,r.total(),12e3,_,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,r),p.cut(!1,e,f,h,m),null!==_&&_.stitchCurves(l,o.n,y,!0);let d=l.getGeometry(f);const g=new o.a,P=new o.a,x=[];for(let t=0;t<m.length;t++){let n=null;{const s=new o.E,a=s.addGeometry(d),c=s.addGeometry(l.getGeometry(m[t]));if(s.hasCurves()){const e=s.getEnvelope2D(i);y=(0,u.Q)(r.total());const t=(0,u.R)(r.total(),e);(0,u.T)(s,t,r.total(),12e3,_,null,i)}p.setEditShapeCrackAndCluster(s,r);const f=p.intersection(a,c);if(null!==_&&_.stitchCurves(s,o.n,y,!0),n=s.getGeometry(f),n.isEmpty())continue;const h=l.getGeometryUserIndex(m[t],e);2===h?g.add(n,!1):1===h?P.add(n,!1):x.push(n)}{const e=new o.E,n=e.addGeometry(d),s=e.addGeometry(l.getGeometry(m[t]));if(e.hasCurves()){const t=e.getEnvelope2D(i);y=(0,u.Q)(r.total());const n=(0,u.R)(r.total(),t);(0,u.T)(e,n,r.total(),12e3,_,null,i)}p.setEditShapeCrackAndCluster(e,r);const a=p.difference(n,s);null!==_&&_.stitchCurves(e,o.n,y,!0),d=e.getGeometry(a)}}if(!d.isEmpty()&&m.length>0&&x.push(d),g.isEmpty()&&P.isEmpty())return;if(!g.isEmpty()){const e=c(g,1);s.push(e)}if(!P.isEmpty()){const e=c(P,2);s.push(e)}for(let e=0,t=x.length;e<t;++e){const t=c(x[e],3);s.push(t)}}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}(0,s.g)(n.isEmpty()||1===r.length),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const l=new class{getOperatorType(){return 10005}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t,n,r,s){return new m(e,t,n,r,s)}};function f(e,t,n){const r=l.execute(!0,e,t,n,null);return Array.from(r)}function h(){return l.supportsCurves()}},90836:(e,t,n)=>{n.d(t,{a:()=>u,b:()=>a,e:()=>m,s:()=>c});var r=n(39117),s=n(78125);class o extends r.I{getOperatorType(){return 2}execute(e,t,n,s){return(0,r.J)(e,t,n,3,s)}}const i=new o;function u(e){const t=(0,s.getSpatialReference)(e);return i.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function a(e,t){return i.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const c=i.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:u,execute:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},91577:(e,t,n)=>{n.d(t,{fz:()=>_,g7:()=>h,qT:()=>y,zo:()=>p});var r=n(76061),s=n(55537),o=n(95213),i=n(88885),u=n(79187);class a extends r.G{constructor(e,t,n){super(),t||(0,s.a)(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=c(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return(0,s.o)(e),(0,s.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),m(e);this.m_bDone=!0}return null}}function c(e,t){const n=new i.C;let r;for(;r=e.next();)(0,s.o)(r),(0,s.c)(r),n.addGeometry(r);return n.getBoundingGeometry()}function m(e,t){if((0,s.c)(e),e.isEmpty())return e.createInstance();const n=e.getGeometryType();if((0,s.f)(n)){const t=e;if(t.isDegenerate(0)){const e=new o.P;return t.queryStart(e),e}if(t.getGeometryType()===s.G.enumLine){const n=new o.P,r=new i.P({vd:e.getDescription()});return t.queryStart(n),r.startPathPoint(n),t.queryEnd(n),r.lineToPoint(n),r}{const n=new i.P({vd:e.getDescription()});return n.addSegment(t,!0),m(n)}}if(n===s.G.enumEnvelope){const t=e,n=new u.Envelope2D;if(t.queryEnvelope(n),n.xmin===n.xmax&&n.ymin===n.ymax){const e=new o.P;return t.queryCornerByVal(0,e),e}if(n.xmin===n.xmax||n.ymin===n.ymax){const n=new o.P,r=new i.P({vd:e.getDescription()});return t.queryCornerByVal(0,n),r.startPathPoint(n),t.queryCornerByVal(1,n),r.lineToPoint(n),r}{const n=new i.a({vd:e.getDescription()});return n.addEnvelope(t,!1),n}}if(n===s.G.enumGeometryCollection)return c((0,i.g)(e,-1));if(l(e)){if(n===s.G.enumMultiPoint){const t=e,n=new o.P;return t.getPointByVal(0,n),n}return e}return(0,s.g)((0,s.i)(n)),(0,i.f)(e)}function l(e,t){if((0,s.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===s.G.enumPoint)return!0;if(n===s.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,s.f)(n)){const t=e;if(t.isDegenerate(0))return!1;if(n===s.G.enumLine)return!0;const r=new i.P;return r.addSegment(t,!0),l(r)}if(n===s.G.enumMultiPoint)return 1===e.getPointCount();if(n===s.G.enumPolyline){const t=e;return!t.hasNonLinearSegments()&&1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===s.G.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&l(t.getGeometry(0))}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}const f=new class{getOperatorType(){return 10102}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new a(t,e,n)}execute(e,t){return m(e)}isConvex(e,t){if((0,s.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===s.G.enumPoint)return!0;if(n===s.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,s.f)(n)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(n===s.G.enumMultiPoint)return 1===e.getPointCount();if(n===s.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===s.G.enumGeometryCollection){const n=e;return 1===n.getGeometryCount()&&this.isConvex(n.getGeometry(0),t)}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}constructOrientedMinimumBoundingBox(e,t,n,r,s){(0,i.e)(e,t,n,r,s)}};function h(e){return f.execute(e,null)}function p(e,t){const n=f.executeMany(new r.S(e),t,null);return Array.from(n)}function y(e){return f.isConvex(e,null)}function _(){return f.supportsCurves()}},91735:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>o,zo:()=>i});var r=n(76061);const s=new(n(5247).O);function o(e,t,n,r){return s.execute(e,t,n,r,null)}function i(e,t,n,o){const i=s.executeMany(new r.S(e),t,n,o,null);return Array.from(i)}function u(){return s.supportsCurves()}},92523:(e,t,n)=>{n.d(t,{a:()=>a,e:()=>u,g:()=>m,s:()=>c});var r=n(4576),s=n(83047),o=n(70787),i=n(78125);function u(e,t,n={}){const{removeDegenerateParts:r=!1,unit:u}=n,a=(0,i.getSpatialReference)(e);return u&&(t=(0,s.UW)(t,u,a)),(0,i.toGeometry)((0,o.g7)((0,i.fromGeometry)(e),t,r),a)}function a(e,t,n={}){const{removeDegenerateParts:u=!1,unit:a}=n,c=e.map(i.fromGeometry),m=(0,i.getSpatialReference)(e);return a&&(t=(0,s.UW)(t,a,m)),(0,o.zo)(c,t,u).map(e=>(0,i.toGeometry)(e,m)).filter(r.Ru)}const c=(0,o.fz)(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:u,executeMany:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},96027:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>o,zo:()=>i});var r=n(76061);const s=new(n(31139).O);function o(e,t,n){return s.execute(e,t,n,null)}function i(e,t,n){const o=s.executeMany(new r.S(e),t,n,null);return Array.from(o)}function u(){return s.supportsCurves()}},96957:(e,t,n)=>{n.d(t,{a:()=>u,b:()=>a,e:()=>i,s:()=>c});var r=n(4576),s=n(68613),o=n(78125);function i(e,t){const n=(0,o.getSpatialReference)(e);return(0,o.toGeometry)((0,s.g7)((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(n)),n)}function u(e,t){const n=e.map(o.fromGeometry),i=(0,o.getSpatialReference)(e);return(0,s.zo)(n,(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(i)).map(e=>(0,o.toGeometry)(e,i)).filter(r.Ru)}const a=(0,s.fz)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4526,8812],{5808:(e,t,n)=>{n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},5874:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>i,executeMany:()=>u,isSimple:()=>a,supportsCurves:()=>c});var r=n(76061);const s=new(n(98783).O);var o=n(78125);function i(e){const t=(0,o.getSpatialReference)(e);return(0,o.toGeometry)(function(e,t){return s.execute(e,t,!1,null)}((0,o.fromGeometry)(e),(0,o.fromSpatialReference)(t)),t)}function u(e){const t=e.map(o.fromGeometry),n=(0,o.getSpatialReference)(e);return function(e,t){const n=s.executeMany(new r.S(e),t,!1,null);return Array.from(n)}(t,(0,o.fromSpatialReference)(n)).map(e=>(0,o.toGeometry)(e,n))}function a(e,t){return function(e,t,n,r){return s.isSimple(e,t,n,r,null)}((0,o.fromGeometry)(e),(0,o.fromSpatialReference)((0,o.getSpatialReference)(e)),null!=t,t??null)}const c=s.supportsCurves()},7817:(e,t,n)=>{n.d(t,{e:()=>o,l:()=>u,s:()=>i});var r=n(83047),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateLength2D();if(o&&n){const t=(0,s.getSpatialReference)(e);o=(0,r.PQ)(o,t,n)}return o}const i=!0,u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},10767:(e,t,n)=>{n.d(t,{a:()=>i,e:()=>u,i:()=>c,s:()=>a});var r=n(70031),s=n(78125);const o=new r.O;function i(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function u(e,t){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const a=o.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},15227:(e,t,n)=>{n.d(t,{fz:()=>f,g7:()=>m,yv:()=>l});var r=n(76061),s=n(55537),o=n(39117),i=n(79187),u=n(1352);class a extends r.G{constructor(e,t,n,r,s,o,a){super(),this.m_currentUnionEnvelope2D=new i.Envelope2D,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=a,this.m_bufferer=new u.B(a),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=n,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=s}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const c=new class{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r,s){return this.executeManyEx(e,t,n,Number.NaN,96,r,s)}execute(e,t,n,o){Number.isFinite(n)||(0,s.a)("Invalid distance for buffer operation");const i=new r.S([e]),u=[n],a=this.executeMany(i,t,u,!1,o).next();return a||(0,s.d)("null buffer output"),a}executeManyEx(e,t,n,r,i,u,c){if(void 0!==n.find(e=>!Number.isFinite(e))&&(0,s.a)("Invalid distance for buffer operation"),u){const s=new a(e,t,n,r,i,!1,c);return(new o.L).executeMany(s,t,c,2)}return new a(e,t,n,r,i,!1,c)}};function m(e,t,n){return c.execute(e,t,n,null)}function l(e,t,n,s,o,i){const u=c.executeManyEx(new r.S(e),t,n,s,o,i,null);return Array.from(u)}function f(){return c.supportsCurves()}},16346:(e,t,n)=>{n.d(t,{d:()=>m,e:()=>a,s:()=>c});var r=n(55537),s=n(26640),o=n(83047),i=n(78125);const u=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,o,i,u){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const a=e,c=t;Number.isNaN(u)&&(u=Number.POSITIVE_INFINITY);const m=new s.D(u,n).calculate(a,c,o,i);return Number.isFinite(m)?m:Number.NaN}};function a(e,t,n={}){const{unit:r}=n;let s=u.execute((0,i.fromGeometry)(e),(0,i.fromGeometry)(t),null);if(s&&r){const t=(0,i.getSpatialReference)(e);s=(0,o.PQ)(s,t,r)}return s}const c=u.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},22802:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 7}execute(e,t,n,s){return(0,r.J)(e,t,n,2,s)}}},24988:(e,t,n)=>{n.d(t,{Hh:()=>u,fz:()=>m,g7:()=>a,s1:()=>i,zo:()=>c});var r=n(76061),s=n(83290);let o;function i(){return!!o&&(0,s.i)()}async function u(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(7444)]).then(n.bind(n,37444)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,s.l)()]);o=new e.OperatorGeodesicBuffer,t(s.p)}}function a(e,t,n,r,s){return o.execute(e,t,n,r,s,!1,null)}function c(e,t,n,s,i,u){const a=o.executeMany(new r.S(e),t,n,s,i,!1,u,null);return Array.from(a)}function m(){return o.supportsCurves()}},26640:(e,t,n)=>{n.d(t,{D:()=>x,m:()=>m,s:()=>d,w:()=>_});var r=n(31635),s=n(55537),o=n(88885),i=n(39117),u=n(83661),a=n(79187),c=n(95213);function m(){return{outPoint:new u.P,index:-1,t:Number.NaN}}function l(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function f(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function h(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function p(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function y(e,t){const n=m();h(n,e),h(e,t),h(t,n)}function _(e,t,n,r,o,u){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,i.H)(e,t.getEndXY(),0))return f(o,t.getEndXY(),-1,Number.NaN),f(u,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,i.H)(t,e.getEndXY(),0))return f(o,e.getEndXY(),-1,Number.NaN),f(u,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function d(e){const t=e.getPathCount(),n=(0,u.d)(e.getSegmentCount(),0);let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let o=r,i=e.getPathStart(s);o<t;++o,++i)n[o]=i;r=t}return(0,o.s)(e.getPointCount(),n),n}function g(e,t){return!!Number.isNaN(t)||e<=t}function P(e){const t=new o.a;return t.addEnvelope(e,!1),t}class x{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==c.P.type||t.getGeometryType()!==c.P.type)&&(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!g(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=l(new u.P,(0,u.j)(),Number.NaN),o=l(new u.P,(0,u.j)(),Number.NaN),i=this._ExecuteBruteForce(e,t,s,o);return g(i,this.m_maxDistance)?(null!==n&&h(n,s),null!==r&&h(r,o),i):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==c.P.type&&e.getGeometryType()!==c.E.type||t.getGeometryType()!==c.P.type&&t.getGeometryType()!==c.E.type||(n=!1),n){if(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=l(new u.P,(0,u.j)(),Number.NaN),s=l(new u.P,(0,u.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),o=t.getXY();return f(n,s,0,0),f(r,o,0,0),Math.sqrt(u.P.sqrDistance(s,o))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let o=this.m_maxSqrDistance,i=o,a=!1;const c=t.getPointCount(),m=new u.P;for(let e=0;e<c;++e)if(t.queryXY(e,m),i=u.P.sqrDistance(s,m),this.m_bIsNearCalc){if(i<=o)return 0}else if(!(i>o)&&(!a&&i===o||i<o)&&(o=i,f(n,s,0,0),f(r,m,e,0),a=!0,0===o))return 0;return a?Math.sqrt(o):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const o=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),c=e.getXY();if(!o&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,i.H)(t,c,0))return f(n,c,0,0),f(r,c,-1,Number.NaN),0;t.getImpl().getAccelerators();let m=this.m_maxSqrDistance,l=m,h=-1;const p=new a.Envelope2D,y=t.querySegmentIterator();let _=!1;for(;y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();e.queryEnvelope(p);const t=p.sqrDistance(c);if(t>m)continue;if(!this.m_bIsNearCalc&&_&&t===m)continue;h=e.getClosestCoordinate(c,!1);const s=e.getCoord2D(h);if(l=u.P.sqrDistance(c,s),this.m_bIsNearCalc){if(l<=m)return 0}else if(!(l>m)&&(!_||l<m)&&(m=l,f(n,c,0,0),f(r,s,y.getStartPointIndex(),h),_=!0,0===m))return 0}return _?Math.sqrt(m):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();f(n,s,0,0),f(r,s,-1,Number.NaN);const o=t.asEnvelope2D();return o.contains(s)?0:Math.sqrt(o.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,o,i){const a={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===o&&1===i){const r=Math.trunc((0,u.s)(Math.sqrt(e.getPointCount())+1,1,(0,u.i)())),o=Math.trunc((0,u.s)(Math.sqrt(t.getPointCount())+1,1,(0,u.i)()));if((r>=4||o>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,o)<=this.m_maxSqrDistance)return 0}let c=this.m_maxSqrDistance;const m=[e],l=[t],h=this.swapGeometriesIfBGtA(m,l);h&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i=(0,u.c)(o,o=i),y(n,s)),(0,r.mS)(a,(0,u.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!h),!1);const p=m[0].getImpl(),_=l[0].getImpl(),d=p.getPointCount(),g=_.getPointCount(),P=g>1;let x=!1;const v=new u.P,G=new u.P;for(let e=0;e<d;e+=o){if(p.queryXY(e,v),P){const e=this.m_env2DgeometryB.sqrDistance(v);if(this.m_bIsNearCalc){if(e>c)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(v)<=c)return 0}else if(e>=c)continue}for(let t=0;t<g;t+=i){_.queryXY(t,G);const r=u.P.sqrDistance(v,G);if(this.m_bIsNearCalc){if(r<=c)return 0}else if(!(r>c||x&&r===c)&&(!x||r<c)&&(f(n,v,e,0),f(s,G,t,0),x=!0,c=r,0===c))return x?Math.sqrt(c):Number.POSITIVE_INFINITY}}return x?Math.sqrt(c):Number.POSITIVE_INFINITY}catch(e){a.error=e,a.hasError=!0}finally{(0,r.hk)(a)}}distanceMultipointMultipath(e,t,n,r){let o=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const c=t.querySegmentIterator();c.stripAttributes();const m=new a.Envelope2D,l=new u.P;let h=this.m_maxSqrDistance;const p=e.getImpl(),y=p.getPointCount(),_=y>1;let d=!1;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();if(e.queryLooseEnvelope(m),_){const e=m.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h||d&&e===h)continue}for(let s=0;s<y;s++){if(p.queryXY(s,l),o&&0!==(0,i.H)(t,l,0))return f(n,l,-1,Number.NaN),f(r,l,s,0),0;{const e=m.sqrDistance(l);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h)continue}const u=e.getClosestCoordinate(l,!1),a=e.getCoord2D(u);l.subThis(a);const y=l.sqrLength();if(this.m_bIsNearCalc){if(y<=h)return 0}else if(!(y>h)&&(!d||y<h)&&(h=y,f(n,p.getXY(s),s,0),f(r,a,c.getStartPointIndex(),u),d=!0,0===h))return 0}o=!1}return d?Math.sqrt(h):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,P(e),r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(P(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),o=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(o,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const i={stack:[],error:void 0,hasError:!1};try{const c=[e],l=[t],f=this.swapGeometriesIfAGtB(c,l);f&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),y(n,s)),(0,r.mS)(i,(0,u.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);const g=c[0],P=l[0],x=g.querySegmentIterator();x.stripAttributes();const v=P.querySegmentIterator();if(v.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,u.s)(Math.sqrt(g.getPointCount())+1,1,(0,u.i)())),t=Math.trunc((0,u.s)(Math.sqrt(g.getPointCount())+1,1,(0,u.i)()));if(this.distanceMultipointMultipoint(g,P,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(_(g,P,x,v,e,t))return h(n,e),h(s,t),0}const G=d(g),b=[],S=new o.S,C=new a.Envelope2D,M=new a.Envelope2D,D=new a.Envelope2D;let E=this.m_maxSqrDistance,w=!0,I=!1;for(let e=0,t=G.length;e<t;++e){g.querySegment(G[e],S,!0);const t=S.get();if(t.queryEnvelope(C),!(C.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>E)){if(this.m_bIsNearCalc&&C.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=E)return 0;for(;v.nextPath();){if(this.progress_(),w)P.queryPathEnvelope(v.getPathIndex(),D),b[v.getPathIndex()]=D.clone();else if(C.sqrDistanceEnvelope(b[v.getPathIndex()],null,null)>E)continue;for(;v.hasNextSegment();){const r=v.nextSegment();if(r.queryEnvelope(M),C.sqrDistanceEnvelope(M,null,null)<=E){const o=!C.isIntersecting(M),i=[0],u=[0];let a=t.distance(r,o,i,u);if(a*=a,this.m_bIsNearCalc&&a<=this.m_maxSqrDistance)return 0;if(a<E||a===E&&G[e]<n.index){if(I=!0,p(n,t,G[e],i[0]),p(s,r,v.getStartPointIndex(),u[0]),0===a)return 0;E=a}}}}v.resetToFirstPath(),w=!1}}return I?Math.sqrt(E):Number.POSITIVE_INFINITY}catch(e){i.error=e,i.hasError=!0}finally{(0,r.hk)(i)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,u.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},27749:(e,t,n)=>{n.d(t,{a:()=>p,e:()=>h,g:()=>y,i:()=>l,l:()=>f,s:()=>m});var r=n(83047),s=n(77085),o=n(5808);let i,u,a,c,m;function l(){return!!i&&(0,s.s1)()}async function f(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(8125)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=e.toGeometry,m=(0,s.fz)()}}function h(e,t,n={}){const{curveType:m="geodesic",unit:l}=n;l&&(t=(0,r.oU)(t,l,"meters"));const f=a(e);return c((0,s.g7)(i(e),t,u(f),o.O[m]),f)}function p(e,t,n={}){const{curveType:m="geodesic",unit:l}=n;l&&(t=(0,r.oU)(t,l,"meters"));const f=e.map(i),h=a(e);return(0,s.zo)(f,t,u(h),o.O[m]).map(e=>c(e,h))}const y=Object.freeze(Object.defineProperty({__proto__:null,execute:h,executeMany:p,isLoaded:l,load:f,get supportsCurves(){return m}},Symbol.toStringTag,{value:"Module"}))},28298:(e,t,n)=>{n.d(t,{fz:()=>a,g7:()=>i,zo:()=>u});var r=n(76061),s=(n(55537),n(83661),n(88885),n(79187),n(39117));n(95213);const o=new s.L;function i(e,t,n){return o.execute(e,t,n,null)}function u(e,t){return o.executeMany(new r.S(e),t,null).next()}function a(){return o.supportsCurves()}},29821:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 6}execute(e,t,n,s){return(0,r.J)(e,t,n,16,s)}}},33708:(e,t,n)=>{n.d(t,{Sg:()=>i,fz:()=>c,g7:()=>u,zo:()=>a});var r=n(76061),s=(n(55537),n(39117));n(88885),n(95213);const o=new s.G;function i(e,t){return o.accelerateGeometry(e,t,1)}function u(e,t,n){return o.execute(e,t,n,null)}function a(e,t,n,s){const i=o.executeMany(new r.S(e),new r.S([t]),n,null,s);return Array.from(i)}function c(){return o.supportsCurves()}},35223:(e,t,n)=>{n.d(t,{Hh:()=>i,fz:()=>a,g7:()=>u,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(4167)]).then(n.bind(n,28879)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(8344)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticLength,t(r.p)}}function u(e,t,n){return s.execute(e,t,n,null)}function a(){return s.supportsCurves()}},44526:(e,t,n)=>{n.r(t),n.d(t,{area:()=>G.a,buffer:()=>M,centroid:()=>D.c,clip:()=>E.c,contains:()=>w.c,convexHull:()=>R,crosses:()=>A,cut:()=>q.c,densify:()=>z.d,difference:()=>j.d,disjoint:()=>U,distance:()=>X.d,equals:()=>k.e,executeOffset:()=>ye.r,generalize:()=>F.g,geodesicBuffer:()=>_,geodeticArea:()=>d.g,geodeticDensify:()=>g.g,geodeticLength:()=>P.g,intersection:()=>H,intersects:()=>W.i,isSelfIntersecting:()=>ge,labelPoint:()=>Q.l,length:()=>Z.l,loadAll:()=>Pe,overlaps:()=>K,proximity:()=>ee.p,relate:()=>te.r,rotate:()=>_e,simplify:()=>se,symmetricDifference:()=>oe.s,touches:()=>ae,union:()=>le,within:()=>pe});var r=n(24383),s=n(50647),o=n(4576),i=n(83047),u=n(24988),a=n(5808);let c,m,l,f,h;function p(){return!!c&&(0,u.s1)()}async function y(){if(!p()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),(0,u.Hh)()]);c=e.fromGeometry,m=e.fromSpatialReference,l=e.getSpatialReference,f=e.toPolygon,h=(0,u.fz)()}}const _=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){let{curveType:r="geodesic",maxDeviation:s=NaN,unit:o}=n;o&&(t=(0,i.oU)(t,o,"meters"),s&&(s=(0,i.oU)(s,o,"meters")));const h=l(e);return f((0,u.g7)(c(e),m(h),a.O[r],t,s),h)},executeMany:function(e,t,n={}){let{curveType:r="geodesic",maxDeviation:s=NaN,union:h=!1,unit:p}=n;p&&(t=t.map(e=>(0,i.oU)(e,p,"meters")),s&&(s=(0,i.oU)(s,p,"meters")));const y=e.map(c),_=l(e);return(0,u.zo)(y,m(_),a.O[r],t,s,h).map(e=>f(e,_)).filter(o.Ru)},isLoaded:p,load:y,get supportsCurves(){return h}},Symbol.toStringTag,{value:"Module"}));var d=n(49590),g=n(27749),P=n(62044),x=n(5874),v=n(78812),G=n(65708),b=n(15227),S=n(78125);const C=(0,b.fz)(),M=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{unit:r}=n,s=(0,S.getSpatialReference)(e);return r&&(t=(0,i.UW)(t,r,s)),(0,S.toPolygon)((0,b.g7)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(s),t),s)},executeMany:function(e,t,n={}){let{maxDeviation:r=NaN,maxVerticesInFullCircle:s=96,union:u=!1,unit:a}=n;const c=(0,S.getSpatialReference)(e);a&&(t=t.map(e=>(0,i.UW)(e,a,c)),r&&(r=(0,i.UW)(r,a,c)));const m=e.map(S.fromGeometry);return(0,b.yv)(m,(0,S.fromSpatialReference)(c),t,r,s,u).map(e=>(0,S.toPolygon)(e,c)).filter(o.Ru)},supportsCurves:C},Symbol.toStringTag,{value:"Module"}));var D=n(48265),E=n(83587),w=n(84252),I=n(91577);const N=(0,I.fz)(),R=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,I.g7)((0,S.fromGeometry)(e)),t)},executeMany:function(e,t={}){const{merge:n=!1}=t,r=e.map(S.fromGeometry),s=(0,S.getSpatialReference)(e);return(0,I.zo)(r,n).map(e=>(0,S.toGeometry)(e,s))},isConvex:function(e){return(0,I.qT)((0,S.fromGeometry)(e))},supportsCurves:N},Symbol.toStringTag,{value:"Module"})),T=new(n(29821).O),O=T.supportsCurves(),A=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return T.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return T.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:O},Symbol.toStringTag,{value:"Module"}));var q=n(68925),z=n(85503),j=n(70722);const B=new(n(39117).F),Y=B.supportsCurves(),U=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return B.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return B.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference))},supportsCurves:Y},Symbol.toStringTag,{value:"Module"}));var X=n(16346),k=n(90836),F=n(92523),L=n(33708);const V=(0,L.fz)(),H=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return(0,L.Sg)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t))},execute:function(e,t){const n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,L.g7)((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(n)),n)},executeMany:function(e,t){const n=e.map(S.fromGeometry),r=(0,S.getSpatialReference)(e);return(0,L.zo)(n,(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(r),7).map(e=>(0,S.toGeometry)(e,r)).filter(o.Ru)},supportsCurves:V},Symbol.toStringTag,{value:"Module"}));var W=n(10767),Q=n(5913),Z=n(7817);const J=new(n(85181).O),$=J.supportsCurves(),K=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return J.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return J.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:$},Symbol.toStringTag,{value:"Module"}));var ee=n(59260),te=n(65416),ne=n(81150);const re=(0,ne.fz)(),se=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ne.g7)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),!1),t)},executeMany:function(e){const t=e.map(S.fromGeometry),n=(0,S.getSpatialReference)(e);return(0,ne.zo)(t,(0,S.fromSpatialReference)(n),!1).map(e=>(0,S.toGeometry)(e,n))},isSimple:function(e){return(0,ne.Pg)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)((0,S.getSpatialReference)(e)),!1)},supportsCurves:re},Symbol.toStringTag,{value:"Module"}));var oe=n(96957);const ie=new(n(46810).O),ue=ie.supportsCurves(),ae=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return ie.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return ie.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:ue},Symbol.toStringTag,{value:"Module"}));var ce=n(28298);const me=(0,ce.fz)(),le=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t){const n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ce.g7)((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(n)),n)},executeMany:function(e){const t=e.map(S.fromGeometry),n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ce.zo)(t,(0,S.fromSpatialReference)(n)),n)},supportsCurves:me},Symbol.toStringTag,{value:"Module"})),fe=new(n(22802).O),he=fe.supportsCurves(),pe=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return fe.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return fe.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:he},Symbol.toStringTag,{value:"Module"}));var ye=n(85549);function _e(e,t,n,r){const o=(new v.default).rotate(t,n,r);return(0,s.execute)(e,o)}const de=new Set([5,6,7,10,11,12]);function ge(e){const t=new r.NonSimpleResult;return!(0,x.isSimple)(e,t)&&de.has(t.m_reason)}async function Pe(){await Promise.all([(0,d.l)(),y(),(0,g.l)(),(0,P.l)()])}},46810:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 5}execute(e,t,n,s){return(0,r.J)(e,t,n,8,s)}}},48265:(e,t,n)=>{n.d(t,{c:()=>a,e:()=>i,s:()=>u});var r=n(15546),s=n(78125);const o=new class{getOperatorType(){return 10205}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,r.c)(e)}};function i(e){const t=o.execute((0,s.fromGeometry)(e),null);return(0,s.toPoint)(t,(0,s.getSpatialReference)(e))}const u=o.supportsCurves(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},49074:(e,t,n)=>{n.d(t,{fz:()=>a,g7:()=>i,zo:()=>u});var r=n(76061),s=(n(55537),n(39117));n(83661),n(88885),n(79187),n(95213);const o=new s.K;function i(e,t,n){return o.execute(e,t,n,null)}function u(e,t,n){const s=o.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(s)}function a(){return o.supportsCurves()}},49590:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>h,i:()=>m,l:()=>l,s:()=>c});var r=n(83047),s=n(86742),o=n(5808);let i,u,a,c;function m(){return!!i&&(0,s.s1)()}async function l(){if(!m()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3169)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,m=a(e);let l=(0,s.g7)(i(e),u(m),o.O[n]);return l&&c&&(l=(0,r.oU)(l,"square-meters",c)),l}const h=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:m,load:l,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},50647:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>m,executeMany:()=>l,supportsCurves:()=>f});var r=n(4576),s=n(76061),o=n(55537);class i extends s.G{constructor(e,t,n){super(),this.m_index=-1,this.m_transformation=t.clone(),this.m_inputGeometryCursor=e}next(){let e;if(e=this.m_inputGeometryCursor.next()){(0,o.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID();const t=e.clone();return t.applyTransformation(this.m_transformation),t}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const u=new class{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new i(e,t,n)}execute(e,t,n){const r=e.clone();return r.applyTransformation(t),r}};function a(e,t){return u.execute(e,t,null)}var c=n(78125);function m(e,t){const n=(0,c.getSpatialReference)(e);return(0,c.toGeometry)(a((0,c.fromGeometry)(e),t.transform),n)}function l(e,t){const n=e.map(c.fromGeometry),o=(0,c.getSpatialReference)(e);return function(e,t){const n=u.executeMany(new s.S(e),t,null);return Array.from(n)}(n,t.transform).map(e=>(0,c.toGeometry)(e,o)).filter(r.Ru)}const f=u.supportsCurves()},59260:(e,t,n)=>{n.d(t,{a:()=>c,b:()=>m,g:()=>a,p:()=>f,s:()=>l});var r=n(36633),s=n(83047),o=n(78125),i=n(79533);const u=new r.O;function a(e,t,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:a=!0,unit:c}=n,m=u.getNearestCoordinate((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),a,r);if(c&&m.m_distance){const t=(0,o.getSpatialReference)(e);m.m_distance=(0,s.PQ)(m.m_distance,t,c)}return(0,i.C)(m,e,r)}function c(e,t,n={}){const{unit:r}=n,a=u.getNearestVertex((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY());if(r&&a.m_distance){const t=(0,o.getSpatialReference)(e);a.m_distance=(0,s.PQ)(a.m_distance,t,r)}return(0,i.C)(a,e)}function m(e,t,n,r,a={}){const{unit:c}=a,m=(0,o.getSpatialReference)(e);return c&&n&&(n=(0,s.UW)(n,c,m)),u.getNearestVertices((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),n,r).map(t=>(c&&t.m_distance&&(t.m_distance=(0,s.PQ)(t.m_distance,m,c)),(0,i.C)(t,e)))}const l=u.supportsCurves(),f=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:a,getNearestVertex:c,getNearestVertices:m,supportsCurves:l},Symbol.toStringTag,{value:"Module"}))},62044:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>h,i:()=>m,l:()=>l,s:()=>c});var r=n(83047),s=n(35223),o=n(5808);let i,u,a,c;function m(){return!!i&&(0,s.s1)()}async function l(){if(!m()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3169)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,m=a(e);let l=(0,s.g7)(i(e),u(m),o.O[n]);return l&&c&&(l=(0,r.oU)(l,"meters",c)),l}const h=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:m,load:l,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},65416:(e,t,n)=>{n.d(t,{a:()=>i,e:()=>u,i:()=>a,r:()=>m,s:()=>c});var r=n(39117),s=n(78125);const o=new class{supportsCurves(){return!0}getOperatorType(){return 1}execute(e,t,n,s,o){return(0,r.aF)(e,t,n,s,o)}isValidDE9IM(e){return 0===(0,r.aG)(e)}accelerateGeometry(e,t,n){return(0,r.aH)(e,t,n)}canAccelerateGeometry(e){return(0,r.aI)(e)}};function i(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function u(e,t,n){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),n,null)}function a(e){return o.isValidDE9IM(e)}const c=o.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,isValidDE9IM:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},65708:(e,t,n)=>{n.d(t,{a:()=>u,e:()=>o,s:()=>i});var r=n(83047),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateArea2D();if(o&&n){const t=(0,s.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const i=(0,r.B5)(t);i!==n&&(i?o=(0,r.oU)(o,i,n):(o=Math.sqrt(o),o*=(0,r.GA)(t),o**=2,o=(0,r.oU)(o,"square-meters",n)))}return o}const i=!0,u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},66070:(e,t,n)=>{n.d(t,{g7:()=>_,zo:()=>d});var r=n(76061),s=n(95213),o=n(55537),i=n(88885),u=n(83661);const a=1.4142135623730951,c=.017453292519943295,m=256,l=1024;class f{static construct(e,t,n){const r=new f;return r.x=e.x,r.y=e.y,r.m_next=-1,r.m_prev=-1,r.z=t,r.m=n,r.type=0,r}clone(){const e=new f;return e.x=this.x,e.y=this.y,e.m_next=this.m_next,e.m_prev=this.m_prev,e.z=this.z,e.m=this.m,e.type=this.type,e}asPoint2D(){return new u.P(this.x,this.y)}}class h{constructor(e){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=e}constructOffset(){const e=this.m_inputGeometry.getGeometryType();if(e===o.G.enumLine)return this.offsetLine();if(e===o.G.enumEnvelope)return this.offsetEnvelope();if((0,o.f)(e)){const e=new i.P;return e.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=e,this.constructOffset()}if(e===o.G.enumPolyline){const e=new i.P;return this.offsetMultiPath(e),e}if(e===o.G.enumPolygon){const e=new i.a;return this.offsetMultiPath(e),e}(0,o.t)("")}offsetLine(){const e=this.m_inputGeometry,t=e.getStartXY(),n=e.getEndXY(),r=new u.P;r.setSub(n,t),r.normalize(),r.leftPerpendicularThis(),r.scale(this.m_distance),t.addThis(r),n.addThis(r);const s=e.clone();return s.setStartXY(t),s.setEndXY(n),s}offsetEnvelope(){const e=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const t=new i.a;return t.addEnvelope(e,!1),this.m_inputGeometry=t,this.constructOffset()}const t=e.clone();return t.inflateCoords(this.m_distance,this.m_distance),t}progress(){}static buildPoint(e,t,n,r){r.x=e.x+t*Math.cos(n),r.y=e.y+t*Math.sin(n),r.type=e.type,r.z=e.z,r.m=e.m,r.m_next=-1,r.m_prev=-1}addPoint(e){this.m_offsetPts.push(e.clone()),this.m_offsetPtCount++}addPointEx(e,t){if(0===this.m_offsetPtCount)return void this.addPoint(e);const n=this.m_srcPtCount,r=this.m_srcPts[0===t?n-1:t-1],s=this.m_srcPts[t],o=h.dotSign(r,s,this.m_offsetPts[this.m_offsetPtCount-1],e);if(o>0)this.addPoint(e);else if(o<0)if(h.dotSign(r,s,s,this.m_offsetPts[this.m_offsetPtCount-1])>0){const s=new f;let o;o=0===t?n-2:1===t?n-1:t-2;const i=this.m_srcPts[o],a=Math.atan2(r.y-i.y,r.x-i.x);if(h.buildPoint(r,this.m_distance,a-u.o,s),this.m_offsetPts[this.m_offsetPtCount-1]=s.clone(),1===this.m_joins||2===this.m_joins){s.x=.5*(s.x+r.x),s.y=.5*(s.y+r.y),this.addPoint(s),h.buildPoint(r,this.m_distance,this.m_a1+u.o,s);const e=s.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=m,this.addPoint(e),this.addPoint(s)}else h.buildPoint(r,this.m_distance,this.m_a1+u.o,s),s.type|=m,this.addPoint(s);this.addPointEx(e,t)}else{const e=new f;if(h.buildPoint(s,this.m_distance,this.m_a1+u.o,e),this.addPoint(e),1===this.m_joins||2===this.m_joins){e.x=.5*(e.x+s.x),e.y=.5*(e.y+s.y),this.addPoint(e),h.buildPoint(s,this.m_distance,this.m_a2-u.o,e);const t=e.clone();t.x=.5*(t.x+s.x),t.y=.5*(t.y+s.y),t.type|=m,this.addPoint(t),this.addPoint(e)}else h.buildPoint(s,this.m_distance,this.m_a2-u.o,e),e.type|=m,this.addPoint(e)}}buildOffset(){const e=new f,t=this.m_srcPtCount;this.m_offsetPtCount=0;const n=.5*this.m_tolerance;let r=0,s=0;for(let o=0;o<t;o++){const i=this.m_srcPts[o],f=0===o?this.m_srcPts[t-1]:this.m_srcPts[o-1],p=o===t-1?this.m_srcPts[0]:this.m_srcPts[o+1];let y,_,d=0;{const e=f.x-i.x,t=f.y-i.y,n=p.x-i.x,a=p.y-i.y;y=Math.atan2(t,e),_=Math.atan2(a,n),this.m_a1=y,this.m_a2=_,0===o&&(r=y,s=_),d=u.P.orientationRobust(i.asPoint2D(),f.asPoint2D(),p.asPoint2D())}const g=_;if(_<y&&(_+=u.p),!(Math.abs(Math.abs(y-_)-Math.PI)<1e-8))if(d*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){h.buildPoint(i,this.m_distance,y+u.o,e),this.addPoint(e);const t=.001;e.x=i.x+(e.x-i.x)*t,e.y=i.y+(e.y-i.y)*t,this.addPoint(e),h.buildPoint(i,this.m_distance,_-u.o,e);const n=e.clone();n.x=i.x+(n.x-i.x)*t,n.y=i.y+(n.y-i.y)*t,n.type|=m,this.addPoint(n),this.addPoint(e)}else{const t=.5*(_-y),n=0===t?this.m_distance:this.m_distance/Math.abs(Math.sin(t));h.buildPoint(i,n,.5*(y+_),e),this.addPointEx(e,o)}else{if(512&i.type){const t=1-n/Math.abs(this.m_distance);let r=1,s=this.m_distance<0?-Math.PI:Math.PI;if(t>-1&&t<1){let e=2*Math.acos(t);e<c&&(e=c),r=Math.trunc(Math.PI/e+1.5),r>1&&(s/=r)}r<=1&&(r=2,s/=2);let a=y+u.o;h.buildPoint(i,this.m_distance,a,e),0===o&&(e.type|=l),this.addPointEx(e,o);const m=this.m_distance/Math.cos(s/2);for(a+=s/2,h.buildPoint(i,m,a,e),e.type|=l,this.addPoint(e);--r>0;)a+=s,h.buildPoint(i,m,a,e),e.type|=l,this.addPoint(e);h.buildPoint(i,this.m_distance,_-u.o,e),e.type|=l,this.addPoint(e);continue}if(1!==this.m_joins){if(0===this.m_joins){const t=1-n/Math.abs(this.m_distance);let r=1,s=_-u.o-(y+u.o);if(t>-1&&t<1){let e=2*Math.acos(t);e<c&&(e=c),r=Math.trunc(Math.abs(s)/e+1.5),r>1&&(s/=r)}const a=this.m_distance/Math.cos(.5*s);let m=y+u.o+.5*s;for(h.buildPoint(i,a,m,e),this.addPointEx(e,o);--r>0;)m+=s,h.buildPoint(i,a,m,e),this.addPoint(e);continue}if(2===this.m_joins){const t=f.x-i.x,n=f.y-i.y,r=p.x-i.x,s=p.y-i.y;let c=(t*r+n*s)/Math.sqrt(t*t+n*n)/Math.sqrt(r*r+s*s);if(c=Math.max(c,-1),c>1-1e-8){h.buildPoint(i,a*this.m_distance,_-.25*Math.PI,e),this.addPointEx(e,o),h.buildPoint(i,a*this.m_distance,_+.25*Math.PI,e),this.addPoint(e);continue}const m=Math.abs(this.m_distance/Math.sin(.5*Math.acos(c))),l=Math.abs(this.m_miterLimit*this.m_distance);if(m>l){const t=.5*(_-y),n=this.m_distance/Math.abs(Math.sin(t));h.buildPoint(i,n,.5*(y+_),e);const r=u.P.construct(e.x,e.y),s=u.P.construct(i.x,i.y),a=new u.P;a.setSub(r,s);const c=new u.P;c.setScaleAdd(l/a.length(),a,s);const f=Math.sqrt(m*m-this.m_distance*this.m_distance),p=(m-l)*Math.abs(this.m_distance)/f;this.m_distance>0?a.rightPerpendicularThis():a.leftPerpendicularThis(),a.scale(p/a.length());const d=new u.P;d.setAdd(c,a);const g=new u.P;g.setSub(c,a),e.x=d.x,e.y=d.y,this.addPointEx(e,o),e.x=g.x,e.y=g.y,this.addPoint(e);continue}const d=.5*(_-y),g=this.m_distance/Math.abs(Math.sin(d));h.buildPoint(i,g,.5*(y+_),e),this.addPointEx(e,o);continue}{let t;if(_=g,this.m_distance>0?(_>y&&(_-=u.p),t=y-_<u.o):(_<y&&(_+=u.p),t=_-y<u.o),t){const t=this.m_distance*a;let n;n=t<0?y+.25*Math.PI:y+3*Math.PI*.25,h.buildPoint(i,t,n,e),this.addPointEx(e,o),n=t<0?_-.25*Math.PI:_-3*Math.PI*.25,h.buildPoint(i,t,n,e),this.addPoint(e)}else{const t=.5*(_-y),n=this.m_distance/Math.abs(Math.sin(t));_<y&&(_+=u.p),h.buildPoint(i,n,(y+_)/2,e),this.addPointEx(e,o)}}}else h.buildPoint(i,this.m_distance,y+u.o,e),this.addPointEx(e,o),h.buildPoint(i,this.m_distance,_-u.o,e),this.addPoint(e)}}return this.m_a1=r,this.m_a2=s,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let e=!1;for(let e=0;e<this.m_offsetPtCount;e++){const t=this.m_offsetPts[e];t.m_next=e+1,t.m_prev=e-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let t=0;for(let n=0;n<this.m_offsetPtCount;n++)if(this.m_offsetPts[t].type&m){const n=this.deleteClosedSeg(t);if(-1===n){e=!0;break}t=n}else t=this.m_offsetPts[t].m_next;return!e&&(this.compressOffsetArray(t),!0)}deleteClosedSeg(e){const t=this.m_offsetPtCount-1;let n,r,s=e;for(let o=1;o<=t-2;o++){s=this.m_offsetPts[s].m_next,n=s,r=e;for(let e=1;e<=o;e++){if(r=this.m_offsetPts[r].m_prev,0===(this.m_offsetPts[r].type&m)&&0===(this.m_offsetPts[n].type&m)){const e=this.handleClosedIntersection(r,n);if(-1!==e)return e}n=this.m_offsetPts[n].m_prev}}return-1}handleClosedIntersection(e,t){const n=this.m_offsetPts[this.m_offsetPts[e].m_prev],r=this.m_offsetPts[e],s=this.m_offsetPts[this.m_offsetPts[t].m_prev],o=this.m_offsetPts[t];if(!this.sectGraphicRect(n,r,s,o))return-1;const i={pt:new f,bAtExistingPt:!1};if(((r.x-n.x)*(o.y-s.y)-(r.y-n.y)*(o.x-s.x))*this.m_distance<0&&this.findIntersection(n,r,s,o,i)&&!i.bAtExistingPt){const u=1e-8,a=Math.sqrt((r.x-n.x)*(r.x-n.x)+(r.y-n.y)*(r.y-n.y)),c=(r.x-n.x)/a,m=(r.y-n.y)/a,l=Math.sqrt((o.x-s.x)*(o.x-s.x)+(o.y-s.y)*(o.y-s.y)),f=(o.x-s.x)/l,h=(o.y-s.y)/l;let p=!1;const y=i.pt.clone();y.x+=(c+f)*u,y.y+=(m+h)*u;let _=s,d=i.pt,g=this.m_offsetPts[e].m_prev;for(;d.y>y.y!=_.y>y.y&&y.x<(_.x-d.x)*(y.y-d.y)/(_.y-d.y)+d.x&&(p=!p),_=d,g=this.m_offsetPts[g].m_next,g!==t;)d=this.m_offsetPts[g];if(p)return-1;const P=this.m_offsetPts[e].m_prev;return i.pt.type=r.type,i.pt.m_next=t,i.pt.m_prev=P,this.m_offsetPts[e]=i.pt,this.m_offsetPts[t].m_prev=e,t}return-1}sectGraphicRect(e,t,n,r){return Math.max(e.x,t.x)>=Math.min(n.x,r.x)&&Math.max(n.x,r.x)>=Math.min(e.x,t.x)&&Math.max(e.y,t.y)>=Math.min(n.y,r.y)&&Math.max(n.y,r.y)>=Math.min(e.y,t.y)}findIntersection(e,t,n,r,s){let o,i,u,a;return s.bAtExistingPt=!1,o=(t.y-e.y)*(r.x-n.x)-(t.x-e.x)*(r.y-n.y),i=(n.y-e.y)*(t.x-e.x)-(n.x-e.x)*(t.y-e.y),u=0===o?2:i/o,u>=0&&u<=1&&(a=u,o=(r.y-n.y)*(t.x-e.x)-(r.x-n.x)*(t.y-e.y),i=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y),u=0===o?2:i/o,u>=0&&u<=1)&&(s.pt.x=e.x+u*(t.x-e.x),s.pt.y=e.y+u*(t.y-e.y),this.m_bUseZ&&(s.pt.z=n.z+a*(r.z-n.z)),this.m_bUseM&&(s.pt.m=n.m+a*(r.m-n.m)),0!==a&&1!==a||0!==u&&1!==u||(s.bAtExistingPt=!0),!((0===a||1===a)&&u>0&&u<1||(0===u||1===u)&&a>0&&a<1))}compressOffsetArray(e){for(;this.m_offsetPts[e].m_prev<e;)e=this.m_offsetPts[e].m_prev;let t=0,n=e;do{const e=this.m_offsetPts[n].clone();this.m_offsetPts[t]=e,n=e.m_next,t++}while(n!==e);this.m_offsetPts[t]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=t+1}addPart(e,t){if(!(t<2))for(let n=0;n<t;n++){const t=this.m_offsetPts[e+n];if(n?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(t.x,t.y,t.z):this.m_resultPath.lineToCoords(t.x,t.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(t.x,t.y,t.z):this.m_resultPath.startPathCoords(t.x,t.y),this.m_bUseM){const e=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,e,0,t.m)}}}offsetMultiPath(e){const t=(0,i.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),n=t.querySegmentIterator();n.resetToFirstPath();let r=-1;for(;n.nextPath();)r++,this.offsetPath(t,r,e)}offsetPath(e,t,n){let r=e.getPathStart(t),s=e.getPathEnd(t);if(this.m_resultPath=n,e.isClosedPath(t)){const t=e.getXY(r);for(;s>r&&e.getXY(s-1).equals(t);)s--;if(s-r>=2){this.m_srcPtCount=s-r,this.m_srcPts.length=this.m_srcPtCount;for(let t=r;t<s;t++)this.progress(),this.m_srcPts[t-r]=f.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const t=e.getXY(r);for(;r<s-1&&e.getXY(r+1).equals(t);)r++;const n=e.getXY(s-1);for(;r<s-1&&e.getXY(s-2).equals(n);)s--;if(s-r>=2){this.m_srcPtCount=2*(s-r)-2,this.m_srcPts.length=this.m_srcPtCount;let n=f.construct(t,this.m_bUseZ?e.getAttributeAsDbl(1,r,0):0,this.m_bUseM?e.getAttributeAsDbl(2,r,0):0);n.type|=1536,this.m_srcPts[0]=n;let o=1,i=this.m_srcPtCount-1;for(let t=r+1;t<s-1;t++,o++,i--)this.progress(),n=f.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0),this.m_srcPts[o]=n.clone(),n.type|=l,this.m_srcPts[i]=n.clone();if(n=f.construct(e.getXY(s-1),this.m_bUseZ?e.getAttributeAsDbl(1,s-1,0):0,this.m_bUseM?e.getAttributeAsDbl(2,s-1,0):0),n.type|=512,this.m_srcPts[o]=n.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let e=-1,t=-1,n=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&l);n||(e=0);for(let r=1;r<this.m_offsetPtCount;r++){this.progress();const s=0!==(this.m_offsetPts[r].type&l);s?n||(t=r-1,t-e+1>1&&this.addPart(e,t-e+1)):n&&(e=r-1),n=s}n||(t=this.m_offsetPtCount-1,t-e+1>1&&this.addPart(e,t-e+1))}else{const e=0,t=this.m_offsetPtCount-1;t-e>=1&&this.addPart(e,t-e+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(e,t,n,r){const s=t.x-e.x,o=t.y-e.y,i=r.x-n.x,a=r.y-n.y,c=(0,u.t)(s,o,i,a);return(0,u.e)(c)}}class p extends r.G{constructor(e,t,n,r,s,o,i){super(),this.m_progressTracker=i,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distance=n,this.m_joins=r,this.m_miterLimit=s,this.m_flattenError=o}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let e;for(;e=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(e);return null}getGeometryID(){return this.m_index}offset(e){let t;return(0,o.c)(e),t=this.m_flattenError<=0?(0,s.b)(this.m_spatialReference,e,!0).total():this.m_flattenError,function(e,t,n,r,s,i){if(null===e&&(0,o.a)(""),e.getDimension()<1&&(0,o.a)(""),s>0||(0,o.a)(""),(0,o.c)(e),0===t||e.isEmpty())return e;const u=new h(i);return u.m_bUseZ=e.hasAttribute(1),u.m_bUseM=e.hasAttribute(2),u.m_inputGeometry=e,u.m_distance=t,u.m_tolerance=s,u.m_joins=n,u.m_miterLimit=r>1?r:1,u.m_progressCounter=0,u.constructOffset()}(e,this.m_distance,this.m_joins,this.m_miterLimit,t,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t,n,r,s,o,i){return new p(e,t,n,r,s,o,i)}execute(e,t,n,r,s,o,i){return new p(null,t,n,r,s,o,i).offset(e)}};function _(e,t,n,r,s,o){return y.execute(e,t,n,r,s,o,null)}function d(e,t,n,s,o,i){const u=y.executeMany(new r.S(e),t,n,s,o,i,null);return Array.from(u)}},68613:(e,t,n)=>{n.d(t,{fz:()=>y,g7:()=>h,zo:()=>p});var r=n(76061),s=n(55537),o=n(83661),i=n(88885),u=n(79187),a=n(95213),c=n(39117);function m(e,t,n,r){const s=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),c=t.getXY(),m=e.createInstance(),l=(0,a.e)(n),f=new u.Envelope2D;if(e.queryEnvelope(f),f.inflateCoords(l,l),f.contains(c)){const n=l*l;let r=!1;const u=(0,o.d)(i,!1);for(let e=0;e<i;e++){const t=s.read(2*e),o=s.read(2*e+1),i=t-c.x,a=o-c.y;i*i+a*a<=n&&(r=!0,u[e]=!0)}if(r)for(let t=0;t<i;t++)u[t]||m.addPoints(e,t,t+1);else m.addPoints(e,0,i),m.add(t)}else m.addPoints(e,0,i),m.add(t);return m}class l extends r.G{constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,s.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){const l=e.getDimension(),f=t.getDimension();if(l!==f)return l>f?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const h=new u.Envelope2D,p=new u.Envelope2D,y=new u.Envelope2D;e.queryEnvelope(h),t.queryEnvelope(p),y.setCoords({env2D:h}),y.mergeEnvelope2D(p);const _=(0,a.c)(n,y,!0),d=e.getGeometryType(),g=t.getGeometryType();return d===s.G.enumPoint&&g===s.G.enumPoint?function(e,t,n){const r=(0,a.e)(n),s=r*r,u=e.getXY(),c=t.getXY(),m=new i.M({vd:e.getDescription()});return o.P.sqrDistance(u,c)>s&&(m.add(e),m.add(t)),m}(e,t,_):d===s.G.enumPoint&&g===s.G.enumMultiPoint?m(t,e,_):d===s.G.enumMultiPoint&&g===s.G.enumPoint?m(e,t,_):(0,c.aK)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new l(e,t,n,r)}execute(e,t,n,o){const i=new r.S([e]),u=new r.S([t]),a=this.executeMany(i,u,n,o).next();return a||(0,s.d)("null output"),a}};function h(e,t,n){return f.execute(e,t,n,null)}function p(e,t,n){const s=f.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(s)}function y(){return f.supportsCurves()}},68925:(e,t,n)=>{n.d(t,{c:()=>a,e:()=>i,s:()=>u});var r=n(4576),s=n(90756),o=n(78125);function i(e,t){const n=(0,o.getSpatialReference)(e);return(0,s.g)((0,o.fromGeometry)(e),(0,o.fromPolyline)(t),(0,o.fromSpatialReference)(n)).map(e=>(0,o.toGeometry)(e,n)).filter(r.Ru)}const u=(0,s.f)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},70031:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 4}execute(e,t,n,s){return!(0,r.J)(e,t,n,4,s)}}},70722:(e,t,n)=>{n.d(t,{a:()=>i,d:()=>a,e:()=>o,s:()=>u});var r=n(49074),s=n(78125);function o(e,t){const n=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,r.g7)((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(n)),n)}function i(e,t){const n=e.map(s.fromGeometry),o=(0,s.getSpatialReference)(e);return(0,r.zo)(n,(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(o)).map(e=>(0,s.toGeometry)(e,o))}const u=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},70787:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>o,zo:()=>i});var r=n(76061);const s=new(n(64523).O);function o(e,t,n){return s.execute(e,t,n,null)}function i(e,t,n){const o=s.executeMany(new r.S(e),t,n,null);return Array.from(o)}function u(){return s.supportsCurves()}},77085:(e,t,n)=>{n.d(t,{Hh:()=>u,fz:()=>m,g7:()=>a,s1:()=>i,zo:()=>c});var r=n(76061),s=n(83290);let o;function i(){return!!o&&(0,s.i)()}async function u(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(1088)]).then(n.bind(n,31088)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,s.l)()]);o=new e.OperatorGeodeticDensifyByLength,t(s.p)}}function a(e,t,n,r){return o.execute(e,t,n,r,null)}function c(e,t,n,s){const i=o.executeMany(new r.S(e),t,n,s,null);return Array.from(i)}function m(){return o.supportsCurves()}},78812:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(83661),s=n(11878),o=n(34727);const i={uniform:0,conformal:1,rigid:2,"rigid-motion":3,general:4},u=e=>e.map(e=>new r.P(e.x,e.y));class a{constructor(){this.transform=new s.T}calculateErrors(e,t){const n=e.length,r=t.length;if(n!==r)throw new Error(`The input length (${n}) is not the same as output length (${r})`);const s=[];return{rms:this.transform.calculateErrors(n,u(e),u(t),s),errorsOut:s}}flipX(e,t){return this.transform.flipX(e,t),this}flipY(e,t){return this.transform.flipY(e,t),this}initializeFromControlPoints(e,t,n,r){const s=t.length,o=n.length;if(s!==o)throw new Error(`The input length (${s}) is not the same as output length (${o})`);this.transform.initializeFromControlPoints(i[e],s,u(t),u(n),r?.transform)}isIdentity(){return this.transform.isIdentity()}rotate(e,t,n){const s=(0,o.kU)(e);return null!=t&&null!=n?this.transform.rotateAngleAbout(s,new r.P(t,n)):this.transform.rotateAngle(s),this}scale(e,t){return this.transform.scale(e,t),this}setIdentity(){this.transform.setIdentity()}setSwapCoordinates(){return this.transform.setSwapCoordinates(),this}shear(e,t){return this.transform.shear(e,t),this}shift(e,t){return this.transform.shiftCoords(e,t),this}}},79533:(e,t,n)=>{n.d(t,{C:()=>s});var r=n(78125);function s(e,t,n=!1){const s=(0,r.toPoint)(e.m_coordinate,(0,r.getSpatialReference)(t)),o=e.m_distance,i=e.isEmpty(),u=e.m_bRightSide;return{coordinate:s,distance:o,isEmpty:i,...n&&{isRightSide:u},vertexIndex:e.m_vertexIndex}}},81150:(e,t,n)=>{n.d(t,{Pg:()=>a,fz:()=>c,g7:()=>i,zo:()=>u});var r=n(76061),s=(n(55537),n(88885),n(39117));n(95213);const o=new s.D;function i(e,t,n){return o.execute(e,t,n,null)}function u(e,t,n){const s=o.executeMany(new r.S(e),t,n,null);return Array.from(s)}function a(e,t,n){return o.isSimpleAsFeature(e,t,n,null,null)}function c(){return o.supportsCurves()}},83587:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>a,e:()=>o,s:()=>u});var r=n(96027),s=n(78125);function o(e,t){const n=(0,s.getSpatialReference)(e),o=(0,s.fromExtent)(t).asEnvelope2D();return(0,s.toGeometry)((0,r.g7)((0,s.fromGeometry)(e),o,(0,s.fromSpatialReference)(n)),n)}function i(e,t){const n=e.map(s.fromGeometry),o=(0,s.getSpatialReference)(e),i=(0,s.fromExtent)(t).asEnvelope2D();return(0,r.zo)(n,i,(0,s.fromSpatialReference)(o)).map(e=>(0,s.toGeometry)(e,o))}const u=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},84252:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>c,e:()=>u,s:()=>a});var r=n(39117),s=n(78125);const o=new r.E;function i(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function u(e,t){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const a=o.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},85181:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(39117);class s extends r.I{getOperatorType(){return 9}execute(e,t,n,s){return(0,r.J)(e,t,n,32,s)}}},85503:(e,t,n)=>{n.d(t,{a:()=>c,d:()=>l,e:()=>a,s:()=>m});var r=n(4576),s=n(34727),o=n(83047),i=n(91735),u=n(78125);function a(e,t,n={}){let{maxAngleInDegrees:r=0,maxDeviation:a=0,unit:c}=n;const m=(0,u.getSpatialReference)(e);return c&&(t=(0,o.UW)(t,c,m),a&&(a=(0,o.UW)(a,c,m))),(0,u.toGeometry)((0,i.g7)((0,u.fromGeometry)(e),t,a,(0,s.kU)(r)),m)}function c(e,t,n={}){let{maxAngleInDegrees:a=0,maxDeviation:c=0,unit:m}=n;const l=e.map(u.fromGeometry),f=(0,u.getSpatialReference)(e);return m&&(t=(0,o.UW)(t,m,f),c&&(c=(0,o.UW)(c,m,f))),(0,i.zo)(l,t,c,(0,s.kU)(a)).map(e=>(0,u.toGeometry)(e,f)).filter(r.Ru)}const m=(0,i.fz)(),l=Object.freeze(Object.defineProperty({__proto__:null,execute:a,executeMany:c,supportsCurves:m},Symbol.toStringTag,{value:"Module"}))},85549:(e,t,n)=>{n.d(t,{executeOffsetJson:()=>c,r:()=>a});var r=n(40547),s=n(66070),o=n(78125),i=n(83299);const u={round:0,bevel:1,miter:2,square:3};function a(e,t,n,s,i,u){t=(0,r.convertToSpatialReferenceUnit)((0,r.toLengthUnit)(n),e.spatialReference,t);const a=(0,o.fromGeometry)(e),c=(0,o.getSpatialReference)(e),l=m(a,(0,o.fromSpatialReference)(c),t,s,i,u);return(0,o.toGeometry)(l,c)}function c(e,t,n,s,o,u){t=(0,r.convertToSpatialReferenceUnit)((0,r.toLengthUnit)(n),e.spatialReference,t);const a=(0,i.fromGeometry)(e),c=a.getGeometry(),l=a.getSpatialReference(),f=m(c,l,t,s,o,u);return(0,i.toGeometry)(f,l)}function m(e,t,n,r,o,i){const a=(0,s.g7)(e,t,n,u[r],o,i);if(!a.isEmpty())return a;{const a=e.clone();a.reverseAllPaths();const c=(0,s.g7)(a,t,-n,u[r],o,i);if(!c.isEmpty())return c.reverseAllPaths(),c}const c=Math.abs(n)/10,m=c/10;let l=i;if("round"===r&&(l+=m),"bevel"===r||"square"===r){const a=(0,s.g7)(e,t,n,u[r="miter"],o,i);if(!a.isEmpty())return a}if("miter"===r){const a=(0,s.g7)(e,t,n,u[r="round"],o,i);if(!a.isEmpty())return a}if("round"===r)for(;l<=c;l+=m){const i=(0,s.g7)(e,t,n,u[r],o,l);if(!i.isEmpty())return i}return null}},86742:(e,t,n)=>{n.d(t,{Hh:()=>i,fz:()=>a,g7:()=>u,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(6859),n.e(6558)]).then(n.bind(n,6558)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(8344)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticArea,t(r.p)}}function u(e,t,n){return s.execute(e,t,n,null)}function a(){return s.supportsCurves()}},90756:(e,t,n)=>{n.d(t,{g:()=>f,f:()=>h});var r=n(76061),s=n(55537),o=n(88885),i=n(95213),u=n(39117),a=u.W;function c(e,t){return{m_geometry:e,m_side:t}}class m extends r.G{constructor(e,t,n,r,s){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=s,this.m_cuttee=t.clone(),this.m_cutter=new o.P({copy:n}),this.m_bConsiderTouch=e;const u=(0,i.g)(t,n);this.m_tolerance=(0,i.c)(r,u,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return this.m_cutIndex}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case s.G.enumPolyline:this.generatePolylineCuts();break;case s.G.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const e=new o.P,t=new o.P,n=new o.P;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,s,i){if(t.isEmpty()){const e=c(t,0);return void s.push(e)}if(n.isEmpty()){const e=c(t,0);return void s.push(e)}const m=[],l=new o.E;{const o=l.createGeometryUserIndex(),f=l.addGeometry(t),h=l.addGeometry(n),p=new u.U(i);let y=0,_=null;if(l.hasCurves()){_=new a;const e=l.getEnvelope2D(i);y=(0,u.Q)(r.total());const t=(0,u.R)(r.total(),e);(0,u.T)(l,t,r.total(),12e3,_,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,r),p.cut(e,o,f,h,m);for(const e of m){null!==_&&_.stitchCurves(l,e,y,!1);const t=c(l.getGeometry(e),(0,u.V)(l.getGeometryUserIndex(e,o)));s.push(t)}null!==_&&_.clearStitcher(l)}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side||4===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}n.isEmpty()||e.isEmpty()&&t.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const e=new o.a,t=new o.a,n=new o.a;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,s,i){if(t.isEmpty()){const e=c(t,0);return void s.push(e)}if(n.isEmpty()){const e=c(t,0);return void s.push(e)}const m=[],l=new o.E;{const e=l.createGeometryUserIndex(),f=l.addGeometry(t),h=l.addGeometry(n),p=new u.U(i);let y=0,_=null;if(l.hasCurves()){_=new a;const e=l.getEnvelope2D(i);y=(0,u.Q)(r.total());const t=(0,u.R)(r.total(),e);(0,u.T)(l,t,r.total(),12e3,_,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,r),p.cut(!1,e,f,h,m),null!==_&&_.stitchCurves(l,o.n,y,!0);let d=l.getGeometry(f);const g=new o.a,P=new o.a,x=[];for(let t=0;t<m.length;t++){let n=null;{const s=new o.E,a=s.addGeometry(d),c=s.addGeometry(l.getGeometry(m[t]));if(s.hasCurves()){const e=s.getEnvelope2D(i);y=(0,u.Q)(r.total());const t=(0,u.R)(r.total(),e);(0,u.T)(s,t,r.total(),12e3,_,null,i)}p.setEditShapeCrackAndCluster(s,r);const f=p.intersection(a,c);if(null!==_&&_.stitchCurves(s,o.n,y,!0),n=s.getGeometry(f),n.isEmpty())continue;const h=l.getGeometryUserIndex(m[t],e);2===h?g.add(n,!1):1===h?P.add(n,!1):x.push(n)}{const e=new o.E,n=e.addGeometry(d),s=e.addGeometry(l.getGeometry(m[t]));if(e.hasCurves()){const t=e.getEnvelope2D(i);y=(0,u.Q)(r.total());const n=(0,u.R)(r.total(),t);(0,u.T)(e,n,r.total(),12e3,_,null,i)}p.setEditShapeCrackAndCluster(e,r);const a=p.difference(n,s);null!==_&&_.stitchCurves(e,o.n,y,!0),d=e.getGeometry(a)}}if(!d.isEmpty()&&m.length>0&&x.push(d),g.isEmpty()&&P.isEmpty())return;if(!g.isEmpty()){const e=c(g,1);s.push(e)}if(!P.isEmpty()){const e=c(P,2);s.push(e)}for(let e=0,t=x.length;e<t;++e){const t=c(x[e],3);s.push(t)}}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}(0,s.g)(n.isEmpty()||1===r.length),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const l=new class{getOperatorType(){return 10005}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t,n,r,s){return new m(e,t,n,r,s)}};function f(e,t,n){const r=l.execute(!0,e,t,n,null);return Array.from(r)}function h(){return l.supportsCurves()}},90836:(e,t,n)=>{n.d(t,{a:()=>u,b:()=>a,e:()=>m,s:()=>c});var r=n(39117),s=n(78125);class o extends r.I{getOperatorType(){return 2}execute(e,t,n,s){return(0,r.J)(e,t,n,3,s)}}const i=new o;function u(e){const t=(0,s.getSpatialReference)(e);return i.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function a(e,t){return i.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const c=i.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:u,execute:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},91577:(e,t,n)=>{n.d(t,{fz:()=>_,g7:()=>h,qT:()=>y,zo:()=>p});var r=n(76061),s=n(55537),o=n(95213),i=n(88885),u=n(79187);class a extends r.G{constructor(e,t,n){super(),t||(0,s.a)(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=c(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return(0,s.o)(e),(0,s.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),m(e);this.m_bDone=!0}return null}}function c(e,t){const n=new i.C;let r;for(;r=e.next();)(0,s.o)(r),(0,s.c)(r),n.addGeometry(r);return n.getBoundingGeometry()}function m(e,t){if((0,s.c)(e),e.isEmpty())return e.createInstance();const n=e.getGeometryType();if((0,s.f)(n)){const t=e;if(t.isDegenerate(0)){const e=new o.P;return t.queryStart(e),e}if(t.getGeometryType()===s.G.enumLine){const n=new o.P,r=new i.P({vd:e.getDescription()});return t.queryStart(n),r.startPathPoint(n),t.queryEnd(n),r.lineToPoint(n),r}{const n=new i.P({vd:e.getDescription()});return n.addSegment(t,!0),m(n)}}if(n===s.G.enumEnvelope){const t=e,n=new u.Envelope2D;if(t.queryEnvelope(n),n.xmin===n.xmax&&n.ymin===n.ymax){const e=new o.P;return t.queryCornerByVal(0,e),e}if(n.xmin===n.xmax||n.ymin===n.ymax){const n=new o.P,r=new i.P({vd:e.getDescription()});return t.queryCornerByVal(0,n),r.startPathPoint(n),t.queryCornerByVal(1,n),r.lineToPoint(n),r}{const n=new i.a({vd:e.getDescription()});return n.addEnvelope(t,!1),n}}if(n===s.G.enumGeometryCollection)return c((0,i.g)(e,-1));if(l(e)){if(n===s.G.enumMultiPoint){const t=e,n=new o.P;return t.getPointByVal(0,n),n}return e}return(0,s.g)((0,s.i)(n)),(0,i.f)(e)}function l(e,t){if((0,s.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===s.G.enumPoint)return!0;if(n===s.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,s.f)(n)){const t=e;if(t.isDegenerate(0))return!1;if(n===s.G.enumLine)return!0;const r=new i.P;return r.addSegment(t,!0),l(r)}if(n===s.G.enumMultiPoint)return 1===e.getPointCount();if(n===s.G.enumPolyline){const t=e;return!t.hasNonLinearSegments()&&1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===s.G.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&l(t.getGeometry(0))}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}const f=new class{getOperatorType(){return 10102}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new a(t,e,n)}execute(e,t){return m(e)}isConvex(e,t){if((0,s.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===s.G.enumPoint)return!0;if(n===s.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,s.f)(n)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(n===s.G.enumMultiPoint)return 1===e.getPointCount();if(n===s.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===s.G.enumGeometryCollection){const n=e;return 1===n.getGeometryCount()&&this.isConvex(n.getGeometry(0),t)}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}constructOrientedMinimumBoundingBox(e,t,n,r,s){(0,i.e)(e,t,n,r,s)}};function h(e){return f.execute(e,null)}function p(e,t){const n=f.executeMany(new r.S(e),t,null);return Array.from(n)}function y(e){return f.isConvex(e,null)}function _(){return f.supportsCurves()}},91735:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>o,zo:()=>i});var r=n(76061);const s=new(n(5247).O);function o(e,t,n,r){return s.execute(e,t,n,r,null)}function i(e,t,n,o){const i=s.executeMany(new r.S(e),t,n,o,null);return Array.from(i)}function u(){return s.supportsCurves()}},92523:(e,t,n)=>{n.d(t,{a:()=>a,e:()=>u,g:()=>m,s:()=>c});var r=n(4576),s=n(83047),o=n(70787),i=n(78125);function u(e,t,n={}){const{removeDegenerateParts:r=!1,unit:u}=n,a=(0,i.getSpatialReference)(e);return u&&(t=(0,s.UW)(t,u,a)),(0,i.toGeometry)((0,o.g7)((0,i.fromGeometry)(e),t,r),a)}function a(e,t,n={}){const{removeDegenerateParts:u=!1,unit:a}=n,c=e.map(i.fromGeometry),m=(0,i.getSpatialReference)(e);return a&&(t=(0,s.UW)(t,a,m)),(0,o.zo)(c,t,u).map(e=>(0,i.toGeometry)(e,m)).filter(r.Ru)}const c=(0,o.fz)(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:u,executeMany:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},96027:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>o,zo:()=>i});var r=n(76061);const s=new(n(31139).O);function o(e,t,n){return s.execute(e,t,n,null)}function i(e,t,n){const o=s.executeMany(new r.S(e),t,n,null);return Array.from(o)}function u(){return s.supportsCurves()}},96957:(e,t,n)=>{n.d(t,{a:()=>u,b:()=>a,e:()=>i,s:()=>c});var r=n(4576),s=n(68613),o=n(78125);function i(e,t){const n=(0,o.getSpatialReference)(e);return(0,o.toGeometry)((0,s.g7)((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(n)),n)}function u(e,t){const n=e.map(o.fromGeometry),i=(0,o.getSpatialReference)(e);return(0,s.zo)(n,(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(i)).map(e=>(0,o.toGeometry)(e,i)).filter(r.Ru)}const a=(0,s.fz)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5605],{15605:(t,s,e)=>{e.r(s),e.d(s,{execute:()=>m,executeMany:()=>a});var i=e(4576),n=e(83047),o=e(66070),h=e(83299);const r={round:0,bevel:1,miter:2,square:3};function m(t,s,e={}){const{miterLimit:i=10,flattenError:m=0,joins:a="round",unit:c}=e,f=(0,h.getSpatialReference)(t);c&&f&&(s=(0,n.UW)(s,c,f));const _=(0,h.fromGeometry)(t),P=_.getSpatialReference();return(0,h.toGeometry)((0,o.g7)(_.getGeometry(),P,s,r[a],i,m),P)}function a(t,s,e={}){const{miterLimit:m=10,flattenError:a=0,joins:c="round",unit:f}=e,_=(0,h.getSpatialReference)(t);f&&_&&(s=(0,n.UW)(s,f,_));const[P,d]=(0,h.fromGeometries)(t);return(0,o.zo)(P,d,s,r[c],m,a).map(t=>(0,h.toGeometry)(t,d)).filter(i.Ru)}},66070:(t,s,e)=>{e.d(s,{g7:()=>l,zo:()=>y});var i=e(76061),n=e(95213),o=e(55537),h=e(88885),r=e(83661);const m=1.4142135623730951,a=.017453292519943295,c=256,f=1024;class _{static construct(t,s,e){const i=new _;return i.x=t.x,i.y=t.y,i.m_next=-1,i.m_prev=-1,i.z=s,i.m=e,i.type=0,i}clone(){const t=new _;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new r.P(this.x,this.y)}}class P{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===o.G.enumLine)return this.offsetLine();if(t===o.G.enumEnvelope)return this.offsetEnvelope();if((0,o.f)(t)){const t=new h.P;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===o.G.enumPolyline){const t=new h.P;return this.offsetMultiPath(t),t}if(t===o.G.enumPolygon){const t=new h.a;return this.offsetMultiPath(t),t}(0,o.t)("")}offsetLine(){const t=this.m_inputGeometry,s=t.getStartXY(),e=t.getEndXY(),i=new r.P;i.setSub(e,s),i.normalize(),i.leftPerpendicularThis(),i.scale(this.m_distance),s.addThis(i),e.addThis(i);const n=t.clone();return n.setStartXY(s),n.setEndXY(e),n}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const s=new h.a;return s.addEnvelope(t,!1),this.m_inputGeometry=s,this.constructOffset()}const s=t.clone();return s.inflateCoords(this.m_distance,this.m_distance),s}progress(){}static buildPoint(t,s,e,i){i.x=t.x+s*Math.cos(e),i.y=t.y+s*Math.sin(e),i.type=t.type,i.z=t.z,i.m=t.m,i.m_next=-1,i.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,s){if(0===this.m_offsetPtCount)return void this.addPoint(t);const e=this.m_srcPtCount,i=this.m_srcPts[0===s?e-1:s-1],n=this.m_srcPts[s],o=P.dotSign(i,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(o>0)this.addPoint(t);else if(o<0)if(P.dotSign(i,n,n,this.m_offsetPts[this.m_offsetPtCount-1])>0){const n=new _;let o;o=0===s?e-2:1===s?e-1:s-2;const h=this.m_srcPts[o],m=Math.atan2(i.y-h.y,i.x-h.x);if(P.buildPoint(i,this.m_distance,m-r.o,n),this.m_offsetPts[this.m_offsetPtCount-1]=n.clone(),1===this.m_joins||2===this.m_joins){n.x=.5*(n.x+i.x),n.y=.5*(n.y+i.y),this.addPoint(n),P.buildPoint(i,this.m_distance,this.m_a1+r.o,n);const t=n.clone();t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),t.type|=c,this.addPoint(t),this.addPoint(n)}else P.buildPoint(i,this.m_distance,this.m_a1+r.o,n),n.type|=c,this.addPoint(n);this.addPointEx(t,s)}else{const t=new _;if(P.buildPoint(n,this.m_distance,this.m_a1+r.o,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),this.addPoint(t),P.buildPoint(n,this.m_distance,this.m_a2-r.o,t);const s=t.clone();s.x=.5*(s.x+n.x),s.y=.5*(s.y+n.y),s.type|=c,this.addPoint(s),this.addPoint(t)}else P.buildPoint(n,this.m_distance,this.m_a2-r.o,t),t.type|=c,this.addPoint(t)}}buildOffset(){const t=new _,s=this.m_srcPtCount;this.m_offsetPtCount=0;const e=.5*this.m_tolerance;let i=0,n=0;for(let o=0;o<s;o++){const h=this.m_srcPts[o],_=0===o?this.m_srcPts[s-1]:this.m_srcPts[o-1],d=o===s-1?this.m_srcPts[0]:this.m_srcPts[o+1];let u,l,y=0;{const t=_.x-h.x,s=_.y-h.y,e=d.x-h.x,m=d.y-h.y;u=Math.atan2(s,t),l=Math.atan2(m,e),this.m_a1=u,this.m_a2=l,0===o&&(i=u,n=l),y=r.P.orientationRobust(h.asPoint2D(),_.asPoint2D(),d.asPoint2D())}const x=l;if(l<u&&(l+=r.p),!(Math.abs(Math.abs(u-l)-Math.PI)<1e-8))if(y*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){P.buildPoint(h,this.m_distance,u+r.o,t),this.addPoint(t);const s=.001;t.x=h.x+(t.x-h.x)*s,t.y=h.y+(t.y-h.y)*s,this.addPoint(t),P.buildPoint(h,this.m_distance,l-r.o,t);const e=t.clone();e.x=h.x+(e.x-h.x)*s,e.y=h.y+(e.y-h.y)*s,e.type|=c,this.addPoint(e),this.addPoint(t)}else{const s=.5*(l-u),e=0===s?this.m_distance:this.m_distance/Math.abs(Math.sin(s));P.buildPoint(h,e,.5*(u+l),t),this.addPointEx(t,o)}else{if(512&h.type){const s=1-e/Math.abs(this.m_distance);let i=1,n=this.m_distance<0?-Math.PI:Math.PI;if(s>-1&&s<1){let t=2*Math.acos(s);t<a&&(t=a),i=Math.trunc(Math.PI/t+1.5),i>1&&(n/=i)}i<=1&&(i=2,n/=2);let m=u+r.o;P.buildPoint(h,this.m_distance,m,t),0===o&&(t.type|=f),this.addPointEx(t,o);const c=this.m_distance/Math.cos(n/2);for(m+=n/2,P.buildPoint(h,c,m,t),t.type|=f,this.addPoint(t);--i>0;)m+=n,P.buildPoint(h,c,m,t),t.type|=f,this.addPoint(t);P.buildPoint(h,this.m_distance,l-r.o,t),t.type|=f,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const s=1-e/Math.abs(this.m_distance);let i=1,n=l-r.o-(u+r.o);if(s>-1&&s<1){let t=2*Math.acos(s);t<a&&(t=a),i=Math.trunc(Math.abs(n)/t+1.5),i>1&&(n/=i)}const m=this.m_distance/Math.cos(.5*n);let c=u+r.o+.5*n;for(P.buildPoint(h,m,c,t),this.addPointEx(t,o);--i>0;)c+=n,P.buildPoint(h,m,c,t),this.addPoint(t);continue}if(2===this.m_joins){const s=_.x-h.x,e=_.y-h.y,i=d.x-h.x,n=d.y-h.y;let a=(s*i+e*n)/Math.sqrt(s*s+e*e)/Math.sqrt(i*i+n*n);if(a=Math.max(a,-1),a>1-1e-8){P.buildPoint(h,m*this.m_distance,l-.25*Math.PI,t),this.addPointEx(t,o),P.buildPoint(h,m*this.m_distance,l+.25*Math.PI,t),this.addPoint(t);continue}const c=Math.abs(this.m_distance/Math.sin(.5*Math.acos(a))),f=Math.abs(this.m_miterLimit*this.m_distance);if(c>f){const s=.5*(l-u),e=this.m_distance/Math.abs(Math.sin(s));P.buildPoint(h,e,.5*(u+l),t);const i=r.P.construct(t.x,t.y),n=r.P.construct(h.x,h.y),m=new r.P;m.setSub(i,n);const a=new r.P;a.setScaleAdd(f/m.length(),m,n);const _=Math.sqrt(c*c-this.m_distance*this.m_distance),d=(c-f)*Math.abs(this.m_distance)/_;this.m_distance>0?m.rightPerpendicularThis():m.leftPerpendicularThis(),m.scale(d/m.length());const y=new r.P;y.setAdd(a,m);const x=new r.P;x.setSub(a,m),t.x=y.x,t.y=y.y,this.addPointEx(t,o),t.x=x.x,t.y=x.y,this.addPoint(t);continue}const y=.5*(l-u),x=this.m_distance/Math.abs(Math.sin(y));P.buildPoint(h,x,.5*(u+l),t),this.addPointEx(t,o);continue}{let s;if(l=x,this.m_distance>0?(l>u&&(l-=r.p),s=u-l<r.o):(l<u&&(l+=r.p),s=l-u<r.o),s){const s=this.m_distance*m;let e;e=s<0?u+.25*Math.PI:u+3*Math.PI*.25,P.buildPoint(h,s,e,t),this.addPointEx(t,o),e=s<0?l-.25*Math.PI:l-3*Math.PI*.25,P.buildPoint(h,s,e,t),this.addPoint(t)}else{const s=.5*(l-u),e=this.m_distance/Math.abs(Math.sin(s));l<u&&(l+=r.p),P.buildPoint(h,e,(u+l)/2,t),this.addPointEx(t,o)}}}else P.buildPoint(h,this.m_distance,u+r.o,t),this.addPointEx(t,o),P.buildPoint(h,this.m_distance,l-r.o,t),this.addPoint(t)}}return this.m_a1=i,this.m_a2=n,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let t=0;t<this.m_offsetPtCount;t++){const s=this.m_offsetPts[t];s.m_next=t+1,s.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let s=0;for(let e=0;e<this.m_offsetPtCount;e++)if(this.m_offsetPts[s].type&c){const e=this.deleteClosedSeg(s);if(-1===e){t=!0;break}s=e}else s=this.m_offsetPts[s].m_next;return!t&&(this.compressOffsetArray(s),!0)}deleteClosedSeg(t){const s=this.m_offsetPtCount-1;let e,i,n=t;for(let o=1;o<=s-2;o++){n=this.m_offsetPts[n].m_next,e=n,i=t;for(let t=1;t<=o;t++){if(i=this.m_offsetPts[i].m_prev,0===(this.m_offsetPts[i].type&c)&&0===(this.m_offsetPts[e].type&c)){const t=this.handleClosedIntersection(i,e);if(-1!==t)return t}e=this.m_offsetPts[e].m_prev}}return-1}handleClosedIntersection(t,s){const e=this.m_offsetPts[this.m_offsetPts[t].m_prev],i=this.m_offsetPts[t],n=this.m_offsetPts[this.m_offsetPts[s].m_prev],o=this.m_offsetPts[s];if(!this.sectGraphicRect(e,i,n,o))return-1;const h={pt:new _,bAtExistingPt:!1};if(((i.x-e.x)*(o.y-n.y)-(i.y-e.y)*(o.x-n.x))*this.m_distance<0&&this.findIntersection(e,i,n,o,h)&&!h.bAtExistingPt){const r=1e-8,m=Math.sqrt((i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y)),a=(i.x-e.x)/m,c=(i.y-e.y)/m,f=Math.sqrt((o.x-n.x)*(o.x-n.x)+(o.y-n.y)*(o.y-n.y)),_=(o.x-n.x)/f,P=(o.y-n.y)/f;let d=!1;const u=h.pt.clone();u.x+=(a+_)*r,u.y+=(c+P)*r;let l=n,y=h.pt,x=this.m_offsetPts[t].m_prev;for(;y.y>u.y!=l.y>u.y&&u.x<(l.x-y.x)*(u.y-y.y)/(l.y-y.y)+y.x&&(d=!d),l=y,x=this.m_offsetPts[x].m_next,x!==s;)y=this.m_offsetPts[x];if(d)return-1;const p=this.m_offsetPts[t].m_prev;return h.pt.type=i.type,h.pt.m_next=s,h.pt.m_prev=p,this.m_offsetPts[t]=h.pt,this.m_offsetPts[s].m_prev=t,s}return-1}sectGraphicRect(t,s,e,i){return Math.max(t.x,s.x)>=Math.min(e.x,i.x)&&Math.max(e.x,i.x)>=Math.min(t.x,s.x)&&Math.max(t.y,s.y)>=Math.min(e.y,i.y)&&Math.max(e.y,i.y)>=Math.min(t.y,s.y)}findIntersection(t,s,e,i,n){let o,h,r,m;return n.bAtExistingPt=!1,o=(s.y-t.y)*(i.x-e.x)-(s.x-t.x)*(i.y-e.y),h=(e.y-t.y)*(s.x-t.x)-(e.x-t.x)*(s.y-t.y),r=0===o?2:h/o,r>=0&&r<=1&&(m=r,o=(i.y-e.y)*(s.x-t.x)-(i.x-e.x)*(s.y-t.y),h=(t.y-e.y)*(i.x-e.x)-(t.x-e.x)*(i.y-e.y),r=0===o?2:h/o,r>=0&&r<=1)&&(n.pt.x=t.x+r*(s.x-t.x),n.pt.y=t.y+r*(s.y-t.y),this.m_bUseZ&&(n.pt.z=e.z+m*(i.z-e.z)),this.m_bUseM&&(n.pt.m=e.m+m*(i.m-e.m)),0!==m&&1!==m||0!==r&&1!==r||(n.bAtExistingPt=!0),!((0===m||1===m)&&r>0&&r<1||(0===r||1===r)&&m>0&&m<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let s=0,e=t;do{const t=this.m_offsetPts[e].clone();this.m_offsetPts[s]=t,e=t.m_next,s++}while(e!==t);this.m_offsetPts[s]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=s+1}addPart(t,s){if(!(s<2))for(let e=0;e<s;e++){const s=this.m_offsetPts[t+e];if(e?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(s.x,s.y,s.z):this.m_resultPath.lineToCoords(s.x,s.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(s.x,s.y,s.z):this.m_resultPath.startPathCoords(s.x,s.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,s.m)}}}offsetMultiPath(t){const s=(0,h.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),e=s.querySegmentIterator();e.resetToFirstPath();let i=-1;for(;e.nextPath();)i++,this.offsetPath(s,i,t)}offsetPath(t,s,e){let i=t.getPathStart(s),n=t.getPathEnd(s);if(this.m_resultPath=e,t.isClosedPath(s)){const s=t.getXY(i);for(;n>i&&t.getXY(n-1).equals(s);)n--;if(n-i>=2){this.m_srcPtCount=n-i,this.m_srcPts.length=this.m_srcPtCount;for(let s=i;s<n;s++)this.progress(),this.m_srcPts[s-i]=_.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const s=t.getXY(i);for(;i<n-1&&t.getXY(i+1).equals(s);)i++;const e=t.getXY(n-1);for(;i<n-1&&t.getXY(n-2).equals(e);)n--;if(n-i>=2){this.m_srcPtCount=2*(n-i)-2,this.m_srcPts.length=this.m_srcPtCount;let e=_.construct(s,this.m_bUseZ?t.getAttributeAsDbl(1,i,0):0,this.m_bUseM?t.getAttributeAsDbl(2,i,0):0);e.type|=1536,this.m_srcPts[0]=e;let o=1,h=this.m_srcPtCount-1;for(let s=i+1;s<n-1;s++,o++,h--)this.progress(),e=_.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0),this.m_srcPts[o]=e.clone(),e.type|=f,this.m_srcPts[h]=e.clone();if(e=_.construct(t.getXY(n-1),this.m_bUseZ?t.getAttributeAsDbl(1,n-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n-1,0):0),e.type|=512,this.m_srcPts[o]=e.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,s=-1,e=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&f);e||(t=0);for(let i=1;i<this.m_offsetPtCount;i++){this.progress();const n=0!==(this.m_offsetPts[i].type&f);n?e||(s=i-1,s-t+1>1&&this.addPart(t,s-t+1)):e&&(t=i-1),e=n}e||(s=this.m_offsetPtCount-1,s-t+1>1&&this.addPart(t,s-t+1))}else{const t=0,s=this.m_offsetPtCount-1;s-t>=1&&this.addPart(t,s-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,s,e,i){const n=s.x-t.x,o=s.y-t.y,h=i.x-e.x,m=i.y-e.y,a=(0,r.t)(n,o,h,m);return(0,r.e)(a)}}class d extends i.G{constructor(t,s,e,i,n,o,h){super(),this.m_progressTracker=h,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=s,this.m_distance=e,this.m_joins=i,this.m_miterLimit=n,this.m_flattenError=o}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let s;return(0,o.c)(t),s=this.m_flattenError<=0?(0,n.b)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,s,e,i,n,h){if(null===t&&(0,o.a)(""),t.getDimension()<1&&(0,o.a)(""),n>0||(0,o.a)(""),(0,o.c)(t),0===s||t.isEmpty())return t;const r=new P(h);return r.m_bUseZ=t.hasAttribute(1),r.m_bUseM=t.hasAttribute(2),r.m_inputGeometry=t,r.m_distance=s,r.m_tolerance=n,r.m_joins=e,r.m_miterLimit=i>1?i:1,r.m_progressCounter=0,r.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,s,this.m_progressTracker)}}const u=new class{getOperatorType(){return 10108}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,s,e,i,n,o,h){return new d(t,s,e,i,n,o,h)}execute(t,s,e,i,n,o,h){return new d(null,s,e,i,n,o,h).offset(t)}};function l(t,s,e,i,n,o){return u.execute(t,s,e,i,n,o,null)}function y(t,s,e,n,o,h){const r=u.executeMany(new i.S(t),s,e,n,o,h,null);return Array.from(r)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{926:(e,t,r)=>{r.d(t,{CG:()=>a,Dd:()=>i,Jn:()=>l,Qc:()=>u});var s=r(92602),n=r(84952);const o=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function a(e){if(!u(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),r=s.A.apiKeys;if(Array.isArray(r.scopes))for(const e of r.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return r.basemapStyles&&/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i.test(e)?r.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?s.A.apiKey:null}function i(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function l(e,t){return t?u(e):null!=a(e)}function u(e){const t=(0,n.$z)(e,!0);return!!t&&!o.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},2741:(e,t,r)=>{r.d(t,{s:()=>i});var s=r(92602),n=(r(43773),r(49186)),o=r(53966),a=r(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},43773:(e,t,r)=>{r.d(t,{A:()=>j});var s=r(92602),n=r(70333);const o={corsServers:["https://server.arcgisonline.com","https://services.arcgisonline.com"],beforeFetch:void 0,fetch:fetch.bind(null),afterFetch:void 0,isForeignWorker:!1};var a=r(49186),i=r(44208),l=r(4718),u=r(74887),c=r(84952),d=r(39131);class p{constructor(e,t){this.element=e,this.type="image+type",this.isOpaque="image/jpeg"===t}}var f=r(926),h=r(56058);const m="FormData"in globalThis,g=new Set([499,498,403,401]),y=new Set(["COM_0056","COM_0057","SB_0008"]),w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i];async function v(e){let t,r;await async function(e){const t=e.parameters.url,r=e.parameters.requestOptions,a=e.controller.signal,i=r.body;let l=null,c=null;if(m&&"HTMLFormElement"in globalThis&&(i instanceof FormData?l=i:i instanceof HTMLFormElement&&(l=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},keepalive:r.keepAlive??!1,method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:r.priority??s.A.request.priority,redirect:"follow",signal:a},(l||c)&&(e.fetchOptions.body=l||c),(o.isForeignWorker||"anonymous"===r.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||l?.get("token")),!e.hasToken){const s=(0,f.CG)(t);s&&(r.query??={},r.query.token=s,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!C(t)&&!(0,u.G4)(a)){let s;"immediate"===r.authMode?(await A(),s=await n.id.getCredential(t,{signal:a})):"no-prompt"===r.authMode?(await A(),s=await n.id.getCredential(t,{prompt:!1,signal:a}).catch(()=>{})):n.id&&(s=n.id.findCredential(t)),s&&(e.credential=s,e.credentialToken=s.token,e.useSSL=!!s.ssl)}}(e);try{do{[t,r]=await b(e)}while(!await O(e,t,r))}catch(r){const s=T("request:server",r,e.parameters,t);throw s.details.ssl=e.useSSL,e.interceptor?.error?.(s),s}const a=e.parameters.url;if(r)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,c.FL)(a)){const e=(0,c.$z)(a,!0);e&&s.A.request.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,h.tz)(r.authorizedCrossOriginNoCorsDomains)}else"json"===(e.parameters.requestOptions.responseType||"json")&&(0,h.gS)(a,r);const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,i.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):L,getHeader:t?e=>t.headers.get(e):L,httpStatus:t?.status??200,requestOptions:e.parameters.requestOptions,ssl:e.useSSL,url:e.parameters.url}}async function b(e){let t=e.parameters.url,r=(0,h.$x)(t);const a=e.parameters.requestOptions,l=e.fetchOptions??{},f=(0,c.w8)(t)||(0,c.DB)(t),g=a.responseType??"json",y="image"===g&&a.imageWithType,w=f?0:null!=a.timeout?a.timeout:s.A.request.timeout;let v=!1;if(!f){e.useSSL&&(t=(0,c.lM)(t));let o={...a.query};e.credentialToken&&(o.token=e.credentialToken);let u=(0,c.x0)(o);(0,i.A)("esri-url-encodes-apostrophe")&&(u=u.replaceAll("'","%27"));const p=r.length+1+u.length;let f;v="delete"===a.method||"post"===a.method||"put"===a.method||!!a.body||p>s.A.request.maxUrlLength;const g=a.useProxy||!!(0,c.zs)(t);if(g){const e=(0,c.s_)(t);f=e.path,!v&&f.length+1+p>s.A.request.maxUrlLength&&(v=!0),e.query&&(o={...e.query,...o})}if("HEAD"===l.method&&(v||g)){if(v){if(p>s.A.request.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),e.parameters);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.parameters)}if(g)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.parameters)}if(v?(l.method="delete"===a.method?"DELETE":"put"===a.method?"PUT":"POST",a.body?t=(0,c.a6)(t,o):(l.body=(0,c.x0)(o),l.headers||(l.headers={}),l.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.a6)(t,o),g&&(e.useProxy=!0,t=`${f}?${t}`),o.token&&m&&l.body instanceof FormData&&!(0,d.$E)(t)&&l.body.set("token",o.token),a.hasOwnProperty("withCredentials"))e.withCredentials=a.withCredentials;else if(!(0,c.FX)(t,(0,c.Xq)()))if((0,c.FL)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(l.credentials="include",(0,h.xW)(t)&&await(0,h.m3)(v?(0,c.a6)(t,o):t)),r=(0,h.$x)(t)}let A,C,O=0,x=!1;w>0&&(O=setTimeout(()=>{x=!0,e.controller.abort()},w));try{if("native-request-init"===a.responseType)C=l,C.url=r,a.signal?C.signal=a.signal:delete C.signal;else if("image"!==a.responseType||"default"!==l.cache||l.keepalive||"GET"!==l.method||v||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(a.headers)||!f&&!e.useProxy&&s.A.request.proxyUrl&&!S(t)){if(await(o.beforeFetch?.(t,l)),A=await o.fetch(r,l),await(o.afterFetch?.(A)),e.useProxy||function(e){const t=(0,c.$z)(e);t&&!o.corsServers.includes(t)&&o.corsServers.push(t)}(t),"native"===a.responseType)C=A;else if("HEAD"!==l.method)if(A.ok){switch(g){case"array-buffer":C=await A.arrayBuffer();break;case"blob":C=await A.blob();break;case"image":C=await(y?A.arrayBuffer():A.blob());break;default:C=await A.text()}if(O&&(clearTimeout(O),O=0),"json"===g||"xml"===g||"document"===g)if(C)switch(g){case"json":C=JSON.parse(C);break;case"xml":C=k(C,"application/xml");break;case"document":C=k(C,"text/html")}else C=null;if(C){if("array-buffer"===g||"blob"===g){const e=A.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&C["blob"===g?"size":"byteLength"]<=750)try{const e=await new Response(C).json();e.error&&(C=e)}catch{}}if(y&&C instanceof ArrayBuffer){const t=function(e){if(e.byteLength<2)return"unknown";const t=new Uint8Array(e,0,e.byteLength);return 137===t[0]&&80===t[1]?"image/png":71===t[0]&&73===t[1]?"image/gif":66===t[0]&&77===t[1]?"image/bmp":255===t[0]&&216===t[1]?"image/jpeg":"unknown"}(C);if("unknown"===t)return a.responseType="image",await b(e);C=await A.blob(),C=await q(URL.createObjectURL(C),e,!0),C=new p(C,t)}"image"===g&&C instanceof Blob&&(C=await q(URL.createObjectURL(C),e,!0))}}else{C=await A.text();try{C=JSON.parse(C)}catch{}}}else C=await q(r,e)}catch(r){if("AbortError"===r.name){if(x)throw(0,h.ql)();throw(0,u.NK)("Request canceled")}if(!(!A&&r instanceof TypeError&&s.A.request.proxyUrl)||a.body||"delete"===a.method||"head"===a.method||"post"===a.method||"put"===a.method||e.useProxy||S(t))throw r;e.redoRequest=!0,(0,c.oy)({proxyUrl:s.A.request.proxyUrl,urlPrefix:(0,c.$z)(t)??""})}finally{O&&clearTimeout(O)}return[A,C]}function q(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=s.A.request.priority,o.src=e,(0,h.Sx)(o,e,r,n)}function S(e){const t=(0,c.$z)(e);return!t||t.endsWith(".arcgis.com")||o.corsServers.includes(t)||(0,c.FL)(t)}async function A(){n.id||await Promise.all([r.e(7330),r.e(7603),r.e(168),r.e(4684),r.e(5482),r.e(4272),r.e(2507)]).then(r.bind(r,74272))}function C(e){return w.some(t=>t.test(e))}function k(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function O(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.parameters.requestOptions;if(!t||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let o,a;if(r&&(r.error&&"object"==typeof r.error?o=r.error:"error"===r.status&&Array.isArray(r.messages)&&(o={...r},o[x]=r,o.details=r.messages)),!o&&!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[x]=r,o;let i,l=null;o&&(a=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,i=o.messageCode,i=i?.toUpperCase());const u=s.authMode;if(403===a&&(4===l||o.message?.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&g.has(a)&&!C(e.parameters.url)&&(403!==a||(!i||!y.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{const t=await n.id.getCredential(e.parameters.url,{error:T("request:server",o,e.parameters),credential:e.credential,prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;o=t}}if(o)throw o;return!0}function T(e,t,r,s){let n;const o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:L,getHeader:L,ssl:!1};if(t instanceof a.A)return t.details?(t.details=(0,l.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){const e=s&&(()=>Array.from(s.headers)),r=s&&(e=>s.headers.get(e)),a=s?.status,i=t.message;i&&(n=i),e&&r&&(o.getAllHeaders=e,o.getHeader=r),o.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||a||0,o.subCode=t.subcode,o.messageCode=t.messageCode,"string"==typeof t.details?(o.messages=[t.details],n??=t.details):(o.messages=t.details,n??=o.messages?.[0]),o.raw=x in t?t[x]:t}return n??="Error",(0,u.zf)(t)?(0,u.NK)():new a.A(e,n,o)}const x=Symbol(),L=()=>null;var U=r(91869),E=r(60694);async function P(e){const t=function(e){let t,r=!1;return"string"==typeof e?(t=(0,c.$z)(e,!0),r=(0,E.Wo)(e)):(t=e.origin,r=(0,E.Wo)(e.toString())),null==t?null:{origin:t,isHosted:r}}(e.parameters.url);if(!t)return null;const{QueueProcessor:s,SharedConcurrency:n}=await r.e(563).then(r.bind(r,563));return(0,U.tE)($,t.origin,()=>{const e=(t.isHosted?(0,i.A)("request-queue-concurrency-hosted"):(0,i.A)("request-queue-concurrency-non-hosted"))??4;return R??=new n((0,i.A)("request-queue-concurrency-global")??50),new s({concurrency:e,sharedConcurrency:R,process:e=>{if((0,u.G4)(e.parameters.requestOptions))throw T("",(0,u.NK)("Request canceled"),e.parameters);return v(e)}})})}const $=new Map;let R,I;async function j(e,t){e instanceof URL&&(e=e.toString());const s=(0,c.DB)(e),n=(0,c.w8)(e);n||s||(e=(0,c.S8)(e));const a={url:e,requestOptions:{...t}};t?.query&&(a.requestOptions.query=t?.query instanceof URLSearchParams?(0,c.zf)(t.query.toString().replaceAll("+"," ")):t?.query);const l=e=>({data:e,getAllHeaders:F,getHeader:F,httpStatus:200,requestOptions:a.requestOptions,url:a.url}),d=(0,c.sC)(e,D.internalInterceptors);if(d){const e=await z(d,a);if(null!=e)return l(e)}let p=(0,c.sC)(e);if(p){const e=await z(p,a);if(null!=e)return l(e);p.after||p.error||(p=null)}if(e=a.url,"image"===(t=a.requestOptions).responseType&&((0,i.A)("host-webworker")||(0,i.A)("host-node")))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),a);if("head"===t.method){if(t.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),a);if(s||n)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),a)}if(await async function(){(0,i.A)("host-webworker")&&(!I&&globalThis.invokeStaticMessage?I=await r.e(369).then(r.bind(r,40369)):o.isForeignWorker=!0)}(),I)return I.execute(e,t);const f=new AbortController,h=(0,u.u7)(t,()=>f.abort()),m={controller:f,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:p,parameters:a,redoRequest:!1,useIdentity:D.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=t.useQueue?async function(e){const t=await P(e);return t?t.push(e):v(e)}(m):v(m),y=await g.finally(()=>h?.remove());return p?.after?.(y),y}const D=s.A.request,F=()=>null;async function z(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,s;try{s=await e.before(t)}catch(e){r=T("request:interceptor",e,t)}if((s instanceof Error||s instanceof a.A)&&(r=T("request:interceptor",s,t)),r)throw e.error&&e.error(r),r;return s}}},56058:(e,t,r)=>{r.d(t,{$x:()=>w,Sx:()=>l,c8:()=>p,gS:()=>y,m3:()=>m,ql:()=>d,tz:()=>f,xW:()=>h});var s=r(92602),n=r(74887),o=r(84952),a=r(60694),i=r(39131);function l(e,t,r=!1,s){return new Promise((o,a)=>{if((0,n.G4)(s))return void a(u());let i=()=>{d(),a(new Error(`Unable to load ${t}`))},l=async()=>{const t=e;try{await t.decode()}catch{}d(),o(t)},c=()=>{if(!e)return;const t=e;d(),t.src="",a(u())};const d=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,s?.removeEventListener("abort",c),c=null,r&&URL.revokeObjectURL(t))};s?.addEventListener("abort",c),e.addEventListener("error",i),e.addEventListener("load",l)})}function u(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const c="Timeout exceeded";function d(){return new Error(c)}function p(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===c}function f(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});const t=s.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,o.$z)(r)??""]=0:(t[(0,o.$z)("http://"+r)??""]=0,t[(0,o.$z)("https://"+r)??""]=0)}function h(e){const t=s.A.request.crossOriginNoCorsDomains;if(t){let r=(0,o.$z)(e);if(r)return r=r.toLowerCase(),!(0,o.FX)(r,(0,o.Xq)())&&t[r]<Date.now()-36e5}return!1}async function m(e){const t=(0,o.An)(e);e=t.path,"json"===t.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const r=s.A.request.crossOriginNoCorsDomains,n=(0,o.$z)(e);r&&n&&(r[n.toLowerCase()]=Date.now())}const g=new Map;function y(e,t){const r=t?.preferredHost;if(!r||(0,o.FX)(e,`https://${r}`,!0))return;const s=(0,a.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,i.$E)(e))return;const n=s.url.path.toLowerCase();g.has(n)||g.set(n,r)}function w(e){const t=(0,a.qg)(e)?.url.path.toLowerCase();if(!t)return e;const r=g.get(t);return r?(0,o.hf)(e,r):e}},60694:(e,t,r)=>{r.d(t,{Fi:()=>c,HZ:()=>w,Jf:()=>y,LS:()=>v,Wo:()=>g,bd:()=>b,cr:()=>f,iz:()=>p,qg:()=>d,yG:()=>h});var s=r(84952),n=r(97159);const o={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},a=Object.values(o),i=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function c(e){return i.test(e)}function d(e){if(null==e)return null;const t=(0,s.An)(e),r=t?.path.match(i)||t?.path.match(l);if(!r)return null;const[,n,a,u,c]=r,d=a.indexOf("/");return{title:f(-1!==d?a.slice(d+1):a),serverType:o[u.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:n}}}function p(e){const t=(0,s.An)(e).path.match(u);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function h(e,t){const r=[];if(e){const t=d(e);null!=t&&t.title&&r.push(t.title)}if(t){const e=f(t);r.push(e)}if(2===r.length){if(r[0].toLowerCase().includes(r[1].toLowerCase()))return r[0];if(r[1].toLowerCase().includes(r[0].toLowerCase()))return r[1]}return r.join(" - ")}const m=["services","features","tiles","elevation3d"];function g(e){let t=(0,s.$z)(e,!0);return!!t&&(t=t.toLowerCase(),!!t.endsWith(".arcgis.com")&&(!!m.some(e=>t.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(t)))}function y(e,t){return e?(0,s.UC)((0,s.zi)(e,t)):e}function w(e){let{url:t}=e;if(!t)return{url:t};t=(0,s.zi)(t,e.logger);const r=(0,s.An)(t),n=d(r.path);let o;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),t=n.url.path;else if(e.nonStandardUrlAllowed){const e=p(r.path);null!=e&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,s.UC)(t),layerId:o}}function v(e,t,r,o,a){(0,n.w)(t,o,"url",a),o.url&&null!=e.layerId&&(o.url=(0,s.fj)(o.url,r,e.layerId.toString()))}function b(e){if(!e)return!1;const t=e.toLowerCase(),r=t.includes("/services/"),s=t.includes("/mapserver/wmsserver"),n=t.includes("/imageserver/wmsserver"),o=t.includes("/wmsserver");return r&&(s||n||o)}},91869:(e,t,r)=>{function s(e,t){for(const r of e.values())if(t(r))return!0;return!1}function n(e,t,r){const s=e.get(t);if(void 0!==s)return s;const n=r();return e.set(t,n),n}function o(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>o,Bs:()=>s,tE:()=>n})},97159:(e,t,r)=>{r.d(t,{a:()=>g,b:()=>w,e:()=>h,f:()=>a,i:()=>p,p:()=>f,r:()=>l,t:()=>i,w:()=>u});var s=r(70333),n=r(84952),o=r(39131);function a(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,n.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,n.V1)(e,t.portalItem.itemUrl);null!=r&&r.startsWith(d)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=m(e,t?.portal))&&c.test(e)?g(e):e}function i(e,t,r=0){if(null==(e=e&&c.test(e)?y(e):e))return e;!(0,n.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const o=m(r,t.portal),a=m(s,t.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=h(s,t?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),t?.resources&&t?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===r&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,t,r){return a(e,r)}function u(e,t,r,s){const n=i(e,s);void 0!==n&&(t[r]=n)}const c=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){const t=e?.match(c)??null;return t?.[1]??null}function f(e){const t=e?.match(c)??null;if(null==t)return null;const r=t[2],s=r.lastIndexOf("/");if(-1===s){const{path:e,extension:t}=(0,n.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:o,extension:a}=(0,n.xw)(r.slice(s+1));return{prefix:r.slice(0,s),filename:o,extension:a}}function h(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,n.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function m(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${r}`)?(0,n.T1)(e,t.portalHostname,r):(0,n.T1)(e,r,t.portalHostname)}function g(e){if(!e)return e||null;let t=e;return t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function y(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t)),t}const w=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:h,fromCDNUrl:y,fromJSON:a,itemIdFromResourceUrl:p,prefixAndFilenameFromResourceUrl:f,read:l,toCDNUrl:g,toJSON:i,write:u},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1277,7561],{21277:(t,e,r)=>{r.r(e),r.d(e,{executeForTopIds:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.KW)(n,s.default.from(e),{...r})).data.objectIds}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1277,7561],{21277:(t,e,r)=>{r.r(e),r.d(e,{executeForTopIds:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.KW)(n,s.default.from(e),{...r})).data.objectIds}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(43773),o=r(84952),s=r(65864),n=r(17136),l=r(21325),u=r(10536),p=r(58501);const a="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(a);if(e.hasOwnProperty("count"))throw new Error(a);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function g(t,e,r,s={},l={}){const p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(a,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const a=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...a,...s.query}})})}},57561:(t,e,r)=>{r.r(e),r.d(e,{default:()=>f});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(10107),p=r(56507),a=r(64108),d=r(43937),y=r(16930),c=r(65864),h=r(50498),m=r(77696);r(44208),r(53966),r(87811);let g=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],g.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],g.prototype,"orderByFields",void 0),g=i=(0,o.Cg)([(0,a.$)("esri.rest.support.TopFilter")],g);const w=g;var F,v=r(79677);const j=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),S=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let f=class extends((0,m.y)(n.o)){static{F=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new F((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],f.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:h.yR,json:{read:c.rS,write:!0}})],f.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],f.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],f.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],f.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],f.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],f.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:y.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],f.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],f.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],f.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],f.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],f.prototype,"start",void 0),(0,o.Cg)([(0,d.K)("start"),(0,d.K)("num")],f.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:j.read},write:{target:"spatialRel",writer:j.write}}})],f.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:v.A,json:{write:!0}})],f.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:w,json:{write:!0}})],f.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:S.read,write:{writer:S.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],f.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=F=(0,o.Cg)([(0,a.$)("esri.rest.support.TopFeaturesQuery")],f),f.from=(0,p.dp)(f)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[547,3169,5549,8125],{40547:(t,e,s)=>{s.d(e,{convert:()=>C,convertFromSpatialReferenceUnit:()=>x,convertToSpatialReferenceUnit:()=>b,meters:()=>i.L2,squareMeters:()=>i.A7,toAreaUnit:()=>_,toLengthUnit:()=>P});var n=s(59534),r=s(85935),i=s(71409);const a=[];function o(t){return 0===t.length?'""':t.startsWith('"')||t.startsWith(".")||t[0]>="0"&&t[0]<="9"?t:'"'+t.trim()+'"'}function c(t){let e="",s="",n=!1;for(let r=0;r<t.length;r++){const i=t[r];n?'"'===i?'"'===t[r+1]?(e+=`\\${i}`,r+=1):n=!1:e+=i:/\s/.test(i)||(","===i?(s+=""!==e?o(e)+",":",",e=""):")"===i||"]"===i?(s+=""!==e?o(e)+"]}":"]}",e=""):"("===i||"["===i?(s+='{ "entity": "'+e.toUpperCase().trim()+'", "values":[',e=""):'"'===i?(n=!0,e=""):e+=i)}return JSON.parse(s)}function u(t){try{for(let e=0;e<a.length;e++)if(a[e].spatialReferenceWkt===t)return a[e].unit;const e=l(c(t));if(null===e)return null;let s=null;for(const t of e.values)if("object"==typeof t&&("UNIT"===t.entity||"ANGLEUNIT"===t.entity||"LENGTHUNIT"===t.entity)){s=t;break}if(null===s)return null;const n=function(t,e,s){if(null!=s)try{if("EPSG"===s.values[0])return{type:t,wkid:Number.parseInt(s.values[1],10),factor:e}}catch(t){}return{type:t,factor:e}}("GEOGCS"===e.entity||"GEOGCRS"===e.entity?"angular":"linear",s.values[1],s.values[2]);return a.push({spatialReferenceWkt:t,unit:n}),a.length>10&&a.shift(),n}catch(t){return null}}function l(t){if(null===t)return null;switch(t.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return t}const e=[];for(const s of t.values)if("object"==typeof s&&void 0!==s.entity)switch(s.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return s;default:e.push(s)}for(const t of e){const e=l(t);if(null!=e)return e}return null}s(44208);var m=s(83047),h=s(22530);const f=-1;function d(t,e){let s;switch(t){case"linear":s=i.s9;break;case"angular":s=i.zD;break;case"area":s=i.y6;break;default:return null}return s.get(e)}function y(t){const e=t.wkid;if(null!=e){const t=h.A.units[h.A[e]];if(null!=t)switch(t){case"Meter":return d("linear",9001);case"Foot":return d("linear",9002);case"Foot_US":return d("linear",9003);case"Foot_Clarke":return d("linear",9005);case"Yard_Clarke":return d("linear",9037);case"Link_Clarke":return d("linear",9039);case"Yard_Sears":return d("linear",9040);case"Foot_Sears":return d("linear",9041);case"Chain_Sears":return d("linear",9042);case"Chain_Benoit_1895_B":return d("linear",9062);case"Yard_Indian":return d("linear",9084);case"Yard_Indian_1937":return d("linear",9085);case"Foot_Gold_Coast":return d("linear",9094);case"Chain":return d("linear",9097);case"Chain_Sears_1922_Truncated":return d("linear",9301);case"50_Kilometers":return d("linear",109030);case"150_Kilometers":return d("linear",109031);default:throw new Error(`Unknown unit name: ${t}`)}return m.yD.has(e)?d("angular",9105):d("angular",9102)}const s=t.wkt2||t.wkt;if(null!=s){const t=u(s);if(null!=t){if(null!=t.wkid){const e=d(t.type,t.wkid);if(null!=e)return e}return{type:t.type,wkid:f,factor:t.factor}}}return null}function p(t){if("linear"!==t.type)return null;if(t.wkid===f)return{type:"area",wkid:f,factor:t.factor**2};const e=i.SQ.get(t.wkid);return null==e?null:d("area",e)}function _(t){if(null!=t){if("number"==typeof t)return i.y6.get(t)??i.s9.get(t)??i.zD.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return i.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return i.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.y6.get(109414);case"acres":case"acre":case"ac":return i.y6.get(109402);case"hectares":case"hectare":case"ha":return i.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return i.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return i.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.y6.get(109413)}}}function P(t){if(null!=t){if("number"==typeof t)return i.s9.get(t)??i.zD.get(t)??i.y6.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return i.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return i.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return i.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return i.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.s9.get(9035)}}}function g(t,e,s){if(t.type!==e.type)throw new Error(`Incompatible unit types. src=${t.type} dest=${e.type}`);return s*(t.factor/e.factor)}function x(t,e,s){if(null==t||null==e)return s;const n=y(t);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===e.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${e.type} unit.`);return g(r,e,s)}function b(t,e,s){if(null==t||null==e)return s;const n=y(e);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===t.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${t.type} unit.`);return g(t,r,s)}function C(t,e,s){return null==t||null==e?s:g(t,e,s)}},59534:(t,e,s)=>{s.d(e,{B:()=>r,b:()=>i});var n=s(85935);function r(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class i{constructor(t,e){const s=new Map;for(const e of t){const t=r(e);if(s.has(t))throw new Error(`${e} already added as ${s.get(t)}`);s.set(t,e)}if(null!=e)for(const[t,n]of e){const e=r(t);if(s.has(e))throw new Error(`${t} already associated with ${s.get(e)}`);s.set(e,n)}this._enumMap=s}lookup(t){return this._enumMap.get(r(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$(null,"InvalidParameter",null);return e}}},66070:(t,e,s)=>{s.d(e,{g7:()=>p,zo:()=>_});var n=s(76061),r=s(95213),i=s(55537),a=s(88885),o=s(83661);const c=1.4142135623730951,u=.017453292519943295,l=256,m=1024;class h{static construct(t,e,s){const n=new h;return n.x=t.x,n.y=t.y,n.m_next=-1,n.m_prev=-1,n.z=e,n.m=s,n.type=0,n}clone(){const t=new h;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new o.P(this.x,this.y)}}class f{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===i.G.enumLine)return this.offsetLine();if(t===i.G.enumEnvelope)return this.offsetEnvelope();if((0,i.f)(t)){const t=new a.P;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===i.G.enumPolyline){const t=new a.P;return this.offsetMultiPath(t),t}if(t===i.G.enumPolygon){const t=new a.a;return this.offsetMultiPath(t),t}(0,i.t)("")}offsetLine(){const t=this.m_inputGeometry,e=t.getStartXY(),s=t.getEndXY(),n=new o.P;n.setSub(s,e),n.normalize(),n.leftPerpendicularThis(),n.scale(this.m_distance),e.addThis(n),s.addThis(n);const r=t.clone();return r.setStartXY(e),r.setEndXY(s),r}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const e=new a.a;return e.addEnvelope(t,!1),this.m_inputGeometry=e,this.constructOffset()}const e=t.clone();return e.inflateCoords(this.m_distance,this.m_distance),e}progress(){}static buildPoint(t,e,s,n){n.x=t.x+e*Math.cos(s),n.y=t.y+e*Math.sin(s),n.type=t.type,n.z=t.z,n.m=t.m,n.m_next=-1,n.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,e){if(0===this.m_offsetPtCount)return void this.addPoint(t);const s=this.m_srcPtCount,n=this.m_srcPts[0===e?s-1:e-1],r=this.m_srcPts[e],i=f.dotSign(n,r,this.m_offsetPts[this.m_offsetPtCount-1],t);if(i>0)this.addPoint(t);else if(i<0)if(f.dotSign(n,r,r,this.m_offsetPts[this.m_offsetPtCount-1])>0){const r=new h;let i;i=0===e?s-2:1===e?s-1:e-2;const a=this.m_srcPts[i],c=Math.atan2(n.y-a.y,n.x-a.x);if(f.buildPoint(n,this.m_distance,c-o.o,r),this.m_offsetPts[this.m_offsetPtCount-1]=r.clone(),1===this.m_joins||2===this.m_joins){r.x=.5*(r.x+n.x),r.y=.5*(r.y+n.y),this.addPoint(r),f.buildPoint(n,this.m_distance,this.m_a1+o.o,r);const t=r.clone();t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),t.type|=l,this.addPoint(t),this.addPoint(r)}else f.buildPoint(n,this.m_distance,this.m_a1+o.o,r),r.type|=l,this.addPoint(r);this.addPointEx(t,e)}else{const t=new h;if(f.buildPoint(r,this.m_distance,this.m_a1+o.o,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+r.x),t.y=.5*(t.y+r.y),this.addPoint(t),f.buildPoint(r,this.m_distance,this.m_a2-o.o,t);const e=t.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=l,this.addPoint(e),this.addPoint(t)}else f.buildPoint(r,this.m_distance,this.m_a2-o.o,t),t.type|=l,this.addPoint(t)}}buildOffset(){const t=new h,e=this.m_srcPtCount;this.m_offsetPtCount=0;const s=.5*this.m_tolerance;let n=0,r=0;for(let i=0;i<e;i++){const a=this.m_srcPts[i],h=0===i?this.m_srcPts[e-1]:this.m_srcPts[i-1],d=i===e-1?this.m_srcPts[0]:this.m_srcPts[i+1];let y,p,_=0;{const t=h.x-a.x,e=h.y-a.y,s=d.x-a.x,c=d.y-a.y;y=Math.atan2(e,t),p=Math.atan2(c,s),this.m_a1=y,this.m_a2=p,0===i&&(n=y,r=p),_=o.P.orientationRobust(a.asPoint2D(),h.asPoint2D(),d.asPoint2D())}const P=p;if(p<y&&(p+=o.p),!(Math.abs(Math.abs(y-p)-Math.PI)<1e-8))if(_*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){f.buildPoint(a,this.m_distance,y+o.o,t),this.addPoint(t);const e=.001;t.x=a.x+(t.x-a.x)*e,t.y=a.y+(t.y-a.y)*e,this.addPoint(t),f.buildPoint(a,this.m_distance,p-o.o,t);const s=t.clone();s.x=a.x+(s.x-a.x)*e,s.y=a.y+(s.y-a.y)*e,s.type|=l,this.addPoint(s),this.addPoint(t)}else{const e=.5*(p-y),s=0===e?this.m_distance:this.m_distance/Math.abs(Math.sin(e));f.buildPoint(a,s,.5*(y+p),t),this.addPointEx(t,i)}else{if(512&a.type){const e=1-s/Math.abs(this.m_distance);let n=1,r=this.m_distance<0?-Math.PI:Math.PI;if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.PI/t+1.5),n>1&&(r/=n)}n<=1&&(n=2,r/=2);let c=y+o.o;f.buildPoint(a,this.m_distance,c,t),0===i&&(t.type|=m),this.addPointEx(t,i);const l=this.m_distance/Math.cos(r/2);for(c+=r/2,f.buildPoint(a,l,c,t),t.type|=m,this.addPoint(t);--n>0;)c+=r,f.buildPoint(a,l,c,t),t.type|=m,this.addPoint(t);f.buildPoint(a,this.m_distance,p-o.o,t),t.type|=m,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const e=1-s/Math.abs(this.m_distance);let n=1,r=p-o.o-(y+o.o);if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.abs(r)/t+1.5),n>1&&(r/=n)}const c=this.m_distance/Math.cos(.5*r);let l=y+o.o+.5*r;for(f.buildPoint(a,c,l,t),this.addPointEx(t,i);--n>0;)l+=r,f.buildPoint(a,c,l,t),this.addPoint(t);continue}if(2===this.m_joins){const e=h.x-a.x,s=h.y-a.y,n=d.x-a.x,r=d.y-a.y;let u=(e*n+s*r)/Math.sqrt(e*e+s*s)/Math.sqrt(n*n+r*r);if(u=Math.max(u,-1),u>1-1e-8){f.buildPoint(a,c*this.m_distance,p-.25*Math.PI,t),this.addPointEx(t,i),f.buildPoint(a,c*this.m_distance,p+.25*Math.PI,t),this.addPoint(t);continue}const l=Math.abs(this.m_distance/Math.sin(.5*Math.acos(u))),m=Math.abs(this.m_miterLimit*this.m_distance);if(l>m){const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));f.buildPoint(a,s,.5*(y+p),t);const n=o.P.construct(t.x,t.y),r=o.P.construct(a.x,a.y),c=new o.P;c.setSub(n,r);const u=new o.P;u.setScaleAdd(m/c.length(),c,r);const h=Math.sqrt(l*l-this.m_distance*this.m_distance),d=(l-m)*Math.abs(this.m_distance)/h;this.m_distance>0?c.rightPerpendicularThis():c.leftPerpendicularThis(),c.scale(d/c.length());const _=new o.P;_.setAdd(u,c);const P=new o.P;P.setSub(u,c),t.x=_.x,t.y=_.y,this.addPointEx(t,i),t.x=P.x,t.y=P.y,this.addPoint(t);continue}const _=.5*(p-y),P=this.m_distance/Math.abs(Math.sin(_));f.buildPoint(a,P,.5*(y+p),t),this.addPointEx(t,i);continue}{let e;if(p=P,this.m_distance>0?(p>y&&(p-=o.p),e=y-p<o.o):(p<y&&(p+=o.p),e=p-y<o.o),e){const e=this.m_distance*c;let s;s=e<0?y+.25*Math.PI:y+3*Math.PI*.25,f.buildPoint(a,e,s,t),this.addPointEx(t,i),s=e<0?p-.25*Math.PI:p-3*Math.PI*.25,f.buildPoint(a,e,s,t),this.addPoint(t)}else{const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));p<y&&(p+=o.p),f.buildPoint(a,s,(y+p)/2,t),this.addPointEx(t,i)}}}else f.buildPoint(a,this.m_distance,y+o.o,t),this.addPointEx(t,i),f.buildPoint(a,this.m_distance,p-o.o,t),this.addPoint(t)}}return this.m_a1=n,this.m_a2=r,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let t=0;t<this.m_offsetPtCount;t++){const e=this.m_offsetPts[t];e.m_next=t+1,e.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let e=0;for(let s=0;s<this.m_offsetPtCount;s++)if(this.m_offsetPts[e].type&l){const s=this.deleteClosedSeg(e);if(-1===s){t=!0;break}e=s}else e=this.m_offsetPts[e].m_next;return!t&&(this.compressOffsetArray(e),!0)}deleteClosedSeg(t){const e=this.m_offsetPtCount-1;let s,n,r=t;for(let i=1;i<=e-2;i++){r=this.m_offsetPts[r].m_next,s=r,n=t;for(let t=1;t<=i;t++){if(n=this.m_offsetPts[n].m_prev,0===(this.m_offsetPts[n].type&l)&&0===(this.m_offsetPts[s].type&l)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}s=this.m_offsetPts[s].m_prev}}return-1}handleClosedIntersection(t,e){const s=this.m_offsetPts[this.m_offsetPts[t].m_prev],n=this.m_offsetPts[t],r=this.m_offsetPts[this.m_offsetPts[e].m_prev],i=this.m_offsetPts[e];if(!this.sectGraphicRect(s,n,r,i))return-1;const a={pt:new h,bAtExistingPt:!1};if(((n.x-s.x)*(i.y-r.y)-(n.y-s.y)*(i.x-r.x))*this.m_distance<0&&this.findIntersection(s,n,r,i,a)&&!a.bAtExistingPt){const o=1e-8,c=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),u=(n.x-s.x)/c,l=(n.y-s.y)/c,m=Math.sqrt((i.x-r.x)*(i.x-r.x)+(i.y-r.y)*(i.y-r.y)),h=(i.x-r.x)/m,f=(i.y-r.y)/m;let d=!1;const y=a.pt.clone();y.x+=(u+h)*o,y.y+=(l+f)*o;let p=r,_=a.pt,P=this.m_offsetPts[t].m_prev;for(;_.y>y.y!=p.y>y.y&&y.x<(p.x-_.x)*(y.y-_.y)/(p.y-_.y)+_.x&&(d=!d),p=_,P=this.m_offsetPts[P].m_next,P!==e;)_=this.m_offsetPts[P];if(d)return-1;const g=this.m_offsetPts[t].m_prev;return a.pt.type=n.type,a.pt.m_next=e,a.pt.m_prev=g,this.m_offsetPts[t]=a.pt,this.m_offsetPts[e].m_prev=t,e}return-1}sectGraphicRect(t,e,s,n){return Math.max(t.x,e.x)>=Math.min(s.x,n.x)&&Math.max(s.x,n.x)>=Math.min(t.x,e.x)&&Math.max(t.y,e.y)>=Math.min(s.y,n.y)&&Math.max(s.y,n.y)>=Math.min(t.y,e.y)}findIntersection(t,e,s,n,r){let i,a,o,c;return r.bAtExistingPt=!1,i=(e.y-t.y)*(n.x-s.x)-(e.x-t.x)*(n.y-s.y),a=(s.y-t.y)*(e.x-t.x)-(s.x-t.x)*(e.y-t.y),o=0===i?2:a/i,o>=0&&o<=1&&(c=o,i=(n.y-s.y)*(e.x-t.x)-(n.x-s.x)*(e.y-t.y),a=(t.y-s.y)*(n.x-s.x)-(t.x-s.x)*(n.y-s.y),o=0===i?2:a/i,o>=0&&o<=1)&&(r.pt.x=t.x+o*(e.x-t.x),r.pt.y=t.y+o*(e.y-t.y),this.m_bUseZ&&(r.pt.z=s.z+c*(n.z-s.z)),this.m_bUseM&&(r.pt.m=s.m+c*(n.m-s.m)),0!==c&&1!==c||0!==o&&1!==o||(r.bAtExistingPt=!0),!((0===c||1===c)&&o>0&&o<1||(0===o||1===o)&&c>0&&c<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let e=0,s=t;do{const t=this.m_offsetPts[s].clone();this.m_offsetPts[e]=t,s=t.m_next,e++}while(s!==t);this.m_offsetPts[e]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=e+1}addPart(t,e){if(!(e<2))for(let s=0;s<e;s++){const e=this.m_offsetPts[t+s];if(s?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(e.x,e.y,e.z):this.m_resultPath.lineToCoords(e.x,e.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(e.x,e.y,e.z):this.m_resultPath.startPathCoords(e.x,e.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,e.m)}}}offsetMultiPath(t){const e=(0,a.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),s=e.querySegmentIterator();s.resetToFirstPath();let n=-1;for(;s.nextPath();)n++,this.offsetPath(e,n,t)}offsetPath(t,e,s){let n=t.getPathStart(e),r=t.getPathEnd(e);if(this.m_resultPath=s,t.isClosedPath(e)){const e=t.getXY(n);for(;r>n&&t.getXY(r-1).equals(e);)r--;if(r-n>=2){this.m_srcPtCount=r-n,this.m_srcPts.length=this.m_srcPtCount;for(let e=n;e<r;e++)this.progress(),this.m_srcPts[e-n]=h.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const e=t.getXY(n);for(;n<r-1&&t.getXY(n+1).equals(e);)n++;const s=t.getXY(r-1);for(;n<r-1&&t.getXY(r-2).equals(s);)r--;if(r-n>=2){this.m_srcPtCount=2*(r-n)-2,this.m_srcPts.length=this.m_srcPtCount;let s=h.construct(e,this.m_bUseZ?t.getAttributeAsDbl(1,n,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n,0):0);s.type|=1536,this.m_srcPts[0]=s;let i=1,a=this.m_srcPtCount-1;for(let e=n+1;e<r-1;e++,i++,a--)this.progress(),s=h.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0),this.m_srcPts[i]=s.clone(),s.type|=m,this.m_srcPts[a]=s.clone();if(s=h.construct(t.getXY(r-1),this.m_bUseZ?t.getAttributeAsDbl(1,r-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,r-1,0):0),s.type|=512,this.m_srcPts[i]=s.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,e=-1,s=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&m);s||(t=0);for(let n=1;n<this.m_offsetPtCount;n++){this.progress();const r=0!==(this.m_offsetPts[n].type&m);r?s||(e=n-1,e-t+1>1&&this.addPart(t,e-t+1)):s&&(t=n-1),s=r}s||(e=this.m_offsetPtCount-1,e-t+1>1&&this.addPart(t,e-t+1))}else{const t=0,e=this.m_offsetPtCount-1;e-t>=1&&this.addPart(t,e-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,e,s,n){const r=e.x-t.x,i=e.y-t.y,a=n.x-s.x,c=n.y-s.y,u=(0,o.t)(r,i,a,c);return(0,o.e)(u)}}class d extends n.G{constructor(t,e,s,n,r,i,a){super(),this.m_progressTracker=a,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=e,this.m_distance=s,this.m_joins=n,this.m_miterLimit=r,this.m_flattenError=i}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let e;return(0,i.c)(t),e=this.m_flattenError<=0?(0,r.b)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,e,s,n,r,a){if(null===t&&(0,i.a)(""),t.getDimension()<1&&(0,i.a)(""),r>0||(0,i.a)(""),(0,i.c)(t),0===e||t.isEmpty())return t;const o=new f(a);return o.m_bUseZ=t.hasAttribute(1),o.m_bUseM=t.hasAttribute(2),o.m_inputGeometry=t,o.m_distance=e,o.m_tolerance=r,o.m_joins=s,o.m_miterLimit=n>1?n:1,o.m_progressCounter=0,o.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,e,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,n,r,i,a){return new d(t,e,s,n,r,i,a)}execute(t,e,s,n,r,i,a){return new d(null,e,s,n,r,i,a).offset(t)}};function p(t,e,s,n,r,i){return y.execute(t,e,s,n,r,i,null)}function _(t,e,s,r,i,a){const o=y.executeMany(new n.S(t),e,s,r,i,a,null);return Array.from(o)}},71409:(t,e,s)=>{s.d(e,{A7:()=>h,L2:()=>u,SQ:()=>n,s9:()=>c,y6:()=>m,zD:()=>a});const n=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function r(t){return(e,s)=>[e,{type:t,wkid:e,factor:s}]}const i=r("angular"),a=new Map([i(1031,4.84813681109536e-9),i(9101,1),i(9102,.017453292519943295),i(9103,.0002908882086657216),i(9104,484813681109536e-20),i(9105,.015707963267948967),i(9106,.015707963267948967),i(9109,1e-6),i(9112,.00015707963267948965),i(9113,15707963267948967e-22),i(9114,.0009817477042468104)]),o=r("linear"),c=new Map([o(1025,.001),o(1033,.01),o(9001,1),o(9002,.3048),o(9003,.30480060960121924),o(9005,.3047972654),o(9014,1.8288),o(9030,1852),o(9031,1.0000135965),o(9033,20.11684023368047),o(9034,.2011684023368047),o(9035,1609.3472186944375),o(9036,1e3),o(9037,.9143917962),o(9038,20.1166195164),o(9039,.201166195164),o(9040,.9143984146160287),o(9041,.3047994715386762),o(9042,20.116765121552632),o(9043,.2011676512155263),o(9050,.9143992),o(9051,.3047997333333333),o(9052,20.1167824),o(9053,.201167824),o(9060,.9143992042898124),o(9061,.30479973476327077),o(9062,20.116782494375872),o(9063,.2011678249437587),o(9070,.30480083333333335),o(9080,.30479951024814694),o(9081,.30479841),o(9082,.3047996),o(9083,.3047995),o(9084,.9143985307444408),o(9085,.91439523),o(9086,.9143988),o(9087,.9143985),o(9093,1609.344),o(9094,.3047997101815088),o(9095,.3048007491),o(9096,.9144),o(9097,20.1168),o(9098,.201168),o(9099,.914398),o(9300,.30479933333333337),o(9301,20.116756),o(9302,.20116756),o(109001,.9144),o(109002,.9144018288036576),o(109003,20.1168),o(109004,.201168),o(109005,.1),o(109006,.01),o(109007,.001),o(109008,.0254),o(109009,.025400050800101603),o(109010,5.0292),o(109011,5.029210058420118),o(109012,1853.248),o(109013,1853.184),o(109014,1.7018),o(109015,.8466683600033867),o(109016,.00035277777777777776),o(109017,1e-6),o(109018,1e-9),o(109030,5e4),o(109031,15e4)]),u=c.get(9001),l=r("area"),m=new Map([l(109401,1e4),l(109402,4046.8564224),l(109403,4046.872609874252),l(109404,1),l(109405,.09290304),l(109406,.09290341161327487),l(109407,.09290137299531805),l(109408,3.34450944),l(109409,3429904),l(109410,1.000027193184865),l(109411,404.6872609874253),l(109412,.04046872609874252),l(109413,2589998.470319522),l(109414,1e6),l(109415,.8361123569578626),l(109416,404.6783807676053),l(109417,.04046783807676053),l(109418,.8361244606523066),l(109419,.09290271785025629),l(109420,404.6842389557165),l(109421,.04046842389557164),l(109422,.83612589696064),l(109423,.0929028774400711),l(109424,404.6849341289498),l(109425,.04046849341289498),l(109426,.836125904805842),l(109427,.09290287831176021),l(109428,404.6849379260275),l(109429,.04046849379260275),l(109430,.09290354800069446),l(109431,.09290274144751023),l(109432,.09290207073852812),l(109433,.09290279616016),l(109434,.09290273520025),l(109435,.836124673027592),l(109436,.8361186366467529),l(109437,.8361251654414399),l(109438,.83612461680225),l(109439,2589988.110336),l(109440,.09290286332673177),l(109441,.09290349665192114),l(109442,.83612736),l(109443,.8361307045194736),l(109444,404.68564224),l(109445,.040468564224),l(109446,.836123702404),l(109447,.09290263360044447),l(109448,404.683871963536),l(109449,.0404683871963536),l(109450,.01),l(109451,1e-4),l(109452,1e-6),l(109453,64516e-8),l(109454,.0006451625806477421),l(109455,25.29285264),l(109456,25.29295381171408),l(109457,3434528.149504),l(109458,3434290.937856),l(109459,2.89612324),l(109460,25e8),l(109461,225e8),l(109462,.7168473118308245),l(109463,100),l(109464,1.244521604938271e-7),l(109465,1e-12),l(109466,1e-18)]),h=m.get(109404)},76061:(t,e,s)=>{s.d(e,{G:()=>n,S:()=>r});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class r extends n{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,s)=>{s.r(e),s.d(e,{fromExtent:()=>g,fromGeometry:()=>P,fromMultipoint:()=>x,fromPoint:()=>b,fromPolygon:()=>C,fromPolyline:()=>M,fromSpatialReference:()=>w,getSpatialReference:()=>_,toExtent:()=>v,toGeometry:()=>E,toMultipoint:()=>G,toPoint:()=>k,toPolygon:()=>S,toPolyline:()=>q});var n=s(83661),r=(s(79187),s(55537)),i=s(95213),a=s(88885),o=s(39117),c=s(5443),u=s(48526),l=s(86738),m=s(39829),h=s(82799),f=(s(90293),s(83299));const d="_gxVersion",y=2,p=1;function _(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function P(t){switch(t.type){case"point":return b(t);case"multipoint":return x(t);case"polyline":return M(t);case"polygon":return C(t);case"extent":return g(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function g(t){if(!t.getCacheValue(d)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(y,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(p,0,t.zmin,t.zmax),t.setCacheValue(d,e)}return t.getCacheValue(d)}function x(t){if(!t.getCacheValue(d)){const e=new a.M,s=new i.P,n=t.points,r=t.hasM,o=t.hasZ,c=o?3:2;for(let t=0,i=n.length;t<i;t++){const i=n[t];s.setXYCoords(i[0],i[1]),o&&s.setZ(i[2]??0),r&&s.setM(i[c]??NaN),e.add(s)}t.setCacheValue(d,e)}return t.getCacheValue(d)}function b(t){if(!t.getCacheValue(d)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(d,e)}return t.getCacheValue(d)}function C(t){if(!t.getCacheValue(d)){const{curveRings:e,hasM:s,hasZ:n,rings:r}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:s,hasZ:n,rings:r});t.setCacheValue(d,i)}return t.getCacheValue(d)}function M(t){if(!t.getCacheValue(d)){const{curvePaths:e,hasM:s,hasZ:n,paths:r}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:s,hasZ:n,paths:r});t.setCacheValue(d,i)}return t.getCacheValue(d)}function w(t){if(t.wkid)return(0,o.c)(t.wkid);const e=t.wkt2||t.wkt;return e?(0,o.b)(e):null}function E(t,e){if(t)switch(t.getGeometryType()){case r.G.enumPoint:return k(t,e);case r.G.enumEnvelope:return v(t,e);case r.G.enumMultiPoint:return G(t,e);case r.G.enumPolyline:return q(t,e);case r.G.enumPolygon:return S(t,e)}return null}function v(t,e){if(t.isEmpty())return null;const s=new c.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(y,0);s.mmin=e.vmin,s.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(p,0);s.zmin=e.vmin,s.zmax=e.vmax}return s.setCacheValue(d,t),s}function G(t,e){if(t.isEmpty())return null;const s=t.getDescription(),n=s.hasM(),r=s.hasZ(),a=[],o=new i.P;for(let e=0,s=t.getPointCount();e<s;e++){t.getPointByVal(e,o);const s=[o.getX(),o.getY()];r&&s.push(o.getZ()),n&&s.push(o.getM()),a.push(s)}const c=new u.A({hasM:n,hasZ:r,points:a,spatialReference:e});return c.setCacheValue(d,t),c}function k(t,e){if(t instanceof n.P)return new l.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const s=new l.A({x:t.getX(),y:t.getY(),spatialReference:e}),r=t.getDescription();return r.hasM()&&(s.m=t.getM()),r.hasZ()&&(s.z=t.getZ()),s.setCacheValue(d,t),s}function S(t,e){if(t.isEmpty())return null;const s=m.A.fromJSON({spatialReference:e,...(0,f.toGeometry)(t,null)});return s.setCacheValue(d,t),s}function q(t,e){if(t.isEmpty())return null;const s=h.A.fromJSON({spatialReference:e,...(0,f.toGeometry)(t,null)});return s.setCacheValue(d,t),s}},85549:(t,e,s)=>{s.d(e,{executeOffsetJson:()=>u,r:()=>c});var n=s(40547),r=s(66070),i=s(78125),a=s(83299);const o={round:0,bevel:1,miter:2,square:3};function c(t,e,s,r,a,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,i.fromGeometry)(t),u=(0,i.getSpatialReference)(t),m=l(c,(0,i.fromSpatialReference)(u),e,r,a,o);return(0,i.toGeometry)(m,u)}function u(t,e,s,r,i,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,a.fromGeometry)(t),u=c.getGeometry(),m=c.getSpatialReference(),h=l(u,m,e,r,i,o);return(0,a.toGeometry)(h,m)}function l(t,e,s,n,i,a){const c=(0,r.g7)(t,e,s,o[n],i,a);if(!c.isEmpty())return c;{const c=t.clone();c.reverseAllPaths();const u=(0,r.g7)(c,e,-s,o[n],i,a);if(!u.isEmpty())return u.reverseAllPaths(),u}const u=Math.abs(s)/10,l=u/10;let m=a;if("round"===n&&(m+=l),"bevel"===n||"square"===n){const c=(0,r.g7)(t,e,s,o[n="miter"],i,a);if(!c.isEmpty())return c}if("miter"===n){const c=(0,r.g7)(t,e,s,o[n="round"],i,a);if(!c.isEmpty())return c}if("round"===n)for(;m<=u;m+=l){const a=(0,r.g7)(t,e,s,o[n],i,m);if(!a.isEmpty())return a}return null}},85935:(t,e,s)=>{s.d(e,{D$:()=>o,Nh:()=>m,O$:()=>l,mT:()=>u,ps:()=>f});var n=s(799);const r={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};class i extends Error{constructor(...t){super(...t)}}class a extends i{constructor(t,e){super(c(e)+t.message,{cause:t}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,a),e?.loc&&(this.loc=e.loc)}}class o extends Error{constructor(t,e,s,i){super("Execution error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,o),s?.loc&&(this.loc=s.loc)}}function c(t){return t&&t.loc?`Line : ${t.loc.start?.line}, ${t.loc.start?.column}: `:""}class u extends Error{constructor(t,e,s,i){super("Compilation error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),s?.loc&&(this.loc=s.loc)}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}function m(t,e,s){return"esri.arcade.arcadeexecutionerror"===s.declaredRootClass||"esri.arcade.arcadecompilationerror"===s.declaredRootClass?null===s.loc&&e?.loc?new a(s,{cause:s}):s:("esri.arcade.featureset.support.featureseterror"===s.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===s.declaredRootClass||s.declaredRootClass,e?.loc?new a(s,{cause:s}):s)}const h={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class f extends Error{constructor(t,e){super((0,n.HC)(h[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[980,7561],{10980:(t,e,r)=>{r.r(e),r.d(e,{executeForTopCount:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.xs)(n,s.default.from(e),{...r})).data.count}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[980,7561],{10980:(t,e,r)=>{r.r(e),r.d(e,{executeForTopCount:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.xs)(n,s.default.from(e),{...r})).data.count}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(43773),o=r(84952),s=r(65864),n=r(17136),l=r(21325),u=r(10536),p=r(58501);const a="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(a);if(e.hasOwnProperty("count"))throw new Error(a);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function g(t,e,r,s={},l={}){const p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(a,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const a=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...a,...s.query}})})}},57561:(t,e,r)=>{r.r(e),r.d(e,{default:()=>C});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(10107),p=r(56507),a=r(64108),d=r(43937),y=r(16930),c=r(65864),h=r(50498),m=r(77696);r(44208),r(53966),r(87811);let g=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],g.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],g.prototype,"orderByFields",void 0),g=i=(0,o.Cg)([(0,a.$)("esri.rest.support.TopFilter")],g);const w=g;var F,v=r(79677);const j=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),S=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let C=class extends((0,m.y)(n.o)){static{F=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new F((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],C.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],C.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:h.yR,json:{read:c.rS,write:!0}})],C.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],C.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],C.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],C.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],C.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],C.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],C.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:y.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],C.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],C.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],C.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],C.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],C.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],C.prototype,"start",void 0),(0,o.Cg)([(0,d.K)("start"),(0,d.K)("num")],C.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:j.read},write:{target:"spatialRel",writer:j.write}}})],C.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:v.A,json:{write:!0}})],C.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:w,json:{write:!0}})],C.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:S.read,write:{writer:S.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],C.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],C.prototype,"where",void 0),C=F=(0,o.Cg)([(0,a.$)("esri.rest.support.TopFeaturesQuery")],C),C.from=(0,p.dp)(C)}}]);
|