=o.localMax))break;return h.sort((m,w)=>{const A=m.properties.__pplr_local,C=w.properties.__pplr_local,G=(A==null?void 0:A.depth)??99,E=(C==null?void 0:C.depth)??99;if(G!==E)return G-E;const J=m.place_name.toLowerCase().startsWith(k)?0:1,te=w.place_name.toLowerCase().startsWith(k)?0:1;return J!==te?J-te:((C==null?void 0:C.pop)||0)-((A==null?void 0:A.pop)||0)||((C==null?void 0:C.count)||0)-((A==null?void 0:A.count)||0)}),h}}function g(T){var C,G;const k=((C=T==null?void 0:T.properties)==null?void 0:C.__pplr_kind)||"",h=(G=T==null?void 0:T.properties)==null?void 0:G.__pplr_local,m=(h==null?void 0:h.color)||"",w=m?``:"",A=k?`${vt(k)}`:"";return`
- ${w}${vt(T.place_name)}${A}
-
`}const _=(An[l]||An.mapbox).css;function v(T){if(!T||T===document||T.querySelector("link[data-pplr-geocoder-css]"))return;const k=document.createElement("link");k.rel="stylesheet",k.href=_,k.setAttribute("data-pplr-geocoder-css","1"),T.prepend(k)}function R(){try{if(d){if(!window.MaplibreGeocoder||!window.maplibregl){console.warn("[MapboxGeocoder] maplibre-gl-geocoder or maplibre-gl not on window — search disabled");return}i=new window.MaplibreGeocoder({forwardGeocode:async()=>({type:"FeatureCollection",features:[]})},{maplibregl:window.maplibregl,placeholder:o.placeholder,localGeocoder:u(),localGeocoderOnly:!0,minLength:o.minChars,showResultsWhileTyping:!0,render:g})}else{if(!window.MapboxGeocoder||!Ta("mapbox")){console.warn("[MapboxGeocoder] mapbox-gl-geocoder or mapbox-gl not on window — check CDN
-
+