From 40b47bffbc982ebd2e46836ced0fbd07582eec33 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:03:58 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20open-pio?= =?UTF-8?q?neer/trails-openlayers-base-packages@7a5f1e18cf997d7108d1344c5a?= =?UTF-8?q?7f39fd8ac50254=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{BGpV6sNzKbKC.js => 9_25jZL3RpAh.js} | 6 +-- .../{BOXMyqr06QWb.js => B48t-8DI4YWS.js} | 2 +- .../{DxdeqarmOZJm.js => BJe8MquV2vSN.js} | 2 +- .../{BknMP--fbInd.js => BLXiixlbHf0g.js} | 2 +- .../{q4MLRk0u7kxl.js => BjXju3dgjVrG.js} | 2 +- .../{zSfZu7QVHLy4.js => C17aK7N5tIXO.js} | 4 +- .../{CNMhq6JQKEM8.js => C21NLAidutFd.js} | 2 +- .../{KBPejCE8jGNR.js => CNbNRI3VgyNo.js} | 2 +- .../{CUFyGsD6LmhE.js => CnbEnyqUeRNR.js} | 2 +- .../{DTvtLMAVxi8t.js => CwsqFmMu0f5O.js} | 2 +- .../{DKlkM3Rq-R3t.js => D-bB0Gg-LQGA.js} | 2 +- .../{UlulYB4e5zqK.js => D1e64i0R5zCb.js} | 2 +- .../{D3gFeNVkNTAB.js => D6bui9ILupw_.js} | 2 +- .../{Bh6kFNuDWsIw.js => Dh5p1D7VwmQC.js} | 2 +- .../{X8GI6bUqkf4N.js => DiQTorPxGDiV.js} | 2 +- .../{BMa7TTlUnkcm.js => DxMLgDGBfPwt.js} | 2 +- .../{DnKCrehDk6ys.js => Wf-eMftTXoqi.js} | 2 +- .../{CRBFr44dy3kq.js => YjvqPrFp1_lH.js} | 2 +- .../{MbvMD2_GQkZz.js => cpB6yKqgEuCD.js} | 2 +- .../{C9QNvvxRey-t.js => n9zWNdlWzx_n.js} | 2 +- .../{DUrsrXwoWcga.js => u7J-5NuTMd9z.js} | 2 +- ...neer_basemap_switcher.BasemapSwitcher.html | 2 +- ...er_coordinate_viewer.CoordinateViewer.html | 2 +- ..._open_pioneer_geolocation.Geolocation.html | 2 +- .../_open_pioneer_legend.Legend.html | 2 +- .../_open_pioneer_map.DefaultMapProvider.html | 2 +- .../_open_pioneer_map.MapAnchor.html | 2 +- .../_open_pioneer_map.MapContainer.html | 2 +- ...n_pioneer_map.calculateBufferedExtent.html | 2 +- .../_open_pioneer_map.getProjection.html | 2 +- .../functions/_open_pioneer_map.isLayer.html | 2 +- .../_open_pioneer_map.isSublayer.html | 2 +- ..._open_pioneer_map.registerProjections.html | 2 +- .../_open_pioneer_map.useCenter.html | 2 +- .../_open_pioneer_map.useMapModel.html | 6 +-- .../_open_pioneer_map.useProjection.html | 2 +- .../_open_pioneer_map.useResolution.html | 2 +- .../functions/_open_pioneer_map.useScale.html | 2 +- .../functions/_open_pioneer_map.useView.html | 2 +- .../_open_pioneer_map_navigation.History.html | 2 +- ...ioneer_map_navigation.HistoryBackward.html | 2 +- ...pioneer_map_navigation.HistoryForward.html | 2 +- ..._pioneer_map_navigation.InitialExtent.html | 2 +- .../_open_pioneer_map_navigation.Zoom.html | 2 +- .../_open_pioneer_map_navigation.ZoomIn.html | 2 +- .../_open_pioneer_map_navigation.ZoomOut.html | 2 +- ...r_map_test_utils.createServiceOptions.html | 2 +- ..._open_pioneer_map_test_utils.setupMap.html | 2 +- ...r_map_test_utils.waitForInitialExtent.html | 2 +- ...ioneer_map_test_utils.waitForMapMount.html | 2 +- ..._pioneer_map_ui_components.ToolButton.html | 2 +- ..._open_pioneer_measurement.Measurement.html | 2 +- ...open_pioneer_overview_map.OverviewMap.html | 2 +- .../_open_pioneer_printing.Printing.html | 2 +- .../_open_pioneer_result_list.ResultList.html | 2 +- .../_open_pioneer_scale_bar.ScaleBar.html | 2 +- ...open_pioneer_scale_setter.ScaleSetter.html | 2 +- ...open_pioneer_scale_viewer.ScaleViewer.html | 2 +- .../_open_pioneer_search.Search.html | 2 +- .../_open_pioneer_selection.Selection.html | 2 +- ...er_spatial_bookmarks.SpatialBookmarks.html | 2 +- .../docs/functions/_open_pioneer_toc.Toc.html | 2 +- ...basemap_switcher.BasemapSwitcherProps.html | 14 +++--- ...ordinate_viewer.CoordinateViewerProps.html | 12 ++--- .../_open_pioneer_editing.EditingService.html | 10 ++-- ..._open_pioneer_editing.EditingWorkflow.html | 12 ++--- ..._pioneer_geolocation.GeolocationProps.html | 14 +++--- ...n_pioneer_legend.LegendItemAttributes.html | 6 +-- ...oneer_legend.LegendItemComponentProps.html | 4 +- .../_open_pioneer_legend.LegendProps.html | 8 ++-- .../_open_pioneer_map.AnyLayerBaseType.html | 36 +++++++------- .../_open_pioneer_map.BaseFeature.html | 12 ++--- .../_open_pioneer_map.ChildrenCollection.html | 4 +- .../_open_pioneer_map.CoordinateConfig.html | 4 +- .../_open_pioneer_map.ExtentConfig.html | 4 +- .../_open_pioneer_map.GroupLayer.html | 42 ++++++++-------- ...open_pioneer_map.GroupLayerCollection.html | 6 +-- .../_open_pioneer_map.GroupLayerConfig.html | 18 +++---- ...pen_pioneer_map.GroupLayerConstructor.html | 4 +- .../_open_pioneer_map.Highlight.html | 4 +- .../_open_pioneer_map.HighlightOptions.html | 4 +- ...open_pioneer_map.HighlightZoomOptions.html | 10 ++-- ..._open_pioneer_map.InitialExtentConfig.html | 4 +- ...pen_pioneer_map.InitialPositionConfig.html | 4 +- .../_open_pioneer_map.LayerBaseConfig.html | 12 ++--- .../_open_pioneer_map.LayerBaseEvents.html | 4 +- .../_open_pioneer_map.LayerBaseType.html | 42 ++++++++-------- .../_open_pioneer_map.LayerCollection.html | 20 ++++---- .../_open_pioneer_map.LayerConfig.html | 16 +++---- ...pen_pioneer_map.LayerRetrievalOptions.html | 4 +- .../_open_pioneer_map.MapAnchorProps.html | 10 ++-- .../_open_pioneer_map.MapConfig.html | 10 ++-- .../_open_pioneer_map.MapConfigProvider.html | 6 +-- .../_open_pioneer_map.MapContainerProps.html | 16 +++---- .../_open_pioneer_map.MapModel.html | 36 +++++++------- .../_open_pioneer_map.MapModelEvents.html | 4 +- .../_open_pioneer_map.MapModelProps.html | 6 +-- .../_open_pioneer_map.MapPadding.html | 4 +- .../_open_pioneer_map.MapRegistry.html | 8 ++-- .../_open_pioneer_map.OlMapOptions.html | 4 +- .../_open_pioneer_map.SimpleLayer.html | 42 ++++++++-------- .../_open_pioneer_map.SimpleLayerConfig.html | 18 +++---- ...en_pioneer_map.SimpleLayerConstructor.html | 4 +- .../_open_pioneer_map.SublayerBaseType.html | 38 +++++++-------- ..._open_pioneer_map.SublayersCollection.html | 6 +-- .../_open_pioneer_map.UseMapModelLoading.html | 4 +- ..._open_pioneer_map.UseMapModelRejected.html | 4 +- ..._open_pioneer_map.UseMapModelResolved.html | 4 +- .../_open_pioneer_map.WMSLayer.html | 44 ++++++++--------- .../_open_pioneer_map.WMSLayerConfig.html | 22 ++++----- ..._open_pioneer_map.WMSLayerConstructor.html | 4 +- .../_open_pioneer_map.WMSSublayer.html | 40 ++++++++-------- .../_open_pioneer_map.WMSSublayerConfig.html | 16 +++---- .../_open_pioneer_map.WMTSLayer.html | 48 +++++++++---------- .../_open_pioneer_map.WMTSLayerConfig.html | 24 +++++----- ...open_pioneer_map.WMTSLayerConstructor.html | 4 +- .../_open_pioneer_map.ZoomOptions.html | 8 ++-- ...n_pioneer_map_navigation.HistoryProps.html | 8 ++-- ...eer_map_navigation.InitialExtentProps.html | 6 +-- ...open_pioneer_map_navigation.ZoomProps.html | 8 ++-- ...oneer_map_test_utils.SimpleMapOptions.html | 20 ++++---- ...eer_map_ui_components.ToolButtonProps.html | 18 +++---- ..._pioneer_measurement.MeasurementProps.html | 14 +++--- ...neer_measurement.MeasurementsAddEvent.html | 4 +- ...r_measurement.MeasurementsRemoveEvent.html | 4 +- ..._pioneer_ogc_features.FeatureResponse.html | 10 ++-- ...eatures.OgcFeatureSearchSourceOptions.html | 16 +++---- ...eatures.OgcFeatureVectorSourceOptions.html | 20 ++++---- ...atures.OgcFeaturesSearchSourceFactory.html | 4 +- ...atures.OgcFeaturesVectorSourceFactory.html | 4 +- ...pioneer_overview_map.OverviewMapProps.html | 12 ++--- .../_open_pioneer_printing.PrintResult.html | 6 +-- ...open_pioneer_printing.PrintingOptions.html | 8 ++-- .../_open_pioneer_printing.PrintingProps.html | 8 ++-- ...open_pioneer_printing.PrintingService.html | 4 +- ...pen_pioneer_result_list.FormatOptions.html | 6 +-- ...pioneer_result_list.RenderCellContext.html | 6 +-- ...open_pioneer_result_list.ResultColumn.html | 14 +++--- ...n_pioneer_result_list.ResultListInput.html | 8 ++-- ...n_pioneer_result_list.ResultListProps.html | 24 +++++----- ...t_list.ResultListSelectionChangeEvent.html | 4 +- ..._open_pioneer_scale_bar.ScaleBarProps.html | 8 ++-- ...pioneer_scale_setter.ScaleSetterProps.html | 8 ++-- ...pioneer_scale_viewer.ScaleViewerProps.html | 6 +-- .../_open_pioneer_search.SearchOptions.html | 8 ++-- .../_open_pioneer_search.SearchProps.html | 18 +++---- .../_open_pioneer_search.SearchResult.html | 14 +++--- ...open_pioneer_search.SearchSelectEvent.html | 6 +-- .../_open_pioneer_search.SearchSource.html | 6 +-- ...pen_pioneer_selection.ExtentSelection.html | 4 +- ...neer_selection.SelectionCompleteEvent.html | 6 +-- ...en_pioneer_selection.SelectionOptions.html | 8 ++-- ...open_pioneer_selection.SelectionProps.html | 12 ++--- ...pen_pioneer_selection.SelectionResult.html | 12 ++--- ...pen_pioneer_selection.SelectionSource.html | 8 ++-- ...selection.SelectionSourceChangedEvent.html | 4 +- ..._selection.VectorLayerSelectionSource.html | 8 ++-- ...ion.VectorLayerSelectionSourceFactory.html | 4 +- ...ion.VectorLayerSelectionSourceOptions.html | 4 +- ...atial_bookmarks.SpatialBookmarksProps.html | 6 +-- .../_open_pioneer_toc.TocProps.html | 16 +++---- .../_open_pioneer_toc.ToolsConfig.html | 4 +- ..._pioneer_editing.EditingWorkflowState.html | 2 +- .../types/_open_pioneer_map.AnyLayer.html | 2 +- .../_open_pioneer_map.AnyLayerTypes.html | 2 +- .../_open_pioneer_map.DisplayTarget.html | 2 +- ..._open_pioneer_map.HealthCheckFunction.html | 2 +- .../_open_pioneer_map.HighlightStyle.html | 2 +- .../_open_pioneer_map.InitialViewConfig.html | 2 +- .../docs/types/_open_pioneer_map.Layer.html | 2 +- .../_open_pioneer_map.LayerLoadState.html | 2 +- .../types/_open_pioneer_map.LayerTypes.html | 2 +- .../_open_pioneer_map.MapAnchorPosition.html | 2 +- ...open_pioneer_map.ProjectionDefinition.html | 2 +- .../types/_open_pioneer_map.Sublayer.html | 2 +- .../_open_pioneer_map.SublayerTypes.html | 2 +- .../_open_pioneer_map.UseMapModelResult.html | 2 +- ...r_map_navigation.HistoryBackwardProps.html | 2 +- ...er_map_navigation.HistoryForwardProps.html | 2 +- ...en_pioneer_map_navigation.ZoomInProps.html | 2 +- ...n_pioneer_map_navigation.ZoomOutProps.html | 2 +- ...oneer_measurement.MeasurementGeometry.html | 2 +- ...r_measurement.MeasurementsChangeEvent.html | 2 +- ...pioneer_ogc_features.OgcFetchStrategy.html | 2 +- ..._pioneer_printing.ViewPaddingBehavior.html | 2 +- ...pen_pioneer_result_list.SelectionMode.html | 2 +- ..._open_pioneer_selection.SelectionKind.html | 2 +- ...oneer_selection.SelectionSourceStatus.html | 2 +- ...selection.SelectionSourceStatusObject.html | 2 +- .../_open_pioneer_map.GroupLayer-1.html | 2 +- .../_open_pioneer_map.SimpleLayer-1.html | 2 +- .../_open_pioneer_map.WMSLayer-1.html | 2 +- .../_open_pioneer_map.WMTSLayer-1.html | 2 +- .../variables/_open_pioneer_theme.theme.html | 2 +- .../samples/experimental-sidebar/index.html | 4 +- .../samples/map-sample/index.html | 22 ++++----- .../samples/ogc-api-sample/index.html | 14 +++--- .../samples/showcase/index.html | 22 ++++----- .../samples/test-basemap-switcher/index.html | 6 +-- .../test-highlight-and-zoom/index.html | 6 +-- .../samples/test-printing-api/index.html | 10 ++-- .../samples/test-result-list/index.html | 6 +-- .../samples/test-toc/index.html | 14 +++--- 203 files changed, 738 insertions(+), 738 deletions(-) rename openlayers-base-packages/assets/{BGpV6sNzKbKC.js => 9_25jZL3RpAh.js} (99%) rename openlayers-base-packages/assets/{BOXMyqr06QWb.js => B48t-8DI4YWS.js} (99%) rename openlayers-base-packages/assets/{DxdeqarmOZJm.js => BJe8MquV2vSN.js} (90%) rename openlayers-base-packages/assets/{BknMP--fbInd.js => BLXiixlbHf0g.js} (99%) rename openlayers-base-packages/assets/{q4MLRk0u7kxl.js => BjXju3dgjVrG.js} (99%) rename openlayers-base-packages/assets/{zSfZu7QVHLy4.js => C17aK7N5tIXO.js} (98%) rename openlayers-base-packages/assets/{CNMhq6JQKEM8.js => C21NLAidutFd.js} (96%) rename openlayers-base-packages/assets/{KBPejCE8jGNR.js => CNbNRI3VgyNo.js} (95%) rename openlayers-base-packages/assets/{CUFyGsD6LmhE.js => CnbEnyqUeRNR.js} (86%) rename openlayers-base-packages/assets/{DTvtLMAVxi8t.js => CwsqFmMu0f5O.js} (97%) rename openlayers-base-packages/assets/{DKlkM3Rq-R3t.js => D-bB0Gg-LQGA.js} (98%) rename openlayers-base-packages/assets/{UlulYB4e5zqK.js => D1e64i0R5zCb.js} (98%) rename openlayers-base-packages/assets/{D3gFeNVkNTAB.js => D6bui9ILupw_.js} (93%) rename openlayers-base-packages/assets/{Bh6kFNuDWsIw.js => Dh5p1D7VwmQC.js} (98%) rename openlayers-base-packages/assets/{X8GI6bUqkf4N.js => DiQTorPxGDiV.js} (90%) rename openlayers-base-packages/assets/{BMa7TTlUnkcm.js => DxMLgDGBfPwt.js} (99%) rename openlayers-base-packages/assets/{DnKCrehDk6ys.js => Wf-eMftTXoqi.js} (99%) rename openlayers-base-packages/assets/{CRBFr44dy3kq.js => YjvqPrFp1_lH.js} (91%) rename openlayers-base-packages/assets/{MbvMD2_GQkZz.js => cpB6yKqgEuCD.js} (84%) rename openlayers-base-packages/assets/{C9QNvvxRey-t.js => n9zWNdlWzx_n.js} (99%) rename openlayers-base-packages/assets/{DUrsrXwoWcga.js => u7J-5NuTMd9z.js} (81%) diff --git a/openlayers-base-packages/assets/BGpV6sNzKbKC.js b/openlayers-base-packages/assets/9_25jZL3RpAh.js similarity index 99% rename from openlayers-base-packages/assets/BGpV6sNzKbKC.js rename to openlayers-base-packages/assets/9_25jZL3RpAh.js index b992feec6..dfda08802 100644 --- a/openlayers-base-packages/assets/BGpV6sNzKbKC.js +++ b/openlayers-base-packages/assets/9_25jZL3RpAh.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DnKCrehDk6ys.js","./BeGW3nmX4tO2.js","./BOXMyqr06QWb.js","./q4MLRk0u7kxl.js","./39a3VBatk_eA.js","./BMuX_dt1qyjL.js","./Gw82v5PUNK8h.js","./N6gwA50uHdd6.js"])))=>i.map(i=>d[i]); -import{_ as gs}from"./CmsKOCeNyeyo.js";import{_ as ve}from"./BOXMyqr06QWb.js";import"./BeGW3nmX4tO2.js";import"./q4MLRk0u7kxl.js";import"./39a3VBatk_eA.js";import"./BMuX_dt1qyjL.js";import"./Gw82v5PUNK8h.js";import"./N6gwA50uHdd6.js";var tn=Uint8Array,vn=Uint16Array,Ps=Int32Array,go=new tn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mo=new tn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ms=new tn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xc=function(r,e){for(var n=new vn(31),a=0;a<31;++a)n[a]=e+=1<>1|(we&21845)<<1;kr=(kr&52428)>>2|(kr&13107)<<2,kr=(kr&61680)>>4|(kr&3855)<<4,bs[we]=((kr&65280)>>8|(kr&255)<<8)>>1}var tr=function(r,e,n){for(var a=r.length,c=0,o=new vn(e);c>f]=g}else for(h=new vn(a),c=0;c>15-r[c]);return h},Cr=new tn(288);for(var we=0;we<144;++we)Cr[we]=8;for(var we=144;we<256;++we)Cr[we]=9;for(var we=256;we<280;++we)Cr[we]=7;for(var we=280;we<288;++we)Cr[we]=8;var da=new tn(32);for(var we=0;we<32;++we)da[we]=5;var Fu=tr(Cr,9,0),Iu=tr(Cr,9,1),Cu=tr(da,5,0),ju=tr(da,5,1),os=function(r){for(var e=r[0],n=1;ne&&(e=r[n]);return e},qn=function(r,e,n){var a=e/8|0;return(r[a]|r[a+1]<<8)>>(e&7)&n},ss=function(r,e){var n=e/8|0;return(r[n]|r[n+1]<<8|r[n+2]<<16)>>(e&7)},ks=function(r){return(r+7)/8|0},kc=function(r,e,n){return(n==null||n>r.length)&&(n=r.length),new tn(r.subarray(e,n))},Ou=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Rn=function(r,e,n){var a=new Error(e||Ou[r]);if(a.code=r,Error.captureStackTrace&&Error.captureStackTrace(a,Rn),!n)throw a;return a},Bu=function(r,e,n,a){var c=r.length,o=0;if(!c||e.f&&!e.l)return n||new tn(0);var l=!n,h=l||e.i!=2,f=e.i;l&&(n=new tn(c*3));var g=function(Nt){var Ft=n.length;if(Nt>Ft){var _t=new tn(Math.max(Ft*2,Nt));_t.set(n),n=_t}},y=e.f||0,w=e.p||0,S=e.b||0,p=e.l,O=e.d,F=e.m,q=e.n,_=c*8;do{if(!p){y=qn(r,w,1);var B=qn(r,w+1,3);if(w+=3,B)if(B==1)p=Iu,O=ju,F=9,q=5;else if(B==2){var wt=qn(r,w,31)+257,tt=qn(r,w+10,15)+4,z=wt+qn(r,w+5,31)+1;w+=14;for(var rt=new tn(z),dt=new tn(19),P=0;P>4;if(Y<16)rt[P++]=Y;else{var it=0,lt=0;for(Y==16?(lt=3+qn(r,w,3),w+=2,it=rt[P-1]):Y==17?(lt=3+qn(r,w,7),w+=3):Y==18&&(lt=11+qn(r,w,127),w+=7);lt--;)rt[P++]=it}}var $=rt.subarray(0,wt),ht=rt.subarray(wt);F=os($),q=os(ht),p=tr($,F,1),O=tr(ht,q,1)}else Rn(1);else{var Y=ks(w)+4,ot=r[Y-4]|r[Y-3]<<8,ut=Y+ot;if(ut>c){f&&Rn(0);break}h&&g(S+ot),n.set(r.subarray(Y,ut),S),e.b=S+=ot,e.p=w=ut*8,e.f=y;continue}if(w>_){f&&Rn(0);break}}h&&g(S+131072);for(var pt=(1<>4;if(w+=it&15,w>_){f&&Rn(0);break}if(it||Rn(2),C<256)n[S++]=C;else if(C==256){N=w,p=null;break}else{var M=C-254;if(C>264){var P=C-257,T=go[P];M=qn(r,w,(1<>4;J||Rn(3),w+=J&15;var ht=ku[Q];if(Q>3){var T=mo[Q];ht+=ss(r,w)&(1<_){f&&Rn(0);break}h&&g(S+131072);var et=S+M;if(S>8},la=function(r,e,n){n<<=e&7;var a=e/8|0;r[a]|=n,r[a+1]|=n>>8,r[a+2]|=n>>16},cs=function(r,e){for(var n=[],a=0;aS&&(S=o[a].s);var p=new vn(S+1),O=ys(n[y-1],p,0);if(O>e){var a=0,F=0,q=O-e,_=1<e)F+=_-(1<>=q;F>0;){var Y=o[a].s;p[Y]=0&&F;--a){var ot=o[a].s;p[ot]==e&&(--p[ot],++F)}O=e}return{t:new tn(p),l:O}},ys=function(r,e,n){return r.s==-1?Math.max(ys(r.l,e,n+1),ys(r.r,e,n+1)):e[r.s]=n},ac=function(r){for(var e=r.length;e&&!r[--e];);for(var n=new vn(++e),a=0,c=r[0],o=1,l=function(f){n[a++]=f},h=1;h<=e;++h)if(r[h]==c&&h!=e)++o;else{if(!c&&o>2){for(;o>138;o-=138)l(32754);o>2&&(l(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(l(c),--o;o>6;o-=6)l(8304);o>2&&(l(o-3<<5|8208),o=0)}for(;o--;)l(c);o=1,c=r[h]}return{c:n.subarray(0,a),n:e}},ha=function(r,e){for(var n=0,a=0;a>8,r[c+2]=r[c]^255,r[c+3]=r[c+1]^255;for(var o=0;o4&&!dt[ms[k-1]];--k);var W=g+5<<3,D=ha(c,Cr)+ha(o,da)+l,st=ha(c,S)+ha(o,F)+l+14+3*k+ha(tt,dt)+2*tt[16]+3*tt[17]+7*tt[18];if(f>=0&&W<=D&&W<=st)return Fc(e,y,r.subarray(f,f+g));var it,lt,$,ht;if(dr(e,y,1+(st15&&(dr(e,y,C[z]>>5&127),y+=C[z]>>12)}}else it=Fu,lt=Cr,$=Cu,ht=da;for(var z=0;z255){var M=T>>18&31;la(e,y,it[M+257]),y+=lt[M+257],M>7&&(dr(e,y,T>>23&31),y+=go[M]);var J=T&31;la(e,y,$[J]),y+=ht[J],J>3&&(la(e,y,T>>5&8191),y+=mo[J])}else la(e,y,it[T]),y+=lt[T]}return la(e,y,it[256]),y+lt[256]},Mu=new Ps([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ic=new tn(0),Eu=function(r,e,n,a,c,o){var l=o.z||r.length,h=new tn(a+l+5*(1+Math.ceil(l/7e3))+c),f=h.subarray(a,h.length-c),g=o.l,y=(o.r||0)&7;if(e){y&&(f[0]=o.r>>3);for(var w=Mu[e-1],S=w>>13,p=w&8191,O=(1<7e3||dt>24576)&&(it>423||!g)){y=oc(r,f,0,ot,ut,wt,z,dt,k,rt-k,y),dt=tt=z=0,k=rt;for(var lt=0;lt<286;++lt)ut[lt]=0;for(var lt=0;lt<30;++lt)wt[lt]=0}var $=2,ht=0,pt=p,It=D-st&32767;if(it>2&&W==Y(rt-It))for(var N=Math.min(S,it)-1,C=Math.min(32767,rt),M=Math.min(258,it);It<=C&&--pt&&D!=st;){if(r[rt+$]==r[rt+$-It]){for(var T=0;T$){if($=T,ht=It,T>N)break;for(var J=Math.min(It,T-2),Q=0,lt=0;ltQ&&(Q=At,st=et)}}}D=st,st=F[D],It+=D-st&32767}if(ht){ot[dt++]=268435456|vs[$]<<18|ic[ht];var Nt=vs[$]&31,Ft=ic[ht]&31;z+=go[Nt]+mo[Ft],++ut[257+Nt],++wt[Ft],P=rt+$,++tt}else ot[dt++]=r[rt],++ut[r[rt]]}}for(rt=Math.max(rt,P);rt=l&&(f[y/8|0]=g,_t=l),y=Fc(f,y+1,r.subarray(rt,_t))}o.i=l}return kc(h,0,a+ks(y)+c)},Cc=function(){var r=1,e=0;return{p:function(n){for(var a=r,c=e,o=n.length|0,l=0;l!=o;){for(var h=Math.min(l+2655,o);l>16),c=(c&65535)+15*(c>>16)}r=a,e=c},d:function(){return r%=65521,e%=65521,(r&255)<<24|(r&65280)<<8|(e&255)<<8|e>>8}}},qu=function(r,e,n,a,c){if(!c&&(c={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),l=new tn(o.length+r.length);l.set(o),l.set(r,o.length),r=l,c.w=o.length}return Eu(r,e.level==null?6:e.level,e.mem==null?c.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,n,a,c)},jc=function(r,e,n){for(;n;++e)r[e]=n,n>>>=8},Du=function(r,e){var n=e.level,a=n==0?0:n<6?1:n==9?3:2;if(r[0]=120,r[1]=a<<6|(e.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,e.dictionary){var c=Cc();c.p(e.dictionary),jc(r,2,c.d())}},Ru=function(r,e){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&Rn(6,"invalid zlib data"),(r[1]>>5&1)==+!e&&Rn(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function ws(r,e){e||(e={});var n=Cc();n.p(r);var a=qu(r,e,e.dictionary?6:2,4);return Du(a,e),jc(a,a.length-4,n.d()),a}function Tu(r,e){return Bu(r.subarray(Ru(r,e),-4),{i:2},e,e)}var zu=typeof TextDecoder<"u"&&new TextDecoder,Uu=0;try{zu.decode(Ic,{stream:!0}),Uu=1}catch{}var Ht=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function us(){Ht.console&&typeof Ht.console.log=="function"&&Ht.console.log.apply(Ht.console,arguments)}var me={log:us,warn:function(r){Ht.console&&(typeof Ht.console.warn=="function"?Ht.console.warn.apply(Ht.console,arguments):us.call(null,arguments))},error:function(r){Ht.console&&(typeof Ht.console.error=="function"?Ht.console.error.apply(Ht.console,arguments):us(r))}};function ls(r,e,n){var a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){Gr(a.response,e,n)},a.onerror=function(){me.error("could not download file")},a.send()}function sc(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function io(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var fa,Ls,Gr=Ht.saveAs||((typeof window>"u"?"undefined":ve(window))!=="object"||window!==Ht?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,n){var a=Ht.URL||Ht.webkitURL,c=document.createElement("a");e=e||r.name||"download",c.download=e,c.rel="noopener",typeof r=="string"?(c.href=r,c.origin!==location.origin?sc(c.href)?ls(r,e,n):io(c,c.target="_blank"):io(c)):(c.href=a.createObjectURL(r),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){io(c)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,n){if(e=e||r.name||"download",typeof r=="string")if(sc(r))ls(r,e,n);else{var a=document.createElement("a");a.href=r,a.target="_blank",setTimeout(function(){io(a)})}else navigator.msSaveOrOpenBlob(function(c,o){return o===void 0?o={autoBom:!1}:ve(o)!=="object"&&(me.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}(r,n),e)}:function(r,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof r=="string")return ls(r,e,n);var c=r.type==="application/octet-stream",o=/constructor/i.test(Ht.HTMLElement)||Ht.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||c&&o)&&(typeof FileReader>"u"?"undefined":ve(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var y=h.result;y=l?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=y:location=y,a=null},h.readAsDataURL(r)}else{var f=Ht.URL||Ht.webkitURL,g=f.createObjectURL(r);a?a.location=g:location.href=g,a=null,setTimeout(function(){f.revokeObjectURL(g)},4e4)}});/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Wf-eMftTXoqi.js","./BeGW3nmX4tO2.js","./B48t-8DI4YWS.js","./BjXju3dgjVrG.js","./39a3VBatk_eA.js","./BMuX_dt1qyjL.js","./Gw82v5PUNK8h.js","./N6gwA50uHdd6.js"])))=>i.map(i=>d[i]); +import{_ as gs}from"./CmsKOCeNyeyo.js";import{_ as ve}from"./B48t-8DI4YWS.js";import"./BeGW3nmX4tO2.js";import"./BjXju3dgjVrG.js";import"./39a3VBatk_eA.js";import"./BMuX_dt1qyjL.js";import"./Gw82v5PUNK8h.js";import"./N6gwA50uHdd6.js";var tn=Uint8Array,vn=Uint16Array,Ps=Int32Array,go=new tn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mo=new tn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ms=new tn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xc=function(r,e){for(var n=new vn(31),a=0;a<31;++a)n[a]=e+=1<>1|(we&21845)<<1;kr=(kr&52428)>>2|(kr&13107)<<2,kr=(kr&61680)>>4|(kr&3855)<<4,bs[we]=((kr&65280)>>8|(kr&255)<<8)>>1}var tr=function(r,e,n){for(var a=r.length,c=0,o=new vn(e);c>f]=g}else for(h=new vn(a),c=0;c>15-r[c]);return h},Cr=new tn(288);for(var we=0;we<144;++we)Cr[we]=8;for(var we=144;we<256;++we)Cr[we]=9;for(var we=256;we<280;++we)Cr[we]=7;for(var we=280;we<288;++we)Cr[we]=8;var da=new tn(32);for(var we=0;we<32;++we)da[we]=5;var Fu=tr(Cr,9,0),Iu=tr(Cr,9,1),Cu=tr(da,5,0),ju=tr(da,5,1),os=function(r){for(var e=r[0],n=1;ne&&(e=r[n]);return e},qn=function(r,e,n){var a=e/8|0;return(r[a]|r[a+1]<<8)>>(e&7)&n},ss=function(r,e){var n=e/8|0;return(r[n]|r[n+1]<<8|r[n+2]<<16)>>(e&7)},ks=function(r){return(r+7)/8|0},kc=function(r,e,n){return(n==null||n>r.length)&&(n=r.length),new tn(r.subarray(e,n))},Ou=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Rn=function(r,e,n){var a=new Error(e||Ou[r]);if(a.code=r,Error.captureStackTrace&&Error.captureStackTrace(a,Rn),!n)throw a;return a},Bu=function(r,e,n,a){var c=r.length,o=0;if(!c||e.f&&!e.l)return n||new tn(0);var l=!n,h=l||e.i!=2,f=e.i;l&&(n=new tn(c*3));var g=function(Nt){var Ft=n.length;if(Nt>Ft){var _t=new tn(Math.max(Ft*2,Nt));_t.set(n),n=_t}},y=e.f||0,w=e.p||0,S=e.b||0,p=e.l,O=e.d,F=e.m,q=e.n,_=c*8;do{if(!p){y=qn(r,w,1);var B=qn(r,w+1,3);if(w+=3,B)if(B==1)p=Iu,O=ju,F=9,q=5;else if(B==2){var wt=qn(r,w,31)+257,tt=qn(r,w+10,15)+4,z=wt+qn(r,w+5,31)+1;w+=14;for(var rt=new tn(z),dt=new tn(19),P=0;P>4;if(Y<16)rt[P++]=Y;else{var it=0,lt=0;for(Y==16?(lt=3+qn(r,w,3),w+=2,it=rt[P-1]):Y==17?(lt=3+qn(r,w,7),w+=3):Y==18&&(lt=11+qn(r,w,127),w+=7);lt--;)rt[P++]=it}}var $=rt.subarray(0,wt),ht=rt.subarray(wt);F=os($),q=os(ht),p=tr($,F,1),O=tr(ht,q,1)}else Rn(1);else{var Y=ks(w)+4,ot=r[Y-4]|r[Y-3]<<8,ut=Y+ot;if(ut>c){f&&Rn(0);break}h&&g(S+ot),n.set(r.subarray(Y,ut),S),e.b=S+=ot,e.p=w=ut*8,e.f=y;continue}if(w>_){f&&Rn(0);break}}h&&g(S+131072);for(var pt=(1<>4;if(w+=it&15,w>_){f&&Rn(0);break}if(it||Rn(2),C<256)n[S++]=C;else if(C==256){N=w,p=null;break}else{var M=C-254;if(C>264){var P=C-257,T=go[P];M=qn(r,w,(1<>4;J||Rn(3),w+=J&15;var ht=ku[Q];if(Q>3){var T=mo[Q];ht+=ss(r,w)&(1<_){f&&Rn(0);break}h&&g(S+131072);var et=S+M;if(S>8},la=function(r,e,n){n<<=e&7;var a=e/8|0;r[a]|=n,r[a+1]|=n>>8,r[a+2]|=n>>16},cs=function(r,e){for(var n=[],a=0;aS&&(S=o[a].s);var p=new vn(S+1),O=ys(n[y-1],p,0);if(O>e){var a=0,F=0,q=O-e,_=1<e)F+=_-(1<>=q;F>0;){var Y=o[a].s;p[Y]=0&&F;--a){var ot=o[a].s;p[ot]==e&&(--p[ot],++F)}O=e}return{t:new tn(p),l:O}},ys=function(r,e,n){return r.s==-1?Math.max(ys(r.l,e,n+1),ys(r.r,e,n+1)):e[r.s]=n},ac=function(r){for(var e=r.length;e&&!r[--e];);for(var n=new vn(++e),a=0,c=r[0],o=1,l=function(f){n[a++]=f},h=1;h<=e;++h)if(r[h]==c&&h!=e)++o;else{if(!c&&o>2){for(;o>138;o-=138)l(32754);o>2&&(l(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(l(c),--o;o>6;o-=6)l(8304);o>2&&(l(o-3<<5|8208),o=0)}for(;o--;)l(c);o=1,c=r[h]}return{c:n.subarray(0,a),n:e}},ha=function(r,e){for(var n=0,a=0;a>8,r[c+2]=r[c]^255,r[c+3]=r[c+1]^255;for(var o=0;o4&&!dt[ms[k-1]];--k);var W=g+5<<3,D=ha(c,Cr)+ha(o,da)+l,st=ha(c,S)+ha(o,F)+l+14+3*k+ha(tt,dt)+2*tt[16]+3*tt[17]+7*tt[18];if(f>=0&&W<=D&&W<=st)return Fc(e,y,r.subarray(f,f+g));var it,lt,$,ht;if(dr(e,y,1+(st15&&(dr(e,y,C[z]>>5&127),y+=C[z]>>12)}}else it=Fu,lt=Cr,$=Cu,ht=da;for(var z=0;z255){var M=T>>18&31;la(e,y,it[M+257]),y+=lt[M+257],M>7&&(dr(e,y,T>>23&31),y+=go[M]);var J=T&31;la(e,y,$[J]),y+=ht[J],J>3&&(la(e,y,T>>5&8191),y+=mo[J])}else la(e,y,it[T]),y+=lt[T]}return la(e,y,it[256]),y+lt[256]},Mu=new Ps([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ic=new tn(0),Eu=function(r,e,n,a,c,o){var l=o.z||r.length,h=new tn(a+l+5*(1+Math.ceil(l/7e3))+c),f=h.subarray(a,h.length-c),g=o.l,y=(o.r||0)&7;if(e){y&&(f[0]=o.r>>3);for(var w=Mu[e-1],S=w>>13,p=w&8191,O=(1<7e3||dt>24576)&&(it>423||!g)){y=oc(r,f,0,ot,ut,wt,z,dt,k,rt-k,y),dt=tt=z=0,k=rt;for(var lt=0;lt<286;++lt)ut[lt]=0;for(var lt=0;lt<30;++lt)wt[lt]=0}var $=2,ht=0,pt=p,It=D-st&32767;if(it>2&&W==Y(rt-It))for(var N=Math.min(S,it)-1,C=Math.min(32767,rt),M=Math.min(258,it);It<=C&&--pt&&D!=st;){if(r[rt+$]==r[rt+$-It]){for(var T=0;T$){if($=T,ht=It,T>N)break;for(var J=Math.min(It,T-2),Q=0,lt=0;ltQ&&(Q=At,st=et)}}}D=st,st=F[D],It+=D-st&32767}if(ht){ot[dt++]=268435456|vs[$]<<18|ic[ht];var Nt=vs[$]&31,Ft=ic[ht]&31;z+=go[Nt]+mo[Ft],++ut[257+Nt],++wt[Ft],P=rt+$,++tt}else ot[dt++]=r[rt],++ut[r[rt]]}}for(rt=Math.max(rt,P);rt=l&&(f[y/8|0]=g,_t=l),y=Fc(f,y+1,r.subarray(rt,_t))}o.i=l}return kc(h,0,a+ks(y)+c)},Cc=function(){var r=1,e=0;return{p:function(n){for(var a=r,c=e,o=n.length|0,l=0;l!=o;){for(var h=Math.min(l+2655,o);l>16),c=(c&65535)+15*(c>>16)}r=a,e=c},d:function(){return r%=65521,e%=65521,(r&255)<<24|(r&65280)<<8|(e&255)<<8|e>>8}}},qu=function(r,e,n,a,c){if(!c&&(c={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),l=new tn(o.length+r.length);l.set(o),l.set(r,o.length),r=l,c.w=o.length}return Eu(r,e.level==null?6:e.level,e.mem==null?c.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,n,a,c)},jc=function(r,e,n){for(;n;++e)r[e]=n,n>>>=8},Du=function(r,e){var n=e.level,a=n==0?0:n<6?1:n==9?3:2;if(r[0]=120,r[1]=a<<6|(e.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,e.dictionary){var c=Cc();c.p(e.dictionary),jc(r,2,c.d())}},Ru=function(r,e){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&Rn(6,"invalid zlib data"),(r[1]>>5&1)==+!e&&Rn(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function ws(r,e){e||(e={});var n=Cc();n.p(r);var a=qu(r,e,e.dictionary?6:2,4);return Du(a,e),jc(a,a.length-4,n.d()),a}function Tu(r,e){return Bu(r.subarray(Ru(r,e),-4),{i:2},e,e)}var zu=typeof TextDecoder<"u"&&new TextDecoder,Uu=0;try{zu.decode(Ic,{stream:!0}),Uu=1}catch{}var Ht=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function us(){Ht.console&&typeof Ht.console.log=="function"&&Ht.console.log.apply(Ht.console,arguments)}var me={log:us,warn:function(r){Ht.console&&(typeof Ht.console.warn=="function"?Ht.console.warn.apply(Ht.console,arguments):us.call(null,arguments))},error:function(r){Ht.console&&(typeof Ht.console.error=="function"?Ht.console.error.apply(Ht.console,arguments):us(r))}};function ls(r,e,n){var a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){Gr(a.response,e,n)},a.onerror=function(){me.error("could not download file")},a.send()}function sc(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function io(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var fa,Ls,Gr=Ht.saveAs||((typeof window>"u"?"undefined":ve(window))!=="object"||window!==Ht?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,n){var a=Ht.URL||Ht.webkitURL,c=document.createElement("a");e=e||r.name||"download",c.download=e,c.rel="noopener",typeof r=="string"?(c.href=r,c.origin!==location.origin?sc(c.href)?ls(r,e,n):io(c,c.target="_blank"):io(c)):(c.href=a.createObjectURL(r),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){io(c)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,n){if(e=e||r.name||"download",typeof r=="string")if(sc(r))ls(r,e,n);else{var a=document.createElement("a");a.href=r,a.target="_blank",setTimeout(function(){io(a)})}else navigator.msSaveOrOpenBlob(function(c,o){return o===void 0?o={autoBom:!1}:ve(o)!=="object"&&(me.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}(r,n),e)}:function(r,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof r=="string")return ls(r,e,n);var c=r.type==="application/octet-stream",o=/constructor/i.test(Ht.HTMLElement)||Ht.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||c&&o)&&(typeof FileReader>"u"?"undefined":ve(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var y=h.result;y=l?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=y:location=y,a=null},h.readAsDataURL(r)}else{var f=Ht.URL||Ht.webkitURL,g=f.createObjectURL(r);a?a.location=g:location.href=g,a=null,setTimeout(function(){f.revokeObjectURL(g)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} @@ -164,7 +164,7 @@ endobj\r * http://opensource.org/licenses/mit-license */function Dn(r,e){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Nc(r){function e(z){if(!z)throw Error("assert :P")}function n(z,rt,dt){for(var P=0;4>P;P++)if(z[rt+P]!=dt.charCodeAt(P))return!0;return!1}function a(z,rt,dt,P,k){for(var W=0;WW+1?[]:new rt),!(D.length>>0;t&u;)u>>>=1;return u?(t&u-1)+u:t}function dt(t,i,u,d,m){e(!(d%u));do t[i+(d-=u)]=m;while(0=m),512>=m)var b=o(512);else if((b=o(m))==null)return 0;return function(L,A,x,I,U,K){var Z,G,vt=A,at=1<Z;++Z){if(H[Z]>1<(Rt-=H[Z]))return 0;for(;0=Z;++Z,U<<=1){if(St+=Rt<<=1,0>(Rt-=H[Z]))return 0;for(;0bt&&!(0>=(gt-=H[bt]));)++bt,gt<<=1;at+=Pt=1<<(gt=bt-x),L[A+(bt=Bt&mt)].g=gt+x,L[A+bt].value=vt-A-bt}I.g=Z-x,I.value=K[G++],dt(L,vt+(Bt>>x),U,Pt,I),Bt=rt(Bt,Z)}}return St!=2*V[15]-1?0:at}(t,i,u,d,m,b)}function k(){this.value=this.g=0}function W(){this.value=this.g=0}function D(){this.G=l(5,k),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=l(Ve,W)}function st(t,i,u,d){e(t!=null),e(i!=null),e(2147483648>d),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=i,t.pa=u,t.Jd=i,t.Yc=u+d,t.Zc=4<=d?u+d-4+1:u,Q(t)}function it(t,i){for(var u=0;0d),t.Sb=d,t.Ra=0,t.u=0,t.h=0,4>>=8,t.Ra+=t.oa[t.pa+t.bb]<>>0,++t.bb,t.u-=8;M(t)&&(t.h=1,t.u=0)}function pt(t,i){if(e(0<=i),!t.h&&i<=pi){var u=C(t)&di[i];return t.u+=i,ht(t),u}return t.h=1,t.u=0}function It(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function C(t){return t.Ra>>>(t.u&gi-1)>>>0}function M(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>gi}function T(t,i){t.u=i,t.h=M(t)}function J(t){t.u>=$i&&(e(t.u>=$i),ht(t))}function Q(t){e(t!=null&&t.oa!=null),t.pa>>0,t.b+=8):(e(t!=null&&t.oa!=null),t.pat.b&&Q(t);var d=t.b,m=u*i>>>8,b=(t.I>>>d>m)+0;for(b?(u-=m,t.I-=m+1<>>0):u=m+1,d=u,m=0;256<=d;)m+=8,d>>=8;return d=7^m+sn[d],t.b-=d,t.Ca=(u<>24&255,t[i+1]=u>>16&255,t[i+2]=u>>8&255,t[i+3]=u>>0&255}function Nt(t,i){return t[i+0]<<0|t[i+1]<<8}function Ft(t,i){return Nt(t,i)|t[i+2]<<16}function _t(t,i){return Nt(t,i)|Nt(t,i+2)<<16}function zt(t,i){var u=1<=m||0>=b?0:(u[0]=m,d[0]=b,1)}function Et(t,i){return t+(1<>>i}function Lt(t,i){return((4278255360&t)+(4278255360&i)>>>0&4278255360)+((16711935&t)+(16711935&i)>>>0&16711935)>>>0}function xt(t,i){z[i]=function(u,d,m,b,L,A,x){var I;for(I=0;I>>1)+(t&i)>>>0}function qt(t){return 0<=t&&256>t?t:0>t?0:255>1))}function Qt(t,i,u){return Math.abs(i-u)-Math.abs(t-u)}function te(t,i,u,d,m,b,L){for(d=b[L-1],u=0;u>8&255,x=16711935&(x=(x=16711935&L)+((A<<16)+A));d[m+b]=(4278255360&L)+x>>>0}}function fe(t,i){i.jd=t>>0&255,i.hd=t>>8&255,i.ud=t>>16&255}function Wt(t,i,u,d,m,b){var L;for(L=0;L>>8,I=A,U=255&(U=(U=A>>>16)+((t.jd<<24>>24)*(x<<24>>24)>>>5));I=255&(I=(I=I+((t.hd<<24>>24)*(x<<24>>24)>>>5))+((t.ud<<24>>24)*(U<<24>>24)>>>5)),m[b+L]=(4278255360&A)+(U<<16)+I}}function ee(t,i,u,d,m){z[i]=function(b,L,A,x,I,U,K,Z,G){for(x=K;x>b.b,G=b.Ea,vt=b.K[0],at=b.w;if(8>Z)for(b=(1<>=Z}else z["VP8LMapColor"+u](x,I,vt,at,U,K,L,A,G)}}function jt(t,i,u,d,m){for(u=i+u;i>16&255,d[m++]=b>>8&255,d[m++]=b>>0&255}}function Je(t,i,u,d,m){for(u=i+u;i>16&255,d[m++]=b>>8&255,d[m++]=b>>0&255,d[m++]=b>>24&255}}function oe(t,i,u,d,m){for(u=i+u;i>16&240|L>>12&15,L=L>>0&240|L>>28&15;d[m++]=b,d[m++]=L}}function _n(t,i,u,d,m){for(u=i+u;i>16&248|L>>13&7,L=L>>5&224|L>>3&31;d[m++]=b,d[m++]=L}}function pe(t,i,u,d,m){for(u=i+u;i>0&255,d[m++]=b>>8&255,d[m++]=b>>16&255}}function Le(t,i,u,d,m,b){if(b==0)for(u=i+u;i>24|b[1]>>8&65280|b[2]<<8&16711680|b[3]<<24)>>>0),m+=32;else a(d,m,t,i,u)}function Un(t,i){z[i][0]=z[t+"0"],z[i][1]=z[t+"1"],z[i][2]=z[t+"2"],z[i][3]=z[t+"3"],z[i][4]=z[t+"4"],z[i][5]=z[t+"5"],z[i][6]=z[t+"6"],z[i][7]=z[t+"7"],z[i][8]=z[t+"8"],z[i][9]=z[t+"9"],z[i][10]=z[t+"10"],z[i][11]=z[t+"11"],z[i][12]=z[t+"12"],z[i][13]=z[t+"13"],z[i][14]=z[t+"0"],z[i][15]=z[t+"0"]}function ce(t){return t==Vo||t==Go||t==Wa||t==Jo}function Or(){this.eb=[],this.size=this.A=this.fb=0}function Ae(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Pn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Or,this.f.kb=new Ae,this.sd=null}function nr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function xe(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Jt(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ue(t,i){var u=t.T,d=i.ba.f.RGBA,m=d.eb,b=d.fb+t.ka*d.A,L=xn[i.ba.S],A=t.y,x=t.O,I=t.f,U=t.N,K=t.ea,Z=t.W,G=i.cc,vt=i.dc,at=i.Mc,H=i.Nc,V=t.ka,gt=t.ka+t.T,bt=t.U,mt=bt+1>>1;for(V==0?L(A,x,null,null,I,U,K,Z,I,U,K,Z,m,b,null,null,bt):(L(i.ec,i.fc,A,x,G,vt,at,H,I,U,K,Z,m,b-d.A,m,b,bt),++u);V+2u,m=u==za||u==Ua||u==Ha||u==Wo||u==12||ce(u);if(i.memory=null,i.Ib=null,i.Jb=null,i.Nd=null,!Ki(i.Oa,t,m?11:12))return 0;if(m&&ce(u)&&yt(),t.da)alert("todo:use_scaling");else{if(d){if(i.Ib=Jt,t.Kb){if(u=t.U+1>>1,i.memory=o(t.U+2*u),i.memory==null)return 0;i.ec=i.memory,i.fc=0,i.cc=i.ec,i.dc=i.fc+t.U,i.Mc=i.cc,i.Nc=i.dc+u,i.Ib=ue,yt()}}else alert("todo:EmitYUV");m&&(i.Jb=Br,d&&X())}if(d&&!Ts){for(t=0;256>t;++t)uu[t]=89858*(t-128)+Ga>>Va,fu[t]=-22014*(t-128)+Ga,hu[t]=-45773*(t-128),lu[t]=113618*(t-128)+Ga>>Va;for(t=aa;t>Va,du[t-aa]=dn(i,255),pu[t-aa]=dn(i+8>>4,15);Ts=1}return 1}function Hn(t){var i=t.ma,u=t.U,d=t.T;return e(!(1&t.ka)),0>=u||0>=d?0:(u=i.Ib(t,i),i.Jb!=null&&i.Jb(t,i,u),i.Dc+=u,1)}function Wn(t){t.ma.memory=null}function Tt(t,i,u,d){return pt(t,8)!=47?0:(i[0]=pt(t,14)+1,u[0]=pt(t,14)+1,d[0]=pt(t,1),pt(t,3)!=0?0:!t.h)}function kn(t,i){if(4>t)return t+1;var u=t-2>>1;return(2+(1&t)<>4)*t+(8-(15&u)))?u:1;var u}function an(t,i,u){var d=C(u),m=t[i+=255&d].g-8;return 0>>0,e(8>=u.g),t.g}function Be(t,i,u){var d=t.xc;return e((i=d==0?0:t.vc[t.md*(u>>d)+(i>>d)])>Pt.b)*St;atbt&&(ne=bt),(0,vr[se[le++]>>8&15])(Z,G+ +ae,V,gt+ae-bt,ne-ae,V,gt+ae),ae=ne}G+=bt,gt+=bt,++at&Bt||(Pt+=St)}K!=I.nc&&a(x,A-vt,x,A+(K-U-1)*vt,vt);break;case 1:for(vt=Z,H=G,bt=(Z=I.Ea)-(gt=Z&~(V=(G=1<>I.b)*at;U=m),0b.o&&(d=b.o),u=d?u=0:(m[0]+=4*b.v,b.ka=u-b.j,b.U=b.va-b.v,b.T=d-u,u=1),u){if(A=A[0],11>(u=t.ca).S){var U=u.f.RGBA,K=(d=u.S,m=b.U,b=b.T,I=U.eb,U.A),Z=b;for(U=U.fb+t.Ma*U.A;0d){var m=t.l.width,b=u.ca,L=u.tb+m*d,A=t.V,x=t.Ba+t.c*d,I=t.gc;e(t.ab==1),e(I[0].hc==3),Ma(I[0],d,i,A,x,b,L),Fn(u,d,i,b,L,m)}t.C=t.Ma=i}function Cn(t,i,u,d,m,b,L){var A=t.$/d,x=t.$%d,I=t.m,U=t.s,K=u+t.$,Z=K;m=u+d*m;var G=u+d*b,vt=280+U.ua,at=t.Pb?A:16777216,H=0=at){var Bt=K-u;e((at=t).Pb),at.wd=at.m,at.xd=Bt,0Rt.g?(T(mt,mt.u+Rt.g),Bt[St]=Rt.value,mt=0):(T(mt,mt.u+Rt.g-256),e(256<=Rt.value),mt=Rt.value),mt==0&&(bt=!0)}else mt=an(gt.G[0],gt.H[0],I);if(I.h)break;if(bt||256>mt){if(!bt)if(gt.nd)i[K]=(gt.qb|mt<<8)>>>0;else{if(J(I),bt=an(gt.G[1],gt.H[1],I),J(I),Bt=an(gt.G[2],gt.H[2],I),St=an(gt.G[3],gt.H[3],I),I.h)break;i[K]=(St<<24|bt<<16|mt<<8|Bt)>>>0}if(bt=!1,++K,++x>=d&&(x=0,++A,L!=null&&A<=b&&!(A%16)&&L(t,A),H!=null))for(;Z>>H.Mb]=mt}else if(280>mt){if(mt=kn(mt-256,I),Bt=an(gt.G[4],gt.H[4],I),J(I),Bt=Vn(d,Bt=kn(Bt,I)),I.h)break;if(K-u=d;)x-=d,++A,L!=null&&A<=b&&!(A%16)&&L(t,A);if(e(K<=m),x&V&&(gt=Be(U,x,A)),H!=null)for(;Z>>H.Mb]=mt}else{if(!(mt>>H.Mb]=mt;mt=K,e(!(bt>>>(Bt=H).Xa)),i[mt]=Bt.X[bt],bt=!0}bt||e(I.h==M(I))}if(t.Pb&&I.h&&Kb?b:A),t.a=0,t.$=K-u}return 1}return t.a=3,0}function Gn(t){e(t!=null),t.vc=null,t.yc=null,t.Ya=null;var i=t.Wa;i!=null&&(i.X=null),t.vb=null,e(t!=null)}function bn(){var t=new zo;return t==null?null:(t.a=0,t.xb=Bs,Un("Predictor","VP8LPredictors"),Un("Predictor","VP8LPredictors_C"),Un("PredictorAdd","VP8LPredictorsAdd"),Un("PredictorAdd","VP8LPredictorsAdd_C"),Ba=ie,Tr=Wt,cn=jt,en=Je,br=oe,or=_n,sr=pe,z.VP8LMapColor32b=mi,z.VP8LMapColor8b=Ea,t)}function Jn(t,i,u,d,m){var b=1,L=[t],A=[i],x=d.m,I=d.s,U=null,K=0;t:for(;;){if(u)for(;b&&pt(x,1);){var Z=L,G=A,vt=d,at=1,H=vt.m,V=vt.gc[vt.ab],gt=pt(H,2);if(vt.Oc&1<=vt.ab),gt){case 0:case 1:V.b=pt(H,3)+2,at=Jn(Et(V.Ea,V.b),Et(V.nc,V.b),0,vt,V.K),V.K=V.K[0];break;case 3:var bt,mt=pt(H,8)+1,Bt=16>Pt.b),le=o(se);if(le==null)bt=0;else{var ae=Pt.K[0],ne=Pt.w;for(le[0]=Pt.K[0][0],St=1;St<1*Rt;++St)le[St]=Lt(ae[ne+St],le[St-1]);for(;St<4*se;++St)le[St]=0;Pt.K[0]=null,Pt.K[0]=le,bt=1}}at=bt;break;case 2:break;default:e(0)}b=at}}if(L=L[0],A=A[0],b&&pt(x,1)&&!(b=1<=(K=pt(x,4))&&11>=K)){d.a=3;break t}var ge;if(ge=b)e:{var de,$t,Ee,un=d,qe=L,ln=A,he=K,gn=u,mn=un.m,ze=un.s,Ge=[null],rn=1,Sn=0,Zn=Kc[he];n:for(;;){if(gn&&pt(mn,1)){var Ue=pt(mn,3)+2,hr=Et(qe,Ue),Vr=Et(ln,Ue),Li=hr*Vr;if(!Jn(hr,Vr,0,un,Ge))break n;for(Ge=Ge[0],ze.xc=Ue,de=0;de>8&65535;Ge[de]=Ar,Ar>=rn&&(rn=Ar+1)}}if(mn.h)break n;for($t=0;5>$t;++$t){var _e=js[$t];!$t&&0=Hs),Ya=Ws;var oa=o(Sn);if(Ya==null||oa==null||Zo==null){un.a=1;break n}var Xa=Zo;for(de=Ee=0;de$t;++$t){_e=js[$t],Ni[$t]=Xa,Ai[$t]=Ee,!$t&&0eo)break r}else ts=eo;for(ca=0;caxi)Zs[ca++]=xi,xi!=0&&($s=xi);else{var xu=xi==16,ec=xi-16,Su=Gc[ec],nc=pt(Sr,Vc[ec])+Su;if(ca+nc>eo)break r;for(var _u=xu?$s:0;0=$t){var ua,ns=oa[0];for(ua=1;ua<_e;++ua)oa[ua]>ns&&(ns=oa[ua]);Gs+=ns}}if(En.nd=Ka,En.Qb=0,Ka&&(En.qb=(Ni[3][Ai[3]+0].value<<24|Ni[1][Ai[1]+0].value<<16|Ni[2][Ai[2]+0].value)>>>0,Vs==0&&256>Ni[0][Ai[0]+0].value&&(En.Qb=1,En.qb+=Ni[0][Ai[0]+0].value<<8)),En.jc=!En.Qb&&6>Gs,En.jc){var no,fr=En;for(no=0;no>=De(ro,8,Pr),_r>>=De(fr.G[1][fr.H[1]+_r],16,Pr),_r>>=De(fr.G[2][fr.H[2]+_r],0,Pr),De(fr.G[3][fr.H[3]+_r],24,Pr))}}}ze.vc=Ge,ze.Wb=rn,ze.Ya=Ya,ze.yc=Zo,ge=1;break e}ge=0}if(!(b=ge)){d.a=3;break t}if(0d+1?[]:0),!(m.lengthm)return ke(t,7,"Truncated header.");var b=u[d+0]|u[d+1]<<8|u[d+2]<<16,L=t.Od;if(L.Rb=!(1&b),L.td=b>>1&7,L.yd=b>>4&1,L.ub=b>>5,3m)return ke(t,7,"cannot parse picture header");if(!va(u,d,m))return ke(t,3,"Bad code word");A.c=16383&(u[d+4]<<8|u[d+3]),A.Td=u[d+4]>>6,A.i=16383&(u[d+6]<<8|u[d+5]),A.Ud=u[d+6]>>6,d+=7,m-=7,t.za=A.c+15>>4,t.Ub=A.i+15>>4,i.width=A.c,i.height=A.i,i.Da=0,i.j=0,i.v=0,i.va=i.width,i.o=i.height,i.da=0,i.ib=i.width,i.hb=i.height,i.U=i.width,i.T=i.height,c((b=t.Pa).jb,0,255,b.jb.length),e((b=t.Qa)!=null),b.Cb=0,b.Bb=0,b.Fb=1,c(b.Zb,0,0,b.Zb.length),c(b.Lb,0,0,b.Lb)}if(L.ub>m)return ke(t,7,"bad partition length");st(b=t.m,u,d,L.ub),d+=L.ub,m-=L.ub,L.Rb&&(A.Ld=et(b),A.Kd=et(b)),A=t.Qa;var x,I=t.Pa;if(e(b!=null),e(A!=null),A.Cb=et(b),A.Cb){if(A.Bb=et(b),et(b)){for(A.Fb=et(b),x=0;4>x;++x)A.Zb[x]=et(b)?lt(b,7):0;for(x=0;4>x;++x)A.Lb[x]=et(b)?lt(b,6):0}if(A.Bb)for(x=0;3>x;++x)I.jb[x]=et(b)?it(b,8):255}else A.Bb=0;if(b.Ka)return ke(t,3,"cannot parse segment header");if((A=t.ed).zd=et(b),A.Tb=it(b,6),A.wb=it(b,3),A.Pc=et(b),A.Pc&&et(b)){for(I=0;4>I;++I)et(b)&&(A.vd[I]=lt(b,6));for(I=0;4>I;++I)et(b)&&(A.od[I]=lt(b,6))}if(t.L=A.Tb==0?0:A.zd?1:2,b.Ka)return ke(t,3,"cannot parse filter header");var U=m;if(m=x=d,d=x+U,A=U,t.Xb=(1<A&&(K=A),st(t.Jc[+U],u,x,K),x+=K,A-=K,m+=3}st(t.Jc[+I],u,x,A),u=xK;++K){if(U.Cb){var Z=U.Zb[K];U.Fb||(Z+=u)}else{if(0>16,8>G.Eb[1]&&(G.Eb[1]=8),G.Qc[0]=Yo[dn(Z+I,117)],G.Qc[1]=Xo[dn(Z+x,127)],G.lc=Z+x}if(!L.Rb)return ke(t,4,"Not a key frame.");for(et(b),L=t.Pa,u=0;4>u;++u){for(m=0;8>m;++m)for(d=0;3>d;++d)for(A=0;11>A;++A)I=nt(b,nu[u][m][d][A])?it(b,8):tu[u][m][d][A],L.Wc[u][m].Yb[d][A]=I;for(m=0;17>m;++m)L.Xc[u][m]=L.Wc[u][ru[m]]}return t.kc=et(b),t.kc&&(t.Bd=it(b,8)),t.cb=1}function ya(t,i,u,d,m,b,L){var A=i[m].Yb[u];for(u=0;16>m;++m){if(!nt(t,A[u+0]))return m;for(;!nt(t,A[u+1]);)if(A=i[++m].Yb[0],u=0,m==16)return 16;var x=i[m+1].Yb;if(nt(t,A[u+2])){var I=t,U=0;if(nt(I,(Z=A)[(K=u)+3]))if(nt(I,Z[K+6])){for(A=0,K=2*(U=nt(I,Z[K+8]))+(Z=nt(I,Z[K+9+U])),U=0,Z=$c[K];Z[A];++A)U+=U+nt(I,Z[A]);U+=3+(8<(I=t).b&&Q(I);var K,Z=I.b,G=(K=I.Ca>>1)-(I.I>>Z)>>31;--I.b,I.Ca+=G,I.Ca|=1,I.I-=(K+1&G)<>4,t.zb=i.j-u>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=i.o+15+u>>4,t.Hb=i.va+15+u>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0u;++u){var m;if(t.Qa.Cb){var b=t.Qa.Lb[u];t.Qa.Fb||(b+=d.Tb)}else b=d.Tb;for(m=0;1>=m;++m){var L=t.gd[u][m],A=b;if(d.Pc&&(A+=d.vd[0],m&&(A+=d.od[0])),0<(A=0>A?0:63>2:x>>1)>9-d.wb&&(x=9-d.wb),1>x&&(x=1),L.dd=x,L.tc=2*A+x,L.ld=40<=A?2:15<=A?1:0}else L.tc=0;L.La=m}}}u=0}else ke(t,6,"Frame setup failed"),u=t.a;if(u=u==0){if(u){t.$c=0,0t.Vb){if(t.Vb=0,t.Ec=o(L),t.Fc=0,t.Ec==null){u=ke(t,1,"no memory during frame initialization.");break t}t.Vb=L}L=t.Ec,A=t.Fc,t.Ac=L,t.Bc=A,A+=d,t.Gd=l(I,ma),t.Hd=0,t.rb=l(U+1,ga),t.sb=1,t.wa=K?l(K,ei):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0=u;++u)Re[255+u]=0>u?-u:u;for(u=-1020;1020>=u;++u)ur[1020+u]=-128>u?-128:127=u;++u)ra[112+u]=-16>u?-16:15=u;++u)wi[255+u]=0>u?0:255mt;++mt){var ae,ne=Rt[0+mt];for(ae=0;4>ae;++ae){ne=eu[Bt[St+ae]][ne];for(var ge=Os[nt(bt,ne[0])];0>3;for(ge=0;256>ge;ge+=16)mt[se+ge]=ln}Ee=1,un=St[0]}var he=15&bt.la,gn=15&le.la;for(ge=0;4>ge;++ge){var mn=1&gn;for(ln=$t=0;4>ln;++ln)he=he>>1|(mn=(qe=ia(Bt,un,qe=mn+(1&he),Pt.Sc,Ee,mt,se))>Ee)<<7,$t=$t<<2|(3>=4,gn=gn>>1|mn<<7,ae=(ae<<8|$t)>>>0}for(un=he,Ee=gn>>4,de=0;4>de;de+=2){for($t=0,he=bt.la>>4+de,gn=le.la>>4+de,ge=0;2>ge;++ge){for(mn=1&gn,ln=0;2>ln;++ln)qe=mn+(1&he),he=he>>1|(mn=0<(qe=ia(Bt,St[2],qe,Pt.Qc,0,mt,se)))<<3,$t=$t<<2|(3>=2,gn=gn>>1|mn<<5}ne|=$t<<4*de,un|=he<<4<=H.zb&&H.M<=H.Va,H.Aa==0)t:{if(at.M=H.M,at.uc=bt,Xi(H,at),gt=1,at=($t=H.D).Nb,bt=(ne=Ja[H.L])*H.R,Bt=ne/2*H.B,ge=16*at*H.R,ln=8*at*H.B,St=H.sa,Rt=H.ta-bt+ge,Pt=H.qa,mt=H.ra-Bt+ln,se=H.Ha,le=H.Ia-Bt+ln,gn=(he=$t.M)==0,ae=he>=H.Va-1,H.Aa==2&&Xi(H,$t),$t.uc)for(mn=(qe=H).D.M,e(qe.D.uc),$t=qe.yb;$tV.o&&(he=V.o),V.F=null,V.J=null,H.Fa!=null&&0>1),V.W+=H.B*(ne>>1),V.F!=null&&(V.J+=V.width*ne)),$t>1,V.W+=V.v>>1,V.F!=null&&(V.J+=V.v),V.ka=$t-V.j,V.U=V.va-V.v,V.T=he-$t,gt=V.put(V))}at+1!=H.Ic||ae||(a(H.sa,H.ta-bt,St,Rt+16*H.R,bt),a(H.qa,H.ra-Bt,Pt,mt+8*H.B,Bt),a(H.Ha,H.Ia-Bt,se,le+8*H.B,Bt))}if(!gt)return ke(G,6,"Output aborted.")}return 1}(t,i)),i.bc!=null&&i.bc(i),u&=1}return u?(t.cb=0,u):0}function jn(t,i,u,d,m){m=t[i+u+32*d]+(m>>3),t[i+u+32*d]=-256&m?0>m?0:255:m}function ri(t,i,u,d,m,b){jn(t,i,0,u,d+m),jn(t,i,1,u,d+b),jn(t,i,2,u,d-b),jn(t,i,3,u,d-m)}function on(t){return(20091*t>>16)+t}function Ei(t,i,u,d){var m,b=0,L=o(16);for(m=0;4>m;++m){var A=t[i+0]+t[i+8],x=t[i+0]-t[i+8],I=(35468*t[i+4]>>16)-on(t[i+12]),U=on(t[i+4])+(35468*t[i+12]>>16);L[b+0]=A+U,L[b+1]=x+I,L[b+2]=x-I,L[b+3]=A-U,b+=4,i++}for(m=b=0;4>m;++m)A=(t=L[b+0]+4)+L[b+8],x=t-L[b+8],I=(35468*L[b+4]>>16)-on(L[b+12]),jn(u,d,0,0,A+(U=on(L[b+4])+(35468*L[b+12]>>16))),jn(u,d,1,0,x+I),jn(u,d,2,0,x-I),jn(u,d,3,0,A-U),b++,d+=32}function wa(t,i,u,d){var m=t[i+0]+4,b=35468*t[i+4]>>16,L=on(t[i+4]),A=35468*t[i+1]>>16;ri(u,d,0,m+L,t=on(t[i+1]),A),ri(u,d,1,m+b,t,A),ri(u,d,2,m-b,t,A),ri(u,d,3,m-L,t,A)}function So(t,i,u,d,m){Ei(t,i,u,d),m&&Ei(t,i+16,u,d+4)}function La(t,i,u,d){cr(t,i+0,u,d,1),cr(t,i+32,u,d+128,1)}function _o(t,i,u,d){var m;for(t=t[i+0]+4,m=0;4>m;++m)for(i=0;4>i;++i)jn(u,d,i,m,t)}function Na(t,i,u,d){t[i+0]&&nn(t,i+0,u,d),t[i+16]&&nn(t,i+16,u,d+4),t[i+32]&&nn(t,i+32,u,d+128),t[i+48]&&nn(t,i+48,u,d+128+4)}function Po(t,i,u,d){var m,b=o(16);for(m=0;4>m;++m){var L=t[i+0+m]+t[i+12+m],A=t[i+4+m]+t[i+8+m],x=t[i+4+m]-t[i+8+m],I=t[i+0+m]-t[i+12+m];b[0+m]=L+A,b[8+m]=L-A,b[4+m]=I+x,b[12+m]=I-x}for(m=0;4>m;++m)L=(t=b[0+4*m]+3)+b[3+4*m],A=b[1+4*m]+b[2+4*m],x=b[1+4*m]-b[2+4*m],I=t-b[3+4*m],u[d+0]=L+A>>3,u[d+16]=I+x>>3,u[d+32]=L-A>>3,u[d+48]=I-x>>3,d+=64}function qi(t,i,u){var d,m=i-32,b=pn,L=255-t[m-1];for(d=0;du;++u)a(t,i+32*u,t,i-32,16)}function ii(t,i){var u;for(u=16;0d;++d)c(i,u+32*d,t,16)}function Aa(t,i){var u,d=16;for(u=0;16>u;++u)d+=t[i-1+32*u]+t[i+u-32];ai(d>>5,t,i)}function Ye(t,i){var u,d=8;for(u=0;16>u;++u)d+=t[i-1+32*u];ai(d>>4,t,i)}function Co(t,i){var u,d=8;for(u=0;16>u;++u)d+=t[i+u-32];ai(d>>4,t,i)}function xa(t,i){ai(128,t,i)}function Vt(t,i,u){return t+2*i+u+2>>2}function jo(t,i){var u,d=i-32;for(d=new Uint8Array([Vt(t[d-1],t[d+0],t[d+1]),Vt(t[d+0],t[d+1],t[d+2]),Vt(t[d+1],t[d+2],t[d+3]),Vt(t[d+2],t[d+3],t[d+4])]),u=0;4>u;++u)a(t,i+32*u,d,0,d.length)}function Oo(t,i){var u=t[i-1],d=t[i-1+32],m=t[i-1+64],b=t[i-1+96];At(t,i+0,16843009*Vt(t[i-1-32],u,d)),At(t,i+32,16843009*Vt(u,d,m)),At(t,i+64,16843009*Vt(d,m,b)),At(t,i+96,16843009*Vt(m,b,b))}function Yn(t,i){var u,d=4;for(u=0;4>u;++u)d+=t[i+u-32]+t[i-1+32*u];for(d>>=3,u=0;4>u;++u)c(t,i+32*u,d,4)}function Sa(t,i){var u=t[i-1+0],d=t[i-1+32],m=t[i-1+64],b=t[i-1-32],L=t[i+0-32],A=t[i+1-32],x=t[i+2-32],I=t[i+3-32];t[i+0+96]=Vt(d,m,t[i-1+96]),t[i+1+96]=t[i+0+64]=Vt(u,d,m),t[i+2+96]=t[i+1+64]=t[i+0+32]=Vt(b,u,d),t[i+3+96]=t[i+2+64]=t[i+1+32]=t[i+0+0]=Vt(L,b,u),t[i+3+64]=t[i+2+32]=t[i+1+0]=Vt(A,L,b),t[i+3+32]=t[i+2+0]=Vt(x,A,L),t[i+3+0]=Vt(I,x,A)}function _a(t,i){var u=t[i+1-32],d=t[i+2-32],m=t[i+3-32],b=t[i+4-32],L=t[i+5-32],A=t[i+6-32],x=t[i+7-32];t[i+0+0]=Vt(t[i+0-32],u,d),t[i+1+0]=t[i+0+32]=Vt(u,d,m),t[i+2+0]=t[i+1+32]=t[i+0+64]=Vt(d,m,b),t[i+3+0]=t[i+2+32]=t[i+1+64]=t[i+0+96]=Vt(m,b,L),t[i+3+32]=t[i+2+64]=t[i+1+96]=Vt(b,L,A),t[i+3+64]=t[i+2+96]=Vt(L,A,x),t[i+3+96]=Vt(A,x,x)}function oi(t,i){var u=t[i-1+0],d=t[i-1+32],m=t[i-1+64],b=t[i-1-32],L=t[i+0-32],A=t[i+1-32],x=t[i+2-32],I=t[i+3-32];t[i+0+0]=t[i+1+64]=b+L+1>>1,t[i+1+0]=t[i+2+64]=L+A+1>>1,t[i+2+0]=t[i+3+64]=A+x+1>>1,t[i+3+0]=x+I+1>>1,t[i+0+96]=Vt(m,d,u),t[i+0+64]=Vt(d,u,b),t[i+0+32]=t[i+1+96]=Vt(u,b,L),t[i+1+32]=t[i+2+96]=Vt(b,L,A),t[i+2+32]=t[i+3+96]=Vt(L,A,x),t[i+3+32]=Vt(A,x,I)}function Di(t,i){var u=t[i+0-32],d=t[i+1-32],m=t[i+2-32],b=t[i+3-32],L=t[i+4-32],A=t[i+5-32],x=t[i+6-32],I=t[i+7-32];t[i+0+0]=u+d+1>>1,t[i+1+0]=t[i+0+64]=d+m+1>>1,t[i+2+0]=t[i+1+64]=m+b+1>>1,t[i+3+0]=t[i+2+64]=b+L+1>>1,t[i+0+32]=Vt(u,d,m),t[i+1+32]=t[i+0+96]=Vt(d,m,b),t[i+2+32]=t[i+1+96]=Vt(m,b,L),t[i+3+32]=t[i+2+96]=Vt(b,L,A),t[i+3+64]=Vt(L,A,x),t[i+3+96]=Vt(A,x,I)}function Bo(t,i){var u=t[i-1+0],d=t[i-1+32],m=t[i-1+64],b=t[i-1+96];t[i+0+0]=u+d+1>>1,t[i+2+0]=t[i+0+32]=d+m+1>>1,t[i+2+32]=t[i+0+64]=m+b+1>>1,t[i+1+0]=Vt(u,d,m),t[i+3+0]=t[i+1+32]=Vt(d,m,b),t[i+3+32]=t[i+1+64]=Vt(m,b,b),t[i+3+64]=t[i+2+64]=t[i+0+96]=t[i+1+96]=t[i+2+96]=t[i+3+96]=b}function Mo(t,i){var u=t[i-1+0],d=t[i-1+32],m=t[i-1+64],b=t[i-1+96],L=t[i-1-32],A=t[i+0-32],x=t[i+1-32],I=t[i+2-32];t[i+0+0]=t[i+2+32]=u+L+1>>1,t[i+0+32]=t[i+2+64]=d+u+1>>1,t[i+0+64]=t[i+2+96]=m+d+1>>1,t[i+0+96]=b+m+1>>1,t[i+3+0]=Vt(A,x,I),t[i+2+0]=Vt(L,A,x),t[i+1+0]=t[i+3+32]=Vt(u,L,A),t[i+1+32]=t[i+3+64]=Vt(d,u,L),t[i+1+64]=t[i+3+96]=Vt(m,d,u),t[i+1+96]=Vt(b,m,d)}function Eo(t,i){var u;for(u=0;8>u;++u)a(t,i+32*u,t,i-32,8)}function Ri(t,i){var u;for(u=0;8>u;++u)c(t,i,t[i-1],8),i+=32}function Er(t,i,u){var d;for(d=0;8>d;++d)c(i,u+32*d,t,8)}function pr(t,i){var u,d=8;for(u=0;8>u;++u)d+=t[i+u-32]+t[i-1+32*u];Er(d>>4,t,i)}function qo(t,i){var u,d=4;for(u=0;8>u;++u)d+=t[i+u-32];Er(d>>3,t,i)}function qr(t,i){var u,d=4;for(u=0;8>u;++u)d+=t[i-1+32*u];Er(d>>3,t,i)}function Ti(t,i){Er(128,t,i)}function si(t,i,u){var d=t[i-u],m=t[i+0],b=3*(m-d)+Ho[1020+t[i-2*u]-t[i+u]],L=Ra[112+(b+4>>3)];t[i-u]=pn[255+d+Ra[112+(b+3>>3)]],t[i+0]=pn[255+m-L]}function Pa(t,i,u,d){var m=t[i+0],b=t[i+u];return An[255+t[i-2*u]-t[i-u]]>d||An[255+b-m]>d}function ka(t,i,u,d){return 4*An[255+t[i-u]-t[i+0]]+An[255+t[i-2*u]-t[i+u]]<=d}function Fa(t,i,u,d,m){var b=t[i-3*u],L=t[i-2*u],A=t[i-u],x=t[i+0],I=t[i+u],U=t[i+2*u],K=t[i+3*u];return 4*An[255+A-x]+An[255+L-I]>d?0:An[255+t[i-4*u]-b]<=m&&An[255+b-L]<=m&&An[255+L-A]<=m&&An[255+K-U]<=m&&An[255+U-I]<=m&&An[255+I-x]<=m}function Ia(t,i,u,d){var m=2*d+1;for(d=0;16>d;++d)ka(t,i+d,u,m)&&si(t,i+d,u)}function Xn(t,i,u,d){var m=2*d+1;for(d=0;16>d;++d)ka(t,i+d*u,1,m)&&si(t,i+d*u,1)}function ar(t,i,u,d){var m;for(m=3;0>7,V=18*gt+63>>7,gt=9*gt+63>>7;x[I-3*U]=pn[255+x[I-3*U]+gt],x[I-2*U]=pn[255+K+V],x[I-U]=pn[255+Z+H],x[I+0]=pn[255+G-H],x[I+U]=pn[255+vt-V],x[I+2*U]=pn[255+at-gt]}i+=d}}function On(t,i,u,d,m,b,L,A){for(b=2*b+1;0>3)],at=Ra[112+(at+3>>3)],H=vt+1>>1;x[I-2*U]=pn[255+x[I-2*U]+H],x[I-U]=pn[255+K+at],x[I+0]=pn[255+Z-vt],x[I+U]=pn[255+G-H]}i+=d}}function zi(t,i,u,d,m,b){gr(t,i,u,1,16,d,m,b)}function Dr(t,i,u,d,m,b){gr(t,i,1,u,16,d,m,b)}function Ro(t,i,u,d,m,b){var L;for(L=3;0I?0:255:I)&255,I=x,m[b+A]=U}}function Ji(t,i,u,d){var m=i.width,b=i.o;if(e(t!=null&&i!=null),0>u||0>=d||u+d>b)return null;if(!t.Cc){if(t.ga==null){var L;if(t.ga=new li,(L=t.ga==null)||(L=i.width*i.o,e(t.Gb.length==0),t.Gb=o(L),t.Uc=0,t.Gb==null?L=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,L=1),L=!L),!L){L=t.ga;var A=t.Fa,x=t.P,I=t.qc,U=t.mb,K=t.nb,Z=x+1,G=I-1,vt=L.l;if(e(A!=null&&U!=null&&i!=null),Nr[0]=null,Nr[1]=Rr,Nr[2]=Gi,Nr[3]=mr,L.ca=U,L.tb=K,L.c=i.width,L.i=i.height,e(0=I)i=0;else if(L.$a=A[x+0]>>0&3,L.Z=A[x+0]>>2&3,L.Lc=A[x+0]>>4&3,x=A[x+0]>>6&3,0>L.$a||1=L.c*L.i;L=!i}if(L)return null;t.ga.Lc!=1?t.Ga=0:d=b-u}e(t.ga!=null),e(u+d<=b);t:{if(i=(A=t.ga).c,b=A.l.o,A.$a==0){if(Z=t.rc,G=t.Vc,vt=t.Fa,x=t.P+1+u*i,I=t.mb,U=t.nb+u*i,e(x<=t.P+t.qc),A.Z!=0)for(e(Nr[A.Z]!=null),L=0;L=i)i=1;else if(A.ic||X(),A.ic){A=L.V,Z=L.Ba,G=L.c;var at=L.i,H=(vt=1,x=L.$/G,I=L.$%G,U=L.m,K=L.s,L.$),V=G*at,gt=G*i,bt=K.wc,mt=H(at=an(mt.G[0],mt.H[0],U)))A[Z+H]=at,++H,++I>=G&&(I=0,++x<=i&&!(x%16)&&In(L,x));else{if(!(280>at)){vt=0;break e}at=kn(at-256,U);var Bt,St=an(mt.G[4],mt.H[4],U);if(J(U),!(H>=(St=Vn(G,St=kn(St,U)))&&V-H>=at)){vt=0;break e}for(Bt=0;Bt=G;)I-=G,++x<=i&&!(x%16)&&In(L,x);Hi?i:x);break e}!vt||U.h&&H=b&&(t.Cc=1),d=1}if(!d)return null;if(t.Cc&&((d=t.ga)!=null&&(d.mc=null),t.ga=null,0>23,A[x+4*L+1]=A[x+4*L+1]*K>>23,A[x+4*L+2]=A[x+4*L+2]*K>>23)}i+=b}}function v(t,i,u,d,m){for(;0>4)*x>>16;t[i+2*b+0]=(240&L|L>>4)*x>>16&240|(15&L|L<<4)*x>>16>>4&15,t[i+2*b+1]=240&I|A}i+=m}}function j(t,i,u,d,m,b,L,A){var x,I,U=255;for(I=0;I>8}function X(){Nn=s,be=v,ye=j,Ie=R}function ct(t,i,u){z[t]=function(d,m,b,L,A,x,I,U,K,Z,G,vt,at,H,V,gt,bt){var mt,Bt=bt-1>>1,St=A[x+0]|I[U+0]<<16,Rt=K[Z+0]|G[vt+0]<<16;e(d!=null);var Pt=3*St+Rt+131074>>2;for(i(d[m+0],255&Pt,Pt>>16,at,H),b!=null&&(Pt=3*Rt+St+131074>>2,i(b[L+0],255&Pt,Pt>>16,V,gt)),mt=1;mt<=Bt;++mt){var se=A[x+mt]|I[U+mt]<<16,le=K[Z+mt]|G[vt+mt]<<16,ae=St+se+Rt+le+524296,ne=ae+2*(se+Rt)>>3;Pt=ne+St>>1,St=(ae=ae+2*(St+le)>>3)+se>>1,i(d[m+2*mt-1],255&Pt,Pt>>16,at,H+(2*mt-1)*u),i(d[m+2*mt-0],255&St,St>>16,at,H+(2*mt-0)*u),b!=null&&(Pt=ae+Rt>>1,St=ne+le>>1,i(b[L+2*mt-1],255&Pt,Pt>>16,V,gt+(2*mt-1)*u),i(b[L+2*mt+0],255&St,St>>16,V,gt+(2*mt+0)*u)),St=se,Rt=le}1&bt||(Pt=3*St+Rt+131074>>2,i(d[m+bt-1],255&Pt,Pt>>16,at,H+(bt-1)*u),b!=null&&(Pt=3*Rt+St+131074>>2,i(b[L+bt-1],255&Pt,Pt>>16,V,gt+(bt-1)*u)))}}function yt(){xn[Ta]=au,xn[za]=Ms,xn[Is]=ou,xn[Ua]=Es,xn[Ha]=qs,xn[Wo]=Ds,xn[Cs]=su,xn[Vo]=Ms,xn[Go]=Es,xn[Wa]=qs,xn[Jo]=Ds}function Ot(t){return t&~cu?0>t?0:255:t>>Rs}function Dt(t,i){return Ot((19077*t>>8)+(26149*i>>8)-14234)}function Zt(t,i,u){return Ot((19077*t>>8)-(6419*i>>8)-(13320*u>>8)+8708)}function Yt(t,i){return Ot((19077*t>>8)+(33050*i>>8)-17685)}function re(t,i,u,d,m){d[m+0]=Dt(t,u),d[m+1]=Zt(t,i,u),d[m+2]=Yt(t,i)}function Ne(t,i,u,d,m){d[m+0]=Yt(t,i),d[m+1]=Zt(t,i,u),d[m+2]=Dt(t,u)}function Se(t,i,u,d,m){var b=Zt(t,i,u);i=b<<3&224|Yt(t,i)>>3,d[m+0]=248&Dt(t,u)|b>>5,d[m+1]=i}function Me(t,i,u,d,m){var b=240&Yt(t,i)|15;d[m+0]=240&Dt(t,u)|Zt(t,i,u)>>4,d[m+1]=b}function Xe(t,i,u,d,m){d[m+0]=255,re(t,i,u,d,m+1)}function Te(t,i,u,d,m){Ne(t,i,u,d,m),d[m+3]=255}function Bn(t,i,u,d,m){re(t,i,u,d,m),d[m+3]=255}function dn(t,i){return 0>t?0:t>i?i:t}function Kn(t,i,u){z[t]=function(d,m,b,L,A,x,I,U,K){for(var Z=U+(-2&K)*u;U!=Z;)i(d[m+0],b[L+0],A[x+0],I,U),i(d[m+1],b[L+0],A[x+0],I,U+u),m+=2,++L,++x,U+=2*u;1&K&&i(d[m+0],b[L+0],A[x+0],I,U)}}function Oa(t,i,u){return u==0?t==0?i==0?6:5:i==0?4:0:u}function Yi(t,i,u,d,m){switch(t>>>30){case 3:cr(i,u,d,m,0);break;case 2:Fe(i,u,d,m);break;case 1:nn(i,u,d,m)}}function Xi(t,i){var u,d,m=i.M,b=i.Nb,L=t.oc,A=t.pc+40,x=t.oc,I=t.pc+584,U=t.oc,K=t.pc+600;for(u=0;16>u;++u)L[A+32*u-1]=129;for(u=0;8>u;++u)x[I+32*u-1]=129,U[K+32*u-1]=129;for(0u;++u)a(L,A+32*u-4,L,A+32*u+12,4);for(u=-1;8>u;++u)a(x,I+32*u-4,x,I+32*u+4,4),a(U,K+32*u-4,U,K+32*u+4,4)}var G=t.Gd,vt=t.Hd+d,at=Z.ad,H=Z.Hc;if(0=t.za-1?c(V,gt,G[vt].y[15],4):a(V,gt,G[vt+1].y,0,4)),u=0;4>u;u++)V[gt+128+u]=V[gt+256+u]=V[gt+384+u]=V[gt+0+u];for(u=0;16>u;++u,H<<=2)V=L,gt=A+zs[u],Mn[Z.Ob[u]](V,gt),Yi(H,at,16*+u,V,gt)}else if(V=Oa(d,m,Z.Ob[0]),Lr[V](L,A),H!=0)for(u=0;16>u;++u,H<<=2)Yi(H,at,16*+u,L,A+zs[u]);for(u=Z.Gc,V=Oa(d,m,Z.Dd),lr[V](x,I),lr[V](U,K),H=at,V=x,gt=I,255&(Z=u>>0)&&(170&Z?ta(H,256,V,gt):wn(H,256,V,gt)),Z=U,H=K,255&(u>>=8)&&(170&u?ta(at,320,Z,H):wn(at,320,Z,H)),mu;++u)a(G,vt+u*t.R,L,A+32*u,16);for(u=0;8>u;++u)a(at,Z+u*t.B,x,I+32*u,8),a(H,V+u*t.B,U,K+32*u,8)}}function hi(t,i,u,d,m,b,L,A,x){var I=[0],U=[0],K=0,Z=x!=null?x.kd:0,G=x??new Wi;if(t==null||12>u)return 7;G.data=t,G.w=i,G.ha=u,i=[i],u=[u],G.gb=[G.gb];t:{var vt=i,at=u,H=G.gb;if(e(t!=null),e(at!=null),e(H!=null),H[0]=0,12<=at[0]&&!n(t,vt[0],"RIFF")){if(n(t,vt[0]+8,"WEBP")){H=3;break t}var V=_t(t,vt[0]+4);if(12>V||4294967286at[0]-8){H=7;break t}H[0]=V,vt[0]+=12,at[0]-=12}H=0}if(H!=0)return H;for(V=0H[0])H=7;else{if(!n(gt,at[0],"VP8X")){if(_t(gt,at[0]+4)!=10){H=3;break t}if(18>H[0]){H=7;break t}var St=_t(gt,at[0]+8),Rt=1+Ft(gt,at[0]+12);if(2147483648<=Rt*(gt=1+Ft(gt,at[0]+15))){H=3;break t}Bt!=null&&(Bt[0]=St),bt!=null&&(bt[0]=Rt),mt!=null&&(mt[0]=gt),at[0]+=18,H[0]-=18,Pt[0]=1}H=0}}if(K=K[0],vt=vt[0],H!=0)return H;if(at=!!(2&vt),!V&&K)return 3;if(b!=null&&(b[0]=!!(16&vt)),L!=null&&(L[0]=at),A!=null&&(A[0]=0),L=I[0],vt=U[0],K&&at&&x==null){H=0;break}if(4>u){H=7;break}if(V&&K||!V&&!K&&!n(t,i[0],"ALPH")){u=[u],G.na=[G.na],G.P=[G.P],G.Sa=[G.Sa];t:{St=t,H=i,V=u;var Pt=G.gb;bt=G.na,mt=G.P,Bt=G.Sa,Rt=22,e(St!=null),e(V!=null),gt=H[0];var se=V[0];for(e(bt!=null),e(Bt!=null),bt[0]=null,mt[0]=null,Bt[0]=0;;){if(H[0]=gt,V[0]=se,8>se){H=7;break t}var le=_t(St,gt+4);if(4294967286Pt){H=3;break t}if(!n(St,gt,"VP8 ")||!n(St,gt,"VP8L")){H=0;break t}if(se[0]V[0])H=7;else{if(gt||Rt){if(Pt=_t(Pt,St+4),12<=bt&&Pt>bt-12){H=3;break t}if(Z&&Pt>V[0]-8){H=7;break t}mt[0]=Pt,H[0]+=8,V[0]-=8,Bt[0]=Rt}else Bt[0]=5<=V[0]&&Pt[St+0]==47&&!(Pt[St+4]>>5),mt[0]=V[0];H=0}if(u=u[0],G.Ja=G.Ja[0],G.xa=G.xa[0],i=i[0],H!=0)break;if(4294967286u){H=7;break}A=L,Z=vt,at=b,t==null||5>u?t=0:5<=u&&t[i+0]==47&&!(t[i+4]>>5)?(V=[0],Pt=[0],bt=[0],$(mt=new N,t,i,u),Tt(mt,V,Pt,bt)?(A!=null&&(A[0]=V[0]),Z!=null&&(Z[0]=Pt[0]),at!=null&&(at[0]=bt[0]),t=1):t=0):t=0}else{if(10>u){H=7;break}A=vt,t==null||10>u||!va(t,i+3,u-3)?t=0:(Z=t[i+0]|t[i+1]<<8|t[i+2]<<16,at=16383&(t[i+7]<<8|t[i+6]),t=16383&(t[i+9]<<8|t[i+8]),1&Z||3<(Z>>1&7)||!(Z>>4&1)||Z>>5>=G.Ja||!at||!t?t=0:(L&&(L[0]=at),A&&(A[0]=t),t=1))}if(!t||(L=L[0],vt=vt[0],K&&(I[0]!=L||U[0]!=vt)))return 3;x!=null&&(x[0]=G,x.offset=i-x.w,e(4294967286>i-x.w),e(x.offset==x.ha-u));break}return H==0||H==7&&K&&x==null?(b!=null&&(b[0]|=G.na!=null&&0u||(b&=-2,L&=-2),0>b||0>L||0>=A||0>=x||b+A>d||L+x>m))return 0;if(i.v=b,i.j=L,i.va=b+A,i.o=L+x,i.U=A,i.T=x,i.da=t!=null&&0t.S){var i=t.f.RGBA;i.fb+=(t.height-1)*i.A,i.A=-i.A}else i=t.f.kb,t=t.height,i.O+=(t-1)*i.fa,i.fa=-i.fa,i.N+=(t-1>>1)*i.Ab,i.Ab=-i.Ab,i.W+=(t-1>>1)*i.Db,i.Db=-i.Db,i.F!=null&&(i.J+=(t-1)*i.lb,i.lb=-i.lb);return 0}function fi(t,i,u,d){if(d==null||0>=t||0>=i)return 2;if(u!=null){if(u.Da){var m=u.cd,b=u.bd,L=-2&u.v,A=-2&u.j;if(0>L||0>A||0>=m||0>=b||L+m>t||A+b>i)return 2;t=m,i=b}if(u.da){if(!Kt(t,i,m=[u.ib],b=[u.hb]))return 2;t=m[0],i=b[0]}}d.width=t,d.height=i;t:{var x=d.width,I=d.height;if(t=d.S,0>=x||0>=I||!(t>=Ta&&13>t))t=2;else{if(0>=d.Rd&&d.sd==null){L=b=m=i=0;var U=(A=x*Us[t])*I;if(11>t||(b=(I+1)/2*(i=(x+1)/2),t==12&&(L=(m=x)*I)),(I=o(U+2*b+L))==null){t=1;break t}d.sd=I,11>t?((x=d.f.RGBA).eb=I,x.fb=0,x.A=A,x.size=U):((x=d.f.kb).y=I,x.O=0,x.fa=A,x.Fd=U,x.f=I,x.N=0+U,x.Ab=i,x.Cd=b,x.ea=I,x.W=0+U+b,x.Db=i,x.Ed=b,t==12&&(x.F=I,x.J=0+U+2*b),x.Tc=L,x.lb=m)}if(i=1,m=d.S,b=d.width,L=d.height,m>=Ta&&13>m)if(11>m)t=d.f.RGBA,i&=(A=Math.abs(t.A))*(L-1)+b<=t.size,i&=A>=b*Us[m],i&=t.eb!=null;else{t=d.f.kb,A=(b+1)/2,U=(L+1)/2,x=Math.abs(t.fa),I=Math.abs(t.Ab);var K=Math.abs(t.Db),Z=Math.abs(t.lb),G=Z*(L-1)+b;i&=x*(L-1)+b<=t.Fd,i&=I*(U-1)+A<=t.Cd,i=(i&=K*(U-1)+A<=t.Ed)&x>=b&I>=A&K>=A,i&=t.y!=null,i&=t.f!=null,i&=t.ea!=null,m==12&&(i&=Z>=b,i&=G<=t.Tc,i&=t.F!=null)}else i=0;t=i?0:2}}return t!=0||u!=null&&u.fd&&(t=Zi(d)),t}var Ve=64,di=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],pi=24,gi=32,$i=8,sn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];xt("Predictor0","PredictorAdd0"),z.Predictor0=function(){return 4278190080},z.Predictor1=function(t){return t},z.Predictor2=function(t,i,u){return i[u+0]},z.Predictor3=function(t,i,u){return i[u+1]},z.Predictor4=function(t,i,u){return i[u-1]},z.Predictor5=function(t,i,u){return kt(kt(t,i[u+1]),i[u+0])},z.Predictor6=function(t,i,u){return kt(t,i[u-1])},z.Predictor7=function(t,i,u){return kt(t,i[u+0])},z.Predictor8=function(t,i,u){return kt(i[u-1],i[u+0])},z.Predictor9=function(t,i,u){return kt(i[u+0],i[u+1])},z.Predictor10=function(t,i,u){return kt(kt(t,i[u-1]),kt(i[u+0],i[u+1]))},z.Predictor11=function(t,i,u){var d=i[u+0];return 0>=Qt(d>>24&255,t>>24&255,(i=i[u-1])>>24&255)+Qt(d>>16&255,t>>16&255,i>>16&255)+Qt(d>>8&255,t>>8&255,i>>8&255)+Qt(255&d,255&t,255&i)?d:t},z.Predictor12=function(t,i,u){var d=i[u+0];return(qt((t>>24&255)+(d>>24&255)-((i=i[u-1])>>24&255))<<24|qt((t>>16&255)+(d>>16&255)-(i>>16&255))<<16|qt((t>>8&255)+(d>>8&255)-(i>>8&255))<<8|qt((255&t)+(255&d)-(255&i)))>>>0},z.Predictor13=function(t,i,u){var d=i[u-1];return(Gt((t=kt(t,i[u+0]))>>24&255,d>>24&255)<<24|Gt(t>>16&255,d>>16&255)<<16|Gt(t>>8&255,d>>8&255)<<8|Gt(t>>0&255,d>>0&255))>>>0};var Uo=z.PredictorAdd0;z.PredictorAdd1=te,xt("Predictor2","PredictorAdd2"),xt("Predictor3","PredictorAdd3"),xt("Predictor4","PredictorAdd4"),xt("Predictor5","PredictorAdd5"),xt("Predictor6","PredictorAdd6"),xt("Predictor7","PredictorAdd7"),xt("Predictor8","PredictorAdd8"),xt("Predictor9","PredictorAdd9"),xt("Predictor10","PredictorAdd10"),xt("Predictor11","PredictorAdd11"),xt("Predictor12","PredictorAdd12"),xt("Predictor13","PredictorAdd13");var Qi=z.PredictorAdd2;ee("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),ee("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var Ba,yn=z.ColorIndexInverseTransform,mi=z.MapARGB,Ma=z.VP8LColorIndexInverseTransformAlpha,Ea=z.MapAlpha,vr=z.VP8LPredictorsAdd=[];vr.length=16,(z.VP8LPredictors=[]).length=16,(z.VP8LPredictorsAdd_C=[]).length=16,(z.VP8LPredictors_C=[]).length=16;var Tr,cn,en,br,or,sr,vi,cr,Fe,ta,nn,wn,bi,qa,ea,zr,Ur,yr,Hr,yi,Wr,wr,na,Ln,Nn,be,ye,Ie,Re=o(511),ur=o(2041),ra=o(225),wi=o(767),Da=0,Ho=ur,Ra=ra,pn=wi,An=Re,Ta=0,za=1,Is=2,Ua=3,Ha=4,Wo=5,Cs=6,Vo=7,Go=8,Wa=9,Jo=10,Vc=[2,3,7],Gc=[3,3,11],js=[280,256,256,256,40],Jc=[0,1,1,1,0],Yc=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Xc=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Kc=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Zc=8,Yo=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Xo=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ia=null,$c=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Qc=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Os=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],tu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],eu=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],nu=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ru=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Lr=[],Mn=[],lr=[],iu=1,Bs=2,Nr=[],xn=[];ct("UpsampleRgbLinePair",re,3),ct("UpsampleBgrLinePair",Ne,3),ct("UpsampleRgbaLinePair",Bn,4),ct("UpsampleBgraLinePair",Te,4),ct("UpsampleArgbLinePair",Xe,4),ct("UpsampleRgba4444LinePair",Me,2),ct("UpsampleRgb565LinePair",Se,2);var au=z.UpsampleRgbLinePair,ou=z.UpsampleBgrLinePair,Ms=z.UpsampleRgbaLinePair,Es=z.UpsampleBgraLinePair,qs=z.UpsampleArgbLinePair,Ds=z.UpsampleRgba4444LinePair,su=z.UpsampleRgb565LinePair,Va=16,Ga=1<d.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),d.ca.f.kb.F!=null&&X()),d.Pb&&0(x=u.Md)?0:100I;++I)12>(K=m.pb[I]).lc&&(K.ia=x*gu[0>K.lc?0:K.lc]>>3),U|=K.ia;U&&(alert("todo:VP8InitRandom"),m.ia=1)}m.Ga=u.Id,100m.Ga&&(m.Ga=0)}xo(t,d)||(i=t.a)}}else i=t.a}i==0&&L.Oa!=null&&L.Oa.fd&&(i=Zi(L.ba))}L=i}b=L!=0?null:11>b?A.f.RGBA.eb:A.f.kb.y}else b=null;return b};var Us=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function g(z,rt){for(var dt="",P=0;P<4;P++)dt+=String.fromCharCode(z[rt++]);return dt}function y(z,rt){return(z[rt+0]<<0|z[rt+1]<<8|z[rt+2]<<16)>>>0}function w(z,rt){return(z[rt+0]<<0|z[rt+1]<<8|z[rt+2]<<16|z[rt+3]<<24)>>>0}new f;var S=[0],p=[0],O=[],F=new f,q=r,_=function(z,rt){var dt={},P=0,k=!1,W=0,D=0;if(dt.frames=[],!function(C,M,T,J){for(var Q=0;Q>1&1}lt!="ANMF"&&(rt+=ht)}return dt}}(q,0);_.response=q,_.rgbaoutput=!0,_.dataurl=!1;var B=_.header?_.header:null,Y=_.frames?_.frames:null;if(B){B.loop_counter=B.loop_count,S=[B.canvas_height],p=[B.canvas_width];for(var ot=0;ot>>1)&255;return _},f=function(S,p,O){var F,q,_,B,Y=[],ot=S.length;Y[0]=4;for(var ut=0;ut>>lt&255,lt+=B.bits;rt[W]=k>>>lt&255}}if(B.bits===16){z=(tt=new Uint32Array(B.decodePixels().buffer)).length,dt=new Uint8Array(z*(32/B.pixelBitlength)*B.colors),rt=new Uint8Array(z*(32/B.pixelBitlength)),P=B.colors>1,W=0,D=0;for(var ht=0;W>>0&255,P&&(dt[D++]=k>>>16&255,k=tt[W++],dt[D++]=k>>>0&255),rt[ht++]=k>>>16&255;_=8}F!==r.image_compression.NONE&&e()?(S=n(dt,B.width*B.colors,B.colors,F),wt=n(rt,B.width,1,F)):(S=dt,wt=rt,st=void 0)}if(B.colorType===3&&(q=this.color_spaces.INDEXED,ut=B.palette,B.transparency.indexed)){var pt=B.transparency.indexed,It=0;for(W=0,z=pt.length;W=0;r--){for(var a=this.bottom_up?r:this.height-1-r,c=0;c>7-h&1];this.data[l+4*h]=f.blue,this.data[l+4*h+1]=f.green,this.data[l+4*h+2]=f.red,this.data[l+4*h+3]=255}n!==0&&(this.pos+=4-n)}},Dn.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),e=r%4,n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,c=0;c>4,f=15&o,g=this.palette[h];if(this.data[l]=g.blue,this.data[l+1]=g.green,this.data[l+2]=g.red,this.data[l+3]=255,2*c+1>=this.width)break;g=this.palette[f],this.data[l+4]=g.blue,this.data[l+4+1]=g.green,this.data[l+4+2]=g.red,this.data[l+4+3]=255}e!==0&&(this.pos+=4-e)}},Dn.prototype.bit8=function(){for(var r=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a=0;n--){for(var a=this.bottom_up?n:this.height-1-n,c=0;c>5&e)/e*255|0,f=(o>>10&e)/e*255|0,g=o>>15?255:0,y=a*this.width*4+4*c;this.data[y]=f,this.data[y+1]=h,this.data[y+2]=l,this.data[y+3]=g}this.pos+=r}},Dn.prototype.bit16=function(){for(var r=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var c=this.bottom_up?a:this.height-1-a,o=0;o>5&n)/n*255|0,g=(l>>11)/e*255|0,y=c*this.width*4+4*o;this.data[y]=g,this.data[y+1]=f,this.data[y+2]=h,this.data[y+3]=255}this.pos+=r}},Dn.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var e=this.bottom_up?r:this.height-1-r,n=0;n=0;r--)for(var e=this.bottom_up?r:this.height-1-r,n=0;na&&(c.push(r.slice(f,o)),h=0,f=o),h+=e[o],o++;return f!==o&&c.push(r.slice(f,o)),c},wc=function(r,e,n){n||(n={});var a,c,o,l,h,f,g,y=[],w=[y],S=n.textIndent||0,p=0,O=0,F=r.split(" "),q=so.apply(this,[" ",n])[0];if(f=n.lineIndent===-1?F[0].length+2:n.lineIndent||0){var _=Array(f).join(" "),B=[];F.map(function(ot){(ot=ot.split(/\s*\n/)).length>1?B=B.concat(ot.map(function(ut,wt){return(wt&&ut.length?` `:"")+ut})):B.push(ot[0])}),F=B,f=bc.apply(this,[_,n])}for(o=0,l=F.length;oe||Y){if(O>e){for(h=yc.apply(this,[a,c,e-(S+p),e]),y.push(h.shift()),y=[h.pop()];h.length;)w.push([h.shift()]);O=c.slice(a.length-(y[0]?y[0].length:0)).reduce(function(ot,ut){return ot+ut},0)}else y=[a];w.push(y),S=O+f,p=q}else y.push(a),S+=p+O,p=q}return g=f?function(ot,ut){return(ut?_:"")+ot.join(" ")}:function(ot){return ot.join(" ")},w.map(g)},_i.splitTextToSize=function(r,e,n){var a,c=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(y){if(y.widths&&y.kerning)return{widths:y.widths,kerning:y.kerning};var w=this.internal.getFont(y.fontName,y.fontStyle);return w.metadata.Unicode?{widths:w.metadata.Unicode.widths||{0:1},kerning:w.metadata.Unicode.kerning||{}}:{font:w.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);a=Array.isArray(r)?r:String(r).split(/\r?\n/);var l=1*this.internal.scaleFactor*e/c;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/c:0,o.lineIndent=n.lineIndent;var h,f,g=[];for(h=0,f=a.length;himport("./DnKCrehDk6ys.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}Ut.API.addSvgAsImage=function(n,a,c,o,l,h,f,g){if(isNaN(a)||isNaN(c))throw me.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(l))throw me.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var y=document.createElement("canvas");y.width=o,y.height=l;var w=y.getContext("2d");w.fillStyle="#fff",w.fillRect(0,0,y.width,y.height);var S={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return e().then(function(O){return O.fromString(w,n,S)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(O){return O.render(S)}).then(function(){p.addImage(y.toDataURL("image/jpeg",1),a,c,o,l,f,g)})}}(),Ut.API.putTotalPages=function(r){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(r,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var c=0;c1){for(y=0;ye||Y){if(O>e){for(h=yc.apply(this,[a,c,e-(S+p),e]),y.push(h.shift()),y=[h.pop()];h.length;)w.push([h.shift()]);O=c.slice(a.length-(y[0]?y[0].length:0)).reduce(function(ot,ut){return ot+ut},0)}else y=[a];w.push(y),S=O+f,p=q}else y.push(a),S+=p+O,p=q}return g=f?function(ot,ut){return(ut?_:"")+ot.join(" ")}:function(ot){return ot.join(" ")},w.map(g)},_i.splitTextToSize=function(r,e,n){var a,c=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(y){if(y.widths&&y.kerning)return{widths:y.widths,kerning:y.kerning};var w=this.internal.getFont(y.fontName,y.fontStyle);return w.metadata.Unicode?{widths:w.metadata.Unicode.widths||{0:1},kerning:w.metadata.Unicode.kerning||{}}:{font:w.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);a=Array.isArray(r)?r:String(r).split(/\r?\n/);var l=1*this.internal.scaleFactor*e/c;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/c:0,o.lineIndent=n.lineIndent;var h,f,g=[];for(h=0,f=a.length;himport("./Wf-eMftTXoqi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}Ut.API.addSvgAsImage=function(n,a,c,o,l,h,f,g){if(isNaN(a)||isNaN(c))throw me.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(l))throw me.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var y=document.createElement("canvas");y.width=o,y.height=l;var w=y.getContext("2d");w.fillStyle="#fff",w.fillRect(0,0,y.width,y.height);var S={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return e().then(function(O){return O.fromString(w,n,S)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(O){return O.render(S)}).then(function(){p.addImage(y.toDataURL("image/jpeg",1),a,c,o,l,f,g)})}}(),Ut.API.putTotalPages=function(r){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(r,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var c=0;c1){for(y=0;yl!=null);const[u,a]=v.useState(()=>o.map((l,c)=>({media:l,matches:r?!!s[c]:t().matchMedia(l).matches})));return v.useEffect(()=>{const l=t();a(o.map(p=>({media:p,matches:l.matchMedia(p).matches})));const c=o.map(p=>l.matchMedia(p)),d=p=>{a(m=>m.slice().map(g=>g.media===p.media?{...g,matches:p.matches}:g))};return c.forEach(p=>{typeof p.addListener=="function"?p.addListener(d):p.addEventListener("change",d)}),()=>{c.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(d):p.removeEventListener("change",d)})}},[t]),u.map(l=>l.matches)}function zn(n){const e=Vt(n)?n:{fallback:n??"base"},i=Re().__breakpoints.details.map(({minMaxQuery:u,breakpoint:a})=>({breakpoint:a,query:u.replace("@media screen and ","")})),t=i.map(u=>u.breakpoint===e.fallback),s=Hn(i.map(u=>u.query),{fallback:t,ssr:e.ssr}).findIndex(u=>u==!0);return i[s]?.breakpoint??e.fallback}function Bn(n,e,r=On){let i=Object.keys(n).indexOf(e);if(i!==-1)return n[e];let t=r.indexOf(e);for(;t>=0;){const o=r[t];if(n.hasOwnProperty(o)){i=t;break}t-=1}if(i!==-1){const o=r[i];return n[o]}}function Un(n,e){const r=Vt(e)?e:{fallback:e??"base"},i=zn(r),t=Re();if(!i)return;const o=Array.from(t.__breakpoints?.keys||[]),s=Array.isArray(n)?Object.fromEntries(Object.entries(Cn(n,o)).map(([u,a])=>[u,a])):n;return Bn(s,i,o)}function Wn(n,e){const r=v.useRef(n);r.current=n;const i=Gn(e);return v.useMemo(()=>Vn(()=>r.current()),[i])}function Yn(n){const e=v.useCallback(()=>n.peek(),[n]),r=v.useCallback(t=>{const o=Ln(()=>[n.value],t);return()=>o.destroy()},[n]),i=v.useSyncExternalStore(r,e);return v.useDebugValue(i),i}function qe(n,e){const r=Wn(n,e),i=Yn(r);return v.useDebugValue(i),i}function Gn(n){const e=v.useRef();return(e.current==null||!Xn(e.current,n))&&(e.current=n??[]),e.current}function Xn(n,e){return n===e?!0:n.length===(e?.length??0)&&n.every((r,i)=>r===e[i])}function it(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),r.push.apply(r,i)}return r}function C(n){for(var e=1;en.length)&&(e=n.length);for(var r=0,i=Array(e);rl!=null);const[u,a]=v.useState(()=>o.map((l,c)=>({media:l,matches:r?!!s[c]:t().matchMedia(l).matches})));return v.useEffect(()=>{const l=t();a(o.map(p=>({media:p,matches:l.matchMedia(p).matches})));const c=o.map(p=>l.matchMedia(p)),d=p=>{a(m=>m.slice().map(g=>g.media===p.media?{...g,matches:p.matches}:g))};return c.forEach(p=>{typeof p.addListener=="function"?p.addListener(d):p.addEventListener("change",d)}),()=>{c.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(d):p.removeEventListener("change",d)})}},[t]),u.map(l=>l.matches)}function zn(n){const e=Vt(n)?n:{fallback:n??"base"},i=Re().__breakpoints.details.map(({minMaxQuery:u,breakpoint:a})=>({breakpoint:a,query:u.replace("@media screen and ","")})),t=i.map(u=>u.breakpoint===e.fallback),s=Hn(i.map(u=>u.query),{fallback:t,ssr:e.ssr}).findIndex(u=>u==!0);return i[s]?.breakpoint??e.fallback}function Bn(n,e,r=On){let i=Object.keys(n).indexOf(e);if(i!==-1)return n[e];let t=r.indexOf(e);for(;t>=0;){const o=r[t];if(n.hasOwnProperty(o)){i=t;break}t-=1}if(i!==-1){const o=r[i];return n[o]}}function Un(n,e){const r=Vt(e)?e:{fallback:e??"base"},i=zn(r),t=Re();if(!i)return;const o=Array.from(t.__breakpoints?.keys||[]),s=Array.isArray(n)?Object.fromEntries(Object.entries(Cn(n,o)).map(([u,a])=>[u,a])):n;return Bn(s,i,o)}function Wn(n,e){const r=v.useRef(n);r.current=n;const i=Gn(e);return v.useMemo(()=>Vn(()=>r.current()),[i])}function Yn(n){const e=v.useCallback(()=>n.peek(),[n]),r=v.useCallback(t=>{const o=Ln(()=>[n.value],t);return()=>o.destroy()},[n]),i=v.useSyncExternalStore(r,e);return v.useDebugValue(i),i}function qe(n,e){const r=Wn(n,e),i=Yn(r);return v.useDebugValue(i),i}function Gn(n){const e=v.useRef();return(e.current==null||!Xn(e.current,n))&&(e.current=n??[]),e.current}function Xn(n,e){return n===e?!0:n.length===(e?.length??0)&&n.every((r,i)=>r===e[i])}function it(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),r.push.apply(r,i)}return r}function C(n){for(var e=1;en.length)&&(e=n.length);for(var r=0,i=Array(e);r({x:n,y:n});function dr(n){const{x:e,y:r,width:i,height:t}=n;return{width:i,height:t,top:r,left:e,right:e+i,bottom:r+t,x:e,y:r}}function Ft(n){return At(n)?(n.nodeName||"").toLowerCase():"#document"}function te(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Tt(n){var e;return(e=(At(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function At(n){return n instanceof Node||n instanceof te(n).Node}function pr(n){return n instanceof Element||n instanceof te(n).Element}function Ze(n){return n instanceof HTMLElement||n instanceof te(n).HTMLElement}function at(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof te(n).ShadowRoot}function $t(n){const{overflow:e,overflowX:r,overflowY:i,display:t}=Je(n);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(t)}function fr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vr(n){return["html","body","#document"].includes(Ft(n))}function Je(n){return te(n).getComputedStyle(n)}function mr(n){if(Ft(n)==="html")return n;const e=n.assignedSlot||n.parentNode||at(n)&&n.host||Tt(n);return at(e)?e.host:e}function Nt(n){const e=mr(n);return vr(e)?n.ownerDocument?n.ownerDocument.body:n.body:Ze(e)&&$t(e)?e:Nt(e)}function Ie(n,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);const t=Nt(n),o=t===((i=n.ownerDocument)==null?void 0:i.body),s=te(t);return o?e.concat(s,s.visualViewport||[],$t(t)?t:[],s.frameElement&&r?Ie(s.frameElement):[]):e.concat(t,Ie(t,[],r))}function hr(n){const e=Je(n);let r=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const t=Ze(n),o=t?n.offsetWidth:r,s=t?n.offsetHeight:i,u=xe(r)!==o||xe(i)!==s;return u&&(r=o,i=s),{width:r,height:i,$:u}}function Qe(n){return pr(n)?n:n.contextElement}function st(n){const e=Qe(n);if(!Ze(e))return Pe(1);const r=e.getBoundingClientRect(),{width:i,height:t,$:o}=hr(e);let s=(o?xe(r.width):r.width)/i,u=(o?xe(r.height):r.height)/t;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const gr=Pe(0);function br(n){const e=te(n);return!fr()||!e.visualViewport?gr:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Sr(n,e,r){return!1}function lt(n,e,r,i){e===void 0&&(e=!1);const t=n.getBoundingClientRect(),o=Qe(n);let s=Pe(1);e&&(s=st(n));const u=Sr()?br(o):Pe(0);let a=(t.left+u.x)/s.x,l=(t.top+u.y)/s.y,c=t.width/s.x,d=t.height/s.y;if(o){const p=te(o),m=i;let g=p,f=g.frameElement;for(;f&&i&&m!==g;){const h=st(f),b=f.getBoundingClientRect(),S=Je(f),O=b.left+(f.clientLeft+parseFloat(S.paddingLeft))*h.x,y=b.top+(f.clientTop+parseFloat(S.paddingTop))*h.y;a*=h.x,l*=h.y,c*=h.x,d*=h.y,a+=O,l+=y,g=te(f),f=g.frameElement}}return dr({width:c,height:d,x:a,y:l})}function yr(n,e){let r=null,i;const t=Tt(n);function o(){var u;clearTimeout(i),(u=r)==null||u.disconnect(),r=null}function s(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:l,top:c,width:d,height:p}=n.getBoundingClientRect();if(u||e(),!d||!p)return;const m=be(c),g=be(t.clientWidth-(l+d)),f=be(t.clientHeight-(c+p)),h=be(l),S={rootMargin:-m+"px "+-g+"px "+-f+"px "+-h+"px",threshold:cr(0,ur(1,a))||1};let O=!0;function y(M){const w=M[0].intersectionRatio;if(w!==a){if(!O)return s();w?s(!1,w):i=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{r=new IntersectionObserver(y,{...S,root:t.ownerDocument})}catch{r=new IntersectionObserver(y,S)}r.observe(n)}return s(!0),o}function Or(n,e,r,i){i===void 0&&(i={});const{ancestorScroll:t=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,l=Qe(n),c=t||o?[...l?Ie(l):[],...Ie(e)]:[];c.forEach(b=>{t&&b.addEventListener("scroll",r,{passive:!0}),o&&b.addEventListener("resize",r)});const d=l&&u?yr(l,r):null;let p=-1,m=null;s&&(m=new ResizeObserver(b=>{let[S]=b;S&&S.target===l&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var O;(O=m)==null||O.observe(e)})),r()}),l&&!a&&m.observe(l),m.observe(e));let g,f=a?lt(n):null;a&&h();function h(){const b=lt(n);f&&(b.x!==f.x||b.y!==f.y||b.width!==f.width||b.height!==f.height)&&r(),f=b,g=requestAnimationFrame(h)}return r(),()=>{var b;c.forEach(S=>{t&&S.removeEventListener("scroll",r),o&&S.removeEventListener("resize",r)}),d?.(),(b=m)==null||b.disconnect(),m=null,a&&cancelAnimationFrame(g)}}var Ge=v.useLayoutEffect,Cr=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],we=function(){};function xr(n,e){return e?e[0]==="-"?n+e:n+"__"+e:n}function Pr(n,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),t=2;t-1}function wr(n){return ke(n)?window.innerHeight:n.clientHeight}function jt(n){return ke(n)?window.pageYOffset:n.scrollTop}function Ve(n,e){if(ke(n)){window.scrollTo(0,e);return}n.scrollTop=e}function Mr(n){var e=getComputedStyle(n),r=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var t=n;t=t.parentElement;)if(e=getComputedStyle(t),!(r&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return t;return document.documentElement}function Vr(n,e,r,i){return r*((n=n/i-1)*n*n+1)+e}function Se(n,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:we,t=jt(n),o=e-t,s=10,u=0;function a(){u+=s;var l=Vr(u,t,o,r);Ve(n,l),ur.bottom?Ve(n,Math.min(e.offsetTop+e.clientHeight-n.offsetHeight+t,n.scrollHeight)):i.top-t1?r-1:0),t=1;t=g)return{placement:"bottom",maxHeight:e};if(D>=g&&!s)return o&&Se(a,k,E),{placement:"bottom",maxHeight:e};if(!s&&D>=i||s&&L>=i){o&&Se(a,k,E);var _=s?L-y:D-y;return{placement:"bottom",maxHeight:_}}if(t==="auto"||s){var H=e,F=s?w:x;return F>=i&&(H=Math.min(F-y-u,e)),{placement:"top",maxHeight:H}}if(t==="bottom")return o&&Ve(a,k),{placement:"bottom",maxHeight:e};break;case"top":if(w>=g)return{placement:"top",maxHeight:e};if(x>=g&&!s)return o&&Se(a,T,E),{placement:"top",maxHeight:e};if(!s&&x>=i||s&&w>=i){var R=e;return(!s&&x>=i||s&&w>=i)&&(R=s?w-M:x-M),o&&Se(a,T,E),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(t,'".'))}return l}function _r(n){var e={bottom:"top",top:"bottom"};return n?e[n]:"bottom"}var zt=function(e){return e==="auto"?"bottom":e},jr=function(e,r){var i,t=e.placement,o=e.theme,s=o.borderRadius,u=o.spacing,a=o.colors;return C((i={label:"menu"},le(i,_r(t),"100%"),le(i,"position","absolute"),le(i,"width","100%"),le(i,"zIndex",1),i),r?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},Bt=v.createContext(null),Hr=function(e){var r=e.children,i=e.minMenuHeight,t=e.maxMenuHeight,o=e.menuPlacement,s=e.menuPosition,u=e.menuShouldScrollIntoView,a=e.theme,l=v.useContext(Bt)||{},c=l.setPortalPlacement,d=v.useRef(null),p=v.useState(t),m=z(p,2),g=m[0],f=m[1],h=v.useState(null),b=z(h,2),S=b[0],O=b[1],y=a.spacing.controlHeight;return Ge(function(){var M=d.current;if(M){var w=s==="fixed",L=u&&!w,x=Nr({maxHeight:t,menuEl:M,minHeight:i,placement:o,shouldScroll:L,isFixedPosition:w,controlHeight:y});f(x.maxHeight),O(x.placement),c?.(x.placement)}},[t,o,s,u,i,c,y]),r({ref:d,placerProps:C(C({},e),{},{placement:S||zt(o),maxHeight:g})})},zr=function(e){var r=e.children,i=e.innerRef,t=e.innerProps;return I("div",V({},$(e,"menu",{menu:!0}),{ref:i},t),r)},Br=zr,Ur=function(e,r){var i=e.maxHeight,t=e.theme.spacing.baseUnit;return C({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:t,paddingTop:t})},Wr=function(e){var r=e.children,i=e.innerProps,t=e.innerRef,o=e.isMulti;return I("div",V({},$(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:t},i),r)},Ut=function(e,r){var i=e.theme,t=i.spacing.baseUnit,o=i.colors;return C({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(t*2,"px ").concat(t*3,"px")})},Yr=Ut,Gr=Ut,Xr=function(e){var r=e.children,i=r===void 0?"No options":r,t=e.innerProps,o=J(e,Ar);return I("div",V({},$(C(C({},o),{},{children:i,innerProps:t}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),t),i)},Kr=function(e){var r=e.children,i=r===void 0?"Loading...":r,t=e.innerProps,o=J(e,$r);return I("div",V({},$(C(C({},o),{},{children:i,innerProps:t}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),t),i)},qr=function(e){var r=e.rect,i=e.offset,t=e.position;return{left:r.left,position:t,top:i,width:r.width,zIndex:1}},Zr=function(e){var r=e.appendTo,i=e.children,t=e.controlElement,o=e.innerProps,s=e.menuPlacement,u=e.menuPosition,a=v.useRef(null),l=v.useRef(null),c=v.useState(zt(s)),d=z(c,2),p=d[0],m=d[1],g=v.useMemo(function(){return{setPortalPlacement:m}},[]),f=v.useState(null),h=z(f,2),b=h[0],S=h[1],O=v.useCallback(function(){if(t){var L=Lr(t),x=u==="fixed"?0:window.pageYOffset,D=L[p]+x;(D!==b?.offset||L.left!==b?.rect.left||L.width!==b?.rect.width)&&S({offset:D,rect:L})}},[t,u,p,b?.offset,b?.rect.left,b?.rect.width]);Ge(function(){O()},[O]);var y=v.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),t&&a.current&&(l.current=Or(t,a.current,O,{elementResize:"ResizeObserver"in window}))},[t,O]);Ge(function(){y()},[y]);var M=v.useCallback(function(L){a.current=L,y()},[y]);if(!r&&u!=="fixed"||!b)return null;var w=I("div",V({ref:M},$(C(C({},e),{},{offset:b.offset,position:u,rect:b.rect}),"menuPortal",{"menu-portal":!0}),o),i);return I(Bt.Provider,{value:g},r?Pn.createPortal(w,r):w)},Jr=function(e){var r=e.isDisabled,i=e.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},Qr=function(e){var r=e.children,i=e.innerProps,t=e.isDisabled,o=e.isRtl;return I("div",V({},$(e,"container",{"--is-disabled":t,"--is-rtl":o}),i),r)},ei=function(e,r){var i=e.theme.spacing,t=e.isMulti,o=e.hasValue,s=e.selectProps.controlShouldRenderValue;return C({alignItems:"center",display:t&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},ti=function(e){var r=e.children,i=e.innerProps,t=e.isMulti,o=e.hasValue;return I("div",V({},$(e,"valueContainer",{"value-container":!0,"value-container--is-multi":t,"value-container--has-value":o}),i),r)},ni=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ri=function(e){var r=e.children,i=e.innerProps;return I("div",V({},$(e,"indicatorsContainer",{indicators:!0}),i),r)},dt,ii=["size"],oi=["innerProps","isRtl","size"],ai={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Wt=function(e){var r=e.size,i=J(e,ii);return I("svg",V({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ai},i))},et=function(e){return I(Wt,V({size:20},e),I("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Yt=function(e){return I(Wt,V({size:20},e),I("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Gt=function(e,r){var i=e.isFocused,t=e.theme,o=t.spacing.baseUnit,s=t.colors;return C({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:i?s.neutral60:s.neutral20,padding:o*2,":hover":{color:i?s.neutral80:s.neutral40}})},si=Gt,li=function(e){var r=e.children,i=e.innerProps;return I("div",V({},$(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),r||I(Yt,null))},ui=Gt,ci=function(e){var r=e.children,i=e.innerProps;return I("div",V({},$(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),r||I(et,null))},di=function(e,r){var i=e.isDisabled,t=e.theme,o=t.spacing.baseUnit,s=t.colors;return C({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:i?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},pi=function(e){var r=e.innerProps;return I("span",V({},r,$(e,"indicatorSeparator",{"indicator-separator":!0})))},fi=xn(dt||(dt=lr([` 0%, 80%, 100% { opacity: 0; } diff --git a/openlayers-base-packages/assets/DxdeqarmOZJm.js b/openlayers-base-packages/assets/BJe8MquV2vSN.js similarity index 90% rename from openlayers-base-packages/assets/DxdeqarmOZJm.js rename to openlayers-base-packages/assets/BJe8MquV2vSN.js index 571613cb6..f2e194043 100644 --- a/openlayers-base-packages/assets/DxdeqarmOZJm.js +++ b/openlayers-base-packages/assets/BJe8MquV2vSN.js @@ -1 +1 @@ -import{a as E,r as n,j as e,B as N,S as g,b as s,F,V as U,l as A,g as D,f as H}from"./BeGW3nmX4tO2.js";import{t as B}from"./BITOzfKCAZEE.js";import{S as V,T as q,O as W,M as $,H as X,k as y,g as Y,h as Z,l as J,m as j}from"./q4MLRk0u7kxl.js";import{_ as S}from"./CmsKOCeNyeyo.js";import{a as z,b as u,R as K}from"./BknMP--fbInd.js";import{C as Q}from"./BUACDfz7YJF1.js";import{T as L,U as ee,a as p}from"./DM7y0OoBz9e5.js";import{M as oe}from"./Gw82v5PUNK8h.js";import{a as re,b as te,M as c}from"./B3on_k3411E6.js";import{F as C}from"./BMuX_dt1qyjL.js";import{F as I}from"./cMbQJw1ZoqBe.js";import{C as ie}from"./ElmKiM7bxWM_.js";import"./Dc3xe-fbgKeJ.js";import"./39a3VBatk_eA.js";const G="main";class le{mapId=G;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new V({title:"OSM",isBaseLayer:!0,olLayer:new q({source:new W})})]}}}const ne={"result-list-app":{name:"result-list-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:le,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:$,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:X,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},ae=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)}',se=["en","de"];function pe(o){switch(o){case"en":return S(()=>import("./CWewJjE-xeCE.js"),[],import.meta.url).then(i=>i.default);case"de":return S(()=>import("./BbSw8Fldfnox.js"),[],import.meta.url).then(i=>i.default)}throw new Error(`Unsupported locale: '${o}'`)}const ce=E(ae),de=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:pe,locales:se,packages:ne,styles:ce},Symbol.toStringTag,{value:"Module"})),M=400;function ue(){const[o,i]=n.useState(0),[r,x]=n.useState(),[T,m]=n.useState(!1),[d,R]=n.useState(!1),[h,_]=n.useState("multi"),[v,f]=n.useState("checkbox"),w=!!r&&T,a=l=>{x(l),m(!0),i(o+1)},k=n.useMemo(()=>{if(!r||!d)return r;const l=r.columns.filter((b,P)=>P%2==1);return{...r,columns:l}},[d,r]);return e.jsx(y,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(Y,{title:e.jsx(N,{textAlign:"center",py:1,children:e.jsx(Z,{size:"md",children:"OpenLayers Base Packages - Result List"})}),children:e.jsxs(y,{flex:"1",direction:"column",position:"relative",children:[e.jsxs(J,{mapId:G,viewPadding:{bottom:w?M:0},children:[e.jsx(j,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsx(N,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:e.jsxs(g,{children:[e.jsx(L,{align:"center",children:"Test Controls:"}),e.jsxs(oe,{placement:"right-end",children:[e.jsx(re,{as:s,rightIcon:e.jsx(Q,{}),children:"Fill result list"}),e.jsx(F,{children:e.jsxs(te,{children:[e.jsx(c,{onClick:()=>a(he),children:"Persons"}),e.jsx(c,{onClick:()=>a(Ne),children:"Custom render"}),e.jsx(c,{onClick:()=>a(be),children:"Generated"}),e.jsx(c,{onClick:()=>a(Le),children:"Long Strings"}),e.jsx(c,{onClick:()=>a(Oe),children:"Many Columns"})]})})]}),e.jsxs(s,{onClick:()=>R(!d),children:[d?"Show":"Hide"," even columns"]}),e.jsx(s,{isDisabled:r===void 0,onClick:()=>m(!0),children:"Show result list"}),e.jsx(s,{onClick:()=>m(!1),children:"Hide result list"}),e.jsx(s,{isDisabled:r===void 0,onClick:()=>x(void 0),children:"Close result list"}),e.jsxs(C,{children:[e.jsx(I,{children:"Selection mode"}),e.jsx(z,{value:h,onChange:l=>{const b=l;_(b),f(b==="single"?"radio":"checkbox")},children:e.jsxs(g,{direction:"row",children:[e.jsx(u,{value:"single",children:"Single"}),e.jsx(u,{value:"multi",children:"Multi"})]})})]}),e.jsxs(C,{children:[e.jsx(I,{children:"Selection style"}),e.jsx(z,{value:v,onChange:l=>{f(l)},children:e.jsxs(g,{direction:"row",children:[e.jsx(u,{value:"radio",isDisabled:h==="multi",children:"Radio"}),e.jsx(u,{value:"checkbox",children:"Checkbox"})]})})]})]})})}),e.jsx(j,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(U,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",maxHeight:"300px",overflow:"auto",children:[e.jsx(L,{as:"b",children:"Description"}),e.jsx(L,{children:"This application can be used to test the result list component. Internally, this application keeps track of the current result list input and displays it when the component shall be shown."}),e.jsxs(ee,{children:[e.jsx(p,{children:"If the result list has been filled, it can be hidden and shown again while preserving the state (selection, sort, scroll, ...)."}),e.jsx(p,{children:"The result list is embedded with a fixed height (with internal scrolling) above the map (using view padding). Showing or hiding the component will animate the view."}),e.jsx(p,{children:"Toggling columns will preserve the state of the result list."}),e.jsx(p,{children:"Filling the result list again resets the state (even when using equal data)."}),e.jsx(p,{children:"Fully closing the result list drops all state."})]})]})})]}),k&&e.jsx(N,{position:"absolute",visibility:w?"visible":"hidden",bottom:"0",backgroundColor:"white",width:"100%",height:`${M}px`,borderTop:"2px solid",borderColor:"trails.500",zIndex:1,children:e.jsx(K,{mapId:G,input:k,selectionMode:h,selectionStyle:v},String(o))})]})})})}let me=1;function t(o,i,r){return{id:String(me++),properties:{name:o,age:i,city:r}}}const he={data:[t("Test User A",21,"Cologne"),t("Test User B",33,"Berlin"),t("Test User C",44,"New York"),t("Test User D",55,"London"),t("Test User E",8,"Rome"),t("Test User F",14,"Vienna"),t("Test User G",17,"Paris"),t("Test User H",27,"Brussels"),t("Test User I",19,"Warsaw")],columns:[{displayName:"id",getPropertyValue(o){return o.id}},{propertyName:"name"},{propertyName:"age"},{propertyName:"city"}]},be={data:Array.from(Array(100).keys()).map(o=>({id:o,properties:{boolean:o%2==0,empty:o%2==0?null:void 0,number:o,float:o/7,string:`Item ${o}`,date:new Date}})),columns:[{propertyName:"boolean"},{propertyName:"number"},{propertyName:"float"},{propertyName:"string"},{propertyName:"date"},{propertyName:"empty"}],formatOptions:{numberOptions:{maximumFractionDigits:2},dateOptions:{timeStyle:"full",dateStyle:"full",timeZone:"UTC"}}},Ne={data:[{id:1,properties:{bool:!0}},{id:2,properties:{bool:!1}},{id:3,properties:{bool:void 0}}],columns:[{displayName:"id (with tooltip)",getPropertyValue(o){return o.id},renderCell({feature:o}){return e.jsx(ge,{id:o.id})}},{displayName:"boolean as checkbox (read only)",propertyName:"bool",renderCell({value:o}){return e.jsx(ie,{isIndeterminate:o===void 0,isChecked:!!o})}}]};function ge(o){return e.jsx(A,{label:`tooltip for feature ${o.id}`,placement:"top",children:e.jsx(D.span,{children:o.id})})}const Le={data:[{id:1,properties:{short:"Short 1",long:"LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG "}},{id:2,properties:{short:"Short 2",long:"LONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONG"}}],columns:[{propertyName:"short"},{propertyName:"long",width:300}]},Oe={columns:[{propertyName:"a"},{propertyName:"b"},{propertyName:"c"},{propertyName:"d"},{propertyName:"e"},{propertyName:"f"},{propertyName:"g"},{propertyName:"h"},{propertyName:"i"}],data:[{id:0,properties:{a:1,b:1,c:1,d:1,e:1,f:1,g:1,h:1,i:1}}]},Ge=new URLSearchParams(window.location.search),O=Ge.get("lang"),xe=H({component:ue,theme:B,appMetadata:de,config:{locale:O==="de"||O==="en"?O:void 0}});customElements.define("result-list-app",xe); +import{a as E,r as n,j as e,B as N,S as g,b as s,F,V as U,l as A,g as D,f as H}from"./BeGW3nmX4tO2.js";import{t as B}from"./BITOzfKCAZEE.js";import{S as V,T as q,O as W,M as $,H as X,k as y,g as Y,h as Z,l as J,m as j}from"./BjXju3dgjVrG.js";import{_ as S}from"./CmsKOCeNyeyo.js";import{a as z,b as u,R as K}from"./BLXiixlbHf0g.js";import{C as Q}from"./BUACDfz7YJF1.js";import{T as L,U as ee,a as p}from"./DM7y0OoBz9e5.js";import{M as oe}from"./Gw82v5PUNK8h.js";import{a as re,b as te,M as c}from"./B3on_k3411E6.js";import{F as C}from"./BMuX_dt1qyjL.js";import{F as I}from"./cMbQJw1ZoqBe.js";import{C as ie}from"./ElmKiM7bxWM_.js";import"./Dc3xe-fbgKeJ.js";import"./39a3VBatk_eA.js";const G="main";class le{mapId=G;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new V({title:"OSM",isBaseLayer:!0,olLayer:new q({source:new W})})]}}}const ne={"result-list-app":{name:"result-list-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:le,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:$,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:X,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},ae=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)}',se=["en","de"];function pe(o){switch(o){case"en":return S(()=>import("./CWewJjE-xeCE.js"),[],import.meta.url).then(i=>i.default);case"de":return S(()=>import("./BbSw8Fldfnox.js"),[],import.meta.url).then(i=>i.default)}throw new Error(`Unsupported locale: '${o}'`)}const ce=E(ae),de=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:pe,locales:se,packages:ne,styles:ce},Symbol.toStringTag,{value:"Module"})),M=400;function ue(){const[o,i]=n.useState(0),[r,x]=n.useState(),[T,m]=n.useState(!1),[d,R]=n.useState(!1),[h,_]=n.useState("multi"),[v,f]=n.useState("checkbox"),w=!!r&&T,a=l=>{x(l),m(!0),i(o+1)},k=n.useMemo(()=>{if(!r||!d)return r;const l=r.columns.filter((b,P)=>P%2==1);return{...r,columns:l}},[d,r]);return e.jsx(y,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(Y,{title:e.jsx(N,{textAlign:"center",py:1,children:e.jsx(Z,{size:"md",children:"OpenLayers Base Packages - Result List"})}),children:e.jsxs(y,{flex:"1",direction:"column",position:"relative",children:[e.jsxs(J,{mapId:G,viewPadding:{bottom:w?M:0},children:[e.jsx(j,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsx(N,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:e.jsxs(g,{children:[e.jsx(L,{align:"center",children:"Test Controls:"}),e.jsxs(oe,{placement:"right-end",children:[e.jsx(re,{as:s,rightIcon:e.jsx(Q,{}),children:"Fill result list"}),e.jsx(F,{children:e.jsxs(te,{children:[e.jsx(c,{onClick:()=>a(he),children:"Persons"}),e.jsx(c,{onClick:()=>a(Ne),children:"Custom render"}),e.jsx(c,{onClick:()=>a(be),children:"Generated"}),e.jsx(c,{onClick:()=>a(Le),children:"Long Strings"}),e.jsx(c,{onClick:()=>a(Oe),children:"Many Columns"})]})})]}),e.jsxs(s,{onClick:()=>R(!d),children:[d?"Show":"Hide"," even columns"]}),e.jsx(s,{isDisabled:r===void 0,onClick:()=>m(!0),children:"Show result list"}),e.jsx(s,{onClick:()=>m(!1),children:"Hide result list"}),e.jsx(s,{isDisabled:r===void 0,onClick:()=>x(void 0),children:"Close result list"}),e.jsxs(C,{children:[e.jsx(I,{children:"Selection mode"}),e.jsx(z,{value:h,onChange:l=>{const b=l;_(b),f(b==="single"?"radio":"checkbox")},children:e.jsxs(g,{direction:"row",children:[e.jsx(u,{value:"single",children:"Single"}),e.jsx(u,{value:"multi",children:"Multi"})]})})]}),e.jsxs(C,{children:[e.jsx(I,{children:"Selection style"}),e.jsx(z,{value:v,onChange:l=>{f(l)},children:e.jsxs(g,{direction:"row",children:[e.jsx(u,{value:"radio",isDisabled:h==="multi",children:"Radio"}),e.jsx(u,{value:"checkbox",children:"Checkbox"})]})})]})]})})}),e.jsx(j,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(U,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",maxHeight:"300px",overflow:"auto",children:[e.jsx(L,{as:"b",children:"Description"}),e.jsx(L,{children:"This application can be used to test the result list component. Internally, this application keeps track of the current result list input and displays it when the component shall be shown."}),e.jsxs(ee,{children:[e.jsx(p,{children:"If the result list has been filled, it can be hidden and shown again while preserving the state (selection, sort, scroll, ...)."}),e.jsx(p,{children:"The result list is embedded with a fixed height (with internal scrolling) above the map (using view padding). Showing or hiding the component will animate the view."}),e.jsx(p,{children:"Toggling columns will preserve the state of the result list."}),e.jsx(p,{children:"Filling the result list again resets the state (even when using equal data)."}),e.jsx(p,{children:"Fully closing the result list drops all state."})]})]})})]}),k&&e.jsx(N,{position:"absolute",visibility:w?"visible":"hidden",bottom:"0",backgroundColor:"white",width:"100%",height:`${M}px`,borderTop:"2px solid",borderColor:"trails.500",zIndex:1,children:e.jsx(K,{mapId:G,input:k,selectionMode:h,selectionStyle:v},String(o))})]})})})}let me=1;function t(o,i,r){return{id:String(me++),properties:{name:o,age:i,city:r}}}const he={data:[t("Test User A",21,"Cologne"),t("Test User B",33,"Berlin"),t("Test User C",44,"New York"),t("Test User D",55,"London"),t("Test User E",8,"Rome"),t("Test User F",14,"Vienna"),t("Test User G",17,"Paris"),t("Test User H",27,"Brussels"),t("Test User I",19,"Warsaw")],columns:[{displayName:"id",getPropertyValue(o){return o.id}},{propertyName:"name"},{propertyName:"age"},{propertyName:"city"}]},be={data:Array.from(Array(100).keys()).map(o=>({id:o,properties:{boolean:o%2==0,empty:o%2==0?null:void 0,number:o,float:o/7,string:`Item ${o}`,date:new Date}})),columns:[{propertyName:"boolean"},{propertyName:"number"},{propertyName:"float"},{propertyName:"string"},{propertyName:"date"},{propertyName:"empty"}],formatOptions:{numberOptions:{maximumFractionDigits:2},dateOptions:{timeStyle:"full",dateStyle:"full",timeZone:"UTC"}}},Ne={data:[{id:1,properties:{bool:!0}},{id:2,properties:{bool:!1}},{id:3,properties:{bool:void 0}}],columns:[{displayName:"id (with tooltip)",getPropertyValue(o){return o.id},renderCell({feature:o}){return e.jsx(ge,{id:o.id})}},{displayName:"boolean as checkbox (read only)",propertyName:"bool",renderCell({value:o}){return e.jsx(ie,{isIndeterminate:o===void 0,isChecked:!!o})}}]};function ge(o){return e.jsx(A,{label:`tooltip for feature ${o.id}`,placement:"top",children:e.jsx(D.span,{children:o.id})})}const Le={data:[{id:1,properties:{short:"Short 1",long:"LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG "}},{id:2,properties:{short:"Short 2",long:"LONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONG"}}],columns:[{propertyName:"short"},{propertyName:"long",width:300}]},Oe={columns:[{propertyName:"a"},{propertyName:"b"},{propertyName:"c"},{propertyName:"d"},{propertyName:"e"},{propertyName:"f"},{propertyName:"g"},{propertyName:"h"},{propertyName:"i"}],data:[{id:0,properties:{a:1,b:1,c:1,d:1,e:1,f:1,g:1,h:1,i:1}}]},Ge=new URLSearchParams(window.location.search),O=Ge.get("lang"),xe=H({component:ue,theme:B,appMetadata:de,config:{locale:O==="de"||O==="en"?O:void 0}});customElements.define("result-list-app",xe); diff --git a/openlayers-base-packages/assets/BknMP--fbInd.js b/openlayers-base-packages/assets/BLXiixlbHf0g.js similarity index 99% rename from openlayers-base-packages/assets/BknMP--fbInd.js rename to openlayers-base-packages/assets/BLXiixlbHf0g.js index 056dd90b2..2af052c86 100644 --- a/openlayers-base-packages/assets/BknMP--fbInd.js +++ b/openlayers-base-packages/assets/BLXiixlbHf0g.js @@ -1,4 +1,4 @@ -import{r as v,L as it,U as Me,G as Ve,h as T,j as w,g as I,m as De,p as D,M as G,a3 as oe,u as ze,o as Ee,Q as rt,n as st,c as lt,z as ut,a4 as at,l as gt,B as dt}from"./BeGW3nmX4tO2.js";import{u as ct,b3 as He,aZ as ft,i as pt}from"./q4MLRk0u7kxl.js";import{c as Ge}from"./Dc3xe-fbgKeJ.js";import{u as mt}from"./39a3VBatk_eA.js";import{t as St,v as Ct,C as ht}from"./ElmKiM7bxWM_.js";import{a as Rt}from"./BMuX_dt1qyjL.js";function wt(e,o){const t={},n={};for(const[i,r]of Object.entries(e))o.includes(i)?t[i]=r:n[i]=r;return[t,n]}function vt(e){return e&&Me(e)&&Me(e.target)}function _t(e={}){const{onChange:o,value:t,defaultValue:n,name:i,isDisabled:r,isFocusable:s,isNative:l,...u}=e,[a,d]=v.useState(n||""),p=typeof t<"u",c=p?t:a,g=v.useRef(null),f=v.useCallback(()=>{const _=g.current;if(!_)return;let x="input:not(:disabled):checked";const z=_.querySelector(x);if(z){z.focus();return}x="input:not(:disabled)",_.querySelector(x)?.focus()},[]),S=`radio-${v.useId()}`,C=i||S,F=v.useCallback(_=>{const x=vt(_)?_.target.value:_;p||d(x),o?.(String(x))},[o,p]),P=v.useCallback((_={},x=null)=>({..._,ref:it(x,g),role:"radiogroup"}),[]),y=v.useCallback((_={},x=null)=>({..._,ref:x,name:C,[l?"checked":"isChecked"]:c!=null?_.value===c:void 0,onChange(V){F(V)},"data-radiogroup":!0}),[l,C,F,c]);return{getRootProps:P,getRadioProps:y,name:C,ref:g,focus:f,setValue:d,value:c,onChange:F,isDisabled:r,isFocusable:s,htmlProps:u}}const[Ft,Ae]=Ve({name:"RadioGroupContext",strict:!1}),xt=T((e,o)=>{const{colorScheme:t,size:n,variant:i,children:r,className:s,isDisabled:l,isFocusable:u,...a}=e,{value:d,onChange:p,getRootProps:c,name:g,htmlProps:f}=_t(a),m=v.useMemo(()=>({name:g,size:n,onChange:p,colorScheme:t,value:d,variant:i,isDisabled:l,isFocusable:u}),[g,n,p,t,d,i,l,u]);return w.jsx(Ft,{value:m,children:w.jsx(I.div,{...c(f,o),className:De("chakra-radio-group",s),children:r})})});xt.displayName="RadioGroup";function Pt(e={}){const{defaultChecked:o,isChecked:t,isFocusable:n,isDisabled:i,isReadOnly:r,isRequired:s,onChange:l,isInvalid:u,name:a,value:d,id:p,"data-radiogroup":c,"aria-describedby":g,...f}=e,m=`radio-${v.useId()}`,S=Rt(),F=!!Ae()||!!c;let y=!!S&&!F?S.id:m;y=p??y;const _=i??S?.isDisabled,x=r??S?.isReadOnly,z=s??S?.isRequired,V=u??S?.isInvalid,[B,U]=v.useState(!1),[A,Z]=v.useState(!1),[b,Re]=v.useState(!1),[te,q]=v.useState(!1),[et,tt]=v.useState(!!o),ne=typeof t<"u",j=ne?t:et;v.useEffect(()=>St(U),[]);const we=v.useCallback(M=>{if(x||_){M.preventDefault();return}ne||tt(M.currentTarget.checked),l?.(M)},[ne,_,x,l]),ve=v.useCallback(M=>{M.key===" "&&q(!0)},[q]),_e=v.useCallback(M=>{M.key===" "&&q(!1)},[q]),nt=v.useCallback((M={},N=null)=>({...M,ref:N,"data-active":D(te),"data-hover":D(b),"data-disabled":D(_),"data-invalid":D(V),"data-checked":D(j),"data-focus":D(A),"data-focus-visible":D(A&&B),"data-readonly":D(x),"aria-hidden":!0,onMouseDown:G(M.onMouseDown,()=>q(!0)),onMouseUp:G(M.onMouseUp,()=>q(!1)),onMouseEnter:G(M.onMouseEnter,()=>Re(!0)),onMouseLeave:G(M.onMouseLeave,()=>Re(!1))}),[te,b,_,V,j,A,x,B]),{onFocus:Fe,onBlur:xe}=S??{},ot=v.useCallback((M={},N=null)=>{const Pe=_&&!n;return{...M,id:y,ref:N,type:"radio",name:a,value:d,onChange:G(M.onChange,we),onBlur:G(xe,M.onBlur,()=>Z(!1)),onFocus:G(Fe,M.onFocus,()=>Z(!0)),onKeyDown:G(M.onKeyDown,ve),onKeyUp:G(M.onKeyUp,_e),checked:j,disabled:Pe,readOnly:x,required:z,"aria-invalid":oe(V),"aria-disabled":oe(Pe),"aria-required":oe(z),"data-readonly":D(x),"aria-describedby":g,style:Ct}},[_,n,y,a,d,we,xe,Fe,ve,_e,j,x,z,V,g]);return{state:{isInvalid:V,isFocused:A,isChecked:j,isActive:te,isHovered:b,isDisabled:_,isReadOnly:x,isRequired:z},getRadioProps:nt,getInputProps:ot,getLabelProps:(M={},N=null)=>({...M,ref:N,onMouseDown:G(M.onMouseDown,Mt),"data-disabled":D(_),"data-checked":D(j),"data-invalid":D(V)}),getRootProps:(M,N=null)=>({htmlFor:y,...M,ref:N,"data-disabled":D(_),"data-checked":D(j),"data-invalid":D(V)}),htmlProps:f}}function Mt(e){e.preventDefault(),e.stopPropagation()}const Le=T((e,o)=>{const t=Ae(),{onChange:n,value:i}=e,r=ze("Radio",{...t,...e}),s=Ee(e),{spacing:l="0.5rem",children:u,isDisabled:a=t?.isDisabled,isFocusable:d=t?.isFocusable,inputProps:p,...c}=s;let g=e.isChecked;t?.value!=null&&i!=null&&(g=t.value===i);let f=n;t?.onChange&&i!=null&&(f=rt(t.onChange,n));const m=e?.name??t?.name,{getInputProps:S,getRadioProps:C,getLabelProps:F,getRootProps:P,htmlProps:y}=Pt({...c,isChecked:g,isFocusable:d,isDisabled:a,onChange:f,name:m}),[_,x]=wt(y,st),z=C(x),V=S(p,o),B=F(),U=Object.assign({},_,P()),A={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...r.container},Z={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r.control},b={userSelect:"none",marginStart:l,...r.label};return w.jsxs(I.label,{className:"chakra-radio",...U,__css:A,children:[w.jsx("input",{className:"chakra-radio__input",...V}),w.jsx(I.span,{className:"chakra-radio__control",...z,__css:Z}),u&&w.jsx(I.span,{className:"chakra-radio__label",...B,__css:b,children:u})]})});Le.displayName="Radio";const[yt,X]=Ve({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ke=T((e,o)=>{const t=ze("Table",e),{className:n,layout:i,...r}=Ee(e);return w.jsx(yt,{value:t,children:w.jsx(I.table,{ref:o,__css:{tableLayout:i,...t.table},className:De("chakra-table",n),...r})})});ke.displayName="Table";const $t=T((e,o)=>{const t=X();return w.jsx(I.tbody,{...e,ref:o,__css:t.tbody})}),It=T(({isNumeric:e,...o},t)=>{const n=X();return w.jsx(I.td,{...o,ref:t,__css:n.td,"data-is-numeric":e})}),Vt=T(({isNumeric:e,...o},t)=>{const n=X();return w.jsx(I.th,{...o,ref:t,__css:n.th,"data-is-numeric":e})}),Dt=T((e,o)=>{const t=X();return w.jsx(I.thead,{...e,ref:o,__css:t.thead})}),Oe=T((e,o)=>{const t=X();return w.jsx(I.tr,{...e,ref:o,__css:t.tr})});function zt(e){var o=v.useRef();return v.useEffect(function(){o.current=e}),o.current}const Et=Ge({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),Ht=Ge({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),Gt="@open-pioneer/result-list",Te=ct.bind(void 0,Gt);/** +import{r as v,L as it,U as Me,G as Ve,h as T,j as w,g as I,m as De,p as D,M as G,a3 as oe,u as ze,o as Ee,Q as rt,n as st,c as lt,z as ut,a4 as at,l as gt,B as dt}from"./BeGW3nmX4tO2.js";import{u as ct,b3 as He,aZ as ft,i as pt}from"./BjXju3dgjVrG.js";import{c as Ge}from"./Dc3xe-fbgKeJ.js";import{u as mt}from"./39a3VBatk_eA.js";import{t as St,v as Ct,C as ht}from"./ElmKiM7bxWM_.js";import{a as Rt}from"./BMuX_dt1qyjL.js";function wt(e,o){const t={},n={};for(const[i,r]of Object.entries(e))o.includes(i)?t[i]=r:n[i]=r;return[t,n]}function vt(e){return e&&Me(e)&&Me(e.target)}function _t(e={}){const{onChange:o,value:t,defaultValue:n,name:i,isDisabled:r,isFocusable:s,isNative:l,...u}=e,[a,d]=v.useState(n||""),p=typeof t<"u",c=p?t:a,g=v.useRef(null),f=v.useCallback(()=>{const _=g.current;if(!_)return;let x="input:not(:disabled):checked";const z=_.querySelector(x);if(z){z.focus();return}x="input:not(:disabled)",_.querySelector(x)?.focus()},[]),S=`radio-${v.useId()}`,C=i||S,F=v.useCallback(_=>{const x=vt(_)?_.target.value:_;p||d(x),o?.(String(x))},[o,p]),P=v.useCallback((_={},x=null)=>({..._,ref:it(x,g),role:"radiogroup"}),[]),y=v.useCallback((_={},x=null)=>({..._,ref:x,name:C,[l?"checked":"isChecked"]:c!=null?_.value===c:void 0,onChange(V){F(V)},"data-radiogroup":!0}),[l,C,F,c]);return{getRootProps:P,getRadioProps:y,name:C,ref:g,focus:f,setValue:d,value:c,onChange:F,isDisabled:r,isFocusable:s,htmlProps:u}}const[Ft,Ae]=Ve({name:"RadioGroupContext",strict:!1}),xt=T((e,o)=>{const{colorScheme:t,size:n,variant:i,children:r,className:s,isDisabled:l,isFocusable:u,...a}=e,{value:d,onChange:p,getRootProps:c,name:g,htmlProps:f}=_t(a),m=v.useMemo(()=>({name:g,size:n,onChange:p,colorScheme:t,value:d,variant:i,isDisabled:l,isFocusable:u}),[g,n,p,t,d,i,l,u]);return w.jsx(Ft,{value:m,children:w.jsx(I.div,{...c(f,o),className:De("chakra-radio-group",s),children:r})})});xt.displayName="RadioGroup";function Pt(e={}){const{defaultChecked:o,isChecked:t,isFocusable:n,isDisabled:i,isReadOnly:r,isRequired:s,onChange:l,isInvalid:u,name:a,value:d,id:p,"data-radiogroup":c,"aria-describedby":g,...f}=e,m=`radio-${v.useId()}`,S=Rt(),F=!!Ae()||!!c;let y=!!S&&!F?S.id:m;y=p??y;const _=i??S?.isDisabled,x=r??S?.isReadOnly,z=s??S?.isRequired,V=u??S?.isInvalid,[B,U]=v.useState(!1),[A,Z]=v.useState(!1),[b,Re]=v.useState(!1),[te,q]=v.useState(!1),[et,tt]=v.useState(!!o),ne=typeof t<"u",j=ne?t:et;v.useEffect(()=>St(U),[]);const we=v.useCallback(M=>{if(x||_){M.preventDefault();return}ne||tt(M.currentTarget.checked),l?.(M)},[ne,_,x,l]),ve=v.useCallback(M=>{M.key===" "&&q(!0)},[q]),_e=v.useCallback(M=>{M.key===" "&&q(!1)},[q]),nt=v.useCallback((M={},N=null)=>({...M,ref:N,"data-active":D(te),"data-hover":D(b),"data-disabled":D(_),"data-invalid":D(V),"data-checked":D(j),"data-focus":D(A),"data-focus-visible":D(A&&B),"data-readonly":D(x),"aria-hidden":!0,onMouseDown:G(M.onMouseDown,()=>q(!0)),onMouseUp:G(M.onMouseUp,()=>q(!1)),onMouseEnter:G(M.onMouseEnter,()=>Re(!0)),onMouseLeave:G(M.onMouseLeave,()=>Re(!1))}),[te,b,_,V,j,A,x,B]),{onFocus:Fe,onBlur:xe}=S??{},ot=v.useCallback((M={},N=null)=>{const Pe=_&&!n;return{...M,id:y,ref:N,type:"radio",name:a,value:d,onChange:G(M.onChange,we),onBlur:G(xe,M.onBlur,()=>Z(!1)),onFocus:G(Fe,M.onFocus,()=>Z(!0)),onKeyDown:G(M.onKeyDown,ve),onKeyUp:G(M.onKeyUp,_e),checked:j,disabled:Pe,readOnly:x,required:z,"aria-invalid":oe(V),"aria-disabled":oe(Pe),"aria-required":oe(z),"data-readonly":D(x),"aria-describedby":g,style:Ct}},[_,n,y,a,d,we,xe,Fe,ve,_e,j,x,z,V,g]);return{state:{isInvalid:V,isFocused:A,isChecked:j,isActive:te,isHovered:b,isDisabled:_,isReadOnly:x,isRequired:z},getRadioProps:nt,getInputProps:ot,getLabelProps:(M={},N=null)=>({...M,ref:N,onMouseDown:G(M.onMouseDown,Mt),"data-disabled":D(_),"data-checked":D(j),"data-invalid":D(V)}),getRootProps:(M,N=null)=>({htmlFor:y,...M,ref:N,"data-disabled":D(_),"data-checked":D(j),"data-invalid":D(V)}),htmlProps:f}}function Mt(e){e.preventDefault(),e.stopPropagation()}const Le=T((e,o)=>{const t=Ae(),{onChange:n,value:i}=e,r=ze("Radio",{...t,...e}),s=Ee(e),{spacing:l="0.5rem",children:u,isDisabled:a=t?.isDisabled,isFocusable:d=t?.isFocusable,inputProps:p,...c}=s;let g=e.isChecked;t?.value!=null&&i!=null&&(g=t.value===i);let f=n;t?.onChange&&i!=null&&(f=rt(t.onChange,n));const m=e?.name??t?.name,{getInputProps:S,getRadioProps:C,getLabelProps:F,getRootProps:P,htmlProps:y}=Pt({...c,isChecked:g,isFocusable:d,isDisabled:a,onChange:f,name:m}),[_,x]=wt(y,st),z=C(x),V=S(p,o),B=F(),U=Object.assign({},_,P()),A={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...r.container},Z={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r.control},b={userSelect:"none",marginStart:l,...r.label};return w.jsxs(I.label,{className:"chakra-radio",...U,__css:A,children:[w.jsx("input",{className:"chakra-radio__input",...V}),w.jsx(I.span,{className:"chakra-radio__control",...z,__css:Z}),u&&w.jsx(I.span,{className:"chakra-radio__label",...B,__css:b,children:u})]})});Le.displayName="Radio";const[yt,X]=Ve({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),ke=T((e,o)=>{const t=ze("Table",e),{className:n,layout:i,...r}=Ee(e);return w.jsx(yt,{value:t,children:w.jsx(I.table,{ref:o,__css:{tableLayout:i,...t.table},className:De("chakra-table",n),...r})})});ke.displayName="Table";const $t=T((e,o)=>{const t=X();return w.jsx(I.tbody,{...e,ref:o,__css:t.tbody})}),It=T(({isNumeric:e,...o},t)=>{const n=X();return w.jsx(I.td,{...o,ref:t,__css:n.td,"data-is-numeric":e})}),Vt=T(({isNumeric:e,...o},t)=>{const n=X();return w.jsx(I.th,{...o,ref:t,__css:n.th,"data-is-numeric":e})}),Dt=T((e,o)=>{const t=X();return w.jsx(I.thead,{...e,ref:o,__css:t.thead})}),Oe=T((e,o)=>{const t=X();return w.jsx(I.tr,{...e,ref:o,__css:t.tr})});function zt(e){var o=v.useRef();return v.useEffect(function(){o.current=e}),o.current}const Et=Ge({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),Ht=Ge({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),Gt="@open-pioneer/result-list",Te=ct.bind(void 0,Gt);/** * table-core * * Copyright (c) TanStack diff --git a/openlayers-base-packages/assets/q4MLRk0u7kxl.js b/openlayers-base-packages/assets/BjXju3dgjVrG.js similarity index 99% rename from openlayers-base-packages/assets/q4MLRk0u7kxl.js rename to openlayers-base-packages/assets/BjXju3dgjVrG.js index d722f38c4..20715b9b5 100644 --- a/openlayers-base-packages/assets/q4MLRk0u7kxl.js +++ b/openlayers-base-packages/assets/BjXju3dgjVrG.js @@ -15,6 +15,6 @@ northing meters`+i;var d=u/2,f=0,g=0,_,m,y,p,x;return d>0&&(_=1e5/Math.pow(10,d) Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(i){(function(){var t={}.hasOwnProperty;function e(){for(var r="",a=0;a`(${u} + ${d}px)`,c={};switch(i){case"top-left":c.left=l(wl.ref,r),c.top=l(Rl.ref,o);break;case"top-right":c.right=l(Sl.ref,r),c.top=l(Rl.ref,o);break;case"bottom-left":c.left=l(wl.ref,r),c.bottom=l(Cl.ref,o+h.gap);break;case"bottom-right":c.right=l(Sl.ref,r),c.bottom=l(Cl.ref,o+h.gap);break}for(const[u,d]of Object.entries(c))n[u]=`calc(${d})`;return n.maxH=`calc((100%) - ${fo(c.top,"0px")} - ${fo(c.bottom,h.gap+"px")} - ${o}px - ${h.space}px)`,n.maxW=`calc((100%) - ${fo(c.left,"0px")} - ${fo(c.right,"0px")} - ${r}px)`,n}function fo(i,t){return i??t}const Gc=gt.createContext(void 0);Gc.displayName="MapContainerContext";const KS=Gc.Provider;function ZS(){const i=gt.useContext(Gc);if(!i)throw new Error("Map container context is not available. The component must be a child of the component.");return i}const $S="top-right";function vC(i){const{position:t=$S,children:e,horizontalGap:n,verticalGap:s}=i,{containerProps:r}=m0("map-anchor",i),{mapAnchorsHost:a}=ZS();return N0.createPortal(Ie.jsx(F0,{...r,...VS(t,n,s),children:e}),a)}function HS(i){return{gap:i===void 0?30:0,space:10}}function JS(i,t,e){const n=gt.useContext(Pd);return gt.useMemo(()=>y0("useService",n).getService(i,t,e??{}),[n,i,t,e])}function xC(i){const t=gt.useContext(Pd);return y0("useIntl",t).getIntl(i)}function y0(i,t){if(!t)throw new k0(G0.INTERNAL,`"Failed to access package context from '${i}': react integration was not set up properly.`);return t}const QS="@open-pioneer/map",tR=JS.bind(void 0,QS);function eR(){var i=gt.useRef(!1),t=gt.useCallback(function(){return i.current},[]);return gt.useEffect(function(){return i.current=!0,function(){i.current=!1}},[]),t}function iR(i,t,e){t===void 0&&(t=[]),e===void 0&&(e={loading:!1});var n=gt.useRef(0),s=eR(),r=gt.useState(e),a=r[0],o=r[1],h=gt.useCallback(function(){for(var l=[],c=0;c{const l=h.getType(),c=new Mc({type:l,geometry:h});return c.setStyle(uR(l,e?.highlightStyle)),c}),r=this.olSource,a=this.activeHighlights,o={get isActive(){return a.has(o)},destroy(){if(this.isActive){for(const h of s)r.removeFeature(h);a.delete(o)}}};return r.addFeatures(s),this.activeHighlights.add(o),o}zoomToHighlight(t,e){const n=j(this,pa,Il).call(this,t);if(n.length===0)return;let s=me();for(const f of n)s=nf(s,f.getExtent());const r=Te(s),o=js(s)===0?e?.pointZoom??sR:e?.maxZoom??rR;hR(this.olMap,r);const{top:h=0,right:l=0,bottom:c=0,left:u=0}=e?.viewPadding??aR,d=[h,l,c,u];lR(this.olMap,s,o,d)}addHighlightAndZoom(t,e){const n=this.addHighlight(t,e);return this.zoomToHighlight(t,e),n}clearHighlight(){for(const t of this.activeHighlights)t.destroy()}}pa=new WeakSet,Il=function(t){const e=[];return t.forEach(n=>{"getType"in n&&e.push(n),"geometry"in n&&n.geometry&&e.push(n.geometry)}),e};function hR(i,t){t&&t.length&&i.getView().setCenter(t)}function lR(i,t,e,n){t?i.getView().fit(t,{maxZoom:e,padding:n}):e&&i.getView().setZoom(e)}function cR(i,t){const e=i.get("type");return xg(bl(e))(i,t)}function uR(i,t){if(t&&i in t){const n=t[i];return n||bl(i)}else return bl(i)}function bl(i){return i in Yh?Yh[i]:Yh.Polygon}const Yh={Point:new Ct({image:new Zs({anchor:[.5,1],src:vd})}),MultiPoint:new Ct({image:new Zs({anchor:[.5,1],src:vd})}),LineString:[new Ct({stroke:new Ht({color:"#fff",width:5})}),new Ct({stroke:new Ht({color:"#00ffff",width:3})})],MultiLineString:[new Ct({stroke:new Ht({color:"#fff",width:5})}),new Ct({stroke:new Ht({color:"#00ffff",width:3})})],Polygon:[new Ct({stroke:new Ht({color:"#fff",width:5})}),new Ct({stroke:new Ht({color:"#00ffff",width:3}),fill:new Ci({color:"rgba(224,255,255,0.35)"})})],MultiPolygon:[new Ct({stroke:new Ht({color:"#fff",width:5})}),new Ct({stroke:new Ht({color:"#00ffff",width:3}),fill:new Ci({color:"rgba(224,255,255,0.35)"})})]},ki=Ii("map:LayerCollection"),dR=0,fR=1,gR=9999999;var bn,Xi,Se,qi,Oe,Vo,ce,p0,v0,Eo,x0,E0;class _R{constructor(t){D(this,ce);D(this,bn);D(this,Xi,f_());D(this,Se,new Map);D(this,qi,new WeakMap);D(this,Oe,Kt());D(this,Vo,fR);U(this,bn,t)}destroy(){for(const t of v(this,Se).values())t.destroy();v(this,Xi).clear(),v(this,Se).clear(),v(this,Oe).value=void 0}addLayer(t){xd(t),t.__attachToMap(v(this,bn)),j(this,ce,p0).call(this,t)}getBaseLayers(){return this.getAllLayers().filter(t=>t.isBaseLayer)}getActiveBaseLayer(){return v(this,Oe).value}activateBaseLayer(t){let e;if(t!=null){if(e=v(this,Se).get(t),!(e instanceof qs))return ki.warn(`Cannot activate base layer '${t}: layer has an invalid type.'`),!1;if(!e)return ki.warn(`Cannot activate base layer '${t}': layer is unknown.`),!1;if(!e.isBaseLayer)return ki.warn(`Cannot activate base layer '${t}': layer is not a base layer.`),!1}return j(this,ce,Eo).call(this,e),!0}getOperationalLayers(t){return this.getAllLayers(t).filter(e=>!e.isBaseLayer)}getAllLayers(t){const e=Array.from(v(this,Xi).values());return t?.sortByDisplayOrder&&mR(e),e}getLayerById(t){return v(this,Se).get(t)}removeLayerById(t){const e=v(this,Se).get(t);if(!e){ki.isDebug()&&ki.debug(`Cannot remove layer '${t}': layer is unknown.`);return}j(this,ce,v0).call(this,e)}getLayerByRawInstance(t){return v(this,qi)?.get(t)}}bn=new WeakMap,Xi=new WeakMap,Se=new WeakMap,qi=new WeakMap,Oe=new WeakMap,Vo=new WeakMap,ce=new WeakSet,p0=function(t){j(this,ce,x0).call(this,t);const e=t.olLayer;t.isBaseLayer?(e.setZIndex(dR),!v(this,Oe).value&&t.visible?j(this,ce,Eo).call(this,t):t.__setVisible(!1)):(e.setZIndex(Kc(this,Vo)._++),t.__setVisible(t.visible)),v(this,Xi).add(t),v(this,bn).olMap.addLayer(e)},v0=function(t){if(!v(this,Xi).has(t)){ki.warn(`Cannot remove layer '${t.id}': only top level layers can be removed at this time.`);return}if(!(t instanceof qs))throw new Error("Internal error: expected top level layer to be an instance of AbstractLayer.");if(v(this,bn).olMap.removeLayer(t.olLayer),v(this,Xi).delete(t),j(this,ce,E0).call(this,t),v(this,Oe).value===t){const e=this.getBaseLayers()[0];e&&xd(e),j(this,ce,Eo).call(this,e)}t.destroy()},Eo=function(t){if(v(this,Oe).value!==t){if(ki.isDebug()){const e=n=>n?`'${n.id}'`:void 0;ki.debug(`Switching active base layer from ${e(v(this,Oe).value)} to ${e(t)}`)}Ol(()=>{v(this,Oe).value?.__setVisible(!1),v(this,Oe).value=t,t?.__setVisible(!0)})}},x0=function(t){const e=[],n=s=>{const r=s.id,a="olLayer"in s?s.olLayer:void 0;if(v(this,Se).has(r))throw new Error(`Layer id '${r}' is not unique. Either assign a unique id yourself or skip configuring 'id' for an automatically generated id.`);if(a&&v(this,qi).has(a))throw new Error(`OlLayer used by layer '${r}' has already been used in map.`);v(this,Se).set(r,s),a&&v(this,qi).set(a,s),e.push([r,a]);for(const o of s.layers?.__getRawLayers()??[])n(o);for(const o of s.sublayers?.__getRawSublayers()??[])n(o)};try{n(t)}catch(s){for(const[r,a]of e)v(this,Se).delete(r),a&&v(this,qi).delete(a);throw s}},E0=function(t){const e=n=>{"olLayer"in n&&v(this,qi).delete(n.olLayer),v(this,Se).delete(n.id);for(const s of n.layers?.__getRawLayers()??[])e(s);for(const s of n.sublayers?.__getRawSublayers()??[])e(s)};e(t)};function mR(i){i.sort((t,e)=>{const n=t.olLayer.getZIndex()??1,s=e.olLayer.getZIndex()??1;return n-s})}function xd(i){if(!(i instanceof qs))throw new Error("Layer is not a valid layer instance. Use one of the classes provided by the map package instead.")}const Hn=Ii("map:MapModel"),Ed=25.4/.28,Md=39.37;var va,Re,Fs,xa,yi,Ea,ks,Ma,Yi,Vi,wa,Sa,Ki,pi,Ko,w0;class M0 extends Od{constructor(e){super();D(this,Ko);D(this,va);D(this,Re);D(this,Fs);D(this,xa,new _R(this));D(this,yi);D(this,Ea);D(this,ks,!1);D(this,Ma);D(this,Yi,Kt());D(this,Vi);D(this,wa);D(this,Sa,new AbortController);D(this,Ki);D(this,pi);U(this,va,e.id),U(this,Re,e.olMap),U(this,Fs,br(()=>v(this,Re).getView(),n=>{const s=v(this,Re).on("change:view",n);return()=>ze(s)})),v(this,Yi).value=e.initialExtent,U(this,Ea,{httpService:e.httpService}),U(this,yi,new oR(v(this,Re))),U(this,Ki,"waiting"),j(this,Ko,w0).call(this).then(()=>{U(this,Ki,"ready"),v(this,pi)?.resolve(),U(this,pi,void 0)},n=>{Fr(n)||Hn.error("Failed to initialize map",n),U(this,Ki,"error"),v(this,pi)?.reject(new Error("Failed to initialize map.")),U(this,pi,void 0)}),U(this,Ma,br(()=>v(this,Re).getTargetElement()??void 0,n=>{const s=v(this,Re).on("change:target",n);return()=>ze(s)})),U(this,Vi,kr(()=>yR(v(this,Fs).value))),U(this,wa,kr(()=>{const{projection:n,resolution:s,center:r}=this;if(n==null||s==null||r==null)return;const a=Co(n,s,r);return Math.round(a*Md*Ed)}))}destroy(){if(!v(this,ks)){U(this,ks,!0);try{this.emit("destroy")}catch(e){Hn.warn("Unexpected error from event listener during map model destruction:",e)}v(this,Sa).abort(),v(this,pi)?.reject(new Error("Map model was destroyed.")),v(this,xa).destroy(),v(this,yi).destroy(),v(this,Re).dispose()}}get id(){return v(this,va)}get olMap(){return v(this,Re)}get olView(){return v(this,Fs).value}get projection(){return v(this,Vi).value.projection}get center(){return v(this,Vi).value.center.value}get resolution(){return v(this,Vi).value.resolution.value}get zoomLevel(){return v(this,Vi).value.zoom.value}get scale(){return v(this,wa).value}get layers(){return v(this,xa)}get container(){return v(this,Ma).value}get initialExtent(){return v(this,Yi).value}get __sharedDependencies(){return v(this,Ea)}setScale(e){const n=this.olView,s=this.projection,r=this.center;if(!r)return;const a=s.getMetersPerUnit()??1,o=Md*Ed*a,h=e/Co(s,o,r);n.setResolution(h)}highlight(e,n){return v(this,yi).addHighlight(e,n)}zoom(e,n){v(this,yi).zoomToHighlight(e,n)}highlightAndZoom(e,n){return v(this,yi).addHighlightAndZoom(e,n??{})}removeHighlights(){v(this,yi).clearHighlight()}whenDisplayed(){return v(this,ks)?Promise.reject(new Error("Map model was destroyed.")):v(this,Ki)==="error"?Promise.reject(new Error("Failed to initialize map.")):v(this,Ki)==="ready"?Promise.resolve():(v(this,pi)??U(this,pi,z0())).promise}}va=new WeakMap,Re=new WeakMap,Fs=new WeakMap,xa=new WeakMap,yi=new WeakMap,Ea=new WeakMap,ks=new WeakMap,Ma=new WeakMap,Yi=new WeakMap,Vi=new WeakMap,wa=new WeakMap,Sa=new WeakMap,Ki=new WeakMap,pi=new WeakMap,Ko=new WeakSet,w0=async function(){try{await pR(this.olMap,v(this,Sa).signal)}catch(e){throw Fr(e)?e:new Error("Failed to wait for the map to be displayed.",{cause:e})}try{const n=v(this,Re).getView();if(v(this,Yi).value){const s=v(this,Yi).value,r=[s.xMin,s.yMin,s.xMax,s.yMax],a=Te(r),o=n.getResolutionForExtent(r);Hn.debug("Applying initial extent",s),Hn.debug(" Computed center:",a),Hn.debug(" Computed resolution:",o),n.setCenter(a),n.setResolution(o)}else{const s=n.calculateExtent(),[r=0,a=0,o=0,h=0]=s,l={xMin:r,yMin:a,xMax:o,yMax:h};Hn.debug("Detected initial extent",l),v(this,Yi).value=l}}catch(e){throw new Error("Failed to apply the initial extent.",{cause:e})}};function yR(i){return{resolution:br(()=>i.getResolution(),t=>{const e=i.on("change:resolution",t);return()=>ze(e)}),center:br(()=>i.getCenter(),t=>{const e=i.on("change:center",t);return()=>ze(e)}),zoom:br(()=>i.getZoom(),t=>{const e=i.on("change:resolution",t);return()=>ze(e)}),projection:i.getProjection()}}function pR(i,t){return new Promise((n,s)=>{let r;function a(){const l=i.getSize()??[],[c=0,u=0]=l;l&&c>0&&u>0&&h()}function o(){h($c())}function h(l){r&&(ze(r),r=void 0),t.removeEventListener("abort",o),l?s(l):n(vR(25))}if(t.aborted){h($c());return}t.addEventListener("abort",o),r=i.on("change:size",a)})}function vR(i){return new Promise(t=>setTimeout(t,i))}const zc=gt.createContext(void 0);zc.displayName="DefaultMapContext";function EC(i){const{mapId:t,map:e,children:n}=i,s=gt.useMemo(()=>({mapId:t,map:e}),[t,e]);if(t!=null&&e!=null)throw new Error("Cannot specify both 'mapId' and 'map' in DefaultMapProvider at the same time.");if(t==null&&e==null)throw new Error("Either 'mapId' or 'map' must be specified in DefaultMapProvider.");return Ie.jsx(zc.Provider,{value:s,children:n})}function xR(){return gt.useContext(zc)}function ER(i){const t=MR(i),e=tR("map.MapRegistry"),n=nR(async()=>typeof t=="string"?await e.expectMapModel(t):Promise.resolve(t),[e,t]);return gt.useMemo(()=>n.loading?{kind:"loading"}:n.error?{kind:"rejected",error:n.error}:{kind:"resolved",map:n.value},[n])}function MR(i){if(typeof i=="object"&&i.mapId!=null&&i.map!=null)throw new Error("Cannot specify both 'mapId' and 'map' in useMapModel at the same time.");if(i instanceof M0)throw new Error("Map model instances cannot be passed directly to 'useMapModel' (see TypeScript signature).");const t=gt.useMemo(()=>i==null?{}:typeof i=="string"?{mapId:i}:{mapId:i.mapId,map:i.map},[...typeof i=="string"||i==null?[i]:[i.mapId,i.map]]),e=xR(),n=wd(t)??wd(e);if(n==null)throw new Error("No map specified. You must either specify the map (or its id) via a DefaultMapProvider parent or configure it explicitly.");return n}function wd(i){return i?.map??i?.mapId}const yn=Ii("map:MapContainer");function MC(i){const{viewPadding:t,viewPaddingChangeBehavior:e,children:n,role:s,"aria-label":r,"aria-labelledby":a}=i,{containerProps:o}=m0("map-container",i),h=gt.useRef(null),l=gt.useRef(null),c=ER(i),u=c.map,[d,f]=gt.useState(!1);gt.useEffect(()=>{if(c.kind!=="loading"){if(c.kind==="rejected"){yn.error("Cannot display the map. Caused by ",c.error);return}if(!u){yn.error("No configuration available for the configured map.");return}if(h.current){const _=SR(u,h.current);return()=>_?.destroy()}}},[c,u]),gt.useEffect(()=>{f(!0)},[]);const g=gt.useMemo(()=>({height:"100%",position:"relative",[Rl.definition]:t?.top!=null?t.top+"px":"0px",[Cl.definition]:t?.bottom!=null?t.bottom+"px":"0px",[wl.definition]:t?.left!=null?t.left+"px":"0px",[Sl.definition]:t?.right!=null?t.right+"px":"0px"}),[t]);return Ie.jsxs(Hh.div,{...o,role:s,"aria-label":r,"aria-labelledby":a,ref:h,style:g,tabIndex:0,children:[d&&u&&Ie.jsx(wR,{olMap:u.olMap,mapAnchorsHost:l.current,viewPadding:t,viewPaddingChangeBehavior:e,children:n}),Ie.jsx(Hh.div,{ref:l,className:"map-anchors"})]})}function wR(i){const{olMap:t,mapAnchorsHost:e,viewPadding:n,viewPaddingChangeBehavior:s="preserve-center",children:r}=i,a=gt.useMemo(()=>({left:n?.left??0,right:n?.right??0,top:n?.top??0,bottom:n?.bottom??0}),[n]);gt.useEffect(()=>{const h=t?.getView();if(!t||!h)return;const l=h.getCenter(),c=CR(h.padding),u=RR(t,c);switch(h.padding=IR(a),s){case"preserve-center":h.animate({center:l,duration:300});break;case"preserve-extent":{u&&h.animate({center:l,resolution:h.getResolutionForExtent(u),duration:300});break}}},[a,t,s]);const o=gt.useMemo(()=>({mapAnchorsHost:e}),[e]);return Ie.jsx(KS,{value:o,children:r})}function SR(i,t){const e=i.id,n=i.olMap;if(n.getTarget()){yn.error("Failed to display the map: the map already has a target. There may be more than one .");return}yn.isDebug()&&yn.debug(`Setting target of map '${e}':`,t),n.setTarget(t);let s=!1;return{destroy(){s||(yn.isDebug()&&yn.debug(`Removing target of map '${e}':`,t),n.setTarget(void 0),s=!0)}}}function RR(i,t){const e=i.getSize();if(!e||e.length<2)return;const[n,s]=e,r=i.getCoordinateFromPixel([t.left,t.bottom]),a=i.getCoordinateFromPixel([Math.max(0,n-t.right),Math.max(0,s-t.top)]);if(!r||!a)return;const[o,h]=r,[l,c]=a;return[o,h,l,c]}function CR(i){return{top:i?.[0]??0,right:i?.[1]??0,bottom:i?.[2]??0,left:i?.[3]??0}}function IR(i){const{top:t,right:e,bottom:n,left:s}=i;return[t,e,n,s]}class bR extends mg{constructor(t){t=t||{};const e=t.projection!==void 0?t.projection:"EPSG:3857",n=t.tileGrid!==void 0?t.tileGrid:R1({extent:xc(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}}const TR='© OpenStreetMap contributors.';class AR extends bR{constructor(t){t=t||{};let e;t.attributions!==void 0?e=t.attributions:e=[TR];const n=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",s=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:n,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:s,wrapX:t.wrapX,zDirection:t.zDirection})}}var Ra,Zo,S0;class wC{constructor(t){D(this,Zo);D(this,Ra);U(this,Ra,t.references.interceptors.map((e,n)=>[t.referencesMeta.interceptors[n].serviceId,e]))}async fetch(t,e){const n=e?.signal??void 0,s=Object.assign({},e?.context),r=PR(e);Vh(n);let a=LR(t);{const h={target:a,signal:n??new AbortController().signal,context:s,options:r};Vh(n),await j(this,Zo,S0).call(this,h),a=h.target}const o=new Request(a,{...r,signal:n});return await window.fetch(o)}}Ra=new WeakMap,Zo=new WeakSet,S0=async function(t){const{signal:e}=t;for(const[n,s]of v(this,Ra))if(Vh(e),s.beforeRequest)try{await s.beforeRequest(t)}catch(r){throw W0(r),new Error(`Interceptor '${n}' failed with an error`,{cause:r})}};function LR(i){return typeof i=="string"?new URL(i,window.location.href):i}function PR(i){const t=i?.method??"GET",e=new Headers(i?.headers??{}),n={...i,method:t,headers:e};for(const s in n)OR[s]&&delete n[s];return n}const OR={context:1,signal:1};function Vh(i){i?.aborted&&B0()}WS({"EPSG:25832":"+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs","EPSG:25833":"+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs"});const Kh=Ii("map:createMapModel");async function DR(i,t,e){return await new NR(i,t,e).createMapModel()}class NR{mapId;mapConfig;httpService;constructor(t,e,n){this.mapId=t,this.mapConfig=e,this.httpService=n}async createMapModel(){const t=this.mapId,e=this.mapConfig,{view:n,...s}=e.advanced??{},r={...s};if(r.controls||(r.controls=[new kg({collapsible:!1})]),!r.interactions){const u=d=>{const f=d.originalEvent;return(f.metaKey||f.ctrlKey)&&f.shiftKey};r.interactions=jg({dragPan:!0,altShiftDragRotate:!1,pinchRotate:!1,mouseWheelZoom:!0}).extend([new Ug({out:!0,condition:u})])}const a=await n??{};this.initializeViewOptions(a),r.view=a instanceof Ce?a:new Ce(a),!r.layers&&!e.layers&&(r.layers=[new fg({source:new AR})]);const o=e.initialView,h=o?.kind==="extent"?o.extent:void 0;Kh.debug("Constructing OpenLayers map with options",r);const l=new qx(r),c=new M0({id:t,olMap:l,initialExtent:h,httpService:this.httpService});try{if(e.layers)for(const u of e.layers)c.layers.addLayer(u);return c}catch(u){throw c.destroy(),u}}initializeViewOptions(t){const e=this.mapId,n=this.mapConfig;if(t instanceof Ce){const a=o=>{Kh.warn(`The advanced configuration for map id '${e}' has provided a fully constructed view instance: ${o} cannot be applied. +*/(function(i){(function(){var t={}.hasOwnProperty;function e(){for(var r="",a=0;a`(${u} + ${d}px)`,c={};switch(i){case"top-left":c.left=l(wl.ref,r),c.top=l(Rl.ref,o);break;case"top-right":c.right=l(Sl.ref,r),c.top=l(Rl.ref,o);break;case"bottom-left":c.left=l(wl.ref,r),c.bottom=l(Cl.ref,o+h.gap);break;case"bottom-right":c.right=l(Sl.ref,r),c.bottom=l(Cl.ref,o+h.gap);break}for(const[u,d]of Object.entries(c))n[u]=`calc(${d})`;return n.maxH=`calc((100%) - ${fo(c.top,"0px")} - ${fo(c.bottom,h.gap+"px")} - ${o}px - ${h.space}px)`,n.maxW=`calc((100%) - ${fo(c.left,"0px")} - ${fo(c.right,"0px")} - ${r}px)`,n}function fo(i,t){return i??t}const Gc=gt.createContext(void 0);Gc.displayName="MapContainerContext";const KS=Gc.Provider;function ZS(){const i=gt.useContext(Gc);if(!i)throw new Error("Map container context is not available. The component must be a child of the component.");return i}const $S="top-right";function vC(i){const{position:t=$S,children:e,horizontalGap:n,verticalGap:s}=i,{containerProps:r}=m0("map-anchor",i),{mapAnchorsHost:a}=ZS();return N0.createPortal(Ie.jsx(F0,{...r,...VS(t,n,s),children:e}),a)}function HS(i){return{gap:i===void 0?30:0,space:10}}function JS(i,t,e){const n=gt.useContext(Pd);return gt.useMemo(()=>y0("useService",n).getService(i,t,e??{}),[n,i,t,e])}function xC(i){const t=gt.useContext(Pd);return y0("useIntl",t).getIntl(i)}function y0(i,t){if(!t)throw new k0(G0.INTERNAL,`"Failed to access package context from '${i}': react integration was not set up properly.`);return t}const QS="@open-pioneer/map",tR=JS.bind(void 0,QS);function eR(){var i=gt.useRef(!1),t=gt.useCallback(function(){return i.current},[]);return gt.useEffect(function(){return i.current=!0,function(){i.current=!1}},[]),t}function iR(i,t,e){t===void 0&&(t=[]),e===void 0&&(e={loading:!1});var n=gt.useRef(0),s=eR(),r=gt.useState(e),a=r[0],o=r[1],h=gt.useCallback(function(){for(var l=[],c=0;c{const l=h.getType(),c=new Mc({type:l,geometry:h});return c.setStyle(uR(l,e?.highlightStyle)),c}),r=this.olSource,a=this.activeHighlights,o={get isActive(){return a.has(o)},destroy(){if(this.isActive){for(const h of s)r.removeFeature(h);a.delete(o)}}};return r.addFeatures(s),this.activeHighlights.add(o),o}zoomToHighlight(t,e){const n=j(this,pa,Il).call(this,t);if(n.length===0)return;let s=me();for(const f of n)s=nf(s,f.getExtent());const r=Te(s),o=js(s)===0?e?.pointZoom??sR:e?.maxZoom??rR;hR(this.olMap,r);const{top:h=0,right:l=0,bottom:c=0,left:u=0}=e?.viewPadding??aR,d=[h,l,c,u];lR(this.olMap,s,o,d)}addHighlightAndZoom(t,e){const n=this.addHighlight(t,e);return this.zoomToHighlight(t,e),n}clearHighlight(){for(const t of this.activeHighlights)t.destroy()}}pa=new WeakSet,Il=function(t){const e=[];return t.forEach(n=>{"getType"in n&&e.push(n),"geometry"in n&&n.geometry&&e.push(n.geometry)}),e};function hR(i,t){t&&t.length&&i.getView().setCenter(t)}function lR(i,t,e,n){t?i.getView().fit(t,{maxZoom:e,padding:n}):e&&i.getView().setZoom(e)}function cR(i,t){const e=i.get("type");return xg(bl(e))(i,t)}function uR(i,t){if(t&&i in t){const n=t[i];return n||bl(i)}else return bl(i)}function bl(i){return i in Yh?Yh[i]:Yh.Polygon}const Yh={Point:new Ct({image:new Zs({anchor:[.5,1],src:vd})}),MultiPoint:new Ct({image:new Zs({anchor:[.5,1],src:vd})}),LineString:[new Ct({stroke:new Ht({color:"#fff",width:5})}),new Ct({stroke:new Ht({color:"#00ffff",width:3})})],MultiLineString:[new Ct({stroke:new Ht({color:"#fff",width:5})}),new Ct({stroke:new Ht({color:"#00ffff",width:3})})],Polygon:[new Ct({stroke:new Ht({color:"#fff",width:5})}),new Ct({stroke:new Ht({color:"#00ffff",width:3}),fill:new Ci({color:"rgba(224,255,255,0.35)"})})],MultiPolygon:[new Ct({stroke:new Ht({color:"#fff",width:5})}),new Ct({stroke:new Ht({color:"#00ffff",width:3}),fill:new Ci({color:"rgba(224,255,255,0.35)"})})]},ki=Ii("map:LayerCollection"),dR=0,fR=1,gR=9999999;var bn,Xi,Se,qi,Oe,Vo,ce,p0,v0,Eo,x0,E0;class _R{constructor(t){D(this,ce);D(this,bn);D(this,Xi,f_());D(this,Se,new Map);D(this,qi,new WeakMap);D(this,Oe,Kt());D(this,Vo,fR);U(this,bn,t)}destroy(){for(const t of v(this,Se).values())t.destroy();v(this,Xi).clear(),v(this,Se).clear(),v(this,Oe).value=void 0}addLayer(t){xd(t),t.__attachToMap(v(this,bn)),j(this,ce,p0).call(this,t)}getBaseLayers(){return this.getAllLayers().filter(t=>t.isBaseLayer)}getActiveBaseLayer(){return v(this,Oe).value}activateBaseLayer(t){let e;if(t!=null){if(e=v(this,Se).get(t),!(e instanceof qs))return ki.warn(`Cannot activate base layer '${t}: layer has an invalid type.'`),!1;if(!e)return ki.warn(`Cannot activate base layer '${t}': layer is unknown.`),!1;if(!e.isBaseLayer)return ki.warn(`Cannot activate base layer '${t}': layer is not a base layer.`),!1}return j(this,ce,Eo).call(this,e),!0}getOperationalLayers(t){return this.getAllLayers(t).filter(e=>!e.isBaseLayer)}getAllLayers(t){const e=Array.from(v(this,Xi).values());return t?.sortByDisplayOrder&&mR(e),e}getLayerById(t){return v(this,Se).get(t)}removeLayerById(t){const e=v(this,Se).get(t);if(!e){ki.isDebug()&&ki.debug(`Cannot remove layer '${t}': layer is unknown.`);return}j(this,ce,v0).call(this,e)}getLayerByRawInstance(t){return v(this,qi)?.get(t)}}bn=new WeakMap,Xi=new WeakMap,Se=new WeakMap,qi=new WeakMap,Oe=new WeakMap,Vo=new WeakMap,ce=new WeakSet,p0=function(t){j(this,ce,x0).call(this,t);const e=t.olLayer;t.isBaseLayer?(e.setZIndex(dR),!v(this,Oe).value&&t.visible?j(this,ce,Eo).call(this,t):t.__setVisible(!1)):(e.setZIndex(Kc(this,Vo)._++),t.__setVisible(t.visible)),v(this,Xi).add(t),v(this,bn).olMap.addLayer(e)},v0=function(t){if(!v(this,Xi).has(t)){ki.warn(`Cannot remove layer '${t.id}': only top level layers can be removed at this time.`);return}if(!(t instanceof qs))throw new Error("Internal error: expected top level layer to be an instance of AbstractLayer.");if(v(this,bn).olMap.removeLayer(t.olLayer),v(this,Xi).delete(t),j(this,ce,E0).call(this,t),v(this,Oe).value===t){const e=this.getBaseLayers()[0];e&&xd(e),j(this,ce,Eo).call(this,e)}t.destroy()},Eo=function(t){if(v(this,Oe).value!==t){if(ki.isDebug()){const e=n=>n?`'${n.id}'`:void 0;ki.debug(`Switching active base layer from ${e(v(this,Oe).value)} to ${e(t)}`)}Ol(()=>{v(this,Oe).value?.__setVisible(!1),v(this,Oe).value=t,t?.__setVisible(!0)})}},x0=function(t){const e=[],n=s=>{const r=s.id,a="olLayer"in s?s.olLayer:void 0;if(v(this,Se).has(r))throw new Error(`Layer id '${r}' is not unique. Either assign a unique id yourself or skip configuring 'id' for an automatically generated id.`);if(a&&v(this,qi).has(a))throw new Error(`OlLayer used by layer '${r}' has already been used in map.`);v(this,Se).set(r,s),a&&v(this,qi).set(a,s),e.push([r,a]);for(const o of s.layers?.__getRawLayers()??[])n(o);for(const o of s.sublayers?.__getRawSublayers()??[])n(o)};try{n(t)}catch(s){for(const[r,a]of e)v(this,Se).delete(r),a&&v(this,qi).delete(a);throw s}},E0=function(t){const e=n=>{"olLayer"in n&&v(this,qi).delete(n.olLayer),v(this,Se).delete(n.id);for(const s of n.layers?.__getRawLayers()??[])e(s);for(const s of n.sublayers?.__getRawSublayers()??[])e(s)};e(t)};function mR(i){i.sort((t,e)=>{const n=t.olLayer.getZIndex()??1,s=e.olLayer.getZIndex()??1;return n-s})}function xd(i){if(!(i instanceof qs))throw new Error("Layer is not a valid layer instance. Use one of the classes provided by the map package instead.")}const Hn=Ii("map:MapModel"),Ed=25.4/.28,Md=39.37;var va,Re,Fs,xa,yi,Ea,ks,Ma,Yi,Vi,wa,Sa,Ki,pi,Ko,w0;class M0 extends Od{constructor(e){super();D(this,Ko);D(this,va);D(this,Re);D(this,Fs);D(this,xa,new _R(this));D(this,yi);D(this,Ea);D(this,ks,!1);D(this,Ma);D(this,Yi,Kt());D(this,Vi);D(this,wa);D(this,Sa,new AbortController);D(this,Ki);D(this,pi);U(this,va,e.id),U(this,Re,e.olMap),U(this,Fs,br(()=>v(this,Re).getView(),n=>{const s=v(this,Re).on("change:view",n);return()=>ze(s)})),v(this,Yi).value=e.initialExtent,U(this,Ea,{httpService:e.httpService}),U(this,yi,new oR(v(this,Re))),U(this,Ki,"waiting"),j(this,Ko,w0).call(this).then(()=>{U(this,Ki,"ready"),v(this,pi)?.resolve(),U(this,pi,void 0)},n=>{Fr(n)||Hn.error("Failed to initialize map",n),U(this,Ki,"error"),v(this,pi)?.reject(new Error("Failed to initialize map.")),U(this,pi,void 0)}),U(this,Ma,br(()=>v(this,Re).getTargetElement()??void 0,n=>{const s=v(this,Re).on("change:target",n);return()=>ze(s)})),U(this,Vi,kr(()=>yR(v(this,Fs).value))),U(this,wa,kr(()=>{const{projection:n,resolution:s,center:r}=this;if(n==null||s==null||r==null)return;const a=Co(n,s,r);return Math.round(a*Md*Ed)}))}destroy(){if(!v(this,ks)){U(this,ks,!0);try{this.emit("destroy")}catch(e){Hn.warn("Unexpected error from event listener during map model destruction:",e)}v(this,Sa).abort(),v(this,pi)?.reject(new Error("Map model was destroyed.")),v(this,xa).destroy(),v(this,yi).destroy(),v(this,Re).dispose()}}get id(){return v(this,va)}get olMap(){return v(this,Re)}get olView(){return v(this,Fs).value}get projection(){return v(this,Vi).value.projection}get center(){return v(this,Vi).value.center.value}get resolution(){return v(this,Vi).value.resolution.value}get zoomLevel(){return v(this,Vi).value.zoom.value}get scale(){return v(this,wa).value}get layers(){return v(this,xa)}get container(){return v(this,Ma).value}get initialExtent(){return v(this,Yi).value}get __sharedDependencies(){return v(this,Ea)}setScale(e){const n=this.olView,s=this.projection,r=this.center;if(!r)return;const a=s.getMetersPerUnit()??1,o=Md*Ed*a,h=e/Co(s,o,r);n.setResolution(h)}highlight(e,n){return v(this,yi).addHighlight(e,n)}zoom(e,n){v(this,yi).zoomToHighlight(e,n)}highlightAndZoom(e,n){return v(this,yi).addHighlightAndZoom(e,n??{})}removeHighlights(){v(this,yi).clearHighlight()}whenDisplayed(){return v(this,ks)?Promise.reject(new Error("Map model was destroyed.")):v(this,Ki)==="error"?Promise.reject(new Error("Failed to initialize map.")):v(this,Ki)==="ready"?Promise.resolve():(v(this,pi)??U(this,pi,z0())).promise}}va=new WeakMap,Re=new WeakMap,Fs=new WeakMap,xa=new WeakMap,yi=new WeakMap,Ea=new WeakMap,ks=new WeakMap,Ma=new WeakMap,Yi=new WeakMap,Vi=new WeakMap,wa=new WeakMap,Sa=new WeakMap,Ki=new WeakMap,pi=new WeakMap,Ko=new WeakSet,w0=async function(){try{await pR(this.olMap,v(this,Sa).signal)}catch(e){throw Fr(e)?e:new Error("Failed to wait for the map to be displayed.",{cause:e})}try{const n=v(this,Re).getView();if(v(this,Yi).value){const s=v(this,Yi).value,r=[s.xMin,s.yMin,s.xMax,s.yMax],a=Te(r),o=n.getResolutionForExtent(r);Hn.debug("Applying initial extent",s),Hn.debug(" Computed center:",a),Hn.debug(" Computed resolution:",o),n.setCenter(a),n.setResolution(o)}else{const s=n.calculateExtent(),[r=0,a=0,o=0,h=0]=s,l={xMin:r,yMin:a,xMax:o,yMax:h};Hn.debug("Detected initial extent",l),v(this,Yi).value=l}}catch(e){throw new Error("Failed to apply the initial extent.",{cause:e})}};function yR(i){return{resolution:br(()=>i.getResolution(),t=>{const e=i.on("change:resolution",t);return()=>ze(e)}),center:br(()=>i.getCenter(),t=>{const e=i.on("change:center",t);return()=>ze(e)}),zoom:br(()=>i.getZoom(),t=>{const e=i.on("change:resolution",t);return()=>ze(e)}),projection:i.getProjection()}}function pR(i,t){return new Promise((n,s)=>{let r;function a(){const l=i.getSize()??[],[c=0,u=0]=l;l&&c>0&&u>0&&h()}function o(){h($c())}function h(l){r&&(ze(r),r=void 0),t.removeEventListener("abort",o),l?s(l):n(vR(25))}if(t.aborted){h($c());return}t.addEventListener("abort",o),r=i.on("change:size",a)})}function vR(i){return new Promise(t=>setTimeout(t,i))}const zc=gt.createContext(void 0);zc.displayName="DefaultMapContext";function EC(i){const{mapId:t,map:e,children:n}=i,s=gt.useMemo(()=>({mapId:t,map:e}),[t,e]);if(t!=null&&e!=null)throw new Error("Cannot specify both 'mapId' and 'map' in DefaultMapProvider at the same time.");if(t==null&&e==null)throw new Error("Either 'mapId' or 'map' must be specified in DefaultMapProvider.");return Ie.jsx(zc.Provider,{value:s,children:n})}function xR(){return gt.useContext(zc)}function ER(i){const t=MR(i),e=tR("map.MapRegistry"),n=nR(async()=>typeof t=="string"?await e.expectMapModel(t):Promise.resolve(t),[e,t]);return gt.useMemo(()=>n.loading?{kind:"loading"}:n.error?{kind:"rejected",error:n.error}:{kind:"resolved",map:n.value},[n])}function MR(i){if(typeof i=="object"&&i.mapId!=null&&i.map!=null)throw new Error("Cannot specify both 'mapId' and 'map' in useMapModel at the same time.");if(i instanceof M0)throw new Error("Map model instances cannot be passed directly to 'useMapModel' (see TypeScript signature).");const t=gt.useMemo(()=>i==null?{}:typeof i=="string"?{mapId:i}:{mapId:i.mapId,map:i.map},[...typeof i=="string"||i==null?[i]:[i.mapId,i.map]]),e=xR(),n=wd(t)??wd(e);if(n==null)throw new Error("No map specified. You must either specify the map (or its id) via a DefaultMapProvider parent or configure it explicitly.");return n}function wd(i){return i?.map??i?.mapId}const yn=Ii("map:MapContainer");function MC(i){const{viewPadding:t,viewPaddingChangeBehavior:e,children:n,role:s,"aria-label":r,"aria-labelledby":a}=i,{containerProps:o}=m0("map-container",i),h=gt.useRef(null),l=gt.useRef(null),c=ER(i),u=c.map,[d,f]=gt.useState(!1);gt.useEffect(()=>{if(c.kind!=="loading"){if(c.kind==="rejected"){yn.error("Cannot display the map. Caused by ",c.error);return}if(!u){yn.error("No configuration available for the configured map.");return}if(h.current){const _=SR(u,h.current);return()=>_?.destroy()}}},[c,u]),gt.useEffect(()=>{f(!0)},[]);const g=gt.useMemo(()=>({height:"100%",position:"relative",[Rl.definition]:t?.top!=null?t.top+"px":"0px",[Cl.definition]:t?.bottom!=null?t.bottom+"px":"0px",[wl.definition]:t?.left!=null?t.left+"px":"0px",[Sl.definition]:t?.right!=null?t.right+"px":"0px"}),[t]);return Ie.jsxs(Hh.div,{...o,role:s,"aria-label":r,"aria-labelledby":a,ref:h,style:g,tabIndex:0,children:[d&&u&&Ie.jsx(wR,{olMap:u.olMap,mapAnchorsHost:l.current,viewPadding:t,viewPaddingChangeBehavior:e,children:n}),Ie.jsx(Hh.div,{ref:l,className:"map-anchors"})]})}function wR(i){const{olMap:t,mapAnchorsHost:e,viewPadding:n,viewPaddingChangeBehavior:s="preserve-center",children:r}=i,a=gt.useMemo(()=>({left:n?.left??0,right:n?.right??0,top:n?.top??0,bottom:n?.bottom??0}),[n]);gt.useEffect(()=>{const h=t?.getView();if(!t||!h)return;const l=h.getCenter(),c=CR(h.padding),u=RR(t,c);switch(h.padding=IR(a),s){case"preserve-center":h.animate({center:l,duration:300});break;case"preserve-extent":{u&&h.animate({center:l,resolution:h.getResolutionForExtent(u),duration:300});break}}},[a,t,s]);const o=gt.useMemo(()=>({mapAnchorsHost:e}),[e]);return Ie.jsx(KS,{value:o,children:r})}function SR(i,t){const e=i.id,n=i.olMap;if(n.getTarget()){yn.error("Failed to display the map: the map already has a target. There may be more than one .");return}if(yn.isDebug()&&yn.debug(`Setting target of map '${e}':`,t),!("keyboardEventTarget_"in n))throw new Error("Internal error: failed to override keyboard event target. The property is no longer present.");n.keyboardEventTarget_=t,n.setTarget(t);let s=!1;return{destroy(){s||(yn.isDebug()&&yn.debug(`Removing target of map '${e}':`,t),n.keyboardEventTarget_=void 0,n.setTarget(void 0),s=!0)}}}function RR(i,t){const e=i.getSize();if(!e||e.length<2)return;const[n,s]=e,r=i.getCoordinateFromPixel([t.left,t.bottom]),a=i.getCoordinateFromPixel([Math.max(0,n-t.right),Math.max(0,s-t.top)]);if(!r||!a)return;const[o,h]=r,[l,c]=a;return[o,h,l,c]}function CR(i){return{top:i?.[0]??0,right:i?.[1]??0,bottom:i?.[2]??0,left:i?.[3]??0}}function IR(i){const{top:t,right:e,bottom:n,left:s}=i;return[t,e,n,s]}class bR extends mg{constructor(t){t=t||{};const e=t.projection!==void 0?t.projection:"EPSG:3857",n=t.tileGrid!==void 0?t.tileGrid:R1({extent:xc(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}}const TR='© OpenStreetMap contributors.';class AR extends bR{constructor(t){t=t||{};let e;t.attributions!==void 0?e=t.attributions:e=[TR];const n=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",s=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:n,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:s,wrapX:t.wrapX,zDirection:t.zDirection})}}var Ra,Zo,S0;class wC{constructor(t){D(this,Zo);D(this,Ra);U(this,Ra,t.references.interceptors.map((e,n)=>[t.referencesMeta.interceptors[n].serviceId,e]))}async fetch(t,e){const n=e?.signal??void 0,s=Object.assign({},e?.context),r=PR(e);Vh(n);let a=LR(t);{const h={target:a,signal:n??new AbortController().signal,context:s,options:r};Vh(n),await j(this,Zo,S0).call(this,h),a=h.target}const o=new Request(a,{...r,signal:n});return await window.fetch(o)}}Ra=new WeakMap,Zo=new WeakSet,S0=async function(t){const{signal:e}=t;for(const[n,s]of v(this,Ra))if(Vh(e),s.beforeRequest)try{await s.beforeRequest(t)}catch(r){throw W0(r),new Error(`Interceptor '${n}' failed with an error`,{cause:r})}};function LR(i){return typeof i=="string"?new URL(i,window.location.href):i}function PR(i){const t=i?.method??"GET",e=new Headers(i?.headers??{}),n={...i,method:t,headers:e};for(const s in n)OR[s]&&delete n[s];return n}const OR={context:1,signal:1};function Vh(i){i?.aborted&&B0()}WS({"EPSG:25832":"+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs","EPSG:25833":"+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs"});const Kh=Ii("map:createMapModel");async function DR(i,t,e){return await new NR(i,t,e).createMapModel()}class NR{mapId;mapConfig;httpService;constructor(t,e,n){this.mapId=t,this.mapConfig=e,this.httpService=n}async createMapModel(){const t=this.mapId,e=this.mapConfig,{view:n,...s}=e.advanced??{},r={...s};if(r.controls||(r.controls=[new kg({collapsible:!1})]),!r.interactions){const u=d=>{const f=d.originalEvent;return(f.metaKey||f.ctrlKey)&&f.shiftKey};r.interactions=jg({dragPan:!0,altShiftDragRotate:!1,pinchRotate:!1,mouseWheelZoom:!0}).extend([new Ug({out:!0,condition:u})])}const a=await n??{};this.initializeViewOptions(a),r.view=a instanceof Ce?a:new Ce(a),!r.layers&&!e.layers&&(r.layers=[new fg({source:new AR})]);const o=e.initialView,h=o?.kind==="extent"?o.extent:void 0;Kh.debug("Constructing OpenLayers map with options",r);const l=new qx(r),c=new M0({id:t,olMap:l,initialExtent:h,httpService:this.httpService});try{if(e.layers)for(const u of e.layers)c.layers.addLayer(u);return c}catch(u){throw c.destroy(),u}}initializeViewOptions(t){const e=this.mapId,n=this.mapConfig;if(t instanceof Ce){const a=o=>{Kh.warn(`The advanced configuration for map id '${e}' has provided a fully constructed view instance: ${o} cannot be applied. Use ViewOptions instead of a View instance.`)};n.projection!=null&&a("projection"),n.initialView!=null&&a("initialView");return}const s=t.projection=this.initializeProjection(n.projection),r=n.initialView;if(r)switch(r.kind){case"position":t.zoom=r.zoom,t.center=[r.center.x,r.center.y];break;case"extent":{const a=r.extent;t.zoom=0,t.center=[a.xMin+(a.xMax-a.xMin)/2,a.yMin+(a.yMax-a.yMin)/2];break}}else this.setViewDefaults(t,s)}setViewDefaults(t,e){if(t.center==null){const n=e.getExtent();n?t.center=Te(n):Kh.warn(`Cannot set default center coordinate because the current projection has no associated extent. Try to configure 'initialView' explicity.`)}(t.zoom==null||t.resolution==null)&&(t.zoom=0)}initializeProjection(t){if(t==null)return yt("EPSG:3857");const e=yt(t);if(!e)throw new Error(`Failed to retrieve projection for code '${t}'.`);return e}}const Zh=Ii("map:MapRegistry");var Ca,Ia,Zi,$i,ba,Tn,$o,R0;class SC{constructor({references:t}){D(this,$o);D(this,Ca);D(this,Ia,new Map);D(this,Zi,new Map);D(this,$i,new Map);D(this,ba,new WeakMap);D(this,Tn,!1);U(this,Ca,t.httpService);const e=t.providers;for(const n of e)v(this,Ia).set(n.mapId,n)}destroy(){v(this,Tn)||(Zh.info("Destroy map registry and all maps"),U(this,Tn,!0),v(this,Zi).forEach(t=>{t.kind==="model"&&t.model.destroy()}),v(this,Zi).clear(),v(this,$i).clear())}async getMapModel(t){if(v(this,Tn))throw new Error("MapRegistry has already been destroyed.");const e=v(this,$i).get(t);if(e)return $h(await e);const n=v(this,Zi).get(t);if(n)return $h(n);const s=v(this,Ia).get(t);if(!s){Zh.debug(`Failed to find a config provider for map id '${t}'.`);return}const r=j(this,$o,R0).call(this,t,s).catch(a=>{const h={kind:"error",error:new Error(`Failed to construct map '${t}'`,{cause:a})};return v(this,$i).delete(t),v(this,Zi).set(t,h),h});return v(this,$i).set(t,r),$h(await r)}async expectMapModel(t){const e=await this.getMapModel(t);if(!e)throw new Error(`No configuration available for map with id '${t}'.`);return e}getMapModelByRawInstance(t){return v(this,ba).get(t)}}Ca=new WeakMap,Ia=new WeakMap,Zi=new WeakMap,$i=new WeakMap,ba=new WeakMap,Tn=new WeakMap,$o=new WeakSet,R0=async function(t,e){Zh.info(`Creating map with id '${t}'`);const n=await e.getMapConfig(),s=await DR(t,n,v(this,Ca));if(v(this,Tn))throw s.destroy(),new Error("MapRegistry has been destroyed.");const r={kind:"model",model:s};return v(this,Zi).set(t,r),v(this,$i).delete(t),v(this,ba).set(s.olMap,s),r};function $h(i){if(i.kind==="error")throw i.error;return i.model}export{XR as $,Us as A,Qt as B,ka as C,EC as D,Kv as E,Ci as F,So as G,wC as H,kt as I,Ze as J,hf as K,Nn as L,SC as M,le as N,AR as O,Ke as P,Hv as Q,Jv as R,sC as S,fg as T,Og as U,Ce as V,vi as W,mf as X,qR as Y,Yf as Z,$u as _,ux as a,gR as a$,YR as a0,jv as a1,Zu as a2,Lg as a3,ht as a4,no as a5,Ec as a6,xc as a7,R1 as a8,$ as a9,tg as aA,Zs as aB,Rc as aC,jR as aD,ai as aE,df as aF,xi as aG,nC as aH,Tt as aI,it as aJ,bc as aK,He as aL,lh as aM,Sc as aN,Lu as aO,at as aP,Ws as aQ,qt as aR,Ae as aS,nh as aT,WR as aU,_u as aV,wo as aW,Wi as aX,yu as aY,m0 as aZ,Mc as a_,vc as aa,_x as ab,zs as ac,S_ as ad,mg as ae,yt as af,ah as ag,z_ as ah,A1 as ai,Fl as aj,Ne as ak,Mm as al,Xs as am,ym as an,ri as ao,Zd as ap,zr as aq,kn as ar,qx as as,sr as at,_c as au,W1 as av,_i as aw,Ht as ax,An as ay,dC as az,mx as b,Si as b$,Lm as b0,Z_ as b1,Te as b2,YS as b3,kr as b4,Ol as b5,lC as b6,Ly as b7,vt as b8,rC as b9,Gr as bA,Pa as bB,th as bC,o_ as bD,GR as bE,Xl as bF,xg as bG,X_ as bH,j_ as bI,zx as bJ,zg as bK,Fx as bL,P1 as bM,E1 as bN,qs as bO,Lf as bP,oC as bQ,ot as bR,Br as bS,eC as bT,iC as bU,Af as bV,rl as bW,dm as bX,Sf as bY,ZR as bZ,$l as b_,aC as ba,yC as bb,Ba as bc,Nx as bd,fC as be,_C as bf,Px as bg,Hu as bh,Me as bi,se as bj,ef as bk,wt as bl,BR as bm,gi as bn,Ro as bo,sl as bp,$e as bq,ql as br,of as bs,on as bt,B_ as bu,cC as bv,UR as bw,Wa as bx,gC as by,Dx as bz,Ct as c,rf as c0,gm as c1,pf as c2,La as c3,Wg as c4,td as c5,zi as c6,du as c7,eh as c8,ds as c9,Ef as cA,xm as cB,Au as cC,k1 as cD,Hl as cE,ec as cF,Mt as ca,Co as cb,um as cc,Qd as cd,Fa as ce,nf as cf,xf as cg,Mf as ch,hC as ci,Io as cj,Tu as ck,_m as cl,QR as cm,as as cn,tf as co,wf as cp,VR as cq,KR as cr,JR as cs,HR as ct,gu as cu,dx as cv,vm as cw,$R as cx,tC as cy,vf as cz,dr as d,jd as e,JS as f,pC as g,US as h,ER as i,ze as j,j0 as k,MC as l,vC as m,mc as n,bt as o,_t as p,Ys as q,Kt as r,G as s,x1 as t,xC as u,We as v,l_ as w,Ft as x,_e as y,kl as z}; diff --git a/openlayers-base-packages/assets/zSfZu7QVHLy4.js b/openlayers-base-packages/assets/C17aK7N5tIXO.js similarity index 98% rename from openlayers-base-packages/assets/zSfZu7QVHLy4.js rename to openlayers-base-packages/assets/C17aK7N5tIXO.js index 209d84970..f48303f05 100644 --- a/openlayers-base-packages/assets/zSfZu7QVHLy4.js +++ b/openlayers-base-packages/assets/C17aK7N5tIXO.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BGpV6sNzKbKC.js","./CmsKOCeNyeyo.js","./BOXMyqr06QWb.js","./BeGW3nmX4tO2.js","./q4MLRk0u7kxl.js","./39a3VBatk_eA.js","./BMuX_dt1qyjL.js","./Gw82v5PUNK8h.js","./N6gwA50uHdd6.js"])))=>i.map(i=>d[i]); -var Qt=Object.defineProperty;var Ye=i=>{throw TypeError(i)};var es=(i,e,t)=>e in i?Qt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>es(i,typeof e!="symbol"?e+"":e,t),Te=(i,e,t)=>e.has(i)||Ye("Cannot "+t);var v=(i,e,t)=>(Te(i,e,"read from private field"),t?t.call(i):e.get(i)),x=(i,e,t)=>e.has(i)?Ye("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),b=(i,e,t,n)=>(Te(i,e,"write to private field"),n?n.call(i,t):e.set(i,t),t),se=(i,e,t)=>(Te(i,e,"access private method"),t);import{aE as ts,b6 as ss,b7 as ns,b8 as is,aP as rs,aX as os,b9 as as,ba as ls,J as cs,bb as ds,bc as us,bd as hs,be as gs,bf as St,bg as fs,bh as ms,a as te,b as Pe,aL as ve,bi as Je,bj as q,a9 as Xe,G as k,bk as Ae,a_ as Q,an as Ze,bl as pe,bm as Qe,bn as A,p as C,bo as W,bp as je,bq as ps,br as ys,z as _s,bs as De,bt as vs,bu as Ss,bv as xt,ao as wt,bw as xs,bx as ws,by as et,bz as bs,bA as tt,bB as Ms,bC as st,j as D,r as $e,a$ as Be,bD as bt,bE as Es,b0 as Cs,f as Ue,u as K,aZ as H,i as $,bF as Ps,b3 as Fe,bG as Fs,am as Se,bH as Ls,bI as Is,c as xe,ax as re,F as Re,C as Ts,bJ as nt,bK as As,bL as it,k as rt}from"./q4MLRk0u7kxl.js";import{h as We,u as Mt,o as Et,m as Ct,j as u,g as R,n as Ns,p as Os,r as p,t as ne,q as ot,s as ks,v as js,w as Ds,c as me,d as Pt,B as P,x as at,b as Ft,C as Rs,y as Gs,i as Lt,z as It,V as Vs,l as Hs,I as $s}from"./BeGW3nmX4tO2.js";import{G as Tt,i as Bs}from"./Bh6kFNuDWsIw.js";import{a as Us}from"./UlulYB4e5zqK.js";import{D as At,S as Ws,I as zs,c as Ks,a as qs}from"./BMa7TTlUnkcm.js";import{u as V}from"./39a3VBatk_eA.js";import{u as B,c as N,s as Nt}from"./BOXMyqr06QWb.js";import{T as ee,L as Ys}from"./DM7y0OoBz9e5.js";import{c as Ot}from"./Dc3xe-fbgKeJ.js";import{L as Ge}from"./D3gFeNVkNTAB.js";import{u as kt,F as we}from"./BMuX_dt1qyjL.js";import{F as be}from"./cMbQJw1ZoqBe.js";import{H as Ve}from"./D1wuBnUV5g92.js";import{F as Js}from"./N6gwA50uHdd6.js";import{_ as Xs}from"./CmsKOCeNyeyo.js";import{s as Zs}from"./BknMP--fbInd.js";const ze=We(function(e,t){const{htmlSize:n,...s}=e,r=Mt("Input",s),o=Et(s),a=kt(o),l=Ct("chakra-input",e.className);return u.jsx(R.input,{size:n,...a,__css:r.field,ref:t,className:l})});ze.displayName="Input";ze.id="Input";const jt=We(function(e,t){const{children:n,placeholder:s,className:r,...o}=e;return u.jsxs(R.select,{...o,ref:t,className:Ct("chakra-select",r),children:[s&&u.jsx("option",{value:"",children:s}),n]})});jt.displayName="SelectField";const Ke=We((i,e)=>{const t=Mt("Select",i),{rootProps:n,placeholder:s,icon:r,color:o,height:a,h:l,minH:c,minHeight:d,iconColor:h,iconSize:f,...g}=Et(i),[m,y]=Zs(g,Ns),w=kt(y),F={width:"100%",height:"fit-content",position:"relative",color:o},O={paddingEnd:"2rem",...t.field,_focus:{zIndex:"unset",...t.field?._focus}};return u.jsxs(R.div,{className:"chakra-select__wrapper",__css:F,...m,...n,children:[u.jsx(jt,{ref:e,height:l??a,minH:c??d,placeholder:s,...w,__css:O,children:i.children}),u.jsx(Dt,{"data-disabled":Os(w.disabled),...(h||o)&&{color:h||o},__css:t.icon,...f&&{fontSize:f},children:r})]})});Ke.displayName="Select";const Qs=i=>u.jsx("svg",{viewBox:"0 0 24 24",...i,children:u.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),en=R("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Dt=i=>{const{children:e=u.jsx(Qs,{}),...t}=i,n=p.cloneElement(e,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return u.jsx(en,{...t,className:"chakra-select__icon-wrapper",children:p.isValidElement(e)?n:null})};Dt.displayName="SelectIcon";function tn(i,e){const t=i??"bottom";return{"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[t]?.[e]??t}function sn(i,e){const t=s=>({...e,...s,position:tn(s?.position??e?.position,i)}),n=s=>{const r=t(s),o=ks(r);return ne.notify(o,r)};return n.update=(s,r)=>{ne.update(s,t(r))},n.promise=(s,r)=>{const o=n({...r.loading,status:"loading",duration:null});s.then(a=>n.update(o,{status:"success",duration:5e3,...ot(r.success,a)})).catch(a=>n.update(o,{status:"error",duration:5e3,...ot(r.error,a)}))},n.closeAll=ne.closeAll,n.close=ne.close,n.isActive=ne.isActive,n}function nn(i){const{theme:e}=js(),t=Ds();return p.useMemo(()=>sn(e.direction,{...t,...i}),[i,e.direction,t])}const M={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"};class Le extends ts{constructor(e){super(),this.on,this.once,this.un,this.options=e,this.id=e.id,this.insertFirst=e.insertFirst!==void 0?e.insertFirst:!0,this.stopEvent=e.stopEvent!==void 0?e.stopEvent:!0,this.element=document.createElement("div"),this.element.className=e.className!==void 0?e.className:"ol-overlay-container "+ss,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=e.autoPan===!0?{}:e.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(M.ELEMENT,this.handleElementChanged),this.addChangeListener(M.MAP,this.handleMapChanged),this.addChangeListener(M.OFFSET,this.handleOffsetChanged),this.addChangeListener(M.POSITION,this.handlePositionChanged),this.addChangeListener(M.POSITIONING,this.handlePositioningChanged),e.element!==void 0&&this.setElement(e.element),this.setOffset(e.offset!==void 0?e.offset:[0,0]),this.setPositioning(e.positioning||"top-left"),e.position!==void 0&&this.setPosition(e.position)}getElement(){return this.get(M.ELEMENT)}getId(){return this.id}getMap(){return this.get(M.MAP)||null}getOffset(){return this.get(M.OFFSET)}getPosition(){return this.get(M.POSITION)}getPositioning(){return this.get(M.POSITIONING)}handleElementChanged(){ns(this.element);const e=this.getElement();e&&this.element.appendChild(e)}handleMapChanged(){this.mapPostrenderListenerKey&&(this.element?.remove(),is(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const e=this.getMap();if(e){this.mapPostrenderListenerKey=rs(e,os.POSTRENDER,this.render,this),this.updatePixelPosition();const t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(e){this.set(M.ELEMENT,e)}setMap(e){this.set(M.MAP,e)}setOffset(e){this.set(M.OFFSET,e)}setPosition(e){this.set(M.POSITION,e)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(e){const t=this.getMap();if(!t||!t.getTargetElement()||!this.get(M.POSITION))return;const n=this.getRect(t.getTargetElement(),t.getSize()),s=this.getElement(),r=this.getRect(s,[as(s),ls(s)]);e=e||{};const o=e.margin===void 0?20:e.margin;if(!cs(n,r)){const a=r[0]-n[0],l=n[2]-r[2],c=r[1]-n[1],d=n[3]-r[3],h=[0,0];if(a<0?h[0]=a-o:l<0&&(h[0]=Math.abs(l)+o),c<0?h[1]=c-o:d<0&&(h[1]=Math.abs(d)+o),h[0]!==0||h[1]!==0){const f=t.getView().getCenterInternal(),g=t.getPixelFromCoordinateInternal(f);if(!g)return;const m=[g[0]+h[0],g[1]+h[1]],y=e.animation||{};t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(m),duration:y.duration,easing:y.easing})}}}getRect(e,t){const n=e.getBoundingClientRect(),s=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[s,r,s+t[0],r+t[1]]}setPositioning(e){this.set(M.POSITIONING,e)}setVisible(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)}updatePixelPosition(){const e=this.getMap(),t=this.getPosition();if(!e||!e.isRendered()||!t){this.setVisible(!1);return}const n=e.getPixelFromCoordinate(t),s=e.getSize();this.updateRenderedPosition(n,s)}updateRenderedPosition(e,t){const n=this.element.style,s=this.getOffset(),r=this.getPositioning();this.setVisible(!0);const o=Math.round(e[0]+s[0])+"px",a=Math.round(e[1]+s[1])+"px";let l="0%",c="0%";r=="bottom-right"||r=="center-right"||r=="top-right"?l="-100%":(r=="bottom-center"||r=="center-center"||r=="top-center")&&(l="-50%"),r=="bottom-left"||r=="bottom-center"||r=="bottom-right"?c="-100%":(r=="center-left"||r=="center-center"||r=="center-right")&&(c="-50%");const d=`translate(${l}, ${c}) translate(${o}, ${a})`;this.rendered.transform_!=d&&(this.rendered.transform_=d,n.transform=d)}getOptions(){return this.options}}const Zi=ds,lt=0,oe=1,ct=[0,0,0,0],Y=[],Ne={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"};class Oe extends wt{constructor(e,t,n){super(e),this.features=t,this.mapBrowserEvent=n}}class rn extends us{constructor(e){super(e),this.on,this.once,this.un,this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=e.condition?e.condition:hs,this.defaultDeleteCondition_=function(n){return gs(n)&&St(n)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:fs,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new ms,this.pixelTolerance_=e.pixelTolerance!==void 0?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new te({source:new Pe({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:an(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null;let t;if(e.features?t=e.features:e.source&&(this.source_=e.source,t=new ve(this.source_.getFeatures()),this.source_.addEventListener(Je.ADDFEATURE,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(Je.REMOVEFEATURE,this.handleSourceRemove_.bind(this))),!t)throw new Error("The modify interaction requires features, a source or a layer");e.hitDetection&&(this.hitDetection_=e.hitDetection),this.features_=t,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(q.ADD,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(q.REMOVE,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=e.snapToPointer===void 0?!this.hitDetection_:e.snapToPointer}addFeature_(e){const t=e.getGeometry();if(t){const s=this.SEGMENT_WRITERS_[t.getType()];s&&s(e,t)}const n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),e.addEventListener(Xe.CHANGE,this.boundHandleFeatureChange_)}willModifyFeatures_(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new ve;const n=this.featuresBeingModified_.getArray();for(let s=0,r=t.length;s=0;--s){const r=n[s];for(let o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===r&&this.dragSegments_.splice(o,1);t.remove(r)}}setActive(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(e)}setMap(e){this.overlay_.setMap(e),super.setMap(e)}getOverlay(){return this.overlay_}handleSourceAdd_(e){e.feature&&this.features_.push(e.feature)}handleSourceRemove_(e){e.feature&&this.features_.remove(e.feature)}handleFeatureAdd_(e){this.addFeature_(e.element)}handleFeatureChange_(e){if(!this.changingFeature_){const t=e.target;this.removeFeature_(t),this.addFeature_(t)}}handleFeatureRemove_(e){this.removeFeature_(e.element)}writePointGeometry_(e,t){const n=t.getCoordinates(),s={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),s)}writeMultiPointGeometry_(e,t){const n=t.getCoordinates();for(let s=0,r=n.length;s=0;--c)this.insertVertex_(s[c],r)}return!!this.vertexFeature_}handleUpEvent(e){for(let t=this.dragSegments_.length-1;t>=0;--t){const n=this.dragSegments_[t][0],s=n.geometry;if(s.getType()==="Circle"){const r=s.getCenter(),o=n.featureSegments[0],a=n.featureSegments[1];o.segment[0]=r,o.segment[1]=r,a.segment[0]=r,a.segment[1]=r,this.rBush_.update(Ae(r),o);let l=s;this.rBush_.update(l.getExtent(),a)}else this.rBush_.update(k(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new Oe(Ne.MODIFYEND,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1}handlePointerMove_(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)}handlePointerAtPixel_(e,t,n){const s=n||t.getCoordinateFromPixel(e);t.getView().getProjection();const r=function(l,c){return dt(s,l)-dt(s,c)};let o,a;if(this.hitDetection_){const l=typeof this.hitDetection_=="object"?c=>c===this.hitDetection_:void 0;t.forEachFeatureAtPixel(e,(c,d,h)=>{h&&h.getType()==="Point"&&(h=new Ze(je(h.getCoordinates())));const f=h||c.getGeometry();if(c instanceof Q&&this.features_.getArray().includes(c)){a=f;const g=c.getGeometry().getFlatCoordinates().slice(0,2);o=[{feature:c,geometry:a,segment:[g,g]}]}return!0},{layerFilter:l})}if(!o){const l=ps(Ae(s,ct)),c=t.getView().getResolution()*this.pixelTolerance_,d=ys(_s(l,c,ct));o=this.rBush_.getInExtent(d)}if(o&&o.length>0){const l=o.sort(r)[0],c=l.segment;let d=ut(s,l);const h=t.getPixelFromCoordinate(d);let f=Qe(e,h);if(a||f<=this.pixelTolerance_){const g={};if(g[C(c)]=!0,this.snapToPointer_||(this.delta_[0]=d[0]-s[0],this.delta_[1]=d[1]-s[1]),l.geometry.getType()==="Circle"&&l.index===oe)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(d,[l.feature],[l.geometry]);else{const m=t.getPixelFromCoordinate(c[0]),y=t.getPixelFromCoordinate(c[1]),w=De(h,m),F=De(h,y);f=Math.sqrt(Math.min(w,F)),this.snappedToVertex_=f<=this.pixelTolerance_,this.snappedToVertex_&&(d=w>F?c[1]:c[0]),this.createOrUpdateVertexFeature_(d,[l.feature],[l.geometry]);const O={};O[C(l.geometry)]=!0;for(let S=1,L=o.length;S=0;--l)o=e[l],g=o[0],m=C(g.feature),g.depth&&(m+="-"+g.depth.join("-")),m in t||(t[m]={}),o[1]===0?(t[m].right=g,t[m].index=g.index):o[1]==1&&(t[m].left=g,t[m].index=g.index+1);for(m in t){switch(f=t[m].right,d=t[m].left,c=t[m].index,h=c-1,d!==void 0?g=d:g=f,h<0&&(h=0),a=g.geometry,r=a.getCoordinates(),s=r,n=!1,a.getType()){case"MultiLineString":r[g.depth[0]].length>2&&(r[g.depth[0]].splice(c,1),n=!0);break;case"LineString":r.length>2&&(r.splice(c,1),n=!0);break;case"MultiPolygon":s=s[g.depth[1]];case"Polygon":s=s[g.depth[0]],s.length>4&&(c==s.length-1&&(c=0),s.splice(c,1),n=!0,c===0&&(s.pop(),s.push(s[0]),h=s.length-1));break}if(n){this.setGeometryCoordinates_(a,r);const y=[];if(d!==void 0&&(this.rBush_.remove(d),y.push(d.segment[0])),f!==void 0&&(this.rBush_.remove(f),y.push(f.segment[1])),d!==void 0&&f!==void 0){const w={depth:g.depth,feature:g.feature,geometry:g.geometry,index:h,segment:y};this.rBush_.insert(k(w.segment),w)}this.updateSegmentIndices_(a,c,g.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.length=0}}return n}setGeometryCoordinates_(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}updateSegmentIndices_(e,t,n,s){this.rBush_.forEachInExtent(e.getExtent(),function(r){r.geometry===e&&(n===void 0||r.depth===void 0||vs(r.depth,n))&&r.index>t&&(r.index+=s)})}}function on(i,e){return i.index-e.index}function dt(i,e,t){const n=e.geometry;if(n.getType()==="Circle"){let r=n;if(e.index===oe){const o=De(r.getCenter(),A(i)),a=Math.sqrt(o)-r.getRadius();return a*a}}const s=A(i);return Y[0]=A(e.segment[0]),Y[1]=A(e.segment[1]),xs(s,Y)}function ut(i,e,t){const n=e.geometry;if(n.getType()==="Circle"&&e.index===oe)return je(n.getClosestPoint(A(i)));const s=A(i);return Y[0]=A(e.segment[0]),Y[1]=A(e.segment[1]),je(Ss(s,Y))}function an(){const i=xt();return function(e,t){return i.Point}}const ln={SELECT:"select"};class cn extends wt{constructor(e,t,n,s){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=s}}const ye={};class Rt extends ws{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=e.condition?e.condition:St,this.addCondition_=e.addCondition?e.addCondition:et,this.removeCondition_=e.removeCondition?e.removeCondition:et,this.toggleCondition_=e.toggleCondition?e.toggleCondition:bs,this.multi_=e.multi?e.multi:!1,this.filter_=e.filter?e.filter:tt,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=e.style!==void 0?e.style:dn(),this.features_=e.features||new ve;let t;if(e.layers)if(typeof e.layers=="function")t=e.layers;else{const n=e.layers;t=function(s){return n.includes(s)}}else t=tt;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[C(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[C(e)]}setHitTolerance(e){this.hitTolerance_=e}setMap(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(e),e?(this.features_.addEventListener(q.ADD,this.boundAddFeature_),this.features_.addEventListener(q.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(q.ADD,this.boundAddFeature_),this.features_.removeEventListener(q.REMOVE,this.boundRemoveFeature_))}addFeature_(e){const t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){const n=this.getMap().getAllLayers().find(function(s){if(s instanceof te&&s.getSource()&&s.getSource().hasFeature(t))return s});n&&this.addFeatureLayerAssociation_(t,n)}}removeFeature_(e){this.style_&&this.restorePreviousStyle_(e.element)}getStyle(){return this.style_}applySelectedStyle_(e){const t=C(e);t in ye||(ye[t]=e.getStyle()),e.setStyle(this.style_)}restorePreviousStyle_(e){const t=this.getMap().getInteractions().getArray();for(let s=t.length-1;s>=0;--s){const r=t[s];if(r!==this&&r instanceof Rt&&r.getStyle()&&r.getFeatures().getArray().lastIndexOf(e)!==-1){e.setStyle(r.getStyle());return}}const n=C(e);e.setStyle(ye[n]),delete ye[n]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[C(e)]}handleEvent(e){if(!this.condition_(e))return!0;const t=this.addCondition_(e),n=this.removeCondition_(e),s=this.toggleCondition_(e),r=!t&&!n&&!s,o=e.map,a=this.getFeatures(),l=[],c=[];if(r){Ms(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,(d,h)=>{if(!(!(d instanceof Q)||!this.filter_(d,h)))return this.addFeatureLayerAssociation_(d,h),c.push(d),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let d=a.getLength()-1;d>=0;--d){const h=a.item(d),f=c.indexOf(h);f>-1?c.splice(f,1):(a.remove(h),l.push(h))}c.length!==0&&a.extend(c)}else{o.forEachFeatureAtPixel(e.pixel,(d,h)=>{if(!(!(d instanceof Q)||!this.filter_(d,h)))return(t||s)&&!a.getArray().includes(d)?(this.addFeatureLayerAssociation_(d,h),c.push(d)):(n||s)&&a.getArray().includes(d)&&(l.push(d),this.removeFeatureLayerAssociation_(d)),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let d=l.length-1;d>=0;--d)a.remove(l[d]);a.extend(c)}return(c.length>0||l.length>0)&&this.dispatchEvent(new cn(ln.SELECT,c,l,e)),!0}}function dn(){const i=xt();return st(i.Polygon,i.LineString),st(i.GeometryCollection,i.LineString),function(e){return e.getGeometry()?i[e.getGeometry().getType()]:null}}async function un(i,e,t,n){const r=n.getCode().replace("EPSG:","http://www.opengis.net/def/crs/EPSG/0/"),o=await i.fetch(e,{method:"POST",body:JSON.stringify({type:"Feature",properties:{},geometry:t}),headers:{"Content-Type":"application/geo+json; charset=utf-8","Content-Crs":`<${r}>`}});if(!o||!o.ok||o.status!==201)throw new Error("Request failed: "+o.status);const a=o.headers.get("location");if(!a)throw new Error("Request failed: no Location response header");const l=a.substring(a.lastIndexOf("/")+1);return Promise.resolve(l)}async function hn(i,e,t,n,s){const o=s.getCode().replace("EPSG:","http://www.opengis.net/def/crs/EPSG/0/"),a=new URL(`${e.toString()}/${t}`),l=await i.fetch(a,{method:"PATCH",body:JSON.stringify({type:"Feature",properties:{},geometry:n}),headers:{"Content-Type":"application/geo+json; charset=utf-8","Content-Crs":`<${o}>`}});if(!l||!l.ok||l.status!==204)throw new Error("Request failed: "+l.status);return Promise.resolve(t)}function Gt(i,e){const t=document.createElement("div");t.className="editing-tooltip editing-tooltip-hidden",t.role="tooltip";const n=document.createElement("span");n.textContent=e,t.appendChild(n);const s=new Le({element:t,offset:[15,0],positioning:"center-left"}),r=i.on("pointermove",o=>{o.dragging||s.setPosition(o.coordinate)});return i.addOverlay(s),{destroy(){D(r),i.removeOverlay(s)},setVisible(o){t.classList.toggle("editing-tooltip-hidden",!o)},setText(o){n.textContent=o}}}function Vt(i){let e=ht(i.polygon);Array.isArray(e)&&(e=e[0]);let t=ht(i.vertex);Array.isArray(t)&&(t=t[0]);const n=[];return e&&n.push(e),t&&(t.setGeometry(gn),n.push(t)),n}const gn=i=>{if(i){const e=i.getGeometry();if(e&&e.getType()==="Polygon"){const t=e.getCoordinates()[0];if(t)return new Us(t)}}},ht=i=>{const e=new Q,n=new te({style:i}).getStyleFunction();if(!n)throw new Error("can't retrieve style function");const s=n(e,1);if(!s)throw new Error("can't retrieve styles from feature style function");return Array.isArray(s)&&s.length?s.length>1?s:s[0]:s},fn=me("editing:EditingCreateWorkflowImpl");var j;class mn{constructor(e){x(this,j);_(this,"_httpService");_(this,"_intl");_(this,"_map");_(this,"_polygonStyle");_(this,"_vertexStyle");_(this,"_state");_(this,"_editLayerURL");_(this,"_featureId");_(this,"_editingSource");_(this,"_editingLayer");_(this,"_drawInteraction");_(this,"_olMap");_(this,"_tooltip");_(this,"_enterHandler");_(this,"_escapeHandler");_(this,"_error");_(this,"_interactionListener");_(this,"_mapListener");this._httpService=e.httpService,this._intl=e.intl,this._polygonStyle=e.polygonStyle,this._vertexStyle=e.vertexStyle,this._map=e.map,this._olMap=e.map.olMap,this._state=$e("active:initialized"),this._editLayerURL=e.ogcApiFeatureLayerUrl,this._editingSource=new Pe,this._editingLayer=new te({source:this._editingSource,zIndex:Be,properties:{name:"editing-layer"}}),this._drawInteraction=new At({source:this._editingSource,type:"Polygon",style:Vt({polygon:this._polygonStyle,vertex:this._vertexStyle})}),this._tooltip=Gt(this._olMap,this._intl.formatMessage({id:"create.tooltip.begin"})),this._enterHandler=t=>{if((t.code==="Enter"||t.code==="NumpadEnter")&&t.target===this._olMap.getTargetElement()){const n=this._drawInteraction.getOverlay().getSource()?.getFeatures()??[];n[0]&&n[0].getGeometry().getCoordinates()[0].length>4&&this.triggerSave()}},this._escapeHandler=t=>{t.code==="Escape"&&t.target===this._olMap.getTargetElement()&&this.reset()},this._interactionListener=[],this._mapListener=[],this._start()}getDrawInteraction(){return this._drawInteraction}getState(){return this._state.value}_setState(e){this._state.value=e}_save(e){this._setState("active:saving");const t=this._editLayerURL,n=e.getGeometry();if(!n){this._destroy(),this._error=new Error("no geometry available"),v(this,j)?.reject(this._error);return}const s=this._olMap.getView().getProjection(),o=new Tt({dataProjection:s}).writeGeometryObject(n,{rightHanded:!0,decimals:10});this._olMap.removeInteraction(this._drawInteraction),this._tooltip.destroy(),un(this._httpService,t,o,s).then(a=>{this._featureId=a,this._destroy(),v(this,j)?.resolve({featureId:this._featureId})}).catch(a=>{fn.error(a),this._destroy(),this._error=new Error("Failed to save feature",{cause:a}),v(this,j)?.reject(this._error)})}_start(){this._olMap.addLayer(this._editingLayer),this._olMap.addInteraction(this._drawInteraction);const e=bt(()=>{const s=this._map.container;if(s)return s.addEventListener("keydown",this._enterHandler,!1),s.addEventListener("keydown",this._escapeHandler,!1),()=>{s.removeEventListener("keydown",this._enterHandler),s.removeEventListener("keydown",this._escapeHandler)}});this._tooltip.setVisible(!0);const t=this._drawInteraction.on("drawstart",()=>{this._setState("active:drawing"),this._tooltip.setText(this._intl.formatMessage({id:"create.tooltip.continue"}))}),n=this._drawInteraction.on("drawend",s=>{const r=s.feature;if(!r){this._destroy(),this._error=new Error("no feature available"),v(this,j)?.reject(this._error);return}this._save(r)});this._interactionListener.push(t,n),this._mapListener.push(e)}reset(){this._drawInteraction.abortDrawing(),this._tooltip.setText(this._intl.formatMessage({id:"create.tooltip.begin"})),this._setState("active:initialized")}stop(){this._destroy(),v(this,j)?.resolve(void 0)}_destroy(){this._olMap.removeLayer(this._editingLayer),this._olMap.removeInteraction(this._drawInteraction),this._tooltip.destroy(),this._interactionListener.forEach(e=>{D(e)}),this._mapListener.forEach(e=>{e.destroy()}),this._setState("destroyed")}triggerSave(){this._drawInteraction.finishDrawing()}whenComplete(){return this._state.value==="destroyed"?this._error?Promise.reject(this._error):this._featureId?Promise.resolve({featureId:this._featureId}):Promise.resolve(void 0):(v(this,j)??b(this,j,Pt())).promise}}j=new WeakMap;var I;class pn{constructor(e){x(this,I);_(this,"_httpService");_(this,"_intl");_(this,"_map");_(this,"_polygonStyle");_(this,"_vertexStyle");_(this,"_state");_(this,"_editLayerURL");_(this,"_featureId");_(this,"_initialFeature");_(this,"_editFeature");_(this,"_editingSource");_(this,"_editingLayer");_(this,"_modifyInteraction");_(this,"_olMap");_(this,"_tooltip");_(this,"_enterHandler");_(this,"_escapeHandler");_(this,"_error");_(this,"_interactionListener");_(this,"_mapListener");this._httpService=e.httpService,this._intl=e.intl,this._polygonStyle=e.polygonStyle,this._vertexStyle=e.vertexStyle,this._map=e.map,this._olMap=e.map.olMap,this._state=$e("active:initialized"),this._editLayerURL=e.ogcApiFeatureLayerUrl,this._initialFeature=e.feature.clone(),this._initialFeature.setId(e.feature.getId()),this._editFeature=e.feature.clone(),this._editFeature.setId(e.feature.getId()),this._editFeature.setStyle(Vt({polygon:this._polygonStyle,vertex:this._vertexStyle})),this._editingSource=new Pe({features:new ve([this._editFeature])}),this._editingLayer=new te({source:this._editingSource,zIndex:Be,properties:{name:"editing-layer"}}),this._modifyInteraction=new rn({source:this._editingSource}),this._tooltip=Gt(this._olMap,this._intl.formatMessage({id:"create.tooltip.deselect"})),this._enterHandler=t=>{if((t.code==="Enter"||t.code==="NumpadEnter")&&t.target===this._olMap.getTargetElement()){const n=this._editingSource.getFeatures()[0];if(!n)throw Error("no updated feature found");this._save(n)}},this._escapeHandler=t=>{t.code==="Escape"&&t.target===this._olMap.getTargetElement()&&this.reset()},this._interactionListener=[],this._mapListener=[],this._start()}getModifyInteraction(){return this._modifyInteraction}getState(){return this._state.value}_setState(e){this._state.value=e}_save(e){this._setState("active:saving");const t=this._editLayerURL;if(this._featureId=e.getId()?.toString(),!this._featureId){this._destroy(),this._error=new Error("no feature id available"),v(this,I)?.reject(this._error);return}const n=e?.getGeometry();if(!n){this._destroy(),this._error=new Error("no geometry available"),v(this,I)?.reject(this._error);return}const s=this._olMap.getView().getProjection(),o=new Tt({dataProjection:s}).writeGeometryObject(n,{rightHanded:!0,decimals:10});this._olMap.removeInteraction(this._modifyInteraction),this._tooltip.destroy(),hn(this._httpService,t,this._featureId,o,s).then(a=>{this._destroy(),v(this,I)?.resolve({featureId:a})}).catch(a=>{this._destroy(),this._error=new Error("Failed to save feature",{cause:a}),v(this,I)?.reject(this._error)})}_start(){this._olMap.addLayer(this._editingLayer),this._olMap.addInteraction(this._modifyInteraction);const e=this._editingSource.getFeatures()[0];if(e&&!e.getId()?.toString()){this._destroy(),this._error=new Error("no feature id available"),v(this,I)?.reject(this._error);return}const t=bt(()=>{const r=this._map.container;if(r)return r.addEventListener("keydown",this._enterHandler,!1),r.addEventListener("keydown",this._escapeHandler,!1),()=>{r.removeEventListener("keydown",this._enterHandler),r.removeEventListener("keydown",this._escapeHandler)}});this._tooltip.setVisible(!0);const n=this._map.olMap.on("click",r=>{const o=r.coordinate,a=r.originalEvent.altKey,l=this._editingSource.getFeaturesAtCoordinate(o);a||l.length===0&&this.triggerSave()}),s=this._modifyInteraction.on("modifystart",()=>{this._setState("active:drawing")});this._interactionListener.push(n,s),this._mapListener.push(t)}reset(){const e=this._initialFeature.getGeometry()?.clone(),t=this._editingSource.getFeatures()[0];if(!t)throw Error("no updated feature found");t.setGeometry(e),this._setState("active:initialized")}stop(){this._destroy(),v(this,I)?.resolve(void 0)}_destroy(){this._editingSource.clear(),this._olMap.removeLayer(this._editingLayer),this._olMap.removeInteraction(this._modifyInteraction),this._tooltip.destroy(),this._interactionListener.forEach(e=>{D(e)}),this._mapListener.forEach(e=>{e.destroy()}),this._setState("destroyed")}triggerSave(){const e=this._editingSource.getFeatures()[0];if(!e)throw Error("no updated feature found");this._save(e)}whenComplete(){return this._state.value==="destroyed"?this._error?Promise.reject(this._error):this._featureId?Promise.resolve({featureId:this._featureId}):Promise.resolve(void 0):(v(this,I)??b(this,I,Pt())).promise}}I=new WeakMap;class Qi{_serviceOptions;_workflows;constructor(e){this._serviceOptions=e,this._workflows=new Map}createFeature(e,t){if(!t||!e||!e.id)throw new Error("Map, mapId or url is undefined.");const n=e.id;let s=this._workflows.get(n);if(s)throw new Error("EditingWorkflow could not be started. EditingWorkflow already in progress for this map.");return s=new mn({map:e,ogcApiFeatureLayerUrl:t,polygonStyle:this._serviceOptions.properties.polygonStyle,vertexStyle:this._serviceOptions.properties.vertexStyle,httpService:this._serviceOptions.references.httpService,intl:this._serviceOptions.intl}),this._workflows.set(n,s),this._connectToWorkflowDestroyEvent(s,n),s}updateFeature(e,t,n){if(!t||!e||!e.id)throw new Error("Map, mapId or url is undefined.");const s=e.id;let r=this._workflows.get(s);if(r)throw new Error("EditingWorkflow could not be started. EditingWorkflow already in progress for this map.");return r=new pn({map:e,ogcApiFeatureLayerUrl:t,feature:n,polygonStyle:this._serviceOptions.properties.polygonStyle,vertexStyle:this._serviceOptions.properties.vertexStyle,httpService:this._serviceOptions.references.httpService,intl:this._serviceOptions.intl}),this._workflows.set(s,r),this._connectToWorkflowDestroyEvent(r,s),r}stop(e){const t=this._workflows.get(e);t&&t.stop()}reset(e){const t=this._workflows.get(e);if(t)t.reset();else throw new Error("No workflow found for mapId: "+e)}_connectToWorkflowDestroyEvent(e,t){const n=Es(()=>[e.getState()],([s])=>{s==="destroyed"&&(this._workflows.get(t)===e&&this._workflows.delete(t),n.destroy())})}}var z,G,ae,le,ce,He;class yn{constructor(e,t,n){x(this,ce);_(this,"label");x(this,z,$e({kind:"available"}));x(this,G);x(this,ae);x(this,le);this.label=t,b(this,G,e),b(this,le,n),se(this,ce,He).call(this),b(this,ae,v(this,G).on("change:visible",()=>{se(this,ce,He).call(this)}))}destroy(){D(v(this,ae))}get status(){return v(this,z).value}async select(e,t){if(e.type!=="extent")throw new Error(`Unsupported selection kind: ${e.type}`);if(v(this,z).value.kind!=="available"||v(this,G).getSource()===null)return[];const n=[];v(this,G).getSource().forEachFeatureIntersectingExtent(e.extent,o=>{if(!o.getGeometry())return;const a={...o.getProperties()};delete a.geometries;const l={id:o.getId()?.toString()||Cs(),geometry:o.getGeometry(),properties:a};n.push(l)});const s=n.filter(o=>o!=null);return s.length>t.maxResults?s.slice(0,t.maxResults):s}}z=new WeakMap,G=new WeakMap,ae=new WeakMap,le=new WeakMap,ce=new WeakSet,He=function(){const t=v(this,G).getVisible()?{kind:"available"}:{kind:"unavailable",reason:v(this,le)};t.kind!==v(this,z).value.kind&&(v(this,z).value=t)};var de;class er{constructor({intl:e}){x(this,de);b(this,de,e)}createSelectionSource(e){return new yn(e.vectorLayer,e.label,v(this,de).formatMessage({id:"layerNotVisibleReason"}))}}de=new WeakMap;const _n="@open-pioneer/notifier",vn=Ue.bind(void 0,_n),Sn=Ot({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),Ht=Ot({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"}),xn=!1;function tr(i){const{position:e="top-right"}=i,t=nn(),n=vn("notifier.NotificationService"),[s,r]=p.useState(!xn),o=V(l=>{const c=l.level==="error"?u.jsx(Ht,{h:"100%",w:"100%"}):void 0;t({position:e,title:l.title,description:l.message||null,status:l.level,isClosable:!0,duration:l.displayDuration??null,icon:c})}),a=V(()=>{t.closeAll()});return p.useEffect(()=>{const l=n.registerHandler({showNotification:o,closeAll:a});return()=>l.destroy()},[s,n,o,a]),u.jsx(u.Fragment,{})}const wn="@open-pioneer/coordinate-viewer",bn=K.bind(void 0,wn),Mn=4,En="decimal",sr=i=>{const{precision:e,displayProjectionCode:t,format:n}=i,{containerProps:s}=H("coordinate-viewer",i),{map:r}=$(i),o=r?.olMap,a=B(()=>r?.projection.getCode()??"",[r]);let{coordinates:l}=Pn(o);l=l&&t?Ln(l,a,t):l;const c=Cn(l,e,n),d=t||a,h=c?c+" "+d:"";return u.jsx(P,{...s,children:u.jsx(ee,{className:"coordinate-viewer-text",children:h})})};function Cn(i,e,t){const n=bn();return i?Fn(i,e,n,t):""}function Pn(i){const[e,t]=p.useState();return p.useEffect(()=>{if(!i)return;const n=i.on("pointermove",s=>{t(s.coordinate)});return()=>D(n)},[i]),{coordinates:e}}function Fn(i,e,t,n){if(i[0]==null||i[1]==null)return"";const s=e??Mn,r=n??En,[o,a]=i;let l;if(r==="degree"&&isFinite(o)&&isFinite(a)){const[c,d,h]=gt(o,t,s),[f,g,m]=gt(a,t,s),y=`${Math.abs(c)}°${d}'${h}"${0<=c?"(E)":"(W)"}`,w=`${Math.abs(f)}°${g}'${m}"${0<=f?"(N)":"(S)"}`;l=y+" "+w}else{const c=t.formatNumber(o,{maximumFractionDigits:s,minimumFractionDigits:s}),d=t.formatNumber(a,{maximumFractionDigits:s,minimumFractionDigits:s});l=c+" "+d}return l}function gt(i,e,t){const n=Math.floor(i),s=i-n,r=Math.floor(60*s),a=60*(60*s-r),l=e.formatNumber(a,{maximumFractionDigits:t,minimumFractionDigits:t});return[n,r,l]}function Ln(i,e,t){return Ps(i,e,t)}const nr=i=>{const{displayMode:e="line"}=i,{containerProps:t}=H("scale-bar",i),{map:n}=$(i),s=p.useRef(null);return p.useEffect(()=>{if(s.current&&n){const r=n.olMap,o=new Ws({units:"metric",target:s.current,bar:e==="bar"});return r.addControl(o),()=>{r.removeControl(o)}}},[e,n]),u.jsx(P,{...t,ref:s})},In="@open-pioneer/scale-viewer",Tn=K.bind(void 0,In),ir=i=>{const{containerProps:e}=H("scale-viewer",i),{map:t}=$(i),n=Tn(),s=B(()=>t?.scale??1,[t]),r=s?n.formatNumber(s):void 0;return u.jsx(P,{...e,children:r&&u.jsxs(ee,{children:["1:",r]})})},An="@open-pioneer/legend",$t=K.bind(void 0,An),rr=i=>{const{showBaseLayers:e=!1}=i,{containerProps:t}=H("legend",i),{map:n}=$(i);return u.jsx(P,{...t,children:n?u.jsx(Nn,{map:n,showBaseLayers:e}):null})};function Nn(i){const{map:e,showBaseLayers:t}=i,s=kn(e).map(r=>u.jsx(Bt,{layer:r,showBaseLayers:t},r.id));return u.jsx(Ys,{as:"ul",className:"legend-layer-list",listStyleType:"none",spacing:2,children:s})}function Bt(i){const{layer:e,showBaseLayers:t}=i,n=B(()=>e.visible,[e]),s=jn(e);if(!n||!t&&Bs(e)&&Ut(e))return;const r=[];return s?.length&&s.forEach(o=>{r.push(u.jsx(Bt,{layer:o,showBaseLayers:t},o.id))}),u.jsxs(u.Fragment,{children:[u.jsx(On,{layer:e,showBaseLayers:t}),r]})}function On(i){const e=$t(),{layer:t,showBaseLayers:n}=i,s=Ut(t),r=Dn(t),o=B(()=>t.legend,[t]);let a;return r?.Component?a=u.jsx(r.Component,{layer:t}):r?.imageUrl?a=u.jsx(ft,{layer:t,imageUrl:r.imageUrl}):o&&(a=u.jsx(ft,{layer:t,imageUrl:o})),a?u.jsxs(P,{as:"li",className:Fe("legend-item",`layer-${Rn(t.id)}`),children:[n&&s?u.jsx(ee,{as:"b",children:e.formatMessage({id:"basemapLabel"})}):null,a]}):void 0}function ft(i){const e=$t(),{layer:t,imageUrl:n}=i;return u.jsxs(P,{children:[u.jsx(ee,{children:t.title}),u.jsx(zs,{maxW:"none",maxH:"none",src:n,alt:e.formatMessage({id:"altLabel"},{layerName:t.title}),className:"legend-item__image",fallbackStrategy:"onError",fallback:u.jsx(P,{children:u.jsxs(ee,{children:[u.jsx(Ht,{me:2}),e.formatMessage({id:"fallbackLabel"})]})})})]})}function kn(i){return B(()=>{const e=i.layers.getAllLayers({sortByDisplayOrder:!0})??[];return e.reverse(),e},[i])}function jn(i){return B(()=>{const e=i.sublayers?.getSublayers({sortByDisplayOrder:!0});if(e)return e.reverse(),e},[i])}function Dn(i){return B(()=>i.attributes.legend,[i])}function Ut(i){return!("parentLayer"in i)&&i.isBaseLayer}function Rn(i){return i.toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}const Gn="@open-pioneer/measurement",Vn=K.bind(void 0,Gn);class Hn{olMap;messages;activeFeatureStyle;layer;source;draw=void 0;activeMeasurement;predefinedMeasurements=new Map;finishedMeasurements=new Set;helpTooltip;resources=[];measurementChangedHandler;constructor(e,t){this.olMap=e,this.messages=t;const n=this.source=new Pe;this.layer=new te({source:n,zIndex:Be,properties:{name:"measurement-layer"}}),e.addLayer(this.layer);const s=e.on("pointermove",this.handlePointerMove.bind(this));this.resources.push({destroy(){D(s)}});const r=()=>{this.helpTooltip.element.classList.add("hidden")};e.getViewport().addEventListener("mouseout",r),this.resources.push({destroy(){e.getViewport().removeEventListener("mouseout",r)}}),this.helpTooltip=Bn(this.olMap)}destroy(){this.stopMeasurement();for(const e of this.resources)e.destroy();this.resources=[],this.activeMeasurement=at(this.activeMeasurement);for(const e of this.finishedMeasurements)e.destroy();this.finishedMeasurements.clear(),this.helpTooltip.destroy(),this.olMap.removeLayer(this.layer),this.layer.dispose(),this.source.dispose(),this.measurementChangedHandler=void 0,this.predefinedMeasurements.clear()}getVectorLayer(){return this.layer}setFinishedFeatureStyle(e){this.layer.setStyle(e)}setMeasurementSourceChangedHandler(e){this.measurementChangedHandler=e}setPredefinedMeasurements(e){this.updatePredefinedMeasurements(e)}setActiveFeatureStyle(e){const t=Fs(e);this.activeFeatureStyle=(n,...s)=>{const r=n?.getGeometry()?.getType();if(r==="Polygon"||r==="LineString"||r==="Point")return t(n,...s)},this.draw?.getOverlay().setStyle(this.activeFeatureStyle)}clearMeasurements(){const e=this.source.getFeatures();this.source.clear(),e.forEach(t=>{this.raiseMeasurementsChangeEvent("remove-measurement",t)}),this.predefinedMeasurements.clear();for(const t of this.finishedMeasurements)t.destroy();this.finishedMeasurements.clear()}startMeasurement(e){if(this.draw)throw new Error("Internal error: another measurement interaction is still active.");const t=e==="area"?"Polygon":"LineString",n=this.draw=new At({source:this.source,type:t,style:this.activeFeatureStyle});this.olMap.addInteraction(n);let s,r;n.on("drawstart",o=>{const a=o.feature;a&&(s=this.activeMeasurement=new mt("active",a,this),r=a.getGeometry()?.on("change",()=>{s?.updateTooltipContent(),s?.updateTooltipPosition()}))}),n.on("drawend",()=>{if(s&&s===this.activeMeasurement){const o=s;o.updateState("finished"),this.finishedMeasurements.add(o),this.raiseMeasurementsChangeEvent("add-measurement",o.feature),this.activeMeasurement=s=void 0}s=void 0,r&&D(r)}),n.on("drawabort",()=>{s&&(s.destroy(),s===this.activeMeasurement&&(this.activeMeasurement=void 0),s=void 0),r&&D(r)})}stopMeasurement(){this.draw&&(this.olMap.removeInteraction(this.draw),this.draw.abortDrawing(),this.draw.dispose(),this.draw=void 0),this.activeMeasurement=at(this.activeMeasurement)}handlePointerMove(e){if(e.dragging)return;const t=this.helpTooltip,n=Wn(this.messages,this.activeMeasurement);t.setText(n),t.overlay.setPosition(e.coordinate),t.element.classList.remove("hidden")}updatePredefinedMeasurements(e){const t=e.filter(s=>!this.predefinedMeasurements.has(s)),n=[];for(const s of this.predefinedMeasurements.keys())e.includes(s)||n.push(s);t.forEach(s=>{const r=new Q(s);this.source.addFeature(r);const o=new mt("finished",r,this);this.finishedMeasurements.add(o),this.predefinedMeasurements.set(s,o),this.raiseMeasurementsChangeEvent("add-measurement",r)}),n.forEach(s=>{const r=this.predefinedMeasurements.get(s);r&&(this.source.removeFeature(r.feature),this.finishedMeasurements.delete(r),r.destroy(),this.raiseMeasurementsChangeEvent("remove-measurement",r.feature)),this.predefinedMeasurements.delete(s)})}raiseMeasurementsChangeEvent(e,t){const n=t.getGeometry();this.measurementChangedHandler&&n&&this.measurementChangedHandler({kind:e,geometry:(n instanceof Se,n)})}}class mt{controller;feature;_state;tooltip;constructor(e,t,n){this.controller=n,this._state=e,this.feature=t,this.tooltip=Un(this.olMap),this.updateTooltipContent(),this.updateTooltipPosition(),this.tooltip.setActive(e==="active")}destroy(){this.tooltip.destroy()}get state(){return this._state}updateState(e){this._state!==e&&(this._state=e,this.tooltip.setActive(e==="active"))}updateTooltipContent(){const e=this.feature.getGeometry();if(!e)return;const t=this.olMap.getView().getProjection();let n;e instanceof Se?n=zn(e,t,this.messages):e instanceof Ge&&(n=Kn(e,t,this.messages)),n&&this.tooltip.setHtml(n)}updateTooltipPosition(){const e=this.feature.getGeometry();if(!e)return;let t;if(e instanceof Se)t=e.getInteriorPoint().getCoordinates()||null;else if(e instanceof Ge)t=e.getLastCoordinate()||null;else return;this.tooltip.overlay.setPosition(t)}get olMap(){return this.controller.olMap}get messages(){return this.controller.messages}}const pt=[0,-15],$n=[0,-7];function Bn(i){const e=document.createElement("div");e.className="measurement-tooltip printing-hide hidden",e.role="tooltip";const t=document.createElement("span");e.appendChild(t);const n=new Le({element:e,offset:[15,0],positioning:"center-left"});return i.addOverlay(n),{overlay:n,element:e,destroy(){i.removeOverlay(n)},setText(s){t.textContent=s},setHtml(s){t.innerHTML=s}}}function Un(i){const e=document.createElement("div");e.role="tooltip",e.className="measurement-tooltip measurement-active-tooltip printing-hide";const t=document.createElement("span");e.appendChild(t);const n=new Le({element:e,offset:pt,positioning:"bottom-center",stopEvent:!1,insertFirst:!1});return i.addOverlay(n),{overlay:n,element:e,destroy(){i.removeOverlay(n)},setActive(s){s?(e.className="measurement-tooltip measurement-active-tooltip printing-hide",n.setOffset(pt)):(e.className="measurement-tooltip measurement-finished-tooltip",n.setOffset($n))},setText(s){t.textContent=s},setHtml(s){t.innerHTML=s}}}function Wn(i,e){if(e){const t=e.feature.getGeometry();if(t instanceof Se||t instanceof Ge)return i.getContinueMessage()}return i.getHelpMessage()}function zn(i,e,t){const n=Ls(i,{projection:e});let s;return n>=1e6?s=`${t.formatNumber(n/1e6)} km2`:s=`${t.formatNumber(n)} m2`,s}function Kn(i,e,t){const n=Is(i,{projection:e});let s;return n>=1e3?s=`${t.formatNumber(n/1e3)} km`:s=`${t.formatNumber(n)} m`,s}const or=i=>{const e=Vn(),{containerProps:t}=H("measurement",i),[n,s]=p.useState("distance"),r=d=>e.formatMessage({id:d}),o=$(i),a=qn(o.map,i,e);p.useEffect(()=>{if(a)return a.startMeasurement(n),()=>{a.stopMeasurement()}},[a,n]);function l(d){if(d==="distance"||d==="area")s(d);else throw new Error(`Unexpected measurement type: '${d}'.`)}function c(){a?.clearMeasurements()}return u.jsxs(P,{...t,children:[u.jsx(ee,{mb:3,children:e.formatMessage({id:"measurementInfoText"})}),u.jsx(we,{mb:4,alignItems:"center",children:u.jsxs(Ve,{mb:2,children:[u.jsx(be,{mb:1,children:r("measurementLabel")}),u.jsxs(Ke,{value:n,onChange:d=>l(d.target.value),className:"measurement-select",children:[u.jsx("option",{value:"distance",children:r("distance")}),u.jsx("option",{value:"area",children:r("area")})]})]})}),u.jsx(Ft,{padding:2,className:"measurement-delete-button",onClick:c,width:"100%",children:r("deleteMeasurementLabel")})]})};function qn(i,e,t){const{activeFeatureStyle:n,finishedFeatureStyle:s,onMeasurementsChange:r,predefinedMeasurements:o}=e,[a,l]=p.useState(void 0);return p.useEffect(()=>{if(!i)return;const c=new Hn(i.olMap,{getContinueMessage(){return t.formatMessage({id:"tooltips.continue"})},getHelpMessage(){return t.formatMessage({id:"tooltips.help"})},formatNumber(d){return t.formatNumber(d,{maximumFractionDigits:2})}});return l(c),()=>{c.destroy(),l(void 0)}},[i,t]),p.useEffect(()=>{a?.setActiveFeatureStyle(n??Yn())},[a,n]),p.useEffect(()=>{a?.setFinishedFeatureStyle(s??Jn())},[a,s]),p.useEffect(()=>{a?.setMeasurementSourceChangedHandler(r)},[a,r]),p.useEffect(()=>{a?.setPredefinedMeasurements(o??[])},[a,o]),a}function Yn(){return[new xe({stroke:new re({color:"#fff",lineDash:[10,10],width:5})}),new xe({fill:new Re({color:"rgba(0,0,0,0.15)"}),stroke:new re({color:"rgba(0, 0, 0, 0.7)",lineDash:[10,10],width:3}),image:new Ts({radius:5,stroke:new re({color:"rgba(0, 0, 0, 0.7)",width:2}),fill:new Re({color:"rgba(255, 255, 255, 0.2)"})})})]}function Jn(){return[new xe({stroke:new re({color:"#fff",width:5})}),new xe({stroke:new re({color:"#0b96fc",width:3}),fill:new Re({color:"rgba(11,150,252,0.15)"})})]}const Xn="@open-pioneer/search",Ie=K.bind(void 0,Xn);function Zn(i){const e=i.selectProps.inputValue.length>0,t={...i,className:Fe(i.className,{"search-invisible":!e})};return u.jsx(N.Menu,{...t,children:i.children})}function Qn(i){const e=i.data.label,t={...i.innerProps,"aria-label":e,role:"group"};return u.jsx(N.Group,{...i,innerProps:t})}function ei(i){const t=Ie().formatMessage({id:"noOptionsText"});return u.jsx(N.NoOptionsMessage,{...i,children:u.jsx(R.span,{className:"search-no-match",children:t})})}function ti(i){const t=Ie().formatMessage({id:"loadingText"});return u.jsx(N.LoadingMessage,{...i,children:u.jsx(R.span,{className:"search-loading-text",children:t})})}function si({children:i,...e}){const t={...e,className:Fe(e.className,"search-value-container")};return u.jsxs(N.ValueContainer,{...t,children:[!!i&&u.jsx(Sn,{style:{position:"absolute",left:8}}),i]})}function ni(i){const e={...i,isHidden:!1};return u.jsx(N.Input,{...e})}function ii(i){return null}function ri(i){return u.jsxs(N.IndicatorsContainer,{...i,children:[i.children,!i.selectProps.isLoading&&i.selectProps.inputValue&&u.jsx(oi,{selectProps:i.selectProps,clearValue:i.clearValue})]})}function oi(i){const t=Ie().formatMessage({id:"ariaLabel.clearButton"}),n=s=>{s.preventDefault(),s.stopPropagation(),i.clearValue()};return u.jsx(Rs,{role:"button",size:"md",mr:1,"aria-label":t,onClick:n,onTouchEnd:n,onMouseDown:s=>s.preventDefault()})}function ai(i){return null}function li(i){const e=i.selectProps.inputValue,t=i.data.label,n={...i,className:Fe(i.className,"search-option")};return u.jsx(N.Option,{...n,children:u.jsx(R.div,{className:"search-option-label",children:e.trim().length>0?ci(t,e):t})})}function ci(i,e){const t=i.toLowerCase().indexOf(e.toLowerCase());return t>=0?u.jsxs(u.Fragment,{children:[i.substring(0,t),u.jsx(R.span,{className:"search-highlighted-match",children:i.substring(t,t+e.length)},"highlighted"),i.substring(t+e.length)]}):i}const yt=me("search:SearchController"),_t=200,vt=5;var ue,J,X,Z,T,Ee,Wt;class di{constructor(e,t){x(this,Ee);x(this,ue);x(this,J,[]);x(this,X,vt);x(this,Z,_t);x(this,T);b(this,ue,e),b(this,J,t)}destroy(){v(this,T)?.abort(),b(this,T,void 0)}async search(e){if(v(this,T)?.abort(),b(this,T,void 0),!e)return[];const t=b(this,T,new AbortController);try{return await ui(t.signal,v(this,Z)),t.signal.aborted&&(yt.debug(`search canceled with ${e}`),Gs()),(await Promise.all(v(this,J).map(s=>se(this,Ee,Wt).call(this,s,e,t.signal)))).filter(s=>s!=null)}finally{v(this,T)===t&&b(this,T,void 0)}}get searchTypingDelay(){return v(this,Z)}set searchTypingDelay(e){b(this,Z,e??_t)}get maxResultsPerSource(){return v(this,X)}set maxResultsPerSource(e){b(this,X,e??vt)}get sources(){return v(this,J)}}ue=new WeakMap,J=new WeakMap,X=new WeakMap,Z=new WeakMap,T=new WeakMap,Ee=new WeakSet,Wt=async function(e,t,n){const s=e.label,r=v(this,ue).olMap.getView().getProjection();try{const o=v(this,X);let a=await e.search(t,{maxResults:o,signal:n,mapProjection:r});return a.length>o&&(a=a.slice(0,o)),{label:s,source:e,results:a}}catch(o){Lt(o)||yt.error(`search for source ${s} failed`,o);return}};async function ui(i,e){i.aborted||await new Promise(t=>{const n=()=>{i.removeEventListener("abort",n),clearTimeout(s),t()};i.addEventListener("abort",n);const s=setTimeout(n,e)})}const Me=me("search:Search"),ar=i=>{const{sources:e,searchTypingDelay:t,maxResultsPerGroup:n,onSelect:s,onClear:r}=i,{containerProps:o}=H("search",i),{map:a}=$(i),l=Ie(),c=mi(e,t,n,a),{input:d,search:h,selectedOption:f,onInputChanged:g,onResultConfirmed:m}=pi(c),y=fi(),w=hi(l),F=gi(),O=V((E,U)=>{U.action==="input-change"&&g(E)}),S=V((E,U)=>{switch(U.action){case"select-option":E&&(m(E),s?.({source:E.source,result:E.result}));break;case"clear":g(""),L.current?.blur(),L.current?.focus(),r?.();break;default:Me.debug(`Unhandled action type '${U.action}'.`);break}}),L=p.useRef(null);return u.jsx(P,{...o,children:u.jsx(Nt,{className:"search-component",classNamePrefix:"react-select",ref:L,inputValue:d,onInputChange:O,"aria-label":l.formatMessage({id:"ariaLabel.search"}),ariaLiveMessages:w,tagColorScheme:"trails",selectedOptionStyle:"color",selectedOptionColorScheme:"trails",chakraStyles:y,isClearable:!0,placeholder:i.placeholder??l.formatMessage({id:"searchPlaceholder"}),closeMenuOnSelect:!0,isLoading:h.kind==="loading",options:h.kind==="ready"?h.results:void 0,filterOption:()=>!0,tabSelectsValue:!1,components:F,onChange:S,value:f,menuPosition:"fixed"})})};function hi(i){return p.useMemo(()=>({onFocus:()=>"",onChange:()=>"",guidance:()=>`${i.formatMessage({id:"ariaLabel.instructions"})}`,onFilter:()=>""}),[i])}function gi(){return p.useMemo(()=>({Menu:Zn,Input:ni,SingleValue:ii,Option:li,NoOptionsMessage:ei,LoadingMessage:ti,ValueContainer:si,IndicatorsContainer:ri,ClearIndicator:ai,Group:Qn}),[])}function fi(){const[i,e]=It("colors",["trails.100","trails.50"],["#d5e5ec","#eaf2f5"]);return p.useMemo(()=>({groupHeading:n=>({...n,backgroundColor:i,padding:"8px 12px",fontSize:"inherit",fontWeight:"inherit"}),option:n=>({...n,backgroundColor:"inherit",_focus:{backgroundColor:e}}),dropdownIndicator:n=>({...n,display:"none"})}),[i,e])}function mi(i,e,t,n){const[s,r]=p.useState(void 0);return p.useEffect(()=>{if(!n)return;const o=new di(n,i);return r(o),()=>{o.destroy(),r(void 0)}},[n,i]),p.useEffect(()=>{s&&(s.searchTypingDelay=e)},[s,e]),p.useEffect(()=>{s&&(s.maxResultsPerSource=t)},[s,t]),s}function pi(i){const[e,t]=p.useReducer((a,l)=>{switch(l.kind){case"input":return{...a,query:l.query,selectedOption:null};case"select-option":return{...a,selectedOption:l.option,query:l.option.label};case"load-results":return{...a,search:{kind:"loading"}};case"accept-results":return{...a,search:{kind:"ready",results:l.results}}}},void 0,()=>({query:"",selectedOption:null,search:{kind:"ready",results:[]}})),n=p.useRef(),s=V(a=>{if(!i){n.current=void 0,t({kind:"accept-results",results:[]});return}Me.isDebug()&&Me.debug(`Starting new search for query ${JSON.stringify(a)}.`),t({kind:"load-results"});const l=n.current=yi(i,a).then(c=>{n.current===l&&t({kind:"accept-results",results:c})})}),r=p.useCallback(a=>{t({kind:"select-option",option:a})},[]),o=p.useCallback(a=>{t({kind:"input",query:a}),s(a)},[s]);return{input:e.query,search:e.search,selectedOption:e.selectedOption,onResultConfirmed:r,onInputChanged:o}}async function yi(i,e){let t;try{t=await i.search(e)}catch(n){Lt(n)||Me.error("Search failed",n),t=[]}return _i(t)}function _i(i){return i.map((t,n)=>({label:t.label,options:t.results.map(s=>({value:`${n}-${s.id}`,label:s.label,source:t.source,result:s}))}))}const zt="@open-pioneer/selection",vi=Ue.bind(void 0,zt),qe=K.bind(void 0,zt),ie="selection-active",_e="selection-inactive";class Si{tooltip;interactionResources=[];olMap;isActive=!0;tooltipMessage;tooltipDisabledMessage;constructor(e,t,n,s){const r=this.initViewport(e);this.interactionResources.push(this.createDragBox(e,s,r,this.interactionResources)),this.interactionResources.push(this.createDrag(e,r,this.interactionResources)),this.tooltip=this.createHelpTooltip(e,t),this.olMap=e,this.tooltipMessage=t,this.tooltipDisabledMessage=n}initViewport(e){const t=e.getViewport();return t.classList.add(ie),t.oncontextmenu=n=>(n.preventDefault(),!1),t}destroy(){this.tooltip.destroy(),this.interactionResources.forEach(e=>{e.destroy()})}setActive(e){if(this.isActive===e)return;const t=this.olMap.getViewport();e?(this.interactionResources.forEach(n=>this.olMap.addInteraction(n.interaction)),this.tooltip.setText(this.tooltipMessage),t.classList.remove(_e),t.classList.add(ie),this.isActive=!0):(this.interactionResources.forEach(n=>this.olMap.removeInteraction(n.interaction)),this.tooltip.setText(this.tooltipDisabledMessage),t.classList.remove(ie),t.classList.add(_e),this.isActive=!1)}createDragBox(e,t,n,s){const r=new nt({className:"selection-drag-box",condition:As});return e.addInteraction(r),r.on("boxend",function(){t(r.getGeometry())}),{interaction:r,destroy(){e.removeInteraction(r),s.splice(s.indexOf(this)),r.dispose(),n.classList.remove(ie),n.classList.remove(_e),n.oncontextmenu=null}}}createDrag(e,t,n){const s=function(a){return a.originalEvent.button==2},r=new it({condition:s});return e.addInteraction(r),{interaction:r,destroy(){e.removeInteraction(r),n.splice(n.indexOf(this)),r.dispose(),t.classList.remove(ie),t.classList.remove(_e),t.oncontextmenu=null}}}createHelpTooltip(e,t){const n=document.createElement("div");n.className="selection-tooltip printing-hide",n.role="tooltip";const s=document.createElement("span");s.textContent=t,n.appendChild(s);const r=new Le({element:n,offset:[15,0],positioning:"center-left"}),o=e.on("pointermove",a=>{r.setPosition(a.coordinate)});return e.addOverlay(r),{overlay:r,element:n,destroy(){e.removeOverlay(r),r.dispose(),D(o)},setText(a){s.textContent=a}}}getDragboxInteraction(){return this.interactionResources.find(e=>e.interaction instanceof nt)}getDragPanInteraction(){return this.interactionResources.find(e=>e.interaction instanceof it)}}const ke=me("selection:SelectionController"),xi=1e4;var he,ge,fe,Ce,Kt;class wi{constructor(e){x(this,Ce);x(this,he);x(this,ge);x(this,fe);const{mapModel:t,onError:n,maxResults:s=xi}=e;b(this,he,t),b(this,ge,s),b(this,fe,n)}destroy(){}async select(e,t){if(t)return await se(this,Ce,Kt).call(this,e,t)}}he=new WeakMap,ge=new WeakMap,fe=new WeakMap,Ce=new WeakSet,Kt=async function(e,t){const n=v(this,he).olMap.getView().getProjection();try{ke.debug(`Starting selection on source '${e.label}'`);const s=v(this,ge);let r=await e.select({type:"extent",extent:t},{maxResults:s,mapProjection:n,signal:new AbortController().signal});return r.length>s&&(r=r.slice(0,s)),ke.debug(`Found ${r.length} results on source '${e.label}'`),{source:e,results:r}}catch(s){ke.error(`selection from source ${e.label} failed`,s),v(this,fe).call(this);return}};const bi={classNamePrefix:"react-select",menuPosition:"fixed",isSearchable:!1,isClearable:!1},lr=i=>{const e=qe(),{sources:t,onSelectionComplete:n,onSelectionSourceChanged:s}=i,{containerProps:r}=H("selection",i),o=e.formatMessage({id:"sourceNotAvailable"}),[a,l]=Ci(t,s),c=Jt(a,o),d=$(i),{onExtentSelected:h}=Pi(d.map,t,a,n),f=Li(),[g,m]=p.useState(!1);Fi(d.map,e,h,c.kind==="available",!!a);const y=p.useMemo(()=>t.map(S=>({label:S.label,value:S})),[t]),w=p.useMemo(()=>y.find(L=>L.value===a)||null,[y,a]),F=V(S=>{l(S?.value)}),O=V(S=>{!g&&S.key==="Enter"&&m(!0)});return u.jsx(Vs,{...r,spacing:2,children:u.jsxs(we,{children:[u.jsx(be,{children:e.formatMessage({id:"selectSource"})}),u.jsx(Nt,{className:"selection-source react-select",...bi,options:y,placeholder:e.formatMessage({id:"selectionPlaceholder"}),value:w,onChange:F,components:{Option:Mi,SingleValue:Ei},isOptionDisabled:()=>!1,getOptionLabel:S=>{const L=S.label,E=Yt(S.value,o);return E.kind=="available"?L:L+" "+E.reason},ariaLiveMessages:{guidance:()=>"",onChange:S=>S.action=="select-option"||S.action=="initial-input-focus"?S.label+" "+e.formatMessage({id:"selected"}):"",onFilter:()=>"",onFocus:()=>""},chakraStyles:f,onKeyDown:O,menuIsOpen:g,onMenuOpen:()=>m(!0),onMenuClose:()=>m(!1)})]})})};function Mi(i){const{value:e}=i.data,{isAvailable:t,content:n}=qt(e,!1);return u.jsx(N.Option,{...i,isDisabled:!t,className:"selection-source-option",children:n})}function Ei(i){const{value:e}=i.data,{isAvailable:t,content:n}=qt(e,!0),s=t?"selection-source-value":"selection-source-value selection-source-value--disabled";return u.jsx(N.SingleValue,{...i,isDisabled:!t,className:s,children:n})}function Ci(i,e){const[t,n]=p.useState(()=>i[0]);p.useEffect(()=>{t&&!i.includes(t)&&n(void 0)},[i,t]);const s=p.useRef(void 0);return p.useEffect(()=>{t!==s.current&&(s.current=t,e?.({source:t}))},[t,e]),[t,n]}function qt(i,e){const t=qe(),n=i?.label,s=t.formatMessage({id:"sourceNotAvailable"}),r=Jt(i,s);return{isAvailable:r.kind==="available",content:u.jsxs(rt,{direction:"row",alignItems:"center",grow:1,children:[!e&&u.jsx(rt,{grow:1,children:n}),r.kind==="unavailable"&&u.jsx(P,{ml:2,children:u.jsx(Hs,{label:r.reason,placement:"right",openDelay:500,children:u.jsx(R.span,{children:u.jsx($s,{as:Js,color:"red",className:"warning-icon","aria-label":r.reason})})})}),e&&n]})}}function Pi(i,e,t,n){const s=vi("notifier.NotificationService"),r=qe(),[o,a]=p.useState(void 0);p.useEffect(()=>{if(!i)return;const c=new wi({mapModel:i,onError(){s.notify({level:"error",message:r.formatMessage({id:"selectionFailed"})})}});return a(c),()=>{c.destroy()}},[i,s,e,r]);const l=V(async c=>{if(!o||!t)return;const d=await o.select(t,c.getExtent());d&&n?.(d)});return{controller:o,onExtentSelected:l}}function Yt(i,e){const t=i.status??"available",n=typeof t=="string"?{kind:t}:t;return n.kind==="available"?n:{kind:"unavailable",reason:n.reason??e}}function Jt(i,e){return B(()=>i?Yt(i,e):{kind:"unavailable",reason:e},[i,e])}function Fi(i,e,t,n,s){p.useEffect(()=>{if(!i)return;const r=s?e.formatMessage({id:"disabledTooltip"}):e.formatMessage({id:"noSourceTooltip"}),o=new Si(i.olMap,e.formatMessage({id:"tooltip"}),r,t);return o.setActive(n),()=>{o?.destroy()}},[i,e,t,n,s])}function Li(){const[i,e]=It("colors",["background_body","border"],["#ffffff","#ffffff"]);return p.useMemo(()=>({control:n=>({...n,cursor:"pointer"}),indicatorSeparator:n=>({...n,borderColor:e}),dropdownIndicator:n=>({...n,backgroundColor:i})}),[i,e])}const Xt="@open-pioneer/printing",Zt=Ue.bind(void 0,Xt),Ii=K.bind(void 0,Xt),Ti="map";class Ai{olMap;i18n;printingService;viewPadding;printMap=void 0;overlay=void 0;constructor(e,t,n){this.olMap=e,this.printingService=t,this.i18n=n}destroy(){this.reset()}setViewPadding(e){this.viewPadding=e}async handleMapExport(e){if(this.olMap)try{this.begin(),this.printMap=await this.printingService.printMap(this.olMap,{blockUserInteraction:!1,viewPadding:this.viewPadding});const t=this.printMap.getCanvas();if(t)e.fileFormat=="png"?await this.exportMapInPNG(t,e):await this.exportMapInPDF(t,e);else throw new Error("Canvas export failed")}finally{this.reset()}}begin(){const e=this.olMap.getTargetElement();e&&(this.overlay=Ks(e,this.i18n.overlayText))}reset(){this.overlay?.destroy(),this.overlay=void 0}getTitleAndFileName(e){const t=e.title||"",n=e.title||Ti;return{title:t,fileName:n}}async exportMapInPNG(e,t){const n=document.createElement("canvas");n.width=e.width,n.height=e.height+50,n.style.backgroundColor="#fff";const s=n.getContext("2d");if(!s)throw new Error("2d canvas rendering context not available");const{title:r,fileName:o}=this.getTitleAndFileName(t);s.fillStyle="#fff",s.fillRect(0,0,n.width,n.height),s.font="20px bold sans-serif",s.textAlign="center",s.fillStyle="#000";const a=n.width/2;s.fillText(r,a,20),s.drawImage(e,0,50);const l=document.createElement("a");l.setAttribute("download",o+".png");const c=qs(n);if(!c)throw new Error("Failed to get image data URL");l.href=c,l.click()}async exportMapInPDF(e,t){const{jsPDF:n}=await Xs(async()=>{const{jsPDF:F}=await import("./BGpV6sNzKbKC.js");return{jsPDF:F}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),s=new n({orientation:"landscape",unit:"mm",format:"a4"}),r=s.internal.pageSize.getWidth(),o=s.internal.pageSize.getHeight(),a=15,l=20,c=o-l;s.setFontSize(20);const{title:d,fileName:h}=this.getTitleAndFileName(t);s.text(d,r/2,a,{align:"center"});const f=e.width/e.height;let g=c,m=g*f;m>=r&&(m=r,g=m/f);const y=(r-m)/2,w=l+(c-g)/2;s.addImage(e,"",y,w,m,g),s.save(h+".pdf")}}const Ni=me("printing"),cr=i=>{const e=Ii(),{viewPadding:t="auto"}=i,{containerProps:n}=H("printing",i),[s,r]=p.useState("pdf"),[o,a]=p.useState(""),[l,c]=p.useState(!1),d=Zt("notifier.NotificationService"),{map:h}=$(i),f=Oi(h,e,t);function g(y){(y==="png"||y==="pdf")&&r(y)}function m(){l||!f||(c(!0),f.handleMapExport({title:o,fileFormat:s}).catch(y=>{const w=e.formatMessage({id:"printingFailed"});d.notify({level:"error",message:w}),Ni.error("Failed to print the map",y)}).finally(()=>{c(!1)}))}return u.jsx(P,{...n,children:u.jsxs(P,{as:"form",m:2,alignItems:"center",onSubmit:y=>{y.preventDefault(),m()},children:[u.jsxs(we,{as:Ve,mb:2,children:[u.jsx(be,{minWidth:"82",mb:1,children:e.formatMessage({id:"title"})}),u.jsx(ze,{placeholder:e.formatMessage({id:"input.placeholder"}),value:o,onChange:y=>{a(y.target.value)},autoFocus:!0})]}),u.jsxs(we,{as:Ve,mb:2,children:[u.jsx(be,{minWidth:"82",mb:1,children:e.formatMessage({id:"fileFormat"})}),u.jsxs(Ke,{value:s,onChange:y=>g(y.target.value),className:"printing-select",children:[u.jsx("option",{value:"png",children:"PNG"}),u.jsx("option",{value:"pdf",children:"PDF"})]})]}),u.jsx(Ft,{isLoading:l,loadingText:e.formatMessage({id:"printingMap"}),disabled:l,mt:2,p:2,className:"printing-export-button",type:"submit",width:"100%",children:e.formatMessage({id:"export"})})]})})};function Oi(i,e,t){const n=Zt("printing.PrintingService"),[s,r]=p.useState(void 0);return p.useEffect(()=>{if(!i)return;const o=new Ai(i.olMap,n,{overlayText:e.formatMessage({id:"printingMap"})});return r(o),()=>{o.destroy(),r(void 0)}},[i,e,n]),p.useEffect(()=>{s?.setViewPadding(t)},[s,t]),s}export{sr as C,Qi as E,ze as I,rr as L,or as M,tr as N,Le as O,cr as P,Rt as S,er as V,Zi as W,nr as a,ir as b,ar as c,lr as d,Ke as e}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./9_25jZL3RpAh.js","./CmsKOCeNyeyo.js","./B48t-8DI4YWS.js","./BeGW3nmX4tO2.js","./BjXju3dgjVrG.js","./39a3VBatk_eA.js","./BMuX_dt1qyjL.js","./Gw82v5PUNK8h.js","./N6gwA50uHdd6.js"])))=>i.map(i=>d[i]); +var Qt=Object.defineProperty;var Ye=i=>{throw TypeError(i)};var es=(i,e,t)=>e in i?Qt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>es(i,typeof e!="symbol"?e+"":e,t),Te=(i,e,t)=>e.has(i)||Ye("Cannot "+t);var v=(i,e,t)=>(Te(i,e,"read from private field"),t?t.call(i):e.get(i)),x=(i,e,t)=>e.has(i)?Ye("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),b=(i,e,t,n)=>(Te(i,e,"write to private field"),n?n.call(i,t):e.set(i,t),t),se=(i,e,t)=>(Te(i,e,"access private method"),t);import{aE as ts,b6 as ss,b7 as ns,b8 as is,aP as rs,aX as os,b9 as as,ba as ls,J as cs,bb as ds,bc as us,bd as hs,be as gs,bf as St,bg as fs,bh as ms,a as te,b as Pe,aL as ve,bi as Je,bj as q,a9 as Xe,G as k,bk as Ae,a_ as Q,an as Ze,bl as pe,bm as Qe,bn as A,p as C,bo as W,bp as je,bq as ps,br as ys,z as _s,bs as De,bt as vs,bu as Ss,bv as xt,ao as wt,bw as xs,bx as ws,by as et,bz as bs,bA as tt,bB as Ms,bC as st,j as D,r as $e,a$ as Be,bD as bt,bE as Es,b0 as Cs,f as Ue,u as K,aZ as H,i as $,bF as Ps,b3 as Fe,bG as Fs,am as Se,bH as Ls,bI as Is,c as xe,ax as re,F as Re,C as Ts,bJ as nt,bK as As,bL as it,k as rt}from"./BjXju3dgjVrG.js";import{h as We,u as Mt,o as Et,m as Ct,j as u,g as R,n as Ns,p as Os,r as p,t as ne,q as ot,s as ks,v as js,w as Ds,c as me,d as Pt,B as P,x as at,b as Ft,C as Rs,y as Gs,i as Lt,z as It,V as Vs,l as Hs,I as $s}from"./BeGW3nmX4tO2.js";import{G as Tt,i as Bs}from"./Dh5p1D7VwmQC.js";import{a as Us}from"./D1e64i0R5zCb.js";import{D as At,S as Ws,I as zs,c as Ks,a as qs}from"./DxMLgDGBfPwt.js";import{u as V}from"./39a3VBatk_eA.js";import{u as B,c as N,s as Nt}from"./B48t-8DI4YWS.js";import{T as ee,L as Ys}from"./DM7y0OoBz9e5.js";import{c as Ot}from"./Dc3xe-fbgKeJ.js";import{L as Ge}from"./D6bui9ILupw_.js";import{u as kt,F as we}from"./BMuX_dt1qyjL.js";import{F as be}from"./cMbQJw1ZoqBe.js";import{H as Ve}from"./D1wuBnUV5g92.js";import{F as Js}from"./N6gwA50uHdd6.js";import{_ as Xs}from"./CmsKOCeNyeyo.js";import{s as Zs}from"./BLXiixlbHf0g.js";const ze=We(function(e,t){const{htmlSize:n,...s}=e,r=Mt("Input",s),o=Et(s),a=kt(o),l=Ct("chakra-input",e.className);return u.jsx(R.input,{size:n,...a,__css:r.field,ref:t,className:l})});ze.displayName="Input";ze.id="Input";const jt=We(function(e,t){const{children:n,placeholder:s,className:r,...o}=e;return u.jsxs(R.select,{...o,ref:t,className:Ct("chakra-select",r),children:[s&&u.jsx("option",{value:"",children:s}),n]})});jt.displayName="SelectField";const Ke=We((i,e)=>{const t=Mt("Select",i),{rootProps:n,placeholder:s,icon:r,color:o,height:a,h:l,minH:c,minHeight:d,iconColor:h,iconSize:f,...g}=Et(i),[m,y]=Zs(g,Ns),w=kt(y),F={width:"100%",height:"fit-content",position:"relative",color:o},O={paddingEnd:"2rem",...t.field,_focus:{zIndex:"unset",...t.field?._focus}};return u.jsxs(R.div,{className:"chakra-select__wrapper",__css:F,...m,...n,children:[u.jsx(jt,{ref:e,height:l??a,minH:c??d,placeholder:s,...w,__css:O,children:i.children}),u.jsx(Dt,{"data-disabled":Os(w.disabled),...(h||o)&&{color:h||o},__css:t.icon,...f&&{fontSize:f},children:r})]})});Ke.displayName="Select";const Qs=i=>u.jsx("svg",{viewBox:"0 0 24 24",...i,children:u.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),en=R("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Dt=i=>{const{children:e=u.jsx(Qs,{}),...t}=i,n=p.cloneElement(e,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return u.jsx(en,{...t,className:"chakra-select__icon-wrapper",children:p.isValidElement(e)?n:null})};Dt.displayName="SelectIcon";function tn(i,e){const t=i??"bottom";return{"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[t]?.[e]??t}function sn(i,e){const t=s=>({...e,...s,position:tn(s?.position??e?.position,i)}),n=s=>{const r=t(s),o=ks(r);return ne.notify(o,r)};return n.update=(s,r)=>{ne.update(s,t(r))},n.promise=(s,r)=>{const o=n({...r.loading,status:"loading",duration:null});s.then(a=>n.update(o,{status:"success",duration:5e3,...ot(r.success,a)})).catch(a=>n.update(o,{status:"error",duration:5e3,...ot(r.error,a)}))},n.closeAll=ne.closeAll,n.close=ne.close,n.isActive=ne.isActive,n}function nn(i){const{theme:e}=js(),t=Ds();return p.useMemo(()=>sn(e.direction,{...t,...i}),[i,e.direction,t])}const M={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"};class Le extends ts{constructor(e){super(),this.on,this.once,this.un,this.options=e,this.id=e.id,this.insertFirst=e.insertFirst!==void 0?e.insertFirst:!0,this.stopEvent=e.stopEvent!==void 0?e.stopEvent:!0,this.element=document.createElement("div"),this.element.className=e.className!==void 0?e.className:"ol-overlay-container "+ss,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=e.autoPan===!0?{}:e.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(M.ELEMENT,this.handleElementChanged),this.addChangeListener(M.MAP,this.handleMapChanged),this.addChangeListener(M.OFFSET,this.handleOffsetChanged),this.addChangeListener(M.POSITION,this.handlePositionChanged),this.addChangeListener(M.POSITIONING,this.handlePositioningChanged),e.element!==void 0&&this.setElement(e.element),this.setOffset(e.offset!==void 0?e.offset:[0,0]),this.setPositioning(e.positioning||"top-left"),e.position!==void 0&&this.setPosition(e.position)}getElement(){return this.get(M.ELEMENT)}getId(){return this.id}getMap(){return this.get(M.MAP)||null}getOffset(){return this.get(M.OFFSET)}getPosition(){return this.get(M.POSITION)}getPositioning(){return this.get(M.POSITIONING)}handleElementChanged(){ns(this.element);const e=this.getElement();e&&this.element.appendChild(e)}handleMapChanged(){this.mapPostrenderListenerKey&&(this.element?.remove(),is(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const e=this.getMap();if(e){this.mapPostrenderListenerKey=rs(e,os.POSTRENDER,this.render,this),this.updatePixelPosition();const t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(e){this.set(M.ELEMENT,e)}setMap(e){this.set(M.MAP,e)}setOffset(e){this.set(M.OFFSET,e)}setPosition(e){this.set(M.POSITION,e)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(e){const t=this.getMap();if(!t||!t.getTargetElement()||!this.get(M.POSITION))return;const n=this.getRect(t.getTargetElement(),t.getSize()),s=this.getElement(),r=this.getRect(s,[as(s),ls(s)]);e=e||{};const o=e.margin===void 0?20:e.margin;if(!cs(n,r)){const a=r[0]-n[0],l=n[2]-r[2],c=r[1]-n[1],d=n[3]-r[3],h=[0,0];if(a<0?h[0]=a-o:l<0&&(h[0]=Math.abs(l)+o),c<0?h[1]=c-o:d<0&&(h[1]=Math.abs(d)+o),h[0]!==0||h[1]!==0){const f=t.getView().getCenterInternal(),g=t.getPixelFromCoordinateInternal(f);if(!g)return;const m=[g[0]+h[0],g[1]+h[1]],y=e.animation||{};t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(m),duration:y.duration,easing:y.easing})}}}getRect(e,t){const n=e.getBoundingClientRect(),s=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[s,r,s+t[0],r+t[1]]}setPositioning(e){this.set(M.POSITIONING,e)}setVisible(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)}updatePixelPosition(){const e=this.getMap(),t=this.getPosition();if(!e||!e.isRendered()||!t){this.setVisible(!1);return}const n=e.getPixelFromCoordinate(t),s=e.getSize();this.updateRenderedPosition(n,s)}updateRenderedPosition(e,t){const n=this.element.style,s=this.getOffset(),r=this.getPositioning();this.setVisible(!0);const o=Math.round(e[0]+s[0])+"px",a=Math.round(e[1]+s[1])+"px";let l="0%",c="0%";r=="bottom-right"||r=="center-right"||r=="top-right"?l="-100%":(r=="bottom-center"||r=="center-center"||r=="top-center")&&(l="-50%"),r=="bottom-left"||r=="bottom-center"||r=="bottom-right"?c="-100%":(r=="center-left"||r=="center-center"||r=="center-right")&&(c="-50%");const d=`translate(${l}, ${c}) translate(${o}, ${a})`;this.rendered.transform_!=d&&(this.rendered.transform_=d,n.transform=d)}getOptions(){return this.options}}const Zi=ds,lt=0,oe=1,ct=[0,0,0,0],Y=[],Ne={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"};class Oe extends wt{constructor(e,t,n){super(e),this.features=t,this.mapBrowserEvent=n}}class rn extends us{constructor(e){super(e),this.on,this.once,this.un,this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=e.condition?e.condition:hs,this.defaultDeleteCondition_=function(n){return gs(n)&&St(n)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:fs,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new ms,this.pixelTolerance_=e.pixelTolerance!==void 0?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new te({source:new Pe({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:an(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null;let t;if(e.features?t=e.features:e.source&&(this.source_=e.source,t=new ve(this.source_.getFeatures()),this.source_.addEventListener(Je.ADDFEATURE,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(Je.REMOVEFEATURE,this.handleSourceRemove_.bind(this))),!t)throw new Error("The modify interaction requires features, a source or a layer");e.hitDetection&&(this.hitDetection_=e.hitDetection),this.features_=t,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(q.ADD,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(q.REMOVE,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=e.snapToPointer===void 0?!this.hitDetection_:e.snapToPointer}addFeature_(e){const t=e.getGeometry();if(t){const s=this.SEGMENT_WRITERS_[t.getType()];s&&s(e,t)}const n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),e.addEventListener(Xe.CHANGE,this.boundHandleFeatureChange_)}willModifyFeatures_(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new ve;const n=this.featuresBeingModified_.getArray();for(let s=0,r=t.length;s=0;--s){const r=n[s];for(let o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===r&&this.dragSegments_.splice(o,1);t.remove(r)}}setActive(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(e)}setMap(e){this.overlay_.setMap(e),super.setMap(e)}getOverlay(){return this.overlay_}handleSourceAdd_(e){e.feature&&this.features_.push(e.feature)}handleSourceRemove_(e){e.feature&&this.features_.remove(e.feature)}handleFeatureAdd_(e){this.addFeature_(e.element)}handleFeatureChange_(e){if(!this.changingFeature_){const t=e.target;this.removeFeature_(t),this.addFeature_(t)}}handleFeatureRemove_(e){this.removeFeature_(e.element)}writePointGeometry_(e,t){const n=t.getCoordinates(),s={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),s)}writeMultiPointGeometry_(e,t){const n=t.getCoordinates();for(let s=0,r=n.length;s=0;--c)this.insertVertex_(s[c],r)}return!!this.vertexFeature_}handleUpEvent(e){for(let t=this.dragSegments_.length-1;t>=0;--t){const n=this.dragSegments_[t][0],s=n.geometry;if(s.getType()==="Circle"){const r=s.getCenter(),o=n.featureSegments[0],a=n.featureSegments[1];o.segment[0]=r,o.segment[1]=r,a.segment[0]=r,a.segment[1]=r,this.rBush_.update(Ae(r),o);let l=s;this.rBush_.update(l.getExtent(),a)}else this.rBush_.update(k(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new Oe(Ne.MODIFYEND,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1}handlePointerMove_(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)}handlePointerAtPixel_(e,t,n){const s=n||t.getCoordinateFromPixel(e);t.getView().getProjection();const r=function(l,c){return dt(s,l)-dt(s,c)};let o,a;if(this.hitDetection_){const l=typeof this.hitDetection_=="object"?c=>c===this.hitDetection_:void 0;t.forEachFeatureAtPixel(e,(c,d,h)=>{h&&h.getType()==="Point"&&(h=new Ze(je(h.getCoordinates())));const f=h||c.getGeometry();if(c instanceof Q&&this.features_.getArray().includes(c)){a=f;const g=c.getGeometry().getFlatCoordinates().slice(0,2);o=[{feature:c,geometry:a,segment:[g,g]}]}return!0},{layerFilter:l})}if(!o){const l=ps(Ae(s,ct)),c=t.getView().getResolution()*this.pixelTolerance_,d=ys(_s(l,c,ct));o=this.rBush_.getInExtent(d)}if(o&&o.length>0){const l=o.sort(r)[0],c=l.segment;let d=ut(s,l);const h=t.getPixelFromCoordinate(d);let f=Qe(e,h);if(a||f<=this.pixelTolerance_){const g={};if(g[C(c)]=!0,this.snapToPointer_||(this.delta_[0]=d[0]-s[0],this.delta_[1]=d[1]-s[1]),l.geometry.getType()==="Circle"&&l.index===oe)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(d,[l.feature],[l.geometry]);else{const m=t.getPixelFromCoordinate(c[0]),y=t.getPixelFromCoordinate(c[1]),w=De(h,m),F=De(h,y);f=Math.sqrt(Math.min(w,F)),this.snappedToVertex_=f<=this.pixelTolerance_,this.snappedToVertex_&&(d=w>F?c[1]:c[0]),this.createOrUpdateVertexFeature_(d,[l.feature],[l.geometry]);const O={};O[C(l.geometry)]=!0;for(let S=1,L=o.length;S=0;--l)o=e[l],g=o[0],m=C(g.feature),g.depth&&(m+="-"+g.depth.join("-")),m in t||(t[m]={}),o[1]===0?(t[m].right=g,t[m].index=g.index):o[1]==1&&(t[m].left=g,t[m].index=g.index+1);for(m in t){switch(f=t[m].right,d=t[m].left,c=t[m].index,h=c-1,d!==void 0?g=d:g=f,h<0&&(h=0),a=g.geometry,r=a.getCoordinates(),s=r,n=!1,a.getType()){case"MultiLineString":r[g.depth[0]].length>2&&(r[g.depth[0]].splice(c,1),n=!0);break;case"LineString":r.length>2&&(r.splice(c,1),n=!0);break;case"MultiPolygon":s=s[g.depth[1]];case"Polygon":s=s[g.depth[0]],s.length>4&&(c==s.length-1&&(c=0),s.splice(c,1),n=!0,c===0&&(s.pop(),s.push(s[0]),h=s.length-1));break}if(n){this.setGeometryCoordinates_(a,r);const y=[];if(d!==void 0&&(this.rBush_.remove(d),y.push(d.segment[0])),f!==void 0&&(this.rBush_.remove(f),y.push(f.segment[1])),d!==void 0&&f!==void 0){const w={depth:g.depth,feature:g.feature,geometry:g.geometry,index:h,segment:y};this.rBush_.insert(k(w.segment),w)}this.updateSegmentIndices_(a,c,g.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.length=0}}return n}setGeometryCoordinates_(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}updateSegmentIndices_(e,t,n,s){this.rBush_.forEachInExtent(e.getExtent(),function(r){r.geometry===e&&(n===void 0||r.depth===void 0||vs(r.depth,n))&&r.index>t&&(r.index+=s)})}}function on(i,e){return i.index-e.index}function dt(i,e,t){const n=e.geometry;if(n.getType()==="Circle"){let r=n;if(e.index===oe){const o=De(r.getCenter(),A(i)),a=Math.sqrt(o)-r.getRadius();return a*a}}const s=A(i);return Y[0]=A(e.segment[0]),Y[1]=A(e.segment[1]),xs(s,Y)}function ut(i,e,t){const n=e.geometry;if(n.getType()==="Circle"&&e.index===oe)return je(n.getClosestPoint(A(i)));const s=A(i);return Y[0]=A(e.segment[0]),Y[1]=A(e.segment[1]),je(Ss(s,Y))}function an(){const i=xt();return function(e,t){return i.Point}}const ln={SELECT:"select"};class cn extends wt{constructor(e,t,n,s){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=s}}const ye={};class Rt extends ws{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=e.condition?e.condition:St,this.addCondition_=e.addCondition?e.addCondition:et,this.removeCondition_=e.removeCondition?e.removeCondition:et,this.toggleCondition_=e.toggleCondition?e.toggleCondition:bs,this.multi_=e.multi?e.multi:!1,this.filter_=e.filter?e.filter:tt,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=e.style!==void 0?e.style:dn(),this.features_=e.features||new ve;let t;if(e.layers)if(typeof e.layers=="function")t=e.layers;else{const n=e.layers;t=function(s){return n.includes(s)}}else t=tt;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[C(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[C(e)]}setHitTolerance(e){this.hitTolerance_=e}setMap(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(e),e?(this.features_.addEventListener(q.ADD,this.boundAddFeature_),this.features_.addEventListener(q.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(q.ADD,this.boundAddFeature_),this.features_.removeEventListener(q.REMOVE,this.boundRemoveFeature_))}addFeature_(e){const t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){const n=this.getMap().getAllLayers().find(function(s){if(s instanceof te&&s.getSource()&&s.getSource().hasFeature(t))return s});n&&this.addFeatureLayerAssociation_(t,n)}}removeFeature_(e){this.style_&&this.restorePreviousStyle_(e.element)}getStyle(){return this.style_}applySelectedStyle_(e){const t=C(e);t in ye||(ye[t]=e.getStyle()),e.setStyle(this.style_)}restorePreviousStyle_(e){const t=this.getMap().getInteractions().getArray();for(let s=t.length-1;s>=0;--s){const r=t[s];if(r!==this&&r instanceof Rt&&r.getStyle()&&r.getFeatures().getArray().lastIndexOf(e)!==-1){e.setStyle(r.getStyle());return}}const n=C(e);e.setStyle(ye[n]),delete ye[n]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[C(e)]}handleEvent(e){if(!this.condition_(e))return!0;const t=this.addCondition_(e),n=this.removeCondition_(e),s=this.toggleCondition_(e),r=!t&&!n&&!s,o=e.map,a=this.getFeatures(),l=[],c=[];if(r){Ms(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,(d,h)=>{if(!(!(d instanceof Q)||!this.filter_(d,h)))return this.addFeatureLayerAssociation_(d,h),c.push(d),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let d=a.getLength()-1;d>=0;--d){const h=a.item(d),f=c.indexOf(h);f>-1?c.splice(f,1):(a.remove(h),l.push(h))}c.length!==0&&a.extend(c)}else{o.forEachFeatureAtPixel(e.pixel,(d,h)=>{if(!(!(d instanceof Q)||!this.filter_(d,h)))return(t||s)&&!a.getArray().includes(d)?(this.addFeatureLayerAssociation_(d,h),c.push(d)):(n||s)&&a.getArray().includes(d)&&(l.push(d),this.removeFeatureLayerAssociation_(d)),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let d=l.length-1;d>=0;--d)a.remove(l[d]);a.extend(c)}return(c.length>0||l.length>0)&&this.dispatchEvent(new cn(ln.SELECT,c,l,e)),!0}}function dn(){const i=xt();return st(i.Polygon,i.LineString),st(i.GeometryCollection,i.LineString),function(e){return e.getGeometry()?i[e.getGeometry().getType()]:null}}async function un(i,e,t,n){const r=n.getCode().replace("EPSG:","http://www.opengis.net/def/crs/EPSG/0/"),o=await i.fetch(e,{method:"POST",body:JSON.stringify({type:"Feature",properties:{},geometry:t}),headers:{"Content-Type":"application/geo+json; charset=utf-8","Content-Crs":`<${r}>`}});if(!o||!o.ok||o.status!==201)throw new Error("Request failed: "+o.status);const a=o.headers.get("location");if(!a)throw new Error("Request failed: no Location response header");const l=a.substring(a.lastIndexOf("/")+1);return Promise.resolve(l)}async function hn(i,e,t,n,s){const o=s.getCode().replace("EPSG:","http://www.opengis.net/def/crs/EPSG/0/"),a=new URL(`${e.toString()}/${t}`),l=await i.fetch(a,{method:"PATCH",body:JSON.stringify({type:"Feature",properties:{},geometry:n}),headers:{"Content-Type":"application/geo+json; charset=utf-8","Content-Crs":`<${o}>`}});if(!l||!l.ok||l.status!==204)throw new Error("Request failed: "+l.status);return Promise.resolve(t)}function Gt(i,e){const t=document.createElement("div");t.className="editing-tooltip editing-tooltip-hidden",t.role="tooltip";const n=document.createElement("span");n.textContent=e,t.appendChild(n);const s=new Le({element:t,offset:[15,0],positioning:"center-left"}),r=i.on("pointermove",o=>{o.dragging||s.setPosition(o.coordinate)});return i.addOverlay(s),{destroy(){D(r),i.removeOverlay(s)},setVisible(o){t.classList.toggle("editing-tooltip-hidden",!o)},setText(o){n.textContent=o}}}function Vt(i){let e=ht(i.polygon);Array.isArray(e)&&(e=e[0]);let t=ht(i.vertex);Array.isArray(t)&&(t=t[0]);const n=[];return e&&n.push(e),t&&(t.setGeometry(gn),n.push(t)),n}const gn=i=>{if(i){const e=i.getGeometry();if(e&&e.getType()==="Polygon"){const t=e.getCoordinates()[0];if(t)return new Us(t)}}},ht=i=>{const e=new Q,n=new te({style:i}).getStyleFunction();if(!n)throw new Error("can't retrieve style function");const s=n(e,1);if(!s)throw new Error("can't retrieve styles from feature style function");return Array.isArray(s)&&s.length?s.length>1?s:s[0]:s},fn=me("editing:EditingCreateWorkflowImpl");var j;class mn{constructor(e){x(this,j);_(this,"_httpService");_(this,"_intl");_(this,"_map");_(this,"_polygonStyle");_(this,"_vertexStyle");_(this,"_state");_(this,"_editLayerURL");_(this,"_featureId");_(this,"_editingSource");_(this,"_editingLayer");_(this,"_drawInteraction");_(this,"_olMap");_(this,"_tooltip");_(this,"_enterHandler");_(this,"_escapeHandler");_(this,"_error");_(this,"_interactionListener");_(this,"_mapListener");this._httpService=e.httpService,this._intl=e.intl,this._polygonStyle=e.polygonStyle,this._vertexStyle=e.vertexStyle,this._map=e.map,this._olMap=e.map.olMap,this._state=$e("active:initialized"),this._editLayerURL=e.ogcApiFeatureLayerUrl,this._editingSource=new Pe,this._editingLayer=new te({source:this._editingSource,zIndex:Be,properties:{name:"editing-layer"}}),this._drawInteraction=new At({source:this._editingSource,type:"Polygon",style:Vt({polygon:this._polygonStyle,vertex:this._vertexStyle})}),this._tooltip=Gt(this._olMap,this._intl.formatMessage({id:"create.tooltip.begin"})),this._enterHandler=t=>{if((t.code==="Enter"||t.code==="NumpadEnter")&&t.target===this._olMap.getTargetElement()){const n=this._drawInteraction.getOverlay().getSource()?.getFeatures()??[];n[0]&&n[0].getGeometry().getCoordinates()[0].length>4&&this.triggerSave()}},this._escapeHandler=t=>{t.code==="Escape"&&t.target===this._olMap.getTargetElement()&&this.reset()},this._interactionListener=[],this._mapListener=[],this._start()}getDrawInteraction(){return this._drawInteraction}getState(){return this._state.value}_setState(e){this._state.value=e}_save(e){this._setState("active:saving");const t=this._editLayerURL,n=e.getGeometry();if(!n){this._destroy(),this._error=new Error("no geometry available"),v(this,j)?.reject(this._error);return}const s=this._olMap.getView().getProjection(),o=new Tt({dataProjection:s}).writeGeometryObject(n,{rightHanded:!0,decimals:10});this._olMap.removeInteraction(this._drawInteraction),this._tooltip.destroy(),un(this._httpService,t,o,s).then(a=>{this._featureId=a,this._destroy(),v(this,j)?.resolve({featureId:this._featureId})}).catch(a=>{fn.error(a),this._destroy(),this._error=new Error("Failed to save feature",{cause:a}),v(this,j)?.reject(this._error)})}_start(){this._olMap.addLayer(this._editingLayer),this._olMap.addInteraction(this._drawInteraction);const e=bt(()=>{const s=this._map.container;if(s)return s.addEventListener("keydown",this._enterHandler,!1),s.addEventListener("keydown",this._escapeHandler,!1),()=>{s.removeEventListener("keydown",this._enterHandler),s.removeEventListener("keydown",this._escapeHandler)}});this._tooltip.setVisible(!0);const t=this._drawInteraction.on("drawstart",()=>{this._setState("active:drawing"),this._tooltip.setText(this._intl.formatMessage({id:"create.tooltip.continue"}))}),n=this._drawInteraction.on("drawend",s=>{const r=s.feature;if(!r){this._destroy(),this._error=new Error("no feature available"),v(this,j)?.reject(this._error);return}this._save(r)});this._interactionListener.push(t,n),this._mapListener.push(e)}reset(){this._drawInteraction.abortDrawing(),this._tooltip.setText(this._intl.formatMessage({id:"create.tooltip.begin"})),this._setState("active:initialized")}stop(){this._destroy(),v(this,j)?.resolve(void 0)}_destroy(){this._olMap.removeLayer(this._editingLayer),this._olMap.removeInteraction(this._drawInteraction),this._tooltip.destroy(),this._interactionListener.forEach(e=>{D(e)}),this._mapListener.forEach(e=>{e.destroy()}),this._setState("destroyed")}triggerSave(){this._drawInteraction.finishDrawing()}whenComplete(){return this._state.value==="destroyed"?this._error?Promise.reject(this._error):this._featureId?Promise.resolve({featureId:this._featureId}):Promise.resolve(void 0):(v(this,j)??b(this,j,Pt())).promise}}j=new WeakMap;var I;class pn{constructor(e){x(this,I);_(this,"_httpService");_(this,"_intl");_(this,"_map");_(this,"_polygonStyle");_(this,"_vertexStyle");_(this,"_state");_(this,"_editLayerURL");_(this,"_featureId");_(this,"_initialFeature");_(this,"_editFeature");_(this,"_editingSource");_(this,"_editingLayer");_(this,"_modifyInteraction");_(this,"_olMap");_(this,"_tooltip");_(this,"_enterHandler");_(this,"_escapeHandler");_(this,"_error");_(this,"_interactionListener");_(this,"_mapListener");this._httpService=e.httpService,this._intl=e.intl,this._polygonStyle=e.polygonStyle,this._vertexStyle=e.vertexStyle,this._map=e.map,this._olMap=e.map.olMap,this._state=$e("active:initialized"),this._editLayerURL=e.ogcApiFeatureLayerUrl,this._initialFeature=e.feature.clone(),this._initialFeature.setId(e.feature.getId()),this._editFeature=e.feature.clone(),this._editFeature.setId(e.feature.getId()),this._editFeature.setStyle(Vt({polygon:this._polygonStyle,vertex:this._vertexStyle})),this._editingSource=new Pe({features:new ve([this._editFeature])}),this._editingLayer=new te({source:this._editingSource,zIndex:Be,properties:{name:"editing-layer"}}),this._modifyInteraction=new rn({source:this._editingSource}),this._tooltip=Gt(this._olMap,this._intl.formatMessage({id:"create.tooltip.deselect"})),this._enterHandler=t=>{if((t.code==="Enter"||t.code==="NumpadEnter")&&t.target===this._olMap.getTargetElement()){const n=this._editingSource.getFeatures()[0];if(!n)throw Error("no updated feature found");this._save(n)}},this._escapeHandler=t=>{t.code==="Escape"&&t.target===this._olMap.getTargetElement()&&this.reset()},this._interactionListener=[],this._mapListener=[],this._start()}getModifyInteraction(){return this._modifyInteraction}getState(){return this._state.value}_setState(e){this._state.value=e}_save(e){this._setState("active:saving");const t=this._editLayerURL;if(this._featureId=e.getId()?.toString(),!this._featureId){this._destroy(),this._error=new Error("no feature id available"),v(this,I)?.reject(this._error);return}const n=e?.getGeometry();if(!n){this._destroy(),this._error=new Error("no geometry available"),v(this,I)?.reject(this._error);return}const s=this._olMap.getView().getProjection(),o=new Tt({dataProjection:s}).writeGeometryObject(n,{rightHanded:!0,decimals:10});this._olMap.removeInteraction(this._modifyInteraction),this._tooltip.destroy(),hn(this._httpService,t,this._featureId,o,s).then(a=>{this._destroy(),v(this,I)?.resolve({featureId:a})}).catch(a=>{this._destroy(),this._error=new Error("Failed to save feature",{cause:a}),v(this,I)?.reject(this._error)})}_start(){this._olMap.addLayer(this._editingLayer),this._olMap.addInteraction(this._modifyInteraction);const e=this._editingSource.getFeatures()[0];if(e&&!e.getId()?.toString()){this._destroy(),this._error=new Error("no feature id available"),v(this,I)?.reject(this._error);return}const t=bt(()=>{const r=this._map.container;if(r)return r.addEventListener("keydown",this._enterHandler,!1),r.addEventListener("keydown",this._escapeHandler,!1),()=>{r.removeEventListener("keydown",this._enterHandler),r.removeEventListener("keydown",this._escapeHandler)}});this._tooltip.setVisible(!0);const n=this._map.olMap.on("click",r=>{const o=r.coordinate,a=r.originalEvent.altKey,l=this._editingSource.getFeaturesAtCoordinate(o);a||l.length===0&&this.triggerSave()}),s=this._modifyInteraction.on("modifystart",()=>{this._setState("active:drawing")});this._interactionListener.push(n,s),this._mapListener.push(t)}reset(){const e=this._initialFeature.getGeometry()?.clone(),t=this._editingSource.getFeatures()[0];if(!t)throw Error("no updated feature found");t.setGeometry(e),this._setState("active:initialized")}stop(){this._destroy(),v(this,I)?.resolve(void 0)}_destroy(){this._editingSource.clear(),this._olMap.removeLayer(this._editingLayer),this._olMap.removeInteraction(this._modifyInteraction),this._tooltip.destroy(),this._interactionListener.forEach(e=>{D(e)}),this._mapListener.forEach(e=>{e.destroy()}),this._setState("destroyed")}triggerSave(){const e=this._editingSource.getFeatures()[0];if(!e)throw Error("no updated feature found");this._save(e)}whenComplete(){return this._state.value==="destroyed"?this._error?Promise.reject(this._error):this._featureId?Promise.resolve({featureId:this._featureId}):Promise.resolve(void 0):(v(this,I)??b(this,I,Pt())).promise}}I=new WeakMap;class Qi{_serviceOptions;_workflows;constructor(e){this._serviceOptions=e,this._workflows=new Map}createFeature(e,t){if(!t||!e||!e.id)throw new Error("Map, mapId or url is undefined.");const n=e.id;let s=this._workflows.get(n);if(s)throw new Error("EditingWorkflow could not be started. EditingWorkflow already in progress for this map.");return s=new mn({map:e,ogcApiFeatureLayerUrl:t,polygonStyle:this._serviceOptions.properties.polygonStyle,vertexStyle:this._serviceOptions.properties.vertexStyle,httpService:this._serviceOptions.references.httpService,intl:this._serviceOptions.intl}),this._workflows.set(n,s),this._connectToWorkflowDestroyEvent(s,n),s}updateFeature(e,t,n){if(!t||!e||!e.id)throw new Error("Map, mapId or url is undefined.");const s=e.id;let r=this._workflows.get(s);if(r)throw new Error("EditingWorkflow could not be started. EditingWorkflow already in progress for this map.");return r=new pn({map:e,ogcApiFeatureLayerUrl:t,feature:n,polygonStyle:this._serviceOptions.properties.polygonStyle,vertexStyle:this._serviceOptions.properties.vertexStyle,httpService:this._serviceOptions.references.httpService,intl:this._serviceOptions.intl}),this._workflows.set(s,r),this._connectToWorkflowDestroyEvent(r,s),r}stop(e){const t=this._workflows.get(e);t&&t.stop()}reset(e){const t=this._workflows.get(e);if(t)t.reset();else throw new Error("No workflow found for mapId: "+e)}_connectToWorkflowDestroyEvent(e,t){const n=Es(()=>[e.getState()],([s])=>{s==="destroyed"&&(this._workflows.get(t)===e&&this._workflows.delete(t),n.destroy())})}}var z,G,ae,le,ce,He;class yn{constructor(e,t,n){x(this,ce);_(this,"label");x(this,z,$e({kind:"available"}));x(this,G);x(this,ae);x(this,le);this.label=t,b(this,G,e),b(this,le,n),se(this,ce,He).call(this),b(this,ae,v(this,G).on("change:visible",()=>{se(this,ce,He).call(this)}))}destroy(){D(v(this,ae))}get status(){return v(this,z).value}async select(e,t){if(e.type!=="extent")throw new Error(`Unsupported selection kind: ${e.type}`);if(v(this,z).value.kind!=="available"||v(this,G).getSource()===null)return[];const n=[];v(this,G).getSource().forEachFeatureIntersectingExtent(e.extent,o=>{if(!o.getGeometry())return;const a={...o.getProperties()};delete a.geometries;const l={id:o.getId()?.toString()||Cs(),geometry:o.getGeometry(),properties:a};n.push(l)});const s=n.filter(o=>o!=null);return s.length>t.maxResults?s.slice(0,t.maxResults):s}}z=new WeakMap,G=new WeakMap,ae=new WeakMap,le=new WeakMap,ce=new WeakSet,He=function(){const t=v(this,G).getVisible()?{kind:"available"}:{kind:"unavailable",reason:v(this,le)};t.kind!==v(this,z).value.kind&&(v(this,z).value=t)};var de;class er{constructor({intl:e}){x(this,de);b(this,de,e)}createSelectionSource(e){return new yn(e.vectorLayer,e.label,v(this,de).formatMessage({id:"layerNotVisibleReason"}))}}de=new WeakMap;const _n="@open-pioneer/notifier",vn=Ue.bind(void 0,_n),Sn=Ot({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),Ht=Ot({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"}),xn=!1;function tr(i){const{position:e="top-right"}=i,t=nn(),n=vn("notifier.NotificationService"),[s,r]=p.useState(!xn),o=V(l=>{const c=l.level==="error"?u.jsx(Ht,{h:"100%",w:"100%"}):void 0;t({position:e,title:l.title,description:l.message||null,status:l.level,isClosable:!0,duration:l.displayDuration??null,icon:c})}),a=V(()=>{t.closeAll()});return p.useEffect(()=>{const l=n.registerHandler({showNotification:o,closeAll:a});return()=>l.destroy()},[s,n,o,a]),u.jsx(u.Fragment,{})}const wn="@open-pioneer/coordinate-viewer",bn=K.bind(void 0,wn),Mn=4,En="decimal",sr=i=>{const{precision:e,displayProjectionCode:t,format:n}=i,{containerProps:s}=H("coordinate-viewer",i),{map:r}=$(i),o=r?.olMap,a=B(()=>r?.projection.getCode()??"",[r]);let{coordinates:l}=Pn(o);l=l&&t?Ln(l,a,t):l;const c=Cn(l,e,n),d=t||a,h=c?c+" "+d:"";return u.jsx(P,{...s,children:u.jsx(ee,{className:"coordinate-viewer-text",children:h})})};function Cn(i,e,t){const n=bn();return i?Fn(i,e,n,t):""}function Pn(i){const[e,t]=p.useState();return p.useEffect(()=>{if(!i)return;const n=i.on("pointermove",s=>{t(s.coordinate)});return()=>D(n)},[i]),{coordinates:e}}function Fn(i,e,t,n){if(i[0]==null||i[1]==null)return"";const s=e??Mn,r=n??En,[o,a]=i;let l;if(r==="degree"&&isFinite(o)&&isFinite(a)){const[c,d,h]=gt(o,t,s),[f,g,m]=gt(a,t,s),y=`${Math.abs(c)}°${d}'${h}"${0<=c?"(E)":"(W)"}`,w=`${Math.abs(f)}°${g}'${m}"${0<=f?"(N)":"(S)"}`;l=y+" "+w}else{const c=t.formatNumber(o,{maximumFractionDigits:s,minimumFractionDigits:s}),d=t.formatNumber(a,{maximumFractionDigits:s,minimumFractionDigits:s});l=c+" "+d}return l}function gt(i,e,t){const n=Math.floor(i),s=i-n,r=Math.floor(60*s),a=60*(60*s-r),l=e.formatNumber(a,{maximumFractionDigits:t,minimumFractionDigits:t});return[n,r,l]}function Ln(i,e,t){return Ps(i,e,t)}const nr=i=>{const{displayMode:e="line"}=i,{containerProps:t}=H("scale-bar",i),{map:n}=$(i),s=p.useRef(null);return p.useEffect(()=>{if(s.current&&n){const r=n.olMap,o=new Ws({units:"metric",target:s.current,bar:e==="bar"});return r.addControl(o),()=>{r.removeControl(o)}}},[e,n]),u.jsx(P,{...t,ref:s})},In="@open-pioneer/scale-viewer",Tn=K.bind(void 0,In),ir=i=>{const{containerProps:e}=H("scale-viewer",i),{map:t}=$(i),n=Tn(),s=B(()=>t?.scale??1,[t]),r=s?n.formatNumber(s):void 0;return u.jsx(P,{...e,children:r&&u.jsxs(ee,{children:["1:",r]})})},An="@open-pioneer/legend",$t=K.bind(void 0,An),rr=i=>{const{showBaseLayers:e=!1}=i,{containerProps:t}=H("legend",i),{map:n}=$(i);return u.jsx(P,{...t,children:n?u.jsx(Nn,{map:n,showBaseLayers:e}):null})};function Nn(i){const{map:e,showBaseLayers:t}=i,s=kn(e).map(r=>u.jsx(Bt,{layer:r,showBaseLayers:t},r.id));return u.jsx(Ys,{as:"ul",className:"legend-layer-list",listStyleType:"none",spacing:2,children:s})}function Bt(i){const{layer:e,showBaseLayers:t}=i,n=B(()=>e.visible,[e]),s=jn(e);if(!n||!t&&Bs(e)&&Ut(e))return;const r=[];return s?.length&&s.forEach(o=>{r.push(u.jsx(Bt,{layer:o,showBaseLayers:t},o.id))}),u.jsxs(u.Fragment,{children:[u.jsx(On,{layer:e,showBaseLayers:t}),r]})}function On(i){const e=$t(),{layer:t,showBaseLayers:n}=i,s=Ut(t),r=Dn(t),o=B(()=>t.legend,[t]);let a;return r?.Component?a=u.jsx(r.Component,{layer:t}):r?.imageUrl?a=u.jsx(ft,{layer:t,imageUrl:r.imageUrl}):o&&(a=u.jsx(ft,{layer:t,imageUrl:o})),a?u.jsxs(P,{as:"li",className:Fe("legend-item",`layer-${Rn(t.id)}`),children:[n&&s?u.jsx(ee,{as:"b",children:e.formatMessage({id:"basemapLabel"})}):null,a]}):void 0}function ft(i){const e=$t(),{layer:t,imageUrl:n}=i;return u.jsxs(P,{children:[u.jsx(ee,{children:t.title}),u.jsx(zs,{maxW:"none",maxH:"none",src:n,alt:e.formatMessage({id:"altLabel"},{layerName:t.title}),className:"legend-item__image",fallbackStrategy:"onError",fallback:u.jsx(P,{children:u.jsxs(ee,{children:[u.jsx(Ht,{me:2}),e.formatMessage({id:"fallbackLabel"})]})})})]})}function kn(i){return B(()=>{const e=i.layers.getAllLayers({sortByDisplayOrder:!0})??[];return e.reverse(),e},[i])}function jn(i){return B(()=>{const e=i.sublayers?.getSublayers({sortByDisplayOrder:!0});if(e)return e.reverse(),e},[i])}function Dn(i){return B(()=>i.attributes.legend,[i])}function Ut(i){return!("parentLayer"in i)&&i.isBaseLayer}function Rn(i){return i.toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}const Gn="@open-pioneer/measurement",Vn=K.bind(void 0,Gn);class Hn{olMap;messages;activeFeatureStyle;layer;source;draw=void 0;activeMeasurement;predefinedMeasurements=new Map;finishedMeasurements=new Set;helpTooltip;resources=[];measurementChangedHandler;constructor(e,t){this.olMap=e,this.messages=t;const n=this.source=new Pe;this.layer=new te({source:n,zIndex:Be,properties:{name:"measurement-layer"}}),e.addLayer(this.layer);const s=e.on("pointermove",this.handlePointerMove.bind(this));this.resources.push({destroy(){D(s)}});const r=()=>{this.helpTooltip.element.classList.add("hidden")};e.getViewport().addEventListener("mouseout",r),this.resources.push({destroy(){e.getViewport().removeEventListener("mouseout",r)}}),this.helpTooltip=Bn(this.olMap)}destroy(){this.stopMeasurement();for(const e of this.resources)e.destroy();this.resources=[],this.activeMeasurement=at(this.activeMeasurement);for(const e of this.finishedMeasurements)e.destroy();this.finishedMeasurements.clear(),this.helpTooltip.destroy(),this.olMap.removeLayer(this.layer),this.layer.dispose(),this.source.dispose(),this.measurementChangedHandler=void 0,this.predefinedMeasurements.clear()}getVectorLayer(){return this.layer}setFinishedFeatureStyle(e){this.layer.setStyle(e)}setMeasurementSourceChangedHandler(e){this.measurementChangedHandler=e}setPredefinedMeasurements(e){this.updatePredefinedMeasurements(e)}setActiveFeatureStyle(e){const t=Fs(e);this.activeFeatureStyle=(n,...s)=>{const r=n?.getGeometry()?.getType();if(r==="Polygon"||r==="LineString"||r==="Point")return t(n,...s)},this.draw?.getOverlay().setStyle(this.activeFeatureStyle)}clearMeasurements(){const e=this.source.getFeatures();this.source.clear(),e.forEach(t=>{this.raiseMeasurementsChangeEvent("remove-measurement",t)}),this.predefinedMeasurements.clear();for(const t of this.finishedMeasurements)t.destroy();this.finishedMeasurements.clear()}startMeasurement(e){if(this.draw)throw new Error("Internal error: another measurement interaction is still active.");const t=e==="area"?"Polygon":"LineString",n=this.draw=new At({source:this.source,type:t,style:this.activeFeatureStyle});this.olMap.addInteraction(n);let s,r;n.on("drawstart",o=>{const a=o.feature;a&&(s=this.activeMeasurement=new mt("active",a,this),r=a.getGeometry()?.on("change",()=>{s?.updateTooltipContent(),s?.updateTooltipPosition()}))}),n.on("drawend",()=>{if(s&&s===this.activeMeasurement){const o=s;o.updateState("finished"),this.finishedMeasurements.add(o),this.raiseMeasurementsChangeEvent("add-measurement",o.feature),this.activeMeasurement=s=void 0}s=void 0,r&&D(r)}),n.on("drawabort",()=>{s&&(s.destroy(),s===this.activeMeasurement&&(this.activeMeasurement=void 0),s=void 0),r&&D(r)})}stopMeasurement(){this.draw&&(this.olMap.removeInteraction(this.draw),this.draw.abortDrawing(),this.draw.dispose(),this.draw=void 0),this.activeMeasurement=at(this.activeMeasurement)}handlePointerMove(e){if(e.dragging)return;const t=this.helpTooltip,n=Wn(this.messages,this.activeMeasurement);t.setText(n),t.overlay.setPosition(e.coordinate),t.element.classList.remove("hidden")}updatePredefinedMeasurements(e){const t=e.filter(s=>!this.predefinedMeasurements.has(s)),n=[];for(const s of this.predefinedMeasurements.keys())e.includes(s)||n.push(s);t.forEach(s=>{const r=new Q(s);this.source.addFeature(r);const o=new mt("finished",r,this);this.finishedMeasurements.add(o),this.predefinedMeasurements.set(s,o),this.raiseMeasurementsChangeEvent("add-measurement",r)}),n.forEach(s=>{const r=this.predefinedMeasurements.get(s);r&&(this.source.removeFeature(r.feature),this.finishedMeasurements.delete(r),r.destroy(),this.raiseMeasurementsChangeEvent("remove-measurement",r.feature)),this.predefinedMeasurements.delete(s)})}raiseMeasurementsChangeEvent(e,t){const n=t.getGeometry();this.measurementChangedHandler&&n&&this.measurementChangedHandler({kind:e,geometry:(n instanceof Se,n)})}}class mt{controller;feature;_state;tooltip;constructor(e,t,n){this.controller=n,this._state=e,this.feature=t,this.tooltip=Un(this.olMap),this.updateTooltipContent(),this.updateTooltipPosition(),this.tooltip.setActive(e==="active")}destroy(){this.tooltip.destroy()}get state(){return this._state}updateState(e){this._state!==e&&(this._state=e,this.tooltip.setActive(e==="active"))}updateTooltipContent(){const e=this.feature.getGeometry();if(!e)return;const t=this.olMap.getView().getProjection();let n;e instanceof Se?n=zn(e,t,this.messages):e instanceof Ge&&(n=Kn(e,t,this.messages)),n&&this.tooltip.setHtml(n)}updateTooltipPosition(){const e=this.feature.getGeometry();if(!e)return;let t;if(e instanceof Se)t=e.getInteriorPoint().getCoordinates()||null;else if(e instanceof Ge)t=e.getLastCoordinate()||null;else return;this.tooltip.overlay.setPosition(t)}get olMap(){return this.controller.olMap}get messages(){return this.controller.messages}}const pt=[0,-15],$n=[0,-7];function Bn(i){const e=document.createElement("div");e.className="measurement-tooltip printing-hide hidden",e.role="tooltip";const t=document.createElement("span");e.appendChild(t);const n=new Le({element:e,offset:[15,0],positioning:"center-left"});return i.addOverlay(n),{overlay:n,element:e,destroy(){i.removeOverlay(n)},setText(s){t.textContent=s},setHtml(s){t.innerHTML=s}}}function Un(i){const e=document.createElement("div");e.role="tooltip",e.className="measurement-tooltip measurement-active-tooltip printing-hide";const t=document.createElement("span");e.appendChild(t);const n=new Le({element:e,offset:pt,positioning:"bottom-center",stopEvent:!1,insertFirst:!1});return i.addOverlay(n),{overlay:n,element:e,destroy(){i.removeOverlay(n)},setActive(s){s?(e.className="measurement-tooltip measurement-active-tooltip printing-hide",n.setOffset(pt)):(e.className="measurement-tooltip measurement-finished-tooltip",n.setOffset($n))},setText(s){t.textContent=s},setHtml(s){t.innerHTML=s}}}function Wn(i,e){if(e){const t=e.feature.getGeometry();if(t instanceof Se||t instanceof Ge)return i.getContinueMessage()}return i.getHelpMessage()}function zn(i,e,t){const n=Ls(i,{projection:e});let s;return n>=1e6?s=`${t.formatNumber(n/1e6)} km2`:s=`${t.formatNumber(n)} m2`,s}function Kn(i,e,t){const n=Is(i,{projection:e});let s;return n>=1e3?s=`${t.formatNumber(n/1e3)} km`:s=`${t.formatNumber(n)} m`,s}const or=i=>{const e=Vn(),{containerProps:t}=H("measurement",i),[n,s]=p.useState("distance"),r=d=>e.formatMessage({id:d}),o=$(i),a=qn(o.map,i,e);p.useEffect(()=>{if(a)return a.startMeasurement(n),()=>{a.stopMeasurement()}},[a,n]);function l(d){if(d==="distance"||d==="area")s(d);else throw new Error(`Unexpected measurement type: '${d}'.`)}function c(){a?.clearMeasurements()}return u.jsxs(P,{...t,children:[u.jsx(ee,{mb:3,children:e.formatMessage({id:"measurementInfoText"})}),u.jsx(we,{mb:4,alignItems:"center",children:u.jsxs(Ve,{mb:2,children:[u.jsx(be,{mb:1,children:r("measurementLabel")}),u.jsxs(Ke,{value:n,onChange:d=>l(d.target.value),className:"measurement-select",children:[u.jsx("option",{value:"distance",children:r("distance")}),u.jsx("option",{value:"area",children:r("area")})]})]})}),u.jsx(Ft,{padding:2,className:"measurement-delete-button",onClick:c,width:"100%",children:r("deleteMeasurementLabel")})]})};function qn(i,e,t){const{activeFeatureStyle:n,finishedFeatureStyle:s,onMeasurementsChange:r,predefinedMeasurements:o}=e,[a,l]=p.useState(void 0);return p.useEffect(()=>{if(!i)return;const c=new Hn(i.olMap,{getContinueMessage(){return t.formatMessage({id:"tooltips.continue"})},getHelpMessage(){return t.formatMessage({id:"tooltips.help"})},formatNumber(d){return t.formatNumber(d,{maximumFractionDigits:2})}});return l(c),()=>{c.destroy(),l(void 0)}},[i,t]),p.useEffect(()=>{a?.setActiveFeatureStyle(n??Yn())},[a,n]),p.useEffect(()=>{a?.setFinishedFeatureStyle(s??Jn())},[a,s]),p.useEffect(()=>{a?.setMeasurementSourceChangedHandler(r)},[a,r]),p.useEffect(()=>{a?.setPredefinedMeasurements(o??[])},[a,o]),a}function Yn(){return[new xe({stroke:new re({color:"#fff",lineDash:[10,10],width:5})}),new xe({fill:new Re({color:"rgba(0,0,0,0.15)"}),stroke:new re({color:"rgba(0, 0, 0, 0.7)",lineDash:[10,10],width:3}),image:new Ts({radius:5,stroke:new re({color:"rgba(0, 0, 0, 0.7)",width:2}),fill:new Re({color:"rgba(255, 255, 255, 0.2)"})})})]}function Jn(){return[new xe({stroke:new re({color:"#fff",width:5})}),new xe({stroke:new re({color:"#0b96fc",width:3}),fill:new Re({color:"rgba(11,150,252,0.15)"})})]}const Xn="@open-pioneer/search",Ie=K.bind(void 0,Xn);function Zn(i){const e=i.selectProps.inputValue.length>0,t={...i,className:Fe(i.className,{"search-invisible":!e})};return u.jsx(N.Menu,{...t,children:i.children})}function Qn(i){const e=i.data.label,t={...i.innerProps,"aria-label":e,role:"group"};return u.jsx(N.Group,{...i,innerProps:t})}function ei(i){const t=Ie().formatMessage({id:"noOptionsText"});return u.jsx(N.NoOptionsMessage,{...i,children:u.jsx(R.span,{className:"search-no-match",children:t})})}function ti(i){const t=Ie().formatMessage({id:"loadingText"});return u.jsx(N.LoadingMessage,{...i,children:u.jsx(R.span,{className:"search-loading-text",children:t})})}function si({children:i,...e}){const t={...e,className:Fe(e.className,"search-value-container")};return u.jsxs(N.ValueContainer,{...t,children:[!!i&&u.jsx(Sn,{style:{position:"absolute",left:8}}),i]})}function ni(i){const e={...i,isHidden:!1};return u.jsx(N.Input,{...e})}function ii(i){return null}function ri(i){return u.jsxs(N.IndicatorsContainer,{...i,children:[i.children,!i.selectProps.isLoading&&i.selectProps.inputValue&&u.jsx(oi,{selectProps:i.selectProps,clearValue:i.clearValue})]})}function oi(i){const t=Ie().formatMessage({id:"ariaLabel.clearButton"}),n=s=>{s.preventDefault(),s.stopPropagation(),i.clearValue()};return u.jsx(Rs,{role:"button",size:"md",mr:1,"aria-label":t,onClick:n,onTouchEnd:n,onMouseDown:s=>s.preventDefault()})}function ai(i){return null}function li(i){const e=i.selectProps.inputValue,t=i.data.label,n={...i,className:Fe(i.className,"search-option")};return u.jsx(N.Option,{...n,children:u.jsx(R.div,{className:"search-option-label",children:e.trim().length>0?ci(t,e):t})})}function ci(i,e){const t=i.toLowerCase().indexOf(e.toLowerCase());return t>=0?u.jsxs(u.Fragment,{children:[i.substring(0,t),u.jsx(R.span,{className:"search-highlighted-match",children:i.substring(t,t+e.length)},"highlighted"),i.substring(t+e.length)]}):i}const yt=me("search:SearchController"),_t=200,vt=5;var ue,J,X,Z,T,Ee,Wt;class di{constructor(e,t){x(this,Ee);x(this,ue);x(this,J,[]);x(this,X,vt);x(this,Z,_t);x(this,T);b(this,ue,e),b(this,J,t)}destroy(){v(this,T)?.abort(),b(this,T,void 0)}async search(e){if(v(this,T)?.abort(),b(this,T,void 0),!e)return[];const t=b(this,T,new AbortController);try{return await ui(t.signal,v(this,Z)),t.signal.aborted&&(yt.debug(`search canceled with ${e}`),Gs()),(await Promise.all(v(this,J).map(s=>se(this,Ee,Wt).call(this,s,e,t.signal)))).filter(s=>s!=null)}finally{v(this,T)===t&&b(this,T,void 0)}}get searchTypingDelay(){return v(this,Z)}set searchTypingDelay(e){b(this,Z,e??_t)}get maxResultsPerSource(){return v(this,X)}set maxResultsPerSource(e){b(this,X,e??vt)}get sources(){return v(this,J)}}ue=new WeakMap,J=new WeakMap,X=new WeakMap,Z=new WeakMap,T=new WeakMap,Ee=new WeakSet,Wt=async function(e,t,n){const s=e.label,r=v(this,ue).olMap.getView().getProjection();try{const o=v(this,X);let a=await e.search(t,{maxResults:o,signal:n,mapProjection:r});return a.length>o&&(a=a.slice(0,o)),{label:s,source:e,results:a}}catch(o){Lt(o)||yt.error(`search for source ${s} failed`,o);return}};async function ui(i,e){i.aborted||await new Promise(t=>{const n=()=>{i.removeEventListener("abort",n),clearTimeout(s),t()};i.addEventListener("abort",n);const s=setTimeout(n,e)})}const Me=me("search:Search"),ar=i=>{const{sources:e,searchTypingDelay:t,maxResultsPerGroup:n,onSelect:s,onClear:r}=i,{containerProps:o}=H("search",i),{map:a}=$(i),l=Ie(),c=mi(e,t,n,a),{input:d,search:h,selectedOption:f,onInputChanged:g,onResultConfirmed:m}=pi(c),y=fi(),w=hi(l),F=gi(),O=V((E,U)=>{U.action==="input-change"&&g(E)}),S=V((E,U)=>{switch(U.action){case"select-option":E&&(m(E),s?.({source:E.source,result:E.result}));break;case"clear":g(""),L.current?.blur(),L.current?.focus(),r?.();break;default:Me.debug(`Unhandled action type '${U.action}'.`);break}}),L=p.useRef(null);return u.jsx(P,{...o,children:u.jsx(Nt,{className:"search-component",classNamePrefix:"react-select",ref:L,inputValue:d,onInputChange:O,"aria-label":l.formatMessage({id:"ariaLabel.search"}),ariaLiveMessages:w,tagColorScheme:"trails",selectedOptionStyle:"color",selectedOptionColorScheme:"trails",chakraStyles:y,isClearable:!0,placeholder:i.placeholder??l.formatMessage({id:"searchPlaceholder"}),closeMenuOnSelect:!0,isLoading:h.kind==="loading",options:h.kind==="ready"?h.results:void 0,filterOption:()=>!0,tabSelectsValue:!1,components:F,onChange:S,value:f,menuPosition:"fixed"})})};function hi(i){return p.useMemo(()=>({onFocus:()=>"",onChange:()=>"",guidance:()=>`${i.formatMessage({id:"ariaLabel.instructions"})}`,onFilter:()=>""}),[i])}function gi(){return p.useMemo(()=>({Menu:Zn,Input:ni,SingleValue:ii,Option:li,NoOptionsMessage:ei,LoadingMessage:ti,ValueContainer:si,IndicatorsContainer:ri,ClearIndicator:ai,Group:Qn}),[])}function fi(){const[i,e]=It("colors",["trails.100","trails.50"],["#d5e5ec","#eaf2f5"]);return p.useMemo(()=>({groupHeading:n=>({...n,backgroundColor:i,padding:"8px 12px",fontSize:"inherit",fontWeight:"inherit"}),option:n=>({...n,backgroundColor:"inherit",_focus:{backgroundColor:e}}),dropdownIndicator:n=>({...n,display:"none"})}),[i,e])}function mi(i,e,t,n){const[s,r]=p.useState(void 0);return p.useEffect(()=>{if(!n)return;const o=new di(n,i);return r(o),()=>{o.destroy(),r(void 0)}},[n,i]),p.useEffect(()=>{s&&(s.searchTypingDelay=e)},[s,e]),p.useEffect(()=>{s&&(s.maxResultsPerSource=t)},[s,t]),s}function pi(i){const[e,t]=p.useReducer((a,l)=>{switch(l.kind){case"input":return{...a,query:l.query,selectedOption:null};case"select-option":return{...a,selectedOption:l.option,query:l.option.label};case"load-results":return{...a,search:{kind:"loading"}};case"accept-results":return{...a,search:{kind:"ready",results:l.results}}}},void 0,()=>({query:"",selectedOption:null,search:{kind:"ready",results:[]}})),n=p.useRef(),s=V(a=>{if(!i){n.current=void 0,t({kind:"accept-results",results:[]});return}Me.isDebug()&&Me.debug(`Starting new search for query ${JSON.stringify(a)}.`),t({kind:"load-results"});const l=n.current=yi(i,a).then(c=>{n.current===l&&t({kind:"accept-results",results:c})})}),r=p.useCallback(a=>{t({kind:"select-option",option:a})},[]),o=p.useCallback(a=>{t({kind:"input",query:a}),s(a)},[s]);return{input:e.query,search:e.search,selectedOption:e.selectedOption,onResultConfirmed:r,onInputChanged:o}}async function yi(i,e){let t;try{t=await i.search(e)}catch(n){Lt(n)||Me.error("Search failed",n),t=[]}return _i(t)}function _i(i){return i.map((t,n)=>({label:t.label,options:t.results.map(s=>({value:`${n}-${s.id}`,label:s.label,source:t.source,result:s}))}))}const zt="@open-pioneer/selection",vi=Ue.bind(void 0,zt),qe=K.bind(void 0,zt),ie="selection-active",_e="selection-inactive";class Si{tooltip;interactionResources=[];olMap;isActive=!0;tooltipMessage;tooltipDisabledMessage;constructor(e,t,n,s){const r=this.initViewport(e);this.interactionResources.push(this.createDragBox(e,s,r,this.interactionResources)),this.interactionResources.push(this.createDrag(e,r,this.interactionResources)),this.tooltip=this.createHelpTooltip(e,t),this.olMap=e,this.tooltipMessage=t,this.tooltipDisabledMessage=n}initViewport(e){const t=e.getViewport();return t.classList.add(ie),t.oncontextmenu=n=>(n.preventDefault(),!1),t}destroy(){this.tooltip.destroy(),this.interactionResources.forEach(e=>{e.destroy()})}setActive(e){if(this.isActive===e)return;const t=this.olMap.getViewport();e?(this.interactionResources.forEach(n=>this.olMap.addInteraction(n.interaction)),this.tooltip.setText(this.tooltipMessage),t.classList.remove(_e),t.classList.add(ie),this.isActive=!0):(this.interactionResources.forEach(n=>this.olMap.removeInteraction(n.interaction)),this.tooltip.setText(this.tooltipDisabledMessage),t.classList.remove(ie),t.classList.add(_e),this.isActive=!1)}createDragBox(e,t,n,s){const r=new nt({className:"selection-drag-box",condition:As});return e.addInteraction(r),r.on("boxend",function(){t(r.getGeometry())}),{interaction:r,destroy(){e.removeInteraction(r),s.splice(s.indexOf(this)),r.dispose(),n.classList.remove(ie),n.classList.remove(_e),n.oncontextmenu=null}}}createDrag(e,t,n){const s=function(a){return a.originalEvent.button==2},r=new it({condition:s});return e.addInteraction(r),{interaction:r,destroy(){e.removeInteraction(r),n.splice(n.indexOf(this)),r.dispose(),t.classList.remove(ie),t.classList.remove(_e),t.oncontextmenu=null}}}createHelpTooltip(e,t){const n=document.createElement("div");n.className="selection-tooltip printing-hide",n.role="tooltip";const s=document.createElement("span");s.textContent=t,n.appendChild(s);const r=new Le({element:n,offset:[15,0],positioning:"center-left"}),o=e.on("pointermove",a=>{r.setPosition(a.coordinate)});return e.addOverlay(r),{overlay:r,element:n,destroy(){e.removeOverlay(r),r.dispose(),D(o)},setText(a){s.textContent=a}}}getDragboxInteraction(){return this.interactionResources.find(e=>e.interaction instanceof nt)}getDragPanInteraction(){return this.interactionResources.find(e=>e.interaction instanceof it)}}const ke=me("selection:SelectionController"),xi=1e4;var he,ge,fe,Ce,Kt;class wi{constructor(e){x(this,Ce);x(this,he);x(this,ge);x(this,fe);const{mapModel:t,onError:n,maxResults:s=xi}=e;b(this,he,t),b(this,ge,s),b(this,fe,n)}destroy(){}async select(e,t){if(t)return await se(this,Ce,Kt).call(this,e,t)}}he=new WeakMap,ge=new WeakMap,fe=new WeakMap,Ce=new WeakSet,Kt=async function(e,t){const n=v(this,he).olMap.getView().getProjection();try{ke.debug(`Starting selection on source '${e.label}'`);const s=v(this,ge);let r=await e.select({type:"extent",extent:t},{maxResults:s,mapProjection:n,signal:new AbortController().signal});return r.length>s&&(r=r.slice(0,s)),ke.debug(`Found ${r.length} results on source '${e.label}'`),{source:e,results:r}}catch(s){ke.error(`selection from source ${e.label} failed`,s),v(this,fe).call(this);return}};const bi={classNamePrefix:"react-select",menuPosition:"fixed",isSearchable:!1,isClearable:!1},lr=i=>{const e=qe(),{sources:t,onSelectionComplete:n,onSelectionSourceChanged:s}=i,{containerProps:r}=H("selection",i),o=e.formatMessage({id:"sourceNotAvailable"}),[a,l]=Ci(t,s),c=Jt(a,o),d=$(i),{onExtentSelected:h}=Pi(d.map,t,a,n),f=Li(),[g,m]=p.useState(!1);Fi(d.map,e,h,c.kind==="available",!!a);const y=p.useMemo(()=>t.map(S=>({label:S.label,value:S})),[t]),w=p.useMemo(()=>y.find(L=>L.value===a)||null,[y,a]),F=V(S=>{l(S?.value)}),O=V(S=>{!g&&S.key==="Enter"&&m(!0)});return u.jsx(Vs,{...r,spacing:2,children:u.jsxs(we,{children:[u.jsx(be,{children:e.formatMessage({id:"selectSource"})}),u.jsx(Nt,{className:"selection-source react-select",...bi,options:y,placeholder:e.formatMessage({id:"selectionPlaceholder"}),value:w,onChange:F,components:{Option:Mi,SingleValue:Ei},isOptionDisabled:()=>!1,getOptionLabel:S=>{const L=S.label,E=Yt(S.value,o);return E.kind=="available"?L:L+" "+E.reason},ariaLiveMessages:{guidance:()=>"",onChange:S=>S.action=="select-option"||S.action=="initial-input-focus"?S.label+" "+e.formatMessage({id:"selected"}):"",onFilter:()=>"",onFocus:()=>""},chakraStyles:f,onKeyDown:O,menuIsOpen:g,onMenuOpen:()=>m(!0),onMenuClose:()=>m(!1)})]})})};function Mi(i){const{value:e}=i.data,{isAvailable:t,content:n}=qt(e,!1);return u.jsx(N.Option,{...i,isDisabled:!t,className:"selection-source-option",children:n})}function Ei(i){const{value:e}=i.data,{isAvailable:t,content:n}=qt(e,!0),s=t?"selection-source-value":"selection-source-value selection-source-value--disabled";return u.jsx(N.SingleValue,{...i,isDisabled:!t,className:s,children:n})}function Ci(i,e){const[t,n]=p.useState(()=>i[0]);p.useEffect(()=>{t&&!i.includes(t)&&n(void 0)},[i,t]);const s=p.useRef(void 0);return p.useEffect(()=>{t!==s.current&&(s.current=t,e?.({source:t}))},[t,e]),[t,n]}function qt(i,e){const t=qe(),n=i?.label,s=t.formatMessage({id:"sourceNotAvailable"}),r=Jt(i,s);return{isAvailable:r.kind==="available",content:u.jsxs(rt,{direction:"row",alignItems:"center",grow:1,children:[!e&&u.jsx(rt,{grow:1,children:n}),r.kind==="unavailable"&&u.jsx(P,{ml:2,children:u.jsx(Hs,{label:r.reason,placement:"right",openDelay:500,children:u.jsx(R.span,{children:u.jsx($s,{as:Js,color:"red",className:"warning-icon","aria-label":r.reason})})})}),e&&n]})}}function Pi(i,e,t,n){const s=vi("notifier.NotificationService"),r=qe(),[o,a]=p.useState(void 0);p.useEffect(()=>{if(!i)return;const c=new wi({mapModel:i,onError(){s.notify({level:"error",message:r.formatMessage({id:"selectionFailed"})})}});return a(c),()=>{c.destroy()}},[i,s,e,r]);const l=V(async c=>{if(!o||!t)return;const d=await o.select(t,c.getExtent());d&&n?.(d)});return{controller:o,onExtentSelected:l}}function Yt(i,e){const t=i.status??"available",n=typeof t=="string"?{kind:t}:t;return n.kind==="available"?n:{kind:"unavailable",reason:n.reason??e}}function Jt(i,e){return B(()=>i?Yt(i,e):{kind:"unavailable",reason:e},[i,e])}function Fi(i,e,t,n,s){p.useEffect(()=>{if(!i)return;const r=s?e.formatMessage({id:"disabledTooltip"}):e.formatMessage({id:"noSourceTooltip"}),o=new Si(i.olMap,e.formatMessage({id:"tooltip"}),r,t);return o.setActive(n),()=>{o?.destroy()}},[i,e,t,n,s])}function Li(){const[i,e]=It("colors",["background_body","border"],["#ffffff","#ffffff"]);return p.useMemo(()=>({control:n=>({...n,cursor:"pointer"}),indicatorSeparator:n=>({...n,borderColor:e}),dropdownIndicator:n=>({...n,backgroundColor:i})}),[i,e])}const Xt="@open-pioneer/printing",Zt=Ue.bind(void 0,Xt),Ii=K.bind(void 0,Xt),Ti="map";class Ai{olMap;i18n;printingService;viewPadding;printMap=void 0;overlay=void 0;constructor(e,t,n){this.olMap=e,this.printingService=t,this.i18n=n}destroy(){this.reset()}setViewPadding(e){this.viewPadding=e}async handleMapExport(e){if(this.olMap)try{this.begin(),this.printMap=await this.printingService.printMap(this.olMap,{blockUserInteraction:!1,viewPadding:this.viewPadding});const t=this.printMap.getCanvas();if(t)e.fileFormat=="png"?await this.exportMapInPNG(t,e):await this.exportMapInPDF(t,e);else throw new Error("Canvas export failed")}finally{this.reset()}}begin(){const e=this.olMap.getTargetElement();e&&(this.overlay=Ks(e,this.i18n.overlayText))}reset(){this.overlay?.destroy(),this.overlay=void 0}getTitleAndFileName(e){const t=e.title||"",n=e.title||Ti;return{title:t,fileName:n}}async exportMapInPNG(e,t){const n=document.createElement("canvas");n.width=e.width,n.height=e.height+50,n.style.backgroundColor="#fff";const s=n.getContext("2d");if(!s)throw new Error("2d canvas rendering context not available");const{title:r,fileName:o}=this.getTitleAndFileName(t);s.fillStyle="#fff",s.fillRect(0,0,n.width,n.height),s.font="20px bold sans-serif",s.textAlign="center",s.fillStyle="#000";const a=n.width/2;s.fillText(r,a,20),s.drawImage(e,0,50);const l=document.createElement("a");l.setAttribute("download",o+".png");const c=qs(n);if(!c)throw new Error("Failed to get image data URL");l.href=c,l.click()}async exportMapInPDF(e,t){const{jsPDF:n}=await Xs(async()=>{const{jsPDF:F}=await import("./9_25jZL3RpAh.js");return{jsPDF:F}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),s=new n({orientation:"landscape",unit:"mm",format:"a4"}),r=s.internal.pageSize.getWidth(),o=s.internal.pageSize.getHeight(),a=15,l=20,c=o-l;s.setFontSize(20);const{title:d,fileName:h}=this.getTitleAndFileName(t);s.text(d,r/2,a,{align:"center"});const f=e.width/e.height;let g=c,m=g*f;m>=r&&(m=r,g=m/f);const y=(r-m)/2,w=l+(c-g)/2;s.addImage(e,"",y,w,m,g),s.save(h+".pdf")}}const Ni=me("printing"),cr=i=>{const e=Ii(),{viewPadding:t="auto"}=i,{containerProps:n}=H("printing",i),[s,r]=p.useState("pdf"),[o,a]=p.useState(""),[l,c]=p.useState(!1),d=Zt("notifier.NotificationService"),{map:h}=$(i),f=Oi(h,e,t);function g(y){(y==="png"||y==="pdf")&&r(y)}function m(){l||!f||(c(!0),f.handleMapExport({title:o,fileFormat:s}).catch(y=>{const w=e.formatMessage({id:"printingFailed"});d.notify({level:"error",message:w}),Ni.error("Failed to print the map",y)}).finally(()=>{c(!1)}))}return u.jsx(P,{...n,children:u.jsxs(P,{as:"form",m:2,alignItems:"center",onSubmit:y=>{y.preventDefault(),m()},children:[u.jsxs(we,{as:Ve,mb:2,children:[u.jsx(be,{minWidth:"82",mb:1,children:e.formatMessage({id:"title"})}),u.jsx(ze,{placeholder:e.formatMessage({id:"input.placeholder"}),value:o,onChange:y=>{a(y.target.value)},autoFocus:!0})]}),u.jsxs(we,{as:Ve,mb:2,children:[u.jsx(be,{minWidth:"82",mb:1,children:e.formatMessage({id:"fileFormat"})}),u.jsxs(Ke,{value:s,onChange:y=>g(y.target.value),className:"printing-select",children:[u.jsx("option",{value:"png",children:"PNG"}),u.jsx("option",{value:"pdf",children:"PDF"})]})]}),u.jsx(Ft,{isLoading:l,loadingText:e.formatMessage({id:"printingMap"}),disabled:l,mt:2,p:2,className:"printing-export-button",type:"submit",width:"100%",children:e.formatMessage({id:"export"})})]})})};function Oi(i,e,t){const n=Zt("printing.PrintingService"),[s,r]=p.useState(void 0);return p.useEffect(()=>{if(!i)return;const o=new Ai(i.olMap,n,{overlayText:e.formatMessage({id:"printingMap"})});return r(o),()=>{o.destroy(),r(void 0)}},[i,e,n]),p.useEffect(()=>{s?.setViewPadding(t)},[s,t]),s}export{sr as C,Qi as E,ze as I,rr as L,or as M,tr as N,Le as O,cr as P,Rt as S,er as V,Zi as W,nr as a,ir as b,ar as c,lr as d,Ke as e}; diff --git a/openlayers-base-packages/assets/CNMhq6JQKEM8.js b/openlayers-base-packages/assets/C21NLAidutFd.js similarity index 96% rename from openlayers-base-packages/assets/CNMhq6JQKEM8.js rename to openlayers-base-packages/assets/C21NLAidutFd.js index 74331b8da..5a2f1a789 100644 --- a/openlayers-base-packages/assets/CNMhq6JQKEM8.js +++ b/openlayers-base-packages/assets/C21NLAidutFd.js @@ -1 +1 @@ -import{h as R,r as p,j as e,b as v,a as B,H as j,l as z,B as b,C as P,f as T}from"./BeGW3nmX4tO2.js";import{t as N}from"./BITOzfKCAZEE.js";import{S as O,T as H,O as F,M as q,H as V,u as Z,k as m,i as $,g as D,h as W,l as G,m as U}from"./q4MLRk0u7kxl.js";import{_ as K}from"./CmsKOCeNyeyo.js";import{c as A}from"./Dc3xe-fbgKeJ.js";import{S}from"./uLM-EaCyc6aA.js";import{g as J}from"./N6gwA50uHdd6.js";const h=R((l,s)=>{const{icon:n,children:c,isRound:i,"aria-label":a,...t}=l,r=n||c,d=p.isValidElement(r)?p.cloneElement(r,{"aria-hidden":!0,focusable:!1}):null;return e.jsx(v,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:s,"aria-label":a,...t,children:d})});h.displayName="IconButton";const Q=A({displayName:"ArrowRightIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),e.jsx("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})}),X=A({displayName:"ArrowLeftIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),e.jsx("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})}),x="main";class Y{mapId=x;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new O({title:"OSM",isBaseLayer:!0,olLayer:new H({source:new F})})]}}}const ee={"sidebar-app":{name:"sidebar-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Y,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:q,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:V,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}}},oe='.layout-sidebar{z-index:99}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem}',re=["en"];function te(l){switch(l){case"en":return K(()=>import("./BIbDu0DJPL_e.js"),[],import.meta.url).then(s=>s.default)}throw new Error(`Unsupported locale: '${l}'`)}const ae=B(oe),le=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:te,locales:re,packages:ee,styles:ae},Symbol.toStringTag,{value:"Module"})),ie="@open-pioneer/experimental-layout-sidebar",ne=Z.bind(void 0,ie),I=60,M=180,C=300;function se({defaultExpanded:l,expandedChanged:s,sidebarWidthChanged:n,items:c}){const i=ne(),[a,{toggle:t}]=ce(c),{isOpen:r,onToggle:d}=j({defaultIsOpen:l,onOpen(){s?.(!0)},onClose(){s?.(!1)}}),{isOpen:u,onToggle:f}=j(),g=a.size>0;p.useEffect(()=>{g&&!u&&f(),!g&&u&&f()},[g]),p.useEffect(()=>{if(n){let o=I;r&&(o=M),u&&(o+=C),n(o)}},[r,u]);const E=c?.map((o,_)=>{const k="white",y=a.has(o.id)?"outline":"ghost";return e.jsx("div",{children:r?e.jsx(v,{leftIcon:o.icon,variant:y,colorScheme:k,onClick:()=>t(o),children:o.label},o.id):e.jsx(z,{hasArrow:!0,label:o.label,placement:"right",children:e.jsx(h,{"aria-label":o.label,variant:y,colorScheme:k,icon:o.icon,onClick:()=>t(o)})},o.id)},_)}),L=c?.filter(o=>a.has(o.id)).map(o=>e.jsxs("div",{className:"content-section",children:[e.jsxs(m,{className:"content-header",alignItems:"center",children:[e.jsx(b,{children:o.label}),e.jsx(S,{}),e.jsx(P,{onClick:()=>t(o)})]}),e.jsx("div",{className:"content-body",children:o.content})]},o.id)),w=i.formatMessage({id:r?"toggle.collapse":"toggle.expand"});return e.jsxs(m,{className:"layout-sidebar",children:[e.jsxs(b,{className:"layout-sidebar-main",display:"flex",flexDirection:"column",width:r?`${M}px`:`${I}px`,padding:"10px",gap:"10px",children:[E,e.jsx(S,{}),e.jsx(z,{label:w,hasArrow:!0,placement:"right",children:e.jsx(h,{"aria-label":w,variant:"ghost",icon:r?e.jsx(X,{}):e.jsx(Q,{}),onClick:d})})]}),e.jsx(b,{className:"layout-sidebar-content",width:u?`${C}px`:"0px",children:L})]})}function ce(l){const[s,n]=p.useReducer((i,a)=>{switch(a.type){case"toggle":{const t=new Set(i);return t.has(a.id)?t.delete(a.id):t.add(a.id),t}case"retain":{const t=new Set(a.ids),r=new Set(i);for(const d of r)t.has(d)||r.delete(d);return r}}},void 0,()=>new Set),c=p.useCallback(i=>{n({type:"toggle",id:i.id})},[n]);return p.useEffect(()=>{n({type:"retain",ids:l?.map(i=>i.id)??[]})},[l,n]),[s,{toggle:c}]}const pe=[796987,5827477,796987,5827477];function de(){const[l,s]=p.useState(),[n,c]=p.useState(!0),i=$(x),a=()=>{const r=i.map?.olMap;r&&r?.getView().fit(pe,{maxZoom:13})},t=[{id:"sandbox",icon:e.jsx(J,{}),label:"Sandbox",content:e.jsx(v,{onClick:a,children:"Center Berlin"})}];return e.jsx(m,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(D,{title:e.jsx(b,{textAlign:"center",py:1,px:1,children:e.jsx(W,{size:"md",children:"Sidebar sample"})}),children:e.jsxs(m,{flex:"1",direction:"column",position:"relative",children:[e.jsx(se,{defaultExpanded:n,expandedChanged:r=>c(r),sidebarWidthChanged:r=>s({left:r}),items:t}),e.jsx(G,{mapId:x,viewPadding:l,viewPaddingChangeBehavior:"preserve-extent",children:e.jsx(U,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsx(b,{backgroundColor:"whiteAlpha.800",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:"This is a sample for a sidebar component."})})})]})})})}const ue=T({component:de,theme:N,appMetadata:le});customElements.define("sidebar-app",ue); +import{h as R,r as p,j as e,b as v,a as B,H as j,l as z,B as b,C as P,f as T}from"./BeGW3nmX4tO2.js";import{t as N}from"./BITOzfKCAZEE.js";import{S as O,T as H,O as F,M as q,H as V,u as Z,k as m,i as $,g as D,h as W,l as G,m as U}from"./BjXju3dgjVrG.js";import{_ as K}from"./CmsKOCeNyeyo.js";import{c as A}from"./Dc3xe-fbgKeJ.js";import{S}from"./uLM-EaCyc6aA.js";import{g as J}from"./N6gwA50uHdd6.js";const h=R((l,s)=>{const{icon:n,children:c,isRound:i,"aria-label":a,...t}=l,r=n||c,d=p.isValidElement(r)?p.cloneElement(r,{"aria-hidden":!0,focusable:!1}):null;return e.jsx(v,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:s,"aria-label":a,...t,children:d})});h.displayName="IconButton";const Q=A({displayName:"ArrowRightIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),e.jsx("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})}),X=A({displayName:"ArrowLeftIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),e.jsx("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})}),x="main";class Y{mapId=x;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new O({title:"OSM",isBaseLayer:!0,olLayer:new H({source:new F})})]}}}const ee={"sidebar-app":{name:"sidebar-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Y,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:q,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:V,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}}},oe='.layout-sidebar{z-index:99}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem}',re=["en"];function te(l){switch(l){case"en":return K(()=>import("./BIbDu0DJPL_e.js"),[],import.meta.url).then(s=>s.default)}throw new Error(`Unsupported locale: '${l}'`)}const ae=B(oe),le=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:te,locales:re,packages:ee,styles:ae},Symbol.toStringTag,{value:"Module"})),ie="@open-pioneer/experimental-layout-sidebar",ne=Z.bind(void 0,ie),I=60,M=180,C=300;function se({defaultExpanded:l,expandedChanged:s,sidebarWidthChanged:n,items:c}){const i=ne(),[a,{toggle:t}]=ce(c),{isOpen:r,onToggle:d}=j({defaultIsOpen:l,onOpen(){s?.(!0)},onClose(){s?.(!1)}}),{isOpen:u,onToggle:f}=j(),g=a.size>0;p.useEffect(()=>{g&&!u&&f(),!g&&u&&f()},[g]),p.useEffect(()=>{if(n){let o=I;r&&(o=M),u&&(o+=C),n(o)}},[r,u]);const E=c?.map((o,_)=>{const k="white",y=a.has(o.id)?"outline":"ghost";return e.jsx("div",{children:r?e.jsx(v,{leftIcon:o.icon,variant:y,colorScheme:k,onClick:()=>t(o),children:o.label},o.id):e.jsx(z,{hasArrow:!0,label:o.label,placement:"right",children:e.jsx(h,{"aria-label":o.label,variant:y,colorScheme:k,icon:o.icon,onClick:()=>t(o)})},o.id)},_)}),L=c?.filter(o=>a.has(o.id)).map(o=>e.jsxs("div",{className:"content-section",children:[e.jsxs(m,{className:"content-header",alignItems:"center",children:[e.jsx(b,{children:o.label}),e.jsx(S,{}),e.jsx(P,{onClick:()=>t(o)})]}),e.jsx("div",{className:"content-body",children:o.content})]},o.id)),w=i.formatMessage({id:r?"toggle.collapse":"toggle.expand"});return e.jsxs(m,{className:"layout-sidebar",children:[e.jsxs(b,{className:"layout-sidebar-main",display:"flex",flexDirection:"column",width:r?`${M}px`:`${I}px`,padding:"10px",gap:"10px",children:[E,e.jsx(S,{}),e.jsx(z,{label:w,hasArrow:!0,placement:"right",children:e.jsx(h,{"aria-label":w,variant:"ghost",icon:r?e.jsx(X,{}):e.jsx(Q,{}),onClick:d})})]}),e.jsx(b,{className:"layout-sidebar-content",width:u?`${C}px`:"0px",children:L})]})}function ce(l){const[s,n]=p.useReducer((i,a)=>{switch(a.type){case"toggle":{const t=new Set(i);return t.has(a.id)?t.delete(a.id):t.add(a.id),t}case"retain":{const t=new Set(a.ids),r=new Set(i);for(const d of r)t.has(d)||r.delete(d);return r}}},void 0,()=>new Set),c=p.useCallback(i=>{n({type:"toggle",id:i.id})},[n]);return p.useEffect(()=>{n({type:"retain",ids:l?.map(i=>i.id)??[]})},[l,n]),[s,{toggle:c}]}const pe=[796987,5827477,796987,5827477];function de(){const[l,s]=p.useState(),[n,c]=p.useState(!0),i=$(x),a=()=>{const r=i.map?.olMap;r&&r?.getView().fit(pe,{maxZoom:13})},t=[{id:"sandbox",icon:e.jsx(J,{}),label:"Sandbox",content:e.jsx(v,{onClick:a,children:"Center Berlin"})}];return e.jsx(m,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(D,{title:e.jsx(b,{textAlign:"center",py:1,px:1,children:e.jsx(W,{size:"md",children:"Sidebar sample"})}),children:e.jsxs(m,{flex:"1",direction:"column",position:"relative",children:[e.jsx(se,{defaultExpanded:n,expandedChanged:r=>c(r),sidebarWidthChanged:r=>s({left:r}),items:t}),e.jsx(G,{mapId:x,viewPadding:l,viewPaddingChangeBehavior:"preserve-extent",children:e.jsx(U,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsx(b,{backgroundColor:"whiteAlpha.800",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:"This is a sample for a sidebar component."})})})]})})})}const ue=T({component:de,theme:N,appMetadata:le});customElements.define("sidebar-app",ue); diff --git a/openlayers-base-packages/assets/KBPejCE8jGNR.js b/openlayers-base-packages/assets/CNbNRI3VgyNo.js similarity index 95% rename from openlayers-base-packages/assets/KBPejCE8jGNR.js rename to openlayers-base-packages/assets/CNbNRI3VgyNo.js index 1f0e3c00d..bd6d18c42 100644 --- a/openlayers-base-packages/assets/KBPejCE8jGNR.js +++ b/openlayers-base-packages/assets/CNbNRI3VgyNo.js @@ -1 +1 @@ -var w=o=>{throw TypeError(o)};var x=(o,e,t)=>e.has(o)||w("Cannot "+t);var i=(o,e,t)=>(x(o,e,"read from private field"),t?t.call(o):e.get(o)),m=(o,e,t)=>e.has(o)?w("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),c=(o,e,t,r)=>(x(o,e,"write to private field"),r?r.call(o,t):e.set(o,t),t);import{a as j,r as y,j as n,B as g,V as R,f as A}from"./BeGW3nmX4tO2.js";import{bO as T,at as G,bP as E,S as s,T as M,O,bM as W,bN as q,b as I,a as P,M as B,H,u as N,k as b,g as k,h as S,l as U,m as h}from"./q4MLRk0u7kxl.js";import{W as D,b as V}from"./DKlkM3Rq-R3t.js";import{G as C,e as F,T as K}from"./Bh6kFNuDWsIw.js";import{_}from"./CmsKOCeNyeyo.js";import{T as z}from"./DM7y0OoBz9e5.js";import"./N6gwA50uHdd6.js";import"./UlulYB4e5zqK.js";import"./D3gFeNVkNTAB.js";import"./BOXMyqr06QWb.js";import"./39a3VBatk_eA.js";import"./BMuX_dt1qyjL.js";import"./Gw82v5PUNK8h.js";import"./uLM-EaCyc6aA.js";import"./ElmKiM7bxWM_.js";import"./B3on_k3411E6.js";var u;class $ extends T{constructor(t){const r=t.layers,p=new G({layers:r.map(l=>l.olLayer)});super({...t,olLayer:p});m(this,u);c(this,u,new J(r,this))}get type(){return"group"}get legend(){}get layers(){return i(this,u)}get sublayers(){}get olLayer(){return super.olLayer}__attachToMap(t){super.__attachToMap(t),this.layers.__getRawLayers().forEach(r=>r.__attachToMap(t))}}u=new WeakMap;var a,d;class J{constructor(e,t){m(this,a);m(this,d);e=e.slice();for(const r of e)if(r instanceof T)r.__attachToGroup(t);else throw new Error(`Layer '${r.id}' of group '${t.id}' does not implement abstract class '${E.name}`);c(this,a,e),c(this,d,t)}destroy(){for(const e of i(this,a))e.__detachFromGroup(),e.destroy();c(this,a,[])}getItems(e){return this.getLayers(e)}getLayers(e){return i(this,a).slice()}__getRawLayers(){return i(this,a)}__getParent(){return i(this,d)}}a=new WeakMap,d=new WeakMap;const L=$,f="main";class Y{mapId=f;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},projection:"EPSG:25832",layers:[new s({id:"topplus_open",title:"TopPlus Open",isBaseLayer:!0,visible:!0,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_openERROR/1.0.0/WMTSCapabilities.xml",olLayer:v("web")}),new s({id:"topplus_open_grau",title:"TopPlus Open (Grau)",isBaseLayer:!0,visible:!1,healthCheck:async()=>{function e(t){return new Promise(r=>setTimeout(r,t))}return await e(2e3),"error"},olLayer:v("web_grau")}),new s({id:"topplus_open_light",title:"TopPlus Open (Light)",isBaseLayer:!0,visible:!1,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml",olLayer:v("web_light")}),new s({title:"OSM",visible:!1,isBaseLayer:!0,olLayer:new M({source:new O})}),new L({id:"group_edu",title:"Bildung",layers:[new s({title:"Kindertagesstätten",id:"kitas",visible:!0,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml",olLayer:Q()}),X()]}),new L({title:"Verkehr",id:"group_transport",layers:[new s({title:"Haltestellen Stadt Rostock",id:"bustops",visible:!0,description:"Haltestellen des öffentlichen Personenverkehrs in der Hanse- und Universitätsstadt Rostock.",olLayer:Z()}),ee()]})]}}}function v(o){const e=[-380316598427299e-8,880590808284866e-8],t=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],r=new Array(t.length);for(let l=0;lDatenquellen`});return new M({source:p})}function Z(){const o=new I({url:"https://geo.sv.rostock.de/download/opendata/haltestellen/haltestellen.json",format:new C,attributions:"Haltestellen Stadt Rostock, Creative Commons CC Zero License (cc-zero)"});return new P({source:o})}function Q(){const o=new I({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new C,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'});return new P({source:o})}function X(){return new D({title:"Schulstandorte",id:"schools",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,healthCheck:async()=>{function o(e){return new Promise(t=>setTimeout(t,e))}return await o(3e3),"error"},url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW"}],sourceOptions:{ratio:1}})}function ee(){return new D({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",sublayers:[{name:"1",title:"Verwaltungen"},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}const oe={"toc-map":{name:"toc-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Y,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:B,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/map-ui-components":{name:"@open-pioneer/map-ui-components",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:H,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},te=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}',re=["en","de"];function ne(o){switch(o){case"en":return _(()=>import("./Clif7aTs2LHR.js"),[],import.meta.url).then(e=>e.default);case"de":return _(()=>import("./Cx-LAL-6-WEp.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${o}'`)}const ae=j(te),le=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:ne,locales:re,packages:oe,styles:ae},Symbol.toStringTag,{value:"Module"})),ie="toc-map",se=N.bind(void 0,ie);function pe(){const o=se(),e=y.useId(),[t,r]=y.useState(!0);function p(){r(!t)}return n.jsx(b,{height:"100%",direction:"column",overflow:"hidden",children:n.jsx(k,{title:n.jsx(g,{role:"region","aria-label":o.formatMessage({id:"ariaLabel.header"}),textAlign:"center",py:1,children:n.jsx(S,{size:"md",children:"OpenLayers Base Packages - TOC and Health Check Sample"})}),children:n.jsx(b,{flex:"1",direction:"column",children:n.jsxs(U,{mapId:f,role:"main","aria-label":o.formatMessage({id:"ariaLabel.map"}),children:[n.jsx(h,{position:"top-left",horizontalGap:10,verticalGap:10,children:t&&n.jsx(g,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:350,children:t&&n.jsx(g,{role:"dialog","aria-labelledby":e,children:n.jsx(k,{title:n.jsx(S,{id:e,size:"md",mb:2,children:o.formatMessage({id:"tocTitle"})}),children:n.jsx(F,{mapId:f,showTools:!0,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})})}),n.jsx(h,{position:"top-right",horizontalGap:10,verticalGap:10,children:n.jsxs(R,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[n.jsx(z,{as:"b",children:"Description"}),n.jsxs(z,{children:["This application can be used to test the TOC, including health checks for configured layers. Two base layers (",'"',"TopPlus Open",'"'," and ",'"',"TopPlus Open (Grau)",'"',") and one operational layer (",'"',"Schulstandorte",'"',") will be unavailable and should be marked as such by the UI."]})]})}),n.jsx(h,{position:"bottom-right",horizontalGap:10,verticalGap:45,children:n.jsx(b,{role:"toolbar","aria-label":o.formatMessage({id:"ariaLabel.toolbar"}),direction:"column",gap:1,padding:1,children:n.jsx(K,{label:o.formatMessage({id:"tocTitle"}),icon:n.jsx(V,{}),isActive:t,onClick:p})})})]})})})})}const ce=A({component:pe,appMetadata:le,async resolveConfig(o){const e=o.getAttribute("forced-locale");if(e)return{locale:e}}});customElements.define("toc-map-app",ce);const ue=document.getElementsByTagName("body")[0];de();function de(){const o=window.location.search,t=new URLSearchParams(o).get("lang"),r=document.createElement("toc-map-app");r.classList.add("full-height"),r.classList.add("app"),r.setAttribute("id","test"),t&&r.setAttribute("forced-locale",t),ue.appendChild(r)} +var w=o=>{throw TypeError(o)};var x=(o,e,t)=>e.has(o)||w("Cannot "+t);var i=(o,e,t)=>(x(o,e,"read from private field"),t?t.call(o):e.get(o)),m=(o,e,t)=>e.has(o)?w("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),c=(o,e,t,r)=>(x(o,e,"write to private field"),r?r.call(o,t):e.set(o,t),t);import{a as j,r as y,j as n,B as g,V as R,f as A}from"./BeGW3nmX4tO2.js";import{bO as T,at as G,bP as E,S as s,T as M,O,bM as W,bN as q,b as I,a as P,M as B,H,u as N,k as b,g as k,h as S,l as U,m as h}from"./BjXju3dgjVrG.js";import{W as D,b as V}from"./D-bB0Gg-LQGA.js";import{G as C,e as F,T as K}from"./Dh5p1D7VwmQC.js";import{_}from"./CmsKOCeNyeyo.js";import{T as z}from"./DM7y0OoBz9e5.js";import"./N6gwA50uHdd6.js";import"./D1e64i0R5zCb.js";import"./D6bui9ILupw_.js";import"./B48t-8DI4YWS.js";import"./39a3VBatk_eA.js";import"./BMuX_dt1qyjL.js";import"./Gw82v5PUNK8h.js";import"./uLM-EaCyc6aA.js";import"./ElmKiM7bxWM_.js";import"./B3on_k3411E6.js";var u;class $ extends T{constructor(t){const r=t.layers,p=new G({layers:r.map(l=>l.olLayer)});super({...t,olLayer:p});m(this,u);c(this,u,new J(r,this))}get type(){return"group"}get legend(){}get layers(){return i(this,u)}get sublayers(){}get olLayer(){return super.olLayer}__attachToMap(t){super.__attachToMap(t),this.layers.__getRawLayers().forEach(r=>r.__attachToMap(t))}}u=new WeakMap;var a,d;class J{constructor(e,t){m(this,a);m(this,d);e=e.slice();for(const r of e)if(r instanceof T)r.__attachToGroup(t);else throw new Error(`Layer '${r.id}' of group '${t.id}' does not implement abstract class '${E.name}`);c(this,a,e),c(this,d,t)}destroy(){for(const e of i(this,a))e.__detachFromGroup(),e.destroy();c(this,a,[])}getItems(e){return this.getLayers(e)}getLayers(e){return i(this,a).slice()}__getRawLayers(){return i(this,a)}__getParent(){return i(this,d)}}a=new WeakMap,d=new WeakMap;const L=$,f="main";class Y{mapId=f;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},projection:"EPSG:25832",layers:[new s({id:"topplus_open",title:"TopPlus Open",isBaseLayer:!0,visible:!0,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_openERROR/1.0.0/WMTSCapabilities.xml",olLayer:v("web")}),new s({id:"topplus_open_grau",title:"TopPlus Open (Grau)",isBaseLayer:!0,visible:!1,healthCheck:async()=>{function e(t){return new Promise(r=>setTimeout(r,t))}return await e(2e3),"error"},olLayer:v("web_grau")}),new s({id:"topplus_open_light",title:"TopPlus Open (Light)",isBaseLayer:!0,visible:!1,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml",olLayer:v("web_light")}),new s({title:"OSM",visible:!1,isBaseLayer:!0,olLayer:new M({source:new O})}),new L({id:"group_edu",title:"Bildung",layers:[new s({title:"Kindertagesstätten",id:"kitas",visible:!0,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml",olLayer:Q()}),X()]}),new L({title:"Verkehr",id:"group_transport",layers:[new s({title:"Haltestellen Stadt Rostock",id:"bustops",visible:!0,description:"Haltestellen des öffentlichen Personenverkehrs in der Hanse- und Universitätsstadt Rostock.",olLayer:Z()}),ee()]})]}}}function v(o){const e=[-380316598427299e-8,880590808284866e-8],t=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],r=new Array(t.length);for(let l=0;lDatenquellen`});return new M({source:p})}function Z(){const o=new I({url:"https://geo.sv.rostock.de/download/opendata/haltestellen/haltestellen.json",format:new C,attributions:"Haltestellen Stadt Rostock, Creative Commons CC Zero License (cc-zero)"});return new P({source:o})}function Q(){const o=new I({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new C,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'});return new P({source:o})}function X(){return new D({title:"Schulstandorte",id:"schools",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,healthCheck:async()=>{function o(e){return new Promise(t=>setTimeout(t,e))}return await o(3e3),"error"},url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW"}],sourceOptions:{ratio:1}})}function ee(){return new D({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",sublayers:[{name:"1",title:"Verwaltungen"},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}const oe={"toc-map":{name:"toc-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Y,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:B,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/map-ui-components":{name:"@open-pioneer/map-ui-components",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:H,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},te=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}',re=["en","de"];function ne(o){switch(o){case"en":return _(()=>import("./Clif7aTs2LHR.js"),[],import.meta.url).then(e=>e.default);case"de":return _(()=>import("./Cx-LAL-6-WEp.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${o}'`)}const ae=j(te),le=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:ne,locales:re,packages:oe,styles:ae},Symbol.toStringTag,{value:"Module"})),ie="toc-map",se=N.bind(void 0,ie);function pe(){const o=se(),e=y.useId(),[t,r]=y.useState(!0);function p(){r(!t)}return n.jsx(b,{height:"100%",direction:"column",overflow:"hidden",children:n.jsx(k,{title:n.jsx(g,{role:"region","aria-label":o.formatMessage({id:"ariaLabel.header"}),textAlign:"center",py:1,children:n.jsx(S,{size:"md",children:"OpenLayers Base Packages - TOC and Health Check Sample"})}),children:n.jsx(b,{flex:"1",direction:"column",children:n.jsxs(U,{mapId:f,role:"main","aria-label":o.formatMessage({id:"ariaLabel.map"}),children:[n.jsx(h,{position:"top-left",horizontalGap:10,verticalGap:10,children:t&&n.jsx(g,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:350,children:t&&n.jsx(g,{role:"dialog","aria-labelledby":e,children:n.jsx(k,{title:n.jsx(S,{id:e,size:"md",mb:2,children:o.formatMessage({id:"tocTitle"})}),children:n.jsx(F,{mapId:f,showTools:!0,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})})}),n.jsx(h,{position:"top-right",horizontalGap:10,verticalGap:10,children:n.jsxs(R,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[n.jsx(z,{as:"b",children:"Description"}),n.jsxs(z,{children:["This application can be used to test the TOC, including health checks for configured layers. Two base layers (",'"',"TopPlus Open",'"'," and ",'"',"TopPlus Open (Grau)",'"',") and one operational layer (",'"',"Schulstandorte",'"',") will be unavailable and should be marked as such by the UI."]})]})}),n.jsx(h,{position:"bottom-right",horizontalGap:10,verticalGap:45,children:n.jsx(b,{role:"toolbar","aria-label":o.formatMessage({id:"ariaLabel.toolbar"}),direction:"column",gap:1,padding:1,children:n.jsx(K,{label:o.formatMessage({id:"tocTitle"}),icon:n.jsx(V,{}),isActive:t,onClick:p})})})]})})})})}const ce=A({component:pe,appMetadata:le,async resolveConfig(o){const e=o.getAttribute("forced-locale");if(e)return{locale:e}}});customElements.define("toc-map-app",ce);const ue=document.getElementsByTagName("body")[0];de();function de(){const o=window.location.search,t=new URLSearchParams(o).get("lang"),r=document.createElement("toc-map-app");r.classList.add("full-height"),r.classList.add("app"),r.setAttribute("id","test"),t&&r.setAttribute("forced-locale",t),ue.appendChild(r)} diff --git a/openlayers-base-packages/assets/CUFyGsD6LmhE.js b/openlayers-base-packages/assets/CnbEnyqUeRNR.js similarity index 86% rename from openlayers-base-packages/assets/CUFyGsD6LmhE.js rename to openlayers-base-packages/assets/CnbEnyqUeRNR.js index 4a0483bde..2f9cb390b 100644 --- a/openlayers-base-packages/assets/CUFyGsD6LmhE.js +++ b/openlayers-base-packages/assets/CnbEnyqUeRNR.js @@ -1 +1 @@ -import{j as t,B as d,c as q,a as U,r as p,b as I,i as K,d as $,e as A,F as Z,f as Y}from"./BeGW3nmX4tO2.js";import{V as J,S as j,T as X,O as Q,a as C,b as N,c as ee,C as te,F as oe,r as T,d as D,e as re,w as ie,H as ne,M as ae,u as se,f as le,g as v,h as x,i as L,j as M,k as y,D as ce,l as pe,m as de}from"./q4MLRk0u7kxl.js";import{W as V,P as ue,a as me,b as ge,c as he,d as fe,e as be,f as ve,g as xe,h as we}from"./DKlkM3Rq-R3t.js";import{W as R,E as Se,V as ye,S as ke,O as Me,C as je,a as Ce,b as Le,L as ze,M as _e,c as Pe,d as Ie,P as Ae,N as Te}from"./zSfZu7QVHLy4.js";import{G as O,u as De,T as h,P as Re,a as Ee,b as Fe,c as qe,d as Ne,e as Ve}from"./Bh6kFNuDWsIw.js";import{T as z}from"./DM7y0OoBz9e5.js";import{N as Oe,P as He}from"./BMa7TTlUnkcm.js";import{V as Ge,S as We,I as Be,Z as Ue,a as Ke}from"./DTvtLMAVxi8t.js";import{_ as E}from"./CmsKOCeNyeyo.js";import{u as b,D as $e}from"./BOXMyqr06QWb.js";import{H}from"./D1wuBnUV5g92.js";import{G}from"./N6gwA50uHdd6.js";import{R as Ze}from"./BknMP--fbInd.js";import{C as Ye}from"./DVoKYMLD67a4.js";import"./UlulYB4e5zqK.js";import"./D3gFeNVkNTAB.js";import"./39a3VBatk_eA.js";import"./Dc3xe-fbgKeJ.js";import"./BMuX_dt1qyjL.js";import"./cMbQJw1ZoqBe.js";import"./uLM-EaCyc6aA.js";import"./ElmKiM7bxWM_.js";import"./Gw82v5PUNK8h.js";import"./B3on_k3411E6.js";const Je={height:"25px",width:"25px",borderColor:"#4cb3ff",borderWidth:"3px",borderRadius:"50%",display:"inline-block "};function Xe(r){return t.jsxs(d,{children:[t.jsx(z,{children:r.layer.title}),t.jsx(d,{style:Je})]})}const _="main";class Qe{mapId=_;vectorSourceFactory;constructor(e){this.vectorSourceFactory=e.references.vectorSourceFactory}async getMapConfig(){return{advanced:{view:new J({center:[404747,5757920],zoom:13,constrainResolution:!0,projection:"EPSG:25832"})},layers:[...et(),rt(),tt(this.vectorSourceFactory),ot(),it()]}}}function et(){return[new R({isBaseLayer:!0,title:"Topplus grau",url:"https://www.wmts.nrw.de/topplus_open/1.0.0/WMTSCapabilities.xml",name:"topplus_grau",matrixSet:"EPSG_25832_14",visible:!1,sourceOptions:{attributions:`Kartendarstellung und Präsentationsgraphiken: © Bundesamt für Kartographie und Geodäsie ${new Date().getFullYear()}, Datenquellen`}}),new R({isBaseLayer:!0,title:"Topplus farbig",url:"https://www.wmts.nrw.de/topplus_open/1.0.0/WMTSCapabilities.xml",name:"topplus_col",matrixSet:"EPSG_25832_14",visible:!0,sourceOptions:{attributions:`Kartendarstellung und Präsentationsgraphiken: © Bundesamt für Kartographie und Geodäsie ${new Date().getFullYear()}, Datenquellen`}}),new j({title:"OpenStreetMaps",visible:!1,isBaseLayer:!0,olLayer:new X({source:new Q})})]}function tt(r){const e="https://ogc-api-test.nrw.de/inspire-us-krankenhaus/v1",o="governmentalservice",i=r.createVectorSource({strategy:"next",baseUrl:e,collectionId:o,limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/25832",attributions:`Land NRW (${new Date().getFullYear()}), Datenlizenz Deutschland - Namensnennung - Version 2.0, Datenquelle`}),n=new C({source:i});return new j({id:"krankenhaus",title:"Krankenhäuser",visible:!1,olLayer:n,attributes:{collectionURL:e+"/collections/"+o}})}function ot(){return new V({title:"Schulstandorte",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW",attributes:{legend:{}}}],sourceOptions:{ratio:1}})}function rt(){return new V({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",visible:!0,sublayers:[{name:"1",title:"Verwaltungen",attributes:{legend:{imageUrl:"https://www.wms.nrw.de/legends/wms/strassen_nrw_wms/1.png"}}},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}function it(){const r={Component:Xe},e=new N({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new O,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'}),o=new C({source:e,style:new ee({image:new te({fill:new oe({color:"blue"}),radius:4})})});return new j({id:"ogc_kitas",title:"Kindertagesstätten",visible:!0,olLayer:o,attributes:{legend:r,resultListMetadata:[{id:"id",displayName:"ID",width:100,getPropertyValue(i){return i.id}},{propertyName:"pointOfContact.address.postCode",displayName:"PLZ",width:120},{propertyName:"name",displayName:"Name"},{propertyName:"inspireId",displayName:"inspireID"},{displayName:"Gefördert",width:160,getPropertyValue(i){switch(i.properties?.gefoerdert){case"ja":return!0;case"nein":return!1;default:return i.properties?.gefoerdert}}}]}})}class nt{label;filteredTypes;httpService;constructor(e,o,i){this.label=e,this.filteredTypes=o,this.httpService=i}async search(e,{mapProjection:o,signal:i}){const n=await this.request(e,100,i),a=new O({dataProjection:"EPSG:4326",featureProjection:o});return n.features.filter(s=>this.filteredTypes.includes(s.properties.type)).map((s,l)=>{const c=a.readGeometry(s.geometry);return{id:s.properties.osm_id||l,label:this.createLabel(s),geometry:c,properties:s.properties}})}async request(e,o,i){const n=new URL("https://photon.komoot.io/api?");n.searchParams.set("q",e),n.searchParams.set("lang","de"),n.searchParams.set("lat","51.961563"),n.searchParams.set("lon","7.628202"),n.searchParams.set("limit",o.toString());const a=await this.httpService.fetch(n,{signal:i});if(!a.ok)throw new Error("Request failed: "+a.status);return await a.json()}createLabel(e){return`${e.properties.name} (${e.properties.osm_value?e.properties.osm_value+", ":""}${e.properties.postcode?e.properties.postcode+", ":""}${e.properties.city?e.properties.city+", ":""}${e.properties.country?e.properties.country+")":")"}`}}const at=q("ol-app:AppModel");function k(r){return r==="selection"||r==="measurement"||r.startsWith("editing-")}class st{_mapRegistry;_vectorSelectionSourceFactory;_httpService;_resources=[];_featureHighlight=void 0;_mainContent=T(["toc"]);_searchSources=D();_selectionSources=D();_sourceMetadata=re();_resultListState=T({key:0,open:!1,input:void 0});constructor({references:e}){this._mapRegistry=e.mapRegistry,this._vectorSelectionSourceFactory=e.vectorSelectionSourceFactory,this._httpService=e.httpService,this.initSearchSources(),this.initSelectionSources().catch(o=>{at.error("Failed to initialize selection sources",o)})}destroy(){this.clearHighlight(),this._resources.forEach(e=>e.destroy())}get mainContent(){return this._mainContent.value}get searchSources(){return this._searchSources}get selectionSources(){return this._selectionSources}get sourceMetadata(){return this._sourceMetadata}get resultListState(){return this._resultListState.value}toggleMainContent(e){const o=this._mainContent.value;if(o.includes(e)){this._mainContent.value=o.filter(n=>n!==e);return}let i;k(e)?(i=[e],this.clearHighlight()):(i=o.filter(n=>!k(n)),i.push(e)),this._mainContent.value=i}hideContent(e){this._mainContent.value=this._mainContent.value.filter(o=>o!==e)}clearInteractions(){this._mainContent.value=this._mainContent.value.filter(e=>!k(e))}setResultListInput(e){const o=this._resultListState.value;this._resultListState.value={open:!0,key:o.key+1,input:e}}setResultListVisibility(e){this._resultListState.value={...this._resultListState.value,open:e}}highlightAndZoom(e,o){const i=e.olMap.getViewport();this.clearHighlight(),this._featureHighlight=e.highlightAndZoom(o,{viewPadding:i&&i.offsetWidth<1e3?{top:150,right:75,bottom:50,left:75}:{top:150,right:400,bottom:50,left:400}})}zoom(e,o){const i=e.olMap.getViewport();e.zoom(o,{viewPadding:i&&i.offsetWidth<1e3?{top:150,right:75,bottom:50,left:75}:{top:150,right:400,bottom:50,left:400}})}clearHighlight(){this._featureHighlight&&(this._featureHighlight.destroy(),this._featureHighlight=void 0)}initSearchSources(){const e=new nt("Photon Geocoder",["city","street"],this._httpService);this._searchSources.push(e)}async initSelectionSources(){const e=["ogc_kitas","ogc_kataster"],i=(await this._mapRegistry.expectMapModel(_)).layers.getOperationalLayers({sortByDisplayOrder:!0});for(const n of i){if(!e.includes(n.id)||!lt(n.olLayer))continue;const a=this._vectorSelectionSourceFactory.createSelectionSource({vectorLayer:n.olLayer,label:n.title}),s=ie(()=>[a.status],([l])=>{l!=="available"&&(l==="unavailable"||l?.kind==="unavailable")&&this.clearHighlight()});this._resources.push(s,a),this._selectionSources.unshift(a),this._sourceMetadata.set(a,n.attributes.resultListMetadata)}}}function lt(r){return r instanceof C&&r.getSource()instanceof N}const ct={"ol-map":{name:"ol-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Qe,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{vectorSourceFactory:{name:"ogc-features.VectorSourceFactory",qualifier:void 0,all:!1}}},AppModel:{name:"AppModel",clazz:st,provides:[{name:"ol-app.AppModel",qualifier:void 0}],references:{vectorSelectionSourceFactory:{name:"selection.VectorSelectionSourceFactory",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1},mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1},{name:"ol-app.AppModel",qualifier:void 0,all:!1},{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"editing.EditingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:ne,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:Oe,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:ae,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:Ge,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:We,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-ui-components":{name:"@open-pioneer/map-ui-components",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/editing":{name:"@open-pioneer/editing",services:{EditingServiceImpl:{name:"EditingServiceImpl",clazz:Se,provides:[{name:"editing.EditingService",qualifier:void 0}],references:{mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{polygonStyle:{value:{"fill-color":"rgba(255,255,255,0.4)","stroke-color":"red","stroke-width":1.25,"circle-radius":3,"circle-fill-color":"red","circle-stroke-width":1.25,"circle-stroke-color":"red"},required:!1},vertexStyle:{value:{"circle-radius":3,"circle-fill-color":"red","circle-stroke-width":1.25,"circle-stroke-color":"red"},required:!1}}},"@open-pioneer/legend":{name:"@open-pioneer/legend",services:{},ui:{references:[]},properties:{}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/printing":{name:"@open-pioneer/printing",services:{PrintingServiceImpl:{name:"PrintingServiceImpl",clazz:He,provides:[{name:"printing.PrintingService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"printing.PrintingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}},"@open-pioneer/selection":{name:"@open-pioneer/selection",services:{VectorSelectionSourceFactory:{name:"VectorSelectionSourceFactory",clazz:ye,provides:[{name:"selection.VectorSelectionSourceFactory",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}}},pt='.search-box{position:absolute;width:500px;max-width:100%;z-index:1}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.editing-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.editing-tooltip-hidden{visibility:hidden}.measurement-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:#000000e6;border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff}.printing-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;-webkit-user-select:none;user-select:none;pointer-events:all;cursor:wait;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#b4b4b4cc}.printing-overlay-status{flex:1 1 auto;font-size:1.5em;text-align:center}.printing-scale-bar.ol-scale-bar{left:var(--printing-scale-bar-left);bottom:var(--printing-scale-bar-bottom)}.selection-drag-box{background-color:#ffffff4d!important;border:3px solid var(--chakra-colors-background_primary)!important}.selection-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.selection .react-select{cursor:default}.map-container .selection-active{cursor:crosshair}.map-container .selection-inactive{cursor:no-drop}.selection-source-value.selection-source-value--disabled{opacity:.4}.selection-source-value.selection-source-value--disabled span{margin:0 6px 0 0}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)}',dt=["en","de"];function ut(r){switch(r){case"en":return E(()=>import("./BYGrfKr5WBJ9.js"),[],import.meta.url).then(e=>e.default);case"de":return E(()=>import("./C-s9YzO5rJEK.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${r}'`)}const mt=U(pt),gt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:ut,locales:dt,packages:ct,styles:mt},Symbol.toStringTag,{value:"Module"})),W="ol-map",g=le.bind(void 0,W),u=se.bind(void 0,W),ht=q("ol-app:Editing");function F(r){const e=ft(r.kind),o=p.useId(),i=u();return t.jsx(d,{role:"dialog","aria-labelledby":o,children:t.jsx(v,{title:t.jsx(x,{id:o,size:"md",mb:2,children:i.formatMessage({id:"editing.title"})}),children:t.jsxs(d,{overflowY:"auto",maxHeight:300,children:[t.jsx(z,{textAlign:"center",children:i.formatMessage({id:"editing.active"})}),t.jsxs(H,{mt:4,align:"center",justify:"center",children:[t.jsx(I,{onClick:()=>{e?.reset()},children:i.formatMessage({id:"editing.resetGeometry"})}),t.jsx(I,{onClick:()=>{e?.destroy()},children:i.formatMessage({id:"editing.abort"})})]})]})})})}function ft(r){const e=g("notifier.NotificationService"),o=g("editing.EditingService"),i=u(),n=g("ol-app.AppModel"),{map:a}=L(),[s,l]=p.useState();return p.useEffect(()=>{if(!a)return;const c=new bt(e,o,a,i,n,r);return l(c),()=>{c.destroy(),l(void 0)}},[n,o,i,a,e,r]),s}class bt{notificationService;editingService;map;intl;appModel;kind;job;constructor(e,o,i,n,a,s){this.notificationService=e,this.editingService=o,this.map=i,this.intl=n,this.appModel=a,this.kind=s;let l;switch(s){case"create":l=this.createJob();break;case"update":l=this.updateJob();break}this.job=l,this.job.run().catch(c=>{K(c)||(ht.error("Edit operation failed",c),this.notificationService.notify({level:"error",message:this.intl.formatMessage({id:"editing.error"})}))}).finally(()=>{this.destroy()})}destroy(){this.job?.destroy(),this.job=void 0,this.appModel.hideContent(`editing-${this.kind}`)}reset(){this.job?.reset()}createJob(){let e;return{destroy(){e?.stop(),e=void 0},reset(){e?.reset()},run:async()=>{const o=this.findLayer(),i=new URL(o.attributes.collectionURL+"/items");e=this.editingService.createFeature(this.map,i);const n=await e.whenComplete();if(e=void 0,!n)return;this.notificationService.notify({level:"info",message:this.intl.formatMessage({id:"editing.create.featureCreated"},{featureId:n.featureId})}),(o?.olLayer).getSource()?.refresh()}}}updateJob(){const e=this.map,o=new AbortController,i=o.signal;let n,a,s;function l(){a&&e.olMap.removeInteraction(a),a&&a.dispose(),n&&n.destroy(),o.abort(),a=void 0,n=void 0}return{destroy(){l(),s?.stop(),s=void 0},reset(){s?.reset()},run:async()=>{const c=this.findLayer(),m=c.olLayer,w=new URL(c.attributes.collectionURL+"/items");a=new ke({layers:[m]}),e.olMap.addInteraction(a),n=vt(this.intl,e.olMap),n.element.classList.remove("editing-tooltip-hidden");let f;for(;;){const{selected:P,deselected:B}=await xt(a,i);if(P.length===1&&B.length===0){l(),f=P[0];break}}if(!f)throw Error("Feature is undefined");s=this.editingService.updateFeature(e,w,f);const S=await s.whenComplete();S&&(this.notificationService.notify({level:"info",message:this.intl.formatMessage({id:"editing.update.featureModified"},{featureId:S.featureId})}),m.getSource()?.refresh())}}}findLayer(){const e=this.map.layers.getLayerById("krankenhaus");if(!e)throw new Error("Layer not found");return e}}function vt(r,e){const o=document.createElement("div");o.className="editing-tooltip editing-tooltip-hidden",o.textContent=r.formatMessage({id:"editing.update.tooltip.select"});const i=new Me({element:o,offset:[15,0],positioning:"center-left"}),n=e.on("pointermove",a=>{a.dragging||i.setPosition(a.coordinate)});return e.addOverlay(i),{overlay:i,element:o,destroy(){M(n),e.removeOverlay(i)}}}function xt(r,e){let o;const{promise:i,resolve:n,reject:a}=$();if(e.aborted)return a(A()),i;const s=()=>{o&&M(o),o=void 0,a(A())};return e.addEventListener("abort",s),o=r.on("select",l=>{e.removeEventListener("abort",s),o&&M(o),o=void 0,n(l)}),i}function wt(){const r=u();return t.jsxs(y,{role:"region","aria-label":r.formatMessage({id:"ariaLabel.footer"}),gap:3,alignItems:"center",justifyContent:"center",children:[t.jsx(je,{precision:2,displayProjectionCode:"EPSG:4326"}),t.jsx(Ce,{}),t.jsx(Le,{})]})}function St(){const r=p.useId(),e=u();return t.jsx(d,{role:"dialog","aria-labelledby":r,children:t.jsx(v,{title:t.jsx(x,{id:r,size:"md",mb:2,children:e.formatMessage({id:"legendTitle"})}),children:t.jsx(d,{overflowY:"auto",maxHeight:300,children:t.jsx(ze,{showBaseLayers:!0})})})})}function yt(r){return G({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M6.5 9.5l1.546 -1.311"},child:[]},{tag:"path",attr:{d:"M14 5.5l3 1.5"},child:[]},{tag:"path",attr:{d:"M18.5 10l-1.185 3.318m-1.062 2.972l-.253 .71"},child:[]},{tag:"path",attr:{d:"M13.5 17.5l-7 -5"},child:[]},{tag:"path",attr:{d:"M3 3l18 18"},child:[]}]})(r)}function kt(r){return G({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M6.5 9.5l3.5 -3"},child:[]},{tag:"path",attr:{d:"M14 5.5l3 1.5"},child:[]},{tag:"path",attr:{d:"M18.5 10l-2.5 7"},child:[]},{tag:"path",attr:{d:"M13.5 17.5l-7 -5"},child:[]}]})(r)}function Mt(){const r=u(),e=g("ol-app.AppModel"),o=b(()=>e.resultListState,[e]),i=o.open,{isTocActive:n,isLegendActive:a,isPrintingActive:s}=b(()=>({isTocActive:e.mainContent.includes("toc"),isLegendActive:e.mainContent.includes("legend"),isPrintingActive:e.mainContent.includes("printing")}),[e]);return t.jsxs(y,{role:"toolbar","aria-label":r.formatMessage({id:"ariaLabel.toolbar"}),direction:"column",gap:1,padding:1,children:[t.jsx(jt,{}),o.input&&t.jsx(h,{label:r.formatMessage({id:"resultListTitle"}),icon:t.jsx(me,{}),isActive:o.open,onClick:()=>e.setResultListVisibility(!i)}),t.jsx(h,{label:r.formatMessage({id:"tocTitle"}),icon:t.jsx(ge,{}),isActive:n,onClick:()=>e.toggleMainContent("toc")}),t.jsx(h,{label:r.formatMessage({id:"legendTitle"}),icon:t.jsx(he,{}),isActive:a,onClick:()=>e.toggleMainContent("legend")}),t.jsx(h,{label:r.formatMessage({id:"printingTitle"}),icon:t.jsx(fe,{}),isActive:s,onClick:()=>e.toggleMainContent("printing")}),t.jsx(Be,{}),t.jsx(Ue,{}),t.jsx(Ke,{})]})}function jt(){const r=u(),e=g("ol-app.AppModel"),[o,i]=p.useState(!1),{isSelectionActive:n,isMeasurementActive:a,isEditingCreateActive:s,isEditingUpdateActive:l}=b(()=>({isSelectionActive:e.mainContent.includes("selection"),isMeasurementActive:e.mainContent.includes("measurement"),isEditingCreateActive:e.mainContent.includes("editing-create"),isEditingUpdateActive:e.mainContent.includes("editing-update")}),[e]),c=f=>()=>{f(),i(!1)},m={placement:"top"},w=t.jsxs(t.Fragment,{children:[t.jsx(h,{label:s?r.formatMessage({id:"editing.stopTitle"}):r.formatMessage({id:"editing.create.startTitle"}),icon:s?t.jsx(yt,{}):t.jsx(kt,{}),isActive:s,onClick:c(()=>e.toggleMainContent("editing-create")),tooltipProps:m}),t.jsx(h,{label:l?r.formatMessage({id:"editing.stopTitle"}):r.formatMessage({id:"editing.update.startTitle"}),icon:l?t.jsx(be,{}):t.jsx(ve,{}),isActive:l,onClick:c(()=>e.toggleMainContent("editing-update")),tooltipProps:m}),t.jsx(h,{label:r.formatMessage({id:"measurementTitle"}),icon:t.jsx(xe,{}),isActive:a,onClick:c(()=>e.toggleMainContent("measurement")),tooltipProps:m}),t.jsx(h,{label:r.formatMessage({id:"selectionTitle"}),icon:t.jsx(we,{}),isActive:n,onClick:c(()=>e.toggleMainContent("selection")),tooltipProps:m})]});return t.jsxs(Re,{placement:"left",isLazy:!0,onOpen:()=>i(!0),onClose:()=>i(!1),isOpen:o,children:[t.jsx(Ee,{children:t.jsx(Ct,{})}),t.jsx(Z,{children:t.jsxs(Fe,{width:"auto",children:[t.jsx(qe,{}),t.jsx(Ne,{children:t.jsx(H,{spacing:2,children:w})})]})})]})}const Ct=p.forwardRef(function(e,o){const i=u(),n=De(),{onClick:a,...s}=n.getTriggerProps();return t.jsx(h,{ref:o,label:i.formatMessage({id:"mapInteractions.title"}),icon:t.jsx(ue,{}),onClick:a,buttonProps:s})});function Lt(){const r=p.useId(),e=u();return t.jsx(d,{role:"dialog","aria-labelledby":r,children:t.jsx(v,{title:t.jsx(x,{id:r,size:"md",mb:2,children:e.formatMessage({id:"measurementTitle"})}),children:t.jsx(_e,{})})})}function zt(){const r=g("ol-app.AppModel"),e=b(()=>r.resultListState,[r]),[o,i]=p.useState([]),[n,a]=p.useState([]),s=p.useCallback(l=>{i(l.features),a(l.getFeatureIds())},[]);return p.useEffect(()=>{console.log("Anzahl Features: "+o.length),console.log("SelectedIds: "+n.toString())},[o,n]),e.input&&t.jsx(d,{className:"result-list-container",position:"absolute",visibility:e.open?"visible":"hidden",bottom:"0",backgroundColor:"white",width:"100%",height:"400px",zIndex:1,borderTop:"2px solid",borderBottom:"2px solid",borderColor:"trails.100",children:t.jsx(Ze,{input:e.input,onSelectionChange:s},e.key)})}function _t(){const{map:r}=L(),e=g("ol-app.AppModel"),o=b(()=>e.searchSources.getItems(),[e]);function i(a){if(console.debug("The user selected the following item: ",a.result),!r)return;const s=a.result.geometry;s&&e.highlightAndZoom(r,[s])}function n(){console.debug("The user cleared the search"),e.clearHighlight()}return t.jsx(d,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",mt:5,className:"search-box",children:t.jsx(Pe,{sources:o,maxResultsPerGroup:10,onSelect:i,onClear:n})})}function Pt(){const r=u(),e=g("notifier.NotificationService"),o=p.useId(),{map:i}=L(),n=g("ol-app.AppModel"),a=b(()=>n.selectionSources.getItems(),[n]),s={numberOptions:{maximumFractionDigits:3},dateOptions:{dateStyle:"medium",timeStyle:"medium",timeZone:"UTC"}};function l(m){const{source:w,results:f}=m;if(!i){console.debug("Map not ready");return}const S=n.sourceMetadata.get(w);if(!S){console.warn("Can not show results because no metadata could be found");return}n.setResultListInput({columns:S,data:f,formatOptions:s}),e.notify({level:"info",message:r.formatMessage({id:"foundResults"},{resultsCount:f.length}),displayDuration:4e3})}function c(m){n.clearHighlight()}return t.jsx(d,{role:"dialog","aria-labelledby":o,children:t.jsx(v,{title:t.jsx(x,{id:o,size:"md",mb:2,children:r.formatMessage({id:"selectionTitle"})}),children:t.jsx(Ie,{sources:a,onSelectionComplete:l,onSelectionSourceChanged:c})})})}function It(){const r=p.useId(),e=u();return t.jsx(d,{role:"dialog","aria-labelledby":r,children:t.jsx(v,{title:t.jsx(x,{id:r,size:"md",mb:2,children:t.jsx(z,{children:e.formatMessage({id:"tocTitle"})})}),children:t.jsx(d,{overflowY:"auto",maxHeight:300,children:t.jsx(Ve,{showTools:!0,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})})}function At(){const r=p.useId(),e=u();return t.jsx(d,{role:"dialog","aria-labelledby":r,children:t.jsx(v,{title:t.jsx(x,{id:r,size:"md",mb:2,children:e.formatMessage({id:"printingTitle"})}),children:t.jsx(Ae,{})})})}function Tt(){const r=u(),e=g("ol-app.AppModel"),{resultListState:o,mainContent:i}=b(()=>({resultListState:e.resultListState,mainContent:e.mainContent}),[e]),n=o.input&&o.open;return t.jsx(ce,{mapId:_,children:t.jsxs(y,{height:"100%",direction:"column",overflow:"hidden",children:[t.jsx(Te,{position:"top-right"}),t.jsxs(v,{title:t.jsx(d,{role:"region","aria-label":r.formatMessage({id:"ariaLabel.header"}),textAlign:"center",py:1,children:t.jsx(x,{size:"md",children:"Sample Application"})}),children:[t.jsx(y,{flex:"1",direction:"column",position:"relative",children:t.jsxs(pe,{role:"main","aria-label":r.formatMessage({id:"ariaLabel.map"}),viewPadding:n?{bottom:400}:void 0,children:[t.jsx(Ye,{centerContent:!0,children:t.jsx(_t,{})}),t.jsx(Dt,{mainContent:i}),t.jsx(de,{position:"bottom-right",horizontalGap:10,verticalGap:45,children:t.jsx(Mt,{})}),t.jsx(zt,{})]})}),t.jsx(wt,{})]})]})})}function Dt(r){const{mainContent:e}=r,o=p.useMemo(()=>{const i=n=>{switch(n){case"toc":return t.jsx(It,{},n);case"legend":return t.jsx(St,{},n);case"printing":return t.jsx(At,{},n);case"selection":return t.jsx(Pt,{},n);case"measurement":return t.jsx(Lt,{},n);case"editing-create":return t.jsx(F,{kind:"create"},n);case"editing-update":return t.jsx(F,{kind:"update"},n)}};return e.map(n=>i(n))},[e]);return t.jsx(Rt,{children:o})}function Rt(r){const e=r.children,o=[];for(const i of e)i&&(o.length&&o.push(t.jsx($e,{mt:4,mb:4},o.length)),o.push(i));if(o.length!==0)return t.jsx(d,{position:"absolute",top:"100px",left:4,maxHeight:"calc(100% - 140px)",width:350,maxWidth:350,zIndex:1,backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",overflow:"auto",children:o})}const Et=new URLSearchParams(window.location.search),Ft=Et.get("lang")||void 0,qt=Y({component:Tt,appMetadata:gt,config:{locale:Ft,properties:{"@open-pioneer/local-storage":{storageId:"ol-app-state"}}}});customElements.define("ol-map-app",qt); +import{j as t,B as d,c as q,a as U,r as p,b as I,i as K,d as $,e as A,F as Z,f as Y}from"./BeGW3nmX4tO2.js";import{V as J,S as j,T as X,O as Q,a as C,b as N,c as ee,C as te,F as oe,r as T,d as D,e as re,w as ie,H as ne,M as ae,u as se,f as le,g as v,h as x,i as L,j as M,k as y,D as ce,l as pe,m as de}from"./BjXju3dgjVrG.js";import{W as V,P as ue,a as me,b as ge,c as he,d as fe,e as be,f as ve,g as xe,h as we}from"./D-bB0Gg-LQGA.js";import{W as R,E as Se,V as ye,S as ke,O as Me,C as je,a as Ce,b as Le,L as ze,M as _e,c as Pe,d as Ie,P as Ae,N as Te}from"./C17aK7N5tIXO.js";import{G as O,u as De,T as h,P as Re,a as Ee,b as Fe,c as qe,d as Ne,e as Ve}from"./Dh5p1D7VwmQC.js";import{T as z}from"./DM7y0OoBz9e5.js";import{N as Oe,P as He}from"./DxMLgDGBfPwt.js";import{V as Ge,S as We,I as Be,Z as Ue,a as Ke}from"./CwsqFmMu0f5O.js";import{_ as E}from"./CmsKOCeNyeyo.js";import{u as b,D as $e}from"./B48t-8DI4YWS.js";import{H}from"./D1wuBnUV5g92.js";import{G}from"./N6gwA50uHdd6.js";import{R as Ze}from"./BLXiixlbHf0g.js";import{C as Ye}from"./DVoKYMLD67a4.js";import"./D1e64i0R5zCb.js";import"./D6bui9ILupw_.js";import"./39a3VBatk_eA.js";import"./Dc3xe-fbgKeJ.js";import"./BMuX_dt1qyjL.js";import"./cMbQJw1ZoqBe.js";import"./uLM-EaCyc6aA.js";import"./ElmKiM7bxWM_.js";import"./Gw82v5PUNK8h.js";import"./B3on_k3411E6.js";const Je={height:"25px",width:"25px",borderColor:"#4cb3ff",borderWidth:"3px",borderRadius:"50%",display:"inline-block "};function Xe(r){return t.jsxs(d,{children:[t.jsx(z,{children:r.layer.title}),t.jsx(d,{style:Je})]})}const _="main";class Qe{mapId=_;vectorSourceFactory;constructor(e){this.vectorSourceFactory=e.references.vectorSourceFactory}async getMapConfig(){return{advanced:{view:new J({center:[404747,5757920],zoom:13,constrainResolution:!0,projection:"EPSG:25832"})},layers:[...et(),rt(),tt(this.vectorSourceFactory),ot(),it()]}}}function et(){return[new R({isBaseLayer:!0,title:"Topplus grau",url:"https://www.wmts.nrw.de/topplus_open/1.0.0/WMTSCapabilities.xml",name:"topplus_grau",matrixSet:"EPSG_25832_14",visible:!1,sourceOptions:{attributions:`Kartendarstellung und Präsentationsgraphiken: © Bundesamt für Kartographie und Geodäsie ${new Date().getFullYear()}, Datenquellen`}}),new R({isBaseLayer:!0,title:"Topplus farbig",url:"https://www.wmts.nrw.de/topplus_open/1.0.0/WMTSCapabilities.xml",name:"topplus_col",matrixSet:"EPSG_25832_14",visible:!0,sourceOptions:{attributions:`Kartendarstellung und Präsentationsgraphiken: © Bundesamt für Kartographie und Geodäsie ${new Date().getFullYear()}, Datenquellen`}}),new j({title:"OpenStreetMaps",visible:!1,isBaseLayer:!0,olLayer:new X({source:new Q})})]}function tt(r){const e="https://ogc-api-test.nrw.de/inspire-us-krankenhaus/v1",o="governmentalservice",i=r.createVectorSource({strategy:"next",baseUrl:e,collectionId:o,limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/25832",attributions:`Land NRW (${new Date().getFullYear()}), Datenlizenz Deutschland - Namensnennung - Version 2.0, Datenquelle`}),n=new C({source:i});return new j({id:"krankenhaus",title:"Krankenhäuser",visible:!1,olLayer:n,attributes:{collectionURL:e+"/collections/"+o}})}function ot(){return new V({title:"Schulstandorte",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW",attributes:{legend:{}}}],sourceOptions:{ratio:1}})}function rt(){return new V({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",visible:!0,sublayers:[{name:"1",title:"Verwaltungen",attributes:{legend:{imageUrl:"https://www.wms.nrw.de/legends/wms/strassen_nrw_wms/1.png"}}},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}function it(){const r={Component:Xe},e=new N({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new O,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'}),o=new C({source:e,style:new ee({image:new te({fill:new oe({color:"blue"}),radius:4})})});return new j({id:"ogc_kitas",title:"Kindertagesstätten",visible:!0,olLayer:o,attributes:{legend:r,resultListMetadata:[{id:"id",displayName:"ID",width:100,getPropertyValue(i){return i.id}},{propertyName:"pointOfContact.address.postCode",displayName:"PLZ",width:120},{propertyName:"name",displayName:"Name"},{propertyName:"inspireId",displayName:"inspireID"},{displayName:"Gefördert",width:160,getPropertyValue(i){switch(i.properties?.gefoerdert){case"ja":return!0;case"nein":return!1;default:return i.properties?.gefoerdert}}}]}})}class nt{label;filteredTypes;httpService;constructor(e,o,i){this.label=e,this.filteredTypes=o,this.httpService=i}async search(e,{mapProjection:o,signal:i}){const n=await this.request(e,100,i),a=new O({dataProjection:"EPSG:4326",featureProjection:o});return n.features.filter(s=>this.filteredTypes.includes(s.properties.type)).map((s,l)=>{const c=a.readGeometry(s.geometry);return{id:s.properties.osm_id||l,label:this.createLabel(s),geometry:c,properties:s.properties}})}async request(e,o,i){const n=new URL("https://photon.komoot.io/api?");n.searchParams.set("q",e),n.searchParams.set("lang","de"),n.searchParams.set("lat","51.961563"),n.searchParams.set("lon","7.628202"),n.searchParams.set("limit",o.toString());const a=await this.httpService.fetch(n,{signal:i});if(!a.ok)throw new Error("Request failed: "+a.status);return await a.json()}createLabel(e){return`${e.properties.name} (${e.properties.osm_value?e.properties.osm_value+", ":""}${e.properties.postcode?e.properties.postcode+", ":""}${e.properties.city?e.properties.city+", ":""}${e.properties.country?e.properties.country+")":")"}`}}const at=q("ol-app:AppModel");function k(r){return r==="selection"||r==="measurement"||r.startsWith("editing-")}class st{_mapRegistry;_vectorSelectionSourceFactory;_httpService;_resources=[];_featureHighlight=void 0;_mainContent=T(["toc"]);_searchSources=D();_selectionSources=D();_sourceMetadata=re();_resultListState=T({key:0,open:!1,input:void 0});constructor({references:e}){this._mapRegistry=e.mapRegistry,this._vectorSelectionSourceFactory=e.vectorSelectionSourceFactory,this._httpService=e.httpService,this.initSearchSources(),this.initSelectionSources().catch(o=>{at.error("Failed to initialize selection sources",o)})}destroy(){this.clearHighlight(),this._resources.forEach(e=>e.destroy())}get mainContent(){return this._mainContent.value}get searchSources(){return this._searchSources}get selectionSources(){return this._selectionSources}get sourceMetadata(){return this._sourceMetadata}get resultListState(){return this._resultListState.value}toggleMainContent(e){const o=this._mainContent.value;if(o.includes(e)){this._mainContent.value=o.filter(n=>n!==e);return}let i;k(e)?(i=[e],this.clearHighlight()):(i=o.filter(n=>!k(n)),i.push(e)),this._mainContent.value=i}hideContent(e){this._mainContent.value=this._mainContent.value.filter(o=>o!==e)}clearInteractions(){this._mainContent.value=this._mainContent.value.filter(e=>!k(e))}setResultListInput(e){const o=this._resultListState.value;this._resultListState.value={open:!0,key:o.key+1,input:e}}setResultListVisibility(e){this._resultListState.value={...this._resultListState.value,open:e}}highlightAndZoom(e,o){const i=e.olMap.getViewport();this.clearHighlight(),this._featureHighlight=e.highlightAndZoom(o,{viewPadding:i&&i.offsetWidth<1e3?{top:150,right:75,bottom:50,left:75}:{top:150,right:400,bottom:50,left:400}})}zoom(e,o){const i=e.olMap.getViewport();e.zoom(o,{viewPadding:i&&i.offsetWidth<1e3?{top:150,right:75,bottom:50,left:75}:{top:150,right:400,bottom:50,left:400}})}clearHighlight(){this._featureHighlight&&(this._featureHighlight.destroy(),this._featureHighlight=void 0)}initSearchSources(){const e=new nt("Photon Geocoder",["city","street"],this._httpService);this._searchSources.push(e)}async initSelectionSources(){const e=["ogc_kitas","ogc_kataster"],i=(await this._mapRegistry.expectMapModel(_)).layers.getOperationalLayers({sortByDisplayOrder:!0});for(const n of i){if(!e.includes(n.id)||!lt(n.olLayer))continue;const a=this._vectorSelectionSourceFactory.createSelectionSource({vectorLayer:n.olLayer,label:n.title}),s=ie(()=>[a.status],([l])=>{l!=="available"&&(l==="unavailable"||l?.kind==="unavailable")&&this.clearHighlight()});this._resources.push(s,a),this._selectionSources.unshift(a),this._sourceMetadata.set(a,n.attributes.resultListMetadata)}}}function lt(r){return r instanceof C&&r.getSource()instanceof N}const ct={"ol-map":{name:"ol-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Qe,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{vectorSourceFactory:{name:"ogc-features.VectorSourceFactory",qualifier:void 0,all:!1}}},AppModel:{name:"AppModel",clazz:st,provides:[{name:"ol-app.AppModel",qualifier:void 0}],references:{vectorSelectionSourceFactory:{name:"selection.VectorSelectionSourceFactory",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1},mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1},{name:"ol-app.AppModel",qualifier:void 0,all:!1},{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"editing.EditingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:ne,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:Oe,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:ae,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:Ge,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:We,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-ui-components":{name:"@open-pioneer/map-ui-components",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/printing":{name:"@open-pioneer/printing",services:{PrintingServiceImpl:{name:"PrintingServiceImpl",clazz:He,provides:[{name:"printing.PrintingService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"printing.PrintingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/editing":{name:"@open-pioneer/editing",services:{EditingServiceImpl:{name:"EditingServiceImpl",clazz:Se,provides:[{name:"editing.EditingService",qualifier:void 0}],references:{mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{polygonStyle:{value:{"fill-color":"rgba(255,255,255,0.4)","stroke-color":"red","stroke-width":1.25,"circle-radius":3,"circle-fill-color":"red","circle-stroke-width":1.25,"circle-stroke-color":"red"},required:!1},vertexStyle:{value:{"circle-radius":3,"circle-fill-color":"red","circle-stroke-width":1.25,"circle-stroke-color":"red"},required:!1}}},"@open-pioneer/legend":{name:"@open-pioneer/legend",services:{},ui:{references:[]},properties:{}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/selection":{name:"@open-pioneer/selection",services:{VectorSelectionSourceFactory:{name:"VectorSelectionSourceFactory",clazz:ye,provides:[{name:"selection.VectorSelectionSourceFactory",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}}},pt='.search-box{position:absolute;width:500px;max-width:100%;z-index:1}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.printing-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;-webkit-user-select:none;user-select:none;pointer-events:all;cursor:wait;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#b4b4b4cc}.printing-overlay-status{flex:1 1 auto;font-size:1.5em;text-align:center}.printing-scale-bar.ol-scale-bar{left:var(--printing-scale-bar-left);bottom:var(--printing-scale-bar-bottom)}.editing-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.editing-tooltip-hidden{visibility:hidden}.measurement-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:#000000e6;border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none}.selection-drag-box{background-color:#ffffff4d!important;border:3px solid var(--chakra-colors-background_primary)!important}.selection-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.selection .react-select{cursor:default}.map-container .selection-active{cursor:crosshair}.map-container .selection-inactive{cursor:no-drop}.selection-source-value.selection-source-value--disabled{opacity:.4}.selection-source-value.selection-source-value--disabled span{margin:0 6px 0 0}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)}',dt=["en","de"];function ut(r){switch(r){case"en":return E(()=>import("./BYGrfKr5WBJ9.js"),[],import.meta.url).then(e=>e.default);case"de":return E(()=>import("./C-s9YzO5rJEK.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${r}'`)}const mt=U(pt),gt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:ut,locales:dt,packages:ct,styles:mt},Symbol.toStringTag,{value:"Module"})),W="ol-map",g=le.bind(void 0,W),u=se.bind(void 0,W),ht=q("ol-app:Editing");function F(r){const e=ft(r.kind),o=p.useId(),i=u();return t.jsx(d,{role:"dialog","aria-labelledby":o,children:t.jsx(v,{title:t.jsx(x,{id:o,size:"md",mb:2,children:i.formatMessage({id:"editing.title"})}),children:t.jsxs(d,{overflowY:"auto",maxHeight:300,children:[t.jsx(z,{textAlign:"center",children:i.formatMessage({id:"editing.active"})}),t.jsxs(H,{mt:4,align:"center",justify:"center",children:[t.jsx(I,{onClick:()=>{e?.reset()},children:i.formatMessage({id:"editing.resetGeometry"})}),t.jsx(I,{onClick:()=>{e?.destroy()},children:i.formatMessage({id:"editing.abort"})})]})]})})})}function ft(r){const e=g("notifier.NotificationService"),o=g("editing.EditingService"),i=u(),n=g("ol-app.AppModel"),{map:a}=L(),[s,l]=p.useState();return p.useEffect(()=>{if(!a)return;const c=new bt(e,o,a,i,n,r);return l(c),()=>{c.destroy(),l(void 0)}},[n,o,i,a,e,r]),s}class bt{notificationService;editingService;map;intl;appModel;kind;job;constructor(e,o,i,n,a,s){this.notificationService=e,this.editingService=o,this.map=i,this.intl=n,this.appModel=a,this.kind=s;let l;switch(s){case"create":l=this.createJob();break;case"update":l=this.updateJob();break}this.job=l,this.job.run().catch(c=>{K(c)||(ht.error("Edit operation failed",c),this.notificationService.notify({level:"error",message:this.intl.formatMessage({id:"editing.error"})}))}).finally(()=>{this.destroy()})}destroy(){this.job?.destroy(),this.job=void 0,this.appModel.hideContent(`editing-${this.kind}`)}reset(){this.job?.reset()}createJob(){let e;return{destroy(){e?.stop(),e=void 0},reset(){e?.reset()},run:async()=>{const o=this.findLayer(),i=new URL(o.attributes.collectionURL+"/items");e=this.editingService.createFeature(this.map,i);const n=await e.whenComplete();if(e=void 0,!n)return;this.notificationService.notify({level:"info",message:this.intl.formatMessage({id:"editing.create.featureCreated"},{featureId:n.featureId})}),(o?.olLayer).getSource()?.refresh()}}}updateJob(){const e=this.map,o=new AbortController,i=o.signal;let n,a,s;function l(){a&&e.olMap.removeInteraction(a),a&&a.dispose(),n&&n.destroy(),o.abort(),a=void 0,n=void 0}return{destroy(){l(),s?.stop(),s=void 0},reset(){s?.reset()},run:async()=>{const c=this.findLayer(),m=c.olLayer,w=new URL(c.attributes.collectionURL+"/items");a=new ke({layers:[m]}),e.olMap.addInteraction(a),n=vt(this.intl,e.olMap),n.element.classList.remove("editing-tooltip-hidden");let f;for(;;){const{selected:P,deselected:B}=await xt(a,i);if(P.length===1&&B.length===0){l(),f=P[0];break}}if(!f)throw Error("Feature is undefined");s=this.editingService.updateFeature(e,w,f);const S=await s.whenComplete();S&&(this.notificationService.notify({level:"info",message:this.intl.formatMessage({id:"editing.update.featureModified"},{featureId:S.featureId})}),m.getSource()?.refresh())}}}findLayer(){const e=this.map.layers.getLayerById("krankenhaus");if(!e)throw new Error("Layer not found");return e}}function vt(r,e){const o=document.createElement("div");o.className="editing-tooltip editing-tooltip-hidden",o.textContent=r.formatMessage({id:"editing.update.tooltip.select"});const i=new Me({element:o,offset:[15,0],positioning:"center-left"}),n=e.on("pointermove",a=>{a.dragging||i.setPosition(a.coordinate)});return e.addOverlay(i),{overlay:i,element:o,destroy(){M(n),e.removeOverlay(i)}}}function xt(r,e){let o;const{promise:i,resolve:n,reject:a}=$();if(e.aborted)return a(A()),i;const s=()=>{o&&M(o),o=void 0,a(A())};return e.addEventListener("abort",s),o=r.on("select",l=>{e.removeEventListener("abort",s),o&&M(o),o=void 0,n(l)}),i}function wt(){const r=u();return t.jsxs(y,{role:"region","aria-label":r.formatMessage({id:"ariaLabel.footer"}),gap:3,alignItems:"center",justifyContent:"center",children:[t.jsx(je,{precision:2,displayProjectionCode:"EPSG:4326"}),t.jsx(Ce,{}),t.jsx(Le,{})]})}function St(){const r=p.useId(),e=u();return t.jsx(d,{role:"dialog","aria-labelledby":r,children:t.jsx(v,{title:t.jsx(x,{id:r,size:"md",mb:2,children:e.formatMessage({id:"legendTitle"})}),children:t.jsx(d,{overflowY:"auto",maxHeight:300,children:t.jsx(ze,{showBaseLayers:!0})})})})}function yt(r){return G({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M6.5 9.5l1.546 -1.311"},child:[]},{tag:"path",attr:{d:"M14 5.5l3 1.5"},child:[]},{tag:"path",attr:{d:"M18.5 10l-1.185 3.318m-1.062 2.972l-.253 .71"},child:[]},{tag:"path",attr:{d:"M13.5 17.5l-7 -5"},child:[]},{tag:"path",attr:{d:"M3 3l18 18"},child:[]}]})(r)}function kt(r){return G({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M6.5 9.5l3.5 -3"},child:[]},{tag:"path",attr:{d:"M14 5.5l3 1.5"},child:[]},{tag:"path",attr:{d:"M18.5 10l-2.5 7"},child:[]},{tag:"path",attr:{d:"M13.5 17.5l-7 -5"},child:[]}]})(r)}function Mt(){const r=u(),e=g("ol-app.AppModel"),o=b(()=>e.resultListState,[e]),i=o.open,{isTocActive:n,isLegendActive:a,isPrintingActive:s}=b(()=>({isTocActive:e.mainContent.includes("toc"),isLegendActive:e.mainContent.includes("legend"),isPrintingActive:e.mainContent.includes("printing")}),[e]);return t.jsxs(y,{role:"toolbar","aria-label":r.formatMessage({id:"ariaLabel.toolbar"}),direction:"column",gap:1,padding:1,children:[t.jsx(jt,{}),o.input&&t.jsx(h,{label:r.formatMessage({id:"resultListTitle"}),icon:t.jsx(me,{}),isActive:o.open,onClick:()=>e.setResultListVisibility(!i)}),t.jsx(h,{label:r.formatMessage({id:"tocTitle"}),icon:t.jsx(ge,{}),isActive:n,onClick:()=>e.toggleMainContent("toc")}),t.jsx(h,{label:r.formatMessage({id:"legendTitle"}),icon:t.jsx(he,{}),isActive:a,onClick:()=>e.toggleMainContent("legend")}),t.jsx(h,{label:r.formatMessage({id:"printingTitle"}),icon:t.jsx(fe,{}),isActive:s,onClick:()=>e.toggleMainContent("printing")}),t.jsx(Be,{}),t.jsx(Ue,{}),t.jsx(Ke,{})]})}function jt(){const r=u(),e=g("ol-app.AppModel"),[o,i]=p.useState(!1),{isSelectionActive:n,isMeasurementActive:a,isEditingCreateActive:s,isEditingUpdateActive:l}=b(()=>({isSelectionActive:e.mainContent.includes("selection"),isMeasurementActive:e.mainContent.includes("measurement"),isEditingCreateActive:e.mainContent.includes("editing-create"),isEditingUpdateActive:e.mainContent.includes("editing-update")}),[e]),c=f=>()=>{f(),i(!1)},m={placement:"top"},w=t.jsxs(t.Fragment,{children:[t.jsx(h,{label:s?r.formatMessage({id:"editing.stopTitle"}):r.formatMessage({id:"editing.create.startTitle"}),icon:s?t.jsx(yt,{}):t.jsx(kt,{}),isActive:s,onClick:c(()=>e.toggleMainContent("editing-create")),tooltipProps:m}),t.jsx(h,{label:l?r.formatMessage({id:"editing.stopTitle"}):r.formatMessage({id:"editing.update.startTitle"}),icon:l?t.jsx(be,{}):t.jsx(ve,{}),isActive:l,onClick:c(()=>e.toggleMainContent("editing-update")),tooltipProps:m}),t.jsx(h,{label:r.formatMessage({id:"measurementTitle"}),icon:t.jsx(xe,{}),isActive:a,onClick:c(()=>e.toggleMainContent("measurement")),tooltipProps:m}),t.jsx(h,{label:r.formatMessage({id:"selectionTitle"}),icon:t.jsx(we,{}),isActive:n,onClick:c(()=>e.toggleMainContent("selection")),tooltipProps:m})]});return t.jsxs(Re,{placement:"left",isLazy:!0,onOpen:()=>i(!0),onClose:()=>i(!1),isOpen:o,children:[t.jsx(Ee,{children:t.jsx(Ct,{})}),t.jsx(Z,{children:t.jsxs(Fe,{width:"auto",children:[t.jsx(qe,{}),t.jsx(Ne,{children:t.jsx(H,{spacing:2,children:w})})]})})]})}const Ct=p.forwardRef(function(e,o){const i=u(),n=De(),{onClick:a,...s}=n.getTriggerProps();return t.jsx(h,{ref:o,label:i.formatMessage({id:"mapInteractions.title"}),icon:t.jsx(ue,{}),onClick:a,buttonProps:s})});function Lt(){const r=p.useId(),e=u();return t.jsx(d,{role:"dialog","aria-labelledby":r,children:t.jsx(v,{title:t.jsx(x,{id:r,size:"md",mb:2,children:e.formatMessage({id:"measurementTitle"})}),children:t.jsx(_e,{})})})}function zt(){const r=g("ol-app.AppModel"),e=b(()=>r.resultListState,[r]),[o,i]=p.useState([]),[n,a]=p.useState([]),s=p.useCallback(l=>{i(l.features),a(l.getFeatureIds())},[]);return p.useEffect(()=>{console.log("Anzahl Features: "+o.length),console.log("SelectedIds: "+n.toString())},[o,n]),e.input&&t.jsx(d,{className:"result-list-container",position:"absolute",visibility:e.open?"visible":"hidden",bottom:"0",backgroundColor:"white",width:"100%",height:"400px",zIndex:1,borderTop:"2px solid",borderBottom:"2px solid",borderColor:"trails.100",children:t.jsx(Ze,{input:e.input,onSelectionChange:s},e.key)})}function _t(){const{map:r}=L(),e=g("ol-app.AppModel"),o=b(()=>e.searchSources.getItems(),[e]);function i(a){if(console.debug("The user selected the following item: ",a.result),!r)return;const s=a.result.geometry;s&&e.highlightAndZoom(r,[s])}function n(){console.debug("The user cleared the search"),e.clearHighlight()}return t.jsx(d,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",mt:5,className:"search-box",children:t.jsx(Pe,{sources:o,maxResultsPerGroup:10,onSelect:i,onClear:n})})}function Pt(){const r=u(),e=g("notifier.NotificationService"),o=p.useId(),{map:i}=L(),n=g("ol-app.AppModel"),a=b(()=>n.selectionSources.getItems(),[n]),s={numberOptions:{maximumFractionDigits:3},dateOptions:{dateStyle:"medium",timeStyle:"medium",timeZone:"UTC"}};function l(m){const{source:w,results:f}=m;if(!i){console.debug("Map not ready");return}const S=n.sourceMetadata.get(w);if(!S){console.warn("Can not show results because no metadata could be found");return}n.setResultListInput({columns:S,data:f,formatOptions:s}),e.notify({level:"info",message:r.formatMessage({id:"foundResults"},{resultsCount:f.length}),displayDuration:4e3})}function c(m){n.clearHighlight()}return t.jsx(d,{role:"dialog","aria-labelledby":o,children:t.jsx(v,{title:t.jsx(x,{id:o,size:"md",mb:2,children:r.formatMessage({id:"selectionTitle"})}),children:t.jsx(Ie,{sources:a,onSelectionComplete:l,onSelectionSourceChanged:c})})})}function It(){const r=p.useId(),e=u();return t.jsx(d,{role:"dialog","aria-labelledby":r,children:t.jsx(v,{title:t.jsx(x,{id:r,size:"md",mb:2,children:t.jsx(z,{children:e.formatMessage({id:"tocTitle"})})}),children:t.jsx(d,{overflowY:"auto",maxHeight:300,children:t.jsx(Ve,{showTools:!0,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})})}function At(){const r=p.useId(),e=u();return t.jsx(d,{role:"dialog","aria-labelledby":r,children:t.jsx(v,{title:t.jsx(x,{id:r,size:"md",mb:2,children:e.formatMessage({id:"printingTitle"})}),children:t.jsx(Ae,{})})})}function Tt(){const r=u(),e=g("ol-app.AppModel"),{resultListState:o,mainContent:i}=b(()=>({resultListState:e.resultListState,mainContent:e.mainContent}),[e]),n=o.input&&o.open;return t.jsx(ce,{mapId:_,children:t.jsxs(y,{height:"100%",direction:"column",overflow:"hidden",children:[t.jsx(Te,{position:"top-right"}),t.jsxs(v,{title:t.jsx(d,{role:"region","aria-label":r.formatMessage({id:"ariaLabel.header"}),textAlign:"center",py:1,children:t.jsx(x,{size:"md",children:"Sample Application"})}),children:[t.jsx(y,{flex:"1",direction:"column",position:"relative",children:t.jsxs(pe,{role:"main","aria-label":r.formatMessage({id:"ariaLabel.map"}),viewPadding:n?{bottom:400}:void 0,children:[t.jsx(Ye,{centerContent:!0,children:t.jsx(_t,{})}),t.jsx(Dt,{mainContent:i}),t.jsx(de,{position:"bottom-right",horizontalGap:10,verticalGap:45,children:t.jsx(Mt,{})}),t.jsx(zt,{})]})}),t.jsx(wt,{})]})]})})}function Dt(r){const{mainContent:e}=r,o=p.useMemo(()=>{const i=n=>{switch(n){case"toc":return t.jsx(It,{},n);case"legend":return t.jsx(St,{},n);case"printing":return t.jsx(At,{},n);case"selection":return t.jsx(Pt,{},n);case"measurement":return t.jsx(Lt,{},n);case"editing-create":return t.jsx(F,{kind:"create"},n);case"editing-update":return t.jsx(F,{kind:"update"},n)}};return e.map(n=>i(n))},[e]);return t.jsx(Rt,{children:o})}function Rt(r){const e=r.children,o=[];for(const i of e)i&&(o.length&&o.push(t.jsx($e,{mt:4,mb:4},o.length)),o.push(i));if(o.length!==0)return t.jsx(d,{position:"absolute",top:"100px",left:4,maxHeight:"calc(100% - 140px)",width:350,maxWidth:350,zIndex:1,backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",overflow:"auto",children:o})}const Et=new URLSearchParams(window.location.search),Ft=Et.get("lang")||void 0,qt=Y({component:Tt,appMetadata:gt,config:{locale:Ft,properties:{"@open-pioneer/local-storage":{storageId:"ol-app-state"}}}});customElements.define("ol-map-app",qt); diff --git a/openlayers-base-packages/assets/DTvtLMAVxi8t.js b/openlayers-base-packages/assets/CwsqFmMu0f5O.js similarity index 97% rename from openlayers-base-packages/assets/DTvtLMAVxi8t.js rename to openlayers-base-packages/assets/CwsqFmMu0f5O.js index 4d7bd5e96..9fc2b58a9 100644 --- a/openlayers-base-packages/assets/DTvtLMAVxi8t.js +++ b/openlayers-base-packages/assets/CwsqFmMu0f5O.js @@ -1 +1 @@ -var se=Object.defineProperty;var $=t=>{throw TypeError(t)};var re=(t,e,s)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var x=(t,e,s)=>re(t,typeof e!="symbol"?e+"":e,s),A=(t,e,s)=>e.has(t)||$("Cannot "+s);var h=(t,e,s)=>(A(t,e,"read from private field"),s?s.call(t):e.get(t)),v=(t,e,s)=>e.has(t)?$("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),S=(t,e,s,r)=>(A(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s),y=(t,e,s)=>(A(t,e,"access private method"),s);import{c as oe,i as B,r as p,j as m}from"./BeGW3nmX4tO2.js";import{G as H,T as q}from"./Bh6kFNuDWsIw.js";import{b as ae,az as ne,b0 as ie,u as ce,aZ as z,i as Z,b3 as T,e as ue,r as le,j as fe,V as de}from"./q4MLRk0u7kxl.js";import{a as he,b as me,c as we,d as ge,e as be}from"./N6gwA50uHdd6.js";import{u as pe}from"./BOXMyqr06QWb.js";const ve="next";function ye(t,e,s,r){const o=new URL(t),n=o.searchParams;return n.set("bbox",e.join(",")),n.set("bbox-crs",s),n.set("crs",s),n.set("f","json"),r?.(new URL(o))??o}function Re(t,e,s){const r=new URL(t),o=r.searchParams;return o.set("offset",e.toString()),o.set("limit",s.toString()),r.toString()}function G(t){if(!Array.isArray(t))return;const s=t.filter(r=>r.rel===ve);if(s.length===1)return s[0]?.href}async function K(t,e,s,r){let o=[];const n={headers:{Accept:"application/geo+json"},signal:r},a=await s.fetch(t,n);if(a.status!==200)throw new Error(`Failed to query features from service (status code ${a.status})`);const i=await a.json();e&&(o=e.readFeatures(i));const c=G(i.links);return{features:o,numberMatched:i.numberMatched,nextURL:c}}async function xe(t,e){const s={supportsOffsetStrategy:!1},r=new URL(t);r.searchParams.set("limit","1"),r.searchParams.set("f","json");const o=await e.fetch(r.toString(),{headers:{Accept:"application/geo+json"}});if(o.status!==200)throw new Error(`Failed to probe collection information (status code ${o.status})`);const n=await o.json(),a=G(n.links);if(!a)return s;const c=new URL(a).searchParams.has("offset");return s.supportsOffsetStrategy=c,s}async function Fe(t){const{fullURL:e,featureFormat:s,signal:r,addFeatures:o,queryFeatures:n}=t,a=t.limit,i=t.maxConcurrentRequests;let c=0,l=e;const f=[];let u;for(;l;){let g;u==null?g=i:g=Math.ceil((u-c)/a),g=Math.max(1,Math.min(g,i));const R=[];for(let F=0;F{l??=a(r,s);let I;try{I=await l}catch(L){U.error("Failed to retrieve collection information",L),F?.(),l=void 0;return}c?.abort("Extent changed"),c=new AbortController;const te=ye(r,u,t.crs,t.rewriteUrl);let N=t?.strategy||(I?.supportsOffsetStrategy?"offset":"next");N==="offset"&&!I?.supportsOffsetStrategy&&(N="next");try{const L=await Me(N,{fullURL:te.toString(),httpService:s,featureFormat:o.getFormat(),queryFeatures:n,addFeatures:i,limit:t.limit??Le,maxConcurrentRequests:t.maxConcurrentRequests??Se,signal:c.signal,collectionInfos:I});d?.(L),U.debug("Finished loading features for extent:",u)}catch(L){B(L)?(U.debug("Query-Feature-Request aborted",L),o.removeLoadedExtent(u),F?.()):U.error("Failed to load features",L)}};return o.setLoader(f),o}function Me(t,e){switch(t){case"next":return Pe(e);case"offset":return Fe(e)}}async function Pe(t){const e=t.limit;let s=new URL(t.fullURL);s.searchParams.set("limit",e.toString());let r=[];do{const o=await J([s.toString()],t.featureFormat,t.httpService,t.signal,t.addFeatures,t.queryFeatures);if(r=r.concat(o.features),!o.nextURL)break;s=new URL(o.nextURL)}while(!0);return r}async function J(t,e,s,r,o,n=K){const a={nextURL:void 0,numberMatched:void 0,features:[]},i=t.map(async(c,l)=>{const f=l===t.length-1,u=await n(c,e,s,r);o(u.features),U.debug(`NextURL for index = ${l} (isLast = ${f}): ${u.nextURL||"No Next URL"}`),a.features.push(...u.features),f&&(a.numberMatched=u.numberMatched,a.nextURL=u.nextURL)});return await Promise.all(i),a}var b,P,V,C,M,W,X;class Ve{constructor(e,s){v(this,M);x(this,"label");v(this,b);v(this,P);v(this,V);v(this,C);this.label=e.label,S(this,b,e),S(this,P,s);const{baseUrl:r,params:o}=je(e.baseUrl);S(this,V,r),S(this,C,o)}async search(e,{mapProjection:s,maxResults:r,signal:o}){const n=y(this,M,X).call(this,e,r),a=new H({dataProjection:"EPSG:4326",featureProjection:s});return(await Ce(h(this,P),n,o)).features.map(c=>y(this,M,W).call(this,c,a))}}b=new WeakMap,P=new WeakMap,V=new WeakMap,C=new WeakMap,M=new WeakSet,W=function(e,s){const r=h(this,b).renderLabel?.(e),o=e.properties[h(this,b).labelProperty],n=e.properties[h(this,b).searchProperty],a=r||(o!==void 0?String(o):n!==void 0?String(n):"");return{id:e.id??ie(),label:a,geometry:s.readGeometry(e.geometry),properties:e.properties}},X=function(e,s){const r=new URL(`${h(this,V)}/collections/${h(this,b).collectionId}/items`);for(const[o,n]of h(this,C))r.searchParams.append(o,n);return r.searchParams.set(h(this,b).searchProperty,`*${e}*`),r.searchParams.set("limit",String(s)),r.searchParams.set("f","json"),h(this,b).rewriteUrl?.(new URL(r))??r};async function Ce(t,e,s){try{const r=await t.fetch(e,{signal:s,headers:{Accept:"application/json"}});if(!r.ok)throw new Error("Request failed with status "+r.status);return await r.json()}catch(r){throw B(r)?r:new Error("Failed to search on OGC API Features service",{cause:r})}}function je(t){const e=new URL(t),s=new URLSearchParams(e.searchParams);return e.search="",{baseUrl:e.href.replace(/\/+$/,""),params:s}}var j;class He{constructor({references:e}){v(this,j);S(this,j,e.httpService)}createVectorSource(e){return Ie(e,h(this,j))}}j=new WeakMap;var E;class Te{constructor({references:e}){v(this,E);S(this,E,e.httpService)}createSearchSource(e){return new Ve(e,h(this,E))}}E=new WeakMap;const Ee="@open-pioneer/map-navigation",D=ce.bind(void 0,Ee),Ge=p.forwardRef(function(e,s){const{containerProps:r}=z("initial-extent",e),{map:o}=Z(e),n=D();function a(){const i=o?.initialExtent;if(i){const c=[i.xMin,i.yMin,i.xMax,i.yMax];o.olView.fit(c,{duration:200})}}return m.jsx(q,{ref:s,label:n.formatMessage({id:"initial-extent.title"}),icon:m.jsx(he,{}),onClick:a,...r})}),Ke=p.forwardRef(function(e,s){return m.jsx(Q,{zoomDirection:"in",ref:s,...e})}),Je=p.forwardRef(function(e,s){return m.jsx(Q,{zoomDirection:"out",ref:s,...e})}),Q=p.forwardRef(function(e,s){const{zoomDirection:r}=e,{map:o}=Z(e),n=D(),[a,i]=p.useState(!1),{defaultClassName:c,buttonLabel:l,buttonIcon:f}=ke(n,r),{containerProps:u}=z(T("zoom",c),e);function g(){if(a)return;i(!0);const R=o?.olView;let d=o?.zoomLevel;const F=R?.getMaxZoom()||Number.MAX_SAFE_INTEGER,I=R?.getMinZoom()||0;R&&d!==void 0&&(r==="in"&&dI&&--d,R.animate({zoom:d,duration:200},()=>i(!1)))}return m.jsx(q,{ref:s,label:l,icon:f,onClick:g,...u})});function ke(t,e){switch(e){case"in":return{defaultClassName:"zoom-in",buttonLabel:t.formatMessage({id:"zoom-in.title"}),buttonIcon:m.jsx(we,{})};case"out":return{defaultClassName:"zoom-out",buttonLabel:t.formatMessage({id:"zoom-out.title"}),buttonIcon:m.jsx(me,{})}}}const Ne=200;var w,_,k,Y;class Ae{constructor(e){v(this,w);x(this,"olMap");x(this,"handle");x(this,"_mapViews",ue());x(this,"_activeViewId",le(0));x(this,"backward",()=>{if(this.canBackward)y(this,w,k).call(this,this.activeViewId-1),y(this,w,_).call(this,this.activeViewId);else throw new Error("Backward is not possible at the moment")});x(this,"forward",()=>{if(this.canForward)y(this,w,k).call(this,this.activeViewId+1),y(this,w,_).call(this,this.activeViewId);else throw new Error("Forward is not possible at the moment")});this.olMap=e.olMap,this.handle=y(this,w,Y).call(this)}destroy(){this.handle&&fe(this.handle),this.handle=void 0}get activeViewId(){return this._activeViewId.value}get mapViews(){return this._mapViews}get canBackward(){return this.mapViews.get(this.activeViewId-1)!=null}get canForward(){return this.mapViews.get(this.activeViewId+1)!=null}}w=new WeakSet,_=function(e){const s=this.olMap.getView();this.olMap.setView(new de({center:this.mapViews.get(e).center,resolution:this.mapViews.get(e).resolution,projection:s.getProjection()}))},k=function(e){this._activeViewId.value=e},Y=function(){const e=this.olMap.on("moveend",()=>{s()}),s=()=>{const r=this.olMap,o=this.mapViews,n=r.getView(),a=n.getResolution(),i=n.getCenter();if(a!=null&&i!=null&&(i!==o.get(this.activeViewId)?.center||a!==o.get(this.activeViewId)?.resolution)){const c={resolution:a,center:i},l=this.activeViewId+1;for(const f of o.keys())f>l&&o.delete(f);for(const f of o.keys()){if(o.size{if(!t)return;let r=O.get(t);return r==null?(r={vm:new Ae(t),useCount:1},O.set(t,r)):r.useCount++,s(r.vm),()=>{s(void 0),r.useCount--,r.useCount===0&&(r.vm.destroy(),O.delete(t))}},[t]),e}const We=p.forwardRef(function(e,s){return m.jsx(ee,{viewDirection:"forward",ref:s,...e})}),Xe=p.forwardRef(function(e,s){return m.jsx(ee,{viewDirection:"backward",ref:s,...e})}),ee=p.forwardRef(function(e,s){const r=D(),{viewDirection:o}=e,{map:n}=Z(e),a=Oe(n),{defaultClassName:i,buttonLabel:c,buttonIcon:l}=_e(r,o),{containerProps:f}=z(T("view",i),e),u=pe(()=>a?o==="forward"?a.canForward:a.canBackward:!1,[a,o]),g=()=>{a&&(o==="forward"?a.forward():a.backward())};return a&&m.jsx(q,{ref:s,...f,label:c,icon:l,onClick:g,isDisabled:!u})});function _e(t,e){switch(e){case"forward":return{defaultClassName:"view-forward",buttonLabel:t.formatMessage({id:"view-forward.title"}),buttonIcon:m.jsx(be,{})};case"backward":return{defaultClassName:"view-backward",buttonLabel:t.formatMessage({id:"view-backward.title"}),buttonIcon:m.jsx(ge,{})}}}export{Xe as H,Ge as I,Te as S,He as V,Ke as Z,Je as a,We as b}; +var se=Object.defineProperty;var $=t=>{throw TypeError(t)};var re=(t,e,s)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var x=(t,e,s)=>re(t,typeof e!="symbol"?e+"":e,s),A=(t,e,s)=>e.has(t)||$("Cannot "+s);var h=(t,e,s)=>(A(t,e,"read from private field"),s?s.call(t):e.get(t)),v=(t,e,s)=>e.has(t)?$("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),S=(t,e,s,r)=>(A(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s),y=(t,e,s)=>(A(t,e,"access private method"),s);import{c as oe,i as B,r as p,j as m}from"./BeGW3nmX4tO2.js";import{G as H,T as q}from"./Dh5p1D7VwmQC.js";import{b as ae,az as ne,b0 as ie,u as ce,aZ as z,i as Z,b3 as T,e as ue,r as le,j as fe,V as de}from"./BjXju3dgjVrG.js";import{a as he,b as me,c as we,d as ge,e as be}from"./N6gwA50uHdd6.js";import{u as pe}from"./B48t-8DI4YWS.js";const ve="next";function ye(t,e,s,r){const o=new URL(t),n=o.searchParams;return n.set("bbox",e.join(",")),n.set("bbox-crs",s),n.set("crs",s),n.set("f","json"),r?.(new URL(o))??o}function Re(t,e,s){const r=new URL(t),o=r.searchParams;return o.set("offset",e.toString()),o.set("limit",s.toString()),r.toString()}function G(t){if(!Array.isArray(t))return;const s=t.filter(r=>r.rel===ve);if(s.length===1)return s[0]?.href}async function K(t,e,s,r){let o=[];const n={headers:{Accept:"application/geo+json"},signal:r},a=await s.fetch(t,n);if(a.status!==200)throw new Error(`Failed to query features from service (status code ${a.status})`);const i=await a.json();e&&(o=e.readFeatures(i));const c=G(i.links);return{features:o,numberMatched:i.numberMatched,nextURL:c}}async function xe(t,e){const s={supportsOffsetStrategy:!1},r=new URL(t);r.searchParams.set("limit","1"),r.searchParams.set("f","json");const o=await e.fetch(r.toString(),{headers:{Accept:"application/geo+json"}});if(o.status!==200)throw new Error(`Failed to probe collection information (status code ${o.status})`);const n=await o.json(),a=G(n.links);if(!a)return s;const c=new URL(a).searchParams.has("offset");return s.supportsOffsetStrategy=c,s}async function Fe(t){const{fullURL:e,featureFormat:s,signal:r,addFeatures:o,queryFeatures:n}=t,a=t.limit,i=t.maxConcurrentRequests;let c=0,l=e;const f=[];let u;for(;l;){let g;u==null?g=i:g=Math.ceil((u-c)/a),g=Math.max(1,Math.min(g,i));const R=[];for(let F=0;F{l??=a(r,s);let I;try{I=await l}catch(L){U.error("Failed to retrieve collection information",L),F?.(),l=void 0;return}c?.abort("Extent changed"),c=new AbortController;const te=ye(r,u,t.crs,t.rewriteUrl);let N=t?.strategy||(I?.supportsOffsetStrategy?"offset":"next");N==="offset"&&!I?.supportsOffsetStrategy&&(N="next");try{const L=await Me(N,{fullURL:te.toString(),httpService:s,featureFormat:o.getFormat(),queryFeatures:n,addFeatures:i,limit:t.limit??Le,maxConcurrentRequests:t.maxConcurrentRequests??Se,signal:c.signal,collectionInfos:I});d?.(L),U.debug("Finished loading features for extent:",u)}catch(L){B(L)?(U.debug("Query-Feature-Request aborted",L),o.removeLoadedExtent(u),F?.()):U.error("Failed to load features",L)}};return o.setLoader(f),o}function Me(t,e){switch(t){case"next":return Pe(e);case"offset":return Fe(e)}}async function Pe(t){const e=t.limit;let s=new URL(t.fullURL);s.searchParams.set("limit",e.toString());let r=[];do{const o=await J([s.toString()],t.featureFormat,t.httpService,t.signal,t.addFeatures,t.queryFeatures);if(r=r.concat(o.features),!o.nextURL)break;s=new URL(o.nextURL)}while(!0);return r}async function J(t,e,s,r,o,n=K){const a={nextURL:void 0,numberMatched:void 0,features:[]},i=t.map(async(c,l)=>{const f=l===t.length-1,u=await n(c,e,s,r);o(u.features),U.debug(`NextURL for index = ${l} (isLast = ${f}): ${u.nextURL||"No Next URL"}`),a.features.push(...u.features),f&&(a.numberMatched=u.numberMatched,a.nextURL=u.nextURL)});return await Promise.all(i),a}var b,P,V,C,M,W,X;class Ve{constructor(e,s){v(this,M);x(this,"label");v(this,b);v(this,P);v(this,V);v(this,C);this.label=e.label,S(this,b,e),S(this,P,s);const{baseUrl:r,params:o}=je(e.baseUrl);S(this,V,r),S(this,C,o)}async search(e,{mapProjection:s,maxResults:r,signal:o}){const n=y(this,M,X).call(this,e,r),a=new H({dataProjection:"EPSG:4326",featureProjection:s});return(await Ce(h(this,P),n,o)).features.map(c=>y(this,M,W).call(this,c,a))}}b=new WeakMap,P=new WeakMap,V=new WeakMap,C=new WeakMap,M=new WeakSet,W=function(e,s){const r=h(this,b).renderLabel?.(e),o=e.properties[h(this,b).labelProperty],n=e.properties[h(this,b).searchProperty],a=r||(o!==void 0?String(o):n!==void 0?String(n):"");return{id:e.id??ie(),label:a,geometry:s.readGeometry(e.geometry),properties:e.properties}},X=function(e,s){const r=new URL(`${h(this,V)}/collections/${h(this,b).collectionId}/items`);for(const[o,n]of h(this,C))r.searchParams.append(o,n);return r.searchParams.set(h(this,b).searchProperty,`*${e}*`),r.searchParams.set("limit",String(s)),r.searchParams.set("f","json"),h(this,b).rewriteUrl?.(new URL(r))??r};async function Ce(t,e,s){try{const r=await t.fetch(e,{signal:s,headers:{Accept:"application/json"}});if(!r.ok)throw new Error("Request failed with status "+r.status);return await r.json()}catch(r){throw B(r)?r:new Error("Failed to search on OGC API Features service",{cause:r})}}function je(t){const e=new URL(t),s=new URLSearchParams(e.searchParams);return e.search="",{baseUrl:e.href.replace(/\/+$/,""),params:s}}var j;class He{constructor({references:e}){v(this,j);S(this,j,e.httpService)}createVectorSource(e){return Ie(e,h(this,j))}}j=new WeakMap;var E;class Te{constructor({references:e}){v(this,E);S(this,E,e.httpService)}createSearchSource(e){return new Ve(e,h(this,E))}}E=new WeakMap;const Ee="@open-pioneer/map-navigation",D=ce.bind(void 0,Ee),Ge=p.forwardRef(function(e,s){const{containerProps:r}=z("initial-extent",e),{map:o}=Z(e),n=D();function a(){const i=o?.initialExtent;if(i){const c=[i.xMin,i.yMin,i.xMax,i.yMax];o.olView.fit(c,{duration:200})}}return m.jsx(q,{ref:s,label:n.formatMessage({id:"initial-extent.title"}),icon:m.jsx(he,{}),onClick:a,...r})}),Ke=p.forwardRef(function(e,s){return m.jsx(Q,{zoomDirection:"in",ref:s,...e})}),Je=p.forwardRef(function(e,s){return m.jsx(Q,{zoomDirection:"out",ref:s,...e})}),Q=p.forwardRef(function(e,s){const{zoomDirection:r}=e,{map:o}=Z(e),n=D(),[a,i]=p.useState(!1),{defaultClassName:c,buttonLabel:l,buttonIcon:f}=ke(n,r),{containerProps:u}=z(T("zoom",c),e);function g(){if(a)return;i(!0);const R=o?.olView;let d=o?.zoomLevel;const F=R?.getMaxZoom()||Number.MAX_SAFE_INTEGER,I=R?.getMinZoom()||0;R&&d!==void 0&&(r==="in"&&dI&&--d,R.animate({zoom:d,duration:200},()=>i(!1)))}return m.jsx(q,{ref:s,label:l,icon:f,onClick:g,...u})});function ke(t,e){switch(e){case"in":return{defaultClassName:"zoom-in",buttonLabel:t.formatMessage({id:"zoom-in.title"}),buttonIcon:m.jsx(we,{})};case"out":return{defaultClassName:"zoom-out",buttonLabel:t.formatMessage({id:"zoom-out.title"}),buttonIcon:m.jsx(me,{})}}}const Ne=200;var w,_,k,Y;class Ae{constructor(e){v(this,w);x(this,"olMap");x(this,"handle");x(this,"_mapViews",ue());x(this,"_activeViewId",le(0));x(this,"backward",()=>{if(this.canBackward)y(this,w,k).call(this,this.activeViewId-1),y(this,w,_).call(this,this.activeViewId);else throw new Error("Backward is not possible at the moment")});x(this,"forward",()=>{if(this.canForward)y(this,w,k).call(this,this.activeViewId+1),y(this,w,_).call(this,this.activeViewId);else throw new Error("Forward is not possible at the moment")});this.olMap=e.olMap,this.handle=y(this,w,Y).call(this)}destroy(){this.handle&&fe(this.handle),this.handle=void 0}get activeViewId(){return this._activeViewId.value}get mapViews(){return this._mapViews}get canBackward(){return this.mapViews.get(this.activeViewId-1)!=null}get canForward(){return this.mapViews.get(this.activeViewId+1)!=null}}w=new WeakSet,_=function(e){const s=this.olMap.getView();this.olMap.setView(new de({center:this.mapViews.get(e).center,resolution:this.mapViews.get(e).resolution,projection:s.getProjection()}))},k=function(e){this._activeViewId.value=e},Y=function(){const e=this.olMap.on("moveend",()=>{s()}),s=()=>{const r=this.olMap,o=this.mapViews,n=r.getView(),a=n.getResolution(),i=n.getCenter();if(a!=null&&i!=null&&(i!==o.get(this.activeViewId)?.center||a!==o.get(this.activeViewId)?.resolution)){const c={resolution:a,center:i},l=this.activeViewId+1;for(const f of o.keys())f>l&&o.delete(f);for(const f of o.keys()){if(o.size{if(!t)return;let r=O.get(t);return r==null?(r={vm:new Ae(t),useCount:1},O.set(t,r)):r.useCount++,s(r.vm),()=>{s(void 0),r.useCount--,r.useCount===0&&(r.vm.destroy(),O.delete(t))}},[t]),e}const We=p.forwardRef(function(e,s){return m.jsx(ee,{viewDirection:"forward",ref:s,...e})}),Xe=p.forwardRef(function(e,s){return m.jsx(ee,{viewDirection:"backward",ref:s,...e})}),ee=p.forwardRef(function(e,s){const r=D(),{viewDirection:o}=e,{map:n}=Z(e),a=Oe(n),{defaultClassName:i,buttonLabel:c,buttonIcon:l}=_e(r,o),{containerProps:f}=z(T("view",i),e),u=pe(()=>a?o==="forward"?a.canForward:a.canBackward:!1,[a,o]),g=()=>{a&&(o==="forward"?a.forward():a.backward())};return a&&m.jsx(q,{ref:s,...f,label:c,icon:l,onClick:g,isDisabled:!u})});function _e(t,e){switch(e){case"forward":return{defaultClassName:"view-forward",buttonLabel:t.formatMessage({id:"view-forward.title"}),buttonIcon:m.jsx(be,{})};case"backward":return{defaultClassName:"view-backward",buttonLabel:t.formatMessage({id:"view-backward.title"}),buttonIcon:m.jsx(ge,{})}}}export{Xe as H,Ge as I,Te as S,He as V,Ke as Z,Je as a,We as b}; diff --git a/openlayers-base-packages/assets/DKlkM3Rq-R3t.js b/openlayers-base-packages/assets/D-bB0Gg-LQGA.js similarity index 98% rename from openlayers-base-packages/assets/DKlkM3Rq-R3t.js rename to openlayers-base-packages/assets/D-bB0Gg-LQGA.js index 37bf73213..39c3c0cec 100644 --- a/openlayers-base-packages/assets/DKlkM3Rq-R3t.js +++ b/openlayers-base-packages/assets/D-bB0Gg-LQGA.js @@ -1 +1 @@ -import{bQ as l}from"./q4MLRk0u7kxl.js";import{G as t}from"./N6gwA50uHdd6.js";const o=l;function c(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M156,40a12,12,0,0,1-12,12H112a12,12,0,0,1,0-24h32A12,12,0,0,1,156,40ZM144,204H112a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24ZM204,52V72a12,12,0,0,0,24,0V48a20,20,0,0,0-20-20H184a12,12,0,0,0,0,24Zm12,48a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V112A12,12,0,0,0,216,100ZM40,156a12,12,0,0,0,12-12V112a12,12,0,0,0-24,0v32A12,12,0,0,0,40,156Zm32,48H52V184a12,12,0,0,0-24,0v24a20,20,0,0,0,20,20H72a12,12,0,0,0,0-24ZM72,28H48A20,20,0,0,0,28,48V72a12,12,0,0,0,24,0V52H72a12,12,0,0,0,0-24ZM240,204H228V192a12,12,0,0,0-24,0v12H192a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V228h12a12,12,0,0,0,0-24Z"},child:[]}]})(a)}function h(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z"},child:[]}]})(a)}function n(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,42H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V182h18a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM70,56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v67.57L204.53,110.1a14,14,0,0,0-19.8,0l-21.42,21.41L117.9,86.1a14,14,0,0,0-19.8,0L70,114.2ZM186,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H58v82a14,14,0,0,0,14,14H186Zm30-30H72a2,2,0,0,1-2-2V131.17l36.58-36.58a2,2,0,0,1,2.83,0l49.66,49.66a6,6,0,0,0,8.49,0l25.65-25.66a2,2,0,0,1,2.83,0l22,22V168A2,2,0,0,1,216,170ZM162,84a10,10,0,1,1,10,10A10,10,0,0,1,162,84Z"},child:[]}]})(a)}function H(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},child:[]}]})(a)}function Z(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M214.67,74H198V40a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6V74H41.33C28.47,74,18,83.87,18,96v80a6,6,0,0,0,6,6H58v34a6,6,0,0,0,6,6H192a6,6,0,0,0,6-6V182h34a6,6,0,0,0,6-6V96C238,83.87,227.53,74,214.67,74ZM70,46H186V74H70ZM186,210H70V158H186Zm40-40H198V152a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6v18H30V96c0-5.51,5.08-10,11.33-10H214.67C220.92,86,226,90.49,226,96Zm-28-54a10,10,0,1,1-10-10A10,10,0,0,1,198,116Z"},child:[]}]})(a)}function e(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M233.91,74.79,181.22,22.1a14,14,0,0,0-19.8,0L22.09,161.41a14,14,0,0,0,0,19.8L74.78,233.9a14,14,0,0,0,19.8,0L233.91,94.59A14,14,0,0,0,233.91,74.79ZM225.42,86.1,86.1,225.41h0a2,2,0,0,1-2.83,0L30.58,172.73a2,2,0,0,1,0-2.83L64,136.48l27.76,27.76a6,6,0,1,0,8.48-8.48L72.48,128,96,104.48l27.76,27.76a6,6,0,0,0,8.48-8.48L104.48,96,128,72.49l27.76,27.75a6,6,0,0,0,8.48-8.48L136.49,64,169.9,30.59a2,2,0,0,1,2.83,0l52.69,52.68A2,2,0,0,1,225.42,86.1Z"},child:[]}]})(a)}function g(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM82,24a6,6,0,0,1,6-6h80a6,6,0,0,1,0,12H88A6,6,0,0,1,82,24Z"},child:[]}]})(a)}function L(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M88,24V16a8,8,0,0,1,16,0v8a8,8,0,0,1-16,0ZM16,104h8a8,8,0,0,0,0-16H16a8,8,0,0,0,0,16ZM124.42,39.16a8,8,0,0,0,10.74-3.58l8-16a8,8,0,0,0-14.31-7.16l-8,16A8,8,0,0,0,124.42,39.16Zm-96,81.69-16,8a8,8,0,0,0,7.16,14.31l16-8a8,8,0,1,0-7.16-14.31ZM219.31,184a16,16,0,0,1,0,22.63l-12.68,12.68a16,16,0,0,1-22.63,0L132.7,168,115,214.09c0,.1-.08.21-.13.32a15.83,15.83,0,0,1-14.6,9.59l-.79,0a15.83,15.83,0,0,1-14.41-11L32.8,52.92A16,16,0,0,1,52.92,32.8L213,85.07a16,16,0,0,1,1.41,29.8l-.32.13L168,132.69ZM208,195.31,156.69,144h0a16,16,0,0,1,4.93-26l.32-.14,45.95-17.64L48,48l52.2,159.86,17.65-46c0-.11.08-.22.13-.33a16,16,0,0,1,11.69-9.34,16.72,16.72,0,0,1,3-.28,16,16,0,0,1,11.3,4.69L195.31,208Z"},child:[]}]})(a)}function M(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M228.92,49.69a8,8,0,0,0-6.86-1.45L160.93,63.52,99.58,32.84a8,8,0,0,0-5.52-.6l-64,16A8,8,0,0,0,24,56V200a8,8,0,0,0,9.94,7.76l61.13-15.28,61.35,30.68A8.15,8.15,0,0,0,160,224a8,8,0,0,0,1.94-.24l64-16A8,8,0,0,0,232,200V56A8,8,0,0,0,228.92,49.69ZM104,52.94l48,24V203.06l-48-24ZM40,62.25l48-12v127.5l-48,12Zm176,131.5-48,12V78.25l48-12Z"},child:[]}]})(a)}function d(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38l48.2,53L36.68,152A15.89,15.89,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31l50.4-50.39,47.69,52.46a8,8,0,1,0,11.84-10.76Zm63,93.12L68,176.69,51.31,160l49.75-49.74ZM48,179.31,76.69,208H48Zm48,25.38L79.32,188l48.41-48.41,15.89,17.48ZM227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L118.33,70.36a8,8,0,0,0,11.32,11.31L136,75.31,152.69,92,145,99.69A8,8,0,1,0,156.31,111l7.69-7.69L180.69,120l-9,9A8,8,0,0,0,183,140.34L227.32,96A16,16,0,0,0,227.32,73.37ZM192,108.69,147.32,64l24-24L216,84.69Z"},child:[]}]})(a)}function u(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},child:[]}]})(a)}export{L as P,o as W,h as a,H as b,n as c,Z as d,d as e,u as f,e as g,c as h,M as i,g as j}; +import{bQ as l}from"./BjXju3dgjVrG.js";import{G as t}from"./N6gwA50uHdd6.js";const o=l;function c(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M156,40a12,12,0,0,1-12,12H112a12,12,0,0,1,0-24h32A12,12,0,0,1,156,40ZM144,204H112a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24ZM204,52V72a12,12,0,0,0,24,0V48a20,20,0,0,0-20-20H184a12,12,0,0,0,0,24Zm12,48a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V112A12,12,0,0,0,216,100ZM40,156a12,12,0,0,0,12-12V112a12,12,0,0,0-24,0v32A12,12,0,0,0,40,156Zm32,48H52V184a12,12,0,0,0-24,0v24a20,20,0,0,0,20,20H72a12,12,0,0,0,0-24ZM72,28H48A20,20,0,0,0,28,48V72a12,12,0,0,0,24,0V52H72a12,12,0,0,0,0-24ZM240,204H228V192a12,12,0,0,0-24,0v12H192a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V228h12a12,12,0,0,0,0-24Z"},child:[]}]})(a)}function h(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z"},child:[]}]})(a)}function n(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,42H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V182h18a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM70,56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v67.57L204.53,110.1a14,14,0,0,0-19.8,0l-21.42,21.41L117.9,86.1a14,14,0,0,0-19.8,0L70,114.2ZM186,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H58v82a14,14,0,0,0,14,14H186Zm30-30H72a2,2,0,0,1-2-2V131.17l36.58-36.58a2,2,0,0,1,2.83,0l49.66,49.66a6,6,0,0,0,8.49,0l25.65-25.66a2,2,0,0,1,2.83,0l22,22V168A2,2,0,0,1,216,170ZM162,84a10,10,0,1,1,10,10A10,10,0,0,1,162,84Z"},child:[]}]})(a)}function H(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},child:[]}]})(a)}function Z(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M214.67,74H198V40a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6V74H41.33C28.47,74,18,83.87,18,96v80a6,6,0,0,0,6,6H58v34a6,6,0,0,0,6,6H192a6,6,0,0,0,6-6V182h34a6,6,0,0,0,6-6V96C238,83.87,227.53,74,214.67,74ZM70,46H186V74H70ZM186,210H70V158H186Zm40-40H198V152a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6v18H30V96c0-5.51,5.08-10,11.33-10H214.67C220.92,86,226,90.49,226,96Zm-28-54a10,10,0,1,1-10-10A10,10,0,0,1,198,116Z"},child:[]}]})(a)}function e(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M233.91,74.79,181.22,22.1a14,14,0,0,0-19.8,0L22.09,161.41a14,14,0,0,0,0,19.8L74.78,233.9a14,14,0,0,0,19.8,0L233.91,94.59A14,14,0,0,0,233.91,74.79ZM225.42,86.1,86.1,225.41h0a2,2,0,0,1-2.83,0L30.58,172.73a2,2,0,0,1,0-2.83L64,136.48l27.76,27.76a6,6,0,1,0,8.48-8.48L72.48,128,96,104.48l27.76,27.76a6,6,0,0,0,8.48-8.48L104.48,96,128,72.49l27.76,27.75a6,6,0,0,0,8.48-8.48L136.49,64,169.9,30.59a2,2,0,0,1,2.83,0l52.69,52.68A2,2,0,0,1,225.42,86.1Z"},child:[]}]})(a)}function g(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM82,24a6,6,0,0,1,6-6h80a6,6,0,0,1,0,12H88A6,6,0,0,1,82,24Z"},child:[]}]})(a)}function L(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M88,24V16a8,8,0,0,1,16,0v8a8,8,0,0,1-16,0ZM16,104h8a8,8,0,0,0,0-16H16a8,8,0,0,0,0,16ZM124.42,39.16a8,8,0,0,0,10.74-3.58l8-16a8,8,0,0,0-14.31-7.16l-8,16A8,8,0,0,0,124.42,39.16Zm-96,81.69-16,8a8,8,0,0,0,7.16,14.31l16-8a8,8,0,1,0-7.16-14.31ZM219.31,184a16,16,0,0,1,0,22.63l-12.68,12.68a16,16,0,0,1-22.63,0L132.7,168,115,214.09c0,.1-.08.21-.13.32a15.83,15.83,0,0,1-14.6,9.59l-.79,0a15.83,15.83,0,0,1-14.41-11L32.8,52.92A16,16,0,0,1,52.92,32.8L213,85.07a16,16,0,0,1,1.41,29.8l-.32.13L168,132.69ZM208,195.31,156.69,144h0a16,16,0,0,1,4.93-26l.32-.14,45.95-17.64L48,48l52.2,159.86,17.65-46c0-.11.08-.22.13-.33a16,16,0,0,1,11.69-9.34,16.72,16.72,0,0,1,3-.28,16,16,0,0,1,11.3,4.69L195.31,208Z"},child:[]}]})(a)}function M(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M228.92,49.69a8,8,0,0,0-6.86-1.45L160.93,63.52,99.58,32.84a8,8,0,0,0-5.52-.6l-64,16A8,8,0,0,0,24,56V200a8,8,0,0,0,9.94,7.76l61.13-15.28,61.35,30.68A8.15,8.15,0,0,0,160,224a8,8,0,0,0,1.94-.24l64-16A8,8,0,0,0,232,200V56A8,8,0,0,0,228.92,49.69ZM104,52.94l48,24V203.06l-48-24ZM40,62.25l48-12v127.5l-48,12Zm176,131.5-48,12V78.25l48-12Z"},child:[]}]})(a)}function d(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38l48.2,53L36.68,152A15.89,15.89,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31l50.4-50.39,47.69,52.46a8,8,0,1,0,11.84-10.76Zm63,93.12L68,176.69,51.31,160l49.75-49.74ZM48,179.31,76.69,208H48Zm48,25.38L79.32,188l48.41-48.41,15.89,17.48ZM227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L118.33,70.36a8,8,0,0,0,11.32,11.31L136,75.31,152.69,92,145,99.69A8,8,0,1,0,156.31,111l7.69-7.69L180.69,120l-9,9A8,8,0,0,0,183,140.34L227.32,96A16,16,0,0,0,227.32,73.37ZM192,108.69,147.32,64l24-24L216,84.69Z"},child:[]}]})(a)}function u(a){return t({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},child:[]}]})(a)}export{L as P,o as W,h as a,H as b,n as c,Z as d,d as e,u as f,e as g,c as h,M as i,g as j}; diff --git a/openlayers-base-packages/assets/UlulYB4e5zqK.js b/openlayers-base-packages/assets/D1e64i0R5zCb.js similarity index 98% rename from openlayers-base-packages/assets/UlulYB4e5zqK.js rename to openlayers-base-packages/assets/D1e64i0R5zCb.js index 0dd5c237c..78f6062e1 100644 --- a/openlayers-base-packages/assets/UlulYB4e5zqK.js +++ b/openlayers-base-packages/assets/D1e64i0R5zCb.js @@ -1 +1 @@ -import{cc as F,b8 as M,aP as x,a9 as w,cd as c,ce as Y,cf as L,b2 as X,b_ as y,bC as g,cg as I,ch as S,ci as T,cj as O,ck as b,cl as j,cm as D,bY as K,c9 as $,cn as k,an as P,co as U,cp as Z,cq as z,cr as B,cs as H,ct as N,bU as v,cu as J,cv as Q,cw as V,bT as W,cx as q,am as E,cy as tt,bZ as et}from"./q4MLRk0u7kxl.js";import{L as G}from"./D3gFeNVkNTAB.js";class C extends F{constructor(t){super(),this.geometries_=t,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(M),this.changeEventsKeys_.length=0}listenGeometriesChange_(){const t=this.geometries_;for(let e=0,s=t.length;et.clone())}class m extends y{constructor(t,e,s){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,e);else if(e!==void 0&&s)this.setFlatCoordinates(e,t),this.ends_=s;else{const i=t,n=[],o=[];for(let a=0,l=i.length;at.clone())}class m extends y{constructor(t,e,s){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,e);else if(e!==void 0&&s)this.setFlatCoordinates(e,t),this.ends_=s;else{const i=t,n=[],o=[];for(let a=0,l=i.length;atypeof window<"u";function Zt(){return navigator.userAgentData?.platform??navigator.platform}const Qt=t=>Te()&&t.test(navigator.vendor),Xt=t=>Te()&&t.test(Zt()),er=()=>Xt(/mac|iphone|ipad|ipod/i),tr=()=>er()&&Qt(/apple/i);function rr(t){const{ref:e,elements:r,enabled:o}=t,n=()=>e.current?.ownerDocument??document;Ft(n,"pointerdown",a=>{if(!tr()||!o)return;const i=a.composedPath?.()?.[0]??a.target,d=(r??[e]).some(c=>{const m=Yt(c)?c.current:c;return m?.contains(i)||m===i});n().activeElement!==i&&d&&(a.preventDefault(),i.focus())})}const[or,F]=Me({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[nr,I]=Me({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),M={click:"click",hover:"hover"};function sr(t={}){const{closeOnBlur:e=!0,closeOnEsc:r=!0,initialFocusRef:o,id:n,returnFocusOnClose:a=!0,autoFocus:i=!0,arrowSize:p,arrowShadowColor:d,trigger:c=M.click,openDelay:m=200,closeDelay:y=200,isLazy:w,lazyBehavior:G="unmount",computePositionOnMount:k,...q}=t,{isOpen:f,onClose:b,onOpen:T,onToggle:le}=St(t),[$e,Y]=u.useState(a);u.useEffect(()=>Y(a),[a]);const Z=u.useRef(null),A=u.useRef(null),C=u.useRef(null),R=u.useRef(!1),ue=u.useRef(!1);f&&(ue.current=!0);const[de,Ke]=u.useState(!1),[pe,qe]=u.useState(!1),Ye=u.useId(),Ze=n??Ye,[me,D,H,J]=["popover-trigger","popover-content","popover-header","popover-body"].map(l=>`${l}-${Ze}`),{referenceRef:V,getArrowProps:Qe,getPopperProps:fe,getArrowInnerProps:Xe,forceUpdate:et}=Mt({...q,enabled:f||!!k}),ge=Ht({isOpen:f,ref:C});rr({enabled:f,ref:A}),Jt(C,{focusRef:A,visible:f,shouldFocus:$e&&c===M.click}),Vt(C,{focusRef:o,visible:f,shouldFocus:i&&c===M.click}),Ut({enabled:f&&e,ref:C,handler(l){const h=l.composedPath?.()[0]??[l.target];U(A.current,h)||(h&&Y(!ve(h)),b())}});const ye=zt({wasSelected:ue.current,enabled:w,mode:G,isSelected:ge.present}),tt=u.useCallback((l={},h=null)=>{const g={...l,style:{...l.style,transformOrigin:ee.transformOrigin.varRef,[ee.arrowSize.var]:p?`${p}px`:void 0,[ee.arrowShadowColor.var]:d},ref:_(C,h),children:ye?l.children:null,id:D,tabIndex:-1,role:"dialog",onKeyDown:j(l.onKeyDown,v=>{v.nativeEvent.isComposing||r&&v.key==="Escape"&&(v.preventDefault(),v.stopPropagation(),b())}),onBlur:j(l.onBlur,v=>{const S=je(v),X=U(C.current,S),it=U(A.current,S),ct=!X&&!it;S&&Y(!ve(S)),f&&e&&ct&&b()}),"aria-labelledby":de?H:void 0,"aria-describedby":pe?J:void 0};return c===M.hover&&(g.role="tooltip",g.onMouseEnter=j(l.onMouseEnter,()=>{R.current=!0}),g.onMouseLeave=j(l.onMouseLeave,v=>{v.nativeEvent.relatedTarget!==null&&(R.current=!1,setTimeout(()=>b(),y))})),g},[ye,D,de,H,pe,J,c,r,b,f,e,y,d,p]),rt=u.useCallback((l={},h=null)=>fe({...l,style:{visibility:f?"visible":"hidden",...l.style}},h),[f,fe]),ot=u.useCallback((l,h=null)=>({...l,ref:_(h,Z,V)}),[Z,V]),O=u.useRef(),Q=u.useRef(),he=u.useCallback(l=>{Z.current==null&&V(l)},[V]),nt=u.useCallback((l={},h=null)=>{const g={...l,ref:_(A,h,he),id:me,"aria-haspopup":"dialog","aria-expanded":f,"aria-controls":D};return c===M.click&&(g.onClick=j(l.onClick,le)),c===M.hover&&(g.onFocus=j(l.onFocus,()=>{O.current===void 0&&T()}),g.onBlur=j(l.onBlur,v=>{const S=je(v),X=!U(C.current,S);f&&e&&X&&b()}),g.onKeyDown=j(l.onKeyDown,v=>{v.key==="Escape"&&b()}),g.onMouseEnter=j(l.onMouseEnter,()=>{R.current=!0,O.current=window.setTimeout(()=>T(),m)}),g.onMouseLeave=j(l.onMouseLeave,()=>{R.current=!1,O.current&&(clearTimeout(O.current),O.current=void 0),Q.current=window.setTimeout(()=>{R.current===!1&&b()},y)})),g},[me,f,D,c,he,le,T,e,b,m,y]);u.useEffect(()=>()=>{O.current&&clearTimeout(O.current),Q.current&&clearTimeout(Q.current)},[]);const st=u.useCallback((l={},h=null)=>({...l,id:H,ref:_(h,g=>{Ke(!!g)})}),[H]),at=u.useCallback((l={},h=null)=>({...l,id:J,ref:_(h,g=>{qe(!!g)})}),[J]);return{forceUpdate:et,isOpen:f,onAnimationComplete:ge.onComplete,onClose:b,getAnchorProps:ot,getArrowProps:Qe,getArrowInnerProps:Xe,getPopoverPositionerProps:rt,getPopoverProps:tt,getTriggerProps:nt,getHeaderProps:st,getBodyProps:at}}function U(t,e){return t===e||t?.contains(e)}function je(t){const e=t.currentTarget.ownerDocument.activeElement;return t.relatedTarget??e}function Ae(t){const e=Lt("Popover",t),{children:r,...o}=Nt(t),n=Gt(),a=sr({...o,direction:n.direction});return s.jsx(or,{value:a,children:s.jsx(nr,{value:e,children:kt(r,{isOpen:a.isOpen,onClose:a.onClose,forceUpdate:a.forceUpdate})})})}Ae.displayName="Popover";const te=(t,e)=>e?`${t}.${e}, ${e}`:void 0;function Re(t){const{bg:e,bgColor:r,backgroundColor:o,shadow:n,boxShadow:a,shadowColor:i,...p}=t,{getArrowProps:d,getArrowInnerProps:c}=F(),m=I(),y=e??r??o,w=n??a;return s.jsx(L.div,{...d(),className:"chakra-popover__arrow-positioner",children:s.jsx(L.div,{className:B("chakra-popover__arrow",t.className),...c(p),__css:{"--popper-arrow-shadow-color":te("colors",i),"--popper-arrow-bg":te("colors",y),"--popper-arrow-shadow":te("shadows",w),...m.arrow}})})}Re.displayName="PopoverArrow";const _e=E(function(e,r){const{getBodyProps:o}=F(),n=I();return s.jsx(L.div,{...o(e,r),className:B("chakra-popover__body",e.className),__css:n.body})});_e.displayName="PopoverBody";const Be=E(function(e,r){const{onClose:o}=F(),n=I();return s.jsx(Tt,{size:"sm",onClick:o,className:B("chakra-popover__close-btn",e.className),__css:n.closeButton,ref:r,...e})});Be.displayName="PopoverCloseButton";function ar(t){if(t)return{enter:{...t.enter,visibility:"visible"},exit:{...t.exit,transitionEnd:{visibility:"hidden"}}}}const ir={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},cr=L(At.section),Ee=E(function(e,r){const{variants:o=ir,...n}=e,{isOpen:a}=F();return s.jsx(cr,{ref:r,variants:ar(o),initial:!1,animate:a?"enter":"exit",...n})});Ee.displayName="PopoverTransition";const Ie=E(function(e,r){const{rootProps:o,motionProps:n,...a}=e,{getPopoverProps:i,getPopoverPositionerProps:p,onAnimationComplete:d}=F(),c=I(),m=Rt({position:"relative",display:"flex",flexDirection:"column",...c.content});return s.jsx(L.div,{...p(o),__css:c.popper,className:"chakra-popover__popper",children:s.jsx(Ee,{...n,...i(a,r),onAnimationComplete:_t(d,a.onAnimationComplete),className:B("chakra-popover__content",e.className),__css:m})})});Ie.displayName="PopoverContent";const De=E(function(e,r){const{getHeaderProps:o}=F(),n=I();return s.jsx(L.header,{...o(e,r),className:B("chakra-popover__header",e.className),__css:n.header})});De.displayName="PopoverHeader";function He(t){const e=u.Children.only(t.children),{getTriggerProps:r}=F();return s.jsx(s.Fragment,{children:u.cloneElement(e,r(e.props,e.ref))})}He.displayName="PopoverTrigger";function lr(t){return"parentLayer"in t}function Qr(t){return"olLayer"in t}class ur{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=xe,this.supportedMediaTypes=null}getReadOptions(e,r){if(r){let o=r.dataProjection?x(r.dataProjection):this.readProjection(e);r.extent&&o&&o.getUnits()==="tile-pixels"&&(o=x(o),o.setWorldExtent(r.extent)),r={dataProjection:o,featureProjection:r.featureProjection}}return this.adaptOptions(r)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return P()}readFeature(e,r){return P()}readFeatures(e,r){return P()}readGeometry(e,r){return P()}readProjection(e){return P()}writeFeature(e,r){return P()}writeFeatures(e,r){return P()}writeGeometry(e,r){return P()}}function ae(t,e,r){const o=r?x(r.featureProjection):null,n=r?x(r.dataProjection):null;let a=t;if(o&&n&&!lt(o,n)){e&&(a=t.clone());const i=e?o:n,p=e?n:o;i.getUnits()==="tile-pixels"?a.transform(i,p):a.applyTransform(ut(i,p))}if(e&&r&&r.decimals!==void 0){const i=Math.pow(10,r.decimals),p=function(d){for(let c=0,m=d.length;cJe({...t,geometry:a})).flat();const o=r.type==="MultiPolygon"?"Polygon":r.type;if(o==="GeometryCollection"||o==="Circle")throw new Error("Unsupported geometry type: "+o);const n=r.layout.length;return ae(new Ce(o,o==="Polygon"?pr(r.flatCoordinates,r.ends,n):r.flatCoordinates,r.ends?.flat(),n,t.properties||{},t.id).enableSimplifyTransformed(),!1,e)}function ie(t,e){if(!t)return null;if(Array.isArray(t)){const o=t.map(n=>ie(n,e));return new jt(o)}const r=dr[t.type];return ae(new r(t.flatCoordinates,t.layout,t.ends),!1,e)}class mr extends ur{constructor(){super()}getType(){return"json"}readFeature(e,r){return this.readFeatureFromObject(z(e),this.getReadOptions(e,r))}readFeatures(e,r){return this.readFeaturesFromObject(z(e),this.getReadOptions(e,r))}readFeatureFromObject(e,r){return P()}readFeaturesFromObject(e,r){return P()}readGeometry(e,r){return this.readGeometryFromObject(z(e),this.getReadOptions(e,r))}readGeometryFromObject(e,r){return P()}readProjection(e){return this.readProjectionFromObject(z(e))}readProjectionFromObject(e){return P()}writeFeature(e,r){return JSON.stringify(this.writeFeatureObject(e,r))}writeFeatureObject(e,r){return P()}writeFeatures(e,r){return JSON.stringify(this.writeFeaturesObject(e,r))}writeFeaturesObject(e,r){return P()}writeGeometry(e,r){return JSON.stringify(this.writeGeometryObject(e,r))}writeGeometryObject(e,r){return P()}}function z(t){if(typeof t=="string"){const e=JSON.parse(t);return e||null}return t!==null?t:null}class Xr extends mr{constructor(e){e=e||{},super(),this.dataProjection=x(e.dataProjection?e.dataProjection:"EPSG:4326"),e.featureProjection&&(this.defaultFeatureProjection=x(e.featureProjection)),e.featureClass&&(this.featureClass=e.featureClass),this.geometryName_=e.geometryName,this.extractGeometryName_=e.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(e,r){let o=null;e.type==="Feature"?o=e:o={type:"Feature",geometry:e,properties:null};const n=ce(o.geometry);if(this.featureClass===Ce)return Je({geometry:n,id:o.id,properties:o.properties},r);const a=new xe;return this.geometryName_?a.setGeometryName(this.geometryName_):this.extractGeometryName_&&o.geometry_name&&a.setGeometryName(o.geometry_name),a.setGeometry(ie(n,r)),"id"in o&&a.setId(o.id),o.properties&&a.setProperties(o.properties,!0),a}readFeaturesFromObject(e,r){const o=e;let n=null;if(o.type==="FeatureCollection"){const a=e;n=[];const i=a.features;for(let p=0,d=i.length;p{f(!1),a?.(T)};return s.jsx(Le,{label:o,placement:"auto",openDelay:500,...c,isOpen:q,onOpen:()=>f(!0),onClose:()=>f(!1),children:s.jsx(Lr,{className:G,ref:r,"aria-label":o,leftIcon:n,iconSpacing:0,padding:0,isDisabled:p,isLoading:i,isActive:d,"aria-pressed":k,...w,...m,onClick:b})})}),Lr=u.forwardRef(function(e,r){const{"aria-labelledby":o,"aria-describedby":n,...a}=e;return s.jsx(se,{ref:r,...a})}),Nr="@open-pioneer/toc",K=bt.bind(void 0,Nr),Ve=u.createContext(void 0),Gr=Ve.Provider;function kr(){const t=u.useContext(Ve);if(!t)throw new Error("useTocWidgetOptions must be used within a TocWidgetOptionsProvider");return t}function Tr(t){const{map:e,"aria-label":r}=t,o=K(),n=_r(e);return n.length?Ue(n,{"aria-label":r}):s.jsx(oe,{className:"toc-missing-layers","aria-label":r,children:o.formatMessage({id:"missingLayers"})})}function Ue(t,e){const r=t.map(o=>s.jsx(Ar,{layer:o},o.id));return s.jsx(It,{as:"ul",className:"toc-layer-list",listStyleType:"none",role:"group",...e,children:r})}function Ar(t){const{layer:e}=t,r=K(),o=kr(),{title:n,description:a,isVisible:i}=$(()=>({title:e.title,description:e.description,isVisible:e.visible}),[e]),p=Br(e),d=We(e)!=="error",c=r.formatMessage({id:"layerNotAvailable"});let m;return p?.length&&(m=Ue(p,{ml:4,"aria-label":r.formatMessage({id:"childgroupLabel"},{title:n})})),s.jsxs(W,{as:"li",className:Se("toc-layer-item",`layer-${Er(e.id)}`),children:[s.jsxs(re,{className:"toc-layer-item-content",width:"100%",flexDirection:"row",align:"center",justifyContent:"space-between",gap:2,minHeight:10,children:[s.jsx(Dt,{"aria-label":n+(d?"":" "+c),isChecked:i,isDisabled:!d,onChange:y=>ze(e,y.target.checked,o.autoShowParents),children:n}),!d&&s.jsx(Le,{className:"toc-layer-item-content-tooltip",label:c,placement:"right",openDelay:500,children:s.jsx("span",{children:s.jsx(Et,{className:"toc-layer-item-content-icon",color:"red","aria-label":c})})}),s.jsx(ke,{}),a&&s.jsx(Rr,{layer:e,title:n,description:a,intl:r})]}),m]})}function ze(t,e,r){t.setVisible(e),e&&r&&t.parent&&ze(t.parent,!0,!0)}function Rr(t){const{layer:e,title:r,description:o,intl:n}=t,a=n.formatMessage({id:"descriptionLabel"}),i=We(e)!=="error";return s.jsxs(Ae,{placement:"bottom-start",children:[s.jsx(He,{children:s.jsx(se,{isDisabled:!i,className:"toc-layer-item-details-button","aria-label":a,borderRadius:"full",iconSpacing:0,padding:0,variant:"ghost",leftIcon:s.jsx(Ge,{})})}),s.jsx(Ne,{children:s.jsxs(Ie,{className:"toc-layer-item-details",overflowY:"auto",maxHeight:"400",children:[s.jsx(Re,{}),s.jsx(Be,{mt:1}),s.jsx(De,{children:r}),s.jsx(_e,{children:o})]})})]})}function _r(t){return $(()=>{const e=t.layers.getOperationalLayers({sortByDisplayOrder:!0})??[];return e.reverse(),e},[t])}function Br(t){return $(()=>{const e=t.children?.getItems({sortByDisplayOrder:!0});return e?.reverse(),e},[t])}function We(t){return $(()=>(lr(t)?t.parentLayer:t).loadState,[t])}function Er(t){return t.toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}const Ir=t=>{const e=K(),{map:r,showHideAllLayers:o=!0}=t;return!!o&&s.jsx(W,{className:"toc-tools",children:s.jsxs(Wt,{placement:"bottom-start",children:[s.jsx($t,{as:se,className:"toc-tools-button","aria-label":e.formatMessage({id:"toolsLabel"}),borderRadius:"full",iconSpacing:0,padding:3,variant:"ghost",leftIcon:s.jsx(Ge,{})}),s.jsx(Ne,{children:s.jsx(Kt,{className:"tools-menu",children:s.jsx(qt,{"aria-label":e.formatMessage({id:"tools.hideAllLayers"}),onClick:()=>{Dr(r)},children:e.formatMessage({id:"tools.hideAllLayers"})})})})]})})};function Dr(t){const e=r=>{r.setVisible(!1);const o=r.children?.getItems();if(o)for(const n of o)e(n)};t?.layers.getOperationalLayers().forEach(r=>{e(r)})}const we=2,to=t=>{const e=K(),{showTools:r=!1,toolsConfig:o,showBasemapSwitcher:n=!0,basemapSwitcherProps:a,autoShowParents:i=!0}=t,{containerProps:p}=Fe("toc",t),d=u.useId(),c=u.useMemo(()=>({autoShowParents:i}),[i]),m=vt(t);let y;switch(m.kind){case"loading":y=null;break;case"rejected":y=s.jsx(oe,{className:"toc-error",children:e.formatMessage({id:"error"})});break;case"resolved":{const w=m.map,G=n&&s.jsx(W,{className:"toc-basemap-switcher",children:s.jsx(Pe,{title:s.jsx(be,{id:d,size:"sm",mb:we,children:e.formatMessage({id:"basemapsLabel"})}),children:s.jsx(Bt,{map:w,"aria-labelledby":d,...a})})}),k=s.jsx(W,{className:"toc-operational-layers",children:s.jsx(Pe,{title:s.jsx(be,{size:"sm",mb:2,children:s.jsxs(re,{children:[s.jsx(oe,{my:3,children:e.formatMessage({id:"operationalLayerLabel"})}),s.jsx(ke,{}),r&&s.jsx(Ir,{map:w,...o})]})}),children:s.jsx(Tr,{map:w,"aria-label":e.formatMessage({id:"operationalLayerLabel"})})})});y=s.jsxs(s.Fragment,{children:[G,k]});break}}return s.jsx(re,{...p,direction:"column",gap:we,children:s.jsx(Gr,{value:c,children:y})})};export{ur as F,Xr as G,Ae as P,eo as T,He as a,Ie as b,Re as c,_e as d,to as e,Qr as i,ae as t,F as u}; +import{a_ as xe,af as x,bR as P,ay as lt,bS as ut,ak as Ce,an as dt,am as pt,bT as mt,bU as ft,bV as gt,bW as yt,ac as ht,bX as N,bY as Oe,bZ as Pt,aZ as Fe,b3 as Se,u as bt,k as re,i as vt,g as Pe,h as be}from"./BjXju3dgjVrG.js";import{G as jt,a as wt,b as xt,M as Ct}from"./D1e64i0R5zCb.js";import{L as Ot}from"./D6bui9ILupw_.js";import{D as Ft,G as Me,H as St,r as u,J as Mt,K as ee,L as _,M as j,u as Lt,o as Nt,N as Gt,j as s,q as kt,g as L,m as B,h as E,C as Tt,O as At,P as Rt,Q as _t,l as Le,b as se,B as W,F as Ne}from"./BeGW3nmX4tO2.js";import{u as $,B as Bt}from"./B48t-8DI4YWS.js";import{F as Et,f as Ge}from"./N6gwA50uHdd6.js";import{S as ke}from"./uLM-EaCyc6aA.js";import{T as oe,L as It}from"./DM7y0OoBz9e5.js";import{C as Dt}from"./ElmKiM7bxWM_.js";import{u as Ht,a as Jt,b as Vt,c as Ut,l as zt,i as ve,M as Wt}from"./Gw82v5PUNK8h.js";import{a as $t,b as Kt,M as qt}from"./B3on_k3411E6.js";function Yt(t){return"current"in t}const Te=()=>typeof window<"u";function Zt(){return navigator.userAgentData?.platform??navigator.platform}const Qt=t=>Te()&&t.test(navigator.vendor),Xt=t=>Te()&&t.test(Zt()),er=()=>Xt(/mac|iphone|ipad|ipod/i),tr=()=>er()&&Qt(/apple/i);function rr(t){const{ref:e,elements:r,enabled:o}=t,n=()=>e.current?.ownerDocument??document;Ft(n,"pointerdown",a=>{if(!tr()||!o)return;const i=a.composedPath?.()?.[0]??a.target,d=(r??[e]).some(c=>{const m=Yt(c)?c.current:c;return m?.contains(i)||m===i});n().activeElement!==i&&d&&(a.preventDefault(),i.focus())})}const[or,F]=Me({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[nr,I]=Me({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),M={click:"click",hover:"hover"};function sr(t={}){const{closeOnBlur:e=!0,closeOnEsc:r=!0,initialFocusRef:o,id:n,returnFocusOnClose:a=!0,autoFocus:i=!0,arrowSize:p,arrowShadowColor:d,trigger:c=M.click,openDelay:m=200,closeDelay:y=200,isLazy:w,lazyBehavior:G="unmount",computePositionOnMount:k,...q}=t,{isOpen:f,onClose:b,onOpen:T,onToggle:le}=St(t),[$e,Y]=u.useState(a);u.useEffect(()=>Y(a),[a]);const Z=u.useRef(null),A=u.useRef(null),C=u.useRef(null),R=u.useRef(!1),ue=u.useRef(!1);f&&(ue.current=!0);const[de,Ke]=u.useState(!1),[pe,qe]=u.useState(!1),Ye=u.useId(),Ze=n??Ye,[me,D,H,J]=["popover-trigger","popover-content","popover-header","popover-body"].map(l=>`${l}-${Ze}`),{referenceRef:V,getArrowProps:Qe,getPopperProps:fe,getArrowInnerProps:Xe,forceUpdate:et}=Mt({...q,enabled:f||!!k}),ge=Ht({isOpen:f,ref:C});rr({enabled:f,ref:A}),Jt(C,{focusRef:A,visible:f,shouldFocus:$e&&c===M.click}),Vt(C,{focusRef:o,visible:f,shouldFocus:i&&c===M.click}),Ut({enabled:f&&e,ref:C,handler(l){const h=l.composedPath?.()[0]??[l.target];U(A.current,h)||(h&&Y(!ve(h)),b())}});const ye=zt({wasSelected:ue.current,enabled:w,mode:G,isSelected:ge.present}),tt=u.useCallback((l={},h=null)=>{const g={...l,style:{...l.style,transformOrigin:ee.transformOrigin.varRef,[ee.arrowSize.var]:p?`${p}px`:void 0,[ee.arrowShadowColor.var]:d},ref:_(C,h),children:ye?l.children:null,id:D,tabIndex:-1,role:"dialog",onKeyDown:j(l.onKeyDown,v=>{v.nativeEvent.isComposing||r&&v.key==="Escape"&&(v.preventDefault(),v.stopPropagation(),b())}),onBlur:j(l.onBlur,v=>{const S=je(v),X=U(C.current,S),it=U(A.current,S),ct=!X&&!it;S&&Y(!ve(S)),f&&e&&ct&&b()}),"aria-labelledby":de?H:void 0,"aria-describedby":pe?J:void 0};return c===M.hover&&(g.role="tooltip",g.onMouseEnter=j(l.onMouseEnter,()=>{R.current=!0}),g.onMouseLeave=j(l.onMouseLeave,v=>{v.nativeEvent.relatedTarget!==null&&(R.current=!1,setTimeout(()=>b(),y))})),g},[ye,D,de,H,pe,J,c,r,b,f,e,y,d,p]),rt=u.useCallback((l={},h=null)=>fe({...l,style:{visibility:f?"visible":"hidden",...l.style}},h),[f,fe]),ot=u.useCallback((l,h=null)=>({...l,ref:_(h,Z,V)}),[Z,V]),O=u.useRef(),Q=u.useRef(),he=u.useCallback(l=>{Z.current==null&&V(l)},[V]),nt=u.useCallback((l={},h=null)=>{const g={...l,ref:_(A,h,he),id:me,"aria-haspopup":"dialog","aria-expanded":f,"aria-controls":D};return c===M.click&&(g.onClick=j(l.onClick,le)),c===M.hover&&(g.onFocus=j(l.onFocus,()=>{O.current===void 0&&T()}),g.onBlur=j(l.onBlur,v=>{const S=je(v),X=!U(C.current,S);f&&e&&X&&b()}),g.onKeyDown=j(l.onKeyDown,v=>{v.key==="Escape"&&b()}),g.onMouseEnter=j(l.onMouseEnter,()=>{R.current=!0,O.current=window.setTimeout(()=>T(),m)}),g.onMouseLeave=j(l.onMouseLeave,()=>{R.current=!1,O.current&&(clearTimeout(O.current),O.current=void 0),Q.current=window.setTimeout(()=>{R.current===!1&&b()},y)})),g},[me,f,D,c,he,le,T,e,b,m,y]);u.useEffect(()=>()=>{O.current&&clearTimeout(O.current),Q.current&&clearTimeout(Q.current)},[]);const st=u.useCallback((l={},h=null)=>({...l,id:H,ref:_(h,g=>{Ke(!!g)})}),[H]),at=u.useCallback((l={},h=null)=>({...l,id:J,ref:_(h,g=>{qe(!!g)})}),[J]);return{forceUpdate:et,isOpen:f,onAnimationComplete:ge.onComplete,onClose:b,getAnchorProps:ot,getArrowProps:Qe,getArrowInnerProps:Xe,getPopoverPositionerProps:rt,getPopoverProps:tt,getTriggerProps:nt,getHeaderProps:st,getBodyProps:at}}function U(t,e){return t===e||t?.contains(e)}function je(t){const e=t.currentTarget.ownerDocument.activeElement;return t.relatedTarget??e}function Ae(t){const e=Lt("Popover",t),{children:r,...o}=Nt(t),n=Gt(),a=sr({...o,direction:n.direction});return s.jsx(or,{value:a,children:s.jsx(nr,{value:e,children:kt(r,{isOpen:a.isOpen,onClose:a.onClose,forceUpdate:a.forceUpdate})})})}Ae.displayName="Popover";const te=(t,e)=>e?`${t}.${e}, ${e}`:void 0;function Re(t){const{bg:e,bgColor:r,backgroundColor:o,shadow:n,boxShadow:a,shadowColor:i,...p}=t,{getArrowProps:d,getArrowInnerProps:c}=F(),m=I(),y=e??r??o,w=n??a;return s.jsx(L.div,{...d(),className:"chakra-popover__arrow-positioner",children:s.jsx(L.div,{className:B("chakra-popover__arrow",t.className),...c(p),__css:{"--popper-arrow-shadow-color":te("colors",i),"--popper-arrow-bg":te("colors",y),"--popper-arrow-shadow":te("shadows",w),...m.arrow}})})}Re.displayName="PopoverArrow";const _e=E(function(e,r){const{getBodyProps:o}=F(),n=I();return s.jsx(L.div,{...o(e,r),className:B("chakra-popover__body",e.className),__css:n.body})});_e.displayName="PopoverBody";const Be=E(function(e,r){const{onClose:o}=F(),n=I();return s.jsx(Tt,{size:"sm",onClick:o,className:B("chakra-popover__close-btn",e.className),__css:n.closeButton,ref:r,...e})});Be.displayName="PopoverCloseButton";function ar(t){if(t)return{enter:{...t.enter,visibility:"visible"},exit:{...t.exit,transitionEnd:{visibility:"hidden"}}}}const ir={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},cr=L(At.section),Ee=E(function(e,r){const{variants:o=ir,...n}=e,{isOpen:a}=F();return s.jsx(cr,{ref:r,variants:ar(o),initial:!1,animate:a?"enter":"exit",...n})});Ee.displayName="PopoverTransition";const Ie=E(function(e,r){const{rootProps:o,motionProps:n,...a}=e,{getPopoverProps:i,getPopoverPositionerProps:p,onAnimationComplete:d}=F(),c=I(),m=Rt({position:"relative",display:"flex",flexDirection:"column",...c.content});return s.jsx(L.div,{...p(o),__css:c.popper,className:"chakra-popover__popper",children:s.jsx(Ee,{...n,...i(a,r),onAnimationComplete:_t(d,a.onAnimationComplete),className:B("chakra-popover__content",e.className),__css:m})})});Ie.displayName="PopoverContent";const De=E(function(e,r){const{getHeaderProps:o}=F(),n=I();return s.jsx(L.header,{...o(e,r),className:B("chakra-popover__header",e.className),__css:n.header})});De.displayName="PopoverHeader";function He(t){const e=u.Children.only(t.children),{getTriggerProps:r}=F();return s.jsx(s.Fragment,{children:u.cloneElement(e,r(e.props,e.ref))})}He.displayName="PopoverTrigger";function lr(t){return"parentLayer"in t}function Qr(t){return"olLayer"in t}class ur{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=xe,this.supportedMediaTypes=null}getReadOptions(e,r){if(r){let o=r.dataProjection?x(r.dataProjection):this.readProjection(e);r.extent&&o&&o.getUnits()==="tile-pixels"&&(o=x(o),o.setWorldExtent(r.extent)),r={dataProjection:o,featureProjection:r.featureProjection}}return this.adaptOptions(r)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return P()}readFeature(e,r){return P()}readFeatures(e,r){return P()}readGeometry(e,r){return P()}readProjection(e){return P()}writeFeature(e,r){return P()}writeFeatures(e,r){return P()}writeGeometry(e,r){return P()}}function ae(t,e,r){const o=r?x(r.featureProjection):null,n=r?x(r.dataProjection):null;let a=t;if(o&&n&&!lt(o,n)){e&&(a=t.clone());const i=e?o:n,p=e?n:o;i.getUnits()==="tile-pixels"?a.transform(i,p):a.applyTransform(ut(i,p))}if(e&&r&&r.decimals!==void 0){const i=Math.pow(10,r.decimals),p=function(d){for(let c=0,m=d.length;cJe({...t,geometry:a})).flat();const o=r.type==="MultiPolygon"?"Polygon":r.type;if(o==="GeometryCollection"||o==="Circle")throw new Error("Unsupported geometry type: "+o);const n=r.layout.length;return ae(new Ce(o,o==="Polygon"?pr(r.flatCoordinates,r.ends,n):r.flatCoordinates,r.ends?.flat(),n,t.properties||{},t.id).enableSimplifyTransformed(),!1,e)}function ie(t,e){if(!t)return null;if(Array.isArray(t)){const o=t.map(n=>ie(n,e));return new jt(o)}const r=dr[t.type];return ae(new r(t.flatCoordinates,t.layout,t.ends),!1,e)}class mr extends ur{constructor(){super()}getType(){return"json"}readFeature(e,r){return this.readFeatureFromObject(z(e),this.getReadOptions(e,r))}readFeatures(e,r){return this.readFeaturesFromObject(z(e),this.getReadOptions(e,r))}readFeatureFromObject(e,r){return P()}readFeaturesFromObject(e,r){return P()}readGeometry(e,r){return this.readGeometryFromObject(z(e),this.getReadOptions(e,r))}readGeometryFromObject(e,r){return P()}readProjection(e){return this.readProjectionFromObject(z(e))}readProjectionFromObject(e){return P()}writeFeature(e,r){return JSON.stringify(this.writeFeatureObject(e,r))}writeFeatureObject(e,r){return P()}writeFeatures(e,r){return JSON.stringify(this.writeFeaturesObject(e,r))}writeFeaturesObject(e,r){return P()}writeGeometry(e,r){return JSON.stringify(this.writeGeometryObject(e,r))}writeGeometryObject(e,r){return P()}}function z(t){if(typeof t=="string"){const e=JSON.parse(t);return e||null}return t!==null?t:null}class Xr extends mr{constructor(e){e=e||{},super(),this.dataProjection=x(e.dataProjection?e.dataProjection:"EPSG:4326"),e.featureProjection&&(this.defaultFeatureProjection=x(e.featureProjection)),e.featureClass&&(this.featureClass=e.featureClass),this.geometryName_=e.geometryName,this.extractGeometryName_=e.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(e,r){let o=null;e.type==="Feature"?o=e:o={type:"Feature",geometry:e,properties:null};const n=ce(o.geometry);if(this.featureClass===Ce)return Je({geometry:n,id:o.id,properties:o.properties},r);const a=new xe;return this.geometryName_?a.setGeometryName(this.geometryName_):this.extractGeometryName_&&o.geometry_name&&a.setGeometryName(o.geometry_name),a.setGeometry(ie(n,r)),"id"in o&&a.setId(o.id),o.properties&&a.setProperties(o.properties,!0),a}readFeaturesFromObject(e,r){const o=e;let n=null;if(o.type==="FeatureCollection"){const a=e;n=[];const i=a.features;for(let p=0,d=i.length;p{f(!1),a?.(T)};return s.jsx(Le,{label:o,placement:"auto",openDelay:500,...c,isOpen:q,onOpen:()=>f(!0),onClose:()=>f(!1),children:s.jsx(Lr,{className:G,ref:r,"aria-label":o,leftIcon:n,iconSpacing:0,padding:0,isDisabled:p,isLoading:i,isActive:d,"aria-pressed":k,...w,...m,onClick:b})})}),Lr=u.forwardRef(function(e,r){const{"aria-labelledby":o,"aria-describedby":n,...a}=e;return s.jsx(se,{ref:r,...a})}),Nr="@open-pioneer/toc",K=bt.bind(void 0,Nr),Ve=u.createContext(void 0),Gr=Ve.Provider;function kr(){const t=u.useContext(Ve);if(!t)throw new Error("useTocWidgetOptions must be used within a TocWidgetOptionsProvider");return t}function Tr(t){const{map:e,"aria-label":r}=t,o=K(),n=_r(e);return n.length?Ue(n,{"aria-label":r}):s.jsx(oe,{className:"toc-missing-layers","aria-label":r,children:o.formatMessage({id:"missingLayers"})})}function Ue(t,e){const r=t.map(o=>s.jsx(Ar,{layer:o},o.id));return s.jsx(It,{as:"ul",className:"toc-layer-list",listStyleType:"none",role:"group",...e,children:r})}function Ar(t){const{layer:e}=t,r=K(),o=kr(),{title:n,description:a,isVisible:i}=$(()=>({title:e.title,description:e.description,isVisible:e.visible}),[e]),p=Br(e),d=We(e)!=="error",c=r.formatMessage({id:"layerNotAvailable"});let m;return p?.length&&(m=Ue(p,{ml:4,"aria-label":r.formatMessage({id:"childgroupLabel"},{title:n})})),s.jsxs(W,{as:"li",className:Se("toc-layer-item",`layer-${Er(e.id)}`),children:[s.jsxs(re,{className:"toc-layer-item-content",width:"100%",flexDirection:"row",align:"center",justifyContent:"space-between",gap:2,minHeight:10,children:[s.jsx(Dt,{"aria-label":n+(d?"":" "+c),isChecked:i,isDisabled:!d,onChange:y=>ze(e,y.target.checked,o.autoShowParents),children:n}),!d&&s.jsx(Le,{className:"toc-layer-item-content-tooltip",label:c,placement:"right",openDelay:500,children:s.jsx("span",{children:s.jsx(Et,{className:"toc-layer-item-content-icon",color:"red","aria-label":c})})}),s.jsx(ke,{}),a&&s.jsx(Rr,{layer:e,title:n,description:a,intl:r})]}),m]})}function ze(t,e,r){t.setVisible(e),e&&r&&t.parent&&ze(t.parent,!0,!0)}function Rr(t){const{layer:e,title:r,description:o,intl:n}=t,a=n.formatMessage({id:"descriptionLabel"}),i=We(e)!=="error";return s.jsxs(Ae,{placement:"bottom-start",children:[s.jsx(He,{children:s.jsx(se,{isDisabled:!i,className:"toc-layer-item-details-button","aria-label":a,borderRadius:"full",iconSpacing:0,padding:0,variant:"ghost",leftIcon:s.jsx(Ge,{})})}),s.jsx(Ne,{children:s.jsxs(Ie,{className:"toc-layer-item-details",overflowY:"auto",maxHeight:"400",children:[s.jsx(Re,{}),s.jsx(Be,{mt:1}),s.jsx(De,{children:r}),s.jsx(_e,{children:o})]})})]})}function _r(t){return $(()=>{const e=t.layers.getOperationalLayers({sortByDisplayOrder:!0})??[];return e.reverse(),e},[t])}function Br(t){return $(()=>{const e=t.children?.getItems({sortByDisplayOrder:!0});return e?.reverse(),e},[t])}function We(t){return $(()=>(lr(t)?t.parentLayer:t).loadState,[t])}function Er(t){return t.toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}const Ir=t=>{const e=K(),{map:r,showHideAllLayers:o=!0}=t;return!!o&&s.jsx(W,{className:"toc-tools",children:s.jsxs(Wt,{placement:"bottom-start",children:[s.jsx($t,{as:se,className:"toc-tools-button","aria-label":e.formatMessage({id:"toolsLabel"}),borderRadius:"full",iconSpacing:0,padding:3,variant:"ghost",leftIcon:s.jsx(Ge,{})}),s.jsx(Ne,{children:s.jsx(Kt,{className:"tools-menu",children:s.jsx(qt,{"aria-label":e.formatMessage({id:"tools.hideAllLayers"}),onClick:()=>{Dr(r)},children:e.formatMessage({id:"tools.hideAllLayers"})})})})]})})};function Dr(t){const e=r=>{r.setVisible(!1);const o=r.children?.getItems();if(o)for(const n of o)e(n)};t?.layers.getOperationalLayers().forEach(r=>{e(r)})}const we=2,to=t=>{const e=K(),{showTools:r=!1,toolsConfig:o,showBasemapSwitcher:n=!0,basemapSwitcherProps:a,autoShowParents:i=!0}=t,{containerProps:p}=Fe("toc",t),d=u.useId(),c=u.useMemo(()=>({autoShowParents:i}),[i]),m=vt(t);let y;switch(m.kind){case"loading":y=null;break;case"rejected":y=s.jsx(oe,{className:"toc-error",children:e.formatMessage({id:"error"})});break;case"resolved":{const w=m.map,G=n&&s.jsx(W,{className:"toc-basemap-switcher",children:s.jsx(Pe,{title:s.jsx(be,{id:d,size:"sm",mb:we,children:e.formatMessage({id:"basemapsLabel"})}),children:s.jsx(Bt,{map:w,"aria-labelledby":d,...a})})}),k=s.jsx(W,{className:"toc-operational-layers",children:s.jsx(Pe,{title:s.jsx(be,{size:"sm",mb:2,children:s.jsxs(re,{children:[s.jsx(oe,{my:3,children:e.formatMessage({id:"operationalLayerLabel"})}),s.jsx(ke,{}),r&&s.jsx(Ir,{map:w,...o})]})}),children:s.jsx(Tr,{map:w,"aria-label":e.formatMessage({id:"operationalLayerLabel"})})})});y=s.jsxs(s.Fragment,{children:[G,k]});break}}return s.jsx(re,{...p,direction:"column",gap:we,children:s.jsx(Gr,{value:c,children:y})})};export{ur as F,Xr as G,Ae as P,eo as T,He as a,Ie as b,Re as c,_e as d,to as e,Qr as i,ae as t,F as u}; diff --git a/openlayers-base-packages/assets/X8GI6bUqkf4N.js b/openlayers-base-packages/assets/DiQTorPxGDiV.js similarity index 90% rename from openlayers-base-packages/assets/X8GI6bUqkf4N.js rename to openlayers-base-packages/assets/DiQTorPxGDiV.js index 22a52a8b0..4c647bf7d 100644 --- a/openlayers-base-packages/assets/X8GI6bUqkf4N.js +++ b/openlayers-base-packages/assets/DiQTorPxGDiV.js @@ -1 +1 @@ -var Ft=Object.defineProperty;var Xe=o=>{throw TypeError(o)};var Bt=(o,e,t)=>e in o?Ft(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var b=(o,e,t)=>Bt(o,typeof e!="symbol"?e+"":e,t),Ne=(o,e,t)=>e.has(o)||Xe("Cannot "+t);var a=(o,e,t)=>(Ne(o,e,"read from private field"),t?t.call(o):e.get(o)),u=(o,e,t)=>e.has(o)?Xe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),h=(o,e,t,i)=>(Ne(o,e,"write to private field"),i?i.call(o,t):e.set(o,t),t),x=(o,e,t)=>(Ne(o,e,"access private method"),t);import{g as ft,h as Gt,j as r,B as R,r as f,c as be,b as Y,F as Ht,V as Be,A as Oe,k as Ve,l as Ut,E as A,a as Wt,f as qt}from"./BeGW3nmX4tO2.js";import{aE as $t,aF as Kt,ag as Yt,af as Je,aG as Zt,aH as Xt,ao as Jt,aI as Qt,aJ as eo,aK as to,a9 as oo,as as io,aL as Qe,aM as ro,aN as so,aO as et,aP as ao,aQ as no,aR as ze,V as lo,aS as tt,A as co,L as po,aT as uo,J as ho,aU as mo,aV as go,aW as fo,aX as vo,aY as ot,S as Ue,T as vt,O as bt,a as We,b as wt,aZ as Ae,i as je,f as qe,u as Te,r as re,a_ as it,a$ as bo,an as wo,j as Ge,c as yt,C as yo,F as xt,ax as kt,d as xo,w as $e,b0 as ko,b1 as So,b2 as _o,k as F,b3 as Mo,g as ke,h as He,b4 as Io,b5 as Eo,H as Lo,M as Co,D as Ao,l as jo,m as rt}from"./q4MLRk0u7kxl.js";import{W as To,i as Po,j as St}from"./DKlkM3Rq-R3t.js";import{O as _t,W as Ro,c as Do,I as No,C as Oo,b as Vo,a as zo,M as Fo,P as Bo,L as Go,d as Ho,S as Uo,E as Wo,V as qo,e as Mt,N as $o}from"./zSfZu7QVHLy4.js";import{G as It,T as Ko,e as Yo}from"./Bh6kFNuDWsIw.js";import{T as Pe,L as Zo}from"./DM7y0OoBz9e5.js";import{u as B}from"./BOXMyqr06QWb.js";import{G as Xo}from"./N6gwA50uHdd6.js";import{Z as Jo,a as Qo,H as ei,b as ti,I as oi,V as ii,S as ri}from"./DTvtLMAVxi8t.js";import{c as si}from"./Dc3xe-fbgKeJ.js";import{M as ai,a as ni,b as li}from"./B3on_k3411E6.js";import{M as ci}from"./Gw82v5PUNK8h.js";import{S as di}from"./uLM-EaCyc6aA.js";import{R as pi}from"./BknMP--fbInd.js";import{N as ui,P as hi}from"./BMa7TTlUnkcm.js";import{_ as st}from"./CmsKOCeNyeyo.js";import{F as mi}from"./BMuX_dt1qyjL.js";import{H as gi}from"./D1wuBnUV5g92.js";import{F as fi}from"./cMbQJw1ZoqBe.js";import"./UlulYB4e5zqK.js";import"./D3gFeNVkNTAB.js";import"./39a3VBatk_eA.js";import"./ElmKiM7bxWM_.js";const Et=ft("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Et.displayName="Center";const vi={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Gt(function(e,t){const{axis:i="both",...s}=e;return r.jsx(ft.div,{ref:t,__css:vi[i],...s,position:"absolute"})});const g={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},bi={ERROR:"error"};class wi extends Jt{constructor(e){super(bi.ERROR),this.code=e.code,this.message=e.message}}let yi=class extends $t{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.position_=null,this.transform_=Kt,this.watchId_=void 0,this.addChangeListener(g.PROJECTION,this.handleProjectionChanged_),this.addChangeListener(g.TRACKING,this.handleTrackingChanged_),e.projection!==void 0&&this.setProjection(e.projection),e.trackingOptions!==void 0&&this.setTrackingOptions(e.trackingOptions),this.setTracking(e.tracking!==void 0?e.tracking:!1)}disposeInternal(){this.setTracking(!1),super.disposeInternal()}handleProjectionChanged_(){const e=this.getProjection();e&&(this.transform_=Yt(Je("EPSG:4326"),e),this.position_&&this.set(g.POSITION,this.transform_(this.position_)))}handleTrackingChanged_(){if("geolocation"in navigator){const e=this.getTracking();e&&this.watchId_===void 0?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):!e&&this.watchId_!==void 0&&(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}}positionChange_(e){const t=e.coords;this.set(g.ACCURACY,t.accuracy),this.set(g.ALTITUDE,t.altitude===null?void 0:t.altitude),this.set(g.ALTITUDE_ACCURACY,t.altitudeAccuracy===null?void 0:t.altitudeAccuracy),this.set(g.HEADING,t.heading===null?void 0:Zt(t.heading)),this.position_?(this.position_[0]=t.longitude,this.position_[1]=t.latitude):this.position_=[t.longitude,t.latitude];const i=this.transform_(this.position_);this.set(g.POSITION,i.slice()),this.set(g.SPEED,t.speed===null?void 0:t.speed);const s=Xt(this.position_,t.accuracy);s.applyTransform(this.transform_),this.set(g.ACCURACY_GEOMETRY,s),this.changed()}positionError_(e){this.dispatchEvent(new wi(e))}getAccuracy(){return this.get(g.ACCURACY)}getAccuracyGeometry(){return this.get(g.ACCURACY_GEOMETRY)||null}getAltitude(){return this.get(g.ALTITUDE)}getAltitudeAccuracy(){return this.get(g.ALTITUDE_ACCURACY)}getHeading(){return this.get(g.HEADING)}getPosition(){return this.get(g.POSITION)}getProjection(){return this.get(g.PROJECTION)}getSpeed(){return this.get(g.SPEED)}getTracking(){return this.get(g.TRACKING)}getTrackingOptions(){return this.get(g.TRACKING_OPTIONS)}setProjection(e){this.set(g.PROJECTION,Je(e))}setTracking(e){this.set(g.TRACKING,e)}setTrackingOptions(e){this.set(g.TRACKING_OPTIONS,e)}};const xi=1.2;function ki(o,e=xi){Si(o);const t=Qt(o),i=eo(o),s=t*e,n=i*e;return[o[0]-(s-t)/2,o[1]-(n-i)/2,o[2]+(s-t)/2,o[3]+(n-i)/2]}function Si(o){if(o.length!==4)throw new Error(`Invalid extent (expected length 4, but got length ${o.length}).`)}const Fe=.75,xe=.1;let _i=class extends to{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=e.collapsed!==void 0?e.collapsed:!0,this.collapsible_=e.collapsible!==void 0?e.collapsible:!0,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=e.rotateWithView!==void 0?e.rotateWithView:!1,this.viewExtent_=void 0;const t=e.className!==void 0?e.className:"ol-overviewmap",i=e.tipLabel!==void 0?e.tipLabel:"Overview map",s=e.collapseLabel!==void 0?e.collapseLabel:"‹";typeof s=="string"?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s):this.collapseLabel_=s;const n=e.label!==void 0?e.label:"›";typeof n=="string"?(this.label_=document.createElement("span"),this.label_.textContent=n):this.label_=n;const l=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,c=document.createElement("button");c.setAttribute("type","button"),c.title=i,c.appendChild(l),c.addEventListener(oo.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const d=new io({view:e.view,controls:new Qe,interactions:new Qe});this.ovmap_=d,e.layers&&e.layers.forEach(function(M){d.addLayer(M)});const p=document.createElement("div");p.className="ol-overviewmap-box",p.style.boxSizing="border-box",this.boxOverlay_=new _t({position:[0,0],positioning:"center-center",element:p}),this.ovmap_.addOverlay(this.boxOverlay_);const y=t+" "+ro+" "+so+(this.collapsed_&&this.collapsible_?" "+et:"")+(this.collapsible_?"":" ol-uncollapsible"),m=this.element;m.className=y,m.appendChild(this.ovmapDiv_),m.appendChild(c);const v=this,_=this.boxOverlay_,T=this.boxOverlay_.getElement(),De=function(M){return{clientX:M.clientX,clientY:M.clientY}},we=function(M){const I=De(M),Ze=d.getEventCoordinate(I);_.setPosition(Ze)},ye=function(M){const I=d.getEventCoordinateInternal(M);v.getMap().getView().setCenterInternal(I),window.removeEventListener("pointermove",we),window.removeEventListener("pointerup",ye)};this.ovmapDiv_.addEventListener("pointerdown",function(){event.target===T&&window.addEventListener("pointermove",we),window.addEventListener("pointerup",ye)})}setMap(e){const t=this.getMap();if(e!==t){if(t){const i=t.getView();i&&this.unbindView_(i),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(ao(e,no.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const i=e.getView();i&&this.bindView_(i),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===ze.VIEW){const t=e.oldValue;t&&this.unbindView_(t);const i=this.getMap().getView();this.bindView_(i)}else!this.ovmap_.isRendered()&&(e.key===ze.TARGET||e.key===ze.SIZE)&&this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new lo({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(tt.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_(),e.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())}unbindView_(e){e.removeChangeListener(tt.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const i=e.getSize(),n=e.getView().calculateExtentInternal(i);if(this.viewExtent_&&co(n,this.viewExtent_))return;this.viewExtent_=n;const l=t.getSize(),d=t.getView().calculateExtentInternal(l),p=t.getPixelFromCoordinateInternal(po(n)),y=t.getPixelFromCoordinateInternal(uo(n)),m=Math.abs(p[0]-y[0]),v=Math.abs(p[1]-y[1]),_=l[0],T=l[1];m<_*xe||v_*Fe||v>T*Fe?this.resetExtent_():ho(d,n)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,i=e.getSize(),n=e.getView().calculateExtentInternal(i),l=t.getView(),c=Math.log(Fe/xe)/Math.LN2,d=1/(Math.pow(2,c/2)*xe);mo(n,d),l.fitInternal(go(n))}recenter_(){const e=this.getMap(),t=this.ovmap_,i=e.getView();t.getView().setCenterInternal(i.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const i=e.getSize(),s=e.getView(),n=t.getView(),l=this.rotateWithView_?0:-s.getRotation(),c=this.boxOverlay_,d=this.boxOverlay_.getElement(),p=s.getCenter(),y=s.getResolution(),m=n.getResolution(),v=i[0]*y/m,_=i[1]*y/m;if(c.setPosition(p),d){d.style.width=v+"px",d.style.height=_+"px";const T="rotate("+l+"rad)";d.style.transform=T}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=fo(this.ovmap_,vo.POSTRENDER,e=>{delete this.ovmapPostrenderKey_,this.updateBox_()}))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(et),this.collapsed_?ot(this.collapseLabel_,this.label_):ot(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered()){this.viewExtent_=void 0,e.render();return}e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){!this.collapsible_||this.collapsed_===e||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}};const Mi=si({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),Ii={height:"25px",width:"25px",borderColor:"#4cb3ff",borderWidth:"3px",borderRadius:"50%",display:"inline-block "};function Ei(o){return r.jsxs(R,{children:[r.jsx(Pe,{children:o.layer.title}),r.jsx(R,{style:Ii})]})}const Re="main";class Li{mapId=Re;vectorSourceFactory;constructor(e){this.vectorSourceFactory=e.references.vectorSourceFactory}async getMapConfig(){return{initialView:{kind:"position",center:{x:823091,y:6724521},zoom:8},layers:[new Ue({title:"OSM",id:"osm",isBaseLayer:!0,olLayer:new vt({source:new bt})}),new Ro({isBaseLayer:!0,title:"Orthofotos NRW",url:"https://www.wmts.nrw.de/geobasis/wmts_nw_dop/1.0.0/WMTSCapabilities.xml",name:"nw_dop",matrixSet:"EPSG_3857_16",sourceOptions:{attributions:'Die Geobasisdaten des amtlichen Vermessungswesens werden als öffentliche Aufgabe gem. VermKatG NRW und gebührenfrei nach Open Data-Prinzipien über online-Verfahren bereitgestellt. Nutzungsbedingungen: siehe '}}),ji(),Ai(),Ci(this.vectorSourceFactory)]}}}function Ci(o){const e="https://ogc-api-test.nrw.de/inspire-us-krankenhaus/v1",t="governmentalservice",i=o.createVectorSource({baseUrl:e,collectionId:t,limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:`Land NRW (${new Date().getFullYear()}), Datenlizenz Deutschland - Namensnennung - Version 2.0, Datenquelle`}),s=new We({source:i});return new Ue({id:"krankenhaus",title:"Krankenhäuser-Demo-Dienst",visible:!1,olLayer:s,attributes:{collectionURL:e+"/collections/"+t}})}function Ai(){const o=new wt({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new It,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'}),e=new We({source:o}),t={Component:Ei};return new Ue({id:"ogc_kitas",title:"Kindertagesstätten",visible:!0,olLayer:e,attributes:{legend:t}})}function ji(){return new To({title:"Verwaltungsgebiete",id:"verwaltungsgebiete",visible:!1,url:"https://www.wms.nrw.de/geobasis/wms_nw_dvg",sublayers:[{name:"nw_dvg_krs",title:"Kreise und kreisfreie Städte"}]})}const Ti="200px",Pi="300px",Ri=o=>{const{olLayer:e,height:t=Ti,width:i=Pi}=o,{containerProps:s}=Ae("overview-map",o),n=f.useRef(null),{map:l}=je(o);return f.useEffect(()=>{if(n.current&&l&&e){const c=l.olMap,d=new _i({className:"ol-overviewmap",layers:[e],collapsible:!1,collapsed:!1,target:n.current});return c.addControl(d),()=>{c.removeControl(d)}}},[l,e]),r.jsx(R,{height:t,width:i,ref:n,...s})};function Di({intl:o}){return{id:"overviewMap",title:o.formatMessage({id:"demos.overviewMap.title"}),createModel(){const e=new vt({source:new bt});return{description:o.formatMessage({id:"demos.overviewMap.description"}),mainWidget:r.jsx(Ri,{olLayer:e}),destroy(){e.dispose()}}}}}class Ni{label;filteredTypes;httpService;constructor(e,t,i){this.label=e,this.filteredTypes=t,this.httpService=i}async search(e,{mapProjection:t,signal:i}){const s=await this.request(e,100,i),n=new It({dataProjection:"EPSG:4326",featureProjection:t});return s.features.filter(l=>this.filteredTypes.includes(l.properties.type)).map((l,c)=>{const d=n.readGeometry(l.geometry);return{id:l.properties.osm_id||c,label:this.createLabel(l),geometry:d,properties:l.properties}})}async request(e,t,i){const s=new URL("https://photon.komoot.io/api?");s.searchParams.set("q",e),s.searchParams.set("lang","de"),s.searchParams.set("lat","51.961563"),s.searchParams.set("lon","7.628202"),s.searchParams.set("limit",t.toString());const n=await this.httpService.fetch(s,{signal:i});if(!n.ok)throw new Error("Request failed: "+n.status);return await n.json()}createLabel(e){return`${e.properties.name} (${e.properties.osm_value?e.properties.osm_value+", ":""}${e.properties.postcode?e.properties.postcode+", ":""}${e.properties.city?e.properties.city+", ":""}${e.properties.country?e.properties.country+")":")"}`}}function Oi({intl:o,httpService:e,mapModel:t}){return{id:"searchAndHighlight",title:o.formatMessage({id:"demos.searchAndHighlight.title"}),createModel(){return new Vi(o,t,e)}}}var de,pe,Z,Se,X,mt;let Vi=(mt=class{constructor(e,t,i){u(this,de);u(this,pe);u(this,Z);b(this,"description");b(this,"mainWidget");u(this,Se,e=>{const t=e.result.geometry;t&&(a(this,X).call(this),h(this,Z,zi(a(this,pe),[t])))});u(this,X,()=>{a(this,Z)?.destroy(),h(this,Z,void 0)});h(this,de,new Ni("Photon Geocoder",["city","street"],i)),h(this,pe,t),this.description=e.formatMessage({id:"demos.searchAndHighlight.description"}),this.mainWidget=r.jsx(Do,{sources:[a(this,de)],onSelect:a(this,Se),onClear:a(this,X)})}destroy(){a(this,X).call(this)}},de=new WeakMap,pe=new WeakMap,Z=new WeakMap,Se=new WeakMap,X=new WeakMap,mt);function zi(o,e){const t=o.olMap.getViewport();return o.highlightAndZoom(e,{viewPadding:t&&t.offsetWidth<1e3?{top:150,right:75,bottom:50,left:75}:{top:150,right:400,bottom:50,left:400}})}const Lt="@open-pioneer/geolocation",Fi=qe.bind(void 0,Lt),Ct=Te.bind(void 0,Lt);function Bi(o){return Xo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"},child:[]}]})(o)}const at=be("geolocation:GeolocationController"),nt=17;var G,H;class Gi{constructor(e,t,i){b(this,"supported",!!navigator.geolocation);b(this,"map");b(this,"positionHighlightLayer");b(this,"geolocation");b(this,"onError");b(this,"maxZoom",nt);b(this,"accuracyFeature");b(this,"positionFeature");b(this,"changeHandlers",[]);b(this,"setMapToPosition",!0);b(this,"trackingOptions",{});b(this,"isInitialZoom",!0);u(this,G,re(!1));u(this,H,re(!1));this.map=e,this.onError=t,this.isInitialZoom=!0,this.accuracyFeature=new it,this.accuracyFeature.setStyle(ct()),this.positionFeature=new it,this.positionFeature.setStyle(lt()),this.positionHighlightLayer=new We({source:new wt({features:[this.accuracyFeature,this.positionFeature]})}),this.positionHighlightLayer.setZIndex(bo);const s=i||Hi();this.geolocation=new yi({tracking:!1,trackingOptions:s,projection:e.olView?.getProjection()}),this.trackingOptions=s,this.geolocation.on("error",n=>this.handleGeolocationError(n))}destroy(){this.stopGeolocation(),this.geolocation?.setTracking(!1),this.geolocation.dispose(),this.accuracyFeature=void 0,this.positionFeature=void 0,this.positionHighlightLayer.dispose()}startGeolocation(){if(a(this,H).value)return;new Promise(t=>{a(this,H).value=!0,a(this,G).value=!0,this.geolocation?.setProjection(this.map.olView?.getProjection()),this.geolocation?.setTracking(!0);const i=this.geolocation.on("change:accuracyGeometry",()=>{const c=this.geolocation.getAccuracyGeometry()||void 0;if(this.accuracyFeature?.setGeometry(c),this.accuracyFeature?.getGeometry()!==void 0&&t(),this.isInitialZoom){const d=this?.accuracyFeature?.getGeometry()?.getExtent();if(d){const p=ki(d);if(!p)return;this.map.olView.fit(p,{maxZoom:this.maxZoom}),this.isInitialZoom=!1}}}),s=this.geolocation.on("change:position",()=>{const c=this.geolocation.getPosition();c&&(c[0]||c[1])!==void 0&&(this.positionFeature?.setGeometry(new wo(c)),this.setMapToPosition&&this.map.olView.setCenter(c),this.positionFeature?.getGeometry()!==void 0&&t())}),n=this.map.olView.on("change:resolution",()=>{this.setMapToPosition=this.isInitialZoom}),l=this.map.olMap.on("pointermove",c=>{c.dragging&&(this.setMapToPosition=!1)});this.changeHandlers.push(i,s,n,l),this.map.olMap.addLayer(this.positionHighlightLayer)}).then(()=>{a(this,G).value=!1}).catch(t=>{at.error("Failed to determine location",t)})}stopGeolocation(){this.geolocation?.setTracking(!1),a(this,H).value=!1,a(this,G).value=!1,this.trackingOptions={},this.setMapToPosition=!0,this.isInitialZoom=!0,this.changeHandlers.forEach(e=>{Ge(e)}),this.changeHandlers=[],this.accuracyFeature?.setGeometry(void 0),this.positionFeature?.setGeometry(void 0),this.map.olMap.removeLayer(this.positionHighlightLayer)}get active(){return a(this,H).value}get loading(){return a(this,G).value}setPositionFeatureStyle(e){this.positionFeature?.setStyle(e??lt())}setAccuracyFeatureStyle(e){this.accuracyFeature?.setStyle(e??ct())}setMaxZoom(e){this.maxZoom=e??nt}getMaxZoom(){return this.maxZoom}getPositionFeature(){return this.positionFeature}getAccuracyFeature(){return this.accuracyFeature}getTrackingOptions(){return this.trackingOptions}getGeolocation(){return this.geolocation}handleGeolocationError(e){at.error("Error from geolocation API:",e.message),this.stopGeolocation();const t=(()=>{switch(e.code){case 1:return"permission-denied";case 2:return"position-unavailable";case 3:return"timeout";default:return"unknown"}})();this.onError(t)}}G=new WeakMap,H=new WeakMap;const lt=()=>new yt({image:new yo({radius:6,fill:new xt({color:"#3399CC"}),stroke:new kt({color:"#fff",width:2})})}),ct=()=>new yt({stroke:new kt({color:"#3399CC",width:3}),fill:new xt({color:"rgba(0, 0, 255, 0.05)"})}),Hi=()=>({enableHighAccuracy:!0,timeout:6e4,maximumAge:6e5}),Ui=f.forwardRef(function(e,t){const{maxZoom:i,positionFeatureStyle:s,accuracyFeatureStyle:n,trackingOptions:l}=e,{map:c}=je(e),d=qi(c,i,l,s,n);return d&&r.jsx(Wi,{...e,controller:d,ref:t})}),Wi=f.forwardRef(function(e,t){const{controller:i}=e,{containerProps:s}=Ae("geolocation",e),{isLoading:n,isActive:l}=B(()=>({isLoading:i.loading,isActive:i.active}),[i]),c=Ct(),d=i.supported?l?c.formatMessage({id:"locateMeEnd"}):c.formatMessage({id:"locateMeStart"}):c.formatMessage({id:"locateNotSupported"}),p=()=>{i.active?i.stopGeolocation():i.startGeolocation()};return r.jsx(Ko,{ref:t,label:d,icon:r.jsx(Bi,{}),onClick:()=>p(),isActive:l,isLoading:n,isDisabled:!i.supported,...s})});function qi(o,e,t,i,s){const n=Ct(),l=Fi("notifier.NotificationService"),[c,d]=f.useState();return f.useEffect(()=>{if(!o)return;const p=m=>{const v=n.formatMessage({id:"error"}),_=(()=>{switch(m){case"permission-denied":return n.formatMessage({id:"permissionDenied"});case"position-unavailable":return n.formatMessage({id:"positionUnavailable"});case"timeout":return n.formatMessage({id:"timeout"});case"unknown":return n.formatMessage({id:"unknownError"})}})();l.notify({level:"error",title:v,message:_})},y=new Gi(o,p,t);return d(y),()=>{y.destroy(),d(void 0)}},[o,t,n,l]),f.useEffect(()=>{c?.setPositionFeatureStyle(i)},[c,i]),f.useEffect(()=>{c?.setAccuracyFeatureStyle(s)},[c,s]),f.useEffect(()=>{c?.setMaxZoom(e)},[c,e]),c}const $i="@open-pioneer/scale-setter",Ki=Te.bind(void 0,$i),Yi=[17471320,8735660,4367830,2183915,1091957,545978,272989,136494,68247,34123,17061,8530,4265,2132],Zi=o=>{const{scales:e=Yi}=o,{containerProps:t}=Ae("scale-setter",o),{map:i}=je(o),s=Ki(),n=B(()=>i?.scale??1,[i]),l=e.map(d=>r.jsx(ai,{value:d,onClick:()=>i?.setScale(d),onFocus:p=>{p.target?.scrollIntoView?.({block:"nearest"})},className:"scale-setter-option",children:dt(s,d)},d)),c=dt(s,n);return r.jsx(R,{...t,children:r.jsxs(ci,{isLazy:!0,children:[r.jsx(ni,{as:Y,rightIcon:r.jsx(Mi,{}),className:"scale-setter-menubutton","aria-label":s.formatMessage({id:"button.ariaLabel"},{scale:c}),"aria-description":s.formatMessage({id:"button.ariaDescription"}),children:c}),r.jsx(Ht,{children:r.jsx(li,{className:"scale-setter-menuoptions",maxHeight:"20em",overflowY:"auto",children:l})})]})})};function dt(o,e){return"1 : "+o.formatNumber(e)}const At="@open-pioneer/spatial-bookmarks",Xi=qe.bind(void 0,At),Ji=Te.bind(void 0,At),D=be("spatial-bookmark:SpatialBookmarkViewModel");class Qi{map;packageNamespace;writableBookmarks=xo([]);watchBookmarksHandle;get bookmarks(){return this.writableBookmarks.getItems()}constructor(e,t){this.map=e,this.packageNamespace=t.getNamespace("spatial-bookmarks"),this.loadState(),this.watchBookmarksHandle=$e(()=>[this.writableBookmarks.getItems()],([i])=>this.saveState(i),{immediate:!1})}destroy(){this.watchBookmarksHandle.destroy()}createBookmark(e){const t=this.map.olView.calculateExtent(),i=this.map.projection.getCode(),s={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]},n={id:ko(),title:e,extent:s,projection:i};D.debug("Created a new bookmark",n),this.writableBookmarks.push(n)}activateBookmark(e){D.debug("Activating bookmark",e);const t=this.getBookmarkExtent(e);D.debug("Attempting to apply extent",t),this.applyExtent(t)}deleteBookmark(e){D.debug("Deleting bookmark",e);const t=this.writableBookmarks.findIndex(i=>i.id===e);t>-1&&this.writableBookmarks.splice(t,1)}deleteAllBookmarks(){D.debug("Deleting all bookmarks"),this.writableBookmarks.splice(0)}loadState(){D.debug("Restoring bookmarks from local storage");const e=this.packageNamespace.get("bookmarks")??[];try{er(e),this.writableBookmarks.push(...e)}catch(t){D.error("Bookmarks data in local storage is invalid, resetting to default value.",t),this.writableBookmarks.splice(0),this.saveState([])}}saveState(e){D.debug("Saving bookmarks to local storage"),this.packageNamespace.set("bookmarks",e)}getBookmarkExtent(e){const t=this.map.olView,i=e.extent,s=[i.minX,i.minY,i.maxX,i.maxY],n=t.getProjection(),l=e.projection;return So(s,l,n)}applyExtent(e){const t=this.map.olView,i=_o(e),s=t.getResolutionForExtent(e);t.setCenter(i),t.setResolution(s)}}function er(o){if(!Array.isArray(o))throw new Error("Expected bookmarks from local storage to be an array.");for(const e of o)tr(e)}function tr(o){if(!o||typeof o!="object")throw new Error("Expected bookmark from local storage to be an object.");const e=o;if(typeof e.id!="string")throw new Error("Bookmark does not have a valid id.");if(typeof e.title!="string")throw new Error("Bookmark does not have a valid title.");if(or(e.extent),typeof e.projection!="string")throw new Error("Bookmark does not have a valid projection value.")}function or(o){if(!o||typeof o!="object")throw new Error("Expected bookmark extent from local storage to be an object.");const e=o;if(typeof e.minX!="number"||typeof e.minY!="number"||typeof e.maxX!="number"||typeof e.maxY!="number")throw new Error("Expected bookmark extent from local storage to have valid coordinates.")}const ir=o=>{const{map:e}=je(o),t=Xi("local-storage.LocalStorageService"),i=dr(e,t);return i&&r.jsx(rr,{...o,viewModel:i})};function rr(o){const{viewModel:e}=o,t=Ji(),i=f.useRef([]),[s,n]=f.useState(!1),l=B(()=>e.bookmarks,[e]),[c,d]=f.useState(""),p=c.trim().length>0,{containerProps:y}=Ae("spatial-bookmarks",o),[m,v]=f.useState("list"),_=()=>{e.deleteAllBookmarks(),v("list")},T=()=>{p&&(e.createBookmark(c),v("list"),d(""),n(!0))};f.useEffect(()=>{if(s){const I=i.current;I&&I[l.length-1]?.scrollIntoView?.(),n(!1)}},[l,s]);const De=()=>r.jsxs(Be,{children:[r.jsxs(Oe,{rounded:"md",status:"warning",children:[r.jsx(Ve,{}),t.formatMessage({id:"bookmark.alert.delete"})]}),r.jsx(lr,{intl:t,onClear:_,onCancel:()=>v("list")})]}),we=()=>r.jsxs(Be,{children:[r.jsxs(Oe,{rounded:"md",status:"info",children:[r.jsx(Ve,{}),t.formatMessage({id:"bookmark.alert.create"})]}),r.jsx(No,{"aria-label":t.formatMessage({id:"bookmark.input.label"}),placeholder:t.formatMessage({id:"bookmark.input.placeholder"}),value:c,onChange:I=>{d(I.target.value)},onKeyDown:I=>{I.key==="Enter"&&T()},isRequired:!0,isInvalid:!p,autoFocus:!0}),r.jsx(cr,{intl:t,isInvalid:!p,onCancel:()=>{d(""),v("list")},onSave:T})]}),ye=()=>r.jsxs(r.Fragment,{children:[l.length?sr(l,e,t,i):r.jsxs(Oe,{rounded:"md",status:"info",children:[r.jsx(Ve,{}),t.formatMessage({id:"bookmark.alert.noSaved"})]}),r.jsx(nr,{intl:t,bookmarks:l,showCreate:()=>v("create"),showDelete:()=>v("delete")})]}),M=r.jsxs(r.Fragment,{children:[m==="list"&&ye(),m==="create"&&we(),m==="delete"&&De()]});return r.jsx(F,{flexDirection:"column",...y,children:M})}function sr(o,e,t,i){const s=t.formatMessage({id:"bookmark.button.deleteOne"}),n=o.map((l,c)=>r.jsx(ar,{index:c,listItemNodes:i,bookmark:l,onActivate:()=>e.activateBookmark(l),onDelete:()=>e.deleteBookmark(l.id),deleteBtnLabel:s},l.id));return r.jsx(Zo,{as:"ul",className:"spatial-bookmark-list",role:"listbox","aria-label":t.formatMessage({id:"bookmark.list.label"}),flexShrink:1,flexGrow:1,p:1,spacing:1,overflowY:"auto",listStyleType:"none",children:n})}const pt={ArrowDown:1,ArrowUp:-1};function ar(o){const{index:e,listItemNodes:t,bookmark:i,onDelete:s,onActivate:n,deleteBtnLabel:l}=o,c=i.title,d=p=>{const y=p.key;if(y==="Enter"){p.target===p.currentTarget&&n();return}if(pt[y]!=null){const m=t.current?.length;if(!m)return;let v=(e+pt[y])%m;v<0&&(v=m-1),t.current[v]?.focus()}};return r.jsx(R,{as:"li",p:1,ref:p=>{if(!p){t.current.splice(e,1);return}t.current[e]=p},className:Mo("spatial-bookmarks-item"),tabIndex:0,rounded:"md",role:"option",cursor:"pointer",outline:0,_hover:{background:"trails.50"},_focusVisible:{boxShadow:"outline"},onKeyDown:d,onClick:n,children:r.jsxs(F,{width:"100%",flexDirection:"row",align:"center",gap:1,children:[r.jsx(Et,{children:r.jsx(Po,{})}),r.jsx(Pe,{ps:2,noOfLines:1,children:c}),r.jsx(di,{}),r.jsx(Ut,{hasArrow:!0,label:l,placement:"right",children:r.jsx(Y,{className:"spatial-bookmarks-item-delete","aria-label":l,borderRadius:"full",iconSpacing:0,padding:0,colorScheme:"red",variant:"ghost",leftIcon:r.jsx(St,{}),onClick:p=>{s(),p.stopPropagation()}})},e)]})})}function nr(o){const{intl:e,bookmarks:t,showCreate:i,showDelete:s}=o;return r.jsxs(Ke,{children:[r.jsx(se,{isDisabled:t.length===0,colorScheme:"red",width:void 0,iconSpacing:0,leftIcon:r.jsx(St,{}),onClick:s,"aria-label":e.formatMessage({id:"bookmark.button.deleteAll"}),variant:"outline"}),r.jsx(se,{onClick:i,width:"100%",children:e.formatMessage({id:"bookmark.button.create"})})]})}function lr(o){const{intl:e,onCancel:t,onClear:i}=o;return r.jsxs(Ke,{children:[r.jsx(se,{variant:"outline",onClick:t,children:e.formatMessage({id:"bookmark.button.cancelDelete"})}),r.jsx(se,{onClick:i,children:e.formatMessage({id:"bookmark.button.confirmDelete"})})]})}function cr(o){const{intl:e,onCancel:t,onSave:i,isInvalid:s}=o;return r.jsxs(Ke,{children:[r.jsx(se,{variant:"outline",onClick:()=>t(),children:e.formatMessage({id:"bookmark.button.cancel"})}),r.jsx(se,{isDisabled:s,onClick:()=>i(),children:e.formatMessage({id:"bookmark.button.save"})})]})}function Ke(o){return r.jsx(F,{width:"100%",flexDirection:"row",mt:2,gap:1,flexGrow:0,flexShrink:0,children:o.children})}function se(o){return r.jsx(Y,{width:"100%",...o})}function dr(o,e){const[t,i]=f.useState();return f.useEffect(()=>{let s;return o?s=new Qi(o,e):s=void 0,i(s),()=>s?.destroy()},[o,e]),t}function pr({intl:o}){return{id:"coordinateViewer",title:o.formatMessage({id:"demos.coordinateViewer.title"}),createModel(){return{description:o.formatMessage({id:"demos.coordinateViewer.description"}),mainWidget:r.jsx(Oo,{})}}}}function ur({intl:o}){return{id:"scaleViewer",title:o.formatMessage({id:"demos.scaleViewer.title"}),createModel(){return{description:o.formatMessage({id:"demos.scaleViewer.description"}),mainWidget:r.jsx(Vo,{})}}}}function hr({intl:o}){return{id:"scaleSetter",title:o.formatMessage({id:"demos.scaleSetter.title"}),createModel(){return{description:o.formatMessage({id:"demos.scaleSetter.description"}),mainWidget:r.jsx(Zi,{})}}}}function mr({intl:o}){return{id:"scaleBar",title:o.formatMessage({id:"demos.scaleBar.title"}),createModel(){return{description:o.formatMessage({id:"demos.scaleBar.description"}),tools:r.jsx(zo,{})}}}}function gr({intl:o}){return{id:"measurement",title:o.formatMessage({id:"demos.measurement.title"}),createModel(){return{description:o.formatMessage({id:"demos.measurement.description"}),mainWidget:r.jsx(Fo,{})}}}}function fr({intl:o}){return{id:"mapNavigation",title:o.formatMessage({id:"demos.mapNavigation.title"}),createModel(){return{description:o.formatMessage({id:"demos.mapNavigation.description"}),tools:r.jsxs(r.Fragment,{children:[r.jsx(Jo,{}),r.jsx(Qo,{}),r.jsx(ei,{}),r.jsx(ti,{}),r.jsx(oi,{})]})}}}}function vr({intl:o}){return{id:"geolocation",title:o.formatMessage({id:"demos.geolocation.title"}),createModel(){return{description:o.formatMessage({id:"demos.geolocation.description"}),tools:r.jsx(Ui,{})}}}}function br({intl:o}){return{id:"spatialBookmarks",title:o.formatMessage({id:"demos.spatialBookmarks.title"}),createModel(){return{description:o.formatMessage({id:"demos.spatialBookmarks.description"}),mainWidget:r.jsx(ir,{})}}}}function wr({intl:o}){return{id:"printing",title:o.formatMessage({id:"demos.printing.title"}),createModel(){return{description:o.formatMessage({id:"demos.printing.description"}),mainWidget:r.jsx(Bo,{})}}}}const jt="showcase-app",Tt=qe.bind(void 0,jt),le=Te.bind(void 0,jt);function yr({intl:o,mapModel:e}){return{id:"tocLegend",title:o.formatMessage({id:"demos.tocLegend.title"}),createModel(){function t(s=!0){e.layers.getLayerById("verwaltungsgebiete").setVisible(s),e.layers.getLayerById("krankenhaus").setVisible(s),e.layers.getLayerById("ogc_kitas").setVisible(s)}function i(){t(!1),e?.layers.activateBaseLayer("osm")}return{description:o.formatMessage({id:"demos.tocLegend.description"}),mainWidget:r.jsx(xr,{}),destroy:i}}}}function xr(){const o=f.useId(),e=f.useId(),t=le();return r.jsxs(r.Fragment,{children:[r.jsx(R,{role:"dialog","aria-labelledby":o,children:r.jsx(ke,{title:r.jsx(He,{id:o,size:"md",mb:2,children:r.jsx(Pe,{children:t.formatMessage({id:"demos.tocLegend.tocTitle"})})}),children:r.jsx(Yo,{showTools:!0,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})}),r.jsx(R,{pt:2,role:"dialog","aria-labelledby":e,children:r.jsx(ke,{title:r.jsx(He,{id:e,size:"md",mb:2,children:t.formatMessage({id:"demos.tocLegend.legendTitle"})}),children:r.jsx(Go,{showBaseLayers:!0})})})]})}function kr(o){return{id:"selectionResultList",title:o.intl.formatMessage({id:"demos.selectionResultList.title"}),createModel(){return new Sr(o)}}}var ue,J,Q,_e,Me,gt;let Sr=(gt=class{constructor(e){u(this,ue);u(this,J);u(this,Q,re({key:0,input:void 0,open:!1}));b(this,"description");b(this,"mainWidget");u(this,_e,e=>{const{results:t}=e,n={columns:[{id:"id",displayName:"ID",width:100,getPropertyValue(c){return c.id}},{propertyName:"pointOfContact.address.postCode",displayName:"PLZ",width:120},{propertyName:"name",displayName:"Name"},{propertyName:"inspireId",displayName:"inspireID"},{displayName:"Gefördert",width:160,getPropertyValue(c){switch(c.properties?.gefoerdert){case"ja":return!0;case"nein":return!1;default:return c.properties?.gefoerdert}}}],data:t,formatOptions:{numberOptions:{maximumFractionDigits:3},dateOptions:{dateStyle:"medium",timeStyle:"medium",timeZone:"UTC"}}},l=a(this,Q).value.key;a(this,Q).value={open:!0,key:l+1,input:n}});u(this,Me,e=>{console.log("Selected features: ",e.features)});const{mapModel:t,vectorSelectionSourceFactory:i,intl:s}=e;h(this,ue,t),h(this,J,_r(t,i)),this.description=s.formatMessage({id:"demos.selectionResultList.description"}),this.mainWidget=r.jsx(Ho,{sources:[a(this,J)],onSelectionComplete:a(this,_e)}),t.layers.getLayerById("ogc_kitas").setVisible(!0)}destroy(){a(this,J).destroy(),a(this,ue).layers.getLayerById("ogc_kitas").setVisible(!1)}get listContainer(){const e=a(this,Q).value;if(!(!e.open||!e.input))return r.jsx(pi,{input:e.input,onSelectionChange:a(this,Me)},e.key)}},ue=new WeakMap,J=new WeakMap,Q=new WeakMap,_e=new WeakMap,Me=new WeakMap,gt);function _r(o,e){const t=o.layers.getLayerById("ogc_kitas");return e.createSelectionSource({vectorLayer:t.olLayer,label:t.title})}const Mr="krankenhaus";function Ir(o){return{id:"editing",title:o.intl.formatMessage({id:"demos.editing.title"}),createModel(){return new Er(o)}}}var he,ee;class Er{constructor(e){b(this,"description");b(this,"mainWidget");u(this,he);u(this,ee);const{mapModel:t,intl:i,editingService:s,notificationService:n}=e;h(this,he,t),this.description=i.formatMessage({id:"demos.editing.description"}),h(this,ee,new Lr(t,s,n,i)),this.mainWidget=r.jsx(Cr,{editingController:a(this,ee)}),this._setEditLayerVisible(!0)}destroy(){this._setEditLayerVisible(!1),a(this,ee).stopEditing()}_setEditLayerVisible(e=!0){a(this,he).layers.getLayerById(Mr).setVisible(e)}}he=new WeakMap,ee=new WeakMap;var k,S,U,W,N,P,q,O;class Lr{constructor(e,t,i,s){u(this,k);u(this,S);u(this,U);u(this,W);u(this,N);u(this,P);u(this,q);u(this,O);h(this,k,re(!1)),h(this,S,e),h(this,U,t),h(this,W,i),h(this,N,s)}editingActive(){return a(this,k).value}startCreateWorkflow(){if(!a(this,k).value)try{a(this,k).value=!0;const e=a(this,S).layers.getLayerById("krankenhaus"),t=new URL(e.attributes.collectionURL+"/items"),i=a(this,U).createFeature(a(this,S),t);this._watchState(i),i.whenComplete().then(s=>{if(!s)return;a(this,W).notify({level:"info",message:a(this,N).formatMessage({id:"demos.editing.create.featureCreated"},{featureId:s.featureId})}),(e?.olLayer).getSource()?.refresh()}).catch(s=>{console.error(s)}).finally(()=>{a(this,k).value=!1})}catch(e){a(this,k).value=!1,console.error(e)}}startUpdateWorkflow(){if(!a(this,k).value)try{a(this,k).value=!0,h(this,O,this._createEditingSelectTooltip());const e=a(this,S).layers.getLayerById("krankenhaus"),t=e?.olLayer;h(this,P,new Uo({layers:[t]})),a(this,S).olMap.addInteraction(a(this,P)),a(this,O).element.classList.remove("editing-tooltip-hidden"),h(this,q,a(this,P).on("select",i=>{const s=i.selected,n=i.deselected;if(s.length!==1||n.length!==0)return;this._stopUpdateSelection();const l=s[0];if(!l)throw Error("feature is undefined");const c=new URL(e.attributes.collectionURL+"/items"),d=a(this,U).updateFeature(a(this,S),c,l);this._watchState(d),d.whenComplete().then(p=>{p&&(a(this,W).notify({level:"info",message:a(this,N).formatMessage({id:"demos.editing.update.featureModified"},{featureId:p.featureId})}),t.getSource()?.refresh())}).catch(p=>{console.error(p)}).finally(()=>{a(this,k).value=!1})}))}catch(e){a(this,k).value=!1,console.error(e)}}_watchState(e){const t=$e(()=>[e.getState()],i=>{i[0]==="active:saving"&&a(this,W).notify({level:"info",message:a(this,N).formatMessage({id:"demos.editing.update.savingStared"})}),i[0]==="destroyed"&&(t.destroy(),console.log("destroyed"))})}_createEditingSelectTooltip(){const e=document.createElement("div");e.className="editing-tooltip editing-tooltip-hidden",e.textContent=a(this,N).formatMessage({id:"demos.editing.update.tooltip.select"});const t=new _t({element:e,offset:[15,0],positioning:"center-left"}),i=a(this,S).olMap,s=i.on("pointermove",n=>{n.dragging||t.setPosition(n.coordinate)});return i.addOverlay(t),{overlay:t,element:e,destroy(){Ge(s),i.removeOverlay(t)}}}_stopUpdateSelection(){a(this,P)&&a(this,S).olMap.removeInteraction(a(this,P)),a(this,q)&&Ge(a(this,q)),a(this,O)&&a(this,O).destroy(),h(this,P,void 0),h(this,q,void 0),h(this,O,void 0)}stopEditing(){a(this,U).stop(Re),this._stopUpdateSelection(),a(this,k).value=!1}}k=new WeakMap,S=new WeakMap,U=new WeakMap,W=new WeakMap,N=new WeakMap,P=new WeakMap,q=new WeakMap,O=new WeakMap;function Cr({editingController:o}){const e=le(),t=B(()=>o.editingActive(),[o]),i=t?e.formatMessage({id:"demos.editing.activeInfo"}):e.formatMessage({id:"demos.editing.inactiveInfo"});return r.jsxs(r.Fragment,{children:[r.jsxs(F,{px:1,py:1,children:[r.jsx(Y,{mr:2,isDisabled:t,onClick:()=>{o.startCreateWorkflow()},children:e.formatMessage({id:"demos.editing.startCreateButton"})}),r.jsx(Y,{mr:2,isDisabled:t,onClick:()=>{o.startUpdateWorkflow()},children:e.formatMessage({id:"demos.editing.startUpdateButton"})}),r.jsx(Y,{isDisabled:!t,onClick:()=>{o.stopEditing()},children:e.formatMessage({id:"demos.editing.stopButton"})})]}),r.jsx(F,{px:1,py:1,children:i})]})}function Ar(o){return[yr(o),pr(o),ur(o),hr(o),mr(o),gr(o),Ir(o),fr(o),vr(o),br(o),Di(o),wr(o),kr(o),Oi(o)]}const jr=be("app::AppModel");var Ie,me,ge,V,E,Ee,Le,ne,Pt,Rt;class Tr{constructor(e,t,i,s){u(this,ne);u(this,Ie);u(this,me);u(this,ge);u(this,V);u(this,E);u(this,Ee,Io(()=>Array.from(a(this,V).values())));u(this,Le,[]);if(h(this,Ie,e),h(this,me,t),h(this,ge,i),h(this,V,new Map(s.map(l=>[l.id,l]))),a(this,V).size===0)throw new Error("No demos defined.");const n=s[0];h(this,E,re([n,n.createModel()])),x(this,ne,Pt).call(this),a(this,Le).push(x(this,ne,Rt).call(this))}destroy(){a(this,E).value[1].destroy?.()}get currentDemo(){return a(this,E).value[0]}get currentDemoModel(){return a(this,E).value[1]}get allDemoInfos(){return a(this,Ee).value}selectDemo(e){const t=a(this,V).get(e);if(!t)throw new Error(`Demo '${e}' does not exist.`);Eo(()=>{const[,i]=a(this,E).value;i.destroy?.(),a(this,E).value=[t,t.createModel()]})}}Ie=new WeakMap,me=new WeakMap,ge=new WeakMap,V=new WeakMap,E=new WeakMap,Ee=new WeakMap,Le=new WeakMap,ne=new WeakSet,Pt=function(){const t=new URL(window.location.href).searchParams.get("demo");if(t){if(!a(this,V).has(t)){a(this,me).notify({title:a(this,ge).formatMessage({id:"demoSelection.notFound"},{demoId:t})});return}try{this.selectDemo(t)}catch(i){jr.error("Failed to select demo from URL",i)}}},Rt=function(){return $e(()=>[a(this,E).value[0].id],([e])=>{const t=new URL(window.location.href);t.searchParams.set("demo",e),window.history.replaceState(null,"",t.toString())},{immediate:!0})};var te,fe,ve,Ce,Dt;class Pr{constructor(e){u(this,Ce);u(this,te,re({kind:"loading"}));u(this,fe,[]);u(this,ve,!1);const{mapRegistry:t,httpService:i,notifier:s,vectorSelectionSourceFactory:n,editingService:l,notificationService:c}=e.references,d=e.intl;x(this,Ce,Dt).call(this,{mapRegistry:t,httpService:i,notifier:s,vectorSelectionSourceFactory:n,editingService:l,intl:d,notificationService:c}).catch(p=>{a(this,te).value={kind:"error",message:p.message||"Unknown error"}})}destroy(){h(this,ve,!0);for(const e of a(this,fe))e.destroy()}get appState(){return a(this,te).value}}te=new WeakMap,fe=new WeakMap,ve=new WeakMap,Ce=new WeakSet,Dt=async function(e){const{mapRegistry:t,httpService:i,notifier:s,vectorSelectionSourceFactory:n,editingService:l,intl:c,notificationService:d}=e,p=await t.getMapModel(Re);if(!p)throw new Error("No mapModel found.");const y=Ar({intl:c,httpService:i,mapModel:p,vectorSelectionSourceFactory:n,editingService:l,notificationService:d}),m={kind:"ready",appModel:new Tr(p,s,c,y),destroy(){this.appModel.destroy()}};if(a(this,ve)){m.destroy();return}a(this,te).value=m,a(this,fe).push(m)};const $=be("local-storage"),Rr=0,j={CORRUPTED_DATA:"local-storage:corrupted-data",INVALID_PATH:"local-storage:invalid-path",INVALID_VALUE:"local-storage:invalid-value",NOT_SUPPORTED:"local-storage:not-supported",INTERNAL:"local-storage:internal-error"};var oe,L,z,ie,C,w,Nt,Ot,ce,K,Vt;class Dr{constructor(e){u(this,w);u(this,oe);u(this,L,{});u(this,z);u(this,ie);u(this,C);h(this,oe,zr(e.properties)),h(this,z,Fr()),a(this,z)&&(x(this,w,Ot).call(this),h(this,ie,x(this,w,Vt).call(this)))}destroy(){a(this,C)&&(clearTimeout(a(this,C)),h(this,C,void 0)),a(this,z)&&x(this,w,ce).call(this)}get isSupported(){return!!a(this,ie)}get(e){return x(this,w,K).call(this).get(e)}set(e,t){return x(this,w,K).call(this).set(e,t)}remove(e){return x(this,w,K).call(this).remove(e)}removeAll(){return x(this,w,K).call(this).removeAll()}getNamespace(e){return x(this,w,K).call(this).getNamespace(e)}}oe=new WeakMap,L=new WeakMap,z=new WeakMap,ie=new WeakMap,C=new WeakMap,w=new WeakSet,Nt=function(){a(this,C)&&clearTimeout(a(this,C)),h(this,C,setTimeout(()=>{h(this,C,void 0),x(this,w,ce).call(this)},Rr))},Ot=function(){try{const e=a(this,z);if(!e)throw new A(j.INTERNAL,"Local storage is not available.");const t=e.getItem(a(this,oe));if(t==null){h(this,L,{}),x(this,w,ce).call(this);return}try{const i=JSON.parse(t);if(!ae(i))throw new A(j.CORRUPTED_DATA,"Persisted value should be an object.");h(this,L,i)}catch(i){$.warn("Invalid persisted data, reverting to default.",i),h(this,L,{}),x(this,w,ce).call(this)}}catch(e){$.error("Failed to load from local storage",e)}},ce=function(){try{const e=a(this,z);if(!e)throw new A(j.INTERNAL,"Local storage is not available.");const t=JSON.stringify(a(this,L));e.setItem(a(this,oe),t)}catch(e){$.error("Failed to save to local storage",e)}},K=function(){const e=a(this,ie);if(!e)throw new A(j.NOT_SUPPORTED,"Local storage is not supported by this browser.");return e},Vt=function(){const e={getByPath:t=>ht(Nr(a(this,L),t)),setByPath:(t,i)=>{if(!Vr(i))throw new A(j.INVALID_VALUE,"The value is not supported by local storage.");if(i=ht(i),t.length===0){if(!ae(i))throw new A(j.INVALID_VALUE,"The root value must be a plain object.");h(this,L,i)}else Or(a(this,L),t,i);x(this,w,Nt).call(this)}};return new Ye([],e)};class Ye{path;access;constructor(e,t){this.path=e,this.access=t}get(e){return this.access.getByPath([...this.path,e])}set(e,t){this.access.setByPath([...this.path,e],t)}remove(e){this.access.setByPath([...this.path,e],void 0)}removeAll(){this.access.setByPath(this.path,{})}getNamespace(e){const t=this.get(e);if(t===void 0)this.set(e,{});else if(!ae(t))throw new A(j.INVALID_PATH,`Cannot use '${e}' as a namespace because it is not associated with an object.`);return new Ye(this.path.concat([e]),this.access)}}const ut="trails-state";function Nr(o,e){let t=o;for(const i of e){if(!ae(t))throw new A(j.INVALID_PATH,`Cannot get nested property '${i}' because the parent is no object.`);t=t[i]}return t}function Or(o,e,t){if(!e.length)throw new A(j.INTERNAL,"Path must not be empty.");let i=o;for(let n=0,l=e.length-1;n"u"){$.warn("Local storage is not supported by this browser.");return}try{const o=globalThis.localStorage;if(!o){$.warn("Local storage is not supported by this browser.");return}return o}catch(o){$.warn("Local storage is not supported by this browser.",o);return}}function ht(o){return o!=null&&(o=JSON.parse(JSON.stringify(o))),o}const Br={"showcase-app":{name:"showcase-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Li,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{vectorSourceFactory:{name:"ogc-features.VectorSourceFactory",qualifier:void 0,all:!1}}},AppInitModel:{name:"AppInitModel",clazz:Pr,provides:[{name:"app.AppInitModel",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1},mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1},notifier:{name:"notifier.NotificationService",qualifier:void 0,all:!1},vectorSelectionSourceFactory:{name:"selection.VectorSelectionSourceFactory",qualifier:void 0,all:!1},editingService:{name:"editing.EditingService",qualifier:void 0,all:!1},notificationService:{name:"notifier.NotificationService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"app.AppInitModel",qualifier:void 0,all:!1},{name:"runtime.ApplicationContext",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Lo,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:ui,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:Co,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:ii,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:ri,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/overview-map":{name:"@open-pioneer/overview-map",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/editing":{name:"@open-pioneer/editing",services:{EditingServiceImpl:{name:"EditingServiceImpl",clazz:Wo,provides:[{name:"editing.EditingService",qualifier:void 0}],references:{mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{polygonStyle:{value:{"fill-color":"rgba(255,255,255,0.4)","stroke-color":"red","stroke-width":1.25,"circle-radius":3,"circle-fill-color":"red","circle-stroke-width":1.25,"circle-stroke-color":"red"},required:!1},vertexStyle:{value:{"circle-radius":3,"circle-fill-color":"red","circle-stroke-width":1.25,"circle-stroke-color":"red"},required:!1}}},"@open-pioneer/geolocation":{name:"@open-pioneer/geolocation",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/legend":{name:"@open-pioneer/legend",services:{},ui:{references:[]},properties:{}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/printing":{name:"@open-pioneer/printing",services:{PrintingServiceImpl:{name:"PrintingServiceImpl",clazz:hi,provides:[{name:"printing.PrintingService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"printing.PrintingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-setter":{name:"@open-pioneer/scale-setter",services:{},ui:{references:[]},properties:{}},"@open-pioneer/selection":{name:"@open-pioneer/selection",services:{VectorSelectionSourceFactory:{name:"VectorSelectionSourceFactory",clazz:qo,provides:[{name:"selection.VectorSelectionSourceFactory",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/spatial-bookmarks":{name:"@open-pioneer/spatial-bookmarks",services:{},ui:{references:[{name:"local-storage.LocalStorageService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-ui-components":{name:"@open-pioneer/map-ui-components",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/local-storage":{name:"@open-pioneer/local-storage",services:{LocalStorageServiceImpl:{name:"LocalStorageServiceImpl",clazz:Dr,provides:[{name:"local-storage.LocalStorageService",qualifier:"local-storage.LocalStorageService"}],references:{}}},ui:{references:[]},properties:{storageId:{value:null,required:!1}}}},Gr=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.editing-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.editing-tooltip-hidden{visibility:hidden}.measurement-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:#000000e6;border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff}.printing-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;-webkit-user-select:none;user-select:none;pointer-events:all;cursor:wait;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#b4b4b4cc}.printing-overlay-status{flex:1 1 auto;font-size:1.5em;text-align:center}.printing-scale-bar.ol-scale-bar{left:var(--printing-scale-bar-left);bottom:var(--printing-scale-bar-bottom)}.selection-drag-box{background-color:#ffffff4d!important;border:3px solid var(--chakra-colors-background_primary)!important}.selection-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.selection .react-select{cursor:default}.map-container .selection-active{cursor:crosshair}.map-container .selection-inactive{cursor:no-drop}.selection-source-value.selection-source-value--disabled{opacity:.4}.selection-source-value.selection-source-value--disabled span{margin:0 6px 0 0}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none}.map-anchor.main-map-anchor{overflow-x:hidden;overflow-y:auto}.map-container:focus-visible{outline:none}.map-container:focus-visible:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:3px solid var(--chakra-colors-trails-500)}@media screen and (max-width: 48em){.map-anchor.main-map-anchor{max-height:45%}}.overview-map .ol-overviewmap{position:relative;height:100%;width:100%}.overview-map .ol-overviewmap:not(.ol-collapsed){border:1px solid black}.overview-map .ol-overviewmap .ol-overviewmap-map{border:none;width:100%;height:100%}.overview-map .ol-overviewmap .ol-overviewmap-box{border:2px solid red}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)}',Hr=["en","de"];function Ur(o){switch(o){case"en":return st(()=>import("./DEc3M1w42gc3.js"),[],import.meta.url).then(e=>e.default);case"de":return st(()=>import("./BaIyqT_8vxnW.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${o}'`)}const Wr=Wt(Gr),qr=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Ur,locales:Hr,packages:Br,styles:Wr},Symbol.toStringTag,{value:"Module"}));function zt({label:o,children:e}){return r.jsxs(mi,{as:gi,maxWidth:{base:"none",md:"20em"},width:{base:"100%",sm:"47%",md:void 0},children:[r.jsx(fi,{flexBasis:{base:"8em",sm:"auto"},m:0,children:o}),e]})}const $r=be("app::DemoSelection");function Kr({appModel:o}){const e=le(),{allDemos:t,currentDemo:i}=B(()=>({allDemos:o.allDemoInfos,currentDemo:o.currentDemo}),[o]),s=f.useMemo(()=>t.map(n=>r.jsx("option",{value:n.id,children:n.title},n.id)),[t]);return r.jsx(zt,{label:e.formatMessage({id:"demoSelection.label"}),children:r.jsx(Mt,{value:i.id,onChange:n=>{const l=n.target.value;try{o.selectDemo(l)}catch(c){$r.error("Failed to select demo",c)}},children:s})})}function Yr(){const o=le(),e=Tt("runtime.ApplicationContext"),t=Zr(e.getLocale()),i=s=>{switch(s){case"en":e.setLocale("en-GB");break;case"de":e.setLocale("de-DE");break}};return r.jsx(zt,{label:o.formatMessage({id:"localeSwitcher.label"}),children:r.jsxs(Mt,{value:t,onChange:s=>i(s.target.value),children:[r.jsx("option",{value:"de",children:o.formatMessage({id:"localeSwitcher.locale.de"})}),r.jsx("option",{value:"en",children:o.formatMessage({id:"localeSwitcher.locale.en"})})]})})}function Zr(o){const e=o.match(/^[a-z]+/i)?.[0];if(e==="en"||e=="de")return e;throw new Error("unexpected locale prefix: "+e)}function Xr({appModel:o}){const e=le();return r.jsxs(F,{as:"header",px:2,py:3,flexWrap:{base:"wrap",md:"nowrap"},alignItems:"baseline",gap:2,boxShadow:"1px 0px 3px rgba(0, 0, 0, 0.5)",bgColor:"white",zIndex:100,children:[r.jsx(He,{size:"md",flexShrink:0,flexGrow:1,textAlign:{base:"center",md:"left"},width:{base:"100%",md:"auto"},mb:{base:2,md:0},children:e.formatMessage({id:"header.title"})}),r.jsx(Kr,{appModel:o}),r.jsx(Yr,{})]})}function Jr(){const o=Tt("app.AppInitModel"),e=B(()=>o.appState,[o]);let t;switch(e.kind){case"loading":t="Loading...";break;case"error":t="Error: "+e.message;break;case"ready":t=r.jsx(Qr,{state:e})}return t}function Qr(o){const e=le(),t=o.state.appModel,{currentDemo:i,currentDemoModel:s}=B(()=>({currentDemo:t.currentDemo,currentDemoModel:t.currentDemoModel}),[t]),n=B(()=>s.listContainer,[s]),l=f.useMemo(()=>({left:0,right:0,bottom:n!=null?400:0,top:0}),[n]);return r.jsxs(r.Fragment,{children:[r.jsx($o,{position:"top-right"}),r.jsx(F,{height:"100%",direction:"column",children:r.jsx(ke,{title:r.jsx(Xr,{appModel:t}),children:r.jsx(F,{flex:"1",direction:"column",position:"relative",children:r.jsx(Ao,{mapId:Re,children:r.jsxs(jo,{viewPadding:l,role:"main","aria-label":e.formatMessage({id:"ariaLabels.map"}),children:[r.jsx(rt,{className:"main-map-anchor",position:"top-left",horizontalGap:10,verticalGap:10,children:r.jsx(R,{bgColor:"white",borderRadius:10,p:2,maxW:"500px",children:r.jsxs(ke,{title:i.title,sectionHeadingProps:{size:"lg"},children:[r.jsx(Pe,{py:4,dangerouslySetInnerHTML:{__html:s.description}}),s.mainWidget]})})}),r.jsx(rt,{position:"bottom-right",horizontalGap:6,children:r.jsx(Be,{p:1,children:s.tools})}),n&&r.jsx(R,{className:"list-container",position:"absolute",bottom:"0",backgroundColor:"white",width:"100%",height:"400px",zIndex:1,borderTop:"2px solid",borderColor:"trails.100",children:n})]})})})})})]})}const es=new URLSearchParams(window.location.search),ts=es.get("lang")||void 0,os=qt({component:Jr,appMetadata:qr,config:{properties:{"@open-pioneer/local-storage":{storageId:"ol-showcase-state"}},locale:ts}});customElements.define("showcase-app",os); +var Ft=Object.defineProperty;var Xe=o=>{throw TypeError(o)};var Bt=(o,e,t)=>e in o?Ft(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var b=(o,e,t)=>Bt(o,typeof e!="symbol"?e+"":e,t),Ne=(o,e,t)=>e.has(o)||Xe("Cannot "+t);var a=(o,e,t)=>(Ne(o,e,"read from private field"),t?t.call(o):e.get(o)),u=(o,e,t)=>e.has(o)?Xe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),h=(o,e,t,i)=>(Ne(o,e,"write to private field"),i?i.call(o,t):e.set(o,t),t),x=(o,e,t)=>(Ne(o,e,"access private method"),t);import{g as ft,h as Gt,j as r,B as R,r as f,c as be,b as Y,F as Ht,V as Be,A as Oe,k as Ve,l as Ut,E as A,a as Wt,f as qt}from"./BeGW3nmX4tO2.js";import{aE as $t,aF as Kt,ag as Yt,af as Je,aG as Zt,aH as Xt,ao as Jt,aI as Qt,aJ as eo,aK as to,a9 as oo,as as io,aL as Qe,aM as ro,aN as so,aO as et,aP as ao,aQ as no,aR as ze,V as lo,aS as tt,A as co,L as po,aT as uo,J as ho,aU as mo,aV as go,aW as fo,aX as vo,aY as ot,S as Ue,T as vt,O as bt,a as We,b as wt,aZ as Ae,i as je,f as qe,u as Te,r as re,a_ as it,a$ as bo,an as wo,j as Ge,c as yt,C as yo,F as xt,ax as kt,d as xo,w as $e,b0 as ko,b1 as So,b2 as _o,k as F,b3 as Mo,g as ke,h as He,b4 as Io,b5 as Eo,H as Lo,M as Co,D as Ao,l as jo,m as rt}from"./BjXju3dgjVrG.js";import{W as To,i as Po,j as St}from"./D-bB0Gg-LQGA.js";import{O as _t,W as Ro,c as Do,I as No,C as Oo,b as Vo,a as zo,M as Fo,P as Bo,L as Go,d as Ho,S as Uo,E as Wo,V as qo,e as Mt,N as $o}from"./C17aK7N5tIXO.js";import{G as It,T as Ko,e as Yo}from"./Dh5p1D7VwmQC.js";import{T as Pe,L as Zo}from"./DM7y0OoBz9e5.js";import{u as B}from"./B48t-8DI4YWS.js";import{G as Xo}from"./N6gwA50uHdd6.js";import{Z as Jo,a as Qo,H as ei,b as ti,I as oi,V as ii,S as ri}from"./CwsqFmMu0f5O.js";import{c as si}from"./Dc3xe-fbgKeJ.js";import{M as ai,a as ni,b as li}from"./B3on_k3411E6.js";import{M as ci}from"./Gw82v5PUNK8h.js";import{S as di}from"./uLM-EaCyc6aA.js";import{R as pi}from"./BLXiixlbHf0g.js";import{N as ui,P as hi}from"./DxMLgDGBfPwt.js";import{_ as st}from"./CmsKOCeNyeyo.js";import{F as mi}from"./BMuX_dt1qyjL.js";import{H as gi}from"./D1wuBnUV5g92.js";import{F as fi}from"./cMbQJw1ZoqBe.js";import"./D1e64i0R5zCb.js";import"./D6bui9ILupw_.js";import"./39a3VBatk_eA.js";import"./ElmKiM7bxWM_.js";const Et=ft("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Et.displayName="Center";const vi={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Gt(function(e,t){const{axis:i="both",...s}=e;return r.jsx(ft.div,{ref:t,__css:vi[i],...s,position:"absolute"})});const g={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},bi={ERROR:"error"};class wi extends Jt{constructor(e){super(bi.ERROR),this.code=e.code,this.message=e.message}}let yi=class extends $t{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.position_=null,this.transform_=Kt,this.watchId_=void 0,this.addChangeListener(g.PROJECTION,this.handleProjectionChanged_),this.addChangeListener(g.TRACKING,this.handleTrackingChanged_),e.projection!==void 0&&this.setProjection(e.projection),e.trackingOptions!==void 0&&this.setTrackingOptions(e.trackingOptions),this.setTracking(e.tracking!==void 0?e.tracking:!1)}disposeInternal(){this.setTracking(!1),super.disposeInternal()}handleProjectionChanged_(){const e=this.getProjection();e&&(this.transform_=Yt(Je("EPSG:4326"),e),this.position_&&this.set(g.POSITION,this.transform_(this.position_)))}handleTrackingChanged_(){if("geolocation"in navigator){const e=this.getTracking();e&&this.watchId_===void 0?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):!e&&this.watchId_!==void 0&&(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}}positionChange_(e){const t=e.coords;this.set(g.ACCURACY,t.accuracy),this.set(g.ALTITUDE,t.altitude===null?void 0:t.altitude),this.set(g.ALTITUDE_ACCURACY,t.altitudeAccuracy===null?void 0:t.altitudeAccuracy),this.set(g.HEADING,t.heading===null?void 0:Zt(t.heading)),this.position_?(this.position_[0]=t.longitude,this.position_[1]=t.latitude):this.position_=[t.longitude,t.latitude];const i=this.transform_(this.position_);this.set(g.POSITION,i.slice()),this.set(g.SPEED,t.speed===null?void 0:t.speed);const s=Xt(this.position_,t.accuracy);s.applyTransform(this.transform_),this.set(g.ACCURACY_GEOMETRY,s),this.changed()}positionError_(e){this.dispatchEvent(new wi(e))}getAccuracy(){return this.get(g.ACCURACY)}getAccuracyGeometry(){return this.get(g.ACCURACY_GEOMETRY)||null}getAltitude(){return this.get(g.ALTITUDE)}getAltitudeAccuracy(){return this.get(g.ALTITUDE_ACCURACY)}getHeading(){return this.get(g.HEADING)}getPosition(){return this.get(g.POSITION)}getProjection(){return this.get(g.PROJECTION)}getSpeed(){return this.get(g.SPEED)}getTracking(){return this.get(g.TRACKING)}getTrackingOptions(){return this.get(g.TRACKING_OPTIONS)}setProjection(e){this.set(g.PROJECTION,Je(e))}setTracking(e){this.set(g.TRACKING,e)}setTrackingOptions(e){this.set(g.TRACKING_OPTIONS,e)}};const xi=1.2;function ki(o,e=xi){Si(o);const t=Qt(o),i=eo(o),s=t*e,n=i*e;return[o[0]-(s-t)/2,o[1]-(n-i)/2,o[2]+(s-t)/2,o[3]+(n-i)/2]}function Si(o){if(o.length!==4)throw new Error(`Invalid extent (expected length 4, but got length ${o.length}).`)}const Fe=.75,xe=.1;let _i=class extends to{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=e.collapsed!==void 0?e.collapsed:!0,this.collapsible_=e.collapsible!==void 0?e.collapsible:!0,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=e.rotateWithView!==void 0?e.rotateWithView:!1,this.viewExtent_=void 0;const t=e.className!==void 0?e.className:"ol-overviewmap",i=e.tipLabel!==void 0?e.tipLabel:"Overview map",s=e.collapseLabel!==void 0?e.collapseLabel:"‹";typeof s=="string"?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s):this.collapseLabel_=s;const n=e.label!==void 0?e.label:"›";typeof n=="string"?(this.label_=document.createElement("span"),this.label_.textContent=n):this.label_=n;const l=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,c=document.createElement("button");c.setAttribute("type","button"),c.title=i,c.appendChild(l),c.addEventListener(oo.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const d=new io({view:e.view,controls:new Qe,interactions:new Qe});this.ovmap_=d,e.layers&&e.layers.forEach(function(M){d.addLayer(M)});const p=document.createElement("div");p.className="ol-overviewmap-box",p.style.boxSizing="border-box",this.boxOverlay_=new _t({position:[0,0],positioning:"center-center",element:p}),this.ovmap_.addOverlay(this.boxOverlay_);const y=t+" "+ro+" "+so+(this.collapsed_&&this.collapsible_?" "+et:"")+(this.collapsible_?"":" ol-uncollapsible"),m=this.element;m.className=y,m.appendChild(this.ovmapDiv_),m.appendChild(c);const v=this,_=this.boxOverlay_,T=this.boxOverlay_.getElement(),De=function(M){return{clientX:M.clientX,clientY:M.clientY}},we=function(M){const I=De(M),Ze=d.getEventCoordinate(I);_.setPosition(Ze)},ye=function(M){const I=d.getEventCoordinateInternal(M);v.getMap().getView().setCenterInternal(I),window.removeEventListener("pointermove",we),window.removeEventListener("pointerup",ye)};this.ovmapDiv_.addEventListener("pointerdown",function(){event.target===T&&window.addEventListener("pointermove",we),window.addEventListener("pointerup",ye)})}setMap(e){const t=this.getMap();if(e!==t){if(t){const i=t.getView();i&&this.unbindView_(i),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(ao(e,no.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const i=e.getView();i&&this.bindView_(i),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===ze.VIEW){const t=e.oldValue;t&&this.unbindView_(t);const i=this.getMap().getView();this.bindView_(i)}else!this.ovmap_.isRendered()&&(e.key===ze.TARGET||e.key===ze.SIZE)&&this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new lo({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(tt.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_(),e.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())}unbindView_(e){e.removeChangeListener(tt.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const i=e.getSize(),n=e.getView().calculateExtentInternal(i);if(this.viewExtent_&&co(n,this.viewExtent_))return;this.viewExtent_=n;const l=t.getSize(),d=t.getView().calculateExtentInternal(l),p=t.getPixelFromCoordinateInternal(po(n)),y=t.getPixelFromCoordinateInternal(uo(n)),m=Math.abs(p[0]-y[0]),v=Math.abs(p[1]-y[1]),_=l[0],T=l[1];m<_*xe||v_*Fe||v>T*Fe?this.resetExtent_():ho(d,n)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,i=e.getSize(),n=e.getView().calculateExtentInternal(i),l=t.getView(),c=Math.log(Fe/xe)/Math.LN2,d=1/(Math.pow(2,c/2)*xe);mo(n,d),l.fitInternal(go(n))}recenter_(){const e=this.getMap(),t=this.ovmap_,i=e.getView();t.getView().setCenterInternal(i.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const i=e.getSize(),s=e.getView(),n=t.getView(),l=this.rotateWithView_?0:-s.getRotation(),c=this.boxOverlay_,d=this.boxOverlay_.getElement(),p=s.getCenter(),y=s.getResolution(),m=n.getResolution(),v=i[0]*y/m,_=i[1]*y/m;if(c.setPosition(p),d){d.style.width=v+"px",d.style.height=_+"px";const T="rotate("+l+"rad)";d.style.transform=T}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=fo(this.ovmap_,vo.POSTRENDER,e=>{delete this.ovmapPostrenderKey_,this.updateBox_()}))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(et),this.collapsed_?ot(this.collapseLabel_,this.label_):ot(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered()){this.viewExtent_=void 0,e.render();return}e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){!this.collapsible_||this.collapsed_===e||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}};const Mi=si({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),Ii={height:"25px",width:"25px",borderColor:"#4cb3ff",borderWidth:"3px",borderRadius:"50%",display:"inline-block "};function Ei(o){return r.jsxs(R,{children:[r.jsx(Pe,{children:o.layer.title}),r.jsx(R,{style:Ii})]})}const Re="main";class Li{mapId=Re;vectorSourceFactory;constructor(e){this.vectorSourceFactory=e.references.vectorSourceFactory}async getMapConfig(){return{initialView:{kind:"position",center:{x:823091,y:6724521},zoom:8},layers:[new Ue({title:"OSM",id:"osm",isBaseLayer:!0,olLayer:new vt({source:new bt})}),new Ro({isBaseLayer:!0,title:"Orthofotos NRW",url:"https://www.wmts.nrw.de/geobasis/wmts_nw_dop/1.0.0/WMTSCapabilities.xml",name:"nw_dop",matrixSet:"EPSG_3857_16",sourceOptions:{attributions:'Die Geobasisdaten des amtlichen Vermessungswesens werden als öffentliche Aufgabe gem. VermKatG NRW und gebührenfrei nach Open Data-Prinzipien über online-Verfahren bereitgestellt. Nutzungsbedingungen: siehe '}}),ji(),Ai(),Ci(this.vectorSourceFactory)]}}}function Ci(o){const e="https://ogc-api-test.nrw.de/inspire-us-krankenhaus/v1",t="governmentalservice",i=o.createVectorSource({baseUrl:e,collectionId:t,limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:`Land NRW (${new Date().getFullYear()}), Datenlizenz Deutschland - Namensnennung - Version 2.0, Datenquelle`}),s=new We({source:i});return new Ue({id:"krankenhaus",title:"Krankenhäuser-Demo-Dienst",visible:!1,olLayer:s,attributes:{collectionURL:e+"/collections/"+t}})}function Ai(){const o=new wt({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new It,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'}),e=new We({source:o}),t={Component:Ei};return new Ue({id:"ogc_kitas",title:"Kindertagesstätten",visible:!0,olLayer:e,attributes:{legend:t}})}function ji(){return new To({title:"Verwaltungsgebiete",id:"verwaltungsgebiete",visible:!1,url:"https://www.wms.nrw.de/geobasis/wms_nw_dvg",sublayers:[{name:"nw_dvg_krs",title:"Kreise und kreisfreie Städte"}]})}const Ti="200px",Pi="300px",Ri=o=>{const{olLayer:e,height:t=Ti,width:i=Pi}=o,{containerProps:s}=Ae("overview-map",o),n=f.useRef(null),{map:l}=je(o);return f.useEffect(()=>{if(n.current&&l&&e){const c=l.olMap,d=new _i({className:"ol-overviewmap",layers:[e],collapsible:!1,collapsed:!1,target:n.current});return c.addControl(d),()=>{c.removeControl(d)}}},[l,e]),r.jsx(R,{height:t,width:i,ref:n,...s})};function Di({intl:o}){return{id:"overviewMap",title:o.formatMessage({id:"demos.overviewMap.title"}),createModel(){const e=new vt({source:new bt});return{description:o.formatMessage({id:"demos.overviewMap.description"}),mainWidget:r.jsx(Ri,{olLayer:e}),destroy(){e.dispose()}}}}}class Ni{label;filteredTypes;httpService;constructor(e,t,i){this.label=e,this.filteredTypes=t,this.httpService=i}async search(e,{mapProjection:t,signal:i}){const s=await this.request(e,100,i),n=new It({dataProjection:"EPSG:4326",featureProjection:t});return s.features.filter(l=>this.filteredTypes.includes(l.properties.type)).map((l,c)=>{const d=n.readGeometry(l.geometry);return{id:l.properties.osm_id||c,label:this.createLabel(l),geometry:d,properties:l.properties}})}async request(e,t,i){const s=new URL("https://photon.komoot.io/api?");s.searchParams.set("q",e),s.searchParams.set("lang","de"),s.searchParams.set("lat","51.961563"),s.searchParams.set("lon","7.628202"),s.searchParams.set("limit",t.toString());const n=await this.httpService.fetch(s,{signal:i});if(!n.ok)throw new Error("Request failed: "+n.status);return await n.json()}createLabel(e){return`${e.properties.name} (${e.properties.osm_value?e.properties.osm_value+", ":""}${e.properties.postcode?e.properties.postcode+", ":""}${e.properties.city?e.properties.city+", ":""}${e.properties.country?e.properties.country+")":")"}`}}function Oi({intl:o,httpService:e,mapModel:t}){return{id:"searchAndHighlight",title:o.formatMessage({id:"demos.searchAndHighlight.title"}),createModel(){return new Vi(o,t,e)}}}var de,pe,Z,Se,X,mt;let Vi=(mt=class{constructor(e,t,i){u(this,de);u(this,pe);u(this,Z);b(this,"description");b(this,"mainWidget");u(this,Se,e=>{const t=e.result.geometry;t&&(a(this,X).call(this),h(this,Z,zi(a(this,pe),[t])))});u(this,X,()=>{a(this,Z)?.destroy(),h(this,Z,void 0)});h(this,de,new Ni("Photon Geocoder",["city","street"],i)),h(this,pe,t),this.description=e.formatMessage({id:"demos.searchAndHighlight.description"}),this.mainWidget=r.jsx(Do,{sources:[a(this,de)],onSelect:a(this,Se),onClear:a(this,X)})}destroy(){a(this,X).call(this)}},de=new WeakMap,pe=new WeakMap,Z=new WeakMap,Se=new WeakMap,X=new WeakMap,mt);function zi(o,e){const t=o.olMap.getViewport();return o.highlightAndZoom(e,{viewPadding:t&&t.offsetWidth<1e3?{top:150,right:75,bottom:50,left:75}:{top:150,right:400,bottom:50,left:400}})}const Lt="@open-pioneer/geolocation",Fi=qe.bind(void 0,Lt),Ct=Te.bind(void 0,Lt);function Bi(o){return Xo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"},child:[]}]})(o)}const at=be("geolocation:GeolocationController"),nt=17;var G,H;class Gi{constructor(e,t,i){b(this,"supported",!!navigator.geolocation);b(this,"map");b(this,"positionHighlightLayer");b(this,"geolocation");b(this,"onError");b(this,"maxZoom",nt);b(this,"accuracyFeature");b(this,"positionFeature");b(this,"changeHandlers",[]);b(this,"setMapToPosition",!0);b(this,"trackingOptions",{});b(this,"isInitialZoom",!0);u(this,G,re(!1));u(this,H,re(!1));this.map=e,this.onError=t,this.isInitialZoom=!0,this.accuracyFeature=new it,this.accuracyFeature.setStyle(ct()),this.positionFeature=new it,this.positionFeature.setStyle(lt()),this.positionHighlightLayer=new We({source:new wt({features:[this.accuracyFeature,this.positionFeature]})}),this.positionHighlightLayer.setZIndex(bo);const s=i||Hi();this.geolocation=new yi({tracking:!1,trackingOptions:s,projection:e.olView?.getProjection()}),this.trackingOptions=s,this.geolocation.on("error",n=>this.handleGeolocationError(n))}destroy(){this.stopGeolocation(),this.geolocation?.setTracking(!1),this.geolocation.dispose(),this.accuracyFeature=void 0,this.positionFeature=void 0,this.positionHighlightLayer.dispose()}startGeolocation(){if(a(this,H).value)return;new Promise(t=>{a(this,H).value=!0,a(this,G).value=!0,this.geolocation?.setProjection(this.map.olView?.getProjection()),this.geolocation?.setTracking(!0);const i=this.geolocation.on("change:accuracyGeometry",()=>{const c=this.geolocation.getAccuracyGeometry()||void 0;if(this.accuracyFeature?.setGeometry(c),this.accuracyFeature?.getGeometry()!==void 0&&t(),this.isInitialZoom){const d=this?.accuracyFeature?.getGeometry()?.getExtent();if(d){const p=ki(d);if(!p)return;this.map.olView.fit(p,{maxZoom:this.maxZoom}),this.isInitialZoom=!1}}}),s=this.geolocation.on("change:position",()=>{const c=this.geolocation.getPosition();c&&(c[0]||c[1])!==void 0&&(this.positionFeature?.setGeometry(new wo(c)),this.setMapToPosition&&this.map.olView.setCenter(c),this.positionFeature?.getGeometry()!==void 0&&t())}),n=this.map.olView.on("change:resolution",()=>{this.setMapToPosition=this.isInitialZoom}),l=this.map.olMap.on("pointermove",c=>{c.dragging&&(this.setMapToPosition=!1)});this.changeHandlers.push(i,s,n,l),this.map.olMap.addLayer(this.positionHighlightLayer)}).then(()=>{a(this,G).value=!1}).catch(t=>{at.error("Failed to determine location",t)})}stopGeolocation(){this.geolocation?.setTracking(!1),a(this,H).value=!1,a(this,G).value=!1,this.trackingOptions={},this.setMapToPosition=!0,this.isInitialZoom=!0,this.changeHandlers.forEach(e=>{Ge(e)}),this.changeHandlers=[],this.accuracyFeature?.setGeometry(void 0),this.positionFeature?.setGeometry(void 0),this.map.olMap.removeLayer(this.positionHighlightLayer)}get active(){return a(this,H).value}get loading(){return a(this,G).value}setPositionFeatureStyle(e){this.positionFeature?.setStyle(e??lt())}setAccuracyFeatureStyle(e){this.accuracyFeature?.setStyle(e??ct())}setMaxZoom(e){this.maxZoom=e??nt}getMaxZoom(){return this.maxZoom}getPositionFeature(){return this.positionFeature}getAccuracyFeature(){return this.accuracyFeature}getTrackingOptions(){return this.trackingOptions}getGeolocation(){return this.geolocation}handleGeolocationError(e){at.error("Error from geolocation API:",e.message),this.stopGeolocation();const t=(()=>{switch(e.code){case 1:return"permission-denied";case 2:return"position-unavailable";case 3:return"timeout";default:return"unknown"}})();this.onError(t)}}G=new WeakMap,H=new WeakMap;const lt=()=>new yt({image:new yo({radius:6,fill:new xt({color:"#3399CC"}),stroke:new kt({color:"#fff",width:2})})}),ct=()=>new yt({stroke:new kt({color:"#3399CC",width:3}),fill:new xt({color:"rgba(0, 0, 255, 0.05)"})}),Hi=()=>({enableHighAccuracy:!0,timeout:6e4,maximumAge:6e5}),Ui=f.forwardRef(function(e,t){const{maxZoom:i,positionFeatureStyle:s,accuracyFeatureStyle:n,trackingOptions:l}=e,{map:c}=je(e),d=qi(c,i,l,s,n);return d&&r.jsx(Wi,{...e,controller:d,ref:t})}),Wi=f.forwardRef(function(e,t){const{controller:i}=e,{containerProps:s}=Ae("geolocation",e),{isLoading:n,isActive:l}=B(()=>({isLoading:i.loading,isActive:i.active}),[i]),c=Ct(),d=i.supported?l?c.formatMessage({id:"locateMeEnd"}):c.formatMessage({id:"locateMeStart"}):c.formatMessage({id:"locateNotSupported"}),p=()=>{i.active?i.stopGeolocation():i.startGeolocation()};return r.jsx(Ko,{ref:t,label:d,icon:r.jsx(Bi,{}),onClick:()=>p(),isActive:l,isLoading:n,isDisabled:!i.supported,...s})});function qi(o,e,t,i,s){const n=Ct(),l=Fi("notifier.NotificationService"),[c,d]=f.useState();return f.useEffect(()=>{if(!o)return;const p=m=>{const v=n.formatMessage({id:"error"}),_=(()=>{switch(m){case"permission-denied":return n.formatMessage({id:"permissionDenied"});case"position-unavailable":return n.formatMessage({id:"positionUnavailable"});case"timeout":return n.formatMessage({id:"timeout"});case"unknown":return n.formatMessage({id:"unknownError"})}})();l.notify({level:"error",title:v,message:_})},y=new Gi(o,p,t);return d(y),()=>{y.destroy(),d(void 0)}},[o,t,n,l]),f.useEffect(()=>{c?.setPositionFeatureStyle(i)},[c,i]),f.useEffect(()=>{c?.setAccuracyFeatureStyle(s)},[c,s]),f.useEffect(()=>{c?.setMaxZoom(e)},[c,e]),c}const $i="@open-pioneer/scale-setter",Ki=Te.bind(void 0,$i),Yi=[17471320,8735660,4367830,2183915,1091957,545978,272989,136494,68247,34123,17061,8530,4265,2132],Zi=o=>{const{scales:e=Yi}=o,{containerProps:t}=Ae("scale-setter",o),{map:i}=je(o),s=Ki(),n=B(()=>i?.scale??1,[i]),l=e.map(d=>r.jsx(ai,{value:d,onClick:()=>i?.setScale(d),onFocus:p=>{p.target?.scrollIntoView?.({block:"nearest"})},className:"scale-setter-option",children:dt(s,d)},d)),c=dt(s,n);return r.jsx(R,{...t,children:r.jsxs(ci,{isLazy:!0,children:[r.jsx(ni,{as:Y,rightIcon:r.jsx(Mi,{}),className:"scale-setter-menubutton","aria-label":s.formatMessage({id:"button.ariaLabel"},{scale:c}),"aria-description":s.formatMessage({id:"button.ariaDescription"}),children:c}),r.jsx(Ht,{children:r.jsx(li,{className:"scale-setter-menuoptions",maxHeight:"20em",overflowY:"auto",children:l})})]})})};function dt(o,e){return"1 : "+o.formatNumber(e)}const At="@open-pioneer/spatial-bookmarks",Xi=qe.bind(void 0,At),Ji=Te.bind(void 0,At),D=be("spatial-bookmark:SpatialBookmarkViewModel");class Qi{map;packageNamespace;writableBookmarks=xo([]);watchBookmarksHandle;get bookmarks(){return this.writableBookmarks.getItems()}constructor(e,t){this.map=e,this.packageNamespace=t.getNamespace("spatial-bookmarks"),this.loadState(),this.watchBookmarksHandle=$e(()=>[this.writableBookmarks.getItems()],([i])=>this.saveState(i),{immediate:!1})}destroy(){this.watchBookmarksHandle.destroy()}createBookmark(e){const t=this.map.olView.calculateExtent(),i=this.map.projection.getCode(),s={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]},n={id:ko(),title:e,extent:s,projection:i};D.debug("Created a new bookmark",n),this.writableBookmarks.push(n)}activateBookmark(e){D.debug("Activating bookmark",e);const t=this.getBookmarkExtent(e);D.debug("Attempting to apply extent",t),this.applyExtent(t)}deleteBookmark(e){D.debug("Deleting bookmark",e);const t=this.writableBookmarks.findIndex(i=>i.id===e);t>-1&&this.writableBookmarks.splice(t,1)}deleteAllBookmarks(){D.debug("Deleting all bookmarks"),this.writableBookmarks.splice(0)}loadState(){D.debug("Restoring bookmarks from local storage");const e=this.packageNamespace.get("bookmarks")??[];try{er(e),this.writableBookmarks.push(...e)}catch(t){D.error("Bookmarks data in local storage is invalid, resetting to default value.",t),this.writableBookmarks.splice(0),this.saveState([])}}saveState(e){D.debug("Saving bookmarks to local storage"),this.packageNamespace.set("bookmarks",e)}getBookmarkExtent(e){const t=this.map.olView,i=e.extent,s=[i.minX,i.minY,i.maxX,i.maxY],n=t.getProjection(),l=e.projection;return So(s,l,n)}applyExtent(e){const t=this.map.olView,i=_o(e),s=t.getResolutionForExtent(e);t.setCenter(i),t.setResolution(s)}}function er(o){if(!Array.isArray(o))throw new Error("Expected bookmarks from local storage to be an array.");for(const e of o)tr(e)}function tr(o){if(!o||typeof o!="object")throw new Error("Expected bookmark from local storage to be an object.");const e=o;if(typeof e.id!="string")throw new Error("Bookmark does not have a valid id.");if(typeof e.title!="string")throw new Error("Bookmark does not have a valid title.");if(or(e.extent),typeof e.projection!="string")throw new Error("Bookmark does not have a valid projection value.")}function or(o){if(!o||typeof o!="object")throw new Error("Expected bookmark extent from local storage to be an object.");const e=o;if(typeof e.minX!="number"||typeof e.minY!="number"||typeof e.maxX!="number"||typeof e.maxY!="number")throw new Error("Expected bookmark extent from local storage to have valid coordinates.")}const ir=o=>{const{map:e}=je(o),t=Xi("local-storage.LocalStorageService"),i=dr(e,t);return i&&r.jsx(rr,{...o,viewModel:i})};function rr(o){const{viewModel:e}=o,t=Ji(),i=f.useRef([]),[s,n]=f.useState(!1),l=B(()=>e.bookmarks,[e]),[c,d]=f.useState(""),p=c.trim().length>0,{containerProps:y}=Ae("spatial-bookmarks",o),[m,v]=f.useState("list"),_=()=>{e.deleteAllBookmarks(),v("list")},T=()=>{p&&(e.createBookmark(c),v("list"),d(""),n(!0))};f.useEffect(()=>{if(s){const I=i.current;I&&I[l.length-1]?.scrollIntoView?.(),n(!1)}},[l,s]);const De=()=>r.jsxs(Be,{children:[r.jsxs(Oe,{rounded:"md",status:"warning",children:[r.jsx(Ve,{}),t.formatMessage({id:"bookmark.alert.delete"})]}),r.jsx(lr,{intl:t,onClear:_,onCancel:()=>v("list")})]}),we=()=>r.jsxs(Be,{children:[r.jsxs(Oe,{rounded:"md",status:"info",children:[r.jsx(Ve,{}),t.formatMessage({id:"bookmark.alert.create"})]}),r.jsx(No,{"aria-label":t.formatMessage({id:"bookmark.input.label"}),placeholder:t.formatMessage({id:"bookmark.input.placeholder"}),value:c,onChange:I=>{d(I.target.value)},onKeyDown:I=>{I.key==="Enter"&&T()},isRequired:!0,isInvalid:!p,autoFocus:!0}),r.jsx(cr,{intl:t,isInvalid:!p,onCancel:()=>{d(""),v("list")},onSave:T})]}),ye=()=>r.jsxs(r.Fragment,{children:[l.length?sr(l,e,t,i):r.jsxs(Oe,{rounded:"md",status:"info",children:[r.jsx(Ve,{}),t.formatMessage({id:"bookmark.alert.noSaved"})]}),r.jsx(nr,{intl:t,bookmarks:l,showCreate:()=>v("create"),showDelete:()=>v("delete")})]}),M=r.jsxs(r.Fragment,{children:[m==="list"&&ye(),m==="create"&&we(),m==="delete"&&De()]});return r.jsx(F,{flexDirection:"column",...y,children:M})}function sr(o,e,t,i){const s=t.formatMessage({id:"bookmark.button.deleteOne"}),n=o.map((l,c)=>r.jsx(ar,{index:c,listItemNodes:i,bookmark:l,onActivate:()=>e.activateBookmark(l),onDelete:()=>e.deleteBookmark(l.id),deleteBtnLabel:s},l.id));return r.jsx(Zo,{as:"ul",className:"spatial-bookmark-list",role:"listbox","aria-label":t.formatMessage({id:"bookmark.list.label"}),flexShrink:1,flexGrow:1,p:1,spacing:1,overflowY:"auto",listStyleType:"none",children:n})}const pt={ArrowDown:1,ArrowUp:-1};function ar(o){const{index:e,listItemNodes:t,bookmark:i,onDelete:s,onActivate:n,deleteBtnLabel:l}=o,c=i.title,d=p=>{const y=p.key;if(y==="Enter"){p.target===p.currentTarget&&n();return}if(pt[y]!=null){const m=t.current?.length;if(!m)return;let v=(e+pt[y])%m;v<0&&(v=m-1),t.current[v]?.focus()}};return r.jsx(R,{as:"li",p:1,ref:p=>{if(!p){t.current.splice(e,1);return}t.current[e]=p},className:Mo("spatial-bookmarks-item"),tabIndex:0,rounded:"md",role:"option",cursor:"pointer",outline:0,_hover:{background:"trails.50"},_focusVisible:{boxShadow:"outline"},onKeyDown:d,onClick:n,children:r.jsxs(F,{width:"100%",flexDirection:"row",align:"center",gap:1,children:[r.jsx(Et,{children:r.jsx(Po,{})}),r.jsx(Pe,{ps:2,noOfLines:1,children:c}),r.jsx(di,{}),r.jsx(Ut,{hasArrow:!0,label:l,placement:"right",children:r.jsx(Y,{className:"spatial-bookmarks-item-delete","aria-label":l,borderRadius:"full",iconSpacing:0,padding:0,colorScheme:"red",variant:"ghost",leftIcon:r.jsx(St,{}),onClick:p=>{s(),p.stopPropagation()}})},e)]})})}function nr(o){const{intl:e,bookmarks:t,showCreate:i,showDelete:s}=o;return r.jsxs(Ke,{children:[r.jsx(se,{isDisabled:t.length===0,colorScheme:"red",width:void 0,iconSpacing:0,leftIcon:r.jsx(St,{}),onClick:s,"aria-label":e.formatMessage({id:"bookmark.button.deleteAll"}),variant:"outline"}),r.jsx(se,{onClick:i,width:"100%",children:e.formatMessage({id:"bookmark.button.create"})})]})}function lr(o){const{intl:e,onCancel:t,onClear:i}=o;return r.jsxs(Ke,{children:[r.jsx(se,{variant:"outline",onClick:t,children:e.formatMessage({id:"bookmark.button.cancelDelete"})}),r.jsx(se,{onClick:i,children:e.formatMessage({id:"bookmark.button.confirmDelete"})})]})}function cr(o){const{intl:e,onCancel:t,onSave:i,isInvalid:s}=o;return r.jsxs(Ke,{children:[r.jsx(se,{variant:"outline",onClick:()=>t(),children:e.formatMessage({id:"bookmark.button.cancel"})}),r.jsx(se,{isDisabled:s,onClick:()=>i(),children:e.formatMessage({id:"bookmark.button.save"})})]})}function Ke(o){return r.jsx(F,{width:"100%",flexDirection:"row",mt:2,gap:1,flexGrow:0,flexShrink:0,children:o.children})}function se(o){return r.jsx(Y,{width:"100%",...o})}function dr(o,e){const[t,i]=f.useState();return f.useEffect(()=>{let s;return o?s=new Qi(o,e):s=void 0,i(s),()=>s?.destroy()},[o,e]),t}function pr({intl:o}){return{id:"coordinateViewer",title:o.formatMessage({id:"demos.coordinateViewer.title"}),createModel(){return{description:o.formatMessage({id:"demos.coordinateViewer.description"}),mainWidget:r.jsx(Oo,{})}}}}function ur({intl:o}){return{id:"scaleViewer",title:o.formatMessage({id:"demos.scaleViewer.title"}),createModel(){return{description:o.formatMessage({id:"demos.scaleViewer.description"}),mainWidget:r.jsx(Vo,{})}}}}function hr({intl:o}){return{id:"scaleSetter",title:o.formatMessage({id:"demos.scaleSetter.title"}),createModel(){return{description:o.formatMessage({id:"demos.scaleSetter.description"}),mainWidget:r.jsx(Zi,{})}}}}function mr({intl:o}){return{id:"scaleBar",title:o.formatMessage({id:"demos.scaleBar.title"}),createModel(){return{description:o.formatMessage({id:"demos.scaleBar.description"}),tools:r.jsx(zo,{})}}}}function gr({intl:o}){return{id:"measurement",title:o.formatMessage({id:"demos.measurement.title"}),createModel(){return{description:o.formatMessage({id:"demos.measurement.description"}),mainWidget:r.jsx(Fo,{})}}}}function fr({intl:o}){return{id:"mapNavigation",title:o.formatMessage({id:"demos.mapNavigation.title"}),createModel(){return{description:o.formatMessage({id:"demos.mapNavigation.description"}),tools:r.jsxs(r.Fragment,{children:[r.jsx(Jo,{}),r.jsx(Qo,{}),r.jsx(ei,{}),r.jsx(ti,{}),r.jsx(oi,{})]})}}}}function vr({intl:o}){return{id:"geolocation",title:o.formatMessage({id:"demos.geolocation.title"}),createModel(){return{description:o.formatMessage({id:"demos.geolocation.description"}),tools:r.jsx(Ui,{})}}}}function br({intl:o}){return{id:"spatialBookmarks",title:o.formatMessage({id:"demos.spatialBookmarks.title"}),createModel(){return{description:o.formatMessage({id:"demos.spatialBookmarks.description"}),mainWidget:r.jsx(ir,{})}}}}function wr({intl:o}){return{id:"printing",title:o.formatMessage({id:"demos.printing.title"}),createModel(){return{description:o.formatMessage({id:"demos.printing.description"}),mainWidget:r.jsx(Bo,{})}}}}const jt="showcase-app",Tt=qe.bind(void 0,jt),le=Te.bind(void 0,jt);function yr({intl:o,mapModel:e}){return{id:"tocLegend",title:o.formatMessage({id:"demos.tocLegend.title"}),createModel(){function t(s=!0){e.layers.getLayerById("verwaltungsgebiete").setVisible(s),e.layers.getLayerById("krankenhaus").setVisible(s),e.layers.getLayerById("ogc_kitas").setVisible(s)}function i(){t(!1),e?.layers.activateBaseLayer("osm")}return{description:o.formatMessage({id:"demos.tocLegend.description"}),mainWidget:r.jsx(xr,{}),destroy:i}}}}function xr(){const o=f.useId(),e=f.useId(),t=le();return r.jsxs(r.Fragment,{children:[r.jsx(R,{role:"dialog","aria-labelledby":o,children:r.jsx(ke,{title:r.jsx(He,{id:o,size:"md",mb:2,children:r.jsx(Pe,{children:t.formatMessage({id:"demos.tocLegend.tocTitle"})})}),children:r.jsx(Yo,{showTools:!0,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})}),r.jsx(R,{pt:2,role:"dialog","aria-labelledby":e,children:r.jsx(ke,{title:r.jsx(He,{id:e,size:"md",mb:2,children:t.formatMessage({id:"demos.tocLegend.legendTitle"})}),children:r.jsx(Go,{showBaseLayers:!0})})})]})}function kr(o){return{id:"selectionResultList",title:o.intl.formatMessage({id:"demos.selectionResultList.title"}),createModel(){return new Sr(o)}}}var ue,J,Q,_e,Me,gt;let Sr=(gt=class{constructor(e){u(this,ue);u(this,J);u(this,Q,re({key:0,input:void 0,open:!1}));b(this,"description");b(this,"mainWidget");u(this,_e,e=>{const{results:t}=e,n={columns:[{id:"id",displayName:"ID",width:100,getPropertyValue(c){return c.id}},{propertyName:"pointOfContact.address.postCode",displayName:"PLZ",width:120},{propertyName:"name",displayName:"Name"},{propertyName:"inspireId",displayName:"inspireID"},{displayName:"Gefördert",width:160,getPropertyValue(c){switch(c.properties?.gefoerdert){case"ja":return!0;case"nein":return!1;default:return c.properties?.gefoerdert}}}],data:t,formatOptions:{numberOptions:{maximumFractionDigits:3},dateOptions:{dateStyle:"medium",timeStyle:"medium",timeZone:"UTC"}}},l=a(this,Q).value.key;a(this,Q).value={open:!0,key:l+1,input:n}});u(this,Me,e=>{console.log("Selected features: ",e.features)});const{mapModel:t,vectorSelectionSourceFactory:i,intl:s}=e;h(this,ue,t),h(this,J,_r(t,i)),this.description=s.formatMessage({id:"demos.selectionResultList.description"}),this.mainWidget=r.jsx(Ho,{sources:[a(this,J)],onSelectionComplete:a(this,_e)}),t.layers.getLayerById("ogc_kitas").setVisible(!0)}destroy(){a(this,J).destroy(),a(this,ue).layers.getLayerById("ogc_kitas").setVisible(!1)}get listContainer(){const e=a(this,Q).value;if(!(!e.open||!e.input))return r.jsx(pi,{input:e.input,onSelectionChange:a(this,Me)},e.key)}},ue=new WeakMap,J=new WeakMap,Q=new WeakMap,_e=new WeakMap,Me=new WeakMap,gt);function _r(o,e){const t=o.layers.getLayerById("ogc_kitas");return e.createSelectionSource({vectorLayer:t.olLayer,label:t.title})}const Mr="krankenhaus";function Ir(o){return{id:"editing",title:o.intl.formatMessage({id:"demos.editing.title"}),createModel(){return new Er(o)}}}var he,ee;class Er{constructor(e){b(this,"description");b(this,"mainWidget");u(this,he);u(this,ee);const{mapModel:t,intl:i,editingService:s,notificationService:n}=e;h(this,he,t),this.description=i.formatMessage({id:"demos.editing.description"}),h(this,ee,new Lr(t,s,n,i)),this.mainWidget=r.jsx(Cr,{editingController:a(this,ee)}),this._setEditLayerVisible(!0)}destroy(){this._setEditLayerVisible(!1),a(this,ee).stopEditing()}_setEditLayerVisible(e=!0){a(this,he).layers.getLayerById(Mr).setVisible(e)}}he=new WeakMap,ee=new WeakMap;var k,S,U,W,N,P,q,O;class Lr{constructor(e,t,i,s){u(this,k);u(this,S);u(this,U);u(this,W);u(this,N);u(this,P);u(this,q);u(this,O);h(this,k,re(!1)),h(this,S,e),h(this,U,t),h(this,W,i),h(this,N,s)}editingActive(){return a(this,k).value}startCreateWorkflow(){if(!a(this,k).value)try{a(this,k).value=!0;const e=a(this,S).layers.getLayerById("krankenhaus"),t=new URL(e.attributes.collectionURL+"/items"),i=a(this,U).createFeature(a(this,S),t);this._watchState(i),i.whenComplete().then(s=>{if(!s)return;a(this,W).notify({level:"info",message:a(this,N).formatMessage({id:"demos.editing.create.featureCreated"},{featureId:s.featureId})}),(e?.olLayer).getSource()?.refresh()}).catch(s=>{console.error(s)}).finally(()=>{a(this,k).value=!1})}catch(e){a(this,k).value=!1,console.error(e)}}startUpdateWorkflow(){if(!a(this,k).value)try{a(this,k).value=!0,h(this,O,this._createEditingSelectTooltip());const e=a(this,S).layers.getLayerById("krankenhaus"),t=e?.olLayer;h(this,P,new Uo({layers:[t]})),a(this,S).olMap.addInteraction(a(this,P)),a(this,O).element.classList.remove("editing-tooltip-hidden"),h(this,q,a(this,P).on("select",i=>{const s=i.selected,n=i.deselected;if(s.length!==1||n.length!==0)return;this._stopUpdateSelection();const l=s[0];if(!l)throw Error("feature is undefined");const c=new URL(e.attributes.collectionURL+"/items"),d=a(this,U).updateFeature(a(this,S),c,l);this._watchState(d),d.whenComplete().then(p=>{p&&(a(this,W).notify({level:"info",message:a(this,N).formatMessage({id:"demos.editing.update.featureModified"},{featureId:p.featureId})}),t.getSource()?.refresh())}).catch(p=>{console.error(p)}).finally(()=>{a(this,k).value=!1})}))}catch(e){a(this,k).value=!1,console.error(e)}}_watchState(e){const t=$e(()=>[e.getState()],i=>{i[0]==="active:saving"&&a(this,W).notify({level:"info",message:a(this,N).formatMessage({id:"demos.editing.update.savingStared"})}),i[0]==="destroyed"&&(t.destroy(),console.log("destroyed"))})}_createEditingSelectTooltip(){const e=document.createElement("div");e.className="editing-tooltip editing-tooltip-hidden",e.textContent=a(this,N).formatMessage({id:"demos.editing.update.tooltip.select"});const t=new _t({element:e,offset:[15,0],positioning:"center-left"}),i=a(this,S).olMap,s=i.on("pointermove",n=>{n.dragging||t.setPosition(n.coordinate)});return i.addOverlay(t),{overlay:t,element:e,destroy(){Ge(s),i.removeOverlay(t)}}}_stopUpdateSelection(){a(this,P)&&a(this,S).olMap.removeInteraction(a(this,P)),a(this,q)&&Ge(a(this,q)),a(this,O)&&a(this,O).destroy(),h(this,P,void 0),h(this,q,void 0),h(this,O,void 0)}stopEditing(){a(this,U).stop(Re),this._stopUpdateSelection(),a(this,k).value=!1}}k=new WeakMap,S=new WeakMap,U=new WeakMap,W=new WeakMap,N=new WeakMap,P=new WeakMap,q=new WeakMap,O=new WeakMap;function Cr({editingController:o}){const e=le(),t=B(()=>o.editingActive(),[o]),i=t?e.formatMessage({id:"demos.editing.activeInfo"}):e.formatMessage({id:"demos.editing.inactiveInfo"});return r.jsxs(r.Fragment,{children:[r.jsxs(F,{px:1,py:1,children:[r.jsx(Y,{mr:2,isDisabled:t,onClick:()=>{o.startCreateWorkflow()},children:e.formatMessage({id:"demos.editing.startCreateButton"})}),r.jsx(Y,{mr:2,isDisabled:t,onClick:()=>{o.startUpdateWorkflow()},children:e.formatMessage({id:"demos.editing.startUpdateButton"})}),r.jsx(Y,{isDisabled:!t,onClick:()=>{o.stopEditing()},children:e.formatMessage({id:"demos.editing.stopButton"})})]}),r.jsx(F,{px:1,py:1,children:i})]})}function Ar(o){return[yr(o),pr(o),ur(o),hr(o),mr(o),gr(o),Ir(o),fr(o),vr(o),br(o),Di(o),wr(o),kr(o),Oi(o)]}const jr=be("app::AppModel");var Ie,me,ge,V,E,Ee,Le,ne,Pt,Rt;class Tr{constructor(e,t,i,s){u(this,ne);u(this,Ie);u(this,me);u(this,ge);u(this,V);u(this,E);u(this,Ee,Io(()=>Array.from(a(this,V).values())));u(this,Le,[]);if(h(this,Ie,e),h(this,me,t),h(this,ge,i),h(this,V,new Map(s.map(l=>[l.id,l]))),a(this,V).size===0)throw new Error("No demos defined.");const n=s[0];h(this,E,re([n,n.createModel()])),x(this,ne,Pt).call(this),a(this,Le).push(x(this,ne,Rt).call(this))}destroy(){a(this,E).value[1].destroy?.()}get currentDemo(){return a(this,E).value[0]}get currentDemoModel(){return a(this,E).value[1]}get allDemoInfos(){return a(this,Ee).value}selectDemo(e){const t=a(this,V).get(e);if(!t)throw new Error(`Demo '${e}' does not exist.`);Eo(()=>{const[,i]=a(this,E).value;i.destroy?.(),a(this,E).value=[t,t.createModel()]})}}Ie=new WeakMap,me=new WeakMap,ge=new WeakMap,V=new WeakMap,E=new WeakMap,Ee=new WeakMap,Le=new WeakMap,ne=new WeakSet,Pt=function(){const t=new URL(window.location.href).searchParams.get("demo");if(t){if(!a(this,V).has(t)){a(this,me).notify({title:a(this,ge).formatMessage({id:"demoSelection.notFound"},{demoId:t})});return}try{this.selectDemo(t)}catch(i){jr.error("Failed to select demo from URL",i)}}},Rt=function(){return $e(()=>[a(this,E).value[0].id],([e])=>{const t=new URL(window.location.href);t.searchParams.set("demo",e),window.history.replaceState(null,"",t.toString())},{immediate:!0})};var te,fe,ve,Ce,Dt;class Pr{constructor(e){u(this,Ce);u(this,te,re({kind:"loading"}));u(this,fe,[]);u(this,ve,!1);const{mapRegistry:t,httpService:i,notifier:s,vectorSelectionSourceFactory:n,editingService:l,notificationService:c}=e.references,d=e.intl;x(this,Ce,Dt).call(this,{mapRegistry:t,httpService:i,notifier:s,vectorSelectionSourceFactory:n,editingService:l,intl:d,notificationService:c}).catch(p=>{a(this,te).value={kind:"error",message:p.message||"Unknown error"}})}destroy(){h(this,ve,!0);for(const e of a(this,fe))e.destroy()}get appState(){return a(this,te).value}}te=new WeakMap,fe=new WeakMap,ve=new WeakMap,Ce=new WeakSet,Dt=async function(e){const{mapRegistry:t,httpService:i,notifier:s,vectorSelectionSourceFactory:n,editingService:l,intl:c,notificationService:d}=e,p=await t.getMapModel(Re);if(!p)throw new Error("No mapModel found.");const y=Ar({intl:c,httpService:i,mapModel:p,vectorSelectionSourceFactory:n,editingService:l,notificationService:d}),m={kind:"ready",appModel:new Tr(p,s,c,y),destroy(){this.appModel.destroy()}};if(a(this,ve)){m.destroy();return}a(this,te).value=m,a(this,fe).push(m)};const $=be("local-storage"),Rr=0,j={CORRUPTED_DATA:"local-storage:corrupted-data",INVALID_PATH:"local-storage:invalid-path",INVALID_VALUE:"local-storage:invalid-value",NOT_SUPPORTED:"local-storage:not-supported",INTERNAL:"local-storage:internal-error"};var oe,L,z,ie,C,w,Nt,Ot,ce,K,Vt;class Dr{constructor(e){u(this,w);u(this,oe);u(this,L,{});u(this,z);u(this,ie);u(this,C);h(this,oe,zr(e.properties)),h(this,z,Fr()),a(this,z)&&(x(this,w,Ot).call(this),h(this,ie,x(this,w,Vt).call(this)))}destroy(){a(this,C)&&(clearTimeout(a(this,C)),h(this,C,void 0)),a(this,z)&&x(this,w,ce).call(this)}get isSupported(){return!!a(this,ie)}get(e){return x(this,w,K).call(this).get(e)}set(e,t){return x(this,w,K).call(this).set(e,t)}remove(e){return x(this,w,K).call(this).remove(e)}removeAll(){return x(this,w,K).call(this).removeAll()}getNamespace(e){return x(this,w,K).call(this).getNamespace(e)}}oe=new WeakMap,L=new WeakMap,z=new WeakMap,ie=new WeakMap,C=new WeakMap,w=new WeakSet,Nt=function(){a(this,C)&&clearTimeout(a(this,C)),h(this,C,setTimeout(()=>{h(this,C,void 0),x(this,w,ce).call(this)},Rr))},Ot=function(){try{const e=a(this,z);if(!e)throw new A(j.INTERNAL,"Local storage is not available.");const t=e.getItem(a(this,oe));if(t==null){h(this,L,{}),x(this,w,ce).call(this);return}try{const i=JSON.parse(t);if(!ae(i))throw new A(j.CORRUPTED_DATA,"Persisted value should be an object.");h(this,L,i)}catch(i){$.warn("Invalid persisted data, reverting to default.",i),h(this,L,{}),x(this,w,ce).call(this)}}catch(e){$.error("Failed to load from local storage",e)}},ce=function(){try{const e=a(this,z);if(!e)throw new A(j.INTERNAL,"Local storage is not available.");const t=JSON.stringify(a(this,L));e.setItem(a(this,oe),t)}catch(e){$.error("Failed to save to local storage",e)}},K=function(){const e=a(this,ie);if(!e)throw new A(j.NOT_SUPPORTED,"Local storage is not supported by this browser.");return e},Vt=function(){const e={getByPath:t=>ht(Nr(a(this,L),t)),setByPath:(t,i)=>{if(!Vr(i))throw new A(j.INVALID_VALUE,"The value is not supported by local storage.");if(i=ht(i),t.length===0){if(!ae(i))throw new A(j.INVALID_VALUE,"The root value must be a plain object.");h(this,L,i)}else Or(a(this,L),t,i);x(this,w,Nt).call(this)}};return new Ye([],e)};class Ye{path;access;constructor(e,t){this.path=e,this.access=t}get(e){return this.access.getByPath([...this.path,e])}set(e,t){this.access.setByPath([...this.path,e],t)}remove(e){this.access.setByPath([...this.path,e],void 0)}removeAll(){this.access.setByPath(this.path,{})}getNamespace(e){const t=this.get(e);if(t===void 0)this.set(e,{});else if(!ae(t))throw new A(j.INVALID_PATH,`Cannot use '${e}' as a namespace because it is not associated with an object.`);return new Ye(this.path.concat([e]),this.access)}}const ut="trails-state";function Nr(o,e){let t=o;for(const i of e){if(!ae(t))throw new A(j.INVALID_PATH,`Cannot get nested property '${i}' because the parent is no object.`);t=t[i]}return t}function Or(o,e,t){if(!e.length)throw new A(j.INTERNAL,"Path must not be empty.");let i=o;for(let n=0,l=e.length-1;n"u"){$.warn("Local storage is not supported by this browser.");return}try{const o=globalThis.localStorage;if(!o){$.warn("Local storage is not supported by this browser.");return}return o}catch(o){$.warn("Local storage is not supported by this browser.",o);return}}function ht(o){return o!=null&&(o=JSON.parse(JSON.stringify(o))),o}const Br={"showcase-app":{name:"showcase-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Li,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{vectorSourceFactory:{name:"ogc-features.VectorSourceFactory",qualifier:void 0,all:!1}}},AppInitModel:{name:"AppInitModel",clazz:Pr,provides:[{name:"app.AppInitModel",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1},mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1},notifier:{name:"notifier.NotificationService",qualifier:void 0,all:!1},vectorSelectionSourceFactory:{name:"selection.VectorSelectionSourceFactory",qualifier:void 0,all:!1},editingService:{name:"editing.EditingService",qualifier:void 0,all:!1},notificationService:{name:"notifier.NotificationService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"app.AppInitModel",qualifier:void 0,all:!1},{name:"runtime.ApplicationContext",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Lo,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:ui,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:Co,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:ii,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:ri,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/overview-map":{name:"@open-pioneer/overview-map",services:{},ui:{references:[]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/printing":{name:"@open-pioneer/printing",services:{PrintingServiceImpl:{name:"PrintingServiceImpl",clazz:hi,provides:[{name:"printing.PrintingService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"printing.PrintingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/editing":{name:"@open-pioneer/editing",services:{EditingServiceImpl:{name:"EditingServiceImpl",clazz:Wo,provides:[{name:"editing.EditingService",qualifier:void 0}],references:{mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{polygonStyle:{value:{"fill-color":"rgba(255,255,255,0.4)","stroke-color":"red","stroke-width":1.25,"circle-radius":3,"circle-fill-color":"red","circle-stroke-width":1.25,"circle-stroke-color":"red"},required:!1},vertexStyle:{value:{"circle-radius":3,"circle-fill-color":"red","circle-stroke-width":1.25,"circle-stroke-color":"red"},required:!1}}},"@open-pioneer/legend":{name:"@open-pioneer/legend",services:{},ui:{references:[]},properties:{}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/selection":{name:"@open-pioneer/selection",services:{VectorSelectionSourceFactory:{name:"VectorSelectionSourceFactory",clazz:qo,provides:[{name:"selection.VectorSelectionSourceFactory",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/geolocation":{name:"@open-pioneer/geolocation",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/scale-setter":{name:"@open-pioneer/scale-setter",services:{},ui:{references:[]},properties:{}},"@open-pioneer/spatial-bookmarks":{name:"@open-pioneer/spatial-bookmarks",services:{},ui:{references:[{name:"local-storage.LocalStorageService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-ui-components":{name:"@open-pioneer/map-ui-components",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/local-storage":{name:"@open-pioneer/local-storage",services:{LocalStorageServiceImpl:{name:"LocalStorageServiceImpl",clazz:Dr,provides:[{name:"local-storage.LocalStorageService",qualifier:"local-storage.LocalStorageService"}],references:{}}},ui:{references:[]},properties:{storageId:{value:null,required:!1}}}},Gr=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.printing-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;-webkit-user-select:none;user-select:none;pointer-events:all;cursor:wait;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#b4b4b4cc}.printing-overlay-status{flex:1 1 auto;font-size:1.5em;text-align:center}.printing-scale-bar.ol-scale-bar{left:var(--printing-scale-bar-left);bottom:var(--printing-scale-bar-bottom)}.editing-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.editing-tooltip-hidden{visibility:hidden}.measurement-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:#000000e6;border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none}.selection-drag-box{background-color:#ffffff4d!important;border:3px solid var(--chakra-colors-background_primary)!important}.selection-tooltip{position:relative;background:#fffc;border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.selection .react-select{cursor:default}.map-container .selection-active{cursor:crosshair}.map-container .selection-inactive{cursor:no-drop}.selection-source-value.selection-source-value--disabled{opacity:.4}.selection-source-value.selection-source-value--disabled span{margin:0 6px 0 0}.map-anchor.main-map-anchor{overflow-x:hidden;overflow-y:auto}.map-container:focus-visible{outline:none}.map-container:focus-visible:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:3px solid var(--chakra-colors-trails-500)}@media screen and (max-width: 48em){.map-anchor.main-map-anchor{max-height:45%}}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.overview-map .ol-overviewmap{position:relative;height:100%;width:100%}.overview-map .ol-overviewmap:not(.ol-collapsed){border:1px solid black}.overview-map .ol-overviewmap .ol-overviewmap-map{border:none;width:100%;height:100%}.overview-map .ol-overviewmap .ol-overviewmap-box{border:2px solid red}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)}',Hr=["en","de"];function Ur(o){switch(o){case"en":return st(()=>import("./DEc3M1w42gc3.js"),[],import.meta.url).then(e=>e.default);case"de":return st(()=>import("./BaIyqT_8vxnW.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${o}'`)}const Wr=Wt(Gr),qr=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Ur,locales:Hr,packages:Br,styles:Wr},Symbol.toStringTag,{value:"Module"}));function zt({label:o,children:e}){return r.jsxs(mi,{as:gi,maxWidth:{base:"none",md:"20em"},width:{base:"100%",sm:"47%",md:void 0},children:[r.jsx(fi,{flexBasis:{base:"8em",sm:"auto"},m:0,children:o}),e]})}const $r=be("app::DemoSelection");function Kr({appModel:o}){const e=le(),{allDemos:t,currentDemo:i}=B(()=>({allDemos:o.allDemoInfos,currentDemo:o.currentDemo}),[o]),s=f.useMemo(()=>t.map(n=>r.jsx("option",{value:n.id,children:n.title},n.id)),[t]);return r.jsx(zt,{label:e.formatMessage({id:"demoSelection.label"}),children:r.jsx(Mt,{value:i.id,onChange:n=>{const l=n.target.value;try{o.selectDemo(l)}catch(c){$r.error("Failed to select demo",c)}},children:s})})}function Yr(){const o=le(),e=Tt("runtime.ApplicationContext"),t=Zr(e.getLocale()),i=s=>{switch(s){case"en":e.setLocale("en-GB");break;case"de":e.setLocale("de-DE");break}};return r.jsx(zt,{label:o.formatMessage({id:"localeSwitcher.label"}),children:r.jsxs(Mt,{value:t,onChange:s=>i(s.target.value),children:[r.jsx("option",{value:"de",children:o.formatMessage({id:"localeSwitcher.locale.de"})}),r.jsx("option",{value:"en",children:o.formatMessage({id:"localeSwitcher.locale.en"})})]})})}function Zr(o){const e=o.match(/^[a-z]+/i)?.[0];if(e==="en"||e=="de")return e;throw new Error("unexpected locale prefix: "+e)}function Xr({appModel:o}){const e=le();return r.jsxs(F,{as:"header",px:2,py:3,flexWrap:{base:"wrap",md:"nowrap"},alignItems:"baseline",gap:2,boxShadow:"1px 0px 3px rgba(0, 0, 0, 0.5)",bgColor:"white",zIndex:100,children:[r.jsx(He,{size:"md",flexShrink:0,flexGrow:1,textAlign:{base:"center",md:"left"},width:{base:"100%",md:"auto"},mb:{base:2,md:0},children:e.formatMessage({id:"header.title"})}),r.jsx(Kr,{appModel:o}),r.jsx(Yr,{})]})}function Jr(){const o=Tt("app.AppInitModel"),e=B(()=>o.appState,[o]);let t;switch(e.kind){case"loading":t="Loading...";break;case"error":t="Error: "+e.message;break;case"ready":t=r.jsx(Qr,{state:e})}return t}function Qr(o){const e=le(),t=o.state.appModel,{currentDemo:i,currentDemoModel:s}=B(()=>({currentDemo:t.currentDemo,currentDemoModel:t.currentDemoModel}),[t]),n=B(()=>s.listContainer,[s]),l=f.useMemo(()=>({left:0,right:0,bottom:n!=null?400:0,top:0}),[n]);return r.jsxs(r.Fragment,{children:[r.jsx($o,{position:"top-right"}),r.jsx(F,{height:"100%",direction:"column",children:r.jsx(ke,{title:r.jsx(Xr,{appModel:t}),children:r.jsx(F,{flex:"1",direction:"column",position:"relative",children:r.jsx(Ao,{mapId:Re,children:r.jsxs(jo,{viewPadding:l,role:"main","aria-label":e.formatMessage({id:"ariaLabels.map"}),children:[r.jsx(rt,{className:"main-map-anchor",position:"top-left",horizontalGap:10,verticalGap:10,children:r.jsx(R,{bgColor:"white",borderRadius:10,p:2,maxW:"500px",children:r.jsxs(ke,{title:i.title,sectionHeadingProps:{size:"lg"},children:[r.jsx(Pe,{py:4,dangerouslySetInnerHTML:{__html:s.description}}),s.mainWidget]})})}),r.jsx(rt,{position:"bottom-right",horizontalGap:6,children:r.jsx(Be,{p:1,children:s.tools})}),n&&r.jsx(R,{className:"list-container",position:"absolute",bottom:"0",backgroundColor:"white",width:"100%",height:"400px",zIndex:1,borderTop:"2px solid",borderColor:"trails.100",children:n})]})})})})})]})}const es=new URLSearchParams(window.location.search),ts=es.get("lang")||void 0,os=qt({component:Jr,appMetadata:qr,config:{properties:{"@open-pioneer/local-storage":{storageId:"ol-showcase-state"}},locale:ts}});customElements.define("showcase-app",os); diff --git a/openlayers-base-packages/assets/BMa7TTlUnkcm.js b/openlayers-base-packages/assets/DxMLgDGBfPwt.js similarity index 99% rename from openlayers-base-packages/assets/BMa7TTlUnkcm.js rename to openlayers-base-packages/assets/DxMLgDGBfPwt.js index 5877db3e4..5cf189e98 100644 --- a/openlayers-base-packages/assets/BMa7TTlUnkcm.js +++ b/openlayers-base-packages/assets/DxMLgDGBfPwt.js @@ -1,4 +1,4 @@ -var J=a=>{throw TypeError(a)};var V=(a,e,t)=>e.has(a)||J("Cannot "+t);var w=(a,e,t)=>(V(a,e,"read from private field"),t?t.call(a):e.get(a)),E=(a,e,t)=>e.has(a)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),v=(a,e,t,i)=>(V(a,e,"write to private field"),i?i.call(a,t):e.set(a,t),t),x=(a,e,t)=>(V(a,e,"access private method"),t);import{r as R,a7 as ue,h as se,j as K,a5 as fe,g as Q,c as ge,d as _e}from"./BeGW3nmX4tO2.js";import{_ as me}from"./CmsKOCeNyeyo.js";import{b_ as pe,b$ as ye,B as Ce,c0 as we,c1 as ke,c2 as Te,bc as xe,c3 as Pe,bA as ve,bn as Z,bs as Se,a as Le,b as De,c4 as Ee,bg as ee,bz as be,c5 as Me,a9 as Ie,bl as k,c6 as Fe,G as Re,bm as ne,a_ as b,an as B,c7 as te,bv as Ne,ao as Oe,am as re,by as Ge,c8 as Ue,c9 as oe,ca as Ae,aK as je,aM as We,cb as ie,aq as Ve}from"./q4MLRk0u7kxl.js";import{a as Be,b as ae,M as he,G as qe}from"./UlulYB4e5zqK.js";import{L as j}from"./D3gFeNVkNTAB.js";function He(a){const{loading:e,src:t,srcSet:i,onLoad:s,onError:r,crossOrigin:n,sizes:o,ignoreFallback:h}=a,[l,c]=R.useState("pending");R.useEffect(()=>{c(t?"loading":"pending")},[t]);const d=R.useRef(),u=R.useCallback(()=>{if(!t)return;f();const g=new Image;g.src=t,n&&(g.crossOrigin=n),i&&(g.srcset=i),o&&(g.sizes=o),e&&(g.loading=e),g.onload=_=>{f(),c("loaded"),s?.(_)},g.onerror=_=>{f(),c("failed"),r?.(_)},d.current=g},[t,n,i,o,s,r,e]),f=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return ue(()=>{if(!h)return l==="loading"&&u(),()=>{f()}},[l,u,h]),h?"loaded":l}const $e=(a,e)=>a!=="loaded"&&e==="beforeLoadOrError"||a==="failed"&&e==="onError",Y=se(function(e,t){const{htmlWidth:i,htmlHeight:s,alt:r,...n}=e;return K.jsx("img",{width:i,height:s,ref:t,alt:r,...n})});Y.displayName="NativeImage";const Xe=se(function(e,t){const{fallbackSrc:i,fallback:s,src:r,srcSet:n,align:o,fit:h,loading:l,ignoreFallback:c,crossOrigin:d,fallbackStrategy:u="beforeLoadOrError",referrerPolicy:f,...g}=e,_=i!==void 0||s!==void 0,m=l!=null||c||!_,P=He({...e,crossOrigin:d,ignoreFallback:m}),T=$e(P,u),p={ref:t,objectFit:h,objectPosition:o,...m?g:fe(g,["onError","onLoad"])};return T?s||K.jsx(Q.img,{as:Y,className:"chakra-image__placeholder",src:i,...p}):K.jsx(Q.img,{as:Y,src:r,srcSet:n,crossOrigin:d,loading:l,referrerPolicy:f,className:"chakra-image",...p})});Xe.displayName="Image";class W extends pe{constructor(e,t,i){super(),i!==void 0&&t===void 0?this.setFlatCoordinates(i,e):(t=t||0,this.setCenterAndRadius(e,t,i))}clone(){const e=new W(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e}closestPointXY(e,t,i,s){const r=this.flatCoordinates,n=e-r[0],o=t-r[1],h=n*n+o*o;if(h=i[0]||e[1]<=i[1]&&e[3]>=i[1]?!0:we(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){const t=this.stride,i=this.flatCoordinates[t]-this.flatCoordinates[0],s=e.slice();s[t]=s[0]+i;for(let r=1;r{throw TypeError(a)};var V=(a,e,t)=>e.has(a)||J("Cannot "+t);var w=(a,e,t)=>(V(a,e,"read from private field"),t?t.call(a):e.get(a)),E=(a,e,t)=>e.has(a)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),v=(a,e,t,i)=>(V(a,e,"write to private field"),i?i.call(a,t):e.set(a,t),t),x=(a,e,t)=>(V(a,e,"access private method"),t);import{r as R,a7 as ue,h as se,j as K,a5 as fe,g as Q,c as ge,d as _e}from"./BeGW3nmX4tO2.js";import{_ as me}from"./CmsKOCeNyeyo.js";import{b_ as pe,b$ as ye,B as Ce,c0 as we,c1 as ke,c2 as Te,bc as xe,c3 as Pe,bA as ve,bn as Z,bs as Se,a as Le,b as De,c4 as Ee,bg as ee,bz as be,c5 as Me,a9 as Ie,bl as k,c6 as Fe,G as Re,bm as ne,a_ as b,an as B,c7 as te,bv as Ne,ao as Oe,am as re,by as Ge,c8 as Ue,c9 as oe,ca as Ae,aK as je,aM as We,cb as ie,aq as Ve}from"./BjXju3dgjVrG.js";import{a as Be,b as ae,M as he,G as qe}from"./D1e64i0R5zCb.js";import{L as j}from"./D6bui9ILupw_.js";function He(a){const{loading:e,src:t,srcSet:i,onLoad:s,onError:r,crossOrigin:n,sizes:o,ignoreFallback:h}=a,[l,c]=R.useState("pending");R.useEffect(()=>{c(t?"loading":"pending")},[t]);const d=R.useRef(),u=R.useCallback(()=>{if(!t)return;f();const g=new Image;g.src=t,n&&(g.crossOrigin=n),i&&(g.srcset=i),o&&(g.sizes=o),e&&(g.loading=e),g.onload=_=>{f(),c("loaded"),s?.(_)},g.onerror=_=>{f(),c("failed"),r?.(_)},d.current=g},[t,n,i,o,s,r,e]),f=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return ue(()=>{if(!h)return l==="loading"&&u(),()=>{f()}},[l,u,h]),h?"loaded":l}const $e=(a,e)=>a!=="loaded"&&e==="beforeLoadOrError"||a==="failed"&&e==="onError",Y=se(function(e,t){const{htmlWidth:i,htmlHeight:s,alt:r,...n}=e;return K.jsx("img",{width:i,height:s,ref:t,alt:r,...n})});Y.displayName="NativeImage";const Xe=se(function(e,t){const{fallbackSrc:i,fallback:s,src:r,srcSet:n,align:o,fit:h,loading:l,ignoreFallback:c,crossOrigin:d,fallbackStrategy:u="beforeLoadOrError",referrerPolicy:f,...g}=e,_=i!==void 0||s!==void 0,m=l!=null||c||!_,P=He({...e,crossOrigin:d,ignoreFallback:m}),T=$e(P,u),p={ref:t,objectFit:h,objectPosition:o,...m?g:fe(g,["onError","onLoad"])};return T?s||K.jsx(Q.img,{as:Y,className:"chakra-image__placeholder",src:i,...p}):K.jsx(Q.img,{as:Y,src:r,srcSet:n,crossOrigin:d,loading:l,referrerPolicy:f,className:"chakra-image",...p})});Xe.displayName="Image";class W extends pe{constructor(e,t,i){super(),i!==void 0&&t===void 0?this.setFlatCoordinates(i,e):(t=t||0,this.setCenterAndRadius(e,t,i))}clone(){const e=new W(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e}closestPointXY(e,t,i,s){const r=this.flatCoordinates,n=e-r[0],o=t-r[1],h=n*n+o*o;if(h=i[0]||e[1]<=i[1]&&e[3]>=i[1]?!0:we(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){const t=this.stride,i=this.flatCoordinates[t]-this.flatCoordinates[0],s=e.slice();s[t]=s[0]+i;for(let r=1;r component has likely been used twice in your application.`),{destroy(){}};v(this,C,e);const t=w(this,D);if(v(this,D,void 0),t)for(const[s,...r]of t)e[s](...r);let i=!1;return{destroy:()=>{i||(i=!0,w(this,C)===e&&v(this,C,void 0))}}}}C=new WeakMap,D=new WeakMap,F=new WeakMap,y=new WeakSet,I=function(e,t){typeof t=="string"&&(t={message:t}),this.notify({...t,level:e})},z=function(e,...t){if(w(this,C))w(this,C)[e](...t);else{const i=w(this,D)??v(this,D,[]);if(i.length>=1024){q.error(`Internal notification buffer overflow: this event will be dropped to prevent a memory leak. Make sure that the UI is configured to display notifications (use ).`,{method:e,args:t});return}i.push([e,...t])}},Ke=function(){w(this,C)||q.warn(`No notification handler has been registered: notifications will not be visible. Make sure that your app contains the component.`)};const N={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"};class O extends Oe{constructor(e,t){super(e),this.feature=t}}function Ye(a,e){const t=[];for(let i=0;i=t?a[e-t]:a[e]}function U(a,e,t){let i,s;en){const h=L(a,i),l=L(a,s);return G(h,l)}let o=0;if(iu.startIndex?_u.startIndex&&(_-=f.length)),h=_,o=d)}const l=e.targets[o];let c=l.ring;if(e.targetIndex===o&&c){const d=L(l.coordinates,h),u=t.getPixelFromCoordinate(d);ne(u,e.startPx)>i&&(c=!1)}if(c){const d=l.coordinates,u=d.length,f=l.startIndex,g=h;if(f=t?i-=t:i<0&&(i+=t);let r=i+1;r>=t&&(r-=t);const n=a[i],o=n[0],h=n[1],l=a[r],c=l[0]-o,d=l[1]-h;return[o+c*s,h+d*s]}class Je extends xe{constructor(e){const t=e;t.stopDown||(t.stopDown=Pe),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=Ze(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:this.mode_==="Polygon"?3:2,this.maxPoints_=this.mode_==="Circle"?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:ve,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let i=e.geometryFunction;if(!i){const s=this.mode_;if(s==="Circle")i=(r,n,o)=>{const h=n||new W([NaN,NaN]),l=Z(r[0]),c=Se(l,Z(r[r.length-1]));return h.setCenterAndRadius(l,Math.sqrt(c),this.geometryLayout_),h};else{let r;s==="Point"?r=B:s==="LineString"?r=j:s==="Polygon"&&(r=re),i=(n,o,h)=>(o?s==="Polygon"?n[0].length?o.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):o.setCoordinates([],this.geometryLayout_):o.setCoordinates(n,this.geometryLayout_):o=new r(n,this.geometryLayout_),o)}}this.geometryFunction_=i,this.dragVertexDelay_=e.dragVertexDelay!==void 0?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new Le({source:new De({useSpatialIndex:!1,wrapX:e.wrapX?e.wrapX:!1}),style:e.style?e.style:Qe(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:Ee,this.freehandCondition_,e.freehand?this.freehandCondition_=ee:this.freehandCondition_=e.freehandCondition?e.freehandCondition:be,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(Me.ACTIVE,this.updateState_)}setTrace(e){let t;e?e===!0?t=ee:t=e:t=Ge,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===Ie.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!=="Point"&&this.freehandCondition_(e);let t=e.type===k.POINTERMOVE,i=!0;return!this.freehand_&&this.lastDragTime_&&e.type===k.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===k.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(e.coordinate),i=!1):this.freehand_&&e.type===k.POINTERDOWN?i=!1:t&&this.getPointerCount()<2?(i=e.type===k.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):(e.originalEvent.pointerType==="mouse"||e.type===k.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(e)):e.type===k.DBLCLICK&&(i=!1),super.handleEvent(e)&&i}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new Fe(k.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))},this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_();return}const t=this.getMap(),i=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),s=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),r=Re([i,s]),n=this.traceSource_.getFeaturesInExtent(r);if(n.length===0)return;const o=Ye(e.coordinate,n);o.length&&(this.traceState_={active:!0,startPx:e.pixel.slice(),targets:o,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){const i=e.startIndex<=e.endIndex,s=e.startIndex<=t;i===s?i&&t>e.endIndex||!i&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let i=0;if(e0&&this.removeLastPoints_(i)}addTracedCoordinates_(e,t,i){if(t===i)return;const s=[];if(t=n;--o)s.push(S(e.coordinates,o))}s.length&&this.appendCoordinates(s)}updateTrace_(e){const t=this.traceState_;if(!t.active||t.targetIndex===-1&&ne(t.startPx,e.pixel)this.squaredClickTolerance_:n<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(e.coordinate.slice());return}this.updateTrace_(e),this.modifyDrawing_(e.coordinate)}atFinish_(e,t){let i=!1;if(this.sketchFeature_){let s=!1,r=[this.finishCoordinate_];const n=this.mode_;if(n==="Point")i=!0;else if(n==="Circle")i=this.sketchCoords_.length===2;else if(n==="LineString")s=!t&&this.sketchCoords_.length>this.minPoints_;else if(n==="Polygon"){const o=this.sketchCoords_;s=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]],t?r=[o[0][0]]:r=[o[0][0],o[0][o[0].length-2]]}if(s){const o=this.getMap();for(let h=0,l=r.length;h=this.maxPoints_&&(this.freehand_?r.pop():s=!0),r.push(e.slice()),this.geometryFunction_(r,t,i)):n==="Polygon"&&(r=this.sketchCoords_[0],r.length>=this.maxPoints_&&(this.freehand_?r.pop():s=!0),r.push(e.slice()),s&&(this.finishCoordinate_=r[0]),this.geometryFunction_(this.sketchCoords_,t,i)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),s?this.finishDrawing():this.sketchFeature_}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),s=this.mode_;for(let r=0;r=2){this.finishCoordinate_=n[n.length-2].slice();const o=this.finishCoordinate_.slice();n[n.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(n,t,i),t.getType()==="Polygon"&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(s==="Polygon"){n=this.sketchCoords_[0],n.splice(-2,1);const o=this.sketchLine_.getGeometry();if(n.length>=2){const h=n[n.length-2].slice();n[n.length-1]=h,this.createOrUpdateSketchPoint_(h)}o.setCoordinates(n),this.geometryFunction_(this.sketchCoords_,t,i)}if(n.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return null;let t=this.sketchCoords_;const i=e.getGeometry(),s=this.getMap().getView().getProjection();return this.mode_==="LineString"?(t.pop(),this.geometryFunction_(t,i,s)):this.mode_==="Polygon"&&(t[0].pop(),this.geometryFunction_(t,i,s),t=i.getCoordinates()),this.type_==="MultiPoint"?e.setGeometry(new Be([t])):this.type_==="MultiLineString"?e.setGeometry(new ae([t])):this.type_==="MultiPolygon"&&e.setGeometry(new he([t])),this.dispatchEvent(new O(N.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e),e}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new O(N.DRAWABORT,e))}appendCoordinates(e){const t=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(e[0]);let s;if(t==="LineString"||t==="Circle")s=this.sketchCoords_;else if(t==="Polygon")s=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&s.shift(),s.pop();for(let n=0;n=h){u=_,f=m,g=P;break}else if(f>=o)break;_=u,m=f,P=g,++d}const T=this.scaleBar_?this.createScaleBar(f,u,c):u.toFixed(g<0?-g:0)+" "+c;this.renderedHTML_!=T&&(this.innerElement_.innerHTML=T,this.renderedHTML_=T),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,i){const s=this.getScaleForResolution(),r=s<1?Math.round(1/s).toLocaleString()+" : 1":"1 : "+Math.round(s).toLocaleString(),n=this.scaleBarSteps_,o=e/n,h=[this.createMarker("absolute")];for(let c=0;c
`+this.createMarker("relative")+(c%2===0||n===2?this.createStepText(c,e,!1,t,i):"")+"")}return h.push(this.createStepText(n,e,!0,t,i)),(this.scaleBarText_?`
`+r+"
":"")+h.join("")}createMarker(e){return`
`}createStepText(e,t,i,s,r){const o=(e===0?0:Math.round(s/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+r),h=e===0?-3:t/this.scaleBarSteps_*-1,l=e===0?0:t/this.scaleBarSteps_*2;return`
`+o+"
"}getScaleForResolution(){const e=ie(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),t=this.dpi_||M,i=1e3/25.4;return e*i*t}render(e){const t=e.frameState;t?this.viewState_=t.viewState:this.viewState_=null,this.updateElement_()}}const it=.8,de="printing-hide";function st(a,e){return a.toDataURL("image/png",e??it)}function nt(a,e){const t=document.createElement("div");t.classList.add("printing-overlay",de),a.appendChild(t);const i=document.createElement("div");return i.classList.add("printing-overlay-status"),i.textContent=e,t.appendChild(i),{destroy(){t.remove()}}}class gt{defaultOverlayText;constructor(e){this.defaultOverlayText=e.intl.formatMessage({id:"printingMap"})}async printMap(e,t){return await new rt(e,{blockUserInteraction:!0,overlayText:this.defaultOverlayText,viewPadding:"auto",...t}).printMap()}}class rt{olMap;blockUserInteraction=!1;overlayText;viewPadding;running=!1;drawInformation=[];scaleLine=void 0;overlay=void 0;constructor(e,t){this.olMap=e,this.blockUserInteraction=t.blockUserInteraction,this.overlayText=t.overlayText,this.viewPadding=t.viewPadding}async printMap(){if(this.running)throw new Error("Printing already running.");try{await this.beginExport();let e=await this.printToCanvas(this.olMap.getViewport());if(!e)throw new Error("Canvas export failed");return this.viewPadding==="auto"&&(e=this.removePadding(e,this.getViewPadding())),new ot(e)}finally{this.reset()}}async beginExport(){this.running=!0;const e=this.olMap.getInteractions().getArray().filter(t=>t.getActive()&&t instanceof Je);if(this.drawInformation=[],e?.forEach(t=>{const i=t,s=i.getOverlay().getStyle();i.getOverlay().setStyle(null),this.drawInformation?.push({draw:i,style:s})}),this.blockUserInteraction){const t=this.olMap?.getTargetElement();t&&(this.overlay=nt(t,this.overlayText))}await this.addScaleLine()}async addScaleLine(){const t=(this.scaleLine=new tt({className:"printing-scale-bar ol-scale-bar",bar:!0,text:!0,minWidth:125})).element;if(!t)throw new Error("Scale line does not have an element");let i=50,s=8;if(this.viewPadding==="auto"){const{bottom:h,left:l}=this.getViewPadding();i=Math.max(h+8,i),s+=l}t.style.setProperty("--printing-scale-bar-bottom",`${i}px`),t.style.setProperty("--printing-scale-bar-left",`${s}px`);const r=_e(),n=setTimeout(()=>{r.reject(new Error("Scale line did not render"))},3e3),o=this.scaleLine.render;this.scaleLine.render=(...h)=>{o.apply(this.scaleLine,h),r.resolve()},this.olMap?.addControl(this.scaleLine);try{await r.promise,await new Promise(h=>{requestAnimationFrame(h)})}finally{clearTimeout(n)}}async printToCanvas(e){const t={useCORS:!0,ignoreElements:function(r){if(r.classList&&typeof r.classList=="object"){const n=r.classList;return n.contains("map-anchors")||n.contains(de)}return!1}},i=(await me(async()=>{const{default:r}=await import("./BfxBtG_Oxhhm.js");return{default:r}},[],import.meta.url)).default;return await i(e,t)}reset(){this.scaleLine&&(this.olMap?.removeControl(this.scaleLine),this.scaleLine=void 0),this.overlay&&(this.overlay.destroy(),this.overlay=void 0),this.running=!1,this.drawInformation?.length&&this.drawInformation.forEach(e=>{e.draw.getOverlay().setStyle(e.style)})}removePadding(e,t){const i=window.devicePixelRatio||1,s={top:t.top*i,right:t.right*i,bottom:t.bottom*i,left:t.left*i};if(s.left===0&&s.right===0&&s.top===0&&s.bottom===0)return e;const{width:r,height:n}=e,o=document.createElement("canvas");o.width=r-s.left-s.right,o.height=n-s.top-s.bottom;const h=o.getContext("2d");if(!h)throw new Error("Failed to get a canvas context");return h.drawImage(e,s.left,s.top,o.width,o.height,0,0,o.width,o.height),o}getViewPadding(){const t=this.olMap.getView().padding??[0,0,0,0];return{top:t[0]??0,right:t[1]??0,bottom:t[2]??0,left:t[3]??0}}}class ot{canvas;constructor(e){this.canvas=e}getCanvas(){return this.canvas}getPNGDataURL(e){return st(this.canvas,e)}}export{Je as D,Xe as I,ft as N,gt as P,tt as S,st as a,nt as c}; diff --git a/openlayers-base-packages/assets/DnKCrehDk6ys.js b/openlayers-base-packages/assets/Wf-eMftTXoqi.js similarity index 99% rename from openlayers-base-packages/assets/DnKCrehDk6ys.js rename to openlayers-base-packages/assets/Wf-eMftTXoqi.js index 4928aaf6d..2887143fa 100644 --- a/openlayers-base-packages/assets/DnKCrehDk6ys.js +++ b/openlayers-base-packages/assets/Wf-eMftTXoqi.js @@ -1,4 +1,4 @@ -import{an as Ke,ai as Ao}from"./BeGW3nmX4tO2.js";import{a as mi}from"./BOXMyqr06QWb.js";import"./q4MLRk0u7kxl.js";import"./39a3VBatk_eA.js";import"./BMuX_dt1qyjL.js";import"./Gw82v5PUNK8h.js";import"./N6gwA50uHdd6.js";var vt=function(a){return a&&a.Math===Math&&a},D=vt(typeof globalThis=="object"&&globalThis)||vt(typeof window=="object"&&window)||vt(typeof self=="object"&&self)||vt(typeof Ke=="object"&&Ke)||vt(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")(),Et={},k=function(a){try{return!!a()}catch{return!0}},bl=k,le=!bl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),xl=k,pr=!xl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),Tl=pr,Ft=Function.prototype.call,Y=Tl?Ft.bind(Ft):function(){return Ft.apply(Ft,arguments)},Po={},Ro={}.propertyIsEnumerable,No=Object.getOwnPropertyDescriptor,Ol=No&&!Ro.call({1:2},1);Po.f=Ol?function(e){var t=No(this,e);return!!t&&t.enumerable}:Ro;var bi=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},Io=pr,Mo=Function.prototype,Ua=Mo.call,Sl=Io&&Mo.bind.bind(Ua,Ua),L=Io?Sl:function(a){return function(){return Ua.apply(a,arguments)}},_o=L,El=_o({}.toString),$l=_o("".slice),Be=function(a){return $l(El(a),8,-1)},wl=L,Cl=k,Al=Be,Wr=Object,Pl=wl("".split),Vo=Cl(function(){return!Wr("z").propertyIsEnumerable(0)})?function(a){return Al(a)==="String"?Pl(a,""):Wr(a)}:Wr,je=function(a){return a==null},Rl=je,Nl=TypeError,he=function(a){if(Rl(a))throw new Nl("Can't call method on "+a);return a},Il=Vo,Ml=he,$t=function(a){return Il(Ml(a))},qr=typeof document=="object"&&document.all,B=typeof qr>"u"&&qr!==void 0?function(a){return typeof a=="function"||a===qr}:function(a){return typeof a=="function"},_l=B,ve=function(a){return typeof a=="object"?a!==null:_l(a)},Qr=D,Vl=B,Dl=function(a){return Vl(a)?a:void 0},Fe=function(a,e){return arguments.length<2?Dl(Qr[a]):Qr[a]&&Qr[a][e]},kl=L,yr=kl({}.isPrototypeOf),mr=typeof navigator<"u"&&String(navigator.userAgent)||"",Do=D,Kr=mr,fn=Do.process,cn=Do.Deno,gn=fn&&fn.versions||cn&&cn.version,dn=gn&&gn.v8,ue,hr;dn&&(ue=dn.split("."),hr=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!hr&&Kr&&(ue=Kr.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=Kr.match(/Chrome\/(\d+)/),ue&&(hr=+ue[1])));var xi=hr,pn=xi,Ll=k,Bl=D,jl=Bl.String,ko=!!Object.getOwnPropertySymbols&&!Ll(function(){var a=Symbol("symbol detection");return!jl(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&pn&&pn<41}),Fl=ko,Lo=Fl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ul=Fe,Gl=B,zl=yr,Hl=Lo,Yl=Object,Bo=Hl?function(a){return typeof a=="symbol"}:function(a){var e=Ul("Symbol");return Gl(e)&&zl(e.prototype,Yl(a))},Xl=String,br=function(a){try{return Xl(a)}catch{return"Object"}},Wl=B,ql=br,Ql=TypeError,Te=function(a){if(Wl(a))return a;throw new Ql(ql(a)+" is not a function")},Kl=Te,Zl=je,ot=function(a,e){var t=a[e];return Zl(t)?void 0:Kl(t)},Zr=Y,Jr=B,ea=ve,Jl=TypeError,eh=function(a,e){var t,r;if(e==="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a))||Jr(t=a.valueOf)&&!ea(r=Zr(t,a))||e!=="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a)))return r;throw new Jl("Can't convert object to primitive value")},jo={exports:{}},yn=D,th=Object.defineProperty,Ti=function(a,e){try{th(yn,a,{value:e,configurable:!0,writable:!0})}catch{yn[a]=e}return e},rh=D,ah=Ti,mn="__core-js_shared__",bn=jo.exports=rh[mn]||ah(mn,{});(bn.versions||(bn.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Oi=jo.exports,xn=Oi,Si=function(a,e){return xn[a]||(xn[a]=e||{})},ih=he,nh=Object,xr=function(a){return nh(ih(a))},sh=L,oh=xr,uh=sh({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return uh(oh(e),t)},lh=L,hh=0,vh=Math.random(),fh=lh(1 .toString),Fo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+fh(++hh+vh,36)},ch=D,gh=Si,Tn=fe,dh=Fo,ph=ko,yh=Lo,Ze=ch.Symbol,ta=gh("wks"),mh=yh?Ze.for||Ze:Ze&&Ze.withoutSetter||dh,z=function(a){return Tn(ta,a)||(ta[a]=ph&&Tn(Ze,a)?Ze[a]:mh("Symbol."+a)),ta[a]},bh=Y,On=ve,Sn=Bo,xh=ot,Th=eh,Oh=z,Sh=TypeError,Eh=Oh("toPrimitive"),$h=function(a,e){if(!On(a)||Sn(a))return a;var t=xh(a,Eh),r;if(t){if(e===void 0&&(e="default"),r=bh(t,a,e),!On(r)||Sn(r))return r;throw new Sh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Th(a,e)},wh=$h,Ch=Bo,Uo=function(a){var e=wh(a,"string");return Ch(e)?e:e+""},Ah=D,En=ve,Ga=Ah.document,Ph=En(Ga)&&En(Ga.createElement),Tr=function(a){return Ph?Ga.createElement(a):{}},Rh=le,Nh=k,Ih=Tr,Go=!Rh&&!Nh(function(){return Object.defineProperty(Ih("div"),"a",{get:function(){return 7}}).a!==7}),Mh=le,_h=Y,Vh=Po,Dh=bi,kh=$t,Lh=Uo,Bh=fe,jh=Go,$n=Object.getOwnPropertyDescriptor;Et.f=Mh?$n:function(e,t){if(e=kh(e),t=Lh(t),jh)try{return $n(e,t)}catch{}if(Bh(e,t))return Dh(!_h(Vh.f,e,t),e[t])};var Oe={},Fh=le,Uh=k,zo=Fh&&Uh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Gh=ve,zh=String,Hh=TypeError,J=function(a){if(Gh(a))return a;throw new Hh(zh(a)+" is not an object")},Yh=le,Xh=Go,Wh=zo,Ut=J,wn=Uo,qh=TypeError,ra=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,aa="enumerable",ia="configurable",na="writable";Oe.f=Yh?Wh?function(e,t,r){if(Ut(e),t=wn(t),Ut(r),typeof e=="function"&&t==="prototype"&&"value"in r&&na in r&&!r[na]){var i=Qh(e,t);i&&i[na]&&(e[t]=r.value,r={configurable:ia in r?r[ia]:i[ia],enumerable:aa in r?r[aa]:i[aa],writable:!1})}return ra(e,t,r)}:ra:function(e,t,r){if(Ut(e),t=wn(t),Ut(r),Xh)try{return ra(e,t,r)}catch{}if("get"in r||"set"in r)throw new qh("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Kh=le,Zh=Oe,Jh=bi,wt=Kh?function(a,e,t){return Zh.f(a,e,Jh(1,t))}:function(a,e,t){return a[e]=t,a},Ho={exports:{}},za=le,ev=fe,Yo=Function.prototype,tv=za&&Object.getOwnPropertyDescriptor,Ei=ev(Yo,"name"),rv=Ei&&(function(){}).name==="something",av=Ei&&(!za||za&&tv(Yo,"name").configurable),Or={EXISTS:Ei,PROPER:rv,CONFIGURABLE:av},iv=L,nv=B,Ha=Oi,sv=iv(Function.toString);nv(Ha.inspectSource)||(Ha.inspectSource=function(a){return sv(a)});var $i=Ha.inspectSource,ov=D,uv=B,Cn=ov.WeakMap,lv=uv(Cn)&&/native code/.test(String(Cn)),hv=Si,vv=Fo,An=hv("keys"),wi=function(a){return An[a]||(An[a]=vv(a))},Ci={},fv=lv,Xo=D,cv=ve,gv=wt,sa=fe,oa=Oi,dv=wi,pv=Ci,Pn="Object already initialized",Ya=Xo.TypeError,yv=Xo.WeakMap,vr,Tt,fr,mv=function(a){return fr(a)?Tt(a):vr(a,{})},bv=function(a){return function(e){var t;if(!cv(e)||(t=Tt(e)).type!==a)throw new Ya("Incompatible receiver, "+a+" required");return t}};if(fv||oa.state){var de=oa.state||(oa.state=new yv);de.get=de.get,de.has=de.has,de.set=de.set,vr=function(a,e){if(de.has(a))throw new Ya(Pn);return e.facade=a,de.set(a,e),e},Tt=function(a){return de.get(a)||{}},fr=function(a){return de.has(a)}}else{var Ye=dv("state");pv[Ye]=!0,vr=function(a,e){if(sa(a,Ye))throw new Ya(Pn);return e.facade=a,gv(a,Ye,e),e},Tt=function(a){return sa(a,Ye)?a[Ye]:{}},fr=function(a){return sa(a,Ye)}}var Sr={set:vr,get:Tt,has:fr,enforce:mv,getterFor:bv},Ai=L,xv=k,Tv=B,Gt=fe,Xa=le,Ov=Or.CONFIGURABLE,Sv=$i,Wo=Sr,Ev=Wo.enforce,$v=Wo.get,Rn=String,ir=Object.defineProperty,wv=Ai("".slice),Cv=Ai("".replace),Av=Ai([].join),Pv=Xa&&!xv(function(){return ir(function(){},"length",{value:8}).length!==8}),Rv=String(String).split("String"),Nv=Ho.exports=function(a,e,t){wv(Rn(e),0,7)==="Symbol("&&(e="["+Cv(Rn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!Gt(a,"name")||Ov&&a.name!==e)&&(Xa?ir(a,"name",{value:e,configurable:!0}):a.name=e),Pv&&t&&Gt(t,"arity")&&a.length!==t.arity&&ir(a,"length",{value:t.arity});try{t&&Gt(t,"constructor")&&t.constructor?Xa&&ir(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=Ev(a);return Gt(r,"source")||(r.source=Av(Rv,typeof e=="string"?e:"")),a};Function.prototype.toString=Nv(function(){return Tv(this)&&$v(this).source||Sv(this)},"toString");var qo=Ho.exports,Iv=B,Mv=Oe,_v=qo,Vv=Ti,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Iv(t)&&_v(t,n,r),r.global)i?a[e]=t:Vv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:Mv.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},Qo={},Dv=Math.ceil,kv=Math.floor,Lv=Math.trunc||function(e){var t=+e;return(t>0?kv:Dv)(t)},Bv=Lv,Er=function(a){var e=+a;return e!==e||e===0?0:Bv(e)},jv=Er,Fv=Math.max,Uv=Math.min,Gv=function(a,e){var t=jv(a);return t<0?Fv(t+e,0):Uv(t,e)},zv=Er,Hv=Math.min,ut=function(a){var e=zv(a);return e>0?Hv(e,9007199254740991):0},Yv=ut,Pi=function(a){return Yv(a.length)},Xv=$t,Wv=Gv,qv=Pi,Nn=function(a){return function(e,t,r){var i=Xv(e),n=qv(i);if(n===0)return!a&&-1;var o=Wv(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},Ko={includes:Nn(!0),indexOf:Nn(!1)},Qv=L,ua=fe,Kv=$t,Zv=Ko.indexOf,Jv=Ci,In=Qv([].push),Zo=function(a,e){var t=Kv(a),r=0,i=[],n;for(n in t)!ua(Jv,n)&&ua(t,n)&&In(i,n);for(;e.length>r;)ua(t,n=e[r++])&&(~Zv(i,n)||In(i,n));return i},Ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ef=Zo,tf=Ri,rf=tf.concat("length","prototype");Qo.f=Object.getOwnPropertyNames||function(e){return ef(e,rf)};var Jo={};Jo.f=Object.getOwnPropertySymbols;var af=Fe,nf=L,sf=Qo,of=Jo,uf=J,lf=nf([].concat),hf=af("Reflect","ownKeys")||function(e){var t=sf.f(uf(e)),r=of.f;return r?lf(t,r(e)):t},Mn=fe,vf=hf,ff=Et,cf=Oe,gf=function(a,e,t){for(var r=vf(e),i=cf.f,n=ff.f,o=0;of;f++)if(v=y(a[f]),v&&ls(vs,v))return v;return new or(!1)}l=yd(a,h)}for(d=n?a.next:l.next;!(g=fd(d,l)).done;){try{v=y(g.value)}catch(x){hs(l,"throw",x)}if(typeof v=="object"&&v&&ls(vs,v))return v}return new or(!1)},xd=z,Iu=xd("iterator"),Mu=!1;try{var Td=0,fs={next:function(){return{done:!!Td++}},return:function(){Mu=!0}};fs[Iu]=function(){return this},Array.from(fs,function(){throw 2})}catch{}var Od=function(a,e){try{if(!e&&!Mu)return!1}catch{return!1}var t=!1;try{var r={};r[Iu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},Sd=Cr,Ed=Od,$d=Pt.CONSTRUCTOR,_u=$d||!Ed(function(a){Sd.all(a).then(void 0,function(){})}),wd=ee,Cd=Y,Ad=Te,Pd=lt,Rd=Vi,Nd=Nu,Id=_u;wd({target:"Promise",stat:!0,forced:Id},{all:function(e){var t=this,r=Pd.f(t),i=r.resolve,n=r.reject,o=Rd(function(){var s=Ad(t.resolve),u=[],l=0,h=1;Nd(e,function(f){var c=l++,v=!1;h++,Cd(s,t,f).then(function(d){v||(v=!0,u[c]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var Md=ee,_d=Pt.CONSTRUCTOR,ti=Cr,Vd=Fe,Dd=B,kd=Ue,cs=ti&&ti.prototype;Md({target:"Promise",proto:!0,forced:_d,real:!0},{catch:function(a){return this.then(void 0,a)}});if(Dd(ti)){var gs=Vd("Promise").prototype.catch;cs.catch!==gs&&kd(cs,"catch",gs,{unsafe:!0})}var Ld=ee,Bd=Y,jd=Te,Fd=lt,Ud=Vi,Gd=Nu,zd=_u;Ld({target:"Promise",stat:!0,forced:zd},{race:function(e){var t=this,r=Fd.f(t),i=r.reject,n=Ud(function(){var o=jd(t.resolve);Gd(e,function(s){Bd(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Hd=ee,Yd=lt,Xd=Pt.CONSTRUCTOR;Hd({target:"Promise",stat:!0,forced:Xd},{reject:function(e){var t=Yd.f(this),r=t.reject;return r(e),t.promise}});var Wd=J,qd=ve,Qd=lt,Kd=function(a,e){if(Wd(a),qd(e)&&e.constructor===a)return e;var t=Qd.f(a),r=t.resolve;return r(e),t.promise},Zd=ee,Jd=Fe,ep=Pt.CONSTRUCTOR,tp=Kd;Jd("Promise");Zd({target:"Promise",stat:!0,forced:ep},{resolve:function(e){return tp(this,e)}});function ds(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){ds(n,r,i,o,s,"next",u)}function s(u){ds(n,r,i,o,s,"throw",u)}o(void 0)})}}var rp=Ni,ap=String,pe=function(a){if(rp(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ap(a)},ip=J,Vu=function(){var a=ip(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},ji=k,np=D,Fi=np.RegExp,Ui=ji(function(){var a=Fi("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),sp=Ui||ji(function(){return!Fi("a","y").sticky}),op=Ui||ji(function(){var a=Fi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Du={BROKEN_CARET:op,MISSED_STICKY:sp,UNSUPPORTED_Y:Ui},ku={},up=Zo,lp=Ri,hp=Object.keys||function(e){return up(e,lp)},vp=le,fp=zo,cp=Oe,gp=J,dp=$t,pp=hp;ku.f=vp&&!fp?Object.defineProperties:function(e,t){gp(e);for(var r=dp(t),i=pp(t),n=i.length,o=0,s;n>o;)cp.f(e,s=i[o++],r[s]);return e};var yp=J,mp=ku,ps=Ri,bp=Ci,xp=hu,Tp=Tr,Op=wi,ys=">",ms="<",ri="prototype",ai="script",Lu=Op("IE_PROTO"),xa=function(){},Bu=function(a){return ms+ai+ys+a+ms+"/"+ai+ys},bs=function(a){a.write(Bu("")),a.close();var e=a.parentWindow.Object;return a=null,e},Sp=function(){var a=Tp("iframe"),e="java"+ai+":",t;return a.style.display="none",xp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(Bu("document.F=Object")),t.close(),t.F},Kt,ur=function(){try{Kt=new ActiveXObject("htmlfile")}catch{}ur=typeof document<"u"?document.domain&&Kt?bs(Kt):Sp():bs(Kt);for(var a=ps.length;a--;)delete ur[ri][ps[a]];return ur()};bp[Lu]=!0;var Gi=Object.create||function(e,t){var r;return e!==null?(xa[ri]=yp(e),r=new xa,xa[ri]=null,r[Lu]=e):r=ur(),t===void 0?r:mp.f(r,t)},Ep=k,$p=D,wp=$p.RegExp,Cp=Ep(function(){var a=wp(".","s");return!(a.dotAll&&a.test(` +import{an as Ke,ai as Ao}from"./BeGW3nmX4tO2.js";import{a as mi}from"./B48t-8DI4YWS.js";import"./BjXju3dgjVrG.js";import"./39a3VBatk_eA.js";import"./BMuX_dt1qyjL.js";import"./Gw82v5PUNK8h.js";import"./N6gwA50uHdd6.js";var vt=function(a){return a&&a.Math===Math&&a},D=vt(typeof globalThis=="object"&&globalThis)||vt(typeof window=="object"&&window)||vt(typeof self=="object"&&self)||vt(typeof Ke=="object"&&Ke)||vt(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")(),Et={},k=function(a){try{return!!a()}catch{return!0}},bl=k,le=!bl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),xl=k,pr=!xl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),Tl=pr,Ft=Function.prototype.call,Y=Tl?Ft.bind(Ft):function(){return Ft.apply(Ft,arguments)},Po={},Ro={}.propertyIsEnumerable,No=Object.getOwnPropertyDescriptor,Ol=No&&!Ro.call({1:2},1);Po.f=Ol?function(e){var t=No(this,e);return!!t&&t.enumerable}:Ro;var bi=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},Io=pr,Mo=Function.prototype,Ua=Mo.call,Sl=Io&&Mo.bind.bind(Ua,Ua),L=Io?Sl:function(a){return function(){return Ua.apply(a,arguments)}},_o=L,El=_o({}.toString),$l=_o("".slice),Be=function(a){return $l(El(a),8,-1)},wl=L,Cl=k,Al=Be,Wr=Object,Pl=wl("".split),Vo=Cl(function(){return!Wr("z").propertyIsEnumerable(0)})?function(a){return Al(a)==="String"?Pl(a,""):Wr(a)}:Wr,je=function(a){return a==null},Rl=je,Nl=TypeError,he=function(a){if(Rl(a))throw new Nl("Can't call method on "+a);return a},Il=Vo,Ml=he,$t=function(a){return Il(Ml(a))},qr=typeof document=="object"&&document.all,B=typeof qr>"u"&&qr!==void 0?function(a){return typeof a=="function"||a===qr}:function(a){return typeof a=="function"},_l=B,ve=function(a){return typeof a=="object"?a!==null:_l(a)},Qr=D,Vl=B,Dl=function(a){return Vl(a)?a:void 0},Fe=function(a,e){return arguments.length<2?Dl(Qr[a]):Qr[a]&&Qr[a][e]},kl=L,yr=kl({}.isPrototypeOf),mr=typeof navigator<"u"&&String(navigator.userAgent)||"",Do=D,Kr=mr,fn=Do.process,cn=Do.Deno,gn=fn&&fn.versions||cn&&cn.version,dn=gn&&gn.v8,ue,hr;dn&&(ue=dn.split("."),hr=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!hr&&Kr&&(ue=Kr.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=Kr.match(/Chrome\/(\d+)/),ue&&(hr=+ue[1])));var xi=hr,pn=xi,Ll=k,Bl=D,jl=Bl.String,ko=!!Object.getOwnPropertySymbols&&!Ll(function(){var a=Symbol("symbol detection");return!jl(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&pn&&pn<41}),Fl=ko,Lo=Fl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ul=Fe,Gl=B,zl=yr,Hl=Lo,Yl=Object,Bo=Hl?function(a){return typeof a=="symbol"}:function(a){var e=Ul("Symbol");return Gl(e)&&zl(e.prototype,Yl(a))},Xl=String,br=function(a){try{return Xl(a)}catch{return"Object"}},Wl=B,ql=br,Ql=TypeError,Te=function(a){if(Wl(a))return a;throw new Ql(ql(a)+" is not a function")},Kl=Te,Zl=je,ot=function(a,e){var t=a[e];return Zl(t)?void 0:Kl(t)},Zr=Y,Jr=B,ea=ve,Jl=TypeError,eh=function(a,e){var t,r;if(e==="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a))||Jr(t=a.valueOf)&&!ea(r=Zr(t,a))||e!=="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a)))return r;throw new Jl("Can't convert object to primitive value")},jo={exports:{}},yn=D,th=Object.defineProperty,Ti=function(a,e){try{th(yn,a,{value:e,configurable:!0,writable:!0})}catch{yn[a]=e}return e},rh=D,ah=Ti,mn="__core-js_shared__",bn=jo.exports=rh[mn]||ah(mn,{});(bn.versions||(bn.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Oi=jo.exports,xn=Oi,Si=function(a,e){return xn[a]||(xn[a]=e||{})},ih=he,nh=Object,xr=function(a){return nh(ih(a))},sh=L,oh=xr,uh=sh({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return uh(oh(e),t)},lh=L,hh=0,vh=Math.random(),fh=lh(1 .toString),Fo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+fh(++hh+vh,36)},ch=D,gh=Si,Tn=fe,dh=Fo,ph=ko,yh=Lo,Ze=ch.Symbol,ta=gh("wks"),mh=yh?Ze.for||Ze:Ze&&Ze.withoutSetter||dh,z=function(a){return Tn(ta,a)||(ta[a]=ph&&Tn(Ze,a)?Ze[a]:mh("Symbol."+a)),ta[a]},bh=Y,On=ve,Sn=Bo,xh=ot,Th=eh,Oh=z,Sh=TypeError,Eh=Oh("toPrimitive"),$h=function(a,e){if(!On(a)||Sn(a))return a;var t=xh(a,Eh),r;if(t){if(e===void 0&&(e="default"),r=bh(t,a,e),!On(r)||Sn(r))return r;throw new Sh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Th(a,e)},wh=$h,Ch=Bo,Uo=function(a){var e=wh(a,"string");return Ch(e)?e:e+""},Ah=D,En=ve,Ga=Ah.document,Ph=En(Ga)&&En(Ga.createElement),Tr=function(a){return Ph?Ga.createElement(a):{}},Rh=le,Nh=k,Ih=Tr,Go=!Rh&&!Nh(function(){return Object.defineProperty(Ih("div"),"a",{get:function(){return 7}}).a!==7}),Mh=le,_h=Y,Vh=Po,Dh=bi,kh=$t,Lh=Uo,Bh=fe,jh=Go,$n=Object.getOwnPropertyDescriptor;Et.f=Mh?$n:function(e,t){if(e=kh(e),t=Lh(t),jh)try{return $n(e,t)}catch{}if(Bh(e,t))return Dh(!_h(Vh.f,e,t),e[t])};var Oe={},Fh=le,Uh=k,zo=Fh&&Uh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Gh=ve,zh=String,Hh=TypeError,J=function(a){if(Gh(a))return a;throw new Hh(zh(a)+" is not an object")},Yh=le,Xh=Go,Wh=zo,Ut=J,wn=Uo,qh=TypeError,ra=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,aa="enumerable",ia="configurable",na="writable";Oe.f=Yh?Wh?function(e,t,r){if(Ut(e),t=wn(t),Ut(r),typeof e=="function"&&t==="prototype"&&"value"in r&&na in r&&!r[na]){var i=Qh(e,t);i&&i[na]&&(e[t]=r.value,r={configurable:ia in r?r[ia]:i[ia],enumerable:aa in r?r[aa]:i[aa],writable:!1})}return ra(e,t,r)}:ra:function(e,t,r){if(Ut(e),t=wn(t),Ut(r),Xh)try{return ra(e,t,r)}catch{}if("get"in r||"set"in r)throw new qh("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Kh=le,Zh=Oe,Jh=bi,wt=Kh?function(a,e,t){return Zh.f(a,e,Jh(1,t))}:function(a,e,t){return a[e]=t,a},Ho={exports:{}},za=le,ev=fe,Yo=Function.prototype,tv=za&&Object.getOwnPropertyDescriptor,Ei=ev(Yo,"name"),rv=Ei&&(function(){}).name==="something",av=Ei&&(!za||za&&tv(Yo,"name").configurable),Or={EXISTS:Ei,PROPER:rv,CONFIGURABLE:av},iv=L,nv=B,Ha=Oi,sv=iv(Function.toString);nv(Ha.inspectSource)||(Ha.inspectSource=function(a){return sv(a)});var $i=Ha.inspectSource,ov=D,uv=B,Cn=ov.WeakMap,lv=uv(Cn)&&/native code/.test(String(Cn)),hv=Si,vv=Fo,An=hv("keys"),wi=function(a){return An[a]||(An[a]=vv(a))},Ci={},fv=lv,Xo=D,cv=ve,gv=wt,sa=fe,oa=Oi,dv=wi,pv=Ci,Pn="Object already initialized",Ya=Xo.TypeError,yv=Xo.WeakMap,vr,Tt,fr,mv=function(a){return fr(a)?Tt(a):vr(a,{})},bv=function(a){return function(e){var t;if(!cv(e)||(t=Tt(e)).type!==a)throw new Ya("Incompatible receiver, "+a+" required");return t}};if(fv||oa.state){var de=oa.state||(oa.state=new yv);de.get=de.get,de.has=de.has,de.set=de.set,vr=function(a,e){if(de.has(a))throw new Ya(Pn);return e.facade=a,de.set(a,e),e},Tt=function(a){return de.get(a)||{}},fr=function(a){return de.has(a)}}else{var Ye=dv("state");pv[Ye]=!0,vr=function(a,e){if(sa(a,Ye))throw new Ya(Pn);return e.facade=a,gv(a,Ye,e),e},Tt=function(a){return sa(a,Ye)?a[Ye]:{}},fr=function(a){return sa(a,Ye)}}var Sr={set:vr,get:Tt,has:fr,enforce:mv,getterFor:bv},Ai=L,xv=k,Tv=B,Gt=fe,Xa=le,Ov=Or.CONFIGURABLE,Sv=$i,Wo=Sr,Ev=Wo.enforce,$v=Wo.get,Rn=String,ir=Object.defineProperty,wv=Ai("".slice),Cv=Ai("".replace),Av=Ai([].join),Pv=Xa&&!xv(function(){return ir(function(){},"length",{value:8}).length!==8}),Rv=String(String).split("String"),Nv=Ho.exports=function(a,e,t){wv(Rn(e),0,7)==="Symbol("&&(e="["+Cv(Rn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!Gt(a,"name")||Ov&&a.name!==e)&&(Xa?ir(a,"name",{value:e,configurable:!0}):a.name=e),Pv&&t&&Gt(t,"arity")&&a.length!==t.arity&&ir(a,"length",{value:t.arity});try{t&&Gt(t,"constructor")&&t.constructor?Xa&&ir(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=Ev(a);return Gt(r,"source")||(r.source=Av(Rv,typeof e=="string"?e:"")),a};Function.prototype.toString=Nv(function(){return Tv(this)&&$v(this).source||Sv(this)},"toString");var qo=Ho.exports,Iv=B,Mv=Oe,_v=qo,Vv=Ti,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Iv(t)&&_v(t,n,r),r.global)i?a[e]=t:Vv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:Mv.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},Qo={},Dv=Math.ceil,kv=Math.floor,Lv=Math.trunc||function(e){var t=+e;return(t>0?kv:Dv)(t)},Bv=Lv,Er=function(a){var e=+a;return e!==e||e===0?0:Bv(e)},jv=Er,Fv=Math.max,Uv=Math.min,Gv=function(a,e){var t=jv(a);return t<0?Fv(t+e,0):Uv(t,e)},zv=Er,Hv=Math.min,ut=function(a){var e=zv(a);return e>0?Hv(e,9007199254740991):0},Yv=ut,Pi=function(a){return Yv(a.length)},Xv=$t,Wv=Gv,qv=Pi,Nn=function(a){return function(e,t,r){var i=Xv(e),n=qv(i);if(n===0)return!a&&-1;var o=Wv(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},Ko={includes:Nn(!0),indexOf:Nn(!1)},Qv=L,ua=fe,Kv=$t,Zv=Ko.indexOf,Jv=Ci,In=Qv([].push),Zo=function(a,e){var t=Kv(a),r=0,i=[],n;for(n in t)!ua(Jv,n)&&ua(t,n)&&In(i,n);for(;e.length>r;)ua(t,n=e[r++])&&(~Zv(i,n)||In(i,n));return i},Ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ef=Zo,tf=Ri,rf=tf.concat("length","prototype");Qo.f=Object.getOwnPropertyNames||function(e){return ef(e,rf)};var Jo={};Jo.f=Object.getOwnPropertySymbols;var af=Fe,nf=L,sf=Qo,of=Jo,uf=J,lf=nf([].concat),hf=af("Reflect","ownKeys")||function(e){var t=sf.f(uf(e)),r=of.f;return r?lf(t,r(e)):t},Mn=fe,vf=hf,ff=Et,cf=Oe,gf=function(a,e,t){for(var r=vf(e),i=cf.f,n=ff.f,o=0;of;f++)if(v=y(a[f]),v&&ls(vs,v))return v;return new or(!1)}l=yd(a,h)}for(d=n?a.next:l.next;!(g=fd(d,l)).done;){try{v=y(g.value)}catch(x){hs(l,"throw",x)}if(typeof v=="object"&&v&&ls(vs,v))return v}return new or(!1)},xd=z,Iu=xd("iterator"),Mu=!1;try{var Td=0,fs={next:function(){return{done:!!Td++}},return:function(){Mu=!0}};fs[Iu]=function(){return this},Array.from(fs,function(){throw 2})}catch{}var Od=function(a,e){try{if(!e&&!Mu)return!1}catch{return!1}var t=!1;try{var r={};r[Iu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},Sd=Cr,Ed=Od,$d=Pt.CONSTRUCTOR,_u=$d||!Ed(function(a){Sd.all(a).then(void 0,function(){})}),wd=ee,Cd=Y,Ad=Te,Pd=lt,Rd=Vi,Nd=Nu,Id=_u;wd({target:"Promise",stat:!0,forced:Id},{all:function(e){var t=this,r=Pd.f(t),i=r.resolve,n=r.reject,o=Rd(function(){var s=Ad(t.resolve),u=[],l=0,h=1;Nd(e,function(f){var c=l++,v=!1;h++,Cd(s,t,f).then(function(d){v||(v=!0,u[c]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var Md=ee,_d=Pt.CONSTRUCTOR,ti=Cr,Vd=Fe,Dd=B,kd=Ue,cs=ti&&ti.prototype;Md({target:"Promise",proto:!0,forced:_d,real:!0},{catch:function(a){return this.then(void 0,a)}});if(Dd(ti)){var gs=Vd("Promise").prototype.catch;cs.catch!==gs&&kd(cs,"catch",gs,{unsafe:!0})}var Ld=ee,Bd=Y,jd=Te,Fd=lt,Ud=Vi,Gd=Nu,zd=_u;Ld({target:"Promise",stat:!0,forced:zd},{race:function(e){var t=this,r=Fd.f(t),i=r.reject,n=Ud(function(){var o=jd(t.resolve);Gd(e,function(s){Bd(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Hd=ee,Yd=lt,Xd=Pt.CONSTRUCTOR;Hd({target:"Promise",stat:!0,forced:Xd},{reject:function(e){var t=Yd.f(this),r=t.reject;return r(e),t.promise}});var Wd=J,qd=ve,Qd=lt,Kd=function(a,e){if(Wd(a),qd(e)&&e.constructor===a)return e;var t=Qd.f(a),r=t.resolve;return r(e),t.promise},Zd=ee,Jd=Fe,ep=Pt.CONSTRUCTOR,tp=Kd;Jd("Promise");Zd({target:"Promise",stat:!0,forced:ep},{resolve:function(e){return tp(this,e)}});function ds(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){ds(n,r,i,o,s,"next",u)}function s(u){ds(n,r,i,o,s,"throw",u)}o(void 0)})}}var rp=Ni,ap=String,pe=function(a){if(rp(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ap(a)},ip=J,Vu=function(){var a=ip(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},ji=k,np=D,Fi=np.RegExp,Ui=ji(function(){var a=Fi("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),sp=Ui||ji(function(){return!Fi("a","y").sticky}),op=Ui||ji(function(){var a=Fi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Du={BROKEN_CARET:op,MISSED_STICKY:sp,UNSUPPORTED_Y:Ui},ku={},up=Zo,lp=Ri,hp=Object.keys||function(e){return up(e,lp)},vp=le,fp=zo,cp=Oe,gp=J,dp=$t,pp=hp;ku.f=vp&&!fp?Object.defineProperties:function(e,t){gp(e);for(var r=dp(t),i=pp(t),n=i.length,o=0,s;n>o;)cp.f(e,s=i[o++],r[s]);return e};var yp=J,mp=ku,ps=Ri,bp=Ci,xp=hu,Tp=Tr,Op=wi,ys=">",ms="<",ri="prototype",ai="script",Lu=Op("IE_PROTO"),xa=function(){},Bu=function(a){return ms+ai+ys+a+ms+"/"+ai+ys},bs=function(a){a.write(Bu("")),a.close();var e=a.parentWindow.Object;return a=null,e},Sp=function(){var a=Tp("iframe"),e="java"+ai+":",t;return a.style.display="none",xp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(Bu("document.F=Object")),t.close(),t.F},Kt,ur=function(){try{Kt=new ActiveXObject("htmlfile")}catch{}ur=typeof document<"u"?document.domain&&Kt?bs(Kt):Sp():bs(Kt);for(var a=ps.length;a--;)delete ur[ri][ps[a]];return ur()};bp[Lu]=!0;var Gi=Object.create||function(e,t){var r;return e!==null?(xa[ri]=yp(e),r=new xa,xa[ri]=null,r[Lu]=e):r=ur(),t===void 0?r:mp.f(r,t)},Ep=k,$p=D,wp=$p.RegExp,Cp=Ep(function(){var a=wp(".","s");return!(a.dotAll&&a.test(` `)&&a.flags==="s")}),Ap=k,Pp=D,Rp=Pp.RegExp,Np=Ap(function(){var a=Rp("(?b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$c")!=="bc"}),et=Y,Pr=L,Ip=pe,Mp=Vu,_p=Du,Vp=Si,Dp=Gi,kp=Sr.get,Lp=Cp,Bp=Np,jp=Vp("native-string-replace",String.prototype.replace),dr=RegExp.prototype.exec,ii=dr,Fp=Pr("".charAt),Up=Pr("".indexOf),Gp=Pr("".replace),Ta=Pr("".slice),ni=function(){var a=/a/,e=/b*/g;return et(dr,a,"a"),et(dr,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),ju=_p.BROKEN_CARET,si=/()??/.exec("")[1]!==void 0,zp=ni||si||ju||Lp||Bp;zp&&(ii=function(e){var t=this,r=kp(t),i=Ip(e),n=r.raw,o,s,u,l,h,f,c;if(n)return n.lastIndex=t.lastIndex,o=et(ii,n,i),t.lastIndex=n.lastIndex,o;var v=r.groups,d=ju&&t.sticky,g=et(Mp,t),p=t.source,y=0,x=i;if(d&&(g=Gp(g,"y",""),Up(g,"g")===-1&&(g+="g"),x=Ta(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&Fp(i,t.lastIndex-1)!==` `)&&(p="(?: "+p+")",x=" "+x,y++),s=new RegExp("^(?:"+p+")",g)),si&&(s=new RegExp("^"+p+"$(?!\\s)",g)),ni&&(u=t.lastIndex),l=et(dr,d?s:t,x),d?l?(l.input=Ta(l.input,y),l[0]=Ta(l[0],y),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:ni&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),si&&l&&l.length>1&&et(jp,l[0],s,function(){for(h=1;h=n?a?"":void 0:(o=Es(r,i),o<55296||o>56319||i+1===n||(s=Es(r,i+1))<56320||s>57343?a?Zp(r,i):o:a?Jp(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},ey={codeAt:$s(!1),charAt:$s(!0)},ty=ey.charAt,Xi=function(a,e,t){return e+(t?ty(a,e).length:1)},ws=Y,ry=J,ay=B,iy=Be,ny=zi,sy=TypeError,Wi=function(a,e){var t=a.exec;if(ay(t)){var r=ws(t,a,e);return r!==null&&ry(r),r}if(iy(a)==="RegExp")return ws(ny,a,e);throw new sy("RegExp#exec called on incompatible receiver")},oy=Y,uy=Hi,ly=J,hy=je,vy=ut,Sa=pe,fy=he,cy=ot,gy=Xi,Cs=Wi;uy("match",function(a,e,t){return[function(i){var n=fy(this),o=hy(i)?void 0:cy(i,a);return o?oy(o,i,n):new RegExp(i)[a](Sa(n))},function(r){var i=ly(this),n=Sa(r),o=t(e,i,n);if(o.done)return o.value;if(!i.global)return Cs(i,n);var s=i.unicode;i.lastIndex=0;for(var u=[],l=0,h;(h=Cs(i,n))!==null;){var f=Sa(h[0]);u[l]=f,f===""&&(i.lastIndex=gy(n,vy(i.lastIndex),s)),l++}return l===0?null:u}]});var qi=L,dy=xr,py=Math.floor,Ea=qi("".charAt),yy=qi("".replace),$a=qi("".slice),my=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,by=/\$([$&'`]|\d{1,2})/g,xy=function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=by;return i!==void 0&&(i=dy(i),u=my),yy(n,u,function(l,h){var f;switch(Ea(h,0)){case"$":return"$";case"&":return a;case"`":return $a(e,0,t);case"'":return $a(e,o);case"<":f=i[$a(h,1,-1)];break;default:var c=+h;if(c===0)return l;if(c>s){var v=py(c/10);return v===0?l:v<=s?r[v-1]===void 0?Ea(h,1):r[v-1]+Ea(h,1):l}f=r[c-1]}return f===void 0?"":f})},Ty=lu,As=Y,Rr=L,Oy=Hi,Sy=k,Ey=J,$y=B,wy=je,Cy=Er,Ay=ut,We=pe,Py=he,Ry=Xi,Ny=ot,Iy=xy,My=Wi,_y=z,oi=_y("replace"),Vy=Math.max,Dy=Math.min,ky=Rr([].concat),wa=Rr([].push),Ps=Rr("".indexOf),Rs=Rr("".slice),Ly=function(a){return a===void 0?a:String(a)},By=function(){return"a".replace(/./,"$0")==="$0"}(),Ns=function(){return/./[oi]?/./[oi]("a","$0")==="":!1}(),jy=!Sy(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$")!=="7"});Oy("replace",function(a,e,t){var r=Ns?"$":"$0";return[function(n,o){var s=Py(this),u=wy(n)?void 0:Ny(n,oi);return u?As(u,n,s,o):As(e,We(s),n,o)},function(i,n){var o=Ey(this),s=We(i);if(typeof n=="string"&&Ps(n,r)===-1&&Ps(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=$y(n);l||(n=We(n));var h=o.global,f;h&&(f=o.unicode,o.lastIndex=0);for(var c=[],v;v=My(o,s),!(v===null||(wa(c,v),!h));){var d=We(v[0]);d===""&&(o.lastIndex=Ry(s,Ay(o.lastIndex),f))}for(var g="",p=0,y=0;y=p&&(g+=Rs(s,p,b)+$,p=b+x.length)}return g+Rs(s,p)}]},!jy||!By||Ns);var Fy=ve,Uy=Be,Gy=z,zy=Gy("match"),Hy=function(a){var e;return Fy(a)&&((e=a[zy])!==void 0?!!e:Uy(a)==="RegExp")},Yy=Hy,Xy=TypeError,Qi=function(a){if(Yy(a))throw new Xy("The method doesn't accept regular expressions");return a},Wy=z,qy=Wy("match"),Ki=function(a){var e=/./;try{"/./"[a](e)}catch{try{return e[qy]=!1,"/./"[a](e)}catch{}}return!1},Qy=ee,Ky=wr,Zy=Et.f,Jy=ut,Is=pe,em=Qi,tm=he,rm=Ki,am=Ky("".slice),im=Math.min,Uu=rm("startsWith"),nm=!Uu&&!!function(){var a=Zy(String.prototype,"startsWith");return a&&!a.writable}();Qy({target:"String",proto:!0,forced:!nm&&!Uu},{startsWith:function(e){var t=Is(tm(this));em(e);var r=Jy(im(arguments.length>1?arguments[1]:void 0,t.length)),i=Is(e);return am(t,r,r+i.length)===i}});var sm=z,om=Gi,um=Oe.f,ui=sm("unscopables"),li=Array.prototype;li[ui]===void 0&&um(li,ui,{configurable:!0,value:om(null)});var lm=function(a){li[ui][a]=!0},hm=k,vm=!hm(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),fm=fe,cm=B,gm=xr,dm=wi,pm=vm,Ms=dm("IE_PROTO"),hi=Object,ym=hi.prototype,Gu=pm?hi.getPrototypeOf:function(a){var e=gm(a);if(fm(e,Ms))return e[Ms];var t=e.constructor;return cm(t)&&e instanceof t?t.prototype:e instanceof hi?ym:null},mm=k,bm=B,xm=ve,_s=Gu,Tm=Ue,Om=z,vi=Om("iterator"),zu=!1,ke,Ca,Aa;[].keys&&(Aa=[].keys(),"next"in Aa?(Ca=_s(_s(Aa)),Ca!==Object.prototype&&(ke=Ca)):zu=!0);var Sm=!xm(ke)||mm(function(){var a={};return ke[vi].call(a)!==a});Sm&&(ke={});bm(ke[vi])||Tm(ke,vi,function(){return this});var Hu={IteratorPrototype:ke,BUGGY_SAFARI_ITERATORS:zu},Em=Hu.IteratorPrototype,$m=Gi,wm=bi,Cm=$r,Am=Rt,Pm=function(){return this},Rm=function(a,e,t,r){var i=e+" Iterator";return a.prototype=$m(Em,{next:wm(+!r,t)}),Cm(a,i,!1),Am[i]=Pm,a},Nm=ee,Im=Y,Yu=Or,Mm=B,_m=Rm,Vs=Gu,Ds=tu,Vm=$r,Dm=wt,Pa=Ue,km=z,Lm=Rt,Xu=Hu,Bm=Yu.PROPER,jm=Yu.CONFIGURABLE,ks=Xu.IteratorPrototype,Zt=Xu.BUGGY_SAFARI_ITERATORS,ct=km("iterator"),Ls="keys",gt="values",Bs="entries",Fm=function(){return this},Um=function(a,e,t,r,i,n,o){_m(t,e,r);var s=function(y){if(y===i&&c)return c;if(!Zt&&y&&y in h)return h[y];switch(y){case Ls:return function(){return new t(this,y)};case gt:return function(){return new t(this,y)};case Bs:return function(){return new t(this,y)}}return function(){return new t(this)}},u=e+" Iterator",l=!1,h=a.prototype,f=h[ct]||h["@@iterator"]||i&&h[i],c=!Zt&&f||s(i),v=e==="Array"&&h.entries||f,d,g,p;if(v&&(d=Vs(v.call(new a)),d!==Object.prototype&&d.next&&(Vs(d)!==ks&&(Ds?Ds(d,ks):Mm(d[ct])||Pa(d,ct,Fm)),Vm(d,u,!0))),Bm&&i===gt&&f&&f.name!==gt&&(jm?Dm(h,"name",gt):(l=!0,c=function(){return Im(f,this)})),i)if(g={values:s(gt),keys:n?c:s(Ls),entries:s(Bs)},o)for(p in g)(Zt||l||!(p in h))&&Pa(h,p,g[p]);else Nm({target:e,proto:!0,forced:Zt||l},g);return h[ct]!==c&&Pa(h,ct,c,{name:i}),Lm[e]=c,g},Gm=function(a,e){return{value:a,done:e}},zm=$t,Zi=lm,js=Rt,Wu=Sr,Hm=Oe.f,Ym=Um,Jt=Gm,Xm=le,qu="Array Iterator",Wm=Wu.set,qm=Wu.getterFor(qu),Qm=Ym(Array,"Array",function(a,e){Wm(this,{type:qu,target:zm(a),index:0,kind:e})},function(){var a=qm(this),e=a.target,t=a.index++;if(!e||t>=e.length)return a.target=void 0,Jt(void 0,!0);switch(a.kind){case"keys":return Jt(t,!1);case"values":return Jt(e[t],!1)}return Jt([t,e[t]],!1)},"values"),Fs=js.Arguments=js.Array;Zi("keys");Zi("values");Zi("entries");if(Xm&&Fs.name!=="values")try{Hm(Fs,"name",{value:"values"})}catch{}var Km={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Zm=Tr,Ra=Zm("span").classList,Us=Ra&&Ra.constructor&&Ra.constructor.prototype,Jm=Us===Object.prototype?void 0:Us,Gs=D,Qu=Km,e0=Jm,pt=Qm,zs=wt,t0=$r,r0=z,Na=r0("iterator"),Ia=pt.values,Ku=function(a,e){if(a){if(a[Na]!==Ia)try{zs(a,Na,Ia)}catch{a[Na]=Ia}if(t0(a,e,!0),Qu[e]){for(var t in pt)if(a[t]!==pt[t])try{zs(a,t,pt[t])}catch{a[t]=pt[t]}}}};for(var Ma in Qu)Ku(Gs[Ma]&&Gs[Ma].prototype,Ma);Ku(e0,"DOMTokenList");var a0=Te,i0=xr,n0=Vo,s0=Pi,Hs=TypeError,Ys="Reduce of empty array with no initial value",Xs=function(a){return function(e,t,r,i){var n=i0(e),o=n0(n),s=s0(n);if(a0(t),s===0&&r<2)throw new Hs(Ys);var u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw new Hs(Ys)}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},o0={left:Xs(!1),right:Xs(!0)},u0=k,Zu=function(a,e){var t=[][a];return!!t&&u0(function(){t.call(null,e||function(){return 1},1)})},l0=ee,h0=o0.left,v0=Zu,Ws=xi,f0=At,c0=!f0&&Ws>79&&Ws<83,g0=c0||!v0("reduce");l0({target:"Array",proto:!0,forced:g0},{reduce:function(e){var t=arguments.length;return h0(this,e,t,t>1?arguments[1]:void 0)}});var d0=ee,p0=wr,y0=Et.f,m0=ut,qs=pe,b0=Qi,x0=he,T0=Ki,O0=p0("".slice),S0=Math.min,Ju=T0("endsWith"),E0=!Ju&&!!function(){var a=y0(String.prototype,"endsWith");return a&&!a.writable}();d0({target:"String",proto:!0,forced:!E0&&!Ju},{endsWith:function(e){var t=qs(x0(this));b0(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,n=r===void 0?i:S0(m0(r),i),o=qs(e);return O0(t,n-o.length,n)===o}});var _a=Y,el=L,$0=Hi,w0=J,C0=je,A0=he,P0=ou,R0=Xi,N0=ut,Qs=pe,I0=ot,Ks=Wi,M0=Du,_0=k,qe=M0.UNSUPPORTED_Y,V0=4294967295,D0=Math.min,Va=el([].push),Da=el("".slice),k0=!_0(function(){var a=/(?:)/,e=a.exec;a.exec=function(){return e.apply(this,arguments)};var t="ab".split(a);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),Zs="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;$0("split",function(a,e,t){var r="0".split(void 0,0).length?function(i,n){return i===void 0&&n===0?[]:_a(e,this,i,n)}:e;return[function(n,o){var s=A0(this),u=C0(n)?void 0:I0(n,a);return u?_a(u,n,s,o):_a(r,Qs(s),n,o)},function(i,n){var o=w0(this),s=Qs(i);if(!Zs){var u=t(r,o,s,n,r!==e);if(u.done)return u.value}var l=P0(o,RegExp),h=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(qe?"g":"y"),c=new l(qe?"^(?:"+o.source+")":o,f),v=n===void 0?V0:n>>>0;if(v===0)return[];if(s.length===0)return Ks(c,s)===null?[s]:[];for(var d=0,g=0,p=[];g"u"?Ke:window,er=["moz","webkit"],rt="AnimationFrame",st=be["request"+rt],St=be["cancel"+rt]||be["cancelRequest"+rt];for(var dt=0;!st&&dt3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l "+g.toRGB()+" -> "+g.toHex());d.appendChild(p),d.appendChild(y),v.appendChild(d)}catch{}return v}};const ci=Ao(eb);var tb=ee,rb=wr,ab=Ko.indexOf,ib=Zu,gi=rb([].indexOf),rl=!!gi&&1/gi([1],1,-0)<0,nb=rl||!ib("indexOf");tb({target:"Array",proto:!0,forced:nb},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return rl?gi(this,e,t)||0:ab(this,e,t)}});var sb=ee,ob=L,ub=Qi,lb=he,ao=pe,hb=Ki,vb=ob("".indexOf);sb({target:"String",proto:!0,forced:!hb("includes")},{includes:function(e){return!!~vb(ao(lb(this)),ao(ub(e)),arguments.length>1?arguments[1]:void 0)}});var fb=Be,cb=Array.isArray||function(e){return fb(e)==="Array"},gb=ee,db=L,pb=cb,yb=db([].reverse),io=[1,2];gb({target:"Array",proto:!0,forced:String(io)===String(io.reverse())},{reverse:function(){return pb(this)&&(this.length=this.length),yb(this)}});/*! ***************************************************************************** diff --git a/openlayers-base-packages/assets/CRBFr44dy3kq.js b/openlayers-base-packages/assets/YjvqPrFp1_lH.js similarity index 91% rename from openlayers-base-packages/assets/CRBFr44dy3kq.js rename to openlayers-base-packages/assets/YjvqPrFp1_lH.js index 681502478..4dea42132 100644 --- a/openlayers-base-packages/assets/CRBFr44dy3kq.js +++ b/openlayers-base-packages/assets/YjvqPrFp1_lH.js @@ -1 +1 @@ -import{j as o,g as I,a as O,r as v,B as f,S as w,b as t,V as W,f as F}from"./BeGW3nmX4tO2.js";import{S as U,T as G,O as T,M as B,H as N,c as i,aB as k,ax as l,F as y,i as Q,an as h,am as m,k as A,g as E,h as V,l as K,m as z}from"./q4MLRk0u7kxl.js";import{L as j}from"./D3gFeNVkNTAB.js";import{T as u,U as q,a}from"./DM7y0OoBz9e5.js";import{C as Y}from"./ElmKiM7bxWM_.js";import{H as d}from"./D1wuBnUV5g92.js";import"./BMuX_dt1qyjL.js";const M=r=>o.jsx(I.div,{className:"chakra-stack__divider",...r,__css:{...r.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});M.displayName="StackDivider";const b="main";class J{mapId=b;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new U({title:"OSM",isBaseLayer:!0,olLayer:new G({source:new T})})]}}}const X={"highlight-and-zoom-app":{name:"highlight-and-zoom-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:J,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:B,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:N,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},_=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}',$=[];function oo(r){throw new Error(`Unsupported locale: '${r}'`)}const eo=O(_),ro=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:oo,locales:$,packages:X,styles:eo},Symbol.toStringTag,{value:"Module"})),C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAM6SURBVGhD7Zn7TtRAFMZn2l2MRuWuBg2aGEX/MMLCC5iUx/UJ6CNw0WiiRBFBJaLAilyMbNvxO8tpgkDbM9MxarK/ZNPvdJfpt6dnznQW1aOHDM1Hb1x9PrvYSEx/YNQlijOtDpOG3v3+eK7V/YAnvBgfWozeKKPGYbCPT51LMzE/8UXW2634Pp9yppbxgaXZl4ExE0moG3xKRCM1nSzQy98m5x7xKWucjQ8vRO87DX2bQydwB9a2p+M7HFrhZHxkPto8auprHNair2O+bs3E1mMFfBSDTH/wZZrAWKMYc41DMVbGBxejZZTHLQ69gTHHB5eiVxyKsDKOCXWPpXeM1hMsRYiN02Q02n/fz0Gb1HQNDisRG88CZVUiYWYyenEoAubF1xBlkFZDHKaOo3KaHbOxPRPf5LDL8Hz0qdPUYxyWghVW5EmUcZgZZVkKlvp3p00TdI56NoelDC1EqyxLERlHCgZYFoLVMNmZju9yeAZaaMLUpBwWgmecIZaliIwblCzLQoJMHbIsJMzUD5aFSK5FiCengA4fyzjiYxn+ahwjVZpCq7zMshB0jcrP4FoJy1KkGa+8xVj9LrAspOqxl0CpHLAsRWQczxMbLEtBRygsBTyzS8pEoW1+ZlmKqJ4I9HIkQwae+DbTULUhdZiqAXzx68fvVOO1jxO0e2FZCRlNA/0Arwkb01gvKksyR2wck+8jyz9GFqp1lpWIS4WwKRcXpGVCiDNOoHb3WHoHY++wFGFlHPW6wtI72L4NsxRhZRy3cgqZ2efQGxhzi6UYqxrP8V3rNrWdY5XxHGToC8vaoM2KO8lJnDJO9D+bzepu5fCYm7RbcZNDK5wyTgSZecvSmTTUL1haUytj2JId4tniIodWUPuz7SQnqWWccJmo2iizOznnfLeJWn9M0D6TpRhtjNWPP+dRO+PEyHy0h8WpcpNAoEQ2USI3OHTGi3FCUjLdDbVjFzlN7VLJCTPzmmUhT1ux00Q+D2/G21PxQyoDDs+AubDyRLiflOCtVHLQIg/QIrv//8nBF3L6DbwM78aJwaUowe6n+/sITO/D9JXuG/8DNFmxeRZv9/4ZNsbGfiuXHj3+Ckr9AhPaF/aBpAV7AAAAAElFTkSuQmCC";function io(){const{map:r}=Q(b),n=v.useRef(new Map),[S,R]=v.useState(!1),H=[new h([852011.307424,6788511322702e-6]),new h([829800.379064,6809086916672e-6])],P=[new j([[851890.680238,6788133616293e-6],[851298.293269,6790235634571e-6],[853419.420804,6790407617885e-6]]),new j([[848107.047338,6790579601198e-6],[849081.619449,6793197569417e-6]])],L=[new m([[[851728.251553,6788384425292e-6],[851518.049725,6788651954891e-6],[852182.096409,6788881265976e-6],[851728.251553,6788384425292e-6]]]),new m([[[845183.331006,6794496998898e-6],[850132.628588,6794764528497e-6],[850629.469272,6791707047365e-6],[844399.851466,6791229315939e-6],[845183.331006,6794496998898e-6]]])],D=[new h([852011.307424,6788511322702e-6]),new m([[[845183.331006,6794496998898e-6],[850132.628588,6794764528497e-6],[850629.469272,6791707047365e-6],[844399.851466,6791229315939e-6],[845183.331006,6794496998898e-6]]])];function c(e,x,g){if(e&&!n.current.has(g))if(S){const s=e.highlightAndZoom(x,{highlightStyle:to});s&&n.current.set(g,s)}else{const s=e.highlightAndZoom(x,{});s&&n.current.set(g,s)}}function p(e){n.current.has(e)&&(n.current.get(e)?.destroy(),n.current.delete(e))}function Z(e){e&&(e.removeHighlights(),n.current=new Map)}return o.jsx(A,{height:"100%",direction:"column",overflow:"hidden",children:o.jsx(E,{title:o.jsx(f,{textAlign:"center",py:1,children:o.jsx(V,{size:"md",children:"OpenLayers Base Packages - Highlight and Zoom"})}),children:o.jsx(A,{flex:"1",direction:"column",position:"relative",children:o.jsxs(K,{mapId:b,children:[o.jsx(z,{position:"top-left",horizontalGap:10,verticalGap:10,children:o.jsxs(f,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:[o.jsx(u,{align:"center",children:"Test Controls:"}),o.jsx(w,{align:"center",divider:o.jsx(M,{borderColor:"gray.200"}),pt:5,children:o.jsx(Y,{onChange:e=>{R(e.target.checked)},children:"Own Style"})}),o.jsxs(w,{pt:5,children:[o.jsxs(d,{align:"center",children:[o.jsx(t,{width:105,onClick:()=>c(r,H,"point"),children:"Points"}),o.jsx(t,{onClick:()=>p("point"),children:"Remove"})]}),o.jsxs(d,{children:[o.jsx(t,{width:105,onClick:()=>c(r,P,"line"),children:"LineString"}),o.jsx(t,{onClick:()=>p("line"),children:"Remove"})]}),o.jsxs(d,{children:[o.jsx(t,{width:105,onClick:()=>c(r,L,"polygon"),children:"Polygons"}),o.jsx(t,{onClick:()=>p("polygon"),children:"Remove"})]}),o.jsxs(d,{children:[o.jsx(t,{width:105,onClick:()=>c(r,D,"mix"),children:"Mixed"}),o.jsx(t,{onClick:()=>p("mix"),children:"Remove"})]}),o.jsx(t,{onClick:()=>Z(r),children:"Reset All"})]})]})}),o.jsx(z,{position:"top-right",horizontalGap:10,verticalGap:10,children:o.jsxs(W,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[o.jsx(u,{as:"b",children:"Description"}),o.jsx(u,{children:"This application can be used to test adding highlight or marker, zoom to their extent, and removing highlight and marker. The highlight and zoom for point, line string and polygon geometries in two different styles can be tested."}),o.jsxs(q,{children:[o.jsxs(a,{children:["Clicking on ","'Points'"," adds markers for point geometries."]}),o.jsxs(a,{children:["Clicking on ","'LineString'"," adds highlight for linestring geometries."]}),o.jsxs(a,{children:["Clicking on ","'Polygon'"," adds highlight for polygon geometries."]}),o.jsxs(a,{children:["Clicking on ","'Mixed'"," adds highlight for geometries of different types."]}),o.jsxs(a,{children:["Clicking on ","'Remove'"," will remove the marker or highlight added by the button on the left."]}),o.jsxs(a,{children:["Clicking on ","'Reset All'"," removes all highlights and markers from the map."]}),o.jsxs(a,{children:["Clicking on ","'Own Style'"," activates highlighting with customstyle."]})]})]})})]})})})})}const to={Point:new i({image:new k({anchor:[.5,1],src:C})}),MultiPoint:new i({image:new k({anchor:[.5,1],src:C})}),LineString:[new i({stroke:new l({color:"#ff0000",width:5})}),new i({stroke:new l({color:"#ff0000",width:3})})],MultiLineString:[new i({stroke:new l({color:"#ff0000",width:5})}),new i({stroke:new l({color:"#ff0000",width:3})})],Polygon:[new i({stroke:new l({color:"#ff0000",width:5})}),new i({stroke:new l({color:"#ff0000",width:3}),fill:new y({color:"rgba(51, 171, 71,0.35)"})})],MultiPolygon:[new i({stroke:new l({color:"#ff0000",width:5})}),new i({stroke:new l({color:"#ff0000",width:3}),fill:new y({color:"rgba(51, 171, 71,0.35)"})})]},lo=F({component:io,appMetadata:ro});customElements.define("highlight-and-zoom-app",lo); +import{j as o,g as I,a as O,r as v,B as f,S as w,b as t,V as W,f as F}from"./BeGW3nmX4tO2.js";import{S as U,T as G,O as T,M as B,H as N,c as i,aB as k,ax as l,F as y,i as Q,an as h,am as m,k as A,g as E,h as V,l as K,m as z}from"./BjXju3dgjVrG.js";import{L as j}from"./D6bui9ILupw_.js";import{T as u,U as q,a}from"./DM7y0OoBz9e5.js";import{C as Y}from"./ElmKiM7bxWM_.js";import{H as d}from"./D1wuBnUV5g92.js";import"./BMuX_dt1qyjL.js";const M=r=>o.jsx(I.div,{className:"chakra-stack__divider",...r,__css:{...r.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});M.displayName="StackDivider";const b="main";class J{mapId=b;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new U({title:"OSM",isBaseLayer:!0,olLayer:new G({source:new T})})]}}}const X={"highlight-and-zoom-app":{name:"highlight-and-zoom-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:J,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:B,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:N,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},_=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}',$=[];function oo(r){throw new Error(`Unsupported locale: '${r}'`)}const eo=O(_),ro=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:oo,locales:$,packages:X,styles:eo},Symbol.toStringTag,{value:"Module"})),C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAM6SURBVGhD7Zn7TtRAFMZn2l2MRuWuBg2aGEX/MMLCC5iUx/UJ6CNw0WiiRBFBJaLAilyMbNvxO8tpgkDbM9MxarK/ZNPvdJfpt6dnznQW1aOHDM1Hb1x9PrvYSEx/YNQlijOtDpOG3v3+eK7V/YAnvBgfWozeKKPGYbCPT51LMzE/8UXW2634Pp9yppbxgaXZl4ExE0moG3xKRCM1nSzQy98m5x7xKWucjQ8vRO87DX2bQydwB9a2p+M7HFrhZHxkPto8auprHNair2O+bs3E1mMFfBSDTH/wZZrAWKMYc41DMVbGBxejZZTHLQ69gTHHB5eiVxyKsDKOCXWPpXeM1hMsRYiN02Q02n/fz0Gb1HQNDisRG88CZVUiYWYyenEoAubF1xBlkFZDHKaOo3KaHbOxPRPf5LDL8Hz0qdPUYxyWghVW5EmUcZgZZVkKlvp3p00TdI56NoelDC1EqyxLERlHCgZYFoLVMNmZju9yeAZaaMLUpBwWgmecIZaliIwblCzLQoJMHbIsJMzUD5aFSK5FiCengA4fyzjiYxn+ahwjVZpCq7zMshB0jcrP4FoJy1KkGa+8xVj9LrAspOqxl0CpHLAsRWQczxMbLEtBRygsBTyzS8pEoW1+ZlmKqJ4I9HIkQwae+DbTULUhdZiqAXzx68fvVOO1jxO0e2FZCRlNA/0Arwkb01gvKksyR2wck+8jyz9GFqp1lpWIS4WwKRcXpGVCiDNOoHb3WHoHY++wFGFlHPW6wtI72L4NsxRhZRy3cgqZ2efQGxhzi6UYqxrP8V3rNrWdY5XxHGToC8vaoM2KO8lJnDJO9D+bzepu5fCYm7RbcZNDK5wyTgSZecvSmTTUL1haUytj2JId4tniIodWUPuz7SQnqWWccJmo2iizOznnfLeJWn9M0D6TpRhtjNWPP+dRO+PEyHy0h8WpcpNAoEQ2USI3OHTGi3FCUjLdDbVjFzlN7VLJCTPzmmUhT1ux00Q+D2/G21PxQyoDDs+AubDyRLiflOCtVHLQIg/QIrv//8nBF3L6DbwM78aJwaUowe6n+/sITO/D9JXuG/8DNFmxeRZv9/4ZNsbGfiuXHj3+Ckr9AhPaF/aBpAV7AAAAAElFTkSuQmCC";function io(){const{map:r}=Q(b),n=v.useRef(new Map),[S,R]=v.useState(!1),H=[new h([852011.307424,6788511322702e-6]),new h([829800.379064,6809086916672e-6])],P=[new j([[851890.680238,6788133616293e-6],[851298.293269,6790235634571e-6],[853419.420804,6790407617885e-6]]),new j([[848107.047338,6790579601198e-6],[849081.619449,6793197569417e-6]])],L=[new m([[[851728.251553,6788384425292e-6],[851518.049725,6788651954891e-6],[852182.096409,6788881265976e-6],[851728.251553,6788384425292e-6]]]),new m([[[845183.331006,6794496998898e-6],[850132.628588,6794764528497e-6],[850629.469272,6791707047365e-6],[844399.851466,6791229315939e-6],[845183.331006,6794496998898e-6]]])],D=[new h([852011.307424,6788511322702e-6]),new m([[[845183.331006,6794496998898e-6],[850132.628588,6794764528497e-6],[850629.469272,6791707047365e-6],[844399.851466,6791229315939e-6],[845183.331006,6794496998898e-6]]])];function c(e,x,g){if(e&&!n.current.has(g))if(S){const s=e.highlightAndZoom(x,{highlightStyle:to});s&&n.current.set(g,s)}else{const s=e.highlightAndZoom(x,{});s&&n.current.set(g,s)}}function p(e){n.current.has(e)&&(n.current.get(e)?.destroy(),n.current.delete(e))}function Z(e){e&&(e.removeHighlights(),n.current=new Map)}return o.jsx(A,{height:"100%",direction:"column",overflow:"hidden",children:o.jsx(E,{title:o.jsx(f,{textAlign:"center",py:1,children:o.jsx(V,{size:"md",children:"OpenLayers Base Packages - Highlight and Zoom"})}),children:o.jsx(A,{flex:"1",direction:"column",position:"relative",children:o.jsxs(K,{mapId:b,children:[o.jsx(z,{position:"top-left",horizontalGap:10,verticalGap:10,children:o.jsxs(f,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:[o.jsx(u,{align:"center",children:"Test Controls:"}),o.jsx(w,{align:"center",divider:o.jsx(M,{borderColor:"gray.200"}),pt:5,children:o.jsx(Y,{onChange:e=>{R(e.target.checked)},children:"Own Style"})}),o.jsxs(w,{pt:5,children:[o.jsxs(d,{align:"center",children:[o.jsx(t,{width:105,onClick:()=>c(r,H,"point"),children:"Points"}),o.jsx(t,{onClick:()=>p("point"),children:"Remove"})]}),o.jsxs(d,{children:[o.jsx(t,{width:105,onClick:()=>c(r,P,"line"),children:"LineString"}),o.jsx(t,{onClick:()=>p("line"),children:"Remove"})]}),o.jsxs(d,{children:[o.jsx(t,{width:105,onClick:()=>c(r,L,"polygon"),children:"Polygons"}),o.jsx(t,{onClick:()=>p("polygon"),children:"Remove"})]}),o.jsxs(d,{children:[o.jsx(t,{width:105,onClick:()=>c(r,D,"mix"),children:"Mixed"}),o.jsx(t,{onClick:()=>p("mix"),children:"Remove"})]}),o.jsx(t,{onClick:()=>Z(r),children:"Reset All"})]})]})}),o.jsx(z,{position:"top-right",horizontalGap:10,verticalGap:10,children:o.jsxs(W,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[o.jsx(u,{as:"b",children:"Description"}),o.jsx(u,{children:"This application can be used to test adding highlight or marker, zoom to their extent, and removing highlight and marker. The highlight and zoom for point, line string and polygon geometries in two different styles can be tested."}),o.jsxs(q,{children:[o.jsxs(a,{children:["Clicking on ","'Points'"," adds markers for point geometries."]}),o.jsxs(a,{children:["Clicking on ","'LineString'"," adds highlight for linestring geometries."]}),o.jsxs(a,{children:["Clicking on ","'Polygon'"," adds highlight for polygon geometries."]}),o.jsxs(a,{children:["Clicking on ","'Mixed'"," adds highlight for geometries of different types."]}),o.jsxs(a,{children:["Clicking on ","'Remove'"," will remove the marker or highlight added by the button on the left."]}),o.jsxs(a,{children:["Clicking on ","'Reset All'"," removes all highlights and markers from the map."]}),o.jsxs(a,{children:["Clicking on ","'Own Style'"," activates highlighting with customstyle."]})]})]})})]})})})})}const to={Point:new i({image:new k({anchor:[.5,1],src:C})}),MultiPoint:new i({image:new k({anchor:[.5,1],src:C})}),LineString:[new i({stroke:new l({color:"#ff0000",width:5})}),new i({stroke:new l({color:"#ff0000",width:3})})],MultiLineString:[new i({stroke:new l({color:"#ff0000",width:5})}),new i({stroke:new l({color:"#ff0000",width:3})})],Polygon:[new i({stroke:new l({color:"#ff0000",width:5})}),new i({stroke:new l({color:"#ff0000",width:3}),fill:new y({color:"rgba(51, 171, 71,0.35)"})})],MultiPolygon:[new i({stroke:new l({color:"#ff0000",width:5})}),new i({stroke:new l({color:"#ff0000",width:3}),fill:new y({color:"rgba(51, 171, 71,0.35)"})})]},lo=F({component:io,appMetadata:ro});customElements.define("highlight-and-zoom-app",lo); diff --git a/openlayers-base-packages/assets/MbvMD2_GQkZz.js b/openlayers-base-packages/assets/cpB6yKqgEuCD.js similarity index 84% rename from openlayers-base-packages/assets/MbvMD2_GQkZz.js rename to openlayers-base-packages/assets/cpB6yKqgEuCD.js index 95f36119e..f8ee68aec 100644 --- a/openlayers-base-packages/assets/MbvMD2_GQkZz.js +++ b/openlayers-base-packages/assets/cpB6yKqgEuCD.js @@ -1 +1 @@ -import{a as v,j as e,B as m,S as f,V as w,r as y,b as d,f as k}from"./BeGW3nmX4tO2.js";import{t as z}from"./BITOzfKCAZEE.js";import{bM as S,bN as j,S as h,T as x,O as M,M as I,H as L,u as T,k as b,g as _,h as B,l as C,m as g,i as u}from"./q4MLRk0u7kxl.js";import{_ as A}from"./CmsKOCeNyeyo.js";import{B as P}from"./BOXMyqr06QWb.js";import{T as p,U as E,a as c}from"./DM7y0OoBz9e5.js";import{F}from"./BMuX_dt1qyjL.js";import{F as R}from"./cMbQJw1ZoqBe.js";import"./39a3VBatk_eA.js";import"./Gw82v5PUNK8h.js";import"./N6gwA50uHdd6.js";class q extends S{constructor(a){const r=[-380316598427299e-8,880590808284866e-8],i=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],n=new Array(i.length);for(let t=0;tDatenquellen`})}}const s="main";class G{mapId=s;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new h({title:"OSM",isBaseLayer:!0,olLayer:new x({source:new M})})]}}}const O={"basemap-switcher-app":{name:"basemap-switcher-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:G,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:I,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:L,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}}},H=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}',D=["en"];function U(o){switch(o){case"en":return A(()=>import("./BFyPnFni35WZ.js"),[],import.meta.url).then(a=>a.default)}throw new Error(`Unsupported locale: '${o}'`)}const W=v(H),N=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:U,locales:D,packages:O,styles:W},Symbol.toStringTag,{value:"Module"})),V="basemap-switcher-app",$=T.bind(void 0,V);function K(){const o=$();return e.jsx(b,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(_,{title:e.jsx(m,{textAlign:"center",py:1,children:e.jsx(B,{size:"md",children:"OpenLayers Base Packages - Basemap Switcher"})}),children:e.jsx(b,{flex:"1",direction:"column",position:"relative",children:e.jsxs(C,{mapId:s,children:[e.jsx(g,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsxs(m,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:[e.jsxs(F,{children:[e.jsx(R,{ps:1,children:e.jsx(p,{as:"b",children:o.formatMessage({id:"basemapLabel"})})}),e.jsx(P,{allowSelectingEmptyBasemap:!0,mapId:s})]}),e.jsxs(f,{pt:5,children:[e.jsx(p,{align:"center",children:"Test Controls:"}),e.jsx(Y,{mapId:s}),e.jsx(J,{mapId:s}),e.jsx(Q,{mapId:s})]})]})}),e.jsx(g,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(w,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[e.jsx(p,{as:"b",children:"Description"}),e.jsx(p,{children:"This application can be used to test the basemap switcher. The basemap switcher synchronizes with the state of the shared map model. If the map model is changed (for example, by changing the current basemap), the basemap switcher must update itself accordingly."}),e.jsxs(E,{children:[e.jsx(c,{children:"Adding a new basemap updates the dropdown menu (new option)"}),e.jsx(c,{children:"Changing the current basemap to another basemap updates the selected option"}),e.jsxs(c,{children:["Setting the current basemap to ","'undefined'"," also updates the selection"]})]})]})})]})})})})}function Y(o){const{mapId:a}=o,{map:r}=u(a),i=y.useRef(1),n=()=>{if(!r)return;const l=i.current++,t=new h({title:`New Layer ${l}`,isBaseLayer:!0,olLayer:new x({source:new q({layer:"web_grau"})})});r.layers.addLayer(t),console.log("generated base layer with id",t.id)};return e.jsx(d,{onClick:n,children:"Add base layer"})}function J(o){const{mapId:a}=o,{map:r}=u(a),i=()=>{if(!r)return;const n=r.layers.getAllLayers();if(n.length===0){console.error("There is no base layer");return}const l=Math.floor(Math.random()*n.length),t=n[l];if(!t){console.error("Failed to find a layer");return}console.log("activating base layer",t.id),r.layers.activateBaseLayer(t.id)};return e.jsx(d,{onClick:i,children:"Activate random base layer"})}function Q(o){const{mapId:a}=o,{map:r}=u(a),i=()=>{r&&(console.log("setting active base layer to undefined"),r.layers.activateBaseLayer(void 0))};return e.jsx(d,{onClick:i,children:"Clear base layer"})}const X=k({component:K,theme:z,appMetadata:N});customElements.define("basemap-switcher-app",X); +import{a as v,j as e,B as m,S as f,V as w,r as y,b as d,f as k}from"./BeGW3nmX4tO2.js";import{t as z}from"./BITOzfKCAZEE.js";import{bM as S,bN as j,S as h,T as x,O as M,M as I,H as L,u as T,k as b,g as _,h as B,l as C,m as g,i as u}from"./BjXju3dgjVrG.js";import{_ as A}from"./CmsKOCeNyeyo.js";import{B as P}from"./B48t-8DI4YWS.js";import{T as p,U as E,a as c}from"./DM7y0OoBz9e5.js";import{F}from"./BMuX_dt1qyjL.js";import{F as R}from"./cMbQJw1ZoqBe.js";import"./39a3VBatk_eA.js";import"./Gw82v5PUNK8h.js";import"./N6gwA50uHdd6.js";class q extends S{constructor(a){const r=[-380316598427299e-8,880590808284866e-8],i=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],n=new Array(i.length);for(let t=0;tDatenquellen`})}}const s="main";class G{mapId=s;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new h({title:"OSM",isBaseLayer:!0,olLayer:new x({source:new M})})]}}}const O={"basemap-switcher-app":{name:"basemap-switcher-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:G,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:I,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:L,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},H=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}',D=["en"];function U(o){switch(o){case"en":return A(()=>import("./BFyPnFni35WZ.js"),[],import.meta.url).then(a=>a.default)}throw new Error(`Unsupported locale: '${o}'`)}const W=v(H),N=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:U,locales:D,packages:O,styles:W},Symbol.toStringTag,{value:"Module"})),V="basemap-switcher-app",$=T.bind(void 0,V);function K(){const o=$();return e.jsx(b,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(_,{title:e.jsx(m,{textAlign:"center",py:1,children:e.jsx(B,{size:"md",children:"OpenLayers Base Packages - Basemap Switcher"})}),children:e.jsx(b,{flex:"1",direction:"column",position:"relative",children:e.jsxs(C,{mapId:s,children:[e.jsx(g,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsxs(m,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:[e.jsxs(F,{children:[e.jsx(R,{ps:1,children:e.jsx(p,{as:"b",children:o.formatMessage({id:"basemapLabel"})})}),e.jsx(P,{allowSelectingEmptyBasemap:!0,mapId:s})]}),e.jsxs(f,{pt:5,children:[e.jsx(p,{align:"center",children:"Test Controls:"}),e.jsx(Y,{mapId:s}),e.jsx(J,{mapId:s}),e.jsx(Q,{mapId:s})]})]})}),e.jsx(g,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(w,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[e.jsx(p,{as:"b",children:"Description"}),e.jsx(p,{children:"This application can be used to test the basemap switcher. The basemap switcher synchronizes with the state of the shared map model. If the map model is changed (for example, by changing the current basemap), the basemap switcher must update itself accordingly."}),e.jsxs(E,{children:[e.jsx(c,{children:"Adding a new basemap updates the dropdown menu (new option)"}),e.jsx(c,{children:"Changing the current basemap to another basemap updates the selected option"}),e.jsxs(c,{children:["Setting the current basemap to ","'undefined'"," also updates the selection"]})]})]})})]})})})})}function Y(o){const{mapId:a}=o,{map:r}=u(a),i=y.useRef(1),n=()=>{if(!r)return;const l=i.current++,t=new h({title:`New Layer ${l}`,isBaseLayer:!0,olLayer:new x({source:new q({layer:"web_grau"})})});r.layers.addLayer(t),console.log("generated base layer with id",t.id)};return e.jsx(d,{onClick:n,children:"Add base layer"})}function J(o){const{mapId:a}=o,{map:r}=u(a),i=()=>{if(!r)return;const n=r.layers.getAllLayers();if(n.length===0){console.error("There is no base layer");return}const l=Math.floor(Math.random()*n.length),t=n[l];if(!t){console.error("Failed to find a layer");return}console.log("activating base layer",t.id),r.layers.activateBaseLayer(t.id)};return e.jsx(d,{onClick:i,children:"Activate random base layer"})}function Q(o){const{mapId:a}=o,{map:r}=u(a),i=()=>{r&&(console.log("setting active base layer to undefined"),r.layers.activateBaseLayer(void 0))};return e.jsx(d,{onClick:i,children:"Clear base layer"})}const X=k({component:K,theme:z,appMetadata:N});customElements.define("basemap-switcher-app",X); diff --git a/openlayers-base-packages/assets/C9QNvvxRey-t.js b/openlayers-base-packages/assets/n9zWNdlWzx_n.js similarity index 99% rename from openlayers-base-packages/assets/C9QNvvxRey-t.js rename to openlayers-base-packages/assets/n9zWNdlWzx_n.js index a50609dca..a96d9ed94 100644 --- a/openlayers-base-packages/assets/C9QNvvxRey-t.js +++ b/openlayers-base-packages/assets/n9zWNdlWzx_n.js @@ -1,4 +1,4 @@ -import{a as Ki,j as Y,B as yn,V as Ji,f as Yi}from"./BeGW3nmX4tO2.js";import{t as Qi}from"./BITOzfKCAZEE.js";import{n as ti,o as eo,p as ye,q as to,s as V,t as ro,v as no,x as je,y as ri,z as lt,A as io,B as Re,E as oo,G as ao,I as so,J as lo,K as uo,L as ni,N as ii,P as er,Q as co,R as po,U as gn,W as fo,X as ho,Y as tr,Z as mo,_ as xn,$ as bn,a0 as yo,a1 as go,a2 as xo,a3 as bo,a4 as vo,a5 as Tt,a6 as wo,a7 as oi,a8 as jr,a9 as Tr,aa as ai,ab as To,ac as ko,ad as zo,ae as So,af as Xe,ag as Fo,ah as Eo,ai as Co,aj as Io,ak as kr,al as _o,am as Po,an as Ro,a as zr,ao as Mo,ap as Mt,aq as Ao,ar as si,as as Do,at as jo,au as Lo,av as $o,aw as Oo,ax as st,F as Ge,ay as qo,b as rr,az as Go,aA as Vo,c as Ee,aB as vn,C as li,aC as No,aD as wn,S as it,T as Uo,O as Bo,H as Zo,M as Ho,u as Xo,k as nr,g as Tn,h as kn,l as Wo,m as ir}from"./q4MLRk0u7kxl.js";import{F as Ko,t as Jo,G as zn,e as Yo}from"./Bh6kFNuDWsIw.js";import{L as Qo}from"./D3gFeNVkNTAB.js";import{M as ea,a as ta,b as ra}from"./UlulYB4e5zqK.js";import{V as na,S as ia,I as oa,Z as aa,a as sa}from"./DTvtLMAVxi8t.js";import{_ as Sn}from"./CmsKOCeNyeyo.js";import{T as or}from"./DM7y0OoBz9e5.js";import"./BOXMyqr06QWb.js";import"./39a3VBatk_eA.js";import"./BMuX_dt1qyjL.js";import"./Gw82v5PUNK8h.js";import"./N6gwA50uHdd6.js";import"./uLM-EaCyc6aA.js";import"./ElmKiM7bxWM_.js";import"./B3on_k3411E6.js";const Fn=[];class la extends ti{constructor(e,t,n,i,o){super(e,t,{transition:0}),this.context_=null,this.executorGroups=[],this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=i.bind(void 0,this),this.removeSourceTiles_=o,this.wrappedTileCoord=n}getContext(){return this.context_||(this.context_=eo(1,1,Fn)),this.context_}hasContext(){return!!this.context_}getImage(){return this.hasContext()?this.getContext().canvas:null}getReplayState(e){const t=ye(e);return t in this.replayState_||(this.replayState_[t]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[t]}load(){this.getSourceTiles()}release(){this.context_&&(to(this.context_),Fn.push(this.context_.canvas),this.context_=null),this.removeSourceTiles_(this),this.sourceTiles.length=0,super.release()}}let ui=class extends ti{constructor(e,t,n,i,o,a){super(e,t,a),this.extent=null,this.format_=i,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=o,this.url_=n,this.key=n}getTileUrl(){return this.url_}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==V.IDLE&&(this.setState(V.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(e,t){this.setFeatures(e)}onError(){this.setState(V.ERROR)}setFeatures(e){this.features_=e,this.setState(V.LOADED)}setLoader(e){this.loader_=e}};const ua={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},En={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};class ca extends ro{constructor(e,t){super(e,t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.renderedOpacity_=1,this.tmpTransform_=no(),this.tileClipContexts_=null}drawTile(e,t,n,i,o,a,s,l){this.updateExecutorGroup_(e,t.pixelRatio,t.viewState.projection),this.tileImageNeedsRender_(e)&&this.renderTileImage_(e,t),super.drawTile(e,t,n,i,o,a,s,l)}getTile(e,t,n,i){const o=this.getOrCreateTile(e,t,n,i);if(!o)return null;const s=i.viewState.resolution,l=i.viewHints;return(!(l[je.ANIMATING]||l[je.INTERACTING])||!o.wantedResolution)&&(o.wantedResolution=s),o}prepareFrame(e){const t=this.getLayer().getRevision();return this.renderedLayerRevision_!==t&&(this.renderedLayerRevision_=t,this.renderedTiles.length=0),super.prepareFrame(e)}updateExecutorGroup_(e,t,n){const i=this.getLayer(),o=i.getRevision(),a=i.getRenderOrder()||null,s=e.wantedResolution,l=e.getReplayState(i);if(!l.dirty&&l.renderedResolution===s&&l.renderedRevision==o&&l.renderedRenderOrder==a)return;const u=i.getSource(),c=!!i.getDeclutter(),p=u.getTileGrid(),f=u.getTileGridForProjection(n).getTileCoordExtent(e.wrappedTileCoord),m=u.getSourceTiles(t,n,e),x=ye(i);delete e.hitDetectionImageData[x],e.executorGroups[x]=[],l.dirty=!1;for(let h=0,R=m.length;h{const I=L?t.declutter[L].all().map(A=>A.value):null;for(let A=0,j=k.length;A{const i=this.getLayer(),o=ye(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),u=this.renderedResolution,c=a.getTileGridForProjection(s),p=so(this.renderedPixelToCoordinateTransform_,e.slice()),d=c.getTileCoordForCoordAndResolution(p,u);let f;for(let C=0,S=this.renderedTiles.length;C0){t([]);return}const m=c.getTileCoordExtent(f.wrappedTileCoord),x=ni(m),h=[(p[0]-x[0])/u,(x[1]-p[1])/u],R=f.getSourceTiles().reduce(function(C,S){return C.concat(S.getFeatures())},[]);let E=f.hitDetectionImageData[o];if(!E){const C=ii(c.getTileSize(c.getZForResolution(u,a.zDirection))),S=this.renderedRotation_,F=[this.getRenderTransform(c.getTileCoordCenter(f.wrappedTileCoord),u,0,er,C[0]*er,C[1]*er,0)];E=co(C,F,R,i.getStyleFunction(),c.getTileCoordExtent(f.wrappedTileCoord),f.getReplayState(i).renderedResolution,S),f.hitDetectionImageData[o]=E}t(po(h,R,E))})}getFeaturesInExtent(e){const t=[],n=this.getTileCache();if(n.getCount()===0)return t;const o=this.getLayer().getSource().getTileGridForProjection(this.frameState.viewState.projection),a=o.getZForResolution(this.renderedResolution),s={};return n.forEach(l=>{if(l.tileCoord[0]!==a||l.getState()!==V.LOADED)return;const u=l.getSourceTiles();for(let c=0,p=u.length;c=0;--f)p[f].execute(this.context,[this.context.canvas.width,this.context.canvas.height],this.getTileRenderTransform(c,e),e.viewState.rotation,a,gn,d?e.declutter[d]:void 0)}n.globalAlpha=i}renderDeferredInternal(e){const n=this.renderedTiles.reduce((s,l,u)=>(l.executorGroups[ye(this.getLayer())].forEach(c=>s.push({executorGroup:c,index:u})),s),[]),i=n.map(({executorGroup:s})=>s.getDeferredZIndexContexts()),o={};for(let s=0,l=n.length;s{i.forEach((l,u)=>{l[s]&&(l[s].forEach(c=>{const{executorGroup:p,index:d}=n[u],f=p.getRenderedContext(),m=f.globalAlpha;f.globalAlpha=this.renderedOpacity_;const x=this.tileClipContexts_[d];x&&x.draw(f),c.draw(f),x&&f.restore(),f.globalAlpha=m,c.clear()}),l[s].length=0)})})}getTileRenderTransform(e,t){const n=t.pixelRatio,i=t.viewState,o=i.center,a=i.resolution,s=i.rotation,l=t.size,u=Math.round(l[0]*n),c=Math.round(l[1]*n),d=this.getLayer().getSource().getTileGridForProjection(t.viewState.projection),f=e.tileCoord,m=d.getTileCoordExtent(e.wrappedTileCoord),x=d.getTileCoordExtent(f,this.tempExtent)[0]-m[0];return ho(tr(this.inversePixelTransform.slice(),1/n,1/n),this.getRenderTransform(o,a,s,n,u,c,x))}postRender(e,t){const n=t.viewHints,i=!(n[je.ANIMATING]||n[je.INTERACTING]);this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation,this.renderedOpacity_=t.layerStatesArray[t.layerIndex].opacity;const o=this.getLayer(),a=o.getRenderMode(),s=e.globalAlpha;e.globalAlpha=this.renderedOpacity_;const l=o.getDeclutter(),u=l?En[a].filter(S=>!gn.includes(S)):En[a],c=t.viewState,p=c.rotation,d=o.getSource(),m=d.getTileGridForProjection(c.projection).getZForResolution(c.resolution,d.zDirection),x=this.renderedTiles,h=[],R=[],E=[];let C=!0;for(let S=x.length-1;S>=0;--S){const F=x[S];C=C&&!F.getReplayState(o).dirty;const L=F.executorGroups[ye(o)].filter(q=>q.hasExecutors(u));if(L.length===0)continue;const k=this.getTileRenderTransform(F,t),I=F.tileCoord[0];let A=!1;const j=L[0].getClipCoords(k);let G=e,v;if(j){v=new mo,G=v.getContext();for(let q=0,T=h.length;q{const f=this.tileUrlFunction(d,e,t);this.sourceTiles_[f]||(this.sourceTiles_[f]=new this.tileClass(d,f?V.IDLE:V.EMPTY,f,this.format_,this.tileLoadFunction));const m=this.sourceTiles_[f];n.sourceTiles.push(m),this.tileKeysBySourceTileUrl_[f]||(this.tileKeysBySourceTileUrl_[f]=[]),this.tileKeysBySourceTileUrl_[f].push(n.getKey());const x=m.getState();if(x{this.handleTileChange(R);const E=m.getState();if(E===V.LOADED||E===V.ERROR){const C=m.getKey();C in n.errorTileKeys?m.getState()===V.LOADED&&delete n.errorTileKeys[C]:n.loadingSourceTiles--,E===V.ERROR?n.errorTileKeys[C]=!0:m.removeEventListener(Tr.CHANGE,h),n.loadingSourceTiles===0&&n.setState(ko(n.errorTileKeys)?V.LOADED:V.ERROR)}};m.addEventListener(Tr.CHANGE,h),n.loadingSourceTiles++}x===V.IDLE&&(m.extent=u.getTileCoordExtent(d),m.projection=t,m.resolution=u.getResolution(d[0]),m.load())}),n.loadingSourceTiles||n.setState(n.sourceTiles.some(d=>d.getState()===V.ERROR)?V.ERROR:V.LOADED)}return n.sourceTiles}removeSourceTiles(e){const t=e.sourceTiles;for(let n=0,i=t.length;n{c=c&&!this.tileUrlFunction(h,i,o)})}const p=new la(a,c?V.EMPTY:V.IDLE,s,this.getSourceTiles.bind(this,i,o),this.removeSourceTiles.bind(this));return p.key=this.getKey(),p}getTileGridForProjection(e){const t=e.getCode();let n=this.tileGrids_[t];if(!n){const i=this.tileGrid,o=i.getResolutions().slice(),a=o.map(function(u,c){return i.getOrigin(c)}),s=o.map(function(u,c){return i.getTileSize(c)}),l=zo+1;for(let u=o.length;u=200&&t.status<300){let n;try{n=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(n)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Xe("EPSG:4326"),n=this.getProjection();let i;if(e.bounds!==void 0){const u=Fo(t,n);i=Eo(e.bounds,u)}const o=oi(n),a=e.minzoom||0,s=e.maxzoom||22,l=jr({extent:o,maxZoom:s,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=l,this.tileUrlFunction=Co(e.tiles,l),e.attribution&&!this.getAttributions()){const u=i!==void 0?i:o;this.setAttributions(function(c){return Re(u,c.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const Sr=65536*65536,Cn=1/Sr,fa=12,In=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),ar=0,kt=1,ot=2,zt=5;class ha{constructor(e=new Uint8Array(16)){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(e,t,n=this.length){for(;this.pos>3,a=this.pos;this.type=i&7,e(o,t,this),this.pos===a&&this.skip(i)}return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){const e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){const e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*Sr;return this.pos+=8,e}readSFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*Sr;return this.pos+=8,e}readFloat(){const e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){const e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){const t=this.buf;let n,i;return i=t[this.pos++],n=i&127,i<128||(i=t[this.pos++],n|=(i&127)<<7,i<128)||(i=t[this.pos++],n|=(i&127)<<14,i<128)||(i=t[this.pos++],n|=(i&127)<<21,i<128)?n:(i=t[this.pos],n|=(i&15)<<28,ma(n,e,this))}readVarint64(){return this.readVarint(!0)}readSVarint(){const e=this.readVarint();return e%2===1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){const e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=fa&&In?In.decode(this.buf.subarray(t,e)):Ca(this.buf,t,e)}readBytes(){const e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){const n=this.readPackedEnd();for(;this.pos127;);else if(t===ot)this.pos=this.readVarint()+this.pos;else if(t===zt)this.pos+=4;else if(t===kt)this.pos+=8;else throw new Error(`Unimplemented type: ${t}`)}writeTag(e,t){this.writeVarint(e<<3|t)}realloc(e){let t=this.length||16;for(;t268435455||e<0){ya(e,this);return}this.realloc(4),this.buf[this.pos++]=e&127|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=(e>>>=7)&127|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=(e>>>=7)&127|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=e>>>7&127)))}writeSVarint(e){this.writeVarint(e<0?-e*2-1:e*2)}writeBoolean(e){this.writeVarint(+e)}writeString(e){e=String(e),this.realloc(e.length*4),this.pos++;const t=this.pos;this.pos=Ia(this.buf,e,this.pos);const n=this.pos-t;n>=128&&_n(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n}writeFloat(e){this.realloc(4),this.dataView.setFloat32(this.pos,e,!0),this.pos+=4}writeDouble(e){this.realloc(8),this.dataView.setFloat64(this.pos,e,!0),this.pos+=8}writeBytes(e){const t=e.length;this.writeVarint(t),this.realloc(t);for(let n=0;n=128&&_n(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i}writeMessage(e,t,n){this.writeTag(e,ot),this.writeRawMessage(t,n)}writePackedVarint(e,t){t.length&&this.writeMessage(e,ba,t)}writePackedSVarint(e,t){t.length&&this.writeMessage(e,va,t)}writePackedBoolean(e,t){t.length&&this.writeMessage(e,ka,t)}writePackedFloat(e,t){t.length&&this.writeMessage(e,wa,t)}writePackedDouble(e,t){t.length&&this.writeMessage(e,Ta,t)}writePackedFixed32(e,t){t.length&&this.writeMessage(e,za,t)}writePackedSFixed32(e,t){t.length&&this.writeMessage(e,Sa,t)}writePackedFixed64(e,t){t.length&&this.writeMessage(e,Fa,t)}writePackedSFixed64(e,t){t.length&&this.writeMessage(e,Ea,t)}writeBytesField(e,t){this.writeTag(e,ot),this.writeBytes(t)}writeFixed32Field(e,t){this.writeTag(e,zt),this.writeFixed32(t)}writeSFixed32Field(e,t){this.writeTag(e,zt),this.writeSFixed32(t)}writeFixed64Field(e,t){this.writeTag(e,kt),this.writeFixed64(t)}writeSFixed64Field(e,t){this.writeTag(e,kt),this.writeSFixed64(t)}writeVarintField(e,t){this.writeTag(e,ar),this.writeVarint(t)}writeSVarintField(e,t){this.writeTag(e,ar),this.writeSVarint(t)}writeStringField(e,t){this.writeTag(e,ot),this.writeString(t)}writeFloatField(e,t){this.writeTag(e,zt),this.writeFloat(t)}writeDoubleField(e,t){this.writeTag(e,kt),this.writeDouble(t)}writeBooleanField(e,t){this.writeVarintField(e,+t)}}function ma(r,e,t){const n=t.buf;let i,o;if(o=n[t.pos++],i=(o&112)>>4,o<128||(o=n[t.pos++],i|=(o&127)<<3,o<128)||(o=n[t.pos++],i|=(o&127)<<10,o<128)||(o=n[t.pos++],i|=(o&127)<<17,o<128)||(o=n[t.pos++],i|=(o&127)<<24,o<128)||(o=n[t.pos++],i|=(o&1)<<31,o<128))return Le(r,i,e);throw new Error("Expected varint not more than 10 bytes")}function Le(r,e,t){return t?e*4294967296+(r>>>0):(e>>>0)*4294967296+(r>>>0)}function ya(r,e){let t,n;if(r>=0?(t=r%4294967296|0,n=r/4294967296|0):(t=~(-r%4294967296),n=~(-r/4294967296),t^4294967295?t=t+1|0:(t=0,n=n+1|0)),r>=18446744073709552e3||r<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),ga(t,n,e),xa(n,e)}function ga(r,e,t){t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos]=r&127}function xa(r,e){const t=(r&7)<<4;e.buf[e.pos++]|=t|((r>>>=3)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127)))))}function _n(r,e,t){const n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));t.realloc(n);for(let i=t.pos-1;i>=r;i--)t.buf[i+n]=t.buf[i]}function ba(r,e){for(let t=0;t239?4:o>223?3:o>191?2:1;if(i+s>t)break;let l,u,c;s===1?o<128&&(a=o):s===2?(l=r[i+1],(l&192)===128&&(a=(o&31)<<6|l&63,a<=127&&(a=null))):s===3?(l=r[i+1],u=r[i+2],(l&192)===128&&(u&192)===128&&(a=(o&15)<<12|(l&63)<<6|u&63,(a<=2047||a>=55296&&a<=57343)&&(a=null))):s===4&&(l=r[i+1],u=r[i+2],c=r[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(a=(o&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(a<=65535||a>=1114112)&&(a=null))),a===null?(a=65533,s=1):a>65535&&(a-=65536,n+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),n+=String.fromCharCode(a),i+=s}return n}function Ia(r,e,t){for(let n=0,i,o;n55295&&i<57344)if(o)if(i<56320){r[t++]=239,r[t++]=191,r[t++]=189,o=i;continue}else i=o-55296<<10|i-56320|65536,o=null;else{i>56319||n+1===e.length?(r[t++]=239,r[t++]=191,r[t++]=189):o=i;continue}else o&&(r[t++]=239,r[t++]=191,r[t++]=189,o=null);i<128?r[t++]=i:(i<2048?r[t++]=i>>6|192:(i<65536?r[t++]=i>>12|224:(r[t++]=i>>18|240,r[t++]=i>>12&63|128),r[t++]=i>>6&63|128),r[t++]=i&63|128)}return t}class $r extends Ko{constructor(e){super(),e=e||{},this.dataProjection=new Io({code:"",units:"tile-pixels"}),this.featureClass=e.featureClass?e.featureClass:kr,this.geometryName_=e.geometryName,this.layerName_=e.layerName?e.layerName:"layer",this.layers_=e.layers?e.layers:null,this.idProperty_=e.idProperty,this.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"]}readRawGeometry_(e,t,n,i){e.pos=t.geometry;const o=e.readVarint()+e.pos;let a=1,s=0,l=0,u=0,c=0,p=0;for(;e.pos>3}if(s--,a===1||a===2)l+=e.readSVarint(),u+=e.readSVarint(),a===1&&c>p&&(i.push(c),p=c),n.push(l,u),c+=2;else if(a===7)c>p&&(n.push(n[p],n[p+1]),c+=2);else throw new Error("Invalid command found in the PBF")}c>p&&(i.push(c),p=c)}createFeature_(e,t,n){const i=t.type;if(i===0)return null;let o;const a=t.properties;let s;this.idProperty_?(s=a[this.idProperty_],delete a[this.idProperty_]):s=t.id,a[this.layerName_]=t.layer.name;const l=[],u=[];this.readRawGeometry_(e,t,l,u);const c=Aa(i,u.length);if(this.featureClass===kr)o=new this.featureClass(c,l,u,2,a,s),o.transform(n.dataProjection);else{let p;if(c=="Polygon"){const m=_o(l,u);p=m.length>1?new ea(l,"XY",m):new Po(l,"XY",u)}else p=c==="Point"?new Ro(l,"XY"):c==="LineString"?new Qo(l,"XY"):c==="MultiPoint"?new ta(l,"XY"):c==="MultiLineString"?new ra(l,"XY",u):null;const d=this.featureClass;o=new d,this.geometryName_&&o.setGeometryName(this.geometryName_);const f=Jo(p,!1,n);o.setGeometry(f),s!==void 0&&o.setId(s),o.setProperties(a,!0)}return o}getType(){return"arraybuffer"}readFeatures(e,t){const n=this.layers_;t=this.adaptOptions(t);const i=Xe(t.dataProjection);i.setWorldExtent(t.extent),t.dataProjection=i;const o=new ha(e),a=o.readFields(_a,{}),s=[];for(const l in a){if(n&&!n.includes(l))continue;const u=a[l],c=u?[0,0,u.extent,u.extent]:null;i.setExtent(c);for(let p=0,d=u.length;p>3,n=r===1?t.readString():r===2?t.readFloat():r===3?t.readDouble():r===4?t.readVarint64():r===5?t.readVarint():r===6?t.readSVarint():r===7?t.readBoolean():null;e.values.push(n)}}function Ra(r,e,t){if(r==1)e.id=t.readVarint();else if(r==2){const n=t.readVarint()+t.pos;for(;t.pos255?255:r}function Rn(r){return r<0?0:r>1?1:r}function sr(r){return r[r.length-1]==="%"?ct(parseFloat(r)/100*255):ct(parseInt(r))}function St(r){return r[r.length-1]==="%"?Rn(parseFloat(r)/100):Rn(parseFloat(r))}function lr(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function ja(r){var e=r.replace(/ /g,"").toLowerCase();if(e in Pn)return Pn[e].slice();if(e[0]==="#"){if(e.length===4){var t=parseInt(e.substr(1),16);return t>=0&&t<=4095?[(t&3840)>>4|(t&3840)>>8,t&240|(t&240)>>4,t&15|(t&15)<<4,1]:null}else if(e.length===7){var t=parseInt(e.substr(1),16);return t>=0&&t<=16777215?[(t&16711680)>>16,(t&65280)>>8,t&255,1]:null}return null}var n=e.indexOf("("),i=e.indexOf(")");if(n!==-1&&i+1===e.length){var o=e.substr(0,n),a=e.substr(n+1,i-(n+1)).split(","),s=1;switch(o){case"rgba":if(a.length!==4)return null;s=St(a.pop());case"rgb":return a.length!==3?null:[sr(a[0]),sr(a[1]),sr(a[2]),s];case"hsla":if(a.length!==4)return null;s=St(a.pop());case"hsl":if(a.length!==3)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=St(a[1]),c=St(a[2]),p=c<=.5?c*(u+1):c+u-c*u,d=c*2-p;return[ct(lr(d,p,l+1/3)*255),ct(lr(d,p,l)*255),ct(lr(d,p,l-1/3)*255),s];default:return null}}return null}try{di=Da.parseCSSColor=ja}catch{}class ae{constructor(e,t,n,i=1){this.r=e,this.g=t,this.b=n,this.a=i}static parse(e){if(!e)return;if(e instanceof ae)return e;if(typeof e!="string")return;const t=di(e);if(t)return new ae(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}toString(){const[e,t,n,i]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${i})`}toArray(){const{r:e,g:t,b:n,a:i}=this;return i===0?[0,0,0,0]:[e*255/i,t*255/i,n*255/i,i]}toArray01(){const{r:e,g:t,b:n,a:i}=this;return i===0?[0,0,0,0]:[e/i,t/i,n/i,i]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:n,a:i}=this;return[e,t,n,i]}}ae.black=new ae(0,0,0,1);ae.white=new ae(1,1,1,1);ae.transparent=new ae(0,0,0,0);ae.red=new ae(1,0,0,1);ae.blue=new ae(0,0,1,1);var ue=ae;function ft(r){return typeof r=="object"?["literal",r]:r}function La(r,e){let t=r.stops;if(!t)return $a(r,e);const n=t&&typeof t[0][0]=="object",i=n||r.property!==void 0,o=n||!i;return t=t.map(a=>!i&&e.tokens&&typeof a[1]=="string"?[a[0],Va(a[1])]:[a[0],ft(a[1])]),n?Oa(r,e,t):o?Ga(r,e,t):Fr(r,e,t)}function $a(r,e){const t=["get",r.property];if(r.default===void 0)return e.type==="string"?["string",t]:t;if(e.type==="enum")return["match",t,Object.keys(e.values),t,r.default];{const n=[e.type==="color"?"to-color":e.type,t,ft(r.default)];return e.type==="array"&&n.splice(1,0,e.value,e.length||null),n}}function Or(r){switch(r.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function Oa(r,e,t){const n={},i={},o=[];for(let s=0;s3&&e===r[r.length-2]||(n&&r.length===2||r.push(e),r.push(t))}function Gr(r,e){return r.type?r.type:e.expression.interpolated?"exponential":"interval"}function Va(r){const e=["concat"],t=/{([^{}]+)}/g;let n=0;for(let i=t.exec(r);i!==null;i=t.exec(r)){const o=r.slice(n,t.lastIndex-i[0].length);n=t.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(e.length===1)return r;if(n`:r.itemType.kind==="value"?"array":`array<${e}>`}else return r.kind}const Za=[Nt,y,M,_,ze,Bt,Be,me(P),yt];function ht(r,e){if(e.kind==="error")return null;if(r.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!ht(r.itemType,e.itemType))&&(typeof r.N!="number"||r.N===e.N))return null}else{if(r.kind===e.kind)return null;if(r.kind==="value"){for(const t of Za)if(!ht(t,e))return null}}return`Expected ${B(r)} but found ${B(e)} instead.`}function Nr(r,e){return e.some(t=>t.kind===r.kind)}function mt(r,e){return e.some(t=>t==="null"?r===null:t==="array"?Array.isArray(r):t==="object"?r&&!Array.isArray(r)&&typeof r=="object":t===typeof r)}class Ur{constructor(e,t,n){e?this.sensitivity=t?"variant":"case":this.sensitivity=t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Er{constructor(e,t,n,i,o){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=i,this.textColor=o}}class ve{constructor(e){this.sections=e}static fromString(e){return new ve([new Er(e,null,null,null,null)])}isEmpty(){return this.sections.length===0?!0:!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof ve?e:ve.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class Ie{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Ie({name:e,available:!1}):null}serialize(){return["image",this.name]}}function fi(r,e,t,n){return typeof r=="number"&&r>=0&&r<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof t=="number"&&t>=0&&t<=255?typeof n>"u"||typeof n=="number"&&n>=0&&n<=1?null:`Invalid rgba value [${[r,e,t,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof n=="number"?[r,e,t,n]:[r,e,t]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function At(r){if(r===null)return!0;if(typeof r=="string")return!0;if(typeof r=="boolean")return!0;if(typeof r=="number")return!0;if(r instanceof ue)return!0;if(r instanceof Ur)return!0;if(r instanceof ve)return!0;if(r instanceof Ie)return!0;if(Array.isArray(r)){for(const e of r)if(!At(e))return!1;return!0}else if(typeof r=="object"){for(const e in r)if(!At(r[e]))return!1;return!0}else return!1}function Q(r){if(r===null)return Nt;if(typeof r=="string")return M;if(typeof r=="boolean")return _;if(typeof r=="number")return y;if(r instanceof ue)return ze;if(r instanceof Ur)return Ut;if(r instanceof ve)return Bt;if(r instanceof Ie)return yt;if(Array.isArray(r)){const e=r.length;let t;for(const n of r){const i=Q(n);if(!t)t=i;else{if(t===i)continue;t=P;break}}return me(t||P,e)}else return Be}function pt(r){const e=typeof r;return r===null?"":e==="string"||e==="number"||e==="boolean"?String(r):r instanceof ue||r instanceof ve||r instanceof Ie?r.toString():JSON.stringify(r)}class Br{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(e.length!==2)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!At(e[1]))return t.error("invalid value");const n=e[1];let i=Q(n);const o=t.expectedType;return i.kind==="array"&&i.N===0&&o&&o.kind==="array"&&(typeof o.N!="number"||o.N===0)&&(i=o),new Br(i,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof ue?["rgba"].concat(this.value.toArray()):this.value instanceof ve?this.value.serialize():this.value}}var Dt=Br;class Ha{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}var te=Ha;const ur={string:M,number:y,boolean:_,object:Be};class Zr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n=1,i;const o=e[0];if(o==="array"){let s;if(e.length>2){const u=e[1];if(typeof u!="string"||!(u in ur)||u==="object")return t.error('The item type argument of "array" must be one of string, number, boolean',1);s=ur[u],n++}else s=P;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);l=e[2],n++}i=me(s,l)}else i=ur[o];const a=[];for(;ne.outputDefined())}serialize(){const e=this.type,t=[e.kind];if(e.kind==="array"){const n=e.itemType;if(n.kind==="string"||n.kind==="number"||n.kind==="boolean"){t.push(n.kind);const i=e.N;(typeof i=="number"||this.args.length>1)&&t.push(i)}}return t.concat(this.args.map(n=>n.serialize()))}}var ke=Zr;class Zt{constructor(e){this.type=Bt,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&typeof n=="object")return t.error("First argument must be an image or text section.");const i=[];let o=!1;for(let a=1;a<=e.length-1;++a){const s=e[a];if(o&&typeof s=="object"&&!Array.isArray(s)){o=!1;let l=null;if(s["font-scale"]&&(l=t.parse(s["font-scale"],1,y),!l))return null;let u=null;if(s["text-font"]&&(u=t.parse(s["text-font"],1,me(M)),!u))return null;let c=null;if(s["text-color"]&&(c=t.parse(s["text-color"],1,ze),!c))return null;const p=i[i.length-1];p.scale=l,p.font=u,p.textColor=c}else{const l=t.parse(e[a],1,P);if(!l)return null;const u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,i.push({content:l,scale:null,font:null,textColor:null})}}return new Zt(i)}evaluate(e){const t=n=>{const i=n.content.evaluate(e);return Q(i)===yt?new Er("",i,null,null,null):new Er(pt(i),null,n.scale?n.scale.evaluate(e):null,n.font?n.font.evaluate(e).join(","):null,n.textColor?n.textColor.evaluate(e):null)};return new ve(this.sections.map(t))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class Ht{constructor(e){this.type=yt,this.input=e}static parse(e,t){if(e.length!==2)return t.error("Expected two arguments.");const n=t.parse(e[1],1,M);return n?new Ht(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=Ie.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Xa={"to-boolean":_,"to-color":ze,"to-number":y,"to-string":M};class Hr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if((n==="to-boolean"||n==="to-string")&&e.length!==2)return t.error("Expected one argument.");const i=Xa[n],o=[];for(let a=1;a4?n=`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:n=fi(t[0],t[1],t[2],t[3]),!n))return new ue(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new te(n||`Could not parse color from value '${typeof t=="string"?t:String(JSON.stringify(t))}'`)}else if(this.type.kind==="number"){let t=null;for(const n of this.args){if(t=n.evaluate(e),t===null)return 0;const i=Number(t);if(!isNaN(i))return i}throw new te(`Could not convert ${JSON.stringify(t)} to number.`)}else return this.type.kind==="formatted"?ve.fromString(pt(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?Ie.fromString(pt(this.args[0].evaluate(e))):pt(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Zt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Ht(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild(t=>{e.push(t.serialize())}),e}}var Ve=Hr;const Wa=["Unknown","Point","LineString","Polygon"];class Ka{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Wa[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:n,y:i}=this.featureTileCoord,o=n*t-e[0],a=i*t-e[1],s=this.featureDistanceData.bearing[0],l=this.featureDistanceData.bearing[1];return s*o+l*a}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=ue.parse(e)),t}}var hi=Ka;class Ne{constructor(e,t,n,i){this.name=e,this.type=t,this._evaluate=n,this.args=i}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,t){const n=e[0],i=Ne.definitions[n];if(!i)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter(([u])=>!Array.isArray(u)||u.length===e.length-1);let l=null;for(const[u,c]of s){l=new bi(t.registry,t.path,null,t.scope);const p=[];let d=!1;for(let f=1;fJa(d)).join(" | "),p=[];for(let d=1;d=e[2]||r[1]<=e[1]||r[3]>=e[3])}function es(r,e){const t=Ya(r[0]),n=Qa(r[1]),i=Math.pow(2,e.z);return[Math.round(t*i*Ce),Math.round(n*i*Ce)]}function ts(r,e,t){const n=r[0]-e[0],i=r[1]-e[1],o=r[0]-t[0],a=r[1]-t[1];return n*a-o*i===0&&n*o<=0&&i*a<=0}function rs(r,e,t){return e[1]>r[1]!=t[1]>r[1]&&r[0]<(t[0]-e[0])*(r[1]-e[1])/(t[1]-e[1])+e[0]}function Wr(r,e){let t=!1;for(let n=0,i=e.length;n0&&p<0||c<0&&p>0}function os(r,e,t,n){const i=[e[0]-r[0],e[1]-r[1]],o=[n[0]-t[0],n[1]-t[1]];return is(o,i)===0?!1:!!(An(r,e,t,n)&&An(t,n,r,e))}function as(r,e,t){for(const n of t)for(let i=0;it[2]){const i=n*.5;let o=r[0]-t[0]>i?-n:t[0]-r[0]>i?n:0;o===0&&(o=r[0]-t[2]>i?-n:t[2]-r[0]>i?n:0),r[0]+=o}Xr(e,r)}function ls(r){r[0]=r[1]=1/0,r[2]=r[3]=-1/0}function Dn(r,e,t,n){const i=Math.pow(2,n.z)*Ce,o=[n.x*Ce,n.y*Ce],a=[];if(!r)return a;for(const s of r)for(const l of s){const u=[l.x+o[0],l.y+o[1]];gi(u,e,t,i),a.push(u)}return a}function jn(r,e,t,n){const i=Math.pow(2,n.z)*Ce,o=[n.x*Ce,n.y*Ce],a=[];if(!r)return a;for(const s of r){const l=[];for(const u of s){const c=[u.x+o[0],u.y+o[1]];Xr(e,c),l.push(c)}a.push(l)}if(e[2]-e[0]<=i/2){ls(e);for(const s of a)for(const l of s)gi(l,e,t,i)}return a}function us(r,e){const t=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=r.canonicalID();if(!i)return!1;if(e.type==="Polygon"){const o=Kr(e.coordinates,n,i),a=Dn(r.geometry(),t,n,i);if(!jt(t,n))return!1;for(const s of a)if(!Wr(s,o))return!1}if(e.type==="MultiPolygon"){const o=yi(e.coordinates,n,i),a=Dn(r.geometry(),t,n,i);if(!jt(t,n))return!1;for(const s of a)if(!ns(s,o))return!1}return!0}function cs(r,e){const t=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=r.canonicalID();if(!i)return!1;if(e.type==="Polygon"){const o=Kr(e.coordinates,n,i),a=jn(r.geometry(),t,n,i);if(!jt(t,n))return!1;for(const s of a)if(!mi(s,o))return!1}if(e.type==="MultiPolygon"){const o=yi(e.coordinates,n,i),a=jn(r.geometry(),t,n,i);if(!jt(t,n))return!1;for(const s of a)if(!ss(s,o))return!1}return!0}class dt{constructor(e,t){this.type=_,this.geojson=e,this.geometries=t}static parse(e,t){if(e.length!==2)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(At(e[1])){const n=e[1];if(n.type==="FeatureCollection")for(let i=0;i{e&&!Wt(t)&&(e=!1)}),e}function Yr(r){if(r instanceof Ke&&r.name==="feature-state")return!1;let e=!0;return r.eachChild(t=>{e&&!Yr(t)&&(e=!1)}),e}function Qr(r,e){if(r instanceof Ke&&e.indexOf(r.name)>=0)return!1;let t=!0;return r.eachChild(n=>{t&&!Qr(n,e)&&(t=!1)}),t}class en{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(e.length!==2||typeof e[1]!="string")return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new en(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var xi=en;class tn{constructor(e,t=[],n,i=new Ua,o=[]){this.registry=e,this.path=t,this.key=t.map(a=>`[${a}]`).join(""),this.scope=i,this.errors=o,this.expectedType=n}parse(e,t,n,i,o={}){return t?this.concat(t,n,i)._parse(e,o):this._parse(e,o)}_parse(e,t){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);function n(i,o,a){return a==="assert"?new ke(o,[i]):a==="coerce"?new Ve(o,[i]):i}if(Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i=e[0];if(typeof i!="string")return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const o=this.registry[i];if(o){let a=o.parse(e,this);if(!a)return null;if(this.expectedType){const s=this.expectedType,l=a.type;if((s.kind==="string"||s.kind==="number"||s.kind==="boolean"||s.kind==="object"||s.kind==="array")&&l.kind==="value")a=n(a,s,t.typeAnnotation||"assert");else if((s.kind==="color"||s.kind==="formatted"||s.kind==="resolvedImage")&&(l.kind==="value"||l.kind==="string"))a=n(a,s,t.typeAnnotation||"coerce");else if(this.checkSubtype(s,l))return null}if(!(a instanceof Dt)&&a.type.kind!=="resolvedImage"&&Cr(a)){const s=new hi;try{a=new Dt(a.type,a.evaluate(s))}catch(l){return this.error(l.message),null}}return a}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}else return typeof e>"u"?this.error("'undefined' value invalid. Use null instead."):typeof e=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const i=typeof e=="number"?this.path.concat(e):this.path,o=n?this.scope.concat(n):this.scope;return new tn(this.registry,i,t||null,o,this.errors)}error(e,...t){const n=`${this.key}${t.map(i=>`[${i}]`).join("")}`;this.errors.push(new be(n,e))}checkSubtype(e,t){const n=ht(e,t);return n&&this.error(n),n}}var bi=tn;function Cr(r){if(r instanceof xi)return Cr(r.boundExpression);if(r instanceof Ke&&r.name==="error")return!1;if(r instanceof Xt)return!1;if(r instanceof Jr)return!1;const e=r instanceof Ve||r instanceof ke;let t=!0;return r.eachChild(n=>{e?t=t&&Cr(n):t=t&&n instanceof Dt}),t?Wt(r)&&Qr(r,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]):!1}function vi(r,e){const t=r.length-1;let n=0,i=t,o=0,a,s;for(;n<=i;)if(o=Math.floor((n+i)/2),a=r[o],s=r[o+1],a<=e){if(o===t||ee)i=o-1;else throw new te("Input is not a number.");return 0}class rn{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[i,o]of n)this.labels.push(i),this.outputs.push(o)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!==0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,y);if(!n)return null;const i=[];let o=null;t.expectedType&&t.expectedType.kind!=="value"&&(o=t.expectedType);for(let a=1;a=s)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);const p=t.parse(l,c,o);if(!p)return null;o=o||p.type,i.push([s,p])}return new rn(o,n,i)}evaluate(e){const t=this.labels,n=this.outputs;if(t.length===1)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const o=t.length;if(i>=t[o-1])return n[o-1].evaluate(e);const a=vi(t,i);return n[a].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var wi=rn,ps=Je;function Je(r,e,t,n){this.cx=3*r,this.bx=3*(t-r)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=r,this.p1y=n,this.p2x=t,this.p2y=n}Je.prototype.sampleCurveX=function(r){return((this.ax*r+this.bx)*r+this.cx)*r};Je.prototype.sampleCurveY=function(r){return((this.ay*r+this.by)*r+this.cy)*r};Je.prototype.sampleCurveDerivativeX=function(r){return(3*this.ax*r+2*this.bx)*r+this.cx};Je.prototype.solveCurveX=function(r,e){typeof e>"u"&&(e=1e-6);var t,n,i,o,a;for(i=r,a=0;a<8;a++){if(o=this.sampleCurveX(i)-r,Math.abs(o)n)return n;for(;to?t=i:n=i,i=(n-t)*.5+t}return i};Je.prototype.solve=function(r,e){return this.sampleCurveY(this.solveCurveX(r,e))};var ds=pi(ps);function le(r,e,t){return r*(1-t)+e*t}function fs(r,e,t){return new ue(le(r.r,e.r,t),le(r.g,e.g,t),le(r.b,e.b,t),le(r.a,e.a,t))}function hs(r,e,t){return r.map((n,i)=>le(n,e[i],t))}var ms=Object.freeze({__proto__:null,number:le,color:fs,array:hs});const Ti=.95047,ki=1,zi=1.08883,Si=4/29,Ze=6/29,Fi=3*Ze*Ze,ys=Ze*Ze*Ze,gs=Math.PI/180,xs=180/Math.PI;function cr(r){return r>ys?Math.pow(r,1/3):r/Fi+Si}function pr(r){return r>Ze?r*r*r:Fi*(r-Si)}function dr(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function fr(r){return r/=255,r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function Ei(r){const e=fr(r.r),t=fr(r.g),n=fr(r.b),i=cr((.4124564*e+.3575761*t+.1804375*n)/Ti),o=cr((.2126729*e+.7151522*t+.072175*n)/ki),a=cr((.0193339*e+.119192*t+.9503041*n)/zi);return{l:116*o-16,a:500*(i-o),b:200*(o-a),alpha:r.a}}function Ci(r){let e=(r.l+16)/116,t=isNaN(r.a)?e:e+r.a/500,n=isNaN(r.b)?e:e-r.b/200;return e=ki*pr(e),t=Ti*pr(t),n=zi*pr(n),new ue(dr(3.2404542*t-1.5371385*e-.4985314*n),dr(-.969266*t+1.8760108*e+.041556*n),dr(.0556434*t-.2040259*e+1.0572252*n),r.alpha)}function bs(r,e,t){return{l:le(r.l,e.l,t),a:le(r.a,e.a,t),b:le(r.b,e.b,t),alpha:le(r.alpha,e.alpha,t)}}function vs(r){const{l:e,a:t,b:n}=Ei(r),i=Math.atan2(n,t)*xs;return{h:i<0?i+360:i,c:Math.sqrt(t*t+n*n),l:e,alpha:r.a}}function ws(r){const e=r.h*gs,t=r.c,n=r.l;return Ci({l:n,a:Math.cos(e)*t,b:Math.sin(e)*t,alpha:r.alpha})}function Ts(r,e,t){const n=e-r;return r+t*(n>180||n<-180?n-360*Math.round(n/360):n)}function ks(r,e,t){return{h:Ts(r.h,e.h,t),c:le(r.c,e.c,t),l:le(r.l,e.l,t),alpha:le(r.alpha,e.alpha,t)}}const Ft={forward:Ei,reverse:Ci,interpolate:bs},Et={forward:vs,reverse:ws,interpolate:ks};class Lt{constructor(e,t,n,i,o){this.type=e,this.operator=t,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];for(const[a,s]of o)this.labels.push(a),this.outputs.push(s)}static interpolationFactor(e,t,n,i){let o=0;if(e.name==="exponential")o=hr(t,e.base,n,i);else if(e.name==="linear")o=hr(t,1,n,i);else if(e.name==="cubic-bezier"){const a=e.controlPoints;o=new ds(a[0],a[1],a[2],a[3]).solve(hr(t,1,n,i))}return o}static parse(e,t){let[n,i,o,...a]=e;if(!Array.isArray(i)||i.length===0)return t.error("Expected an interpolation type expression.",1);if(i[0]==="linear")i={name:"linear"};else if(i[0]==="exponential"){const u=i[1];if(typeof u!="number")return t.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:u}}else if(i[0]==="cubic-bezier"){const u=i.slice(1);if(u.length!==4||u.some(c=>typeof c!="number"||c<0||c>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:u}}else return t.error(`Unknown interpolation type ${String(i[0])}`,1,0);if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!==0)return t.error("Expected an even number of arguments.");if(o=t.parse(o,2,y),!o)return null;const s=[];let l=null;n==="interpolate-hcl"||n==="interpolate-lab"?l=ze:t.expectedType&&t.expectedType.kind!=="value"&&(l=t.expectedType);for(let u=0;u=c)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);const m=t.parse(p,f,l);if(!m)return null;l=l||m.type,s.push([c,m])}return l.kind!=="number"&&l.kind!=="color"&&!(l.kind==="array"&&l.itemType.kind==="number"&&typeof l.N=="number")?t.error(`Type ${B(l)} is not interpolatable.`):new Lt(l,n,i,o,s)}evaluate(e){const t=this.labels,n=this.outputs;if(t.length===1)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const o=t.length;if(i>=t[o-1])return n[o-1].evaluate(e);const a=vi(t,i),s=t[a],l=t[a+1],u=Lt.interpolationFactor(this.interpolation,i,s,l),c=n[a].evaluate(e),p=n[a+1].evaluate(e);return this.operator==="interpolate"?ms[this.type.kind.toLowerCase()](c,p,u):this.operator==="interpolate-hcl"?Et.reverse(Et.interpolate(Et.forward(c),Et.forward(p),u)):Ft.reverse(Ft.interpolate(Ft.forward(c),Ft.forward(p),u))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;this.interpolation.name==="linear"?e=["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?e=["linear"]:e=["exponential",this.interpolation.base]:e=["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let n=0;nht(i,s.type))?new $t(P,o):new $t(n,o)}evaluate(e){let t=null,n=0,i;for(const o of this.args){if(n++,t=o.evaluate(e),t&&t instanceof Ie&&!t.available&&(i||(i=t),t=null,n===this.args.length))return i;if(t!==null)break}return t}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(t=>{e.push(t.serialize())}),e}}var Ii=$t;class nn{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let o=1;o=n.length)throw new te(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new te(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var zs=on;class an{constructor(e,t){this.type=_,this.needle=e,this.haystack=t}static parse(e,t){if(e.length!==3)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,P),i=t.parse(e[2],2,P);return!n||!i?null:Nr(n.type,[_,M,y,Nt,P])?new an(n,i):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${B(n.type)} instead`)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(n==null)return!1;if(!mt(t,["boolean","string","number","null"]))throw new te(`Expected first argument to be of type boolean, string, number or null, but found ${B(Q(t))} instead.`);if(!mt(n,["string","array"]))throw new te(`Expected second argument to be of type array or string, but found ${B(Q(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Ss=an;class Ot{constructor(e,t,n){this.type=y,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,P),i=t.parse(e[2],2,P);if(!n||!i)return null;if(!Nr(n.type,[_,M,y,Nt,P]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${B(n.type)} instead`);if(e.length===4){const o=t.parse(e[3],3,y);return o?new Ot(n,i,o):null}else return new Ot(n,i)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!mt(t,["boolean","string","number","null"]))throw new te(`Expected first argument to be of type boolean, string, number or null, but found ${B(Q(t))} instead.`);if(!mt(n,["string","array"]))throw new te(`Expected second argument to be of type array or string, but found ${B(Q(n))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(e);return n.indexOf(t,i)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Fs=Ot;class sn{constructor(e,t,n,i,o,a){this.inputType=e,this.type=t,this.input=n,this.cases=i,this.outputs=o,this.otherwise=a}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!==1)return t.error("Expected an even number of arguments.");let n,i;t.expectedType&&t.expectedType.kind!=="value"&&(i=t.expectedType);const o={},a=[];for(let u=2;uNumber.MAX_SAFE_INTEGER)return d.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof m=="number"&&Math.floor(m)!==m)return d.error("Numeric branch labels must be integer values.");if(!n)n=Q(m);else if(d.checkSubtype(n,Q(m)))return null;if(typeof o[String(m)]<"u")return d.error("Branch labels must be unique.");o[String(m)]=a.length}const f=t.parse(p,u,i);if(!f)return null;i=i||f.type,a.push(f)}const s=t.parse(e[1],1,P);if(!s)return null;const l=t.parse(e[e.length-1],e.length-1,i);return!l||s.type.kind!=="value"&&t.concat(1).checkSubtype(n,s.type)?null:new sn(n,i,s,o,a,l)}evaluate(e){const t=this.input.evaluate(e);return(Q(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],i={};for(const a of t){const s=i[this.cases[a]];s===void 0?(i[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[s][1].push(a)}const o=a=>this.inputType.kind==="number"?Number(a):a;for(const[a,s]of n)s.length===1?e.push(o(s[0])):e.push(s.map(o)),e.push(this.outputs[a].serialize());return e.push(this.otherwise.serialize()),e}}var Es=sn;class ln{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!==0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&t.expectedType.kind!=="value"&&(n=t.expectedType);const i=[];for(let a=1;at.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(t=>{e.push(t.serialize())}),e}}var Cs=ln;class qt{constructor(e,t,n,i){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,P),i=t.parse(e[2],2,y);if(!n||!i)return null;if(!Nr(n.type,[me(P),M,P]))return t.error(`Expected first argument to be of type array or string, but found ${B(n.type)} instead`);if(e.length===4){const o=t.parse(e[3],3,y);return o?new qt(n.type,n,i,o):null}else return new qt(n.type,n,i)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!mt(t,["string","array"]))throw new te(`Expected first argument to be of type array or string, but found ${B(Q(t))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(e);return t.slice(n,i)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Is=qt;function Ln(r,e){return r==="=="||r==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function _s(r,e,t){return e===t}function Ps(r,e,t){return e!==t}function Rs(r,e,t){return et}function As(r,e,t){return e<=t}function Ds(r,e,t){return e>=t}function Pi(r,e,t,n){return n.compare(e,t)===0}function js(r,e,t,n){return!Pi(r,e,t,n)}function Ls(r,e,t,n){return n.compare(e,t)<0}function $s(r,e,t,n){return n.compare(e,t)>0}function Os(r,e,t,n){return n.compare(e,t)<=0}function qs(r,e,t,n){return n.compare(e,t)>=0}function Ye(r,e,t){const n=r!=="=="&&r!=="!=";return class Ri{constructor(o,a,s){this.type=_,this.lhs=o,this.rhs=a,this.collator=s,this.hasUntypedArgument=o.type.kind==="value"||a.type.kind==="value"}static parse(o,a){if(o.length!==3&&o.length!==4)return a.error("Expected two or three arguments.");const s=o[0];let l=a.parse(o[1],1,P);if(!l)return null;if(!Ln(s,l.type))return a.concat(1).error(`"${s}" comparisons are not supported for type '${B(l.type)}'.`);let u=a.parse(o[2],2,P);if(!u)return null;if(!Ln(s,u.type))return a.concat(2).error(`"${s}" comparisons are not supported for type '${B(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return a.error(`Cannot compare types '${B(l.type)}' and '${B(u.type)}'.`);n&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new ke(u.type,[l]):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new ke(l.type,[u])));let c=null;if(o.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return a.error("Cannot use collator to compare non-string types.");if(c=a.parse(o[3],3,Ut),!c)return null}return new Ri(l,u,c)}evaluate(o){const a=this.lhs.evaluate(o),s=this.rhs.evaluate(o);if(n&&this.hasUntypedArgument){const l=Q(a),u=Q(s);if(l.kind!==u.kind||!(l.kind==="string"||l.kind==="number"))throw new te(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const l=Q(a),u=Q(s);if(l.kind!=="string"||u.kind!=="string")return e(o,a,s)}return this.collator?t(o,a,s,this.collator.evaluate(o)):e(o,a,s)}eachChild(o){o(this.lhs),o(this.rhs),this.collator&&o(this.collator)}outputDefined(){return!0}serialize(){const o=[r];return this.eachChild(a=>{o.push(a.serialize())}),o}}}const Gs=Ye("==",_s,Pi),Vs=Ye("!=",Ps,js),Ns=Ye("<",Rs,Ls),Us=Ye(">",Ms,$s),Bs=Ye("<=",As,Os),Zs=Ye(">=",Ds,qs);class un{constructor(e,t,n,i,o,a){this.type=M,this.number=e,this.locale=t,this.currency=n,this.unit=i,this.minFractionDigits=o,this.maxFractionDigits=a}static parse(e,t){if(e.length!==3)return t.error("Expected two arguments.");const n=t.parse(e[1],1,y);if(!n)return null;const i=e[2];if(typeof i!="object"||Array.isArray(i))return t.error("NumberFormat options argument must be an object.");let o=null;if(i.locale&&(o=t.parse(i.locale,1,M),!o))return null;let a=null;if(i.currency&&(a=t.parse(i.currency,1,M),!a))return null;let s=null;if(i.unit&&(s=t.parse(i.unit,1,M),!s))return null;let l=null;if(i["min-fraction-digits"]&&(l=t.parse(i["min-fraction-digits"],1,y),!l))return null;let u=null;return i["max-fraction-digits"]&&(u=t.parse(i["max-fraction-digits"],1,y),!u)?null:new un(n,o,a,s,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency&&"currency"||this.unit&&"unit"||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class cn{constructor(e){this.type=y,this.input=e}static parse(e,t){if(e.length!==2)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?n.type.kind!=="array"&&n.type.kind!=="string"&&n.type.kind!=="value"?t.error(`Expected argument of type string or array, but found ${B(n.type)} instead.`):new cn(n):null}evaluate(e){const t=this.input.evaluate(e);if(typeof t=="string")return t.length;if(Array.isArray(t))return t.length;throw new te(`Expected value to be of type string or array, but found ${B(Q(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(t=>{e.push(t.serialize())}),e}}var Hs=cn;const Mi={"==":Gs,"!=":Vs,">":Us,"<":Ns,">=":Zs,"<=":Bs,array:ke,at:zs,boolean:ke,case:Cs,coalesce:Ii,collator:Xt,format:Zt,image:Ht,in:Ss,"index-of":Fs,interpolate:Me,"interpolate-hcl":Me,"interpolate-lab":Me,length:Hs,let:_i,literal:Dt,match:Es,number:ke,"number-format":un,object:ke,slice:Is,step:wi,string:ke,"to-boolean":Ve,"to-color":Ve,"to-number":Ve,"to-string":Ve,var:xi,within:Jr};function $n(r,[e,t,n,i]){e=e.evaluate(r),t=t.evaluate(r),n=n.evaluate(r);const o=i?i.evaluate(r):1,a=fi(e,t,n,o);if(a)throw new te(a);return new ue(e/255*o,t/255*o,n/255*o,o)}function On(r,e){return r in e}function mr(r,e){const t=e[r];return typeof t>"u"?null:t}function Xs(r,e,t,n){for(;t<=n;){const i=t+n>>1;if(e[i]===r)return!0;e[i]>r?n=i-1:t=i+1}return!1}function _e(r){return{type:r}}Ke.register(Mi,{error:[Ba,[M],(r,[e])=>{throw new te(e.evaluate(r))}],typeof:[M,[P],(r,[e])=>B(Q(e.evaluate(r)))],"to-rgba":[me(y,4),[ze],(r,[e])=>e.evaluate(r).toArray()],rgb:[ze,[y,y,y],$n],rgba:[ze,[y,y,y,y],$n],has:{type:_,overloads:[[[M],(r,[e])=>On(e.evaluate(r),r.properties())],[[M,Be],(r,[e,t])=>On(e.evaluate(r),t.evaluate(r))]]},get:{type:P,overloads:[[[M],(r,[e])=>mr(e.evaluate(r),r.properties())],[[M,Be],(r,[e,t])=>mr(e.evaluate(r),t.evaluate(r))]]},"feature-state":[P,[M],(r,[e])=>mr(e.evaluate(r),r.featureState||{})],properties:[Be,[],r=>r.properties()],"geometry-type":[M,[],r=>r.geometryType()],id:[P,[],r=>r.id()],zoom:[y,[],r=>r.globals.zoom],pitch:[y,[],r=>r.globals.pitch||0],"distance-from-center":[y,[],r=>r.distanceFromCenter()],"heatmap-density":[y,[],r=>r.globals.heatmapDensity||0],"line-progress":[y,[],r=>r.globals.lineProgress||0],"sky-radial-progress":[y,[],r=>r.globals.skyRadialProgress||0],accumulated:[P,[],r=>r.globals.accumulated===void 0?null:r.globals.accumulated],"+":[y,_e(y),(r,e)=>{let t=0;for(const n of e)t+=n.evaluate(r);return t}],"*":[y,_e(y),(r,e)=>{let t=1;for(const n of e)t*=n.evaluate(r);return t}],"-":{type:y,overloads:[[[y,y],(r,[e,t])=>e.evaluate(r)-t.evaluate(r)],[[y],(r,[e])=>-e.evaluate(r)]]},"/":[y,[y,y],(r,[e,t])=>e.evaluate(r)/t.evaluate(r)],"%":[y,[y,y],(r,[e,t])=>e.evaluate(r)%t.evaluate(r)],ln2:[y,[],()=>Math.LN2],pi:[y,[],()=>Math.PI],e:[y,[],()=>Math.E],"^":[y,[y,y],(r,[e,t])=>Math.pow(e.evaluate(r),t.evaluate(r))],sqrt:[y,[y],(r,[e])=>Math.sqrt(e.evaluate(r))],log10:[y,[y],(r,[e])=>Math.log(e.evaluate(r))/Math.LN10],ln:[y,[y],(r,[e])=>Math.log(e.evaluate(r))],log2:[y,[y],(r,[e])=>Math.log(e.evaluate(r))/Math.LN2],sin:[y,[y],(r,[e])=>Math.sin(e.evaluate(r))],cos:[y,[y],(r,[e])=>Math.cos(e.evaluate(r))],tan:[y,[y],(r,[e])=>Math.tan(e.evaluate(r))],asin:[y,[y],(r,[e])=>Math.asin(e.evaluate(r))],acos:[y,[y],(r,[e])=>Math.acos(e.evaluate(r))],atan:[y,[y],(r,[e])=>Math.atan(e.evaluate(r))],min:[y,_e(y),(r,e)=>Math.min(...e.map(t=>t.evaluate(r)))],max:[y,_e(y),(r,e)=>Math.max(...e.map(t=>t.evaluate(r)))],abs:[y,[y],(r,[e])=>Math.abs(e.evaluate(r))],round:[y,[y],(r,[e])=>{const t=e.evaluate(r);return t<0?-Math.round(-t):Math.round(t)}],floor:[y,[y],(r,[e])=>Math.floor(e.evaluate(r))],ceil:[y,[y],(r,[e])=>Math.ceil(e.evaluate(r))],"filter-==":[_,[M,P],(r,[e,t])=>r.properties()[e.value]===t.value],"filter-id-==":[_,[P],(r,[e])=>r.id()===e.value],"filter-type-==":[_,[M],(r,[e])=>r.geometryType()===e.value],"filter-<":[_,[M,P],(r,[e,t])=>{const n=r.properties()[e.value],i=t.value;return typeof n==typeof i&&n{const t=r.id(),n=e.value;return typeof t==typeof n&&t":[_,[M,P],(r,[e,t])=>{const n=r.properties()[e.value],i=t.value;return typeof n==typeof i&&n>i}],"filter-id->":[_,[P],(r,[e])=>{const t=r.id(),n=e.value;return typeof t==typeof n&&t>n}],"filter-<=":[_,[M,P],(r,[e,t])=>{const n=r.properties()[e.value],i=t.value;return typeof n==typeof i&&n<=i}],"filter-id-<=":[_,[P],(r,[e])=>{const t=r.id(),n=e.value;return typeof t==typeof n&&t<=n}],"filter->=":[_,[M,P],(r,[e,t])=>{const n=r.properties()[e.value],i=t.value;return typeof n==typeof i&&n>=i}],"filter-id->=":[_,[P],(r,[e])=>{const t=r.id(),n=e.value;return typeof t==typeof n&&t>=n}],"filter-has":[_,[P],(r,[e])=>e.value in r.properties()],"filter-has-id":[_,[],r=>r.id()!==null&&r.id()!==void 0],"filter-type-in":[_,[me(M)],(r,[e])=>e.value.indexOf(r.geometryType())>=0],"filter-id-in":[_,[me(P)],(r,[e])=>e.value.indexOf(r.id())>=0],"filter-in-small":[_,[M,me(P)],(r,[e,t])=>t.value.indexOf(r.properties()[e.value])>=0],"filter-in-large":[_,[M,me(P)],(r,[e,t])=>Xs(r.properties()[e.value],t.value,0,t.value.length-1)],all:{type:_,overloads:[[[_,_],(r,[e,t])=>e.evaluate(r)&&t.evaluate(r)],[_e(_),(r,e)=>{for(const t of e)if(!t.evaluate(r))return!1;return!0}]]},any:{type:_,overloads:[[[_,_],(r,[e,t])=>e.evaluate(r)||t.evaluate(r)],[_e(_),(r,e)=>{for(const t of e)if(t.evaluate(r))return!0;return!1}]]},"!":[_,[_],(r,[e])=>!e.evaluate(r)],"is-supported-script":[_,[M],(r,[e])=>{const t=r.globals&&r.globals.isSupportedScript;return t?t(e.evaluate(r)):!0}],upcase:[M,[M],(r,[e])=>e.evaluate(r).toUpperCase()],downcase:[M,[M],(r,[e])=>e.evaluate(r).toLowerCase()],concat:[M,_e(P),(r,e)=>e.map(t=>pt(t.evaluate(r))).join("")],"resolved-locale":[M,[Ut],(r,[e])=>e.evaluate(r).resolvedLocale()]});var Ai=Mi;function Ir(r){return{result:"success",value:r}}function Oe(r){return{result:"error",value:r}}function Ws(r){return r["property-type"]==="data-driven"}function Ks(r){return!!r.expression&&r.expression.parameters.indexOf("zoom")>-1}function Js(r){return!!r.expression&&r.expression.interpolated}function Di(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}class Ys{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new hi,this._defaultValue=t?rl(t):null,this._enumValues=t&&t.type==="enum"?t.values:null}evaluateWithoutErrorHandling(e,t,n,i,o,a,s,l){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=a,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=l||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,i,o,a,s,l){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=a||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=l||null;try{const u=this.expression.evaluate(this._evaluator);if(u==null||typeof u=="number"&&u!==u)return this._defaultValue;if(this._enumValues&&!(u in this._enumValues))throw new te(`Expected value to be one of ${Object.keys(this._enumValues).map(c=>JSON.stringify(c)).join(", ")}, but found ${JSON.stringify(u)} instead.`);return u}catch(u){return this._warningHistory[u.message]||(this._warningHistory[u.message]=!0,typeof console<"u"&&console.warn(u.message)),this._defaultValue}}}function Qs(r){return Array.isArray(r)&&r.length>0&&typeof r[0]=="string"&&r[0]in Ai}function _r(r,e){const t=new bi(Ai,[],e?tl(e):void 0),n=t.parse(r,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return n?Ir(new Ys(n,e)):Oe(t.errors)}class qn{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent=e!=="constant"&&!Yr(t.expression)}evaluateWithoutErrorHandling(e,t,n,i,o,a){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,o,a)}evaluate(e,t,n,i,o,a){return this._styleExpression.evaluate(e,t,n,i,o,a)}}class Gn{constructor(e,t,n,i){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent=e!=="camera"&&!Yr(t.expression),this.interpolationType=i}evaluateWithoutErrorHandling(e,t,n,i,o,a){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,o,a)}evaluate(e,t,n,i,o,a){return this._styleExpression.evaluate(e,t,n,i,o,a)}interpolationFactor(e,t,n){return this.interpolationType?Me.interpolationFactor(this.interpolationType,e,t,n):0}}function el(r,e){if(r=_r(r,e),r.result==="error")return r;const t=r.value.expression,n=Wt(t);if(!n&&!Ws(e))return Oe([new be("","data expressions not supported")]);const i=Qr(t,["zoom","pitch","distance-from-center"]);if(!i&&!Ks(e))return Oe([new be("","zoom expressions not supported")]);const o=Pt(t);if(!o&&!i)return Oe([new be("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof be)return Oe([o]);if(o instanceof Me&&!Js(e))return Oe([new be("",'"interpolate" expressions cannot be used with this property')]);if(!o)return Ir(n?new qn("constant",r.value):new qn("source",r.value));const a=o instanceof Me?o.interpolation:void 0;return Ir(n?new Gn("camera",r.value,o.labels,a):new Gn("composite",r.value,o.labels,a))}function Pt(r){let e=null;if(r instanceof _i)e=Pt(r.result);else if(r instanceof Ii){for(const t of r.args)if(e=Pt(t),e)break}else(r instanceof wi||r instanceof Me)&&r.input instanceof Ke&&r.input.name==="zoom"&&(e=r);return e instanceof be||r.eachChild(t=>{const n=Pt(t);n instanceof be?e=n:!e&&n?e=new be("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&n&&e!==n&&(e=new be("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function tl(r){const e={color:ze,string:M,number:y,enum:M,boolean:_,formatted:Bt,resolvedImage:yt};return r.type==="array"?me(e[r.value]||P,r.length):e[r.type]}function rl(r){return r.type==="color"&&(Di(r.default)||Array.isArray(r.default))?new ue(0,0,0,0):r.type==="color"?ue.parse(r.default)||null:r.default===void 0?null:r.default}function nl(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function Pr(r){if(Array.isArray(r))return r.map(Pr);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){const e={};for(const t in r)e[t]=Pr(r[t]);return e}return nl(r)}var ji={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"},"fill-extrusion-edge-radius":{type:"number",private:!0,default:0,minimum:0,maximum:1,"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["fill-extrusion-edge-radius"]}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function Li(r){if(r===!0||r===!1)return!0;if(!Array.isArray(r)||r.length===0)return!1;switch(r[0]){case"has":return r.length>=2&&r[1]!=="$id"&&r[1]!=="$type";case"in":return r.length>=3&&(typeof r[1]!="string"||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return r.length!==3||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(const e of r.slice(1))if(!Li(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function il(r,e="fill"){if(r==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Li(r)||(r=Gt(r));const t=r;let n=!0;try{n=ol(t)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate. +import{a as Ki,j as Y,B as yn,V as Ji,f as Yi}from"./BeGW3nmX4tO2.js";import{t as Qi}from"./BITOzfKCAZEE.js";import{n as ti,o as eo,p as ye,q as to,s as V,t as ro,v as no,x as je,y as ri,z as lt,A as io,B as Re,E as oo,G as ao,I as so,J as lo,K as uo,L as ni,N as ii,P as er,Q as co,R as po,U as gn,W as fo,X as ho,Y as tr,Z as mo,_ as xn,$ as bn,a0 as yo,a1 as go,a2 as xo,a3 as bo,a4 as vo,a5 as Tt,a6 as wo,a7 as oi,a8 as jr,a9 as Tr,aa as ai,ab as To,ac as ko,ad as zo,ae as So,af as Xe,ag as Fo,ah as Eo,ai as Co,aj as Io,ak as kr,al as _o,am as Po,an as Ro,a as zr,ao as Mo,ap as Mt,aq as Ao,ar as si,as as Do,at as jo,au as Lo,av as $o,aw as Oo,ax as st,F as Ge,ay as qo,b as rr,az as Go,aA as Vo,c as Ee,aB as vn,C as li,aC as No,aD as wn,S as it,T as Uo,O as Bo,H as Zo,M as Ho,u as Xo,k as nr,g as Tn,h as kn,l as Wo,m as ir}from"./BjXju3dgjVrG.js";import{F as Ko,t as Jo,G as zn,e as Yo}from"./Dh5p1D7VwmQC.js";import{L as Qo}from"./D6bui9ILupw_.js";import{M as ea,a as ta,b as ra}from"./D1e64i0R5zCb.js";import{V as na,S as ia,I as oa,Z as aa,a as sa}from"./CwsqFmMu0f5O.js";import{_ as Sn}from"./CmsKOCeNyeyo.js";import{T as or}from"./DM7y0OoBz9e5.js";import"./B48t-8DI4YWS.js";import"./39a3VBatk_eA.js";import"./BMuX_dt1qyjL.js";import"./Gw82v5PUNK8h.js";import"./N6gwA50uHdd6.js";import"./uLM-EaCyc6aA.js";import"./ElmKiM7bxWM_.js";import"./B3on_k3411E6.js";const Fn=[];class la extends ti{constructor(e,t,n,i,o){super(e,t,{transition:0}),this.context_=null,this.executorGroups=[],this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=i.bind(void 0,this),this.removeSourceTiles_=o,this.wrappedTileCoord=n}getContext(){return this.context_||(this.context_=eo(1,1,Fn)),this.context_}hasContext(){return!!this.context_}getImage(){return this.hasContext()?this.getContext().canvas:null}getReplayState(e){const t=ye(e);return t in this.replayState_||(this.replayState_[t]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[t]}load(){this.getSourceTiles()}release(){this.context_&&(to(this.context_),Fn.push(this.context_.canvas),this.context_=null),this.removeSourceTiles_(this),this.sourceTiles.length=0,super.release()}}let ui=class extends ti{constructor(e,t,n,i,o,a){super(e,t,a),this.extent=null,this.format_=i,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=o,this.url_=n,this.key=n}getTileUrl(){return this.url_}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==V.IDLE&&(this.setState(V.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(e,t){this.setFeatures(e)}onError(){this.setState(V.ERROR)}setFeatures(e){this.features_=e,this.setState(V.LOADED)}setLoader(e){this.loader_=e}};const ua={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},En={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};class ca extends ro{constructor(e,t){super(e,t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.renderedOpacity_=1,this.tmpTransform_=no(),this.tileClipContexts_=null}drawTile(e,t,n,i,o,a,s,l){this.updateExecutorGroup_(e,t.pixelRatio,t.viewState.projection),this.tileImageNeedsRender_(e)&&this.renderTileImage_(e,t),super.drawTile(e,t,n,i,o,a,s,l)}getTile(e,t,n,i){const o=this.getOrCreateTile(e,t,n,i);if(!o)return null;const s=i.viewState.resolution,l=i.viewHints;return(!(l[je.ANIMATING]||l[je.INTERACTING])||!o.wantedResolution)&&(o.wantedResolution=s),o}prepareFrame(e){const t=this.getLayer().getRevision();return this.renderedLayerRevision_!==t&&(this.renderedLayerRevision_=t,this.renderedTiles.length=0),super.prepareFrame(e)}updateExecutorGroup_(e,t,n){const i=this.getLayer(),o=i.getRevision(),a=i.getRenderOrder()||null,s=e.wantedResolution,l=e.getReplayState(i);if(!l.dirty&&l.renderedResolution===s&&l.renderedRevision==o&&l.renderedRenderOrder==a)return;const u=i.getSource(),c=!!i.getDeclutter(),p=u.getTileGrid(),f=u.getTileGridForProjection(n).getTileCoordExtent(e.wrappedTileCoord),m=u.getSourceTiles(t,n,e),x=ye(i);delete e.hitDetectionImageData[x],e.executorGroups[x]=[],l.dirty=!1;for(let h=0,R=m.length;h{const I=L?t.declutter[L].all().map(A=>A.value):null;for(let A=0,j=k.length;A{const i=this.getLayer(),o=ye(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),u=this.renderedResolution,c=a.getTileGridForProjection(s),p=so(this.renderedPixelToCoordinateTransform_,e.slice()),d=c.getTileCoordForCoordAndResolution(p,u);let f;for(let C=0,S=this.renderedTiles.length;C0){t([]);return}const m=c.getTileCoordExtent(f.wrappedTileCoord),x=ni(m),h=[(p[0]-x[0])/u,(x[1]-p[1])/u],R=f.getSourceTiles().reduce(function(C,S){return C.concat(S.getFeatures())},[]);let E=f.hitDetectionImageData[o];if(!E){const C=ii(c.getTileSize(c.getZForResolution(u,a.zDirection))),S=this.renderedRotation_,F=[this.getRenderTransform(c.getTileCoordCenter(f.wrappedTileCoord),u,0,er,C[0]*er,C[1]*er,0)];E=co(C,F,R,i.getStyleFunction(),c.getTileCoordExtent(f.wrappedTileCoord),f.getReplayState(i).renderedResolution,S),f.hitDetectionImageData[o]=E}t(po(h,R,E))})}getFeaturesInExtent(e){const t=[],n=this.getTileCache();if(n.getCount()===0)return t;const o=this.getLayer().getSource().getTileGridForProjection(this.frameState.viewState.projection),a=o.getZForResolution(this.renderedResolution),s={};return n.forEach(l=>{if(l.tileCoord[0]!==a||l.getState()!==V.LOADED)return;const u=l.getSourceTiles();for(let c=0,p=u.length;c=0;--f)p[f].execute(this.context,[this.context.canvas.width,this.context.canvas.height],this.getTileRenderTransform(c,e),e.viewState.rotation,a,gn,d?e.declutter[d]:void 0)}n.globalAlpha=i}renderDeferredInternal(e){const n=this.renderedTiles.reduce((s,l,u)=>(l.executorGroups[ye(this.getLayer())].forEach(c=>s.push({executorGroup:c,index:u})),s),[]),i=n.map(({executorGroup:s})=>s.getDeferredZIndexContexts()),o={};for(let s=0,l=n.length;s{i.forEach((l,u)=>{l[s]&&(l[s].forEach(c=>{const{executorGroup:p,index:d}=n[u],f=p.getRenderedContext(),m=f.globalAlpha;f.globalAlpha=this.renderedOpacity_;const x=this.tileClipContexts_[d];x&&x.draw(f),c.draw(f),x&&f.restore(),f.globalAlpha=m,c.clear()}),l[s].length=0)})})}getTileRenderTransform(e,t){const n=t.pixelRatio,i=t.viewState,o=i.center,a=i.resolution,s=i.rotation,l=t.size,u=Math.round(l[0]*n),c=Math.round(l[1]*n),d=this.getLayer().getSource().getTileGridForProjection(t.viewState.projection),f=e.tileCoord,m=d.getTileCoordExtent(e.wrappedTileCoord),x=d.getTileCoordExtent(f,this.tempExtent)[0]-m[0];return ho(tr(this.inversePixelTransform.slice(),1/n,1/n),this.getRenderTransform(o,a,s,n,u,c,x))}postRender(e,t){const n=t.viewHints,i=!(n[je.ANIMATING]||n[je.INTERACTING]);this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation,this.renderedOpacity_=t.layerStatesArray[t.layerIndex].opacity;const o=this.getLayer(),a=o.getRenderMode(),s=e.globalAlpha;e.globalAlpha=this.renderedOpacity_;const l=o.getDeclutter(),u=l?En[a].filter(S=>!gn.includes(S)):En[a],c=t.viewState,p=c.rotation,d=o.getSource(),m=d.getTileGridForProjection(c.projection).getZForResolution(c.resolution,d.zDirection),x=this.renderedTiles,h=[],R=[],E=[];let C=!0;for(let S=x.length-1;S>=0;--S){const F=x[S];C=C&&!F.getReplayState(o).dirty;const L=F.executorGroups[ye(o)].filter(q=>q.hasExecutors(u));if(L.length===0)continue;const k=this.getTileRenderTransform(F,t),I=F.tileCoord[0];let A=!1;const j=L[0].getClipCoords(k);let G=e,v;if(j){v=new mo,G=v.getContext();for(let q=0,T=h.length;q{const f=this.tileUrlFunction(d,e,t);this.sourceTiles_[f]||(this.sourceTiles_[f]=new this.tileClass(d,f?V.IDLE:V.EMPTY,f,this.format_,this.tileLoadFunction));const m=this.sourceTiles_[f];n.sourceTiles.push(m),this.tileKeysBySourceTileUrl_[f]||(this.tileKeysBySourceTileUrl_[f]=[]),this.tileKeysBySourceTileUrl_[f].push(n.getKey());const x=m.getState();if(x{this.handleTileChange(R);const E=m.getState();if(E===V.LOADED||E===V.ERROR){const C=m.getKey();C in n.errorTileKeys?m.getState()===V.LOADED&&delete n.errorTileKeys[C]:n.loadingSourceTiles--,E===V.ERROR?n.errorTileKeys[C]=!0:m.removeEventListener(Tr.CHANGE,h),n.loadingSourceTiles===0&&n.setState(ko(n.errorTileKeys)?V.LOADED:V.ERROR)}};m.addEventListener(Tr.CHANGE,h),n.loadingSourceTiles++}x===V.IDLE&&(m.extent=u.getTileCoordExtent(d),m.projection=t,m.resolution=u.getResolution(d[0]),m.load())}),n.loadingSourceTiles||n.setState(n.sourceTiles.some(d=>d.getState()===V.ERROR)?V.ERROR:V.LOADED)}return n.sourceTiles}removeSourceTiles(e){const t=e.sourceTiles;for(let n=0,i=t.length;n{c=c&&!this.tileUrlFunction(h,i,o)})}const p=new la(a,c?V.EMPTY:V.IDLE,s,this.getSourceTiles.bind(this,i,o),this.removeSourceTiles.bind(this));return p.key=this.getKey(),p}getTileGridForProjection(e){const t=e.getCode();let n=this.tileGrids_[t];if(!n){const i=this.tileGrid,o=i.getResolutions().slice(),a=o.map(function(u,c){return i.getOrigin(c)}),s=o.map(function(u,c){return i.getTileSize(c)}),l=zo+1;for(let u=o.length;u=200&&t.status<300){let n;try{n=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(n)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Xe("EPSG:4326"),n=this.getProjection();let i;if(e.bounds!==void 0){const u=Fo(t,n);i=Eo(e.bounds,u)}const o=oi(n),a=e.minzoom||0,s=e.maxzoom||22,l=jr({extent:o,maxZoom:s,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=l,this.tileUrlFunction=Co(e.tiles,l),e.attribution&&!this.getAttributions()){const u=i!==void 0?i:o;this.setAttributions(function(c){return Re(u,c.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const Sr=65536*65536,Cn=1/Sr,fa=12,In=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),ar=0,kt=1,ot=2,zt=5;class ha{constructor(e=new Uint8Array(16)){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(e,t,n=this.length){for(;this.pos>3,a=this.pos;this.type=i&7,e(o,t,this),this.pos===a&&this.skip(i)}return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){const e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){const e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*Sr;return this.pos+=8,e}readSFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*Sr;return this.pos+=8,e}readFloat(){const e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){const e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){const t=this.buf;let n,i;return i=t[this.pos++],n=i&127,i<128||(i=t[this.pos++],n|=(i&127)<<7,i<128)||(i=t[this.pos++],n|=(i&127)<<14,i<128)||(i=t[this.pos++],n|=(i&127)<<21,i<128)?n:(i=t[this.pos],n|=(i&15)<<28,ma(n,e,this))}readVarint64(){return this.readVarint(!0)}readSVarint(){const e=this.readVarint();return e%2===1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){const e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=fa&&In?In.decode(this.buf.subarray(t,e)):Ca(this.buf,t,e)}readBytes(){const e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){const n=this.readPackedEnd();for(;this.pos127;);else if(t===ot)this.pos=this.readVarint()+this.pos;else if(t===zt)this.pos+=4;else if(t===kt)this.pos+=8;else throw new Error(`Unimplemented type: ${t}`)}writeTag(e,t){this.writeVarint(e<<3|t)}realloc(e){let t=this.length||16;for(;t268435455||e<0){ya(e,this);return}this.realloc(4),this.buf[this.pos++]=e&127|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=(e>>>=7)&127|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=(e>>>=7)&127|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=e>>>7&127)))}writeSVarint(e){this.writeVarint(e<0?-e*2-1:e*2)}writeBoolean(e){this.writeVarint(+e)}writeString(e){e=String(e),this.realloc(e.length*4),this.pos++;const t=this.pos;this.pos=Ia(this.buf,e,this.pos);const n=this.pos-t;n>=128&&_n(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n}writeFloat(e){this.realloc(4),this.dataView.setFloat32(this.pos,e,!0),this.pos+=4}writeDouble(e){this.realloc(8),this.dataView.setFloat64(this.pos,e,!0),this.pos+=8}writeBytes(e){const t=e.length;this.writeVarint(t),this.realloc(t);for(let n=0;n=128&&_n(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i}writeMessage(e,t,n){this.writeTag(e,ot),this.writeRawMessage(t,n)}writePackedVarint(e,t){t.length&&this.writeMessage(e,ba,t)}writePackedSVarint(e,t){t.length&&this.writeMessage(e,va,t)}writePackedBoolean(e,t){t.length&&this.writeMessage(e,ka,t)}writePackedFloat(e,t){t.length&&this.writeMessage(e,wa,t)}writePackedDouble(e,t){t.length&&this.writeMessage(e,Ta,t)}writePackedFixed32(e,t){t.length&&this.writeMessage(e,za,t)}writePackedSFixed32(e,t){t.length&&this.writeMessage(e,Sa,t)}writePackedFixed64(e,t){t.length&&this.writeMessage(e,Fa,t)}writePackedSFixed64(e,t){t.length&&this.writeMessage(e,Ea,t)}writeBytesField(e,t){this.writeTag(e,ot),this.writeBytes(t)}writeFixed32Field(e,t){this.writeTag(e,zt),this.writeFixed32(t)}writeSFixed32Field(e,t){this.writeTag(e,zt),this.writeSFixed32(t)}writeFixed64Field(e,t){this.writeTag(e,kt),this.writeFixed64(t)}writeSFixed64Field(e,t){this.writeTag(e,kt),this.writeSFixed64(t)}writeVarintField(e,t){this.writeTag(e,ar),this.writeVarint(t)}writeSVarintField(e,t){this.writeTag(e,ar),this.writeSVarint(t)}writeStringField(e,t){this.writeTag(e,ot),this.writeString(t)}writeFloatField(e,t){this.writeTag(e,zt),this.writeFloat(t)}writeDoubleField(e,t){this.writeTag(e,kt),this.writeDouble(t)}writeBooleanField(e,t){this.writeVarintField(e,+t)}}function ma(r,e,t){const n=t.buf;let i,o;if(o=n[t.pos++],i=(o&112)>>4,o<128||(o=n[t.pos++],i|=(o&127)<<3,o<128)||(o=n[t.pos++],i|=(o&127)<<10,o<128)||(o=n[t.pos++],i|=(o&127)<<17,o<128)||(o=n[t.pos++],i|=(o&127)<<24,o<128)||(o=n[t.pos++],i|=(o&1)<<31,o<128))return Le(r,i,e);throw new Error("Expected varint not more than 10 bytes")}function Le(r,e,t){return t?e*4294967296+(r>>>0):(e>>>0)*4294967296+(r>>>0)}function ya(r,e){let t,n;if(r>=0?(t=r%4294967296|0,n=r/4294967296|0):(t=~(-r%4294967296),n=~(-r/4294967296),t^4294967295?t=t+1|0:(t=0,n=n+1|0)),r>=18446744073709552e3||r<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),ga(t,n,e),xa(n,e)}function ga(r,e,t){t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos]=r&127}function xa(r,e){const t=(r&7)<<4;e.buf[e.pos++]|=t|((r>>>=3)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127)))))}function _n(r,e,t){const n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));t.realloc(n);for(let i=t.pos-1;i>=r;i--)t.buf[i+n]=t.buf[i]}function ba(r,e){for(let t=0;t239?4:o>223?3:o>191?2:1;if(i+s>t)break;let l,u,c;s===1?o<128&&(a=o):s===2?(l=r[i+1],(l&192)===128&&(a=(o&31)<<6|l&63,a<=127&&(a=null))):s===3?(l=r[i+1],u=r[i+2],(l&192)===128&&(u&192)===128&&(a=(o&15)<<12|(l&63)<<6|u&63,(a<=2047||a>=55296&&a<=57343)&&(a=null))):s===4&&(l=r[i+1],u=r[i+2],c=r[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(a=(o&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(a<=65535||a>=1114112)&&(a=null))),a===null?(a=65533,s=1):a>65535&&(a-=65536,n+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),n+=String.fromCharCode(a),i+=s}return n}function Ia(r,e,t){for(let n=0,i,o;n55295&&i<57344)if(o)if(i<56320){r[t++]=239,r[t++]=191,r[t++]=189,o=i;continue}else i=o-55296<<10|i-56320|65536,o=null;else{i>56319||n+1===e.length?(r[t++]=239,r[t++]=191,r[t++]=189):o=i;continue}else o&&(r[t++]=239,r[t++]=191,r[t++]=189,o=null);i<128?r[t++]=i:(i<2048?r[t++]=i>>6|192:(i<65536?r[t++]=i>>12|224:(r[t++]=i>>18|240,r[t++]=i>>12&63|128),r[t++]=i>>6&63|128),r[t++]=i&63|128)}return t}class $r extends Ko{constructor(e){super(),e=e||{},this.dataProjection=new Io({code:"",units:"tile-pixels"}),this.featureClass=e.featureClass?e.featureClass:kr,this.geometryName_=e.geometryName,this.layerName_=e.layerName?e.layerName:"layer",this.layers_=e.layers?e.layers:null,this.idProperty_=e.idProperty,this.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"]}readRawGeometry_(e,t,n,i){e.pos=t.geometry;const o=e.readVarint()+e.pos;let a=1,s=0,l=0,u=0,c=0,p=0;for(;e.pos>3}if(s--,a===1||a===2)l+=e.readSVarint(),u+=e.readSVarint(),a===1&&c>p&&(i.push(c),p=c),n.push(l,u),c+=2;else if(a===7)c>p&&(n.push(n[p],n[p+1]),c+=2);else throw new Error("Invalid command found in the PBF")}c>p&&(i.push(c),p=c)}createFeature_(e,t,n){const i=t.type;if(i===0)return null;let o;const a=t.properties;let s;this.idProperty_?(s=a[this.idProperty_],delete a[this.idProperty_]):s=t.id,a[this.layerName_]=t.layer.name;const l=[],u=[];this.readRawGeometry_(e,t,l,u);const c=Aa(i,u.length);if(this.featureClass===kr)o=new this.featureClass(c,l,u,2,a,s),o.transform(n.dataProjection);else{let p;if(c=="Polygon"){const m=_o(l,u);p=m.length>1?new ea(l,"XY",m):new Po(l,"XY",u)}else p=c==="Point"?new Ro(l,"XY"):c==="LineString"?new Qo(l,"XY"):c==="MultiPoint"?new ta(l,"XY"):c==="MultiLineString"?new ra(l,"XY",u):null;const d=this.featureClass;o=new d,this.geometryName_&&o.setGeometryName(this.geometryName_);const f=Jo(p,!1,n);o.setGeometry(f),s!==void 0&&o.setId(s),o.setProperties(a,!0)}return o}getType(){return"arraybuffer"}readFeatures(e,t){const n=this.layers_;t=this.adaptOptions(t);const i=Xe(t.dataProjection);i.setWorldExtent(t.extent),t.dataProjection=i;const o=new ha(e),a=o.readFields(_a,{}),s=[];for(const l in a){if(n&&!n.includes(l))continue;const u=a[l],c=u?[0,0,u.extent,u.extent]:null;i.setExtent(c);for(let p=0,d=u.length;p>3,n=r===1?t.readString():r===2?t.readFloat():r===3?t.readDouble():r===4?t.readVarint64():r===5?t.readVarint():r===6?t.readSVarint():r===7?t.readBoolean():null;e.values.push(n)}}function Ra(r,e,t){if(r==1)e.id=t.readVarint();else if(r==2){const n=t.readVarint()+t.pos;for(;t.pos255?255:r}function Rn(r){return r<0?0:r>1?1:r}function sr(r){return r[r.length-1]==="%"?ct(parseFloat(r)/100*255):ct(parseInt(r))}function St(r){return r[r.length-1]==="%"?Rn(parseFloat(r)/100):Rn(parseFloat(r))}function lr(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function ja(r){var e=r.replace(/ /g,"").toLowerCase();if(e in Pn)return Pn[e].slice();if(e[0]==="#"){if(e.length===4){var t=parseInt(e.substr(1),16);return t>=0&&t<=4095?[(t&3840)>>4|(t&3840)>>8,t&240|(t&240)>>4,t&15|(t&15)<<4,1]:null}else if(e.length===7){var t=parseInt(e.substr(1),16);return t>=0&&t<=16777215?[(t&16711680)>>16,(t&65280)>>8,t&255,1]:null}return null}var n=e.indexOf("("),i=e.indexOf(")");if(n!==-1&&i+1===e.length){var o=e.substr(0,n),a=e.substr(n+1,i-(n+1)).split(","),s=1;switch(o){case"rgba":if(a.length!==4)return null;s=St(a.pop());case"rgb":return a.length!==3?null:[sr(a[0]),sr(a[1]),sr(a[2]),s];case"hsla":if(a.length!==4)return null;s=St(a.pop());case"hsl":if(a.length!==3)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=St(a[1]),c=St(a[2]),p=c<=.5?c*(u+1):c+u-c*u,d=c*2-p;return[ct(lr(d,p,l+1/3)*255),ct(lr(d,p,l)*255),ct(lr(d,p,l-1/3)*255),s];default:return null}}return null}try{di=Da.parseCSSColor=ja}catch{}class ae{constructor(e,t,n,i=1){this.r=e,this.g=t,this.b=n,this.a=i}static parse(e){if(!e)return;if(e instanceof ae)return e;if(typeof e!="string")return;const t=di(e);if(t)return new ae(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}toString(){const[e,t,n,i]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${i})`}toArray(){const{r:e,g:t,b:n,a:i}=this;return i===0?[0,0,0,0]:[e*255/i,t*255/i,n*255/i,i]}toArray01(){const{r:e,g:t,b:n,a:i}=this;return i===0?[0,0,0,0]:[e/i,t/i,n/i,i]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:n,a:i}=this;return[e,t,n,i]}}ae.black=new ae(0,0,0,1);ae.white=new ae(1,1,1,1);ae.transparent=new ae(0,0,0,0);ae.red=new ae(1,0,0,1);ae.blue=new ae(0,0,1,1);var ue=ae;function ft(r){return typeof r=="object"?["literal",r]:r}function La(r,e){let t=r.stops;if(!t)return $a(r,e);const n=t&&typeof t[0][0]=="object",i=n||r.property!==void 0,o=n||!i;return t=t.map(a=>!i&&e.tokens&&typeof a[1]=="string"?[a[0],Va(a[1])]:[a[0],ft(a[1])]),n?Oa(r,e,t):o?Ga(r,e,t):Fr(r,e,t)}function $a(r,e){const t=["get",r.property];if(r.default===void 0)return e.type==="string"?["string",t]:t;if(e.type==="enum")return["match",t,Object.keys(e.values),t,r.default];{const n=[e.type==="color"?"to-color":e.type,t,ft(r.default)];return e.type==="array"&&n.splice(1,0,e.value,e.length||null),n}}function Or(r){switch(r.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function Oa(r,e,t){const n={},i={},o=[];for(let s=0;s3&&e===r[r.length-2]||(n&&r.length===2||r.push(e),r.push(t))}function Gr(r,e){return r.type?r.type:e.expression.interpolated?"exponential":"interval"}function Va(r){const e=["concat"],t=/{([^{}]+)}/g;let n=0;for(let i=t.exec(r);i!==null;i=t.exec(r)){const o=r.slice(n,t.lastIndex-i[0].length);n=t.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(e.length===1)return r;if(n`:r.itemType.kind==="value"?"array":`array<${e}>`}else return r.kind}const Za=[Nt,y,M,_,ze,Bt,Be,me(P),yt];function ht(r,e){if(e.kind==="error")return null;if(r.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!ht(r.itemType,e.itemType))&&(typeof r.N!="number"||r.N===e.N))return null}else{if(r.kind===e.kind)return null;if(r.kind==="value"){for(const t of Za)if(!ht(t,e))return null}}return`Expected ${B(r)} but found ${B(e)} instead.`}function Nr(r,e){return e.some(t=>t.kind===r.kind)}function mt(r,e){return e.some(t=>t==="null"?r===null:t==="array"?Array.isArray(r):t==="object"?r&&!Array.isArray(r)&&typeof r=="object":t===typeof r)}class Ur{constructor(e,t,n){e?this.sensitivity=t?"variant":"case":this.sensitivity=t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Er{constructor(e,t,n,i,o){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=i,this.textColor=o}}class ve{constructor(e){this.sections=e}static fromString(e){return new ve([new Er(e,null,null,null,null)])}isEmpty(){return this.sections.length===0?!0:!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof ve?e:ve.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class Ie{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Ie({name:e,available:!1}):null}serialize(){return["image",this.name]}}function fi(r,e,t,n){return typeof r=="number"&&r>=0&&r<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof t=="number"&&t>=0&&t<=255?typeof n>"u"||typeof n=="number"&&n>=0&&n<=1?null:`Invalid rgba value [${[r,e,t,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof n=="number"?[r,e,t,n]:[r,e,t]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function At(r){if(r===null)return!0;if(typeof r=="string")return!0;if(typeof r=="boolean")return!0;if(typeof r=="number")return!0;if(r instanceof ue)return!0;if(r instanceof Ur)return!0;if(r instanceof ve)return!0;if(r instanceof Ie)return!0;if(Array.isArray(r)){for(const e of r)if(!At(e))return!1;return!0}else if(typeof r=="object"){for(const e in r)if(!At(r[e]))return!1;return!0}else return!1}function Q(r){if(r===null)return Nt;if(typeof r=="string")return M;if(typeof r=="boolean")return _;if(typeof r=="number")return y;if(r instanceof ue)return ze;if(r instanceof Ur)return Ut;if(r instanceof ve)return Bt;if(r instanceof Ie)return yt;if(Array.isArray(r)){const e=r.length;let t;for(const n of r){const i=Q(n);if(!t)t=i;else{if(t===i)continue;t=P;break}}return me(t||P,e)}else return Be}function pt(r){const e=typeof r;return r===null?"":e==="string"||e==="number"||e==="boolean"?String(r):r instanceof ue||r instanceof ve||r instanceof Ie?r.toString():JSON.stringify(r)}class Br{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(e.length!==2)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!At(e[1]))return t.error("invalid value");const n=e[1];let i=Q(n);const o=t.expectedType;return i.kind==="array"&&i.N===0&&o&&o.kind==="array"&&(typeof o.N!="number"||o.N===0)&&(i=o),new Br(i,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof ue?["rgba"].concat(this.value.toArray()):this.value instanceof ve?this.value.serialize():this.value}}var Dt=Br;class Ha{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}var te=Ha;const ur={string:M,number:y,boolean:_,object:Be};class Zr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n=1,i;const o=e[0];if(o==="array"){let s;if(e.length>2){const u=e[1];if(typeof u!="string"||!(u in ur)||u==="object")return t.error('The item type argument of "array" must be one of string, number, boolean',1);s=ur[u],n++}else s=P;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);l=e[2],n++}i=me(s,l)}else i=ur[o];const a=[];for(;ne.outputDefined())}serialize(){const e=this.type,t=[e.kind];if(e.kind==="array"){const n=e.itemType;if(n.kind==="string"||n.kind==="number"||n.kind==="boolean"){t.push(n.kind);const i=e.N;(typeof i=="number"||this.args.length>1)&&t.push(i)}}return t.concat(this.args.map(n=>n.serialize()))}}var ke=Zr;class Zt{constructor(e){this.type=Bt,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&typeof n=="object")return t.error("First argument must be an image or text section.");const i=[];let o=!1;for(let a=1;a<=e.length-1;++a){const s=e[a];if(o&&typeof s=="object"&&!Array.isArray(s)){o=!1;let l=null;if(s["font-scale"]&&(l=t.parse(s["font-scale"],1,y),!l))return null;let u=null;if(s["text-font"]&&(u=t.parse(s["text-font"],1,me(M)),!u))return null;let c=null;if(s["text-color"]&&(c=t.parse(s["text-color"],1,ze),!c))return null;const p=i[i.length-1];p.scale=l,p.font=u,p.textColor=c}else{const l=t.parse(e[a],1,P);if(!l)return null;const u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,i.push({content:l,scale:null,font:null,textColor:null})}}return new Zt(i)}evaluate(e){const t=n=>{const i=n.content.evaluate(e);return Q(i)===yt?new Er("",i,null,null,null):new Er(pt(i),null,n.scale?n.scale.evaluate(e):null,n.font?n.font.evaluate(e).join(","):null,n.textColor?n.textColor.evaluate(e):null)};return new ve(this.sections.map(t))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class Ht{constructor(e){this.type=yt,this.input=e}static parse(e,t){if(e.length!==2)return t.error("Expected two arguments.");const n=t.parse(e[1],1,M);return n?new Ht(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=Ie.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Xa={"to-boolean":_,"to-color":ze,"to-number":y,"to-string":M};class Hr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if((n==="to-boolean"||n==="to-string")&&e.length!==2)return t.error("Expected one argument.");const i=Xa[n],o=[];for(let a=1;a4?n=`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:n=fi(t[0],t[1],t[2],t[3]),!n))return new ue(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new te(n||`Could not parse color from value '${typeof t=="string"?t:String(JSON.stringify(t))}'`)}else if(this.type.kind==="number"){let t=null;for(const n of this.args){if(t=n.evaluate(e),t===null)return 0;const i=Number(t);if(!isNaN(i))return i}throw new te(`Could not convert ${JSON.stringify(t)} to number.`)}else return this.type.kind==="formatted"?ve.fromString(pt(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?Ie.fromString(pt(this.args[0].evaluate(e))):pt(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Zt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Ht(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild(t=>{e.push(t.serialize())}),e}}var Ve=Hr;const Wa=["Unknown","Point","LineString","Polygon"];class Ka{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Wa[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:n,y:i}=this.featureTileCoord,o=n*t-e[0],a=i*t-e[1],s=this.featureDistanceData.bearing[0],l=this.featureDistanceData.bearing[1];return s*o+l*a}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=ue.parse(e)),t}}var hi=Ka;class Ne{constructor(e,t,n,i){this.name=e,this.type=t,this._evaluate=n,this.args=i}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,t){const n=e[0],i=Ne.definitions[n];if(!i)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter(([u])=>!Array.isArray(u)||u.length===e.length-1);let l=null;for(const[u,c]of s){l=new bi(t.registry,t.path,null,t.scope);const p=[];let d=!1;for(let f=1;fJa(d)).join(" | "),p=[];for(let d=1;d=e[2]||r[1]<=e[1]||r[3]>=e[3])}function es(r,e){const t=Ya(r[0]),n=Qa(r[1]),i=Math.pow(2,e.z);return[Math.round(t*i*Ce),Math.round(n*i*Ce)]}function ts(r,e,t){const n=r[0]-e[0],i=r[1]-e[1],o=r[0]-t[0],a=r[1]-t[1];return n*a-o*i===0&&n*o<=0&&i*a<=0}function rs(r,e,t){return e[1]>r[1]!=t[1]>r[1]&&r[0]<(t[0]-e[0])*(r[1]-e[1])/(t[1]-e[1])+e[0]}function Wr(r,e){let t=!1;for(let n=0,i=e.length;n0&&p<0||c<0&&p>0}function os(r,e,t,n){const i=[e[0]-r[0],e[1]-r[1]],o=[n[0]-t[0],n[1]-t[1]];return is(o,i)===0?!1:!!(An(r,e,t,n)&&An(t,n,r,e))}function as(r,e,t){for(const n of t)for(let i=0;it[2]){const i=n*.5;let o=r[0]-t[0]>i?-n:t[0]-r[0]>i?n:0;o===0&&(o=r[0]-t[2]>i?-n:t[2]-r[0]>i?n:0),r[0]+=o}Xr(e,r)}function ls(r){r[0]=r[1]=1/0,r[2]=r[3]=-1/0}function Dn(r,e,t,n){const i=Math.pow(2,n.z)*Ce,o=[n.x*Ce,n.y*Ce],a=[];if(!r)return a;for(const s of r)for(const l of s){const u=[l.x+o[0],l.y+o[1]];gi(u,e,t,i),a.push(u)}return a}function jn(r,e,t,n){const i=Math.pow(2,n.z)*Ce,o=[n.x*Ce,n.y*Ce],a=[];if(!r)return a;for(const s of r){const l=[];for(const u of s){const c=[u.x+o[0],u.y+o[1]];Xr(e,c),l.push(c)}a.push(l)}if(e[2]-e[0]<=i/2){ls(e);for(const s of a)for(const l of s)gi(l,e,t,i)}return a}function us(r,e){const t=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=r.canonicalID();if(!i)return!1;if(e.type==="Polygon"){const o=Kr(e.coordinates,n,i),a=Dn(r.geometry(),t,n,i);if(!jt(t,n))return!1;for(const s of a)if(!Wr(s,o))return!1}if(e.type==="MultiPolygon"){const o=yi(e.coordinates,n,i),a=Dn(r.geometry(),t,n,i);if(!jt(t,n))return!1;for(const s of a)if(!ns(s,o))return!1}return!0}function cs(r,e){const t=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=r.canonicalID();if(!i)return!1;if(e.type==="Polygon"){const o=Kr(e.coordinates,n,i),a=jn(r.geometry(),t,n,i);if(!jt(t,n))return!1;for(const s of a)if(!mi(s,o))return!1}if(e.type==="MultiPolygon"){const o=yi(e.coordinates,n,i),a=jn(r.geometry(),t,n,i);if(!jt(t,n))return!1;for(const s of a)if(!ss(s,o))return!1}return!0}class dt{constructor(e,t){this.type=_,this.geojson=e,this.geometries=t}static parse(e,t){if(e.length!==2)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(At(e[1])){const n=e[1];if(n.type==="FeatureCollection")for(let i=0;i{e&&!Wt(t)&&(e=!1)}),e}function Yr(r){if(r instanceof Ke&&r.name==="feature-state")return!1;let e=!0;return r.eachChild(t=>{e&&!Yr(t)&&(e=!1)}),e}function Qr(r,e){if(r instanceof Ke&&e.indexOf(r.name)>=0)return!1;let t=!0;return r.eachChild(n=>{t&&!Qr(n,e)&&(t=!1)}),t}class en{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(e.length!==2||typeof e[1]!="string")return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new en(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var xi=en;class tn{constructor(e,t=[],n,i=new Ua,o=[]){this.registry=e,this.path=t,this.key=t.map(a=>`[${a}]`).join(""),this.scope=i,this.errors=o,this.expectedType=n}parse(e,t,n,i,o={}){return t?this.concat(t,n,i)._parse(e,o):this._parse(e,o)}_parse(e,t){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);function n(i,o,a){return a==="assert"?new ke(o,[i]):a==="coerce"?new Ve(o,[i]):i}if(Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i=e[0];if(typeof i!="string")return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const o=this.registry[i];if(o){let a=o.parse(e,this);if(!a)return null;if(this.expectedType){const s=this.expectedType,l=a.type;if((s.kind==="string"||s.kind==="number"||s.kind==="boolean"||s.kind==="object"||s.kind==="array")&&l.kind==="value")a=n(a,s,t.typeAnnotation||"assert");else if((s.kind==="color"||s.kind==="formatted"||s.kind==="resolvedImage")&&(l.kind==="value"||l.kind==="string"))a=n(a,s,t.typeAnnotation||"coerce");else if(this.checkSubtype(s,l))return null}if(!(a instanceof Dt)&&a.type.kind!=="resolvedImage"&&Cr(a)){const s=new hi;try{a=new Dt(a.type,a.evaluate(s))}catch(l){return this.error(l.message),null}}return a}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}else return typeof e>"u"?this.error("'undefined' value invalid. Use null instead."):typeof e=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const i=typeof e=="number"?this.path.concat(e):this.path,o=n?this.scope.concat(n):this.scope;return new tn(this.registry,i,t||null,o,this.errors)}error(e,...t){const n=`${this.key}${t.map(i=>`[${i}]`).join("")}`;this.errors.push(new be(n,e))}checkSubtype(e,t){const n=ht(e,t);return n&&this.error(n),n}}var bi=tn;function Cr(r){if(r instanceof xi)return Cr(r.boundExpression);if(r instanceof Ke&&r.name==="error")return!1;if(r instanceof Xt)return!1;if(r instanceof Jr)return!1;const e=r instanceof Ve||r instanceof ke;let t=!0;return r.eachChild(n=>{e?t=t&&Cr(n):t=t&&n instanceof Dt}),t?Wt(r)&&Qr(r,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]):!1}function vi(r,e){const t=r.length-1;let n=0,i=t,o=0,a,s;for(;n<=i;)if(o=Math.floor((n+i)/2),a=r[o],s=r[o+1],a<=e){if(o===t||ee)i=o-1;else throw new te("Input is not a number.");return 0}class rn{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[i,o]of n)this.labels.push(i),this.outputs.push(o)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!==0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,y);if(!n)return null;const i=[];let o=null;t.expectedType&&t.expectedType.kind!=="value"&&(o=t.expectedType);for(let a=1;a=s)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);const p=t.parse(l,c,o);if(!p)return null;o=o||p.type,i.push([s,p])}return new rn(o,n,i)}evaluate(e){const t=this.labels,n=this.outputs;if(t.length===1)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const o=t.length;if(i>=t[o-1])return n[o-1].evaluate(e);const a=vi(t,i);return n[a].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var wi=rn,ps=Je;function Je(r,e,t,n){this.cx=3*r,this.bx=3*(t-r)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=r,this.p1y=n,this.p2x=t,this.p2y=n}Je.prototype.sampleCurveX=function(r){return((this.ax*r+this.bx)*r+this.cx)*r};Je.prototype.sampleCurveY=function(r){return((this.ay*r+this.by)*r+this.cy)*r};Je.prototype.sampleCurveDerivativeX=function(r){return(3*this.ax*r+2*this.bx)*r+this.cx};Je.prototype.solveCurveX=function(r,e){typeof e>"u"&&(e=1e-6);var t,n,i,o,a;for(i=r,a=0;a<8;a++){if(o=this.sampleCurveX(i)-r,Math.abs(o)n)return n;for(;to?t=i:n=i,i=(n-t)*.5+t}return i};Je.prototype.solve=function(r,e){return this.sampleCurveY(this.solveCurveX(r,e))};var ds=pi(ps);function le(r,e,t){return r*(1-t)+e*t}function fs(r,e,t){return new ue(le(r.r,e.r,t),le(r.g,e.g,t),le(r.b,e.b,t),le(r.a,e.a,t))}function hs(r,e,t){return r.map((n,i)=>le(n,e[i],t))}var ms=Object.freeze({__proto__:null,number:le,color:fs,array:hs});const Ti=.95047,ki=1,zi=1.08883,Si=4/29,Ze=6/29,Fi=3*Ze*Ze,ys=Ze*Ze*Ze,gs=Math.PI/180,xs=180/Math.PI;function cr(r){return r>ys?Math.pow(r,1/3):r/Fi+Si}function pr(r){return r>Ze?r*r*r:Fi*(r-Si)}function dr(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function fr(r){return r/=255,r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function Ei(r){const e=fr(r.r),t=fr(r.g),n=fr(r.b),i=cr((.4124564*e+.3575761*t+.1804375*n)/Ti),o=cr((.2126729*e+.7151522*t+.072175*n)/ki),a=cr((.0193339*e+.119192*t+.9503041*n)/zi);return{l:116*o-16,a:500*(i-o),b:200*(o-a),alpha:r.a}}function Ci(r){let e=(r.l+16)/116,t=isNaN(r.a)?e:e+r.a/500,n=isNaN(r.b)?e:e-r.b/200;return e=ki*pr(e),t=Ti*pr(t),n=zi*pr(n),new ue(dr(3.2404542*t-1.5371385*e-.4985314*n),dr(-.969266*t+1.8760108*e+.041556*n),dr(.0556434*t-.2040259*e+1.0572252*n),r.alpha)}function bs(r,e,t){return{l:le(r.l,e.l,t),a:le(r.a,e.a,t),b:le(r.b,e.b,t),alpha:le(r.alpha,e.alpha,t)}}function vs(r){const{l:e,a:t,b:n}=Ei(r),i=Math.atan2(n,t)*xs;return{h:i<0?i+360:i,c:Math.sqrt(t*t+n*n),l:e,alpha:r.a}}function ws(r){const e=r.h*gs,t=r.c,n=r.l;return Ci({l:n,a:Math.cos(e)*t,b:Math.sin(e)*t,alpha:r.alpha})}function Ts(r,e,t){const n=e-r;return r+t*(n>180||n<-180?n-360*Math.round(n/360):n)}function ks(r,e,t){return{h:Ts(r.h,e.h,t),c:le(r.c,e.c,t),l:le(r.l,e.l,t),alpha:le(r.alpha,e.alpha,t)}}const Ft={forward:Ei,reverse:Ci,interpolate:bs},Et={forward:vs,reverse:ws,interpolate:ks};class Lt{constructor(e,t,n,i,o){this.type=e,this.operator=t,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];for(const[a,s]of o)this.labels.push(a),this.outputs.push(s)}static interpolationFactor(e,t,n,i){let o=0;if(e.name==="exponential")o=hr(t,e.base,n,i);else if(e.name==="linear")o=hr(t,1,n,i);else if(e.name==="cubic-bezier"){const a=e.controlPoints;o=new ds(a[0],a[1],a[2],a[3]).solve(hr(t,1,n,i))}return o}static parse(e,t){let[n,i,o,...a]=e;if(!Array.isArray(i)||i.length===0)return t.error("Expected an interpolation type expression.",1);if(i[0]==="linear")i={name:"linear"};else if(i[0]==="exponential"){const u=i[1];if(typeof u!="number")return t.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:u}}else if(i[0]==="cubic-bezier"){const u=i.slice(1);if(u.length!==4||u.some(c=>typeof c!="number"||c<0||c>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:u}}else return t.error(`Unknown interpolation type ${String(i[0])}`,1,0);if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!==0)return t.error("Expected an even number of arguments.");if(o=t.parse(o,2,y),!o)return null;const s=[];let l=null;n==="interpolate-hcl"||n==="interpolate-lab"?l=ze:t.expectedType&&t.expectedType.kind!=="value"&&(l=t.expectedType);for(let u=0;u=c)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);const m=t.parse(p,f,l);if(!m)return null;l=l||m.type,s.push([c,m])}return l.kind!=="number"&&l.kind!=="color"&&!(l.kind==="array"&&l.itemType.kind==="number"&&typeof l.N=="number")?t.error(`Type ${B(l)} is not interpolatable.`):new Lt(l,n,i,o,s)}evaluate(e){const t=this.labels,n=this.outputs;if(t.length===1)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const o=t.length;if(i>=t[o-1])return n[o-1].evaluate(e);const a=vi(t,i),s=t[a],l=t[a+1],u=Lt.interpolationFactor(this.interpolation,i,s,l),c=n[a].evaluate(e),p=n[a+1].evaluate(e);return this.operator==="interpolate"?ms[this.type.kind.toLowerCase()](c,p,u):this.operator==="interpolate-hcl"?Et.reverse(Et.interpolate(Et.forward(c),Et.forward(p),u)):Ft.reverse(Ft.interpolate(Ft.forward(c),Ft.forward(p),u))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;this.interpolation.name==="linear"?e=["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?e=["linear"]:e=["exponential",this.interpolation.base]:e=["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let n=0;nht(i,s.type))?new $t(P,o):new $t(n,o)}evaluate(e){let t=null,n=0,i;for(const o of this.args){if(n++,t=o.evaluate(e),t&&t instanceof Ie&&!t.available&&(i||(i=t),t=null,n===this.args.length))return i;if(t!==null)break}return t}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(t=>{e.push(t.serialize())}),e}}var Ii=$t;class nn{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let o=1;o=n.length)throw new te(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new te(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var zs=on;class an{constructor(e,t){this.type=_,this.needle=e,this.haystack=t}static parse(e,t){if(e.length!==3)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,P),i=t.parse(e[2],2,P);return!n||!i?null:Nr(n.type,[_,M,y,Nt,P])?new an(n,i):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${B(n.type)} instead`)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(n==null)return!1;if(!mt(t,["boolean","string","number","null"]))throw new te(`Expected first argument to be of type boolean, string, number or null, but found ${B(Q(t))} instead.`);if(!mt(n,["string","array"]))throw new te(`Expected second argument to be of type array or string, but found ${B(Q(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Ss=an;class Ot{constructor(e,t,n){this.type=y,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,P),i=t.parse(e[2],2,P);if(!n||!i)return null;if(!Nr(n.type,[_,M,y,Nt,P]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${B(n.type)} instead`);if(e.length===4){const o=t.parse(e[3],3,y);return o?new Ot(n,i,o):null}else return new Ot(n,i)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!mt(t,["boolean","string","number","null"]))throw new te(`Expected first argument to be of type boolean, string, number or null, but found ${B(Q(t))} instead.`);if(!mt(n,["string","array"]))throw new te(`Expected second argument to be of type array or string, but found ${B(Q(n))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(e);return n.indexOf(t,i)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Fs=Ot;class sn{constructor(e,t,n,i,o,a){this.inputType=e,this.type=t,this.input=n,this.cases=i,this.outputs=o,this.otherwise=a}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!==1)return t.error("Expected an even number of arguments.");let n,i;t.expectedType&&t.expectedType.kind!=="value"&&(i=t.expectedType);const o={},a=[];for(let u=2;uNumber.MAX_SAFE_INTEGER)return d.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof m=="number"&&Math.floor(m)!==m)return d.error("Numeric branch labels must be integer values.");if(!n)n=Q(m);else if(d.checkSubtype(n,Q(m)))return null;if(typeof o[String(m)]<"u")return d.error("Branch labels must be unique.");o[String(m)]=a.length}const f=t.parse(p,u,i);if(!f)return null;i=i||f.type,a.push(f)}const s=t.parse(e[1],1,P);if(!s)return null;const l=t.parse(e[e.length-1],e.length-1,i);return!l||s.type.kind!=="value"&&t.concat(1).checkSubtype(n,s.type)?null:new sn(n,i,s,o,a,l)}evaluate(e){const t=this.input.evaluate(e);return(Q(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],i={};for(const a of t){const s=i[this.cases[a]];s===void 0?(i[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[s][1].push(a)}const o=a=>this.inputType.kind==="number"?Number(a):a;for(const[a,s]of n)s.length===1?e.push(o(s[0])):e.push(s.map(o)),e.push(this.outputs[a].serialize());return e.push(this.otherwise.serialize()),e}}var Es=sn;class ln{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!==0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&t.expectedType.kind!=="value"&&(n=t.expectedType);const i=[];for(let a=1;at.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(t=>{e.push(t.serialize())}),e}}var Cs=ln;class qt{constructor(e,t,n,i){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,P),i=t.parse(e[2],2,y);if(!n||!i)return null;if(!Nr(n.type,[me(P),M,P]))return t.error(`Expected first argument to be of type array or string, but found ${B(n.type)} instead`);if(e.length===4){const o=t.parse(e[3],3,y);return o?new qt(n.type,n,i,o):null}else return new qt(n.type,n,i)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!mt(t,["string","array"]))throw new te(`Expected first argument to be of type array or string, but found ${B(Q(t))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(e);return t.slice(n,i)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Is=qt;function Ln(r,e){return r==="=="||r==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function _s(r,e,t){return e===t}function Ps(r,e,t){return e!==t}function Rs(r,e,t){return et}function As(r,e,t){return e<=t}function Ds(r,e,t){return e>=t}function Pi(r,e,t,n){return n.compare(e,t)===0}function js(r,e,t,n){return!Pi(r,e,t,n)}function Ls(r,e,t,n){return n.compare(e,t)<0}function $s(r,e,t,n){return n.compare(e,t)>0}function Os(r,e,t,n){return n.compare(e,t)<=0}function qs(r,e,t,n){return n.compare(e,t)>=0}function Ye(r,e,t){const n=r!=="=="&&r!=="!=";return class Ri{constructor(o,a,s){this.type=_,this.lhs=o,this.rhs=a,this.collator=s,this.hasUntypedArgument=o.type.kind==="value"||a.type.kind==="value"}static parse(o,a){if(o.length!==3&&o.length!==4)return a.error("Expected two or three arguments.");const s=o[0];let l=a.parse(o[1],1,P);if(!l)return null;if(!Ln(s,l.type))return a.concat(1).error(`"${s}" comparisons are not supported for type '${B(l.type)}'.`);let u=a.parse(o[2],2,P);if(!u)return null;if(!Ln(s,u.type))return a.concat(2).error(`"${s}" comparisons are not supported for type '${B(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return a.error(`Cannot compare types '${B(l.type)}' and '${B(u.type)}'.`);n&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new ke(u.type,[l]):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new ke(l.type,[u])));let c=null;if(o.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return a.error("Cannot use collator to compare non-string types.");if(c=a.parse(o[3],3,Ut),!c)return null}return new Ri(l,u,c)}evaluate(o){const a=this.lhs.evaluate(o),s=this.rhs.evaluate(o);if(n&&this.hasUntypedArgument){const l=Q(a),u=Q(s);if(l.kind!==u.kind||!(l.kind==="string"||l.kind==="number"))throw new te(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const l=Q(a),u=Q(s);if(l.kind!=="string"||u.kind!=="string")return e(o,a,s)}return this.collator?t(o,a,s,this.collator.evaluate(o)):e(o,a,s)}eachChild(o){o(this.lhs),o(this.rhs),this.collator&&o(this.collator)}outputDefined(){return!0}serialize(){const o=[r];return this.eachChild(a=>{o.push(a.serialize())}),o}}}const Gs=Ye("==",_s,Pi),Vs=Ye("!=",Ps,js),Ns=Ye("<",Rs,Ls),Us=Ye(">",Ms,$s),Bs=Ye("<=",As,Os),Zs=Ye(">=",Ds,qs);class un{constructor(e,t,n,i,o,a){this.type=M,this.number=e,this.locale=t,this.currency=n,this.unit=i,this.minFractionDigits=o,this.maxFractionDigits=a}static parse(e,t){if(e.length!==3)return t.error("Expected two arguments.");const n=t.parse(e[1],1,y);if(!n)return null;const i=e[2];if(typeof i!="object"||Array.isArray(i))return t.error("NumberFormat options argument must be an object.");let o=null;if(i.locale&&(o=t.parse(i.locale,1,M),!o))return null;let a=null;if(i.currency&&(a=t.parse(i.currency,1,M),!a))return null;let s=null;if(i.unit&&(s=t.parse(i.unit,1,M),!s))return null;let l=null;if(i["min-fraction-digits"]&&(l=t.parse(i["min-fraction-digits"],1,y),!l))return null;let u=null;return i["max-fraction-digits"]&&(u=t.parse(i["max-fraction-digits"],1,y),!u)?null:new un(n,o,a,s,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency&&"currency"||this.unit&&"unit"||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class cn{constructor(e){this.type=y,this.input=e}static parse(e,t){if(e.length!==2)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?n.type.kind!=="array"&&n.type.kind!=="string"&&n.type.kind!=="value"?t.error(`Expected argument of type string or array, but found ${B(n.type)} instead.`):new cn(n):null}evaluate(e){const t=this.input.evaluate(e);if(typeof t=="string")return t.length;if(Array.isArray(t))return t.length;throw new te(`Expected value to be of type string or array, but found ${B(Q(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(t=>{e.push(t.serialize())}),e}}var Hs=cn;const Mi={"==":Gs,"!=":Vs,">":Us,"<":Ns,">=":Zs,"<=":Bs,array:ke,at:zs,boolean:ke,case:Cs,coalesce:Ii,collator:Xt,format:Zt,image:Ht,in:Ss,"index-of":Fs,interpolate:Me,"interpolate-hcl":Me,"interpolate-lab":Me,length:Hs,let:_i,literal:Dt,match:Es,number:ke,"number-format":un,object:ke,slice:Is,step:wi,string:ke,"to-boolean":Ve,"to-color":Ve,"to-number":Ve,"to-string":Ve,var:xi,within:Jr};function $n(r,[e,t,n,i]){e=e.evaluate(r),t=t.evaluate(r),n=n.evaluate(r);const o=i?i.evaluate(r):1,a=fi(e,t,n,o);if(a)throw new te(a);return new ue(e/255*o,t/255*o,n/255*o,o)}function On(r,e){return r in e}function mr(r,e){const t=e[r];return typeof t>"u"?null:t}function Xs(r,e,t,n){for(;t<=n;){const i=t+n>>1;if(e[i]===r)return!0;e[i]>r?n=i-1:t=i+1}return!1}function _e(r){return{type:r}}Ke.register(Mi,{error:[Ba,[M],(r,[e])=>{throw new te(e.evaluate(r))}],typeof:[M,[P],(r,[e])=>B(Q(e.evaluate(r)))],"to-rgba":[me(y,4),[ze],(r,[e])=>e.evaluate(r).toArray()],rgb:[ze,[y,y,y],$n],rgba:[ze,[y,y,y,y],$n],has:{type:_,overloads:[[[M],(r,[e])=>On(e.evaluate(r),r.properties())],[[M,Be],(r,[e,t])=>On(e.evaluate(r),t.evaluate(r))]]},get:{type:P,overloads:[[[M],(r,[e])=>mr(e.evaluate(r),r.properties())],[[M,Be],(r,[e,t])=>mr(e.evaluate(r),t.evaluate(r))]]},"feature-state":[P,[M],(r,[e])=>mr(e.evaluate(r),r.featureState||{})],properties:[Be,[],r=>r.properties()],"geometry-type":[M,[],r=>r.geometryType()],id:[P,[],r=>r.id()],zoom:[y,[],r=>r.globals.zoom],pitch:[y,[],r=>r.globals.pitch||0],"distance-from-center":[y,[],r=>r.distanceFromCenter()],"heatmap-density":[y,[],r=>r.globals.heatmapDensity||0],"line-progress":[y,[],r=>r.globals.lineProgress||0],"sky-radial-progress":[y,[],r=>r.globals.skyRadialProgress||0],accumulated:[P,[],r=>r.globals.accumulated===void 0?null:r.globals.accumulated],"+":[y,_e(y),(r,e)=>{let t=0;for(const n of e)t+=n.evaluate(r);return t}],"*":[y,_e(y),(r,e)=>{let t=1;for(const n of e)t*=n.evaluate(r);return t}],"-":{type:y,overloads:[[[y,y],(r,[e,t])=>e.evaluate(r)-t.evaluate(r)],[[y],(r,[e])=>-e.evaluate(r)]]},"/":[y,[y,y],(r,[e,t])=>e.evaluate(r)/t.evaluate(r)],"%":[y,[y,y],(r,[e,t])=>e.evaluate(r)%t.evaluate(r)],ln2:[y,[],()=>Math.LN2],pi:[y,[],()=>Math.PI],e:[y,[],()=>Math.E],"^":[y,[y,y],(r,[e,t])=>Math.pow(e.evaluate(r),t.evaluate(r))],sqrt:[y,[y],(r,[e])=>Math.sqrt(e.evaluate(r))],log10:[y,[y],(r,[e])=>Math.log(e.evaluate(r))/Math.LN10],ln:[y,[y],(r,[e])=>Math.log(e.evaluate(r))],log2:[y,[y],(r,[e])=>Math.log(e.evaluate(r))/Math.LN2],sin:[y,[y],(r,[e])=>Math.sin(e.evaluate(r))],cos:[y,[y],(r,[e])=>Math.cos(e.evaluate(r))],tan:[y,[y],(r,[e])=>Math.tan(e.evaluate(r))],asin:[y,[y],(r,[e])=>Math.asin(e.evaluate(r))],acos:[y,[y],(r,[e])=>Math.acos(e.evaluate(r))],atan:[y,[y],(r,[e])=>Math.atan(e.evaluate(r))],min:[y,_e(y),(r,e)=>Math.min(...e.map(t=>t.evaluate(r)))],max:[y,_e(y),(r,e)=>Math.max(...e.map(t=>t.evaluate(r)))],abs:[y,[y],(r,[e])=>Math.abs(e.evaluate(r))],round:[y,[y],(r,[e])=>{const t=e.evaluate(r);return t<0?-Math.round(-t):Math.round(t)}],floor:[y,[y],(r,[e])=>Math.floor(e.evaluate(r))],ceil:[y,[y],(r,[e])=>Math.ceil(e.evaluate(r))],"filter-==":[_,[M,P],(r,[e,t])=>r.properties()[e.value]===t.value],"filter-id-==":[_,[P],(r,[e])=>r.id()===e.value],"filter-type-==":[_,[M],(r,[e])=>r.geometryType()===e.value],"filter-<":[_,[M,P],(r,[e,t])=>{const n=r.properties()[e.value],i=t.value;return typeof n==typeof i&&n{const t=r.id(),n=e.value;return typeof t==typeof n&&t":[_,[M,P],(r,[e,t])=>{const n=r.properties()[e.value],i=t.value;return typeof n==typeof i&&n>i}],"filter-id->":[_,[P],(r,[e])=>{const t=r.id(),n=e.value;return typeof t==typeof n&&t>n}],"filter-<=":[_,[M,P],(r,[e,t])=>{const n=r.properties()[e.value],i=t.value;return typeof n==typeof i&&n<=i}],"filter-id-<=":[_,[P],(r,[e])=>{const t=r.id(),n=e.value;return typeof t==typeof n&&t<=n}],"filter->=":[_,[M,P],(r,[e,t])=>{const n=r.properties()[e.value],i=t.value;return typeof n==typeof i&&n>=i}],"filter-id->=":[_,[P],(r,[e])=>{const t=r.id(),n=e.value;return typeof t==typeof n&&t>=n}],"filter-has":[_,[P],(r,[e])=>e.value in r.properties()],"filter-has-id":[_,[],r=>r.id()!==null&&r.id()!==void 0],"filter-type-in":[_,[me(M)],(r,[e])=>e.value.indexOf(r.geometryType())>=0],"filter-id-in":[_,[me(P)],(r,[e])=>e.value.indexOf(r.id())>=0],"filter-in-small":[_,[M,me(P)],(r,[e,t])=>t.value.indexOf(r.properties()[e.value])>=0],"filter-in-large":[_,[M,me(P)],(r,[e,t])=>Xs(r.properties()[e.value],t.value,0,t.value.length-1)],all:{type:_,overloads:[[[_,_],(r,[e,t])=>e.evaluate(r)&&t.evaluate(r)],[_e(_),(r,e)=>{for(const t of e)if(!t.evaluate(r))return!1;return!0}]]},any:{type:_,overloads:[[[_,_],(r,[e,t])=>e.evaluate(r)||t.evaluate(r)],[_e(_),(r,e)=>{for(const t of e)if(t.evaluate(r))return!0;return!1}]]},"!":[_,[_],(r,[e])=>!e.evaluate(r)],"is-supported-script":[_,[M],(r,[e])=>{const t=r.globals&&r.globals.isSupportedScript;return t?t(e.evaluate(r)):!0}],upcase:[M,[M],(r,[e])=>e.evaluate(r).toUpperCase()],downcase:[M,[M],(r,[e])=>e.evaluate(r).toLowerCase()],concat:[M,_e(P),(r,e)=>e.map(t=>pt(t.evaluate(r))).join("")],"resolved-locale":[M,[Ut],(r,[e])=>e.evaluate(r).resolvedLocale()]});var Ai=Mi;function Ir(r){return{result:"success",value:r}}function Oe(r){return{result:"error",value:r}}function Ws(r){return r["property-type"]==="data-driven"}function Ks(r){return!!r.expression&&r.expression.parameters.indexOf("zoom")>-1}function Js(r){return!!r.expression&&r.expression.interpolated}function Di(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}class Ys{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new hi,this._defaultValue=t?rl(t):null,this._enumValues=t&&t.type==="enum"?t.values:null}evaluateWithoutErrorHandling(e,t,n,i,o,a,s,l){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=a,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=l||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,i,o,a,s,l){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=a||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=l||null;try{const u=this.expression.evaluate(this._evaluator);if(u==null||typeof u=="number"&&u!==u)return this._defaultValue;if(this._enumValues&&!(u in this._enumValues))throw new te(`Expected value to be one of ${Object.keys(this._enumValues).map(c=>JSON.stringify(c)).join(", ")}, but found ${JSON.stringify(u)} instead.`);return u}catch(u){return this._warningHistory[u.message]||(this._warningHistory[u.message]=!0,typeof console<"u"&&console.warn(u.message)),this._defaultValue}}}function Qs(r){return Array.isArray(r)&&r.length>0&&typeof r[0]=="string"&&r[0]in Ai}function _r(r,e){const t=new bi(Ai,[],e?tl(e):void 0),n=t.parse(r,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return n?Ir(new Ys(n,e)):Oe(t.errors)}class qn{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent=e!=="constant"&&!Yr(t.expression)}evaluateWithoutErrorHandling(e,t,n,i,o,a){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,o,a)}evaluate(e,t,n,i,o,a){return this._styleExpression.evaluate(e,t,n,i,o,a)}}class Gn{constructor(e,t,n,i){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent=e!=="camera"&&!Yr(t.expression),this.interpolationType=i}evaluateWithoutErrorHandling(e,t,n,i,o,a){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,o,a)}evaluate(e,t,n,i,o,a){return this._styleExpression.evaluate(e,t,n,i,o,a)}interpolationFactor(e,t,n){return this.interpolationType?Me.interpolationFactor(this.interpolationType,e,t,n):0}}function el(r,e){if(r=_r(r,e),r.result==="error")return r;const t=r.value.expression,n=Wt(t);if(!n&&!Ws(e))return Oe([new be("","data expressions not supported")]);const i=Qr(t,["zoom","pitch","distance-from-center"]);if(!i&&!Ks(e))return Oe([new be("","zoom expressions not supported")]);const o=Pt(t);if(!o&&!i)return Oe([new be("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof be)return Oe([o]);if(o instanceof Me&&!Js(e))return Oe([new be("",'"interpolate" expressions cannot be used with this property')]);if(!o)return Ir(n?new qn("constant",r.value):new qn("source",r.value));const a=o instanceof Me?o.interpolation:void 0;return Ir(n?new Gn("camera",r.value,o.labels,a):new Gn("composite",r.value,o.labels,a))}function Pt(r){let e=null;if(r instanceof _i)e=Pt(r.result);else if(r instanceof Ii){for(const t of r.args)if(e=Pt(t),e)break}else(r instanceof wi||r instanceof Me)&&r.input instanceof Ke&&r.input.name==="zoom"&&(e=r);return e instanceof be||r.eachChild(t=>{const n=Pt(t);n instanceof be?e=n:!e&&n?e=new be("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&n&&e!==n&&(e=new be("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function tl(r){const e={color:ze,string:M,number:y,enum:M,boolean:_,formatted:Bt,resolvedImage:yt};return r.type==="array"?me(e[r.value]||P,r.length):e[r.type]}function rl(r){return r.type==="color"&&(Di(r.default)||Array.isArray(r.default))?new ue(0,0,0,0):r.type==="color"?ue.parse(r.default)||null:r.default===void 0?null:r.default}function nl(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function Pr(r){if(Array.isArray(r))return r.map(Pr);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){const e={};for(const t in r)e[t]=Pr(r[t]);return e}return nl(r)}var ji={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"},"fill-extrusion-edge-radius":{type:"number",private:!0,default:0,minimum:0,maximum:1,"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["fill-extrusion-edge-radius"]}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function Li(r){if(r===!0||r===!1)return!0;if(!Array.isArray(r)||r.length===0)return!1;switch(r[0]){case"has":return r.length>=2&&r[1]!=="$id"&&r[1]!=="$type";case"in":return r.length>=3&&(typeof r[1]!="string"||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return r.length!==3||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(const e of r.slice(1))if(!Li(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function il(r,e="fill"){if(r==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Li(r)||(r=Gt(r));const t=r;let n=!0;try{n=ol(t)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate. This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md and paste the contents of this message in the report. Thank you! diff --git a/openlayers-base-packages/assets/DUrsrXwoWcga.js b/openlayers-base-packages/assets/u7J-5NuTMd9z.js similarity index 81% rename from openlayers-base-packages/assets/DUrsrXwoWcga.js rename to openlayers-base-packages/assets/u7J-5NuTMd9z.js index ff12cf788..a39bd1efa 100644 --- a/openlayers-base-packages/assets/DUrsrXwoWcga.js +++ b/openlayers-base-packages/assets/u7J-5NuTMd9z.js @@ -1 +1 @@ -import{a as k,c as y,r as p,j as e,B as c,S as z,b as m,V as g,f as S}from"./BeGW3nmX4tO2.js";import{t as j}from"./BITOzfKCAZEE.js";import{S as I,T as C,O as M,M as P,H as L,f as R,i as _,k as b,g as E,h as A,l as T,m as s}from"./q4MLRk0u7kxl.js";import{P as H,N as q,I as N}from"./BMa7TTlUnkcm.js";import{_ as v}from"./CmsKOCeNyeyo.js";import{T as i,U,a as h}from"./DM7y0OoBz9e5.js";import"./UlulYB4e5zqK.js";import"./D3gFeNVkNTAB.js";const d="main";class O{mapId=d;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new I({title:"OSM",isBaseLayer:!0,olLayer:new C({source:new M})})]}}}const F={"printing-api-app":{name:"printing-api-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:O,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[{name:"printing.PrintingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:P,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/printing":{name:"@open-pioneer/printing",services:{PrintingServiceImpl:{name:"PrintingServiceImpl",clazz:H,provides:[{name:"printing.PrintingService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"printing.PrintingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:L,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:q,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},G=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.printing-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;-webkit-user-select:none;user-select:none;pointer-events:all;cursor:wait;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#b4b4b4cc}.printing-overlay-status{flex:1 1 auto;font-size:1.5em;text-align:center}.printing-scale-bar.ol-scale-bar{left:var(--printing-scale-bar-left);bottom:var(--printing-scale-bar-bottom)}',D=["en","de"];function B(o){switch(o){case"en":return v(()=>import("./-jAncdI_g-d4.js"),[],import.meta.url).then(r=>r.default);case"de":return v(()=>import("./1YhbJ59n8_2l.js"),[],import.meta.url).then(r=>r.default)}throw new Error(`Unsupported locale: '${o}'`)}const V=k(G),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:B,locales:D,packages:F,styles:V},Symbol.toStringTag,{value:"Module"})),K="printing-api-app",$=R.bind(void 0,K),J=y("printing");function Q(){const{map:o}=_(d),r=$("printing.PrintingService"),[t,n]=p.useState(void 0),f=async()=>{u("canvas")},x=async()=>{u("png")},u=async w=>{o&&await r.printMap(o.olMap).then(a=>{const l=a.getCanvas();w==="canvas"?(l.style.width="100%",l.style.height="100%",n(l)):n(a.getPNGDataURL(.6))},a=>{J.error(a)})};return e.jsx(b,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(E,{title:e.jsx(c,{textAlign:"center",py:1,children:e.jsx(A,{size:"md",children:"OpenLayers Base Packages - Printing API"})}),children:e.jsx(b,{flex:"1",direction:"column",position:"relative",children:e.jsxs(T,{mapId:d,children:[e.jsx(s,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsx(c,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:e.jsxs(z,{pt:5,children:[e.jsx(i,{align:"center",children:"Test Controls:"}),e.jsx(m,{onClick:()=>f(),children:"Canvas"}),e.jsx(m,{onClick:()=>x(),children:"Image data URL"})]})})}),e.jsx(s,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(g,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",maxHeight:"300px",overflow:"auto",children:[e.jsx(i,{as:"b",children:"Description"}),e.jsx(i,{children:"This application can be used to test the printing service. The service provides the screenshot of the given map view in a form of HTMLCanvasElement or a data url."}),e.jsxs(U,{children:[e.jsxs(h,{children:["Clicking on the ","'Canvas'"," button shows the HTMLCanvasElement of the map view embedded in another HTMLElement."]}),e.jsxs(h,{children:["Clicking on the ","'Image data URL'"," button shows the data url of the map view image used as source for HTMLImageElement."]})]})]})}),e.jsx(s,{position:"top-right",horizontalGap:450,verticalGap:10,children:t&&e.jsx(g,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",className:"result-display",maxWidth:"600",maxHeight:"500",children:e.jsx(X,{input:t})})})]})})})})}function X(o){const r=typeof o.input=="string"?o.input:void 0,t=r&&e.jsxs(e.Fragment,{children:[e.jsx(i,{as:"b",children:"Image from data URL"}),e.jsx(N,{src:r})]}),n=typeof o.input!="string"?e.jsx(Y,{canvas:o.input}):void 0;return t||n}function Y(o){const r=p.useRef(null);return p.useEffect(()=>{if(!r.current)return;const t=r.current;return t.appendChild(o.canvas),()=>{t.removeChild(o.canvas)}},[o.canvas]),e.jsxs(e.Fragment,{children:[e.jsx(i,{as:"b",children:"Image from canvas"}),e.jsx(c,{ref:r})]})}const Z=new URLSearchParams(window.location.search),ee=Z.get("lang"),oe=S({component:Q,config:{locale:ee??void 0},theme:j,appMetadata:W});customElements.define("printing-api-app",oe); +import{a as k,c as y,r as p,j as e,B as c,S as z,b as m,V as g,f as S}from"./BeGW3nmX4tO2.js";import{t as j}from"./BITOzfKCAZEE.js";import{S as I,T as C,O as M,M as P,H as L,f as R,i as _,k as b,g as E,h as A,l as T,m as s}from"./BjXju3dgjVrG.js";import{P as H,N as q,I as N}from"./DxMLgDGBfPwt.js";import{_ as v}from"./CmsKOCeNyeyo.js";import{T as i,U,a as h}from"./DM7y0OoBz9e5.js";import"./D1e64i0R5zCb.js";import"./D6bui9ILupw_.js";const d="main";class O{mapId=d;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new I({title:"OSM",isBaseLayer:!0,olLayer:new C({source:new M})})]}}}const F={"printing-api-app":{name:"printing-api-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:O,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[{name:"printing.PrintingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:P,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/printing":{name:"@open-pioneer/printing",services:{PrintingServiceImpl:{name:"PrintingServiceImpl",clazz:H,provides:[{name:"printing.PrintingService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"printing.PrintingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:L,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:q,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}}},G=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.map-container .ol-viewport .ol-attribution{bottom:var(--map-padding-bottom);right:var(--map-padding-right)}.printing-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;-webkit-user-select:none;user-select:none;pointer-events:all;cursor:wait;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#b4b4b4cc}.printing-overlay-status{flex:1 1 auto;font-size:1.5em;text-align:center}.printing-scale-bar.ol-scale-bar{left:var(--printing-scale-bar-left);bottom:var(--printing-scale-bar-bottom)}',D=["en","de"];function B(o){switch(o){case"en":return v(()=>import("./-jAncdI_g-d4.js"),[],import.meta.url).then(r=>r.default);case"de":return v(()=>import("./1YhbJ59n8_2l.js"),[],import.meta.url).then(r=>r.default)}throw new Error(`Unsupported locale: '${o}'`)}const V=k(G),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:B,locales:D,packages:F,styles:V},Symbol.toStringTag,{value:"Module"})),K="printing-api-app",$=R.bind(void 0,K),J=y("printing");function Q(){const{map:o}=_(d),r=$("printing.PrintingService"),[t,n]=p.useState(void 0),f=async()=>{u("canvas")},x=async()=>{u("png")},u=async w=>{o&&await r.printMap(o.olMap).then(a=>{const l=a.getCanvas();w==="canvas"?(l.style.width="100%",l.style.height="100%",n(l)):n(a.getPNGDataURL(.6))},a=>{J.error(a)})};return e.jsx(b,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(E,{title:e.jsx(c,{textAlign:"center",py:1,children:e.jsx(A,{size:"md",children:"OpenLayers Base Packages - Printing API"})}),children:e.jsx(b,{flex:"1",direction:"column",position:"relative",children:e.jsxs(T,{mapId:d,children:[e.jsx(s,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsx(c,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:e.jsxs(z,{pt:5,children:[e.jsx(i,{align:"center",children:"Test Controls:"}),e.jsx(m,{onClick:()=>f(),children:"Canvas"}),e.jsx(m,{onClick:()=>x(),children:"Image data URL"})]})})}),e.jsx(s,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(g,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",maxHeight:"300px",overflow:"auto",children:[e.jsx(i,{as:"b",children:"Description"}),e.jsx(i,{children:"This application can be used to test the printing service. The service provides the screenshot of the given map view in a form of HTMLCanvasElement or a data url."}),e.jsxs(U,{children:[e.jsxs(h,{children:["Clicking on the ","'Canvas'"," button shows the HTMLCanvasElement of the map view embedded in another HTMLElement."]}),e.jsxs(h,{children:["Clicking on the ","'Image data URL'"," button shows the data url of the map view image used as source for HTMLImageElement."]})]})]})}),e.jsx(s,{position:"top-right",horizontalGap:450,verticalGap:10,children:t&&e.jsx(g,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",className:"result-display",maxWidth:"600",maxHeight:"500",children:e.jsx(X,{input:t})})})]})})})})}function X(o){const r=typeof o.input=="string"?o.input:void 0,t=r&&e.jsxs(e.Fragment,{children:[e.jsx(i,{as:"b",children:"Image from data URL"}),e.jsx(N,{src:r})]}),n=typeof o.input!="string"?e.jsx(Y,{canvas:o.input}):void 0;return t||n}function Y(o){const r=p.useRef(null);return p.useEffect(()=>{if(!r.current)return;const t=r.current;return t.appendChild(o.canvas),()=>{t.removeChild(o.canvas)}},[o.canvas]),e.jsxs(e.Fragment,{children:[e.jsx(i,{as:"b",children:"Image from canvas"}),e.jsx(c,{ref:r})]})}const Z=new URLSearchParams(window.location.search),ee=Z.get("lang"),oe=S({component:Q,config:{locale:ee??void 0},theme:j,appMetadata:W});customElements.define("printing-api-app",oe); diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html b/openlayers-base-packages/docs/functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html index 2419c4c18..e98de7612 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html @@ -1,3 +1,3 @@ BasemapSwitcher | Open Pioneer Trails Packages

The BasemapSwitcher component can be used in an app to switch between the different basemaps.

+

Returns ReactNode

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html b/openlayers-base-packages/docs/functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html index 2f834736a..08283e9b2 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html @@ -1,3 +1,3 @@ CoordinateViewer | Open Pioneer Trails Packages

The CoordinateViewer component can be used in an app to render the coordinates at the current mouse position.

+

Returns ReactNode

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_geolocation.Geolocation.html b/openlayers-base-packages/docs/functions/_open_pioneer_geolocation.Geolocation.html index ce4859b49..8c3da635d 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_geolocation.Geolocation.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_geolocation.Geolocation.html @@ -1,2 +1,2 @@ Geolocation | Open Pioneer Trails Packages
+

Returns ReactNode

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_legend.Legend.html b/openlayers-base-packages/docs/functions/_open_pioneer_legend.Legend.html index b7735004c..423972580 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_legend.Legend.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_legend.Legend.html @@ -1,3 +1,3 @@ Legend | Open Pioneer Trails Packages

The Legend component can be used to display the legend of layers that are visible in the map.

+

Returns ReactNode

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.DefaultMapProvider.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.DefaultMapProvider.html index 865f6eaf1..a7a8e843f 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.DefaultMapProvider.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.DefaultMapProvider.html @@ -10,4 +10,4 @@
<DefaultMapProvider map={myMapModel}>
<MapContainer />
<Toc />
</DefaultMapProvider>
-
+
diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.MapAnchor.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.MapAnchor.html index c97d3ad2a..780f47f3a 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.MapAnchor.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.MapAnchor.html @@ -1 +1 @@ -MapAnchor | Open Pioneer Trails Packages
+MapAnchor | Open Pioneer Trails Packages
diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.MapContainer.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.MapContainer.html index e743aa096..2b97ee03e 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.MapContainer.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.MapContainer.html @@ -1,3 +1,3 @@ MapContainer | Open Pioneer Trails Packages
  • Displays the map with the given id.

    There can only be at most one MapContainer for every map.

    -

    Parameters

    Returns Element

+

Parameters

Returns Element

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.calculateBufferedExtent.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.calculateBufferedExtent.html index 67cc26a06..e8c74492e 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.calculateBufferedExtent.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.calculateBufferedExtent.html @@ -1,3 +1,3 @@ calculateBufferedExtent | Open Pioneer Trails Packages
  • Computes a buffered extent using the given original extent.

    Use the factor (1.2 by default) to specify the size increase.

    -

    Parameters

    • extent: Extent
    • factor: number = DEFAULT_BUFFER_FACTOR

    Returns Extent

+

Parameters

  • extent: Extent
  • factor: number = DEFAULT_BUFFER_FACTOR

Returns Extent

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.getProjection.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.getProjection.html index 721c881e3..b93089820 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.getProjection.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.getProjection.html @@ -1,2 +1,2 @@ getProjection | Open Pioneer Trails Packages
  • Searches the global proj4js definition set for a definition with the given name.

    -

    Parameters

    • name: string

    Returns Proj4ProjectionDefinition

+

Parameters

  • name: string

Returns Proj4ProjectionDefinition

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.isLayer.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.isLayer.html index 245c2c585..ddcab4f5f 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.isLayer.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.isLayer.html @@ -1,2 +1,2 @@ isLayer | Open Pioneer Trails Packages
+

Parameters

Returns layer is Layer

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.isSublayer.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.isSublayer.html index 647a6ca90..958839321 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.isSublayer.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.isSublayer.html @@ -1,2 +1,2 @@ isSublayer | Open Pioneer Trails Packages
+

Parameters

Returns layer is WMSSublayer

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.registerProjections.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.registerProjections.html index 06327b571..b86073869 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.registerProjections.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.registerProjections.html @@ -6,4 +6,4 @@

Parameters

  • projections: Record<string, ProjectionDefinition>

    An object containing (key, definition) pairs. The key must be projection name (such as "EPSG:4326"). The value can be a string defining the projection or an existing proj4 definition object.

    -

Returns void

+

Returns void

diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useCenter.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useCenter.html index b48389c51..e8d2ce363 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useCenter.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useCenter.html @@ -1,3 +1,3 @@ useCenter | Open Pioneer Trails Packages
  • Returns the current center coordinates of the map.

    Parameters

    • map: undefined | Map

    Returns Coordinate | undefined

    Use mapModel.center instead.

    -
+
diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useMapModel.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useMapModel.html index ca00679a1..f5892afe0 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useMapModel.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useMapModel.html @@ -2,9 +2,9 @@

Returns an object representing the progress, which will eventually represent either the map model value or an initialization error.

The map model cannot be returned directly because it may not have completed its initialization yet.

-

Parameters

  • mapId: string

Returns UseMapModelResult

  • React hook that resolves a map model specified by the given props (see MapModelProps).

    +

    Parameters

    • mapId: string

    Returns UseMapModelResult

  • React hook that resolves a map model specified by the given props (see MapModelProps).

    Returns an object representing the progress, which will eventually represent either the map model value or an initialization error.

    The map model cannot be returned directly because it may not have completed its initialization yet.

    -

    Parameters

    Returns UseMapModelResult

  • React hook that returns the default map model (if available, see DefaultMapProvider).

    -

    Returns UseMapModelResult

  • +

    Parameters

    Returns UseMapModelResult

  • React hook that returns the default map model (if available, see DefaultMapProvider).

    +

    Returns UseMapModelResult

  • diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useProjection.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useProjection.html index 688f444f7..8af6dfd1a 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useProjection.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useProjection.html @@ -1,3 +1,3 @@ useProjection | Open Pioneer Trails Packages
    • Returns the current projection of the map.

      Parameters

      • map: undefined | Map

      Returns Projection | undefined

      Use mapModel.projection instead.

      -
    +
    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useResolution.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useResolution.html index 9ba9008c9..3dc7684e1 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useResolution.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useResolution.html @@ -1,3 +1,3 @@ useResolution | Open Pioneer Trails Packages
    • Returns the current resolution of the map.

      Parameters

      • map: undefined | Map

      Returns number | undefined

      Use mapModel.resolution instead.

      -
    +
    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useScale.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useScale.html index 575a8c996..005d85d19 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useScale.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useScale.html @@ -1,3 +1,3 @@ useScale | Open Pioneer Trails Packages
    • Returns the current scale of the map.

      Parameters

      • map: undefined | Map

      Returns number | undefined

      Use mapModel.scale instead.

      -
    +
    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useView.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useView.html index a6239976e..0128d73ba 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useView.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useView.html @@ -1,3 +1,3 @@ useView | Open Pioneer Trails Packages
    • Returns the current view of the given map.

      Parameters

      • map: undefined | Map

      Returns OlView | undefined

      Use mapModel.olView instead.

      -
    +
    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.History.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.History.html index ae4a0091e..2acfe611f 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.History.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.History.html @@ -1,3 +1,3 @@ History | Open Pioneer Trails Packages

    Provides a button by which the user can navigate forward or backward in the view history of the map.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.HistoryBackward.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.HistoryBackward.html index 9aefa0a49..2d336ec0f 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.HistoryBackward.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.HistoryBackward.html @@ -1,4 +1,4 @@ HistoryBackward | Open Pioneer Trails Packages

    Provides a button by which the user can navigate to the previous map view.

    This component composes History.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.HistoryForward.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.HistoryForward.html index f53f76af5..288395645 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.HistoryForward.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.HistoryForward.html @@ -1,4 +1,4 @@ HistoryForward | Open Pioneer Trails Packages

    Provides a button by which the user can navigate to the next map view.

    This component composes History.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.InitialExtent.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.InitialExtent.html index a9b008768..b9894e6fb 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.InitialExtent.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.InitialExtent.html @@ -1,3 +1,3 @@ InitialExtent | Open Pioneer Trails Packages

    Provides a simple button that switches the view to its initial viewpoint.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.Zoom.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.Zoom.html index 78fca02ce..4f8cac252 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.Zoom.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.Zoom.html @@ -1,3 +1,3 @@ Zoom | Open Pioneer Trails Packages

    Provides a button by which the user can zoom in or zoom out of the map.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomIn.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomIn.html index 08bedf016..6c4f452e8 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomIn.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomIn.html @@ -1,4 +1,4 @@ ZoomIn | Open Pioneer Trails Packages

    Provides a button by which the user can zoom into the map.

    This component composes Zoom.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomOut.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomOut.html index 0e31d2916..80e65e27b 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomOut.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomOut.html @@ -1,4 +1,4 @@ ZoomOut | Open Pioneer Trails Packages

    Provides a button by which the user can zoom out of the map.

    This component composes Zoom.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.createServiceOptions.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.createServiceOptions.html index b0f92573b..505ac2141 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.createServiceOptions.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.createServiceOptions.html @@ -1,4 +1,4 @@ createServiceOptions | Open Pioneer Trails Packages
    • Creates (service name, service implementation)-pairs suitable for the services option of the PackageContextProvider.

      This helper method can be used to avoid hard-coding service names used in the implementation.

      -

      Parameters

      Returns Record<string, unknown>

    +

    Parameters

    Returns Record<string, unknown>

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.setupMap.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.setupMap.html index 27c832c83..199a11875 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.setupMap.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.setupMap.html @@ -1,4 +1,4 @@ setupMap | Open Pioneer Trails Packages
    • Creates a simple map registry service with exactly one map configuration.

      The map is configured by using the options parameter.

      Returns the map registry and the id of the configured map.

      -

      Parameters

      Returns Promise<{
          mapId: string;
          registry: Service<MapRegistryImpl>;
      }>

    +

    Parameters

    Returns Promise<{
        mapId: string;
        registry: Service<MapRegistryImpl>;
    }>

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForInitialExtent.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForInitialExtent.html index 8ae823897..3515aef22 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForInitialExtent.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForInitialExtent.html @@ -1,2 +1,2 @@ waitForInitialExtent | Open Pioneer Trails Packages
    • Waits until the model has an initial extent.

      -

      Parameters

      Returns Promise<void>

    +

    Parameters

    Returns Promise<void>

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForMapMount.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForMapMount.html index 9b3b508f2..4470b95e9 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForMapMount.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForMapMount.html @@ -1,2 +1,2 @@ waitForMapMount | Open Pioneer Trails Packages
    • Waits until the OpenLayers map has been mounted in the parent with the given id.

      -

      Parameters

      • parentTestId: string = "base"

      Returns Promise<HTMLElement>

    +

    Parameters

    • parentTestId: string = "base"

    Returns Promise<HTMLElement>

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_ui_components.ToolButton.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_ui_components.ToolButton.html index 66e61673e..805d91b4c 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_ui_components.ToolButton.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_ui_components.ToolButton.html @@ -1,3 +1,3 @@ ToolButton | Open Pioneer Trails Packages

    An button with a tooltip, used for tool buttons on a map.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_measurement.Measurement.html b/openlayers-base-packages/docs/functions/_open_pioneer_measurement.Measurement.html index 416cdeee3..daddbd4bd 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_measurement.Measurement.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_measurement.Measurement.html @@ -1,3 +1,3 @@ Measurement | Open Pioneer Trails Packages

    The Measurement component can be used in an app to measure geometries (areas or lines) on the map.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_overview_map.OverviewMap.html b/openlayers-base-packages/docs/functions/_open_pioneer_overview_map.OverviewMap.html index 5419f91e2..04924451f 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_overview_map.OverviewMap.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_overview_map.OverviewMap.html @@ -1,3 +1,3 @@ OverviewMap | Open Pioneer Trails Packages

    The OverviewMap component can be used in an app to have a better overview of the current location in the map.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_printing.Printing.html b/openlayers-base-packages/docs/functions/_open_pioneer_printing.Printing.html index 713b9a7d6..f39b1a721 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_printing.Printing.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_printing.Printing.html @@ -1,3 +1,3 @@ Printing | Open Pioneer Trails Packages

    The Printing component can be used to download the current map view as a printable file.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_result_list.ResultList.html b/openlayers-base-packages/docs/functions/_open_pioneer_result_list.ResultList.html index 284117d0c..472512e5b 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_result_list.ResultList.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_result_list.ResultList.html @@ -1,3 +1,3 @@ ResultList | Open Pioneer Trails Packages

    A component that displays a set of features as a list.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_scale_bar.ScaleBar.html b/openlayers-base-packages/docs/functions/_open_pioneer_scale_bar.ScaleBar.html index 9aa2bb8f8..dabe18ecd 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_scale_bar.ScaleBar.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_scale_bar.ScaleBar.html @@ -1,2 +1,2 @@ ScaleBar | Open Pioneer Trails Packages
    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_scale_setter.ScaleSetter.html b/openlayers-base-packages/docs/functions/_open_pioneer_scale_setter.ScaleSetter.html index 7f0a1b29a..58c82e869 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_scale_setter.ScaleSetter.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_scale_setter.ScaleSetter.html @@ -1,3 +1,3 @@ ScaleSetter | Open Pioneer Trails Packages

    Displays the current scale and allows the user to change it.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_scale_viewer.ScaleViewer.html b/openlayers-base-packages/docs/functions/_open_pioneer_scale_viewer.ScaleViewer.html index c1aa3dd71..a33f86166 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_scale_viewer.ScaleViewer.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_scale_viewer.ScaleViewer.html @@ -1,2 +1,2 @@ ScaleViewer | Open Pioneer Trails Packages
    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_search.Search.html b/openlayers-base-packages/docs/functions/_open_pioneer_search.Search.html index e6ee1bc3a..11d6a99e3 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_search.Search.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_search.Search.html @@ -1,3 +1,3 @@ Search | Open Pioneer Trails Packages

    A component that allows the user to search a given set of SearchSources.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_selection.Selection.html b/openlayers-base-packages/docs/functions/_open_pioneer_selection.Selection.html index c5508d1eb..c3f4a673c 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_selection.Selection.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_selection.Selection.html @@ -1,3 +1,3 @@ Selection | Open Pioneer Trails Packages

    A component that allows the user to perform a spatial selection on a given set of SelectionSource.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_spatial_bookmarks.SpatialBookmarks.html b/openlayers-base-packages/docs/functions/_open_pioneer_spatial_bookmarks.SpatialBookmarks.html index 1d783fa0b..404fc62bc 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_spatial_bookmarks.SpatialBookmarks.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_spatial_bookmarks.SpatialBookmarks.html @@ -1,3 +1,3 @@ SpatialBookmarks | Open Pioneer Trails Packages

    A component that allows the user to manage a set of spatial bookmarks.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_toc.Toc.html b/openlayers-base-packages/docs/functions/_open_pioneer_toc.Toc.html index 30450c0df..9d3b8e3af 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_toc.Toc.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_toc.Toc.html @@ -1,3 +1,3 @@ Toc | Open Pioneer Trails Packages

    Displays the layers of the configured map.

    +

    Returns ReactNode

    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html index 36193a673..d40f0b9b2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html @@ -1,5 +1,5 @@ BasemapSwitcherProps | Open Pioneer Trails Packages

    These are special properties for the BasemapSwitcher.

    -
    interface BasemapSwitcherProps {
        allowSelectingEmptyBasemap?: boolean;
        aria-label?: string;
        aria-labelledby?: string;
        className?: string;
        map?: MapModel;
        mapId?: string;
    }

    Hierarchy (view full)

    Properties

    interface BasemapSwitcherProps {
        allowSelectingEmptyBasemap?: boolean;
        aria-label?: string;
        aria-labelledby?: string;
        className?: string;
        map?: MapModel;
        mapId?: string;
    }

    Hierarchy (view full)

    Properties

    allowSelectingEmptyBasemap?: boolean

    Specifies whether an option to deactivate all basemap layers is available in the BasemapSwitcher. Defaults to false.

    -
    aria-label?: string

    Optional aria-label property. +

    aria-label?: string

    Optional aria-label property. Do not use together with aria-label.

    -
    aria-labelledby?: string

    Optional aria-labelledby property. +

    aria-labelledby?: string

    Optional aria-labelledby property. Do not use together with aria-label.

    -
    className?: string

    Additional css class name(s) that will be added to the BasemapSwitcher component.

    -
    map?: MapModel

    The direct map model reference to use. +

    className?: string

    Additional css class name(s) that will be added to the BasemapSwitcher component.

    +
    map?: MapModel

    The direct map model reference to use. This property can be used as an alternative to the mapId.

    -
    mapId?: string

    The id of the map. +

    mapId?: string

    The id of the map. The map will be looked up in the MapRegistry service.

    -
    +
    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html index e50ab4354..8da88f6cc 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html @@ -1,17 +1,17 @@ CoordinateViewerProps | Open Pioneer Trails Packages

    These are special properties for the CoordinateViewer.

    -
    interface CoordinateViewerProps {
        displayProjectionCode?: string;
        format?: "decimal" | "degree";
        map?: MapModel;
        mapId?: string;
        precision?: number;
    }

    Hierarchy (view full)

    Properties

    interface CoordinateViewerProps {
        displayProjectionCode?: string;
        format?: "decimal" | "degree";
        map?: MapModel;
        mapId?: string;
        precision?: number;
    }

    Hierarchy (view full)

    Properties

    displayProjectionCode?: string

    Projection of the coordinates shown in the rendered HTML, does not affect the map projection

    -
    format?: "decimal" | "degree"

    Configures the display format. +

    format?: "decimal" | "degree"

    Configures the display format. By default, the current coordinates are shown as decimal numbers (format: "decimal").

    If the format is set to "degree", the coordinates are shown in angular degrees (DMS). This can only be used meaningfully (at this time) if the underlying projection provides lat/lon coordinates.

    -
    map?: MapModel

    The direct map model reference to use. +

    map?: MapModel

    The direct map model reference to use. This property can be used as an alternative to the mapId.

    -
    mapId?: string

    The id of the map. +

    mapId?: string

    The id of the map. The map will be looked up in the MapRegistry service.

    -
    precision?: number

    Number of decimal places shown for coordinates.

    -
    +
    precision?: number

    Number of decimal places shown for coordinates.

    +
    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingService.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingService.html index 353fab889..56f4d1191 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingService.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingService.html @@ -1,11 +1,11 @@ EditingService | Open Pioneer Trails Packages

    The editing service allows to start and handle editing workflows.

    Inject an instance of this service by referencing the interface name "editing.EditingService".

    -
    interface EditingService {
        createFeature(map: MapModel, ogcApiFeatureLayerUrl: URL): EditingWorkflow;
        reset(mapId: string): void;
        stop(mapId: string): void;
        updateFeature(map: MapModel, ogcApiFeatureLayerUrl: URL, feature: Feature<Geometry>): EditingWorkflow;
    }

    Hierarchy

    • DeclaredService<"editing.EditingService">
      • EditingService

    Methods

    interface EditingService {
        createFeature(map: MapModel, ogcApiFeatureLayerUrl: URL): EditingWorkflow;
        reset(mapId: string): void;
        stop(mapId: string): void;
        updateFeature(map: MapModel, ogcApiFeatureLayerUrl: URL, feature: Feature<Geometry>): EditingWorkflow;
    }

    Hierarchy

    • DeclaredService<"editing.EditingService">
      • EditingService

    Methods

    • Resets the unfinished geometry from an existing EditingWorkflow without leaving the edit mode.

      -

      Parameters

      • mapId: string

      Returns void

    • Stops the edit mode and removes an existing EditingWorkflow.

      -

      Parameters

      • mapId: string

      Returns void

    +

    Parameters

    Returns EditingWorkflow

    • Resets the unfinished geometry from an existing EditingWorkflow without leaving the edit mode.

      +

      Parameters

      • mapId: string

      Returns void

    • Stops the edit mode and removes an existing EditingWorkflow.

      +

      Parameters

      • mapId: string

      Returns void

    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingWorkflow.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingWorkflow.html index 35f8c8cc9..a7a956bcf 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingWorkflow.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingWorkflow.html @@ -1,15 +1,15 @@ EditingWorkflow | Open Pioneer Trails Packages

    EditingWorkflows are created by the EditingService and represent a currently ongoing editing workflow.

    -
    interface EditingWorkflow {
        getState(): EditingWorkflowState;
        reset(): void;
        stop(): void;
        triggerSave(): void;
        whenComplete(): Promise<undefined | Record<string, string>>;
    }

    Methods

    interface EditingWorkflow {
        getState(): EditingWorkflowState;
        reset(): void;
        stop(): void;
        triggerSave(): void;
        whenComplete(): Promise<undefined | Record<string, string>>;
    }

    Methods

    • Resets this workflow to its initial state.

      -

      Returns void

    • Stops this editing operation.

      -

      Returns void

    • Trigger saving the currently drawn/updated feature.

      -

      Returns void

    • Wait for the editing to be finished. The returned promise resolves with the +

      Returns EditingWorkflowState

    • Resets this workflow to its initial state.

      +

      Returns void

    • Stops this editing operation.

      +

      Returns void

    • Trigger saving the currently drawn/updated feature.

      +

      Returns void

    • Wait for the editing to be finished. The returned promise resolves with the feature ID when saving was successful and rejects if saving the feature failed. It resolves with undefined when the editing was stopped.

      -

      Returns Promise<undefined | Record<string, string>>

    +

    Returns Promise<undefined | Record<string, string>>

    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_geolocation.GeolocationProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_geolocation.GeolocationProps.html index dade52c74..1b351c558 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_geolocation.GeolocationProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_geolocation.GeolocationProps.html @@ -1,18 +1,18 @@ GeolocationProps | Open Pioneer Trails Packages

    These are properties supported by the Geolocation component.

    -
    interface GeolocationProps {
        accuracyFeatureStyle?: StyleLike;
        map?: MapModel;
        mapId?: string;
        maxZoom?: number;
        positionFeatureStyle?: StyleLike;
        trackingOptions?: PositionOptions;
    }

    Hierarchy (view full)

    • CommonComponentProps
    • RefAttributes<HTMLButtonElement>
    • MapModelProps
      • GeolocationProps

    Properties

    interface GeolocationProps {
        accuracyFeatureStyle?: StyleLike;
        map?: MapModel;
        mapId?: string;
        maxZoom?: number;
        positionFeatureStyle?: StyleLike;
        trackingOptions?: PositionOptions;
    }

    Hierarchy (view full)

    • CommonComponentProps
    • RefAttributes<HTMLButtonElement>
    • MapModelProps
      • GeolocationProps

    Properties

    accuracyFeatureStyle?: StyleLike

    Style to be applied for the accuracy highlight of the positioning feature.

    -
    map?: MapModel

    The direct map model reference to use. +

    map?: MapModel

    The direct map model reference to use. This property can be used as an alternative to the mapId.

    -
    mapId?: string

    The id of the map. +

    mapId?: string

    The id of the map. The map will be looked up in the MapRegistry service.

    -
    maxZoom?: number

    The default maximal zoom level

    -
    positionFeatureStyle?: StyleLike

    Style to be applied for the positioning highlight feature.

    -
    trackingOptions?: PositionOptions

    Position options for the Geolocation-Object. +

    maxZoom?: number

    The default maximal zoom level

    +
    positionFeatureStyle?: StyleLike

    Style to be applied for the positioning highlight feature.

    +
    trackingOptions?: PositionOptions

    Position options for the Geolocation-Object. See PositionOptions for more details.

    NOTE: Changing the tracking options at runtime will reset the component's state.

    -
    +
    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemAttributes.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemAttributes.html index b55c76315..1eda542c2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemAttributes.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemAttributes.html @@ -1,8 +1,8 @@ LegendItemAttributes | Open Pioneer Trails Packages

    Attributes of the legend attribute that can be specified on a layer.

    To show a legend for the layer, provide an imageUrl to an image to show or provide a React component that will be rendered as a legend.

    -
    interface LegendItemAttributes {
        Component?: ComponentType<LegendItemComponentProps>;
        imageUrl?: string;
    }

    Properties

    interface LegendItemAttributes {
        Component?: ComponentType<LegendItemComponentProps>;
        imageUrl?: string;
    }

    Properties

    Component?: ComponentType<LegendItemComponentProps>

    (Optional) React component that will be shown as customized legend for the layer.

    -
    imageUrl?: string

    (Optional) URL to an image that will be shown as a legend for the layer.

    -
    +
    imageUrl?: string

    (Optional) URL to an image that will be shown as a legend for the layer.

    +
    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemComponentProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemComponentProps.html index 5d9c785e3..09b496193 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemComponentProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemComponentProps.html @@ -1,4 +1,4 @@ LegendItemComponentProps | Open Pioneer Trails Packages

    Properties of a legend item React component.

    -
    interface LegendItemComponentProps {
        layer: AnyLayer;
    }

    Properties

    interface LegendItemComponentProps {
        layer: AnyLayer;
    }

    Properties

    Properties

    layer: AnyLayer

    Related layer of the legend.

    -
    +
    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendProps.html index f49c60cea..0c44e9241 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendProps.html @@ -1,11 +1,11 @@ LegendProps | Open Pioneer Trails Packages

    These are special properties for the Legend.

    -
    interface LegendProps {
        map?: MapModel;
        mapId?: string;
        showBaseLayers?: boolean;
    }

    Hierarchy (view full)

    Properties

    interface LegendProps {
        map?: MapModel;
        mapId?: string;
        showBaseLayers?: boolean;
    }

    Hierarchy (view full)

    Properties

    map?: MapModel

    The direct map model reference to use. This property can be used as an alternative to the mapId.

    -
    mapId?: string

    The id of the map. +

    mapId?: string

    The id of the map. The map will be looked up in the MapRegistry service.

    -
    showBaseLayers?: boolean

    Specifies whether legend for active base layer is shown in the legend UI. +

    showBaseLayers?: boolean

    Specifies whether legend for active base layer is shown in the legend UI. Defaults to false.

    -
    +
    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.AnyLayerBaseType.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.AnyLayerBaseType.html index 5a77900e1..7c2108126 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.AnyLayerBaseType.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.AnyLayerBaseType.html @@ -1,7 +1,7 @@ AnyLayerBaseType | Open Pioneer Trails Packages

    Interface AnyLayerBaseType<AdditionalEvents>

    Interface shared by all layer types (operational layers and sublayers).

    Instances of this interface cannot be constructed directly; use a real layer class such as SimpleLayer instead.

    -
    interface AnyLayerBaseType<AdditionalEvents> {
        attributes: Readonly<Record<string | symbol, unknown>>;
        children: undefined | ChildrenCollection<AnyLayer>;
        description: string;
        id: string;
        layers: undefined | GroupLayerCollection;
        legend: undefined | string;
        map: MapModel;
        parent: undefined | AnyLayer;
        sublayers: undefined | SublayersCollection<WMSSublayer>;
        title: string;
        type:
            | "simple"
            | "wms"
            | "wmts"
            | "group"
            | "wms-sublayer";
        visible: boolean;
        deleteAttribute(deleteAttribute: string | symbol): void;
        setDescription(newDescription: string): void;
        setTitle(newTitle: string): void;
        setVisible(newVisibility: boolean): void;
        updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
    }

    Type Parameters

    • AdditionalEvents = {}

    Hierarchy (view full)

    Properties

    interface AnyLayerBaseType<AdditionalEvents> {
        attributes: Readonly<Record<string | symbol, unknown>>;
        children: undefined | ChildrenCollection<AnyLayer>;
        description: string;
        id: string;
        layers: undefined | GroupLayerCollection;
        legend: undefined | string;
        map: MapModel;
        parent: undefined | AnyLayer;
        sublayers: undefined | SublayersCollection<WMSSublayer>;
        title: string;
        type:
            | "simple"
            | "wms"
            | "wmts"
            | "group"
            | "wms-sublayer";
        visible: boolean;
        deleteAttribute(deleteAttribute: string | symbol): void;
        setDescription(newDescription: string): void;
        setTitle(newTitle: string): void;
        setVisible(newVisibility: boolean): void;
        updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
    }

    Type Parameters

    • AdditionalEvents = {}

    Hierarchy (view full)

    Properties

    attributes: Readonly<Record<string | symbol, unknown>>

    Additional attributes associated with this layer.

    -
    children: undefined | ChildrenCollection<AnyLayer>

    The direct children of this layer.

    +
    children: undefined | ChildrenCollection<AnyLayer>

    The direct children of this layer.

    The children may either be a set of operational layers (e.g. for a group layer) or a set of sublayers, or undefined.

    See also layers and sublayers.

    -
    description: string

    The human-readable description of this layer. May be empty.

    -
    id: string

    The unique id of this layer within its map model.

    +
    description: string

    The human-readable description of this layer. May be empty.

    +
    id: string

    The unique id of this layer within its map model.

    NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

    -
    layers: undefined | GroupLayerCollection

    If this layer is a group layer this property contains a collection of all layers that a members to the group.

    +
    layers: undefined | GroupLayerCollection

    If this layer is a group layer this property contains a collection of all layers that a members to the group.

    The property shall be undefined if it is not a group layer.

    The properties layers and sublayers are mutually exclusive.

    -
    legend: undefined | string

    LegendURL from the service capabilities, if available.

    -

    The map this layer belongs to.

    -
    parent: undefined | AnyLayer

    The direct parent of this layer instance, used for sublayers or for layers in a group layer.

    +
    legend: undefined | string

    LegendURL from the service capabilities, if available.

    +

    The map this layer belongs to.

    +
    parent: undefined | AnyLayer

    The direct parent of this layer instance, used for sublayers or for layers in a group layer.

    The property shall be undefined if the layer is not a sublayer or member of a group layer.

    -
    sublayers: undefined | SublayersCollection<WMSSublayer>

    The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

    +
    sublayers: undefined | SublayersCollection<WMSSublayer>

    The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

    Layers that can never have any sublayers may not have a sublayers collection.

    The properties layers and sublayers are mutually exclusive.

    -
    title: string

    The human-readable title of this layer.

    -
    type:
        | "simple"
        | "wms"
        | "wmts"
        | "group"
        | "wms-sublayer"

    Identifies the type of this layer.

    -
    visible: boolean

    Whether the layer is visible or not.

    +
    title: string

    The human-readable title of this layer.

    +
    type:
        | "simple"
        | "wms"
        | "wmts"
        | "group"
        | "wms-sublayer"

    Identifies the type of this layer.

    +
    visible: boolean

    Whether the layer is visible or not.

    NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

    -

    Methods

    • Deletes the attribute of this layer.

      -

      Parameters

      • deleteAttribute: string | symbol

      Returns void

    • Updates the description of this layer.

      -

      Parameters

      • newDescription: string

      Returns void

    • Updates the title of this layer.

      -

      Parameters

      • newTitle: string

      Returns void

    • Updates the visibility of this layer to the new value.

      +

    Methods

    • Deletes the attribute of this layer.

      +

      Parameters

      • deleteAttribute: string | symbol

      Returns void

    • Updates the description of this layer.

      +

      Parameters

      • newDescription: string

      Returns void

    • Updates the title of this layer.

      +

      Parameters

      • newTitle: string

      Returns void

    • Updates the visibility of this layer to the new value.

      NOTE: The visibility of base layers cannot be changed through this method. Call LayerCollection.activateBaseLayer instead.

      -

      Parameters

      • newVisibility: boolean

      Returns void

    • Updates the attributes of this layer. +

      Parameters

      • newVisibility: boolean

      Returns void

    • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

      -

      Parameters

      • newAttributes: Record<string | symbol, unknown>

      Returns void

    +

    Parameters

    • newAttributes: Record<string | symbol, unknown>

    Returns void

    diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.BaseFeature.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.BaseFeature.html index 5126c251d..84ff69d43 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.BaseFeature.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.BaseFeature.html @@ -1,15 +1,15 @@ BaseFeature | Open Pioneer Trails Packages

    Base interface for all feature objects with geometry and / or attribute information.

    -
    interface BaseFeature {
        geometry?: Geometry;
        id: string | number;
        projection?: string;
        properties?: Readonly<Record<string, unknown>>;
        style?: Style;
    }

    Hierarchy

    • BaseFeature

      Properties

      interface BaseFeature {
          geometry?: Geometry;
          id: string | number;
          projection?: string;
          properties?: Readonly<Record<string, unknown>>;
          style?: Style;
      }

      Hierarchy

      • BaseFeature

        Properties

        geometry?: Geometry

        Geometry of the feature. Also specify the projection if geometry is set.

        -
        id: string | number

        Identifier for the feature object. Must be unique within all features of one source/layer.

        +
        id: string | number

        Identifier for the feature object. Must be unique within all features of one source/layer.

        If your source cannot provide a useful id on its own, another strategy to generate unique ids is to generate a UUID instead.

        -
        projection?: string

        The projection of the geometry.

        -
        properties?: Readonly<Record<string, unknown>>

        Properties of the feature.

        -
        style?: Style

        Additional style information for displaying the feature on the map.

        -
        +
        projection?: string

        The projection of the geometry.

        +
        properties?: Readonly<Record<string, unknown>>

        Properties of the feature.

        +
        style?: Style

        Additional style information for displaying the feature on the map.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ChildrenCollection.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ChildrenCollection.html index 94c0e3c5b..64aae7eae 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ChildrenCollection.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ChildrenCollection.html @@ -1,4 +1,4 @@ ChildrenCollection | Open Pioneer Trails Packages

        Contains the children of a layer.

        -
        interface ChildrenCollection<LayerType> {
            getItems(options?: LayerRetrievalOptions): LayerType[];
        }

        Type Parameters

        • LayerType

        Hierarchy (view full)

        Methods

        interface ChildrenCollection<LayerType> {
            getItems(options?: LayerRetrievalOptions): LayerType[];
        }

        Type Parameters

        • LayerType

        Hierarchy (view full)

        Methods

        Methods

        +

        Parameters

        Returns LayerType[]

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.CoordinateConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.CoordinateConfig.html index ac39980cf..1c5fa5f01 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.CoordinateConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.CoordinateConfig.html @@ -1,6 +1,6 @@ CoordinateConfig | Open Pioneer Trails Packages

        Configures a coordinate.

        Coordinates must be valid for the map's configured projection.

        -
        interface CoordinateConfig {
            x: number;
            y: number;
            z?: number;
        }

        Properties

        x +
        interface CoordinateConfig {
            x: number;
            y: number;
            z?: number;
        }

        Properties

        x y z? -

        Properties

        x: number
        y: number
        z?: number
        +

        Properties

        x: number
        y: number
        z?: number
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ExtentConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ExtentConfig.html index 99920c936..29ec66fb4 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ExtentConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ExtentConfig.html @@ -1,7 +1,7 @@ ExtentConfig | Open Pioneer Trails Packages

        Configures an extent.

        Coordinates must be valid for the map's configured projection.

        -
        interface ExtentConfig {
            xMax: number;
            xMin: number;
            yMax: number;
            yMin: number;
        }

        Properties

        interface ExtentConfig {
            xMax: number;
            xMin: number;
            yMax: number;
            yMin: number;
        }

        Properties

        Properties

        xMax: number
        xMin: number
        yMax: number
        yMin: number
        +

        Properties

        xMax: number
        xMin: number
        yMax: number
        yMin: number
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayer.html index cd5851a7b..5a06f11d9 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayer.html @@ -1,7 +1,7 @@ GroupLayer | Open Pioneer Trails Packages

        Represents a group of layers.

        A group layer contains a collection of Layer children. Groups can be nested to form a hierarchy.

        -
        interface GroupLayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: GroupLayerCollection;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            olLayer: LayerGroup;
            parent: undefined | AnyLayer;
            sublayers: undefined;
            title: string;
            type: "group";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        interface GroupLayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: GroupLayerCollection;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            olLayer: LayerGroup;
            parent: undefined | AnyLayer;
            sublayers: undefined;
            title: string;
            type: "group";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        attributes: Readonly<Record<string | symbol, unknown>>

        Additional attributes associated with this layer.

        -
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        +
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        The children may either be a set of operational layers (e.g. for a group layer) or a set of sublayers, or undefined.

        See also layers and sublayers.

        -
        description: string

        The human-readable description of this layer. May be empty.

        -
        id: string

        The unique id of this layer within its map model.

        +
        description: string

        The human-readable description of this layer. May be empty.

        +
        id: string

        The unique id of this layer within its map model.

        NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

        -
        isBaseLayer: boolean

        True if this layer is a base layer.

        +
        isBaseLayer: boolean

        True if this layer is a base layer.

        Only one base layer can be visible at a time.

        -

        Layers contained in this group.

        -
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        -
        loadState: LayerLoadState

        The load state of a layer.

        -

        The map this layer belongs to.

        -
        olLayer: LayerGroup

        Raw OpenLayers group instance.

        +

        Layers contained in this group.

        +
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        +
        loadState: LayerLoadState

        The load state of a layer.

        +

        The map this layer belongs to.

        +
        olLayer: LayerGroup

        Raw OpenLayers group instance.

        Warning: Do not manipulate the collection of layers in this group directly, changes are not synchronized!

        -
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        +
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        The property shall be undefined if the layer is not a sublayer or member of a group layer.

        -
        sublayers: undefined

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        +
        sublayers: undefined

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        Layers that can never have any sublayers may not have a sublayers collection.

        The properties layers and sublayers are mutually exclusive.

        -
        title: string

        The human-readable title of this layer.

        -
        type

        Identifies the type of this layer.

        -
        visible: boolean

        Whether the layer is visible or not.

        +
        title: string

        The human-readable title of this layer.

        +
        type

        Identifies the type of this layer.

        +
        visible: boolean

        Whether the layer is visible or not.

        NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

        -

        Methods

        Methods

        • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

          -

          Parameters

          • newAttributes: Record<string | symbol, unknown>

          Returns void

        +

        Parameters

        • newAttributes: Record<string | symbol, unknown>

        Returns void

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerCollection.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerCollection.html index 2dcf9a816..78b594979 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerCollection.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerCollection.html @@ -1,6 +1,6 @@ GroupLayerCollection | Open Pioneer Trails Packages

        Contains Layer instances that belong to a GroupLayer

        -
        interface GroupLayerCollection {
            getItems(options?: LayerRetrievalOptions): Layer[];
            getLayers(options?: LayerRetrievalOptions): Layer[];
        }

        Hierarchy (view full)

        Methods

        interface GroupLayerCollection {
            getItems(options?: LayerRetrievalOptions): Layer[];
            getLayers(options?: LayerRetrievalOptions): Layer[];
        }

        Hierarchy (view full)

        Methods

        +

        Parameters

        Returns Layer[]

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerConfig.html index 845153067..0d16e0945 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerConfig.html @@ -1,5 +1,5 @@ GroupLayerConfig | Open Pioneer Trails Packages

        Configuration options to construct a GroupLayer.

        -
        interface GroupLayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            layers: Layer[];
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        interface GroupLayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            layers: Layer[];
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        Properties

        attributes?: Record<string | symbol, unknown>

        Additional attributes for this layer. These can be arbitrary values.

        -
        description?: string

        The human-readable description of this layer. +

        description?: string

        The human-readable description of this layer. Defaults to an empty string.

        -
        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. +

        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.

        -
        id?: string

        The unique id of this layer. +

        id?: string

        The unique id of this layer. Defaults to a generated id.

        -
        isBaseLayer?: boolean

        Whether this layer is a base layer or not. +

        isBaseLayer?: boolean

        Whether this layer is a base layer or not. Only one base layer can be active at a time.

        Defaults to false.

        -
        layers: Layer[]

        List of layers that belong to the new group layer.

        +
        layers: Layer[]

        List of layers that belong to the new group layer.

        The group layer takes ownership of the given layers: they will be destroyed when the parent is destroyed. A layer must have a unique parent: it can only be added to the map or a single group layer.

        -
        title: string

        The human-readable title of this layer.

        -
        visible?: boolean

        Whether this layer should initially be visible. +

        title: string

        The human-readable title of this layer.

        +
        visible?: boolean

        Whether this layer should initially be visible. Defaults to true.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerConstructor.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerConstructor.html index 3cbc74cc7..d59d67c5e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerConstructor.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.GroupLayerConstructor.html @@ -1,4 +1,4 @@ -GroupLayerConstructor | Open Pioneer Trails Packages
        interface GroupLayerConstructor {
            new GroupLayerConstructornew (config: GroupLayerConfig): GroupLayer;
            prototype: GroupLayer;
        }

        Constructors

        constructor +GroupLayerConstructor | Open Pioneer Trails Packages
        interface GroupLayerConstructor {
            new GroupLayerConstructornew (config: GroupLayerConfig): GroupLayer;
            prototype: GroupLayer;
        }

        Constructors

        Properties

        Constructors

        Properties

        prototype: GroupLayer
        +

        Parameters

        Returns GroupLayer

        Properties

        prototype: GroupLayer
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Highlight.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Highlight.html index 15e0055f1..823117185 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Highlight.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Highlight.html @@ -1,4 +1,4 @@ Highlight | Open Pioneer Trails Packages

        Represents the additional graphical representations of objects.

        See also MapModel.highlight.

        -
        interface Highlight {
            isActive: boolean;
        }

        Hierarchy

        • Resource
          • Highlight

        Properties

        Properties

        isActive: boolean
        +
        interface Highlight {
            isActive: boolean;
        }

        Hierarchy

        • Resource
          • Highlight

        Properties

        Properties

        isActive: boolean
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightOptions.html index dcbbacd82..d1b2b4285 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightOptions.html @@ -1,4 +1,4 @@ HighlightOptions | Open Pioneer Trails Packages

        Styleoptions supported when creating a new Highlight.

        -
        interface HighlightOptions {
            highlightStyle?: HighlightStyle;
        }

        Hierarchy (view full)

        Properties

        interface HighlightOptions {
            highlightStyle?: HighlightStyle;
        }

        Hierarchy (view full)

        Properties

        Properties

        highlightStyle?: HighlightStyle

        Optional styles to override the default styles.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightZoomOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightZoomOptions.html index 5d2710bf6..8e4e68527 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightZoomOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightZoomOptions.html @@ -1,10 +1,10 @@ HighlightZoomOptions | Open Pioneer Trails Packages

        Options supported by the map model's zoom | highlightAndZoom method.

        -
        interface HighlightZoomOptions {
            highlightStyle?: HighlightStyle;
            maxZoom?: number;
            pointZoom?: number;
            viewPadding?: MapPadding;
        }

        Hierarchy (view full)

        Properties

        interface HighlightZoomOptions {
            highlightStyle?: HighlightStyle;
            maxZoom?: number;
            pointZoom?: number;
            viewPadding?: MapPadding;
        }

        Hierarchy (view full)

        Properties

        highlightStyle?: HighlightStyle

        Optional styles to override the default styles.

        -
        maxZoom?: number

        The maximum zoom-level for multiple points, line or polygon results.

        -
        pointZoom?: number

        The zoom-level used if there is no valid extend (such as for single points).

        -
        viewPadding?: MapPadding

        The view padding to make all features visible.

        -
        +
        maxZoom?: number

        The maximum zoom-level for multiple points, line or polygon results.

        +
        pointZoom?: number

        The zoom-level used if there is no valid extend (such as for single points).

        +
        viewPadding?: MapPadding

        The view padding to make all features visible.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialExtentConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialExtentConfig.html index 88e4b8f33..ce20b5c52 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialExtentConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialExtentConfig.html @@ -1,4 +1,4 @@ InitialExtentConfig | Open Pioneer Trails Packages

        Configures the map's initial extent.

        -
        interface InitialExtentConfig {
            extent: ExtentConfig;
            kind: "extent";
        }

        Properties

        interface InitialExtentConfig {
            extent: ExtentConfig;
            kind: "extent";
        }

        Properties

        Properties

        extent: ExtentConfig
        kind
        +

        Properties

        extent: ExtentConfig
        kind
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialPositionConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialPositionConfig.html index 11f345fd6..8c8e5317f 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialPositionConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialPositionConfig.html @@ -1,5 +1,5 @@ InitialPositionConfig | Open Pioneer Trails Packages

        Configures the map's initial position.

        -
        interface InitialPositionConfig {
            center: CoordinateConfig;
            kind: "position";
            zoom: number;
        }

        Properties

        interface InitialPositionConfig {
            center: CoordinateConfig;
            kind: "position";
            zoom: number;
        }

        Properties

        Properties

        kind
        zoom: number
        +

        Properties

        kind
        zoom: number
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseConfig.html index be1bbd96f..b717949a0 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseConfig.html @@ -1,16 +1,16 @@ LayerBaseConfig | Open Pioneer Trails Packages

        Configuration options supported by all layer types (layers and sublayers).

        -
        interface LayerBaseConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            id?: string;
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        interface LayerBaseConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            id?: string;
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        attributes?: Record<string | symbol, unknown>

        Additional attributes for this layer. These can be arbitrary values.

        -
        description?: string

        The human-readable description of this layer. +

        description?: string

        The human-readable description of this layer. Defaults to an empty string.

        -
        id?: string

        The unique id of this layer. +

        id?: string

        The unique id of this layer. Defaults to a generated id.

        -
        title: string

        The human-readable title of this layer.

        -
        visible?: boolean

        Whether this layer should initially be visible. +

        title: string

        The human-readable title of this layer.

        +
        visible?: boolean

        Whether this layer should initially be visible. Defaults to true.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseEvents.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseEvents.html index 0a7a834ca..42641586d 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseEvents.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseEvents.html @@ -1,3 +1,3 @@ LayerBaseEvents | Open Pioneer Trails Packages

        Events emitted by the Layer and other layer types.

        -
        interface LayerBaseEvents {
            destroy: void;
        }

        Properties

        Properties

        destroy: void
        +
        interface LayerBaseEvents {
            destroy: void;
        }

        Properties

        Properties

        destroy: void
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseType.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseType.html index 4303bcf9a..ad34f4c2f 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseType.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseType.html @@ -1,7 +1,7 @@ LayerBaseType | Open Pioneer Trails Packages

        Interface LayerBaseType<AdditionalEvents>

        Represents an operational layer in the map.

        Instances of this interface cannot be constructed directly; use a real layer class such as SimpleLayer instead.

        -
        interface LayerBaseType<AdditionalEvents> {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: undefined | GroupLayerCollection;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            olLayer: BaseLayer;
            parent: undefined | AnyLayer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type:
                | "simple"
                | "wms"
                | "wmts"
                | "group";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Type Parameters

        • AdditionalEvents = {}

        Hierarchy (view full)

        Properties

        interface LayerBaseType<AdditionalEvents> {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: undefined | GroupLayerCollection;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            olLayer: BaseLayer;
            parent: undefined | AnyLayer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type:
                | "simple"
                | "wms"
                | "wmts"
                | "group";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Type Parameters

        • AdditionalEvents = {}

        Hierarchy (view full)

        Properties

        attributes: Readonly<Record<string | symbol, unknown>>

        Additional attributes associated with this layer.

        -
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        +
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        The children may either be a set of operational layers (e.g. for a group layer) or a set of sublayers, or undefined.

        See also layers and sublayers.

        -
        description: string

        The human-readable description of this layer. May be empty.

        -
        id: string

        The unique id of this layer within its map model.

        +
        description: string

        The human-readable description of this layer. May be empty.

        +
        id: string

        The unique id of this layer within its map model.

        NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

        -
        isBaseLayer: boolean

        True if this layer is a base layer.

        +
        isBaseLayer: boolean

        True if this layer is a base layer.

        Only one base layer can be visible at a time.

        -
        layers: undefined | GroupLayerCollection

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        +
        layers: undefined | GroupLayerCollection

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        The property shall be undefined if it is not a group layer.

        The properties layers and sublayers are mutually exclusive.

        -
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        -
        loadState: LayerLoadState

        The load state of a layer.

        -

        The map this layer belongs to.

        -
        olLayer: BaseLayer

        The raw OpenLayers layer.

        -
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        +
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        +
        loadState: LayerLoadState

        The load state of a layer.

        +

        The map this layer belongs to.

        +
        olLayer: BaseLayer

        The raw OpenLayers layer.

        +
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        The property shall be undefined if the layer is not a sublayer or member of a group layer.

        -
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        +
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        Layers that can never have any sublayers may not have a sublayers collection.

        The properties layers and sublayers are mutually exclusive.

        -
        title: string

        The human-readable title of this layer.

        -
        type:
            | "simple"
            | "wms"
            | "wmts"
            | "group"

        Identifies the type of this layer.

        -
        visible: boolean

        Whether the layer is visible or not.

        +
        title: string

        The human-readable title of this layer.

        +
        type:
            | "simple"
            | "wms"
            | "wmts"
            | "group"

        Identifies the type of this layer.

        +
        visible: boolean

        Whether the layer is visible or not.

        NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

        -

        Methods

        Methods

        • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

          -

          Parameters

          • newAttributes: Record<string | symbol, unknown>

          Returns void

        +

        Parameters

        • newAttributes: Record<string | symbol, unknown>

        Returns void

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollection.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollection.html index 03c378737..4fd86b166 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollection.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollection.html @@ -1,5 +1,5 @@ LayerCollection | Open Pioneer Trails Packages

        Contains the layers known to a MapModel.

        -
        interface LayerCollection {
            activateBaseLayer(id: undefined | string): boolean;
            addLayer(layer: Layer): void;
            getActiveBaseLayer(): undefined | Layer;
            getAllLayers(options?: LayerRetrievalOptions): Layer[];
            getBaseLayers(): Layer[];
            getLayerById(id: string): undefined | AnyLayer;
            getLayerByRawInstance(olLayer: BaseLayer): undefined | Layer;
            getOperationalLayers(options?: LayerRetrievalOptions): Layer[];
            removeLayerById(id: string): void;
        }

        Methods

        interface LayerCollection {
            activateBaseLayer(id: undefined | string): boolean;
            addLayer(layer: Layer): void;
            getActiveBaseLayer(): undefined | Layer;
            getAllLayers(options?: LayerRetrievalOptions): Layer[];
            getBaseLayers(): Layer[];
            getLayerById(id: string): undefined | AnyLayer;
            getLayerByRawInstance(olLayer: BaseLayer): undefined | Layer;
            getOperationalLayers(options?: LayerRetrievalOptions): Layer[];
            removeLayerById(id: string): void;
        }

        Methods

        activateBaseLayer addLayer getActiveBaseLayer getAllLayers @@ -12,16 +12,16 @@ undefined can be used to hide all base layers.

        The associated layer is made visible and all other base layers are hidden.

        Returns true if the given layer has been successfully activated.

        -

        Parameters

        • id: undefined | string

        Returns boolean

        • Adds a new layer to the map.

          +

          Parameters

          • id: undefined | string

          Returns boolean

        • Adds a new layer to the map.

          The new layer is automatically registered with this collection.

          NOTE: by default, the new layer will be shown on top of all existing layers.

          -

          Parameters

          Returns void

        • Returns the layer identified by the id or undefined, if no such layer exists.

          -

          Parameters

          • id: string

          Returns undefined | AnyLayer

        • Given a raw OpenLayers layer instance, returns the associated Layer - or undefined +

          Parameters

          Returns void

        • Returns the layer identified by the id or undefined, if no such layer exists.

          +

          Parameters

          • id: string

          Returns undefined | AnyLayer

        • Given a raw OpenLayers layer instance, returns the associated Layer - or undefined if the layer is unknown to this collection.

          -

          Parameters

          • olLayer: BaseLayer

          Returns undefined | Layer

        • Removes a layer identified by the id from the map.

          +

          Parameters

          • olLayer: BaseLayer

          Returns undefined | Layer

        • Removes a layer identified by the id from the map.

          NOTE: The current implementation only supports removal of top level layers.

          -

          Parameters

          • id: string

          Returns void

        +

        Parameters

        • id: string

        Returns void

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerConfig.html index 3f0007e96..d1ba44eb1 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerConfig.html @@ -1,5 +1,5 @@ LayerConfig | Open Pioneer Trails Packages

        Configuration options supported by all operational layer types.

        -
        interface LayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        interface LayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        Properties

        attributes?: Record<string | symbol, unknown>

        Additional attributes for this layer. These can be arbitrary values.

        -
        description?: string

        The human-readable description of this layer. +

        description?: string

        The human-readable description of this layer. Defaults to an empty string.

        -
        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. +

        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.

        -
        id?: string

        The unique id of this layer. +

        id?: string

        The unique id of this layer. Defaults to a generated id.

        -
        isBaseLayer?: boolean

        Whether this layer is a base layer or not. +

        isBaseLayer?: boolean

        Whether this layer is a base layer or not. Only one base layer can be active at a time.

        Defaults to false.

        -
        title: string

        The human-readable title of this layer.

        -
        visible?: boolean

        Whether this layer should initially be visible. +

        title: string

        The human-readable title of this layer.

        +
        visible?: boolean

        Whether this layer should initially be visible. Defaults to true.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerRetrievalOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerRetrievalOptions.html index 224935b51..ab8362700 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerRetrievalOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerRetrievalOptions.html @@ -1,6 +1,6 @@ LayerRetrievalOptions | Open Pioneer Trails Packages

        These options can be used by some APIs returning an array of layers (or sublayers).

        -
        interface LayerRetrievalOptions {
            sortByDisplayOrder?: boolean;
        }

        Properties

        interface LayerRetrievalOptions {
            sortByDisplayOrder?: boolean;
        }

        Properties

        sortByDisplayOrder?: boolean

        If set to true, layers will be ordered by their display order: Layers listed first in the returned array are shown below layers listed at a later index.

        By default, layers are returned in arbitrary order.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapAnchorProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapAnchorProps.html index b604031b7..920a23e50 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapAnchorProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapAnchorProps.html @@ -1,8 +1,8 @@ -MapAnchorProps | Open Pioneer Trails Packages
        interface MapAnchorProps {
            children?: ReactNode;
            horizontalGap?: number;
            position?: MapAnchorPosition;
            verticalGap?: number;
        }

        Hierarchy

        • CommonComponentProps
          • MapAnchorProps

        Properties

        children? +MapAnchorProps | Open Pioneer Trails Packages
        interface MapAnchorProps {
            children?: ReactNode;
            horizontalGap?: number;
            position?: MapAnchorPosition;
            verticalGap?: number;
        }

        Hierarchy

        • CommonComponentProps
          • MapAnchorProps

        Properties

        children?: ReactNode
        horizontalGap?: number

        Horizontal gap in pixel applied to anchor container.

        +

        Properties

        children?: ReactNode
        horizontalGap?: number

        Horizontal gap in pixel applied to anchor container.

        Applied:

        • left, if position *-left
        • @@ -11,15 +11,15 @@
        0
         
        -

        The position of the anchor container above the map.

        +

        The position of the anchor container above the map.

        "top-right"
         
        -
        verticalGap?: number

        Vertical gap in pixel applied to anchor container.

        +
        verticalGap?: number

        Vertical gap in pixel applied to anchor container.

        Applied:

        • top, if position top-*
        • bottom, if position bottom-*

        0 (If position bottom-*, default verticalGap == 30)

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfig.html index b9f2f3181..f8cb107cd 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfig.html @@ -1,5 +1,5 @@ MapConfig | Open Pioneer Trails Packages

        Options supported during map construction.

        -
        interface MapConfig {
            advanced?: Partial<OlMapOptions>;
            initialView?: InitialViewConfig;
            layers?: Layer[];
            projection?:
                | "EPSG:3857"
                | "EPSG:4326"
                | "EPSG:25832"
                | "EPSG:25833"
                | string & {};
        }

        Properties

        interface MapConfig {
            advanced?: Partial<OlMapOptions>;
            initialView?: InitialViewConfig;
            layers?: Layer[];
            projection?:
                | "EPSG:3857"
                | "EPSG:4326"
                | "EPSG:25832"
                | "EPSG:25833"
                | string & {};
        }

        Properties

        advanced? initialView? layers? projection? @@ -11,18 +11,18 @@

        Warning: Not all properties here are supported. For example, you cannot set the target because the target is controlled by the <MapContainer />.

        -
        initialView?: InitialViewConfig

        Configures the initial view. +

        initialView?: InitialViewConfig

        Configures the initial view. This can be an extent, or a (center, zoom) value.

        -
        layers?: Layer[]

        Configures the layers of the map.

        +
        layers?: Layer[]

        Configures the layers of the map.

        Layer order

        Layers defined in this array are (by default) displayed in their listed order: layers defined first are shown at the bottom, and layers defined at a later position are shown above their predecessors.

        Note: base layers are always shown below all operational layers.

        -
        projection?:
            | "EPSG:3857"
            | "EPSG:4326"
            | "EPSG:25832"
            | "EPSG:25833"
            | string & {}

        Configures a specific projection, e.g. "EPSG:4326". +

        projection?:
            | "EPSG:3857"
            | "EPSG:4326"
            | "EPSG:25832"
            | "EPSG:25833"
            | string & {}

        Configures a specific projection, e.g. "EPSG:4326". Defaults to EPSG:3857.

        To use custom projections, make sure that they are registered first:

        import { registerProjections } from "@open-pioneer/map";

        // Usually done at the top of the module.
        // This will register the projection(s) in proj4's global registry.
        registerProjections({
        "EPSG:31466": "+proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +ellps=bessel +nadgrids=BETA2007.gsb +units=m +no_defs +type=crs",
        // ... more projections
        });

        // later, use projection: "EPSG:31466"
        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfigProvider.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfigProvider.html index 052a550be..775118922 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfigProvider.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfigProvider.html @@ -1,9 +1,9 @@ MapConfigProvider | Open Pioneer Trails Packages

        Provides an OpenLayers map configuration with a given map id.

        The implementor must also provide the interface name "map.MapConfigProvider".

        -
        interface MapConfigProvider {
            mapId: string;
            getMapConfig(): Promise<MapConfig>;
        }

        Properties

        interface MapConfigProvider {
            mapId: string;
            getMapConfig(): Promise<MapConfig>;
        }

        Properties

        Methods

        Properties

        mapId: string

        Unique identifier of the map.

        -

        Methods

        Methods

        +

        Returns Promise<MapConfig>

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapContainerProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapContainerProps.html index f712e5eae..617731ba3 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapContainerProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapContainerProps.html @@ -1,7 +1,7 @@ MapContainerProps | Open Pioneer Trails Packages

        Options that specify which map to use. See useMapModel.

        When not setting any of these properties on a component, the default map (from the DefaultMapProvider) will be used. If that is not available either, an error will be thrown.

        -
        interface MapContainerProps {
            aria-label?: string;
            aria-labelledby?: string;
            children?: ReactNode;
            map?: MapModel;
            mapId?: string;
            role?: string;
            viewPadding?: MapPadding;
            viewPaddingChangeBehavior?: "none" | "preserve-center" | "preserve-extent";
        }

        Hierarchy (view full)

        Properties

        interface MapContainerProps {
            aria-label?: string;
            aria-labelledby?: string;
            children?: ReactNode;
            map?: MapModel;
            mapId?: string;
            role?: string;
            viewPadding?: MapPadding;
            viewPaddingChangeBehavior?: "none" | "preserve-center" | "preserve-extent";
        }

        Hierarchy (view full)

        Properties

        Properties

        aria-label?: string

        Optional aria-label property. Do not use together with aria-label.

        This property is directly applied to the map's container div element.

        -
        aria-labelledby?: string

        Optional aria-labelledby property. +

        aria-labelledby?: string

        Optional aria-labelledby property. Do not use together with aria-label.

        This property is directly applied to the map's container div element.

        -
        children?: ReactNode
        map?: MapModel

        The direct map model reference to use. +

        children?: ReactNode
        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        role?: string

        Optional role property.

        +
        role?: string

        Optional role property.

        This property is directly applied to the map's container div element.

        -
        viewPadding?: MapPadding

        Sets the map's padding directly. +

        viewPadding?: MapPadding

        Sets the map's padding directly. Do not use the view's padding property directly on the OL map.

        See: https://openlayers.org/en/latest/apidoc/module-ol_View-View.html#padding)

        -
        viewPaddingChangeBehavior?: "none" | "preserve-center" | "preserve-extent"

        Behavior performed by the map when the view padding changes.

        +
        viewPaddingChangeBehavior?: "none" | "preserve-center" | "preserve-extent"

        Behavior performed by the map when the view padding changes.

        • none: Do nothing.
        • preserve-center: Ensures that the center point remains the same by animating the view.
        • @@ -33,4 +33,4 @@
        "preserve-center"
         
        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModel.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModel.html index 55a333427..fb0372bb7 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModel.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModel.html @@ -1,5 +1,5 @@ MapModel | Open Pioneer Trails Packages

        Represents a map.

        -
        interface MapModel {
            center: undefined | Coordinate;
            container: undefined | HTMLElement;
            id: string;
            initialExtent: undefined | ExtentConfig;
            layers: LayerCollection;
            olMap: Map;
            olView: View;
            projection: Projection;
            resolution: undefined | number;
            scale: undefined | number;
            zoomLevel: undefined | number;
            highlight(geometries: DisplayTarget[], options?: HighlightOptions): Highlight;
            highlightAndZoom(geometries: DisplayTarget[], options?: HighlightZoomOptions): Highlight;
            removeHighlights(): void;
            setScale(newScale: number): void;
            whenDisplayed(): Promise<void>;
            zoom(geometries: DisplayTarget[], options?: ZoomOptions): void;
        }

        Hierarchy

        Properties

        interface MapModel {
            center: undefined | Coordinate;
            container: undefined | HTMLElement;
            id: string;
            initialExtent: undefined | ExtentConfig;
            layers: LayerCollection;
            olMap: Map;
            olView: View;
            projection: Projection;
            resolution: undefined | number;
            scale: undefined | number;
            zoomLevel: undefined | number;
            highlight(geometries: DisplayTarget[], options?: HighlightOptions): Highlight;
            highlightAndZoom(geometries: DisplayTarget[], options?: HighlightZoomOptions): Highlight;
            removeHighlights(): void;
            setScale(newScale: number): void;
            whenDisplayed(): Promise<void>;
            zoom(geometries: DisplayTarget[], options?: ZoomOptions): void;
        }

        Hierarchy

        Properties

        center container id initialExtent @@ -18,38 +18,38 @@ zoom

        Properties

        center: undefined | Coordinate

        Returns the current center of the map. Same as olView.getCenter(), but reactive.

        -
        container: undefined | HTMLElement

        The container in which the map is currently being rendered. +

        container: undefined | HTMLElement

        The container in which the map is currently being rendered. This is the same as the target element of the underlying OpenLayers map.

        May be undefined if the map is not being rendered at the moment. May change at runtime.

        -
        id: string

        The unique id of the map.

        -
        initialExtent: undefined | ExtentConfig

        The initial map extent.

        +
        id: string

        The unique id of the map.

        +
        initialExtent: undefined | ExtentConfig

        The initial map extent.

        May be undefined before the map is shown. This is guaranteed to be initialized if the promise returned by whenDisplayed has resolved.

        -

        Contains all known layers of this map.

        +

        Contains all known layers of this map.

        Note that not all layers in this collection may be active in the OpenLayers map. Also note that not all layers in the OpenLayers map may be contained in this collection.

        -
        olMap: Map

        The raw OpenLayers map.

        -
        olView: View

        Returns the current view of the OpenLayers map.

        -
        projection: Projection

        Returns the current projection of the map (reactive).

        -
        resolution: undefined | number

        Returns the current resolution of the map. +

        olMap: Map

        The raw OpenLayers map.

        +
        olView: View

        Returns the current view of the OpenLayers map.

        +
        projection: Projection

        Returns the current projection of the map (reactive).

        +
        resolution: undefined | number

        Returns the current resolution of the map. Same as olView.getResolution(), but reactive.

        -
        scale: undefined | number

        Returns the current scale of the map.

        +
        scale: undefined | number

        Returns the current scale of the map.

        Technically, this is the denominator of the current scale. In order to display it, use a format like 1:${scale}.

        -
        zoomLevel: undefined | number

        Returns the current zoom level of the map. +

        zoomLevel: undefined | number

        Returns the current zoom level of the map. Same as olView.getZoom(), but reactive.

        -

        Methods

        Methods

        • Creates a highlight at the given targets.

          A highlight is a temporary graphic on the map that calls attention to a point or an area.

          Call destroy() on the returned highlight object to remove the highlight again.

          -

          Parameters

          Returns Highlight

        • Removes any existing highlights from the map.

          -

          Returns void

        • Removes any existing highlights from the map.

          +

          Returns void

        • Changes the current scale of the map to the given value.

          Internally, this computes a new zoom level / resolution based on the scale and the current center. The new resolution is then applied to the current olView.

          See also scale.

          -

          Parameters

          • newScale: number

          Returns void

        • Returns a promise that resolves when the map has mounted in the DOM.

          -

          Returns Promise<void>

        +

        Parameters

        • newScale: number

        Returns void

        • Returns a promise that resolves when the map has mounted in the DOM.

          +

          Returns Promise<void>

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelEvents.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelEvents.html index 9e83ed395..708d82c84 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelEvents.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelEvents.html @@ -1,3 +1,3 @@ MapModelEvents | Open Pioneer Trails Packages

        Events emitted by the MapModel.

        -
        interface MapModelEvents {
            destroy: void;
        }

        Properties

        Properties

        destroy: void
        +
        interface MapModelEvents {
            destroy: void;
        }

        Properties

        Properties

        destroy: void
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelProps.html index 212898acc..a1b5d6b48 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelProps.html @@ -1,10 +1,10 @@ MapModelProps | Open Pioneer Trails Packages

        Options that specify which map to use. See useMapModel.

        When not setting any of these properties on a component, the default map (from the DefaultMapProvider) will be used. If that is not available either, an error will be thrown.

        -
        interface MapModelProps {
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        Properties

        interface MapModelProps {
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        Properties

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapPadding.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapPadding.html index 3072e7881..f09c4e88e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapPadding.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapPadding.html @@ -1,7 +1,7 @@ MapPadding | Open Pioneer Trails Packages
        interface MapPadding {
            bottom?: number;
            left?: number;
            right?: number;
            top?: number;
        }

        Properties

        interface MapPadding {
            bottom?: number;
            left?: number;
            right?: number;
            top?: number;
        }

        Properties

        Properties

        bottom?: number
        left?: number
        right?: number
        top?: number
        +

        Properties

        bottom?: number
        left?: number
        right?: number
        top?: number
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapRegistry.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapRegistry.html index c4751c08c..14292a677 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapRegistry.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapRegistry.html @@ -1,13 +1,13 @@ MapRegistry | Open Pioneer Trails Packages

        Provides access to registered map instances.

        Maps are identified by a unique id.

        Inject an instance of this service by referencing the interface name "map.MapRegistry".

        -
        interface MapRegistry {
            expectMapModel(mapId: string): Promise<MapModel>;
            getMapModel(mapId: string): Promise<undefined | MapModel>;
            getMapModelByRawInstance(olMap: Map): undefined | MapModel;
        }

        Hierarchy

        • DeclaredService<"map.MapRegistry">
          • MapRegistry

        Methods

        interface MapRegistry {
            expectMapModel(mapId: string): Promise<MapModel>;
            getMapModel(mapId: string): Promise<undefined | MapModel>;
            getMapModelByRawInstance(olMap: Map): undefined | MapModel;
        }

        Hierarchy

        • DeclaredService<"map.MapRegistry">
          • MapRegistry

        Methods

        • Returns the map model associated with the given id. Returns undefined if there is no such model.

          -

          Parameters

          • mapId: string

          Returns Promise<undefined | MapModel>

        • Given a raw OpenLayers map instance, returns the associated MapModel - or undefined +

          Parameters

          • mapId: string

          Returns Promise<undefined | MapModel>

        • Given a raw OpenLayers map instance, returns the associated MapModel - or undefined if the map is unknown to this registry.

          All OpenLayers maps created by this registry (e.g. via MapConfigProvider) have an associated map model.

          -

          Parameters

          • olMap: Map

          Returns undefined | MapModel

        +

        Parameters

        • olMap: Map

        Returns undefined | MapModel

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.OlMapOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.OlMapOptions.html index 046f29be4..e6b6ddd17 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.OlMapOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.OlMapOptions.html @@ -1,9 +1,9 @@ OlMapOptions | Open Pioneer Trails Packages

        Advanced options during map construction.

        -
        interface OlMapOptions {
            view:
                | undefined
                | View
                | ViewOptions
                | Promise<ViewOptions>;
        }

        Hierarchy

        • Omit<OlMapBaseOptions, "target" | "view">
          • OlMapOptions

        Properties

        interface OlMapOptions {
            view:
                | undefined
                | View
                | ViewOptions
                | Promise<ViewOptions>;
        }

        Hierarchy

        • Omit<OlMapBaseOptions, "target" | "view">
          • OlMapOptions

        Properties

        Properties

        view:
            | undefined
            | View
            | ViewOptions
            | Promise<ViewOptions>

        Advanced options to control the view.

        We recommend using the OlViewOptions type.

        Warning: When a fully constructed OlView instance is provided, some options of MapConfig (such as initialView or projection) cannot be applied anymore.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayer.html index 9ccc74640..d7c86bdf2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayer.html @@ -1,5 +1,5 @@ SimpleLayer | Open Pioneer Trails Packages

        A simple layer type wrapping an OpenLayers layer.

        -
        interface SimpleLayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: undefined;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            olLayer: BaseLayer;
            parent: undefined | AnyLayer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type: "simple";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        interface SimpleLayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: undefined;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            olLayer: BaseLayer;
            parent: undefined | AnyLayer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type: "simple";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        attributes: Readonly<Record<string | symbol, unknown>>

        Additional attributes associated with this layer.

        -
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        +
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        The children may either be a set of operational layers (e.g. for a group layer) or a set of sublayers, or undefined.

        See also layers and sublayers.

        -
        description: string

        The human-readable description of this layer. May be empty.

        -
        id: string

        The unique id of this layer within its map model.

        +
        description: string

        The human-readable description of this layer. May be empty.

        +
        id: string

        The unique id of this layer within its map model.

        NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

        -
        isBaseLayer: boolean

        True if this layer is a base layer.

        +
        isBaseLayer: boolean

        True if this layer is a base layer.

        Only one base layer can be visible at a time.

        -
        layers: undefined

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        +
        layers: undefined

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        The property shall be undefined if it is not a group layer.

        The properties layers and sublayers are mutually exclusive.

        -
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        -
        loadState: LayerLoadState

        The load state of a layer.

        -

        The map this layer belongs to.

        -
        olLayer: BaseLayer

        The raw OpenLayers layer.

        -
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        +
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        +
        loadState: LayerLoadState

        The load state of a layer.

        +

        The map this layer belongs to.

        +
        olLayer: BaseLayer

        The raw OpenLayers layer.

        +
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        The property shall be undefined if the layer is not a sublayer or member of a group layer.

        -
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        +
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        Layers that can never have any sublayers may not have a sublayers collection.

        The properties layers and sublayers are mutually exclusive.

        -
        title: string

        The human-readable title of this layer.

        -
        type

        Identifies the type of this layer.

        -
        visible: boolean

        Whether the layer is visible or not.

        +
        title: string

        The human-readable title of this layer.

        +
        type

        Identifies the type of this layer.

        +
        visible: boolean

        Whether the layer is visible or not.

        NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

        -

        Methods

        Methods

        • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

          -

          Parameters

          • newAttributes: Record<string | symbol, unknown>

          Returns void

        +

        Parameters

        • newAttributes: Record<string | symbol, unknown>

        Returns void

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConfig.html index d3a5513ee..ea9a082a9 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConfig.html @@ -1,6 +1,6 @@ SimpleLayerConfig | Open Pioneer Trails Packages

        Options to construct a simple layer.

        Simple layers are wrappers around a custom OpenLayers layer.

        -
        interface SimpleLayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            olLayer: BaseLayer;
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        interface SimpleLayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            olLayer: BaseLayer;
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        Properties

        attributes?: Record<string | symbol, unknown>

        Additional attributes for this layer. These can be arbitrary values.

        -
        description?: string

        The human-readable description of this layer. +

        description?: string

        The human-readable description of this layer. Defaults to an empty string.

        -
        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. +

        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.

        -
        id?: string

        The unique id of this layer. +

        id?: string

        The unique id of this layer. Defaults to a generated id.

        -
        isBaseLayer?: boolean

        Whether this layer is a base layer or not. +

        isBaseLayer?: boolean

        Whether this layer is a base layer or not. Only one base layer can be active at a time.

        Defaults to false.

        -
        olLayer: BaseLayer

        The raw OpenLayers instance.

        -
        title: string

        The human-readable title of this layer.

        -
        visible?: boolean

        Whether this layer should initially be visible. +

        olLayer: BaseLayer

        The raw OpenLayers instance.

        +
        title: string

        The human-readable title of this layer.

        +
        visible?: boolean

        Whether this layer should initially be visible. Defaults to true.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConstructor.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConstructor.html index 41a179de6..dea650fb7 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConstructor.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConstructor.html @@ -1,5 +1,5 @@ SimpleLayerConstructor | Open Pioneer Trails Packages

        Constructor for SimpleLayer.

        -
        interface SimpleLayerConstructor {
            new SimpleLayerConstructornew (config: SimpleLayerConfig): SimpleLayer;
            prototype: SimpleLayer;
        }

        Constructors

        interface SimpleLayerConstructor {
            new SimpleLayerConstructornew (config: SimpleLayerConfig): SimpleLayer;
            prototype: SimpleLayer;
        }

        Constructors

        Properties

        Constructors

        Properties

        prototype: SimpleLayer
        +

        Parameters

        Returns SimpleLayer

        Properties

        prototype: SimpleLayer
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayerBaseType.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayerBaseType.html index 74875053f..63bd38887 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayerBaseType.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayerBaseType.html @@ -1,5 +1,5 @@ SublayerBaseType | Open Pioneer Trails Packages

        Represents a sublayer of another layer.

        -
        interface SublayerBaseType {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            layers: undefined | GroupLayerCollection;
            legend: undefined | string;
            map: MapModel;
            parent: AnyLayer;
            parentLayer: Layer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type: "wms-sublayer";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        interface SublayerBaseType {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            layers: undefined | GroupLayerCollection;
            legend: undefined | string;
            map: MapModel;
            parent: AnyLayer;
            parentLayer: Layer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type: "wms-sublayer";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        attributes: Readonly<Record<string | symbol, unknown>>

        Additional attributes associated with this layer.

        -
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        +
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        The children may either be a set of operational layers (e.g. for a group layer) or a set of sublayers, or undefined.

        See also layers and sublayers.

        -
        description: string

        The human-readable description of this layer. May be empty.

        -
        id: string

        The unique id of this layer within its map model.

        +
        description: string

        The human-readable description of this layer. May be empty.

        +
        id: string

        The unique id of this layer within its map model.

        NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

        -
        layers: undefined | GroupLayerCollection

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        +
        layers: undefined | GroupLayerCollection

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        The property shall be undefined if it is not a group layer.

        The properties layers and sublayers are mutually exclusive.

        -
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        -

        The map this layer belongs to.

        -
        parent: AnyLayer

        The direct parent of this layer instance. +

        legend: undefined | string

        LegendURL from the service capabilities, if available.

        +

        The map this layer belongs to.

        +
        parent: AnyLayer

        The direct parent of this layer instance. This can either be the parent layer or another sublayer.

        -
        parentLayer: Layer

        The parent layer that owns this sublayer.

        -
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        +
        parentLayer: Layer

        The parent layer that owns this sublayer.

        +
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        Layers that can never have any sublayers may not have a sublayers collection.

        The properties layers and sublayers are mutually exclusive.

        -
        title: string

        The human-readable title of this layer.

        -
        type

        Identifies the type of this sublayer.

        -
        visible: boolean

        Whether the layer is visible or not.

        +
        title: string

        The human-readable title of this layer.

        +
        type

        Identifies the type of this sublayer.

        +
        visible: boolean

        Whether the layer is visible or not.

        NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

        -

        Methods

        Methods

        • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

          -

          Parameters

          • newAttributes: Record<string | symbol, unknown>

          Returns void

        +

        Parameters

        • newAttributes: Record<string | symbol, unknown>

        Returns void

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollection.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollection.html index b043b5cb2..b7ad2dcf4 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollection.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollection.html @@ -1,6 +1,6 @@ SublayersCollection | Open Pioneer Trails Packages

        Interface SublayersCollection<SublayerType>

        Contains the sublayers that belong to a Layer or Sublayer.

        -
        interface SublayersCollection<SublayerType> {
            getItems(options?: LayerRetrievalOptions): SublayerType[];
            getSublayers(options?: LayerRetrievalOptions): SublayerType[];
        }

        Type Parameters

        Hierarchy (view full)

        Methods

        interface SublayersCollection<SublayerType> {
            getItems(options?: LayerRetrievalOptions): SublayerType[];
            getSublayers(options?: LayerRetrievalOptions): SublayerType[];
        }

        Type Parameters

        Hierarchy (view full)

        Methods

        +

        Parameters

        Returns SublayerType[]

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelLoading.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelLoading.html index 0bc204096..1cee6b4a0 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelLoading.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelLoading.html @@ -1,4 +1,4 @@ -UseMapModelLoading | Open Pioneer Trails Packages
        interface UseMapModelLoading {
            error?: undefined;
            kind: "loading";
            map?: undefined;
        }

        Properties

        error? +UseMapModelLoading | Open Pioneer Trails Packages
        interface UseMapModelLoading {
            error?: undefined;
            kind: "loading";
            map?: undefined;
        }

        Properties

        Properties

        error?: undefined
        kind
        map?: undefined
        +

        Properties

        error?: undefined
        kind
        map?: undefined
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelRejected.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelRejected.html index 4921cb342..7dc7182c4 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelRejected.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelRejected.html @@ -1,4 +1,4 @@ -UseMapModelRejected | Open Pioneer Trails Packages
        interface UseMapModelRejected {
            error: Error;
            kind: "rejected";
            map?: undefined;
        }

        Properties

        error +UseMapModelRejected | Open Pioneer Trails Packages
        interface UseMapModelRejected {
            error: Error;
            kind: "rejected";
            map?: undefined;
        }

        Properties

        Properties

        error: Error
        kind
        map?: undefined
        +

        Properties

        error: Error
        kind
        map?: undefined
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelResolved.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelResolved.html index 667fd494b..bacef7a58 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelResolved.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelResolved.html @@ -1,4 +1,4 @@ -UseMapModelResolved | Open Pioneer Trails Packages
        interface UseMapModelResolved {
            error?: undefined;
            kind: "resolved";
            map: MapModel;
        }

        Properties

        error? +UseMapModelResolved | Open Pioneer Trails Packages
        interface UseMapModelResolved {
            error?: undefined;
            kind: "resolved";
            map: MapModel;
        }

        Properties

        Properties

        error?: undefined
        kind
        +

        Properties

        error?: undefined
        kind
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayer.html index 47015b7ae..0bd4de353 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayer.html @@ -1,5 +1,5 @@ WMSLayer | Open Pioneer Trails Packages

        Represents a WMS layer.

        -
        interface WMSLayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: undefined;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            olLayer: BaseLayer;
            parent: undefined | AnyLayer;
            sublayers: SublayersCollection<WMSSublayer>;
            title: string;
            type: "wms";
            url: string;
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        interface WMSLayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: undefined;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            olLayer: BaseLayer;
            parent: undefined | AnyLayer;
            sublayers: SublayersCollection<WMSSublayer>;
            title: string;
            type: "wms";
            url: string;
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        attributes: Readonly<Record<string | symbol, unknown>>

        Additional attributes associated with this layer.

        -
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        +
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        The children may either be a set of operational layers (e.g. for a group layer) or a set of sublayers, or undefined.

        See also layers and sublayers.

        -
        description: string

        The human-readable description of this layer. May be empty.

        -
        id: string

        The unique id of this layer within its map model.

        +
        description: string

        The human-readable description of this layer. May be empty.

        +
        id: string

        The unique id of this layer within its map model.

        NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

        -
        isBaseLayer: boolean

        True if this layer is a base layer.

        +
        isBaseLayer: boolean

        True if this layer is a base layer.

        Only one base layer can be visible at a time.

        -
        layers: undefined

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        +
        layers: undefined

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        The property shall be undefined if it is not a group layer.

        The properties layers and sublayers are mutually exclusive.

        -
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        -
        loadState: LayerLoadState

        The load state of a layer.

        -

        The map this layer belongs to.

        -
        olLayer: BaseLayer

        The raw OpenLayers layer.

        -
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        +
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        +
        loadState: LayerLoadState

        The load state of a layer.

        +

        The map this layer belongs to.

        +
        olLayer: BaseLayer

        The raw OpenLayers layer.

        +
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        The property shall be undefined if the layer is not a sublayer or member of a group layer.

        -

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        +

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        Layers that can never have any sublayers may not have a sublayers collection.

        The properties layers and sublayers are mutually exclusive.

        -
        title: string

        The human-readable title of this layer.

        -
        type

        Identifies the type of this layer.

        -
        url: string

        The URL of the WMS service that was used during layer construction.

        -
        visible: boolean

        Whether the layer is visible or not.

        +
        title: string

        The human-readable title of this layer.

        +
        type

        Identifies the type of this layer.

        +
        url: string

        The URL of the WMS service that was used during layer construction.

        +
        visible: boolean

        Whether the layer is visible or not.

        NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

        -

        Methods

        Methods

        • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

          -

          Parameters

          • newAttributes: Record<string | symbol, unknown>

          Returns void

        +

        Parameters

        • newAttributes: Record<string | symbol, unknown>

        Returns void

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConfig.html index 6e63c985a..0b1634ec3 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConfig.html @@ -1,5 +1,5 @@ WMSLayerConfig | Open Pioneer Trails Packages

        Configuration options to construct a WMS layer.

        -
        interface WMSLayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            sourceOptions?: Partial<Options>;
            sublayers?: WMSSublayerConfig[];
            title: string;
            url: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        interface WMSLayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            sourceOptions?: Partial<Options>;
            sublayers?: WMSSublayerConfig[];
            title: string;
            url: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        Properties

        attributes?: Record<string | symbol, unknown>

        Additional attributes for this layer. These can be arbitrary values.

        -
        description?: string

        The human-readable description of this layer. +

        description?: string

        The human-readable description of this layer. Defaults to an empty string.

        -
        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. +

        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.

        -
        id?: string

        The unique id of this layer. +

        id?: string

        The unique id of this layer. Defaults to a generated id.

        -
        isBaseLayer?: boolean

        Whether this layer is a base layer or not. +

        isBaseLayer?: boolean

        Whether this layer is a base layer or not. Only one base layer can be active at a time.

        Defaults to false.

        -
        sourceOptions?: Partial<Options>

        Additional source options for the layer's WMS source.

        +
        sourceOptions?: Partial<Options>

        Additional source options for the layer's WMS source.

        NOTE: These options are intended for advanced configuration: the WMS Layer manages some of the OpenLayers source options itself.

        -
        sublayers?: WMSSublayerConfig[]

        Configures the layer's sublayers.

        -
        title: string

        The human-readable title of this layer.

        -
        url: string

        URL of the WMS service.

        -
        visible?: boolean

        Whether this layer should initially be visible. +

        sublayers?: WMSSublayerConfig[]

        Configures the layer's sublayers.

        +
        title: string

        The human-readable title of this layer.

        +
        url: string

        URL of the WMS service.

        +
        visible?: boolean

        Whether this layer should initially be visible. Defaults to true.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConstructor.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConstructor.html index 60362fb0a..4a873bcb9 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConstructor.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConstructor.html @@ -1,5 +1,5 @@ WMSLayerConstructor | Open Pioneer Trails Packages

        Constructor for WMSLayer.

        -
        interface WMSLayerConstructor {
            new WMSLayerConstructornew (config: WMSLayerConfig): WMSLayer;
            prototype: WMSLayer;
        }

        Constructors

        interface WMSLayerConstructor {
            new WMSLayerConstructornew (config: WMSLayerConfig): WMSLayer;
            prototype: WMSLayer;
        }

        Constructors

        Properties

        Constructors

        Properties

        prototype: WMSLayer
        +

        Parameters

        Returns WMSLayer

        Properties

        prototype: WMSLayer
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayer.html index a3152f2d5..ab1af1a7f 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayer.html @@ -1,5 +1,5 @@ WMSSublayer | Open Pioneer Trails Packages

        Represents a WMS sublayer

        -
        interface WMSSublayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            layers: undefined | GroupLayerCollection;
            legend: undefined | string;
            map: MapModel;
            name: undefined | string;
            parent: AnyLayer;
            parentLayer: Layer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type: "wms-sublayer";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        interface WMSSublayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            layers: undefined | GroupLayerCollection;
            legend: undefined | string;
            map: MapModel;
            name: undefined | string;
            parent: AnyLayer;
            parentLayer: Layer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type: "wms-sublayer";
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        attributes: Readonly<Record<string | symbol, unknown>>

        Additional attributes associated with this layer.

        -
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        +
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        The children may either be a set of operational layers (e.g. for a group layer) or a set of sublayers, or undefined.

        See also layers and sublayers.

        -
        description: string

        The human-readable description of this layer. May be empty.

        -
        id: string

        The unique id of this layer within its map model.

        +
        description: string

        The human-readable description of this layer. May be empty.

        +
        id: string

        The unique id of this layer within its map model.

        NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

        -
        layers: undefined | GroupLayerCollection

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        +
        layers: undefined | GroupLayerCollection

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        The property shall be undefined if it is not a group layer.

        The properties layers and sublayers are mutually exclusive.

        -
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        -

        The map this layer belongs to.

        -
        name: undefined | string

        The name of the WMS sublayer in the service's capabilities.

        +
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        +

        The map this layer belongs to.

        +
        name: undefined | string

        The name of the WMS sublayer in the service's capabilities.

        Is optional as a WMS group layer in a WMS service does not need to have a name.

        -
        parent: AnyLayer

        The direct parent of this layer instance. +

        parent: AnyLayer

        The direct parent of this layer instance. This can either be the parent layer or another sublayer.

        -
        parentLayer: Layer

        The parent layer that owns this sublayer.

        -
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        +
        parentLayer: Layer

        The parent layer that owns this sublayer.

        +
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        Layers that can never have any sublayers may not have a sublayers collection.

        The properties layers and sublayers are mutually exclusive.

        -
        title: string

        The human-readable title of this layer.

        -
        type

        Identifies the type of this sublayer.

        -
        visible: boolean

        Whether the layer is visible or not.

        +
        title: string

        The human-readable title of this layer.

        +
        type

        Identifies the type of this sublayer.

        +
        visible: boolean

        Whether the layer is visible or not.

        NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

        -

        Methods

        Methods

        • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

          -

          Parameters

          • newAttributes: Record<string | symbol, unknown>

          Returns void

        +

        Parameters

        • newAttributes: Record<string | symbol, unknown>

        Returns void

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayerConfig.html index c139e414b..29b17950e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayerConfig.html @@ -1,5 +1,5 @@ WMSSublayerConfig | Open Pioneer Trails Packages

        Configuration options to construct the sublayers of a WMS layer.

        -
        interface WMSSublayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            id?: string;
            name?: string;
            sublayers?: WMSSublayerConfig[];
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        interface WMSSublayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            id?: string;
            name?: string;
            sublayers?: WMSSublayerConfig[];
            title: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        Properties

        attributes?: Record<string | symbol, unknown>

        Additional attributes for this layer. These can be arbitrary values.

        -
        description?: string

        The human-readable description of this layer. +

        description?: string

        The human-readable description of this layer. Defaults to an empty string.

        -
        id?: string

        The unique id of this layer. +

        id?: string

        The unique id of this layer. Defaults to a generated id.

        -
        name?: string

        The name of the WMS sublayer in the service's capabilities. +

        name?: string

        The name of the WMS sublayer in the service's capabilities. Not mandatory, e.g. for WMS group layer. See WMS spec.

        -
        sublayers?: WMSSublayerConfig[]

        Configuration for nested sublayers.

        -
        title: string

        The human-readable title of this layer.

        -
        visible?: boolean

        Whether this layer should initially be visible. +

        sublayers?: WMSSublayerConfig[]

        Configuration for nested sublayers.

        +
        title: string

        The human-readable title of this layer.

        +
        visible?: boolean

        Whether this layer should initially be visible. Defaults to true.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayer.html index df6ad4b6c..578d10afb 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayer.html @@ -1,7 +1,7 @@ WMTSLayer | Open Pioneer Trails Packages

        Represents an operational layer in the map.

        Instances of this interface cannot be constructed directly; use a real layer class such as SimpleLayer instead.

        -
        interface WMTSLayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: undefined;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            matrixSet: string;
            name: string;
            olLayer: BaseLayer;
            parent: undefined | AnyLayer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type: "wmts";
            url: string;
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        interface WMTSLayer {
            attributes: Readonly<Record<string | symbol, unknown>>;
            children: undefined | ChildrenCollection<AnyLayer>;
            description: string;
            id: string;
            isBaseLayer: boolean;
            layers: undefined;
            legend: undefined | string;
            loadState: LayerLoadState;
            map: MapModel;
            matrixSet: string;
            name: string;
            olLayer: BaseLayer;
            parent: undefined | AnyLayer;
            sublayers: undefined | SublayersCollection<WMSSublayer>;
            title: string;
            type: "wmts";
            url: string;
            visible: boolean;
            deleteAttribute(deleteAttribute: string | symbol): void;
            setDescription(newDescription: string): void;
            setTitle(newTitle: string): void;
            setVisible(newVisibility: boolean): void;
            updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        }

        Hierarchy (view full)

        Properties

        attributes: Readonly<Record<string | symbol, unknown>>

        Additional attributes associated with this layer.

        -
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        +
        children: undefined | ChildrenCollection<AnyLayer>

        The direct children of this layer.

        The children may either be a set of operational layers (e.g. for a group layer) or a set of sublayers, or undefined.

        See also layers and sublayers.

        -
        description: string

        The human-readable description of this layer. May be empty.

        -
        id: string

        The unique id of this layer within its map model.

        +
        description: string

        The human-readable description of this layer. May be empty.

        +
        id: string

        The unique id of this layer within its map model.

        NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

        -
        isBaseLayer: boolean

        True if this layer is a base layer.

        +
        isBaseLayer: boolean

        True if this layer is a base layer.

        Only one base layer can be visible at a time.

        -
        layers: undefined

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        +
        layers: undefined

        If this layer is a group layer this property contains a collection of all layers that a members to the group.

        The property shall be undefined if it is not a group layer.

        The properties layers and sublayers are mutually exclusive.

        -
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        -
        loadState: LayerLoadState

        The load state of a layer.

        -

        The map this layer belongs to.

        -
        matrixSet: string

        The name of the tile matrix set in the service's capabilities.

        -
        name: string

        The name of the WMTS layer in the service's capabilities.

        -
        olLayer: BaseLayer

        The raw OpenLayers layer.

        -
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        +
        legend: undefined | string

        LegendURL from the service capabilities, if available.

        +
        loadState: LayerLoadState

        The load state of a layer.

        +

        The map this layer belongs to.

        +
        matrixSet: string

        The name of the tile matrix set in the service's capabilities.

        +
        name: string

        The name of the WMTS layer in the service's capabilities.

        +
        olLayer: BaseLayer

        The raw OpenLayers layer.

        +
        parent: undefined | AnyLayer

        The direct parent of this layer instance, used for sublayers or for layers in a group layer.

        The property shall be undefined if the layer is not a sublayer or member of a group layer.

        -
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        +
        sublayers: undefined | SublayersCollection<WMSSublayer>

        The collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.

        Layers that can never have any sublayers may not have a sublayers collection.

        The properties layers and sublayers are mutually exclusive.

        -
        title: string

        The human-readable title of this layer.

        -
        type

        Identifies the type of this layer.

        -
        url: string

        URL of the WMTS service.

        -
        visible: boolean

        Whether the layer is visible or not.

        +
        title: string

        The human-readable title of this layer.

        +
        type

        Identifies the type of this layer.

        +
        url: string

        URL of the WMTS service.

        +
        visible: boolean

        Whether the layer is visible or not.

        NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

        -

        Methods

        Methods

        • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

          -

          Parameters

          • newAttributes: Record<string | symbol, unknown>

          Returns void

        +

        Parameters

        • newAttributes: Record<string | symbol, unknown>

        Returns void

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConfig.html index 0f7074a53..5a345c860 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConfig.html @@ -1,5 +1,5 @@ WMTSLayerConfig | Open Pioneer Trails Packages

        Configuration options supported by all operational layer types.

        -
        interface WMTSLayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            matrixSet: string;
            name: string;
            sourceOptions?: Partial<Options>;
            title: string;
            url: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        interface WMTSLayerConfig {
            attributes?: Record<string | symbol, unknown>;
            description?: string;
            healthCheck?: string | HealthCheckFunction;
            id?: string;
            isBaseLayer?: boolean;
            matrixSet: string;
            name: string;
            sourceOptions?: Partial<Options>;
            title: string;
            url: string;
            visible?: boolean;
        }

        Hierarchy (view full)

        Properties

        Properties

        attributes?: Record<string | symbol, unknown>

        Additional attributes for this layer. These can be arbitrary values.

        -
        description?: string

        The human-readable description of this layer. +

        description?: string

        The human-readable description of this layer. Defaults to an empty string.

        -
        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. +

        healthCheck?: string | HealthCheckFunction

        Optional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.

        -
        id?: string

        The unique id of this layer. +

        id?: string

        The unique id of this layer. Defaults to a generated id.

        -
        isBaseLayer?: boolean

        Whether this layer is a base layer or not. +

        isBaseLayer?: boolean

        Whether this layer is a base layer or not. Only one base layer can be active at a time.

        Defaults to false.

        -
        matrixSet: string

        The name of the tile matrix set in the service's capabilities.

        -
        name: string

        The name of the WMTS layer in the service's capabilities.

        -
        sourceOptions?: Partial<Options>

        Additional source options for the layer's WMTS source.

        +
        matrixSet: string

        The name of the tile matrix set in the service's capabilities.

        +
        name: string

        The name of the WMTS layer in the service's capabilities.

        +
        sourceOptions?: Partial<Options>

        Additional source options for the layer's WMTS source.

        NOTE: These options are intended for advanced configuration: the WMTS Layer manages some of the OpenLayers source options itself.

        -
        title: string

        The human-readable title of this layer.

        -
        url: string

        URL of the WMTS service.

        -
        visible?: boolean

        Whether this layer should initially be visible. +

        title: string

        The human-readable title of this layer.

        +
        url: string

        URL of the WMTS service.

        +
        visible?: boolean

        Whether this layer should initially be visible. Defaults to true.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConstructor.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConstructor.html index 8b342dd53..bcde487ad 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConstructor.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConstructor.html @@ -1,4 +1,4 @@ -WMTSLayerConstructor | Open Pioneer Trails Packages
        interface WMTSLayerConstructor {
            new WMTSLayerConstructornew (config: WMTSLayerConfig): WMTSLayer;
            prototype: WMTSLayer;
        }

        Constructors

        constructor +WMTSLayerConstructor | Open Pioneer Trails Packages
        interface WMTSLayerConstructor {
            new WMTSLayerConstructornew (config: WMTSLayerConfig): WMTSLayer;
            prototype: WMTSLayer;
        }

        Constructors

        Properties

        Constructors

        Properties

        prototype: WMTSLayer
        +

        Parameters

        Returns WMTSLayer

        Properties

        prototype: WMTSLayer
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ZoomOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ZoomOptions.html index 551b0b165..8cd267e6c 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ZoomOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ZoomOptions.html @@ -1,8 +1,8 @@ ZoomOptions | Open Pioneer Trails Packages

        Zoomoptions supported when creating a new Highlight.

        -
        interface ZoomOptions {
            maxZoom?: number;
            pointZoom?: number;
            viewPadding?: MapPadding;
        }

        Hierarchy (view full)

        Properties

        interface ZoomOptions {
            maxZoom?: number;
            pointZoom?: number;
            viewPadding?: MapPadding;
        }

        Hierarchy (view full)

        Properties

        maxZoom?: number

        The maximum zoom-level for multiple points, line or polygon results.

        -
        pointZoom?: number

        The zoom-level used if there is no valid extend (such as for single points).

        -
        viewPadding?: MapPadding

        The view padding to make all features visible.

        -
        +
        pointZoom?: number

        The zoom-level used if there is no valid extend (such as for single points).

        +
        viewPadding?: MapPadding

        The view padding to make all features visible.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.HistoryProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.HistoryProps.html index 2f309ccee..333e7a812 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.HistoryProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.HistoryProps.html @@ -1,13 +1,13 @@ HistoryProps | Open Pioneer Trails Packages

        Options that specify which map to use. See useMapModel.

        When not setting any of these properties on a component, the default map (from the DefaultMapProvider) will be used. If that is not available either, an error will be thrown.

        -
        interface HistoryProps {
            map?: MapModel;
            mapId?: string;
            viewDirection: "forward" | "backward";
        }

        Hierarchy (view full)

        • CommonComponentProps
        • RefAttributes<HTMLButtonElement>
        • MapModelProps
          • HistoryProps

        Properties

        interface HistoryProps {
            map?: MapModel;
            mapId?: string;
            viewDirection: "forward" | "backward";
        }

        Hierarchy (view full)

        • CommonComponentProps
        • RefAttributes<HTMLButtonElement>
        • MapModelProps
          • HistoryProps

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        viewDirection: "forward" | "backward"

        The view direction.

        +
        viewDirection: "forward" | "backward"

        The view direction.

        The button will either view forward or view backward depending on this value.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.InitialExtentProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.InitialExtentProps.html index fbc28f10a..3f7d6768e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.InitialExtentProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.InitialExtentProps.html @@ -1,10 +1,10 @@ InitialExtentProps | Open Pioneer Trails Packages

        Options that specify which map to use. See useMapModel.

        When not setting any of these properties on a component, the default map (from the DefaultMapProvider) will be used. If that is not available either, an error will be thrown.

        -
        interface InitialExtentProps {
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        • CommonComponentProps
        • RefAttributes<HTMLButtonElement>
        • MapModelProps
          • InitialExtentProps

        Properties

        interface InitialExtentProps {
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        • CommonComponentProps
        • RefAttributes<HTMLButtonElement>
        • MapModelProps
          • InitialExtentProps

        Properties

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.ZoomProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.ZoomProps.html index 3ba111af2..374dc3d2c 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.ZoomProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.ZoomProps.html @@ -1,13 +1,13 @@ ZoomProps | Open Pioneer Trails Packages

        Options that specify which map to use. See useMapModel.

        When not setting any of these properties on a component, the default map (from the DefaultMapProvider) will be used. If that is not available either, an error will be thrown.

        -
        interface ZoomProps {
            map?: MapModel;
            mapId?: string;
            zoomDirection: "in" | "out";
        }

        Hierarchy (view full)

        • CommonComponentProps
        • RefAttributes<HTMLButtonElement>
        • MapModelProps
          • ZoomProps

        Properties

        interface ZoomProps {
            map?: MapModel;
            mapId?: string;
            zoomDirection: "in" | "out";
        }

        Hierarchy (view full)

        • CommonComponentProps
        • RefAttributes<HTMLButtonElement>
        • MapModelProps
          • ZoomProps

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        zoomDirection: "in" | "out"

        The zoom direction.

        +
        zoomDirection: "in" | "out"

        The zoom direction.

        The button will either zoom in or zoom out depending on this value.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html index 3d9b5f379..f34162142 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html @@ -1,4 +1,4 @@ -SimpleMapOptions | Open Pioneer Trails Packages
        interface SimpleMapOptions {
            advanced?: OlMapOptions;
            center?: {
                x: number;
                y: number;
            };
            extent?: ExtentConfig;
            fetch?: ((resource: URL, init: undefined | HttpServiceRequestInit) => Promise<Response>);
            layers?: (SimpleLayerConfig | Layer)[];
            noInitialView?: boolean;
            noProjection?: boolean;
            projection?: string;
            zoom?: number;
        }

        Properties

        advanced? +SimpleMapOptions | Open Pioneer Trails Packages
        interface SimpleMapOptions {
            advanced?: OlMapOptions;
            center?: {
                x: number;
                y: number;
            };
            extent?: ExtentConfig;
            fetch?: ((resource: URL, init: undefined | HttpServiceRequestInit) => Promise<Response>);
            layers?: (SimpleLayerConfig | Layer)[];
            noInitialView?: boolean;
            noProjection?: boolean;
            projection?: string;
            zoom?: number;
        }

        Properties

        Properties

        advanced?: OlMapOptions

        Passed to the open layers map constructor.

        -
        center?: {
            x: number;
            y: number;
        }

        Center coordinates for the map.

        -
        extent?: ExtentConfig

        Initial extent (don't mix with center / zoom).

        -
        fetch?: ((resource: URL, init: undefined | HttpServiceRequestInit) => Promise<Response>)

        Overrides fetching of network resources (such as service capabilities).

        -
        layers?: (SimpleLayerConfig | Layer)[]

        Layers used by the map.

        -
        noInitialView?: boolean

        Disables the initial view when set to true.

        -
        noProjection?: boolean

        Disables the default projection when set to true.

        -
        projection?: string

        The map's projection.

        -
        zoom?: number

        Zoom level of the map.

        -
        +
        center?: {
            x: number;
            y: number;
        }

        Center coordinates for the map.

        +
        extent?: ExtentConfig

        Initial extent (don't mix with center / zoom).

        +
        fetch?: ((resource: URL, init: undefined | HttpServiceRequestInit) => Promise<Response>)

        Overrides fetching of network resources (such as service capabilities).

        +
        layers?: (SimpleLayerConfig | Layer)[]

        Layers used by the map.

        +
        noInitialView?: boolean

        Disables the initial view when set to true.

        +
        noProjection?: boolean

        Disables the default projection when set to true.

        +
        projection?: string

        The map's projection.

        +
        zoom?: number

        Zoom level of the map.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_ui_components.ToolButtonProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_ui_components.ToolButtonProps.html index 2c182dc44..22a5c8728 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_ui_components.ToolButtonProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_ui_components.ToolButtonProps.html @@ -1,5 +1,5 @@ ToolButtonProps | Open Pioneer Trails Packages

        Properties supported by ToolButton.

        -
        interface ToolButtonProps {
            buttonProps?: Partial<ButtonProps>;
            icon: ReactElement<any, string | JSXElementConstructor<any>>;
            isActive?: boolean;
            isDisabled?: boolean;
            isLoading?: boolean;
            label: string;
            onClick?: MouseEventHandler<HTMLButtonElement>;
            tooltipProps?: Partial<TooltipProps>;
        }

        Hierarchy

        • CommonComponentProps
        • RefAttributes<HTMLButtonElement>
          • ToolButtonProps

        Properties

        interface ToolButtonProps {
            buttonProps?: Partial<ButtonProps>;
            icon: ReactElement<any, string | JSXElementConstructor<any>>;
            isActive?: boolean;
            isDisabled?: boolean;
            isLoading?: boolean;
            label: string;
            onClick?: MouseEventHandler<HTMLButtonElement>;
            tooltipProps?: Partial<TooltipProps>;
        }

        Hierarchy

        • CommonComponentProps
        • RefAttributes<HTMLButtonElement>
          • ToolButtonProps

        Properties

        Properties

        buttonProps?: Partial<ButtonProps>

        Additional properties for the Button element.

        Note that the ToolButton also defines some of these props.

        -
        icon: ReactElement<any, string | JSXElementConstructor<any>>

        The icon displayed by the button.

        -
        isActive?: boolean

        If true, indicates that the button is currently active with a different style. +

        icon: ReactElement<any, string | JSXElementConstructor<any>>

        The icon displayed by the button.

        +
        isActive?: boolean

        If true, indicates that the button is currently active with a different style. Defaults to undefined.

        A value of true or false indicates that the button supports being active (i.e. pressed). In that case the aria-pressed attribute will be configured automatically (see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed).

        -
        isDisabled?: boolean

        If true, the button will be disabled. +

        isDisabled?: boolean

        If true, the button will be disabled. Defaults to false.

        -
        isLoading?: boolean

        If true, the button will show a spinner. +

        isLoading?: boolean

        If true, the button will show a spinner. Defaults to false.

        -
        label: string

        The label for the ToolButton. +

        label: string

        The label for the ToolButton. This value services as the tooltip text and the aria-label.

        This property is required for a11y reasons because a ToolButton usually only displays an icon.

        -
        onClick?: MouseEventHandler<HTMLButtonElement>

        The callback that will be called when the user clicks the button.

        -
        tooltipProps?: Partial<TooltipProps>

        Additional properties for the Tooltip element.

        +
        onClick?: MouseEventHandler<HTMLButtonElement>

        The callback that will be called when the user clicks the button.

        +
        tooltipProps?: Partial<TooltipProps>

        Additional properties for the Tooltip element.

        Note that the ToolButton also defines some of these props.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementProps.html index 607176354..13e1ed782 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementProps.html @@ -1,16 +1,16 @@ MeasurementProps | Open Pioneer Trails Packages

        This is for special properties of the Measurement.

        -
        interface MeasurementProps {
            activeFeatureStyle?: StyleLike;
            finishedFeatureStyle?: StyleLike;
            map?: MapModel;
            mapId?: string;
            onMeasurementsChange?: ((event: MeasurementsChangeEvent) => void);
            predefinedMeasurements?: MeasurementGeometry[];
        }

        Hierarchy (view full)

        Properties

        interface MeasurementProps {
            activeFeatureStyle?: StyleLike;
            finishedFeatureStyle?: StyleLike;
            map?: MapModel;
            mapId?: string;
            onMeasurementsChange?: ((event: MeasurementsChangeEvent) => void);
            predefinedMeasurements?: MeasurementGeometry[];
        }

        Hierarchy (view full)

        Properties

        activeFeatureStyle?: StyleLike

        The style for the active drawing feature's geometry.

        -
        finishedFeatureStyle?: StyleLike

        The style for the finished drawn feature's geometry.

        -
        map?: MapModel

        The direct map model reference to use. +

        finishedFeatureStyle?: StyleLike

        The style for the finished drawn feature's geometry.

        +
        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        onMeasurementsChange?: ((event: MeasurementsChangeEvent) => void)

        Event handler that is called whenever a measurement is added or removed.

        -
        predefinedMeasurements?: MeasurementGeometry[]

        List of measurements to be rendered when the component is initialized.

        -
        +
        onMeasurementsChange?: ((event: MeasurementsChangeEvent) => void)

        Event handler that is called whenever a measurement is added or removed.

        +
        predefinedMeasurements?: MeasurementGeometry[]

        List of measurements to be rendered when the component is initialized.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementsAddEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementsAddEvent.html index 871af2146..1b634db38 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementsAddEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementsAddEvent.html @@ -1,4 +1,4 @@ MeasurementsAddEvent | Open Pioneer Trails Packages

        Emitted when a new measurement is being added to the map.

        -
        interface MeasurementsAddEvent {
            geometry: MeasurementGeometry;
            kind: "add-measurement";
        }

        Properties

        interface MeasurementsAddEvent {
            geometry: MeasurementGeometry;
            kind: "add-measurement";
        }

        Properties

        Properties

        kind
        +

        Properties

        kind
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementsRemoveEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementsRemoveEvent.html index 5b0cd3fa8..020fc0b66 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementsRemoveEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementsRemoveEvent.html @@ -1,4 +1,4 @@ MeasurementsRemoveEvent | Open Pioneer Trails Packages

        Emitted when a measurement is being removed from the map.

        -
        interface MeasurementsRemoveEvent {
            geometry: MeasurementGeometry;
            kind: "remove-measurement";
        }

        Properties

        interface MeasurementsRemoveEvent {
            geometry: MeasurementGeometry;
            kind: "remove-measurement";
        }

        Properties

        Properties

        kind
        +

        Properties

        kind
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.FeatureResponse.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.FeatureResponse.html index 5d301c38a..fa4e31aaa 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.FeatureResponse.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.FeatureResponse.html @@ -1,10 +1,10 @@ FeatureResponse | Open Pioneer Trails Packages

        The general shape of features returned by an OGC API Features service.

        -
        interface FeatureResponse {
            geometry: unknown;
            id: string | number;
            properties: Readonly<Record<string, unknown>>;
            type: string;
        }

        Properties

        interface FeatureResponse {
            geometry: unknown;
            id: string | number;
            properties: Readonly<Record<string, unknown>>;
            type: string;
        }

        Properties

        geometry: unknown

        The geometry of the feature.

        -
        id: string | number

        The id of the feature.

        -
        properties: Readonly<Record<string, unknown>>

        The properties of the feature.

        -
        type: string

        The type of the feature (e.g. Feature).

        -
        +
        id: string | number

        The id of the feature.

        +
        properties: Readonly<Record<string, unknown>>

        The properties of the feature.

        +
        type: string

        The type of the feature (e.g. Feature).

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureSearchSourceOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureSearchSourceOptions.html index 2ef4a6d7c..795168d08 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureSearchSourceOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureSearchSourceOptions.html @@ -1,5 +1,5 @@ OgcFeatureSearchSourceOptions | Open Pioneer Trails Packages

        Options for ().

        -
        interface OgcFeatureSearchSourceOptions {
            baseUrl: string;
            collectionId: string;
            label: string;
            labelProperty?: string;
            renderLabel?: ((feature: FeatureResponse) => undefined | string);
            rewriteUrl?: ((url: URL) => undefined | URL);
            searchProperty: string;
        }

        Properties

        interface OgcFeatureSearchSourceOptions {
            baseUrl: string;
            collectionId: string;
            label: string;
            labelProperty?: string;
            renderLabel?: ((feature: FeatureResponse) => undefined | string);
            rewriteUrl?: ((url: URL) => undefined | URL);
            searchProperty: string;
        }

        Properties

        baseUrl collectionId label labelProperty? @@ -11,15 +11,15 @@
        new OgcFeatureSearchSource({
        // token is also used for all requests made by this class
        baseUrl: `https://example.com/ogc-service?token=...`
        })
        -
        collectionId: string

        The ID of the collection.

        -
        label: string

        The source's label. May be used as a title for results from this source.

        -
        labelProperty?: string

        Property used for labelling.

        +
        collectionId: string

        The ID of the collection.

        +
        label: string

        The source's label. May be used as a title for results from this source.

        +
        labelProperty?: string

        Property used for labelling.

        Defaults to searchProperty.

        This property can be useful if searchProperty is not returned by the service, or if another field shall be displayed instead.

        -
        renderLabel?: ((feature: FeatureResponse) => undefined | string)

        Function to create custom a label for a given feature.

        +
        renderLabel?: ((feature: FeatureResponse) => undefined | string)

        Function to create custom a label for a given feature.

        If the label is not customized by this function, labelProperty (or searchProperty) will be used instead.

        -
        rewriteUrl?: ((url: URL) => undefined | URL)

        Rewrite function to modify the original URL.

        +
        rewriteUrl?: ((url: URL) => undefined | URL)

        Rewrite function to modify the original URL.

        NOTE: Do not update the url argument. Return a new URL instance instead.

        -
        searchProperty: string

        Property used for filtering on OGC API Features.

        -
        +
        searchProperty: string

        Property used for filtering on OGC API Features.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureVectorSourceOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureVectorSourceOptions.html index 9cce7f1ad..798db24c3 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureVectorSourceOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureVectorSourceOptions.html @@ -1,5 +1,5 @@ OgcFeatureVectorSourceOptions | Open Pioneer Trails Packages

        These are properties for OGC API Features vector source.

        -
        interface OgcFeatureVectorSourceOptions {
            additionalOptions?: Options<Feature<Geometry>>;
            attributions?: AttributionLike;
            baseUrl: string;
            collectionId: string;
            crs: string;
            limit?: number;
            maxConcurrentRequests?: number;
            rewriteUrl?: ((url: URL) => undefined | URL);
            strategy?: OgcFetchStrategy;
        }

        Properties

        interface OgcFeatureVectorSourceOptions {
            additionalOptions?: Options<Feature<Geometry>>;
            attributions?: AttributionLike;
            baseUrl: string;
            collectionId: string;
            crs: string;
            limit?: number;
            maxConcurrentRequests?: number;
            rewriteUrl?: ((url: URL) => undefined | URL);
            strategy?: OgcFetchStrategy;
        }

        Properties

        additionalOptions?: Options<Feature<Geometry>>

        Optional additional options for the VectorSource.

        -
        attributions?: AttributionLike

        Optional attribution for the layer (e.g. copyright hints).

        -
        baseUrl: string

        The base-URL right to the "/collections"-part

        -
        collectionId: string

        The collection-ID

        -
        crs: string

        the URL to the EPSG-Code, e.g. http://www.opengis.net/def/crs/EPSG/0/25832

        -
        limit?: number

        The maximum number of features to fetch within a single request. +

        attributions?: AttributionLike

        Optional attribution for the layer (e.g. copyright hints).

        +
        baseUrl: string

        The base-URL right to the "/collections"-part

        +
        collectionId: string

        The collection-ID

        +
        crs: string

        the URL to the EPSG-Code, e.g. http://www.opengis.net/def/crs/EPSG/0/25832

        +
        limit?: number

        The maximum number of features to fetch within a single request. Corresponds to the limit parameter in the URL.

        When the offset strategy is used for feature fetching, the limit is used for the page size

        Defaults to 5000 for Next-Strategy. Defaults to 2500 for Offset-Strategy.

        -
        maxConcurrentRequests?: number

        The maximum number of concurrent requests. Defaults to 6.

        -
        rewriteUrl?: ((url: URL) => undefined | URL)

        Use this function to rewrite the URL used to fetch features from the OGC API Features service. +

        maxConcurrentRequests?: number

        The maximum number of concurrent requests. Defaults to 6.

        +
        rewriteUrl?: ((url: URL) => undefined | URL)

        Use this function to rewrite the URL used to fetch features from the OGC API Features service. This is useful, for example, to filter the OGC service on the server side.

        NOTE: Do not update the url argument. Return a new URL instance instead.

        NOTE: Be careful with existing URL parameters. The vector source may not work correctly if predefined parameters (such as the CRS or the response format) are overwritten. The vector source might add additional parameters to its request URLs in the future.

        -
        strategy?: OgcFetchStrategy

        Use this property to define the feature fetching strategy. +

        strategy?: OgcFetchStrategy

        Use this property to define the feature fetching strategy. Allowed value are offset and next. By default, the vector source attempts to detect the server's capabilities and will prefer "offset", if possible.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesSearchSourceFactory.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesSearchSourceFactory.html index abdb95b18..b0a0010e4 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesSearchSourceFactory.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesSearchSourceFactory.html @@ -1,6 +1,6 @@ OgcFeaturesSearchSourceFactory | Open Pioneer Trails Packages

        A factory that creates search sources for an OGC API Features service. The resulting search sources can be used in combination with the @open-pioneer/search package.

        Use the interface name "ogc-features.SearchSourceFactory" to obtain an instance of this factory.

        -
        interface OgcFeaturesSearchSourceFactory {
            createSearchSource(options: OgcFeatureSearchSourceOptions): SearchSource;
        }

        Hierarchy

        • DeclaredService<"ogc-features.SearchSourceFactory">
          • OgcFeaturesSearchSourceFactory

        Methods

        interface OgcFeaturesSearchSourceFactory {
            createSearchSource(options: OgcFeatureSearchSourceOptions): SearchSource;
        }

        Hierarchy

        • DeclaredService<"ogc-features.SearchSourceFactory">
          • OgcFeaturesSearchSourceFactory

        Methods

        +

        Returns SearchSource

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesVectorSourceFactory.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesVectorSourceFactory.html index 99603710b..640a22621 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesVectorSourceFactory.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesVectorSourceFactory.html @@ -1,6 +1,6 @@ OgcFeaturesVectorSourceFactory | Open Pioneer Trails Packages

        A factory that creates VectorSource | vector sources for an OGC API Features service. The resulting vector sources can be used in an OpenLayers VectorLayer.

        Use the interface name "ogc-features.VectorSourceFactory" to obtain an instance of this factory.

        -
        interface OgcFeaturesVectorSourceFactory {
            createVectorSource(options: OgcFeatureVectorSourceOptions): VectorSource<Feature<Geometry>>;
        }

        Hierarchy

        • DeclaredService<"ogc-features.VectorSourceFactory">
          • OgcFeaturesVectorSourceFactory

        Methods

        interface OgcFeaturesVectorSourceFactory {
            createVectorSource(options: OgcFeatureVectorSourceOptions): VectorSource<Feature<Geometry>>;
        }

        Hierarchy

        • DeclaredService<"ogc-features.VectorSourceFactory">
          • OgcFeaturesVectorSourceFactory

        Methods

        • Creates a new VectorSource that loads features from the specified feature service.

          -

          Returns VectorSource<Feature<Geometry>>

        +

        Returns VectorSource<Feature<Geometry>>

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_overview_map.OverviewMapProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_overview_map.OverviewMapProps.html index 7f4d337cc..a1a6f3e59 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_overview_map.OverviewMapProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_overview_map.OverviewMapProps.html @@ -1,16 +1,16 @@ OverviewMapProps | Open Pioneer Trails Packages

        These are properties supported by the OverviewMap.

        -
        interface OverviewMapProps {
            height?: ResponsiveValue<
                | number
                | "px"
                | string & {}
                | "-moz-initial"
                | "inherit"
                | "initial"
                | "revert"
                | "revert-layer"
                | "unset"
                | "-moz-max-content"
                | "-moz-min-content"
                | "-webkit-fit-content"
                | "auto"
                | "fit-content"
                | "max-content"
                | "min-content"
                | "sm"
                | "md"
                | "lg"
                | "xl"
                | "2xl"
                | "1"
                | "2"
                | "3"
                | "4"
                | "5"
                | "6"
                | "7"
                | "8"
                | "9"
                | "10"
                | "12"
                | "14"
                | "16"
                | "20"
                | "24"
                | "28"
                | "32"
                | "36"
                | "40"
                | "44"
                | "48"
                | "52"
                | "56"
                | "60"
                | "64"
                | "72"
                | "80"
                | "96"
                | "0.5"
                | "1.5"
                | "2.5"
                | "3.5"
                | "max"
                | "min"
                | "full"
                | "3xs"
                | "2xs"
                | "xs"
                | "3xl"
                | "4xl"
                | "5xl"
                | "6xl"
                | "7xl"
                | "8xl"
                | "prose"
                | "container.sm"
                | "container.md"
                | "container.lg"
                | "container.xl">;
            map?: MapModel;
            mapId?: string;
            olLayer: BaseLayer;
            width?: ResponsiveValue<
                | number
                | "px"
                | string & {}
                | "-moz-initial"
                | "inherit"
                | "initial"
                | "revert"
                | "revert-layer"
                | "unset"
                | "-moz-max-content"
                | "-moz-min-content"
                | "-webkit-fit-content"
                | "auto"
                | "fit-content"
                | "max-content"
                | "min-content"
                | "sm"
                | "md"
                | "lg"
                | "xl"
                | "2xl"
                | "1"
                | "2"
                | "3"
                | "4"
                | "5"
                | "6"
                | "7"
                | "8"
                | "9"
                | "10"
                | "12"
                | "14"
                | "16"
                | "20"
                | "24"
                | "28"
                | "32"
                | "36"
                | "40"
                | "44"
                | "48"
                | "52"
                | "56"
                | "60"
                | "64"
                | "72"
                | "80"
                | "96"
                | "0.5"
                | "1.5"
                | "2.5"
                | "3.5"
                | "max"
                | "min"
                | "full"
                | "3xs"
                | "2xs"
                | "xs"
                | "3xl"
                | "4xl"
                | "5xl"
                | "6xl"
                | "7xl"
                | "8xl"
                | "prose"
                | "container.sm"
                | "container.md"
                | "container.lg"
                | "container.xl"
                | "-moz-fit-content"
                | "-webkit-max-content"
                | "intrinsic"
                | "min-intrinsic">;
        }

        Hierarchy (view full)

        Properties

        interface OverviewMapProps {
            height?: ResponsiveValue<
                | number
                | "px"
                | string & {}
                | "-moz-initial"
                | "inherit"
                | "initial"
                | "revert"
                | "revert-layer"
                | "unset"
                | "-moz-max-content"
                | "-moz-min-content"
                | "-webkit-fit-content"
                | "auto"
                | "fit-content"
                | "max-content"
                | "min-content"
                | "sm"
                | "md"
                | "lg"
                | "xl"
                | "2xl"
                | "1"
                | "2"
                | "3"
                | "4"
                | "5"
                | "6"
                | "7"
                | "8"
                | "9"
                | "10"
                | "12"
                | "14"
                | "16"
                | "20"
                | "24"
                | "28"
                | "32"
                | "36"
                | "40"
                | "44"
                | "48"
                | "52"
                | "56"
                | "60"
                | "64"
                | "72"
                | "80"
                | "96"
                | "0.5"
                | "1.5"
                | "2.5"
                | "3.5"
                | "max"
                | "min"
                | "full"
                | "3xs"
                | "2xs"
                | "xs"
                | "3xl"
                | "4xl"
                | "5xl"
                | "6xl"
                | "7xl"
                | "8xl"
                | "prose"
                | "container.sm"
                | "container.md"
                | "container.lg"
                | "container.xl">;
            map?: MapModel;
            mapId?: string;
            olLayer: BaseLayer;
            width?: ResponsiveValue<
                | number
                | "px"
                | string & {}
                | "-moz-initial"
                | "inherit"
                | "initial"
                | "revert"
                | "revert-layer"
                | "unset"
                | "-moz-max-content"
                | "-moz-min-content"
                | "-webkit-fit-content"
                | "auto"
                | "fit-content"
                | "max-content"
                | "min-content"
                | "sm"
                | "md"
                | "lg"
                | "xl"
                | "2xl"
                | "1"
                | "2"
                | "3"
                | "4"
                | "5"
                | "6"
                | "7"
                | "8"
                | "9"
                | "10"
                | "12"
                | "14"
                | "16"
                | "20"
                | "24"
                | "28"
                | "32"
                | "36"
                | "40"
                | "44"
                | "48"
                | "52"
                | "56"
                | "60"
                | "64"
                | "72"
                | "80"
                | "96"
                | "0.5"
                | "1.5"
                | "2.5"
                | "3.5"
                | "max"
                | "min"
                | "full"
                | "3xs"
                | "2xs"
                | "xs"
                | "3xl"
                | "4xl"
                | "5xl"
                | "6xl"
                | "7xl"
                | "8xl"
                | "prose"
                | "container.sm"
                | "container.md"
                | "container.lg"
                | "container.xl"
                | "-moz-fit-content"
                | "-webkit-max-content"
                | "intrinsic"
                | "min-intrinsic">;
        }

        Hierarchy (view full)

        Properties

        height?: ResponsiveValue<
            | number
            | "px"
            | string & {}
            | "-moz-initial"
            | "inherit"
            | "initial"
            | "revert"
            | "revert-layer"
            | "unset"
            | "-moz-max-content"
            | "-moz-min-content"
            | "-webkit-fit-content"
            | "auto"
            | "fit-content"
            | "max-content"
            | "min-content"
            | "sm"
            | "md"
            | "lg"
            | "xl"
            | "2xl"
            | "1"
            | "2"
            | "3"
            | "4"
            | "5"
            | "6"
            | "7"
            | "8"
            | "9"
            | "10"
            | "12"
            | "14"
            | "16"
            | "20"
            | "24"
            | "28"
            | "32"
            | "36"
            | "40"
            | "44"
            | "48"
            | "52"
            | "56"
            | "60"
            | "64"
            | "72"
            | "80"
            | "96"
            | "0.5"
            | "1.5"
            | "2.5"
            | "3.5"
            | "max"
            | "min"
            | "full"
            | "3xs"
            | "2xs"
            | "xs"
            | "3xl"
            | "4xl"
            | "5xl"
            | "6xl"
            | "7xl"
            | "8xl"
            | "prose"
            | "container.sm"
            | "container.md"
            | "container.lg"
            | "container.xl">

        The height of the map. This defaults to a reasonable pixel size.

        -
        map?: MapModel

        The direct map model reference to use. +

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        olLayer: BaseLayer

        The layer shown in the overview map.

        -
        width?: ResponsiveValue<
            | number
            | "px"
            | string & {}
            | "-moz-initial"
            | "inherit"
            | "initial"
            | "revert"
            | "revert-layer"
            | "unset"
            | "-moz-max-content"
            | "-moz-min-content"
            | "-webkit-fit-content"
            | "auto"
            | "fit-content"
            | "max-content"
            | "min-content"
            | "sm"
            | "md"
            | "lg"
            | "xl"
            | "2xl"
            | "1"
            | "2"
            | "3"
            | "4"
            | "5"
            | "6"
            | "7"
            | "8"
            | "9"
            | "10"
            | "12"
            | "14"
            | "16"
            | "20"
            | "24"
            | "28"
            | "32"
            | "36"
            | "40"
            | "44"
            | "48"
            | "52"
            | "56"
            | "60"
            | "64"
            | "72"
            | "80"
            | "96"
            | "0.5"
            | "1.5"
            | "2.5"
            | "3.5"
            | "max"
            | "min"
            | "full"
            | "3xs"
            | "2xs"
            | "xs"
            | "3xl"
            | "4xl"
            | "5xl"
            | "6xl"
            | "7xl"
            | "8xl"
            | "prose"
            | "container.sm"
            | "container.md"
            | "container.lg"
            | "container.xl"
            | "-moz-fit-content"
            | "-webkit-max-content"
            | "intrinsic"
            | "min-intrinsic">

        The width of the map. +

        olLayer: BaseLayer

        The layer shown in the overview map.

        +
        width?: ResponsiveValue<
            | number
            | "px"
            | string & {}
            | "-moz-initial"
            | "inherit"
            | "initial"
            | "revert"
            | "revert-layer"
            | "unset"
            | "-moz-max-content"
            | "-moz-min-content"
            | "-webkit-fit-content"
            | "auto"
            | "fit-content"
            | "max-content"
            | "min-content"
            | "sm"
            | "md"
            | "lg"
            | "xl"
            | "2xl"
            | "1"
            | "2"
            | "3"
            | "4"
            | "5"
            | "6"
            | "7"
            | "8"
            | "9"
            | "10"
            | "12"
            | "14"
            | "16"
            | "20"
            | "24"
            | "28"
            | "32"
            | "36"
            | "40"
            | "44"
            | "48"
            | "52"
            | "56"
            | "60"
            | "64"
            | "72"
            | "80"
            | "96"
            | "0.5"
            | "1.5"
            | "2.5"
            | "3.5"
            | "max"
            | "min"
            | "full"
            | "3xs"
            | "2xs"
            | "xs"
            | "3xl"
            | "4xl"
            | "5xl"
            | "6xl"
            | "7xl"
            | "8xl"
            | "prose"
            | "container.sm"
            | "container.md"
            | "container.lg"
            | "container.xl"
            | "-moz-fit-content"
            | "-webkit-max-content"
            | "intrinsic"
            | "min-intrinsic">

        The width of the map. This defaults to a reasonable pixel size.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintResult.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintResult.html index ff749cc9b..b06725ecf 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintResult.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintResult.html @@ -1,8 +1,8 @@ PrintResult | Open Pioneer Trails Packages

        The result of a print operation.

        -
        interface PrintResult {
            getCanvas(): HTMLCanvasElement;
            getPNGDataURL(quality?: number): string;
        }

        Methods

        interface PrintResult {
            getCanvas(): HTMLCanvasElement;
            getPNGDataURL(quality?: number): string;
        }

        Methods

        • Returns a canvas element that contains the result of the map print.

          -

          Returns HTMLCanvasElement

        +

        Parameters

        • Optionalquality: number

        Returns string

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingOptions.html index 2220afea8..9c09ecf2b 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingOptions.html @@ -1,11 +1,11 @@ PrintingOptions | Open Pioneer Trails Packages

        Options supported when printing the map.

        -
        interface PrintingOptions {
            blockUserInteraction?: boolean;
            overlayText?: string;
            viewPadding?: ViewPaddingBehavior;
        }

        Properties

        interface PrintingOptions {
            blockUserInteraction?: boolean;
            overlayText?: string;
            viewPadding?: ViewPaddingBehavior;
        }

        Properties

        blockUserInteraction?: boolean

        When this is true (the default), an overlay will be added above the map to block user interactions.

        It is recommended to block user interaction (in some way) while the map is printing to avoid inconsistencies.

        -
        overlayText?: string

        This option can be used to customize the text content of the overlay (if enabled).

        -
        viewPadding?: ViewPaddingBehavior

        Whether to respect the map view's padding when printing (default: "auto").

        -
        +
        overlayText?: string

        This option can be used to customize the text content of the overlay (if enabled).

        +
        viewPadding?: ViewPaddingBehavior

        Whether to respect the map view's padding when printing (default: "auto").

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingProps.html index 9744fcf3a..76fa2387d 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingProps.html @@ -1,11 +1,11 @@ PrintingProps | Open Pioneer Trails Packages

        This is special property for the Printing.

        -
        interface PrintingProps {
            map?: MapModel;
            mapId?: string;
            viewPadding?: ViewPaddingBehavior;
        }

        Hierarchy (view full)

        Properties

        interface PrintingProps {
            map?: MapModel;
            mapId?: string;
            viewPadding?: ViewPaddingBehavior;
        }

        Hierarchy (view full)

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        viewPadding?: ViewPaddingBehavior

        Whether to respect the map view's padding when printing (default: "auto").

        +
        viewPadding?: ViewPaddingBehavior

        Whether to respect the map view's padding when printing (default: "auto").

        See also ViewPaddingBehavior.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingService.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingService.html index 7007fd359..4478c9a4b 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingService.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingService.html @@ -1,7 +1,7 @@ PrintingService | Open Pioneer Trails Packages

        The printing service provides an image of a map as a canvas element or a data URL for a PNG image.

        Inject an instance of this service by referencing the interface name "printing.PrintingService".

        -
        interface PrintingService {
            printMap(olMap: Map, options?: PrintingOptions): Promise<PrintResult>;
        }

        Hierarchy

        • DeclaredService<"printing.PrintingService">
          • PrintingService

        Methods

        interface PrintingService {
            printMap(olMap: Map, options?: PrintingOptions): Promise<PrintResult>;
        }

        Hierarchy

        • DeclaredService<"printing.PrintingService">
          • PrintingService

        Methods

        Methods

        +

        Parameters

        Returns Promise<PrintResult>

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.FormatOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.FormatOptions.html index 80b588783..e201d8119 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.FormatOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.FormatOptions.html @@ -1,6 +1,6 @@ FormatOptions | Open Pioneer Trails Packages

        To specify the format of cell values if they are of number or date type.

        -
        interface FormatOptions {
            dateOptions?: DateTimeFormatOptions;
            numberOptions?: FormatNumberOptions;
        }

        Properties

        interface FormatOptions {
            dateOptions?: DateTimeFormatOptions;
            numberOptions?: FormatNumberOptions;
        }

        Properties

        dateOptions?: DateTimeFormatOptions

        To specify the format of date type values

        -
        numberOptions?: FormatNumberOptions

        To specify the format of number type values

        -
        +
        numberOptions?: FormatNumberOptions

        To specify the format of number type values

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.RenderCellContext.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.RenderCellContext.html index 2ef7df200..645e11cd5 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.RenderCellContext.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.RenderCellContext.html @@ -1,7 +1,7 @@ RenderCellContext | Open Pioneer Trails Packages

        The arguments passed to renderCell.

        -
        interface RenderCellContext {
            feature: BaseFeature;
            value: unknown;
        }

        Properties

        interface RenderCellContext {
            feature: BaseFeature;
            value: unknown;
        }

        Properties

        Properties

        feature: BaseFeature

        The feature in this row.

        -
        value: unknown

        The value of this column. +

        value: unknown

        The value of this column. May be undefined if neither propertyName nor getPropertyValue was specified on the column.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultColumn.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultColumn.html index 27a5244e6..900937ba2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultColumn.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultColumn.html @@ -1,6 +1,6 @@ ResultColumn | Open Pioneer Trails Packages

        Configures a column in the result list component.

        A column typically renders a property from the underlying feature.

        -
        interface ResultColumn {
            displayName?: string;
            getPropertyValue?: ((feature: BaseFeature) => unknown);
            id?: string;
            propertyName?: string;
            renderCell?: ((context: RenderCellContext) => ReactNode);
            width?: number;
        }

        Properties

        interface ResultColumn {
            displayName?: string;
            getPropertyValue?: ((feature: BaseFeature) => unknown);
            id?: string;
            propertyName?: string;
            renderCell?: ((context: RenderCellContext) => ReactNode);
            width?: number;
        }

        Properties

        Properties

        displayName?: string

        The display name of this column.

        If no displayName has been configured, propertyName will serve as a fallback value. If propertyName is also undefined, no column header will be rendered at all.

        -
        getPropertyValue?: ((feature: BaseFeature) => unknown)

        Define this function to return a custom property value for this column.

        +
        getPropertyValue?: ((feature: BaseFeature) => unknown)

        Define this function to return a custom property value for this column.

        This can be used to create derived columns (by combining multiple properties into one value) or to create columns for property that don't exist directly on the feature.

        The return value of this function will be rendered by the table.

        -
        id?: string

        Use this option to define an explicit column id. +

        id?: string

        Use this option to define an explicit column id. This can be helpful to track your column when it moves in the table (for example, the sort order can be maintained).

        If this is not defined, propertyName will serve as a fallback. If that is also not defined, the column index will be used instead.

        It is recommended to specify an id, if no propertyName has been set, because the column index fallback is not advised.

        -
        propertyName?: string

        The property name to render.

        +
        propertyName?: string

        The property name to render.

        The value is expected to be available as feature.properties[propertyName].

        See also getPropertyValue.

        -
        renderCell?: ((context: RenderCellContext) => ReactNode)

        Custom render function to render a table cell in this column.

        -
        width?: number

        The width of this column, in pixels.

        -
        +
        renderCell?: ((context: RenderCellContext) => ReactNode)

        Custom render function to render a table cell in this column.

        +
        width?: number

        The width of this column, in pixels.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListInput.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListInput.html index 25dc4083e..642b3f139 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListInput.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListInput.html @@ -1,10 +1,10 @@ ResultListInput | Open Pioneer Trails Packages

        Configures the result list's content.

        -
        interface ResultListInput {
            columns: ResultColumn[];
            data: BaseFeature[];
            formatOptions?: FormatOptions;
        }

        Properties

        interface ResultListInput {
            columns: ResultColumn[];
            data: BaseFeature[];
            formatOptions?: FormatOptions;
        }

        Properties

        columns: ResultColumn[]

        Configures the columns shown by the result list.

        -
        data: BaseFeature[]

        The data shown by the result list component. +

        data: BaseFeature[]

        The data shown by the result list component. Every feature will be rendered as an individual row.

        -
        formatOptions?: FormatOptions

        Optional formatOptions to specify the numberOptions for number type values and +

        formatOptions?: FormatOptions

        Optional formatOptions to specify the numberOptions for number type values and dateOptions to specify the format of date type values

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListProps.html index a7267eb7b..131adc01d 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListProps.html @@ -1,5 +1,5 @@ ResultListProps | Open Pioneer Trails Packages

        Properties supported by the ResultList component.

        -
        interface ResultListProps {
            enableHighlight?: boolean;
            enableZoom?: boolean;
            highlightOptions?: HighlightOptions;
            input: ResultListInput;
            map?: MapModel;
            mapId?: string;
            memoizeRows?: boolean;
            onSelectionChange?: ((event: ResultListSelectionChangeEvent) => void);
            selectionMode?: SelectionMode;
            selectionStyle?: "radio" | "checkbox";
            zoomOptions?: ZoomOptions;
        }

        Hierarchy (view full)

        Properties

        interface ResultListProps {
            enableHighlight?: boolean;
            enableZoom?: boolean;
            highlightOptions?: HighlightOptions;
            input: ResultListInput;
            map?: MapModel;
            mapId?: string;
            memoizeRows?: boolean;
            onSelectionChange?: ((event: ResultListSelectionChangeEvent) => void);
            selectionMode?: SelectionMode;
            selectionStyle?: "radio" | "checkbox";
            zoomOptions?: ZoomOptions;
        }

        Hierarchy (view full)

        Properties

        enableHighlight?: boolean

        Should data be highlighted in the map. Default true.

        -
        enableZoom?: boolean

        Specifies if the map should zoom to features when they are loaded into the result-list. Defaults to true.

        -
        highlightOptions?: HighlightOptions

        Optional styling option

        -

        Describes the data rendered by the component.

        -
        map?: MapModel

        The direct map model reference to use. +

        enableZoom?: boolean

        Specifies if the map should zoom to features when they are loaded into the result-list. Defaults to true.

        +
        highlightOptions?: HighlightOptions

        Optional styling option

        +

        Describes the data rendered by the component.

        +
        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        memoizeRows?: boolean

        Should each row be memoized to improve render performance. Default false.

        -
        onSelectionChange?: ((event: ResultListSelectionChangeEvent) => void)

        This handler is called whenever the user has changed the selected features in the result-list.

        -
        selectionMode?: SelectionMode

        The selection mode used by the result list. Defaults to "multi".

        -
        selectionStyle?: "radio" | "checkbox"

        The style used for the selection controls in a row. +

        memoizeRows?: boolean

        Should each row be memoized to improve render performance. Default false.

        +
        onSelectionChange?: ((event: ResultListSelectionChangeEvent) => void)

        This handler is called whenever the user has changed the selected features in the result-list.

        +
        selectionMode?: SelectionMode

        The selection mode used by the result list. Defaults to "multi".

        +
        selectionStyle?: "radio" | "checkbox"

        The style used for the selection controls in a row. Defaults to "checkbox" if selectionMode is "multi", or "radio" if selectionMode is "single".

        Note: "radio" can not be used together with multi selection.

        -
        zoomOptions?: ZoomOptions

        Optional zooming options

        -
        +
        zoomOptions?: ZoomOptions

        Optional zooming options

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListSelectionChangeEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListSelectionChangeEvent.html index d07ba0dd9..4688d2ba8 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListSelectionChangeEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListSelectionChangeEvent.html @@ -1,4 +1,4 @@ ResultListSelectionChangeEvent | Open Pioneer Trails Packages

        Emitted when the selection within the ResultList changes.

        -
        interface ResultListSelectionChangeEvent {
            features: BaseFeature[];
            getFeatureIds: (() => (string | number)[]);
        }

        Properties

        interface ResultListSelectionChangeEvent {
            features: BaseFeature[];
            getFeatureIds: (() => (string | number)[]);
        }

        Properties

        features: BaseFeature[]
        getFeatureIds: (() => (string | number)[])
        +

        Properties

        features: BaseFeature[]
        getFeatureIds: (() => (string | number)[])
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_bar.ScaleBarProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_bar.ScaleBarProps.html index bf562e439..59107e108 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_bar.ScaleBarProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_bar.ScaleBarProps.html @@ -1,10 +1,10 @@ ScaleBarProps | Open Pioneer Trails Packages

        These are the properties supported by the ScaleBar.

        -
        interface ScaleBarProps {
            displayMode?: "bar" | "line";
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        Properties

        interface ScaleBarProps {
            displayMode?: "bar" | "line";
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        Properties

        displayMode?: "bar" | "line"

        Display the scale either as a line or a bar. Defaults to "line".

        -
        map?: MapModel

        The direct map model reference to use. +

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_setter.ScaleSetterProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_setter.ScaleSetterProps.html index 732d1f609..1f9c9d661 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_setter.ScaleSetterProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_setter.ScaleSetterProps.html @@ -1,10 +1,10 @@ ScaleSetterProps | Open Pioneer Trails Packages

        These are the properties supported by the ScaleSetter.

        -
        interface ScaleSetterProps {
            map?: MapModel;
            mapId?: string;
            scales?: number[];
        }

        Hierarchy (view full)

        Properties

        interface ScaleSetterProps {
            map?: MapModel;
            mapId?: string;
            scales?: number[];
        }

        Hierarchy (view full)

        Properties

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        scales?: number[]

        The set of scales that can be selected by the user.

        -
        +
        scales?: number[]

        The set of scales that can be selected by the user.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html index ebddfb8e4..083132575 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html @@ -1,8 +1,8 @@ ScaleViewerProps | Open Pioneer Trails Packages

        These are the properties supported by the ScaleViewer.

        -
        interface ScaleViewerProps {
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        Properties

        interface ScaleViewerProps {
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        Properties

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchOptions.html index 3218443bc..60a9bf813 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchOptions.html @@ -1,15 +1,15 @@ SearchOptions | Open Pioneer Trails Packages

        Options passed to a SearchSource when triggering a search.

        -
        interface SearchOptions {
            mapProjection: Projection;
            maxResults: number;
            signal: AbortSignal;
        }

        Properties

        interface SearchOptions {
            mapProjection: Projection;
            maxResults: number;
            signal: AbortSignal;
        }

        Properties

        mapProjection: Projection

        The current projection of the map. Useful to return the search result's geometry in the suitable projection.

        -
        maxResults: number

        The maximum number of search results requested by the search widget. +

        maxResults: number

        The maximum number of search results requested by the search widget. The widget will not display additional results, should the source provide them.

        This property allows the source to fetch no more results than necessary.

        -
        signal: AbortSignal

        The signal can be used to detect cancellation. +

        signal: AbortSignal

        The signal can be used to detect cancellation. The search widget will automatically cancel obsolete requests when new search operations are started.

        You can pass this signal to builtin functions like fetch that automatically support cancellation.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchProps.html index 5de528829..4282755fc 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchProps.html @@ -1,5 +1,5 @@ SearchProps | Open Pioneer Trails Packages

        Properties supported by the Search component.

        -
        interface SearchProps {
            map?: MapModel;
            mapId?: string;
            maxResultsPerGroup?: number;
            onClear?: (() => void);
            onSelect?: ((event: SearchSelectEvent) => void);
            placeholder?: string;
            searchTypingDelay?: number;
            sources: SearchSource[];
        }

        Hierarchy (view full)

        Properties

        interface SearchProps {
            map?: MapModel;
            mapId?: string;
            maxResultsPerGroup?: number;
            onClear?: (() => void);
            onSelect?: ((event: SearchSelectEvent) => void);
            placeholder?: string;
            searchTypingDelay?: number;
            sources: SearchSource[];
        }

        Hierarchy (view full)

        Properties

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        maxResultsPerGroup?: number

        The maximum number of results shown per group. +

        maxResultsPerGroup?: number

        The maximum number of results shown per group. Defaults to 5.

        -
        onClear?: (() => void)

        This event handler will be called when the user clears the search input.

        -
        onSelect?: ((event: SearchSelectEvent) => void)

        This event handler will be called when the user selects a search result.

        -
        placeholder?: string

        The placeholder text shown in the search input field when it is empty. +

        onClear?: (() => void)

        This event handler will be called when the user clears the search input.

        +
        onSelect?: ((event: SearchSelectEvent) => void)

        This event handler will be called when the user selects a search result.

        +
        placeholder?: string

        The placeholder text shown in the search input field when it is empty. Defaults to a generic (and localized) hint.

        -
        searchTypingDelay?: number

        Typing delay (in milliseconds) before the async search query starts after the user types in the search term. +

        searchTypingDelay?: number

        Typing delay (in milliseconds) before the async search query starts after the user types in the search term. Defaults to 200.

        -
        sources: SearchSource[]

        Data sources to be searched on.

        -
        +
        sources: SearchSource[]

        Data sources to be searched on.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchResult.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchResult.html index f1f2a497c..b8c92b1ad 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchResult.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchResult.html @@ -1,5 +1,5 @@ SearchResult | Open Pioneer Trails Packages

        Represent the result of a search.

        -
        interface SearchResult {
            geometry?: Geometry;
            id: string | number;
            label: string;
            projection?: string;
            properties?: Readonly<Record<string, unknown>>;
            style?: Style;
        }

        Hierarchy (view full)

        Properties

        interface SearchResult {
            geometry?: Geometry;
            id: string | number;
            label: string;
            projection?: string;
            properties?: Readonly<Record<string, unknown>>;
            style?: Style;
        }

        Hierarchy (view full)

        Properties

        geometry? id label projection? @@ -7,12 +7,12 @@ style?

        Properties

        geometry?: Geometry

        Geometry of the feature. Also specify the projection if geometry is set.

        -
        id: string | number

        Identifier for the feature object. Must be unique within all features of one source/layer.

        +
        id: string | number

        Identifier for the feature object. Must be unique within all features of one source/layer.

        If your source cannot provide a useful id on its own, another strategy to generate unique ids is to generate a UUID instead.

        -
        label: string

        Display text representing this result. +

        label: string

        Display text representing this result. Will be shown in the search widget's suggestion list.

        -
        projection?: string

        The projection of the geometry.

        -
        properties?: Readonly<Record<string, unknown>>

        Properties of the feature.

        -
        style?: Style

        Additional style information for displaying the feature on the map.

        -
        +
        projection?: string

        The projection of the geometry.

        +
        properties?: Readonly<Record<string, unknown>>

        Properties of the feature.

        +
        style?: Style

        Additional style information for displaying the feature on the map.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSelectEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSelectEvent.html index 7b75fcd9f..4d17a3834 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSelectEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSelectEvent.html @@ -1,6 +1,6 @@ SearchSelectEvent | Open Pioneer Trails Packages

        Event type emitted when the user selects an item.

        -
        interface SearchSelectEvent {
            result: SearchResult;
            source: SearchSource;
        }

        Properties

        interface SearchSelectEvent {
            result: SearchResult;
            source: SearchSource;
        }

        Properties

        Properties

        result: SearchResult

        The search result selected by the user.

        -
        source: SearchSource

        The source that returned the result.

        -
        +
        source: SearchSource

        The source that returned the result.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSource.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSource.html index 815447af5..664caf64a 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSource.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSource.html @@ -1,10 +1,10 @@ SearchSource | Open Pioneer Trails Packages

        An object that allows searching some set of data.

        Developers can create classes that implement this interface for different search sources.

        -
        interface SearchSource {
            label: string;
            search(inputValue: string, options: SearchOptions): Promise<SearchResult[]>;
        }

        Properties

        interface SearchSource {
            label: string;
            search(inputValue: string, options: SearchOptions): Promise<SearchResult[]>;
        }

        Properties

        Methods

        Properties

        label: string

        The label of this source.

        This will be displayed by the user interface when results from this search source are shown.

        -

        Methods

        Methods

        • Performs a search and return a list of search results.

          Implementations should return the results ordered by priority (best match first), if possible.

          The provided AbortSignal in options.signal is used to cancel outdated requests.

          NOTE: If your search source implements custom error handling (i.e. try/catch), it is good practice to forward @@ -14,4 +14,4 @@

          import { isAbortError } from "@open-pioneer/core";

          class CustomSearchSource {
          async search(input, { signal }) {
          try {
          // If the search is cancelled by the UI, doRequest
          // will throw an AbortError. It might throw other errors
          // due to application errors, network problems etc.
          const result = await doCustomSearch(input, signal);
          // ... do something with result
          } catch (e) {
          if (isAbortError(e)) {
          throw e; // rethrow original error
          }
          // Possibly use custom error codes or error classes for better error messages
          throw new Error("Custom search failed", { cause: e });
          }
          }
          }
          -

          Parameters

          Returns Promise<SearchResult[]>

        +

        Parameters

        Returns Promise<SearchResult[]>

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.ExtentSelection.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.ExtentSelection.html index c0bf66c46..e936e20ef 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.ExtentSelection.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.ExtentSelection.html @@ -1,4 +1,4 @@ ExtentSelection | Open Pioneer Trails Packages

        The user has selected an extent.

        -
        interface ExtentSelection {
            extent: Extent;
            type: "extent";
        }

        Properties

        interface ExtentSelection {
            extent: Extent;
            type: "extent";
        }

        Properties

        Properties

        extent: Extent
        type
        +

        Properties

        extent: Extent
        type
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionCompleteEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionCompleteEvent.html index e09d9a00b..b339205c3 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionCompleteEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionCompleteEvent.html @@ -1,5 +1,5 @@ -SelectionCompleteEvent | Open Pioneer Trails Packages
        interface SelectionCompleteEvent {
            results: SelectionResult[];
            source: SelectionSource;
        }

        Properties

        results +SelectionCompleteEvent | Open Pioneer Trails Packages
        interface SelectionCompleteEvent {
            results: SelectionResult[];
            source: SelectionSource;
        }

        Properties

        Properties

        results: SelectionResult[]

        Results selected by the user.

        -

        The source that returned the results.

        -
        +

        The source that returned the results.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionOptions.html index 2beb368fc..5f8c65913 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionOptions.html @@ -1,13 +1,13 @@ SelectionOptions | Open Pioneer Trails Packages

        Options passed to a SelectionSource when triggering a select.

        -
        interface SelectionOptions {
            mapProjection: Projection;
            maxResults: number;
            signal: AbortSignal;
        }

        Properties

        interface SelectionOptions {
            mapProjection: Projection;
            maxResults: number;
            signal: AbortSignal;
        }

        Properties

        mapProjection: Projection

        The current projection of the map. Useful to return the selection result's geometry in the suitable projection, should they differ.

        -
        maxResults: number

        The maximum number of selection results to request. +

        maxResults: number

        The maximum number of selection results to request. The selection component currently only supports a certain amount of results (indicated by this value). If a source results more than maxResults results, additional results will be ignored.

        -
        signal: AbortSignal

        The signal can be used to detect cancellation.

        +
        signal: AbortSignal

        The signal can be used to detect cancellation.

        You can pass this signal to builtin functions like fetch that automatically support cancellation.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionProps.html index d627a17b2..d4c3b7ea3 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionProps.html @@ -1,15 +1,15 @@ SelectionProps | Open Pioneer Trails Packages

        Properties supported by the Selection component.

        -
        interface SelectionProps {
            map?: MapModel;
            mapId?: string;
            sources: SelectionSource[];
            onSelectionComplete?(event: SelectionCompleteEvent): void;
            onSelectionSourceChanged?(event: SelectionSourceChangedEvent): void;
        }

        Hierarchy (view full)

        Properties

        interface SelectionProps {
            map?: MapModel;
            mapId?: string;
            sources: SelectionSource[];
            onSelectionComplete?(event: SelectionCompleteEvent): void;
            onSelectionSourceChanged?(event: SelectionSourceChangedEvent): void;
        }

        Hierarchy (view full)

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        sources: SelectionSource[]

        Array of selection sources available for spatial selection.

        -

        Methods

        sources: SelectionSource[]

        Array of selection sources available for spatial selection.

        +

        Methods

        +

        Parameters

        Returns void

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionResult.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionResult.html index d3717c6b5..9ef6347a2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionResult.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionResult.html @@ -1,15 +1,15 @@ SelectionResult | Open Pioneer Trails Packages

        Represents a result returned by a spatial selection.

        -
        interface SelectionResult {
            geometry: Geometry;
            id: string | number;
            projection?: string;
            properties?: Readonly<Record<string, unknown>>;
            style?: Style;
        }

        Hierarchy (view full)

        Properties

        interface SelectionResult {
            geometry: Geometry;
            id: string | number;
            projection?: string;
            properties?: Readonly<Record<string, unknown>>;
            style?: Style;
        }

        Hierarchy (view full)

        Properties

        geometry: Geometry

        Geometry of the selection result. One should also specify the projection.

        -
        id: string | number

        Identifier for the feature object. Must be unique within all features of one source/layer.

        +
        id: string | number

        Identifier for the feature object. Must be unique within all features of one source/layer.

        If your source cannot provide a useful id on its own, another strategy to generate unique ids is to generate a UUID instead.

        -
        projection?: string

        The projection of the geometry.

        -
        properties?: Readonly<Record<string, unknown>>

        Properties of the feature.

        -
        style?: Style

        Additional style information for displaying the feature on the map.

        -
        +
        projection?: string

        The projection of the geometry.

        +
        properties?: Readonly<Record<string, unknown>>

        Properties of the feature.

        +
        style?: Style

        Additional style information for displaying the feature on the map.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSource.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSource.html index f1c831ce4..82d4fc01a 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSource.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSource.html @@ -1,17 +1,17 @@ SelectionSource | Open Pioneer Trails Packages

        An object that allows spatial selection.

        Developers can create classes that implement this interface for different selection sources.

        -
        interface SelectionSource {
            label: string;
            status?: SelectionSourceStatus;
            select(selectionKind: ExtentSelection, options: SelectionOptions): Promise<SelectionResult[]>;
        }

        Properties

        interface SelectionSource {
            label: string;
            status?: SelectionSourceStatus;
            select(selectionKind: ExtentSelection, options: SelectionOptions): Promise<SelectionResult[]>;
        }

        Properties

        Methods

        Properties

        label: string

        The label of this source.

        This will be displayed by the user interface during selection source selection.

        -

        The optional status of this source. If there is no status defined, it is assumed that the +

        The optional status of this source. If there is no status defined, it is assumed that the source is always available.

        This will be displayed by the user interface.

        This value can be reactive; changes will be reflected in the UI.

        -

        Methods

        Methods

        +

        Returns Promise<SelectionResult[]>

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceChangedEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceChangedEvent.html index 6f1dfb638..a28bafe8e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceChangedEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceChangedEvent.html @@ -1,3 +1,3 @@ -SelectionSourceChangedEvent | Open Pioneer Trails Packages
        interface SelectionSourceChangedEvent {
            source: undefined | SelectionSource;
        }

        Properties

        source +SelectionSourceChangedEvent | Open Pioneer Trails Packages
        interface SelectionSourceChangedEvent {
            source: undefined | SelectionSource;
        }

        Properties

        Properties

        source: undefined | SelectionSource

        The new selected source

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSource.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSource.html index a552858f7..720b4da8c 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSource.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSource.html @@ -1,15 +1,15 @@ -VectorLayerSelectionSource | Open Pioneer Trails Packages
        interface VectorLayerSelectionSource {
            label: string;
            status: SelectionSourceStatus;
            select(selectionKind: ExtentSelection, options: SelectionOptions): Promise<SelectionResult[]>;
        }

        Hierarchy

        Properties

        label +VectorLayerSelectionSource | Open Pioneer Trails Packages
        interface VectorLayerSelectionSource {
            label: string;
            status: SelectionSourceStatus;
            select(selectionKind: ExtentSelection, options: SelectionOptions): Promise<SelectionResult[]>;
        }

        Hierarchy

        Properties

        Methods

        Properties

        label: string

        The label of this source.

        This will be displayed by the user interface during selection source selection.

        -

        The optional status of this source. If there is no status defined, it is assumed that the +

        The optional status of this source. If there is no status defined, it is assumed that the source is always available.

        This will be displayed by the user interface.

        This value can be reactive; changes will be reflected in the UI.

        -

        Methods

        Methods

        +

        Returns Promise<SelectionResult[]>

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceFactory.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceFactory.html index 1d6d3dee9..70203e98a 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceFactory.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceFactory.html @@ -1,6 +1,6 @@ VectorLayerSelectionSourceFactory | Open Pioneer Trails Packages

        A factory that creates selection sources to be used on an OpenLayers VectorLayer with an OpenLayers VectorSource (e.g. layer of the map).

        Use the interface name "selection.VectorSelectionSourceFactory" to obtain an instance of this factory.

        -
        interface VectorLayerSelectionSourceFactory {
            createSelectionSource(options: VectorLayerSelectionSourceOptions): VectorLayerSelectionSource;
        }

        Hierarchy

        • DeclaredService<"selection.VectorSelectionSourceFactory">
          • VectorLayerSelectionSourceFactory

        Methods

        interface VectorLayerSelectionSourceFactory {
            createSelectionSource(options: VectorLayerSelectionSourceOptions): VectorLayerSelectionSource;
        }

        Hierarchy

        • DeclaredService<"selection.VectorSelectionSourceFactory">
          • VectorLayerSelectionSourceFactory

        Methods

        +

        Returns VectorLayerSelectionSource

        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceOptions.html index e5e6d4c6c..99b0b0d98 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceOptions.html @@ -1,3 +1,3 @@ -VectorLayerSelectionSourceOptions | Open Pioneer Trails Packages
        interface VectorLayerSelectionSourceOptions {
            label: string;
            vectorLayer: VectorLayer<VectorSource<Feature<Geometry>>, Feature<Geometry>>;
        }

        Properties

        label +VectorLayerSelectionSourceOptions | Open Pioneer Trails Packages
        interface VectorLayerSelectionSourceOptions {
            label: string;
            vectorLayer: VectorLayer<VectorSource<Feature<Geometry>>, Feature<Geometry>>;
        }

        Properties

        Properties

        label: string
        vectorLayer: VectorLayer<VectorSource<Feature<Geometry>>, Feature<Geometry>>
        +

        Properties

        label: string
        vectorLayer: VectorLayer<VectorSource<Feature<Geometry>>, Feature<Geometry>>
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_spatial_bookmarks.SpatialBookmarksProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_spatial_bookmarks.SpatialBookmarksProps.html index 7d2bbcda8..755c16a65 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_spatial_bookmarks.SpatialBookmarksProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_spatial_bookmarks.SpatialBookmarksProps.html @@ -1,10 +1,10 @@ SpatialBookmarksProps | Open Pioneer Trails Packages

        Options that specify which map to use. See useMapModel.

        When not setting any of these properties on a component, the default map (from the DefaultMapProvider) will be used. If that is not available either, an error will be thrown.

        -
        interface SpatialBookmarksProps {
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        Properties

        interface SpatialBookmarksProps {
            map?: MapModel;
            mapId?: string;
        }

        Hierarchy (view full)

        Properties

        Properties

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.TocProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.TocProps.html index 3f7f97f24..4d9660c7c 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.TocProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.TocProps.html @@ -1,5 +1,5 @@ TocProps | Open Pioneer Trails Packages

        Props supported by the Toc component.

        -
        interface TocProps {
            autoShowParents?: boolean;
            basemapSwitcherProps?: Omit<BasemapSwitcherProps, "mapId">;
            map?: MapModel;
            mapId?: string;
            showBasemapSwitcher?: boolean;
            showTools?: boolean;
            toolsConfig?: ToolsConfig;
        }

        Hierarchy (view full)

        Properties

        interface TocProps {
            autoShowParents?: boolean;
            basemapSwitcherProps?: Omit<BasemapSwitcherProps, "mapId">;
            map?: MapModel;
            mapId?: string;
            showBasemapSwitcher?: boolean;
            showTools?: boolean;
            toolsConfig?: ToolsConfig;
        }

        Hierarchy (view full)

        Properties

        autoShowParents?: boolean

        Show the parent layers when a child layer is made visible. Defaults to true.

        -
        basemapSwitcherProps?: Omit<BasemapSwitcherProps, "mapId">

        Properties for the embedded basemap switcher. +

        basemapSwitcherProps?: Omit<BasemapSwitcherProps, "mapId">

        Properties for the embedded basemap switcher. Property "mapId" is not applied.

        -
        map?: MapModel

        The direct map model reference to use. +

        map?: MapModel

        The direct map model reference to use. This property can be used as an alternative to the mapId.

        -
        mapId?: string

        The id of the map. +

        mapId?: string

        The id of the map. The map will be looked up in the MapRegistry service.

        -
        showBasemapSwitcher?: boolean

        Defines whether the basemap switcher is shown in the toc. +

        showBasemapSwitcher?: boolean

        Defines whether the basemap switcher is shown in the toc. Defaults to true.

        -
        showTools?: boolean

        Defines whether the tool component is shown in the toc. +

        showTools?: boolean

        Defines whether the tool component is shown in the toc. Defaults to false.

        -
        toolsConfig?: ToolsConfig

        Properties for the embedded tool component.

        -
        +
        toolsConfig?: ToolsConfig

        Properties for the embedded tool component.

        +
        diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.ToolsConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.ToolsConfig.html index eebdf273e..73a3d5a41 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.ToolsConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.ToolsConfig.html @@ -1,5 +1,5 @@ ToolsConfig | Open Pioneer Trails Packages

        Props supported by the Tools component.

        -
        interface ToolsConfig {
            showHideAllLayers?: boolean;
        }

        Properties

        interface ToolsConfig {
            showHideAllLayers?: boolean;
        }

        Properties

        showHideAllLayers?: boolean

        Optional property to show the hide all layers entry. Defaults to true.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_editing.EditingWorkflowState.html b/openlayers-base-packages/docs/types/_open_pioneer_editing.EditingWorkflowState.html index 148ec904a..a341cb447 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_editing.EditingWorkflowState.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_editing.EditingWorkflowState.html @@ -8,4 +8,4 @@ State while feature is being saved after user finished the geometry drawing.

        "destroyed: state after editing is stopped.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.AnyLayer.html b/openlayers-base-packages/docs/types/_open_pioneer_map.AnyLayer.html index 567be618e..117aba972 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.AnyLayer.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.AnyLayer.html @@ -1,2 +1,2 @@ AnyLayer | Open Pioneer Trails Packages
        AnyLayer: Layer | Sublayer

        Union for all types of layers

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.AnyLayerTypes.html b/openlayers-base-packages/docs/types/_open_pioneer_map.AnyLayerTypes.html index 1665c87bd..5b36d4f98 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.AnyLayerTypes.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.AnyLayerTypes.html @@ -1 +1 @@ -AnyLayerTypes | Open Pioneer Trails Packages
        +AnyLayerTypes | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.DisplayTarget.html b/openlayers-base-packages/docs/types/_open_pioneer_map.DisplayTarget.html index a31e75124..1d767a01d 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.DisplayTarget.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.DisplayTarget.html @@ -1,2 +1,2 @@ DisplayTarget | Open Pioneer Trails Packages
        DisplayTarget: BaseFeature | Geometry

        Represents an object in the map.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.HealthCheckFunction.html b/openlayers-base-packages/docs/types/_open_pioneer_map.HealthCheckFunction.html index 2dc1b0ab0..7f9b8f89a 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.HealthCheckFunction.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.HealthCheckFunction.html @@ -1,2 +1,2 @@ HealthCheckFunction | Open Pioneer Trails Packages
        HealthCheckFunction: ((layer: Layer) => Promise<"loaded" | "error">)

        Custom function to check the state of a layer and returning a "loaded" or "error".

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.HighlightStyle.html b/openlayers-base-packages/docs/types/_open_pioneer_map.HighlightStyle.html index e370ef92e..c844b43c5 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.HighlightStyle.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.HighlightStyle.html @@ -1,2 +1,2 @@ HighlightStyle | Open Pioneer Trails Packages
        HighlightStyle: {
            LineString?: StyleLike;
            MultiLineString?: StyleLike;
            MultiPoint?: StyleLike;
            MultiPolygon?: StyleLike;
            Point?: StyleLike;
            Polygon?: StyleLike;
        }

        Custom styles when creating a new Highlight.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.InitialViewConfig.html b/openlayers-base-packages/docs/types/_open_pioneer_map.InitialViewConfig.html index 38d651fe7..d7d3c564f 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.InitialViewConfig.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.InitialViewConfig.html @@ -1,2 +1,2 @@ InitialViewConfig | Open Pioneer Trails Packages

        Configures the map's initial view.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.Layer.html b/openlayers-base-packages/docs/types/_open_pioneer_map.Layer.html index b6ba90bd7..8bb3d7e22 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.Layer.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.Layer.html @@ -1,2 +1,2 @@ Layer | Open Pioneer Trails Packages
        Layer:
            | SimpleLayer
            | WMSLayer
            | WMTSLayer
            | GroupLayer

        Union type for all layers (extending LayerBaseType)

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.LayerLoadState.html b/openlayers-base-packages/docs/types/_open_pioneer_map.LayerLoadState.html index fa59031ce..3c2c0f620 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.LayerLoadState.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.LayerLoadState.html @@ -1,2 +1,2 @@ LayerLoadState | Open Pioneer Trails Packages
        LayerLoadState:
            | "not-loaded"
            | "loading"
            | "loaded"
            | "error"

        The load state of a layer.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.LayerTypes.html b/openlayers-base-packages/docs/types/_open_pioneer_map.LayerTypes.html index 52465aec6..7d80f8e17 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.LayerTypes.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.LayerTypes.html @@ -1 +1 @@ -LayerTypes | Open Pioneer Trails Packages
        +LayerTypes | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.MapAnchorPosition.html b/openlayers-base-packages/docs/types/_open_pioneer_map.MapAnchorPosition.html index 0385f3214..48739029b 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.MapAnchorPosition.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.MapAnchorPosition.html @@ -1 +1 @@ -MapAnchorPosition | Open Pioneer Trails Packages
        MapAnchorPosition:
            | "top-left"
            | "top-right"
            | "bottom-left"
            | "bottom-right"
        +MapAnchorPosition | Open Pioneer Trails Packages
        MapAnchorPosition:
            | "top-left"
            | "top-right"
            | "bottom-left"
            | "bottom-right"
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.ProjectionDefinition.html b/openlayers-base-packages/docs/types/_open_pioneer_map.ProjectionDefinition.html index aa13ebd5d..167fce004 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.ProjectionDefinition.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.ProjectionDefinition.html @@ -1 +1 @@ -ProjectionDefinition | Open Pioneer Trails Packages
        ProjectionDefinition: string | Proj4ProjectionDefinition
        +ProjectionDefinition | Open Pioneer Trails Packages
        ProjectionDefinition: string | Proj4ProjectionDefinition
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.Sublayer.html b/openlayers-base-packages/docs/types/_open_pioneer_map.Sublayer.html index 6d838ce6f..9987fc9fa 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.Sublayer.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.Sublayer.html @@ -1,2 +1,2 @@ Sublayer | Open Pioneer Trails Packages
        Sublayer: WMSSublayer

        Union type for all sublayers (extending SublayerBaseType

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.SublayerTypes.html b/openlayers-base-packages/docs/types/_open_pioneer_map.SublayerTypes.html index ecfac612e..ea5e7299e 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.SublayerTypes.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.SublayerTypes.html @@ -1 +1 @@ -SublayerTypes | Open Pioneer Trails Packages
        +SublayerTypes | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.UseMapModelResult.html b/openlayers-base-packages/docs/types/_open_pioneer_map.UseMapModelResult.html index 50b836e64..fc74897ac 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.UseMapModelResult.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.UseMapModelResult.html @@ -1,2 +1,2 @@ UseMapModelResult | Open Pioneer Trails Packages
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.HistoryBackwardProps.html b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.HistoryBackwardProps.html index 1dccf770a..c78f5a394 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.HistoryBackwardProps.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.HistoryBackwardProps.html @@ -1 +1 @@ -HistoryBackwardProps | Open Pioneer Trails Packages
        +HistoryBackwardProps | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.HistoryForwardProps.html b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.HistoryForwardProps.html index 17d0b0590..bb1f7782e 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.HistoryForwardProps.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.HistoryForwardProps.html @@ -1 +1 @@ -HistoryForwardProps | Open Pioneer Trails Packages
        +HistoryForwardProps | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomInProps.html b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomInProps.html index a15ad1f2b..0a27c714d 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomInProps.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomInProps.html @@ -1 +1 @@ -ZoomInProps | Open Pioneer Trails Packages
        +ZoomInProps | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomOutProps.html b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomOutProps.html index 093210880..ef05cb355 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomOutProps.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomOutProps.html @@ -1 +1 @@ -ZoomOutProps | Open Pioneer Trails Packages
        +ZoomOutProps | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_measurement.MeasurementGeometry.html b/openlayers-base-packages/docs/types/_open_pioneer_measurement.MeasurementGeometry.html index 929e2bf40..abb4f516d 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_measurement.MeasurementGeometry.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_measurement.MeasurementGeometry.html @@ -1,2 +1,2 @@ MeasurementGeometry | Open Pioneer Trails Packages
        MeasurementGeometry: LineString | Polygon

        Represents the geometry of a measurement.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_measurement.MeasurementsChangeEvent.html b/openlayers-base-packages/docs/types/_open_pioneer_measurement.MeasurementsChangeEvent.html index 532867f46..5afd34caf 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_measurement.MeasurementsChangeEvent.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_measurement.MeasurementsChangeEvent.html @@ -1,3 +1,3 @@ MeasurementsChangeEvent | Open Pioneer Trails Packages

        A change event emitted by Measurement when measurements change.

        NOTE: Non-exhaustive. More event types may be added in a future version.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_ogc_features.OgcFetchStrategy.html b/openlayers-base-packages/docs/types/_open_pioneer_ogc_features.OgcFetchStrategy.html index 84c4b43d9..0082eeb66 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_ogc_features.OgcFetchStrategy.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_ogc_features.OgcFetchStrategy.html @@ -7,4 +7,4 @@ Each request fetches a page of results using an "offset" and "limit" parameter. This can be much faster than the "next" strategy, but it is not supported by all server implementations. -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_printing.ViewPaddingBehavior.html b/openlayers-base-packages/docs/types/_open_pioneer_printing.ViewPaddingBehavior.html index 0b2ba9563..bc32997d6 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_printing.ViewPaddingBehavior.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_printing.ViewPaddingBehavior.html @@ -4,4 +4,4 @@ Padded regions of the map will not be included in the print result.
      • "ignore": Ignore the map's viewPadding. The entire map will be printed.
      • -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_result_list.SelectionMode.html b/openlayers-base-packages/docs/types/_open_pioneer_result_list.SelectionMode.html index bf389bed4..f7613a297 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_result_list.SelectionMode.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_result_list.SelectionMode.html @@ -1,2 +1,2 @@ SelectionMode | Open Pioneer Trails Packages
        SelectionMode: "multi" | "single"

        Specifies whether it should be possible to select multiple or only single rows.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionKind.html b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionKind.html index 42074899d..b43bd2905 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionKind.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionKind.html @@ -3,4 +3,4 @@ may be added in the future.

        Selection sources should check the type and throw an error for unsupported selection kinds in order to remain forwards compatible.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatus.html b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatus.html index 190d2df9b..949cf4d36 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatus.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatus.html @@ -1,3 +1,3 @@ SelectionSourceStatus | Open Pioneer Trails Packages
        SelectionSourceStatus: "available" | "unavailable" | SelectionSourceStatusObject

        The status of a selection source.

        This is used to indicate whether the source is ready for selection.

        -
        +
        diff --git a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatusObject.html b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatusObject.html index 37658ec7c..d631e18d5 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatusObject.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatusObject.html @@ -2,4 +2,4 @@

        Type declaration

        • kind: "unavailable"
        • Optionalreason?: string

          If the status of this source is unavailable, the reason for this can be stored here.

          This will be displayed by the user interface.

          If it is not defined, a default message will be displayed instead.

          -
        +
        diff --git a/openlayers-base-packages/docs/variables/_open_pioneer_map.GroupLayer-1.html b/openlayers-base-packages/docs/variables/_open_pioneer_map.GroupLayer-1.html index 2670c165a..59191130d 100644 --- a/openlayers-base-packages/docs/variables/_open_pioneer_map.GroupLayer-1.html +++ b/openlayers-base-packages/docs/variables/_open_pioneer_map.GroupLayer-1.html @@ -1 +1 @@ -GroupLayer | Open Pioneer Trails Packages
        +GroupLayer | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/variables/_open_pioneer_map.SimpleLayer-1.html b/openlayers-base-packages/docs/variables/_open_pioneer_map.SimpleLayer-1.html index bc7bd6338..6a203f1e6 100644 --- a/openlayers-base-packages/docs/variables/_open_pioneer_map.SimpleLayer-1.html +++ b/openlayers-base-packages/docs/variables/_open_pioneer_map.SimpleLayer-1.html @@ -1 +1 @@ -SimpleLayer | Open Pioneer Trails Packages
        +SimpleLayer | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/variables/_open_pioneer_map.WMSLayer-1.html b/openlayers-base-packages/docs/variables/_open_pioneer_map.WMSLayer-1.html index ef061bfa7..1c4ce78c1 100644 --- a/openlayers-base-packages/docs/variables/_open_pioneer_map.WMSLayer-1.html +++ b/openlayers-base-packages/docs/variables/_open_pioneer_map.WMSLayer-1.html @@ -1 +1 @@ -WMSLayer | Open Pioneer Trails Packages
        +WMSLayer | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/variables/_open_pioneer_map.WMTSLayer-1.html b/openlayers-base-packages/docs/variables/_open_pioneer_map.WMTSLayer-1.html index ccea43b08..8ba2fd988 100644 --- a/openlayers-base-packages/docs/variables/_open_pioneer_map.WMTSLayer-1.html +++ b/openlayers-base-packages/docs/variables/_open_pioneer_map.WMTSLayer-1.html @@ -1 +1 @@ -WMTSLayer | Open Pioneer Trails Packages
        +WMTSLayer | Open Pioneer Trails Packages
        diff --git a/openlayers-base-packages/docs/variables/_open_pioneer_theme.theme.html b/openlayers-base-packages/docs/variables/_open_pioneer_theme.theme.html index 0732cb066..d3f12af56 100644 --- a/openlayers-base-packages/docs/variables/_open_pioneer_theme.theme.html +++ b/openlayers-base-packages/docs/variables/_open_pioneer_theme.theme.html @@ -1 +1 @@ -theme | Open Pioneer Trails Packages
        theme: Record<string, any> = ...
        +theme | Open Pioneer Trails Packages
        theme: Record<string, any> = ...
        diff --git a/openlayers-base-packages/samples/experimental-sidebar/index.html b/openlayers-base-packages/samples/experimental-sidebar/index.html index 063ef77fc..d136eee13 100644 --- a/openlayers-base-packages/samples/experimental-sidebar/index.html +++ b/openlayers-base-packages/samples/experimental-sidebar/index.html @@ -16,10 +16,10 @@ max-height: 100%; } - + - + diff --git a/openlayers-base-packages/samples/map-sample/index.html b/openlayers-base-packages/samples/map-sample/index.html index 2dba37bf1..689292f8c 100644 --- a/openlayers-base-packages/samples/map-sample/index.html +++ b/openlayers-base-packages/samples/map-sample/index.html @@ -17,30 +17,30 @@ overflow: hidden; } - + - + - - - + + + - + - + - + - - - + + + diff --git a/openlayers-base-packages/samples/ogc-api-sample/index.html b/openlayers-base-packages/samples/ogc-api-sample/index.html index a43800886..f52ed9831 100644 --- a/openlayers-base-packages/samples/ogc-api-sample/index.html +++ b/openlayers-base-packages/samples/ogc-api-sample/index.html @@ -16,23 +16,23 @@ max-height: 100%; } - + - - - + + + - + - - + + diff --git a/openlayers-base-packages/samples/showcase/index.html b/openlayers-base-packages/samples/showcase/index.html index ba28720b2..85f3bc53f 100644 --- a/openlayers-base-packages/samples/showcase/index.html +++ b/openlayers-base-packages/samples/showcase/index.html @@ -17,30 +17,30 @@ overflow: hidden; } - + - + - - - + + + - + - + - + - - - + + + diff --git a/openlayers-base-packages/samples/test-basemap-switcher/index.html b/openlayers-base-packages/samples/test-basemap-switcher/index.html index b2216f4d3..e4e58d8f4 100644 --- a/openlayers-base-packages/samples/test-basemap-switcher/index.html +++ b/openlayers-base-packages/samples/test-basemap-switcher/index.html @@ -16,16 +16,16 @@ max-height: 100%; } - + - + - + diff --git a/openlayers-base-packages/samples/test-highlight-and-zoom/index.html b/openlayers-base-packages/samples/test-highlight-and-zoom/index.html index 5125fc8ec..461d1bf61 100644 --- a/openlayers-base-packages/samples/test-highlight-and-zoom/index.html +++ b/openlayers-base-packages/samples/test-highlight-and-zoom/index.html @@ -16,10 +16,10 @@ max-height: 100%; } - + - - + + diff --git a/openlayers-base-packages/samples/test-printing-api/index.html b/openlayers-base-packages/samples/test-printing-api/index.html index 83e7079ed..95f9079e1 100644 --- a/openlayers-base-packages/samples/test-printing-api/index.html +++ b/openlayers-base-packages/samples/test-printing-api/index.html @@ -16,14 +16,14 @@ max-height: 100%; } - + - + - - - + + + diff --git a/openlayers-base-packages/samples/test-result-list/index.html b/openlayers-base-packages/samples/test-result-list/index.html index 41066d01a..2807ff2ba 100644 --- a/openlayers-base-packages/samples/test-result-list/index.html +++ b/openlayers-base-packages/samples/test-result-list/index.html @@ -16,16 +16,16 @@ max-height: 100%; } - + - + - + diff --git a/openlayers-base-packages/samples/test-toc/index.html b/openlayers-base-packages/samples/test-toc/index.html index ade55bfaa..62fff8a9f 100644 --- a/openlayers-base-packages/samples/test-toc/index.html +++ b/openlayers-base-packages/samples/test-toc/index.html @@ -17,22 +17,22 @@ overflow: hidden; } - + - + - - - + + + - + - +