@geops/rvf-mobility-web-component 0.1.42 → 0.1.43
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
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.43](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.42...v0.1.43) (2025-04-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* use POST request ([5a8a5a0](https://github.com/geops/rvf-mobility-web-component/commit/5a8a5a0056f21a61a68b1ed62c9ae540820251cd))
|
|
11
|
+
* use prod url for lines ([feecba9](https://github.com/geops/rvf-mobility-web-component/commit/feecba92159ebf6743a4cf1bda685792e91bef80))
|
|
12
|
+
|
|
5
13
|
### [0.1.42](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.41...v0.1.42) (2025-04-08)
|
|
6
14
|
|
|
7
15
|
|
package/index.js
CHANGED
|
@@ -1042,7 +1042,7 @@ endbfchar
|
|
|
1042
1042
|
CMapName currentdict /CMap defineresource pop
|
|
1043
1043
|
end
|
|
1044
1044
|
end`};e.events.push(["putFont",function(n){(function(l){var u=l.font,d=l.out,y=l.newObject,v=l.putStream;if(u.metadata instanceof r.API.TTFFont&&u.encoding==="Identity-H"){for(var w=u.metadata.Unicode.widths,S=u.metadata.subset.encode(u.metadata.glyIdsUsed,1),b="",O=0;O<S.length;O++)b+=String.fromCharCode(S[O]);var U=y();v({data:b,addLength1:!0,objectId:U}),d("endobj");var Q=y();v({data:i(u.metadata.toUnicode),addLength1:!0,objectId:Q}),d("endobj");var z=y();d("<<"),d("/Type /FontDescriptor"),d("/FontName /"+Xg(u.fontName)),d("/FontFile2 "+U+" 0 R"),d("/FontBBox "+r.API.PDFObject.convert(u.metadata.bbox)),d("/Flags "+u.metadata.flags),d("/StemV "+u.metadata.stemV),d("/ItalicAngle "+u.metadata.italicAngle),d("/Ascent "+u.metadata.ascender),d("/Descent "+u.metadata.decender),d("/CapHeight "+u.metadata.capHeight),d(">>"),d("endobj");var q=y();d("<<"),d("/Type /Font"),d("/BaseFont /"+Xg(u.fontName)),d("/FontDescriptor "+z+" 0 R"),d("/W "+r.API.PDFObject.convert(w)),d("/CIDToGIDMap /Identity"),d("/DW 1000"),d("/Subtype /CIDFontType2"),d("/CIDSystemInfo"),d("<<"),d("/Supplement 0"),d("/Registry (Adobe)"),d("/Ordering ("+u.encoding+")"),d(">>"),d(">>"),d("endobj"),u.objectNumber=y(),d("<<"),d("/Type /Font"),d("/Subtype /Type0"),d("/ToUnicode "+Q+" 0 R"),d("/BaseFont /"+Xg(u.fontName)),d("/Encoding /"+u.encoding),d("/DescendantFonts ["+q+" 0 R]"),d(">>"),d("endobj"),u.isAlreadyPutted=!0}})(n)}]),e.events.push(["putFont",function(n){(function(l){var u=l.font,d=l.out,y=l.newObject,v=l.putStream;if(u.metadata instanceof r.API.TTFFont&&u.encoding==="WinAnsiEncoding"){for(var w=u.metadata.rawData,S="",b=0;b<w.length;b++)S+=String.fromCharCode(w[b]);var O=y();v({data:S,addLength1:!0,objectId:O}),d("endobj");var U=y();v({data:i(u.metadata.toUnicode),addLength1:!0,objectId:U}),d("endobj");var Q=y();d("<<"),d("/Descent "+u.metadata.decender),d("/CapHeight "+u.metadata.capHeight),d("/StemV "+u.metadata.stemV),d("/Type /FontDescriptor"),d("/FontFile2 "+O+" 0 R"),d("/Flags 96"),d("/FontBBox "+r.API.PDFObject.convert(u.metadata.bbox)),d("/FontName /"+Xg(u.fontName)),d("/ItalicAngle "+u.metadata.italicAngle),d("/Ascent "+u.metadata.ascender),d(">>"),d("endobj"),u.objectNumber=y();for(var z=0;z<u.metadata.hmtx.widths.length;z++)u.metadata.hmtx.widths[z]=parseInt(u.metadata.hmtx.widths[z]*(1e3/u.metadata.head.unitsPerEm));d("<</Subtype/TrueType/Type/Font/ToUnicode "+U+" 0 R/BaseFont/"+Xg(u.fontName)+"/FontDescriptor "+Q+" 0 R/Encoding/"+u.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(u.metadata.hmtx.widths)+">>"),d("endobj"),u.isAlreadyPutted=!0}})(n)}]);var s=function(n){var l,u=n.text||"",d=n.x,y=n.y,v=n.options||{},w=n.mutex||{},S=w.pdfEscape,b=w.activeFontKey,O=w.fonts,U=b,Q="",z=0,q="",Y=O[U].encoding;if(O[U].encoding!=="Identity-H")return{text:u,x:d,y,options:v,mutex:w};for(q=u,U=b,Array.isArray(u)&&(q=u[0]),z=0;z<q.length;z+=1)O[U].metadata.hasOwnProperty("cmap")&&(l=O[U].metadata.cmap.unicode.codeMap[q[z].charCodeAt(0)]),l||q[z].charCodeAt(0)<256&&O[U].metadata.hasOwnProperty("Unicode")?Q+=q[z]:Q+="";var ae="";return parseInt(U.slice(1))<14||Y==="WinAnsiEncoding"?ae=S(Q,U).split("").map(function(ye){return ye.charCodeAt(0).toString(16)}).join(""):Y==="Identity-H"&&(ae=t(Q,O[U])),w.isHex=!0,{text:ae,x:d,y,options:v,mutex:w}};e.events.push(["postProcessText",function(n){var l=n.text||"",u=[],d={text:l,x:n.x,y:n.y,options:n.options,mutex:n.mutex};if(Array.isArray(l)){var y=0;for(y=0;y<l.length;y+=1)Array.isArray(l[y])&&l[y].length===3?u.push([s(Object.assign({},d,{text:l[y][0]})).text,l[y][1],l[y][2]]):u.push(s(Object.assign({},d,{text:l[y]})).text);n.text=u}else n.text=s(Object.assign({},d,{text:l})).text}])}(mi),function(r){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0},r.addFileToVFS=function(t,i){return e.call(this),this.internal.vFS[t]=i,this},r.getFileFromVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(mi.API),function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(i){var s,n,l,u,d,y,v,w=e,S=[[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]],O={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},U={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Q=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],z=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)$/),q=!1,Y=0;this.__bidiEngine__={};var ae=function(le){var se=le.charCodeAt(),Le=se>>8,Ce=U[Le];return Ce!==void 0?w[256*Ce+(255&se)]:Le===252||Le===253?"AL":z.test(Le)?"L":Le===8?"R":"N"},ye=function(le){for(var se,Le=0;Le<le.length;Le++){if((se=ae(le.charAt(Le)))==="L")return!1;if(se==="R")return!0}return!1},_e=function(le,se,Le,Ce){var qe,je,Xe,Pe,Ke=se[Ce];switch(Ke){case"L":case"R":q=!1;break;case"N":case"AN":break;case"EN":q&&(Ke="AN");break;case"AL":q=!0,Ke="R";break;case"WS":Ke="N";break;case"CS":Ce<1||Ce+1>=se.length||(qe=Le[Ce-1])!=="EN"&&qe!=="AN"||(je=se[Ce+1])!=="EN"&&je!=="AN"?Ke="N":q&&(je="AN"),Ke=je===qe?je:"N";break;case"ES":Ke=(qe=Ce>0?Le[Ce-1]:"B")==="EN"&&Ce+1<se.length&&se[Ce+1]==="EN"?"EN":"N";break;case"ET":if(Ce>0&&Le[Ce-1]==="EN"){Ke="EN";break}if(q){Ke="N";break}for(Xe=Ce+1,Pe=se.length;Xe<Pe&&se[Xe]==="ET";)Xe++;Ke=Xe<Pe&&se[Xe]==="EN"?"EN":"N";break;case"NSM":if(l&&!u){for(Pe=se.length,Xe=Ce+1;Xe<Pe&&se[Xe]==="NSM";)Xe++;if(Xe<Pe){var st=le[Ce],_t=st>=1425&&st<=2303||st===64286;if(qe=se[Xe],_t&&(qe==="R"||qe==="AL")){Ke="R";break}}}Ke=Ce<1||(qe=se[Ce-1])==="B"?"N":Le[Ce-1];break;case"B":q=!1,s=!0,Ke=Y;break;case"S":n=!0,Ke="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":q=!1;break;case"BN":Ke="N"}return Ke},ve=function(le,se,Le){var Ce=le.split("");return Le&&me(Ce,Le,{hiLevel:Y}),Ce.reverse(),se&&se.reverse(),Ce.join("")},me=function(le,se,Le){var Ce,qe,je,Xe,Pe,Ke=-1,st=le.length,_t=0,oe=[],Se=Y?b:S,be=[];for(q=!1,s=!1,n=!1,qe=0;qe<st;qe++)be[qe]=ae(le[qe]);for(je=0;je<st;je++){if(Pe=_t,oe[je]=_e(le,be,oe,je),Ce=240&(_t=Se[Pe][O[oe[je]]]),_t&=15,se[je]=Xe=Se[_t][5],Ce>0)if(Ce===16){for(qe=Ke;qe<je;qe++)se[qe]=1;Ke=-1}else Ke=-1;if(Se[_t][6])Ke===-1&&(Ke=je);else if(Ke>-1){for(qe=Ke;qe<je;qe++)se[qe]=Xe;Ke=-1}be[je]==="B"&&(se[je]=0),Le.hiLevel|=Xe}n&&function(Ne,Ze,lt){for(var ut=0;ut<lt;ut++)if(Ne[ut]==="S"){Ze[ut]=Y;for(var ht=ut-1;ht>=0&&Ne[ht]==="WS";ht--)Ze[ht]=Y}}(be,se,st)},Be=function(le,se,Le,Ce,qe){if(!(qe.hiLevel<le)){if(le===1&&Y===1&&!s)return se.reverse(),void(Le&&Le.reverse());for(var je,Xe,Pe,Ke,st=se.length,_t=0;_t<st;){if(Ce[_t]>=le){for(Pe=_t+1;Pe<st&&Ce[Pe]>=le;)Pe++;for(Ke=_t,Xe=Pe-1;Ke<Xe;Ke++,Xe--)je=se[Ke],se[Ke]=se[Xe],se[Xe]=je,Le&&(je=Le[Ke],Le[Ke]=Le[Xe],Le[Xe]=je);_t=Pe}_t++}}},ze=function(le,se,Le){var Ce=le.split(""),qe={hiLevel:Y};return Le||(Le=[]),me(Ce,Le,qe),function(je,Xe,Pe){if(Pe.hiLevel!==0&&v)for(var Ke,st=0;st<je.length;st++)Xe[st]===1&&(Ke=Q.indexOf(je[st]))>=0&&(je[st]=Q[Ke+1])}(Ce,Le,qe),Be(2,Ce,se,Le,qe),Be(1,Ce,se,Le,qe),Ce.join("")};return this.__bidiEngine__.doBidiReorder=function(le,se,Le){if(function(qe,je){if(je)for(var Xe=0;Xe<qe.length;Xe++)je[Xe]=Xe;u===void 0&&(u=ye(qe)),y===void 0&&(y=ye(qe))}(le,se),l||!d||y)if(l&&d&&u^y)Y=u?1:0,le=ve(le,se,Le);else if(!l&&d&&y)Y=u?1:0,le=ze(le,se,Le),le=ve(le,se);else if(!l||u||d||y){if(l&&!d&&u^y)le=ve(le,se),u?(Y=0,le=ze(le,se,Le)):(Y=1,le=ze(le,se,Le),le=ve(le,se));else if(l&&u&&!d&&y)Y=1,le=ze(le,se,Le),le=ve(le,se);else if(!l&&!d&&u^y){var Ce=v;u?(Y=1,le=ze(le,se,Le),Y=0,v=!1,le=ze(le,se,Le),v=Ce):(Y=0,le=ze(le,se,Le),le=ve(le,se),Y=1,v=!1,le=ze(le,se,Le),v=Ce,le=ve(le,se))}}else Y=0,le=ze(le,se,Le);else Y=u?1:0,le=ze(le,se,Le);return le},this.__bidiEngine__.setOptions=function(le){le&&(l=le.isInputVisual,d=le.isOutputVisual,u=le.isInputRtl,y=le.isOutputRtl,v=le.isSymmetricSwapping)},this.__bidiEngine__.setOptions(i),this.__bidiEngine__};var e=["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"],t=new r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(i){var s=i.text,n=(i.x,i.y,i.options||{}),l=(i.mutex,n.lang,[]);if(n.isInputVisual=typeof n.isInputVisual!="boolean"||n.isInputVisual,t.setOptions(n),Object.prototype.toString.call(s)==="[object Array]"){var u=0;for(l=[],u=0;u<s.length;u+=1)Object.prototype.toString.call(s[u])==="[object Array]"?l.push([t.doBidiReorder(s[u][0]),s[u][1],s[u][2]]):l.push([t.doBidiReorder(s[u])]);i.text=l}else i.text=t.doBidiReorder(s);t.setOptions({isInputVisual:!0})}])}(mi),mi.API.TTFFont=function(){function r(e){var t;if(this.rawData=e,t=this.contents=new rp(e),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new Yoe(this),this.registerTTF()}return r.open=function(e){return new r(e)},r.prototype.parse=function(){return this.directory=new Uoe(this.contents),this.head=new Qoe(this),this.name=new Goe(this),this.cmap=new pQ(this),this.toUnicode={},this.hhea=new zoe(this),this.maxp=new qoe(this),this.hmtx=new Koe(this),this.post=new Voe(this),this.os2=new Hoe(this),this.loca=new Zoe(this),this.glyf=new Woe(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 e,t,i,s,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var l,u,d,y;for(y=[],l=0,u=(d=this.bbox).length;l<u;l++)e=d[l],y.push(Math.round(e*this.scaleFactor));return y}.call(this),this.stemV=0,this.post.exists?(i=255&(s=this.post.italic_angle),32768&(t=s>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+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(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},r.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},r.prototype.widthOfString=function(e,t,i){var s,n,l,u;for(l=0,n=0,u=(e=""+e).length;0<=u?n<u:n>u;n=0<=u?++n:--n)s=e.charCodeAt(n),l+=this.widthOfGlyph(this.characterToGlyph(s))+i*(1e3/t)||0;return l*(t/1e3)},r.prototype.lineHeight=function(e,t){var i;return t==null&&(t=!1),i=t?this.lineGap:0,(this.ascender+i-this.decender)/1e3*e},r}();var Zu,rp=function(){function r(e){this.data=e??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(e){return this.data[this.pos++]=e},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},r.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},r.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},r.prototype.readString=function(e){var t,i;for(i=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)i[t]=String.fromCharCode(this.readByte());return i.join("")},r.prototype.writeString=function(e){var t,i,s;for(s=[],t=0,i=e.length;0<=i?t<i:t>i;t=0<=i?++t:--t)s.push(this.writeByte(e.charCodeAt(t)));return s},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(e){return this.writeInt16(e)},r.prototype.readLongLong=function(){var e,t,i,s,n,l,u,d;return e=this.readByte(),t=this.readByte(),i=this.readByte(),s=this.readByte(),n=this.readByte(),l=this.readByte(),u=this.readByte(),d=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^i)+4294967296*(255^s)+16777216*(255^n)+65536*(255^l)+256*(255^u)+(255^d)+1):72057594037927940*e+281474976710656*t+1099511627776*i+4294967296*s+16777216*n+65536*l+256*u+d},r.prototype.writeLongLong=function(e){var t,i;return t=Math.floor(e/4294967296),i=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),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(e){return this.writeInt32(e)},r.prototype.read=function(e){var t,i;for(t=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)t.push(this.readByte());return t},r.prototype.write=function(e){var t,i,s,n;for(n=[],i=0,s=e.length;i<s;i++)t=e[i],n.push(this.writeByte(t));return n},r}(),Uoe=function(){var r;function e(t){var i,s,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},s=0,n=this.tableCount;0<=n?s<n:s>n;s=0<=n?++s:--s)i={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[i.tag]=i}return e.prototype.encode=function(t){var i,s,n,l,u,d,y,v,w,S,b,O,U;for(U in b=Object.keys(t).length,d=Math.log(2),w=16*Math.floor(Math.log(b)/d),l=Math.floor(w/d),v=16*b-w,(s=new rp).writeInt(this.scalarType),s.writeShort(b),s.writeShort(w),s.writeShort(l),s.writeShort(v),n=16*b,y=s.pos+n,u=null,O=[],t)for(S=t[U],s.writeString(U),s.writeInt(r(S)),s.writeInt(y),s.writeInt(S.length),O=O.concat(S),U==="head"&&(u=y),y+=S.length;y%4;)O.push(0),y++;return s.write(O),i=2981146554-r(s.data),s.pos=u+8,s.writeUInt32(i),s.data},r=function(t){var i,s,n,l;for(t=mQ.call(t);t.length%4;)t.push(0);for(n=new rp(t),s=0,i=0,l=t.length;i<l;i=i+=4)s+=n.readUInt32();return 4294967295&s},e}(),Noe={}.hasOwnProperty,Zh=function(r,e){for(var t in e)Noe.call(e,t)&&(r[t]=e[t]);function i(){this.constructor=r}return i.prototype=e.prototype,r.prototype=new i,r.__super__=e.prototype,r};Zu=function(){function r(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.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 Qoe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="head",e.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()},e.prototype.encode=function(t){var i;return(i=new rp).writeInt(this.version),i.writeInt(this.revision),i.writeInt(this.checkSumAdjustment),i.writeInt(this.magicNumber),i.writeShort(this.flags),i.writeShort(this.unitsPerEm),i.writeLongLong(this.created),i.writeLongLong(this.modified),i.writeShort(this.xMin),i.writeShort(this.yMin),i.writeShort(this.xMax),i.writeShort(this.yMax),i.writeShort(this.macStyle),i.writeShort(this.lowestRecPPEM),i.writeShort(this.fontDirectionHint),i.writeShort(t),i.writeShort(this.glyphDataFormat),i.data},e}(),nQ=function(){function r(e,t){var i,s,n,l,u,d,y,v,w,S,b,O,U,Q,z,q,Y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),w=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.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]=e.readByte();break;case 4:for(b=e.readUInt16(),S=b/2,e.pos+=6,n=function(){var ae,ye;for(ye=[],d=ae=0;0<=S?ae<S:ae>S;d=0<=S?++ae:--ae)ye.push(e.readUInt16());return ye}(),e.pos+=2,U=function(){var ae,ye;for(ye=[],d=ae=0;0<=S?ae<S:ae>S;d=0<=S?++ae:--ae)ye.push(e.readUInt16());return ye}(),y=function(){var ae,ye;for(ye=[],d=ae=0;0<=S?ae<S:ae>S;d=0<=S?++ae:--ae)ye.push(e.readUInt16());return ye}(),v=function(){var ae,ye;for(ye=[],d=ae=0;0<=S?ae<S:ae>S;d=0<=S?++ae:--ae)ye.push(e.readUInt16());return ye}(),s=(this.length-e.pos+this.offset)/2,u=function(){var ae,ye;for(ye=[],d=ae=0;0<=s?ae<s:ae>s;d=0<=s?++ae:--ae)ye.push(e.readUInt16());return ye}(),d=z=0,Y=n.length;z<Y;d=++z)for(Q=n[d],i=q=O=U[d];O<=Q?q<=Q:q>=Q;i=O<=Q?++q:--q)v[d]===0?l=i+y[d]:(l=u[v[d]/2+(i-O)-(S-d)]||0)!==0&&(l+=y[d]),this.codeMap[i]=65535&l}e.pos=w}return r.encode=function(e,t){var i,s,n,l,u,d,y,v,w,S,b,O,U,Q,z,q,Y,ae,ye,_e,ve,me,Be,ze,le,se,Le,Ce,qe,je,Xe,Pe,Ke,st,_t,oe,Se,be,Ne,Ze,lt,ut,ht,It,Tt,Kt;switch(Ce=new rp,l=Object.keys(e).sort(function(Wt,We){return Wt-We}),t){case"macroman":for(U=0,Q=function(){var Wt=[];for(O=0;O<256;++O)Wt.push(0);return Wt}(),q={0:0},n={},qe=0,Ke=l.length;qe<Ke;qe++)q[ht=e[s=l[qe]]]==null&&(q[ht]=++U),n[s]={old:e[s],new:q[e[s]]},Q[s]=q[e[s]];return Ce.writeUInt16(1),Ce.writeUInt16(0),Ce.writeUInt32(12),Ce.writeUInt16(0),Ce.writeUInt16(262),Ce.writeUInt16(0),Ce.write(Q),{charMap:n,subtable:Ce.data,maxGlyphID:U+1};case"unicode":for(se=[],w=[],Y=0,q={},i={},z=y=null,je=0,st=l.length;je<st;je++)q[ye=e[s=l[je]]]==null&&(q[ye]=++Y),i[s]={old:ye,new:q[ye]},u=q[ye]-s,z!=null&&u===y||(z&&w.push(z),se.push(s),y=u),z=s;for(z&&w.push(z),w.push(65535),se.push(65535),ze=2*(Be=se.length),me=2*Math.pow(Math.log(Be)/Math.LN2,2),S=Math.log(me/2)/Math.LN2,ve=2*Be-me,d=[],_e=[],b=[],O=Xe=0,_t=se.length;Xe<_t;O=++Xe){if(le=se[O],v=w[O],le===65535){d.push(0),_e.push(0);break}if(le-(Le=i[le].new)>=32768)for(d.push(0),_e.push(2*(b.length+Be-O)),s=Pe=le;le<=v?Pe<=v:Pe>=v;s=le<=v?++Pe:--Pe)b.push(i[s].new);else d.push(Le-le),_e.push(0)}for(Ce.writeUInt16(3),Ce.writeUInt16(1),Ce.writeUInt32(12),Ce.writeUInt16(4),Ce.writeUInt16(16+8*Be+2*b.length),Ce.writeUInt16(0),Ce.writeUInt16(ze),Ce.writeUInt16(me),Ce.writeUInt16(S),Ce.writeUInt16(ve),lt=0,oe=w.length;lt<oe;lt++)s=w[lt],Ce.writeUInt16(s);for(Ce.writeUInt16(0),ut=0,Se=se.length;ut<Se;ut++)s=se[ut],Ce.writeUInt16(s);for(It=0,be=d.length;It<be;It++)u=d[It],Ce.writeUInt16(u);for(Tt=0,Ne=_e.length;Tt<Ne;Tt++)ae=_e[Tt],Ce.writeUInt16(ae);for(Kt=0,Ze=b.length;Kt<Ze;Kt++)U=b[Kt],Ce.writeUInt16(U);return{charMap:i,subtable:Ce.data,maxGlyphID:Y+1}}},r}(),pQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="cmap",e.prototype.parse=function(t){var i,s,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)i=new nQ(t,this.offset),this.tables.push(i),i.isUnicode&&this.unicode==null&&(this.unicode=i);return!0},e.encode=function(t,i){var s,n;return i==null&&(i="macroman"),s=nQ.encode(t,i),(n=new rp).writeUInt16(0),n.writeUInt16(1),s.table=n.data.concat(s.subtable),s},e}(),zoe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="hhea",e.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()},e}(),Hoe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="OS/2",e.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 i,s;for(s=[],i=0;i<10;++i)s.push(t.readByte());return s}(),this.charRange=function(){var i,s;for(s=[],i=0;i<4;++i)s.push(t.readInt());return s}(),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 i,s;for(s=[],i=0;i<2;i=++i)s.push(t.readInt());return s}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),Voe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="post",e.prototype.parse=function(t){var i,s,n;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:break;case 131072:var l;for(s=t.readUInt16(),this.glyphNameIndex=[],l=0;0<=s?l<s:l>s;l=0<=s?++l:--l)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)i=t.readByte(),n.push(this.names.push(t.readString(i)));return n;case 151552:return s=t.readUInt16(),this.offsets=t.read(s);case 196608:break;case 262144:return this.map=function(){var u,d,y;for(y=[],l=u=0,d=this.file.maxp.numGlyphs;0<=d?u<d:u>d;l=0<=d?++u:--u)y.push(t.readUInt32());return y}.call(this)}},e}(),joe=function(r,e){this.raw=r,this.length=r.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Goe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="name",e.prototype.parse=function(t){var i,s,n,l,u,d,y,v,w,S,b;for(t.pos=this.offset,t.readShort(),i=t.readShort(),d=t.readShort(),s=[],l=0;0<=i?l<i:l>i;l=0<=i?++l:--l)s.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+d+t.readShort()});for(y={},l=w=0,S=s.length;w<S;l=++w)n=s[l],t.pos=n.offset,v=t.readString(n.length),u=new joe(v,n),y[b=n.nameID]==null&&(y[b]=[]),y[n.nameID].push(u);this.strings=y,this.copyright=y[0],this.fontFamily=y[1],this.fontSubfamily=y[2],this.uniqueSubfamily=y[3],this.fontName=y[4],this.version=y[5];try{this.postscriptName=y[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=y[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=y[7],this.manufacturer=y[8],this.designer=y[9],this.description=y[10],this.vendorUrl=y[11],this.designerUrl=y[12],this.license=y[13],this.licenseUrl=y[14],this.preferredFamily=y[15],this.preferredSubfamily=y[17],this.compatibleFull=y[18],this.sampleText=y[19]},e}(),qoe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="maxp",e.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()},e}(),Koe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="hmtx",e.prototype.parse=function(t){var i,s,n,l,u,d,y;for(t.pos=this.offset,this.metrics=[],i=0,d=this.file.hhea.numberOfMetrics;0<=d?i<d:i>d;i=0<=d?++i:--i)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var v,w;for(w=[],i=v=0;0<=n?v<n:v>n;i=0<=n?++v:--v)w.push(t.readInt16());return w}(),this.widths=function(){var v,w,S,b;for(b=[],v=0,w=(S=this.metrics).length;v<w;v++)l=S[v],b.push(l.advance);return b}.call(this),s=this.widths[this.widths.length-1],y=[],i=u=0;0<=n?u<n:u>n;i=0<=n?++u:--u)y.push(this.widths.push(s));return y},e.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]}},e}(),mQ=[].slice,Woe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var i,s,n,l,u,d,y,v,w,S;return t in this.cache?this.cache[t]:(l=this.file.loca,i=this.file.contents,s=l.indexOf(t),(n=l.lengthOf(t))===0?this.cache[t]=null:(i.pos=this.offset+s,u=(d=new rp(i.read(n))).readShort(),v=d.readShort(),S=d.readShort(),y=d.readShort(),w=d.readShort(),this.cache[t]=u===-1?new $oe(d,v,S,y,w):new Xoe(d,u,v,S,y,w),this.cache[t]))},e.prototype.encode=function(t,i,s){var n,l,u,d,y;for(u=[],l=[],d=0,y=i.length;d<y;d++)n=t[i[d]],l.push(u.length),n&&(u=u.concat(n.encode(s)));return l.push(u.length),{table:u,offsets:l}},e}(),Xoe=function(){function r(e,t,i,s,n,l){this.raw=e,this.numberOfContours=t,this.xMin=i,this.yMin=s,this.xMax=n,this.yMax=l,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),$oe=function(){function r(e,t,i,s,n){var l,u;for(this.raw=e,this.xMin=t,this.yMin=i,this.xMax=s,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],l=this.raw;u=l.readShort(),this.glyphOffsets.push(l.pos),this.glyphIDs.push(l.readUInt16()),32&u;)l.pos+=1&u?4:2,128&u?l.pos+=8:64&u?l.pos+=4:8&u&&(l.pos+=2)}return r.prototype.encode=function(){var e,t,i;for(t=new rp(mQ.call(this.raw.data)),e=0,i=this.glyphIDs.length;e<i;++e)t.pos=this.glyphOffsets[e];return t.data},r}(),Zoe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,Zu),e.prototype.tag="loca",e.prototype.parse=function(t){var i,s;return t.pos=this.offset,i=this.file.head.indexToLocFormat,this.offsets=i===0?function(){var n,l;for(l=[],s=0,n=this.length;s<n;s+=2)l.push(2*t.readUInt16());return l}.call(this):function(){var n,l;for(l=[],s=0,n=this.length;s<n;s+=4)l.push(t.readUInt32());return l}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,i){for(var s=new Uint32Array(this.offsets.length),n=0,l=0,u=0;u<s.length;++u)if(s[u]=n,l<i.length&&i[l]==u){++l,s[u]=n;var d=this.offsets[u],y=this.offsets[u+1]-d;y>0&&(n+=y)}for(var v=new Array(4*s.length),w=0;w<s.length;++w)v[4*w+3]=255&s[w],v[4*w+2]=(65280&s[w])>>8,v[4*w+1]=(16711680&s[w])>>16,v[4*w]=(4278190080&s[w])>>24;return v},e}(),Yoe=function(){function r(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var e,t,i,s,n;for(t in s=this.font.cmap.tables[0].codeMap,e={},n=this.subset)i=n[t],e[t]=s[i];return e},r.prototype.glyphsFor=function(e){var t,i,s,n,l,u,d;for(s={},l=0,u=e.length;l<u;l++)s[n=e[l]]=this.font.glyf.glyphFor(n);for(n in t=[],s)(i=s[n])!=null&&i.compound&&t.push.apply(t,i.glyphIDs);if(t.length>0)for(n in d=this.glyphsFor(t))i=d[n],s[n]=i;return s},r.prototype.encode=function(e,t){var i,s,n,l,u,d,y,v,w,S,b,O,U,Q,z;for(s in i=pQ.encode(this.generateCmap(),"unicode"),l=this.glyphsFor(e),b={0:0},z=i.charMap)b[(d=z[s]).old]=d.new;for(O in S=i.maxGlyphID,l)O in b||(b[O]=S++);return v=function(q){var Y,ae;for(Y in ae={},q)ae[q[Y]]=Y;return ae}(b),w=Object.keys(v).sort(function(q,Y){return q-Y}),U=function(){var q,Y,ae;for(ae=[],q=0,Y=w.length;q<Y;q++)u=w[q],ae.push(v[u]);return ae}(),n=this.font.glyf.encode(l,U,b),y=this.font.loca.encode(n.offsets,U),Q={cmap:this.font.cmap.raw(),glyf:n.table,loca:y,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(t)},this.font.os2.exists&&(Q["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Q)},r}();mi.API.PDFObject=function(){var r;function e(){}return r=function(t,i){return(Array(i+1).join("0")+t).slice(-i)},e.convert=function(t){var i,s,n,l;if(Array.isArray(t))return"["+function(){var u,d,y;for(y=[],u=0,d=t.length;u<d;u++)i=t[u],y.push(e.convert(i));return y}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t?.isString)return"("+t+")";if(t instanceof Date)return"(D:"+r(t.getUTCFullYear(),4)+r(t.getUTCMonth(),2)+r(t.getUTCDate(),2)+r(t.getUTCHours(),2)+r(t.getUTCMinutes(),2)+r(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(s in n=["<<"],t)l=t[s],n.push("/"+s+" "+e.convert(l));return n.push(">>"),n.join(`
|
|
1045
|
-
`)}return""+t},e}();var gQ=mi;var bI=!1;var Joe=(r,e,t,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),bI=!1,l-1===8&&(bI=!0);while(l-1>8&&r.measureText(t).width*i>e);return r.font};var eae=function(){function r(t,i,s){for(let n=0;n<i;++n)if(t.data[s*i*4+n*4+3]!==0)return!1;return!0}function e(t,i,s,n,l){for(let u=n;u<l;++u)if(t.data[u*i*4+s*4+3]!==0)return!1;return!0}return function(t){let i=t.getContext("2d"),s=t.width,n=i.getImageData(0,0,t.width,t.height),l=n.height,u=0,d=n.width,y=0;for(;y<l&&r(n,s,y);)++y;for(;l-1>y&&r(n,s,l-1);)--l;for(;u<d&&e(n,s,u,y,l);)++u;for(;d-1>u&&e(n,s,d-1,y,l);)--d;let v=i.getImageData(u,y,d-u,l-y),w=t.ownerDocument.createElement("canvas"),S=w.getContext("2d");return w.width=v.width,w.height=v.height,S.putImageData(v,0,0),w}}(),tae=(r,e,t,i)=>{let s=document.createElement("canvas");s.width=e,s.height=t;let{fillStyle:n="black",font:l="12px Arial",textAlign:u="left",textBaseline:d="top"}=i,y=s.getContext("2d");y.fillStyle=n,y.font=l,y.font=Joe(y,s.width,r),y.textAlign=u,y.textBaseline=d;let v=r,w=y.measureText(v);if(bI){let z=r.split(" ").length;for(let q=0;q<z&&!(w.width*scale<s.width);q+=1)v=v.substring(0,v.lastIndexOf(" ")),w=y.measureText(v)}let S=r.replace(v,"").trim(),b=[v,S].filter(z=>!!z);d==="bottom"&&(b=b.reverse());let O=u==="right"?s.width:0,U=d==="bottom"?s.height:0;return b.forEach(z=>{let{fontBoundingBoxAscent:q,fontBoundingBoxDescent:Y}=y.measureText(z),ae=q+Y;y.fillText(z,O,U);let ye=ae;d==="bottom"&&(ye=-ae),U=U+ye}),eae(s)},rae=(r,e,t={})=>{let{fillStyle:i,font:s,margin:n=10,placement:l="bottom-left"}=t,[u,d]=l.split("-"),y=typeof r=="function"?r():r,v=tae(y,e.width,e.height,{fillStyle:i,font:s,textAlign:d,textBaseline:u}),w=n,S=n;d==="right"&&(w=e.width-v.width-n),u==="bottom"&&(S=e.height-v.height-n),e.getContext("2d").drawImage(v,w,S)};var iae=(r,e,t)=>{let i,s;if(e?(i=Sp(e),s=Ep(e)):t&&([i,,s]=t),i&&s){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(s),u=[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]-u[1],w:d[0]-u[0],x:u[0],y:u[1]}}return null},yQ=async(r,e,t)=>{let i=r.getTargetElement().getElementsByTagName("canvas"),s,n;for(let l=0;l<i.length;l+=1){let u=i[l];if(!u.width||!u.height)continue;let d=iae(r,e,t)||{h:u.height,w:u.width,x:0,y:0};s||(s=document.createElement("canvas"),s.width=d.w,s.height=d.h,n=s.getContext("2d")),n.drawImage(u,d.x,d.y,d.w,d.h,0,0,s.width,s.height)}return s},nae=async(r,e="image/png",t=i=>i.replace("/","."))=>{try{if(window.navigator.msSaveBlob){let i;try{i=r.msToBlob()}catch(n){console.error(n)}let s=new Blob([i],{type:e});window.navigator.msSaveBlob(s,t(e))}else r.toBlob(i=>{let s=document.createElement("a");s.download=t(e),s.href=URL.createObjectURL(i),document.body.appendChild(s),s.click()},e);return!0}catch(i){return console.error(i),!1}},sae=async(r,e,t,i,s={},n={})=>{let l=i||r.getSize(),u=t,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 y=new qp({pixelRatio:window.devicePixelRatio,target:d,view:new el({center:r.getView().getCenter(),projection:r.getView().getProjection(),zoom:r.getView().getZoom(),...n}),...s});return u&&y.getView().fit(u),y.setLayers(e),await new Promise(w=>{let S=window.setTimeout(()=>{w(y)},1e4);y.once("rendercomplete",async()=>{clearTimeout(S),w(y)})})},oae={A0:[3370,2384],A1:[2384,1684],A3:[1191,842],A4:[842,595]};async function aae(r,e={},t={}){let{onAfter:i,onBefore:s,pixelRatio:n=3,useCopyright:l=!0,useMaxExtent:u=!1,usePlaceholder:d=!0}=t,y=e?.format||"A4",v=oae[y]||y,w=v.map(Y=>Y*96/72),S=u?s_:null,b=window.devicePixelRatio;Object.defineProperty(window,"devicePixelRatio",{get(){return n}});let O;d&&(O=await yQ(r),O.style.zIndex="0",O.style.position="absolute",r.getViewport().querySelector(".ol-layers").insertAdjacentElement("afterend",O));let U=[...r.getLayers().getArray()],Q=t?.copyrightOptions?.text||r.getControls().getArray().find(Y=>Y instanceof s1)?.element?.textContent;r.getLayers().clear(),s?.(r,U);let z=await sae(r,U,S,w,{pixelRatio:n});Object.defineProperty(window,"devicePixelRatio",{get(){return b}});let q=await yQ(z);if(z.getLayers().clear(),z.getTargetElement().remove(),z.setTarget(null),z.dispose(),document.body.style.overflow="auto",r.setLayers(U),i?.(r,U),O&&r.once("rendercomplete",()=>{O.remove()}),l&&rae(Q,q,{...t?.copyrightOptions||{},font:(n*12).toString()+"px Arial"}),/^A[0-9]{1,2}/.test(y)||y?.length===2){try{let Y=new gQ({orientation:"landscape",unit:"pt",...e});Y.addImage(q,"JPEG",0,0,v[0],v[1]),Y.save(`rvf-${new Date().toISOString().slice(0,10)}.pdf`)}catch(Y){return console.error(Y),!1}return!0}else return await nae(q)}var vQ=aae;var lae=r=>{let e=[];function t(i){i.forEach(function(s){s instanceof zh?t(s.getLayers()):e.push(s)})}return t(r?.getLayers?.()||r),e},CI=lae;var _Q=["A4","A3","A1","A0"],BI=!1;function cae({...r}){let{map:e,realtimeLayer:t}=Dr(),[i,s]=dr(!1),[n,l]=dr(_Q[0]),u=_f(),d=_f(),[y,v]=dr(!1),[w,S]=dr(!1);return K("div",{...r,children:[K("div",{className:"flex flex-1 flex-col gap-2",children:[K("div",{className:"flex flex-wrap items-center gap-2",children:[K(j1,{checked:i,id:u,onChange:()=>s(!i)}),K("label",{htmlFor:u,children:"Ganze Region exportieren"})]}),K("div",{className:"flex flex-wrap items-center gap-2",children:[K("label",{htmlFor:d,children:"Format:"}),K(w4,{className:"w-24",id:d,onChange:b=>{l(b.target.value)},children:_Q.map(b=>K("option",{children:b},b))})]})]}),K("div",{children:K(xg,{disabled:y,onClick:async()=>{S(!1),v(!0);let b=await vQ(e,{format:n},{onAfter:(O,U)=>{t&&BI!==t?.getVisible()&&t.setVisible(BI),CI(U).forEach(Q=>{Q.set(Gh,!1)}),O.set(Gh,!1)},onBefore:(O,U)=>{O.set(Gh,!0),t&&(BI=t.getVisible(),t.getVisible()&&t.setVisible(!1)),CI(U).forEach(Q=>{Q.set(Gh,!0)})},useMaxExtent:i});setTimeout(()=>{v(!1),S(!b)},1e3)},children:y?"Exporting...":w?"Error":"Download"})})]})}var dw=lr(cae);function Aae({...r}){return K("svg",{height:"24px",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("g",{children:K("path",{d:"M21,16 C21.5522847,16 22,16.4477153 22,17 L22,20 C22,21.6568542 20.6568542,23 19,23 L5,23 C3.34314575,23 2,21.6568542 2,20 L2,17 C2,16.4477153 2.44771525,16 3,16 C3.55228475,16 4,16.4477153 4,17 L4,20 C4,20.5522847 4.44771525,21 5,21 L19,21 C19.5522847,21 20,20.5522847 20,20 L20,17 C20,16.4477153 20.4477153,16 21,16 Z M12,1 C12.5522847,1 13,1.44771525 13,2 L13,13.585 L15.2928932,11.2928932 C15.6533772,10.9324093 16.2206082,10.9046797 16.6128994,11.2097046 L16.7071068,11.2928932 C17.0976311,11.6834175 17.0976311,12.3165825 16.7071068,12.7071068 L12.7071068,16.7071068 C12.6786405,16.7355731 12.6484659,16.7623312 12.6167501,16.787214 C12.6098424,16.7927155 12.602603,16.7982466 12.5953066,16.8036654 C12.5711307,16.8215099 12.546275,16.8382813 12.5206602,16.8539326 C12.5086131,16.8613931 12.4963944,16.8685012 12.4840621,16.8753288 C12.4642939,16.8862061 12.4438914,16.8966234 12.4230991,16.9063462 C12.4060985,16.914321 12.3887956,16.9218036 12.371336,16.9287745 C12.3515792,16.9366843 12.3317977,16.9438775 12.3117364,16.9504533 C12.2968513,16.9552713 12.2814633,16.9599023 12.265993,16.9641549 C12.2444365,16.9701664 12.2227461,16.9753602 12.2007941,16.9798348 C12.1833753,16.9832978 12.165949,16.9863719 12.1484669,16.9889822 C12.1003621,16.9962388 12.0506203,17 12,17 L12.0852242,16.996384 C12.0679231,16.997855 12.050591,16.9988772 12.0332468,16.9994506 L12,17 C11.9888734,17 11.9777892,16.9998183 11.9667503,16.9994576 C11.9497336,16.9989053 11.9317345,16.9978436 11.9137692,16.9962979 C11.892114,16.9944666 11.8714753,16.9920328 11.8510388,16.9889807 C11.834051,16.9863719 11.8166247,16.9832978 11.7992742,16.9797599 C11.7772539,16.9753602 11.7555635,16.9701664 11.7341604,16.964279 C11.7185367,16.9599023 11.7031487,16.9552713 11.6878575,16.9502619 C11.6682023,16.9438775 11.6484208,16.9366843 11.6289415,16.928896 C11.6112044,16.9218036 11.5939015,16.914321 11.5767785,16.9063266 C11.5561086,16.8966234 11.5357061,16.8862061 11.515723,16.8751242 C11.5036056,16.8685012 11.4913869,16.8613931 11.4792912,16.8540045 C11.453725,16.8382813 11.4288693,16.8215099 11.4048407,16.8036865 C11.3656744,16.774687 11.3282873,16.7425008 11.2928932,16.7071068 L11.3832499,16.787214 C11.3515341,16.7623312 11.3213595,16.7355731 11.2928932,16.7071068 L7.29289322,12.7071068 C6.90236893,12.3165825 6.90236893,11.6834175 7.29289322,11.2928932 C7.68341751,10.9023689 8.31658249,10.9023689 8.70710678,11.2928932 L11,13.585 L11,2 C11,1.48716416 11.3860402,1.06449284 11.8833789,1.00672773 Z",fill:"currentColor"})})})}var EI=Aae;var SI=Bl({isExportMenuOpen:!1,isLayerTreeOpen:!1,isShareMenuOpen:!1,lineNetworkPlanLayer:null,poisLayer:null,selectedFeature:null,selectedFeatures:[],sellingPointsLayer:null,setIsExportMenuOpen:()=>{console.warn("setIsExportMenuOpen is not implemented")},setIsLayerTreeOpen:()=>{console.warn("setIsLayerTreeOpen is not implemented")},setIsShareMenuOpen:()=>{console.warn("setIsShareMenuOpen is not implemented")},setLineNetworkPlanLayer:()=>{console.warn("setLineNetworkPlanLayer is not implemented")},setPoisLayer:()=>{console.warn("setPoisLayer is not implemented")},setSelectedFeature:()=>{console.warn("setSelectedFeature is not implemented")},setSelectedFeatures:()=>{console.warn("setSelectedFeatures 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}),uae=()=>{let r=ic(SI);if(!r)throw new Error("useRvfContext must be used within a ContextProvider");return r},lo=uae;function hae({...r}){let{isExportMenuOpen:e,setIsExportMenuOpen:t}=lo(),i=ys(()=>{t(!e)},[e,t]);return K(Tl,{...r,onClick:i,selected:e,children:K(EI,{})})}var pw=lr(hae);function fae(r){return K("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("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 hm=fae;var II=null,xQ=null,dae="network_plans",pae="geops.lnp.lines",mae="geops.lnp.stops",gae="runs",TI="original_line_id";function yae({feature:r,features:e}){let{baseLayer:t}=Dr(),[i,s]=dr(null),[n,l]=dr(null),[u,d]=dr(null);Qt(()=>{let w=t?.mapLibreMap?.getSource(dae),S=new AbortController,b=async O=>{if(!II){let Q=await(await fetch(O,{signal:S.signal})).json();II=Q[pae],xQ=Q[mae]}s(II),l(xQ)};return w?.url&&b(w?.url),()=>{S?.abort()}},[t?.mapLibreMap]);let y=wr(()=>{let w={};return[...new Set(e.map(S=>S.get(TI)))].filter(S=>!!S&&!!i?.[S]).forEach(S=>{let{operator_name:b}=i[S];w[b]||(w[b]=[],w[b].runs=0),i[S].id=S;let O=e.filter(U=>U.get(TI)===S).reduce((U,Q)=>U+Q.get(gae),0);i[S].id=S,i[S].runs=O,w[b].runs+=O,w[b].push(i[S])}),w},[e,i]),v=wr(()=>{let w={};return e.forEach(S=>{let b=S.get(TI);if(b&&!w[b])try{w[b]=JSON.parse(S.get("stop_ids"))}catch(O){console.log(O)}}),w},[e]);return!r||!i?null:K("div",{className:"flex flex-col gap-4",children:Object.entries(y).sort(([w],[S])=>y[w].runs<y[S].runs?1:-1).map(([w,S])=>K("div",{className:"flex flex-col gap-2",children:[K("div",{children:w}),S.sort((b,O)=>b.runs<O.runs?1:-1).map(b=>{let{color:O,id:U,long_name:Q,mot:z,short_name:q,text_color:Y}=b,ae=Q,ye=null;if(ye?.length||(ye=null),!ae&&ye){let ve=ye.map(me=>n[me].short_name);ae=[...new Set([ve[0],ve[ve.length-1]])].join(" - ")}let _e={color:null,id:null,name:q,stroke:null,text_color:null,type:z};return Y&&(_e.text_color=Y[0]==="#"?Y:"#"+Y),O&&(_e.color=O[0]==="#"?O:"#"+O),K("div",{children:[K("div",{className:"flex w-full items-center justify-between gap-2",children:[K("div",{children:K(Xp,{line:_e})}),!!ae&&K("div",{className:"flex-1 text-left",children:ae}),!!ye&&K("button",{className:"shrink-0",children:u===U?K(hm,{}):K(zf,{})})]}),!!ye&&K("div",{className:`${u===U?"":"hidden"}`,children:ye?.map((ve,me,Be)=>{let ze=n[ve];return K("div",{className:"flex items-center gap-2",children:K(N1.Provider,{value:{index:me,status:{isFirst:!me,isLast:me===Be.length-1,isLeft:!1,isPassed:!1,progress:me?0:50},stop:ze},children:[K(Q1,{className:"relative flex size-8 shrink-0 items-center justify-center",lineColor:_e.color}),K("div",{children:ze.short_name})]})},ve)})})]},q)})]},w))})}var wQ=yae;var mw=(r,e)=>{let t=r.toLocaleTimeString(["de"],{hour:"2-digit",minute:"2-digit"});return`${r.toLocaleDateString(["de"],{day:"2-digit",month:"short",weekday:"short"})}${e&&e!==t?` ${t}`:""}`.replace(",","").replace(/\./,"").replace(/\.$/,"")},FI=null;fetch("https://tralis-tracker-api.dev.geops.io/api/lines/rvf/").then(r=>r.json()).then(r=>{FI=r});var vae=r=>{if(FI){let e=FI.find(t=>t.name===r);if(e)return e}return{mot:"bus",name:r}};function _ae({feature:r}){let{t:e}=h_(),{affected_products:t,affected_time_intervals:i,consequence_de:s,description_de:n,reason_de:l,recommendation_de:u,summary_de:d}=r.getProperties(),y="",v="",w=[];try{let S=JSON.parse(i)?.[0]||{};v=S.start,y=S.end,w=JSON.parse(t),w?.sort((b,O)=>b.name.localeCompare(O.name))}catch(S){console.error(S)}return K("div",{className:"flex flex-col gap-2 text-sm",children:[!!w?.length&&K("div",{className:"flex flex-wrap gap-2",children:w?.map(({name:S})=>{let b=vae(S);return K(Mi,{children:K("div",{className:"w-fit rounded-md bg-red px-[12px] py-[9px] font-bold leading-none text-white",style:{backgroundColor:Hd(b.mot,b)},children:S},S)})})}),K("div",{className:"text-base font-bold",children:[!!v&&!y&&"ab"+mw(new Date(v),!0),!v&&!!y&&"bis"+mw(new Date(y),!0),!!v&&!!y&&`${mw(new Date(v),!0)} - ${mw(new Date(y),!0)}`]}),K("div",{className:"flex flex-col gap-2",children:[K("p",{className:"text-base",children:d}),K("p",{className:"text-base",children:n}),[{content:u,label:"recommendation"},{content:l,label:"reason"},{content:s,label:"consequence"}].map(S=>S.content?K("div",{children:[!!S.label&&K("p",{className:"font-bold",children:[e(S.label),":"]}),K("p",{children:S.content})]},S.content):null)]})]})}var LI=_ae;var bQ='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64767456" viewBox="0 0 25.64767838 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_automat">%0A <g>%0A <path d="M12.82391739,25.14781189C6.02850723,25.14781189.50018692,19.6190033.50018692,12.82359314S6.02850723.49986267,12.82391739.49986267s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32421875-12.32373047,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29370117,11.82383728,11.82383728,0,6.53012085-5.29371643,11.82383728-11.82383728,11.82383728-6.53012848,0-11.82384109-5.29371643-11.82384109-11.82383728C1,6.29370117,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75274658,0,12.82383728s5.7527504,12.82383728,12.82384109,12.82383728,12.82383728-5.75274658,12.82383728-12.82383728S19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g>%0A <path d="M13.78932179,15.52073714h2.22363281c.41259766,0,.74804688-.33544922.74804688-.74804688s-.33544922-.74804688-.74804688-.74804688h-2.22363281c-.41259766,0-.74804688.33544922-.74804688.74804688s.33544922.74804688.74804688.74804688Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M17.35963429,4.94749496h-9.07177734c-1.12695312,0-2.04394531.91699219-2.04394531,2.04443359v11.6640625c0,1.12695312.91699219,2.04394531,2.04394531,2.04394531h9.07177734c1.12744141,0,2.04443359-.91699219,2.04443359-2.07568359V6.99192855c0-1.12744141-.91699219-2.04443359-2.04443359-2.04443359ZM7.74000539,18.07640121h10.16796875v.57958984c0,.30224609-.24609375.54785156-.54833984.54785156h-9.07177734c-.30224609,0-.54785156-.24560547-.54785156-.57958984v-.54785156ZM17.35963429,6.44407699c.30224609,0,.54833984.24560547.54833984.54785156v1.77832031H7.74000539v-1.77832031c0-.30224609.24560547-.54785156.54785156-.54785156h9.07177734ZM17.90797414,10.26634261v6.31347656H7.74000539v-6.31347656h10.16796875Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function wae({...r}){return K("img",{alt:"Automat",src:bQ,title:"Automat",...r})}var Dy=wae;var CQ='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64767456" viewBox="0 0 25.64767456 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_persoenlich">%0A <g>%0A <path d="M12.82395935,25.14781189C6.02854919,25.14781189.50022888,19.6190033.50022888,12.82359314S6.02854919.49986267,12.82395935.49986267s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32421875-12.32373047,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82382965,1c6.53012848,0,11.82384491,5.29370117,11.82384491,11.82383728,0,6.53012085-5.29371643,11.82383728-11.82384491,11.82383728-6.53012085,0-11.82382965-5.29371643-11.82382965-11.82383728C1,6.29370117,6.2937088,1,12.82382965,1M12.82382965,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82383728,12.82382965,12.82383728,12.82384491-5.75274658,12.82384491-12.82383728S19.89491272,0,12.82382965,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="info_info-videoterminal-2px" data-name="info/info-videoterminal-2px">%0A <g id="Group-9">%0A <path id="Fill-3" d="M9.22383182,20.93333634h-1.44v-6.27271884c0-1.54295975,1.21248001-2.80224014,2.73600014-2.87712021l.14399986-.00287979h4.32c1.54224014,0,2.80152054,1.21248001,2.8764006,2.73599945l.0035994.14400055v6.27271884h-1.44v-6.27271884c0-.75960022-.58751999-1.38168045-1.33271988-1.4364006l-.10728012-.0035994h-4.32c-.75887993,0-1.38096016.58680038-1.43639992,1.33200027l-.00360008.10799973v.50184036" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M12.82383182,7.21747324c.70415977,0,1.27511993.57095982,1.27511993,1.27512028,0,.70488007-.57096016,1.27583954-1.27511993,1.27583954s-1.27511993-.57095947-1.27511993-1.27583954c0-.70416046.57096016-1.27512028,1.27511993-1.27512028M12.82383182,11.20843305c1.49976013,0,2.71511993-1.21608009,2.71511993-2.71583954,0-1.49904018-1.2153598-2.71512028-2.71511993-2.71512028s-2.71511993,1.21608009-2.71511993,2.71512028c0,1.49975945,1.2153598,2.71583954,2.71511993,2.71583954" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A </g>%0A</svg>';function Cae({...r}){return K("img",{alt:"InPerson",src:CQ,title:"Pers\xF6nlich",...r})}var ky=Cae;var BQ='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64767456" viewBox="0 0 25.64767456 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_video">%0A <g>%0A <path d="M12.82368469,25.14781189C6.02827454,25.14781189.49995422,19.6190033.49995422,12.82359314S6.02827454.49986267,12.82368469.49986267s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32421875-12.32421875,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29370117,11.82383728,11.82383728,0,6.53012085-5.2937088,11.82383728-11.82383728,11.82383728-6.53012085,0-11.82383728-5.29371643-11.82383728-11.82383728C1,6.29370117,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82383728,12.82383728,12.82383728,12.82383728-5.75274658,12.82383728-12.82383728S19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="info_info-videoterminal-2px" data-name="info/info-videoterminal-2px">%0A <g id="Group-9">%0A <path id="Fill-1" d="M12.2882218,5.73500377c0-.39743999.32255997-.72.72-.72s.72.32256001.72.72c0,.39744003-.32255997.72-.72.72s-.72-.32255997-.72-.72" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-3" d="M20.2082218,17.21446833c0,.79559967-.64440033,1.44-1.44,1.44h-.72v-.50184036l-.0035994-.14400055c-.07488007-1.52351944-1.33416046-2.73599945-2.8764006-2.73599945h-4.32l-.14399986.00287979c-1.52352013.07488007-2.73600014,1.33416046-2.73600014,2.87712021v.50184036h-.72c-.79560001,0-1.44-.64440033-1.44-1.44v-7.20000069c0-.79560001.64439999-1.44,1.44-1.44h11.52c.79559967,0,1.44.64439999,1.44,1.44v7.20000069ZM16.6082218,18.65446833h-7.2v-.50184036l.00360008-.10799973c.05543976-.74519989.67751999-1.33200027,1.43639992-1.33200027h4.32l.10728012.0035994c.74519989.05472015,1.33271988.67680038,1.33271988,1.4364006v.50184036ZM18.7682218,7.13446782H7.2482218c-1.59047999,0-2.88,1.28952009-2.88,2.87999983v7.20000069c0,1.59047974,1.28952001,2.88,2.88,2.88h11.52c1.59047974,0,2.88-1.28952026,2.88-2.88v-7.20000069c0-1.59047974-1.28952026-2.87999983-2.88-2.87999983h0Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-5" d="M13.7282218,5.73500377c0-.39743999-.32255997-.72-.72-.72s-.72.32256001-.72.72c0,.39744003.32255997.72.72.72s.72-.32255997.72-.72" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M13.0082218,10.70948371c.70415977,0,1.27511993.57095982,1.27511993,1.27512028,0,.70488007-.57096016,1.27583954-1.27511993,1.27583954s-1.27511993-.57095947-1.27511993-1.27583954c0-.70416046.57096016-1.27512028,1.27511993-1.27512028M13.0082218,14.70044352c1.49976013,0,2.71511993-1.21608009,2.71511993-2.71583954,0-1.49904018-1.2153598-2.71512028-2.71511993-2.71512028s-2.71511993,1.21608009-2.71511993,2.71512028c0,1.49975945,1.2153598,2.71583954,2.71511993,2.71583954" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A </g>%0A</svg>';function Eae({...r}){return K("img",{alt:"Video",src:BQ,title:"Video",...r})}var Oy=Eae;var Sae={Automat:K(Dy,{}),Pers\u00F6nlich:K(ky,{}),Videozentrum:K(Oy,{})};function Iae({feature:r}){if(!r)return null;let{city:e,name:t,operated_by:i,street:s,telephone_info:n,zip_code:l}=r.getProperties();return K("div",{className:"flex flex-col gap-4",children:[K("div",{className:"flex gap-2",children:[K("span",{className:"min-w-[26px]",children:Sae[i]}),K("span",{children:t})]}),K("div",{className:"flex flex-col",children:[n&&K("div",{children:n}),s&&K("div",{children:s}),(l||e)&&K("div",{className:"flex gap-2",children:[K("span",{children:l}),K("span",{children:e})]})]})]})}var MI=Iae;function Tae(r){return K("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:[K("title",{children:"iconfont/right"}),K("g",{fill:"none",fillRule:"evenodd",id:"iconfont/right",stroke:"none",strokeWidth:"1",style:`
|
|
1045
|
+
`)}return""+t},e}();var gQ=mi;var bI=!1;var Joe=(r,e,t,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),bI=!1,l-1===8&&(bI=!0);while(l-1>8&&r.measureText(t).width*i>e);return r.font};var eae=function(){function r(t,i,s){for(let n=0;n<i;++n)if(t.data[s*i*4+n*4+3]!==0)return!1;return!0}function e(t,i,s,n,l){for(let u=n;u<l;++u)if(t.data[u*i*4+s*4+3]!==0)return!1;return!0}return function(t){let i=t.getContext("2d"),s=t.width,n=i.getImageData(0,0,t.width,t.height),l=n.height,u=0,d=n.width,y=0;for(;y<l&&r(n,s,y);)++y;for(;l-1>y&&r(n,s,l-1);)--l;for(;u<d&&e(n,s,u,y,l);)++u;for(;d-1>u&&e(n,s,d-1,y,l);)--d;let v=i.getImageData(u,y,d-u,l-y),w=t.ownerDocument.createElement("canvas"),S=w.getContext("2d");return w.width=v.width,w.height=v.height,S.putImageData(v,0,0),w}}(),tae=(r,e,t,i)=>{let s=document.createElement("canvas");s.width=e,s.height=t;let{fillStyle:n="black",font:l="12px Arial",textAlign:u="left",textBaseline:d="top"}=i,y=s.getContext("2d");y.fillStyle=n,y.font=l,y.font=Joe(y,s.width,r),y.textAlign=u,y.textBaseline=d;let v=r,w=y.measureText(v);if(bI){let z=r.split(" ").length;for(let q=0;q<z&&!(w.width*scale<s.width);q+=1)v=v.substring(0,v.lastIndexOf(" ")),w=y.measureText(v)}let S=r.replace(v,"").trim(),b=[v,S].filter(z=>!!z);d==="bottom"&&(b=b.reverse());let O=u==="right"?s.width:0,U=d==="bottom"?s.height:0;return b.forEach(z=>{let{fontBoundingBoxAscent:q,fontBoundingBoxDescent:Y}=y.measureText(z),ae=q+Y;y.fillText(z,O,U);let ye=ae;d==="bottom"&&(ye=-ae),U=U+ye}),eae(s)},rae=(r,e,t={})=>{let{fillStyle:i,font:s,margin:n=10,placement:l="bottom-left"}=t,[u,d]=l.split("-"),y=typeof r=="function"?r():r,v=tae(y,e.width,e.height,{fillStyle:i,font:s,textAlign:d,textBaseline:u}),w=n,S=n;d==="right"&&(w=e.width-v.width-n),u==="bottom"&&(S=e.height-v.height-n),e.getContext("2d").drawImage(v,w,S)};var iae=(r,e,t)=>{let i,s;if(e?(i=Sp(e),s=Ep(e)):t&&([i,,s]=t),i&&s){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(s),u=[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]-u[1],w:d[0]-u[0],x:u[0],y:u[1]}}return null},yQ=async(r,e,t)=>{let i=r.getTargetElement().getElementsByTagName("canvas"),s,n;for(let l=0;l<i.length;l+=1){let u=i[l];if(!u.width||!u.height)continue;let d=iae(r,e,t)||{h:u.height,w:u.width,x:0,y:0};s||(s=document.createElement("canvas"),s.width=d.w,s.height=d.h,n=s.getContext("2d")),n.drawImage(u,d.x,d.y,d.w,d.h,0,0,s.width,s.height)}return s},nae=async(r,e="image/png",t=i=>i.replace("/","."))=>{try{if(window.navigator.msSaveBlob){let i;try{i=r.msToBlob()}catch(n){console.error(n)}let s=new Blob([i],{type:e});window.navigator.msSaveBlob(s,t(e))}else r.toBlob(i=>{let s=document.createElement("a");s.download=t(e),s.href=URL.createObjectURL(i),document.body.appendChild(s),s.click()},e);return!0}catch(i){return console.error(i),!1}},sae=async(r,e,t,i,s={},n={})=>{let l=i||r.getSize(),u=t,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 y=new qp({pixelRatio:window.devicePixelRatio,target:d,view:new el({center:r.getView().getCenter(),projection:r.getView().getProjection(),zoom:r.getView().getZoom(),...n}),...s});return u&&y.getView().fit(u),y.setLayers(e),await new Promise(w=>{let S=window.setTimeout(()=>{w(y)},1e4);y.once("rendercomplete",async()=>{clearTimeout(S),w(y)})})},oae={A0:[3370,2384],A1:[2384,1684],A3:[1191,842],A4:[842,595]};async function aae(r,e={},t={}){let{onAfter:i,onBefore:s,pixelRatio:n=3,useCopyright:l=!0,useMaxExtent:u=!1,usePlaceholder:d=!0}=t,y=e?.format||"A4",v=oae[y]||y,w=v.map(Y=>Y*96/72),S=u?s_:null,b=window.devicePixelRatio;Object.defineProperty(window,"devicePixelRatio",{get(){return n}});let O;d&&(O=await yQ(r),O.style.zIndex="0",O.style.position="absolute",r.getViewport().querySelector(".ol-layers").insertAdjacentElement("afterend",O));let U=[...r.getLayers().getArray()],Q=t?.copyrightOptions?.text||r.getControls().getArray().find(Y=>Y instanceof s1)?.element?.textContent;r.getLayers().clear(),s?.(r,U);let z=await sae(r,U,S,w,{pixelRatio:n});Object.defineProperty(window,"devicePixelRatio",{get(){return b}});let q=await yQ(z);if(z.getLayers().clear(),z.getTargetElement().remove(),z.setTarget(null),z.dispose(),document.body.style.overflow="auto",r.setLayers(U),i?.(r,U),O&&r.once("rendercomplete",()=>{O.remove()}),l&&rae(Q,q,{...t?.copyrightOptions||{},font:(n*12).toString()+"px Arial"}),/^A[0-9]{1,2}/.test(y)||y?.length===2){try{let Y=new gQ({orientation:"landscape",unit:"pt",...e});Y.addImage(q,"JPEG",0,0,v[0],v[1]),Y.save(`rvf-${new Date().toISOString().slice(0,10)}.pdf`)}catch(Y){return console.error(Y),!1}return!0}else return await nae(q)}var vQ=aae;var lae=r=>{let e=[];function t(i){i.forEach(function(s){s instanceof zh?t(s.getLayers()):e.push(s)})}return t(r?.getLayers?.()||r),e},CI=lae;var _Q=["A4","A3","A1","A0"],BI=!1;function cae({...r}){let{map:e,realtimeLayer:t}=Dr(),[i,s]=dr(!1),[n,l]=dr(_Q[0]),u=_f(),d=_f(),[y,v]=dr(!1),[w,S]=dr(!1);return K("div",{...r,children:[K("div",{className:"flex flex-1 flex-col gap-2",children:[K("div",{className:"flex flex-wrap items-center gap-2",children:[K(j1,{checked:i,id:u,onChange:()=>s(!i)}),K("label",{htmlFor:u,children:"Ganze Region exportieren"})]}),K("div",{className:"flex flex-wrap items-center gap-2",children:[K("label",{htmlFor:d,children:"Format:"}),K(w4,{className:"w-24",id:d,onChange:b=>{l(b.target.value)},children:_Q.map(b=>K("option",{children:b},b))})]})]}),K("div",{children:K(xg,{disabled:y,onClick:async()=>{S(!1),v(!0);let b=await vQ(e,{format:n},{onAfter:(O,U)=>{t&&BI!==t?.getVisible()&&t.setVisible(BI),CI(U).forEach(Q=>{Q.set(Gh,!1)}),O.set(Gh,!1)},onBefore:(O,U)=>{O.set(Gh,!0),t&&(BI=t.getVisible(),t.getVisible()&&t.setVisible(!1)),CI(U).forEach(Q=>{Q.set(Gh,!0)})},useMaxExtent:i});setTimeout(()=>{v(!1),S(!b)},1e3)},children:y?"Exporting...":w?"Error":"Download"})})]})}var dw=lr(cae);function Aae({...r}){return K("svg",{height:"24px",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("g",{children:K("path",{d:"M21,16 C21.5522847,16 22,16.4477153 22,17 L22,20 C22,21.6568542 20.6568542,23 19,23 L5,23 C3.34314575,23 2,21.6568542 2,20 L2,17 C2,16.4477153 2.44771525,16 3,16 C3.55228475,16 4,16.4477153 4,17 L4,20 C4,20.5522847 4.44771525,21 5,21 L19,21 C19.5522847,21 20,20.5522847 20,20 L20,17 C20,16.4477153 20.4477153,16 21,16 Z M12,1 C12.5522847,1 13,1.44771525 13,2 L13,13.585 L15.2928932,11.2928932 C15.6533772,10.9324093 16.2206082,10.9046797 16.6128994,11.2097046 L16.7071068,11.2928932 C17.0976311,11.6834175 17.0976311,12.3165825 16.7071068,12.7071068 L12.7071068,16.7071068 C12.6786405,16.7355731 12.6484659,16.7623312 12.6167501,16.787214 C12.6098424,16.7927155 12.602603,16.7982466 12.5953066,16.8036654 C12.5711307,16.8215099 12.546275,16.8382813 12.5206602,16.8539326 C12.5086131,16.8613931 12.4963944,16.8685012 12.4840621,16.8753288 C12.4642939,16.8862061 12.4438914,16.8966234 12.4230991,16.9063462 C12.4060985,16.914321 12.3887956,16.9218036 12.371336,16.9287745 C12.3515792,16.9366843 12.3317977,16.9438775 12.3117364,16.9504533 C12.2968513,16.9552713 12.2814633,16.9599023 12.265993,16.9641549 C12.2444365,16.9701664 12.2227461,16.9753602 12.2007941,16.9798348 C12.1833753,16.9832978 12.165949,16.9863719 12.1484669,16.9889822 C12.1003621,16.9962388 12.0506203,17 12,17 L12.0852242,16.996384 C12.0679231,16.997855 12.050591,16.9988772 12.0332468,16.9994506 L12,17 C11.9888734,17 11.9777892,16.9998183 11.9667503,16.9994576 C11.9497336,16.9989053 11.9317345,16.9978436 11.9137692,16.9962979 C11.892114,16.9944666 11.8714753,16.9920328 11.8510388,16.9889807 C11.834051,16.9863719 11.8166247,16.9832978 11.7992742,16.9797599 C11.7772539,16.9753602 11.7555635,16.9701664 11.7341604,16.964279 C11.7185367,16.9599023 11.7031487,16.9552713 11.6878575,16.9502619 C11.6682023,16.9438775 11.6484208,16.9366843 11.6289415,16.928896 C11.6112044,16.9218036 11.5939015,16.914321 11.5767785,16.9063266 C11.5561086,16.8966234 11.5357061,16.8862061 11.515723,16.8751242 C11.5036056,16.8685012 11.4913869,16.8613931 11.4792912,16.8540045 C11.453725,16.8382813 11.4288693,16.8215099 11.4048407,16.8036865 C11.3656744,16.774687 11.3282873,16.7425008 11.2928932,16.7071068 L11.3832499,16.787214 C11.3515341,16.7623312 11.3213595,16.7355731 11.2928932,16.7071068 L7.29289322,12.7071068 C6.90236893,12.3165825 6.90236893,11.6834175 7.29289322,11.2928932 C7.68341751,10.9023689 8.31658249,10.9023689 8.70710678,11.2928932 L11,13.585 L11,2 C11,1.48716416 11.3860402,1.06449284 11.8833789,1.00672773 Z",fill:"currentColor"})})})}var EI=Aae;var SI=Bl({isExportMenuOpen:!1,isLayerTreeOpen:!1,isShareMenuOpen:!1,lineNetworkPlanLayer:null,poisLayer:null,selectedFeature:null,selectedFeatures:[],sellingPointsLayer:null,setIsExportMenuOpen:()=>{console.warn("setIsExportMenuOpen is not implemented")},setIsLayerTreeOpen:()=>{console.warn("setIsLayerTreeOpen is not implemented")},setIsShareMenuOpen:()=>{console.warn("setIsShareMenuOpen is not implemented")},setLineNetworkPlanLayer:()=>{console.warn("setLineNetworkPlanLayer is not implemented")},setPoisLayer:()=>{console.warn("setPoisLayer is not implemented")},setSelectedFeature:()=>{console.warn("setSelectedFeature is not implemented")},setSelectedFeatures:()=>{console.warn("setSelectedFeatures 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}),uae=()=>{let r=ic(SI);if(!r)throw new Error("useRvfContext must be used within a ContextProvider");return r},lo=uae;function hae({...r}){let{isExportMenuOpen:e,setIsExportMenuOpen:t}=lo(),i=ys(()=>{t(!e)},[e,t]);return K(Tl,{...r,onClick:i,selected:e,children:K(EI,{})})}var pw=lr(hae);function fae(r){return K("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("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 hm=fae;var II=null,xQ=null,dae="network_plans",pae="geops.lnp.lines",mae="geops.lnp.stops",gae="runs",TI="original_line_id";function yae({feature:r,features:e}){let{baseLayer:t}=Dr(),[i,s]=dr(null),[n,l]=dr(null),[u,d]=dr(null);Qt(()=>{let w=t?.mapLibreMap?.getSource(dae),S=new AbortController,b=async O=>{if(!II){let Q=await(await fetch(O,{signal:S.signal})).json();II=Q[pae],xQ=Q[mae]}s(II),l(xQ)};return w?.url&&b(w?.url),()=>{S?.abort()}},[t?.mapLibreMap]);let y=wr(()=>{let w={};return[...new Set(e.map(S=>S.get(TI)))].filter(S=>!!S&&!!i?.[S]).forEach(S=>{let{operator_name:b}=i[S];w[b]||(w[b]=[],w[b].runs=0),i[S].id=S;let O=e.filter(U=>U.get(TI)===S).reduce((U,Q)=>U+Q.get(gae),0);i[S].id=S,i[S].runs=O,w[b].runs+=O,w[b].push(i[S])}),w},[e,i]),v=wr(()=>{let w={};return e.forEach(S=>{let b=S.get(TI);if(b&&!w[b])try{w[b]=JSON.parse(S.get("stop_ids"))}catch(O){console.log(O)}}),w},[e]);return!r||!i?null:K("div",{className:"flex flex-col gap-4",children:Object.entries(y).sort(([w],[S])=>y[w].runs<y[S].runs?1:-1).map(([w,S])=>K("div",{className:"flex flex-col gap-2",children:[K("div",{children:w}),S.sort((b,O)=>b.runs<O.runs?1:-1).map(b=>{let{color:O,id:U,long_name:Q,mot:z,short_name:q,text_color:Y}=b,ae=Q,ye=null;if(ye?.length||(ye=null),!ae&&ye){let ve=ye.map(me=>n[me].short_name);ae=[...new Set([ve[0],ve[ve.length-1]])].join(" - ")}let _e={color:null,id:null,name:q,stroke:null,text_color:null,type:z};return Y&&(_e.text_color=Y[0]==="#"?Y:"#"+Y),O&&(_e.color=O[0]==="#"?O:"#"+O),K("div",{children:[K("div",{className:"flex w-full items-center justify-between gap-2",children:[K("div",{children:K(Xp,{line:_e})}),!!ae&&K("div",{className:"flex-1 text-left",children:ae}),!!ye&&K("button",{className:"shrink-0",children:u===U?K(hm,{}):K(zf,{})})]}),!!ye&&K("div",{className:`${u===U?"":"hidden"}`,children:ye?.map((ve,me,Be)=>{let ze=n[ve];return K("div",{className:"flex items-center gap-2",children:K(N1.Provider,{value:{index:me,status:{isFirst:!me,isLast:me===Be.length-1,isLeft:!1,isPassed:!1,progress:me?0:50},stop:ze},children:[K(Q1,{className:"relative flex size-8 shrink-0 items-center justify-center",lineColor:_e.color}),K("div",{children:ze.short_name})]})},ve)})})]},q)})]},w))})}var wQ=yae;var mw=(r,e)=>{let t=r.toLocaleTimeString(["de"],{hour:"2-digit",minute:"2-digit"});return`${r.toLocaleDateString(["de"],{day:"2-digit",month:"short",weekday:"short"})}${e&&e!==t?` ${t}`:""}`.replace(",","").replace(/\./,"").replace(/\.$/,"")},FI=null;fetch("https://tralis-tracker-api.geops.io/api/lines/rvf/").then(r=>r.json()).then(r=>{FI=r});var vae=r=>{if(FI){let e=FI.find(t=>t.name===r);if(e)return e}return{mot:"bus",name:r}};function _ae({feature:r}){let{t:e}=h_(),{affected_products:t,affected_time_intervals:i,consequence_de:s,description_de:n,reason_de:l,recommendation_de:u,summary_de:d}=r.getProperties(),y="",v="",w=[];try{let S=JSON.parse(i)?.[0]||{};v=S.start,y=S.end,w=JSON.parse(t),w?.sort((b,O)=>b.name.localeCompare(O.name))}catch(S){console.error(S)}return K("div",{className:"flex flex-col gap-2 text-sm",children:[!!w?.length&&K("div",{className:"flex flex-wrap gap-2",children:w?.map(({name:S})=>{let b=vae(S);return K(Mi,{children:K("div",{className:"w-fit rounded-md bg-red px-[12px] py-[9px] font-bold leading-none text-white",style:{backgroundColor:Hd(b.mot,b)},children:S},S)})})}),K("div",{className:"text-base font-bold",children:[!!v&&!y&&"ab"+mw(new Date(v),!0),!v&&!!y&&"bis"+mw(new Date(y),!0),!!v&&!!y&&`${mw(new Date(v),!0)} - ${mw(new Date(y),!0)}`]}),K("div",{className:"flex flex-col gap-2",children:[K("p",{className:"text-base",children:d}),K("p",{className:"text-base",children:n}),[{content:u,label:"recommendation"},{content:l,label:"reason"},{content:s,label:"consequence"}].map(S=>S.content?K("div",{children:[!!S.label&&K("p",{className:"font-bold",children:[e(S.label),":"]}),K("p",{children:S.content})]},S.content):null)]})]})}var LI=_ae;var bQ='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767838" height="25.64767456" viewBox="0 0 25.64767838 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_automat">%0A <g>%0A <path d="M12.82391739,25.14781189C6.02850723,25.14781189.50018692,19.6190033.50018692,12.82359314S6.02850723.49986267,12.82391739.49986267s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32421875-12.32373047,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82384109,1c6.53012085,0,11.82383728,5.29370117,11.82383728,11.82383728,0,6.53012085-5.29371643,11.82383728-11.82383728,11.82383728-6.53012848,0-11.82384109-5.29371643-11.82384109-11.82383728C1,6.29370117,6.29371262,1,12.82384109,1M12.82384109,0C5.7527504,0,0,5.75274658,0,12.82383728s5.7527504,12.82383728,12.82384109,12.82383728,12.82383728-5.75274658,12.82383728-12.82383728S19.89493179,0,12.82384109,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g>%0A <path d="M13.78932179,15.52073714h2.22363281c.41259766,0,.74804688-.33544922.74804688-.74804688s-.33544922-.74804688-.74804688-.74804688h-2.22363281c-.41259766,0-.74804688.33544922-.74804688.74804688s.33544922.74804688.74804688.74804688Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path d="M17.35963429,4.94749496h-9.07177734c-1.12695312,0-2.04394531.91699219-2.04394531,2.04443359v11.6640625c0,1.12695312.91699219,2.04394531,2.04394531,2.04394531h9.07177734c1.12744141,0,2.04443359-.91699219,2.04443359-2.07568359V6.99192855c0-1.12744141-.91699219-2.04443359-2.04443359-2.04443359ZM7.74000539,18.07640121h10.16796875v.57958984c0,.30224609-.24609375.54785156-.54833984.54785156h-9.07177734c-.30224609,0-.54785156-.24560547-.54785156-.57958984v-.54785156ZM17.35963429,6.44407699c.30224609,0,.54833984.24560547.54833984.54785156v1.77832031H7.74000539v-1.77832031c0-.30224609.24560547-.54785156.54785156-.54785156h9.07177734ZM17.90797414,10.26634261v6.31347656H7.74000539v-6.31347656h10.16796875Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A</svg>';function wae({...r}){return K("img",{alt:"Automat",src:bQ,title:"Automat",...r})}var Dy=wae;var CQ='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64767456" viewBox="0 0 25.64767456 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_persoenlich">%0A <g>%0A <path d="M12.82395935,25.14781189C6.02854919,25.14781189.50022888,19.6190033.50022888,12.82359314S6.02854919.49986267,12.82395935.49986267s12.32373047,5.52832031,12.32373047,12.32373047-5.52832031,12.32421875-12.32373047,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82382965,1c6.53012848,0,11.82384491,5.29370117,11.82384491,11.82383728,0,6.53012085-5.29371643,11.82383728-11.82384491,11.82383728-6.53012085,0-11.82382965-5.29371643-11.82382965-11.82383728C1,6.29370117,6.2937088,1,12.82382965,1M12.82382965,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82383728,12.82382965,12.82383728,12.82384491-5.75274658,12.82384491-12.82383728S19.89491272,0,12.82382965,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="info_info-videoterminal-2px" data-name="info/info-videoterminal-2px">%0A <g id="Group-9">%0A <path id="Fill-3" d="M9.22383182,20.93333634h-1.44v-6.27271884c0-1.54295975,1.21248001-2.80224014,2.73600014-2.87712021l.14399986-.00287979h4.32c1.54224014,0,2.80152054,1.21248001,2.8764006,2.73599945l.0035994.14400055v6.27271884h-1.44v-6.27271884c0-.75960022-.58751999-1.38168045-1.33271988-1.4364006l-.10728012-.0035994h-4.32c-.75887993,0-1.38096016.58680038-1.43639992,1.33200027l-.00360008.10799973v.50184036" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M12.82383182,7.21747324c.70415977,0,1.27511993.57095982,1.27511993,1.27512028,0,.70488007-.57096016,1.27583954-1.27511993,1.27583954s-1.27511993-.57095947-1.27511993-1.27583954c0-.70416046.57096016-1.27512028,1.27511993-1.27512028M12.82383182,11.20843305c1.49976013,0,2.71511993-1.21608009,2.71511993-2.71583954,0-1.49904018-1.2153598-2.71512028-2.71511993-2.71512028s-2.71511993,1.21608009-2.71511993,2.71512028c0,1.49975945,1.2153598,2.71583954,2.71511993,2.71583954" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A </g>%0A</svg>';function Cae({...r}){return K("img",{alt:"InPerson",src:CQ,title:"Pers\xF6nlich",...r})}var ky=Cae;var BQ='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" width="25.64767456" height="25.64767456" viewBox="0 0 25.64767456 25.64767456">%0A <g id="rvf_base">%0A <g id="rvf_video">%0A <g>%0A <path d="M12.82368469,25.14781189C6.02827454,25.14781189.49995422,19.6190033.49995422,12.82359314S6.02827454.49986267,12.82368469.49986267s12.32421875,5.52832031,12.32421875,12.32373047-5.52880859,12.32421875-12.32421875,12.32421875Z" style="fill: %23f3c200;"/>%0A <path d="M12.82383728,1c6.53012848,0,11.82383728,5.29370117,11.82383728,11.82383728,0,6.53012085-5.2937088,11.82383728-11.82383728,11.82383728-6.53012085,0-11.82383728-5.29371643-11.82383728-11.82383728C1,6.29370117,6.29371643,1,12.82383728,1M12.82383728,0C5.75274658,0,0,5.75274658,0,12.82383728s5.75274658,12.82383728,12.82383728,12.82383728,12.82383728-5.75274658,12.82383728-12.82383728S19.89492798,0,12.82383728,0h0Z" style="fill: %23f7f4f4;"/>%0A </g>%0A <g id="info_info-videoterminal-2px" data-name="info/info-videoterminal-2px">%0A <g id="Group-9">%0A <path id="Fill-1" d="M12.2882218,5.73500377c0-.39743999.32255997-.72.72-.72s.72.32256001.72.72c0,.39744003-.32255997.72-.72.72s-.72-.32255997-.72-.72" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-3" d="M20.2082218,17.21446833c0,.79559967-.64440033,1.44-1.44,1.44h-.72v-.50184036l-.0035994-.14400055c-.07488007-1.52351944-1.33416046-2.73599945-2.8764006-2.73599945h-4.32l-.14399986.00287979c-1.52352013.07488007-2.73600014,1.33416046-2.73600014,2.87712021v.50184036h-.72c-.79560001,0-1.44-.64440033-1.44-1.44v-7.20000069c0-.79560001.64439999-1.44,1.44-1.44h11.52c.79559967,0,1.44.64439999,1.44,1.44v7.20000069ZM16.6082218,18.65446833h-7.2v-.50184036l.00360008-.10799973c.05543976-.74519989.67751999-1.33200027,1.43639992-1.33200027h4.32l.10728012.0035994c.74519989.05472015,1.33271988.67680038,1.33271988,1.4364006v.50184036ZM18.7682218,7.13446782H7.2482218c-1.59047999,0-2.88,1.28952009-2.88,2.87999983v7.20000069c0,1.59047974,1.28952001,2.88,2.88,2.88h11.52c1.59047974,0,2.88-1.28952026,2.88-2.88v-7.20000069c0-1.59047974-1.28952026-2.87999983-2.88-2.87999983h0Z" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-5" d="M13.7282218,5.73500377c0-.39743999-.32255997-.72-.72-.72s-.72.32256001-.72.72c0,.39744003.32255997.72.72.72s.72-.32255997.72-.72" style="fill: %23fff; fill-rule: evenodd;"/>%0A <path id="Fill-7" d="M13.0082218,10.70948371c.70415977,0,1.27511993.57095982,1.27511993,1.27512028,0,.70488007-.57096016,1.27583954-1.27511993,1.27583954s-1.27511993-.57095947-1.27511993-1.27583954c0-.70416046.57096016-1.27512028,1.27511993-1.27512028M13.0082218,14.70044352c1.49976013,0,2.71511993-1.21608009,2.71511993-2.71583954,0-1.49904018-1.2153598-2.71512028-2.71511993-2.71512028s-2.71511993,1.21608009-2.71511993,2.71512028c0,1.49975945,1.2153598,2.71583954,2.71511993,2.71583954" style="fill: %23fff; fill-rule: evenodd;"/>%0A </g>%0A </g>%0A </g>%0A </g>%0A</svg>';function Eae({...r}){return K("img",{alt:"Video",src:BQ,title:"Video",...r})}var Oy=Eae;var Sae={Automat:K(Dy,{}),Pers\u00F6nlich:K(ky,{}),Videozentrum:K(Oy,{})};function Iae({feature:r}){if(!r)return null;let{city:e,name:t,operated_by:i,street:s,telephone_info:n,zip_code:l}=r.getProperties();return K("div",{className:"flex flex-col gap-4",children:[K("div",{className:"flex gap-2",children:[K("span",{className:"min-w-[26px]",children:Sae[i]}),K("span",{children:t})]}),K("div",{className:"flex flex-col",children:[n&&K("div",{children:n}),s&&K("div",{children:s}),(l||e)&&K("div",{className:"flex gap-2",children:[K("span",{children:l}),K("span",{children:e})]})]})]})}var MI=Iae;function Tae(r){return K("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:[K("title",{children:"iconfont/right"}),K("g",{fill:"none",fillRule:"evenodd",id:"iconfont/right",stroke:"none",strokeWidth:"1",style:`
|
|
1046
1046
|
/* transform: rotate(-45deg); */
|
|
1047
1047
|
`,children:K("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:`
|
|
1048
1048
|
/* transform: rotate(-45deg); */
|
|
@@ -1296,7 +1296,7 @@ ${String(r)}`)}catch(e){return e}},XQ=r=>{if(typeof r!="object"||r===null)throw
|
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
`,Rw=async r=>{let e=new ip(mle,{method:"GET"}),{station:t}=await e.request(gle,{__operation:"station",id:r}).catch(i=>(console.error("Error fetching sharing station:",i),{station:null}));return t};function yle({feature:r}){let[e,t]=dr(null),i=wr(()=>Uy(r),[r]);Qt(()=>{r.get("station_id")&&(async()=>{let u=await Rw(r.get("station_id"));t(u)})()},[r]);let s=r.get("num_vehicles_available")>0;return K("div",{className:"flex flex-1 flex-col gap-2",children:[K("div",{className:"flex flex-1 flex-col gap-2 ",children:[K("div",{children:[r.get("num_vehicles_available")||0," Fahrzeuge"]}),s&&e?.vehicleTypesAvailable?.length&&K("div",{className:"flex flex-1 flex-col",children:[K("div",{className:"text-grey",children:"Fahrzeug mieten"}),K("ul",{className:"list-disc pl-4",children:e?.vehicleTypesAvailable?.map(({count:n,vehicleType:{id:l,name:u,vehicleImage:d}})=>K("li",{children:K("div",{className:"flex items-center gap-2",children:[K("span",{children:`${n} x ${u.translation[0].value}`}),d&&K("img",{alt:"vehicle",className:"w-12",src:d})]})},l))})]})]}),e?.vehicleTypesAvailable?.length>0&&i&&K("div",{children:K(t0,{href:i,children:"Jetzt buchen"})})]})}var WI=yle;function vle({selectedFeature:r}){let[e,t]=dr([]),i=!!r.get("station_id"),s=!!r.get("vehicle_id"),n=!!r.get("cluster_id");Qt(()=>{t(n?r.get("features"):[r])},[r,s,n]);let l=wr(()=>{let u={};return i?null:(e.forEach(d=>{let y=d.get("feed_id");u[y]?u[y].push(d):u[y]=[d]}),u)},[e,i]);return K(Mi,{children:[i&&K(Mi,{children:[K("img",{alt:"logo",className:"max-w-24",src:k1[e[0]?.get("feed_id")]}),e.length&&i&&K(WI,{feature:e[0]})]}),(s||n)&&l&&Object.entries(l).map(([u,d])=>K(Mi,{children:[K("img",{alt:"logo",className:"max-w-24",src:k1[d[0]?.get("feed_id")]}),K(PI,{features:d})]},u))]})}var XI=vle;var _le=r=>{if(r.get("station_id")||r.get("vehicle_id")||r.get("cluster_id"))return!0};function xle(r){let{selectedFeature:e,selectedFeatures:t}=lo(),i=_le(e),s=!!e.get("tickets"),n=!!e.get("disruption_type"),l=!!e.get("original_line_id");return K("div",{...r,children:[s&&K(MI,{feature:e}),i&&K(XI,{selectedFeature:e}),n&&K(LI,{feature:e}),l&&K(wQ,{feature:e,features:t}),!l&&!n&&!i&&!s&&Object.entries(e.getProperties()).map(([d,y])=>K("div",{className:"flex gap-2",children:[K("span",{children:K("b",{children:[d,":"]})}),K("div",{children:y})]},d))]})}var $I=lr(xle);function wle({children:r,isOpen:e,onClick:t,title:i}){let{map:s}=Dr();return s?K("div",{className:"pointer-events-none absolute bottom-8 left-2 top-2 z-10 flex flex-col overflow-hidden rounded-lg",children:K("div",{className:"pointer-events-auto max-h-full w-48 rounded-lg border border-grey bg-white shadow-lg @lg/main:w-52",children:[K("button",{className:"flex w-full items-center justify-between px-2 py-1.5 font-bold",onClick:t,children:[i," ",e?K(zf,{}):K(hm,{})]}),!e&&K("div",{className:"flex h-[calc(100%-39px)] w-full flex-1 flex-col overflow-y-auto",children:r})]})}):null}var ZI=wle;function ble({...r}){return K("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:K("path",{d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3",strokeLinecap:"round",strokeLinejoin:"round"})})}var YI=ble;function Cle({...r}){let{isLayerTreeOpen:e,setIsLayerTreeOpen:t}=lo(),i=ys(()=>{t(!e)},[e,t]);return K(Tl,{...r,onClick:i,selected:e,children:K(YI,{})})}var JI=lr(Cle);function Ble(r){let{baseLayer:e,map:t}=Dr(),{setLineNetworkPlanLayer:i}=lo(),s=wr(()=>e?new qs({layersFilter:({metadata:n})=>n?.["rvf.filter"]==="netzplan_lines"||n?.["rvf.filter"]==="netzplan_stations",maplibreLayer:e,name:io.liniennetz,queryRenderedLayersFilter:({metadata:n})=>n?.["rvf.filter"]==="netzplan_trips_info",...r||{}}):null,[e,r]);return Qt(()=>{i(s)},[s,i]),Qt(()=>{if(!(!t||!s))return t.addLayer(s),()=>{t.removeLayer(s)}},[t,s]),null}var eT=lr(Ble);function Ele({children:r,onClose:e,...t}){let[i,s]=dr(),n=!!r;return Array.isArray(r)&&(n=r?.length&&(r||[]).find(l=>!!l)),Qt(()=>(i?.addEventListener("close",e),()=>{i?.removeEventListener("close",e)}),[i,e]),n?K("dialog",{className:"absolute inset-0 z-50 flex size-full items-center justify-center bg-transparent",ref:l=>{s(l),l?.focus()},...t,children:[K("button",{className:"absolute inset-0 z-0 size-full bg-black/60",onClick:e}),K("div",{className:"z-10 h-3/4 w-1/2 bg-white",children:r})]}):null}var tT=lr(Ele);function Sle({...r}){return K("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("g",{children:K("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 Gy=Sle;function Ile({children:r,className:e,onClose:t,title:i,...s}){return K("div",{className:KA("flex flex-row items-center justify-between gap-2 p-2 border-b pl-4"+(e||"")),...s,children:[r||K("span",{className:"font-bold",children:i}),t&&K(Tl,{className:"!size-[32px] border-none",onClick:t,children:K(Gy,{})})]})}var Xf=lr(Ile);function Tle(r){let{baseLayer:e,map:t}=Dr(),{setPoisLayer:i}=lo(),s=wr(()=>e?new qs({layersFilter:({metadata:n})=>n?.["mapset.filter"]==="mapset_poi",maplibreLayer:e,name:io.pois,visible:!1,...r||{}}):null,[e,r]);return Qt(()=>{i(s)},[s,i]),Qt(()=>{if(!(!t||!s))return t.addLayer(s),()=>{t.removeLayer(s)}},[t,s]),null}var rT=lr(Tle);var Fle=new ca({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});function Lle(){let{baseLayer:r}=Dr(),{selectedFeature:e}=lo(),t=wr(()=>r?.mapLibreMap,[r?.mapLibreMap]);return Qt(()=>{let i=e?.get("vectorTileFeature");e?.set("selected",!0);let s=t?.getSource(PR);if(e){let n=e.clone();if(n.setStyle(null),(i||n.get("cluster_id"))&&(t?.setFeatureState(i,{hover:!0}),n.get("cluster_id")&&(n.set("mot",n.get("features")[0].get("form_factor")),n.set("provider_name",""),n.set("num_vehicles_available",n.get("point_count"))),!n.get("disruption_type")))try{let l=Fle.writeFeatureObject(n);s?.setData(l)}catch{}}return()=>{s?.setData(DR),e?.set("selected",!1),i&&t?.setFeatureState(i,{hover:!1})}},[t,e]),null}var iT=Lle;function Mle(r){let{title:e}=r,{baseLayer:t,map:i}=Dr(),{setSellingPointsLayer:s}=lo(),n=wr(()=>t?new qs({isQueryable:!0,layersFilter:({metadata:l})=>l?.["general.filter"]==="selling_points",maplibreLayer:t,name:io.verkaufsstellen,...r||{},title:K("div",{className:"flex items-center justify-between gap-2",children:[e,K("span",{className:"flex items-center",children:[K(Dy,{}),K(ky,{}),K(Oy,{})]})]})}):null,[t,r,e]);return Qt(()=>{s(n)},[n,s]),Qt(()=>{if(!(!i||!n))return i.addLayer(n),()=>{i.removeLayer(n)}},[i,n]),null}var nT=lr(Mle);var Xi=Hn(lz());var cz='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 Az='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 sT=Xi.default.shape({circled:Xi.default.bool,height:Xi.default.number,rotation:Xi.default.oneOfType([Xi.default.number,Xi.default.func]),src:Xi.default.string,width:Xi.default.number}),Ole=typeof CanvasPattern>"u"?Function:CanvasPattern,Ule={autoDownload:Xi.default.bool,children:Xi.default.node,coordinates:Xi.default.arrayOf(Xi.default.arrayOf(Xi.default.number)),extent:Xi.default.arrayOf(Xi.default.number),extraData:Xi.default.shape({copyright:Xi.default.shape({background:Xi.default.bool,fillStyle:Xi.default.oneOfType([Xi.default.string,Xi.default.instanceOf(Ole)]),font:Xi.default.string,maxWidth:Xi.default.number,paddingBackground:Xi.default.number,paddingBottom:Xi.default.number,text:Xi.default.oneOfType([Xi.default.string,Xi.default.func])}),logo:sT,northArrow:sT,qrCode:sT}),format:Xi.default.oneOf(["image/jpeg","image/png"]),getDownloadImageName:Xi.default.func,map:Xi.default.instanceOf(qp),margin:Xi.default.number,onSaveEnd:Xi.default.func,onSaveStart:Xi.default.func,padding:Xi.default.number,scale:Xi.default.number},Nle=r=>r.width/100,Qle=r=>{let e=r==="image/jpeg"?"jpg":"png";return`${window.document.title.replace(/ /g,"_").toLowerCase()}.${e}`},Pw=!1,Dw=0,zle=(r,e,t,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),Pw=!1,l-1===8&&(Pw=!0);while(l-1>8&&r.measureText(t).width*i>e);return r.font},Hle=(r,e,t,i,s,n={})=>{r.save(),r.fillStyle="rgba(255,255,255,.8)",typeof n=="object"&&Object.entries(n).forEach(([l,u])=>{r[l]=u}),r.fillRect(e,t,i,s),r.restore()},Vle=(r,e,t,i,s,n,l)=>{let{background:u,fillStyle:d,font:y,text:v}=i.copyright,{paddingBackground:w=2,paddingBottom:S=l}=i.copyright,b=typeof v=="function"?v():v?.trim();Array.isArray(b)&&(b=b.join()),r.save(),r.scale(s,s),r.font=y||"12px Arial",r.font=zle(r,t,b,s),r.textBaseline="bottom",r.scale(s,s),r.fillStyle=d||"black";let O=b,U=r.measureText(O);if(Pw){let ae=b.split(" ").length;for(let ye=0;ye<ae&&!(U.width*s<t);ye+=1)O=O.substring(0,O.lastIndexOf(" ")),U=r.measureText(O)}let Q=b.replace(O,"").trim(),z=[O,Q].filter(ae=>!!ae).reverse(),q=n,Y=e.height-S;z.forEach(ae=>{let{fontBoundingBoxAscent:ye,fontBoundingBoxDescent:_e,width:ve}=r.measureText(ae),me=ye+_e,Be=Y-me;if(u){let ze=n;Be-=w*2,Hle(r,ze,Be,ve+w*2,me+w*2,u),q+=w,Y-=w}r.fillText(ae,q,Y),Y=Be}),Dw=Y,r.restore()},oT=(r,e,t,i,s,n=[0,0],l="right")=>{let u=e.getContext("2d"),{height:d,rotation:y,src:v,width:w}=r;return new Promise(S=>{let b=new Image;b.crossOrigin="Anonymous",b.src=v,b.onload=()=>{u.save();let O=(w||80)*t,U=(d||80)*t,Q=l==="left"?i+O/2:e.width-i-O/2,z=(l==="left"&&Dw?Dw-s:e.height)-i-U/2-n[1];if(u.translate(Q,z),y){let q=typeof y=="function"?y():y;u.rotate(q*(Math.PI/180))}u.drawImage(b,-O/2,-U/2,O,U),u.restore(),S([O+2*s,U+2*s])},b.onerror=()=>{S()}})},jle=(r,e,t)=>{let i,s;if(e?(i=Sp(e),s=Ep(e)):t&&([i,,s]=t),i&&s){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(s),u=[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]-u[1],w:d[0]-u[0],x:u[0],y:u[1]}}return null},Gle=(r,e,t,i,s,n,l)=>new Promise(u=>{r.once("rendercomplete",()=>{let d=r.getTargetElement().getElementsByTagName("canvas"),y,v;for(let S=0;S<d.length;S+=1){let b=d[S];if(!b.width||!b.height)continue;let O=jle(r,i,s)||{h:b.height,w:b.width,x:0,y:0};y||(y=document.createElement("canvas"),y.width=O.w,y.height=O.h,v=y.getContext("2d")),v.drawImage(b,O.x,O.y,O.w,O.h,0,0,y.width,y.height)}n=n||Nle(y);let w=Promise.resolve();v&&e&&e.logo&&(w=oT(e.logo,y,t,n,l)),w.then((S=[0,0])=>{let b=Promise.resolve();v&&e&&e.northArrow&&(b=oT({src:e.northArrow.circled?Az:cz,...e.northArrow},y,t,n,l,S)),b.then((O=[0,0])=>{let U=Math.max(S[0],O[0]);if(v&&e&&e.copyright&&e.copyright.text){let z=e.copyright.maxWidth||(U?v.canvas.width-U-n:v.canvas.width);Vle(v,y,z,e,t,n,l)}let Q=Promise.resolve();v&&e&&e.qrCode&&(Q=oT(e.qrCode,y,t,n,l,void 0,"left")),Q.then(()=>u(y))})})}),r.renderSync()}),qle=(r,e,t)=>new Promise(s=>{if(/msie (9|10)/gi.test(window.navigator.userAgent.toLowerCase())){let n=r.toDataURL(e);window.open("about:blank","").document.write(`<img src="${n}" alt="from canvas"/>`),s(n)}if(window.navigator.msSaveBlob){let n;try{n=r.msToBlob()}catch(u){console.log(u)}let l=new Blob([n],{type:e});s(l),window.navigator.msSaveBlob(l,t(e))}else r.toBlob(n=>{let l=document.createElement("a");l.download=t(e),l.href=URL.createObjectURL(n),document.body.appendChild(l),l.click(),s(n)},e)});function uz({autoDownload:r=!0,children:e=null,coordinates:t=null,extent:i=null,extraData:s=null,format:n="image/png",getDownloadImageName:l=Qle,map:u=null,margin:d=null,onSaveEnd:y=()=>{},onSaveStart:v=b=>Promise.resolve(b),padding:w=5,scale:S=1}){let b=ys(O=>{window.navigator.msSaveBlob&&(O.preventDefault(),O.stopPropagation()),Pw=!1,Dw=0,v(u).then(U=>Gle(U||u,s,S,i,t,d,w).then(Q=>{r?qle(Q,n,l).then(z=>{y(U,Q,z)}):y(U,Q)}).catch(Q=>{Q&&console.error(Q),y(U,Q)}))},[r,t,i,s,n,u,d,y,v,w,S,l]);return zm.createElement(zm.Fragment,null,zm.Children.map(e,O=>zm.cloneElement(O,{onClick:b})))}uz.propTypes=Ule;var aT=uz;function Kle(r){return K("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("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 lT=Kle;function Wle({...r}){return K("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:K("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 cT=Wle;function Xle({...r}){return K("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:K("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 AT=Xle;function $le(r){let[e,t]=dr(),[i,s]=dr(!1),n=rc(null),l=d=>{t(d.currentTarget.getBoundingClientRect()),navigator.clipboard.writeText(window?.location.href).then(()=>{s(!0),setTimeout(()=>{s(!1)},1e3)}),n.current.select()};return K("div",{className:"flex items-center text-grey",children:[K("input",{className:"h-7 w-full rounded-sm rounded-r-none border border-r-0 border-current p-1 leading-4 outline-none",onFocus:()=>{n.current.select()},readOnly:!0,ref:n,type:"text",...r}),K(Tl,{className:"!size-7 rounded-l-none rounded-r-sm border-current",onClick:l,children:K(AT,{})}),K("div",{className:`fixed rounded-md bg-grey p-1 text-sm text-white ${i?"block":"hidden"}`,style:{left:e?.left-30,top:e?.top-40},children:"Link kopiert!"})]})}var uT=$le;function Zle({...r}){return K("div",{...r,children:[K(uT,{value:window?.location.href}),K("p",{className:"py-2",children:"Sie k\xF6nnen auch den Link aus der Adresszeile des Browsers kopieren."})]})}var hT=Zle;function Yle({className:r,...e}){let{map:t}=Dr();return K("div",{className:KA("flex flex-col gap-6 "+r),...e,children:[K("a",{className:"flex items-center gap-2",href:`mailto:?subject=Karte&body=${window?.location.href}`,children:K(xg,{children:[K(lT,{}),K("span",{children:"Email senden"})]})}),K(aT,{map:t,children:K(xg,{className:"w-fit",children:[K(cT,{}),K("span",{children:"Bild speichern"})]})}),K(hT,{})]})}var fT=Yle;var hz='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 ece({...r}){return K("img",{alt:"Bicycle",src:hz,...r})}var kw=ece;var fz='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 rce({...r}){return K("img",{alt:"Car",src:fz,...r})}var qy=rce;var dz='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 nce({...r}){return K("img",{alt:"Cargo bike",src:dz,...r})}var Ow=nce;var pz='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 oce({...r}){return K("img",{alt:"Ride",src:pz,title:"Mitfahrpunkte",...r})}var dT=oce;var mz='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 lce({...r}){return K("img",{alt:"Scooter",src:mz,...r})}var pT=lce;var cce=(r,e=Wp)=>"https://api.mobidata-bw.de/geoserver/MobiData-BW/"+r+"/ows?service=WFS&version=1.1.0&request=GetFeature&typename=MobiData-BW:"+r+"&outputFormat=application/json&bbox="+e.toString()+",EPSG:4326",mT=async(r,e,t=Wp)=>{let i=cce(r,t),n=await(await fetch(i,{signal:e.signal})).json();return n?.features.forEach(l=>{let u=l.properties.vehicle_id;l.properties.id=u||l.properties.station_id,l.properties.provider_name=o_[l.properties.feed_id];let d=l.properties.form_factor,y=l.properties.num_vehicles_available,v=d||r.split("_").pop();v==="bicycle"?v="bike":v==="cargo_bicycle"&&(v="cargo_bike"),l.properties.vehicle_id&&(y=1),l.properties.mot=v,l.properties.num_vehicles_available=y,l.properties.display_num_vehicles_available=!0}),n};var gT=async(r,e,t)=>({features:(await mT(r,t)).features.filter(n=>e?e.includes(n.properties.feed_id):!0),type:"FeatureCollection"});function Ace(r){let{baseLayer:e,map:t}=Dr(),{setSharedMobilityLayerGroup:i}=lo(),[s,n]=dr(),[l,u]=dr(),[d,y]=dr(),[v,w]=dr(),[S,b]=dr(),[O,U]=dr(),[Q,z]=dr(),q=wr(()=>e?.mapLibreMap,[e?.mapLibreMap]),Y=ys(()=>{let ye=new AbortController,_e=Mp(t.getView().calculateExtent(),"EPSG:3857","EPSG:4326");return(async()=>{let me=await gT(KB,null,ye);n(me);let Be=await gT(GB,null,ye);u(Be);let ze=await gT(qB,null,ye);y(ze);let le=await mT(ER,ye,_e),se={features:[],type:"FeatureCollection"},Le={features:[],type:"FeatureCollection"},Ce={features:[],type:"FeatureCollection"},qe={features:[],type:"FeatureCollection"};le.features.forEach(je=>{je.properties.form_factor===UR?se.features.push(je):je.properties.form_factor===QR?Le.features.push(je):je.properties.form_factor===NR?Ce.features.push(je):je.properties.form_factor===zR&&qe.features.push(je)}),w(se),b(Le),U(Ce),z(qe)})(),()=>{ye.abort()}},[t]);Qt(()=>{let ye=t?.on("moveend",Y),_e=t?.on("change:"+Gh,me=>{me.target.get(Gh)||Y()}),ve=t?.once("rendercomplete",Y);return()=>{nn([ye,_e,ve])}},[t,Y,q]),Qt(()=>{if(!q||!s)return;q.getSource(SR)?.setData(s)},[s,q]),Qt(()=>{if(!q||!l)return;q.getSource(IR)?.setData(l)},[q,l]),Qt(()=>{if(!q||!d)return;q.getSource(TR)?.setData(d)},[q,d]),Qt(()=>{if(!q||!v)return;q.getSource(FR)?.setData(v)},[q,v]),Qt(()=>{if(!q||!S)return;q.getSource(LR)?.setData(S)},[q,S]),Qt(()=>{if(!q||!O)return;q.getSource(MR)?.setData(O)},[q,O]),Qt(()=>{if(!q||!Q)return;q.getSource(RR)?.setData(Q)},[q,Q]);let ae=wr(()=>{if(!e)return null;let ye=new qs({isQueryable:!0,maplibreLayer:e,name:io.bikeFrelo,styleLayersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="bike.frelo",title:K("div",{className:"flex items-center justify-between gap-2",children:["Frelo",K(kw,{})]})}),_e=new qs({isQueryable:!0,maplibreLayer:e,name:io.bikeOthers,styleLayersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="bike.other",title:K("div",{className:"flex items-center justify-between gap-2",children:["Fahrrad, andere Anbieter",K(kw,{})]})}),ve=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="cargo_bike.frelo",maplibreLayer:e,name:io.cargobikeFrelo,title:K("div",{className:"flex items-center justify-between gap-2",children:["Lastenfrelo",K(Ow,{})]})}),me=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="cargo_bike.other",maplibreLayer:e,name:io.cargobikeOthers,title:K("div",{className:"flex items-center justify-between gap-2",children:["Lastenrad, andere Anbieter",K(Ow,{})]})}),Be=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="car.grueneflotte",maplibreLayer:e,name:io.carGrf,title:K("div",{className:"flex items-center justify-between gap-2",children:["Gr\xFCne Flotte",K(qy,{})]})}),ze=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="car.naturenergy",maplibreLayer:e,name:io.carNatur,title:K("div",{className:"flex items-center justify-between gap-2",children:["Naturenergie-Sharing",K(qy,{})]})}),le=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="car.other",maplibreLayer:e,name:io.carOthers,title:K("div",{className:"flex items-center justify-between gap-2",children:["Auto, andere Anbieter",K(qy,{})]})}),se=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="scooter",maplibreLayer:e,name:io.eroller,title:K("div",{className:"flex items-center justify-between gap-2",children:[ns.eroller,K(pT,{})]})}),Le=new qs({isQueryable:!1,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="hitchhiking",maplibreLayer:e,name:io.mitfahrpunkte,title:K("div",{className:"flex items-center justify-between gap-2",children:[ns.mitfahrpunkte,K(dT,{})]})});return new zh({layers:[ye,_e,ve,me,Be,ze,le,se,Le],...r})},[e,r]);return Qt(()=>{let ye=window.setInterval(()=>{Y()},6e4);return()=>{window.clearInterval(ye)}},[ae,Y]),Qt(()=>{i(ae)},[ae,i]),Qt(()=>{if(!(!t||!ae))return t.addLayer(ae),()=>{t.removeLayer(ae)}},[t,ae]),null}var yT=lr(Ace);function uce({...r}){return K("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:K("path",{d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var vT=uce;function hce({...r}){let{isShareMenuOpen:e,setIsShareMenuOpen:t}=lo(),i=ys(()=>{t(!e)},[e,t]);return K(Tl,{...r,onClick:i,selected:e,children:K(vT,{})})}var _T=lr(hce);function fce(r){let{baseLayer:e,map:t}=Dr(),{setTarifZonenLayer:i}=lo(),s=wr(()=>e?new qs({isQueryable:!1,layersFilter:({metadata:n})=>n?.["rvf.filter"]==="zones",maplibreLayer:e,name:io.tarifzonen,...r||{}}):null,[e,r]);return Qt(()=>{i(s)},[s,i]),Qt(()=>{if(!(!t||!s))return t.addLayer(s),()=>{t.removeLayer(s)}},[t,s]),null}var xT=lr(fce);var gz=Bl(null),Uw=Bl(null);var yz='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">%0A <title>iconfont/minus</title>%0A <g id="iconfont/minus" stroke="%237C7C7C" fill="%237C7C7C" stroke-width="1" fill-rule="evenodd">%0A <path d="M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"></path>%0A </g>%0A</svg>';function pce(r){return K("input",{className:"peer mr-2 size-[20px] rounded-full border-2 border-grey accent-red",...r,type:"radio"})}var wT=pce;function vz({childItems:r,isCollapsedOnControlClick:e,isControlChecked:t,layer:i,selectionType:s,title:n}){let[l,u]=dr(!0),d=ic(Uw),y=_f(),v=_f();Qt(()=>{e&&u(t)},[t,e,i]);let w=()=>{u(!l),e&&!l&&d({payload:{...this.props,isControlChecked:!0},type:"SELECT_ITEM"})},S=U=>{d({payload:{...this.props,isControlChecked:U.target.checked},type:"SELECT_ITEM"})},b=r.filter(({title:U})=>!!U).map((U,Q)=>K(vz,{...U},Q));if(!n)return null;let O=()=>r.length>0?r.filter(Q=>Q.isControlChecked).length===r.length?!1:r.some(Q=>Q.isControlChecked):!1;return K("div",{children:[K("div",{className:"flex items-center gap-2 border-b py-2 pr-1",children:[s==="radio"?K(wT,{checked:t,id:y,onChange:S}):K(j1,{checked:t,checkedIconUrl:O()?yz:null,className:O()?"bg-[length:18px]":"",id:y,onChange:S}),K("label",{className:"flex-1 cursor-pointer",htmlFor:b.length>0?v:y,children:n}),b.length>0&&K("button",{className:"flex cursor-pointer items-center gap-2",id:v,onClick:w,children:l?K(hm,{}):K(zf,{})})]}),l&&b.length>0&&K("div",{className:"pl-6",children:b})]})}var _z=vz;var xz={childItems:[],parent:null},gce=r=>{let e={...xz};return e.childItems=r,wz(e.childItems,e),e},wz=(r,e)=>{for(let t of r)t.parent=e,t.childItems.length&&wz(t.childItems,t)},bz=(r,e)=>{if(r.id===e.id)return r;if(r.childItems.length)for(let t of r.childItems){let i=bz(t,e);if(i)return i}},yce=(r,e)=>{let t=bz(r,e);return t&&bT(t,e,!1),{...r}},bT=(r,e,t)=>{if(e.isControlChecked)if(e.selectionType==="checkbox")r.isControlChecked=e.isControlChecked,r.layer.setVisible(r.isControlChecked);else for(let i of r.parent.childItems)i.isControlChecked=i.id===r.id,i.isControlChecked||Cz(i);else e.selectionType==="checkbox"&&(r.isControlChecked=e.isControlChecked,r.layer.setVisible(r.isControlChecked));r.childItems.length&&!t&&CT(r),_ce(r)},CT=r=>{r.childItems[0].selectionType==="radio"?Cz(r):vce(r)},Cz=r=>{if(r.isControlChecked)for(let e=0;e<r.childItems.length;e++)r.childItems[e].isControlChecked=e===0;else for(let e of r.childItems)e.isControlChecked=!1;r.childItems.length&&r.childItems[0].childItems.length&&CT(r.childItems[0])},vce=r=>{for(let e of r.childItems)e.isControlChecked=r.isControlChecked,e.layer.setVisible(e.isControlChecked),e.childItems.length&&CT(e)},_ce=r=>{if(r.parent){if(r.parent.selectionType==="checkbox"){let e={...r.parent,isControlChecked:r.parent.childItems.some(t=>t.isControlChecked)};bT(r.parent,e,!0)}else if(r?.parent?.parent){let e={...r.parent,isControlChecked:r.parent.childItems.some(t=>t.isControlChecked)};bT(r.parent,e,!0)}}};function xce(r=xz,e){switch(e.type){case"INIT":return gce(e.payload);case"SELECT_ITEM":return yce(r,e.payload);default:return r}}var Bz=xce;function wce({layers:r,...e}){let[t,i]=Nm(Bz,r);return Qt(()=>{i({payload:r,type:"INIT"})},[r]),K(gz.Provider,{value:t,children:K(Uw.Provider,{value:i,children:K("div",{...e,children:r.map(s=>K(_z,{className:"w-full",...s},s.id))})})})}var BT=lr(wce);var Ez=r=>{let e=r;Array.isArray(e)||(e=[r]);let t=[];return e.forEach(i=>{t.push(i);let s=i.get("children")||i.getLayers?.()?.getArray();t=t.concat(Ez(s||[]))}),t},np=Ez;var Sz=(r,e)=>({childItems:r?.getLayers?.().getArray().map(t=>Sz(t,e))||[],id:dn(r),isControlChecked:r.getVisible(),layer:r,revision:e,selectionType:"checkbox",title:r.get("title")});function bce(r){let{map:e}=Dr(),[t,i]=dr(0),s=wr(()=>e?.getLayers().getArray().map(l=>Sz(l,t))||[],[e,t]);return Qt(()=>{np(e.getLayers().getArray()).forEach(l=>{l.on("change:visible",()=>{i(u=>u+1)})})},[e]),K(BT,{layers:s,...r})}var Nw=lr(bce);function Cce(r){return K("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("path",{d:"M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"})})}var ET=Cce;function Bce(r){return K("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("path",{d:"M12,4 C12.5522847,4 13,4.44771525 13,5 L13,11 L19,11 C19.5128358,11 19.9355072,11.3860402 19.9932723,11.8833789 L20,12 C20,12.5522847 19.5522847,13 19,13 L13,13 L13,19 C13,19.5128358 12.6139598,19.9355072 12.1166211,19.9932723 L12,20 C11.4477153,20 11,19.5522847 11,19 L11,13 L5,13 C4.48716416,13 4.06449284,12.6139598 4.00672773,12.1166211 L4,12 C4,11.4477153 4.44771525,11 5,11 L11,11 L11,5 C11,4.48716416 11.3860402,4.06449284 11.8833789,4.00672773 Z"})})}var ST=Bce;function Ece(){let{map:r}=Dr(),[e,t]=dr(!1),[i,s]=dr(!1),n=ys(()=>{if(!r?.getView())return;let u=r.getView(),d=u.getZoom();u.setZoom(d+1)},[r]),l=ys(()=>{if(!r?.getView())return;let u=r.getView(),d=u.getZoom();u.setZoom(d-1)},[r]);return Qt(()=>{let u=r?.on("moveend",()=>{let d=r.getView(),y=d.getZoom(),v=d.getMaxZoom(),w=d.getMinZoom();v&&y===Number(v)?t(!0):t(!1),w&&y===Number(w)?s(!0):s(!1)});return()=>{nn(u)}},[r]),K(Mi,{children:[K(Tl,{disabled:e,Icon:ST,onClick:n}),K(Tl,{disabled:i,Icon:ET,onClick:l})]})}var IT=lr(Ece);var Iz=`.ol-scale-line {
|
|
1299
|
+
`,Rw=async r=>{let e=new ip(mle,{method:"POST"}),{station:t}=await e.request(gle,{__operation:"station",id:r}).catch(i=>(console.error("Error fetching sharing station:",i),{station:null}));return t};function yle({feature:r}){let[e,t]=dr(null),i=wr(()=>Uy(r),[r]);Qt(()=>{r.get("station_id")&&(async()=>{let u=await Rw(r.get("station_id"));t(u)})()},[r]);let s=r.get("num_vehicles_available")>0;return K("div",{className:"flex flex-1 flex-col gap-2",children:[K("div",{className:"flex flex-1 flex-col gap-2 ",children:[K("div",{children:[r.get("num_vehicles_available")||0," Fahrzeuge"]}),s&&e?.vehicleTypesAvailable?.length&&K("div",{className:"flex flex-1 flex-col",children:[K("div",{className:"text-grey",children:"Fahrzeug mieten"}),K("ul",{className:"list-disc pl-4",children:e?.vehicleTypesAvailable?.map(({count:n,vehicleType:{id:l,name:u,vehicleImage:d}})=>K("li",{children:K("div",{className:"flex items-center gap-2",children:[K("span",{children:`${n} x ${u.translation[0].value}`}),d&&K("img",{alt:"vehicle",className:"w-12",src:d})]})},l))})]})]}),e?.vehicleTypesAvailable?.length>0&&i&&K("div",{children:K(t0,{href:i,children:"Jetzt buchen"})})]})}var WI=yle;function vle({selectedFeature:r}){let[e,t]=dr([]),i=!!r.get("station_id"),s=!!r.get("vehicle_id"),n=!!r.get("cluster_id");Qt(()=>{t(n?r.get("features"):[r])},[r,s,n]);let l=wr(()=>{let u={};return i?null:(e.forEach(d=>{let y=d.get("feed_id");u[y]?u[y].push(d):u[y]=[d]}),u)},[e,i]);return K(Mi,{children:[i&&K(Mi,{children:[K("img",{alt:"logo",className:"max-w-24",src:k1[e[0]?.get("feed_id")]}),e.length&&i&&K(WI,{feature:e[0]})]}),(s||n)&&l&&Object.entries(l).map(([u,d])=>K(Mi,{children:[K("img",{alt:"logo",className:"max-w-24",src:k1[d[0]?.get("feed_id")]}),K(PI,{features:d})]},u))]})}var XI=vle;var _le=r=>{if(r.get("station_id")||r.get("vehicle_id")||r.get("cluster_id"))return!0};function xle(r){let{selectedFeature:e,selectedFeatures:t}=lo(),i=_le(e),s=!!e.get("tickets"),n=!!e.get("disruption_type"),l=!!e.get("original_line_id");return K("div",{...r,children:[s&&K(MI,{feature:e}),i&&K(XI,{selectedFeature:e}),n&&K(LI,{feature:e}),l&&K(wQ,{feature:e,features:t}),!l&&!n&&!i&&!s&&Object.entries(e.getProperties()).map(([d,y])=>K("div",{className:"flex gap-2",children:[K("span",{children:K("b",{children:[d,":"]})}),K("div",{children:y})]},d))]})}var $I=lr(xle);function wle({children:r,isOpen:e,onClick:t,title:i}){let{map:s}=Dr();return s?K("div",{className:"pointer-events-none absolute bottom-8 left-2 top-2 z-10 flex flex-col overflow-hidden rounded-lg",children:K("div",{className:"pointer-events-auto max-h-full w-48 rounded-lg border border-grey bg-white shadow-lg @lg/main:w-52",children:[K("button",{className:"flex w-full items-center justify-between px-2 py-1.5 font-bold",onClick:t,children:[i," ",e?K(zf,{}):K(hm,{})]}),!e&&K("div",{className:"flex h-[calc(100%-39px)] w-full flex-1 flex-col overflow-y-auto",children:r})]})}):null}var ZI=wle;function ble({...r}){return K("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:K("path",{d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3",strokeLinecap:"round",strokeLinejoin:"round"})})}var YI=ble;function Cle({...r}){let{isLayerTreeOpen:e,setIsLayerTreeOpen:t}=lo(),i=ys(()=>{t(!e)},[e,t]);return K(Tl,{...r,onClick:i,selected:e,children:K(YI,{})})}var JI=lr(Cle);function Ble(r){let{baseLayer:e,map:t}=Dr(),{setLineNetworkPlanLayer:i}=lo(),s=wr(()=>e?new qs({layersFilter:({metadata:n})=>n?.["rvf.filter"]==="netzplan_lines"||n?.["rvf.filter"]==="netzplan_stations",maplibreLayer:e,name:io.liniennetz,queryRenderedLayersFilter:({metadata:n})=>n?.["rvf.filter"]==="netzplan_trips_info",...r||{}}):null,[e,r]);return Qt(()=>{i(s)},[s,i]),Qt(()=>{if(!(!t||!s))return t.addLayer(s),()=>{t.removeLayer(s)}},[t,s]),null}var eT=lr(Ble);function Ele({children:r,onClose:e,...t}){let[i,s]=dr(),n=!!r;return Array.isArray(r)&&(n=r?.length&&(r||[]).find(l=>!!l)),Qt(()=>(i?.addEventListener("close",e),()=>{i?.removeEventListener("close",e)}),[i,e]),n?K("dialog",{className:"absolute inset-0 z-50 flex size-full items-center justify-center bg-transparent",ref:l=>{s(l),l?.focus()},...t,children:[K("button",{className:"absolute inset-0 z-0 size-full bg-black/60",onClick:e}),K("div",{className:"z-10 h-3/4 w-1/2 bg-white",children:r})]}):null}var tT=lr(Ele);function Sle({...r}){return K("svg",{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("g",{children:K("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 Gy=Sle;function Ile({children:r,className:e,onClose:t,title:i,...s}){return K("div",{className:KA("flex flex-row items-center justify-between gap-2 p-2 border-b pl-4"+(e||"")),...s,children:[r||K("span",{className:"font-bold",children:i}),t&&K(Tl,{className:"!size-[32px] border-none",onClick:t,children:K(Gy,{})})]})}var Xf=lr(Ile);function Tle(r){let{baseLayer:e,map:t}=Dr(),{setPoisLayer:i}=lo(),s=wr(()=>e?new qs({layersFilter:({metadata:n})=>n?.["mapset.filter"]==="mapset_poi",maplibreLayer:e,name:io.pois,visible:!1,...r||{}}):null,[e,r]);return Qt(()=>{i(s)},[s,i]),Qt(()=>{if(!(!t||!s))return t.addLayer(s),()=>{t.removeLayer(s)}},[t,s]),null}var rT=lr(Tle);var Fle=new ca({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});function Lle(){let{baseLayer:r}=Dr(),{selectedFeature:e}=lo(),t=wr(()=>r?.mapLibreMap,[r?.mapLibreMap]);return Qt(()=>{let i=e?.get("vectorTileFeature");e?.set("selected",!0);let s=t?.getSource(PR);if(e){let n=e.clone();if(n.setStyle(null),(i||n.get("cluster_id"))&&(t?.setFeatureState(i,{hover:!0}),n.get("cluster_id")&&(n.set("mot",n.get("features")[0].get("form_factor")),n.set("provider_name",""),n.set("num_vehicles_available",n.get("point_count"))),!n.get("disruption_type")))try{let l=Fle.writeFeatureObject(n);s?.setData(l)}catch{}}return()=>{s?.setData(DR),e?.set("selected",!1),i&&t?.setFeatureState(i,{hover:!1})}},[t,e]),null}var iT=Lle;function Mle(r){let{title:e}=r,{baseLayer:t,map:i}=Dr(),{setSellingPointsLayer:s}=lo(),n=wr(()=>t?new qs({isQueryable:!0,layersFilter:({metadata:l})=>l?.["general.filter"]==="selling_points",maplibreLayer:t,name:io.verkaufsstellen,...r||{},title:K("div",{className:"flex items-center justify-between gap-2",children:[e,K("span",{className:"flex items-center",children:[K(Dy,{}),K(ky,{}),K(Oy,{})]})]})}):null,[t,r,e]);return Qt(()=>{s(n)},[n,s]),Qt(()=>{if(!(!i||!n))return i.addLayer(n),()=>{i.removeLayer(n)}},[i,n]),null}var nT=lr(Mle);var Xi=Hn(lz());var cz='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 Az='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 sT=Xi.default.shape({circled:Xi.default.bool,height:Xi.default.number,rotation:Xi.default.oneOfType([Xi.default.number,Xi.default.func]),src:Xi.default.string,width:Xi.default.number}),Ole=typeof CanvasPattern>"u"?Function:CanvasPattern,Ule={autoDownload:Xi.default.bool,children:Xi.default.node,coordinates:Xi.default.arrayOf(Xi.default.arrayOf(Xi.default.number)),extent:Xi.default.arrayOf(Xi.default.number),extraData:Xi.default.shape({copyright:Xi.default.shape({background:Xi.default.bool,fillStyle:Xi.default.oneOfType([Xi.default.string,Xi.default.instanceOf(Ole)]),font:Xi.default.string,maxWidth:Xi.default.number,paddingBackground:Xi.default.number,paddingBottom:Xi.default.number,text:Xi.default.oneOfType([Xi.default.string,Xi.default.func])}),logo:sT,northArrow:sT,qrCode:sT}),format:Xi.default.oneOf(["image/jpeg","image/png"]),getDownloadImageName:Xi.default.func,map:Xi.default.instanceOf(qp),margin:Xi.default.number,onSaveEnd:Xi.default.func,onSaveStart:Xi.default.func,padding:Xi.default.number,scale:Xi.default.number},Nle=r=>r.width/100,Qle=r=>{let e=r==="image/jpeg"?"jpg":"png";return`${window.document.title.replace(/ /g,"_").toLowerCase()}.${e}`},Pw=!1,Dw=0,zle=(r,e,t,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),Pw=!1,l-1===8&&(Pw=!0);while(l-1>8&&r.measureText(t).width*i>e);return r.font},Hle=(r,e,t,i,s,n={})=>{r.save(),r.fillStyle="rgba(255,255,255,.8)",typeof n=="object"&&Object.entries(n).forEach(([l,u])=>{r[l]=u}),r.fillRect(e,t,i,s),r.restore()},Vle=(r,e,t,i,s,n,l)=>{let{background:u,fillStyle:d,font:y,text:v}=i.copyright,{paddingBackground:w=2,paddingBottom:S=l}=i.copyright,b=typeof v=="function"?v():v?.trim();Array.isArray(b)&&(b=b.join()),r.save(),r.scale(s,s),r.font=y||"12px Arial",r.font=zle(r,t,b,s),r.textBaseline="bottom",r.scale(s,s),r.fillStyle=d||"black";let O=b,U=r.measureText(O);if(Pw){let ae=b.split(" ").length;for(let ye=0;ye<ae&&!(U.width*s<t);ye+=1)O=O.substring(0,O.lastIndexOf(" ")),U=r.measureText(O)}let Q=b.replace(O,"").trim(),z=[O,Q].filter(ae=>!!ae).reverse(),q=n,Y=e.height-S;z.forEach(ae=>{let{fontBoundingBoxAscent:ye,fontBoundingBoxDescent:_e,width:ve}=r.measureText(ae),me=ye+_e,Be=Y-me;if(u){let ze=n;Be-=w*2,Hle(r,ze,Be,ve+w*2,me+w*2,u),q+=w,Y-=w}r.fillText(ae,q,Y),Y=Be}),Dw=Y,r.restore()},oT=(r,e,t,i,s,n=[0,0],l="right")=>{let u=e.getContext("2d"),{height:d,rotation:y,src:v,width:w}=r;return new Promise(S=>{let b=new Image;b.crossOrigin="Anonymous",b.src=v,b.onload=()=>{u.save();let O=(w||80)*t,U=(d||80)*t,Q=l==="left"?i+O/2:e.width-i-O/2,z=(l==="left"&&Dw?Dw-s:e.height)-i-U/2-n[1];if(u.translate(Q,z),y){let q=typeof y=="function"?y():y;u.rotate(q*(Math.PI/180))}u.drawImage(b,-O/2,-U/2,O,U),u.restore(),S([O+2*s,U+2*s])},b.onerror=()=>{S()}})},jle=(r,e,t)=>{let i,s;if(e?(i=Sp(e),s=Ep(e)):t&&([i,,s]=t),i&&s){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(s),u=[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]-u[1],w:d[0]-u[0],x:u[0],y:u[1]}}return null},Gle=(r,e,t,i,s,n,l)=>new Promise(u=>{r.once("rendercomplete",()=>{let d=r.getTargetElement().getElementsByTagName("canvas"),y,v;for(let S=0;S<d.length;S+=1){let b=d[S];if(!b.width||!b.height)continue;let O=jle(r,i,s)||{h:b.height,w:b.width,x:0,y:0};y||(y=document.createElement("canvas"),y.width=O.w,y.height=O.h,v=y.getContext("2d")),v.drawImage(b,O.x,O.y,O.w,O.h,0,0,y.width,y.height)}n=n||Nle(y);let w=Promise.resolve();v&&e&&e.logo&&(w=oT(e.logo,y,t,n,l)),w.then((S=[0,0])=>{let b=Promise.resolve();v&&e&&e.northArrow&&(b=oT({src:e.northArrow.circled?Az:cz,...e.northArrow},y,t,n,l,S)),b.then((O=[0,0])=>{let U=Math.max(S[0],O[0]);if(v&&e&&e.copyright&&e.copyright.text){let z=e.copyright.maxWidth||(U?v.canvas.width-U-n:v.canvas.width);Vle(v,y,z,e,t,n,l)}let Q=Promise.resolve();v&&e&&e.qrCode&&(Q=oT(e.qrCode,y,t,n,l,void 0,"left")),Q.then(()=>u(y))})})}),r.renderSync()}),qle=(r,e,t)=>new Promise(s=>{if(/msie (9|10)/gi.test(window.navigator.userAgent.toLowerCase())){let n=r.toDataURL(e);window.open("about:blank","").document.write(`<img src="${n}" alt="from canvas"/>`),s(n)}if(window.navigator.msSaveBlob){let n;try{n=r.msToBlob()}catch(u){console.log(u)}let l=new Blob([n],{type:e});s(l),window.navigator.msSaveBlob(l,t(e))}else r.toBlob(n=>{let l=document.createElement("a");l.download=t(e),l.href=URL.createObjectURL(n),document.body.appendChild(l),l.click(),s(n)},e)});function uz({autoDownload:r=!0,children:e=null,coordinates:t=null,extent:i=null,extraData:s=null,format:n="image/png",getDownloadImageName:l=Qle,map:u=null,margin:d=null,onSaveEnd:y=()=>{},onSaveStart:v=b=>Promise.resolve(b),padding:w=5,scale:S=1}){let b=ys(O=>{window.navigator.msSaveBlob&&(O.preventDefault(),O.stopPropagation()),Pw=!1,Dw=0,v(u).then(U=>Gle(U||u,s,S,i,t,d,w).then(Q=>{r?qle(Q,n,l).then(z=>{y(U,Q,z)}):y(U,Q)}).catch(Q=>{Q&&console.error(Q),y(U,Q)}))},[r,t,i,s,n,u,d,y,v,w,S,l]);return zm.createElement(zm.Fragment,null,zm.Children.map(e,O=>zm.cloneElement(O,{onClick:b})))}uz.propTypes=Ule;var aT=uz;function Kle(r){return K("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("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 lT=Kle;function Wle({...r}){return K("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:K("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 cT=Wle;function Xle({...r}){return K("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:K("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 AT=Xle;function $le(r){let[e,t]=dr(),[i,s]=dr(!1),n=rc(null),l=d=>{t(d.currentTarget.getBoundingClientRect()),navigator.clipboard.writeText(window?.location.href).then(()=>{s(!0),setTimeout(()=>{s(!1)},1e3)}),n.current.select()};return K("div",{className:"flex items-center text-grey",children:[K("input",{className:"h-7 w-full rounded-sm rounded-r-none border border-r-0 border-current p-1 leading-4 outline-none",onFocus:()=>{n.current.select()},readOnly:!0,ref:n,type:"text",...r}),K(Tl,{className:"!size-7 rounded-l-none rounded-r-sm border-current",onClick:l,children:K(AT,{})}),K("div",{className:`fixed rounded-md bg-grey p-1 text-sm text-white ${i?"block":"hidden"}`,style:{left:e?.left-30,top:e?.top-40},children:"Link kopiert!"})]})}var uT=$le;function Zle({...r}){return K("div",{...r,children:[K(uT,{value:window?.location.href}),K("p",{className:"py-2",children:"Sie k\xF6nnen auch den Link aus der Adresszeile des Browsers kopieren."})]})}var hT=Zle;function Yle({className:r,...e}){let{map:t}=Dr();return K("div",{className:KA("flex flex-col gap-6 "+r),...e,children:[K("a",{className:"flex items-center gap-2",href:`mailto:?subject=Karte&body=${window?.location.href}`,children:K(xg,{children:[K(lT,{}),K("span",{children:"Email senden"})]})}),K(aT,{map:t,children:K(xg,{className:"w-fit",children:[K(cT,{}),K("span",{children:"Bild speichern"})]})}),K(hT,{})]})}var fT=Yle;var hz='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 ece({...r}){return K("img",{alt:"Bicycle",src:hz,...r})}var kw=ece;var fz='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 rce({...r}){return K("img",{alt:"Car",src:fz,...r})}var qy=rce;var dz='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 nce({...r}){return K("img",{alt:"Cargo bike",src:dz,...r})}var Ow=nce;var pz='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 oce({...r}){return K("img",{alt:"Ride",src:pz,title:"Mitfahrpunkte",...r})}var dT=oce;var mz='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 lce({...r}){return K("img",{alt:"Scooter",src:mz,...r})}var pT=lce;var cce=(r,e=Wp)=>"https://api.mobidata-bw.de/geoserver/MobiData-BW/"+r+"/ows?service=WFS&version=1.1.0&request=GetFeature&typename=MobiData-BW:"+r+"&outputFormat=application/json&bbox="+e.toString()+",EPSG:4326",mT=async(r,e,t=Wp)=>{let i=cce(r,t),n=await(await fetch(i,{signal:e.signal})).json();return n?.features.forEach(l=>{let u=l.properties.vehicle_id;l.properties.id=u||l.properties.station_id,l.properties.provider_name=o_[l.properties.feed_id];let d=l.properties.form_factor,y=l.properties.num_vehicles_available,v=d||r.split("_").pop();v==="bicycle"?v="bike":v==="cargo_bicycle"&&(v="cargo_bike"),l.properties.vehicle_id&&(y=1),l.properties.mot=v,l.properties.num_vehicles_available=y,l.properties.display_num_vehicles_available=!0}),n};var gT=async(r,e,t)=>({features:(await mT(r,t)).features.filter(n=>e?e.includes(n.properties.feed_id):!0),type:"FeatureCollection"});function Ace(r){let{baseLayer:e,map:t}=Dr(),{setSharedMobilityLayerGroup:i}=lo(),[s,n]=dr(),[l,u]=dr(),[d,y]=dr(),[v,w]=dr(),[S,b]=dr(),[O,U]=dr(),[Q,z]=dr(),q=wr(()=>e?.mapLibreMap,[e?.mapLibreMap]),Y=ys(()=>{let ye=new AbortController,_e=Mp(t.getView().calculateExtent(),"EPSG:3857","EPSG:4326");return(async()=>{let me=await gT(KB,null,ye);n(me);let Be=await gT(GB,null,ye);u(Be);let ze=await gT(qB,null,ye);y(ze);let le=await mT(ER,ye,_e),se={features:[],type:"FeatureCollection"},Le={features:[],type:"FeatureCollection"},Ce={features:[],type:"FeatureCollection"},qe={features:[],type:"FeatureCollection"};le.features.forEach(je=>{je.properties.form_factor===UR?se.features.push(je):je.properties.form_factor===QR?Le.features.push(je):je.properties.form_factor===NR?Ce.features.push(je):je.properties.form_factor===zR&&qe.features.push(je)}),w(se),b(Le),U(Ce),z(qe)})(),()=>{ye.abort()}},[t]);Qt(()=>{let ye=t?.on("moveend",Y),_e=t?.on("change:"+Gh,me=>{me.target.get(Gh)||Y()}),ve=t?.once("rendercomplete",Y);return()=>{nn([ye,_e,ve])}},[t,Y,q]),Qt(()=>{if(!q||!s)return;q.getSource(SR)?.setData(s)},[s,q]),Qt(()=>{if(!q||!l)return;q.getSource(IR)?.setData(l)},[q,l]),Qt(()=>{if(!q||!d)return;q.getSource(TR)?.setData(d)},[q,d]),Qt(()=>{if(!q||!v)return;q.getSource(FR)?.setData(v)},[q,v]),Qt(()=>{if(!q||!S)return;q.getSource(LR)?.setData(S)},[q,S]),Qt(()=>{if(!q||!O)return;q.getSource(MR)?.setData(O)},[q,O]),Qt(()=>{if(!q||!Q)return;q.getSource(RR)?.setData(Q)},[q,Q]);let ae=wr(()=>{if(!e)return null;let ye=new qs({isQueryable:!0,maplibreLayer:e,name:io.bikeFrelo,styleLayersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="bike.frelo",title:K("div",{className:"flex items-center justify-between gap-2",children:["Frelo",K(kw,{})]})}),_e=new qs({isQueryable:!0,maplibreLayer:e,name:io.bikeOthers,styleLayersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="bike.other",title:K("div",{className:"flex items-center justify-between gap-2",children:["Fahrrad, andere Anbieter",K(kw,{})]})}),ve=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="cargo_bike.frelo",maplibreLayer:e,name:io.cargobikeFrelo,title:K("div",{className:"flex items-center justify-between gap-2",children:["Lastenfrelo",K(Ow,{})]})}),me=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="cargo_bike.other",maplibreLayer:e,name:io.cargobikeOthers,title:K("div",{className:"flex items-center justify-between gap-2",children:["Lastenrad, andere Anbieter",K(Ow,{})]})}),Be=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="car.grueneflotte",maplibreLayer:e,name:io.carGrf,title:K("div",{className:"flex items-center justify-between gap-2",children:["Gr\xFCne Flotte",K(qy,{})]})}),ze=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="car.naturenergy",maplibreLayer:e,name:io.carNatur,title:K("div",{className:"flex items-center justify-between gap-2",children:["Naturenergie-Sharing",K(qy,{})]})}),le=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="car.other",maplibreLayer:e,name:io.carOthers,title:K("div",{className:"flex items-center justify-between gap-2",children:["Auto, andere Anbieter",K(qy,{})]})}),se=new qs({isQueryable:!0,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="scooter",maplibreLayer:e,name:io.eroller,title:K("div",{className:"flex items-center justify-between gap-2",children:[ns.eroller,K(pT,{})]})}),Le=new qs({isQueryable:!1,layersFilter:({metadata:Ce})=>Ce?.["rvf.filter"]==="hitchhiking",maplibreLayer:e,name:io.mitfahrpunkte,title:K("div",{className:"flex items-center justify-between gap-2",children:[ns.mitfahrpunkte,K(dT,{})]})});return new zh({layers:[ye,_e,ve,me,Be,ze,le,se,Le],...r})},[e,r]);return Qt(()=>{let ye=window.setInterval(()=>{Y()},6e4);return()=>{window.clearInterval(ye)}},[ae,Y]),Qt(()=>{i(ae)},[ae,i]),Qt(()=>{if(!(!t||!ae))return t.addLayer(ae),()=>{t.removeLayer(ae)}},[t,ae]),null}var yT=lr(Ace);function uce({...r}){return K("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:K("path",{d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var vT=uce;function hce({...r}){let{isShareMenuOpen:e,setIsShareMenuOpen:t}=lo(),i=ys(()=>{t(!e)},[e,t]);return K(Tl,{...r,onClick:i,selected:e,children:K(vT,{})})}var _T=lr(hce);function fce(r){let{baseLayer:e,map:t}=Dr(),{setTarifZonenLayer:i}=lo(),s=wr(()=>e?new qs({isQueryable:!1,layersFilter:({metadata:n})=>n?.["rvf.filter"]==="zones",maplibreLayer:e,name:io.tarifzonen,...r||{}}):null,[e,r]);return Qt(()=>{i(s)},[s,i]),Qt(()=>{if(!(!t||!s))return t.addLayer(s),()=>{t.removeLayer(s)}},[t,s]),null}var xT=lr(fce);var gz=Bl(null),Uw=Bl(null);var yz='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">%0A <title>iconfont/minus</title>%0A <g id="iconfont/minus" stroke="%237C7C7C" fill="%237C7C7C" stroke-width="1" fill-rule="evenodd">%0A <path d="M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"></path>%0A </g>%0A</svg>';function pce(r){return K("input",{className:"peer mr-2 size-[20px] rounded-full border-2 border-grey accent-red",...r,type:"radio"})}var wT=pce;function vz({childItems:r,isCollapsedOnControlClick:e,isControlChecked:t,layer:i,selectionType:s,title:n}){let[l,u]=dr(!0),d=ic(Uw),y=_f(),v=_f();Qt(()=>{e&&u(t)},[t,e,i]);let w=()=>{u(!l),e&&!l&&d({payload:{...this.props,isControlChecked:!0},type:"SELECT_ITEM"})},S=U=>{d({payload:{...this.props,isControlChecked:U.target.checked},type:"SELECT_ITEM"})},b=r.filter(({title:U})=>!!U).map((U,Q)=>K(vz,{...U},Q));if(!n)return null;let O=()=>r.length>0?r.filter(Q=>Q.isControlChecked).length===r.length?!1:r.some(Q=>Q.isControlChecked):!1;return K("div",{children:[K("div",{className:"flex items-center gap-2 border-b py-2 pr-1",children:[s==="radio"?K(wT,{checked:t,id:y,onChange:S}):K(j1,{checked:t,checkedIconUrl:O()?yz:null,className:O()?"bg-[length:18px]":"",id:y,onChange:S}),K("label",{className:"flex-1 cursor-pointer",htmlFor:b.length>0?v:y,children:n}),b.length>0&&K("button",{className:"flex cursor-pointer items-center gap-2",id:v,onClick:w,children:l?K(hm,{}):K(zf,{})})]}),l&&b.length>0&&K("div",{className:"pl-6",children:b})]})}var _z=vz;var xz={childItems:[],parent:null},gce=r=>{let e={...xz};return e.childItems=r,wz(e.childItems,e),e},wz=(r,e)=>{for(let t of r)t.parent=e,t.childItems.length&&wz(t.childItems,t)},bz=(r,e)=>{if(r.id===e.id)return r;if(r.childItems.length)for(let t of r.childItems){let i=bz(t,e);if(i)return i}},yce=(r,e)=>{let t=bz(r,e);return t&&bT(t,e,!1),{...r}},bT=(r,e,t)=>{if(e.isControlChecked)if(e.selectionType==="checkbox")r.isControlChecked=e.isControlChecked,r.layer.setVisible(r.isControlChecked);else for(let i of r.parent.childItems)i.isControlChecked=i.id===r.id,i.isControlChecked||Cz(i);else e.selectionType==="checkbox"&&(r.isControlChecked=e.isControlChecked,r.layer.setVisible(r.isControlChecked));r.childItems.length&&!t&&CT(r),_ce(r)},CT=r=>{r.childItems[0].selectionType==="radio"?Cz(r):vce(r)},Cz=r=>{if(r.isControlChecked)for(let e=0;e<r.childItems.length;e++)r.childItems[e].isControlChecked=e===0;else for(let e of r.childItems)e.isControlChecked=!1;r.childItems.length&&r.childItems[0].childItems.length&&CT(r.childItems[0])},vce=r=>{for(let e of r.childItems)e.isControlChecked=r.isControlChecked,e.layer.setVisible(e.isControlChecked),e.childItems.length&&CT(e)},_ce=r=>{if(r.parent){if(r.parent.selectionType==="checkbox"){let e={...r.parent,isControlChecked:r.parent.childItems.some(t=>t.isControlChecked)};bT(r.parent,e,!0)}else if(r?.parent?.parent){let e={...r.parent,isControlChecked:r.parent.childItems.some(t=>t.isControlChecked)};bT(r.parent,e,!0)}}};function xce(r=xz,e){switch(e.type){case"INIT":return gce(e.payload);case"SELECT_ITEM":return yce(r,e.payload);default:return r}}var Bz=xce;function wce({layers:r,...e}){let[t,i]=Nm(Bz,r);return Qt(()=>{i({payload:r,type:"INIT"})},[r]),K(gz.Provider,{value:t,children:K(Uw.Provider,{value:i,children:K("div",{...e,children:r.map(s=>K(_z,{className:"w-full",...s},s.id))})})})}var BT=lr(wce);var Ez=r=>{let e=r;Array.isArray(e)||(e=[r]);let t=[];return e.forEach(i=>{t.push(i);let s=i.get("children")||i.getLayers?.()?.getArray();t=t.concat(Ez(s||[]))}),t},np=Ez;var Sz=(r,e)=>({childItems:r?.getLayers?.().getArray().map(t=>Sz(t,e))||[],id:dn(r),isControlChecked:r.getVisible(),layer:r,revision:e,selectionType:"checkbox",title:r.get("title")});function bce(r){let{map:e}=Dr(),[t,i]=dr(0),s=wr(()=>e?.getLayers().getArray().map(l=>Sz(l,t))||[],[e,t]);return Qt(()=>{np(e.getLayers().getArray()).forEach(l=>{l.on("change:visible",()=>{i(u=>u+1)})})},[e]),K(BT,{layers:s,...r})}var Nw=lr(bce);function Cce(r){return K("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("path",{d:"M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"})})}var ET=Cce;function Bce(r){return K("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:K("path",{d:"M12,4 C12.5522847,4 13,4.44771525 13,5 L13,11 L19,11 C19.5128358,11 19.9355072,11.3860402 19.9932723,11.8833789 L20,12 C20,12.5522847 19.5522847,13 19,13 L13,13 L13,19 C13,19.5128358 12.6139598,19.9355072 12.1166211,19.9932723 L12,20 C11.4477153,20 11,19.5522847 11,19 L11,13 L5,13 C4.48716416,13 4.06449284,12.6139598 4.00672773,12.1166211 L4,12 C4,11.4477153 4.44771525,11 5,11 L11,11 L11,5 C11,4.48716416 11.3860402,4.06449284 11.8833789,4.00672773 Z"})})}var ST=Bce;function Ece(){let{map:r}=Dr(),[e,t]=dr(!1),[i,s]=dr(!1),n=ys(()=>{if(!r?.getView())return;let u=r.getView(),d=u.getZoom();u.setZoom(d+1)},[r]),l=ys(()=>{if(!r?.getView())return;let u=r.getView(),d=u.getZoom();u.setZoom(d-1)},[r]);return Qt(()=>{let u=r?.on("moveend",()=>{let d=r.getView(),y=d.getZoom(),v=d.getMaxZoom(),w=d.getMinZoom();v&&y===Number(v)?t(!0):t(!1),w&&y===Number(w)?s(!0):s(!1)});return()=>{nn(u)}},[r]),K(Mi,{children:[K(Tl,{disabled:e,Icon:ST,onClick:n}),K(Tl,{disabled:i,Icon:ET,onClick:l})]})}var IT=lr(Ece);var Iz=`.ol-scale-line {
|
|
1300
1300
|
position:relative;
|
|
1301
1301
|
left: unset;
|
|
1302
1302
|
bottom: unset;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@geops/rvf-mobility-web-component",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
4
|
"description": "Web components for rvf in the domains of mobility and logistics.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.43",
|
|
6
6
|
"homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "index.js",
|
|
@@ -248,7 +248,7 @@ const queryStations = gql`
|
|
|
248
248
|
|
|
249
249
|
export const fetchSharingStation = async (id: string) => {
|
|
250
250
|
const client = new GraphQLClient(GQL_URL, {
|
|
251
|
-
method: "
|
|
251
|
+
method: "POST",
|
|
252
252
|
});
|
|
253
253
|
const { station }: { station: unknown } = await client
|
|
254
254
|
.request(queryStation, {
|
|
@@ -271,7 +271,7 @@ export const fetchSharingStations = async (
|
|
|
271
271
|
const client = new GraphQLClient(
|
|
272
272
|
"https://api.mobidata-bw.de/sharing/graphql",
|
|
273
273
|
{
|
|
274
|
-
method: "
|
|
274
|
+
method: "POST",
|
|
275
275
|
signal: abortController.signal,
|
|
276
276
|
},
|
|
277
277
|
);
|