@arcgis/core 4.33.0-next.20250514 → 4.33.0-next.20250516
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Basemap.js +1 -1
- package/Graphic.js +1 -1
- package/Map.js +1 -1
- package/WebScene.js +1 -1
- package/applications/Components/SelectionOperation.js +1 -1
- package/applications/Components/baUtils.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/009730713ed9bc7c7388.js +1 -0
- package/assets/esri/core/workers/chunks/02853ab923245459b32e.js +1 -0
- package/assets/esri/core/workers/chunks/0624ae07d3af8d5f1ac8.js +1 -0
- package/assets/esri/core/workers/chunks/{6e8c6c9112ecb867b7be.js → 0817ddd885ce8b2459cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{69e8aabe5a1eb2d1e414.js → 0832bd5195b5791dd803.js} +1 -1
- package/assets/esri/core/workers/chunks/0c50ee1f3cdd30d96479.js +1 -0
- package/assets/esri/core/workers/chunks/0d23610475c85385fbff.js +1 -0
- package/assets/esri/core/workers/chunks/{b4f38fe9cc948a39ad87.js → 0fd6d80393722132e044.js} +2 -2
- package/assets/esri/core/workers/chunks/{b4f38fe9cc948a39ad87.js.LICENSE.txt → 0fd6d80393722132e044.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/1051a5a57b2fb843a555.js +1 -0
- package/assets/esri/core/workers/chunks/133e4bde346828d4510b.js +1 -0
- package/assets/esri/core/workers/chunks/19a58adc75a34f84b0ef.js +1 -0
- package/assets/esri/core/workers/chunks/{7e8f78b96d43c224c7b6.js → 19c50f052eba0553bf4d.js} +1 -1
- package/assets/esri/core/workers/chunks/1d7f2abfccc54659d6f2.js +1 -0
- package/assets/esri/core/workers/chunks/{339e7a900e2bba9d3647.js → 1f19bd3ef795c6765384.js} +1 -1
- package/assets/esri/core/workers/chunks/1f9c6fbcd4d0eae1e574.js +1 -0
- package/assets/esri/core/workers/chunks/234117cc5cb7c6863313.js +1 -0
- package/assets/esri/core/workers/chunks/{1c025beaaac5ec7c04fb.js → 2adf558cd8d8155d07d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{837f886f759fc6f0489d.js → 2b1486a466760d2152f5.js} +1 -1
- package/assets/esri/core/workers/chunks/{47f64a340b5d56bf9e59.js → 2cf82d3645c75d311e99.js} +1 -1
- package/assets/esri/core/workers/chunks/320e821af81138fe12ac.js +1 -0
- package/assets/esri/core/workers/chunks/{f7ab3511f6627f467796.js → 377a7f0f7d304ff9fe5b.js} +1 -1
- package/assets/esri/core/workers/chunks/3bf1cf6c3cba172e2f6d.js +1 -0
- package/assets/esri/core/workers/chunks/{b3ca65d6112079fb1d00.js → 3ce5d7ad16e41eea05be.js} +1 -1
- package/assets/esri/core/workers/chunks/465f2db4ab8aa9c9f907.js +1 -0
- package/assets/esri/core/workers/chunks/{1e13e03aad422f9e871e.js → 47fe2379f2214bf50036.js} +1 -1
- package/assets/esri/core/workers/chunks/{b8b5dfd2d73a8410fba2.js → 4954e0cf4a40e45d237f.js} +1 -1
- package/assets/esri/core/workers/chunks/4a362a35bcdb8405a53a.js +1 -0
- package/assets/esri/core/workers/chunks/4f8ebd9f0758b801835c.js +1 -0
- package/assets/esri/core/workers/chunks/5228d39c05d660a135b6.js +1 -0
- package/assets/esri/core/workers/chunks/523046e04679e301797d.js +1 -0
- package/assets/esri/core/workers/chunks/{736cb9f74bf050b70f4c.js → 52a3d0e041717da7697e.js} +1 -1
- package/assets/esri/core/workers/chunks/54ea93f416ab52b413c1.js +1 -0
- package/assets/esri/core/workers/chunks/554a8bf4626336e68798.js +1 -0
- package/assets/esri/core/workers/chunks/55f087bca75c3f2a4515.js +1 -0
- package/assets/esri/core/workers/chunks/{bbaadce582df7e20397b.js → 56d2a20c1b143697aa19.js} +1 -1
- package/assets/esri/core/workers/chunks/57211c35a9646f088d86.js +1 -0
- package/assets/esri/core/workers/chunks/58526def64536b6581ab.js +1 -0
- package/assets/esri/core/workers/chunks/5890740d5a761b038560.js +1 -0
- package/assets/esri/core/workers/chunks/{9a641fb94819574e48f6.js → 5a73d8b7b01758ed4fdd.js} +1 -1
- package/assets/esri/core/workers/chunks/5dbd8d81d94cfda5bb32.js +1 -0
- package/assets/esri/core/workers/chunks/{a0d2bd5d4ed3c90f6b1c.js → 5f766bcb751d66fbf1c8.js} +1 -1
- package/assets/esri/core/workers/chunks/609c7c9b7046b3a7acde.js +1 -0
- package/assets/esri/core/workers/chunks/{d21d9e8b8c8a2e0485d5.js → 612f6739c9399fbae4d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{30f3014c0ac6e2bc14bf.js → 622c0552ca3cd674d46c.js} +1 -1
- package/assets/esri/core/workers/chunks/6409160d226a0bea5ac6.js +1 -0
- package/assets/esri/core/workers/chunks/65fd971d0574d69cbc26.js +1 -0
- package/assets/esri/core/workers/chunks/6993a59cbb78bc26f029.js +1 -0
- package/assets/esri/core/workers/chunks/6b23ca6570357f9fb724.js +1 -0
- package/assets/esri/core/workers/chunks/6c37a5bd00d255d1337a.js +1 -0
- package/assets/esri/core/workers/chunks/6ce4327f63e6eb92bba8.js +1 -0
- package/assets/esri/core/workers/chunks/6f9b8df290b0ce09beae.js +1 -0
- package/assets/esri/core/workers/chunks/{e0247252c6a0f3340e33.js → 6fa1a5b7276a037dbd6a.js} +84 -106
- package/assets/esri/core/workers/chunks/7a9a0383f27f4967bcfa.js +1 -0
- package/assets/esri/core/workers/chunks/7c819b3e6d69c526f4b2.js +1 -0
- package/assets/esri/core/workers/chunks/7df147da40474b028705.js +1 -0
- package/assets/esri/core/workers/chunks/{0766ecb677d667e5fb83.js → 7e1dc8e5e18f18dd21e2.js} +2 -2
- package/assets/esri/core/workers/chunks/{0766ecb677d667e5fb83.js.LICENSE.txt → 7e1dc8e5e18f18dd21e2.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{e662c86b8bafc5512d3d.js → 847e88e1d6da1e74cdc8.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f5ec9bf7cf8a36d8e8b.js → 87eca6de502d18d8b7eb.js} +1 -1
- package/assets/esri/core/workers/chunks/87fc7b6c3e2d4f7775e2.js +1 -0
- package/assets/esri/core/workers/chunks/{10e6dffa57aa1a626708.js → 8a6aac37b3133de74cce.js} +1 -1
- package/assets/esri/core/workers/chunks/8a87c181b85d0b86b9bb.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/91cd29f53f07bc38fe75.js +1 -0
- package/assets/esri/core/workers/chunks/{5583d18032ed8bc17c74.js → 938f1eebc48871be64e9.js} +1 -1
- package/assets/esri/core/workers/chunks/97c148adf0347c69a79c.js +1 -0
- package/assets/esri/core/workers/chunks/9839309d0cd804fe52c2.js +1 -0
- package/assets/esri/core/workers/chunks/{029a118e6dfb3f544a5c.js → 98ef17d15517368d2383.js} +1 -1
- package/assets/esri/core/workers/chunks/{c10885b3a0739708e9e0.js → 9a06476b834584d00d5c.js} +1 -1
- package/assets/esri/core/workers/chunks/9c8224ca29475556e5ea.js +1 -0
- package/assets/esri/core/workers/chunks/{fd24dd602a3fed88d90e.js → 9d5eac3bd1526e2b33e3.js} +1 -1
- package/assets/esri/core/workers/chunks/{38f5e6a202ce292edd9f.js → 9eb9c8db2510154c09cc.js} +1 -1
- package/assets/esri/core/workers/chunks/a036503087baa1f9fd00.js +1 -0
- package/assets/esri/core/workers/chunks/{6e64ce0958c3432004b6.js → a70a86ba4e487f62f683.js} +2 -2
- package/assets/esri/core/workers/chunks/a937076d2f8c2b6a5d8a.js +1 -0
- package/assets/esri/core/workers/chunks/{90ae15ce22a49bd84876.js → ab9614555a15f04396f6.js} +2 -2
- package/assets/esri/core/workers/chunks/{90ae15ce22a49bd84876.js.LICENSE.txt → ab9614555a15f04396f6.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/ae733c963d61065faa54.js +1 -0
- package/assets/esri/core/workers/chunks/{8e82acd1f730571680f4.js → aeb5bbe861f65544d504.js} +1 -1
- package/assets/esri/core/workers/chunks/b0522dffa5600345c07e.js +1 -0
- package/assets/esri/core/workers/chunks/{d1f7bfb8daf11ecada9f.js → b4273381dc069f4e1fa2.js} +1 -1
- package/assets/esri/core/workers/chunks/{fb2e28e6a87956267d1c.js → b92a34f88569c481ed10.js} +1 -1
- package/assets/esri/core/workers/chunks/{352b7dcd1633e0c98194.js → ba940ebdae84b174a7be.js} +1 -1
- package/assets/esri/core/workers/chunks/be2c8c0a8b2bce7979b6.js +1 -0
- package/assets/esri/core/workers/chunks/bf9b6b74654d303a6dae.js +1 -0
- package/assets/esri/core/workers/chunks/c07c1bb7ae09136dc1f6.js +1 -0
- package/assets/esri/core/workers/chunks/c938f5d269ba202d10ef.js +1 -0
- package/assets/esri/core/workers/chunks/cbbca011f8b176d4b5db.js +1 -0
- package/assets/esri/core/workers/chunks/{c604fefedccfd4db9953.js → ce321fd8fc5551e190ec.js} +1 -1
- package/assets/esri/core/workers/chunks/ce53ddda04e09ba2f860.js +1 -0
- package/assets/esri/core/workers/chunks/d9a23fb0c6c936d5e8ec.js +1 -0
- package/assets/esri/core/workers/chunks/db3f710d770adf631b28.js +2 -0
- package/assets/esri/core/workers/chunks/{6394ab6f629aa90292e6.js.LICENSE.txt → db3f710d770adf631b28.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{6805e7b43d6ecf3ea93c.js → dcf5719f38ad40b92941.js} +1 -1
- package/assets/esri/core/workers/chunks/e2cada6644c49b1b6e79.js +1 -0
- package/assets/esri/core/workers/chunks/e2fb4bebce3aee406efa.js +1 -0
- package/assets/esri/core/workers/chunks/e3638f9d4c0fda238f4b.js +1 -0
- package/assets/esri/core/workers/chunks/e85f892ea44d67d53ff0.js +2 -0
- package/assets/esri/core/workers/chunks/{3596540ef49e5330ceb2.js.LICENSE.txt → e85f892ea44d67d53ff0.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/e89345c7af9d3d4d8452.js +1 -0
- package/assets/esri/core/workers/chunks/{a31658f544ac6e1801d6.js → ead5d4e271effc04def3.js} +1 -1
- package/assets/esri/core/workers/chunks/ece68a25651ef03fc95d.js +1 -0
- package/assets/esri/core/workers/chunks/f218a190015de1444018.js +1 -0
- package/assets/esri/core/workers/chunks/f229044615af3142bcb0.js +1 -0
- package/assets/esri/core/workers/chunks/f2692f25ef693cf12ce0.js +1 -0
- package/assets/esri/core/workers/chunks/f4c6ea630cecf0f260d7.js +2 -0
- package/assets/esri/core/workers/chunks/{e0dc8794343c2a949ffb.js.LICENSE.txt → f4c6ea630cecf0f260d7.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/f718cb847c4eb1e43ad9.js +1 -0
- package/assets/esri/core/workers/chunks/faa40ef04604c7cce706.js +1 -0
- package/assets/esri/core/workers/chunks/{218a66d53f7cf4f285aa.js → fbd2f45d5adce4ca323f.js} +2 -2
- package/assets/esri/core/workers/chunks/{218a66d53f7cf4f285aa.js.LICENSE.txt → fbd2f45d5adce4ca323f.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{498886c321a2501658bc.js → ffaa977cd97a2b7190c5.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Editor.scss +2 -1
- package/assets/esri/themes/base/widgets/_SearchResultRenderer.scss +5 -30
- package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +5 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/Search/t9n/Search.json +1 -1
- package/assets/esri/widgets/Search/t9n/Search_en.json +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/Jpg.js +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/QuadraticBezier.js +1 -1
- package/chunks/ShadowCastAccumulate.glsl.js +7 -5
- package/chunks/ShadowCastClear.glsl.js +5 -0
- package/chunks/ShadowCastVisualize.glsl.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +8 -7
- package/chunks/Transformation2D.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/chunks/basis_encoder.js +1 -1
- package/chunks/basis_transcoder.js +1 -1
- package/chunks/bundle.js +1 -1
- package/chunks/chartUtilsAm5.js +1 -1
- package/chunks/dxt_encoder.js +1 -1
- package/chunks/geometryEngineBase.js +1 -1
- package/chunks/i3s.js +1 -1
- package/chunks/lclayout.js +1 -1
- package/chunks/libtess-asm.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/chunks/vec4.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/config.js +1 -1
- package/core/arrayUtils.js +1 -1
- package/core/image/apng.js +1 -1
- package/core/image/gif.js +1 -1
- package/core/mathUtils.js +1 -1
- package/core/workers/Connection.js +1 -1
- package/geometry/operators/densifyOperator.d.ts +0 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
- package/geometry/support/aaBoundingBox.js +1 -1
- package/geometry/support/meshProperties.js +1 -1
- package/geometry/support/normalizeUtilsSync.js +1 -1
- package/interfaces.d.ts +313 -163
- package/intl/date.js +1 -1
- package/intl/number.js +1 -1
- package/layers/BingMapsLayer.js +1 -1
- package/layers/graphics/OptimizedFeatureSet.js +1 -1
- package/layers/graphics/controllers/StreamController.js +1 -1
- package/layers/graphics/data/FeatureIdInfo.js +5 -0
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/StreamFeatureManager.js +1 -1
- package/layers/graphics/data/createFeatureId.js +5 -0
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/core/utils.js +1 -1
- package/layers/orientedImagery/queries.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/support/LercWorker.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/layers/support/rasterFunctions/stretchUtils.js +1 -1
- package/layers/support/wmsUtils.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/package.json +2 -2
- package/portal/Portal.js +1 -1
- package/request.js +1 -1
- package/rest/knowledgeGraph/GraphAddNamedTypesResult.js +1 -1
- package/rest/knowledgeGraph/GraphAddPropertyResult.js +5 -0
- package/rest/knowledgeGraph/GraphApplyEditsResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeletePropertyResult.js +5 -0
- package/rest/knowledgeGraph/GraphUpdateNamedTypesResult.js +5 -0
- package/rest/knowledgeGraph/GraphUpdatePropertyResult.js +5 -0
- package/rest/knowledgeGraph/wasmInterface/updateToWasmEncodedFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToDataModelChangeResponseFactories.js +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/rest/networks/support/Association.js +1 -1
- package/rest/networks/support/NetworkElement.js +1 -1
- package/rest/networks/support/QueryAssociationsParameters.js +1 -1
- package/rest/networks/support/TelecomNetworkElement.js +1 -1
- package/rest/networks/support/TraceResult.js +1 -1
- package/rest/networks/unitIdentifiers/insertGap.js +5 -0
- package/rest/networks/unitIdentifiers/queryUnitIdentifiers.js +5 -0
- package/rest/networks/unitIdentifiers/reset.js +5 -0
- package/rest/networks/unitIdentifiers/resize.js +5 -0
- package/rest/networks/unitIdentifiers/support/InsertGapParameters.js +5 -0
- package/rest/networks/unitIdentifiers/support/QueryUnitIdentifiersParamters.js +5 -0
- package/rest/networks/unitIdentifiers/support/ResetParameters.js +5 -0
- package/rest/networks/unitIdentifiers/support/ResizeParameters.js +5 -0
- package/rest/networks/unitIdentifiers/support/UnitQueryResult.js +5 -0
- package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
- package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
- package/rest/query/operations/queryRelatedRecords.js +1 -1
- package/rest/utils.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/support/apiKeyUtils.js +1 -1
- package/support/basemapEnsureType.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
- package/unionTypes.d.ts +2 -0
- package/views/2d/engine/ManagedCanvas.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/grouping.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/featureServiceUtils.js +1 -1
- package/views/2d/layers/features/processor/AAggregateStrategy.js +1 -1
- package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/StreamLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/analysis/AnalysisViewManager3D.js +1 -1
- package/views/3d/analysis/DimensionAnalysisView3D.d.ts +4 -0
- package/views/3d/analysis/DimensionAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/camera/constraintUtils/common.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/layers/ContentGeometryLayerView.js +5 -0
- package/views/3d/layers/DimensionLayerView3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/LineOfSightLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/ViewshedLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/QueryEngine.js +1 -1
- package/views/3d/layers/graphics/focusAreaStyle.js +5 -0
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
- package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
- package/views/3d/layers/i3s/PagedNodeIndex.js +1 -1
- package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/LayerViewAnalysisViewManager.js +5 -0
- package/views/3d/support/pointsOfInterest/ContentGeometryUpdates.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileAgent.js +1 -1
- package/views/3d/webgl-engine/collections/Component/IndexRange/ComponentRange.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ShadowmapFiltering.glsl.js +3 -25
- package/views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadow.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/Texture2DShadowBindUniform.js +5 -0
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +3 -3
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
- package/views/3d/webgl-engine/lib/DepthRange.js +1 -1
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
- package/views/3d/webgl.js +1 -1
- package/views/FocusArea.js +1 -1
- package/views/FocusAreas.js +1 -1
- package/views/GroundView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/input/InputManager.js +1 -1
- package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/support/LayerViewManager.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/ShaderBuilder.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/TextureDescriptor.js +1 -1
- package/views/webgl/textureUtils.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/BatchAttributeForm/VisibleElements.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/CoordinateConversion.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.d.ts +4 -0
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +4 -0
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/support/profileUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/LayerList/LayerListItem.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUI.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +5 -0
- package/widgets/OrientedImageryViewer/components/NavigationUIViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/imageNavigationUtils.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +5 -0
- package/widgets/OrientedImageryViewer/navigation/NavigationManagerPanoramic.js +5 -0
- package/widgets/OrientedImageryViewer/navigation/errors.js +5 -0
- package/widgets/OrientedImageryViewer/navigation/queries.js +5 -0
- package/widgets/OrientedImageryViewer/navigation/utils.js +5 -0
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer.js +1 -1
- package/widgets/Search/SearchResultRenderer.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search/searchResultRendererCSS.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/SelectionList/selectionListUtils.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation.js +1 -1
- package/widgets/support/SnappingControls.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/utils/createAssociation.js +1 -1
- package/assets/esri/core/workers/chunks/0516bd18334d3af6c555.js +0 -1
- package/assets/esri/core/workers/chunks/0d8a635c1f9aeaf7564c.js +0 -1
- package/assets/esri/core/workers/chunks/191a45a594ecaf7f1abb.js +0 -1
- package/assets/esri/core/workers/chunks/1abd026ed12c863e1d94.js +0 -1
- package/assets/esri/core/workers/chunks/1c6542315390037053a6.js +0 -1
- package/assets/esri/core/workers/chunks/201db423e3c6f947b77c.js +0 -1
- package/assets/esri/core/workers/chunks/23de8aeed5b82c682cbe.js +0 -1
- package/assets/esri/core/workers/chunks/297d2c0a9d3f1e978318.js +0 -1
- package/assets/esri/core/workers/chunks/2e0af748eba93f3ea6cb.js +0 -1
- package/assets/esri/core/workers/chunks/3596540ef49e5330ceb2.js +0 -2
- package/assets/esri/core/workers/chunks/3604a77c93cf2927787b.js +0 -1
- package/assets/esri/core/workers/chunks/391b1c3e736a62befbaf.js +0 -1
- package/assets/esri/core/workers/chunks/40e556a0645af8658658.js +0 -1
- package/assets/esri/core/workers/chunks/4402336db7210cd583e0.js +0 -1
- package/assets/esri/core/workers/chunks/4899cdc8bb5085c356f9.js +0 -1
- package/assets/esri/core/workers/chunks/4bd5cbf6e0be2fc7e84d.js +0 -1
- package/assets/esri/core/workers/chunks/4c8052e81916579841f4.js +0 -1
- package/assets/esri/core/workers/chunks/4c9aa1dafdc0d9537231.js +0 -1
- package/assets/esri/core/workers/chunks/4feb774f123da26e9f2a.js +0 -1
- package/assets/esri/core/workers/chunks/51b5dfc7085272d26b89.js +0 -1
- package/assets/esri/core/workers/chunks/566c2ce50af225e556ac.js +0 -1
- package/assets/esri/core/workers/chunks/5ddf463c85c33428e807.js +0 -1
- package/assets/esri/core/workers/chunks/61032b5050464cb48056.js +0 -1
- package/assets/esri/core/workers/chunks/6394ab6f629aa90292e6.js +0 -2
- package/assets/esri/core/workers/chunks/63dade3e1cc7f5b76846.js +0 -1
- package/assets/esri/core/workers/chunks/64af433e88d4dd21a2ff.js +0 -1
- package/assets/esri/core/workers/chunks/6b42bcfbb60432e3ed1f.js +0 -1
- package/assets/esri/core/workers/chunks/6e12900a9f4c3c9941ec.js +0 -1
- package/assets/esri/core/workers/chunks/6e5d8a6b29c06a27998c.js +0 -1
- package/assets/esri/core/workers/chunks/6f506303017903b9a06f.js +0 -1
- package/assets/esri/core/workers/chunks/71e46e866c23372b0b58.js +0 -1
- package/assets/esri/core/workers/chunks/75fa861b5757551f8fdc.js +0 -1
- package/assets/esri/core/workers/chunks/7c49a8877bd744daa3d5.js +0 -1
- package/assets/esri/core/workers/chunks/7ea5bbb52e84be9a608e.js +0 -1
- package/assets/esri/core/workers/chunks/82c395d8649096609a8a.js +0 -1
- package/assets/esri/core/workers/chunks/86138c297095af1ac604.js +0 -1
- package/assets/esri/core/workers/chunks/8c21cc9af4ce9652cc5c.js +0 -1
- package/assets/esri/core/workers/chunks/8e6301006abdf47cc88d.js +0 -1
- package/assets/esri/core/workers/chunks/90f93091fe088875f80f.js +0 -1
- package/assets/esri/core/workers/chunks/91a02ee91f61cf841111.js +0 -1
- package/assets/esri/core/workers/chunks/9baeb3b5733acdda4e7c.js +0 -1
- package/assets/esri/core/workers/chunks/a1d697e2be1e892a666a.js +0 -1
- package/assets/esri/core/workers/chunks/a1f27c4f4b5ef3e359f7.js +0 -1
- package/assets/esri/core/workers/chunks/a348ff2dd936c6bf9399.js +0 -1
- package/assets/esri/core/workers/chunks/a9b1f4bf5eaa937943be.js +0 -1
- package/assets/esri/core/workers/chunks/b64f708f821dd2bb51cd.js +0 -1
- package/assets/esri/core/workers/chunks/bf453744067267e84d1b.js +0 -1
- package/assets/esri/core/workers/chunks/c1175477dfcdee90a453.js +0 -1
- package/assets/esri/core/workers/chunks/c4e2b75b9135920babc3.js +0 -1
- package/assets/esri/core/workers/chunks/cb80b7ddc9acf625d754.js +0 -1
- package/assets/esri/core/workers/chunks/d22f91bc16a7641bcbef.js +0 -1
- package/assets/esri/core/workers/chunks/d52cf7b795ee52034f9e.js +0 -1
- package/assets/esri/core/workers/chunks/d971571a957de70d5a8d.js +0 -1
- package/assets/esri/core/workers/chunks/d9d9d4f99140e579eabb.js +0 -1
- package/assets/esri/core/workers/chunks/dc3a6beb3028009b3c23.js +0 -1
- package/assets/esri/core/workers/chunks/e0dc8794343c2a949ffb.js +0 -2
- package/assets/esri/core/workers/chunks/e483d2f169e51a361742.js +0 -1
- package/assets/esri/core/workers/chunks/e5608e5232e983531f72.js +0 -1
- package/assets/esri/core/workers/chunks/e613df03ceb39e29befa.js +0 -1
- package/assets/esri/core/workers/chunks/e697dd4508f02dcfe329.js +0 -1
- package/assets/esri/core/workers/chunks/eabfab23246d4a052ea3.js +0 -1
- package/assets/esri/core/workers/chunks/ec8e8048b3df2c92008d.js +0 -1
- package/assets/esri/core/workers/chunks/ed6d0fea159dea638c2f.js +0 -1
- package/assets/esri/core/workers/chunks/f5fcba6ca6f43bf1d65d.js +0 -1
- package/assets/esri/core/workers/chunks/f92d76b694ff0cdb212c.js +0 -1
- package/chunks/NetworkElement.js +0 -5
- package/views/FocusAreasUtils.js +0 -5
- package/views/analysis/DimensionAnalysisView.d.ts +0 -4
- package/views/analysis/DimensionAnalysisView.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3335,7136],{2073:(e,t,r)=>{r.d(t,{$n:()=>_,$r:()=>f,EM:()=>h,Ec:()=>Z,JJ:()=>y,Mm:()=>A,OC:()=>N,Sr:()=>c,UO:()=>a,Vj:()=>I,WU:()=>D,Y8:()=>n,Z7:()=>l,_6:()=>T,aJ:()=>p,dd:()=>S,dn:()=>u,et:()=>M,fe:()=>b,gD:()=>w,hE:()=>d,hY:()=>o,iM:()=>v,mt:()=>g,ow:()=>m,vS:()=>O});var i=r(66552);const s={esriCentimeters:"centimeters",esriDecimalDegrees:"decimal-degrees",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriPoints:"points",esriUnknownUnits:"unknown",esriYards:"yards"},o=(0,i.O)()(s),n=(0,i.O)()({...s,esriIntFeet:"international-feet",esriIntInches:"international-inches",esriIntMiles:"international-miles",esriIntNauticalMiles:"international-nautical-miles",esriIntYards:"international-yards"}),a=(0,i.O)()({esriAcres:"international-acres",esriAcresUS:"us-acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-international-feet",esriSquareFeetUS:"square-us-feet",esriSquareInches:"square-international-inches",esriSquareInchesUS:"square-us-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-international-miles",esriSquareMilesUS:"square-us-miles",esriSquareMillimeters:"square-millimeters",esriSquareYards:"square-international-yards",esriSquareYardsUS:"square-us-yards",esriUnknownAreaUnits:"unknown"}),l=(0,i.O)()({esriNAUCentimeters:"centimeters",esriNAUDecimalDegrees:"decimal-degrees",esriNAUDecimeters:"decimeters",esriNAUFeet:"feet",esriNAUInches:"inches",esriNAUKilometers:"kilometers",esriNAUMeters:"meters",esriNAUMiles:"miles",esriNAUMillimeters:"millimeters",esriNAUNauticalMiles:"nautical-miles",esriNAUPoints:"points",esriNAUYards:"yards"}),u=(0,i.O)()({esriNAUCentimeters:"centimeters",esriNAUDecimalDegrees:"decimal-degrees",esriNAUDecimeters:"decimeters",esriNAUFeet:"feet",esriNAUInches:"inches",esriNAUKilometers:"kilometers",esriNAUMeters:"meters",esriNAUMiles:"miles",esriNAUMillimeters:"millimeters",esriNAUNauticalMiles:"nautical-miles",esriNAUPoints:"points",esriNAUYards:"yards",esriNAUDays:"days",esriNAUHours:"hours",esriNAUMinutes:"minutes",esriNAUSeconds:"seconds",esriNAUKilometersPerHour:"kilometers-per-hour",esriNAUMilesPerHour:"miles-per-hour",esriNAUUnknown:"unknown"}),p=(0,i.O)()({esriDOTComplete:"complete",esriDOTCompleteNoEvents:"complete-no-events",esriDOTFeatureSets:"featuresets",esriDOTInstructionsOnly:"instructions-only",esriDOTStandard:"standard",esriDOTSummaryOnly:"summary-only"}),c=(0,i.O)()({esriNAOutputLineNone:"none",esriNAOutputLineStraight:"straight",esriNAOutputLineTrueShape:"true-shape",esriNAOutputLineTrueShapeWithMeasure:"true-shape-with-measure"}),d=((0,i.O)()({esriNAOutputPolygonNone:"none",esriNAOutputPolygonSimplified:"simplified",esriNAOutputPolygonDetailed:"detailed"}),(0,i.O)()({esriNFSBAllowBacktrack:"allow-backtrack",esriNFSBAtDeadEndsOnly:"at-dead-ends-only",esriNFSBNoBacktrack:"no-backtrack",esriNFSBAtDeadEndsAndIntersections:"at-dead-ends-and-intersections"})),m=((0,i.O)()({esriNATravelDirectionFromFacility:"from-facility",esriNATravelDirectionToFacility:"to-facility"}),(0,i.O)()({esriNATimeOfDayNotUsed:"not-used",esriNATimeOfDayUseAsStartTime:"start",esriNATimeOfDayUseAsEndTime:"end"}),(0,i.O)()({AUTOMOBILE:"automobile",TRUCK:"truck",WALK:"walk",OTHER:"other"})),y=(0,i.O)()({0:"either-side-of-vehicle",1:"right-side-of-vehicle",2:"left-side-of-vehicle",3:"no-u-turn"},{useNumericKeys:!0}),h=(0,i.O)()({0:"stop",1:"waypoint",2:"break"},{useNumericKeys:!0}),f=(0,i.O)()({0:"ok",1:"not-located",2:"network-element-not-located",3:"element-not-traversable",4:"invalid-field-values",5:"not-reached",6:"time-window-violation",7:"not-located-on-closest"},{useNumericKeys:!0}),g=(0,i.O)()({1:"right",2:"left"},{useNumericKeys:!0}),v=(0,i.O)()({0:"restriction",1:"scaled-cost",2:"added-cost"},{useNumericKeys:!0}),b=(0,i.O)()({0:"permit",1:"restrict"},{useNumericKeys:!0}),T=(0,i.O)()({1:"header",50:"arrive",51:"depart",52:"straight",100:"on-ferry",101:"off-ferry",102:"central-fork",103:"roundabout",104:"u-turn",150:"door",151:"stairs",152:"elevator",153:"escalator",154:"pedestrian-ramp",200:"left-fork",201:"left-ramp",202:"clockwise-roundabout",203:"left-handed-u-turn",204:"bear-left",205:"left-turn",206:"sharp-left",207:"left-turn-and-immediate-left-turn",208:"left-turn-and-immediate-right-turn",300:"right-fork",301:"right-ramp",302:"counter-clockwise-roundabout",303:"right-handed-u-turn",304:"bear-right",305:"right-turn",306:"sharp-right",307:"right-turn-and-immediate-left-turn",308:"right-turn-and-immediate-right-turn",400:"up-elevator",401:"up-escalator",402:"up-stairs",500:"down-elevator",501:"down-escalator",502:"down-stairs",1e3:"general-event",1001:"landmark",1002:"time-zone-change",1003:"traffic-event",1004:"scaled-cost-barrier-event",1005:"boundary-crossing",1006:"restriction-violation",1007:"lane"},{useNumericKeys:!0}),w=(0,i.O)()({0:"unknown",1:"segment",2:"maneuver-segment",3:"restriction-violation",4:"scaled-cost-barrier",5:"heavy-traffic",6:"slow-traffic",7:"moderate-traffic"},{useNumericKeys:!0}),_=(0,i.O)()({"NA Campus":"campus","NA Desktop":"desktop","NA Navigation":"navigation"}),S=(0,i.O)()({Kilometers:"kilometers",Miles:"miles",Meters:"meters"},{ignoreUnknown:!1}),A=(0,i.O)()({Minutes:"minutes",TimeAt1KPH:"time-at-1-kph",TravelTime:"travel-time",TruckMinutes:"truck-minutes",TruckTravelTime:"truck-travel-time",WalkTime:"walk-time"},{ignoreUnknown:!1}),M=(0,i.O)()({Kilometers:"kilometers",Miles:"miles",Meters:"meters",Minutes:"minutes",TimeAt1KPH:"time-at-1-kph",TravelTime:"travel-time",TruckMinutes:"truck-minutes",TruckTravelTime:"truck-travel-time",WalkTime:"walk-time"},{ignoreUnknown:!1}),N=(0,i.O)()({"Any Hazmat Prohibited":"any-hazmat-prohibited","Avoid Carpool Roads":"avoid-carpool-roads","Avoid Express Lanes":"avoid-express-lanes","Avoid Ferries":"avoid-ferries","Avoid Gates":"avoid-gates","Avoid Limited Access Roads":"avoid-limited-access-roads","Avoid Private Roads":"avoid-private-roads","Avoid Roads Unsuitable for Pedestrians":"avoid-roads-unsuitable-for-pedestrians","Avoid Stairways":"avoid-stairways","Avoid Toll Roads":"avoid-toll-roads","Avoid Toll Roads for Trucks":"avoid-toll-roads-for-trucks","Avoid Truck Restricted Roads":"avoid-truck-restricted-roads","Avoid Unpaved Roads":"avoid-unpaved-roads","Axle Count Restriction":"axle-count-restriction","Driving a Bus":"driving-a-bus","Driving a Taxi":"driving-a-taxi","Driving a Truck":"driving-a-truck","Driving an Automobile":"driving-an-automobile","Driving an Emergency Vehicle":"driving-an-emergency-vehicle","Height Restriction":"height-restriction","Kingpin to Rear Axle Length Restriction":"kingpin-to-rear-axle-length-restriction","Length Restriction":"length-restriction","Preferred for Pedestrians":"preferred-for-pedestrians","Riding a Motorcycle":"riding-a-motorcycle","Roads Under Construction Prohibited":"roads-under-construction-prohibited","Semi or Tractor with One or More Trailers Prohibited":"semi-or-tractor-with-one-or-more-trailers-prohibited","Single Axle Vehicles Prohibited":"single-axle-vehicles-prohibited","Tandem Axle Vehicles Prohibited":"tandem-axle-vehicles-prohibited","Through Traffic Prohibited":"through-traffic-prohibited","Truck with Trailers Restriction":"truck-with-trailers-restriction","Use Preferred Hazmat Routes":"use-preferred-hazmat-routes","Use Preferred Truck Routes":"use-preferred-truck-routes",Walking:"walking","Weight Restriction":"weight-restriction"},{ignoreUnknown:!1}),O=(0,i.O)()({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),I=(0,i.O)()({esriGeometryPoint:"point",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"envelope",esriGeometryMultipoint:"multipoint"}),D=(0,i.O)()({esriNAUTCost:"cost",esriNAUTDescriptor:"descriptor",esriNAUTRestriction:"restriction",esriNAUTHierarchy:"hierarchy"}),Z=(0,i.O)()({esriDSTAltName:"alt-name",esriDSTArrive:"arrive",esriDSTBranch:"branch",esriDSTCrossStreet:"cross-street",esriDSTCumulativeLength:"cumulative-length",esriDSTDepart:"depart",esriDSTEstimatedArrivalTime:"estimated-arrival-time",esriDSTExit:"exit",esriDSTGeneral:"general",esriDSTLength:"length",esriDSTServiceTime:"service-time",esriDSTStreetName:"street-name",esriDSTSummary:"summary",esriDSTTime:"time",esriDSTTimeWindow:"time-window",esriDSTToward:"toward",esriDSTViolationTime:"violation-time",esriDSTWaitTime:"wait-time"})},4146:(e,t,r)=>{r.d(t,{A:()=>b});var i=r(90237),s=r(78888),o=r(49186),n=r(65529),a=r(4902),l=r(92474),u=r(53966),p=r(74887),c=r(84952),d=r(10107),m=(r(44208),r(87811),r(40608)),y=r(5443),h=r(16930),f=r(92602),g=r(64272);let v=0,b=class extends(n.A.EventedMixin(a.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,h.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=h.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",s=r?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,i._)([(0,d.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i._)([(0,d.MZ)({type:h.A})],b.prototype,"spatialReference",void 0),(0,i._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,i._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,i._)([(0,d.MZ)({type:g.T})],b.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i._)([(0,m.$)("esri.layers.Layer")],b)},4197:(e,t,r)=>{r.d(t,{jh:()=>s,l5:()=>n,xm:()=>o});var i=r(34275);function s(e,t=!1){return e<=i.y9?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function n(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}},8303:(e,t,r)=>{r.d(t,{A:()=>_});var i=r(90237),s=r(92602),o=r(70333),n=r(78888),a=r(60999),l=r(49186),u=r(53966),p=r(97768),c=r(74887),d=r(84952),m=r(10107),y=(r(44208),r(87811),r(36005)),h=r(40608),f=r(43937),g=r(77548),v=r(20655),b=r(80812),T=r(41318),w=r(10407);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let n,a;if(s)n=r.portal.url;else try{n=await(0,g.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!n||!(0,d.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(s?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=v.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?T.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,m.MZ)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,m.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,h.$)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},17136:(e,t,r)=>{r.d(t,{O7:()=>S,el:()=>_});var i=r(92602),s=r(49186),o=r(53966),n=r(39829),a=r(82799),l=r(80754),u=r(21325),p=r(28735),c=r(78888),d=r(65864),m=r(2272),y=r(84952),h=r(92300);const f=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function v(e){return"polyline"===e[0].type}function b(e,t,r){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof n.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw f().error(e),new s.A("internal:geometry",e)}const r=(0,l.r8)(e),i=[];for(const e of r){const r=[];i.push(r),r.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const s=e[i][0],o=e[i][1],n=e[i+1][0],a=e[i+1][1],l=Math.sqrt((n-s)*(n-s)+(a-o)*(a-o)),u=(a-o)/l,p=(n-s)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const i=e*t,n=p*i+s,a=u*i+o;r.push([n,a])}const e=(l+Math.floor(c-1)*t)/2,i=p*e+s,n=u*e+o;r.push([i,n])}r.push([n,a])}}return function(e){return"polygon"===e.type}(e)?new n.A({rings:i,spatialReference:e.spatialReference}):new a.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.ci)(t,!0)}return r&&(e=(0,l.kS)(e,r)),e}function T(e,t,r){if(Array.isArray(e)){const i=e[0];if(i>t){const r=(0,l.kd)(i,t);e[0]=i+r*(-2*t)}else if(i<r){const t=(0,l.kd)(i,r);e[0]=i+t*(-2*r)}}else{const i=e.x;if(i>t){const r=(0,l.kd)(i,t);e=e.clone().offset(r*(-2*t),0)}else if(i<r){const t=(0,l.kd)(i,r);e=e.clone().offset(t*(-2*r),0)}}return e}function w(e,t){let r=-1;for(let i=0;i<t.cutIndexes.length;i++){const s=t.cutIndexes[i],o=t.geometries[i],n=(0,l.r8)(o);for(let e=0;e<n.length;e++){const t=n[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const i=t[e][0];r=i>r?i:r}r=Number(r.toFixed(9));const i=-360*(0,l.kd)(r,180);for(let r=0;r<t.length;r++){const t=o.getPoint(e,r);o.setPoint(e,r,t.clone().offset(i,0))}return!0}}))}if(s===r){if(g(e))for(const t of(0,l.r8)(o))e[s]=e[s].addRing(t);else if(v(e))for(const t of(0,l.r8)(o))e[s]=e[s].addPath(t)}else r=s,e[s]=o}return e}async function _(e,t,r){if(!Array.isArray(e))return _([e],t);t&&"string"!=typeof t&&f().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let o,g,v,S,A,M,N,O,I=0;const D=[],Z=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,g=(0,u.Vp)(o),v=o.isWebMercator,M=v?102100:4326,S=l.j7[M].maxX,A=l.j7[M].minX,N=l.j7[M].plus180Line,O=l.j7[M].minus180Line),g)if("mesh"===t.type)Z.push(t);else if("point"===t.type)Z.push(T(t.clone(),S,A));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>T(e,S,A))),Z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);Z.push(e.rings?new n.A(e):e)}else if(t.extent){const e=t.extent,r=(0,l.kd)(e.xmin,A)*(2*S);let i=0===r?t.clone():(0,l.kS)(t.clone(),r);e.offset(r,0);let{xmin:s,xmax:o}=e;s=Number(s.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(N)&&o!==S?(I=o>I?o:I,i=b(i,v),D.push(i),Z.push("cut")):e.intersects(O)&&s!==A?(I=o*(2*S)>I?o*(2*S):I,i=b(i,v,360),D.push(i),Z.push("cut")):Z.push(i)}else Z.push(t.clone());else Z.push(t);else Z.push(t);let F=(0,l.kd)(I,S),C=-90;const j=F,x=new a.A;for(;F>0;){const e=360*F-180;x.addPath([[e,C],[e,-1*C]]),C*=-1,F--}if(D.length>0&&j>0){const t=w(D,await async function(e,t,r,i){const s=(0,m.Dl)(e),o=t[0].spatialReference,n={...i,responseType:"json",query:{...s.query,f:"json",sr:(0,u.YX)(o),target:JSON.stringify({geometryType:(0,d.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,c.A)(s.path+"/cut",n),{cutIndexes:l,geometries:p=[]}=a.data;return{cutIndexes:l,geometries:p.map((e=>{const t=(0,d.rS)(e);return t.spatialReference=o,t}))}}(s,D,x,r)),i=[],o=[];for(let r=0;r<Z.length;r++){const s=Z[r];if("cut"!==s)o.push(s);else{const s=t.shift(),n=e[r];null!=n&&"polygon"===n.type&&n.rings&&n.rings.length>1&&s.rings.length>=n.rings.length?(i.push(s),o.push("simplify")):o.push(v?(0,p.Gh)(s):s)}}if(!i.length)return o;const n=await async function(e,t,r){const i="string"==typeof e?(0,y.An)(e):e,s=t[0].spatialReference,o=(0,d.$B)(t[0]),n={...r,query:{...i.query,f:"json",sr:(0,u.YX)(s),geometries:JSON.stringify((0,h.X)(t))}},{data:a}=await(0,c.A)(i.path+"/simplify",n);return(0,h.V)(a.geometries,o,s)}(s,i,r),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(v?(0,p.Gh)(n.shift()):n.shift())}return a}const B=[];for(let e=0;e<Z.length;e++){const t=Z[e];if("cut"!==t)B.push(t);else{const e=D.shift();B.push(!0===v?(0,p.Gh)(e):e)}}return B}function S(e,t,r){const i=(0,u.Vp)(r);if(null==i)return e;const[s,o]=i.valid,n=2*o;let a=0,l=0;t>o?a=Math.ceil(Math.abs(t-o)/n):t<s&&(a=-Math.ceil(Math.abs(t-s)/n)),e>o?l=Math.ceil(Math.abs(e-o)/n):e<s&&(l=-Math.ceil(Math.abs(e-s)/n));let p=e+(a-l)*n;const c=p-t;return c>o?p-=n:c<s&&(p+=n),p}},22671:(e,t,r)=>{r.d(t,{A:()=>v});var i,s=r(90237),o=r(52106),n=r(66552),a=r(25482),l=r(4718),u=r(10107),p=(r(44208),r(53966),r(36005)),c=r(40608),d=r(43937),m=r(16930),y=r(65864),h=r(50498),f=r(20437);const g=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=m.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[o,n]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*o+i),(e=>s-e*n),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=m.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const o=e[t],n=r.fromJSON(o),a=o.geometry?.spatialReference;null==n.geometry||a||(n.geometry.spatialReference=i);const l=o.aggregateGeometries,u=n.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],s=r?.spatialReference;null==t||s||(t.spatialReference=i)}s.push(n)}return s}_quantizePoints(e,t,r){let i,s;const o=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===i&&n===s||(o.push([e-i,n-s]),i=e,s=n)}else i=t(a[0]),s=r(a[1]),o.push([i,s])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,y.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,y.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,y.Bi)(e)?e.rings:e.paths;let n,a;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],a+=s[1]):(n=s[0],a=s[1]),s[0]=t(n),s[1]=r(a)}}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let n,a;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],a+=i[1]):(n=i[0],a=i[1]),i[0]=t(n),i[1]=r(a)}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,u.MZ)({type:[o.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s._)([(0,p.w)("features")],v.prototype,"readFeatures",null),(0,s._)([(0,u.MZ)({type:[f.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s._)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,s._)([(0,d.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s._)([(0,u.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s._)([(0,p.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s._)([(0,u.MZ)({type:m.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s._)([(0,d.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s._)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s._)([(0,c.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},24097:(e,t,r)=>{r.d(t,{K:()=>i});const i={type:String,json:{read:{source:"token"},write:{target:"token"}}}},25036:(e,t,r)=>{r.d(t,{j:()=>n});var i=r(90237),s=r(10107),o=(r(44208),r(53966),r(87811),r(40608));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,s.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,o.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},37807:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(90237),s=r(66552),o=r(25482),n=r(10107),a=(r(44208),r(53966),r(87811),r(40608));const l=new s.J({esriJobMessageTypeInformative:"informative",esriJobMessageTypeProcessDefinition:"process-definition",esriJobMessageTypeProcessStart:"process-start",esriJobMessageTypeProcessStop:"process-stop",esriJobMessageTypeWarning:"warning",esriJobMessageTypeError:"error",esriJobMessageTypeEmpty:"empty",esriJobMessageTypeAbort:"abort"});let u=class extends o.A{constructor(e){super(e),this.description=null,this.type=null}};(0,i._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,i._)([(0,n.MZ)({type:String,json:{read:l.read,write:l.write}})],u.prototype,"type",void 0),u=(0,i._)([(0,a.$)("esri.rest.support.GPMessage")],u);const p=u},46130:(e,t,r)=>{r.d(t,{v:()=>s});var i=r(76553);function s(e){e?.writtenProperties&&e.writtenProperties.forEach((({target:e,propName:t,newOrigin:r})=>{(0,i.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)}))}},46140:(e,t,r)=>{r.d(t,{R:()=>s});var i=r(49186);let s=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[s,o]=t.split("."),n=/^\s*\d+\s*$/;if(!s?.match||!n.test(s))throw new i.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!o?.match||!n.test(o))throw new i.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const a=parseInt(s,10),l=parseInt(o,10);return new e(a,l,r)}}},54339:(e,t,r)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map((t=>e.attributes?.[t]));return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>s})},55674:(e,t,r)=>{r.d(t,{Ad:()=>m,Gj:()=>f,QY:()=>d,lL:()=>g,xR:()=>y});var i=r(66131),s=r(49186),o=(r(44208),r(44729)),n=r(15032),a=r(65864),l=r(95466),u=r(43668),p=r(98623);const c=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of c)t.hasArcadeDependency(r)&&e.add(r);return e}function m(e,t){return h.create(e,t,null,["$feature","$view"])}function y(e,t,r){return h.create(e,t,r,["$feature","$view","$config"])}class h{static async create(e,t,r,i){const{arcade:o,Dictionary:n}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new s.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const p={vars:i.reduce(((e,t)=>({...e,[t]:null})),{}),spatialReference:t,useAsync:!1},c=o.compileScript(a,p);let d=null;null!=r&&(d=new n(r),d.immutable=!0);const m=new n;return m.immutable=!1,m.setField("scale",0),new h(e,o,a,c,t,m,d,n)}constructor(e,t,r,i,s,o,n,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=s,this._viewDict=o,this._configDict=n,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new f,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:s,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=s?null!=r?i.lY.epochToArcadeDate(s,r):i.lY.unknownEpochToArcadeDate(s):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class f{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===p.L5}field(e,t=!0){const r=this._getField(e);if(r)switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(this._boundTarget.attributes[r.name]);case"time-only":case"esriFieldTypeTimeOnly":return n.k.fromReader(this._boundTarget.attributes[r.name]);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(this._boundTarget.attributes[r.name]);case"date":case"esriFieldTypeDate":{const t=this._boundTarget.attributes[r.name];return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??p.qU)}default:return this._boundTarget.attributes[r.name]}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map((e=>e.name))}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},63074:(e,t,r)=>{r.d(t,{LF:()=>p,dM:()=>c,sU:()=>l});var i=r(90237),s=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),n=r(89317),a=r(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:n.K}},"portal-item":{read:!0,write:{layerContainerTypes:n.K}}}}},u={read:{reader:a.LF},write:{allowNull:!0,writer:a.M9,layerContainerTypes:n.K}},p={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}},c=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,i._)([(0,s.MZ)(l)],t.prototype,"blendMode",void 0),(0,i._)([(0,s.MZ)(p)],t.prototype,"effect",void 0),t=(0,i._)([(0,o.$)("esri.layers.mixins.BlendLayer")],t),t}},64185:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_t});var i=r(90237),s=r(92602),o=r(52106),n=r(13874),a=r(5503),l=r(49186),u=r(53966),p=r(92071),c=r(93637),d=r(74887),m=r(36708),y=r(83047),h=r(84952),f=r(10107),g=(r(44208),r(87811),r(36005)),v=r(40608),b=r(43937),T=r(46130),w=r(5443),_=r(48526),S=r(80586),A=r(16930),M=r(21325),N=r(4146),O=r(63074),I=r(16131),D=r(8303),Z=r(25036),F=r(60694),C=r(25482),j=r(53930),x=r(33910);let B=class extends C.A{constructor(e){super(e),this.break=new j.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}}),this.first=new j.A({color:[0,255,0],size:20,outline:{color:[255,255,255],width:4}}),this.unlocated=new j.A({color:[255,0,0],size:12,outline:{color:[255,255,255],width:3}}),this.last=new j.A({color:[255,0,0],size:20,outline:{color:[255,255,255],width:4}}),this.middle=new j.A({color:[51,51,51],size:12,outline:{color:[0,122,194],width:3}}),this.waypoint=new j.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}})}};(0,i._)([(0,f.MZ)({types:x.wC})],B.prototype,"break",void 0),(0,i._)([(0,f.MZ)({types:x.wC})],B.prototype,"first",void 0),(0,i._)([(0,f.MZ)({types:x.wC})],B.prototype,"unlocated",void 0),(0,i._)([(0,f.MZ)({types:x.wC})],B.prototype,"last",void 0),(0,i._)([(0,f.MZ)({types:x.wC})],B.prototype,"middle",void 0),(0,i._)([(0,f.MZ)({types:x.wC})],B.prototype,"waypoint",void 0),B=(0,i._)([(0,v.$)("esri.layers.support.RouteStopSymbols")],B);var R=r(94985),P=r(31593);let E=class extends C.A{constructor(e){super(e),this.directionLines=new P.A({color:[0,122,194],width:6}),this.directionPoints=new j.A({color:[255,255,255],size:6,outline:{color:[0,122,194],width:2}}),this.pointBarriers=new j.A({style:"x",size:10,outline:{color:[255,0,0],width:3}}),this.polygonBarriers=new R.A({color:[255,170,0,.6],outline:{width:7.5,color:[255,0,0,.6]}}),this.polylineBarriers=new P.A({width:7.5,color:[255,85,0,.7]}),this.routeInfo=new P.A({width:8,color:[20,89,127]}),this.stops=new B}};(0,i._)([(0,f.MZ)({types:x.Y7})],E.prototype,"directionLines",void 0),(0,i._)([(0,f.MZ)({types:x.wC})],E.prototype,"directionPoints",void 0),(0,i._)([(0,f.MZ)({types:x.wC})],E.prototype,"pointBarriers",void 0),(0,i._)([(0,f.MZ)({types:x.Ac})],E.prototype,"polygonBarriers",void 0),(0,i._)([(0,f.MZ)({types:x.Y7})],E.prototype,"polylineBarriers",void 0),(0,i._)([(0,f.MZ)({types:x.Y7})],E.prototype,"routeInfo",void 0),(0,i._)([(0,f.MZ)({type:B})],E.prototype,"stops",void 0),E=(0,i._)([(0,v.$)("esri.layers.support.RouteSymbols")],E);var L=r(20655),J=r(80812),U=r(10407),k=r(65494),$=r(78888),q=r(2272),W=r(93223),G=r(2073);let V=class extends C.A{constructor(e){super(e),this.dataType=null,this.name=null,this.parameterNames=null,this.restrictionUsageParameterName=null,this.timeNeutralAttributeName=null,this.trafficSupport=null,this.units=null,this.usageType=null}};(0,i._)([(0,f.MZ)({type:String})],V.prototype,"dataType",void 0),(0,i._)([(0,W.e)(G.et,{ignoreUnknown:!1})],V.prototype,"name",void 0),(0,i._)([(0,f.MZ)({type:[String]})],V.prototype,"parameterNames",void 0),(0,i._)([(0,f.MZ)({type:String})],V.prototype,"restrictionUsageParameterName",void 0),(0,i._)([(0,W.e)(G.Mm,{ignoreUnknown:!1})],V.prototype,"timeNeutralAttributeName",void 0),(0,i._)([(0,f.MZ)({type:String})],V.prototype,"trafficSupport",void 0),(0,i._)([(0,W.e)(G.dn)],V.prototype,"units",void 0),(0,i._)([(0,W.e)(G.WU)],V.prototype,"usageType",void 0),V=(0,i._)([(0,v.$)("esri.rest.support.NetworkAttribute")],V);const z=V;let K=class extends C.A{constructor(e){super(e),this.buildTime=null,this.name=null,this.networkAttributes=null,this.networkSources=null,this.state=null}};(0,i._)([(0,f.MZ)({type:Number})],K.prototype,"buildTime",void 0),(0,i._)([(0,f.MZ)({type:String})],K.prototype,"name",void 0),(0,i._)([(0,f.MZ)({type:[z]})],K.prototype,"networkAttributes",void 0),(0,i._)([(0,f.MZ)()],K.prototype,"networkSources",void 0),(0,i._)([(0,f.MZ)({type:String})],K.prototype,"state",void 0),K=(0,i._)([(0,v.$)("esri.rest.support.NetworkDataset")],K);const Y=K;var H=r(69540);let X=class extends(H.A.ClonableMixin(C.A)){constructor(e){super(e),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}readId(e,t){return t.id??t.itemId??null}readRestrictionAttributes(e,t){const{restrictionAttributeNames:r}=t;return null==r?null:r.map((e=>G.OC.fromJSON(e)))}writeRestrictionAttributes(e,t,r){null!=e&&(t[r]=e.map((e=>G.OC.toJSON(e))))}};(0,i._)([(0,f.MZ)({type:[Object],json:{write:!0}})],X.prototype,"attributeParameterValues",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,i._)([(0,W.e)(G.dd,{ignoreUnknown:!1})],X.prototype,"distanceAttributeName",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],X.prototype,"id",void 0),(0,i._)([(0,g.w)("id",["id","itemId"])],X.prototype,"readId",null),(0,i._)([(0,W.e)(G.et,{ignoreUnknown:!1})],X.prototype,"impedanceAttributeName",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],X.prototype,"name",void 0),(0,i._)([(0,f.MZ)({type:[String],json:{write:!0}})],X.prototype,"restrictionAttributeNames",void 0),(0,i._)([(0,g.w)("restrictionAttributeNames")],X.prototype,"readRestrictionAttributes",null),(0,i._)([(0,b.K)("restrictionAttributeNames")],X.prototype,"writeRestrictionAttributes",null),(0,i._)([(0,f.MZ)({type:Number,json:{write:{allowNull:!0}}})],X.prototype,"simplificationTolerance",void 0),(0,i._)([(0,W.e)(G.hY)],X.prototype,"simplificationToleranceUnits",void 0),(0,i._)([(0,W.e)(G.Mm,{ignoreUnknown:!1})],X.prototype,"timeAttributeName",void 0),(0,i._)([(0,W.e)(G.ow)],X.prototype,"type",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"useHierarchy",void 0),(0,i._)([(0,W.e)(G.hE)],X.prototype,"uturnAtJunctions",void 0),X=(0,i._)([(0,v.$)("esri.rest.support.TravelMode")],X);let Q=class extends C.A{constructor(e){super(e),this.accumulateAttributeNames=null,this.attributeParameterValues=null,this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}readAccumulateAttributes(e){return null==e?null:e.map((e=>G.et.fromJSON(e)))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map((e=>G.et.toJSON(e))))}get capabilities(){return{supportsNow:(this.currentVersion??10)>=10.81}}readDefaultTravelMode(e,t){const r=t.supportedTravelModes?.find((({id:e})=>e===t.defaultTravelMode))??t.supportedTravelModes?.find((({itemId:e})=>e===t.defaultTravelMode));return r?X.fromJSON(r):null}};function ee(e,t,r,i){i[r]=[t.length,t.length+e.length],e.forEach((e=>{t.push(e.geometry)}))}async function te(e,t,r){if(!e)throw new l.A("network-service:missing-url","Url to Network service is missing");const i=(0,q.jV)({f:"json",token:t},r),{data:s}=await(0,$.A)(e,i),o=s.currentVersion>=10.4?async function(e,t,r){try{const i=(0,q.jV)({f:"json",token:t},r),s=(0,h.UC)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:o,defaultTravelMode:n}}=await(0,$.A)(s,i);return{supportedTravelModes:o,defaultTravelMode:n}}catch(e){throw new l.A("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:e})}}(e,t,r):async function(e,t){const r=(0,q.jV)({f:"json"},t),{data:i}=await(0,$.A)(e.replace(/\/rest\/.*$/i,"/info"),r);if(!i?.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:s}=i,o=(0,h.UC)(s)+"/sharing/rest/portals/self",{data:n}=await(0,$.A)(o,r),a=(0,c.wc)("helperServices.routingUtilities.url",n);if(!a)return{supportedTravelModes:[],defaultTravelMode:null};const l=(0,q.Dl)(s),u=/\/solve$/i.test(l.path)?"Route":/\/solveclosestfacility$/i.test(l.path)?"ClosestFacility":"ServiceAreas",p=(0,q.jV)({f:"json",serviceName:u},t),d=(0,h.UC)(a)+"/GetTravelModes/execute",m=await(0,$.A)(d,p),y=[];let f=null;if(m?.data?.results?.length){const e=m.data.results;for(const t of e)if("supportedTravelModes"===t.paramName){if(t.value?.features)for(const{attributes:e}of t.value.features)if(e){const t=JSON.parse(e.TravelMode);y.push(t)}}else"defaultTravelMode"===t.paramName&&(f=t.value)}return{supportedTravelModes:y,defaultTravelMode:f}}(e,r),{defaultTravelMode:n,supportedTravelModes:a}=await o;return s.defaultTravelMode=n,s.supportedTravelModes=a,Q.fromJSON(s)}(0,i._)([(0,f.MZ)()],Q.prototype,"accumulateAttributeNames",void 0),(0,i._)([(0,g.w)("accumulateAttributeNames")],Q.prototype,"readAccumulateAttributes",null),(0,i._)([(0,b.K)("accumulateAttributeNames")],Q.prototype,"writeAccumulateAttributes",null),(0,i._)([(0,f.MZ)()],Q.prototype,"attributeParameterValues",void 0),(0,i._)([(0,f.MZ)()],Q.prototype,"capabilities",null),(0,i._)([(0,f.MZ)()],Q.prototype,"currentVersion",void 0),(0,i._)([(0,f.MZ)()],Q.prototype,"defaultTravelMode",void 0),(0,i._)([(0,g.w)("defaultTravelMode",["defaultTravelMode","supportedTravelModes"])],Q.prototype,"readDefaultTravelMode",null),(0,i._)([(0,f.MZ)()],Q.prototype,"directionsLanguage",void 0),(0,i._)([(0,W.e)(G.Z7)],Q.prototype,"directionsLengthUnits",void 0),(0,i._)([(0,f.MZ)()],Q.prototype,"directionsSupportedLanguages",void 0),(0,i._)([(0,W.e)(G.Mm,{ignoreUnknown:!1})],Q.prototype,"directionsTimeAttribute",void 0),(0,i._)([(0,f.MZ)()],Q.prototype,"hasZ",void 0),(0,i._)([(0,W.e)(G.et,{ignoreUnknown:!1})],Q.prototype,"impedance",void 0),(0,i._)([(0,f.MZ)({type:Y})],Q.prototype,"networkDataset",void 0),(0,i._)([(0,f.MZ)({type:[X]})],Q.prototype,"supportedTravelModes",void 0),Q=(0,i._)([(0,v.$)("esri.rest.support.NetworkServiceDescription")],Q);var re=r(16649),ie=r(17136);function se(e,t){if(null==e)return null;const r={},i=new RegExp(`^${t}`,"i");for(const s of Object.keys(e))if(i.test(s)){const i=s.slice(t.length);r[G.et.fromJSON(i)]=e[s]}return r}function oe(e,t,r){if(null!=e){t.attributes||(t.attributes={});for(const i in e){const s=G.et.toJSON(i);t.attributes[`${r}${s}`]=e[i]}}}function ne(e){const t={};for(const r of Object.keys(e)){const i=r;t[G.et.fromJSON(i)]=e[r]}return t}function ae(e){const t={};for(const r of Object.keys(e)){const i=r;t[G.et.toJSON(i)]=e[r]}return t}function le(e,t){return null==e||null==t?null:Math.round((e-t)/6e4)}function ue(e){const t=e.toJSON(),r=t;return r.accumulateAttributeNames&&=t.accumulateAttributeNames?.join(),r.attributeParameterValues&&=JSON.stringify(t.attributeParameterValues),r.barriers&&=JSON.stringify(t.barriers),r.outSR&&=t.outSR?.wkid,r.overrides&&=JSON.stringify(t.overrides),r.polygonBarriers&&=JSON.stringify(t.polygonBarriers),r.polylineBarriers&&=JSON.stringify(t.polylineBarriers),r.restrictionAttributeNames&&=t.restrictionAttributeNames?.join(),r.stops&&=JSON.stringify(t.stops),r.travelMode&&=JSON.stringify(t.travelMode),r}var pe=r(22671),ce=r(4576),de=r(66552),me=r(37807);const ye=new de.J({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let he=class extends me.A{constructor(e){super(e),this.type=null}};(0,i._)([(0,f.MZ)({type:String,json:{read:ye.read,write:ye.write}})],he.prototype,"type",void 0),he=(0,i._)([(0,v.$)("esri.rest.support.NAMessage")],he);const fe=he;var ge=r(82799),ve=r(86738);let be=class extends C.A{constructor(e){super(e)}};(0,i._)([(0,f.MZ)({json:{read:{source:"string"}}})],be.prototype,"text",void 0),(0,i._)([(0,W.e)(G.Ec,{name:"stringType"})],be.prototype,"type",void 0),be=(0,i._)([(0,v.$)("esri.rest.support.DirectionsString")],be);const Te=be;let we=class extends C.A{constructor(e){super(e),this.arriveTime=null,this.arriveTimeOffset=null,this.geometry=null,this.strings=null}readArriveTimeOffset(e,t){return le(t.ETA,t.arriveTimeUTC)}readGeometry(e,t){return ve.A.fromJSON(t.point)}};(0,i._)([(0,f.MZ)({type:Date,json:{read:{source:"arriveTimeUTC"}}})],we.prototype,"arriveTime",void 0),(0,i._)([(0,f.MZ)()],we.prototype,"arriveTimeOffset",void 0),(0,i._)([(0,g.w)("arriveTimeOffset",["arriveTimeUTC","ETA"])],we.prototype,"readArriveTimeOffset",null),(0,i._)([(0,f.MZ)({type:ve.A})],we.prototype,"geometry",void 0),(0,i._)([(0,g.w)("geometry",["point"])],we.prototype,"readGeometry",null),(0,i._)([(0,f.MZ)({type:[Te]})],we.prototype,"strings",void 0),we=(0,i._)([(0,v.$)("esri.rest.support.DirectionsEvent")],we);const _e=we;let Se=class extends o.A{constructor(e){super(e),this.events=null,this.geometry=null,this.strings=null}readGeometry(e,t){const r=function(e){if(null==e||""===e)return null;let t=0,r=0,i=0,s=0;const o=[];let n,a,l,u,p,c,d,m,y=0,h=0,f=0;if(p=e.match(/((\+|-)[^+\-|]+|\|)/g),p||(p=[]),0===parseInt(p[y],32)){y=2;const e=parseInt(p[y],32);y++,c=parseInt(p[y],32),y++,1&e&&(h=p.indexOf("|")+1,d=parseInt(p[h],32),h++),2&e&&(f=p.indexOf("|",h)+1,m=parseInt(p[f],32),f++)}else c=parseInt(p[y],32),y++;for(;y<p.length&&"|"!==p[y];){n=parseInt(p[y],32)+t,y++,t=n,a=parseInt(p[y],32)+r,y++,r=a;const e=[n/c,a/c];h&&(u=parseInt(p[h],32)+i,h++,i=u,e.push(u/d)),f&&(l=parseInt(p[f],32)+s,f++,s=l,e.push(l/m)),o.push(e)}return{paths:[o],hasZ:h>0,hasM:f>0}}(t.compressedGeometry);return null!=r?ge.A.fromJSON(r):null}};(0,i._)([(0,f.MZ)({type:[_e]})],Se.prototype,"events",void 0),(0,i._)([(0,f.MZ)({type:ge.A})],Se.prototype,"geometry",void 0),(0,i._)([(0,g.w)("geometry",["compressedGeometry"])],Se.prototype,"readGeometry",null),(0,i._)([(0,f.MZ)({type:[Te]})],Se.prototype,"strings",void 0),Se=(0,i._)([(0,v.$)("esri.rest.support.DirectionsFeature")],Se);const Ae=Se;let Me=class extends pe.A{constructor(e){super(e),this.extent=null,this.features=[],this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,t){if(!e)return[];const r=t.summary.envelope.spatialReference??t.spatialReference,i=r&&A.A.fromJSON(r);return e.map((e=>{const t=Ae.fromJSON(e);if(null!=t.geometry&&(t.geometry.spatialReference=i),null!=t.events)for(const e of t.events)null!=e.geometry&&(e.geometry.spatialReference=i);return t}))}get mergedGeometry(){return this.features?function(e,t){if(0===e.length)return new ge.A({spatialReference:t});const r=[];for(const t of e)for(const e of t.paths)r.push(...e);const i=[];r.forEach(((e,t)=>{0!==t&&e[0]===r[t-1][0]&&e[1]===r[t-1][1]||i.push(e)}));const{hasM:s,hasZ:o}=e[0];return new ge.A({hasM:s,hasZ:o,paths:[i],spatialReference:t})}(this.features.map((({geometry:e})=>e)),this.extent.spatialReference):null}get strings(){return this.features.flatMap((({strings:e})=>e)).filter(ce.Ru)}};(0,i._)([(0,f.MZ)({type:w.A,json:{read:{source:"summary.envelope"}}})],Me.prototype,"extent",void 0),(0,i._)([(0,f.MZ)({nonNullable:!0})],Me.prototype,"features",void 0),(0,i._)([(0,g.w)("features")],Me.prototype,"readFeatures",null),(0,i._)([(0,f.MZ)()],Me.prototype,"geometryType",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],Me.prototype,"mergedGeometry",null),(0,i._)([(0,f.MZ)()],Me.prototype,"routeId",void 0),(0,i._)([(0,f.MZ)()],Me.prototype,"routeName",void 0),(0,i._)([(0,f.MZ)({value:null,readOnly:!0})],Me.prototype,"strings",null),(0,i._)([(0,f.MZ)({json:{read:{source:"summary.totalDriveTime"}}})],Me.prototype,"totalDriveTime",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"summary.totalLength"}}})],Me.prototype,"totalLength",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"summary.totalTime"}}})],Me.prototype,"totalTime",void 0),Me=(0,i._)([(0,v.$)("esri.rest.support.DirectionsFeatureSet")],Me);const Ne=Me;let Oe=class extends C.A{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null,this.traversedEdges=null,this.traversedJunctions=null,this.traversedTurns=null}};(0,i._)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Oe.prototype,"directionLines",void 0),(0,i._)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Oe.prototype,"directionPoints",void 0),(0,i._)([(0,f.MZ)({type:Ne,json:{write:!0}})],Oe.prototype,"directions",void 0),(0,i._)([(0,f.MZ)({type:o.A,json:{write:!0}})],Oe.prototype,"route",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],Oe.prototype,"routeName",void 0),(0,i._)([(0,f.MZ)({type:[o.A],json:{write:!0}})],Oe.prototype,"stops",void 0),(0,i._)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Oe.prototype,"traversedEdges",void 0),(0,i._)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Oe.prototype,"traversedJunctions",void 0),(0,i._)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Oe.prototype,"traversedTurns",void 0),Oe=(0,i._)([(0,v.$)("esri.rest.support.RouteResult")],Oe);const Ie=Oe;function De(e){return e?pe.A.fromJSON(e).features.filter(ce.Ru):[]}let Ze=class extends C.A{constructor(e){super(e),this.checksum=null,this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,t){return De(t.barriers)}readPolylineBarriers(e){return De(e)}readPolygonBarriers(e){return De(e)}};function Fe(e){return e instanceof pe.A}async function Ce(e,t,r){const i=[],s=[],o={},n={},a=(0,q.Dl)(e),{path:l}=a;Fe(t.stops)&&ee(t.stops.features,s,"stops.features",o),Fe(t.pointBarriers)&&ee(t.pointBarriers.features,s,"pointBarriers.features",o),Fe(t.polylineBarriers)&&ee(t.polylineBarriers.features,s,"polylineBarriers.features",o),Fe(t.polygonBarriers)&&ee(t.polygonBarriers.features,s,"polygonBarriers.features",o);const p=await(0,ie.el)(s);for(const e in o){const t=o[e];i.push(e),n[e]=p.slice(t[0],t[1])}if(function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)if(null!=e&&e.hasZ)return!0}return!1}(n,i)){let e=null;try{e=await te(l,t.apiKey,r)}catch{}e&&!e.hasZ&&function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)e.z=void 0}u.A.getLogger("esri.rest.networkService").warnOnce("The remote Network Analysis service is powered by a network dataset which is not Z-aware.\nZ-coordinates of the input geometry are ignored.")}(n,i)}for(const e in n)n[e].forEach(((r,i)=>{(0,re.Jt)(t,e)[i].geometry=r}));const c={...r,query:{...a.query,...ue(t),f:"json"}},d=l.endsWith("/solve")?l:`${l}/solve`,{data:m}=await(0,$.A)(d,c);return function(e){const{barriers:t,checksum:r,directionLines:i,directionPoints:s,directions:o,messages:n,polygonBarriers:a,polylineBarriers:l,routes:u,stops:p,traversedEdges:c,traversedJunctions:d,traversedTurns:m}=e,y=e=>{const t=f.find((t=>t.routeName===e));if(null!=t)return t;const r={routeId:f.length+1,routeName:e};return f.push(r),r},h=e=>{const t=f.find((t=>t.routeId===e));if(null!=t)return t;const r={routeId:e,routeName:null};return f.push(r),r},f=[];u?.features.forEach(((e,t)=>{e.geometry.spatialReference=u.spatialReference??void 0;const r=e.attributes.Name,i=t+1;f.push({routeId:i,routeName:r,route:e})})),o?.forEach((e=>{const{routeName:t}=e;y(t).directions=e}));const g=p?.features.every((e=>null==e.attributes.RouteName))&&f.length>0?f[0].routeName:null;return p?.features.forEach((e=>{e.geometry&&(e.geometry.spatialReference??=p.spatialReference??void 0);const t=g??e.attributes.RouteName,r=y(t);r.stops??=[],r.stops.push(e)})),i?.features.forEach((e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:s,spatialReference:o}=i;r.directionLines??={features:[],geometryType:s,spatialReference:o},r.directionLines.features.push(e)})),s?.features.forEach((e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:o}=s;r.directionPoints??={features:[],geometryType:i,spatialReference:o},r.directionPoints.features.push(e)})),c?.features.forEach((e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:s}=c;r.traversedEdges??={features:[],geometryType:i,spatialReference:s},r.traversedEdges.features.push(e)})),d?.features.forEach((e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:s}=d;r.traversedJunctions??={features:[],geometryType:i,spatialReference:s},r.traversedJunctions.features.push(e)})),m?.features.forEach((e=>{const t=e.attributes.RouteID,r=h(t);r.traversedTurns??={features:[]},r.traversedTurns.features.push(e)})),Ze.fromJSON({barriers:t,checksum:r,messages:n,polygonBarriers:a,polylineBarriers:l,routeResults:f})}(m)}var je;(0,i._)([(0,f.MZ)({type:String})],Ze.prototype,"checksum",void 0),(0,i._)([(0,f.MZ)({type:[fe]})],Ze.prototype,"messages",void 0),(0,i._)([(0,f.MZ)({type:[o.A]})],Ze.prototype,"pointBarriers",void 0),(0,i._)([(0,g.w)("pointBarriers",["barriers"])],Ze.prototype,"readPointBarriers",null),(0,i._)([(0,f.MZ)({type:[o.A]})],Ze.prototype,"polylineBarriers",void 0),(0,i._)([(0,g.w)("polylineBarriers")],Ze.prototype,"readPolylineBarriers",null),(0,i._)([(0,f.MZ)({type:[o.A]})],Ze.prototype,"polygonBarriers",void 0),(0,i._)([(0,g.w)("polygonBarriers")],Ze.prototype,"readPolygonBarriers",null),(0,i._)([(0,f.MZ)({type:[Ie]})],Ze.prototype,"routeResults",void 0),Ze=(0,i._)([(0,v.$)("esri.rest.support.RouteSolveResult")],Ze);let xe=class extends(H.A.ClonableMixin(C.A)){static{je=this}constructor(e){super(e),this.directionLineType=null,this.directionPointId=null,this.distance=null,this.duration=null,this.fromLevel=null,this.geometry=null,this.objectId=null,this.popupTemplate=null,this.symbol=null,this.toLevel=null,this.type="direction-line"}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"DirectionLineType",alias:"Line Type",type:"esriFieldTypeInteger"},{name:"DirectionPointID",alias:"Direction Point ID",type:"esriFieldTypeInteger"},{name:"FromLevel",alias:"From Level",type:"esriFieldTypeInteger"},{name:"Meters",alias:"Meters",type:"esriFieldTypeDouble"},{name:"Minutes",alias:"Minutes",type:"esriFieldTypeDouble"},{name:"ToLevel",alias:"To Level",type:"esriFieldTypeInteger"}]}static fromGraphic(e){return new je({directionLineType:G.gD.fromJSON(e.attributes.DirectionLineType),directionPointId:e.attributes.DirectionPointID,distance:e.attributes.Meters,duration:e.attributes.Minutes,fromLevel:e.attributes.FromLevel??null,geometry:e.geometry,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,symbol:e.symbol,toLevel:e.attributes.ToLevel??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionLineType:this.directionLineType?G.gD.toJSON(this.directionLineType):null,DirectionPointID:this.directionPointId,Meters:this.distance,Minutes:this.duration};return null!=this.fromLevel&&(e.FromLevel=this.fromLevel),null!=this.toLevel&&(e.ToLevel=this.toLevel),new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Be;(0,i._)([(0,f.MZ)({type:G.gD.apiValues,json:{read:{source:"attributes.DirectionLineType",reader:G.gD.read}}})],xe.prototype,"directionLineType",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.DirectionPointID"}}})],xe.prototype,"directionPointId",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.Meters"}}})],xe.prototype,"distance",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.Minutes"}}})],xe.prototype,"duration",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.FromLevel"}}})],xe.prototype,"fromLevel",void 0),(0,i._)([(0,f.MZ)({type:ge.A})],xe.prototype,"geometry",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.ObjectID"}}})],xe.prototype,"objectId",void 0),(0,i._)([(0,f.MZ)({type:n.A})],xe.prototype,"popupTemplate",void 0),(0,i._)([(0,f.MZ)({types:x.Es})],xe.prototype,"symbol",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.ToLevel"}}})],xe.prototype,"toLevel",void 0),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"type",void 0),xe=je=(0,i._)([(0,v.$)("esri.rest.support.DirectionLine")],xe);let Re=class extends(H.A.ClonableMixin(C.A)){static{Be=this}constructor(e){super(e),this.alternateName=null,this.arrivalTime=null,this.arrivalTimeOffset=null,this.azimuth=null,this.branchName=null,this.directionPointType=null,this.displayText=null,this.exitName=null,this.geometry=null,this.intersectingName=null,this.level=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sequence=null,this.shortVoiceInstruction=null,this.stopId=null,this.symbol=null,this.towardName=null,this.type="direction-point",this.voiceInstruction=null}readArrivalTime(e,t){return null!=t.attributes.ArrivalTime?new Date(t.attributes.ArrivalTime):null}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"AlternateName",alias:"Alternative Name",type:"esriFieldTypeString"},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate"},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger"},{name:"Azimuth",alias:"Azimuth",type:"esriFieldTypeDouble"},{name:"BranchName",alias:"Branch Name",type:"esriFieldTypeString"},{name:"DirectionPointType",alias:"Directions Point Type",type:"esriFieldTypeInteger"},{name:"DisplayText",alias:"Display Text",type:"esriFieldTypeString"},{name:"ExitName",alias:"Exit Name",type:"esriFieldTypeString"},{name:"IntersectingName",alias:"Intersecting Name",type:"esriFieldTypeString"},{name:"Level",alias:"Level",type:"esriFieldTypeInteger"},{name:"Name",alias:"Name",type:"esriFieldTypeString"},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger"},{name:"ShortVoiceInstruction",alias:"Short Voice Instruction",type:"esriFieldTypeString"},{name:"StopID",alias:"Stop ID",type:"esriFieldTypeInteger"},{name:"TowardName",alias:"Toward Name",type:"esriFieldTypeString"},{name:"VoiceInstruction",alias:"Voice Instruction",type:"esriFieldTypeString"}]}static fromGraphic(e){return new Be({alternateName:e.attributes.AlternateName??null,arrivalTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arrivalTimeOffset:e.attributes.ArrivalUTCOffset??null,azimuth:e.attributes.Azimuth??null,branchName:e.attributes.BranchName??null,directionPointType:G._6.fromJSON(e.attributes.DirectionPointType),displayText:e.attributes.DisplayText??null,exitName:e.attributes.ExitName??null,geometry:e.geometry,intersectingName:e.attributes.IntersectingName??null,level:e.attributes.Level??null,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,sequence:e.attributes.Sequence,shortVoiceInstruction:e.attributes.ShortVoiceInstruction??null,stopId:e.attributes.StopID??null,symbol:e.symbol,towardName:e.attributes.TowardName??null,voiceInstruction:e.attributes.VoiceInstruction??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionPointType:this.directionPointType?G._6.toJSON(this.directionPointType):null,Sequence:this.sequence,StopID:this.stopId};return null!=this.alternateName&&(e.AlternateName=this.alternateName),null!=this.arrivalTime&&(e.ArrivalTime=this.arrivalTime.getTime()),null!=this.arrivalTimeOffset&&(e.ArrivalUTCOffset=this.arrivalTimeOffset),null!=this.azimuth&&(e.Azimuth=this.azimuth),null!=this.branchName&&(e.BranchName=this.branchName),null!=this.displayText&&(e.DisplayText=this.displayText),null!=this.exitName&&(e.ExitName=this.exitName),null!=this.intersectingName&&(e.IntersectingName=this.intersectingName),null!=this.level&&(e.Level=this.level),null!=this.name&&(e.Name=this.name),null!=this.shortVoiceInstruction&&(e.ShortVoiceInstruction=this.shortVoiceInstruction),null!=this.towardName&&(e.TowardName=this.towardName),null!=this.voiceInstruction&&(e.VoiceInstruction=this.voiceInstruction),new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Pe;(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.AlternateName"}}})],Re.prototype,"alternateName",void 0),(0,i._)([(0,f.MZ)({type:Date})],Re.prototype,"arrivalTime",void 0),(0,i._)([(0,g.w)("arrivalTime",["attributes.ArrivalTime"])],Re.prototype,"readArrivalTime",null),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],Re.prototype,"arrivalTimeOffset",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.Azimuth"}}})],Re.prototype,"azimuth",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.BranchName"}}})],Re.prototype,"branchName",void 0),(0,i._)([(0,f.MZ)({type:G._6.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:G._6.read}}})],Re.prototype,"directionPointType",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.DisplayText"}}})],Re.prototype,"displayText",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.ExitName"}}})],Re.prototype,"exitName",void 0),(0,i._)([(0,f.MZ)({type:ve.A})],Re.prototype,"geometry",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.IntersectingName"}}})],Re.prototype,"intersectingName",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.Level"}}})],Re.prototype,"level",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.Name"}}})],Re.prototype,"name",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Re.prototype,"objectId",void 0),(0,i._)([(0,f.MZ)({type:n.A})],Re.prototype,"popupTemplate",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.Sequence"}}})],Re.prototype,"sequence",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.ShortVoiceInstruction"}}})],Re.prototype,"shortVoiceInstruction",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.StopID"}}})],Re.prototype,"stopId",void 0),(0,i._)([(0,f.MZ)({types:x.Es})],Re.prototype,"symbol",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.TowardName"}}})],Re.prototype,"towardName",void 0),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Re.prototype,"type",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.VoiceInstruction"}}})],Re.prototype,"voiceInstruction",void 0),Re=Be=(0,i._)([(0,v.$)("esri.rest.support.DirectionPoint")],Re);let Ee=class extends(H.A.ClonableMixin(C.A)){static{Pe=this}constructor(e){super(e),this.addedCost=null,this.barrierType=null,this.costs=null,this.curbApproach=null,this.fullEdge=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sideOfEdge=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.type="point-barrier"}readCosts(e,t){return se(t.attributes,"Attr_")}writeCosts(e,t){oe(e,t,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"AddedCost",alias:"Added Cost",type:"esriFieldTypeDouble"},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger"},{name:"Costs",alias:"Costs",type:"esriFieldTypeString"},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger"},{name:"FullEdge",alias:"Full Edge",type:"esriFieldTypeInteger"},{name:"Name",alias:"Name",type:"esriFieldTypeString"},{name:"Status",alias:"Status",type:"esriFieldTypeInteger"}]}static fromGraphic(e){return new Pe({addedCost:e.attributes.AddedCost??null,barrierType:null!=e.attributes.BarrierType?G.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?ne(JSON.parse(e.attributes.Costs)):null,curbApproach:null!=e.attributes.CurbApproach?G.JJ.fromJSON(e.attributes.CurbApproach):null,fullEdge:null!=e.attributes.FullEdge?G.fe.fromJSON(e.attributes.FullEdge):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,status:null!=e.attributes.Status?G.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,AddedCost:this.addedCost,BarrierType:this.barrierType?G.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,CurbApproach:this.curbApproach?G.JJ.toJSON(this.curbApproach):null,FullEdge:this.fullEdge?G.fe.toJSON(this.fullEdge):null,Name:this.name,Status:this.status?G.$r.toJSON(this.status):null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i._)([(0,f.MZ)()],Ee.prototype,"addedCost",void 0),(0,i._)([(0,f.MZ)({type:G.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:G.iM.read},write:{writer:G.iM.write}}})],Ee.prototype,"barrierType",void 0),(0,i._)([(0,f.MZ)()],Ee.prototype,"costs",void 0),(0,i._)([(0,g.w)("costs",["attributes"])],Ee.prototype,"readCosts",null),(0,i._)([(0,b.K)("costs")],Ee.prototype,"writeCosts",null),(0,i._)([(0,f.MZ)({type:G.JJ.apiValues,json:{read:{source:"attributes.CurbApproach",reader:G.JJ.read}}})],Ee.prototype,"curbApproach",void 0),(0,i._)([(0,f.MZ)({type:G.fe.apiValues,json:{name:"attributes.FullEdge",read:{reader:G.fe.read},write:{writer:G.fe.write}}})],Ee.prototype,"fullEdge",void 0),(0,i._)([(0,f.MZ)({type:ve.A,json:{write:!0}})],Ee.prototype,"geometry",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.Name"}})],Ee.prototype,"name",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],Ee.prototype,"objectId",void 0),(0,i._)([(0,f.MZ)({type:n.A})],Ee.prototype,"popupTemplate",void 0),(0,i._)([(0,f.MZ)({type:G.mt.apiValues,json:{read:{source:"attributes.SideOfEdge",reader:G.mt.read}}})],Ee.prototype,"sideOfEdge",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.SourceID"}}})],Ee.prototype,"sourceId",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.SourceOID"}}})],Ee.prototype,"sourceOid",void 0),(0,i._)([(0,f.MZ)({type:G.$r.apiValues,json:{read:{source:"attributes.Status",reader:G.$r.read}}})],Ee.prototype,"status",void 0),(0,i._)([(0,f.MZ)({types:x.Es})],Ee.prototype,"symbol",void 0),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"type",void 0),Ee=Pe=(0,i._)([(0,v.$)("esri.rest.support.PointBarrier")],Ee);var Le,Je=r(39829);let Ue=class extends(H.A.ClonableMixin(C.A)){static{Le=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polygon-barrier"}readCosts(e,t){return se(t.attributes,"Attr_")}writeCosts(e,t){oe(e,t,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger"},{name:"Costs",alias:"Costs",type:"esriFieldTypeString"},{name:"Name",alias:"Name",type:"esriFieldTypeString"},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble"}]}static fromGraphic(e){return new Le({barrierType:null!=e.attributes.BarrierType?G.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?ne(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?G.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name??null,ScaleFactor:this.scaleFactor??null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var ke;(0,i._)([(0,f.MZ)({type:G.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:G.iM.read},write:{writer:G.iM.write}}})],Ue.prototype,"barrierType",void 0),(0,i._)([(0,f.MZ)()],Ue.prototype,"costs",void 0),(0,i._)([(0,g.w)("costs",["attributes"])],Ue.prototype,"readCosts",null),(0,i._)([(0,b.K)("costs")],Ue.prototype,"writeCosts",null),(0,i._)([(0,f.MZ)({type:Je.A,json:{write:!0}})],Ue.prototype,"geometry",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.Name"}})],Ue.prototype,"name",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],Ue.prototype,"objectId",void 0),(0,i._)([(0,f.MZ)({type:n.A})],Ue.prototype,"popupTemplate",void 0),(0,i._)([(0,f.MZ)()],Ue.prototype,"scaleFactor",void 0),(0,i._)([(0,f.MZ)({types:x.Es})],Ue.prototype,"symbol",void 0),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ue.prototype,"type",void 0),Ue=Le=(0,i._)([(0,v.$)("esri.rest.support.PolygonBarrier")],Ue);let $e=class extends(H.A.ClonableMixin(C.A)){static{ke=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polyline-barrier"}readCosts(e,t){return se(t.attributes,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger"},{name:"Costs",alias:"Costs",type:"esriFieldTypeString"},{name:"Name",alias:"Name",type:"esriFieldTypeString"},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble"}]}static fromGraphic(e){return new ke({barrierType:null!=e.attributes.BarrierType?G.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?ne(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?G.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name,ScaleFactor:this.scaleFactor};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i._)([(0,f.MZ)({type:G.iM.apiValues,json:{read:{source:"attributes.BarrierType",reader:G.iM.read}}})],$e.prototype,"barrierType",void 0),(0,i._)([(0,f.MZ)()],$e.prototype,"costs",void 0),(0,i._)([(0,g.w)("costs",["attributes"])],$e.prototype,"readCosts",null),(0,i._)([(0,f.MZ)({type:ge.A,json:{write:!0}})],$e.prototype,"geometry",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.Name"}})],$e.prototype,"name",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],$e.prototype,"objectId",void 0),(0,i._)([(0,f.MZ)({type:n.A})],$e.prototype,"popupTemplate",void 0),(0,i._)([(0,f.MZ)()],$e.prototype,"scaleFactor",void 0),(0,i._)([(0,f.MZ)({types:x.Es})],$e.prototype,"symbol",void 0),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],$e.prototype,"type",void 0),$e=ke=(0,i._)([(0,v.$)("esri.rest.support.PolylineBarrier")],$e);let qe=class extends C.A{constructor(e){super(e),this.accumulateAttributes=null,this.directionsLanguage=null,this.findBestSequence=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.startTimeIsUTC=null,this.timeWindowsAreUTC=null,this.travelMode=null}readAccumulateAttributes(e){return null==e?null:e.map((e=>G.et.fromJSON(e)))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map((e=>G.et.toJSON(e))))}};var We;(0,i._)([(0,f.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],qe.prototype,"accumulateAttributes",void 0),(0,i._)([(0,g.w)("accumulateAttributes")],qe.prototype,"readAccumulateAttributes",null),(0,i._)([(0,b.K)("accumulateAttributes")],qe.prototype,"writeAccumulateAttributes",null),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],qe.prototype,"directionsLanguage",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],qe.prototype,"findBestSequence",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],qe.prototype,"preserveFirstStop",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],qe.prototype,"preserveLastStop",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],qe.prototype,"startTimeIsUTC",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],qe.prototype,"timeWindowsAreUTC",void 0),(0,i._)([(0,f.MZ)({type:X,json:{write:!0}})],qe.prototype,"travelMode",void 0),qe=(0,i._)([(0,v.$)("esri.rest.support.RouteSettings")],qe);let Ge=class extends(H.A.ClonableMixin(C.A)){static{We=this}constructor(e){super(e),this.analysisSettings=null,this.endTime=null,this.endTimeOffset=null,this.firstStopId=null,this.geometry=null,this.lastStopId=null,this.messages=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.startTime=null,this.startTimeOffset=null,this.stopCount=null,this.symbol=null,this.totalCosts=null,this.totalDistance=null,this.totalDuration=null,this.totalLateDuration=null,this.totalViolations=null,this.totalWait=null,this.totalWaitDuration=null,this.type="route-info",this.version="1.0.0"}readEndTime(e,t){return null!=t.attributes.EndTimeUTC?new Date(t.attributes.EndTimeUTC):null}readEndTimeOffset(e,t){return le(t.attributes.EndTime,t.attributes.EndTimeUTC)}readStartTime(e,t){return null!=t.attributes.StartTimeUTC?new Date(t.attributes.StartTimeUTC):null}readStartTimeOffset(e,t){return le(t.attributes.StartTime,t.attributes.StartTimeUTC)}readTotalCosts(e,t){return se(t.attributes,"Total_")}readTotalViolations(e,t){return se(t.attributes,"TotalViolation_")}readTotalWait(e,t){return se(t.attributes,"TotalWait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"AnalysisSettings",alias:"Analysis Settings",type:"esriFieldTypeString"},{name:"EndTime",alias:"End Time",type:"esriFieldTypeDate"},{name:"EndUTCOffset",alias:"End Time Offset",type:"esriFieldTypeInteger"},{name:"Messages",alias:"Messages",type:"esriFieldTypeString"},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString"},{name:"StartTime",alias:"Start Time",type:"esriFieldTypeDate"},{name:"StartUTCOffset",alias:"Start Time Offset",type:"esriFieldTypeInteger"},{name:"TotalCosts",alias:"Total Costs",type:"esriFieldTypeString"},{name:"TotalLateMinutes",alias:"Total Late Minutes",type:"esriFieldTypeDouble"},{name:"TotalMeters",alias:"Total Meters",type:"esriFieldTypeDouble"},{name:"TotalMinutes",alias:"Total Minutes",type:"esriFieldTypeDouble"},{name:"TotalWaitMinutes",alias:"Total Wait Minutes",type:"esriFieldTypeDouble"},{name:"Version",alias:"Version",type:"esriFieldTypeString"}]}static fromGraphic(e){return new We({analysisSettings:null!=e.attributes.AnalysisSettings?qe.fromJSON(JSON.parse(e.attributes.AnalysisSettings)):null,endTime:null!=e.attributes.EndTime?new Date(e.attributes.EndTime):null,endTimeOffset:e.attributes.EndUTCOffset??null,geometry:e.geometry,messages:null!=e.attributes.Messages?JSON.parse(e.attributes.Messages):null,name:e.attributes.RouteName,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,startTime:null!=e.attributes.StartTime?new Date(e.attributes.StartTime):null,startTimeOffset:e.attributes.StartUTCOffset??null,symbol:e.symbol,totalCosts:null!=e.attributes.TotalCosts?ne(JSON.parse(e.attributes.TotalCosts)):null,totalDistance:e.attributes.TotalMeters??null,totalDuration:e.attributes.TotalMinutes??null,totalLateDuration:e.attributes.TotalLateMinutes??null,totalWaitDuration:e.attributes.TotalWaitMinutes??null,version:e.attributes.Version})}toGraphic(){const e={ObjectID:this.objectId,AnalysisSettings:this.analysisSettings?JSON.stringify(this.analysisSettings.toJSON()):null,EndTime:this.endTime?.getTime()??null,EndUTCOffset:this.endTimeOffset,Messages:this.messages?JSON.stringify(this.messages):null,RouteName:this.name,StartTime:this.startTime?.getTime()??null,StartUTCOffset:this.startTimeOffset,TotalCosts:this.totalCosts?JSON.stringify(ae(this.totalCosts)):null,TotalLateMinutes:this.totalLateDuration,TotalMeters:this.totalDistance,TotalMinutes:this.totalDuration,TotalWaitMinutes:this.totalWaitDuration,Version:this.version};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i._)([(0,f.MZ)()],Ge.prototype,"analysisSettings",void 0),(0,i._)([(0,f.MZ)({type:Date})],Ge.prototype,"endTime",void 0),(0,i._)([(0,g.w)("endTime",["attributes.EndTimeUTC"])],Ge.prototype,"readEndTime",null),(0,i._)([(0,f.MZ)()],Ge.prototype,"endTimeOffset",void 0),(0,i._)([(0,g.w)("endTimeOffset",["attributes.EndTime","attributes.EndTimeUTC"])],Ge.prototype,"readEndTimeOffset",null),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.FirstStopID"}}})],Ge.prototype,"firstStopId",void 0),(0,i._)([(0,f.MZ)({type:ge.A})],Ge.prototype,"geometry",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.LastStopID"}}})],Ge.prototype,"lastStopId",void 0),(0,i._)([(0,f.MZ)()],Ge.prototype,"messages",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.Name"}}})],Ge.prototype,"name",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Ge.prototype,"objectId",void 0),(0,i._)([(0,f.MZ)({type:n.A})],Ge.prototype,"popupTemplate",void 0),(0,i._)([(0,f.MZ)({type:Date})],Ge.prototype,"startTime",void 0),(0,i._)([(0,g.w)("startTime",["attributes.StartTimeUTC"])],Ge.prototype,"readStartTime",null),(0,i._)([(0,f.MZ)()],Ge.prototype,"startTimeOffset",void 0),(0,i._)([(0,g.w)("startTimeOffset",["attributes.StartTime","attributes.StartTimeUTC"])],Ge.prototype,"readStartTimeOffset",null),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.StopCount"}}})],Ge.prototype,"stopCount",void 0),(0,i._)([(0,f.MZ)({types:x.Es})],Ge.prototype,"symbol",void 0),(0,i._)([(0,f.MZ)()],Ge.prototype,"totalCosts",void 0),(0,i._)([(0,g.w)("totalCosts",["attributes"])],Ge.prototype,"readTotalCosts",null),(0,i._)([(0,f.MZ)()],Ge.prototype,"totalDistance",void 0),(0,i._)([(0,f.MZ)()],Ge.prototype,"totalDuration",void 0),(0,i._)([(0,f.MZ)()],Ge.prototype,"totalLateDuration",void 0),(0,i._)([(0,f.MZ)()],Ge.prototype,"totalViolations",void 0),(0,i._)([(0,g.w)("totalViolations",["attributes"])],Ge.prototype,"readTotalViolations",null),(0,i._)([(0,f.MZ)()],Ge.prototype,"totalWait",void 0),(0,i._)([(0,g.w)("totalWait",["attributes"])],Ge.prototype,"readTotalWait",null),(0,i._)([(0,f.MZ)()],Ge.prototype,"totalWaitDuration",void 0),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ge.prototype,"type",void 0),(0,i._)([(0,f.MZ)()],Ge.prototype,"version",void 0),Ge=We=(0,i._)([(0,v.$)("esri.rest.support.RouteInfo")],Ge);var Ve=r(56507),ze=r(24097),Ke=r(65864),Ye=r(50498);let He=class extends(H.A.ClonableMixin(C.A)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.geometry=null,this.geometryType=null,this.name=null,this.spatialRelationship=null,this.type="layer",this.where=null}};var Xe;(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],He.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i._)([(0,f.MZ)({types:Ye.yR,json:{read:Ke.rS,write:!0}})],He.prototype,"geometry",void 0),(0,i._)([(0,W.e)(G.Vj)],He.prototype,"geometryType",void 0),(0,i._)([(0,f.MZ)({type:String,json:{name:"layerName",write:!0}})],He.prototype,"name",void 0),(0,i._)([(0,W.e)(G.vS,{name:"spatialRel"})],He.prototype,"spatialRelationship",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],He.prototype,"type",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],He.prototype,"where",void 0),He=(0,i._)([(0,v.$)("esri.rest.support.DataLayer")],He);let Qe=class extends pe.A{static{Xe=this}constructor(e){super(e),this.doNotLocateOnRestrictedElements=null}clone(){return new Xe({doNotLocateOnRestrictedElements:this.doNotLocateOnRestrictedElements,...this.cloneProperties()})}};(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],Qe.prototype,"doNotLocateOnRestrictedElements",void 0),Qe=Xe=(0,i._)([(0,v.$)("esri.rest.support.NetworkFeatureSet")],Qe);let et=class extends(H.A.ClonableMixin(C.A)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.url=null}};var tt;(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],et.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],et.prototype,"url",void 0),et=(0,i._)([(0,v.$)("esri.rest.support.NetworkUrl")],et);let rt=class extends(H.A.ClonableMixin(C.A)){static{tt=this}constructor(e){super(e),this.accumulateAttributes=null,this.apiKey=null,this.attributeParameterValues=null,this.checksum=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsOutputType=null,this.directionsStyleName=null,this.directionsTimeAttribute=null,this.findBestSequence=null,this.geometryPrecision=null,this.geometryPrecisionM=null,this.geometryPrecisionZ=null,this.ignoreInvalidLocations=null,this.impedanceAttribute=null,this.outputGeometryPrecision=null,this.outputGeometryPrecisionUnits=null,this.outputLines="true-shape",this.outSpatialReference=null,this.overrides=null,this.pointBarriers=null,this.polygonBarriers=null,this.polylineBarriers=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.preserveObjectID=null,this.restrictionAttributes=null,this.restrictUTurns=null,this.returnBarriers=!1,this.returnDirections=!1,this.returnPolygonBarriers=!1,this.returnPolylineBarriers=!1,this.returnRoutes=!0,this.returnStops=!1,this.returnTraversedEdges=null,this.returnTraversedJunctions=null,this.returnTraversedTurns=null,this.returnZ=!0,this.startTime=null,this.startTimeIsUTC=!0,this.stops=null,this.timeWindowsAreUTC=null,this.travelMode=null,this.useHierarchy=null,this.useTimeWindows=null}static from(e){return(0,Ve.PZ)(tt,e)}readAccumulateAttributes(e){return null==e?null:e.map((e=>G.et.fromJSON(e)))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map((e=>G.et.toJSON(e))))}writePointBarriers(e,t,r){it(e,t,r)}writePolygonBarrier(e,t,r){it(e,t,r)}writePolylineBarrier(e,t,r){it(e,t,r)}readRestrictionAttributes(e){return null==e?null:e.map((e=>G.OC.fromJSON(e)))}writeRestrictionAttributes(e,t,r){e?.length&&(t[r]=e.map((e=>G.OC.toJSON(e))))}readStartTime(e,t){const{startTime:r}=t;return null==r?null:"now"===r?"now":new Date(r)}writeStartTime(e,t){null!=e&&(t.startTime="now"===e?"now":e.getTime())}readStops(e,t){return function(e){return function(e){return e&&"type"in e}(e)?He.fromJSON(e):function(e){return e&&"url"in e}(e)?et.fromJSON(e):function(e){return e&&"features"in e&&"doNotLocateOnRestrictedElements"in e}(e)?Qe.fromJSON(e):function(e){return e&&"features"in e}(e)?pe.A.fromJSON(e):null}(t.stops)}writeStops(e,t,r){it(e,t,r)}};function it(e,t,r){null!=e&&(t[r]=a.A.isCollection(e)?{features:e.toArray().map((e=>e.toJSON()))}:e.toJSON())}var st;(0,i._)([(0,f.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],rt.prototype,"accumulateAttributes",void 0),(0,i._)([(0,g.w)("accumulateAttributes")],rt.prototype,"readAccumulateAttributes",null),(0,i._)([(0,b.K)("accumulateAttributes")],rt.prototype,"writeAccumulateAttributes",null),(0,i._)([(0,f.MZ)(ze.K)],rt.prototype,"apiKey",void 0),(0,i._)([(0,f.MZ)({json:{write:!0}})],rt.prototype,"attributeParameterValues",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],rt.prototype,"checksum",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],rt.prototype,"directionsLanguage",void 0),(0,i._)([(0,W.e)(G.Z7)],rt.prototype,"directionsLengthUnits",void 0),(0,i._)([(0,W.e)(G.aJ)],rt.prototype,"directionsOutputType",void 0),(0,i._)([(0,W.e)(G.$n)],rt.prototype,"directionsStyleName",void 0),(0,i._)([(0,W.e)(G.Mm,{name:"directionsTimeAttributeName",ignoreUnknown:!1})],rt.prototype,"directionsTimeAttribute",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"findBestSequence",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{write:!0}})],rt.prototype,"geometryPrecision",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{write:!0}})],rt.prototype,"geometryPrecisionM",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{write:!0}})],rt.prototype,"geometryPrecisionZ",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"ignoreInvalidLocations",void 0),(0,i._)([(0,W.e)(G.et,{name:"impedanceAttributeName",ignoreUnknown:!1})],rt.prototype,"impedanceAttribute",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{write:!0}})],rt.prototype,"outputGeometryPrecision",void 0),(0,i._)([(0,W.e)(G.hY)],rt.prototype,"outputGeometryPrecisionUnits",void 0),(0,i._)([(0,W.e)(G.Sr)],rt.prototype,"outputLines",void 0),(0,i._)([(0,f.MZ)({type:A.A,json:{name:"outSR",write:!0}})],rt.prototype,"outSpatialReference",void 0),(0,i._)([(0,f.MZ)({json:{write:!0}})],rt.prototype,"overrides",void 0),(0,i._)([(0,f.MZ)({json:{name:"barriers",write:!0}})],rt.prototype,"pointBarriers",void 0),(0,i._)([(0,b.K)("pointBarriers")],rt.prototype,"writePointBarriers",null),(0,i._)([(0,f.MZ)({json:{write:!0}})],rt.prototype,"polygonBarriers",void 0),(0,i._)([(0,b.K)("polygonBarriers")],rt.prototype,"writePolygonBarrier",null),(0,i._)([(0,f.MZ)({json:{write:!0}})],rt.prototype,"polylineBarriers",void 0),(0,i._)([(0,b.K)("polylineBarriers")],rt.prototype,"writePolylineBarrier",null),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"preserveFirstStop",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"preserveLastStop",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"preserveObjectID",void 0),(0,i._)([(0,f.MZ)({type:[String],json:{name:"restrictionAttributeNames",write:!0}})],rt.prototype,"restrictionAttributes",void 0),(0,i._)([(0,g.w)("restrictionAttributes")],rt.prototype,"readRestrictionAttributes",null),(0,i._)([(0,b.K)("restrictionAttributes")],rt.prototype,"writeRestrictionAttributes",null),(0,i._)([(0,W.e)(G.hE)],rt.prototype,"restrictUTurns",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnBarriers",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnDirections",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnPolygonBarriers",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnPolylineBarriers",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnRoutes",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnStops",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnTraversedEdges",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnTraversedJunctions",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnTraversedTurns",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"returnZ",void 0),(0,i._)([(0,f.MZ)({json:{write:!0}})],rt.prototype,"startTime",void 0),(0,i._)([(0,g.w)("startTime")],rt.prototype,"readStartTime",null),(0,i._)([(0,b.K)("startTime")],rt.prototype,"writeStartTime",null),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"startTimeIsUTC",void 0),(0,i._)([(0,f.MZ)({json:{write:!0}})],rt.prototype,"stops",void 0),(0,i._)([(0,g.w)("stops")],rt.prototype,"readStops",null),(0,i._)([(0,b.K)("stops")],rt.prototype,"writeStops",null),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"timeWindowsAreUTC",void 0),(0,i._)([(0,f.MZ)({type:X,json:{write:!0}})],rt.prototype,"travelMode",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"useHierarchy",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:!0}})],rt.prototype,"useTimeWindows",void 0),rt=tt=(0,i._)([(0,v.$)("esri.rest.support.RouteParameters")],rt);let ot=class extends(H.A.ClonableMixin(C.A)){static{st=this}constructor(e){super(e),this.arriveCurbApproach=null,this.arriveTime=null,this.arriveTimeOffset=null,this.bearing=null,this.bearingTol=null,this.cumulativeCosts=null,this.cumulativeDistance=null,this.cumulativeDuration=null,this.curbApproach=null,this.departCurbApproach=null,this.departTime=null,this.departTimeOffset=null,this.distanceToNetworkInMeters=null,this.geometry=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.posAlong=null,this.routeName=null,this.serviceCosts=null,this.serviceDistance=null,this.serviceDuration=null,this.sequence=null,this.sideOfEdge=null,this.snapX=null,this.snapY=null,this.snapZ=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.timeWindowEnd=null,this.timeWindowEndOffset=null,this.timeWindowStart=null,this.timeWindowStartOffset=null,this.type="stop",this.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(e,t){return le(t.attributes.ArriveTime,t.attributes.ArriveTimeUTC)}readCumulativeCosts(e,t){return se(t.attributes,"Cumul_")}readDepartTimeOffset(e,t){return le(t.attributes.DepartTime,t.attributes.DepartTimeUTC)}readServiceCosts(e,t){return se(t.attributes,"Attr_")}writeServiceCosts(e,t){oe(e,t,"Attr_")}writeTimeWindowEnd(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowEnd=e.getTime())}writeTimeWindowStart(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowStart=e.getTime())}readViolations(e,t){return se(t.attributes,"Violation_")}readWait(e,t){return se(t.attributes,"Wait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger"},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate"},{name:"ArrivalUTCOffset",alias:"Arrival Time",type:"esriFieldTypeInteger"},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString"},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble"},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble"},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger"},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger"},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate"},{name:"DepartureUTCOffset",alias:"Departure Time",type:"esriFieldTypeInteger"},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble"},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger"},{name:"Name",alias:"Name",type:"esriFieldTypeString"},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString"},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger"},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString"},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble"},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble"},{name:"Status",alias:"Status",type:"esriFieldTypeInteger"},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate"},{name:"TimeWindowEndUTCOffset",alias:"Time Window End Offset",type:"esriFieldTypeInteger"},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate"},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start Offset",type:"esriFieldTypeInteger"},{name:"WaitMinutes",alias:"Minutes Wait",type:"esriFieldTypeDouble"}]}static fromGraphic(e){return new st({arriveCurbApproach:null!=e.attributes.ArrivalCurbApproach?G.JJ.fromJSON(e.attributes.ArrivalCurbApproach):null,arriveTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arriveTimeOffset:e.attributes.ArrivalUTCOffset,cumulativeCosts:null!=e.attributes.CumulativeCosts?ne(JSON.parse(e.attributes.CumulativeCosts)):null,cumulativeDistance:e.attributes.CumulativeMeters??null,cumulativeDuration:e.attributes.CumulativeMinutes??null,curbApproach:null!=e.attributes.CurbApproach?G.JJ.fromJSON(e.attributes.CurbApproach):null,departCurbApproach:null!=e.attributes.DepartureCurbApproach?G.JJ.fromJSON(e.attributes.DepartureCurbApproach):null,departTime:null!=e.attributes.DepartureTime?new Date(e.attributes.DepartureTime):null,departTimeOffset:e.attributes.DepartureUTCOffset??null,geometry:e.geometry,lateDuration:e.attributes.LateMinutes??null,locationType:null!=e.attributes.LocationType?G.EM.fromJSON(e.attributes.LocationType):null,name:e.attributes.Name,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,routeName:e.attributes.RouteName,sequence:e.attributes.Sequence??null,serviceCosts:null!=e.attributes.ServiceCosts?ne(JSON.parse(e.attributes.ServiceCosts)):null,serviceDistance:e.attributes.ServiceMeters??null,serviceDuration:e.attributes.ServiceMinutes??null,status:null!=e.attributes.Status?G.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol,timeWindowEnd:null!=e.attributes.TimeWindowEnd?new Date(e.attributes.TimeWindowEnd):null,timeWindowEndOffset:e.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:null!=e.attributes.TimeWindowStart?new Date(e.attributes.TimeWindowStart):null,timeWindowStartOffset:e.attributes.TimeWindowStartUTCOffset??null,waitDuration:e.attributes.WaitMinutes??null})}toGraphic(){const e={ObjectID:this.objectId,ArrivalCurbApproach:this.arriveCurbApproach?G.JJ.toJSON(this.arriveCurbApproach):null,ArrivalTime:this.arriveTime?.getTime()??null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:this.cumulativeCosts?JSON.stringify(ae(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:this.curbApproach?G.JJ.toJSON(this.curbApproach):null,DepartureCurbApproach:this.departCurbApproach?G.JJ.toJSON(this.departCurbApproach):null,DepartureTime:this.departTime?.getTime()??null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:this.locationType?G.EM.toJSON(this.locationType):null,Name:this.name,RouteName:this.routeName,Sequence:this.sequence,ServiceCosts:this.serviceCosts?JSON.stringify(ae(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:this.status?G.$r.toJSON(this.status):null,TimeWindowEnd:this.timeWindowEnd?.getTime()??null,TimeWindowEndUTCOffset:this.timeWindowEndOffset??this.arriveTimeOffset,TimeWindowStart:this.timeWindowStart?.getTime()??null,TimeWindowStartUTCOffset:this.timeWindowStartOffset??this.arriveTimeOffset,WaitMinutes:this.waitDuration};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};function nt(e){if(!e.length)return;const t=e.toArray(),r=t.map((({objectId:e})=>e)).filter((e=>null!=e));let i=Math.max(...r,0);for(const e of t)null==e.objectId&&(e.objectId=++i)}function at(e,t){return!!e.length&&e.length===t.length&<(e)&<(t)}function lt(e){return e.every((({objectId:e})=>null!=e))}function ut(e){return e.length?e:null}function pt(e){switch(e){case"esriGeometryPoint":return{type:"esriSMS",style:"esriSMSCircle",size:12,color:[0,0,0,0],outline:pt("esriGeometryPolyline")};case"esriGeometryPolyline":return{type:"esriSLS",style:"esriSLSSolid",width:1,color:[0,0,0,0]};case"esriGeometryPolygon":return{type:"esriSFS",style:"esriSFSNull",outline:pt("esriGeometryPolyline")}}}function ct(e){return"layers"in e}async function dt(e){const t=A.A.WGS84;return await(0,S.initializeProjection)(e.spatialReference,t),(0,S.project)(e,t)}function mt(e,t){switch(t){case"seconds":return e/60;case"hours":return 60*e;case"days":return 60*e*24;default:return e}}function yt(e,t){return"decimal-degrees"===t||"points"===t||"unknown"===t?e:(0,y.oU)(e,t,"meters")}(0,i._)([(0,f.MZ)({type:G.JJ.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:G.JJ.read}}})],ot.prototype,"arriveCurbApproach",void 0),(0,i._)([(0,f.MZ)({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],ot.prototype,"arriveTime",void 0),(0,i._)([(0,f.MZ)()],ot.prototype,"arriveTimeOffset",void 0),(0,i._)([(0,g.w)("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],ot.prototype,"readArriveTimeOffset",null),(0,i._)([(0,f.MZ)({json:{name:"attributes.Bearing",read:!1,write:!0}})],ot.prototype,"bearing",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.BearingTol",read:!1,write:!0}})],ot.prototype,"bearingTol",void 0),(0,i._)([(0,f.MZ)()],ot.prototype,"cumulativeCosts",void 0),(0,i._)([(0,g.w)("cumulativeCosts",["attributes"])],ot.prototype,"readCumulativeCosts",null),(0,i._)([(0,f.MZ)()],ot.prototype,"cumulativeDistance",void 0),(0,i._)([(0,f.MZ)()],ot.prototype,"cumulativeDuration",void 0),(0,i._)([(0,f.MZ)({type:G.JJ.apiValues,json:{name:"attributes.CurbApproach",read:{reader:G.JJ.read},write:{writer:G.JJ.write}}})],ot.prototype,"curbApproach",void 0),(0,i._)([(0,f.MZ)({type:G.JJ.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:G.JJ.read}}})],ot.prototype,"departCurbApproach",void 0),(0,i._)([(0,f.MZ)({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],ot.prototype,"departTime",void 0),(0,i._)([(0,f.MZ)()],ot.prototype,"departTimeOffset",void 0),(0,i._)([(0,g.w)("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],ot.prototype,"readDepartTimeOffset",null),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],ot.prototype,"distanceToNetworkInMeters",void 0),(0,i._)([(0,f.MZ)({type:ve.A,json:{write:!0}})],ot.prototype,"geometry",void 0),(0,i._)([(0,f.MZ)()],ot.prototype,"lateDuration",void 0),(0,i._)([(0,f.MZ)({type:G.EM.apiValues,json:{name:"attributes.LocationType",read:{reader:G.EM.read},write:{writer:G.EM.write}}})],ot.prototype,"locationType",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.Name"}})],ot.prototype,"name",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.NavLatency",read:!1,write:!0}})],ot.prototype,"navLatency",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],ot.prototype,"objectId",void 0),(0,i._)([(0,f.MZ)({type:n.A})],ot.prototype,"popupTemplate",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.PosAlong"}}})],ot.prototype,"posAlong",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.RouteName"}})],ot.prototype,"routeName",void 0),(0,i._)([(0,f.MZ)()],ot.prototype,"serviceCosts",void 0),(0,i._)([(0,g.w)("serviceCosts",["attributes"])],ot.prototype,"readServiceCosts",null),(0,i._)([(0,b.K)("serviceCosts")],ot.prototype,"writeServiceCosts",null),(0,i._)([(0,f.MZ)()],ot.prototype,"serviceDistance",void 0),(0,i._)([(0,f.MZ)()],ot.prototype,"serviceDuration",void 0),(0,i._)([(0,f.MZ)({json:{name:"attributes.Sequence"}})],ot.prototype,"sequence",void 0),(0,i._)([(0,f.MZ)({type:G.mt.apiValues,json:{read:{source:"attributes.SideOfEdge",reader:G.mt.read}}})],ot.prototype,"sideOfEdge",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.SnapX"}}})],ot.prototype,"snapX",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.SnapY"}}})],ot.prototype,"snapY",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.SnapZ"}}})],ot.prototype,"snapZ",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.SourceID"}}})],ot.prototype,"sourceId",void 0),(0,i._)([(0,f.MZ)({json:{read:{source:"attributes.SourceOID"}}})],ot.prototype,"sourceOid",void 0),(0,i._)([(0,f.MZ)({type:G.$r.apiValues,json:{read:{source:"attributes.Status",reader:G.$r.read}}})],ot.prototype,"status",void 0),(0,i._)([(0,f.MZ)({types:x.Es})],ot.prototype,"symbol",void 0),(0,i._)([(0,f.MZ)({type:Date,json:{name:"attributes.TimeWindowEnd"}})],ot.prototype,"timeWindowEnd",void 0),(0,i._)([(0,b.K)("timeWindowEnd")],ot.prototype,"writeTimeWindowEnd",null),(0,i._)([(0,f.MZ)()],ot.prototype,"timeWindowEndOffset",void 0),(0,i._)([(0,f.MZ)({type:Date,json:{name:"attributes.TimeWindowStart"}})],ot.prototype,"timeWindowStart",void 0),(0,i._)([(0,b.K)("timeWindowStart")],ot.prototype,"writeTimeWindowStart",null),(0,i._)([(0,f.MZ)()],ot.prototype,"timeWindowStartOffset",void 0),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],ot.prototype,"type",void 0),(0,i._)([(0,f.MZ)()],ot.prototype,"violations",void 0),(0,i._)([(0,g.w)("violations",["attributes"])],ot.prototype,"readViolations",null),(0,i._)([(0,f.MZ)()],ot.prototype,"waitDuration",void 0),(0,i._)([(0,f.MZ)()],ot.prototype,"wait",void 0),(0,i._)([(0,g.w)("wait",["attributes"])],ot.prototype,"readWait",null),ot=st=(0,i._)([(0,v.$)("esri.rest.support.Stop")],ot);const ht=a.A.ofType(xe),ft=a.A.ofType(Re),gt=a.A.ofType(Ee),vt=a.A.ofType(Ue),bt=a.A.ofType($e),Tt=a.A.ofType(ot);let wt=class extends((0,O.dM)((0,Z.j)((0,I.q)((0,D.A)((0,p.P)(N.A)))))){constructor(e){super(e),this._cachedServiceDescription=null,this._featureCollection=null,this._type="Feature Collection",this.checksum=null,this.defaultSymbols=new E,this.directionLines=null,this.directionPoints=null,this.featureCollectionType="route",this.legendEnabled=!1,this.maxScale=0,this.minScale=0,this.pointBarriers=new gt,this.polygonBarriers=new vt,this.polylineBarriers=new bt,this.routeInfo=null,this.spatialReference=A.A.WGS84,this.stops=new Tt,this.type="route";const t=()=>{this._setStopSymbol(this.stops)};this.addHandles((0,m.on)((()=>this.stops),"change",t,{sync:!0,onListenerAdd:t}))}writeFeatureCollectionWebmap(e,t,r,i){const s=[this._writePolygonBarriers(),this._writePolylineBarriers(),this._writePointBarriers(),this._writeRouteInfo(),this._writeDirectionLines(),this._writeDirectionPoints(),this._writeStops()].filter((e=>!!e)),o=s.map(((e,t)=>t)),n="web-map"===i.origin?"featureCollection.layers":"layers";(0,c.sM)(n,s,t),t.opacity=this.opacity,t.visibility=this.visible,t.visibleLayers=o}readDirectionLines(e,t){return this._getNetworkFeatures(t,"DirectionLines",(e=>xe.fromGraphic(e)))}readDirectionPoints(e,t){return this._getNetworkFeatures(t,"DirectionPoints",(e=>Re.fromGraphic(e)))}get fullExtent(){const e=new w.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:A.A.WGS84});if(null!=this.routeInfo?.geometry)return this.routeInfo.geometry.extent??e;if(null==this.stops)return e;const t=this.stops.filter((e=>null!=e.geometry));if(t.length<2)return e;const{spatialReference:r}=t.at(0).geometry;if(null==r)return e;const i=t.toArray().map((e=>{const t=e.geometry;return[t.x,t.y]}));return new _.A({points:i,spatialReference:r}).extent}readMaxScale(e,t){const r=ct(t)?t.layers:t.featureCollection?.layers,i=r?.find((e=>null!=e.layerDefinition.maxScale));return i?.layerDefinition.maxScale??0}readMinScale(e,t){const r=ct(t)?t.layers:t.featureCollection?.layers,i=r?.find((e=>null!=e.layerDefinition.minScale));return i?.layerDefinition.minScale??0}readPointBarriers(e,t){return this._getNetworkFeatures(t,"Barriers",(e=>Ee.fromGraphic(e)))}readPolygonBarriers(e,t){return this._getNetworkFeatures(t,"PolygonBarriers",(e=>Ue.fromGraphic(e)))}readPolylineBarriers(e,t){return this._getNetworkFeatures(t,"PolylineBarriers",(e=>$e.fromGraphic(e)))}readRouteInfo(e,t){return this._getNetworkFeatures(t,"RouteInfo",(e=>Ge.fromGraphic(e))).at(0)??null}readSpatialReference(e,t){const r=ct(t)?t.layers:t.featureCollection?.layers;if(!r?.length)return A.A.WGS84;const{layerDefinition:i,featureSet:s}=r[0],o=s.features[0],n=o?.geometry?.spatialReference??s.spatialReference??i.spatialReference??i.extent.spatialReference??M.KK;return A.A.fromJSON(n)}readStops(e,t){return this._getNetworkFeatures(t,"Stops",(e=>ot.fromGraphic(e)),(e=>this._setStopSymbol(e)))}get title(){return this.routeInfo?.name??"Route"}set title(e){this._overrideIfSome("title",e)}get url(){return s.A.routeServiceUrl}set url(e){null!=e?this._set("url",(0,F.Jf)(e,u.A.getLogger(this))):this._set("url",s.A.routeServiceUrl)}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}removeAll(){this.removeResult(),this.pointBarriers.removeAll(),this.polygonBarriers.removeAll(),this.polylineBarriers.removeAll(),this.stops.removeAll()}removeResult(){null!=this.directionLines&&(this.directionLines.removeAll(),this._set("directionLines",null)),null!=this.directionPoints&&(this.directionPoints.removeAll(),this._set("directionPoints",null)),null!=this.routeInfo&&this._set("routeInfo",null)}async save(){await this.load();const{fullExtent:e,portalItem:t}=this;if(!t)throw new l.A("routelayer:portal-item-not-set","save() requires to the layer to have a portal item");if(!t.id)throw new l.A("routelayer:portal-item-not-saved","Please use saveAs() first to save the routelayer");if("Feature Collection"!==t.type)throw new l.A("routelayer:portal-item-wrong-type",'Portal item needs to have type "Feature Collection"');if(null==this.routeInfo)throw new l.A("routelayer:route-unsolved","save() requires a solved route");const{portal:r}=t;await r.signIn(),r.user||await t.reload();const{itemUrl:i,itemControl:s}=t;if("admin"!==s&&"update"!==s)throw new l.A("routelayer:insufficient-permissions","To save this layer, you need to be the owner or an administrator of your organization");const o={messages:[],origin:"portal-item",portal:r,url:i?(0,h.An)(i):void 0,writtenProperties:[]},n=this.write(void 0,o);return t.extent=await dt(e),t.title=this.title,await t.update({data:n}),t}async saveAs(e,t={}){if(await this.load(),null==this.routeInfo)throw new l.A("routelayer:route-unsolved","saveAs() requires a solved route");const r=J.default.from(e).clone();r.extent??=await dt(this.fullExtent),r.id=null,r.portal??=L.A.getDefault(),r.title??=this.title,r.type="Feature Collection",r.typeKeywords=["Data","Feature Collection",U.mm.MULTI_LAYER,"Route Layer"];const{portal:i}=r,s={messages:[],origin:"portal-item",portal:i,url:null,writtenProperties:[]};await i.signIn();const o=t?.folder,n=this.write(void 0,s);return await i.user.addItem({item:r,folder:o,data:n}),this.portalItem=r,(0,T.v)(s),s.portalItem=r,r}async solve(e,t){nt(this.stops),nt(this.pointBarriers),nt(this.polylineBarriers),nt(this.polygonBarriers);const r=e?.stops??this.stops,i=e?.pointBarriers??ut(this.pointBarriers),s=e?.polylineBarriers??ut(this.polylineBarriers),o=e?.polygonBarriers??ut(this.polygonBarriers);if(null==r)throw new l.A("routelayer:undefined-stops","the route layer must have stops defined in the route parameters.");if((function(e){return"esri.rest.support.FeatureSet"===e.declaredClass}(r)||function(e){return"esri.rest.support.NetworkFeatureSet"===e.declaredClass}(r))&&r.features.length<2||a.A.isCollection(r)&&r.length<2)throw new l.A("routelayer:insufficent-stops","the route layer must have two or more stops to solve a route.");if(a.A.isCollection(r))for(const e of r)e.routeName=null;const n=e?.apiKey,{checksum:u,url:p}=this,c=await this._getServiceDescription(p,n,t),m=e?.travelMode??c.defaultTravelMode,y=e?.accumulateAttributes??[];m&&(y.push(m.distanceAttributeName),m.timeAttributeName&&y.push(m.timeAttributeName));const h={accumulateAttributes:y,checksum:u,directionsOutputType:"featuresets",ignoreInvalidLocations:!0,pointBarriers:i,polylineBarriers:s,polygonBarriers:o,preserveObjectID:!0,returnBarriers:!!i,returnDirections:!0,returnPolygonBarriers:!!o,returnPolylineBarriers:!!s,returnRoutes:!0,returnStops:!0,stops:r},f=rt.from(e??{});let g;f.set(h);try{g=await Ce(p,f,t)}catch(e){throw(0,d.zf)(e)?e:new l.A("routelayer:failed-route-request","the routing request failed",{error:e})}const v=this._toRouteLayerSolution(g);return this._isOverridden("title")||(this.title=v.routeInfo.name??"Route"),this._populatePortalFields(v,c,f),v}update(e){const{checksum:t,directionLines:r,directionPoints:i,pointBarriers:s,polygonBarriers:o,polylineBarriers:n,routeInfo:a,stops:l}=e;at(l,this.stops)?function(e,t){for(const r of e){const e=t.find((e=>e.objectId===r.objectId));e&&(e.arriveCurbApproach=r.arriveCurbApproach,e.arriveTime=r.arriveTime,e.arriveTimeOffset=r.arriveTimeOffset,e.cumulativeCosts=r.cumulativeCosts,e.cumulativeDistance=r.cumulativeDistance,e.cumulativeDuration=r.cumulativeDuration,e.curbApproach=r.curbApproach,e.departCurbApproach=r.departCurbApproach,e.departTime=r.departTime,e.departTimeOffset=r.departTimeOffset,e.distanceToNetworkInMeters=r.distanceToNetworkInMeters,e.geometry=r.geometry,e.lateDuration=r.lateDuration,e.name=r.name,e.navLatency=r.navLatency,e.posAlong=r.posAlong,e.routeName=r.routeName,e.serviceCosts=r.serviceCosts,e.serviceDistance=r.serviceDistance,e.serviceDuration=r.serviceDuration,e.sequence=r.sequence,e.sideOfEdge=r.sideOfEdge,e.snapX=r.snapX,e.snapY=r.snapY,e.snapZ=r.snapZ,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol,e.timeWindowEnd=r.timeWindowEnd,e.timeWindowStart=r.timeWindowStart,e.violations=r.violations,e.waitDuration=r.waitDuration,e.wait=r.wait)}}(l,this.stops):this.set({stops:l}),at(s,this.pointBarriers)?function(e,t){for(const r of e){const e=t.find((e=>e.objectId===r.objectId));e&&(e.addedCost=r.addedCost,e.barrierType=r.barrierType,e.costs=r.costs,e.curbApproach=r.curbApproach,e.fullEdge=r.fullEdge,e.geometry=r.geometry,e.name=r.name,e.sideOfEdge=r.sideOfEdge,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol)}}(s,this.pointBarriers):this.set({pointBarriers:s}),at(n,this.polylineBarriers)?function(e,t){for(const r of e){const e=t.find((e=>e.objectId===r.objectId));e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(n,this.polylineBarriers):this.set({polylineBarriers:n}),at(o,this.polygonBarriers)?function(e,t){for(const r of e){const e=t.find((e=>e.objectId===r.objectId));e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(o,this.polygonBarriers):this.set({polygonBarriers:o}),this.set({checksum:t}),this._set("directionLines",r),this._set("directionPoints",i),this._set("routeInfo",a),null!=a.geometry&&(this.spatialReference=a.geometry.spatialReference)}_getNetworkFeatures(e,t,r,i){const s=ct(e)?e.layers:e.featureCollection?.layers,l=s?.find((e=>e.layerDefinition.name===t));if(null==l)return new a.A;const{layerDefinition:u,popupInfo:p,featureSet:c}=l,d=u.drawingInfo.renderer,{features:m}=c,y=c.spatialReference??u.spatialReference??u.extent.spatialReference??M.KK,h=d&&(0,k.L)(d),f=A.A.fromJSON(y),g=m.map((e=>{const i=o.A.fromJSON(e);null!=i.geometry&&null!=e.geometry&&null==e.geometry.spatialReference&&(i.geometry.spatialReference=f);const s=r(i);return s.symbol??=h?.getSymbol(i)??this._getNetworkSymbol(t),s.popupTemplate??=p&&n.A.fromJSON(p),s}));return i&&g.some((({symbol:e})=>!e))&&i(g),new a.A(g)}_getNetworkSymbol(e){switch(e){case"Barriers":return this.defaultSymbols.pointBarriers;case"DirectionPoints":return this.defaultSymbols.directionPoints;case"DirectionLines":return this.defaultSymbols.directionLines;case"PolylineBarriers":return this.defaultSymbols.polylineBarriers;case"PolygonBarriers":return this.defaultSymbols.polygonBarriers;case"RouteInfo":return this.defaultSymbols.routeInfo;case"Stops":return null}}async _getServiceDescription(e,t,r){if(null!=this._cachedServiceDescription&&this._cachedServiceDescription.url===e)return this._cachedServiceDescription.serviceDescription;const i=await te(e,t,r);return this._cachedServiceDescription={serviceDescription:i,url:e},i}_setStopSymbol(e){if(!e||!e.length||!this.defaultSymbols.stops||e.every((({symbol:e})=>!!e)))return;const{first:t,last:r,middle:i,unlocated:s,waypoint:o,break:n}=this.defaultSymbols.stops,a=e.map((({sequence:e})=>e)).filter((e=>null!=e)),l=e.length===a.length;if(!this.routeInfo&&!l||1===e.length)return void e.forEach(((s,o)=>{switch(o){case 0:s.symbol=t;break;case e.length-1:s.symbol=r;break;default:s.symbol=i}}));const u=Math.min(...a),p=Math.max(...a);for(const a of e)a.sequence!==u?a.sequence!==p?this.routeInfo&&"ok"!==a.status&&"not-located-on-closest"!==a.status?a.symbol=s:"waypoint"!==a.locationType?"break"!==a.locationType?a.symbol=i:a.symbol=n:a.symbol=o:a.symbol=r:a.symbol=t}_toRouteLayerSolution(e){const{checksum:t,routeResults:r}=e,i=r[0].stops?.map((e=>ot.fromJSON(e.toJSON())));this._setStopSymbol(i);const s=new Tt(i),o=new vt(e.polygonBarriers?.map((e=>{const t=Ue.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.polygonBarriers,t}))),n=new bt(e.polylineBarriers?.map((e=>{const t=$e.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.polylineBarriers,t}))),a=new gt(e.pointBarriers?.map((e=>{const t=Ee.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.pointBarriers,t}))),l=r[0].route?.toJSON(),u=Ge.fromJSON(l);u.symbol=this.defaultSymbols.routeInfo;const p=new ft(r[0].directionPoints?.features.map((e=>{const t=Re.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.directionPoints,t})));return{checksum:t,directionLines:new ht(r[0].directionLines?.features.map((e=>{const t=xe.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.directionLines,t}))),directionPoints:p,pointBarriers:a,polygonBarriers:o,polylineBarriers:n,routeInfo:u,stops:s}}_writeDirectionLines(){return this._writeNetworkFeatures(this.directionLines,this.defaultSymbols.directionLines,"esriGeometryPolyline",xe.fields,"DirectionLines","Direction Lines")}_writeDirectionPoints(){return this._writeNetworkFeatures(this.directionPoints,this.defaultSymbols.directionPoints,"esriGeometryPoint",Re.fields,"DirectionPoints","Direction Points")}_writeNetworkFeatures(e,t,r,i,s,o){if(!e?.length)return null;const n=this.spatialReference.toJSON(),{fullExtent:a,maxScale:l,minScale:u}=this;return{featureSet:{features:e.toArray().map((e=>function(e){const{attributes:t,geometry:r,popupTemplate:i,symbol:s}=e.toGraphic().toJSON();return{attributes:t,geometry:r,popupInfo:i,symbol:s}}(e))),geometryType:r,spatialReference:n},layerDefinition:{capabilities:"Query,Update,Editing",drawingInfo:{renderer:{type:"simple",symbol:null!=t?t.toJSON():pt(r)}},extent:a.toJSON(),fields:i,geometryType:r,hasM:!1,hasZ:!1,maxScale:l,minScale:u,name:s,objectIdField:"ObjectID",spatialReference:n,title:o,type:"Feature Layer",typeIdField:""}}}_writePointBarriers(){return this._writeNetworkFeatures(this.pointBarriers,this.defaultSymbols.pointBarriers,"esriGeometryPoint",Ee.fields,"Barriers","Point Barriers")}_writePolygonBarriers(){return this._writeNetworkFeatures(this.polygonBarriers,this.defaultSymbols.polygonBarriers,"esriGeometryPolygon",Ue.fields,"PolygonBarriers","Polygon Barriers")}_writePolylineBarriers(){return this._writeNetworkFeatures(this.polylineBarriers,this.defaultSymbols.polylineBarriers,"esriGeometryPolyline",$e.fields,"PolylineBarriers","Line Barriers")}_writeRouteInfo(){return this._writeNetworkFeatures(null!=this.routeInfo?new a.A([this.routeInfo]):null,this.defaultSymbols.routeInfo,"esriGeometryPolyline",Ge.fields,"RouteInfo","Route Details")}_writeStops(){const e=this._writeNetworkFeatures(this.stops,null,"esriGeometryPoint",ot.fields,"Stops","Stops");if(null==e)return null;const{stops:t}=this.defaultSymbols,r=t?.first?.toJSON(),i=t?.middle?.toJSON(),s=t?.last?.toJSON();return e.layerDefinition.drawingInfo.renderer={type:"uniqueValue",field1:"Sequence",defaultSymbol:i,uniqueValueInfos:[{value:"1",symbol:r,label:"First Stop"},{value:`${this.stops.length}`,symbol:s,label:"Last Stop"}]},e}_populatePortalFields(e,t,r){const i=t.networkDataset?.networkAttributes,s=i?.filter((({usageType:e})=>"cost"===e))??[],o=r.travelMode??t.defaultTravelMode;if(null==o)return void u.A.getLogger(this).warn("route-layer:missing-travel-mode","The routing service must have a default travel mode or one must be specified in the route parameter.");const{timeAttributeName:n,distanceAttributeName:a}=o,p=s.find((({name:e})=>e===n)),c=s.find((({name:e})=>e===a)),d=r.travelMode?.impedanceAttributeName??r.impedanceAttribute??t.impedance,m=p?.units,y=c?.units;if(!m||!y)throw new l.A("routelayer:unknown-impedance-units","the units of either the distance or time impedance are unknown");const h=r.directionsLanguage??t.directionsLanguage,f=r.accumulateAttributes??t.accumulateAttributeNames??[],g=new Set(s.filter((({name:e})=>e===n||e===a||e===d||null!=e&&f.includes(e))).map((({name:e})=>e))),v=e=>{for(const t in e)g.has(t)||delete e[t]};for(const t of e.pointBarriers)null!=t.costs&&(t.addedCost=t.costs[d]??0,v(t.costs));for(const t of e.polygonBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,v(t.costs));for(const t of e.polylineBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,v(t.costs));const{routeInfo:b}=e,{findBestSequence:T,preserveFirstStop:w,preserveLastStop:_,startTimeIsUTC:S,timeWindowsAreUTC:A}=r;b.analysisSettings=new qe({accumulateAttributes:f,directionsLanguage:h,findBestSequence:T,preserveFirstStop:w,preserveLastStop:_,startTimeIsUTC:S,timeWindowsAreUTC:A,travelMode:o}),b.totalDuration=mt(b.totalCosts?.[n]??0,m),b.totalDistance=yt(b.totalCosts?.[a]??0,y),b.totalLateDuration=mt(b.totalViolations?.[n]??0,m),b.totalWaitDuration=mt(b.totalWait?.[n]??0,m),null!=b.totalCosts&&v(b.totalCosts),null!=b.totalViolations&&v(b.totalViolations),null!=b.totalWait&&v(b.totalWait);for(const t of e.stops)null!=t.serviceCosts&&(t.serviceDuration=mt(t.serviceCosts[n]??0,m),t.serviceDistance=yt(t.serviceCosts[a]??0,y),v(t.serviceCosts)),null!=t.cumulativeCosts&&(t.cumulativeDuration=mt(t.cumulativeCosts[n]??0,m),t.cumulativeDistance=yt(t.cumulativeCosts[a]??0,y),v(t.cumulativeCosts)),null!=t.violations&&(t.lateDuration=mt(t.violations[n]??0,m),v(t.violations)),null!=t.wait&&(t.waitDuration=mt(t.wait[n]??0,m),v(t.wait))}};(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1,origins:{"portal-item":{write:{allowNull:!0,ignoreOrigin:!0}},"web-map":{write:{overridePolicy(){return{allowNull:!0,ignoreOrigin:null==this.portalItem}}}}}}})],wt.prototype,"_featureCollection",void 0),(0,i._)([(0,b.K)(["web-map","portal-item"],"_featureCollection")],wt.prototype,"writeFeatureCollectionWebmap",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{target:"type",overridePolicy(){return{ignoreOrigin:null!=this.portalItem}}}}}}})],wt.prototype,"_type",void 0),(0,i._)([(0,f.MZ)({type:String})],wt.prototype,"checksum",void 0),(0,i._)([(0,f.MZ)({nonNullable:!0,type:E})],wt.prototype,"defaultSymbols",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],wt.prototype,"directionLines",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"directionLines",["layers","featureCollection.layers"])],wt.prototype,"readDirectionLines",null),(0,i._)([(0,f.MZ)({readOnly:!0})],wt.prototype,"directionPoints",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"directionPoints",["layers","featureCollection.layers"])],wt.prototype,"readDirectionPoints",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],wt.prototype,"featureCollectionType",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],wt.prototype,"fullExtent",null),(0,i._)([(0,f.MZ)({json:{origins:{"web-map":{name:"featureCollection.showLegend"}},write:!0}})],wt.prototype,"legendEnabled",void 0),(0,i._)([(0,f.MZ)({type:["show","hide"]})],wt.prototype,"listMode",void 0),(0,i._)([(0,f.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],wt.prototype,"maxScale",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"maxScale",["layers","featureCollection.layers"])],wt.prototype,"readMaxScale",null),(0,i._)([(0,f.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],wt.prototype,"minScale",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"minScale",["layers","featureCollection.layers"])],wt.prototype,"readMinScale",null),(0,i._)([(0,f.MZ)({type:["ArcGISFeatureLayer"],value:"ArcGISFeatureLayer"})],wt.prototype,"operationalLayerType",void 0),(0,i._)([(0,f.MZ)({nonNullable:!0,type:a.A.ofType(Ee)})],wt.prototype,"pointBarriers",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"pointBarriers",["layers","featureCollection.layers"])],wt.prototype,"readPointBarriers",null),(0,i._)([(0,f.MZ)({nonNullable:!0,type:a.A.ofType(Ue)})],wt.prototype,"polygonBarriers",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"polygonBarriers",["layers","featureCollection.layers"])],wt.prototype,"readPolygonBarriers",null),(0,i._)([(0,f.MZ)({nonNullable:!0,type:a.A.ofType($e)})],wt.prototype,"polylineBarriers",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"polylineBarriers",["layers","featureCollection.layers"])],wt.prototype,"readPolylineBarriers",null),(0,i._)([(0,f.MZ)({readOnly:!0})],wt.prototype,"routeInfo",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"routeInfo",["layers","featureCollection.layers"])],wt.prototype,"readRouteInfo",null),(0,i._)([(0,f.MZ)({type:A.A})],wt.prototype,"spatialReference",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"spatialReference",["layers","featureCollection.layers"])],wt.prototype,"readSpatialReference",null),(0,i._)([(0,f.MZ)({nonNullable:!0,type:a.A.ofType(ot)})],wt.prototype,"stops",void 0),(0,i._)([(0,g.w)(["web-map","portal-item"],"stops",["layers","featureCollection.layers"])],wt.prototype,"readStops",null),(0,i._)([(0,f.MZ)()],wt.prototype,"title",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],wt.prototype,"type",void 0),(0,i._)([(0,f.MZ)()],wt.prototype,"url",null),wt=(0,i._)([(0,v.$)("esri.layers.RouteLayer")],wt);const _t=wt},65494:(e,t,r)=>{r.d(t,{L:()=>l,r:()=>n});var i=r(67076),s=r(90360),o=r(41214);function n(e,t){return l(e,null,t)}const a=(0,s.C)({types:o.Hg});function l(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(r?.messages&&r.messages.push(new i.A("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:r})),null):a(e,t,r):null}},70328:(e,t,r)=>{r.d(t,{BI:()=>v,Ej:()=>d,Ie:()=>f,Jt:()=>g,Ne:()=>m,RF:()=>p,aI:()=>T,fA:()=>n,gE:()=>l,hZ:()=>h,iT:()=>c,is:()=>b,qv:()=>w,vI:()=>y,vY:()=>a,v_:()=>_,vt:()=>o,w1:()=>u});var i=r(5443),s=(r(19419),r(4197));function o(e=_){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function n(e,t,r,i,s,n,a=o()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=s,a[5]=n,a}function a(e,t=o()){return function(e,t,r,i=o()){return h(i,w),function(e,t,r=0,i=t.length/3){let s=e[0],o=e[1],n=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)s=Math.min(s,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),n=Math.min(n,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=o,e[2]=n,e[3]=a,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function l(e,t=(0,s.jh)(24)){const[r,i,o,n,a,l]=e;return t[0]=r,t[1]=i,t[2]=o,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=a,t[8]=o,t[9]=r,t[10]=a,t[11]=l,t[12]=n,t[13]=i,t[14]=o,t[15]=n,t[16]=i,t[17]=l,t[18]=n,t[19]=a,t[20]=o,t[21]=n,t[22]=a,t[23]=l,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?h(e,w):o(w)}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,r,i,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function T(e,t,r){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];o()},73681:(e,t,r)=>{r.d(t,{n:()=>l});var i=r(49186),s=r(53966),o=r(46140),n=r(95466),a=r(55674);class l{static async from(e,t,r){const n=e.dictionary_version?o.R.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const m=await(0,a.xR)(e.expression,null,c);if(!m)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const y=!n||!n.greaterEqual(4,0);y&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});const h=new u(r,y);return new l(y,p,m,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);const t=e.map((e=>({...e,type:"esriFieldTypeString"})));return new n.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t?"":""+this._boundTarget.attributes[t.name]}}},76369:(e,t,r)=>{r.d(t,{LF:()=>_,M9:()=>S});var i=r(49186),s=r(93637),o=r(40876),n=r(59247),a=r(27865);class l extends SyntaxError{constructor(e,t,r,i){super(e),this.expected=t,this.found=r,this.location=i,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let r=null;const i=e.find((e=>e.source===this.location.source));i&&(r=i.text.split(/\r\n|\n|\r/g));const s=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(s):s,n=this.location.source+":"+o.line+":"+o.column;if(r){const e=this.location.end,i="".padEnd(o.line.toString().length," "),a=r[s.line-1],l=(s.line===e.line?e.column:a.length+1)-s.column||1;t+="\n --\x3e "+n+"\n"+i+" |\n"+o.line+" | "+a+"\n"+i+" | "+"".padEnd(s.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+n}return t}static buildMessage(e,t){function r(e){return e.codePointAt(0).toString(16).toUpperCase()}const i=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function s(e){return i?e.replace(i,(e=>"\\u{"+r(e)+"}")):e}function o(e){return s(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(e=>"\\x0"+r(e))).replace(/[\x10-\x1F\x7F-\x9F]/g,(e=>"\\x"+r(e))))}function n(e){return s(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(e=>"\\x0"+r(e))).replace(/[\x10-\x1F\x7F-\x9F]/g,(e=>"\\x"+r(e))))}const a={literal:e=>'"'+o(e.text)+'"',class(e){const t=e.parts.map((e=>Array.isArray(e)?n(e[0])+"-"+n(e[1]):n(e)));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return a[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let r=1;r<t.length;r++)t[r-1]!==t[r]&&(t[e]=t[r],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=p(e);return t&&0!==t.length?t:null}const t=e.map((e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new i.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:p(e.value)}}));t.sort(((e,t)=>t.effects.length-e.effects.length));for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new i.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort(((e,t)=>t.scale-e.scale)),t}function p(e){let t;if(!e)return[];try{t=function(e,t){const r={},i=(t=void 0!==t?t:{}).grammarSource,s={start:we};let o=we;const n="none",a=")",u=",",p="(",c="%",d="px",m="cm",y="mm",h="in",f="pt",g="pc",v="deg",b="rad",T="grad",w="turn",_="#",S=".",A="e",M=/^[ \t\n\r]/,N=/^[a-z\-]/,O=/^[0-9a-fA-F]/,I=/^[+\-]/,D=/^[0-9]/,Z=ge("none"),F=he("none",!1),C=he(")",!1),j=he(",",!1),x=fe([" ","\t","\n","\r"],!1,!1,!1),B=ge("function"),R=he("(",!1),P=ge("identifier"),E=fe([["a","z"],"-"],!1,!1,!1),L=ge("percentage"),J=he("%",!1),U=ge("length"),k=he("px",!1),$=he("cm",!1),q=he("mm",!1),W=he("in",!1),G=he("pt",!1),V=he("pc",!1),z=ge("angle"),K=he("deg",!1),Y=he("rad",!1),H=he("grad",!1),X=he("turn",!1),Q=ge("number"),ee=ge("color"),te=he("#",!1),re=fe([["0","9"],["a","f"],["A","F"]],!1,!1,!1),ie=fe(["+","-"],!1,!1,!1),se=fe([["0","9"]],!1,!1,!1),oe=he(".",!1),ne=he("e",!1);let ae=0|t.peg$currPos,le=ae;const ue=[{line:1,column:1}];let pe,ce=ae,de=t.peg$maxFailExpected||[],me=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in s))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=s[t.startRule]}function ye(){return e.substring(le,ae)}function he(e,t){return{type:"literal",text:e,ignoreCase:t}}function fe(e,t,r,i){return{type:"class",parts:e,inverted:t,ignoreCase:r,unicode:i}}function ge(e){return{type:"other",description:e}}function ve(t){let r,i=ue[t];if(i)return i;if(t>=ue.length)r=ue.length-1;else for(r=t;!ue[--r];);for(i=ue[r],i={line:i.line,column:i.column};r<t;)10===e.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return ue[t]=i,i}function be(e,t,r){const s=ve(e),o=ve(t);return{source:i,start:{offset:e,line:s.line,column:s.column},end:{offset:t,line:o.line,column:o.column}}}function Te(e){ae<ce||(ae>ce&&(ce=ae,de=[]),de.push(e))}function we(){let e;return e=_e(),e===r&&(e=function(){let e,t;if(e=[],t=Se(),t!==r)for(;t!==r;)e.push(t),t=Se();else e=r;return e}()),e}function _e(){let t,i;return me++,t=ae,Me(),e.substr(ae,4)===n?(i=n,ae+=4):(i=r,0===me&&Te(F)),i!==r?(Me(),le=t,t=[]):(ae=t,t=r),me--,t===r&&0===me&&Te(Z),t}function Se(){let t,i,s,o;return t=ae,Me(),i=function(){let t,i,s;return me++,t=ae,i=Ne(),i!==r?(40===e.charCodeAt(ae)?(s=p,ae++):(s=r,0===me&&Te(R)),s!==r?(le=t,t=i):(ae=t,t=r)):(ae=t,t=r),me--,t===r&&(i=r,0===me&&Te(B)),t}(),i!==r?(Me(),s=function(){let t,i,s,o,n,a,l,p;if(t=ae,i=Ae(),i!==r){for(s=[],o=ae,n=Me(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===me&&Te(j)),a===r&&(a=null),l=Me(),p=Ae(),p!==r?(n=[n,a,l,p],o=n):(ae=o,o=r);o!==r;)s.push(o),o=ae,n=Me(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===me&&Te(j)),a===r&&(a=null),l=Me(),p=Ae(),p!==r?(n=[n,a,l,p],o=n):(ae=o,o=r);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]}(i,s)}else ae=t,t=r;return t}(),s===r&&(s=null),Me(),41===e.charCodeAt(ae)?(o=a,ae++):(o=r,0===me&&Te(C)),o!==r?(Me(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(i,s)):(ae=t,t=r)):(ae=t,t=r),t}function Ae(){let e,t;return e=ae,t=Oe(),t===r&&(t=Ie(),t===r&&(t=De(),t===r&&(t=function(){let e,t;return me++,e=ae,Me(),t=Fe(),t!==r?(le=e,e=function(e){return{value:e,unit:null}}(t)):(ae=e,e=r),me--,e===r&&0===me&&Te(Q),e}()))),t!==r&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===r&&(e=ae,t=Ze(),t!==r&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Me(){let t,i;for(me++,t=[],i=e.charAt(ae),M.test(i)?ae++:(i=r,0===me&&Te(x));i!==r;)t.push(i),i=e.charAt(ae),M.test(i)?ae++:(i=r,0===me&&Te(x));return me--,t}function Ne(){let t,i,s;if(me++,t=ae,i=[],s=e.charAt(ae),N.test(s)?ae++:(s=r,0===me&&Te(E)),s!==r)for(;s!==r;)i.push(s),s=e.charAt(ae),N.test(s)?ae++:(s=r,0===me&&Te(E));else i=r;return i!==r&&(le=t,i=ye()),t=i,me--,t===r&&(i=r,0===me&&Te(P)),t}function Oe(){let t,i,s;return me++,t=ae,Me(),i=Fe(),i!==r?(37===e.charCodeAt(ae)?(s=c,ae++):(s=r,0===me&&Te(J)),s!==r?(le=t,t=function(e){return{value:e,unit:"%"}}(i)):(ae=t,t=r)):(ae=t,t=r),me--,t===r&&0===me&&Te(L),t}function Ie(){let t,i,s;return me++,t=ae,Me(),i=Fe(),i!==r?(e.substr(ae,2)===d?(s=d,ae+=2):(s=r,0===me&&Te(k)),s!==r?(le=t,t=function(e){return{value:e,unit:"px"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Me(),i=Fe(),i!==r?(e.substr(ae,2)===m?(s=m,ae+=2):(s=r,0===me&&Te($)),s!==r?(le=t,t=function(e){return{value:e,unit:"cm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Me(),i=Fe(),i!==r?(e.substr(ae,2)===y?(s=y,ae+=2):(s=r,0===me&&Te(q)),s!==r?(le=t,t=function(e){return{value:e,unit:"mm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Me(),i=Fe(),i!==r?(e.substr(ae,2)===h?(s=h,ae+=2):(s=r,0===me&&Te(W)),s!==r?(le=t,t=function(e){return{value:e,unit:"in"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Me(),i=Fe(),i!==r?(e.substr(ae,2)===f?(s=f,ae+=2):(s=r,0===me&&Te(G)),s!==r?(le=t,t=function(e){return{value:e,unit:"pt"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Me(),i=Fe(),i!==r?(e.substr(ae,2)===g?(s=g,ae+=2):(s=r,0===me&&Te(V)),s!==r?(le=t,t=function(e){return{value:e,unit:"pc"}}(i)):(ae=t,t=r)):(ae=t,t=r)))))),me--,t===r&&0===me&&Te(U),t}function De(){let t,i,s;return me++,t=ae,i=Fe(),i!==r?(e.substr(ae,3)===v?(s=v,ae+=3):(s=r,0===me&&Te(K)),s!==r?(le=t,t=function(e){return{value:e,unit:"deg"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=Fe(),i!==r?(e.substr(ae,3)===b?(s=b,ae+=3):(s=r,0===me&&Te(Y)),s!==r?(le=t,t=function(e){return{value:e,unit:"rad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=Fe(),i!==r?(e.substr(ae,4)===T?(s=T,ae+=4):(s=r,0===me&&Te(H)),s!==r?(le=t,t=function(e){return{value:e,unit:"grad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=Fe(),i!==r?(e.substr(ae,4)===w?(s=w,ae+=4):(s=r,0===me&&Te(X)),s!==r?(le=t,t=function(e){return{value:e,unit:"turn"}}(i)):(ae=t,t=r)):(ae=t,t=r)))),me--,t===r&&(i=r,0===me&&Te(z)),t}function Ze(){let t,i,s,o;if(me++,t=ae,35===e.charCodeAt(ae)?(i=_,ae++):(i=r,0===me&&Te(te)),i!==r){if(s=[],o=e.charAt(ae),O.test(o)?ae++:(o=r,0===me&&Te(re)),o!==r)for(;o!==r;)s.push(o),o=e.charAt(ae),O.test(o)?ae++:(o=r,0===me&&Te(re));else s=r;s!==r?(le=t,t={type:"hex",value:ye()}):(ae=t,t=r)}else ae=t,t=r;return t===r&&(t=ae,i=Se(),i!==r&&(le=t,i=function(e){return{type:"function",value:e}}(i)),t=i,t===r&&(t=ae,i=Ne(),i!==r&&(le=t,i={type:"named",value:ye()}),t=i)),me--,t===r&&(i=r,0===me&&Te(ee)),t}function Fe(){let t,i,s,o,n,a,l,u;for(t=ae,i=e.charAt(ae),I.test(i)?ae++:(i=r,0===me&&Te(ie)),i===r&&(i=null),s=ae,o=[],n=e.charAt(ae),D.test(n)?ae++:(n=r,0===me&&Te(se));n!==r;)o.push(n),n=e.charAt(ae),D.test(n)?ae++:(n=r,0===me&&Te(se));if(46===e.charCodeAt(ae)?(n=S,ae++):(n=r,0===me&&Te(oe)),n!==r){if(a=[],l=e.charAt(ae),D.test(l)?ae++:(l=r,0===me&&Te(se)),l!==r)for(;l!==r;)a.push(l),l=e.charAt(ae),D.test(l)?ae++:(l=r,0===me&&Te(se));else a=r;a!==r?(o=[o,n,a],s=o):(ae=s,s=r)}else ae=s,s=r;if(s===r)if(s=[],o=e.charAt(ae),D.test(o)?ae++:(o=r,0===me&&Te(se)),o!==r)for(;o!==r;)s.push(o),o=e.charAt(ae),D.test(o)?ae++:(o=r,0===me&&Te(se));else s=r;if(s!==r){if(o=ae,101===e.charCodeAt(ae)?(n=A,ae++):(n=r,0===me&&Te(ne)),n!==r){if(a=e.charAt(ae),I.test(a)?ae++:(a=r,0===me&&Te(ie)),a===r&&(a=null),l=[],u=e.charAt(ae),D.test(u)?ae++:(u=r,0===me&&Te(se)),u!==r)for(;u!==r;)l.push(u),u=e.charAt(ae),D.test(u)?ae++:(u=r,0===me&&Te(se));else l=r;l!==r?(n=[n,a,l],o=n):(ae=o,o=r)}else ae=o,o=r;o===r&&(o=null),le=t,t=parseFloat(ye())}else ae=t,t=r;return t}pe=o();const Ce=pe!==r&&ae===e.length;function je(){throw pe!==r&&ae<e.length&&Te({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(de,ce<e.length?function(t=ae){const r=e.codePointAt(t);return void 0===r?"":String.fromCodePoint(r)}(ce):null,ce<e.length?be(ce,ce+1):be(ce,ce))}return t.peg$library?{peg$result:pe,peg$currPos:ae,peg$FAILED:r,peg$maxFailExpected:de,peg$maxFailPos:ce,peg$success:Ce,peg$throw:Ce?void 0:je}:Ce?pe:void je()}(e)}catch(t){throw new i.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map((e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new n.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new n.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=y[e.unit]))throw new i.A("effect:type-error",`Expected <angle>, Actual: ${d(e)}`,{term:e})}(e),e.value*y[e.unit]||0}(e.parameters[0])),new n.Nd(t)}(e);case"blur":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0]),m(t,e.parameters[0])),new n.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const s of e.parameters)if("color"===s.type){if(t.length&&Object.freeze(t),r)throw new i.A("effect:type-error","Accepts only one color",{});r=v(s)}else{const e=g(s);if(Object.isFrozen(t))throw new i.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&m(e,s)}if(t.length<2||t.length>3)throw new i.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new n.$b(t[0],t[1],t[2]||0,r||b("black"))}(e);case"bloom":return function(e){let t=1,r=0,i=0;return c(e.parameters,3),e.parameters[0]&&(t=f(e.parameters[0])),e.parameters[1]&&(r=g(e.parameters[1]),m(r,e.parameters[1])),e.parameters[2]&&(i=f(e.parameters[2])),new n.bv(t,r,i)}(e)}}catch(t){throw t.details.filter=e,t}throw new i.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e)))}function c(e,t){if(e.length>t)throw new i.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function d(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in h)return"<length>";if(e.unit in y)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function m(e,t){if(e<0)throw new i.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const y={deg:1,grad:.9,rad:180/Math.PI,turn:360},h={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function f(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new i.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${d(e)}`,{term:e})}(e);const t=e.value;return m(t,e),"%"===e.unit?.01*t:t}function g(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=h[e.unit]))throw new i.A("effect:type-error",`Expected <length>, Actual: ${d(e)}`,{term:e})}(e),e.value*h[e.unit]||0}function v(e){switch(e.colorType){case"hex":return(0,o.j5)(e.value);case"named":return b(e.value);case"function":return function(e){if(c(e.parameters,4),T.test(e.name))return[f(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1];if(w.test(e.name))return(0,o.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new i.A("effect:type-error",`Expected <double>, Actual: ${d(e)}`,{term:e})}(e),m(e.value,e),e.value}(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1);throw new i.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function b(e){if(!(0,o.V6)(e))throw new i.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.c4)(e)}const T=/^rgba?/i,w=/^hsla?/i;function _(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:A(r.value)});return t}return A(e)}(e)}catch(e){r?.messages?.push(e)}return null}function S(e,t,r,i){try{const i=function(e){const t=u(e);return t?(0,a.dw)(t)?t.map((e=>e.toJSON())):t.map((({scale:e,effects:t})=>({scale:e,value:t.map((e=>e.toJSON()))}))):null}(e);(0,s.sM)(r,i,t)}catch(e){i.messages&&i.messages.push(e)}}function A(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[M(r,"amount")];break;case"blur":e=[M(r,"radius","pt")];break;case"hue-rotate":e=[M(r,"angle","deg")];break;case"drop-shadow":e=[M(r,"xoffset","pt"),M(r,"yoffset","pt"),M(r,"blurRadius","pt"),N(r,"color")];break;case"bloom":e=[M(r,"strength"),M(r,"radius","pt"),M(r,"threshold")]}const i=`${r.type}(${e.filter(Boolean).join(" ")})`;u(i),t.push(i)}return t.join(" ")}function M(e,t,r){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function N(e,t){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},76553:(e,t,r)=>{function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>i})},80754:(e,t,r)=>{r.d(t,{j7:()=>n,kS:()=>l,kd:()=>a,r8:()=>u});var i=r(82799),s=r(16930),o=r(65864);const n={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},92071:(e,t,r)=>{r.d(t,{P:()=>b,L:()=>T});var i=r(90237),s=r(69622),o=r(76953),n=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,r=this._originStores[a.Gr.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,n.o8)(e),a.Gr.DEFAULTS)}));for(let r=a.Gr.SERVICE;r<a.AU;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,n.o8)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.Gr.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=a.Gr.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r?.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||a.Gr.DEFAULTS}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var u=r(45917),p=r(88620),c=r(40608);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,p.oY)(this),r=t.store,i=new l;t.store=i,(0,o.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const r=m(this),i=(0,a.aB)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return m(this).originOf(e)}revert(e,t){const r=m(this),i=(0,a.aB)(t),s=(0,p.oY)(this);let o;o="string"==typeof e?"*"===e?r.keys(i):[e]:e,o.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function m(e){return(0,p.oY)(e).store}let y=class extends(d(s.A)){};y=(0,i._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var h=r(16649),f=r(49422);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){(0,p.oY)(this).clearOrigin(e,(0,a.aB)(t))}write(e,t){return(0,f.M)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,p.oY)(this).setAtOrigin(e,t,(0,a.aB)(r))}removeOrigin(e){const t=v(this),r=(0,a.aB)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),a.Gr.USER)}updateOrigin(e,t){const r=v(this),i=(0,a.aB)(t),s=(0,h.Jt)(this,e);for(let t=i+1;t<a.AU;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,p.oY)(e).store}const b=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],t),t};let T=class extends(b(s.A)){};T=(0,i._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],T)},92300:(e,t,r)=>{r.d(t,{V:()=>o,X:()=>s});var i=r(65864);function s(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function o(e,t,r){const s=(0,i.xD)(t);return e.map((e=>{const t=s.fromJSON(e);return t.spatialReference=r,t}))}},95466:(e,t,r)=>{r.d(t,{A:()=>m});var i=r(49186),s=r(53966),o=r(91869),n=r(3330),a=r(12195),l=r(30524),u=r(98623),p=r(56400),c=r(96285);const d=new Map;class m{static fromJSON(e){return new m(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new m(e.fields??[],g(e))}static fromLayerJSON(e){return new m(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=h(t);if(t&&i){const s=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(i,e),r.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(h(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):f.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?n.GB.instance:t===u.n$?c.mQ.utcInstance:(0,o.tE)(d,t,(()=>c.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,a.W)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function h(e){return(0,l.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:s}=e,o=(i?"startField"in i?i.startField:i.startTimeField:"")??"",n=(i?"endField"in i?i.endField:i.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.ZS)(e.dateFieldsTimeReference):null,l=s?function(e){return"timeZone"in e}(s)?s.timeZone??a:s.dateFieldsTimeReference?(0,p.ZS)(s.dateFieldsTimeReference):a??u.n$:null,c=i?function(e){return"timeZone"in e}(i)?i.timeZone??a:i.timeReference?(0,p.ZS)(i.timeReference):a:null,d=new Map([[y(s?.creationDateField??""),l],[y(s?.editDateField??""),l],[y(o),c],[y(n),c]]);for(const{name:i,type:s}of e.fields)if(f.has(s))t.set(i,u.L5);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(i,null);else if(r)t.set(i,u.L5);else{const e=d.get(y(i??""))??a;t.set(i,e)}return t}},96576:(e,t,r)=>{r.d(t,{A:()=>d});var i,s=r(90237),o=r(4718),n=r(10107),a=(r(44208),r(53966),r(93223)),l=r(40608),u=r(92438),p=r(63988),c=r(49849);let d=i=class extends((0,p.h)(u.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map((r=>r.collectRequiredFields(e,t))))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables?.reduce(((e,t)=>e+t.getAttributeHash()),"")??""}getMeshHash(){return this.symbols.reduce(((e,t)=>e+JSON.stringify(t)),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,s._)([(0,n.MZ)(c.Wp)],d.prototype,"symbol",void 0),(0,s._)([(0,a.e)({simple:"simple"})],d.prototype,"type",void 0),d=i=(0,s._)([(0,l.$)("esri.renderers.SimpleRenderer")],d)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3666],{3666:(r,e,t)=>{t.r(e),t.d(e,{l:()=>u});var n,a=t(11053),o={exports:{}};const i=(0,a.g)(function(){return n||(n=1,r=o,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=function(r={}){var t,n,a=Object.assign({},r),o=new Promise(((r,e)=>{t=r,n=e})),i=Object.assign({},a),u="./this.program",s="";"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),e&&(s=e),s=s.startsWith("blob:")?"":s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1),a.print||console.log.bind(console);var l,c,f=a.printErr||console.error.bind(console);Object.assign(a,i),i=null,a.arguments&&a.arguments,a.thisProgram&&(u=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(l=a.wasmBinary);var d,h,m,p,v,y,g,w,_=!1;function b(){var r=c.buffer;a.HEAP8=d=new Int8Array(r),a.HEAP16=m=new Int16Array(r),a.HEAPU8=h=new Uint8Array(r),a.HEAPU16=p=new Uint16Array(r),a.HEAP32=v=new Int32Array(r),a.HEAPU32=y=new Uint32Array(r),a.HEAPF32=g=new Float32Array(r),a.HEAPF64=w=new Float64Array(r)}var A=[],T=[],C=[];function P(r){A.unshift(r)}function F(r){C.unshift(r)}var W=0,E=null;function S(r){a.onAbort?.(r),f(r="Aborted("+r+")"),_=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}var O,$=r=>r.startsWith("data:application/octet-stream;base64,");function M(r){if(r==O&&l)return new Uint8Array(l);throw"both async and sync fetching of the wasm failed"}function R(r,e,t){return function(r){return l||"function"!=typeof fetch?Promise.resolve().then((()=>M(r))):fetch(r,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()})).catch((()=>M(r)))}(r).then((r=>WebAssembly.instantiate(r,e))).then(t,(r=>{f(`failed to asynchronously prepare wasm: ${r}`),S(r)}))}$(O="lclayout.wasm")||(O=function(r){return a.locateFile?a.locateFile(r,s):s+r}(O));var j=r=>{for(;r.length>0;)r.shift()(a)};a.noExitRuntime;class k{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,d[this.ptr+12]=r}get_caught(){return 0!=d[this.ptr+12]}set_rethrown(r){r=r?1:0,d[this.ptr+13]=r}get_rethrown(){return 0!=d[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){if(Gr(this.get_type()))return y[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var D={},x=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function I(r){return this.fromWireType(y[r>>2])}var U,Y,H,V={},B={},z={},N=r=>{throw new U(r)},q=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&N("Mismatched type converter count");for(var a=0;a<r.length;++a)L(r[a],n[a])}r.forEach((function(r){z[r]=e}));var a=new Array(e.length),o=[],i=0;e.forEach(((r,e)=>{B.hasOwnProperty(r)?a[e]=B[r]:(o.push(r),V.hasOwnProperty(r)||(V[r]=[]),V[r].push((()=>{a[e]=B[r],++i===o.length&&n(a)})))})),0===o.length&&n(a)},G=r=>{for(var e="",t=r;h[t];)e+=Y[h[t++]];return e},J=r=>{throw new H(r)};function L(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(r,e,t={}){var n=e.name;if(r||J(`type "${n}" must have a positive integer typeid pointer`),B.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;J(`Cannot register type '${n}' twice`)}if(B[r]=e,delete z[r],V.hasOwnProperty(r)){var a=V[r];delete V[r],a.forEach((r=>r()))}}(r,e,t)}var X,K,Q,Z=[],rr=[],er=r=>{r>9&&0===--rr[r+1]&&(rr[r]=void 0,Z.push(r))},tr=r=>(r||J("Cannot use deleted val. handle = "+r),rr[r]),nr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Z.pop()||rr.length;return rr[e]=r,rr[e+1]=1,e}}},ar={name:"emscripten::val",fromWireType:r=>{var e=tr(r);return er(r),e},toWireType:(r,e)=>nr(e),argPackAdvance:8,readValueFromPointer:I,destructorFunction:null},or=r=>L(r,ar),ir=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||J(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},ur=(r,e,t)=>{a.hasOwnProperty(r)?((void 0===t||void 0!==a[r].overloadTable&&void 0!==a[r].overloadTable[t])&&J(`Cannot register public name '${r}' twice`),ir(a,r,r),a.hasOwnProperty(t)&&J(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[r].overloadTable[t]=e):(a[r]=e,void 0!==t&&(a[r].numArguments=t))},sr=(r,e,t)=>{switch(e){case 1:return t?function(r){return this.fromWireType(d[r])}:function(r){return this.fromWireType(h[r])};case 2:return t?function(r){return this.fromWireType(m[r>>1])}:function(r){return this.fromWireType(p[r>>1])};case 4:return t?function(r){return this.fromWireType(v[r>>2])}:function(r){return this.fromWireType(y[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},lr=(r,e)=>Object.defineProperty(e,"name",{value:r}),cr=r=>{var e=zr(r),t=G(e);return qr(e),t},fr=(r,e)=>{var t=B[r];return void 0===t&&J(`${e} has unknown type ${cr(r)}`),t},dr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(g[r>>2])};case 8:return function(r){return this.fromWireType(w[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},hr=(r,e,t)=>{a.hasOwnProperty(r)||N("Replacing nonexistent public symbol"),void 0!==a[r].overloadTable&&void 0!==t?a[r].overloadTable[t]=e:(a[r]=e,a[r].argCount=t)},mr=[],pr=r=>{var e=mr[r];return e||(r>=mr.length&&(mr.length=r+1),mr[r]=e=X.get(r)),e},vr=(r,e)=>{var t=(r=G(r)).includes("j")?((r,e)=>(...t)=>((r,e,t=[])=>r.includes("j")?((r,e,t)=>(r=r.replace(/p/g,"i"),(0,a["dynCall_"+r])(e,...t)))(r,e,t):pr(e)(...t))(r,e,t))(r,e):pr(e);return"function"!=typeof t&&J(`unknown function pointer with signature ${r}: ${e}`),t},yr=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>h[r];case 2:return t?r=>m[r>>1]:r=>p[r>>1];case 4:return t?r=>v[r>>2]:r=>y[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},gr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++i)),u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-a},wr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},_r="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,br=(r,e)=>r?((r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&_r)return _r.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o})(h,r,e):"",Ar="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Tr=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&p[n];)++n;if((t=n<<1)-r>32&&Ar)return Ar.decode(h.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=m[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},Cr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);m[e>>1]=i,e+=2}return m[e>>1]=0,e-n},Pr=r=>2*r.length,Fr=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=v[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},Wr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),v[e>>2]=i,(e+=4)+4>a)break}return v[e>>2]=0,e-n},Er=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Sr=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(y[e>>2]=nr(n)),a},Or=[],$r={},Mr=r=>{var e=$r[r];return void 0===e?G(r):e},Rr=Reflect.construct;Q=()=>performance.now();var jr=r=>{var e=(r-c.buffer.byteLength+65535)/65536;try{return c.grow(e),b(),1}catch(r){}},kr={},Dr=()=>{if(!Dr.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:u||"./this.program"};for(var e in kr)void 0===kr[e]?delete r[e]:r[e]=kr[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Dr.strings=t}return Dr.strings},xr=r=>r%4==0&&(r%100!=0||r%400==0),Ir=[31,29,31,30,31,30,31,31,30,31,30,31],Ur=[31,28,31,30,31,30,31,31,30,31,30,31],Yr=(r,e)=>{d.set(r,e)};U=a.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},(()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Y=r})(),H=a.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},rr.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>rr.length/2-5-Z.length,K=a.UnboundTypeError=((r,e)=>{var t=lr(e,(function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError");var Hr,Vr={a:(r,e,t)=>{throw new k(r).init(e,t),r},k:r=>{var e=D[r];delete D[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map((r=>r.getterReturnType)).concat(a.map((r=>r.setterArgumentType)));q([r],o,(r=>{var o={};return a.forEach(((e,t)=>{var n=e.fieldName,i=r[t],u=e.getter,s=e.getterContext,l=r[t+a.length],c=e.setter,f=e.setterContext;o[n]={read:r=>i.fromWireType(u(s,r)),write:(r,e)=>{var t=[];c(f,r,l.toWireType(t,e)),x(t)}}})),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:I,destructorFunction:n}]}))},z:(r,e,t,n,a)=>{},w:(r,e,t,n)=>{L(r,{name:e=G(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(h[r])},destructorFunction:null})},t:(r,e,t)=>{r=G(r),q([],[e],(e=>(e=e[0],a[r]=e.fromWireType(t),[])))},M:or,r:(r,e,t,n)=>{function a(){}e=G(e),a.values={},L(r,{name:e,constructor:a,fromWireType:function(r){return this.constructor.values[r]},toWireType:(r,e)=>e.value,argPackAdvance:8,readValueFromPointer:sr(e,t,n),destructorFunction:null}),ur(e,a)},j:(r,e,t)=>{var n=fr(r,"enum");e=G(e);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:lr(`${n.name}_${e}`,(function(){}))}});a.values[t]=o,a[e]=o},v:(r,e,t)=>{L(r,{name:e=G(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:dr(e,t),destructorFunction:null})},e:(r,e,t,n,a,o,i)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(y[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r})(r=G(r)),a=vr(n,a),ur(r,(function(){((r,e)=>{var t=[],n={};throw e.forEach((function r(e){n[e]||B[e]||(z[e]?z[e].forEach(r):(t.push(e),n[e]=!0))})),new K(`${r}: `+t.map(cr).join([", "]))})(`Cannot call ${r} due to unbound types`,u)}),e-1),q([],u,(t=>{var n=[t[0],null].concat(t.slice(1));return hr(r,function(r,e,t,n,a){var o=e.length;o<2&&J("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),u="void"!==e[0].name,s=o-2,l=new Array(s),c=[],f=[];return lr(r,(function(...t){t.length!==s&&J(`function ${r} called with ${t.length} arguments, expected ${s}`),f.length=0,c.length=1,c[0]=a;for(var o=0;o<s;++o)l[o]=e[o+2].toWireType(f,t[o]),c.push(l[o]);return function(r){if(i)x(f);else for(var t=2;t<e.length;t++){var n=1===t?void 0:l[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(u)return e[0].fromWireType(r)}(n(...c))}))}(r,n,0,a,o),e-1),[]}))},m:(r,e,t,n,a)=>{e=G(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned");L(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:yr(e,t,0!==n),destructorFunction:null})},f:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=y[r>>2],t=y[r+4>>2];return new n(d.buffer,t,e)}L(r,{name:t=G(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},L:(r,e)=>{or(r)},u:(r,e)=>{var t="std::string"===(e=G(e));L(r,{name:e,fromWireType(r){var e,n=y[r>>2],a=r+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==h[u]){var s=br(o,u-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(h[a+i]);e=l.join("")}return qr(r),e},toWireType(r,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||J("Cannot pass non-string to std::string"),n=t&&a?wr(e):e.length;var o=Nr(4+n+1),i=o+4;if(y[o>>2]=n,t&&a)((r,e,t)=>{gr(r,h,e,t)})(e,i,n+1);else if(a)for(var u=0;u<n;++u){var s=e.charCodeAt(u);s>255&&(qr(i),J("String has UTF-16 code units that do not fit in 8 bits")),h[i+u]=s}else for(u=0;u<n;++u)h[i+u]=e[u];return null!==r&&r.push(qr,o),o},argPackAdvance:8,readValueFromPointer:I,destructorFunction(r){qr(r)}})},s:(r,e,t)=>{var n,a,o,i;t=G(t),2===e?(n=Tr,a=Cr,i=Pr,o=r=>p[r>>1]):4===e&&(n=Fr,a=Wr,i=Er,o=r=>y[r>>2]),L(r,{name:t,fromWireType:r=>{for(var t,a=y[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var l=n(i,s-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=s+e}}return qr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&J(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=Nr(4+o+e);return y[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(qr,u),u},argPackAdvance:8,readValueFromPointer:I,destructorFunction(r){qr(r)}})},l:(r,e,t,n,a,o)=>{D[r]={name:G(e),rawConstructor:vr(t,n),rawDestructor:vr(a,o),fields:[]}},c:(r,e,t,n,a,o,i,u,s,l)=>{D[r].fields.push({fieldName:G(e),getterReturnType:t,getter:vr(n,a),getterContext:o,setterArgumentType:i,setter:vr(u,s),setterContext:l})},x:(r,e)=>{L(r,{isVoid:!0,name:e=G(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},F:()=>1,J:(r,e,t)=>h.copyWithin(r,e,e+t),g:(r,e,t)=>(r=tr(r),e=fr(e,"emval::as"),Sr(e,t,r)),y:(r,e,t,n)=>(r=Or[r])(null,e=tr(e),t,n),p:(r,e,t,n,a)=>(r=Or[r])(e=tr(e),e[t=Mr(t)],n,a),b:er,n:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=fr(y[e+4*n>>2],"parameter "+n);return t})(r,e),a=n.shift();r--;var o=new Array(r),i=`methodCaller<(${n.map((r=>r.name)).join(", ")}) => ${a.name}>`;return(r=>{var e=Or.length;return Or.push(r),e})(lr(i,((e,i,u,s)=>{for(var l=0,c=0;c<r;++c)o[c]=n[c].readValueFromPointer(s+l),l+=n[c].argPackAdvance;var f=1===t?Rr(i,o):i.apply(e,o);return Sr(a,u,f)})))},h:(r,e)=>(r=tr(r),e=tr(e),nr(r[e])),q:()=>nr([]),K:r=>{r=tr(r);for(var e=new Array(r.length),t=0;t<r.length;t++)e[t]=r[t];return nr(e)},o:r=>nr(Mr(r)),d:r=>{var e=tr(r);x(e),er(r)},i:(r,e)=>{var t=(r=fr(r,"_emval_take_value")).readValueFromPointer(e);return nr(t)},E:()=>{S("")},G:()=>Date.now(),A:()=>2147483648,I:Q,H:r=>{var e=h.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=(r,e)=>r+(e-r%e)%e,a=1;a<=4;a*=2){var o=e*(1+.2/a);o=Math.min(o,r+100663296);var i=Math.min(t,n(Math.max(r,o),65536));if(jr(i))return!0}return!1},C:(r,e)=>{var t=0;return Dr().forEach(((n,a)=>{var o=e+t;y[r+4*a>>2]=o,((r,e)=>{for(var t=0;t<r.length;++t)d[e++]=r.charCodeAt(t);d[e]=0})(n,o),t+=n.length+1})),0},D:(r,e)=>{var t=Dr();y[r>>2]=t.length;var n=0;return t.forEach((r=>n+=r.length+1)),y[e>>2]=n,0},B:(r,e,t,n,a)=>((r,e,t,n)=>{var a=y[n+40>>2],o={tm_sec:v[n>>2],tm_min:v[n+4>>2],tm_hour:v[n+8>>2],tm_mday:v[n+12>>2],tm_mon:v[n+16>>2],tm_year:v[n+20>>2],tm_wday:v[n+24>>2],tm_yday:v[n+28>>2],tm_isdst:v[n+32>>2],tm_gmtoff:v[n+36>>2],tm_zone:a?br(a):""},i=br(t),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function d(r,e){return f(r,e,"0")}function h(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function m(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function p(r){var e=((r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=xr(t.getFullYear()),a=t.getMonth(),o=(n?Ir:Ur)[a];if(!(e>o-t.getDate()))return t.setDate(t.getDate()+e),t;e-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t})(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),a=m(t),o=m(n);return h(a,e)<=0?h(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var g={"%a":r=>l[r.tm_wday].substring(0,3),"%A":r=>l[r.tm_wday],"%b":r=>c[r.tm_mon].substring(0,3),"%B":r=>c[r.tm_mon],"%C":r=>d((r.tm_year+1900)/100|0,2),"%d":r=>d(r.tm_mday,2),"%e":r=>f(r.tm_mday,2," "),"%g":r=>p(r).toString().substring(2),"%G":p,"%H":r=>d(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":r=>d(r.tm_mday+((r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t})(xr(r.tm_year+1900)?Ir:Ur,r.tm_mon-1),3),"%m":r=>d(r.tm_mon+1,2),"%M":r=>d(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>d(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return d(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&xr(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&xr(r.tm_year%400-1))&&e++}return d(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),g)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),g[s](o)));var w=function(r){var e=wr(r)+1,t=new Array(e);return gr(r,t,0,t.length),t}(i=i.replace(/\0\0/g,"%"));return w.length>e?0:(Yr(w,r),w.length-1)})(r,e,t,n)},Br=function(){var r={a:Vr};function e(r,e){return Br=r.exports,c=Br.N,b(),X=Br.Q,function(r){T.unshift(r)}(Br.O),function(){if(W--,a.monitorRunDependencies?.(W),0==W&&E){var r=E;E=null,r()}}(),Br}if(W++,a.monitorRunDependencies?.(W),a.instantiateWasm)try{return a.instantiateWasm(r,e)}catch(r){f(`Module.instantiateWasm callback failed with error: ${r}`),n(r)}return function(r,e,t,n){return r||"function"!=typeof WebAssembly.instantiateStreaming||$(e)||"function"!=typeof fetch?R(e,t,n):fetch(e,{credentials:"same-origin"}).then((r=>WebAssembly.instantiateStreaming(r,t).then(n,(function(r){return f(`wasm streaming compile failed: ${r}`),f("falling back to ArrayBuffer instantiation"),R(e,t,n)}))))}(l,O,r,(function(r){e(r.instance)})).catch(n),{}}(),zr=r=>(zr=Br.P)(r),Nr=a._malloc=r=>(Nr=a._malloc=Br.R)(r),qr=a._free=r=>(qr=a._free=Br.S)(r),Gr=r=>(Gr=Br.T)(r);function Jr(){function r(){Hr||(Hr=!0,a.calledRun=!0,_||(j(T),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)F(a.postRun.shift());j(C)}()))}W>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)P(a.preRun.shift());j(A)}(),W>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),r()}),1)):r()))}if(a.dynCall_viijii=(r,e,t,n,o,i,u)=>(a.dynCall_viijii=Br.U)(r,e,t,n,o,i,u),a.dynCall_iiiiij=(r,e,t,n,o,i,u)=>(a.dynCall_iiiiij=Br.V)(r,e,t,n,o,i,u),a.dynCall_iiiiijj=(r,e,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=Br.W)(r,e,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(r,e,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=Br.X)(r,e,t,n,o,i,u,s,l,c),E=function r(){Hr||Jr(),Hr||(E=r)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Jr(),o},r.exports=t),o.exports;var r,e,t}()),u=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))},11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4594],{22141:(t,n,e)=>{e.d(n,{$5:()=>E,CN:()=>T,JP:()=>m,KM:()=>C,Mv:()=>S,X4:()=>R,gr:()=>v,qs:()=>N,si:()=>h,xA:()=>w});var r=e(34727),o=e(77690),i=e(29242),l=e(58083),u=e(9093),a=e(38954),f=e(51850),c=e(48353),s=e(9762),p=(e(79258),e(21325)),g=e(28735),y=e(13030),d=e(73354),A=e(65686);const m="Projection may be possible after calling projection.load().";function T(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function R(t,n,e,r,o,i){return O(M.TO_PCPF,y.xs.fromTypedArray(t),x.NORMAL,y.Xm.fromTypedArray(n),e,y.Xm.fromTypedArray(r),o,y.xs.fromTypedArray(i))?i:null}function h(t,n,e,r,o,i){return O(M.FROM_PCPF,y.xs.fromTypedArray(t),x.NORMAL,y.Xm.fromTypedArray(n),e,y.Xm.fromTypedArray(r),o,y.xs.fromTypedArray(i))?i:null}function v(t,n,e,r){return(0,s.projectBuffer)(t,n,0,e,r,0)?e:null}function E(t,n,e,r){return(0,s.projectBuffer)(t,n,0,e,r,0)?e:null}function N(t,n,e){return(0,o.Ge)(b,e),(0,d.b)(n,t,b),(0,r.or)(b)&&(0,d.n)(n,n),n}function C(t,n,e){return(0,o.z0)(b,e),(0,A.t)(n,t,b),(0,r.or)(b)&&(0,d.n)(n,n,4),n}function w(t,n,e,r,o,i){if(!O(M.TO_PCPF,y.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),x.TANGENT,y.Xm.fromTypedArray(n),e,y.Xm.fromTypedArray(r),o,y.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function S(t,n,e,r,o,i){if(!O(M.FROM_PCPF,y.xs.fromTypedArray(t,16),x.TANGENT,y.Xm.fromTypedArray(n),e,y.Xm.fromTypedArray(r),o,y.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}var x,M,B;function F(t,n,e,r,i){switch((0,c.l)(r,e,G,r),t===M.FROM_PCPF&&(0,l.B8)(G,G),n){case x.NORMAL:return(0,o.Ge)(i,G);case x.TANGENT:return(0,o.z0)(i,G)}}function O(t,n,e,r,o,i,l,u){if(!n)return;const f=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,p.q8)(t)||(0,p.KQ)(t)}(o))for(let r=0;r<f;r++)i.getVec(r,_),n.getVec(r,P),(0,a.o)(P,P,F(t,e,_,l,b)),u.setVec(r,P);else for(let o=0;o<f;o++){i.getVec(o,_),n.getVec(o,P);const f=(0,g.jg)(r.get(o,1));let c=Math.cos(f);e===x.TANGENT!=(t===M.TO_PCPF)&&(c=1/c),F(t,e,_,l,b),t===M.TO_PCPF?(b[0]*=c,b[1]*=c,b[2]*=c,b[3]*=c,b[4]*=c,b[5]*=c):(b[0]*=c,b[3]*=c,b[6]*=c,b[1]*=c,b[4]*=c,b[7]*=c),(0,a.o)(P,P,b),(0,a.n)(P,P),u.setVec(o,P)}return u}(B=x||(x={}))[B.NORMAL=0]="NORMAL",B[B.TANGENT=1]="TANGENT",function(t){t[t.TO_PCPF=0]="TO_PCPF",t[t.FROM_PCPF=1]="FROM_PCPF"}(M||(M={}));const _=(0,f.vt)(),P=(0,f.vt)(),G=(0,u.vt)(),b=(0,i.vt)()},27615:(t,n,e)=>{e.d(n,{CK:()=>a,Hq:()=>u,MW:()=>f,TE:()=>c,yJ:()=>s});var r=e(38954),o=e(86738),i=e(95696),l=e(18251);function u(t){return null!=t.origin}function a(t){return u(t.vertexSpace)}function f(t,n){if(!u(t))return null;const[e,r,i]=t.origin;return new o.A({x:e,y:r,z:i,spatialReference:n})}function c(t,n){const{x:e,y:r,z:o,spatialReference:u}=t,a=[e,r,o??0];return"local"===(n?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(u))?new l.A({origin:a}):new i.A({origin:a})}function s(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,r.q)(t.origin,n.origin))}},65686:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>c,l:()=>f,n:()=>u,t:()=>l});var r=e(40876),o=(e(44208),e(53966));function i(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,r=4,o=r){if(t.length/r!==n.length/o)return;const i=t.length/r,l=e[0],u=e[1],a=e[2],f=e[3],c=e[4],s=e[5],p=e[6],g=e[7],y=e[8];let d=0,A=0;for(let e=0;e<i;e++){const e=n[d],i=n[d+1],m=n[d+2],T=n[d+3];t[A]=l*e+f*i+p*m,t[A+1]=u*e+c*i+g*m,t[A+2]=a*e+s*i+y*m,t[A+3]=T,d+=o,A+=r}}function u(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,l=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*l,u=i[e],a=i[e+1],f=i[e+2],c=u*u+a*a+f*f;if(c>0){const t=1/Math.sqrt(c);r[n]=t*u,r[n+1]=t*a,r[n+2]=t*f}}}function a(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,l=n.typedBufferStride;let u=0,a=0;for(let n=0;n<o;n++)t[a]=e*i[u],t[a+1]=e*i[u+1],t[a+2]=e*i[u+2],t[a+3]=e*i[u+3],u+=l,a+=r}function f(t,n,e,r){c(t.typedBuffer,n,e,r,t.typedBufferStride)}function c(t,n,e,o,i=4){const l=Math.min(t.length/i,n.count),u=n.typedBuffer,a=n.typedBufferStride;let f=0,c=0;const s=1/r.Tf;for(let n=0;n<l;n++)t[c]=o*(e*u[f])**s,t[c+1]=o*(e*u[f+1])**s,t[c+2]=o*(e*u[f+2])**s,t[c+3]=o*e*u[f+3],f+=a,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:f,normalize:u,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:l,transformMat3View:i,transformMat4:function(t,n,e,r=4,i=r){if(t.length/r!==n.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const l=t.length/r,u=e[0],a=e[1],f=e[2],c=e[3],s=e[4],p=e[5],g=e[6],y=e[7],d=e[8],A=e[9],m=e[10],T=e[11],R=e[12],h=e[13],v=e[14],E=e[15];let N=0,C=0;for(let e=0;e<l;e++){const e=n[N],o=n[N+1],l=n[N+2],w=n[N+3];t[C]=u*e+s*o+d*l+R*w,t[C+1]=a*e+p*o+A*l+h*w,t[C+2]=f*e+g*o+m*l+v*w,t[C+3]=c*e+y*o+T*l+E*w,N+=i,C+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],l=e[2],u=e[3],a=e[4],f=e[5],c=e[6],s=e[7],p=e[8],g=e[9],y=e[10],d=e[11],A=e[12],m=e[13],T=e[14],R=e[15],h=t.typedBuffer,v=t.typedBufferStride,E=n.typedBuffer,N=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*v,e=t*N,r=E[e],C=E[e+1],w=E[e+2],S=E[e+3];h[n]=o*r+a*C+p*w+A*S,h[n+1]=i*r+f*C+g*w+m*S,h[n+2]=l*r+c*C+y*w+T*S,h[n+3]=u*r+s*C+d*w+R*S}}},Symbol.toStringTag,{value:"Module"}))},72258:(t,n,e)=>{e.d(n,{UR:()=>v,p5:()=>h,xK:()=>x});var r=e(53966),o=e(34727),i=e(83047),l=e(77690),u=e(29242),a=e(58083),f=e(9093),c=e(38954),s=e(51850),p=e(98764),g=e(48353),y=e(65806),d=e(27615),A=e(21325),m=e(73354),T=e(22141);const R=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function h(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,y.g)(n,o,r))return!1;const{origin:i}=e;return(0,c.d)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,y.g)(n,i,o))return!1;const{origin:l}=e,u=_;if(!(0,g.l)(r,l,u,o))return!1;const f=(0,a.B8)(_,u);return null!=f&&((0,c.t)(t,i,f),!0)}function v(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,u=(0,d.Hq)(r)?o:null,s=w(t.spatialReference,e,P.SOURCE_AND_TARGET);if((0,d.yJ)(r,n)&&(!u||(0,a.t2)(u.localMatrix,f.zK))&&S(s)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=E(n,i);if(!(0,g.l)(n,r,M,l))return(0,T.CN)(R(),n,l),null;if(e&&(0,a.lw)(M,M,e.localMatrix),!(0,g.l)(n,o,B,l))return(0,T.CN)(R(),l,n),null;(0,a.B8)(B,B);const u=(0,a.lw)(M,B,M);return C(u,n,i,P.SOURCE_AND_TARGET),N(t,u)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const l=E(t,i);if(!(0,g.l)(t,r,M,l))return(0,T.CN)(R(),t,l),null;e&&(0,a.lw)(M,M,e.localMatrix),C(M,t,i,P.SOURCE);const u=new Float64Array(n.position.length),f=function(t,n,e,r,o){(0,m.t)(r,t,n);const i=new Float64Array(t.length);return(0,T.$5)(r,o,i,e)?i:((0,T.CN)(R(),o,e),null)}(n.position,M,t,u,l);if(!f)return null;const s=function(t,n,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,T.qs)(o,l,i),(0,T.si)(l,t,n,e,r,l)?l:((0,T.CN)(R(),r,n),null)}(f,t,u,l,n.normal,M);if(n.normal&&!s)return null;const p=function(t,n,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,T.KM)(o,l,i),(0,T.Mv)(l,t,n,e,r,l)?l:((0,T.CN)(R(),r,n),null)}(f,t,u,l,n.tangent,M);if(n.tangent&&!p)return null;if(o){const t=(0,c.u)(O,o);(0,m.a)(f,f,t)}return{position:f,normal:s,tangent:p}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=E(n,i);if(!(0,g.l)(n,o,M,u))return(0,T.CN)(R(),n,u),null;const f=1/w(n,i,P.TARGET);(0,a.hs)(M,M,[f,f,f]);const c=(0,a.B8)(B,M),{position:s,normal:p,tangent:y}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,m.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=N(t,e.localMatrix);return(0,m.a)(r.position,r.position,n),r}(t,r,e),d=new Float64Array(s.length),A=function(t,n,e,r,o){const i=(0,T.gr)(t,n,r,o);if(!i)return(0,T.CN)(R(),n,o),null;const l=new Float64Array(i.length);return(0,m.t)(l,i,e),l}(s,n,c,d,u);if(!A)return null;const h=(0,l.Ge)(F,c),v=function(t,n,e,r,o,i,l){if(null==t)return null;const u=l??new Float32Array(t.length);return(0,T.X4)(t,n,e,r,o,u)?((0,m.b)(u,u,i),u):((0,T.CN)(R(),e,o),null)}(p,s,n,d,u,h,p!==t.normal?p:void 0);if(!v&&p)return null;const C=function(t,n,e,r,o,i,l){if(null==t)return null;const u=l??new Float32Array(t.length);return(0,T.xA)(t,n,e,r,o,u)?((0,m.b)(u,u,i,4),u):((0,T.CN)(R(),e,o),null)}(y,s,n,d,u,h,y!==t.tangent?y:void 0);return!C&&y?null:{position:A,normal:v,tangent:C}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const l=w(e,i,P.SOURCE_AND_TARGET),u=r||!S(l)?(0,a.C)(M,n?.localMatrix??f.zK):null;u&&C(u,e,i,P.SOURCE_AND_TARGET);const{position:s,normal:p,tangent:g}=u?N(t,u):t,y=i?.allowBufferReuse,d=y?s:new Float64Array(s.length);let A=s;if(r&&(A=(0,m.a)(d,A,r)),o){const t=(0,c.u)(O,o);A=(0,m.a)(d,A,t)}return{position:A!==t.position||y?A:A.slice(),normal:p!==t.normal||y?p:p?.slice(),tangent:g!==t.tangent||y?g:g?.slice()}}(t,t.vertexSpace,n.origin,e)}}function E(t,n){return n?.useEllipsoid&&(0,A.B3)(t)?p.Y0:(0,p.lO)(t)}function N(t,n){const e=new Float64Array(t.position.length);(0,m.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,T.qs)(t.normal,r,n),o&&t.tangent&&(0,T.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function C(t,n,e,r){const o=w(n,e,r);S(o)||(0,a.hs)(t,t,[o,o,o])}function w(t,n,e){const r=!!(e&P.SOURCE),o=!!(e&P.TARGET),i=n?.sourceUnit,l=n?.targetUnit;if(!i&&!l)return 1;let u=x(i,t);r||!i||S(u)||(R().warn("source unit conversion not supported"),u=1);let a=1/x(l,t);return o||!l||S(a)||(R().warn("target unit conversion not supported"),a=1),u*a}function S(t){return(0,o.Io)(t,1)}function x(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const M=(0,f.vt)(),B=(0,f.vt)(),F=(0,u.vt)(),O=(0,s.vt)(),_=(0,f.vt)();var P,G;(G=P||(P={}))[G.NONE=0]="NONE",G[G.SOURCE=1]="SOURCE",G[G.TARGET=2]="TARGET",G[G.SOURCE_AND_TARGET=3]="SOURCE_AND_TARGET"},74594:(t,n,e)=>{e.d(n,{projectMeshVertexPositions:()=>u});var r=e(9762),o=e(95696),i=e(21325),l=e(72258);function u(t,n){const e=(0,l.UR)(t,o.A.absolute);if(!e)return null;let u=e.position;return(0,i.aI)(t.spatialReference,n)||(u=new Float64Array(e.position.length),(0,r.projectBuffer)(e.position,t.spatialReference,0,u,n,0))?u:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9432],{29432:(e,t,s)=>{s.r(t),s.d(t,{default:()=>E});var n=s(49186),i=s(65864),r=s(21325),o=s(90708),u=s(33032),a=s(58376),l=s(83221),d=s(31464),p=s(68298),c=s(64714),f=s(82832),y=s(95466),m=s(98453),h=s(30524),g=s(98623);const b=r.KK,I={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:r.KK},F={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryBins:!0,supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:f.PC};function S(e){return(0,i.fT)(e)?null!=e.z:!!e.hasZ}function T(e){return(0,i.fT)(e)?null!=e.m:!!e.hasM}class E{constructor(){this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){const t=[],{features:s}=e,i=this._inferLayerProperties(s,e.fields),r=e.fields||[],o=null!=e.hasM?e.hasM:!!i.hasM,a=null!=e.hasZ?e.hasZ:!!i.hasZ,f=!e.spatialReference&&!i.spatialReference,S=f?b:e.spatialReference||i.spatialReference,T=f?I:null,E=e.geometryType||i.geometryType,R=!E;let x=e.objectIdField||i.objectIdField,C=e.timeInfo;const A=new y.A(r);if(!R&&(f&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!E))throw new n.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(!x)throw new n.A("feature-layer:missing-property","objectIdField not set and couldn't be found in the provided fields");if(i.objectIdField&&x!==i.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${x}" doesn't match the field name "${i.objectIdField}", found in the provided fields`}),x=i.objectIdField),x&&!i.objectIdField){const e=A.get(x);e?(x=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):r.unshift({alias:x,name:x,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const e of r){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new n.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===x&&(e.type="esriFieldTypeOID"),!m.m.jsonValues.includes(e.type))throw new n.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});null==e.length&&(e.length=(0,h._b)(e))}const _={};for(const e of r)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,h.lD)(e);void 0!==t&&(_[e.name]=t)}if(C){if(C.startTimeField){const e=A.get(C.startTimeField);e?(C.startTimeField=e.name,e.type="esriFieldTypeDate"):C.startTimeField=null}if(C.endTimeField){const e=A.get(C.endTimeField);e?(C.endTimeField=e.name,e.type="esriFieldTypeDate"):C.endTimeField=null}if(C.trackIdField){const e=A.get(C.trackIdField);e?C.trackIdField=e.name:(C.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:C}}))}C.startTimeField||C.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:C}}),C=null)}const j=A.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??g.n$}:null;this._createDefaultAttributes=(0,c.Vx)(_,x);const w={warnings:t,featureErrors:[],layerDefinition:{...F,drawingInfo:(0,c.F0)(E),templates:(0,c.e2)(_),extent:T,geometryType:E,objectIdField:x,fields:r,hasZ:a,hasM:o,timeInfo:C,dateFieldsTimeReference:j},assignedObjectIds:{}},q={type:"object-id",fieldName:x};if(this._queryEngine=new p.do({fieldsIndex:y.A.fromLayerJSON({fields:r,timeInfo:C,dateFieldsTimeReference:j}),geometryType:E,hasM:o,hasZ:a,featureIdInfo:q,spatialReference:S,featureStore:new l.A({geometryType:E,hasM:o,hasZ:a}),timeInfo:C}),!s?.length)return this._nextObjectId=u.L,w;const D=(0,u.H)(x,s);return this._nextObjectId=D+1,await(0,d.Nk)(s,S),this._loadInitialFeatures(w,s)}async applyEdits(e){const{spatialReference:t,geometryType:s}=this._queryEngine;return await Promise.all([(0,f.$1)(t,s),(0,d.Nk)(e.adds,t),(0,d.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return(0,a.J)(this._queryEngine,e,t.signal)}queryAttributeBins(e,t={}){return this._queryEngine.executeAttributeBinsQuery(e,t.signal)}_inferLayerProperties(e,t){let s,n,r=null,o=null,u=null;for(const t of e){const e=t.geometry;if(null!=e&&(r||(r=(0,i.$B)(e)),o||(o=e.spatialReference),null==s&&(s=S(e)),null==n&&(n=T(e)),r&&o&&null!=s&&null!=n))break}if(t&&t.length){let e=null;t.some((t=>{const s="esriFieldTypeOID"===t.type,n=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,s||n}))&&(u=e.name)}return{geometryType:r,spatialReference:o,objectIdField:u,hasM:n,hasZ:s}}async _loadInitialFeatures(e,t){const{geometryType:s,hasM:n,hasZ:r,objectIdField:u,spatialReference:a,featureStore:l,fieldsIndex:p}=this._queryEngine,c=[],y={type:"object-id",fieldName:u};for(const n of t){if(null!=n.uid&&(e.assignedObjectIds[n.uid]=-1),n.geometry&&s!==(0,i.$B)(n.geometry)){e.featureErrors.push((0,f.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),r=(0,f.MB)(p,t,n.attributes,!0);r?e.featureErrors.push(r):(this._assignObjectId(t,n.attributes,!0),n.attributes=t,null!=n.uid&&(e.assignedObjectIds[n.uid]=n.attributes[u]),null!=n.geometry&&(n.geometry=(0,d.Cv)(n.geometry,n.geometry.spatialReference,a)),c.push(n))}l.addMany((0,o.Di)([],c,s,r,n,y));const{fullExtent:m,timeExtent:h}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=m,h){const{start:t,end:s}=h;e.layerDefinition.timeInfo.timeExtent=[t,s]}return e}async _applyEdits(e){const{adds:t,updates:s,deletes:n}=e,i={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(i,t),s?.length&&this._applyUpdateEdits(i,s),n?.length){for(const e of n)i.deleteResults.push((0,f.bP)(e));this._queryEngine.featureStore.removeManyById(n)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:i}}_applyAddEdits(e,t){const{addResults:s}=e,{geometryType:n,hasM:r,hasZ:u,objectIdField:a,spatialReference:l,featureStore:p,featureIdInfo:c,fieldsIndex:y}=this._queryEngine,m=[];for(const r of t){if(r.geometry&&n!==(0,i.$B)(r.geometry)){s.push((0,f.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),o=(0,f.MB)(y,t,r.attributes);if(o)s.push(o);else{if(this._assignObjectId(t,r.attributes),r.attributes=t,null!=r.uid){const t=r.attributes[a];e.uidToObjectId[r.uid]=t}if(null!=r.geometry){const e=r.geometry.spatialReference??l;r.geometry=(0,d.Cv)((0,f.CR)(r.geometry,e),e,l)}m.push(r),s.push((0,f.bP)(r.attributes[a]))}}p.addMany((0,o.Di)([],m,n,u,r,c))}_applyUpdateEdits({updateResults:e},t){const{geometryType:s,hasM:n,hasZ:r,objectIdField:u,spatialReference:a,featureStore:l,fieldsIndex:p,featureIdInfo:c}=this._queryEngine;for(const y of t){const{attributes:t,geometry:m}=y,h=t?.[u];if(null==h){e.push((0,f.Yx)(`Identifier field ${u} missing`));continue}if(!l.has(h)){e.push((0,f.Yx)(`Feature with object id ${h} missing`));continue}const g=(0,o.oN)(l.getFeature(h),s,r,n);if(null!=m){if(s!==(0,i.$B)(m)){e.push((0,f.Yx)("Incorrect geometry type."));continue}const t=m.spatialReference??a;g.geometry=(0,d.Cv)((0,f.CR)(m,t),t,a)}if(t){const s=(0,f.MB)(p,g.attributes,t);if(s){e.push(s);continue}}l.add((0,o.E2)(g,s,r,n,c)),e.push((0,f.bP)(h))}}_assignObjectId(e,t,s=!1){const n=this._queryEngine.objectIdField;s&&t&&isFinite(t[n])?e[n]=t[n]:e[n]=this._nextObjectId++}}},33032:(e,t,s)=>{s.d(t,{H:()=>i,L:()=>n});const n=1;function i(e,t){let s=0;for(const n of t){const t=n.attributes?.[e];"number"==typeof t&&isFinite(t)&&(s=Math.max(s,t))}return s}},64714:(e,t,s)=>{s.d(t,{F0:()=>u,Vx:()=>d,e2:()=>c,f:()=>f});var n=s(44208),i=s(4718),r=s(99352),o=s(93470);function u(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this${p(t)} = null;`;for(const t in e)s+=`this${p(t)} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new n}catch(s){return()=>({[t]:null,...e})}}function p(e){return a.test(e)?`.${e}`:`["${e}"]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function f(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},67482:(e,t,s)=>{function n(e){return null!=u(e)||null!=o(e)}function i(e){return a.test(e)}function r(e){return u(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let s=!0;if(d&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,n=0;for(;!t&&n<=e.length;)t=!l.test(e[n]),n++;s=!t}}return s}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function u(e){const t=a.exec(e);if(!t?.groups)return null;const s=t.groups,n=+s.year,i=+s.month-1,r=+s.day,o=+(s.hours??"0"),u=+(s.minutes??"0"),l=+(s.seconds??"0");if(o>23)return null;if(u>59)return null;if(l>59)return null;const d=s.ms??"0",p=d?+d.padEnd(3,"0").slice(0,3):0;let c;if(s.isUTC||!s.offsetSign)c=Date.UTC(n,i,r,o,u,l,p);else{const e=+s.offsetHours,t=+s.offsetMinutes;c=6e4*("+"===s.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,i,r,o,u,l,p)}return Number.isNaN(c)?null:c}s.d(t,{Br:()=>i,Cq:()=>n,_U:()=>r});const a=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,l=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,d=!Number.isNaN(new Date("technology 10").getTime())},82832:(e,t,s)=>{s.d(t,{$1:()=>h,CR:()=>m,MB:()=>c,PC:()=>g,Yx:()=>a,bP:()=>d});var n=s(67482),i=s(21325),r=s(30524);class o{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function a(e){return new u(e)}class l{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new l(e)}const p=new Set;function c(e,t,s,n=!1){p.clear();for(const i in s){const o=e.get(i);if(!o)continue;const u=f(o,s[i]);if(p.add(o.name),o&&(n||o.editable)){const e=(0,r.CJ)(o,u);if(e)return a((0,r.uo)(e,o,u));t[o.name]=u}}for(const t of e.requiredFields??[])if(!p.has(t.name))return a(`missing required field "${t.name}"`);return null}function f(e,t){let s=t;return(0,r.WA)(e)&&"string"==typeof t?s=parseFloat(t):(0,r.yM)(e)&&null!=t&&"string"!=typeof t?s=String(t):(0,r.vE)(e)&&"string"==typeof t&&(s=(0,n._U)(t)),(0,r.WX)(s)}let y;function m(e,t){if(!e||!(0,i.fn)(t))return e;if("rings"in e||"paths"in e){if(null==y)throw new TypeError("geometry engine not loaded");return y.simplify(t,e)}return e}async function h(e,t){!(0,i.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==y&&(y=await Promise.all([s.e(9930),s.e(7559)]).then(s.bind(s,47559))),y}()}const g={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},93470:(e,t,s)=>{s.d(t,{Cb:()=>r,HW:()=>d,JR:()=>i,JZ:()=>a,WR:()=>u,b6:()=>p,fT:()=>n,nC:()=>l,yM:()=>o});const n=[252,146,31,255],i=[153,153,153,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n},u={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},d={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|