@arcgis/core 5.0.0-next.67 → 5.0.0-next.69
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/Ground.d.ts +3 -4
- package/WebDocument2D.d.ts +1 -1
- package/WebLinkChart.d.ts +2 -0
- package/analysis/ElevationProfile/ElevationProfileLineQuery.d.ts +3 -4
- package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +9 -6
- package/analysis/ElevationProfile/ElevationProfileLineViewOptions.js +1 -1
- package/analysis/types.d.ts +1 -0
- package/applications/Components/analysisUtils.d.ts +1 -3
- package/applications/Components/arcadeFeatureUtils.d.ts +1 -1
- package/applications/ExperienceBuilder/sketchUtils.d.ts +2 -2
- package/applications/KnowledgeStudio/reshape.d.ts +2 -2
- package/applications/SceneViewer/sceneViewerUtils.d.ts +11 -0
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/batchExec.js +1 -1
- package/arcade/compilerUtils.js +1 -1
- package/arcade/featureset/actions/SpatialFilter.js +1 -1
- package/arcade/geometry/unitConversion.js +1 -1
- package/arcade/treeAnalysis.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
- package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/01d7542d85a453384cf1.js +1 -0
- package/assets/esri/core/workers/chunks/{251eb6e00f99a816d55c.js → 0326314947734b8e640a.js} +1 -1
- package/assets/esri/core/workers/chunks/04176244b0a3539c9681.js +1 -0
- package/assets/esri/core/workers/chunks/{168ec8fca2702617a543.js → 09dfec3e097ebbef6a89.js} +1 -1
- package/assets/esri/core/workers/chunks/{942fad4ec96295672ce8.js → 10e474d664b20adcd917.js} +1 -1
- package/assets/esri/core/workers/chunks/12f9a55253084a910b2e.js +1 -0
- package/assets/esri/core/workers/chunks/{0629087bd5bb8048493e.js → 14dedd80fb797303f91f.js} +1 -1
- package/assets/esri/core/workers/chunks/{81d89107ff82604a3ea0.js → 1b445981fbc8373f4dd8.js} +1 -1
- package/assets/esri/core/workers/chunks/{794960ec36e11f4416c2.js → 1d1e25bb61eeeee8ee94.js} +1 -1
- package/assets/esri/core/workers/chunks/{6ba3c2b9f699d94d62b8.js → 1ec1a1997b5577619040.js} +1 -1
- package/assets/esri/core/workers/chunks/2085084324cd5a81783f.js +1 -0
- package/assets/esri/core/workers/chunks/2c2c0f66cffc521df736.js +1 -0
- package/assets/esri/core/workers/chunks/2dd347aa2a061d536e69.js +1 -0
- package/assets/esri/core/workers/chunks/2dfa7abf2d39fa5a3874.js +1 -0
- package/assets/esri/core/workers/chunks/{6cb44cd319cb6c2539c8.js → 2e2c47f8a80ee9234350.js} +1 -1
- package/assets/esri/core/workers/chunks/322085d63719da6e443c.js +1 -0
- package/assets/esri/core/workers/chunks/{76086517591d0eb35156.js → 34a2e0462eb05986cdd1.js} +1 -1
- package/assets/esri/core/workers/chunks/{a6dcd13c792b6538ac50.js → 35593a9790818b689455.js} +1 -1
- package/assets/esri/core/workers/chunks/3a04153ca9d8e4f01185.js +1 -0
- package/assets/esri/core/workers/chunks/{4e9a8fce55cad841c731.js → 3b25f5d9c8f78bb6e011.js} +1 -1
- package/assets/esri/core/workers/chunks/3e7ea06b342e33bc48a5.js +1 -0
- package/assets/esri/core/workers/chunks/3ed317900f0edf635508.js +1 -0
- package/assets/esri/core/workers/chunks/401ce5cb98fa14c1a725.js +1 -0
- package/assets/esri/core/workers/chunks/4319b89cfa02894a8cae.js +1 -0
- package/assets/esri/core/workers/chunks/{7bed14d9bcd7fc5e2eec.js → 4bcd74951477e8977ba1.js} +1 -1
- package/assets/esri/core/workers/chunks/4c04c54330b693892cfc.js +314 -0
- package/assets/esri/core/workers/chunks/{687d2b761dc5b5cf0c31.js → 4d4d71d24c1a9cb342b8.js} +1 -1
- package/assets/esri/core/workers/chunks/4fa230dc6e5e87b0dec1.js +1 -0
- package/assets/esri/core/workers/chunks/50f03813fba4b752ca9f.js +1 -0
- package/assets/esri/core/workers/chunks/{abc236e99b52be1c83b9.js → 52a14266fe239b95c5ce.js} +1 -1
- package/assets/esri/core/workers/chunks/53b5c77832df7df4d4e3.js +1 -0
- package/assets/esri/core/workers/chunks/{34178ace79e8dea3567d.js → 562cddaf63985e53ee6e.js} +1 -1
- package/assets/esri/core/workers/chunks/563933a84fc9b0e021f6.js +1 -0
- package/assets/esri/core/workers/chunks/58b3a776ef129f7f86dc.js +1 -0
- package/assets/esri/core/workers/chunks/58e8d41dcc450e6427c9.js +1 -0
- package/assets/esri/core/workers/chunks/{6599cc702a46f81a5634.js → 5dd5be91038df8902dc4.js} +1 -1
- package/assets/esri/core/workers/chunks/{49a1b7f700b8a42de817.js → 60c7f896f2246a8aa6d7.js} +19 -19
- package/assets/esri/core/workers/chunks/60f363ee2add089e8f0b.js +1 -0
- package/assets/esri/core/workers/chunks/68074a484d7f9bc713c0.js +1 -0
- package/assets/esri/core/workers/chunks/6acfa51b81e6f4255118.js +1 -0
- package/assets/esri/core/workers/chunks/{3fe7be535affae31de7e.js → 6b85a8776ec2beff63cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{0dc3a04ce717b7ddd957.js → 6c9dac4a869742cc2718.js} +1 -1
- package/assets/esri/core/workers/chunks/6df484faf54e90a6cc77.js +1 -0
- package/assets/esri/core/workers/chunks/6ea6ad894ac634aa4391.js +1 -0
- package/assets/esri/core/workers/chunks/6f8098f9fe233833245a.js +1 -0
- package/assets/esri/core/workers/chunks/75fd2ef1236a9364ca7f.js +1 -0
- package/assets/esri/core/workers/chunks/7be9bbae23895d1cfa92.js +1 -0
- package/assets/esri/core/workers/chunks/7ea48661f1087d06aa41.js +1 -0
- package/assets/esri/core/workers/chunks/{47e5149765beee46f208.js → 7ee68f67f9cc48a328f0.js} +1 -1
- package/assets/esri/core/workers/chunks/{e5aac523c37d906eece6.js → 827277e5da652bcecaf2.js} +1 -1
- package/assets/esri/core/workers/chunks/866477acdf03b8a40bc9.js +1 -0
- package/assets/esri/core/workers/chunks/8e83c133b201b9b61e70.js +1 -0
- package/assets/esri/core/workers/chunks/9086a4933d3d3d9ffa72.js +1 -0
- package/assets/esri/core/workers/chunks/94174d40de39dbe7d0bf.js +1 -0
- package/assets/esri/core/workers/chunks/{dd99b77a7c0a052507bb.js → 9d88b4ba8e511da64583.js} +3 -3
- package/assets/esri/core/workers/chunks/9f34cf024231f574009c.js +1 -0
- package/assets/esri/core/workers/chunks/{e705d041f6c1632bfbcc.js → a10c6dd3bb8b3602de68.js} +1 -1
- package/assets/esri/core/workers/chunks/a64cd02ca959d511101c.js +1 -0
- package/assets/esri/core/workers/chunks/a808be466812db51813d.js +1 -0
- package/assets/esri/core/workers/chunks/{6b4a24248182245167ca.js → a931515a2569713e743b.js} +1 -1
- package/assets/esri/core/workers/chunks/a95e28ade258b144cbb5.js +1 -0
- package/assets/esri/core/workers/chunks/adc68e2c6d2698a52bfe.js +1 -0
- package/assets/esri/core/workers/chunks/{0f8149fdcf0adeca268e.js → b28e0b89603d8b03f9e1.js} +1 -1
- package/assets/esri/core/workers/chunks/b5e4a36784d598ae6679.js +1 -0
- package/assets/esri/core/workers/chunks/{204d738c8b651314ae64.js → b899b4e7979c13b99526.js} +1 -1
- package/assets/esri/core/workers/chunks/bb4574a87ca21e719f0d.js +1 -0
- package/assets/esri/core/workers/chunks/{07639f406b71bb49ffd6.js → bdbb5b33f0f49661bf6d.js} +1 -1
- package/assets/esri/core/workers/chunks/bf05164b7a3e4f31e9db.js +1 -0
- package/assets/esri/core/workers/chunks/c042269586921e337be9.js +1 -0
- package/assets/esri/core/workers/chunks/c7391b0b5a9c916a53f7.js +1 -0
- package/assets/esri/core/workers/chunks/{43d28c6509c21b8917a8.js → ca7523c14d81c470e92e.js} +1 -1
- package/assets/esri/core/workers/chunks/d0ae8752419d5b761190.js +1 -0
- package/assets/esri/core/workers/chunks/d445e9399fe4ca3d2a50.js +1 -0
- package/assets/esri/core/workers/chunks/d7683a95775c9f401a7e.js +1 -0
- package/assets/esri/core/workers/chunks/{9d6945cda99d14af83ac.js → d7d9656b990ce8be2152.js} +1 -1
- package/assets/esri/core/workers/chunks/dbfb00fb28b8b9f687a1.js +1 -0
- package/assets/esri/core/workers/chunks/df4a0af329ce94a47a7b.js +1 -0
- package/assets/esri/core/workers/chunks/e071b912539304564b69.js +1 -0
- package/assets/esri/core/workers/chunks/e10d6e511921394474ca.js +1 -0
- package/assets/esri/core/workers/chunks/e4b6aa8f67c2bd285020.js +1 -0
- package/assets/esri/core/workers/chunks/e6ca02f98f855024f74b.js +1 -0
- package/assets/esri/core/workers/chunks/{892157696e8f9e38c472.js → e6e837e43b9348050832.js} +1 -1
- package/assets/esri/core/workers/chunks/{d3325ed8d224e2350db7.js → e8a3ad00936f2ccaf362.js} +1 -1
- package/assets/esri/core/workers/chunks/ef7063ee790d2d64d4b2.js +1 -0
- package/assets/esri/core/workers/chunks/{b65fcfde62d49de1fa54.js → ef977be20a647aeded0a.js} +1 -1
- package/assets/esri/core/workers/chunks/efb631371b6bb3f043bb.js +1 -0
- package/assets/esri/core/workers/chunks/{0f5693541111fcae0c2f.js → f0914715e90e43466f8c.js} +1 -1
- package/assets/esri/core/workers/chunks/{ab71865b94022e78035c.js → f92845eb7df1804fcd6d.js} +1 -1
- package/assets/esri/core/workers/chunks/{bfc063d4431bfa162160.js → fd09f38fb4d99bf34988.js} +1 -1
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +108 -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/chunks/GaussianSplat.glsl.js +2 -2
- package/chunks/GaussianSplatDepthComposition.glsl.js +4 -5
- package/chunks/HUDMaterial.glsl.js +45 -47
- package/chunks/LineMarker.glsl.js +33 -34
- package/chunks/PointRenderer.glsl.js +6 -6
- package/chunks/RibbonLine.glsl.js +62 -54
- package/chunks/boundedPlane.js +1 -1
- package/chunks/libtess-f32.js +1 -1
- package/chunks/libtess-f64.js +1 -1
- package/config.js +1 -1
- package/core/Collection.d.ts +3 -2
- package/core/Identifiable.d.ts +1 -3
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/accessorSupport/types.d.ts +0 -8
- package/core/compilerUtils.js +1 -1
- package/core/promiseUtils.d.ts +1 -1
- package/core/reactiveUtils.d.ts +2 -2
- package/core/typedArrayUtil.js +1 -1
- package/core/units.d.ts +8 -2
- package/core/units.js +1 -1
- package/core/workers/loaderConfig.js +1 -1
- package/editing/sharedTemplates/SharedTemplate.js +1 -1
- package/geometry/HeightModelInfo.d.ts +3 -3
- package/geometry/SpatialReference.d.ts +2 -2
- package/geometry/libtess.js +1 -1
- package/geometry/support/MeshTexture.js +1 -1
- package/geometry/support/aaBoundingRect.js +1 -1
- package/geometry/support/boundedPlane.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/meshUtils/External.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/imageutils.js +1 -1
- package/geometry/support/meshUtils/loadExternal.js +1 -1
- package/geometry/support/meshUtils/types.d.ts +2 -2
- package/geometry/support/rotate.js +1 -1
- package/geometry/types.d.ts +2 -0
- package/identity/IdentityManagerBase.d.ts +4 -4
- package/interfaces.d.ts +2937 -2955
- package/kernel.js +1 -1
- package/layers/BaseElevationLayer.d.ts +3 -4
- package/layers/BuildingSceneLayer.d.ts +1 -1
- package/layers/ElevationLayer.d.ts +3 -4
- package/layers/FeatureLayer.d.ts +12 -11
- package/layers/FeatureLayer.js +1 -1
- package/layers/GroupLayer.d.ts +3 -3
- package/layers/ImageryLayer.d.ts +3 -3
- package/layers/ImageryTileLayer.d.ts +3 -4
- package/layers/Layer.d.ts +4 -4
- package/layers/LineOfSightLayer.d.ts +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/MapImageLayer.d.ts +7 -8
- package/layers/MediaLayer.d.ts +3 -3
- package/layers/OrientedImageryLayer.d.ts +3 -3
- package/layers/ParquetLayer.d.ts +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/RouteLayer.d.ts +2 -3
- package/layers/SceneLayer.d.ts +167 -3
- package/layers/SceneLayer.js +1 -1
- package/layers/StreamLayer.d.ts +3 -3
- package/layers/SubtypeGroupLayer.d.ts +3 -3
- package/layers/WCSLayer.d.ts +3 -3
- package/layers/buildingSublayers/BuildingGroupSublayer.d.ts +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/dehydratedFeatureComparison.js +1 -1
- package/layers/graphics/dehydratedFeatures.js +1 -1
- package/layers/graphics/hydratedFeatures.js +1 -1
- package/layers/graphics/sources/ParquetSource.d.ts +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/mixins/SceneService.d.ts +2 -2
- package/layers/orientedImagery/queries.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.d.ts +2 -2
- package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
- package/layers/orientedImagery/transformations/types.d.ts +1 -1
- package/layers/raster/datasets/pixelReader.d.ts +1 -7
- package/layers/raster/functions/changeDetectionUtils.js +1 -1
- package/layers/raster/functions/creators/createBandIndexFunctions.d.ts +29 -29
- package/layers/raster/functions/customBandIndexUtils.js +1 -1
- package/layers/raster/functions/focalStatUtils.js +1 -1
- package/layers/raster/functions/pixelTransformUtils.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/support/BuildingFilterMode.d.ts +3 -1
- package/layers/support/BuildingFilterMode.js +1 -1
- package/layers/support/BuildingFilterModeSolid.js +1 -1
- package/layers/support/BuildingFilterModeWireFrame.js +1 -1
- package/layers/support/BuildingFilterModeXRay.js +1 -1
- package/layers/support/CodedValue.d.ts +1 -1
- package/layers/support/ControlPoint.d.ts +6 -20
- package/layers/support/ControlPointsGeoreference.d.ts +2 -1
- package/layers/support/ElevationSampler.d.ts +2 -2
- package/layers/support/ElevationSampler.js +1 -1
- package/layers/support/FeatureReductionBinning.d.ts +4 -4
- package/layers/support/FeatureReductionBinning.js +1 -1
- package/layers/support/FeatureReductionSelection.d.ts +3 -3
- package/layers/support/FeatureReductionSelection.js +1 -1
- package/layers/support/Field.d.ts +1 -2
- package/layers/support/ParquetGeometryEncodingLocation.d.ts +6 -4
- package/layers/support/ParquetGeometryEncodingLocation.js +1 -1
- package/layers/support/ParquetGeometryEncodingWkb.d.ts +6 -4
- package/layers/support/ParquetGeometryEncodingWkb.js +1 -1
- package/layers/support/PixelBlock.d.ts +11 -3
- package/layers/support/RangeDomain.d.ts +2 -1
- package/layers/support/SceneServiceTimeInfo.js +5 -0
- package/layers/support/SpriteSource.d.ts +1 -0
- package/layers/support/Sublayer.d.ts +17 -16
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/domains.js +1 -1
- package/layers/support/featureReductionUtils.js +1 -1
- package/layers/support/rasterFunctionUtils.d.ts +30 -30
- package/layers/support/types.d.ts +101 -1
- package/layers/types.d.ts +12 -1
- package/layers/wms/types.d.ts +0 -4
- package/networks/CircuitManager.d.ts +5 -5
- package/networks/Network.d.ts +5 -5
- package/networks/UtilityNetwork.d.ts +2 -2
- package/networks/support/TopologyValidationJobInfo.js +1 -1
- package/networks/support/TraceJobInfo.js +1 -1
- package/package.json +2 -2
- package/popup/content/types.d.ts +1 -3
- package/portal/PortalItem.d.ts +8 -8
- package/portal/PortalItemResource.d.ts +2 -2
- package/portal/PortalUser.d.ts +3 -3
- package/portal/support/resourceUtils.d.ts +3 -3
- package/portal/types.d.ts +6 -6
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/renderers/support/pointCloud/types.d.ts +1 -0
- package/renderers/support/raster/types.d.ts +1 -0
- package/renderers/support/rendererConversion.js +1 -1
- package/renderers/types.d.ts +2 -0
- package/renderers/visualVariables/support/visualVariableUtils.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.d.ts +0 -2
- package/rest/layerSources/DynamicDataLayer.d.ts +102 -0
- package/rest/layerSources/DynamicDataLayer.js +5 -0
- package/{layers/support/source/MapLayerSource.d.ts → rest/layerSources/DynamicMapLayer.d.ts} +4 -4
- package/rest/layerSources/DynamicMapLayer.js +5 -0
- package/rest/layerSources/JoinTableDataSource.d.ts +75 -0
- package/rest/layerSources/JoinTableDataSource.js +5 -0
- package/{layers/support/source → rest/layerSources}/QueryTableDataSource.d.ts +8 -7
- package/rest/layerSources/QueryTableDataSource.js +5 -0
- package/{layers/support/source → rest/layerSources}/RasterDataSource.d.ts +2 -2
- package/rest/layerSources/RasterDataSource.js +5 -0
- package/{layers/support/source → rest/layerSources}/TableDataSource.d.ts +2 -2
- package/rest/layerSources/TableDataSource.js +5 -0
- package/rest/layerSources/utils.js +5 -0
- package/rest/print.js +1 -1
- package/rest/query/executeQuery.js +1 -1
- package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
- package/rest/support/JobInfo.js +1 -1
- package/rest/support/Query.js +1 -1
- package/rest/support/RelationshipQuery.js +1 -1
- package/rest/support/ServiceAreaParameters.js +1 -1
- package/rest/support/types.d.ts +0 -4
- package/smartMapping/heuristics/binLevel.d.ts +2 -2
- package/smartMapping/heuristics/scaleRange.d.ts +2 -2
- package/smartMapping/heuristics/sizeRange.d.ts +2 -2
- package/smartMapping/heuristics/sizeRange.js +1 -1
- package/smartMapping/heuristics/types.d.ts +3 -3
- package/smartMapping/labels/bins.d.ts +2 -2
- package/smartMapping/labels/clusters.d.ts +2 -2
- package/smartMapping/renderers/color.d.ts +14 -14
- package/smartMapping/renderers/dotDensity.d.ts +2 -2
- package/smartMapping/renderers/heatmap.d.ts +4 -4
- package/smartMapping/renderers/location.d.ts +2 -2
- package/smartMapping/renderers/opacity.d.ts +2 -2
- package/smartMapping/renderers/pieChart.d.ts +4 -4
- package/smartMapping/renderers/predominance.d.ts +2 -2
- package/smartMapping/renderers/relationship.d.ts +4 -4
- package/smartMapping/renderers/size.d.ts +15 -15
- package/smartMapping/renderers/support/rendererUtils.d.ts +2 -2
- package/smartMapping/renderers/support/utils.js +1 -1
- package/smartMapping/renderers/type.d.ts +4 -4
- package/smartMapping/renderers/univariateColorSize.d.ts +4 -4
- package/smartMapping/statistics/classBreaks.d.ts +2 -2
- package/smartMapping/statistics/heatmapStatistics.d.ts +2 -2
- package/smartMapping/statistics/histogram.d.ts +2 -2
- package/smartMapping/statistics/predominantCategories.d.ts +2 -2
- package/smartMapping/statistics/summaryStatistics.d.ts +2 -2
- package/smartMapping/statistics/summaryStatisticsForAge.d.ts +2 -2
- package/smartMapping/statistics/support/ageUtils.d.ts +2 -2
- package/smartMapping/statistics/support/statsWorker.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/smartMapping/statistics/types.d.ts +7 -7
- package/smartMapping/statistics/uniqueValues.d.ts +2 -2
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
- package/smartMapping/support/utils.js +1 -1
- package/smartMapping/symbology/color.d.ts +8 -8
- package/smartMapping/symbology/dotDensity.d.ts +6 -6
- package/smartMapping/symbology/flow.d.ts +6 -6
- package/smartMapping/symbology/heatmap.d.ts +6 -6
- package/smartMapping/symbology/location.d.ts +2 -2
- package/smartMapping/symbology/pieChart.d.ts +6 -6
- package/smartMapping/symbology/predominance.d.ts +6 -6
- package/smartMapping/symbology/relationship.d.ts +6 -6
- package/smartMapping/symbology/size.d.ts +2 -2
- package/smartMapping/symbology/support/colorRamps.d.ts +2 -2
- package/smartMapping/symbology/type.d.ts +6 -6
- package/support/popupUtils.d.ts +2 -2
- package/support/revision.js +1 -1
- package/symbols/LineSymbol3D.d.ts +2 -2
- package/symbols/PointSymbol3D.d.ts +2 -2
- package/symbols/PolygonSymbol3D.d.ts +2 -2
- package/symbols/patterns/LinePattern3D.d.ts +8 -0
- package/symbols/patterns/LineStylePattern3D.d.ts +1 -2
- package/symbols/patterns/Pattern3D.d.ts +9 -0
- package/symbols/patterns/StylePattern3D.d.ts +1 -2
- package/symbols/support/ElevationInfo.d.ts +2 -2
- package/symbols/support/IconSymbol3DLayerResource.d.ts +1 -1
- package/symbols/support/defaults.js +1 -1
- package/symbols/support/defaults3D.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/symbolLayerUtils3D.js +1 -1
- package/symbols/support/symbolUtils.js +1 -1
- package/symbols/support/utils.js +1 -1
- package/symbols/types.d.ts +7 -0
- package/unionTypes.d.ts +13 -13
- package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
- package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +16 -11
- package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
- package/views/2d/analysis/types.d.ts +1 -0
- package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
- package/views/2d/engine/webgl/TextureUploadManager.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/input/handlers/DoubleTapDragZoom.js +1 -1
- package/views/2d/input/handlers/KeyZoom.js +1 -1
- package/views/2d/layers/BaseLayerView2D.d.ts +0 -5
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/StreamLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/support/MediaLayerInteractionOptions.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/utils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +16 -11
- package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +0 -2
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/types.d.ts +1 -0
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/environment/CloudsParameters.js +1 -1
- package/views/3d/environment/CloudsRenderer.js +1 -1
- package/views/3d/environment/SceneViewEnvironment.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +1 -3
- package/views/3d/glTF/internal/Resource.js +1 -1
- package/views/3d/glTF/internal/fillDefaults.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/interactive/editingTools/isSupportedObjectUtils.js +1 -1
- package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
- package/views/3d/interactive/editingTools/transform/isSupportedGraphic.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.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/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/LabelInfo.js +1 -1
- package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
- package/views/3d/layers/graphics/lineUtils.js +1 -1
- package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
- package/views/3d/layers/graphics/pipeline/symbolization/primitiveObjectUtils.js +1 -1
- package/views/3d/layers/graphics/primitiveObjectSymbolUtils.js +1 -1
- package/views/3d/layers/i3s/BuildingFilterUtil.js +1 -1
- package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
- package/views/3d/layers/i3s/I3SNode.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
- package/views/3d/layers/i3s/SphereCone.js +5 -0
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/layers/support/MediaLayerInteractionOptions.d.ts +4 -0
- package/views/3d/layers/support/edgeUtils.js +1 -1
- package/views/3d/layers/support/featureReference.js +1 -1
- package/views/3d/layers/support/featureTileQuery3D.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/buffer/glUtil.js +1 -1
- package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +8 -8
- package/views/3d/webgl-engine/collections/Component/Transform.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeFragmentNormals.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/PositionOutsideClipSpace.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileBackground.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/LocalOriginManager.js +1 -1
- package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/LegacyTransform.js +5 -0
- package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +4 -4
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +8 -8
- package/views/SceneView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/View.js +1 -1
- package/views/View2D.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileIndicatorPointVisualization.js +5 -0
- package/views/analysis/ElevationProfile/ElevationProfileLineComputation.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/analysis/ElevationProfile/constants.js +1 -1
- package/views/analysis/types.d.ts +4 -0
- package/views/draw/Draw.js +1 -1
- package/views/input/ViewEvents.js +1 -1
- package/views/input/types.d.ts +2 -4
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/interactive/snapping/featureSources/snappingCandidateElevationAlignment.js +1 -1
- package/views/interactive/snapping/featureSources/snappingCandidateElevationFilter.js +1 -1
- package/views/interactive/snapping/featureSources/symbologySnappingCandidates.js +1 -1
- package/views/layers/CatalogLayerView.d.ts +1 -4
- package/views/layers/DimensionLayerView.d.ts +4 -6
- package/views/layers/DimensionLayerViewMixin.d.ts +0 -97
- package/views/layers/LineOfSightLayerView.d.ts +4 -6
- package/views/layers/LineOfSightLayerViewMixin.d.ts +0 -77
- package/views/layers/StreamLayerView.d.ts +31 -2
- package/views/support/PromiseQueue.js +1 -1
- package/views/support/WebAssemblyRequirements.js +5 -0
- package/views/support/WebGLRequirements.js +1 -1
- package/views/support/screenUtils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/Uniform.js +1 -1
- package/views/webgl/Util.js +1 -1
- package/webdoc/support/SlideThumbnail.d.ts +6 -3
- package/webdoc/support/SlideThumbnail.js +1 -1
- package/webscene/Slide.d.ts +2 -2
- package/webscene/spec-certification/api.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +2 -2
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.d.ts +2 -2
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
- package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +7 -0
- package/widgets/BatchAttributeForm/inputs/TextElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/textInputElementUtils.js +5 -0
- package/widgets/BatchAttributeForm/templates/TextElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.d.ts +2 -2
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/Directions/DirectionsViewModel.d.ts +20 -4
- package/widgets/Directions/DirectionsViewModel.js +1 -1
- package/widgets/Directions.d.ts +2 -3
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +2 -2
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +2 -2
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.d.ts +2 -2
- package/widgets/ElevationProfile/support/HoveredPoints.js +1 -1
- package/widgets/ElevationProfile/types.d.ts +3 -4
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/Feature/types.d.ts +1 -5
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/Grid/types.d.ts +0 -2
- package/widgets/FeatureTable/support/types.d.ts +8 -8
- package/widgets/Features/FeaturesViewModel.d.ts +3 -3
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.d.ts +2 -2
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
- package/widgets/Popup/types.d.ts +0 -2
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/ShadowCast/ShadowCastVisibleElements.d.ts +2 -0
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/OperationHandle.js +1 -1
- package/widgets/Sketch/types.d.ts +2 -2
- package/widgets/Slice/SliceViewModel.d.ts +2 -2
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/Spinner/SpinnerViewModel.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/support/AnalysisViewModelMixin.js +5 -0
- package/widgets/support/AnchorElementViewModel.js +1 -1
- package/widgets/support/InteractiveToolViewModelMixin.js +5 -0
- package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/055fdc5134d54174444d.js +0 -316
- package/assets/esri/core/workers/chunks/058fb2cd6387acfd458c.js +0 -1
- package/assets/esri/core/workers/chunks/08359ae020238a565955.js +0 -1
- package/assets/esri/core/workers/chunks/0ae018098906d6a88904.js +0 -1
- package/assets/esri/core/workers/chunks/0cd3acfbf9ee991bdab4.js +0 -1
- package/assets/esri/core/workers/chunks/0e5cd0cf6ab7cb37d723.js +0 -1
- package/assets/esri/core/workers/chunks/0ee407b8db5c07a00d82.js +0 -1
- package/assets/esri/core/workers/chunks/10373885604655f673df.js +0 -1
- package/assets/esri/core/workers/chunks/119822a646834c1cebc0.js +0 -1
- package/assets/esri/core/workers/chunks/13d61d34e55c80e4ecdf.js +0 -1
- package/assets/esri/core/workers/chunks/17dea03fc4eb414f0022.js +0 -1
- package/assets/esri/core/workers/chunks/1967239713b58dccfd81.js +0 -1
- package/assets/esri/core/workers/chunks/1c350a2c4014146dbcd9.js +0 -1
- package/assets/esri/core/workers/chunks/2266a8f2c2ec37c19bb4.js +0 -1
- package/assets/esri/core/workers/chunks/226acd251ad7d7ee3b57.js +0 -1
- package/assets/esri/core/workers/chunks/22b07c54a5fcc27771b0.js +0 -1
- package/assets/esri/core/workers/chunks/22ca80f491e070b2a5e7.js +0 -1
- package/assets/esri/core/workers/chunks/2402d305a77fef4694a0.js +0 -1
- package/assets/esri/core/workers/chunks/27f096c434f049b8df01.js +0 -1
- package/assets/esri/core/workers/chunks/3371935a4fd6346d3a17.js +0 -1
- package/assets/esri/core/workers/chunks/3c3d311b88f5400951ef.js +0 -1
- package/assets/esri/core/workers/chunks/3c4f8597f602779174f1.js +0 -1
- package/assets/esri/core/workers/chunks/3da53c017f9c5d2d778a.js +0 -1
- package/assets/esri/core/workers/chunks/4773a358832f87963766.js +0 -1
- package/assets/esri/core/workers/chunks/492515860198f38dd698.js +0 -1
- package/assets/esri/core/workers/chunks/4f33a2ecb154a2c2449c.js +0 -1
- package/assets/esri/core/workers/chunks/4f6f181ee83b4d484518.js +0 -1
- package/assets/esri/core/workers/chunks/52726458f590e726d52c.js +0 -1
- package/assets/esri/core/workers/chunks/536c492fdda30f2f1288.js +0 -1
- package/assets/esri/core/workers/chunks/600e2e6b51e2fb9c598c.js +0 -1
- package/assets/esri/core/workers/chunks/62b28f73f814413c10fc.js +0 -1
- package/assets/esri/core/workers/chunks/63b8cd7d5cafbaeed894.js +0 -1
- package/assets/esri/core/workers/chunks/6925f09d44cc38480d53.js +0 -1
- package/assets/esri/core/workers/chunks/7f4fa2f2e85863d3cfb9.js +0 -1
- package/assets/esri/core/workers/chunks/8f4c480c418eba299c2b.js +0 -1
- package/assets/esri/core/workers/chunks/990341f7c47bd656c782.js +0 -1
- package/assets/esri/core/workers/chunks/a3836f6a93924ee4816e.js +0 -1
- package/assets/esri/core/workers/chunks/ab520fd1ae917daf07d8.js +0 -1
- package/assets/esri/core/workers/chunks/acc7ff44bfcb5c195114.js +0 -1
- package/assets/esri/core/workers/chunks/b25a131c04092c3ab75d.js +0 -1
- package/assets/esri/core/workers/chunks/b7960ab9a9da7f88184c.js +0 -1
- package/assets/esri/core/workers/chunks/b9909264cfea68d5f2a1.js +0 -1
- package/assets/esri/core/workers/chunks/ba7f57788847cc0f68df.js +0 -1
- package/assets/esri/core/workers/chunks/bb08359610a41e304b55.js +0 -1
- package/assets/esri/core/workers/chunks/bf06250be7a7a36306b1.js +0 -1
- package/assets/esri/core/workers/chunks/bfbbcaa1fb04f17fc869.js +0 -1
- package/assets/esri/core/workers/chunks/d30cfc5fa302cc08d862.js +0 -1
- package/assets/esri/core/workers/chunks/d75adfd4acb3c92accc9.js +0 -1
- package/assets/esri/core/workers/chunks/da99fd0d3106dd357743.js +0 -1
- package/assets/esri/core/workers/chunks/de71db3b0fb947b13c97.js +0 -1
- package/assets/esri/core/workers/chunks/dfbbead4c24d13682891.js +0 -1
- package/assets/esri/core/workers/chunks/e4ba850e8344ac2c5fc0.js +0 -1
- package/assets/esri/core/workers/chunks/f7d93aae350796b88562.js +0 -1
- package/assets/esri/core/workers/chunks/f9370830051865a3435b.js +0 -1
- package/layers/mixins/TemporalSceneLayer.d.ts +0 -177
- package/layers/mixins/TemporalSceneLayer.js +0 -5
- package/layers/mixins/properties/ILayerWithSave.d.ts +0 -11
- package/layers/support/ContingencyConstraintViolation.d.ts +0 -2
- package/layers/support/ContingentValue.d.ts +0 -2
- package/layers/support/ContingentValuesResult.d.ts +0 -2
- package/layers/support/ElevationQuery.d.ts +0 -35
- package/layers/support/ElevationQueryContext.d.ts +0 -37
- package/layers/support/FeatureReduction.d.ts +0 -3
- package/layers/support/FeatureReduction.js +0 -5
- package/layers/support/FieldGroup.d.ts +0 -2
- package/layers/support/FieldValueType.d.ts +0 -2
- package/layers/support/I3SLayer.d.ts +0 -9
- package/layers/support/ParquetGeometryEncodingBase.d.ts +0 -9
- package/layers/support/ParquetGeometryEncodingBase.js +0 -5
- package/layers/support/SimpleBandStatistics.d.ts +0 -10
- package/layers/support/source/DataLayerSource.d.ts +0 -171
- package/layers/support/source/DataLayerSource.js +0 -5
- package/layers/support/source/MapLayerSource.js +0 -5
- package/layers/support/source/QueryTableDataSource.js +0 -5
- package/layers/support/source/RasterDataSource.js +0 -5
- package/layers/support/source/TableDataSource.js +0 -5
- package/layers/support/source/types.d.ts +0 -4
- package/views/2d/layers/features/FeaturePipelineWorkerProxy.d.ts +0 -32
- package/views/3d/webgl-engine/shaders/GaussianSplatColorTechnique.js +0 -5
- package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +0 -5
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthTechnique.js +0 -5
- package/views/analysis/ElevationProfile/ElevationProfileHoveredPointVisualization.js +0 -5
- package/widgets/support/AnalysisViewModel.d.ts +0 -5
- package/widgets/support/AnalysisViewModel.js +0 -5
- package/widgets/support/AnchorElementViewModel.d.ts +0 -3
- package/widgets/support/InteractiveToolViewModel.d.ts +0 -4
- package/widgets/support/InteractiveToolViewModel.js +0 -5
- /package/webdoc/support/{thumbnailUtils.d.ts → types.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5897],{4264:(t,e,i)=>{i.d(e,{lf:()=>At,L:()=>Ot,A4:()=>St,aR:()=>Bt,tU:()=>Lt,V1:()=>Nt,uU:()=>Mt});var r=i(19419),n=i(5408),s=i(13195),a=i(80081),o=i(63907),l=i(85079),u=i(74038);class h{constructor(t){this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildAttributesInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildAttributesInfo(),this._locations}get geometryLayout(){return this._geometryLayout||this._buildAttributesInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildAttributesInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildAttributesInfo(),this._uniforms}getShaderHeader(){return this._shaderHeader||this._buildAttributesInfo(),this._shaderHeader}getShaderMain(){return this._shaderMain||this._buildAttributesInfo(),this._shaderMain}setDataUniforms(t,e,i,r,n){const s=this.getUniforms();for(const a of s){const{name:s,type:o,getValue:l}=a,u=l(i,e,r,n);if(null!==u)switch(o){case"float":t.setUniform1f(s,u);break;case"vec2":t.setUniform2fv(s,u);break;case"vec4":t.setUniform4fv(s,u)}}}encodeAttributes(t,e,i,r){const n=this.attributesInfo,s=this.getEncodingInfos(),a=[];let o=0,l=0;for(const u of Object.keys(s)){const h=s[u],{type:c,precisionFactor:y,isLayout:p}=n[u],f=p?i.getLayoutProperty(u):i.getPaintProperty(u),_=f.interpolator?.getInterpolationRange(e);let m=0;for(const i of h){const{offset:n,bufferElementsToAdd:s}=i;if(s>0){for(let t=0;t<s;t++)a.push(0);o+=l,l=i.bufferElementsToAdd}const u=r??f.getValue(_?_[m]:e,t);switch(c){case 0:case 1:a[o]|=this._encodeByte(u*(y||1),8*n);break;case 2:case 3:a[o]|=this._encodeShort(u*(y||1),8*n);break;case 4:case 5:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8);break;case 6:case 7:a[o]|=this._encodeShort(u*(y||1),8*n),a[o]|=this._encodeShort(u*(y||1),8*n+16);break;case 8:case 9:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8),a[o]|=this._encodeByte(u*(y||1),8*n+16),a[o]|=this._encodeByte(u*(y||1),8*n+24);break;case 10:a[o]=this._encodeColor(u);break;case 11:case 12:this._encodePattern(o,a,u);break;default:throw new Error("Unsupported encoding type")}m++}}return a}getAtributeState(t){let e=0;const i=3+2*t;return e|=this._bit(i),e|=this._bit(i+1)<<1,e}static{this._encodingInfo={0:{dataType:o.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:o.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:o.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:o.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:o.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_buildAttributesInfo(){const t=[],e={},{attributesInfo:i,attributes:r}=this,n={};let s=-1,a=-1;for(const o of r){a++;const r=this.getAtributeState(a);if(0===r||3===r)continue;const l=i[o],u=[];e[o]=u;const c=l.type;for(let e=0;e<r;e++){const{dataType:e,bytesPerElement:i,count:r,normalized:a}=h._encodingInfo[c],o=i*r,l=`${e}-${!0===a}`;let y=n[l],p=0;if(!y||y.count+r>4)s++,y={dataIndex:s,count:0,offset:0},4!==r&&(n[l]=y),t.push({location:-1,name:"a_data_"+s,count:r,type:e,normalized:a}),p=Math.ceil(Math.max(o/4,1));else{const e=t[y.dataIndex];e.count+=r,p=Math.ceil(Math.max(e.count*i/4,1))-Math.ceil(Math.max(y.offset/4,1))}u.push({dataIndex:y.dataIndex,offset:y.offset,bufferElementsToAdd:p}),y.offset+=o,y.count+=r}}for(const e of t)switch(e.type){case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:e.count=4;break;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:e.count+=e.count%2}this._buildVertexBufferLayout(t),this._buildShaderInfo(t,e),this._propertyEncodingInfo=e}_buildVertexBufferLayout(t){const e=this.baseGeometryLayout;let i=e[0].stride;if(0===t.length)this._geometryLayout=e;else{const r=[];let n=i;for(const e of t)i+=c(e.type)*e.count;for(const t of e)r.push(new u._(t.name,t.count,t.type,t.offset,i,t.normalized));for(const e of t)r.push(new u._(e.name,e.count,e.type,n,i,e.normalized)),n+=c(e.type)*e.count;this._geometryLayout=r}this.opacityLayout?this._locations=(0,l._u)([this._geometryLayout,this.opacityLayout]):this._locations=(0,l.Xk)(this._geometryLayout),this._stride=i}_buildShaderInfo(t,e){let i="\n",r="\n";const n=[];for(const e of t)i+=`attribute ${this._getType(e.count)} ${e.name};\n`;const{attributesInfo:s,attributes:a}=this;let o=-1;for(const t of a){o++;const{name:a,type:l,precisionFactor:u,isLayout:c}=s[t],p=u&&1!==u?" * "+1/u:"",{bytesPerElement:f,count:_}=h._encodingInfo[l],m=t=>`a_data_${t.dataIndex}${y(_,t.offset,f)}`;switch(this.getAtributeState(o)){case 0:{const e=this._getType(_),s=`u_${a}`;n.push({name:s,type:e,getValue:(e,i,r,n)=>{const s=c?e.getLayoutValue(t,i):e.getPaintValue(t,i);if(11===l){const t=e.getDashKey(s,e.getLayoutValue("line-cap",i)),r=n.getMosaicItemPosition(t,!1);if(null==r)return null;const{tl:a,br:o}=r;return[a[0],o[1],o[0],a[1]]}if(12===l){const e=n.getMosaicItemPosition(s,!t.includes("line-"));if(null==e)return null;const{tl:i,br:r}=e;return[i[0],r[1],r[0],i[1]]}if(10===l){const t=s[3];return[t*s[0],t*s[1],t*s[2],t]}return s}}),i+=`uniform ${e} ${s};\n`,r+=`${e} ${a} = ${s};\n`}break;case 1:{const i=m(e[t][0]);r+=`${this._getType(_)} ${a} = ${i}${p};\n`}break;case 2:{const s=`u_t_${a}`;n.push({name:s,type:"float",getValue:(e,i,r,n)=>(c?e.getLayoutProperty(t):e.getPaintProperty(t)).interpolator.interpolationUniformValue(r,i)}),i+=`uniform float ${s};\n`;const o=m(e[t][0]),l=m(e[t][1]);r+=`${this._getType(_)} ${a} = mix(${o}${p}, ${l}${p}, ${s});\n`}}}this._shaderHeader=i,this._shaderMain=r,this._uniforms=n}_bit(t){return(this._key&1<<t)>>t}_getType(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4"}throw new Error("Invalid count")}_encodeColor(t){const e=255*t[3];return a.A.i8888to32(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,i){if(!i?.rect)return;const r=i.rect,n=i.width,s=i.height;e[t]=this._encodeShort(r.x+2,0),e[t]|=this._encodeShort(r.y+2+s,16),e[t+1]=this._encodeShort(r.x+2+n,0),e[t+1]|=this._encodeShort(r.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const c=t=>{switch(t){case o.pe.FLOAT:case o.pe.INT:case o.pe.UNSIGNED_INT:return 4;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:case o.pe.HALF_FLOAT:return 2;case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:return 1}},y=(t,e,i)=>{const r=e/i;if(1===t)switch(r){case 0:return".x";case 1:return".y";case 2:return".z";case 3:return".w"}else if(2===t)switch(r){case 0:return".xy";case 1:return".yz";case 2:return".zw"}else if(3===t)switch(r){case 0:return".xyz";case 1:return".yzw"}return""};class p extends h{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.BYTE,0,2)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=p.GEOMETRY_LAYOUT,this.attributes=p.ATTRIBUTES,this.attributesInfo=p.ATTRIBUTES_INFO}}class f extends h{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1},"circle-color":{name:"color",type:10},"circle-opacity":{name:"opacity",type:1,precisionFactor:100},"circle-stroke-width":{name:"stroke_width",type:1,precisionFactor:4},"circle-stroke-color":{name:"stroke_color",type:10},"circle-stroke-opacity":{name:"stroke_opacity",type:1,precisionFactor:100},"circle-blur":{name:"blur",type:1,precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.attributes=f.ATTRIBUTES,this.attributesInfo=f.ATTRIBUTES_INFO}}class _ extends h{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100},"fill-pattern":{name:"tlbr",type:12,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=_.GEOMETRY_LAYOUT,this.attributes=_.ATTRIBUTES,this.attributesInfo=_.ATTRIBUTES_INFO}}class m extends h{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,8),new u._("a_offset",2,o.pe.BYTE,4,8),new u._("a_xnormal",2,o.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}constructor(t,e){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.attributes=e?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.attributesInfo=e?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE}}class g extends h{static{this.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_extrude_offset",4,o.pe.BYTE,4,16),new u._("a_dir_normal",4,o.pe.BYTE,8,16),new u._("a_accumulatedDistance",2,o.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-width":{name:"width",type:1,precisionFactor:2},"line-gap-width":{name:"gap_width",type:1,precisionFactor:2},"line-offset":{name:"offset",type:0,precisionFactor:2},"line-color":{name:"color",type:10},"line-opacity":{name:"opacity",type:1,precisionFactor:100},"line-blur":{name:"blur",type:1,precisionFactor:4},"line-pattern":{name:"tlbr",type:12,isOptional:!0},"line-dasharray":{name:"tlbr",type:11,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.attributes=g.ATTRIBUTES,this.attributesInfo=g.ATTRIBUTES_INFO}}const d=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_vertexOffset",2,o.pe.SHORT,4,16),new u._("a_texAngleRange",4,o.pe.UNSIGNED_BYTE,8,16),new u._("a_levelInfo",4,o.pe.UNSIGNED_BYTE,12,16)],x=[new u._("a_opacityInfo",1,o.pe.UNSIGNED_BYTE,0,1)];class b extends h{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10},"icon-opacity":{name:"opacity",type:1,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:10},"icon-halo-width":{name:"halo_width",type:1,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=b.ATTRIBUTES,this.attributesInfo=b.ATTRIBUTES_INFO}}class w extends h{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10},"text-opacity":{name:"opacity",type:1,precisionFactor:100},"text-halo-color":{name:"halo_color",type:10},"text-halo-width":{name:"halo_width",type:1,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"text-size":{name:"size",type:1,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=w.ATTRIBUTES,this.attributesInfo=w.ATTRIBUTES_INFO}}var v=i(68197),T=i(85334);function E(t,e,i,r){const n=3*t,s=3*(i-t)-n,a=1-n-s,o=3*e,l=3*(r-e)-o,u=1-o-l;function h(t){return((a*t+s)*t+n)*t}function c(t){return(3*a*t+2*s)*t+n}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let i,r,n,s,a,o;for(n=t,o=0;o<8;o++){if(s=h(n)-t,Math.abs(s)<e)return n;if(a=c(n),Math.abs(a)<1e-6)break;n-=s/a}if(i=0,r=1,n=t,n<i)return i;if(n>r)return r;for(;i<r;){if(s=h(n),Math.abs(s-t)<e)return n;t>s?i=n:r=n,n=.5*(r-i)+i}return n}(t,e))}}const I={};I.ease=E(.25,.1,.25,1),I.linear=E(0,0,1,1),I.easeIn=I["ease-in"]=E(.42,0,1,1),I.easeOut=I["ease-out"]=E(0,0,.58,1),I.easeInOut=I["ease-in-out"]=E(.42,0,.58,1);const P={kind:"null"},D={kind:"number"},R={kind:"string"},A={kind:"boolean"},S={kind:"color"},L={kind:"object"},N={kind:"value"};function O(t,e){return{kind:"array",itemType:t,n:e}}const B=[P,D,R,A,S,L,O(N)];function M(t){if("array"===t.kind){const e=M(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function U(t){if(null===t)return P;if("string"==typeof t)return R;if("boolean"==typeof t)return A;if("number"==typeof t)return D;if(t instanceof v.A)return S;if(Array.isArray(t)){let e;for(const i of t){const t=U(i);if(e){if(e!==t){e=N;break}}else e=t}return O(e||N,t.length)}return"object"==typeof t?L:N}function k(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||k(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(const e of B)if(k(t,e))return!0;return e.kind===t.kind}function G(t){if(null===t)return"";const e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof v.A?t.toString():JSON.stringify(t)}class z{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}class V{constructor(){this.type=N}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new V}evaluate(t,e){return t?.id}}class F{constructor(){this.type=R}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new F}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class C{constructor(){this.type=L}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new C}evaluate(t,e){return t?.values}}class ${constructor(){this.type=D}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new $}evaluate(t,e){return e}}class H{constructor(t,e,i){this._lhs=t,this._rhs=e,this._compare=i,this.type=A}static parse(t,e,i){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new H(wt(t[1],e),wt(t[2],e),i)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class Y{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new Y(wt(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class q{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new q(i)}evaluate(t,e){for(const i of this._args)if(!i.evaluate(t,e))return!1;return!0}}class j{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new j(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!0;return!1}}class W{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new W(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!1;return!0}}class X{constructor(t,e,i){this.type=t,this._args=e,this._fallback=i}static parse(t,e,i){if(t.length<4)throw new Error('"case" expects at least 3 arguments');if(t.length%2==1)throw new Error('"case" expects an odd number of arguments');let r;const n=[];for(let s=1;s<t.length-1;s+=2){const a=wt(t[s],e),o=wt(t[s+1],e,i);r||(r=o.type),n.push({condition:a,output:o})}const s=wt(t[t.length-1],e,i);return r||(r=s.type),new X(r,n,s)}evaluate(t,e){for(const i of this._args)if(i.condition.evaluate(t,e))return i.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class K{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw new Error('"coalesce" expects at least 1 argument');let i;const r=[];for(let n=1;n<t.length;n++){const s=wt(t[n],e);i||(i=s.type),r.push(s)}return new K(i,r)}evaluate(t,e){for(const i of this._args){const r=i.evaluate(t,e);if(null!==r)return r}return null}}class Z{constructor(t,e,i,r,n){this.type=t,this._input=e,this._labels=i,this._outputs=r,this._fallback=n}static parse(t,e){if(t.length<3)throw new Error('"match" expects at least 3 arguments');if(t.length%2==0)throw new Error('"case" expects an even number of arguments');let i;const r=wt(t[1],e),n=[],s={};let a;for(let r=2;r<t.length-1;r+=2){let o=t[r];Array.isArray(o)||(o=[o]);for(const t of o){const e=typeof t;if("string"!==e&&"number"!==e)throw new Error('"match" requires string or number literal as labels');if(a){if(e!==a)throw new Error('"match" requires labels to have the same type')}else a=e;s[t]=n.length}const l=wt(t[r+1],e);i||(i=l.type),n.push(l)}return new Z(i,r,s,n,wt(t[t.length-1],e))}evaluate(t,e){const i=this._input.evaluate(t,e);return(this._outputs[this._labels[i]]||this._fallback).evaluate(t,e)}}class J{constructor(t,e,i,r,n){this._operator=t,this.type=e,this.interpolation=i,this.input=r,this._stops=n}static parse(t,e,i){const r=t[0];if(t.length<5)throw new Error(`"${r}" expects at least 4 arguments`);const n=t[1];if(!Array.isArray(n)||0===n.length)throw new Error(`"${n}" is not a valid interpolation`);switch(n[0]){case"linear":if(1!==n.length)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==n.length||"number"!=typeof n[1])throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==n.length)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){const e=n[t];if("number"!=typeof e||e<0||e>1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${n[0]}"`)}if(t.length%2!=1)throw new Error(`"${r}" expects an even number of arguments`);const s=wt(t[2],e,D);let a;"interpolate-hcl"===r||"interpolate-lab"===r?a=S:i&&"value"!==i.kind&&(a=i);const o=[];for(let i=3;i<t.length;i+=2){const n=t[i];if("number"!=typeof n)throw new Error(`"${r}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=n)throw new Error(`"${r}" requires strictly ascending stop inputs`);const s=wt(t[i+1],e,a);a||(a=s.type),o.push([n,s])}if(a&&a!==S&&a!==D&&("array"!==a.kind||a.itemType!==D))throw new Error(`"${r}" cannot interpolate type ${M(a)}`);return new J(r,a,n,s,o)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this.input.evaluate(t,e);if(r<=i[0][0])return i[0][1].evaluate(t,e);if(r>=i[i.length-1][0])return i[i.length-1][1].evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););const a=i[n-1][0],o=i[n][0],l=J.interpolationRatio(this.interpolation,r,a,o),u=i[n-1][1].evaluate(t,e),h=i[n][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(h))return u.map((t,e)=>(0,s.GW)(t,h[e],l));if("color"===this.type.kind&&u instanceof v.A&&h instanceof v.A){const t=new v.A(u),e=new v.A(h);return new v.A([(0,s.GW)(t.r,e.r,l),(0,s.GW)(t.g,e.g,l),(0,s.GW)(t.b,e.b,l),(0,s.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof h)return(0,s.GW)(u,h,l);throw new Error(`"${this._operator}" cannot interpolate type ${M(this.type)}`)}if("interpolate-hcl"===this._operator){const t=(0,T.RH)(u),e=(0,T.RH)(h),i=e.h-t.h,r=(0,T.$)({h:t.h+l*(i>180||i<-180?i-360*Math.round(i/360):i),c:(0,s.GW)(t.c,e.c,l),l:(0,s.GW)(t.l,e.l,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...r})}if("interpolate-lab"===this._operator){const t=(0,T.ZD)(u),e=(0,T.ZD)(h),i=(0,T.$)({l:(0,s.GW)(t.l,e.l,l),a:(0,s.GW)(t.a,e.a,l),b:(0,s.GW)(t.b,e.b,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...i})}throw new Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){const i=this._stops;if(1===i.length)return 0;if(t>=i[i.length-1][0])return 0;let r=0;for(;++r<i.length&&!(t<i[r][0]););const n=i[r-1][0],s=i[r][0];return J.interpolationRatio(this.interpolation,e,n,s)}getInterpolationRange(t){const e=this._stops;if(1===e.length){const t=e[0][0];return[t,t]}const i=e[e.length-1][0];if(t>=i)return[i,i];let r=0;for(;++r<e.length&&!(t<e[r][0]););return[e[r-1][0],e[r][0]]}static interpolationRatio(t,e,i,r){let n=0;return"linear"===t[0]?n=J._exponentialInterpolationRatio(e,1,i,r):"exponential"===t[0]?n=J._exponentialInterpolationRatio(e,t[1],i,r):"cubic-bezier"===t[0]&&(n=E(t[1],t[2],t[3],t[4])(J._exponentialInterpolationRatio(e,1,i,r),1e-5)),n<0?n=0:n>1&&(n=1),n}static _exponentialInterpolationRatio(t,e,i,r){const n=r-i;if(0===n)return 0;const s=t-i;return 1===e?s/n:(e**s-1)/(e**n-1)}}class Q{constructor(t,e,i){this.type=t,this._input=e,this._stops=i}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const i=wt(t[1],e,D);let r;const n=[];n.push([-1/0,wt(t[2],e)]);for(let i=3;i<t.length;i+=2){const s=t[i];if("number"!=typeof s)throw new Error('"step" requires stop inputs as literal numbers');if(n.length&&n[n.length-1][0]>=s)throw new Error('"step" requires strictly ascending stop inputs');const a=wt(t[i+1],e);r||(r=a.type),n.push([s,a])}return new Q(r,i,n)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this._input.evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););return this._stops[n-1][1].evaluate(t,e)}}class tt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,i){if(t.length<4)throw new Error('"let" expects at least 3 arguments');if(t.length%2==1)throw new Error('"let" expects an odd number of arguments');const r=new z(e);for(let i=1;i<t.length-1;i+=2){const n=t[i];if("string"!=typeof n)throw new Error(`"let" requires a string to define variable names - found ${n}`);r.add(n,wt(t[i+1],e))}const n=wt(t[t.length-1],r,i);return new tt(n.type,n)}evaluate(t,e){return this._output.evaluate(t,e)}}class et{constructor(t,e){this.type=t,this.output=e}static parse(t,e,i){if(2!==t.length||"string"!=typeof t[1])throw new Error('"var" requires just one literal string argument');const r=e.get(t[1]);if(!r)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new et(i||N,r)}evaluate(t,e){return this.output.evaluate(t,e)}}class it{constructor(t,e,i){this.type=t,this._index=e,this._array=i}static parse(t,e){if(3!==t.length)throw new Error('"at" expects 2 arguments');const i=wt(t[1],e,D),r=wt(t[2],e);return new it(r.type.itemType,i,r)}evaluate(t,e){const i=this._index.evaluate(t,e),r=this._array.evaluate(t,e);if(i<0||i>=r.length)throw new Error('"at" index out of bounds');if(i!==Math.floor(i))throw new Error('"at" index must be an integer');return r[i]}}class rt{constructor(t,e){this._key=t,this._obj=e,this.type=N}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new rt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new rt(i,r);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[i]:t?.values[i]}}class nt{constructor(t,e){this._key=t,this._obj=e,this.type=A}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new nt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new nt(i,r);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?i in this._obj.evaluate(t,e):!!t?.values[i]}}class st{constructor(t,e){this._key=t,this._vals=e,this.type=A}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new st(wt(t[1],e),wt(t[2],e))}evaluate(t,e){const i=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(i)}}class at{constructor(t,e,i){this._item=t,this._array=e,this._from=i,this.type=D}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const i=wt(t[1],e),r=wt(t[2],e);if(4===t.length){const n=wt(t[3],e,D);return new at(i,r,n)}return new at(i,r)}evaluate(t,e){const i=this._item.evaluate(t,e),r=this._array.evaluate(t,e);if(this._from){const n=this._from.evaluate(t,e);if(n!==Math.floor(n))throw new Error('"index-of" index must be an integer');return r.indexOf(i,n)}return r.indexOf(i)}}class ot{constructor(t){this._arg=t,this.type=D}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const i=wt(t[1],e);return new ot(i)}evaluate(t,e){const i=this._arg.evaluate(t,e);if("string"==typeof i)return i.length;if(Array.isArray(i))return i.length;throw new Error('"length" expects string or array')}}class lt{constructor(t,e,i,r){this.type=t,this._array=e,this._from=i,this._to=r}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const i=wt(t[1],e),r=wt(t[2],e,D);if(r.type!==D)throw new Error('"slice" index must return a number');if(4===t.length){const n=wt(t[3],e,D);if(n.type!==D)throw new Error('"slice" index must return a number');return new lt(i.type,i,r,n)}return new lt(i.type,i,r)}evaluate(t,e){const i=this._array.evaluate(t,e);if(!Array.isArray(i)&&"string"!=typeof i)throw new Error('"slice" input must be an array or a string');const r=this._from.evaluate(t,e);if(r<0||r>=i.length)throw new Error('"slice" index out of bounds');if(r!==Math.floor(r))throw new Error('"slice" index must be an integer');if(this._to){const n=this._to.evaluate(t,e);if(n<0||n>=i.length)throw new Error('"slice" index out of bounds');if(n!==Math.floor(n))throw new Error('"slice" index must be an integer');return i.slice(r,n)}return i.slice(r)}}class ut{constructor(){this.type=A}static parse(t){if(1!==t.length)throw new Error('"has-id" expects no arguments');return new ut}evaluate(t,e){return void 0!==t?.id}}class ht{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static parse(t,e,i){const r=t.slice(1).map(t=>wt(t,e));return new ht(r,i)}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class ct{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){const i=t.slice(1).map(t=>wt(t,e));return new ct(i,ct.ops[t[0]])}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class yt{constructor(t){this._args=t,this.type=R}static parse(t,e){return new yt(t.slice(1).map(t=>wt(t,e)))}evaluate(t,e){return this._args.map(i=>i.evaluate(t,e)).join("")}}class pt{constructor(t,e){this._arg=t,this._calculate=e,this.type=R}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw new Error(`${t[0]} expects 1 argument`);const i=wt(t[1],e);return new pt(i,pt.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class ft{constructor(t){this._args=t,this.type=S}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const i=t.slice(1).map(t=>wt(t,e));return new ft(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e));return new v.A({r:i,g:r,b:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class _t{constructor(t){this._args=t,this.type=S}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const i=t.slice(1).map(t=>wt(t,e));return new _t(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e)),s=this._validateAlpha(this._args[3].evaluate(t,e));return new v.A({r:i,g:r,b:n,a:s})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class mt{constructor(t){this._color=t,this.type=O(D,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const i=wt(t[1],e);return new mt(i)}evaluate(t,e){return new v.A(this._color.evaluate(t,e)).toRgba()}}class gt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0];if(t.length<2)throw new Error(`${i} expects at least one argument`);let r,n=1;if("array"===i){if(t.length>2){switch(t[1]){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;default:throw new Error('"array" type argument must be string, number or boolean')}n++}else r=N;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw new Error('"array" length argument must be a positive integer literal');n++}r=O(r,e)}else switch(i){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;case"object":r=L}const s=[];for(;n<t.length;n++){const i=wt(t[n],e);s.push(i)}return new gt(r,s)}evaluate(t,e){let i;for(const r of this._args){const n=r.evaluate(t,e);if(i=U(n),k(i,this.type))return n}throw new Error(`Expected ${M(this.type)} but got ${M(i)}`)}}class dt{static{this.types={"to-boolean":A,"to-color":S,"to-number":D,"to-string":R}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0],r=dt.types[i];if(r===A||r===R){if(2!==t.length)throw new Error(`${i} expects one argument`)}else if(t.length<2)throw new Error(`${i} expects at least one argument`);const n=[];for(let i=1;i<t.length;i++){const r=wt(t[i],e);n.push(r)}return new dt(r,n)}evaluate(t,e){if(this.type===A)return Boolean(this._args[0].evaluate(t,e));if(this.type===R)return G(this._args[0].evaluate(t,e));if(this.type===D){for(const i of this._args){const r=Number(i.evaluate(t,e));if(!isNaN(r))return r}return null}if(this.type===S){for(const i of this._args)try{const r=dt.toColor(i.evaluate(t,e));if(r instanceof v.A)return r}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return G(t)}static toNumber(t){const e=Number(t);if(isNaN(e))throw new Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof v.A)return t;if("string"==typeof t){const e=v.A.fromString(t);if(e)return e;throw new Error(`"${t}" is not a color`)}if(Array.isArray(t))return v.A.fromArray(t);throw new Error(`"${t}" is not a color`)}}class xt{constructor(t){this._val=t,this.type=U(t)}static parse(t){if(2!==t.length)throw new Error('"literal" expects 1 argument');return new xt(t[1])}evaluate(t,e){return this._val}}class bt{constructor(t){this._arg=t,this.type=R}static parse(t,e){if(2!==t.length)throw new Error('"typeof" expects 1 argument');return new bt(wt(t[1],e))}evaluate(t,e){return M(U(this._arg.evaluate(t,e)))}}function wt(t,e,i){const r=typeof t;if("string"===r||"boolean"===r||"number"===r||null===t){if(i)switch(i.kind){case"string":"string"!==r&&(t=dt.toString(t));break;case"number":"number"!==r&&(t=dt.toNumber(t));break;case"color":t=dt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw new Error("Expression must be a non empty array");const n=t[0];if("string"!=typeof n)throw new Error("First element of expression must be a string");const s=vt[n];if(void 0===s)throw new Error(`Invalid expression operator "${n}"`);if(!s)throw new Error(`Unimplemented expression operator "${n}"`);return s.parse(t,e,i)}const vt={array:gt,boolean:gt,collator:null,format:null,image:null,literal:xt,number:gt,"number-format":null,object:gt,string:gt,"to-boolean":dt,"to-color":dt,"to-number":dt,"to-string":dt,typeof:bt,accumulated:null,"feature-state":null,"geometry-type":F,id:V,"line-progress":null,properties:C,at:it,get:rt,has:nt,in:st,"index-of":at,length:ot,slice:lt,"!":Y,"!=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t!==e)}},"<":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<e)}},"<=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<=e)}},"==":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t===e)}},">":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>e)}},">=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>=e)}},all:q,any:j,case:X,coalesce:K,match:Z,within:null,interpolate:J,"interpolate-hcl":J,"interpolate-lab":J,step:Q,let:tt,var:et,concat:yt,downcase:pt,"is-supported-script":null,"resolved-locale":null,upcase:pt,rgb:ft,rgba:_t,"to-rgba":mt,"-":class extends ht{static parse(t,e){switch(t.length){case 2:return ht.parse(t,e,t=>-t[0]);case 3:return ht.parse(t,e,t=>t[0]-t[1]);default:throw new Error('"-" expects 1 or 2 arguments')}}},"*":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=1;for(const i of t)e*=i;return e})}},"/":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]/t[1]);throw new Error('"/" expects 2 arguments')}},"%":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]%t[1]);throw new Error('"%" expects 2 arguments')}},"^":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]**t[1]);throw new Error('"^" expects 1 or 2 arguments')}},"+":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=0;for(const i of t)e+=i;return e})}},abs:ct,acos:ct,asin:ct,atan:ct,ceil:ct,cos:ct,e:ct,floor:ct,ln:ct,ln2:ct,log10:ct,log2:ct,max:ct,min:ct,pi:ct,round:ct,sin:ct,sqrt:ct,tan:ct,zoom:$,"heatmap-density":null,"has-id":ut,none:W};class Tt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=wt(t,null,A);return new Tt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t))return!0;if(0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;const e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return Tt.convertComparison("==",t[1],t[2]);case"!=":return Tt.negate(Tt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return Tt.convertComparison(e,t[1],t[2]);case"in":return Tt.convertIn(t[1],t.slice(2));case"!in":return Tt.negate(Tt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return Tt.convertCombining(e,t.slice(1));case"has":return Tt.convertHas(t[1]);case"!has":return Tt.negate(Tt.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,i){switch(e){case"$type":return[t,["geometry-type"],i];case"$id":return[t,["id"],i];default:return[t,["get",e],i]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class Et{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var It=i(40876);class Pt{constructor(t,e){let i;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":i=!0;break;case"array":i="number"===t.value;break;default:i=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&vt[e[0]]){const i={number:D,color:S,string:R,boolean:A,enum:R};try{const r=wt(e,null,"array"===t.type?O(i[t.value]||N,t.length):i[t.type]);this.getValue=this._buildExpression(r,t),this.isDataDriven=!0,r instanceof J&&r.input instanceof $&&(this.interpolator=r)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}i&&"interval"===e.type&&(i=!1);const r=e?.stops&&e.stops.length>0;if(r)for(const i of e.stops)i[1]=this._validate(i[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),r)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=i?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else r?this.getValue=i?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=Pt._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=G(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(i,r)=>{try{const n=t.evaluate(r,i);return void 0===n?e.default:this._validate(n,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),void 0!==n&&(n=this._validate(n,e)),null!=n?n:void 0!==t.default?t.default:e.default}}_buildCategorical(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),n=this._categorical(n,t.stops),void 0!==n?n:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interval(n,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interpolate(n,t.stops,t.base||1):void 0!==t.default?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const i=e.length;for(let r=0;r<i;r++)if(e[r][0]===t)return e[r][1]}_interval(t,e){const i=e.length;let r=0;for(let n=0;n<i&&e[n][0]<=t;n++)r=n;return e[r][1]}_interpolate(t,e,i){let r,n;const a=e.length;for(let i=0;i<a;i++){const s=e[i];if(!(s[0]<=t)){n=s;break}r=s}if(r&&n){const e=n[0]-r[0],a=t-r[0],o=1===i?a/e:(i**a-1)/(i**e-1);if(Array.isArray(r[1])){const t=r[1],e=n[1],i=[];for(let r=0;r<t.length;r++)i.push((0,s.GW)(t[r],e[r],o));return i}return(0,s.GW)(r[1],n[1],o)}return r?r[1]:n?n[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,It.Vm)(t)??void 0:t instanceof v.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}var Dt=i(76213);class Rt{constructor(t,e,i,r){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"],this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=i,this.uid=r,t){case 0:this._layoutDefinition=Et.backgroundLayoutDefinition,this._paintDefinition=Et.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Et.fillLayoutDefinition,this._paintDefinition=Et.fillPaintDefinition;break;case 2:this._layoutDefinition=Et.lineLayoutDefinition,this._paintDefinition=Et.linePaintDefinition;break;case 3:this._layoutDefinition=Et.symbolLayoutDefinition,this._paintDefinition=Et.symbolPaintDefinition;break;case 4:this._layoutDefinition=Et.circleLayoutDefinition,this._paintDefinition=Et.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=Tt.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,i){let r;const n=this._layoutProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._layoutDefinition[t].default),r}getPaintValue(t,e,i){let r;const n=this._paintProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._paintDefinition[t].default),r}isPainterDataDriven(){const t=this._paintProperties;if(t)for(const e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,i,r,n,s,a){return!1}getFeatureInflatedBounds(t,e,i,r){return null}_parseLayout(t){const e={};for(const i in t){const r=this._layoutDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}_parsePaint(t){const e={};for(const i in t){const r=this._paintDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}computeAttributesKey(t,e,i,r){let n=0,s=0;for(const t of e){let e=3;if(!t||t!==r){const r=i[t],{isLayout:n,isOptional:s}=r,a=n?this.getLayoutProperty(t):this.getPaintProperty(t);e=a?.interpolator?2:a?.isDataDriven?1:s&&!a?3:0}s|=e<<n,n+=2}return s<<3|t}}class At extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.backgroundMaterial=new p(this.computeAttributesKey(0,p.ATTRIBUTES,p.ATTRIBUTES_INFO))}}class St extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),a=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=n?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||a?.isDataDriven;const o=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!o,this.hasDataDrivenOutlineColor=o?.isDataDriven,this.hasDataDrivenOutline=o?o.isDataDriven:!!n&&n.isDataDriven,this.hasDataDrivenOutline=(o?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new _(this.computeAttributesKey(1,_.ATTRIBUTES,_.ATTRIBUTES_INFO)),this.outlineMaterial=new m(this.computeAttributesKey(2,this.outlineUsesFillColor?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("fill-translate",e,t),a=r*Math.max(s[0],s[1]);return n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a,n}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("fill-translate",a,r),this.getPaintValue("fill-translate-anchor",a,r),o,n.ih);return t-=h*c.x,e-=h*c.y,!!(0,s.s3)(t,e,u)||(0,s.ru)(t,e,u,h*i)}}class Lt extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("line-pattern");if(this.lineMaterial=new g(this.computeAttributesKey(3,g.ATTRIBUTES,g.ATTRIBUTES_INFO,n?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){const t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<Dt.Gh){const t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let i;switch(e){case 0:default:i="Butt";break;case 1:i="Round";break;case 2:i="Square"}return`dasharray-[${t.toString()}]-${i}`}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("line-translate",e,t),a=r*Math.max(s[0],s[1]);n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a;const o=r*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=r*(this.getPaintValue("line-width",e,t)/2);return n[0]-=o+l,n[1]-=o+l,n[2]+=o+l,n[3]+=o+l,n}isIntersectingFeature(t,e,i,r,a,o,l){let u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("line-translate",a,r),this.getPaintValue("line-translate-anchor",a,r),o,n.ih);t-=h*c.x,e-=h*c.y;const y=h*this.getPaintValue("line-offset",a,r)||0;0!==y&&(u=(0,s.cP)(u,-y));const p=this.getPaintValue("line-width",a,r);return(0,s.ru)(t,e,u,h*(i+p/2))}}class Nt extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.iconMaterial=new b(this.computeAttributesKey(4,b.ATTRIBUTES,b.ATTRIBUTES_INFO)),this.textMaterial=new w(this.computeAttributesKey(6,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Ot extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.circleMaterial=new f(this.computeAttributesKey(5,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,i,r){const s=Ut(t);if(!s)return null;const a=this.getPaintValue("circle-translate",e,t),o=Math.max(a[0],a[1]);s[0]-=o,s[2]-=o,s[1]+=o,s[3]+=o;const l=r*(n.ih*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2);return s[0]-=l,s[1]-=l,s[2]+=l,s[3]+=l,s}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY,i*=h;const c=(0,s.yM)(this.getPaintValue("circle-translate",a,r),this.getPaintValue("circle-translate-anchor",a,r),o,h),y=h*(this.getPaintValue("circle-radius",a,r)+this.getPaintValue("circle-stroke-width",a,r));let p,f;for(const r of u)if(r)for(const n of r)if(p=n.x+c.x,f=n.y+c.y,Math.sqrt((t-p)*(t-p)+(e-f)*(e-f))-i<=y)return!0;return!1}}class Bt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("icon-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("icon-anchor",e),r=t.getLayoutProperty("icon-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("icon-offset",e),r=t.getLayoutProperty("icon-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("icon-padding",e),r=t.getLayoutProperty("icon-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("icon-rotate",e),r=t.getLayoutProperty("icon-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Mt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("text-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("text-anchor",e),r=t.getLayoutProperty("text-justify"),r?.isDataDriven?this._justifyProp=r:this.justify=t.getLayoutValue("text-justify",e),r=t.getLayoutProperty("text-letter-spacing"),r?.isDataDriven?this._letterSpacingProp=r:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),r=t.getLayoutProperty("text-line-height"),r?.isDataDriven?this._lineHeightProp=r:this.lineHeight=t.getLayoutValue("text-line-height",e),r=t.getLayoutProperty("text-max-angle"),r?.isDataDriven?this._maxAngleProp=r:this.maxAngle=t.getLayoutValue("text-max-angle",e),r=t.getLayoutProperty("text-max-width"),r?.isDataDriven?this._maxWidthProp=r:this.maxWidth=t.getLayoutValue("text-max-width",e),r=t.getLayoutProperty("text-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("text-offset",e),r=t.getLayoutProperty("text-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("text-padding",e),r=t.getLayoutProperty("text-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("text-rotate",e),r=t.getLayoutProperty("text-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("text-size",e),r=t.getLayoutProperty("text-writing-mode"),r?.isDataDriven?this._writingModeProp=r:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Ut(t){const e=t?.getGeometry();if(null==e)return null;let i=1/0,n=1/0,s=-1/0,a=-1/0;for(const t of e)if(t)for(const e of t)i=Math.min(i,e.x),n=Math.min(n,e.y),s=Math.max(s,e.x),a=Math.max(a,e.y);return(0,r.fA)(i,n,s,a)}},5408:(t,e,i)=>{i.d(e,{ih:()=>n,vA:()=>r});const r=4096,n=8},6774:(t,e,i)=>{i.d(e,{O3:()=>s,Ox:()=>a,bR:()=>r});class r{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new r(t[0],t[1])}clone(){return new r(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,r=this.y;return this.x=i*t-r*e,this.y=i*e+r*t,this}rotateReverse(t,e){const i=this.x,r=this.y;return this.x=i*t+r*e,this.y=-i*e+r*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,r=e.y-t.y;return Math.sqrt(i*i+r*r)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static sub(t,e){return new r(t.x-e.x,t.y-e.y)}}class n{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class s{constructor(t,e,i,r=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=r,this._pixelMargin=n,this._tileSize=512*r,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new r(t,e),this._firstPt=new r(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),s=new r(t,e),a=r.distance(this._prevPt,s);let o,l,u,h,c,y,p,f;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,l=s,u=this._intersect(l,o),this._start=this._dist+a*(1-this._r),this._lineTo(u.x,u.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,o=s,u=this._intersect(l,o),this._lineTo(u.x,u.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=s;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(h=(this._xmin-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(h=(this._xmax-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(h=(this._ymin-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(h=(this._ymax-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymax))),0===i.length)c?y?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):y?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+a*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+a*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=a,this._prevIsIn=i,this._prevPt=s}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let r=i.length;for(;r>=4&&(i[0].x===i[1].x&&i[0].x===i[r-2].x||i[0].y===i[1].y&&i[0].y===i[r-2].y);)i.pop(),i[0].x=i[r-2].x,i[0].y=i[r-2].y,--r}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let r=0;r<e;r++)i.push({line:t[r],start:this._starts[r]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,n,s;if(e.x>=this._xmin&&e.x<=this._xmax)n=e.y<=this._ymin?this._ymin:this._ymax,s=(n-t.y)/(e.y-t.y),i=t.x+s*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,s=(i-t.x)/(e.x-t.x),n=t.y+s*(e.y-t.y);else{n=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const r=(i-t.x)/(e.x-t.x),a=(n-t.y)/(e.y-t.y);r<a?(s=r,n=t.y+r*(e.y-t.y)):(s=a,i=t.x+a*(e.x-t.x))}return this._r=s,new r(i,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let n,s;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,e)))return;this._line.push(new r(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const i=n.x===t,a=n.y===e;if(i&&a)return;this._isH&&i||this._isV&&a?(n.x=t,n.y=e,s=this._line[this._line.length-2],s.x===t&&s.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(s=this._line[this._line.length-2],this._isH=s.x===t,this._isV=s.y===e)):(this._isH=s.x===t,this._isV=s.y===e)):(this._line.push(new r(t,e)),this._isH=i,this._isV=a)}else this._line.push(new r(t,e))}}class a{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new r(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new r(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;const r=-e,n=t+e,s=-e,a=t+e,l=[],u=[],h=i.length;for(let t=0;t<h;++t){const e=i[t];if(!e||e.length<2)continue;let o,h=e[0];const c=e.length;for(let i=1;i<c;++i)o=e[i],h.x===o.x&&(h.x<=r&&(h.y>o.y?(l.push(t),l.push(i),l.push(0),l.push(-1)):(u.push(t),u.push(i),u.push(0),u.push(-1))),h.x>=n&&(h.y<o.y?(l.push(t),l.push(i),l.push(1),l.push(-1)):(u.push(t),u.push(i),u.push(1),u.push(-1)))),h.y===o.y&&(h.y<=s&&(h.x<o.x?(l.push(t),l.push(i),l.push(2),l.push(-1)):(u.push(t),u.push(i),u.push(2),u.push(-1))),h.y>=a&&(h.x>o.x?(l.push(t),l.push(i),l.push(3),l.push(-1)):(u.push(t),u.push(i),u.push(3),u.push(-1)))),h=o}if(0===l.length||0===u.length)return;o.fillParent(i,u,l),o.fillParent(i,l,u);const c=[];o.calcDeltas(c,u,l),o.calcDeltas(c,l,u),o.addDeltas(c,i)}static fillParent(t,e,i){const r=i.length,n=e.length;for(let s=0;s<n;s+=4){const n=e[s],a=e[s+1],o=e[s+2],u=t[n][a-1],h=t[n][a];let c=8092,y=-1;for(let e=0;e<r;e+=4){if(i[e+2]!==o)continue;const r=i[e],n=i[e+1],s=t[r][n-1],a=t[r][n];switch(o){case 0:case 1:if(l(u.y,s.y,a.y)&&l(h.y,s.y,a.y)){const t=Math.abs(a.y-s.y);t<c&&(c=t,y=e)}break;case 2:case 3:if(l(u.x,s.x,a.x)&&l(h.x,s.x,a.x)){const t=Math.abs(a.x-s.x);t<c&&(c=t,y=e)}}}e[s+3]=y}}static calcDeltas(t,e,i){const r=e.length;for(let n=0;n<r;n+=4){const r=[],s=o.calcDelta(n,e,i,r);t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]),t.push(s)}}static calcDelta(t,e,i,r){const n=e[t+3];if(-1===n)return 0;const s=r.length;return s>1&&r[s-2]===n?0:(r.push(n),o.calcDelta(n,i,e,r)+1)}static addDeltas(t,e){const i=t.length;let r=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>r&&(r=i)}for(let n=0;n<i;n+=4){const i=e[t[n]],s=t[n+1],a=r-t[n+3];switch(t[n+2]){case 0:i[s-1].x-=a,i[s].x-=a,1===s&&(i[i.length-1].x-=a),s===i.length-1&&(i[0].x-=a);break;case 1:i[s-1].x+=a,i[s].x+=a,1===s&&(i[i.length-1].x+=a),s===i.length-1&&(i[0].x+=a);break;case 2:i[s-1].y-=a,i[s].y-=a,1===s&&(i[i.length-1].y-=a),s===i.length-1&&(i[0].y-=a);break;case 3:i[s-1].y+=a,i[s].y+=a,1===s&&(i[i.length-1].y+=a),s===i.length-1&&(i[0].y+=a)}}}}const l=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},13195:(t,e,i)=>{i.d(e,{GW:()=>m,IU:()=>b,Jo:()=>a,MG:()=>s,Wh:()=>y,cP:()=>T,os:()=>h,p6:()=>_,pJ:()=>o,ru:()=>v,s3:()=>w,wV:()=>f,yM:()=>E,z0:()=>p});var r=i(95108),n=i(6774);const s=Number.POSITIVE_INFINITY,a=Math.PI,o=2*a,l=128/a,u=256/360,h=a/180,c=1/Math.LN2;function y(t,e){return(t%=e)>=0?t:t+e}function p(t){return y(t*l,256)}function f(t){return y(t*u,256)}function _(t){return Math.log(t)*c}function m(t,e,i){return t*(1-i)+e*i}const g=8,d=14,x=16;function b(t){return g+Math.max((t-d)*x,0)}function w(t,e,i){let r,n,s,a=0;for(const o of i){r=o.length;for(let i=1;i<r;++i)n=o[i-1],s=o[i],n.y>e!=s.y>e&&((s.x-n.x)*(e-n.y)-(s.y-n.y)*(t-n.x)>0?a++:a--)}return 0!==a}function v(t,e,i,n){let s,a,o,l;const u=n*n;for(const n of i){const i=n.length;if(!(i<2)){s=n[0].x,a=n[0].y;for(let h=1;h<i;++h){if(o=n[h].x,l=n[h].y,(0,r.Ng)(t,e,s,a,o,l)<u)return!0;s=o,a=l}}}return!1}function T(t,e){if(0===e||Number.isNaN(e))return t;const i=[],r=new n.bR(0,0),s=new n.bR(0,0),a=new n.bR(0,0);for(let o=0;o<t.length;o++){const l=t[o],u=[];for(let t=0;t<l.length;t++){const i=l[t-1],o=l[t],h=l[t+1];0===t?r.setCoords(0,0):r.assignSub(o,i).normalize().rightPerpendicular(),t===l.length-1?s.setCoords(0,0):s.assignSub(h,o).normalize().rightPerpendicular(),a.assignAdd(r,s).normalize();const c=a.x*s.x+a.y*s.y;0!==c&&a.scale(1/c),u.push(n.bR.add(o,a.scale(e)))}i.push(u)}return i}function E(t,e,i,r){const s=new n.bR(t[0],t[1]);if(s.scale(r),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),r=Math.sin(t);s.rotate(e,r)}return s}},45013:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(4718),n=i(4264);class s{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,r.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,i)=>this._create(t,e,i)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){const e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){const i=this.getStyleLayerByUID(t),r=0!==i?.getLayoutValue("symbol-placement",e);let n=i?.getLayoutValue("icon-rotation-alignment",e);2===n&&(n=r?0:1);let s=i?.getLayoutValue("text-rotation-alignment",e);2===s&&(s=r?0:1);const a=i?.getPaintValue("icon-translate",e),o=i?.getPaintValue("icon-translate-anchor",e),l=i?.getPaintValue("text-translate",e),u=i?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:i?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:i?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:i?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:i?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:n,textRotationAlignment:s,iconTranslateAnchor:o,iconTranslate:a,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){const e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){const e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;const i=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let r,n=!0;const a=this._layerByName[t.id];if(a){const o=this.layers.indexOf(a);e||(e=o),e===o?(n=!1,r=s._recreateLayer(t,a),this.layers[e]=r,i.layers[e]=t):(this.layers.splice(o,1),i.layers.splice(o,1),r=this._create(t,e,this.layers),this.layers.splice(e,0,r),i.layers.splice(e,0,t))}else r=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(r),i.layers.push(t)):(this.layers.splice(e,0,r),i.layers.splice(e,0,t));this._layerByName[t.id]=r,this._uidToLayer.set(r.uid,r),n&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){const e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){const e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);const i=this.layers.indexOf(e);this.layers.splice(i,1),this._style.layers.splice(i,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){const e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){const e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:i.layout,paint:e},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].paint=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setLayoutProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:e,paint:i.paint},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].layout=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setStyleLayerVisibility(t,e){const i=this._layerByName[t];if(!i)return;const r=i.layout||{};r.visibility=e;const n={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:r,paint:i.paint},a=s._recreateLayer(n,i),o=this.layers.indexOf(i);this.layers[o]=a,this._style.layers[o].layout=r,this._layerByName[i.id]=a,this._uidToLayer.set(i.uid,a)}getStyleLayerVisibility(t){const e=this._layerByName[t];if(!e)return"none";const i=e.layout;return i?.visibility??"visible"}_recomputeZValues(){const t=this.layers,e=1/(t.length+1);for(let i=0;i<t.length;i++)t[i].z=1-(1+i)*e}_identifyRefLayers(){const t=[],e=[];let i=0;for(const r of this.layers){const n=r.layout;if(1===r.type){const e=r;let s=r.source+"|"+r.sourceLayer;s+="|"+(n?.visibility??""),s+="|"+r.minzoom,s+="|"+r.maxzoom,s+="|"+JSON.stringify(r.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(s+="|"+i),t.push({key:s,layer:r})}else if(2===r.type){const t=r,s=r.paint,a=null!=s&&(null!=s["line-pattern"]||null!=s["line-dasharray"]);let o=r.source+"|"+r.sourceLayer;o+="|"+(n?.visibility??""),o+="|"+r.minzoom,o+="|"+r.maxzoom,o+="|"+JSON.stringify(r.filter),o+="|"+(void 0!==n?n["line-cap"]:""),o+="|"+(void 0!==n?n["line-join"]:""),(t.hasDataDrivenLine||a)&&(o+="|"+i),e.push({key:o,layer:r})}++i}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,i;t.sort((t,e)=>t.key<e.key?-1:t.key>e.key?1:0);const r=t.length;for(let n=0;n<r;n++){const s=t[n];if(s.key===e)s.layer.refLayerId=i;else if(e=s.key,i=s.layer.id,1===s.layer.type){if(!s.layer.getPaintProperty("fill-outline-color"))for(let a=n+1;a<r;a++){const r=t[a];if(r.key!==e)break;if(r.layer.getPaintProperty("fill-outline-color")){t[n]=r,t[a]=s,i=r.layer.id;break}}}else if(2===s.layer.type){let a=s.layer;for(let o=n+1;o<r;o++){const r=t[o];if(r.key!==e)break;const l=r.layer;(a.canUseThinTessellation&&!l.canUseThinTessellation||!a.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(a=l,t[n]=r,t[o]=s,i=r.layer.id)}}}}_create(t,e,i){const r=1-(1+e)*(1/(i.length+1)),s=this._runningId++;switch(t.type){case"background":return new n.lf(0,t,r,s);case"fill":return new n.A4(1,t,r,s);case"line":return new n.tU(2,t,r,s);case"symbol":return new n.V1(3,t,r,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,r,s)}return null}static _recreateLayer(t,e){switch(t.type){case"background":return new n.lf(0,t,e.z,e.uid);case"fill":return new n.A4(1,t,e.z,e.uid);case"line":return new n.tU(2,t,e.z,e.uid);case"symbol":return new n.V1(3,t,e.z,e.uid);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,e.z,e.uid)}return null}}},63907:(t,e,i)=>{i.d(e,{$0:()=>c,CQ:()=>m,Fq:()=>f,H0:()=>s,SB:()=>l,WR:()=>r,XN:()=>a,iE:()=>o,ld:()=>u,nI:()=>_,pe:()=>n,r6:()=>y,vt:()=>h,yI:()=>p});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},a=Object.values(s),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},h={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},c=0,y=36064,p=36065,f=36066,_=33306,m={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}},68197:(t,e,i)=>{i.d(e,{A:()=>u});var r=i(40876),n=i(4576),s=i(34727),a=i(56507);function o(t){return(0,s.qE)((0,a.Vr)(t),0,255)}function l(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class u{static blendColors(t,e,i,r=new u){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){const i=(0,r.lT)(t);return i?u.fromArray(i,e):null}static fromHex(t,e=new u){const i=(0,r.oW)(t);return i?u.fromArray(i,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const i=(0,r.Eq)(t);return i?u.fromArray(i,e):null}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,n.yc)(t))u.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${n?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),i=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,i,r,o(255*this.a)]:[e,i,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}u.prototype.declaredClass="esri.Color"},69397:(t,e,i)=>{i.d(e,{$B:()=>n,Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>f,ez:()=>y,lM:()=>a,qK:()=>c});var r=i(34275);function n(t){return 32+t.length}const s=16;function a(t){if(!t)return 0;let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let i=y;for(let r=0;r<e;r++)i+=l(t[r]);return i}(t);let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return n(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+p:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return y+t.length*e}const c=32,y=16,p=145,f=64},74038:(t,e,i)=>{i.d(e,{_:()=>r});class r{constructor(t,e,i,r,n,s=!1,a=0,o=!1){this.name=t,this.count=e,this.type=i,this.offset=r,this.stride=n,this.normalized=s,this.divisor=a,this.integer=o}}},76213:(t,e,i)=>{i.d(e,{C2:()=>a,CQ:()=>r,DY:()=>n,GR:()=>_,Gh:()=>l,MZ:()=>y,TB:()=>f,U5:()=>o,_M:()=>u,cp:()=>m,eG:()=>s,fq:()=>p,hM:()=>c,ie:()=>h});const r=512,n=29,s=24,a=4,o=6,l=1.05,u=3,h=3,c=4,y=1,p=10,f=256,_=32,m=512},80081:(t,e,i)=>{i.d(e,{A:()=>r}),i(44208);class r{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}static i1616to32(t,e){return 65535&t|e<<16}static i8888to32(t,e,i,r){return 255&t|(255&e)<<8|(255&i)<<16|r<<24}static i8816to32(t,e,i){return 255&t|(255&e)<<8|i<<16}}},85079:(t,e,i)=>{i.d(e,{Xk:()=>n,_u:()=>s});var r=i(21818);function n(t){let e=0;return(0,r.zI)(new Map(t.map(({name:t,count:i})=>{const r=[t,e];return 16===i?e+=4:9===i?e+=3:++e,r})))}function s(t){const e=new Map;let i=0;return t.forEach(t=>t.forEach(({name:t,count:r})=>{e.set(t,i),16===r?i+=4:9===r?i+=3:++i})),e}},85334:(t,e,i)=>{i.d(e,{$:()=>g,IB:()=>a,Iy:()=>w,N2:()=>d,RH:()=>b,ZD:()=>x});var r=i(68197),n=i(4576),s=i(4718);function a(t){return"r"in t&&"g"in t&&"b"in t}function o(t){return"h"in t&&"s"in t&&"v"in t}function l(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}i(34727),i(87317),i(91829);const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function y(t,e){const i=[];let r,n;if(t[0].length!==e.length)throw new Error("dimensions do not match");const s=t.length,a=t[0].length;let o=0;for(r=0;r<s;r++){for(o=0,n=0;n<a;n++)o+=t[r][n]*e[n];i.push(o)}return i}function p(t){const e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),i=y(h,e);return{x:100*i[0],y:100*i[1],z:100*i[2]}}function f(t){const e=y(c,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function _(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function m(t){const e=t.l,i=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*i[0],y:100*i[1],z:108.883*i[2]}}function g(t){return a(t)?t:u(t)?function(t){return f(m(function(t){const e=t.l,i=t.c,r=t.h;return{l:e,a:i*Math.cos(r),b:i*Math.sin(r)}}(t)))}(t):l(t)?function(t){return f(m(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?f(t):o(t)?function(t){const e=(t.h+360)%360/60,i=t.s/100,r=t.v/100*255,n=r*i,s=n*(1-Math.abs(e%2-1));let a;switch(Math.floor(e)){case 0:a={r:n,g:s,b:0};break;case 1:a={r:s,g:n,b:0};break;case 2:a={r:0,g:n,b:s};break;case 3:a={r:0,g:s,b:n};break;case 4:a={r:s,g:0,b:n};break;case 5:case 6:a={r:n,g:0,b:s};break;default:a={r:0,g:0,b:0}}return a.r=Math.round(a.r+r-n),a.g=Math.round(a.g+r-n),a.b=Math.round(a.b+r-n),a}(t):t}function d(t){return o(t)?t:function(t){const e=t.r,i=t.g,r=t.b,n=Math.max(e,i,r),s=n-Math.min(e,i,r);let a=n,o=0===s?0:n===e?(i-r)/s%6:n===i?(r-e)/s+2:(e-i)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(g(t))}function x(t){return l(t)?t:function(t){return _(p(t))}(g(t))}function b(t){return u(t)?t:function(t){return function(t){const e=t.l,i=t.a,r=t.b,n=Math.sqrt(i*i+r*r);let s=Math.atan2(r,i);return s=s>0?s:s+2*Math.PI,{l:e,c:n,h:s}}(_(p(t)))}(g(t))}function w(t,e,i={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new r.A(t):t)).length||1===e){const i=[],r=t[0];for(let t=0;t<e;t++)i.push(r.clone());return i}if(i.shuffle&&(t=(0,n.k4)((0,s.o8)(t),i.seed)),t.length>=e){const i=[],r=(t.length-1)/(e-1);for(let n=0;n<e;n++){const e=Math.round(n*r);i.push(t[e].clone())}return i}return function(t,e,i={}){const r=[],s=t.length-1,a=Math.ceil((e-t.length)/s);t:for(let n=0;n<s;n++){const s=t[n],o=t[n+1];for(let n=1;n<=a;n++){const l=n/(a+1);if(r.push(T(s,o,l,i)),r.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,n.k4)(r,i.seed??1)]}(t,e,i)}const v=(t,e)=>{const i=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+i))};function T(t,e,i,s={}){const a=t.r,o=t.g,l=t.b,u=e.r,h=e.g,c=e.b,y=Math.round(a+(u-a)*i),p=Math.round(o+(h-o)*i),f=Math.round(l+(c-l)*i);if(!s.offset)return new r.A([y,p,f]);const _=(0,n.Mo)(s.seed);return new r.A([v(y,_),v(p,_),v(f,_)])}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5897],{4264:(t,e,i)=>{i.d(e,{lf:()=>At,L:()=>Ot,A4:()=>St,aR:()=>Bt,tU:()=>Lt,V1:()=>Nt,uU:()=>Mt});var r=i(19419),n=i(5408),s=i(13195),a=i(80081),o=i(63907),l=i(85079),u=i(74038);class h{constructor(t){this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildAttributesInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildAttributesInfo(),this._locations}get geometryLayout(){return this._geometryLayout||this._buildAttributesInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildAttributesInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildAttributesInfo(),this._uniforms}getShaderHeader(){return this._shaderHeader||this._buildAttributesInfo(),this._shaderHeader}getShaderMain(){return this._shaderMain||this._buildAttributesInfo(),this._shaderMain}setDataUniforms(t,e,i,r,n){const s=this.getUniforms();for(const a of s){const{name:s,type:o,getValue:l}=a,u=l(i,e,r,n);if(null!==u)switch(o){case"float":t.setUniform1f(s,u);break;case"vec2":t.setUniform2fv(s,u);break;case"vec4":t.setUniform4fv(s,u)}}}encodeAttributes(t,e,i,r){const n=this.attributesInfo,s=this.getEncodingInfos(),a=[];let o=0,l=0;for(const u of Object.keys(s)){const h=s[u],{type:c,precisionFactor:y,isLayout:p}=n[u],f=p?i.getLayoutProperty(u):i.getPaintProperty(u),_=f.interpolator?.getInterpolationRange(e);let m=0;for(const i of h){const{offset:n,bufferElementsToAdd:s}=i;if(s>0){for(let t=0;t<s;t++)a.push(0);o+=l,l=i.bufferElementsToAdd}const u=r??f.getValue(_?_[m]:e,t);switch(c){case 0:case 1:a[o]|=this._encodeByte(u*(y||1),8*n);break;case 2:case 3:a[o]|=this._encodeShort(u*(y||1),8*n);break;case 4:case 5:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8);break;case 6:case 7:a[o]|=this._encodeShort(u*(y||1),8*n),a[o]|=this._encodeShort(u*(y||1),8*n+16);break;case 8:case 9:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8),a[o]|=this._encodeByte(u*(y||1),8*n+16),a[o]|=this._encodeByte(u*(y||1),8*n+24);break;case 10:a[o]=this._encodeColor(u);break;case 11:case 12:this._encodePattern(o,a,u);break;default:throw new Error("Unsupported encoding type")}m++}}return a}getAtributeState(t){let e=0;const i=3+2*t;return e|=this._bit(i),e|=this._bit(i+1)<<1,e}static{this._encodingInfo={0:{dataType:o.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:o.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:o.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:o.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:o.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_buildAttributesInfo(){const t=[],e={},{attributesInfo:i,attributes:r}=this,n={};let s=-1,a=-1;for(const o of r){a++;const r=this.getAtributeState(a);if(0===r||3===r)continue;const l=i[o],u=[];e[o]=u;const c=l.type;for(let e=0;e<r;e++){const{dataType:e,bytesPerElement:i,count:r,normalized:a}=h._encodingInfo[c],o=i*r,l=`${e}-${!0===a}`;let y=n[l],p=0;if(!y||y.count+r>4)s++,y={dataIndex:s,count:0,offset:0},4!==r&&(n[l]=y),t.push({location:-1,name:"a_data_"+s,count:r,type:e,normalized:a}),p=Math.ceil(Math.max(o/4,1));else{const e=t[y.dataIndex];e.count+=r,p=Math.ceil(Math.max(e.count*i/4,1))-Math.ceil(Math.max(y.offset/4,1))}u.push({dataIndex:y.dataIndex,offset:y.offset,bufferElementsToAdd:p}),y.offset+=o,y.count+=r}}for(const e of t)switch(e.type){case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:e.count=4;break;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:e.count+=e.count%2}this._buildVertexBufferLayout(t),this._buildShaderInfo(t,e),this._propertyEncodingInfo=e}_buildVertexBufferLayout(t){const e=this.baseGeometryLayout;let i=e[0].stride;if(0===t.length)this._geometryLayout=e;else{const r=[];let n=i;for(const e of t)i+=c(e.type)*e.count;for(const t of e)r.push(new u._(t.name,t.count,t.type,t.offset,i,t.normalized));for(const e of t)r.push(new u._(e.name,e.count,e.type,n,i,e.normalized)),n+=c(e.type)*e.count;this._geometryLayout=r}this.opacityLayout?this._locations=(0,l._u)([this._geometryLayout,this.opacityLayout]):this._locations=(0,l.Xk)(this._geometryLayout),this._stride=i}_buildShaderInfo(t,e){let i="\n",r="\n";const n=[];for(const e of t)i+=`attribute ${this._getType(e.count)} ${e.name};\n`;const{attributesInfo:s,attributes:a}=this;let o=-1;for(const t of a){o++;const{name:a,type:l,precisionFactor:u,isLayout:c}=s[t],p=u&&1!==u?" * "+1/u:"",{bytesPerElement:f,count:_}=h._encodingInfo[l],m=t=>`a_data_${t.dataIndex}${y(_,t.offset,f)}`;switch(this.getAtributeState(o)){case 0:{const e=this._getType(_),s=`u_${a}`;n.push({name:s,type:e,getValue:(e,i,r,n)=>{const s=c?e.getLayoutValue(t,i):e.getPaintValue(t,i);if(11===l){const t=e.getDashKey(s,e.getLayoutValue("line-cap",i)),r=n.getMosaicItemPosition(t,!1);if(null==r)return null;const{tl:a,br:o}=r;return[a[0],o[1],o[0],a[1]]}if(12===l){const e=n.getMosaicItemPosition(s,!t.includes("line-"));if(null==e)return null;const{tl:i,br:r}=e;return[i[0],r[1],r[0],i[1]]}if(10===l){const t=s[3];return[t*s[0],t*s[1],t*s[2],t]}return s}}),i+=`uniform ${e} ${s};\n`,r+=`${e} ${a} = ${s};\n`}break;case 1:{const i=m(e[t][0]);r+=`${this._getType(_)} ${a} = ${i}${p};\n`}break;case 2:{const s=`u_t_${a}`;n.push({name:s,type:"float",getValue:(e,i,r,n)=>(c?e.getLayoutProperty(t):e.getPaintProperty(t)).interpolator.interpolationUniformValue(r,i)}),i+=`uniform float ${s};\n`;const o=m(e[t][0]),l=m(e[t][1]);r+=`${this._getType(_)} ${a} = mix(${o}${p}, ${l}${p}, ${s});\n`}}}this._shaderHeader=i,this._shaderMain=r,this._uniforms=n}_bit(t){return(this._key&1<<t)>>t}_getType(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4"}throw new Error("Invalid count")}_encodeColor(t){const e=255*t[3];return a.A.i8888to32(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,i){if(!i?.rect)return;const r=i.rect,n=i.width,s=i.height;e[t]=this._encodeShort(r.x+2,0),e[t]|=this._encodeShort(r.y+2+s,16),e[t+1]=this._encodeShort(r.x+2+n,0),e[t+1]|=this._encodeShort(r.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const c=t=>{switch(t){case o.pe.FLOAT:case o.pe.INT:case o.pe.UNSIGNED_INT:return 4;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:case o.pe.HALF_FLOAT:return 2;case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:return 1}},y=(t,e,i)=>{const r=e/i;if(1===t)switch(r){case 0:return".x";case 1:return".y";case 2:return".z";case 3:return".w"}else if(2===t)switch(r){case 0:return".xy";case 1:return".yz";case 2:return".zw"}else if(3===t)switch(r){case 0:return".xyz";case 1:return".yzw"}return""};class p extends h{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.BYTE,0,2)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=p.GEOMETRY_LAYOUT,this.attributes=p.ATTRIBUTES,this.attributesInfo=p.ATTRIBUTES_INFO}}class f extends h{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1},"circle-color":{name:"color",type:10},"circle-opacity":{name:"opacity",type:1,precisionFactor:100},"circle-stroke-width":{name:"stroke_width",type:1,precisionFactor:4},"circle-stroke-color":{name:"stroke_color",type:10},"circle-stroke-opacity":{name:"stroke_opacity",type:1,precisionFactor:100},"circle-blur":{name:"blur",type:1,precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.attributes=f.ATTRIBUTES,this.attributesInfo=f.ATTRIBUTES_INFO}}class _ extends h{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100},"fill-pattern":{name:"tlbr",type:12,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=_.GEOMETRY_LAYOUT,this.attributes=_.ATTRIBUTES,this.attributesInfo=_.ATTRIBUTES_INFO}}class m extends h{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,8),new u._("a_offset",2,o.pe.BYTE,4,8),new u._("a_xnormal",2,o.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}constructor(t,e){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.attributes=e?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.attributesInfo=e?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE}}class g extends h{static{this.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_extrude_offset",4,o.pe.BYTE,4,16),new u._("a_dir_normal",4,o.pe.BYTE,8,16),new u._("a_accumulatedDistance",2,o.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-width":{name:"width",type:1,precisionFactor:2},"line-gap-width":{name:"gap_width",type:1,precisionFactor:2},"line-offset":{name:"offset",type:0,precisionFactor:2},"line-color":{name:"color",type:10},"line-opacity":{name:"opacity",type:1,precisionFactor:100},"line-blur":{name:"blur",type:1,precisionFactor:4},"line-pattern":{name:"tlbr",type:12,isOptional:!0},"line-dasharray":{name:"tlbr",type:11,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.attributes=g.ATTRIBUTES,this.attributesInfo=g.ATTRIBUTES_INFO}}const d=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_vertexOffset",2,o.pe.SHORT,4,16),new u._("a_texAngleRange",4,o.pe.UNSIGNED_BYTE,8,16),new u._("a_levelInfo",4,o.pe.UNSIGNED_BYTE,12,16)],x=[new u._("a_opacityInfo",1,o.pe.UNSIGNED_BYTE,0,1)];class b extends h{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10},"icon-opacity":{name:"opacity",type:1,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:10},"icon-halo-width":{name:"halo_width",type:1,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=b.ATTRIBUTES,this.attributesInfo=b.ATTRIBUTES_INFO}}class w extends h{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10},"text-opacity":{name:"opacity",type:1,precisionFactor:100},"text-halo-color":{name:"halo_color",type:10},"text-halo-width":{name:"halo_width",type:1,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"text-size":{name:"size",type:1,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=w.ATTRIBUTES,this.attributesInfo=w.ATTRIBUTES_INFO}}var v=i(68197),T=i(85334);function E(t,e,i,r){const n=3*t,s=3*(i-t)-n,a=1-n-s,o=3*e,l=3*(r-e)-o,u=1-o-l;function h(t){return((a*t+s)*t+n)*t}function c(t){return(3*a*t+2*s)*t+n}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let i,r,n,s,a,o;for(n=t,o=0;o<8;o++){if(s=h(n)-t,Math.abs(s)<e)return n;if(a=c(n),Math.abs(a)<1e-6)break;n-=s/a}if(i=0,r=1,n=t,n<i)return i;if(n>r)return r;for(;i<r;){if(s=h(n),Math.abs(s-t)<e)return n;t>s?i=n:r=n,n=.5*(r-i)+i}return n}(t,e))}}const I={};I.ease=E(.25,.1,.25,1),I.linear=E(0,0,1,1),I.easeIn=I["ease-in"]=E(.42,0,1,1),I.easeOut=I["ease-out"]=E(0,0,.58,1),I.easeInOut=I["ease-in-out"]=E(.42,0,.58,1);const P={kind:"null"},D={kind:"number"},R={kind:"string"},A={kind:"boolean"},S={kind:"color"},L={kind:"object"},N={kind:"value"};function O(t,e){return{kind:"array",itemType:t,n:e}}const B=[P,D,R,A,S,L,O(N)];function M(t){if("array"===t.kind){const e=M(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function U(t){if(null===t)return P;if("string"==typeof t)return R;if("boolean"==typeof t)return A;if("number"==typeof t)return D;if(t instanceof v.A)return S;if(Array.isArray(t)){let e;for(const i of t){const t=U(i);if(e){if(e!==t){e=N;break}}else e=t}return O(e||N,t.length)}return"object"==typeof t?L:N}function k(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||k(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(const e of B)if(k(t,e))return!0;return e.kind===t.kind}function G(t){if(null===t)return"";const e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof v.A?t.toString():JSON.stringify(t)}class z{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}class V{constructor(){this.type=N}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new V}evaluate(t,e){return t?.id}}class F{constructor(){this.type=R}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new F}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class C{constructor(){this.type=L}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new C}evaluate(t,e){return t?.values}}class ${constructor(){this.type=D}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new $}evaluate(t,e){return e}}class H{constructor(t,e,i){this._lhs=t,this._rhs=e,this._compare=i,this.type=A}static parse(t,e,i){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new H(wt(t[1],e),wt(t[2],e),i)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class Y{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new Y(wt(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class q{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new q(i)}evaluate(t,e){for(const i of this._args)if(!i.evaluate(t,e))return!1;return!0}}class j{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new j(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!0;return!1}}class W{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new W(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!1;return!0}}class X{constructor(t,e,i){this.type=t,this._args=e,this._fallback=i}static parse(t,e,i){if(t.length<4)throw new Error('"case" expects at least 3 arguments');if(t.length%2==1)throw new Error('"case" expects an odd number of arguments');let r;const n=[];for(let s=1;s<t.length-1;s+=2){const a=wt(t[s],e),o=wt(t[s+1],e,i);r||(r=o.type),n.push({condition:a,output:o})}const s=wt(t[t.length-1],e,i);return r||(r=s.type),new X(r,n,s)}evaluate(t,e){for(const i of this._args)if(i.condition.evaluate(t,e))return i.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class K{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw new Error('"coalesce" expects at least 1 argument');let i;const r=[];for(let n=1;n<t.length;n++){const s=wt(t[n],e);i||(i=s.type),r.push(s)}return new K(i,r)}evaluate(t,e){for(const i of this._args){const r=i.evaluate(t,e);if(null!==r)return r}return null}}class Z{constructor(t,e,i,r,n){this.type=t,this._input=e,this._labels=i,this._outputs=r,this._fallback=n}static parse(t,e){if(t.length<3)throw new Error('"match" expects at least 3 arguments');if(t.length%2==0)throw new Error('"case" expects an even number of arguments');let i;const r=wt(t[1],e),n=[],s={};let a;for(let r=2;r<t.length-1;r+=2){let o=t[r];Array.isArray(o)||(o=[o]);for(const t of o){const e=typeof t;if("string"!==e&&"number"!==e)throw new Error('"match" requires string or number literal as labels');if(a){if(e!==a)throw new Error('"match" requires labels to have the same type')}else a=e;s[t]=n.length}const l=wt(t[r+1],e);i||(i=l.type),n.push(l)}return new Z(i,r,s,n,wt(t[t.length-1],e))}evaluate(t,e){const i=this._input.evaluate(t,e);return(this._outputs[this._labels[i]]||this._fallback).evaluate(t,e)}}class J{constructor(t,e,i,r,n){this._operator=t,this.type=e,this.interpolation=i,this.input=r,this._stops=n}static parse(t,e,i){const r=t[0];if(t.length<5)throw new Error(`"${r}" expects at least 4 arguments`);const n=t[1];if(!Array.isArray(n)||0===n.length)throw new Error(`"${n}" is not a valid interpolation`);switch(n[0]){case"linear":if(1!==n.length)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==n.length||"number"!=typeof n[1])throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==n.length)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){const e=n[t];if("number"!=typeof e||e<0||e>1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${n[0]}"`)}if(t.length%2!=1)throw new Error(`"${r}" expects an even number of arguments`);const s=wt(t[2],e,D);let a;"interpolate-hcl"===r||"interpolate-lab"===r?a=S:i&&"value"!==i.kind&&(a=i);const o=[];for(let i=3;i<t.length;i+=2){const n=t[i];if("number"!=typeof n)throw new Error(`"${r}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=n)throw new Error(`"${r}" requires strictly ascending stop inputs`);const s=wt(t[i+1],e,a);a||(a=s.type),o.push([n,s])}if(a&&a!==S&&a!==D&&("array"!==a.kind||a.itemType!==D))throw new Error(`"${r}" cannot interpolate type ${M(a)}`);return new J(r,a,n,s,o)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this.input.evaluate(t,e);if(r<=i[0][0])return i[0][1].evaluate(t,e);if(r>=i[i.length-1][0])return i[i.length-1][1].evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););const a=i[n-1][0],o=i[n][0],l=J.interpolationRatio(this.interpolation,r,a,o),u=i[n-1][1].evaluate(t,e),h=i[n][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(h))return u.map((t,e)=>(0,s.GW)(t,h[e],l));if("color"===this.type.kind&&u instanceof v.A&&h instanceof v.A){const t=new v.A(u),e=new v.A(h);return new v.A([(0,s.GW)(t.r,e.r,l),(0,s.GW)(t.g,e.g,l),(0,s.GW)(t.b,e.b,l),(0,s.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof h)return(0,s.GW)(u,h,l);throw new Error(`"${this._operator}" cannot interpolate type ${M(this.type)}`)}if("interpolate-hcl"===this._operator){const t=(0,T.RH)(u),e=(0,T.RH)(h),i=e.h-t.h,r=(0,T.$)({h:t.h+l*(i>180||i<-180?i-360*Math.round(i/360):i),c:(0,s.GW)(t.c,e.c,l),l:(0,s.GW)(t.l,e.l,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...r})}if("interpolate-lab"===this._operator){const t=(0,T.ZD)(u),e=(0,T.ZD)(h),i=(0,T.$)({l:(0,s.GW)(t.l,e.l,l),a:(0,s.GW)(t.a,e.a,l),b:(0,s.GW)(t.b,e.b,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...i})}throw new Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){const i=this._stops;if(1===i.length)return 0;if(t>=i[i.length-1][0])return 0;let r=0;for(;++r<i.length&&!(t<i[r][0]););const n=i[r-1][0],s=i[r][0];return J.interpolationRatio(this.interpolation,e,n,s)}getInterpolationRange(t){const e=this._stops;if(1===e.length){const t=e[0][0];return[t,t]}const i=e[e.length-1][0];if(t>=i)return[i,i];let r=0;for(;++r<e.length&&!(t<e[r][0]););return[e[r-1][0],e[r][0]]}static interpolationRatio(t,e,i,r){let n=0;return"linear"===t[0]?n=J._exponentialInterpolationRatio(e,1,i,r):"exponential"===t[0]?n=J._exponentialInterpolationRatio(e,t[1],i,r):"cubic-bezier"===t[0]&&(n=E(t[1],t[2],t[3],t[4])(J._exponentialInterpolationRatio(e,1,i,r),1e-5)),n<0?n=0:n>1&&(n=1),n}static _exponentialInterpolationRatio(t,e,i,r){const n=r-i;if(0===n)return 0;const s=t-i;return 1===e?s/n:(e**s-1)/(e**n-1)}}class Q{constructor(t,e,i){this.type=t,this._input=e,this._stops=i}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const i=wt(t[1],e,D);let r;const n=[];n.push([-1/0,wt(t[2],e)]);for(let i=3;i<t.length;i+=2){const s=t[i];if("number"!=typeof s)throw new Error('"step" requires stop inputs as literal numbers');if(n.length&&n[n.length-1][0]>=s)throw new Error('"step" requires strictly ascending stop inputs');const a=wt(t[i+1],e);r||(r=a.type),n.push([s,a])}return new Q(r,i,n)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this._input.evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););return this._stops[n-1][1].evaluate(t,e)}}class tt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,i){if(t.length<4)throw new Error('"let" expects at least 3 arguments');if(t.length%2==1)throw new Error('"let" expects an odd number of arguments');const r=new z(e);for(let i=1;i<t.length-1;i+=2){const n=t[i];if("string"!=typeof n)throw new Error(`"let" requires a string to define variable names - found ${n}`);r.add(n,wt(t[i+1],e))}const n=wt(t[t.length-1],r,i);return new tt(n.type,n)}evaluate(t,e){return this._output.evaluate(t,e)}}class et{constructor(t,e){this.type=t,this.output=e}static parse(t,e,i){if(2!==t.length||"string"!=typeof t[1])throw new Error('"var" requires just one literal string argument');const r=e.get(t[1]);if(!r)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new et(i||N,r)}evaluate(t,e){return this.output.evaluate(t,e)}}class it{constructor(t,e,i){this.type=t,this._index=e,this._array=i}static parse(t,e){if(3!==t.length)throw new Error('"at" expects 2 arguments');const i=wt(t[1],e,D),r=wt(t[2],e);return new it(r.type.itemType,i,r)}evaluate(t,e){const i=this._index.evaluate(t,e),r=this._array.evaluate(t,e);if(i<0||i>=r.length)throw new Error('"at" index out of bounds');if(i!==Math.floor(i))throw new Error('"at" index must be an integer');return r[i]}}class rt{constructor(t,e){this._key=t,this._obj=e,this.type=N}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new rt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new rt(i,r);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[i]:t?.values[i]}}class nt{constructor(t,e){this._key=t,this._obj=e,this.type=A}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new nt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new nt(i,r);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?i in this._obj.evaluate(t,e):!!t?.values[i]}}class st{constructor(t,e){this._key=t,this._vals=e,this.type=A}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new st(wt(t[1],e),wt(t[2],e))}evaluate(t,e){const i=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(i)}}class at{constructor(t,e,i){this._item=t,this._array=e,this._from=i,this.type=D}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const i=wt(t[1],e),r=wt(t[2],e);if(4===t.length){const n=wt(t[3],e,D);return new at(i,r,n)}return new at(i,r)}evaluate(t,e){const i=this._item.evaluate(t,e),r=this._array.evaluate(t,e);if(this._from){const n=this._from.evaluate(t,e);if(n!==Math.floor(n))throw new Error('"index-of" index must be an integer');return r.indexOf(i,n)}return r.indexOf(i)}}class ot{constructor(t){this._arg=t,this.type=D}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const i=wt(t[1],e);return new ot(i)}evaluate(t,e){const i=this._arg.evaluate(t,e);if("string"==typeof i)return i.length;if(Array.isArray(i))return i.length;throw new Error('"length" expects string or array')}}class lt{constructor(t,e,i,r){this.type=t,this._array=e,this._from=i,this._to=r}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const i=wt(t[1],e),r=wt(t[2],e,D);if(r.type!==D)throw new Error('"slice" index must return a number');if(4===t.length){const n=wt(t[3],e,D);if(n.type!==D)throw new Error('"slice" index must return a number');return new lt(i.type,i,r,n)}return new lt(i.type,i,r)}evaluate(t,e){const i=this._array.evaluate(t,e);if(!Array.isArray(i)&&"string"!=typeof i)throw new Error('"slice" input must be an array or a string');const r=this._from.evaluate(t,e);if(r<0||r>=i.length)throw new Error('"slice" index out of bounds');if(r!==Math.floor(r))throw new Error('"slice" index must be an integer');if(this._to){const n=this._to.evaluate(t,e);if(n<0||n>=i.length)throw new Error('"slice" index out of bounds');if(n!==Math.floor(n))throw new Error('"slice" index must be an integer');return i.slice(r,n)}return i.slice(r)}}class ut{constructor(){this.type=A}static parse(t){if(1!==t.length)throw new Error('"has-id" expects no arguments');return new ut}evaluate(t,e){return void 0!==t?.id}}class ht{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static parse(t,e,i){const r=t.slice(1).map(t=>wt(t,e));return new ht(r,i)}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class ct{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){const i=t.slice(1).map(t=>wt(t,e));return new ct(i,ct.ops[t[0]])}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class yt{constructor(t){this._args=t,this.type=R}static parse(t,e){return new yt(t.slice(1).map(t=>wt(t,e)))}evaluate(t,e){return this._args.map(i=>i.evaluate(t,e)).join("")}}class pt{constructor(t,e){this._arg=t,this._calculate=e,this.type=R}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw new Error(`${t[0]} expects 1 argument`);const i=wt(t[1],e);return new pt(i,pt.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class ft{constructor(t){this._args=t,this.type=S}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const i=t.slice(1).map(t=>wt(t,e));return new ft(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e));return new v.A({r:i,g:r,b:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class _t{constructor(t){this._args=t,this.type=S}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const i=t.slice(1).map(t=>wt(t,e));return new _t(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e)),s=this._validateAlpha(this._args[3].evaluate(t,e));return new v.A({r:i,g:r,b:n,a:s})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class mt{constructor(t){this._color=t,this.type=O(D,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const i=wt(t[1],e);return new mt(i)}evaluate(t,e){return new v.A(this._color.evaluate(t,e)).toRgba()}}class gt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0];if(t.length<2)throw new Error(`${i} expects at least one argument`);let r,n=1;if("array"===i){if(t.length>2){switch(t[1]){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;default:throw new Error('"array" type argument must be string, number or boolean')}n++}else r=N;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw new Error('"array" length argument must be a positive integer literal');n++}r=O(r,e)}else switch(i){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;case"object":r=L}const s=[];for(;n<t.length;n++){const i=wt(t[n],e);s.push(i)}return new gt(r,s)}evaluate(t,e){let i;for(const r of this._args){const n=r.evaluate(t,e);if(i=U(n),k(i,this.type))return n}throw new Error(`Expected ${M(this.type)} but got ${M(i)}`)}}class dt{static{this.types={"to-boolean":A,"to-color":S,"to-number":D,"to-string":R}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0],r=dt.types[i];if(r===A||r===R){if(2!==t.length)throw new Error(`${i} expects one argument`)}else if(t.length<2)throw new Error(`${i} expects at least one argument`);const n=[];for(let i=1;i<t.length;i++){const r=wt(t[i],e);n.push(r)}return new dt(r,n)}evaluate(t,e){if(this.type===A)return Boolean(this._args[0].evaluate(t,e));if(this.type===R)return G(this._args[0].evaluate(t,e));if(this.type===D){for(const i of this._args){const r=Number(i.evaluate(t,e));if(!isNaN(r))return r}return null}if(this.type===S){for(const i of this._args)try{const r=dt.toColor(i.evaluate(t,e));if(r instanceof v.A)return r}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return G(t)}static toNumber(t){const e=Number(t);if(isNaN(e))throw new Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof v.A)return t;if("string"==typeof t){const e=v.A.fromString(t);if(e)return e;throw new Error(`"${t}" is not a color`)}if(Array.isArray(t))return v.A.fromArray(t);throw new Error(`"${t}" is not a color`)}}class xt{constructor(t){this._val=t,this.type=U(t)}static parse(t){if(2!==t.length)throw new Error('"literal" expects 1 argument');return new xt(t[1])}evaluate(t,e){return this._val}}class bt{constructor(t){this._arg=t,this.type=R}static parse(t,e){if(2!==t.length)throw new Error('"typeof" expects 1 argument');return new bt(wt(t[1],e))}evaluate(t,e){return M(U(this._arg.evaluate(t,e)))}}function wt(t,e,i){const r=typeof t;if("string"===r||"boolean"===r||"number"===r||null===t){if(i)switch(i.kind){case"string":"string"!==r&&(t=dt.toString(t));break;case"number":"number"!==r&&(t=dt.toNumber(t));break;case"color":t=dt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw new Error("Expression must be a non empty array");const n=t[0];if("string"!=typeof n)throw new Error("First element of expression must be a string");const s=vt[n];if(void 0===s)throw new Error(`Invalid expression operator "${n}"`);if(!s)throw new Error(`Unimplemented expression operator "${n}"`);return s.parse(t,e,i)}const vt={array:gt,boolean:gt,collator:null,format:null,image:null,literal:xt,number:gt,"number-format":null,object:gt,string:gt,"to-boolean":dt,"to-color":dt,"to-number":dt,"to-string":dt,typeof:bt,accumulated:null,"feature-state":null,"geometry-type":F,id:V,"line-progress":null,properties:C,at:it,get:rt,has:nt,in:st,"index-of":at,length:ot,slice:lt,"!":Y,"!=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t!==e)}},"<":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<e)}},"<=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<=e)}},"==":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t===e)}},">":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>e)}},">=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>=e)}},all:q,any:j,case:X,coalesce:K,match:Z,within:null,interpolate:J,"interpolate-hcl":J,"interpolate-lab":J,step:Q,let:tt,var:et,concat:yt,downcase:pt,"is-supported-script":null,"resolved-locale":null,upcase:pt,rgb:ft,rgba:_t,"to-rgba":mt,"-":class extends ht{static parse(t,e){switch(t.length){case 2:return ht.parse(t,e,t=>-t[0]);case 3:return ht.parse(t,e,t=>t[0]-t[1]);default:throw new Error('"-" expects 1 or 2 arguments')}}},"*":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=1;for(const i of t)e*=i;return e})}},"/":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]/t[1]);throw new Error('"/" expects 2 arguments')}},"%":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]%t[1]);throw new Error('"%" expects 2 arguments')}},"^":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]**t[1]);throw new Error('"^" expects 1 or 2 arguments')}},"+":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=0;for(const i of t)e+=i;return e})}},abs:ct,acos:ct,asin:ct,atan:ct,ceil:ct,cos:ct,e:ct,floor:ct,ln:ct,ln2:ct,log10:ct,log2:ct,max:ct,min:ct,pi:ct,round:ct,sin:ct,sqrt:ct,tan:ct,zoom:$,"heatmap-density":null,"has-id":ut,none:W};class Tt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=wt(t,null,A);return new Tt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t))return!0;if(0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;const e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return Tt.convertComparison("==",t[1],t[2]);case"!=":return Tt.negate(Tt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return Tt.convertComparison(e,t[1],t[2]);case"in":return Tt.convertIn(t[1],t.slice(2));case"!in":return Tt.negate(Tt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return Tt.convertCombining(e,t.slice(1));case"has":return Tt.convertHas(t[1]);case"!has":return Tt.negate(Tt.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,i){switch(e){case"$type":return[t,["geometry-type"],i];case"$id":return[t,["id"],i];default:return[t,["get",e],i]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class Et{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var It=i(40876);class Pt{constructor(t,e){let i;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":i=!0;break;case"array":i="number"===t.value;break;default:i=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&vt[e[0]]){const i={number:D,color:S,string:R,boolean:A,enum:R};try{const r=wt(e,null,"array"===t.type?O(i[t.value]||N,t.length):i[t.type]);this.getValue=this._buildExpression(r,t),this.isDataDriven=!0,r instanceof J&&r.input instanceof $&&(this.interpolator=r)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}i&&"interval"===e.type&&(i=!1);const r=e?.stops&&e.stops.length>0;if(r)for(const i of e.stops)i[1]=this._validate(i[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),r)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=i?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else r?this.getValue=i?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=Pt._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=G(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(i,r)=>{try{const n=t.evaluate(r,i);return void 0===n?e.default:this._validate(n,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),void 0!==n&&(n=this._validate(n,e)),null!=n?n:void 0!==t.default?t.default:e.default}}_buildCategorical(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),n=this._categorical(n,t.stops),void 0!==n?n:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interval(n,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interpolate(n,t.stops,t.base||1):void 0!==t.default?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const i=e.length;for(let r=0;r<i;r++)if(e[r][0]===t)return e[r][1]}_interval(t,e){const i=e.length;let r=0;for(let n=0;n<i&&e[n][0]<=t;n++)r=n;return e[r][1]}_interpolate(t,e,i){let r,n;const a=e.length;for(let i=0;i<a;i++){const s=e[i];if(!(s[0]<=t)){n=s;break}r=s}if(r&&n){const e=n[0]-r[0],a=t-r[0],o=1===i?a/e:(i**a-1)/(i**e-1);if(Array.isArray(r[1])){const t=r[1],e=n[1],i=[];for(let r=0;r<t.length;r++)i.push((0,s.GW)(t[r],e[r],o));return i}return(0,s.GW)(r[1],n[1],o)}return r?r[1]:n?n[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,It.Vm)(t)??void 0:t instanceof v.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}var Dt=i(76213);class Rt{constructor(t,e,i,r){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"],this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=i,this.uid=r,t){case 0:this._layoutDefinition=Et.backgroundLayoutDefinition,this._paintDefinition=Et.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Et.fillLayoutDefinition,this._paintDefinition=Et.fillPaintDefinition;break;case 2:this._layoutDefinition=Et.lineLayoutDefinition,this._paintDefinition=Et.linePaintDefinition;break;case 3:this._layoutDefinition=Et.symbolLayoutDefinition,this._paintDefinition=Et.symbolPaintDefinition;break;case 4:this._layoutDefinition=Et.circleLayoutDefinition,this._paintDefinition=Et.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=Tt.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,i){let r;const n=this._layoutProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._layoutDefinition[t].default),r}getPaintValue(t,e,i){let r;const n=this._paintProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._paintDefinition[t].default),r}isPainterDataDriven(){const t=this._paintProperties;if(t)for(const e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,i,r,n,s,a){return!1}getFeatureInflatedBounds(t,e,i,r){return null}_parseLayout(t){const e={};for(const i in t){const r=this._layoutDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}_parsePaint(t){const e={};for(const i in t){const r=this._paintDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}computeAttributesKey(t,e,i,r){let n=0,s=0;for(const t of e){let e=3;if(!t||t!==r){const r=i[t],{isLayout:n,isOptional:s}=r,a=n?this.getLayoutProperty(t):this.getPaintProperty(t);e=a?.interpolator?2:a?.isDataDriven?1:s&&!a?3:0}s|=e<<n,n+=2}return s<<3|t}}class At extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.backgroundMaterial=new p(this.computeAttributesKey(0,p.ATTRIBUTES,p.ATTRIBUTES_INFO))}}class St extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),a=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=n?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||a?.isDataDriven;const o=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!o,this.hasDataDrivenOutlineColor=o?.isDataDriven,this.hasDataDrivenOutline=o?o.isDataDriven:!!n&&n.isDataDriven,this.hasDataDrivenOutline=(o?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new _(this.computeAttributesKey(1,_.ATTRIBUTES,_.ATTRIBUTES_INFO)),this.outlineMaterial=new m(this.computeAttributesKey(2,this.outlineUsesFillColor?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("fill-translate",e,t),a=r*Math.max(s[0],s[1]);return n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a,n}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("fill-translate",a,r),this.getPaintValue("fill-translate-anchor",a,r),o,n.ih);return t-=h*c.x,e-=h*c.y,!!(0,s.s3)(t,e,u)||(0,s.ru)(t,e,u,h*i)}}class Lt extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("line-pattern");if(this.lineMaterial=new g(this.computeAttributesKey(3,g.ATTRIBUTES,g.ATTRIBUTES_INFO,n?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){const t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<Dt.Gh){const t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let i;switch(e){case 0:default:i="Butt";break;case 1:i="Round";break;case 2:i="Square"}return`dasharray-[${t.toString()}]-${i}`}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("line-translate",e,t),a=r*Math.max(s[0],s[1]);n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a;const o=r*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=r*(this.getPaintValue("line-width",e,t)/2);return n[0]-=o+l,n[1]-=o+l,n[2]+=o+l,n[3]+=o+l,n}isIntersectingFeature(t,e,i,r,a,o,l){let u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("line-translate",a,r),this.getPaintValue("line-translate-anchor",a,r),o,n.ih);t-=h*c.x,e-=h*c.y;const y=h*this.getPaintValue("line-offset",a,r)||0;0!==y&&(u=(0,s.cP)(u,-y));const p=this.getPaintValue("line-width",a,r);return(0,s.ru)(t,e,u,h*(i+p/2))}}class Nt extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.iconMaterial=new b(this.computeAttributesKey(4,b.ATTRIBUTES,b.ATTRIBUTES_INFO)),this.textMaterial=new w(this.computeAttributesKey(6,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Ot extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.circleMaterial=new f(this.computeAttributesKey(5,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,i,r){const s=Ut(t);if(!s)return null;const a=this.getPaintValue("circle-translate",e,t),o=Math.max(a[0],a[1]);s[0]-=o,s[2]-=o,s[1]+=o,s[3]+=o;const l=r*(n.ih*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2);return s[0]-=l,s[1]-=l,s[2]+=l,s[3]+=l,s}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY,i*=h;const c=(0,s.yM)(this.getPaintValue("circle-translate",a,r),this.getPaintValue("circle-translate-anchor",a,r),o,h),y=h*(this.getPaintValue("circle-radius",a,r)+this.getPaintValue("circle-stroke-width",a,r));let p,f;for(const r of u)if(r)for(const n of r)if(p=n.x+c.x,f=n.y+c.y,Math.sqrt((t-p)*(t-p)+(e-f)*(e-f))-i<=y)return!0;return!1}}class Bt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("icon-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("icon-anchor",e),r=t.getLayoutProperty("icon-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("icon-offset",e),r=t.getLayoutProperty("icon-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("icon-padding",e),r=t.getLayoutProperty("icon-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("icon-rotate",e),r=t.getLayoutProperty("icon-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Mt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("text-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("text-anchor",e),r=t.getLayoutProperty("text-justify"),r?.isDataDriven?this._justifyProp=r:this.justify=t.getLayoutValue("text-justify",e),r=t.getLayoutProperty("text-letter-spacing"),r?.isDataDriven?this._letterSpacingProp=r:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),r=t.getLayoutProperty("text-line-height"),r?.isDataDriven?this._lineHeightProp=r:this.lineHeight=t.getLayoutValue("text-line-height",e),r=t.getLayoutProperty("text-max-angle"),r?.isDataDriven?this._maxAngleProp=r:this.maxAngle=t.getLayoutValue("text-max-angle",e),r=t.getLayoutProperty("text-max-width"),r?.isDataDriven?this._maxWidthProp=r:this.maxWidth=t.getLayoutValue("text-max-width",e),r=t.getLayoutProperty("text-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("text-offset",e),r=t.getLayoutProperty("text-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("text-padding",e),r=t.getLayoutProperty("text-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("text-rotate",e),r=t.getLayoutProperty("text-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("text-size",e),r=t.getLayoutProperty("text-writing-mode"),r?.isDataDriven?this._writingModeProp=r:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Ut(t){const e=t?.getGeometry();if(null==e)return null;let i=1/0,n=1/0,s=-1/0,a=-1/0;for(const t of e)if(t)for(const e of t)i=Math.min(i,e.x),n=Math.min(n,e.y),s=Math.max(s,e.x),a=Math.max(a,e.y);return(0,r.fA)(i,n,s,a)}},5408:(t,e,i)=>{i.d(e,{ih:()=>n,vA:()=>r});const r=4096,n=8},6774:(t,e,i)=>{i.d(e,{O3:()=>s,Ox:()=>a,bR:()=>r});class r{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new r(t[0],t[1])}clone(){return new r(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,r=this.y;return this.x=i*t-r*e,this.y=i*e+r*t,this}rotateReverse(t,e){const i=this.x,r=this.y;return this.x=i*t+r*e,this.y=-i*e+r*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,r=e.y-t.y;return Math.sqrt(i*i+r*r)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static sub(t,e){return new r(t.x-e.x,t.y-e.y)}}class n{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class s{constructor(t,e,i,r=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=r,this._pixelMargin=n,this._tileSize=512*r,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new r(t,e),this._firstPt=new r(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),s=new r(t,e),a=r.distance(this._prevPt,s);let o,l,u,h,c,y,p,f;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,l=s,u=this._intersect(l,o),this._start=this._dist+a*(1-this._r),this._lineTo(u.x,u.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,o=s,u=this._intersect(l,o),this._lineTo(u.x,u.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=s;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(h=(this._xmin-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(h=(this._xmax-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(h=(this._ymin-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(h=(this._ymax-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymax))),0===i.length)c?y?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):y?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+a*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+a*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=a,this._prevIsIn=i,this._prevPt=s}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let r=i.length;for(;r>=4&&(i[0].x===i[1].x&&i[0].x===i[r-2].x||i[0].y===i[1].y&&i[0].y===i[r-2].y);)i.pop(),i[0].x=i[r-2].x,i[0].y=i[r-2].y,--r}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let r=0;r<e;r++)i.push({line:t[r],start:this._starts[r]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,n,s;if(e.x>=this._xmin&&e.x<=this._xmax)n=e.y<=this._ymin?this._ymin:this._ymax,s=(n-t.y)/(e.y-t.y),i=t.x+s*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,s=(i-t.x)/(e.x-t.x),n=t.y+s*(e.y-t.y);else{n=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const r=(i-t.x)/(e.x-t.x),a=(n-t.y)/(e.y-t.y);r<a?(s=r,n=t.y+r*(e.y-t.y)):(s=a,i=t.x+a*(e.x-t.x))}return this._r=s,new r(i,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let n,s;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,e)))return;this._line.push(new r(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const i=n.x===t,a=n.y===e;if(i&&a)return;this._isH&&i||this._isV&&a?(n.x=t,n.y=e,s=this._line[this._line.length-2],s.x===t&&s.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(s=this._line[this._line.length-2],this._isH=s.x===t,this._isV=s.y===e)):(this._isH=s.x===t,this._isV=s.y===e)):(this._line.push(new r(t,e)),this._isH=i,this._isV=a)}else this._line.push(new r(t,e))}}class a{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new r(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new r(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;const r=-e,n=t+e,s=-e,a=t+e,l=[],u=[],h=i.length;for(let t=0;t<h;++t){const e=i[t];if(!e||e.length<2)continue;let o,h=e[0];const c=e.length;for(let i=1;i<c;++i)o=e[i],h.x===o.x&&(h.x<=r&&(h.y>o.y?(l.push(t),l.push(i),l.push(0),l.push(-1)):(u.push(t),u.push(i),u.push(0),u.push(-1))),h.x>=n&&(h.y<o.y?(l.push(t),l.push(i),l.push(1),l.push(-1)):(u.push(t),u.push(i),u.push(1),u.push(-1)))),h.y===o.y&&(h.y<=s&&(h.x<o.x?(l.push(t),l.push(i),l.push(2),l.push(-1)):(u.push(t),u.push(i),u.push(2),u.push(-1))),h.y>=a&&(h.x>o.x?(l.push(t),l.push(i),l.push(3),l.push(-1)):(u.push(t),u.push(i),u.push(3),u.push(-1)))),h=o}if(0===l.length||0===u.length)return;o.fillParent(i,u,l),o.fillParent(i,l,u);const c=[];o.calcDeltas(c,u,l),o.calcDeltas(c,l,u),o.addDeltas(c,i)}static fillParent(t,e,i){const r=i.length,n=e.length;for(let s=0;s<n;s+=4){const n=e[s],a=e[s+1],o=e[s+2],u=t[n][a-1],h=t[n][a];let c=8092,y=-1;for(let e=0;e<r;e+=4){if(i[e+2]!==o)continue;const r=i[e],n=i[e+1],s=t[r][n-1],a=t[r][n];switch(o){case 0:case 1:if(l(u.y,s.y,a.y)&&l(h.y,s.y,a.y)){const t=Math.abs(a.y-s.y);t<c&&(c=t,y=e)}break;case 2:case 3:if(l(u.x,s.x,a.x)&&l(h.x,s.x,a.x)){const t=Math.abs(a.x-s.x);t<c&&(c=t,y=e)}}}e[s+3]=y}}static calcDeltas(t,e,i){const r=e.length;for(let n=0;n<r;n+=4){const r=[],s=o.calcDelta(n,e,i,r);t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]),t.push(s)}}static calcDelta(t,e,i,r){const n=e[t+3];if(-1===n)return 0;const s=r.length;return s>1&&r[s-2]===n?0:(r.push(n),o.calcDelta(n,i,e,r)+1)}static addDeltas(t,e){const i=t.length;let r=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>r&&(r=i)}for(let n=0;n<i;n+=4){const i=e[t[n]],s=t[n+1],a=r-t[n+3];switch(t[n+2]){case 0:i[s-1].x-=a,i[s].x-=a,1===s&&(i[i.length-1].x-=a),s===i.length-1&&(i[0].x-=a);break;case 1:i[s-1].x+=a,i[s].x+=a,1===s&&(i[i.length-1].x+=a),s===i.length-1&&(i[0].x+=a);break;case 2:i[s-1].y-=a,i[s].y-=a,1===s&&(i[i.length-1].y-=a),s===i.length-1&&(i[0].y-=a);break;case 3:i[s-1].y+=a,i[s].y+=a,1===s&&(i[i.length-1].y+=a),s===i.length-1&&(i[0].y+=a)}}}}const l=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},13195:(t,e,i)=>{i.d(e,{GW:()=>m,IU:()=>b,Jo:()=>a,MG:()=>s,Wh:()=>y,cP:()=>T,os:()=>h,p6:()=>_,pJ:()=>o,ru:()=>v,s3:()=>w,wV:()=>f,yM:()=>E,z0:()=>p});var r=i(95108),n=i(6774);const s=Number.POSITIVE_INFINITY,a=Math.PI,o=2*a,l=128/a,u=256/360,h=a/180,c=1/Math.LN2;function y(t,e){return(t%=e)>=0?t:t+e}function p(t){return y(t*l,256)}function f(t){return y(t*u,256)}function _(t){return Math.log(t)*c}function m(t,e,i){return t*(1-i)+e*i}const g=8,d=14,x=16;function b(t){return g+Math.max((t-d)*x,0)}function w(t,e,i){let r,n,s,a=0;for(const o of i){r=o.length;for(let i=1;i<r;++i)n=o[i-1],s=o[i],n.y>e!=s.y>e&&((s.x-n.x)*(e-n.y)-(s.y-n.y)*(t-n.x)>0?a++:a--)}return 0!==a}function v(t,e,i,n){let s,a,o,l;const u=n*n;for(const n of i){const i=n.length;if(!(i<2)){s=n[0].x,a=n[0].y;for(let h=1;h<i;++h){if(o=n[h].x,l=n[h].y,(0,r.Ng)(t,e,s,a,o,l)<u)return!0;s=o,a=l}}}return!1}function T(t,e){if(0===e||Number.isNaN(e))return t;const i=[],r=new n.bR(0,0),s=new n.bR(0,0),a=new n.bR(0,0);for(let o=0;o<t.length;o++){const l=t[o],u=[];for(let t=0;t<l.length;t++){const i=l[t-1],o=l[t],h=l[t+1];0===t?r.setCoords(0,0):r.assignSub(o,i).normalize().rightPerpendicular(),t===l.length-1?s.setCoords(0,0):s.assignSub(h,o).normalize().rightPerpendicular(),a.assignAdd(r,s).normalize();const c=a.x*s.x+a.y*s.y;0!==c&&a.scale(1/c),u.push(n.bR.add(o,a.scale(e)))}i.push(u)}return i}function E(t,e,i,r){const s=new n.bR(t[0],t[1]);if(s.scale(r),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),r=Math.sin(t);s.rotate(e,r)}return s}},45013:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(4718),n=i(4264);class s{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,r.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,i)=>this._create(t,e,i)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){const e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){const i=this.getStyleLayerByUID(t),r=0!==i?.getLayoutValue("symbol-placement",e);let n=i?.getLayoutValue("icon-rotation-alignment",e);2===n&&(n=r?0:1);let s=i?.getLayoutValue("text-rotation-alignment",e);2===s&&(s=r?0:1);const a=i?.getPaintValue("icon-translate",e),o=i?.getPaintValue("icon-translate-anchor",e),l=i?.getPaintValue("text-translate",e),u=i?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:i?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:i?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:i?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:i?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:n,textRotationAlignment:s,iconTranslateAnchor:o,iconTranslate:a,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){const e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){const e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;const i=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let r,n=!0;const a=this._layerByName[t.id];if(a){const o=this.layers.indexOf(a);e||(e=o),e===o?(n=!1,r=s._recreateLayer(t,a),this.layers[e]=r,i.layers[e]=t):(this.layers.splice(o,1),i.layers.splice(o,1),r=this._create(t,e,this.layers),this.layers.splice(e,0,r),i.layers.splice(e,0,t))}else r=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(r),i.layers.push(t)):(this.layers.splice(e,0,r),i.layers.splice(e,0,t));this._layerByName[t.id]=r,this._uidToLayer.set(r.uid,r),n&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){const e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){const e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);const i=this.layers.indexOf(e);this.layers.splice(i,1),this._style.layers.splice(i,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){const e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){const e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:i.layout,paint:e},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].paint=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setLayoutProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:e,paint:i.paint},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].layout=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setStyleLayerVisibility(t,e){const i=this._layerByName[t];if(!i)return;const r=i.layout||{};r.visibility=e;const n={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:r,paint:i.paint},a=s._recreateLayer(n,i),o=this.layers.indexOf(i);this.layers[o]=a,this._style.layers[o].layout=r,this._layerByName[i.id]=a,this._uidToLayer.set(i.uid,a)}getStyleLayerVisibility(t){const e=this._layerByName[t];if(!e)return"none";const i=e.layout;return i?.visibility??"visible"}_recomputeZValues(){const t=this.layers,e=1/(t.length+1);for(let i=0;i<t.length;i++)t[i].z=1-(1+i)*e}_identifyRefLayers(){const t=[],e=[];let i=0;for(const r of this.layers){const n=r.layout;if(1===r.type){const e=r;let s=r.source+"|"+r.sourceLayer;s+="|"+(n?.visibility??""),s+="|"+r.minzoom,s+="|"+r.maxzoom,s+="|"+JSON.stringify(r.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(s+="|"+i),t.push({key:s,layer:r})}else if(2===r.type){const t=r,s=r.paint,a=null!=s&&(null!=s["line-pattern"]||null!=s["line-dasharray"]);let o=r.source+"|"+r.sourceLayer;o+="|"+(n?.visibility??""),o+="|"+r.minzoom,o+="|"+r.maxzoom,o+="|"+JSON.stringify(r.filter),o+="|"+(void 0!==n?n["line-cap"]:""),o+="|"+(void 0!==n?n["line-join"]:""),(t.hasDataDrivenLine||a)&&(o+="|"+i),e.push({key:o,layer:r})}++i}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,i;t.sort((t,e)=>t.key<e.key?-1:t.key>e.key?1:0);const r=t.length;for(let n=0;n<r;n++){const s=t[n];if(s.key===e)s.layer.refLayerId=i;else if(e=s.key,i=s.layer.id,1===s.layer.type){if(!s.layer.getPaintProperty("fill-outline-color"))for(let a=n+1;a<r;a++){const r=t[a];if(r.key!==e)break;if(r.layer.getPaintProperty("fill-outline-color")){t[n]=r,t[a]=s,i=r.layer.id;break}}}else if(2===s.layer.type){let a=s.layer;for(let o=n+1;o<r;o++){const r=t[o];if(r.key!==e)break;const l=r.layer;(a.canUseThinTessellation&&!l.canUseThinTessellation||!a.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(a=l,t[n]=r,t[o]=s,i=r.layer.id)}}}}_create(t,e,i){const r=1-(1+e)*(1/(i.length+1)),s=this._runningId++;switch(t.type){case"background":return new n.lf(0,t,r,s);case"fill":return new n.A4(1,t,r,s);case"line":return new n.tU(2,t,r,s);case"symbol":return new n.V1(3,t,r,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,r,s)}return null}static _recreateLayer(t,e){switch(t.type){case"background":return new n.lf(0,t,e.z,e.uid);case"fill":return new n.A4(1,t,e.z,e.uid);case"line":return new n.tU(2,t,e.z,e.uid);case"symbol":return new n.V1(3,t,e.z,e.uid);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,e.z,e.uid)}return null}}},63907:(t,e,i)=>{i.d(e,{$0:()=>c,CQ:()=>m,Fq:()=>f,H0:()=>s,SB:()=>l,WR:()=>r,XN:()=>a,iE:()=>o,ld:()=>u,nI:()=>_,pe:()=>n,r6:()=>y,vt:()=>h,yI:()=>p});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},a=Object.values(s),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},h={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},c=0,y=36064,p=36065,f=36066,_=33306,m={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}},68197:(t,e,i)=>{i.d(e,{A:()=>u});var r=i(40876),n=i(4576),s=i(34727),a=i(56507);function o(t){return(0,s.qE)((0,a.Vr)(t),0,255)}function l(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class u{static blendColors(t,e,i,r=new u){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){const i=(0,r.lT)(t);return i?u.fromArray(i,e):null}static fromHex(t,e=new u){const i=(0,r.oW)(t);return i?u.fromArray(i,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const i=(0,r.Eq)(t);return i?u.fromArray(i,e):null}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,n.yc)(t))u.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${n?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),i=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,i,r,o(255*this.a)]:[e,i,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}u.prototype.declaredClass="esri.Color"},69397:(t,e,i)=>{i.d(e,{$B:()=>n,Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>f,ez:()=>y,lM:()=>a,qK:()=>c});var r=i(34275);function n(t){return 32+t.length}const s=16;function a(t){if(!t)return 0;let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let i=y;for(let r=0;r<e;r++)i+=l(t[r]);return i}(t);let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return n(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+p:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return y+t.length*e}const c=32,y=16,p=145,f=64},74038:(t,e,i)=>{i.d(e,{_:()=>r});class r{constructor(t,e,i,r,n,s=!1,a=0,o=!1){this.name=t,this.count=e,this.type=i,this.offset=r,this.stride=n,this.normalized=s,this.divisor=a,this.integer=o}}},76213:(t,e,i)=>{i.d(e,{C2:()=>a,CQ:()=>r,DY:()=>n,GR:()=>_,Gh:()=>l,MZ:()=>y,TB:()=>f,U5:()=>o,_M:()=>u,cp:()=>m,eG:()=>s,fq:()=>p,hM:()=>c,ie:()=>h});const r=512,n=29,s=24,a=4,o=6,l=1.05,u=3,h=3,c=4,y=1,p=10,f=256,_=32,m=512},80081:(t,e,i)=>{i.d(e,{A:()=>r}),i(44208);class r{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}static i1616to32(t,e){return 65535&t|e<<16}static i8888to32(t,e,i,r){return 255&t|(255&e)<<8|(255&i)<<16|r<<24}static i8816to32(t,e,i){return 255&t|(255&e)<<8|i<<16}}},85079:(t,e,i)=>{i.d(e,{Xk:()=>n,_u:()=>s});var r=i(21818);function n(t){let e=0;return(0,r.z)(new Map(t.map(({name:t,count:i})=>{const r=[t,e];return 16===i?e+=4:9===i?e+=3:++e,r})))}function s(t){const e=new Map;let i=0;return t.forEach(t=>t.forEach(({name:t,count:r})=>{e.set(t,i),16===r?i+=4:9===r?i+=3:++i})),e}},85334:(t,e,i)=>{i.d(e,{$:()=>g,IB:()=>a,Iy:()=>w,N2:()=>d,RH:()=>b,ZD:()=>x});var r=i(68197),n=i(4576),s=i(4718);function a(t){return"r"in t&&"g"in t&&"b"in t}function o(t){return"h"in t&&"s"in t&&"v"in t}function l(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}i(34727),i(87317),i(91829);const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function y(t,e){const i=[];let r,n;if(t[0].length!==e.length)throw new Error("dimensions do not match");const s=t.length,a=t[0].length;let o=0;for(r=0;r<s;r++){for(o=0,n=0;n<a;n++)o+=t[r][n]*e[n];i.push(o)}return i}function p(t){const e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),i=y(h,e);return{x:100*i[0],y:100*i[1],z:100*i[2]}}function f(t){const e=y(c,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function _(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function m(t){const e=t.l,i=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*i[0],y:100*i[1],z:108.883*i[2]}}function g(t){return a(t)?t:u(t)?function(t){return f(m(function(t){const e=t.l,i=t.c,r=t.h;return{l:e,a:i*Math.cos(r),b:i*Math.sin(r)}}(t)))}(t):l(t)?function(t){return f(m(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?f(t):o(t)?function(t){const e=(t.h+360)%360/60,i=t.s/100,r=t.v/100*255,n=r*i,s=n*(1-Math.abs(e%2-1));let a;switch(Math.floor(e)){case 0:a={r:n,g:s,b:0};break;case 1:a={r:s,g:n,b:0};break;case 2:a={r:0,g:n,b:s};break;case 3:a={r:0,g:s,b:n};break;case 4:a={r:s,g:0,b:n};break;case 5:case 6:a={r:n,g:0,b:s};break;default:a={r:0,g:0,b:0}}return a.r=Math.round(a.r+r-n),a.g=Math.round(a.g+r-n),a.b=Math.round(a.b+r-n),a}(t):t}function d(t){return o(t)?t:function(t){const e=t.r,i=t.g,r=t.b,n=Math.max(e,i,r),s=n-Math.min(e,i,r);let a=n,o=0===s?0:n===e?(i-r)/s%6:n===i?(r-e)/s+2:(e-i)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(g(t))}function x(t){return l(t)?t:function(t){return _(p(t))}(g(t))}function b(t){return u(t)?t:function(t){return function(t){const e=t.l,i=t.a,r=t.b,n=Math.sqrt(i*i+r*r);let s=Math.atan2(r,i);return s=s>0?s:s+2*Math.PI,{l:e,c:n,h:s}}(_(p(t)))}(g(t))}function w(t,e,i={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new r.A(t):t)).length||1===e){const i=[],r=t[0];for(let t=0;t<e;t++)i.push(r.clone());return i}if(i.shuffle&&(t=(0,n.k4)((0,s.o8)(t),i.seed)),t.length>=e){const i=[],r=(t.length-1)/(e-1);for(let n=0;n<e;n++){const e=Math.round(n*r);i.push(t[e].clone())}return i}return function(t,e,i={}){const r=[],s=t.length-1,a=Math.ceil((e-t.length)/s);t:for(let n=0;n<s;n++){const s=t[n],o=t[n+1];for(let n=1;n<=a;n++){const l=n/(a+1);if(r.push(T(s,o,l,i)),r.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,n.k4)(r,i.seed??1)]}(t,e,i)}const v=(t,e)=>{const i=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+i))};function T(t,e,i,s={}){const a=t.r,o=t.g,l=t.b,u=e.r,h=e.g,c=e.b,y=Math.round(a+(u-a)*i),p=Math.round(o+(h-o)*i),f=Math.round(l+(c-l)*i);if(!s.offset)return new r.A([y,p,f]);const _=(0,n.Mo)(s.seed);return new r.A([v(y,_),v(p,_),v(f,_)])}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1017],{13213:(e,t,r)=>{r.d(t,{d:()=>F});var i,s=r(89317),n=r(31635),l=r(37838),o=r(25482),a=r(4718),u=r(93637),p=r(90629),d=r(91429),c=r(56507),f=r(50820),y=r(10873),g=r(15426),h=r(46499),m=r(65494),w=r(41214),b=r(93223),v=r(43937),x=r(36005);let C=i=class extends o.o{constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=null,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.size=(0,p.cr)("12px"),this.fields=[],this.renderer=null}writeFields(e,t,r){const i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,u.sM)(r,i,t)}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?(0,m.L)(i,t,r)??void 0:(0,g.PD)(t,r)}clone(){return new i({fields:(0,a.o8)(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:(0,a.o8)(this.labelingInfo),labelsVisible:this.labelsVisible,maxScale:this.maxScale,popupEnabled:this.popupEnabled,popupTemplate:(0,a.o8)(this.popupTemplate),renderer:(0,a.o8)(this.renderer),binType:(0,a.o8)(this.binType),size:this.size})}};(0,n.Cg)([(0,d.MZ)({type:["binning"],readOnly:!0,json:{read:!1,write:!0}})],C.prototype,"type",void 0),(0,n.Cg)([(0,b.e)({geohash:"geohash",square:"square"}),(0,d.MZ)({type:["geohash","square"]})],C.prototype,"binType",void 0),(0,n.Cg)([(0,d.MZ)({type:Number,json:{write:!0}})],C.prototype,"fixedBinLevel",void 0),(0,n.Cg)([(0,d.MZ)({type:[h.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],C.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,d.MZ)(y.kF)],C.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,d.MZ)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],C.prototype,"maxScale",void 0),(0,n.Cg)([(0,d.MZ)(y.M6)],C.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:l.A,json:{name:"popupInfo",write:!0}})],C.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,d.MZ)({cast:e=>"auto"===e?e:(0,c.GB)((0,p.cr)(e))})],C.prototype,"size",void 0),(0,n.Cg)([(0,d.MZ)({type:[f.A],json:{write:!0}})],C.prototype,"fields",void 0),(0,n.Cg)([(0,v.K)("fields")],C.prototype,"writeFields",null),(0,n.Cg)([(0,d.MZ)({types:w.Hg,json:{write:{target:"drawingInfo.renderer"}}})],C.prototype,"renderer",void 0),(0,n.Cg)([(0,x.w)("renderer",["drawingInfo.renderer"])],C.prototype,"readRenderer",null),C=i=(0,n.Cg)([(0,d.$K)("esri.layers.support.FeatureReductionBinning")],C);var M,S=r(96576),R=r(33910);function E(e){return"simple"===e.type&&!e.visualVariables?.length}let A=M=class extends o.o{constructor(e){super(e),this.type="cluster",this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}get clusterRadius(){return this._get("clusterRadius")??(0,p.cr)("80px")}set clusterRadius(e){this._set("clusterRadius",e)}get clusterMinSize(){return this._get("clusterMinSize")??(0,p.cr)("12px")}set clusterMinSize(e){this._set("clusterMinSize",e)}get clusterMaxSize(){return this._get("clusterMaxSize")??(0,p.cr)("50px")}set clusterMaxSize(e){this._set("clusterMaxSize",e)}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?.authoringInfo?.isAutoGenerated?null:i?E(i)?null:(0,m.L)(i,t,r)??void 0:(0,g.PD)(t,r)}readSymbol(e,t,r){const i=t.drawingInfo?.renderer;if(i?.authoringInfo?.isAutoGenerated)return null;if(i&&E(i)){const e=(0,m.L)(i,t,r);return e?.symbol}return null}writeSymbol(e,t,r,i){const s=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||s){const r=new S.A({symbol:e});t.drawingInfo={renderer:r.write({},i)}}}writeFields(e,t,r){const i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,u.sM)(r,i,t)}readFields(e,t,r){return e.filter(e=>!e.isAutoGenerated).map(e=>f.A.fromJSON(e))}clone(){return new M({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,a.o8)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,a.o8)(this.fields),maxScale:this.maxScale,renderer:(0,a.o8)(this.renderer),symbol:(0,a.o8)(this.symbol),popupEnabled:this.popupEnabled,popupTemplate:(0,a.o8)(this.popupTemplate)})}};(0,n.Cg)([(0,d.MZ)({type:["cluster"],readOnly:!0,json:{write:!0}})],A.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)({cast:e=>"auto"===e?e:(0,c.GB)((0,p.cr)(e)),json:{write:!0}})],A.prototype,"clusterRadius",null),(0,n.Cg)([(0,d.MZ)({type:Number,cast:p.cr,json:{write:!0}})],A.prototype,"clusterMinSize",null),(0,n.Cg)([(0,d.MZ)({type:Number,cast:p.cr,json:{write:!0}})],A.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,d.MZ)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],A.prototype,"maxScale",void 0),(0,n.Cg)([(0,d.MZ)(y.M6)],A.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:l.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],A.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,d.MZ)({types:w.Hg,json:{write:{target:"drawingInfo.renderer"}}})],A.prototype,"renderer",void 0),(0,n.Cg)([(0,x.w)("renderer",["drawingInfo.renderer"])],A.prototype,"readRenderer",null),(0,n.Cg)([(0,d.MZ)({types:R.q8})],A.prototype,"symbol",void 0),(0,n.Cg)([(0,x.w)("symbol",["drawingInfo.renderer"])],A.prototype,"readSymbol",null),(0,n.Cg)([(0,v.K)("symbol")],A.prototype,"writeSymbol",null),(0,n.Cg)([(0,d.MZ)({type:[h.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],A.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,d.MZ)(y.kF)],A.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,d.MZ)({type:[f.A],json:{write:!0}})],A.prototype,"fields",void 0),(0,n.Cg)([(0,v.K)("fields")],A.prototype,"writeFields",null),(0,n.Cg)([(0,x.w)("fields")],A.prototype,"readFields",null),A=M=(0,n.Cg)([(0,d.$K)("esri.layers.support.FeatureReductionCluster")],A);var j=r(67202);const I={key:"type",base:null,typeMap:{cluster:A,binning:C}},F={types:{key:"type",base:null,typeMap:{selection:j.A,cluster:A,binning:C}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:I},"portal-item":{types:I},"web-scene":{types:{key:"type",base:null,typeMap:{selection:j.A}},name:"layerDefinition.featureReduction",write:{allowNull:!0,layerContainerTypes:s.K}}}}}},39767:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(31635),s=r(69540),n=r(25482),l=r(91429);let o=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],o.prototype,"expression",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],o.prototype,"title",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],o.prototype,"returnType",void 0),o=(0,i.Cg)([(0,l.$K)("esri.layers.support.ExpressionInfo")],o)},50820:(e,t,r)=>{r.d(t,{A:()=>u});var i,s=r(31635),n=r(25482),l=r(4718),o=r(91429),a=r(39767);let u=class extends n.o{static{i=this}constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}clone(){return new i({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,l.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,s.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"isAutoGenerated",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"onStatisticField",void 0),(0,s.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"onStatisticExpression",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"statisticType",void 0),u=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.AggregateField")],u)},56658:(e,t,r)=>{r.d(t,{J:()=>A});var i=r(31635),s=r(36708),n=r(91429),l=r(60950),o=r(99959);class a extends o.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[l.ym](){const e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}}var u=r(50820),p=r(13213),d=r(96576),c=r(48940),f=r(12330),y=r(49186),g=r(44208),h=r(53966),m=r(80200),w=r(39767),b=r(30943),v=r(53930);g.A.add("esri-cluster-arcade-enabled",!0);const x=(0,g.A)("esri-cluster-arcade-enabled"),C=new Set(["simple-line","simple-fill","picture-fill"]);function M(e,t){let r=t.clone();if(!S(r))return r;if(t.symbols.some(e=>C.has(e.type))&&(r=new d.A({symbol:new v.A})),r.authoringInfo||(r.authoringInfo=new b.A),r.authoringInfo.isAutoGenerated=!0,"visualVariables"in r){const t=(r.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=E(e,t.field,"avg_angle","number"):t.valueExpression&&(t.field=R(e,t.valueExpression,"avg_angle","number"),t.valueExpression=null):t.normalizationField?(t.field=E(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=E(e,t.field,"avg","number"):t.valueExpression&&(t.field=R(e,t.valueExpression,"avg","number"),t.valueExpression=null)}),r.visualVariables=t}switch(r.type){case"simple":break;case"pie-chart":for(const t of r.attributes)t.field?t.field=E(e,t.field,"sum","number"):t.valueExpression&&(t.field=R(e,t.valueExpression,"sum","number"),t.valueExpression=null);break;case"unique-value":r.field?r.field=E(e,r.field,"mode","string"):r.valueExpression&&(r.field=R(e,r.valueExpression,"mode","string"),r.valueExpression=null);break;case"class-breaks":r.normalizationField?(r.field=E(e,r.field,"avg_norm","number",r.normalizationField),r.normalizationField=null):r.field?r.field=E(e,r.field,"avg","number"):r.valueExpression&&(r.field=R(e,r.valueExpression,"avg","number"),r.valueExpression=null)}return r}const S=e=>{const t=t=>h.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new y.A("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const r=e.normalizationType;if("field"!==r)return t(`FeatureReductionCluster does not support a normalizationType of ${r}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!x){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(e=>!(!("valueExpression"in e)||!e.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function R(e,t,r,i){const s=(0,m.d)(t),n="mode"===r?`cluster_type_${s}`:"sum"===r?`cluster_sum_${s}`:`cluster_avg_${s}`;return e.some(e=>e.name===n)||e.push(new u.A({name:n,isAutoGenerated:!0,onStatisticExpression:new w.A({expression:t,returnType:i}),statisticType:r})),n}function E(e,t,r,i,s){if("cluster_count"===t||e.some(e=>e.name===t))return t;const n=function(e,t,r){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const e=r,i="field",s=t.toLowerCase()+",norm:"+i+","+e.toLowerCase();return"cluster_avg_"+(0,m.d)(s)}}}(r,t,s);return e.some(e=>e.name===n)||("avg_norm"===r?e.push(new u.A({name:n,isAutoGenerated:!0,onStatisticExpression:new w.A({expression:`$feature.${t} / $feature.${s}`,returnType:i}),statisticType:"avg"})):e.push(new u.A({name:n,isAutoGenerated:!0,onStatisticField:t,statisticType:r}))),n}const A=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new a(this),this.addHandles((0,s.wB)(()=>this.renderer,()=>{if(this.featureReduction){const e=this._normalizeFeatureReduction(this.featureReduction);this._set("featureReduction",e)}},s.OH))}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){}_withClusterVariable(e,t,r){const i=e.clone();return"visualVariables"in i&&(i.visualVariables||(i.visualVariables=[]),i.visualVariables.some(e=>"size"===e.type)||i.visualVariables.push(new c.A({field:"cluster_count",stops:[new f.A({value:1}),new f.A({useMinValue:!0,size:t}),new f.A({useMaxValue:!0,size:r})]}))),i}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;const t=e.clone(),r=[new u.A({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],i=(t.fields??[]).filter(e=>!e.isAutoGenerated),s=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:n,clusterMaxSize:l}=t;if(s){t.fields=[...r,...i];const e=this._withClusterVariable(t.renderer,n,l);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...r,...i],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;const s=M(r,this.renderer),o=this._withClusterVariable(s,n,l),a="visualVariables"in o&&o.visualVariables?o.visualVariables:[],u=new d.A({symbol:e.symbol,visualVariables:a});return t.fields=[...r,...i],t.effectiveFeatureRenderer=o,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;const o=M(r,this.renderer);t.fields=[...r,...i],t.renderer=o;const a=this._withClusterVariable(o,n,l);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}};return(0,i.Cg)([(0,n.MZ)({readOnly:!0,clonable:!1})],r.prototype,"aggregateGraphicOrigin",void 0),(0,i.Cg)([(0,n.MZ)(p.d)],r.prototype,"featureReduction",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.FeatureReductionLayer")],r),r}},65494:(e,t,r)=>{r.d(t,{L:()=>a,r:()=>l});var i=r(67076),s=r(90360),n=r(41214);function l(e,t){return a(e,null,t)}const o=(0,s.C)({types:n.Hg});function a(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):o(e,t,r):null}},67202:(e,t,r)=>{r.d(t,{A:()=>o});var i,s=r(31635),n=r(25482),l=r(91429);let o=i=class extends n.o{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s.Cg)([(0,l.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=i=(0,s.Cg)([(0,l.$K)("esri.layers.support.FeatureReductionSelection")],o)},80200:(e,t,r)=>{r.d(t,{T:()=>i,d:()=>g});const i={Base64:0,Hex:1,String:2,Raw:3},s=8,n=(1<<s)-1;function l(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e){const t=[];for(let r=0,i=e.length*s;r<i;r+=s)t[r>>5]|=(e.charCodeAt(r/s)&n)<<r%32;return t}function a(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=s)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function u(e,t,r,i,s,n){return l(function(e,t){return e<<t|e>>>32-t}(l(l(t,e),l(i,n)),s),r)}function p(e,t,r,i,s,n,l){return u(t&r|~t&i,e,t,s,n,l)}function d(e,t,r,i,s,n,l){return u(t&i|r&~i,e,t,s,n,l)}function c(e,t,r,i,s,n,l){return u(t^r^i,e,t,s,n,l)}function f(e,t,r,i,s,n,l){return u(r^(t|~i),e,t,s,n,l)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,s=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const o=r,a=i,u=s,y=n;r=p(r,i,s,n,e[t],7,-680876936),n=p(n,r,i,s,e[t+1],12,-389564586),s=p(s,n,r,i,e[t+2],17,606105819),i=p(i,s,n,r,e[t+3],22,-1044525330),r=p(r,i,s,n,e[t+4],7,-176418897),n=p(n,r,i,s,e[t+5],12,1200080426),s=p(s,n,r,i,e[t+6],17,-1473231341),i=p(i,s,n,r,e[t+7],22,-45705983),r=p(r,i,s,n,e[t+8],7,1770035416),n=p(n,r,i,s,e[t+9],12,-1958414417),s=p(s,n,r,i,e[t+10],17,-42063),i=p(i,s,n,r,e[t+11],22,-1990404162),r=p(r,i,s,n,e[t+12],7,1804603682),n=p(n,r,i,s,e[t+13],12,-40341101),s=p(s,n,r,i,e[t+14],17,-1502002290),i=p(i,s,n,r,e[t+15],22,1236535329),r=d(r,i,s,n,e[t+1],5,-165796510),n=d(n,r,i,s,e[t+6],9,-1069501632),s=d(s,n,r,i,e[t+11],14,643717713),i=d(i,s,n,r,e[t],20,-373897302),r=d(r,i,s,n,e[t+5],5,-701558691),n=d(n,r,i,s,e[t+10],9,38016083),s=d(s,n,r,i,e[t+15],14,-660478335),i=d(i,s,n,r,e[t+4],20,-405537848),r=d(r,i,s,n,e[t+9],5,568446438),n=d(n,r,i,s,e[t+14],9,-1019803690),s=d(s,n,r,i,e[t+3],14,-187363961),i=d(i,s,n,r,e[t+8],20,1163531501),r=d(r,i,s,n,e[t+13],5,-1444681467),n=d(n,r,i,s,e[t+2],9,-51403784),s=d(s,n,r,i,e[t+7],14,1735328473),i=d(i,s,n,r,e[t+12],20,-1926607734),r=c(r,i,s,n,e[t+5],4,-378558),n=c(n,r,i,s,e[t+8],11,-2022574463),s=c(s,n,r,i,e[t+11],16,1839030562),i=c(i,s,n,r,e[t+14],23,-35309556),r=c(r,i,s,n,e[t+1],4,-1530992060),n=c(n,r,i,s,e[t+4],11,1272893353),s=c(s,n,r,i,e[t+7],16,-155497632),i=c(i,s,n,r,e[t+10],23,-1094730640),r=c(r,i,s,n,e[t+13],4,681279174),n=c(n,r,i,s,e[t],11,-358537222),s=c(s,n,r,i,e[t+3],16,-722521979),i=c(i,s,n,r,e[t+6],23,76029189),r=c(r,i,s,n,e[t+9],4,-640364487),n=c(n,r,i,s,e[t+12],11,-421815835),s=c(s,n,r,i,e[t+15],16,530742520),i=c(i,s,n,r,e[t+2],23,-995338651),r=f(r,i,s,n,e[t],6,-198630844),n=f(n,r,i,s,e[t+7],10,1126891415),s=f(s,n,r,i,e[t+14],15,-1416354905),i=f(i,s,n,r,e[t+5],21,-57434055),r=f(r,i,s,n,e[t+12],6,1700485571),n=f(n,r,i,s,e[t+3],10,-1894986606),s=f(s,n,r,i,e[t+10],15,-1051523),i=f(i,s,n,r,e[t+1],21,-2054922799),r=f(r,i,s,n,e[t+8],6,1873313359),n=f(n,r,i,s,e[t+15],10,-30611744),s=f(s,n,r,i,e[t+6],15,-1560198380),i=f(i,s,n,r,e[t+13],21,1309151649),r=f(r,i,s,n,e[t+4],6,-145523070),n=f(n,r,i,s,e[t+11],10,-1120210379),s=f(s,n,r,i,e[t+2],15,718787259),i=f(i,s,n,r,e[t+9],21,-343485551),r=l(r,o),i=l(i,a),s=l(s,u),n=l(n,y)}return[r,i,s,n]}function g(e,t=i.Hex){const r=t||i.Base64,n=y(o(e),e.length*s);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return a(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(n)}}},87718:(e,t,r)=>{r.d(t,{F:()=>E,Y:()=>R});var i,s=r(31635),n=r(91429),l=r(49186),o=r(25482),a=r(93637),u=r(76369),p=r(66552),d=r(4718),c=r(50498),f=r(61956),y=r(79677);const g=new p.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),h=new p.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let m=i=class extends o.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:s,objectIds:n,units:l,distance:o}=this;return new f.A({geometry:(0,d.o8)(r),objectIds:(0,d.o8)(n),spatialRelationship:i,timeExtent:(0,d.o8)(s),where:t,units:l,distance:o,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:s,objectIds:n,units:l,distance:o}=this;return new i({geometry:(0,d.o8)(t),objectIds:(0,d.o8)(n),spatialRelationship:r,timeExtent:(0,d.o8)(s),where:e,units:l,distance:o})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,s.Cg)([(0,n.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,s.Cg)([(0,n.MZ)({type:g.apiValues,json:{name:"spatialRel",read:{reader:g.read},write:{allowNull:!1,writer:g.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],m.prototype,"spatialRelationship",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],json:{write:!0}})],m.prototype,"objectIds",void 0),(0,s.Cg)([(0,n.MZ)({type:h.apiValues,json:{read:h.read,write:{writer:h.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"units",void 0),(0,s.Cg)([(0,n.MZ)({type:y.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=i=(0,s.Cg)([(0,n.$K)("esri.layers.support.FeatureFilter")],m);const w=m;var b;const v={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},x={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},C={name:"showExcludedLabels",default:!0};let M=b=class extends o.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new l.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new l.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new b({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,s.Cg)([(0,n.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,r,i){const s=e?.write({},i);s&&0!==Object.keys(s).length?(0,a.sM)(r,s,t):(0,a.sM)(r,null,t)}}}})],M.prototype,"filter",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":v,"portal-item":v}}})],M.prototype,"includedEffect",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":x,"portal-item":x}}})],M.prototype,"excludedEffect",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":C,"portal-item":C}}})],M.prototype,"excludedLabelsVisible",void 0),M=b=(0,s.Cg)([(0,n.$K)("esri.layers.support.FeatureEffect")],M);const S={write:{allowNull:!0}},R={type:M,json:{origins:{"web-map":S,"portal-item":S}}},E=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,s.Cg)([(0,n.MZ)(R)],r.prototype,"featureEffect",void 0),r=(0,s.Cg)([(0,n.$K)("esri.layers.mixins.FeatureEffectLayer")],r),r}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9134],{99134:(r,e,t)=>{async function n(r={}){var e,t=r,n="";try{n=new URL(".","").href}catch{}e=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var a,o,i,u,s,f,l,c,h,p,v,y,d,m,w=console.log.bind(console),g=console.error.bind(console),b=!1,A=!1;function T(){var r=br.buffer;t.HEAP8=u=new Int8Array(r),t.HEAP16=f=new Int16Array(r),s=new Uint8Array(r),l=new Uint16Array(r),t.HEAP32=c=new Int32Array(r),h=new Uint32Array(r),t.HEAPF32=p=new Float32Array(r),t.HEAPF64=v=new Float64Array(r),y=new BigInt64Array(r),d=new BigUint64Array(r)}function P(r){t.onAbort?.(r),g(r="Aborted("+r+")"),b=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw i?.(e),e}async function E(r){if(!a)try{var t=await e(r);return new Uint8Array(t)}catch{}return function(r){if(r==m&&a)return new Uint8Array(a);throw"both async and sync fetching of the wasm failed"}(r)}var F=r=>{for(;r.length>0;)r.shift()(t)},W=[],R=r=>W.push(r),C=[],$=r=>C.push(r),I=r=>wr(r),k=()=>gr(),B=new TextDecoder,U=(r,e,t,n)=>{var a=e+t;if(n)return a;for(;r[e]&&!(e>=a);)++e;return e},x=(r,e,t)=>{if(!r)return"";var n=U(s,r,e,t);return B.decode(s.subarray(r,n))},O=r=>{for(var e="";;){var t=s[r++];if(!t)return e;e+=String.fromCharCode(t)}},V={},S={},M={},H=class extends Error{constructor(r){super(r),this.name="BindingError"}},D=r=>{throw new H(r)};function L(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||D(`type "${n}" must have a positive integer typeid pointer`),S.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;D(`Cannot register type '${n}' twice`)}if(S[r]=e,delete M[r],V.hasOwnProperty(r)){var a=V[r];delete V[r],a.forEach(r=>r())}}(r,e,t)}var j=(r,e,t)=>{switch(e){case 1:return t?r=>u[r]:r=>s[r];case 2:return t?r=>f[r>>1]:r=>l[r>>1];case 4:return t?r=>c[r>>2]:r=>h[r>>2];case 8:return t?r=>y[r>>3]:r=>d[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},z=[],N=[0,1,,1,null,1,!0,1,!1,1];function _(r){return this.fromWireType(h[r>>2])}var q={name:"emscripten::val",fromWireType:r=>{var e=(r=>(r||D(`Cannot use deleted val. handle = ${r}`),N[r]))(r);return(r=>{r>9&&0===--N[r+1]&&(N[r]=void 0,z.push(r))})(r),e},toWireType:(r,e)=>(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()||N.length;return N[e]=r,N[e+1]=1,e}}})(e),readValueFromPointer:_,destructorFunction:null},Y=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(p[r>>2])};case 8:return function(r){return this.fromWireType(v[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}};var G=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||D(`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}},J=(r,e,n)=>{t.hasOwnProperty(r)?((void 0===n||void 0!==t[r].overloadTable&&void 0!==t[r].overloadTable[n])&&D(`Cannot register public name '${r}' twice`),G(t,r,r),t[r].overloadTable.hasOwnProperty(n)&&D(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),t[r].overloadTable[n]=e):(t[r]=e,t[r].argCount=n)},K=class extends Error{constructor(r){super(r),this.name="InternalError"}},Q=r=>{throw new K(r)},X=(r,e,n)=>{t.hasOwnProperty(r)||Q("Replacing nonexistent public symbol"),void 0!==t[r].overloadTable&&void 0!==n?t[r].overloadTable[n]=e:(t[r]=e,t[r].argCount=n)},Z=r=>Ar.get(r);class rr extends Error{}var er=r=>{var e=vr(r),t=O(e);return dr(e),t},tr=new TextDecoder("utf-16le"),nr=(r,e,t)=>{var n=r>>1,a=U(l,n,e/2,t);return tr.decode(l.subarray(n,a))},ar=(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);f[e>>1]=i,e+=2}return f[e>>1]=0,e-n},or=r=>2*r.length,ir=(r,e,t)=>{for(var n="",a=r>>2,o=0;!(o>=e/4);o++){var i=h[a+o];if(!i&&!t)break;n+=String.fromCodePoint(i)}return n},ur=(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.codePointAt(o);if(i>65535&&o++,c[e>>2]=i,(e+=4)+4>a)break}return c[e>>2]=0,e-n},sr=r=>{for(var e=0,t=0;t<r.length;++t)r.codePointAt(t)>65535&&t++,e+=4;return e},fr=[],lr=(r,e)=>Math.ceil(r/e)*e,cr=r=>{var e=(r-br.buffer.byteLength+65535)/65536|0;try{return br.grow(e),T(),1}catch(r){}},hr=[null,[],[]],pr=(r,e)=>{var t=hr[r];0===e||10===e?((1===r?w:g)(((r,e=0)=>{var t=U(r,e,void 0,void 0);return B.decode(r.buffer?r.subarray(e,t):new Uint8Array(r.slice(e,t)))})(t)),t.length=0):t.push(e)};if(t.noExitRuntime&&t.noExitRuntime,t.print&&(w=t.print),t.printErr&&(g=t.printErr),t.wasmBinary&&(a=t.wasmBinary),t.arguments&&t.arguments,t.thisProgram&&t.thisProgram,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.shift()();var vr,yr,dr,mr,wr,gr,br,Ar,Tr,Pr={6396:r=>{throw new Error("libtess-triangulation: "+x(r))}},Er={a:(r,e,t,n)=>P(`Assertion failed: ${x(r)}, at: `+[e?x(e):"unknown filename",t,n?x(n):"unknown function"]),n:()=>P(""),j:(r,e,t,n,a)=>{e=O(e);const o=0n===n;let i=r=>r;if(o){const r=8*t;i=e=>BigInt.asUintN(r,e),a=i(a)}L(r,{name:e,fromWireType:i,toWireType:(r,e)=>("number"==typeof e&&(e=BigInt(e)),e),readValueFromPointer:j(e,t,!o),destructorFunction:null})},s:(r,e,t,n)=>{L(r,{name:e=O(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},readValueFromPointer:function(r){return this.fromWireType(s[r])},destructorFunction:null})},l:r=>L(r,q),i:(r,e,t)=>{L(r,{name:e=O(e),fromWireType:r=>r,toWireType:(r,e)=>e,readValueFromPointer:Y(e,t),destructorFunction:null})},h:(r,e,t,n,a,o,i,u)=>{var s=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(h[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)})(r=O(r)),a=((r,e)=>{r=O(r);var t=Z(e);return"function"!=typeof t&&D(`unknown function pointer with signature ${r}: ${e}`),t})(n,a),J(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||S[e]||(M[e]?M[e].forEach(r):(t.push(e),n[e]=!0))}),new rr(`${r}: `+t.map(er).join([", "]))})(`Cannot call ${r} due to unbound types`,s)},e-1),((r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&Q("Mismatched type converter count");for(var a=0;a<r.length;++a)L(r[a],n[a])}r.forEach(r=>M[r]=e);var a=new Array(e.length),o=[],i=0;for(let[r,t]of e.entries())S.hasOwnProperty(t)?a[r]=S[t]:(o.push(t),V.hasOwnProperty(t)||(V[t]=[]),V[t].push(()=>{a[r]=S[t],++i===o.length&&n(a)}));0===o.length&&n(a)})([],s,t=>{var n=[t[0],null].concat(t.slice(1));return X(r,function(r,e,t,n,a){var o=e.length;o<2&&D("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=!e[0].isVoid,s=o-2,f=new Array(s),l=[],c=[];return((r,e)=>Object.defineProperty(e,"name",{value:r}))(r,function(...r){c.length=0,l.length=1,l[0]=a;for(var t=0;t<s;++t)f[t]=e[t+2].toWireType(c,r[t]),l.push(f[t]);return function(r){if(i)(r=>{for(;r.length;){var e=r.pop();r.pop()(e)}})(c);else for(var t=2;t<e.length;t++){var n=1===t?void 0:f[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(u)return e[0].fromWireType(r)}(n(...l))})}(r,n,0,a,o),e-1),[]})},c:(r,e,t,n,a)=>{e=O(e);let o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i,a=o(a)}L(r,{name:e,fromWireType:o,toWireType:(r,e)=>e,readValueFromPointer:j(e,t,0!==n),destructorFunction:null})},b:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function a(r){var e=h[r>>2],t=h[r+4>>2];return new n(u.buffer,t,e)}L(r,{name:t=O(t),fromWireType:a,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},m:(r,e)=>{L(r,{name:e=O(e),fromWireType(r){var e,t=h[r>>2];return e=x(r+4,t,!0),dr(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||D("Cannot pass non-string to std::string"),t=n?(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})(e):e.length;var a=yr(4+t+1),o=a+4;return h[a>>2]=t,n?((r,e,t)=>{((r,e,t,n)=>{if(!(n>0))return 0;for(var a=t+n-1,o=0;o<r.length;++o){var i=r.codePointAt(o);if(i<=127){if(t>=a)break;e[t++]=i}else if(i<=2047){if(t+1>=a)break;e[t++]=192|i>>6,e[t++]=128|63&i}else if(i<=65535){if(t+2>=a)break;e[t++]=224|i>>12,e[t++]=128|i>>6&63,e[t++]=128|63&i}else{if(t+3>=a)break;e[t++]=240|i>>18,e[t++]=128|i>>12&63,e[t++]=128|i>>6&63,e[t++]=128|63&i,o++}}e[t]=0})(r,s,e,t)})(e,o,t+1):s.set(e,o),null!==r&&r.push(dr,a),a},readValueFromPointer:_,destructorFunction(r){dr(r)}})},f:(r,e,t)=>{var n,a,o;t=O(t),2===e?(n=nr,a=ar,o=or):(n=ir,a=ur,o=sr),L(r,{name:t,fromWireType:r=>{var t=h[r>>2],a=n(r+4,t*e,!0);return dr(r),a},toWireType:(r,n)=>{"string"!=typeof n&&D(`Cannot pass non-string to C++ string type ${t}`);var i=o(n),u=yr(4+i+e);return h[u>>2]=i/e,a(n,u+4,i+e),null!==r&&r.push(dr,u),u},readValueFromPointer:_,destructorFunction(r){dr(r)}})},t:(r,e)=>{L(r,{isVoid:!0,name:e=O(e),fromWireType:()=>{},toWireType:(r,e)=>{}})},o:()=>{throw 1/0},r:(r,e,t)=>((r,e,t)=>{var n=((r,e)=>{var t;for(fr.length=0;t=s[r++];){var n=105!=t;e+=(n&=112!=t)&&e%8?4:0,fr.push(112==t?h[e>>2]:106==t?y[e>>3]:105==t?c[e>>2]:v[e>>3]),e+=n?8:4}return fr})(e,t);return Pr[r](...n)})(r,e,t),p:r=>{var e=s.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var o=Math.min(t,lr(Math.max(r,a),65536));if(cr(o))return!0}return!1},k:(r,e,t,n)=>{for(var a=0,o=0;o<t;o++){var i=h[e>>2],u=h[e+4>>2];e+=8;for(var f=0;f<u;f++)pr(r,s[i+f]);a+=u}return h[n>>2]=a,0},e:function(r,e){var t=k();try{return Z(r)(e)}catch(r){if(I(t),r!==r+0)throw r;mr(1,0)}},q:function(r,e,t,n){var a=k();try{return Z(r)(e,t,n)}catch(r){if(I(a),r!==r+0)throw r;mr(1,0)}},g:function(r,e){var t=k();try{Z(r)(e)}catch(r){if(I(t),r!==r+0)throw r;mr(1,0)}},d:function(r,e,t){var n=k();try{Z(r)(e,t)}catch(r){if(I(n),r!==r+0)throw r;mr(1,0)}}};return Tr=await async function(){function r(r,e){return function(r){vr=r.w,yr=r.y,dr=r.z,mr=r.A,wr=r.B,gr=r.C,br=r.u,Ar=r.x}(Tr=r.exports),T(),Tr}var e={a:Er};return t.instantiateWasm?new Promise((n,a)=>{t.instantiateWasm(e,(e,t)=>{n(r(e))})}):(m??=t.locateFile?function(r){return t.locateFile?t.locateFile(r,n):n+r}("libtess-f64.wasm"):new URL("libtess-f64.wasm","").href,function(e){return r(e.instance)}(await async function(r,e,t){if(!r)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){g(`wasm streaming compile failed: ${r}`),g("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await E(r);return await WebAssembly.instantiate(t,e)}catch(r){g(`failed to asynchronously prepare wasm: ${r}`),P(r)}}(e,t)}(a,m,e)))}(),function(){function r(){t.calledRun=!0,b||(A=!0,Tr.v(),o?.(t),t.onRuntimeInitialized?.(),function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)R(t.postRun.shift());F(W)}())}(function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)$(t.preRun.shift());F(C)})(),t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),r()},1)):r()}(),A?t:new Promise((r,e)=>{o=r,i=e})}t.d(e,{default:()=>n})}}]);
|