@maptiler/geocoding-control 0.0.99-rc1 → 0.0.99-rc2

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/README.md CHANGED
@@ -319,7 +319,7 @@ In addition to using the component as MapLibre GL JS, Leaflet or OpenLayers cont
319
319
 
320
320
  Component API matches API described above where options and events are exposed as component properties and methods are callable on the component reference.
321
321
 
322
- Remember to import files from `@maptiler/geocoding-control/svelte/...`.
322
+ Remember to import files from `@maptiler/geocoding-control/svelte/...`. Also dependencies `@turf/union`, `@turf/buffer` and `@turf/difference` must be manually installed.
323
323
 
324
324
  ### Example for integration with MapLibre GL JS
325
325
 
package/leaflet.js CHANGED
@@ -1420,7 +1420,7 @@ function Ea(r) {
1420
1420
  return t[2] < t[0] && (t[2] += 360), t;
1421
1421
  }
1422
1422
  function hc(r, t, e) {
1423
- let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: _ = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: rr = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: ze = {} } = t, { iconsBaseUrl: Fn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc1/icons/" } = t;
1423
+ let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: _ = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: rr = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: ze = {} } = t, { iconsBaseUrl: Fn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc2/icons/" } = t;
1424
1424
  function In() {
1425
1425
  Bn.focus();
1426
1426
  }
package/leaflet.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- var zf=Object.defineProperty;var Vf=(ct,vt,te)=>vt in ct?zf(ct,vt,{enumerable:!0,configurable:!0,writable:!0,value:te}):ct[vt]=te;var sa=(ct,vt,te)=>(Vf(ct,typeof vt!="symbol"?vt+"":vt,te),te),al=(ct,vt,te)=>{if(!vt.has(ct))throw TypeError("Cannot "+te)};var Sr=(ct,vt,te)=>(al(ct,vt,"read from private field"),te?te.call(ct):vt.get(ct)),aa=(ct,vt,te)=>{if(vt.has(ct))throw TypeError("Cannot add the same private member more than once");vt instanceof WeakSet?vt.add(ct):vt.set(ct,te)},ps=(ct,vt,te,nn)=>(al(ct,vt,"write to private field"),nn?nn.call(ct,te):vt.set(ct,te),te);(function(ct,vt){typeof exports=="object"&&typeof module<"u"?vt(exports,require("leaflet")):typeof define=="function"&&define.amd?define(["exports","leaflet"],vt):(ct=typeof globalThis<"u"?globalThis:ct||self,vt(ct.leafletMaptilerGeocoder={},ct.leaflet))})(this,function(ct,vt){var nr,di;"use strict";function te(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const nn=te(vt);function It(){}function ul(r,t){for(const e in t)r[e]=t[e];return r}function ua(r){return r()}function la(){return Object.create(null)}function ar(r){r.forEach(ua)}function ca(r){return typeof r=="function"}function xr(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}let Po;function Me(r,t){return r===t?!0:(Po||(Po=document.createElement("a")),Po.href=t,r===Po.href)}function ll(r){return Object.keys(r).length===0}function cl(r,t,e,n){if(r){const i=fa(r,t,e,n);return r[0](i)}}function fa(r,t,e,n){return r[1]&&n?ul(e.ctx.slice(),r[1](n(t))):e.ctx}function fl(r,t,e,n){if(r[2]&&n){const i=r[2](n(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function hl(r,t,e,n,i,o){if(i){const s=fa(t,e,n,o);r.p(s,i)}}function gl(r){if(r.ctx.length>32){const t=[],e=r.ctx.length/32;for(let n=0;n<e;n++)t[n]=-1;return t}return-1}function ha(r){return r??""}function nt(r,t){r.appendChild(t)}function At(r,t,e){r.insertBefore(t,e||null)}function Pt(r){r.parentNode&&r.parentNode.removeChild(r)}function gt(r){return document.createElement(r)}function zn(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function wr(r){return document.createTextNode(r)}function rn(){return wr(" ")}function pl(){return wr("")}function Ce(r,t,e,n){return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}function dl(r){return function(t){return t.preventDefault(),r.call(this,t)}}function P(r,t,e){e==null?r.removeAttribute(t):r.getAttribute(t)!==e&&r.setAttribute(t,e)}function vl(r){return Array.from(r.childNodes)}function Ji(r,t){t=""+t,r.data!==t&&(r.data=t)}function ga(r,t){r.value=t??""}function on(r,t,e){r.classList.toggle(t,!!e)}function yl(r,t,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(r,{detail:t,bubbles:e,cancelable:n})}let $i;function to(r){$i=r}function pa(){if(!$i)throw new Error("Function called outside component initialization");return $i}function ml(r){pa().$$.on_destroy.push(r)}function _l(){const r=pa();return(t,e,{cancelable:n=!1}={})=>{const i=r.$$.callbacks[t];if(i){const o=yl(t,e,{cancelable:n});return i.slice().forEach(s=>{s.call(r,o)}),!o.defaultPrevented}return!0}}function da(r,t){const e=r.$$.callbacks[t.type];e&&e.slice().forEach(n=>n.call(this,t))}const mi=[],ds=[];let _i=[];const va=[],El=Promise.resolve();let vs=!1;function Il(){vs||(vs=!0,El.then(ya))}function ys(r){_i.push(r)}const ms=new Set;let Ei=0;function ya(){if(Ei!==0)return;const r=$i;do{try{for(;Ei<mi.length;){const t=mi[Ei];Ei++,to(t),Cl(t.$$)}}catch(t){throw mi.length=0,Ei=0,t}for(to(null),mi.length=0,Ei=0;ds.length;)ds.pop()();for(let t=0;t<_i.length;t+=1){const e=_i[t];ms.has(e)||(ms.add(e),e())}_i.length=0}while(mi.length);for(;va.length;)va.pop()();vs=!1,ms.clear(),to(r)}function Cl(r){if(r.fragment!==null){r.update(),ar(r.before_update);const t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(ys)}}function Nl(r){const t=[],e=[];_i.forEach(n=>r.indexOf(n)===-1?t.push(n):e.push(n)),e.forEach(n=>n()),_i=t}const Ro=new Set;let Qr;function Oo(){Qr={r:0,c:[],p:Qr}}function To(){Qr.r||ar(Qr.c),Qr=Qr.p}function Gt(r,t){r&&r.i&&(Ro.delete(r),r.i(t))}function fe(r,t,e,n){if(r&&r.o){if(Ro.has(r))return;Ro.add(r),Qr.c.push(()=>{Ro.delete(r),n&&(e&&r.d(1),n())}),r.o(t)}else n&&n()}function ma(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function Sl(r,t){fe(r,1,1,()=>{t.delete(r.key)})}function xl(r,t,e,n,i,o,s,a,u,l,c,f){let h=r.length,g=o.length,p=h;const y={};for(;p--;)y[r[p].key]=p;const d=[],m=new Map,_=new Map,C=[];for(p=g;p--;){const T=f(i,o,p),A=e(T);let w=s.get(A);w?n&&C.push(()=>w.p(T,t)):(w=l(A,T),w.c()),m.set(A,d[p]=w),A in y&&_.set(A,Math.abs(p-y[A]))}const L=new Set,N=new Set;function x(T){Gt(T,1),T.m(a,c),s.set(T.key,T),c=T.first,g--}for(;h&&g;){const T=d[g-1],A=r[h-1],w=T.key,F=A.key;T===A?(c=T.first,h--,g--):m.has(F)?!s.has(w)||L.has(w)?x(T):N.has(F)?h--:_.get(w)>_.get(F)?(N.add(w),x(T)):(L.add(F),h--):(u(A,s),h--)}for(;h--;){const T=r[h];m.has(T.key)||u(T,s)}for(;g;)x(d[g-1]);return ar(C),d}function Lr(r){r&&r.c()}function ur(r,t,e){const{fragment:n,after_update:i}=r.$$;n&&n.m(t,e),ys(()=>{const o=r.$$.on_mount.map(ua).filter(ca);r.$$.on_destroy?r.$$.on_destroy.push(...o):ar(o),r.$$.on_mount=[]}),i.forEach(ys)}function lr(r,t){const e=r.$$;e.fragment!==null&&(Nl(e.after_update),ar(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function wl(r,t){r.$$.dirty[0]===-1&&(mi.push(r),Il(),r.$$.dirty.fill(0)),r.$$.dirty[t/31|0]|=1<<t%31}function br(r,t,e,n,i,o,s,a=[-1]){const u=$i;to(r);const l=r.$$={fragment:null,ctx:[],props:o,update:It,not_equal:i,bound:la(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:la(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(r,t.props||{},(f,h,...g)=>{const p=g.length?g[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&wl(r,f)),h}):[],l.update(),c=!0,ar(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const f=vl(t.target);l.fragment&&l.fragment.l(f),f.forEach(Pt)}else l.fragment&&l.fragment.c();t.intro&&Gt(r.$$.fragment),ur(r,t.target,t.anchor),ya()}to(u)}class Pr{constructor(){sa(this,"$$");sa(this,"$$set")}$destroy(){lr(this,1),this.$destroy=It}$on(t,e){if(!ca(e))return It;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ll(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ll="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ll);const Uf="";function bl(r){let t,e;return{c(){t=zn("svg"),e=zn("path"),P(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),P(t,"viewBox","0 0 60.006 21.412"),P(t,"width","14"),P(t,"height","20"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Pl extends Pr{constructor(t){super(),br(this,t,null,bl,xr,{})}}const qf="";function Rl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"area.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"area.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ol(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"poi.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"poi.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Tl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"postal_code.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"postal_code.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Dl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"street.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"street.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ml(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"road.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"road.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Al(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"housenumber.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"housenumber.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Fl(r){let t,e,n,i;return{c(){t=gt("img"),Me(t.src,e=r[5])||P(t,"src",e),P(t,"alt",r[4]),P(t,"class","svelte-ltkwvy")},m(o,s){At(o,t,s),n||(i=Ce(t,"error",r[12]),n=!0)},p(o,s){s&32&&!Me(t.src,e=o[5])&&P(t,"src",e),s&16&&P(t,"alt",o[4])},d(o){o&&Pt(t),n=!1,i()}}}function _a(r){let t,e;return{c(){t=gt("span"),e=wr(r[6]),P(t,"class","secondary svelte-ltkwvy")},m(n,i){At(n,t,i),nt(t,e)},p(n,i){i&64&&Ji(e,n[6])},d(n){n&&Pt(t)}}}function Bl(r){var T,A;let t,e,n,i,o,s,a,u,l=r[0].place_name.replace(/,.*/,"")+"",c,f,h=r[2]==="always"||r[2]&&!r[0].address&&((T=r[0].properties)==null?void 0:T.kind)!=="road"&&((A=r[0].properties)==null?void 0:A.kind)!=="road_relation"&&!r[0].id.startsWith("address.")&&!r[0].id.startsWith("postal_code.")&&(!r[0].id.startsWith("poi.")||!r[5]),g,p,y=r[0].place_name.replace(/[^,]*,?\s*/,"")+"",d,m,_;function C(w,F){var X,R;return F&1&&(e=null),F&1&&(n=null),F&1&&(i=null),w[5]?Fl:w[0].address?Al:((X=w[0].properties)==null?void 0:X.kind)==="road"||((R=w[0].properties)==null?void 0:R.kind)==="road_relation"?Ml:(e==null&&(e=!!w[0].id.startsWith("address.")),e?Dl:(n==null&&(n=!!w[0].id.startsWith("postal_code.")),n?Tl:(i==null&&(i=!!w[0].id.startsWith("poi.")),i?Ol:Rl)))}let L=C(r,-1),N=L(r),x=h&&_a(r);return{c(){t=gt("li"),N.c(),o=rn(),s=gt("span"),a=gt("span"),u=gt("span"),c=wr(l),f=rn(),x&&x.c(),g=rn(),p=gt("span"),d=wr(y),P(u,"class","primary svelte-ltkwvy"),P(a,"class","svelte-ltkwvy"),P(p,"class","line2 svelte-ltkwvy"),P(s,"class","texts svelte-ltkwvy"),P(t,"tabindex","0"),P(t,"data-selected",r[1]),P(t,"class","svelte-ltkwvy"),on(t,"selected",r[1])},m(w,F){At(w,t,F),N.m(t,null),nt(t,o),nt(t,s),nt(s,a),nt(a,u),nt(u,c),nt(a,f),x&&x.m(a,null),nt(s,g),nt(s,p),nt(p,d),m||(_=[Ce(t,"mouseenter",r[10]),Ce(t,"focus",r[11])],m=!0)},p(w,[F]){var X,R;L===(L=C(w,F))&&N?N.p(w,F):(N.d(1),N=L(w),N&&(N.c(),N.m(t,o))),F&1&&l!==(l=w[0].place_name.replace(/,.*/,"")+"")&&Ji(c,l),F&37&&(h=w[2]==="always"||w[2]&&!w[0].address&&((X=w[0].properties)==null?void 0:X.kind)!=="road"&&((R=w[0].properties)==null?void 0:R.kind)!=="road_relation"&&!w[0].id.startsWith("address.")&&!w[0].id.startsWith("postal_code.")&&(!w[0].id.startsWith("poi.")||!w[5])),h?x?x.p(w,F):(x=_a(w),x.c(),x.m(a,null)):x&&(x.d(1),x=null),F&1&&y!==(y=w[0].place_name.replace(/[^,]*,?\s*/,"")+"")&&Ji(d,y),F&2&&P(t,"data-selected",w[1]),F&2&&on(t,"selected",w[1])},i:It,o:It,d(w){w&&Pt(t),N.d(),x&&x.d(),m=!1,ar(_)}}}function kl(r,t,e){var m;let n,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(m=o.properties)==null?void 0:m.categories;let f,h;function g(_){h&&u.add(h),e(9,n--,n)}function p(_){da.call(this,r,_)}function y(_){da.call(this,r,_)}const d=_=>g(_.currentTarget);return r.$$set=_=>{"feature"in _&&e(0,o=_.feature),"selected"in _&&e(1,s=_.selected),"showPlaceType"in _&&e(2,a=_.showPlaceType),"missingIconsCache"in _&&e(8,u=_.missingIconsCache),"iconsBaseUrl"in _&&e(3,l=_.iconsBaseUrl)},r.$$.update=()=>{var _,C,L,N;if(r.$$.dirty&824)do e(9,n--,n),e(4,f=c==null?void 0:c[n]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!h||u.has(h)));r.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(C=(_=o.properties)==null?void 0:_.categories)==null?void 0:C.join(", "):((N=(L=o.properties)==null?void 0:L.place_type_name)==null?void 0:N[0])??o.place_type[0])},e(9,n=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,g,u,n,p,y,d]}class Gl extends Pr{constructor(t){super(),br(this,t,kl,Bl,xr,{feature:0,selected:1,showPlaceType:2,missingIconsCache:8,iconsBaseUrl:3})}}const Xf="";function zl(r){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',P(t,"class","svelte-7cmwmc")},m(e,n){At(e,t,n)},p:It,i:It,o:It,d(e){e&&Pt(t)}}}class Vl extends Pr{constructor(t){super(),br(this,t,null,zl,xr,{})}}const Yf="";function Ul(r){let t,e;return{c(){t=zn("svg"),e=zn("path"),P(e,"d","M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"),P(t,"width","14"),P(t,"height","14"),P(t,"viewBox","0 0 15 15"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class ql extends Pr{constructor(t){super(),br(this,t,null,Ul,xr,{})}}const Wf="";function Xl(r){let t,e;return{c(){t=zn("svg"),e=zn("path"),P(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),P(t,"viewBox","0 0 14 14"),P(t,"width","13"),P(t,"height","13"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ea extends Pr{constructor(t){super(),br(this,t,null,Xl,xr,{})}}const Hf="";function Yl(r){let t,e;return{c(){t=zn("svg"),e=zn("path"),P(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),P(t,"viewBox","0 0 30 30"),P(t,"fill","none"),P(t,"xmlns","http://www.w3.org/2000/svg"),P(t,"class","svelte-d2loi5")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ia extends Pr{constructor(t){super(),br(this,t,null,Yl,xr,{})}}const jf="";function Ca(r,t,e){const n=r.slice();return n[75]=t[e],n[77]=e,n}function Na(r){let t,e;return t=new Vl({}),{c(){Lr(t.$$.fragment)},m(n,i){ur(t,n,i),e=!0},i(n){e||(Gt(t.$$.fragment,n),e=!0)},o(n){fe(t.$$.fragment,n),e=!1},d(n){lr(t,n)}}}function Sa(r){let t,e,n,i,o;return e=new Pl({}),{c(){t=gt("button"),Lr(e.$$.fragment),P(t,"type","button"),P(t,"title",r[9]),P(t,"class","svelte-1r7dvt7"),on(t,"active",r[0])},m(s,a){At(s,t,a),ur(e,t,null),n=!0,i||(o=Ce(t,"click",r[61]),i=!0)},p(s,a){(!n||a[0]&512)&&P(t,"title",s[9]),(!n||a[0]&1)&&on(t,"active",s[0])},i(s){n||(Gt(e.$$.fragment,s),n=!0)},o(s){fe(e.$$.fragment,s),n=!1},d(s){s&&Pt(t),lr(e),i=!1,o()}}}function Wl(r){let t,e=[],n=new Map,i,o,s,a=ma(r[13]);const u=l=>l[75].id+(l[75].address?","+l[75].address:"");for(let l=0;l<a.length;l+=1){let c=Ca(r,a,l),f=u(c);n.set(f,e[l]=xa(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();P(t,"class","svelte-1r7dvt7")},m(l,c){At(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[Ce(t,"mouseleave",r[65]),Ce(t,"blur",r[66])],o=!0)},p(l,c){c[0]&8940544&&(a=ma(l[13]),Oo(),e=xl(e,c,u,1,l,a,n,t,Sl,xa,null,Ca),To())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Gt(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)fe(e[c]);i=!1},d(l){l&&Pt(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,ar(s)}}}function Hl(r){let t,e,n,i,o,s;return e=new Ia({}),{c(){t=gt("div"),Lr(e.$$.fragment),n=rn(),i=gt("div"),o=wr(r[7]),P(i,"class","svelte-1r7dvt7"),P(t,"class","no-results svelte-1r7dvt7")},m(a,u){At(a,t,u),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Ji(o,a[7])},i(a){s||(Gt(e.$$.fragment,a),s=!0)},o(a){fe(e.$$.fragment,a),s=!1},d(a){a&&Pt(t),lr(e)}}}function jl(r){let t="",e;return{c(){e=wr(t)},m(n,i){At(n,e,i)},p:It,i:It,o:It,d(n){n&&Pt(e)}}}function Kl(r){let t,e,n,i,o,s,a,u,l,c,f;return e=new Ia({}),u=new Ea({}),{c(){t=gt("div"),Lr(e.$$.fragment),n=rn(),i=gt("div"),o=wr(r[6]),s=rn(),a=gt("button"),Lr(u.$$.fragment),P(i,"class","svelte-1r7dvt7"),P(a,"class","svelte-1r7dvt7"),P(t,"class","error svelte-1r7dvt7")},m(h,g){At(h,t,g),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),nt(t,s),nt(t,a),ur(u,a,null),l=!0,c||(f=Ce(a,"click",r[62]),c=!0)},p(h,g){(!l||g[0]&64)&&Ji(o,h[6])},i(h){l||(Gt(e.$$.fragment,h),Gt(u.$$.fragment,h),l=!0)},o(h){fe(e.$$.fragment,h),fe(u.$$.fragment,h),l=!1},d(h){h&&Pt(t),lr(e),lr(u),c=!1,f()}}}function xa(r,t){let e,n,i;function o(){return t[63](t[77])}function s(){return t[64](t[75])}return n=new Gl({props:{feature:t[75],showPlaceType:t[10],selected:t[14]===t[77],missingIconsCache:t[19],iconsBaseUrl:t[11]}}),n.$on("mouseenter",o),n.$on("focus",s),{key:r,first:null,c(){e=pl(),Lr(n.$$.fragment),this.first=e},m(a,u){At(a,e,u),ur(n,a,u),i=!0},p(a,u){t=a;const l={};u[0]&8192&&(l.feature=t[75]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&24576&&(l.selected=t[14]===t[77]),u[0]&2048&&(l.iconsBaseUrl=t[11]),n.$set(l)},i(a){i||(Gt(n.$$.fragment,a),i=!0)},o(a){fe(n.$$.fragment,a),i=!1},d(a){a&&Pt(e),lr(n,a)}}}function Ql(r){let t,e,n,i,o,s,a,u,l,c,f,h,g,p,y,d,m,_,C,L;i=new ql({}),c=new Ea({});let N=r[18]&&Na(),x=r[5]===!0&&Sa(r);const T=r[53].default,A=cl(T,r,r[52],null),w=[Kl,jl,Hl,Wl],F=[];function X(R,Y){var D,W;return R[17]?0:R[15]?((D=R[13])==null?void 0:D.length)===0?2:R[15]&&((W=R[13])!=null&&W.length)?3:-1:1}return~(y=X(r))&&(d=F[y]=w[y](r)),{c(){t=gt("form"),e=gt("div"),n=gt("button"),Lr(i.$$.fragment),o=rn(),s=gt("input"),a=rn(),u=gt("div"),l=gt("button"),Lr(c.$$.fragment),f=rn(),N&&N.c(),h=rn(),x&&x.c(),g=rn(),A&&A.c(),p=rn(),d&&d.c(),P(n,"class","search-button svelte-1r7dvt7"),P(n,"type","button"),P(s,"placeholder",r[8]),P(s,"aria-label",r[8]),P(s,"class","svelte-1r7dvt7"),P(l,"type","button"),P(l,"title",r[3]),P(l,"class","svelte-1r7dvt7"),P(u,"class","clear-button-container svelte-1r7dvt7"),on(u,"displayable",r[1]!==""),P(e,"class","input-group svelte-1r7dvt7"),P(t,"tabindex","0"),P(t,"class",m=ha(r[2])+" svelte-1r7dvt7"),on(t,"can-collapse",r[4]&&r[1]==="")},m(R,Y){At(R,t,Y),nt(t,e),nt(e,n),ur(i,n,null),nt(e,o),nt(e,s),r[55](s),ga(s,r[1]),nt(e,a),nt(e,u),nt(u,l),ur(c,l,null),nt(u,f),N&&N.m(u,null),nt(e,h),x&&x.m(e,null),nt(e,g),A&&A.m(e,null),nt(t,p),~y&&F[y].m(t,null),_=!0,C||(L=[Ce(n,"click",r[54]),Ce(s,"input",r[56]),Ce(s,"focus",r[57]),Ce(s,"blur",r[58]),Ce(s,"keydown",r[21]),Ce(s,"input",r[59]),Ce(l,"click",r[60]),Ce(t,"submit",dl(r[20]))],C=!0)},p(R,Y){(!_||Y[0]&256)&&P(s,"placeholder",R[8]),(!_||Y[0]&256)&&P(s,"aria-label",R[8]),Y[0]&2&&s.value!==R[1]&&ga(s,R[1]),(!_||Y[0]&8)&&P(l,"title",R[3]),R[18]?N?Y[0]&262144&&Gt(N,1):(N=Na(),N.c(),Gt(N,1),N.m(u,null)):N&&(Oo(),fe(N,1,1,()=>{N=null}),To()),(!_||Y[0]&2)&&on(u,"displayable",R[1]!==""),R[5]===!0?x?(x.p(R,Y),Y[0]&32&&Gt(x,1)):(x=Sa(R),x.c(),Gt(x,1),x.m(e,g)):x&&(Oo(),fe(x,1,1,()=>{x=null}),To()),A&&A.p&&(!_||Y[1]&2097152)&&hl(A,T,R,R[52],_?fl(T,R[52],Y,null):gl(R[52]),null);let D=y;y=X(R),y===D?~y&&F[y].p(R,Y):(d&&(Oo(),fe(F[D],1,1,()=>{F[D]=null}),To()),~y?(d=F[y],d?d.p(R,Y):(d=F[y]=w[y](R),d.c()),Gt(d,1),d.m(t,null)):d=null),(!_||Y[0]&4&&m!==(m=ha(R[2])+" svelte-1r7dvt7"))&&P(t,"class",m),(!_||Y[0]&22)&&on(t,"can-collapse",R[4]&&R[1]==="")},i(R){_||(Gt(i.$$.fragment,R),Gt(c.$$.fragment,R),Gt(N),Gt(x),Gt(A,R),Gt(d),_=!0)},o(R){fe(i.$$.fragment,R),fe(c.$$.fragment,R),fe(N),fe(x),fe(A,R),fe(d),_=!1},d(R){R&&Pt(t),lr(i),r[55](null),lr(c),N&&N.d(),x&&x.d(),A&&A.d(R),~y&&F[y].d(),C=!1,ar(L)}}}function Zl(r,t,e){const n=t[1],i=t[0],o=n-i;return r===n&&e?r:((r-i)%o+o)%o+i}function wa(r){let t=[...r];return t[2]<t[0]&&(t[2]+=360),t}function Jl(r,t,e){let n,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:g=200}=t,{enableReverse:p=!1}=t,{errorMessage:y="Something went wrong…"}=t,{filter:d=()=>!0}=t,{flyTo:m=!0}=t,{fuzzyMatch:_=!0}=t,{language:C=void 0}=t,{limit:L=void 0}=t,{mapController:N=void 0}=t,{minLength:x=2}=t,{noResultsMessage:T="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=t,{placeholder:A="Search"}=t,{proximity:w=void 0}=t,{reverseActive:F=p==="always"}=t,{reverseButtonTitle:X="toggle reverse geocoding"}=t,{searchValue:R=""}=t,{showFullGeometry:Y=!0}=t,{showPlaceType:D="ifNeeded"}=t,{showResultsWhileTyping:W=!0}=t,{trackProximity:ut=!0}=t,{types:Et=void 0}=t,{zoom:$t=16}=t,{maxZoom:ce=18}=t,{apiUrl:Cr="https://api.maptiler.com/geocoding"}=t,{fetchParameters:tn={}}=t,{iconsBaseUrl:rr="https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc1/icons/"}=t;function Gn(){ir.focus()}function ji(){ir.blur()}function Nr(S,jt=!0){e(1,R=S),jt?(e(14,Ht=-1),ol()):(na(),setTimeout(()=>{ir.focus(),ir.select()}))}let Ki=!1,ht,Te,at,il="",ir,Ht=-1,or,hs=[],vi,Qi,gs,ta;const Nf=new Set,jr=_l();ml(()=>{N&&(N.setEventHandler(void 0),N.indicateReverse(!1),N.setSelectedMarker(-1),N.setMarkers(void 0,void 0))});function ol(S){if(Qi&&(clearTimeout(Qi),Qi=void 0),Ht>-1&&ht)e(49,at=ht[Ht]),e(1,R=at.place_name.replace(/,.*/,"")),e(17,or=void 0),e(48,Te=void 0),e(14,Ht=-1);else if(R){const jt=S||!sl();ea(R,{exact:!0}).then(()=>{e(48,Te=ht),e(49,at=void 0),jt&&Sf()}).catch(sr=>e(17,or=sr))}}function sl(){return/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(R)}async function ea(S,{byId:jt=!1,exact:sr=!1}={}){e(17,or=void 0);const Zi=sl(),en=new URLSearchParams;C!=null&&en.set("language",Array.isArray(C)?C.join(","):C),Et&&en.set("types",Et.join(",")),Zi||(u&&en.set("bbox",u.map(Kr=>Kr.toFixed(6)).join(",")),h&&en.set("country",Array.isArray(h)?h.join(","):h)),jt||(w&&en.set("proximity",w.map(Kr=>Kr.toFixed(6)).join(",")),(sr||!W)&&en.set("autocomplete","false"),en.set("fuzzyMatch",String(_))),L!==void 0&&(!Zi||(Et==null?void 0:Et.length)===1)&&en.set("limit",String(L)),en.set("key",a);const yi=Cr+"/"+encodeURIComponent(S)+".json?"+en.toString();if(yi===il){jt?(e(13,ht=void 0),e(49,at=hs[0])):e(13,ht=hs);return}il=yi,vi==null||vi.abort();const De=new AbortController;e(18,vi=De);let ia;try{ia=await fetch(yi,{signal:De.signal,...tn}).finally(()=>{De===vi&&e(18,vi=void 0)})}catch(Kr){if(Kr&&typeof Kr=="object"&&"name"in Kr&&Kr.name==="AbortError")return;throw new Error}if(!ia.ok)throw new Error;const oa=await ia.json();jr("response",{url:yi,featureCollection:oa}),jt?(e(13,ht=void 0),e(49,at=oa.features[0]),hs=[at]):(e(13,ht=oa.features.filter(d)),hs=ht,Zi&&ir.focus())}function Sf(){var sr,Zi,en,yi;if(!(Te!=null&&Te.length)||!m)return;const S=[180,90,-180,-90],jt=!Te.some(De=>!De.matching_text);for(const De of Te)(jt||!De.matching_text)&&(S[0]=Math.min(S[0],((sr=De.bbox)==null?void 0:sr[0])??De.center[0]),S[1]=Math.min(S[1],((Zi=De.bbox)==null?void 0:Zi[1])??De.center[1]),S[2]=Math.max(S[2],((en=De.bbox)==null?void 0:en[2])??De.center[0]),S[3]=Math.max(S[3],((yi=De.bbox)==null?void 0:yi[3])??De.center[1]));N&&Te.length>0&&(at&&S[0]===S[2]&&S[1]===S[3]?N.flyTo(at.center,$t):N.fitBounds(wa(S),50,ce))}function xf(S){e(0,F=p==="always"),Nr(Zl(S[0],[-180,180],!0).toFixed(6)+","+S[1].toFixed(6))}function wf(S){if(!ht)return;let jt=S.key==="ArrowDown"?1:S.key==="ArrowUp"?-1:0;jt?(Ht===-1&&jt===-1&&e(14,Ht=ht.length),e(14,Ht+=jt),Ht>=ht.length&&e(14,Ht=-1),S.preventDefault()):["ArrowLeft","ArrowRight","Home","End"].includes(S.key)&&e(14,Ht=-1)}function na(S=!0){if(e(17,or=void 0),W){if(Qi&&clearTimeout(Qi),R.length<x)return;const jt=R;Qi=window.setTimeout(()=>{ea(jt).catch(sr=>e(17,or=sr))},S?g:0)}else e(13,ht=void 0),e(17,or=void 0)}function ra(S){e(49,at=S),e(1,R=S.place_name),e(14,Ht=-1)}const Lf=()=>ir.focus();function bf(S){ds[S?"unshift":"push"](()=>{ir=S,e(16,ir)})}function Pf(){R=this.value,e(1,R),e(12,Ki),e(27,c)}const Rf=()=>e(12,Ki=!0),Of=()=>e(12,Ki=!1),Tf=()=>na(),Df=()=>{e(1,R=""),ir.focus()},Mf=()=>e(0,F=!F),Af=()=>e(17,or=void 0),Ff=S=>e(14,Ht=S),Bf=S=>ra(S),kf=()=>e(14,Ht=-1),Gf=()=>{};return r.$$set=S=>{"class"in S&&e(2,s=S.class),"apiKey"in S&&e(25,a=S.apiKey),"bbox"in S&&e(26,u=S.bbox),"clearButtonTitle"in S&&e(3,l=S.clearButtonTitle),"clearOnBlur"in S&&e(27,c=S.clearOnBlur),"collapsed"in S&&e(4,f=S.collapsed),"country"in S&&e(28,h=S.country),"debounceSearch"in S&&e(29,g=S.debounceSearch),"enableReverse"in S&&e(5,p=S.enableReverse),"errorMessage"in S&&e(6,y=S.errorMessage),"filter"in S&&e(30,d=S.filter),"flyTo"in S&&e(31,m=S.flyTo),"fuzzyMatch"in S&&e(32,_=S.fuzzyMatch),"language"in S&&e(33,C=S.language),"limit"in S&&e(34,L=S.limit),"mapController"in S&&e(35,N=S.mapController),"minLength"in S&&e(36,x=S.minLength),"noResultsMessage"in S&&e(7,T=S.noResultsMessage),"placeholder"in S&&e(8,A=S.placeholder),"proximity"in S&&e(24,w=S.proximity),"reverseActive"in S&&e(0,F=S.reverseActive),"reverseButtonTitle"in S&&e(9,X=S.reverseButtonTitle),"searchValue"in S&&e(1,R=S.searchValue),"showFullGeometry"in S&&e(37,Y=S.showFullGeometry),"showPlaceType"in S&&e(10,D=S.showPlaceType),"showResultsWhileTyping"in S&&e(38,W=S.showResultsWhileTyping),"trackProximity"in S&&e(39,ut=S.trackProximity),"types"in S&&e(40,Et=S.types),"zoom"in S&&e(41,$t=S.zoom),"maxZoom"in S&&e(42,ce=S.maxZoom),"apiUrl"in S&&e(43,Cr=S.apiUrl),"fetchParameters"in S&&e(44,tn=S.fetchParameters),"iconsBaseUrl"in S&&e(11,rr=S.iconsBaseUrl),"$$scope"in S&&e(52,o=S.$$scope)},r.$$.update=()=>{if(r.$$.dirty[1]&256&&(ut||e(24,w=void 0)),r.$$.dirty[0]&134221824&&setTimeout(()=>{e(15,gs=Ki),c&&!Ki&&e(1,R="")}),r.$$.dirty[0]&8194|r.$$.dirty[1]&32&&R.length<x&&(e(49,at=void 0),e(13,ht=void 0),e(17,or=void 0),e(48,Te=ht)),r.$$.dirty[1]&262208&&Y&&at&&!at.address&&at.geometry.type==="Point"&&ea(at.id,{byId:!0}).catch(S=>e(17,or=S)),r.$$.dirty[1]&789521&&(N&&at&&at.id!==ta&&m&&(!at.bbox||at.bbox[0]===at.bbox[2]&&at.bbox[1]===at.bbox[3]?N.flyTo(at.center,at.id.startsWith("poi.")||at.id.startsWith("address.")?ce:$t):N.fitBounds(wa(at.bbox),50,ce),e(13,ht=void 0),e(48,Te=void 0),e(14,Ht=-1)),e(50,ta=at==null?void 0:at.id)),r.$$.dirty[0]&8192|r.$$.dirty[1]&131072&&Te!==ht&&e(48,Te=void 0),r.$$.dirty[1]&393232&&N&&N.setMarkers(Te,at),r.$$.dirty[0]&2&&e(14,Ht=-1),r.$$.dirty[0]&40961|r.$$.dirty[1]&272&&N&&N.setEventHandler(S=>{switch(S.type){case"mapClick":F&&xf(S.coordinates);break;case"proximityChange":e(24,w=ut?S.proximity:void 0);break;case"markerClick":{const jt=ht==null?void 0:ht.find(sr=>sr.id===S.id);jt&&ra(jt)}break;case"markerMouseEnter":e(14,Ht=gs?(ht==null?void 0:ht.findIndex(jt=>jt.id===S.id))??-1:-1);break;case"markerMouseLeave":e(14,Ht=-1);break}}),r.$$.dirty[0]&16384|r.$$.dirty[1]&16&&(N==null||N.setSelectedMarker(Ht)),r.$$.dirty[0]&24576&&e(51,n=ht==null?void 0:ht[Ht]),r.$$.dirty[0]&2|r.$$.dirty[1]&16){const S=/^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(R);N==null||N.setReverseMarker(S?[Number(S[1]),Number(S[2])]:void 0)}r.$$.dirty[1]&1048576&&jr("select",n),r.$$.dirty[1]&262144&&jr("pick",at),r.$$.dirty[0]&40960&&jr("optionsVisibilityChange",gs&&!!ht),r.$$.dirty[0]&8192&&jr("featuresListed",ht),r.$$.dirty[1]&131072&&jr("featuresMarked",Te),r.$$.dirty[0]&1&&jr("reverseToggle",F),r.$$.dirty[0]&2&&jr("queryChange",R),r.$$.dirty[0]&1|r.$$.dirty[1]&16&&N&&N.indicateReverse(F)},[F,R,s,l,f,p,y,T,A,X,D,rr,Ki,ht,Ht,gs,ir,or,vi,Nf,ol,wf,na,ra,w,a,u,c,h,g,d,m,_,C,L,N,x,Y,W,ut,Et,$t,ce,Cr,tn,Gn,ji,Nr,Te,at,ta,n,o,i,Lf,bf,Pf,Rf,Of,Tf,Df,Mf,Af,Ff,Bf,kf,Gf]}let $l=class extends Pr{constructor(t){super(),br(this,t,Jl,Ql,xr,{class:2,apiKey:25,bbox:26,clearButtonTitle:3,clearOnBlur:27,collapsed:4,country:28,debounceSearch:29,enableReverse:5,errorMessage:6,filter:30,flyTo:31,fuzzyMatch:32,language:33,limit:34,mapController:35,minLength:36,noResultsMessage:7,placeholder:8,proximity:24,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:37,showPlaceType:10,showResultsWhileTyping:38,trackProximity:39,types:40,zoom:41,maxZoom:42,apiUrl:43,fetchParameters:44,iconsBaseUrl:11,focus:45,blur:46,setQuery:47},null,[-1,-1,-1])}get focus(){return this.$$.ctx[45]}get blur(){return this.$$.ctx[46]}get setQuery(){return this.$$.ctx[47]}};/**
1
+ var zf=Object.defineProperty;var Vf=(ct,vt,te)=>vt in ct?zf(ct,vt,{enumerable:!0,configurable:!0,writable:!0,value:te}):ct[vt]=te;var sa=(ct,vt,te)=>(Vf(ct,typeof vt!="symbol"?vt+"":vt,te),te),al=(ct,vt,te)=>{if(!vt.has(ct))throw TypeError("Cannot "+te)};var Sr=(ct,vt,te)=>(al(ct,vt,"read from private field"),te?te.call(ct):vt.get(ct)),aa=(ct,vt,te)=>{if(vt.has(ct))throw TypeError("Cannot add the same private member more than once");vt instanceof WeakSet?vt.add(ct):vt.set(ct,te)},ps=(ct,vt,te,nn)=>(al(ct,vt,"write to private field"),nn?nn.call(ct,te):vt.set(ct,te),te);(function(ct,vt){typeof exports=="object"&&typeof module<"u"?vt(exports,require("leaflet")):typeof define=="function"&&define.amd?define(["exports","leaflet"],vt):(ct=typeof globalThis<"u"?globalThis:ct||self,vt(ct.leafletMaptilerGeocoder={},ct.leaflet))})(this,function(ct,vt){var nr,di;"use strict";function te(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const nn=te(vt);function It(){}function ul(r,t){for(const e in t)r[e]=t[e];return r}function ua(r){return r()}function la(){return Object.create(null)}function ar(r){r.forEach(ua)}function ca(r){return typeof r=="function"}function xr(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}let Po;function Me(r,t){return r===t?!0:(Po||(Po=document.createElement("a")),Po.href=t,r===Po.href)}function ll(r){return Object.keys(r).length===0}function cl(r,t,e,n){if(r){const i=fa(r,t,e,n);return r[0](i)}}function fa(r,t,e,n){return r[1]&&n?ul(e.ctx.slice(),r[1](n(t))):e.ctx}function fl(r,t,e,n){if(r[2]&&n){const i=r[2](n(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function hl(r,t,e,n,i,o){if(i){const s=fa(t,e,n,o);r.p(s,i)}}function gl(r){if(r.ctx.length>32){const t=[],e=r.ctx.length/32;for(let n=0;n<e;n++)t[n]=-1;return t}return-1}function ha(r){return r??""}function nt(r,t){r.appendChild(t)}function At(r,t,e){r.insertBefore(t,e||null)}function Pt(r){r.parentNode&&r.parentNode.removeChild(r)}function gt(r){return document.createElement(r)}function zn(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function wr(r){return document.createTextNode(r)}function rn(){return wr(" ")}function pl(){return wr("")}function Ce(r,t,e,n){return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}function dl(r){return function(t){return t.preventDefault(),r.call(this,t)}}function P(r,t,e){e==null?r.removeAttribute(t):r.getAttribute(t)!==e&&r.setAttribute(t,e)}function vl(r){return Array.from(r.childNodes)}function Ji(r,t){t=""+t,r.data!==t&&(r.data=t)}function ga(r,t){r.value=t??""}function on(r,t,e){r.classList.toggle(t,!!e)}function yl(r,t,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(r,{detail:t,bubbles:e,cancelable:n})}let $i;function to(r){$i=r}function pa(){if(!$i)throw new Error("Function called outside component initialization");return $i}function ml(r){pa().$$.on_destroy.push(r)}function _l(){const r=pa();return(t,e,{cancelable:n=!1}={})=>{const i=r.$$.callbacks[t];if(i){const o=yl(t,e,{cancelable:n});return i.slice().forEach(s=>{s.call(r,o)}),!o.defaultPrevented}return!0}}function da(r,t){const e=r.$$.callbacks[t.type];e&&e.slice().forEach(n=>n.call(this,t))}const mi=[],ds=[];let _i=[];const va=[],El=Promise.resolve();let vs=!1;function Il(){vs||(vs=!0,El.then(ya))}function ys(r){_i.push(r)}const ms=new Set;let Ei=0;function ya(){if(Ei!==0)return;const r=$i;do{try{for(;Ei<mi.length;){const t=mi[Ei];Ei++,to(t),Cl(t.$$)}}catch(t){throw mi.length=0,Ei=0,t}for(to(null),mi.length=0,Ei=0;ds.length;)ds.pop()();for(let t=0;t<_i.length;t+=1){const e=_i[t];ms.has(e)||(ms.add(e),e())}_i.length=0}while(mi.length);for(;va.length;)va.pop()();vs=!1,ms.clear(),to(r)}function Cl(r){if(r.fragment!==null){r.update(),ar(r.before_update);const t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(ys)}}function Nl(r){const t=[],e=[];_i.forEach(n=>r.indexOf(n)===-1?t.push(n):e.push(n)),e.forEach(n=>n()),_i=t}const Ro=new Set;let Qr;function Oo(){Qr={r:0,c:[],p:Qr}}function To(){Qr.r||ar(Qr.c),Qr=Qr.p}function Gt(r,t){r&&r.i&&(Ro.delete(r),r.i(t))}function fe(r,t,e,n){if(r&&r.o){if(Ro.has(r))return;Ro.add(r),Qr.c.push(()=>{Ro.delete(r),n&&(e&&r.d(1),n())}),r.o(t)}else n&&n()}function ma(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function Sl(r,t){fe(r,1,1,()=>{t.delete(r.key)})}function xl(r,t,e,n,i,o,s,a,u,l,c,f){let h=r.length,g=o.length,p=h;const y={};for(;p--;)y[r[p].key]=p;const d=[],m=new Map,_=new Map,C=[];for(p=g;p--;){const T=f(i,o,p),A=e(T);let w=s.get(A);w?n&&C.push(()=>w.p(T,t)):(w=l(A,T),w.c()),m.set(A,d[p]=w),A in y&&_.set(A,Math.abs(p-y[A]))}const L=new Set,N=new Set;function x(T){Gt(T,1),T.m(a,c),s.set(T.key,T),c=T.first,g--}for(;h&&g;){const T=d[g-1],A=r[h-1],w=T.key,F=A.key;T===A?(c=T.first,h--,g--):m.has(F)?!s.has(w)||L.has(w)?x(T):N.has(F)?h--:_.get(w)>_.get(F)?(N.add(w),x(T)):(L.add(F),h--):(u(A,s),h--)}for(;h--;){const T=r[h];m.has(T.key)||u(T,s)}for(;g;)x(d[g-1]);return ar(C),d}function Lr(r){r&&r.c()}function ur(r,t,e){const{fragment:n,after_update:i}=r.$$;n&&n.m(t,e),ys(()=>{const o=r.$$.on_mount.map(ua).filter(ca);r.$$.on_destroy?r.$$.on_destroy.push(...o):ar(o),r.$$.on_mount=[]}),i.forEach(ys)}function lr(r,t){const e=r.$$;e.fragment!==null&&(Nl(e.after_update),ar(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function wl(r,t){r.$$.dirty[0]===-1&&(mi.push(r),Il(),r.$$.dirty.fill(0)),r.$$.dirty[t/31|0]|=1<<t%31}function br(r,t,e,n,i,o,s,a=[-1]){const u=$i;to(r);const l=r.$$={fragment:null,ctx:[],props:o,update:It,not_equal:i,bound:la(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:la(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(r,t.props||{},(f,h,...g)=>{const p=g.length?g[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&wl(r,f)),h}):[],l.update(),c=!0,ar(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const f=vl(t.target);l.fragment&&l.fragment.l(f),f.forEach(Pt)}else l.fragment&&l.fragment.c();t.intro&&Gt(r.$$.fragment),ur(r,t.target,t.anchor),ya()}to(u)}class Pr{constructor(){sa(this,"$$");sa(this,"$$set")}$destroy(){lr(this,1),this.$destroy=It}$on(t,e){if(!ca(e))return It;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ll(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ll="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ll);const Uf="";function bl(r){let t,e;return{c(){t=zn("svg"),e=zn("path"),P(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),P(t,"viewBox","0 0 60.006 21.412"),P(t,"width","14"),P(t,"height","20"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Pl extends Pr{constructor(t){super(),br(this,t,null,bl,xr,{})}}const qf="";function Rl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"area.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"area.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ol(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"poi.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"poi.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Tl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"postal_code.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"postal_code.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Dl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"street.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"street.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ml(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"road.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"road.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Al(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"housenumber.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"housenumber.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Fl(r){let t,e,n,i;return{c(){t=gt("img"),Me(t.src,e=r[5])||P(t,"src",e),P(t,"alt",r[4]),P(t,"class","svelte-ltkwvy")},m(o,s){At(o,t,s),n||(i=Ce(t,"error",r[12]),n=!0)},p(o,s){s&32&&!Me(t.src,e=o[5])&&P(t,"src",e),s&16&&P(t,"alt",o[4])},d(o){o&&Pt(t),n=!1,i()}}}function _a(r){let t,e;return{c(){t=gt("span"),e=wr(r[6]),P(t,"class","secondary svelte-ltkwvy")},m(n,i){At(n,t,i),nt(t,e)},p(n,i){i&64&&Ji(e,n[6])},d(n){n&&Pt(t)}}}function Bl(r){var T,A;let t,e,n,i,o,s,a,u,l=r[0].place_name.replace(/,.*/,"")+"",c,f,h=r[2]==="always"||r[2]&&!r[0].address&&((T=r[0].properties)==null?void 0:T.kind)!=="road"&&((A=r[0].properties)==null?void 0:A.kind)!=="road_relation"&&!r[0].id.startsWith("address.")&&!r[0].id.startsWith("postal_code.")&&(!r[0].id.startsWith("poi.")||!r[5]),g,p,y=r[0].place_name.replace(/[^,]*,?\s*/,"")+"",d,m,_;function C(w,F){var X,R;return F&1&&(e=null),F&1&&(n=null),F&1&&(i=null),w[5]?Fl:w[0].address?Al:((X=w[0].properties)==null?void 0:X.kind)==="road"||((R=w[0].properties)==null?void 0:R.kind)==="road_relation"?Ml:(e==null&&(e=!!w[0].id.startsWith("address.")),e?Dl:(n==null&&(n=!!w[0].id.startsWith("postal_code.")),n?Tl:(i==null&&(i=!!w[0].id.startsWith("poi.")),i?Ol:Rl)))}let L=C(r,-1),N=L(r),x=h&&_a(r);return{c(){t=gt("li"),N.c(),o=rn(),s=gt("span"),a=gt("span"),u=gt("span"),c=wr(l),f=rn(),x&&x.c(),g=rn(),p=gt("span"),d=wr(y),P(u,"class","primary svelte-ltkwvy"),P(a,"class","svelte-ltkwvy"),P(p,"class","line2 svelte-ltkwvy"),P(s,"class","texts svelte-ltkwvy"),P(t,"tabindex","0"),P(t,"data-selected",r[1]),P(t,"class","svelte-ltkwvy"),on(t,"selected",r[1])},m(w,F){At(w,t,F),N.m(t,null),nt(t,o),nt(t,s),nt(s,a),nt(a,u),nt(u,c),nt(a,f),x&&x.m(a,null),nt(s,g),nt(s,p),nt(p,d),m||(_=[Ce(t,"mouseenter",r[10]),Ce(t,"focus",r[11])],m=!0)},p(w,[F]){var X,R;L===(L=C(w,F))&&N?N.p(w,F):(N.d(1),N=L(w),N&&(N.c(),N.m(t,o))),F&1&&l!==(l=w[0].place_name.replace(/,.*/,"")+"")&&Ji(c,l),F&37&&(h=w[2]==="always"||w[2]&&!w[0].address&&((X=w[0].properties)==null?void 0:X.kind)!=="road"&&((R=w[0].properties)==null?void 0:R.kind)!=="road_relation"&&!w[0].id.startsWith("address.")&&!w[0].id.startsWith("postal_code.")&&(!w[0].id.startsWith("poi.")||!w[5])),h?x?x.p(w,F):(x=_a(w),x.c(),x.m(a,null)):x&&(x.d(1),x=null),F&1&&y!==(y=w[0].place_name.replace(/[^,]*,?\s*/,"")+"")&&Ji(d,y),F&2&&P(t,"data-selected",w[1]),F&2&&on(t,"selected",w[1])},i:It,o:It,d(w){w&&Pt(t),N.d(),x&&x.d(),m=!1,ar(_)}}}function kl(r,t,e){var m;let n,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(m=o.properties)==null?void 0:m.categories;let f,h;function g(_){h&&u.add(h),e(9,n--,n)}function p(_){da.call(this,r,_)}function y(_){da.call(this,r,_)}const d=_=>g(_.currentTarget);return r.$$set=_=>{"feature"in _&&e(0,o=_.feature),"selected"in _&&e(1,s=_.selected),"showPlaceType"in _&&e(2,a=_.showPlaceType),"missingIconsCache"in _&&e(8,u=_.missingIconsCache),"iconsBaseUrl"in _&&e(3,l=_.iconsBaseUrl)},r.$$.update=()=>{var _,C,L,N;if(r.$$.dirty&824)do e(9,n--,n),e(4,f=c==null?void 0:c[n]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!h||u.has(h)));r.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(C=(_=o.properties)==null?void 0:_.categories)==null?void 0:C.join(", "):((N=(L=o.properties)==null?void 0:L.place_type_name)==null?void 0:N[0])??o.place_type[0])},e(9,n=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,g,u,n,p,y,d]}class Gl extends Pr{constructor(t){super(),br(this,t,kl,Bl,xr,{feature:0,selected:1,showPlaceType:2,missingIconsCache:8,iconsBaseUrl:3})}}const Xf="";function zl(r){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',P(t,"class","svelte-7cmwmc")},m(e,n){At(e,t,n)},p:It,i:It,o:It,d(e){e&&Pt(t)}}}class Vl extends Pr{constructor(t){super(),br(this,t,null,zl,xr,{})}}const Yf="";function Ul(r){let t,e;return{c(){t=zn("svg"),e=zn("path"),P(e,"d","M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"),P(t,"width","14"),P(t,"height","14"),P(t,"viewBox","0 0 15 15"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class ql extends Pr{constructor(t){super(),br(this,t,null,Ul,xr,{})}}const Wf="";function Xl(r){let t,e;return{c(){t=zn("svg"),e=zn("path"),P(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),P(t,"viewBox","0 0 14 14"),P(t,"width","13"),P(t,"height","13"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ea extends Pr{constructor(t){super(),br(this,t,null,Xl,xr,{})}}const Hf="";function Yl(r){let t,e;return{c(){t=zn("svg"),e=zn("path"),P(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),P(t,"viewBox","0 0 30 30"),P(t,"fill","none"),P(t,"xmlns","http://www.w3.org/2000/svg"),P(t,"class","svelte-d2loi5")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ia extends Pr{constructor(t){super(),br(this,t,null,Yl,xr,{})}}const jf="";function Ca(r,t,e){const n=r.slice();return n[75]=t[e],n[77]=e,n}function Na(r){let t,e;return t=new Vl({}),{c(){Lr(t.$$.fragment)},m(n,i){ur(t,n,i),e=!0},i(n){e||(Gt(t.$$.fragment,n),e=!0)},o(n){fe(t.$$.fragment,n),e=!1},d(n){lr(t,n)}}}function Sa(r){let t,e,n,i,o;return e=new Pl({}),{c(){t=gt("button"),Lr(e.$$.fragment),P(t,"type","button"),P(t,"title",r[9]),P(t,"class","svelte-1r7dvt7"),on(t,"active",r[0])},m(s,a){At(s,t,a),ur(e,t,null),n=!0,i||(o=Ce(t,"click",r[61]),i=!0)},p(s,a){(!n||a[0]&512)&&P(t,"title",s[9]),(!n||a[0]&1)&&on(t,"active",s[0])},i(s){n||(Gt(e.$$.fragment,s),n=!0)},o(s){fe(e.$$.fragment,s),n=!1},d(s){s&&Pt(t),lr(e),i=!1,o()}}}function Wl(r){let t,e=[],n=new Map,i,o,s,a=ma(r[13]);const u=l=>l[75].id+(l[75].address?","+l[75].address:"");for(let l=0;l<a.length;l+=1){let c=Ca(r,a,l),f=u(c);n.set(f,e[l]=xa(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();P(t,"class","svelte-1r7dvt7")},m(l,c){At(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[Ce(t,"mouseleave",r[65]),Ce(t,"blur",r[66])],o=!0)},p(l,c){c[0]&8940544&&(a=ma(l[13]),Oo(),e=xl(e,c,u,1,l,a,n,t,Sl,xa,null,Ca),To())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Gt(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)fe(e[c]);i=!1},d(l){l&&Pt(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,ar(s)}}}function Hl(r){let t,e,n,i,o,s;return e=new Ia({}),{c(){t=gt("div"),Lr(e.$$.fragment),n=rn(),i=gt("div"),o=wr(r[7]),P(i,"class","svelte-1r7dvt7"),P(t,"class","no-results svelte-1r7dvt7")},m(a,u){At(a,t,u),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Ji(o,a[7])},i(a){s||(Gt(e.$$.fragment,a),s=!0)},o(a){fe(e.$$.fragment,a),s=!1},d(a){a&&Pt(t),lr(e)}}}function jl(r){let t="",e;return{c(){e=wr(t)},m(n,i){At(n,e,i)},p:It,i:It,o:It,d(n){n&&Pt(e)}}}function Kl(r){let t,e,n,i,o,s,a,u,l,c,f;return e=new Ia({}),u=new Ea({}),{c(){t=gt("div"),Lr(e.$$.fragment),n=rn(),i=gt("div"),o=wr(r[6]),s=rn(),a=gt("button"),Lr(u.$$.fragment),P(i,"class","svelte-1r7dvt7"),P(a,"class","svelte-1r7dvt7"),P(t,"class","error svelte-1r7dvt7")},m(h,g){At(h,t,g),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),nt(t,s),nt(t,a),ur(u,a,null),l=!0,c||(f=Ce(a,"click",r[62]),c=!0)},p(h,g){(!l||g[0]&64)&&Ji(o,h[6])},i(h){l||(Gt(e.$$.fragment,h),Gt(u.$$.fragment,h),l=!0)},o(h){fe(e.$$.fragment,h),fe(u.$$.fragment,h),l=!1},d(h){h&&Pt(t),lr(e),lr(u),c=!1,f()}}}function xa(r,t){let e,n,i;function o(){return t[63](t[77])}function s(){return t[64](t[75])}return n=new Gl({props:{feature:t[75],showPlaceType:t[10],selected:t[14]===t[77],missingIconsCache:t[19],iconsBaseUrl:t[11]}}),n.$on("mouseenter",o),n.$on("focus",s),{key:r,first:null,c(){e=pl(),Lr(n.$$.fragment),this.first=e},m(a,u){At(a,e,u),ur(n,a,u),i=!0},p(a,u){t=a;const l={};u[0]&8192&&(l.feature=t[75]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&24576&&(l.selected=t[14]===t[77]),u[0]&2048&&(l.iconsBaseUrl=t[11]),n.$set(l)},i(a){i||(Gt(n.$$.fragment,a),i=!0)},o(a){fe(n.$$.fragment,a),i=!1},d(a){a&&Pt(e),lr(n,a)}}}function Ql(r){let t,e,n,i,o,s,a,u,l,c,f,h,g,p,y,d,m,_,C,L;i=new ql({}),c=new Ea({});let N=r[18]&&Na(),x=r[5]===!0&&Sa(r);const T=r[53].default,A=cl(T,r,r[52],null),w=[Kl,jl,Hl,Wl],F=[];function X(R,Y){var D,W;return R[17]?0:R[15]?((D=R[13])==null?void 0:D.length)===0?2:R[15]&&((W=R[13])!=null&&W.length)?3:-1:1}return~(y=X(r))&&(d=F[y]=w[y](r)),{c(){t=gt("form"),e=gt("div"),n=gt("button"),Lr(i.$$.fragment),o=rn(),s=gt("input"),a=rn(),u=gt("div"),l=gt("button"),Lr(c.$$.fragment),f=rn(),N&&N.c(),h=rn(),x&&x.c(),g=rn(),A&&A.c(),p=rn(),d&&d.c(),P(n,"class","search-button svelte-1r7dvt7"),P(n,"type","button"),P(s,"placeholder",r[8]),P(s,"aria-label",r[8]),P(s,"class","svelte-1r7dvt7"),P(l,"type","button"),P(l,"title",r[3]),P(l,"class","svelte-1r7dvt7"),P(u,"class","clear-button-container svelte-1r7dvt7"),on(u,"displayable",r[1]!==""),P(e,"class","input-group svelte-1r7dvt7"),P(t,"tabindex","0"),P(t,"class",m=ha(r[2])+" svelte-1r7dvt7"),on(t,"can-collapse",r[4]&&r[1]==="")},m(R,Y){At(R,t,Y),nt(t,e),nt(e,n),ur(i,n,null),nt(e,o),nt(e,s),r[55](s),ga(s,r[1]),nt(e,a),nt(e,u),nt(u,l),ur(c,l,null),nt(u,f),N&&N.m(u,null),nt(e,h),x&&x.m(e,null),nt(e,g),A&&A.m(e,null),nt(t,p),~y&&F[y].m(t,null),_=!0,C||(L=[Ce(n,"click",r[54]),Ce(s,"input",r[56]),Ce(s,"focus",r[57]),Ce(s,"blur",r[58]),Ce(s,"keydown",r[21]),Ce(s,"input",r[59]),Ce(l,"click",r[60]),Ce(t,"submit",dl(r[20]))],C=!0)},p(R,Y){(!_||Y[0]&256)&&P(s,"placeholder",R[8]),(!_||Y[0]&256)&&P(s,"aria-label",R[8]),Y[0]&2&&s.value!==R[1]&&ga(s,R[1]),(!_||Y[0]&8)&&P(l,"title",R[3]),R[18]?N?Y[0]&262144&&Gt(N,1):(N=Na(),N.c(),Gt(N,1),N.m(u,null)):N&&(Oo(),fe(N,1,1,()=>{N=null}),To()),(!_||Y[0]&2)&&on(u,"displayable",R[1]!==""),R[5]===!0?x?(x.p(R,Y),Y[0]&32&&Gt(x,1)):(x=Sa(R),x.c(),Gt(x,1),x.m(e,g)):x&&(Oo(),fe(x,1,1,()=>{x=null}),To()),A&&A.p&&(!_||Y[1]&2097152)&&hl(A,T,R,R[52],_?fl(T,R[52],Y,null):gl(R[52]),null);let D=y;y=X(R),y===D?~y&&F[y].p(R,Y):(d&&(Oo(),fe(F[D],1,1,()=>{F[D]=null}),To()),~y?(d=F[y],d?d.p(R,Y):(d=F[y]=w[y](R),d.c()),Gt(d,1),d.m(t,null)):d=null),(!_||Y[0]&4&&m!==(m=ha(R[2])+" svelte-1r7dvt7"))&&P(t,"class",m),(!_||Y[0]&22)&&on(t,"can-collapse",R[4]&&R[1]==="")},i(R){_||(Gt(i.$$.fragment,R),Gt(c.$$.fragment,R),Gt(N),Gt(x),Gt(A,R),Gt(d),_=!0)},o(R){fe(i.$$.fragment,R),fe(c.$$.fragment,R),fe(N),fe(x),fe(A,R),fe(d),_=!1},d(R){R&&Pt(t),lr(i),r[55](null),lr(c),N&&N.d(),x&&x.d(),A&&A.d(R),~y&&F[y].d(),C=!1,ar(L)}}}function Zl(r,t,e){const n=t[1],i=t[0],o=n-i;return r===n&&e?r:((r-i)%o+o)%o+i}function wa(r){let t=[...r];return t[2]<t[0]&&(t[2]+=360),t}function Jl(r,t,e){let n,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:g=200}=t,{enableReverse:p=!1}=t,{errorMessage:y="Something went wrong…"}=t,{filter:d=()=>!0}=t,{flyTo:m=!0}=t,{fuzzyMatch:_=!0}=t,{language:C=void 0}=t,{limit:L=void 0}=t,{mapController:N=void 0}=t,{minLength:x=2}=t,{noResultsMessage:T="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=t,{placeholder:A="Search"}=t,{proximity:w=void 0}=t,{reverseActive:F=p==="always"}=t,{reverseButtonTitle:X="toggle reverse geocoding"}=t,{searchValue:R=""}=t,{showFullGeometry:Y=!0}=t,{showPlaceType:D="ifNeeded"}=t,{showResultsWhileTyping:W=!0}=t,{trackProximity:ut=!0}=t,{types:Et=void 0}=t,{zoom:$t=16}=t,{maxZoom:ce=18}=t,{apiUrl:Cr="https://api.maptiler.com/geocoding"}=t,{fetchParameters:tn={}}=t,{iconsBaseUrl:rr="https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc2/icons/"}=t;function Gn(){ir.focus()}function ji(){ir.blur()}function Nr(S,jt=!0){e(1,R=S),jt?(e(14,Ht=-1),ol()):(na(),setTimeout(()=>{ir.focus(),ir.select()}))}let Ki=!1,ht,Te,at,il="",ir,Ht=-1,or,hs=[],vi,Qi,gs,ta;const Nf=new Set,jr=_l();ml(()=>{N&&(N.setEventHandler(void 0),N.indicateReverse(!1),N.setSelectedMarker(-1),N.setMarkers(void 0,void 0))});function ol(S){if(Qi&&(clearTimeout(Qi),Qi=void 0),Ht>-1&&ht)e(49,at=ht[Ht]),e(1,R=at.place_name.replace(/,.*/,"")),e(17,or=void 0),e(48,Te=void 0),e(14,Ht=-1);else if(R){const jt=S||!sl();ea(R,{exact:!0}).then(()=>{e(48,Te=ht),e(49,at=void 0),jt&&Sf()}).catch(sr=>e(17,or=sr))}}function sl(){return/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(R)}async function ea(S,{byId:jt=!1,exact:sr=!1}={}){e(17,or=void 0);const Zi=sl(),en=new URLSearchParams;C!=null&&en.set("language",Array.isArray(C)?C.join(","):C),Et&&en.set("types",Et.join(",")),Zi||(u&&en.set("bbox",u.map(Kr=>Kr.toFixed(6)).join(",")),h&&en.set("country",Array.isArray(h)?h.join(","):h)),jt||(w&&en.set("proximity",w.map(Kr=>Kr.toFixed(6)).join(",")),(sr||!W)&&en.set("autocomplete","false"),en.set("fuzzyMatch",String(_))),L!==void 0&&(!Zi||(Et==null?void 0:Et.length)===1)&&en.set("limit",String(L)),en.set("key",a);const yi=Cr+"/"+encodeURIComponent(S)+".json?"+en.toString();if(yi===il){jt?(e(13,ht=void 0),e(49,at=hs[0])):e(13,ht=hs);return}il=yi,vi==null||vi.abort();const De=new AbortController;e(18,vi=De);let ia;try{ia=await fetch(yi,{signal:De.signal,...tn}).finally(()=>{De===vi&&e(18,vi=void 0)})}catch(Kr){if(Kr&&typeof Kr=="object"&&"name"in Kr&&Kr.name==="AbortError")return;throw new Error}if(!ia.ok)throw new Error;const oa=await ia.json();jr("response",{url:yi,featureCollection:oa}),jt?(e(13,ht=void 0),e(49,at=oa.features[0]),hs=[at]):(e(13,ht=oa.features.filter(d)),hs=ht,Zi&&ir.focus())}function Sf(){var sr,Zi,en,yi;if(!(Te!=null&&Te.length)||!m)return;const S=[180,90,-180,-90],jt=!Te.some(De=>!De.matching_text);for(const De of Te)(jt||!De.matching_text)&&(S[0]=Math.min(S[0],((sr=De.bbox)==null?void 0:sr[0])??De.center[0]),S[1]=Math.min(S[1],((Zi=De.bbox)==null?void 0:Zi[1])??De.center[1]),S[2]=Math.max(S[2],((en=De.bbox)==null?void 0:en[2])??De.center[0]),S[3]=Math.max(S[3],((yi=De.bbox)==null?void 0:yi[3])??De.center[1]));N&&Te.length>0&&(at&&S[0]===S[2]&&S[1]===S[3]?N.flyTo(at.center,$t):N.fitBounds(wa(S),50,ce))}function xf(S){e(0,F=p==="always"),Nr(Zl(S[0],[-180,180],!0).toFixed(6)+","+S[1].toFixed(6))}function wf(S){if(!ht)return;let jt=S.key==="ArrowDown"?1:S.key==="ArrowUp"?-1:0;jt?(Ht===-1&&jt===-1&&e(14,Ht=ht.length),e(14,Ht+=jt),Ht>=ht.length&&e(14,Ht=-1),S.preventDefault()):["ArrowLeft","ArrowRight","Home","End"].includes(S.key)&&e(14,Ht=-1)}function na(S=!0){if(e(17,or=void 0),W){if(Qi&&clearTimeout(Qi),R.length<x)return;const jt=R;Qi=window.setTimeout(()=>{ea(jt).catch(sr=>e(17,or=sr))},S?g:0)}else e(13,ht=void 0),e(17,or=void 0)}function ra(S){e(49,at=S),e(1,R=S.place_name),e(14,Ht=-1)}const Lf=()=>ir.focus();function bf(S){ds[S?"unshift":"push"](()=>{ir=S,e(16,ir)})}function Pf(){R=this.value,e(1,R),e(12,Ki),e(27,c)}const Rf=()=>e(12,Ki=!0),Of=()=>e(12,Ki=!1),Tf=()=>na(),Df=()=>{e(1,R=""),ir.focus()},Mf=()=>e(0,F=!F),Af=()=>e(17,or=void 0),Ff=S=>e(14,Ht=S),Bf=S=>ra(S),kf=()=>e(14,Ht=-1),Gf=()=>{};return r.$$set=S=>{"class"in S&&e(2,s=S.class),"apiKey"in S&&e(25,a=S.apiKey),"bbox"in S&&e(26,u=S.bbox),"clearButtonTitle"in S&&e(3,l=S.clearButtonTitle),"clearOnBlur"in S&&e(27,c=S.clearOnBlur),"collapsed"in S&&e(4,f=S.collapsed),"country"in S&&e(28,h=S.country),"debounceSearch"in S&&e(29,g=S.debounceSearch),"enableReverse"in S&&e(5,p=S.enableReverse),"errorMessage"in S&&e(6,y=S.errorMessage),"filter"in S&&e(30,d=S.filter),"flyTo"in S&&e(31,m=S.flyTo),"fuzzyMatch"in S&&e(32,_=S.fuzzyMatch),"language"in S&&e(33,C=S.language),"limit"in S&&e(34,L=S.limit),"mapController"in S&&e(35,N=S.mapController),"minLength"in S&&e(36,x=S.minLength),"noResultsMessage"in S&&e(7,T=S.noResultsMessage),"placeholder"in S&&e(8,A=S.placeholder),"proximity"in S&&e(24,w=S.proximity),"reverseActive"in S&&e(0,F=S.reverseActive),"reverseButtonTitle"in S&&e(9,X=S.reverseButtonTitle),"searchValue"in S&&e(1,R=S.searchValue),"showFullGeometry"in S&&e(37,Y=S.showFullGeometry),"showPlaceType"in S&&e(10,D=S.showPlaceType),"showResultsWhileTyping"in S&&e(38,W=S.showResultsWhileTyping),"trackProximity"in S&&e(39,ut=S.trackProximity),"types"in S&&e(40,Et=S.types),"zoom"in S&&e(41,$t=S.zoom),"maxZoom"in S&&e(42,ce=S.maxZoom),"apiUrl"in S&&e(43,Cr=S.apiUrl),"fetchParameters"in S&&e(44,tn=S.fetchParameters),"iconsBaseUrl"in S&&e(11,rr=S.iconsBaseUrl),"$$scope"in S&&e(52,o=S.$$scope)},r.$$.update=()=>{if(r.$$.dirty[1]&256&&(ut||e(24,w=void 0)),r.$$.dirty[0]&134221824&&setTimeout(()=>{e(15,gs=Ki),c&&!Ki&&e(1,R="")}),r.$$.dirty[0]&8194|r.$$.dirty[1]&32&&R.length<x&&(e(49,at=void 0),e(13,ht=void 0),e(17,or=void 0),e(48,Te=ht)),r.$$.dirty[1]&262208&&Y&&at&&!at.address&&at.geometry.type==="Point"&&ea(at.id,{byId:!0}).catch(S=>e(17,or=S)),r.$$.dirty[1]&789521&&(N&&at&&at.id!==ta&&m&&(!at.bbox||at.bbox[0]===at.bbox[2]&&at.bbox[1]===at.bbox[3]?N.flyTo(at.center,at.id.startsWith("poi.")||at.id.startsWith("address.")?ce:$t):N.fitBounds(wa(at.bbox),50,ce),e(13,ht=void 0),e(48,Te=void 0),e(14,Ht=-1)),e(50,ta=at==null?void 0:at.id)),r.$$.dirty[0]&8192|r.$$.dirty[1]&131072&&Te!==ht&&e(48,Te=void 0),r.$$.dirty[1]&393232&&N&&N.setMarkers(Te,at),r.$$.dirty[0]&2&&e(14,Ht=-1),r.$$.dirty[0]&40961|r.$$.dirty[1]&272&&N&&N.setEventHandler(S=>{switch(S.type){case"mapClick":F&&xf(S.coordinates);break;case"proximityChange":e(24,w=ut?S.proximity:void 0);break;case"markerClick":{const jt=ht==null?void 0:ht.find(sr=>sr.id===S.id);jt&&ra(jt)}break;case"markerMouseEnter":e(14,Ht=gs?(ht==null?void 0:ht.findIndex(jt=>jt.id===S.id))??-1:-1);break;case"markerMouseLeave":e(14,Ht=-1);break}}),r.$$.dirty[0]&16384|r.$$.dirty[1]&16&&(N==null||N.setSelectedMarker(Ht)),r.$$.dirty[0]&24576&&e(51,n=ht==null?void 0:ht[Ht]),r.$$.dirty[0]&2|r.$$.dirty[1]&16){const S=/^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(R);N==null||N.setReverseMarker(S?[Number(S[1]),Number(S[2])]:void 0)}r.$$.dirty[1]&1048576&&jr("select",n),r.$$.dirty[1]&262144&&jr("pick",at),r.$$.dirty[0]&40960&&jr("optionsVisibilityChange",gs&&!!ht),r.$$.dirty[0]&8192&&jr("featuresListed",ht),r.$$.dirty[1]&131072&&jr("featuresMarked",Te),r.$$.dirty[0]&1&&jr("reverseToggle",F),r.$$.dirty[0]&2&&jr("queryChange",R),r.$$.dirty[0]&1|r.$$.dirty[1]&16&&N&&N.indicateReverse(F)},[F,R,s,l,f,p,y,T,A,X,D,rr,Ki,ht,Ht,gs,ir,or,vi,Nf,ol,wf,na,ra,w,a,u,c,h,g,d,m,_,C,L,N,x,Y,W,ut,Et,$t,ce,Cr,tn,Gn,ji,Nr,Te,at,ta,n,o,i,Lf,bf,Pf,Rf,Of,Tf,Df,Mf,Af,Ff,Bf,kf,Gf]}let $l=class extends Pr{constructor(t){super(),br(this,t,Jl,Ql,xr,{class:2,apiKey:25,bbox:26,clearButtonTitle:3,clearOnBlur:27,collapsed:4,country:28,debounceSearch:29,enableReverse:5,errorMessage:6,filter:30,flyTo:31,fuzzyMatch:32,language:33,limit:34,mapController:35,minLength:36,noResultsMessage:7,placeholder:8,proximity:24,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:37,showPlaceType:10,showResultsWhileTyping:38,trackProximity:39,types:40,zoom:41,maxZoom:42,apiUrl:43,fetchParameters:44,iconsBaseUrl:11,focus:45,blur:46,setQuery:47},null,[-1,-1,-1])}get focus(){return this.$$.ctx[45]}get blur(){return this.$$.ctx[46]}get setQuery(){return this.$$.ctx[47]}};/**
2
2
  * splaytree v3.1.1
3
3
  * Fast Splay tree for Node and browser
4
4
  *
package/maplibregl.js CHANGED
@@ -1420,7 +1420,7 @@ function _a(r) {
1420
1420
  return t[2] < t[0] && (t[2] += 360), t;
1421
1421
  }
1422
1422
  function gc(r, t, e) {
1423
- let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: v = "Something went wrong…" } = t, { filter: y = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: m = !0 } = t, { language: N = void 0 } = t, { limit: S = void 0 } = t, { mapController: C = void 0 } = t, { minLength: w = 2 } = t, { noResultsMessage: T = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: L = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: D = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: ir = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Ve = {} } = t, { iconsBaseUrl: Bn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc1/icons/" } = t;
1423
+ let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: v = "Something went wrong…" } = t, { filter: y = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: m = !0 } = t, { language: N = void 0 } = t, { limit: S = void 0 } = t, { mapController: C = void 0 } = t, { minLength: w = 2 } = t, { noResultsMessage: T = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: L = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: D = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: ir = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Ve = {} } = t, { iconsBaseUrl: Bn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc2/icons/" } = t;
1424
1424
  function In() {
1425
1425
  kn.focus();
1426
1426
  }
package/maplibregl.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- var zf=Object.defineProperty;var Uf=(ct,vt,te)=>vt in ct?zf(ct,vt,{enumerable:!0,configurable:!0,writable:!0,value:te}):ct[vt]=te;var sa=(ct,vt,te)=>(Uf(ct,typeof vt!="symbol"?vt+"":vt,te),te),al=(ct,vt,te)=>{if(!vt.has(ct))throw TypeError("Cannot "+te)};var sr=(ct,vt,te)=>(al(ct,vt,"read from private field"),te?te.call(ct):vt.get(ct)),aa=(ct,vt,te)=>{if(vt.has(ct))throw TypeError("Cannot add the same private member more than once");vt instanceof WeakSet?vt.add(ct):vt.set(ct,te)},ps=(ct,vt,te,bo)=>(al(ct,vt,"write to private field"),bo?bo.call(ct,te):vt.set(ct,te),te);(function(ct,vt){typeof exports=="object"&&typeof module<"u"?vt(exports,require("maplibre-gl")):typeof define=="function"&&define.amd?define(["exports","maplibre-gl"],vt):(ct=typeof globalThis<"u"?globalThis:ct||self,vt(ct.maplibreglMaptilerGeocoder={},ct.maplibregl))})(this,function(ct,vt){var kn,pi;"use strict";function te(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const bo=te(vt);function It(){}function ul(r,t){for(const e in t)r[e]=t[e];return r}function ua(r){return r()}function la(){return Object.create(null)}function ar(r){r.forEach(ua)}function ca(r){return typeof r=="function"}function xr(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}let Po;function Me(r,t){return r===t?!0:(Po||(Po=document.createElement("a")),Po.href=t,r===Po.href)}function ll(r){return Object.keys(r).length===0}function cl(r,t,e,n){if(r){const i=fa(r,t,e,n);return r[0](i)}}function fa(r,t,e,n){return r[1]&&n?ul(e.ctx.slice(),r[1](n(t))):e.ctx}function fl(r,t,e,n){if(r[2]&&n){const i=r[2](n(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function hl(r,t,e,n,i,o){if(i){const s=fa(t,e,n,o);r.p(s,i)}}function gl(r){if(r.ctx.length>32){const t=[],e=r.ctx.length/32;for(let n=0;n<e;n++)t[n]=-1;return t}return-1}function ha(r){return r??""}function nt(r,t){r.appendChild(t)}function At(r,t,e){r.insertBefore(t,e||null)}function Pt(r){r.parentNode&&r.parentNode.removeChild(r)}function gt(r){return document.createElement(r)}function Vn(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Sr(r){return document.createTextNode(r)}function nn(){return Sr(" ")}function pl(){return Sr("")}function Ce(r,t,e,n){return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}function dl(r){return function(t){return t.preventDefault(),r.call(this,t)}}function P(r,t,e){e==null?r.removeAttribute(t):r.getAttribute(t)!==e&&r.setAttribute(t,e)}function vl(r){return Array.from(r.childNodes)}function Zi(r,t){t=""+t,r.data!==t&&(r.data=t)}function ga(r,t){r.value=t??""}function rn(r,t,e){r.classList.toggle(t,!!e)}function yl(r,t,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(r,{detail:t,bubbles:e,cancelable:n})}let Ji;function $i(r){Ji=r}function pa(){if(!Ji)throw new Error("Function called outside component initialization");return Ji}function ml(r){pa().$$.on_destroy.push(r)}function _l(){const r=pa();return(t,e,{cancelable:n=!1}={})=>{const i=r.$$.callbacks[t];if(i){const o=yl(t,e,{cancelable:n});return i.slice().forEach(s=>{s.call(r,o)}),!o.defaultPrevented}return!0}}function da(r,t){const e=r.$$.callbacks[t.type];e&&e.slice().forEach(n=>n.call(this,t))}const yi=[],ds=[];let mi=[];const va=[],El=Promise.resolve();let vs=!1;function Il(){vs||(vs=!0,El.then(ya))}function ys(r){mi.push(r)}const ms=new Set;let _i=0;function ya(){if(_i!==0)return;const r=Ji;do{try{for(;_i<yi.length;){const t=yi[_i];_i++,$i(t),Cl(t.$$)}}catch(t){throw yi.length=0,_i=0,t}for($i(null),yi.length=0,_i=0;ds.length;)ds.pop()();for(let t=0;t<mi.length;t+=1){const e=mi[t];ms.has(e)||(ms.add(e),e())}mi.length=0}while(yi.length);for(;va.length;)va.pop()();vs=!1,ms.clear(),$i(r)}function Cl(r){if(r.fragment!==null){r.update(),ar(r.before_update);const t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(ys)}}function Nl(r){const t=[],e=[];mi.forEach(n=>r.indexOf(n)===-1?t.push(n):e.push(n)),e.forEach(n=>n()),mi=t}const Ro=new Set;let Kr;function Oo(){Kr={r:0,c:[],p:Kr}}function To(){Kr.r||ar(Kr.c),Kr=Kr.p}function Gt(r,t){r&&r.i&&(Ro.delete(r),r.i(t))}function fe(r,t,e,n){if(r&&r.o){if(Ro.has(r))return;Ro.add(r),Kr.c.push(()=>{Ro.delete(r),n&&(e&&r.d(1),n())}),r.o(t)}else n&&n()}function ma(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function xl(r,t){fe(r,1,1,()=>{t.delete(r.key)})}function Sl(r,t,e,n,i,o,s,a,u,l,c,f){let h=r.length,g=o.length,p=h;const v={};for(;p--;)v[r[p].key]=p;const y=[],_=new Map,m=new Map,N=[];for(p=g;p--;){const T=f(i,o,p),A=e(T);let L=s.get(A);L?n&&N.push(()=>L.p(T,t)):(L=l(A,T),L.c()),_.set(A,y[p]=L),A in v&&m.set(A,Math.abs(p-v[A]))}const S=new Set,C=new Set;function w(T){Gt(T,1),T.m(a,c),s.set(T.key,T),c=T.first,g--}for(;h&&g;){const T=y[g-1],A=r[h-1],L=T.key,F=A.key;T===A?(c=T.first,h--,g--):_.has(F)?!s.has(L)||S.has(L)?w(T):C.has(F)?h--:m.get(L)>m.get(F)?(C.add(L),w(T)):(S.add(F),h--):(u(A,s),h--)}for(;h--;){const T=r[h];_.has(T.key)||u(T,s)}for(;g;)w(y[g-1]);return ar(N),y}function wr(r){r&&r.c()}function ur(r,t,e){const{fragment:n,after_update:i}=r.$$;n&&n.m(t,e),ys(()=>{const o=r.$$.on_mount.map(ua).filter(ca);r.$$.on_destroy?r.$$.on_destroy.push(...o):ar(o),r.$$.on_mount=[]}),i.forEach(ys)}function lr(r,t){const e=r.$$;e.fragment!==null&&(Nl(e.after_update),ar(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function wl(r,t){r.$$.dirty[0]===-1&&(yi.push(r),Il(),r.$$.dirty.fill(0)),r.$$.dirty[t/31|0]|=1<<t%31}function Lr(r,t,e,n,i,o,s,a=[-1]){const u=Ji;$i(r);const l=r.$$={fragment:null,ctx:[],props:o,update:It,not_equal:i,bound:la(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:la(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(r,t.props||{},(f,h,...g)=>{const p=g.length?g[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&wl(r,f)),h}):[],l.update(),c=!0,ar(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const f=vl(t.target);l.fragment&&l.fragment.l(f),f.forEach(Pt)}else l.fragment&&l.fragment.c();t.intro&&Gt(r.$$.fragment),ur(r,t.target,t.anchor),ya()}$i(u)}class br{constructor(){sa(this,"$$");sa(this,"$$set")}$destroy(){lr(this,1),this.$destroy=It}$on(t,e){if(!ca(e))return It;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ll(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ll="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ll);const qf="";function bl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),P(t,"viewBox","0 0 60.006 21.412"),P(t,"width","14"),P(t,"height","20"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Pl extends br{constructor(t){super(),Lr(this,t,null,bl,xr,{})}}const Xf="";function Rl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"area.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"area.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ol(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"poi.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"poi.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Tl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"postal_code.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"postal_code.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Dl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"street.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"street.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ml(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"road.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"road.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Al(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"housenumber.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"housenumber.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Fl(r){let t,e,n,i;return{c(){t=gt("img"),Me(t.src,e=r[5])||P(t,"src",e),P(t,"alt",r[4]),P(t,"class","svelte-ltkwvy")},m(o,s){At(o,t,s),n||(i=Ce(t,"error",r[12]),n=!0)},p(o,s){s&32&&!Me(t.src,e=o[5])&&P(t,"src",e),s&16&&P(t,"alt",o[4])},d(o){o&&Pt(t),n=!1,i()}}}function _a(r){let t,e;return{c(){t=gt("span"),e=Sr(r[6]),P(t,"class","secondary svelte-ltkwvy")},m(n,i){At(n,t,i),nt(t,e)},p(n,i){i&64&&Zi(e,n[6])},d(n){n&&Pt(t)}}}function Bl(r){var T,A;let t,e,n,i,o,s,a,u,l=r[0].place_name.replace(/,.*/,"")+"",c,f,h=r[2]==="always"||r[2]&&!r[0].address&&((T=r[0].properties)==null?void 0:T.kind)!=="road"&&((A=r[0].properties)==null?void 0:A.kind)!=="road_relation"&&!r[0].id.startsWith("address.")&&!r[0].id.startsWith("postal_code.")&&(!r[0].id.startsWith("poi.")||!r[5]),g,p,v=r[0].place_name.replace(/[^,]*,?\s*/,"")+"",y,_,m;function N(L,F){var X,R;return F&1&&(e=null),F&1&&(n=null),F&1&&(i=null),L[5]?Fl:L[0].address?Al:((X=L[0].properties)==null?void 0:X.kind)==="road"||((R=L[0].properties)==null?void 0:R.kind)==="road_relation"?Ml:(e==null&&(e=!!L[0].id.startsWith("address.")),e?Dl:(n==null&&(n=!!L[0].id.startsWith("postal_code.")),n?Tl:(i==null&&(i=!!L[0].id.startsWith("poi.")),i?Ol:Rl)))}let S=N(r,-1),C=S(r),w=h&&_a(r);return{c(){t=gt("li"),C.c(),o=nn(),s=gt("span"),a=gt("span"),u=gt("span"),c=Sr(l),f=nn(),w&&w.c(),g=nn(),p=gt("span"),y=Sr(v),P(u,"class","primary svelte-ltkwvy"),P(a,"class","svelte-ltkwvy"),P(p,"class","line2 svelte-ltkwvy"),P(s,"class","texts svelte-ltkwvy"),P(t,"tabindex","0"),P(t,"data-selected",r[1]),P(t,"class","svelte-ltkwvy"),rn(t,"selected",r[1])},m(L,F){At(L,t,F),C.m(t,null),nt(t,o),nt(t,s),nt(s,a),nt(a,u),nt(u,c),nt(a,f),w&&w.m(a,null),nt(s,g),nt(s,p),nt(p,y),_||(m=[Ce(t,"mouseenter",r[10]),Ce(t,"focus",r[11])],_=!0)},p(L,[F]){var X,R;S===(S=N(L,F))&&C?C.p(L,F):(C.d(1),C=S(L),C&&(C.c(),C.m(t,o))),F&1&&l!==(l=L[0].place_name.replace(/,.*/,"")+"")&&Zi(c,l),F&37&&(h=L[2]==="always"||L[2]&&!L[0].address&&((X=L[0].properties)==null?void 0:X.kind)!=="road"&&((R=L[0].properties)==null?void 0:R.kind)!=="road_relation"&&!L[0].id.startsWith("address.")&&!L[0].id.startsWith("postal_code.")&&(!L[0].id.startsWith("poi.")||!L[5])),h?w?w.p(L,F):(w=_a(L),w.c(),w.m(a,null)):w&&(w.d(1),w=null),F&1&&v!==(v=L[0].place_name.replace(/[^,]*,?\s*/,"")+"")&&Zi(y,v),F&2&&P(t,"data-selected",L[1]),F&2&&rn(t,"selected",L[1])},i:It,o:It,d(L){L&&Pt(t),C.d(),w&&w.d(),_=!1,ar(m)}}}function kl(r,t,e){var _;let n,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(_=o.properties)==null?void 0:_.categories;let f,h;function g(m){h&&u.add(h),e(9,n--,n)}function p(m){da.call(this,r,m)}function v(m){da.call(this,r,m)}const y=m=>g(m.currentTarget);return r.$$set=m=>{"feature"in m&&e(0,o=m.feature),"selected"in m&&e(1,s=m.selected),"showPlaceType"in m&&e(2,a=m.showPlaceType),"missingIconsCache"in m&&e(8,u=m.missingIconsCache),"iconsBaseUrl"in m&&e(3,l=m.iconsBaseUrl)},r.$$.update=()=>{var m,N,S,C;if(r.$$.dirty&824)do e(9,n--,n),e(4,f=c==null?void 0:c[n]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!h||u.has(h)));r.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(N=(m=o.properties)==null?void 0:m.categories)==null?void 0:N.join(", "):((C=(S=o.properties)==null?void 0:S.place_type_name)==null?void 0:C[0])??o.place_type[0])},e(9,n=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,g,u,n,p,v,y]}class Gl extends br{constructor(t){super(),Lr(this,t,kl,Bl,xr,{feature:0,selected:1,showPlaceType:2,missingIconsCache:8,iconsBaseUrl:3})}}const Yf="";function Vl(r){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',P(t,"class","svelte-7cmwmc")},m(e,n){At(e,t,n)},p:It,i:It,o:It,d(e){e&&Pt(t)}}}class zl extends br{constructor(t){super(),Lr(this,t,null,Vl,xr,{})}}const Wf="";function Ul(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"),P(t,"width","14"),P(t,"height","14"),P(t,"viewBox","0 0 15 15"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class ql extends br{constructor(t){super(),Lr(this,t,null,Ul,xr,{})}}const Hf="";function Xl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),P(t,"viewBox","0 0 14 14"),P(t,"width","13"),P(t,"height","13"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ea extends br{constructor(t){super(),Lr(this,t,null,Xl,xr,{})}}const jf="";function Yl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),P(t,"viewBox","0 0 30 30"),P(t,"fill","none"),P(t,"xmlns","http://www.w3.org/2000/svg"),P(t,"class","svelte-d2loi5")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ia extends br{constructor(t){super(),Lr(this,t,null,Yl,xr,{})}}const Kf="";function Ca(r,t,e){const n=r.slice();return n[75]=t[e],n[77]=e,n}function Na(r){let t,e;return t=new zl({}),{c(){wr(t.$$.fragment)},m(n,i){ur(t,n,i),e=!0},i(n){e||(Gt(t.$$.fragment,n),e=!0)},o(n){fe(t.$$.fragment,n),e=!1},d(n){lr(t,n)}}}function xa(r){let t,e,n,i,o;return e=new Pl({}),{c(){t=gt("button"),wr(e.$$.fragment),P(t,"type","button"),P(t,"title",r[9]),P(t,"class","svelte-1r7dvt7"),rn(t,"active",r[0])},m(s,a){At(s,t,a),ur(e,t,null),n=!0,i||(o=Ce(t,"click",r[61]),i=!0)},p(s,a){(!n||a[0]&512)&&P(t,"title",s[9]),(!n||a[0]&1)&&rn(t,"active",s[0])},i(s){n||(Gt(e.$$.fragment,s),n=!0)},o(s){fe(e.$$.fragment,s),n=!1},d(s){s&&Pt(t),lr(e),i=!1,o()}}}function Wl(r){let t,e=[],n=new Map,i,o,s,a=ma(r[13]);const u=l=>l[75].id+(l[75].address?","+l[75].address:"");for(let l=0;l<a.length;l+=1){let c=Ca(r,a,l),f=u(c);n.set(f,e[l]=Sa(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();P(t,"class","svelte-1r7dvt7")},m(l,c){At(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[Ce(t,"mouseleave",r[65]),Ce(t,"blur",r[66])],o=!0)},p(l,c){c[0]&8940544&&(a=ma(l[13]),Oo(),e=Sl(e,c,u,1,l,a,n,t,xl,Sa,null,Ca),To())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Gt(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)fe(e[c]);i=!1},d(l){l&&Pt(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,ar(s)}}}function Hl(r){let t,e,n,i,o,s;return e=new Ia({}),{c(){t=gt("div"),wr(e.$$.fragment),n=nn(),i=gt("div"),o=Sr(r[7]),P(i,"class","svelte-1r7dvt7"),P(t,"class","no-results svelte-1r7dvt7")},m(a,u){At(a,t,u),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Zi(o,a[7])},i(a){s||(Gt(e.$$.fragment,a),s=!0)},o(a){fe(e.$$.fragment,a),s=!1},d(a){a&&Pt(t),lr(e)}}}function jl(r){let t="",e;return{c(){e=Sr(t)},m(n,i){At(n,e,i)},p:It,i:It,o:It,d(n){n&&Pt(e)}}}function Kl(r){let t,e,n,i,o,s,a,u,l,c,f;return e=new Ia({}),u=new Ea({}),{c(){t=gt("div"),wr(e.$$.fragment),n=nn(),i=gt("div"),o=Sr(r[6]),s=nn(),a=gt("button"),wr(u.$$.fragment),P(i,"class","svelte-1r7dvt7"),P(a,"class","svelte-1r7dvt7"),P(t,"class","error svelte-1r7dvt7")},m(h,g){At(h,t,g),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),nt(t,s),nt(t,a),ur(u,a,null),l=!0,c||(f=Ce(a,"click",r[62]),c=!0)},p(h,g){(!l||g[0]&64)&&Zi(o,h[6])},i(h){l||(Gt(e.$$.fragment,h),Gt(u.$$.fragment,h),l=!0)},o(h){fe(e.$$.fragment,h),fe(u.$$.fragment,h),l=!1},d(h){h&&Pt(t),lr(e),lr(u),c=!1,f()}}}function Sa(r,t){let e,n,i;function o(){return t[63](t[77])}function s(){return t[64](t[75])}return n=new Gl({props:{feature:t[75],showPlaceType:t[10],selected:t[14]===t[77],missingIconsCache:t[19],iconsBaseUrl:t[11]}}),n.$on("mouseenter",o),n.$on("focus",s),{key:r,first:null,c(){e=pl(),wr(n.$$.fragment),this.first=e},m(a,u){At(a,e,u),ur(n,a,u),i=!0},p(a,u){t=a;const l={};u[0]&8192&&(l.feature=t[75]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&24576&&(l.selected=t[14]===t[77]),u[0]&2048&&(l.iconsBaseUrl=t[11]),n.$set(l)},i(a){i||(Gt(n.$$.fragment,a),i=!0)},o(a){fe(n.$$.fragment,a),i=!1},d(a){a&&Pt(e),lr(n,a)}}}function Ql(r){let t,e,n,i,o,s,a,u,l,c,f,h,g,p,v,y,_,m,N,S;i=new ql({}),c=new Ea({});let C=r[18]&&Na(),w=r[5]===!0&&xa(r);const T=r[53].default,A=cl(T,r,r[52],null),L=[Kl,jl,Hl,Wl],F=[];function X(R,Y){var D,W;return R[17]?0:R[15]?((D=R[13])==null?void 0:D.length)===0?2:R[15]&&((W=R[13])!=null&&W.length)?3:-1:1}return~(v=X(r))&&(y=F[v]=L[v](r)),{c(){t=gt("form"),e=gt("div"),n=gt("button"),wr(i.$$.fragment),o=nn(),s=gt("input"),a=nn(),u=gt("div"),l=gt("button"),wr(c.$$.fragment),f=nn(),C&&C.c(),h=nn(),w&&w.c(),g=nn(),A&&A.c(),p=nn(),y&&y.c(),P(n,"class","search-button svelte-1r7dvt7"),P(n,"type","button"),P(s,"placeholder",r[8]),P(s,"aria-label",r[8]),P(s,"class","svelte-1r7dvt7"),P(l,"type","button"),P(l,"title",r[3]),P(l,"class","svelte-1r7dvt7"),P(u,"class","clear-button-container svelte-1r7dvt7"),rn(u,"displayable",r[1]!==""),P(e,"class","input-group svelte-1r7dvt7"),P(t,"tabindex","0"),P(t,"class",_=ha(r[2])+" svelte-1r7dvt7"),rn(t,"can-collapse",r[4]&&r[1]==="")},m(R,Y){At(R,t,Y),nt(t,e),nt(e,n),ur(i,n,null),nt(e,o),nt(e,s),r[55](s),ga(s,r[1]),nt(e,a),nt(e,u),nt(u,l),ur(c,l,null),nt(u,f),C&&C.m(u,null),nt(e,h),w&&w.m(e,null),nt(e,g),A&&A.m(e,null),nt(t,p),~v&&F[v].m(t,null),m=!0,N||(S=[Ce(n,"click",r[54]),Ce(s,"input",r[56]),Ce(s,"focus",r[57]),Ce(s,"blur",r[58]),Ce(s,"keydown",r[21]),Ce(s,"input",r[59]),Ce(l,"click",r[60]),Ce(t,"submit",dl(r[20]))],N=!0)},p(R,Y){(!m||Y[0]&256)&&P(s,"placeholder",R[8]),(!m||Y[0]&256)&&P(s,"aria-label",R[8]),Y[0]&2&&s.value!==R[1]&&ga(s,R[1]),(!m||Y[0]&8)&&P(l,"title",R[3]),R[18]?C?Y[0]&262144&&Gt(C,1):(C=Na(),C.c(),Gt(C,1),C.m(u,null)):C&&(Oo(),fe(C,1,1,()=>{C=null}),To()),(!m||Y[0]&2)&&rn(u,"displayable",R[1]!==""),R[5]===!0?w?(w.p(R,Y),Y[0]&32&&Gt(w,1)):(w=xa(R),w.c(),Gt(w,1),w.m(e,g)):w&&(Oo(),fe(w,1,1,()=>{w=null}),To()),A&&A.p&&(!m||Y[1]&2097152)&&hl(A,T,R,R[52],m?fl(T,R[52],Y,null):gl(R[52]),null);let D=v;v=X(R),v===D?~v&&F[v].p(R,Y):(y&&(Oo(),fe(F[D],1,1,()=>{F[D]=null}),To()),~v?(y=F[v],y?y.p(R,Y):(y=F[v]=L[v](R),y.c()),Gt(y,1),y.m(t,null)):y=null),(!m||Y[0]&4&&_!==(_=ha(R[2])+" svelte-1r7dvt7"))&&P(t,"class",_),(!m||Y[0]&22)&&rn(t,"can-collapse",R[4]&&R[1]==="")},i(R){m||(Gt(i.$$.fragment,R),Gt(c.$$.fragment,R),Gt(C),Gt(w),Gt(A,R),Gt(y),m=!0)},o(R){fe(i.$$.fragment,R),fe(c.$$.fragment,R),fe(C),fe(w),fe(A,R),fe(y),m=!1},d(R){R&&Pt(t),lr(i),r[55](null),lr(c),C&&C.d(),w&&w.d(),A&&A.d(R),~v&&F[v].d(),N=!1,ar(S)}}}function Zl(r,t,e){const n=t[1],i=t[0],o=n-i;return r===n&&e?r:((r-i)%o+o)%o+i}function wa(r){let t=[...r];return t[2]<t[0]&&(t[2]+=360),t}function Jl(r,t,e){let n,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:g=200}=t,{enableReverse:p=!1}=t,{errorMessage:v="Something went wrong…"}=t,{filter:y=()=>!0}=t,{flyTo:_=!0}=t,{fuzzyMatch:m=!0}=t,{language:N=void 0}=t,{limit:S=void 0}=t,{mapController:C=void 0}=t,{minLength:w=2}=t,{noResultsMessage:T="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=t,{placeholder:A="Search"}=t,{proximity:L=void 0}=t,{reverseActive:F=p==="always"}=t,{reverseButtonTitle:X="toggle reverse geocoding"}=t,{searchValue:R=""}=t,{showFullGeometry:Y=!0}=t,{showPlaceType:D="ifNeeded"}=t,{showResultsWhileTyping:W=!0}=t,{trackProximity:ut=!0}=t,{types:Et=void 0}=t,{zoom:$t=16}=t,{maxZoom:ce=18}=t,{apiUrl:Cr="https://api.maptiler.com/geocoding"}=t,{fetchParameters:tn={}}=t,{iconsBaseUrl:nr="https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc1/icons/"}=t;function Gn(){rr.focus()}function Hi(){rr.blur()}function Nr(x,jt=!0){e(1,R=x),jt?(e(14,Ht=-1),ol()):(na(),setTimeout(()=>{rr.focus(),rr.select()}))}let ji=!1,ht,Te,at,il="",rr,Ht=-1,ir,hs=[],di,Ki,gs,ta;const xf=new Set,Hr=_l();ml(()=>{C&&(C.setEventHandler(void 0),C.indicateReverse(!1),C.setSelectedMarker(-1),C.setMarkers(void 0,void 0))});function ol(x){if(Ki&&(clearTimeout(Ki),Ki=void 0),Ht>-1&&ht)e(49,at=ht[Ht]),e(1,R=at.place_name.replace(/,.*/,"")),e(17,ir=void 0),e(48,Te=void 0),e(14,Ht=-1);else if(R){const jt=x||!sl();ea(R,{exact:!0}).then(()=>{e(48,Te=ht),e(49,at=void 0),jt&&Sf()}).catch(or=>e(17,ir=or))}}function sl(){return/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(R)}async function ea(x,{byId:jt=!1,exact:or=!1}={}){e(17,ir=void 0);const Qi=sl(),en=new URLSearchParams;N!=null&&en.set("language",Array.isArray(N)?N.join(","):N),Et&&en.set("types",Et.join(",")),Qi||(u&&en.set("bbox",u.map(jr=>jr.toFixed(6)).join(",")),h&&en.set("country",Array.isArray(h)?h.join(","):h)),jt||(L&&en.set("proximity",L.map(jr=>jr.toFixed(6)).join(",")),(or||!W)&&en.set("autocomplete","false"),en.set("fuzzyMatch",String(m))),S!==void 0&&(!Qi||(Et==null?void 0:Et.length)===1)&&en.set("limit",String(S)),en.set("key",a);const vi=Cr+"/"+encodeURIComponent(x)+".json?"+en.toString();if(vi===il){jt?(e(13,ht=void 0),e(49,at=hs[0])):e(13,ht=hs);return}il=vi,di==null||di.abort();const De=new AbortController;e(18,di=De);let ia;try{ia=await fetch(vi,{signal:De.signal,...tn}).finally(()=>{De===di&&e(18,di=void 0)})}catch(jr){if(jr&&typeof jr=="object"&&"name"in jr&&jr.name==="AbortError")return;throw new Error}if(!ia.ok)throw new Error;const oa=await ia.json();Hr("response",{url:vi,featureCollection:oa}),jt?(e(13,ht=void 0),e(49,at=oa.features[0]),hs=[at]):(e(13,ht=oa.features.filter(y)),hs=ht,Qi&&rr.focus())}function Sf(){var or,Qi,en,vi;if(!(Te!=null&&Te.length)||!_)return;const x=[180,90,-180,-90],jt=!Te.some(De=>!De.matching_text);for(const De of Te)(jt||!De.matching_text)&&(x[0]=Math.min(x[0],((or=De.bbox)==null?void 0:or[0])??De.center[0]),x[1]=Math.min(x[1],((Qi=De.bbox)==null?void 0:Qi[1])??De.center[1]),x[2]=Math.max(x[2],((en=De.bbox)==null?void 0:en[2])??De.center[0]),x[3]=Math.max(x[3],((vi=De.bbox)==null?void 0:vi[3])??De.center[1]));C&&Te.length>0&&(at&&x[0]===x[2]&&x[1]===x[3]?C.flyTo(at.center,$t):C.fitBounds(wa(x),50,ce))}function wf(x){e(0,F=p==="always"),Nr(Zl(x[0],[-180,180],!0).toFixed(6)+","+x[1].toFixed(6))}function Lf(x){if(!ht)return;let jt=x.key==="ArrowDown"?1:x.key==="ArrowUp"?-1:0;jt?(Ht===-1&&jt===-1&&e(14,Ht=ht.length),e(14,Ht+=jt),Ht>=ht.length&&e(14,Ht=-1),x.preventDefault()):["ArrowLeft","ArrowRight","Home","End"].includes(x.key)&&e(14,Ht=-1)}function na(x=!0){if(e(17,ir=void 0),W){if(Ki&&clearTimeout(Ki),R.length<w)return;const jt=R;Ki=window.setTimeout(()=>{ea(jt).catch(or=>e(17,ir=or))},x?g:0)}else e(13,ht=void 0),e(17,ir=void 0)}function ra(x){e(49,at=x),e(1,R=x.place_name),e(14,Ht=-1)}const bf=()=>rr.focus();function Pf(x){ds[x?"unshift":"push"](()=>{rr=x,e(16,rr)})}function Rf(){R=this.value,e(1,R),e(12,ji),e(27,c)}const Of=()=>e(12,ji=!0),Tf=()=>e(12,ji=!1),Df=()=>na(),Mf=()=>{e(1,R=""),rr.focus()},Af=()=>e(0,F=!F),Ff=()=>e(17,ir=void 0),Bf=x=>e(14,Ht=x),kf=x=>ra(x),Gf=()=>e(14,Ht=-1),Vf=()=>{};return r.$$set=x=>{"class"in x&&e(2,s=x.class),"apiKey"in x&&e(25,a=x.apiKey),"bbox"in x&&e(26,u=x.bbox),"clearButtonTitle"in x&&e(3,l=x.clearButtonTitle),"clearOnBlur"in x&&e(27,c=x.clearOnBlur),"collapsed"in x&&e(4,f=x.collapsed),"country"in x&&e(28,h=x.country),"debounceSearch"in x&&e(29,g=x.debounceSearch),"enableReverse"in x&&e(5,p=x.enableReverse),"errorMessage"in x&&e(6,v=x.errorMessage),"filter"in x&&e(30,y=x.filter),"flyTo"in x&&e(31,_=x.flyTo),"fuzzyMatch"in x&&e(32,m=x.fuzzyMatch),"language"in x&&e(33,N=x.language),"limit"in x&&e(34,S=x.limit),"mapController"in x&&e(35,C=x.mapController),"minLength"in x&&e(36,w=x.minLength),"noResultsMessage"in x&&e(7,T=x.noResultsMessage),"placeholder"in x&&e(8,A=x.placeholder),"proximity"in x&&e(24,L=x.proximity),"reverseActive"in x&&e(0,F=x.reverseActive),"reverseButtonTitle"in x&&e(9,X=x.reverseButtonTitle),"searchValue"in x&&e(1,R=x.searchValue),"showFullGeometry"in x&&e(37,Y=x.showFullGeometry),"showPlaceType"in x&&e(10,D=x.showPlaceType),"showResultsWhileTyping"in x&&e(38,W=x.showResultsWhileTyping),"trackProximity"in x&&e(39,ut=x.trackProximity),"types"in x&&e(40,Et=x.types),"zoom"in x&&e(41,$t=x.zoom),"maxZoom"in x&&e(42,ce=x.maxZoom),"apiUrl"in x&&e(43,Cr=x.apiUrl),"fetchParameters"in x&&e(44,tn=x.fetchParameters),"iconsBaseUrl"in x&&e(11,nr=x.iconsBaseUrl),"$$scope"in x&&e(52,o=x.$$scope)},r.$$.update=()=>{if(r.$$.dirty[1]&256&&(ut||e(24,L=void 0)),r.$$.dirty[0]&134221824&&setTimeout(()=>{e(15,gs=ji),c&&!ji&&e(1,R="")}),r.$$.dirty[0]&8194|r.$$.dirty[1]&32&&R.length<w&&(e(49,at=void 0),e(13,ht=void 0),e(17,ir=void 0),e(48,Te=ht)),r.$$.dirty[1]&262208&&Y&&at&&!at.address&&at.geometry.type==="Point"&&ea(at.id,{byId:!0}).catch(x=>e(17,ir=x)),r.$$.dirty[1]&789521&&(C&&at&&at.id!==ta&&_&&(!at.bbox||at.bbox[0]===at.bbox[2]&&at.bbox[1]===at.bbox[3]?C.flyTo(at.center,at.id.startsWith("poi.")||at.id.startsWith("address.")?ce:$t):C.fitBounds(wa(at.bbox),50,ce),e(13,ht=void 0),e(48,Te=void 0),e(14,Ht=-1)),e(50,ta=at==null?void 0:at.id)),r.$$.dirty[0]&8192|r.$$.dirty[1]&131072&&Te!==ht&&e(48,Te=void 0),r.$$.dirty[1]&393232&&C&&C.setMarkers(Te,at),r.$$.dirty[0]&2&&e(14,Ht=-1),r.$$.dirty[0]&40961|r.$$.dirty[1]&272&&C&&C.setEventHandler(x=>{switch(x.type){case"mapClick":F&&wf(x.coordinates);break;case"proximityChange":e(24,L=ut?x.proximity:void 0);break;case"markerClick":{const jt=ht==null?void 0:ht.find(or=>or.id===x.id);jt&&ra(jt)}break;case"markerMouseEnter":e(14,Ht=gs?(ht==null?void 0:ht.findIndex(jt=>jt.id===x.id))??-1:-1);break;case"markerMouseLeave":e(14,Ht=-1);break}}),r.$$.dirty[0]&16384|r.$$.dirty[1]&16&&(C==null||C.setSelectedMarker(Ht)),r.$$.dirty[0]&24576&&e(51,n=ht==null?void 0:ht[Ht]),r.$$.dirty[0]&2|r.$$.dirty[1]&16){const x=/^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(R);C==null||C.setReverseMarker(x?[Number(x[1]),Number(x[2])]:void 0)}r.$$.dirty[1]&1048576&&Hr("select",n),r.$$.dirty[1]&262144&&Hr("pick",at),r.$$.dirty[0]&40960&&Hr("optionsVisibilityChange",gs&&!!ht),r.$$.dirty[0]&8192&&Hr("featuresListed",ht),r.$$.dirty[1]&131072&&Hr("featuresMarked",Te),r.$$.dirty[0]&1&&Hr("reverseToggle",F),r.$$.dirty[0]&2&&Hr("queryChange",R),r.$$.dirty[0]&1|r.$$.dirty[1]&16&&C&&C.indicateReverse(F)},[F,R,s,l,f,p,v,T,A,X,D,nr,ji,ht,Ht,gs,rr,ir,di,xf,ol,Lf,na,ra,L,a,u,c,h,g,y,_,m,N,S,C,w,Y,W,ut,Et,$t,ce,Cr,tn,Gn,Hi,Nr,Te,at,ta,n,o,i,bf,Pf,Rf,Of,Tf,Df,Mf,Af,Ff,Bf,kf,Gf,Vf]}let $l=class extends br{constructor(t){super(),Lr(this,t,Jl,Ql,xr,{class:2,apiKey:25,bbox:26,clearButtonTitle:3,clearOnBlur:27,collapsed:4,country:28,debounceSearch:29,enableReverse:5,errorMessage:6,filter:30,flyTo:31,fuzzyMatch:32,language:33,limit:34,mapController:35,minLength:36,noResultsMessage:7,placeholder:8,proximity:24,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:37,showPlaceType:10,showResultsWhileTyping:38,trackProximity:39,types:40,zoom:41,maxZoom:42,apiUrl:43,fetchParameters:44,iconsBaseUrl:11,focus:45,blur:46,setQuery:47},null,[-1,-1,-1])}get focus(){return this.$$.ctx[45]}get blur(){return this.$$.ctx[46]}get setQuery(){return this.$$.ctx[47]}};/**
1
+ var zf=Object.defineProperty;var Uf=(ct,vt,te)=>vt in ct?zf(ct,vt,{enumerable:!0,configurable:!0,writable:!0,value:te}):ct[vt]=te;var sa=(ct,vt,te)=>(Uf(ct,typeof vt!="symbol"?vt+"":vt,te),te),al=(ct,vt,te)=>{if(!vt.has(ct))throw TypeError("Cannot "+te)};var sr=(ct,vt,te)=>(al(ct,vt,"read from private field"),te?te.call(ct):vt.get(ct)),aa=(ct,vt,te)=>{if(vt.has(ct))throw TypeError("Cannot add the same private member more than once");vt instanceof WeakSet?vt.add(ct):vt.set(ct,te)},ps=(ct,vt,te,bo)=>(al(ct,vt,"write to private field"),bo?bo.call(ct,te):vt.set(ct,te),te);(function(ct,vt){typeof exports=="object"&&typeof module<"u"?vt(exports,require("maplibre-gl")):typeof define=="function"&&define.amd?define(["exports","maplibre-gl"],vt):(ct=typeof globalThis<"u"?globalThis:ct||self,vt(ct.maplibreglMaptilerGeocoder={},ct.maplibregl))})(this,function(ct,vt){var kn,pi;"use strict";function te(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const bo=te(vt);function It(){}function ul(r,t){for(const e in t)r[e]=t[e];return r}function ua(r){return r()}function la(){return Object.create(null)}function ar(r){r.forEach(ua)}function ca(r){return typeof r=="function"}function xr(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}let Po;function Me(r,t){return r===t?!0:(Po||(Po=document.createElement("a")),Po.href=t,r===Po.href)}function ll(r){return Object.keys(r).length===0}function cl(r,t,e,n){if(r){const i=fa(r,t,e,n);return r[0](i)}}function fa(r,t,e,n){return r[1]&&n?ul(e.ctx.slice(),r[1](n(t))):e.ctx}function fl(r,t,e,n){if(r[2]&&n){const i=r[2](n(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function hl(r,t,e,n,i,o){if(i){const s=fa(t,e,n,o);r.p(s,i)}}function gl(r){if(r.ctx.length>32){const t=[],e=r.ctx.length/32;for(let n=0;n<e;n++)t[n]=-1;return t}return-1}function ha(r){return r??""}function nt(r,t){r.appendChild(t)}function At(r,t,e){r.insertBefore(t,e||null)}function Pt(r){r.parentNode&&r.parentNode.removeChild(r)}function gt(r){return document.createElement(r)}function Vn(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Sr(r){return document.createTextNode(r)}function nn(){return Sr(" ")}function pl(){return Sr("")}function Ce(r,t,e,n){return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}function dl(r){return function(t){return t.preventDefault(),r.call(this,t)}}function P(r,t,e){e==null?r.removeAttribute(t):r.getAttribute(t)!==e&&r.setAttribute(t,e)}function vl(r){return Array.from(r.childNodes)}function Zi(r,t){t=""+t,r.data!==t&&(r.data=t)}function ga(r,t){r.value=t??""}function rn(r,t,e){r.classList.toggle(t,!!e)}function yl(r,t,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(r,{detail:t,bubbles:e,cancelable:n})}let Ji;function $i(r){Ji=r}function pa(){if(!Ji)throw new Error("Function called outside component initialization");return Ji}function ml(r){pa().$$.on_destroy.push(r)}function _l(){const r=pa();return(t,e,{cancelable:n=!1}={})=>{const i=r.$$.callbacks[t];if(i){const o=yl(t,e,{cancelable:n});return i.slice().forEach(s=>{s.call(r,o)}),!o.defaultPrevented}return!0}}function da(r,t){const e=r.$$.callbacks[t.type];e&&e.slice().forEach(n=>n.call(this,t))}const yi=[],ds=[];let mi=[];const va=[],El=Promise.resolve();let vs=!1;function Il(){vs||(vs=!0,El.then(ya))}function ys(r){mi.push(r)}const ms=new Set;let _i=0;function ya(){if(_i!==0)return;const r=Ji;do{try{for(;_i<yi.length;){const t=yi[_i];_i++,$i(t),Cl(t.$$)}}catch(t){throw yi.length=0,_i=0,t}for($i(null),yi.length=0,_i=0;ds.length;)ds.pop()();for(let t=0;t<mi.length;t+=1){const e=mi[t];ms.has(e)||(ms.add(e),e())}mi.length=0}while(yi.length);for(;va.length;)va.pop()();vs=!1,ms.clear(),$i(r)}function Cl(r){if(r.fragment!==null){r.update(),ar(r.before_update);const t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(ys)}}function Nl(r){const t=[],e=[];mi.forEach(n=>r.indexOf(n)===-1?t.push(n):e.push(n)),e.forEach(n=>n()),mi=t}const Ro=new Set;let Kr;function Oo(){Kr={r:0,c:[],p:Kr}}function To(){Kr.r||ar(Kr.c),Kr=Kr.p}function Gt(r,t){r&&r.i&&(Ro.delete(r),r.i(t))}function fe(r,t,e,n){if(r&&r.o){if(Ro.has(r))return;Ro.add(r),Kr.c.push(()=>{Ro.delete(r),n&&(e&&r.d(1),n())}),r.o(t)}else n&&n()}function ma(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function xl(r,t){fe(r,1,1,()=>{t.delete(r.key)})}function Sl(r,t,e,n,i,o,s,a,u,l,c,f){let h=r.length,g=o.length,p=h;const v={};for(;p--;)v[r[p].key]=p;const y=[],_=new Map,m=new Map,N=[];for(p=g;p--;){const T=f(i,o,p),A=e(T);let L=s.get(A);L?n&&N.push(()=>L.p(T,t)):(L=l(A,T),L.c()),_.set(A,y[p]=L),A in v&&m.set(A,Math.abs(p-v[A]))}const S=new Set,C=new Set;function w(T){Gt(T,1),T.m(a,c),s.set(T.key,T),c=T.first,g--}for(;h&&g;){const T=y[g-1],A=r[h-1],L=T.key,F=A.key;T===A?(c=T.first,h--,g--):_.has(F)?!s.has(L)||S.has(L)?w(T):C.has(F)?h--:m.get(L)>m.get(F)?(C.add(L),w(T)):(S.add(F),h--):(u(A,s),h--)}for(;h--;){const T=r[h];_.has(T.key)||u(T,s)}for(;g;)w(y[g-1]);return ar(N),y}function wr(r){r&&r.c()}function ur(r,t,e){const{fragment:n,after_update:i}=r.$$;n&&n.m(t,e),ys(()=>{const o=r.$$.on_mount.map(ua).filter(ca);r.$$.on_destroy?r.$$.on_destroy.push(...o):ar(o),r.$$.on_mount=[]}),i.forEach(ys)}function lr(r,t){const e=r.$$;e.fragment!==null&&(Nl(e.after_update),ar(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function wl(r,t){r.$$.dirty[0]===-1&&(yi.push(r),Il(),r.$$.dirty.fill(0)),r.$$.dirty[t/31|0]|=1<<t%31}function Lr(r,t,e,n,i,o,s,a=[-1]){const u=Ji;$i(r);const l=r.$$={fragment:null,ctx:[],props:o,update:It,not_equal:i,bound:la(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:la(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(r,t.props||{},(f,h,...g)=>{const p=g.length?g[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&wl(r,f)),h}):[],l.update(),c=!0,ar(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const f=vl(t.target);l.fragment&&l.fragment.l(f),f.forEach(Pt)}else l.fragment&&l.fragment.c();t.intro&&Gt(r.$$.fragment),ur(r,t.target,t.anchor),ya()}$i(u)}class br{constructor(){sa(this,"$$");sa(this,"$$set")}$destroy(){lr(this,1),this.$destroy=It}$on(t,e){if(!ca(e))return It;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ll(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ll="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ll);const qf="";function bl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),P(t,"viewBox","0 0 60.006 21.412"),P(t,"width","14"),P(t,"height","20"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Pl extends br{constructor(t){super(),Lr(this,t,null,bl,xr,{})}}const Xf="";function Rl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"area.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"area.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ol(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"poi.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"poi.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Tl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"postal_code.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"postal_code.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Dl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"street.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"street.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ml(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"road.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"road.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Al(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"housenumber.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"housenumber.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Fl(r){let t,e,n,i;return{c(){t=gt("img"),Me(t.src,e=r[5])||P(t,"src",e),P(t,"alt",r[4]),P(t,"class","svelte-ltkwvy")},m(o,s){At(o,t,s),n||(i=Ce(t,"error",r[12]),n=!0)},p(o,s){s&32&&!Me(t.src,e=o[5])&&P(t,"src",e),s&16&&P(t,"alt",o[4])},d(o){o&&Pt(t),n=!1,i()}}}function _a(r){let t,e;return{c(){t=gt("span"),e=Sr(r[6]),P(t,"class","secondary svelte-ltkwvy")},m(n,i){At(n,t,i),nt(t,e)},p(n,i){i&64&&Zi(e,n[6])},d(n){n&&Pt(t)}}}function Bl(r){var T,A;let t,e,n,i,o,s,a,u,l=r[0].place_name.replace(/,.*/,"")+"",c,f,h=r[2]==="always"||r[2]&&!r[0].address&&((T=r[0].properties)==null?void 0:T.kind)!=="road"&&((A=r[0].properties)==null?void 0:A.kind)!=="road_relation"&&!r[0].id.startsWith("address.")&&!r[0].id.startsWith("postal_code.")&&(!r[0].id.startsWith("poi.")||!r[5]),g,p,v=r[0].place_name.replace(/[^,]*,?\s*/,"")+"",y,_,m;function N(L,F){var X,R;return F&1&&(e=null),F&1&&(n=null),F&1&&(i=null),L[5]?Fl:L[0].address?Al:((X=L[0].properties)==null?void 0:X.kind)==="road"||((R=L[0].properties)==null?void 0:R.kind)==="road_relation"?Ml:(e==null&&(e=!!L[0].id.startsWith("address.")),e?Dl:(n==null&&(n=!!L[0].id.startsWith("postal_code.")),n?Tl:(i==null&&(i=!!L[0].id.startsWith("poi.")),i?Ol:Rl)))}let S=N(r,-1),C=S(r),w=h&&_a(r);return{c(){t=gt("li"),C.c(),o=nn(),s=gt("span"),a=gt("span"),u=gt("span"),c=Sr(l),f=nn(),w&&w.c(),g=nn(),p=gt("span"),y=Sr(v),P(u,"class","primary svelte-ltkwvy"),P(a,"class","svelte-ltkwvy"),P(p,"class","line2 svelte-ltkwvy"),P(s,"class","texts svelte-ltkwvy"),P(t,"tabindex","0"),P(t,"data-selected",r[1]),P(t,"class","svelte-ltkwvy"),rn(t,"selected",r[1])},m(L,F){At(L,t,F),C.m(t,null),nt(t,o),nt(t,s),nt(s,a),nt(a,u),nt(u,c),nt(a,f),w&&w.m(a,null),nt(s,g),nt(s,p),nt(p,y),_||(m=[Ce(t,"mouseenter",r[10]),Ce(t,"focus",r[11])],_=!0)},p(L,[F]){var X,R;S===(S=N(L,F))&&C?C.p(L,F):(C.d(1),C=S(L),C&&(C.c(),C.m(t,o))),F&1&&l!==(l=L[0].place_name.replace(/,.*/,"")+"")&&Zi(c,l),F&37&&(h=L[2]==="always"||L[2]&&!L[0].address&&((X=L[0].properties)==null?void 0:X.kind)!=="road"&&((R=L[0].properties)==null?void 0:R.kind)!=="road_relation"&&!L[0].id.startsWith("address.")&&!L[0].id.startsWith("postal_code.")&&(!L[0].id.startsWith("poi.")||!L[5])),h?w?w.p(L,F):(w=_a(L),w.c(),w.m(a,null)):w&&(w.d(1),w=null),F&1&&v!==(v=L[0].place_name.replace(/[^,]*,?\s*/,"")+"")&&Zi(y,v),F&2&&P(t,"data-selected",L[1]),F&2&&rn(t,"selected",L[1])},i:It,o:It,d(L){L&&Pt(t),C.d(),w&&w.d(),_=!1,ar(m)}}}function kl(r,t,e){var _;let n,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(_=o.properties)==null?void 0:_.categories;let f,h;function g(m){h&&u.add(h),e(9,n--,n)}function p(m){da.call(this,r,m)}function v(m){da.call(this,r,m)}const y=m=>g(m.currentTarget);return r.$$set=m=>{"feature"in m&&e(0,o=m.feature),"selected"in m&&e(1,s=m.selected),"showPlaceType"in m&&e(2,a=m.showPlaceType),"missingIconsCache"in m&&e(8,u=m.missingIconsCache),"iconsBaseUrl"in m&&e(3,l=m.iconsBaseUrl)},r.$$.update=()=>{var m,N,S,C;if(r.$$.dirty&824)do e(9,n--,n),e(4,f=c==null?void 0:c[n]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!h||u.has(h)));r.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(N=(m=o.properties)==null?void 0:m.categories)==null?void 0:N.join(", "):((C=(S=o.properties)==null?void 0:S.place_type_name)==null?void 0:C[0])??o.place_type[0])},e(9,n=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,g,u,n,p,v,y]}class Gl extends br{constructor(t){super(),Lr(this,t,kl,Bl,xr,{feature:0,selected:1,showPlaceType:2,missingIconsCache:8,iconsBaseUrl:3})}}const Yf="";function Vl(r){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',P(t,"class","svelte-7cmwmc")},m(e,n){At(e,t,n)},p:It,i:It,o:It,d(e){e&&Pt(t)}}}class zl extends br{constructor(t){super(),Lr(this,t,null,Vl,xr,{})}}const Wf="";function Ul(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"),P(t,"width","14"),P(t,"height","14"),P(t,"viewBox","0 0 15 15"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class ql extends br{constructor(t){super(),Lr(this,t,null,Ul,xr,{})}}const Hf="";function Xl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),P(t,"viewBox","0 0 14 14"),P(t,"width","13"),P(t,"height","13"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ea extends br{constructor(t){super(),Lr(this,t,null,Xl,xr,{})}}const jf="";function Yl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),P(t,"viewBox","0 0 30 30"),P(t,"fill","none"),P(t,"xmlns","http://www.w3.org/2000/svg"),P(t,"class","svelte-d2loi5")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ia extends br{constructor(t){super(),Lr(this,t,null,Yl,xr,{})}}const Kf="";function Ca(r,t,e){const n=r.slice();return n[75]=t[e],n[77]=e,n}function Na(r){let t,e;return t=new zl({}),{c(){wr(t.$$.fragment)},m(n,i){ur(t,n,i),e=!0},i(n){e||(Gt(t.$$.fragment,n),e=!0)},o(n){fe(t.$$.fragment,n),e=!1},d(n){lr(t,n)}}}function xa(r){let t,e,n,i,o;return e=new Pl({}),{c(){t=gt("button"),wr(e.$$.fragment),P(t,"type","button"),P(t,"title",r[9]),P(t,"class","svelte-1r7dvt7"),rn(t,"active",r[0])},m(s,a){At(s,t,a),ur(e,t,null),n=!0,i||(o=Ce(t,"click",r[61]),i=!0)},p(s,a){(!n||a[0]&512)&&P(t,"title",s[9]),(!n||a[0]&1)&&rn(t,"active",s[0])},i(s){n||(Gt(e.$$.fragment,s),n=!0)},o(s){fe(e.$$.fragment,s),n=!1},d(s){s&&Pt(t),lr(e),i=!1,o()}}}function Wl(r){let t,e=[],n=new Map,i,o,s,a=ma(r[13]);const u=l=>l[75].id+(l[75].address?","+l[75].address:"");for(let l=0;l<a.length;l+=1){let c=Ca(r,a,l),f=u(c);n.set(f,e[l]=Sa(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();P(t,"class","svelte-1r7dvt7")},m(l,c){At(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[Ce(t,"mouseleave",r[65]),Ce(t,"blur",r[66])],o=!0)},p(l,c){c[0]&8940544&&(a=ma(l[13]),Oo(),e=Sl(e,c,u,1,l,a,n,t,xl,Sa,null,Ca),To())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Gt(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)fe(e[c]);i=!1},d(l){l&&Pt(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,ar(s)}}}function Hl(r){let t,e,n,i,o,s;return e=new Ia({}),{c(){t=gt("div"),wr(e.$$.fragment),n=nn(),i=gt("div"),o=Sr(r[7]),P(i,"class","svelte-1r7dvt7"),P(t,"class","no-results svelte-1r7dvt7")},m(a,u){At(a,t,u),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Zi(o,a[7])},i(a){s||(Gt(e.$$.fragment,a),s=!0)},o(a){fe(e.$$.fragment,a),s=!1},d(a){a&&Pt(t),lr(e)}}}function jl(r){let t="",e;return{c(){e=Sr(t)},m(n,i){At(n,e,i)},p:It,i:It,o:It,d(n){n&&Pt(e)}}}function Kl(r){let t,e,n,i,o,s,a,u,l,c,f;return e=new Ia({}),u=new Ea({}),{c(){t=gt("div"),wr(e.$$.fragment),n=nn(),i=gt("div"),o=Sr(r[6]),s=nn(),a=gt("button"),wr(u.$$.fragment),P(i,"class","svelte-1r7dvt7"),P(a,"class","svelte-1r7dvt7"),P(t,"class","error svelte-1r7dvt7")},m(h,g){At(h,t,g),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),nt(t,s),nt(t,a),ur(u,a,null),l=!0,c||(f=Ce(a,"click",r[62]),c=!0)},p(h,g){(!l||g[0]&64)&&Zi(o,h[6])},i(h){l||(Gt(e.$$.fragment,h),Gt(u.$$.fragment,h),l=!0)},o(h){fe(e.$$.fragment,h),fe(u.$$.fragment,h),l=!1},d(h){h&&Pt(t),lr(e),lr(u),c=!1,f()}}}function Sa(r,t){let e,n,i;function o(){return t[63](t[77])}function s(){return t[64](t[75])}return n=new Gl({props:{feature:t[75],showPlaceType:t[10],selected:t[14]===t[77],missingIconsCache:t[19],iconsBaseUrl:t[11]}}),n.$on("mouseenter",o),n.$on("focus",s),{key:r,first:null,c(){e=pl(),wr(n.$$.fragment),this.first=e},m(a,u){At(a,e,u),ur(n,a,u),i=!0},p(a,u){t=a;const l={};u[0]&8192&&(l.feature=t[75]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&24576&&(l.selected=t[14]===t[77]),u[0]&2048&&(l.iconsBaseUrl=t[11]),n.$set(l)},i(a){i||(Gt(n.$$.fragment,a),i=!0)},o(a){fe(n.$$.fragment,a),i=!1},d(a){a&&Pt(e),lr(n,a)}}}function Ql(r){let t,e,n,i,o,s,a,u,l,c,f,h,g,p,v,y,_,m,N,S;i=new ql({}),c=new Ea({});let C=r[18]&&Na(),w=r[5]===!0&&xa(r);const T=r[53].default,A=cl(T,r,r[52],null),L=[Kl,jl,Hl,Wl],F=[];function X(R,Y){var D,W;return R[17]?0:R[15]?((D=R[13])==null?void 0:D.length)===0?2:R[15]&&((W=R[13])!=null&&W.length)?3:-1:1}return~(v=X(r))&&(y=F[v]=L[v](r)),{c(){t=gt("form"),e=gt("div"),n=gt("button"),wr(i.$$.fragment),o=nn(),s=gt("input"),a=nn(),u=gt("div"),l=gt("button"),wr(c.$$.fragment),f=nn(),C&&C.c(),h=nn(),w&&w.c(),g=nn(),A&&A.c(),p=nn(),y&&y.c(),P(n,"class","search-button svelte-1r7dvt7"),P(n,"type","button"),P(s,"placeholder",r[8]),P(s,"aria-label",r[8]),P(s,"class","svelte-1r7dvt7"),P(l,"type","button"),P(l,"title",r[3]),P(l,"class","svelte-1r7dvt7"),P(u,"class","clear-button-container svelte-1r7dvt7"),rn(u,"displayable",r[1]!==""),P(e,"class","input-group svelte-1r7dvt7"),P(t,"tabindex","0"),P(t,"class",_=ha(r[2])+" svelte-1r7dvt7"),rn(t,"can-collapse",r[4]&&r[1]==="")},m(R,Y){At(R,t,Y),nt(t,e),nt(e,n),ur(i,n,null),nt(e,o),nt(e,s),r[55](s),ga(s,r[1]),nt(e,a),nt(e,u),nt(u,l),ur(c,l,null),nt(u,f),C&&C.m(u,null),nt(e,h),w&&w.m(e,null),nt(e,g),A&&A.m(e,null),nt(t,p),~v&&F[v].m(t,null),m=!0,N||(S=[Ce(n,"click",r[54]),Ce(s,"input",r[56]),Ce(s,"focus",r[57]),Ce(s,"blur",r[58]),Ce(s,"keydown",r[21]),Ce(s,"input",r[59]),Ce(l,"click",r[60]),Ce(t,"submit",dl(r[20]))],N=!0)},p(R,Y){(!m||Y[0]&256)&&P(s,"placeholder",R[8]),(!m||Y[0]&256)&&P(s,"aria-label",R[8]),Y[0]&2&&s.value!==R[1]&&ga(s,R[1]),(!m||Y[0]&8)&&P(l,"title",R[3]),R[18]?C?Y[0]&262144&&Gt(C,1):(C=Na(),C.c(),Gt(C,1),C.m(u,null)):C&&(Oo(),fe(C,1,1,()=>{C=null}),To()),(!m||Y[0]&2)&&rn(u,"displayable",R[1]!==""),R[5]===!0?w?(w.p(R,Y),Y[0]&32&&Gt(w,1)):(w=xa(R),w.c(),Gt(w,1),w.m(e,g)):w&&(Oo(),fe(w,1,1,()=>{w=null}),To()),A&&A.p&&(!m||Y[1]&2097152)&&hl(A,T,R,R[52],m?fl(T,R[52],Y,null):gl(R[52]),null);let D=v;v=X(R),v===D?~v&&F[v].p(R,Y):(y&&(Oo(),fe(F[D],1,1,()=>{F[D]=null}),To()),~v?(y=F[v],y?y.p(R,Y):(y=F[v]=L[v](R),y.c()),Gt(y,1),y.m(t,null)):y=null),(!m||Y[0]&4&&_!==(_=ha(R[2])+" svelte-1r7dvt7"))&&P(t,"class",_),(!m||Y[0]&22)&&rn(t,"can-collapse",R[4]&&R[1]==="")},i(R){m||(Gt(i.$$.fragment,R),Gt(c.$$.fragment,R),Gt(C),Gt(w),Gt(A,R),Gt(y),m=!0)},o(R){fe(i.$$.fragment,R),fe(c.$$.fragment,R),fe(C),fe(w),fe(A,R),fe(y),m=!1},d(R){R&&Pt(t),lr(i),r[55](null),lr(c),C&&C.d(),w&&w.d(),A&&A.d(R),~v&&F[v].d(),N=!1,ar(S)}}}function Zl(r,t,e){const n=t[1],i=t[0],o=n-i;return r===n&&e?r:((r-i)%o+o)%o+i}function wa(r){let t=[...r];return t[2]<t[0]&&(t[2]+=360),t}function Jl(r,t,e){let n,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:g=200}=t,{enableReverse:p=!1}=t,{errorMessage:v="Something went wrong…"}=t,{filter:y=()=>!0}=t,{flyTo:_=!0}=t,{fuzzyMatch:m=!0}=t,{language:N=void 0}=t,{limit:S=void 0}=t,{mapController:C=void 0}=t,{minLength:w=2}=t,{noResultsMessage:T="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=t,{placeholder:A="Search"}=t,{proximity:L=void 0}=t,{reverseActive:F=p==="always"}=t,{reverseButtonTitle:X="toggle reverse geocoding"}=t,{searchValue:R=""}=t,{showFullGeometry:Y=!0}=t,{showPlaceType:D="ifNeeded"}=t,{showResultsWhileTyping:W=!0}=t,{trackProximity:ut=!0}=t,{types:Et=void 0}=t,{zoom:$t=16}=t,{maxZoom:ce=18}=t,{apiUrl:Cr="https://api.maptiler.com/geocoding"}=t,{fetchParameters:tn={}}=t,{iconsBaseUrl:nr="https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc2/icons/"}=t;function Gn(){rr.focus()}function Hi(){rr.blur()}function Nr(x,jt=!0){e(1,R=x),jt?(e(14,Ht=-1),ol()):(na(),setTimeout(()=>{rr.focus(),rr.select()}))}let ji=!1,ht,Te,at,il="",rr,Ht=-1,ir,hs=[],di,Ki,gs,ta;const xf=new Set,Hr=_l();ml(()=>{C&&(C.setEventHandler(void 0),C.indicateReverse(!1),C.setSelectedMarker(-1),C.setMarkers(void 0,void 0))});function ol(x){if(Ki&&(clearTimeout(Ki),Ki=void 0),Ht>-1&&ht)e(49,at=ht[Ht]),e(1,R=at.place_name.replace(/,.*/,"")),e(17,ir=void 0),e(48,Te=void 0),e(14,Ht=-1);else if(R){const jt=x||!sl();ea(R,{exact:!0}).then(()=>{e(48,Te=ht),e(49,at=void 0),jt&&Sf()}).catch(or=>e(17,ir=or))}}function sl(){return/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(R)}async function ea(x,{byId:jt=!1,exact:or=!1}={}){e(17,ir=void 0);const Qi=sl(),en=new URLSearchParams;N!=null&&en.set("language",Array.isArray(N)?N.join(","):N),Et&&en.set("types",Et.join(",")),Qi||(u&&en.set("bbox",u.map(jr=>jr.toFixed(6)).join(",")),h&&en.set("country",Array.isArray(h)?h.join(","):h)),jt||(L&&en.set("proximity",L.map(jr=>jr.toFixed(6)).join(",")),(or||!W)&&en.set("autocomplete","false"),en.set("fuzzyMatch",String(m))),S!==void 0&&(!Qi||(Et==null?void 0:Et.length)===1)&&en.set("limit",String(S)),en.set("key",a);const vi=Cr+"/"+encodeURIComponent(x)+".json?"+en.toString();if(vi===il){jt?(e(13,ht=void 0),e(49,at=hs[0])):e(13,ht=hs);return}il=vi,di==null||di.abort();const De=new AbortController;e(18,di=De);let ia;try{ia=await fetch(vi,{signal:De.signal,...tn}).finally(()=>{De===di&&e(18,di=void 0)})}catch(jr){if(jr&&typeof jr=="object"&&"name"in jr&&jr.name==="AbortError")return;throw new Error}if(!ia.ok)throw new Error;const oa=await ia.json();Hr("response",{url:vi,featureCollection:oa}),jt?(e(13,ht=void 0),e(49,at=oa.features[0]),hs=[at]):(e(13,ht=oa.features.filter(y)),hs=ht,Qi&&rr.focus())}function Sf(){var or,Qi,en,vi;if(!(Te!=null&&Te.length)||!_)return;const x=[180,90,-180,-90],jt=!Te.some(De=>!De.matching_text);for(const De of Te)(jt||!De.matching_text)&&(x[0]=Math.min(x[0],((or=De.bbox)==null?void 0:or[0])??De.center[0]),x[1]=Math.min(x[1],((Qi=De.bbox)==null?void 0:Qi[1])??De.center[1]),x[2]=Math.max(x[2],((en=De.bbox)==null?void 0:en[2])??De.center[0]),x[3]=Math.max(x[3],((vi=De.bbox)==null?void 0:vi[3])??De.center[1]));C&&Te.length>0&&(at&&x[0]===x[2]&&x[1]===x[3]?C.flyTo(at.center,$t):C.fitBounds(wa(x),50,ce))}function wf(x){e(0,F=p==="always"),Nr(Zl(x[0],[-180,180],!0).toFixed(6)+","+x[1].toFixed(6))}function Lf(x){if(!ht)return;let jt=x.key==="ArrowDown"?1:x.key==="ArrowUp"?-1:0;jt?(Ht===-1&&jt===-1&&e(14,Ht=ht.length),e(14,Ht+=jt),Ht>=ht.length&&e(14,Ht=-1),x.preventDefault()):["ArrowLeft","ArrowRight","Home","End"].includes(x.key)&&e(14,Ht=-1)}function na(x=!0){if(e(17,ir=void 0),W){if(Ki&&clearTimeout(Ki),R.length<w)return;const jt=R;Ki=window.setTimeout(()=>{ea(jt).catch(or=>e(17,ir=or))},x?g:0)}else e(13,ht=void 0),e(17,ir=void 0)}function ra(x){e(49,at=x),e(1,R=x.place_name),e(14,Ht=-1)}const bf=()=>rr.focus();function Pf(x){ds[x?"unshift":"push"](()=>{rr=x,e(16,rr)})}function Rf(){R=this.value,e(1,R),e(12,ji),e(27,c)}const Of=()=>e(12,ji=!0),Tf=()=>e(12,ji=!1),Df=()=>na(),Mf=()=>{e(1,R=""),rr.focus()},Af=()=>e(0,F=!F),Ff=()=>e(17,ir=void 0),Bf=x=>e(14,Ht=x),kf=x=>ra(x),Gf=()=>e(14,Ht=-1),Vf=()=>{};return r.$$set=x=>{"class"in x&&e(2,s=x.class),"apiKey"in x&&e(25,a=x.apiKey),"bbox"in x&&e(26,u=x.bbox),"clearButtonTitle"in x&&e(3,l=x.clearButtonTitle),"clearOnBlur"in x&&e(27,c=x.clearOnBlur),"collapsed"in x&&e(4,f=x.collapsed),"country"in x&&e(28,h=x.country),"debounceSearch"in x&&e(29,g=x.debounceSearch),"enableReverse"in x&&e(5,p=x.enableReverse),"errorMessage"in x&&e(6,v=x.errorMessage),"filter"in x&&e(30,y=x.filter),"flyTo"in x&&e(31,_=x.flyTo),"fuzzyMatch"in x&&e(32,m=x.fuzzyMatch),"language"in x&&e(33,N=x.language),"limit"in x&&e(34,S=x.limit),"mapController"in x&&e(35,C=x.mapController),"minLength"in x&&e(36,w=x.minLength),"noResultsMessage"in x&&e(7,T=x.noResultsMessage),"placeholder"in x&&e(8,A=x.placeholder),"proximity"in x&&e(24,L=x.proximity),"reverseActive"in x&&e(0,F=x.reverseActive),"reverseButtonTitle"in x&&e(9,X=x.reverseButtonTitle),"searchValue"in x&&e(1,R=x.searchValue),"showFullGeometry"in x&&e(37,Y=x.showFullGeometry),"showPlaceType"in x&&e(10,D=x.showPlaceType),"showResultsWhileTyping"in x&&e(38,W=x.showResultsWhileTyping),"trackProximity"in x&&e(39,ut=x.trackProximity),"types"in x&&e(40,Et=x.types),"zoom"in x&&e(41,$t=x.zoom),"maxZoom"in x&&e(42,ce=x.maxZoom),"apiUrl"in x&&e(43,Cr=x.apiUrl),"fetchParameters"in x&&e(44,tn=x.fetchParameters),"iconsBaseUrl"in x&&e(11,nr=x.iconsBaseUrl),"$$scope"in x&&e(52,o=x.$$scope)},r.$$.update=()=>{if(r.$$.dirty[1]&256&&(ut||e(24,L=void 0)),r.$$.dirty[0]&134221824&&setTimeout(()=>{e(15,gs=ji),c&&!ji&&e(1,R="")}),r.$$.dirty[0]&8194|r.$$.dirty[1]&32&&R.length<w&&(e(49,at=void 0),e(13,ht=void 0),e(17,ir=void 0),e(48,Te=ht)),r.$$.dirty[1]&262208&&Y&&at&&!at.address&&at.geometry.type==="Point"&&ea(at.id,{byId:!0}).catch(x=>e(17,ir=x)),r.$$.dirty[1]&789521&&(C&&at&&at.id!==ta&&_&&(!at.bbox||at.bbox[0]===at.bbox[2]&&at.bbox[1]===at.bbox[3]?C.flyTo(at.center,at.id.startsWith("poi.")||at.id.startsWith("address.")?ce:$t):C.fitBounds(wa(at.bbox),50,ce),e(13,ht=void 0),e(48,Te=void 0),e(14,Ht=-1)),e(50,ta=at==null?void 0:at.id)),r.$$.dirty[0]&8192|r.$$.dirty[1]&131072&&Te!==ht&&e(48,Te=void 0),r.$$.dirty[1]&393232&&C&&C.setMarkers(Te,at),r.$$.dirty[0]&2&&e(14,Ht=-1),r.$$.dirty[0]&40961|r.$$.dirty[1]&272&&C&&C.setEventHandler(x=>{switch(x.type){case"mapClick":F&&wf(x.coordinates);break;case"proximityChange":e(24,L=ut?x.proximity:void 0);break;case"markerClick":{const jt=ht==null?void 0:ht.find(or=>or.id===x.id);jt&&ra(jt)}break;case"markerMouseEnter":e(14,Ht=gs?(ht==null?void 0:ht.findIndex(jt=>jt.id===x.id))??-1:-1);break;case"markerMouseLeave":e(14,Ht=-1);break}}),r.$$.dirty[0]&16384|r.$$.dirty[1]&16&&(C==null||C.setSelectedMarker(Ht)),r.$$.dirty[0]&24576&&e(51,n=ht==null?void 0:ht[Ht]),r.$$.dirty[0]&2|r.$$.dirty[1]&16){const x=/^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(R);C==null||C.setReverseMarker(x?[Number(x[1]),Number(x[2])]:void 0)}r.$$.dirty[1]&1048576&&Hr("select",n),r.$$.dirty[1]&262144&&Hr("pick",at),r.$$.dirty[0]&40960&&Hr("optionsVisibilityChange",gs&&!!ht),r.$$.dirty[0]&8192&&Hr("featuresListed",ht),r.$$.dirty[1]&131072&&Hr("featuresMarked",Te),r.$$.dirty[0]&1&&Hr("reverseToggle",F),r.$$.dirty[0]&2&&Hr("queryChange",R),r.$$.dirty[0]&1|r.$$.dirty[1]&16&&C&&C.indicateReverse(F)},[F,R,s,l,f,p,v,T,A,X,D,nr,ji,ht,Ht,gs,rr,ir,di,xf,ol,Lf,na,ra,L,a,u,c,h,g,y,_,m,N,S,C,w,Y,W,ut,Et,$t,ce,Cr,tn,Gn,Hi,Nr,Te,at,ta,n,o,i,bf,Pf,Rf,Of,Tf,Df,Mf,Af,Ff,Bf,kf,Gf,Vf]}let $l=class extends br{constructor(t){super(),Lr(this,t,Jl,Ql,xr,{class:2,apiKey:25,bbox:26,clearButtonTitle:3,clearOnBlur:27,collapsed:4,country:28,debounceSearch:29,enableReverse:5,errorMessage:6,filter:30,flyTo:31,fuzzyMatch:32,language:33,limit:34,mapController:35,minLength:36,noResultsMessage:7,placeholder:8,proximity:24,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:37,showPlaceType:10,showResultsWhileTyping:38,trackProximity:39,types:40,zoom:41,maxZoom:42,apiUrl:43,fetchParameters:44,iconsBaseUrl:11,focus:45,blur:46,setQuery:47},null,[-1,-1,-1])}get focus(){return this.$$.ctx[45]}get blur(){return this.$$.ctx[46]}get setQuery(){return this.$$.ctx[47]}};/**
2
2
  * splaytree v3.1.1
3
3
  * Fast Splay tree for Node and browser
4
4
  *
package/maptilersdk.js CHANGED
@@ -1420,7 +1420,7 @@ function _a(r) {
1420
1420
  return t[2] < t[0] && (t[2] += 360), t;
1421
1421
  }
1422
1422
  function gc(r, t, e) {
1423
- let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: v = "Something went wrong…" } = t, { filter: y = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: m = !0 } = t, { language: N = void 0 } = t, { limit: S = void 0 } = t, { mapController: C = void 0 } = t, { minLength: w = 2 } = t, { noResultsMessage: T = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: L = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: D = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: ir = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Ve = {} } = t, { iconsBaseUrl: Bn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc1/icons/" } = t;
1423
+ let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: v = "Something went wrong…" } = t, { filter: y = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: m = !0 } = t, { language: N = void 0 } = t, { limit: S = void 0 } = t, { mapController: C = void 0 } = t, { minLength: w = 2 } = t, { noResultsMessage: T = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: L = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: D = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: ir = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Ve = {} } = t, { iconsBaseUrl: Bn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc2/icons/" } = t;
1424
1424
  function In() {
1425
1425
  kn.focus();
1426
1426
  }
@@ -1,4 +1,4 @@
1
- var zf=Object.defineProperty;var Uf=(ct,vt,te)=>vt in ct?zf(ct,vt,{enumerable:!0,configurable:!0,writable:!0,value:te}):ct[vt]=te;var sa=(ct,vt,te)=>(Uf(ct,typeof vt!="symbol"?vt+"":vt,te),te),al=(ct,vt,te)=>{if(!vt.has(ct))throw TypeError("Cannot "+te)};var sr=(ct,vt,te)=>(al(ct,vt,"read from private field"),te?te.call(ct):vt.get(ct)),aa=(ct,vt,te)=>{if(vt.has(ct))throw TypeError("Cannot add the same private member more than once");vt instanceof WeakSet?vt.add(ct):vt.set(ct,te)},ps=(ct,vt,te,bo)=>(al(ct,vt,"write to private field"),bo?bo.call(ct,te):vt.set(ct,te),te);(function(ct,vt){typeof exports=="object"&&typeof module<"u"?vt(exports,require("@maptiler/sdk")):typeof define=="function"&&define.amd?define(["exports","@maptiler/sdk"],vt):(ct=typeof globalThis<"u"?globalThis:ct||self,vt(ct.maptilersdkMaptilerGeocoder={},ct.maptilersdk))})(this,function(ct,vt){var kn,pi;"use strict";function te(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const bo=te(vt);function It(){}function ul(r,t){for(const e in t)r[e]=t[e];return r}function ua(r){return r()}function la(){return Object.create(null)}function ar(r){r.forEach(ua)}function ca(r){return typeof r=="function"}function xr(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}let Po;function Me(r,t){return r===t?!0:(Po||(Po=document.createElement("a")),Po.href=t,r===Po.href)}function ll(r){return Object.keys(r).length===0}function cl(r,t,e,n){if(r){const i=fa(r,t,e,n);return r[0](i)}}function fa(r,t,e,n){return r[1]&&n?ul(e.ctx.slice(),r[1](n(t))):e.ctx}function fl(r,t,e,n){if(r[2]&&n){const i=r[2](n(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function hl(r,t,e,n,i,o){if(i){const s=fa(t,e,n,o);r.p(s,i)}}function gl(r){if(r.ctx.length>32){const t=[],e=r.ctx.length/32;for(let n=0;n<e;n++)t[n]=-1;return t}return-1}function ha(r){return r??""}function nt(r,t){r.appendChild(t)}function At(r,t,e){r.insertBefore(t,e||null)}function Pt(r){r.parentNode&&r.parentNode.removeChild(r)}function gt(r){return document.createElement(r)}function Vn(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Sr(r){return document.createTextNode(r)}function nn(){return Sr(" ")}function pl(){return Sr("")}function Ce(r,t,e,n){return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}function dl(r){return function(t){return t.preventDefault(),r.call(this,t)}}function P(r,t,e){e==null?r.removeAttribute(t):r.getAttribute(t)!==e&&r.setAttribute(t,e)}function vl(r){return Array.from(r.childNodes)}function Zi(r,t){t=""+t,r.data!==t&&(r.data=t)}function ga(r,t){r.value=t??""}function rn(r,t,e){r.classList.toggle(t,!!e)}function yl(r,t,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(r,{detail:t,bubbles:e,cancelable:n})}let Ji;function $i(r){Ji=r}function pa(){if(!Ji)throw new Error("Function called outside component initialization");return Ji}function ml(r){pa().$$.on_destroy.push(r)}function _l(){const r=pa();return(t,e,{cancelable:n=!1}={})=>{const i=r.$$.callbacks[t];if(i){const o=yl(t,e,{cancelable:n});return i.slice().forEach(s=>{s.call(r,o)}),!o.defaultPrevented}return!0}}function da(r,t){const e=r.$$.callbacks[t.type];e&&e.slice().forEach(n=>n.call(this,t))}const yi=[],ds=[];let mi=[];const va=[],El=Promise.resolve();let vs=!1;function Il(){vs||(vs=!0,El.then(ya))}function ys(r){mi.push(r)}const ms=new Set;let _i=0;function ya(){if(_i!==0)return;const r=Ji;do{try{for(;_i<yi.length;){const t=yi[_i];_i++,$i(t),Cl(t.$$)}}catch(t){throw yi.length=0,_i=0,t}for($i(null),yi.length=0,_i=0;ds.length;)ds.pop()();for(let t=0;t<mi.length;t+=1){const e=mi[t];ms.has(e)||(ms.add(e),e())}mi.length=0}while(yi.length);for(;va.length;)va.pop()();vs=!1,ms.clear(),$i(r)}function Cl(r){if(r.fragment!==null){r.update(),ar(r.before_update);const t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(ys)}}function Nl(r){const t=[],e=[];mi.forEach(n=>r.indexOf(n)===-1?t.push(n):e.push(n)),e.forEach(n=>n()),mi=t}const Ro=new Set;let Kr;function Oo(){Kr={r:0,c:[],p:Kr}}function To(){Kr.r||ar(Kr.c),Kr=Kr.p}function Gt(r,t){r&&r.i&&(Ro.delete(r),r.i(t))}function fe(r,t,e,n){if(r&&r.o){if(Ro.has(r))return;Ro.add(r),Kr.c.push(()=>{Ro.delete(r),n&&(e&&r.d(1),n())}),r.o(t)}else n&&n()}function ma(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function xl(r,t){fe(r,1,1,()=>{t.delete(r.key)})}function Sl(r,t,e,n,i,o,s,a,u,l,c,f){let h=r.length,g=o.length,p=h;const v={};for(;p--;)v[r[p].key]=p;const y=[],_=new Map,m=new Map,N=[];for(p=g;p--;){const T=f(i,o,p),A=e(T);let L=s.get(A);L?n&&N.push(()=>L.p(T,t)):(L=l(A,T),L.c()),_.set(A,y[p]=L),A in v&&m.set(A,Math.abs(p-v[A]))}const S=new Set,C=new Set;function w(T){Gt(T,1),T.m(a,c),s.set(T.key,T),c=T.first,g--}for(;h&&g;){const T=y[g-1],A=r[h-1],L=T.key,F=A.key;T===A?(c=T.first,h--,g--):_.has(F)?!s.has(L)||S.has(L)?w(T):C.has(F)?h--:m.get(L)>m.get(F)?(C.add(L),w(T)):(S.add(F),h--):(u(A,s),h--)}for(;h--;){const T=r[h];_.has(T.key)||u(T,s)}for(;g;)w(y[g-1]);return ar(N),y}function wr(r){r&&r.c()}function ur(r,t,e){const{fragment:n,after_update:i}=r.$$;n&&n.m(t,e),ys(()=>{const o=r.$$.on_mount.map(ua).filter(ca);r.$$.on_destroy?r.$$.on_destroy.push(...o):ar(o),r.$$.on_mount=[]}),i.forEach(ys)}function lr(r,t){const e=r.$$;e.fragment!==null&&(Nl(e.after_update),ar(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function wl(r,t){r.$$.dirty[0]===-1&&(yi.push(r),Il(),r.$$.dirty.fill(0)),r.$$.dirty[t/31|0]|=1<<t%31}function Lr(r,t,e,n,i,o,s,a=[-1]){const u=Ji;$i(r);const l=r.$$={fragment:null,ctx:[],props:o,update:It,not_equal:i,bound:la(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:la(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(r,t.props||{},(f,h,...g)=>{const p=g.length?g[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&wl(r,f)),h}):[],l.update(),c=!0,ar(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const f=vl(t.target);l.fragment&&l.fragment.l(f),f.forEach(Pt)}else l.fragment&&l.fragment.c();t.intro&&Gt(r.$$.fragment),ur(r,t.target,t.anchor),ya()}$i(u)}class br{constructor(){sa(this,"$$");sa(this,"$$set")}$destroy(){lr(this,1),this.$destroy=It}$on(t,e){if(!ca(e))return It;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ll(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ll="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ll);const qf="";function bl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),P(t,"viewBox","0 0 60.006 21.412"),P(t,"width","14"),P(t,"height","20"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Pl extends br{constructor(t){super(),Lr(this,t,null,bl,xr,{})}}const Xf="";function Rl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"area.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"area.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ol(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"poi.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"poi.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Tl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"postal_code.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"postal_code.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Dl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"street.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"street.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ml(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"road.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"road.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Al(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"housenumber.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"housenumber.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Fl(r){let t,e,n,i;return{c(){t=gt("img"),Me(t.src,e=r[5])||P(t,"src",e),P(t,"alt",r[4]),P(t,"class","svelte-ltkwvy")},m(o,s){At(o,t,s),n||(i=Ce(t,"error",r[12]),n=!0)},p(o,s){s&32&&!Me(t.src,e=o[5])&&P(t,"src",e),s&16&&P(t,"alt",o[4])},d(o){o&&Pt(t),n=!1,i()}}}function _a(r){let t,e;return{c(){t=gt("span"),e=Sr(r[6]),P(t,"class","secondary svelte-ltkwvy")},m(n,i){At(n,t,i),nt(t,e)},p(n,i){i&64&&Zi(e,n[6])},d(n){n&&Pt(t)}}}function Bl(r){var T,A;let t,e,n,i,o,s,a,u,l=r[0].place_name.replace(/,.*/,"")+"",c,f,h=r[2]==="always"||r[2]&&!r[0].address&&((T=r[0].properties)==null?void 0:T.kind)!=="road"&&((A=r[0].properties)==null?void 0:A.kind)!=="road_relation"&&!r[0].id.startsWith("address.")&&!r[0].id.startsWith("postal_code.")&&(!r[0].id.startsWith("poi.")||!r[5]),g,p,v=r[0].place_name.replace(/[^,]*,?\s*/,"")+"",y,_,m;function N(L,F){var X,R;return F&1&&(e=null),F&1&&(n=null),F&1&&(i=null),L[5]?Fl:L[0].address?Al:((X=L[0].properties)==null?void 0:X.kind)==="road"||((R=L[0].properties)==null?void 0:R.kind)==="road_relation"?Ml:(e==null&&(e=!!L[0].id.startsWith("address.")),e?Dl:(n==null&&(n=!!L[0].id.startsWith("postal_code.")),n?Tl:(i==null&&(i=!!L[0].id.startsWith("poi.")),i?Ol:Rl)))}let S=N(r,-1),C=S(r),w=h&&_a(r);return{c(){t=gt("li"),C.c(),o=nn(),s=gt("span"),a=gt("span"),u=gt("span"),c=Sr(l),f=nn(),w&&w.c(),g=nn(),p=gt("span"),y=Sr(v),P(u,"class","primary svelte-ltkwvy"),P(a,"class","svelte-ltkwvy"),P(p,"class","line2 svelte-ltkwvy"),P(s,"class","texts svelte-ltkwvy"),P(t,"tabindex","0"),P(t,"data-selected",r[1]),P(t,"class","svelte-ltkwvy"),rn(t,"selected",r[1])},m(L,F){At(L,t,F),C.m(t,null),nt(t,o),nt(t,s),nt(s,a),nt(a,u),nt(u,c),nt(a,f),w&&w.m(a,null),nt(s,g),nt(s,p),nt(p,y),_||(m=[Ce(t,"mouseenter",r[10]),Ce(t,"focus",r[11])],_=!0)},p(L,[F]){var X,R;S===(S=N(L,F))&&C?C.p(L,F):(C.d(1),C=S(L),C&&(C.c(),C.m(t,o))),F&1&&l!==(l=L[0].place_name.replace(/,.*/,"")+"")&&Zi(c,l),F&37&&(h=L[2]==="always"||L[2]&&!L[0].address&&((X=L[0].properties)==null?void 0:X.kind)!=="road"&&((R=L[0].properties)==null?void 0:R.kind)!=="road_relation"&&!L[0].id.startsWith("address.")&&!L[0].id.startsWith("postal_code.")&&(!L[0].id.startsWith("poi.")||!L[5])),h?w?w.p(L,F):(w=_a(L),w.c(),w.m(a,null)):w&&(w.d(1),w=null),F&1&&v!==(v=L[0].place_name.replace(/[^,]*,?\s*/,"")+"")&&Zi(y,v),F&2&&P(t,"data-selected",L[1]),F&2&&rn(t,"selected",L[1])},i:It,o:It,d(L){L&&Pt(t),C.d(),w&&w.d(),_=!1,ar(m)}}}function kl(r,t,e){var _;let n,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(_=o.properties)==null?void 0:_.categories;let f,h;function g(m){h&&u.add(h),e(9,n--,n)}function p(m){da.call(this,r,m)}function v(m){da.call(this,r,m)}const y=m=>g(m.currentTarget);return r.$$set=m=>{"feature"in m&&e(0,o=m.feature),"selected"in m&&e(1,s=m.selected),"showPlaceType"in m&&e(2,a=m.showPlaceType),"missingIconsCache"in m&&e(8,u=m.missingIconsCache),"iconsBaseUrl"in m&&e(3,l=m.iconsBaseUrl)},r.$$.update=()=>{var m,N,S,C;if(r.$$.dirty&824)do e(9,n--,n),e(4,f=c==null?void 0:c[n]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!h||u.has(h)));r.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(N=(m=o.properties)==null?void 0:m.categories)==null?void 0:N.join(", "):((C=(S=o.properties)==null?void 0:S.place_type_name)==null?void 0:C[0])??o.place_type[0])},e(9,n=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,g,u,n,p,v,y]}class Gl extends br{constructor(t){super(),Lr(this,t,kl,Bl,xr,{feature:0,selected:1,showPlaceType:2,missingIconsCache:8,iconsBaseUrl:3})}}const Yf="";function Vl(r){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',P(t,"class","svelte-7cmwmc")},m(e,n){At(e,t,n)},p:It,i:It,o:It,d(e){e&&Pt(t)}}}class zl extends br{constructor(t){super(),Lr(this,t,null,Vl,xr,{})}}const Wf="";function Ul(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"),P(t,"width","14"),P(t,"height","14"),P(t,"viewBox","0 0 15 15"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class ql extends br{constructor(t){super(),Lr(this,t,null,Ul,xr,{})}}const Hf="";function Xl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),P(t,"viewBox","0 0 14 14"),P(t,"width","13"),P(t,"height","13"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ea extends br{constructor(t){super(),Lr(this,t,null,Xl,xr,{})}}const jf="";function Yl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),P(t,"viewBox","0 0 30 30"),P(t,"fill","none"),P(t,"xmlns","http://www.w3.org/2000/svg"),P(t,"class","svelte-d2loi5")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ia extends br{constructor(t){super(),Lr(this,t,null,Yl,xr,{})}}const Kf="";function Ca(r,t,e){const n=r.slice();return n[75]=t[e],n[77]=e,n}function Na(r){let t,e;return t=new zl({}),{c(){wr(t.$$.fragment)},m(n,i){ur(t,n,i),e=!0},i(n){e||(Gt(t.$$.fragment,n),e=!0)},o(n){fe(t.$$.fragment,n),e=!1},d(n){lr(t,n)}}}function xa(r){let t,e,n,i,o;return e=new Pl({}),{c(){t=gt("button"),wr(e.$$.fragment),P(t,"type","button"),P(t,"title",r[9]),P(t,"class","svelte-1r7dvt7"),rn(t,"active",r[0])},m(s,a){At(s,t,a),ur(e,t,null),n=!0,i||(o=Ce(t,"click",r[61]),i=!0)},p(s,a){(!n||a[0]&512)&&P(t,"title",s[9]),(!n||a[0]&1)&&rn(t,"active",s[0])},i(s){n||(Gt(e.$$.fragment,s),n=!0)},o(s){fe(e.$$.fragment,s),n=!1},d(s){s&&Pt(t),lr(e),i=!1,o()}}}function Wl(r){let t,e=[],n=new Map,i,o,s,a=ma(r[13]);const u=l=>l[75].id+(l[75].address?","+l[75].address:"");for(let l=0;l<a.length;l+=1){let c=Ca(r,a,l),f=u(c);n.set(f,e[l]=Sa(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();P(t,"class","svelte-1r7dvt7")},m(l,c){At(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[Ce(t,"mouseleave",r[65]),Ce(t,"blur",r[66])],o=!0)},p(l,c){c[0]&8940544&&(a=ma(l[13]),Oo(),e=Sl(e,c,u,1,l,a,n,t,xl,Sa,null,Ca),To())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Gt(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)fe(e[c]);i=!1},d(l){l&&Pt(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,ar(s)}}}function Hl(r){let t,e,n,i,o,s;return e=new Ia({}),{c(){t=gt("div"),wr(e.$$.fragment),n=nn(),i=gt("div"),o=Sr(r[7]),P(i,"class","svelte-1r7dvt7"),P(t,"class","no-results svelte-1r7dvt7")},m(a,u){At(a,t,u),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Zi(o,a[7])},i(a){s||(Gt(e.$$.fragment,a),s=!0)},o(a){fe(e.$$.fragment,a),s=!1},d(a){a&&Pt(t),lr(e)}}}function jl(r){let t="",e;return{c(){e=Sr(t)},m(n,i){At(n,e,i)},p:It,i:It,o:It,d(n){n&&Pt(e)}}}function Kl(r){let t,e,n,i,o,s,a,u,l,c,f;return e=new Ia({}),u=new Ea({}),{c(){t=gt("div"),wr(e.$$.fragment),n=nn(),i=gt("div"),o=Sr(r[6]),s=nn(),a=gt("button"),wr(u.$$.fragment),P(i,"class","svelte-1r7dvt7"),P(a,"class","svelte-1r7dvt7"),P(t,"class","error svelte-1r7dvt7")},m(h,g){At(h,t,g),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),nt(t,s),nt(t,a),ur(u,a,null),l=!0,c||(f=Ce(a,"click",r[62]),c=!0)},p(h,g){(!l||g[0]&64)&&Zi(o,h[6])},i(h){l||(Gt(e.$$.fragment,h),Gt(u.$$.fragment,h),l=!0)},o(h){fe(e.$$.fragment,h),fe(u.$$.fragment,h),l=!1},d(h){h&&Pt(t),lr(e),lr(u),c=!1,f()}}}function Sa(r,t){let e,n,i;function o(){return t[63](t[77])}function s(){return t[64](t[75])}return n=new Gl({props:{feature:t[75],showPlaceType:t[10],selected:t[14]===t[77],missingIconsCache:t[19],iconsBaseUrl:t[11]}}),n.$on("mouseenter",o),n.$on("focus",s),{key:r,first:null,c(){e=pl(),wr(n.$$.fragment),this.first=e},m(a,u){At(a,e,u),ur(n,a,u),i=!0},p(a,u){t=a;const l={};u[0]&8192&&(l.feature=t[75]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&24576&&(l.selected=t[14]===t[77]),u[0]&2048&&(l.iconsBaseUrl=t[11]),n.$set(l)},i(a){i||(Gt(n.$$.fragment,a),i=!0)},o(a){fe(n.$$.fragment,a),i=!1},d(a){a&&Pt(e),lr(n,a)}}}function Ql(r){let t,e,n,i,o,s,a,u,l,c,f,h,g,p,v,y,_,m,N,S;i=new ql({}),c=new Ea({});let C=r[18]&&Na(),w=r[5]===!0&&xa(r);const T=r[53].default,A=cl(T,r,r[52],null),L=[Kl,jl,Hl,Wl],F=[];function X(R,Y){var D,W;return R[17]?0:R[15]?((D=R[13])==null?void 0:D.length)===0?2:R[15]&&((W=R[13])!=null&&W.length)?3:-1:1}return~(v=X(r))&&(y=F[v]=L[v](r)),{c(){t=gt("form"),e=gt("div"),n=gt("button"),wr(i.$$.fragment),o=nn(),s=gt("input"),a=nn(),u=gt("div"),l=gt("button"),wr(c.$$.fragment),f=nn(),C&&C.c(),h=nn(),w&&w.c(),g=nn(),A&&A.c(),p=nn(),y&&y.c(),P(n,"class","search-button svelte-1r7dvt7"),P(n,"type","button"),P(s,"placeholder",r[8]),P(s,"aria-label",r[8]),P(s,"class","svelte-1r7dvt7"),P(l,"type","button"),P(l,"title",r[3]),P(l,"class","svelte-1r7dvt7"),P(u,"class","clear-button-container svelte-1r7dvt7"),rn(u,"displayable",r[1]!==""),P(e,"class","input-group svelte-1r7dvt7"),P(t,"tabindex","0"),P(t,"class",_=ha(r[2])+" svelte-1r7dvt7"),rn(t,"can-collapse",r[4]&&r[1]==="")},m(R,Y){At(R,t,Y),nt(t,e),nt(e,n),ur(i,n,null),nt(e,o),nt(e,s),r[55](s),ga(s,r[1]),nt(e,a),nt(e,u),nt(u,l),ur(c,l,null),nt(u,f),C&&C.m(u,null),nt(e,h),w&&w.m(e,null),nt(e,g),A&&A.m(e,null),nt(t,p),~v&&F[v].m(t,null),m=!0,N||(S=[Ce(n,"click",r[54]),Ce(s,"input",r[56]),Ce(s,"focus",r[57]),Ce(s,"blur",r[58]),Ce(s,"keydown",r[21]),Ce(s,"input",r[59]),Ce(l,"click",r[60]),Ce(t,"submit",dl(r[20]))],N=!0)},p(R,Y){(!m||Y[0]&256)&&P(s,"placeholder",R[8]),(!m||Y[0]&256)&&P(s,"aria-label",R[8]),Y[0]&2&&s.value!==R[1]&&ga(s,R[1]),(!m||Y[0]&8)&&P(l,"title",R[3]),R[18]?C?Y[0]&262144&&Gt(C,1):(C=Na(),C.c(),Gt(C,1),C.m(u,null)):C&&(Oo(),fe(C,1,1,()=>{C=null}),To()),(!m||Y[0]&2)&&rn(u,"displayable",R[1]!==""),R[5]===!0?w?(w.p(R,Y),Y[0]&32&&Gt(w,1)):(w=xa(R),w.c(),Gt(w,1),w.m(e,g)):w&&(Oo(),fe(w,1,1,()=>{w=null}),To()),A&&A.p&&(!m||Y[1]&2097152)&&hl(A,T,R,R[52],m?fl(T,R[52],Y,null):gl(R[52]),null);let D=v;v=X(R),v===D?~v&&F[v].p(R,Y):(y&&(Oo(),fe(F[D],1,1,()=>{F[D]=null}),To()),~v?(y=F[v],y?y.p(R,Y):(y=F[v]=L[v](R),y.c()),Gt(y,1),y.m(t,null)):y=null),(!m||Y[0]&4&&_!==(_=ha(R[2])+" svelte-1r7dvt7"))&&P(t,"class",_),(!m||Y[0]&22)&&rn(t,"can-collapse",R[4]&&R[1]==="")},i(R){m||(Gt(i.$$.fragment,R),Gt(c.$$.fragment,R),Gt(C),Gt(w),Gt(A,R),Gt(y),m=!0)},o(R){fe(i.$$.fragment,R),fe(c.$$.fragment,R),fe(C),fe(w),fe(A,R),fe(y),m=!1},d(R){R&&Pt(t),lr(i),r[55](null),lr(c),C&&C.d(),w&&w.d(),A&&A.d(R),~v&&F[v].d(),N=!1,ar(S)}}}function Zl(r,t,e){const n=t[1],i=t[0],o=n-i;return r===n&&e?r:((r-i)%o+o)%o+i}function wa(r){let t=[...r];return t[2]<t[0]&&(t[2]+=360),t}function Jl(r,t,e){let n,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:g=200}=t,{enableReverse:p=!1}=t,{errorMessage:v="Something went wrong…"}=t,{filter:y=()=>!0}=t,{flyTo:_=!0}=t,{fuzzyMatch:m=!0}=t,{language:N=void 0}=t,{limit:S=void 0}=t,{mapController:C=void 0}=t,{minLength:w=2}=t,{noResultsMessage:T="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=t,{placeholder:A="Search"}=t,{proximity:L=void 0}=t,{reverseActive:F=p==="always"}=t,{reverseButtonTitle:X="toggle reverse geocoding"}=t,{searchValue:R=""}=t,{showFullGeometry:Y=!0}=t,{showPlaceType:D="ifNeeded"}=t,{showResultsWhileTyping:W=!0}=t,{trackProximity:ut=!0}=t,{types:Et=void 0}=t,{zoom:$t=16}=t,{maxZoom:ce=18}=t,{apiUrl:Cr="https://api.maptiler.com/geocoding"}=t,{fetchParameters:tn={}}=t,{iconsBaseUrl:nr="https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc1/icons/"}=t;function Gn(){rr.focus()}function Hi(){rr.blur()}function Nr(x,jt=!0){e(1,R=x),jt?(e(14,Ht=-1),ol()):(na(),setTimeout(()=>{rr.focus(),rr.select()}))}let ji=!1,ht,Te,at,il="",rr,Ht=-1,ir,hs=[],di,Ki,gs,ta;const xf=new Set,Hr=_l();ml(()=>{C&&(C.setEventHandler(void 0),C.indicateReverse(!1),C.setSelectedMarker(-1),C.setMarkers(void 0,void 0))});function ol(x){if(Ki&&(clearTimeout(Ki),Ki=void 0),Ht>-1&&ht)e(49,at=ht[Ht]),e(1,R=at.place_name.replace(/,.*/,"")),e(17,ir=void 0),e(48,Te=void 0),e(14,Ht=-1);else if(R){const jt=x||!sl();ea(R,{exact:!0}).then(()=>{e(48,Te=ht),e(49,at=void 0),jt&&Sf()}).catch(or=>e(17,ir=or))}}function sl(){return/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(R)}async function ea(x,{byId:jt=!1,exact:or=!1}={}){e(17,ir=void 0);const Qi=sl(),en=new URLSearchParams;N!=null&&en.set("language",Array.isArray(N)?N.join(","):N),Et&&en.set("types",Et.join(",")),Qi||(u&&en.set("bbox",u.map(jr=>jr.toFixed(6)).join(",")),h&&en.set("country",Array.isArray(h)?h.join(","):h)),jt||(L&&en.set("proximity",L.map(jr=>jr.toFixed(6)).join(",")),(or||!W)&&en.set("autocomplete","false"),en.set("fuzzyMatch",String(m))),S!==void 0&&(!Qi||(Et==null?void 0:Et.length)===1)&&en.set("limit",String(S)),en.set("key",a);const vi=Cr+"/"+encodeURIComponent(x)+".json?"+en.toString();if(vi===il){jt?(e(13,ht=void 0),e(49,at=hs[0])):e(13,ht=hs);return}il=vi,di==null||di.abort();const De=new AbortController;e(18,di=De);let ia;try{ia=await fetch(vi,{signal:De.signal,...tn}).finally(()=>{De===di&&e(18,di=void 0)})}catch(jr){if(jr&&typeof jr=="object"&&"name"in jr&&jr.name==="AbortError")return;throw new Error}if(!ia.ok)throw new Error;const oa=await ia.json();Hr("response",{url:vi,featureCollection:oa}),jt?(e(13,ht=void 0),e(49,at=oa.features[0]),hs=[at]):(e(13,ht=oa.features.filter(y)),hs=ht,Qi&&rr.focus())}function Sf(){var or,Qi,en,vi;if(!(Te!=null&&Te.length)||!_)return;const x=[180,90,-180,-90],jt=!Te.some(De=>!De.matching_text);for(const De of Te)(jt||!De.matching_text)&&(x[0]=Math.min(x[0],((or=De.bbox)==null?void 0:or[0])??De.center[0]),x[1]=Math.min(x[1],((Qi=De.bbox)==null?void 0:Qi[1])??De.center[1]),x[2]=Math.max(x[2],((en=De.bbox)==null?void 0:en[2])??De.center[0]),x[3]=Math.max(x[3],((vi=De.bbox)==null?void 0:vi[3])??De.center[1]));C&&Te.length>0&&(at&&x[0]===x[2]&&x[1]===x[3]?C.flyTo(at.center,$t):C.fitBounds(wa(x),50,ce))}function wf(x){e(0,F=p==="always"),Nr(Zl(x[0],[-180,180],!0).toFixed(6)+","+x[1].toFixed(6))}function Lf(x){if(!ht)return;let jt=x.key==="ArrowDown"?1:x.key==="ArrowUp"?-1:0;jt?(Ht===-1&&jt===-1&&e(14,Ht=ht.length),e(14,Ht+=jt),Ht>=ht.length&&e(14,Ht=-1),x.preventDefault()):["ArrowLeft","ArrowRight","Home","End"].includes(x.key)&&e(14,Ht=-1)}function na(x=!0){if(e(17,ir=void 0),W){if(Ki&&clearTimeout(Ki),R.length<w)return;const jt=R;Ki=window.setTimeout(()=>{ea(jt).catch(or=>e(17,ir=or))},x?g:0)}else e(13,ht=void 0),e(17,ir=void 0)}function ra(x){e(49,at=x),e(1,R=x.place_name),e(14,Ht=-1)}const bf=()=>rr.focus();function Pf(x){ds[x?"unshift":"push"](()=>{rr=x,e(16,rr)})}function Rf(){R=this.value,e(1,R),e(12,ji),e(27,c)}const Of=()=>e(12,ji=!0),Tf=()=>e(12,ji=!1),Df=()=>na(),Mf=()=>{e(1,R=""),rr.focus()},Af=()=>e(0,F=!F),Ff=()=>e(17,ir=void 0),Bf=x=>e(14,Ht=x),kf=x=>ra(x),Gf=()=>e(14,Ht=-1),Vf=()=>{};return r.$$set=x=>{"class"in x&&e(2,s=x.class),"apiKey"in x&&e(25,a=x.apiKey),"bbox"in x&&e(26,u=x.bbox),"clearButtonTitle"in x&&e(3,l=x.clearButtonTitle),"clearOnBlur"in x&&e(27,c=x.clearOnBlur),"collapsed"in x&&e(4,f=x.collapsed),"country"in x&&e(28,h=x.country),"debounceSearch"in x&&e(29,g=x.debounceSearch),"enableReverse"in x&&e(5,p=x.enableReverse),"errorMessage"in x&&e(6,v=x.errorMessage),"filter"in x&&e(30,y=x.filter),"flyTo"in x&&e(31,_=x.flyTo),"fuzzyMatch"in x&&e(32,m=x.fuzzyMatch),"language"in x&&e(33,N=x.language),"limit"in x&&e(34,S=x.limit),"mapController"in x&&e(35,C=x.mapController),"minLength"in x&&e(36,w=x.minLength),"noResultsMessage"in x&&e(7,T=x.noResultsMessage),"placeholder"in x&&e(8,A=x.placeholder),"proximity"in x&&e(24,L=x.proximity),"reverseActive"in x&&e(0,F=x.reverseActive),"reverseButtonTitle"in x&&e(9,X=x.reverseButtonTitle),"searchValue"in x&&e(1,R=x.searchValue),"showFullGeometry"in x&&e(37,Y=x.showFullGeometry),"showPlaceType"in x&&e(10,D=x.showPlaceType),"showResultsWhileTyping"in x&&e(38,W=x.showResultsWhileTyping),"trackProximity"in x&&e(39,ut=x.trackProximity),"types"in x&&e(40,Et=x.types),"zoom"in x&&e(41,$t=x.zoom),"maxZoom"in x&&e(42,ce=x.maxZoom),"apiUrl"in x&&e(43,Cr=x.apiUrl),"fetchParameters"in x&&e(44,tn=x.fetchParameters),"iconsBaseUrl"in x&&e(11,nr=x.iconsBaseUrl),"$$scope"in x&&e(52,o=x.$$scope)},r.$$.update=()=>{if(r.$$.dirty[1]&256&&(ut||e(24,L=void 0)),r.$$.dirty[0]&134221824&&setTimeout(()=>{e(15,gs=ji),c&&!ji&&e(1,R="")}),r.$$.dirty[0]&8194|r.$$.dirty[1]&32&&R.length<w&&(e(49,at=void 0),e(13,ht=void 0),e(17,ir=void 0),e(48,Te=ht)),r.$$.dirty[1]&262208&&Y&&at&&!at.address&&at.geometry.type==="Point"&&ea(at.id,{byId:!0}).catch(x=>e(17,ir=x)),r.$$.dirty[1]&789521&&(C&&at&&at.id!==ta&&_&&(!at.bbox||at.bbox[0]===at.bbox[2]&&at.bbox[1]===at.bbox[3]?C.flyTo(at.center,at.id.startsWith("poi.")||at.id.startsWith("address.")?ce:$t):C.fitBounds(wa(at.bbox),50,ce),e(13,ht=void 0),e(48,Te=void 0),e(14,Ht=-1)),e(50,ta=at==null?void 0:at.id)),r.$$.dirty[0]&8192|r.$$.dirty[1]&131072&&Te!==ht&&e(48,Te=void 0),r.$$.dirty[1]&393232&&C&&C.setMarkers(Te,at),r.$$.dirty[0]&2&&e(14,Ht=-1),r.$$.dirty[0]&40961|r.$$.dirty[1]&272&&C&&C.setEventHandler(x=>{switch(x.type){case"mapClick":F&&wf(x.coordinates);break;case"proximityChange":e(24,L=ut?x.proximity:void 0);break;case"markerClick":{const jt=ht==null?void 0:ht.find(or=>or.id===x.id);jt&&ra(jt)}break;case"markerMouseEnter":e(14,Ht=gs?(ht==null?void 0:ht.findIndex(jt=>jt.id===x.id))??-1:-1);break;case"markerMouseLeave":e(14,Ht=-1);break}}),r.$$.dirty[0]&16384|r.$$.dirty[1]&16&&(C==null||C.setSelectedMarker(Ht)),r.$$.dirty[0]&24576&&e(51,n=ht==null?void 0:ht[Ht]),r.$$.dirty[0]&2|r.$$.dirty[1]&16){const x=/^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(R);C==null||C.setReverseMarker(x?[Number(x[1]),Number(x[2])]:void 0)}r.$$.dirty[1]&1048576&&Hr("select",n),r.$$.dirty[1]&262144&&Hr("pick",at),r.$$.dirty[0]&40960&&Hr("optionsVisibilityChange",gs&&!!ht),r.$$.dirty[0]&8192&&Hr("featuresListed",ht),r.$$.dirty[1]&131072&&Hr("featuresMarked",Te),r.$$.dirty[0]&1&&Hr("reverseToggle",F),r.$$.dirty[0]&2&&Hr("queryChange",R),r.$$.dirty[0]&1|r.$$.dirty[1]&16&&C&&C.indicateReverse(F)},[F,R,s,l,f,p,v,T,A,X,D,nr,ji,ht,Ht,gs,rr,ir,di,xf,ol,Lf,na,ra,L,a,u,c,h,g,y,_,m,N,S,C,w,Y,W,ut,Et,$t,ce,Cr,tn,Gn,Hi,Nr,Te,at,ta,n,o,i,bf,Pf,Rf,Of,Tf,Df,Mf,Af,Ff,Bf,kf,Gf,Vf]}let $l=class extends br{constructor(t){super(),Lr(this,t,Jl,Ql,xr,{class:2,apiKey:25,bbox:26,clearButtonTitle:3,clearOnBlur:27,collapsed:4,country:28,debounceSearch:29,enableReverse:5,errorMessage:6,filter:30,flyTo:31,fuzzyMatch:32,language:33,limit:34,mapController:35,minLength:36,noResultsMessage:7,placeholder:8,proximity:24,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:37,showPlaceType:10,showResultsWhileTyping:38,trackProximity:39,types:40,zoom:41,maxZoom:42,apiUrl:43,fetchParameters:44,iconsBaseUrl:11,focus:45,blur:46,setQuery:47},null,[-1,-1,-1])}get focus(){return this.$$.ctx[45]}get blur(){return this.$$.ctx[46]}get setQuery(){return this.$$.ctx[47]}};/**
1
+ var zf=Object.defineProperty;var Uf=(ct,vt,te)=>vt in ct?zf(ct,vt,{enumerable:!0,configurable:!0,writable:!0,value:te}):ct[vt]=te;var sa=(ct,vt,te)=>(Uf(ct,typeof vt!="symbol"?vt+"":vt,te),te),al=(ct,vt,te)=>{if(!vt.has(ct))throw TypeError("Cannot "+te)};var sr=(ct,vt,te)=>(al(ct,vt,"read from private field"),te?te.call(ct):vt.get(ct)),aa=(ct,vt,te)=>{if(vt.has(ct))throw TypeError("Cannot add the same private member more than once");vt instanceof WeakSet?vt.add(ct):vt.set(ct,te)},ps=(ct,vt,te,bo)=>(al(ct,vt,"write to private field"),bo?bo.call(ct,te):vt.set(ct,te),te);(function(ct,vt){typeof exports=="object"&&typeof module<"u"?vt(exports,require("@maptiler/sdk")):typeof define=="function"&&define.amd?define(["exports","@maptiler/sdk"],vt):(ct=typeof globalThis<"u"?globalThis:ct||self,vt(ct.maptilersdkMaptilerGeocoder={},ct.maptilersdk))})(this,function(ct,vt){var kn,pi;"use strict";function te(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const bo=te(vt);function It(){}function ul(r,t){for(const e in t)r[e]=t[e];return r}function ua(r){return r()}function la(){return Object.create(null)}function ar(r){r.forEach(ua)}function ca(r){return typeof r=="function"}function xr(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}let Po;function Me(r,t){return r===t?!0:(Po||(Po=document.createElement("a")),Po.href=t,r===Po.href)}function ll(r){return Object.keys(r).length===0}function cl(r,t,e,n){if(r){const i=fa(r,t,e,n);return r[0](i)}}function fa(r,t,e,n){return r[1]&&n?ul(e.ctx.slice(),r[1](n(t))):e.ctx}function fl(r,t,e,n){if(r[2]&&n){const i=r[2](n(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function hl(r,t,e,n,i,o){if(i){const s=fa(t,e,n,o);r.p(s,i)}}function gl(r){if(r.ctx.length>32){const t=[],e=r.ctx.length/32;for(let n=0;n<e;n++)t[n]=-1;return t}return-1}function ha(r){return r??""}function nt(r,t){r.appendChild(t)}function At(r,t,e){r.insertBefore(t,e||null)}function Pt(r){r.parentNode&&r.parentNode.removeChild(r)}function gt(r){return document.createElement(r)}function Vn(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Sr(r){return document.createTextNode(r)}function nn(){return Sr(" ")}function pl(){return Sr("")}function Ce(r,t,e,n){return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}function dl(r){return function(t){return t.preventDefault(),r.call(this,t)}}function P(r,t,e){e==null?r.removeAttribute(t):r.getAttribute(t)!==e&&r.setAttribute(t,e)}function vl(r){return Array.from(r.childNodes)}function Zi(r,t){t=""+t,r.data!==t&&(r.data=t)}function ga(r,t){r.value=t??""}function rn(r,t,e){r.classList.toggle(t,!!e)}function yl(r,t,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(r,{detail:t,bubbles:e,cancelable:n})}let Ji;function $i(r){Ji=r}function pa(){if(!Ji)throw new Error("Function called outside component initialization");return Ji}function ml(r){pa().$$.on_destroy.push(r)}function _l(){const r=pa();return(t,e,{cancelable:n=!1}={})=>{const i=r.$$.callbacks[t];if(i){const o=yl(t,e,{cancelable:n});return i.slice().forEach(s=>{s.call(r,o)}),!o.defaultPrevented}return!0}}function da(r,t){const e=r.$$.callbacks[t.type];e&&e.slice().forEach(n=>n.call(this,t))}const yi=[],ds=[];let mi=[];const va=[],El=Promise.resolve();let vs=!1;function Il(){vs||(vs=!0,El.then(ya))}function ys(r){mi.push(r)}const ms=new Set;let _i=0;function ya(){if(_i!==0)return;const r=Ji;do{try{for(;_i<yi.length;){const t=yi[_i];_i++,$i(t),Cl(t.$$)}}catch(t){throw yi.length=0,_i=0,t}for($i(null),yi.length=0,_i=0;ds.length;)ds.pop()();for(let t=0;t<mi.length;t+=1){const e=mi[t];ms.has(e)||(ms.add(e),e())}mi.length=0}while(yi.length);for(;va.length;)va.pop()();vs=!1,ms.clear(),$i(r)}function Cl(r){if(r.fragment!==null){r.update(),ar(r.before_update);const t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(ys)}}function Nl(r){const t=[],e=[];mi.forEach(n=>r.indexOf(n)===-1?t.push(n):e.push(n)),e.forEach(n=>n()),mi=t}const Ro=new Set;let Kr;function Oo(){Kr={r:0,c:[],p:Kr}}function To(){Kr.r||ar(Kr.c),Kr=Kr.p}function Gt(r,t){r&&r.i&&(Ro.delete(r),r.i(t))}function fe(r,t,e,n){if(r&&r.o){if(Ro.has(r))return;Ro.add(r),Kr.c.push(()=>{Ro.delete(r),n&&(e&&r.d(1),n())}),r.o(t)}else n&&n()}function ma(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function xl(r,t){fe(r,1,1,()=>{t.delete(r.key)})}function Sl(r,t,e,n,i,o,s,a,u,l,c,f){let h=r.length,g=o.length,p=h;const v={};for(;p--;)v[r[p].key]=p;const y=[],_=new Map,m=new Map,N=[];for(p=g;p--;){const T=f(i,o,p),A=e(T);let L=s.get(A);L?n&&N.push(()=>L.p(T,t)):(L=l(A,T),L.c()),_.set(A,y[p]=L),A in v&&m.set(A,Math.abs(p-v[A]))}const S=new Set,C=new Set;function w(T){Gt(T,1),T.m(a,c),s.set(T.key,T),c=T.first,g--}for(;h&&g;){const T=y[g-1],A=r[h-1],L=T.key,F=A.key;T===A?(c=T.first,h--,g--):_.has(F)?!s.has(L)||S.has(L)?w(T):C.has(F)?h--:m.get(L)>m.get(F)?(C.add(L),w(T)):(S.add(F),h--):(u(A,s),h--)}for(;h--;){const T=r[h];_.has(T.key)||u(T,s)}for(;g;)w(y[g-1]);return ar(N),y}function wr(r){r&&r.c()}function ur(r,t,e){const{fragment:n,after_update:i}=r.$$;n&&n.m(t,e),ys(()=>{const o=r.$$.on_mount.map(ua).filter(ca);r.$$.on_destroy?r.$$.on_destroy.push(...o):ar(o),r.$$.on_mount=[]}),i.forEach(ys)}function lr(r,t){const e=r.$$;e.fragment!==null&&(Nl(e.after_update),ar(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function wl(r,t){r.$$.dirty[0]===-1&&(yi.push(r),Il(),r.$$.dirty.fill(0)),r.$$.dirty[t/31|0]|=1<<t%31}function Lr(r,t,e,n,i,o,s,a=[-1]){const u=Ji;$i(r);const l=r.$$={fragment:null,ctx:[],props:o,update:It,not_equal:i,bound:la(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:la(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(r,t.props||{},(f,h,...g)=>{const p=g.length?g[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&wl(r,f)),h}):[],l.update(),c=!0,ar(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const f=vl(t.target);l.fragment&&l.fragment.l(f),f.forEach(Pt)}else l.fragment&&l.fragment.c();t.intro&&Gt(r.$$.fragment),ur(r,t.target,t.anchor),ya()}$i(u)}class br{constructor(){sa(this,"$$");sa(this,"$$set")}$destroy(){lr(this,1),this.$destroy=It}$on(t,e){if(!ca(e))return It;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ll(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ll="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ll);const qf="";function bl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),P(t,"viewBox","0 0 60.006 21.412"),P(t,"width","14"),P(t,"height","20"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Pl extends br{constructor(t){super(),Lr(this,t,null,bl,xr,{})}}const Xf="";function Rl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"area.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"area.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ol(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"poi.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"poi.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Tl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"postal_code.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"postal_code.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Dl(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"street.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"street.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Ml(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"road.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"road.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Al(r){let t,e;return{c(){t=gt("img"),Me(t.src,e=r[3]+"housenumber.svg")||P(t,"src",e),P(t,"alt",r[6]),P(t,"class","svelte-ltkwvy")},m(n,i){At(n,t,i)},p(n,i){i&8&&!Me(t.src,e=n[3]+"housenumber.svg")&&P(t,"src",e),i&64&&P(t,"alt",n[6])},d(n){n&&Pt(t)}}}function Fl(r){let t,e,n,i;return{c(){t=gt("img"),Me(t.src,e=r[5])||P(t,"src",e),P(t,"alt",r[4]),P(t,"class","svelte-ltkwvy")},m(o,s){At(o,t,s),n||(i=Ce(t,"error",r[12]),n=!0)},p(o,s){s&32&&!Me(t.src,e=o[5])&&P(t,"src",e),s&16&&P(t,"alt",o[4])},d(o){o&&Pt(t),n=!1,i()}}}function _a(r){let t,e;return{c(){t=gt("span"),e=Sr(r[6]),P(t,"class","secondary svelte-ltkwvy")},m(n,i){At(n,t,i),nt(t,e)},p(n,i){i&64&&Zi(e,n[6])},d(n){n&&Pt(t)}}}function Bl(r){var T,A;let t,e,n,i,o,s,a,u,l=r[0].place_name.replace(/,.*/,"")+"",c,f,h=r[2]==="always"||r[2]&&!r[0].address&&((T=r[0].properties)==null?void 0:T.kind)!=="road"&&((A=r[0].properties)==null?void 0:A.kind)!=="road_relation"&&!r[0].id.startsWith("address.")&&!r[0].id.startsWith("postal_code.")&&(!r[0].id.startsWith("poi.")||!r[5]),g,p,v=r[0].place_name.replace(/[^,]*,?\s*/,"")+"",y,_,m;function N(L,F){var X,R;return F&1&&(e=null),F&1&&(n=null),F&1&&(i=null),L[5]?Fl:L[0].address?Al:((X=L[0].properties)==null?void 0:X.kind)==="road"||((R=L[0].properties)==null?void 0:R.kind)==="road_relation"?Ml:(e==null&&(e=!!L[0].id.startsWith("address.")),e?Dl:(n==null&&(n=!!L[0].id.startsWith("postal_code.")),n?Tl:(i==null&&(i=!!L[0].id.startsWith("poi.")),i?Ol:Rl)))}let S=N(r,-1),C=S(r),w=h&&_a(r);return{c(){t=gt("li"),C.c(),o=nn(),s=gt("span"),a=gt("span"),u=gt("span"),c=Sr(l),f=nn(),w&&w.c(),g=nn(),p=gt("span"),y=Sr(v),P(u,"class","primary svelte-ltkwvy"),P(a,"class","svelte-ltkwvy"),P(p,"class","line2 svelte-ltkwvy"),P(s,"class","texts svelte-ltkwvy"),P(t,"tabindex","0"),P(t,"data-selected",r[1]),P(t,"class","svelte-ltkwvy"),rn(t,"selected",r[1])},m(L,F){At(L,t,F),C.m(t,null),nt(t,o),nt(t,s),nt(s,a),nt(a,u),nt(u,c),nt(a,f),w&&w.m(a,null),nt(s,g),nt(s,p),nt(p,y),_||(m=[Ce(t,"mouseenter",r[10]),Ce(t,"focus",r[11])],_=!0)},p(L,[F]){var X,R;S===(S=N(L,F))&&C?C.p(L,F):(C.d(1),C=S(L),C&&(C.c(),C.m(t,o))),F&1&&l!==(l=L[0].place_name.replace(/,.*/,"")+"")&&Zi(c,l),F&37&&(h=L[2]==="always"||L[2]&&!L[0].address&&((X=L[0].properties)==null?void 0:X.kind)!=="road"&&((R=L[0].properties)==null?void 0:R.kind)!=="road_relation"&&!L[0].id.startsWith("address.")&&!L[0].id.startsWith("postal_code.")&&(!L[0].id.startsWith("poi.")||!L[5])),h?w?w.p(L,F):(w=_a(L),w.c(),w.m(a,null)):w&&(w.d(1),w=null),F&1&&v!==(v=L[0].place_name.replace(/[^,]*,?\s*/,"")+"")&&Zi(y,v),F&2&&P(t,"data-selected",L[1]),F&2&&rn(t,"selected",L[1])},i:It,o:It,d(L){L&&Pt(t),C.d(),w&&w.d(),_=!1,ar(m)}}}function kl(r,t,e){var _;let n,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(_=o.properties)==null?void 0:_.categories;let f,h;function g(m){h&&u.add(h),e(9,n--,n)}function p(m){da.call(this,r,m)}function v(m){da.call(this,r,m)}const y=m=>g(m.currentTarget);return r.$$set=m=>{"feature"in m&&e(0,o=m.feature),"selected"in m&&e(1,s=m.selected),"showPlaceType"in m&&e(2,a=m.showPlaceType),"missingIconsCache"in m&&e(8,u=m.missingIconsCache),"iconsBaseUrl"in m&&e(3,l=m.iconsBaseUrl)},r.$$.update=()=>{var m,N,S,C;if(r.$$.dirty&824)do e(9,n--,n),e(4,f=c==null?void 0:c[n]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!h||u.has(h)));r.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(N=(m=o.properties)==null?void 0:m.categories)==null?void 0:N.join(", "):((C=(S=o.properties)==null?void 0:S.place_type_name)==null?void 0:C[0])??o.place_type[0])},e(9,n=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,g,u,n,p,v,y]}class Gl extends br{constructor(t){super(),Lr(this,t,kl,Bl,xr,{feature:0,selected:1,showPlaceType:2,missingIconsCache:8,iconsBaseUrl:3})}}const Yf="";function Vl(r){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',P(t,"class","svelte-7cmwmc")},m(e,n){At(e,t,n)},p:It,i:It,o:It,d(e){e&&Pt(t)}}}class zl extends br{constructor(t){super(),Lr(this,t,null,Vl,xr,{})}}const Wf="";function Ul(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"),P(t,"width","14"),P(t,"height","14"),P(t,"viewBox","0 0 15 15"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class ql extends br{constructor(t){super(),Lr(this,t,null,Ul,xr,{})}}const Hf="";function Xl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),P(t,"viewBox","0 0 14 14"),P(t,"width","13"),P(t,"height","13"),P(t,"class","svelte-en2qvf")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ea extends br{constructor(t){super(),Lr(this,t,null,Xl,xr,{})}}const jf="";function Yl(r){let t,e;return{c(){t=Vn("svg"),e=Vn("path"),P(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),P(t,"viewBox","0 0 30 30"),P(t,"fill","none"),P(t,"xmlns","http://www.w3.org/2000/svg"),P(t,"class","svelte-d2loi5")},m(n,i){At(n,t,i),nt(t,e)},p:It,i:It,o:It,d(n){n&&Pt(t)}}}class Ia extends br{constructor(t){super(),Lr(this,t,null,Yl,xr,{})}}const Kf="";function Ca(r,t,e){const n=r.slice();return n[75]=t[e],n[77]=e,n}function Na(r){let t,e;return t=new zl({}),{c(){wr(t.$$.fragment)},m(n,i){ur(t,n,i),e=!0},i(n){e||(Gt(t.$$.fragment,n),e=!0)},o(n){fe(t.$$.fragment,n),e=!1},d(n){lr(t,n)}}}function xa(r){let t,e,n,i,o;return e=new Pl({}),{c(){t=gt("button"),wr(e.$$.fragment),P(t,"type","button"),P(t,"title",r[9]),P(t,"class","svelte-1r7dvt7"),rn(t,"active",r[0])},m(s,a){At(s,t,a),ur(e,t,null),n=!0,i||(o=Ce(t,"click",r[61]),i=!0)},p(s,a){(!n||a[0]&512)&&P(t,"title",s[9]),(!n||a[0]&1)&&rn(t,"active",s[0])},i(s){n||(Gt(e.$$.fragment,s),n=!0)},o(s){fe(e.$$.fragment,s),n=!1},d(s){s&&Pt(t),lr(e),i=!1,o()}}}function Wl(r){let t,e=[],n=new Map,i,o,s,a=ma(r[13]);const u=l=>l[75].id+(l[75].address?","+l[75].address:"");for(let l=0;l<a.length;l+=1){let c=Ca(r,a,l),f=u(c);n.set(f,e[l]=Sa(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();P(t,"class","svelte-1r7dvt7")},m(l,c){At(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[Ce(t,"mouseleave",r[65]),Ce(t,"blur",r[66])],o=!0)},p(l,c){c[0]&8940544&&(a=ma(l[13]),Oo(),e=Sl(e,c,u,1,l,a,n,t,xl,Sa,null,Ca),To())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Gt(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)fe(e[c]);i=!1},d(l){l&&Pt(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,ar(s)}}}function Hl(r){let t,e,n,i,o,s;return e=new Ia({}),{c(){t=gt("div"),wr(e.$$.fragment),n=nn(),i=gt("div"),o=Sr(r[7]),P(i,"class","svelte-1r7dvt7"),P(t,"class","no-results svelte-1r7dvt7")},m(a,u){At(a,t,u),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Zi(o,a[7])},i(a){s||(Gt(e.$$.fragment,a),s=!0)},o(a){fe(e.$$.fragment,a),s=!1},d(a){a&&Pt(t),lr(e)}}}function jl(r){let t="",e;return{c(){e=Sr(t)},m(n,i){At(n,e,i)},p:It,i:It,o:It,d(n){n&&Pt(e)}}}function Kl(r){let t,e,n,i,o,s,a,u,l,c,f;return e=new Ia({}),u=new Ea({}),{c(){t=gt("div"),wr(e.$$.fragment),n=nn(),i=gt("div"),o=Sr(r[6]),s=nn(),a=gt("button"),wr(u.$$.fragment),P(i,"class","svelte-1r7dvt7"),P(a,"class","svelte-1r7dvt7"),P(t,"class","error svelte-1r7dvt7")},m(h,g){At(h,t,g),ur(e,t,null),nt(t,n),nt(t,i),nt(i,o),nt(t,s),nt(t,a),ur(u,a,null),l=!0,c||(f=Ce(a,"click",r[62]),c=!0)},p(h,g){(!l||g[0]&64)&&Zi(o,h[6])},i(h){l||(Gt(e.$$.fragment,h),Gt(u.$$.fragment,h),l=!0)},o(h){fe(e.$$.fragment,h),fe(u.$$.fragment,h),l=!1},d(h){h&&Pt(t),lr(e),lr(u),c=!1,f()}}}function Sa(r,t){let e,n,i;function o(){return t[63](t[77])}function s(){return t[64](t[75])}return n=new Gl({props:{feature:t[75],showPlaceType:t[10],selected:t[14]===t[77],missingIconsCache:t[19],iconsBaseUrl:t[11]}}),n.$on("mouseenter",o),n.$on("focus",s),{key:r,first:null,c(){e=pl(),wr(n.$$.fragment),this.first=e},m(a,u){At(a,e,u),ur(n,a,u),i=!0},p(a,u){t=a;const l={};u[0]&8192&&(l.feature=t[75]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&24576&&(l.selected=t[14]===t[77]),u[0]&2048&&(l.iconsBaseUrl=t[11]),n.$set(l)},i(a){i||(Gt(n.$$.fragment,a),i=!0)},o(a){fe(n.$$.fragment,a),i=!1},d(a){a&&Pt(e),lr(n,a)}}}function Ql(r){let t,e,n,i,o,s,a,u,l,c,f,h,g,p,v,y,_,m,N,S;i=new ql({}),c=new Ea({});let C=r[18]&&Na(),w=r[5]===!0&&xa(r);const T=r[53].default,A=cl(T,r,r[52],null),L=[Kl,jl,Hl,Wl],F=[];function X(R,Y){var D,W;return R[17]?0:R[15]?((D=R[13])==null?void 0:D.length)===0?2:R[15]&&((W=R[13])!=null&&W.length)?3:-1:1}return~(v=X(r))&&(y=F[v]=L[v](r)),{c(){t=gt("form"),e=gt("div"),n=gt("button"),wr(i.$$.fragment),o=nn(),s=gt("input"),a=nn(),u=gt("div"),l=gt("button"),wr(c.$$.fragment),f=nn(),C&&C.c(),h=nn(),w&&w.c(),g=nn(),A&&A.c(),p=nn(),y&&y.c(),P(n,"class","search-button svelte-1r7dvt7"),P(n,"type","button"),P(s,"placeholder",r[8]),P(s,"aria-label",r[8]),P(s,"class","svelte-1r7dvt7"),P(l,"type","button"),P(l,"title",r[3]),P(l,"class","svelte-1r7dvt7"),P(u,"class","clear-button-container svelte-1r7dvt7"),rn(u,"displayable",r[1]!==""),P(e,"class","input-group svelte-1r7dvt7"),P(t,"tabindex","0"),P(t,"class",_=ha(r[2])+" svelte-1r7dvt7"),rn(t,"can-collapse",r[4]&&r[1]==="")},m(R,Y){At(R,t,Y),nt(t,e),nt(e,n),ur(i,n,null),nt(e,o),nt(e,s),r[55](s),ga(s,r[1]),nt(e,a),nt(e,u),nt(u,l),ur(c,l,null),nt(u,f),C&&C.m(u,null),nt(e,h),w&&w.m(e,null),nt(e,g),A&&A.m(e,null),nt(t,p),~v&&F[v].m(t,null),m=!0,N||(S=[Ce(n,"click",r[54]),Ce(s,"input",r[56]),Ce(s,"focus",r[57]),Ce(s,"blur",r[58]),Ce(s,"keydown",r[21]),Ce(s,"input",r[59]),Ce(l,"click",r[60]),Ce(t,"submit",dl(r[20]))],N=!0)},p(R,Y){(!m||Y[0]&256)&&P(s,"placeholder",R[8]),(!m||Y[0]&256)&&P(s,"aria-label",R[8]),Y[0]&2&&s.value!==R[1]&&ga(s,R[1]),(!m||Y[0]&8)&&P(l,"title",R[3]),R[18]?C?Y[0]&262144&&Gt(C,1):(C=Na(),C.c(),Gt(C,1),C.m(u,null)):C&&(Oo(),fe(C,1,1,()=>{C=null}),To()),(!m||Y[0]&2)&&rn(u,"displayable",R[1]!==""),R[5]===!0?w?(w.p(R,Y),Y[0]&32&&Gt(w,1)):(w=xa(R),w.c(),Gt(w,1),w.m(e,g)):w&&(Oo(),fe(w,1,1,()=>{w=null}),To()),A&&A.p&&(!m||Y[1]&2097152)&&hl(A,T,R,R[52],m?fl(T,R[52],Y,null):gl(R[52]),null);let D=v;v=X(R),v===D?~v&&F[v].p(R,Y):(y&&(Oo(),fe(F[D],1,1,()=>{F[D]=null}),To()),~v?(y=F[v],y?y.p(R,Y):(y=F[v]=L[v](R),y.c()),Gt(y,1),y.m(t,null)):y=null),(!m||Y[0]&4&&_!==(_=ha(R[2])+" svelte-1r7dvt7"))&&P(t,"class",_),(!m||Y[0]&22)&&rn(t,"can-collapse",R[4]&&R[1]==="")},i(R){m||(Gt(i.$$.fragment,R),Gt(c.$$.fragment,R),Gt(C),Gt(w),Gt(A,R),Gt(y),m=!0)},o(R){fe(i.$$.fragment,R),fe(c.$$.fragment,R),fe(C),fe(w),fe(A,R),fe(y),m=!1},d(R){R&&Pt(t),lr(i),r[55](null),lr(c),C&&C.d(),w&&w.d(),A&&A.d(R),~v&&F[v].d(),N=!1,ar(S)}}}function Zl(r,t,e){const n=t[1],i=t[0],o=n-i;return r===n&&e?r:((r-i)%o+o)%o+i}function wa(r){let t=[...r];return t[2]<t[0]&&(t[2]+=360),t}function Jl(r,t,e){let n,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:g=200}=t,{enableReverse:p=!1}=t,{errorMessage:v="Something went wrong…"}=t,{filter:y=()=>!0}=t,{flyTo:_=!0}=t,{fuzzyMatch:m=!0}=t,{language:N=void 0}=t,{limit:S=void 0}=t,{mapController:C=void 0}=t,{minLength:w=2}=t,{noResultsMessage:T="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=t,{placeholder:A="Search"}=t,{proximity:L=void 0}=t,{reverseActive:F=p==="always"}=t,{reverseButtonTitle:X="toggle reverse geocoding"}=t,{searchValue:R=""}=t,{showFullGeometry:Y=!0}=t,{showPlaceType:D="ifNeeded"}=t,{showResultsWhileTyping:W=!0}=t,{trackProximity:ut=!0}=t,{types:Et=void 0}=t,{zoom:$t=16}=t,{maxZoom:ce=18}=t,{apiUrl:Cr="https://api.maptiler.com/geocoding"}=t,{fetchParameters:tn={}}=t,{iconsBaseUrl:nr="https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.99-rc2/icons/"}=t;function Gn(){rr.focus()}function Hi(){rr.blur()}function Nr(x,jt=!0){e(1,R=x),jt?(e(14,Ht=-1),ol()):(na(),setTimeout(()=>{rr.focus(),rr.select()}))}let ji=!1,ht,Te,at,il="",rr,Ht=-1,ir,hs=[],di,Ki,gs,ta;const xf=new Set,Hr=_l();ml(()=>{C&&(C.setEventHandler(void 0),C.indicateReverse(!1),C.setSelectedMarker(-1),C.setMarkers(void 0,void 0))});function ol(x){if(Ki&&(clearTimeout(Ki),Ki=void 0),Ht>-1&&ht)e(49,at=ht[Ht]),e(1,R=at.place_name.replace(/,.*/,"")),e(17,ir=void 0),e(48,Te=void 0),e(14,Ht=-1);else if(R){const jt=x||!sl();ea(R,{exact:!0}).then(()=>{e(48,Te=ht),e(49,at=void 0),jt&&Sf()}).catch(or=>e(17,ir=or))}}function sl(){return/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(R)}async function ea(x,{byId:jt=!1,exact:or=!1}={}){e(17,ir=void 0);const Qi=sl(),en=new URLSearchParams;N!=null&&en.set("language",Array.isArray(N)?N.join(","):N),Et&&en.set("types",Et.join(",")),Qi||(u&&en.set("bbox",u.map(jr=>jr.toFixed(6)).join(",")),h&&en.set("country",Array.isArray(h)?h.join(","):h)),jt||(L&&en.set("proximity",L.map(jr=>jr.toFixed(6)).join(",")),(or||!W)&&en.set("autocomplete","false"),en.set("fuzzyMatch",String(m))),S!==void 0&&(!Qi||(Et==null?void 0:Et.length)===1)&&en.set("limit",String(S)),en.set("key",a);const vi=Cr+"/"+encodeURIComponent(x)+".json?"+en.toString();if(vi===il){jt?(e(13,ht=void 0),e(49,at=hs[0])):e(13,ht=hs);return}il=vi,di==null||di.abort();const De=new AbortController;e(18,di=De);let ia;try{ia=await fetch(vi,{signal:De.signal,...tn}).finally(()=>{De===di&&e(18,di=void 0)})}catch(jr){if(jr&&typeof jr=="object"&&"name"in jr&&jr.name==="AbortError")return;throw new Error}if(!ia.ok)throw new Error;const oa=await ia.json();Hr("response",{url:vi,featureCollection:oa}),jt?(e(13,ht=void 0),e(49,at=oa.features[0]),hs=[at]):(e(13,ht=oa.features.filter(y)),hs=ht,Qi&&rr.focus())}function Sf(){var or,Qi,en,vi;if(!(Te!=null&&Te.length)||!_)return;const x=[180,90,-180,-90],jt=!Te.some(De=>!De.matching_text);for(const De of Te)(jt||!De.matching_text)&&(x[0]=Math.min(x[0],((or=De.bbox)==null?void 0:or[0])??De.center[0]),x[1]=Math.min(x[1],((Qi=De.bbox)==null?void 0:Qi[1])??De.center[1]),x[2]=Math.max(x[2],((en=De.bbox)==null?void 0:en[2])??De.center[0]),x[3]=Math.max(x[3],((vi=De.bbox)==null?void 0:vi[3])??De.center[1]));C&&Te.length>0&&(at&&x[0]===x[2]&&x[1]===x[3]?C.flyTo(at.center,$t):C.fitBounds(wa(x),50,ce))}function wf(x){e(0,F=p==="always"),Nr(Zl(x[0],[-180,180],!0).toFixed(6)+","+x[1].toFixed(6))}function Lf(x){if(!ht)return;let jt=x.key==="ArrowDown"?1:x.key==="ArrowUp"?-1:0;jt?(Ht===-1&&jt===-1&&e(14,Ht=ht.length),e(14,Ht+=jt),Ht>=ht.length&&e(14,Ht=-1),x.preventDefault()):["ArrowLeft","ArrowRight","Home","End"].includes(x.key)&&e(14,Ht=-1)}function na(x=!0){if(e(17,ir=void 0),W){if(Ki&&clearTimeout(Ki),R.length<w)return;const jt=R;Ki=window.setTimeout(()=>{ea(jt).catch(or=>e(17,ir=or))},x?g:0)}else e(13,ht=void 0),e(17,ir=void 0)}function ra(x){e(49,at=x),e(1,R=x.place_name),e(14,Ht=-1)}const bf=()=>rr.focus();function Pf(x){ds[x?"unshift":"push"](()=>{rr=x,e(16,rr)})}function Rf(){R=this.value,e(1,R),e(12,ji),e(27,c)}const Of=()=>e(12,ji=!0),Tf=()=>e(12,ji=!1),Df=()=>na(),Mf=()=>{e(1,R=""),rr.focus()},Af=()=>e(0,F=!F),Ff=()=>e(17,ir=void 0),Bf=x=>e(14,Ht=x),kf=x=>ra(x),Gf=()=>e(14,Ht=-1),Vf=()=>{};return r.$$set=x=>{"class"in x&&e(2,s=x.class),"apiKey"in x&&e(25,a=x.apiKey),"bbox"in x&&e(26,u=x.bbox),"clearButtonTitle"in x&&e(3,l=x.clearButtonTitle),"clearOnBlur"in x&&e(27,c=x.clearOnBlur),"collapsed"in x&&e(4,f=x.collapsed),"country"in x&&e(28,h=x.country),"debounceSearch"in x&&e(29,g=x.debounceSearch),"enableReverse"in x&&e(5,p=x.enableReverse),"errorMessage"in x&&e(6,v=x.errorMessage),"filter"in x&&e(30,y=x.filter),"flyTo"in x&&e(31,_=x.flyTo),"fuzzyMatch"in x&&e(32,m=x.fuzzyMatch),"language"in x&&e(33,N=x.language),"limit"in x&&e(34,S=x.limit),"mapController"in x&&e(35,C=x.mapController),"minLength"in x&&e(36,w=x.minLength),"noResultsMessage"in x&&e(7,T=x.noResultsMessage),"placeholder"in x&&e(8,A=x.placeholder),"proximity"in x&&e(24,L=x.proximity),"reverseActive"in x&&e(0,F=x.reverseActive),"reverseButtonTitle"in x&&e(9,X=x.reverseButtonTitle),"searchValue"in x&&e(1,R=x.searchValue),"showFullGeometry"in x&&e(37,Y=x.showFullGeometry),"showPlaceType"in x&&e(10,D=x.showPlaceType),"showResultsWhileTyping"in x&&e(38,W=x.showResultsWhileTyping),"trackProximity"in x&&e(39,ut=x.trackProximity),"types"in x&&e(40,Et=x.types),"zoom"in x&&e(41,$t=x.zoom),"maxZoom"in x&&e(42,ce=x.maxZoom),"apiUrl"in x&&e(43,Cr=x.apiUrl),"fetchParameters"in x&&e(44,tn=x.fetchParameters),"iconsBaseUrl"in x&&e(11,nr=x.iconsBaseUrl),"$$scope"in x&&e(52,o=x.$$scope)},r.$$.update=()=>{if(r.$$.dirty[1]&256&&(ut||e(24,L=void 0)),r.$$.dirty[0]&134221824&&setTimeout(()=>{e(15,gs=ji),c&&!ji&&e(1,R="")}),r.$$.dirty[0]&8194|r.$$.dirty[1]&32&&R.length<w&&(e(49,at=void 0),e(13,ht=void 0),e(17,ir=void 0),e(48,Te=ht)),r.$$.dirty[1]&262208&&Y&&at&&!at.address&&at.geometry.type==="Point"&&ea(at.id,{byId:!0}).catch(x=>e(17,ir=x)),r.$$.dirty[1]&789521&&(C&&at&&at.id!==ta&&_&&(!at.bbox||at.bbox[0]===at.bbox[2]&&at.bbox[1]===at.bbox[3]?C.flyTo(at.center,at.id.startsWith("poi.")||at.id.startsWith("address.")?ce:$t):C.fitBounds(wa(at.bbox),50,ce),e(13,ht=void 0),e(48,Te=void 0),e(14,Ht=-1)),e(50,ta=at==null?void 0:at.id)),r.$$.dirty[0]&8192|r.$$.dirty[1]&131072&&Te!==ht&&e(48,Te=void 0),r.$$.dirty[1]&393232&&C&&C.setMarkers(Te,at),r.$$.dirty[0]&2&&e(14,Ht=-1),r.$$.dirty[0]&40961|r.$$.dirty[1]&272&&C&&C.setEventHandler(x=>{switch(x.type){case"mapClick":F&&wf(x.coordinates);break;case"proximityChange":e(24,L=ut?x.proximity:void 0);break;case"markerClick":{const jt=ht==null?void 0:ht.find(or=>or.id===x.id);jt&&ra(jt)}break;case"markerMouseEnter":e(14,Ht=gs?(ht==null?void 0:ht.findIndex(jt=>jt.id===x.id))??-1:-1);break;case"markerMouseLeave":e(14,Ht=-1);break}}),r.$$.dirty[0]&16384|r.$$.dirty[1]&16&&(C==null||C.setSelectedMarker(Ht)),r.$$.dirty[0]&24576&&e(51,n=ht==null?void 0:ht[Ht]),r.$$.dirty[0]&2|r.$$.dirty[1]&16){const x=/^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(R);C==null||C.setReverseMarker(x?[Number(x[1]),Number(x[2])]:void 0)}r.$$.dirty[1]&1048576&&Hr("select",n),r.$$.dirty[1]&262144&&Hr("pick",at),r.$$.dirty[0]&40960&&Hr("optionsVisibilityChange",gs&&!!ht),r.$$.dirty[0]&8192&&Hr("featuresListed",ht),r.$$.dirty[1]&131072&&Hr("featuresMarked",Te),r.$$.dirty[0]&1&&Hr("reverseToggle",F),r.$$.dirty[0]&2&&Hr("queryChange",R),r.$$.dirty[0]&1|r.$$.dirty[1]&16&&C&&C.indicateReverse(F)},[F,R,s,l,f,p,v,T,A,X,D,nr,ji,ht,Ht,gs,rr,ir,di,xf,ol,Lf,na,ra,L,a,u,c,h,g,y,_,m,N,S,C,w,Y,W,ut,Et,$t,ce,Cr,tn,Gn,Hi,Nr,Te,at,ta,n,o,i,bf,Pf,Rf,Of,Tf,Df,Mf,Af,Ff,Bf,kf,Gf,Vf]}let $l=class extends br{constructor(t){super(),Lr(this,t,Jl,Ql,xr,{class:2,apiKey:25,bbox:26,clearButtonTitle:3,clearOnBlur:27,collapsed:4,country:28,debounceSearch:29,enableReverse:5,errorMessage:6,filter:30,flyTo:31,fuzzyMatch:32,language:33,limit:34,mapController:35,minLength:36,noResultsMessage:7,placeholder:8,proximity:24,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:37,showPlaceType:10,showResultsWhileTyping:38,trackProximity:39,types:40,zoom:41,maxZoom:42,apiUrl:43,fetchParameters:44,iconsBaseUrl:11,focus:45,blur:46,setQuery:47},null,[-1,-1,-1])}get focus(){return this.$$.ctx[45]}get blur(){return this.$$.ctx[46]}get setQuery(){return this.$$.ctx[47]}};/**
2
2
  * splaytree v3.1.1
3
3
  * Fast Splay tree for Node and browser
4
4
  *