@geops/rvf-mobility-web-component 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/utils/sharingStylesUtils.ts +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.28](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.27...v0.1.28) (2025-02-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* minzoom for clsuter ([a2f3302](https://github.com/geops/rvf-mobility-web-component/commit/a2f3302b2b041dc5e4361ad5a7b234c843cbc5ba))
|
|
11
|
+
* use min zoom 14 ([c2e9c4b](https://github.com/geops/rvf-mobility-web-component/commit/c2e9c4b2262202098ed9966ae9b2e54f720a2bf7))
|
|
12
|
+
* use min zoom 14 ([a7646ae](https://github.com/geops/rvf-mobility-web-component/commit/a7646aee48a4bab4d5281104db851e34acc434f1))
|
|
13
|
+
|
|
5
14
|
### [0.1.27](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.26...v0.1.27) (2025-02-11)
|
|
6
15
|
|
|
7
16
|
|
package/index.js
CHANGED
|
@@ -1292,7 +1292,7 @@ ${String(r)}`)}catch(t){return t}},yk=r=>{if(typeof r!="object"||r===null)throw
|
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
|
-
`,xp=async r=>{let t=new Yc(fa1,{method:"GET"}),{station:e}=await t.request(ma1,{__operation:"station",id:r});return e};function za1({feature:r}){let[t,e]=st(null),a=St(()=>_9(r),[r]);q2(()=>{r.get("station_id")&&(async()=>{let d=await xp(r.get("station_id"));e(d)})()},[r]);let n=r.get("num_vehicles_available")>0;return X("div",{className:"flex flex-1 flex-col gap-2",children:[X("div",{className:"flex flex-1 flex-col gap-2 ",children:[X("div",{children:[r.get("num_vehicles_available")||0," Fahrzeuge"]}),n&&t?.vehicleTypesAvailable?.length&&X("div",{className:"flex flex-1 flex-col",children:[X("div",{className:"text-grey",children:"Fahrzeug mieten"}),X("ul",{className:"list-disc pl-4",children:t?.vehicleTypesAvailable?.map(({count:i,vehicleType:{id:h,name:d,vehicleImage:g}})=>X("li",{children:X("div",{className:"flex items-center gap-2",children:[X("span",{children:`${i} x ${d.translation[0].value}`}),g&&X("img",{alt:"vehicle",className:"w-12",src:g})]})},h))})]})]}),t?.vehicleTypesAvailable?.length>0&&a&&X("div",{children:X(Kl,{href:a,children:"Jetzt buchen"})})]})}var Fy=za1;function Ma1({selectedFeature:r}){let[t,e]=st([]),a=!!r.get("station_id"),n=!!r.get("vehicle_id"),i=!!r.get("cluster_id");q2(()=>{e(i?r.get("features"):[r])},[r,n,i]);let h=St(()=>{let d={};return a?null:(t.forEach(g=>{let m=g.get("feed_id");d[m]?d[m].push(g):d[m]=[g]}),d)},[t,a]);return X(ke,{children:[a&&X(ke,{children:[X("img",{alt:"logo",className:"max-w-24",src:C7[t[0]?.get("feed_id")]}),t.length&&a&&X(Fy,{feature:t[0]})]}),(n||i)&&h&&Object.entries(h).map(([d,g])=>X(ke,{children:[X("img",{alt:"logo",className:"max-w-24",src:C7[g[0]?.get("feed_id")]}),X(my,{features:g})]},d))]})}var Ey=Ma1;var xa1=r=>{if(r.get("station_id")||r.get("vehicle_id")||r.get("cluster_id"))return!0};function wa1(r){let{selectedFeature:t}=cr(),e=xa1(t);return X("div",{...r,children:[e&&X(Ey,{selectedFeature:t}),!e&&Object.entries(t.getProperties()).map(([n,i])=>X("div",{className:"flex gap-2",children:[X("span",{children:X("b",{children:[n,":"]})}),X("div",{children:i})]},n))]})}var Iy=ht(wa1);function Ha1(r){return X("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M15.7389427,5.27697525 C16.129467,5.66749954 16.129467,6.30066452 15.7389427,6.69118881 L10.414,12.015082 L15.7389427,17.3406471 C16.0994267,17.7011311 16.1271562,18.2683621 15.8221313,18.6606533 L15.7389427,18.7548607 C15.3484184,19.145385 14.7152534,19.145385 14.3247292,18.7548607 L8.29289322,12.7230247 C7.90236893,12.3325005 7.90236893,11.6993355 8.29289322,11.3088112 L14.3247292,5.27697525 C14.7152534,4.88645096 15.3484184,4.88645096 15.7389427,5.27697525 Z",transform:"translate(12.0159, 12.0159) rotate(450) translate(-12.0159, -12.0159)"})})}var F9=Ha1;function ya1({children:r,isOpen:t,onClick:e,title:a}){let{map:n}=Gt();return n?X("div",{className:"pointer-events-none absolute bottom-8 left-2 top-2 z-10 flex flex-col overflow-hidden rounded-lg",children:X("div",{className:"pointer-events-auto max-h-full w-48 rounded-lg border border-grey bg-white shadow-lg @lg/main:w-52",children:[X("button",{className:"flex w-full items-center justify-between px-2 py-1.5 font-bold",onClick:e,children:[a," ",t?X(G8,{}):X(F9,{})]}),!t&&X("div",{className:"flex h-[calc(100%-39px)] w-full flex-1 flex-col overflow-y-auto",children:r})]})}):null}var Oy=ya1;function _a1({...r}){return X("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3",strokeLinecap:"round",strokeLinejoin:"round"})})}var Ty=_a1;function Va1({...r}){let{isLayerTreeOpen:t,setIsLayerTreeOpen:e}=cr(),a=f4(()=>{e(!t)},[t,e]);return X(Bi,{...r,onClick:a,selected:t,children:X(Ty,{})})}var Py=ht(Va1);function Ba1(r){let{baseLayer:t,map:e}=Gt(),{setLineNetworkPlanLayer:a}=cr(),n=St(()=>t?new k4({isQueryable:!0,layersFilter:({metadata:i})=>i?.["rvf.filter"]==="netzplan_lines",maplibreLayer:t,minZoom:10,name:q4.liniennetz,...r||{}}):null,[t,r]);return q2(()=>{a(n)},[n,a]),q2(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var Ry=ht(Ba1);function Ca1({children:r,onClose:t,...e}){let[a,n]=st(),i=!!r;return Array.isArray(r)&&(i=r?.length&&(r||[]).find(h=>!!h)),q2(()=>(a?.addEventListener("close",t),()=>{a?.removeEventListener("close",t)}),[a,t]),i?X("dialog",{className:"absolute inset-0 z-50 flex size-full items-center justify-center bg-transparent",ref:h=>{n(h),h?.focus()},...e,children:[X("button",{className:"absolute inset-0 z-0 size-full bg-black/60",onClick:t}),X("div",{className:"z-10 h-3/4 w-1/2 bg-white",children:r})]}):null}var Dy=ht(Ca1);function ba1({...r}){return X("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("g",{children:X("path",{d:"M5.29289322,5.29289322 C5.68341751,4.90236893 6.31658249,4.90236893 6.70710678,5.29289322 L12,10.585 L17.2928932,5.29289322 C17.6533772,4.93240926 18.2206082,4.90467972 18.6128994,5.20970461 L18.7071068,5.29289322 C19.0976311,5.68341751 19.0976311,6.31658249 18.7071068,6.70710678 L13.415,12 L18.7071068,17.2928932 C19.0675907,17.6533772 19.0953203,18.2206082 18.7902954,18.6128994 L18.7071068,18.7071068 C18.3165825,19.0976311 17.6834175,19.0976311 17.2928932,18.7071068 L12,13.415 L6.70710678,18.7071068 C6.34662282,19.0675907 5.77939176,19.0953203 5.38710056,18.7902954 L5.29289322,18.7071068 C4.90236893,18.3165825 4.90236893,17.6834175 5.29289322,17.2928932 L10.585,12 L5.29289322,6.70710678 C4.93240926,6.34662282 4.90467972,5.77939176 5.20970461,5.38710056 Z",fill:"currentColor"})})})}var ky=ba1;function La1({children:r,className:t,onClose:e,title:a,...n}){return X("div",{className:W3("flex flex-row items-center justify-between gap-2 p-2 border-b pl-4"+(t||"")),...n,children:[r||X("span",{className:"font-bold",children:a}),e&&X(Bi,{className:"!size-[32px] border-none",onClick:e,children:X(ky,{})})]})}var Jc=ht(La1);function Sa1(r){let{baseLayer:t,map:e}=Gt(),{setPoisLayer:a}=cr(),n=St(()=>t?new k4({layersFilter:({metadata:i})=>i?.["mapset.filter"]==="mapset_poi",maplibreLayer:t,name:q4.pois,visible:!1,...r||{}}):null,[t,r]);return q2(()=>{a(n)},[n,a]),q2(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var Uy=ht(Sa1);function Fa1(){let{baseLayer:r,map:t}=Gt(),{selectedFeature:e}=cr(),a=St(()=>new Ou({source:new m7,style:new o5({image:new l3({fill:null,radius:15,stroke:new h3({color:"red",width:3})})})}),[]);return q2(()=>{let n=e?.get("vectorTileFeature");if(e?.set("selected",!0),e){let i=e.clone();i.setStyle(null),a.getSource().addFeature(i),n&&r?.mapLibreMap.setFeatureState(n,{hover:!0})}return()=>{a?.getSource().clear(),e?.set("selected",!1),n&&r?.mapLibreMap?.setFeatureState(n,{hover:!1})}},[r?.mapLibreMap,a,e]),q2(()=>(a?.setMap(t),()=>{a?.setMap(null)}),[a,t]),null}var Ny=Fa1;var Lk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64767456" viewBox="0 0 25.64767838 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_automat">%0A <g>%0A <path d="M12.82391739,25.14781189C6.02850723,25.14781189.50018692,19.6190033.50018692,12.82359314S6.02850723.49986267,12.82391739.49986267s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32421875-12.32373047,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29370117,11.82383728,11.82383728,0,6.53012085-5.29371643,11.82383728-11.82383728,11.82383728-6.53012848,0-11.82384109-5.29371643-11.82384109-11.82383728C1,6.29370117,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75274658,0,12.82383728s5.7527504,12.82383728,12.82384109,12.82383728,12.82383728-5.75274658,12.82383728-12.82383728S19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g>%0A <path d="M13.78932179,15.52073714h2.22363281c.41259766,0,.74804688-.33544922.74804688-.74804688s-.33544922-.74804688-.74804688-.74804688h-2.22363281c-.41259766,0-.74804688.33544922-.74804688.74804688s.33544922.74804688.74804688.74804688Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M17.35963429,4.94749496h-9.07177734c-1.12695312,0-2.04394531.91699219-2.04394531,2.04443359v11.6640625c0,1.12695312.91699219,2.04394531,2.04394531,2.04394531h9.07177734c1.12744141,0,2.04443359-.91699219,2.04443359-2.07568359V6.99192855c0-1.12744141-.91699219-2.04443359-2.04443359-2.04443359ZM7.74000539,18.07640121h10.16796875v.57958984c0,.30224609-.24609375.54785156-.54833984.54785156h-9.07177734c-.30224609,0-.54785156-.24560547-.54785156-.57958984v-.54785156ZM17.35963429,6.44407699c.30224609,0,.54833984.24560547.54833984.54785156v1.77832031H7.74000539v-1.77832031c0-.30224609.24560547-.54785156.54785156-.54785156h9.07177734ZM17.90797414,10.26634261v6.31347656H7.74000539v-6.31347656h10.16796875Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function Ia1({...r}){return X("img",{alt:"Automat",src:Lk,title:"Automat",...r})}var Qy=Ia1;var Sk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64767456" viewBox="0 0 25.64767456 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_persoenlich">%0A <g>%0A <path d="M12.82395935,25.14781189C6.02854919,25.14781189.50022888,19.6190033.50022888,12.82359314S6.02854919.49986267,12.82395935.49986267s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32421875-12.32373047,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82382965,1c6.53012848,0,11.82384491,5.29370117,11.82384491,11.82383728,0,6.53012085-5.29371643,11.82383728-11.82384491,11.82383728-6.53012085,0-11.82382965-5.29371643-11.82382965-11.82383728C1,6.29370117,6.2937088,1,12.82382965,1M12.82382965,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82383728,12.82382965,12.82383728,12.82384491-5.75274658,12.82384491-12.82383728S19.89491272,0,12.82382965,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="info_info-videoterminal-2px" data-name="info/info-videoterminal-2px">%0A <g id="Group-9">%0A <path id="Fill-3" d="M9.22383182,20.93333634h-1.44v-6.27271884c0-1.54295975,1.21248001-2.80224014,2.73600014-2.87712021l.14399986-.00287979h4.32c1.54224014,0,2.80152054,1.21248001,2.8764006,2.73599945l.0035994.14400055v6.27271884h-1.44v-6.27271884c0-.75960022-.58751999-1.38168045-1.33271988-1.4364006l-.10728012-.0035994h-4.32c-.75887993,0-1.38096016.58680038-1.43639992,1.33200027l-.00360008.10799973v.50184036" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M12.82383182,7.21747324c.70415977,0,1.27511993.57095982,1.27511993,1.27512028,0,.70488007-.57096016,1.27583954-1.27511993,1.27583954s-1.27511993-.57095947-1.27511993-1.27583954c0-.70416046.57096016-1.27512028,1.27511993-1.27512028M12.82383182,11.20843305c1.49976013,0,2.71511993-1.21608009,2.71511993-2.71583954,0-1.49904018-1.2153598-2.71512028-2.71511993-2.71512028s-2.71511993,1.21608009-2.71511993,2.71512028c0,1.49975945,1.2153598,2.71583954,2.71511993,2.71583954" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A </g>%0A</svg>';function Ta1({...r}){return X("img",{alt:"InPerson",src:Sk,title:"Pers\xF6nlich",...r})}var Gy=Ta1;var Fk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64767456" viewBox="0 0 25.64767456 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_video">%0A <g>%0A <path d="M12.82368469,25.14781189C6.02827454,25.14781189.49995422,19.6190033.49995422,12.82359314S6.02827454.49986267,12.82368469.49986267s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32421875-12.32421875,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29370117,11.82383728,11.82383728,0,6.53012085-5.2937088,11.82383728-11.82383728,11.82383728-6.53012085,0-11.82383728-5.29371643-11.82383728-11.82383728C1,6.29370117,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82383728,12.82383728,12.82383728,12.82383728-5.75274658,12.82383728-12.82383728S19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="info_info-videoterminal-2px" data-name="info/info-videoterminal-2px">%0A <g id="Group-9">%0A <path id="Fill-1" d="M12.2882218,5.73500377c0-.39743999.32255997-.72.72-.72s.72.32256001.72.72c0,.39744003-.32255997.72-.72.72s-.72-.32255997-.72-.72" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-3" d="M20.2082218,17.21446833c0,.79559967-.64440033,1.44-1.44,1.44h-.72v-.50184036l-.0035994-.14400055c-.07488007-1.52351944-1.33416046-2.73599945-2.8764006-2.73599945h-4.32l-.14399986.00287979c-1.52352013.07488007-2.73600014,1.33416046-2.73600014,2.87712021v.50184036h-.72c-.79560001,0-1.44-.64440033-1.44-1.44v-7.20000069c0-.79560001.64439999-1.44,1.44-1.44h11.52c.79559967,0,1.44.64439999,1.44,1.44v7.20000069ZM16.6082218,18.65446833h-7.2v-.50184036l.00360008-.10799973c.05543976-.74519989.67751999-1.33200027,1.43639992-1.33200027h4.32l.10728012.0035994c.74519989.05472015,1.33271988.67680038,1.33271988,1.4364006v.50184036ZM18.7682218,7.13446782H7.2482218c-1.59047999,0-2.88,1.28952009-2.88,2.87999983v7.20000069c0,1.59047974,1.28952001,2.88,2.88,2.88h11.52c1.59047974,0,2.88-1.28952026,2.88-2.88v-7.20000069c0-1.59047974-1.28952026-2.87999983-2.88-2.87999983h0Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-5" d="M13.7282218,5.73500377c0-.39743999-.32255997-.72-.72-.72s-.72.32256001-.72.72c0,.39744003.32255997.72.72.72s.72-.32255997.72-.72" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M13.0082218,10.70948371c.70415977,0,1.27511993.57095982,1.27511993,1.27512028,0,.70488007-.57096016,1.27583954-1.27511993,1.27583954s-1.27511993-.57095947-1.27511993-1.27583954c0-.70416046.57096016-1.27512028,1.27511993-1.27512028M13.0082218,14.70044352c1.49976013,0,2.71511993-1.21608009,2.71511993-2.71583954,0-1.49904018-1.2153598-2.71512028-2.71511993-2.71512028s-2.71511993,1.21608009-2.71511993,2.71512028c0,1.49975945,1.2153598,2.71583954,2.71511993,2.71583954" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A </g>%0A</svg>';function Ra1({...r}){return X("img",{alt:"Video",src:Fk,title:"Video",...r})}var jy=Ra1;function Da1(r){let{title:t}=r,{baseLayer:e,map:a}=Gt(),{setSellingPointsLayer:n}=cr(),i=St(()=>e?new k4({isQueryable:!0,layersFilter:({metadata:h})=>h?.["general.filter"]==="selling_points",maplibreLayer:e,name:q4.verkaufsstellen,...r||{},title:X("div",{className:"flex items-center justify-between gap-2",children:[t,X("span",{className:"flex items-center",children:[X(Qy,{}),X(Gy,{}),X(jy,{})]})]})}):null,[e,r,t]);return q2(()=>{n(i)},[i,n]),q2(()=>{if(!(!a||!i))return a.addLayer(i),()=>{a.removeLayer(i)}},[a,i]),null}var qy=ht(Da1);var Ze=U0(kk());var Uk='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><defs><clipPath id="a"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="b"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="c"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="d"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="e"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="f"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="g"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="h"><path d="M192 192H0V0h192v192z"/></clipPath><clipPath id="i"><path d="M36 12v24.125H15.875v152.25h160.25V36.125H156V12h-44v24.125H80V12z" fill="red" stroke-width="23.686"/></clipPath></defs><g fill="red" stroke="%23000" stroke-linecap="round"><path d="M118 91.8v48.4M74 91.8v48.4" stroke-width="7.92"/><path d="M74 91.8l44 48.4" stroke-width="8.307"/></g><path d="M96 8.7L70.5 70.888l2.414 2.413L96 63.1l23.086 10.2 2.414-2.413z"/></svg>';var Nk='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><defs><clipPath id="a"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="b"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="c"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="d"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="e"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="f"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="g"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="h"><path d="M192 192H0V0h192v192z"/></clipPath><clipPath id="i"><path d="M36 12v24.125H15.875v152.25h160.25V36.125H156V12h-44v24.125H80V12z" fill="red" stroke-width="23.686"/></clipPath></defs><g fill="none"><circle cx="95.749" cy="96" r="76" clip-path="url(%23i)" stroke="%23000" stroke-width="6"/><path d="M81 8.125h30v27.751H81z"/><path d="M8.082 96h19.335M166.207 96h19.336M95.75 184.167v-19.335" stroke="%23000" stroke-width="6.04" stroke-linecap="round"/></g><g fill="red" stroke="%23000" stroke-linecap="round"><path d="M118 91.8v48.4M74 91.8v48.4" stroke-width="7.92"/><path d="M74 91.8l44 48.4" stroke-width="8.307"/></g><path d="M96 8.7L70.5 70.888l2.414 2.413L96 63.1l23.086 10.2 2.414-2.413z"/></svg>';var Ky=Ze.default.shape({circled:Ze.default.bool,height:Ze.default.number,rotation:Ze.default.oneOfType([Ze.default.number,Ze.default.func]),src:Ze.default.string,width:Ze.default.number}),Ga1=typeof CanvasPattern>"u"?Function:CanvasPattern,ja1={autoDownload:Ze.default.bool,children:Ze.default.node,coordinates:Ze.default.arrayOf(Ze.default.arrayOf(Ze.default.number)),extent:Ze.default.arrayOf(Ze.default.number),extraData:Ze.default.shape({copyright:Ze.default.shape({background:Ze.default.bool,fillStyle:Ze.default.oneOfType([Ze.default.string,Ze.default.instanceOf(Ga1)]),font:Ze.default.string,maxWidth:Ze.default.number,paddingBackground:Ze.default.number,paddingBottom:Ze.default.number,text:Ze.default.oneOfType([Ze.default.string,Ze.default.func])}),logo:Ky,northArrow:Ky,qrCode:Ky}),format:Ze.default.oneOf(["image/jpeg","image/png"]),getDownloadImageName:Ze.default.func,map:Ze.default.instanceOf(Q8),margin:Ze.default.number,onSaveEnd:Ze.default.func,onSaveStart:Ze.default.func,padding:Ze.default.number,scale:Ze.default.number},qa1=r=>r.width/100,Ka1=r=>{let t=r==="image/jpeg"?"jpg":"png";return`${window.document.title.replace(/ /g,"_").toLowerCase()}.${t}`},wp=!1,Hp=0,Wa1=(r,t,e,a)=>{let i,h;do i=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),h=parseInt(i[0].replace(i[1],""),10),r.font=r.font.replace(h,h-1),wp=!1,h-1===8&&(wp=!0);while(h-1>8&&r.measureText(e).width*a>t);return r.font},Za1=(r,t,e,a,n,i={})=>{r.save(),r.fillStyle="rgba(255,255,255,.8)",typeof i=="object"&&Object.entries(i).forEach(([h,d])=>{r[h]=d}),r.fillRect(t,e,a,n),r.restore()},Xa1=(r,t,e,a,n,i,h)=>{let{background:d,fillStyle:g,font:m,text:z}=a.copyright,{paddingBackground:w=2,paddingBottom:b=h}=a.copyright,_=typeof z=="function"?z():z?.trim();Array.isArray(_)&&(_=_.join()),r.save(),r.scale(n,n),r.font=m||"12px Arial",r.font=Wa1(r,e,_,n),r.textBaseline="bottom",r.scale(n,n),r.fillStyle=g||"black";let P=_,R=r.measureText(P);if(wp){let d1=_.split(" ").length;for(let z1=0;z1<d1&&!(R.width*n<e);z1+=1)P=P.substring(0,P.lastIndexOf(" ")),R=r.measureText(P)}let U=_.replace(P,"").trim(),k=[P,U].filter(d1=>!!d1).reverse(),q=i,Y=t.height-b;k.forEach(d1=>{let{fontBoundingBoxAscent:z1,fontBoundingBoxDescent:M1,width:m1}=r.measureText(d1),A1=z1+M1,_1=Y-A1;if(d){let N1=i;_1-=w*2,Za1(r,N1,_1,m1+w*2,A1+w*2,d),q+=w,Y-=w}r.fillText(d1,q,Y),Y=_1}),Hp=Y,r.restore()},Wy=(r,t,e,a,n,i=[0,0],h="right")=>{let d=t.getContext("2d"),{height:g,rotation:m,src:z,width:w}=r;return new Promise(b=>{let _=new Image;_.crossOrigin="Anonymous",_.src=z,_.onload=()=>{d.save();let P=(w||80)*e,R=(g||80)*e,U=h==="left"?a+P/2:t.width-a-P/2,k=(h==="left"&&Hp?Hp-n:t.height)-a-R/2-i[1];if(d.translate(U,k),m){let q=typeof m=="function"?m():m;d.rotate(q*(Math.PI/180))}d.drawImage(_,-P/2,-R/2,P,R),d.restore(),b([P+2*n,R+2*n])},_.onerror=()=>{b()}})},$a1=(r,t,e)=>{let a,n;if(t?(a=V8(t),n=_8(t)):e&&([a,,n]=e),a&&n){let i=r.getPixelFromCoordinate(a),h=r.getPixelFromCoordinate(n),d=[i[0]<=h[0]?i[0]:h[0],i[1]<=h[1]?i[1]:h[1]],g=[i[0]>h[0]?i[0]:h[0],i[1]>h[1]?i[1]:h[1]];return{h:g[1]-d[1],w:g[0]-d[0],x:d[0],y:d[1]}}return null},Ya1=(r,t,e,a,n,i,h)=>new Promise(d=>{r.once("rendercomplete",()=>{let g=r.getTargetElement().getElementsByTagName("canvas"),m,z;for(let b=0;b<g.length;b+=1){let _=g[b];if(!_.width||!_.height)continue;let P=$a1(r,a,n)||{h:_.height,w:_.width,x:0,y:0};m||(m=document.createElement("canvas"),m.width=P.w,m.height=P.h,z=m.getContext("2d")),z.drawImage(_,P.x,P.y,P.w,P.h,0,0,m.width,m.height)}i=i||qa1(m);let w=Promise.resolve();z&&t&&t.logo&&(w=Wy(t.logo,m,e,i,h)),w.then((b=[0,0])=>{let _=Promise.resolve();z&&t&&t.northArrow&&(_=Wy({src:t.northArrow.circled?Nk:Uk,...t.northArrow},m,e,i,h,b)),_.then((P=[0,0])=>{let R=Math.max(b[0],P[0]);if(z&&t&&t.copyright&&t.copyright.text){let k=t.copyright.maxWidth||(R?z.canvas.width-R-i:z.canvas.width);Xa1(z,m,k,t,e,i,h)}let U=Promise.resolve();z&&t&&t.qrCode&&(U=Wy(t.qrCode,m,e,i,h,void 0,"left")),U.then(()=>d(m))})})}),r.renderSync()}),Ja1=(r,t,e)=>new Promise(n=>{if(/msie (9|10)/gi.test(window.navigator.userAgent.toLowerCase())){let i=r.toDataURL(t);window.open("about:blank","").document.write(`<img src="${i}" alt="from canvas"/>`),n(i)}if(window.navigator.msSaveBlob){let i;try{i=r.msToBlob()}catch(d){console.log(d)}let h=new Blob([i],{type:t});n(h),window.navigator.msSaveBlob(h,e(t))}else r.toBlob(i=>{let h=document.createElement("a");h.download=e(t),h.href=URL.createObjectURL(i),document.body.appendChild(h),h.click(),n(i)},t)});function Qk({autoDownload:r=!0,children:t=null,coordinates:e=null,extent:a=null,extraData:n=null,format:i="image/png",getDownloadImageName:h=Ka1,map:d=null,margin:g=null,onSaveEnd:m=()=>{},onSaveStart:z=_=>Promise.resolve(_),padding:w=5,scale:b=1}){let _=f4(P=>{window.navigator.msSaveBlob&&(P.preventDefault(),P.stopPropagation()),wp=!1,Hp=0,z(d).then(R=>Ya1(R||d,n,b,a,e,g,w).then(U=>{r?Ja1(U,i,h).then(k=>{m(R,U,k)}):m(R,U)}).catch(U=>{U&&console.error(U),m(R,U)}))},[r,e,a,n,i,d,g,m,z,w,b,h]);return r5.createElement(r5.Fragment,null,r5.Children.map(t,P=>r5.cloneElement(P,{onClick:_})))}Qk.propTypes=ja1;var Zy=Qk;function ti1(r){return X("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M20,3 C21.6522847,3 23,4.34771525 23,6 L23,18 C23,19.6522847 21.6522847,21 20,21 L4,21 C2.34771525,21 1,19.6522847 1,18 L1,6 C1,4.34771525 2.34771525,3 4,3 L20,3 Z M20.9999141,7.92 L12.5734623,13.8192319 C12.2291422,14.060256 11.7708578,14.060256 11.4265377,13.8192319 L2.99991414,7.921 L3,18 C3,18.5477153 3.45228475,19 4,19 L20,19 C20.5477153,19 21,18.5477153 21,18 L20.9999141,7.92 Z M20,5 L4,5 C3.61200142,5 3.27189207,5.22696691 3.10652962,5.55404305 L12,11.7793444 L20.8934704,5.55404305 C20.7281079,5.22696691 20.3879986,5 20,5 Z"})})}var Xy=ti1;function ei1({...r}){return X("svg",{fill:"none",height:"24px",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var $y=ei1;function ri1({...r}){return X("svg",{className:"size-6",fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75",strokeLinecap:"round",strokeLinejoin:"round"})})}var Yy=ri1;function ai1(r){let[t,e]=st(),[a,n]=st(!1),i=t5(null),h=g=>{e(g.currentTarget.getBoundingClientRect()),navigator.clipboard.writeText(window?.location.href).then(()=>{n(!0),setTimeout(()=>{n(!1)},1e3)}),i.current.select()};return X("div",{className:"flex items-center text-grey",children:[X("input",{className:"h-7 w-full rounded-sm rounded-r-none border border-r-0 border-current p-1 leading-4 outline-none",onFocus:()=>{i.current.select()},readOnly:!0,ref:i,type:"text",...r}),X(Bi,{className:"!size-7 rounded-l-none rounded-r-sm border-current",onClick:h,children:X(Yy,{})}),X("div",{className:`fixed rounded-md bg-grey p-1 text-sm text-white ${a?"block":"hidden"}`,style:{left:t?.left-30,top:t?.top-40},children:"Link kopiert!"})]})}var Jy=ai1;function ii1({...r}){return X("div",{...r,children:[X(Jy,{value:window?.location.href}),X("p",{className:"py-2",children:"Sie k\xF6nnen auch den Link aus der Adresszeile des Browsers kopieren."})]})}var t_=ii1;function ni1({className:r,...t}){let{map:e}=Gt();return X("div",{className:W3("flex flex-col gap-6 "+r),...t,children:[X("a",{className:"flex items-center gap-2",href:`mailto:?subject=Karte&body=${window?.location.href}`,children:X(vl,{children:[X(Xy,{}),X("span",{children:"Email senden"})]})}),X(Zy,{map:e,children:X(vl,{className:"w-fit",children:[X($y,{}),X("span",{children:"Bild speichern"})]})}),X(t_,{})]})}var e_=ni1;var Gk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64768219" viewBox="0 0 25.64767456 25.64768219">%0A <g id="rvf_base">%0A <g id="rvf_shared_bike">%0A <g>%0A <path d="M12.82368469,25.14785767C6.02827454,25.14785767.49995422,19.61904907.49995422,12.82363892S6.02827454.49990845,12.82368469.49990845s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32421875-12.32421875,12.32421875Z" style="fill: %2300973b;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29371262,11.82383728,11.82384109,0,6.53011703-5.2937088,11.82384109-11.82383728,11.82384109-6.53012085,0-11.82383728-5.29372406-11.82383728-11.82384109C1,6.29371262,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.7527504,0,12.82384109c0,7.07108688,5.75274658,12.82384109,12.82383728,12.82384109s12.82383728-5.75275421,12.82383728-12.82384109C25.64767456,5.7527504,19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="verkehrstraeger_verkehrstraeger-rad-2px" data-name="verkehrstraeger/verkehrstraeger-rad-2px">%0A <path id="Fill-1" d="M9.25954019,11.68411861h1.42560034c.39346563,0,.7128-.31933437.7128-.7128s-.31933437-.71280017-.7128-.71280017h-1.42560034c-.01354324,0-.02494789.00712816-.03777838.00784091-.37493282.02067123-.67502162.32503686-.67502162.70495926,0,.39346563.31933437.7128.7128.7128" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M17.81325035,18.40129001c-.48076172,0-.95668945-.11733398-1.41547852-.34936523-.37792969-.19160156-.70883789-.45395508-.98349609-.77958984-.49350586-.5840332-.75454102-1.28408203-.75454102-2.02456055,0-.88989258.36870117-1.71518555,1.03886719-2.32426758l-.5550293-1.04501953-3.77006836,2.11464844-.50756836.29267578c.07514648.39506836.12172852.68071289.12172852.96196289,0,1.73891602-1.41459961,3.15351563-3.15351563,3.15351563-.11953125,0-.23422852-.01625977-.34848633-.03251953-1.62817383-.2175293-2.8050293-1.55522461-2.8050293-3.12099609,0-.41660156.08129883-.82397461.24169922-1.20981445.49174805-1.18081055,1.63476562-1.94370117,2.91181641-1.94370117.48032227,0,.95712891.11777344,1.41591797.35068359.34672852.1762207.65039062.40605469.90263672.6824707l.56162109-.27597656,3.69667969-2.13398438-.82353516-1.53413086c-.04042969-.07119141-.05844727-.15029297-.06987305-.21137695l-.01582031-.09667969c-.03999023-.32739258.16567383-.63632812.478125-.71938477l1.37197266-.36782227c.06064453-.01669922.11821289-.02460938.1753418-.02460938.29707031,0,.55898437.20083008.63588867.48867188.05976563.22280273-.0074707.45834961-.17973633.62973633-.09404297.09404297-.18500977.15029297-.28608398.17709961l-.50317383.13491211.65302734,1.26650391,1.0125,1.75341797c.39287109-.07382813.67631836-.11953125.95361328-.11953125,1.74331055.00703125,3.15351563,1.42075195,3.15351563,3.15351563,0,.03251953-.00439453.0637207-.00922852.09448242-.10283203,1.75166016-1.47963867,3.0590332-3.14428711,3.0590332ZM16.36173667,14.13551853c-.25136719.32651367-.38452148.71103516-.38452148,1.11225586,0,.51943359.22719727,1.01865234.62314453,1.36977539.33969727.30058594.77036133.46625977,1.21289062.46625977.20566406,0,.41835938-.03955078.63149414-.11821289l.5203125-.29970703c.43769531-.35771484.68422852-.87319336.68422852-1.41811523,0-.59545898-.29355469-1.15708008-.78530273-1.50292969-.31245117-.21796875-.67587891-.33310547-1.05073242-.33310547-.03691406,0-.07250977.00483398-.10854492.00966797l-.07954102.01098633-.01801758.07646484.7668457,1.32890625c.12612305.21796875.11381836.48603516-.03164063.69916992-.06108398.08964844-.12963867.15512695-.20917969.20039063-.08085938.04746094-.17226563.07382813-.27905273.08085937h-.00703125c-.28740234,0-.49790039-.12041016-.61435547-.32167969l-.82177734-1.42470703-.04921875.0637207ZM7.83414878,13.41173923c-1.0125,0-1.83603516.82353516-1.83603516,1.83603516s.82353516,1.83603516,1.83603516,1.83603516,1.83603516-.82353516,1.83603516-1.83603516c0-.03911133-.00527344-.07734375-.01054687-.11557617l-.01054687-.07954102-.0769043-.01977539-1.50380859.86879883c-.10063477.05756836-.21445312.08833008-.32915039.08833008-.23510742,0-.45351563-.12612305-.57128906-.32958984-.18149414-.31420898-.07338867-.71850586.24169922-.90087891l1.52358398-.8793457c-.31948242-.3375-.70136719-.46845703-1.09907227-.46845703Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function ci1({...r}){return X("img",{alt:"Bicycle",src:Gk,...r})}var yp=ci1;var jk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64768982" viewBox="0 0 25.64767838 25.64768982">%0A <g id="rvf_base">%0A <g id="rvf_shared_car">%0A <g>%0A <path d="M12.82391739,25.14767456C6.02850723,25.14767456.50018692,19.61935425.50018692,12.82394409S6.02850723.50021362,12.82391739.50021362s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32373047-12.32373047,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29371643,11.82383728,11.82383728,0,6.53013611-5.29371643,11.82385254-11.82383728,11.82385254-6.53012848,0-11.82384109-5.29371643-11.82384109-11.82385254C1,6.29371643,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75274658,0,12.82383728s5.7527504,12.82385254,12.82384109,12.82385254,12.82383728-5.75276184,12.82383728-12.82385254S19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="verkehrstraeger_verkehrstraeger-auto-2px" data-name="verkehrstraeger/verkehrstraeger-auto-2px">%0A <path id="Fill-1" d="M16.71183851,14.25236615c.35769603,0,.648.29030397.648.648s-.29030397.648-.648.648-.648-.29030397-.648-.648.29030397-.648.648-.648" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M8.93583851,14.25236615c-.35769603,0-.648.29030397-.648.648s.29030397.648.648.648.648-.29030397.648-.648-.29030397-.648-.648-.648" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-11" d="M18.00783851,13.60436615v3.24c0,.35769603-.29030397.648-.648.648h-1.26943176v-.65059181c0-.35316005-.28382444-.6382804-.63504032-.64540819h-.03952792v-.00259181h-5.15289609c-.35769603,0-.648.29030397-.648.648v.65059181h-1.32710391c-.35769603,0-.648-.29030397-.648-.648v-3.24l.28187996-.648.27021604-.6194879.743904.37195192.221616.110808.1095121.04859988c.14968797.0583201.30909584.0881281.46979994.0881281h6.17414392l.12052792-.00583189c.15940757-.01490416.31492866-.05896805.45878474-.13089609l.22161539-.110808.75751241-.37843207.26438338.62596805.27410422.648ZM8.93583851,10.62745424l.50932785-1.16964004c.10303226-.23652001.33631203-.38944805.59421619-.38944805h5.62140012c.26049566,0,.49507196.15552001.59680769.39592804l.45424814,1.074384.25142432.5955121-.25142432.12571185-.80092804.40046402h-6.17414392l-.80092804-.40046402-.22615199-.11275186.22615199-.51969603ZM19.30383851,11.01236615h-.9849603l-.27345534-.648-.59421588-1.40486399c-.30391191-.719928-1.00958437-1.18713601-1.79042432-1.18713601h-5.62140012c-.77371216,0-1.47355211.458784-1.782,1.16769603l-.62013601,1.42430397-.28252807.648h-1.01087996c-.35769599,0-.648.29030397-.648.648s.29030401.648.648.648h.44647201l-.28188004.648-.05702396.13089578c-.07063198.16264826-.10756801.33890446-.10756801.51710422v3.24c0,1.07373573.87026396,1.944,1.944,1.944h1.32710391l.09655211-.00323946c.6706799-.04989702,1.1994482-.60976799,1.19879994-1.29600062h3.88346402c.00064826.71927978.58060794,1.29924007,1.29664826,1.29924007h1.26943176c1.07373573,0,1.944-.87026427,1.944-1.944v-3.24c0-.17366377-.03499255-.34473573-.10238461-.50479218l-.06026303-.14320782-.27410422-.648h.43675186c.35769603,0,.648-.29030397.648-.648s-.29030397-.648-.648-.648h0Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function li1({...r}){return X("img",{alt:"Car",src:jk,...r})}var E9=li1;var qk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="28.01245499" height="28.01245499" viewBox="0 0 28.01245499 28.01245499">%0A <g id="rvf_base">%0A <g id="rvf_shared_cargo_bike">%0A <g>%0A <path d="M14.0060463,27.51237106C6.55878067,27.51237106.50018692,21.45328903.50018692,14.00602341S6.55878067.50016403,14.0060463.50016403s13.50634766,6.05859375,13.50634766,13.50585938-6.05908203,13.50634766-13.50634766,13.50634766Z" style="fill: %2300973b;"/>%0A <path d="M14.00622177,1c7.18314362,0,13.00623322,5.82308197,13.00623322,13.00622177,0,7.18314362-5.8230896,13.00623322-13.00623322,13.00623322-7.1831398,0-13.00622177-5.8230896-13.00622177-13.00623322C1,6.82308197,6.82308197,1,14.00622177,1M14.00622177,0C6.28316116,0,0,6.28316116,0,14.00622177s6.28316116,14.00623322,14.00622177,14.00623322,14.00623322-6.28317261,14.00623322-14.00623322S21.72928238,0,14.00622177,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="Group-9">%0A <path id="Fill-1" d="M6.784509,13.90291161h1.4256c.35354867,0,.6343919-.26231042.68999035-.60017761.00641507-.03777838.02280965-.07270543.02280965-.11262239,0-.22880887-.11476098-.42269035-.28226873-.55313265-.11333548-.08838725-.24876718-.14754961-.40273204-.15396486-.00926641-.00071275-.01782007-.00570233-.02779922-.00570233h-1.4256c-.39346572,0-.71280008.3193342-.71280008.71279983,0,.04561929.01781998.08482317.02566081.12830422.06272636.33002627.33929277.58449578.68713928.58449578" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M18.90206812,20.62062811c-.64204102,0-1.24848633-.24873047-1.70771484-.70048828-.26015625-.25532227-.4574707-.57041016-.58623047-.93603516-.09887695-.28168945-.14677734-.54492188-.14677734-.80419922,0-.24741211.04526367-.50141602.13798828-.77695313.29707031-.87890625,1.05161133-1.50380859,1.96962891-1.63037109.14238281-.02021484.23554687-.03339844.33310547-.03339844.53833008,0,1.0546875.18061523,1.49282227.52294922.60249023.46889648.94790039,1.16806641.94790039,1.91777344,0,.20170898-.03164062.41044922-.10019531.65610352-.29487305,1.05073242-1.25727539,1.78461914-2.34052734,1.78461914ZM18.90206812,17.05666327c-.61918945,0-1.12324219.50405273-1.12324219,1.12324219s.50405273,1.12324219,1.12324219,1.12324219,1.12324219-.50405273,1.12324219-1.12324219-.50405273-1.12324219-1.12324219-1.12324219Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M8.31652125,20.68303045c-.21401367,0-.43681641-.02416992-.66225586-.07250977-1.44360352-.30893555-2.49125977-1.60488281-2.49125977-3.08144531,0-.89033203.37001953-1.71694336,1.04238281-2.3277832.24609375-.22368164.51767578-.40429688.80771484-.53657227.36694336-.16743164.76420898-.26015625,1.18081055-.27597656l.12260742-.01318359c.44208984,0,.8784668.09624023,1.29682617.28564453.62270508.28168945,1.1465332.77739258,1.47612305,1.39614258l.56645508-.10810547-.68686523-2.77338867-.45-1.67827148-.18457031-.00615234-.58007812.15556641c-.05581055.01494141-.11337891.02285156-.17094727.02285156-.29750977,0-.55898438-.20083008-.63588867-.48867188-.09404297-.35068359.11469727-.71279297.46582031-.80683594l1.37680664-.36914062c.05537109-.01494141.1125-.02241211.17006836-.02241211.03164063,0,.06240234.00219727.09316406.0065918.21269531.02680664.39946289.16611328.4996582.3730957l.05493164.10854492.15864258.59458008,1.04414063.03999023h7.87324219l.10854492.02329102c.31904297.05493164.55019531.32211914.55019531.63544922l-.02241211.11557617c.00483398.06416016.00703125.13974609-.01274414.21577148l-.65522461,2.44379883c-.04174805.15512695-.14326172.29047852-.28564453.38144531-.12832031.07426758-.18061523.1059082-.24169922.12260742l-6.75087891,1.80922852.26323242,1.19223633c.09404297.35068359-.11469727.71235352-.46582031.80639648-.05625.01538086-.11381836.02285156-.17138672.02285156-.29707031,0-.55854492-.20083008-.63544922-.48867188l-.30146484-1.12543945-.56557617.09492188-.04614258.01230469.01274414.10283203c.00571289,1.22124023-.64204102,2.2855957-1.68442383,2.83666992-.47285156.24960937-.96503906.37617188-1.46337891.37617188ZM8.31652125,15.69304022c-.77080078,0-1.46293945.49130859-1.7230957,1.22299805-.07470703.20830078-.11293945.4144043-.11293945.61303711,0,.53085937.23686523,1.03754883.64951172,1.39042969.34145508.29179687.75146484.44604492,1.18652344.44604492.41088867,0,.80419922-.13974609,1.13686523-.40473633.36474609-.29003906.60336914-.70180664.67236328-1.1597168l.01186523-.08129883-1.43964844.38583984c-.05581055.01494141-.11337891.02285156-.17094727.02285156-.29750977,0-.55898438-.20126953-.63588867-.48911133-.04570312-.16962891-.02241211-.34716797.06591797-.4996582.08789062-.15249023.22983398-.26147461.39990234-.30673828l1.43701172-.38496094-.05229492-.06459961c-.29179687-.36035156-.70224609-.59589844-1.15620117-.66357422-.10107422-.01494141-.18325195-.02680664-.26894531-.02680664ZM12.96637476,15.54186834l2.89467773-.71938477,3.58110352-.95976562.2043457-.65874023.19116211-.71279297-1.70947266-.06811523h-5.9972168l.83540039,3.11879883Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function di1({...r}){return X("img",{alt:"Cargo bike",src:qk,...r})}var _p=di1;var Kk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64768982" viewBox="0 0 25.64767456 25.64768982">%0A <g id="rvf_base">%0A <g id="rvf_shared_ride">%0A <g>%0A <path d="M12.82368469,25.14767456C6.02827454,25.14767456.49995422,19.61935425.49995422,12.82394409S6.02827454.50021362,12.82368469.50021362s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32373047-12.32421875,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29371643,11.82383728,11.82383728,0,6.53013611-5.2937088,11.82385254-11.82383728,11.82385254-6.53012085,0-11.82383728-5.29371643-11.82383728-11.82385254C1,6.29371643,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82385254,12.82383728,12.82385254,12.82383728-5.75276184,12.82383728-12.82385254S19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g>%0A <path d="M18.43790805,8.78152597l-4.85659507.00731315c-.24399321.03723057-.39025617.1954605-.53518946.35369043-.390921.29319075-.845001.44809652-1.31437214.44809652-.36698706,0-.73064996-.09839508-1.0530933-.28521277-.03590091-.02193944-.08576328-.06049968-.21474062-.16487824-.27058647-.21540545-.42017359-.33374548-.68012276-.3530256-.19280117,0-.51590935.06382384-.63424938.0924116-.92611046.23202624-1.68268886,1.08899421-1.83958912,2.08823615.00265933.47402495-.01728562.97131901-.04055473,1.54440388-.03723057.90948967-.07579081,1.85022643.00265933,2.71317789.0797798.88289641.73663345,1.52445893,1.5616895,1.52445893.06781283,0,.13562565-.00398899.20277365-.01329663l.13703842-.04587338.01786735-.00241001v4.35040888c0,.49662923.41684943,1.05774713.80644077,1.26916358.25463051.13828498.5192335.20875713.78716065.20875713.33706964,0,.64422185-.11501587.78250683-.29319075l.06116451-.12166419.1283125.09706542c.27191614.20543297.59502431.31380053.93541811.31380053.83170437,0,1.51315679-.64754601,1.58628827-1.50783814l-.00531865-8.71328336c.02127461-.20277365.15025195-.33175098.35502009-.35236076.26726232-.02592843.54383227-.03523608.82572089-.03523608.3782892,0,.7672157.01662079,1.24190549.03723057.37297055.01595596.7439466.03124709,1.1076095.03124709.27590513,0,.54782126-.00797798.81042976-.03191192.93541811-.07911496,1.42207486-.85031966,1.41941553-1.57033231-.00398899-.70738086-.50460721-1.50584365-1.59559592-1.5889476ZM17.83158161,10.72615849c-.36166841,0-.72799064-.01196697-1.14949389-.02592843-.39358033-.01396146-.78716065-.0272581-1.17409266-.0272581-.323773,0-.64222736.00930764-.95403339.03590091-.82705055.06980732-1.4207452.65951298-1.51315679,1.50584365l.00066483,8.76846439c-.07446114.26859198-.26393816.29784457-.34238829.29784457-.14626296,0-.32643233-.09972474-.35036627-.38161336-.06714799-.781842-.03457124-1.67803504-.00531865-2.48181648.02792293-.76389154.05651069-1.55304669.00664832-2.32092723-.03457124-.34837177-.2752403-.58239251-.59768364-.58239251-.34770694,0-.60965061.26925681-.63624387.65618882l.00797798,4.82069416c-.0505272.17950454-.17950454.28654243-.34438279.28654243-.19745499,0-.33241582-.11966969-.3530256-.30981154l.00398899-8.79705215-.05917002-.13629048c-.11634554-.22005927-.33308065-.35634975-.56510689-.35634975-.31047637,0-.55646408.23269107-.61230993.58172768-.03390641.47867877-.01529113.98195632.00332416,1.48523386.01928012.52056317.03723057,1.01253857-.00332416,1.48257454-.01728562.19811983-.18016937.28654243-.33441031.28654243-.09706542,0-.3257675-.04121956-.36033874-.42615708-.07113698-.82838021-.03124709-1.75515551.00731315-2.65134855.02127461-.50128305.04188439-.99458812.04321406-1.43736599.02260428-.31380053.64355702-.95270373,1.0171924-.98461565.02925259.01728562.07246665.04919754.19944949.14626296.13629048.10238407.28321828.2100868.36100358.25330085.50061822.27457546,1.03780218.41352527,1.59626075.41352527.77519368,0,1.54839287-.27856445,2.21787832-.79912762.19014185.00598348.38294302.00797798.57574419.00797798.45939866,0,.92544563-.01329663,1.46129993-.02858776.43546472-.01196697.87092944-.02393394,1.3010755-.02393394.34637728,0,.69076007.00797798,1.02849453.02925259.34238829.02193944.48732159.19014185.5066017.32643233.02260428.17219139-.13230149.31380053-.23202624.36432773-.2459877.01662079-.49795889.02193944-.75125974.02193944Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M11.67922969,8.57077434c1.35093788,0,2.45056939-1.09963152,2.45056939-2.45123423,0-1.35093788-1.09963152-2.45056939-2.45056939-2.45056939s-2.45056939,1.09963152-2.45056939,2.45056939c0,1.35160271,1.09963152,2.45123423,2.45056939,2.45123423ZM11.67922969,4.92882666c.65685365,0,1.19071345.5338598,1.19071345,1.19071345s-.5338598,1.19137828-1.19071345,1.19137828-1.19071345-.53452463-1.19071345-1.19137828.5338598-1.19071345,1.19071345-1.19071345Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function vi1({...r}){return X("img",{alt:"Ride",src:Kk,title:"Mitfahrpunkte",...r})}var r_=vi1;var Wk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64767456" viewBox="0 0 25.64767838 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_shared_scooter">%0A <g>%0A <path d="M12.82391739,25.14752197C6.02850723,25.14752197.50018692,19.61920166.50018692,12.8237915S6.02850723.50006104,12.82391739.50006104s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32373047-12.32373047,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29371643,11.82383728,11.82384491,0,6.53012085-5.29371643,11.82382965-11.82383728,11.82382965-6.53012848,0-11.82384109-5.2937088-11.82384109-11.82382965C1,6.29371643,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75275421,0,12.82384491c0,7.07108307,5.7527504,12.82382965,12.82384109,12.82382965s12.82383728-5.75274658,12.82383728-12.82382965C25.64767838,5.75275421,19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="Group-5">%0A <path d="M18.64085918,18.24216413l-.93076172-3.47475586c-.09360352-.34848633-.45087891-.55722656-.80288086-.46274414-.34892578.09360352-.55634766.45395508-.46274414.80244141l.93076172,3.47387695c.04482422.16918945.15336914.31025391.30498047.39770508.10107422.05844727.21313477.08833008.32651367.08833008.05712891,0,.11425781-.0074707.17050781-.02285156.16918945-.04482422.31025391-.15336914.39814453-.30498047.08745117-.15161133.11074219-.32827148.06547852-.49702148Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M18.1513084,8.25778913c-.07602539-.28608398-.33618164-.48603516-.63237305-.48603516-.05712891,0-.11425781.0074707-.22719727.03779297l-4.44902344,1.19179687c-.34892578.09360352-.55722656.45351563-.46362305.80244141.07558594.28300781.33530273.48076172.63105469.48076172.04526367,0,.0909668-.00439453.17138672-.01757812l1.80791016-.47241211.4855957,1.81186523.1340332.41748047-1.98413086,3.43608398-.2746582.54711914h-2.43676758c-.04350586-.17446289-.11030273-.35244141-.2034668-.54316406-.08393555-.16918945-.18764648-.33178711-.30805664-.48383789-.51943359-.65390625-1.2862793-1.02919922-2.10454102-1.02919922-1.48666992,0-2.69648438,1.20981445-2.69648438,2.69648437s1.20981445,2.69648438,2.69648438,2.69648438c1.01206055,0,1.93051758-.56777344,2.39589844-1.48227539.10458984-.20698242.17797852-.40341797.15380859-.54404297h2.69604492c.25927734,0,.59238281-.12172852.72685547-.35375977l1.81186523-3.13857422.77651367-1.37592773c.08745117-.15117187.11118164-.32783203.06591797-.49746094l-.67192383-2.50751953,1.43569336-.38452148c.16918945-.04482422.31025391-.15336914.39770508-.30498047.08789062-.15161133.11118164-.32827148.06547852-.49702148ZM6.91141582,16.64738874c0-.3234375.11381836-.63017578.32915039-.88637695.06416016-.0769043.13710938-.1472168.21533203-.20786133.24785156-.19116211.53920898-.29179687.84155273-.29179687.3019043,0,.59326172.10063477.84155273.29179687.16391602.1265625.29663086.28212891.38759766.45395508h-1.17509766c-.36123047,0-.65522461.29399414-.65522461.65522461s.29399414.65522461.65522461.65522461h1.15576172c-.0984375.17753906-.23642578.33266602-.40297852.45307617-.24038086.17182617-.51943359.26279297-.80683594.26279297-.2878418,0-.56689453-.0909668-.80639648-.26279297-.08789062-.0637207-.17006836-.14106445-.25048828-.23642578-.21533203-.25664062-.32915039-.56337891-.32915039-.88681641Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function pi1({...r}){return X("img",{alt:"Scooter",src:Wk,...r})}var a_=pi1;var t8=(r,t="rvf_shared_bike")=>[{id:r+"_circle",maxZoom:16,minzoom:11,paint:{"circle-color":"#00973b","circle-radius":4,"circle-stroke-color":"rgba(255, 255, 255, 1)","circle-stroke-width":.5},source:r,type:"circle"},{id:r+"_image_text",layout:{"icon-image":t,"icon-size":1,"symbol-z-order":"auto","text-anchor":"top","text-field":{stops:[[15,""],[16,"{provider_name}"]]},"text-font":["SourceSansPro-Bold"],"text-justify":"center","text-letter-spacing":.04,"text-line-height":1.1,"text-max-width":6,"text-optional":!0,"text-radial-offset":1.5,"text-size":12,visibility:"visible"},minzoom:14,paint:{"text-color":"rgba(6, 76, 10, 1)","text-halo-blur":.5,"text-halo-color":"rgba(255, 255, 255, 1)","text-halo-width":2},source:r,type:"symbol"},{filter:["==","is_free_float",!1],id:r+"_availability",layout:{"icon-allow-overlap":!0,"icon-anchor":"center","icon-ignore-placement":!0,"icon-image":"10-contour-big-grey","icon-offset":[20,-18],"icon-overlap":"always","icon-size":.6,"symbol-z-order":"auto","text-allow-overlap":!0,"text-field":{stops:[[15,""],[16,"{num_vehicles_available}"]]},"text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-offset":[1.2,-1],"text-overlap":"always","text-size":10,visibility:"visible"},minzoom:16,paint:{"text-color":"rgba(6, 76, 10, 1)"},source:r,type:"symbol"},{filter:["==","is_free_float",!0],id:r+"_availability_freefloat",layout:{"icon-allow-overlap":!0,"icon-anchor":"center","icon-ignore-placement":!0,"icon-image":"10-contour-big-grey","icon-offset":[-20,-18],"icon-overlap":"always","icon-size":.6,"symbol-z-order":"auto","text-allow-overlap":!0,"text-field":"1","text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-offset":[-1.2,-1],"text-overlap":"always","text-size":10,visibility:"visible"},minzoom:16,paint:{"text-color":"rgba(6, 76, 10, 1)"},source:r,type:"symbol"}],Zk=(r,t="rvf_shared_bike")=>[{id:r+"_image_text",layout:{"icon-allow-overlap":!0,"icon-ignore-placement":!0,"icon-image":t,"icon-size":1,"symbol-z-order":"auto","text-allow-overlap":!0,"text-anchor":"top","text-field":{stops:[[15,""],[16,"{provider_name}"]]},"text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-letter-spacing":.04,"text-line-height":1.1,"text-max-width":6,"text-optional":!0,"text-radial-offset":1.5,"text-size":12,visibility:"visible"},minzoom:14,paint:{"text-color":"rgba(6, 76, 10, 1)","text-halo-blur":.5,"text-halo-color":"rgba(255, 255, 255, 1)","text-halo-width":2},source:r,type:"symbol"},{filter:["has","point_count"],id:r+"_availability2",layout:{"icon-allow-overlap":!0,"icon-anchor":"center","icon-ignore-placement":!0,"icon-image":"10-contour-big-grey","icon-offset":[-20,-18],"icon-overlap":"always","icon-size":.6,"symbol-z-order":"auto","text-allow-overlap":!0,"text-field":"{point_count}","text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-offset":[-1.2,-1],"text-overlap":"always","text-size":10,visibility:"visible"},minzoom:16,paint:{"text-color":"rgba(6, 76, 10, 1)"},source:r,type:"symbol"},{filter:["!",["has","point_count"]],id:r+"_availability3",layout:{"icon-allow-overlap":!0,"icon-anchor":"center","icon-ignore-placement":!0,"icon-image":"10-contour-big-grey","icon-offset":[-20,-18],"icon-overlap":"always","icon-size":.6,"symbol-z-order":"auto","text-allow-overlap":!0,"text-field":"1","text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-offset":[-1.2,-1],"text-overlap":"always","text-size":10,visibility:"visible"},minzoom:16,paint:{"text-color":"rgba(6, 76, 10, 1)"},source:r,type:"symbol"}];var i_=async(r,t,e=Ku)=>{let a="https://api.mobidata-bw.de/geoserver/MobiData-BW/"+r+"/ows?service=WFS&version=1.1.0&request=GetFeature&typename=MobiData-BW:"+r+"&outputFormat=application/json&bbox="+e.toString()+",EPSG:4326",i=await(await fetch(a,{signal:t.signal})).json();return i?.features.forEach(h=>{let d=h.properties.vehicle_id;h.properties.id=d||h.properties.station_id,h.properties.is_free_float=!!d,h.properties.provider_name=Zu[h.properties.feed_id]}),i};var n_="bikeFrelo",o_="bikeOthers",c_="cargobikeFrelo",h_="cargobikeOthers",l_="carGrf",s_="carNature",d_="carOthers",u_="scooter",Ai1=async(r,t,e)=>({features:(await i_(r,e)).features.filter(i=>t?t.includes(i.properties.feed_id):!0),type:"FeatureCollection"}),fi1=async(r,t,e,a)=>({features:(await i_("sharing_vehicles",a,e)).features.filter(h=>(t?t.includes(h.properties.feed_id):!0)&&h.properties.form_factor===r),type:"FeatureCollection"}),Vp=new Map,e8=async(r,t,e,a,n)=>{let i=r+e?.toString(),h=Vp[i]||await Ai1(r,e,n),d=await fi1(t,e,a,n);return Vp[i]||(Vp[i]=h),{features:[...h.features,...d.features],type:"FeatureCollection"}};function mi1(r){let{baseLayer:t,map:e}=Gt(),{setSharedMobilityLayerGroup:a}=cr(),[n,i]=st(),[h,d]=st(),[g,m]=st(),[z,w]=st(),[b,_]=st(),[P,R]=st(),[U,k]=st(),[q,Y]=st(),[d1,z1]=st(),[M1,m1]=st(),[A1,_1]=st(),[N1,c1]=st(),[o1,F1]=st(),[B1,W1]=st(),[G1,Z1]=st(),[S1,X1]=st(),i2=f4(()=>{let t1=new AbortController,y1=S8(e.getView().calculateExtent(),"EPSG:3857","EPSG:4326");return(async()=>{let D1=await e8("sharing_stations_bicycle",PM,[MS],y1,t1);z1(D1);let q1=await e8("sharing_stations_bicycle",PM,xS,y1,t1);m1(q1);let l2=await e8("sharing_stations_cargo_bicycle",RM,[wS],y1,t1);_1(l2);let c2=await e8("sharing_stations_cargo_bicycle",RM,HS,y1,t1);c1(c2);let u2=await e8("sharing_stations_car",Xu,[fS],y1,t1);F1(u2);let _2=await e8("sharing_stations_car",Xu,[mS],y1,t1);W1(_2);let B2=await e8("sharing_stations_car",Xu,zS,y1,t1);Z1(B2);let K2=await e8("sharing_stations_scooters_standing",AS,null,y1,t1);X1(K2)})(),()=>{t1.abort()}},[e]);q2(()=>{let t1=e?.on("moveend",i2),y1=e?.once("rendercomplete",i2);return()=>{B0(t1),B0(y1)}},[e,i2]),q2(()=>{let t1=n?.maplibreLayer?.mapLibreMap;if(!t1||!d1)return;t1.getSource(n_)?.setData(d1)},[d1,n?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=h?.maplibreLayer?.mapLibreMap;if(!t1||!M1)return;t1.getSource(o_)?.setData(M1)},[M1,h?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=g?.maplibreLayer?.mapLibreMap;if(!t1||!A1)return;t1.getSource(c_)?.setData(A1)},[A1,g?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=z?.maplibreLayer?.mapLibreMap;if(!t1||!N1)return;t1.getSource(h_)?.setData(N1)},[N1,z?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=b?.maplibreLayer?.mapLibreMap;if(!t1||!o1)return;t1.getSource(l_)?.setData(o1)},[o1,b?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=P?.maplibreLayer?.mapLibreMap;if(!t1||!B1)return;t1.getSource(s_)?.setData(B1)},[B1,P?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=U?.maplibreLayer?.mapLibreMap;if(!t1||!G1)return;t1.getSource(d_)?.setData(G1)},[G1,U?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=q?.maplibreLayer?.mapLibreMap;if(!t1||!S1)return;t1.getSource(u_)?.setData(S1)},[S1,q?.maplibreLayer?.mapLibreMap]);let z2=St(()=>{if(!t)return null;let t1=new u3({layers:[new k4({layersFilter:({metadata:K1})=>K1?.["rvf.filter"]==="bike",maplibreLayer:t,maxZoom:18,visible:!1})],name:q4.fahrrad}),y1=new u3({layers:[new k4({layersFilter:({metadata:K1})=>K1?.["rvf.filter"]==="car",maplibreLayer:t,maxZoom:18,visible:!1})]}),H1=new u3({layers:[new k4({layersFilter:({metadata:K1})=>K1?.["rvf.filter"]==="cargo_bike",maplibreLayer:t,maxZoom:18,visible:!1})]}),D1=new k4({isQueryable:!0,layersFilter:({metadata:K1})=>K1?.["rvf.filter"]==="hitchhiking",maplibreLayer:t,name:q4.mitfahrpunkte,title:X("div",{className:"flex items-center justify-between gap-2",children:[a4.mitfahrpunkte,X(r_,{})]}),visible:!1}),q1=new k4({isQueryable:!0,maplibreLayer:t,name:q4.bikeFrelo,sources:{[n_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(n_),title:X("div",{className:"flex items-center justify-between gap-2",children:["Frelo",X(yp,{})]})});i(q1);let l2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.bikeOthers,sources:{[o_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(o_),title:X("div",{className:"flex items-center justify-between gap-2",children:["Fahrrad, andere Anbieter",X(yp,{})]})});d(l2);let c2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.cargobikeFrelo,sources:{[c_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(c_,"rvf_shared_cargo_bike"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Lastenfrelo",X(_p,{})]})});m(c2);let u2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.cargobikeOthers,sources:{[h_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(h_,"rvf_shared_cargo_bike"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Lastenrad, andere Anbieter",X(_p,{})]})});w(u2);let _2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.carGrf,sources:{[l_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(l_,"rvf_shared_car"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Gr\xFCne Flotte",X(E9,{})]})});_(_2);let B2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.carNatur,sources:{[s_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(s_,"rvf_shared_car"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Naturenergie-Sharing",X(E9,{})]})});R(B2);let K2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.carOthers,sources:{[d_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(d_,"rvf_shared_car"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Auto, andere Anbieter",X(E9,{})]})});k(K2);let U2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.eroller,sources:{[u_]:{cluster:!0,clusterRadius:40,data:{features:[],type:"FeatureCollection"},generateId:!0,maxzoom:21,type:"geojson"}},styleLayers:Zk(u_,"rvf_shared_scooter"),title:X("div",{className:"flex items-center justify-between gap-2",children:[a4.eroller,X(a_,{})]})});return Y(U2),new u3({layers:[t1,H1,y1,q1,l2,c2,u2,_2,B2,K2,U2,D1],...r})},[t,r]);return q2(()=>{let t1=window.setInterval(()=>{Vp={},i2()},6e4);return()=>{window.clearInterval(t1)}},[z2,i2]),q2(()=>{a(z2)},[z2,a]),q2(()=>{if(!(!e||!z2))return e.addLayer(z2),()=>{e.removeLayer(z2)}},[e,z2]),null}var v_=ht(mi1);function zi1({...r}){return X("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var g_=zi1;function Mi1({...r}){let{isShareMenuOpen:t,setIsShareMenuOpen:e}=cr(),a=f4(()=>{e(!t)},[t,e]);return X(Bi,{...r,onClick:a,selected:t,children:X(g_,{})})}var p_=ht(Mi1);function xi1(r){let{baseLayer:t,map:e}=Gt(),{setTarifZonenLayer:a}=cr(),n=St(()=>t?new k4({isQueryable:!1,layersFilter:({metadata:i})=>i?.["rvf.filter"]==="zones",maplibreLayer:t,name:q4.tarifzonen,...r||{}}):null,[t,r]);return q2(()=>{a(n)},[n,a]),q2(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var A_=ht(xi1);var Xk=wi(null),Bp=wi(null);var $k='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">%0A <title>iconfont/minus</title>%0A <g id="iconfont/minus" stroke="%237C7C7C" fill="%237C7C7C" stroke-width="1" fill-rule="evenodd">%0A <path d="M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"></path>%0A </g>%0A</svg>';function Hi1(r){return X("input",{className:"peer mr-2 size-[20px] rounded-full border-2 border-grey accent-red",...r,type:"radio"})}var f_=Hi1;function Yk({childItems:r,isCollapsedOnControlClick:t,isControlChecked:e,layer:a,selectionType:n,title:i}){let[h,d]=st(!0),g=e5(Bp),m=Ao(),z=Ao();q2(()=>{t&&d(e)},[e,t,a]);let w=()=>{d(!h),t&&!h&&g({payload:{...this.props,isControlChecked:!0},type:"SELECT_ITEM"})},b=R=>{g({payload:{...this.props,isControlChecked:R.target.checked},type:"SELECT_ITEM"})},_=r.filter(({title:R})=>!!R).map((R,U)=>X(Yk,{...R},U));if(!i)return null;let P=()=>r.length>0?r.filter(U=>U.isControlChecked).length===r.length?!1:r.some(U=>U.isControlChecked):!1;return X("div",{children:[X("div",{className:"flex items-center gap-2 border-b py-2 pr-1",children:[n==="radio"?X(f_,{checked:e,id:m,onChange:b}):X(I7,{checked:e,checkedIconUrl:P()?$k:null,className:P()?"bg-[length:18px]":"",id:m,onChange:b}),X("label",{className:"flex-1 cursor-pointer",htmlFor:_.length>0?z:m,children:i}),_.length>0&&X("button",{className:"flex cursor-pointer items-center gap-2",id:z,onClick:w,children:h?X(F9,{}):X(G8,{})})]}),h&&_.length>0&&X("div",{className:"pl-6",children:_})]})}var Jk=Yk;var tU={childItems:[],parent:null},_i1=r=>{let t={...tU};return t.childItems=r,eU(t.childItems,t),t},eU=(r,t)=>{for(let e of r)e.parent=t,e.childItems.length&&eU(e.childItems,e)},rU=(r,t)=>{if(r.id===t.id)return r;if(r.childItems.length)for(let e of r.childItems){let a=rU(e,t);if(a)return a}},Vi1=(r,t)=>{let e=rU(r,t);return e&&m_(e,t,!1),{...r}},m_=(r,t,e)=>{if(t.isControlChecked)if(t.selectionType==="checkbox")r.isControlChecked=t.isControlChecked,r.layer.setVisible(r.isControlChecked);else for(let a of r.parent.childItems)a.isControlChecked=a.id===r.id,a.isControlChecked||aU(a);else t.selectionType==="checkbox"&&(r.isControlChecked=t.isControlChecked,r.layer.setVisible(r.isControlChecked));r.childItems.length&&!e&&z_(r),Ci1(r)},z_=r=>{r.childItems[0].selectionType==="radio"?aU(r):Bi1(r)},aU=r=>{if(r.isControlChecked)for(let t=0;t<r.childItems.length;t++)r.childItems[t].isControlChecked=t===0;else for(let t of r.childItems)t.isControlChecked=!1;r.childItems.length&&r.childItems[0].childItems.length&&z_(r.childItems[0])},Bi1=r=>{for(let t of r.childItems)t.isControlChecked=r.isControlChecked,t.layer.setVisible(t.isControlChecked),t.childItems.length&&z_(t)},Ci1=r=>{if(r.parent){if(r.parent.selectionType==="checkbox"){let t={...r.parent,isControlChecked:r.parent.childItems.some(e=>e.isControlChecked)};m_(r.parent,t,!0)}else if(r?.parent?.parent){let t={...r.parent,isControlChecked:r.parent.childItems.some(e=>e.isControlChecked)};m_(r.parent,t,!0)}}};function bi1(r=tU,t){switch(t.type){case"INIT":return _i1(t.payload);case"SELECT_ITEM":return Vi1(r,t.payload);default:return r}}var iU=bi1;function Li1({layers:r,...t}){let[e,a]=Eh(iU,r);return q2(()=>{a({payload:r,type:"INIT"})},[r]),X(Xk.Provider,{value:e,children:X(Bp.Provider,{value:a,children:X("div",{...t,children:r.map(n=>X(Jk,{className:"w-full",...n},n.id))})})})}var M_=ht(Li1);var nU=r=>{let t=r;Array.isArray(t)||(t=[r]);let e=[];return t.forEach(a=>{e.push(a);let n=a.get("children")||a.getLayers?.()?.getArray();e=e.concat(nU(n||[]))}),e},r8=nU;var oU=(r,t)=>({childItems:r?.getLayers?.().getArray().map(e=>oU(e,t))||[],id:u0(r),isControlChecked:r.getVisible(),layer:r,revision:t,selectionType:"checkbox",title:r.get("title")});function Si1(r){let{map:t}=Gt(),[e,a]=st(0),n=St(()=>t?.getLayers().getArray().map(h=>oU(h,e))||[],[t,e]);return q2(()=>{r8(t.getLayers().getArray()).forEach(h=>{h.on("change:visible",()=>{a(d=>d+1)})})},[t]),X(M_,{layers:n,...r})}var Cp=ht(Si1);function Fi1(r){return X("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"})})}var x_=Fi1;function Ei1(r){return X("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M12,4 C12.5522847,4 13,4.44771525 13,5 L13,11 L19,11 C19.5128358,11 19.9355072,11.3860402 19.9932723,11.8833789 L20,12 C20,12.5522847 19.5522847,13 19,13 L13,13 L13,19 C13,19.5128358 12.6139598,19.9355072 12.1166211,19.9932723 L12,20 C11.4477153,20 11,19.5522847 11,19 L11,13 L5,13 C4.48716416,13 4.06449284,12.6139598 4.00672773,12.1166211 L4,12 C4,11.4477153 4.44771525,11 5,11 L11,11 L11,5 C11,4.48716416 11.3860402,4.06449284 11.8833789,4.00672773 Z"})})}var w_=Ei1;function Ii1(){let{map:r}=Gt(),[t,e]=st(!1),[a,n]=st(!1),i=f4(()=>{if(!r?.getView())return;let d=r.getView(),g=d.getZoom();d.setZoom(g+1)},[r]),h=f4(()=>{if(!r?.getView())return;let d=r.getView(),g=d.getZoom();d.setZoom(g-1)},[r]);return q2(()=>{let d=r?.on("moveend",()=>{let g=r.getView(),m=g.getZoom(),z=g.getMaxZoom(),w=g.getMinZoom();z&&m===Number(z)?e(!0):e(!1),w&&m===Number(w)?n(!0):n(!1)});return()=>{B0(d)}},[r]),X(ke,{children:[X(Bi,{disabled:t,Icon:w_,onClick:i}),X(Bi,{disabled:a,Icon:x_,onClick:h})]})}var H_=ht(Ii1);var y_="units",Oi1=[1,2,5],I9=25.4/.28,__=class extends L6{constructor(t){t=t||{};let e=document.createElement("div");e.style.pointerEvents="none",super({element:e,render:t.render,target:t.target}),this.on,this.once,this.un;let a=t.className!==void 0?t.className:t.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=a+"-inner",this.element.className=a+" "+F6,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=t.minWidth!==void 0?t.minWidth:64,this.maxWidth_=t.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(y_,this.handleUnitsChanged_),this.setUnits(t.units||"metric"),this.scaleBar_=t.bar||!1,this.scaleBarSteps_=t.steps||4,this.scaleBarText_=t.text||!1,this.dpi_=t.dpi||void 0}getUnits(){return this.get(y_)}handleUnitsChanged_(){this.updateElement_()}setUnits(t){this.set(y_,t)}setDpi(t){this.dpi_=t}updateElement_(){let t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}let e=t.center,a=t.projection,n=this.getUnits(),i=n=="degrees"?"degrees":"m",h=_f(a,t.resolution,e,i),d=this.minWidth_*(this.dpi_||I9)/I9,g=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||I9)/I9:void 0,m=d*h,z="";if(n=="degrees"){let Y=wo.degrees;m*=Y,m<Y/60?(z="\u2033",h*=3600):m<Y?(z="\u2032",h*=60):z="\xB0"}else if(n=="imperial")m<.9144?(z="in",h/=.0254):m<1609.344?(z="ft",h/=.3048):(z="mi",h/=1609.344);else if(n=="nautical")h/=1852,z="NM";else if(n=="metric")m<1e-6?(z="nm",h*=1e9):m<.001?(z="\u03BCm",h*=1e6):m<1?(z="mm",h*=1e3):m<1e3?z="m":(z="km",h/=1e3);else if(n=="us")m<.9144?(z="in",h*=39.37):m<1609.344?(z="ft",h/=.30480061):(z="mi",h/=1609.3472);else throw new Error("Invalid units");let w=3*Math.floor(Math.log(d*h)/Math.log(10)),b,_,P,R,U,k;for(;;){P=Math.floor(w/3);let Y=Math.pow(10,P);if(b=Oi1[(w%3+3)%3]*Y,_=Math.round(b/h),isNaN(_)){this.element.style.display="none",this.renderedVisible_=!1;return}if(g!==void 0&&_>=g){b=R,_=U,P=k;break}else if(_>=d)break;R=b,U=_,k=P,++w}let q=this.scaleBar_?this.createScaleBar(_,b,z):b.toFixed(P<0?-P:0)+" "+z;this.renderedHTML_!=q&&(this.innerElement_.innerHTML=q,this.renderedHTML_=q),this.renderedWidth_!=_&&(this.innerElement_.style.width=_+"px",this.renderedWidth_=_),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(t,e,a){let n=this.getScaleForResolution(),i=n<1?Math.round(1/n).toLocaleString()+" : 1":"1 : "+Math.round(n).toLocaleString(),h=this.scaleBarSteps_,d=t/h,g=[this.createMarker("absolute")];for(let z=0;z<h;++z){let w=z%2===0?"ol-scale-singlebar-odd":"ol-scale-singlebar-even";g.push(`<div><div class="ol-scale-singlebar ${w}" style="width: ${d}px;"></div>`+this.createMarker("relative")+(z%2===0||h===2?this.createStepText(z,t,!1,e,a):"")+"</div>")}return g.push(this.createStepText(h,t,!0,e,a)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${t}px;">`+i+"</div>":"")+g.join("")}createMarker(t){return`<div class="ol-scale-step-marker" style="position: ${t}; top: ${t==="absolute"?3:-10}px;"></div>`}createStepText(t,e,a,n,i){let d=(t===0?0:Math.round(n/this.scaleBarSteps_*t*100)/100)+(t===0?"":" "+i),g=t===0?-3:e/this.scaleBarSteps_*-1,m=t===0?0:e/this.scaleBarSteps_*2;return`<div class="ol-scale-step-text" style="margin-left: ${g}px;text-align: ${t===0?"left":"center"};min-width: ${m}px;left: ${a?e+"px":"unset"};">`+d+"</div>"}getScaleForResolution(){let t=_f(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),e=this.dpi_||I9,a=1e3/25.4;return t*a*e}render(t){let e=t.frameState;e?this.viewState_=e.viewState:this.viewState_=null,this.updateElement_()}},cU=__;var hU=`.ol-scale-line {
|
|
1295
|
+
`,xp=async r=>{let t=new Yc(fa1,{method:"GET"}),{station:e}=await t.request(ma1,{__operation:"station",id:r});return e};function za1({feature:r}){let[t,e]=st(null),a=St(()=>_9(r),[r]);q2(()=>{r.get("station_id")&&(async()=>{let d=await xp(r.get("station_id"));e(d)})()},[r]);let n=r.get("num_vehicles_available")>0;return X("div",{className:"flex flex-1 flex-col gap-2",children:[X("div",{className:"flex flex-1 flex-col gap-2 ",children:[X("div",{children:[r.get("num_vehicles_available")||0," Fahrzeuge"]}),n&&t?.vehicleTypesAvailable?.length&&X("div",{className:"flex flex-1 flex-col",children:[X("div",{className:"text-grey",children:"Fahrzeug mieten"}),X("ul",{className:"list-disc pl-4",children:t?.vehicleTypesAvailable?.map(({count:i,vehicleType:{id:h,name:d,vehicleImage:g}})=>X("li",{children:X("div",{className:"flex items-center gap-2",children:[X("span",{children:`${i} x ${d.translation[0].value}`}),g&&X("img",{alt:"vehicle",className:"w-12",src:g})]})},h))})]})]}),t?.vehicleTypesAvailable?.length>0&&a&&X("div",{children:X(Kl,{href:a,children:"Jetzt buchen"})})]})}var Fy=za1;function Ma1({selectedFeature:r}){let[t,e]=st([]),a=!!r.get("station_id"),n=!!r.get("vehicle_id"),i=!!r.get("cluster_id");q2(()=>{e(i?r.get("features"):[r])},[r,n,i]);let h=St(()=>{let d={};return a?null:(t.forEach(g=>{let m=g.get("feed_id");d[m]?d[m].push(g):d[m]=[g]}),d)},[t,a]);return X(ke,{children:[a&&X(ke,{children:[X("img",{alt:"logo",className:"max-w-24",src:C7[t[0]?.get("feed_id")]}),t.length&&a&&X(Fy,{feature:t[0]})]}),(n||i)&&h&&Object.entries(h).map(([d,g])=>X(ke,{children:[X("img",{alt:"logo",className:"max-w-24",src:C7[g[0]?.get("feed_id")]}),X(my,{features:g})]},d))]})}var Ey=Ma1;var xa1=r=>{if(r.get("station_id")||r.get("vehicle_id")||r.get("cluster_id"))return!0};function wa1(r){let{selectedFeature:t}=cr(),e=xa1(t);return X("div",{...r,children:[e&&X(Ey,{selectedFeature:t}),!e&&Object.entries(t.getProperties()).map(([n,i])=>X("div",{className:"flex gap-2",children:[X("span",{children:X("b",{children:[n,":"]})}),X("div",{children:i})]},n))]})}var Iy=ht(wa1);function Ha1(r){return X("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M15.7389427,5.27697525 C16.129467,5.66749954 16.129467,6.30066452 15.7389427,6.69118881 L10.414,12.015082 L15.7389427,17.3406471 C16.0994267,17.7011311 16.1271562,18.2683621 15.8221313,18.6606533 L15.7389427,18.7548607 C15.3484184,19.145385 14.7152534,19.145385 14.3247292,18.7548607 L8.29289322,12.7230247 C7.90236893,12.3325005 7.90236893,11.6993355 8.29289322,11.3088112 L14.3247292,5.27697525 C14.7152534,4.88645096 15.3484184,4.88645096 15.7389427,5.27697525 Z",transform:"translate(12.0159, 12.0159) rotate(450) translate(-12.0159, -12.0159)"})})}var F9=Ha1;function ya1({children:r,isOpen:t,onClick:e,title:a}){let{map:n}=Gt();return n?X("div",{className:"pointer-events-none absolute bottom-8 left-2 top-2 z-10 flex flex-col overflow-hidden rounded-lg",children:X("div",{className:"pointer-events-auto max-h-full w-48 rounded-lg border border-grey bg-white shadow-lg @lg/main:w-52",children:[X("button",{className:"flex w-full items-center justify-between px-2 py-1.5 font-bold",onClick:e,children:[a," ",t?X(G8,{}):X(F9,{})]}),!t&&X("div",{className:"flex h-[calc(100%-39px)] w-full flex-1 flex-col overflow-y-auto",children:r})]})}):null}var Oy=ya1;function _a1({...r}){return X("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3",strokeLinecap:"round",strokeLinejoin:"round"})})}var Ty=_a1;function Va1({...r}){let{isLayerTreeOpen:t,setIsLayerTreeOpen:e}=cr(),a=f4(()=>{e(!t)},[t,e]);return X(Bi,{...r,onClick:a,selected:t,children:X(Ty,{})})}var Py=ht(Va1);function Ba1(r){let{baseLayer:t,map:e}=Gt(),{setLineNetworkPlanLayer:a}=cr(),n=St(()=>t?new k4({isQueryable:!0,layersFilter:({metadata:i})=>i?.["rvf.filter"]==="netzplan_lines",maplibreLayer:t,minZoom:10,name:q4.liniennetz,...r||{}}):null,[t,r]);return q2(()=>{a(n)},[n,a]),q2(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var Ry=ht(Ba1);function Ca1({children:r,onClose:t,...e}){let[a,n]=st(),i=!!r;return Array.isArray(r)&&(i=r?.length&&(r||[]).find(h=>!!h)),q2(()=>(a?.addEventListener("close",t),()=>{a?.removeEventListener("close",t)}),[a,t]),i?X("dialog",{className:"absolute inset-0 z-50 flex size-full items-center justify-center bg-transparent",ref:h=>{n(h),h?.focus()},...e,children:[X("button",{className:"absolute inset-0 z-0 size-full bg-black/60",onClick:t}),X("div",{className:"z-10 h-3/4 w-1/2 bg-white",children:r})]}):null}var Dy=ht(Ca1);function ba1({...r}){return X("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("g",{children:X("path",{d:"M5.29289322,5.29289322 C5.68341751,4.90236893 6.31658249,4.90236893 6.70710678,5.29289322 L12,10.585 L17.2928932,5.29289322 C17.6533772,4.93240926 18.2206082,4.90467972 18.6128994,5.20970461 L18.7071068,5.29289322 C19.0976311,5.68341751 19.0976311,6.31658249 18.7071068,6.70710678 L13.415,12 L18.7071068,17.2928932 C19.0675907,17.6533772 19.0953203,18.2206082 18.7902954,18.6128994 L18.7071068,18.7071068 C18.3165825,19.0976311 17.6834175,19.0976311 17.2928932,18.7071068 L12,13.415 L6.70710678,18.7071068 C6.34662282,19.0675907 5.77939176,19.0953203 5.38710056,18.7902954 L5.29289322,18.7071068 C4.90236893,18.3165825 4.90236893,17.6834175 5.29289322,17.2928932 L10.585,12 L5.29289322,6.70710678 C4.93240926,6.34662282 4.90467972,5.77939176 5.20970461,5.38710056 Z",fill:"currentColor"})})})}var ky=ba1;function La1({children:r,className:t,onClose:e,title:a,...n}){return X("div",{className:W3("flex flex-row items-center justify-between gap-2 p-2 border-b pl-4"+(t||"")),...n,children:[r||X("span",{className:"font-bold",children:a}),e&&X(Bi,{className:"!size-[32px] border-none",onClick:e,children:X(ky,{})})]})}var Jc=ht(La1);function Sa1(r){let{baseLayer:t,map:e}=Gt(),{setPoisLayer:a}=cr(),n=St(()=>t?new k4({layersFilter:({metadata:i})=>i?.["mapset.filter"]==="mapset_poi",maplibreLayer:t,name:q4.pois,visible:!1,...r||{}}):null,[t,r]);return q2(()=>{a(n)},[n,a]),q2(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var Uy=ht(Sa1);function Fa1(){let{baseLayer:r,map:t}=Gt(),{selectedFeature:e}=cr(),a=St(()=>new Ou({source:new m7,style:new o5({image:new l3({fill:null,radius:15,stroke:new h3({color:"red",width:3})})})}),[]);return q2(()=>{let n=e?.get("vectorTileFeature");if(e?.set("selected",!0),e){let i=e.clone();i.setStyle(null),a.getSource().addFeature(i),n&&r?.mapLibreMap.setFeatureState(n,{hover:!0})}return()=>{a?.getSource().clear(),e?.set("selected",!1),n&&r?.mapLibreMap?.setFeatureState(n,{hover:!1})}},[r?.mapLibreMap,a,e]),q2(()=>(a?.setMap(t),()=>{a?.setMap(null)}),[a,t]),null}var Ny=Fa1;var Lk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64767456" viewBox="0 0 25.64767838 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_automat">%0A <g>%0A <path d="M12.82391739,25.14781189C6.02850723,25.14781189.50018692,19.6190033.50018692,12.82359314S6.02850723.49986267,12.82391739.49986267s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32421875-12.32373047,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29370117,11.82383728,11.82383728,0,6.53012085-5.29371643,11.82383728-11.82383728,11.82383728-6.53012848,0-11.82384109-5.29371643-11.82384109-11.82383728C1,6.29370117,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75274658,0,12.82383728s5.7527504,12.82383728,12.82384109,12.82383728,12.82383728-5.75274658,12.82383728-12.82383728S19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g>%0A <path d="M13.78932179,15.52073714h2.22363281c.41259766,0,.74804688-.33544922.74804688-.74804688s-.33544922-.74804688-.74804688-.74804688h-2.22363281c-.41259766,0-.74804688.33544922-.74804688.74804688s.33544922.74804688.74804688.74804688Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M17.35963429,4.94749496h-9.07177734c-1.12695312,0-2.04394531.91699219-2.04394531,2.04443359v11.6640625c0,1.12695312.91699219,2.04394531,2.04394531,2.04394531h9.07177734c1.12744141,0,2.04443359-.91699219,2.04443359-2.07568359V6.99192855c0-1.12744141-.91699219-2.04443359-2.04443359-2.04443359ZM7.74000539,18.07640121h10.16796875v.57958984c0,.30224609-.24609375.54785156-.54833984.54785156h-9.07177734c-.30224609,0-.54785156-.24560547-.54785156-.57958984v-.54785156ZM17.35963429,6.44407699c.30224609,0,.54833984.24560547.54833984.54785156v1.77832031H7.74000539v-1.77832031c0-.30224609.24560547-.54785156.54785156-.54785156h9.07177734ZM17.90797414,10.26634261v6.31347656H7.74000539v-6.31347656h10.16796875Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function Ia1({...r}){return X("img",{alt:"Automat",src:Lk,title:"Automat",...r})}var Qy=Ia1;var Sk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64767456" viewBox="0 0 25.64767456 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_persoenlich">%0A <g>%0A <path d="M12.82395935,25.14781189C6.02854919,25.14781189.50022888,19.6190033.50022888,12.82359314S6.02854919.49986267,12.82395935.49986267s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32421875-12.32373047,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82382965,1c6.53012848,0,11.82384491,5.29370117,11.82384491,11.82383728,0,6.53012085-5.29371643,11.82383728-11.82384491,11.82383728-6.53012085,0-11.82382965-5.29371643-11.82382965-11.82383728C1,6.29370117,6.2937088,1,12.82382965,1M12.82382965,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82383728,12.82382965,12.82383728,12.82384491-5.75274658,12.82384491-12.82383728S19.89491272,0,12.82382965,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="info_info-videoterminal-2px" data-name="info/info-videoterminal-2px">%0A <g id="Group-9">%0A <path id="Fill-3" d="M9.22383182,20.93333634h-1.44v-6.27271884c0-1.54295975,1.21248001-2.80224014,2.73600014-2.87712021l.14399986-.00287979h4.32c1.54224014,0,2.80152054,1.21248001,2.8764006,2.73599945l.0035994.14400055v6.27271884h-1.44v-6.27271884c0-.75960022-.58751999-1.38168045-1.33271988-1.4364006l-.10728012-.0035994h-4.32c-.75887993,0-1.38096016.58680038-1.43639992,1.33200027l-.00360008.10799973v.50184036" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M12.82383182,7.21747324c.70415977,0,1.27511993.57095982,1.27511993,1.27512028,0,.70488007-.57096016,1.27583954-1.27511993,1.27583954s-1.27511993-.57095947-1.27511993-1.27583954c0-.70416046.57096016-1.27512028,1.27511993-1.27512028M12.82383182,11.20843305c1.49976013,0,2.71511993-1.21608009,2.71511993-2.71583954,0-1.49904018-1.2153598-2.71512028-2.71511993-2.71512028s-2.71511993,1.21608009-2.71511993,2.71512028c0,1.49975945,1.2153598,2.71583954,2.71511993,2.71583954" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A </g>%0A</svg>';function Ta1({...r}){return X("img",{alt:"InPerson",src:Sk,title:"Pers\xF6nlich",...r})}var Gy=Ta1;var Fk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64767456" viewBox="0 0 25.64767456 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_video">%0A <g>%0A <path d="M12.82368469,25.14781189C6.02827454,25.14781189.49995422,19.6190033.49995422,12.82359314S6.02827454.49986267,12.82368469.49986267s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32421875-12.32421875,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29370117,11.82383728,11.82383728,0,6.53012085-5.2937088,11.82383728-11.82383728,11.82383728-6.53012085,0-11.82383728-5.29371643-11.82383728-11.82383728C1,6.29370117,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82383728,12.82383728,12.82383728,12.82383728-5.75274658,12.82383728-12.82383728S19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="info_info-videoterminal-2px" data-name="info/info-videoterminal-2px">%0A <g id="Group-9">%0A <path id="Fill-1" d="M12.2882218,5.73500377c0-.39743999.32255997-.72.72-.72s.72.32256001.72.72c0,.39744003-.32255997.72-.72.72s-.72-.32255997-.72-.72" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-3" d="M20.2082218,17.21446833c0,.79559967-.64440033,1.44-1.44,1.44h-.72v-.50184036l-.0035994-.14400055c-.07488007-1.52351944-1.33416046-2.73599945-2.8764006-2.73599945h-4.32l-.14399986.00287979c-1.52352013.07488007-2.73600014,1.33416046-2.73600014,2.87712021v.50184036h-.72c-.79560001,0-1.44-.64440033-1.44-1.44v-7.20000069c0-.79560001.64439999-1.44,1.44-1.44h11.52c.79559967,0,1.44.64439999,1.44,1.44v7.20000069ZM16.6082218,18.65446833h-7.2v-.50184036l.00360008-.10799973c.05543976-.74519989.67751999-1.33200027,1.43639992-1.33200027h4.32l.10728012.0035994c.74519989.05472015,1.33271988.67680038,1.33271988,1.4364006v.50184036ZM18.7682218,7.13446782H7.2482218c-1.59047999,0-2.88,1.28952009-2.88,2.87999983v7.20000069c0,1.59047974,1.28952001,2.88,2.88,2.88h11.52c1.59047974,0,2.88-1.28952026,2.88-2.88v-7.20000069c0-1.59047974-1.28952026-2.87999983-2.88-2.87999983h0Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-5" d="M13.7282218,5.73500377c0-.39743999-.32255997-.72-.72-.72s-.72.32256001-.72.72c0,.39744003.32255997.72.72.72s.72-.32255997.72-.72" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M13.0082218,10.70948371c.70415977,0,1.27511993.57095982,1.27511993,1.27512028,0,.70488007-.57096016,1.27583954-1.27511993,1.27583954s-1.27511993-.57095947-1.27511993-1.27583954c0-.70416046.57096016-1.27512028,1.27511993-1.27512028M13.0082218,14.70044352c1.49976013,0,2.71511993-1.21608009,2.71511993-2.71583954,0-1.49904018-1.2153598-2.71512028-2.71511993-2.71512028s-2.71511993,1.21608009-2.71511993,2.71512028c0,1.49975945,1.2153598,2.71583954,2.71511993,2.71583954" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A </g>%0A</svg>';function Ra1({...r}){return X("img",{alt:"Video",src:Fk,title:"Video",...r})}var jy=Ra1;function Da1(r){let{title:t}=r,{baseLayer:e,map:a}=Gt(),{setSellingPointsLayer:n}=cr(),i=St(()=>e?new k4({isQueryable:!0,layersFilter:({metadata:h})=>h?.["general.filter"]==="selling_points",maplibreLayer:e,name:q4.verkaufsstellen,...r||{},title:X("div",{className:"flex items-center justify-between gap-2",children:[t,X("span",{className:"flex items-center",children:[X(Qy,{}),X(Gy,{}),X(jy,{})]})]})}):null,[e,r,t]);return q2(()=>{n(i)},[i,n]),q2(()=>{if(!(!a||!i))return a.addLayer(i),()=>{a.removeLayer(i)}},[a,i]),null}var qy=ht(Da1);var Ze=U0(kk());var Uk='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><defs><clipPath id="a"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="b"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="c"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="d"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="e"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="f"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="g"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="h"><path d="M192 192H0V0h192v192z"/></clipPath><clipPath id="i"><path d="M36 12v24.125H15.875v152.25h160.25V36.125H156V12h-44v24.125H80V12z" fill="red" stroke-width="23.686"/></clipPath></defs><g fill="red" stroke="%23000" stroke-linecap="round"><path d="M118 91.8v48.4M74 91.8v48.4" stroke-width="7.92"/><path d="M74 91.8l44 48.4" stroke-width="8.307"/></g><path d="M96 8.7L70.5 70.888l2.414 2.413L96 63.1l23.086 10.2 2.414-2.413z"/></svg>';var Nk='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><defs><clipPath id="a"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="b"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="c"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="d"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="e"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="f"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="g"><path d="M0 192h192V0H0v192z"/></clipPath><clipPath id="h"><path d="M192 192H0V0h192v192z"/></clipPath><clipPath id="i"><path d="M36 12v24.125H15.875v152.25h160.25V36.125H156V12h-44v24.125H80V12z" fill="red" stroke-width="23.686"/></clipPath></defs><g fill="none"><circle cx="95.749" cy="96" r="76" clip-path="url(%23i)" stroke="%23000" stroke-width="6"/><path d="M81 8.125h30v27.751H81z"/><path d="M8.082 96h19.335M166.207 96h19.336M95.75 184.167v-19.335" stroke="%23000" stroke-width="6.04" stroke-linecap="round"/></g><g fill="red" stroke="%23000" stroke-linecap="round"><path d="M118 91.8v48.4M74 91.8v48.4" stroke-width="7.92"/><path d="M74 91.8l44 48.4" stroke-width="8.307"/></g><path d="M96 8.7L70.5 70.888l2.414 2.413L96 63.1l23.086 10.2 2.414-2.413z"/></svg>';var Ky=Ze.default.shape({circled:Ze.default.bool,height:Ze.default.number,rotation:Ze.default.oneOfType([Ze.default.number,Ze.default.func]),src:Ze.default.string,width:Ze.default.number}),Ga1=typeof CanvasPattern>"u"?Function:CanvasPattern,ja1={autoDownload:Ze.default.bool,children:Ze.default.node,coordinates:Ze.default.arrayOf(Ze.default.arrayOf(Ze.default.number)),extent:Ze.default.arrayOf(Ze.default.number),extraData:Ze.default.shape({copyright:Ze.default.shape({background:Ze.default.bool,fillStyle:Ze.default.oneOfType([Ze.default.string,Ze.default.instanceOf(Ga1)]),font:Ze.default.string,maxWidth:Ze.default.number,paddingBackground:Ze.default.number,paddingBottom:Ze.default.number,text:Ze.default.oneOfType([Ze.default.string,Ze.default.func])}),logo:Ky,northArrow:Ky,qrCode:Ky}),format:Ze.default.oneOf(["image/jpeg","image/png"]),getDownloadImageName:Ze.default.func,map:Ze.default.instanceOf(Q8),margin:Ze.default.number,onSaveEnd:Ze.default.func,onSaveStart:Ze.default.func,padding:Ze.default.number,scale:Ze.default.number},qa1=r=>r.width/100,Ka1=r=>{let t=r==="image/jpeg"?"jpg":"png";return`${window.document.title.replace(/ /g,"_").toLowerCase()}.${t}`},wp=!1,Hp=0,Wa1=(r,t,e,a)=>{let i,h;do i=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),h=parseInt(i[0].replace(i[1],""),10),r.font=r.font.replace(h,h-1),wp=!1,h-1===8&&(wp=!0);while(h-1>8&&r.measureText(e).width*a>t);return r.font},Za1=(r,t,e,a,n,i={})=>{r.save(),r.fillStyle="rgba(255,255,255,.8)",typeof i=="object"&&Object.entries(i).forEach(([h,d])=>{r[h]=d}),r.fillRect(t,e,a,n),r.restore()},Xa1=(r,t,e,a,n,i,h)=>{let{background:d,fillStyle:g,font:m,text:z}=a.copyright,{paddingBackground:w=2,paddingBottom:b=h}=a.copyright,_=typeof z=="function"?z():z?.trim();Array.isArray(_)&&(_=_.join()),r.save(),r.scale(n,n),r.font=m||"12px Arial",r.font=Wa1(r,e,_,n),r.textBaseline="bottom",r.scale(n,n),r.fillStyle=g||"black";let P=_,R=r.measureText(P);if(wp){let d1=_.split(" ").length;for(let z1=0;z1<d1&&!(R.width*n<e);z1+=1)P=P.substring(0,P.lastIndexOf(" ")),R=r.measureText(P)}let U=_.replace(P,"").trim(),k=[P,U].filter(d1=>!!d1).reverse(),q=i,Y=t.height-b;k.forEach(d1=>{let{fontBoundingBoxAscent:z1,fontBoundingBoxDescent:M1,width:m1}=r.measureText(d1),A1=z1+M1,_1=Y-A1;if(d){let N1=i;_1-=w*2,Za1(r,N1,_1,m1+w*2,A1+w*2,d),q+=w,Y-=w}r.fillText(d1,q,Y),Y=_1}),Hp=Y,r.restore()},Wy=(r,t,e,a,n,i=[0,0],h="right")=>{let d=t.getContext("2d"),{height:g,rotation:m,src:z,width:w}=r;return new Promise(b=>{let _=new Image;_.crossOrigin="Anonymous",_.src=z,_.onload=()=>{d.save();let P=(w||80)*e,R=(g||80)*e,U=h==="left"?a+P/2:t.width-a-P/2,k=(h==="left"&&Hp?Hp-n:t.height)-a-R/2-i[1];if(d.translate(U,k),m){let q=typeof m=="function"?m():m;d.rotate(q*(Math.PI/180))}d.drawImage(_,-P/2,-R/2,P,R),d.restore(),b([P+2*n,R+2*n])},_.onerror=()=>{b()}})},$a1=(r,t,e)=>{let a,n;if(t?(a=V8(t),n=_8(t)):e&&([a,,n]=e),a&&n){let i=r.getPixelFromCoordinate(a),h=r.getPixelFromCoordinate(n),d=[i[0]<=h[0]?i[0]:h[0],i[1]<=h[1]?i[1]:h[1]],g=[i[0]>h[0]?i[0]:h[0],i[1]>h[1]?i[1]:h[1]];return{h:g[1]-d[1],w:g[0]-d[0],x:d[0],y:d[1]}}return null},Ya1=(r,t,e,a,n,i,h)=>new Promise(d=>{r.once("rendercomplete",()=>{let g=r.getTargetElement().getElementsByTagName("canvas"),m,z;for(let b=0;b<g.length;b+=1){let _=g[b];if(!_.width||!_.height)continue;let P=$a1(r,a,n)||{h:_.height,w:_.width,x:0,y:0};m||(m=document.createElement("canvas"),m.width=P.w,m.height=P.h,z=m.getContext("2d")),z.drawImage(_,P.x,P.y,P.w,P.h,0,0,m.width,m.height)}i=i||qa1(m);let w=Promise.resolve();z&&t&&t.logo&&(w=Wy(t.logo,m,e,i,h)),w.then((b=[0,0])=>{let _=Promise.resolve();z&&t&&t.northArrow&&(_=Wy({src:t.northArrow.circled?Nk:Uk,...t.northArrow},m,e,i,h,b)),_.then((P=[0,0])=>{let R=Math.max(b[0],P[0]);if(z&&t&&t.copyright&&t.copyright.text){let k=t.copyright.maxWidth||(R?z.canvas.width-R-i:z.canvas.width);Xa1(z,m,k,t,e,i,h)}let U=Promise.resolve();z&&t&&t.qrCode&&(U=Wy(t.qrCode,m,e,i,h,void 0,"left")),U.then(()=>d(m))})})}),r.renderSync()}),Ja1=(r,t,e)=>new Promise(n=>{if(/msie (9|10)/gi.test(window.navigator.userAgent.toLowerCase())){let i=r.toDataURL(t);window.open("about:blank","").document.write(`<img src="${i}" alt="from canvas"/>`),n(i)}if(window.navigator.msSaveBlob){let i;try{i=r.msToBlob()}catch(d){console.log(d)}let h=new Blob([i],{type:t});n(h),window.navigator.msSaveBlob(h,e(t))}else r.toBlob(i=>{let h=document.createElement("a");h.download=e(t),h.href=URL.createObjectURL(i),document.body.appendChild(h),h.click(),n(i)},t)});function Qk({autoDownload:r=!0,children:t=null,coordinates:e=null,extent:a=null,extraData:n=null,format:i="image/png",getDownloadImageName:h=Ka1,map:d=null,margin:g=null,onSaveEnd:m=()=>{},onSaveStart:z=_=>Promise.resolve(_),padding:w=5,scale:b=1}){let _=f4(P=>{window.navigator.msSaveBlob&&(P.preventDefault(),P.stopPropagation()),wp=!1,Hp=0,z(d).then(R=>Ya1(R||d,n,b,a,e,g,w).then(U=>{r?Ja1(U,i,h).then(k=>{m(R,U,k)}):m(R,U)}).catch(U=>{U&&console.error(U),m(R,U)}))},[r,e,a,n,i,d,g,m,z,w,b,h]);return r5.createElement(r5.Fragment,null,r5.Children.map(t,P=>r5.cloneElement(P,{onClick:_})))}Qk.propTypes=ja1;var Zy=Qk;function ti1(r){return X("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M20,3 C21.6522847,3 23,4.34771525 23,6 L23,18 C23,19.6522847 21.6522847,21 20,21 L4,21 C2.34771525,21 1,19.6522847 1,18 L1,6 C1,4.34771525 2.34771525,3 4,3 L20,3 Z M20.9999141,7.92 L12.5734623,13.8192319 C12.2291422,14.060256 11.7708578,14.060256 11.4265377,13.8192319 L2.99991414,7.921 L3,18 C3,18.5477153 3.45228475,19 4,19 L20,19 C20.5477153,19 21,18.5477153 21,18 L20.9999141,7.92 Z M20,5 L4,5 C3.61200142,5 3.27189207,5.22696691 3.10652962,5.55404305 L12,11.7793444 L20.8934704,5.55404305 C20.7281079,5.22696691 20.3879986,5 20,5 Z"})})}var Xy=ti1;function ei1({...r}){return X("svg",{fill:"none",height:"24px",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var $y=ei1;function ri1({...r}){return X("svg",{className:"size-6",fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75",strokeLinecap:"round",strokeLinejoin:"round"})})}var Yy=ri1;function ai1(r){let[t,e]=st(),[a,n]=st(!1),i=t5(null),h=g=>{e(g.currentTarget.getBoundingClientRect()),navigator.clipboard.writeText(window?.location.href).then(()=>{n(!0),setTimeout(()=>{n(!1)},1e3)}),i.current.select()};return X("div",{className:"flex items-center text-grey",children:[X("input",{className:"h-7 w-full rounded-sm rounded-r-none border border-r-0 border-current p-1 leading-4 outline-none",onFocus:()=>{i.current.select()},readOnly:!0,ref:i,type:"text",...r}),X(Bi,{className:"!size-7 rounded-l-none rounded-r-sm border-current",onClick:h,children:X(Yy,{})}),X("div",{className:`fixed rounded-md bg-grey p-1 text-sm text-white ${a?"block":"hidden"}`,style:{left:t?.left-30,top:t?.top-40},children:"Link kopiert!"})]})}var Jy=ai1;function ii1({...r}){return X("div",{...r,children:[X(Jy,{value:window?.location.href}),X("p",{className:"py-2",children:"Sie k\xF6nnen auch den Link aus der Adresszeile des Browsers kopieren."})]})}var t_=ii1;function ni1({className:r,...t}){let{map:e}=Gt();return X("div",{className:W3("flex flex-col gap-6 "+r),...t,children:[X("a",{className:"flex items-center gap-2",href:`mailto:?subject=Karte&body=${window?.location.href}`,children:X(vl,{children:[X(Xy,{}),X("span",{children:"Email senden"})]})}),X(Zy,{map:e,children:X(vl,{className:"w-fit",children:[X($y,{}),X("span",{children:"Bild speichern"})]})}),X(t_,{})]})}var e_=ni1;var Gk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64768219" viewBox="0 0 25.64767456 25.64768219">%0A <g id="rvf_base">%0A <g id="rvf_shared_bike">%0A <g>%0A <path d="M12.82368469,25.14785767C6.02827454,25.14785767.49995422,19.61904907.49995422,12.82363892S6.02827454.49990845,12.82368469.49990845s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32421875-12.32421875,12.32421875Z" style="fill: %2300973b;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29371262,11.82383728,11.82384109,0,6.53011703-5.2937088,11.82384109-11.82383728,11.82384109-6.53012085,0-11.82383728-5.29372406-11.82383728-11.82384109C1,6.29371262,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.7527504,0,12.82384109c0,7.07108688,5.75274658,12.82384109,12.82383728,12.82384109s12.82383728-5.75275421,12.82383728-12.82384109C25.64767456,5.7527504,19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="verkehrstraeger_verkehrstraeger-rad-2px" data-name="verkehrstraeger/verkehrstraeger-rad-2px">%0A <path id="Fill-1" d="M9.25954019,11.68411861h1.42560034c.39346563,0,.7128-.31933437.7128-.7128s-.31933437-.71280017-.7128-.71280017h-1.42560034c-.01354324,0-.02494789.00712816-.03777838.00784091-.37493282.02067123-.67502162.32503686-.67502162.70495926,0,.39346563.31933437.7128.7128.7128" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M17.81325035,18.40129001c-.48076172,0-.95668945-.11733398-1.41547852-.34936523-.37792969-.19160156-.70883789-.45395508-.98349609-.77958984-.49350586-.5840332-.75454102-1.28408203-.75454102-2.02456055,0-.88989258.36870117-1.71518555,1.03886719-2.32426758l-.5550293-1.04501953-3.77006836,2.11464844-.50756836.29267578c.07514648.39506836.12172852.68071289.12172852.96196289,0,1.73891602-1.41459961,3.15351563-3.15351563,3.15351563-.11953125,0-.23422852-.01625977-.34848633-.03251953-1.62817383-.2175293-2.8050293-1.55522461-2.8050293-3.12099609,0-.41660156.08129883-.82397461.24169922-1.20981445.49174805-1.18081055,1.63476562-1.94370117,2.91181641-1.94370117.48032227,0,.95712891.11777344,1.41591797.35068359.34672852.1762207.65039062.40605469.90263672.6824707l.56162109-.27597656,3.69667969-2.13398438-.82353516-1.53413086c-.04042969-.07119141-.05844727-.15029297-.06987305-.21137695l-.01582031-.09667969c-.03999023-.32739258.16567383-.63632812.478125-.71938477l1.37197266-.36782227c.06064453-.01669922.11821289-.02460938.1753418-.02460938.29707031,0,.55898437.20083008.63588867.48867188.05976563.22280273-.0074707.45834961-.17973633.62973633-.09404297.09404297-.18500977.15029297-.28608398.17709961l-.50317383.13491211.65302734,1.26650391,1.0125,1.75341797c.39287109-.07382813.67631836-.11953125.95361328-.11953125,1.74331055.00703125,3.15351563,1.42075195,3.15351563,3.15351563,0,.03251953-.00439453.0637207-.00922852.09448242-.10283203,1.75166016-1.47963867,3.0590332-3.14428711,3.0590332ZM16.36173667,14.13551853c-.25136719.32651367-.38452148.71103516-.38452148,1.11225586,0,.51943359.22719727,1.01865234.62314453,1.36977539.33969727.30058594.77036133.46625977,1.21289062.46625977.20566406,0,.41835938-.03955078.63149414-.11821289l.5203125-.29970703c.43769531-.35771484.68422852-.87319336.68422852-1.41811523,0-.59545898-.29355469-1.15708008-.78530273-1.50292969-.31245117-.21796875-.67587891-.33310547-1.05073242-.33310547-.03691406,0-.07250977.00483398-.10854492.00966797l-.07954102.01098633-.01801758.07646484.7668457,1.32890625c.12612305.21796875.11381836.48603516-.03164063.69916992-.06108398.08964844-.12963867.15512695-.20917969.20039063-.08085938.04746094-.17226563.07382813-.27905273.08085937h-.00703125c-.28740234,0-.49790039-.12041016-.61435547-.32167969l-.82177734-1.42470703-.04921875.0637207ZM7.83414878,13.41173923c-1.0125,0-1.83603516.82353516-1.83603516,1.83603516s.82353516,1.83603516,1.83603516,1.83603516,1.83603516-.82353516,1.83603516-1.83603516c0-.03911133-.00527344-.07734375-.01054687-.11557617l-.01054687-.07954102-.0769043-.01977539-1.50380859.86879883c-.10063477.05756836-.21445312.08833008-.32915039.08833008-.23510742,0-.45351563-.12612305-.57128906-.32958984-.18149414-.31420898-.07338867-.71850586.24169922-.90087891l1.52358398-.8793457c-.31948242-.3375-.70136719-.46845703-1.09907227-.46845703Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function ci1({...r}){return X("img",{alt:"Bicycle",src:Gk,...r})}var yp=ci1;var jk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64768982" viewBox="0 0 25.64767838 25.64768982">%0A <g id="rvf_base">%0A <g id="rvf_shared_car">%0A <g>%0A <path d="M12.82391739,25.14767456C6.02850723,25.14767456.50018692,19.61935425.50018692,12.82394409S6.02850723.50021362,12.82391739.50021362s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32373047-12.32373047,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29371643,11.82383728,11.82383728,0,6.53013611-5.29371643,11.82385254-11.82383728,11.82385254-6.53012848,0-11.82384109-5.29371643-11.82384109-11.82385254C1,6.29371643,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75274658,0,12.82383728s5.7527504,12.82385254,12.82384109,12.82385254,12.82383728-5.75276184,12.82383728-12.82385254S19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="verkehrstraeger_verkehrstraeger-auto-2px" data-name="verkehrstraeger/verkehrstraeger-auto-2px">%0A <path id="Fill-1" d="M16.71183851,14.25236615c.35769603,0,.648.29030397.648.648s-.29030397.648-.648.648-.648-.29030397-.648-.648.29030397-.648.648-.648" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M8.93583851,14.25236615c-.35769603,0-.648.29030397-.648.648s.29030397.648.648.648.648-.29030397.648-.648-.29030397-.648-.648-.648" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-11" d="M18.00783851,13.60436615v3.24c0,.35769603-.29030397.648-.648.648h-1.26943176v-.65059181c0-.35316005-.28382444-.6382804-.63504032-.64540819h-.03952792v-.00259181h-5.15289609c-.35769603,0-.648.29030397-.648.648v.65059181h-1.32710391c-.35769603,0-.648-.29030397-.648-.648v-3.24l.28187996-.648.27021604-.6194879.743904.37195192.221616.110808.1095121.04859988c.14968797.0583201.30909584.0881281.46979994.0881281h6.17414392l.12052792-.00583189c.15940757-.01490416.31492866-.05896805.45878474-.13089609l.22161539-.110808.75751241-.37843207.26438338.62596805.27410422.648ZM8.93583851,10.62745424l.50932785-1.16964004c.10303226-.23652001.33631203-.38944805.59421619-.38944805h5.62140012c.26049566,0,.49507196.15552001.59680769.39592804l.45424814,1.074384.25142432.5955121-.25142432.12571185-.80092804.40046402h-6.17414392l-.80092804-.40046402-.22615199-.11275186.22615199-.51969603ZM19.30383851,11.01236615h-.9849603l-.27345534-.648-.59421588-1.40486399c-.30391191-.719928-1.00958437-1.18713601-1.79042432-1.18713601h-5.62140012c-.77371216,0-1.47355211.458784-1.782,1.16769603l-.62013601,1.42430397-.28252807.648h-1.01087996c-.35769599,0-.648.29030397-.648.648s.29030401.648.648.648h.44647201l-.28188004.648-.05702396.13089578c-.07063198.16264826-.10756801.33890446-.10756801.51710422v3.24c0,1.07373573.87026396,1.944,1.944,1.944h1.32710391l.09655211-.00323946c.6706799-.04989702,1.1994482-.60976799,1.19879994-1.29600062h3.88346402c.00064826.71927978.58060794,1.29924007,1.29664826,1.29924007h1.26943176c1.07373573,0,1.944-.87026427,1.944-1.944v-3.24c0-.17366377-.03499255-.34473573-.10238461-.50479218l-.06026303-.14320782-.27410422-.648h.43675186c.35769603,0,.648-.29030397.648-.648s-.29030397-.648-.648-.648h0Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function li1({...r}){return X("img",{alt:"Car",src:jk,...r})}var E9=li1;var qk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="28.01245499" height="28.01245499" viewBox="0 0 28.01245499 28.01245499">%0A <g id="rvf_base">%0A <g id="rvf_shared_cargo_bike">%0A <g>%0A <path d="M14.0060463,27.51237106C6.55878067,27.51237106.50018692,21.45328903.50018692,14.00602341S6.55878067.50016403,14.0060463.50016403s13.50634766,6.05859375,13.50634766,13.50585938-6.05908203,13.50634766-13.50634766,13.50634766Z" style="fill: %2300973b;"/>%0A <path d="M14.00622177,1c7.18314362,0,13.00623322,5.82308197,13.00623322,13.00622177,0,7.18314362-5.8230896,13.00623322-13.00623322,13.00623322-7.1831398,0-13.00622177-5.8230896-13.00622177-13.00623322C1,6.82308197,6.82308197,1,14.00622177,1M14.00622177,0C6.28316116,0,0,6.28316116,0,14.00622177s6.28316116,14.00623322,14.00622177,14.00623322,14.00623322-6.28317261,14.00623322-14.00623322S21.72928238,0,14.00622177,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="Group-9">%0A <path id="Fill-1" d="M6.784509,13.90291161h1.4256c.35354867,0,.6343919-.26231042.68999035-.60017761.00641507-.03777838.02280965-.07270543.02280965-.11262239,0-.22880887-.11476098-.42269035-.28226873-.55313265-.11333548-.08838725-.24876718-.14754961-.40273204-.15396486-.00926641-.00071275-.01782007-.00570233-.02779922-.00570233h-1.4256c-.39346572,0-.71280008.3193342-.71280008.71279983,0,.04561929.01781998.08482317.02566081.12830422.06272636.33002627.33929277.58449578.68713928.58449578" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M18.90206812,20.62062811c-.64204102,0-1.24848633-.24873047-1.70771484-.70048828-.26015625-.25532227-.4574707-.57041016-.58623047-.93603516-.09887695-.28168945-.14677734-.54492188-.14677734-.80419922,0-.24741211.04526367-.50141602.13798828-.77695313.29707031-.87890625,1.05161133-1.50380859,1.96962891-1.63037109.14238281-.02021484.23554687-.03339844.33310547-.03339844.53833008,0,1.0546875.18061523,1.49282227.52294922.60249023.46889648.94790039,1.16806641.94790039,1.91777344,0,.20170898-.03164062.41044922-.10019531.65610352-.29487305,1.05073242-1.25727539,1.78461914-2.34052734,1.78461914ZM18.90206812,17.05666327c-.61918945,0-1.12324219.50405273-1.12324219,1.12324219s.50405273,1.12324219,1.12324219,1.12324219,1.12324219-.50405273,1.12324219-1.12324219-.50405273-1.12324219-1.12324219-1.12324219Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M8.31652125,20.68303045c-.21401367,0-.43681641-.02416992-.66225586-.07250977-1.44360352-.30893555-2.49125977-1.60488281-2.49125977-3.08144531,0-.89033203.37001953-1.71694336,1.04238281-2.3277832.24609375-.22368164.51767578-.40429688.80771484-.53657227.36694336-.16743164.76420898-.26015625,1.18081055-.27597656l.12260742-.01318359c.44208984,0,.8784668.09624023,1.29682617.28564453.62270508.28168945,1.1465332.77739258,1.47612305,1.39614258l.56645508-.10810547-.68686523-2.77338867-.45-1.67827148-.18457031-.00615234-.58007812.15556641c-.05581055.01494141-.11337891.02285156-.17094727.02285156-.29750977,0-.55898438-.20083008-.63588867-.48867188-.09404297-.35068359.11469727-.71279297.46582031-.80683594l1.37680664-.36914062c.05537109-.01494141.1125-.02241211.17006836-.02241211.03164063,0,.06240234.00219727.09316406.0065918.21269531.02680664.39946289.16611328.4996582.3730957l.05493164.10854492.15864258.59458008,1.04414063.03999023h7.87324219l.10854492.02329102c.31904297.05493164.55019531.32211914.55019531.63544922l-.02241211.11557617c.00483398.06416016.00703125.13974609-.01274414.21577148l-.65522461,2.44379883c-.04174805.15512695-.14326172.29047852-.28564453.38144531-.12832031.07426758-.18061523.1059082-.24169922.12260742l-6.75087891,1.80922852.26323242,1.19223633c.09404297.35068359-.11469727.71235352-.46582031.80639648-.05625.01538086-.11381836.02285156-.17138672.02285156-.29707031,0-.55854492-.20083008-.63544922-.48867188l-.30146484-1.12543945-.56557617.09492188-.04614258.01230469.01274414.10283203c.00571289,1.22124023-.64204102,2.2855957-1.68442383,2.83666992-.47285156.24960937-.96503906.37617188-1.46337891.37617188ZM8.31652125,15.69304022c-.77080078,0-1.46293945.49130859-1.7230957,1.22299805-.07470703.20830078-.11293945.4144043-.11293945.61303711,0,.53085937.23686523,1.03754883.64951172,1.39042969.34145508.29179687.75146484.44604492,1.18652344.44604492.41088867,0,.80419922-.13974609,1.13686523-.40473633.36474609-.29003906.60336914-.70180664.67236328-1.1597168l.01186523-.08129883-1.43964844.38583984c-.05581055.01494141-.11337891.02285156-.17094727.02285156-.29750977,0-.55898438-.20126953-.63588867-.48911133-.04570312-.16962891-.02241211-.34716797.06591797-.4996582.08789062-.15249023.22983398-.26147461.39990234-.30673828l1.43701172-.38496094-.05229492-.06459961c-.29179687-.36035156-.70224609-.59589844-1.15620117-.66357422-.10107422-.01494141-.18325195-.02680664-.26894531-.02680664ZM12.96637476,15.54186834l2.89467773-.71938477,3.58110352-.95976562.2043457-.65874023.19116211-.71279297-1.70947266-.06811523h-5.9972168l.83540039,3.11879883Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function di1({...r}){return X("img",{alt:"Cargo bike",src:qk,...r})}var _p=di1;var Kk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64768982" viewBox="0 0 25.64767456 25.64768982">%0A <g id="rvf_base">%0A <g id="rvf_shared_ride">%0A <g>%0A <path d="M12.82368469,25.14767456C6.02827454,25.14767456.49995422,19.61935425.49995422,12.82394409S6.02827454.50021362,12.82368469.50021362s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32373047-12.32421875,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29371643,11.82383728,11.82383728,0,6.53013611-5.2937088,11.82385254-11.82383728,11.82385254-6.53012085,0-11.82383728-5.29371643-11.82383728-11.82385254C1,6.29371643,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82385254,12.82383728,12.82385254,12.82383728-5.75276184,12.82383728-12.82385254S19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g>%0A <path d="M18.43790805,8.78152597l-4.85659507.00731315c-.24399321.03723057-.39025617.1954605-.53518946.35369043-.390921.29319075-.845001.44809652-1.31437214.44809652-.36698706,0-.73064996-.09839508-1.0530933-.28521277-.03590091-.02193944-.08576328-.06049968-.21474062-.16487824-.27058647-.21540545-.42017359-.33374548-.68012276-.3530256-.19280117,0-.51590935.06382384-.63424938.0924116-.92611046.23202624-1.68268886,1.08899421-1.83958912,2.08823615.00265933.47402495-.01728562.97131901-.04055473,1.54440388-.03723057.90948967-.07579081,1.85022643.00265933,2.71317789.0797798.88289641.73663345,1.52445893,1.5616895,1.52445893.06781283,0,.13562565-.00398899.20277365-.01329663l.13703842-.04587338.01786735-.00241001v4.35040888c0,.49662923.41684943,1.05774713.80644077,1.26916358.25463051.13828498.5192335.20875713.78716065.20875713.33706964,0,.64422185-.11501587.78250683-.29319075l.06116451-.12166419.1283125.09706542c.27191614.20543297.59502431.31380053.93541811.31380053.83170437,0,1.51315679-.64754601,1.58628827-1.50783814l-.00531865-8.71328336c.02127461-.20277365.15025195-.33175098.35502009-.35236076.26726232-.02592843.54383227-.03523608.82572089-.03523608.3782892,0,.7672157.01662079,1.24190549.03723057.37297055.01595596.7439466.03124709,1.1076095.03124709.27590513,0,.54782126-.00797798.81042976-.03191192.93541811-.07911496,1.42207486-.85031966,1.41941553-1.57033231-.00398899-.70738086-.50460721-1.50584365-1.59559592-1.5889476ZM17.83158161,10.72615849c-.36166841,0-.72799064-.01196697-1.14949389-.02592843-.39358033-.01396146-.78716065-.0272581-1.17409266-.0272581-.323773,0-.64222736.00930764-.95403339.03590091-.82705055.06980732-1.4207452.65951298-1.51315679,1.50584365l.00066483,8.76846439c-.07446114.26859198-.26393816.29784457-.34238829.29784457-.14626296,0-.32643233-.09972474-.35036627-.38161336-.06714799-.781842-.03457124-1.67803504-.00531865-2.48181648.02792293-.76389154.05651069-1.55304669.00664832-2.32092723-.03457124-.34837177-.2752403-.58239251-.59768364-.58239251-.34770694,0-.60965061.26925681-.63624387.65618882l.00797798,4.82069416c-.0505272.17950454-.17950454.28654243-.34438279.28654243-.19745499,0-.33241582-.11966969-.3530256-.30981154l.00398899-8.79705215-.05917002-.13629048c-.11634554-.22005927-.33308065-.35634975-.56510689-.35634975-.31047637,0-.55646408.23269107-.61230993.58172768-.03390641.47867877-.01529113.98195632.00332416,1.48523386.01928012.52056317.03723057,1.01253857-.00332416,1.48257454-.01728562.19811983-.18016937.28654243-.33441031.28654243-.09706542,0-.3257675-.04121956-.36033874-.42615708-.07113698-.82838021-.03124709-1.75515551.00731315-2.65134855.02127461-.50128305.04188439-.99458812.04321406-1.43736599.02260428-.31380053.64355702-.95270373,1.0171924-.98461565.02925259.01728562.07246665.04919754.19944949.14626296.13629048.10238407.28321828.2100868.36100358.25330085.50061822.27457546,1.03780218.41352527,1.59626075.41352527.77519368,0,1.54839287-.27856445,2.21787832-.79912762.19014185.00598348.38294302.00797798.57574419.00797798.45939866,0,.92544563-.01329663,1.46129993-.02858776.43546472-.01196697.87092944-.02393394,1.3010755-.02393394.34637728,0,.69076007.00797798,1.02849453.02925259.34238829.02193944.48732159.19014185.5066017.32643233.02260428.17219139-.13230149.31380053-.23202624.36432773-.2459877.01662079-.49795889.02193944-.75125974.02193944Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M11.67922969,8.57077434c1.35093788,0,2.45056939-1.09963152,2.45056939-2.45123423,0-1.35093788-1.09963152-2.45056939-2.45056939-2.45056939s-2.45056939,1.09963152-2.45056939,2.45056939c0,1.35160271,1.09963152,2.45123423,2.45056939,2.45123423ZM11.67922969,4.92882666c.65685365,0,1.19071345.5338598,1.19071345,1.19071345s-.5338598,1.19137828-1.19071345,1.19137828-1.19071345-.53452463-1.19071345-1.19137828.5338598-1.19071345,1.19071345-1.19071345Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function vi1({...r}){return X("img",{alt:"Ride",src:Kk,title:"Mitfahrpunkte",...r})}var r_=vi1;var Wk='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64767456" viewBox="0 0 25.64767838 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_shared_scooter">%0A <g>%0A <path d="M12.82391739,25.14752197C6.02850723,25.14752197.50018692,19.61920166.50018692,12.8237915S6.02850723.50006104,12.82391739.50006104s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32373047-12.32373047,12.32373047Z" style="fill: %2300973b;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29371643,11.82383728,11.82384491,0,6.53012085-5.29371643,11.82382965-11.82383728,11.82382965-6.53012848,0-11.82384109-5.2937088-11.82384109-11.82382965C1,6.29371643,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75275421,0,12.82384491c0,7.07108307,5.7527504,12.82382965,12.82384109,12.82382965s12.82383728-5.75274658,12.82383728-12.82382965C25.64767838,5.75275421,19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="Group-5">%0A <path d="M18.64085918,18.24216413l-.93076172-3.47475586c-.09360352-.34848633-.45087891-.55722656-.80288086-.46274414-.34892578.09360352-.55634766.45395508-.46274414.80244141l.93076172,3.47387695c.04482422.16918945.15336914.31025391.30498047.39770508.10107422.05844727.21313477.08833008.32651367.08833008.05712891,0,.11425781-.0074707.17050781-.02285156.16918945-.04482422.31025391-.15336914.39814453-.30498047.08745117-.15161133.11074219-.32827148.06547852-.49702148Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M18.1513084,8.25778913c-.07602539-.28608398-.33618164-.48603516-.63237305-.48603516-.05712891,0-.11425781.0074707-.22719727.03779297l-4.44902344,1.19179687c-.34892578.09360352-.55722656.45351563-.46362305.80244141.07558594.28300781.33530273.48076172.63105469.48076172.04526367,0,.0909668-.00439453.17138672-.01757812l1.80791016-.47241211.4855957,1.81186523.1340332.41748047-1.98413086,3.43608398-.2746582.54711914h-2.43676758c-.04350586-.17446289-.11030273-.35244141-.2034668-.54316406-.08393555-.16918945-.18764648-.33178711-.30805664-.48383789-.51943359-.65390625-1.2862793-1.02919922-2.10454102-1.02919922-1.48666992,0-2.69648438,1.20981445-2.69648438,2.69648437s1.20981445,2.69648438,2.69648438,2.69648438c1.01206055,0,1.93051758-.56777344,2.39589844-1.48227539.10458984-.20698242.17797852-.40341797.15380859-.54404297h2.69604492c.25927734,0,.59238281-.12172852.72685547-.35375977l1.81186523-3.13857422.77651367-1.37592773c.08745117-.15117187.11118164-.32783203.06591797-.49746094l-.67192383-2.50751953,1.43569336-.38452148c.16918945-.04482422.31025391-.15336914.39770508-.30498047.08789062-.15161133.11118164-.32827148.06547852-.49702148ZM6.91141582,16.64738874c0-.3234375.11381836-.63017578.32915039-.88637695.06416016-.0769043.13710938-.1472168.21533203-.20786133.24785156-.19116211.53920898-.29179687.84155273-.29179687.3019043,0,.59326172.10063477.84155273.29179687.16391602.1265625.29663086.28212891.38759766.45395508h-1.17509766c-.36123047,0-.65522461.29399414-.65522461.65522461s.29399414.65522461.65522461.65522461h1.15576172c-.0984375.17753906-.23642578.33266602-.40297852.45307617-.24038086.17182617-.51943359.26279297-.80683594.26279297-.2878418,0-.56689453-.0909668-.80639648-.26279297-.08789062-.0637207-.17006836-.14106445-.25048828-.23642578-.21533203-.25664062-.32915039-.56337891-.32915039-.88681641Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function pi1({...r}){return X("img",{alt:"Scooter",src:Wk,...r})}var a_=pi1;var t8=(r,t="rvf_shared_bike")=>[{id:r+"_circle",maxZoom:16,minzoom:14,paint:{"circle-color":"#00973b","circle-radius":4,"circle-stroke-color":"rgba(255, 255, 255, 1)","circle-stroke-width":.5},source:r,type:"circle"},{id:r+"_image_text",layout:{"icon-image":t,"icon-size":1,"symbol-z-order":"auto","text-anchor":"top","text-field":{stops:[[15,""],[16,"{provider_name}"]]},"text-font":["SourceSansPro-Bold"],"text-justify":"center","text-letter-spacing":.04,"text-line-height":1.1,"text-max-width":6,"text-optional":!0,"text-radial-offset":1.5,"text-size":12,visibility:"visible"},minzoom:16,paint:{"text-color":"rgba(6, 76, 10, 1)","text-halo-blur":.5,"text-halo-color":"rgba(255, 255, 255, 1)","text-halo-width":2},source:r,type:"symbol"},{filter:["==","is_free_float",!1],id:r+"_availability",layout:{"icon-allow-overlap":!0,"icon-anchor":"center","icon-ignore-placement":!0,"icon-image":"10-contour-big-grey","icon-offset":[20,-18],"icon-overlap":"always","icon-size":.6,"symbol-z-order":"auto","text-allow-overlap":!0,"text-field":{stops:[[15,""],[16,"{num_vehicles_available}"]]},"text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-offset":[1.2,-1],"text-overlap":"always","text-size":10,visibility:"visible"},minzoom:16,paint:{"text-color":"rgba(6, 76, 10, 1)"},source:r,type:"symbol"},{filter:["==","is_free_float",!0],id:r+"_availability_freefloat",layout:{"icon-allow-overlap":!0,"icon-anchor":"center","icon-ignore-placement":!0,"icon-image":"10-contour-big-grey","icon-offset":[-20,-18],"icon-overlap":"always","icon-size":.6,"symbol-z-order":"auto","text-allow-overlap":!0,"text-field":"1","text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-offset":[-1.2,-1],"text-overlap":"always","text-size":10,visibility:"visible"},minzoom:16,paint:{"text-color":"rgba(6, 76, 10, 1)"},source:r,type:"symbol"}],Zk=(r,t="rvf_shared_bike")=>[{id:r+"_image_text",layout:{"icon-allow-overlap":!0,"icon-ignore-placement":!0,"icon-image":t,"icon-size":1,"symbol-z-order":"auto","text-allow-overlap":!0,"text-anchor":"top","text-field":{stops:[[15,""],[16,"{provider_name}"]]},"text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-letter-spacing":.04,"text-line-height":1.1,"text-max-width":6,"text-optional":!0,"text-radial-offset":1.5,"text-size":12,visibility:"visible"},minzoom:17,paint:{"text-color":"rgba(6, 76, 10, 1)","text-halo-blur":.5,"text-halo-color":"rgba(255, 255, 255, 1)","text-halo-width":2},source:r,type:"symbol"},{filter:["has","point_count"],id:r+"_availability2",layout:{"icon-allow-overlap":!0,"icon-anchor":"center","icon-ignore-placement":!0,"icon-image":"10-contour-big-grey","icon-offset":[-20,-18],"icon-overlap":"always","icon-size":.6,"symbol-z-order":"auto","text-allow-overlap":!0,"text-field":"{point_count}","text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-offset":[-1.2,-1],"text-overlap":"always","text-size":10,visibility:"visible"},minzoom:17,paint:{"text-color":"rgba(6, 76, 10, 1)"},source:r,type:"symbol"},{filter:["!",["has","point_count"]],id:r+"_availability3",layout:{"icon-allow-overlap":!0,"icon-anchor":"center","icon-ignore-placement":!0,"icon-image":"10-contour-big-grey","icon-offset":[-20,-18],"icon-overlap":"always","icon-size":.6,"symbol-z-order":"auto","text-allow-overlap":!0,"text-field":"1","text-font":["SourceSansPro-Bold"],"text-ignore-placement":!0,"text-justify":"center","text-offset":[-1.2,-1],"text-overlap":"always","text-size":10,visibility:"visible"},minzoom:17,paint:{"text-color":"rgba(6, 76, 10, 1)"},source:r,type:"symbol"}];var i_=async(r,t,e=Ku)=>{let a="https://api.mobidata-bw.de/geoserver/MobiData-BW/"+r+"/ows?service=WFS&version=1.1.0&request=GetFeature&typename=MobiData-BW:"+r+"&outputFormat=application/json&bbox="+e.toString()+",EPSG:4326",i=await(await fetch(a,{signal:t.signal})).json();return i?.features.forEach(h=>{let d=h.properties.vehicle_id;h.properties.id=d||h.properties.station_id,h.properties.is_free_float=!!d,h.properties.provider_name=Zu[h.properties.feed_id]}),i};var n_="bikeFrelo",o_="bikeOthers",c_="cargobikeFrelo",h_="cargobikeOthers",l_="carGrf",s_="carNature",d_="carOthers",u_="scooter",Ai1=async(r,t,e)=>({features:(await i_(r,e)).features.filter(i=>t?t.includes(i.properties.feed_id):!0),type:"FeatureCollection"}),fi1=async(r,t,e,a)=>({features:(await i_("sharing_vehicles",a,e)).features.filter(h=>(t?t.includes(h.properties.feed_id):!0)&&h.properties.form_factor===r),type:"FeatureCollection"}),Vp=new Map,e8=async(r,t,e,a,n)=>{let i=r+e?.toString(),h=Vp[i]||await Ai1(r,e,n),d=await fi1(t,e,a,n);return Vp[i]||(Vp[i]=h),{features:[...h.features,...d.features],type:"FeatureCollection"}};function mi1(r){let{baseLayer:t,map:e}=Gt(),{setSharedMobilityLayerGroup:a}=cr(),[n,i]=st(),[h,d]=st(),[g,m]=st(),[z,w]=st(),[b,_]=st(),[P,R]=st(),[U,k]=st(),[q,Y]=st(),[d1,z1]=st(),[M1,m1]=st(),[A1,_1]=st(),[N1,c1]=st(),[o1,F1]=st(),[B1,W1]=st(),[G1,Z1]=st(),[S1,X1]=st(),i2=f4(()=>{let t1=new AbortController,y1=S8(e.getView().calculateExtent(),"EPSG:3857","EPSG:4326");return(async()=>{let D1=await e8("sharing_stations_bicycle",PM,[MS],y1,t1);z1(D1);let q1=await e8("sharing_stations_bicycle",PM,xS,y1,t1);m1(q1);let l2=await e8("sharing_stations_cargo_bicycle",RM,[wS],y1,t1);_1(l2);let c2=await e8("sharing_stations_cargo_bicycle",RM,HS,y1,t1);c1(c2);let u2=await e8("sharing_stations_car",Xu,[fS],y1,t1);F1(u2);let _2=await e8("sharing_stations_car",Xu,[mS],y1,t1);W1(_2);let B2=await e8("sharing_stations_car",Xu,zS,y1,t1);Z1(B2);let K2=await e8("sharing_stations_scooters_standing",AS,null,y1,t1);X1(K2)})(),()=>{t1.abort()}},[e]);q2(()=>{let t1=e?.on("moveend",i2),y1=e?.once("rendercomplete",i2);return()=>{B0(t1),B0(y1)}},[e,i2]),q2(()=>{let t1=n?.maplibreLayer?.mapLibreMap;if(!t1||!d1)return;t1.getSource(n_)?.setData(d1)},[d1,n?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=h?.maplibreLayer?.mapLibreMap;if(!t1||!M1)return;t1.getSource(o_)?.setData(M1)},[M1,h?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=g?.maplibreLayer?.mapLibreMap;if(!t1||!A1)return;t1.getSource(c_)?.setData(A1)},[A1,g?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=z?.maplibreLayer?.mapLibreMap;if(!t1||!N1)return;t1.getSource(h_)?.setData(N1)},[N1,z?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=b?.maplibreLayer?.mapLibreMap;if(!t1||!o1)return;t1.getSource(l_)?.setData(o1)},[o1,b?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=P?.maplibreLayer?.mapLibreMap;if(!t1||!B1)return;t1.getSource(s_)?.setData(B1)},[B1,P?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=U?.maplibreLayer?.mapLibreMap;if(!t1||!G1)return;t1.getSource(d_)?.setData(G1)},[G1,U?.maplibreLayer?.mapLibreMap]),q2(()=>{let t1=q?.maplibreLayer?.mapLibreMap;if(!t1||!S1)return;t1.getSource(u_)?.setData(S1)},[S1,q?.maplibreLayer?.mapLibreMap]);let z2=St(()=>{if(!t)return null;let t1=new u3({layers:[new k4({layersFilter:({metadata:K1})=>K1?.["rvf.filter"]==="bike",maplibreLayer:t,maxZoom:18,visible:!1})],name:q4.fahrrad}),y1=new u3({layers:[new k4({layersFilter:({metadata:K1})=>K1?.["rvf.filter"]==="car",maplibreLayer:t,maxZoom:18,visible:!1})]}),H1=new u3({layers:[new k4({layersFilter:({metadata:K1})=>K1?.["rvf.filter"]==="cargo_bike",maplibreLayer:t,maxZoom:18,visible:!1})]}),D1=new k4({isQueryable:!0,layersFilter:({metadata:K1})=>K1?.["rvf.filter"]==="hitchhiking",maplibreLayer:t,name:q4.mitfahrpunkte,title:X("div",{className:"flex items-center justify-between gap-2",children:[a4.mitfahrpunkte,X(r_,{})]}),visible:!1}),q1=new k4({isQueryable:!0,maplibreLayer:t,name:q4.bikeFrelo,sources:{[n_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(n_),title:X("div",{className:"flex items-center justify-between gap-2",children:["Frelo",X(yp,{})]})});i(q1);let l2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.bikeOthers,sources:{[o_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(o_),title:X("div",{className:"flex items-center justify-between gap-2",children:["Fahrrad, andere Anbieter",X(yp,{})]})});d(l2);let c2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.cargobikeFrelo,sources:{[c_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(c_,"rvf_shared_cargo_bike"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Lastenfrelo",X(_p,{})]})});m(c2);let u2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.cargobikeOthers,sources:{[h_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(h_,"rvf_shared_cargo_bike"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Lastenrad, andere Anbieter",X(_p,{})]})});w(u2);let _2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.carGrf,sources:{[l_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(l_,"rvf_shared_car"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Gr\xFCne Flotte",X(E9,{})]})});_(_2);let B2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.carNatur,sources:{[s_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(s_,"rvf_shared_car"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Naturenergie-Sharing",X(E9,{})]})});R(B2);let K2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.carOthers,sources:{[d_]:{data:{features:[],type:"FeatureCollection"},promoteId:"id",type:"geojson"}},styleLayers:t8(d_,"rvf_shared_car"),title:X("div",{className:"flex items-center justify-between gap-2",children:["Auto, andere Anbieter",X(E9,{})]})});k(K2);let U2=new k4({isQueryable:!0,maplibreLayer:t,name:q4.eroller,sources:{[u_]:{cluster:!0,clusterRadius:40,data:{features:[],type:"FeatureCollection"},generateId:!0,maxzoom:21,type:"geojson"}},styleLayers:Zk(u_,"rvf_shared_scooter"),title:X("div",{className:"flex items-center justify-between gap-2",children:[a4.eroller,X(a_,{})]})});return Y(U2),new u3({layers:[t1,H1,y1,q1,l2,c2,u2,_2,B2,K2,U2,D1],...r})},[t,r]);return q2(()=>{let t1=window.setInterval(()=>{Vp={},i2()},6e4);return()=>{window.clearInterval(t1)}},[z2,i2]),q2(()=>{a(z2)},[z2,a]),q2(()=>{if(!(!e||!z2))return e.addLayer(z2),()=>{e.removeLayer(z2)}},[e,z2]),null}var v_=ht(mi1);function zi1({...r}){return X("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var g_=zi1;function Mi1({...r}){let{isShareMenuOpen:t,setIsShareMenuOpen:e}=cr(),a=f4(()=>{e(!t)},[t,e]);return X(Bi,{...r,onClick:a,selected:t,children:X(g_,{})})}var p_=ht(Mi1);function xi1(r){let{baseLayer:t,map:e}=Gt(),{setTarifZonenLayer:a}=cr(),n=St(()=>t?new k4({isQueryable:!1,layersFilter:({metadata:i})=>i?.["rvf.filter"]==="zones",maplibreLayer:t,name:q4.tarifzonen,...r||{}}):null,[t,r]);return q2(()=>{a(n)},[n,a]),q2(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var A_=ht(xi1);var Xk=wi(null),Bp=wi(null);var $k='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">%0A <title>iconfont/minus</title>%0A <g id="iconfont/minus" stroke="%237C7C7C" fill="%237C7C7C" stroke-width="1" fill-rule="evenodd">%0A <path d="M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"></path>%0A </g>%0A</svg>';function Hi1(r){return X("input",{className:"peer mr-2 size-[20px] rounded-full border-2 border-grey accent-red",...r,type:"radio"})}var f_=Hi1;function Yk({childItems:r,isCollapsedOnControlClick:t,isControlChecked:e,layer:a,selectionType:n,title:i}){let[h,d]=st(!0),g=e5(Bp),m=Ao(),z=Ao();q2(()=>{t&&d(e)},[e,t,a]);let w=()=>{d(!h),t&&!h&&g({payload:{...this.props,isControlChecked:!0},type:"SELECT_ITEM"})},b=R=>{g({payload:{...this.props,isControlChecked:R.target.checked},type:"SELECT_ITEM"})},_=r.filter(({title:R})=>!!R).map((R,U)=>X(Yk,{...R},U));if(!i)return null;let P=()=>r.length>0?r.filter(U=>U.isControlChecked).length===r.length?!1:r.some(U=>U.isControlChecked):!1;return X("div",{children:[X("div",{className:"flex items-center gap-2 border-b py-2 pr-1",children:[n==="radio"?X(f_,{checked:e,id:m,onChange:b}):X(I7,{checked:e,checkedIconUrl:P()?$k:null,className:P()?"bg-[length:18px]":"",id:m,onChange:b}),X("label",{className:"flex-1 cursor-pointer",htmlFor:_.length>0?z:m,children:i}),_.length>0&&X("button",{className:"flex cursor-pointer items-center gap-2",id:z,onClick:w,children:h?X(F9,{}):X(G8,{})})]}),h&&_.length>0&&X("div",{className:"pl-6",children:_})]})}var Jk=Yk;var tU={childItems:[],parent:null},_i1=r=>{let t={...tU};return t.childItems=r,eU(t.childItems,t),t},eU=(r,t)=>{for(let e of r)e.parent=t,e.childItems.length&&eU(e.childItems,e)},rU=(r,t)=>{if(r.id===t.id)return r;if(r.childItems.length)for(let e of r.childItems){let a=rU(e,t);if(a)return a}},Vi1=(r,t)=>{let e=rU(r,t);return e&&m_(e,t,!1),{...r}},m_=(r,t,e)=>{if(t.isControlChecked)if(t.selectionType==="checkbox")r.isControlChecked=t.isControlChecked,r.layer.setVisible(r.isControlChecked);else for(let a of r.parent.childItems)a.isControlChecked=a.id===r.id,a.isControlChecked||aU(a);else t.selectionType==="checkbox"&&(r.isControlChecked=t.isControlChecked,r.layer.setVisible(r.isControlChecked));r.childItems.length&&!e&&z_(r),Ci1(r)},z_=r=>{r.childItems[0].selectionType==="radio"?aU(r):Bi1(r)},aU=r=>{if(r.isControlChecked)for(let t=0;t<r.childItems.length;t++)r.childItems[t].isControlChecked=t===0;else for(let t of r.childItems)t.isControlChecked=!1;r.childItems.length&&r.childItems[0].childItems.length&&z_(r.childItems[0])},Bi1=r=>{for(let t of r.childItems)t.isControlChecked=r.isControlChecked,t.layer.setVisible(t.isControlChecked),t.childItems.length&&z_(t)},Ci1=r=>{if(r.parent){if(r.parent.selectionType==="checkbox"){let t={...r.parent,isControlChecked:r.parent.childItems.some(e=>e.isControlChecked)};m_(r.parent,t,!0)}else if(r?.parent?.parent){let t={...r.parent,isControlChecked:r.parent.childItems.some(e=>e.isControlChecked)};m_(r.parent,t,!0)}}};function bi1(r=tU,t){switch(t.type){case"INIT":return _i1(t.payload);case"SELECT_ITEM":return Vi1(r,t.payload);default:return r}}var iU=bi1;function Li1({layers:r,...t}){let[e,a]=Eh(iU,r);return q2(()=>{a({payload:r,type:"INIT"})},[r]),X(Xk.Provider,{value:e,children:X(Bp.Provider,{value:a,children:X("div",{...t,children:r.map(n=>X(Jk,{className:"w-full",...n},n.id))})})})}var M_=ht(Li1);var nU=r=>{let t=r;Array.isArray(t)||(t=[r]);let e=[];return t.forEach(a=>{e.push(a);let n=a.get("children")||a.getLayers?.()?.getArray();e=e.concat(nU(n||[]))}),e},r8=nU;var oU=(r,t)=>({childItems:r?.getLayers?.().getArray().map(e=>oU(e,t))||[],id:u0(r),isControlChecked:r.getVisible(),layer:r,revision:t,selectionType:"checkbox",title:r.get("title")});function Si1(r){let{map:t}=Gt(),[e,a]=st(0),n=St(()=>t?.getLayers().getArray().map(h=>oU(h,e))||[],[t,e]);return q2(()=>{r8(t.getLayers().getArray()).forEach(h=>{h.on("change:visible",()=>{a(d=>d+1)})})},[t]),X(M_,{layers:n,...r})}var Cp=ht(Si1);function Fi1(r){return X("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"})})}var x_=Fi1;function Ei1(r){return X("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:X("path",{d:"M12,4 C12.5522847,4 13,4.44771525 13,5 L13,11 L19,11 C19.5128358,11 19.9355072,11.3860402 19.9932723,11.8833789 L20,12 C20,12.5522847 19.5522847,13 19,13 L13,13 L13,19 C13,19.5128358 12.6139598,19.9355072 12.1166211,19.9932723 L12,20 C11.4477153,20 11,19.5522847 11,19 L11,13 L5,13 C4.48716416,13 4.06449284,12.6139598 4.00672773,12.1166211 L4,12 C4,11.4477153 4.44771525,11 5,11 L11,11 L11,5 C11,4.48716416 11.3860402,4.06449284 11.8833789,4.00672773 Z"})})}var w_=Ei1;function Ii1(){let{map:r}=Gt(),[t,e]=st(!1),[a,n]=st(!1),i=f4(()=>{if(!r?.getView())return;let d=r.getView(),g=d.getZoom();d.setZoom(g+1)},[r]),h=f4(()=>{if(!r?.getView())return;let d=r.getView(),g=d.getZoom();d.setZoom(g-1)},[r]);return q2(()=>{let d=r?.on("moveend",()=>{let g=r.getView(),m=g.getZoom(),z=g.getMaxZoom(),w=g.getMinZoom();z&&m===Number(z)?e(!0):e(!1),w&&m===Number(w)?n(!0):n(!1)});return()=>{B0(d)}},[r]),X(ke,{children:[X(Bi,{disabled:t,Icon:w_,onClick:i}),X(Bi,{disabled:a,Icon:x_,onClick:h})]})}var H_=ht(Ii1);var y_="units",Oi1=[1,2,5],I9=25.4/.28,__=class extends L6{constructor(t){t=t||{};let e=document.createElement("div");e.style.pointerEvents="none",super({element:e,render:t.render,target:t.target}),this.on,this.once,this.un;let a=t.className!==void 0?t.className:t.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=a+"-inner",this.element.className=a+" "+F6,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=t.minWidth!==void 0?t.minWidth:64,this.maxWidth_=t.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(y_,this.handleUnitsChanged_),this.setUnits(t.units||"metric"),this.scaleBar_=t.bar||!1,this.scaleBarSteps_=t.steps||4,this.scaleBarText_=t.text||!1,this.dpi_=t.dpi||void 0}getUnits(){return this.get(y_)}handleUnitsChanged_(){this.updateElement_()}setUnits(t){this.set(y_,t)}setDpi(t){this.dpi_=t}updateElement_(){let t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}let e=t.center,a=t.projection,n=this.getUnits(),i=n=="degrees"?"degrees":"m",h=_f(a,t.resolution,e,i),d=this.minWidth_*(this.dpi_||I9)/I9,g=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||I9)/I9:void 0,m=d*h,z="";if(n=="degrees"){let Y=wo.degrees;m*=Y,m<Y/60?(z="\u2033",h*=3600):m<Y?(z="\u2032",h*=60):z="\xB0"}else if(n=="imperial")m<.9144?(z="in",h/=.0254):m<1609.344?(z="ft",h/=.3048):(z="mi",h/=1609.344);else if(n=="nautical")h/=1852,z="NM";else if(n=="metric")m<1e-6?(z="nm",h*=1e9):m<.001?(z="\u03BCm",h*=1e6):m<1?(z="mm",h*=1e3):m<1e3?z="m":(z="km",h/=1e3);else if(n=="us")m<.9144?(z="in",h*=39.37):m<1609.344?(z="ft",h/=.30480061):(z="mi",h/=1609.3472);else throw new Error("Invalid units");let w=3*Math.floor(Math.log(d*h)/Math.log(10)),b,_,P,R,U,k;for(;;){P=Math.floor(w/3);let Y=Math.pow(10,P);if(b=Oi1[(w%3+3)%3]*Y,_=Math.round(b/h),isNaN(_)){this.element.style.display="none",this.renderedVisible_=!1;return}if(g!==void 0&&_>=g){b=R,_=U,P=k;break}else if(_>=d)break;R=b,U=_,k=P,++w}let q=this.scaleBar_?this.createScaleBar(_,b,z):b.toFixed(P<0?-P:0)+" "+z;this.renderedHTML_!=q&&(this.innerElement_.innerHTML=q,this.renderedHTML_=q),this.renderedWidth_!=_&&(this.innerElement_.style.width=_+"px",this.renderedWidth_=_),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(t,e,a){let n=this.getScaleForResolution(),i=n<1?Math.round(1/n).toLocaleString()+" : 1":"1 : "+Math.round(n).toLocaleString(),h=this.scaleBarSteps_,d=t/h,g=[this.createMarker("absolute")];for(let z=0;z<h;++z){let w=z%2===0?"ol-scale-singlebar-odd":"ol-scale-singlebar-even";g.push(`<div><div class="ol-scale-singlebar ${w}" style="width: ${d}px;"></div>`+this.createMarker("relative")+(z%2===0||h===2?this.createStepText(z,t,!1,e,a):"")+"</div>")}return g.push(this.createStepText(h,t,!0,e,a)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${t}px;">`+i+"</div>":"")+g.join("")}createMarker(t){return`<div class="ol-scale-step-marker" style="position: ${t}; top: ${t==="absolute"?3:-10}px;"></div>`}createStepText(t,e,a,n,i){let d=(t===0?0:Math.round(n/this.scaleBarSteps_*t*100)/100)+(t===0?"":" "+i),g=t===0?-3:e/this.scaleBarSteps_*-1,m=t===0?0:e/this.scaleBarSteps_*2;return`<div class="ol-scale-step-text" style="margin-left: ${g}px;text-align: ${t===0?"left":"center"};min-width: ${m}px;left: ${a?e+"px":"unset"};">`+d+"</div>"}getScaleForResolution(){let t=_f(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),e=this.dpi_||I9,a=1e3/25.4;return t*a*e}render(t){let e=t.frameState;e?this.viewState_=e.viewState:this.viewState_=null,this.updateElement_()}},cU=__;var hU=`.ol-scale-line {
|
|
1296
1296
|
position:relative;
|
|
1297
1297
|
left: unset;
|
|
1298
1298
|
bottom: unset;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@geops/rvf-mobility-web-component",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
4
|
"description": "Web components for rvf in the domains of mobility and logistics.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.28",
|
|
6
6
|
"homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "index.js",
|
|
@@ -6,7 +6,7 @@ export const getSharingStyleLayers = (
|
|
|
6
6
|
{
|
|
7
7
|
id: sourceId + "_circle",
|
|
8
8
|
maxZoom: 16,
|
|
9
|
-
minzoom:
|
|
9
|
+
minzoom: 14,
|
|
10
10
|
paint: {
|
|
11
11
|
"circle-color": "#00973b",
|
|
12
12
|
"circle-radius": 4,
|
|
@@ -39,7 +39,7 @@ export const getSharingStyleLayers = (
|
|
|
39
39
|
"text-size": 12,
|
|
40
40
|
visibility: "visible",
|
|
41
41
|
},
|
|
42
|
-
minzoom:
|
|
42
|
+
minzoom: 16,
|
|
43
43
|
paint: {
|
|
44
44
|
"text-color": "rgba(6, 76, 10, 1)",
|
|
45
45
|
"text-halo-blur": 0.5,
|
|
@@ -148,7 +148,7 @@ export const getSharingClusterStyleLayers = (
|
|
|
148
148
|
"text-size": 12,
|
|
149
149
|
visibility: "visible",
|
|
150
150
|
},
|
|
151
|
-
minzoom:
|
|
151
|
+
minzoom: 17,
|
|
152
152
|
paint: {
|
|
153
153
|
"text-color": "rgba(6, 76, 10, 1)",
|
|
154
154
|
"text-halo-blur": 0.5,
|
|
@@ -181,7 +181,7 @@ export const getSharingClusterStyleLayers = (
|
|
|
181
181
|
"text-size": 10,
|
|
182
182
|
visibility: "visible",
|
|
183
183
|
},
|
|
184
|
-
minzoom:
|
|
184
|
+
minzoom: 17,
|
|
185
185
|
paint: {
|
|
186
186
|
"text-color": "rgba(6, 76, 10, 1)",
|
|
187
187
|
},
|
|
@@ -211,7 +211,7 @@ export const getSharingClusterStyleLayers = (
|
|
|
211
211
|
"text-size": 10,
|
|
212
212
|
visibility: "visible",
|
|
213
213
|
},
|
|
214
|
-
minzoom:
|
|
214
|
+
minzoom: 17,
|
|
215
215
|
paint: {
|
|
216
216
|
"text-color": "rgba(6, 76, 10, 1)",
|
|
217
217
|
},
|