@geops/rvf-mobility-web-component 0.1.65 → 0.1.66
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 +11 -0
- package/docutils.js +100 -36
- package/index.html +48 -20
- package/index.js +20 -4
- package/package.json +1 -1
- package/search.html +25 -22
- package/src/LayerTree/TreeItem/TreeItem.tsx +1 -1
- package/src/MobilitySearch/MobilitySearchAttributes.ts +12 -0
- package/src/OverlayDetailsHeader/OverlayDetailsHeader.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
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.66](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.65...v0.1.66) (2025-10-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add documentation for url paramters ([e759e58](https://github.com/geops/rvf-mobility-web-component/commit/e759e589105c7551819ca83df0b36769fb45a0b0))
|
|
11
|
+
* add documentation for url paramters ([b4083e2](https://github.com/geops/rvf-mobility-web-component/commit/b4083e2521fc10b445be9edd464b8e94d88dcf66))
|
|
12
|
+
* add documentation for url paramters ([6eb1629](https://github.com/geops/rvf-mobility-web-component/commit/6eb1629afda1afec9caddf1e0807546d70c434fd))
|
|
13
|
+
* add noapply url parameter documentation ([6e42a63](https://github.com/geops/rvf-mobility-web-component/commit/6e42a6307438989265b3546f4ca789c6ddf71662))
|
|
14
|
+
* fix layer config title display when there is not translation ([feba3da](https://github.com/geops/rvf-mobility-web-component/commit/feba3dafc92ad1e941899eb9de2e99ccaccf2b67))
|
|
15
|
+
|
|
5
16
|
### [0.1.65](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.64...v0.1.65) (2025-10-14)
|
|
6
17
|
|
|
7
18
|
|
package/docutils.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/* Will ignore web component attributes defined as url parameters */
|
|
2
|
+
const doNotApplyAttributesUrlParameters =
|
|
3
|
+
new URLSearchParams(window.location.search).get("noapply") === "true";
|
|
2
4
|
|
|
3
|
-
function onLoad(wc, attributes, events, pkgSrc) {
|
|
5
|
+
function onLoad(wc, attributes, events, pkgSrc, urlParameters = {}) {
|
|
4
6
|
/* Show private attributes for dev purpose */
|
|
5
7
|
const showPrivate =
|
|
6
8
|
new URLSearchParams(window.location.search).get("private") === "true";
|
|
@@ -10,7 +12,7 @@ function onLoad(wc, attributes, events, pkgSrc) {
|
|
|
10
12
|
const booleanAttrs = Object.entries(attributes)
|
|
11
13
|
.filter(([, attr]) => attr.type === "boolean")
|
|
12
14
|
.map(([key]) => key);
|
|
13
|
-
const
|
|
15
|
+
const booleanTrueByDefaultAttrs = booleanAttrs.filter(
|
|
14
16
|
(key) => attributes[key].defaultValue === "true",
|
|
15
17
|
);
|
|
16
18
|
const reloadAttrs = Object.entries(attributes)
|
|
@@ -37,6 +39,25 @@ function onLoad(wc, attributes, events, pkgSrc) {
|
|
|
37
39
|
{},
|
|
38
40
|
);
|
|
39
41
|
|
|
42
|
+
const attrsContent = generateAttributesTable(
|
|
43
|
+
wc,
|
|
44
|
+
attrs,
|
|
45
|
+
booleanAttrs,
|
|
46
|
+
booleanTrueByDefaultAttrs,
|
|
47
|
+
descriptionByAttr,
|
|
48
|
+
defaultValueByAttr,
|
|
49
|
+
reloadAttrs,
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
if (attrsContent) {
|
|
53
|
+
const elt = document.querySelector("#attributes");
|
|
54
|
+
if (elt) {
|
|
55
|
+
elt.innerHTML = attrsContent;
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
document.querySelector("#attributesDoc")?.remove();
|
|
59
|
+
}
|
|
60
|
+
|
|
40
61
|
/* Events */
|
|
41
62
|
const evts = Object.keys(events);
|
|
42
63
|
const descriptionByEvent = Object.entries(events)
|
|
@@ -51,30 +72,66 @@ function onLoad(wc, attributes, events, pkgSrc) {
|
|
|
51
72
|
return acc;
|
|
52
73
|
}, {});
|
|
53
74
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
descriptionByAttr,
|
|
61
|
-
defaultValueByAttr,
|
|
62
|
-
reloadAttrs,
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
if (attrsContent) {
|
|
66
|
-
document.querySelector("#attributes").innerHTML = attrsContent;
|
|
75
|
+
const evtsContent = generateEventsTable(wc, evts, descriptionByEvent);
|
|
76
|
+
if (evtsContent) {
|
|
77
|
+
const elt = document.querySelector("#events");
|
|
78
|
+
if (elt) {
|
|
79
|
+
elt.innerHTML = evtsContent;
|
|
80
|
+
}
|
|
67
81
|
} else {
|
|
68
|
-
document.querySelector("#
|
|
82
|
+
document.querySelector("#eventsDoc")?.remove();
|
|
69
83
|
}
|
|
70
84
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
/* URL Parameters */
|
|
86
|
+
const params = Object.keys(urlParameters);
|
|
87
|
+
const booleanParams = Object.entries(urlParameters)
|
|
88
|
+
.filter(([, attr]) => attr.type === "boolean")
|
|
89
|
+
.map(([key]) => key);
|
|
90
|
+
const booleanTrueByDefaultParams = booleanParams.filter(
|
|
91
|
+
(key) => urlParameters[key].defaultValue === "true",
|
|
92
|
+
);
|
|
93
|
+
const reloadParams = Object.entries(urlParameters).map(([key]) => key);
|
|
94
|
+
|
|
95
|
+
const descriptionByParam = Object.entries(urlParameters)
|
|
96
|
+
.filter(([key, attr]) => {
|
|
97
|
+
if (showPrivate) {
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
return attr.public;
|
|
101
|
+
})
|
|
102
|
+
.reduce((acc, [key, attr]) => {
|
|
103
|
+
acc[key] = attr.description;
|
|
104
|
+
return acc;
|
|
105
|
+
}, {});
|
|
106
|
+
|
|
107
|
+
const defaultValueByParam = Object.entries(urlParameters).reduce(
|
|
108
|
+
(acc, [key, attr]) => {
|
|
109
|
+
acc[key] = attr.defaultValue;
|
|
110
|
+
return acc;
|
|
111
|
+
},
|
|
112
|
+
{},
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
const urlParamsContent = generateAttributesTable(
|
|
116
|
+
wc,
|
|
117
|
+
params,
|
|
118
|
+
booleanParams,
|
|
119
|
+
booleanTrueByDefaultParams,
|
|
120
|
+
descriptionByParam,
|
|
121
|
+
defaultValueByParam,
|
|
122
|
+
reloadParams,
|
|
123
|
+
);
|
|
124
|
+
if (urlParamsContent) {
|
|
125
|
+
const elt = document.querySelector("#urlParameters");
|
|
126
|
+
if (elt) {
|
|
127
|
+
elt.innerHTML = urlParamsContent;
|
|
128
|
+
}
|
|
74
129
|
} else {
|
|
75
|
-
document.querySelector("#
|
|
130
|
+
document.querySelector("#urlParamtersDoc")?.remove();
|
|
76
131
|
}
|
|
77
132
|
|
|
133
|
+
/* Build HTML */
|
|
134
|
+
|
|
78
135
|
document.querySelector("#code").innerHTML = generateCodeText(
|
|
79
136
|
wc,
|
|
80
137
|
attrs,
|
|
@@ -128,7 +185,7 @@ function applyPermalinkParameters(wc, attributes) {
|
|
|
128
185
|
}
|
|
129
186
|
|
|
130
187
|
// Apply all url parameters as attribute of the web component and fill the input fields.
|
|
131
|
-
if (
|
|
188
|
+
if (!doNotApplyAttributesUrlParameters) {
|
|
132
189
|
params.forEach((value, key) => {
|
|
133
190
|
if (!(key in attributes)) {
|
|
134
191
|
return;
|
|
@@ -191,7 +248,11 @@ function generateAttributesTable(
|
|
|
191
248
|
const defaultChecked = booleanTrueByDefault.includes(key)
|
|
192
249
|
? "checked"
|
|
193
250
|
: "";
|
|
194
|
-
|
|
251
|
+
let currValue = wc.getAttribute(key);
|
|
252
|
+
const isUrlParameters = reloadAttrs?.includes(key);
|
|
253
|
+
if (isUrlParameters) {
|
|
254
|
+
currValue = new URLSearchParams(window.location.search).get(key);
|
|
255
|
+
}
|
|
195
256
|
let checked = currValue === "true" ? "checked" : "";
|
|
196
257
|
if (currValue !== "true" && currValue !== "false") {
|
|
197
258
|
checked = defaultChecked;
|
|
@@ -201,28 +262,31 @@ function generateAttributesTable(
|
|
|
201
262
|
<td class="border px-4 py-2">${key}</td>
|
|
202
263
|
<!--td class="border px-4 py-2"></td>
|
|
203
264
|
<td class="border px-4 py-2"></td-->
|
|
204
|
-
<td class="border px-4 py-2">
|
|
205
|
-
<div class="flex gap-4">
|
|
265
|
+
<td class="border px-4 py-2 space-y-2">
|
|
206
266
|
${
|
|
207
267
|
isBoolean
|
|
208
268
|
? `<input
|
|
209
269
|
type="checkbox"
|
|
210
|
-
|
|
270
|
+
id="${key}"
|
|
271
|
+
class="border mr-4 cursor-pointer inline-block"
|
|
211
272
|
name="${key}"
|
|
212
273
|
${checked ? "checked" : ""}
|
|
213
274
|
onchange="document.querySelector('${wc.localName}').setAttribute('${key}', this.checked);onAttributeUpdate(document.querySelector('${wc.localName}'),this.name, this.checked, '${reloadAttrs.join(",")}');"
|
|
214
275
|
/>`
|
|
215
276
|
: `
|
|
216
|
-
<
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
277
|
+
<div class="flex gap-4 mb-2">
|
|
278
|
+
<input
|
|
279
|
+
type="text"
|
|
280
|
+
class="border px-2"
|
|
281
|
+
name="${key}"
|
|
282
|
+
placeholder="${defaultValueByAttr[key] || ""}"
|
|
283
|
+
value="${wc.getAttribute(key) || defaultValueByAttr[key] || ""}"
|
|
284
|
+
/>
|
|
285
|
+
<button class="border cursor-pointer p-2 bg-black hover:bg-gray-700 text-white" onclick="document.querySelector('${wc.localName}').setAttribute('${key}', this.previousElementSibling.value);onAttributeUpdate(document.querySelector('${wc.localName}'),this.previousElementSibling.name, this.previousElementSibling.value, '${reloadAttrs.join(",")}');">Update</button>
|
|
286
|
+
</div>`
|
|
223
287
|
}
|
|
224
|
-
|
|
225
|
-
${descriptionByAttr[key] ? `<
|
|
288
|
+
|
|
289
|
+
${descriptionByAttr[key] ? `<label for="${key}" class="cursor-pointer">${descriptionByAttr[key]}</label>` : ``}
|
|
226
290
|
</td>
|
|
227
291
|
</tr>
|
|
228
292
|
`;
|
|
@@ -342,7 +406,7 @@ function onAttributeUpdate(wc, key, value, reloadAttrs) {
|
|
|
342
406
|
window.location.reload();
|
|
343
407
|
} else {
|
|
344
408
|
wc.setAttribute(key, value);
|
|
345
|
-
if (
|
|
409
|
+
if (!doNotApplyAttributesUrlParameters) {
|
|
346
410
|
window.history.replaceState(
|
|
347
411
|
{},
|
|
348
412
|
"",
|
package/index.html
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<body class="p-8">
|
|
35
35
|
<!-- tailwind hack to add class used in docutils -->
|
|
36
36
|
<div
|
|
37
|
-
class="absolute inset-0 flex h-full w-full table-auto gap-4 flex-col border bg-black p-0 px-4 py-2 pt-2 text-white hover:bg-gray-700"
|
|
37
|
+
class="absolute inset-0 flex h-full w-full table-auto mr-4 gap-4 space-y-4 flex-col border bg-black p-0 px-4 py-2 pt-2 text-white hover:bg-gray-700"
|
|
38
38
|
style="display: none"
|
|
39
39
|
></div>
|
|
40
40
|
</script>
|
|
@@ -53,20 +53,33 @@
|
|
|
53
53
|
class="block h-128 w-full resize overflow-hidden rounded-[16px] border"
|
|
54
54
|
></geops-mobility>
|
|
55
55
|
|
|
56
|
-
<
|
|
57
|
-
<div id="attributesDoc">
|
|
56
|
+
<div id="attributesDoc" class="space-y-4">
|
|
58
57
|
<h2 class="text-xl font-bold">Attributes</h2>
|
|
58
|
+
|
|
59
|
+
<pre class="rounded bg-slate-800 p-4 text-slate-200">
|
|
60
|
+
// Modify an attribute
|
|
61
|
+
document.getElementById('map').setAttribute("zoom", "15");
|
|
62
|
+
</pre
|
|
63
|
+
>
|
|
59
64
|
<div id="attributes"></div>
|
|
60
65
|
</div>
|
|
61
|
-
<div id="eventsDoc">
|
|
66
|
+
<div id="eventsDoc" class="space-y-4">
|
|
62
67
|
<h2 class="text-xl font-bold">Events</h2>
|
|
63
68
|
<pre class="rounded bg-slate-800 p-4 text-slate-200">
|
|
69
|
+
// Listen to an event
|
|
64
70
|
document.getElementById('map').addEventListener('mwc:attribute', (event) => {
|
|
65
71
|
console.log('Display last data received:', event.data);
|
|
66
|
-
})
|
|
72
|
+
});
|
|
73
|
+
</pre
|
|
67
74
|
>
|
|
68
75
|
<div id="events"></div>
|
|
69
76
|
</div>
|
|
77
|
+
|
|
78
|
+
<div id="urlParametersDoc" class="space-y-4">
|
|
79
|
+
<h2 class="text-xl font-bold">Documentation URL parameters</h2>
|
|
80
|
+
<p>The following parameters are only used by this documentation webpage.</p>
|
|
81
|
+
<div id="urlParameters"></div>
|
|
82
|
+
</div>
|
|
70
83
|
<br />
|
|
71
84
|
<br />
|
|
72
85
|
<h1 class="text-xl font-bold">More mobility web components</h1>
|
|
@@ -87,24 +100,39 @@ document.getElementById('map').addEventListener('mwc:attribute', (event) => {
|
|
|
87
100
|
const events = window.MobilityMapEvents;
|
|
88
101
|
|
|
89
102
|
// Add page parameters
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
103
|
+
const urlParameters = {
|
|
104
|
+
fullscreen: {
|
|
105
|
+
type: "boolean",
|
|
106
|
+
defaultValue: "false",
|
|
107
|
+
description: `Load the map in fullscreen mode.`,
|
|
108
|
+
public: true,
|
|
109
|
+
},
|
|
110
|
+
noapply: {
|
|
111
|
+
type: "boolean",
|
|
112
|
+
defaultValue: "false",
|
|
113
|
+
description:
|
|
114
|
+
"Will not apply web component attributes defined as url parameters. Useful to test the permalink functionality of the web component.",
|
|
115
|
+
public: true,
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
debug: {
|
|
119
|
+
type: "boolean",
|
|
120
|
+
defaultValue: "false",
|
|
121
|
+
description:
|
|
122
|
+
"Displays debug information for vehicles when true, use only for debugging.",
|
|
123
|
+
public: true,
|
|
124
|
+
},
|
|
97
125
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
126
|
+
private: {
|
|
127
|
+
type: "boolean",
|
|
128
|
+
defaultValue: "false",
|
|
129
|
+
description:
|
|
130
|
+
"Displays all private attributes, if there are some, use only for development purpose.",
|
|
131
|
+
public: true,
|
|
132
|
+
},
|
|
105
133
|
};
|
|
106
134
|
|
|
107
|
-
onLoad(wc, attributes, events, pkgSrc);
|
|
135
|
+
onLoad(wc, attributes, events, pkgSrc, urlParameters);
|
|
108
136
|
});
|
|
109
137
|
</script>
|
|
110
138
|
</body>
|
package/index.js
CHANGED
|
@@ -1277,7 +1277,7 @@ endbfchar
|
|
|
1277
1277
|
CMapName currentdict /CMap defineresource pop
|
|
1278
1278
|
end
|
|
1279
1279
|
end`};t.events.push(["putFont",function(n){(function(l){var A=l.font,d=l.out,L=l.newObject,C=l.putStream;if(A.metadata instanceof r.API.TTFFont&&A.encoding==="Identity-H"){for(var y=A.metadata.Unicode.widths,E=A.metadata.subset.encode(A.metadata.glyIdsUsed,1),B="",Z=0;Z<E.length;Z++)B+=String.fromCharCode(E[Z]);var Q=L();C({data:B,addLength1:!0,objectId:Q}),d("endobj");var V=L();C({data:i(A.metadata.toUnicode),addLength1:!0,objectId:V}),d("endobj");var G=L();d("<<"),d("/Type /FontDescriptor"),d("/FontName /"+lA(A.fontName)),d("/FontFile2 "+Q+" 0 R"),d("/FontBBox "+r.API.PDFObject.convert(A.metadata.bbox)),d("/Flags "+A.metadata.flags),d("/StemV "+A.metadata.stemV),d("/ItalicAngle "+A.metadata.italicAngle),d("/Ascent "+A.metadata.ascender),d("/Descent "+A.metadata.decender),d("/CapHeight "+A.metadata.capHeight),d(">>"),d("endobj");var J=L();d("<<"),d("/Type /Font"),d("/BaseFont /"+lA(A.fontName)),d("/FontDescriptor "+G+" 0 R"),d("/W "+r.API.PDFObject.convert(y)),d("/CIDToGIDMap /Identity"),d("/DW 1000"),d("/Subtype /CIDFontType2"),d("/CIDSystemInfo"),d("<<"),d("/Supplement 0"),d("/Registry (Adobe)"),d("/Ordering ("+A.encoding+")"),d(">>"),d(">>"),d("endobj"),A.objectNumber=L(),d("<<"),d("/Type /Font"),d("/Subtype /Type0"),d("/ToUnicode "+V+" 0 R"),d("/BaseFont /"+lA(A.fontName)),d("/Encoding /"+A.encoding),d("/DescendantFonts ["+J+" 0 R]"),d(">>"),d("endobj"),A.isAlreadyPutted=!0}})(n)}]),t.events.push(["putFont",function(n){(function(l){var A=l.font,d=l.out,L=l.newObject,C=l.putStream;if(A.metadata instanceof r.API.TTFFont&&A.encoding==="WinAnsiEncoding"){for(var y=A.metadata.rawData,E="",B=0;B<y.length;B++)E+=String.fromCharCode(y[B]);var Z=L();C({data:E,addLength1:!0,objectId:Z}),d("endobj");var Q=L();C({data:i(A.metadata.toUnicode),addLength1:!0,objectId:Q}),d("endobj");var V=L();d("<<"),d("/Descent "+A.metadata.decender),d("/CapHeight "+A.metadata.capHeight),d("/StemV "+A.metadata.stemV),d("/Type /FontDescriptor"),d("/FontFile2 "+Z+" 0 R"),d("/Flags 96"),d("/FontBBox "+r.API.PDFObject.convert(A.metadata.bbox)),d("/FontName /"+lA(A.fontName)),d("/ItalicAngle "+A.metadata.italicAngle),d("/Ascent "+A.metadata.ascender),d(">>"),d("endobj"),A.objectNumber=L();for(var G=0;G<A.metadata.hmtx.widths.length;G++)A.metadata.hmtx.widths[G]=parseInt(A.metadata.hmtx.widths[G]*(1e3/A.metadata.head.unitsPerEm));d("<</Subtype/TrueType/Type/Font/ToUnicode "+Q+" 0 R/BaseFont/"+lA(A.fontName)+"/FontDescriptor "+V+" 0 R/Encoding/"+A.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(A.metadata.hmtx.widths)+">>"),d("endobj"),A.isAlreadyPutted=!0}})(n)}]);var o=function(n){var l,A=n.text||"",d=n.x,L=n.y,C=n.options||{},y=n.mutex||{},E=y.pdfEscape,B=y.activeFontKey,Z=y.fonts,Q=B,V="",G=0,J="",n1=Z[Q].encoding;if(Z[Q].encoding!=="Identity-H")return{text:A,x:d,y:L,options:C,mutex:y};for(J=A,Q=B,Array.isArray(A)&&(J=A[0]),G=0;G<J.length;G+=1)Z[Q].metadata.hasOwnProperty("cmap")&&(l=Z[Q].metadata.cmap.unicode.codeMap[J[G].charCodeAt(0)]),l||J[G].charCodeAt(0)<256&&Z[Q].metadata.hasOwnProperty("Unicode")?V+=J[G]:V+="";var r1="";return parseInt(Q.slice(1))<14||n1==="WinAnsiEncoding"?r1=E(V,Q).split("").map(function(m1){return m1.charCodeAt(0).toString(16)}).join(""):n1==="Identity-H"&&(r1=e(V,Z[Q])),y.isHex=!0,{text:r1,x:d,y:L,options:C,mutex:y}};t.events.push(["postProcessText",function(n){var l=n.text||"",A=[],d={text:l,x:n.x,y:n.y,options:n.options,mutex:n.mutex};if(Array.isArray(l)){var L=0;for(L=0;L<l.length;L+=1)Array.isArray(l[L])&&l[L].length===3?A.push([o(Object.assign({},d,{text:l[L][0]})).text,l[L][1],l[L][2]]):A.push(o(Object.assign({},d,{text:l[L]})).text);n.text=A}else n.text=o(Object.assign({},d,{text:l})).text}])})(t5),(function(r){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},r.addFileToVFS=function(e,i){return t.call(this),this.internal.vFS[e]=i,this},r.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(t5.API),(function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(i){var o,n,l,A,d,L,C,y=t,E=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],B=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Z={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Q={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},V=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],G=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),J=!1,n1=0;this.__bidiEngine__={};var r1=function(s1){var x1=s1.charCodeAt(),N1=x1>>8,V1=Q[N1];return V1!==void 0?y[256*V1+(255&x1)]:N1===252||N1===253?"AL":G.test(N1)?"L":N1===8?"R":"N"},m1=function(s1){for(var x1,N1=0;N1<s1.length;N1++){if((x1=r1(s1.charAt(N1)))==="L")return!1;if(x1==="R")return!0}return!1},w1=function(s1,x1,N1,V1){var l2,p2,o2,G1,L2=x1[V1];switch(L2){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":J=!1;break;case"N":case"AN":break;case"EN":J&&(L2="AN");break;case"AL":J=!0,L2="R";break;case"WS":case"BN":L2="N";break;case"CS":V1<1||V1+1>=x1.length||(l2=N1[V1-1])!=="EN"&&l2!=="AN"||(p2=x1[V1+1])!=="EN"&&p2!=="AN"?L2="N":J&&(p2="AN"),L2=p2===l2?p2:"N";break;case"ES":L2=(l2=V1>0?N1[V1-1]:"B")==="EN"&&V1+1<x1.length&&x1[V1+1]==="EN"?"EN":"N";break;case"ET":if(V1>0&&N1[V1-1]==="EN"){L2="EN";break}if(J){L2="N";break}for(o2=V1+1,G1=x1.length;o2<G1&&x1[o2]==="ET";)o2++;L2=o2<G1&&x1[o2]==="EN"?"EN":"N";break;case"NSM":if(l&&!A){for(G1=x1.length,o2=V1+1;o2<G1&&x1[o2]==="NSM";)o2++;if(o2<G1){var V2=s1[V1],w2=V2>=1425&&V2<=2303||V2===64286;if(l2=x1[o2],w2&&(l2==="R"||l2==="AL")){L2="R";break}}}L2=V1<1||(l2=x1[V1-1])==="B"?"N":N1[V1-1];break;case"B":J=!1,o=!0,L2=n1;break;case"S":n=!0,L2="N"}return L2},S1=function(s1,x1,N1){var V1=s1.split("");return N1&&g1(V1,N1,{hiLevel:n1}),V1.reverse(),x1&&x1.reverse(),V1.join("")},g1=function(s1,x1,N1){var V1,l2,p2,o2,G1,L2=-1,V2=s1.length,w2=0,u1=[],P1=n1?B:E,F1=[];for(J=!1,o=!1,n=!1,l2=0;l2<V2;l2++)F1[l2]=r1(s1[l2]);for(p2=0;p2<V2;p2++){if(G1=w2,u1[p2]=w1(s1,F1,u1,p2),V1=240&(w2=P1[G1][Z[u1[p2]]]),w2&=15,x1[p2]=o2=P1[w2][5],V1>0)if(V1===16){for(l2=L2;l2<p2;l2++)x1[l2]=1;L2=-1}else L2=-1;if(P1[w2][6])L2===-1&&(L2=p2);else if(L2>-1){for(l2=L2;l2<p2;l2++)x1[l2]=o2;L2=-1}F1[p2]==="B"&&(x1[p2]=0),N1.hiLevel|=o2}n&&(function(J1,u2,r2){for(var F2=0;F2<r2;F2++)if(J1[F2]==="S"){u2[F2]=n1;for(var k2=F2-1;k2>=0&&J1[k2]==="WS";k2--)u2[k2]=n1}})(F1,x1,V2)},L1=function(s1,x1,N1,V1,l2){if(!(l2.hiLevel<s1)){if(s1===1&&n1===1&&!o)return x1.reverse(),void(N1&&N1.reverse());for(var p2,o2,G1,L2,V2=x1.length,w2=0;w2<V2;){if(V1[w2]>=s1){for(G1=w2+1;G1<V2&&V1[G1]>=s1;)G1++;for(L2=w2,o2=G1-1;L2<o2;L2++,o2--)p2=x1[L2],x1[L2]=x1[o2],x1[o2]=p2,N1&&(p2=N1[L2],N1[L2]=N1[o2],N1[o2]=p2);w2=G1}w2++}}},z1=function(s1,x1,N1){var V1=s1.split(""),l2={hiLevel:n1};return N1||(N1=[]),g1(V1,N1,l2),(function(p2,o2,G1){if(G1.hiLevel!==0&&C)for(var L2,V2=0;V2<p2.length;V2++)o2[V2]===1&&(L2=V.indexOf(p2[V2]))>=0&&(p2[V2]=V[L2+1])})(V1,N1,l2),L1(2,V1,x1,N1,l2),L1(1,V1,x1,N1,l2),V1.join("")};return this.__bidiEngine__.doBidiReorder=function(s1,x1,N1){if((function(l2,p2){if(p2)for(var o2=0;o2<l2.length;o2++)p2[o2]=o2;A===void 0&&(A=m1(l2)),L===void 0&&(L=m1(l2))})(s1,x1),l||!d||L)if(l&&d&&A^L)n1=A?1:0,s1=S1(s1,x1,N1);else if(!l&&d&&L)n1=A?1:0,s1=z1(s1,x1,N1),s1=S1(s1,x1);else if(!l||A||d||L){if(l&&!d&&A^L)s1=S1(s1,x1),A?(n1=0,s1=z1(s1,x1,N1)):(n1=1,s1=z1(s1,x1,N1),s1=S1(s1,x1));else if(l&&A&&!d&&L)n1=1,s1=z1(s1,x1,N1),s1=S1(s1,x1);else if(!l&&!d&&A^L){var V1=C;A?(n1=1,s1=z1(s1,x1,N1),n1=0,C=!1,s1=z1(s1,x1,N1),C=V1):(n1=0,s1=z1(s1,x1,N1),s1=S1(s1,x1),n1=1,C=!1,s1=z1(s1,x1,N1),C=V1,s1=S1(s1,x1))}}else n1=0,s1=z1(s1,x1,N1);else n1=A?1:0,s1=z1(s1,x1,N1);return s1},this.__bidiEngine__.setOptions=function(s1){s1&&(l=s1.isInputVisual,d=s1.isOutputVisual,A=s1.isInputRtl,L=s1.isOutputRtl,C=s1.isSymmetricSwapping)},this.__bidiEngine__.setOptions(i),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(i){var o=i.text;i.x,i.y;var n=i.options||{};i.mutex,n.lang;var l=[];if(n.isInputVisual=typeof n.isInputVisual!="boolean"||n.isInputVisual,e.setOptions(n),Object.prototype.toString.call(o)==="[object Array]"){var A=0;for(l=[],A=0;A<o.length;A+=1)Object.prototype.toString.call(o[A])==="[object Array]"?l.push([e.doBidiReorder(o[A][0]),o[A][1],o[A][2]]):l.push([e.doBidiReorder(o[A])]);i.text=l}else i.text=e.doBidiReorder(o);e.setOptions({isInputVisual:!0})}])})(t5),t5.API.TTFFont=(function(){function r(t){var e;if(this.rawData=t,e=this.contents=new gl(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Rh1(this),this.registerTTF()}return r.open=function(t){return new r(t)},r.prototype.parse=function(){return this.directory=new vh1(this.contents),this.head=new _h1(this),this.name=new Bh1(this),this.cmap=new NW(this),this.toUnicode={},this.hhea=new xh1(this),this.maxp=new Sh1(this),this.hmtx=new Eh1(this),this.post=new bh1(this),this.os2=new wh1(this),this.loca=new Ph1(this),this.glyf=new Th1(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},r.prototype.registerTTF=function(){var t,e,i,o,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var l,A,d,L;for(L=[],l=0,A=(d=this.bbox).length;l<A;l++)t=d[l],L.push(Math.round(t*this.scaleFactor));return L}.call(this),this.stemV=0,this.post.exists?(i=255&(o=this.post.italic_angle),32768&(e=o>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+i)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(n=this.familyClass)===1||n===2||n===3||n===4||n===5||n===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},r.prototype.characterToGlyph=function(t){var e;return((e=this.cmap.unicode)!=null?e.codeMap[t]:void 0)||0},r.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},r.prototype.widthOfString=function(t,e,i){var o,n,l,A;for(l=0,n=0,A=(t=""+t).length;0<=A?n<A:n>A;n=0<=A?++n:--n)o=t.charCodeAt(n),l+=this.widthOfGlyph(this.characterToGlyph(o))+i*(1e3/e)||0;return l*(e/1e3)},r.prototype.lineHeight=function(t,e){var i;return e==null&&(e=!1),i=e?this.lineGap:0,(this.ascender+i-this.decender)/1e3*t},r})();var J4,gl=(function(){function r(t){this.data=t??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(t){return this.data[this.pos++]=t},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},r.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},r.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},r.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},r.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},r.prototype.readString=function(t){var e,i;for(i=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)i[e]=String.fromCharCode(this.readByte());return i.join("")},r.prototype.writeString=function(t){var e,i,o;for(o=[],e=0,i=t.length;0<=i?e<i:e>i;e=0<=i?++e:--e)o.push(this.writeByte(t.charCodeAt(e)));return o},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(t){return this.writeInt16(t)},r.prototype.readLongLong=function(){var t,e,i,o,n,l,A,d;return t=this.readByte(),e=this.readByte(),i=this.readByte(),o=this.readByte(),n=this.readByte(),l=this.readByte(),A=this.readByte(),d=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^i)+4294967296*(255^o)+16777216*(255^n)+65536*(255^l)+256*(255^A)+(255^d)+1):72057594037927940*t+281474976710656*e+1099511627776*i+4294967296*o+16777216*n+65536*l+256*A+d},r.prototype.writeLongLong=function(t){var e,i;return e=Math.floor(t/4294967296),i=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(t){return this.writeInt32(t)},r.prototype.read=function(t){var e,i;for(e=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)e.push(this.readByte());return e},r.prototype.write=function(t){var e,i,o,n;for(n=[],i=0,o=t.length;i<o;i++)e=t[i],n.push(this.writeByte(e));return n},r})(),vh1=(function(){var r;function t(e){var i,o,n;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},o=0,n=this.tableCount;0<=n?o<n:o>n;o=0<=n?++o:--o)i={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[i.tag]=i}return t.prototype.encode=function(e){var i,o,n,l,A,d,L,C,y,E,B,Z,Q;for(Q in B=Object.keys(e).length,d=Math.log(2),y=16*Math.floor(Math.log(B)/d),l=Math.floor(y/d),C=16*B-y,(o=new gl).writeInt(this.scalarType),o.writeShort(B),o.writeShort(y),o.writeShort(l),o.writeShort(C),n=16*B,L=o.pos+n,A=null,Z=[],e)for(E=e[Q],o.writeString(Q),o.writeInt(r(E)),o.writeInt(L),o.writeInt(E.length),Z=Z.concat(E),Q==="head"&&(A=L),L+=E.length;L%4;)Z.push(0),L++;return o.write(Z),i=2981146554-r(o.data),o.pos=A+8,o.writeUInt32(i),o.data},r=function(e){var i,o,n,l;for(e=UW.call(e);e.length%4;)e.push(0);for(n=new gl(e),o=0,i=0,l=e.length;i<l;i=i+=4)o+=n.readUInt32();return 4294967295&o},t})(),yh1={}.hasOwnProperty,Jo=function(r,t){for(var e in t)yh1.call(t,e)&&(r[e]=t[e]);function i(){this.constructor=r}return i.prototype=t.prototype,r.prototype=new i,r.__super__=t.prototype,r};J4=(function(){function r(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return r.prototype.parse=function(){},r.prototype.encode=function(){},r.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},r})();var _h1=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="head",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},r.prototype.encode=function(t){var e;return(e=new gl).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},r})(),SW=(function(){function r(t,e){var i,o,n,l,A,d,L,C,y,E,B,Z,Q,V,G,J,n1;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),y=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(d=0;d<256;++d)this.codeMap[d]=t.readByte();break;case 4:for(B=t.readUInt16(),E=B/2,t.pos+=6,n=(function(){var r1,m1;for(m1=[],d=r1=0;0<=E?r1<E:r1>E;d=0<=E?++r1:--r1)m1.push(t.readUInt16());return m1})(),t.pos+=2,Q=(function(){var r1,m1;for(m1=[],d=r1=0;0<=E?r1<E:r1>E;d=0<=E?++r1:--r1)m1.push(t.readUInt16());return m1})(),L=(function(){var r1,m1;for(m1=[],d=r1=0;0<=E?r1<E:r1>E;d=0<=E?++r1:--r1)m1.push(t.readUInt16());return m1})(),C=(function(){var r1,m1;for(m1=[],d=r1=0;0<=E?r1<E:r1>E;d=0<=E?++r1:--r1)m1.push(t.readUInt16());return m1})(),o=(this.length-t.pos+this.offset)/2,A=(function(){var r1,m1;for(m1=[],d=r1=0;0<=o?r1<o:r1>o;d=0<=o?++r1:--r1)m1.push(t.readUInt16());return m1})(),d=G=0,n1=n.length;G<n1;d=++G)for(V=n[d],i=J=Z=Q[d];Z<=V?J<=V:J>=V;i=Z<=V?++J:--J)C[d]===0?l=i+L[d]:(l=A[C[d]/2+(i-Z)-(E-d)]||0)!==0&&(l+=L[d]),this.codeMap[i]=65535&l}t.pos=y}return r.encode=function(t,e){var i,o,n,l,A,d,L,C,y,E,B,Z,Q,V,G,J,n1,r1,m1,w1,S1,g1,L1,z1,s1,x1,N1,V1,l2,p2,o2,G1,L2,V2,w2,u1,P1,F1,J1,u2,r2,F2,k2,j2,R2,it;switch(V1=new gl,l=Object.keys(t).sort(function(pt,N2){return pt-N2}),e){case"macroman":for(Q=0,V=(function(){var pt=[];for(Z=0;Z<256;++Z)pt.push(0);return pt})(),J={0:0},n={},l2=0,L2=l.length;l2<L2;l2++)J[k2=t[o=l[l2]]]==null&&(J[k2]=++Q),n[o]={old:t[o],new:J[t[o]]},V[o]=J[t[o]];return V1.writeUInt16(1),V1.writeUInt16(0),V1.writeUInt32(12),V1.writeUInt16(0),V1.writeUInt16(262),V1.writeUInt16(0),V1.write(V),{charMap:n,subtable:V1.data,maxGlyphID:Q+1};case"unicode":for(x1=[],y=[],n1=0,J={},i={},G=L=null,p2=0,V2=l.length;p2<V2;p2++)J[m1=t[o=l[p2]]]==null&&(J[m1]=++n1),i[o]={old:m1,new:J[m1]},A=J[m1]-o,G!=null&&A===L||(G&&y.push(G),x1.push(o),L=A),G=o;for(G&&y.push(G),y.push(65535),x1.push(65535),z1=2*(L1=x1.length),g1=2*Math.pow(Math.log(L1)/Math.LN2,2),E=Math.log(g1/2)/Math.LN2,S1=2*L1-g1,d=[],w1=[],B=[],Z=o2=0,w2=x1.length;o2<w2;Z=++o2){if(s1=x1[Z],C=y[Z],s1===65535){d.push(0),w1.push(0);break}if(s1-(N1=i[s1].new)>=32768)for(d.push(0),w1.push(2*(B.length+L1-Z)),o=G1=s1;s1<=C?G1<=C:G1>=C;o=s1<=C?++G1:--G1)B.push(i[o].new);else d.push(N1-s1),w1.push(0)}for(V1.writeUInt16(3),V1.writeUInt16(1),V1.writeUInt32(12),V1.writeUInt16(4),V1.writeUInt16(16+8*L1+2*B.length),V1.writeUInt16(0),V1.writeUInt16(z1),V1.writeUInt16(g1),V1.writeUInt16(E),V1.writeUInt16(S1),r2=0,u1=y.length;r2<u1;r2++)o=y[r2],V1.writeUInt16(o);for(V1.writeUInt16(0),F2=0,P1=x1.length;F2<P1;F2++)o=x1[F2],V1.writeUInt16(o);for(j2=0,F1=d.length;j2<F1;j2++)A=d[j2],V1.writeUInt16(A);for(R2=0,J1=w1.length;R2<J1;R2++)r1=w1[R2],V1.writeUInt16(r1);for(it=0,u2=B.length;it<u2;it++)Q=B[it],V1.writeUInt16(Q);return{charMap:i,subtable:V1.data,maxGlyphID:n1+1}}},r})(),NW=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="cmap",r.prototype.parse=function(t){var e,i,o;for(t.pos=this.offset,this.version=t.readUInt16(),o=t.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=o?i<o:i>o;i=0<=o?++i:--i)e=new SW(t,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},r.encode=function(t,e){var i,o;return e==null&&(e="macroman"),i=SW.encode(t,e),(o=new gl).writeUInt16(0),o.writeUInt16(1),i.table=o.data.concat(i.subtable),i},r})(),xh1=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="hhea",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},r})(),wh1=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="OS/2",r.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var e,i;for(i=[],e=0;e<10;++e)i.push(t.readByte());return i})(),this.charRange=(function(){var e,i;for(i=[],e=0;e<4;++e)i.push(t.readInt());return i})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var e,i;for(i=[],e=0;e<2;e=++e)i.push(t.readInt());return i})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},r})(),bh1=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="post",r.prototype.parse=function(t){var e,i,o;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var n;for(i=t.readUInt16(),this.glyphNameIndex=[],n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],o=[];t.pos<this.offset+this.length;)e=t.readByte(),o.push(this.names.push(t.readString(e)));return o;case 151552:return i=t.readUInt16(),this.offsets=t.read(i);case 262144:return this.map=function(){var l,A,d;for(d=[],n=l=0,A=this.file.maxp.numGlyphs;0<=A?l<A:l>A;n=0<=A?++l:--l)d.push(t.readUInt32());return d}.call(this)}},r})(),Mh1=function(r,t){this.raw=r,this.length=r.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Bh1=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="name",r.prototype.parse=function(t){var e,i,o,n,l,A,d,L,C,y,E;for(t.pos=this.offset,t.readShort(),e=t.readShort(),A=t.readShort(),i=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)i.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+A+t.readShort()});for(d={},n=C=0,y=i.length;C<y;n=++C)o=i[n],t.pos=o.offset,L=t.readString(o.length),l=new Mh1(L,o),d[E=o.nameID]==null&&(d[E]=[]),d[o.nameID].push(l);this.strings=d,this.copyright=d[0],this.fontFamily=d[1],this.fontSubfamily=d[2],this.uniqueSubfamily=d[3],this.fontName=d[4],this.version=d[5];try{this.postscriptName=d[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=d[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=d[7],this.manufacturer=d[8],this.designer=d[9],this.description=d[10],this.vendorUrl=d[11],this.designerUrl=d[12],this.license=d[13],this.licenseUrl=d[14],this.preferredFamily=d[15],this.preferredSubfamily=d[17],this.compatibleFull=d[18],this.sampleText=d[19]},r})(),Sh1=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="maxp",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},r})(),Eh1=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="hmtx",r.prototype.parse=function(t){var e,i,o,n,l,A,d;for(t.pos=this.offset,this.metrics=[],e=0,A=this.file.hhea.numberOfMetrics;0<=A?e<A:e>A;e=0<=A?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var L,C;for(C=[],e=L=0;0<=o?L<o:L>o;e=0<=o?++L:--L)C.push(t.readInt16());return C})(),this.widths=function(){var L,C,y,E;for(E=[],L=0,C=(y=this.metrics).length;L<C;L++)n=y[L],E.push(n.advance);return E}.call(this),i=this.widths[this.widths.length-1],d=[],e=l=0;0<=o?l<o:l>o;e=0<=o?++l:--l)d.push(this.widths.push(i));return d},r.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},r})(),UW=[].slice,Th1=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="glyf",r.prototype.parse=function(){return this.cache={}},r.prototype.glyphFor=function(t){var e,i,o,n,l,A,d,L,C,y;return t in this.cache?this.cache[t]:(n=this.file.loca,e=this.file.contents,i=n.indexOf(t),(o=n.lengthOf(t))===0?this.cache[t]=null:(e.pos=this.offset+i,l=(A=new gl(e.read(o))).readShort(),L=A.readShort(),y=A.readShort(),d=A.readShort(),C=A.readShort(),this.cache[t]=l===-1?new Fh1(A,L,y,d,C):new Ih1(A,l,L,y,d,C),this.cache[t]))},r.prototype.encode=function(t,e,i){var o,n,l,A,d;for(l=[],n=[],A=0,d=e.length;A<d;A++)o=t[e[A]],n.push(l.length),o&&(l=l.concat(o.encode(i)));return n.push(l.length),{table:l,offsets:n}},r})(),Ih1=(function(){function r(t,e,i,o,n,l){this.raw=t,this.numberOfContours=e,this.xMin=i,this.yMin=o,this.xMax=n,this.yMax=l,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r})(),Fh1=(function(){function r(t,e,i,o,n){var l,A;for(this.raw=t,this.xMin=e,this.yMin=i,this.xMax=o,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],l=this.raw;A=l.readShort(),this.glyphOffsets.push(l.pos),this.glyphIDs.push(l.readUInt16()),32&A;)l.pos+=1&A?4:2,128&A?l.pos+=8:64&A?l.pos+=4:8&A&&(l.pos+=2)}return r.prototype.encode=function(){var t,e,i;for(e=new gl(UW.call(this.raw.data)),t=0,i=this.glyphIDs.length;t<i;++t)e.pos=this.glyphOffsets[t];return e.data},r})(),Ph1=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return Jo(r,J4),r.prototype.tag="loca",r.prototype.parse=function(t){var e,i;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?function(){var o,n;for(n=[],i=0,o=this.length;i<o;i+=2)n.push(2*t.readUInt16());return n}.call(this):function(){var o,n;for(n=[],i=0,o=this.length;i<o;i+=4)n.push(t.readUInt32());return n}.call(this)},r.prototype.indexOf=function(t){return this.offsets[t]},r.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},r.prototype.encode=function(t,e){for(var i=new Uint32Array(this.offsets.length),o=0,n=0,l=0;l<i.length;++l)if(i[l]=o,n<e.length&&e[n]==l){++n,i[l]=o;var A=this.offsets[l],d=this.offsets[l+1]-A;d>0&&(o+=d)}for(var L=new Array(4*i.length),C=0;C<i.length;++C)L[4*C+3]=255&i[C],L[4*C+2]=(65280&i[C])>>8,L[4*C+1]=(16711680&i[C])>>16,L[4*C]=(4278190080&i[C])>>24;return L},r})(),Rh1=(function(){function r(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var t,e,i,o,n;for(e in o=this.font.cmap.tables[0].codeMap,t={},n=this.subset)i=n[e],t[e]=o[i];return t},r.prototype.glyphsFor=function(t){var e,i,o,n,l,A,d;for(o={},l=0,A=t.length;l<A;l++)o[n=t[l]]=this.font.glyf.glyphFor(n);for(n in e=[],o)(i=o[n])!=null&&i.compound&&e.push.apply(e,i.glyphIDs);if(e.length>0)for(n in d=this.glyphsFor(e))i=d[n],o[n]=i;return o},r.prototype.encode=function(t,e){var i,o,n,l,A,d,L,C,y,E,B,Z,Q,V,G;for(o in i=NW.encode(this.generateCmap(),"unicode"),l=this.glyphsFor(t),B={0:0},G=i.charMap)B[(d=G[o]).old]=d.new;for(Z in E=i.maxGlyphID,l)Z in B||(B[Z]=E++);return C=(function(J){var n1,r1;for(n1 in r1={},J)r1[J[n1]]=n1;return r1})(B),y=Object.keys(C).sort(function(J,n1){return J-n1}),Q=(function(){var J,n1,r1;for(r1=[],J=0,n1=y.length;J<n1;J++)A=y[J],r1.push(C[A]);return r1})(),n=this.font.glyf.encode(l,Q,B),L=this.font.loca.encode(n.offsets,Q),V={cmap:this.font.cmap.raw(),glyf:n.table,loca:L,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(V["OS/2"]=this.font.os2.raw()),this.font.directory.encode(V)},r})();t5.API.PDFObject=(function(){var r;function t(){}return r=function(e,i){return(Array(i+1).join("0")+e).slice(-i)},t.convert=function(e){var i,o,n,l;if(Array.isArray(e))return"["+(function(){var A,d,L;for(L=[],A=0,d=e.length;A<d;A++)i=e[A],L.push(t.convert(i));return L})().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e?.isString)return"("+e+")";if(e instanceof Date)return"(D:"+r(e.getUTCFullYear(),4)+r(e.getUTCMonth(),2)+r(e.getUTCDate(),2)+r(e.getUTCHours(),2)+r(e.getUTCMinutes(),2)+r(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(o in n=["<<"],e)l=e[o],n.push("/"+o+" "+t.convert(l));return n.push(">>"),n.join(`
|
|
1280
|
-
`)}return""+e},t})();var uI=!1;var zh1=(r,t,e,i=1)=>{let n,l;do n=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),l=parseInt(n[0].replace(n[1],""),10),r.font=r.font.replace(l,l-1),uI=!1,l-1===8&&(uI=!0);while(l-1>8&&r.measureText(e).width*i>t);return r.font};var Dh1=(function(){function r(e,i,o){for(let n=0;n<i;++n)if(e.data[o*i*4+n*4+3]!==0)return!1;return!0}function t(e,i,o,n,l){for(let A=n;A<l;++A)if(e.data[A*i*4+o*4+3]!==0)return!1;return!0}return function(e){let i=e.getContext("2d"),o=e.width,n=i.getImageData(0,0,e.width,e.height),l=n.height,A=0,d=n.width,L=0;for(;L<l&&r(n,o,L);)++L;for(;l-1>L&&r(n,o,l-1);)--l;for(;A<d&&t(n,o,A,L,l);)++A;for(;d-1>A&&t(n,o,d-1,L,l);)--d;let C=i.getImageData(A,L,d-A,l-L),y=e.ownerDocument.createElement("canvas"),E=y.getContext("2d");return y.width=C.width,y.height=C.height,E.putImageData(C,0,0),y}})(),kh1=(r,t,e,i)=>{let o=document.createElement("canvas");o.width=t,o.height=e;let{fillStyle:n="black",font:l="12px Arial",textAlign:A="left",textBaseline:d="top"}=i,L=o.getContext("2d");L.fillStyle=n,L.font=l,L.font=zh1(L,o.width,r),L.textAlign=A,L.textBaseline=d;let C=r,y=L.measureText(C);if(uI){let G=r.split(" ").length;for(let J=0;J<G&&!(y.width*1<o.width);J+=1)C=C.substring(0,C.lastIndexOf(" ")),y=L.measureText(C)}let E=r.replace(C,"").trim(),B=[C,E].filter(G=>!!G);d==="bottom"&&(B=B.reverse());let Z=A==="right"?o.width:0,Q=d==="bottom"?o.height:0;return B.forEach(G=>{let{fontBoundingBoxAscent:J,fontBoundingBoxDescent:n1}=L.measureText(G),r1=J+n1;L.fillText(G,Z,Q);let m1=r1;d==="bottom"&&(m1=-r1),Q=Q+m1}),Dh1(o)},Oh1=(r,t,e={})=>{let{fillStyle:i,font:o,margin:n=10,placement:l="bottom-left"}=e,[A,d]=l.split("-"),L=typeof r=="function"?r():r,C=kh1(L,t.width,t.height,{fillStyle:i,font:o,textAlign:d,textBaseline:A}),y=n,E=n;d==="right"&&(y=t.width-C.width-n),A==="bottom"&&(E=t.height-C.height-n),t.getContext("2d").drawImage(C,y,E)};var Zh1=(r,t,e)=>{let i,o;if(t?(i=jl(t),o=Gl(t)):e&&([i,,o]=e),i&&o){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(o),A=[n[0]<=l[0]?n[0]:l[0],n[1]<=l[1]?n[1]:l[1]],d=[n[0]>l[0]?n[0]:l[0],n[1]>l[1]?n[1]:l[1]];return{h:d[1]-A[1],w:d[0]-A[0],x:A[0],y:A[1]}}return null},QW=(r,t,e)=>{let i=r.getTargetElement().getElementsByTagName("canvas"),o,n;for(let l=0;l<i.length;l+=1){let A=i[l];if(!A.width||!A.height)continue;let d=Zh1(r,t,e)||{h:A.height,w:A.width,x:0,y:0};o||(o=document.createElement("canvas"),o.width=d.w,o.height=d.h,n=o.getContext("2d")),n.drawImage(A,d.x,d.y,d.w,d.h,0,0,o.width,o.height)}return Promise.resolve(o)},Nh1=(r,t="image/png",e=i=>i.replace("/","."))=>{try{if(window.navigator.msSaveBlob){let i;try{i=r.msToBlob()}catch(n){console.error(n)}let o=new Blob([i],{type:t});window.navigator.msSaveBlob(o,e(t))}else r.toBlob(i=>{let o=document.createElement("a");o.download=e(t),o.href=URL.createObjectURL(i),document.body.appendChild(o),o.click()},t);return Promise.resolve(!0)}catch(i){return console.error(i),Promise.resolve(!1)}},Uh1=async(r,t,e,i,o={},n={})=>{let l=i||r.getSize(),A=e,d=document.createElement("div");d.style.width=`${l[0]}px`,d.style.height=`${l[1]}px`,d.style.margin="0 0 0 -50000px",document.body.style.overflow="hidden",d.style.position="absolute",d.style.top="400px",d.style.zIndex="10000",document.body.append(d);let L=new Ac({pixelRatio:window.devicePixelRatio,target:d,view:new $i({center:r.getView().getCenter(),projection:r.getView().getProjection(),zoom:r.getView().getZoom(),...n}),...o});return A&&L.getView().fit(A),L.setLayers(t),await new Promise(y=>{let E=window.setTimeout(()=>{y(L)},1e4);L.once("rendercomplete",()=>{clearTimeout(E),y(L)})})},Qh1={A0:[3370,2384],A1:[2384,1684],A3:[1191,842],A4:[842,595]};async function Hh1(r,t={},e={}){let{maxExtent:i,onAfter:o,onBefore:n,pixelRatio:l=3,useCopyright:A=!0,usePlaceholder:d=!0}=e,L=t?.format||"A4",C=Qh1[L]||L,y=C.map(n1=>n1*96/72),E=i,B=window.devicePixelRatio;Object.defineProperty(window,"devicePixelRatio",{get(){return l}});let Z;d&&(Z=await QW(r),Z.style.zIndex="0",Z.style.position="absolute",r.getViewport().querySelector(".ol-layers").insertAdjacentElement("afterend",Z));let Q=[...r.getLayers().getArray()],V=e?.copyrightOptions?.text||r.getControls().getArray().find(n1=>n1 instanceof Hd)?.element?.textContent;r.getLayers().clear(),n?.(r,Q);let G=await Uh1(r,Q,E,y,{pixelRatio:l});Object.defineProperty(window,"devicePixelRatio",{get(){return B}});let J=await QW(G);if(G.getLayers().clear(),G.getTargetElement().remove(),G.setTarget(null),G.dispose(),document.body.style.overflow="auto",r.setLayers(Q),o?.(r,Q),Z&&r.once("rendercomplete",()=>{Z.remove()}),A&&Oh1(V,J,{...e?.copyrightOptions||{},font:`${(l*12).toString()}px Arial`}),/^A[0-9]{1,2}/.test(L)||L?.length===2){try{let n1=new t5({orientation:"landscape",unit:"pt",...t});n1.addImage(J,"JPEG",0,0,C[0],C[1]),n1.save(`${jO}-${new Date().toISOString().slice(0,10)}.pdf`)}catch(n1){return console.error(n1),!1}return!0}else return await Nh1(J)}var HW=Hh1;var Vh1=r=>{let t=[];function e(i){i.forEach(function(o){o instanceof Uo?e(o.getLayers()):t.push(o)})}return e(r?.getLayers?.()||r),t},hI=Vh1;var VW=["A4","A3","A1","A0"],AI=!1;function Gh1({...r}){let{map:t,realtimeLayer:e}=Ot(),[i,o]=Ft(!1),[n,l]=Ft(VW[0]),A=w4(),d=w4(),[L,C]=Ft(!1),[y,E]=Ft(!1),{t:B}=L3();return W("div",{...r,children:[W("div",{className:"flex flex-1 flex-col gap-4",children:[W("div",{className:"flex flex-wrap items-center gap-2",children:[W(Bh,{checked:i,id:A,onChange:()=>o(!i)}),W("label",{htmlFor:A,children:B("export_all_region")})]}),W("div",{className:"flex flex-wrap items-center gap-2",children:[W("label",{htmlFor:d,children:[B("export_format_title"),":"]}),W(Og,{className:"w-24",id:d,onChange:Z=>{l(Z.target.value)},children:VW.map(Z=>W("option",{children:Z},Z))})]})]}),W("div",{children:W($a,{disabled:L,onClick:async()=>{E(!1),C(!0);let Z=await HW(t,{format:n},{maxExtent:i?xh:void 0,onAfter:(Q,V)=>{e&&AI!==e?.getVisible()&&e.setVisible(AI),hI(V).forEach(G=>{G.set(Vo,!1)}),Q.set(Vo,!1)},onBefore:(Q,V)=>{Q.set(Vo,!0),e&&(AI=e.getVisible(),e.getVisible()&&e.setVisible(!1)),hI(V).forEach(G=>{G.set(Vo,!0)})}});setTimeout(()=>{C(!1),E(!Z)},1e3)},children:B(L?"exporting":y?"error":"download")})})]})}var dI=ht(Gh1);var GW=M9(null),hy=M9(null);function jh1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("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 Kp=jh1;var jW='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="none" stroke-width="1" fill="none" 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" id="Line-6" fill="%23000000" fill-rule="nonzero"></path>%0A </g>%0A</svg>';function qW({childContainerClassName:r,childItems:t,className:e,isCollapsedOnControlClick:i,isControlChecked:o,layer:n,selectionType:l,title:A}){let[d,L]=Ft(!0),C=r7(hy),y=w4(),E=w4(),{t:B}=L3();rt(()=>{i&&L(o)},[o,i,n]);let Z=()=>{L(!d),i&&!d&&C({payload:{...this.props,isControlChecked:!0},type:"SELECT_ITEM"})},Q=J=>{C({payload:{...this.props,isControlChecked:J.target.checked},type:"SELECT_ITEM"})},V=t.filter(({title:J})=>!!J).map((J,n1)=>W(qW,{...J},n1));if(!A)return null;let G=()=>t.length>0?t.filter(n1=>n1.isControlChecked).length===t.length?!1:t.some(n1=>n1.isControlChecked):!1;return W(m5,{children:[W("div",{className:Fe("flex items-center gap-2 py-2",e),children:[l==="radio"?null:W(Bh,{checked:o,checkedIconUrl:G()?jW:null,className:G()?"bg-[length:18px]":"",id:y,onChange:Q}),W("label",{className:"flex-1 cursor-pointer",htmlFor:V.length>0?E:y,children:typeof A=="string"?B(A):A}),V.length>0&&W("button",{className:"flex cursor-pointer items-center gap-2",id:E,onClick:Z,children:d?W(Kp,{}):W(mc,{})})]}),d&&V.length>0&&W("div",{className:Fe("pl-6",r),children:V})]})}var fI=qW;var WW={childItems:[],parent:null},$W=(r,t)=>{for(let e of r)e.parent=t,e.childItems.length&&$W(e.childItems,e)},Kh1=r=>{let t={...WW};return t.childItems=r,$W(t.childItems,t),t},XW=(r,t)=>{if(r.id===t.id)return r;if(r.childItems.length)for(let e of r.childItems){let i=XW(e,t);if(i)return i}},pI=(r,t,e)=>{if(t.isControlChecked)if(t.selectionType==="checkbox")r.isControlChecked=t.isControlChecked,r.layer.setVisible(r.isControlChecked);else for(let i of r.parent.childItems)i.isControlChecked=i.id===r.id,i.isControlChecked||YW(i);else t.selectionType==="checkbox"&&(r.isControlChecked=t.isControlChecked,r.layer.setVisible(r.isControlChecked));r.childItems.length&&!e&&LI(r),Xh1(r)},Wh1=(r,t)=>{let e=XW(r,t);return e&&pI(e,t,!1),{...r}},LI=r=>{r.childItems[0].selectionType==="radio"?YW(r):$h1(r)},YW=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&&LI(r.childItems[0])},$h1=r=>{for(let t of r.childItems)t.isControlChecked=r.isControlChecked,t.layer.setVisible(t.isControlChecked),t.childItems.length&&LI(t)},Xh1=r=>{if(r.parent){if(r.parent.selectionType==="checkbox"){let t={...r.parent,isControlChecked:r.parent.childItems.some(e=>e.isControlChecked)};pI(r.parent,t,!0)}else if(r?.parent?.parent){let t={...r.parent,isControlChecked:r.parent.childItems.some(e=>e.isControlChecked)};pI(r.parent,t,!0)}}};function Yh1(r=WW,t){switch(t.type){case"INIT":return Kh1(t.payload);case"SELECT_ITEM":return Wh1(r,t.payload);default:return r}}var JW=Yh1;function Jh1({className:r,layers:t,treeItemProps:e,...i}){let[o,n]=Iu(JW,t);return rt(()=>{n({payload:t,type:"INIT"})},[t]),W(GW.Provider,{value:o,children:W(hy.Provider,{value:n,children:W("div",{className:Fe("relative flex flex-col",r),...i,children:t.map(l=>q8(fI,{...e||{},className:Fe("w-full",e?.className),key:l.id,...l}))})})})}var CI=ht(Jh1);function tA1(){let{layersconfig:r}=Ot(),[t,e]=Ft({});return rt(()=>{try{let i=JSON.parse(r||"{}");Object.values(Et).forEach(o=>{i[o]={title:o,...i[o]||{}}}),e(i)}catch(i){console.error("Error parsing layersconfig:",i)}},[r]),t}var Ay=tA1;var t$=(r,t,e={})=>{let i=e[r.get("name")]?.title||"",o=r.get("layerTreeTitle"),n=i;return typeof o=="function"&&(n=o(n)),{childItems:r?.getLayers?.().getArray().map(l=>t$(l,t,e))||[],id:vr(r),isControlChecked:r.getVisible(),layer:r,revision:t,selectionType:"checkbox",title:n}};function eA1({order:r=TO,...t}){let{map:e}=Ot(),[i,o]=Ft(0),n=Ay(),l=ye(()=>e?.getLayers().getArray().sort((d,L)=>r&&r.indexOf(d.get("name"))>r.indexOf(L.get("name"))?1:-1).map(d=>t$(d,i,n))||[],[n,e,r,i]);return rt(()=>{let A=[];return M4(e.getLayers().getArray()).forEach(L=>{let C=L.on("change:visible",()=>{o(y=>y+1)});A.push(C)}),A.push(e.on("change:layergroup",()=>{o(L=>L+1)}),e.getLayers().on("add",()=>{o(L=>L+1)}),e.getLayers().on("remove",()=>{o(L=>L+1)})),()=>{Lr(A)}},[e]),W(CI,{layers:l,...t})}var gI=ht(eA1);function rA1(r){return W("svg",{height:"24",viewBox:"0 0 42 42",width:"24",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("path",{d:"M40,20A20,20,0,1,1,20,0,20,20,0,0,1,40,20Z","data-name":"Pfad 1",fill:"#353535",id:"Pfad_1",transform:"translate(0 0)"}),W("path",{d:"M25.481,11.843a9.993,9.993,0,0,0-10,9.992c0,7.773,10,14.8,10,14.8s9.992-7.5,9.992-14.8a9.991,9.991,0,0,0-9.992-9.992m0,14.662a4.924,4.924,0,1,1,4.924-4.924A4.93,4.93,0,0,1,25.482,26.5","data-name":"Pfad 2",fill:"#fff",id:"Pfad_2",transform:"translate(-5.477 -4.19)"}),W("path",{d:"M12.015,8.124,38.081,34.031,35.4,36.536,9.06,10.527Z","data-name":"Pfad 3",fill:"#ec0016",id:"Pfad_3",transform:"translate(-3.206 -2.874)"}),W("path",{d:"M20,3.231A16.769,16.769,0,1,1,3.231,20,16.788,16.788,0,0,1,20,3.231M20,0A20,20,0,1,0,40,20,20,20,0,0,0,20,0","data-name":"Pfad 4",fill:"#353535",id:"Pfad_4",transform:"translate(0 0)"})]})}var mI=rA1;var iA1=(r,t)=>{if(r==="bus")return"#646363";if(r==="tram"){let e=GO[t?.name];if(e)return e}return So.getBgColor(r)},dy=iA1;var nA1=(r=null)=>{let t=r?.properties?.line||r?.line||r,e=t?.color;if(!e){let i=r?.properties?.type||r?.type;if(!i){let o=r?.vehicleType;Number.isFinite(o)||(o=r?.train_type),Number.isFinite(o)?i=o:i="rail"}e=dy(i,t)}return e&&e[0]!=="#"&&(e=`#${e}`),e},fy=nA1;var oA1=r=>r==="bus"||r==="tram"?"#fff":So.getTextColor(r),py=oA1;var aA1=(r,t)=>`bold ${r}px arial`,Ly=aA1;var sA1=(r="")=>r?.properties?.line?.name||r?.line?.name||r?.name||r||"",Cy=sA1;var lA1=[16,16,16,14,12];function cA1({children:r,className:t,departure:e,displayNoRealtimeIcon:i=!1,line:o,stopSequence:n,trajectory:l,...A}){let d=o||e?.line||n?.line||l?.properties?.line,L=d?.type||n?.type||l?.type,C=fy(o||e||n||l),y=d?.text_color||py(L),E=d?.stroke||"black",B=Cy(o||e||n||l),Z=lA1[B.length]||12,Q=Ly(Z,B),V=n?.has_realtime_journey===!0,G=!!n,J=n?.stations[0]?.state==="JOURNEY_CANCELLED";return E===C&&(E="black"),W("span",{className:Fe("relative flex h-[40px] min-w-[40px] items-center justify-center rounded-full border-2 px-1",t),style:{backgroundColor:C,borderColor:E,color:y,font:Q},...A,children:[r||B,i&&G&&!J&&!V&&W(mI,{className:"absolute -top-2 -left-2"})]})}var e$=cA1;function uA1(r){return W(e$,{...r,className:"border",displayNoRealtimeIcon:!0})}var ml=uA1;function hA1({children:r,className:t,...e}){return W("div",{...e,className:Fe("relative overflow-y-auto",t),children:[W("div",{className:"pointer-events-none sticky top-0 right-0 left-0 h-4 bg-gradient-to-t from-transparent to-white"}),r,W("div",{className:"pointer-events-none sticky right-0 bottom-[-1px] left-0 h-4 bg-gradient-to-b from-transparent to-white"})]})}var to=ht(hA1);var vI=null,r$=null,AA1="network_plans",dA1="geops.lnp.lines",fA1="geops.lnp.stops",pA1="runs",yI="original_line_id";function LA1({className:r,features:t,...e}){let{baseLayer:i}=Ot(),[o,n]=Ft(null),[l,A]=Ft(null),[d,L]=Ft(null),C=ye(()=>new URLSearchParams(window.location.search).get("runs")==="true",[]);rt(()=>{let B=i?.mapLibreMap?.getSource(AA1),Z=new AbortController,Q=async V=>{if(!vI){let J=await(await fetch(V,{signal:Z.signal})).json();vI=J[dA1],r$=J[fA1]}n(vI),A(r$)};return B?.url&&Q(B?.url),()=>{Z?.abort()}},[i?.mapLibreMap]);let y=ye(()=>{let B={};return[...new Set(t.map(Z=>Z.get(yI)))].filter(Z=>!!Z&&!!o?.[Z]).forEach(Z=>{let{operator_name:Q}=o[Z];B[Q]||(B[Q]=[],B[Q].runs=0),o[Z].id=Z;let V=t.filter(G=>G.get(yI)===Z).reduce((G,J)=>G+J.get(pA1),0);o[Z].id=Z,o[Z].runs=V,B[Q].runs+=V,B[Q].push(o[Z])}),B},[t,o]),E=ye(()=>{let B={};return t.forEach(Z=>{let Q=Z.get(yI);if(Q&&!B[Q]&&Z.get("stop_ids"))try{B[Q]=JSON.parse(Z.get("stop_ids"))}catch(V){console.log(V)}}),B},[t]);return!t?.length||!o?null:W(to,{...e,className:Fe("px-4 text-base",r),children:W("div",{className:"space-y-4",children:Object.entries(y).sort(([B],[Z])=>y[B].runs<y[Z].runs?1:-1).map(([B,Z])=>W("div",{className:"flex flex-col gap-2",children:[W("div",{children:B}),W("div",{className:"flex flex-wrap gap-2",children:Z.sort((Q,V)=>Q.runs<V.runs?1:-1).map(Q=>{let{color:V,long_name:G,mot:J,runs:n1,short_name:r1,text_color:m1}=Q,w1=G,S1=null;if(S1?.length||(S1=null),!w1&&S1){let L1=S1.map(z1=>l[z1].short_name);w1=[...new Set([L1[0],L1[L1.length-1]])].join(" - ")}let g1={color:null,id:null,name:r1,stroke:null,text_color:null,type:J};return m1&&(g1.text_color=m1.startsWith("#")?m1:`#${m1}`),V&&(g1.color=V.startsWith("#")?V:`#${V}`),W("div",{className:w1?"w-full":"",children:W("div",{className:"flex justify-between gap-2",children:[W("div",{children:W(ml,{line:g1})}),!!w1&&W("div",{className:"flex-1 text-left *:before:content-['_\u2013'] *:first:font-semibold *:first:before:!content-[_p] *:last:font-semibold *:last:before:!content-[_p]",children:w1.split("-").map(L1=>W("div",{children:L1},L1))}),C&&W("div",{className:"text-xs",children:n1})]})},r1)})})]},B))})})}var gy=LA1;function CA1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("defs",{children:[W("polygon",{id:"path-1",points:"-1.11022302e-16 0 2.0005 0 2.0005 2.0002 -1.11022302e-16 2.0002"}),W("polygon",{id:"path-3",points:"0 0 2 0 2 7.9998 0 7.9998"})]}),W("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[W("circle",{cx:"12",cy:"12",fill:"#E3000B",id:"Oval",r:"11"}),W("g",{id:"Group-9",transform:"translate(10.999750, 6.500000)",children:[W("g",{id:"Group-3",transform:"translate(0.000000, 8.999800)",children:[W("mask",{fill:"white",id:"mask-2",children:W("use",{xlinkHref:"#path-1"})}),W("g",{id:"Clip-2"}),W("path",{d:"M0.29325,0.293 C-0.09775,0.684 -0.09775,1.317 0.29325,1.707 C0.68425,2.098 1.31725,2.098 1.70725,1.707 C2.09825,1.317 2.09825,0.684 1.70725,0.293 C1.51225,0.098 1.25825,0.001 1.00225,0 L0.99925,0 C0.74325,0.001 0.48825,0.098 0.29325,0.293",fill:"#FFFFFF",id:"Fill-1",mask:"url(#mask-2)"})]}),W("path",{d:"M0.99875,8.9998 L1.00275,8.9998 L0.99875,8.9998 Z",fill:"#FFFFFF",id:"Fill-4"}),W("g",{id:"Group-8",transform:"translate(0.000350, 0.000000)",children:[W("mask",{fill:"white",id:"mask-4",children:W("use",{xlinkHref:"#path-3"})}),W("g",{id:"Clip-7"}),W("path",{d:"M1,-0.0002 C0.448,-0.0002 0,0.4478 0,0.9998 L0,6.9998 C0,7.4008 0.24,7.7428 0.582,7.9018 C0.71,7.9618 0.849,7.9998 1,7.9998 C1.151,7.9998 1.29,7.9618 1.418,7.9018 C1.76,7.7428 2,7.4008 2,6.9998 L2,0.9998 C2,0.4478 1.552,-0.0002 1,-0.0002",fill:"#FFFFFF",id:"Fill-6",mask:"url(#mask-4)"})]})]})]})]})}var _I=CA1;function gA1(r){return W("svg",{height:"24px",style:"transform: rotate(-45deg);",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("title",{children:"iconfont/right"}),W("g",{fill:"none",fillRule:"evenodd",id:"iconfont/right",stroke:"none",strokeWidth:"1",style:`
|
|
1280
|
+
`)}return""+e},t})();var uI=!1;var zh1=(r,t,e,i=1)=>{let n,l;do n=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),l=parseInt(n[0].replace(n[1],""),10),r.font=r.font.replace(l,l-1),uI=!1,l-1===8&&(uI=!0);while(l-1>8&&r.measureText(e).width*i>t);return r.font};var Dh1=(function(){function r(e,i,o){for(let n=0;n<i;++n)if(e.data[o*i*4+n*4+3]!==0)return!1;return!0}function t(e,i,o,n,l){for(let A=n;A<l;++A)if(e.data[A*i*4+o*4+3]!==0)return!1;return!0}return function(e){let i=e.getContext("2d"),o=e.width,n=i.getImageData(0,0,e.width,e.height),l=n.height,A=0,d=n.width,L=0;for(;L<l&&r(n,o,L);)++L;for(;l-1>L&&r(n,o,l-1);)--l;for(;A<d&&t(n,o,A,L,l);)++A;for(;d-1>A&&t(n,o,d-1,L,l);)--d;let C=i.getImageData(A,L,d-A,l-L),y=e.ownerDocument.createElement("canvas"),E=y.getContext("2d");return y.width=C.width,y.height=C.height,E.putImageData(C,0,0),y}})(),kh1=(r,t,e,i)=>{let o=document.createElement("canvas");o.width=t,o.height=e;let{fillStyle:n="black",font:l="12px Arial",textAlign:A="left",textBaseline:d="top"}=i,L=o.getContext("2d");L.fillStyle=n,L.font=l,L.font=zh1(L,o.width,r),L.textAlign=A,L.textBaseline=d;let C=r,y=L.measureText(C);if(uI){let G=r.split(" ").length;for(let J=0;J<G&&!(y.width*1<o.width);J+=1)C=C.substring(0,C.lastIndexOf(" ")),y=L.measureText(C)}let E=r.replace(C,"").trim(),B=[C,E].filter(G=>!!G);d==="bottom"&&(B=B.reverse());let Z=A==="right"?o.width:0,Q=d==="bottom"?o.height:0;return B.forEach(G=>{let{fontBoundingBoxAscent:J,fontBoundingBoxDescent:n1}=L.measureText(G),r1=J+n1;L.fillText(G,Z,Q);let m1=r1;d==="bottom"&&(m1=-r1),Q=Q+m1}),Dh1(o)},Oh1=(r,t,e={})=>{let{fillStyle:i,font:o,margin:n=10,placement:l="bottom-left"}=e,[A,d]=l.split("-"),L=typeof r=="function"?r():r,C=kh1(L,t.width,t.height,{fillStyle:i,font:o,textAlign:d,textBaseline:A}),y=n,E=n;d==="right"&&(y=t.width-C.width-n),A==="bottom"&&(E=t.height-C.height-n),t.getContext("2d").drawImage(C,y,E)};var Zh1=(r,t,e)=>{let i,o;if(t?(i=jl(t),o=Gl(t)):e&&([i,,o]=e),i&&o){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(o),A=[n[0]<=l[0]?n[0]:l[0],n[1]<=l[1]?n[1]:l[1]],d=[n[0]>l[0]?n[0]:l[0],n[1]>l[1]?n[1]:l[1]];return{h:d[1]-A[1],w:d[0]-A[0],x:A[0],y:A[1]}}return null},QW=(r,t,e)=>{let i=r.getTargetElement().getElementsByTagName("canvas"),o,n;for(let l=0;l<i.length;l+=1){let A=i[l];if(!A.width||!A.height)continue;let d=Zh1(r,t,e)||{h:A.height,w:A.width,x:0,y:0};o||(o=document.createElement("canvas"),o.width=d.w,o.height=d.h,n=o.getContext("2d")),n.drawImage(A,d.x,d.y,d.w,d.h,0,0,o.width,o.height)}return Promise.resolve(o)},Nh1=(r,t="image/png",e=i=>i.replace("/","."))=>{try{if(window.navigator.msSaveBlob){let i;try{i=r.msToBlob()}catch(n){console.error(n)}let o=new Blob([i],{type:t});window.navigator.msSaveBlob(o,e(t))}else r.toBlob(i=>{let o=document.createElement("a");o.download=e(t),o.href=URL.createObjectURL(i),document.body.appendChild(o),o.click()},t);return Promise.resolve(!0)}catch(i){return console.error(i),Promise.resolve(!1)}},Uh1=async(r,t,e,i,o={},n={})=>{let l=i||r.getSize(),A=e,d=document.createElement("div");d.style.width=`${l[0]}px`,d.style.height=`${l[1]}px`,d.style.margin="0 0 0 -50000px",document.body.style.overflow="hidden",d.style.position="absolute",d.style.top="400px",d.style.zIndex="10000",document.body.append(d);let L=new Ac({pixelRatio:window.devicePixelRatio,target:d,view:new $i({center:r.getView().getCenter(),projection:r.getView().getProjection(),zoom:r.getView().getZoom(),...n}),...o});return A&&L.getView().fit(A),L.setLayers(t),await new Promise(y=>{let E=window.setTimeout(()=>{y(L)},1e4);L.once("rendercomplete",()=>{clearTimeout(E),y(L)})})},Qh1={A0:[3370,2384],A1:[2384,1684],A3:[1191,842],A4:[842,595]};async function Hh1(r,t={},e={}){let{maxExtent:i,onAfter:o,onBefore:n,pixelRatio:l=3,useCopyright:A=!0,usePlaceholder:d=!0}=e,L=t?.format||"A4",C=Qh1[L]||L,y=C.map(n1=>n1*96/72),E=i,B=window.devicePixelRatio;Object.defineProperty(window,"devicePixelRatio",{get(){return l}});let Z;d&&(Z=await QW(r),Z.style.zIndex="0",Z.style.position="absolute",r.getViewport().querySelector(".ol-layers").insertAdjacentElement("afterend",Z));let Q=[...r.getLayers().getArray()],V=e?.copyrightOptions?.text||r.getControls().getArray().find(n1=>n1 instanceof Hd)?.element?.textContent;r.getLayers().clear(),n?.(r,Q);let G=await Uh1(r,Q,E,y,{pixelRatio:l});Object.defineProperty(window,"devicePixelRatio",{get(){return B}});let J=await QW(G);if(G.getLayers().clear(),G.getTargetElement().remove(),G.setTarget(null),G.dispose(),document.body.style.overflow="auto",r.setLayers(Q),o?.(r,Q),Z&&r.once("rendercomplete",()=>{Z.remove()}),A&&Oh1(V,J,{...e?.copyrightOptions||{},font:`${(l*12).toString()}px Arial`}),/^A[0-9]{1,2}/.test(L)||L?.length===2){try{let n1=new t5({orientation:"landscape",unit:"pt",...t});n1.addImage(J,"JPEG",0,0,C[0],C[1]),n1.save(`${jO}-${new Date().toISOString().slice(0,10)}.pdf`)}catch(n1){return console.error(n1),!1}return!0}else return await Nh1(J)}var HW=Hh1;var Vh1=r=>{let t=[];function e(i){i.forEach(function(o){o instanceof Uo?e(o.getLayers()):t.push(o)})}return e(r?.getLayers?.()||r),t},hI=Vh1;var VW=["A4","A3","A1","A0"],AI=!1;function Gh1({...r}){let{map:t,realtimeLayer:e}=Ot(),[i,o]=Ft(!1),[n,l]=Ft(VW[0]),A=w4(),d=w4(),[L,C]=Ft(!1),[y,E]=Ft(!1),{t:B}=L3();return W("div",{...r,children:[W("div",{className:"flex flex-1 flex-col gap-4",children:[W("div",{className:"flex flex-wrap items-center gap-2",children:[W(Bh,{checked:i,id:A,onChange:()=>o(!i)}),W("label",{htmlFor:A,children:B("export_all_region")})]}),W("div",{className:"flex flex-wrap items-center gap-2",children:[W("label",{htmlFor:d,children:[B("export_format_title"),":"]}),W(Og,{className:"w-24",id:d,onChange:Z=>{l(Z.target.value)},children:VW.map(Z=>W("option",{children:Z},Z))})]})]}),W("div",{children:W($a,{disabled:L,onClick:async()=>{E(!1),C(!0);let Z=await HW(t,{format:n},{maxExtent:i?xh:void 0,onAfter:(Q,V)=>{e&&AI!==e?.getVisible()&&e.setVisible(AI),hI(V).forEach(G=>{G.set(Vo,!1)}),Q.set(Vo,!1)},onBefore:(Q,V)=>{Q.set(Vo,!0),e&&(AI=e.getVisible(),e.getVisible()&&e.setVisible(!1)),hI(V).forEach(G=>{G.set(Vo,!0)})}});setTimeout(()=>{C(!1),E(!Z)},1e3)},children:B(L?"exporting":y?"error":"download")})})]})}var dI=ht(Gh1);var GW=M9(null),hy=M9(null);function jh1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("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 Kp=jh1;var jW='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="none" stroke-width="1" fill="none" 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" id="Line-6" fill="%23000000" fill-rule="nonzero"></path>%0A </g>%0A</svg>';function qW({childContainerClassName:r,childItems:t,className:e,isCollapsedOnControlClick:i,isControlChecked:o,layer:n,selectionType:l,title:A}){let[d,L]=Ft(!0),C=r7(hy),y=w4(),E=w4(),{t:B}=L3();rt(()=>{i&&L(o)},[o,i,n]);let Z=()=>{L(!d),i&&!d&&C({payload:{...this.props,isControlChecked:!0},type:"SELECT_ITEM"})},Q=J=>{C({payload:{...this.props,isControlChecked:J.target.checked},type:"SELECT_ITEM"})},V=t.filter(({title:J})=>!!J).map((J,n1)=>W(qW,{...J},n1));if(!A)return null;let G=()=>t.length>0?t.filter(n1=>n1.isControlChecked).length===t.length?!1:t.some(n1=>n1.isControlChecked):!1;return W(m5,{children:[W("div",{className:Fe("flex items-center gap-2 py-2",e),children:[l==="radio"?null:W(Bh,{checked:o,checkedIconUrl:G()?jW:null,className:G()?"bg-[length:18px]":"",id:y,onChange:Q}),W("label",{className:"flex-1 cursor-pointer",htmlFor:V.length>0?E:y,children:typeof A=="string"&&B(A)||A}),V.length>0&&W("button",{className:"flex cursor-pointer items-center gap-2",id:E,onClick:Z,children:d?W(Kp,{}):W(mc,{})})]}),d&&V.length>0&&W("div",{className:Fe("pl-6",r),children:V})]})}var fI=qW;var WW={childItems:[],parent:null},$W=(r,t)=>{for(let e of r)e.parent=t,e.childItems.length&&$W(e.childItems,e)},Kh1=r=>{let t={...WW};return t.childItems=r,$W(t.childItems,t),t},XW=(r,t)=>{if(r.id===t.id)return r;if(r.childItems.length)for(let e of r.childItems){let i=XW(e,t);if(i)return i}},pI=(r,t,e)=>{if(t.isControlChecked)if(t.selectionType==="checkbox")r.isControlChecked=t.isControlChecked,r.layer.setVisible(r.isControlChecked);else for(let i of r.parent.childItems)i.isControlChecked=i.id===r.id,i.isControlChecked||YW(i);else t.selectionType==="checkbox"&&(r.isControlChecked=t.isControlChecked,r.layer.setVisible(r.isControlChecked));r.childItems.length&&!e&&LI(r),Xh1(r)},Wh1=(r,t)=>{let e=XW(r,t);return e&&pI(e,t,!1),{...r}},LI=r=>{r.childItems[0].selectionType==="radio"?YW(r):$h1(r)},YW=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&&LI(r.childItems[0])},$h1=r=>{for(let t of r.childItems)t.isControlChecked=r.isControlChecked,t.layer.setVisible(t.isControlChecked),t.childItems.length&&LI(t)},Xh1=r=>{if(r.parent){if(r.parent.selectionType==="checkbox"){let t={...r.parent,isControlChecked:r.parent.childItems.some(e=>e.isControlChecked)};pI(r.parent,t,!0)}else if(r?.parent?.parent){let t={...r.parent,isControlChecked:r.parent.childItems.some(e=>e.isControlChecked)};pI(r.parent,t,!0)}}};function Yh1(r=WW,t){switch(t.type){case"INIT":return Kh1(t.payload);case"SELECT_ITEM":return Wh1(r,t.payload);default:return r}}var JW=Yh1;function Jh1({className:r,layers:t,treeItemProps:e,...i}){let[o,n]=Iu(JW,t);return rt(()=>{n({payload:t,type:"INIT"})},[t]),W(GW.Provider,{value:o,children:W(hy.Provider,{value:n,children:W("div",{className:Fe("relative flex flex-col",r),...i,children:t.map(l=>q8(fI,{...e||{},className:Fe("w-full",e?.className),key:l.id,...l}))})})})}var CI=ht(Jh1);function tA1(){let{layersconfig:r}=Ot(),[t,e]=Ft({});return rt(()=>{try{let i=JSON.parse(r||"{}");Object.values(Et).forEach(o=>{i[o]={title:o,...i[o]||{}}}),e(i)}catch(i){console.error("Error parsing layersconfig:",i)}},[r]),t}var Ay=tA1;var t$=(r,t,e={})=>{let i=e[r.get("name")]?.title||"",o=r.get("layerTreeTitle"),n=i;return typeof o=="function"&&(n=o(n)),{childItems:r?.getLayers?.().getArray().map(l=>t$(l,t,e))||[],id:vr(r),isControlChecked:r.getVisible(),layer:r,revision:t,selectionType:"checkbox",title:n}};function eA1({order:r=TO,...t}){let{map:e}=Ot(),[i,o]=Ft(0),n=Ay(),l=ye(()=>e?.getLayers().getArray().sort((d,L)=>r&&r.indexOf(d.get("name"))>r.indexOf(L.get("name"))?1:-1).map(d=>t$(d,i,n))||[],[n,e,r,i]);return rt(()=>{let A=[];return M4(e.getLayers().getArray()).forEach(L=>{let C=L.on("change:visible",()=>{o(y=>y+1)});A.push(C)}),A.push(e.on("change:layergroup",()=>{o(L=>L+1)}),e.getLayers().on("add",()=>{o(L=>L+1)}),e.getLayers().on("remove",()=>{o(L=>L+1)})),()=>{Lr(A)}},[e]),W(CI,{layers:l,...t})}var gI=ht(eA1);function rA1(r){return W("svg",{height:"24",viewBox:"0 0 42 42",width:"24",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("path",{d:"M40,20A20,20,0,1,1,20,0,20,20,0,0,1,40,20Z","data-name":"Pfad 1",fill:"#353535",id:"Pfad_1",transform:"translate(0 0)"}),W("path",{d:"M25.481,11.843a9.993,9.993,0,0,0-10,9.992c0,7.773,10,14.8,10,14.8s9.992-7.5,9.992-14.8a9.991,9.991,0,0,0-9.992-9.992m0,14.662a4.924,4.924,0,1,1,4.924-4.924A4.93,4.93,0,0,1,25.482,26.5","data-name":"Pfad 2",fill:"#fff",id:"Pfad_2",transform:"translate(-5.477 -4.19)"}),W("path",{d:"M12.015,8.124,38.081,34.031,35.4,36.536,9.06,10.527Z","data-name":"Pfad 3",fill:"#ec0016",id:"Pfad_3",transform:"translate(-3.206 -2.874)"}),W("path",{d:"M20,3.231A16.769,16.769,0,1,1,3.231,20,16.788,16.788,0,0,1,20,3.231M20,0A20,20,0,1,0,40,20,20,20,0,0,0,20,0","data-name":"Pfad 4",fill:"#353535",id:"Pfad_4",transform:"translate(0 0)"})]})}var mI=rA1;var iA1=(r,t)=>{if(r==="bus")return"#646363";if(r==="tram"){let e=GO[t?.name];if(e)return e}return So.getBgColor(r)},dy=iA1;var nA1=(r=null)=>{let t=r?.properties?.line||r?.line||r,e=t?.color;if(!e){let i=r?.properties?.type||r?.type;if(!i){let o=r?.vehicleType;Number.isFinite(o)||(o=r?.train_type),Number.isFinite(o)?i=o:i="rail"}e=dy(i,t)}return e&&e[0]!=="#"&&(e=`#${e}`),e},fy=nA1;var oA1=r=>r==="bus"||r==="tram"?"#fff":So.getTextColor(r),py=oA1;var aA1=(r,t)=>`bold ${r}px arial`,Ly=aA1;var sA1=(r="")=>r?.properties?.line?.name||r?.line?.name||r?.name||r||"",Cy=sA1;var lA1=[16,16,16,14,12];function cA1({children:r,className:t,departure:e,displayNoRealtimeIcon:i=!1,line:o,stopSequence:n,trajectory:l,...A}){let d=o||e?.line||n?.line||l?.properties?.line,L=d?.type||n?.type||l?.type,C=fy(o||e||n||l),y=d?.text_color||py(L),E=d?.stroke||"black",B=Cy(o||e||n||l),Z=lA1[B.length]||12,Q=Ly(Z,B),V=n?.has_realtime_journey===!0,G=!!n,J=n?.stations[0]?.state==="JOURNEY_CANCELLED";return E===C&&(E="black"),W("span",{className:Fe("relative flex h-[40px] min-w-[40px] items-center justify-center rounded-full border-2 px-1",t),style:{backgroundColor:C,borderColor:E,color:y,font:Q},...A,children:[r||B,i&&G&&!J&&!V&&W(mI,{className:"absolute -top-2 -left-2"})]})}var e$=cA1;function uA1(r){return W(e$,{...r,className:"border",displayNoRealtimeIcon:!0})}var ml=uA1;function hA1({children:r,className:t,...e}){return W("div",{...e,className:Fe("relative overflow-y-auto",t),children:[W("div",{className:"pointer-events-none sticky top-0 right-0 left-0 h-4 bg-gradient-to-t from-transparent to-white"}),r,W("div",{className:"pointer-events-none sticky right-0 bottom-[-1px] left-0 h-4 bg-gradient-to-b from-transparent to-white"})]})}var to=ht(hA1);var vI=null,r$=null,AA1="network_plans",dA1="geops.lnp.lines",fA1="geops.lnp.stops",pA1="runs",yI="original_line_id";function LA1({className:r,features:t,...e}){let{baseLayer:i}=Ot(),[o,n]=Ft(null),[l,A]=Ft(null),[d,L]=Ft(null),C=ye(()=>new URLSearchParams(window.location.search).get("runs")==="true",[]);rt(()=>{let B=i?.mapLibreMap?.getSource(AA1),Z=new AbortController,Q=async V=>{if(!vI){let J=await(await fetch(V,{signal:Z.signal})).json();vI=J[dA1],r$=J[fA1]}n(vI),A(r$)};return B?.url&&Q(B?.url),()=>{Z?.abort()}},[i?.mapLibreMap]);let y=ye(()=>{let B={};return[...new Set(t.map(Z=>Z.get(yI)))].filter(Z=>!!Z&&!!o?.[Z]).forEach(Z=>{let{operator_name:Q}=o[Z];B[Q]||(B[Q]=[],B[Q].runs=0),o[Z].id=Z;let V=t.filter(G=>G.get(yI)===Z).reduce((G,J)=>G+J.get(pA1),0);o[Z].id=Z,o[Z].runs=V,B[Q].runs+=V,B[Q].push(o[Z])}),B},[t,o]),E=ye(()=>{let B={};return t.forEach(Z=>{let Q=Z.get(yI);if(Q&&!B[Q]&&Z.get("stop_ids"))try{B[Q]=JSON.parse(Z.get("stop_ids"))}catch(V){console.log(V)}}),B},[t]);return!t?.length||!o?null:W(to,{...e,className:Fe("px-4 text-base",r),children:W("div",{className:"space-y-4",children:Object.entries(y).sort(([B],[Z])=>y[B].runs<y[Z].runs?1:-1).map(([B,Z])=>W("div",{className:"flex flex-col gap-2",children:[W("div",{children:B}),W("div",{className:"flex flex-wrap gap-2",children:Z.sort((Q,V)=>Q.runs<V.runs?1:-1).map(Q=>{let{color:V,long_name:G,mot:J,runs:n1,short_name:r1,text_color:m1}=Q,w1=G,S1=null;if(S1?.length||(S1=null),!w1&&S1){let L1=S1.map(z1=>l[z1].short_name);w1=[...new Set([L1[0],L1[L1.length-1]])].join(" - ")}let g1={color:null,id:null,name:r1,stroke:null,text_color:null,type:J};return m1&&(g1.text_color=m1.startsWith("#")?m1:`#${m1}`),V&&(g1.color=V.startsWith("#")?V:`#${V}`),W("div",{className:w1?"w-full":"",children:W("div",{className:"flex justify-between gap-2",children:[W("div",{children:W(ml,{line:g1})}),!!w1&&W("div",{className:"flex-1 text-left *:before:content-['_\u2013'] *:first:font-semibold *:first:before:!content-[_p] *:last:font-semibold *:last:before:!content-[_p]",children:w1.split("-").map(L1=>W("div",{children:L1},L1))}),C&&W("div",{className:"text-xs",children:n1})]})},r1)})})]},B))})})}var gy=LA1;function CA1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("defs",{children:[W("polygon",{id:"path-1",points:"-1.11022302e-16 0 2.0005 0 2.0005 2.0002 -1.11022302e-16 2.0002"}),W("polygon",{id:"path-3",points:"0 0 2 0 2 7.9998 0 7.9998"})]}),W("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[W("circle",{cx:"12",cy:"12",fill:"#E3000B",id:"Oval",r:"11"}),W("g",{id:"Group-9",transform:"translate(10.999750, 6.500000)",children:[W("g",{id:"Group-3",transform:"translate(0.000000, 8.999800)",children:[W("mask",{fill:"white",id:"mask-2",children:W("use",{xlinkHref:"#path-1"})}),W("g",{id:"Clip-2"}),W("path",{d:"M0.29325,0.293 C-0.09775,0.684 -0.09775,1.317 0.29325,1.707 C0.68425,2.098 1.31725,2.098 1.70725,1.707 C2.09825,1.317 2.09825,0.684 1.70725,0.293 C1.51225,0.098 1.25825,0.001 1.00225,0 L0.99925,0 C0.74325,0.001 0.48825,0.098 0.29325,0.293",fill:"#FFFFFF",id:"Fill-1",mask:"url(#mask-2)"})]}),W("path",{d:"M0.99875,8.9998 L1.00275,8.9998 L0.99875,8.9998 Z",fill:"#FFFFFF",id:"Fill-4"}),W("g",{id:"Group-8",transform:"translate(0.000350, 0.000000)",children:[W("mask",{fill:"white",id:"mask-4",children:W("use",{xlinkHref:"#path-3"})}),W("g",{id:"Clip-7"}),W("path",{d:"M1,-0.0002 C0.448,-0.0002 0,0.4478 0,0.9998 L0,6.9998 C0,7.4008 0.24,7.7428 0.582,7.9018 C0.71,7.9618 0.849,7.9998 1,7.9998 C1.151,7.9998 1.29,7.9618 1.418,7.9018 C1.76,7.7428 2,7.4008 2,6.9998 L2,0.9998 C2,0.4478 1.552,-0.0002 1,-0.0002",fill:"#FFFFFF",id:"Fill-6",mask:"url(#mask-4)"})]})]})]})]})}var _I=CA1;function gA1(r){return W("svg",{height:"24px",style:"transform: rotate(-45deg);",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("title",{children:"iconfont/right"}),W("g",{fill:"none",fillRule:"evenodd",id:"iconfont/right",stroke:"none",strokeWidth:"1",style:`
|
|
1281
1281
|
/* transform: rotate(-45deg); */
|
|
1282
1282
|
`,children:W("path",{d:"M13.2928932,5.29289322 C13.6834175,4.90236893 14.3165825,4.90236893 14.7071068,5.29289322 L20.7071068,11.2928932 C20.7355731,11.3213595 20.7623312,11.3515341 20.787214,11.3832499 C20.7927155,11.3901576 20.7982466,11.397397 20.8036654,11.4046934 C20.8215099,11.4288693 20.8382813,11.453725 20.8539326,11.4793398 C20.8613931,11.4913869 20.8685012,11.5036056 20.8753288,11.5159379 C20.8862061,11.5357061 20.8966234,11.5561086 20.9063462,11.5769009 C20.914321,11.5939015 20.9218036,11.6112044 20.9287745,11.628664 C20.9366843,11.6484208 20.9438775,11.6682023 20.9504533,11.6882636 C20.9552713,11.7031487 20.9599023,11.7185367 20.9641549,11.734007 C20.9701664,11.7555635 20.9753602,11.7772539 20.9798348,11.7992059 C20.9832978,11.8166247 20.9863719,11.834051 20.9889822,11.8515331 C20.9962388,11.8996379 21,11.9493797 21,12 L20.9962979,11.9137692 C20.9978436,11.9317345 20.9989053,11.9497336 20.9994829,11.9677454 L21,12 C21,12.0112225 20.9998151,12.0224019 20.9994483,12.0335352 C20.9988772,12.050591 20.997855,12.0679231 20.996384,12.0852242 C20.994564,12.1070574 20.9920941,12.1281144 20.9889807,12.1489612 C20.9863719,12.165949 20.9832978,12.1833753 20.9797599,12.2007258 C20.9753602,12.2227461 20.9701664,12.2444365 20.964279,12.2658396 C20.9599023,12.2814633 20.9552713,12.2968513 20.9502619,12.3121425 C20.9438775,12.3317977 20.9366843,12.3515792 20.928896,12.3710585 C20.9218036,12.3887956 20.914321,12.4060985 20.9063266,12.4232215 C20.8966234,12.4438914 20.8862061,12.4642939 20.8751242,12.484277 C20.8685012,12.4963944 20.8613931,12.5086131 20.8540045,12.5207088 C20.8382813,12.546275 20.8215099,12.5711307 20.8036865,12.5951593 C20.774687,12.6343256 20.7425008,12.6717127 20.7071068,12.7071068 L20.787214,12.6167501 C20.7849289,12.6196628 20.7826279,12.6225624 20.7803112,12.625449 L20.7071068,12.7071068 L14.7071068,18.7071068 C14.3165825,19.0976311 13.6834175,19.0976311 13.2928932,18.7071068 C12.9023689,18.3165825 12.9023689,17.6834175 13.2928932,17.2928932 L17.585,13 L4,13 C3.48716416,13 3.06449284,12.6139598 3.00672773,12.1166211 L3,12 C3,11.4477153 3.44771525,11 4,11 L17.585,11 L13.2928932,6.70710678 C12.9324093,6.34662282 12.9046797,5.77939176 13.2097046,5.38710056 Z",fill:"currentColor",fillRule:"nonzero",id:"Combined-Shape",style:`
|
|
1283
1283
|
/* transform: rotate(-45deg); */
|
|
@@ -1542,7 +1542,7 @@ ${String(r)}`)}catch(t){return t}},k$=r=>{if(typeof r!="object"||r===null)throw
|
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
|
-
`,Oy=async r=>{let t=new vl($d1,{method:"POST"}),{station:e}=await t.request(Xd1,{__operation:"station",id:r}).catch(i=>(console.error("Error fetching sharing station:",i),{station:null}));return e};function Yd1(r){let t=r?.get("rental_uris_ios"),e=r?.get("rental_uris_android"),i=r?.get("rental_uris_web");return t&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPod"))?t:e&&navigator.userAgent.includes("Android")?e:i}var uL=Yd1;function Jd1({features:r}){let t=r.map((o,n)=>{let l,{feed_id:A,rental_uris_android:d}=o.getProperties();if(/yoio/.test(A))l=d.split("/").pop();else if(/zeus/.test(A)){let E=new URL(o.get("rental_uris_web"));l=new URLSearchParams(E.search).get("vehicle")}else if(/nextbike/.test(A)){let E=new URL(d);l=new URLSearchParams(E.search).get("id")}let L=uL(o),C=o.get("current_range_meters")?.toLocaleString()?.replace(".","'").replace(",","'"),y=C?` (${C} m)`:null;return!l||!L?null:W("li",{children:W("div",{className:"flex items-center gap-2",children:[`${l}`,y,W(ls,{href:L,children:" jetzt buchen"})]})},n)}),e=r?.[0].get("feed_id"),i=uL(r?.[0]);return W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{children:[r.length," Fahrzeuge"]}),W("div",{className:"flex flex-1 flex-col",children:[W("div",{className:"text-grey",children:"Fahrzeug mieten"}),W("ul",{className:"list-disc pl-4",children:t})]})]}),e&&i&&W("div",{children:W(ls,{href:i,children:["\xDCber ",Sg[e]]})})]})}var pF=Jd1;function tf1({feature:r}){let[t,e]=Ft(null),i=ye(()=>uL(r),[r]);rt(()=>{r.get("station_id")&&(async()=>{let A=await Oy(r.get("station_id"));e(A)})()},[r]);let o=r.get("num_vehicles_available")>0;return W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{children:[r.get("num_vehicles_available")||0," Fahrzeuge"]}),o&&t?.vehicleTypesAvailable?.length&&W("div",{className:"flex flex-1 flex-col",children:[W("div",{className:"text-grey",children:"Fahrzeug mieten"}),W("ul",{className:"list-disc pl-4",children:t?.vehicleTypesAvailable?.map(({count:n,vehicleType:{id:l,name:A,vehicleImage:d}})=>W("li",{children:W("div",{className:"flex items-center gap-2",children:[W("span",{children:`${n} x ${A.translation[0].value}`}),d&&W("img",{alt:"vehicle",className:"w-12",src:d})]})},l))})]})]}),t?.vehicleTypesAvailable?.length>0&&i&&W("div",{children:W(ls,{href:i,children:"Jetzt buchen"})})]})}var LF=tf1;var ef1=new h0;function rf1({className:r,feature:t,...e}){let{baseLayer:i}=Ot(),[o,n]=Ft([]),l=!!t.get("station_id"),A=!!t.get("vehicle_id"),d=!!t.get("cluster_id");rt(()=>{if(l){let C=t?.get("station_id"),y=t?.get("feed_id");C&&Oy(C).then(E=>{t.setProperties(E),t.set("provider_logo",Eg[y])}).catch(E=>{console.warn("Error fetching sharing station info:",E)})}},[t,l]),rt(()=>{if(d){let C=t.get("cluster_id");if(C){let E=t.get("vectorTileFeature").layer.source;i.mapLibreMap.getSource(E)?.getClusterLeaves(C,1e3,0).then(B=>{let Z=B.map(Q=>ef1.readFeature(Q));n(Z||[])}).catch(()=>{console.warn(`Impossible to get cluster ${C} leaves from source ${E}`)})}}else n(t?[t]:[])},[t,A,d,i?.mapLibreMap]);let L=ye(()=>{let C={};return l?null:((o||[]).forEach(y=>{let E=y.get("feed_id");C[E]?C[E].push(y):C[E]=[y]}),C)},[o,l]);return W(to,{...e,className:Fe("px-4 text-base",r),children:W("div",{className:"space-y-4",children:[l&&W(m5,{children:[W("img",{alt:"logo",className:"max-w-24",src:Eg[o[0]?.get("feed_id")]}),o.length&&l&&W(LF,{feature:o[0]})]}),(A||d)&&L&&Object.entries(L).map(([C,y])=>W(m5,{children:[W("img",{alt:"logo",className:"max-w-24",src:Eg[y[0]?.get("feed_id")]}),W(pF,{features:y})]},C))]})})}var CF=ht(rf1);var if1=r=>{if(r.get("station_id")||r.get("vehicle_id")||r.get("cluster_id"))return!0};function nf1({feature:r,featuresInfo:t,layer:e}){let i=if1(r),o=!!r.get("tickets");return W(m5,{children:[W(u$,{feature:r,featuresInfo:t,layer:e}),(o||i)&&W(m5,{children:[o&&W(eF,{feature:r}),i&&W(CF,{feature:r})]})]})}var Zy=ht(nf1);function of1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M13.2928932,5.29289322 C13.6834175,4.90236893 14.3165825,4.90236893 14.7071068,5.29289322 L20.7071068,11.2928932 C20.7355731,11.3213595 20.7623312,11.3515341 20.787214,11.3832499 C20.7927155,11.3901576 20.7982466,11.397397 20.8036654,11.4046934 C20.8215099,11.4288693 20.8382813,11.453725 20.8539326,11.4793398 C20.8613931,11.4913869 20.8685012,11.5036056 20.8753288,11.5159379 C20.8862061,11.5357061 20.8966234,11.5561086 20.9063462,11.5769009 C20.914321,11.5939015 20.9218036,11.6112044 20.9287745,11.628664 C20.9366843,11.6484208 20.9438775,11.6682023 20.9504533,11.6882636 C20.9552713,11.7031487 20.9599023,11.7185367 20.9641549,11.734007 C20.9701664,11.7555635 20.9753602,11.7772539 20.9798348,11.7992059 C20.9832978,11.8166247 20.9863719,11.834051 20.9889822,11.8515331 C20.9962388,11.8996379 21,11.9493797 21,12 L20.9962979,11.9137692 C20.9978436,11.9317345 20.9989053,11.9497336 20.9994829,11.9677454 L21,12 C21,12.0112225 20.9998151,12.0224019 20.9994483,12.0335352 C20.9988772,12.050591 20.997855,12.0679231 20.996384,12.0852242 C20.994564,12.1070574 20.9920941,12.1281144 20.9889807,12.1489612 C20.9863719,12.165949 20.9832978,12.1833753 20.9797599,12.2007258 C20.9753602,12.2227461 20.9701664,12.2444365 20.964279,12.2658396 C20.9599023,12.2814633 20.9552713,12.2968513 20.9502619,12.3121425 C20.9438775,12.3317977 20.9366843,12.3515792 20.928896,12.3710585 C20.9218036,12.3887956 20.914321,12.4060985 20.9063266,12.4232215 C20.8966234,12.4438914 20.8862061,12.4642939 20.8751242,12.484277 C20.8685012,12.4963944 20.8613931,12.5086131 20.8540045,12.5207088 C20.8382813,12.546275 20.8215099,12.5711307 20.8036865,12.5951593 C20.774687,12.6343256 20.7425008,12.6717127 20.7071068,12.7071068 L20.787214,12.6167501 C20.7849289,12.6196628 20.7826279,12.6225624 20.7803112,12.625449 L20.7071068,12.7071068 L14.7071068,18.7071068 C14.3165825,19.0976311 13.6834175,19.0976311 13.2928932,18.7071068 C12.9023689,18.3165825 12.9023689,17.6834175 13.2928932,17.2928932 L17.584,13 L4,13 C3.48716416,13 3.06449284,12.6139598 3.00672773,12.1166211 L3,12 C3,11.4477153 3.44771525,11 4,11 L17.586,11 L13.2928932,6.70710678 C12.9324093,6.34662282 12.9046797,5.77939176 13.2097046,5.38710056 Z"})})}var gF=of1;function af1(r){let e=Ay()[r]||{};return e.title||(e.title=r),e}var _A=af1;function sf1({className:r,feature:t,layer:e,...i}){let o=_A(e?.get("name"));if(!o?.link||o?.link?.show===!1)return null;let n=t?.get("id"),l=t?.get("situation");return l&&(n=JSON.parse(l)?.id||n),W("div",{...i,className:Fe("flex flex-row p-4",r),children:W($a,{href:o.link.href.replace("{{id}}",n),target:"_blank",theme:"primary",children:[W("span",{children:o.link.text||"Mehr erfahren"}),W(gF,{})]})})}var mF=ht(sf1);function lf1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("g",{children:W("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 hL=lf1;function cf1({children:r,className:t,onClose:e,title:i,...o}){return W("div",{...o,className:Fe("flex flex-row items-center justify-between gap-2 border-b p-2 pl-4",t),children:[r||W("span",{className:"text-base font-bold",children:i}),e&&W(U6,{className:"!size-[32px] border-none shadow-none",onClick:e,children:W(hL,{})})]})}var Kc=ht(cf1);function uf1({feature:r,layer:t,...e}){let{t:i}=L3(),o=_A(t?.get("name"));return W(Kc,{title:i(o?.title||""),...e})}var vF=ht(uf1);function hf1(){let{featuresInfos:r,realtimeLayer:t,selectedFeature:e,setFeaturesInfos:i,setLinesIds:o,setStationId:n,setTrainId:l,stationId:A,stationsLayer:d,trainId:L}=Ot(),C=ye(()=>r?.find(E=>E?.features.includes(e)),[r,e]),y=ye(()=>{if(C?.layer)return C.layer;if(L)return t;if(A)return d},[C?.layer,t,A,d,L]);return W(m5,{children:[W(vF,{feature:e,layer:y,onClose:()=>{i(null),l(null),n(null),o(null)}}),W(Zy,{feature:e,featuresInfo:C,layer:y}),W(mF,{feature:e,layer:y})]})}var yF=ht(hf1);var V$=P3(ja(),1);function Af1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("defs",{children:W("polygon",{id:"path-1",points:"0 0 20 0 20 20 0 20"})}),W("g",{fill:"none",fillRule:"evenodd",id:"iconfont/search",stroke:"none",strokeWidth:"1",children:W("g",{id:"Group-3-Copy",transform:"translate(2, 2)",children:[W("mask",{fill:"white",id:"mask-2",children:W("use",{xlinkHref:"#path-1"})}),W("g",{id:"Clip-2"}),W("path",{d:"M14.0345333,13.8617333 C14.0025333,13.8864 13.9718667,13.9137333 13.9432,13.9430667 C13.9138667,13.9724 13.8865333,14.0030667 13.8632,14.0350667 C12.6038667,15.2517333 10.8892,15.9997333 8.99986667,15.9997333 C5.13386667,15.9997333 1.99986667,12.8657333 1.99986667,8.99973333 C1.99986667,5.13373333 5.13386667,1.99973333 8.99986667,1.99973333 C12.8658667,1.99973333 15.9998667,5.13373333 15.9998667,8.99973333 C15.9998667,10.8890667 15.2512,12.6037333 14.0345333,13.8617333 M19.7072,18.2930667 L16.0318667,14.6177333 C17.2632,13.0784 17.9998667,11.1250667 17.9998667,8.99973333 C17.9998667,4.02973333 13.9705333,-0.000266666667 8.99986667,-0.000266666667 C4.0292,-0.000266666667 -0.000133333333,4.02973333 -0.000133333333,8.99973333 C-0.000133333333,13.9704 4.0292,17.9997333 8.99986667,17.9997333 C11.1252,17.9997333 13.0785333,17.2637333 14.6178667,16.0317333 L18.2932,19.7070667 C18.6832,20.0977333 19.3165333,20.0977333 19.7072,19.7070667 C20.0978667,19.3164 20.0978667,18.6837333 19.7072,18.2930667",fill:"currentColor",id:"Fill-1",mask:"url(#mask-2)"})]})})]})}var AL=Af1;function df1({className:r,...t}){return W("input",{...t,className:Fe("p-2 text-sm read-only:text-gray-400",r)})}var _F=df1;var H$=r=>r?.properties?.name||"";function ff1({apikey:r,bbox:t,cancelButtonClassName:e,className:i,countrycode:o,event:n,field:l,inputClassName:A,inputContainerClassName:d,limit:L,mots:C,onselect:y,params:E,prefagencies:B,reflocation:Z,resultClassName:Q,resultsClassName:V,resultsContainerClassName:G,searchIconContainerClassName:J,url:n1="https://api.geops.io/stops/v1/",withResultsClassName:r1}){let{t:m1}=L3(),[w1,S1]=Ft(""),[g1,L1]=Ft(),[z1,s1]=Ft(),x1=Vi();rt(()=>{x1.current?.dispatchEvent(new Mf("mwc:attribute",{apikey:r,bbox:t,countrycode:o,event:n,field:l,limit:L,mots:C,onselect:y,params:E,prefagencies:B,reflocation:Z,url:n1}))},[r,t,o,n,l,L,C,y,E,B,Z,n1]);let N1=ye(()=>new K_({apiKey:r,url:n1}),[r,n1]),V1=i6(p2=>{let o2=new Mf(n||"mwc:stopssearchselect",p2,{bubbles:!0});x1.current?.dispatchEvent(o2),y&&typeof y=="function"&&y(p2)},[n,y]),l2=ye(()=>{let p2;return(0,V$.default)(o2=>{p2?.abort(),p2=new AbortController;let G1={bbox:t,field:l,limit:L,mots:C,prefagencies:B,q:o2,ref_location:Z,...JSON.parse(E||"{}")};N1.search(G1,{signal:p2.signal}).then(L2=>{s1(L2.features.filter(V2=>!o||V2.properties?.country_code===o))}).catch(L2=>{if(L2.code!==20){console.error("Failed to fetch stations",L2);return}})},150)},[N1,t,o,l,L,C,E,B,Z]);return rt(()=>{if(!(g1&&w1===H$(g1))){if(!w1){L1(void 0);return}return l2(w1),()=>{l2.cancel()}}},[w1,g1,l2]),rt(()=>{s1(void 0),g1&&S1(H$(g1)),V1(g1)},[V1,g1]),W(m5,{children:[W("div",{className:Fe("flex h-16 items-center gap-4 rounded-md bg-white p-4 pt-3.5 shadow",i,z1?r1:""),ref:x1,children:[W("div",{className:Fe("text-grey flex items-center",J),children:W(AL,{className:"size-4"})}),W("div",{className:Fe("@container/inputsearch flex grow items-center border-b-2 border-solid",d),children:[W(_F,{autoComplete:"off",className:Fe("h-8 w-1 grow overflow-hidden text-ellipsis placeholder:text-zinc-400",A),onChange:p2=>{S1(p2.target.value)},onKeyUp:p2=>{p2.key==="Enter"&&z1?.length>0&&L1(z1[0])},placeholder:m1("stops_search_placeholder"),type:"text",value:w1||""}),w1.length>0&&W(U6,{className:Fe("flex !size-[32px] items-center rounded-none border-none bg-transparent shadow-none",e),onClick:()=>{S1(""),s1(void 0)},children:W(hL,{})})]})]}),z1&&W("div",{className:Fe("flex grow overflow-auto rounded-md rounded-t-none bg-white shadow",G),children:[z1&&z1.length===0&&W("div",{className:Fe("flex grow gap-3 border border-solid p-3 pt-2 text-zinc-400",V),style:{border:1},children:[W("div",{className:"size-6"}),W("div",{children:m1("no_stops_found")})]}),z1&&z1.length>0&&W("ul",{className:Fe("grow rounded-md rounded-t-none border border-solid bg-white p-0",V),style:{border:1},children:z1?.map(p2=>W("li",{className:Fe("border-b border-dashed border-slate-300 p-3 last:border-0",Q),children:W("button",{className:"flex w-full items-center gap-3 text-left",onClick:()=>{L1(p2)},children:[W("div",{className:"size-6"}),W("div",{className:"grow",children:p2.properties.name})]})},p2.properties.uid))})]})]})}var dL=ht(ff1);var pf1=(r,t)=>{let e=r?.geometry?.coordinates;e&&t?.getView()?.animate({center:Ia(e),duration:500,zoom:16})},G$=pf1;function Lf1(r){let{apikey:t,map:e,stopsurl:i}=Ot(),o=i6(n=>G$(n,e),[e]);return W(dL,{apikey:t,bbox:Ka.join(","),onselect:o,url:i,...r})}var Wc=ht(Lf1);var Ir=P3(J$());var tX='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 eX='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 xF=Ir.default.shape({circled:Ir.default.bool,height:Ir.default.number,rotation:Ir.default.oneOfType([Ir.default.number,Ir.default.func]),src:Ir.default.string,width:Ir.default.number}),yf1=typeof CanvasPattern>"u"?Function:CanvasPattern,_f1={autoDownload:Ir.default.bool,children:Ir.default.node,coordinates:Ir.default.arrayOf(Ir.default.arrayOf(Ir.default.number)),extent:Ir.default.arrayOf(Ir.default.number),extraData:Ir.default.shape({copyright:Ir.default.shape({background:Ir.default.bool,fillStyle:Ir.default.oneOfType([Ir.default.string,Ir.default.instanceOf(yf1)]),font:Ir.default.string,maxWidth:Ir.default.number,paddingBackground:Ir.default.number,paddingBottom:Ir.default.number,text:Ir.default.oneOfType([Ir.default.string,Ir.default.func])}),logo:xF,northArrow:xF,qrCode:xF}),format:Ir.default.oneOf(["image/jpeg","image/png"]),getDownloadImageName:Ir.default.func,map:Ir.default.instanceOf(Ac),margin:Ir.default.number,onSaveEnd:Ir.default.func,onSaveStart:Ir.default.func,padding:Ir.default.number,scale:Ir.default.number},xf1=r=>r.width/100,wf1=r=>{let t=r==="image/jpeg"?"jpg":"png";return`${window.document.title.replace(/ /g,"_").toLowerCase()}.${t}`},Ny=!1,Uy=0,bf1=(r,t,e,i)=>{let n,l;do n=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),l=parseInt(n[0].replace(n[1],""),10),r.font=r.font.replace(l,l-1),Ny=!1,l-1===8&&(Ny=!0);while(l-1>8&&r.measureText(e).width*i>t);return r.font},Mf1=(r,t,e,i,o,n={})=>{r.save(),r.fillStyle="rgba(255,255,255,.8)",typeof n=="object"&&Object.entries(n).forEach(([l,A])=>{r[l]=A}),r.fillRect(t,e,i,o),r.restore()},Bf1=(r,t,e,i,o,n,l)=>{let{background:A,fillStyle:d,font:L,text:C}=i.copyright,{paddingBackground:y=2,paddingBottom:E=l}=i.copyright,B=typeof C=="function"?C():C?.trim();Array.isArray(B)&&(B=B.join()),r.save(),r.scale(o,o),r.font=L||"12px Arial",r.font=bf1(r,e,B,o),r.textBaseline="bottom",r.scale(o,o),r.fillStyle=d||"black";let Z=B,Q=r.measureText(Z);if(Ny){let r1=B.split(" ").length;for(let m1=0;m1<r1&&!(Q.width*o<e);m1+=1)Z=Z.substring(0,Z.lastIndexOf(" ")),Q=r.measureText(Z)}let V=B.replace(Z,"").trim(),G=[Z,V].filter(r1=>!!r1).reverse(),J=n,n1=t.height-E;G.forEach(r1=>{let{fontBoundingBoxAscent:m1,fontBoundingBoxDescent:w1,width:S1}=r.measureText(r1),g1=m1+w1,L1=n1-g1;if(A){let z1=n;L1-=y*2,Mf1(r,z1,L1,S1+y*2,g1+y*2,A),J+=y,n1-=y}r.fillText(r1,J,n1),n1=L1}),Uy=n1,r.restore()},wF=(r,t,e,i,o,n=[0,0],l="right")=>{let A=t.getContext("2d"),{height:d,rotation:L,src:C,width:y}=r;return new Promise(E=>{let B=new Image;B.crossOrigin="Anonymous",B.src=C,B.onload=()=>{A.save();let Z=(y||80)*e,Q=(d||80)*e,V=l==="left"?i+Z/2:t.width-i-Z/2,G=(l==="left"&&Uy?Uy-o:t.height)-i-Q/2-n[1];if(A.translate(V,G),L){let J=typeof L=="function"?L():L;A.rotate(J*(Math.PI/180))}A.drawImage(B,-Z/2,-Q/2,Z,Q),A.restore(),E([Z+2*o,Q+2*o])},B.onerror=()=>{E()}})},Sf1=(r,t,e)=>{let i,o;if(t?(i=jl(t),o=Gl(t)):e&&([i,,o]=e),i&&o){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(o),A=[n[0]<=l[0]?n[0]:l[0],n[1]<=l[1]?n[1]:l[1]],d=[n[0]>l[0]?n[0]:l[0],n[1]>l[1]?n[1]:l[1]];return{h:d[1]-A[1],w:d[0]-A[0],x:A[0],y:A[1]}}return null},Ef1=(r,t,e,i,o,n,l)=>new Promise(A=>{r.once("rendercomplete",()=>{let d=r.getTargetElement().getElementsByTagName("canvas"),L,C;for(let E=0;E<d.length;E+=1){let B=d[E];if(!B.width||!B.height)continue;let Z=Sf1(r,i,o)||{h:B.height,w:B.width,x:0,y:0};L||(L=document.createElement("canvas"),L.width=Z.w,L.height=Z.h,C=L.getContext("2d")),C.drawImage(B,Z.x,Z.y,Z.w,Z.h,0,0,L.width,L.height)}n=n||xf1(L);let y=Promise.resolve();C&&t&&t.logo&&(y=wF(t.logo,L,e,n,l)),y.then((E=[0,0])=>{let B=Promise.resolve();C&&t&&t.northArrow&&(B=wF({src:t.northArrow.circled?eX:tX,...t.northArrow},L,e,n,l,E)),B.then((Z=[0,0])=>{let Q=Math.max(E[0],Z[0]);if(C&&t&&t.copyright&&t.copyright.text){let G=t.copyright.maxWidth||(Q?C.canvas.width-Q-n:C.canvas.width);Bf1(C,L,G,t,e,n,l)}let V=Promise.resolve();C&&t&&t.qrCode&&(V=wF(t.qrCode,L,e,n,l,void 0,"left")),V.then(()=>A(L))})})}),r.renderSync()}),Tf1=(r,t,e)=>new Promise(o=>{if(/msie (9|10)/gi.test(window.navigator.userAgent.toLowerCase())){let n=r.toDataURL(t);window.open("about:blank","").document.write(`<img src="${n}" alt="from canvas"/>`),o(n)}if(window.navigator.msSaveBlob){let n;try{n=r.msToBlob()}catch(A){console.log(A)}let l=new Blob([n],{type:t});o(l),window.navigator.msSaveBlob(l,e(t))}else r.toBlob(n=>{let l=document.createElement("a");l.download=e(t),l.href=URL.createObjectURL(n),document.body.appendChild(l),l.click(),o(n)},t)});function rX({autoDownload:r=!0,children:t=null,coordinates:e=null,extent:i=null,extraData:o=null,format:n="image/png",getDownloadImageName:l=wf1,map:A=null,margin:d=null,onSaveEnd:L=()=>{},onSaveStart:C=B=>Promise.resolve(B),padding:y=5,scale:E=1}){let B=i6(Z=>{window.navigator.msSaveBlob&&(Z.preventDefault(),Z.stopPropagation()),Ny=!1,Uy=0,C(A).then(Q=>Ef1(Q||A,o,E,i,e,d,y).then(V=>{r?Tf1(V,n,l).then(G=>{L(Q,V,G)}):L(Q,V)}).catch(V=>{V&&console.error(V),L(Q,V)}))},[r,e,i,o,n,A,d,L,C,y,E,l]);return i7.createElement(i7.Fragment,null,i7.Children.map(t,Z=>i7.cloneElement(Z,{onClick:B})))}rX.propTypes=_f1;var bF=rX;function If1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("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 MF=If1;function Ff1({...r}){return W("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:W("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 BF=Ff1;function Pf1({...r}){return W("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:W("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 SF=Pf1;function Rf1(r){let{t}=L3(),[e,i]=Ft(),[o,n]=Ft(!1),l=w4(),[A,d]=Ft(null),L=y=>{i(y.currentTarget.getBoundingClientRect());let E=A.querySelector(`#${l}`);navigator.clipboard.writeText(E?.value).then(()=>{n(!0),setTimeout(()=>{n(!1)},1e3)}),E?.select()};return W("div",{className:"text-grey flex items-center",ref:y=>{d(y)},children:[W("input",{className:"h-7 w-full rounded-sm rounded-r-none border border-r-0 border-current p-1 leading-4 outline-none",id:l,onFocus:()=>{A.querySelector(`#${l}`)?.select()},readOnly:!0,type:"text",...r}),W(U6,{className:"!size-7 rounded-l-none rounded-r-sm border-current",onClick:L,children:W(SF,{})}),W("div",{className:`bg-grey fixed rounded-md p-1 text-sm text-white ${o?"block":"hidden"}`,style:{left:e?.left-30,top:e?.top-40},children:t("input_copy_success")})]})}var Qy=Rf1;function zf1(r,t){let e=r||"";if(t?.forEach((i,o)=>{e=e.replace(`{{${o}}}`,i)}),e.startsWith("#"))e=`${window.location.href.split("#")[0]}${e}`;else if(e.startsWith("?")||!e){let i=new URLSearchParams(window.location.search);new URLSearchParams(e).forEach((l,A)=>{i.set(A,l)}),r?.includes("{{x}}")&&r?.includes("{{y}}")&&i.delete("center"),r?.includes("{{z}}")&&i.delete("zoom");let n=i.toString();!n.startsWith("?")&&e.length&&(n=`?${n}`),e=`${window.location.href.split("?")[0]}${n}${window.location.hash}`}return e}var iX=zf1;function Df1(){let{permalinktemplate:r,permalinkUrlSearchParams:t}=Ot();return iX(r,t)}var xA=Df1;var kf1={};function Of1({inputProps:r=kf1,...t}){let{t:e}=L3(),i=xA();return W("div",{...t,children:[W(Qy,{value:i,...r,readonly:!0}),W("p",{className:"py-2",children:e("permalink_input_hint")})]})}var EF=ht(Of1);function Zf1({className:r="",...t}){let{map:e}=Ot(),{t:i}=L3(),o=xA();return W("div",{className:Fe(`flex flex-col gap-4 ${r}`),...t,children:[W($a,{className:"w-fit",href:`mailto:?subject=Karte&body=${o}`,children:[W(MF,{}),W("span",{children:i("share_email_send")})]}),W(bF,{map:e,children:W($a,{className:"w-fit",children:[W(BF,{}),W("span",{children:i("share_image_save")})]})}),W(EF,{})]})}var TF=Zf1;var Nf1="relative h-full overflow-x-hidden overflow-y-auto text-base bg-white";function Uf1({hasDetails:r,hasLayerTree:t,hasPrint:e,hasSearch:i,hasShare:o}){let{isExportMenuOpen:n,isLayerTreeOpen:l,isSearchOpen:A,isShareMenuOpen:d,selectedFeature:L,setIsExportMenuOpen:C,setIsLayerTreeOpen:y,setIsShareMenuOpen:E}=Ot(),{t:B}=L3();return W(m5,{children:[r&&L&&W(yF,{}),e&&n&&W(m5,{children:[W(Kc,{onClose:()=>{C(!1)},title:B("print_menu_title")}),W(dI,{className:Fe(Nf1,"flex flex-col gap-4 p-4")})]}),t&&l&&W(m5,{children:[W(Kc,{onClose:()=>{y(!1)},title:B("layertree_menu_title")}),W(gI,{className:"relative flex h-full flex-col overflow-x-hidden overflow-y-auto px-4 py-2 text-base *:not-last:border-b",treeItemProps:{childContainerClassName:"*:not-last:border-b"}})]}),o&&d&&W(m5,{children:[W(Kc,{onClose:()=>{E(!1)},title:B("share_menu_title")}),W(TF,{className:"h-full overflow-x-hidden overflow-y-auto p-4 text-base"})]}),i&&A&&W(m5,{children:W(Wc,{className:"relative flex h-full flex-col overflow-x-hidden overflow-y-auto p-2 text-base"})})]})}var Hy=Uf1;var IF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},FF=i7.createContext&&i7.createContext(IF);var Qf1=["attr","size","title"];function Hf1(r,t){if(r==null)return{};var e=Vf1(r,t),i,o;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(e[i]=r[i])}return e}function Vf1(r,t){if(r==null)return{};var e={};for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){if(t.indexOf(i)>=0)continue;e[i]=r[i]}return e}function Vy(){return Vy=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Vy.apply(this,arguments)}function nX(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),e.push.apply(e,i)}return e}function Gy(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?nX(Object(e),!0).forEach(function(i){Gf1(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):nX(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function Gf1(r,t,e){return t=jf1(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function jf1(r){var t=qf1(r,"string");return typeof t=="symbol"?t:t+""}function qf1(r,t){if(typeof r!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function oX(r){return r&&r.map((t,e)=>i7.createElement(t.tag,Gy({key:e},t.attr),oX(t.child)))}function aX(r){return t=>i7.createElement(Kf1,Vy({attr:Gy({},r.attr)},t),oX(r.child))}function Kf1(r){var t=e=>{var{attr:i,size:o,title:n}=r,l=Hf1(r,Qf1),A=o||e.size||"1em",d;return e.className&&(d=e.className),r.className&&(d=(d?d+" ":"")+r.className),i7.createElement("svg",Vy({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,l,{className:d,style:Gy(Gy({color:r.color||e.color},e.style),r.style),height:A,width:A,xmlns:"http://www.w3.org/2000/svg"}),n&&i7.createElement("title",null,n),r.children)};return FF!==void 0?i7.createElement(FF.Consumer,null,e=>t(e)):t(IF)}function sX(r){return aX({tag:"svg",attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 28 4.46875 L 26.59375 5.09375 L 19.96875 7.9375 L 12.34375 5.0625 L 11.96875 4.9375 L 11.59375 5.09375 L 4.59375 8.09375 L 4 8.34375 L 4 27.53125 L 5.40625 26.90625 L 12.03125 24.0625 L 19.65625 26.9375 L 20.03125 27.0625 L 20.40625 26.90625 L 27.40625 23.90625 L 28 23.65625 Z M 13 7.4375 L 19 9.6875 L 19 24.5625 L 13 22.3125 Z M 11 7.5 L 11 22.34375 L 6 24.5 L 6 9.65625 Z M 26 7.5 L 26 22.34375 L 21 24.5 L 21 9.65625 Z"},child:[]}]})(r)}function Wf1({className:r,...t}){let{mainlink:e,mainlinktitle:i,map:o}=Ot(),[n,l]=Ft(0),[A,d]=Ft(0),[L,C]=Ft(0);rt(()=>{let E=Z=>{let Q=Z.map?.getView()?.getCenter();Q&&(l(Q[0]),d(Q[1]));let V=Z.map?.getView()?.getZoom();V&&C(V)};E({map:o});let B=o?.on("moveend",E);return()=>{Lr(B)}},[o]);let y=ye(()=>e?e.replace("{{x}}",n.toFixed(4)).replace("{{y}}",A.toFixed(4)).replace("{{z}}",L.toFixed(2)):"#",[e,n,A,L]);return W(U6,{className:Fe("rounded-xl border-3 border-white",r),href:y,target:"_blank",theme:"primary",title:i,...t,children:W(sX,{})})}var PF=Wf1;var RF=M9({poisLayer:null,sellingPointsLayer:null,setPoisLayer:()=>{console.warn("setPoisLayer is not implemented")},setSellingPointsLayer:()=>{console.warn("setSellingPointsLayer is not implemented")},setSharedMobilityLayerGroup:()=>{console.warn("setSharedMobilityLayerGroup is not implemented")},setTarifZonenLayer:()=>{console.warn("setTarifZonenLayer is not implemented")},sharedMobilityLayerGroup:null,tarifZonenLayer:null}),$f1=()=>{let r=r7(RF);if(!r)throw new Error("useRvfContext must be used within a ContextProvider");return r},yl=$f1;function Xf1(r){let{baseLayer:t,map:e}=Ot(),{setPoisLayer:i}=yl(),o=ye(()=>t?new N6({layersFilter:({metadata:n})=>n?.["mapset.filter"]==="mapset_poi",maplibreLayer:t,name:Et.pois,visible:!1,...r||{}}):null,[t,r]);return rt(()=>{i(o)},[o,i]),rt(()=>{if(!(!e||!o))return e.addLayer(o),()=>{e.removeLayer(o)}},[e,o]),null}var zF=ht(Xf1);var Yf1=new h0({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});function Jf1(){let{baseLayer:r}=Ot(),{selectedFeature:t}=Ot(),e=ye(()=>r?.mapLibreMap,[r?.mapLibreMap]);return rt(()=>{let i=t?.get("vectorTileFeature");t?.set("selected",!0);let o=e?.getSource(ZO);if(t){let n=t.clone();if(n.setStyle(null),(i||n.get("cluster_id"))&&(e?.setFeatureState(i,{hover:!0}),n.get("cluster_id")&&(n.set("mot",n.get("vectorTileFeature")?.source?.split("_")?.pop()||"scooter"),n.set("provider_name",""),n.set("num_vehicles_available",n.get("point_count"))),!n.get("disruption_type")))try{let l=Yf1.writeFeatureObject(n);o?.setData(l)}catch{}}return()=>{o?.setData(NO),t?.set("selected",!1),i&&e?.setFeatureState(i,{hover:!1})}},[e,t]),null}var DF=Jf1;function tp1(r){let{baseLayer:t,map:e}=Ot(),{setSellingPointsLayer:i}=yl(),o=_A(Et.verkaufsstellen),n=ye(()=>t?new N6({layersFilter:({metadata:l})=>l?.["general.filter"]==="selling_points",maplibreLayer:t,name:Et.verkaufsstellen,...r||{},layerTreeTitle:W("div",{className:"flex items-center justify-between gap-2",children:[o?.title,W("span",{className:"flex items-center",children:[W(eL,{}),W(rL,{}),W(iL,{})]})]}),title:o?.title}):null,[t,r,o]);return rt(()=>{i(n)},[n,i]),rt(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var kF=ht(tp1);var lX='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 rp1({...r}){return W("img",{alt:"Bicycle",src:lX,...r})}var jy=rp1;var cX='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 np1({...r}){return W("img",{alt:"Car",src:cX,...r})}var fL=np1;var uX='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 ap1({...r}){return W("img",{alt:"Cargo bike",src:uX,...r})}var qy=ap1;var hX='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 lp1({...r}){return W("img",{alt:"Ride",src:hX,...r})}var OF=lp1;var AX='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 up1({...r}){return W("img",{alt:"Scooter",src:AX,...r})}var ZF=up1;var hp1=(r,t=Ka)=>`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=${t.toString()},EPSG:4326`,NF=async(r,t,e=Ka)=>{let i=hp1(r,e),n=await(await fetch(i,{signal:t.signal})).json();return n?.features.forEach(l=>{let A=l.properties.vehicle_id;l.properties.id=A||l.properties.station_id,l.properties.provider_name=Sg[l.properties.feed_id];let L=l.properties.form_factor||r.split("_").pop();if(L==="bicycle"?L="bike":L==="cargo_bicycle"&&(L="cargo_bike"),L==="stations"){let C=l.properties;C.num_bicycles_available!==null?(L="bike",l.properties.num_vehicles_available=C.num_bicycles_available):C.num_cars_available!==null?(L="car",l.properties.num_vehicles_available=C.num_cars_available):C.num_cargo_bicycles_available!==null&&(L="cargo_bike",l.properties.num_vehicles_available=C.num_cargo_bicycles_available)}else l.properties.num_vehicles_available=1;l.properties.mot=L,l.properties.display_num_vehicles_available=!0}),n};var Ap1=async(r,t,e=Ka)=>({features:(await NF(r,t,e)).features,type:"FeatureCollection"});function dp1(r){let{baseLayer:t,map:e}=Ot(),{setSharedMobilityLayerGroup:i}=yl(),{t:o}=L3(),[n,l]=Ft(),[A,d]=Ft(),[L,C]=Ft(),[y,E]=Ft(),[B,Z]=Ft(),Q=ye(()=>t?.mapLibreMap,[t?.mapLibreMap]),V=i6(()=>{let J=new AbortController,n1=Mo(e.getView().calculateExtent(),"EPSG:3857","EPSG:4326");return(async()=>{let m1=await Ap1(FO,J,n1);l(m1);let w1=await NF(PO,J,n1),S1={features:[],type:"FeatureCollection"},g1={features:[],type:"FeatureCollection"},L1={features:[],type:"FeatureCollection"},z1={features:[],type:"FeatureCollection"};w1.features.forEach(s1=>{s1.properties.form_factor===UO?S1.features.push(s1):s1.properties.form_factor===HO?g1.features.push(s1):s1.properties.form_factor===QO?L1.features.push(s1):s1.properties.form_factor===VO&&z1.features.push(s1)}),d(S1),C(g1),E(L1),Z(z1)})(),()=>{J.abort()}},[e]);rt(()=>{let J=e?.on("moveend",V),n1=e?.on(`change:${Vo}`,m1=>{m1.target.get(Vo)||V()}),r1=e?.once("rendercomplete",V);return()=>{Lr([J,n1,r1])}},[e,V,Q]),rt(()=>{if(!Q?.style||!n)return;Q.getSource(RO)?.setData(n)},[n,Q]),rt(()=>{if(!Q?.style||!A)return;Q.getSource(zO)?.setData(A)},[Q,A]),rt(()=>{if(!Q?.style||!L)return;Q.getSource(DO)?.setData(L)},[Q,L]),rt(()=>{if(!Q?.style||!y)return;Q.getSource(kO)?.setData(y)},[Q,y]),rt(()=>{if(!Q?.style||!B)return;Q.getSource(OO)?.setData(B)},[Q,B]);let G=ye(()=>{if(!t)return null;let J=new N6({layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(jy,{})]}),maplibreLayer:t,name:Et.bikeFrelo,styleLayersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="bike.frelo"}),n1=new N6({layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(jy,{})]}),maplibreLayer:t,name:Et.bikeOthers,styleLayersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="bike.other"}),r1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="cargo_bike.frelo",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(qy,{})]}),maplibreLayer:t,name:Et.cargobikeFrelo}),m1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="cargo_bike.other",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(qy,{})]}),maplibreLayer:t,name:Et.cargobikeOthers}),w1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="car.grueneflotte",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(fL,{})]}),maplibreLayer:t,name:Et.carGrf}),S1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="car.naturenergy",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(fL,{})]}),maplibreLayer:t,name:Et.carNatur}),g1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="car.other",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(fL,{})]}),maplibreLayer:t,name:Et.carOthers}),L1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="scooter",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(ZF,{})]}),maplibreLayer:t,name:Et.eroller}),z1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="hitchhiking",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(OF,{})]}),maplibreLayer:t,name:Et.mitfahrpunkte});return new Uo({layers:[J,n1,r1,m1,w1,S1,g1,L1,z1],name:Et.sharedMobility,...r})},[t,r,o]);return rt(()=>{let J=window.setInterval(()=>{V()},6e4);return()=>{window.clearInterval(J)}},[G,V]),rt(()=>{i(G)},[G,i]),rt(()=>{if(!(!e||!G))return e.addLayer(G),()=>{e.removeLayer(G)}},[e,G]),null}var UF=ht(dp1);function fp1(r){let{baseLayer:t,map:e}=Ot(),{setTarifZonenLayer:i}=yl(),o=ye(()=>t?new N6({isQueryable:!1,layersFilter:({metadata:n})=>n?.["rvf.filter"]==="zones",maplibreLayer:t,name:Et.tarifzonen,...r||{}}):null,[t,r]);return rt(()=>{i(o)},[o,i]),rt(()=>{if(!(!e||!o))return e.addLayer(o),()=>{e.removeLayer(o)}},[e,o]),null}var QF=ht(fp1);var dX=`.ol-scale-line {
|
|
1545
|
+
`,Oy=async r=>{let t=new vl($d1,{method:"POST"}),{station:e}=await t.request(Xd1,{__operation:"station",id:r}).catch(i=>(console.error("Error fetching sharing station:",i),{station:null}));return e};function Yd1(r){let t=r?.get("rental_uris_ios"),e=r?.get("rental_uris_android"),i=r?.get("rental_uris_web");return t&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPod"))?t:e&&navigator.userAgent.includes("Android")?e:i}var uL=Yd1;function Jd1({features:r}){let t=r.map((o,n)=>{let l,{feed_id:A,rental_uris_android:d}=o.getProperties();if(/yoio/.test(A))l=d.split("/").pop();else if(/zeus/.test(A)){let E=new URL(o.get("rental_uris_web"));l=new URLSearchParams(E.search).get("vehicle")}else if(/nextbike/.test(A)){let E=new URL(d);l=new URLSearchParams(E.search).get("id")}let L=uL(o),C=o.get("current_range_meters")?.toLocaleString()?.replace(".","'").replace(",","'"),y=C?` (${C} m)`:null;return!l||!L?null:W("li",{children:W("div",{className:"flex items-center gap-2",children:[`${l}`,y,W(ls,{href:L,children:" jetzt buchen"})]})},n)}),e=r?.[0].get("feed_id"),i=uL(r?.[0]);return W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{children:[r.length," Fahrzeuge"]}),W("div",{className:"flex flex-1 flex-col",children:[W("div",{className:"text-grey",children:"Fahrzeug mieten"}),W("ul",{className:"list-disc pl-4",children:t})]})]}),e&&i&&W("div",{children:W(ls,{href:i,children:["\xDCber ",Sg[e]]})})]})}var pF=Jd1;function tf1({feature:r}){let[t,e]=Ft(null),i=ye(()=>uL(r),[r]);rt(()=>{r.get("station_id")&&(async()=>{let A=await Oy(r.get("station_id"));e(A)})()},[r]);let o=r.get("num_vehicles_available")>0;return W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{className:"flex flex-1 flex-col gap-2",children:[W("div",{children:[r.get("num_vehicles_available")||0," Fahrzeuge"]}),o&&t?.vehicleTypesAvailable?.length&&W("div",{className:"flex flex-1 flex-col",children:[W("div",{className:"text-grey",children:"Fahrzeug mieten"}),W("ul",{className:"list-disc pl-4",children:t?.vehicleTypesAvailable?.map(({count:n,vehicleType:{id:l,name:A,vehicleImage:d}})=>W("li",{children:W("div",{className:"flex items-center gap-2",children:[W("span",{children:`${n} x ${A.translation[0].value}`}),d&&W("img",{alt:"vehicle",className:"w-12",src:d})]})},l))})]})]}),t?.vehicleTypesAvailable?.length>0&&i&&W("div",{children:W(ls,{href:i,children:"Jetzt buchen"})})]})}var LF=tf1;var ef1=new h0;function rf1({className:r,feature:t,...e}){let{baseLayer:i}=Ot(),[o,n]=Ft([]),l=!!t.get("station_id"),A=!!t.get("vehicle_id"),d=!!t.get("cluster_id");rt(()=>{if(l){let C=t?.get("station_id"),y=t?.get("feed_id");C&&Oy(C).then(E=>{t.setProperties(E),t.set("provider_logo",Eg[y])}).catch(E=>{console.warn("Error fetching sharing station info:",E)})}},[t,l]),rt(()=>{if(d){let C=t.get("cluster_id");if(C){let E=t.get("vectorTileFeature").layer.source;i.mapLibreMap.getSource(E)?.getClusterLeaves(C,1e3,0).then(B=>{let Z=B.map(Q=>ef1.readFeature(Q));n(Z||[])}).catch(()=>{console.warn(`Impossible to get cluster ${C} leaves from source ${E}`)})}}else n(t?[t]:[])},[t,A,d,i?.mapLibreMap]);let L=ye(()=>{let C={};return l?null:((o||[]).forEach(y=>{let E=y.get("feed_id");C[E]?C[E].push(y):C[E]=[y]}),C)},[o,l]);return W(to,{...e,className:Fe("px-4 text-base",r),children:W("div",{className:"space-y-4",children:[l&&W(m5,{children:[W("img",{alt:"logo",className:"max-w-24",src:Eg[o[0]?.get("feed_id")]}),o.length&&l&&W(LF,{feature:o[0]})]}),(A||d)&&L&&Object.entries(L).map(([C,y])=>W(m5,{children:[W("img",{alt:"logo",className:"max-w-24",src:Eg[y[0]?.get("feed_id")]}),W(pF,{features:y})]},C))]})})}var CF=ht(rf1);var if1=r=>{if(r.get("station_id")||r.get("vehicle_id")||r.get("cluster_id"))return!0};function nf1({feature:r,featuresInfo:t,layer:e}){let i=if1(r),o=!!r.get("tickets");return W(m5,{children:[W(u$,{feature:r,featuresInfo:t,layer:e}),(o||i)&&W(m5,{children:[o&&W(eF,{feature:r}),i&&W(CF,{feature:r})]})]})}var Zy=ht(nf1);function of1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M13.2928932,5.29289322 C13.6834175,4.90236893 14.3165825,4.90236893 14.7071068,5.29289322 L20.7071068,11.2928932 C20.7355731,11.3213595 20.7623312,11.3515341 20.787214,11.3832499 C20.7927155,11.3901576 20.7982466,11.397397 20.8036654,11.4046934 C20.8215099,11.4288693 20.8382813,11.453725 20.8539326,11.4793398 C20.8613931,11.4913869 20.8685012,11.5036056 20.8753288,11.5159379 C20.8862061,11.5357061 20.8966234,11.5561086 20.9063462,11.5769009 C20.914321,11.5939015 20.9218036,11.6112044 20.9287745,11.628664 C20.9366843,11.6484208 20.9438775,11.6682023 20.9504533,11.6882636 C20.9552713,11.7031487 20.9599023,11.7185367 20.9641549,11.734007 C20.9701664,11.7555635 20.9753602,11.7772539 20.9798348,11.7992059 C20.9832978,11.8166247 20.9863719,11.834051 20.9889822,11.8515331 C20.9962388,11.8996379 21,11.9493797 21,12 L20.9962979,11.9137692 C20.9978436,11.9317345 20.9989053,11.9497336 20.9994829,11.9677454 L21,12 C21,12.0112225 20.9998151,12.0224019 20.9994483,12.0335352 C20.9988772,12.050591 20.997855,12.0679231 20.996384,12.0852242 C20.994564,12.1070574 20.9920941,12.1281144 20.9889807,12.1489612 C20.9863719,12.165949 20.9832978,12.1833753 20.9797599,12.2007258 C20.9753602,12.2227461 20.9701664,12.2444365 20.964279,12.2658396 C20.9599023,12.2814633 20.9552713,12.2968513 20.9502619,12.3121425 C20.9438775,12.3317977 20.9366843,12.3515792 20.928896,12.3710585 C20.9218036,12.3887956 20.914321,12.4060985 20.9063266,12.4232215 C20.8966234,12.4438914 20.8862061,12.4642939 20.8751242,12.484277 C20.8685012,12.4963944 20.8613931,12.5086131 20.8540045,12.5207088 C20.8382813,12.546275 20.8215099,12.5711307 20.8036865,12.5951593 C20.774687,12.6343256 20.7425008,12.6717127 20.7071068,12.7071068 L20.787214,12.6167501 C20.7849289,12.6196628 20.7826279,12.6225624 20.7803112,12.625449 L20.7071068,12.7071068 L14.7071068,18.7071068 C14.3165825,19.0976311 13.6834175,19.0976311 13.2928932,18.7071068 C12.9023689,18.3165825 12.9023689,17.6834175 13.2928932,17.2928932 L17.584,13 L4,13 C3.48716416,13 3.06449284,12.6139598 3.00672773,12.1166211 L3,12 C3,11.4477153 3.44771525,11 4,11 L17.586,11 L13.2928932,6.70710678 C12.9324093,6.34662282 12.9046797,5.77939176 13.2097046,5.38710056 Z"})})}var gF=of1;function af1(r){let e=Ay()[r]||{};return e.title||(e.title=r),e}var _A=af1;function sf1({className:r,feature:t,layer:e,...i}){let o=_A(e?.get("name"));if(!o?.link||o?.link?.show===!1)return null;let n=t?.get("id"),l=t?.get("situation");return l&&(n=JSON.parse(l)?.id||n),W("div",{...i,className:Fe("flex flex-row p-4",r),children:W($a,{href:o.link.href.replace("{{id}}",n),target:"_blank",theme:"primary",children:[W("span",{children:o.link.text||"Mehr erfahren"}),W(gF,{})]})})}var mF=ht(sf1);function lf1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("g",{children:W("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 hL=lf1;function cf1({children:r,className:t,onClose:e,title:i,...o}){return W("div",{...o,className:Fe("flex flex-row items-center justify-between gap-2 border-b p-2 pl-4",t),children:[r||W("span",{className:"text-base font-bold",children:i}),e&&W(U6,{className:"!size-[32px] border-none shadow-none",onClick:e,children:W(hL,{})})]})}var Kc=ht(cf1);function uf1({feature:r,layer:t,...e}){let{t:i}=L3(),o=_A(t?.get("name"));return W(Kc,{title:i(o?.title||"")||(o?.title??""),...e})}var vF=ht(uf1);function hf1(){let{featuresInfos:r,realtimeLayer:t,selectedFeature:e,setFeaturesInfos:i,setLinesIds:o,setStationId:n,setTrainId:l,stationId:A,stationsLayer:d,trainId:L}=Ot(),C=ye(()=>r?.find(E=>E?.features.includes(e)),[r,e]),y=ye(()=>{if(C?.layer)return C.layer;if(L)return t;if(A)return d},[C?.layer,t,A,d,L]);return W(m5,{children:[W(vF,{feature:e,layer:y,onClose:()=>{i(null),l(null),n(null),o(null)}}),W(Zy,{feature:e,featuresInfo:C,layer:y}),W(mF,{feature:e,layer:y})]})}var yF=ht(hf1);var V$=P3(ja(),1);function Af1({...r}){return W("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[W("defs",{children:W("polygon",{id:"path-1",points:"0 0 20 0 20 20 0 20"})}),W("g",{fill:"none",fillRule:"evenodd",id:"iconfont/search",stroke:"none",strokeWidth:"1",children:W("g",{id:"Group-3-Copy",transform:"translate(2, 2)",children:[W("mask",{fill:"white",id:"mask-2",children:W("use",{xlinkHref:"#path-1"})}),W("g",{id:"Clip-2"}),W("path",{d:"M14.0345333,13.8617333 C14.0025333,13.8864 13.9718667,13.9137333 13.9432,13.9430667 C13.9138667,13.9724 13.8865333,14.0030667 13.8632,14.0350667 C12.6038667,15.2517333 10.8892,15.9997333 8.99986667,15.9997333 C5.13386667,15.9997333 1.99986667,12.8657333 1.99986667,8.99973333 C1.99986667,5.13373333 5.13386667,1.99973333 8.99986667,1.99973333 C12.8658667,1.99973333 15.9998667,5.13373333 15.9998667,8.99973333 C15.9998667,10.8890667 15.2512,12.6037333 14.0345333,13.8617333 M19.7072,18.2930667 L16.0318667,14.6177333 C17.2632,13.0784 17.9998667,11.1250667 17.9998667,8.99973333 C17.9998667,4.02973333 13.9705333,-0.000266666667 8.99986667,-0.000266666667 C4.0292,-0.000266666667 -0.000133333333,4.02973333 -0.000133333333,8.99973333 C-0.000133333333,13.9704 4.0292,17.9997333 8.99986667,17.9997333 C11.1252,17.9997333 13.0785333,17.2637333 14.6178667,16.0317333 L18.2932,19.7070667 C18.6832,20.0977333 19.3165333,20.0977333 19.7072,19.7070667 C20.0978667,19.3164 20.0978667,18.6837333 19.7072,18.2930667",fill:"currentColor",id:"Fill-1",mask:"url(#mask-2)"})]})})]})}var AL=Af1;function df1({className:r,...t}){return W("input",{...t,className:Fe("p-2 text-sm read-only:text-gray-400",r)})}var _F=df1;var H$=r=>r?.properties?.name||"";function ff1({apikey:r,bbox:t,cancelButtonClassName:e,className:i,countrycode:o,event:n,field:l,inputClassName:A,inputContainerClassName:d,limit:L,mots:C,onselect:y,params:E,prefagencies:B,reflocation:Z,resultClassName:Q,resultsClassName:V,resultsContainerClassName:G,searchIconContainerClassName:J,url:n1="https://api.geops.io/stops/v1/",withResultsClassName:r1}){let{t:m1}=L3(),[w1,S1]=Ft(""),[g1,L1]=Ft(),[z1,s1]=Ft(),x1=Vi();rt(()=>{x1.current?.dispatchEvent(new Mf("mwc:attribute",{apikey:r,bbox:t,countrycode:o,event:n,field:l,limit:L,mots:C,onselect:y,params:E,prefagencies:B,reflocation:Z,url:n1}))},[r,t,o,n,l,L,C,y,E,B,Z,n1]);let N1=ye(()=>new K_({apiKey:r,url:n1}),[r,n1]),V1=i6(p2=>{let o2=new Mf(n||"mwc:stopssearchselect",p2,{bubbles:!0});x1.current?.dispatchEvent(o2),y&&typeof y=="function"&&y(p2)},[n,y]),l2=ye(()=>{let p2;return(0,V$.default)(o2=>{p2?.abort(),p2=new AbortController;let G1={bbox:t,field:l,limit:L,mots:C,prefagencies:B,q:o2,ref_location:Z,...JSON.parse(E||"{}")};N1.search(G1,{signal:p2.signal}).then(L2=>{s1(L2.features.filter(V2=>!o||V2.properties?.country_code===o))}).catch(L2=>{if(L2.code!==20){console.error("Failed to fetch stations",L2);return}})},150)},[N1,t,o,l,L,C,E,B,Z]);return rt(()=>{if(!(g1&&w1===H$(g1))){if(!w1){L1(void 0);return}return l2(w1),()=>{l2.cancel()}}},[w1,g1,l2]),rt(()=>{s1(void 0),g1&&S1(H$(g1)),V1(g1)},[V1,g1]),W(m5,{children:[W("div",{className:Fe("flex h-16 items-center gap-4 rounded-md bg-white p-4 pt-3.5 shadow",i,z1?r1:""),ref:x1,children:[W("div",{className:Fe("text-grey flex items-center",J),children:W(AL,{className:"size-4"})}),W("div",{className:Fe("@container/inputsearch flex grow items-center border-b-2 border-solid",d),children:[W(_F,{autoComplete:"off",className:Fe("h-8 w-1 grow overflow-hidden text-ellipsis placeholder:text-zinc-400",A),onChange:p2=>{S1(p2.target.value)},onKeyUp:p2=>{p2.key==="Enter"&&z1?.length>0&&L1(z1[0])},placeholder:m1("stops_search_placeholder"),type:"text",value:w1||""}),w1.length>0&&W(U6,{className:Fe("flex !size-[32px] items-center rounded-none border-none bg-transparent shadow-none",e),onClick:()=>{S1(""),s1(void 0)},children:W(hL,{})})]})]}),z1&&W("div",{className:Fe("flex grow overflow-auto rounded-md rounded-t-none bg-white shadow",G),children:[z1&&z1.length===0&&W("div",{className:Fe("flex grow gap-3 border border-solid p-3 pt-2 text-zinc-400",V),style:{border:1},children:[W("div",{className:"size-6"}),W("div",{children:m1("no_stops_found")})]}),z1&&z1.length>0&&W("ul",{className:Fe("grow rounded-md rounded-t-none border border-solid bg-white p-0",V),style:{border:1},children:z1?.map(p2=>W("li",{className:Fe("border-b border-dashed border-slate-300 p-3 last:border-0",Q),children:W("button",{className:"flex w-full items-center gap-3 text-left",onClick:()=>{L1(p2)},children:[W("div",{className:"size-6"}),W("div",{className:"grow",children:p2.properties.name})]})},p2.properties.uid))})]})]})}var dL=ht(ff1);var pf1=(r,t)=>{let e=r?.geometry?.coordinates;e&&t?.getView()?.animate({center:Ia(e),duration:500,zoom:16})},G$=pf1;function Lf1(r){let{apikey:t,map:e,stopsurl:i}=Ot(),o=i6(n=>G$(n,e),[e]);return W(dL,{apikey:t,bbox:Ka.join(","),onselect:o,url:i,...r})}var Wc=ht(Lf1);var Ir=P3(J$());var tX='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 eX='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 xF=Ir.default.shape({circled:Ir.default.bool,height:Ir.default.number,rotation:Ir.default.oneOfType([Ir.default.number,Ir.default.func]),src:Ir.default.string,width:Ir.default.number}),yf1=typeof CanvasPattern>"u"?Function:CanvasPattern,_f1={autoDownload:Ir.default.bool,children:Ir.default.node,coordinates:Ir.default.arrayOf(Ir.default.arrayOf(Ir.default.number)),extent:Ir.default.arrayOf(Ir.default.number),extraData:Ir.default.shape({copyright:Ir.default.shape({background:Ir.default.bool,fillStyle:Ir.default.oneOfType([Ir.default.string,Ir.default.instanceOf(yf1)]),font:Ir.default.string,maxWidth:Ir.default.number,paddingBackground:Ir.default.number,paddingBottom:Ir.default.number,text:Ir.default.oneOfType([Ir.default.string,Ir.default.func])}),logo:xF,northArrow:xF,qrCode:xF}),format:Ir.default.oneOf(["image/jpeg","image/png"]),getDownloadImageName:Ir.default.func,map:Ir.default.instanceOf(Ac),margin:Ir.default.number,onSaveEnd:Ir.default.func,onSaveStart:Ir.default.func,padding:Ir.default.number,scale:Ir.default.number},xf1=r=>r.width/100,wf1=r=>{let t=r==="image/jpeg"?"jpg":"png";return`${window.document.title.replace(/ /g,"_").toLowerCase()}.${t}`},Ny=!1,Uy=0,bf1=(r,t,e,i)=>{let n,l;do n=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),l=parseInt(n[0].replace(n[1],""),10),r.font=r.font.replace(l,l-1),Ny=!1,l-1===8&&(Ny=!0);while(l-1>8&&r.measureText(e).width*i>t);return r.font},Mf1=(r,t,e,i,o,n={})=>{r.save(),r.fillStyle="rgba(255,255,255,.8)",typeof n=="object"&&Object.entries(n).forEach(([l,A])=>{r[l]=A}),r.fillRect(t,e,i,o),r.restore()},Bf1=(r,t,e,i,o,n,l)=>{let{background:A,fillStyle:d,font:L,text:C}=i.copyright,{paddingBackground:y=2,paddingBottom:E=l}=i.copyright,B=typeof C=="function"?C():C?.trim();Array.isArray(B)&&(B=B.join()),r.save(),r.scale(o,o),r.font=L||"12px Arial",r.font=bf1(r,e,B,o),r.textBaseline="bottom",r.scale(o,o),r.fillStyle=d||"black";let Z=B,Q=r.measureText(Z);if(Ny){let r1=B.split(" ").length;for(let m1=0;m1<r1&&!(Q.width*o<e);m1+=1)Z=Z.substring(0,Z.lastIndexOf(" ")),Q=r.measureText(Z)}let V=B.replace(Z,"").trim(),G=[Z,V].filter(r1=>!!r1).reverse(),J=n,n1=t.height-E;G.forEach(r1=>{let{fontBoundingBoxAscent:m1,fontBoundingBoxDescent:w1,width:S1}=r.measureText(r1),g1=m1+w1,L1=n1-g1;if(A){let z1=n;L1-=y*2,Mf1(r,z1,L1,S1+y*2,g1+y*2,A),J+=y,n1-=y}r.fillText(r1,J,n1),n1=L1}),Uy=n1,r.restore()},wF=(r,t,e,i,o,n=[0,0],l="right")=>{let A=t.getContext("2d"),{height:d,rotation:L,src:C,width:y}=r;return new Promise(E=>{let B=new Image;B.crossOrigin="Anonymous",B.src=C,B.onload=()=>{A.save();let Z=(y||80)*e,Q=(d||80)*e,V=l==="left"?i+Z/2:t.width-i-Z/2,G=(l==="left"&&Uy?Uy-o:t.height)-i-Q/2-n[1];if(A.translate(V,G),L){let J=typeof L=="function"?L():L;A.rotate(J*(Math.PI/180))}A.drawImage(B,-Z/2,-Q/2,Z,Q),A.restore(),E([Z+2*o,Q+2*o])},B.onerror=()=>{E()}})},Sf1=(r,t,e)=>{let i,o;if(t?(i=jl(t),o=Gl(t)):e&&([i,,o]=e),i&&o){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(o),A=[n[0]<=l[0]?n[0]:l[0],n[1]<=l[1]?n[1]:l[1]],d=[n[0]>l[0]?n[0]:l[0],n[1]>l[1]?n[1]:l[1]];return{h:d[1]-A[1],w:d[0]-A[0],x:A[0],y:A[1]}}return null},Ef1=(r,t,e,i,o,n,l)=>new Promise(A=>{r.once("rendercomplete",()=>{let d=r.getTargetElement().getElementsByTagName("canvas"),L,C;for(let E=0;E<d.length;E+=1){let B=d[E];if(!B.width||!B.height)continue;let Z=Sf1(r,i,o)||{h:B.height,w:B.width,x:0,y:0};L||(L=document.createElement("canvas"),L.width=Z.w,L.height=Z.h,C=L.getContext("2d")),C.drawImage(B,Z.x,Z.y,Z.w,Z.h,0,0,L.width,L.height)}n=n||xf1(L);let y=Promise.resolve();C&&t&&t.logo&&(y=wF(t.logo,L,e,n,l)),y.then((E=[0,0])=>{let B=Promise.resolve();C&&t&&t.northArrow&&(B=wF({src:t.northArrow.circled?eX:tX,...t.northArrow},L,e,n,l,E)),B.then((Z=[0,0])=>{let Q=Math.max(E[0],Z[0]);if(C&&t&&t.copyright&&t.copyright.text){let G=t.copyright.maxWidth||(Q?C.canvas.width-Q-n:C.canvas.width);Bf1(C,L,G,t,e,n,l)}let V=Promise.resolve();C&&t&&t.qrCode&&(V=wF(t.qrCode,L,e,n,l,void 0,"left")),V.then(()=>A(L))})})}),r.renderSync()}),Tf1=(r,t,e)=>new Promise(o=>{if(/msie (9|10)/gi.test(window.navigator.userAgent.toLowerCase())){let n=r.toDataURL(t);window.open("about:blank","").document.write(`<img src="${n}" alt="from canvas"/>`),o(n)}if(window.navigator.msSaveBlob){let n;try{n=r.msToBlob()}catch(A){console.log(A)}let l=new Blob([n],{type:t});o(l),window.navigator.msSaveBlob(l,e(t))}else r.toBlob(n=>{let l=document.createElement("a");l.download=e(t),l.href=URL.createObjectURL(n),document.body.appendChild(l),l.click(),o(n)},t)});function rX({autoDownload:r=!0,children:t=null,coordinates:e=null,extent:i=null,extraData:o=null,format:n="image/png",getDownloadImageName:l=wf1,map:A=null,margin:d=null,onSaveEnd:L=()=>{},onSaveStart:C=B=>Promise.resolve(B),padding:y=5,scale:E=1}){let B=i6(Z=>{window.navigator.msSaveBlob&&(Z.preventDefault(),Z.stopPropagation()),Ny=!1,Uy=0,C(A).then(Q=>Ef1(Q||A,o,E,i,e,d,y).then(V=>{r?Tf1(V,n,l).then(G=>{L(Q,V,G)}):L(Q,V)}).catch(V=>{V&&console.error(V),L(Q,V)}))},[r,e,i,o,n,A,d,L,C,y,E,l]);return i7.createElement(i7.Fragment,null,i7.Children.map(t,Z=>i7.cloneElement(Z,{onClick:B})))}rX.propTypes=_f1;var bF=rX;function If1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("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 MF=If1;function Ff1({...r}){return W("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:W("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 BF=Ff1;function Pf1({...r}){return W("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:W("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 SF=Pf1;function Rf1(r){let{t}=L3(),[e,i]=Ft(),[o,n]=Ft(!1),l=w4(),[A,d]=Ft(null),L=y=>{i(y.currentTarget.getBoundingClientRect());let E=A.querySelector(`#${l}`);navigator.clipboard.writeText(E?.value).then(()=>{n(!0),setTimeout(()=>{n(!1)},1e3)}),E?.select()};return W("div",{className:"text-grey flex items-center",ref:y=>{d(y)},children:[W("input",{className:"h-7 w-full rounded-sm rounded-r-none border border-r-0 border-current p-1 leading-4 outline-none",id:l,onFocus:()=>{A.querySelector(`#${l}`)?.select()},readOnly:!0,type:"text",...r}),W(U6,{className:"!size-7 rounded-l-none rounded-r-sm border-current",onClick:L,children:W(SF,{})}),W("div",{className:`bg-grey fixed rounded-md p-1 text-sm text-white ${o?"block":"hidden"}`,style:{left:e?.left-30,top:e?.top-40},children:t("input_copy_success")})]})}var Qy=Rf1;function zf1(r,t){let e=r||"";if(t?.forEach((i,o)=>{e=e.replace(`{{${o}}}`,i)}),e.startsWith("#"))e=`${window.location.href.split("#")[0]}${e}`;else if(e.startsWith("?")||!e){let i=new URLSearchParams(window.location.search);new URLSearchParams(e).forEach((l,A)=>{i.set(A,l)}),r?.includes("{{x}}")&&r?.includes("{{y}}")&&i.delete("center"),r?.includes("{{z}}")&&i.delete("zoom");let n=i.toString();!n.startsWith("?")&&e.length&&(n=`?${n}`),e=`${window.location.href.split("?")[0]}${n}${window.location.hash}`}return e}var iX=zf1;function Df1(){let{permalinktemplate:r,permalinkUrlSearchParams:t}=Ot();return iX(r,t)}var xA=Df1;var kf1={};function Of1({inputProps:r=kf1,...t}){let{t:e}=L3(),i=xA();return W("div",{...t,children:[W(Qy,{value:i,...r,readonly:!0}),W("p",{className:"py-2",children:e("permalink_input_hint")})]})}var EF=ht(Of1);function Zf1({className:r="",...t}){let{map:e}=Ot(),{t:i}=L3(),o=xA();return W("div",{className:Fe(`flex flex-col gap-4 ${r}`),...t,children:[W($a,{className:"w-fit",href:`mailto:?subject=Karte&body=${o}`,children:[W(MF,{}),W("span",{children:i("share_email_send")})]}),W(bF,{map:e,children:W($a,{className:"w-fit",children:[W(BF,{}),W("span",{children:i("share_image_save")})]})}),W(EF,{})]})}var TF=Zf1;var Nf1="relative h-full overflow-x-hidden overflow-y-auto text-base bg-white";function Uf1({hasDetails:r,hasLayerTree:t,hasPrint:e,hasSearch:i,hasShare:o}){let{isExportMenuOpen:n,isLayerTreeOpen:l,isSearchOpen:A,isShareMenuOpen:d,selectedFeature:L,setIsExportMenuOpen:C,setIsLayerTreeOpen:y,setIsShareMenuOpen:E}=Ot(),{t:B}=L3();return W(m5,{children:[r&&L&&W(yF,{}),e&&n&&W(m5,{children:[W(Kc,{onClose:()=>{C(!1)},title:B("print_menu_title")}),W(dI,{className:Fe(Nf1,"flex flex-col gap-4 p-4")})]}),t&&l&&W(m5,{children:[W(Kc,{onClose:()=>{y(!1)},title:B("layertree_menu_title")}),W(gI,{className:"relative flex h-full flex-col overflow-x-hidden overflow-y-auto px-4 py-2 text-base *:not-last:border-b",treeItemProps:{childContainerClassName:"*:not-last:border-b"}})]}),o&&d&&W(m5,{children:[W(Kc,{onClose:()=>{E(!1)},title:B("share_menu_title")}),W(TF,{className:"h-full overflow-x-hidden overflow-y-auto p-4 text-base"})]}),i&&A&&W(m5,{children:W(Wc,{className:"relative flex h-full flex-col overflow-x-hidden overflow-y-auto p-2 text-base"})})]})}var Hy=Uf1;var IF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},FF=i7.createContext&&i7.createContext(IF);var Qf1=["attr","size","title"];function Hf1(r,t){if(r==null)return{};var e=Vf1(r,t),i,o;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(e[i]=r[i])}return e}function Vf1(r,t){if(r==null)return{};var e={};for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){if(t.indexOf(i)>=0)continue;e[i]=r[i]}return e}function Vy(){return Vy=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Vy.apply(this,arguments)}function nX(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),e.push.apply(e,i)}return e}function Gy(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?nX(Object(e),!0).forEach(function(i){Gf1(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):nX(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function Gf1(r,t,e){return t=jf1(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function jf1(r){var t=qf1(r,"string");return typeof t=="symbol"?t:t+""}function qf1(r,t){if(typeof r!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function oX(r){return r&&r.map((t,e)=>i7.createElement(t.tag,Gy({key:e},t.attr),oX(t.child)))}function aX(r){return t=>i7.createElement(Kf1,Vy({attr:Gy({},r.attr)},t),oX(r.child))}function Kf1(r){var t=e=>{var{attr:i,size:o,title:n}=r,l=Hf1(r,Qf1),A=o||e.size||"1em",d;return e.className&&(d=e.className),r.className&&(d=(d?d+" ":"")+r.className),i7.createElement("svg",Vy({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,l,{className:d,style:Gy(Gy({color:r.color||e.color},e.style),r.style),height:A,width:A,xmlns:"http://www.w3.org/2000/svg"}),n&&i7.createElement("title",null,n),r.children)};return FF!==void 0?i7.createElement(FF.Consumer,null,e=>t(e)):t(IF)}function sX(r){return aX({tag:"svg",attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 28 4.46875 L 26.59375 5.09375 L 19.96875 7.9375 L 12.34375 5.0625 L 11.96875 4.9375 L 11.59375 5.09375 L 4.59375 8.09375 L 4 8.34375 L 4 27.53125 L 5.40625 26.90625 L 12.03125 24.0625 L 19.65625 26.9375 L 20.03125 27.0625 L 20.40625 26.90625 L 27.40625 23.90625 L 28 23.65625 Z M 13 7.4375 L 19 9.6875 L 19 24.5625 L 13 22.3125 Z M 11 7.5 L 11 22.34375 L 6 24.5 L 6 9.65625 Z M 26 7.5 L 26 22.34375 L 21 24.5 L 21 9.65625 Z"},child:[]}]})(r)}function Wf1({className:r,...t}){let{mainlink:e,mainlinktitle:i,map:o}=Ot(),[n,l]=Ft(0),[A,d]=Ft(0),[L,C]=Ft(0);rt(()=>{let E=Z=>{let Q=Z.map?.getView()?.getCenter();Q&&(l(Q[0]),d(Q[1]));let V=Z.map?.getView()?.getZoom();V&&C(V)};E({map:o});let B=o?.on("moveend",E);return()=>{Lr(B)}},[o]);let y=ye(()=>e?e.replace("{{x}}",n.toFixed(4)).replace("{{y}}",A.toFixed(4)).replace("{{z}}",L.toFixed(2)):"#",[e,n,A,L]);return W(U6,{className:Fe("rounded-xl border-3 border-white",r),href:y,target:"_blank",theme:"primary",title:i,...t,children:W(sX,{})})}var PF=Wf1;var RF=M9({poisLayer:null,sellingPointsLayer:null,setPoisLayer:()=>{console.warn("setPoisLayer is not implemented")},setSellingPointsLayer:()=>{console.warn("setSellingPointsLayer is not implemented")},setSharedMobilityLayerGroup:()=>{console.warn("setSharedMobilityLayerGroup is not implemented")},setTarifZonenLayer:()=>{console.warn("setTarifZonenLayer is not implemented")},sharedMobilityLayerGroup:null,tarifZonenLayer:null}),$f1=()=>{let r=r7(RF);if(!r)throw new Error("useRvfContext must be used within a ContextProvider");return r},yl=$f1;function Xf1(r){let{baseLayer:t,map:e}=Ot(),{setPoisLayer:i}=yl(),o=ye(()=>t?new N6({layersFilter:({metadata:n})=>n?.["mapset.filter"]==="mapset_poi",maplibreLayer:t,name:Et.pois,visible:!1,...r||{}}):null,[t,r]);return rt(()=>{i(o)},[o,i]),rt(()=>{if(!(!e||!o))return e.addLayer(o),()=>{e.removeLayer(o)}},[e,o]),null}var zF=ht(Xf1);var Yf1=new h0({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});function Jf1(){let{baseLayer:r}=Ot(),{selectedFeature:t}=Ot(),e=ye(()=>r?.mapLibreMap,[r?.mapLibreMap]);return rt(()=>{let i=t?.get("vectorTileFeature");t?.set("selected",!0);let o=e?.getSource(ZO);if(t){let n=t.clone();if(n.setStyle(null),(i||n.get("cluster_id"))&&(e?.setFeatureState(i,{hover:!0}),n.get("cluster_id")&&(n.set("mot",n.get("vectorTileFeature")?.source?.split("_")?.pop()||"scooter"),n.set("provider_name",""),n.set("num_vehicles_available",n.get("point_count"))),!n.get("disruption_type")))try{let l=Yf1.writeFeatureObject(n);o?.setData(l)}catch{}}return()=>{o?.setData(NO),t?.set("selected",!1),i&&e?.setFeatureState(i,{hover:!1})}},[e,t]),null}var DF=Jf1;function tp1(r){let{baseLayer:t,map:e}=Ot(),{setSellingPointsLayer:i}=yl(),o=_A(Et.verkaufsstellen),n=ye(()=>t?new N6({layersFilter:({metadata:l})=>l?.["general.filter"]==="selling_points",maplibreLayer:t,name:Et.verkaufsstellen,...r||{},layerTreeTitle:W("div",{className:"flex items-center justify-between gap-2",children:[o?.title,W("span",{className:"flex items-center",children:[W(eL,{}),W(rL,{}),W(iL,{})]})]}),title:o?.title}):null,[t,r,o]);return rt(()=>{i(n)},[n,i]),rt(()=>{if(!(!e||!n))return e.addLayer(n),()=>{e.removeLayer(n)}},[e,n]),null}var kF=ht(tp1);var lX='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 rp1({...r}){return W("img",{alt:"Bicycle",src:lX,...r})}var jy=rp1;var cX='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 np1({...r}){return W("img",{alt:"Car",src:cX,...r})}var fL=np1;var uX='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 ap1({...r}){return W("img",{alt:"Cargo bike",src:uX,...r})}var qy=ap1;var hX='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 lp1({...r}){return W("img",{alt:"Ride",src:hX,...r})}var OF=lp1;var AX='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 up1({...r}){return W("img",{alt:"Scooter",src:AX,...r})}var ZF=up1;var hp1=(r,t=Ka)=>`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=${t.toString()},EPSG:4326`,NF=async(r,t,e=Ka)=>{let i=hp1(r,e),n=await(await fetch(i,{signal:t.signal})).json();return n?.features.forEach(l=>{let A=l.properties.vehicle_id;l.properties.id=A||l.properties.station_id,l.properties.provider_name=Sg[l.properties.feed_id];let L=l.properties.form_factor||r.split("_").pop();if(L==="bicycle"?L="bike":L==="cargo_bicycle"&&(L="cargo_bike"),L==="stations"){let C=l.properties;C.num_bicycles_available!==null?(L="bike",l.properties.num_vehicles_available=C.num_bicycles_available):C.num_cars_available!==null?(L="car",l.properties.num_vehicles_available=C.num_cars_available):C.num_cargo_bicycles_available!==null&&(L="cargo_bike",l.properties.num_vehicles_available=C.num_cargo_bicycles_available)}else l.properties.num_vehicles_available=1;l.properties.mot=L,l.properties.display_num_vehicles_available=!0}),n};var Ap1=async(r,t,e=Ka)=>({features:(await NF(r,t,e)).features,type:"FeatureCollection"});function dp1(r){let{baseLayer:t,map:e}=Ot(),{setSharedMobilityLayerGroup:i}=yl(),{t:o}=L3(),[n,l]=Ft(),[A,d]=Ft(),[L,C]=Ft(),[y,E]=Ft(),[B,Z]=Ft(),Q=ye(()=>t?.mapLibreMap,[t?.mapLibreMap]),V=i6(()=>{let J=new AbortController,n1=Mo(e.getView().calculateExtent(),"EPSG:3857","EPSG:4326");return(async()=>{let m1=await Ap1(FO,J,n1);l(m1);let w1=await NF(PO,J,n1),S1={features:[],type:"FeatureCollection"},g1={features:[],type:"FeatureCollection"},L1={features:[],type:"FeatureCollection"},z1={features:[],type:"FeatureCollection"};w1.features.forEach(s1=>{s1.properties.form_factor===UO?S1.features.push(s1):s1.properties.form_factor===HO?g1.features.push(s1):s1.properties.form_factor===QO?L1.features.push(s1):s1.properties.form_factor===VO&&z1.features.push(s1)}),d(S1),C(g1),E(L1),Z(z1)})(),()=>{J.abort()}},[e]);rt(()=>{let J=e?.on("moveend",V),n1=e?.on(`change:${Vo}`,m1=>{m1.target.get(Vo)||V()}),r1=e?.once("rendercomplete",V);return()=>{Lr([J,n1,r1])}},[e,V,Q]),rt(()=>{if(!Q?.style||!n)return;Q.getSource(RO)?.setData(n)},[n,Q]),rt(()=>{if(!Q?.style||!A)return;Q.getSource(zO)?.setData(A)},[Q,A]),rt(()=>{if(!Q?.style||!L)return;Q.getSource(DO)?.setData(L)},[Q,L]),rt(()=>{if(!Q?.style||!y)return;Q.getSource(kO)?.setData(y)},[Q,y]),rt(()=>{if(!Q?.style||!B)return;Q.getSource(OO)?.setData(B)},[Q,B]);let G=ye(()=>{if(!t)return null;let J=new N6({layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(jy,{})]}),maplibreLayer:t,name:Et.bikeFrelo,styleLayersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="bike.frelo"}),n1=new N6({layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(jy,{})]}),maplibreLayer:t,name:Et.bikeOthers,styleLayersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="bike.other"}),r1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="cargo_bike.frelo",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(qy,{})]}),maplibreLayer:t,name:Et.cargobikeFrelo}),m1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="cargo_bike.other",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(qy,{})]}),maplibreLayer:t,name:Et.cargobikeOthers}),w1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="car.grueneflotte",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(fL,{})]}),maplibreLayer:t,name:Et.carGrf}),S1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="car.naturenergy",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(fL,{})]}),maplibreLayer:t,name:Et.carNatur}),g1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="car.other",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(fL,{})]}),maplibreLayer:t,name:Et.carOthers}),L1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="scooter",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(ZF,{})]}),maplibreLayer:t,name:Et.eroller}),z1=new N6({layersFilter:({metadata:s1})=>s1?.["rvf.filter"]==="hitchhiking",layerTreeTitle:s1=>W("div",{className:"flex items-center justify-between gap-2",children:[o(s1),W(OF,{})]}),maplibreLayer:t,name:Et.mitfahrpunkte});return new Uo({layers:[J,n1,r1,m1,w1,S1,g1,L1,z1],name:Et.sharedMobility,...r})},[t,r,o]);return rt(()=>{let J=window.setInterval(()=>{V()},6e4);return()=>{window.clearInterval(J)}},[G,V]),rt(()=>{i(G)},[G,i]),rt(()=>{if(!(!e||!G))return e.addLayer(G),()=>{e.removeLayer(G)}},[e,G]),null}var UF=ht(dp1);function fp1(r){let{baseLayer:t,map:e}=Ot(),{setTarifZonenLayer:i}=yl(),o=ye(()=>t?new N6({isQueryable:!1,layersFilter:({metadata:n})=>n?.["rvf.filter"]==="zones",maplibreLayer:t,name:Et.tarifzonen,...r||{}}):null,[t,r]);return rt(()=>{i(o)},[o,i]),rt(()=>{if(!(!e||!o))return e.addLayer(o),()=>{e.removeLayer(o)}},[e,o]),null}var QF=ht(fp1);var dX=`.ol-scale-line {
|
|
1546
1546
|
position:relative;
|
|
1547
1547
|
left: unset;
|
|
1548
1548
|
bottom: unset;
|
|
@@ -1935,15 +1935,24 @@ where:
|
|
|
1935
1935
|
.my-12 {
|
|
1936
1936
|
margin-block: calc(var(--spacing) * 12);
|
|
1937
1937
|
}
|
|
1938
|
+
.mt-2 {
|
|
1939
|
+
margin-top: calc(var(--spacing) * 2);
|
|
1940
|
+
}
|
|
1938
1941
|
.mr-2 {
|
|
1939
1942
|
margin-right: calc(var(--spacing) * 2);
|
|
1940
1943
|
}
|
|
1944
|
+
.mr-4 {
|
|
1945
|
+
margin-right: calc(var(--spacing) * 4);
|
|
1946
|
+
}
|
|
1941
1947
|
.mr-\\[-60px\\] {
|
|
1942
1948
|
margin-right: -60px;
|
|
1943
1949
|
}
|
|
1944
1950
|
.mb-0 {
|
|
1945
1951
|
margin-bottom: calc(var(--spacing) * 0);
|
|
1946
1952
|
}
|
|
1953
|
+
.mb-2 {
|
|
1954
|
+
margin-bottom: calc(var(--spacing) * 2);
|
|
1955
|
+
}
|
|
1947
1956
|
.mb-48 {
|
|
1948
1957
|
margin-bottom: calc(var(--spacing) * 48);
|
|
1949
1958
|
}
|
|
@@ -2236,6 +2245,13 @@ where:
|
|
|
2236
2245
|
.gap-\\[1px\\] {
|
|
2237
2246
|
gap: 1px;
|
|
2238
2247
|
}
|
|
2248
|
+
.space-y-2 {
|
|
2249
|
+
:where(& > :not(:last-child)) {
|
|
2250
|
+
--tw-space-y-reverse: 0;
|
|
2251
|
+
margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
|
|
2252
|
+
margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2239
2255
|
.space-y-4 {
|
|
2240
2256
|
:where(& > :not(:last-child)) {
|
|
2241
2257
|
--tw-space-y-reverse: 0;
|
|
@@ -3555,8 +3571,8 @@ html {
|
|
|
3555
3571
|
--tw-drop-shadow: initial;
|
|
3556
3572
|
--tw-duration: initial;
|
|
3557
3573
|
--tw-ease: initial;
|
|
3558
|
-
}`}),W("style",{children:bA}),W("style",{children:ZX}),W(XM.Provider,{value:p5,children:[W(tB,{}),W(JF,{replaceState:r1}),W(oB,{node:t.current,wcAttributes:r}),W(hP,{eventNode:t.current}),W(sP,{}),W(JM,{}),W(YM,{}),J&&W(YF,{}),g1&&W(Wy,{}),x1&&W(wA,{}),E&&W(eB,{}),E&&W(iB,{}),V&&W(XF,{}),W("div",{className:"@container/main relative size-full border font-sans",ref:t,children:W(Ky,{})})]})]})}var sL1=ht(aL1),NX={};Object.entries(us).forEach(([r])=>{NX[r]=us[r].defaultValue||null});function lL1(r){return W(sL1,{...NX,...r})}var UX=ht(lL1);function cL1(r){let[t,e]=Ft(),[i,o]=Ft(),[n,l]=Ft(),[A,d]=Ft(),L=ye(()=>({poisLayer:n,sellingPointsLayer:t,setPoisLayer:l,setSellingPointsLayer:e,setSharedMobilityLayerGroup:d,setTarifZonenLayer:o,sharedMobilityLayerGroup:A,tarifZonenLayer:i}),[n,t,A,i]);return W(RF.Provider,{value:L,children:W(UX,{...r})})}var uL1=ht(cL1),QX={};Object.entries(us).forEach(([r])=>{QX[r]=us[r].defaultValue||null});function hL1(r){return W(uL1,{...QX,...r})}var $y=ht(hL1);var AL1='<a href="https://developer.geops.io/">geOps API key</a>',HX='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',dL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${AL1}`,public:!1},lang:{defaultValue:"de",description:"The language to use for the notifications.",public:!1},notificationat:{description:"An ISO date string used to display active notification at this date in the notification layer. If not defined the current date will be used.<br/>Ex: 2025-08-01T00:00:00Z .",public:!1},notificationtenant:{defaultValue:"rvf",description:`The ${HX} tenant to get the notification from.`,public:!1},notificationurl:{defaultValue:"https://moco.geops.io/api/v2/",description:`The ${HX} url to use.`,public:!1}},MA=dL1;function fL1({apikey:r,lang:t,notificationtenant:e,notificationurl:i}){let[o,n]=Ft([]);return rt(()=>{new xd({apiKey:r||void 0,tenant:e,url:i}).export({contentMedium:!0,graph:"np_topo4,np_topo5,np_topo6,np_topo7,np_topo8,np_topo9,np_topo10,np_topo11,np_topo12,np_topo13,np_topo14,np_topo15,osm",hasGeoms:!0,publicAt:"2025-10-10T10:03:31.650Z"}).then(l=>{l?.paginatedSituations?.results&&n(l.paginatedSituations.results)}).catch(l=>{console.error(l)})},[r,i,e]),rt(()=>{_l.locale(t)},[t]),W(gc.Provider,{value:_l,children:[W("style",{children:bA}),W("div",{className:"flex w-full flex-col gap-6",children:o?.map(l=>W(Wp,{canToggle:!0,headerClassName:"text-rvf-h3 font-semibold",iconClassName:"w-8 h-8 text-red",reasonClassName:"hidden",situation:l,timeIntervalClassName:"pl-1 text-base py-3 font-semibold text-balance",useShortMonth:!1},l.id))})]})}var VX={};Object.entries(MA).forEach(([r])=>{VX[r]=MA[r].defaultValue||null});function pL1(r){return W(fL1,{...VX,...r})}var fP=ht(pL1);var LL1='<a href="https://developer.geops.io/">geOps API key</a>',xl='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',CL1={apikey:{description:`Your ${LL1}
|
|
3559
|
-
ident_source (for id and code fields). Possible values: sbb, db. See the ${xl} documentation
|
|
3574
|
+
}`}),W("style",{children:bA}),W("style",{children:ZX}),W(XM.Provider,{value:p5,children:[W(tB,{}),W(JF,{replaceState:r1}),W(oB,{node:t.current,wcAttributes:r}),W(hP,{eventNode:t.current}),W(sP,{}),W(JM,{}),W(YM,{}),J&&W(YF,{}),g1&&W(Wy,{}),x1&&W(wA,{}),E&&W(eB,{}),E&&W(iB,{}),V&&W(XF,{}),W("div",{className:"@container/main relative size-full border font-sans",ref:t,children:W(Ky,{})})]})]})}var sL1=ht(aL1),NX={};Object.entries(us).forEach(([r])=>{NX[r]=us[r].defaultValue||null});function lL1(r){return W(sL1,{...NX,...r})}var UX=ht(lL1);function cL1(r){let[t,e]=Ft(),[i,o]=Ft(),[n,l]=Ft(),[A,d]=Ft(),L=ye(()=>({poisLayer:n,sellingPointsLayer:t,setPoisLayer:l,setSellingPointsLayer:e,setSharedMobilityLayerGroup:d,setTarifZonenLayer:o,sharedMobilityLayerGroup:A,tarifZonenLayer:i}),[n,t,A,i]);return W(RF.Provider,{value:L,children:W(UX,{...r})})}var uL1=ht(cL1),QX={};Object.entries(us).forEach(([r])=>{QX[r]=us[r].defaultValue||null});function hL1(r){return W(uL1,{...QX,...r})}var $y=ht(hL1);var AL1='<a href="https://developer.geops.io/">geOps API key</a>',HX='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',dL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${AL1}`,public:!1},lang:{defaultValue:"de",description:"The language to use for the notifications.",public:!1},notificationat:{description:"An ISO date string used to display active notification at this date in the notification layer. If not defined the current date will be used.<br/>Ex: 2025-08-01T00:00:00Z .",public:!1},notificationtenant:{defaultValue:"rvf",description:`The ${HX} tenant to get the notification from.`,public:!1},notificationurl:{defaultValue:"https://moco.geops.io/api/v2/",description:`The ${HX} url to use.`,public:!1}},MA=dL1;function fL1({apikey:r,lang:t,notificationtenant:e,notificationurl:i}){let[o,n]=Ft([]);return rt(()=>{new xd({apiKey:r||void 0,tenant:e,url:i}).export({contentMedium:!0,graph:"np_topo4,np_topo5,np_topo6,np_topo7,np_topo8,np_topo9,np_topo10,np_topo11,np_topo12,np_topo13,np_topo14,np_topo15,osm",hasGeoms:!0,publicAt:"2025-10-10T10:03:31.650Z"}).then(l=>{l?.paginatedSituations?.results&&n(l.paginatedSituations.results)}).catch(l=>{console.error(l)})},[r,i,e]),rt(()=>{_l.locale(t)},[t]),W(gc.Provider,{value:_l,children:[W("style",{children:bA}),W("div",{className:"flex w-full flex-col gap-6",children:o?.map(l=>W(Wp,{canToggle:!0,headerClassName:"text-rvf-h3 font-semibold",iconClassName:"w-8 h-8 text-red",reasonClassName:"hidden",situation:l,timeIntervalClassName:"pl-1 text-base py-3 font-semibold text-balance",useShortMonth:!1},l.id))})]})}var VX={};Object.entries(MA).forEach(([r])=>{VX[r]=MA[r].defaultValue||null});function pL1(r){return W(fL1,{...VX,...r})}var fP=ht(pL1);var LL1='<a href="https://developer.geops.io/">geOps API key</a>',xl='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',CL1={apikey:{description:`Your ${LL1}`,public:!0},bbox:{description:`The extent where to search the stops (minx,miny,maxx,maxy). See the ${xl} documentation.`,public:!0},countrycode:{description:"The country code to filter the results (IT, DE, CH ...)",public:!0},event:{defaultValue:"mwc:stopssearchselect",description:"The event's name to listen to when a stop is selected.",public:!0},field:{description:`Which field to look up, default all of them, Possible values:id, name, coords. See the ${xl} documentation.`,public:!0},limit:{defaultValue:"5",description:`The number of suggestions to show. See the ${xl} documentation.`,public:!0},mots:{description:`Commas separated list of mots used to filter the results (rail, bus, coach, foot, tram, subway, gondola, funicular, ferry, car). See the ${xl} documentation.`,public:!0},onselect:{description:null,public:!1},params:{description:`JSON string with additional parameters to pass to the request to the API. Ex: {"{ 'key': 'value' }"}. See the ${xl} documentation.`,public:!0},prefagencies:{description:`comma seperated list, order chooses which agency will be preferred as
|
|
3575
|
+
ident_source (for id and code fields). Possible values: sbb, db. See the ${xl} documentation.`,public:!0},reflocation:{description:`Coordinates in WGS84 (in lat,lon order) used to rank stops close to this position higher. See the ${xl} documentation.`,public:!0},url:{defaultValue:"https://api.geops.io/stops/v1/",description:`The URL to the ${xl}.`,public:!0}},BA=CL1;function gL1(r){return W(gc.Provider,{value:_l,children:[W("style",{children:bA}),W(dL,{...r})]})}var GX={};Object.entries(BA).forEach(([r])=>{GX[r]=BA[r].defaultValue||null});function mL1(r){return W(gL1,{...GX,...r})}var pP=ht(mL1);qL($y,"geops-mobility",Object.keys(us),{mode:"open",shadow:!0});qL(pP,"geops-mobility-search",Object.keys(BA),{mode:"open",shadow:!0});qL(fP,"geops-mobility-notifications",Object.keys(MA),{mode:"open",shadow:!0});})();
|
|
3560
3576
|
/*! Bundled license information:
|
|
3561
3577
|
|
|
3562
3578
|
maplibre-gl/dist/maplibre-gl.js:
|
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.66",
|
|
6
6
|
"homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "index.js",
|
package/search.html
CHANGED
|
@@ -24,15 +24,19 @@
|
|
|
24
24
|
width: 3px;
|
|
25
25
|
height: 3px;
|
|
26
26
|
}
|
|
27
|
+
|
|
27
28
|
a {
|
|
28
29
|
text-decoration: underline;
|
|
29
30
|
}
|
|
30
31
|
</style>
|
|
31
32
|
</head>
|
|
32
|
-
|
|
33
|
+
|
|
33
34
|
<body class="p-8">
|
|
34
35
|
<!-- tailwind hack to add class used in docutils -->
|
|
35
|
-
<div
|
|
36
|
+
<div
|
|
37
|
+
class="flex w-full table-auto gap-4 border bg-black pt-2 mt-2 px-4 py-2 text-white hover:bg-gray-700"
|
|
38
|
+
style="display: none"
|
|
39
|
+
></div>
|
|
36
40
|
<div
|
|
37
41
|
id="doc"
|
|
38
42
|
style="display: none"
|
|
@@ -43,7 +47,9 @@
|
|
|
43
47
|
<p>This web component launches a search on the <b>geOps Stops API</b></p>
|
|
44
48
|
<p>Every parameters of the <b>geOps Stops API</b>:</p>
|
|
45
49
|
<ul class="pl-8">
|
|
46
|
-
<li class="list-disc">
|
|
50
|
+
<li class="list-disc">
|
|
51
|
+
can be passed as a string attribute of the web component.
|
|
52
|
+
</li>
|
|
47
53
|
<li class="list-disc">
|
|
48
54
|
can be passed as an URL parameter of this page, they will be
|
|
49
55
|
automatically apply to the web component.
|
|
@@ -51,30 +57,34 @@
|
|
|
51
57
|
</ul>
|
|
52
58
|
<p>
|
|
53
59
|
The list of parameters of the <b>geOps Stops API</b> can be found
|
|
54
|
-
<a
|
|
60
|
+
<a
|
|
61
|
+
href="https://developer.geops.io/apis/stops#parameters"
|
|
62
|
+
target="_blank"
|
|
63
|
+
>here</a
|
|
64
|
+
>.
|
|
55
65
|
</p>
|
|
56
66
|
|
|
57
67
|
<h2 class="text-xl font-bold">Usage example</h2>
|
|
58
|
-
<pre id="code" class="bg-slate-800 text-slate-200
|
|
68
|
+
<pre id="code" class="rounded bg-slate-800 p-4 text-slate-200"></pre>
|
|
59
69
|
|
|
60
70
|
<geops-mobility-search
|
|
61
71
|
id="search"
|
|
62
|
-
class="max-w-3xl
|
|
72
|
+
class="block max-w-3xl border"
|
|
63
73
|
limit="5"
|
|
64
74
|
mots="rail,bus"
|
|
65
75
|
></geops-mobility-search>
|
|
66
76
|
|
|
67
|
-
<
|
|
68
|
-
<div id="attributesDoc">
|
|
77
|
+
<div id="attributesDoc" class="space-y-4">
|
|
69
78
|
<h2 class="text-xl font-bold">Attributes</h2>
|
|
70
79
|
<div id="attributes"></div>
|
|
71
80
|
</div>
|
|
72
|
-
<div id="eventsDoc">
|
|
81
|
+
<div id="eventsDoc" class="space-y-4">
|
|
73
82
|
<h2 class="text-xl font-bold">Events</h2>
|
|
74
83
|
<pre class="rounded bg-slate-800 p-4 text-slate-200">
|
|
75
84
|
document.getElementById('search').addEventListener('mwc:attribute', (event) => {
|
|
76
85
|
console.log('Display last data received:', event.data);
|
|
77
|
-
})
|
|
86
|
+
});
|
|
87
|
+
</pre
|
|
78
88
|
>
|
|
79
89
|
<div id="events"></div>
|
|
80
90
|
</div>
|
|
@@ -83,9 +93,11 @@ document.getElementById('search').addEventListener('mwc:attribute', (event) => {
|
|
|
83
93
|
<h1 class="text-xl font-bold">More mobility web components</h1>
|
|
84
94
|
<p>
|
|
85
95
|
<a href="index.html" target="_blank"
|
|
86
|
-
>>> Usage example Map Component
|
|
87
|
-
>
|
|
96
|
+
>>> Usage example Map Component
|
|
97
|
+
</a>
|
|
88
98
|
</p>
|
|
99
|
+
<br />
|
|
100
|
+
<br />
|
|
89
101
|
</div>
|
|
90
102
|
<br />
|
|
91
103
|
<br />
|
|
@@ -94,24 +106,15 @@ document.getElementById('search').addEventListener('mwc:attribute', (event) => {
|
|
|
94
106
|
const wc = document.querySelector("geops-mobility-search");
|
|
95
107
|
|
|
96
108
|
window.addEventListener("load", () => {
|
|
97
|
-
|
|
98
109
|
const attributes = window.MobilitySearchAttributes;
|
|
99
110
|
const events = window.MobilitySearchEvents;
|
|
100
|
-
|
|
111
|
+
const descriptionByEvent = {
|
|
101
112
|
"mwc:stopssearchselect":
|
|
102
113
|
"Only when search attribute is 'true'. Event fired when a stop is selected in the stops search results. The event data contains the selected stop.",
|
|
103
114
|
"mwc:attribute":
|
|
104
115
|
"Event fired when an web component's attribute is changed. The event data contains the list of all attributes and their values.",
|
|
105
116
|
};
|
|
106
117
|
|
|
107
|
-
// Add special parameters
|
|
108
|
-
window.MobilityMapAttributes.fullscreen = {
|
|
109
|
-
type: "boolean",
|
|
110
|
-
defaultValue: "false",
|
|
111
|
-
description: `Load the page in fullscreen mode.`,
|
|
112
|
-
reload: true,
|
|
113
|
-
};
|
|
114
|
-
|
|
115
118
|
onLoad(wc, attributes, events, pkgSrc);
|
|
116
119
|
});
|
|
117
120
|
</script>
|
|
@@ -129,7 +129,7 @@ function TreeItem({
|
|
|
129
129
|
className={`flex-1 cursor-pointer`}
|
|
130
130
|
htmlFor={renderedLayers.length > 0 ? buttonId : inputId}
|
|
131
131
|
>
|
|
132
|
-
{typeof title === "string" ? t(title) : title}
|
|
132
|
+
{typeof title === "string" ? t(title) || title : title}
|
|
133
133
|
</label>
|
|
134
134
|
{renderedLayers.length > 0 && (
|
|
135
135
|
<button
|
|
@@ -25,43 +25,55 @@ export type MobilitySearchAttributes = Record<
|
|
|
25
25
|
const attrs: MobilitySearchAttributes = {
|
|
26
26
|
apikey: {
|
|
27
27
|
description: `Your ${geopsApiLink}`,
|
|
28
|
+
public: true,
|
|
28
29
|
},
|
|
29
30
|
bbox: {
|
|
30
31
|
description: `The extent where to search the stops (minx,miny,maxx,maxy). See the ${geopsStopsApiLink} documentation.`,
|
|
32
|
+
public: true,
|
|
31
33
|
},
|
|
32
34
|
countrycode: {
|
|
33
35
|
description: "The country code to filter the results (IT, DE, CH ...)",
|
|
36
|
+
public: true,
|
|
34
37
|
},
|
|
35
38
|
event: {
|
|
36
39
|
defaultValue: "mwc:stopssearchselect",
|
|
37
40
|
description: "The event's name to listen to when a stop is selected.",
|
|
41
|
+
public: true,
|
|
38
42
|
},
|
|
39
43
|
field: {
|
|
40
44
|
description: `Which field to look up, default all of them, Possible values:id, name, coords. See the ${geopsStopsApiLink} documentation.`,
|
|
45
|
+
public: true,
|
|
41
46
|
},
|
|
42
47
|
limit: {
|
|
43
48
|
defaultValue: "5",
|
|
44
49
|
description: `The number of suggestions to show. See the ${geopsStopsApiLink} documentation.`,
|
|
50
|
+
public: true,
|
|
45
51
|
},
|
|
46
52
|
mots: {
|
|
47
53
|
description: `Commas separated list of mots used to filter the results (rail, bus, coach, foot, tram, subway, gondola, funicular, ferry, car). See the ${geopsStopsApiLink} documentation.`,
|
|
54
|
+
public: true,
|
|
48
55
|
},
|
|
49
56
|
onselect: {
|
|
50
57
|
description: null, //`Function called when a stop is selected. The function receives the selected stop as parameter.`,
|
|
58
|
+
public: false,
|
|
51
59
|
},
|
|
52
60
|
params: {
|
|
53
61
|
description: `JSON string with additional parameters to pass to the request to the API. Ex: {"{ 'key': 'value' }"}. See the ${geopsStopsApiLink} documentation.`,
|
|
62
|
+
public: true,
|
|
54
63
|
},
|
|
55
64
|
prefagencies: {
|
|
56
65
|
description: `comma seperated list, order chooses which agency will be preferred as
|
|
57
66
|
ident_source (for id and code fields). Possible values: sbb, db. See the ${geopsStopsApiLink} documentation.`,
|
|
67
|
+
public: true,
|
|
58
68
|
},
|
|
59
69
|
reflocation: {
|
|
60
70
|
description: `Coordinates in WGS84 (in lat,lon order) used to rank stops close to this position higher. See the ${geopsStopsApiLink} documentation.`,
|
|
71
|
+
public: true,
|
|
61
72
|
},
|
|
62
73
|
url: {
|
|
63
74
|
defaultValue: "https://api.geops.io/stops/v1/",
|
|
64
75
|
description: `The URL to the ${geopsStopsApiLink}.`,
|
|
76
|
+
public: true,
|
|
65
77
|
},
|
|
66
78
|
};
|
|
67
79
|
|
|
@@ -24,7 +24,7 @@ function OverlayDetailsHeader({
|
|
|
24
24
|
const layerConfig = useLayerConfig(layer?.get("name"));
|
|
25
25
|
return (
|
|
26
26
|
<OverlayHeader
|
|
27
|
-
title={t(layerConfig?.title || "")}
|
|
27
|
+
title={t(layerConfig?.title || "") || (layerConfig?.title ?? "")}
|
|
28
28
|
{...props}
|
|
29
29
|
></OverlayHeader>
|
|
30
30
|
);
|