@maptiler/geocoding-control
Advanced tools
Comparing version 2.0.0-rc.2 to 2.0.0-rc.3
{ | ||
"name": "@maptiler/geocoding-control", | ||
"version": "2.0.0-rc.2", | ||
"version": "2.0.0-rc.3", | ||
"description": "The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,2 +0,2 @@ | ||
(function(J,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],H):(J=typeof globalThis<"u"?globalThis:J||self,H(J.reactMaptilerGeocoder={},J.React))})(this,function(J,H){"use strict";var bn=Object.defineProperty;var vn=(J,H,z)=>H in J?bn(J,H,{enumerable:!0,configurable:!0,writable:!0,value:z}):J[H]=z;var at=(J,H,z)=>vn(J,typeof H!="symbol"?H+"":H,z);function z(){}function jt(i,e){for(const t in e)i[t]=e[t];return i}function lt(i){return i()}function ut(){return Object.create(null)}function se(i){i.forEach(lt)}function ct(i){return typeof i=="function"}function he(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let De;function V(i,e){return i===e?!0:(De||(De=document.createElement("a")),De.href=e,i===De.href)}function Ht(i){return Object.keys(i).length===0}function Pt(i,e,t,n){if(i){const o=dt(i,e,t,n);return i[0](o)}}function dt(i,e,t,n){return i[1]&&n?jt(t.ctx.slice(),i[1](n(e))):t.ctx}function Zt(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const u=[],a=Math.max(e.dirty.length,o.length);for(let r=0;r<a;r+=1)u[r]=e.dirty[r]|o[r];return u}return e.dirty|o}return e.dirty}function Gt(i,e,t,n,o,u){if(o){const a=dt(e,t,n,u);i.p(a,o)}}function qt(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ft(i){return i??""}function N(i,e){i.appendChild(e)}function I(i,e,t){i.insertBefore(e,t||null)}function D(i){i.parentNode&&i.parentNode.removeChild(i)}function O(i){return document.createElement(i)}function ae(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ce(i){return document.createTextNode(i)}function X(){return ce(" ")}function Qt(){return ce("")}function x(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Kt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function l(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Vt(i){return Array.from(i.childNodes)}function Me(i,e){e=""+e,i.data!==e&&(i.data=e)}function mt(i,e){i.value=e??""}function de(i,e,t){i.classList.toggle(e,!!t)}function xt(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let ke;function Ce(i){ke=i}function gt(){if(!ke)throw new Error("Function called outside component initialization");return ke}function Jt(i){gt().$$.on_destroy.push(i)}function Xt(){const i=gt();return(e,t,{cancelable:n=!1}={})=>{const o=i.$$.callbacks[e];if(o){const u=xt(e,t,{cancelable:n});return o.slice().forEach(a=>{a.call(i,u)}),!u.defaultPrevented}return!0}}function ht(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const we=[],qe=[];let Ee=[];const bt=[],Yt=Promise.resolve();let Qe=!1;function $t(){Qe||(Qe=!0,Yt.then(vt))}function Ke(i){Ee.push(i)}const Ve=new Set;let Se=0;function vt(){if(Se!==0)return;const i=ke;do{try{for(;Se<we.length;){const e=we[Se];Se++,Ce(e),ei(e.$$)}}catch(e){throw we.length=0,Se=0,e}for(Ce(null),we.length=0,Se=0;qe.length;)qe.pop()();for(let e=0;e<Ee.length;e+=1){const t=Ee[e];Ve.has(t)||(Ve.add(t),t())}Ee.length=0}while(we.length);for(;bt.length;)bt.pop()();Qe=!1,Ve.clear(),Ce(i)}function ei(i){if(i.fragment!==null){i.update(),se(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ke)}}function ti(i){const e=[],t=[];Ee.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ee=e}const Ue=new Set;let be;function Ie(){be={r:0,c:[],p:be}}function Ae(){be.r||se(be.c),be=be.p}function F(i,e){i&&i.i&&(Ue.delete(i),i.i(e))}function q(i,e,t,n){if(i&&i.o){if(Ue.has(i))return;Ue.add(i),be.c.push(()=>{Ue.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Lt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function ii(i,e){q(i,1,1,()=>{e.delete(i.key)})}function ni(i,e,t,n,o,u,a,r,d,c,f,h){let v=i.length,_=u.length,w=v;const W={};for(;w--;)W[i[w].key]=w;const y=[],E=new Map,C=new Map,R=[];for(w=_;w--;){const g=h(o,u,w),m=t(g);let k=a.get(m);k?R.push(()=>k.p(g,e)):(k=c(m,g),k.c()),E.set(m,y[w]=k),m in W&&C.set(m,Math.abs(w-W[m]))}const p=new Set,Q=new Set;function b(g){F(g,1),g.m(r,f),a.set(g.key,g),f=g.first,_--}for(;v&&_;){const g=y[_-1],m=i[v-1],k=g.key,P=m.key;g===m?(f=g.first,v--,_--):E.has(P)?!a.has(k)||p.has(k)?b(g):Q.has(P)?v--:C.get(k)>C.get(P)?(Q.add(k),b(g)):(p.add(P),v--):(d(m,a),v--)}for(;v--;){const g=i[v];E.has(g.key)||d(g,a)}for(;_;)b(y[_-1]);return se(R),y}function fe(i){i&&i.c()}function le(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Ke(()=>{const u=i.$$.on_mount.map(lt).filter(ct);i.$$.on_destroy?i.$$.on_destroy.push(...u):se(u),i.$$.on_mount=[]}),o.forEach(Ke)}function ue(i,e){const t=i.$$;t.fragment!==null&&(ti(t.after_update),se(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ri(i,e){i.$$.dirty[0]===-1&&(we.push(i),$t(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ve(i,e,t,n,o,u,a=null,r=[-1]){const d=ke;Ce(i);const c=i.$$={fragment:null,ctx:[],props:u,update:z,not_equal:o,bound:ut(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:ut(),dirty:r,skip_bound:!1,root:e.target||d.$$.root};a&&a(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(h,v,..._)=>{const w=_.length?_[0]:v;return c.ctx&&o(c.ctx[h],c.ctx[h]=w)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](w),f&&ri(i,h)),v}):[],c.update(),f=!0,se(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const h=Vt(e.target);c.fragment&&c.fragment.l(h),h.forEach(D)}else c.fragment&&c.fragment.c();e.intro&&F(i.$$.fragment),le(i,e.target,e.anchor),vt()}Ce(d)}class Le{constructor(){at(this,"$$");at(this,"$$set")}$destroy(){ue(this,1),this.$destroy=z}$on(e,t){if(!ct(t))return z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Ht(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const oi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oi);function si(i){let e,t;return{c(){e=ae("svg"),t=ae("path"),l(t,"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"),l(e,"viewBox","0 0 14 14"),l(e,"width","13"),l(e,"height","13"),l(e,"class","svelte-en2qvf")},m(n,o){I(n,e,o),N(e,t)},p:z,i:z,o:z,d(n){n&&D(e)}}}class _t extends Le{constructor(e){super(),ve(this,e,null,si,he,{})}}function ai(i){let e,t;return{c(){e=ae("svg"),t=ae("path"),l(t,"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"),l(e,"viewBox","0 0 30 30"),l(e,"fill","none"),l(e,"xmlns","http://www.w3.org/2000/svg"),l(e,"class","svelte-d2loi5")},m(n,o){I(n,e,o),N(e,t)},p:z,i:z,o:z,d(n){n&&D(e)}}}class yt extends Le{constructor(e){super(),ve(this,e,null,ai,he,{})}}function li(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"area.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"area.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function ui(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"reverse.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"reverse.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function ci(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"poi.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"poi.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function di(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"postal_code.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"postal_code.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function fi(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"street.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"street.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function mi(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"road.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"road.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function gi(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"housenumber.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"housenumber.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function hi(i){let e,t,n,o;return{c(){e=O("img"),V(e.src,t=i[5])||l(e,"src",t),l(e,"alt",i[4]),l(e,"class","svelte-ltkwvy")},m(u,a){I(u,e,a),n||(o=x(e,"error",i[14]),n=!0)},p(u,a){a&32&&!V(e.src,t=u[5])&&l(e,"src",t),a&16&&l(e,"alt",u[4])},d(u){u&&D(e),n=!1,o()}}}function wt(i){let e,t;return{c(){e=O("span"),t=ce(i[6]),l(e,"class","secondary svelte-ltkwvy")},m(n,o){I(n,e,o),N(e,t)},p(n,o){o&64&&Me(t,n[6])},d(n){n&&D(e)}}}function bi(i){let e,t,n,o,u,a,r,d,c,f=(i[7]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,v,_=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[7],w,W,y=(i[7]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",E,C,R;function p(m,k){return k&1&&(t=null),k&1&&(n=null),k&1&&(o=null),k&1&&(u=null),m[5]?hi:m[0].address?gi:(t==null&&(t=!!m[0].id.startsWith("road.")),t?mi:(n==null&&(n=!!m[0].id.startsWith("address.")),n?fi:(o==null&&(o=!!m[0].id.startsWith("postal_code.")),o?di:(u==null&&(u=!!m[0].id.startsWith("poi.")),u?ci:m[7]?ui:li))))}let Q=p(i,-1),b=Q(i),g=_&&wt(i);return{c(){e=O("li"),b.c(),a=X(),r=O("span"),d=O("span"),c=O("span"),h=ce(f),v=X(),g&&g.c(),w=X(),W=O("span"),E=ce(y),l(c,"class","primary svelte-ltkwvy"),l(d,"class","svelte-ltkwvy"),l(W,"class","line2 svelte-ltkwvy"),l(r,"class","texts svelte-ltkwvy"),l(e,"tabindex","0"),l(e,"data-selected",i[1]),l(e,"class","svelte-ltkwvy"),de(e,"selected",i[1])},m(m,k){I(m,e,k),b.m(e,null),N(e,a),N(e,r),N(r,d),N(d,c),N(c,h),N(d,v),g&&g.m(d,null),N(r,w),N(r,W),N(W,E),C||(R=[x(e,"mouseenter",i[12]),x(e,"focus",i[13])],C=!0)},p(m,[k]){Q===(Q=p(m,k))&&b?b.p(m,k):(b.d(1),b=Q(m),b&&(b.c(),b.m(e,a))),k&1&&f!==(f=(m[7]?m[0].place_name:m[0].place_name.replace(/,.*/,""))+"")&&Me(h,f),k&37&&(_=m[2]==="always"||m[2]!=="never"&&!m[0].address&&!m[0].id.startsWith("road.")&&!m[0].id.startsWith("address.")&&!m[0].id.startsWith("postal_code.")&&(!m[0].id.startsWith("poi.")||!m[5])&&!m[7]),_?g?g.p(m,k):(g=wt(m),g.c(),g.m(d,null)):g&&(g.d(1),g=null),k&1&&y!==(y=(m[7]?"":m[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Me(E,y),k&2&&l(e,"data-selected",m[1]),k&2&&de(e,"selected",m[1])},i:z,o:z,d(m){m&&D(e),b.d(),g&&g.d(),C=!1,se(R)}}}function vi(i,e,t){var R;let n,o,{feature:u}=e,{selected:a=!1}=e,{showPlaceType:r}=e,{missingIconsCache:d}=e,{iconsBaseUrl:c}=e;const f=(R=u.properties)==null?void 0:R.categories;let h,v,_=0,w=u.place_type[0]==="reverse";function W(){v&&d.add(v),t(10,_++,_)}function y(p){ht.call(this,i,p)}function E(p){ht.call(this,i,p)}const C=()=>W();return i.$$set=p=>{"feature"in p&&t(0,u=p.feature),"selected"in p&&t(1,a=p.selected),"showPlaceType"in p&&t(2,r=p.showPlaceType),"missingIconsCache"in p&&t(9,d=p.missingIconsCache),"iconsBaseUrl"in p&&t(3,c=p.iconsBaseUrl)},i.$$.update=()=>{var p,Q,b,g;if(i.$$.dirty&3640)do t(11,n--,n),t(4,h=f==null?void 0:f[n]),t(5,v=h?c+h.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!v||d.has(v)));i.$$.dirty&1&&t(6,o=((Q=(p=u.properties)==null?void 0:p.categories)==null?void 0:Q.join(", "))??((g=(b=u.properties)==null?void 0:b.place_type_name)==null?void 0:g[0])??u.place_type[0])},t(11,n=(f==null?void 0:f.length)??0),[u,a,r,c,h,v,o,w,W,d,_,n,y,E,C]}class Li extends Le{constructor(e){super(),ve(this,e,vi,bi,he,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function _i(i){let e;return{c(){e=O("div"),e.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>',l(e,"class","svelte-7cmwmc")},m(t,n){I(t,e,n)},p:z,i:z,o:z,d(t){t&&D(e)}}}class yi extends Le{constructor(e){super(),ve(this,e,null,_i,he,{})}}function wi(i){let e,t;return{c(){e=ae("svg"),t=ae("path"),l(t,"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"),l(e,"viewBox","0 0 60.006 21.412"),l(e,"width","14"),l(e,"height","20"),l(e,"class","svelte-en2qvf")},m(n,o){I(n,e,o),N(e,t)},p:z,i:z,o:z,d(n){n&&D(e)}}}class Ei extends Le{constructor(e){super(),ve(this,e,null,wi,he,{})}}function Si(i){let e,t,n;return{c(){e=ae("svg"),t=ae("circle"),n=ae("path"),l(t,"cx","4.789"),l(t,"cy","4.787"),l(t,"r","3.85"),l(t,"class","svelte-1aq105l"),l(n,"d","M12.063 12.063 7.635 7.635"),l(n,"class","svelte-1aq105l"),l(e,"xmlns","http://www.w3.org/2000/svg"),l(e,"width","13"),l(e,"height","13"),l(e,"viewBox","0 0 13 13"),l(e,"class","svelte-1aq105l")},m(o,u){I(o,e,u),N(e,t),N(e,n)},p:z,i:z,o:z,d(o){o&&D(e)}}}class pi extends Le{constructor(e){super(),ve(this,e,null,Si,he,{})}}function Ti(i,e,t){const n=e[1],o=e[0],u=n-o;return i===n&&t?i:((i-o)%u+u)%u+o}function Et(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let We;async function Ni(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const o of e??[])if(!(n&&(o.minZoom!=null&&o.minZoom>n[0]||o.maxZoom!=null&&o.maxZoom<n[0]))){if(o.type==="fixed")return o.coordinates.join(",");e:if(o.type==="client-geolocation"){if(We&&o.cachedLocationExpiry&&We.time+o.cachedLocationExpiry>Date.now()){if(!We.coords)break e;return We.coords}let u;try{return u=await new Promise((a,r)=>{t.signal.addEventListener("abort",()=>{r(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{a([d.coords.longitude,d.coords.latitude].map(c=>c.toFixed(6)).join(","))},d=>{r(d)},o)}),u}catch{}finally{o.cachedLocationExpiry&&(We={time:Date.now(),coords:u})}if(t.signal.aborted)return}if(o.type==="server-geolocation")return"ip";if(n&&o.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const Mi=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,St=/^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/,pt=/^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i,Tt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i,Nt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i,Mt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;function ki(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(_=>Number(_.trim())),t=Number(e[0]),n=Number(e[1]),o=Math.abs(t),u=Math.abs(n),a=t>0?"N":"S",r=n>0?"E":"W";let d;i=="DD"&&(d=`${o}° ${a}, ${u}° ${r}`);const c=Math.floor(o),f=Math.floor(u),h=(o-c)*60,v=(u-f)*60;if(i=="DM"){let _=kt(h,3).toFixed(3).padStart(6,"0"),w=kt(v,3).toFixed(3).padStart(6,"0");_.endsWith(".000")&&w.endsWith(".000")&&(_=_.replace(/\.000$/,""),w=w.replace(/\.000$/,"")),d=`${c}° ${_}' ${a}, ${f}° ${w}' ${r}`}if(i=="DMS"){const _=Math.floor(h),w=Math.floor(v);let W=((h-_)*60).toFixed(1).padStart(4,"0"),y=((v-w)*60).toFixed(1).padStart(4,"0");const E=_.toString().padStart(2,"0"),C=w.toString().padStart(2,"0");W.endsWith(".0")&&y.endsWith(".0")&&(W=W.replace(/\.0$/,""),y=y.replace(/\.0$/,"")),d=`${c}° ${E}' ${W}" ${a}, ${f}° ${C}' ${y}" ${r}`}return d}else throw new Error("no decimal coordinates to convert")}function kt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function xe(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,o="",u="",a=null,r=[],d=!1;if(Mi.test(i))throw new Error("invalid coordinate value");if(St.test(i))if(r=St.exec(i),d=Re(r),d)t=Math.abs(r[1])+r[2]/60,Number(r[1])<0&&(t*=-1),n=Math.abs(r[3])+r[4]/60,Number(r[3])<0&&(n*=-1),a="DM";else throw new Error("invalid coordinate format");else if(pt.test(i))if(r=pt.exec(i),d=Re(r),d){if(t=r[2],n=r[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),a="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");r[1]?(o=r[1],u=r[5]):r[4]&&(o=r[4],u=r[8])}else throw new Error("invalid decimal coordinate format");else if(Tt.test(i))if(r=Tt.exec(i),d=Re(r),d)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4]/60,a="DM"),r[6]&&(t+=r[6].replace(",",".")/3600,a="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[9])),r[11]&&(n+=r[11]/60),r[13]&&(n+=r[13].replace(",",".")/3600),parseInt(r[9])<0&&(n=-1*n),r[1]?(o=r[1],u=r[8]):r[7]&&(o=r[7],u=r[14]);else throw new Error("invalid DMS coordinates format");else if(Nt.test(i))if(r=Nt.exec(i),d=Re(r),d)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4]/60,a="DM"),r[6]&&(t+=r[6]/3600,a="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[10])),r[12]&&(n+=r[12]/60),r[14]&&(n+=r[14]/3600),parseInt(r[10])<0&&(n=-1*n),r[1]?(o=r[1],u=r[9]):r[8]&&(o=r[8],u=r[16]);else throw new Error("invalid DMS coordinates format");else if(Mt.test(i)){if(r=Mt.exec(i),d=Re(r),r.filter(c=>c).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4].replace(",",".")/60,a="DM"),r[6]&&(t+=r[6].replace(",",".")/3600,a="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[10])),r[12]&&(n+=r[12].replace(",",".")/60),r[14]&&(n+=r[14].replace(",",".")/3600),parseInt(r[10])<0&&(n=-1*n),r[1]?(o=r[1],u=r[9]):r[8]&&(o=r[8],u=r[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(o&&!u||!o&&u)throw new Error("invalid coordinates value");if(o&&o==u)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let c=/S|SOUTH/i;c.test(o)&&t>0&&(t=-1*t),c=/W|WEST/i,c.test(u)&&n>0&&(n=-1*n);const f=r[0].trim();let h,v;const _=/[,/;\u0020]/g,w=f.match(_);if(w==null){const E=Math.floor(i.length/2);h=f.substring(0,E).trim(),v=f.substring(E).trim()}else{let E;w.length%2==1?E=Math.floor(w.length/2):E=w.length/2-1;let C=0;if(E==0)C=f.indexOf(w[0]),h=f.substring(0,C).trim(),v=f.substring(C+1).trim();else{let R=0,p=0;for(;R<=E;)C=f.indexOf(w[R],p),p=C+1,R++;h=f.substring(0,C).trim(),v=f.substring(C+1).trim()}}const W=h.split(".");if(W.length==2&&W[1]==0&&W[1].length!=2)throw new Error("invalid coordinates format");const y=v.split(".");if(y.length==2&&y[1]==0&&y[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(v))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:h,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:a,closeEnough:Ci,toCoordinateFormat:ki})}else throw new Error("coordinates pattern match failed")}function Re(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,o=e.length/2;for(let u=0;u<o;u++){const a=e[u],r=e[u+o],d=t.test(a)&&t.test(r),c=n.test(a)&&n.test(r),f=a==r;if(!(a==null&&r==null)){if(a==null||r==null)return!1;if(d||c||f)continue;return!1}}return!0}function Ct(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Ci(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Ct(this.decimalLatitude,Number(e[0]))&&Ct(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Wi=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});xe.to=Wi;const Ri=[{verbatimCoordinates:"40.123, -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:'40° 7´ 22.8" N 74° 7´ 22.8" W',verbatimLatitude:'40° 7´ 22.8" N',verbatimLongitude:'74° 7´ 22.8" W'},{verbatimCoordinates:"40° 7.38’ , -74° 7.38’",verbatimLatitude:"40° 7.38’",verbatimLongitude:"-74° 7.38’"},{verbatimCoordinates:"N40°7’22.8’’, W74°7’22.8’’",verbatimLatitude:"N40°7’22.8’’",verbatimLongitude:"W74°7’22.8’’"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:`40°7'22.8"N, 74°7'22.8"W`,verbatimLatitude:`40°7'22.8"N`,verbatimLongitude:`74°7'22.8"W`},{verbatimCoordinates:"40 7 22.8, -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"},{verbatimCoordinates:"40.123 -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123°,-74.123°",verbatimLatitude:"40.123°",verbatimLongitude:"-74.123°"},{verbatimCoordinates:"40.123N74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"4007.38N7407.38W",verbatimLatitude:"4007.38N",verbatimLongitude:"7407.38W"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:"400722.8N740722.8W",verbatimLatitude:"400722.8N",verbatimLongitude:"740722.8W"},{verbatimCoordinates:"N 40 7.38 W 74 7.38",verbatimLatitude:"N 40 7.38",verbatimLongitude:"W 74 7.38"},{verbatimCoordinates:"40:7:22.8N 74:7:22.8W",verbatimLatitude:"40:7:22.8N",verbatimLongitude:"74:7:22.8W"},{verbatimCoordinates:"40:7:23N,74:7:23W",verbatimLatitude:"40:7:23N",verbatimLongitude:"74:7:23W",decimalLatitude:40.1230555555,decimalLongitude:-74.1230555555},{verbatimCoordinates:'40°7’23"N 74°7’23"W',verbatimLatitude:'40°7’23"N',verbatimLongitude:'74°7’23"W',decimalLatitude:40.1230555555,decimalLongitude:-74.12305555555555},{verbatimCoordinates:'40°7’23"S 74°7’23"E',verbatimLatitude:'40°7’23"S',verbatimLongitude:'74°7’23"E',decimalLatitude:-40.1230555555,decimalLongitude:74.12305555555555},{verbatimCoordinates:'40°7’23" -74°7’23"',verbatimLatitude:'40°7’23"',verbatimLongitude:'-74°7’23"',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:'40d 7’ 23" N 74d 7’ 23" W',verbatimLatitude:'40d 7’ 23" N',verbatimLongitude:'74d 7’ 23" W',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:"40.123N 74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40 7 22.8; -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"}],zi={decimalLatitude:40.123,decimalLongitude:-74.123},Oi=[{verbatimCoordinates:`50°4'17.698"south, 14°24'2.826"east`,verbatimLatitude:`50°4'17.698"south`,verbatimLongitude:`14°24'2.826"east`,decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"50d4m17.698S 14d24m2.826E",verbatimLatitude:"50d4m17.698S",verbatimLongitude:"14d24m2.826E",decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"40:26:46N,79:56:55W",verbatimLatitude:"40:26:46N",verbatimLongitude:"79:56:55W",decimalLatitude:40.44611111111111,decimalLongitude:-79.9486111111111},{verbatimCoordinates:"40:26:46.302N 79:56:55.903W",verbatimLatitude:"40:26:46.302N",verbatimLongitude:"79:56:55.903W",decimalLatitude:40.446195,decimalLongitude:-79.94886194444445},{verbatimCoordinates:"40°26′47″N 79°58′36″W",verbatimLatitude:"40°26′47″N",verbatimLongitude:"79°58′36″W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40d 26′ 47″ N 79d 58′ 36″ W",verbatimLatitude:"40d 26′ 47″ N",verbatimLongitude:"79d 58′ 36″ W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40.446195N 79.948862W",verbatimLatitude:"40.446195N",verbatimLongitude:"79.948862W",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40,446195° 79,948862°",verbatimLatitude:"40,446195°",verbatimLongitude:"79,948862°",decimalLatitude:40.446195,decimalLongitude:79.948862},{verbatimCoordinates:"40° 26.7717, -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.446195, -79.948862",verbatimLatitude:"40.446195",verbatimLongitude:"-79.948862",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.123256; -74.123256",verbatimLatitude:"40.123256",verbatimLongitude:"-74.123256",decimalLatitude:40.123256,decimalLongitude:-74.123256},{verbatimCoordinates:"18°24S 22°45E",verbatimLatitude:"18°24S",verbatimLongitude:"22°45E",decimalLatitude:-18.4,decimalLongitude:22.75}],Di=[{verbatimCoordinates:"10.432342S 10.6345345E",verbatimLatitude:"10.432342S",verbatimLongitude:"10.6345345E",decimalLatitude:-10.432342,decimalLongitude:10.6345345},{verbatimCoordinates:"10.00S 10.00E",verbatimLatitude:"10.00S",verbatimLongitude:"10.00E",decimalLatitude:-10,decimalLongitude:10},{verbatimCoordinates:"00.00S 01.00E",verbatimLatitude:"00.00S",verbatimLongitude:"01.00E",decimalLatitude:0,decimalLongitude:1},{verbatimCoordinates:"18.24S 22.45E",verbatimLatitude:"18.24S",verbatimLongitude:"22.45E",decimalLatitude:-18.4,decimalLongitude:22.75},{verbatimCoordinates:"27deg 15min 45.2sec S 18deg 32min 53.7sec E",verbatimLatitude:"27deg 15min 45.2sec S",verbatimLongitude:"18deg 32min 53.7sec E",decimalLatitude:-27.262555555555554,decimalLongitude:18.54825},{verbatimCoordinates:"-23.3245° S / 28.2344° E",verbatimLatitude:"-23.3245° S",verbatimLongitude:"28.2344° E",decimalLatitude:-23.3245,decimalLongitude:28.2344},{verbatimCoordinates:"40° 26.7717 -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"27.15.45S 18.32.53E",verbatimLatitude:"27.15.45S",verbatimLongitude:"18.32.53E",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"-27.15.45 18.32.53",verbatimLatitude:"-27.15.45",verbatimLongitude:"18.32.53",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"27.15.45.2S 18.32.53.4E",verbatimLatitude:"27.15.45.2S",verbatimLongitude:"18.32.53.4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"27.15.45,2S 18.32.53,4E",verbatimLatitude:"27.15.45,2S",verbatimLongitude:"18.32.53,4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"S23.43563 ° E22.45634 °",verbatimLatitude:"S23.43563 °",verbatimLongitude:"E22.45634 °",decimalLatitude:-23.43563,decimalLongitude:22.45634},{verbatimCoordinates:"27,71372° S 23,07771° E",verbatimLatitude:"27,71372° S",verbatimLongitude:"23,07771° E",decimalLatitude:-27.71372,decimalLongitude:23.07771},{verbatimCoordinates:"27.45.34 S 23.23.23 E",verbatimLatitude:"27.45.34 S",verbatimLongitude:"23.23.23 E",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"S 27.45.34 E 23.23.23",verbatimLatitude:"S 27.45.34",verbatimLongitude:"E 23.23.23",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"53 16.3863,4 52.8171",verbatimLatitude:"53 16.3863",verbatimLongitude:"4 52.8171",decimalLatitude:53.273105,decimalLongitude:4.88029},{verbatimCoordinates:"50 8.2914,-5 2.4447",verbatimLatitude:"50 8.2914",verbatimLongitude:"-5 2.4447",decimalLatitude:50.13819,decimalLongitude:-5.040745},{verbatimCoordinates:"N 48° 30,6410', E 18° 57,4583'",verbatimLatitude:"N 48° 30,6410'",verbatimLongitude:"E 18° 57,4583'",decimalLatitude:48.51068,decimalLongitude:18.95764},{verbatimCoordinates:"1.23456, 18.33453",verbatimLatitude:"1.23456",verbatimLongitude:"18.33453",decimalLatitude:1.23456,decimalLongitude:18.33453}];function Ui(){const i=[];return Ri.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...zi})}),[...i,...Oi,...Di]}const Ii=Ui();xe.formats=Ii.map(i=>i.verbatimCoordinates);const Ai=xe;function Wt(i,e,t){const n=i.slice();return n[86]=e[t],n[88]=t,n}function Rt(i){let e,t;return e=new yi({}),{c(){fe(e.$$.fragment)},m(n,o){le(e,n,o),t=!0},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){q(e.$$.fragment,n),t=!1},d(n){ue(e,n)}}}function zt(i){let e,t,n,o,u;return t=new Ei({}),{c(){e=O("button"),fe(t.$$.fragment),l(e,"type","button"),l(e,"title",i[9]),l(e,"class","svelte-bz0zu3"),de(e,"active",i[0])},m(a,r){I(a,e,r),le(t,e,null),n=!0,o||(u=x(e,"click",i[70]),o=!0)},p(a,r){(!n||r[0]&512)&&l(e,"title",a[9]),(!n||r[0]&1)&&de(e,"active",a[0])},i(a){n||(F(t.$$.fragment,a),n=!0)},o(a){q(t.$$.fragment,a),n=!1},d(a){a&&D(e),ue(t),o=!1,u()}}}function Bi(i){let e,t=[],n=new Map,o,u,a,r=Lt(i[14]);const d=c=>c[86].id+(c[86].address?","+c[86].address:"");for(let c=0;c<r.length;c+=1){let f=Wt(i,r,c),h=d(f);n.set(h,t[c]=Ot(h,f))}return{c(){e=O("ul");for(let c=0;c<t.length;c+=1)t[c].c();l(e,"class","options svelte-bz0zu3")},m(c,f){I(c,e,f);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);o=!0,u||(a=[x(e,"mouseleave",i[74]),x(e,"blur",i[75])],u=!0)},p(c,f){f[0]&17880064&&(r=Lt(c[14]),Ie(),t=ni(t,f,d,1,c,r,n,e,ii,Ot,null,Wt),Ae())},i(c){if(!o){for(let f=0;f<r.length;f+=1)F(t[f]);o=!0}},o(c){for(let f=0;f<t.length;f+=1)q(t[f]);o=!1},d(c){c&&D(e);for(let f=0;f<t.length;f+=1)t[f].d();u=!1,se(a)}}}function Fi(i){let e,t,n,o,u,a;return t=new yt({}),{c(){e=O("div"),fe(t.$$.fragment),n=X(),o=O("div"),u=ce(i[7]),l(o,"class","svelte-bz0zu3"),l(e,"class","no-results svelte-bz0zu3")},m(r,d){I(r,e,d),le(t,e,null),N(e,n),N(e,o),N(o,u),a=!0},p(r,d){(!a||d[0]&128)&&Me(u,r[7])},i(r){a||(F(t.$$.fragment,r),a=!0)},o(r){q(t.$$.fragment,r),a=!1},d(r){r&&D(e),ue(t)}}}function ji(i){let e="",t;return{c(){t=ce(e)},m(n,o){I(n,t,o)},p:z,i:z,o:z,d(n){n&&D(t)}}}function Hi(i){let e,t,n,o,u,a,r,d,c,f,h;return t=new yt({}),d=new _t({}),{c(){e=O("div"),fe(t.$$.fragment),n=X(),o=O("div"),u=ce(i[6]),a=X(),r=O("button"),fe(d.$$.fragment),l(o,"class","svelte-bz0zu3"),l(r,"class","svelte-bz0zu3"),l(e,"class","error svelte-bz0zu3")},m(v,_){I(v,e,_),le(t,e,null),N(e,n),N(e,o),N(o,u),N(e,a),N(e,r),le(d,r,null),c=!0,f||(h=x(r,"click",i[71]),f=!0)},p(v,_){(!c||_[0]&64)&&Me(u,v[6])},i(v){c||(F(t.$$.fragment,v),F(d.$$.fragment,v),c=!0)},o(v){q(t.$$.fragment,v),q(d.$$.fragment,v),c=!1},d(v){v&&D(e),ue(t),ue(d),f=!1,h()}}}function Ot(i,e){let t,n,o;function u(){return e[72](e[88])}function a(){return e[73](e[86])}return n=new Li({props:{feature:e[86],showPlaceType:e[10],selected:e[15]===e[88],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),n.$on("mouseenter",u),n.$on("focus",a),{key:i,first:null,c(){t=Qt(),fe(n.$$.fragment),this.first=t},m(r,d){I(r,t,d),le(n,r,d),o=!0},p(r,d){e=r;const c={};d[0]&16384&&(c.feature=e[86]),d[0]&1024&&(c.showPlaceType=e[10]),d[0]&49152&&(c.selected=e[15]===e[88]),d[0]&4096&&(c.iconsBaseUrl=e[12]),n.$set(c)},i(r){o||(F(n.$$.fragment,r),o=!0)},o(r){q(n.$$.fragment,r),o=!1},d(r){r&&D(t),ue(n,r)}}}function Pi(i){let e,t,n,o,u,a,r,d,c,f,h,v,_,w,W,y,E,C,R,p,Q,b=!1;u=new pi({}),h=new _t({});let g=i[19]&&Rt(),m=i[5]===!0&&zt(i);const k=i[62].default,P=Pt(k,i,i[61],null),$=[Hi,ji,Fi,Bi],ie=[];function B(L,j){var ne,pe;return L[18]?0:L[16]?((ne=L[14])==null?void 0:ne.length)===0?2:L[16]&&((pe=L[14])!=null&&pe.length)?3:-1:1}return~(y=B(i))&&(E=ie[y]=$[y](i)),{c(){e=X(),t=O("form"),n=O("div"),o=O("button"),fe(u.$$.fragment),a=X(),r=O("input"),d=X(),c=O("div"),f=O("button"),fe(h.$$.fragment),v=X(),g&&g.c(),_=X(),m&&m.c(),w=X(),P&&P.c(),W=X(),E&&E.c(),l(o,"class","search-button svelte-bz0zu3"),l(o,"type","button"),l(r,"placeholder",i[8]),l(r,"aria-label",i[8]),l(r,"class","svelte-bz0zu3"),l(f,"type","button"),l(f,"title",i[3]),l(f,"class","svelte-bz0zu3"),l(c,"class","clear-button-container svelte-bz0zu3"),de(c,"displayable",i[1]!==""),l(n,"class","input-group svelte-bz0zu3"),l(t,"tabindex","0"),l(t,"class",C=ft(i[2])+" svelte-bz0zu3"),de(t,"can-collapse",i[4]&&i[1]==="")},m(L,j){I(L,e,j),I(L,t,j),N(t,n),N(n,o),le(u,o,null),N(n,a),N(n,r),i[64](r),mt(r,i[1]),N(n,d),N(n,c),N(c,f),le(h,f,null),N(c,v),g&&g.m(c,null),N(n,_),m&&m.m(n,null),N(n,w),P&&P.m(n,null),N(t,W),~y&&ie[y].m(t,null),R=!0,p||(Q=[x(o,"click",i[63]),x(r,"input",i[65]),x(r,"focus",i[66]),x(r,"blur",i[67]),x(r,"keydown",i[22]),x(r,"input",i[68]),x(f,"click",i[69]),x(t,"submit",Kt(i[21]))],p=!0)},p(L,j){(!R||j[0]&256)&&l(r,"placeholder",L[8]),(!R||j[0]&256)&&l(r,"aria-label",L[8]),j[0]&2&&r.value!==L[1]&&mt(r,L[1]),(!R||j[0]&8)&&l(f,"title",L[3]),L[19]?g?j[0]&524288&&F(g,1):(g=Rt(),g.c(),F(g,1),g.m(c,null)):g&&(Ie(),q(g,1,1,()=>{g=null}),Ae()),(!R||j[0]&2)&&de(c,"displayable",L[1]!==""),L[5]===!0?m?(m.p(L,j),j[0]&32&&F(m,1)):(m=zt(L),m.c(),F(m,1),m.m(n,w)):m&&(Ie(),q(m,1,1,()=>{m=null}),Ae()),P&&P.p&&(!R||j[1]&1073741824)&&Gt(P,k,L,L[61],R?Zt(k,L[61],j,null):qt(L[61]),null);let ne=y;y=B(L),y===ne?~y&&ie[y].p(L,j):(E&&(Ie(),q(ie[ne],1,1,()=>{ie[ne]=null}),Ae()),~y?(E=ie[y],E?E.p(L,j):(E=ie[y]=$[y](L),E.c()),F(E,1),E.m(t,null)):E=null),(!R||j[0]&4&&C!==(C=ft(L[2])+" svelte-bz0zu3"))&&l(t,"class",C),(!R||j[0]&22)&&de(t,"can-collapse",L[4]&&L[1]==="")},i(L){R||(F(b),F(u.$$.fragment,L),F(h.$$.fragment,L),F(g),F(m),F(P,L),F(E),R=!0)},o(L){q(b),q(u.$$.fragment,L),q(h.$$.fragment,L),q(g),q(m),q(P,L),q(E),R=!1},d(L){L&&(D(e),D(t)),ue(u),i[64](null),ue(h),g&&g.d(),m&&m.d(),P&&P.d(L),~y&&ie[y].d(),p=!1,se(Q)}}}function Zi(i,e,t){let n,{$$slots:o={},$$scope:u}=e;const a={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};let{class:r=void 0}=e,{apiKey:d}=e,{bbox:c=void 0}=e,{clearButtonTitle:f="clear"}=e,{clearOnBlur:h=!1}=e,{collapsed:v=!1}=e,{country:_=void 0}=e,{debounceSearch:w=200}=e,{enableReverse:W=!1}=e,{errorMessage:y="Something went wrong…"}=e,{filter:E=()=>!0}=e,{flyTo:C=!0}=e,{fuzzyMatch:R=!0}=e,{language:p=void 0}=e,{limit:Q=void 0}=e,{mapController:b=void 0}=e,{minLength:g=2}=e,{noResultsMessage:m="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!"}=e,{placeholder:k="Search"}=e,{proximity:P=[{type:"server-geolocation"}]}=e,{reverseActive:$=W==="always"}=e,{reverseButtonTitle:ie="toggle reverse geocoding"}=e,{searchValue:B=""}=e,{pickedResultStyle:L="full-geometry"}=e,{showPlaceType:j="if-needed"}=e,{showResultsWhileTyping:ne=!0}=e,{autocompleteTimeout:pe=void 0}=e,{selectFirst:Te=!0}=e,{flyToSelected:Je=!1}=e,{markerOnSelected:Be=!0}=e,{types:_e=void 0}=e,{exhaustiveReverseGeocoding:Xe=!1}=e,{excludeTypes:Fe=!1}=e,{zoom:je=a}=e,{apiUrl:Ye="https://api.maptiler.com/geocoding"}=e,{fetchParameters:$e={}}=e,{iconsBaseUrl:It="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.2/icons/"}=e,{adjustUrlQuery:et=()=>{}}=e;function Ki(){re.focus()}function Vi(){re.blur()}function At(s,A=!0,G=!1){t(1,B=s),A?(t(15,U=-1),Ft()):(nt(!G,G),setTimeout(()=>{re.focus(),re.select()}))}function xi(){t(14,M=void 0),t(57,S=void 0),t(15,U=-1)}function Ji(){t(56,Z=[]),t(57,S=void 0)}let Ne=!1,M,Z,S,Bt="",re,U=-1,oe,He=[],ye,me,ee,Pe,tt;const Xi=new Set,ge=Xt();function Yi(){return!!ee}Jt(()=>{b&&(b.setEventHandler(void 0),b.indicateReverse(!1),b.setSelectedMarker(-1),b.setMarkers(void 0,void 0))});function Ft(s){if(me&&(window.clearTimeout(me),me=void 0),ee){window.clearTimeout(ee),t(58,ee=void 0),ze(B,{exact:!0});return}if(U>-1&&M)t(57,S=M[U]),t(1,B=S.place_type[0]==="reverse"?S.place_name:S.place_name.replace(/,.*/,"")),t(18,oe=void 0),t(56,Z=void 0),t(15,U=-1);else if(B){const A=s||!it(B);ze(B,{exact:!0}).then(()=>{t(56,Z=M),t(57,S=void 0),A&&$i()}).catch(G=>t(18,oe=G))}}function it(s){try{return Ai(s,6)}catch{return!1}}async function ze(s,{byId:A=!1,exact:G=!1,appendSpace:te=!1}={}){t(18,oe=void 0),ye==null||ye.abort();const Y=new AbortController;t(19,ye=Y);try{const T=it(s),K=new URLSearchParams;if(p!==void 0&&K.set("language",Array.isArray(p)?p.join(","):p??""),_e&&K.set("types",_e.join(",")),Fe&&K.set("excludeTypes",String(Fe)),c&&K.set("bbox",c.map(Ge=>Ge.toFixed(6)).join(",")),_&&K.set("country",Array.isArray(_)?_.join(","):_),!A&&!T){const Ge=await Ni(b,P,Y);Ge&&K.set("proximity",Ge),(G||!ne)&&K.set("autocomplete","false"),K.set("fuzzyMatch",String(R))}Q!==void 0&&(Xe||!T||(_e==null?void 0:_e.length)===1)&&K.set("limit",String(Q)),K.set("key",d),et(K);const Ze=Ye+"/"+encodeURIComponent(T?T.decimalLongitude+","+T.decimalLatitude:s+(te?" ":""))+".json?"+K.toString();if(Ze===Bt){A?(t(14,M=void 0),t(57,S=He[0])):t(14,M=He);return}Bt=Ze;const ot=await fetch(Ze,{signal:Y.signal,...$e});if(!ot.ok)throw new Error(await ot.text());const st=await ot.json();ge("response",{url:Ze,featureCollection:st}),A?(t(14,M=void 0),t(57,S=st.features[0]),He=[S]):(t(14,M=st.features.filter(E)),T&&M.unshift({type:"Feature",properties:{},id:"reverse_"+T.decimalLongitude+"_"+T.decimalLatitude,text:T.decimalLatitude+", "+T.decimalLongitude,place_name:T.decimalLatitude+", "+T.decimalLongitude,place_type:["reverse"],center:[T.decimalLongitude,T.decimalLatitude],bbox:[T.decimalLongitude,T.decimalLatitude,T.decimalLongitude,T.decimalLatitude],geometry:{type:"Point",coordinates:[T.decimalLongitude,T.decimalLatitude]}}),He=M,T&&re.focus())}catch(T){if(T&&typeof T=="object"&&"name"in T&&T.name==="AbortError")return;throw T}finally{Y===ye&&t(19,ye=void 0)}}function $i(){var te;if(!(Z!=null&&Z.length)||!C)return;const s=[180,90,-180,-90],A=!Z.some(Y=>!Y.matching_text);let G;for(const Y of Z){const T=Oe(Y);if(G=G===void 0?T:T===void 0?G:Math.max(G,T),A||!Y.matching_text)for(const K of[0,1,2,3])s[K]=Math[K<2?"min":"max"](s[K],((te=Y.bbox)==null?void 0:te[K])??Y.center[K%2])}b&&Z.length>0&&(S&&s[0]===s[2]&&s[1]===s[3]?b.flyTo(S.center,Oe(S)):b.fitBounds(Et(s),50,G))}function Oe(s){var G;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const A=s.id.replace(/\..*/,"");return(Array.isArray((G=s.properties)==null?void 0:G.categories)?s.properties.categories.reduce((te,Y)=>{const T=je[A+"."+Y];return te===void 0?T:T===void 0?te:Math.max(te,T)},void 0):void 0)??je[A]}function en(s){t(0,$=W==="always"),t(14,M=void 0),t(57,S=void 0),t(15,U=-1),At(s[1].toFixed(6)+", "+Ti(s[0],[-180,180],!0).toFixed(6),!1,!0)}function tn(s){if(!M)return;let A=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;A&&(U===(Te?0:-1)&&A===-1&&t(15,U=M.length),t(15,U+=A),U>=M.length&&t(15,U=-1),U<0&&Te&&t(15,U=0),s.preventDefault())}function nt(s=!0,A=!1){if(t(18,oe=void 0),me&&(window.clearTimeout(me),me=void 0),ee&&(window.clearTimeout(ee),t(58,ee=void 0)),!ne&&!A||B.length<g){t(14,M=void 0);return}const G=B;me=window.setTimeout(()=>{me=void 0,ze(G).catch(te=>t(18,oe=te))},s?w:0),B.endsWith(" ")||t(58,ee=window.setTimeout(()=>{t(58,ee=void 0),ze(G,{appendSpace:!0}).catch(te=>t(18,oe=te))},pe))}function rt(s){t(57,S=s),t(1,B=s.place_name),t(15,U=-1)}const nn=()=>re.focus();function rn(s){qe[s?"unshift":"push"](()=>{re=s,t(17,re)})}function on(){B=this.value,t(1,B),t(13,Ne),t(28,h)}const sn=()=>t(13,Ne=!0),an=()=>t(13,Ne=!1),ln=()=>nt(),un=()=>{t(1,B=""),re.focus()},cn=()=>t(0,$=!$),dn=()=>t(18,oe=void 0),fn=s=>t(15,U=s),mn=s=>rt(s),gn=()=>{Te||t(15,U=-1)},hn=()=>{};return i.$$set=s=>{"class"in s&&t(2,r=s.class),"apiKey"in s&&t(26,d=s.apiKey),"bbox"in s&&t(27,c=s.bbox),"clearButtonTitle"in s&&t(3,f=s.clearButtonTitle),"clearOnBlur"in s&&t(28,h=s.clearOnBlur),"collapsed"in s&&t(4,v=s.collapsed),"country"in s&&t(29,_=s.country),"debounceSearch"in s&&t(30,w=s.debounceSearch),"enableReverse"in s&&t(5,W=s.enableReverse),"errorMessage"in s&&t(6,y=s.errorMessage),"filter"in s&&t(31,E=s.filter),"flyTo"in s&&t(32,C=s.flyTo),"fuzzyMatch"in s&&t(33,R=s.fuzzyMatch),"language"in s&&t(34,p=s.language),"limit"in s&&t(35,Q=s.limit),"mapController"in s&&t(36,b=s.mapController),"minLength"in s&&t(37,g=s.minLength),"noResultsMessage"in s&&t(7,m=s.noResultsMessage),"placeholder"in s&&t(8,k=s.placeholder),"proximity"in s&&t(38,P=s.proximity),"reverseActive"in s&&t(0,$=s.reverseActive),"reverseButtonTitle"in s&&t(9,ie=s.reverseButtonTitle),"searchValue"in s&&t(1,B=s.searchValue),"pickedResultStyle"in s&&t(39,L=s.pickedResultStyle),"showPlaceType"in s&&t(10,j=s.showPlaceType),"showResultsWhileTyping"in s&&t(40,ne=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(41,pe=s.autocompleteTimeout),"selectFirst"in s&&t(11,Te=s.selectFirst),"flyToSelected"in s&&t(42,Je=s.flyToSelected),"markerOnSelected"in s&&t(43,Be=s.markerOnSelected),"types"in s&&t(44,_e=s.types),"exhaustiveReverseGeocoding"in s&&t(45,Xe=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(46,Fe=s.excludeTypes),"zoom"in s&&t(47,je=s.zoom),"apiUrl"in s&&t(48,Ye=s.apiUrl),"fetchParameters"in s&&t(49,$e=s.fetchParameters),"iconsBaseUrl"in s&&t(12,It=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(50,et=s.adjustUrlQuery),"$$scope"in s&&t(61,u=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&32&&t(0,$=W==="always"),i.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,Pe=Ne),h&&!Ne&&t(1,B="")}),i.$$.dirty[0]&16386|i.$$.dirty[1]&64&&B.length<g&&(t(57,S=void 0),t(14,M=void 0),t(18,oe=void 0),t(56,Z=M)),i.$$.dirty[1]&67109120&&L!=="marker-only"&&S&&!S.address&&S.geometry.type==="Point"&&S.place_type[0]!=="reverse"&&ze(S.id,{byId:!0}).catch(s=>t(18,oe=s)),i.$$.dirty[1]&335544354&&(b&&S&&S.id!==tt&&C&&(!S.bbox||S.bbox[0]===S.bbox[2]&&S.bbox[1]===S.bbox[3]?b.flyTo(S.center,Oe(S)):b.fitBounds(Et(S.bbox),50,Oe(S)),t(14,M=void 0),t(56,Z=void 0),t(15,U=-1)),t(59,tt=S==null?void 0:S.id)),i.$$.dirty[0]&18432&&Te&&M!=null&&M.length&&(Yi()||t(15,U=0)),i.$$.dirty[0]&2&&t(15,U=-1),i.$$.dirty[0]&16384|i.$$.dirty[1]&33554432&&Z!==M&&t(56,Z=void 0),i.$$.dirty[0]&81921|i.$$.dirty[1]&33554464&&b&&b.setEventHandler(s=>{switch(s.type){case"mapClick":$&&en(s.coordinates);break;case"markerClick":{const A=M==null?void 0:M.find(G=>G.id===s.id);A&&rt(A)}break;case"markerMouseEnter":Z&&t(15,U=Pe?(M==null?void 0:M.findIndex(A=>A.id===s.id))??-1:-1);break;case"markerMouseLeave":Z&&t(15,U=-1);break}}),i.$$.dirty[0]&49152&&t(60,n=M==null?void 0:M[U]),i.$$.dirty[1]&536872994&&b&&n&&C&&Je&&b.flyTo(n.center,Oe(n)),i.$$.dirty[1]&4128&&(Be||b==null||b.setMarkers(void 0,void 0)),i.$$.dirty[1]&570429472&&b&&Be&&!Z&&(b.setMarkers(n?[n]:void 0,void 0),b.setSelectedMarker(n?0:-1)),i.$$.dirty[1]&100663328&&b&&b.setMarkers(Z,S),i.$$.dirty[0]&32768|i.$$.dirty[1]&33554464&&Z&&b&&b.setSelectedMarker(U),i.$$.dirty[1]&671088640&&n&&(window.clearTimeout(ee),t(58,ee=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&32&&b){const s=it(B);b.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[1]&536870912&&ge("select",{feature:n}),i.$$.dirty[1]&67108864&&ge("pick",{feature:S}),i.$$.dirty[0]&81920&&ge("optionsvisibilitychange",{optionsVisible:Pe&&!!M}),i.$$.dirty[0]&16384&&ge("featureslisted",{features:M}),i.$$.dirty[1]&33554432&&ge("featuresmarked",{features:Z}),i.$$.dirty[0]&1&&ge("reversetoggle",{reverse:$}),i.$$.dirty[0]&2&&ge("querychange",{query:B}),i.$$.dirty[0]&1|i.$$.dirty[1]&32&&b&&b.indicateReverse($)},[$,B,r,f,v,W,y,m,k,ie,j,Te,It,Ne,M,U,Pe,re,oe,ye,Xi,Ft,tn,nt,rt,a,d,c,h,_,w,E,C,R,p,Q,b,g,P,L,ne,pe,Je,Be,_e,Xe,Fe,je,Ye,$e,et,Ki,Vi,At,xi,Ji,Z,S,ee,tt,n,u,o,nn,rn,on,sn,an,ln,un,cn,dn,fn,mn,gn,hn]}class Gi extends Le{constructor(e){super(),ve(this,e,Zi,Pi,he,{ZOOM_DEFAULTS:25,class:2,apiKey:26,bbox:27,clearButtonTitle:3,clearOnBlur:28,collapsed:4,country:29,debounceSearch:30,enableReverse:5,errorMessage:6,filter:31,flyTo:32,fuzzyMatch:33,language:34,limit:35,mapController:36,minLength:37,noResultsMessage:7,placeholder:8,proximity:38,reverseActive:0,reverseButtonTitle:9,searchValue:1,pickedResultStyle:39,showPlaceType:10,showResultsWhileTyping:40,autocompleteTimeout:41,selectFirst:11,flyToSelected:42,markerOnSelected:43,types:44,exhaustiveReverseGeocoding:45,excludeTypes:46,zoom:47,apiUrl:48,fetchParameters:49,iconsBaseUrl:12,adjustUrlQuery:50,focus:51,blur:52,setQuery:53,clearList:54,clearMap:55},null,[-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[25]}get focus(){return this.$$.ctx[51]}get blur(){return this.$$.ctx[52]}get setQuery(){return this.$$.ctx[53]}get clearList(){return this.$$.ctx[54]}get clearMap(){return this.$$.ctx[55]}}const Dt=["featuresListed","featuresMarked","optionsVisibilityChange","pick","queryChange","response","reverseToggle","select"],qi=["adjustUrlQuery","apiKey","bbox","clearButtonTitle","clearOnBlur","collapsed","country","debounceSearch","enableReverse","errorMessage","excludeTypes","filter","fuzzyMatch","language","limit","mapController","minLength","noResultsMessage","pickedResultStyle","placeholder","proximity","reverseActive","reverseButtonTitle","showPlaceType","showResultsWhileTyping","types","zoom"];function Ut(i){return"on"+i[0].toUpperCase()+i.slice(1)}const Qi=H.forwardRef(function(e,t){const n=H.useRef(),o=H.useRef(),u={...e};for(const a of Dt)delete u[Ut(a)];H.useEffect(()=>{if(!n.current)throw new Error;const a=new Gi({target:n.current,props:u});return o.current=a,()=>a.$destroy()},[]);for(const a of qi)H.useEffect(()=>{o.current&&e[a]!==void 0&&o.current.$set({[a]:e[a]})},[e[a]]);for(const a of Dt){const r=e[Ut(a)];H.useEffect(()=>{var d;return r&&((d=o.current)==null?void 0:d.$on(a,c=>{r(c.detail)}))},[r])}return H.useImperativeHandle(t,()=>({setQuery:(a,r=!0)=>{var d;return(d=o.current)==null?void 0:d.setQuery(a,r)},clearMap:()=>{var a;return(a=o.current)==null?void 0:a.clearMap()},clearList:()=>{var a;return(a=o.current)==null?void 0:a.clearList()},focus:()=>{var a;return(a=o.current)==null?void 0:a.focus()},blur:()=>{var a;return(a=o.current)==null?void 0:a.blur()}})),H.createElement("div",{ref:n})});J.GeocodingControl=Qi,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})}); | ||
(function(J,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],H):(J=typeof globalThis<"u"?globalThis:J||self,H(J.reactMaptilerGeocoder={},J.React))})(this,function(J,H){"use strict";var bn=Object.defineProperty;var vn=(J,H,z)=>H in J?bn(J,H,{enumerable:!0,configurable:!0,writable:!0,value:z}):J[H]=z;var at=(J,H,z)=>vn(J,typeof H!="symbol"?H+"":H,z);function z(){}function jt(i,e){for(const t in e)i[t]=e[t];return i}function lt(i){return i()}function ut(){return Object.create(null)}function se(i){i.forEach(lt)}function ct(i){return typeof i=="function"}function he(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let De;function V(i,e){return i===e?!0:(De||(De=document.createElement("a")),De.href=e,i===De.href)}function Ht(i){return Object.keys(i).length===0}function Pt(i,e,t,n){if(i){const o=dt(i,e,t,n);return i[0](o)}}function dt(i,e,t,n){return i[1]&&n?jt(t.ctx.slice(),i[1](n(e))):t.ctx}function Zt(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const u=[],a=Math.max(e.dirty.length,o.length);for(let r=0;r<a;r+=1)u[r]=e.dirty[r]|o[r];return u}return e.dirty|o}return e.dirty}function Gt(i,e,t,n,o,u){if(o){const a=dt(e,t,n,u);i.p(a,o)}}function qt(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ft(i){return i??""}function N(i,e){i.appendChild(e)}function I(i,e,t){i.insertBefore(e,t||null)}function D(i){i.parentNode&&i.parentNode.removeChild(i)}function O(i){return document.createElement(i)}function ae(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ce(i){return document.createTextNode(i)}function X(){return ce(" ")}function Qt(){return ce("")}function x(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Kt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function l(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Vt(i){return Array.from(i.childNodes)}function Me(i,e){e=""+e,i.data!==e&&(i.data=e)}function mt(i,e){i.value=e??""}function de(i,e,t){i.classList.toggle(e,!!t)}function xt(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let ke;function Ce(i){ke=i}function gt(){if(!ke)throw new Error("Function called outside component initialization");return ke}function Jt(i){gt().$$.on_destroy.push(i)}function Xt(){const i=gt();return(e,t,{cancelable:n=!1}={})=>{const o=i.$$.callbacks[e];if(o){const u=xt(e,t,{cancelable:n});return o.slice().forEach(a=>{a.call(i,u)}),!u.defaultPrevented}return!0}}function ht(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const we=[],qe=[];let Ee=[];const bt=[],Yt=Promise.resolve();let Qe=!1;function $t(){Qe||(Qe=!0,Yt.then(vt))}function Ke(i){Ee.push(i)}const Ve=new Set;let Se=0;function vt(){if(Se!==0)return;const i=ke;do{try{for(;Se<we.length;){const e=we[Se];Se++,Ce(e),ei(e.$$)}}catch(e){throw we.length=0,Se=0,e}for(Ce(null),we.length=0,Se=0;qe.length;)qe.pop()();for(let e=0;e<Ee.length;e+=1){const t=Ee[e];Ve.has(t)||(Ve.add(t),t())}Ee.length=0}while(we.length);for(;bt.length;)bt.pop()();Qe=!1,Ve.clear(),Ce(i)}function ei(i){if(i.fragment!==null){i.update(),se(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ke)}}function ti(i){const e=[],t=[];Ee.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ee=e}const Ue=new Set;let be;function Ie(){be={r:0,c:[],p:be}}function Ae(){be.r||se(be.c),be=be.p}function F(i,e){i&&i.i&&(Ue.delete(i),i.i(e))}function q(i,e,t,n){if(i&&i.o){if(Ue.has(i))return;Ue.add(i),be.c.push(()=>{Ue.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Lt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function ii(i,e){q(i,1,1,()=>{e.delete(i.key)})}function ni(i,e,t,n,o,u,a,r,d,c,f,h){let v=i.length,_=u.length,w=v;const W={};for(;w--;)W[i[w].key]=w;const y=[],E=new Map,C=new Map,R=[];for(w=_;w--;){const g=h(o,u,w),m=t(g);let k=a.get(m);k?R.push(()=>k.p(g,e)):(k=c(m,g),k.c()),E.set(m,y[w]=k),m in W&&C.set(m,Math.abs(w-W[m]))}const p=new Set,Q=new Set;function b(g){F(g,1),g.m(r,f),a.set(g.key,g),f=g.first,_--}for(;v&&_;){const g=y[_-1],m=i[v-1],k=g.key,P=m.key;g===m?(f=g.first,v--,_--):E.has(P)?!a.has(k)||p.has(k)?b(g):Q.has(P)?v--:C.get(k)>C.get(P)?(Q.add(k),b(g)):(p.add(P),v--):(d(m,a),v--)}for(;v--;){const g=i[v];E.has(g.key)||d(g,a)}for(;_;)b(y[_-1]);return se(R),y}function fe(i){i&&i.c()}function le(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Ke(()=>{const u=i.$$.on_mount.map(lt).filter(ct);i.$$.on_destroy?i.$$.on_destroy.push(...u):se(u),i.$$.on_mount=[]}),o.forEach(Ke)}function ue(i,e){const t=i.$$;t.fragment!==null&&(ti(t.after_update),se(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ri(i,e){i.$$.dirty[0]===-1&&(we.push(i),$t(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ve(i,e,t,n,o,u,a=null,r=[-1]){const d=ke;Ce(i);const c=i.$$={fragment:null,ctx:[],props:u,update:z,not_equal:o,bound:ut(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:ut(),dirty:r,skip_bound:!1,root:e.target||d.$$.root};a&&a(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(h,v,..._)=>{const w=_.length?_[0]:v;return c.ctx&&o(c.ctx[h],c.ctx[h]=w)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](w),f&&ri(i,h)),v}):[],c.update(),f=!0,se(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const h=Vt(e.target);c.fragment&&c.fragment.l(h),h.forEach(D)}else c.fragment&&c.fragment.c();e.intro&&F(i.$$.fragment),le(i,e.target,e.anchor),vt()}Ce(d)}class Le{constructor(){at(this,"$$");at(this,"$$set")}$destroy(){ue(this,1),this.$destroy=z}$on(e,t){if(!ct(t))return z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Ht(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const oi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oi);function si(i){let e,t;return{c(){e=ae("svg"),t=ae("path"),l(t,"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"),l(e,"viewBox","0 0 14 14"),l(e,"width","13"),l(e,"height","13"),l(e,"class","svelte-en2qvf")},m(n,o){I(n,e,o),N(e,t)},p:z,i:z,o:z,d(n){n&&D(e)}}}class _t extends Le{constructor(e){super(),ve(this,e,null,si,he,{})}}function ai(i){let e,t;return{c(){e=ae("svg"),t=ae("path"),l(t,"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"),l(e,"viewBox","0 0 30 30"),l(e,"fill","none"),l(e,"xmlns","http://www.w3.org/2000/svg"),l(e,"class","svelte-d2loi5")},m(n,o){I(n,e,o),N(e,t)},p:z,i:z,o:z,d(n){n&&D(e)}}}class yt extends Le{constructor(e){super(),ve(this,e,null,ai,he,{})}}function li(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"area.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"area.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function ui(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"reverse.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"reverse.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function ci(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"poi.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"poi.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function di(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"postal_code.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"postal_code.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function fi(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"street.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"street.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function mi(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"road.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"road.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function gi(i){let e,t;return{c(){e=O("img"),V(e.src,t=i[3]+"housenumber.svg")||l(e,"src",t),l(e,"alt",i[6]),l(e,"class","svelte-ltkwvy")},m(n,o){I(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"housenumber.svg")&&l(e,"src",t),o&64&&l(e,"alt",n[6])},d(n){n&&D(e)}}}function hi(i){let e,t,n,o;return{c(){e=O("img"),V(e.src,t=i[5])||l(e,"src",t),l(e,"alt",i[4]),l(e,"class","svelte-ltkwvy")},m(u,a){I(u,e,a),n||(o=x(e,"error",i[14]),n=!0)},p(u,a){a&32&&!V(e.src,t=u[5])&&l(e,"src",t),a&16&&l(e,"alt",u[4])},d(u){u&&D(e),n=!1,o()}}}function wt(i){let e,t;return{c(){e=O("span"),t=ce(i[6]),l(e,"class","secondary svelte-ltkwvy")},m(n,o){I(n,e,o),N(e,t)},p(n,o){o&64&&Me(t,n[6])},d(n){n&&D(e)}}}function bi(i){let e,t,n,o,u,a,r,d,c,f=(i[7]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,v,_=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[7],w,W,y=(i[7]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",E,C,R;function p(m,k){return k&1&&(t=null),k&1&&(n=null),k&1&&(o=null),k&1&&(u=null),m[5]?hi:m[0].address?gi:(t==null&&(t=!!m[0].id.startsWith("road.")),t?mi:(n==null&&(n=!!m[0].id.startsWith("address.")),n?fi:(o==null&&(o=!!m[0].id.startsWith("postal_code.")),o?di:(u==null&&(u=!!m[0].id.startsWith("poi.")),u?ci:m[7]?ui:li))))}let Q=p(i,-1),b=Q(i),g=_&&wt(i);return{c(){e=O("li"),b.c(),a=X(),r=O("span"),d=O("span"),c=O("span"),h=ce(f),v=X(),g&&g.c(),w=X(),W=O("span"),E=ce(y),l(c,"class","primary svelte-ltkwvy"),l(d,"class","svelte-ltkwvy"),l(W,"class","line2 svelte-ltkwvy"),l(r,"class","texts svelte-ltkwvy"),l(e,"tabindex","0"),l(e,"data-selected",i[1]),l(e,"class","svelte-ltkwvy"),de(e,"selected",i[1])},m(m,k){I(m,e,k),b.m(e,null),N(e,a),N(e,r),N(r,d),N(d,c),N(c,h),N(d,v),g&&g.m(d,null),N(r,w),N(r,W),N(W,E),C||(R=[x(e,"mouseenter",i[12]),x(e,"focus",i[13])],C=!0)},p(m,[k]){Q===(Q=p(m,k))&&b?b.p(m,k):(b.d(1),b=Q(m),b&&(b.c(),b.m(e,a))),k&1&&f!==(f=(m[7]?m[0].place_name:m[0].place_name.replace(/,.*/,""))+"")&&Me(h,f),k&37&&(_=m[2]==="always"||m[2]!=="never"&&!m[0].address&&!m[0].id.startsWith("road.")&&!m[0].id.startsWith("address.")&&!m[0].id.startsWith("postal_code.")&&(!m[0].id.startsWith("poi.")||!m[5])&&!m[7]),_?g?g.p(m,k):(g=wt(m),g.c(),g.m(d,null)):g&&(g.d(1),g=null),k&1&&y!==(y=(m[7]?"":m[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Me(E,y),k&2&&l(e,"data-selected",m[1]),k&2&&de(e,"selected",m[1])},i:z,o:z,d(m){m&&D(e),b.d(),g&&g.d(),C=!1,se(R)}}}function vi(i,e,t){var R;let n,o,{feature:u}=e,{selected:a=!1}=e,{showPlaceType:r}=e,{missingIconsCache:d}=e,{iconsBaseUrl:c}=e;const f=(R=u.properties)==null?void 0:R.categories;let h,v,_=0,w=u.place_type[0]==="reverse";function W(){v&&d.add(v),t(10,_++,_)}function y(p){ht.call(this,i,p)}function E(p){ht.call(this,i,p)}const C=()=>W();return i.$$set=p=>{"feature"in p&&t(0,u=p.feature),"selected"in p&&t(1,a=p.selected),"showPlaceType"in p&&t(2,r=p.showPlaceType),"missingIconsCache"in p&&t(9,d=p.missingIconsCache),"iconsBaseUrl"in p&&t(3,c=p.iconsBaseUrl)},i.$$.update=()=>{var p,Q,b,g;if(i.$$.dirty&3640)do t(11,n--,n),t(4,h=f==null?void 0:f[n]),t(5,v=h?c+h.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!v||d.has(v)));i.$$.dirty&1&&t(6,o=((Q=(p=u.properties)==null?void 0:p.categories)==null?void 0:Q.join(", "))??((g=(b=u.properties)==null?void 0:b.place_type_name)==null?void 0:g[0])??u.place_type[0])},t(11,n=(f==null?void 0:f.length)??0),[u,a,r,c,h,v,o,w,W,d,_,n,y,E,C]}class Li extends Le{constructor(e){super(),ve(this,e,vi,bi,he,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function _i(i){let e;return{c(){e=O("div"),e.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>',l(e,"class","svelte-7cmwmc")},m(t,n){I(t,e,n)},p:z,i:z,o:z,d(t){t&&D(e)}}}class yi extends Le{constructor(e){super(),ve(this,e,null,_i,he,{})}}function wi(i){let e,t;return{c(){e=ae("svg"),t=ae("path"),l(t,"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"),l(e,"viewBox","0 0 60.006 21.412"),l(e,"width","14"),l(e,"height","20"),l(e,"class","svelte-en2qvf")},m(n,o){I(n,e,o),N(e,t)},p:z,i:z,o:z,d(n){n&&D(e)}}}class Ei extends Le{constructor(e){super(),ve(this,e,null,wi,he,{})}}function Si(i){let e,t,n;return{c(){e=ae("svg"),t=ae("circle"),n=ae("path"),l(t,"cx","4.789"),l(t,"cy","4.787"),l(t,"r","3.85"),l(t,"class","svelte-1aq105l"),l(n,"d","M12.063 12.063 7.635 7.635"),l(n,"class","svelte-1aq105l"),l(e,"xmlns","http://www.w3.org/2000/svg"),l(e,"width","13"),l(e,"height","13"),l(e,"viewBox","0 0 13 13"),l(e,"class","svelte-1aq105l")},m(o,u){I(o,e,u),N(e,t),N(e,n)},p:z,i:z,o:z,d(o){o&&D(e)}}}class pi extends Le{constructor(e){super(),ve(this,e,null,Si,he,{})}}function Ti(i,e,t){const n=e[1],o=e[0],u=n-o;return i===n&&t?i:((i-o)%u+u)%u+o}function Et(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let We;async function Ni(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const o of e??[])if(!(n&&(o.minZoom!=null&&o.minZoom>n[0]||o.maxZoom!=null&&o.maxZoom<n[0]))){if(o.type==="fixed")return o.coordinates.join(",");e:if(o.type==="client-geolocation"){if(We&&o.cachedLocationExpiry&&We.time+o.cachedLocationExpiry>Date.now()){if(!We.coords)break e;return We.coords}let u;try{return u=await new Promise((a,r)=>{t.signal.addEventListener("abort",()=>{r(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{a([d.coords.longitude,d.coords.latitude].map(c=>c.toFixed(6)).join(","))},d=>{r(d)},o)}),u}catch{}finally{o.cachedLocationExpiry&&(We={time:Date.now(),coords:u})}if(t.signal.aborted)return}if(o.type==="server-geolocation")return"ip";if(n&&o.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const Mi=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,St=/^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/,pt=/^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i,Tt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i,Nt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i,Mt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;function ki(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(_=>Number(_.trim())),t=Number(e[0]),n=Number(e[1]),o=Math.abs(t),u=Math.abs(n),a=t>0?"N":"S",r=n>0?"E":"W";let d;i=="DD"&&(d=`${o}° ${a}, ${u}° ${r}`);const c=Math.floor(o),f=Math.floor(u),h=(o-c)*60,v=(u-f)*60;if(i=="DM"){let _=kt(h,3).toFixed(3).padStart(6,"0"),w=kt(v,3).toFixed(3).padStart(6,"0");_.endsWith(".000")&&w.endsWith(".000")&&(_=_.replace(/\.000$/,""),w=w.replace(/\.000$/,"")),d=`${c}° ${_}' ${a}, ${f}° ${w}' ${r}`}if(i=="DMS"){const _=Math.floor(h),w=Math.floor(v);let W=((h-_)*60).toFixed(1).padStart(4,"0"),y=((v-w)*60).toFixed(1).padStart(4,"0");const E=_.toString().padStart(2,"0"),C=w.toString().padStart(2,"0");W.endsWith(".0")&&y.endsWith(".0")&&(W=W.replace(/\.0$/,""),y=y.replace(/\.0$/,"")),d=`${c}° ${E}' ${W}" ${a}, ${f}° ${C}' ${y}" ${r}`}return d}else throw new Error("no decimal coordinates to convert")}function kt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function xe(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,o="",u="",a=null,r=[],d=!1;if(Mi.test(i))throw new Error("invalid coordinate value");if(St.test(i))if(r=St.exec(i),d=Re(r),d)t=Math.abs(r[1])+r[2]/60,Number(r[1])<0&&(t*=-1),n=Math.abs(r[3])+r[4]/60,Number(r[3])<0&&(n*=-1),a="DM";else throw new Error("invalid coordinate format");else if(pt.test(i))if(r=pt.exec(i),d=Re(r),d){if(t=r[2],n=r[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),a="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");r[1]?(o=r[1],u=r[5]):r[4]&&(o=r[4],u=r[8])}else throw new Error("invalid decimal coordinate format");else if(Tt.test(i))if(r=Tt.exec(i),d=Re(r),d)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4]/60,a="DM"),r[6]&&(t+=r[6].replace(",",".")/3600,a="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[9])),r[11]&&(n+=r[11]/60),r[13]&&(n+=r[13].replace(",",".")/3600),parseInt(r[9])<0&&(n=-1*n),r[1]?(o=r[1],u=r[8]):r[7]&&(o=r[7],u=r[14]);else throw new Error("invalid DMS coordinates format");else if(Nt.test(i))if(r=Nt.exec(i),d=Re(r),d)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4]/60,a="DM"),r[6]&&(t+=r[6]/3600,a="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[10])),r[12]&&(n+=r[12]/60),r[14]&&(n+=r[14]/3600),parseInt(r[10])<0&&(n=-1*n),r[1]?(o=r[1],u=r[9]):r[8]&&(o=r[8],u=r[16]);else throw new Error("invalid DMS coordinates format");else if(Mt.test(i)){if(r=Mt.exec(i),d=Re(r),r.filter(c=>c).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4].replace(",",".")/60,a="DM"),r[6]&&(t+=r[6].replace(",",".")/3600,a="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[10])),r[12]&&(n+=r[12].replace(",",".")/60),r[14]&&(n+=r[14].replace(",",".")/3600),parseInt(r[10])<0&&(n=-1*n),r[1]?(o=r[1],u=r[9]):r[8]&&(o=r[8],u=r[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(o&&!u||!o&&u)throw new Error("invalid coordinates value");if(o&&o==u)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let c=/S|SOUTH/i;c.test(o)&&t>0&&(t=-1*t),c=/W|WEST/i,c.test(u)&&n>0&&(n=-1*n);const f=r[0].trim();let h,v;const _=/[,/;\u0020]/g,w=f.match(_);if(w==null){const E=Math.floor(i.length/2);h=f.substring(0,E).trim(),v=f.substring(E).trim()}else{let E;w.length%2==1?E=Math.floor(w.length/2):E=w.length/2-1;let C=0;if(E==0)C=f.indexOf(w[0]),h=f.substring(0,C).trim(),v=f.substring(C+1).trim();else{let R=0,p=0;for(;R<=E;)C=f.indexOf(w[R],p),p=C+1,R++;h=f.substring(0,C).trim(),v=f.substring(C+1).trim()}}const W=h.split(".");if(W.length==2&&W[1]==0&&W[1].length!=2)throw new Error("invalid coordinates format");const y=v.split(".");if(y.length==2&&y[1]==0&&y[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(v))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:h,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:a,closeEnough:Ci,toCoordinateFormat:ki})}else throw new Error("coordinates pattern match failed")}function Re(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,o=e.length/2;for(let u=0;u<o;u++){const a=e[u],r=e[u+o],d=t.test(a)&&t.test(r),c=n.test(a)&&n.test(r),f=a==r;if(!(a==null&&r==null)){if(a==null||r==null)return!1;if(d||c||f)continue;return!1}}return!0}function Ct(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Ci(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Ct(this.decimalLatitude,Number(e[0]))&&Ct(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Wi=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});xe.to=Wi;const Ri=[{verbatimCoordinates:"40.123, -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:'40° 7´ 22.8" N 74° 7´ 22.8" W',verbatimLatitude:'40° 7´ 22.8" N',verbatimLongitude:'74° 7´ 22.8" W'},{verbatimCoordinates:"40° 7.38’ , -74° 7.38’",verbatimLatitude:"40° 7.38’",verbatimLongitude:"-74° 7.38’"},{verbatimCoordinates:"N40°7’22.8’’, W74°7’22.8’’",verbatimLatitude:"N40°7’22.8’’",verbatimLongitude:"W74°7’22.8’’"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:`40°7'22.8"N, 74°7'22.8"W`,verbatimLatitude:`40°7'22.8"N`,verbatimLongitude:`74°7'22.8"W`},{verbatimCoordinates:"40 7 22.8, -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"},{verbatimCoordinates:"40.123 -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123°,-74.123°",verbatimLatitude:"40.123°",verbatimLongitude:"-74.123°"},{verbatimCoordinates:"40.123N74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"4007.38N7407.38W",verbatimLatitude:"4007.38N",verbatimLongitude:"7407.38W"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:"400722.8N740722.8W",verbatimLatitude:"400722.8N",verbatimLongitude:"740722.8W"},{verbatimCoordinates:"N 40 7.38 W 74 7.38",verbatimLatitude:"N 40 7.38",verbatimLongitude:"W 74 7.38"},{verbatimCoordinates:"40:7:22.8N 74:7:22.8W",verbatimLatitude:"40:7:22.8N",verbatimLongitude:"74:7:22.8W"},{verbatimCoordinates:"40:7:23N,74:7:23W",verbatimLatitude:"40:7:23N",verbatimLongitude:"74:7:23W",decimalLatitude:40.1230555555,decimalLongitude:-74.1230555555},{verbatimCoordinates:'40°7’23"N 74°7’23"W',verbatimLatitude:'40°7’23"N',verbatimLongitude:'74°7’23"W',decimalLatitude:40.1230555555,decimalLongitude:-74.12305555555555},{verbatimCoordinates:'40°7’23"S 74°7’23"E',verbatimLatitude:'40°7’23"S',verbatimLongitude:'74°7’23"E',decimalLatitude:-40.1230555555,decimalLongitude:74.12305555555555},{verbatimCoordinates:'40°7’23" -74°7’23"',verbatimLatitude:'40°7’23"',verbatimLongitude:'-74°7’23"',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:'40d 7’ 23" N 74d 7’ 23" W',verbatimLatitude:'40d 7’ 23" N',verbatimLongitude:'74d 7’ 23" W',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:"40.123N 74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40 7 22.8; -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"}],zi={decimalLatitude:40.123,decimalLongitude:-74.123},Oi=[{verbatimCoordinates:`50°4'17.698"south, 14°24'2.826"east`,verbatimLatitude:`50°4'17.698"south`,verbatimLongitude:`14°24'2.826"east`,decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"50d4m17.698S 14d24m2.826E",verbatimLatitude:"50d4m17.698S",verbatimLongitude:"14d24m2.826E",decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"40:26:46N,79:56:55W",verbatimLatitude:"40:26:46N",verbatimLongitude:"79:56:55W",decimalLatitude:40.44611111111111,decimalLongitude:-79.9486111111111},{verbatimCoordinates:"40:26:46.302N 79:56:55.903W",verbatimLatitude:"40:26:46.302N",verbatimLongitude:"79:56:55.903W",decimalLatitude:40.446195,decimalLongitude:-79.94886194444445},{verbatimCoordinates:"40°26′47″N 79°58′36″W",verbatimLatitude:"40°26′47″N",verbatimLongitude:"79°58′36″W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40d 26′ 47″ N 79d 58′ 36″ W",verbatimLatitude:"40d 26′ 47″ N",verbatimLongitude:"79d 58′ 36″ W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40.446195N 79.948862W",verbatimLatitude:"40.446195N",verbatimLongitude:"79.948862W",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40,446195° 79,948862°",verbatimLatitude:"40,446195°",verbatimLongitude:"79,948862°",decimalLatitude:40.446195,decimalLongitude:79.948862},{verbatimCoordinates:"40° 26.7717, -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.446195, -79.948862",verbatimLatitude:"40.446195",verbatimLongitude:"-79.948862",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.123256; -74.123256",verbatimLatitude:"40.123256",verbatimLongitude:"-74.123256",decimalLatitude:40.123256,decimalLongitude:-74.123256},{verbatimCoordinates:"18°24S 22°45E",verbatimLatitude:"18°24S",verbatimLongitude:"22°45E",decimalLatitude:-18.4,decimalLongitude:22.75}],Di=[{verbatimCoordinates:"10.432342S 10.6345345E",verbatimLatitude:"10.432342S",verbatimLongitude:"10.6345345E",decimalLatitude:-10.432342,decimalLongitude:10.6345345},{verbatimCoordinates:"10.00S 10.00E",verbatimLatitude:"10.00S",verbatimLongitude:"10.00E",decimalLatitude:-10,decimalLongitude:10},{verbatimCoordinates:"00.00S 01.00E",verbatimLatitude:"00.00S",verbatimLongitude:"01.00E",decimalLatitude:0,decimalLongitude:1},{verbatimCoordinates:"18.24S 22.45E",verbatimLatitude:"18.24S",verbatimLongitude:"22.45E",decimalLatitude:-18.4,decimalLongitude:22.75},{verbatimCoordinates:"27deg 15min 45.2sec S 18deg 32min 53.7sec E",verbatimLatitude:"27deg 15min 45.2sec S",verbatimLongitude:"18deg 32min 53.7sec E",decimalLatitude:-27.262555555555554,decimalLongitude:18.54825},{verbatimCoordinates:"-23.3245° S / 28.2344° E",verbatimLatitude:"-23.3245° S",verbatimLongitude:"28.2344° E",decimalLatitude:-23.3245,decimalLongitude:28.2344},{verbatimCoordinates:"40° 26.7717 -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"27.15.45S 18.32.53E",verbatimLatitude:"27.15.45S",verbatimLongitude:"18.32.53E",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"-27.15.45 18.32.53",verbatimLatitude:"-27.15.45",verbatimLongitude:"18.32.53",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"27.15.45.2S 18.32.53.4E",verbatimLatitude:"27.15.45.2S",verbatimLongitude:"18.32.53.4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"27.15.45,2S 18.32.53,4E",verbatimLatitude:"27.15.45,2S",verbatimLongitude:"18.32.53,4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"S23.43563 ° E22.45634 °",verbatimLatitude:"S23.43563 °",verbatimLongitude:"E22.45634 °",decimalLatitude:-23.43563,decimalLongitude:22.45634},{verbatimCoordinates:"27,71372° S 23,07771° E",verbatimLatitude:"27,71372° S",verbatimLongitude:"23,07771° E",decimalLatitude:-27.71372,decimalLongitude:23.07771},{verbatimCoordinates:"27.45.34 S 23.23.23 E",verbatimLatitude:"27.45.34 S",verbatimLongitude:"23.23.23 E",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"S 27.45.34 E 23.23.23",verbatimLatitude:"S 27.45.34",verbatimLongitude:"E 23.23.23",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"53 16.3863,4 52.8171",verbatimLatitude:"53 16.3863",verbatimLongitude:"4 52.8171",decimalLatitude:53.273105,decimalLongitude:4.88029},{verbatimCoordinates:"50 8.2914,-5 2.4447",verbatimLatitude:"50 8.2914",verbatimLongitude:"-5 2.4447",decimalLatitude:50.13819,decimalLongitude:-5.040745},{verbatimCoordinates:"N 48° 30,6410', E 18° 57,4583'",verbatimLatitude:"N 48° 30,6410'",verbatimLongitude:"E 18° 57,4583'",decimalLatitude:48.51068,decimalLongitude:18.95764},{verbatimCoordinates:"1.23456, 18.33453",verbatimLatitude:"1.23456",verbatimLongitude:"18.33453",decimalLatitude:1.23456,decimalLongitude:18.33453}];function Ui(){const i=[];return Ri.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...zi})}),[...i,...Oi,...Di]}const Ii=Ui();xe.formats=Ii.map(i=>i.verbatimCoordinates);const Ai=xe;function Wt(i,e,t){const n=i.slice();return n[86]=e[t],n[88]=t,n}function Rt(i){let e,t;return e=new yi({}),{c(){fe(e.$$.fragment)},m(n,o){le(e,n,o),t=!0},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){q(e.$$.fragment,n),t=!1},d(n){ue(e,n)}}}function zt(i){let e,t,n,o,u;return t=new Ei({}),{c(){e=O("button"),fe(t.$$.fragment),l(e,"type","button"),l(e,"title",i[9]),l(e,"class","svelte-bz0zu3"),de(e,"active",i[0])},m(a,r){I(a,e,r),le(t,e,null),n=!0,o||(u=x(e,"click",i[70]),o=!0)},p(a,r){(!n||r[0]&512)&&l(e,"title",a[9]),(!n||r[0]&1)&&de(e,"active",a[0])},i(a){n||(F(t.$$.fragment,a),n=!0)},o(a){q(t.$$.fragment,a),n=!1},d(a){a&&D(e),ue(t),o=!1,u()}}}function Bi(i){let e,t=[],n=new Map,o,u,a,r=Lt(i[14]);const d=c=>c[86].id+(c[86].address?","+c[86].address:"");for(let c=0;c<r.length;c+=1){let f=Wt(i,r,c),h=d(f);n.set(h,t[c]=Ot(h,f))}return{c(){e=O("ul");for(let c=0;c<t.length;c+=1)t[c].c();l(e,"class","options svelte-bz0zu3")},m(c,f){I(c,e,f);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);o=!0,u||(a=[x(e,"mouseleave",i[74]),x(e,"blur",i[75])],u=!0)},p(c,f){f[0]&17880064&&(r=Lt(c[14]),Ie(),t=ni(t,f,d,1,c,r,n,e,ii,Ot,null,Wt),Ae())},i(c){if(!o){for(let f=0;f<r.length;f+=1)F(t[f]);o=!0}},o(c){for(let f=0;f<t.length;f+=1)q(t[f]);o=!1},d(c){c&&D(e);for(let f=0;f<t.length;f+=1)t[f].d();u=!1,se(a)}}}function Fi(i){let e,t,n,o,u,a;return t=new yt({}),{c(){e=O("div"),fe(t.$$.fragment),n=X(),o=O("div"),u=ce(i[7]),l(o,"class","svelte-bz0zu3"),l(e,"class","no-results svelte-bz0zu3")},m(r,d){I(r,e,d),le(t,e,null),N(e,n),N(e,o),N(o,u),a=!0},p(r,d){(!a||d[0]&128)&&Me(u,r[7])},i(r){a||(F(t.$$.fragment,r),a=!0)},o(r){q(t.$$.fragment,r),a=!1},d(r){r&&D(e),ue(t)}}}function ji(i){let e="",t;return{c(){t=ce(e)},m(n,o){I(n,t,o)},p:z,i:z,o:z,d(n){n&&D(t)}}}function Hi(i){let e,t,n,o,u,a,r,d,c,f,h;return t=new yt({}),d=new _t({}),{c(){e=O("div"),fe(t.$$.fragment),n=X(),o=O("div"),u=ce(i[6]),a=X(),r=O("button"),fe(d.$$.fragment),l(o,"class","svelte-bz0zu3"),l(r,"class","svelte-bz0zu3"),l(e,"class","error svelte-bz0zu3")},m(v,_){I(v,e,_),le(t,e,null),N(e,n),N(e,o),N(o,u),N(e,a),N(e,r),le(d,r,null),c=!0,f||(h=x(r,"click",i[71]),f=!0)},p(v,_){(!c||_[0]&64)&&Me(u,v[6])},i(v){c||(F(t.$$.fragment,v),F(d.$$.fragment,v),c=!0)},o(v){q(t.$$.fragment,v),q(d.$$.fragment,v),c=!1},d(v){v&&D(e),ue(t),ue(d),f=!1,h()}}}function Ot(i,e){let t,n,o;function u(){return e[72](e[88])}function a(){return e[73](e[86])}return n=new Li({props:{feature:e[86],showPlaceType:e[10],selected:e[15]===e[88],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),n.$on("mouseenter",u),n.$on("focus",a),{key:i,first:null,c(){t=Qt(),fe(n.$$.fragment),this.first=t},m(r,d){I(r,t,d),le(n,r,d),o=!0},p(r,d){e=r;const c={};d[0]&16384&&(c.feature=e[86]),d[0]&1024&&(c.showPlaceType=e[10]),d[0]&49152&&(c.selected=e[15]===e[88]),d[0]&4096&&(c.iconsBaseUrl=e[12]),n.$set(c)},i(r){o||(F(n.$$.fragment,r),o=!0)},o(r){q(n.$$.fragment,r),o=!1},d(r){r&&D(t),ue(n,r)}}}function Pi(i){let e,t,n,o,u,a,r,d,c,f,h,v,_,w,W,y,E,C,R,p,Q,b=!1;u=new pi({}),h=new _t({});let g=i[19]&&Rt(),m=i[5]!=="never"&&zt(i);const k=i[62].default,P=Pt(k,i,i[61],null),$=[Hi,ji,Fi,Bi],ie=[];function B(L,j){var ne,pe;return L[18]?0:L[16]?((ne=L[14])==null?void 0:ne.length)===0?2:L[16]&&((pe=L[14])!=null&&pe.length)?3:-1:1}return~(y=B(i))&&(E=ie[y]=$[y](i)),{c(){e=X(),t=O("form"),n=O("div"),o=O("button"),fe(u.$$.fragment),a=X(),r=O("input"),d=X(),c=O("div"),f=O("button"),fe(h.$$.fragment),v=X(),g&&g.c(),_=X(),m&&m.c(),w=X(),P&&P.c(),W=X(),E&&E.c(),l(o,"class","search-button svelte-bz0zu3"),l(o,"type","button"),l(r,"placeholder",i[8]),l(r,"aria-label",i[8]),l(r,"class","svelte-bz0zu3"),l(f,"type","button"),l(f,"title",i[3]),l(f,"class","svelte-bz0zu3"),l(c,"class","clear-button-container svelte-bz0zu3"),de(c,"displayable",i[1]!==""),l(n,"class","input-group svelte-bz0zu3"),l(t,"tabindex","0"),l(t,"class",C=ft(i[2])+" svelte-bz0zu3"),de(t,"can-collapse",i[4]&&i[1]==="")},m(L,j){I(L,e,j),I(L,t,j),N(t,n),N(n,o),le(u,o,null),N(n,a),N(n,r),i[64](r),mt(r,i[1]),N(n,d),N(n,c),N(c,f),le(h,f,null),N(c,v),g&&g.m(c,null),N(n,_),m&&m.m(n,null),N(n,w),P&&P.m(n,null),N(t,W),~y&&ie[y].m(t,null),R=!0,p||(Q=[x(o,"click",i[63]),x(r,"input",i[65]),x(r,"focus",i[66]),x(r,"blur",i[67]),x(r,"keydown",i[22]),x(r,"input",i[68]),x(f,"click",i[69]),x(t,"submit",Kt(i[21]))],p=!0)},p(L,j){(!R||j[0]&256)&&l(r,"placeholder",L[8]),(!R||j[0]&256)&&l(r,"aria-label",L[8]),j[0]&2&&r.value!==L[1]&&mt(r,L[1]),(!R||j[0]&8)&&l(f,"title",L[3]),L[19]?g?j[0]&524288&&F(g,1):(g=Rt(),g.c(),F(g,1),g.m(c,null)):g&&(Ie(),q(g,1,1,()=>{g=null}),Ae()),(!R||j[0]&2)&&de(c,"displayable",L[1]!==""),L[5]!=="never"?m?(m.p(L,j),j[0]&32&&F(m,1)):(m=zt(L),m.c(),F(m,1),m.m(n,w)):m&&(Ie(),q(m,1,1,()=>{m=null}),Ae()),P&&P.p&&(!R||j[1]&1073741824)&&Gt(P,k,L,L[61],R?Zt(k,L[61],j,null):qt(L[61]),null);let ne=y;y=B(L),y===ne?~y&&ie[y].p(L,j):(E&&(Ie(),q(ie[ne],1,1,()=>{ie[ne]=null}),Ae()),~y?(E=ie[y],E?E.p(L,j):(E=ie[y]=$[y](L),E.c()),F(E,1),E.m(t,null)):E=null),(!R||j[0]&4&&C!==(C=ft(L[2])+" svelte-bz0zu3"))&&l(t,"class",C),(!R||j[0]&22)&&de(t,"can-collapse",L[4]&&L[1]==="")},i(L){R||(F(b),F(u.$$.fragment,L),F(h.$$.fragment,L),F(g),F(m),F(P,L),F(E),R=!0)},o(L){q(b),q(u.$$.fragment,L),q(h.$$.fragment,L),q(g),q(m),q(P,L),q(E),R=!1},d(L){L&&(D(e),D(t)),ue(u),i[64](null),ue(h),g&&g.d(),m&&m.d(),P&&P.d(L),~y&&ie[y].d(),p=!1,se(Q)}}}function Zi(i,e,t){let n,{$$slots:o={},$$scope:u}=e;const a={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};let{class:r=void 0}=e,{apiKey:d}=e,{bbox:c=void 0}=e,{clearButtonTitle:f="clear"}=e,{clearOnBlur:h=!1}=e,{collapsed:v=!1}=e,{country:_=void 0}=e,{debounceSearch:w=200}=e,{reverse:W="never"}=e,{errorMessage:y="Something went wrong…"}=e,{filter:E=()=>!0}=e,{flyTo:C=!0}=e,{fuzzyMatch:R=!0}=e,{language:p=void 0}=e,{limit:Q=void 0}=e,{mapController:b=void 0}=e,{minLength:g=2}=e,{noResultsMessage:m="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!"}=e,{placeholder:k="Search"}=e,{proximity:P=[{type:"server-geolocation"}]}=e,{reverseActive:$=W==="always"}=e,{reverseButtonTitle:ie="toggle reverse geocoding"}=e,{searchValue:B=""}=e,{pickedResultStyle:L="full-geometry"}=e,{showPlaceType:j="if-needed"}=e,{showResultsWhileTyping:ne=!0}=e,{autocompleteTimeout:pe=void 0}=e,{selectFirst:Te=!0}=e,{flyToSelected:Je=!1}=e,{markerOnSelected:Be=!0}=e,{types:_e=void 0}=e,{exhaustiveReverseGeocoding:Xe=!1}=e,{excludeTypes:Fe=!1}=e,{zoom:je=a}=e,{apiUrl:Ye="https://api.maptiler.com/geocoding"}=e,{fetchParameters:$e={}}=e,{iconsBaseUrl:It="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.3/icons/"}=e,{adjustUrlQuery:et=()=>{}}=e;function Ki(){re.focus()}function Vi(){re.blur()}function At(s,A=!0,G=!1){t(1,B=s),A?(t(15,U=-1),Ft()):(nt(!G,G),setTimeout(()=>{re.focus(),re.select()}))}function xi(){t(14,M=void 0),t(57,S=void 0),t(15,U=-1)}function Ji(){t(56,Z=[]),t(57,S=void 0)}let Ne=!1,M,Z,S,Bt="",re,U=-1,oe,He=[],ye,me,ee,Pe,tt;const Xi=new Set,ge=Xt();function Yi(){return!!ee}Jt(()=>{b&&(b.setEventHandler(void 0),b.indicateReverse(!1),b.setSelectedMarker(-1),b.setMarkers(void 0,void 0))});function Ft(s){if(me&&(window.clearTimeout(me),me=void 0),ee){window.clearTimeout(ee),t(58,ee=void 0),ze(B,{exact:!0});return}if(U>-1&&M)t(57,S=M[U]),t(1,B=S.place_type[0]==="reverse"?S.place_name:S.place_name.replace(/,.*/,"")),t(18,oe=void 0),t(56,Z=void 0),t(15,U=-1);else if(B){const A=s||!it(B);ze(B,{exact:!0}).then(()=>{t(56,Z=M),t(57,S=void 0),A&&$i()}).catch(G=>t(18,oe=G))}}function it(s){try{return Ai(s,6)}catch{return!1}}async function ze(s,{byId:A=!1,exact:G=!1,appendSpace:te=!1}={}){t(18,oe=void 0),ye==null||ye.abort();const Y=new AbortController;t(19,ye=Y);try{const T=it(s),K=new URLSearchParams;if(p!==void 0&&K.set("language",Array.isArray(p)?p.join(","):p??""),_e&&K.set("types",_e.join(",")),Fe&&K.set("excludeTypes",String(Fe)),c&&K.set("bbox",c.map(Ge=>Ge.toFixed(6)).join(",")),_&&K.set("country",Array.isArray(_)?_.join(","):_),!A&&!T){const Ge=await Ni(b,P,Y);Ge&&K.set("proximity",Ge),(G||!ne)&&K.set("autocomplete","false"),K.set("fuzzyMatch",String(R))}Q!==void 0&&(Xe||!T||(_e==null?void 0:_e.length)===1)&&K.set("limit",String(Q)),K.set("key",d),et(K);const Ze=Ye+"/"+encodeURIComponent(T?T.decimalLongitude+","+T.decimalLatitude:s+(te?" ":""))+".json?"+K.toString();if(Ze===Bt){A?(t(14,M=void 0),t(57,S=He[0])):t(14,M=He);return}Bt=Ze;const ot=await fetch(Ze,{signal:Y.signal,...$e});if(!ot.ok)throw new Error(await ot.text());const st=await ot.json();ge("response",{url:Ze,featureCollection:st}),A?(t(14,M=void 0),t(57,S=st.features[0]),He=[S]):(t(14,M=st.features.filter(E)),T&&M.unshift({type:"Feature",properties:{},id:"reverse_"+T.decimalLongitude+"_"+T.decimalLatitude,text:T.decimalLatitude+", "+T.decimalLongitude,place_name:T.decimalLatitude+", "+T.decimalLongitude,place_type:["reverse"],center:[T.decimalLongitude,T.decimalLatitude],bbox:[T.decimalLongitude,T.decimalLatitude,T.decimalLongitude,T.decimalLatitude],geometry:{type:"Point",coordinates:[T.decimalLongitude,T.decimalLatitude]}}),He=M,T&&re.focus())}catch(T){if(T&&typeof T=="object"&&"name"in T&&T.name==="AbortError")return;throw T}finally{Y===ye&&t(19,ye=void 0)}}function $i(){var te;if(!(Z!=null&&Z.length)||!C)return;const s=[180,90,-180,-90],A=!Z.some(Y=>!Y.matching_text);let G;for(const Y of Z){const T=Oe(Y);if(G=G===void 0?T:T===void 0?G:Math.max(G,T),A||!Y.matching_text)for(const K of[0,1,2,3])s[K]=Math[K<2?"min":"max"](s[K],((te=Y.bbox)==null?void 0:te[K])??Y.center[K%2])}b&&Z.length>0&&(S&&s[0]===s[2]&&s[1]===s[3]?b.flyTo(S.center,Oe(S)):b.fitBounds(Et(s),50,G))}function Oe(s){var G;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const A=s.id.replace(/\..*/,"");return(Array.isArray((G=s.properties)==null?void 0:G.categories)?s.properties.categories.reduce((te,Y)=>{const T=je[A+"."+Y];return te===void 0?T:T===void 0?te:Math.max(te,T)},void 0):void 0)??je[A]}function en(s){t(0,$=W==="always"),t(14,M=void 0),t(57,S=void 0),t(15,U=-1),At(s[1].toFixed(6)+", "+Ti(s[0],[-180,180],!0).toFixed(6),!1,!0)}function tn(s){if(!M)return;let A=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;A&&(U===(Te?0:-1)&&A===-1&&t(15,U=M.length),t(15,U+=A),U>=M.length&&t(15,U=-1),U<0&&Te&&t(15,U=0),s.preventDefault())}function nt(s=!0,A=!1){if(t(18,oe=void 0),me&&(window.clearTimeout(me),me=void 0),ee&&(window.clearTimeout(ee),t(58,ee=void 0)),!ne&&!A||B.length<g){t(14,M=void 0);return}const G=B;me=window.setTimeout(()=>{me=void 0,ze(G).catch(te=>t(18,oe=te))},s?w:0),B.endsWith(" ")||t(58,ee=window.setTimeout(()=>{t(58,ee=void 0),ze(G,{appendSpace:!0}).catch(te=>t(18,oe=te))},pe))}function rt(s){t(57,S=s),t(1,B=s.place_name),t(15,U=-1)}const nn=()=>re.focus();function rn(s){qe[s?"unshift":"push"](()=>{re=s,t(17,re)})}function on(){B=this.value,t(1,B),t(13,Ne),t(28,h)}const sn=()=>t(13,Ne=!0),an=()=>t(13,Ne=!1),ln=()=>nt(),un=()=>{t(1,B=""),re.focus()},cn=()=>t(0,$=!$),dn=()=>t(18,oe=void 0),fn=s=>t(15,U=s),mn=s=>rt(s),gn=()=>{Te||t(15,U=-1)},hn=()=>{};return i.$$set=s=>{"class"in s&&t(2,r=s.class),"apiKey"in s&&t(26,d=s.apiKey),"bbox"in s&&t(27,c=s.bbox),"clearButtonTitle"in s&&t(3,f=s.clearButtonTitle),"clearOnBlur"in s&&t(28,h=s.clearOnBlur),"collapsed"in s&&t(4,v=s.collapsed),"country"in s&&t(29,_=s.country),"debounceSearch"in s&&t(30,w=s.debounceSearch),"reverse"in s&&t(5,W=s.reverse),"errorMessage"in s&&t(6,y=s.errorMessage),"filter"in s&&t(31,E=s.filter),"flyTo"in s&&t(32,C=s.flyTo),"fuzzyMatch"in s&&t(33,R=s.fuzzyMatch),"language"in s&&t(34,p=s.language),"limit"in s&&t(35,Q=s.limit),"mapController"in s&&t(36,b=s.mapController),"minLength"in s&&t(37,g=s.minLength),"noResultsMessage"in s&&t(7,m=s.noResultsMessage),"placeholder"in s&&t(8,k=s.placeholder),"proximity"in s&&t(38,P=s.proximity),"reverseActive"in s&&t(0,$=s.reverseActive),"reverseButtonTitle"in s&&t(9,ie=s.reverseButtonTitle),"searchValue"in s&&t(1,B=s.searchValue),"pickedResultStyle"in s&&t(39,L=s.pickedResultStyle),"showPlaceType"in s&&t(10,j=s.showPlaceType),"showResultsWhileTyping"in s&&t(40,ne=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(41,pe=s.autocompleteTimeout),"selectFirst"in s&&t(11,Te=s.selectFirst),"flyToSelected"in s&&t(42,Je=s.flyToSelected),"markerOnSelected"in s&&t(43,Be=s.markerOnSelected),"types"in s&&t(44,_e=s.types),"exhaustiveReverseGeocoding"in s&&t(45,Xe=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(46,Fe=s.excludeTypes),"zoom"in s&&t(47,je=s.zoom),"apiUrl"in s&&t(48,Ye=s.apiUrl),"fetchParameters"in s&&t(49,$e=s.fetchParameters),"iconsBaseUrl"in s&&t(12,It=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(50,et=s.adjustUrlQuery),"$$scope"in s&&t(61,u=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&32&&t(0,$=W==="always"),i.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,Pe=Ne),h&&!Ne&&t(1,B="")}),i.$$.dirty[0]&16386|i.$$.dirty[1]&64&&B.length<g&&(t(57,S=void 0),t(14,M=void 0),t(18,oe=void 0),t(56,Z=M)),i.$$.dirty[1]&67109120&&L!=="marker-only"&&S&&!S.address&&S.geometry.type==="Point"&&S.place_type[0]!=="reverse"&&ze(S.id,{byId:!0}).catch(s=>t(18,oe=s)),i.$$.dirty[1]&335544354&&(b&&S&&S.id!==tt&&C&&(!S.bbox||S.bbox[0]===S.bbox[2]&&S.bbox[1]===S.bbox[3]?b.flyTo(S.center,Oe(S)):b.fitBounds(Et(S.bbox),50,Oe(S)),t(14,M=void 0),t(56,Z=void 0),t(15,U=-1)),t(59,tt=S==null?void 0:S.id)),i.$$.dirty[0]&18432&&Te&&M!=null&&M.length&&(Yi()||t(15,U=0)),i.$$.dirty[0]&2&&t(15,U=-1),i.$$.dirty[0]&16384|i.$$.dirty[1]&33554432&&Z!==M&&t(56,Z=void 0),i.$$.dirty[0]&81921|i.$$.dirty[1]&33554464&&b&&b.setEventHandler(s=>{switch(s.type){case"mapClick":$&&en(s.coordinates);break;case"markerClick":{const A=M==null?void 0:M.find(G=>G.id===s.id);A&&rt(A)}break;case"markerMouseEnter":Z&&t(15,U=Pe?(M==null?void 0:M.findIndex(A=>A.id===s.id))??-1:-1);break;case"markerMouseLeave":Z&&t(15,U=-1);break}}),i.$$.dirty[0]&49152&&t(60,n=M==null?void 0:M[U]),i.$$.dirty[1]&536872994&&b&&n&&C&&Je&&b.flyTo(n.center,Oe(n)),i.$$.dirty[1]&4128&&(Be||b==null||b.setMarkers(void 0,void 0)),i.$$.dirty[1]&570429472&&b&&Be&&!Z&&(b.setMarkers(n?[n]:void 0,void 0),b.setSelectedMarker(n?0:-1)),i.$$.dirty[1]&100663328&&b&&b.setMarkers(Z,S),i.$$.dirty[0]&32768|i.$$.dirty[1]&33554464&&Z&&b&&b.setSelectedMarker(U),i.$$.dirty[1]&671088640&&n&&(window.clearTimeout(ee),t(58,ee=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&32&&b){const s=it(B);b.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[1]&536870912&&ge("select",{feature:n}),i.$$.dirty[1]&67108864&&ge("pick",{feature:S}),i.$$.dirty[0]&81920&&ge("optionsvisibilitychange",{optionsVisible:Pe&&!!M}),i.$$.dirty[0]&16384&&ge("featureslisted",{features:M}),i.$$.dirty[1]&33554432&&ge("featuresmarked",{features:Z}),i.$$.dirty[0]&1&&ge("reversetoggle",{reverse:$}),i.$$.dirty[0]&2&&ge("querychange",{query:B}),i.$$.dirty[0]&1|i.$$.dirty[1]&32&&b&&b.indicateReverse($)},[$,B,r,f,v,W,y,m,k,ie,j,Te,It,Ne,M,U,Pe,re,oe,ye,Xi,Ft,tn,nt,rt,a,d,c,h,_,w,E,C,R,p,Q,b,g,P,L,ne,pe,Je,Be,_e,Xe,Fe,je,Ye,$e,et,Ki,Vi,At,xi,Ji,Z,S,ee,tt,n,u,o,nn,rn,on,sn,an,ln,un,cn,dn,fn,mn,gn,hn]}class Gi extends Le{constructor(e){super(),ve(this,e,Zi,Pi,he,{ZOOM_DEFAULTS:25,class:2,apiKey:26,bbox:27,clearButtonTitle:3,clearOnBlur:28,collapsed:4,country:29,debounceSearch:30,reverse:5,errorMessage:6,filter:31,flyTo:32,fuzzyMatch:33,language:34,limit:35,mapController:36,minLength:37,noResultsMessage:7,placeholder:8,proximity:38,reverseActive:0,reverseButtonTitle:9,searchValue:1,pickedResultStyle:39,showPlaceType:10,showResultsWhileTyping:40,autocompleteTimeout:41,selectFirst:11,flyToSelected:42,markerOnSelected:43,types:44,exhaustiveReverseGeocoding:45,excludeTypes:46,zoom:47,apiUrl:48,fetchParameters:49,iconsBaseUrl:12,adjustUrlQuery:50,focus:51,blur:52,setQuery:53,clearList:54,clearMap:55},null,[-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[25]}get focus(){return this.$$.ctx[51]}get blur(){return this.$$.ctx[52]}get setQuery(){return this.$$.ctx[53]}get clearList(){return this.$$.ctx[54]}get clearMap(){return this.$$.ctx[55]}}const Dt=["featuresListed","featuresMarked","optionsVisibilityChange","pick","queryChange","response","reverseToggle","select"],qi=["adjustUrlQuery","apiKey","bbox","clearButtonTitle","clearOnBlur","collapsed","country","debounceSearch","enableReverse","errorMessage","excludeTypes","filter","fuzzyMatch","language","limit","mapController","minLength","noResultsMessage","pickedResultStyle","placeholder","proximity","reverseActive","reverseButtonTitle","showPlaceType","showResultsWhileTyping","types","zoom"];function Ut(i){return"on"+i[0].toUpperCase()+i.slice(1)}const Qi=H.forwardRef(function(e,t){const n=H.useRef(),o=H.useRef(),u={...e};for(const a of Dt)delete u[Ut(a)];H.useEffect(()=>{if(!n.current)throw new Error;const a=new Gi({target:n.current,props:u});return o.current=a,()=>a.$destroy()},[]);for(const a of qi)H.useEffect(()=>{o.current&&e[a]!==void 0&&o.current.$set({[a]:e[a]})},[e[a]]);for(const a of Dt){const r=e[Ut(a)];H.useEffect(()=>{var d;return r&&((d=o.current)==null?void 0:d.$on(a,c=>{r(c.detail)}))},[r])}return H.useImperativeHandle(t,()=>({setQuery:(a,r=!0)=>{var d;return(d=o.current)==null?void 0:d.setQuery(a,r)},clearMap:()=>{var a;return(a=o.current)==null?void 0:a.clearMap()},clearList:()=>{var a;return(a=o.current)==null?void 0:a.clearList()},focus:()=>{var a;return(a=o.current)==null?void 0:a.focus()},blur:()=>{var a;return(a=o.current)==null?void 0:a.blur()}})),H.createElement("div",{ref:n})});J.GeocodingControl=Qi,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})}); | ||
//# sourceMappingURL=react.umd.js.map |
import { SvelteComponent } from "svelte"; | ||
import type { Feature } from "./types"; | ||
import type { Feature, ShowPlaceType } from "./types"; | ||
declare const __propDef: { | ||
@@ -7,3 +7,3 @@ props: { | ||
selected?: boolean; | ||
showPlaceType: "never" | "always" | "if-needed"; | ||
showPlaceType: ShowPlaceType; | ||
missingIconsCache: Set<string>; | ||
@@ -10,0 +10,0 @@ iconsBaseUrl: string; |
import { SvelteComponent } from "svelte"; | ||
import type { BBox, Feature, FeatureCollection, MapController, ProximityRule } from "./types"; | ||
import type { BBox, EnableReverse, Feature, FeatureCollection, MapController, PickedResultStyle, ProximityRule, ShowPlaceType } from "./types"; | ||
declare const __propDef: { | ||
@@ -14,3 +14,3 @@ props: { | ||
debounceSearch?: number; | ||
enableReverse?: boolean | "always"; | ||
reverse?: EnableReverse; | ||
errorMessage?: string; | ||
@@ -30,4 +30,4 @@ filter?: (feature: Feature) => boolean; | ||
searchValue?: string; | ||
pickedResultStyle?: "marker-only" | "full-geometry" | "full-geometry-including-polygon-center-marker"; | ||
showPlaceType?: "never" | "always" | "if-needed"; | ||
pickedResultStyle?: PickedResultStyle; | ||
showPlaceType?: ShowPlaceType; | ||
showResultsWhileTyping?: boolean; | ||
@@ -34,0 +34,0 @@ autocompleteTimeout?: number | undefined; |
@@ -102,2 +102,3 @@ import type { Feature as FeatureType, Geometry } from "geojson"; | ||
* Minimum number of characters to enter before results are shown. | ||
* | ||
* Default value is `2`. | ||
@@ -139,3 +140,3 @@ */ | ||
* | ||
* Default value is `true` | ||
* Default value is `true`. | ||
*/ | ||
@@ -154,2 +155,3 @@ fuzzyMatch?: boolean; | ||
* If `true`, the geocoder control will collapse until hovered or in focus. | ||
* | ||
* Default value is `false`. | ||
@@ -160,2 +162,3 @@ */ | ||
* If true, the geocoder control will clear its value when the input blurs. | ||
* | ||
* Default value is `false`. | ||
@@ -167,2 +170,4 @@ */ | ||
* Return true to keep the item, false otherwise. | ||
* | ||
* Default value is a function returning always `true`. | ||
*/ | ||
@@ -177,9 +182,9 @@ filter?: (feature: Feature) => boolean; | ||
/** | ||
* Set to `true` to enable reverse geocoding button with title. Set to `"always"` to reverse geocoding be always active. | ||
* Set to `button` to enable reverse geocoding button with title. Set to `"always"` to reverse geocoding be always active. | ||
* | ||
* Default value is `false` | ||
* Default value is `"never"`. | ||
*/ | ||
enableReverse?: boolean | "always"; | ||
enableReverse?: EnableReverse; | ||
/** | ||
* Reverse mode. | ||
* Reverse mode active. | ||
* | ||
@@ -207,3 +212,3 @@ * Default value is `false`. | ||
*/ | ||
showPlaceType?: "never" | "always" | "if-needed"; | ||
showPlaceType?: ShowPlaceType; | ||
/** | ||
@@ -218,3 +223,3 @@ * Style of the picked result on the map: | ||
*/ | ||
pickedResultStyle?: "marker-only" | "full-geometry" | "full-geometry-including-polygon-center-marker"; | ||
pickedResultStyle?: PickedResultStyle; | ||
/** | ||
@@ -288,2 +293,5 @@ * Limit search to specified country(ies). | ||
}; | ||
export type PickedResultStyle = "marker-only" | "full-geometry" | "full-geometry-including-polygon-center-marker"; | ||
export type EnableReverse = "never" | "always" | "button"; | ||
export type ShowPlaceType = "never" | "always" | "if-needed"; | ||
export type DispatcherTypeCC = { | ||
@@ -290,0 +298,0 @@ featuresListed: { |
@@ -102,2 +102,3 @@ import type { Feature as FeatureType, Geometry } from "geojson"; | ||
* Minimum number of characters to enter before results are shown. | ||
* | ||
* Default value is `2`. | ||
@@ -139,3 +140,3 @@ */ | ||
* | ||
* Default value is `true` | ||
* Default value is `true`. | ||
*/ | ||
@@ -154,2 +155,3 @@ fuzzyMatch?: boolean; | ||
* If `true`, the geocoder control will collapse until hovered or in focus. | ||
* | ||
* Default value is `false`. | ||
@@ -160,2 +162,3 @@ */ | ||
* If true, the geocoder control will clear its value when the input blurs. | ||
* | ||
* Default value is `false`. | ||
@@ -167,2 +170,4 @@ */ | ||
* Return true to keep the item, false otherwise. | ||
* | ||
* Default value is a function returning always `true`. | ||
*/ | ||
@@ -177,9 +182,9 @@ filter?: (feature: Feature) => boolean; | ||
/** | ||
* Set to `true` to enable reverse geocoding button with title. Set to `"always"` to reverse geocoding be always active. | ||
* Set to `button` to enable reverse geocoding button with title. Set to `"always"` to reverse geocoding be always active. | ||
* | ||
* Default value is `false` | ||
* Default value is `"never"`. | ||
*/ | ||
enableReverse?: boolean | "always"; | ||
enableReverse?: EnableReverse; | ||
/** | ||
* Reverse mode. | ||
* Reverse mode active. | ||
* | ||
@@ -207,3 +212,3 @@ * Default value is `false`. | ||
*/ | ||
showPlaceType?: "never" | "always" | "if-needed"; | ||
showPlaceType?: ShowPlaceType; | ||
/** | ||
@@ -218,3 +223,3 @@ * Style of the picked result on the map: | ||
*/ | ||
pickedResultStyle?: "marker-only" | "full-geometry" | "full-geometry-including-polygon-center-marker"; | ||
pickedResultStyle?: PickedResultStyle; | ||
/** | ||
@@ -288,2 +293,5 @@ * Limit search to specified country(ies). | ||
}; | ||
export type PickedResultStyle = "marker-only" | "full-geometry" | "full-geometry-including-polygon-center-marker"; | ||
export type EnableReverse = "never" | "always" | "button"; | ||
export type ShowPlaceType = "never" | "always" | "if-needed"; | ||
export type DispatcherTypeCC = { | ||
@@ -290,0 +298,0 @@ featuresListed: { |
@@ -1,2 +0,2 @@ | ||
(function(W,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(W=typeof globalThis<"u"?globalThis:W||self,v(W.maptilerGeocoder={}))})(this,function(W){"use strict";var pn=Object.defineProperty;var Tn=Object.getPrototypeOf;var Nn=Reflect.get;var qt=W=>{throw TypeError(W)};var kn=(W,v,j)=>v in W?pn(W,v,{enumerable:!0,configurable:!0,writable:!0,value:j}):W[v]=j;var mt=(W,v,j)=>kn(W,typeof v!="symbol"?v+"":v,j),gt=(W,v,j)=>v.has(W)||qt("Cannot "+j);var ae=(W,v,j)=>(gt(W,v,"read from private field"),j?j.call(W):v.get(W)),ht=(W,v,j)=>v.has(W)?qt("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(W):v.set(W,j),Qt=(W,v,j,Ce)=>(gt(W,v,"write to private field"),Ce?Ce.call(W,j):v.set(W,j),j),Kt=(W,v,j)=>(gt(W,v,"access private method"),j);var Vt=(W,v,j)=>Nn(Tn(W),j,v);var Y,He,xt;function v(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function Ce(i){return i()}function bt(){return Object.create(null)}function le(i){i.forEach(Ce)}function vt(i){return typeof i=="function"}function ve(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ae;function x(i,e){return i===e?!0:(Ae||(Ae=document.createElement("a")),Ae.href=e,i===Ae.href)}function Jt(i){return Object.keys(i).length===0}function Xt(i,e,t,n){if(i){const r=Lt(i,e,t,n);return i[0](r)}}function Lt(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function Yt(i,e,t,n){if(i[2]&&n){const r=i[2](n(t));if(e.dirty===void 0)return r;if(typeof r=="object"){const l=[],c=Math.max(e.dirty.length,r.length);for(let o=0;o<c;o+=1)l[o]=e.dirty[o]|r[o];return l}return e.dirty|r}return e.dirty}function $t(i,e,t,n,r,l){if(r){const c=Lt(e,t,n,l);i.p(c,r)}}function ei(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _t(i){return i??""}function k(i,e){i.appendChild(e)}function A(i,e,t){i.insertBefore(e,t||null)}function I(i){i.parentNode&&i.parentNode.removeChild(i)}function D(i){return document.createElement(i)}function ue(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function fe(i){return document.createTextNode(i)}function X(){return fe(" ")}function ti(){return fe("")}function J(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function a(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ni(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function yt(i,e){i.value=e??""}function me(i,e,t){i.classList.toggle(e,!!t)}function ri(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let ze;function Re(i){ze=i}function wt(){if(!ze)throw new Error("Function called outside component initialization");return ze}function oi(i){wt().$$.on_destroy.push(i)}function si(){const i=wt();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=ri(e,t,{cancelable:n});return r.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function Et(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Se=[],xe=[];let pe=[];const St=[],ai=Promise.resolve();let Je=!1;function li(){Je||(Je=!0,ai.then(pt))}function Xe(i){pe.push(i)}const Ye=new Set;let Te=0;function pt(){if(Te!==0)return;const i=ze;do{try{for(;Te<Se.length;){const e=Se[Te];Te++,Re(e),ui(e.$$)}}catch(e){throw Se.length=0,Te=0,e}for(Re(null),Se.length=0,Te=0;xe.length;)xe.pop()();for(let e=0;e<pe.length;e+=1){const t=pe[e];Ye.has(t)||(Ye.add(t),t())}pe.length=0}while(Se.length);for(;St.length;)St.pop()();Je=!1,Ye.clear(),Re(i)}function ui(i){if(i.fragment!==null){i.update(),le(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xe)}}function ci(i){const e=[],t=[];pe.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),pe=e}const Be=new Set;let Le;function Fe(){Le={r:0,c:[],p:Le}}function je(){Le.r||le(Le.c),Le=Le.p}function H(i,e){i&&i.i&&(Be.delete(i),i.i(e))}function Q(i,e,t,n){if(i&&i.o){if(Be.has(i))return;Be.add(i),Le.c.push(()=>{Be.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Tt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function di(i,e){Q(i,1,1,()=>{e.delete(i.key)})}function fi(i,e,t,n,r,l,c,o,d,u,f,h){let L=i.length,y=l.length,E=L;const R={};for(;E--;)R[i[E].key]=E;const w=[],S=new Map,z=new Map,O=[];for(E=y;E--;){const g=h(r,l,E),m=t(g);let C=c.get(m);C?O.push(()=>C.p(g,e)):(C=u(m,g),C.c()),S.set(m,w[E]=C),m in R&&z.set(m,Math.abs(E-R[m]))}const T=new Set,K=new Set;function b(g){H(g,1),g.m(o,f),c.set(g.key,g),f=g.first,y--}for(;L&&y;){const g=w[y-1],m=i[L-1],C=g.key,Z=m.key;g===m?(f=g.first,L--,y--):S.has(Z)?!c.has(C)||T.has(C)?b(g):K.has(Z)?L--:z.get(C)>z.get(Z)?(K.add(C),b(g)):(T.add(Z),L--):(d(m,c),L--)}for(;L--;){const g=i[L];S.has(g.key)||d(g,c)}for(;y;)b(w[y-1]);return le(O),w}function ge(i){i&&i.c()}function ce(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),Xe(()=>{const l=i.$$.on_mount.map(Ce).filter(vt);i.$$.on_destroy?i.$$.on_destroy.push(...l):le(l),i.$$.on_mount=[]}),r.forEach(Xe)}function de(i,e){const t=i.$$;t.fragment!==null&&(ci(t.after_update),le(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function mi(i,e){i.$$.dirty[0]===-1&&(Se.push(i),li(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function _e(i,e,t,n,r,l,c=null,o=[-1]){const d=ze;Re(i);const u=i.$$={fragment:null,ctx:[],props:l,update:v,not_equal:r,bound:bt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:bt(),dirty:o,skip_bound:!1,root:e.target||d.$$.root};c&&c(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(h,L,...y)=>{const E=y.length?y[0]:L;return u.ctx&&r(u.ctx[h],u.ctx[h]=E)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](E),f&&mi(i,h)),L}):[],u.update(),f=!0,le(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=ni(e.target);u.fragment&&u.fragment.l(h),h.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&H(i.$$.fragment),ce(i,e.target,e.anchor),pt()}Re(d)}class ye{constructor(){mt(this,"$$");mt(this,"$$set")}$destroy(){de(this,1),this.$destroy=v}$on(e,t){if(!vt(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!Jt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const gi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(gi);function hi(i){let e,t;return{c(){e=ue("svg"),t=ue("path"),a(t,"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"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),k(e,t)},p:v,i:v,o:v,d(n){n&&I(e)}}}class Nt extends ye{constructor(e){super(),_e(this,e,null,hi,ve,{})}}function bi(i){let e,t;return{c(){e=ue("svg"),t=ue("path"),a(t,"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"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){A(n,e,r),k(e,t)},p:v,i:v,o:v,d(n){n&&I(e)}}}class kt extends ye{constructor(e){super(),_e(this,e,null,bi,ve,{})}}function vi(i){let e,t;return{c(){e=D("img"),x(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function Li(i){let e,t;return{c(){e=D("img"),x(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function _i(i){let e,t;return{c(){e=D("img"),x(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function yi(i){let e,t;return{c(){e=D("img"),x(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function wi(i){let e,t;return{c(){e=D("img"),x(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function Ei(i){let e,t;return{c(){e=D("img"),x(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function Si(i){let e,t;return{c(){e=D("img"),x(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function pi(i){let e,t,n,r;return{c(){e=D("img"),x(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"class","svelte-ltkwvy")},m(l,c){A(l,e,c),n||(r=J(e,"error",i[14]),n=!0)},p(l,c){c&32&&!x(e.src,t=l[5])&&a(e,"src",t),c&16&&a(e,"alt",l[4])},d(l){l&&I(e),n=!1,r()}}}function Mt(i){let e,t;return{c(){e=D("span"),t=fe(i[6]),a(e,"class","secondary svelte-ltkwvy")},m(n,r){A(n,e,r),k(e,t)},p(n,r){r&64&&We(t,n[6])},d(n){n&&I(e)}}}function Ti(i){let e,t,n,r,l,c,o,d,u,f=(i[7]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,L,y=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[7],E,R,w=(i[7]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,z,O;function T(m,C){return C&1&&(t=null),C&1&&(n=null),C&1&&(r=null),C&1&&(l=null),m[5]?pi:m[0].address?Si:(t==null&&(t=!!m[0].id.startsWith("road.")),t?Ei:(n==null&&(n=!!m[0].id.startsWith("address.")),n?wi:(r==null&&(r=!!m[0].id.startsWith("postal_code.")),r?yi:(l==null&&(l=!!m[0].id.startsWith("poi.")),l?_i:m[7]?Li:vi))))}let K=T(i,-1),b=K(i),g=y&&Mt(i);return{c(){e=D("li"),b.c(),c=X(),o=D("span"),d=D("span"),u=D("span"),h=fe(f),L=X(),g&&g.c(),E=X(),R=D("span"),S=fe(w),a(u,"class","primary svelte-ltkwvy"),a(d,"class","svelte-ltkwvy"),a(R,"class","line2 svelte-ltkwvy"),a(o,"class","texts svelte-ltkwvy"),a(e,"tabindex","0"),a(e,"data-selected",i[1]),a(e,"class","svelte-ltkwvy"),me(e,"selected",i[1])},m(m,C){A(m,e,C),b.m(e,null),k(e,c),k(e,o),k(o,d),k(d,u),k(u,h),k(d,L),g&&g.m(d,null),k(o,E),k(o,R),k(R,S),z||(O=[J(e,"mouseenter",i[12]),J(e,"focus",i[13])],z=!0)},p(m,[C]){K===(K=T(m,C))&&b?b.p(m,C):(b.d(1),b=K(m),b&&(b.c(),b.m(e,c))),C&1&&f!==(f=(m[7]?m[0].place_name:m[0].place_name.replace(/,.*/,""))+"")&&We(h,f),C&37&&(y=m[2]==="always"||m[2]!=="never"&&!m[0].address&&!m[0].id.startsWith("road.")&&!m[0].id.startsWith("address.")&&!m[0].id.startsWith("postal_code.")&&(!m[0].id.startsWith("poi.")||!m[5])&&!m[7]),y?g?g.p(m,C):(g=Mt(m),g.c(),g.m(d,null)):g&&(g.d(1),g=null),C&1&&w!==(w=(m[7]?"":m[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&We(S,w),C&2&&a(e,"data-selected",m[1]),C&2&&me(e,"selected",m[1])},i:v,o:v,d(m){m&&I(e),b.d(),g&&g.d(),z=!1,le(O)}}}function Ni(i,e,t){var O;let n,r,{feature:l}=e,{selected:c=!1}=e,{showPlaceType:o}=e,{missingIconsCache:d}=e,{iconsBaseUrl:u}=e;const f=(O=l.properties)==null?void 0:O.categories;let h,L,y=0,E=l.place_type[0]==="reverse";function R(){L&&d.add(L),t(10,y++,y)}function w(T){Et.call(this,i,T)}function S(T){Et.call(this,i,T)}const z=()=>R();return i.$$set=T=>{"feature"in T&&t(0,l=T.feature),"selected"in T&&t(1,c=T.selected),"showPlaceType"in T&&t(2,o=T.showPlaceType),"missingIconsCache"in T&&t(9,d=T.missingIconsCache),"iconsBaseUrl"in T&&t(3,u=T.iconsBaseUrl)},i.$$.update=()=>{var T,K,b,g;if(i.$$.dirty&3640)do t(11,n--,n),t(4,h=f==null?void 0:f[n]),t(5,L=h?u+h.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!L||d.has(L)));i.$$.dirty&1&&t(6,r=((K=(T=l.properties)==null?void 0:T.categories)==null?void 0:K.join(", "))??((g=(b=l.properties)==null?void 0:b.place_type_name)==null?void 0:g[0])??l.place_type[0])},t(11,n=(f==null?void 0:f.length)??0),[l,c,o,u,h,L,r,E,R,d,y,n,w,S,z]}class ki extends ye{constructor(e){super(),_e(this,e,Ni,Ti,ve,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function Mi(i){let e;return{c(){e=D("div"),e.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>',a(e,"class","svelte-7cmwmc")},m(t,n){A(t,e,n)},p:v,i:v,o:v,d(t){t&&I(e)}}}class Ci extends ye{constructor(e){super(),_e(this,e,null,Mi,ve,{})}}function Wi(i){let e,t;return{c(){e=ue("svg"),t=ue("path"),a(t,"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"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),k(e,t)},p:v,i:v,o:v,d(n){n&&I(e)}}}class zi extends ye{constructor(e){super(),_e(this,e,null,Wi,ve,{})}}function Ri(i){let e,t,n;return{c(){e=ue("svg"),t=ue("circle"),n=ue("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,l){A(r,e,l),k(e,t),k(e,n)},p:v,i:v,o:v,d(r){r&&I(e)}}}class Oi extends ye{constructor(e){super(),_e(this,e,null,Ri,ve,{})}}function Di(i,e,t){const n=e[1],r=e[0],l=n-r;return i===n&&t?i:((i-r)%l+l)%l+r}function Ct(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let Oe;async function Ii(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Oe&&r.cachedLocationExpiry&&Oe.time+r.cachedLocationExpiry>Date.now()){if(!Oe.coords)break e;return Oe.coords}let l;try{return l=await new Promise((c,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{c([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{o(d)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(Oe={time:Date.now(),coords:l})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const Ui=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,Wt=/^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/,zt=/^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i,Rt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i,Ot=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i,Dt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;function Ai(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(y=>Number(y.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",o=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${c}, ${l}° ${o}`);const u=Math.floor(r),f=Math.floor(l),h=(r-u)*60,L=(l-f)*60;if(i=="DM"){let y=It(h,3).toFixed(3).padStart(6,"0"),E=It(L,3).toFixed(3).padStart(6,"0");y.endsWith(".000")&&E.endsWith(".000")&&(y=y.replace(/\.000$/,""),E=E.replace(/\.000$/,"")),d=`${u}° ${y}' ${c}, ${f}° ${E}' ${o}`}if(i=="DMS"){const y=Math.floor(h),E=Math.floor(L);let R=((h-y)*60).toFixed(1).padStart(4,"0"),w=((L-E)*60).toFixed(1).padStart(4,"0");const S=y.toString().padStart(2,"0"),z=E.toString().padStart(2,"0");R.endsWith(".0")&&w.endsWith(".0")&&(R=R.replace(/\.0$/,""),w=w.replace(/\.0$/,"")),d=`${u}° ${S}' ${R}" ${c}, ${f}° ${z}' ${w}" ${o}`}return d}else throw new Error("no decimal coordinates to convert")}function It(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function $e(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",c=null,o=[],d=!1;if(Ui.test(i))throw new Error("invalid coordinate value");if(Wt.test(i))if(o=Wt.exec(i),d=De(o),d)t=Math.abs(o[1])+o[2]/60,Number(o[1])<0&&(t*=-1),n=Math.abs(o[3])+o[4]/60,Number(o[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(zt.test(i))if(o=zt.exec(i),d=De(o),d){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),c="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");o[1]?(r=o[1],l=o[5]):o[4]&&(r=o[4],l=o[8])}else throw new Error("invalid decimal coordinate format");else if(Rt.test(i))if(o=Rt.exec(i),d=De(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[9])),o[11]&&(n+=o[11]/60),o[13]&&(n+=o[13].replace(",",".")/3600),parseInt(o[9])<0&&(n=-1*n),o[1]?(r=o[1],l=o[8]):o[7]&&(r=o[7],l=o[14]);else throw new Error("invalid DMS coordinates format");else if(Ot.test(i))if(o=Ot.exec(i),d=De(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6]/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12]/60),o[14]&&(n+=o[14]/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid DMS coordinates format");else if(Dt.test(i)){if(o=Dt.exec(i),d=De(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12].replace(",",".")/60),o[14]&&(n+=o[14].replace(",",".")/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!l||!r&&l)throw new Error("invalid coordinates value");if(r&&r==l)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(l)&&n>0&&(n=-1*n);const f=o[0].trim();let h,L;const y=/[,/;\u0020]/g,E=f.match(y);if(E==null){const S=Math.floor(i.length/2);h=f.substring(0,S).trim(),L=f.substring(S).trim()}else{let S;E.length%2==1?S=Math.floor(E.length/2):S=E.length/2-1;let z=0;if(S==0)z=f.indexOf(E[0]),h=f.substring(0,z).trim(),L=f.substring(z+1).trim();else{let O=0,T=0;for(;O<=S;)z=f.indexOf(E[O],T),T=z+1,O++;h=f.substring(0,z).trim(),L=f.substring(z+1).trim()}}const R=h.split(".");if(R.length==2&&R[1]==0&&R[1].length!=2)throw new Error("invalid coordinates format");const w=L.split(".");if(w.length==2&&w[1]==0&&w[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(L))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:h,verbatimLongitude:L,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:Bi,toCoordinateFormat:Ai})}else throw new Error("coordinates pattern match failed")}function De(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let l=0;l<r;l++){const c=e[l],o=e[l+r],d=t.test(c)&&t.test(o),u=n.test(c)&&n.test(o),f=c==o;if(!(c==null&&o==null)){if(c==null||o==null)return!1;if(d||u||f)continue;return!1}}return!0}function Ut(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Bi(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Ut(this.decimalLatitude,Number(e[0]))&&Ut(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Fi=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});$e.to=Fi;const ji=[{verbatimCoordinates:"40.123, -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:'40° 7´ 22.8" N 74° 7´ 22.8" W',verbatimLatitude:'40° 7´ 22.8" N',verbatimLongitude:'74° 7´ 22.8" W'},{verbatimCoordinates:"40° 7.38’ , -74° 7.38’",verbatimLatitude:"40° 7.38’",verbatimLongitude:"-74° 7.38’"},{verbatimCoordinates:"N40°7’22.8’’, W74°7’22.8’’",verbatimLatitude:"N40°7’22.8’’",verbatimLongitude:"W74°7’22.8’’"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:`40°7'22.8"N, 74°7'22.8"W`,verbatimLatitude:`40°7'22.8"N`,verbatimLongitude:`74°7'22.8"W`},{verbatimCoordinates:"40 7 22.8, -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"},{verbatimCoordinates:"40.123 -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123°,-74.123°",verbatimLatitude:"40.123°",verbatimLongitude:"-74.123°"},{verbatimCoordinates:"40.123N74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"4007.38N7407.38W",verbatimLatitude:"4007.38N",verbatimLongitude:"7407.38W"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:"400722.8N740722.8W",verbatimLatitude:"400722.8N",verbatimLongitude:"740722.8W"},{verbatimCoordinates:"N 40 7.38 W 74 7.38",verbatimLatitude:"N 40 7.38",verbatimLongitude:"W 74 7.38"},{verbatimCoordinates:"40:7:22.8N 74:7:22.8W",verbatimLatitude:"40:7:22.8N",verbatimLongitude:"74:7:22.8W"},{verbatimCoordinates:"40:7:23N,74:7:23W",verbatimLatitude:"40:7:23N",verbatimLongitude:"74:7:23W",decimalLatitude:40.1230555555,decimalLongitude:-74.1230555555},{verbatimCoordinates:'40°7’23"N 74°7’23"W',verbatimLatitude:'40°7’23"N',verbatimLongitude:'74°7’23"W',decimalLatitude:40.1230555555,decimalLongitude:-74.12305555555555},{verbatimCoordinates:'40°7’23"S 74°7’23"E',verbatimLatitude:'40°7’23"S',verbatimLongitude:'74°7’23"E',decimalLatitude:-40.1230555555,decimalLongitude:74.12305555555555},{verbatimCoordinates:'40°7’23" -74°7’23"',verbatimLatitude:'40°7’23"',verbatimLongitude:'-74°7’23"',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:'40d 7’ 23" N 74d 7’ 23" W',verbatimLatitude:'40d 7’ 23" N',verbatimLongitude:'74d 7’ 23" W',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:"40.123N 74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40 7 22.8; -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"}],Hi={decimalLatitude:40.123,decimalLongitude:-74.123},Pi=[{verbatimCoordinates:`50°4'17.698"south, 14°24'2.826"east`,verbatimLatitude:`50°4'17.698"south`,verbatimLongitude:`14°24'2.826"east`,decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"50d4m17.698S 14d24m2.826E",verbatimLatitude:"50d4m17.698S",verbatimLongitude:"14d24m2.826E",decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"40:26:46N,79:56:55W",verbatimLatitude:"40:26:46N",verbatimLongitude:"79:56:55W",decimalLatitude:40.44611111111111,decimalLongitude:-79.9486111111111},{verbatimCoordinates:"40:26:46.302N 79:56:55.903W",verbatimLatitude:"40:26:46.302N",verbatimLongitude:"79:56:55.903W",decimalLatitude:40.446195,decimalLongitude:-79.94886194444445},{verbatimCoordinates:"40°26′47″N 79°58′36″W",verbatimLatitude:"40°26′47″N",verbatimLongitude:"79°58′36″W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40d 26′ 47″ N 79d 58′ 36″ W",verbatimLatitude:"40d 26′ 47″ N",verbatimLongitude:"79d 58′ 36″ W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40.446195N 79.948862W",verbatimLatitude:"40.446195N",verbatimLongitude:"79.948862W",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40,446195° 79,948862°",verbatimLatitude:"40,446195°",verbatimLongitude:"79,948862°",decimalLatitude:40.446195,decimalLongitude:79.948862},{verbatimCoordinates:"40° 26.7717, -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.446195, -79.948862",verbatimLatitude:"40.446195",verbatimLongitude:"-79.948862",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.123256; -74.123256",verbatimLatitude:"40.123256",verbatimLongitude:"-74.123256",decimalLatitude:40.123256,decimalLongitude:-74.123256},{verbatimCoordinates:"18°24S 22°45E",verbatimLatitude:"18°24S",verbatimLongitude:"22°45E",decimalLatitude:-18.4,decimalLongitude:22.75}],Zi=[{verbatimCoordinates:"10.432342S 10.6345345E",verbatimLatitude:"10.432342S",verbatimLongitude:"10.6345345E",decimalLatitude:-10.432342,decimalLongitude:10.6345345},{verbatimCoordinates:"10.00S 10.00E",verbatimLatitude:"10.00S",verbatimLongitude:"10.00E",decimalLatitude:-10,decimalLongitude:10},{verbatimCoordinates:"00.00S 01.00E",verbatimLatitude:"00.00S",verbatimLongitude:"01.00E",decimalLatitude:0,decimalLongitude:1},{verbatimCoordinates:"18.24S 22.45E",verbatimLatitude:"18.24S",verbatimLongitude:"22.45E",decimalLatitude:-18.4,decimalLongitude:22.75},{verbatimCoordinates:"27deg 15min 45.2sec S 18deg 32min 53.7sec E",verbatimLatitude:"27deg 15min 45.2sec S",verbatimLongitude:"18deg 32min 53.7sec E",decimalLatitude:-27.262555555555554,decimalLongitude:18.54825},{verbatimCoordinates:"-23.3245° S / 28.2344° E",verbatimLatitude:"-23.3245° S",verbatimLongitude:"28.2344° E",decimalLatitude:-23.3245,decimalLongitude:28.2344},{verbatimCoordinates:"40° 26.7717 -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"27.15.45S 18.32.53E",verbatimLatitude:"27.15.45S",verbatimLongitude:"18.32.53E",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"-27.15.45 18.32.53",verbatimLatitude:"-27.15.45",verbatimLongitude:"18.32.53",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"27.15.45.2S 18.32.53.4E",verbatimLatitude:"27.15.45.2S",verbatimLongitude:"18.32.53.4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"27.15.45,2S 18.32.53,4E",verbatimLatitude:"27.15.45,2S",verbatimLongitude:"18.32.53,4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"S23.43563 ° E22.45634 °",verbatimLatitude:"S23.43563 °",verbatimLongitude:"E22.45634 °",decimalLatitude:-23.43563,decimalLongitude:22.45634},{verbatimCoordinates:"27,71372° S 23,07771° E",verbatimLatitude:"27,71372° S",verbatimLongitude:"23,07771° E",decimalLatitude:-27.71372,decimalLongitude:23.07771},{verbatimCoordinates:"27.45.34 S 23.23.23 E",verbatimLatitude:"27.45.34 S",verbatimLongitude:"23.23.23 E",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"S 27.45.34 E 23.23.23",verbatimLatitude:"S 27.45.34",verbatimLongitude:"E 23.23.23",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"53 16.3863,4 52.8171",verbatimLatitude:"53 16.3863",verbatimLongitude:"4 52.8171",decimalLatitude:53.273105,decimalLongitude:4.88029},{verbatimCoordinates:"50 8.2914,-5 2.4447",verbatimLatitude:"50 8.2914",verbatimLongitude:"-5 2.4447",decimalLatitude:50.13819,decimalLongitude:-5.040745},{verbatimCoordinates:"N 48° 30,6410', E 18° 57,4583'",verbatimLatitude:"N 48° 30,6410'",verbatimLongitude:"E 18° 57,4583'",decimalLatitude:48.51068,decimalLongitude:18.95764},{verbatimCoordinates:"1.23456, 18.33453",verbatimLatitude:"1.23456",verbatimLongitude:"18.33453",decimalLatitude:1.23456,decimalLongitude:18.33453}];function Gi(){const i=[];return ji.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Hi})}),[...i,...Pi,...Zi]}const qi=Gi();$e.formats=qi.map(i=>i.verbatimCoordinates);const Qi=$e;function At(i,e,t){const n=i.slice();return n[86]=e[t],n[88]=t,n}function Bt(i){let e,t;return e=new Ci({}),{c(){ge(e.$$.fragment)},m(n,r){ce(e,n,r),t=!0},i(n){t||(H(e.$$.fragment,n),t=!0)},o(n){Q(e.$$.fragment,n),t=!1},d(n){de(e,n)}}}function Ft(i){let e,t,n,r,l;return t=new zi({}),{c(){e=D("button"),ge(t.$$.fragment),a(e,"type","button"),a(e,"title",i[9]),a(e,"class","svelte-bz0zu3"),me(e,"active",i[0])},m(c,o){A(c,e,o),ce(t,e,null),n=!0,r||(l=J(e,"click",i[70]),r=!0)},p(c,o){(!n||o[0]&512)&&a(e,"title",c[9]),(!n||o[0]&1)&&me(e,"active",c[0])},i(c){n||(H(t.$$.fragment,c),n=!0)},o(c){Q(t.$$.fragment,c),n=!1},d(c){c&&I(e),de(t),r=!1,l()}}}function Ki(i){let e,t=[],n=new Map,r,l,c,o=Tt(i[14]);const d=u=>u[86].id+(u[86].address?","+u[86].address:"");for(let u=0;u<o.length;u+=1){let f=At(i,o,u),h=d(f);n.set(h,t[u]=jt(h,f))}return{c(){e=D("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","options svelte-bz0zu3")},m(u,f){A(u,e,f);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);r=!0,l||(c=[J(e,"mouseleave",i[74]),J(e,"blur",i[75])],l=!0)},p(u,f){f[0]&17880064&&(o=Tt(u[14]),Fe(),t=fi(t,f,d,1,u,o,n,e,di,jt,null,At),je())},i(u){if(!r){for(let f=0;f<o.length;f+=1)H(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)Q(t[f]);r=!1},d(u){u&&I(e);for(let f=0;f<t.length;f+=1)t[f].d();l=!1,le(c)}}}function Vi(i){let e,t,n,r,l,c;return t=new kt({}),{c(){e=D("div"),ge(t.$$.fragment),n=X(),r=D("div"),l=fe(i[7]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,d){A(o,e,d),ce(t,e,null),k(e,n),k(e,r),k(r,l),c=!0},p(o,d){(!c||d[0]&128)&&We(l,o[7])},i(o){c||(H(t.$$.fragment,o),c=!0)},o(o){Q(t.$$.fragment,o),c=!1},d(o){o&&I(e),de(t)}}}function xi(i){let e="",t;return{c(){t=fe(e)},m(n,r){A(n,t,r)},p:v,i:v,o:v,d(n){n&&I(t)}}}function Ji(i){let e,t,n,r,l,c,o,d,u,f,h;return t=new kt({}),d=new Nt({}),{c(){e=D("div"),ge(t.$$.fragment),n=X(),r=D("div"),l=fe(i[6]),c=X(),o=D("button"),ge(d.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(L,y){A(L,e,y),ce(t,e,null),k(e,n),k(e,r),k(r,l),k(e,c),k(e,o),ce(d,o,null),u=!0,f||(h=J(o,"click",i[71]),f=!0)},p(L,y){(!u||y[0]&64)&&We(l,L[6])},i(L){u||(H(t.$$.fragment,L),H(d.$$.fragment,L),u=!0)},o(L){Q(t.$$.fragment,L),Q(d.$$.fragment,L),u=!1},d(L){L&&I(e),de(t),de(d),f=!1,h()}}}function jt(i,e){let t,n,r;function l(){return e[72](e[88])}function c(){return e[73](e[86])}return n=new ki({props:{feature:e[86],showPlaceType:e[10],selected:e[15]===e[88],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("focus",c),{key:i,first:null,c(){t=ti(),ge(n.$$.fragment),this.first=t},m(o,d){A(o,t,d),ce(n,o,d),r=!0},p(o,d){e=o;const u={};d[0]&16384&&(u.feature=e[86]),d[0]&1024&&(u.showPlaceType=e[10]),d[0]&49152&&(u.selected=e[15]===e[88]),d[0]&4096&&(u.iconsBaseUrl=e[12]),n.$set(u)},i(o){r||(H(n.$$.fragment,o),r=!0)},o(o){Q(n.$$.fragment,o),r=!1},d(o){o&&I(t),de(n,o)}}}function Xi(i){let e,t,n,r,l,c,o,d,u,f,h,L,y,E,R,w,S,z,O,T,K,b=!1;l=new Oi({}),h=new Nt({});let g=i[19]&&Bt(),m=i[5]===!0&&Ft(i);const C=i[62].default,Z=Xt(C,i,i[61],null),ee=[Ji,xi,Vi,Ki],ne=[];function F(_,P){var re,Ne;return _[18]?0:_[16]?((re=_[14])==null?void 0:re.length)===0?2:_[16]&&((Ne=_[14])!=null&&Ne.length)?3:-1:1}return~(w=F(i))&&(S=ne[w]=ee[w](i)),{c(){e=X(),t=D("form"),n=D("div"),r=D("button"),ge(l.$$.fragment),c=X(),o=D("input"),d=X(),u=D("div"),f=D("button"),ge(h.$$.fragment),L=X(),g&&g.c(),y=X(),m&&m.c(),E=X(),Z&&Z.c(),R=X(),S&&S.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(o,"placeholder",i[8]),a(o,"aria-label",i[8]),a(o,"class","svelte-bz0zu3"),a(f,"type","button"),a(f,"title",i[3]),a(f,"class","svelte-bz0zu3"),a(u,"class","clear-button-container svelte-bz0zu3"),me(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"tabindex","0"),a(t,"class",z=_t(i[2])+" svelte-bz0zu3"),me(t,"can-collapse",i[4]&&i[1]==="")},m(_,P){A(_,e,P),A(_,t,P),k(t,n),k(n,r),ce(l,r,null),k(n,c),k(n,o),i[64](o),yt(o,i[1]),k(n,d),k(n,u),k(u,f),ce(h,f,null),k(u,L),g&&g.m(u,null),k(n,y),m&&m.m(n,null),k(n,E),Z&&Z.m(n,null),k(t,R),~w&&ne[w].m(t,null),O=!0,T||(K=[J(r,"click",i[63]),J(o,"input",i[65]),J(o,"focus",i[66]),J(o,"blur",i[67]),J(o,"keydown",i[22]),J(o,"input",i[68]),J(f,"click",i[69]),J(t,"submit",ii(i[21]))],T=!0)},p(_,P){(!O||P[0]&256)&&a(o,"placeholder",_[8]),(!O||P[0]&256)&&a(o,"aria-label",_[8]),P[0]&2&&o.value!==_[1]&&yt(o,_[1]),(!O||P[0]&8)&&a(f,"title",_[3]),_[19]?g?P[0]&524288&&H(g,1):(g=Bt(),g.c(),H(g,1),g.m(u,null)):g&&(Fe(),Q(g,1,1,()=>{g=null}),je()),(!O||P[0]&2)&&me(u,"displayable",_[1]!==""),_[5]===!0?m?(m.p(_,P),P[0]&32&&H(m,1)):(m=Ft(_),m.c(),H(m,1),m.m(n,E)):m&&(Fe(),Q(m,1,1,()=>{m=null}),je()),Z&&Z.p&&(!O||P[1]&1073741824)&&$t(Z,C,_,_[61],O?Yt(C,_[61],P,null):ei(_[61]),null);let re=w;w=F(_),w===re?~w&&ne[w].p(_,P):(S&&(Fe(),Q(ne[re],1,1,()=>{ne[re]=null}),je()),~w?(S=ne[w],S?S.p(_,P):(S=ne[w]=ee[w](_),S.c()),H(S,1),S.m(t,null)):S=null),(!O||P[0]&4&&z!==(z=_t(_[2])+" svelte-bz0zu3"))&&a(t,"class",z),(!O||P[0]&22)&&me(t,"can-collapse",_[4]&&_[1]==="")},i(_){O||(H(b),H(l.$$.fragment,_),H(h.$$.fragment,_),H(g),H(m),H(Z,_),H(S),O=!0)},o(_){Q(b),Q(l.$$.fragment,_),Q(h.$$.fragment,_),Q(g),Q(m),Q(Z,_),Q(S),O=!1},d(_){_&&(I(e),I(t)),de(l),i[64](null),de(h),g&&g.d(),m&&m.d(),Z&&Z.d(_),~w&&ne[w].d(),T=!1,le(K)}}}function Yi(i,e,t){let n,{$$slots:r={},$$scope:l}=e;const c={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};let{class:o=void 0}=e,{apiKey:d}=e,{bbox:u=void 0}=e,{clearButtonTitle:f="clear"}=e,{clearOnBlur:h=!1}=e,{collapsed:L=!1}=e,{country:y=void 0}=e,{debounceSearch:E=200}=e,{enableReverse:R=!1}=e,{errorMessage:w="Something went wrong…"}=e,{filter:S=()=>!0}=e,{flyTo:z=!0}=e,{fuzzyMatch:O=!0}=e,{language:T=void 0}=e,{limit:K=void 0}=e,{mapController:b=void 0}=e,{minLength:g=2}=e,{noResultsMessage:m="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!"}=e,{placeholder:C="Search"}=e,{proximity:Z=[{type:"server-geolocation"}]}=e,{reverseActive:ee=R==="always"}=e,{reverseButtonTitle:ne="toggle reverse geocoding"}=e,{searchValue:F=""}=e,{pickedResultStyle:_="full-geometry"}=e,{showPlaceType:P="if-needed"}=e,{showResultsWhileTyping:re=!0}=e,{autocompleteTimeout:Ne=void 0}=e,{selectFirst:ke=!0}=e,{flyToSelected:it=!1}=e,{markerOnSelected:Pe=!0}=e,{types:we=void 0}=e,{exhaustiveReverseGeocoding:nt=!1}=e,{excludeTypes:Ze=!1}=e,{zoom:Ge=c}=e,{apiUrl:rt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:ot={}}=e,{iconsBaseUrl:Ht="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.2/icons/"}=e,{adjustUrlQuery:st=()=>{}}=e;function tn(){oe.focus()}function nn(){oe.blur()}function Pt(s,B=!0,q=!1){t(1,F=s),B?(t(15,U=-1),Gt()):(ut(!q,q),setTimeout(()=>{oe.focus(),oe.select()}))}function rn(){t(14,M=void 0),t(57,p=void 0),t(15,U=-1)}function on(){t(56,G=[]),t(57,p=void 0)}let Me=!1,M,G,p,Zt="",oe,U=-1,se,qe=[],Ee,he,te,Qe,at;const sn=new Set,be=si();function an(){return!!te}oi(()=>{b&&(b.setEventHandler(void 0),b.indicateReverse(!1),b.setSelectedMarker(-1),b.setMarkers(void 0,void 0))});function Gt(s){if(he&&(window.clearTimeout(he),he=void 0),te){window.clearTimeout(te),t(58,te=void 0),Ie(F,{exact:!0});return}if(U>-1&&M)t(57,p=M[U]),t(1,F=p.place_type[0]==="reverse"?p.place_name:p.place_name.replace(/,.*/,"")),t(18,se=void 0),t(56,G=void 0),t(15,U=-1);else if(F){const B=s||!lt(F);Ie(F,{exact:!0}).then(()=>{t(56,G=M),t(57,p=void 0),B&&ln()}).catch(q=>t(18,se=q))}}function lt(s){try{return Qi(s,6)}catch{return!1}}async function Ie(s,{byId:B=!1,exact:q=!1,appendSpace:ie=!1}={}){t(18,se=void 0),Ee==null||Ee.abort();const $=new AbortController;t(19,Ee=$);try{const N=lt(s),V=new URLSearchParams;if(T!==void 0&&V.set("language",Array.isArray(T)?T.join(","):T??""),we&&V.set("types",we.join(",")),Ze&&V.set("excludeTypes",String(Ze)),u&&V.set("bbox",u.map(Ve=>Ve.toFixed(6)).join(",")),y&&V.set("country",Array.isArray(y)?y.join(","):y),!B&&!N){const Ve=await Ii(b,Z,$);Ve&&V.set("proximity",Ve),(q||!re)&&V.set("autocomplete","false"),V.set("fuzzyMatch",String(O))}K!==void 0&&(nt||!N||(we==null?void 0:we.length)===1)&&V.set("limit",String(K)),V.set("key",d),st(V);const Ke=rt+"/"+encodeURIComponent(N?N.decimalLongitude+","+N.decimalLatitude:s+(ie?" ":""))+".json?"+V.toString();if(Ke===Zt){B?(t(14,M=void 0),t(57,p=qe[0])):t(14,M=qe);return}Zt=Ke;const dt=await fetch(Ke,{signal:$.signal,...ot});if(!dt.ok)throw new Error(await dt.text());const ft=await dt.json();be("response",{url:Ke,featureCollection:ft}),B?(t(14,M=void 0),t(57,p=ft.features[0]),qe=[p]):(t(14,M=ft.features.filter(S)),N&&M.unshift({type:"Feature",properties:{},id:"reverse_"+N.decimalLongitude+"_"+N.decimalLatitude,text:N.decimalLatitude+", "+N.decimalLongitude,place_name:N.decimalLatitude+", "+N.decimalLongitude,place_type:["reverse"],center:[N.decimalLongitude,N.decimalLatitude],bbox:[N.decimalLongitude,N.decimalLatitude,N.decimalLongitude,N.decimalLatitude],geometry:{type:"Point",coordinates:[N.decimalLongitude,N.decimalLatitude]}}),qe=M,N&&oe.focus())}catch(N){if(N&&typeof N=="object"&&"name"in N&&N.name==="AbortError")return;throw N}finally{$===Ee&&t(19,Ee=void 0)}}function ln(){var ie;if(!(G!=null&&G.length)||!z)return;const s=[180,90,-180,-90],B=!G.some($=>!$.matching_text);let q;for(const $ of G){const N=Ue($);if(q=q===void 0?N:N===void 0?q:Math.max(q,N),B||!$.matching_text)for(const V of[0,1,2,3])s[V]=Math[V<2?"min":"max"](s[V],((ie=$.bbox)==null?void 0:ie[V])??$.center[V%2])}b&&G.length>0&&(p&&s[0]===s[2]&&s[1]===s[3]?b.flyTo(p.center,Ue(p)):b.fitBounds(Ct(s),50,q))}function Ue(s){var q;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const B=s.id.replace(/\..*/,"");return(Array.isArray((q=s.properties)==null?void 0:q.categories)?s.properties.categories.reduce((ie,$)=>{const N=Ge[B+"."+$];return ie===void 0?N:N===void 0?ie:Math.max(ie,N)},void 0):void 0)??Ge[B]}function un(s){t(0,ee=R==="always"),t(14,M=void 0),t(57,p=void 0),t(15,U=-1),Pt(s[1].toFixed(6)+", "+Di(s[0],[-180,180],!0).toFixed(6),!1,!0)}function cn(s){if(!M)return;let B=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;B&&(U===(ke?0:-1)&&B===-1&&t(15,U=M.length),t(15,U+=B),U>=M.length&&t(15,U=-1),U<0&&ke&&t(15,U=0),s.preventDefault())}function ut(s=!0,B=!1){if(t(18,se=void 0),he&&(window.clearTimeout(he),he=void 0),te&&(window.clearTimeout(te),t(58,te=void 0)),!re&&!B||F.length<g){t(14,M=void 0);return}const q=F;he=window.setTimeout(()=>{he=void 0,Ie(q).catch(ie=>t(18,se=ie))},s?E:0),F.endsWith(" ")||t(58,te=window.setTimeout(()=>{t(58,te=void 0),Ie(q,{appendSpace:!0}).catch(ie=>t(18,se=ie))},Ne))}function ct(s){t(57,p=s),t(1,F=s.place_name),t(15,U=-1)}const dn=()=>oe.focus();function fn(s){xe[s?"unshift":"push"](()=>{oe=s,t(17,oe)})}function mn(){F=this.value,t(1,F),t(13,Me),t(28,h)}const gn=()=>t(13,Me=!0),hn=()=>t(13,Me=!1),bn=()=>ut(),vn=()=>{t(1,F=""),oe.focus()},Ln=()=>t(0,ee=!ee),_n=()=>t(18,se=void 0),yn=s=>t(15,U=s),wn=s=>ct(s),En=()=>{ke||t(15,U=-1)},Sn=()=>{};return i.$$set=s=>{"class"in s&&t(2,o=s.class),"apiKey"in s&&t(26,d=s.apiKey),"bbox"in s&&t(27,u=s.bbox),"clearButtonTitle"in s&&t(3,f=s.clearButtonTitle),"clearOnBlur"in s&&t(28,h=s.clearOnBlur),"collapsed"in s&&t(4,L=s.collapsed),"country"in s&&t(29,y=s.country),"debounceSearch"in s&&t(30,E=s.debounceSearch),"enableReverse"in s&&t(5,R=s.enableReverse),"errorMessage"in s&&t(6,w=s.errorMessage),"filter"in s&&t(31,S=s.filter),"flyTo"in s&&t(32,z=s.flyTo),"fuzzyMatch"in s&&t(33,O=s.fuzzyMatch),"language"in s&&t(34,T=s.language),"limit"in s&&t(35,K=s.limit),"mapController"in s&&t(36,b=s.mapController),"minLength"in s&&t(37,g=s.minLength),"noResultsMessage"in s&&t(7,m=s.noResultsMessage),"placeholder"in s&&t(8,C=s.placeholder),"proximity"in s&&t(38,Z=s.proximity),"reverseActive"in s&&t(0,ee=s.reverseActive),"reverseButtonTitle"in s&&t(9,ne=s.reverseButtonTitle),"searchValue"in s&&t(1,F=s.searchValue),"pickedResultStyle"in s&&t(39,_=s.pickedResultStyle),"showPlaceType"in s&&t(10,P=s.showPlaceType),"showResultsWhileTyping"in s&&t(40,re=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(41,Ne=s.autocompleteTimeout),"selectFirst"in s&&t(11,ke=s.selectFirst),"flyToSelected"in s&&t(42,it=s.flyToSelected),"markerOnSelected"in s&&t(43,Pe=s.markerOnSelected),"types"in s&&t(44,we=s.types),"exhaustiveReverseGeocoding"in s&&t(45,nt=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(46,Ze=s.excludeTypes),"zoom"in s&&t(47,Ge=s.zoom),"apiUrl"in s&&t(48,rt=s.apiUrl),"fetchParameters"in s&&t(49,ot=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Ht=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(50,st=s.adjustUrlQuery),"$$scope"in s&&t(61,l=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&32&&t(0,ee=R==="always"),i.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,Qe=Me),h&&!Me&&t(1,F="")}),i.$$.dirty[0]&16386|i.$$.dirty[1]&64&&F.length<g&&(t(57,p=void 0),t(14,M=void 0),t(18,se=void 0),t(56,G=M)),i.$$.dirty[1]&67109120&&_!=="marker-only"&&p&&!p.address&&p.geometry.type==="Point"&&p.place_type[0]!=="reverse"&&Ie(p.id,{byId:!0}).catch(s=>t(18,se=s)),i.$$.dirty[1]&335544354&&(b&&p&&p.id!==at&&z&&(!p.bbox||p.bbox[0]===p.bbox[2]&&p.bbox[1]===p.bbox[3]?b.flyTo(p.center,Ue(p)):b.fitBounds(Ct(p.bbox),50,Ue(p)),t(14,M=void 0),t(56,G=void 0),t(15,U=-1)),t(59,at=p==null?void 0:p.id)),i.$$.dirty[0]&18432&&ke&&M!=null&&M.length&&(an()||t(15,U=0)),i.$$.dirty[0]&2&&t(15,U=-1),i.$$.dirty[0]&16384|i.$$.dirty[1]&33554432&&G!==M&&t(56,G=void 0),i.$$.dirty[0]&81921|i.$$.dirty[1]&33554464&&b&&b.setEventHandler(s=>{switch(s.type){case"mapClick":ee&&un(s.coordinates);break;case"markerClick":{const B=M==null?void 0:M.find(q=>q.id===s.id);B&&ct(B)}break;case"markerMouseEnter":G&&t(15,U=Qe?(M==null?void 0:M.findIndex(B=>B.id===s.id))??-1:-1);break;case"markerMouseLeave":G&&t(15,U=-1);break}}),i.$$.dirty[0]&49152&&t(60,n=M==null?void 0:M[U]),i.$$.dirty[1]&536872994&&b&&n&&z&&it&&b.flyTo(n.center,Ue(n)),i.$$.dirty[1]&4128&&(Pe||b==null||b.setMarkers(void 0,void 0)),i.$$.dirty[1]&570429472&&b&&Pe&&!G&&(b.setMarkers(n?[n]:void 0,void 0),b.setSelectedMarker(n?0:-1)),i.$$.dirty[1]&100663328&&b&&b.setMarkers(G,p),i.$$.dirty[0]&32768|i.$$.dirty[1]&33554464&&G&&b&&b.setSelectedMarker(U),i.$$.dirty[1]&671088640&&n&&(window.clearTimeout(te),t(58,te=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&32&&b){const s=lt(F);b.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[1]&536870912&&be("select",{feature:n}),i.$$.dirty[1]&67108864&&be("pick",{feature:p}),i.$$.dirty[0]&81920&&be("optionsvisibilitychange",{optionsVisible:Qe&&!!M}),i.$$.dirty[0]&16384&&be("featureslisted",{features:M}),i.$$.dirty[1]&33554432&&be("featuresmarked",{features:G}),i.$$.dirty[0]&1&&be("reversetoggle",{reverse:ee}),i.$$.dirty[0]&2&&be("querychange",{query:F}),i.$$.dirty[0]&1|i.$$.dirty[1]&32&&b&&b.indicateReverse(ee)},[ee,F,o,f,L,R,w,m,C,ne,P,ke,Ht,Me,M,U,Qe,oe,se,Ee,sn,Gt,cn,ut,ct,c,d,u,h,y,E,S,z,O,T,K,b,g,Z,_,re,Ne,it,Pe,we,nt,Ze,Ge,rt,ot,st,tn,nn,Pt,rn,on,G,p,te,at,n,l,r,dn,fn,mn,gn,hn,bn,vn,Ln,_n,yn,wn,En,Sn]}let $i=class extends ye{constructor(e){super(),_e(this,e,Yi,Xi,ve,{ZOOM_DEFAULTS:25,class:2,apiKey:26,bbox:27,clearButtonTitle:3,clearOnBlur:28,collapsed:4,country:29,debounceSearch:30,enableReverse:5,errorMessage:6,filter:31,flyTo:32,fuzzyMatch:33,language:34,limit:35,mapController:36,minLength:37,noResultsMessage:7,placeholder:8,proximity:38,reverseActive:0,reverseButtonTitle:9,searchValue:1,pickedResultStyle:39,showPlaceType:10,showResultsWhileTyping:40,autocompleteTimeout:41,selectFirst:11,flyToSelected:42,markerOnSelected:43,types:44,exhaustiveReverseGeocoding:45,excludeTypes:46,zoom:47,apiUrl:48,fetchParameters:49,iconsBaseUrl:12,adjustUrlQuery:50,focus:51,blur:52,setQuery:53,clearList:54,clearMap:55},null,[-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[25]}get focus(){return this.$$.ctx[51]}get blur(){return this.$$.ctx[52]}get setQuery(){return this.$$.ctx[53]}get clearList(){return this.$$.ctx[54]}get clearMap(){return this.$$.ctx[55]}};const en=new FinalizationRegistry(i=>{i.$destroy()}),tt=class tt extends EventTarget{constructor({target:t,...n}){super();ht(this,He);ht(this,Y);Qt(this,Y,new $i({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])ae(this,Y).$on(r,l=>{Kt(this,He,xt).call(this,r,l.detail)});ae(this,Y).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),en.register(this,ae(this,Y))}setOptions(t){ae(this,Y).$set(t)}setQuery(t,n=!0){var r;(r=ae(this,Y))==null||r.setQuery(t,n)}clearMap(){var t;(t=ae(this,Y))==null||t.clearMap()}clearList(){var t;(t=ae(this,Y))==null||t.clearList()}focus(){var t;(t=ae(this,Y))==null||t.focus()}blur(){var t;(t=ae(this,Y))==null||t.blur()}addEventListener(t,n,r){super.addEventListener(t,n,r)}removeEventListener(t,n,r){super.removeEventListener(t,n,r)}dispatchEvent(t){return super.dispatchEvent(t)}};Y=new WeakMap,He=new WeakSet,xt=function(t,n){return Vt(tt.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let et=tt;W.GeocodingControl=et,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}); | ||
(function(W,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(W=typeof globalThis<"u"?globalThis:W||self,v(W.maptilerGeocoder={}))})(this,function(W){"use strict";var pn=Object.defineProperty;var Tn=Object.getPrototypeOf;var Nn=Reflect.get;var qt=W=>{throw TypeError(W)};var kn=(W,v,j)=>v in W?pn(W,v,{enumerable:!0,configurable:!0,writable:!0,value:j}):W[v]=j;var mt=(W,v,j)=>kn(W,typeof v!="symbol"?v+"":v,j),gt=(W,v,j)=>v.has(W)||qt("Cannot "+j);var ae=(W,v,j)=>(gt(W,v,"read from private field"),j?j.call(W):v.get(W)),ht=(W,v,j)=>v.has(W)?qt("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(W):v.set(W,j),Qt=(W,v,j,Ce)=>(gt(W,v,"write to private field"),Ce?Ce.call(W,j):v.set(W,j),j),Kt=(W,v,j)=>(gt(W,v,"access private method"),j);var Vt=(W,v,j)=>Nn(Tn(W),j,v);var Y,He,xt;function v(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function Ce(i){return i()}function bt(){return Object.create(null)}function le(i){i.forEach(Ce)}function vt(i){return typeof i=="function"}function ve(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ae;function x(i,e){return i===e?!0:(Ae||(Ae=document.createElement("a")),Ae.href=e,i===Ae.href)}function Jt(i){return Object.keys(i).length===0}function Xt(i,e,t,n){if(i){const r=Lt(i,e,t,n);return i[0](r)}}function Lt(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function Yt(i,e,t,n){if(i[2]&&n){const r=i[2](n(t));if(e.dirty===void 0)return r;if(typeof r=="object"){const l=[],c=Math.max(e.dirty.length,r.length);for(let o=0;o<c;o+=1)l[o]=e.dirty[o]|r[o];return l}return e.dirty|r}return e.dirty}function $t(i,e,t,n,r,l){if(r){const c=Lt(e,t,n,l);i.p(c,r)}}function ei(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _t(i){return i??""}function k(i,e){i.appendChild(e)}function A(i,e,t){i.insertBefore(e,t||null)}function I(i){i.parentNode&&i.parentNode.removeChild(i)}function R(i){return document.createElement(i)}function ue(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function fe(i){return document.createTextNode(i)}function X(){return fe(" ")}function ti(){return fe("")}function J(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function a(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ni(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function yt(i,e){i.value=e??""}function me(i,e,t){i.classList.toggle(e,!!t)}function ri(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let ze;function Oe(i){ze=i}function wt(){if(!ze)throw new Error("Function called outside component initialization");return ze}function oi(i){wt().$$.on_destroy.push(i)}function si(){const i=wt();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=ri(e,t,{cancelable:n});return r.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function Et(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Se=[],xe=[];let pe=[];const St=[],ai=Promise.resolve();let Je=!1;function li(){Je||(Je=!0,ai.then(pt))}function Xe(i){pe.push(i)}const Ye=new Set;let Te=0;function pt(){if(Te!==0)return;const i=ze;do{try{for(;Te<Se.length;){const e=Se[Te];Te++,Oe(e),ui(e.$$)}}catch(e){throw Se.length=0,Te=0,e}for(Oe(null),Se.length=0,Te=0;xe.length;)xe.pop()();for(let e=0;e<pe.length;e+=1){const t=pe[e];Ye.has(t)||(Ye.add(t),t())}pe.length=0}while(Se.length);for(;St.length;)St.pop()();Je=!1,Ye.clear(),Oe(i)}function ui(i){if(i.fragment!==null){i.update(),le(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xe)}}function ci(i){const e=[],t=[];pe.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),pe=e}const Be=new Set;let Le;function Fe(){Le={r:0,c:[],p:Le}}function je(){Le.r||le(Le.c),Le=Le.p}function H(i,e){i&&i.i&&(Be.delete(i),i.i(e))}function Q(i,e,t,n){if(i&&i.o){if(Be.has(i))return;Be.add(i),Le.c.push(()=>{Be.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Tt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function di(i,e){Q(i,1,1,()=>{e.delete(i.key)})}function fi(i,e,t,n,r,l,c,o,d,u,f,h){let L=i.length,y=l.length,E=L;const O={};for(;E--;)O[i[E].key]=E;const w=[],S=new Map,z=new Map,D=[];for(E=y;E--;){const g=h(r,l,E),m=t(g);let C=c.get(m);C?D.push(()=>C.p(g,e)):(C=u(m,g),C.c()),S.set(m,w[E]=C),m in O&&z.set(m,Math.abs(E-O[m]))}const T=new Set,K=new Set;function b(g){H(g,1),g.m(o,f),c.set(g.key,g),f=g.first,y--}for(;L&&y;){const g=w[y-1],m=i[L-1],C=g.key,Z=m.key;g===m?(f=g.first,L--,y--):S.has(Z)?!c.has(C)||T.has(C)?b(g):K.has(Z)?L--:z.get(C)>z.get(Z)?(K.add(C),b(g)):(T.add(Z),L--):(d(m,c),L--)}for(;L--;){const g=i[L];S.has(g.key)||d(g,c)}for(;y;)b(w[y-1]);return le(D),w}function ge(i){i&&i.c()}function ce(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),Xe(()=>{const l=i.$$.on_mount.map(Ce).filter(vt);i.$$.on_destroy?i.$$.on_destroy.push(...l):le(l),i.$$.on_mount=[]}),r.forEach(Xe)}function de(i,e){const t=i.$$;t.fragment!==null&&(ci(t.after_update),le(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function mi(i,e){i.$$.dirty[0]===-1&&(Se.push(i),li(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function _e(i,e,t,n,r,l,c=null,o=[-1]){const d=ze;Oe(i);const u=i.$$={fragment:null,ctx:[],props:l,update:v,not_equal:r,bound:bt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:bt(),dirty:o,skip_bound:!1,root:e.target||d.$$.root};c&&c(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(h,L,...y)=>{const E=y.length?y[0]:L;return u.ctx&&r(u.ctx[h],u.ctx[h]=E)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](E),f&&mi(i,h)),L}):[],u.update(),f=!0,le(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=ni(e.target);u.fragment&&u.fragment.l(h),h.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&H(i.$$.fragment),ce(i,e.target,e.anchor),pt()}Oe(d)}class ye{constructor(){mt(this,"$$");mt(this,"$$set")}$destroy(){de(this,1),this.$destroy=v}$on(e,t){if(!vt(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!Jt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const gi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(gi);function hi(i){let e,t;return{c(){e=ue("svg"),t=ue("path"),a(t,"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"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),k(e,t)},p:v,i:v,o:v,d(n){n&&I(e)}}}class Nt extends ye{constructor(e){super(),_e(this,e,null,hi,ve,{})}}function bi(i){let e,t;return{c(){e=ue("svg"),t=ue("path"),a(t,"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"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){A(n,e,r),k(e,t)},p:v,i:v,o:v,d(n){n&&I(e)}}}class kt extends ye{constructor(e){super(),_e(this,e,null,bi,ve,{})}}function vi(i){let e,t;return{c(){e=R("img"),x(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function Li(i){let e,t;return{c(){e=R("img"),x(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function _i(i){let e,t;return{c(){e=R("img"),x(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function yi(i){let e,t;return{c(){e=R("img"),x(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function wi(i){let e,t;return{c(){e=R("img"),x(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function Ei(i){let e,t;return{c(){e=R("img"),x(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function Si(i){let e,t;return{c(){e=R("img"),x(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function pi(i){let e,t,n,r;return{c(){e=R("img"),x(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"class","svelte-ltkwvy")},m(l,c){A(l,e,c),n||(r=J(e,"error",i[14]),n=!0)},p(l,c){c&32&&!x(e.src,t=l[5])&&a(e,"src",t),c&16&&a(e,"alt",l[4])},d(l){l&&I(e),n=!1,r()}}}function Mt(i){let e,t;return{c(){e=R("span"),t=fe(i[6]),a(e,"class","secondary svelte-ltkwvy")},m(n,r){A(n,e,r),k(e,t)},p(n,r){r&64&&We(t,n[6])},d(n){n&&I(e)}}}function Ti(i){let e,t,n,r,l,c,o,d,u,f=(i[7]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,L,y=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[7],E,O,w=(i[7]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,z,D;function T(m,C){return C&1&&(t=null),C&1&&(n=null),C&1&&(r=null),C&1&&(l=null),m[5]?pi:m[0].address?Si:(t==null&&(t=!!m[0].id.startsWith("road.")),t?Ei:(n==null&&(n=!!m[0].id.startsWith("address.")),n?wi:(r==null&&(r=!!m[0].id.startsWith("postal_code.")),r?yi:(l==null&&(l=!!m[0].id.startsWith("poi.")),l?_i:m[7]?Li:vi))))}let K=T(i,-1),b=K(i),g=y&&Mt(i);return{c(){e=R("li"),b.c(),c=X(),o=R("span"),d=R("span"),u=R("span"),h=fe(f),L=X(),g&&g.c(),E=X(),O=R("span"),S=fe(w),a(u,"class","primary svelte-ltkwvy"),a(d,"class","svelte-ltkwvy"),a(O,"class","line2 svelte-ltkwvy"),a(o,"class","texts svelte-ltkwvy"),a(e,"tabindex","0"),a(e,"data-selected",i[1]),a(e,"class","svelte-ltkwvy"),me(e,"selected",i[1])},m(m,C){A(m,e,C),b.m(e,null),k(e,c),k(e,o),k(o,d),k(d,u),k(u,h),k(d,L),g&&g.m(d,null),k(o,E),k(o,O),k(O,S),z||(D=[J(e,"mouseenter",i[12]),J(e,"focus",i[13])],z=!0)},p(m,[C]){K===(K=T(m,C))&&b?b.p(m,C):(b.d(1),b=K(m),b&&(b.c(),b.m(e,c))),C&1&&f!==(f=(m[7]?m[0].place_name:m[0].place_name.replace(/,.*/,""))+"")&&We(h,f),C&37&&(y=m[2]==="always"||m[2]!=="never"&&!m[0].address&&!m[0].id.startsWith("road.")&&!m[0].id.startsWith("address.")&&!m[0].id.startsWith("postal_code.")&&(!m[0].id.startsWith("poi.")||!m[5])&&!m[7]),y?g?g.p(m,C):(g=Mt(m),g.c(),g.m(d,null)):g&&(g.d(1),g=null),C&1&&w!==(w=(m[7]?"":m[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&We(S,w),C&2&&a(e,"data-selected",m[1]),C&2&&me(e,"selected",m[1])},i:v,o:v,d(m){m&&I(e),b.d(),g&&g.d(),z=!1,le(D)}}}function Ni(i,e,t){var D;let n,r,{feature:l}=e,{selected:c=!1}=e,{showPlaceType:o}=e,{missingIconsCache:d}=e,{iconsBaseUrl:u}=e;const f=(D=l.properties)==null?void 0:D.categories;let h,L,y=0,E=l.place_type[0]==="reverse";function O(){L&&d.add(L),t(10,y++,y)}function w(T){Et.call(this,i,T)}function S(T){Et.call(this,i,T)}const z=()=>O();return i.$$set=T=>{"feature"in T&&t(0,l=T.feature),"selected"in T&&t(1,c=T.selected),"showPlaceType"in T&&t(2,o=T.showPlaceType),"missingIconsCache"in T&&t(9,d=T.missingIconsCache),"iconsBaseUrl"in T&&t(3,u=T.iconsBaseUrl)},i.$$.update=()=>{var T,K,b,g;if(i.$$.dirty&3640)do t(11,n--,n),t(4,h=f==null?void 0:f[n]),t(5,L=h?u+h.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!L||d.has(L)));i.$$.dirty&1&&t(6,r=((K=(T=l.properties)==null?void 0:T.categories)==null?void 0:K.join(", "))??((g=(b=l.properties)==null?void 0:b.place_type_name)==null?void 0:g[0])??l.place_type[0])},t(11,n=(f==null?void 0:f.length)??0),[l,c,o,u,h,L,r,E,O,d,y,n,w,S,z]}class ki extends ye{constructor(e){super(),_e(this,e,Ni,Ti,ve,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function Mi(i){let e;return{c(){e=R("div"),e.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>',a(e,"class","svelte-7cmwmc")},m(t,n){A(t,e,n)},p:v,i:v,o:v,d(t){t&&I(e)}}}class Ci extends ye{constructor(e){super(),_e(this,e,null,Mi,ve,{})}}function Wi(i){let e,t;return{c(){e=ue("svg"),t=ue("path"),a(t,"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"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),k(e,t)},p:v,i:v,o:v,d(n){n&&I(e)}}}class zi extends ye{constructor(e){super(),_e(this,e,null,Wi,ve,{})}}function Oi(i){let e,t,n;return{c(){e=ue("svg"),t=ue("circle"),n=ue("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,l){A(r,e,l),k(e,t),k(e,n)},p:v,i:v,o:v,d(r){r&&I(e)}}}class Di extends ye{constructor(e){super(),_e(this,e,null,Oi,ve,{})}}function Ri(i,e,t){const n=e[1],r=e[0],l=n-r;return i===n&&t?i:((i-r)%l+l)%l+r}function Ct(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let De;async function Ii(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(De&&r.cachedLocationExpiry&&De.time+r.cachedLocationExpiry>Date.now()){if(!De.coords)break e;return De.coords}let l;try{return l=await new Promise((c,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{c([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{o(d)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(De={time:Date.now(),coords:l})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const Ui=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,Wt=/^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/,zt=/^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i,Ot=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i,Dt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i,Rt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;function Ai(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(y=>Number(y.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",o=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${c}, ${l}° ${o}`);const u=Math.floor(r),f=Math.floor(l),h=(r-u)*60,L=(l-f)*60;if(i=="DM"){let y=It(h,3).toFixed(3).padStart(6,"0"),E=It(L,3).toFixed(3).padStart(6,"0");y.endsWith(".000")&&E.endsWith(".000")&&(y=y.replace(/\.000$/,""),E=E.replace(/\.000$/,"")),d=`${u}° ${y}' ${c}, ${f}° ${E}' ${o}`}if(i=="DMS"){const y=Math.floor(h),E=Math.floor(L);let O=((h-y)*60).toFixed(1).padStart(4,"0"),w=((L-E)*60).toFixed(1).padStart(4,"0");const S=y.toString().padStart(2,"0"),z=E.toString().padStart(2,"0");O.endsWith(".0")&&w.endsWith(".0")&&(O=O.replace(/\.0$/,""),w=w.replace(/\.0$/,"")),d=`${u}° ${S}' ${O}" ${c}, ${f}° ${z}' ${w}" ${o}`}return d}else throw new Error("no decimal coordinates to convert")}function It(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function $e(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",c=null,o=[],d=!1;if(Ui.test(i))throw new Error("invalid coordinate value");if(Wt.test(i))if(o=Wt.exec(i),d=Re(o),d)t=Math.abs(o[1])+o[2]/60,Number(o[1])<0&&(t*=-1),n=Math.abs(o[3])+o[4]/60,Number(o[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(zt.test(i))if(o=zt.exec(i),d=Re(o),d){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),c="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");o[1]?(r=o[1],l=o[5]):o[4]&&(r=o[4],l=o[8])}else throw new Error("invalid decimal coordinate format");else if(Ot.test(i))if(o=Ot.exec(i),d=Re(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[9])),o[11]&&(n+=o[11]/60),o[13]&&(n+=o[13].replace(",",".")/3600),parseInt(o[9])<0&&(n=-1*n),o[1]?(r=o[1],l=o[8]):o[7]&&(r=o[7],l=o[14]);else throw new Error("invalid DMS coordinates format");else if(Dt.test(i))if(o=Dt.exec(i),d=Re(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6]/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12]/60),o[14]&&(n+=o[14]/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid DMS coordinates format");else if(Rt.test(i)){if(o=Rt.exec(i),d=Re(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12].replace(",",".")/60),o[14]&&(n+=o[14].replace(",",".")/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!l||!r&&l)throw new Error("invalid coordinates value");if(r&&r==l)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(l)&&n>0&&(n=-1*n);const f=o[0].trim();let h,L;const y=/[,/;\u0020]/g,E=f.match(y);if(E==null){const S=Math.floor(i.length/2);h=f.substring(0,S).trim(),L=f.substring(S).trim()}else{let S;E.length%2==1?S=Math.floor(E.length/2):S=E.length/2-1;let z=0;if(S==0)z=f.indexOf(E[0]),h=f.substring(0,z).trim(),L=f.substring(z+1).trim();else{let D=0,T=0;for(;D<=S;)z=f.indexOf(E[D],T),T=z+1,D++;h=f.substring(0,z).trim(),L=f.substring(z+1).trim()}}const O=h.split(".");if(O.length==2&&O[1]==0&&O[1].length!=2)throw new Error("invalid coordinates format");const w=L.split(".");if(w.length==2&&w[1]==0&&w[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(L))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:h,verbatimLongitude:L,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:Bi,toCoordinateFormat:Ai})}else throw new Error("coordinates pattern match failed")}function Re(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let l=0;l<r;l++){const c=e[l],o=e[l+r],d=t.test(c)&&t.test(o),u=n.test(c)&&n.test(o),f=c==o;if(!(c==null&&o==null)){if(c==null||o==null)return!1;if(d||u||f)continue;return!1}}return!0}function Ut(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Bi(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Ut(this.decimalLatitude,Number(e[0]))&&Ut(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Fi=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});$e.to=Fi;const ji=[{verbatimCoordinates:"40.123, -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:'40° 7´ 22.8" N 74° 7´ 22.8" W',verbatimLatitude:'40° 7´ 22.8" N',verbatimLongitude:'74° 7´ 22.8" W'},{verbatimCoordinates:"40° 7.38’ , -74° 7.38’",verbatimLatitude:"40° 7.38’",verbatimLongitude:"-74° 7.38’"},{verbatimCoordinates:"N40°7’22.8’’, W74°7’22.8’’",verbatimLatitude:"N40°7’22.8’’",verbatimLongitude:"W74°7’22.8’’"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:`40°7'22.8"N, 74°7'22.8"W`,verbatimLatitude:`40°7'22.8"N`,verbatimLongitude:`74°7'22.8"W`},{verbatimCoordinates:"40 7 22.8, -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"},{verbatimCoordinates:"40.123 -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123°,-74.123°",verbatimLatitude:"40.123°",verbatimLongitude:"-74.123°"},{verbatimCoordinates:"40.123N74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"4007.38N7407.38W",verbatimLatitude:"4007.38N",verbatimLongitude:"7407.38W"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:"400722.8N740722.8W",verbatimLatitude:"400722.8N",verbatimLongitude:"740722.8W"},{verbatimCoordinates:"N 40 7.38 W 74 7.38",verbatimLatitude:"N 40 7.38",verbatimLongitude:"W 74 7.38"},{verbatimCoordinates:"40:7:22.8N 74:7:22.8W",verbatimLatitude:"40:7:22.8N",verbatimLongitude:"74:7:22.8W"},{verbatimCoordinates:"40:7:23N,74:7:23W",verbatimLatitude:"40:7:23N",verbatimLongitude:"74:7:23W",decimalLatitude:40.1230555555,decimalLongitude:-74.1230555555},{verbatimCoordinates:'40°7’23"N 74°7’23"W',verbatimLatitude:'40°7’23"N',verbatimLongitude:'74°7’23"W',decimalLatitude:40.1230555555,decimalLongitude:-74.12305555555555},{verbatimCoordinates:'40°7’23"S 74°7’23"E',verbatimLatitude:'40°7’23"S',verbatimLongitude:'74°7’23"E',decimalLatitude:-40.1230555555,decimalLongitude:74.12305555555555},{verbatimCoordinates:'40°7’23" -74°7’23"',verbatimLatitude:'40°7’23"',verbatimLongitude:'-74°7’23"',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:'40d 7’ 23" N 74d 7’ 23" W',verbatimLatitude:'40d 7’ 23" N',verbatimLongitude:'74d 7’ 23" W',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:"40.123N 74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40 7 22.8; -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"}],Hi={decimalLatitude:40.123,decimalLongitude:-74.123},Pi=[{verbatimCoordinates:`50°4'17.698"south, 14°24'2.826"east`,verbatimLatitude:`50°4'17.698"south`,verbatimLongitude:`14°24'2.826"east`,decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"50d4m17.698S 14d24m2.826E",verbatimLatitude:"50d4m17.698S",verbatimLongitude:"14d24m2.826E",decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"40:26:46N,79:56:55W",verbatimLatitude:"40:26:46N",verbatimLongitude:"79:56:55W",decimalLatitude:40.44611111111111,decimalLongitude:-79.9486111111111},{verbatimCoordinates:"40:26:46.302N 79:56:55.903W",verbatimLatitude:"40:26:46.302N",verbatimLongitude:"79:56:55.903W",decimalLatitude:40.446195,decimalLongitude:-79.94886194444445},{verbatimCoordinates:"40°26′47″N 79°58′36″W",verbatimLatitude:"40°26′47″N",verbatimLongitude:"79°58′36″W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40d 26′ 47″ N 79d 58′ 36″ W",verbatimLatitude:"40d 26′ 47″ N",verbatimLongitude:"79d 58′ 36″ W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40.446195N 79.948862W",verbatimLatitude:"40.446195N",verbatimLongitude:"79.948862W",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40,446195° 79,948862°",verbatimLatitude:"40,446195°",verbatimLongitude:"79,948862°",decimalLatitude:40.446195,decimalLongitude:79.948862},{verbatimCoordinates:"40° 26.7717, -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.446195, -79.948862",verbatimLatitude:"40.446195",verbatimLongitude:"-79.948862",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.123256; -74.123256",verbatimLatitude:"40.123256",verbatimLongitude:"-74.123256",decimalLatitude:40.123256,decimalLongitude:-74.123256},{verbatimCoordinates:"18°24S 22°45E",verbatimLatitude:"18°24S",verbatimLongitude:"22°45E",decimalLatitude:-18.4,decimalLongitude:22.75}],Zi=[{verbatimCoordinates:"10.432342S 10.6345345E",verbatimLatitude:"10.432342S",verbatimLongitude:"10.6345345E",decimalLatitude:-10.432342,decimalLongitude:10.6345345},{verbatimCoordinates:"10.00S 10.00E",verbatimLatitude:"10.00S",verbatimLongitude:"10.00E",decimalLatitude:-10,decimalLongitude:10},{verbatimCoordinates:"00.00S 01.00E",verbatimLatitude:"00.00S",verbatimLongitude:"01.00E",decimalLatitude:0,decimalLongitude:1},{verbatimCoordinates:"18.24S 22.45E",verbatimLatitude:"18.24S",verbatimLongitude:"22.45E",decimalLatitude:-18.4,decimalLongitude:22.75},{verbatimCoordinates:"27deg 15min 45.2sec S 18deg 32min 53.7sec E",verbatimLatitude:"27deg 15min 45.2sec S",verbatimLongitude:"18deg 32min 53.7sec E",decimalLatitude:-27.262555555555554,decimalLongitude:18.54825},{verbatimCoordinates:"-23.3245° S / 28.2344° E",verbatimLatitude:"-23.3245° S",verbatimLongitude:"28.2344° E",decimalLatitude:-23.3245,decimalLongitude:28.2344},{verbatimCoordinates:"40° 26.7717 -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"27.15.45S 18.32.53E",verbatimLatitude:"27.15.45S",verbatimLongitude:"18.32.53E",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"-27.15.45 18.32.53",verbatimLatitude:"-27.15.45",verbatimLongitude:"18.32.53",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"27.15.45.2S 18.32.53.4E",verbatimLatitude:"27.15.45.2S",verbatimLongitude:"18.32.53.4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"27.15.45,2S 18.32.53,4E",verbatimLatitude:"27.15.45,2S",verbatimLongitude:"18.32.53,4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"S23.43563 ° E22.45634 °",verbatimLatitude:"S23.43563 °",verbatimLongitude:"E22.45634 °",decimalLatitude:-23.43563,decimalLongitude:22.45634},{verbatimCoordinates:"27,71372° S 23,07771° E",verbatimLatitude:"27,71372° S",verbatimLongitude:"23,07771° E",decimalLatitude:-27.71372,decimalLongitude:23.07771},{verbatimCoordinates:"27.45.34 S 23.23.23 E",verbatimLatitude:"27.45.34 S",verbatimLongitude:"23.23.23 E",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"S 27.45.34 E 23.23.23",verbatimLatitude:"S 27.45.34",verbatimLongitude:"E 23.23.23",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"53 16.3863,4 52.8171",verbatimLatitude:"53 16.3863",verbatimLongitude:"4 52.8171",decimalLatitude:53.273105,decimalLongitude:4.88029},{verbatimCoordinates:"50 8.2914,-5 2.4447",verbatimLatitude:"50 8.2914",verbatimLongitude:"-5 2.4447",decimalLatitude:50.13819,decimalLongitude:-5.040745},{verbatimCoordinates:"N 48° 30,6410', E 18° 57,4583'",verbatimLatitude:"N 48° 30,6410'",verbatimLongitude:"E 18° 57,4583'",decimalLatitude:48.51068,decimalLongitude:18.95764},{verbatimCoordinates:"1.23456, 18.33453",verbatimLatitude:"1.23456",verbatimLongitude:"18.33453",decimalLatitude:1.23456,decimalLongitude:18.33453}];function Gi(){const i=[];return ji.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Hi})}),[...i,...Pi,...Zi]}const qi=Gi();$e.formats=qi.map(i=>i.verbatimCoordinates);const Qi=$e;function At(i,e,t){const n=i.slice();return n[86]=e[t],n[88]=t,n}function Bt(i){let e,t;return e=new Ci({}),{c(){ge(e.$$.fragment)},m(n,r){ce(e,n,r),t=!0},i(n){t||(H(e.$$.fragment,n),t=!0)},o(n){Q(e.$$.fragment,n),t=!1},d(n){de(e,n)}}}function Ft(i){let e,t,n,r,l;return t=new zi({}),{c(){e=R("button"),ge(t.$$.fragment),a(e,"type","button"),a(e,"title",i[9]),a(e,"class","svelte-bz0zu3"),me(e,"active",i[0])},m(c,o){A(c,e,o),ce(t,e,null),n=!0,r||(l=J(e,"click",i[70]),r=!0)},p(c,o){(!n||o[0]&512)&&a(e,"title",c[9]),(!n||o[0]&1)&&me(e,"active",c[0])},i(c){n||(H(t.$$.fragment,c),n=!0)},o(c){Q(t.$$.fragment,c),n=!1},d(c){c&&I(e),de(t),r=!1,l()}}}function Ki(i){let e,t=[],n=new Map,r,l,c,o=Tt(i[14]);const d=u=>u[86].id+(u[86].address?","+u[86].address:"");for(let u=0;u<o.length;u+=1){let f=At(i,o,u),h=d(f);n.set(h,t[u]=jt(h,f))}return{c(){e=R("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","options svelte-bz0zu3")},m(u,f){A(u,e,f);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);r=!0,l||(c=[J(e,"mouseleave",i[74]),J(e,"blur",i[75])],l=!0)},p(u,f){f[0]&17880064&&(o=Tt(u[14]),Fe(),t=fi(t,f,d,1,u,o,n,e,di,jt,null,At),je())},i(u){if(!r){for(let f=0;f<o.length;f+=1)H(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)Q(t[f]);r=!1},d(u){u&&I(e);for(let f=0;f<t.length;f+=1)t[f].d();l=!1,le(c)}}}function Vi(i){let e,t,n,r,l,c;return t=new kt({}),{c(){e=R("div"),ge(t.$$.fragment),n=X(),r=R("div"),l=fe(i[7]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,d){A(o,e,d),ce(t,e,null),k(e,n),k(e,r),k(r,l),c=!0},p(o,d){(!c||d[0]&128)&&We(l,o[7])},i(o){c||(H(t.$$.fragment,o),c=!0)},o(o){Q(t.$$.fragment,o),c=!1},d(o){o&&I(e),de(t)}}}function xi(i){let e="",t;return{c(){t=fe(e)},m(n,r){A(n,t,r)},p:v,i:v,o:v,d(n){n&&I(t)}}}function Ji(i){let e,t,n,r,l,c,o,d,u,f,h;return t=new kt({}),d=new Nt({}),{c(){e=R("div"),ge(t.$$.fragment),n=X(),r=R("div"),l=fe(i[6]),c=X(),o=R("button"),ge(d.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(L,y){A(L,e,y),ce(t,e,null),k(e,n),k(e,r),k(r,l),k(e,c),k(e,o),ce(d,o,null),u=!0,f||(h=J(o,"click",i[71]),f=!0)},p(L,y){(!u||y[0]&64)&&We(l,L[6])},i(L){u||(H(t.$$.fragment,L),H(d.$$.fragment,L),u=!0)},o(L){Q(t.$$.fragment,L),Q(d.$$.fragment,L),u=!1},d(L){L&&I(e),de(t),de(d),f=!1,h()}}}function jt(i,e){let t,n,r;function l(){return e[72](e[88])}function c(){return e[73](e[86])}return n=new ki({props:{feature:e[86],showPlaceType:e[10],selected:e[15]===e[88],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("focus",c),{key:i,first:null,c(){t=ti(),ge(n.$$.fragment),this.first=t},m(o,d){A(o,t,d),ce(n,o,d),r=!0},p(o,d){e=o;const u={};d[0]&16384&&(u.feature=e[86]),d[0]&1024&&(u.showPlaceType=e[10]),d[0]&49152&&(u.selected=e[15]===e[88]),d[0]&4096&&(u.iconsBaseUrl=e[12]),n.$set(u)},i(o){r||(H(n.$$.fragment,o),r=!0)},o(o){Q(n.$$.fragment,o),r=!1},d(o){o&&I(t),de(n,o)}}}function Xi(i){let e,t,n,r,l,c,o,d,u,f,h,L,y,E,O,w,S,z,D,T,K,b=!1;l=new Di({}),h=new Nt({});let g=i[19]&&Bt(),m=i[5]!=="never"&&Ft(i);const C=i[62].default,Z=Xt(C,i,i[61],null),ee=[Ji,xi,Vi,Ki],ne=[];function F(_,P){var re,Ne;return _[18]?0:_[16]?((re=_[14])==null?void 0:re.length)===0?2:_[16]&&((Ne=_[14])!=null&&Ne.length)?3:-1:1}return~(w=F(i))&&(S=ne[w]=ee[w](i)),{c(){e=X(),t=R("form"),n=R("div"),r=R("button"),ge(l.$$.fragment),c=X(),o=R("input"),d=X(),u=R("div"),f=R("button"),ge(h.$$.fragment),L=X(),g&&g.c(),y=X(),m&&m.c(),E=X(),Z&&Z.c(),O=X(),S&&S.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(o,"placeholder",i[8]),a(o,"aria-label",i[8]),a(o,"class","svelte-bz0zu3"),a(f,"type","button"),a(f,"title",i[3]),a(f,"class","svelte-bz0zu3"),a(u,"class","clear-button-container svelte-bz0zu3"),me(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"tabindex","0"),a(t,"class",z=_t(i[2])+" svelte-bz0zu3"),me(t,"can-collapse",i[4]&&i[1]==="")},m(_,P){A(_,e,P),A(_,t,P),k(t,n),k(n,r),ce(l,r,null),k(n,c),k(n,o),i[64](o),yt(o,i[1]),k(n,d),k(n,u),k(u,f),ce(h,f,null),k(u,L),g&&g.m(u,null),k(n,y),m&&m.m(n,null),k(n,E),Z&&Z.m(n,null),k(t,O),~w&&ne[w].m(t,null),D=!0,T||(K=[J(r,"click",i[63]),J(o,"input",i[65]),J(o,"focus",i[66]),J(o,"blur",i[67]),J(o,"keydown",i[22]),J(o,"input",i[68]),J(f,"click",i[69]),J(t,"submit",ii(i[21]))],T=!0)},p(_,P){(!D||P[0]&256)&&a(o,"placeholder",_[8]),(!D||P[0]&256)&&a(o,"aria-label",_[8]),P[0]&2&&o.value!==_[1]&&yt(o,_[1]),(!D||P[0]&8)&&a(f,"title",_[3]),_[19]?g?P[0]&524288&&H(g,1):(g=Bt(),g.c(),H(g,1),g.m(u,null)):g&&(Fe(),Q(g,1,1,()=>{g=null}),je()),(!D||P[0]&2)&&me(u,"displayable",_[1]!==""),_[5]!=="never"?m?(m.p(_,P),P[0]&32&&H(m,1)):(m=Ft(_),m.c(),H(m,1),m.m(n,E)):m&&(Fe(),Q(m,1,1,()=>{m=null}),je()),Z&&Z.p&&(!D||P[1]&1073741824)&&$t(Z,C,_,_[61],D?Yt(C,_[61],P,null):ei(_[61]),null);let re=w;w=F(_),w===re?~w&&ne[w].p(_,P):(S&&(Fe(),Q(ne[re],1,1,()=>{ne[re]=null}),je()),~w?(S=ne[w],S?S.p(_,P):(S=ne[w]=ee[w](_),S.c()),H(S,1),S.m(t,null)):S=null),(!D||P[0]&4&&z!==(z=_t(_[2])+" svelte-bz0zu3"))&&a(t,"class",z),(!D||P[0]&22)&&me(t,"can-collapse",_[4]&&_[1]==="")},i(_){D||(H(b),H(l.$$.fragment,_),H(h.$$.fragment,_),H(g),H(m),H(Z,_),H(S),D=!0)},o(_){Q(b),Q(l.$$.fragment,_),Q(h.$$.fragment,_),Q(g),Q(m),Q(Z,_),Q(S),D=!1},d(_){_&&(I(e),I(t)),de(l),i[64](null),de(h),g&&g.d(),m&&m.d(),Z&&Z.d(_),~w&&ne[w].d(),T=!1,le(K)}}}function Yi(i,e,t){let n,{$$slots:r={},$$scope:l}=e;const c={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};let{class:o=void 0}=e,{apiKey:d}=e,{bbox:u=void 0}=e,{clearButtonTitle:f="clear"}=e,{clearOnBlur:h=!1}=e,{collapsed:L=!1}=e,{country:y=void 0}=e,{debounceSearch:E=200}=e,{reverse:O="never"}=e,{errorMessage:w="Something went wrong…"}=e,{filter:S=()=>!0}=e,{flyTo:z=!0}=e,{fuzzyMatch:D=!0}=e,{language:T=void 0}=e,{limit:K=void 0}=e,{mapController:b=void 0}=e,{minLength:g=2}=e,{noResultsMessage:m="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!"}=e,{placeholder:C="Search"}=e,{proximity:Z=[{type:"server-geolocation"}]}=e,{reverseActive:ee=O==="always"}=e,{reverseButtonTitle:ne="toggle reverse geocoding"}=e,{searchValue:F=""}=e,{pickedResultStyle:_="full-geometry"}=e,{showPlaceType:P="if-needed"}=e,{showResultsWhileTyping:re=!0}=e,{autocompleteTimeout:Ne=void 0}=e,{selectFirst:ke=!0}=e,{flyToSelected:it=!1}=e,{markerOnSelected:Pe=!0}=e,{types:we=void 0}=e,{exhaustiveReverseGeocoding:nt=!1}=e,{excludeTypes:Ze=!1}=e,{zoom:Ge=c}=e,{apiUrl:rt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:ot={}}=e,{iconsBaseUrl:Ht="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.3/icons/"}=e,{adjustUrlQuery:st=()=>{}}=e;function tn(){oe.focus()}function nn(){oe.blur()}function Pt(s,B=!0,q=!1){t(1,F=s),B?(t(15,U=-1),Gt()):(ut(!q,q),setTimeout(()=>{oe.focus(),oe.select()}))}function rn(){t(14,M=void 0),t(57,p=void 0),t(15,U=-1)}function on(){t(56,G=[]),t(57,p=void 0)}let Me=!1,M,G,p,Zt="",oe,U=-1,se,qe=[],Ee,he,te,Qe,at;const sn=new Set,be=si();function an(){return!!te}oi(()=>{b&&(b.setEventHandler(void 0),b.indicateReverse(!1),b.setSelectedMarker(-1),b.setMarkers(void 0,void 0))});function Gt(s){if(he&&(window.clearTimeout(he),he=void 0),te){window.clearTimeout(te),t(58,te=void 0),Ie(F,{exact:!0});return}if(U>-1&&M)t(57,p=M[U]),t(1,F=p.place_type[0]==="reverse"?p.place_name:p.place_name.replace(/,.*/,"")),t(18,se=void 0),t(56,G=void 0),t(15,U=-1);else if(F){const B=s||!lt(F);Ie(F,{exact:!0}).then(()=>{t(56,G=M),t(57,p=void 0),B&&ln()}).catch(q=>t(18,se=q))}}function lt(s){try{return Qi(s,6)}catch{return!1}}async function Ie(s,{byId:B=!1,exact:q=!1,appendSpace:ie=!1}={}){t(18,se=void 0),Ee==null||Ee.abort();const $=new AbortController;t(19,Ee=$);try{const N=lt(s),V=new URLSearchParams;if(T!==void 0&&V.set("language",Array.isArray(T)?T.join(","):T??""),we&&V.set("types",we.join(",")),Ze&&V.set("excludeTypes",String(Ze)),u&&V.set("bbox",u.map(Ve=>Ve.toFixed(6)).join(",")),y&&V.set("country",Array.isArray(y)?y.join(","):y),!B&&!N){const Ve=await Ii(b,Z,$);Ve&&V.set("proximity",Ve),(q||!re)&&V.set("autocomplete","false"),V.set("fuzzyMatch",String(D))}K!==void 0&&(nt||!N||(we==null?void 0:we.length)===1)&&V.set("limit",String(K)),V.set("key",d),st(V);const Ke=rt+"/"+encodeURIComponent(N?N.decimalLongitude+","+N.decimalLatitude:s+(ie?" ":""))+".json?"+V.toString();if(Ke===Zt){B?(t(14,M=void 0),t(57,p=qe[0])):t(14,M=qe);return}Zt=Ke;const dt=await fetch(Ke,{signal:$.signal,...ot});if(!dt.ok)throw new Error(await dt.text());const ft=await dt.json();be("response",{url:Ke,featureCollection:ft}),B?(t(14,M=void 0),t(57,p=ft.features[0]),qe=[p]):(t(14,M=ft.features.filter(S)),N&&M.unshift({type:"Feature",properties:{},id:"reverse_"+N.decimalLongitude+"_"+N.decimalLatitude,text:N.decimalLatitude+", "+N.decimalLongitude,place_name:N.decimalLatitude+", "+N.decimalLongitude,place_type:["reverse"],center:[N.decimalLongitude,N.decimalLatitude],bbox:[N.decimalLongitude,N.decimalLatitude,N.decimalLongitude,N.decimalLatitude],geometry:{type:"Point",coordinates:[N.decimalLongitude,N.decimalLatitude]}}),qe=M,N&&oe.focus())}catch(N){if(N&&typeof N=="object"&&"name"in N&&N.name==="AbortError")return;throw N}finally{$===Ee&&t(19,Ee=void 0)}}function ln(){var ie;if(!(G!=null&&G.length)||!z)return;const s=[180,90,-180,-90],B=!G.some($=>!$.matching_text);let q;for(const $ of G){const N=Ue($);if(q=q===void 0?N:N===void 0?q:Math.max(q,N),B||!$.matching_text)for(const V of[0,1,2,3])s[V]=Math[V<2?"min":"max"](s[V],((ie=$.bbox)==null?void 0:ie[V])??$.center[V%2])}b&&G.length>0&&(p&&s[0]===s[2]&&s[1]===s[3]?b.flyTo(p.center,Ue(p)):b.fitBounds(Ct(s),50,q))}function Ue(s){var q;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const B=s.id.replace(/\..*/,"");return(Array.isArray((q=s.properties)==null?void 0:q.categories)?s.properties.categories.reduce((ie,$)=>{const N=Ge[B+"."+$];return ie===void 0?N:N===void 0?ie:Math.max(ie,N)},void 0):void 0)??Ge[B]}function un(s){t(0,ee=O==="always"),t(14,M=void 0),t(57,p=void 0),t(15,U=-1),Pt(s[1].toFixed(6)+", "+Ri(s[0],[-180,180],!0).toFixed(6),!1,!0)}function cn(s){if(!M)return;let B=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;B&&(U===(ke?0:-1)&&B===-1&&t(15,U=M.length),t(15,U+=B),U>=M.length&&t(15,U=-1),U<0&&ke&&t(15,U=0),s.preventDefault())}function ut(s=!0,B=!1){if(t(18,se=void 0),he&&(window.clearTimeout(he),he=void 0),te&&(window.clearTimeout(te),t(58,te=void 0)),!re&&!B||F.length<g){t(14,M=void 0);return}const q=F;he=window.setTimeout(()=>{he=void 0,Ie(q).catch(ie=>t(18,se=ie))},s?E:0),F.endsWith(" ")||t(58,te=window.setTimeout(()=>{t(58,te=void 0),Ie(q,{appendSpace:!0}).catch(ie=>t(18,se=ie))},Ne))}function ct(s){t(57,p=s),t(1,F=s.place_name),t(15,U=-1)}const dn=()=>oe.focus();function fn(s){xe[s?"unshift":"push"](()=>{oe=s,t(17,oe)})}function mn(){F=this.value,t(1,F),t(13,Me),t(28,h)}const gn=()=>t(13,Me=!0),hn=()=>t(13,Me=!1),bn=()=>ut(),vn=()=>{t(1,F=""),oe.focus()},Ln=()=>t(0,ee=!ee),_n=()=>t(18,se=void 0),yn=s=>t(15,U=s),wn=s=>ct(s),En=()=>{ke||t(15,U=-1)},Sn=()=>{};return i.$$set=s=>{"class"in s&&t(2,o=s.class),"apiKey"in s&&t(26,d=s.apiKey),"bbox"in s&&t(27,u=s.bbox),"clearButtonTitle"in s&&t(3,f=s.clearButtonTitle),"clearOnBlur"in s&&t(28,h=s.clearOnBlur),"collapsed"in s&&t(4,L=s.collapsed),"country"in s&&t(29,y=s.country),"debounceSearch"in s&&t(30,E=s.debounceSearch),"reverse"in s&&t(5,O=s.reverse),"errorMessage"in s&&t(6,w=s.errorMessage),"filter"in s&&t(31,S=s.filter),"flyTo"in s&&t(32,z=s.flyTo),"fuzzyMatch"in s&&t(33,D=s.fuzzyMatch),"language"in s&&t(34,T=s.language),"limit"in s&&t(35,K=s.limit),"mapController"in s&&t(36,b=s.mapController),"minLength"in s&&t(37,g=s.minLength),"noResultsMessage"in s&&t(7,m=s.noResultsMessage),"placeholder"in s&&t(8,C=s.placeholder),"proximity"in s&&t(38,Z=s.proximity),"reverseActive"in s&&t(0,ee=s.reverseActive),"reverseButtonTitle"in s&&t(9,ne=s.reverseButtonTitle),"searchValue"in s&&t(1,F=s.searchValue),"pickedResultStyle"in s&&t(39,_=s.pickedResultStyle),"showPlaceType"in s&&t(10,P=s.showPlaceType),"showResultsWhileTyping"in s&&t(40,re=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(41,Ne=s.autocompleteTimeout),"selectFirst"in s&&t(11,ke=s.selectFirst),"flyToSelected"in s&&t(42,it=s.flyToSelected),"markerOnSelected"in s&&t(43,Pe=s.markerOnSelected),"types"in s&&t(44,we=s.types),"exhaustiveReverseGeocoding"in s&&t(45,nt=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(46,Ze=s.excludeTypes),"zoom"in s&&t(47,Ge=s.zoom),"apiUrl"in s&&t(48,rt=s.apiUrl),"fetchParameters"in s&&t(49,ot=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Ht=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(50,st=s.adjustUrlQuery),"$$scope"in s&&t(61,l=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&32&&t(0,ee=O==="always"),i.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,Qe=Me),h&&!Me&&t(1,F="")}),i.$$.dirty[0]&16386|i.$$.dirty[1]&64&&F.length<g&&(t(57,p=void 0),t(14,M=void 0),t(18,se=void 0),t(56,G=M)),i.$$.dirty[1]&67109120&&_!=="marker-only"&&p&&!p.address&&p.geometry.type==="Point"&&p.place_type[0]!=="reverse"&&Ie(p.id,{byId:!0}).catch(s=>t(18,se=s)),i.$$.dirty[1]&335544354&&(b&&p&&p.id!==at&&z&&(!p.bbox||p.bbox[0]===p.bbox[2]&&p.bbox[1]===p.bbox[3]?b.flyTo(p.center,Ue(p)):b.fitBounds(Ct(p.bbox),50,Ue(p)),t(14,M=void 0),t(56,G=void 0),t(15,U=-1)),t(59,at=p==null?void 0:p.id)),i.$$.dirty[0]&18432&&ke&&M!=null&&M.length&&(an()||t(15,U=0)),i.$$.dirty[0]&2&&t(15,U=-1),i.$$.dirty[0]&16384|i.$$.dirty[1]&33554432&&G!==M&&t(56,G=void 0),i.$$.dirty[0]&81921|i.$$.dirty[1]&33554464&&b&&b.setEventHandler(s=>{switch(s.type){case"mapClick":ee&&un(s.coordinates);break;case"markerClick":{const B=M==null?void 0:M.find(q=>q.id===s.id);B&&ct(B)}break;case"markerMouseEnter":G&&t(15,U=Qe?(M==null?void 0:M.findIndex(B=>B.id===s.id))??-1:-1);break;case"markerMouseLeave":G&&t(15,U=-1);break}}),i.$$.dirty[0]&49152&&t(60,n=M==null?void 0:M[U]),i.$$.dirty[1]&536872994&&b&&n&&z&&it&&b.flyTo(n.center,Ue(n)),i.$$.dirty[1]&4128&&(Pe||b==null||b.setMarkers(void 0,void 0)),i.$$.dirty[1]&570429472&&b&&Pe&&!G&&(b.setMarkers(n?[n]:void 0,void 0),b.setSelectedMarker(n?0:-1)),i.$$.dirty[1]&100663328&&b&&b.setMarkers(G,p),i.$$.dirty[0]&32768|i.$$.dirty[1]&33554464&&G&&b&&b.setSelectedMarker(U),i.$$.dirty[1]&671088640&&n&&(window.clearTimeout(te),t(58,te=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&32&&b){const s=lt(F);b.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[1]&536870912&&be("select",{feature:n}),i.$$.dirty[1]&67108864&&be("pick",{feature:p}),i.$$.dirty[0]&81920&&be("optionsvisibilitychange",{optionsVisible:Qe&&!!M}),i.$$.dirty[0]&16384&&be("featureslisted",{features:M}),i.$$.dirty[1]&33554432&&be("featuresmarked",{features:G}),i.$$.dirty[0]&1&&be("reversetoggle",{reverse:ee}),i.$$.dirty[0]&2&&be("querychange",{query:F}),i.$$.dirty[0]&1|i.$$.dirty[1]&32&&b&&b.indicateReverse(ee)},[ee,F,o,f,L,O,w,m,C,ne,P,ke,Ht,Me,M,U,Qe,oe,se,Ee,sn,Gt,cn,ut,ct,c,d,u,h,y,E,S,z,D,T,K,b,g,Z,_,re,Ne,it,Pe,we,nt,Ze,Ge,rt,ot,st,tn,nn,Pt,rn,on,G,p,te,at,n,l,r,dn,fn,mn,gn,hn,bn,vn,Ln,_n,yn,wn,En,Sn]}let $i=class extends ye{constructor(e){super(),_e(this,e,Yi,Xi,ve,{ZOOM_DEFAULTS:25,class:2,apiKey:26,bbox:27,clearButtonTitle:3,clearOnBlur:28,collapsed:4,country:29,debounceSearch:30,reverse:5,errorMessage:6,filter:31,flyTo:32,fuzzyMatch:33,language:34,limit:35,mapController:36,minLength:37,noResultsMessage:7,placeholder:8,proximity:38,reverseActive:0,reverseButtonTitle:9,searchValue:1,pickedResultStyle:39,showPlaceType:10,showResultsWhileTyping:40,autocompleteTimeout:41,selectFirst:11,flyToSelected:42,markerOnSelected:43,types:44,exhaustiveReverseGeocoding:45,excludeTypes:46,zoom:47,apiUrl:48,fetchParameters:49,iconsBaseUrl:12,adjustUrlQuery:50,focus:51,blur:52,setQuery:53,clearList:54,clearMap:55},null,[-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[25]}get focus(){return this.$$.ctx[51]}get blur(){return this.$$.ctx[52]}get setQuery(){return this.$$.ctx[53]}get clearList(){return this.$$.ctx[54]}get clearMap(){return this.$$.ctx[55]}};const en=new FinalizationRegistry(i=>{i.$destroy()}),tt=class tt extends EventTarget{constructor({target:t,...n}){super();ht(this,He);ht(this,Y);Qt(this,Y,new $i({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])ae(this,Y).$on(r,l=>{Kt(this,He,xt).call(this,r,l.detail)});ae(this,Y).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),en.register(this,ae(this,Y))}setOptions(t){ae(this,Y).$set(t)}setQuery(t,n=!0){var r;(r=ae(this,Y))==null||r.setQuery(t,n)}clearMap(){var t;(t=ae(this,Y))==null||t.clearMap()}clearList(){var t;(t=ae(this,Y))==null||t.clearList()}focus(){var t;(t=ae(this,Y))==null||t.focus()}blur(){var t;(t=ae(this,Y))==null||t.blur()}addEventListener(t,n,r){super.addEventListener(t,n,r)}removeEventListener(t,n,r){super.removeEventListener(t,n,r)}dispatchEvent(t){return super.dispatchEvent(t)}};Y=new WeakMap,He=new WeakSet,xt=function(t,n){return Vt(tt.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let et=tt;W.GeocodingControl=et,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}); | ||
//# sourceMappingURL=vanilla.umd.js.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
50018
8395118