@maptiler/geocoding-control 2.0.0-rc.9 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/leaflet.js +784 -799
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +1180 -1195
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +1155 -1170
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +1405 -1420
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +2 -2
- package/react.js +783 -798
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +21 -46
- package/svelte/GeocodingControl.svelte.d.ts +0 -1
- package/svelte/types.d.ts +0 -1
- package/types.d.ts +0 -1
- package/vanilla.js +590 -605
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/vanilla.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(C,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(C=typeof globalThis<"u"?globalThis:C||self,v(C.maptilerGeocoder={}))})(this,function(C){"use strict";var Tn=Object.defineProperty;var Nn=Object.getPrototypeOf;var kn=Reflect.get;var Qt=C=>{throw TypeError(C)};var Mn=(C,v,j)=>v in C?Tn(C,v,{enumerable:!0,configurable:!0,writable:!0,value:j}):C[v]=j;var gt=(C,v,j)=>Mn(C,typeof v!="symbol"?v+"":v,j),ht=(C,v,j)=>v.has(C)||Qt("Cannot "+j);var re=(C,v,j)=>(ht(C,v,"read from private field"),j?j.call(C):v.get(C)),bt=(C,v,j)=>v.has(C)?Qt("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(C):v.set(C,j),Kt=(C,v,j,Me)=>(ht(C,v,"write to private field"),Me?Me.call(C,j):v.set(C,j),j),Vt=(C,v,j)=>(ht(C,v,"access private method"),j);var xt=(C,v,j)=>kn(Nn(C),j,v);var Y,Pe,Jt;function v(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function Me(i){return i()}function vt(){return Object.create(null)}function oe(i){i.forEach(Me)}function Lt(i){return typeof i=="function"}function he(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 Xt(i){return Object.keys(i).length===0}function Yt(i,e,t,n){if(i){const r=_t(i,e,t,n);return i[0](r)}}function _t(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function $t(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=[],d=Math.max(e.dirty.length,r.length);for(let o=0;o<d;o+=1)l[o]=e.dirty[o]|r[o];return l}return e.dirty|r}return e.dirty}function ei(i,e,t,n,r,l){if(r){const d=_t(e,t,n,l);i.p(d,r)}}function ti(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 yt(i){return i??""}function T(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 z(i){return document.createElement(i)}function se(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ce(i){return document.createTextNode(i)}function X(){return ce(" ")}function ii(){return ce("")}function J(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ni(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 ri(i){return Array.from(i.childNodes)}function Ce(i,e){e=""+e,i.data!==e&&(i.data=e)}function wt(i,e){i.value=e??""}function de(i,e,t){i.classList.toggle(e,!!t)}function oi(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let We;function ze(i){We=i}function Et(){if(!We)throw new Error("Function called outside component initialization");return We}function si(i){Et().$$.on_destroy.push(i)}function ai(){const i=Et();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=oi(e,t,{cancelable:n});return r.slice().forEach(d=>{d.call(i,l)}),!l.defaultPrevented}return!0}}function pt(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Ee=[],xe=[];let pe=[];const St=[],li=Promise.resolve();let Je=!1;function ui(){Je||(Je=!0,li.then(Tt))}function Xe(i){pe.push(i)}const Ye=new Set;let Se=0;function Tt(){if(Se!==0)return;const i=We;do{try{for(;Se<Ee.length;){const e=Ee[Se];Se++,ze(e),ci(e.$$)}}catch(e){throw Ee.length=0,Se=0,e}for(ze(null),Ee.length=0,Se=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(Ee.length);for(;St.length;)St.pop()();Je=!1,Ye.clear(),ze(i)}function ci(i){if(i.fragment!==null){i.update(),oe(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xe)}}function di(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 be;function Fe(){be={r:0,c:[],p:be}}function je(){be.r||oe(be.c),be=be.p}function P(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),be.c.push(()=>{Be.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Nt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function fi(i,e){Q(i,1,1,()=>{e.delete(i.key)})}function mi(i,e,t,n,r,l,d,o,m,u,f,L){let b=i.length,w=l.length,y=b;const O={};for(;y--;)O[i[y].key]=y;const _=[],p=new Map,R=new Map,W=[];for(y=w;y--;){const c=L(r,l,y),g=t(c);let M=d.get(g);M?W.push(()=>M.p(c,e)):(M=u(g,c),M.c()),p.set(g,_[y]=M),g in O&&R.set(g,Math.abs(y-O[g]))}const N=new Set,H=new Set;function D(c){P(c,1),c.m(o,f),d.set(c.key,c),f=c.first,w--}for(;b&&w;){const c=_[w-1],g=i[b-1],M=c.key,q=g.key;c===g?(f=c.first,b--,w--):p.has(q)?!d.has(M)||N.has(M)?D(c):H.has(q)?b--:R.get(M)>R.get(q)?(H.add(M),D(c)):(N.add(q),b--):(m(g,d),b--)}for(;b--;){const c=i[b];p.has(c.key)||m(c,d)}for(;w;)D(_[w-1]);return oe(W),_}function fe(i){i&&i.c()}function ae(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),Xe(()=>{const l=i.$$.on_mount.map(Me).filter(Lt);i.$$.on_destroy?i.$$.on_destroy.push(...l):oe(l),i.$$.on_mount=[]}),r.forEach(Xe)}function le(i,e){const t=i.$$;t.fragment!==null&&(di(t.after_update),oe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function gi(i,e){i.$$.dirty[0]===-1&&(Ee.push(i),ui(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ve(i,e,t,n,r,l,d=null,o=[-1]){const m=We;ze(i);const u=i.$$={fragment:null,ctx:[],props:l,update:v,not_equal:r,bound:vt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(m?m.$$.context:[])),callbacks:vt(),dirty:o,skip_bound:!1,root:e.target||m.$$.root};d&&d(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(L,b,...w)=>{const y=w.length?w[0]:b;return u.ctx&&r(u.ctx[L],u.ctx[L]=y)&&(!u.skip_bound&&u.bound[L]&&u.bound[L](y),f&&gi(i,L)),b}):[],u.update(),f=!0,oe(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const L=ri(e.target);u.fragment&&u.fragment.l(L),L.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&P(i.$$.fragment),ae(i,e.target,e.anchor),Tt()}ze(m)}class Le{constructor(){gt(this,"$$");gt(this,"$$set")}$destroy(){le(this,1),this.$destroy=v}$on(e,t){if(!Lt(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&&!Xt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const hi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(hi);function bi(i){let e,t;return{c(){e=se("svg"),t=se("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),T(e,t)},p:v,i:v,o:v,d(n){n&&I(e)}}}class kt extends Le{constructor(e){super(),ve(this,e,null,bi,he,{})}}function vi(i){let e,t;return{c(){e=se("svg"),t=se("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),T(e,t)},p:v,i:v,o:v,d(n){n&&I(e)}}}class Mt extends Le{constructor(e){super(),ve(this,e,null,vi,he,{})}}function Li(i){let e,t;return{c(){e=z("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 _i(i){let e,t;return{c(){e=z("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 yi(i){let e,t;return{c(){e=z("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 wi(i){let e,t;return{c(){e=z("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 Ei(i){let e,t;return{c(){e=z("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 pi(i){let e,t;return{c(){e=z("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=z("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 Ti(i){let e,t,n,r;return{c(){e=z("img"),x(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"class","svelte-ltkwvy")},m(l,d){A(l,e,d),n||(r=J(e,"error",i[14]),n=!0)},p(l,d){d&32&&!x(e.src,t=l[5])&&a(e,"src",t),d&16&&a(e,"alt",l[4])},d(l){l&&I(e),n=!1,r()}}}function Ct(i){let e,t;return{c(){e=z("span"),t=ce(i[6]),a(e,"class","secondary svelte-ltkwvy")},m(n,r){A(n,e,r),T(e,t)},p(n,r){r&64&&Ce(t,n[6])},d(n){n&&I(e)}}}function Ni(i){let e,t,n,r,l,d,o,m,u,f=(i[7]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",L,b,w=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],y,O,_=(i[7]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",p,R,W;function N(g,M){return M&1&&(t=null),M&1&&(n=null),M&1&&(r=null),M&1&&(l=null),g[5]?Ti:g[0].address?Si:(t==null&&(t=!!g[0].id.startsWith("road.")),t?pi:(n==null&&(n=!!g[0].id.startsWith("address.")),n?Ei:(r==null&&(r=!!g[0].id.startsWith("postal_code.")),r?wi:(l==null&&(l=!!g[0].id.startsWith("poi.")),l?yi:g[7]?_i:Li))))}let H=N(i,-1),D=H(i),c=w&&Ct(i);return{c(){e=z("li"),D.c(),d=X(),o=z("span"),m=z("span"),u=z("span"),L=ce(f),b=X(),c&&c.c(),y=X(),O=z("span"),p=ce(_),a(u,"class","primary svelte-ltkwvy"),a(m,"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"),de(e,"selected",i[1])},m(g,M){A(g,e,M),D.m(e,null),T(e,d),T(e,o),T(o,m),T(m,u),T(u,L),T(m,b),c&&c.m(m,null),T(o,y),T(o,O),T(O,p),R||(W=[J(e,"mouseenter",i[12]),J(e,"focus",i[13])],R=!0)},p(g,[M]){H===(H=N(g,M))&&D?D.p(g,M):(D.d(1),D=H(g),D&&(D.c(),D.m(e,d))),M&1&&f!==(f=(g[7]?g[0].place_name:g[0].place_name.replace(/,.*/,""))+"")&&Ce(L,f),M&37&&(w=g[2]==="always"||g[2]!=="never"&&!g[0].address&&!g[0].id.startsWith("road.")&&!g[0].id.startsWith("address.")&&!g[0].id.startsWith("postal_code.")&&(!g[0].id.startsWith("poi.")||!g[5])&&!g[7]),w?c?c.p(g,M):(c=Ct(g),c.c(),c.m(m,null)):c&&(c.d(1),c=null),M&1&&_!==(_=(g[7]?"":g[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ce(p,_),M&2&&a(e,"data-selected",g[1]),M&2&&de(e,"selected",g[1])},i:v,o:v,d(g){g&&I(e),D.d(),c&&c.d(),R=!1,oe(W)}}}function ki(i,e,t){var W;let n,r,{feature:l}=e,{selected:d=!1}=e,{showPlaceType:o}=e,{missingIconsCache:m}=e,{iconsBaseUrl:u}=e;const f=(W=l.properties)==null?void 0:W.categories;let L,b,w=0,y=l.place_type[0]==="reverse";function O(){b&&m.add(b),t(10,w++,w)}function _(N){pt.call(this,i,N)}function p(N){pt.call(this,i,N)}const R=()=>O();return i.$$set=N=>{"feature"in N&&t(0,l=N.feature),"selected"in N&&t(1,d=N.selected),"showPlaceType"in N&&t(2,o=N.showPlaceType),"missingIconsCache"in N&&t(9,m=N.missingIconsCache),"iconsBaseUrl"in N&&t(3,u=N.iconsBaseUrl)},i.$$.update=()=>{var N,H,D,c;if(i.$$.dirty&3640)do t(11,n--,n),t(4,L=f==null?void 0:f[n]),t(5,b=L?u+L.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!b||m.has(b)));i.$$.dirty&1&&t(6,r=((H=(N=l.properties)==null?void 0:N.categories)==null?void 0:H.join(", "))??((c=(D=l.properties)==null?void 0:D.place_type_name)==null?void 0:c[0])??l.place_type[0])},t(11,n=(f==null?void 0:f.length)??0),[l,d,o,u,L,b,r,y,O,m,w,n,_,p,R]}class Mi extends Le{constructor(e){super(),ve(this,e,ki,Ni,he,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function Ci(i){let e;return{c(){e=z("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 Wi extends Le{constructor(e){super(),ve(this,e,null,Ci,he,{})}}function zi(i){let e,t;return{c(){e=se("svg"),t=se("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),T(e,t)},p:v,i:v,o:v,d(n){n&&I(e)}}}class Ri extends Le{constructor(e){super(),ve(this,e,null,zi,he,{})}}function Oi(i){let e,t,n;return{c(){e=se("svg"),t=se("circle"),n=se("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),T(e,t),T(e,n)},p:v,i:v,o:v,d(r){r&&I(e)}}}class Di extends Le{constructor(e){super(),ve(this,e,null,Oi,he,{})}}function Ii(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 Wt(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 Re;async function Ui(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(Re&&r.cachedLocationExpiry&&Re.time+r.cachedLocationExpiry>Date.now()){if(!Re.coords)break e;return Re.coords}let l;try{return l=await new Promise((d,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(m=>{d([m.coords.longitude,m.coords.latitude].map(u=>u.toFixed(6)).join(","))},m=>{o(m)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(Re={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 Ai=/^(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,zt=/^([+-]?[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,})$/,Rt=/^(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,It=/^(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 Bi(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(w=>Number(w.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),d=t>0?"N":"S",o=n>0?"E":"W";let m;i=="DD"&&(m=`${r}° ${d}, ${l}° ${o}`);const u=Math.floor(r),f=Math.floor(l),L=(r-u)*60,b=(l-f)*60;if(i=="DM"){let w=Ut(L,3).toFixed(3).padStart(6,"0"),y=Ut(b,3).toFixed(3).padStart(6,"0");w.endsWith(".000")&&y.endsWith(".000")&&(w=w.replace(/\.000$/,""),y=y.replace(/\.000$/,"")),m=`${u}° ${w}' ${d}, ${f}° ${y}' ${o}`}if(i=="DMS"){const w=Math.floor(L),y=Math.floor(b);let O=((L-w)*60).toFixed(1).padStart(4,"0"),_=((b-y)*60).toFixed(1).padStart(4,"0");const p=w.toString().padStart(2,"0"),R=y.toString().padStart(2,"0");O.endsWith(".0")&&_.endsWith(".0")&&(O=O.replace(/\.0$/,""),_=_.replace(/\.0$/,"")),m=`${u}° ${p}' ${O}" ${d}, ${f}° ${R}' ${_}" ${o}`}return m}else throw new Error("no decimal coordinates to convert")}function Ut(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="",d=null,o=[],m=!1;if(Ai.test(i))throw new Error("invalid coordinate value");if(zt.test(i))if(o=zt.exec(i),m=Oe(o),m)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),d="DM";else throw new Error("invalid coordinate format");else if(Rt.test(i))if(o=Rt.exec(i),m=Oe(o),m){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),d="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),m=Oe(o),m)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,d="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,d="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),m=Oe(o),m)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,d="DM"),o[6]&&(t+=o[6]/3600,d="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(It.test(i)){if(o=It.exec(i),m=Oe(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(m)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,d="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,d="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(m){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 L,b;const w=/[,/;\u0020]/g,y=f.match(w);if(y==null){const p=Math.floor(i.length/2);L=f.substring(0,p).trim(),b=f.substring(p).trim()}else{let p;y.length%2==1?p=Math.floor(y.length/2):p=y.length/2-1;let R=0;if(p==0)R=f.indexOf(y[0]),L=f.substring(0,R).trim(),b=f.substring(R+1).trim();else{let W=0,N=0;for(;W<=p;)R=f.indexOf(y[W],N),N=R+1,W++;L=f.substring(0,R).trim(),b=f.substring(R+1).trim()}}const O=L.split(".");if(O.length==2&&O[1]==0&&O[1].length!=2)throw new Error("invalid coordinates format");const _=b.split(".");if(_.length==2&&_[1]==0&&_[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(L)||/^\d+$/.test(b))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:L,verbatimLongitude:b,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:d,closeEnough:Fi,toCoordinateFormat:Bi})}else throw new Error("coordinates pattern match failed")}function Oe(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 d=e[l],o=e[l+r],m=t.test(d)&&t.test(o),u=n.test(d)&&n.test(o),f=d==o;if(!(d==null&&o==null)){if(d==null||o==null)return!1;if(m||u||f)continue;return!1}}return!0}function At(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Fi(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 At(this.decimalLatitude,Number(e[0]))&&At(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const ji=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});$e.to=ji;const Pi=[{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},Zi=[{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}],Gi=[{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 qi(){const i=[];return Pi.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Hi})}),[...i,...Zi,...Gi]}const Qi=qi();$e.formats=Qi.map(i=>i.verbatimCoordinates);const Ki=$e;function Bt(i,e,t){const n=i.slice();return n[87]=e[t],n[89]=t,n}function Ft(i){let e,t;return e=new Wi({}),{c(){fe(e.$$.fragment)},m(n,r){ae(e,n,r),t=!0},i(n){t||(P(e.$$.fragment,n),t=!0)},o(n){Q(e.$$.fragment,n),t=!1},d(n){le(e,n)}}}function jt(i){let e,t,n,r,l;return t=new Ri({}),{c(){e=z("button"),fe(t.$$.fragment),a(e,"type","button"),a(e,"title",i[9]),a(e,"class","svelte-bz0zu3"),de(e,"active",i[0])},m(d,o){A(d,e,o),ae(t,e,null),n=!0,r||(l=J(e,"click",i[71]),r=!0)},p(d,o){(!n||o[0]&512)&&a(e,"title",d[9]),(!n||o[0]&1)&&de(e,"active",d[0])},i(d){n||(P(t.$$.fragment,d),n=!0)},o(d){Q(t.$$.fragment,d),n=!1},d(d){d&&I(e),le(t),r=!1,l()}}}function Vi(i){let e,t=[],n=new Map,r,l,d,o=Nt(i[14]);const m=u=>u[87].id+(u[87].address?","+u[87].address:"");for(let u=0;u<o.length;u+=1){let f=Bt(i,o,u),L=m(f);n.set(L,t[u]=Pt(L,f))}return{c(){e=z("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 L=0;L<t.length;L+=1)t[L]&&t[L].m(e,null);r=!0,l||(d=[J(e,"mouseleave",i[75]),J(e,"blur",i[76])],l=!0)},p(u,f){f[0]&17880064&&(o=Nt(u[14]),Fe(),t=mi(t,f,m,1,u,o,n,e,fi,Pt,null,Bt),je())},i(u){if(!r){for(let f=0;f<o.length;f+=1)P(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,oe(d)}}}function xi(i){let e,t,n,r,l,d;return t=new Mt({}),{c(){e=z("div"),fe(t.$$.fragment),n=X(),r=z("div"),l=ce(i[7]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,m){A(o,e,m),ae(t,e,null),T(e,n),T(e,r),T(r,l),d=!0},p(o,m){(!d||m[0]&128)&&Ce(l,o[7])},i(o){d||(P(t.$$.fragment,o),d=!0)},o(o){Q(t.$$.fragment,o),d=!1},d(o){o&&I(e),le(t)}}}function Ji(i){let e="",t;return{c(){t=ce(e)},m(n,r){A(n,t,r)},p:v,i:v,o:v,d(n){n&&I(t)}}}function Xi(i){let e,t,n,r,l,d,o,m,u,f,L;return t=new Mt({}),m=new kt({}),{c(){e=z("div"),fe(t.$$.fragment),n=X(),r=z("div"),l=ce(i[6]),d=X(),o=z("button"),fe(m.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(b,w){A(b,e,w),ae(t,e,null),T(e,n),T(e,r),T(r,l),T(e,d),T(e,o),ae(m,o,null),u=!0,f||(L=J(o,"click",i[72]),f=!0)},p(b,w){(!u||w[0]&64)&&Ce(l,b[6])},i(b){u||(P(t.$$.fragment,b),P(m.$$.fragment,b),u=!0)},o(b){Q(t.$$.fragment,b),Q(m.$$.fragment,b),u=!1},d(b){b&&I(e),le(t),le(m),f=!1,L()}}}function Pt(i,e){let t,n,r;function l(){return e[73](e[89])}function d(){return e[74](e[87])}return n=new Mi({props:{feature:e[87],showPlaceType:e[10],selected:e[15]===e[89],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("focus",d),{key:i,first:null,c(){t=ii(),fe(n.$$.fragment),this.first=t},m(o,m){A(o,t,m),ae(n,o,m),r=!0},p(o,m){e=o;const u={};m[0]&16384&&(u.feature=e[87]),m[0]&1024&&(u.showPlaceType=e[10]),m[0]&49152&&(u.selected=e[15]===e[89]),m[0]&4096&&(u.iconsBaseUrl=e[12]),n.$set(u)},i(o){r||(P(n.$$.fragment,o),r=!0)},o(o){Q(n.$$.fragment,o),r=!1},d(o){o&&I(t),le(n,o)}}}function Yi(i){let e,t,n,r,l,d,o,m,u,f,L,b,w,y,O,_,p,R,W,N,H,D=!1;l=new Di({}),L=new kt({});let c=i[19]&&Ft(),g=i[5]==="button"&&jt(i);const M=i[63].default,q=Yt(M,i,i[62],null),Te=[Xi,Ji,xi,Vi],K=[];function De(h,B){var ue,_e;return h[18]?0:h[16]?((ue=h[14])==null?void 0:ue.length)===0?2:h[16]&&((_e=h[14])!=null&&_e.length)?3:-1:1}return~(_=De(i))&&(p=K[_]=Te[_](i)),{c(){e=X(),t=z("form"),n=z("div"),r=z("button"),fe(l.$$.fragment),d=X(),o=z("input"),m=X(),u=z("div"),f=z("button"),fe(L.$$.fragment),b=X(),c&&c.c(),w=X(),g&&g.c(),y=X(),q&&q.c(),O=X(),p&&p.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"),de(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"tabindex","0"),a(t,"class",R=yt(i[2])+" svelte-bz0zu3"),de(t,"can-collapse",i[4]&&i[1]==="")},m(h,B){A(h,e,B),A(h,t,B),T(t,n),T(n,r),ae(l,r,null),T(n,d),T(n,o),i[65](o),wt(o,i[1]),T(n,m),T(n,u),T(u,f),ae(L,f,null),T(u,b),c&&c.m(u,null),T(n,w),g&&g.m(n,null),T(n,y),q&&q.m(n,null),T(t,O),~_&&K[_].m(t,null),W=!0,N||(H=[J(r,"click",i[64]),J(o,"input",i[66]),J(o,"focus",i[67]),J(o,"blur",i[68]),J(o,"keydown",i[22]),J(o,"input",i[69]),J(f,"click",i[70]),J(t,"submit",ni(i[21]))],N=!0)},p(h,B){(!W||B[0]&256)&&a(o,"placeholder",h[8]),(!W||B[0]&256)&&a(o,"aria-label",h[8]),B[0]&2&&o.value!==h[1]&&wt(o,h[1]),(!W||B[0]&8)&&a(f,"title",h[3]),h[19]?c?B[0]&524288&&P(c,1):(c=Ft(),c.c(),P(c,1),c.m(u,null)):c&&(Fe(),Q(c,1,1,()=>{c=null}),je()),(!W||B[0]&2)&&de(u,"displayable",h[1]!==""),h[5]==="button"?g?(g.p(h,B),B[0]&32&&P(g,1)):(g=jt(h),g.c(),P(g,1),g.m(n,y)):g&&(Fe(),Q(g,1,1,()=>{g=null}),je()),q&&q.p&&(!W||B[2]&1)&&ei(q,M,h,h[62],W?$t(M,h[62],B,null):ti(h[62]),null);let ue=_;_=De(h),_===ue?~_&&K[_].p(h,B):(p&&(Fe(),Q(K[ue],1,1,()=>{K[ue]=null}),je()),~_?(p=K[_],p?p.p(h,B):(p=K[_]=Te[_](h),p.c()),P(p,1),p.m(t,null)):p=null),(!W||B[0]&4&&R!==(R=yt(h[2])+" svelte-bz0zu3"))&&a(t,"class",R),(!W||B[0]&22)&&de(t,"can-collapse",h[4]&&h[1]==="")},i(h){W||(P(D),P(l.$$.fragment,h),P(L.$$.fragment,h),P(c),P(g),P(q,h),P(p),W=!0)},o(h){Q(D),Q(l.$$.fragment,h),Q(L.$$.fragment,h),Q(c),Q(g),Q(q,h),Q(p),W=!1},d(h){h&&(I(e),I(t)),le(l),i[65](null),le(L),c&&c.d(),g&&g.d(),q&&q.d(h),~_&&K[_].d(),N=!1,oe(H)}}}function $i(i,e,t){let n,r,{$$slots:l={},$$scope:d}=e;const o={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:m=void 0}=e,{apiKey:u}=e,{bbox:f=void 0}=e,{clearButtonTitle:L="clear"}=e,{clearOnBlur:b=!1}=e,{collapsed:w=!1}=e,{country:y=void 0}=e,{debounceSearch:O=200}=e,{enableReverse:_="never"}=e,{errorMessage:p="Something went wrong…"}=e,{filter:R=()=>!0}=e,{flyTo:W=!0}=e,{fuzzyMatch:N=!0}=e,{language:H=void 0}=e,{limit:D=void 0}=e,{mapController:c=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:q="Search"}=e,{proximity:Te=[{type:"server-geolocation"}]}=e,{reverseActive:K=_==="always"}=e,{reverseButtonTitle:De="toggle reverse geocoding"}=e,{searchValue:h=""}=e,{pickedResultStyle:B="full-geometry"}=e,{showPlaceType:ue="if-needed"}=e,{showResultsWhileTyping:_e=!0}=e,{autocompleteTimeout:it=void 0}=e,{selectFirst:Ne=!0}=e,{flyToSelected:nt=!1}=e,{markerOnSelected:He=!0}=e,{types:ye=void 0}=e,{exhaustiveReverseGeocoding:rt=!1}=e,{excludeTypes:Ze=!1}=e,{zoom:Ge=o}=e,{apiUrl:ot="https://api.maptiler.com/geocoding"}=e,{fetchParameters:st={}}=e,{iconsBaseUrl:Ht="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.9/icons/"}=e,{adjustUrlQuery:at=()=>{}}=e;function nn(){ie.focus()}function rn(){ie.blur()}function Zt(s,F=!0,G=!1){t(1,h=s),F?(t(15,U=-1),qt()):(ct(!G,G),setTimeout(()=>{ie.focus(),ie.select()}))}function on(){t(14,k=void 0),t(57,E=void 0),t(15,U=-1)}function sn(){t(56,Z=[]),t(57,E=void 0)}let ke=!1,k,Z,E,Gt="",ie,U=-1,ne,qe=[],we,me,ee,Qe,lt;const an=new Set,ge=ai();function ln(){return!!ee}si(()=>{c&&(c.setEventHandler(void 0),c.indicateReverse(!1),c.setSelectedMarker(-1),c.setFeatures(void 0,void 0,!1))});function qt(s){if(me&&(window.clearTimeout(me),me=void 0),ee){window.clearTimeout(ee),t(58,ee=void 0),Ie(h,{appendSpace:!0});return}if(U>-1&&k)t(57,E=k[U]),t(1,h=E.place_type[0]==="reverse"?E.place_name:E.place_name.replace(/,.*/,"")),t(18,ne=void 0),t(56,Z=void 0),t(15,U=-1);else if(h){const F=s||!ut(h);Ie(h,{exact:!0}).then(()=>{t(56,Z=k),t(57,E=void 0),F&&un()}).catch(G=>t(18,ne=G))}}function ut(s){try{return Ki(s,6)}catch{return!1}}async function Ie(s,{byId:F=!1,exact:G=!1,appendSpace:te=!1}={}){t(18,ne=void 0),we==null||we.abort();const $=new AbortController;t(19,we=$);try{const S=ut(s),V=new URLSearchParams;if(H!==void 0&&V.set("language",Array.isArray(H)?H.join(","):H??""),ye&&V.set("types",ye.join(",")),Ze&&V.set("excludeTypes",String(Ze)),f&&V.set("bbox",f.map(Ve=>Ve.toFixed(6)).join(",")),y&&V.set("country",Array.isArray(y)?y.join(","):y),!F&&!S){const Ve=await Ui(c,Te,$);Ve&&V.set("proximity",Ve),(G||!_e)&&V.set("autocomplete","false"),V.set("fuzzyMatch",String(N))}D!==void 0&&(rt||!S||(ye==null?void 0:ye.length)===1)&&V.set("limit",String(D)),V.set("key",u),at(V);const Ke=ot+"/"+encodeURIComponent(S?S.decimalLongitude+","+S.decimalLatitude:s+(te?" ":""))+".json?"+V.toString();if(Ke===Gt){F?(t(14,k=void 0),t(57,E=qe[0])):t(14,k=qe);return}Gt=Ke;const ft=await fetch(Ke,{signal:$.signal,...st});if(!ft.ok)throw new Error(await ft.text());const mt=await ft.json();ge("response",{url:Ke,featureCollection:mt}),F?(t(14,k=void 0),t(57,E=mt.features[0]),qe=[E]):(t(14,k=mt.features.filter(R)),S&&k.unshift({type:"Feature",properties:{},id:"reverse_"+S.decimalLongitude+"_"+S.decimalLatitude,text:S.decimalLatitude+", "+S.decimalLongitude,place_name:S.decimalLatitude+", "+S.decimalLongitude,place_type:["reverse"],center:[S.decimalLongitude,S.decimalLatitude],bbox:[S.decimalLongitude,S.decimalLatitude,S.decimalLongitude,S.decimalLatitude],geometry:{type:"Point",coordinates:[S.decimalLongitude,S.decimalLatitude]}}),qe=k,S&&ie.focus())}catch(S){if(S&&typeof S=="object"&&"name"in S&&S.name==="AbortError")return;throw S}finally{$===we&&t(19,we=void 0)}}function un(){var te;if(!(Z!=null&&Z.length)||!W)return;const s=[180,90,-180,-90],F=!Z.some($=>!$.matching_text);let G;for(const $ of Z){const S=Ue($);if(G=G===void 0?S:S===void 0?G:Math.max(G,S),F||!$.matching_text)for(const V of[0,1,2,3])s[V]=Math[V<2?"min":"max"](s[V],((te=$.bbox)==null?void 0:te[V])??$.center[V%2])}c&&Z.length>0&&(E&&s[0]===s[2]&&s[1]===s[3]?c.flyTo(E.center,Ue(E)):c.fitBounds(Wt(s),50,G))}function Ue(s){var G;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const F=s.id.replace(/\..*/,"");return(Array.isArray((G=s.properties)==null?void 0:G.categories)?s.properties.categories.reduce((te,$)=>{const S=Ge[F+"."+$];return te===void 0?S:S===void 0?te:Math.max(te,S)},void 0):void 0)??Ge[F]}function cn(s){t(0,K=_==="always"),t(14,k=void 0),t(57,E=void 0),t(15,U=-1),Zt(s[1].toFixed(6)+", "+Ii(s[0],[-180,180],!0).toFixed(6),!1,!0)}function dn(s){if(!k)return;let F=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;F&&(U===(Ne?0:-1)&&F===-1&&t(15,U=k.length),t(15,U+=F),U>=k.length&&t(15,U=-1),U<0&&Ne&&t(15,U=0),s.preventDefault())}function ct(s=!0,F=!1){if(t(18,ne=void 0),me&&(window.clearTimeout(me),me=void 0),ee&&(window.clearTimeout(ee),t(58,ee=void 0)),!_e&&!F||h.length<g){t(14,k=void 0);return}const G=h;me=window.setTimeout(()=>{me=void 0,Ie(G).catch(te=>t(18,ne=te))},s?O:0),h.endsWith(" ")||t(58,ee=window.setTimeout(()=>{t(58,ee=void 0),Ie(G,{appendSpace:!0}).catch(te=>t(18,ne=te))},it))}function dt(s){t(57,E=s),t(1,h=s.place_name),t(15,U=-1)}const fn=()=>ie.focus();function mn(s){xe[s?"unshift":"push"](()=>{ie=s,t(17,ie)})}function gn(){h=this.value,t(1,h),t(13,ke),t(28,b)}const hn=()=>t(13,ke=!0),bn=()=>t(13,ke=!1),vn=()=>ct(),Ln=()=>{t(1,h=""),ie.focus()},_n=()=>t(0,K=!K),yn=()=>t(18,ne=void 0),wn=s=>t(15,U=s),En=s=>dt(s),pn=()=>{Ne||t(15,U=-1)},Sn=()=>{};return i.$$set=s=>{"class"in s&&t(2,m=s.class),"apiKey"in s&&t(26,u=s.apiKey),"bbox"in s&&t(27,f=s.bbox),"clearButtonTitle"in s&&t(3,L=s.clearButtonTitle),"clearOnBlur"in s&&t(28,b=s.clearOnBlur),"collapsed"in s&&t(4,w=s.collapsed),"country"in s&&t(29,y=s.country),"debounceSearch"in s&&t(30,O=s.debounceSearch),"enableReverse"in s&&t(5,_=s.enableReverse),"errorMessage"in s&&t(6,p=s.errorMessage),"filter"in s&&t(31,R=s.filter),"flyTo"in s&&t(32,W=s.flyTo),"fuzzyMatch"in s&&t(33,N=s.fuzzyMatch),"language"in s&&t(34,H=s.language),"limit"in s&&t(35,D=s.limit),"mapController"in s&&t(36,c=s.mapController),"minLength"in s&&t(37,g=s.minLength),"noResultsMessage"in s&&t(7,M=s.noResultsMessage),"placeholder"in s&&t(8,q=s.placeholder),"proximity"in s&&t(38,Te=s.proximity),"reverseActive"in s&&t(0,K=s.reverseActive),"reverseButtonTitle"in s&&t(9,De=s.reverseButtonTitle),"searchValue"in s&&t(1,h=s.searchValue),"pickedResultStyle"in s&&t(39,B=s.pickedResultStyle),"showPlaceType"in s&&t(10,ue=s.showPlaceType),"showResultsWhileTyping"in s&&t(40,_e=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(41,it=s.autocompleteTimeout),"selectFirst"in s&&t(11,Ne=s.selectFirst),"flyToSelected"in s&&t(42,nt=s.flyToSelected),"markerOnSelected"in s&&t(43,He=s.markerOnSelected),"types"in s&&t(44,ye=s.types),"exhaustiveReverseGeocoding"in s&&t(45,rt=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(46,Ze=s.excludeTypes),"zoom"in s&&t(47,Ge=s.zoom),"apiUrl"in s&&t(48,ot=s.apiUrl),"fetchParameters"in s&&t(49,st=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Ht=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(50,at=s.adjustUrlQuery),"$$scope"in s&&t(62,d=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&32&&t(0,K=_==="always"),i.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,Qe=ke),b&&!ke&&t(1,h="")}),i.$$.dirty[0]&16386|i.$$.dirty[1]&64&&h.length<g&&(t(57,E=void 0),t(14,k=void 0),t(18,ne=void 0),t(56,Z=k)),i.$$.dirty[1]&67109120&&B!=="marker-only"&&E&&!E.address&&E.geometry.type==="Point"&&E.place_type[0]!=="reverse"&&Ie(E.id,{byId:!0}).catch(s=>t(18,ne=s)),i.$$.dirty[1]&335544354&&(c&&E&&E.id!==lt&&W&&(!E.bbox||E.bbox[0]===E.bbox[2]&&E.bbox[1]===E.bbox[3]?c.flyTo(E.center,Ue(E)):c.fitBounds(Wt(E.bbox),50,Ue(E)),t(14,k=void 0),t(56,Z=void 0),t(15,U=-1)),t(59,lt=E==null?void 0:E.id)),i.$$.dirty[0]&18432&&Ne&&k!=null&&k.length&&(ln()||t(15,U=0)),i.$$.dirty[0]&2&&t(15,U=-1),i.$$.dirty[0]&16384|i.$$.dirty[1]&33554432&&Z!==k&&t(56,Z=void 0),i.$$.dirty[0]&81921|i.$$.dirty[1]&33554464&&c&&c.setEventHandler(s=>{switch(s.type){case"mapClick":K&&cn(s.coordinates);break;case"markerClick":{const F=k==null?void 0:k.find(G=>G.id===s.id);F&&dt(F)}break;case"markerMouseEnter":Z&&t(15,U=Qe?(k==null?void 0:k.findIndex(F=>F.id===s.id))??-1:-1);break;case"markerMouseLeave":Z&&t(15,U=-1);break}}),i.$$.dirty[0]&49152&&t(60,r=k==null?void 0:k[U]),i.$$.dirty[1]&536872994&&c&&r&&W&&nt&&c.flyTo(r.center,Ue(r)),i.$$.dirty[1]&256&&t(61,n=B==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&1073745952&&(He||c==null||c.setFeatures(void 0,void 0,n)),i.$$.dirty[1]&1644171296&&c&&He&&!Z&&(c.setFeatures(r?[r]:void 0,void 0,n),c.setSelectedMarker(r?0:-1)),i.$$.dirty[1]&1174405152&&c&&c.setFeatures(Z,E,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&33554464&&Z&&c&&c.setSelectedMarker(U),i.$$.dirty[1]&671088640&&r&&(window.clearTimeout(ee),t(58,ee=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&32&&c){const s=ut(h);c.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[1]&536870912&&ge("select",{feature:r}),i.$$.dirty[1]&67108864&&ge("pick",{feature:E}),i.$$.dirty[0]&81920&&ge("optionsvisibilitychange",{optionsVisible:Qe&&!!k}),i.$$.dirty[0]&16384&&ge("featureslisted",{features:k}),i.$$.dirty[1]&33554432&&ge("featuresmarked",{features:Z}),i.$$.dirty[0]&1&&ge("reversetoggle",{reverse:K}),i.$$.dirty[0]&2&&ge("querychange",{query:h}),i.$$.dirty[0]&1|i.$$.dirty[1]&32&&c&&c.indicateReverse(K)},[K,h,m,L,w,_,p,M,q,De,ue,Ne,Ht,ke,k,U,Qe,ie,ne,we,an,qt,dn,ct,dt,o,u,f,b,y,O,R,W,N,H,D,c,g,Te,B,_e,it,nt,He,ye,rt,Ze,Ge,ot,st,at,nn,rn,Zt,on,sn,Z,E,ee,lt,r,n,d,l,fn,mn,gn,hn,bn,vn,Ln,_n,yn,wn,En,pn,Sn]}let en=class extends Le{constructor(e){super(),ve(this,e,$i,Yi,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 tn=new FinalizationRegistry(i=>{i.$destroy()}),tt=class tt extends EventTarget{constructor({target:t,...n}){super();bt(this,Pe);bt(this,Y);Kt(this,Y,new en({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])re(this,Y).$on(r,l=>{Vt(this,Pe,Jt).call(this,r,l.detail)});re(this,Y).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),tn.register(this,re(this,Y))}setOptions(t){re(this,Y).$set(t)}setQuery(t,n=!0){var r;(r=re(this,Y))==null||r.setQuery(t,n)}clearMap(){var t;(t=re(this,Y))==null||t.clearMap()}clearList(){var t;(t=re(this,Y))==null||t.clearList()}focus(){var t;(t=re(this,Y))==null||t.focus()}blur(){var t;(t=re(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,Pe=new WeakSet,Jt=function(t,n){return xt(tt.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let et=tt;C.GeocodingControl=et,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(C,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(C=typeof globalThis<"u"?globalThis:C||self,v(C.maptilerGeocoder={}))})(this,function(C){"use strict";var wn=Object.defineProperty;var En=Object.getPrototypeOf;var Sn=Reflect.get;var Zt=C=>{throw TypeError(C)};var pn=(C,v,j)=>v in C?wn(C,v,{enumerable:!0,configurable:!0,writable:!0,value:j}):C[v]=j;var dt=(C,v,j)=>pn(C,typeof v!="symbol"?v+"":v,j),ft=(C,v,j)=>v.has(C)||Zt("Cannot "+j);var ne=(C,v,j)=>(ft(C,v,"read from private field"),j?j.call(C):v.get(C)),mt=(C,v,j)=>v.has(C)?Zt("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(C):v.set(C,j),Gt=(C,v,j,Te)=>(ft(C,v,"write to private field"),Te?Te.call(C,j):v.set(C,j),j),qt=(C,v,j)=>(ft(C,v,"access private method"),j);var Qt=(C,v,j)=>Sn(En(C),j,v);var Y,Fe,Kt;function v(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function Te(i){return i()}function gt(){return Object.create(null)}function re(i){i.forEach(Te)}function ht(i){return typeof i=="function"}function me(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ue;function x(i,e){return i===e?!0:(Ue||(Ue=document.createElement("a")),Ue.href=e,i===Ue.href)}function Vt(i){return Object.keys(i).length===0}function xt(i,e,t,n){if(i){const r=bt(i,e,t,n);return i[0](r)}}function bt(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function Jt(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=[],d=Math.max(e.dirty.length,r.length);for(let o=0;o<d;o+=1)l[o]=e.dirty[o]|r[o];return l}return e.dirty|r}return e.dirty}function Xt(i,e,t,n,r,l){if(r){const d=bt(e,t,n,l);i.p(d,r)}}function Yt(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 vt(i){return i??""}function N(i,e){i.appendChild(e)}function A(i,e,t){i.insertBefore(e,t||null)}function U(i){i.parentNode&&i.parentNode.removeChild(i)}function z(i){return document.createElement(i)}function oe(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ue(i){return document.createTextNode(i)}function X(){return ue(" ")}function $t(){return ue("")}function J(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ei(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 ti(i){return Array.from(i.childNodes)}function Me(i,e){e=""+e,i.data!==e&&(i.data=e)}function Lt(i,e){i.value=e??""}function ce(i,e,t){i.classList.toggle(e,!!t)}function ii(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Ce;function We(i){Ce=i}function _t(){if(!Ce)throw new Error("Function called outside component initialization");return Ce}function ni(i){_t().$$.on_destroy.push(i)}function ri(){const i=_t();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=ii(e,t,{cancelable:n});return r.slice().forEach(d=>{d.call(i,l)}),!l.defaultPrevented}return!0}}function yt(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const ye=[],Qe=[];let we=[];const wt=[],oi=Promise.resolve();let Ke=!1;function si(){Ke||(Ke=!0,oi.then(Et))}function Ve(i){we.push(i)}const xe=new Set;let Ee=0;function Et(){if(Ee!==0)return;const i=Ce;do{try{for(;Ee<ye.length;){const e=ye[Ee];Ee++,We(e),ai(e.$$)}}catch(e){throw ye.length=0,Ee=0,e}for(We(null),ye.length=0,Ee=0;Qe.length;)Qe.pop()();for(let e=0;e<we.length;e+=1){const t=we[e];xe.has(t)||(xe.add(t),t())}we.length=0}while(ye.length);for(;wt.length;)wt.pop()();Ke=!1,xe.clear(),We(i)}function ai(i){if(i.fragment!==null){i.update(),re(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ve)}}function li(i){const e=[],t=[];we.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),we=e}const Ie=new Set;let ge;function Ae(){ge={r:0,c:[],p:ge}}function Be(){ge.r||re(ge.c),ge=ge.p}function P(i,e){i&&i.i&&(Ie.delete(i),i.i(e))}function K(i,e,t,n){if(i&&i.o){if(Ie.has(i))return;Ie.add(i),ge.c.push(()=>{Ie.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function St(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function ui(i,e){K(i,1,1,()=>{e.delete(i.key)})}function ci(i,e,t,n,r,l,d,o,m,u,f,L){let b=i.length,w=l.length,y=b;const R={};for(;y--;)R[i[y].key]=y;const _=[],S=new Map,O=new Map,W=[];for(y=w;y--;){const c=L(r,l,y),g=t(c);let M=d.get(g);M?W.push(()=>M.p(c,e)):(M=u(g,c),M.c()),S.set(g,_[y]=M),g in R&&O.set(g,Math.abs(y-R[g]))}const k=new Set,H=new Set;function D(c){P(c,1),c.m(o,f),d.set(c.key,c),f=c.first,w--}for(;b&&w;){const c=_[w-1],g=i[b-1],M=c.key,q=g.key;c===g?(f=c.first,b--,w--):S.has(q)?!d.has(M)||k.has(M)?D(c):H.has(q)?b--:O.get(M)>O.get(q)?(H.add(M),D(c)):(k.add(q),b--):(m(g,d),b--)}for(;b--;){const c=i[b];S.has(c.key)||m(c,d)}for(;w;)D(_[w-1]);return re(W),_}function de(i){i&&i.c()}function se(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),Ve(()=>{const l=i.$$.on_mount.map(Te).filter(ht);i.$$.on_destroy?i.$$.on_destroy.push(...l):re(l),i.$$.on_mount=[]}),r.forEach(Ve)}function ae(i,e){const t=i.$$;t.fragment!==null&&(li(t.after_update),re(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function di(i,e){i.$$.dirty[0]===-1&&(ye.push(i),si(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function he(i,e,t,n,r,l,d=null,o=[-1]){const m=Ce;We(i);const u=i.$$={fragment:null,ctx:[],props:l,update:v,not_equal:r,bound:gt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(m?m.$$.context:[])),callbacks:gt(),dirty:o,skip_bound:!1,root:e.target||m.$$.root};d&&d(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(L,b,...w)=>{const y=w.length?w[0]:b;return u.ctx&&r(u.ctx[L],u.ctx[L]=y)&&(!u.skip_bound&&u.bound[L]&&u.bound[L](y),f&&di(i,L)),b}):[],u.update(),f=!0,re(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const L=ti(e.target);u.fragment&&u.fragment.l(L),L.forEach(U)}else u.fragment&&u.fragment.c();e.intro&&P(i.$$.fragment),se(i,e.target,e.anchor),Et()}We(m)}class be{constructor(){dt(this,"$$");dt(this,"$$set")}$destroy(){ae(this,1),this.$destroy=v}$on(e,t){if(!ht(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&&!Vt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const fi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fi);function mi(i){let e,t;return{c(){e=oe("svg"),t=oe("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),N(e,t)},p:v,i:v,o:v,d(n){n&&U(e)}}}class pt extends be{constructor(e){super(),he(this,e,null,mi,me,{})}}function gi(i){let e,t;return{c(){e=oe("svg"),t=oe("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),N(e,t)},p:v,i:v,o:v,d(n){n&&U(e)}}}class Nt extends be{constructor(e){super(),he(this,e,null,gi,me,{})}}function hi(i){let e,t;return{c(){e=z("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&&U(e)}}}function bi(i){let e,t;return{c(){e=z("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&&U(e)}}}function vi(i){let e,t;return{c(){e=z("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&&U(e)}}}function Li(i){let e,t;return{c(){e=z("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&&U(e)}}}function _i(i){let e,t;return{c(){e=z("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&&U(e)}}}function yi(i){let e,t;return{c(){e=z("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&&U(e)}}}function wi(i){let e,t;return{c(){e=z("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&&U(e)}}}function Ei(i){let e,t,n,r;return{c(){e=z("img"),x(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"class","svelte-ltkwvy")},m(l,d){A(l,e,d),n||(r=J(e,"error",i[14]),n=!0)},p(l,d){d&32&&!x(e.src,t=l[5])&&a(e,"src",t),d&16&&a(e,"alt",l[4])},d(l){l&&U(e),n=!1,r()}}}function kt(i){let e,t;return{c(){e=z("span"),t=ue(i[6]),a(e,"class","secondary svelte-ltkwvy")},m(n,r){A(n,e,r),N(e,t)},p(n,r){r&64&&Me(t,n[6])},d(n){n&&U(e)}}}function Si(i){let e,t,n,r,l,d,o,m,u,f=(i[7]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",L,b,w=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],y,R,_=(i[7]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,O,W;function k(g,M){return M&1&&(t=null),M&1&&(n=null),M&1&&(r=null),M&1&&(l=null),g[5]?Ei:g[0].address?wi:(t==null&&(t=!!g[0].id.startsWith("road.")),t?yi:(n==null&&(n=!!g[0].id.startsWith("address.")),n?_i:(r==null&&(r=!!g[0].id.startsWith("postal_code.")),r?Li:(l==null&&(l=!!g[0].id.startsWith("poi.")),l?vi:g[7]?bi:hi))))}let H=k(i,-1),D=H(i),c=w&&kt(i);return{c(){e=z("li"),D.c(),d=X(),o=z("span"),m=z("span"),u=z("span"),L=ue(f),b=X(),c&&c.c(),y=X(),R=z("span"),S=ue(_),a(u,"class","primary svelte-ltkwvy"),a(m,"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"),ce(e,"selected",i[1])},m(g,M){A(g,e,M),D.m(e,null),N(e,d),N(e,o),N(o,m),N(m,u),N(u,L),N(m,b),c&&c.m(m,null),N(o,y),N(o,R),N(R,S),O||(W=[J(e,"mouseenter",i[12]),J(e,"focus",i[13])],O=!0)},p(g,[M]){H===(H=k(g,M))&&D?D.p(g,M):(D.d(1),D=H(g),D&&(D.c(),D.m(e,d))),M&1&&f!==(f=(g[7]?g[0].place_name:g[0].place_name.replace(/,.*/,""))+"")&&Me(L,f),M&37&&(w=g[2]==="always"||g[2]!=="never"&&!g[0].address&&!g[0].id.startsWith("road.")&&!g[0].id.startsWith("address.")&&!g[0].id.startsWith("postal_code.")&&(!g[0].id.startsWith("poi.")||!g[5])&&!g[7]),w?c?c.p(g,M):(c=kt(g),c.c(),c.m(m,null)):c&&(c.d(1),c=null),M&1&&_!==(_=(g[7]?"":g[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Me(S,_),M&2&&a(e,"data-selected",g[1]),M&2&&ce(e,"selected",g[1])},i:v,o:v,d(g){g&&U(e),D.d(),c&&c.d(),O=!1,re(W)}}}function pi(i,e,t){var W;let n,r,{feature:l}=e,{selected:d=!1}=e,{showPlaceType:o}=e,{missingIconsCache:m}=e,{iconsBaseUrl:u}=e;const f=(W=l.properties)==null?void 0:W.categories;let L,b,w=0,y=l.place_type[0]==="reverse";function R(){b&&m.add(b),t(10,w++,w)}function _(k){yt.call(this,i,k)}function S(k){yt.call(this,i,k)}const O=()=>R();return i.$$set=k=>{"feature"in k&&t(0,l=k.feature),"selected"in k&&t(1,d=k.selected),"showPlaceType"in k&&t(2,o=k.showPlaceType),"missingIconsCache"in k&&t(9,m=k.missingIconsCache),"iconsBaseUrl"in k&&t(3,u=k.iconsBaseUrl)},i.$$.update=()=>{var k,H,D,c;if(i.$$.dirty&3640)do t(11,n--,n),t(4,L=f==null?void 0:f[n]),t(5,b=L?u+L.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!b||m.has(b)));i.$$.dirty&1&&t(6,r=((H=(k=l.properties)==null?void 0:k.categories)==null?void 0:H.join(", "))??((c=(D=l.properties)==null?void 0:D.place_type_name)==null?void 0:c[0])??l.place_type[0])},t(11,n=(f==null?void 0:f.length)??0),[l,d,o,u,L,b,r,y,R,m,w,n,_,S,O]}class Ni extends be{constructor(e){super(),he(this,e,pi,Si,me,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function ki(i){let e;return{c(){e=z("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&&U(e)}}}class Ti extends be{constructor(e){super(),he(this,e,null,ki,me,{})}}function Mi(i){let e,t;return{c(){e=oe("svg"),t=oe("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),N(e,t)},p:v,i:v,o:v,d(n){n&&U(e)}}}class Ci extends be{constructor(e){super(),he(this,e,null,Mi,me,{})}}function Wi(i){let e,t,n;return{c(){e=oe("svg"),t=oe("circle"),n=oe("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),N(e,t),N(e,n)},p:v,i:v,o:v,d(r){r&&U(e)}}}class zi extends be{constructor(e){super(),he(this,e,null,Wi,me,{})}}function Oi(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 Tt(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 ze;async function Ri(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(ze&&r.cachedLocationExpiry&&ze.time+r.cachedLocationExpiry>Date.now()){if(!ze.coords)break e;return ze.coords}let l;try{return l=await new Promise((d,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(m=>{d([m.coords.longitude,m.coords.latitude].map(u=>u.toFixed(6)).join(","))},m=>{o(m)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(ze={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 Di=/^(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,Mt=/^([+-]?[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,})$/,Ct=/^(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,Wt=/^(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,zt=/^(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,Ot=/^(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 Ui(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(w=>Number(w.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),d=t>0?"N":"S",o=n>0?"E":"W";let m;i=="DD"&&(m=`${r}° ${d}, ${l}° ${o}`);const u=Math.floor(r),f=Math.floor(l),L=(r-u)*60,b=(l-f)*60;if(i=="DM"){let w=Rt(L,3).toFixed(3).padStart(6,"0"),y=Rt(b,3).toFixed(3).padStart(6,"0");w.endsWith(".000")&&y.endsWith(".000")&&(w=w.replace(/\.000$/,""),y=y.replace(/\.000$/,"")),m=`${u}° ${w}' ${d}, ${f}° ${y}' ${o}`}if(i=="DMS"){const w=Math.floor(L),y=Math.floor(b);let R=((L-w)*60).toFixed(1).padStart(4,"0"),_=((b-y)*60).toFixed(1).padStart(4,"0");const S=w.toString().padStart(2,"0"),O=y.toString().padStart(2,"0");R.endsWith(".0")&&_.endsWith(".0")&&(R=R.replace(/\.0$/,""),_=_.replace(/\.0$/,"")),m=`${u}° ${S}' ${R}" ${d}, ${f}° ${O}' ${_}" ${o}`}return m}else throw new Error("no decimal coordinates to convert")}function Rt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function Je(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",d=null,o=[],m=!1;if(Di.test(i))throw new Error("invalid coordinate value");if(Mt.test(i))if(o=Mt.exec(i),m=Oe(o),m)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),d="DM";else throw new Error("invalid coordinate format");else if(Ct.test(i))if(o=Ct.exec(i),m=Oe(o),m){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),d="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(Wt.test(i))if(o=Wt.exec(i),m=Oe(o),m)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,d="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,d="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(zt.test(i))if(o=zt.exec(i),m=Oe(o),m)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,d="DM"),o[6]&&(t+=o[6]/3600,d="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(Ot.test(i)){if(o=Ot.exec(i),m=Oe(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(m)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,d="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,d="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(m){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 L,b;const w=/[,/;\u0020]/g,y=f.match(w);if(y==null){const S=Math.floor(i.length/2);L=f.substring(0,S).trim(),b=f.substring(S).trim()}else{let S;y.length%2==1?S=Math.floor(y.length/2):S=y.length/2-1;let O=0;if(S==0)O=f.indexOf(y[0]),L=f.substring(0,O).trim(),b=f.substring(O+1).trim();else{let W=0,k=0;for(;W<=S;)O=f.indexOf(y[W],k),k=O+1,W++;L=f.substring(0,O).trim(),b=f.substring(O+1).trim()}}const R=L.split(".");if(R.length==2&&R[1]==0&&R[1].length!=2)throw new Error("invalid coordinates format");const _=b.split(".");if(_.length==2&&_[1]==0&&_[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(L)||/^\d+$/.test(b))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:L,verbatimLongitude:b,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:d,closeEnough:Ii,toCoordinateFormat:Ui})}else throw new Error("coordinates pattern match failed")}function Oe(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 d=e[l],o=e[l+r],m=t.test(d)&&t.test(o),u=n.test(d)&&n.test(o),f=d==o;if(!(d==null&&o==null)){if(d==null||o==null)return!1;if(m||u||f)continue;return!1}}return!0}function Dt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Ii(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 Dt(this.decimalLatitude,Number(e[0]))&&Dt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Ai=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Je.to=Ai;const Bi=[{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"}],Fi={decimalLatitude:40.123,decimalLongitude:-74.123},ji=[{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}],Pi=[{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 Hi(){const i=[];return Bi.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Fi})}),[...i,...ji,...Pi]}const Zi=Hi();Je.formats=Zi.map(i=>i.verbatimCoordinates);const Gi=Je;function Ut(i,e,t){const n=i.slice();return n[84]=e[t],n[86]=t,n}function It(i){let e,t;return e=new Ti({}),{c(){de(e.$$.fragment)},m(n,r){se(e,n,r),t=!0},i(n){t||(P(e.$$.fragment,n),t=!0)},o(n){K(e.$$.fragment,n),t=!1},d(n){ae(e,n)}}}function At(i){let e,t,n,r,l;return t=new Ci({}),{c(){e=z("button"),de(t.$$.fragment),a(e,"type","button"),a(e,"title",i[9]),a(e,"class","svelte-bz0zu3"),ce(e,"active",i[0])},m(d,o){A(d,e,o),se(t,e,null),n=!0,r||(l=J(e,"click",i[69]),r=!0)},p(d,o){(!n||o[0]&512)&&a(e,"title",d[9]),(!n||o[0]&1)&&ce(e,"active",d[0])},i(d){n||(P(t.$$.fragment,d),n=!0)},o(d){K(t.$$.fragment,d),n=!1},d(d){d&&U(e),ae(t),r=!1,l()}}}function qi(i){let e,t=[],n=new Map,r,l,d,o=St(i[14]);const m=u=>u[84].id+(u[84].address?","+u[84].address:"");for(let u=0;u<o.length;u+=1){let f=Ut(i,o,u),L=m(f);n.set(L,t[u]=Bt(L,f))}return{c(){e=z("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 L=0;L<t.length;L+=1)t[L]&&t[L].m(e,null);r=!0,l||(d=[J(e,"mouseleave",i[73]),J(e,"blur",i[74])],l=!0)},p(u,f){f[0]&17880064&&(o=St(u[14]),Ae(),t=ci(t,f,m,1,u,o,n,e,ui,Bt,null,Ut),Be())},i(u){if(!r){for(let f=0;f<o.length;f+=1)P(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)K(t[f]);r=!1},d(u){u&&U(e);for(let f=0;f<t.length;f+=1)t[f].d();l=!1,re(d)}}}function Qi(i){let e,t,n,r,l,d;return t=new Nt({}),{c(){e=z("div"),de(t.$$.fragment),n=X(),r=z("div"),l=ue(i[7]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,m){A(o,e,m),se(t,e,null),N(e,n),N(e,r),N(r,l),d=!0},p(o,m){(!d||m[0]&128)&&Me(l,o[7])},i(o){d||(P(t.$$.fragment,o),d=!0)},o(o){K(t.$$.fragment,o),d=!1},d(o){o&&U(e),ae(t)}}}function Ki(i){let e="",t;return{c(){t=ue(e)},m(n,r){A(n,t,r)},p:v,i:v,o:v,d(n){n&&U(t)}}}function Vi(i){let e,t,n,r,l,d,o,m,u,f,L;return t=new Nt({}),m=new pt({}),{c(){e=z("div"),de(t.$$.fragment),n=X(),r=z("div"),l=ue(i[6]),d=X(),o=z("button"),de(m.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(b,w){A(b,e,w),se(t,e,null),N(e,n),N(e,r),N(r,l),N(e,d),N(e,o),se(m,o,null),u=!0,f||(L=J(o,"click",i[70]),f=!0)},p(b,w){(!u||w[0]&64)&&Me(l,b[6])},i(b){u||(P(t.$$.fragment,b),P(m.$$.fragment,b),u=!0)},o(b){K(t.$$.fragment,b),K(m.$$.fragment,b),u=!1},d(b){b&&U(e),ae(t),ae(m),f=!1,L()}}}function Bt(i,e){let t,n,r;function l(){return e[71](e[86])}function d(){return e[72](e[84])}return n=new Ni({props:{feature:e[84],showPlaceType:e[10],selected:e[15]===e[86],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("focus",d),{key:i,first:null,c(){t=$t(),de(n.$$.fragment),this.first=t},m(o,m){A(o,t,m),se(n,o,m),r=!0},p(o,m){e=o;const u={};m[0]&16384&&(u.feature=e[84]),m[0]&1024&&(u.showPlaceType=e[10]),m[0]&49152&&(u.selected=e[15]===e[86]),m[0]&4096&&(u.iconsBaseUrl=e[12]),n.$set(u)},i(o){r||(P(n.$$.fragment,o),r=!0)},o(o){K(n.$$.fragment,o),r=!1},d(o){o&&U(t),ae(n,o)}}}function xi(i){let e,t,n,r,l,d,o,m,u,f,L,b,w,y,R,_,S,O,W,k,H,D=!1;l=new zi({}),L=new pt({});let c=i[19]&&It(),g=i[5]==="button"&&At(i);const M=i[61].default,q=xt(M,i,i[60],null),Se=[Vi,Ki,Qi,qi],V=[];function Re(h,B){var le,ve;return h[18]?0:h[16]?((le=h[14])==null?void 0:le.length)===0?2:h[16]&&((ve=h[14])!=null&&ve.length)?3:-1:1}return~(_=Re(i))&&(S=V[_]=Se[_](i)),{c(){e=X(),t=z("form"),n=z("div"),r=z("button"),de(l.$$.fragment),d=X(),o=z("input"),m=X(),u=z("div"),f=z("button"),de(L.$$.fragment),b=X(),c&&c.c(),w=X(),g&&g.c(),y=X(),q&&q.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"),ce(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"tabindex","0"),a(t,"class",O=vt(i[2])+" svelte-bz0zu3"),ce(t,"can-collapse",i[4]&&i[1]==="")},m(h,B){A(h,e,B),A(h,t,B),N(t,n),N(n,r),se(l,r,null),N(n,d),N(n,o),i[63](o),Lt(o,i[1]),N(n,m),N(n,u),N(u,f),se(L,f,null),N(u,b),c&&c.m(u,null),N(n,w),g&&g.m(n,null),N(n,y),q&&q.m(n,null),N(t,R),~_&&V[_].m(t,null),W=!0,k||(H=[J(r,"click",i[62]),J(o,"input",i[64]),J(o,"focus",i[65]),J(o,"blur",i[66]),J(o,"keydown",i[22]),J(o,"input",i[67]),J(f,"click",i[68]),J(t,"submit",ei(i[21]))],k=!0)},p(h,B){(!W||B[0]&256)&&a(o,"placeholder",h[8]),(!W||B[0]&256)&&a(o,"aria-label",h[8]),B[0]&2&&o.value!==h[1]&&Lt(o,h[1]),(!W||B[0]&8)&&a(f,"title",h[3]),h[19]?c?B[0]&524288&&P(c,1):(c=It(),c.c(),P(c,1),c.m(u,null)):c&&(Ae(),K(c,1,1,()=>{c=null}),Be()),(!W||B[0]&2)&&ce(u,"displayable",h[1]!==""),h[5]==="button"?g?(g.p(h,B),B[0]&32&&P(g,1)):(g=At(h),g.c(),P(g,1),g.m(n,y)):g&&(Ae(),K(g,1,1,()=>{g=null}),Be()),q&&q.p&&(!W||B[1]&536870912)&&Xt(q,M,h,h[60],W?Jt(M,h[60],B,null):Yt(h[60]),null);let le=_;_=Re(h),_===le?~_&&V[_].p(h,B):(S&&(Ae(),K(V[le],1,1,()=>{V[le]=null}),Be()),~_?(S=V[_],S?S.p(h,B):(S=V[_]=Se[_](h),S.c()),P(S,1),S.m(t,null)):S=null),(!W||B[0]&4&&O!==(O=vt(h[2])+" svelte-bz0zu3"))&&a(t,"class",O),(!W||B[0]&22)&&ce(t,"can-collapse",h[4]&&h[1]==="")},i(h){W||(P(D),P(l.$$.fragment,h),P(L.$$.fragment,h),P(c),P(g),P(q,h),P(S),W=!0)},o(h){K(D),K(l.$$.fragment,h),K(L.$$.fragment,h),K(c),K(g),K(q,h),K(S),W=!1},d(h){h&&(U(e),U(t)),ae(l),i[63](null),ae(L),c&&c.d(),g&&g.d(),q&&q.d(h),~_&&V[_].d(),k=!1,re(H)}}}function Ji(i,e,t){let n,r,{$$slots:l={},$$scope:d}=e;const o={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:m=void 0}=e,{apiKey:u}=e,{bbox:f=void 0}=e,{clearButtonTitle:L="clear"}=e,{clearOnBlur:b=!1}=e,{collapsed:w=!1}=e,{country:y=void 0}=e,{debounceSearch:R=200}=e,{enableReverse:_="never"}=e,{errorMessage:S="Something went wrong…"}=e,{filter:O=()=>!0}=e,{flyTo:W=!0}=e,{fuzzyMatch:k=!0}=e,{language:H=void 0}=e,{limit:D=void 0}=e,{mapController:c=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:q="Search"}=e,{proximity:Se=[{type:"server-geolocation"}]}=e,{reverseActive:V=_==="always"}=e,{reverseButtonTitle:Re="toggle reverse geocoding"}=e,{searchValue:h=""}=e,{pickedResultStyle:B="full-geometry"}=e,{showPlaceType:le="if-needed"}=e,{showResultsWhileTyping:ve=!0}=e,{selectFirst:pe=!0}=e,{flyToSelected:$e=!1}=e,{markerOnSelected:je=!0}=e,{types:Le=void 0}=e,{exhaustiveReverseGeocoding:et=!1}=e,{excludeTypes:Pe=!1}=e,{zoom:He=o}=e,{apiUrl:tt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:it={}}=e,{iconsBaseUrl:Ft="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.1/icons/"}=e,{adjustUrlQuery:nt=()=>{}}=e;function $i(){ee.focus()}function en(){ee.blur()}function jt(s,F=!0,Q=!1){t(1,h=s),F?(t(15,I=-1),Ht()):(at(!Q,Q),setTimeout(()=>{ee.focus(),ee.select()}))}function tn(){t(14,T=void 0),t(56,E=void 0),t(15,I=-1)}function nn(){t(55,Z=[]),t(56,E=void 0)}let Ne=!1,T,Z,E,Pt="",ee,I=-1,te,Ze=[],_e,ke,Ge,rt;const rn=new Set,fe=ri();ni(()=>{c&&(c.setEventHandler(void 0),c.indicateReverse(!1),c.setSelectedMarker(-1),c.setFeatures(void 0,void 0,!1))});function Ht(s){if(ke&&(clearTimeout(ke),ke=void 0),I>-1&&T)t(56,E=T[I]),t(1,h=E.place_type[0]==="reverse"?E.place_name:E.place_name.replace(/,.*/,"")),t(18,te=void 0),t(55,Z=void 0),t(15,I=-1);else if(h){const F=s||!ot(h);st(h,{exact:!0}).then(()=>{t(55,Z=T),t(56,E=void 0),F&&on()}).catch(Q=>t(18,te=Q))}}function ot(s){try{return Gi(s,6)}catch{return!1}}async function st(s,{byId:F=!1,exact:Q=!1}={}){t(18,te=void 0),_e==null||_e.abort();const $=new AbortController;t(19,_e=$);try{const p=ot(s),G=new URLSearchParams;if(H!==void 0&&G.set("language",Array.isArray(H)?H.join(","):H??""),Le&&G.set("types",Le.join(",")),Pe&&G.set("excludeTypes",String(Pe)),f&&G.set("bbox",f.map(qe=>qe.toFixed(6)).join(",")),y&&G.set("country",Array.isArray(y)?y.join(","):y),!F&&!p){const qe=await Ri(c,Se,$);qe&&G.set("proximity",qe),(Q||!ve)&&G.set("autocomplete","false"),G.set("fuzzyMatch",String(k))}D!==void 0&&(et||!p||(Le==null?void 0:Le.length)===1)&&G.set("limit",String(D)),G.set("key",u),nt(G);const ie=tt+"/"+encodeURIComponent(p?p.decimalLongitude+","+p.decimalLatitude:s)+".json?"+G.toString();if(ie===Pt){F?(t(14,T=void 0),t(56,E=Ze[0])):t(14,T=Ze);return}Pt=ie;const ut=await fetch(ie,{signal:$.signal,...it});if(!ut.ok)throw new Error(await ut.text());const ct=await ut.json();fe("response",{url:ie,featureCollection:ct}),F?(t(14,T=void 0),t(56,E=ct.features[0]),Ze=[E]):(t(14,T=ct.features.filter(O)),p&&T.unshift({type:"Feature",properties:{},id:"reverse_"+p.decimalLongitude+"_"+p.decimalLatitude,text:p.decimalLatitude+", "+p.decimalLongitude,place_name:p.decimalLatitude+", "+p.decimalLongitude,place_type:["reverse"],center:[p.decimalLongitude,p.decimalLatitude],bbox:[p.decimalLongitude,p.decimalLatitude,p.decimalLongitude,p.decimalLatitude],geometry:{type:"Point",coordinates:[p.decimalLongitude,p.decimalLatitude]}}),Ze=T,p&&ee.focus())}catch(p){if(p&&typeof p=="object"&&"name"in p&&p.name==="AbortError")return;throw p}finally{$===_e&&t(19,_e=void 0)}}function on(){var $;if(!(Z!=null&&Z.length)||!W)return;const s=[180,90,-180,-90],F=!Z.some(p=>!p.matching_text);let Q;for(const p of Z){const G=De(p);if(Q=Q===void 0?G:G===void 0?Q:Math.max(Q,G),F||!p.matching_text)for(const ie of[0,1,2,3])s[ie]=Math[ie<2?"min":"max"](s[ie],(($=p.bbox)==null?void 0:$[ie])??p.center[ie%2])}c&&Z.length>0&&(E&&s[0]===s[2]&&s[1]===s[3]?c.flyTo(E.center,De(E)):c.fitBounds(Tt(s),50,Q))}function De(s){var Q;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const F=s.id.replace(/\..*/,"");return(Array.isArray((Q=s.properties)==null?void 0:Q.categories)?s.properties.categories.reduce(($,p)=>{const G=He[F+"."+p];return $===void 0?G:G===void 0?$:Math.max($,G)},void 0):void 0)??He[F]}function sn(s){t(0,V=_==="always"),t(14,T=void 0),t(56,E=void 0),t(15,I=-1),jt(s[1].toFixed(6)+", "+Oi(s[0],[-180,180],!0).toFixed(6),!1,!0)}function an(s){if(!T)return;let F=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;F&&(I===(pe?0:-1)&&F===-1&&t(15,I=T.length),t(15,I+=F),I>=T.length&&t(15,I=-1),I<0&&pe&&t(15,I=0),s.preventDefault())}function at(s=!0,F=!1){if(t(18,te=void 0),ve||F){if(ke&&clearTimeout(ke),h.length<g)return;const Q=h;ke=window.setTimeout(()=>{st(Q).catch($=>t(18,te=$))},s?R:0)}else t(14,T=void 0),t(18,te=void 0)}function lt(s){t(56,E=s),t(1,h=s.place_name),t(15,I=-1)}const ln=()=>ee.focus();function un(s){Qe[s?"unshift":"push"](()=>{ee=s,t(17,ee)})}function cn(){h=this.value,t(1,h),t(13,Ne),t(28,b)}const dn=()=>t(13,Ne=!0),fn=()=>t(13,Ne=!1),mn=()=>at(),gn=()=>{t(1,h=""),ee.focus()},hn=()=>t(0,V=!V),bn=()=>t(18,te=void 0),vn=s=>t(15,I=s),Ln=s=>lt(s),_n=()=>{pe||t(15,I=-1)},yn=()=>{};return i.$$set=s=>{"class"in s&&t(2,m=s.class),"apiKey"in s&&t(26,u=s.apiKey),"bbox"in s&&t(27,f=s.bbox),"clearButtonTitle"in s&&t(3,L=s.clearButtonTitle),"clearOnBlur"in s&&t(28,b=s.clearOnBlur),"collapsed"in s&&t(4,w=s.collapsed),"country"in s&&t(29,y=s.country),"debounceSearch"in s&&t(30,R=s.debounceSearch),"enableReverse"in s&&t(5,_=s.enableReverse),"errorMessage"in s&&t(6,S=s.errorMessage),"filter"in s&&t(31,O=s.filter),"flyTo"in s&&t(32,W=s.flyTo),"fuzzyMatch"in s&&t(33,k=s.fuzzyMatch),"language"in s&&t(34,H=s.language),"limit"in s&&t(35,D=s.limit),"mapController"in s&&t(36,c=s.mapController),"minLength"in s&&t(37,g=s.minLength),"noResultsMessage"in s&&t(7,M=s.noResultsMessage),"placeholder"in s&&t(8,q=s.placeholder),"proximity"in s&&t(38,Se=s.proximity),"reverseActive"in s&&t(0,V=s.reverseActive),"reverseButtonTitle"in s&&t(9,Re=s.reverseButtonTitle),"searchValue"in s&&t(1,h=s.searchValue),"pickedResultStyle"in s&&t(39,B=s.pickedResultStyle),"showPlaceType"in s&&t(10,le=s.showPlaceType),"showResultsWhileTyping"in s&&t(40,ve=s.showResultsWhileTyping),"selectFirst"in s&&t(11,pe=s.selectFirst),"flyToSelected"in s&&t(41,$e=s.flyToSelected),"markerOnSelected"in s&&t(42,je=s.markerOnSelected),"types"in s&&t(43,Le=s.types),"exhaustiveReverseGeocoding"in s&&t(44,et=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(45,Pe=s.excludeTypes),"zoom"in s&&t(46,He=s.zoom),"apiUrl"in s&&t(47,tt=s.apiUrl),"fetchParameters"in s&&t(48,it=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Ft=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(49,nt=s.adjustUrlQuery),"$$scope"in s&&t(60,d=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&32&&t(0,V=_==="always"),i.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,Ge=Ne),b&&!Ne&&t(1,h="")}),i.$$.dirty[0]&16386|i.$$.dirty[1]&64&&h.length<g&&(t(56,E=void 0),t(14,T=void 0),t(18,te=void 0),t(55,Z=T)),i.$$.dirty[1]&33554688&&B!=="marker-only"&&E&&!E.address&&E.geometry.type==="Point"&&E.place_type[0]!=="reverse"&&st(E.id,{byId:!0}).catch(s=>t(18,te=s)),i.$$.dirty[1]&100663330&&(c&&E&&E.id!==rt&&W&&(!E.bbox||E.bbox[0]===E.bbox[2]&&E.bbox[1]===E.bbox[3]?c.flyTo(E.center,De(E)):c.fitBounds(Tt(E.bbox),50,De(E)),t(14,T=void 0),t(55,Z=void 0),t(15,I=-1)),t(57,rt=E==null?void 0:E.id)),i.$$.dirty[0]&18432&&pe&&T!=null&&T.length&&t(15,I=0),i.$$.dirty[0]&2&&t(15,I=-1),i.$$.dirty[0]&16384|i.$$.dirty[1]&16777216&&Z!==T&&t(55,Z=void 0),i.$$.dirty[0]&81921|i.$$.dirty[1]&16777248&&c&&c.setEventHandler(s=>{switch(s.type){case"mapClick":V&&sn(s.coordinates);break;case"markerClick":{const F=T==null?void 0:T.find(Q=>Q.id===s.id);F&<(F)}break;case"markerMouseEnter":Z&&t(15,I=Ge?(T==null?void 0:T.findIndex(F=>F.id===s.id))??-1:-1);break;case"markerMouseLeave":Z&&t(15,I=-1);break}}),i.$$.dirty[0]&49152&&t(58,r=T==null?void 0:T[I]),i.$$.dirty[1]&134218786&&c&&r&&W&&$e&&c.flyTo(r.center,De(r)),i.$$.dirty[1]&256&&t(59,n=B==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&268437536&&(je||c==null||c.setFeatures(void 0,void 0,n)),i.$$.dirty[1]&419432480&&c&&je&&!Z&&(c.setFeatures(r?[r]:void 0,void 0,n),c.setSelectedMarker(r?0:-1)),i.$$.dirty[1]&318767136&&c&&c.setFeatures(Z,E,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&16777248&&Z&&c&&c.setSelectedMarker(I),i.$$.dirty[0]&2|i.$$.dirty[1]&32&&c){const s=ot(h);c.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[1]&134217728&&fe("select",{feature:r}),i.$$.dirty[1]&33554432&&fe("pick",{feature:E}),i.$$.dirty[0]&81920&&fe("optionsvisibilitychange",{optionsVisible:Ge&&!!T}),i.$$.dirty[0]&16384&&fe("featureslisted",{features:T}),i.$$.dirty[1]&16777216&&fe("featuresmarked",{features:Z}),i.$$.dirty[0]&1&&fe("reversetoggle",{reverse:V}),i.$$.dirty[0]&2&&fe("querychange",{query:h}),i.$$.dirty[0]&1|i.$$.dirty[1]&32&&c&&c.indicateReverse(V)},[V,h,m,L,w,_,S,M,q,Re,le,pe,Ft,Ne,T,I,Ge,ee,te,_e,rn,Ht,an,at,lt,o,u,f,b,y,R,O,W,k,H,D,c,g,Se,B,ve,$e,je,Le,et,Pe,He,tt,it,nt,$i,en,jt,tn,nn,Z,E,rt,r,n,d,l,ln,un,cn,dn,fn,mn,gn,hn,bn,vn,Ln,_n,yn]}let Xi=class extends be{constructor(e){super(),he(this,e,Ji,xi,me,{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,selectFirst:11,flyToSelected:41,markerOnSelected:42,types:43,exhaustiveReverseGeocoding:44,excludeTypes:45,zoom:46,apiUrl:47,fetchParameters:48,iconsBaseUrl:12,adjustUrlQuery:49,focus:50,blur:51,setQuery:52,clearList:53,clearMap:54},null,[-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[25]}get focus(){return this.$$.ctx[50]}get blur(){return this.$$.ctx[51]}get setQuery(){return this.$$.ctx[52]}get clearList(){return this.$$.ctx[53]}get clearMap(){return this.$$.ctx[54]}};const Yi=new FinalizationRegistry(i=>{i.$destroy()}),Ye=class Ye extends EventTarget{constructor({target:t,...n}){super();mt(this,Fe);mt(this,Y);Gt(this,Y,new Xi({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])ne(this,Y).$on(r,l=>{qt(this,Fe,Kt).call(this,r,l.detail)});ne(this,Y).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),Yi.register(this,ne(this,Y))}setOptions(t){ne(this,Y).$set(t)}setQuery(t,n=!0){var r;(r=ne(this,Y))==null||r.setQuery(t,n)}clearMap(){var t;(t=ne(this,Y))==null||t.clearMap()}clearList(){var t;(t=ne(this,Y))==null||t.clearList()}focus(){var t;(t=ne(this,Y))==null||t.focus()}blur(){var t;(t=ne(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,Fe=new WeakSet,Kt=function(t,n){return Qt(Ye.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let Xe=Ye;C.GeocodingControl=Xe,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=vanilla.umd.js.map
|